jmash-core 0.1.20 → 0.1.22

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 (28) hide show
  1. package/README.md +57 -57
  2. package/dist/{401-dEB8c6Tl.mjs → 401-FlrXOPgS.mjs} +2 -2
  3. package/dist/{404-B1f2rxA3.mjs → 404-BTMSldle.mjs} +8 -8
  4. package/dist/{BarChart-BlEnQbX1.mjs → BarChart-BaOcg-v6.mjs} +2 -2
  5. package/dist/{index-DbDwHjdi.mjs → index-Dj2YZyEO.mjs} +2 -2
  6. package/dist/{index-RQ1iUP9Y.mjs → index-Dk6VNvme.mjs} +15 -15
  7. package/dist/{index-BClLTb4J.mjs → index-Dsqb5KPh.mjs} +168 -170
  8. package/dist/{index-DbTFBL0U.mjs → index-PIpAW35H.mjs} +4 -4
  9. package/dist/{index-Bl-IAUeZ.mjs → index-Zq3WC6V2.mjs} +4 -3
  10. package/dist/{index-CZvJYG4-.mjs → index-wvG4Qrkd.mjs} +4275 -4257
  11. package/dist/index.mjs +1 -1
  12. package/dist/{profile-DQlRhzgr.mjs → profile-DFeb2tVZ.mjs} +46 -46
  13. package/dist/{runAs-Q1BMSaEs.mjs → runAs-B8Gt1PLf.mjs} +1 -1
  14. package/dist/{runAs.vue_vue_type_script_setup_true_lang-BZAwWvrb.mjs → runAs.vue_vue_type_script_setup_true_lang-CE3AKpKn.mjs} +1 -1
  15. package/dist/style.css +1 -1
  16. package/dist/{types-BsYgaETl.mjs → types-LQSRjWu2.mjs} +1 -1
  17. package/dist/{updatePwd-EhWvhjpY.mjs → updatePwd-CcvECiqR.mjs} +1 -1
  18. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-BMLTC0L-.mjs → updatePwd.vue_vue_type_script_setup_true_lang-D1WT6rSV.mjs} +33 -25
  19. package/dts/src/components/NameValidate/index.vue.d.ts +2 -2
  20. package/dts/src/components/RegisterForm/index.vue.d.ts +17 -1
  21. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +1 -1
  22. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
  23. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
  24. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
  25. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
  26. package/package.json +82 -82
  27. package/dts/src/components/ForgetPwd/index.vue.d.ts +0 -6
  28. package/dts/src/components/GraphicVerification/index.vue.d.ts +0 -8
@@ -1,5 +1,5 @@
1
1
  import { createElementBlock as y, openBlock as k, createElementVNode as u, defineComponent as E, ref as I, reactive as f, resolveComponent as i, Fragment as F, createVNode as t, withCtx as l, createTextVNode as _, toDisplayString as C } from "vue";
2
- import { A as M, v, a as w, B as $, C as z } from "./index-CZvJYG4-.mjs";
2
+ import { A as M, v, a as w, B as $, C as z } from "./index-wvG4Qrkd.mjs";
3
3
  const N = {
4
4
  viewBox: "0 0 1024 1024",
5
5
  width: "1.2em",
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-BMLTC0L-.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-D1WT6rSV.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, createBlock as O, openBlock as A, unref as t, isRef as U, withCtx as n, createVNode as r, createElementVNode as B, createTextVNode as g, toDisplayString as _ } from "vue";
1
+ import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, createBlock as O, openBlock as A, unref as t, isRef as U, withCtx as s, createVNode as r, createElementVNode as B, createTextVNode as g, toDisplayString as _ } from "vue";
2
2
  import { ElMessage as D } from "element-plus";
3
- import { H as b, aJ as I } from "./index-CZvJYG4-.mjs";
3
+ import { H as b, aJ as I } from "./index-wvG4Qrkd.mjs";
4
4
  import { useI18n as S } from "vue-i18n";
5
5
  const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
6
6
  __name: "updatePwd",
@@ -19,15 +19,21 @@ const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
19
19
  confirmPwd: ""
20
20
  });
