@das-fed/utils 6.3.0-beta.0 → 6.3.0-beta.10
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/__VLS_types.d.ts +124 -0
- package/api-services/modules/{file.d.ts → file/index.d.ts} +4 -4
- package/api-services/modules/{file.js → file/index.js} +18 -36
- package/api-services/modules/file/index.js.gz +0 -0
- package/api-services/modules/index.js.gz +0 -0
- package/atob/index.d.ts +2 -2
- package/common-info/{getIframeUrl.js → getIframeUrl/index.js} +1 -2
- package/common-info/getInfoFromUrl/index.js +84 -0
- package/common-info/getInfoFromUrl/index.js.gz +0 -0
- package/common-info/index.d.ts +1 -1
- package/common-info/index.js +2 -4
- package/common-info/index.js.gz +0 -0
- package/common-info/{set-personal-info.d.ts → set-personal-info/index.d.ts} +1 -1
- package/common-info/{set-personal-info.js → set-personal-info/index.js} +10 -24
- package/common-info/set-personal-info/index.js.gz +0 -0
- package/common-info/type.d.ts +104 -0
- package/common-tools/{arr-tools.d.ts → arr-tools/index.d.ts} +1 -1
- package/common-tools/{date-format.js → date-format/index.js} +1 -2
- package/common-tools/{get-url-params.d.ts → get-url-params/index.d.ts} +1 -1
- package/common-tools/{get-url-params.js → get-url-params/index.js} +2 -4
- package/common-tools/get-url-params/index.js.gz +0 -0
- package/common-tools/{nest-tree-format.d.ts → nest-tree-format/index.d.ts} +1 -1
- package/common-tools/{nest-tree-format.js → nest-tree-format/index.js} +2 -4
- package/common-tools/obj-tools/index.js +14 -0
- package/common-tools/{platform-tools.js → platform-tools/index.js} +1 -2
- package/common-tools/{queue-promise.d.ts → queue-promise/index.d.ts} +1 -1
- package/common-tools/setHtmlMinWH/index.d.ts +5 -0
- package/common-tools/update-fav-icon/index.d.ts +11 -0
- package/common-tools/update-fav-icon/index.js +21 -0
- package/create-api-service/index.js +255 -295
- package/create-api-service/index.js.gz +0 -0
- package/create-api-service/{sso.d.ts → sso/index.d.ts} +5 -5
- package/create-api-service/{sso.js → sso/index.js} +421 -444
- package/create-api-service/sso/index.js.gz +0 -0
- package/curring-http/index.js +1626 -4809
- package/curring-http/index.js.gz +0 -0
- package/curring-http/type.d.ts +89 -0
- package/directive/{auth.js → auth/index.js} +2 -4
- package/directive/auth/index.js.gz +0 -0
- package/dom-check-in/index.js +5 -5
- package/dom-watcher/index.d.ts +1 -1
- package/esm-map.json +8 -0
- package/hooks/use-get-auth/index.d.ts +3 -3
- package/hooks/use-get-auth/index.js +4 -8
- package/hooks/use-get-auth/index.js.gz +0 -0
- package/load-js/index.d.ts +1 -1
- package/load-js/index.js +1 -2
- package/nextTiken/index.js +5 -10
- package/nextTiken/index.js.gz +0 -0
- package/oss/index.d.ts +1 -1
- package/oss/index.js +1 -2
- package/package.json +10 -3
- package/pinyin-first-character/index.js +45 -50
- package/pinyin-first-character/index.js.gz +0 -0
- package/style/index.js +5 -9
- package/style/index.js.gz +0 -0
- package/style/style.d.ts +3 -3
- package/token-tools/index.d.ts +1 -1
- package/token-tools/index.js.gz +0 -0
- package/use-low-code/index.js +1 -2
- package/use-low-code/index.js.gz +0 -0
- package/vue/hooks/{use-model-value.d.ts → use-model-value/index.d.ts} +2 -0
- package/webSocket-service/index.js +41 -52
- package/webSocket-service/index.js.gz +0 -0
- package/webSocket-service/type.d.ts +28 -0
- package/with-install/index.d.ts +1 -1
- package/common-info/getInfoFromUrl.js +0 -85
- package/common-tools/obj-tools.js +0 -20
- package/common-tools/setHtmlMinWH.d.ts +0 -5
- package/common-tools/update-fav-icon.d.ts +0 -10
- package/common-tools/update-fav-icon.js +0 -22
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +0 -29
- package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +0 -19925
- package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +0 -54
- package/dimple-canvas/use-dimple-canvas/core/konva/index.js +0 -119
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.d.ts +0 -101
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.js +0 -17
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +0 -8
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js +0 -55
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.d.ts +0 -5
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.js +0 -14
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +0 -5
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.js +0 -5
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +0 -5
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js +0 -181
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +0 -4
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +0 -7402
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.d.ts +0 -6
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.js +0 -13
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +0 -4
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.js +0 -7
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.d.ts +0 -8
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js +0 -193
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +0 -11
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.js +0 -20
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +0 -5
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js +0 -52
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.d.ts +0 -2
- package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.js +0 -14
- package/dimple-canvas/use-dimple-canvas/index.d.ts +0 -9
- package/dimple-canvas/use-dimple-canvas/index.js +0 -10
- package/hooks/use-get-auth/apis.js +0 -8
- package/style/math.js +0 -17
- package/style/style.js +0 -61
- /package/api-services/modules/{app-manage.d.ts → app-manage/index.d.ts} +0 -0
- /package/api-services/modules/{app-manage.js → app-manage/index.js} +0 -0
- /package/api-services/modules/{authentication.d.ts → authentication/index.d.ts} +0 -0
- /package/api-services/modules/{authentication.js → authentication/index.js} +0 -0
- /package/api-services/modules/{bems.d.ts → bems/index.d.ts} +0 -0
- /package/api-services/modules/{bems.js → bems/index.js} +0 -0
- /package/api-services/modules/{contract.d.ts → contract/index.d.ts} +0 -0
- /package/api-services/modules/{contract.js → contract/index.js} +0 -0
- /package/api-services/modules/{duty-manage.d.ts → duty-manage/index.d.ts} +0 -0
- /package/api-services/modules/{duty-manage.js → duty-manage/index.js} +0 -0
- /package/api-services/modules/{enterpriseright.d.ts → enterpriseright/index.d.ts} +0 -0
- /package/api-services/modules/{enterpriseright.js → enterpriseright/index.js} +0 -0
- /package/api-services/modules/{gateway-edge.d.ts → gateway-edge/index.d.ts} +0 -0
- /package/api-services/modules/{gateway-edge.js → gateway-edge/index.js} +0 -0
- /package/api-services/modules/{iot.d.ts → iot/index.d.ts} +0 -0
- /package/api-services/modules/{iot.js → iot/index.js} +0 -0
- /package/api-services/modules/{justauth.d.ts → justauth/index.d.ts} +0 -0
- /package/api-services/modules/{justauth.js → justauth/index.js} +0 -0
- /package/api-services/modules/{knowledge.d.ts → knowledge/index.d.ts} +0 -0
- /package/api-services/modules/{knowledge.js → knowledge/index.js} +0 -0
- /package/api-services/modules/{link.d.ts → link/index.d.ts} +0 -0
- /package/api-services/modules/{link.js → link/index.js} +0 -0
- /package/api-services/modules/{permission.d.ts → permission/index.d.ts} +0 -0
- /package/api-services/modules/{permission.js → permission/index.js} +0 -0
- /package/api-services/modules/{platformManage.d.ts → platformManage/index.d.ts} +0 -0
- /package/api-services/modules/{platformManage.js → platformManage/index.js} +0 -0
- /package/api-services/modules/{portal.d.ts → portal/index.d.ts} +0 -0
- /package/api-services/modules/{portal.js → portal/index.js} +0 -0
- /package/api-services/modules/{space-manage.d.ts → space-manage/index.d.ts} +0 -0
- /package/api-services/modules/{space-manage.js → space-manage/index.js} +0 -0
- /package/api-services/modules/{super-admin.d.ts → super-admin/index.d.ts} +0 -0
- /package/api-services/modules/{super-admin.js → super-admin/index.js} +0 -0
- /package/api-services/modules/{supplier.d.ts → supplier/index.d.ts} +0 -0
- /package/api-services/modules/{supplier.js → supplier/index.js} +0 -0
- /package/api-services/modules/{supplychain-manage.d.ts → supplychain-manage/index.d.ts} +0 -0
- /package/api-services/modules/{supplychain-manage.js → supplychain-manage/index.js} +0 -0
- /package/api-services/modules/{systemConfiguration.d.ts → systemConfiguration/index.d.ts} +0 -0
- /package/api-services/modules/{systemConfiguration.js → systemConfiguration/index.js} +0 -0
- /package/api-services/modules/{tool.d.ts → tool/index.d.ts} +0 -0
- /package/api-services/modules/{tool.js → tool/index.js} +0 -0
- /package/api-services/src/{create-service.d.ts → create-service/index.d.ts} +0 -0
- /package/api-services/src/{create-service.js → create-service/index.js} +0 -0
- /package/common-info/{getIframeUrl.d.ts → getIframeUrl/index.d.ts} +0 -0
- /package/common-info/{getInfoFromUrl.d.ts → getInfoFromUrl/index.d.ts} +0 -0
- /package/common-tools/{arr-tools.js → arr-tools/index.js} +0 -0
- /package/common-tools/{date-format.d.ts → date-format/index.d.ts} +0 -0
- /package/common-tools/{handle-data.d.ts → handle-data/index.d.ts} +0 -0
- /package/common-tools/{handle-data.js → handle-data/index.js} +0 -0
- /package/common-tools/{obj-tools.d.ts → obj-tools/index.d.ts} +0 -0
- /package/common-tools/{platform-tools.d.ts → platform-tools/index.d.ts} +0 -0
- /package/common-tools/{queue-promise.js → queue-promise/index.js} +0 -0
- /package/common-tools/{setHtmlMinWH.js → setHtmlMinWH/index.js} +0 -0
- /package/create-api-service/{proxy-sso.d.ts → proxy-sso/index.d.ts} +0 -0
- /package/create-api-service/{proxy-sso.js → proxy-sso/index.js} +0 -0
- /package/directive/{auth.d.ts → auth/index.d.ts} +0 -0
- /package/directive/{clickOutside.d.ts → clickOutside/index.d.ts} +0 -0
- /package/directive/{clickOutside.js → clickOutside/index.js} +0 -0
- /package/directive/{hoverInside.d.ts → hoverInside/index.d.ts} +0 -0
- /package/directive/{hoverInside.js → hoverInside/index.js} +0 -0
- /package/directive/{utils.d.ts → utils/index.d.ts} +0 -0
- /package/directive/{utils.js → utils/index.js} +0 -0
- /package/hooks/popup-manager/{use-zindex.d.ts → use-zindex/index.d.ts} +0 -0
- /package/hooks/popup-manager/{use-zindex.js → use-zindex/index.js} +0 -0
- /package/vue/hooks/{use-model-value.js → use-model-value/index.js} +0 -0
|
@@ -8,12 +8,10 @@ const o = (n, t = "children") => {
|
|
|
8
8
|
return r && delete u[t], l && l.length ? e.concat(u, c(l, t, r)) : e.concat(u);
|
|
9
9
|
}, []) : [], s = (n, t, r = "children") => n.filter((e) => t(e)).map((e) => (e = Object.assign({}, e), e[r] && (e[r] = s(e[r], t)), e)), h = (n, t) => {
|
|
10
10
|
for (const r of n) {
|
|
11
|
-
if (t(r))
|
|
12
|
-
return r;
|
|
11
|
+
if (t(r)) return r;
|
|
13
12
|
if (r != null && r.children && r.children.length) {
|
|
14
13
|
const e = h(r.children, t);
|
|
15
|
-
if (e)
|
|
16
|
-
return e;
|
|
14
|
+
if (e) return e;
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
17
|
return null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const f = (t, r) => {
|
|
2
|
+
if (!t || !r || Object.keys(t).length !== Object.keys(r).length) return !1;
|
|
3
|
+
for (let e in t) {
|
|
4
|
+
if (r[e] === void 0) return !1;
|
|
5
|
+
if (typeof r[e] == "function" || typeof t[e] == "function") throw new Error("type error");
|
|
6
|
+
if (typeof r[e] != typeof t[e]) return !1;
|
|
7
|
+
if (typeof t[e] == "object") return f(t[e], r[e]);
|
|
8
|
+
if (t[e] !== r[e]) return !1;
|
|
9
|
+
}
|
|
10
|
+
return !0;
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
f as objEqual
|
|
14
|
+
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { getToken as o } from "@das-fed/utils/common-info";
|
|
2
2
|
const n = (t) => !!(!t.startsWith("http") || t.startsWith(location.origin)), i = (t) => {
|
|
3
|
-
if (!t)
|
|
4
|
-
return "";
|
|
3
|
+
if (!t) return "";
|
|
5
4
|
let e = t;
|
|
6
5
|
return n(t) && !t.includes("showLayout=false") && (e = t.indexOf("?") !== -1 ? t + "&showLayout=false" : t + "?showLayout=false"), e;
|
|
7
6
|
}, a = (t) => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 设置平台的favIcon
|
|
3
|
+
* @param favIcon 图标
|
|
4
|
+
* @param defaultIcon 默认图标
|
|
5
|
+
*/
|
|
6
|
+
export declare const updateFavIcon: (favIcon: string, defaultIcon?: string) => void;
|
|
7
|
+
/**
|
|
8
|
+
* 设置平台的favIcon,如果localStorage中没有则调用接口获取
|
|
9
|
+
* @param defaultIcon 默认图标
|
|
10
|
+
*/
|
|
11
|
+
export declare const setDasHtmlIcon: (defaultIcon?: string) => any;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { getFavIcon as s } from "@das-fed/utils/common-info";
|
|
2
|
+
import { pureImageSrc as l } from "@das-fed/utils/pure-image-src";
|
|
3
|
+
import { systemConfiguration as m } from "@das-fed/utils/api-services/modules";
|
|
4
|
+
const c = m.get("/visitor/appearance/with-default", (t) => (t.public = !0, t)), i = (t, o = "./logo.svg") => {
|
|
5
|
+
const r = t || o;
|
|
6
|
+
let e = document.querySelector('link[rel*="icon"]');
|
|
7
|
+
e ? e == null || e.setAttribute("href", r) : (e = document.createElement("link"), e.rel = "icon", e.type = "image/svg+xml", e.href = r, document.getElementsByTagName("head")[0].appendChild(e));
|
|
8
|
+
}, f = async (t = "./logo.svg") => {
|
|
9
|
+
let o = s();
|
|
10
|
+
if (!o) {
|
|
11
|
+
const [r, e] = await c().run();
|
|
12
|
+
if (r) return;
|
|
13
|
+
const { browserLogoImgHost: n = "", browserLogoImg: a = "" } = e;
|
|
14
|
+
o = a ? n + l(a) : "";
|
|
15
|
+
}
|
|
16
|
+
i(o, t);
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
f as setDasHtmlIcon,
|
|
20
|
+
i as updateFavIcon
|
|
21
|
+
};
|