morghulis 1.0.26 → 1.0.27
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/components/cell/MCell.vue.d.ts +11 -0
- package/dist/components/cell/char/CharCell.vue.d.ts +15 -0
- package/dist/components/cell/date/DateCell.vue.d.ts +15 -0
- package/dist/components/cell/refer/SelectCell.vue.d.ts +15 -0
- package/dist/components/cell/simple/BooleanCell.vue.d.ts +15 -0
- package/dist/components/cell/simple/DefaultCell.vue.d.ts +15 -0
- package/dist/components/cell/simple/NumberCell.vue.d.ts +18 -0
- package/dist/components/cell/useCellComponents.d.ts +2 -0
- package/dist/components/common/MCtrlBtn.vue.d.ts +30 -0
- package/dist/components/common/MOption.vue.d.ts +10 -0
- package/dist/components/dialog/MDialog.vue.d.ts +57 -0
- package/dist/components/dialog/MDialogHeader.vue.d.ts +9 -0
- package/dist/components/form/MForm.vue.d.ts +13 -0
- package/dist/components/table/MTable.vue.d.ts +65 -0
- package/dist/components/table/MTableButtons.vue.d.ts +17 -0
- package/dist/components/table/MTableHeader.vue.d.ts +17 -0
- package/dist/components/table/data/DCell.vue.d.ts +18 -0
- package/dist/components/table/data/DForm.vue.d.ts +16 -0
- package/dist/components/table/data/DTable.vue.d.ts +78 -0
- package/dist/components/table/data/DTableController.vue.d.ts +19 -0
- package/dist/components/table/data/DTablePopController.vue.d.ts +13 -0
- package/dist/components/table/data/useDTable.d.ts +77 -0
- package/dist/components/table/data/useDTableCell.d.ts +6 -0
- package/dist/components/table/useMTable.d.ts +25 -0
- package/dist/hooks/authorize.d.ts +13 -0
- package/dist/hooks/channel.d.ts +13 -0
- package/dist/hooks/cookies.d.ts +6 -0
- package/dist/hooks/request.d.ts +5 -0
- package/dist/hooks/socket.d.ts +7 -0
- package/dist/index.d.ts +154 -0
- package/dist/index.js +1252 -1250
- package/dist/index.umd.cjs +19 -19
- package/dist/tools/dao.d.ts +27 -0
- package/dist/tools/feedback.d.ts +4 -0
- package/dist/tools/query.d.ts +20 -0
- package/dist/types/dialog/dialog.types.d.ts +41 -0
- package/dist/types/table/m.table.types.d.ts +55 -0
- package/package.json +3 -3
- package/dist/types.d.ts +0 -731
@@ -0,0 +1,11 @@
|
|
1
|
+
import { MetaField } from '../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes, DataItem } from '../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
field: MetaField;
|
6
|
+
bean: DataItem;
|
7
|
+
db: DaoTypes;
|
8
|
+
disabled: boolean;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
11
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
2
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
field: MetaField;
|
8
|
+
db: DaoTypes;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
2
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
2
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
modelValue: any;
|
6
|
+
disabled: boolean;
|
7
|
+
db: DaoTypes;
|
8
|
+
field: MetaField;
|
9
|
+
};
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
"update:modelValue": (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
15
|
+
export default _default;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { MetaField } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
/**
|
5
|
+
* 通用
|
6
|
+
*/
|
7
|
+
type __VLS_Props = {
|
8
|
+
modelValue: any;
|
9
|
+
disabled: boolean;
|
10
|
+
db: DaoTypes;
|
11
|
+
field: MetaField;
|
12
|
+
};
|
13
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
14
|
+
"update:modelValue": (...args: any[]) => void;
|
15
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
16
|
+
"onUpdate:modelValue"?: (...args: any[]) => any;
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
18
|
+
export default _default;
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { UISizeTypes, UITextTypes } from '../../types/morghulis.types';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
type __VLS_Props = {
|
4
|
+
disabled?: boolean;
|
5
|
+
type?: UITextTypes;
|
6
|
+
size?: UISizeTypes;
|
7
|
+
title?: string;
|
8
|
+
icon?: string;
|
9
|
+
};
|
10
|
+
declare function __VLS_template(): {
|
11
|
+
attrs: Partial<{}>;
|
12
|
+
slots: {
|
13
|
+
default?(_: {}): any;
|
14
|
+
};
|
15
|
+
refs: {};
|
16
|
+
rootEl: any;
|
17
|
+
};
|
18
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
19
|
+
declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
20
|
+
click: (...args: any[]) => void;
|
21
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
22
|
+
onClick?: (...args: any[]) => any;
|
23
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
24
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
25
|
+
export default _default;
|
26
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
27
|
+
new (): {
|
28
|
+
$slots: S;
|
29
|
+
};
|
30
|
+
};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
type __VLS_Props = {
|
3
|
+
option: {
|
4
|
+
label: any;
|
5
|
+
value: any;
|
6
|
+
display: any;
|
7
|
+
};
|
8
|
+
};
|
9
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
10
|
+
export default _default;
|
@@ -0,0 +1,57 @@
|
|
1
|
+
import { MorghulisDialogProps, MorghulisDialogConfig } from '../../types/dialog/dialog.types.ts';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
declare function open(data?: any, config?: MorghulisDialogConfig): void;
|
4
|
+
declare function close(): void;
|
5
|
+
declare function __VLS_template(): any;
|
6
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
7
|
+
declare const __VLS_component: DefineComponent<MorghulisDialogProps, {
|
8
|
+
open: typeof open;
|
9
|
+
close: typeof close;
|
10
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
11
|
+
close: (...args: any[]) => void;
|
12
|
+
"update:title": (...args: any[]) => void;
|
13
|
+
"update:subtitle": (...args: any[]) => void;
|
14
|
+
}, string, PublicProps, Readonly<MorghulisDialogProps> & Readonly<{
|
15
|
+
onClose?: (...args: any[]) => any;
|
16
|
+
"onUpdate:title"?: (...args: any[]) => any;
|
17
|
+
"onUpdate:subtitle"?: (...args: any[]) => any;
|
18
|
+
}>, {
|
19
|
+
title: string;
|
20
|
+
subtitle: string;
|
21
|
+
confirmButtonText: string;
|
22
|
+
cancelButtonText: string;
|
23
|
+
cancel: (data: any, done: () => void) => void;
|
24
|
+
width: string | number;
|
25
|
+
fullscreen: boolean;
|
26
|
+
top: string;
|
27
|
+
modal: boolean;
|
28
|
+
modalClass: string;
|
29
|
+
headerClass: string;
|
30
|
+
bodyClass: string;
|
31
|
+
footerClass: string;
|
32
|
+
appendToBody: boolean;
|
33
|
+
appendTo: string;
|
34
|
+
lockScroll: boolean;
|
35
|
+
openDelay: number;
|
36
|
+
closeDelay: number;
|
37
|
+
closeOnClickModal: boolean;
|
38
|
+
closeOnPressEscape: boolean;
|
39
|
+
showClose: boolean;
|
40
|
+
beforeClose: (done: () => void) => void;
|
41
|
+
draggable: boolean;
|
42
|
+
overFlow: boolean;
|
43
|
+
center: boolean;
|
44
|
+
alignCenter: boolean;
|
45
|
+
destroyOnClose: boolean;
|
46
|
+
closeIcon: string;
|
47
|
+
zIndex: number;
|
48
|
+
headerAriaLevel: string;
|
49
|
+
confirm: (data: any, done: () => void) => void;
|
50
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
51
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
52
|
+
export default _default;
|
53
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
54
|
+
new (): {
|
55
|
+
$slots: S;
|
56
|
+
};
|
57
|
+
};
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { MorghulisDialogConfig } from '../../types/dialog/dialog.types.ts';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
type __VLS_Props = {
|
4
|
+
title: string;
|
5
|
+
subtitle: string;
|
6
|
+
config: MorghulisDialogConfig;
|
7
|
+
};
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
9
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { DaoTypes, DataItem } from '../../types/tool/dao.types.ts';
|
2
|
+
import { MetaView } from '../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
item: DataItem;
|
6
|
+
view: MetaView;
|
7
|
+
db: DaoTypes;
|
8
|
+
};
|
9
|
+
declare function getData(): any;
|
10
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
11
|
+
getData: typeof getData;
|
12
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
13
|
+
export default _default;
|
@@ -0,0 +1,65 @@
|
|
1
|
+
import { MorghulisTableProps } from '../../types/table/m.table.types.ts';
|
2
|
+
import { MetaField, MetaView } from '../../types/tool/meta.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
declare function getSelection(): any;
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: {
|
8
|
+
header?(_: {}): any;
|
9
|
+
'header-tool'?(_: {}): any;
|
10
|
+
cell?(_: {
|
11
|
+
field: MetaField;
|
12
|
+
row: any;
|
13
|
+
prop: string | number;
|
14
|
+
}): any;
|
15
|
+
footer?(_: {}): any;
|
16
|
+
'footer-tool'?(_: {}): any;
|
17
|
+
'pop-meta'?(_: {
|
18
|
+
view: MetaView;
|
19
|
+
}): any;
|
20
|
+
'pop-search'?(_: {
|
21
|
+
field: any;
|
22
|
+
}): any;
|
23
|
+
'pop-field'?(_: {
|
24
|
+
field: any;
|
25
|
+
}): any;
|
26
|
+
'pop-cell'?(_: {
|
27
|
+
data: any;
|
28
|
+
prop: any;
|
29
|
+
}): any;
|
30
|
+
'pop-index'?(_: {
|
31
|
+
row: any;
|
32
|
+
}): any;
|
33
|
+
};
|
34
|
+
refs: {
|
35
|
+
table: unknown;
|
36
|
+
};
|
37
|
+
rootEl: any;
|
38
|
+
};
|
39
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
40
|
+
declare const __VLS_component: DefineComponent<MorghulisTableProps, {
|
41
|
+
getSelection: typeof getSelection;
|
42
|
+
setSelection: (keys: any[]) => void;
|
43
|
+
closePopover: () => boolean;
|
44
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<MorghulisTableProps> & Readonly<{}>, {
|
45
|
+
border: boolean;
|
46
|
+
fit: boolean;
|
47
|
+
showHeader: boolean;
|
48
|
+
highlightCurrentRow: boolean;
|
49
|
+
headerCellClassName: ((data: {
|
50
|
+
row: any;
|
51
|
+
column: any;
|
52
|
+
rowIndex: number;
|
53
|
+
columnIndex: number;
|
54
|
+
}) => string) | string;
|
55
|
+
showOverflowTooltip: boolean;
|
56
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
57
|
+
table: unknown;
|
58
|
+
}, any>;
|
59
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
60
|
+
export default _default;
|
61
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
62
|
+
new (): {
|
63
|
+
$slots: S;
|
64
|
+
};
|
65
|
+
};
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { MTableButton } from '../../types/table/m.table.types.ts';
|
2
|
+
import { DataItem } from '../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
buttons: MTableButton[];
|
6
|
+
item: DataItem;
|
7
|
+
};
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
9
|
+
click: (...args: any[]) => void;
|
10
|
+
width: (...args: any[]) => void;
|
11
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
12
|
+
onClick?: (...args: any[]) => any;
|
13
|
+
onWidth?: (...args: any[]) => any;
|
14
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
15
|
+
wrapper: HTMLDivElement;
|
16
|
+
}, HTMLDivElement>;
|
17
|
+
export default _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { MetaField, MetaView } from '../../types/tool/meta.types';
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
3
|
+
type __VLS_Props = {
|
4
|
+
view: MetaView;
|
5
|
+
field: MetaField;
|
6
|
+
order?: object;
|
7
|
+
};
|
8
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
9
|
+
search: (...args: any[]) => void;
|
10
|
+
meta: (...args: any[]) => void;
|
11
|
+
order: (...args: any[]) => void;
|
12
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
13
|
+
onSearch?: (...args: any[]) => any;
|
14
|
+
onMeta?: (...args: any[]) => any;
|
15
|
+
onOrder?: (...args: any[]) => any;
|
16
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
17
|
+
export default _default;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { DaoTypes, DataItem } from '../../../types/tool/dao.types';
|
2
|
+
import { MetaView } from '../../../types/tool/meta.types';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
view: MetaView;
|
6
|
+
prop: string;
|
7
|
+
bean: DataItem;
|
8
|
+
db: DaoTypes;
|
9
|
+
disabled?: boolean;
|
10
|
+
};
|
11
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
12
|
+
cancel: (...args: any[]) => void;
|
13
|
+
save: (...args: any[]) => void;
|
14
|
+
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
15
|
+
onCancel?: (...args: any[]) => any;
|
16
|
+
onSave?: (...args: any[]) => any;
|
17
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
18
|
+
export default _default;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { MetaView } from '../../../types/tool/meta.types.ts';
|
2
|
+
import { DaoTypes, DataItem } from '../../../types/tool/dao.types.ts';
|
3
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
4
|
+
type __VLS_Props = {
|
5
|
+
selection: any[];
|
6
|
+
view: MetaView;
|
7
|
+
db: DaoTypes;
|
8
|
+
bean: DataItem;
|
9
|
+
};
|
10
|
+
declare function getData(): any[];
|
11
|
+
declare const _default: DefineComponent<__VLS_Props, {
|
12
|
+
getData: typeof getData;
|
13
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
14
|
+
form: unknown;
|
15
|
+
}, any>;
|
16
|
+
export default _default;
|
@@ -0,0 +1,78 @@
|
|
1
|
+
import { DTableProps } from '../../../types/table/m.table.types';
|
2
|
+
import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
3
|
+
import { MetaView } from '../../../types/tool/meta.types';
|
4
|
+
import { DaoTypes, DataItem } from '../../../types/tool/dao.types';
|
5
|
+
declare function __VLS_template(): {
|
6
|
+
attrs: Partial<{}>;
|
7
|
+
slots: {
|
8
|
+
header?(_: {}): any;
|
9
|
+
};
|
10
|
+
refs: {
|
11
|
+
table: unknown;
|
12
|
+
dialog: unknown;
|
13
|
+
form: CreateComponentPublicInstanceWithMixins<Readonly<{
|
14
|
+
selection: any[];
|
15
|
+
view: MetaView;
|
16
|
+
db: DaoTypes;
|
17
|
+
bean: DataItem;
|
18
|
+
}> & Readonly<{}>, {
|
19
|
+
getData: () => any[];
|
20
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
21
|
+
form: unknown;
|
22
|
+
}, any, ComponentProvideOptions, {
|
23
|
+
P: {};
|
24
|
+
B: {};
|
25
|
+
D: {};
|
26
|
+
C: {};
|
27
|
+
M: {};
|
28
|
+
Defaults: {};
|
29
|
+
}, Readonly<{
|
30
|
+
selection: any[];
|
31
|
+
view: MetaView;
|
32
|
+
db: DaoTypes;
|
33
|
+
bean: DataItem;
|
34
|
+
}> & Readonly<{}>, {
|
35
|
+
getData: () => any[];
|
36
|
+
}, {}, {}, {}, {}>;
|
37
|
+
};
|
38
|
+
rootEl: any;
|
39
|
+
};
|
40
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
41
|
+
declare const __VLS_component: DefineComponent<DTableProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<DTableProps> & Readonly<{}>, {
|
42
|
+
size: number;
|
43
|
+
page: number;
|
44
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
45
|
+
table: unknown;
|
46
|
+
dialog: unknown;
|
47
|
+
form: CreateComponentPublicInstanceWithMixins<Readonly<{
|
48
|
+
selection: any[];
|
49
|
+
view: MetaView;
|
50
|
+
db: DaoTypes;
|
51
|
+
bean: DataItem;
|
52
|
+
}> & Readonly<{}>, {
|
53
|
+
getData: () => any[];
|
54
|
+
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {}, false, {}, {}, GlobalComponents, GlobalDirectives, string, {
|
55
|
+
form: unknown;
|
56
|
+
}, any, ComponentProvideOptions, {
|
57
|
+
P: {};
|
58
|
+
B: {};
|
59
|
+
D: {};
|
60
|
+
C: {};
|
61
|
+
M: {};
|
62
|
+
Defaults: {};
|
63
|
+
}, Readonly<{
|
64
|
+
selection: any[];
|
65
|
+
view: MetaView;
|
66
|
+
db: DaoTypes;
|
67
|
+
bean: DataItem;
|
68
|
+
}> & Readonly<{}>, {
|
69
|
+
getData: () => any[];
|
70
|
+
}, {}, {}, {}, {}>;
|
71
|
+
}, any>;
|
72
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
73
|
+
export default _default;
|
74
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
75
|
+
new (): {
|
76
|
+
$slots: S;
|
77
|
+
};
|
78
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
declare const _default: DefineComponent<{
|
3
|
+
selection?: any;
|
4
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
5
|
+
copy: (...args: any[]) => void;
|
6
|
+
open: (...args: any[]) => void;
|
7
|
+
remove: (...args: any[]) => void;
|
8
|
+
upload: (...args: any[]) => void;
|
9
|
+
download: (...args: any[]) => void;
|
10
|
+
}, string, PublicProps, Readonly<{
|
11
|
+
selection?: any;
|
12
|
+
}> & Readonly<{
|
13
|
+
onCopy?: (...args: any[]) => any;
|
14
|
+
onOpen?: (...args: any[]) => any;
|
15
|
+
onRemove?: (...args: any[]) => any;
|
16
|
+
onUpload?: (...args: any[]) => any;
|
17
|
+
onDownload?: (...args: any[]) => any;
|
18
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
19
|
+
export default _default;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
2
|
+
declare const _default: DefineComponent<{
|
3
|
+
selection?: any;
|
4
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
5
|
+
open: (...args: any[]) => void;
|
6
|
+
remove: (...args: any[]) => void;
|
7
|
+
}, string, PublicProps, Readonly<{
|
8
|
+
selection?: any;
|
9
|
+
}> & Readonly<{
|
10
|
+
onOpen?: (...args: any[]) => any;
|
11
|
+
onRemove?: (...args: any[]) => any;
|
12
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
13
|
+
export default _default;
|
@@ -0,0 +1,77 @@
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
2
|
+
import { Meta, MetaView, MetaField } from '../../../types/tool/meta.types';
|
3
|
+
import { Query } from '../../../tools/query';
|
4
|
+
import { DTableProps } from '../../../types/table/m.table.types';
|
5
|
+
import { DataItem } from '../../../types/tool/dao.types.ts';
|
6
|
+
export declare function useDTable(table: Ref, props: DTableProps): {
|
7
|
+
meta: ComputedRef<Meta>;
|
8
|
+
query: ComputedRef<Query>;
|
9
|
+
view: Ref<{
|
10
|
+
fields?: {
|
11
|
+
[key: string]: MetaField;
|
12
|
+
};
|
13
|
+
path?: string;
|
14
|
+
code?: string;
|
15
|
+
meta_name?: string;
|
16
|
+
view_name?: string;
|
17
|
+
form_width?: number;
|
18
|
+
form_height?: number;
|
19
|
+
table_width?: number;
|
20
|
+
table_height?: number;
|
21
|
+
enable?: boolean;
|
22
|
+
show_header?: boolean;
|
23
|
+
allow_batch?: boolean;
|
24
|
+
allow_search?: boolean;
|
25
|
+
allow_sort?: boolean;
|
26
|
+
allow_pop?: boolean;
|
27
|
+
allow_insert?: boolean;
|
28
|
+
allow_edit?: boolean;
|
29
|
+
allow_remove?: boolean;
|
30
|
+
allow_download?: boolean;
|
31
|
+
allow_upload?: boolean;
|
32
|
+
}, MetaView | {
|
33
|
+
fields?: {
|
34
|
+
[key: string]: MetaField;
|
35
|
+
};
|
36
|
+
path?: string;
|
37
|
+
code?: string;
|
38
|
+
meta_name?: string;
|
39
|
+
view_name?: string;
|
40
|
+
form_width?: number;
|
41
|
+
form_height?: number;
|
42
|
+
table_width?: number;
|
43
|
+
table_height?: number;
|
44
|
+
enable?: boolean;
|
45
|
+
show_header?: boolean;
|
46
|
+
allow_batch?: boolean;
|
47
|
+
allow_search?: boolean;
|
48
|
+
allow_sort?: boolean;
|
49
|
+
allow_pop?: boolean;
|
50
|
+
allow_insert?: boolean;
|
51
|
+
allow_edit?: boolean;
|
52
|
+
allow_remove?: boolean;
|
53
|
+
allow_download?: boolean;
|
54
|
+
allow_upload?: boolean;
|
55
|
+
}>;
|
56
|
+
info: {
|
57
|
+
current: number;
|
58
|
+
total: number;
|
59
|
+
page: number;
|
60
|
+
size: number;
|
61
|
+
};
|
62
|
+
results: Ref<DataItem[], DataItem[]>;
|
63
|
+
selection: ComputedRef<any[]>;
|
64
|
+
status: {
|
65
|
+
loading: boolean;
|
66
|
+
payload?: {
|
67
|
+
length: number | string;
|
68
|
+
index: number | string;
|
69
|
+
percentage: number;
|
70
|
+
};
|
71
|
+
};
|
72
|
+
loading: ComputedRef<boolean>;
|
73
|
+
load: () => void;
|
74
|
+
remove: (id?: number | string) => void;
|
75
|
+
upload: (array: any[]) => void;
|
76
|
+
collect: (callback: (item: DataItem) => void) => void;
|
77
|
+
};
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import { Ref, ComputedRef } from 'vue';
|
2
|
+
import { MorghulisTableProps } from '../../types/table/m.table.types.ts';
|
3
|
+
export declare function useMorghulisTable(table: Ref, props: MorghulisTableProps): {
|
4
|
+
popover: {
|
5
|
+
ref?: any;
|
6
|
+
visible?: boolean;
|
7
|
+
type?: string | null | undefined;
|
8
|
+
data?: any;
|
9
|
+
placement?: "left" | "right" | "top" | "bottom" | null | string;
|
10
|
+
};
|
11
|
+
selection: 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: ComputedRef<boolean>;
|
23
|
+
hasFieldSlot: ComputedRef<boolean>;
|
24
|
+
hasMetaViewSlot: ComputedRef<boolean>;
|
25
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare const SYSTEM_KEY: {
|
2
|
+
CLIENT: string;
|
3
|
+
USER: string;
|
4
|
+
AUTH: string;
|
5
|
+
};
|
6
|
+
export declare function useMorghulisAuthorize(): {
|
7
|
+
$client: string;
|
8
|
+
user: () => any;
|
9
|
+
check: (uid?: any) => boolean;
|
10
|
+
login: (uid: any) => void;
|
11
|
+
logout: () => void;
|
12
|
+
bearer: () => string;
|
13
|
+
};
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { MorghulisChannel } from '../types/tool/channel.types.ts';
|
2
|
+
export declare function useMorghulisChannel(auth?: boolean): {
|
3
|
+
register: (handler: string, channel: MorghulisChannel, url?: string) => void;
|
4
|
+
activate: (body: any) => void;
|
5
|
+
status: {
|
6
|
+
loading: boolean;
|
7
|
+
payload?: {
|
8
|
+
length: number | string;
|
9
|
+
index: number | string;
|
10
|
+
percentage: number;
|
11
|
+
};
|
12
|
+
};
|
13
|
+
};
|