21
21
  const $ = V({
22
- encodeOldPwd: [{ required: !0, validator: (o, e, d) => {
23
- e === "" ? d(new Error(a("password.oldPwdRequired"))) : d();
24
- }, trigger: "blur" }],
25
- encodeNewPwd: [{ required: !0, validator: (o, e, d) => {
26
- e === "" ? d(new Error(a("password.newPwdRequired"))) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(e) ? d() : d(new Error(a("password.pwdRules")));
27
- }, trigger: "blur" }],
28
- confirmPwd: [{ required: !0, validator: (o, e, d) => {
29
- e === "" ? d(new Error(a("password.confirmPwdRequired"))) : e !== l.encodeNewPwd ? d(new Error(a("password.comparePwd"))) : d();
30
- }, trigger: "blur" }]
22
+ encodeOldPwd: [
23
+ { required: !0, validator: (o, e, d) => {
24
+ e === "" ? d(new Error(a("password.oldPwdRequired"))) : d();
25
+ }, trigger: "blur" }
26
+ ],
27
+ encodeNewPwd: [
28
+ { required: !0, validator: (o, e, d) => {
29
+ e === "" ? d(new Error(a("password.newPwdRequired"))) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(e) ? d() : d(new Error(a("password.pwdRules")));
30
+ }, trigger: "blur" }
31
+ ],
32
+ confirmPwd: [
33
+ { required: !0, validator: (o, e, d) => {
34
+ e === "" ? d(new Error(a("password.confirmPwdRequired"))) : e !== l.encodeNewPwd ? d(new Error(a("password.comparePwd"))) : d();
35
+ }, trigger: "blur" }
36
+ ]
31
37
  }), h = async () => {
32
38
  var o;
33
39
  await ((o = p.value) == null ? void 0 : o.validate((e) => {
@@ -52,14 +58,14 @@ const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
52
58
  return A(), O(C, {
53
59
  title: "修改密码",
54
60
  modelValue: t(u),
55
- "onUpdate:modelValue": e[3] || (e[3] = (s) => U(u) ? u.value = s : null),
61
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => U(u) ? u.value = n : null),
56
62
  width: "500px",
57
63
  onClose: f
58
64
  }, {
59
- footer: n(() => [
65
+ footer: s(() => [
60
66
  B("div", z, [
61
67
  r(P, { onClick: f }, {
62
- default: n(() => [
68
+ default: s(() => [
63
69
  g(_(o.$t("common.cancel")), 1)
64
70
  ]),
65
71
  _: 1
@@ -68,14 +74,14 @@ const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
68
74
  type: "primary",
69
75
  onClick: h
70
76
  }, {
71
- default: n(() => [
77
+ default: s(() => [
72
78
  g(_(o.$t("common.confirm")), 1)
73
79
  ]),
74
80
  _: 1
75
81
  })
76
82
  ])
77
83
  ]),
78
- default: n(() => [
84
+ default: s(() => [
79
85
  r(m, {
80
86
  ref_key: "pwdRef",
81
87
  ref: p,
@@ -83,16 +89,16 @@ const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
83
89
  "label-width": "80px",
84
90
  rules: $
85
91
  }, {
86
- default: n(() => [
92
+ default: s(() => [
87
93
  r(w, {
88
94
  label: o.$t("password.oldPwd"),
89
95
  prop: "encodeOldPwd"
90
96
  }, {
91
- default: n(() => [
97
+ default: s(() => [
92
98
  r(d, {
93
99
  type: "password",
94
100
  modelValue: t(l).encodeOldPwd,
95
- "onUpdate:modelValue": e[0] || (e[0] = (s) => t(l).encodeOldPwd = s),
101
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => t(l).encodeOldPwd = n),
96
102
  placeholder: o.$t("password.oldPwdRequired"),
97
103
  "show-password": "",
98
104
  clearable: ""
@@ -104,14 +110,15 @@ const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
104
110
  label: o.$t("password.newPwd"),
105
111
  prop: "encodeNewPwd"
106
112
  }, {
107
- default: n(() => [
113
+ default: s(() => [
108
114
  r(d, {
109
115
  type: "password",
110
116
  modelValue: t(l).encodeNewPwd,
111
- "onUpdate:modelValue": e[1] || (e[1] = (s) => t(l).encodeNewPwd = s),
117
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => t(l).encodeNewPwd = n),
112
118
  placeholder: o.$t("password.newPwdRequired"),
113
119
  "show-password": "",
114
- clearable: ""
120
+ clearable: "",
121
+ autocomplete: "new-password"
115
122
  }, null, 8, ["modelValue", "placeholder"])
116
123
  ]),
117
124
  _: 1
@@ -120,14 +127,15 @@ const z = { class: "dialog-footer" }, T = /* @__PURE__ */ q({
120
127
  label: o.$t("password.confirmPwd"),
121
128
  prop: "confirmPwd"
122
129
  }, {
123
- default: n(() => [
130
+ default: s(() => [
124
131
  r(d, {
125
132
  type: "password",
126
133
  modelValue: t(l).confirmPwd,
127
- "onUpdate:modelValue": e[2] || (e[2] = (s) => t(l).confirmPwd = s),
134
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => t(l).confirmPwd = n),
128
135
  placeholder: o.$t("password.confirmPwdRequired"),
129
136
  "show-password": "",
130
- clearable: ""
137
+ clearable: "",
138
+ autocomplete: "new-password"
131
139
  }, null, 8, ["modelValue", "placeholder"])
132
140
  ]),
133
141
  _: 1
@@ -53,10 +53,10 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
53
53
  default: never[];
54
54
  };
55
55
  }>> & Readonly<{}>, {
56
- validateField: string[];
57
- name: string;
58
56
  captchaId: string;
59
57
  captchaCode: string;
58
+ validateField: string[];
59
+ name: string;
60
60
  formRef: FormInstance;
61
61
  placeholder: string;
62
62
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -1,2 +1,18 @@
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>;
1
+ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
+ emit: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ register: (...args: any[]) => void;
8
+ }, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
9
+ emit: {
10
+ type: BooleanConstructor;
11
+ default: boolean;
12
+ };
13
+ }>> & Readonly<{
14
+ onRegister?: ((...args: any[]) => any) | undefined;
15
+ }>, {
16
+ emit: boolean;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
18
  export default _default;
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
25
25
  default: string;
26
26
  };
27
27
  }>> & Readonly<{}>, {
28
- name: string;
29
28
  title: string;
30
29
  icon: string;
30
+ name: string;
31
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
32
32
  export default _default;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- width: string;
41
40
  id: string;
41
+ width: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- width: string;
41
40
  id: string;
41
+ width: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- width: string;
41
40
  id: string;
41
+ width: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -37,8 +37,8 @@ declare const _default: import("vue").DefineComponent<globalThis.ExtractPropType
37
37
  required: true;
38
38
  };
39
39
  }>> & Readonly<{}>, {
40
- width: string;
41
40
  id: string;
41
+ width: string;
42
42
  height: string;
43
43
  className: string;
44
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
package/package.json CHANGED
@@ -1,82 +1,82 @@
1
- {
2
- "name": "jmash-core",
3
- "version": "0.1.20",
4
- "private": false,
5
- "module": "dist/index.mjs",
6
- "types": "dts/src/index.d.ts",
7
- "files": [
8
- "dist",
9
- "dts/src"
10
- ],
11
- "scripts": {
12
- "dev": "pnpm build:generate && vite serve --mode development",
13
- "build": "pnpm build:generate && vite build && pnpm build:dts",
14
- "build:generate": "tsx build/generate.ts",
15
- "preview": "vite preview",
16
- "build-only": "vite build",
17
- "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
18
- "type-check": "vue-tsc --build --force",
19
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
20
- "format": "prettier --write src/"
21
- },
22
- "devDependencies": {
23
- "@eslint/js": "^9.11.0",
24
- "@iconify-json/ep": "^1.1.15",
25
- "@intlify/core-base": "^9.10.2",
26
- "@laynezh/vite-plugin-lib-assets": "^2.1.0",
27
- "@rushstack/eslint-patch": "^1.3.3",
28
- "@tsconfig/node20": "^20.1.2",
29
- "@types/node": "^20.11.10",
30
- "@vitejs/plugin-vue": "^5.0.3",
31
- "@vue/tsconfig": "^0.5.1",
32
- "@vueuse/core": "^10.9.0",
33
- "camelcase": "^8.0.0",
34
- "chalk": "^5.3.0",
35
- "consola": "^3.2.3",
36
- "eslint": "^9.11.0",
37
- "eslint-plugin-vue": "^9.28.0",
38
- "fast-glob": "^3.3.2",
39
- "fs-extra": "^11.2.0",
40
- "globals": "^15.9.0",
41
- "npm-run-all2": "^6.1.1",
42
- "prettier": "^3.0.3",
43
- "sass": "^1.71.1",
44
- "sass-loader": "^14.1.1",
45
- "tsx": "^4.7.1",
46
- "typescript": "~5.3.0",
47
- "typescript-eslint": "^8.6.0",
48
- "unocss": "^0.58.5",
49
- "unplugin-auto-import": "^0.17.5",
50
- "unplugin-element-plus": "^0.8.0",
51
- "unplugin-icons": "^0.18.5",
52
- "unplugin-vue-components": "^0.26.0",
53
- "vite": "^5.0.11",
54
- "vue-tsc": "^1.8.27"
55
- },
56
- "peerDependencies": {
57
- "axios": "^1.9.0",
58
- "element-plus": "^2.11.5",
59
- "pinia": "^2.3.1",
60
- "vue": "^3.5.13",
61
- "vue-i18n": "^9.14.4",
62
- "vue-router": "^4.5.1"
63
- },
64
- "dependencies": {
65
- "@element-plus/icons-vue": "^2.3.1",
66
- "@vueuse/core": "^10.11.1",
67
- "@wangeditor-next/editor": "^5.6.34",
68
- "@wangeditor-next/editor-for-vue": "^5.1.14",
69
- "crypto-js": "^4.2.0",
70
- "echarts": "^5.6.0",
71
- "file-saver": "^2.0.5",
72
- "lodash-es": "^4.17.21",
73
- "lrz": "^4.9.41",
74
- "moment": "^2.30.1",
75
- "nprogress": "^0.2.0",
76
- "path-browserify": "^1.0.1",
77
- "path-to-regexp": "^6.3.0",
78
- "qs": "^6.14.0",
79
- "sm-crypto": "^0.3.13",
80
- "sortablejs": "^1.15.6"
81
- }
82
- }
1
+ {
2
+ "name": "jmash-core",
3
+ "version": "0.1.22",
4
+ "private": false,
5
+ "module": "dist/index.mjs",
6
+ "types": "dts/src/index.d.ts",
7
+ "files": [
8
+ "dist",
9
+ "dts/src"
10
+ ],
11
+ "scripts": {
12
+ "dev": "pnpm build:generate && vite serve --mode development",
13
+ "build": "pnpm build:generate && vite build && pnpm build:dts",
14
+ "build:generate": "tsx build/generate.ts",
15
+ "preview": "vite preview",
16
+ "build-only": "vite build",
17
+ "build:dts": "vue-tsc --declaration --emitDeclarationOnly",
18
+ "type-check": "vue-tsc --build --force",
19
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
20
+ "format": "prettier --write src/"
21
+ },
22
+ "devDependencies": {
23
+ "@eslint/js": "^9.11.0",
24
+ "@iconify-json/ep": "^1.1.15",
25
+ "@intlify/core-base": "^9.10.2",
26
+ "@laynezh/vite-plugin-lib-assets": "^2.1.0",
27
+ "@rushstack/eslint-patch": "^1.3.3",
28
+ "@tsconfig/node20": "^20.1.2",
29
+ "@types/node": "^20.11.10",
30
+ "@vitejs/plugin-vue": "^5.0.3",
31
+ "@vue/tsconfig": "^0.5.1",
32
+ "@vueuse/core": "^10.9.0",
33
+ "camelcase": "^8.0.0",
34
+ "chalk": "^5.3.0",
35
+ "consola": "^3.2.3",
36
+ "eslint": "^9.11.0",
37
+ "eslint-plugin-vue": "^9.28.0",
38
+ "fast-glob": "^3.3.2",
39
+ "fs-extra": "^11.2.0",
40
+ "globals": "^15.9.0",
41
+ "npm-run-all2": "^6.1.1",
42
+ "prettier": "^3.0.3",
43
+ "sass": "^1.71.1",
44
+ "sass-loader": "^14.1.1",
45
+ "tsx": "^4.7.1",
46
+ "typescript": "~5.3.0",
47
+ "typescript-eslint": "^8.6.0",
48
+ "unocss": "^0.58.5",
49
+ "unplugin-auto-import": "^0.17.5",
50
+ "unplugin-element-plus": "^0.8.0",
51
+ "unplugin-icons": "^0.18.5",
52
+ "unplugin-vue-components": "^0.26.0",
53
+ "vite": "^5.0.11",
54
+ "vue-tsc": "^1.8.27"
55
+ },
56
+ "peerDependencies": {
57
+ "axios": "^1.9.0",
58
+ "element-plus": "^2.11.5",
59
+ "pinia": "^2.3.1",
60
+ "vue": "^3.5.13",
61
+ "vue-i18n": "^9.14.4",
62
+ "vue-router": "^4.5.1"
63
+ },
64
+ "dependencies": {
65
+ "@element-plus/icons-vue": "^2.3.1",
66
+ "@vueuse/core": "^10.11.1",
67
+ "@wangeditor-next/editor": "^5.6.34",
68
+ "@wangeditor-next/editor-for-vue": "^5.1.14",
69
+ "crypto-js": "^4.2.0",
70
+ "echarts": "^5.6.0",
71
+ "file-saver": "^2.0.5",
72
+ "lodash-es": "^4.17.21",
73
+ "lrz": "^4.9.41",
74
+ "moment": "^2.30.1",
75
+ "nprogress": "^0.2.0",
76
+ "path-browserify": "^1.0.1",
77
+ "path-to-regexp": "^6.3.0",
78
+ "qs": "^6.14.0",
79
+ "sm-crypto": "^0.3.13",
80
+ "sortablejs": "^1.15.6"
81
+ }
82
+ }
@@ -1,6 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: globalThis.PropType<boolean>;
3
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
4
- modelValue: globalThis.PropType<boolean>;
5
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
6
- export default _default;
@@ -1,8 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
2
- captchaId: globalThis.PropType<string>;
3
- captchaCode: globalThis.PropType<string>;
4
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
5
- captchaId: globalThis.PropType<string>;
6
- captchaCode: globalThis.PropType<string>;
7
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
8
- export default _default;