@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.
Files changed (154) hide show
  1. package/atob/index.d.ts +2 -2
  2. package/common-info/index.d.ts +1 -1
  3. package/common-info/index.js +2 -4
  4. package/common-info/index.js.gz +0 -0
  5. package/create-api-service/index.js +255 -295
  6. package/create-api-service/index.js.gz +0 -0
  7. package/curring-http/index.js +1626 -4809
  8. package/curring-http/index.js.gz +0 -0
  9. package/dom-check-in/index.js +5 -5
  10. package/dom-watcher/index.d.ts +1 -1
  11. package/esm-map.json +8 -0
  12. package/load-js/index.d.ts +1 -1
  13. package/load-js/index.js +1 -2
  14. package/nextTiken/index.js +5 -10
  15. package/nextTiken/index.js.gz +0 -0
  16. package/oss/index.d.ts +1 -1
  17. package/oss/index.js +1 -2
  18. package/package.json +10 -3
  19. package/pinyin-first-character/index.js +45 -50
  20. package/pinyin-first-character/index.js.gz +0 -0
  21. package/style/index.js +5 -9
  22. package/style/index.js.gz +0 -0
  23. package/style/style.d.ts +3 -3
  24. package/token-tools/index.d.ts +1 -1
  25. package/token-tools/index.js.gz +0 -0
  26. package/use-low-code/index.js +1 -2
  27. package/use-low-code/index.js.gz +0 -0
  28. package/webSocket-service/index.js +41 -52
  29. package/webSocket-service/index.js.gz +0 -0
  30. package/with-install/index.d.ts +1 -1
  31. package/api-services/modules/app-manage.d.ts +0 -2
  32. package/api-services/modules/app-manage.js +0 -5
  33. package/api-services/modules/authentication.d.ts +0 -2
  34. package/api-services/modules/authentication.js +0 -5
  35. package/api-services/modules/bems.d.ts +0 -6
  36. package/api-services/modules/bems.js +0 -9
  37. package/api-services/modules/contract.d.ts +0 -2
  38. package/api-services/modules/contract.js +0 -5
  39. package/api-services/modules/duty-manage.d.ts +0 -7
  40. package/api-services/modules/duty-manage.js +0 -14
  41. package/api-services/modules/enterpriseright.d.ts +0 -2
  42. package/api-services/modules/enterpriseright.js +0 -5
  43. package/api-services/modules/file.d.ts +0 -36
  44. package/api-services/modules/file.js +0 -517
  45. package/api-services/modules/gateway-edge.d.ts +0 -2
  46. package/api-services/modules/gateway-edge.js +0 -5
  47. package/api-services/modules/index.d.ts +0 -21
  48. package/api-services/modules/index.js +0 -59
  49. package/api-services/modules/iot.d.ts +0 -15
  50. package/api-services/modules/iot.js +0 -18
  51. package/api-services/modules/justauth.d.ts +0 -3
  52. package/api-services/modules/justauth.js +0 -6
  53. package/api-services/modules/knowledge.d.ts +0 -2
  54. package/api-services/modules/knowledge.js +0 -5
  55. package/api-services/modules/link.d.ts +0 -2
  56. package/api-services/modules/link.js +0 -5
  57. package/api-services/modules/permission.d.ts +0 -2
  58. package/api-services/modules/permission.js +0 -5
  59. package/api-services/modules/platformManage.d.ts +0 -14
  60. package/api-services/modules/platformManage.js +0 -13
  61. package/api-services/modules/portal.d.ts +0 -2
  62. package/api-services/modules/portal.js +0 -5
  63. package/api-services/modules/space-manage.d.ts +0 -2
  64. package/api-services/modules/space-manage.js +0 -5
  65. package/api-services/modules/super-admin.d.ts +0 -8
  66. package/api-services/modules/super-admin.js +0 -8
  67. package/api-services/modules/supplier.d.ts +0 -6
  68. package/api-services/modules/supplier.js +0 -7
  69. package/api-services/modules/supplychain-manage.d.ts +0 -2
  70. package/api-services/modules/supplychain-manage.js +0 -5
  71. package/api-services/modules/systemConfiguration.d.ts +0 -2
  72. package/api-services/modules/systemConfiguration.js +0 -5
  73. package/api-services/modules/tool.d.ts +0 -2
  74. package/api-services/modules/tool.js +0 -5
  75. package/api-services/src/create-service.d.ts +0 -1
  76. package/api-services/src/create-service.js +0 -4
  77. package/common-info/getIframeUrl.d.ts +0 -9
  78. package/common-info/getIframeUrl.js +0 -11
  79. package/common-info/getInfoFromUrl.d.ts +0 -8
  80. package/common-info/getInfoFromUrl.js +0 -85
  81. package/common-info/set-personal-info.d.ts +0 -5
  82. package/common-info/set-personal-info.js +0 -1678
  83. package/common-tools/arr-tools.d.ts +0 -15
  84. package/common-tools/arr-tools.js +0 -8
  85. package/common-tools/date-format.d.ts +0 -7
  86. package/common-tools/date-format.js +0 -19
  87. package/common-tools/get-url-params.d.ts +0 -46
  88. package/common-tools/get-url-params.js +0 -62
  89. package/common-tools/handle-data.d.ts +0 -6
  90. package/common-tools/handle-data.js +0 -4
  91. package/common-tools/nest-tree-format.d.ts +0 -30
  92. package/common-tools/nest-tree-format.js +0 -26
  93. package/common-tools/obj-tools.d.ts +0 -7
  94. package/common-tools/obj-tools.js +0 -20
  95. package/common-tools/platform-tools.d.ts +0 -18
  96. package/common-tools/platform-tools.js +0 -15
  97. package/common-tools/queue-promise.d.ts +0 -6
  98. package/common-tools/queue-promise.js +0 -9
  99. package/common-tools/setHtmlMinWH.d.ts +0 -5
  100. package/common-tools/setHtmlMinWH.js +0 -11
  101. package/common-tools/update-fav-icon.d.ts +0 -10
  102. package/common-tools/update-fav-icon.js +0 -22
  103. package/create-api-service/proxy-sso.d.ts +0 -3
  104. package/create-api-service/proxy-sso.js +0 -21
  105. package/create-api-service/sso.d.ts +0 -23
  106. package/create-api-service/sso.js +0 -1969
  107. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +0 -29
  108. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +0 -19925
  109. package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +0 -54
  110. package/dimple-canvas/use-dimple-canvas/core/konva/index.js +0 -119
  111. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.d.ts +0 -101
  112. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.js +0 -17
  113. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +0 -8
  114. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js +0 -55
  115. package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.d.ts +0 -5
  116. package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.js +0 -14
  117. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +0 -5
  118. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.js +0 -5
  119. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +0 -5
  120. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js +0 -181
  121. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +0 -4
  122. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +0 -7402
  123. package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.d.ts +0 -6
  124. package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.js +0 -13
  125. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +0 -4
  126. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.js +0 -7
  127. package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.d.ts +0 -8
  128. package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js +0 -193
  129. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +0 -11
  130. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.js +0 -20
  131. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +0 -5
  132. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js +0 -52
  133. package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.d.ts +0 -2
  134. package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.js +0 -14
  135. package/dimple-canvas/use-dimple-canvas/index.d.ts +0 -9
  136. package/dimple-canvas/use-dimple-canvas/index.js +0 -10
  137. package/directive/auth.d.ts +0 -8
  138. package/directive/auth.js +0 -64
  139. package/directive/clickOutside.d.ts +0 -6
  140. package/directive/clickOutside.js +0 -27
  141. package/directive/hoverInside.d.ts +0 -6
  142. package/directive/hoverInside.js +0 -21
  143. package/directive/utils.d.ts +0 -7
  144. package/directive/utils.js +0 -7
  145. package/hooks/popup-manager/use-zindex.d.ts +0 -5
  146. package/hooks/popup-manager/use-zindex.js +0 -22
  147. package/hooks/use-get-auth/apis.d.ts +0 -4
  148. package/hooks/use-get-auth/apis.js +0 -8
  149. package/hooks/use-get-auth/index.d.ts +0 -9
  150. package/hooks/use-get-auth/index.js +0 -57
  151. package/style/math.js +0 -17
  152. package/style/style.js +0 -61
  153. package/vue/hooks/use-model-value.d.ts +0 -3
  154. package/vue/hooks/use-model-value.js +0 -10
