@das-fed/upf-utils 6.4.0-dev.175 → 6.4.0-dev.176

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 (105) hide show
  1. package/api-services/es5.js +114 -75
  2. package/api-services/i18n/es5.js +6 -1
  3. package/api-services/modules/app-manage/es5.js +1008 -994
  4. package/api-services/modules/app-manage/index.js +804 -786
  5. package/api-services/modules/app-manage/index.js.gz +0 -0
  6. package/api-services/modules/authentication/es5.js +41 -39
  7. package/api-services/modules/bems/es5.js +1012 -1022
  8. package/api-services/modules/bems/index.js +800 -818
  9. package/api-services/modules/bems/index.js.gz +0 -0
  10. package/api-services/modules/contract/es5.js +41 -39
  11. package/api-services/modules/duty-manage/es5.js +1008 -1018
  12. package/api-services/modules/duty-manage/index.js +799 -817
  13. package/api-services/modules/duty-manage/index.js.gz +0 -0
  14. package/api-services/modules/enterpriseright/es5.js +41 -39
  15. package/api-services/modules/es5.js +113 -75
  16. package/api-services/modules/file/es5.js +1159 -1144
  17. package/api-services/modules/file/index.js +900 -882
  18. package/api-services/modules/file/index.js.gz +0 -0
  19. package/api-services/modules/gateway-edge/es5.js +41 -39
  20. package/api-services/modules/iot/es5.js +46 -39
  21. package/api-services/modules/justauth/es5.js +999 -1005
  22. package/api-services/modules/justauth/index.js +789 -803
  23. package/api-services/modules/justauth/index.js.gz +0 -0
  24. package/api-services/modules/knowledge/es5.js +832 -827
  25. package/api-services/modules/knowledge/index.js +621 -617
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/es5.js +41 -39
  28. package/api-services/modules/permission/es5.js +996 -1006
  29. package/api-services/modules/permission/index.js +786 -804
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/es5.js +988 -994
  32. package/api-services/modules/platformManage/index.js +777 -795
  33. package/api-services/modules/platformManage/index.js.gz +0 -0
  34. package/api-services/modules/portal/es5.js +1008 -994
  35. package/api-services/modules/portal/index.js +804 -786
  36. package/api-services/modules/portal/index.js.gz +0 -0
  37. package/api-services/modules/space-manage/es5.js +1008 -994
  38. package/api-services/modules/space-manage/index.js +804 -786
  39. package/api-services/modules/space-manage/index.js.gz +0 -0
  40. package/api-services/modules/super-admin/es5.js +44 -39
  41. package/api-services/modules/supplier/es5.js +43 -39
  42. package/api-services/modules/supplychain-manage/es5.js +1008 -994
  43. package/api-services/modules/supplychain-manage/index.js +804 -786
  44. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  45. package/api-services/modules/systemConfiguration/es5.js +996 -1006
  46. package/api-services/modules/systemConfiguration/index.js +786 -804
  47. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  48. package/api-services/modules/tool/es5.js +41 -39
  49. package/api-services/src/create-service/es5.js +41 -39
  50. package/atob/es5.js +4 -1
  51. package/common-info/es5.js +31 -13
  52. package/common-info/getIframeUrl/es5.js +5 -3
  53. package/common-info/getInfoFromUrl/es5.js +5 -2
  54. package/common-info/set-personal-info/es5.js +9 -7
  55. package/common-tools/arr-tools/es5.js +4 -1
  56. package/common-tools/calc-text-width/es5.js +3 -1
  57. package/common-tools/date-format/es5.js +3 -1
  58. package/common-tools/es5.js +128 -14
  59. package/common-tools/extract-file-name/es5.js +5 -3
  60. package/common-tools/get-file-extension/es5.js +3 -1
  61. package/common-tools/get-url-params/es5.js +9 -1
  62. package/common-tools/handle-data/es5.js +71 -46
  63. package/common-tools/handle-data/index.js +37 -36
  64. package/common-tools/handle-data/index.js.gz +0 -0
  65. package/common-tools/nest-tree-format/es5.js +6 -1
  66. package/common-tools/obj-tools/es5.js +3 -1
  67. package/common-tools/platform-tools/es5.js +8 -3
  68. package/common-tools/queue-promise/es5.js +3 -1
  69. package/common-tools/setHtmlMinWH/es5.js +3 -1
  70. package/common-tools/update-browser-title/es5.js +5 -3
  71. package/common-tools/update-fav-icon/es5.js +10 -7
  72. package/config/es5.js +3 -1
  73. package/create-api-service/check-token/es5.js +6 -4
  74. package/create-api-service/es5.js +994 -1004
  75. package/create-api-service/i18n/es5.js +6 -1
  76. package/create-api-service/index.js +785 -803
  77. package/create-api-service/index.js.gz +0 -0
  78. package/create-api-service/proxy-sso/es5.js +5 -3
  79. package/create-api-service/sso/es5.js +50 -42
  80. package/curring-http/es5.js +9 -7
  81. package/dimple-canvas/es5.js +15 -1
  82. package/directive/auth/es5.js +15 -13
  83. package/directive/clickOutside/es5.js +6 -4
  84. package/directive/es5.js +23 -3
  85. package/directive/hoverInside/es5.js +6 -4
  86. package/directive/utils/es5.js +3 -1
  87. package/dom-check-in/es5.js +3 -1
  88. package/dom-watcher/es5.js +3 -1
  89. package/hooks/popup-manager/use-zindex/es5.js +3 -1
  90. package/hooks/use-get-auth/es5.js +15 -13
  91. package/load-js/es5.js +8 -6
  92. package/nextTiken/es5.js +14 -8
  93. package/oss/es5.js +8 -5
  94. package/package.json +4 -4
  95. package/pinyin-first-character/es5.js +3 -1
  96. package/process-engine-info/es5.js +6 -1
  97. package/pure-image-src/es5.js +3 -1
  98. package/size-watcher/es5.js +8 -5
  99. package/style/es5.js +15 -6
  100. package/token-tools/es5.js +6 -1
  101. package/use-low-code/es5.js +11 -9
  102. package/vue/es5.js +9 -1
  103. package/vue/hooks/use-model-value/es5.js +6 -4
  104. package/webSocket-service/es5.js +9 -7
  105. package/with-install/es5.js +3 -1
