jmash-core 0.0.139 → 0.0.140

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 (31) hide show
  1. package/dist/{401-DZpC9YTs.mjs → 401-mTulvsgZ.mjs} +3 -3
  2. package/dist/{404-C8f86iDp.mjs → 404-DxlWduSf.mjs} +3 -3
  3. package/dist/{BarChart-DDRpEgTd.mjs → BarChart-CtUdxB_0.mjs} +5 -5
  4. package/dist/{FunnelChart-BzoTNn36.mjs → FunnelChart-D6-3qMKT.mjs} +5 -5
  5. package/dist/{PieChart-vvePUqxP.mjs → PieChart-pHMdR-Hx.mjs} +1 -1
  6. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-B4J5buH_.mjs → PieChart.vue_vue_type_script_setup_true_lang-zNUDoKtb.mjs} +6 -6
  7. package/dist/{RadarChart-RsjrWpKm.mjs → RadarChart-CclJ-0mQ.mjs} +1 -1
  8. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CPbv9lgv.mjs → RadarChart.vue_vue_type_script_setup_true_lang-CkA5ajJ-.mjs} +6 -6
  9. package/dist/{index-DA53-ye2.mjs → index--_Po9Tig.mjs} +8536 -8435
  10. package/dist/index-C9nXRt5O.mjs +1630 -0
  11. package/dist/index-CfF_1UQn.mjs +38529 -0
  12. package/dist/{index-DJSD1vCB.mjs → index-DuxBd-8U.mjs} +8 -8
  13. package/dist/{index-uykKwY2Z.mjs → index-JBmY6Vt0.mjs} +2 -2
  14. package/dist/{index-DY1G0gQY.mjs → index-Mj1ROiut.mjs} +8 -8
  15. package/dist/{index-JbCMx997.mjs → index-pVhvMkbz.mjs} +4 -4
  16. package/dist/index.mjs +9 -9
  17. package/dist/{profile-39mdgGCy.mjs → profile-CGK99sh1.mjs} +22 -20
  18. package/dist/{runAs-DSDIc1wL.mjs → runAs-B8LJKe8Q.mjs} +1 -1
  19. package/dist/{runAs.vue_vue_type_script_setup_true_lang-CWaxRtUr.mjs → runAs.vue_vue_type_script_setup_true_lang-rKU04MVd.mjs} +13 -13
  20. package/dist/style.css +1 -1
  21. package/dist/{types-BS_5KYWk.mjs → types-BvEVzU5Z.mjs} +4 -4
  22. package/dist/{updatePwd-DC9_1R-9.mjs → updatePwd-BI8GFMwr.mjs} +1 -1
  23. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DcC1PWmC.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DJXNzQb4.mjs} +3 -3
  24. package/dts/src/components/JmashEditor/index.vue.d.ts +2 -2
  25. package/dts/src/hooks/table.d.ts +2 -2
  26. package/dts/src/index.d.ts +1 -1
  27. package/dts/src/settings.d.ts +7 -0
  28. package/dts/src/stores/modules/tagsView.d.ts +10 -1
  29. package/package.json +14 -20
  30. package/dist/index-D2Kgkz0x.mjs +0 -43105
  31. package/dist/index-DIoh7ua9.mjs +0 -1644
@@ -1,12 +1,12 @@
1
- import { openBlock as I, createElementBlock as y, createElementVNode as u, defineComponent as B, ref as V, reactive as f, resolveComponent as i, Fragment as D, createVNode as t, withCtx as l, createTextVNode as _, toDisplayString as v } from "vue";
2
- import { v as E, b as w, w as N, x as q, y as R } from "./index-D2Kgkz0x.mjs";
1
+ import { createElementBlock as I, openBlock as y, createElementVNode as u, defineComponent as B, ref as V, reactive as f, resolveComponent as i, Fragment as D, createVNode as t, withCtx as l, createTextVNode as _, toDisplayString as v } from "vue";
2
+ import { v as E, b as w, w as N, x as q, y as R } from "./index-CfF_1UQn.mjs";
3
3
  const S = {
4
4
  viewBox: "0 0 1024 1024",
5
5
  width: "1.2em",
6
6
  height: "1.2em"
7
7
  };
