@das-fed/upf-utils 6.4.0-dev.174 → 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 +1205 -1232
- package/api-services/i18n/es5.js +1 -6
- package/api-services/index.js +946 -928
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.js +994 -1008
- package/api-services/modules/app-manage/index.js +786 -804
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.js +994 -1008
- package/api-services/modules/authentication/index.js +786 -804
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.js +1021 -1014
- package/api-services/modules/bems/index.js +816 -802
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.js +994 -1008
- package/api-services/modules/contract/index.js +786 -804
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.js +39 -41
- package/api-services/modules/enterpriseright/es5.js +994 -1008
- package/api-services/modules/enterpriseright/index.js +786 -804
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.js +75 -113
- package/api-services/modules/file/es5.js +75 -78
- package/api-services/modules/gateway-edge/es5.js +39 -41
- package/api-services/modules/iot/es5.js +983 -1002
- package/api-services/modules/iot/index.js +780 -798
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.js +39 -42
- package/api-services/modules/knowledge/es5.js +994 -1008
- package/api-services/modules/knowledge/index.js +786 -804
- package/api-services/modules/knowledge/index.js.gz +0 -0
- 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 +1006 -996
- package/api-services/modules/permission/index.js +804 -786
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.js +39 -45
- package/api-services/modules/portal/es5.js +994 -1008
- package/api-services/modules/portal/index.js +786 -804
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.js +39 -41
- 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 +39 -43
- package/api-services/modules/supplychain-manage/es5.js +39 -41
- package/api-services/modules/systemConfiguration/es5.js +39 -41
- 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 +39 -41
- package/create-api-service/i18n/es5.js +1 -6
- 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
package/nextTiken/es5.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var commonInfo = require('@das-fed/upf-utils/common-info/es5');
|
|
1
|
+
import { getToken, getProjectInfo, getPersonalInfo, getTenantInfo } from '@das-fed/upf-utils/common-info';
|
|
4
2
|
var k = function k() {
|
|
5
3
|
return new Promise(function (n) {
|
|
6
4
|
var _e = function e() {
|
|
7
|
-
var t =
|
|
5
|
+
var t = getToken();
|
|
8
6
|
if (t) return n(t);
|
|
9
7
|
setTimeout(function () {
|
|
10
8
|
return _e();
|
|
@@ -16,7 +14,7 @@ var k = function k() {
|
|
|
16
14
|
m = function m() {
|
|
17
15
|
return new Promise(function (n) {
|
|
18
16
|
var _e2 = function e() {
|
|
19
|
-
var t =
|
|
17
|
+
var t = getProjectInfo().id ? getProjectInfo().id : "";
|
|
20
18
|
if (t) return n(t);
|
|
21
19
|
setTimeout(function () {
|
|
22
20
|
return _e2();
|
|
@@ -28,8 +26,8 @@ var k = function k() {
|
|
|
28
26
|
T = function T() {
|
|
29
27
|
return new Promise(function (n) {
|
|
30
28
|
var _e3 = function e() {
|
|
31
|
-
var t =
|
|
32
|
-
o =
|
|
29
|
+
var t = getToken(),
|
|
30
|
+
o = getProjectInfo().id ? getProjectInfo().id : "";
|
|
33
31
|
if (t && o) return n(true);
|
|
34
32
|
setTimeout(function () {
|
|
35
33
|
return _e3();
|
|
@@ -41,7 +39,7 @@ var k = function k() {
|
|
|
41
39
|
f = function f() {
|
|
42
40
|
return new Promise(function (n) {
|
|
43
41
|
var _e4 = function e() {
|
|
44
|
-
var t =
|
|
42
|
+
var t = getPersonalInfo();
|
|
45
43
|
if (t != null && t.id) return n(t);
|
|
46
44
|
setTimeout(function () {
|
|
47
45
|
return _e4();
|
|
@@ -54,7 +52,7 @@ var k = function k() {
|
|
|
54
52
|
return new Promise(function (n) {
|
|
55
53
|
var _e5 = function e() {
|
|
56
54
|
var o;
|
|
57
|
-
var t =
|
|
55
|
+
var t = getTenantInfo();
|
|
58
56
|
if ((o = t == null ? undefined : t.tenant) != null && o.id) return n(t);
|
|
59
57
|
setTimeout(function () {
|
|
60
58
|
return _e5();
|
|
@@ -63,8 +61,4 @@ var k = function k() {
|
|
|
63
61
|
_e5();
|
|
64
62
|
});
|
|
65
63
|
};
|
|
66
|
-
|
|
67
|
-
exports.tenantInfoNextTick = d;
|
|
68
|
-
exports.tokenNextTick = T;
|
|
69
|
-
exports.tokenNextTick_1 = k;
|
|
70
|
-
exports.userInfoNextTick = f;
|
|
64
|
+
export { m as projectNextTick, d as tenantInfoNextTick, T as tokenNextTick, k as tokenNextTick_1, f as userInfoNextTick };
|
package/oss/es5.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var config = require('@das-fed/upf-utils/config/es5');
|
|
4
|
-
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
1
|
+
import { getConfig } from '@das-fed/upf-utils/config';
|
|
5
2
|
var n = function n(r) {
|
|
6
3
|
var t = r;
|
|
7
4
|
if (!t) return t;
|
|
8
|
-
t.startsWith("/") || (t = "/".concat(t)), new URL(t,
|
|
9
|
-
var
|
|
10
|
-
e =
|
|
5
|
+
t.startsWith("/") || (t = "/".concat(t)), new URL(t, import.meta.url);
|
|
6
|
+
var _getConfig = getConfig(),
|
|
7
|
+
e = _getConfig.baseURL;
|
|
11
8
|
return "".concat(e, "/oss/resource/front-end/auto-upload/pc").concat(t);
|
|
12
9
|
};
|
|
13
|
-
|
|
10
|
+
export { n as oss };
|
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.175",
|
|
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.175",
|
|
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.175",
|
|
26
|
+
"@das-fed/upf-web": "6.4.0-dev.175",
|
|
27
27
|
"@rollup/plugin-babel": "6.0.4",
|
|
28
28
|
"@types/js-cookie": "^3.0.6",
|
|
29
29
|
"@types/lodash-es": "^4.17.12",
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
4
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
5
3
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
@@ -9310,4 +9308,4 @@ var vn = function vn(n) {
|
|
|
9310
9308
|
separator: ""
|
|
9311
9309
|
});
|
|
9312
9310
|
};
|
|
9313
|
-
|
|
9311
|
+
export { vn as getPinyinFirstCharacter };
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var s = function s(e) {
|
|
4
2
|
sessionStorage.setItem("hotentToken", e.accessToken || ""), sessionStorage.setItem("currentUser", JSON.stringify({
|
|
5
3
|
token: e.accessToken || ""
|
|
@@ -14,7 +12,4 @@ var s = function s(e) {
|
|
|
14
12
|
n = function n() {
|
|
15
13
|
sessionStorage.removeItem("project");
|
|
16
14
|
};
|
|
17
|
-
|
|
18
|
-
exports.removeProcessEngineToken = o;
|
|
19
|
-
exports.setProcessEngineProject = t;
|
|
20
|
-
exports.setProcessEngineToken = s;
|
|
15
|
+
export { n as removeProcessEngineProject, o as removeProcessEngineToken, t as setProcessEngineProject, s as setProcessEngineToken };
|
package/pure-image-src/es5.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var e = "oss",
|
|
4
2
|
c = function c(n) {
|
|
5
3
|
return n.indexOf("/".concat(e, "/")) === 0 ? n : null;
|
|
@@ -27,4 +25,4 @@ var e = "oss",
|
|
|
27
25
|
s = function s(n) {
|
|
28
26
|
return n ? i(n) : "";
|
|
29
27
|
};
|
|
30
|
-
|
|
28
|
+
export { s as pureImageSrc };
|
package/size-watcher/es5.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var vue = require('vue');
|
|
1
|
+
import { ref, onMounted } from 'vue';
|
|
4
2
|
var i = function i(e, t) {
|
|
5
3
|
var n = t || document.documentElement,
|
|
6
4
|
o = new ResizeObserver(function (c) {
|
|
@@ -10,8 +8,8 @@ var i = function i(e, t) {
|
|
|
10
8
|
return t !== null && o.observe(n), o;
|
|
11
9
|
},
|
|
12
10
|
h = function h() {
|
|
13
|
-
var e =
|
|
14
|
-
t =
|
|
11
|
+
var e = ref(null),
|
|
12
|
+
t = ref({
|
|
15
13
|
bottom: 0,
|
|
16
14
|
height: 0,
|
|
17
15
|
left: 0,
|
|
@@ -22,7 +20,7 @@ var i = function i(e, t) {
|
|
|
22
20
|
y: 0,
|
|
23
21
|
toJSON: function toJSON() {}
|
|
24
22
|
});
|
|
25
|
-
return
|
|
23
|
+
return onMounted(function () {
|
|
26
24
|
i(function (n) {
|
|
27
25
|
t.value = n;
|
|
28
26
|
}, e.value), e.value;
|
|
@@ -31,5 +29,4 @@ var i = function i(e, t) {
|
|
|
31
29
|
rect: t
|
|
32
30
|
};
|
|
33
31
|
};
|
|
34
|
-
|
|
35
|
-
exports.useSizeWatcher = h;
|
|
32
|
+
export { i as SizeWatcher, h as useSizeWatcher };
|
package/style/es5.js
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @vue/shared v3.5.17
|
|
5
|
-
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
6
|
-
* @license MIT
|
|
7
|
-
**/
|
|
8
1
|
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; } } }; }
|
|
9
2
|
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
10
3
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -12,6 +5,11 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
12
5
|
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
13
6
|
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
14
7
|
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; }
|
|
8
|
+
/**
|
|
9
|
+
* @vue/shared v3.5.17
|
|
10
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
11
|
+
* @license MIT
|
|
12
|
+
**/
|
|
15
13
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
16
14
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
17
15
|
var u = function u(t) {
|
|
@@ -133,11 +131,4 @@ var u = function u(t) {
|
|
|
133
131
|
}
|
|
134
132
|
};
|
|
135
133
|
};
|
|
136
|
-
|
|
137
|
-
exports.createStyle = E;
|
|
138
|
-
exports.curringMath = _c;
|
|
139
|
-
exports.getCSS = d;
|
|
140
|
-
exports.getStyle = N;
|
|
141
|
-
exports.hasClass = h;
|
|
142
|
-
exports.removeClass = g;
|
|
143
|
-
exports.updateStyle = S;
|
|
134
|
+
export { y as addClass, E as createStyle, _c as curringMath, d as getCSS, N as getStyle, h as hasClass, g as removeClass, S as updateStyle };
|
package/token-tools/es5.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
1
|
var o = "accessToken",
|
|
4
2
|
r = "accessTokenExpiredAt",
|
|
5
3
|
c = "refreshToken",
|
|
@@ -20,7 +18,4 @@ var o = "accessToken",
|
|
|
20
18
|
g = function g() {
|
|
21
19
|
localStorage.removeItem(o), localStorage.removeItem(r), localStorage.removeItem(c), localStorage.removeItem(s);
|
|
22
20
|
};
|
|
23
|
-
|
|
24
|
-
exports.getAccessTokenInfo = n;
|
|
25
|
-
exports.removeAccessToken = g;
|
|
26
|
-
exports.setAccessToken = l;
|
|
21
|
+
export { a as getAccessToken, n as getAccessTokenInfo, g as removeAccessToken, l as setAccessToken };
|
package/use-low-code/es5.js
CHANGED
|
@@ -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; } }
|
|
@@ -7,9 +5,9 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
7
5
|
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; } } }; }
|
|
8
6
|
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; } }
|
|
9
7
|
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; }
|
|
10
|
-
|
|
8
|
+
import { defineComponent, computed, onMounted, onBeforeUnmount, ref, openBlock, createElementBlock } from 'vue';
|
|
11
9
|
var x = ["src"],
|
|
12
|
-
b = /* @__PURE__ */
|
|
10
|
+
b = /* @__PURE__ */defineComponent({
|
|
13
11
|
__name: "low-code-iframe",
|
|
14
12
|
props: {
|
|
15
13
|
app: {},
|
|
@@ -23,7 +21,7 @@ var x = ["src"],
|
|
|
23
21
|
var c = _ref.expose,
|
|
24
22
|
s = _ref.emit;
|
|
25
23
|
var a = n,
|
|
26
|
-
r =
|
|
24
|
+
r = computed(function () {
|
|
27
25
|
if (!a.app) return;
|
|
28
26
|
var e = "";
|
|
29
27
|
var o = "";
|
|
@@ -31,7 +29,7 @@ var x = ["src"],
|
|
|
31
29
|
return a.app && (t.app = a.app), e = "".concat(o, "/api/node-low-code/v1/visitor/views/index?").concat(new URLSearchParams(t).toString()), e;
|
|
32
30
|
}),
|
|
33
31
|
l = s,
|
|
34
|
-
d =
|
|
32
|
+
d = computed({
|
|
35
33
|
get: function get() {
|
|
36
34
|
return a.iframeLoading;
|
|
37
35
|
},
|
|
@@ -47,12 +45,12 @@ var x = ["src"],
|
|
|
47
45
|
t = _ref2$emitData === void 0 ? {} : _ref2$emitData;
|
|
48
46
|
o === "app-mounted" ? d.value = false : l("emit-change", o, t);
|
|
49
47
|
};
|
|
50
|
-
|
|
48
|
+
onMounted(function () {
|
|
51
49
|
window.addEventListener("message", p, false);
|
|
52
|
-
}),
|
|
50
|
+
}), onBeforeUnmount(function () {
|
|
53
51
|
window.removeEventListener("message", p, false);
|
|
54
52
|
});
|
|
55
|
-
var i =
|
|
53
|
+
var i = ref(null),
|
|
56
54
|
m = function m(e) {
|
|
57
55
|
var o;
|
|
58
56
|
d.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
|
|
@@ -82,7 +80,7 @@ var x = ["src"],
|
|
|
82
80
|
}, e));
|
|
83
81
|
};
|
|
84
82
|
return function (e, o) {
|
|
85
|
-
return
|
|
83
|
+
return openBlock(), createElementBlock("iframe", {
|
|
86
84
|
"class": "low-code-iframe",
|
|
87
85
|
id: "low-code-iframe",
|
|
88
86
|
src: r.value,
|
|
@@ -114,4 +112,4 @@ var x = ["src"],
|
|
|
114
112
|
return s;
|
|
115
113
|
},
|
|
116
114
|
B = /* @__PURE__ */C(b, [["__scopeId", "data-v-c5870bec"]]);
|
|
117
|
-
|
|
115
|
+
export { B as LowCode };
|
package/vue/es5.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
'use
|
|
2
|
-
|
|
3
|
-
var useModelValue = require('@das-fed/upf-utils/vue/hooks/use-model-value/es5');
|
|
4
|
-
Object.defineProperty(exports, "useModelValue", {
|
|
5
|
-
enumerable: true,
|
|
6
|
-
get: function get() {
|
|
7
|
-
return useModelValue.useModelValue;
|
|
8
|
-
}
|
|
9
|
-
});
|
|
1
|
+
export { useModelValue } from '@das-fed/upf-utils/vue/hooks/use-model-value';
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var vue = require('vue');
|
|
1
|
+
import { ref, watchEffect } from 'vue';
|
|
4
2
|
var c = function c(e, t) {
|
|
5
|
-
var l =
|
|
6
|
-
return
|
|
3
|
+
var l = ref(e[t]);
|
|
4
|
+
return watchEffect(function () {
|
|
7
5
|
l.value = e[t];
|
|
8
6
|
}), l;
|
|
9
7
|
};
|
|
10
|
-
|
|
8
|
+
export { c as useModelValue };
|
package/webSocket-service/es5.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
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; }
|
|
@@ -9,17 +7,17 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
9
7
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
10
8
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
11
9
|
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); }
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
var c =
|
|
10
|
+
import { getConfig } from '@das-fed/upf-utils/config';
|
|
11
|
+
import { getToken } from '@das-fed/upf-utils/common-info';
|
|
12
|
+
import { objectToUrlparams } from '@das-fed/upf-utils/common-tools';
|
|
13
|
+
var c = getConfig(),
|
|
16
14
|
h = function h() {
|
|
17
15
|
var s = "";
|
|
18
16
|
return c.baseURL ? s = c.baseURL : s = location.origin, s.replace("https://", "wss://").replace("http://", "ws://") || "";
|
|
19
17
|
},
|
|
20
18
|
w = function w(s) {
|
|
21
19
|
var t = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
22
|
-
var e =
|
|
20
|
+
var e = objectToUrlparams(t);
|
|
23
21
|
return e ? h() + s + "?".concat(e) : h() + s;
|
|
24
22
|
},
|
|
25
23
|
p = function p(s, t) {
|
|
@@ -39,7 +37,7 @@ var R = /*#__PURE__*/function () {
|
|
|
39
37
|
u = _ref.reconnectWhenClose;
|
|
40
38
|
_classCallCheck(this, R);
|
|
41
39
|
if (this.$ws = null, this.url = "", this.params = {}, this.lockReturn = false, this.startTime = 0, this.heartbeatInterval = null, this.ifReconnect = true, this.reconnectId = null, this.reconnectNum = 3, this.reconnectWhenClose = false, this.currentReconnectNum = 0, this.$ws = null, this.startTime = 0, this.heartbeatInterval = null, this.ifReconnect = a !== null && a !== void 0 ? a : true, this.reconnectNum = l !== null && l !== void 0 ? l : 3, this.reconnectWhenClose = u !== null && u !== void 0 ? u : false, this.lockReturn = false, this.currentReconnectNum = 0, this.reconnectId = null, this.params = _objectSpread(_objectSpread({}, e), {}, {
|
|
42
|
-
access_token:
|
|
40
|
+
access_token: getToken()
|
|
43
41
|
}), t) this.url = t;else throw new Error("url is required");
|
|
44
42
|
r && (this.opened = r), n && (this.close = n), i && (this.error = i), o && (this.afterMsg = o), this.initWebSocket();
|
|
45
43
|
}
|
|
@@ -119,4 +117,4 @@ var R = /*#__PURE__*/function () {
|
|
|
119
117
|
}
|
|
120
118
|
}]);
|
|
121
119
|
}();
|
|
122
|
-
|
|
120
|
+
export { R as socketService };
|