@das-fed/upf-utils 6.4.0-dev.170 → 6.4.0-dev.172

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 (123) hide show
  1. package/api-services/es5.js +4661 -0
  2. package/api-services/i18n/es5.js +58 -0
  3. package/api-services/index.js +593 -611
  4. package/api-services/index.js.gz +0 -0
  5. package/api-services/modules/app-manage/index.js +847 -883
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/index.js +701 -715
  8. package/api-services/modules/authentication/index.js.gz +0 -0
  9. package/api-services/modules/bems/index.js +882 -882
  10. package/api-services/modules/bems/index.js.gz +0 -0
  11. package/api-services/modules/contract/index.js +880 -880
  12. package/api-services/modules/contract/index.js.gz +0 -0
  13. package/api-services/modules/duty-manage/index.js +473 -491
  14. package/api-services/modules/duty-manage/index.js.gz +0 -0
  15. package/api-services/modules/enterpriseright/index.js +490 -508
  16. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  17. package/api-services/modules/es5.js +4619 -0
  18. package/api-services/modules/file/index.js +942 -978
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/gateway-edge/index.js +701 -715
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +651 -669
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.js +1104 -1140
  25. package/api-services/modules/iot/index.js.gz +0 -0
  26. package/api-services/modules/justauth/index.js +492 -510
  27. package/api-services/modules/justauth/index.js.gz +0 -0
  28. package/api-services/modules/knowledge/index.js +698 -712
  29. package/api-services/modules/knowledge/index.js.gz +0 -0
  30. package/api-services/modules/link/index.js +880 -880
  31. package/api-services/modules/link/index.js.gz +0 -0
  32. package/api-services/modules/permission/index.js +490 -508
  33. package/api-services/modules/permission/index.js.gz +0 -0
  34. package/api-services/modules/platformManage/index.js +463 -481
  35. package/api-services/modules/platformManage/index.js.gz +0 -0
  36. package/api-services/modules/portal/index.js +880 -880
  37. package/api-services/modules/portal/index.js.gz +0 -0
  38. package/api-services/modules/space-manage/index.js +487 -505
  39. package/api-services/modules/space-manage/index.js.gz +0 -0
  40. package/api-services/modules/super-admin/index.js +881 -881
  41. package/api-services/modules/super-admin/index.js.gz +0 -0
  42. package/api-services/modules/supplier/index.js +483 -501
  43. package/api-services/modules/supplier/index.js.gz +0 -0
  44. package/api-services/modules/supplychain-manage/index.js +490 -508
  45. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  46. package/api-services/modules/systemConfiguration/index.js +880 -880
  47. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  48. package/api-services/modules/tool/index.js +880 -880
  49. package/api-services/modules/tool/index.js.gz +0 -0
  50. package/api-services/src/create-service/index.js +865 -901
  51. package/api-services/src/create-service/index.js.gz +0 -0
  52. package/atob/es5.js +12 -0
  53. package/common-info/es5.js +219 -0
  54. package/common-info/getIframeUrl/es5.js +18 -0
  55. package/common-info/getInfoFromUrl/es5.js +94 -0
  56. package/common-info/index.js +18 -18
  57. package/common-info/index.js.gz +0 -0
  58. package/common-info/set-personal-info/es5.js +2212 -0
  59. package/common-info/set-personal-info/index.js +172 -189
  60. package/common-info/set-personal-info/index.js.gz +0 -0
  61. package/common-tools/arr-tools/es5.js +14 -0
  62. package/common-tools/calc-text-width/es5.js +10 -0
  63. package/common-tools/date-format/es5.js +20 -0
  64. package/common-tools/es5.js +128 -0
  65. package/common-tools/extract-file-name/es5.js +2213 -0
  66. package/common-tools/extract-file-name/index.js +138 -155
  67. package/common-tools/extract-file-name/index.js.gz +0 -0
  68. package/common-tools/get-file-extension/es5.js +7 -0
  69. package/common-tools/get-url-params/es5.js +109 -0
  70. package/common-tools/handle-data/es5.js +170 -0
  71. package/common-tools/handle-data/index.js +28 -28
  72. package/common-tools/handle-data/index.js.gz +0 -0
  73. package/common-tools/nest-tree-format/es5.js +58 -0
  74. package/common-tools/obj-tools/es5.js +15 -0
  75. package/common-tools/platform-tools/es5.js +24 -0
  76. package/common-tools/queue-promise/es5.js +15 -0
  77. package/common-tools/setHtmlMinWH/es5.js +8 -0
  78. package/common-tools/update-browser-title/es5.js +56 -0
  79. package/common-tools/update-fav-icon/es5.js +76 -0
  80. package/config/es5.js +17 -0
  81. package/create-api-service/check-token/es5.js +2307 -0
  82. package/create-api-service/check-token/index.js +158 -175
  83. package/create-api-service/check-token/index.js.gz +0 -0
  84. package/create-api-service/es5.js +3949 -0
  85. package/create-api-service/i18n/es5.js +38 -0
  86. package/create-api-service/index.js +503 -521
  87. package/create-api-service/index.js.gz +0 -0
  88. package/create-api-service/proxy-sso/es5.js +35 -0
  89. package/create-api-service/sso/es5.js +2823 -0
  90. package/create-api-service/sso/index.js +309 -327
  91. package/create-api-service/sso/index.js.gz +0 -0
  92. package/curring-http/es5.js +2915 -0
  93. package/curring-http/index.js +285 -303
  94. package/curring-http/index.js.gz +0 -0
  95. package/dimple-canvas/es5.js +15 -0
  96. package/directive/auth/es5.js +96 -0
  97. package/directive/clickOutside/es5.js +87 -0
  98. package/directive/es5.js +23 -0
  99. package/directive/hoverInside/es5.js +61 -0
  100. package/directive/utils/es5.js +38 -0
  101. package/dom-check-in/es5.js +13 -0
  102. package/dom-watcher/es5.js +15 -0
  103. package/hooks/use-get-auth/es5.js +201 -0
  104. package/hooks/use-get-auth/index.js +22 -22
  105. package/hooks/use-get-auth/index.js.gz +0 -0
  106. package/load-js/es5.js +15 -0
  107. package/nextTiken/es5.js +70 -0
  108. package/oss/es5.js +13 -0
  109. package/package.json +17 -4
  110. package/pinyin-first-character/es5.js +9313 -0
  111. package/pinyin-first-character/index.js +24 -24
  112. package/pinyin-first-character/index.js.gz +0 -0
  113. package/process-engine-info/es5.js +20 -0
  114. package/pure-image-src/es5.js +30 -0
  115. package/size-watcher/es5.js +35 -0
  116. package/style/es5.js +143 -0
  117. package/token-tools/es5.js +26 -0
  118. package/use-low-code/es5.js +117 -0
  119. package/use-low-code/index.js +2 -2
  120. package/use-low-code/index.js.gz +0 -0
  121. package/vue/es5.js +9 -0
  122. package/webSocket-service/es5.js +122 -0
  123. package/with-install/es5.js +8 -0
