@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.
Files changed (168) hide show
  1. package/__VLS_types.d.ts +124 -0
  2. package/api-services/modules/{file.d.ts → file/index.d.ts} +4 -4
  3. package/api-services/modules/{file.js → file/index.js} +18 -36
  4. package/api-services/modules/file/index.js.gz +0 -0
  5. package/api-services/modules/index.js.gz +0 -0
  6. package/atob/index.d.ts +2 -2
  7. package/common-info/{getIframeUrl.js → getIframeUrl/index.js} +1 -2
  8. package/common-info/getInfoFromUrl/index.js +84 -0
  9. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  10. package/common-info/index.d.ts +1 -1
  11. package/common-info/index.js +2 -4
  12. package/common-info/index.js.gz +0 -0
  13. package/common-info/{set-personal-info.d.ts → set-personal-info/index.d.ts} +1 -1
  14. package/common-info/{set-personal-info.js → set-personal-info/index.js} +10 -24
  15. package/common-info/set-personal-info/index.js.gz +0 -0
  16. package/common-info/type.d.ts +104 -0
  17. package/common-tools/{arr-tools.d.ts → arr-tools/index.d.ts} +1 -1
  18. package/common-tools/{date-format.js → date-format/index.js} +1 -2
  19. package/common-tools/{get-url-params.d.ts → get-url-params/index.d.ts} +1 -1
  20. package/common-tools/{get-url-params.js → get-url-params/index.js} +2 -4
  21. package/common-tools/get-url-params/index.js.gz +0 -0
  22. package/common-tools/{nest-tree-format.d.ts → nest-tree-format/index.d.ts} +1 -1
  23. package/common-tools/{nest-tree-format.js → nest-tree-format/index.js} +2 -4
  24. package/common-tools/obj-tools/index.js +14 -0
  25. package/common-tools/{platform-tools.js → platform-tools/index.js} +1 -2
  26. package/common-tools/{queue-promise.d.ts → queue-promise/index.d.ts} +1 -1
  27. package/common-tools/setHtmlMinWH/index.d.ts +5 -0
  28. package/common-tools/update-fav-icon/index.d.ts +11 -0
  29. package/common-tools/update-fav-icon/index.js +21 -0
  30. package/create-api-service/index.js +255 -295
  31. package/create-api-service/index.js.gz +0 -0
  32. package/create-api-service/{sso.d.ts → sso/index.d.ts} +5 -5
  33. package/create-api-service/{sso.js → sso/index.js} +421 -444
  34. package/create-api-service/sso/index.js.gz +0 -0
  35. package/curring-http/index.js +1626 -4809
  36. package/curring-http/index.js.gz +0 -0
  37. package/curring-http/type.d.ts +89 -0
  38. package/directive/{auth.js → auth/index.js} +2 -4
  39. package/directive/auth/index.js.gz +0 -0
  40. package/dom-check-in/index.js +5 -5
  41. package/dom-watcher/index.d.ts +1 -1
  42. package/esm-map.json +8 -0
  43. package/hooks/use-get-auth/index.d.ts +3 -3
  44. package/hooks/use-get-auth/index.js +4 -8
  45. package/hooks/use-get-auth/index.js.gz +0 -0
  46. package/load-js/index.d.ts +1 -1
  47. package/load-js/index.js +1 -2
  48. package/nextTiken/index.js +5 -10
  49. package/nextTiken/index.js.gz +0 -0
  50. package/oss/index.d.ts +1 -1
  51. package/oss/index.js +1 -2
  52. package/package.json +10 -3
  53. package/pinyin-first-character/index.js +45 -50
  54. package/pinyin-first-character/index.js.gz +0 -0
  55. package/style/index.js +5 -9
  56. package/style/index.js.gz +0 -0
  57. package/style/style.d.ts +3 -3
  58. package/token-tools/index.d.ts +1 -1
  59. package/token-tools/index.js.gz +0 -0
  60. package/use-low-code/index.js +1 -2
  61. package/use-low-code/index.js.gz +0 -0
  62. package/vue/hooks/{use-model-value.d.ts → use-model-value/index.d.ts} +2 -0
  63. package/webSocket-service/index.js +41 -52
  64. package/webSocket-service/index.js.gz +0 -0
  65. package/webSocket-service/type.d.ts +28 -0
  66. package/with-install/index.d.ts +1 -1
  67. package/common-info/getInfoFromUrl.js +0 -85
  68. package/common-tools/obj-tools.js +0 -20
  69. package/common-tools/setHtmlMinWH.d.ts +0 -5
  70. package/common-tools/update-fav-icon.d.ts +0 -10
  71. package/common-tools/update-fav-icon.js +0 -22
  72. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.d.ts +0 -29
  73. package/dimple-canvas/use-dimple-canvas/core/antv-x6/index.js +0 -19925
  74. package/dimple-canvas/use-dimple-canvas/core/konva/index.d.ts +0 -54
  75. package/dimple-canvas/use-dimple-canvas/core/konva/index.js +0 -119
  76. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.d.ts +0 -101
  77. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-event-listener.js +0 -17
  78. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.d.ts +0 -8
  79. package/dimple-canvas/use-dimple-canvas/core/konva/utils/add-object/index.js +0 -55
  80. package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.d.ts +0 -5
  81. package/dimple-canvas/use-dimple-canvas/core/konva/utils/create-canvas.js +0 -14
  82. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.d.ts +0 -5
  83. package/dimple-canvas/use-dimple-canvas/core/konva/utils/find.js +0 -5
  84. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.d.ts +0 -5
  85. package/dimple-canvas/use-dimple-canvas/core/konva/utils/guideline.js +0 -181
  86. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.d.ts +0 -4
  87. package/dimple-canvas/use-dimple-canvas/core/konva/utils/lib.js +0 -7402
  88. package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.d.ts +0 -6
  89. package/dimple-canvas/use-dimple-canvas/core/konva/utils/load-json.js +0 -13
  90. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.d.ts +0 -4
  91. package/dimple-canvas/use-dimple-canvas/core/konva/utils/remove-object.js +0 -7
  92. package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.d.ts +0 -8
  93. package/dimple-canvas/use-dimple-canvas/core/konva/utils/rule.js +0 -193
  94. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.d.ts +0 -11
  95. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transform-axis.js +0 -20
  96. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.d.ts +0 -5
  97. package/dimple-canvas/use-dimple-canvas/core/konva/utils/transformer.js +0 -52
  98. package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.d.ts +0 -2
  99. package/dimple-canvas/use-dimple-canvas/core/konva/utils/wheel-zoom.js +0 -14
  100. package/dimple-canvas/use-dimple-canvas/index.d.ts +0 -9
  101. package/dimple-canvas/use-dimple-canvas/index.js +0 -10
  102. package/hooks/use-get-auth/apis.js +0 -8
  103. package/style/math.js +0 -17
  104. package/style/style.js +0 -61
  105. /package/api-services/modules/{app-manage.d.ts → app-manage/index.d.ts} +0 -0
  106. /package/api-services/modules/{app-manage.js → app-manage/index.js} +0 -0
  107. /package/api-services/modules/{authentication.d.ts → authentication/index.d.ts} +0 -0
  108. /package/api-services/modules/{authentication.js → authentication/index.js} +0 -0
  109. /package/api-services/modules/{bems.d.ts → bems/index.d.ts} +0 -0
  110. /package/api-services/modules/{bems.js → bems/index.js} +0 -0
  111. /package/api-services/modules/{contract.d.ts → contract/index.d.ts} +0 -0
  112. /package/api-services/modules/{contract.js → contract/index.js} +0 -0
  113. /package/api-services/modules/{duty-manage.d.ts → duty-manage/index.d.ts} +0 -0
  114. /package/api-services/modules/{duty-manage.js → duty-manage/index.js} +0 -0
  115. /package/api-services/modules/{enterpriseright.d.ts → enterpriseright/index.d.ts} +0 -0
  116. /package/api-services/modules/{enterpriseright.js → enterpriseright/index.js} +0 -0
  117. /package/api-services/modules/{gateway-edge.d.ts → gateway-edge/index.d.ts} +0 -0
  118. /package/api-services/modules/{gateway-edge.js → gateway-edge/index.js} +0 -0
  119. /package/api-services/modules/{iot.d.ts → iot/index.d.ts} +0 -0
  120. /package/api-services/modules/{iot.js → iot/index.js} +0 -0
  121. /package/api-services/modules/{justauth.d.ts → justauth/index.d.ts} +0 -0
  122. /package/api-services/modules/{justauth.js → justauth/index.js} +0 -0
  123. /package/api-services/modules/{knowledge.d.ts → knowledge/index.d.ts} +0 -0
  124. /package/api-services/modules/{knowledge.js → knowledge/index.js} +0 -0
  125. /package/api-services/modules/{link.d.ts → link/index.d.ts} +0 -0
  126. /package/api-services/modules/{link.js → link/index.js} +0 -0
  127. /package/api-services/modules/{permission.d.ts → permission/index.d.ts} +0 -0
  128. /package/api-services/modules/{permission.js → permission/index.js} +0 -0
  129. /package/api-services/modules/{platformManage.d.ts → platformManage/index.d.ts} +0 -0
  130. /package/api-services/modules/{platformManage.js → platformManage/index.js} +0 -0
  131. /package/api-services/modules/{portal.d.ts → portal/index.d.ts} +0 -0
  132. /package/api-services/modules/{portal.js → portal/index.js} +0 -0
  133. /package/api-services/modules/{space-manage.d.ts → space-manage/index.d.ts} +0 -0
  134. /package/api-services/modules/{space-manage.js → space-manage/index.js} +0 -0
  135. /package/api-services/modules/{super-admin.d.ts → super-admin/index.d.ts} +0 -0
  136. /package/api-services/modules/{super-admin.js → super-admin/index.js} +0 -0
  137. /package/api-services/modules/{supplier.d.ts → supplier/index.d.ts} +0 -0
  138. /package/api-services/modules/{supplier.js → supplier/index.js} +0 -0
  139. /package/api-services/modules/{supplychain-manage.d.ts → supplychain-manage/index.d.ts} +0 -0
  140. /package/api-services/modules/{supplychain-manage.js → supplychain-manage/index.js} +0 -0
  141. /package/api-services/modules/{systemConfiguration.d.ts → systemConfiguration/index.d.ts} +0 -0
  142. /package/api-services/modules/{systemConfiguration.js → systemConfiguration/index.js} +0 -0
  143. /package/api-services/modules/{tool.d.ts → tool/index.d.ts} +0 -0
  144. /package/api-services/modules/{tool.js → tool/index.js} +0 -0
  145. /package/api-services/src/{create-service.d.ts → create-service/index.d.ts} +0 -0
  146. /package/api-services/src/{create-service.js → create-service/index.js} +0 -0
  147. /package/common-info/{getIframeUrl.d.ts → getIframeUrl/index.d.ts} +0 -0
  148. /package/common-info/{getInfoFromUrl.d.ts → getInfoFromUrl/index.d.ts} +0 -0
  149. /package/common-tools/{arr-tools.js → arr-tools/index.js} +0 -0
  150. /package/common-tools/{date-format.d.ts → date-format/index.d.ts} +0 -0
  151. /package/common-tools/{handle-data.d.ts → handle-data/index.d.ts} +0 -0
  152. /package/common-tools/{handle-data.js → handle-data/index.js} +0 -0
  153. /package/common-tools/{obj-tools.d.ts → obj-tools/index.d.ts} +0 -0
  154. /package/common-tools/{platform-tools.d.ts → platform-tools/index.d.ts} +0 -0
  155. /package/common-tools/{queue-promise.js → queue-promise/index.js} +0 -0
  156. /package/common-tools/{setHtmlMinWH.js → setHtmlMinWH/index.js} +0 -0
  157. /package/create-api-service/{proxy-sso.d.ts → proxy-sso/index.d.ts} +0 -0
  158. /package/create-api-service/{proxy-sso.js → proxy-sso/index.js} +0 -0
  159. /package/directive/{auth.d.ts → auth/index.d.ts} +0 -0
  160. /package/directive/{clickOutside.d.ts → clickOutside/index.d.ts} +0 -0
  161. /package/directive/{clickOutside.js → clickOutside/index.js} +0 -0
  162. /package/directive/{hoverInside.d.ts → hoverInside/index.d.ts} +0 -0
  163. /package/directive/{hoverInside.js → hoverInside/index.js} +0 -0
  164. /package/directive/{utils.d.ts → utils/index.d.ts} +0 -0
  165. /package/directive/{utils.js → utils/index.js} +0 -0
  166. /package/hooks/popup-manager/{use-zindex.d.ts → use-zindex/index.d.ts} +0 -0
  167. /package/hooks/popup-manager/{use-zindex.js → use-zindex/index.js} +0 -0
  168. /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) => {
@@ -3,4 +3,4 @@
3
3
  * @param promiseFuncArr promise数组
4
4
  * @returns promise
5
5
  */
6
- export declare function runPromiseByQueue(promiseFuncArr: any[]): Promise<unknown>;
6
+ export declare function runPromiseByQueue(promiseFuncArr: any[]): any;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 自定义html最小宽高
3
+ * @param layout minWidth、minHeight为空则为重置
4
+ */
5
+ export declare const setHtmlMinWH: (layout?: Record<"minWidth" | "minHeight", string>) => void;
@@ -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
+ };