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.
Files changed (158) hide show
  1. package/README.md +33 -0
  2. package/dist/favicon.ico +0 -0
  3. package/dist/index.css +1 -1
  4. package/dist/morghulis.es.js +46634 -42292
  5. package/dist/morghulis.es.js.map +1 -1
  6. package/dist/morghulis.umd.js +91 -82
  7. package/dist/morghulis.umd.js.map +1 -1
  8. package/dist/types/MApp.vue.d.ts +1 -17
  9. package/dist/types/{hooks/use-auth/index.d.ts → core/auth.d.ts} +5 -0
  10. package/dist/types/core/feedbacks.d.ts +18 -0
  11. package/dist/types/core/socket.d.ts +5 -0
  12. package/dist/types/{hooks/use-morghulis → core}/types.d.ts +3 -2
  13. package/dist/types/{hooks/use-morghulis/index.d.ts → core.d.ts} +1 -1
  14. package/dist/types/hooks/use-channel/Channel.d.ts +18 -0
  15. package/dist/types/hooks/use-channel/ChannelHub.d.ts +10 -0
  16. package/dist/types/hooks/use-channel/config.d.ts +18 -0
  17. package/dist/types/hooks/use-channel/index.d.ts +4 -9
  18. package/dist/types/hooks/use-channel/types.d.ts +5 -36
  19. package/dist/types/hooks/use-request/index.d.ts +5 -1
  20. package/dist/types/index.d.ts +4 -27
  21. package/package.json +3 -3
  22. package/dist/types/components/button/MCtrlBtn.vue.d.ts +0 -23
  23. package/dist/types/components/button/MDialogButton.vue.d.ts +0 -31
  24. package/dist/types/components/cell/MCell.vue.d.ts +0 -11
  25. package/dist/types/components/cell/char/CharCell.vue.d.ts +0 -7
  26. package/dist/types/components/cell/char/ColorCell.vue.d.ts +0 -7
  27. package/dist/types/components/cell/char/IconCell.vue.d.ts +0 -7
  28. package/dist/types/components/cell/char/SetCell.vue.d.ts +0 -7
  29. package/dist/types/components/cell/date/DateArrayCell.vue.d.ts +0 -7
  30. package/dist/types/components/cell/date/DateCell.vue.d.ts +0 -7
  31. package/dist/types/components/cell/date/DateRangeCell.vue.d.ts +0 -7
  32. package/dist/types/components/cell/date/TimeCell.vue.d.ts +0 -7
  33. package/dist/types/components/cell/date/TimeRangeCell.vue.d.ts +0 -7
  34. package/dist/types/components/cell/hook.d.ts +0 -13
  35. package/dist/types/components/cell/refer/AutoCell.vue.d.ts +0 -7
  36. package/dist/types/components/cell/refer/CascadeCell.vue.d.ts +0 -7
  37. package/dist/types/components/cell/refer/SelectCell.vue.d.ts +0 -7
  38. package/dist/types/components/cell/refer/TransferCell.vue.d.ts +0 -7
  39. package/dist/types/components/cell/refer/TreeCell.vue.d.ts +0 -7
  40. package/dist/types/components/cell/simple/BooleanCell.vue.d.ts +0 -7
  41. package/dist/types/components/cell/simple/DefaultCell.vue.d.ts +0 -7
  42. package/dist/types/components/cell/simple/NoneCell.vue.d.ts +0 -2
  43. package/dist/types/components/cell/simple/NumberCell.vue.d.ts +0 -7
  44. package/dist/types/components/cell/simple/SwitchCell.vue.d.ts +0 -2
  45. package/dist/types/components/cell/special/FileCell.vue.d.ts +0 -3
  46. package/dist/types/components/cell/special/ObjectCell.vue.d.ts +0 -7
  47. package/dist/types/components/cell/special/RichCell.vue.d.ts +0 -2
  48. package/dist/types/components/cell/tool.d.ts +0 -9
  49. package/dist/types/components/cell/types.d.ts +0 -9
  50. package/dist/types/components/common/MIcon.vue.d.ts +0 -19
  51. package/dist/types/components/common/MJsonEditor.vue.d.ts +0 -9
  52. package/dist/types/components/common/MOption.vue.d.ts +0 -7
  53. package/dist/types/components/common/MOptions.vue.d.ts +0 -7
  54. package/dist/types/components/common/MReader.vue.d.ts +0 -7
  55. package/dist/types/components/common/reader/CsvReader.vue.d.ts +0 -5
  56. package/dist/types/components/common/reader/ExcelReader.vue.d.ts +0 -2
  57. package/dist/types/components/common/reader/ImageReader.vue.d.ts +0 -5
  58. package/dist/types/components/common/reader/PdfReader.vue.d.ts +0 -2
  59. package/dist/types/components/common/types.d.ts +0 -2
  60. package/dist/types/components/dialog/DDialog.vue.d.ts +0 -15
  61. package/dist/types/components/dialog/MButtonDialog.vue.d.ts +0 -2
  62. package/dist/types/components/dialog/MDialog.vue.d.ts +0 -72
  63. package/dist/types/components/dialog/MDialogHeader.vue.d.ts +0 -8
  64. package/dist/types/components/dialog/index.d.ts +0 -44
  65. package/dist/types/components/feedback/feedback.d.ts +0 -4
  66. package/dist/types/components/feedback/index.d.ts +0 -13
  67. package/dist/types/components/form/DForm.vue.d.ts +0 -13
  68. package/dist/types/components/form/MForm.vue.d.ts +0 -13
  69. package/dist/types/components/meta/MetaCore.vue.d.ts +0 -5
  70. package/dist/types/components/meta/fields/MetaFieldAdd.vue.d.ts +0 -10
  71. package/dist/types/components/meta/fields/MetaFieldForm.vue.d.ts +0 -10
  72. package/dist/types/components/meta/fields/MetaFieldFormat.vue.d.ts +0 -10
  73. package/dist/types/components/meta/fields/MetaFieldList.vue.d.ts +0 -6
  74. package/dist/types/components/meta/fields/MetaFieldRefer.vue.d.ts +0 -24
  75. package/dist/types/components/meta/fields/formats/DateFormats.vue.d.ts +0 -29
  76. package/dist/types/components/meta/fields/formats/FileFormats.vue.d.ts +0 -29
  77. package/dist/types/components/meta/fields/formats/NumberFormats.vue.d.ts +0 -29
  78. package/dist/types/components/meta/fields/formats/SetFormats.vue.d.ts +0 -29
  79. package/dist/types/components/meta/fields/formats/TextFormats.vue.d.ts +0 -29
  80. package/dist/types/components/meta/fields/widgets/TreeRootSelection.vue.d.ts +0 -6
  81. package/dist/types/components/meta/tool.d.ts +0 -1
  82. package/dist/types/components/meta/view/MetaViewForm.vue.d.ts +0 -12
  83. package/dist/types/components/meta/view/tools.d.ts +0 -0
  84. package/dist/types/components/meta/widgets/CopyMetaFields.vue.d.ts +0 -6
  85. package/dist/types/components/meta/widgets/MetaFrame.vue.d.ts +0 -2
  86. package/dist/types/components/meta/widgets/MetaSelect.vue.d.ts +0 -15
  87. package/dist/types/components/meta/widgets/ViewMetaData.vue.d.ts +0 -6
  88. package/dist/types/components/table/aoa/ATable.vue.d.ts +0 -10
  89. package/dist/types/components/table/data/DTable.vue.d.ts +0 -18
  90. package/dist/types/components/table/data/hook.d.ts +0 -124
  91. package/dist/types/components/table/data/popover/DCellPopover.vue.d.ts +0 -19
  92. package/dist/types/components/table/data/popover/DFieldPopover.vue.d.ts +0 -16
  93. package/dist/types/components/table/data/popover/DIndexPopover.vue.d.ts +0 -16
  94. package/dist/types/components/table/data/popover/DMetaPopover.vue.d.ts +0 -16
  95. package/dist/types/components/table/data/popover/DSearchPopover.vue.d.ts +0 -16
  96. package/dist/types/components/table/data/slots/DTableCell.vue.d.ts +0 -10
  97. package/dist/types/components/table/data/slots/DTableEmpty.vue.d.ts +0 -2
  98. package/dist/types/components/table/data/slots/DTableFooter.vue.d.ts +0 -13
  99. package/dist/types/components/table/data/slots/DTableFooterTool.vue.d.ts +0 -10
  100. package/dist/types/components/table/data/slots/DTableHeader.vue.d.ts +0 -8
  101. package/dist/types/components/table/data/slots/DTableHeaderCell.vue.d.ts +0 -2
  102. package/dist/types/components/table/data/slots/DTableHeaderTool.vue.d.ts +0 -31
  103. package/dist/types/components/table/data/tool.d.ts +0 -0
  104. package/dist/types/components/table/data/types.d.ts +0 -11
  105. package/dist/types/components/table/simple/MTable.vue.d.ts +0 -41
  106. package/dist/types/components/table/simple/buttons/MTableButtonWrapper.vue.d.ts +0 -10
  107. package/dist/types/components/table/simple/columns/MTableColumnWrapper.vue.d.ts +0 -6
  108. package/dist/types/components/table/simple/hook.d.ts +0 -17
  109. package/dist/types/components/table/simple/tool.d.ts +0 -19
  110. package/dist/types/components/table/simple/types.d.ts +0 -46
  111. package/dist/types/components/table/simple/widgets/MTableHeader.vue.d.ts +0 -28
  112. package/dist/types/components/table/simple/widgets/MTableIndex.vue.d.ts +0 -15
  113. package/dist/types/components/table/upload/DTableUpload.vue.d.ts +0 -11
  114. package/dist/types/components/table/upload/control/DTableUploadActivator.vue.d.ts +0 -6
  115. package/dist/types/components/table/upload/control/DTableUploadButtons.vue.d.ts +0 -12
  116. package/dist/types/components/table/upload/control/DTableUploadController.vue.d.ts +0 -16
  117. package/dist/types/components/table/upload/types.d.ts +0 -5
  118. package/dist/types/components/table/virtual/VTable.vue.d.ts +0 -34
  119. package/dist/types/components/tree/data/DTree.vue.d.ts +0 -45
  120. package/dist/types/components/tree/data/hook.d.ts +0 -127
  121. package/dist/types/components/tree/data/popover/DTreeIndexPopover.vue.d.ts +0 -19
  122. package/dist/types/components/tree/data/popover/DTreeMetaPopover.vue.d.ts +0 -16
  123. package/dist/types/components/tree/data/slots/DTreeHeaderTool.vue.d.ts +0 -16
  124. package/dist/types/components/tree/data/slots/DTreePop.vue.d.ts +0 -10
  125. package/dist/types/components/tree/data/types.d.ts +0 -10
  126. package/dist/types/components/tree/data/widgets/DTreeAdd.vue.d.ts +0 -10
  127. package/dist/types/components/tree/data/widgets/DTreeTable.vue.d.ts +0 -9
  128. package/dist/types/components/tree/data/widgets/DTreeTableNode.vue.d.ts +0 -6
  129. package/dist/types/components/tree/simple/MTree.vue.d.ts +0 -76
  130. package/dist/types/components/tree/simple/hook.d.ts +0 -40
  131. package/dist/types/components/tree/simple/tool.d.ts +0 -4
  132. package/dist/types/components/tree/simple/types.d.ts +0 -18
  133. package/dist/types/components/tree/simple/widgets/MTreeExpand.vue.d.ts +0 -12
  134. package/dist/types/components/tree/simple/widgets/MTreeNode.vue.d.ts +0 -21
  135. package/dist/types/components/tree/tool.d.ts +0 -7
  136. package/dist/types/components/tree/types.d.ts +0 -20
  137. package/dist/types/components/wrapper/MWrapper.vue.d.ts +0 -37
  138. package/dist/types/components/wrapper/MWrapperPopContent.vue.d.ts +0 -23
  139. package/dist/types/components/wrapper/types.d.ts +0 -22
  140. package/dist/types/hooks/use-admin/index.d.ts +0 -4
  141. package/dist/types/hooks/use-auth/tool.d.ts +0 -5
  142. package/dist/types/hooks/use-cookies/tool.d.ts +0 -2
  143. package/dist/types/hooks/use-dao/index.d.ts +0 -220
  144. package/dist/types/hooks/use-dao/tool.d.ts +0 -2
  145. package/dist/types/hooks/use-dao/types.d.ts +0 -20
  146. package/dist/types/hooks/use-mata/index.d.ts +0 -0
  147. package/dist/types/hooks/use-mata/types.d.ts +0 -107
  148. package/dist/types/hooks/use-paster/index.d.ts +0 -5
  149. package/dist/types/hooks/use-paster/tool.d.ts +0 -7
  150. package/dist/types/hooks/use-paster/types.d.ts +0 -4
  151. package/dist/types/hooks/use-query/index.d.ts +0 -35
  152. package/dist/types/hooks/use-query/tool.d.ts +0 -8
  153. package/dist/types/hooks/use-query/types.d.ts +0 -70
  154. package/dist/types/hooks/use-socket/index.d.ts +0 -4
  155. package/dist/types/hooks/use-sortable/index.d.ts +0 -3
  156. package/dist/types/hooks/use-tree/tools.d.ts +0 -0
  157. package/dist/types/hooks/use-tree/types.d.ts +0 -0
  158. /package/dist/types/{hooks/use-cookies/index.d.ts → core/cookies.d.ts} +0 -0
