jmash-core 0.0.72 → 0.0.74

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 (38) hide show
  1. package/dist/{401-CBlnrocJ.mjs → 401-CZ_Pi3JW.mjs} +2 -2
  2. package/dist/{404-Bl11mjEJ.mjs → 404-DmibA0Lm.mjs} +1 -1
  3. package/dist/{BarChart-69QLI5ad.mjs → BarChart-D_fhsud3.mjs} +2 -2
  4. package/dist/{PieChart-kuz2NYLO.mjs → PieChart-C2RY4HE_.mjs} +1 -1
  5. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-JfbEKuaH.mjs → PieChart.vue_vue_type_script_setup_true_lang-BlkzcouS.mjs} +2 -2
  6. package/dist/{RadarChart-Cuoe4pVz.mjs → RadarChart-DkVB7EfN.mjs} +1 -1
  7. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-rGErStSV.mjs → RadarChart.vue_vue_type_script_setup_true_lang-Cjz6DX6e.mjs} +2 -2
  8. package/dist/{el-card-DvZLAGPw.mjs → el-card-Bra_4xX6.mjs} +1 -1
  9. package/dist/{el-col-DCkqscme.mjs → el-col-CRqEVTAF.mjs} +1 -1
  10. package/dist/{el-form-item-C71hxxac.mjs → el-form-item-E1m80H3b.mjs} +1 -1
  11. package/dist/{index-rYuIwGvw.mjs → index-5KDnsDbY.mjs} +4 -4
  12. package/dist/{index-B6GFaSMN.mjs → index-CcP9EP7o.mjs} +5 -5
  13. package/dist/{index-D7TMpgL1.mjs → index-CjFm-nAT.mjs} +1 -1
  14. package/dist/index-DT7bigUq.mjs +32945 -0
  15. package/dist/{index-BaGbZAOO.mjs → index-RucajTGc.mjs} +8 -8
  16. package/dist/index.mjs +1 -1
  17. package/dist/{picture-B-hzCC2R.mjs → picture-BR1QUATD.mjs} +2 -2
  18. package/dist/{position-DXcZcidy.mjs → position-5_giUdIt.mjs} +1 -1
  19. package/dist/{profile-DX7VCn8h.mjs → profile-CMsWxChf.mjs} +4 -4
  20. package/dist/{runAs-DxEEMV2z.mjs → runAs-Mptmk_KT.mjs} +1 -1
  21. package/dist/{runAs.vue_vue_type_script_setup_true_lang-C1JmGour.mjs → runAs.vue_vue_type_script_setup_true_lang-eSz6gGfL.mjs} +1 -1
  22. package/dist/style.css +1 -1
  23. package/dist/{types-DOFXyvri.mjs → types-B9xca8KS.mjs} +3 -3
  24. package/dist/{updatePwd-RwqTgCid.mjs → updatePwd-cz8OrzGb.mjs} +1 -1
  25. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-B2Ts1RL1.mjs → updatePwd.vue_vue_type_script_setup_true_lang-nYWwRO17.mjs} +2 -2
  26. package/dts/src/api/file/index.d.ts +9 -5
  27. package/dts/src/api/file/types.d.ts +7 -0
  28. package/dts/src/components/JmashUploadFile/index.vue.d.ts +2 -0
  29. package/dts/src/components/JmashUploadImage/index.vue.d.ts +32 -0
  30. package/dts/src/components/Pagination/index.vue.d.ts +1 -1
  31. package/dts/src/index.d.ts +1 -1
  32. package/dts/src/settings.d.ts +1 -1
  33. package/dts/src/utils/color.d.ts +1 -1
  34. package/dts/src/utils/file_hash_util.d.ts +28 -0
  35. package/dts/src/utils/fileajax.d.ts +9 -0
  36. package/dts/src/utils/sm3.d.ts +10 -0
  37. package/package.json +3 -1
  38. package/dist/index-BN8SE8Z7.mjs +0 -26165