@@ -1,2 +0,0 @@
1
- /** 统一权限服务 */
2
- export declare const permission: any;
@@ -1,5 +0,0 @@
1
- import { createService as e } from "@das-fed/utils/create-api-service";
2
- const i = "v1", r = e(`/api/permission/${i}`);
3
- export {
4
- r as permission
5
- };
@@ -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,2 +0,0 @@
1
- /** portal服务 */
2
- export declare const portal: any;
@@ -1,5 +0,0 @@
1
- import { createService as r } from "@das-fed/utils/create-api-service";
2
- const o = "v1", t = r(`/api/portal/user/${o}`);
3
- export {
4
- t as portal
5
- };
@@ -1,2 +0,0 @@
1
- /** 空间建筑 space building */
2
- export declare const spaceManage: any;
@@ -1,5 +0,0 @@
1
- import { createService as e } from "@das-fed/utils/create-api-service";
2
- const a = "v1", r = e(`/api/space-manage/space-tree/${a}`);
3
- export {
4
- r as spaceManage
5
- };
@@ -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,6 +0,0 @@
1
- /** 供应链管理 - 供应商管理 */
2
- export declare const supplier: any;
3
- /** 供应链管理 - 供应商管理 */
4
- export declare const supplierManage: any;
5
- /** 供应链管理 - 供应商分类 */
6
- export declare const supplierClassification: any;
@@ -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,2 +0,0 @@
1
- /** 供应链管理 - 品牌模型 */
2
- export declare const enterpriseadminBrandModel: any;
@@ -1,5 +0,0 @@
1
- import { createService as e } from "@das-fed/utils/create-api-service";
2
- const r = "v1", o = e(`/api/supply/brand/${r}`);
3
- export {
4
- o as enterpriseadminBrandModel
5
- };
@@ -1,2 +0,0 @@
1
- /** 系统配置 */
2
- export declare const systemConfiguration: any;
@@ -1,5 +0,0 @@
1
- import { createService as o } from "@das-fed/utils/create-api-service";
2
- const e = "v1", i = o(`/api/system-config/${e}`);
3
- export {
4
- i as systemConfiguration
5
- };
@@ -1,2 +0,0 @@
1
- /** 工具服务 */
2
- export declare const tool: any;
@@ -1,5 +0,0 @@
1
- import { createService as o } from "@das-fed/utils/create-api-service";
2
- const t = "v2", r = o(`/api/tool/${t}`);
3
- export {
4
- r as tool
5
- };
@@ -1 +0,0 @@
1
- export { createService } from '@das-fed/utils/create-api-service';
@@ -1,4 +0,0 @@
1
- import { createService as c } from "@das-fed/utils/create-api-service";
2
- export {
3
- c as createService
4
- };
@@ -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,8 +0,0 @@
1
- /**
2
- * 从url获取token
3
- */
4
- export declare const getTokenFromQuery: () => void;
5
- /**
6
- * 从url上获取project
7
- */
8
- export declare const getProjectInfoFromQuery: () => void;
@@ -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
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * 获取用户信息存入sessionStorage
3
- * @param token token
4
- */
5
- export declare const setPersonalInfo: (token: string) => Promise<void>;