@das-fed/upf-utils 6.4.0-dev.173 → 6.4.0-dev.175
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.
- package/api-services/es5.js +825 -917
- package/api-services/i18n/es5.js +1 -6
- package/api-services/index.js +572 -597
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +39 -41
- package/api-services/modules/authentication/es5.js +39 -41
- package/api-services/modules/bems/es5.js +1022 -1012
- package/api-services/modules/bems/index.js +818 -800
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +39 -41
- package/api-services/modules/duty-manage/es5.js +1018 -1008
- package/api-services/modules/duty-manage/index.js +817 -799
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +39 -41
- package/api-services/modules/es5.js +1205 -1231
- package/api-services/modules/file/es5.js +75 -78
- package/api-services/modules/gateway-edge/es5.js +39 -41
- package/api-services/modules/index.js +946 -928
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.js +39 -46
- package/api-services/modules/justauth/es5.js +1007 -998
- package/api-services/modules/justauth/index.js +805 -787
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +39 -41
- package/api-services/modules/link/es5.js +994 -1008
- package/api-services/modules/link/index.js +786 -804
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +39 -41
- package/api-services/modules/platformManage/es5.js +994 -988
- package/api-services/modules/platformManage/index.js +795 -777
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.js +39 -41
- package/api-services/modules/space-manage/es5.js +994 -1008
- package/api-services/modules/space-manage/index.js +786 -804
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +1019 -1012
- package/api-services/modules/super-admin/index.js +817 -799
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.js +1014 -1030
- package/api-services/modules/supplier/index.js +804 -822
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +994 -1008
- package/api-services/modules/supplychain-manage/index.js +786 -804
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.js +1006 -996
- package/api-services/modules/systemConfiguration/index.js +804 -786
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +995 -1006
- package/api-services/modules/tool/index.js +788 -802
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.js +39 -41
- package/atob/es5.js +1 -4
- package/common-info/es5.js +13 -31
- package/common-info/getIframeUrl/es5.js +3 -5
- package/common-info/getInfoFromUrl/es5.js +2 -5
- package/common-info/set-personal-info/es5.js +7 -9
- package/common-tools/arr-tools/es5.js +1 -4
- package/common-tools/calc-text-width/es5.js +1 -3
- package/common-tools/date-format/es5.js +1 -3
- package/common-tools/es5.js +14 -128
- package/common-tools/extract-file-name/es5.js +3 -5
- package/common-tools/get-file-extension/es5.js +1 -3
- package/common-tools/get-url-params/es5.js +1 -9
- package/common-tools/handle-data/es5.js +6 -30
- package/common-tools/nest-tree-format/es5.js +1 -6
- package/common-tools/obj-tools/es5.js +1 -3
- package/common-tools/platform-tools/es5.js +3 -8
- package/common-tools/queue-promise/es5.js +1 -3
- package/common-tools/setHtmlMinWH/es5.js +1 -3
- package/common-tools/update-browser-title/es5.js +3 -5
- package/common-tools/update-fav-icon/es5.js +7 -10
- package/config/es5.js +1 -3
- package/create-api-service/check-token/es5.js +4 -6
- package/create-api-service/es5.js +1004 -994
- package/create-api-service/i18n/es5.js +1 -6
- package/create-api-service/index.js +803 -785
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.js +3 -5
- package/create-api-service/sso/es5.js +42 -50
- package/curring-http/es5.js +7 -9
- package/dimple-canvas/es5.js +1 -15
- package/directive/auth/es5.js +13 -15
- package/directive/clickOutside/es5.js +4 -6
- package/directive/es5.js +3 -23
- package/directive/hoverInside/es5.js +4 -6
- package/directive/utils/es5.js +1 -3
- package/dom-check-in/es5.js +1 -3
- package/dom-watcher/es5.js +1 -3
- package/hooks/popup-manager/use-zindex/es5.js +1 -3
- package/hooks/use-get-auth/es5.js +13 -15
- package/load-js/es5.js +6 -8
- package/nextTiken/es5.js +8 -14
- package/oss/es5.js +5 -8
- package/package.json +4 -4
- package/pinyin-first-character/es5.js +1 -3
- package/process-engine-info/es5.js +1 -6
- package/pure-image-src/es5.js +1 -3
- package/size-watcher/es5.js +5 -8
- package/style/es5.js +6 -15
- package/token-tools/es5.js +1 -6
- package/use-low-code/es5.js +9 -11
- package/vue/es5.js +1 -9
- package/vue/hooks/use-model-value/es5.js +4 -6
- package/webSocket-service/es5.js +7 -9
- package/with-install/es5.js +1 -3
|
Binary file
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var _Gt$sso, _Gt$i18n, _Gt$noRedireLogin;
|
|
4
2
|
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); }
|
|
5
3
|
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); }); }; }
|
|
@@ -35,16 +33,16 @@ function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) {
|
|
|
35
33
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
36
34
|
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"); }
|
|
37
35
|
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); }
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
36
|
+
import { setI18nRule, currentLang, t } from '@das-fed/upf-web/packages/i18n/index';
|
|
37
|
+
import { curringHttp } from '@das-fed/upf-utils/curring-http';
|
|
38
|
+
import { getToken, getQuery, login, getTokenParams, real_uri } from '@das-fed/upf-utils/create-api-service/sso';
|
|
39
|
+
import It from 'dayjs';
|
|
40
|
+
import Gn from 'dayjs/plugin/utc';
|
|
41
|
+
import Jn from 'dayjs/plugin/timezone';
|
|
42
|
+
import { getProjectInfo, getInstanceInfo } from '@das-fed/upf-utils/common-info';
|
|
43
|
+
import { getAccessToken } from '@das-fed/upf-utils/token-tools';
|
|
44
|
+
import { getConfig } from '@das-fed/upf-utils/config';
|
|
45
|
+
import { getValidAccessToken } from '@das-fed/upf-utils/create-api-service/check-token';
|
|
48
46
|
function Mr(t, e) {
|
|
49
47
|
return function () {
|
|
50
48
|
return t.apply(e, arguments);
|
|
@@ -3750,10 +3748,10 @@ var Nl = {
|
|
|
3750
3748
|
_appCode: "framework"
|
|
3751
3749
|
}
|
|
3752
3750
|
};
|
|
3753
|
-
|
|
3751
|
+
setI18nRule(Nl);
|
|
3754
3752
|
It.extend(Gn);
|
|
3755
3753
|
It.extend(Jn);
|
|
3756
|
-
var Gt =
|
|
3754
|
+
var Gt = getConfig(),
|
|
3757
3755
|
In = (_Gt$sso = Gt.sso) !== null && _Gt$sso !== void 0 ? _Gt$sso : true,
|
|
3758
3756
|
Fl = (_Gt$i18n = Gt.i18n) !== null && _Gt$i18n !== void 0 ? _Gt$i18n : true,
|
|
3759
3757
|
Bn = (_Gt$noRedireLogin = Gt.noRedireLogin) !== null && _Gt$noRedireLogin !== void 0 ? _Gt$noRedireLogin : false;
|
|
@@ -3782,29 +3780,29 @@ var Dl = 1e3,
|
|
|
3782
3780
|
};
|
|
3783
3781
|
}(),
|
|
3784
3782
|
Il = /*#__PURE__*/function () {
|
|
3785
|
-
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t, e) {
|
|
3783
|
+
var _ref22 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee0(t$1, e) {
|
|
3786
3784
|
var d, p, v, y, m, n, r, o, a, i, _ref23, _ref25, h, _ref24, b, u, l, c, _t10;
|
|
3787
3785
|
return _regenerator().w(function (_context1) {
|
|
3788
3786
|
while (1) switch (_context1.n) {
|
|
3789
3787
|
case 0:
|
|
3790
|
-
n = ((d = t.response) == null ? undefined : d.status) || 500, r = (p = t.response) == null ? undefined : p.message, o = {};
|
|
3788
|
+
n = ((d = t$1.response) == null ? undefined : d.status) || 500, r = (p = t$1.response) == null ? undefined : p.message, o = {};
|
|
3791
3789
|
a = {
|
|
3792
|
-
400:
|
|
3793
|
-
404:
|
|
3794
|
-
500:
|
|
3790
|
+
400: t("参数校验错误"),
|
|
3791
|
+
404: t("接口地址未找到"),
|
|
3792
|
+
500: t("服务器内部错误")
|
|
3795
3793
|
};
|
|
3796
|
-
i = ((v = t == null ? undefined : t.response) == null ? undefined : v.data) || {};
|
|
3797
|
-
if (!(!(
|
|
3794
|
+
i = ((v = t$1 == null ? undefined : t$1.response) == null ? undefined : v.data) || {};
|
|
3795
|
+
if (!(!(getQuery("code") || "") && !Bn && (n === 401 || (i == null ? undefined : i.code) === 401))) {
|
|
3798
3796
|
_context1.n = 1;
|
|
3799
3797
|
break;
|
|
3800
3798
|
}
|
|
3801
|
-
In ?
|
|
3802
|
-
redirect_uri:
|
|
3803
|
-
})) : Un(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t == null ? undefined : t.message);
|
|
3799
|
+
In ? login(_objectSpread(_objectSpread({}, getTokenParams), {}, {
|
|
3800
|
+
redirect_uri: real_uri
|
|
3801
|
+
})) : Un(), o = i, r = a[n || (i == null ? undefined : i.code)] || (i == null ? undefined : i.msg) || (t$1 == null ? undefined : t$1.message);
|
|
3804
3802
|
_context1.n = 6;
|
|
3805
3803
|
break;
|
|
3806
3804
|
case 1:
|
|
3807
|
-
if (!t.response) {
|
|
3805
|
+
if (!t$1.response) {
|
|
3808
3806
|
_context1.n = 5;
|
|
3809
3807
|
break;
|
|
3810
3808
|
}
|
|
@@ -3822,7 +3820,7 @@ var Dl = 1e3,
|
|
|
3822
3820
|
} catch (_unused20) {
|
|
3823
3821
|
h({
|
|
3824
3822
|
code: 400,
|
|
3825
|
-
msg:
|
|
3823
|
+
msg: t("blob解析错误")
|
|
3826
3824
|
});
|
|
3827
3825
|
}
|
|
3828
3826
|
};
|
|
@@ -3838,17 +3836,17 @@ var Dl = 1e3,
|
|
|
3838
3836
|
h = (_ref23 = e == null ? undefined : e.i18n) !== null && _ref23 !== void 0 ? _ref23 : true;
|
|
3839
3837
|
if (Fl && h) {
|
|
3840
3838
|
b = (_ref24 = i == null ? undefined : i.status) !== null && _ref24 !== void 0 ? _ref24 : "";
|
|
3841
|
-
r = !(i != null && i.data) || !i.data.length ?
|
|
3839
|
+
r = !(i != null && i.data) || !i.data.length ? t(b) : t.apply(void 0, [b].concat(_toConsumableArray(i.data)));
|
|
3842
3840
|
} else r = (_ref25 = i == null ? undefined : i.msg) !== null && _ref25 !== void 0 ? _ref25 : "";
|
|
3843
3841
|
o = i;
|
|
3844
3842
|
case 4:
|
|
3845
|
-
r || (r = a[t.response.status] || t.message);
|
|
3843
|
+
r || (r = a[t$1.response.status] || t$1.message);
|
|
3846
3844
|
_context1.n = 6;
|
|
3847
3845
|
break;
|
|
3848
3846
|
case 5:
|
|
3849
|
-
t.request ? t.code === "ERR_CANCELED" ? t.abortReason && (r = t.abortReason) : r =
|
|
3847
|
+
t$1.request ? t$1.code === "ERR_CANCELED" ? t$1.abortReason && (r = t$1.abortReason) : r = t("网络异常,请检查您的网络情况") : t$1.code === "ERR_CANCELED" ? t$1.abortReason && (r = t$1.abortReason) : r = t("请求配置异常");
|
|
3850
3848
|
case 6:
|
|
3851
|
-
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t));
|
|
3849
|
+
e != null && e.customErrorMessage && (r = e == null ? undefined : e.customErrorMessage(r, t$1));
|
|
3852
3850
|
u = Date.now(), l = r === Br, c = u - Ur < Dl;
|
|
3853
3851
|
return _context1.a(2, (!(e != null && e.ignoreErrorMessage) && r && (!l || !c) && ((m = (y = window.DasMessage) == null ? undefined : y.error) == null || m.call(y, {
|
|
3854
3852
|
message: r,
|
|
@@ -3856,7 +3854,7 @@ var Dl = 1e3,
|
|
|
3856
3854
|
}), Br = r, Ur = u), _objectSpread(_objectSpread({}, o), {}, {
|
|
3857
3855
|
code: n,
|
|
3858
3856
|
msg: r,
|
|
3859
|
-
error: t
|
|
3857
|
+
error: t$1
|
|
3860
3858
|
})));
|
|
3861
3859
|
}
|
|
3862
3860
|
}, _callee0);
|
|
@@ -3867,14 +3865,14 @@ var Dl = 1e3,
|
|
|
3867
3865
|
}(),
|
|
3868
3866
|
Gl = function Gl(t, e) {
|
|
3869
3867
|
var n = R.create();
|
|
3870
|
-
return curringHttp
|
|
3868
|
+
return curringHttp(n, /*#__PURE__*/function () {
|
|
3871
3869
|
var _ref26 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee1(r) {
|
|
3872
3870
|
var _r$csrf;
|
|
3873
|
-
var o, l, c, _c, s,
|
|
3871
|
+
var o, l, c, _c, s, _getProjectInfo$id, _l3, _c2, _getInstanceInfo, _l4, _t11;
|
|
3874
3872
|
return _regenerator().w(function (_context10) {
|
|
3875
3873
|
while (1) switch (_context10.n) {
|
|
3876
3874
|
case 0:
|
|
3877
|
-
o =
|
|
3875
|
+
o = getConfig();
|
|
3878
3876
|
if (!(r.headers || (r.headers = {}), !(r != null && r["public"]))) {
|
|
3879
3877
|
_context10.n = 7;
|
|
3880
3878
|
break;
|
|
@@ -3894,21 +3892,21 @@ var Dl = 1e3,
|
|
|
3894
3892
|
break;
|
|
3895
3893
|
}
|
|
3896
3894
|
_context10.n = 1;
|
|
3897
|
-
return
|
|
3895
|
+
return getToken(r);
|
|
3898
3896
|
case 1:
|
|
3899
3897
|
l = _context10.v;
|
|
3900
3898
|
case 2:
|
|
3901
3899
|
_context10.n = 6;
|
|
3902
3900
|
break;
|
|
3903
3901
|
case 3:
|
|
3904
|
-
l || (l =
|
|
3902
|
+
l || (l = getAccessToken());
|
|
3905
3903
|
_c = JSON.parse(window.localStorage.getItem("tokenInfo") || "{}");
|
|
3906
3904
|
if (!l) {
|
|
3907
3905
|
_context10.n = 5;
|
|
3908
3906
|
break;
|
|
3909
3907
|
}
|
|
3910
3908
|
_context10.n = 4;
|
|
3911
|
-
return
|
|
3909
|
+
return getValidAccessToken(_c, function (p) {
|
|
3912
3910
|
window.localStorage.setItem("tokenInfo", JSON.stringify(p));
|
|
3913
3911
|
});
|
|
3914
3912
|
case 4:
|
|
@@ -3931,13 +3929,13 @@ var Dl = 1e3,
|
|
|
3931
3929
|
if (s.project === undefined) {
|
|
3932
3930
|
_l3 = 0;
|
|
3933
3931
|
_c2 = new URL(location.href).searchParams;
|
|
3934
|
-
_l3 = _c2.get("project") || _c2.get("projectId") || 0, _l3 || (_l3 = (
|
|
3932
|
+
_l3 = _c2.get("project") || _c2.get("projectId") || 0, _l3 || (_l3 = (_getProjectInfo$id = getProjectInfo().id) !== null && _getProjectInfo$id !== void 0 ? _getProjectInfo$id : 0), (_l3 || _l3 === 0) && (s.project = _l3);
|
|
3935
3933
|
}
|
|
3936
3934
|
if (new URL(location.href).pathname.startsWith("/iot/iot") || new URL(location.href).searchParams.get("app") === "iot") {
|
|
3937
|
-
|
|
3935
|
+
_getInstanceInfo = getInstanceInfo(), _l4 = _getInstanceInfo.instanceInfo;
|
|
3938
3936
|
_l4 != null && _l4.instanceId && (s.instance = _l4.instanceId);
|
|
3939
3937
|
}
|
|
3940
|
-
return _context10.a(2, (r.params = s, r.headers.Timezone = It.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] =
|
|
3938
|
+
return _context10.a(2, (r.params = s, r.headers.Timezone = It.tz.guess(), r.headers["X-Origin"] = location.origin, r.headers["Accept-Language"] = currentLang.value, Ir.set("uiCulture", currentLang.value), (e == null ? undefined : e(r)) || r));
|
|
3941
3939
|
}
|
|
3942
3940
|
}, _callee1);
|
|
3943
3941
|
}));
|
|
@@ -3946,4 +3944,4 @@ var Dl = 1e3,
|
|
|
3946
3944
|
};
|
|
3947
3945
|
}());
|
|
3948
3946
|
};
|
|
3949
|
-
|
|
3947
|
+
export { Gl as createService };
|
package/atob/es5.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var n = function n(t) {
|
|
4
2
|
var e = encodeURIComponent(t);
|
|
5
3
|
return e = btoa(e), e;
|
|
@@ -8,5 +6,4 @@ var n = function n(t) {
|
|
|
8
6
|
var e = atob(t);
|
|
9
7
|
return e = decodeURIComponent(e), e;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
|
-
exports.encryption = n;
|
|
9
|
+
export { o as decrypt, n as encryption };
|
package/common-info/es5.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var
|
|
6
|
-
var getInfoFromUrl = require('@das-fed/upf-utils/common-info/getInfoFromUrl/es5');
|
|
7
|
-
var N = tokenTools.getAccessToken,
|
|
1
|
+
import { getConfig } from '@das-fed/upf-utils/config';
|
|
2
|
+
import { getUrlParams } from '@das-fed/upf-utils/common-tools';
|
|
3
|
+
import { getAccessToken } from '@das-fed/upf-utils/token-tools';
|
|
4
|
+
import { getTokenFromQuery, getProjectInfoFromQuery } from '@das-fed/upf-utils/common-info/getInfoFromUrl';
|
|
5
|
+
var N = getAccessToken,
|
|
8
6
|
A = function A() {
|
|
9
7
|
var _e$id, _e$userName, _e$flag, _ref;
|
|
10
8
|
var r;
|
|
@@ -19,7 +17,7 @@ var N = tokenTools.getAccessToken,
|
|
|
19
17
|
J = function J() {
|
|
20
18
|
var _e$id2, _e$name, _e$userName2, _e$phone, _e$email, _e$headPicture;
|
|
21
19
|
var e = JSON.parse(sessionStorage.getItem("userInfo") || "{}");
|
|
22
|
-
var t =
|
|
20
|
+
var t = getConfig();
|
|
23
21
|
return JSON.stringify(e) === "{}" && t.personalInfo && (e = t.personalInfo), {
|
|
24
22
|
id: (_e$id2 = e.id) !== null && _e$id2 !== void 0 ? _e$id2 : "",
|
|
25
23
|
name: (_e$name = e.name) !== null && _e$name !== void 0 ? _e$name : "",
|
|
@@ -59,7 +57,7 @@ var N = tokenTools.getAccessToken,
|
|
|
59
57
|
C = function C() {
|
|
60
58
|
var _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref0, _ref1, _ref10;
|
|
61
59
|
var e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}");
|
|
62
|
-
var t =
|
|
60
|
+
var t = getConfig();
|
|
63
61
|
return JSON.stringify(e) === "{}" && t.projectInfo && (e = t.projectInfo), {
|
|
64
62
|
id: (_ref2 = e == null ? undefined : e.id) !== null && _ref2 !== void 0 ? _ref2 : 0,
|
|
65
63
|
code: (_ref3 = e == null ? undefined : e.code) !== null && _ref3 !== void 0 ? _ref3 : 0,
|
|
@@ -127,10 +125,10 @@ var N = tokenTools.getAccessToken,
|
|
|
127
125
|
var g;
|
|
128
126
|
var r = "permission-btn",
|
|
129
127
|
a = m(),
|
|
130
|
-
o =
|
|
128
|
+
o = getUrlParams(location.href, "app") || "",
|
|
131
129
|
n = t || o || a.currentSubAppCode;
|
|
132
130
|
if (!n) return;
|
|
133
|
-
var s =
|
|
131
|
+
var s = getUrlParams(location.href, "menu") || "",
|
|
134
132
|
l = e || s || a.currentSubApp.currentMenuCode,
|
|
135
133
|
c = JSON.parse(sessionStorage.getItem(r) || "{}");
|
|
136
134
|
if (!c || JSON.stringify(c) === "{}") return;
|
|
@@ -184,7 +182,7 @@ var N = tokenTools.getAccessToken,
|
|
|
184
182
|
};
|
|
185
183
|
},
|
|
186
184
|
z = function z() {
|
|
187
|
-
var e =
|
|
185
|
+
var e = getConfig(),
|
|
188
186
|
t = sessionStorage.getItem("minioAddress");
|
|
189
187
|
return t || (e.baseURL ? e.baseURL : location.origin);
|
|
190
188
|
},
|
|
@@ -197,23 +195,7 @@ var N = tokenTools.getAccessToken,
|
|
|
197
195
|
F = function F() {
|
|
198
196
|
return localStorage.getItem("fav-icon") || "./logo.svg";
|
|
199
197
|
};
|
|
200
|
-
N() ||
|
|
198
|
+
N() || getTokenFromQuery();
|
|
201
199
|
var i;
|
|
202
|
-
(i = C()) != null && i.id ||
|
|
203
|
-
|
|
204
|
-
exports.getHomeInfo = k;
|
|
205
|
-
exports.getInstanceInfo = x;
|
|
206
|
-
exports.getLanguages = M;
|
|
207
|
-
exports.getMenus = U;
|
|
208
|
-
exports.getMinioAddress = z;
|
|
209
|
-
exports.getPageAuth = j;
|
|
210
|
-
exports.getPageAuthBtn = D;
|
|
211
|
-
exports.getPersonalConfig = v;
|
|
212
|
-
exports.getPersonalInfo = J;
|
|
213
|
-
exports.getProjectInfo = C;
|
|
214
|
-
exports.getProjectMessage = f;
|
|
215
|
-
exports.getSubApps = m;
|
|
216
|
-
exports.getTabInfo = E;
|
|
217
|
-
exports.getTenantInfo = O;
|
|
218
|
-
exports.getToken = N;
|
|
219
|
-
exports.getUserInfo = A;
|
|
200
|
+
(i = C()) != null && i.id || getProjectInfoFromQuery();
|
|
201
|
+
export { F as getFavIcon, k as getHomeInfo, x as getInstanceInfo, M as getLanguages, U as getMenus, z as getMinioAddress, j as getPageAuth, D as getPageAuthBtn, v as getPersonalConfig, J as getPersonalInfo, C as getProjectInfo, f as getProjectMessage, m as getSubApps, E as getTabInfo, O as getTenantInfo, N as getToken, A as getUserInfo };
|
|
@@ -1,18 +1,16 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
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); }
|
|
4
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; }
|
|
5
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; }
|
|
6
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; }
|
|
7
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
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); }
|
|
9
|
-
|
|
7
|
+
import { getFullPath } from '@das-fed/upf-utils/common-tools';
|
|
10
8
|
var l = function l(r, t) {
|
|
11
9
|
if (!r) return;
|
|
12
10
|
var e = {};
|
|
13
11
|
var i = "enterpriseadmin/iocvisual";
|
|
14
12
|
return (r === "preview" || r === "preview3d") && (e = {
|
|
15
13
|
showLayout: false
|
|
16
|
-
}),
|
|
14
|
+
}), getFullPath("/" + i + "/" + r, _objectSpread(_objectSpread({}, e), t));
|
|
17
15
|
};
|
|
18
|
-
|
|
16
|
+
export { l as getIframeUrl };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/*! js-cookie v3.0.5 | MIT */
|
|
4
1
|
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
2
|
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
3
|
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
4
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
8
5
|
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
6
|
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); }
|
|
7
|
+
/*! js-cookie v3.0.5 | MIT */
|
|
10
8
|
function a(e) {
|
|
11
9
|
for (var o = 1; o < arguments.length; o++) {
|
|
12
10
|
var t = arguments[o];
|
|
@@ -90,5 +88,4 @@ var v = function v() {
|
|
|
90
88
|
parentId: s
|
|
91
89
|
})));
|
|
92
90
|
};
|
|
93
|
-
|
|
94
|
-
exports.getTokenFromQuery = v;
|
|
91
|
+
export { I as getProjectInfoFromQuery, v as getTokenFromQuery };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
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
2
|
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
3
|
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"); }
|
|
@@ -34,9 +32,9 @@ function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) {
|
|
|
34
32
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
35
33
|
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"); }
|
|
36
34
|
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); }
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
35
|
+
import { currentLang } from '@das-fed/upf-web/packages/i18n/index';
|
|
36
|
+
import { getProjectInfo } from '@das-fed/upf-utils/common-info';
|
|
37
|
+
import { getConfig } from '@das-fed/upf-utils/config';
|
|
40
38
|
function Ce(e, t) {
|
|
41
39
|
return function () {
|
|
42
40
|
return e.apply(t, arguments);
|
|
@@ -2181,15 +2179,15 @@ var Ln = /*#__PURE__*/function () {
|
|
|
2181
2179
|
_context0.p = 1;
|
|
2182
2180
|
_context0.n = 2;
|
|
2183
2181
|
return E.create().get(t.personalInfo, {
|
|
2184
|
-
baseURL:
|
|
2182
|
+
baseURL: getConfig().baseURL,
|
|
2185
2183
|
params: {
|
|
2186
|
-
project: (n =
|
|
2184
|
+
project: (n = getProjectInfo()) == null ? void 0 : n.id,
|
|
2187
2185
|
timestamp: (/* @__PURE__ */new Date()).getTime()
|
|
2188
2186
|
},
|
|
2189
2187
|
headers: {
|
|
2190
2188
|
Authorization: "Bearer ".concat(e),
|
|
2191
2189
|
"X-Origin": location.origin,
|
|
2192
|
-
"Accept-Language":
|
|
2190
|
+
"Accept-Language": currentLang.value
|
|
2193
2191
|
}
|
|
2194
2192
|
});
|
|
2195
2193
|
case 2:
|
|
@@ -2209,4 +2207,4 @@ var Ln = /*#__PURE__*/function () {
|
|
|
2209
2207
|
return _ref21.apply(this, arguments);
|
|
2210
2208
|
};
|
|
2211
2209
|
}();
|
|
2212
|
-
|
|
2210
|
+
export { Ln as setPersonalInfo };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var o = function o(t, r) {
|
|
4
2
|
var e = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
|
|
5
3
|
return t.length !== r.length ? false : e ? t.sort().toString() === r.sort().toString() : t.toString() === r.toString();
|
|
@@ -10,5 +8,4 @@ var o = function o(t, r) {
|
|
|
10
8
|
return !e.has(n[r]) && e.set(n[r], 1);
|
|
11
9
|
});
|
|
12
10
|
};
|
|
13
|
-
|
|
14
|
-
exports.arrUnique = s;
|
|
11
|
+
export { o as arrEqual, s as arrUnique };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var n = function n(t, i) {
|
|
4
2
|
if (!t) return 0;
|
|
5
3
|
var e = document.createElement("div");
|
|
@@ -7,4 +5,4 @@ var n = function n(t, i) {
|
|
|
7
5
|
var d = e.offsetWidth;
|
|
8
6
|
return document.body.removeChild(e), d;
|
|
9
7
|
};
|
|
10
|
-
|
|
8
|
+
export { n as calcTextWidth };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var a = function a(s) {
|
|
4
2
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "yyyy-MM-dd HH:mm:ss";
|
|
5
3
|
var e = s ? new Date(s) : /* @__PURE__ */new Date();
|
|
@@ -17,4 +15,4 @@ var a = function a(s) {
|
|
|
17
15
|
for (var n in r) new RegExp("(" + n + ")").test(t) && (t = t.replace(RegExp.$1, RegExp.$1.length === 1 ? r[n] : ("00" + r[n]).substr(("" + r[n]).length)));
|
|
18
16
|
return t;
|
|
19
17
|
};
|
|
20
|
-
|
|
18
|
+
export { a as dateFormat };
|
package/common-tools/es5.js
CHANGED
|
@@ -1,128 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
+
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,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
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
2
|
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
3
|
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"); }
|
|
@@ -34,7 +32,7 @@ function _asyncGeneratorDelegate(t) { var e = {}, n = !1; function pump(e, r) {
|
|
|
34
32
|
function _OverloadYield(e, d) { this.v = e, this.k = d; }
|
|
35
33
|
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"); }
|
|
36
34
|
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); }
|
|
37
|
-
|
|
35
|
+
import { getConfig } from '@das-fed/upf-utils/config';
|
|
38
36
|
function Ce(e, t) {
|
|
39
37
|
return function () {
|
|
40
38
|
return e.apply(t, arguments);
|
|
@@ -2185,7 +2183,7 @@ var Pn = /*#__PURE__*/function () {
|
|
|
2185
2183
|
r = "";
|
|
2186
2184
|
_context0.p = 2;
|
|
2187
2185
|
o = {
|
|
2188
|
-
baseURL: n &&
|
|
2186
|
+
baseURL: n && getConfig().baseURL || ""
|
|
2189
2187
|
};
|
|
2190
2188
|
_context0.n = 3;
|
|
2191
2189
|
return E.create().head(t, o);
|
|
@@ -2210,4 +2208,4 @@ var Pn = /*#__PURE__*/function () {
|
|
|
2210
2208
|
return _ref21.apply(this, arguments);
|
|
2211
2209
|
};
|
|
2212
2210
|
}();
|
|
2213
|
-
|
|
2211
|
+
export { Pn as extractFilename };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
4
2
|
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
3
|
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; } }
|
|
@@ -100,10 +98,4 @@ function $(n) {
|
|
|
100
98
|
e = n.match(s);
|
|
101
99
|
return e && e.length > 1 ? e[1] : null;
|
|
102
100
|
}
|
|
103
|
-
|
|
104
|
-
exports.funcUrlDel = h;
|
|
105
|
-
exports.getFullPath = f;
|
|
106
|
-
exports.getOriginFromUrl = $;
|
|
107
|
-
exports.getUrlParams = i;
|
|
108
|
-
exports.objectToUrlparams = g;
|
|
109
|
-
exports.urlParamsToObject = u;
|
|
101
|
+
export { p as addPathParamsToUrl, h as funcUrlDel, f as getFullPath, $ as getOriginFromUrl, i as getUrlParams, g as objectToUrlparams, u as urlParamsToObject };
|