morghulis 3.1.0 → 3.1.1
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 +5597 -5058
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +23 -23
- package/dist/morghulis.umd.js.map +1 -1
- package/dist/types/components/table/data/DTable.vue.d.ts +2 -2
- package/dist/types/components/table/data/types.d.ts +1 -0
- package/dist/types/components/table/data/widgets/DCellContent.vue.d.ts +10 -0
- package/dist/types/components/table/data/{controller → widgets}/DTableController.vue.d.ts +13 -7
- package/dist/types/components/table/simple/MTable.vue.d.ts +10 -8
- package/dist/types/components/table/simple/types.d.ts +1 -0
- package/dist/types/components/table/simple/widgets/MTableHeader.vue.d.ts +1 -2
- package/dist/types/components/table/simple/widgets/MTableIndex.vue.d.ts +2 -2
- package/dist/types/components/table/upload/DTableUpload.vue.d.ts +10 -0
- package/dist/types/components/table/upload/control/DTableUploadActivator.vue.d.ts +2 -0
- package/dist/types/components/table/upload/control/DTableUploadButtons.vue.d.ts +8 -0
- package/dist/types/components/table/upload/control/DTableUploadController.vue.d.ts +15 -0
- package/dist/types/components/table/upload/types.d.ts +5 -0
- package/dist/types/components/table/virtual/VTable.vue.d.ts +17 -1
- package/dist/types/hooks/use-dao/tool.d.ts +2 -0
- package/dist/types/hooks/use-mata/types.d.ts +10 -9
- package/dist/types/hooks/use-paster/index.d.ts +4 -0
- package/dist/types/hooks/use-table/data/index.d.ts +3 -0
- package/dist/types/hooks/use-table/simple/index.d.ts +1 -7
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { DTableProps } from "./types";
|
2
|
-
declare var
|
2
|
+
declare var __VLS_13: {};
|
3
3
|
type __VLS_Slots = {} & {
|
4
|
-
header?: (props: typeof
|
4
|
+
header?: (props: typeof __VLS_13) => any;
|
5
5
|
};
|
6
6
|
declare const __VLS_component: import("vue").DefineComponent<DTableProps, {
|
7
7
|
load: () => void;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { DataItem } from "../../../../hooks/use-query/types";
|
2
|
+
import { MetaField, MetaView } from "../../../../hooks/use-mata/types";
|
3
|
+
type __VLS_Props = {
|
4
|
+
view: MetaView;
|
5
|
+
field: MetaField;
|
6
|
+
row: DataItem;
|
7
|
+
prop: string;
|
8
|
+
};
|
9
|
+
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>;
|
10
|
+
export default _default;
|
@@ -1,24 +1,30 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
import { DataItem } from "../../../../hooks/use-query/types";
|
2
|
+
import { MetaView } from "../../../../hooks/use-mata/types";
|
3
|
+
type __VLS_Props = {
|
4
|
+
is_admin?: boolean;
|
5
|
+
admin: boolean;
|
6
|
+
selection: DataItem[];
|
7
|
+
view: MetaView;
|
8
|
+
};
|
9
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
4
10
|
remove: (...args: any[]) => void;
|
5
11
|
open: (...args: any[]) => void;
|
6
12
|
check: (...args: any[]) => void;
|
7
13
|
paste: (...args: any[]) => void;
|
14
|
+
switch: (...args: any[]) => void;
|
8
15
|
uncheck: (...args: any[]) => void;
|
9
16
|
clone: (...args: any[]) => void;
|
10
17
|
upload: (...args: any[]) => void;
|
11
18
|
download: (...args: any[]) => void;
|
12
|
-
}, string, import("vue").PublicProps, Readonly<{
|
13
|
-
selection?: any;
|
14
|
-
}> & Readonly<{
|
19
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
15
20
|
onRemove?: ((...args: any[]) => any) | undefined;
|
16
21
|
onOpen?: ((...args: any[]) => any) | undefined;
|
17
22
|
onCheck?: ((...args: any[]) => any) | undefined;
|
18
23
|
onPaste?: ((...args: any[]) => any) | undefined;
|
24
|
+
onSwitch?: ((...args: any[]) => any) | undefined;
|
19
25
|
onUncheck?: ((...args: any[]) => any) | undefined;
|
20
26
|
onClone?: ((...args: any[]) => any) | undefined;
|
21
27
|
onUpload?: ((...args: any[]) => any) | undefined;
|
22
28
|
onDownload?: ((...args: any[]) => any) | undefined;
|
23
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions,
|
29
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
24
30
|
export default _default;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import { type MTableProps } from "./types";
|
2
2
|
declare function getSelection(): any;
|
3
|
-
declare var __VLS_1: {}, __VLS_3: {},
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_16: {}, __VLS_40: {
|
4
4
|
field: import("../../../hooks/use-mata/types").MetaField;
|
5
|
-
},
|
5
|
+
}, __VLS_42: {
|
6
6
|
field: import("../../../hooks/use-mata/types").MetaField;
|
7
7
|
row: any;
|
8
8
|
prop: string | number;
|
9
|
-
},
|
9
|
+
}, __VLS_54: {}, __VLS_56: {}, __VLS_61: {
|
10
10
|
type: import("./types").MTablePopperType;
|
11
11
|
data: any;
|
12
12
|
};
|
@@ -15,15 +15,17 @@ type __VLS_Slots = {} & {
|
|
15
15
|
} & {
|
16
16
|
'header-tool'?: (props: typeof __VLS_3) => any;
|
17
17
|
} & {
|
18
|
-
|
18
|
+
empty?: (props: typeof __VLS_16) => any;
|
19
19
|
} & {
|
20
|
-
cell?: (props: typeof __VLS_40) => any;
|
20
|
+
'header-cell'?: (props: typeof __VLS_40) => any;
|
21
21
|
} & {
|
22
|
-
|
22
|
+
cell?: (props: typeof __VLS_42) => any;
|
23
23
|
} & {
|
24
|
-
|
24
|
+
footer?: (props: typeof __VLS_54) => any;
|
25
25
|
} & {
|
26
|
-
|
26
|
+
'footer-tool'?: (props: typeof __VLS_56) => any;
|
27
|
+
} & {
|
28
|
+
pop?: (props: typeof __VLS_61) => any;
|
27
29
|
};
|
28
30
|
declare const __VLS_component: import("vue").DefineComponent<MTableProps, {
|
29
31
|
getSelection: typeof getSelection;
|
@@ -1,12 +1,12 @@
|
|
1
1
|
declare const _default: import("vue").DefineComponent<{
|
2
|
-
|
2
|
+
admin?: any;
|
3
3
|
selection?: any;
|
4
4
|
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
5
5
|
check: (...args: any[]) => void;
|
6
6
|
meta: (...args: any[]) => void;
|
7
7
|
uncheck: (...args: any[]) => void;
|
8
8
|
}, string, import("vue").PublicProps, Readonly<{
|
9
|
-
|
9
|
+
admin?: any;
|
10
10
|
selection?: any;
|
11
11
|
}> & Readonly<{
|
12
12
|
onCheck?: ((...args: any[]) => any) | undefined;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { MetaView } from "../../../hooks/use-mata/types";
|
2
|
+
type __VLS_Props = {
|
3
|
+
view: MetaView;
|
4
|
+
};
|
5
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
|
+
confirm: (...args: any[]) => void;
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
8
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
10
|
+
export default _default;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
2
|
+
export default _default;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
2
|
+
clear: (...args: any[]) => void;
|
3
|
+
confirm: (...args: any[]) => void;
|
4
|
+
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
5
|
+
onClear?: ((...args: any[]) => any) | undefined;
|
6
|
+
onConfirm?: ((...args: any[]) => any) | undefined;
|
7
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
8
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MetaView } from "../../../../hooks/use-mata/types";
|
2
|
+
import { DataItem } from "../../../../hooks/use-query/types";
|
3
|
+
type __VLS_Props = {
|
4
|
+
view: MetaView;
|
5
|
+
data: DataItem[];
|
6
|
+
useKey: boolean;
|
7
|
+
};
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
9
|
+
view: (...args: any[]) => void;
|
10
|
+
"update:useKey": (...args: any[]) => void;
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
12
|
+
onView?: ((...args: any[]) => any) | undefined;
|
13
|
+
"onUpdate:useKey"?: ((...args: any[]) => any) | undefined;
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -8,5 +8,21 @@ type __VLS_Props = {
|
|
8
8
|
buttons?: MTableButton[];
|
9
9
|
columns?: MTableColumn[];
|
10
10
|
};
|
11
|
-
declare
|
11
|
+
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {};
|
12
|
+
type __VLS_Slots = {} & {
|
13
|
+
empty?: (props: typeof __VLS_7) => any;
|
14
|
+
} & {
|
15
|
+
header?: (props: typeof __VLS_9) => any;
|
16
|
+
} & {
|
17
|
+
'header-cell'?: (props: typeof __VLS_11) => any;
|
18
|
+
} & {
|
19
|
+
cell?: (props: typeof __VLS_13) => any;
|
20
|
+
};
|
21
|
+
declare const __VLS_component: 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>;
|
22
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
12
23
|
export default _default;
|
24
|
+
type __VLS_WithSlots<T, S> = T & {
|
25
|
+
new (): {
|
26
|
+
$slots: S;
|
27
|
+
};
|
28
|
+
};
|
@@ -36,30 +36,31 @@ export type NumberField = 'IntegerField' | 'FloatField' | 'BigIntegerField' | 'D
|
|
36
36
|
export type DateField = 'DateField' | 'DateTimeField' | 'TimeField';
|
37
37
|
export type SpecialField = 'JSONField' | 'FileField';
|
38
38
|
export type ReadonlyField = 'UUIDField' | 'BigAutoField' | 'Custom';
|
39
|
+
export type MetaFieldDomain = SimpleField | ManyField | RefField | SpecialField | ReadonlyField | NumberField | DateField;
|
39
40
|
export type MetaField = {
|
40
41
|
prop?: string;
|
41
42
|
label?: string;
|
42
43
|
name?: string;
|
43
|
-
domain?:
|
44
|
+
domain?: MetaFieldDomain;
|
44
45
|
tool?: string;
|
45
46
|
refer?: MetaRefer;
|
46
47
|
format?: MetaFormat;
|
47
48
|
unit?: string | null;
|
49
|
+
align?: 'left' | 'center' | 'right';
|
50
|
+
fixed?: '' | 'left' | 'right';
|
51
|
+
header_color?: string | null;
|
52
|
+
cell_color?: string | null;
|
53
|
+
span?: number;
|
54
|
+
column_width?: number;
|
48
55
|
not_null?: boolean;
|
49
|
-
|
50
|
-
|
56
|
+
allow_sort?: boolean;
|
57
|
+
allow_edit?: boolean;
|
51
58
|
allow_search?: boolean;
|
52
59
|
allow_download?: boolean;
|
53
60
|
allow_upload?: boolean;
|
54
61
|
allow_update?: boolean;
|
55
|
-
column_width?: number;
|
56
|
-
align?: 'left' | 'center' | 'right';
|
57
|
-
fixed?: '' | 'left' | 'right';
|
58
|
-
header_color?: string | null;
|
59
|
-
cell_color?: string | null;
|
60
62
|
edit_on_table?: boolean;
|
61
63
|
hide_on_table?: boolean;
|
62
|
-
span?: number;
|
63
64
|
hide_on_form?: boolean;
|
64
65
|
hide_on_form_edit?: boolean;
|
65
66
|
hide_on_form_insert?: boolean;
|
@@ -3,6 +3,9 @@ import { MetaView } from "../../use-mata/types";
|
|
3
3
|
import { DataItem, Finder, Query, QueryConfig } from "../../use-query/types";
|
4
4
|
import { DTableInfo, DTableProps } from "../../../components/table/data/types";
|
5
5
|
export declare function useDTable(table: Ref, props: DTableProps): {
|
6
|
+
admin: Ref<boolean, boolean>;
|
7
|
+
switch_admin: () => void;
|
8
|
+
reload: () => void;
|
6
9
|
finder: Ref<Finder, Finder>;
|
7
10
|
query: ComputedRef<Query>;
|
8
11
|
config: Ref<{
|
@@ -4,13 +4,7 @@ export declare function useMTable(table: Ref, props: MTableProps): {
|
|
4
4
|
handleOrder: (prop: string, dir: 1 | -1) => void;
|
5
5
|
check: (flag: boolean) => void;
|
6
6
|
visible: import("vue").ComputedRef<{
|
7
|
-
popover:
|
8
|
-
meta: boolean;
|
9
|
-
search: boolean;
|
10
|
-
field: boolean;
|
11
|
-
index: boolean;
|
12
|
-
cell: boolean;
|
13
|
-
};
|
7
|
+
popover: boolean;
|
14
8
|
header: boolean;
|
15
9
|
footer: boolean;
|
16
10
|
}>;
|