@das-fed/utils 6.4.0-test.8.1 → 7.0.0-beta.1

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 (85) hide show
  1. package/api-services/i18n/index.d.ts +7 -17
  2. package/api-services/i18n/index.js +15 -13
  3. package/api-services/i18n/index.js.gz +0 -0
  4. package/api-services/index.js +1499 -1382
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/index.js +1341 -1206
  7. package/api-services/modules/app-manage/index.js.gz +0 -0
  8. package/api-services/modules/authentication/index.js +1341 -1206
  9. package/api-services/modules/authentication/index.js.gz +0 -0
  10. package/api-services/modules/bems/index.js +1356 -1239
  11. package/api-services/modules/bems/index.js.gz +0 -0
  12. package/api-services/modules/contract/index.js +1341 -1206
  13. package/api-services/modules/contract/index.js.gz +0 -0
  14. package/api-services/modules/duty-manage/index.js +1357 -1240
  15. package/api-services/modules/duty-manage/index.js.gz +0 -0
  16. package/api-services/modules/enterpriseright/index.js +1341 -1206
  17. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  18. package/api-services/modules/file/index.js +1510 -1377
  19. package/api-services/modules/file/index.js.gz +0 -0
  20. package/api-services/modules/gateway-edge/index.js +1341 -1206
  21. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  22. package/api-services/modules/index.js +1491 -1376
  23. package/api-services/modules/index.js.gz +0 -0
  24. package/api-services/modules/iot/index.js +1384 -1249
  25. package/api-services/modules/iot/index.js.gz +0 -0
  26. package/api-services/modules/justauth/index.js +1365 -1230
  27. package/api-services/modules/justauth/index.js.gz +0 -0
  28. package/api-services/modules/knowledge/index.js +1341 -1206
  29. package/api-services/modules/knowledge/index.js.gz +0 -0
  30. package/api-services/modules/link/index.js +1341 -1206
  31. package/api-services/modules/link/index.js.gz +0 -0
  32. package/api-services/modules/permission/index.js +1341 -1206
  33. package/api-services/modules/permission/index.js.gz +0 -0
  34. package/api-services/modules/platformManage/index.js +1355 -1220
  35. package/api-services/modules/platformManage/index.js.gz +0 -0
  36. package/api-services/modules/portal/index.js +1353 -1232
  37. package/api-services/modules/portal/index.js.gz +0 -0
  38. package/api-services/modules/space-manage/index.js +1341 -1206
  39. package/api-services/modules/space-manage/index.js.gz +0 -0
  40. package/api-services/modules/super-admin/index.js +1329 -1194
  41. package/api-services/modules/super-admin/index.js.gz +0 -0
  42. package/api-services/modules/supplier/index.js +1353 -1236
  43. package/api-services/modules/supplier/index.js.gz +0 -0
  44. package/api-services/modules/supplychain-manage/index.js +1341 -1206
  45. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  46. package/api-services/modules/systemConfiguration/index.js +1341 -1206
  47. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  48. package/api-services/modules/tool/index.js +1341 -1206
  49. package/api-services/modules/tool/index.js.gz +0 -0
  50. package/api-services/src/create-service/index.js +1354 -1237
  51. package/api-services/src/create-service/index.js.gz +0 -0
  52. package/common-info/index.d.ts +2 -0
  53. package/common-info/index.js +20 -19
  54. package/common-info/index.js.gz +0 -0
  55. package/common-info/set-personal-info/index.js +433 -431
  56. package/common-info/set-personal-info/index.js.gz +0 -0
  57. package/common-info/type.d.ts +11 -7
  58. package/common-tools/calc-text-width/index.d.ts +1 -0
  59. package/common-tools/calc-text-width/index.js +10 -0
  60. package/common-tools/extract-file-name/index.js +737 -738
  61. package/common-tools/extract-file-name/index.js.gz +0 -0
  62. package/common-tools/get-file-extension/index.d.ts +6 -0
  63. package/common-tools/get-file-extension/index.js +7 -0
  64. package/common-tools/index.d.ts +2 -0
  65. package/common-tools/index.js +2 -0
  66. package/common-tools/nest-tree-format/index.d.ts +1 -1
  67. package/common-tools/nest-tree-format/index.js +15 -15
  68. package/create-api-service/index.d.ts +3 -1
  69. package/create-api-service/index.js +1344 -1209
  70. package/create-api-service/index.js.gz +0 -0
  71. package/create-api-service/sso/index.js +378 -378
  72. package/create-api-service/sso/index.js.gz +0 -0
  73. package/curring-http/index.js +575 -575
  74. package/curring-http/index.js.gz +0 -0
  75. package/directive/hoverInside/index.d.ts +1 -1
  76. package/dom-watcher/index.d.ts +1 -1
  77. package/esm-map.json +4 -1
  78. package/package.json +4 -4
  79. package/pinyin-first-character/index.js +22 -22
  80. package/pinyin-first-character/index.js.gz +0 -0
  81. package/style/index.js +1 -1
  82. package/style/index.js.gz +0 -0
  83. package/style/math.d.ts +4 -4
  84. package/use-low-code/index.js +2 -2
  85. package/use-low-code/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
+ };
@@ -10,3 +10,5 @@ export * from '@das-fed/utils/common-tools/platform-tools';
10
10
  export * from '@das-fed/utils/common-tools/update-fav-icon';
11
11
  export * from '@das-fed/utils/common-tools/update-browser-title';
12
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';
@@ -10,3 +10,5 @@ export * from "@das-fed/utils/common-tools/platform-tools";
10
10
  export * from "@das-fed/utils/common-tools/update-fav-icon";
11
11
  export * from "@das-fed/utils/common-tools/update-browser-title";
12
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 +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;