@kengic/vue 0.31.16 → 0.31.17-beta.3

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 (92) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/bin/postinstall.mjs +42 -13
  3. package/bin/preinstall.mjs +23 -0
  4. package/dist/index.css +1 -1
  5. package/dist/kengic-vue.js +141853 -209127
  6. package/dist/kg.config.d.ts +3 -0
  7. package/dist/src/component/KgAppSelect/KgAppSelect.d.ts +0 -13
  8. package/dist/src/component/KgButton/KgButton.d.ts +2 -1
  9. package/dist/src/component/KgCanvas/KgCanvas.ContextMenu.d.ts +2 -1
  10. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Fullscreen.d.ts +2 -1
  11. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.Mode.d.ts +2 -1
  12. package/dist/src/component/KgCanvas/KgCanvas.ToolbarButton.OverviewScale.d.ts +2 -1
  13. package/dist/src/component/KgCanvas/KgCanvas.Tooltip.d.ts +2 -1
  14. package/dist/src/component/KgCanvas/KgCanvas.d.ts +1 -1
  15. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.Tab.Rgv.d.ts +2 -1
  16. package/dist/src/component/KgCircularShuttleMonitor/KgCircularShuttleMonitor.d.ts +0 -9
  17. package/dist/src/component/KgForm/KgForm.d.ts +41 -40
  18. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.DynamicQueryOperator.d.ts +1 -1
  19. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.Modal.d.ts +1 -1
  20. package/dist/src/component/KgForm.Item/KgForm.Item.Addon.Lookup.d.ts +1 -1
  21. package/dist/src/component/KgImage/KgImage.d.ts +7 -7
  22. package/dist/src/component/KgLayoutHeader/KgLayoutHeader.Locale.d.ts +1 -1
  23. package/dist/src/component/KgModal/KgModal.d.ts +10 -22
  24. package/dist/src/component/KgModal/KgModal.service.d.ts +4 -3
  25. package/dist/src/component/KgModal/KgModalHeaderButtons.d.ts +0 -29
  26. package/dist/src/component/KgModal02/KgModal02.d.ts +106 -21
  27. package/dist/src/component/KgModal02/index.d.ts +1 -1
  28. package/dist/src/component/KgProgressA/KgProgressA.d.ts +1 -1
  29. package/dist/src/component/KgResizable/KgResizable.d.ts +5 -5
  30. package/dist/src/component/KgSearch/KgSearch.d.ts +1 -1
  31. package/dist/src/component/KgSimulator/KgSimulator.Canvas.Title.d.ts +2 -1
  32. package/dist/src/component/KgSimulator/KgSimulator.Canvas.d.ts +2 -1
  33. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Create.CircularConveyor.d.ts +2 -1
  34. package/dist/src/component/KgSimulator/KgSimulator.Menu.Scene.Open.CircularConveyor.d.ts +2 -1
  35. package/dist/src/component/KgSimulator/KgSimulator.Panel.d.ts +2 -1
  36. package/dist/src/component/KgSimulator/KgSimulator.Prefab.d.ts +2 -1
  37. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Prefab.d.ts +2 -1
  38. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Property.d.ts +2 -1
  39. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.Scene.d.ts +2 -1
  40. package/dist/src/component/KgSimulator/KgSimulator.ToolbarButton.d.ts +2 -1
  41. package/dist/src/component/KgSimulator/KgSimulator.d.ts +2 -1
  42. package/dist/src/component/KgSubmit/KgSubmit.d.ts +1 -1
  43. package/dist/src/component/KgTable/KgTable.BodyCell.d.ts +0 -18
  44. package/dist/src/component/KgTable/KgTable.HeadCell.d.ts +0 -16
  45. package/dist/src/component/KgTable/KgTable.Info.d.ts +0 -18
  46. package/dist/src/component/KgTable/KgTable.Setting.d.ts +0 -6
  47. package/dist/src/component/KgTable/KgTable.d.ts +1 -1
  48. package/dist/src/component/KgTable02/KgTable02.BodyCell.d.ts +0 -22
  49. package/dist/src/component/KgTable02/KgTable02.d.ts +2 -1
  50. package/dist/src/component/KgVar/KgVar.event.d.ts +1 -1
  51. package/dist/src/component/KgVar/KgVar.store.d.ts +15 -12
  52. package/dist/src/component/KgVarConfig/KgVarConfig$Modal.d.ts +2 -1
  53. package/dist/src/component/KgVarConfig/KgVarConfig$SelectFormIdModal.d.ts +2 -1
  54. package/dist/src/component/KgWarehouse/KgWarehouse.d.ts +1 -1
  55. package/dist/src/component/KgWarehouse/KgWarehouse.hooks.d.ts +1 -1
  56. package/dist/src/component/KgWorkStation/KgWorkStation.d.ts +14 -13
  57. package/dist/src/component/KgWorkStation/KgWorkStation.store.d.ts +10 -10
  58. package/dist/src/component/KgYesOrNo/KgYesOrNo.d.ts +1 -1
  59. package/dist/src/config/config.event.d.ts +51 -0
  60. package/dist/src/config/config.hooks.d.ts +9 -1
  61. package/dist/src/config/config.model.d.ts +11 -0
  62. package/dist/src/config/config.store.d.ts +1 -1
  63. package/dist/src/config/index.d.ts +0 -1
  64. package/dist/src/i18n/i18n.setup.d.ts +6 -4
  65. package/dist/src/index.d.ts +0 -1
  66. package/dist/src/model/index.d.ts +127 -60
  67. package/dist/src/page/KgPageDda/KgPageDda.Create.Basic.SqlModal.d.ts +2 -1
  68. package/dist/src/page/KgPageDda/KgPageDda.Create.Basic.d.ts +2 -1
  69. package/dist/src/page/KgPageDda/KgPageDda.Create.Button.d.ts +2 -1
  70. package/dist/src/page/KgPageDda/KgPageDda.Create.Menu.d.ts +2 -1
  71. package/dist/src/page/KgPageDda/KgPageDda.Create.Search.d.ts +2 -1
  72. package/dist/src/page/KgPageDda/KgPageDda.Create.Submit.d.ts +2 -1
  73. package/dist/src/page/KgPageDda/KgPageDda.Create.Table.d.ts +2 -1
  74. package/dist/src/page/KgPageDda/KgPageDda.Create.d.ts +2 -1
  75. package/dist/src/page/KgPageSqlClient/components/KgSqlClient.ResultTab.d.ts +2 -1
  76. package/dist/src/project/src/utils/common/compUtils.d.ts +2 -2
  77. package/dist/src/service/http-client.d.ts +1 -1
  78. package/dist/src/util/ant-design-vue.d.ts +16 -16
  79. package/dist/src/util/index.d.ts +29 -3
  80. package/dist/src/util/kg.util.d.ts +39 -2
  81. package/package.json +8 -5
  82. package/dist/caret-right-outlined-Btgsw6a_.1cf00b77.mjs +0 -8
  83. package/dist/close-outlined-DMcSQWxQ.f7304023.mjs +0 -8
  84. package/dist/exclamation-circle-outlined-DZrXCnvM.0844874c.mjs +0 -8
  85. package/dist/fullscreen-exit-outlined-X1iYkFc4.378f8508.mjs +0 -8
  86. package/dist/fullscreen-outlined-DDBrsRcy.dcf0d8c8.mjs +0 -8
  87. package/dist/search-outlined-Od1M_oxf.a1041ffc.mjs +0 -8
  88. package/dist/src/util/event.util.d.ts +0 -15
  89. package/dist/src/util/kg-auth.util.d.ts +0 -12
  90. package/dist/src/util/kg-route.util.d.ts +0 -18
  91. package/dist/src/util/tsx.helper.d.ts +0 -23
  92. 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`, 部分组件引入路径发生变更,
@@ -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 log(message) {
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
- log(`当前目录 | ${process.cwd()}`);
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
- log(`开始读取组件的 package.json`);
83
+ logI(`开始读取组件的 package.json`);
55
84
  json01 = (await import(`../package.json`, { with: { type: 'json' } })).default;
56
- log(`成功读取组件的 package.json`);
85
+ logS(`成功读取组件的 package.json`);
57
86
  } catch (e) {
58
- log(`失败读取组件的 package.json`);
87
+ logE(`失败读取组件的 package.json`);
59
88
  throw e;
60
89
  }
61
90
 
62
91
  let json02 = null;
63
92
 
64
93
  try {
65
- log(`开始读取项目的 package.json`);
94
+ logI(`开始读取项目的 package.json`);
66
95
  json02 = (await import(`${PROJECT_DIR_01}/package.json`, { with: { type: 'json' } })).default;
67
- log(`成功读取项目的 package.json`);
96
+ logS(`成功读取项目的 package.json`);
68
97
  } catch (e) {
69
- log(`失败读取项目的 package.json | ${e.message}`);
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
- log(`开始写入项目的 package.json`);
111
+ logI(`开始写入项目的 package.json`);
83
112
  fs.writeFileSync(`${PROJECT_DIR_02}/package.json`, `${JSON.stringify(json02, null, 4)}\n`, {});
84
- log(`成功写入项目的 package.json`);
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
+ }