morghulis 3.1.2 → 3.1.4
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/README.md +33 -0
- package/dist/favicon.ico +0 -0
- package/dist/index.css +1 -1
- package/dist/morghulis.es.js +5930 -33450
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +25 -68
- package/dist/morghulis.umd.js.map +1 -1
- package/dist/types/MApp.vue.d.ts +1 -17
- package/dist/types/{hooks/use-auth/index.d.ts → core/auth.d.ts} +5 -0
- package/dist/types/core/feedbacks.d.ts +18 -0
- package/dist/types/core/socket.d.ts +5 -0
- package/dist/types/{hooks/use-morghulis → core}/types.d.ts +3 -2
- package/dist/types/{hooks/use-morghulis/index.d.ts → core.d.ts} +1 -1
- package/dist/types/hooks/use-channel/Channel.d.ts +18 -0
- package/dist/types/hooks/use-channel/ChannelHub.d.ts +10 -0
- package/dist/types/hooks/use-channel/config.d.ts +18 -0
- package/dist/types/hooks/use-channel/index.d.ts +4 -9
- package/dist/types/hooks/use-channel/types.d.ts +5 -36
- package/dist/types/hooks/use-request/index.d.ts +10 -2
- package/dist/types/hooks/use-request/tool.d.ts +4 -1
- package/dist/types/index.d.ts +3 -23
- package/package.json +5 -2
- package/dist/types/components/cell/MCell.vue.d.ts +0 -10
- package/dist/types/components/cell/char/CharCell.vue.d.ts +0 -7
- package/dist/types/components/cell/char/ColorCell.vue.d.ts +0 -2
- package/dist/types/components/cell/date/DateCell.vue.d.ts +0 -7
- package/dist/types/components/cell/date/TimeCell.vue.d.ts +0 -7
- package/dist/types/components/cell/refer/SelectCell.vue.d.ts +0 -7
- package/dist/types/components/cell/simple/BooleanCell.vue.d.ts +0 -7
- package/dist/types/components/cell/simple/DefaultCell.vue.d.ts +0 -7
- package/dist/types/components/cell/simple/NumberCell.vue.d.ts +0 -7
- package/dist/types/components/cell/simple/SwitchCell.vue.d.ts +0 -2
- package/dist/types/components/cell/special/ObjectCell.vue.d.ts +0 -7
- package/dist/types/components/common/MCtrlBtn.vue.d.ts +0 -23
- package/dist/types/components/common/MOption.vue.d.ts +0 -9
- package/dist/types/components/dialog/DDialog.vue.d.ts +0 -17
- package/dist/types/components/dialog/MButtonDialog.vue.d.ts +0 -2
- package/dist/types/components/dialog/MDialog.vue.d.ts +0 -72
- package/dist/types/components/dialog/MDialogHeader.vue.d.ts +0 -8
- package/dist/types/components/dialog/index.d.ts +0 -44
- package/dist/types/components/feedback/feedback.d.ts +0 -4
- package/dist/types/components/feedback/index.d.ts +0 -13
- package/dist/types/components/form/DForm.vue.d.ts +0 -13
- package/dist/types/components/form/MForm.vue.d.ts +0 -13
- package/dist/types/components/meta/MetaTree.vue.d.ts +0 -5
- package/dist/types/components/meta/copy/CopyMetaFields.vue.d.ts +0 -6
- package/dist/types/components/meta/data/ViewMetaData.vue.d.ts +0 -6
- package/dist/types/components/meta/edit/EditMetaField.vue.d.ts +0 -10
- package/dist/types/components/meta/edit/EditMetaFields.vue.d.ts +0 -6
- package/dist/types/components/meta/edit/EditMetaView.vue.d.ts +0 -12
- package/dist/types/components/meta/field/AddField.vue.d.ts +0 -10
- package/dist/types/components/meta/field/MetaFieldFormat.vue.d.ts +0 -6
- package/dist/types/components/meta/field/MetaFieldRefer.vue.d.ts +0 -6
- package/dist/types/components/meta/field/formats/CharFormats.vue.d.ts +0 -2
- package/dist/types/components/meta/field/formats/FileFormats.vue.d.ts +0 -2
- package/dist/types/components/meta/field/formats/NumberFormats.vue.d.ts +0 -2
- package/dist/types/components/meta/widgets/MetaSelect.vue.d.ts +0 -10
- package/dist/types/components/table/aoa/ATable.vue.d.ts +0 -10
- package/dist/types/components/table/data/DTable.vue.d.ts +0 -18
- package/dist/types/components/table/data/hook.d.ts +0 -114
- package/dist/types/components/table/data/popover/DCellPopover.vue.d.ts +0 -19
- package/dist/types/components/table/data/popover/DFieldPopover.vue.d.ts +0 -16
- package/dist/types/components/table/data/popover/DIndexPopover.vue.d.ts +0 -16
- package/dist/types/components/table/data/popover/DMetaPopover.vue.d.ts +0 -16
- package/dist/types/components/table/data/popover/DSearchPopover.vue.d.ts +0 -16
- package/dist/types/components/table/data/slots/DTableCell.vue.d.ts +0 -10
- package/dist/types/components/table/data/slots/DTableEmpty.vue.d.ts +0 -2
- package/dist/types/components/table/data/slots/DTableFooter.vue.d.ts +0 -13
- package/dist/types/components/table/data/slots/DTableFooterTool.vue.d.ts +0 -10
- package/dist/types/components/table/data/slots/DTableHeader.vue.d.ts +0 -8
- package/dist/types/components/table/data/slots/DTableHeaderCell.vue.d.ts +0 -2
- package/dist/types/components/table/data/slots/DTableHeaderTool.vue.d.ts +0 -31
- package/dist/types/components/table/data/slots/DTablePop.vue.d.ts +0 -22
- package/dist/types/components/table/data/tool.d.ts +0 -0
- package/dist/types/components/table/data/types.d.ts +0 -11
- package/dist/types/components/table/simple/MTable.vue.d.ts +0 -41
- package/dist/types/components/table/simple/buttons/MTableButtonWrapper.vue.d.ts +0 -10
- package/dist/types/components/table/simple/columns/MTableColumnWrapper.vue.d.ts +0 -6
- package/dist/types/components/table/simple/hook.d.ts +0 -17
- package/dist/types/components/table/simple/tool.d.ts +0 -19
- package/dist/types/components/table/simple/types.d.ts +0 -46
- package/dist/types/components/table/simple/widgets/MTableHeader.vue.d.ts +0 -28
- package/dist/types/components/table/simple/widgets/MTableIndex.vue.d.ts +0 -15
- package/dist/types/components/table/upload/DTableUpload.vue.d.ts +0 -11
- package/dist/types/components/table/upload/control/DTableUploadActivator.vue.d.ts +0 -6
- package/dist/types/components/table/upload/control/DTableUploadButtons.vue.d.ts +0 -12
- package/dist/types/components/table/upload/control/DTableUploadController.vue.d.ts +0 -16
- package/dist/types/components/table/upload/types.d.ts +0 -5
- package/dist/types/components/table/virtual/VTable.vue.d.ts +0 -34
- package/dist/types/components/tree/data/DTree.vue.d.ts +0 -6
- package/dist/types/components/tree/data/hook.d.ts +0 -109
- package/dist/types/components/tree/data/slots/DTreePop.vue.d.ts +0 -8
- package/dist/types/components/tree/data/types.d.ts +0 -10
- package/dist/types/components/tree/simple/MTree.vue.d.ts +0 -31
- package/dist/types/components/tree/simple/hook.d.ts +0 -21
- package/dist/types/components/tree/simple/tool.d.ts +0 -4
- package/dist/types/components/tree/simple/types.d.ts +0 -18
- package/dist/types/components/tree/simple/widgets/MTreeExpand.vue.d.ts +0 -12
- package/dist/types/components/tree/simple/widgets/MTreeIcon.vue.d.ts +0 -11
- package/dist/types/components/tree/tool.d.ts +0 -7
- package/dist/types/components/tree/types.d.ts +0 -20
- package/dist/types/components/wrapper/MWrapper.vue.d.ts +0 -33
- package/dist/types/components/wrapper/types.d.ts +0 -1
- package/dist/types/hooks/use-admin/index.d.ts +0 -4
- package/dist/types/hooks/use-auth/tool.d.ts +0 -5
- package/dist/types/hooks/use-cell/index.d.ts +0 -6
- package/dist/types/hooks/use-cell/tool.d.ts +0 -2
- package/dist/types/hooks/use-cell/types.d.ts +0 -7
- package/dist/types/hooks/use-cookies/tool.d.ts +0 -2
- package/dist/types/hooks/use-dao/index.d.ts +0 -208
- package/dist/types/hooks/use-dao/tool.d.ts +0 -2
- package/dist/types/hooks/use-dao/types.d.ts +0 -20
- package/dist/types/hooks/use-mata/index.d.ts +0 -0
- package/dist/types/hooks/use-mata/types.d.ts +0 -96
- package/dist/types/hooks/use-paster/index.d.ts +0 -5
- package/dist/types/hooks/use-paster/tool.d.ts +0 -7
- package/dist/types/hooks/use-paster/types.d.ts +0 -4
- package/dist/types/hooks/use-query/index.d.ts +0 -35
- package/dist/types/hooks/use-query/tool.d.ts +0 -8
- package/dist/types/hooks/use-query/types.d.ts +0 -63
- package/dist/types/hooks/use-socket/index.d.ts +0 -4
- package/dist/types/hooks/use-sortable/index.d.ts +0 -3
- package/dist/types/hooks/use-tree/tools.d.ts +0 -0
- package/dist/types/hooks/use-tree/types.d.ts +0 -0
- /package/dist/types/{hooks/use-cookies/index.d.ts → core/cookies.d.ts} +0 -0
@@ -1,15 +0,0 @@
|
|
1
|
-
import { DataItem } from "../../../../hooks/use-query/types";
|
2
|
-
type __VLS_Props = {
|
3
|
-
admin?: boolean;
|
4
|
-
selection: DataItem[];
|
5
|
-
};
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
7
|
-
check: (...args: any[]) => void;
|
8
|
-
meta: (...args: any[]) => void;
|
9
|
-
uncheck: (...args: any[]) => void;
|
10
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
11
|
-
onCheck?: ((...args: any[]) => any) | undefined;
|
12
|
-
onMeta?: ((...args: any[]) => any) | undefined;
|
13
|
-
onUncheck?: ((...args: any[]) => any) | undefined;
|
14
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
15
|
-
export default _default;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { MetaView } from "../../../hooks/use-mata/types";
|
2
|
-
type __VLS_Props = {
|
3
|
-
admin?: boolean;
|
4
|
-
view: MetaView;
|
5
|
-
};
|
6
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
7
|
-
confirm: (...args: any[]) => void;
|
8
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
9
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
10
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
11
|
-
export default _default;
|
@@ -1,6 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
2
|
-
output: (...args: any[]) => void;
|
3
|
-
}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
|
4
|
-
onOutput?: ((...args: any[]) => any) | undefined;
|
5
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
6
|
-
export default _default;
|
@@ -1,12 +0,0 @@
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
2
|
-
data?: any;
|
3
|
-
}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
4
|
-
clear: (...args: any[]) => void;
|
5
|
-
confirm: (...args: any[]) => void;
|
6
|
-
}, string, import("vue").PublicProps, Readonly<{
|
7
|
-
data?: any;
|
8
|
-
}> & Readonly<{
|
9
|
-
onClear?: ((...args: any[]) => any) | undefined;
|
10
|
-
onConfirm?: ((...args: any[]) => any) | undefined;
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
12
|
-
export default _default;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { MetaView } from "../../../../hooks/use-mata/types";
|
2
|
-
import { DataItem } from "../../../../hooks/use-query/types";
|
3
|
-
type __VLS_Props = {
|
4
|
-
admin?: boolean;
|
5
|
-
view: MetaView;
|
6
|
-
data: DataItem[];
|
7
|
-
useKey: boolean;
|
8
|
-
};
|
9
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
10
|
-
view: (...args: any[]) => void;
|
11
|
-
"update:useKey": (...args: any[]) => void;
|
12
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
-
onView?: ((...args: any[]) => any) | undefined;
|
14
|
-
"onUpdate:useKey"?: ((...args: any[]) => any) | undefined;
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
16
|
-
export default _default;
|
@@ -1,34 +0,0 @@
|
|
1
|
-
import { DataItem } from "../../../hooks/use-query/types";
|
2
|
-
import { MetaView } from "../../../hooks/use-mata/types";
|
3
|
-
import { MTableButton, MTableColumn } from "../simple/types";
|
4
|
-
type __VLS_Props = {
|
5
|
-
loading?: boolean;
|
6
|
-
title?: string;
|
7
|
-
data: DataItem[];
|
8
|
-
view: MetaView;
|
9
|
-
buttons?: MTableButton[];
|
10
|
-
columns?: MTableColumn[];
|
11
|
-
};
|
12
|
-
declare function getSelection(): any;
|
13
|
-
declare var __VLS_7: {}, __VLS_9: {}, __VLS_11: {}, __VLS_13: {}, __VLS_15: {};
|
14
|
-
type __VLS_Slots = {} & {
|
15
|
-
empty?: (props: typeof __VLS_7) => any;
|
16
|
-
} & {
|
17
|
-
header?: (props: typeof __VLS_9) => any;
|
18
|
-
} & {
|
19
|
-
'header-tool'?: (props: typeof __VLS_11) => any;
|
20
|
-
} & {
|
21
|
-
'header-cell'?: (props: typeof __VLS_13) => any;
|
22
|
-
} & {
|
23
|
-
cell?: (props: typeof __VLS_15) => any;
|
24
|
-
};
|
25
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
26
|
-
getSelection: typeof getSelection;
|
27
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
28
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
29
|
-
export default _default;
|
30
|
-
type __VLS_WithSlots<T, S> = T & {
|
31
|
-
new (): {
|
32
|
-
$slots: S;
|
33
|
-
};
|
34
|
-
};
|
@@ -1,6 +0,0 @@
|
|
1
|
-
import { DTreeProps } from "./types";
|
2
|
-
declare const _default: import("vue").DefineComponent<DTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DTreeProps> & Readonly<{}>, {
|
3
|
-
root: number;
|
4
|
-
labelKey: string;
|
5
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
6
|
-
export default _default;
|
@@ -1,109 +0,0 @@
|
|
1
|
-
import { Ref } from "vue";
|
2
|
-
import { DTreeProps } from "./types";
|
3
|
-
import { TreeItem, TreeMapping } from "../../../hooks/use-query/types";
|
4
|
-
import { MetaView } from "../../../hooks/use-mata/types";
|
5
|
-
export declare function useDTree(tree: Ref, props: DTreeProps): {
|
6
|
-
status: {
|
7
|
-
loading: boolean;
|
8
|
-
payload: any;
|
9
|
-
};
|
10
|
-
selection: import("vue").ComputedRef<any[]>;
|
11
|
-
options: Ref<{
|
12
|
-
[x: string]: any;
|
13
|
-
pid: number | string;
|
14
|
-
isLeaf: boolean;
|
15
|
-
children: /*elided*/ any[];
|
16
|
-
id?: import("../../../hooks/use-query/types").DataItemId | undefined;
|
17
|
-
}[], TreeItem[] | {
|
18
|
-
[x: string]: any;
|
19
|
-
pid: number | string;
|
20
|
-
isLeaf: boolean;
|
21
|
-
children: /*elided*/ any[];
|
22
|
-
id?: import("../../../hooks/use-query/types").DataItemId | undefined;
|
23
|
-
}[]>;
|
24
|
-
mapping: Ref<TreeMapping, TreeMapping>;
|
25
|
-
view: Ref<{
|
26
|
-
id?: number | undefined;
|
27
|
-
fields?: {
|
28
|
-
[key: string]: import("../../../hooks/use-mata/types").MetaField;
|
29
|
-
} | undefined;
|
30
|
-
entity?: string | undefined;
|
31
|
-
code?: string | undefined;
|
32
|
-
meta_name?: string | undefined;
|
33
|
-
view_name?: string | undefined;
|
34
|
-
form_width?: number | undefined;
|
35
|
-
form_height?: number | undefined;
|
36
|
-
table_width?: number | undefined;
|
37
|
-
table_height?: number | undefined;
|
38
|
-
enable?: boolean | undefined;
|
39
|
-
show_header?: boolean | undefined;
|
40
|
-
allow_batch?: boolean | undefined;
|
41
|
-
allow_search?: boolean | undefined;
|
42
|
-
allow_sort?: boolean | undefined;
|
43
|
-
allow_pop?: boolean | undefined;
|
44
|
-
allow_insert?: boolean | undefined;
|
45
|
-
allow_edit?: boolean | undefined;
|
46
|
-
allow_remove?: boolean | undefined;
|
47
|
-
allow_download?: boolean | undefined;
|
48
|
-
allow_upload?: boolean | undefined;
|
49
|
-
}, MetaView | {
|
50
|
-
id?: number | undefined;
|
51
|
-
fields?: {
|
52
|
-
[key: string]: import("../../../hooks/use-mata/types").MetaField;
|
53
|
-
} | undefined;
|
54
|
-
entity?: string | undefined;
|
55
|
-
code?: string | undefined;
|
56
|
-
meta_name?: string | undefined;
|
57
|
-
view_name?: string | undefined;
|
58
|
-
form_width?: number | undefined;
|
59
|
-
form_height?: number | undefined;
|
60
|
-
table_width?: number | undefined;
|
61
|
-
table_height?: number | undefined;
|
62
|
-
enable?: boolean | undefined;
|
63
|
-
show_header?: boolean | undefined;
|
64
|
-
allow_batch?: boolean | undefined;
|
65
|
-
allow_search?: boolean | undefined;
|
66
|
-
allow_sort?: boolean | undefined;
|
67
|
-
allow_pop?: boolean | undefined;
|
68
|
-
allow_insert?: boolean | undefined;
|
69
|
-
allow_edit?: boolean | undefined;
|
70
|
-
allow_remove?: boolean | undefined;
|
71
|
-
allow_download?: boolean | undefined;
|
72
|
-
allow_upload?: boolean | undefined;
|
73
|
-
}>;
|
74
|
-
config: Ref<{
|
75
|
-
includes?: {
|
76
|
-
[x: string]: any;
|
77
|
-
id?: import("../../../hooks/use-query/types").DataItemId | undefined;
|
78
|
-
} | undefined;
|
79
|
-
excludes?: {
|
80
|
-
[x: string]: any;
|
81
|
-
id?: import("../../../hooks/use-query/types").DataItemId | undefined;
|
82
|
-
} | undefined;
|
83
|
-
orders?: import("../../../hooks/use-query/types").Orders | undefined;
|
84
|
-
page?: number | undefined;
|
85
|
-
size?: number | undefined;
|
86
|
-
root?: number | undefined;
|
87
|
-
finder?: import("../../../hooks/use-query/types").Finder | undefined;
|
88
|
-
}, import("../../../hooks/use-query/types").QueryConfig | {
|
89
|
-
includes?: {
|
90
|
-
[x: string]: any;
|
91
|
-
id?: import("../../../hooks/use-query/types").DataItemId | undefined;
|
92
|
-
} | undefined;
|
93
|
-
excludes?: {
|
94
|
-
[x: string]: any;
|
95
|
-
id?: import("../../../hooks/use-query/types").DataItemId | undefined;
|
96
|
-
} | undefined;
|
97
|
-
orders?: import("../../../hooks/use-query/types").Orders | undefined;
|
98
|
-
page?: number | undefined;
|
99
|
-
size?: number | undefined;
|
100
|
-
root?: number | undefined;
|
101
|
-
finder?: import("../../../hooks/use-query/types").Finder | undefined;
|
102
|
-
}>;
|
103
|
-
query: import("vue").ComputedRef<import("../../../hooks/use-query/types").Query>;
|
104
|
-
meta: import("vue").ComputedRef<import("../../../hooks/use-mata/types").Meta>;
|
105
|
-
load: () => void;
|
106
|
-
reload: () => void;
|
107
|
-
save_many: (array: import("../../../hooks/use-query/types").DataItem[]) => void;
|
108
|
-
delete_one: (id: string | number) => Promise<boolean>;
|
109
|
-
};
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { TreeItem } from "../../../../hooks/use-query/types";
|
2
|
-
import { MetaView } from "../../../../hooks/use-mata/types";
|
3
|
-
type __VLS_Props = {
|
4
|
-
data: TreeItem | MetaView;
|
5
|
-
type: 'index' | 'meta';
|
6
|
-
};
|
7
|
-
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>;
|
8
|
-
export default _default;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { QueryConfig } from "../../../hooks/use-query/types";
|
2
|
-
import { Meta } from "../../../hooks/use-mata/types";
|
3
|
-
import { MTableButton } from "../../table/simple/types";
|
4
|
-
export type DTreeProps = {
|
5
|
-
buttons?: MTableButton[];
|
6
|
-
labelKey?: string;
|
7
|
-
treeSize?: '' | 'large' | 'default' | 'small';
|
8
|
-
accordion?: boolean;
|
9
|
-
expandAll?: boolean;
|
10
|
-
} & QueryConfig & Meta;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { MTreeProps } from "./types";
|
2
|
-
declare function getSelection(): any[];
|
3
|
-
declare var __VLS_14: {}, __VLS_16: {}, __VLS_26: {}, __VLS_28: {}, __VLS_30: {
|
4
|
-
type: import("../../wrapper/types.js").MWrapperPopperType;
|
5
|
-
data: any;
|
6
|
-
};
|
7
|
-
type __VLS_Slots = {} & {
|
8
|
-
header?: (props: typeof __VLS_14) => any;
|
9
|
-
} & {
|
10
|
-
'header-tool'?: (props: typeof __VLS_16) => any;
|
11
|
-
} & {
|
12
|
-
footer?: (props: typeof __VLS_26) => any;
|
13
|
-
} & {
|
14
|
-
'footer-tool'?: (props: typeof __VLS_28) => any;
|
15
|
-
} & {
|
16
|
-
pop?: (props: typeof __VLS_30) => any;
|
17
|
-
};
|
18
|
-
declare const __VLS_component: import("vue").DefineComponent<MTreeProps, {
|
19
|
-
setSelection: (keys: any[]) => void;
|
20
|
-
getSelection: typeof getSelection;
|
21
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MTreeProps> & Readonly<{}>, {
|
22
|
-
labelKey: string;
|
23
|
-
nodeKey: string;
|
24
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
25
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
26
|
-
export default _default;
|
27
|
-
type __VLS_WithSlots<T, S> = T & {
|
28
|
-
new (): {
|
29
|
-
$slots: S;
|
30
|
-
};
|
31
|
-
};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { Ref } from "vue";
|
2
|
-
import { MTreeProps } from "./types";
|
3
|
-
import { TreeItem } from "../../../hooks/use-query/types";
|
4
|
-
import { TreeNode } from "../types";
|
5
|
-
export declare function useMTree(tree: Ref, wrapper: Ref, props: MTreeProps): {
|
6
|
-
text: Ref<string, string>;
|
7
|
-
selection: Ref<any[], any[]>;
|
8
|
-
toggleExpandAll: (expanded: boolean) => void;
|
9
|
-
handleClick: (data: TreeItem, node: TreeNode, _: any, event: Event) => void;
|
10
|
-
setSelection: (keys: any[]) => void;
|
11
|
-
handleSelect: (data: TreeItem, info: {
|
12
|
-
checkedNodes: TreeItem[];
|
13
|
-
}) => void;
|
14
|
-
handleCollapse: (data: TreeItem, node: TreeNode) => void;
|
15
|
-
allow_drag: () => boolean;
|
16
|
-
allow_drop: (draggingNode: TreeNode, dropNode: TreeNode, type: "prev" | "inner" | "next") => boolean;
|
17
|
-
handleNodeDrop: (draggingNode: TreeNode, dropNode: TreeNode, dropType: "before" | "after" | "inner", event: Event) => void;
|
18
|
-
handleContextmenu: (event: PointerEvent, data: TreeItem) => void;
|
19
|
-
handleFilter: (value: string, data: any, node: any) => boolean;
|
20
|
-
toggleAllSelection: (flag: boolean) => void;
|
21
|
-
};
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import { MTableButton } from "../../table/simple/types";
|
2
|
-
import { TreeItem, TreeMapping } from "../../../hooks/use-query/types";
|
3
|
-
import { MetaView } from "../../../hooks/use-mata/types";
|
4
|
-
export type MTreeProps = {
|
5
|
-
data: TreeItem[];
|
6
|
-
root: string | number;
|
7
|
-
view: MetaView;
|
8
|
-
mapping: TreeMapping;
|
9
|
-
buttons?: MTableButton[];
|
10
|
-
nodeKey?: string;
|
11
|
-
labelKey?: string;
|
12
|
-
admin?: boolean;
|
13
|
-
loading?: boolean;
|
14
|
-
sortCallback?: Function;
|
15
|
-
treeSize?: '' | 'large' | 'default' | 'small';
|
16
|
-
accordion?: boolean;
|
17
|
-
expandAll?: boolean;
|
18
|
-
};
|
@@ -1,12 +0,0 @@
|
|
1
|
-
type __VLS_Props = {
|
2
|
-
admin?: boolean;
|
3
|
-
selection: any[];
|
4
|
-
};
|
5
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
6
|
-
meta: (...args: any[]) => void;
|
7
|
-
expand: (...args: any[]) => void;
|
8
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
9
|
-
onMeta?: ((...args: any[]) => any) | undefined;
|
10
|
-
onExpand?: ((...args: any[]) => any) | undefined;
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
12
|
-
export default _default;
|
@@ -1,11 +0,0 @@
|
|
1
|
-
import { TreeItem } from "../../../../hooks/use-query/types";
|
2
|
-
import { TreeNode } from "../../types";
|
3
|
-
type __VLS_Props = {
|
4
|
-
data: TreeItem;
|
5
|
-
node: TreeNode;
|
6
|
-
selection: any[];
|
7
|
-
labelKey: string;
|
8
|
-
text: string;
|
9
|
-
};
|
10
|
-
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>;
|
11
|
-
export default _default;
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { TreeItem, TreeMapping } from "../../hooks/use-query/types";
|
2
|
-
export type TreeNode = {
|
3
|
-
expanded: boolean;
|
4
|
-
data: TreeItem;
|
5
|
-
childNodes: TreeNode[];
|
6
|
-
checked: boolean;
|
7
|
-
isLeaf: boolean;
|
8
|
-
id: string | number;
|
9
|
-
indeterminate: boolean;
|
10
|
-
canFocus: boolean;
|
11
|
-
};
|
12
|
-
export declare class TreeModel {
|
13
|
-
nodes: TreeItem[];
|
14
|
-
root_id: number | string;
|
15
|
-
root: TreeItem;
|
16
|
-
options: TreeItem[];
|
17
|
-
root_name: string;
|
18
|
-
mapping: TreeMapping;
|
19
|
-
constructor(nodes: TreeItem[], root_id?: number);
|
20
|
-
}
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import { MWrapperPopperType } from "./types";
|
2
|
-
type __VLS_Props = {
|
3
|
-
loading?: boolean;
|
4
|
-
};
|
5
|
-
declare function showPopover(event: PointerEvent, type: MWrapperPopperType, data?: any, placement?: string): void;
|
6
|
-
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_15: {
|
7
|
-
type: MWrapperPopperType;
|
8
|
-
data: any;
|
9
|
-
};
|
10
|
-
type __VLS_Slots = {} & {
|
11
|
-
header?: (props: typeof __VLS_1) => any;
|
12
|
-
} & {
|
13
|
-
'header-tool'?: (props: typeof __VLS_3) => any;
|
14
|
-
} & {
|
15
|
-
default?: (props: typeof __VLS_5) => any;
|
16
|
-
} & {
|
17
|
-
footer?: (props: typeof __VLS_7) => any;
|
18
|
-
} & {
|
19
|
-
'footer-tool'?: (props: typeof __VLS_9) => any;
|
20
|
-
} & {
|
21
|
-
pop?: (props: typeof __VLS_15) => any;
|
22
|
-
};
|
23
|
-
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
24
|
-
showPopover: typeof showPopover;
|
25
|
-
closePopover: () => boolean;
|
26
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
27
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
28
|
-
export default _default;
|
29
|
-
type __VLS_WithSlots<T, S> = T & {
|
30
|
-
new (): {
|
31
|
-
$slots: S;
|
32
|
-
};
|
33
|
-
};
|
@@ -1 +0,0 @@
|
|
1
|
-
export type MWrapperPopperType = 'meta' | 'search' | 'field' | 'cell' | 'index';
|