morghulis 3.0.16 → 3.0.17
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/morghulis.es.js +5846 -4147
- package/dist/morghulis.es.js.map +1 -1
- package/dist/morghulis.umd.js +30 -25
- package/dist/morghulis.umd.js.map +1 -1
- package/dist/types/MApp.vue.d.ts +8 -2
- package/dist/types/components/table-data/DTable.vue.d.ts +3 -0
- package/dist/types/components/table-data/types.d.ts +17 -0
- package/dist/types/components/table-morghulis/MTable.vue.d.ts +42 -0
- package/dist/types/components/table-morghulis/types.d.ts +174 -0
- package/dist/types/hooks/use-channel/index.d.ts +3 -3
- package/dist/types/hooks/use-channel/types.d.ts +5 -1
- package/dist/types/hooks/use-dao/index.d.ts +19 -3
- package/dist/types/hooks/use-query/index.d.ts +3 -2
- package/dist/types/hooks/use-query/types.d.ts +14 -6
- package/dist/types/hooks/use-table-data/index.d.ts +76 -0
- package/dist/types/hooks/use-table-morghulis/index.d.ts +25 -0
- package/dist/types/index.d.ts +6 -2
- package/package.json +1 -1
- /package/dist/types/hooks/{use-query/tool.d.ts → use-table-morghulis/types.d.ts} +0 -0
package/dist/types/MApp.vue.d.ts
CHANGED
@@ -1,8 +1,14 @@
|
|
1
|
-
declare var __VLS_1: {};
|
1
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
|
2
2
|
type __VLS_Slots = {} & {
|
3
3
|
default?: (props: typeof __VLS_1) => any;
|
4
|
+
} & {
|
5
|
+
connecting?: (props: typeof __VLS_3) => any;
|
6
|
+
} & {
|
7
|
+
connect?: (props: typeof __VLS_5) => any;
|
4
8
|
};
|
5
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
10
|
+
open: () => void;
|
11
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
6
12
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
7
13
|
export default _default;
|
8
14
|
type __VLS_WithSlots<T, S> = T & {
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import { DTableProps } from "./types";
|
2
|
+
declare const _default: import("vue").DefineComponent<DTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DTableProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
3
|
+
export default _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { MetaDatabase } from "../../hooks/use-mata/types";
|
2
|
+
import { QueryConfig } from "../../hooks/use-query/types";
|
3
|
+
import { MTableButton, MTableColumn } from "../table-morghulis/types";
|
4
|
+
export type DTableProps = {
|
5
|
+
db: MetaDatabase;
|
6
|
+
entity: string;
|
7
|
+
code?: string;
|
8
|
+
auth?: boolean;
|
9
|
+
buttons?: MTableButton[];
|
10
|
+
columns?: MTableColumn[];
|
11
|
+
} & QueryConfig;
|
12
|
+
export type DTableInfo = {
|
13
|
+
current: number;
|
14
|
+
total: number;
|
15
|
+
page: number;
|
16
|
+
size: number;
|
17
|
+
};
|
@@ -0,0 +1,42 @@
|
|
1
|
+
import { type MTableProps } from "./types";
|
2
|
+
declare function getSelection(): any;
|
3
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_40: {
|
4
|
+
field: import("../../hooks/use-mata/types").MetaField;
|
5
|
+
row: any;
|
6
|
+
prop: string | number;
|
7
|
+
}, __VLS_42: {}, __VLS_44: {};
|
8
|
+
type __VLS_Slots = {} & {
|
9
|
+
header?: (props: typeof __VLS_1) => any;
|
10
|
+
} & {
|
11
|
+
'header-tool'?: (props: typeof __VLS_3) => any;
|
12
|
+
} & {
|
13
|
+
cell?: (props: typeof __VLS_40) => any;
|
14
|
+
} & {
|
15
|
+
footer?: (props: typeof __VLS_42) => any;
|
16
|
+
} & {
|
17
|
+
'footer-tool'?: (props: typeof __VLS_44) => any;
|
18
|
+
};
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<MTableProps, {
|
20
|
+
getSelection: typeof getSelection;
|
21
|
+
setSelection: (keys: any[]) => void;
|
22
|
+
closePopover: () => boolean;
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MTableProps> & Readonly<{}>, {
|
24
|
+
border: boolean;
|
25
|
+
fit: boolean;
|
26
|
+
showHeader: boolean;
|
27
|
+
highlightCurrentRow: boolean;
|
28
|
+
headerCellClassName: ((data: {
|
29
|
+
row: any;
|
30
|
+
column: any;
|
31
|
+
rowIndex: number;
|
32
|
+
columnIndex: number;
|
33
|
+
}) => string) | string;
|
34
|
+
showOverflowTooltip: boolean;
|
35
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
36
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
37
|
+
export default _default;
|
38
|
+
type __VLS_WithSlots<T, S> = T & {
|
39
|
+
new (): {
|
40
|
+
$slots: S;
|
41
|
+
};
|
42
|
+
};
|
@@ -0,0 +1,174 @@
|
|
1
|
+
import type { Component } from "vue";
|
2
|
+
import { type CSSProperties, type VNode } from "vue";
|
3
|
+
import { type ElTooltipProps, type Sort, type TreeNode } from "element-plus";
|
4
|
+
import { MetaView } from "../../hooks/use-mata/types";
|
5
|
+
/**
|
6
|
+
* style function
|
7
|
+
*/
|
8
|
+
type RowClassNameFn = (data: {
|
9
|
+
row: any;
|
10
|
+
rowIndex: number;
|
11
|
+
}) => string;
|
12
|
+
type RowStyleFn = (data: {
|
13
|
+
row: any;
|
14
|
+
rowIndex: number;
|
15
|
+
}) => CSSProperties;
|
16
|
+
type CellClassNameFn = (data: {
|
17
|
+
row: any;
|
18
|
+
column: any;
|
19
|
+
rowIndex: number;
|
20
|
+
columnIndex: number;
|
21
|
+
}) => string;
|
22
|
+
type CellStyleFn = (data: {
|
23
|
+
row: any;
|
24
|
+
column: any;
|
25
|
+
rowIndex: number;
|
26
|
+
columnIndex: number;
|
27
|
+
}) => CSSProperties;
|
28
|
+
type HeaderRowClassNameFn = (data: {
|
29
|
+
row: any;
|
30
|
+
rowIndex: number;
|
31
|
+
}) => string;
|
32
|
+
type HeaderRowStyleFn = (data: {
|
33
|
+
row: any;
|
34
|
+
rowIndex: number;
|
35
|
+
}) => CSSProperties;
|
36
|
+
type HeaderCellClassNameFn = (data: {
|
37
|
+
row: any;
|
38
|
+
column: any;
|
39
|
+
rowIndex: number;
|
40
|
+
columnIndex: number;
|
41
|
+
}) => string;
|
42
|
+
type HeaderCellStyleFn = (data: {
|
43
|
+
row: any;
|
44
|
+
column: any;
|
45
|
+
rowIndex: number;
|
46
|
+
columnIndex: number;
|
47
|
+
}) => CSSProperties;
|
48
|
+
/**
|
49
|
+
* control function
|
50
|
+
*/
|
51
|
+
type RowKeyFn = (row: any) => string;
|
52
|
+
type SpanMethodFn = (data: {
|
53
|
+
row: any;
|
54
|
+
column: any;
|
55
|
+
rowIndex: number;
|
56
|
+
columnIndex: number;
|
57
|
+
}) => number[] | {
|
58
|
+
rowspan: number;
|
59
|
+
colspan: number;
|
60
|
+
} | void;
|
61
|
+
type TooltipFormatterFn = (data: {
|
62
|
+
row: any;
|
63
|
+
column: any;
|
64
|
+
cellValue: any;
|
65
|
+
}) => VNode | string;
|
66
|
+
type SummaryMethodFn = (data: {
|
67
|
+
columns: any[];
|
68
|
+
data: any[];
|
69
|
+
}) => (VNode | string)[];
|
70
|
+
type LoadFn = (row: any, treeNode: TreeNode, resolve: (data: any[]) => void) => void;
|
71
|
+
export interface TableProps {
|
72
|
+
data: any[];
|
73
|
+
height?: number | string;
|
74
|
+
maxHeight?: number | string;
|
75
|
+
stripe?: boolean;
|
76
|
+
border?: boolean;
|
77
|
+
size?: '' | 'large' | 'default' | 'small';
|
78
|
+
fit?: boolean;
|
79
|
+
showHeader?: boolean;
|
80
|
+
highlightCurrentRow?: boolean;
|
81
|
+
currentRowKey?: string | number;
|
82
|
+
rowClassName?: RowClassNameFn | string;
|
83
|
+
rowStyle?: RowStyleFn | CSSProperties;
|
84
|
+
cellClassName?: CellClassNameFn | string;
|
85
|
+
cellStyle?: CellStyleFn | CSSProperties;
|
86
|
+
headerRowClassName?: HeaderRowClassNameFn | string;
|
87
|
+
headerRowStyle?: HeaderRowStyleFn | CSSProperties;
|
88
|
+
headerCellClassName?: HeaderCellClassNameFn | string;
|
89
|
+
headerCellStyle?: HeaderCellStyleFn | CSSProperties;
|
90
|
+
rowKey?: RowKeyFn | string;
|
91
|
+
emptyText?: string;
|
92
|
+
defaultExpandAll?: boolean;
|
93
|
+
expandRowKeys?: string[];
|
94
|
+
defaultSort?: Sort;
|
95
|
+
tooltipEffect?: 'dark' | 'light';
|
96
|
+
tooltipOptions?: Pick<ElTooltipProps, 'effect' | 'enterable' | 'hideAfter' | 'offset' | 'placement' | 'popperClass' | 'popperOptions' | 'showAfter' | 'showArrow'>;
|
97
|
+
appendFilterPanelTo?: string;
|
98
|
+
showSummary?: boolean;
|
99
|
+
sumText?: string;
|
100
|
+
summaryMethod?: SummaryMethodFn;
|
101
|
+
spanMethod?: SpanMethodFn;
|
102
|
+
selectOnIndeterminate?: boolean;
|
103
|
+
indent?: number;
|
104
|
+
lazy?: boolean;
|
105
|
+
load?: LoadFn;
|
106
|
+
treeProps?: {
|
107
|
+
hasChildren?: string;
|
108
|
+
children?: string;
|
109
|
+
checkStrictly?: boolean;
|
110
|
+
};
|
111
|
+
tableLayout?: 'fixed' | 'auto';
|
112
|
+
scrollbarAlwaysOn?: boolean;
|
113
|
+
showOverflowTooltip?: boolean;
|
114
|
+
flexible?: boolean;
|
115
|
+
scrollbarTabindex?: string | number;
|
116
|
+
allowDragLastColumn?: boolean;
|
117
|
+
tooltipFormatter?: TooltipFormatterFn;
|
118
|
+
preserveExpandedContent?: boolean;
|
119
|
+
}
|
120
|
+
export type MTableProps = TableProps & {
|
121
|
+
loading?: boolean;
|
122
|
+
view: MetaView;
|
123
|
+
buttons?: MTableButton[];
|
124
|
+
columns?: MTableColumn[];
|
125
|
+
sortableCallback?: MTableSortableFn;
|
126
|
+
};
|
127
|
+
export type MTablePopper = {
|
128
|
+
ref?: any;
|
129
|
+
visible?: boolean;
|
130
|
+
type?: string | null | undefined;
|
131
|
+
data?: any;
|
132
|
+
placement?: 'left' | 'right' | 'top' | 'bottom' | null | string;
|
133
|
+
};
|
134
|
+
export type MTableSortableFn = (newIndex: number, oldIndex: number) => void;
|
135
|
+
export type MTableButton = {
|
136
|
+
size?: 'default' | 'small' | 'large' | "";
|
137
|
+
handler?: (row: any, event?: Event) => void;
|
138
|
+
title?: string | Function;
|
139
|
+
type?: "success" | "info" | "warning" | "danger" | 'primary' | Function;
|
140
|
+
link?: boolean | Function;
|
141
|
+
plain?: boolean | Function;
|
142
|
+
text?: boolean | Function;
|
143
|
+
round?: boolean | Function;
|
144
|
+
circle?: boolean | Function;
|
145
|
+
disabled?: boolean | Function;
|
146
|
+
dark?: boolean | Function;
|
147
|
+
color?: string | Function;
|
148
|
+
tag?: string | Function;
|
149
|
+
};
|
150
|
+
export type MTableColumn = {
|
151
|
+
label: string;
|
152
|
+
component: Component;
|
153
|
+
width?: string | number;
|
154
|
+
};
|
155
|
+
export declare const mTablePropsDefaults: {
|
156
|
+
border: boolean;
|
157
|
+
fit: boolean;
|
158
|
+
showHeader: boolean;
|
159
|
+
highlightCurrentRow: boolean;
|
160
|
+
headerCellClassName: string;
|
161
|
+
showOverflowTooltip: boolean;
|
162
|
+
};
|
163
|
+
export declare const mTableTooltipOptions: {
|
164
|
+
placement: string;
|
165
|
+
popperClass: string;
|
166
|
+
enterable: boolean;
|
167
|
+
effect: string;
|
168
|
+
hideAfter: number;
|
169
|
+
offset: number;
|
170
|
+
popperOptions: {};
|
171
|
+
showAfter: number;
|
172
|
+
showArrow: boolean;
|
173
|
+
};
|
174
|
+
export {};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import
|
1
|
+
import { MorghulisChannelConfig, MorghulisChannelSimple } from "./types";
|
2
2
|
export declare function useMChannel(auth?: boolean): {
|
3
|
-
register: (handler: string, channel?: MorghulisChannelConfig, socketURL?: string) =>
|
4
|
-
getChannel: (handler: string) =>
|
3
|
+
register: (handler: string, channel?: MorghulisChannelConfig, socketURL?: string) => MorghulisChannelSimple;
|
4
|
+
getChannel: (handler: string) => MorghulisChannelSimple;
|
5
5
|
};
|
@@ -4,6 +4,10 @@ export type MorghulisChannelConfig = {
|
|
4
4
|
onStop?: () => void;
|
5
5
|
onProceed?: (payload: any) => void;
|
6
6
|
};
|
7
|
+
export type MorghulisChannelSimple = {
|
8
|
+
loading: Ref<boolean>;
|
9
|
+
activate: (body: any) => void;
|
10
|
+
};
|
7
11
|
export type MorghulisChannel = {
|
8
12
|
payload: Ref<any>;
|
9
13
|
loading: Ref<boolean>;
|
@@ -11,7 +15,7 @@ export type MorghulisChannel = {
|
|
11
15
|
$url: string;
|
12
16
|
$start: () => void;
|
13
17
|
$stop: () => void;
|
14
|
-
$proceed
|
18
|
+
$proceed: (payload: any) => void;
|
15
19
|
};
|
16
20
|
export type MorghulisChannels = {
|
17
21
|
[key: string]: MorghulisChannel;
|
@@ -1,9 +1,25 @@
|
|
1
1
|
import { type Ref } from "vue";
|
2
|
-
import { type Meta } from "../use-mata/types";
|
2
|
+
import { type Meta, MetaView } from "../use-mata/types";
|
3
3
|
import { MorghulisChannelConfig } from "../use-channel/types";
|
4
|
+
import { DataItem, Query } from "../use-query/types";
|
4
5
|
/**
|
5
6
|
* http和socket的loading冲突问题
|
6
7
|
*/
|
7
|
-
export declare function useMDao(meta: Ref<Meta>,
|
8
|
-
|
8
|
+
export declare function useMDao(meta: Ref<Meta>, channelConfig?: MorghulisChannelConfig, auth?: boolean): {
|
9
|
+
loading: import("vue").ComputedRef<boolean>;
|
10
|
+
find_many: (query: Query) => Promise<{
|
11
|
+
results: DataItem[];
|
12
|
+
total?: number;
|
13
|
+
}>;
|
14
|
+
save_one: (item: DataItem) => Promise<{
|
15
|
+
item: DataItem;
|
16
|
+
}>;
|
17
|
+
delete_one: (id: string | number) => Promise<boolean>;
|
18
|
+
find_one: (id: string | number) => Promise<{
|
19
|
+
item: DataItem;
|
20
|
+
}>;
|
21
|
+
delete_many: (query: Query) => Promise<boolean>;
|
22
|
+
update_many: (query: Query, template: DataItem) => Promise<boolean>;
|
23
|
+
load_view: () => Promise<MetaView>;
|
24
|
+
save_many: (array: DataItem[]) => void;
|
9
25
|
};
|
@@ -1,2 +1,3 @@
|
|
1
|
-
import {
|
2
|
-
|
1
|
+
import { Query, QueryConfig } from "./types";
|
2
|
+
import { ComputedRef, Ref } from "vue";
|
3
|
+
export declare function useMQuery(config?: Ref<QueryConfig>): ComputedRef<Query>;
|
@@ -1,20 +1,28 @@
|
|
1
1
|
export type DataItem = {
|
2
|
-
id?:
|
2
|
+
id?: DataItemId;
|
3
3
|
[key: string]: any;
|
4
4
|
};
|
5
|
-
|
6
|
-
|
5
|
+
type DataItemId = string | number;
|
6
|
+
type Orders = {
|
7
7
|
[key: string]: 1 | -1;
|
8
8
|
};
|
9
|
-
|
9
|
+
type Condition = {
|
10
10
|
includes: DataItem;
|
11
11
|
excludes: DataItem;
|
12
12
|
};
|
13
|
-
export type
|
13
|
+
export type QueryConfig = {
|
14
14
|
includes?: DataItem;
|
15
15
|
excludes?: DataItem;
|
16
16
|
orders?: Orders;
|
17
17
|
page?: number;
|
18
18
|
size?: number;
|
19
19
|
};
|
20
|
-
export type Query = {
|
20
|
+
export type Query = {
|
21
|
+
condition?: Condition;
|
22
|
+
orders?: Orders;
|
23
|
+
page?: number;
|
24
|
+
size?: number;
|
25
|
+
template?: DataItem;
|
26
|
+
search?: Condition[];
|
27
|
+
};
|
28
|
+
export {};
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { ComputedRef, Ref } from "vue";
|
2
|
+
import { DTableInfo, DTableProps } from "../../components/table-data/types";
|
3
|
+
import { Meta, MetaView } from "../use-mata/types";
|
4
|
+
import { DataItem, Query } from "../use-query/types";
|
5
|
+
export declare function useDTable(table: Ref, props: DTableProps): {
|
6
|
+
meta: ComputedRef<Meta>;
|
7
|
+
query: ComputedRef<Query>;
|
8
|
+
view: Ref<{
|
9
|
+
fields?: {
|
10
|
+
[key: string]: import("../use-mata/types").MetaField;
|
11
|
+
} | undefined;
|
12
|
+
path?: string | undefined;
|
13
|
+
code?: string | undefined;
|
14
|
+
meta_name?: string | undefined;
|
15
|
+
view_name?: string | undefined;
|
16
|
+
form_width?: number | undefined;
|
17
|
+
form_height?: number | undefined;
|
18
|
+
table_width?: number | undefined;
|
19
|
+
table_height?: number | undefined;
|
20
|
+
enable?: boolean | undefined;
|
21
|
+
show_header?: boolean | undefined;
|
22
|
+
allow_batch?: boolean | undefined;
|
23
|
+
allow_search?: boolean | undefined;
|
24
|
+
allow_sort?: boolean | undefined;
|
25
|
+
allow_pop?: boolean | undefined;
|
26
|
+
allow_insert?: boolean | undefined;
|
27
|
+
allow_edit?: boolean | undefined;
|
28
|
+
allow_remove?: boolean | undefined;
|
29
|
+
allow_download?: boolean | undefined;
|
30
|
+
allow_upload?: boolean | undefined;
|
31
|
+
}, MetaView | {
|
32
|
+
fields?: {
|
33
|
+
[key: string]: import("../use-mata/types").MetaField;
|
34
|
+
} | undefined;
|
35
|
+
path?: string | undefined;
|
36
|
+
code?: string | undefined;
|
37
|
+
meta_name?: string | undefined;
|
38
|
+
view_name?: string | undefined;
|
39
|
+
form_width?: number | undefined;
|
40
|
+
form_height?: number | undefined;
|
41
|
+
table_width?: number | undefined;
|
42
|
+
table_height?: number | undefined;
|
43
|
+
enable?: boolean | undefined;
|
44
|
+
show_header?: boolean | undefined;
|
45
|
+
allow_batch?: boolean | undefined;
|
46
|
+
allow_search?: boolean | undefined;
|
47
|
+
allow_sort?: boolean | undefined;
|
48
|
+
allow_pop?: boolean | undefined;
|
49
|
+
allow_insert?: boolean | undefined;
|
50
|
+
allow_edit?: boolean | undefined;
|
51
|
+
allow_remove?: boolean | undefined;
|
52
|
+
allow_download?: boolean | undefined;
|
53
|
+
allow_upload?: boolean | undefined;
|
54
|
+
}>;
|
55
|
+
info: Ref<{
|
56
|
+
current: number;
|
57
|
+
total: number;
|
58
|
+
page: number;
|
59
|
+
size: number;
|
60
|
+
}, DTableInfo | {
|
61
|
+
current: number;
|
62
|
+
total: number;
|
63
|
+
page: number;
|
64
|
+
size: number;
|
65
|
+
}>;
|
66
|
+
results: Ref<{
|
67
|
+
[x: string]: any;
|
68
|
+
id?: (string | number) | undefined;
|
69
|
+
}[], DataItem[] | {
|
70
|
+
[x: string]: any;
|
71
|
+
id?: (string | number) | undefined;
|
72
|
+
}[]>;
|
73
|
+
selection: ComputedRef<any[]>;
|
74
|
+
loading: ComputedRef<boolean>;
|
75
|
+
load: () => void;
|
76
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { type Ref } from "vue";
|
2
|
+
import { MTableProps } from "../../components/table-morghulis/types";
|
3
|
+
export declare function useMTable(table: Ref, props: MTableProps): {
|
4
|
+
popover: {
|
5
|
+
ref?: any;
|
6
|
+
visible?: boolean | undefined;
|
7
|
+
type?: string | null | undefined | undefined;
|
8
|
+
data?: any;
|
9
|
+
placement?: "left" | "right" | "top" | "bottom" | null | string | undefined;
|
10
|
+
};
|
11
|
+
selection: import("vue").ComputedRef<any>;
|
12
|
+
tableCellClassName: (data: any) => "m-table-cell" | "m-table-index" | "m-table-custom";
|
13
|
+
tableRowClassName: (payload: any) => "" | "m-table-current" | "m-table-highlight";
|
14
|
+
handleCellClick: (row: object, column: any, cell: any, event: any) => void;
|
15
|
+
handleCellContextMenu: (row: any, column: any, cell: any, event: any) => void;
|
16
|
+
showPopover: (event: {
|
17
|
+
clientX: number;
|
18
|
+
clientY: number;
|
19
|
+
}, type: string, data?: any, placement?: string) => void;
|
20
|
+
closePopover: () => boolean;
|
21
|
+
setSelection: (keys: any[]) => void;
|
22
|
+
hasSearchSlot: import("vue").ComputedRef<boolean>;
|
23
|
+
hasFieldSlot: import("vue").ComputedRef<boolean>;
|
24
|
+
hasMetaViewSlot: import("vue").ComputedRef<boolean>;
|
25
|
+
};
|
package/dist/types/index.d.ts
CHANGED
@@ -5,15 +5,19 @@ import { useMChannel } from "./hooks/use-channel";
|
|
5
5
|
import { useMSockets } from "./hooks/use-socket";
|
6
6
|
import { MorghulisOptions } from "./hooks/use-morghulis/types";
|
7
7
|
import type { MorghulisChannelConfig } from "./hooks/use-channel/types";
|
8
|
-
import MApp from "./MApp.vue";
|
9
8
|
import MDialog from "./components/dialog/MDialog.vue";
|
9
|
+
import MApp from "./MApp.vue";
|
10
|
+
import MTable from "./components/table-morghulis/MTable.vue";
|
11
|
+
import DTable from "./components/table-data/DTable.vue";
|
10
12
|
declare module "vue" {
|
11
13
|
interface GlobalComponents {
|
12
14
|
MApp: typeof MApp;
|
13
15
|
MDialog: typeof MDialog;
|
16
|
+
MTable: typeof MTable;
|
17
|
+
DTable: typeof DTable;
|
14
18
|
}
|
15
19
|
}
|
16
20
|
declare const createMorghulis: (options?: MorghulisOptions) => {
|
17
21
|
install(Vue: App): void;
|
18
22
|
};
|
19
|
-
export { MApp, MDialog, createMorghulis, useMRequest, useMChannel, useMSockets, MorghulisChannelConfig };
|
23
|
+
export { MApp, MDialog, MTable, DTable, createMorghulis, useMRequest, useMChannel, useMSockets, MorghulisChannelConfig };
|
package/package.json
CHANGED
File without changes
|