@das-fed/upf-utils 6.4.0-dev.238 → 6.4.0-dev.240

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 (190) hide show
  1. package/api-services/es5.d.ts +2 -0
  2. package/api-services/es5.js +1360 -1345
  3. package/api-services/i18n/es5.d.ts +63 -0
  4. package/api-services/index.js +1076 -1060
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/es5.d.ts +2 -0
  7. package/api-services/modules/app-manage/es5.js +25 -19
  8. package/api-services/modules/app-manage/index.js +17 -15
  9. package/api-services/modules/app-manage/index.js.gz +0 -0
  10. package/api-services/modules/authentication/es5.d.ts +2 -0
  11. package/api-services/modules/authentication/es5.js +1100 -1082
  12. package/api-services/modules/authentication/index.js +911 -891
  13. package/api-services/modules/authentication/index.js.gz +0 -0
  14. package/api-services/modules/bems/es5.d.ts +6 -0
  15. package/api-services/modules/bems/es5.js +96 -90
  16. package/api-services/modules/bems/index.js +75 -73
  17. package/api-services/modules/bems/index.js.gz +0 -0
  18. package/api-services/modules/contract/es5.d.ts +2 -0
  19. package/api-services/modules/contract/es5.js +25 -19
  20. package/api-services/modules/contract/index.js +17 -15
  21. package/api-services/modules/contract/index.js.gz +0 -0
  22. package/api-services/modules/duty-manage/es5.d.ts +7 -0
  23. package/api-services/modules/duty-manage/es5.js +23 -17
  24. package/api-services/modules/duty-manage/index.js +16 -14
  25. package/api-services/modules/duty-manage/index.js.gz +0 -0
  26. package/api-services/modules/enterpriseright/es5.d.ts +2 -0
  27. package/api-services/modules/enterpriseright/es5.js +829 -826
  28. package/api-services/modules/enterpriseright/index.js +651 -653
  29. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  30. package/api-services/modules/es5.d.ts +21 -0
  31. package/api-services/modules/es5.js +1353 -1356
  32. package/api-services/modules/file/es5.d.ts +37 -0
  33. package/api-services/modules/file/es5.js +1226 -1232
  34. package/api-services/modules/file/index.js +993 -1009
  35. package/api-services/modules/file/index.js.gz +0 -0
  36. package/api-services/modules/gateway-edge/es5.d.ts +2 -0
  37. package/api-services/modules/gateway-edge/es5.js +1343 -1325
  38. package/api-services/modules/gateway-edge/index.js +1140 -1120
  39. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  40. package/api-services/modules/index.js +1062 -1074
  41. package/api-services/modules/index.js.gz +0 -0
  42. package/api-services/modules/iot/es5.d.ts +16 -0
  43. package/api-services/modules/iot/es5.js +33 -27
  44. package/api-services/modules/iot/index.js +23 -21
  45. package/api-services/modules/iot/index.js.gz +0 -0
  46. package/api-services/modules/justauth/es5.d.ts +3 -0
  47. package/api-services/modules/justauth/es5.js +1345 -1351
  48. package/api-services/modules/justauth/index.js +1127 -1143
  49. package/api-services/modules/justauth/index.js.gz +0 -0
  50. package/api-services/modules/knowledge/es5.d.ts +2 -0
  51. package/api-services/modules/knowledge/es5.js +1343 -1325
  52. package/api-services/modules/knowledge/index.js +1140 -1120
  53. package/api-services/modules/knowledge/index.js.gz +0 -0
  54. package/api-services/modules/link/es5.d.ts +2 -0
  55. package/api-services/modules/link/es5.js +25 -19
  56. package/api-services/modules/link/index.js +17 -15
  57. package/api-services/modules/link/index.js.gz +0 -0
  58. package/api-services/modules/permission/es5.d.ts +2 -0
  59. package/api-services/modules/permission/es5.js +1100 -1106
  60. package/api-services/modules/permission/index.js +897 -913
  61. package/api-services/modules/permission/index.js.gz +0 -0
  62. package/api-services/modules/platformManage/es5.d.ts +14 -0
  63. package/api-services/modules/platformManage/es5.js +1350 -1356
  64. package/api-services/modules/platformManage/index.js +1131 -1147
  65. package/api-services/modules/platformManage/index.js.gz +0 -0
  66. package/api-services/modules/portal/es5.d.ts +2 -0
  67. package/api-services/modules/portal/es5.js +1343 -1349
  68. package/api-services/modules/portal/index.js +1126 -1142
  69. package/api-services/modules/portal/index.js.gz +0 -0
  70. package/api-services/modules/space-manage/es5.d.ts +2 -0
  71. package/api-services/modules/space-manage/es5.js +1343 -1349
  72. package/api-services/modules/space-manage/index.js +1126 -1142
  73. package/api-services/modules/space-manage/index.js.gz +0 -0
  74. package/api-services/modules/super-admin/es5.d.ts +8 -0
  75. package/api-services/modules/super-admin/es5.js +1104 -1110
  76. package/api-services/modules/super-admin/index.js +899 -915
  77. package/api-services/modules/super-admin/index.js.gz +0 -0
  78. package/api-services/modules/supplier/es5.d.ts +6 -0
  79. package/api-services/modules/supplier/es5.js +1104 -1110
  80. package/api-services/modules/supplier/index.js +899 -915
  81. package/api-services/modules/supplier/index.js.gz +0 -0
  82. package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
  83. package/api-services/modules/supplychain-manage/es5.js +1343 -1325
  84. package/api-services/modules/supplychain-manage/index.js +1140 -1120
  85. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  86. package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
  87. package/api-services/modules/systemConfiguration/es5.js +25 -19
  88. package/api-services/modules/systemConfiguration/index.js +17 -15
  89. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  90. package/api-services/modules/tool/es5.d.ts +2 -0
  91. package/api-services/modules/tool/es5.js +845 -836
  92. package/api-services/modules/tool/index.js +660 -654
  93. package/api-services/modules/tool/index.js.gz +0 -0
  94. package/api-services/src/create-service/es5.d.ts +1 -0
  95. package/api-services/src/create-service/es5.js +99 -93
  96. package/api-services/src/create-service/index.js +78 -76
  97. package/api-services/src/create-service/index.js.gz +0 -0
  98. package/atob/es5.d.ts +2 -0
  99. package/common-info/es5.d.ts +48 -0
  100. package/common-info/es5.js +915 -965
  101. package/common-info/getIframeUrl/es5.d.ts +9 -0
  102. package/common-info/getInfoFromUrl/es5.d.ts +8 -0
  103. package/common-info/getPermissionMethod/es5.d.ts +77 -0
  104. package/common-info/getPermissionMethod/es5.js +1371 -1355
  105. package/common-info/getPermissionMethod/index.d.ts +27 -9
  106. package/common-info/getPermissionMethod/index.js +1141 -1125
  107. package/common-info/getPermissionMethod/index.js.gz +0 -0
  108. package/common-info/index.d.ts +1 -29
  109. package/common-info/index.js +725 -757
  110. package/common-info/index.js.gz +0 -0
  111. package/common-info/set-personal-info/es5.d.ts +5 -0
  112. package/common-info/type.d.ts +2 -2
  113. package/common-tools/arr-tools/es5.d.ts +15 -0
  114. package/common-tools/calc-text-width/es5.d.ts +1 -0
  115. package/common-tools/date-format/es5.d.ts +7 -0
  116. package/common-tools/es5.d.ts +15 -0
  117. package/common-tools/es5.js +9 -0
  118. package/common-tools/extract-file-name/es5.d.ts +1 -0
  119. package/common-tools/get-file-extension/es5.d.ts +6 -0
  120. package/common-tools/get-url-params/es5.d.ts +46 -0
  121. package/common-tools/handle-data/es5.d.ts +34 -0
  122. package/common-tools/handle-data/es5.js +44 -6
  123. package/common-tools/handle-data/index.d.ts +16 -1
  124. package/common-tools/handle-data/index.js +1 -1
  125. package/common-tools/handle-data/index.js.gz +0 -0
  126. package/common-tools/index.d.ts +1 -0
  127. package/common-tools/index.js +1 -0
  128. package/common-tools/nest-tree-format/es5.d.ts +30 -0
  129. package/common-tools/obj-tools/es5.d.ts +7 -0
  130. package/common-tools/platform-tools/es5.d.ts +19 -0
  131. package/common-tools/queue-promise/es5.d.ts +6 -0
  132. package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
  133. package/common-tools/timezone-format/es5.d.ts +28 -0
  134. package/common-tools/timezone-format/es5.js +140 -0
  135. package/common-tools/timezone-format/index.d.ts +28 -0
  136. package/common-tools/timezone-format/index.js +81 -0
  137. package/common-tools/timezone-format/index.js.gz +0 -0
  138. package/common-tools/update-browser-title/es5.d.ts +1 -0
  139. package/common-tools/update-fav-icon/es5.d.ts +11 -0
  140. package/config/es5.d.ts +2 -0
  141. package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
  142. package/create-api-service/access-token-auto-refresh/es5.js +27 -26
  143. package/create-api-service/access-token-auto-refresh/index.js +27 -26
  144. package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
  145. package/create-api-service/check-token/es5.d.ts +12 -0
  146. package/create-api-service/es5.d.ts +8 -0
  147. package/create-api-service/es5.js +24 -18
  148. package/create-api-service/i18n/es5.d.ts +39 -0
  149. package/create-api-service/index.js +17 -15
  150. package/create-api-service/index.js.gz +0 -0
  151. package/create-api-service/proxy-sso/es5.d.ts +3 -0
  152. package/create-api-service/sso/es5.d.ts +21 -0
  153. package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
  154. package/curring-http/es5.d.ts +12 -0
  155. package/dimple-canvas/es5.d.ts +3 -0
  156. package/directive/auth/es5.d.ts +8 -0
  157. package/directive/clickOutside/es5.d.ts +6 -0
  158. package/directive/es5.d.ts +3 -0
  159. package/directive/hoverInside/es5.d.ts +6 -0
  160. package/directive/utils/es5.d.ts +7 -0
  161. package/dom-check-in/es5.d.ts +6 -0
  162. package/dom-watcher/es5.d.ts +25 -0
  163. package/esm-map.json +32 -7
  164. package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
  165. package/i18n-bridge/es5.d.ts +10 -0
  166. package/index.d.ts +1 -0
  167. package/index.js +1 -0
  168. package/load-js/es5.d.ts +3 -0
  169. package/nextTiken/es5.d.ts +12 -0
  170. package/oss/es5.d.ts +2 -0
  171. package/package.json +4 -3
  172. package/pinyin-first-character/es5.d.ts +2 -0
  173. package/process-engine-info/es5.d.ts +13 -0
  174. package/pure-image-src/es5.d.ts +2 -0
  175. package/size-watcher/es5.d.ts +6 -0
  176. package/style/es5.d.ts +2 -0
  177. package/theme/es5.d.ts +92 -0
  178. package/theme/es5.js +1365 -0
  179. package/theme/index.d.ts +92 -0
  180. package/theme/index.js +871 -0
  181. package/theme/index.js.gz +0 -0
  182. package/token-tools/es5.d.ts +21 -0
  183. package/use-low-code/es5.d.ts +1 -0
  184. package/vue/es5.d.ts +1 -0
  185. package/vue/hooks/use-model-value/es5.d.ts +9 -0
  186. package/webSocket-service/es5.d.ts +41 -0
  187. package/with-install/es5.d.ts +11 -0
  188. package/hooks/use-get-auth/es5.js +0 -67
  189. package/hooks/use-get-auth/index.d.ts +0 -4
  190. package/hooks/use-get-auth/index.js +0 -19
