morghulis 3.1.3 → 3.1.5
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 +46634 -42292
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +91 -82
- 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 +5 -1
- package/dist/types/index.d.ts +4 -27
- package/package.json +3 -3
- package/dist/types/components/button/MCtrlBtn.vue.d.ts +0 -23
- package/dist/types/components/button/MDialogButton.vue.d.ts +0 -31
- package/dist/types/components/cell/MCell.vue.d.ts +0 -11
- package/dist/types/components/cell/char/CharCell.vue.d.ts +0 -7
- package/dist/types/components/cell/char/ColorCell.vue.d.ts +0 -7
- package/dist/types/components/cell/char/IconCell.vue.d.ts +0 -7
- package/dist/types/components/cell/char/SetCell.vue.d.ts +0 -7
- package/dist/types/components/cell/date/DateArrayCell.vue.d.ts +0 -7
- package/dist/types/components/cell/date/DateCell.vue.d.ts +0 -7
- package/dist/types/components/cell/date/DateRangeCell.vue.d.ts +0 -7
- package/dist/types/components/cell/date/TimeCell.vue.d.ts +0 -7
- package/dist/types/components/cell/date/TimeRangeCell.vue.d.ts +0 -7
- package/dist/types/components/cell/hook.d.ts +0 -13
- package/dist/types/components/cell/refer/AutoCell.vue.d.ts +0 -7
- package/dist/types/components/cell/refer/CascadeCell.vue.d.ts +0 -7
- package/dist/types/components/cell/refer/SelectCell.vue.d.ts +0 -7
- package/dist/types/components/cell/refer/TransferCell.vue.d.ts +0 -7
- package/dist/types/components/cell/refer/TreeCell.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/NoneCell.vue.d.ts +0 -2
- 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/FileCell.vue.d.ts +0 -3
- package/dist/types/components/cell/special/ObjectCell.vue.d.ts +0 -7
- package/dist/types/components/cell/special/RichCell.vue.d.ts +0 -2
- package/dist/types/components/cell/tool.d.ts +0 -9
- package/dist/types/components/cell/types.d.ts +0 -9
- package/dist/types/components/common/MIcon.vue.d.ts +0 -19
- package/dist/types/components/common/MJsonEditor.vue.d.ts +0 -9
- package/dist/types/components/common/MOption.vue.d.ts +0 -7
- package/dist/types/components/common/MOptions.vue.d.ts +0 -7
- package/dist/types/components/common/MReader.vue.d.ts +0 -7
- package/dist/types/components/common/reader/CsvReader.vue.d.ts +0 -5
- package/dist/types/components/common/reader/ExcelReader.vue.d.ts +0 -2
- package/dist/types/components/common/reader/ImageReader.vue.d.ts +0 -5
- package/dist/types/components/common/reader/PdfReader.vue.d.ts +0 -2
- package/dist/types/components/common/types.d.ts +0 -2
- package/dist/types/components/dialog/DDialog.vue.d.ts +0 -15
- 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/MetaCore.vue.d.ts +0 -5
- package/dist/types/components/meta/fields/MetaFieldAdd.vue.d.ts +0 -10
- package/dist/types/components/meta/fields/MetaFieldForm.vue.d.ts +0 -10
- package/dist/types/components/meta/fields/MetaFieldFormat.vue.d.ts +0 -10
- package/dist/types/components/meta/fields/MetaFieldList.vue.d.ts +0 -6
- package/dist/types/components/meta/fields/MetaFieldRefer.vue.d.ts +0 -24
- package/dist/types/components/meta/fields/formats/DateFormats.vue.d.ts +0 -29
- package/dist/types/components/meta/fields/formats/FileFormats.vue.d.ts +0 -29
- package/dist/types/components/meta/fields/formats/NumberFormats.vue.d.ts +0 -29
- package/dist/types/components/meta/fields/formats/SetFormats.vue.d.ts +0 -29
- package/dist/types/components/meta/fields/formats/TextFormats.vue.d.ts +0 -29
- package/dist/types/components/meta/fields/widgets/TreeRootSelection.vue.d.ts +0 -6
- package/dist/types/components/meta/tool.d.ts +0 -1
- package/dist/types/components/meta/view/MetaViewForm.vue.d.ts +0 -12
- package/dist/types/components/meta/view/tools.d.ts +0 -0
- package/dist/types/components/meta/widgets/CopyMetaFields.vue.d.ts +0 -6
- package/dist/types/components/meta/widgets/MetaFrame.vue.d.ts +0 -2
- package/dist/types/components/meta/widgets/MetaSelect.vue.d.ts +0 -15
- package/dist/types/components/meta/widgets/ViewMetaData.vue.d.ts +0 -6
- 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 -124
- 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/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 -45
- package/dist/types/components/tree/data/hook.d.ts +0 -127
- package/dist/types/components/tree/data/popover/DTreeIndexPopover.vue.d.ts +0 -19
- package/dist/types/components/tree/data/popover/DTreeMetaPopover.vue.d.ts +0 -16
- package/dist/types/components/tree/data/slots/DTreeHeaderTool.vue.d.ts +0 -16
- package/dist/types/components/tree/data/slots/DTreePop.vue.d.ts +0 -10
- package/dist/types/components/tree/data/types.d.ts +0 -10
- package/dist/types/components/tree/data/widgets/DTreeAdd.vue.d.ts +0 -10
- package/dist/types/components/tree/data/widgets/DTreeTable.vue.d.ts +0 -9
- package/dist/types/components/tree/data/widgets/DTreeTableNode.vue.d.ts +0 -6
- package/dist/types/components/tree/simple/MTree.vue.d.ts +0 -76
- package/dist/types/components/tree/simple/hook.d.ts +0 -40
- 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/MTreeNode.vue.d.ts +0 -21
- 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 -37
- package/dist/types/components/wrapper/MWrapperPopContent.vue.d.ts +0 -23
- package/dist/types/components/wrapper/types.d.ts +0 -22
- 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-cookies/tool.d.ts +0 -2
- package/dist/types/hooks/use-dao/index.d.ts +0 -220
- 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 -107
- 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 -70
- 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,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,45 +0,0 @@
|
|
1
|
-
import { DTreeProps } from "./types";
|
2
|
-
import { DataItemId } from "../../../hooks/use-query/types";
|
3
|
-
declare var __VLS_7: {
|
4
|
-
data: any;
|
5
|
-
node: any;
|
6
|
-
}, __VLS_9: {
|
7
|
-
data: any;
|
8
|
-
node: any;
|
9
|
-
}, __VLS_11: {
|
10
|
-
data: any;
|
11
|
-
node: any;
|
12
|
-
}, __VLS_13: {
|
13
|
-
data: any;
|
14
|
-
node: any;
|
15
|
-
}, __VLS_15: {
|
16
|
-
data: any;
|
17
|
-
node: any;
|
18
|
-
}, __VLS_17: {
|
19
|
-
data: any;
|
20
|
-
node: any;
|
21
|
-
};
|
22
|
-
type __VLS_Slots = {} & {
|
23
|
-
left?: (props: typeof __VLS_7) => any;
|
24
|
-
} & {
|
25
|
-
'left-leaf'?: (props: typeof __VLS_9) => any;
|
26
|
-
} & {
|
27
|
-
'left-branch'?: (props: typeof __VLS_11) => any;
|
28
|
-
} & {
|
29
|
-
right?: (props: typeof __VLS_13) => any;
|
30
|
-
} & {
|
31
|
-
'right-leaf'?: (props: typeof __VLS_15) => any;
|
32
|
-
} & {
|
33
|
-
'right-branch'?: (props: typeof __VLS_17) => any;
|
34
|
-
};
|
35
|
-
declare const __VLS_component: import("vue").DefineComponent<DTreeProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DTreeProps> & Readonly<{}>, {
|
36
|
-
root: DataItemId;
|
37
|
-
labelKey: string;
|
38
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
39
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
40
|
-
export default _default;
|
41
|
-
type __VLS_WithSlots<T, S> = T & {
|
42
|
-
new (): {
|
43
|
-
$slots: S;
|
44
|
-
};
|
45
|
-
};
|
@@ -1,127 +0,0 @@
|
|
1
|
-
import { Ref } from "vue";
|
2
|
-
import { DTreeProps } from "./types";
|
3
|
-
import { DataItemId, TreeItem } from "../../../hooks/use-query/types";
|
4
|
-
export declare function useDTree(tree: Ref, props: DTreeProps): {
|
5
|
-
current: import("vue").ComputedRef<any>;
|
6
|
-
selection: import("vue").ComputedRef<any[]>;
|
7
|
-
isAdmin: Ref<boolean, boolean>;
|
8
|
-
admin: Ref<boolean, boolean>;
|
9
|
-
config: Ref<{
|
10
|
-
includes?: {
|
11
|
-
[x: string]: any;
|
12
|
-
id?: DataItemId | undefined;
|
13
|
-
} | undefined;
|
14
|
-
excludes?: {
|
15
|
-
[x: string]: any;
|
16
|
-
id?: DataItemId | undefined;
|
17
|
-
} | undefined;
|
18
|
-
orders?: import("../../../hooks/use-query/types").Orders | undefined;
|
19
|
-
page?: number | undefined;
|
20
|
-
size?: number | undefined;
|
21
|
-
root?: DataItemId | undefined;
|
22
|
-
finder?: import("../../../hooks/use-query/types").Finder | undefined;
|
23
|
-
}, import("../../../hooks/use-query/types").QueryConfig | {
|
24
|
-
includes?: {
|
25
|
-
[x: string]: any;
|
26
|
-
id?: DataItemId | undefined;
|
27
|
-
} | undefined;
|
28
|
-
excludes?: {
|
29
|
-
[x: string]: any;
|
30
|
-
id?: DataItemId | undefined;
|
31
|
-
} | undefined;
|
32
|
-
orders?: import("../../../hooks/use-query/types").Orders | undefined;
|
33
|
-
page?: number | undefined;
|
34
|
-
size?: number | undefined;
|
35
|
-
root?: DataItemId | undefined;
|
36
|
-
finder?: import("../../../hooks/use-query/types").Finder | undefined;
|
37
|
-
}>;
|
38
|
-
query: import("vue").ComputedRef<import("../../../hooks/use-query/types").Query>;
|
39
|
-
meta: import("vue").ComputedRef<import("../../../hooks/use-mata/types").Meta>;
|
40
|
-
switchAdmin: () => void;
|
41
|
-
load: () => void;
|
42
|
-
reload: () => void;
|
43
|
-
status: {
|
44
|
-
loading: boolean;
|
45
|
-
payload: any;
|
46
|
-
};
|
47
|
-
view: Ref<{
|
48
|
-
isTree?: boolean | undefined;
|
49
|
-
id?: number | undefined;
|
50
|
-
fields?: {
|
51
|
-
[key: string]: import("../../..").MetaField;
|
52
|
-
} | undefined;
|
53
|
-
entity?: string | undefined;
|
54
|
-
code?: string | undefined;
|
55
|
-
meta_name?: string | undefined;
|
56
|
-
view_name?: string | undefined;
|
57
|
-
form_width?: number | undefined;
|
58
|
-
form_height?: number | undefined;
|
59
|
-
table_width?: number | undefined;
|
60
|
-
table_height?: number | undefined;
|
61
|
-
enable?: boolean | undefined;
|
62
|
-
show_header?: boolean | undefined;
|
63
|
-
allow_batch?: boolean | undefined;
|
64
|
-
allow_search?: boolean | undefined;
|
65
|
-
allow_sort?: boolean | undefined;
|
66
|
-
allow_pop?: boolean | undefined;
|
67
|
-
allow_insert?: boolean | undefined;
|
68
|
-
allow_edit?: boolean | undefined;
|
69
|
-
allow_remove?: boolean | undefined;
|
70
|
-
allow_download?: boolean | undefined;
|
71
|
-
allow_upload?: boolean | undefined;
|
72
|
-
meta?: {
|
73
|
-
entity: string;
|
74
|
-
name: string;
|
75
|
-
} | undefined;
|
76
|
-
}, import("../../..").MetaView | {
|
77
|
-
isTree?: boolean | undefined;
|
78
|
-
id?: number | undefined;
|
79
|
-
fields?: {
|
80
|
-
[key: string]: import("../../..").MetaField;
|
81
|
-
} | undefined;
|
82
|
-
entity?: string | undefined;
|
83
|
-
code?: string | undefined;
|
84
|
-
meta_name?: string | undefined;
|
85
|
-
view_name?: string | undefined;
|
86
|
-
form_width?: number | undefined;
|
87
|
-
form_height?: number | undefined;
|
88
|
-
table_width?: number | undefined;
|
89
|
-
table_height?: number | undefined;
|
90
|
-
enable?: boolean | undefined;
|
91
|
-
show_header?: boolean | undefined;
|
92
|
-
allow_batch?: boolean | undefined;
|
93
|
-
allow_search?: boolean | undefined;
|
94
|
-
allow_sort?: boolean | undefined;
|
95
|
-
allow_pop?: boolean | undefined;
|
96
|
-
allow_insert?: boolean | undefined;
|
97
|
-
allow_edit?: boolean | undefined;
|
98
|
-
allow_remove?: boolean | undefined;
|
99
|
-
allow_download?: boolean | undefined;
|
100
|
-
allow_upload?: boolean | undefined;
|
101
|
-
meta?: {
|
102
|
-
entity: string;
|
103
|
-
name: string;
|
104
|
-
} | undefined;
|
105
|
-
}>;
|
106
|
-
options: Ref<{
|
107
|
-
[x: string]: any;
|
108
|
-
pid: number | string;
|
109
|
-
isLeaf: boolean;
|
110
|
-
icon?: import("../../common/types").IconNames | undefined;
|
111
|
-
children: /*elided*/ any[];
|
112
|
-
id?: DataItemId | undefined;
|
113
|
-
}[], TreeItem[] | {
|
114
|
-
[x: string]: any;
|
115
|
-
pid: number | string;
|
116
|
-
isLeaf: boolean;
|
117
|
-
icon?: import("../../common/types").IconNames | undefined;
|
118
|
-
children: /*elided*/ any[];
|
119
|
-
id?: DataItemId | undefined;
|
120
|
-
}[]>;
|
121
|
-
mapping: Ref<import("../../../hooks/use-query/types").TreeMapping, import("../../../hooks/use-query/types").TreeMapping>;
|
122
|
-
save_many: (array: import("../../../hooks/use-query/types").DataItem[]) => void;
|
123
|
-
delete_one: (id: string | number) => Promise<boolean>;
|
124
|
-
remove: () => void;
|
125
|
-
clip: () => void;
|
126
|
-
clone: () => void;
|
127
|
-
};
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { MetaDatabase, MetaView } from "../../../../hooks/use-mata/types";
|
2
|
-
import { Query, TreeItem } from "../../../../hooks/use-query/types";
|
3
|
-
type __VLS_Props = {
|
4
|
-
view: MetaView;
|
5
|
-
data: {
|
6
|
-
prop: string;
|
7
|
-
row: TreeItem;
|
8
|
-
};
|
9
|
-
query?: Query;
|
10
|
-
db: MetaDatabase;
|
11
|
-
};
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
13
|
-
close: (...args: any[]) => void;
|
14
|
-
reset: (...args: any[]) => void;
|
15
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
16
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
17
|
-
onReset?: ((...args: any[]) => any) | undefined;
|
18
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
19
|
-
export default _default;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { MetaDatabase, MetaView } from "../../../../hooks/use-mata/types";
|
2
|
-
import { Query, TreeItem } from "../../../../hooks/use-query/types";
|
3
|
-
type __VLS_Props = {
|
4
|
-
view: MetaView;
|
5
|
-
data: TreeItem;
|
6
|
-
query?: Query;
|
7
|
-
db: MetaDatabase;
|
8
|
-
};
|
9
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
10
|
-
close: (...args: any[]) => void;
|
11
|
-
reset: (...args: any[]) => void;
|
12
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
14
|
-
onReset?: ((...args: any[]) => any) | undefined;
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
16
|
-
export default _default;
|
@@ -1,16 +0,0 @@
|
|
1
|
-
import { TreeItem } from "../../../../hooks/use-query/types";
|
2
|
-
import { MetaView } from "../../../../hooks/use-mata/types";
|
3
|
-
type __VLS_Props = {
|
4
|
-
selection: TreeItem[];
|
5
|
-
view: MetaView;
|
6
|
-
};
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
8
|
-
remove: (...args: any[]) => void;
|
9
|
-
open: (...args: any[]) => void;
|
10
|
-
switch: (...args: any[]) => void;
|
11
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
12
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
13
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
14
|
-
onSwitch?: ((...args: any[]) => any) | undefined;
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
16
|
-
export default _default;
|
@@ -1,10 +0,0 @@
|
|
1
|
-
import { MetaDatabase, MetaView } from "../../../../hooks/use-mata/types";
|
2
|
-
type __VLS_Props = {
|
3
|
-
data: any;
|
4
|
-
type: 'index' | 'meta';
|
5
|
-
view: MetaView;
|
6
|
-
labelKey: string;
|
7
|
-
db: MetaDatabase;
|
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,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,10 +0,0 @@
|
|
1
|
-
import { DataItem } from "../../../../hooks/use-query/types";
|
2
|
-
type __VLS_Props = {
|
3
|
-
pid: number | string;
|
4
|
-
labelKey: string;
|
5
|
-
};
|
6
|
-
declare function getData(): DataItem[];
|
7
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
8
|
-
getData: typeof getData;
|
9
|
-
}, {}, {}, {}, 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,9 +0,0 @@
|
|
1
|
-
import { Meta } from "../../../../hooks/use-mata/types";
|
2
|
-
import { QueryConfig, TreeItem } from "../../../../hooks/use-query/types";
|
3
|
-
type __VLS_Props = Meta & QueryConfig & {
|
4
|
-
mapping: {
|
5
|
-
[id: string | number]: TreeItem;
|
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,6 +0,0 @@
|
|
1
|
-
import { TreeItem } from "../../../../hooks/use-query/types";
|
2
|
-
type __VLS_Props = {
|
3
|
-
item: TreeItem;
|
4
|
-
};
|
5
|
-
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>;
|
6
|
-
export default _default;
|
@@ -1,76 +0,0 @@
|
|
1
|
-
import { MTreeProps } from "./types";
|
2
|
-
import { DataItemId } from "../../../hooks/use-query/types";
|
3
|
-
declare function getSelection(): any[];
|
4
|
-
declare function getCurrent(): {
|
5
|
-
[x: string]: any;
|
6
|
-
pid: number | string;
|
7
|
-
isLeaf: boolean;
|
8
|
-
icon?: import("../../common/types.js").IconNames | undefined;
|
9
|
-
children: /*elided*/ any[];
|
10
|
-
id?: DataItemId | undefined;
|
11
|
-
} | null;
|
12
|
-
declare function setExpended(expended: DataItemId[]): void;
|
13
|
-
declare var __VLS_6: {}, __VLS_8: {}, __VLS_34: {}, __VLS_36: {}, __VLS_38: {
|
14
|
-
type: import("../../wrapper/types.js").MWrapperPopperType;
|
15
|
-
data: any;
|
16
|
-
}, __VLS_59: {
|
17
|
-
data: any;
|
18
|
-
node: any;
|
19
|
-
}, __VLS_61: {
|
20
|
-
data: any;
|
21
|
-
node: any;
|
22
|
-
}, __VLS_63: {
|
23
|
-
data: any;
|
24
|
-
node: any;
|
25
|
-
}, __VLS_69: {
|
26
|
-
data: any;
|
27
|
-
node: any;
|
28
|
-
}, __VLS_71: {
|
29
|
-
data: any;
|
30
|
-
node: any;
|
31
|
-
}, __VLS_73: {
|
32
|
-
data: any;
|
33
|
-
node: any;
|
34
|
-
};
|
35
|
-
type __VLS_Slots = {} & {
|
36
|
-
header?: (props: typeof __VLS_6) => any;
|
37
|
-
} & {
|
38
|
-
'header-tool'?: (props: typeof __VLS_8) => any;
|
39
|
-
} & {
|
40
|
-
footer?: (props: typeof __VLS_34) => any;
|
41
|
-
} & {
|
42
|
-
'footer-tool'?: (props: typeof __VLS_36) => any;
|
43
|
-
} & {
|
44
|
-
pop?: (props: typeof __VLS_38) => any;
|
45
|
-
} & {
|
46
|
-
left?: (props: typeof __VLS_59) => any;
|
47
|
-
} & {
|
48
|
-
'left-leaf'?: (props: typeof __VLS_61) => any;
|
49
|
-
} & {
|
50
|
-
'left-branch'?: (props: typeof __VLS_63) => any;
|
51
|
-
} & {
|
52
|
-
right?: (props: typeof __VLS_69) => any;
|
53
|
-
} & {
|
54
|
-
'right-leaf'?: (props: typeof __VLS_71) => any;
|
55
|
-
} & {
|
56
|
-
'right-branch'?: (props: typeof __VLS_73) => any;
|
57
|
-
};
|
58
|
-
declare const __VLS_component: import("vue").DefineComponent<MTreeProps, {
|
59
|
-
setSelection: (nodes: any[]) => void;
|
60
|
-
getSelection: typeof getSelection;
|
61
|
-
closePopover: () => void;
|
62
|
-
getCurrent: typeof getCurrent;
|
63
|
-
setCurrent: (node: import("../../../hooks/use-query/types").TreeItem | null) => void;
|
64
|
-
getExpended: () => (DataItemId | undefined)[];
|
65
|
-
setExpended: typeof setExpended;
|
66
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MTreeProps> & Readonly<{}>, {
|
67
|
-
labelKey: string;
|
68
|
-
nodeKey: string;
|
69
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
70
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
71
|
-
export default _default;
|
72
|
-
type __VLS_WithSlots<T, S> = T & {
|
73
|
-
new (): {
|
74
|
-
$slots: S;
|
75
|
-
};
|
76
|
-
};
|
@@ -1,40 +0,0 @@
|
|
1
|
-
import { Ref } from "vue";
|
2
|
-
import { MTreeProps } from "./types";
|
3
|
-
import { DataItemId, TreeItem } from "../../../hooks/use-query/types";
|
4
|
-
import { TreeNode } from "../types";
|
5
|
-
export declare function useMTree(tree: Ref, wrapper: Ref, props: MTreeProps): {
|
6
|
-
current: Ref<{
|
7
|
-
[x: string]: any;
|
8
|
-
pid: number | string;
|
9
|
-
isLeaf: boolean;
|
10
|
-
icon?: import("../../common/types").IconNames | undefined;
|
11
|
-
children: /*elided*/ any[];
|
12
|
-
id?: DataItemId | undefined;
|
13
|
-
} | null, TreeItem | {
|
14
|
-
[x: string]: any;
|
15
|
-
pid: number | string;
|
16
|
-
isLeaf: boolean;
|
17
|
-
icon?: import("../../common/types").IconNames | undefined;
|
18
|
-
children: /*elided*/ any[];
|
19
|
-
id?: DataItemId | undefined;
|
20
|
-
} | null>;
|
21
|
-
text: Ref<string, string>;
|
22
|
-
selection: Ref<any[], any[]>;
|
23
|
-
toggleExpandAll: (expanded: boolean) => void;
|
24
|
-
handleClick: (data: TreeItem, node: TreeNode, _: any, event: Event) => void;
|
25
|
-
setSelection: (nodes: any[]) => void;
|
26
|
-
setCurrent: (node: TreeItem | null) => void;
|
27
|
-
handleSelect: (data: TreeItem, info: {
|
28
|
-
checkedNodes: TreeItem[];
|
29
|
-
}) => void;
|
30
|
-
handleExpand: (data: TreeItem, node: TreeNode) => void;
|
31
|
-
handleCollapse: (data: TreeItem, node: TreeNode) => void;
|
32
|
-
allow_drag: (node: TreeNode) => boolean | undefined;
|
33
|
-
allow_drop: (draggingNode: TreeNode, dropNode: TreeNode, type: "prev" | "inner" | "next") => boolean;
|
34
|
-
handleNodeDrop: (draggingNode: TreeNode, dropNode: TreeNode, dropType: "before" | "after" | "inner", event: Event) => void;
|
35
|
-
handleContextmenu: (event: PointerEvent, data: TreeItem) => void;
|
36
|
-
handleFilter: (value: string, data: any, node: any) => boolean;
|
37
|
-
toggleAllSelection: (flag: boolean) => void;
|
38
|
-
closePopover: () => void;
|
39
|
-
getExpended: () => (DataItemId | undefined)[];
|
40
|
-
};
|
@@ -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,21 +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 var __VLS_14: {};
|
11
|
-
type __VLS_Slots = {} & {
|
12
|
-
default?: (props: typeof __VLS_14) => any;
|
13
|
-
};
|
14
|
-
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>;
|
15
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
16
|
-
export default _default;
|
17
|
-
type __VLS_WithSlots<T, S> = T & {
|
18
|
-
new (): {
|
19
|
-
$slots: S;
|
20
|
-
};
|
21
|
-
};
|
@@ -1,20 +0,0 @@
|
|
1
|
-
import { DataItemId, 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?: DataItemId);
|
20
|
-
}
|
@@ -1,37 +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: () => void;
|
26
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
27
|
-
close: (...args: any[]) => void;
|
28
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
29
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
30
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
31
|
-
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
32
|
-
export default _default;
|
33
|
-
type __VLS_WithSlots<T, S> = T & {
|
34
|
-
new (): {
|
35
|
-
$slots: S;
|
36
|
-
};
|
37
|
-
};
|
@@ -1,23 +0,0 @@
|
|
1
|
-
import { MetaDatabase, MetaView } from "../../hooks/use-mata/types";
|
2
|
-
import { MWrapperPopperMapping, MWrapperPopperType } from "./types";
|
3
|
-
import { Query } from "../../hooks/use-query/types";
|
4
|
-
type __VLS_Props = {
|
5
|
-
db: MetaDatabase;
|
6
|
-
type: MWrapperPopperType;
|
7
|
-
query?: Query;
|
8
|
-
view: MetaView;
|
9
|
-
data: any;
|
10
|
-
mapping: MWrapperPopperMapping;
|
11
|
-
};
|
12
|
-
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
13
|
-
search: (...args: any[]) => void;
|
14
|
-
close: (...args: any[]) => void;
|
15
|
-
save: (...args: any[]) => void;
|
16
|
-
reload: (...args: any[]) => void;
|
17
|
-
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
18
|
-
onSearch?: ((...args: any[]) => any) | undefined;
|
19
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
20
|
-
onSave?: ((...args: any[]) => any) | undefined;
|
21
|
-
onReload?: ((...args: any[]) => any) | undefined;
|
22
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
23
|
-
export default _default;
|
@@ -1,22 +0,0 @@
|
|
1
|
-
import { MetaView } from "../../hooks/use-mata/types";
|
2
|
-
import { Component } from "vue";
|
3
|
-
import { TreeItem } from "../../hooks/use-query/types";
|
4
|
-
export type MWrapperPopperType = 'meta' | 'search' | 'field' | 'cell' | 'index';
|
5
|
-
type MPBStringFn = (node: any | TreeItem) => string;
|
6
|
-
type MPBooleanFn = (node: TreeItem) => boolean;
|
7
|
-
type MPBTypeFn = (node: TreeItem) => 'primary' | 'info' | 'success' | 'warning' | 'danger';
|
8
|
-
export type MWrapperPopperButton = {
|
9
|
-
icon: string | MPBStringFn;
|
10
|
-
type: 'primary' | 'info' | 'success' | 'warning' | 'danger' | MPBTypeFn;
|
11
|
-
disabled?: boolean | MPBooleanFn;
|
12
|
-
handler: (item: any, data: any) => void;
|
13
|
-
};
|
14
|
-
export type MWrapperPopperMapping = {
|
15
|
-
[prop: string]: {
|
16
|
-
width: string | MPBStringFn;
|
17
|
-
component: Component;
|
18
|
-
title: (data: any, view: MetaView) => string;
|
19
|
-
buttons: MWrapperPopperButton[];
|
20
|
-
};
|
21
|
-
};
|
22
|
-
export {};
|