@das-fed/utils 6.4.0-dev.9 → 6.4.0-hot.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 (70) hide show
  1. package/api-services/index.js +1307 -1730
  2. package/api-services/index.js.gz +0 -0
  3. package/api-services/modules/app-manage/index.js +1127 -1550
  4. package/api-services/modules/app-manage/index.js.gz +0 -0
  5. package/api-services/modules/authentication/index.js +1127 -1550
  6. package/api-services/modules/authentication/index.js.gz +0 -0
  7. package/api-services/modules/bems/index.js +1130 -1553
  8. package/api-services/modules/bems/index.js.gz +0 -0
  9. package/api-services/modules/contract/index.js +1127 -1550
  10. package/api-services/modules/contract/index.js.gz +0 -0
  11. package/api-services/modules/duty-manage/index.js +1131 -1554
  12. package/api-services/modules/duty-manage/index.js.gz +0 -0
  13. package/api-services/modules/enterpriseright/index.js +1127 -1550
  14. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  15. package/api-services/modules/file/index.js +149 -429
  16. package/api-services/modules/file/index.js.gz +0 -0
  17. package/api-services/modules/gateway-edge/index.js +1127 -1550
  18. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  19. package/api-services/modules/index.js +1481 -1904
  20. package/api-services/modules/index.js.gz +0 -0
  21. package/api-services/modules/iot/index.js +1140 -1563
  22. package/api-services/modules/iot/index.js.gz +0 -0
  23. package/api-services/modules/justauth/index.js +1128 -1551
  24. package/api-services/modules/justauth/index.js.gz +0 -0
  25. package/api-services/modules/knowledge/index.js +1127 -1550
  26. package/api-services/modules/knowledge/index.js.gz +0 -0
  27. package/api-services/modules/link/index.js +1127 -1550
  28. package/api-services/modules/link/index.js.gz +0 -0
  29. package/api-services/modules/permission/index.js +1127 -1550
  30. package/api-services/modules/permission/index.js.gz +0 -0
  31. package/api-services/modules/platformManage/index.js +1134 -1557
  32. package/api-services/modules/platformManage/index.js.gz +0 -0
  33. package/api-services/modules/portal/index.js +1127 -1550
  34. package/api-services/modules/portal/index.js.gz +0 -0
  35. package/api-services/modules/space-manage/index.js +1127 -1550
  36. package/api-services/modules/space-manage/index.js.gz +0 -0
  37. package/api-services/modules/super-admin/index.js +1130 -1553
  38. package/api-services/modules/super-admin/index.js.gz +0 -0
  39. package/api-services/modules/supplier/index.js +1129 -1552
  40. package/api-services/modules/supplier/index.js.gz +0 -0
  41. package/api-services/modules/supplychain-manage/index.js +1127 -1550
  42. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  43. package/api-services/modules/systemConfiguration/index.js +1127 -1550
  44. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  45. package/api-services/modules/tool/index.js +1127 -1550
  46. package/api-services/modules/tool/index.js.gz +0 -0
  47. package/api-services/src/create-service/index.js +1126 -1549
  48. package/api-services/src/create-service/index.js.gz +0 -0
  49. package/common-tools/extract-file-name/index.d.ts +1 -0
  50. package/common-tools/extract-file-name/index.js +1449 -0
  51. package/common-tools/extract-file-name/index.js.gz +0 -0
  52. package/common-tools/index.d.ts +1 -0
  53. package/common-tools/index.js +1 -0
  54. package/common-tools/platform-tools/index.d.ts +2 -1
  55. package/common-tools/platform-tools/index.js +16 -11
  56. package/common-tools/setHtmlMinWH/index.js +4 -8
  57. package/common-tools/update-fav-icon/index.js +15 -14
  58. package/create-api-service/index.js +1126 -1549
  59. package/create-api-service/index.js.gz +0 -0
  60. package/esm-map.json +3 -1
  61. package/hooks/popup-manager/use-zindex/index.d.ts +0 -2
  62. package/hooks/popup-manager/use-zindex/index.js +7 -20
  63. package/package.json +3 -4
  64. package/pinyin-first-character/index.js +6 -1
  65. package/pinyin-first-character/index.js.gz +0 -0
  66. package/token-tools/index.js +20 -20
  67. package/token-tools/index.js.gz +0 -0
  68. package/use-low-code/index.js +13 -13
  69. package/use-low-code/index.js.gz +0 -0
  70. package/use-low-code/style.css +1 -1
@@ -8,3 +8,4 @@ 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/extract-file-name';
@@ -8,3 +8,4 @@ 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/extract-file-name";
@@ -5,11 +5,12 @@
5
5
  */
6
6
  export declare const isRelativeOrSameDomain: (url: string) => boolean;
7
7
  /**
8
- * wei自动拼接上showLayout=false参数
8
+ * 自动拼接上showLayout=false参数
9
9
  * @param url
10
10
  * @returns
11
11
  */
12
12
  export declare const setShowLayout: (url: string) => string;
13
+ export declare const setShowWatermark: (url: string) => string;
13
14
  /**
14
15
  * url携带token
15
16
  * @param url
@@ -1,14 +1,19 @@
1
- import { getToken as o } from "@das-fed/utils/common-info";
2
- const n = (t) => !!(!t.startsWith("http") || t.startsWith(location.origin)), i = (t) => {
3
- if (!t) return "";
4
- let e = t;
5
- return n(t) && !t.includes("showLayout=false") && (e = t.indexOf("?") !== -1 ? t + "&showLayout=false" : t + "?showLayout=false"), e;
6
- }, a = (t) => {
7
- const e = o();
8
- return t.includes("?") ? `${t}&token=${e}` : `${t}?token=${e}`;
1
+ import { getToken as s } from "@das-fed/utils/common-info";
2
+ const o = (e) => !!(!e.startsWith("http") || e.startsWith(location.origin)), n = (e) => {
3
+ if (!e) return "";
4
+ let t = e;
5
+ return o(e) && !e.includes("showLayout=false") && (t = e.indexOf("?") !== -1 ? e + "&showLayout=false" : e + "?showLayout=false"), t;
6
+ }, i = (e) => {
7
+ if (!e) return "";
8
+ let t = "";
9
+ return o(e) && !e.includes("showWatermark=false") ? t = e.indexOf("?") !== -1 ? e + "&showWatermark=false" : e + "?showWatermark=false" : t = e, t;
10
+ }, r = (e) => {
11
+ const t = s();
12
+ return e.includes("?") ? `${e}&token=${t}` : `${e}?token=${t}`;
9
13
  };
10
14
  export {
11
- n as isRelativeOrSameDomain,
12
- i as setShowLayout,
13
- a as withToken
15
+ o as isRelativeOrSameDomain,
16
+ n as setShowLayout,
17
+ i as setShowWatermark,
18
+ r as withToken
14
19
  };
@@ -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
  };
@@ -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,