@das-fed/utils 6.3.0-beta.0 → 6.3.0-beta.3
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/atob/index.d.ts +2 -2
- package/common-info/index.d.ts +1 -1
- package/common-info/index.js +2 -4
- package/common-info/index.js.gz +0 -0
- package/create-api-service/index.js +255 -295
- package/create-api-service/index.js.gz +0 -0
- package/curring-http/index.js +1626 -4809
- package/curring-http/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/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/webSocket-service/index.js +41 -52
- package/webSocket-service/index.js.gz +0 -0
- package/with-install/index.d.ts +1 -1
- package/api-services/modules/app-manage.d.ts +0 -2
- package/api-services/modules/app-manage.js +0 -5
- package/api-services/modules/authentication.d.ts +0 -2
- package/api-services/modules/authentication.js +0 -5
- package/api-services/modules/bems.d.ts +0 -6
- package/api-services/modules/bems.js +0 -9
- package/api-services/modules/contract.d.ts +0 -2
- package/api-services/modules/contract.js +0 -5
- package/api-services/modules/duty-manage.d.ts +0 -7
- package/api-services/modules/duty-manage.js +0 -14
- package/api-services/modules/enterpriseright.d.ts +0 -2
- package/api-services/modules/enterpriseright.js +0 -5
- package/api-services/modules/file.d.ts +0 -36
- package/api-services/modules/file.js +0 -517
- package/api-services/modules/gateway-edge.d.ts +0 -2
- package/api-services/modules/gateway-edge.js +0 -5
- package/api-services/modules/index.d.ts +0 -21
- package/api-services/modules/index.js +0 -59
- package/api-services/modules/iot.d.ts +0 -15
- package/api-services/modules/iot.js +0 -18
- package/api-services/modules/justauth.d.ts +0 -3
- package/api-services/modules/justauth.js +0 -6
- package/api-services/modules/knowledge.d.ts +0 -2
- package/api-services/modules/knowledge.js +0 -5
- package/api-services/modules/link.d.ts +0 -2
- package/api-services/modules/link.js +0 -5
- package/api-services/modules/permission.d.ts +0 -2
- package/api-services/modules/permission.js +0 -5
- package/api-services/modules/platformManage.d.ts +0 -14
- package/api-services/modules/platformManage.js +0 -13
- package/api-services/modules/portal.d.ts +0 -2
- package/api-services/modules/portal.js +0 -5
- package/api-services/modules/space-manage.d.ts +0 -2
- package/api-services/modules/space-manage.js +0 -5
- package/api-services/modules/super-admin.d.ts +0 -8
- package/api-services/modules/super-admin.js +0 -8
- package/api-services/modules/supplier.d.ts +0 -6
- package/api-services/modules/supplier.js +0 -7
- package/api-services/modules/supplychain-manage.d.ts +0 -2
- package/api-services/modules/supplychain-manage.js +0 -5
- package/api-services/modules/systemConfiguration.d.ts +0 -2
- package/api-services/modules/systemConfiguration.js +0 -5
- package/api-services/modules/tool.d.ts +0 -2
- package/api-services/modules/tool.js +0 -5
- package/api-services/src/create-service.d.ts +0 -1
- package/api-services/src/create-service.js +0 -4
- package/common-info/getIframeUrl.d.ts +0 -9
- package/common-info/getIframeUrl.js +0 -11
- package/common-info/getInfoFromUrl.d.ts +0 -8
- package/common-info/getInfoFromUrl.js +0 -85
- package/common-info/set-personal-info.d.ts +0 -5
- package/common-info/set-personal-info.js +0 -1678
- package/common-tools/arr-tools.d.ts +0 -15
- package/common-tools/arr-tools.js +0 -8
- package/common-tools/date-format.d.ts +0 -7
- package/common-tools/date-format.js +0 -19
- package/common-tools/get-url-params.d.ts +0 -46
- package/common-tools/get-url-params.js +0 -62
- package/common-tools/handle-data.d.ts +0 -6
- package/common-tools/handle-data.js +0 -4
- package/common-tools/nest-tree-format.d.ts +0 -30
- package/common-tools/nest-tree-format.js +0 -26
- package/common-tools/obj-tools.d.ts +0 -7
- package/common-tools/obj-tools.js +0 -20
- package/common-tools/platform-tools.d.ts +0 -18
- package/common-tools/platform-tools.js +0 -15
- package/common-tools/queue-promise.d.ts +0 -6
- package/common-tools/queue-promise.js +0 -9
- package/common-tools/setHtmlMinWH.d.ts +0 -5
- package/common-tools/setHtmlMinWH.js +0 -11
- package/common-tools/update-fav-icon.d.ts +0 -10
- package/common-tools/update-fav-icon.js +0 -22
- package/create-api-service/proxy-sso.d.ts +0 -3
- package/create-api-service/proxy-sso.js +0 -21
- package/create-api-service/sso.d.ts +0 -23
- package/create-api-service/sso.js +0 -1969
- 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/directive/auth.d.ts +0 -8
- package/directive/auth.js +0 -64
- package/directive/clickOutside.d.ts +0 -6
- package/directive/clickOutside.js +0 -27
- package/directive/hoverInside.d.ts +0 -6
- package/directive/hoverInside.js +0 -21
- package/directive/utils.d.ts +0 -7
- package/directive/utils.js +0 -7
- package/hooks/popup-manager/use-zindex.d.ts +0 -5
- package/hooks/popup-manager/use-zindex.js +0 -22
- package/hooks/use-get-auth/apis.d.ts +0 -4
- package/hooks/use-get-auth/apis.js +0 -8
- package/hooks/use-get-auth/index.d.ts +0 -9
- package/hooks/use-get-auth/index.js +0 -57
- package/style/math.js +0 -17
- package/style/style.js +0 -61
- package/vue/hooks/use-model-value.d.ts +0 -3
- package/vue/hooks/use-model-value.js +0 -10
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** 客户管理-客户信息 */
|
|
2
|
-
export declare const customer: any;
|
|
3
|
-
/** 客户管理-企业信息 */
|
|
4
|
-
export declare const company: any;
|
|
5
|
-
/** 客户管理-客户级别 */
|
|
6
|
-
export declare const customerGrade: any;
|
|
7
|
-
/** 客户管理-客户类型 */
|
|
8
|
-
export declare const customerType: any;
|
|
9
|
-
/** 项目管理*/
|
|
10
|
-
export declare const projectManage: {
|
|
11
|
-
list: any;
|
|
12
|
-
app: any;
|
|
13
|
-
people: any;
|
|
14
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { createService as e } from "@das-fed/utils/create-api-service";
|
|
2
|
-
const o = "v1", p = e(`/api/customer/customer/${o}`), c = e(`/api/customer/company/${o}`), r = e(`/api/customer/customer-grade/${o}`), s = e(`/api/customer/customer-type/${o}`), a = {
|
|
3
|
-
list: e(`/api/project/${o}/list`),
|
|
4
|
-
app: e(`/api/project/${o}/app`),
|
|
5
|
-
people: e(`/api/project/${o}/people`)
|
|
6
|
-
};
|
|
7
|
-
export {
|
|
8
|
-
c as company,
|
|
9
|
-
p as customer,
|
|
10
|
-
r as customerGrade,
|
|
11
|
-
s as customerType,
|
|
12
|
-
a as projectManage
|
|
13
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/** 超管后台 - portal */
|
|
2
|
-
export declare const superadminPortal: any;
|
|
3
|
-
/** 超管后台 - 权限 */
|
|
4
|
-
export declare const superadminPermission: any;
|
|
5
|
-
/** 超管后台 - 资源管理 */
|
|
6
|
-
export declare const superadminResource: any;
|
|
7
|
-
/** 超管后台 - 授权管理 */
|
|
8
|
-
export declare const superadminLicense: any;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { createService as e } from "@das-fed/utils/create-api-service";
|
|
2
|
-
const s = "v1", r = e(`/api/superadmin/portal/${s}`), n = e(`/api/superadmin/permission/${s}`), p = e(`/api/superadmin/resource/${s}`), a = e(`/api/superadmin/license/${s}`);
|
|
3
|
-
export {
|
|
4
|
-
a as superadminLicense,
|
|
5
|
-
n as superadminPermission,
|
|
6
|
-
r as superadminPortal,
|
|
7
|
-
p as superadminResource
|
|
8
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { createService as p } from "@das-fed/utils/create-api-service";
|
|
2
|
-
const i = "v1", e = p(`/api/supply/supplier/${i}`), r = p(`/api/supplier/${i}`), a = p(`/api/supplier/${i}/classification`);
|
|
3
|
-
export {
|
|
4
|
-
e as supplier,
|
|
5
|
-
a as supplierClassification,
|
|
6
|
-
r as supplierManage
|
|
7
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { createService } from '@das-fed/utils/create-api-service';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
type pageType = 'editor' | 'editor3d' | 'editor2d3d' | 'preview' | 'preview3d';
|
|
2
|
-
/**
|
|
3
|
-
* 编辑器的路径和预览图纸的路径
|
|
4
|
-
* @param page 'editor' | 'editor3d' | 'editor2d3d' | 'preview' | 'preview3d'
|
|
5
|
-
* @param query 路由参数location.search
|
|
6
|
-
* @returns
|
|
7
|
-
*/
|
|
8
|
-
export declare const getIframeUrl: (page: pageType, query?: Record<any, any>) => any;
|
|
9
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { getFullPath as n } from "@das-fed/utils/common-tools";
|
|
2
|
-
const l = (r, t) => {
|
|
3
|
-
if (!r)
|
|
4
|
-
return;
|
|
5
|
-
let e = {};
|
|
6
|
-
const i = "enterpriseadmin/iocvisual";
|
|
7
|
-
return (r === "preview" || r === "preview3d") && (e = { showLayout: !1 }), n("/" + i + "/" + r, { ...e, ...t });
|
|
8
|
-
};
|
|
9
|
-
export {
|
|
10
|
-
l as getIframeUrl
|
|
11
|
-
};
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/*! js-cookie v3.0.5 | MIT */
|
|
2
|
-
function p(e) {
|
|
3
|
-
for (var n = 1; n < arguments.length; n++) {
|
|
4
|
-
var t = arguments[n];
|
|
5
|
-
for (var i in t)
|
|
6
|
-
e[i] = t[i];
|
|
7
|
-
}
|
|
8
|
-
return e;
|
|
9
|
-
}
|
|
10
|
-
var u = {
|
|
11
|
-
read: function(e) {
|
|
12
|
-
return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
|
|
13
|
-
},
|
|
14
|
-
write: function(e) {
|
|
15
|
-
return encodeURIComponent(e).replace(
|
|
16
|
-
/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
|
|
17
|
-
decodeURIComponent
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
function g(e, n) {
|
|
22
|
-
function t(o, f, r) {
|
|
23
|
-
if (!(typeof document > "u")) {
|
|
24
|
-
r = p({}, n, r), typeof r.expires == "number" && (r.expires = new Date(Date.now() + r.expires * 864e5)), r.expires && (r.expires = r.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
|
|
25
|
-
var c = "";
|
|
26
|
-
for (var s in r)
|
|
27
|
-
r[s] && (c += "; " + s, r[s] !== !0 && (c += "=" + r[s].split(";")[0]));
|
|
28
|
-
return document.cookie = o + "=" + e.write(f, o) + c;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
function i(o) {
|
|
32
|
-
if (!(typeof document > "u" || arguments.length && !o)) {
|
|
33
|
-
for (var f = document.cookie ? document.cookie.split("; ") : [], r = {}, c = 0; c < f.length; c++) {
|
|
34
|
-
var s = f[c].split("="), d = s.slice(1).join("=");
|
|
35
|
-
try {
|
|
36
|
-
var a = decodeURIComponent(s[0]);
|
|
37
|
-
if (r[a] = e.read(d, a), o === a)
|
|
38
|
-
break;
|
|
39
|
-
} catch {
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
return o ? r[o] : r;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return Object.create(
|
|
46
|
-
{
|
|
47
|
-
set: t,
|
|
48
|
-
get: i,
|
|
49
|
-
remove: function(o, f) {
|
|
50
|
-
t(
|
|
51
|
-
o,
|
|
52
|
-
"",
|
|
53
|
-
p({}, f, {
|
|
54
|
-
expires: -1
|
|
55
|
-
})
|
|
56
|
-
);
|
|
57
|
-
},
|
|
58
|
-
withAttributes: function(o) {
|
|
59
|
-
return g(this.converter, p({}, this.attributes, o));
|
|
60
|
-
},
|
|
61
|
-
withConverter: function(o) {
|
|
62
|
-
return g(p({}, this.converter, o), this.attributes);
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
attributes: { value: Object.freeze(n) },
|
|
67
|
-
converter: { value: Object.freeze(e) }
|
|
68
|
-
}
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
var l = g(u, { path: "/" });
|
|
72
|
-
const m = () => {
|
|
73
|
-
const e = new URL(location.href).searchParams, n = e.get("token") || e.get("accessToken") || e.get("accesstoken") || "";
|
|
74
|
-
n && (console.log("从url上取token:", n), JSON.stringify({ access_token: n }), l.set("accessToken", n));
|
|
75
|
-
}, v = () => {
|
|
76
|
-
const e = JSON.parse(sessionStorage.getItem("projectInfo") || "{}"), n = new URL(location.href).searchParams, t = n.get("project") || n.get("projectId") || "";
|
|
77
|
-
if (!t)
|
|
78
|
-
return;
|
|
79
|
-
const i = n.get("projectParent") || n.get("projectParentId") || (e == null ? void 0 : e.parentId) || "", o = n.get("projectName") || (e == null ? void 0 : e.name) || "";
|
|
80
|
-
console.log("从url上取project:", t), sessionStorage.setItem("project", t), sessionStorage.setItem("projectInfo", JSON.stringify({ ...e, id: t, name: o, parentId: i }));
|
|
81
|
-
};
|
|
82
|
-
export {
|
|
83
|
-
v as getProjectInfoFromQuery,
|
|
84
|
-
m as getTokenFromQuery
|
|
85
|
-
};
|