@das-fed/utils 6.4.0-hot.5 → 6.4.0-hot.50

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 (111) hide show
  1. package/api-services/i18n/index.d.ts +53 -0
  2. package/api-services/i18n/index.js +27 -0
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +1443 -1270
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +1869 -1708
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +1869 -1708
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +1873 -1712
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +1869 -1708
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +1860 -1699
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +1776 -1629
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.d.ts +1 -0
  19. package/api-services/modules/file/index.js +3109 -156
  20. package/api-services/modules/file/index.js.gz +0 -0
  21. package/api-services/modules/gateway-edge/index.js +1869 -1708
  22. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  23. package/api-services/modules/index.js +1670 -1504
  24. package/api-services/modules/index.js.gz +0 -0
  25. package/api-services/modules/iot/index.d.ts +1 -0
  26. package/api-services/modules/iot/index.js +1885 -1723
  27. package/api-services/modules/iot/index.js.gz +0 -0
  28. package/api-services/modules/justauth/index.js +1813 -1670
  29. package/api-services/modules/justauth/index.js.gz +0 -0
  30. package/api-services/modules/knowledge/index.js +1869 -1708
  31. package/api-services/modules/knowledge/index.js.gz +0 -0
  32. package/api-services/modules/link/index.js +1869 -1708
  33. package/api-services/modules/link/index.js.gz +0 -0
  34. package/api-services/modules/permission/index.js +1769 -1626
  35. package/api-services/modules/permission/index.js.gz +0 -0
  36. package/api-services/modules/platformManage/index.js +1881 -1720
  37. package/api-services/modules/platformManage/index.js.gz +0 -0
  38. package/api-services/modules/portal/index.js +1853 -1692
  39. package/api-services/modules/portal/index.js.gz +0 -0
  40. package/api-services/modules/space-manage/index.js +1869 -1708
  41. package/api-services/modules/space-manage/index.js.gz +0 -0
  42. package/api-services/modules/super-admin/index.js +1817 -1674
  43. package/api-services/modules/super-admin/index.js.gz +0 -0
  44. package/api-services/modules/supplier/index.js +1816 -1673
  45. package/api-services/modules/supplier/index.js.gz +0 -0
  46. package/api-services/modules/supplychain-manage/index.js +1853 -1692
  47. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  48. package/api-services/modules/systemConfiguration/index.js +1868 -1707
  49. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  50. package/api-services/modules/tool/index.js +1869 -1708
  51. package/api-services/modules/tool/index.js.gz +0 -0
  52. package/api-services/src/create-service/index.js +1811 -1668
  53. package/api-services/src/create-service/index.js.gz +0 -0
  54. package/common-info/getInfoFromUrl/index.js.gz +0 -0
  55. package/common-info/index.d.ts +11 -3
  56. package/common-info/index.js +112 -56
  57. package/common-info/index.js.gz +0 -0
  58. package/common-info/set-personal-info/index.js +265 -241
  59. package/common-info/set-personal-info/index.js.gz +0 -0
  60. package/common-info/type.d.ts +218 -104
  61. package/common-tools/calc-text-width/index.d.ts +1 -0
  62. package/common-tools/calc-text-width/index.js +10 -0
  63. package/common-tools/extract-file-name/index.d.ts +1 -0
  64. package/common-tools/extract-file-name/index.js +1466 -0
  65. package/common-tools/extract-file-name/index.js.gz +0 -0
  66. package/common-tools/get-file-extension/index.d.ts +6 -0
  67. package/common-tools/get-file-extension/index.js +7 -0
  68. package/common-tools/get-url-params/index.d.ts +1 -1
  69. package/common-tools/get-url-params/index.js.gz +0 -0
  70. package/common-tools/index.d.ts +4 -0
  71. package/common-tools/index.js +4 -0
  72. package/common-tools/nest-tree-format/index.d.ts +1 -1
  73. package/common-tools/nest-tree-format/index.js +15 -15
  74. package/common-tools/setHtmlMinWH/index.js +4 -8
  75. package/common-tools/update-browser-title/index.d.ts +1 -0
  76. package/common-tools/update-browser-title/index.js +12 -0
  77. package/common-tools/update-fav-icon/index.js +15 -14
  78. package/create-api-service/i18n/index.d.ts +33 -0
  79. package/create-api-service/i18n/index.js +15 -0
  80. package/create-api-service/index.d.ts +3 -1
  81. package/create-api-service/index.js +1872 -1711
  82. package/create-api-service/index.js.gz +0 -0
  83. package/create-api-service/sso/index.d.ts +0 -2
  84. package/create-api-service/sso/index.js +753 -629
  85. package/create-api-service/sso/index.js.gz +0 -0
  86. package/curring-http/index.js +338 -320
  87. package/curring-http/index.js.gz +0 -0
  88. package/curring-http/type.d.ts +87 -87
  89. package/directive/auth/index.js.gz +0 -0
  90. package/directive/hoverInside/index.d.ts +1 -1
  91. package/dom-check-in/index.js +2 -2
  92. package/dom-watcher/index.d.ts +1 -1
  93. package/esm-map.json +9 -2
  94. package/hooks/popup-manager/use-zindex/index.d.ts +0 -2
  95. package/hooks/popup-manager/use-zindex/index.js +7 -20
  96. package/hooks/use-get-auth/index.js.gz +0 -0
  97. package/nextTiken/index.js.gz +0 -0
  98. package/package.json +4 -4
  99. package/pinyin-first-character/index.js +6 -1
  100. package/pinyin-first-character/index.js.gz +0 -0
  101. package/style/index.js.gz +0 -0
  102. package/style/math.d.ts +4 -4
  103. package/token-tools/index.d.ts +6 -6
  104. package/token-tools/index.js +8 -84
  105. package/use-low-code/index.js +13 -13
  106. package/use-low-code/index.js.gz +0 -0
  107. package/use-low-code/style.css +1 -1
  108. package/vue/hooks/use-model-value/index.d.ts +5 -1
  109. package/webSocket-service/index.js.gz +0 -0
  110. package/webSocket-service/type.d.ts +28 -28
  111. package/token-tools/index.js.gz +0 -0
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 获取文件后缀名
3
+ * @param filename
4
+ * @returns
5
+ */
6
+ export declare const getFileExtension: (filename: string) => any;
@@ -0,0 +1,7 @@
1
+ const n = (t) => {
2
+ const e = t.lastIndexOf(".");
3
+ return e === -1 ? "" : t.slice(e);
4
+ };
5
+ export {
6
+ n as getFileExtension
7
+ };
@@ -13,7 +13,7 @@ export declare const getUrlParams: (allUrl?: string, queryName?: string) => any;
13
13
  */