@@ -0,0 +1,76 @@
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) { 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 _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
6
+ 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."); }
7
+ 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; } }
8
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
9
+ 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; } }
10
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
11
+ 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); }
12
+ 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); }); }; }
13
+ var commonInfo = require('@das-fed/upf-utils/common-info/es5');
14
+ var pureImageSrc = require('@das-fed/upf-utils/pure-image-src/es5');
15
+ var apiServices = require('@das-fed/upf-utils/api-services/es5');
16
+ var i = function i(o) {
17
+ var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "./logo.svg";
18
+ var t = o || r;
19
+ var e = document.querySelector('link[rel*="icon"]');
20
+ e ? e == null || e.setAttribute("href", t) : (e = document.createElement("link"), e.rel = "icon", e.type = "image/svg+xml", e.href = t, document.getElementsByTagName("head")[0].appendChild(e));
21
+ },
22
+ f = /*#__PURE__*/function () {
23
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
24
+ var o,
25
+ r,
26
+ t,
27
+ _yield$r$run,
28
+ _yield$r$run2,
29
+ e,
30
+ n,
31
+ _ref2,
32
+ _ref2$browserLogoImgH,
33
+ s,
34
+ _ref2$browserLogoImg,
35
+ a,
36
+ _args = arguments;
37
+ return _regenerator().w(function (_context) {
38
+ while (1) switch (_context.n) {
39
+ case 0:
40
+ o = _args.length > 0 && _args[0] !== undefined ? _args[0] : "./logo.svg";
41
+ r = apiServices.systemConfiguration.get("/visitor/appearance/with-default", function (e) {
42
+ return e["public"] = true, e;
43
+ });
44
+ t = commonInfo.getFavIcon();
45
+ if (t) {
46
+ _context.n = 3;
47
+ break;
48
+ }
49
+ _context.n = 1;
50
+ return r().run();
51
+ case 1:
52
+ _yield$r$run = _context.v;
53
+ _yield$r$run2 = _slicedToArray(_yield$r$run, 2);
54
+ e = _yield$r$run2[0];
55
+ n = _yield$r$run2[1];
56
+ if (!e) {
57
+ _context.n = 2;
58
+ break;
59
+ }
60
+ return _context.a(2);
61
+ case 2:
62
+ _ref2 = n || {}, _ref2$browserLogoImgH = _ref2.browserLogoImgHost, s = _ref2$browserLogoImgH === void 0 ? "" : _ref2$browserLogoImgH, _ref2$browserLogoImg = _ref2.browserLogoImg, a = _ref2$browserLogoImg === void 0 ? "" : _ref2$browserLogoImg;
63
+ t = a ? s + pureImageSrc.pureImageSrc(a) : "";
64
+ case 3:
65
+ i(t, o);
66
+ case 4:
67
+ return _context.a(2);
68
+ }
69
+ }, _callee);
70
+ }));
71
+ return function f() {
72
+ return _ref.apply(this, arguments);
73
+ };
74
+ }();
75
+ exports.setDasHtmlIcon = f;
76
+ exports.updateFavIcon = i;
package/config/es5.js ADDED
@@ -0,0 +1,17 @@
1
+ 'use strict';
2
+
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); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ var n = function n() {
10
+ var s = _objectSpread({}, (window == null ? undefined : window.config) || {});
11
+ s.rootContainer || (s.rootContainer = "#app"), s.baseURL || (s.baseURL = location.origin), s.ossBaseURL || (s.ossBaseURL = "/oss"), s.ossBaseURL.startsWith("/") && (s.ossBaseURL = "".concat(s.baseURL, "/oss")), s.ssoBaseURL || (s.ssoBaseURL = s.baseURL);
12
+ var i = s.microAppName,
13
+ o = s.publicPath,
14
+ e = s.mainAppName;
15
+ return i && true && !o && (o = "/".concat(i, "/").replace(/\/\//g, "/")), o || (o = "/"), s.publicPath = o, s.autoOssBucket || (s.autoOssBucket = e || i), s;
16
+ };
17
+ exports.getConfig = n;