@das-fed/utils 6.3.0-beta.10 → 6.3.0-beta.12
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/index.js +2 -2
- package/api-services/modules/app-manage/index.js +1 -1
- package/api-services/modules/authentication/index.js +1 -1
- package/api-services/modules/bems/index.js +1 -1
- package/api-services/modules/contract/index.js +1 -1
- package/api-services/modules/duty-manage/index.js +1 -1
- package/api-services/modules/enterpriseright/index.js +1 -1
- package/api-services/modules/file/index.d.ts +1 -1
- package/api-services/modules/file/index.js +255 -246
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/gateway-edge/index.js +1 -1
- package/api-services/modules/index.js +21 -21
- package/api-services/modules/index.js.gz +0 -0
- package/api-services/modules/iot/index.js +1 -1
- package/api-services/modules/justauth/index.js +1 -1
- package/api-services/modules/knowledge/index.js +1 -1
- package/api-services/modules/link/index.js +1 -1
- package/api-services/modules/permission/index.js +1 -1
- package/api-services/modules/platformManage/index.js +1 -1
- package/api-services/modules/portal/index.js +1 -1
- package/api-services/modules/space-manage/index.js +1 -1
- package/api-services/modules/super-admin/index.js +1 -1
- package/api-services/modules/supplier/index.js +1 -1
- package/api-services/modules/supplychain-manage/index.js +1 -1
- package/api-services/modules/systemConfiguration/index.js +1 -1
- package/api-services/modules/tool/index.js +1 -1
- package/api-services/src/create-service/index.js +1 -1
- package/common-info/getIframeUrl/index.js +1 -1
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.js +4 -4
- package/common-info/index.js.gz +0 -0
- package/common-info/set-personal-info/index.js +591 -565
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +104 -104
- package/common-tools/date-format/index.js +2 -1
- package/common-tools/get-url-params/index.d.ts +1 -1
- package/common-tools/get-url-params/index.js +49 -46
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/index.js +10 -10
- package/common-tools/platform-tools/index.js +1 -1
- package/common-tools/update-fav-icon/index.js +3 -3
- package/create-api-service/index.js +1405 -1371
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/sso/index.js +739 -714
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +856 -830
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +87 -87
- package/dimple-canvas/index.js +1 -1
- package/directive/auth/index.js +3 -3
- package/directive/auth/index.js.gz +0 -0
- package/directive/clickOutside/index.js +1 -1
- package/directive/hoverInside/index.js +1 -1
- package/directive/index.js +3 -3
- package/hooks/use-get-auth/index.js +4 -4
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/index.js +2 -2
- package/load-js/index.js +1 -1
- package/nextTiken/index.js +1 -1
- package/nextTiken/index.js.gz +0 -0
- package/oss/index.js +1 -1
- package/package.json +5 -3
- package/pinyin-first-character/index.js +142 -132
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +1 -1
- package/style/index.js.gz +0 -0
- package/token-tools/index.js.gz +0 -0
- package/use-low-code/index.js +12 -12
- package/use-low-code/index.js.gz +0 -0
- package/use-low-code/style.css +1 -1
- package/vue/index.js +1 -1
- package/webSocket-service/index.js +3 -3
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -28
package/style/index.js
CHANGED
package/style/index.js.gz
CHANGED
|
Binary file
|
package/token-tools/index.js.gz
CHANGED
|
Binary file
|
package/use-low-code/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as v, computed as u, onMounted as g, onBeforeUnmount as _, ref as L, openBlock as y, createElementBlock as h } from "vue";
|
|
2
|
-
const x = ["src"],
|
|
2
|
+
const x = ["src"], C = /* @__PURE__ */ v({
|
|
3
3
|
__name: "low-code-iframe",
|
|
4
4
|
props: {
|
|
5
5
|
app: {},
|
|
@@ -14,34 +14,34 @@ const x = ["src"], b = /* @__PURE__ */ v({
|
|
|
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
|
+
}), l = s, d = u({
|
|
18
18
|
get: () => a.iframeLoading,
|
|
19
|
-
set: (e) =>
|
|
19
|
+
set: (e) => l("update:iframeLoading", e)
|
|
20
20
|
}), p = (e) => {
|
|
21
21
|
const { emitName: o = "", emitData: t = {} } = e.data || {};
|
|
22
|
-
o === "app-mounted" ?
|
|
22
|
+
o === "app-mounted" ? d.value = !1 : l("emit-change", o, t);
|
|
23
23
|
};
|
|
24
24
|
g(() => {
|
|
25
25
|
window.addEventListener("message", p, !1);
|
|
26
26
|
}), _(() => {
|
|
27
27
|
window.removeEventListener("message", p, !1);
|
|
28
28
|
});
|
|
29
|
-
const i = L(null),
|
|
29
|
+
const i = L(null), m = (e) => {
|
|
30
30
|
var o;
|
|
31
|
-
|
|
31
|
+
d.value || (o = i.value) != null && o.contentWindow && i.value.contentWindow.postMessage(e);
|
|
32
32
|
};
|
|
33
33
|
c({
|
|
34
34
|
onActivated: () => {
|
|
35
|
-
|
|
35
|
+
m({ type: "onActivated" });
|
|
36
36
|
},
|
|
37
37
|
onDeactivated: () => {
|
|
38
|
-
|
|
38
|
+
m({ type: "onDeactivated" });
|
|
39
39
|
}
|
|
40
40
|
});
|
|
41
41
|
const w = () => {
|
|
42
|
-
var o, t,
|
|
42
|
+
var o, t, f;
|
|
43
43
|
const { origin: e } = new URL(r.value || "");
|
|
44
|
-
e && ((
|
|
44
|
+
e && ((f = (t = (o = i.value) == null ? void 0 : o.contentWindow) == null ? void 0 : t.postMessage) == null || f.call(
|
|
45
45
|
t,
|
|
46
46
|
{ type: "setProxSsoStatus", data: { visible: !0, parentHref: location.href } },
|
|
47
47
|
e
|
|
@@ -58,12 +58,12 @@ const x = ["src"], b = /* @__PURE__ */ v({
|
|
|
58
58
|
onLoad: w
|
|
59
59
|
}, null, 40, x));
|
|
60
60
|
}
|
|
61
|
-
}),
|
|
61
|
+
}), M = (n, c) => {
|
|
62
62
|
const s = n.__vccOpts || n;
|
|
63
63
|
for (const [a, r] of c)
|
|
64
64
|
s[a] = r;
|
|
65
65
|
return s;
|
|
66
|
-
}, B = /* @__PURE__ */ C
|
|
66
|
+
}, B = /* @__PURE__ */ M(C, [["__scopeId", "data-v-752ac832"]]);
|
|
67
67
|
export {
|
|
68
68
|
B as LowCode
|
|
69
69
|
};
|
package/use-low-code/index.js.gz
CHANGED
|
Binary file
|
package/use-low-code/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.low-code-iframe[data-v-
|
|
1
|
+
.low-code-iframe[data-v-752ac832]{padding:0;margin:0;border:none;outline:none;height:100%;width:100%;min-height:100px;min-width:100px}
|
package/vue/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { getConfig as m } from "@das-fed/utils/config";
|
|
2
|
-
import { getToken as f } from "@das-fed/utils/common-info";
|
|
3
|
-
import { objectToUrlparams as d } from "@das-fed/utils/common-tools";
|
|
1
|
+
import { getConfig as m } from "@das-fed/utils/config/index.js";
|
|
2
|
+
import { getToken as f } from "@das-fed/utils/common-info/index.js";
|
|
3
|
+
import { objectToUrlparams as d } from "@das-fed/utils/common-tools/index.js";
|
|
4
4
|
const c = m(), h = () => {
|
|
5
5
|
let s = "";
|
|
6
6
|
return c.baseURL ? s = c.baseURL : s = location.origin, s.replace("https://", "wss://").replace("http://", "ws://") || "";
|
|
Binary file
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
export type socketConfig = {
|
|
2
|
-
/** 请求地址 */
|
|
3
|
-
url: string
|
|
4
|
-
|
|
5
|
-
/** 请求参数 */
|
|
6
|
-
params?: Record<string, any>
|
|
7
|
-
|
|
8
|
-
/** websocket连接成功回调 */
|
|
9
|
-
opened?: (event: any) => void
|
|
10
|
-
|
|
11
|
-
/** websocket关闭连接回调 */
|
|
12
|
-
close?: (event: any) => void
|
|
13
|
-
|
|
14
|
-
/** websocket接收到消息回调 */
|
|
15
|
-
message?: (event: any) => void
|
|
16
|
-
|
|
17
|
-
/** websocket连接异常回调 */
|
|
18
|
-
error?: (event: any) => void
|
|
19
|
-
|
|
20
|
-
/** 是否重连,默认开启 */
|
|
21
|
-
ifReconnect?: boolean
|
|
22
|
-
|
|
23
|
-
/** 连接close关闭时是否重连,默认关闭 */
|
|
24
|
-
reconnectWhenClose?: boolean
|
|
25
|
-
|
|
26
|
-
/** 重连次数,默认为3,-1 表示一直重连 */
|
|
27
|
-
reconnectNum?: number
|
|
28
|
-
}
|
|
1
|
+
export type socketConfig = {
|
|
2
|
+
/** 请求地址 */
|
|
3
|
+
url: string
|
|
4
|
+
|
|
5
|
+
/** 请求参数 */
|
|
6
|
+
params?: Record<string, any>
|
|
7
|
+
|
|
8
|
+
/** websocket连接成功回调 */
|
|
9
|
+
opened?: (event: any) => void
|
|
10
|
+
|
|
11
|
+
/** websocket关闭连接回调 */
|
|
12
|
+
close?: (event: any) => void
|
|
13
|
+
|
|
14
|
+
/** websocket接收到消息回调 */
|
|
15
|
+
message?: (event: any) => void
|
|
16
|
+
|
|
17
|
+
/** websocket连接异常回调 */
|
|
18
|
+
error?: (event: any) => void
|
|
19
|
+
|
|
20
|
+
/** 是否重连,默认开启 */
|
|
21
|
+
ifReconnect?: boolean
|
|
22
|
+
|
|
23
|
+
/** 连接close关闭时是否重连,默认关闭 */
|
|
24
|
+
reconnectWhenClose?: boolean
|
|
25
|
+
|
|
26
|
+
/** 重连次数,默认为3,-1 表示一直重连 */
|
|
27
|
+
reconnectNum?: number
|
|
28
|
+
}
|