14
14
  export declare const getFullPath: (url: string, queryObj?: any) => string;
15
15
  /**
16
- * 删除url中指定的参数,并返回最终的url
16
+ * 删除url中指定的参数,并返回最终的url(废弃,暂留)
17
17
  * @param queryNames 数组,需要删除的参数名集合
18
18
  * @param url 指定url
19
19
  * @returns
@@ -8,3 +8,7 @@ export * from '@das-fed/utils/common-tools/setHtmlMinWH';
8
8
  export * from '@das-fed/utils/common-tools/queue-promise';
9
9
  export * from '@das-fed/utils/common-tools/platform-tools';
10
10
  export * from '@das-fed/utils/common-tools/update-fav-icon';
11
+ export * from '@das-fed/utils/common-tools/update-browser-title';
12
+ export * from '@das-fed/utils/common-tools/extract-file-name';
13
+ export * from '@das-fed/utils/common-tools/get-file-extension';
14
+ export * from '@das-fed/utils/common-tools/calc-text-width';
@@ -8,3 +8,7 @@ export * from "@das-fed/utils/common-tools/setHtmlMinWH";
8
8
  export * from "@das-fed/utils/common-tools/queue-promise";
9
9
  export * from "@das-fed/utils/common-tools/platform-tools";
10
10
  export * from "@das-fed/utils/common-tools/update-fav-icon";
11
+ export * from "@das-fed/utils/common-tools/update-browser-title";
12
+ export * from "@das-fed/utils/common-tools/extract-file-name";
13
+ export * from "@das-fed/utils/common-tools/get-file-extension";
14
+ export * from "@das-fed/utils/common-tools/calc-text-width";
@@ -27,4 +27,4 @@ export declare const filterTreeArray: (tree: any[], predicate: (node: any) => bo
27
27
  * @param func 过滤条件,符合条件的节点保留(参数为函数,返回值为布尔值)
28
28
  * @returns 查找到的节点
29
29
  */