@@ -1,14 +1,128 @@
1
- export * from '@das-fed/upf-utils/common-tools/date-format';
2
- export * from '@das-fed/upf-utils/common-tools/get-url-params';
3
- export * from '@das-fed/upf-utils/common-tools/nest-tree-format';
4
- export * from '@das-fed/upf-utils/common-tools/obj-tools';
5
- export * from '@das-fed/upf-utils/common-tools/arr-tools';
6
- export * from '@das-fed/upf-utils/common-tools/handle-data';
7
- export * from '@das-fed/upf-utils/common-tools/setHtmlMinWH';
8
- export * from '@das-fed/upf-utils/common-tools/queue-promise';
9
- export * from '@das-fed/upf-utils/common-tools/platform-tools';
10
- export * from '@das-fed/upf-utils/common-tools/update-fav-icon';
11
- export * from '@das-fed/upf-utils/common-tools/update-browser-title';
12
- export * from '@das-fed/upf-utils/common-tools/extract-file-name';
13
- export * from '@das-fed/upf-utils/common-tools/get-file-extension';
14
- export * from '@das-fed/upf-utils/common-tools/calc-text-width';
1
+ 'use strict';
2
+
3
+ var dateFormat = require('@das-fed/upf-utils/common-tools/date-format/es5');
4
+ var getUrlParams = require('@das-fed/upf-utils/common-tools/get-url-params/es5');
5
+ var nestTreeFormat = require('@das-fed/upf-utils/common-tools/nest-tree-format/es5');
6
+ var objTools = require('@das-fed/upf-utils/common-tools/obj-tools/es5');
7
+ var arrTools = require('@das-fed/upf-utils/common-tools/arr-tools/es5');
8
+ var handleData = require('@das-fed/upf-utils/common-tools/handle-data/es5');
9
+ var setHtmlMinWH = require('@das-fed/upf-utils/common-tools/setHtmlMinWH/es5');
10
+ var queuePromise = require('@das-fed/upf-utils/common-tools/queue-promise/es5');
11
+ var platformTools = require('@das-fed/upf-utils/common-tools/platform-tools/es5');
12
+ var updateFavIcon = require('@das-fed/upf-utils/common-tools/update-fav-icon/es5');
13
+ var updateBrowserTitle = require('@das-fed/upf-utils/common-tools/update-browser-title/es5');
14
+ var extractFileName = require('@das-fed/upf-utils/common-tools/extract-file-name/es5');
15
+ var getFileExtension = require('@das-fed/upf-utils/common-tools/get-file-extension/es5');
16
+ var calcTextWidth = require('@das-fed/upf-utils/common-tools/calc-text-width/es5');
17
+ Object.keys(dateFormat).forEach(function (k) {
18
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
19
+ enumerable: true,
20
+ get: function get() {
21
+ return dateFormat[k];
22
+ }
23
+ });
24
+ });
25
+ Object.keys(getUrlParams).forEach(function (k) {
26
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
27
+ enumerable: true,
28
+ get: function get() {
29
+ return getUrlParams[k];
30
+ }
31
+ });
32
+ });
33
+ Object.keys(nestTreeFormat).forEach(function (k) {
34
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
35
+ enumerable: true,
36
+ get: function get() {
37
+ return nestTreeFormat[k];
38
+ }
39
+ });
40
+ });
41
+ Object.keys(objTools).forEach(function (k) {
42
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
43
+ enumerable: true,
44
+ get: function get() {
45
+ return objTools[k];
46
+ }
47
+ });
48
+ });
49
+ Object.keys(arrTools).forEach(function (k) {
50
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
51
+ enumerable: true,
52
+ get: function get() {
53
+ return arrTools[k];
54
+ }
55
+ });
56
+ });
57
+ Object.keys(handleData).forEach(function (k) {
58
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
59
+ enumerable: true,
60
+ get: function get() {
61
+ return handleData[k];
62
+ }
63
+ });
64
+ });
65
+ Object.keys(setHtmlMinWH).forEach(function (k) {
66
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
67
+ enumerable: true,
68
+ get: function get() {
69
+ return setHtmlMinWH[k];
70
+ }
71
+ });
72
+ });
73
+ Object.keys(queuePromise).forEach(function (k) {
74
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
75
+ enumerable: true,
76
+ get: function get() {
77
+ return queuePromise[k];
78
+ }
79
+ });
80
+ });
81
+ Object.keys(platformTools).forEach(function (k) {
82
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
83
+ enumerable: true,
84
+ get: function get() {
85
+ return platformTools[k];
86
+ }
87
+ });
88
+ });
89
+ Object.keys(updateFavIcon).forEach(function (k) {
90
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
91
+ enumerable: true,
92
+ get: function get() {
93
+ return updateFavIcon[k];
94
+ }
95
+ });
96
+ });
97
+ Object.keys(updateBrowserTitle).forEach(function (k) {
98
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
99
+ enumerable: true,
100
+ get: function get() {
101
+ return updateBrowserTitle[k];
102
+ }
103
+ });
104
+ });
105
+ Object.keys(extractFileName).forEach(function (k) {
106
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
107
+ enumerable: true,
108
+ get: function get() {
109
+ return extractFileName[k];
110
+ }
111
+ });
112
+ });
113
+ Object.keys(getFileExtension).forEach(function (k) {
114
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
115
+ enumerable: true,
116
+ get: function get() {
117
+ return getFileExtension[k];
118
+ }
119
+ });
120
+ });
121
+ Object.keys(calcTextWidth).forEach(function (k) {
122
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
123
+ enumerable: true,
124
+ get: function get() {
125
+ return calcTextWidth[k];
126
+ }
127
+ });
128
+ });
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  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); }
2
4
  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); }); }; }
