@kengic/vue 0.31.17-beta.1 → 0.31.17
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/bin/postinstall.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import chalk from 'chalk';
|
|
|
11
11
|
* @param message 日志消息.
|
|
12
12
|
*/
|
|
13
13
|
function logI(message) {
|
|
14
|
-
console.log(chalk.
|
|
14
|
+
console.log(chalk.bgBlueBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
/**
|
|
@@ -20,7 +20,7 @@ function logI(message) {
|
|
|
20
20
|
* @param message 日志消息.
|
|
21
21
|
*/
|
|
22
22
|
function logS(message) {
|
|
23
|
-
console.log(chalk.
|
|
23
|
+
console.log(chalk.bgGreenBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
/**
|
|
@@ -29,7 +29,7 @@ function logS(message) {
|
|
|
29
29
|
* @param message 日志消息.
|
|
30
30
|
*/
|
|
31
31
|
function logW(message) {
|
|
32
|
-
console.log(chalk.
|
|
32
|
+
console.log(chalk.bgYellowBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
@@ -38,7 +38,7 @@ function logW(message) {
|
|
|
38
38
|
* @param message 日志消息.
|
|
39
39
|
*/
|
|
40
40
|
function logE(message) {
|
|
41
|
-
console.log(chalk.
|
|
41
|
+
console.log(chalk.brRedBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
/**
|
package/bin/preinstall.mjs
CHANGED
|
@@ -4,7 +4,7 @@ const REQUIRED_NODE_VERSION = '24.14.1';
|
|
|
4
4
|
const REQUIRED_PNPM_VERSION = '10.33.0';
|
|
5
5
|
|
|
6
6
|
console.log(
|
|
7
|
-
chalk.
|
|
7
|
+
chalk.bgBlueBright(
|
|
8
8
|
`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL | 期望的环境版本为: node@${REQUIRED_NODE_VERSION.padEnd(8, ' ')} 和 pnpm@${REQUIRED_PNPM_VERSION.padEnd(8, ' ')}`,
|
|
9
9
|
),
|
|
10
10
|
);
|
|
@@ -13,7 +13,7 @@ const CURRENT_NODE_VERSION = process.versions.node;
|
|
|
13
13
|
const CURRENT_PNPM_VERSION = /^pnpm\/(\S+)\s/.exec(process.env.npm_config_user_agent ?? '')?.[1] ?? '';
|
|
14
14
|
|
|
15
15
|
console.log(
|
|
16
|
-
chalk.
|
|
16
|
+
chalk.bgBlueBright(
|
|
17
17
|
`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] PRE-INSTALL | 当前的环境版本为: node@${CURRENT_NODE_VERSION.padEnd(8, ' ')} 和 pnpm@${CURRENT_PNPM_VERSION.padEnd(8, ' ')}`,
|
|
18
18
|
),
|
|
19
19
|
);
|
package/dist/kengic-vue.js
CHANGED
|
@@ -100067,7 +100067,7 @@ function _interopRequireDefault(re) {
|
|
|
100067
100067
|
return re && re.__esModule ? re : { default: re };
|
|
100068
100068
|
}
|
|
100069
100069
|
default_1 = zhTW.default = _zhCHT.default;
|
|
100070
|
-
const version = "0.31.17
|
|
100070
|
+
const version = "0.31.17", cs_CZ$1 = {}, en$2 = {
|
|
100071
100071
|
"kg.KgAppSelect.businessManager": "Business Manager",
|
|
100072
100072
|
"kg.KgAppSelect.dataManager": "Data Manager",
|
|
100073
100073
|
"kg.KgAppSelect.sys": "System Config",
|
|
@@ -118097,10 +118097,16 @@ const KgTable$1 = "", getProps$D = () => ({
|
|
|
118097
118097
|
value: {}
|
|
118098
118098
|
};
|
|
118099
118099
|
try {
|
|
118100
|
-
|
|
118100
|
+
await emit$7({
|
|
118101
|
+
event: "onBeforeRequestExecute",
|
|
118102
|
+
id: kgVar.fid,
|
|
118103
|
+
parameter: {
|
|
118104
|
+
requestConfig: Ma
|
|
118105
|
+
}
|
|
118106
|
+
}) || (Da.value = await httpClient().request(Ma, {
|
|
118101
118107
|
isReturnNativeResponse: !0,
|
|
118102
118108
|
successMessageMode: "none"
|
|
118103
|
-
});
|
|
118109
|
+
}));
|
|
118104
118110
|
} catch (Ka) {
|
|
118105
118111
|
if (!await emit$7({
|
|
118106
118112
|
event: "onRequestError",
|
|
@@ -118625,6 +118631,7 @@ function useKgTable(re) {
|
|
|
118625
118631
|
onAfterSearch: KgUtil.kgOnEventFactory({ event: "onAfterRequest", eventListeners: eventListeners$7, id: ae.fid }),
|
|
118626
118632
|
onBeforeParseRequestParameter: KgUtil.kgOnEventFactory({ event: "onBeforeParseRequestParameter", eventListeners: eventListeners$7, id: ae.fid }),
|
|
118627
118633
|
onBeforeRequest: KgUtil.kgOnEventFactory({ event: "onBeforeRequest", eventListeners: eventListeners$7, id: ae.fid }),
|
|
118634
|
+
onBeforeRequestExecute: KgUtil.kgOnEventFactory({ event: "onBeforeRequestExecute", eventListeners: eventListeners$7, id: ae.fid }),
|
|
118628
118635
|
onBeforeRetrieve: KgUtil.kgOnEventFactory({ event: "onBeforeRequest", eventListeners: eventListeners$7, id: ae.fid }),
|
|
118629
118636
|
onBeforeSearch: KgUtil.kgOnEventFactory({ event: "onBeforeRequest", eventListeners: eventListeners$7, id: ae.fid }),
|
|
118630
118637
|
onBeforeSetDatas: KgUtil.kgOnEventFactory({ event: "onBeforeSetDatas", eventListeners: eventListeners$7, id: ae.fid }),
|
|
@@ -2,11 +2,12 @@ import { IKgEventListener } from '@kengic/core.core';
|
|
|
2
2
|
import { AxiosResponse } from 'axios';
|
|
3
3
|
import { Ref } from 'vue';
|
|
4
4
|
import { IPage } from '../../api/WMS/models';
|
|
5
|
+
import { IRequestConfig } from '../../service';
|
|
5
6
|
import { IKgTableRow } from './KgTable.model';
|
|
6
7
|
/**
|
|
7
8
|
* 事件类型.
|
|
8
9
|
*/
|
|
9
|
-
export declare type IKgTableEvent = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
10
|
+
export declare type IKgTableEvent = 'onReady' | 'onRowDoubleClick' | 'onBeforeParseRequestParameter' | 'onBeforeRequest' | 'onBeforeRequestExecute' | 'onBeforeTransformDatas' | 'onBeforeSetDatas' | 'onAfterRequest' | 'onRequestError';
|
|
10
11
|
export declare type IKgTable$EventListenerParameter$onReady = {};
|
|
11
12
|
export declare type IKgTable$EventListener$onReady = ((param: IKgTable$EventListenerParameter$onReady) => Promise<boolean>) & IKgEventListener;
|
|
12
13
|
export declare type IKgTable$EventListenerParameter$onRowDoubleClick = {
|
|
@@ -36,6 +37,13 @@ export declare type IKgTable$EventListenerParameter$onBeforeRequest = {
|
|
|
36
37
|
response$: Ref;
|
|
37
38
|
};
|
|
38
39
|
export declare type IKgTable$EventListener$onBeforeRequest = ((param: IKgTable$EventListenerParameter$onBeforeRequest) => Promise<boolean>) & IKgEventListener;
|
|
40
|
+
export declare type IKgTable$EventListenerParameter$onBeforeRequestExecute = {
|
|
41
|
+
/**
|
|
42
|
+
* 请求参数.
|
|
43
|
+
*/
|
|
44
|
+
requestConfig: IRequestConfig;
|
|
45
|
+
};
|
|
46
|
+
export declare type IKgTable$EventListener$onBeforeRequestExecute = ((param: IKgTable$EventListenerParameter$onBeforeRequestExecute) => Promise<boolean>) & IKgEventListener;
|
|
39
47
|
export declare type IKgTable$EventListenerParameter$onBeforeTransformDatas = {
|
|
40
48
|
/** 查询接口返回的数据, 调用者可以直接修改该数据. */
|
|
41
49
|
response: Ref;
|
|
@@ -85,12 +93,13 @@ export declare type IKgTable$EventListenerParameter$onRequestError = {
|
|
|
85
93
|
e: Error;
|
|
86
94
|
};
|
|
87
95
|
export declare type IKgTable$EventListener$onRequestError = ((param: IKgTable$EventListenerParameter$onRequestError) => Promise<boolean>) & IKgEventListener;
|
|
88
|
-
export declare type IKgTable$EventListenerParameter = IKgTable$EventListenerParameter$onReady | IKgTable$EventListenerParameter$onRowDoubleClick | IKgTable$EventListenerParameter$onBeforeParseRequestParameter | IKgTable$EventListenerParameter$onBeforeRequest | IKgTable$EventListenerParameter$onBeforeTransformDatas | IKgTable$EventListenerParameter$onBeforeSetDatas | IKgTable$EventListenerParameter$onRequestError | IKgTable$EventListenerParameter$onAfterRequest;
|
|
89
|
-
export declare type IKgTable$EventListener = IKgTable$EventListener$onReady | IKgTable$EventListener$onRowDoubleClick | IKgTable$EventListener$onBeforeParseRequestParameter | IKgTable$EventListener$onBeforeRequest | IKgTable$EventListener$onBeforeTransformDatas | IKgTable$EventListener$onBeforeSetDatas | IKgTable$EventListener$onRequestError | IKgTable$EventListener$onAfterRequest;
|
|
96
|
+
export declare type IKgTable$EventListenerParameter = IKgTable$EventListenerParameter$onReady | IKgTable$EventListenerParameter$onRowDoubleClick | IKgTable$EventListenerParameter$onBeforeParseRequestParameter | IKgTable$EventListenerParameter$onBeforeRequest | IKgTable$EventListenerParameter$onBeforeRequestExecute | IKgTable$EventListenerParameter$onBeforeTransformDatas | IKgTable$EventListenerParameter$onBeforeSetDatas | IKgTable$EventListenerParameter$onRequestError | IKgTable$EventListenerParameter$onAfterRequest;
|
|
97
|
+
export declare type IKgTable$EventListener = IKgTable$EventListener$onReady | IKgTable$EventListener$onRowDoubleClick | IKgTable$EventListener$onBeforeParseRequestParameter | IKgTable$EventListener$onBeforeRequest | IKgTable$EventListener$onBeforeRequestExecute | IKgTable$EventListener$onBeforeTransformDatas | IKgTable$EventListener$onBeforeSetDatas | IKgTable$EventListener$onRequestError | IKgTable$EventListener$onAfterRequest;
|
|
90
98
|
export declare const eventListeners: Record<string, {
|
|
91
99
|
onAfterRequest: Array<IKgTable$EventListener$onAfterRequest>;
|
|
92
100
|
onBeforeParseRequestParameter: Array<IKgTable$EventListener$onBeforeParseRequestParameter>;
|
|
93
101
|
onBeforeRequest: Array<IKgTable$EventListener$onBeforeRequest>;
|
|
102
|
+
onBeforeRequestExecute: Array<IKgTable$EventListener$onBeforeRequestExecute>;
|
|
94
103
|
onBeforeSetDatas: Array<IKgTable$EventListener$onBeforeSetDatas>;
|
|
95
104
|
onBeforeTransformDatas: Array<IKgTable$EventListener$onBeforeTransformDatas>;
|
|
96
105
|
onReady: Array<IKgTable$EventListener$onReady>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IKgRemoveEventListener } from '@kengic/core.core';
|
|
2
2
|
import { ComputedRef } from 'vue';
|
|
3
|
-
import { eventListeners, IKgTable$EventListener$onAfterRequest, IKgTable$EventListener$onBeforeParseRequestParameter, IKgTable$EventListener$onBeforeRequest, IKgTable$EventListener$onBeforeSetDatas, IKgTable$EventListener$onBeforeTransformDatas, IKgTable$EventListener$onReady, IKgTable$EventListener$onRequestError, IKgTable$EventListener$onRowDoubleClick } from './KgTable.event';
|
|
3
|
+
import { eventListeners, IKgTable$EventListener$onAfterRequest, IKgTable$EventListener$onBeforeParseRequestParameter, IKgTable$EventListener$onBeforeRequest, IKgTable$EventListener$onBeforeRequestExecute, IKgTable$EventListener$onBeforeSetDatas, IKgTable$EventListener$onBeforeTransformDatas, IKgTable$EventListener$onReady, IKgTable$EventListener$onRequestError, IKgTable$EventListener$onRowDoubleClick } from './KgTable.event';
|
|
4
4
|
import { IKgTableRow } from './KgTable.model';
|
|
5
5
|
import { buildKgTableStore } from './KgTable.store';
|
|
6
6
|
export declare type IUseKgTable = {
|
|
@@ -67,6 +67,12 @@ export declare type IUseKgTable = {
|
|
|
67
67
|
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
68
68
|
*/
|
|
69
69
|
onBeforeRequest(listener: IKgTable$EventListener$onBeforeRequest, isOnce?: boolean): IKgRemoveEventListener;
|
|
70
|
+
/**
|
|
71
|
+
* 监听事件: 即将发起查询请求, 即将调用请求方法, 如果返回 true 表示不会发起请求.
|
|
72
|
+
* @param listener 事件监听函数.
|
|
73
|
+
* @param isOnce 是否只会触发一次. 默认为 undefined.
|
|
74
|
+
*/
|
|
75
|
+
onBeforeRequestExecute(listener: IKgTable$EventListener$onBeforeRequestExecute, isOnce?: boolean): IKgRemoveEventListener;
|
|
70
76
|
/** @deprecated 已废弃, 请使用 onBeforeRequest() 方法. */
|
|
71
77
|
onBeforeRetrieve(listener: IKgTable$EventListener$onBeforeRequest, isOnce?: boolean): IKgRemoveEventListener;
|
|
72
78
|
/** @deprecated 已废弃, 请使用 onBeforeRequest() 方法. */
|
package/package.json
CHANGED
|
@@ -1,23 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kengic/vue",
|
|
3
|
-
"version": "0.31.17
|
|
3
|
+
"version": "0.31.17",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"build
|
|
6
|
-
"build---vue-tsc": "vue-tsc",
|
|
7
|
-
"build---vite-build": "vite build",
|
|
8
|
-
"build": "npm-run-all -s use-node build---rimraf-dist build---vue-tsc build---vite-build",
|
|
9
|
-
"build--lite": "npm-run-all -s build---rimraf-dist build---vue-tsc build---vite-build",
|
|
5
|
+
"build": "npm run use-node && rimraf dist && vue-tsc && vite build",
|
|
10
6
|
"build--development": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
|
|
11
7
|
"--------------------------------------------------": "",
|
|
12
8
|
"gen-apis--WMS": "npm run use-node && kengic-pont generate-apis --config kg.config.ts --origin WMS",
|
|
13
9
|
"- ------------------------------------------------": "",
|
|
14
|
-
"use-node
|
|
15
|
-
"
|
|
16
|
-
"use-node---corepack-enable": "corepack enable",
|
|
17
|
-
"use-node---use-pnpm": "corepack use pnpm@10.33.0",
|
|
18
|
-
"use-node": "npm-run-all -s use-node---clean-cache use-node---use-node use-node---corepack-enable use-node---use-pnpm",
|
|
19
|
-
"cnpm--sync---execute": "npx cnpm --yes sync @kengic/vue",
|
|
20
|
-
"cnpm--sync": "npm-run-all -s use-node cnpm--sync---execute",
|
|
10
|
+
"use-node": "npm cache clean -f && nvm use 24.14.1 && corepack enable && corepack use pnpm@10.33.0",
|
|
11
|
+
"cnpm--sync": "npm run use-node && npx cnpm --yes sync @kengic/vue",
|
|
21
12
|
"------ -------------------------------------------": "",
|
|
22
13
|
"preinstall": "node bin/preinstall.mjs",
|
|
23
14
|
"postinstall": "node bin/postinstall.mjs",
|
|
@@ -25,9 +16,7 @@
|
|
|
25
16
|
"bump-to--luotao--smartfactory.product.wms.wms--dev-3.2": "npm run use-node && tsx script/bump-to--luotao.smartfactory.product.wms.wms--dev-3.2.ts",
|
|
26
17
|
"bump-to--luotao--smartfactory.product.wms.wms--project-kengic-factory": "npm run use-node && tsx script/bump-to--luotao--smartfactory.product.wms.wms--project-kengic-factory.ts",
|
|
27
18
|
"copy-to--luotao--smartfactory.product.wms.wms--dev-3.2": "npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--dev-3.2.ts",
|
|
28
|
-
"copy-to--luotao--smartfactory.product.wms.wms--hiway
|
|
29
|
-
"copy-to--luotao--smartfactory.product.wms.wms--hiway": "npm-run-all -s build copy-to--luotao--smartfactory.product.wms.wms--hiway---execute",
|
|
30
|
-
"copy-to--luotao--smartfactory.product.wms.wms--hiway--lite": "npm-run-all -s build--lite copy-to--luotao--smartfactory.product.wms.wms--hiway---execute",
|
|
19
|
+
"copy-to--luotao--smartfactory.product.wms.wms--hiway": "npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--hiway.ts",
|
|
31
20
|
"copy-to--luotao--smartfactory.product.wms.wms--project-zonsen-ducar": "npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--project-zonsen-ducar.ts",
|
|
32
21
|
"copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory": "npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory.ts",
|
|
33
22
|
"copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory-test": "npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--project-kengic-factory-test.ts",
|
|
@@ -37,19 +26,16 @@
|
|
|
37
26
|
"copy-to--luotao--smartfactory.tyre.product-cp.view--FMS3.2": "npm run build--development && tsx script/copy-to--luotao--smartfactory.tyre.product-cp.view--FMS3.2.ts",
|
|
38
27
|
"copy-to--luotao--smartfactory.tyre.product-bbj.view--sailun-djk-pg-dev": "npm run build--development && tsx script/copy-to--luotao--smartfactory.tyre.product-bbj.view--sailun-djk-pg-dev.ts",
|
|
39
28
|
"----- --------------------------------------------": "",
|
|
40
|
-
"bump--major": "tsx script/bump.ts major",
|
|
41
|
-
"bump--minor": "tsx script/bump.ts minor",
|
|
42
|
-
"bump--patch": "tsx script/bump.ts patch",
|
|
43
|
-
"bump--beta": "tsx script/bump.ts beta",
|
|
29
|
+
"bump--major": "npm run use-node && tsx script/bump.ts major",
|
|
30
|
+
"bump--minor": "npm run use-node && tsx script/bump.ts minor",
|
|
31
|
+
"bump--patch": "npm run use-node && tsx script/bump.ts patch",
|
|
32
|
+
"bump--beta": "npm run use-node && tsx script/bump.ts beta",
|
|
44
33
|
"---- ---------------------------------------------": "",
|
|
45
|
-
"publish--npm
|
|
46
|
-
"publish--
|
|
47
|
-
"publish--
|
|
48
|
-
"publish
|
|
49
|
-
"publish--
|
|
50
|
-
"publish--minor": "npm-run-all -s bump--minor publish---execute",
|
|
51
|
-
"publish--patch": "npm-run-all -s bump--patch publish---execute",
|
|
52
|
-
"publish--beta": "npm-run-all -s bump--beta publish---execute"
|
|
34
|
+
"publish--npm": "npm run use-node && npmrc kengic && npm publish ./ --registry https://registry.npmjs.org/ --access public --tag latest",
|
|
35
|
+
"publish--major": "npm run bump--major && tsx script/publish.ts",
|
|
36
|
+
"publish--minor": "npm run bump--minor && tsx script/publish.ts",
|
|
37
|
+
"publish--patch": "npm run bump--patch && tsx script/publish.ts",
|
|
38
|
+
"publish--beta": "npm run bump--beta && tsx script/publish.ts"
|
|
53
39
|
},
|
|
54
40
|
"bin": {
|
|
55
41
|
"kg-vue": "bin/bin.mjs"
|