@@ -1,18 +1,2 @@
1
- declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {};
2
- type __VLS_Slots = {} & {
3
- default?: (props: typeof __VLS_1) => any;
4
- } & {
5
- connecting?: (props: typeof __VLS_3) => any;
6
- } & {
7
- connect?: (props: typeof __VLS_5) => any;
8
- };
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>;
12
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
2
  export default _default;
14
- type __VLS_WithSlots<T, S> = T & {
15
- new (): {
16
- $slots: S;
17
- };
18
- };
@@ -1,3 +1,8 @@
1
+ export declare const SYSTEM_KEY: {
2
+ CLIENT: string;
3
+ USER: string;
4
+ AUTH: string;
5
+ };
1
6
  export declare function useMAuth(): {
2
7
  $client: string;
3
8
  user: () => any;
@@ -0,0 +1,18 @@
1
+ export declare const $message: {
2
+ info: (message: string) => import("element-plus").MessageHandler;
3
+ success: (message: string) => import("element-plus").MessageHandler;
4
+ warning: (message: string) => import("element-plus").MessageHandler;
5
+ error: (message: string) => import("element-plus").MessageHandler;
6
+ };
7
+ export declare const $alert: {
8
+ info: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
9
+ success: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
10
+ warning: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
11
+ error: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
12
+ };
13
+ export declare const $confirm: {
14
+ info: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
15
+ success: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
16
+ warning: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
17
+ error: (message: string, title?: string) => Promise<import("element-plus").MessageBoxData>;
18
+ };
@@ -0,0 +1,5 @@
1
+ export declare function useMSocket(baseURL: string): {
2
+ data: import("vue").Ref<any, any>;
3
+ open: import("@vueuse/shared").Fn;
4
+ status: import("vue").Ref<string, string>;
5
+ };
@@ -1,5 +1,5 @@
1
1
  import { Ref } from "vue";
2
- import { ChannelContainer } from "../use-channel/types";
2
+ import ChannelHub from "../hooks/use-channel/ChannelHub";
3
3
  export type MorghulisOptions = {
4
4
  baseURL?: string;
5
5
  minioURL?: string;
@@ -7,6 +7,7 @@ export type MorghulisOptions = {
7
7
  export type MorghulisCore = {
8
8
  status: Ref<string>;
9
9
  open: () => void;
10
- channels: ChannelContainer;
10
+ hub: ChannelHub;
11
11
  options: MorghulisOptions;
12
12
  };
13
+ export type FeedbackTypes = "success" | "info" | "warning" | "error";
@@ -1,2 +1,2 @@
1
- import { MorghulisCore, MorghulisOptions } from "./types";
1
+ import { MorghulisCore, MorghulisOptions } from "./core/types";
2
2
  export declare function useMorghulis(options?: MorghulisOptions): MorghulisCore;
@@ -0,0 +1,18 @@
1
+ import { Reactive } from "vue";
2
+ import { ChannelStatus } from "./types";
3
+ import { AxiosInstance } from "axios";
4
+ import { ChannelConfig } from "./config";
5
+ export default class Channel {
6
+ private config;
7
+ status: Reactive<ChannelStatus>;
8
+ handlerKey: string;
9
+ channelKey: string;
10
+ url: string;
11
+ request: AxiosInstance;
12
+ constructor(config: ChannelConfig);
13
+ execute(data?: any): void;
14
+ ready(): void;
15
+ start(): void;
16
+ proceed(data: any): void;
17
+ stop(): void;
18
+ }
@@ -0,0 +1,10 @@
1
+ import { ChannelContainer } from "./types";
2
+ import Channel from "./Channel";
3
+ import { ChannelConfig } from "./config";
4
+ export default class ChannelHub {
5
+ container: ChannelContainer;
6
+ constructor();
7
+ getChannel(handlerKey: string, channelKey: string): Channel;
8
+ destroy(handlerKey: string, channelKey: string): void;
9
+ register(config: ChannelConfig): Channel;
10
+ }
@@ -0,0 +1,18 @@
1
+ export type IChannelConfig = {
2
+ handlerKey: string;
3
+ channelKey?: string;
4
+ url?: string;
5
+ auth?: boolean;
6
+ onStart?(): void;
7
+ onStop?(): void;
8
+ onProceed?(payload: any): void;
9
+ };
10
+ export type ChannelConfig = {
11
+ handlerKey: string;
12
+ channelKey: string;
13
+ url: string;
14
+ auth?: boolean;
15
+ onStart(): void;
16
+ onStop(): void;
17
+ onProceed?(payload: any): void;
18
+ };
@@ -1,10 +1,5 @@
1
+ import { IChannelConfig } from "./config";
1
2
  import { Ref } from "vue";
2
- import { ChannelParam } from "./types";
3
- export declare function useMChannel(param: Ref<ChannelParam>, auth?: boolean): {
4
- activate: (data: any) => void;
5
- channels: import("./types").ChannelContainer;
6
- status: {
7
- loading: boolean;
8
- payload: any;
9
- };
10
- };
3
+ import Channel from "./Channel";
4
+ export declare function createChannel(config: IChannelConfig): Channel;
5
+ export declare function useChannel(config: Ref<IChannelConfig>): Channel;
@@ -1,41 +1,10 @@
1
- import { Reactive } from "vue";
2
- import { AxiosInstance } from "axios";
3
- export type ChannelConfig = {
4
- url?: string;
5
- onStart?: () => void;
6
- onStop?: () => void;
7
- onProceed?: (payload: any) => void;
8
- };
9
- export type ChannelParam = {
10
- handlerKey: string;
11
- channelKey: string;
12
- config: ChannelConfig;
1
+ import Channel from "./Channel";
2
+ export type ChannelContainer = {
3
+ [handlerKey: string]: {
4
+ [channelKey: string]: Channel;
5
+ };
13
6
  };
14
7
  export type ChannelStatus = {
15
8
  loading: boolean;
16
9
  payload: any;
17
10
  };
18
- /**
19
- * handler is just the entity
20
- */
21
- export declare class ChannelContainer {
22
- container: {
23
- [handlerKey: string]: {
24
- [channelKey: string]: Channel;
25
- };
26
- };
27
- constructor();
28
- getChannel(handlerKey: string, channelKey: string): Channel;
29
- destroy(handlerKey: string, channelKey: string): void;
30
- register(handlerKey: string, channelKey: string | undefined, config: ChannelConfig, status: Reactive<ChannelStatus>): void;
31
- execute(request: AxiosInstance, handlerKey: string, channelKey: string, data: any): void;
32
- }
33
- export declare class Channel {
34
- config: ChannelConfig;
35
- private status;
36
- constructor(config: ChannelConfig, status: Reactive<ChannelStatus>);
37
- ready(loading?: boolean, payload?: any): void;
38
- start(): void;
39
- stop(): void;
40
- proceed(data: any): void;
41
- }
@@ -3,7 +3,11 @@ import 'nprogress/nprogress.css';
3
3
  export declare function useMRequest(): {
4
4
  getHttpRequest: (auth?: boolean) => AxiosInstance;
5
5
  download: (path: string) => void;
6
- all: () => void;
6
+ all: (mapping: {
7
+ [key: string]: Promise<any>;
8
+ }) => Promise<{
9
+ [key: string]: any;
10
+ }>;
7
11
  read: (path: string) => Promise<{
8
12
  blob: Blob;
9
13
  fileName: string;
@@ -1,36 +1,13 @@
1
1
  import './style.css';
2
2
  import { App } from "vue";
3
- import { useMRequest } from "./hooks/use-request";
4
- import { useMChannel } from "./hooks/use-channel";
5
- import { useMSockets } from "./hooks/use-socket";
6
- import { MorghulisOptions } from "./hooks/use-morghulis/types";
7
- import MDialog from "./components/dialog/MDialog.vue";
8
- import MApp from "./MApp.vue";
9
- import MTable from "./components/table/simple/MTable.vue";
10
- import DTable from "./components/table/data/DTable.vue";
11
- import VTable from './components/table/virtual/VTable.vue';
12
- import MForm from "./components/form/MForm.vue";
13
- import type { DataItem, Query } from "./hooks/use-query/types";
14
- import MTree from "./components/tree/simple/MTree.vue";
15
- import type { MetaField, MetaView } from "./hooks/use-mata/types";
16
- import type { MTableButton, MTableColumn } from "./components/table/simple/types";
17
- import type { ChannelConfig } from "./hooks/use-channel/types";
18
- import DTree from "./components/tree/data/DTree.vue";
19
- import MIcon from "./components/common/MIcon.vue";
3
+ import { MorghulisOptions } from "./core/types";
4
+ import { createChannel } from "./hooks/use-channel";
5
+ import 'element-plus/dist/index.css';
20
6
  declare module "vue" {
21
7
  interface GlobalComponents {
22
- MApp: typeof MApp;
23
- MDialog: typeof MDialog;
24
- MTable: typeof MTable;
25
- DTable: typeof DTable;
26
- VTable: typeof VTable;
27
- MForm: typeof MForm;
28
- MTree: typeof MTree;
29
- DTree: typeof DTree;
30
- MIcon: typeof MIcon;
31
8
  }
32
9
  }
33
10
  declare const createMorghulis: (options?: MorghulisOptions) => {
34
11
  install(Vue: App): void;
35
12
  };
36
- export { MApp, MIcon, MDialog, MTable, DTable, VTable, MForm, MTree, DTree, createMorghulis, useMRequest, useMChannel, useMSockets, ChannelConfig, MTableButton, MTableColumn, DataItem, Query, MetaView, MetaField };
13
+ export { createMorghulis, createChannel, };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "3.1.3",
3
+ "version": "3.1.5",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -14,7 +14,7 @@
14
14
  "import": "./dist/morghulis.es.js",
15
15
  "require": "./dist/morghulis.umd.js"
16
16
  },
17
- "./style": "./dist/index.css"
17
+ "./style.css": "./dist/index.css"
18
18
  },
19
19
  "scripts": {
20
20
  "dev": "vite",
@@ -29,9 +29,9 @@
29
29
  "@fortawesome/vue-fontawesome": "^3.0.8",
30
30
  "@vueuse/core": "^13.1.0",
31
31
  "axios": "^1.8.1",
32
+ "moment": "^2.30.1",
32
33
  "element-plus": "^2.9.8",
33
34
  "js-cookie": "^3.0.5",
34
- "moment": "^2.30.1",
35
35
  "nprogress": "^0.2.0",
36
36
  "sortablejs": "^1.15.6",
37
37
  "vue": "^3.5.13",
@@ -1,23 +0,0 @@
1
- type __VLS_Props = {
2
- disabled?: boolean;
3
- type?: "success" | "info" | "warning" | "danger" | 'primary' | '';
4
- size?: 'default' | 'small' | 'large' | "";
5
- title?: string;
6
- icon?: string;
7
- };
8
- declare var __VLS_14: {};
9
- type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_14) => any;
11
- };
12
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- click: (...args: any[]) => void;
14
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- onClick?: ((...args: any[]) => any) | undefined;
16
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
17
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
18
- export default _default;
19
- type __VLS_WithSlots<T, S> = T & {
20
- new (): {
21
- $slots: S;
22
- };
23
- };
@@ -1,31 +0,0 @@
1
- type __VLS_Props = {
2
- width?: string | number;
3
- label?: string;
4
- plain?: boolean;
5
- icon?: string;
6
- disabled?: boolean;
7
- loading?: boolean;
8
- link?: boolean;
9
- confirm?: (data: any, done: () => void) => void;
10
- cancel?: (data: any, done: () => void) => void;
11
- size?: 'small' | 'default' | 'large';
12
- type?: 'success' | 'info' | 'warning' | 'primary' | 'danger';
13
- };
14
- declare var __VLS_23: {
15
- close: any;
16
- };
17
- type __VLS_Slots = {} & {
18
- default?: (props: typeof __VLS_23) => any;
19
- };
20
- declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
21
- close: (...args: any[]) => void;
22
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
23
- onClose?: ((...args: any[]) => any) | undefined;
24
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
25
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
26
- export default _default;
27
- type __VLS_WithSlots<T, S> = T & {
28
- new (): {
29
- $slots: S;
30
- };
31
- };
@@ -1,11 +0,0 @@
1
- import type { DataItem } from "../../hooks/use-query/types";
2
- import type { MetaDatabase, MetaField } from "../../hooks/use-mata/types";
3
- type __VLS_Props = {
4
- row: DataItem;
5
- field: MetaField;
6
- bean: DataItem;
7
- db: MetaDatabase;
8
- disabled?: boolean;
9
- };
10
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,13 +0,0 @@
1
- import { MetaDatabase, MetaField } from "../../hooks/use-mata/types";
2
- import { DataItem, ItemProps } from "../../hooks/use-query/types";
3
- export declare function useCellReference(db: MetaDatabase, field: MetaField, row: DataItem, isTree?: boolean): {
4
- options: import("vue").Ref<any[], any[]>;
5
- loading: import("vue").Ref<boolean, boolean>;
6
- params: ItemProps;
7
- multiple: boolean | undefined;
8
- clearable: boolean;
9
- disabled: boolean;
10
- strict: boolean | undefined;
11
- message: import("vue").Ref<string, string>;
12
- load: (cb?: Function) => void;
13
- };
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,3 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
- export default _default;
@@ -1,7 +0,0 @@
1
- import { MCellProps } from "../types";
2
- declare const _default: import("vue").DefineComponent<MCellProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
3
- "update:modelValue": (...args: any[]) => void;
4
- }, string, import("vue").PublicProps, Readonly<MCellProps> & Readonly<{
5
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
6
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
- export default _default;
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;
@@ -1,9 +0,0 @@
1
- import type { Component } from "vue";
2
- import type { DataItem } from "../../hooks/use-query/types";
3
- import { MetaField } from "../../hooks/use-mata/types";
4
- export declare function getComponentByTool(tool: string): Component;
5
- export declare function getCellValue(prop: string, row: DataItem, field: MetaField): any;
6
- export declare function convertCondition(condition: any, row: DataItem): {
7
- [x: string]: any;
8
- };
9
- export declare const dateTypes: any;
@@ -1,9 +0,0 @@
1
- import { MetaDatabase, MetaField } from "../../hooks/use-mata/types";
2
- import { DataItem } from "../../hooks/use-query/types";
3
- export type MCellProps = {
4
- modelValue: any;
5
- disabled: boolean;
6
- field: MetaField;
7
- row: DataItem;
8
- db: MetaDatabase;
9
- };
@@ -1,19 +0,0 @@
1
- import { FontAwesomeIconProps } from "@fortawesome/vue-fontawesome";
2
- import { IconNames } from "./types";
3
- type __VLS_Props = FontAwesomeIconProps & {
4
- icon: IconNames;
5
- type?: 'info' | 'success' | 'danger' | 'warning' | 'primary';
6
- textSize?: 'small' | 'large' | '';
7
- };
8
- declare var __VLS_5: {};
9
- type __VLS_Slots = {} & {
10
- default?: (props: typeof __VLS_5) => any;
11
- };
12
- 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>;
13
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
14
- export default _default;
15
- type __VLS_WithSlots<T, S> = T & {
16
- new (): {
17
- $slots: S;
18
- };
19
- };
@@ -1,9 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue?: object;
3
- };
4
- declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
5
- "update:modelValue": (...args: any[]) => void;
6
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
7
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
8
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
- export default _default;
@@ -1,7 +0,0 @@
1
- import { DataItem, ItemProps } from "../../hooks/use-query/types";
2
- type __VLS_Props = {
3
- params: ItemProps;
4
- data: DataItem;
5
- };
6
- 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>;
7
- export default _default;
@@ -1,7 +0,0 @@
1
- import { DataItem, ItemProps } from "../../hooks/use-query/types";
2
- type __VLS_Props = {
3
- params: ItemProps;
4
- options: DataItem[];
5
- };
6
- 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>;
7
- export default _default;