@das-fed/upf-utils 6.4.0-hot.11 → 6.4.0-hot.13
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.d.ts +2 -0
- package/api-services/es5.js +1125 -1074
- package/api-services/i18n/es5.d.ts +63 -0
- package/api-services/index.js +852 -813
- package/api-services/index.js.gz +0 -0
- package/api-services/modules/app-manage/es5.d.ts +2 -0
- package/api-services/modules/app-manage/es5.js +957 -909
- package/api-services/modules/app-manage/index.js +746 -711
- package/api-services/modules/app-manage/index.js.gz +0 -0
- package/api-services/modules/authentication/es5.d.ts +2 -0
- package/api-services/modules/authentication/es5.js +1650 -1587
- package/api-services/modules/authentication/index.js +1410 -1353
- package/api-services/modules/authentication/index.js.gz +0 -0
- package/api-services/modules/bems/es5.d.ts +6 -0
- package/api-services/modules/bems/es5.js +1645 -1582
- package/api-services/modules/bems/index.js +1404 -1347
- package/api-services/modules/bems/index.js.gz +0 -0
- package/api-services/modules/contract/es5.d.ts +2 -0
- package/api-services/modules/contract/es5.js +1250 -1199
- package/api-services/modules/contract/index.js +1035 -996
- package/api-services/modules/contract/index.js.gz +0 -0
- package/api-services/modules/duty-manage/es5.d.ts +7 -0
- package/api-services/modules/duty-manage/es5.js +963 -912
- package/api-services/modules/duty-manage/index.js +755 -716
- package/api-services/modules/duty-manage/index.js.gz +0 -0
- package/api-services/modules/enterpriseright/es5.d.ts +2 -0
- package/api-services/modules/enterpriseright/es5.js +1250 -1199
- package/api-services/modules/enterpriseright/index.js +1035 -996
- package/api-services/modules/enterpriseright/index.js.gz +0 -0
- package/api-services/modules/es5.d.ts +21 -0
- package/api-services/modules/es5.js +1113 -1062
- package/api-services/modules/file/es5.d.ts +37 -0
- package/api-services/modules/file/es5.js +1005 -954
- package/api-services/modules/file/index.js +786 -747
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/es5.d.ts +2 -0
- package/api-services/modules/gateway-edge/es5.js +1250 -1199
- package/api-services/modules/gateway-edge/index.js +1035 -996
- package/api-services/modules/gateway-edge/index.js.gz +0 -0
- package/api-services/modules/index.js +856 -817
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/es5.d.ts +16 -0
- package/api-services/modules/iot/es5.js +1389 -1350
- package/api-services/modules/iot/index.js +1153 -1132
- package/api-services/modules/iot/index.js.gz +0 -0
- package/api-services/modules/justauth/es5.d.ts +3 -0
- package/api-services/modules/justauth/es5.js +1327 -1285
- package/api-services/modules/justauth/index.js +1111 -1086
- package/api-services/modules/justauth/index.js.gz +0 -0
- package/api-services/modules/knowledge/es5.d.ts +2 -0
- package/api-services/modules/knowledge/es5.js +1052 -998
- package/api-services/modules/knowledge/index.js +822 -779
- package/api-services/modules/knowledge/index.js.gz +0 -0
- package/api-services/modules/link/es5.d.ts +2 -0
- package/api-services/modules/link/es5.js +1250 -1199
- package/api-services/modules/link/index.js +1035 -996
- package/api-services/modules/link/index.js.gz +0 -0
- package/api-services/modules/permission/es5.d.ts +2 -0
- package/api-services/modules/permission/es5.js +1250 -1199
- package/api-services/modules/permission/index.js +1035 -996
- package/api-services/modules/permission/index.js.gz +0 -0
- package/api-services/modules/platformManage/es5.d.ts +14 -0
- package/api-services/modules/platformManage/es5.js +1334 -1274
- package/api-services/modules/platformManage/index.js +1123 -1070
- package/api-services/modules/platformManage/index.js.gz +0 -0
- package/api-services/modules/portal/es5.d.ts +2 -0
- package/api-services/modules/portal/es5.js +1250 -1199
- package/api-services/modules/portal/index.js +1035 -996
- package/api-services/modules/portal/index.js.gz +0 -0
- package/api-services/modules/space-manage/es5.d.ts +2 -0
- package/api-services/modules/space-manage/es5.js +968 -917
- package/api-services/modules/space-manage/index.js +763 -724
- package/api-services/modules/space-manage/index.js.gz +0 -0
- package/api-services/modules/super-admin/es5.d.ts +8 -0
- package/api-services/modules/super-admin/es5.js +1260 -1209
- package/api-services/modules/super-admin/index.js +1038 -999
- package/api-services/modules/super-admin/index.js.gz +0 -0
- package/api-services/modules/supplier/es5.d.ts +6 -0
- package/api-services/modules/supplier/es5.js +1249 -1198
- package/api-services/modules/supplier/index.js +1032 -993
- package/api-services/modules/supplier/index.js.gz +0 -0
- package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
- package/api-services/modules/supplychain-manage/es5.js +983 -932
- package/api-services/modules/supplychain-manage/index.js +775 -736
- package/api-services/modules/supplychain-manage/index.js.gz +0 -0
- package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
- package/api-services/modules/systemConfiguration/es5.js +1250 -1199
- package/api-services/modules/systemConfiguration/index.js +1035 -996
- package/api-services/modules/systemConfiguration/index.js.gz +0 -0
- package/api-services/modules/tool/es5.d.ts +2 -0
- package/api-services/modules/tool/es5.js +971 -920
- package/api-services/modules/tool/index.js +764 -725
- package/api-services/modules/tool/index.js.gz +0 -0
- package/api-services/src/create-service/es5.d.ts +1 -0
- package/api-services/src/create-service/es5.js +1396 -1357
- package/api-services/src/create-service/index.js +1170 -1149
- package/api-services/src/create-service/index.js.gz +0 -0
- package/atob/es5.d.ts +2 -0
- package/common-info/es5.d.ts +73 -0
- package/common-info/es5.js +2155 -2063
- package/common-info/getIframeUrl/es5.d.ts +9 -0
- package/common-info/getInfoFromUrl/es5.d.ts +8 -0
- package/common-info/getPermissionMethod/es5.d.ts +77 -0
- package/common-info/getPermissionMethod/es5.js +1414 -1313
- package/common-info/getPermissionMethod/index.d.ts +57 -6
- package/common-info/getPermissionMethod/index.js +1155 -1073
- package/common-info/getPermissionMethod/index.js.gz +0 -0
- package/common-info/index.d.ts +5 -8
- package/common-info/index.js +1818 -1751
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/es5.d.ts +5 -0
- package/common-info/type.d.ts +2 -2
- package/common-tools/arr-tools/es5.d.ts +15 -0
- package/common-tools/calc-text-width/es5.d.ts +1 -0
- package/common-tools/date-format/es5.d.ts +7 -0
- package/common-tools/es5.d.ts +15 -0
- package/common-tools/es5.js +9 -0
- package/common-tools/extract-file-name/es5.d.ts +1 -0
- package/common-tools/get-file-extension/es5.d.ts +6 -0
- package/common-tools/get-url-params/es5.d.ts +46 -0
- package/common-tools/handle-data/es5.d.ts +34 -0
- package/common-tools/handle-data/es5.js +44 -6
- package/common-tools/handle-data/index.d.ts +16 -1
- package/common-tools/handle-data/index.js +1 -1
- package/common-tools/handle-data/index.js.gz +0 -0
- package/common-tools/index.d.ts +1 -0
- package/common-tools/index.js +1 -0
- package/common-tools/nest-tree-format/es5.d.ts +30 -0
- package/common-tools/obj-tools/es5.d.ts +7 -0
- package/common-tools/platform-tools/es5.d.ts +19 -0
- package/common-tools/queue-promise/es5.d.ts +6 -0
- package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
- package/common-tools/timezone-format/es5.d.ts +132 -0
- package/common-tools/timezone-format/es5.js +822 -0
- package/common-tools/timezone-format/get-iana-data/dayjs-timezone-iana-plugin.d.ts +72 -0
- package/common-tools/timezone-format/get-iana-data/iana-api-fetch.d.ts +21 -0
- package/common-tools/timezone-format/get-iana-data/moment-iana-loader.d.ts +29 -0
- package/common-tools/timezone-format/index.d.ts +132 -0
- package/common-tools/timezone-format/index.js +439 -0
- package/common-tools/timezone-format/index.js.gz +0 -0
- package/common-tools/update-browser-title/es5.d.ts +1 -0
- package/common-tools/update-fav-icon/es5.d.ts +11 -0
- package/config/es5.d.ts +2 -0
- package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
- package/create-api-service/access-token-auto-refresh/es5.js +27 -26
- package/create-api-service/access-token-auto-refresh/index.js +27 -26
- package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
- package/create-api-service/check-token/es5.d.ts +12 -0
- package/create-api-service/es5.d.ts +8 -0
- package/create-api-service/es5.js +1397 -1358
- package/create-api-service/i18n/es5.d.ts +39 -0
- package/create-api-service/index.js +1171 -1150
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/proxy-sso/es5.d.ts +3 -0
- package/create-api-service/sso/es5.d.ts +21 -0
- package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
- package/curring-http/es5.d.ts +12 -0
- package/dimple-canvas/es5.d.ts +3 -0
- package/directive/auth/es5.d.ts +8 -0
- package/directive/auth/es5.js +50 -42
- package/directive/auth/index.d.ts +1 -1
- package/directive/auth/index.js +42 -34
- package/directive/auth/index.js.gz +0 -0
- package/directive/clickOutside/es5.d.ts +6 -0
- package/directive/es5.d.ts +3 -0
- package/directive/hoverInside/es5.d.ts +6 -0
- package/directive/utils/es5.d.ts +7 -0
- package/dom-check-in/es5.d.ts +6 -0
- package/dom-watcher/es5.d.ts +25 -0
- package/esm-map.json +66 -3
- package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
- package/hooks/use-get-auth/apis.d.ts +4 -0
- package/hooks/use-get-auth/es5.d.ts +8 -0
- package/hooks/use-get-auth/es5.js +325 -57
- package/hooks/use-get-auth/index.d.ts +8 -4
- package/hooks/use-get-auth/index.js +71 -16
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/i18n-bridge/es5.d.ts +10 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/load-js/es5.d.ts +3 -0
- package/nextTiken/es5.d.ts +12 -0
- package/oss/es5.d.ts +2 -0
- package/package.json +4 -3
- package/pinyin-first-character/es5.d.ts +2 -0
- package/process-engine-info/es5.d.ts +13 -0
- package/pure-image-src/es5.d.ts +2 -0
- package/size-watcher/es5.d.ts +6 -0
- package/style/es5.d.ts +2 -0
- package/theme/es5.d.ts +111 -0
- package/theme/es5.js +1676 -0
- package/theme/index.d.ts +111 -0
- package/theme/index.js +1118 -0
- package/theme/index.js.gz +0 -0
- package/token-tools/es5.d.ts +21 -0
- package/use-low-code/es5.d.ts +1 -0
- package/use-low-code/es5.js +37 -53
- package/use-low-code/index.js +36 -31
- package/use-low-code/index.js.gz +0 -0
- package/vue/es5.d.ts +1 -0
- package/vue/hooks/use-model-value/es5.d.ts +9 -0
- package/webSocket-service/es5.d.ts +41 -0
- package/with-install/es5.d.ts +11 -0
- package/use-low-code/style.css +0 -1
|
Binary file
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
declare const accessTokenExpiredAtKey = "accessTokenExpiredAt";
|
|
2
|
+
declare const refreshTokenKey = "refreshToken";
|
|
3
|
+
declare const redirectUriKey = "redirectUri";
|
|
4
|
+
declare const accessTokenInfoKey = "tokenInfo";
|
|
5
|
+
/**
|
|
6
|
+
* 获取token
|
|
7
|
+
* @returns token
|
|
8
|
+
*/
|
|
9
|
+
export declare const getAccessToken: () => string;
|
|
10
|
+
/**
|
|
11
|
+
* 获取tokenInfo相关信息
|
|
12
|
+
*/
|
|
13
|
+
export declare const getAccessTokenInfo: (key: typeof accessTokenExpiredAtKey | typeof refreshTokenKey | typeof redirectUriKey | typeof accessTokenInfoKey) => any;
|
|
14
|
+
/**
|
|
15
|
+
* 存入token、tokenInfo
|
|
16
|
+
* @param token
|
|
17
|
+
* @param info
|
|
18
|
+
*/
|
|
19
|
+
export declare const setAccessToken: (token: string, info?: any) => void;
|
|
20
|
+
export declare const removeAccessToken: () => void;
|
|
21
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LowCode } from './low-code-iframe.vue';
|
package/use-low-code/es5.js
CHANGED
|
@@ -1,15 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
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 _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; } }
|
|
6
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
-
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
|
-
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
|
-
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
3
|
var vue = require('vue');
|
|
11
4
|
var x = ["src"],
|
|
12
|
-
|
|
5
|
+
B = /* @__PURE__ */vue.defineComponent({
|
|
13
6
|
__name: "low-code-iframe",
|
|
14
7
|
props: {
|
|
15
8
|
app: {},
|
|
@@ -19,61 +12,61 @@ var x = ["src"],
|
|
|
19
12
|
}
|
|
20
13
|
},
|
|
21
14
|
emits: ["emit-change", "update:iframeLoading"],
|
|
22
|
-
setup: function setup(
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
var a =
|
|
26
|
-
|
|
15
|
+
setup: function setup(m, _ref) {
|
|
16
|
+
var f = _ref.expose,
|
|
17
|
+
u = _ref.emit;
|
|
18
|
+
var a = m,
|
|
19
|
+
i = vue.computed(function () {
|
|
27
20
|
if (!a.app) return;
|
|
28
21
|
var e = "";
|
|
29
22
|
var o = "";
|
|
30
23
|
var t = a.query || {};
|
|
31
24
|
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
25
|
}),
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
s = u,
|
|
27
|
+
r = vue.computed({
|
|
35
28
|
get: function get() {
|
|
36
29
|
return a.iframeLoading;
|
|
37
30
|
},
|
|
38
31
|
set: function set(e) {
|
|
39
|
-
return
|
|
32
|
+
return s("update:iframeLoading", e);
|
|
40
33
|
}
|
|
41
34
|
}),
|
|
42
|
-
|
|
35
|
+
d = function d(e) {
|
|
43
36
|
var _ref2 = e.data || {},
|
|
44
37
|
_ref2$emitName = _ref2.emitName,
|
|
45
38
|
o = _ref2$emitName === void 0 ? "" : _ref2$emitName,
|
|
46
39
|
_ref2$emitData = _ref2.emitData,
|
|
47
40
|
t = _ref2$emitData === void 0 ? {} : _ref2$emitData;
|
|
48
|
-
o === "app-mounted" ?
|
|
41
|
+
o === "app-mounted" ? r.value = false : s("emit-change", o, t);
|
|
49
42
|
};
|
|
50
43
|
vue.onMounted(function () {
|
|
51
|
-
window.addEventListener("message",
|
|
44
|
+
window.addEventListener("message", d, false);
|
|
52
45
|
}), vue.onBeforeUnmount(function () {
|
|
53
|
-
window.removeEventListener("message",
|
|
46
|
+
window.removeEventListener("message", d, false);
|
|
54
47
|
});
|
|
55
|
-
var
|
|
56
|
-
|
|
48
|
+
var n = vue.ref(null),
|
|
49
|
+
l = function l(e) {
|
|
57
50
|
var o;
|
|
58
|
-
|
|
51
|
+
r.value || (o = n.value) != null && o.contentWindow && n.value.contentWindow.postMessage(e);
|
|
59
52
|
};
|
|
60
|
-
|
|
53
|
+
f({
|
|
61
54
|
onActivated: function onActivated() {
|
|
62
|
-
|
|
55
|
+
l({
|
|
63
56
|
type: "onActivated"
|
|
64
57
|
});
|
|
65
58
|
},
|
|
66
59
|
onDeactivated: function onDeactivated() {
|
|
67
|
-
|
|
60
|
+
l({
|
|
68
61
|
type: "onDeactivated"
|
|
69
62
|
});
|
|
70
63
|
}
|
|
71
64
|
});
|
|
72
65
|
var w = function w() {
|
|
73
|
-
var o, t,
|
|
74
|
-
var _URL = new URL(
|
|
66
|
+
var o, t, c;
|
|
67
|
+
var _URL = new URL(i.value || "", location.origin),
|
|
75
68
|
e = _URL.origin;
|
|
76
|
-
e && ((
|
|
69
|
+
e && ((c = (t = (o = n.value) == null ? undefined : o.contentWindow) == null ? undefined : t.postMessage) == null || c.call(t, {
|
|
77
70
|
type: "setProxSsoStatus",
|
|
78
71
|
data: {
|
|
79
72
|
visible: true,
|
|
@@ -83,35 +76,26 @@ var x = ["src"],
|
|
|
83
76
|
};
|
|
84
77
|
return function (e, o) {
|
|
85
78
|
return vue.openBlock(), vue.createElementBlock("iframe", {
|
|
86
|
-
"class": "low-code-iframe",
|
|
87
79
|
id: "low-code-iframe",
|
|
88
|
-
|
|
80
|
+
"class": "low-code-iframe",
|
|
81
|
+
src: i.value,
|
|
89
82
|
frameborder: "0",
|
|
90
83
|
sandbox: "allow-same-origin allow-scripts allow-forms allow-modals allow-popups allow-downloads allow-top-navigation",
|
|
91
84
|
ref_key: "lowCodeRef",
|
|
92
|
-
ref:
|
|
93
|
-
onLoad: w
|
|
85
|
+
ref: n,
|
|
86
|
+
onLoad: w,
|
|
87
|
+
style: {
|
|
88
|
+
padding: 0,
|
|
89
|
+
margin: 0,
|
|
90
|
+
border: "none",
|
|
91
|
+
outline: "none",
|
|
92
|
+
height: "100%",
|
|
93
|
+
width: "100%",
|
|
94
|
+
minHeight: "100px",
|
|
95
|
+
minWidth: "100px"
|
|
96
|
+
}
|
|
94
97
|
}, null, 40, x);
|
|
95
98
|
};
|
|
96
99
|
}
|
|
97
|
-
})
|
|
98
|
-
C = function C(n, c) {
|
|
99
|
-
var s = n.__vccOpts || n;
|
|
100
|
-
var _iterator = _createForOfIteratorHelper(c),
|
|
101
|
-
_step;
|
|
102
|
-
try {
|
|
103
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
104
|
-
var _step$value = _slicedToArray(_step.value, 2),
|
|
105
|
-
a = _step$value[0],
|
|
106
|
-
r = _step$value[1];
|
|
107
|
-
s[a] = r;
|
|
108
|
-
}
|
|
109
|
-
} catch (err) {
|
|
110
|
-
_iterator.e(err);
|
|
111
|
-
} finally {
|
|
112
|
-
_iterator.f();
|
|
113
|
-
}
|
|
114
|
-
return s;
|
|
115
|
-
},
|
|
116
|
-
B = /* @__PURE__ */C(b, [["__scopeId", "data-v-c5870bec"]]);
|
|
100
|
+
});
|
|
117
101
|
exports.LowCode = B;
|
package/use-low-code/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
const x = ["src"],
|
|
1
|
+
import { defineComponent as g, computed as p, onMounted as v, onBeforeUnmount as h, ref as L, openBlock as y, createElementBlock as _ } from "vue";
|
|
2
|
+
const x = ["src"], B = /* @__PURE__ */ g({
|
|
3
3
|
__name: "low-code-iframe",
|
|
4
4
|
props: {
|
|
5
5
|
app: {},
|
|
@@ -7,63 +7,68 @@ const x = ["src"], b = /* @__PURE__ */ v({
|
|
|
7
7
|
iframeLoading: { type: Boolean }
|
|
8
8
|
},
|
|
9
9
|
emits: ["emit-change", "update:iframeLoading"],
|
|
10
|
-
setup(
|
|
11
|
-
const a =
|
|
10
|
+
setup(m, { expose: f, emit: u }) {
|
|
11
|
+
const a = m, i = p(() => {
|
|
12
12
|
if (!a.app) return;
|
|
13
13
|
let e = "";
|
|
14
14
|
const o = "";
|
|
15
15
|
let t = a.query || {};
|
|
16
16
|
return a.app && (t.app = a.app), e = `${o}/api/node-low-code/v1/visitor/views/index?${new URLSearchParams(t).toString()}`, e;
|
|
17
|
-
}),
|
|
17
|
+
}), s = u, r = p({
|
|
18
18
|
get: () => a.iframeLoading,
|
|
19
|
-
set: (e) =>
|
|
20
|
-
}),
|
|
19
|
+
set: (e) => s("update:iframeLoading", e)
|
|
20
|
+
}), d = (e) => {
|
|
21
21
|
const { emitName: o = "", emitData: t = {} } = e.data || {};
|
|
22
|
-
o === "app-mounted" ?
|
|
22
|
+
o === "app-mounted" ? r.value = !1 : s("emit-change", o, t);
|
|
23
23
|
};
|
|
24
|
-
|
|
25
|
-
window.addEventListener("message",
|
|
26
|
-
}),
|
|
27
|
-
window.removeEventListener("message",
|
|
24
|
+
v(() => {
|
|
25
|
+
window.addEventListener("message", d, !1);
|
|
26
|
+
}), h(() => {
|
|
27
|
+
window.removeEventListener("message", d, !1);
|
|
28
28
|
});
|
|
29
|
-
const
|
|
29
|
+
const n = L(null), l = (e) => {
|
|
30
30
|
var o;
|
|
31
|
-
|
|
31
|
+
r.value || (o = n.value) != null && o.contentWindow && n.value.contentWindow.postMessage(e);
|
|
32
32
|
};
|
|
33
|
-
|
|
33
|
+
f({
|
|
34
34
|
onActivated: () => {
|
|
35
|
-
|
|
35
|
+
l({ type: "onActivated" });
|
|
36
36
|
},
|
|
37
37
|
onDeactivated: () => {
|
|
38
|
-
|
|
38
|
+
l({ type: "onDeactivated" });
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
const w = () => {
|
|
42
|
-
var o, t,
|
|
43
|
-
const { origin: e } = new URL(
|
|
44
|
-
e && ((
|
|
42
|
+
var o, t, c;
|
|
43
|
+
const { origin: e } = new URL(i.value || "", location.origin);
|
|
44
|
+
e && ((c = (t = (o = n.value) == null ? void 0 : o.contentWindow) == null ? void 0 : t.postMessage) == null || c.call(
|
|
45
45
|
t,
|
|
46
46
|
{ type: "setProxSsoStatus", data: { visible: !0, parentHref: location.href } },
|
|
47
47
|
e
|
|
48
48
|
));
|
|
49
49
|
};
|
|
50
|
-
return (e, o) => (y(),
|
|
51
|
-
class: "low-code-iframe",
|
|
50
|
+
return (e, o) => (y(), _("iframe", {
|
|
52
51
|
id: "low-code-iframe",
|
|
53
|
-
|
|
52
|
+
class: "low-code-iframe",
|
|
53
|
+
src: i.value,
|
|
54
54
|
frameborder: "0",
|
|
55
55
|
sandbox: "allow-same-origin allow-scripts allow-forms allow-modals allow-popups allow-downloads allow-top-navigation",
|
|
56
56
|
ref_key: "lowCodeRef",
|
|
57
|
-
ref:
|
|
58
|
-
onLoad: w
|
|
57
|
+
ref: n,
|
|
58
|
+
onLoad: w,
|
|
59
|
+
style: {
|
|
60
|
+
padding: 0,
|
|
61
|
+
margin: 0,
|
|
62
|
+
border: "none",
|
|
63
|
+
outline: "none",
|
|
64
|
+
height: "100%",
|
|
65
|
+
width: "100%",
|
|
66
|
+
minHeight: "100px",
|
|
67
|
+
minWidth: "100px"
|
|
68
|
+
}
|
|
59
69
|
}, null, 40, x));
|
|
60
70
|
}
|
|
61
|
-
})
|
|
62
|
-
const s = n.__vccOpts || n;
|
|
63
|
-
for (const [a, r] of c)
|
|
64
|
-
s[a] = r;
|
|
65
|
-
return s;
|
|
66
|
-
}, B = /* @__PURE__ */ C(b, [["__scopeId", "data-v-c5870bec"]]);
|
|
71
|
+
});
|
|
67
72
|
export {
|
|
68
73
|
B as LowCode
|
|
69
74
|
};
|
package/use-low-code/index.js.gz
CHANGED
|
Binary file
|
package/vue/es5.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useModelValue } from '@das-fed/upf-utils/vue/hooks/use-model-value';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { socketConfig } from './type';
|
|
2
|
+
|
|
3
|
+
export declare class socketService {
|
|
4
|
+
/** websocket实例 */
|
|
5
|
+
$ws: any;
|
|
6
|
+
/** websocket地址 */
|
|
7
|
+
url: string;
|
|
8
|
+
/** 请求参数 */
|
|
9
|
+
params: Record<string, any>;
|
|
10
|
+
/** 是否正在重连,避免ws重复连接 */
|
|
11
|
+
lockReturn: boolean;
|
|
12
|
+
/** websocket开启时间 */
|
|
13
|
+
startTime: any;
|
|
14
|
+
/** 心跳检测 */
|
|
15
|
+
heartbeatInterval: any;
|
|
16
|
+
/** 发生错误时是否重连,默认开启 */
|
|
17
|
+
ifReconnect: boolean;
|
|
18
|
+
/** 重连定时器 */
|
|
19
|
+
reconnectId: any;
|
|
20
|
+
/** 重连次数,默认为3,-1 表示一直重连 */
|
|
21
|
+
reconnectNum: number;
|
|
22
|
+
/** 连接close关闭时是否重连,默认关闭 */
|
|
23
|
+
reconnectWhenClose: boolean;
|
|
24
|
+
/** 当前重连次数 */
|
|
25
|
+
currentReconnectNum: number;
|
|
26
|
+
constructor({ url, params, opened, close, error, message, ifReconnect, reconnectNum, reconnectWhenClose, }: socketConfig);
|
|
27
|
+
initWebSocket(): void;
|
|
28
|
+
open(): void;
|
|
29
|
+
opened(ws: any): void;
|
|
30
|
+
close(event: CloseEvent): void;
|
|
31
|
+
message(event: any): void;
|
|
32
|
+
afterMsg(msg: any): void;
|
|
33
|
+
error(err: any): any;
|
|
34
|
+
/** websocket重连 */
|
|
35
|
+
reconnect(): void;
|
|
36
|
+
/** 发送消息给服务器 */
|
|
37
|
+
send(message: any): void;
|
|
38
|
+
startHeartbeat(): void;
|
|
39
|
+
/** 断开连接 */
|
|
40
|
+
disconnect(): void;
|
|
41
|
+
}
|
package/use-low-code/style.css
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.low-code-iframe[data-v-c5870bec]{padding:0;margin:0;border:none;outline:none;height:100%;width:100%;min-height:100px;min-width:100px}
|