morghulis 1.0.31 → 1.0.32

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.
Files changed (42) hide show
  1. package/README.md +74 -350
  2. package/dist/index.css +1 -1
  3. package/dist/index.d.ts +1 -374
  4. package/dist/index.js +2857 -7666
  5. package/dist/index.js.map +1 -0
  6. package/package.json +25 -48
  7. package/dist/components/cell/MCell.vue.d.ts +0 -11
  8. package/dist/components/cell/char/CharCell.vue.d.ts +0 -15
  9. package/dist/components/cell/date/DateCell.vue.d.ts +0 -15
  10. package/dist/components/cell/refer/SelectCell.vue.d.ts +0 -15
  11. package/dist/components/cell/simple/BooleanCell.vue.d.ts +0 -15
  12. package/dist/components/cell/simple/DefaultCell.vue.d.ts +0 -15
  13. package/dist/components/cell/simple/NumberCell.vue.d.ts +0 -18
  14. package/dist/components/cell/useCellComponents.d.ts +0 -2
  15. package/dist/components/common/MCtrlBtn.vue.d.ts +0 -30
  16. package/dist/components/common/MOption.vue.d.ts +0 -10
  17. package/dist/components/dialog/MDialog.vue.d.ts +0 -57
  18. package/dist/components/dialog/MDialogHeader.vue.d.ts +0 -9
  19. package/dist/components/form/MForm.vue.d.ts +0 -13
  20. package/dist/components/table/MTable.vue.d.ts +0 -65
  21. package/dist/components/table/MTableButtons.vue.d.ts +0 -17
  22. package/dist/components/table/MTableHeader.vue.d.ts +0 -17
  23. package/dist/components/table/data/DCell.vue.d.ts +0 -18
  24. package/dist/components/table/data/DForm.vue.d.ts +0 -16
  25. package/dist/components/table/data/DTable.vue.d.ts +0 -78
  26. package/dist/components/table/data/DTableController.vue.d.ts +0 -19
  27. package/dist/components/table/data/DTablePopController.vue.d.ts +0 -13
  28. package/dist/components/table/data/useDTable.d.ts +0 -77
  29. package/dist/components/table/data/useDTableCell.d.ts +0 -6
  30. package/dist/components/table/useMTable.d.ts +0 -25
  31. package/dist/hooks/authorize.d.ts +0 -13
  32. package/dist/hooks/channel.d.ts +0 -13
  33. package/dist/hooks/cookies.d.ts +0 -6
  34. package/dist/hooks/request.d.ts +0 -5
  35. package/dist/hooks/socket.d.ts +0 -7
  36. package/dist/index.umd.cjs +0 -38
  37. package/dist/tools/dao.d.ts +0 -27
  38. package/dist/tools/feedback.d.ts +0 -4
  39. package/dist/tools/query.d.ts +0 -20
  40. package/dist/types/dialog/dialog.types.d.ts +0 -41
  41. package/dist/types/index.d.ts +0 -1
  42. package/dist/types/table/m.table.types.d.ts +0 -55
@@ -1,77 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- import { MetaView } from '../../../types/tool/meta.types';
2
- import { DataItem } from '../../../types/tool/dao.types';
3
- import { Ref } from 'vue';
4
- export default function useDTableCell(view: Ref<MetaView>): {
5
- getValue: (prop: string, row: DataItem) => any;
6
- };
@@ -1,25 +0,0 @@
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
- };
@@ -1,13 +0,0 @@
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
- };
@@ -1,13 +0,0 @@
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
- };
@@ -1,6 +0,0 @@
1
- export declare function useMorghulisCookies(): {
2
- get: (path: string) => any;
3
- set: (path: string, value?: any) => void;
4
- remove: (path: string) => void;
5
- load: (key: string, value?: any) => any;
6
- };
@@ -1,5 +0,0 @@
1
- import { AxiosInstance } from 'axios';
2
- export declare function useMorghulisRequest(): {
3
- getHttpRequest: (auth?: boolean) => AxiosInstance;
4
- all: () => void;
5
- };
@@ -1,7 +0,0 @@
1
- import { MorghulisSockets } from '../types/tool/channel.types';
2
- import { Ref } from 'vue';
3
- export declare function useMorghulisSockets(): {
4
- open: () => void;
5
- status: Ref<string, string>;
6
- };
7
- export declare function loadMorghulisSockets(baseURL: string): MorghulisSockets;