@das-fed/upf-utils 6.4.0-dev.169 → 6.4.0-dev.171

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 (125) hide show
  1. package/api-services/es5.js +4622 -0
  2. package/api-services/i18n/es5.js +53 -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 +487 -505
  6. package/api-services/modules/app-manage/index.js.gz +0 -0
  7. package/api-services/modules/authentication/index.js +487 -505
  8. package/api-services/modules/authentication/index.js.gz +0 -0
  9. package/api-services/modules/bems/index.js +479 -497
  10. package/api-services/modules/bems/index.js.gz +0 -0
  11. package/api-services/modules/contract/index.js +847 -883
  12. package/api-services/modules/contract/index.js.gz +0 -0
  13. package/api-services/modules/duty-manage/index.js +822 -858
  14. package/api-services/modules/duty-manage/index.js.gz +0 -0
  15. package/api-services/modules/enterpriseright/index.js +847 -883
  16. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  17. package/api-services/modules/es5.js +4569 -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 +487 -505
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +1022 -1058
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.js +831 -849
  25. package/api-services/modules/iot/index.js.gz +0 -0
  26. package/api-services/modules/justauth/index.js +478 -496
  27. package/api-services/modules/justauth/index.js.gz +0 -0
  28. package/api-services/modules/knowledge/index.js +880 -880
  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 +880 -880
  33. package/api-services/modules/permission/index.js.gz +0 -0
  34. package/api-services/modules/platformManage/index.js +873 -877
  35. package/api-services/modules/platformManage/index.js.gz +0 -0
  36. package/api-services/modules/portal/index.js +487 -505
  37. package/api-services/modules/portal/index.js.gz +0 -0
  38. package/api-services/modules/space-manage/index.js +847 -883
  39. package/api-services/modules/space-manage/index.js.gz +0 -0
  40. package/api-services/modules/super-admin/index.js +479 -497
  41. package/api-services/modules/super-admin/index.js.gz +0 -0
  42. package/api-services/modules/supplier/index.js +882 -882
  43. package/api-services/modules/supplier/index.js.gz +0 -0
  44. package/api-services/modules/supplychain-manage/index.js +847 -883
  45. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  46. package/api-services/modules/systemConfiguration/index.js +490 -508
  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 +9 -0
  53. package/common-info/es5.js +201 -0
  54. package/common-info/getIframeUrl/es5.js +16 -0
  55. package/common-info/getInfoFromUrl/es5.js +91 -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 +2210 -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 +11 -0
  62. package/common-tools/calc-text-width/es5.js +8 -0
  63. package/common-tools/date-format/es5.js +18 -0
  64. package/common-tools/es5.js +14 -0
  65. package/common-tools/extract-file-name/es5.js +2211 -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 +5 -0
  69. package/common-tools/get-url-params/es5.js +101 -0
  70. package/common-tools/handle-data/es5.js +146 -0
  71. package/common-tools/handle-data/index.d.ts +1 -2
  72. package/common-tools/handle-data/index.js +41 -73
  73. package/common-tools/handle-data/index.js.gz +0 -0
  74. package/common-tools/nest-tree-format/es5.js +53 -0
  75. package/common-tools/obj-tools/es5.js +13 -0
  76. package/common-tools/platform-tools/es5.js +19 -0
  77. package/common-tools/queue-promise/es5.js +13 -0
  78. package/common-tools/setHtmlMinWH/es5.js +6 -0
  79. package/common-tools/update-browser-title/es5.js +54 -0
  80. package/common-tools/update-fav-icon/es5.js +73 -0
  81. package/config/es5.js +15 -0
  82. package/create-api-service/check-token/es5.js +2305 -0
  83. package/create-api-service/check-token/index.js +158 -175
  84. package/create-api-service/check-token/index.js.gz +0 -0
  85. package/create-api-service/es5.js +3947 -0
  86. package/create-api-service/i18n/es5.js +33 -0
  87. package/create-api-service/index.js +865 -901
  88. package/create-api-service/index.js.gz +0 -0
  89. package/create-api-service/proxy-sso/es5.js +33 -0
  90. package/create-api-service/sso/es5.js +2815 -0
  91. package/create-api-service/sso/index.js +309 -327
  92. package/create-api-service/sso/index.js.gz +0 -0
  93. package/curring-http/es5.js +2913 -0
  94. package/curring-http/index.js +285 -303
  95. package/curring-http/index.js.gz +0 -0
  96. package/dimple-canvas/es5.js +1 -0
  97. package/directive/auth/es5.js +94 -0
  98. package/directive/clickOutside/es5.js +85 -0
  99. package/directive/es5.js +3 -0
  100. package/directive/hoverInside/es5.js +59 -0
  101. package/directive/utils/es5.js +36 -0
  102. package/dom-check-in/es5.js +11 -0
  103. package/dom-watcher/es5.js +13 -0
  104. package/esm-map.json +1 -2
  105. package/hooks/use-get-auth/es5.js +199 -0
  106. package/hooks/use-get-auth/index.js +22 -22
  107. package/hooks/use-get-auth/index.js.gz +0 -0
  108. package/load-js/es5.js +13 -0
  109. package/nextTiken/es5.js +64 -0
  110. package/oss/es5.js +10 -0
  111. package/package.json +7 -4
  112. package/pinyin-first-character/es5.js +9311 -0
  113. package/pinyin-first-character/index.js +24 -24
  114. package/pinyin-first-character/index.js.gz +0 -0
  115. package/process-engine-info/es5.js +15 -0
  116. package/pure-image-src/es5.js +28 -0
  117. package/size-watcher/es5.js +32 -0
  118. package/style/es5.js +134 -0
  119. package/token-tools/es5.js +21 -0
  120. package/use-low-code/es5.js +115 -0
  121. package/use-low-code/index.js +2 -2
  122. package/use-low-code/index.js.gz +0 -0
  123. package/vue/es5.js +1 -0
  124. package/webSocket-service/es5.js +120 -0
  125. package/with-install/es5.js +6 -0
