@gct-paas/core 0.1.4-dev.3 → 0.1.4-dev.4

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 (122) hide show
  1. package/dist/index.min.cjs +1 -1
  2. package/dist/index.system.min.js +1 -1
  3. package/es/controller/form/form.controller.mjs +1 -2
  4. package/es/controller/gct-form/gct-form.controller.mjs +1 -2
  5. package/es/global/gct/gct.d.ts +1 -1
  6. package/es/interface/controller/form/form.controller.mjs +1 -1
  7. package/es/interface/hooks/i-designer-hooks.mjs +1 -1
  8. package/es/interface/i-modal/i-modal.mjs +1 -1
  9. package/es/modules/api-service/api-manage.mjs +1 -1
  10. package/es/modules/api-service/api-service.interface.d.ts +2 -2
  11. package/es/modules/api-service/api-service.interface.mjs +2 -2
  12. package/es/modules/api-service/api-service.mjs +1 -1
  13. package/es/modules/api-service/index.mjs +2 -4
  14. package/es/modules/env-manager/env-manager.d.ts +1 -1
  15. package/es/modules/env-manager/env-manager.interface.d.ts +1 -1
  16. package/es/modules/platform-config/useBasicSetting.d.ts +2 -2
  17. package/es/modules/platform-config/useDeploySetting.d.ts +1 -1
  18. package/es/modules/platform-config/useLoginSetting.d.ts +1 -1
  19. package/es/modules/platform-config/useOrgSetting.d.ts +1 -1
  20. package/es/modules/platform-config/useSecuritySetting.d.ts +1 -1
  21. package/es/modules/platform-config/useThemeSetting.d.ts +1 -1
  22. package/es/modules/platform-config/useWatermarkSetting.d.ts +1 -1
  23. package/es/register/designer-register/designer-register.mjs +1 -2
  24. package/es/register/render-register/render-register.mjs +1 -2
  25. package/es/store/global-store.mjs +1 -1
  26. package/es/types/index.d.ts +2 -2
  27. package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
  28. package/es/utils/plugin-static-resource/plugin-static-resource.mjs +1 -1
  29. package/es/utils/tools/tools.mjs +1 -2
  30. package/package.json +6 -8
  31. package/es/_virtual/_commonjs-dynamic-modules.mjs +0 -5
  32. package/es/_virtual/_commonjsHelpers.mjs +0 -44
  33. package/es/_virtual/aes.mjs +0 -3
  34. package/es/_virtual/blowfish.mjs +0 -3
  35. package/es/_virtual/cipher-core.mjs +0 -3
  36. package/es/_virtual/core.mjs +0 -3
  37. package/es/_virtual/enc-base64.mjs +0 -3
  38. package/es/_virtual/enc-base64url.mjs +0 -3
  39. package/es/_virtual/enc-utf16.mjs +0 -3
  40. package/es/_virtual/evpkdf.mjs +0 -3
  41. package/es/_virtual/format-hex.mjs +0 -3
  42. package/es/_virtual/hmac.mjs +0 -3
  43. package/es/_virtual/index.mjs +0 -7
  44. package/es/_virtual/index2.mjs +0 -7
  45. package/es/_virtual/index3.mjs +0 -3
  46. package/es/_virtual/lib-typedarrays.mjs +0 -3
  47. package/es/_virtual/md5.mjs +0 -3
  48. package/es/_virtual/mode-cfb.mjs +0 -3
  49. package/es/_virtual/mode-ctr-gladman.mjs +0 -3
  50. package/es/_virtual/mode-ctr.mjs +0 -3
  51. package/es/_virtual/mode-ecb.mjs +0 -3
  52. package/es/_virtual/mode-ofb.mjs +0 -3
  53. package/es/_virtual/pad-ansix923.mjs +0 -3
  54. package/es/_virtual/pad-iso10126.mjs +0 -3
  55. package/es/_virtual/pad-iso97971.mjs +0 -3
  56. package/es/_virtual/pad-nopadding.mjs +0 -3
  57. package/es/_virtual/pad-zeropadding.mjs +0 -3
  58. package/es/_virtual/pbkdf2.mjs +0 -3
  59. package/es/_virtual/rabbit-legacy.mjs +0 -3
  60. package/es/_virtual/rabbit.mjs +0 -3
  61. package/es/_virtual/rc4.mjs +0 -3
  62. package/es/_virtual/ripemd160.mjs +0 -3
  63. package/es/_virtual/sha1.mjs +0 -3
  64. package/es/_virtual/sha224.mjs +0 -3
  65. package/es/_virtual/sha256.mjs +0 -3
  66. package/es/_virtual/sha3.mjs +0 -3
  67. package/es/_virtual/sha384.mjs +0 -3
  68. package/es/_virtual/sha512.mjs +0 -3
  69. package/es/_virtual/tripledes.mjs +0 -3
  70. package/es/_virtual/x64-core.mjs +0 -3
  71. package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/index.mjs +0 -3
  72. package/es/node_modules/.pnpm/@gct-paas_api-apaas@0.0.2-dev.4/node_modules/@gct-paas/api-apaas/es/service/api-config.mjs +0 -8213
  73. package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/index.mjs +0 -3
  74. package/es/node_modules/.pnpm/@gct-paas_api-platform@0.0.2-dev.4/node_modules/@gct-paas/api-platform/es/service/api-config.mjs +0 -7156
  75. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/aes.mjs +0 -255
  76. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/blowfish.mjs +0 -492
  77. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/cipher-core.mjs +0 -913
  78. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/core.mjs +0 -824
  79. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64.mjs +0 -153
  80. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-base64url.mjs +0 -165
  81. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/enc-utf16.mjs +0 -166
  82. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/evpkdf.mjs +0 -153
  83. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/format-hex.mjs +0 -84
  84. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/hmac.mjs +0 -160
  85. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/index.mjs +0 -69
  86. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/lib-typedarrays.mjs +0 -93
  87. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/md5.mjs +0 -285
  88. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-cfb.mjs +0 -98
  89. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr-gladman.mjs +0 -134
  90. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ctr.mjs +0 -76
  91. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ecb.mjs +0 -58
  92. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/mode-ofb.mjs +0 -72
  93. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-ansix923.mjs +0 -67
  94. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso10126.mjs +0 -62
  95. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-iso97971.mjs +0 -58
  96. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-nopadding.mjs +0 -48
  97. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pad-zeropadding.mjs +0 -65
  98. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/pbkdf2.mjs +0 -164
  99. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit-legacy.mjs +0 -211
  100. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rabbit.mjs +0 -213
  101. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/rc4.mjs +0 -160
  102. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/ripemd160.mjs +0 -284
  103. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha1.mjs +0 -167
  104. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha224.mjs +0 -98
  105. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha256.mjs +0 -216
  106. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha3.mjs +0 -344
  107. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha384.mjs +0 -102
  108. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/sha512.mjs +0 -344
  109. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/tripledes.mjs +0 -800
  110. package/es/node_modules/.pnpm/crypto-js@4.2.0/node_modules/crypto-js/x64-core.mjs +0 -321
  111. package/es/node_modules/.pnpm/path-browserify@1.0.1/node_modules/path-browserify/index.mjs +0 -541
  112. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/async-series-hook/async-series-hook.mjs +0 -73
  113. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/index.mjs +0 -2
  114. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/hook/sync-series-hook/sync-series-hook.mjs +0 -100
  115. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/index.mjs +0 -2
  116. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/array/array.mjs +0 -47
  117. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/index.mjs +0 -5
  118. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/object/object.mjs +0 -24
  119. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event/qx-event.mjs +0 -94
  120. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/qx-event-emitter/qx-event-emitter.mjs +0 -146
  121. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/type-util/type-util.mjs +0 -149
  122. package/es/node_modules/.pnpm/qx-util@0.4.8/node_modules/qx-util/out/utils/util/util.mjs +0 -227
