@morghulis/core 0.0.3 → 0.0.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 (39) hide show
  1. package/dist/morghulis-core.es.js +9543 -9526
  2. package/dist/morghulis-core.es.js.map +1 -1
  3. package/dist/morghulis-core.umd.js +69 -69
  4. package/dist/morghulis-core.umd.js.map +1 -1
  5. package/dist/types/{use-channel → hooks/core/use-channel}/Channel.d.ts +2 -1
  6. package/dist/types/{use-channel → hooks/core/use-channel}/ChannelHub.d.ts +2 -1
  7. package/dist/types/{use-channel/types.d.ts → hooks/core/use-channel/config.d.ts} +0 -10
  8. package/dist/types/hooks/core/use-channel/index.d.ts +35 -0
  9. package/dist/types/hooks/core/use-channel/types.d.ts +10 -0
  10. package/dist/types/{use-request → hooks/core/use-request}/index.d.ts +2 -1
  11. package/dist/types/hooks/data/types.d.ts +18 -0
  12. package/dist/types/hooks/data/use-dao/TableModel.d.ts +4 -0
  13. package/dist/types/hooks/data/use-dao/TreeModel.d.ts +4 -0
  14. package/dist/types/hooks/data/use-dao/config.d.ts +0 -0
  15. package/dist/types/hooks/data/use-dao/index.d.ts +8 -0
  16. package/dist/types/hooks/data/use-dao/types.d.ts +29 -0
  17. package/dist/types/hooks/data/use-meta/MetaField.d.ts +73 -0
  18. package/dist/types/hooks/data/use-meta/MetaFormat.d.ts +39 -0
  19. package/dist/types/hooks/data/use-meta/MetaRefer.d.ts +27 -0
  20. package/dist/types/hooks/data/use-meta/MetaView.d.ts +58 -0
  21. package/dist/types/hooks/data/use-meta/frame.d.ts +9 -0
  22. package/dist/types/hooks/data/use-meta/types.d.ts +6 -0
  23. package/dist/types/hooks/data/use-query/Query.d.ts +11 -0
  24. package/dist/types/hooks/data/use-query/index.d.ts +9 -0
  25. package/dist/types/hooks/data/use-query/tools.d.ts +8 -0
  26. package/dist/types/hooks/data/use-query/types/config.d.ts +18 -0
  27. package/dist/types/hooks/data/use-query/types/finder.d.ts +18 -0
  28. package/dist/types/hooks/data/use-query/types/search.d.ts +23 -0
  29. package/dist/types/hooks/utils/use-auth/index.d.ts +13 -0
  30. package/dist/types/hooks/utils/use-cookie/index.d.ts +6 -0
  31. package/dist/types/hooks/utils/use-icon/types.d.ts +2 -0
  32. package/dist/types/hooks/utils/use-paster/index.d.ts +5 -0
  33. package/dist/types/hooks/utils/use-xlsx/index.d.ts +5 -0
  34. package/dist/types/hooks/utils/use-xlsx/types.d.ts +8 -0
  35. package/dist/types/index.d.ts +6 -3
  36. package/dist/types/types.d.ts +1 -1
  37. package/package.json +7 -3
  38. package/dist/types/use-channel/index.d.ts +0 -5
  39. /package/dist/types/{use-socket → hooks/core/use-socket}/index.d.ts +0 -0
@@ -0,0 +1,8 @@
1
+ export type Separator = {
2
+ cell: string;
3
+ line: string;
4
+ };
5
+ export type Aoa = any[][];
6
+ export type AoaMap = {
7
+ [name: string]: Aoa;
8
+ };
@@ -1,9 +1,12 @@
1
1
  import { App } from "vue";
2
2
  import 'nprogress/nprogress.css';
3
- import { useRequest } from "./use-request";
4
3
  import { IOptions } from "./types";
5
- import { createChannel, useChannel } from "./use-channel";
6
- import { useAuth, useCookies, usePaster, useXlsx } from "@morghulis/utils";
4
+ import { createChannel, useChannel } from "./hooks/core/use-channel";
5
+ import { useRequest } from "./hooks/core/use-request";
6
+ import { useAuth } from "./hooks/utils/use-auth";
7
+ import { useCookies } from "./hooks/utils/use-cookie";
8
+ import { usePaster } from "./hooks/utils/use-paster";
9
+ import { useXlsx } from "./hooks/utils/use-xlsx";
7
10
  declare const createMorghulisCore: (options?: IOptions) => {
8
11
  install(app: App): void;
9
12
  };
@@ -1,5 +1,5 @@
1
1
  import { Ref } from "vue";
2
- import ChannelHub from "./use-channel/ChannelHub";
2
+ import ChannelHub from "./hooks/core/use-channel/ChannelHub";
3
3
  export type IOptions = {
4
4
  baseURL?: string;
5
5
  minioURL?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morghulis/core",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,12 +27,16 @@
27
27
  "vue": "^3.5.13"
28
28
  },
29
29
  "dependencies": {
30
- "@morghulis/utils": "^0.0.8",
31
30
  "@vueuse/core": "^13.1.0",
32
31
  "axios": "^1.8.1",
33
- "nprogress": "^0.2.0"
32
+ "nprogress": "^0.2.0",
33
+ "js-cookie": "^3.0.5",
34
+ "lodash": "^4.17.21",
35
+ "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
34
36
  },
35
37
  "devDependencies": {
38
+ "@types/js-cookie": "^3.0.6",
39
+ "@types/lodash": "^4.17.18",
36
40
  "@types/nprogress": "^0.2.3",
37
41
  "@types/node": "^22.14.0",
38
42
  "@vitejs/plugin-vue": "^5.2.3",
@@ -1,5 +0,0 @@
1
- import { IChannelConfig } from "./types";
2
- import { Ref } from "vue";
3
- import Channel from "./Channel";
4
- export declare function createChannel(config: IChannelConfig): Channel;
5
- export declare function useChannel(config: Ref<IChannelConfig>): Channel;