@@ -1,6 +1,6 @@
1
- import { as as x, a2 as b, at as D, au as U, av as B, s as N, t as $, ar as R } from "./index-BN8SE8Z7.mjs";
2
- import { _ as S, E as q } from "./picture-B-hzCC2R.mjs";
3
- import { E as z, a as A } from "./el-form-item-C71hxxac.mjs";
1
+ import { as as x, a2 as b, at as D, au as U, av as B, s as N, t as $, ar as R } from "./index-DT7bigUq.mjs";
2
+ import { _ as S, E as q } from "./picture-BR1QUATD.mjs";
3
+ import { E as z, a as A } from "./el-form-item-E1m80H3b.mjs";
4
4
  import { defineComponent as M, ref as I, reactive as m, openBlock as P, createElementBlock as T, Fragment as j, createVNode as e, withCtx as a, createTextVNode as p, toDisplayString as u, createElementVNode as f } from "vue";
5
5
  const L = { class: "h-[40px]" }, G = { class: "image-slot" }, H = { class: "dialog-footer" }, X = /* @__PURE__ */ M({
6
6
  __name: "types",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-B2Ts1RL1.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-nYWwRO17.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,5 +1,5 @@
1
- import { ay as f, bt as C, s as h, t as v, ar as O } from "./index-BN8SE8Z7.mjs";
2
- import { E as x, a as A } from "./el-form-item-C71hxxac.mjs";
1
+ import { ay as f, bt as C, s as h, t as v, ar as O } from "./index-DT7bigUq.mjs";
2
+ import { E as x, a as A } from "./el-form-item-E1m80H3b.mjs";
3
3
  import { defineComponent as B, ref as F, toRefs as I, reactive as P, openBlock as R, createBlock as U, unref as r, isRef as q, withCtx as n, createElementVNode as D, createVNode as t, createTextVNode as _ } from "vue";
4
4
  import { ElMessage as $ } from "element-plus";
5
5
  const z = { class: "dialog-footer" }, G = /* @__PURE__ */ B({
@@ -1,5 +1,5 @@
1
- import type { AxiosPromise } from 'axios';
2
- import type { FileInfo } from './types';
1
+ import type { AxiosPromise } from "axios";
2
+ import type { FileInfo, FileBase64Req } from "./types";
3
3
  declare class FileApi {
4
4
  baseApiUrl(): string;
5
5
  /** 上传Url */
@@ -7,9 +7,9 @@ declare class FileApi {
7
7
  /** Authorization */
8
8
  authHeader(): Object;
9
9
  /**
10
- * url 获取图片Full路径
11
- * @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
12
- */
10
+ * url 获取图片Full路径
11
+ * @param type resize 等比例缩放,white 补白,trans 补透明,clip 裁剪
12
+ */
13
13
  imageUrl(imageUrl: string, width?: number, height?: number, type?: string): string;
14
14
  /**
15
15
  * Id 获取图片Full路径
@@ -20,6 +20,10 @@ declare class FileApi {
20
20
  fileUrl(fileUrl?: string): string;
21
21
  /** Id 获取文件Full路径 */
22
22
  fileIdUrl(fileId?: string): string;
23
+ /** 文件是否存在 */
24
+ existFileHex(file: File, sm3: string, sha256: string): AxiosPromise<FileInfo>;
25
+ /** 上传文件 */
26
+ uploadBase64File(base64: FileBase64Req): AxiosPromise<FileInfo>;
23
27
  /** 上传文件 */
24
28
  uploadFileApi(file: File): AxiosPromise<FileInfo>;
25
29
  /** 删除文件 */
@@ -5,3 +5,10 @@ export interface FileInfo {
5
5
  name: string;
6
6
  url: string;
7
7
  }
8
+ export interface FileBase64Req {
9
+ tenant?: string;
10
+ base64?: string;
11
+ fileName?: string;
12
+ contentType?: string;
13
+ fileDir?: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
+ export default _default;
@@ -0,0 +1,32 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ width: {
3
+ type: NumberConstructor;
4
+ default: number;
5
+ };
6
+ quality: {
7
+ type: NumberConstructor;
8
+ default: number;
9
+ };
10
+ fileDir: {
11
+ type: StringConstructor;
12
+ default: string;
13
+ };
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
15
+ width: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ quality: {
20
+ type: NumberConstructor;
21
+ default: number;
22
+ };
23
+ fileDir: {
24
+ type: StringConstructor;
25
+ default: string;
26
+ };
27
+ }>>, {
28
+ width: number;
29
+ quality: number;
30
+ fileDir: string;
31
+ }, {}>;
32
+ export default _default;
@@ -81,8 +81,8 @@ declare const _default: import("vue").DefineComponent<{
81
81
  pageSizes: number[];
82
82
  total: number;
83
83
  background: boolean;
84
- page: number;
85
84
  limit: number;
85
+ page: number;
86
86
  autoScroll: boolean;
87
87
  }, {}>;
88
88
  export default _default;
@@ -1,4 +1,4 @@
1
- export type { VueMetaEnv, TableColumn, TableSort, DialogRef, AppSettings, } from "./types";
1
+ export type { VueMetaEnv, TableColumn, TableSort, DialogRef, AppSettings } from "./types";
2
2
  export type { EntityApi, EnumEntryReq, Entry, LayEntry, EntityReq, EntityModel, EntityList, EntityPage, EntityTotal, EntityKey, EntityKeyList, EntityCreateReq, EntityUpdateReq, EntityFormReq, EntityExportReq, EntityImportReq } from "./api/types";
3
3
  export type { LoginData } from "./api/auth/types";
4
4
  import type { App } from "vue";
@@ -1,4 +1,4 @@
1
- import type { AppSettings, VueMetaEnv } from '@/types/index';
1
+ import type { AppSettings, VueMetaEnv } from "@/types/index";
2
2
  /** 默认系统配置. */
3
3
  declare const defaultSettings: AppSettings;
4
4
  /** 默认Vue MetaEnv 配置. */
@@ -66,4 +66,4 @@ declare function genMixColor(base: string | RGB | HSL): {
66
66
  9: string;
67
67
  };
68
68
  };
69
- export { genMixColor, rgbToHsl, rgbToHex, hslToRgb, hslToHex, hexToRGB, hexToHsl, };
69
+ export { genMixColor, rgbToHsl, rgbToHex, hslToRgb, hslToHex, hexToRGB, hexToHsl };
@@ -0,0 +1,28 @@
1
+ declare class FileHashUtil {
2
+ hashTypeArg: string[];
3
+ chunkSize: number;
4
+ enabledAlgorithms: {
5
+ name: string;
6
+ instance: any;
7
+ }[];
8
+ onHashLoadStart?: (file: File, hashTypes: string[], source?: any) => void;
9
+ onHashProgress?: (file: File, percentage: number, hashTypes: string[], source?: any) => void;
10
+ onHashLoadEnd?: (file: File, results: any[], hashTypes: string[], source?: any) => void;
11
+ algorithms: {
12
+ name: string;
13
+ type: any;
14
+ param?: {
15
+ outputLength: number;
16
+ };
17
+ }[];
18
+ constructor(setting?: Partial<FileHashUtil>);
19
+ compatible(): boolean;
20
+ initEnableAlgorithms(): {
21
+ name: string;
22
+ instance: any;
23
+ }[];
24
+ hash(file: File, source?: null, pos?: number): Promise<string[]>;
25
+ arrayBufferToWordArray(arrayBuffer: ArrayBuffer): any;
26
+ swapendian32Hash(val: number): number;
27
+ }
28
+ export default FileHashUtil;
@@ -0,0 +1,9 @@
1
+ import type { UploadRequestHandler } from "element-plus";
2
+ export declare class UploadAjaxError extends Error {
3
+ name: string;
4
+ status: number;
5
+ method: string;
6
+ url: string;
7
+ constructor(message: string, status: number, method: string, url: string);
8
+ }
9
+ export declare const ajaxUpload: UploadRequestHandler;
@@ -0,0 +1,10 @@
1
+ declare class CryptoSM3 {
2
+ chunks: string[];
3
+ param: {};
4
+ static create(param: any): CryptoSM3;
5
+ constructor(param?: {});
6
+ update(data: Uint8Array): void;
7
+ finalize(): string;
8
+ hexStringToUint8Array(hexStr: string): Uint8Array;
9
+ }
10
+ export default CryptoSM3;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.72",
3
+ "version": "0.0.74",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -58,9 +58,11 @@
58
58
  "dependencies": {
59
59
  "@element-plus/icons-vue": "^2.3.1",
60
60
  "@vueuse/core": "^10.9.0",
61
+ "crypto-js": "^4.2.0",
61
62
  "echarts": "^5.5.0",
62
63
  "file-saver": "^2.0.5",
63
64
  "lodash-es": "^4.17.21",
65
+ "lrz": "^4.9.41",
64
66
  "moment": "^2.30.1",
65
67
  "nprogress": "^0.2.0",
66
68
  "path-browserify": "^1.0.1",