@kengic/vue 0.26.5-beta.0 → 0.26.5-beta.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. package/dist/fit-screen-outline.7341560f.mjs +8 -0
  2. package/dist/index.css +1 -1
  3. package/dist/kengic-vue.js +22815 -14420
  4. package/dist/one-to-one-outlined.4f97e62a.mjs +8 -0
  5. package/dist/reload-outlined.abae07b1.mjs +8 -0
  6. package/dist/src/apis/WMS/Controllers/DescriptionController/List.d.ts +3 -1
  7. package/dist/src/apis/WMS/Controllers/WorkstationController/List.d.ts +25 -0
  8. package/dist/src/apis/WMS/Controllers/WorkstationController/index.d.ts +1 -0
  9. package/dist/src/apis/WMS/Controllers/index.d.ts +1 -0
  10. package/dist/src/apis/WMS/models.d.ts +72 -0
  11. package/dist/src/components/KgAppSelect/index.store.d.ts +2 -2
  12. package/dist/src/components/KgButton/index.store.d.ts +2 -2
  13. package/dist/src/components/KgCanvas/KgCanvas.ContextMenu.d.ts +104 -0
  14. package/dist/src/components/KgCanvas/KgCanvas.d.ts +122 -0
  15. package/dist/src/components/KgCanvas/KgCanvas.service.d.ts +35 -0
  16. package/dist/src/components/KgCanvas/index.d.ts +4 -0
  17. package/dist/src/components/KgCanvas/index.hooks.d.ts +49 -0
  18. package/dist/src/components/KgCanvas/index.store.d.ts +201 -0
  19. package/dist/src/components/KgForm/index.store.d.ts +2 -2
  20. package/dist/src/components/KgSearch/index.store.d.ts +2 -2
  21. package/dist/src/components/KgStation/KgStation.d.ts +47 -0
  22. package/dist/src/components/KgStation/index.d.ts +3 -0
  23. package/dist/src/components/KgStation/index.hooks.d.ts +29 -0
  24. package/dist/src/components/KgStation/index.store.d.ts +45 -0
  25. package/dist/src/components/KgSubmit/index.store.d.ts +2 -2
  26. package/dist/src/components/KgTable/index.store.d.ts +2 -2
  27. package/dist/src/components/KgVar/index.store.d.ts +2 -2
  28. package/dist/src/components/KgWarehouse/KgWarehouse.d.ts +21 -12
  29. package/dist/src/components/KgWarehouse/index.hooks.d.ts +3 -4
  30. package/dist/src/components/KgWarehouse/index.store.d.ts +13 -11
  31. package/dist/src/components/index.d.ts +3 -0
  32. package/dist/src/config/index.store.d.ts +13 -5
  33. package/dist/src/consts/i18n/en.d.ts +8 -0
  34. package/dist/src/consts/i18n/es_ES.d.ts +8 -0
  35. package/dist/src/consts/i18n/fr_FR.d.ts +8 -0
  36. package/dist/src/consts/i18n/km_KH.d.ts +8 -0
  37. package/dist/src/consts/i18n/ko_KR.d.ts +8 -0
  38. package/dist/src/consts/i18n/vi_VN.d.ts +8 -0
  39. package/dist/src/consts/i18n/zh_CN.d.ts +8 -0
  40. package/dist/src/services/http-client.d.ts +54 -19
  41. package/dist/src/utils/kg.util.d.ts +3 -1
  42. package/package.json +5 -7
@@ -96,6 +96,14 @@ declare const _default: {
96
96
  formTitle: string;
97
97
  pleaseSelectVarProfileMaster: string;
98
98
  };