Binary file
@@ -0,0 +1,21 @@
1
+ declare const accessTokenExpiredAtKey = "accessTokenExpiredAt";
2
+ declare const refreshTokenKey = "refreshToken";
3
+ declare const redirectUriKey = "redirectUri";
4
+ declare const accessTokenInfoKey = "tokenInfo";
5
+ /**
6
+ * 获取token
7
+ * @returns token
8
+ */
9
+ export declare const getAccessToken: () => string;
10
+ /**
11
+ * 获取tokenInfo相关信息
12
+ */
13
+ export declare const getAccessTokenInfo: (key: typeof accessTokenExpiredAtKey | typeof refreshTokenKey | typeof redirectUriKey | typeof accessTokenInfoKey) => any;
14
+ /**
15
+ * 存入token、tokenInfo
16
+ * @param token
17
+ * @param info
18
+ */
19
+ export declare const setAccessToken: (token: string, info?: any) => void;
20
+ export declare const removeAccessToken: () => void;
21
+ export {};
@@ -0,0 +1 @@
1
+ export { default as LowCode } from './low-code-iframe.vue';
package/vue/es5.d.ts ADDED
@@ -0,0 +1 @@
1
+ export { useModelValue } from '@das-fed/upf-utils/vue/hooks/use-model-value';
@@ -0,0 +1,9 @@
1
+ import { Ref } from 'vue';
2
+
3
+ /** 简化组件内使用modelValue时的watch过程 */
4
+ declare const useModelValue: (
5
+ /** 组件的props */
6
+ props: any,
7
+ /** 组件props需要使用modelValue的key */
8
+ propKey: string) => Ref;
9
+ export { useModelValue };
@@ -0,0 +1,41 @@
1
+ import { socketConfig } from './type';
2
+
3
+ export declare class socketService {
4
+ /** websocket实例 */
5
+ $ws: any;
6
+ /** websocket地址 */
7
+ url: string;
8
+ /** 请求参数 */
9
+ params: Record<string, any>;
10
+ /** 是否正在重连,避免ws重复连接 */
11
+ lockReturn: boolean;
12
+ /** websocket开启时间 */
13
+ startTime: any;
14
+ /** 心跳检测 */
15
+ heartbeatInterval: any;
16
+ /** 发生错误时是否重连,默认开启 */
17
+ ifReconnect: boolean;
18
+ /** 重连定时器 */
19
+ reconnectId: any;
20
+ /** 重连次数,默认为3,-1 表示一直重连 */
21
+ reconnectNum: number;
22
+ /** 连接close关闭时是否重连,默认关闭 */
23
+ reconnectWhenClose: boolean;
24
+ /** 当前重连次数 */
25
+ currentReconnectNum: number;
26
+ constructor({ url, params, opened, close, error, message, ifReconnect, reconnectNum, reconnectWhenClose, }: socketConfig);
27
+ initWebSocket(): void;
28
+ open(): void;
29
+ opened(ws: any): void;
30
+ close(event: CloseEvent): void;
31
+ message(event: any): void;
32
+ afterMsg(msg: any): void;
33
+ error(err: any): any;
34
+ /** websocket重连 */
35
+ reconnect(): void;
36
+ /** 发送消息给服务器 */
37
+ send(message: any): void;
38
+ startHeartbeat(): void;
39
+ /** 断开连接 */
40
+ disconnect(): void;
41
+ }
@@ -0,0 +1,11 @@
1
+ import { Plugin } from 'vue';
2
+
3
+ /**
4
+ * 组件外部使用use时执行install,然后将组件注册为全局
5
+ */
6
+ export type SFCWithInstall<T> = T & Plugin;
7
+ /**
8
+ * 定义一个withInstall方法处理以下组件类型问题
9
+ * @param comp
10
+ */
11
+ export declare const withInstall: <T>(comp: T) => SFCWithInstall<T>;
@@ -1,67 +0,0 @@
1
- 'use strict';
2
-
3
- function _regenerator() { /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */ var e, t, r = "function" == typeof Symbol ? Symbol : {}, n = r.iterator || "@@iterator", o = r.toStringTag || "@@toStringTag"; function i(r, n, o, i) { var c = n && n.prototype instanceof Generator ? n : Generator, u = Object.create(c.prototype); return _regeneratorDefine2(u, "_invoke", function (r, n, o) { var i, c, u, f = 0, p = o || [], y = !1, G = { p: 0, n: 0, v: e, a: d, f: d.bind(e, 4), d: function d(t, r) { return i = t, c = 0, u = e, G.n = r, a; } }; function d(r, n) { for (c = r, u = n, t = 0; !y && f && !o && t < p.length; t++) { var o, i = p[t], d = G.p, l = i[2]; r > 3 ? (o = l === n) && (u = i[(c = i[4]) ? 5 : (c = 3, 3)], i[4] = i[5] = e) : i[0] <= d && ((o = r < 2 && d < i[1]) ? (c = 0, G.v = n, G.n = i[1]) : d < l && (o = r < 3 || i[0] > n || n > l) && (i[4] = r, i[5] = n, G.n = l, c = 0)); } if (o || r > 1) return a; throw y = !0, n; } return function (o, p, l) { if (f > 1) throw TypeError("Generator is already running"); for (y && 1 === p && d(p, l), c = p, u = l; (t = c < 2 ? e : u) || !y;) { i || (c ? c < 3 ? (c > 1 && (G.n = -1), d(c, u)) : G.n = u : G.v = u); try { if (f = 2, i) { if (c || (o = "next"), t = i[o]) { if (!(t = t.call(i, u))) throw TypeError("iterator result is not an object"); if (!t.done) return t; u = t.value, c < 2 && (c = 0); } else 1 === c && (t = i["return"]) && t.call(i), c < 2 && (u = TypeError("The iterator does not provide a '" + o + "' method"), c = 1); i = e; } else if ((t = (y = G.n < 0) ? u : r.call(n, G)) !== a) break; } catch (t) { i = e, c = 1, u = t; } finally { f = 1; } } return { value: t, done: y }; }; }(r, o, i), !0), u; } var a = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} t = Object.getPrototypeOf; var c = [][n] ? t(t([][n]())) : (_regeneratorDefine2(t = {}, n, function () { return this; }), t), u = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(c); function f(e) { return Object.setPrototypeOf ? Object.setPrototypeOf(e, GeneratorFunctionPrototype) : (e.__proto__ = GeneratorFunctionPrototype, _regeneratorDefine2(e, o, "GeneratorFunction")), e.prototype = Object.create(u), e; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, _regeneratorDefine2(u, "constructor", GeneratorFunctionPrototype), _regeneratorDefine2(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = "GeneratorFunction", _regeneratorDefine2(GeneratorFunctionPrototype, o, "GeneratorFunction"), _regeneratorDefine2(u), _regeneratorDefine2(u, o, "Generator"), _regeneratorDefine2(u, n, function () { return this; }), _regeneratorDefine2(u, "toString", function () { return "[object Generator]"; }), (_regenerator = function _regenerator() { return { w: i, m: f }; })(); }
4
- function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); } r ? i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n : (o("next", 0), o("throw", 1), o("return", 2)); }, _regeneratorDefine2(e, r, n, t); }
5
- function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
6
- function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
7
- var commonTools = require('@das-fed/upf-utils/common-tools/es5');
8
- var nextTiken = require('@das-fed/upf-utils/nextTiken/es5');
9
- var l = function l() {
10
- return {
11
- getApplication: function () {
12
- var _getApplication = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(t) {
13
- var i;
14
- return _regenerator().w(function (_context) {
15
- while (1) switch (_context.n) {
16
- case 0:
17
- _context.n = 1;
18
- return nextTiken.projectNextTick();
19
- case 1:
20
- i = JSON.parse(sessionStorage.getItem("menuList") || "[]").filter(function (e) {
21
- return e.type === "application";
22
- });
23
- return _context.a(2, t ? i.find(function (e) {
24
- return e.appId === t;
25
- }) : i);
26
- }
27
- }, _callee);
28
- }));
29
- function getApplication(_x) {
30
- return _getApplication.apply(this, arguments);
31
- }
32
- return getApplication;
33
- }(),
34
- getMenu: function () {
35
- var _getMenu = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(t, n) {
36
- var i, e, a;
37
- return _regenerator().w(function (_context2) {
38
- while (1) switch (_context2.n) {
39
- case 0:
40
- _context2.n = 1;
41
- return nextTiken.projectNextTick();
42
- case 1:
43
- i = JSON.parse(sessionStorage.getItem("menuList") || "[]"), e = commonTools.flatTree(i).filter(function (r) {
44
- return r.type === "menu";
45
- });
46
- if (!(!t && !n)) {
47
- _context2.n = 2;
48
- break;
49
- }
50
- return _context2.a(2, e);
51
- case 2:
52
- return _context2.a(2, (t ? a = e.find(function (r) {
53
- return r.routeCode === t || r.originalCode === t;
54
- }) : n && (a = e.find(function (r) {
55
- return r.routeUrl === n;
56
- })), a));
57
- }
58
- }, _callee2);
59
- }));
60
- function getMenu(_x2, _x3) {
61
- return _getMenu.apply(this, arguments);
62
- }
63
- return getMenu;
64
- }()
65
- };
66
- };
67
- exports.useGetAuth = l;
@@ -1,4 +0,0 @@
1
- export declare const useGetAuth: () => {
2
- getApplication: (code?: string) => unknown;
3
- getMenu: (menuCode?: string, path?: string) => unknown;
4
- };
@@ -1,19 +0,0 @@
1
- import { flatTree as o } from "@das-fed/upf-utils/common-tools";
2
- import { projectNextTick as s } from "@das-fed/upf-utils/nextTiken";
3
- const l = () => ({
4
- getApplication: async (t) => {
5
- await s();
6
- const i = JSON.parse(sessionStorage.getItem("menuList") || "[]").filter((e) => e.type === "application");
7
- return t ? i.find((e) => e.appId === t) : i;
8
- },
9
- getMenu: async (t, n) => {
10
- await s();
11
- const i = JSON.parse(sessionStorage.getItem("menuList") || "[]"), e = o(i).filter((r) => r.type === "menu");
12
- if (!t && !n) return e;
13
- let a;
14
- return t ? a = e.find((r) => r.routeCode === t || r.originalCode === t) : n && (a = e.find((r) => r.routeUrl === n)), a;
15
- }
16
- });
17
- export {
18
- l as useGetAuth
19
- };