jmash-core 0.0.72 → 0.0.75
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/{401-CBlnrocJ.mjs → 401-CxoJVKUh.mjs} +2 -2
- package/dist/{404-Bl11mjEJ.mjs → 404-DHIj53wN.mjs} +1 -1
- package/dist/{BarChart-69QLI5ad.mjs → BarChart-CvWMaWDM.mjs} +2 -2
- package/dist/{PieChart-kuz2NYLO.mjs → PieChart-CyWhEpEv.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-JfbEKuaH.mjs → PieChart.vue_vue_type_script_setup_true_lang-CP6tl7S3.mjs} +2 -2
- package/dist/{RadarChart-Cuoe4pVz.mjs → RadarChart-CBRqYndS.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-rGErStSV.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DaeJPLht.mjs} +2 -2
- package/dist/{el-card-DvZLAGPw.mjs → el-card-vkcH1_Uy.mjs} +1 -1
- package/dist/{el-col-DCkqscme.mjs → el-col-YZ0UDcQf.mjs} +1 -1
- package/dist/{el-form-item-C71hxxac.mjs → el-form-item-33OkY-zO.mjs} +1 -1
- package/dist/{index-BaGbZAOO.mjs → index-B5ukttIA.mjs} +8 -8
- package/dist/{index-B6GFaSMN.mjs → index-BWB1Q09O.mjs} +5 -5
- package/dist/{index-D7TMpgL1.mjs → index-Bmp_bNC4.mjs} +1 -1
- package/dist/{index-rYuIwGvw.mjs → index-WDLNmn77.mjs} +4 -4
- package/dist/index-sJ_M88_U.mjs +32959 -0
- package/dist/index.mjs +1 -1
- package/dist/{picture-B-hzCC2R.mjs → picture-CNTdrBFi.mjs} +2 -2
- package/dist/{position-DXcZcidy.mjs → position-Csac_drV.mjs} +1 -1
- package/dist/{profile-DX7VCn8h.mjs → profile-Dy1T3e5a.mjs} +4 -4
- package/dist/{runAs-DxEEMV2z.mjs → runAs-BEGxBEsA.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-C1JmGour.mjs → runAs.vue_vue_type_script_setup_true_lang-DsY0I1n4.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{types-DOFXyvri.mjs → types-C6TtddQu.mjs} +3 -3
- package/dist/{updatePwd-RwqTgCid.mjs → updatePwd-CCYVwhAT.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-B2Ts1RL1.mjs → updatePwd.vue_vue_type_script_setup_true_lang-CEAMfbh_.mjs} +2 -2
- package/dts/src/api/file/index.d.ts +9 -5
- package/dts/src/api/file/types.d.ts +7 -0
- package/dts/src/components/JmashUploadFile/index.vue.d.ts +7 -0
- package/dts/src/components/JmashUploadImage/index.vue.d.ts +37 -0
- package/dts/src/components/Pagination/index.vue.d.ts +1 -1
- package/dts/src/index.d.ts +1 -1
- package/dts/src/settings.d.ts +1 -1
- package/dts/src/utils/color.d.ts +1 -1
- package/dts/src/utils/file_hash_util.d.ts +28 -0
- package/dts/src/utils/fileajax.d.ts +9 -0
- package/dts/src/utils/sm3.d.ts +10 -0
- package/package.json +3 -1
- 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-
|
|
2
|
-
import { _ as S, E as q } from "./picture-
|
|
3
|
-
import { E as z, a as A } from "./el-form-item-
|
|
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-sJ_M88_U.mjs";
|
|
2
|
+
import { _ as S, E as q } from "./picture-CNTdrBFi.mjs";
|
|
3
|
+
import { E as z, a as A } from "./el-form-item-33OkY-zO.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,5 +1,5 @@
|
|
|
1
|
-
import { ay as f, bt as C, s as h, t as v, ar as O } from "./index-
|
|
2
|
-
import { E as x, a as A } from "./el-form-item-
|
|
1
|
+
import { ay as f, bt as C, s as h, t as v, ar as O } from "./index-sJ_M88_U.mjs";
|
|
2
|
+
import { E as x, a as A } from "./el-form-item-33OkY-zO.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
|
|
2
|
-
import type { FileInfo } from
|
|
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
|
-
|
|
11
|
-
|
|
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
|
/** 删除文件 */
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
|
|
2
|
+
export default _default;
|
|
3
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
4
|
+
new (): {
|
|
5
|
+
$slots: S;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare const _default: __VLS_WithTemplateSlots<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
|
+
}, {}>, Partial<Record<NonNullable<string | number>, (_: {}) => any>>>;
|
|
32
|
+
export default _default;
|
|
33
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
34
|
+
new (): {
|
|
35
|
+
$slots: S;
|
|
36
|
+
};
|
|
37
|
+
};
|
package/dts/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { VueMetaEnv, TableColumn, TableSort, DialogRef, AppSettings
|
|
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";
|
package/dts/src/settings.d.ts
CHANGED
package/dts/src/utils/color.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.0.75",
|
|
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",
|