@@ -0,0 +1,73 @@
1
+ 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
+ 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); }
3
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
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."); }
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; } }
6
+ 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; }
7
+ 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; } }
8
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
9
+ 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); }
10
+ 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); }); }; }
11
+ import { getFavIcon } from '@das-fed/upf-utils/common-info';
12
+ import { pureImageSrc } from '@das-fed/upf-utils/pure-image-src';
13
+ import { systemConfiguration } from '@das-fed/upf-utils/api-services';
14
+ var i = function i(o) {
15
+ var r = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "./logo.svg";
16
+ var t = o || r;
17
+ var e = document.querySelector('link[rel*="icon"]');
18
+ 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));
19
+ },
20
+ f = /*#__PURE__*/function () {
21
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee() {
22
+ var o,
23
+ r,
24
+ t,
25
+ _yield$r$run,
26
+ _yield$r$run2,
27
+ e,
28
+ n,
29
+ _ref2,
30
+ _ref2$browserLogoImgH,
31
+ s,
32
+ _ref2$browserLogoImg,
33
+ a,
34
+ _args = arguments;
35
+ return _regenerator().w(function (_context) {
36
+ while (1) switch (_context.n) {
37
+ case 0:
38
+ o = _args.length > 0 && _args[0] !== undefined ? _args[0] : "./logo.svg";
39
+ r = systemConfiguration.get("/visitor/appearance/with-default", function (e) {
40
+ return e["public"] = true, e;
41
+ });
42
+ t = getFavIcon();
43
+ if (t) {
44
+ _context.n = 3;
45
+ break;
46
+ }
47
+ _context.n = 1;
48
+ return r().run();
49
+ case 1:
50
+ _yield$r$run = _context.v;
51
+ _yield$r$run2 = _slicedToArray(_yield$r$run, 2);
52
+ e = _yield$r$run2[0];
53
+ n = _yield$r$run2[1];
54
+ if (!e) {
55
+ _context.n = 2;
56
+ break;
57
+ }
58
+ return _context.a(2);
59
+ case 2:
60
+ _ref2 = n || {}, _ref2$browserLogoImgH = _ref2.browserLogoImgHost, s = _ref2$browserLogoImgH === void 0 ? "" : _ref2$browserLogoImgH, _ref2$browserLogoImg = _ref2.browserLogoImg, a = _ref2$browserLogoImg === void 0 ? "" : _ref2$browserLogoImg;
61
+ t = a ? s + pureImageSrc(a) : "";
62
+ case 3:
63
+ i(t, o);
64
+ case 4:
65
+ return _context.a(2);
66
+ }
67
+ }, _callee);
68
+ }));
69
+ return function f() {
70
+ return _ref.apply(this, arguments);
71
+ };
72
+ }();
73
+ export { f as setDasHtmlIcon, i as updateFavIcon };
package/config/es5.js ADDED
@@ -0,0 +1,15 @@
1
+ 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
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ 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); }
7
+ var n = function n() {
8
+ var s = _objectSpread({}, (window == null ? undefined : window.config) || {});
9
+ 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);
10
+ var i = s.microAppName,
11
+ o = s.publicPath,
12
+ e = s.mainAppName;
13
+ return i && true && !o && (o = "/".concat(i, "/").replace(/\/\//g, "/")), o || (o = "/"), s.publicPath = o, s.autoOssBucket || (s.autoOssBucket = e || i), s;
14
+ };
15
+ export { n as getConfig };