@das-fed/upf-utils 6.4.0-dev.185 → 6.4.0-dev.186
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 +1164 -1155
- package/api-services/i18n/index.js.gz +0 -0
- package/api-services/index.js +921 -907
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +980 -968
- package/api-services/modules/app-manage/index.js +804 -786
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +978 -969
- package/api-services/modules/authentication/index.js +802 -788
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +984 -994
- package/api-services/modules/bems/index.js +799 -813
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +980 -968
- package/api-services/modules/contract/index.js +804 -786
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +982 -991
- package/api-services/modules/duty-manage/index.js +801 -815
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.js +969 -978
- package/api-services/modules/enterpriseright/index.js +788 -802
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +1187 -1175
- package/api-services/modules/file/es5.js +1091 -1103
- package/api-services/modules/file/index.js +882 -900
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +946 -928
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.js +980 -968
- package/api-services/modules/knowledge/index.js +804 -786
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.js +980 -968
- package/api-services/modules/link/index.js +804 -786
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.js +978 -969
- package/api-services/modules/permission/index.js +802 -788
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +972 -960
- package/api-services/modules/platformManage/index.js +795 -777
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.js +996 -984
- 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/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.js +980 -968
- package/api-services/modules/supplychain-manage/index.js +804 -786
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.js +980 -968
- package/api-services/modules/tool/index.js +804 -786
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/index.js.gz +0 -0
- package/common-info/es5.js +147 -112
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +5 -1
- package/common-info/index.js +82 -56
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +15 -0
- package/common-tools/extract-file-name/index.js.gz +0 -0
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/handle-data/index.js.gz +0 -0
- package/create-api-service/check-token/index.js.gz +0 -0
- package/create-api-service/es5.js +978 -966
- package/create-api-service/index.js +803 -785
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js.gz +0 -0
- package/directive/auth/es5.js +47 -61
- package/directive/auth/index.js +41 -48
- package/directive/auth/index.js.gz +0 -0
- package/esm-map.json +3 -1
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/nextTiken/index.js.gz +0 -0
- package/package.json +4 -4
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js.gz +0 -0
- package/use-low-code/index.js.gz +0 -0
- package/webSocket-service/index.js.gz +0 -0
|
Binary file
|
|
Binary file
|
package/curring-http/index.js.gz
CHANGED
|
Binary file
|
package/directive/auth/es5.js
CHANGED
|
@@ -3,25 +3,24 @@
|
|
|
3
3
|
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; } } }; }
|
|
4
4
|
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; } }
|
|
5
5
|
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; }
|
|
6
|
-
var commonTools = require('@das-fed/upf-utils/common-tools/es5');
|
|
7
6
|
var commonInfo = require('@das-fed/upf-utils/common-info/es5');
|
|
8
7
|
var utils = require('@das-fed/upf-utils/directive/utils/es5');
|
|
9
|
-
var
|
|
10
|
-
if (!e || !
|
|
11
|
-
if (typeof
|
|
12
|
-
return s
|
|
8
|
+
var m = function m(e, s) {
|
|
9
|
+
if (!e || !s) return false;
|
|
10
|
+
if (typeof s == "string") return !!e.find(function (r) {
|
|
11
|
+
return r.endsWith(s);
|
|
13
12
|
});
|
|
14
13
|
{
|
|
15
|
-
var
|
|
16
|
-
var _iterator = _createForOfIteratorHelper(
|
|
14
|
+
var t = false;
|
|
15
|
+
var _iterator = _createForOfIteratorHelper(s),
|
|
17
16
|
_step;
|
|
18
17
|
try {
|
|
19
18
|
var _loop = function _loop() {
|
|
20
|
-
var
|
|
21
|
-
if (e.find(function (
|
|
22
|
-
return
|
|
19
|
+
var r = _step.value;
|
|
20
|
+
if (e.find(function (i) {
|
|
21
|
+
return i.endsWith(r);
|
|
23
22
|
})) {
|
|
24
|
-
|
|
23
|
+
t = true;
|
|
25
24
|
return 1; // break
|
|
26
25
|
}
|
|
27
26
|
};
|
|
@@ -33,64 +32,51 @@ var A = function A(e, t) {
|
|
|
33
32
|
} finally {
|
|
34
33
|
_iterator.f();
|
|
35
34
|
}
|
|
36
|
-
return
|
|
35
|
+
return t;
|
|
37
36
|
}
|
|
38
37
|
},
|
|
39
|
-
|
|
40
|
-
var _ref, _ref2
|
|
41
|
-
var
|
|
42
|
-
var t = (
|
|
43
|
-
r =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
});
|
|
53
|
-
if (d && d.length) {
|
|
54
|
-
var _ref6;
|
|
55
|
-
var f = d.find(function (u) {
|
|
56
|
-
return u != null && u.applicationPath ? r == null ? undefined : r.includes("/" + u.applicationPath + u.routeUrl) : r == null ? undefined : r.includes(u.routeUrl);
|
|
57
|
-
});
|
|
58
|
-
f && (l = (_ref6 = f == null ? undefined : f.code) !== null && _ref6 !== void 0 ? _ref6 : "");
|
|
59
|
-
}
|
|
38
|
+
n = function n(e) {
|
|
39
|
+
var _ref, _ref2;
|
|
40
|
+
var s = (_ref = e == null ? undefined : e.code) !== null && _ref !== void 0 ? _ref : "";
|
|
41
|
+
var t = (_ref2 = e == null ? undefined : e.menuCode) !== null && _ref2 !== void 0 ? _ref2 : "",
|
|
42
|
+
r = false;
|
|
43
|
+
if (s) {
|
|
44
|
+
var _commonInfo$getMenuIt;
|
|
45
|
+
var f = [];
|
|
46
|
+
if (!t) f = (_commonInfo$getMenuIt = commonInfo.getMenuItemInfo().authCodes) !== null && _commonInfo$getMenuIt !== void 0 ? _commonInfo$getMenuIt : [];else {
|
|
47
|
+
var i = commonInfo.getAuthobj()[t];
|
|
48
|
+
i && (r = i.some(function (l) {
|
|
49
|
+
return l.code === s;
|
|
50
|
+
}));
|
|
60
51
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
var _commonInfo$getPageAu;
|
|
65
|
-
var _c = (_commonInfo$getPageAu = commonInfo.getPageAuth(l, s)) !== null && _commonInfo$getPageAu !== void 0 ? _commonInfo$getPageAu : [];
|
|
66
|
-
a = A(_c, t);
|
|
67
|
-
} else a = !!commonInfo.getPageAuth(l, s);
|
|
68
|
-
return a;
|
|
52
|
+
r = m(f, s);
|
|
53
|
+
} else t && (r = !!commonInfo.getAuthobj()[t]);
|
|
54
|
+
return r;
|
|
69
55
|
},
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
c = function c(e, s) {
|
|
57
|
+
s === "hide" ? e.classList.add("is-hide") : (e.setAttribute("disabled", ""), e.classList.add("is-disabled"));
|
|
72
58
|
},
|
|
73
|
-
|
|
74
|
-
|
|
59
|
+
h = function h(e, s) {
|
|
60
|
+
s === "hide" ? e.classList.remove("is-hide") : (e.removeAttribute("disabled"), e.classList.remove("is-disabled"));
|
|
75
61
|
},
|
|
76
|
-
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
typeof
|
|
80
|
-
code:
|
|
62
|
+
A = function A(e, s) {
|
|
63
|
+
var _ref3;
|
|
64
|
+
var t = (e ? s.value : s) || {};
|
|
65
|
+
typeof t == "string" && (t = {
|
|
66
|
+
code: t
|
|
81
67
|
});
|
|
82
|
-
var
|
|
83
|
-
|
|
84
|
-
if (e) if (!
|
|
85
|
-
|
|
68
|
+
var r = (_ref3 = t == null ? undefined : t.type) !== null && _ref3 !== void 0 ? _ref3 : "hide",
|
|
69
|
+
f = n(t);
|
|
70
|
+
if (e) if (!s.oldValue) f || utils.getEl(e, t).then(function (i) {
|
|
71
|
+
c(i, r);
|
|
86
72
|
});else {
|
|
87
|
-
var
|
|
88
|
-
|
|
89
|
-
if (
|
|
90
|
-
utils.getEl(e,
|
|
91
|
-
|
|
73
|
+
var i = n(s.oldValue),
|
|
74
|
+
l = f;
|
|
75
|
+
if (i === l) return;
|
|
76
|
+
utils.getEl(e, t).then(function (a) {
|
|
77
|
+
l ? h(a, r) : c(a, r);
|
|
92
78
|
});
|
|
93
79
|
}
|
|
94
|
-
return
|
|
80
|
+
return f;
|
|
95
81
|
};
|
|
96
|
-
exports.vAuth =
|
|
82
|
+
exports.vAuth = A;
|
package/directive/auth/index.js
CHANGED
|
@@ -1,62 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
if (
|
|
6
|
-
|
|
7
|
-
return !!e.find((s) => s.code === t);
|
|
1
|
+
import { getMenuItemInfo as o, getAuthobj as d } from "@das-fed/upf-utils/common-info";
|
|
2
|
+
import { getEl as u } from "@das-fed/upf-utils/directive/utils";
|
|
3
|
+
const m = (e, s) => {
|
|
4
|
+
if (!e || !s) return !1;
|
|
5
|
+
if (typeof s == "string")
|
|
6
|
+
return !!e.find((r) => r.endsWith(s));
|
|
8
7
|
{
|
|
9
|
-
let
|
|
10
|
-
for (let
|
|
11
|
-
if (e.find((
|
|
12
|
-
|
|
8
|
+
let t = !1;
|
|
9
|
+
for (let r of s)
|
|
10
|
+
if (e.find((i) => i.endsWith(r))) {
|
|
11
|
+
t = !0;
|
|
13
12
|
break;
|
|
14
13
|
}
|
|
15
|
-
return
|
|
14
|
+
return t;
|
|
16
15
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
f && (l = (f == null ? void 0 : f.code) ?? "");
|
|
28
|
-
}
|
|
16
|
+
}, n = (e) => {
|
|
17
|
+
const s = (e == null ? void 0 : e.code) ?? "";
|
|
18
|
+
let t = (e == null ? void 0 : e.menuCode) ?? "", r = !1;
|
|
19
|
+
if (s) {
|
|
20
|
+
let f = [];
|
|
21
|
+
if (!t)
|
|
22
|
+
f = o().authCodes ?? [];
|
|
23
|
+
else {
|
|
24
|
+
const i = d()[t];
|
|
25
|
+
i && (r = i.some((l) => l.code === s));
|
|
29
26
|
}
|
|
30
|
-
|
|
31
|
-
let a = !1;
|
|
32
|
-
if (t) {
|
|
33
|
-
const c = o(l, s) ?? [];
|
|
34
|
-
a = A(c, t);
|
|
27
|
+
r = m(f, s);
|
|
35
28
|
} else
|
|
36
|
-
|
|
37
|
-
return
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
let
|
|
44
|
-
typeof
|
|
45
|
-
const
|
|
29
|
+
t && (r = !!d()[t]);
|
|
30
|
+
return r;
|
|
31
|
+
}, c = (e, s) => {
|
|
32
|
+
s === "hide" ? e.classList.add("is-hide") : (e.setAttribute("disabled", ""), e.classList.add("is-disabled"));
|
|
33
|
+
}, h = (e, s) => {
|
|
34
|
+
s === "hide" ? e.classList.remove("is-hide") : (e.removeAttribute("disabled"), e.classList.remove("is-disabled"));
|
|
35
|
+
}, A = (e, s) => {
|
|
36
|
+
let t = (e ? s.value : s) || {};
|
|
37
|
+
typeof t == "string" && (t = { code: t });
|
|
38
|
+
const r = (t == null ? void 0 : t.type) ?? "hide", f = n(t);
|
|
46
39
|
if (e)
|
|
47
|
-
if (!
|
|
48
|
-
|
|
49
|
-
|
|
40
|
+
if (!s.oldValue)
|
|
41
|
+
f || u(e, t).then((i) => {
|
|
42
|
+
c(i, r);
|
|
50
43
|
});
|
|
51
44
|
else {
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
|
|
55
|
-
|
|
45
|
+
const i = n(s.oldValue), l = f;
|
|
46
|
+
if (i === l) return;
|
|
47
|
+
u(e, t).then((a) => {
|
|
48
|
+
l ? h(a, r) : c(a, r);
|
|
56
49
|
});
|
|
57
50
|
}
|
|
58
|
-
return
|
|
51
|
+
return f;
|
|
59
52
|
};
|
|
60
53
|
export {
|
|
61
|
-
|
|
54
|
+
A as vAuth
|
|
62
55
|
};
|
|
Binary file
|
package/esm-map.json
CHANGED
|
@@ -145,5 +145,7 @@
|
|
|
145
145
|
"handleI18nData": "/common-tools/handle-data/index",
|
|
146
146
|
"getToken": "/create-api-service/sso/index",
|
|
147
147
|
"getValidAccessToken": "/create-api-service/check-token/index",
|
|
148
|
-
"isCurrentLangInSysLang": "/common-tools/handle-data/index"
|
|
148
|
+
"isCurrentLangInSysLang": "/common-tools/handle-data/index",
|
|
149
|
+
"getMenuItemInfo": "/common-info/index",
|
|
150
|
+
"getAuthobj": "/common-info/index"
|
|
149
151
|
}
|
|
Binary file
|
package/nextTiken/index.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@das-fed/upf-utils",
|
|
3
|
-
"version": "6.4.0-dev.
|
|
3
|
+
"version": "6.4.0-dev.186",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"license": "ISC",
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@antv/x6": "^2.18.1",
|
|
12
|
-
"@das-fed/upf-utils": "6.4.0-dev.
|
|
12
|
+
"@das-fed/upf-utils": "6.4.0-dev.186",
|
|
13
13
|
"@vue/shared": "^3.4.21",
|
|
14
14
|
"@vueuse/core": "^9.6.0",
|
|
15
15
|
"axios": "^1.6.7",
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@babel/preset-env": "7.26.0",
|
|
25
|
-
"@das-fed/upf-cli": "6.4.0-dev.
|
|
26
|
-
"@das-fed/upf-web": "6.4.0-dev.
|
|
25
|
+
"@das-fed/upf-cli": "6.4.0-dev.186",
|
|
26
|
+
"@das-fed/upf-web": "6.4.0-dev.186",
|
|
27
27
|
"@rollup/plugin-babel": "6.0.4",
|
|
28
28
|
"@types/js-cookie": "^3.0.6",
|
|
29
29
|
"@types/lodash-es": "^4.17.12",
|
|
Binary file
|
package/style/index.js.gz
CHANGED
|
Binary file
|
package/use-low-code/index.js.gz
CHANGED
|
Binary file
|
|
Binary file
|