@kengic/vue 0.31.16 → 0.31.17-beta.1
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/CHANGELOG.md +22 -0
- package/bin/postinstall.mjs +42 -13
- package/bin/preinstall.mjs +23 -0
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +141853 -209127
- package/dist/kg.config.d.ts +3 -0
- package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +0 -13
- package/dist/src/component/KgButton/KgButton.d.ts +2 -1
- package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +2 -1
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.d.ts +2 -1
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +2 -1
- package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.d.ts +2 -1
- package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +2 -1
- package/dist/src/component/KgCanvas/KgCanvas.d.ts +1 -1
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts +2 -1
- package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +0 -9
- package/dist/src/component/KgForm/KgForm.d.ts +41 -40
- package/dist/src/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.d.ts +1 -1
- package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.Modal.d.ts +1 -1
- package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.d.ts +1 -1
- package/dist/src/component/KgImage/KgImage.d.ts +7 -7
- package/dist/src/component/KgLayoutHeader/KgLayoutHeader.Locale.d.ts +1 -1
- package/dist/src/component/KgModal/KgModal.d.ts +10 -22
- package/dist/src/component/KgModal/KgModal.service.d.ts +4 -3
- package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +0 -29
- package/dist/src/component/KgModal02/KgModal02.d.ts +106 -21
- package/dist/src/component/KgModal02/index.d.ts +1 -1
- package/dist/src/component/KgProgressA/KgProgressA.d.ts +1 -1
- package/dist/src/component/KgResizable/KgResizable.d.ts +5 -5
- package/dist/src/component/KgSearch/KgSearch.d.ts +1 -1
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +2 -1
- package/dist/src/component/KgSimulator/KgSimulator.d.ts +2 -1
- package/dist/src/component/KgSubmit/KgSubmit.d.ts +1 -1
- package/dist/src/component/KgTable/KgTable.BodyCell.d.ts +0 -18
- package/dist/src/component/KgTable/KgTable.HeadCell.d.ts +0 -16
- package/dist/src/component/KgTable/KgTable.Info.d.ts +0 -18
- package/dist/src/component/KgTable/KgTable.Setting.d.ts +0 -6
- package/dist/src/component/KgTable/KgTable.d.ts +1 -1
- package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +0 -22
- package/dist/src/component/KgTable02/KgTable02.d.ts +2 -1
- package/dist/src/component/KgVar/KgVar.event.d.ts +1 -1
- package/dist/src/component/KgVar/KgVar.store.d.ts +15 -12
- package/dist/src/component/KgVarConfig/KgVarConfig$Modal.d.ts +2 -1
- package/dist/src/component/KgVarConfig/KgVarConfig$SelectFormIdModal.d.ts +2 -1
- package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +1 -1
- package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +1 -1
- package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +14 -13
- package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +10 -10
- package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +1 -1
- package/dist/src/config/config.event.d.ts +51 -0
- package/dist/src/config/config.hooks.d.ts +9 -1
- package/dist/src/config/config.model.d.ts +11 -0
- package/dist/src/config/config.store.d.ts +1 -1
- package/dist/src/config/index.d.ts +0 -1
- package/dist/src/i18n/i18n.setup.d.ts +6 -4
- package/dist/src/index.d.ts +0 -1
- package/dist/src/model/index.d.ts +127 -60
- package/dist/src/page/KgPageDda/KgPageDda.Create.Basic.SqlModal.d.ts +2 -1
- package/dist/src/page/KgPageDda/KgPageDda.Create.Basic.d.ts +2 -1
- package/dist/src/page/KgPageDda/KgPageDda.Create.Button.d.ts +2 -1
- package/dist/src/page/KgPageDda/KgPageDda.Create.Menu.d.ts +2 -1
- package/dist/src/page/KgPageDda/KgPageDda.Create.Search.d.ts +2 -1
- package/dist/src/page/KgPageDda/KgPageDda.Create.Submit.d.ts +2 -1
- package/dist/src/page/KgPageDda/KgPageDda.Create.Table.d.ts +2 -1
- package/dist/src/page/KgPageDda/KgPageDda.Create.d.ts +2 -1
- package/dist/src/page/KgPageSqlClient/components/KgSqlClient.ResultTab.d.ts +2 -1
- package/dist/src/project/src/utils/common/compUtils.d.ts +2 -2
- package/dist/src/service/http-client.d.ts +1 -1
- package/dist/src/util/ant-design-vue.d.ts +16 -16
- package/dist/src/util/index.d.ts +29 -3
- package/dist/src/util/kg.util.d.ts +39 -2
- package/package.json +33 -16
- package/dist/caret-right-outlined-Btgsw6a_.1cf00b77.mjs +0 -8
- package/dist/close-outlined-DMcSQWxQ.f7304023.mjs +0 -8
- package/dist/exclamation-circle-outlined-DZrXCnvM.0844874c.mjs +0 -8
- package/dist/fullscreen-exit-outlined-X1iYkFc4.378f8508.mjs +0 -8
- package/dist/fullscreen-outlined-DDBrsRcy.dcf0d8c8.mjs +0 -8
- package/dist/search-outlined-Od1M_oxf.a1041ffc.mjs +0 -8
- package/dist/src/util/event.util.d.ts +0 -15
- package/dist/src/util/kg-auth.util.d.ts +0 -12
- package/dist/src/util/kg-route.util.d.ts +0 -18
- package/dist/src/util/tsx.helper.d.ts +0 -23
- package/dist/three-dots-loading-bIlrTJYR.77291e2a.mjs +0 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
# 0.32.0
|
|
2
|
+
|
|
3
|
+
### 1. doKgWorkStation() 方法替换为 useKgWorkStation() 方法
|
|
4
|
+
|
|
5
|
+
```
|
|
6
|
+
// 旧
|
|
7
|
+
// --------------------------------------------------
|
|
8
|
+
import { doKgWorkStation } from '@kengic/vue';
|
|
9
|
+
|
|
10
|
+
const kgWorkStation = doKgWorkStation();
|
|
11
|
+
|
|
12
|
+
// 新
|
|
13
|
+
// --------------------------------------------------
|
|
14
|
+
import { useKgWorkStation } from '@kengic/vue';
|
|
15
|
+
|
|
16
|
+
const kgWorkStation = useKgWorkStation();
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### 2. kgWorkStation.workStation 属性替换为 kgWorkStation.currentWorkStation 属性
|
|
20
|
+
|
|
21
|
+
### 3. kgWorkStation.workStationArea 属性替换为 kgWorkStation.currentWorkArea 属性
|
|
22
|
+
|
|
1
23
|
# 0.31.0
|
|
2
24
|
|
|
3
25
|
### 1. 升级 `vxe-table@4.17.27`, `vxe-pc-ui@4.10.49`, 部分组件引入路径发生变更,
|
package/bin/postinstall.mjs
CHANGED
|
@@ -1,16 +1,44 @@
|
|
|
1
1
|
import fs from 'fs';
|
|
2
|
+
import chalk from 'chalk';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 安装完成之后, 处理其他任务.
|
|
5
6
|
*/
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
+
* 打印普通日志.
|
|
9
10
|
*
|
|
10
11
|
* @param message 日志消息.
|
|
11
12
|
*/
|
|
12
|
-
function
|
|
13
|
-
console.log(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`);
|
|
13
|
+
function logI(message) {
|
|
14
|
+
console.log(chalk.blueBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 打印成功日志.
|
|
19
|
+
*
|
|
20
|
+
* @param message 日志消息.
|
|
21
|
+
*/
|
|
22
|
+
function logS(message) {
|
|
23
|
+
console.log(chalk.greenBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 打印警告日志.
|
|
28
|
+
*
|
|
29
|
+
* @param message 日志消息.
|
|
30
|
+
*/
|
|
31
|
+
function logW(message) {
|
|
32
|
+
console.log(chalk.yellowBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* 打印错误日志.
|
|
37
|
+
*
|
|
38
|
+
* @param message 日志消息.
|
|
39
|
+
*/
|
|
40
|
+
function logE(message) {
|
|
41
|
+
console.log(chalk.redBright(`[${new Date(Date.now() + 1000 * 60 * 60 * 8).toISOString().substring(0, 23).replace('T', ' ')}] [@kengic/vue] POST-INSTALL | ${message}`));
|
|
14
42
|
}
|
|
15
43
|
|
|
16
44
|
/**
|
|
@@ -20,7 +48,7 @@ const PROJECT_DIR_01 = '../../../../../../..';
|
|
|
20
48
|
const PROJECT_DIR_02 = '../../../../../..';
|
|
21
49
|
|
|
22
50
|
console.log();
|
|
23
|
-
|
|
51
|
+
logI(`当前目录 | ${process.cwd()}`);
|
|
24
52
|
|
|
25
53
|
//region 同步依赖
|
|
26
54
|
//----------------------------------------------------------------------------------------------------
|
|
@@ -36,13 +64,14 @@ const EXCLUDE_PACKAGE_LIST = [
|
|
|
36
64
|
'@iconify-icons/mdi',
|
|
37
65
|
'@iconify-icons/ph',
|
|
38
66
|
'@kengic/core.core',
|
|
39
|
-
'@kengic/core.react',
|
|
40
67
|
'@thymine/xunee',
|
|
41
68
|
'@types/md5',
|
|
69
|
+
'@types/qs',
|
|
42
70
|
'@types/uuid',
|
|
43
71
|
'@types/semver',
|
|
44
72
|
'chalk',
|
|
45
73
|
'filesize',
|
|
74
|
+
'qs',
|
|
46
75
|
'screenfull',
|
|
47
76
|
'semver',
|
|
48
77
|
'uuid',
|
|
@@ -51,22 +80,22 @@ const EXCLUDE_PACKAGE_LIST = [
|
|
|
51
80
|
let json01 = null;
|
|
52
81
|
|
|
53
82
|
try {
|
|
54
|
-
|
|
83
|
+
logI(`开始读取组件的 package.json`);
|
|
55
84
|
json01 = (await import(`../package.json`, { with: { type: 'json' } })).default;
|
|
56
|
-
|
|
85
|
+
logS(`成功读取组件的 package.json`);
|
|
57
86
|
} catch (e) {
|
|
58
|
-
|
|
87
|
+
logE(`失败读取组件的 package.json`);
|
|
59
88
|
throw e;
|
|
60
89
|
}
|
|
61
90
|
|
|
62
91
|
let json02 = null;
|
|
63
92
|
|
|
64
93
|
try {
|
|
65
|
-
|
|
94
|
+
logI(`开始读取项目的 package.json`);
|
|
66
95
|
json02 = (await import(`${PROJECT_DIR_01}/package.json`, { with: { type: 'json' } })).default;
|
|
67
|
-
|
|
96
|
+
logS(`成功读取项目的 package.json`);
|
|
68
97
|
} catch (e) {
|
|
69
|
-
|
|
98
|
+
logW(`失败读取项目的 package.json | ${e.message}`);
|
|
70
99
|
}
|
|
71
100
|
|
|
72
101
|
if (json01 && json02) {
|
|
@@ -79,9 +108,9 @@ if (json01 && json02) {
|
|
|
79
108
|
// 排序,
|
|
80
109
|
json02.dependencies = Object.fromEntries(Object.entries(json02.dependencies).sort(([a], [b]) => a.localeCompare(b)));
|
|
81
110
|
|
|
82
|
-
|
|
111
|
+
logI(`开始写入项目的 package.json`);
|
|
83
112
|
fs.writeFileSync(`${PROJECT_DIR_02}/package.json`, `${JSON.stringify(json02, null, 4)}\n`, {});
|
|
84
|
-
|
|
113
|
+
logS(`成功写入项目的 package.json`);
|
|
85
114
|
}
|
|
86
115
|
//----------------------------------------------------------------------------------------------------
|
|
87
116
|
//endregion
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import chalk from 'chalk';
|
|
2
|
+
|
|
3
|
+
const REQUIRED_NODE_VERSION = '24.14.1';
|
|
4
|
+
const REQUIRED_PNPM_VERSION = '10.33.0';
|
|
5
|
+
|
|
6
|
+
console.log(
|
|
7
|
+
chalk.blueBright(
|
|
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
|
+
),
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
const CURRENT_NODE_VERSION = process.versions.node;
|
|
13
|
+
const CURRENT_PNPM_VERSION = /^pnpm\/(\S+)\s/.exec(process.env.npm_config_user_agent ?? '')?.[1] ?? '';
|
|
14
|
+
|
|
15
|
+
console.log(
|
|
16
|
+
chalk.blueBright(
|
|
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
|
+
),
|
|
19
|
+
);
|
|
20
|
+
|
|
21
|
+
if (CURRENT_NODE_VERSION !== REQUIRED_NODE_VERSION || CURRENT_PNPM_VERSION !== REQUIRED_PNPM_VERSION) {
|
|
22
|
+
process.exit(1);
|
|
23
|
+
}
|