3
5
  function _regeneratorValues(e) { if (null != e) { var t = e["function" == typeof Symbol && Symbol.iterator || "@@iterator"], r = 0; if (t) return t.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) return { next: function next() { return e && r >= e.length && (e = void 0), { value: e && e[r++], done: !e }; } }; } throw new TypeError(_typeof(e) + " is not iterable"); }
@@ -32,7 +34,7 @@ function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) {
32
34
  function _OverloadYield(e, d) { this.v = e, this.k = d; }
33
35
  function _asyncIterator(r) { var n, t, o, e = 2; for ("undefined" != typeof Symbol && (t = Symbol.asyncIterator, o = Symbol.iterator); e--;) { if (t && null != (n = r[t])) return n.call(r); if (o && null != (n = r[o])) return new AsyncFromSyncIterator(n.call(r)); t = "@@asyncIterator", o = "@@iterator"; } throw new TypeError("Object is not async iterable"); }
34
36
  function AsyncFromSyncIterator(r) { function AsyncFromSyncIteratorContinuation(r) { if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object.")); var n = r.done; return Promise.resolve(r.value).then(function (r) { return { value: r, done: n }; }); } return AsyncFromSyncIterator = function AsyncFromSyncIterator(r) { this.s = r, this.n = r.next; }, AsyncFromSyncIterator.prototype = { s: null, n: null, next: function next() { return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments)); }, "return": function _return(r) { var n = this.s["return"]; return void 0 === n ? Promise.resolve({ value: r, done: !0 }) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); }, "throw": function _throw(r) { var n = this.s["return"]; return void 0 === n ? Promise.reject(r) : AsyncFromSyncIteratorContinuation(n.apply(this.s, arguments)); } }, new AsyncFromSyncIterator(r); }
35
- import { getConfig } from '@das-fed/upf-utils/config';
37
+ var config = require('@das-fed/upf-utils/config/es5');
36
38
  function Ce(e, t) {
37
39
  return function () {
38
40
  return e.apply(t, arguments);
@@ -2183,7 +2185,7 @@ var Pn = /*#__PURE__*/function () {
2183
2185
  r = "";
2184
2186
  _context0.p = 2;
2185
2187
  o = {
2186
- baseURL: n && getConfig().baseURL || ""
2188
+ baseURL: n && config.getConfig().baseURL || ""
2187
2189
  };
2188
2190
  _context0.n = 3;
2189
2191
  return E.create().head(t, o);
@@ -2208,4 +2210,4 @@ var Pn = /*#__PURE__*/function () {
2208
2210
  return _ref21.apply(this, arguments);
2209
2211
  };
2210
2212
  }();
2211
- export { Pn as extractFilename };
2213
+ exports.extractFilename = Pn;
@@ -1,5 +1,7 @@
1
+ 'use strict';
2
+
1
3
  var n = function n(t) {
2
4
  var e = t.lastIndexOf(".");
3
5
  return e === -1 ? "" : t.slice(e);
4
6
  };
5
- export { n as getFileExtension };
7
+ exports.getFileExtension = n;
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
2
4
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
@@ -98,4 +100,10 @@ function $(n) {
98
100
  e = n.match(s);
99
101
  return e && e.length > 1 ? e[1] : null;
100
102
  }
101
- export { p as addPathParamsToUrl, h as funcUrlDel, f as getFullPath, $ as getOriginFromUrl, i as getUrlParams, g as objectToUrlparams, u as urlParamsToObject };
103
+ exports.addPathParamsToUrl = p;
104
+ exports.funcUrlDel = h;
105
+ exports.getFullPath = f;
106
+ exports.getOriginFromUrl = $;
107
+ exports.getUrlParams = i;
108
+ exports.objectToUrlparams = g;
109
+ exports.urlParamsToObject = u;
@@ -1,40 +1,44 @@
1
+ 'use strict';
2
+
1
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 }; })(); }
2
4
  function _regeneratorDefine2(e, r, n, t) { var i = Object.defineProperty; try { i({}, "", {}); } catch (e) { i = 0; } _regeneratorDefine2 = function _regeneratorDefine(e, r, n, t) { if (r) i ? i(e, r, { value: n, enumerable: !t, configurable: !t, writable: !t }) : e[r] = n;else { var o = function o(r, n) { _regeneratorDefine2(e, r, function (e) { return this._invoke(r, n, e); }); }; o("next", 0), o("throw", 1), o("return", 2); } }, _regeneratorDefine2(e, r, n, t); }
5
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t3 in e) "default" !== _t3 && {}.hasOwnProperty.call(e, _t3) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t3)) && (i.get || i.set) ? o(f, _t3, i) : f[_t3] = e[_t3]); return f; })(e, t); }
3
6
  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); }