99
+ KgStation: {
100
+ reloadMessage: string;
101
+ selectStation: string;
102
+ station: string;
103
+ title: string;
104
+ workArea: string;
105
+ workStation: string;
106
+ };
99
107
  KgTable: {
100
108
  apiNotSupportDynamicQuery: string;
101
109
  column: string;
@@ -96,6 +96,14 @@ declare const _default: {
96
96
  formTitle: string;
97
97
  pleaseSelectVarProfileMaster: string;
98
98
  };
99
+ KgStation: {
100
+ reloadMessage: string;
101
+ selectStation: string;
102
+ station: string;
103
+ title: string;
104
+ workArea: string;
105
+ workStation: string;
106
+ };
99
107
  KgTable: {
100
108
  apiNotSupportDynamicQuery: string;
101
109
  column: string;
@@ -96,6 +96,14 @@ declare const _default: {
96
96
  formTitle: string;
97
97
  pleaseSelectVarProfileMaster: string;
98
98
  };
99
+ KgStation: {
100
+ reloadMessage: string;
101
+ selectStation: string;
102
+ station: string;
103
+ title: string;
104
+ workArea: string;
105
+ workStation: string;
106
+ };
99
107
  KgTable: {
100
108
  apiNotSupportDynamicQuery: string;
101
109
  column: string;
@@ -96,6 +96,14 @@ declare const _default: {
96
96
  formTitle: string;
97
97
  pleaseSelectVarProfileMaster: string;
98
98
  };
99
+ KgStation: {
100
+ reloadMessage: string;
101
+ selectStation: string;
102
+ station: string;
103
+ title: string;
104
+ workArea: string;
105
+ workStation: string;
106
+ };
99
107
  KgTable: {
100
108
  apiNotSupportDynamicQuery: string;
101
109
  column: string;
@@ -96,6 +96,14 @@ declare const _default: {
96
96
  formTitle: string;
97
97
  pleaseSelectVarProfileMaster: string;
98
98
  };
99
+ KgStation: {
100
+ reloadMessage: string;
101
+ selectStation: string;
102
+ station: string;
103
+ title: string;
104
+ workArea: string;
105
+ workStation: string;
106
+ };
99
107
  KgTable: {
100
108
  apiNotSupportDynamicQuery: string;
101
109
  column: string;
@@ -22,26 +22,14 @@ interface IRequestConfig<P = {}, D = {}> extends AxiosRequestConfig<D> {
22
22
  params?: P;
23
23
  }
24
24
  interface IRequestOptions {
25
- joinParamsToUrl?: boolean;
26
- formatDate?: boolean;
27
- isTransformResponse?: boolean;
28
- isReturnNativeResponse?: boolean;
29
- joinPrefix?: boolean;
25
+ /**
26
+ * 接口地址,如果保留为空,则使用默认值
27
+ */
30
28
  apiUrl?: string;
31
- urlPrefix?: string;
32
- errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
33
- successMessageMode?: 'none' | 'success' | 'error' | undefined;
34
- joinTime?: boolean;
35
- ignoreCancelToken?: boolean;
36
- withToken?: boolean;
37
- /** 是否使用模拟数据. */
38
- mock?: boolean;
39
29
  /**
40
- * <p>高级查询时, 各个请求参数的高级查询操作符.</p>
41
- * <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
42
- * <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
30
+ * dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
43
31
  */
44
- dynamicQueryOperatorModel?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
32
+ dayjs?: typeof dayjs;
45
33
  /**
46
34
  * <p>高级查询时, 对应的界面标识.</p>
47
35
  */
@@ -51,8 +39,55 @@ interface IRequestOptions {
51
39
  */
52
40
  dynamicQueryKgSearchFormID?: string;
53
41
  /**
54
- * dayjs 实例, 必须跟 {@link IRequestOptions.dynamicQueryOperatorModel} 同时传值. 即如果参数 {@link IRequestOptions.dynamicQueryOperatorModel} 不为空, 则参数 {@link IRequestOptions.dayjs} 也必须不为空.
42
+ * <p>高级查询时, 各个请求参数的高级查询操作符.</p>
43
+ * <p>如果该参数不为空, 表示该请求启用了高级查询.</p>
44
+ * <p>其中的 key 表示参数名, 对应的 value 表示该参数的高级查询操作符(>,=,<...).</p>
55
45
  */
56
- dayjs?: typeof dayjs;
46
+ dynamicQueryOperatorModel?: Record<string, KG_DYNAMIC_QUERY_OPERATOR>;
47
+ /**
48
+ * 错误消息提示类型
49
+ */
50
+ errorMessageMode?: 'none' | 'modal' | 'message' | undefined;
51
+ /**
52
+ * 格式化请求参数时间
53
+ */
54
+ formatDate?: boolean;
55
+ ignoreCancelToken?: boolean;
56
+ /**
57
+ * 是否返回本地响应头,需要获取响应头时使用此属性
58
+ */
59
+ isReturnNativeResponse?: boolean;
60
+ /**
61
+ * 是否处理请求结果
62
+ */
63
+ isTransformResponse?: boolean;
64
+ /**
65
+ * 将请求参数拼接到url
66
+ */
67
+ joinParamsToUrl?: boolean;
68
+ /**
69
+ * Whether to join url
70
+ */
71
+ joinPrefix?: boolean;
72
+ /**
73
+ * 是否添加时间戳
74
+ */
75
+ joinTime?: boolean;
76
+ /**
77
+ * <p>模拟数据. 如果不为 undefined 则不会发起请求, 而是直接返回该模拟数据.</p>
78
+ */
79
+ mock?: any;
80
+ /**
81
+ * 成功消息提示类型
82
+ */
83
+ successMessageMode?: 'none' | 'success' | 'error' | undefined;
84
+ /**
85
+ * 请求拼接路径
86
+ */
87
+ urlPrefix?: string;
88
+ /**
89
+ * 是否在标头中发送令牌
90
+ */
91
+ withToken?: boolean;
57
92
  }
58
93
  export { setupHttpClient, kgSetupHttpClient, httpClient, type IRequestConfig, type IRequestOptions };
@@ -33,7 +33,7 @@ export declare class KgUtil {
33
33
  * <ul>
34
34
  * <li>删除无用属性,</li>
35
35
  * <li>日期转换为字符串,</li>
36
- * <li>解析动态属性, 比如 {WAREHOUSE},</li>
36
+ * <li>解析动态属性, 比如「仓库号」,</li>
37
37
  * </ul>
38
38
  *
39
39
  * @param params 请求参数.
@@ -48,6 +48,8 @@ export declare class KgUtil {
48
48
  * <li>填充通用参数的值:
49
49
  * <ul>
50
50
  * <li>{WAREHOUSE}: 当前仓库编号</li>
51
+ * <li>{WORK_STATION}: 当前工作站</li>
52
+ * <li>{WORK_AREA}: 当前工作区</li>
51
53
  * <li>{LOCALE}: 当前语言</li>
52
54
  * <li>{NOW}: 当前时间</li>
53
55
  * <li>{USER}: 当前用户</li>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.26.5-beta.0",
3
+ "version": "0.26.5-beta.10",
4
4
  "scripts": {
5
5
  "build": "npm run switch-node-version && rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "npm run switch-node-version && rimraf dist && vue-tsc && vite build --mode development",
@@ -24,11 +24,8 @@
24
24
  "publish:npm": "npm run switch-node-version && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public",
25
25
  "------- ------------------------------------------": "",
26
26
  "copy-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
27
- "copy-to:luotao:smartfactory.product.wms.wms-vue3--focus": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts",
28
- "copy-to:luotao:smartfactory.tyre.haohua.gantry.was-java--main": "npm run build:dev && tsx scripts/copy-to.luotao.smartfactory.tyre.haohua.gantry.was-java--main.ts",
29
27
  "--- ----------------------------------------------": "",
30
- "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts",
31
- "bump-to:luotao:smartfactory.product.wms.wms-vue3--focus": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms-vue3--focus.ts"
28
+ "bump-to:luotao:smartfactory.product.wms.wms--dev-3.2": "npm run switch-node-version && tsx scripts/bump-to.luotao.smartfactory.product.wms.wms--dev-3.2.ts"
32
29
  },
33
30
  "peerDependencies": {
34
31
  "vue": "3.2.43"
@@ -43,8 +40,9 @@
43
40
  "@iconify-icons/mdi": "1.2.48",
44
41
  "@iconify-icons/ph": "1.2.5",
45
42
  "@iconify/vue": "4.1.1",
46
- "@kengic/pont": "1.2.14",
43
+ "@kengic/pont": "1.2.17-beta.0",
47
44
  "@rys-fe/vite-plugin-theme": "0.8.6",
45
+ "@thymine/xunee": "0.4.9-beta.7",
48
46
  "@types/crypto-js": "4.1.1",
49
47
  "@types/fs-extra": "9.0.13",
50
48
  "@types/inquirer": "8.2.5",
@@ -72,7 +70,7 @@
72
70
  "lodash-es": "4.17.21",
73
71
  "picocolors": "1.0.0",
74
72
  "pinia": "2.0.12",
75
- "prettier": "3.2.5",
73
+ "prettier": "3.3.3",
76
74
  "rimraf": "3.0.2",
77
75
  "rollup": "2.79.1",
78
76
  "rollup-plugin-visualizer": "5.8.3",