@@ -1,227 +0,0 @@
1
- import { isArray, isString, isObject, isMap, isSet } from '../type-util/type-util.mjs';
2
-
3
- /* eslint-disable no-restricted-globals */
4
- /**
5
- * 生成唯一标识
6
- *
7
- * @export
8
- * @return {*} {string}
9
- */
10
- function S4() {
11
- // eslint-disable-next-line no-bitwise
12
- return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
13
- }
14
- function createUUID() {
15
- return `${S4() + S4()}-${S4()}-${S4()}-${S4()}-${S4()}${S4()}${S4()}`;
16
- }
17
- /**
18
- * 设置cookie
19
- *
20
- * @static
21
- * @param {*} name 名称
22
- * @param {*} value 值
23
- * @param {*} day 过期天数
24
- * @param {boolean} [isDomain=false] 是否设置在主域下
25
- * @param {string} [path='/'] 默认归属路径
26
- * @memberof Util
27
- */
28
- function setCookie(name, value, day = 0, isDomain = false, path = '/') {
29
- let domain = '';
30
- // 设置cookie到主域下
31
- if (isDomain) {
32
- // 是否为ip正则
33
- const regExpr = /^(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)\.(25[0-5]|2[0-4]\d|[0-1]\d{2}|[1-9]?\d)$/;
34
- // 为ip时忽略
35
- if (!regExpr.test(location.hostname)) {
36
- const host = location.hostname;
37
- if (host.indexOf('.') !== host.lastIndexOf('.')) {
38
- domain = `;domain=${host.substring(host.indexOf('.'), host.length)}`;
39
- }
40
- }
41
- }
42
- // 当设置的时间等于0时,不设置expires属性,cookie在浏览器关闭后删除
43
- if (day !== 0) {
44
- const expires = day * 24 * 60 * 60 * 1000;
45
- const date = new Date(new Date().getTime() + expires);
46
- document.cookie = `${name}=${escape(value)};path=${path};expires=${date.toUTCString()}${domain}`;
47
- }
48
- else {
49
- document.cookie = `${name}=${escape(value)};path=${path}${domain}`;
50
- }
51
- }
52
- /**
53
- * 清除cookie
54
- *
55
- * @static
56
- * @param {string} cookieName
57
- * @param {boolean} [isDomain] 是否在主域下
58
- * @memberof Util
59
- */
60
- function clearCookie(cookieName, isDomain) {
61
- setCookie(cookieName, '', -1, isDomain);
62
- }
63
- /**
64
- * 获取cookie
65
- *
66
- * @static
67
- * @param {string} name
68
- * @return {*} {*}
69
- * @memberof Util
70
- */
71
- function getCookie(name) {
72
- const reg = new RegExp(`(^| )${name}=([^;]*)(;|$)`);
73
- const arr = document.cookie.match(reg);
74
- if (arr && arr.length > 1) {
75
- return unescape(arr[2]);
76
- }
77
- return null;
78
- }
79
- /**
80
- * 内部使用,是否为 null
81
- *
82
- * @author chitanda
83
- * @date 2022-09-07 23:09:09
84
- * @param {unknown} value
85
- * @return {*} {boolean}
86
- */
87
- function isNil(value) {
88
- return value == null;
89
- }
90
- /**
91
- * 判断 对象、数组 以及字符串是否为空
92
- *
93
- * @author chitanda
94
- * @date 2022-09-07 23:09:02
95
- * @param {unknown} data
96
- * @return {*} {boolean}
97
- */
98
- function isEmpty(data) {
99
- if (isArray(data) || isString(data)) {
100
- return data.length === 0;
101
- }
102
- if (isObject(data)) {
103
- for (const key in data) {
104
- if (Object.prototype.hasOwnProperty.call(data, key)) {
105
- return false;
106
- }
107
- }
108
- return true;
109
- }
110
- if (isMap(data) || isSet(data)) {
111
- return data.size === 0;
112
- }
113
- return data == null;
114
- }
115
- /**
116
- * 存在并且不等于空,支持数据类型对象、数组、字符串。例:[]、{}都算为空值。
117
- *
118
- * @export
119
- * @param {*} data
120
- * @return {*} {boolean}
121
- */
122
- function notNilEmpty(data) {
123
- if (!isNil(data) && !isEmpty(data)) {
124
- return true;
125
- }
126
- return false;
127
- }
128
- /**
129
- * 在当前类型中,不存在或者为空值。例:[]、{}都算为空值。
130
- *
131
- * @export
132
- * @param {*} data
133
- * @return {*} {boolean}
134
- */
135
- function isNilOrEmpty(data) {
136
- if (isNil(data) || isEmpty(data)) {
137
- return true;
138
- }
139
- return false;
140
- }
141
- /**
142
- * 默认生成排序值方法
143
- *
144
- * @export
145
- * @param {number} index 所在数据集下标
146
- * @return {*} {number}
147
- */
148
- function generateOrderValue(index) {
149
- return (index + 1) * 100;
150
- }
151
- /**
152
- * 获取query查询数据
153
- *
154
- * @author chitanda
155
- * @date 2021-05-18 11:05:34
156
- * @export
157
- * @param {string} variable 变量标识
158
- * @param {string} [query=location.search] 指定query,模型从 location.search 取
159
- * @return {*} {*}
160
- */
161
- function getQueryVariable(variable, query = location.search) {
162
- if (query.startsWith('?')) {
163
- query = query.substring(1);
164
- }
165
- const vars = query.split('&');
166
- for (let i = 0; i < vars.length; i++) {
167
- const pair = vars[i].split('=');
168
- // eslint-disable-next-line eqeqeq
169
- if (pair[0] == variable) {
170
- return pair[1];
171
- }
172
- }
173
- return false;
174
- }
175
- /**
176
- * 请求参数转义处理
177
- *
178
- * @author chitanda
179
- * @date 2021-05-31 16:05:48
180
- * @export
181
- * @param {Record<string, any>} opt
182
- * @return {*} {string}
183
- */
184
- function formatHttpParams(opt) {
185
- const params = {};
186
- const postData = [];
187
- Object.assign(params, opt);
188
- const keys = Object.keys(params);
189
- keys.forEach((key) => {
190
- const val = params[key];
191
- if (val instanceof Array || val instanceof Object) {
192
- postData.push(`${key}=${encodeURIComponent(JSON.stringify(val))}`);
193
- }
194
- else {
195
- postData.push(`${key}=${encodeURIComponent(val)}`);
196
- }
197
- });
198
- return postData.join('&');
199
- }
200
- /**
201
- * url最后补充query参数
202
- *
203
- * @author chitanda
204
- * @date 2021-05-31 16:05:55
205
- * @export
206
- * @param {string} url
207
- * @param {*} params
208
- * @return {*} {string}
209
- */
210
- function setUrlQuery(url, params) {
211
- const _strParams = formatHttpParams(params);
212
- if (url.endsWith('?')) {
213
- url = `${url}${_strParams}`;
214
- }
215
- else if (url.indexOf('?') !== -1 && url.endsWith('&')) {
216
- url = `${url}${_strParams}`;
217
- }
218
- else if (url.indexOf('?') !== -1 && !url.endsWith('&')) {
219
- url = `${url}&${_strParams}`;
220
- }
221
- else {
222
- url = `${url}?${_strParams}`;
223
- }
224
- return url;
225
- }
226
-
227
- export { clearCookie, createUUID, formatHttpParams, generateOrderValue, getCookie, getQueryVariable, isNilOrEmpty, notNilEmpty, setCookie, setUrlQuery };