4
7
  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); }); }; }
5
8
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
6
- import { getConfig } from '@das-fed/upf-utils/config';
7
- var w = function w(r) {
9
+ var config = require('@das-fed/upf-utils/config/es5');
10
+ var m = function m(r) {
8
11
  return r === null || _typeof(r) > "u" || r === "";
9
12
  },
10
- k = function k(r) {
13
+ w = function w(r) {
11
14
  var t;
12
- return (((t = getConfig()) == null ? undefined : t.systemLangList) || []).includes(r);
15
+ return (((t = config.getConfig()) == null ? undefined : t.systemLangList) || []).includes(r);
13
16
  },
14
17
  b = /*#__PURE__*/function () {
15
18
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(r) {
16
- var f, _f$currentLang, t, _f$baseUrl, a, _f$appName, l, _f$isPullBack, u, _f$isDasUI, y, _f$urlObj, n, _f$fallbackBaseUrl, e, s, $, d, i, _d, _i, _d2, _i2;
19
+ var o, _o$currentLang, t, _o$baseUrl, a, _o$appName, l, _o$isPullBack, u, _o$isDasUI, $, _o$urlObj, n, _o$fallbackBaseUrl, e, i, y, f, s, _f, _s, _f2, _s2;
17
20
  return _regenerator().w(function (_context2) {
18
21
  while (1) switch (_context2.n) {
19
22
  case 0:
20
- f = r || {};
21
- _f$currentLang = f.currentLang, t = _f$currentLang === void 0 ? "zh-CN" : _f$currentLang, _f$baseUrl = f.baseUrl, a = _f$baseUrl === void 0 ? "/" : _f$baseUrl, _f$appName = f.appName, l = _f$appName === void 0 ? "jc" : _f$appName, _f$isPullBack = f.isPullBack, u = _f$isPullBack === void 0 ? false : _f$isPullBack, _f$isDasUI = f.isDasUI, y = _f$isDasUI === void 0 ? false : _f$isDasUI, _f$urlObj = f.urlObj, n = _f$urlObj === void 0 ? {
23
+ o = r || {};
24
+ _o$currentLang = o.currentLang, t = _o$currentLang === void 0 ? "zh-CN" : _o$currentLang, _o$baseUrl = o.baseUrl, a = _o$baseUrl === void 0 ? "/" : _o$baseUrl, _o$appName = o.appName, l = _o$appName === void 0 ? "jc" : _o$appName, _o$isPullBack = o.isPullBack, u = _o$isPullBack === void 0 ? false : _o$isPullBack, _o$isDasUI = o.isDasUI, $ = _o$isDasUI === void 0 ? false : _o$isDasUI, _o$urlObj = o.urlObj, n = _o$urlObj === void 0 ? {
22
25
  frontEndUrl: "",
23
26
  backEndUrl: "",
24
27
  dasUiUrl: ""
25
- } : _f$urlObj, _f$fallbackBaseUrl = f.fallbackBaseUrl, e = _f$fallbackBaseUrl === void 0 ? "" : _f$fallbackBaseUrl;
28
+ } : _o$urlObj, _o$fallbackBaseUrl = o.fallbackBaseUrl, e = _o$fallbackBaseUrl === void 0 ? "" : _o$fallbackBaseUrl;
26
29
  (typeof t != "string" || !t) && (t = "zh-CN"), (typeof l != "string" || !l) && (l = "jc"), typeof a != "string" && (a = "/"), a || (a = "/"), a.endsWith("/") || (a = a + "/"), typeof e != "string" && (e = ""), e && !e.endsWith("/") && (e = e + "/");
27
- s = {
30
+ i = {
28
31
  frontEnd: null,
29
32
  dasUiEnd: null,
30
33
  backMsg: null
31
34
  };
32
- $ = /*#__PURE__*/function () {
33
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(d, i) {
34
- var p,
35
+ y = /*#__PURE__*/function () {
36
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(f, s) {
37
+ var E,
35
38
  g,
39
+ p,
36
40
  _ref3,
37
- c,
41
+ d,
38
42
  _ref4,
39
43
  U,
40
44
  _args = arguments,
@@ -43,24 +47,36 @@ var w = function w(r) {
43
47
  return _regenerator().w(function (_context) {
44
48
  while (1) switch (_context.p = _context.n) {
45
49
  case 0:
46
- p = _args.length > 2 && _args[2] !== undefined ? _args[2] : "zh-CN";
50
+ E = _args.length > 2 && _args[2] !== undefined ? _args[2] : "zh-CN";
47
51
  g = _args.length > 3 && _args[3] !== undefined ? _args[3] : "资源";
52
+ p = window.importShim ? function (d) {
53
+ return window.importShim(d);
54
+ } : function (d) {
55
+ return function (specifier) {
56
+ return new Promise(function (r) {
57
+ return r("".concat(specifier));
58
+ }).then(function (s) {
59
+ return _interopRequireWildcard(require(s));
60
+ });
61
+ }(/* @vite-ignore */
62
+ d);
63
+ };
48
64
  _context.p = 1;
49
65
  _context.n = 2;
50
- return import(/* @vite-ignore */"".concat(d));
66
+ return p("".concat(f));
51
67
  case 2:
52
- c = _context.v;
53
- return _context.a(2, (_ref3 = c == null ? void 0 : c["default"]) !== null && _ref3 !== void 0 ? _ref3 : null);
68
+ d = _context.v;
69
+ return _context.a(2, (_ref3 = d == null ? void 0 : d["default"]) !== null && _ref3 !== void 0 ? _ref3 : null);
54
70
  case 3:
55
71
  _context.p = 3;
56
72
  _t = _context.v;
57
- if (!(i && k(p))) {
73
+ if (!(s && w(E))) {
58
74
  _context.n = 7;
59
75
  break;
60
76
  }
61
77
  _context.p = 4;
62
78
  _context.n = 5;
63
- return import(/* @vite-ignore */"".concat(i));
79
+ return p(/* @vite-ignore */"".concat(s));
64
80
  case 5:
65
81
  U = _context.v;
66
82
  return _context.a(2, (_ref4 = U == null ? void 0 : U["default"]) !== null && _ref4 !== void 0 ? _ref4 : null);
@@ -72,47 +88,47 @@ var w = function w(r) {
72
88
  }
73
89
  }, _callee, null, [[4, 6], [1, 3]]);
74
90
  }));
75
- return function $(_x2, _x3) {
91
+ return function y(_x2, _x3) {
76
92
  return _ref2.apply(this, arguments);
77
93
  };
78
94
  }();
79
- if (y) {
95
+ if ($) {
80
96
  _context2.n = 2;
81
97
  break;
82
98
  }
83
- d = (n == null ? undefined : n.frontEndUrl) || "".concat(a, "web-front-end/i18n/").concat(l, "_").concat(t, ".js");
84
- i = !(n != null && n.frontEndUrl) && e ? "".concat(e, "web-front-end/i18n/").concat(l, "_").concat(t, ".js") : undefined;
99
+ f = (n == null ? undefined : n.frontEndUrl) || "".concat(a, "web-front-end/i18n/").concat(l, "_").concat(t, ".js");
100
+ s = !(n != null && n.frontEndUrl) && e ? "".concat(e, "web-front-end/i18n/").concat(l, "_").concat(t, ".js") : undefined;
85
101
  _context2.n = 1;
86
- return $(d, i, t, "前端业务语言资源");
102
+ return y(f, s, t, "前端业务语言资源");
87
103
  case 1:
88
- s.frontEnd = _context2.v;
89
- s.frontEnd && true;
104
+ i.frontEnd = _context2.v;
105
+ i.frontEnd && true;
90
106
  case 2:
91
- if (!(u && s.frontEnd || n != null && n.backEndUrl)) {
107
+ if (!(u && i.frontEnd || n != null && n.backEndUrl)) {
92
108
  _context2.n = 4;
93
109
  break;
94
110
  }
95
- _d = (n == null ? undefined : n.backEndUrl) || "".concat(a, "web-back-end/i18n/").concat(l, "_").concat(t, ".js");
96
- _i = !(n != null && n.backEndUrl) && e ? "".concat(e, "web-back-end/i18n/").concat(l, "_").concat(t, ".js") : undefined;
111
+ _f = (n == null ? undefined : n.backEndUrl) || "".concat(a, "web-back-end/i18n/").concat(l, "_").concat(t, ".js");
112
+ _s = !(n != null && n.backEndUrl) && e ? "".concat(e, "web-back-end/i18n/").concat(l, "_").concat(t, ".js") : undefined;
97
113
  _context2.n = 3;
98
- return $(_d, _i, t, "后端语言资源");
114
+ return y(_f, _s, t, "后端语言资源");
99
115
  case 3:
100
- s.backMsg = _context2.v;
101
- s.backMsg && true;
116
+ i.backMsg = _context2.v;
117
+ i.backMsg && true;
102
118
  case 4:
103
- if (!y) {
119
+ if (!$) {
104
120
  _context2.n = 6;
105
121
  break;
106
122
  }
107
- _d2 = (n == null ? undefined : n.dasUiUrl) || "".concat(a, "web-front-end/i18n/dasui_").concat(t, ".js");
108
- _i2 = !(n != null && n.dasUiUrl) && e ? "".concat(e, "web-front-end/i18n/dasui_").concat(t, ".js") : undefined;
123
+ _f2 = (n == null ? undefined : n.dasUiUrl) || "".concat(a, "web-front-end/i18n/dasui_").concat(t, ".js");
124
+ _s2 = !(n != null && n.dasUiUrl) && e ? "".concat(e, "web-front-end/i18n/dasui_").concat(t, ".js") : undefined;
109
125
  _context2.n = 5;
110
- return $(_d2, _i2, t, "UI组件库语言资源");
126
+ return y(_f2, _s2, t, "UI组件库语言资源");
111
127
  case 5:
112
- s.dasUiEnd = _context2.v;
113
- s.dasUiEnd && true;
128
+ i.dasUiEnd = _context2.v;
129
+ i.dasUiEnd && true;
114
130
  case 6:
115
- return _context2.a(2, s);
131
+ return _context2.a(2, i);
116
132
  }
117
133
  }, _callee2);
118
134
  }));
@@ -120,27 +136,36 @@ var w = function w(r) {
120
136
  return _ref.apply(this, arguments);
121
137
  };
122
138
  }(),
123
- m = /*#__PURE__*/function () {
139
+ L = /*#__PURE__*/function () {
124
140
  var _ref5 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee3() {
125
141
  var r,
126
- f,
142
+ o,
127
143
  a,
128
144
  _args3 = arguments;
129
145
  return _regenerator().w(function (_context3) {
130
146
  while (1) switch (_context3.n) {
131
147
  case 0:
132
148
  r = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : "front-end";
133
- f = {};
149
+ o = {};
134
150
  _context3.n = 1;
135
- return import(/* @vite-ignore */"/i18n/".concat(r, "/global.js"));
151
+ return function (specifier) {
152
+ return new Promise(function (r) {
153
+ return r(specifier);
154
+ }).then(function (s) {
155
+ return _interopRequireWildcard(require(s));
156
+ });
157
+ }(/* @vite-ignore */"/i18n/".concat(r, "/global.js"));
136
158
  case 1:
137
159
  a = _context3.v;
138
- return _context3.a(2, (f = (a == null ? undefined : a["default"]) || {}, f));
160
+ return _context3.a(2, (o = (a == null ? undefined : a["default"]) || {}, o));
139
161
  }
140
162
  }, _callee3);
141
163
  }));
142
- return function m() {
164
+ return function L() {
143
165
  return _ref5.apply(this, arguments);
144
166
  };
145
167
  }();
146
- export { m as handleGlobalI18n, b as handleI18nData, k as isCurrentLangInSysLang, w as isEmpty };
168
+ exports.handleGlobalI18n = L;
169
+ exports.handleI18nData = b;
170
+ exports.isCurrentLangInSysLang = w;
171
+ exports.isEmpty = m;
@@ -1,39 +1,40 @@
1
- import { getConfig as E } from "@das-fed/upf-utils/config";
2
- const w = (r) => r === null || typeof r > "u" || r === "", k = (r) => {
1
+ import { getConfig as k } from "@das-fed/upf-utils/config";
2
+ const m = (r) => r === null || typeof r > "u" || r === "", w = (r) => {
3
3
  var t;
4
- return (((t = E()) == null ? void 0 : t.systemLangList) || []).includes(r);
4
+ return (((t = k()) == null ? void 0 : t.systemLangList) || []).includes(r);
5
5
  }, b = async (r) => {
6
- const f = r || {};
6
+ const o = r || {};
7
7
  let {
8
8
  currentLang: t = "zh-CN",
9
9
  baseUrl: a = "/",
10
10
  appName: l = "jc",
11
11
  isPullBack: u = !1,
12
- isDasUI: y = !1,
12
+ isDasUI: $ = !1,
13
13
  urlObj: n = { frontEndUrl: "", backEndUrl: "", dasUiUrl: "" },
14
14
  // 新增:当主地址加载失败时,用于针对失败项的本地回退地址
15
15
  fallbackBaseUrl: e = ""
16
- } = f;
16
+ } = o;
17
17
  (typeof t != "string" || !t) && (t = "zh-CN"), (typeof l != "string" || !l) && (l = "jc"), typeof a != "string" && (a = "/"), a || (a = "/"), a.endsWith("/") || (a = a + "/"), typeof e != "string" && (e = ""), e && !e.endsWith("/") && (e = e + "/");
18
- const s = {
18
+ const i = {
19
19
  frontEnd: null,
20
20
  dasUiEnd: null,
21
21
  backMsg: null
22
22
  };
23
- let o = !1;
24
- const $ = async (d, i, p = "zh-CN", g = "资源") => {
23
+ let c = !1;
24
+ const y = async (f, s, E = "zh-CN", g = "资源") => {
25
+ const p = window.importShim ? (d) => window.importShim(d) : (d) => import(
26
+ /* @vite-ignore */
27
+ d
28
+ );
25
29
  try {
26
- const c = await import(
27
- /* @vite-ignore */
28
- `${d}`
29
- );
30
- return (c == null ? void 0 : c.default) ?? null;
30
+ const d = await p(`${f}`);
31
+ return (d == null ? void 0 : d.default) ?? null;
31
32
  } catch {
32
- if (i && k(p))
33
+ if (s && w(E))
33
34
  try {
34
- const U = await import(
35
+ const U = await p(
35
36
  /* @vite-ignore */
36
- `${i}`
37
+ `${s}`
37
38
  );
38
39
  return (U == null ? void 0 : U.default) ?? null;
39
40
  } catch {
@@ -41,32 +42,32 @@ const w = (r) => r === null || typeof r > "u" || r === "", k = (r) => {
41
42
  return null;
42
43
  }
43
44
  };
44
- if (!y) {
45
- const d = (n == null ? void 0 : n.frontEndUrl) || `${a}web-front-end/i18n/${l}_${t}.js`;
46
- let i = !(n != null && n.frontEndUrl) && e ? `${e}web-front-end/i18n/${l}_${t}.js` : void 0;
47
- s.frontEnd = await $(d, i, t, "前端业务语言资源"), s.frontEnd && (o = !0);
45
+ if (!$) {
46
+ const f = (n == null ? void 0 : n.frontEndUrl) || `${a}web-front-end/i18n/${l}_${t}.js`;
47
+ let s = !(n != null && n.frontEndUrl) && e ? `${e}web-front-end/i18n/${l}_${t}.js` : void 0;
48
+ i.frontEnd = await y(f, s, t, "前端业务语言资源"), i.frontEnd && (c = !0);
48
49
  }
49
- if (u && s.frontEnd || n != null && n.backEndUrl) {
50
- const d = (n == null ? void 0 : n.backEndUrl) || `${a}web-back-end/i18n/${l}_${t}.js`;
51
- let i = !(n != null && n.backEndUrl) && e ? `${e}web-back-end/i18n/${l}_${t}.js` : void 0;
52
- s.backMsg = await $(d, i, t, "后端语言资源"), s.backMsg && (o = !0);
50
+ if (u && i.frontEnd || n != null && n.backEndUrl) {
51
+ const f = (n == null ? void 0 : n.backEndUrl) || `${a}web-back-end/i18n/${l}_${t}.js`;
52
+ let s = !(n != null && n.backEndUrl) && e ? `${e}web-back-end/i18n/${l}_${t}.js` : void 0;
53
+ i.backMsg = await y(f, s, t, "后端语言资源"), i.backMsg && (c = !0);
53
54
  }
54
- if (y) {
55
- const d = (n == null ? void 0 : n.dasUiUrl) || `${a}web-front-end/i18n/dasui_${t}.js`;
56
- let i = !(n != null && n.dasUiUrl) && e ? `${e}web-front-end/i18n/dasui_${t}.js` : void 0;
57
- s.dasUiEnd = await $(d, i, t, "UI组件库语言资源"), s.dasUiEnd && (o = !0);
55
+ if ($) {
56
+ const f = (n == null ? void 0 : n.dasUiUrl) || `${a}web-front-end/i18n/dasui_${t}.js`;
57
+ let s = !(n != null && n.dasUiUrl) && e ? `${e}web-front-end/i18n/dasui_${t}.js` : void 0;
58
+ i.dasUiEnd = await y(f, s, t, "UI组件库语言资源"), i.dasUiEnd && (c = !0);
58
59
  }
59
- return s;
60
- }, m = async (r = "front-end") => {
61
- let f = {}, a = await import(
60
+ return i;
61
+ }, L = async (r = "front-end") => {
62
+ let o = {}, a = await import(
62
63
  /* @vite-ignore */
63
64
  `/i18n/${r}/global.js`
64
65
  );
65
- return f = (a == null ? void 0 : a.default) || {}, f;
66
+ return o = (a == null ? void 0 : a.default) || {}, o;
66
67
  };
67
68
  export {
68
- m as handleGlobalI18n,
69
+ L as handleGlobalI18n,
69
70
  b as handleI18nData,
70
- k as isCurrentLangInSysLang,
71
- w as isEmpty
71
+ w as isCurrentLangInSysLang,
72
+ m as isEmpty
72
73
  };
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
4
  function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
3
5
  function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
@@ -50,4 +52,7 @@ var _s = function s(n) {
50
52
  }
51
53
  return null;
52
54
  };
53
- export { _c as filterTreeArray, _s as findNonEmptyChildrenItems, _l as flatTree, _g as treeFind };
55
+ exports.filterTreeArray = _c;
56
+ exports.findNonEmptyChildrenItems = _s;
57
+ exports.flatTree = _l;
58
+ exports.treeFind = _g;
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
4
  var _f = function f(t, r) {
3
5
  if (!t || !r || Object.keys(t).length !== Object.keys(r).length) return false;
@@ -10,4 +12,4 @@ var _f = function f(t, r) {
10
12
  }
11
13
  return true;
12
14
  };
13
- export { _f as objEqual };
15
+ exports.objEqual = _f;
@@ -1,4 +1,6 @@
1
- import { getToken } from '@das-fed/upf-utils/common-info';
1
+ 'use strict';
2
+
3
+ var commonInfo = require('@das-fed/upf-utils/common-info/es5');
2
4
  var o = function o(e) {
3
5
  return !!(!e.startsWith("http") || e.startsWith(location.origin));
4
6
  },
@@ -13,7 +15,10 @@ var o = function o(e) {
13
15
  return o(e) && !e.includes("showWatermark=false") ? t = e.indexOf("?") !== -1 ? e + "&showWatermark=false" : e + "?showWatermark=false" : t = e, t;
14
16
  },
15
17
  r = function r(e) {
16
- var t = getToken();
18
+ var t = commonInfo.getToken();
17
19
  return e.includes("?") ? "".concat(e, "&token=").concat(t) : "".concat(e, "?token=").concat(t);
18
20
  };
19
- export { o as isRelativeOrSameDomain, n as setShowLayout, i as setShowWatermark, r as withToken };
21
+ exports.isRelativeOrSameDomain = o;
22
+ exports.setShowLayout = n;
23
+ exports.setShowWatermark = i;
24
+ exports.withToken = r;
@@ -1,3 +1,5 @@
1
+ 'use strict';
2
+
1
3
  function c(r) {
2
4
  var e = [];
3
5
  return new Promise(function (n, u) {
@@ -10,4 +12,4 @@ function c(r) {
10
12
  });
11
13
  });
12
14
  }
13
- export { c as runPromiseByQueue };
15
+ exports.runPromiseByQueue = c;
@@ -1,6 +1,8 @@
1
+ 'use strict';
2
+
1
3
  var m = function m(e) {
2
4
  var i = "1366px",
3
5
  n = "528px";
4
6
  e != null && e.minWidth && (i = e.minWidth), e != null && e.minHeight && (n = e.minHeight), document.documentElement.style.minWidth = i, document.documentElement.style.minHeight = n, document.documentElement.style.overflow = "auto";
5
7
  };
6
- export { m as setHtmlMinWH };
8
+ exports.setHtmlMinWH = m;