8
8
  function A(k, c) {
9
- return I(), y("svg", S, c[0] || (c[0] = [
9
+ return y(), I("svg", S, c[0] || (c[0] = [
10
10
  u("path", {
11
11
  fill: "currentColor",
12
12
  d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
@@ -82,7 +82,7 @@ const L = { name: "ep-picture", render: A }, P = { class: "h-[40px]" }, T = { cl
82
82
  }
83
83
  return (a, e) => {
84
84
  const p = i("el-input"), r = i("el-form-item"), s = i("el-button"), b = i("el-form"), U = L, $ = i("el-image"), z = i("el-dialog");
85
- return I(), y(D, null, [
85
+ return y(), I(D, null, [
86
86
  t(b, {
87
87
  ref_key: "ruleFormRef",
88
88
  ref: g,
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-DcC1PWmC.mjs";
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-DJXNzQb4.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, openBlock as O, createBlock as A, unref as t, isRef as U, withCtx as n, createElementVNode as z, createVNode as r, 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 n, createVNode as r, createElementVNode as z, createTextVNode as g, toDisplayString as _ } from "vue";
2
2
  import { ElMessage as B } from "element-plus";
3
- import { z as b, M as D } from "./index-D2Kgkz0x.mjs";
3
+ import { z as b, M as D } from "./index-CfF_1UQn.mjs";
4
4
  import { useI18n as I } from "vue-i18n";
5
5
  const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
6
6
  __name: "updatePwd",
@@ -49,7 +49,7 @@ const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
49
49
  }
50
50
  return (o, e) => {
51
51
  const d = i("el-input"), w = i("el-form-item"), m = i("el-form"), P = i("el-button"), C = i("el-dialog");
52
- return O(), A(C, {
52
+ return A(), O(C, {
53
53
  title: "修改密码",
54
54
  modelValue: t(u),
55
55
  "onUpdate:modelValue": e[3] || (e[3] = (s) => U(u) ? u.value = s : null),
@@ -1,5 +1,5 @@
1
- import "@wangeditor/editor/dist/css/style.css";
2
- import type { IToolbarConfig } from "@wangeditor/editor";
1
+ import "@wangeditor-next/editor/dist/css/style.css";
2
+ import type { IToolbarConfig } from "@wangeditor-next/editor";
3
3
  declare const _default: import("vue").DefineComponent<globalThis.ExtractPropTypes<{
4
4
  modelValue: globalThis.PropType<string>;
5
5
  lang: {
@@ -28,10 +28,10 @@ export declare class TableHooks {
28
28
  findPage(): boolean;
29
29
  /** 处理查询,如果查询数据中存在当前页数,则重置为第一页. */
30
30
  handleQuery(): void;
31
- /** 从详情页返回列表页并保留查询条件重新查询 */
32
- restoreAndQuery(): void;
33
31
  handleSort(prop: string, order: string | null): void;
34
32
  resetQuery(): void;
33
+ /** 从详情页返回列表页并保留查询条件重新查询 */
34
+ restoreAndQuery(): void;
35
35
  /**
36
36
  * 用于清除查询条件并重新加载数据与restoreAndQuery()对应
37
37
  * 此函数用于重置查询表单,清除查询参数,并触发数据的重新加载
@@ -33,7 +33,7 @@ export { i18n };
33
33
  import "element-plus/theme-chalk/dark/css-vars.css";
34
34
  import "./styles/index.scss";
35
35
  import "uno.css";
36
- import type { IToolbarConfig, IEditorConfig, IDomEditor } from "@wangeditor/editor";
36
+ import type { IToolbarConfig, IEditorConfig, IDomEditor } from "@wangeditor-next/editor";
37
37
  export type { IToolbarConfig, IEditorConfig, IDomEditor };
38
38
  import "element-plus/theme-chalk/index.css";
39
39
  declare const jmash: {
@@ -8,6 +8,13 @@ declare const menus: Map<any, any>;
8
8
  declare const dynamicRoutes: RouteRecordRaw[];
9
9
  /** 添加Vite模块菜单. **/
10
10
  export declare function addViteMenus(modules: Record<string, any>, startLen: number): void;
11
+ export declare function defineComponentWithName(component: any, name: string): import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
12
+ /**
13
+ * 将路径字符串转换为 PascalCase 格式的类名
14
+ * @param path 输入的路径字符串,例如 "system/user/index"
15
+ * @returns 转换后的 PascalCase 字符串,例如 "SystemUserIndex"
16
+ */
17
+ export declare function pathToPascalCase(path: string): string;
11
18
  /** 添加Webpack模块菜单. **/
12
19
  export declare function addWebpackMenus(modules: any, startLen: number): void;
13
20
  /** 添加动态路由. */
@@ -34,6 +34,9 @@ export declare const useTagsViewStore: import("pinia").StoreDefinition<"tagsView
34
34
  delAllViews: () => Promise<unknown>;
35
35
  delAllVisitedViews: () => Promise<unknown>;
36
36
  delAllCachedViews: () => Promise<unknown>;
37
+ closeCurrentView: () => void;
38
+ isActive: (tag: TagView) => boolean;
39
+ toLastView: (visitedViews: TagView[], view?: TagView) => void;
37
40
  delViewByFullPath: (fullPath: string) => Promise<TagView>;
38
41
  }, "visitedViews" | "cachedViews">, Pick<{
39
42
  visitedViews: globalThis.Ref<{
@@ -71,6 +74,9 @@ export declare const useTagsViewStore: import("pinia").StoreDefinition<"tagsView
71
74
  delAllViews: () => Promise<unknown>;
72
75
  delAllVisitedViews: () => Promise<unknown>;
73
76
  delAllCachedViews: () => Promise<unknown>;
77
+ closeCurrentView: () => void;
78
+ isActive: (tag: TagView) => boolean;
79
+ toLastView: (visitedViews: TagView[], view?: TagView) => void;
74
80
  delViewByFullPath: (fullPath: string) => Promise<TagView>;
75
81
  }, never>, Pick<{
76
82
  visitedViews: globalThis.Ref<{
@@ -108,5 +114,8 @@ export declare const useTagsViewStore: import("pinia").StoreDefinition<"tagsView
108
114
  delAllViews: () => Promise<unknown>;
109
115
  delAllVisitedViews: () => Promise<unknown>;
110
116
  delAllCachedViews: () => Promise<unknown>;
117
+ closeCurrentView: () => void;
118
+ isActive: (tag: TagView) => boolean;
119
+ toLastView: (visitedViews: TagView[], view?: TagView) => void;
111
120
  delViewByFullPath: (fullPath: string) => Promise<TagView>;
112
- }, "addVisitedView" | "addCachedView" | "delVisitedView" | "delCachedView" | "delOtherVisitedViews" | "delOtherCachedViews" | "updateVisitedView" | "addView" | "delView" | "delOtherViews" | "delLeftViews" | "delRightViews" | "delAllViews" | "delAllVisitedViews" | "delAllCachedViews" | "delViewByFullPath">>;
121
+ }, "addVisitedView" | "addCachedView" | "delVisitedView" | "delCachedView" | "delOtherVisitedViews" | "delOtherCachedViews" | "updateVisitedView" | "addView" | "delView" | "delOtherViews" | "delLeftViews" | "delRightViews" | "delAllViews" | "delAllVisitedViews" | "delAllCachedViews" | "closeCurrentView" | "isActive" | "toLastView" | "delViewByFullPath">>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jmash-core",
3
- "version": "0.0.139",
3
+ "version": "0.0.140",
4
4
  "private": false,
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dts/src/index.d.ts",
@@ -18,7 +18,6 @@
18
18
  "@vitejs/plugin-vue": "^5.0.3",
19
19
  "@vue/tsconfig": "^0.5.1",
20
20
  "@vueuse/core": "^10.9.0",
21
- "axios": "^1.6.7",
22
21
  "camelcase": "^8.0.0",
23
22
  "chalk": "^5.3.0",
24
23
  "consola": "^3.2.3",
@@ -28,9 +27,7 @@
28
27
  "fs-extra": "^11.2.0",
29
28
  "globals": "^15.9.0",
30
29
  "npm-run-all2": "^6.1.1",
31
- "pinia": "^2.1.7",
32
30
  "prettier": "^3.0.3",
33
- "qs": "^6.12.0",
34
31
  "sass": "^1.71.1",
35
32
  "sass-loader": "^14.1.1",
36
33
  "tsx": "^4.7.1",
@@ -42,36 +39,33 @@
42
39
  "unplugin-icons": "^0.18.5",
43
40
  "unplugin-vue-components": "^0.26.0",
44
41
  "vite": "^5.0.11",
45
- "vue": "^3.4.21",
46
- "vue-i18n": "^9.10.1",
47
- "vue-router": "^4.3.0",
48
42
  "vue-tsc": "^1.8.27"
49
43
  },
50
44
  "peerDependencies": {
51
- "axios": "^1.7.7",
52
- "element-plus": "^2.8.7",
53
- "pinia": "^2.2.4",
54
- "vue": "^3.5.11",
55
- "vue-i18n": "^9.14.1",
56
- "vue-router": "^4.4.5"
45
+ "axios": "^1.9.0",
46
+ "element-plus": "^2.9.10",
47
+ "pinia": "^2.3.1",
48
+ "vue": "^3.5.13",
49
+ "vue-i18n": "^9.14.4",
50
+ "vue-router": "^4.5.1"
57
51
  },
58
52
  "dependencies": {
59
53
  "@element-plus/icons-vue": "^2.3.1",
60
- "@vueuse/core": "^10.9.0",
61
- "@wangeditor/editor": "^5.1.23",
62
- "@wangeditor/editor-for-vue": "^5.1.12",
54
+ "@vueuse/core": "^10.11.1",
55
+ "@wangeditor-next/editor": "^5.6.34",
56
+ "@wangeditor-next/editor-for-vue": "^5.1.14",
63
57
  "crypto-js": "^4.2.0",
64
- "echarts": "^5.5.0",
58
+ "echarts": "^5.6.0",
65
59
  "file-saver": "^2.0.5",
66
60
  "lodash-es": "^4.17.21",
67
61
  "lrz": "^4.9.41",
68
62
  "moment": "^2.30.1",
69
63
  "nprogress": "^0.2.0",
70
64
  "path-browserify": "^1.0.1",
71
- "path-to-regexp": "^6.2.1",
72
- "qs": "^6.12.0",
65
+ "path-to-regexp": "^6.3.0",
66
+ "qs": "^6.14.0",
73
67
  "sm-crypto": "^0.3.13",
74
- "sortablejs": "^1.15.2"
68
+ "sortablejs": "^1.15.6"
75
69
  },
76
70
  "scripts": {
77
71
  "dev": "pnpm build:generate && vite serve --mode development",