30
- export declare const treeFind: (tree: any[], func: (node: any) => boolean) => any;
30
+ export declare const treeFind: (tree: any[], func: (node: any) => boolean, children?: string) => any;
@@ -1,24 +1,24 @@
1
- const o = (n, t = "children") => {
1
+ const s = (n, t = "children") => {
2
2
  let r = [];
3
3
  for (let e = 0; e < n.length; e++)
4
- n[e][t] && n[e][t].length > 0 && (r.push(n[e]), r = r.concat(o(n[e][t])));
4
+ n[e][t] && n[e][t].length > 0 && (r.push(n[e]), r = r.concat(s(n[e][t])));
5
5
  return r;
6
- }, c = (n, t = "children", r = !0) => Array.isArray(n) && n.length ? n.reduce((e, f) => {
7
- let l = f[t], u = { ...f };
8
- return r && delete u[t], l && l.length ? e.concat(u, c(l, t, r)) : e.concat(u);
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
- for (const r of n) {
11
- if (t(r)) return r;
12
- if (r != null && r.children && r.children.length) {
13
- const e = h(r.children, t);
14
- if (e) return e;
6
+ }, l = (n, t = "children", r = !0) => Array.isArray(n) && n.length ? n.reduce((e, u) => {
7
+ let f = u[t], o = { ...u };
8
+ return r && delete o[t], f && f.length ? e.concat(o, l(f, t, r)) : e.concat(o);
9
+ }, []) : [], c = (n, t, r = "children") => n.filter((e) => t(e)).map((e) => (e = Object.assign({}, e), e[r] && (e[r] = c(e[r], t)), e)), g = (n, t, r = "children") => {
10
+ for (const e of n) {
11
+ if (t(e)) return e;
12
+ if (e != null && e[r] && e[r].length) {
13
+ const u = g(e[r], t, r = "children");
14
+ if (u) return u;
15
15
  }
16
16
  }
17
17
  return null;
18
18
  };
19
19
  export {
20
- s as filterTreeArray,
21
- o as findNonEmptyChildrenItems,
22
- c as flatTree,
23
- h as treeFind
20
+ c as filterTreeArray,
21
+ s as findNonEmptyChildrenItems,
22
+ l as flatTree,
23
+ g as treeFind
24
24
  };
@@ -1,11 +1,7 @@
1
- const _ = (i) => {
2
- let n = "1366px", e = "528px";
3
- if (i != null && i.minWidth && (n = i.minWidth), i != null && i.minHeight && (e = i.minHeight), window.__IN_DAS_MICRO_APP) {
4
- const { left: m = 0, top: t = 0 } = window.__DAS_MICRO_APP_CONTAINER_RECT || {};
5
- n = `calc(${n} - ${m}px)`, e = `calc(${e} - ${t}px)`;
6
- }
7
- document.documentElement.style.minWidth = n, document.documentElement.style.minHeight = e;
1
+ const m = (e) => {
2
+ let i = "1366px", n = "528px";
3
+ e != null && e.minWidth && (i = e.minWidth), e != null && e.minHeight && (n = e.minHeight), document.documentElement.style.minWidth = i, document.documentElement.style.minHeight = n, document.documentElement.style.overflow = "auto";
8
4
  };
9
5
  export {
10
- _ as setHtmlMinWH
6
+ m as setHtmlMinWH
11
7
  };
@@ -0,0 +1 @@
1
+ export declare const setBrowseTitle: (defaultTitle?: string) => any;
@@ -0,0 +1,12 @@
1
+ import { systemConfiguration as l } from "@das-fed/utils/api-services/modules";
2
+ const n = async (o = "AIoT智能物联网管控平台") => {
3
+ let t = localStorage.getItem("browser-title") ?? "";
4
+ if (!t) {
5
+ const i = l.get("/visitor/appearance/with-default", (r) => (r.public = !0, r)), [s, e] = await i().run();
6
+ e != null && e.browserTitle && (t = e.browserTitle);
7
+ }
8
+ document.title = t || o;
9
+ };
10
+ export {
11
+ n as setBrowseTitle
12
+ };
@@ -1,19 +1,20 @@
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;
1
+ import { getFavIcon as l } from "@das-fed/utils/common-info";
2
+ import { pureImageSrc as m } from "@das-fed/utils/pure-image-src";
3
+ import { systemConfiguration as c } from "@das-fed/utils/api-services";
4
+ const i = (o, r = "./logo.svg") => {
5
+ const t = o || r;
6
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) : "";
7
+ e ? e == null || e.setAttribute("href", t) : (e = document.createElement("link"), e.rel = "icon", e.type = "image/svg+xml", e.href = t, document.getElementsByTagName("head")[0].appendChild(e));
8
+ }, f = async (o = "./logo.svg") => {
9
+ const r = c.get("/visitor/appearance/with-default", (e) => (e.public = !0, e));
10
+ let t = l();
11
+ if (!t) {
12
+ const [e, n] = await r().run();
13
+ if (e) return;
14
+ const { browserLogoImgHost: s = "", browserLogoImg: a = "" } = n || {};
15
+ t = a ? s + m(a) : "";
15
16
  }
16
- i(o, t);
17
+ i(t, o);
17
18
  };
18
19
  export {
19
20
  f as setDasHtmlIcon,
@@ -0,0 +1,33 @@
1
+ declare const _default: {
2
+ 参数校验错误: {
3
+ 'zh-CN': string;
4
+ en: string;
5
+ _appCode: string;
6
+ };
7
+ 接口地址未找到: {
8
+ 'zh-CN': string;
9
+ en: string;
10
+ _appCode: string;
11
+ };
12
+ 服务器内部错误: {
13
+ 'zh-CN': string;
14
+ en: string;
15
+ _appCode: string;
16
+ };
17
+ 解析错误: {
18
+ 'zh-CN': string;
19
+ en: string;
20
+ _appCode: string;
21
+ };
22
+ 请求配置异常: {
23
+ 'zh-CN': string;
24
+ en: string;
25
+ _appCode: string;
26
+ };
27
+ '\u7F51\u7EDC\u5F02\u5E38\uFF0C\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u60C5\u51B5': {
28
+ 'zh-CN': string;
29
+ en: string;
30
+ _appCode: string;
31
+ };
32
+ };
33
+ export default _default;
@@ -0,0 +1,15 @@
1
+ const r = {
2
+ 参数校验错误: { "zh-CN": "参数校验错误", en: "Parameter Validation Error", _appCode: "framework" },
3
+ 接口地址未找到: { "zh-CN": "接口地址未找到", en: "Api endpoint not found", _appCode: "framework" },
4
+ 服务器内部错误: { "zh-CN": "服务器内部错误", en: "Internal Server Error", _appCode: "framework" },
5
+ 解析错误: { "zh-CN": "解析错误", en: "Parsing Error", _appCode: "framework" },
6
+ 请求配置异常: { "zh-CN": "请求配置异常", en: "Request Configuration Error", _appCode: "framework" },
7
+ "网络异常,请检查您的网络情况": {
8
+ "zh-CN": "网络异常,请检查您的网络情况",
9
+ en: "Network error, please check your network status",
10
+ _appCode: "framework"
11
+ }
12
+ };
13
+ export {
14
+ r as default
15
+ };
@@ -1 +1,3 @@
1
- export declare const createService: (urlPrefix: string, customConfig?: any) => any;
1
+ import { CurringConfigFun } from '../curring-http/type';
2
+
3
+ export declare const createService: (urlPrefix: string, customConfig?: CurringConfigFun) => any;