@das-fed/upf-utils 6.4.0-dev.238 → 6.4.0-dev.240

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 (190) hide show
  1. package/api-services/es5.d.ts +2 -0
  2. package/api-services/es5.js +1360 -1345
  3. package/api-services/i18n/es5.d.ts +63 -0
  4. package/api-services/index.js +1076 -1060
  5. package/api-services/index.js.gz +0 -0
  6. package/api-services/modules/app-manage/es5.d.ts +2 -0
  7. package/api-services/modules/app-manage/es5.js +25 -19
  8. package/api-services/modules/app-manage/index.js +17 -15
  9. package/api-services/modules/app-manage/index.js.gz +0 -0
  10. package/api-services/modules/authentication/es5.d.ts +2 -0
  11. package/api-services/modules/authentication/es5.js +1100 -1082
  12. package/api-services/modules/authentication/index.js +911 -891
  13. package/api-services/modules/authentication/index.js.gz +0 -0
  14. package/api-services/modules/bems/es5.d.ts +6 -0
  15. package/api-services/modules/bems/es5.js +96 -90
  16. package/api-services/modules/bems/index.js +75 -73
  17. package/api-services/modules/bems/index.js.gz +0 -0
  18. package/api-services/modules/contract/es5.d.ts +2 -0
  19. package/api-services/modules/contract/es5.js +25 -19
  20. package/api-services/modules/contract/index.js +17 -15
  21. package/api-services/modules/contract/index.js.gz +0 -0
  22. package/api-services/modules/duty-manage/es5.d.ts +7 -0
  23. package/api-services/modules/duty-manage/es5.js +23 -17
  24. package/api-services/modules/duty-manage/index.js +16 -14
  25. package/api-services/modules/duty-manage/index.js.gz +0 -0
  26. package/api-services/modules/enterpriseright/es5.d.ts +2 -0
  27. package/api-services/modules/enterpriseright/es5.js +829 -826
  28. package/api-services/modules/enterpriseright/index.js +651 -653
  29. package/api-services/modules/enterpriseright/index.js.gz +0 -0
  30. package/api-services/modules/es5.d.ts +21 -0
  31. package/api-services/modules/es5.js +1353 -1356
  32. package/api-services/modules/file/es5.d.ts +37 -0
  33. package/api-services/modules/file/es5.js +1226 -1232
  34. package/api-services/modules/file/index.js +993 -1009
  35. package/api-services/modules/file/index.js.gz +0 -0
  36. package/api-services/modules/gateway-edge/es5.d.ts +2 -0
  37. package/api-services/modules/gateway-edge/es5.js +1343 -1325
  38. package/api-services/modules/gateway-edge/index.js +1140 -1120
  39. package/api-services/modules/gateway-edge/index.js.gz +0 -0
  40. package/api-services/modules/index.js +1062 -1074
  41. package/api-services/modules/index.js.gz +0 -0
  42. package/api-services/modules/iot/es5.d.ts +16 -0
  43. package/api-services/modules/iot/es5.js +33 -27
  44. package/api-services/modules/iot/index.js +23 -21
  45. package/api-services/modules/iot/index.js.gz +0 -0
  46. package/api-services/modules/justauth/es5.d.ts +3 -0
  47. package/api-services/modules/justauth/es5.js +1345 -1351
  48. package/api-services/modules/justauth/index.js +1127 -1143
  49. package/api-services/modules/justauth/index.js.gz +0 -0
  50. package/api-services/modules/knowledge/es5.d.ts +2 -0
  51. package/api-services/modules/knowledge/es5.js +1343 -1325
  52. package/api-services/modules/knowledge/index.js +1140 -1120
  53. package/api-services/modules/knowledge/index.js.gz +0 -0
  54. package/api-services/modules/link/es5.d.ts +2 -0
  55. package/api-services/modules/link/es5.js +25 -19
  56. package/api-services/modules/link/index.js +17 -15
  57. package/api-services/modules/link/index.js.gz +0 -0
  58. package/api-services/modules/permission/es5.d.ts +2 -0
  59. package/api-services/modules/permission/es5.js +1100 -1106
  60. package/api-services/modules/permission/index.js +897 -913
  61. package/api-services/modules/permission/index.js.gz +0 -0
  62. package/api-services/modules/platformManage/es5.d.ts +14 -0
  63. package/api-services/modules/platformManage/es5.js +1350 -1356
  64. package/api-services/modules/platformManage/index.js +1131 -1147
  65. package/api-services/modules/platformManage/index.js.gz +0 -0
  66. package/api-services/modules/portal/es5.d.ts +2 -0
  67. package/api-services/modules/portal/es5.js +1343 -1349
  68. package/api-services/modules/portal/index.js +1126 -1142
  69. package/api-services/modules/portal/index.js.gz +0 -0
  70. package/api-services/modules/space-manage/es5.d.ts +2 -0
  71. package/api-services/modules/space-manage/es5.js +1343 -1349
  72. package/api-services/modules/space-manage/index.js +1126 -1142
  73. package/api-services/modules/space-manage/index.js.gz +0 -0
  74. package/api-services/modules/super-admin/es5.d.ts +8 -0
  75. package/api-services/modules/super-admin/es5.js +1104 -1110
  76. package/api-services/modules/super-admin/index.js +899 -915
  77. package/api-services/modules/super-admin/index.js.gz +0 -0
  78. package/api-services/modules/supplier/es5.d.ts +6 -0
  79. package/api-services/modules/supplier/es5.js +1104 -1110
  80. package/api-services/modules/supplier/index.js +899 -915
  81. package/api-services/modules/supplier/index.js.gz +0 -0
  82. package/api-services/modules/supplychain-manage/es5.d.ts +2 -0
  83. package/api-services/modules/supplychain-manage/es5.js +1343 -1325
  84. package/api-services/modules/supplychain-manage/index.js +1140 -1120
  85. package/api-services/modules/supplychain-manage/index.js.gz +0 -0
  86. package/api-services/modules/systemConfiguration/es5.d.ts +2 -0
  87. package/api-services/modules/systemConfiguration/es5.js +25 -19
  88. package/api-services/modules/systemConfiguration/index.js +17 -15
  89. package/api-services/modules/systemConfiguration/index.js.gz +0 -0
  90. package/api-services/modules/tool/es5.d.ts +2 -0
  91. package/api-services/modules/tool/es5.js +845 -836
  92. package/api-services/modules/tool/index.js +660 -654
  93. package/api-services/modules/tool/index.js.gz +0 -0
  94. package/api-services/src/create-service/es5.d.ts +1 -0
  95. package/api-services/src/create-service/es5.js +99 -93
  96. package/api-services/src/create-service/index.js +78 -76
  97. package/api-services/src/create-service/index.js.gz +0 -0
  98. package/atob/es5.d.ts +2 -0
  99. package/common-info/es5.d.ts +48 -0
  100. package/common-info/es5.js +915 -965
  101. package/common-info/getIframeUrl/es5.d.ts +9 -0
  102. package/common-info/getInfoFromUrl/es5.d.ts +8 -0
  103. package/common-info/getPermissionMethod/es5.d.ts +77 -0
  104. package/common-info/getPermissionMethod/es5.js +1371 -1355
  105. package/common-info/getPermissionMethod/index.d.ts +27 -9
  106. package/common-info/getPermissionMethod/index.js +1141 -1125
  107. package/common-info/getPermissionMethod/index.js.gz +0 -0
  108. package/common-info/index.d.ts +1 -29
  109. package/common-info/index.js +725 -757
  110. package/common-info/index.js.gz +0 -0
  111. package/common-info/set-personal-info/es5.d.ts +5 -0
  112. package/common-info/type.d.ts +2 -2
  113. package/common-tools/arr-tools/es5.d.ts +15 -0
  114. package/common-tools/calc-text-width/es5.d.ts +1 -0
  115. package/common-tools/date-format/es5.d.ts +7 -0
  116. package/common-tools/es5.d.ts +15 -0
  117. package/common-tools/es5.js +9 -0
  118. package/common-tools/extract-file-name/es5.d.ts +1 -0
  119. package/common-tools/get-file-extension/es5.d.ts +6 -0
  120. package/common-tools/get-url-params/es5.d.ts +46 -0
  121. package/common-tools/handle-data/es5.d.ts +34 -0
  122. package/common-tools/handle-data/es5.js +44 -6
  123. package/common-tools/handle-data/index.d.ts +16 -1
  124. package/common-tools/handle-data/index.js +1 -1
  125. package/common-tools/handle-data/index.js.gz +0 -0
  126. package/common-tools/index.d.ts +1 -0
  127. package/common-tools/index.js +1 -0
  128. package/common-tools/nest-tree-format/es5.d.ts +30 -0
  129. package/common-tools/obj-tools/es5.d.ts +7 -0
  130. package/common-tools/platform-tools/es5.d.ts +19 -0
  131. package/common-tools/queue-promise/es5.d.ts +6 -0
  132. package/common-tools/setHtmlMinWH/es5.d.ts +5 -0
  133. package/common-tools/timezone-format/es5.d.ts +28 -0
  134. package/common-tools/timezone-format/es5.js +140 -0
  135. package/common-tools/timezone-format/index.d.ts +28 -0
  136. package/common-tools/timezone-format/index.js +81 -0
  137. package/common-tools/timezone-format/index.js.gz +0 -0
  138. package/common-tools/update-browser-title/es5.d.ts +1 -0
  139. package/common-tools/update-fav-icon/es5.d.ts +11 -0
  140. package/config/es5.d.ts +2 -0
  141. package/create-api-service/access-token-auto-refresh/es5.d.ts +20 -0
  142. package/create-api-service/access-token-auto-refresh/es5.js +27 -26
  143. package/create-api-service/access-token-auto-refresh/index.js +27 -26
  144. package/create-api-service/access-token-auto-refresh/index.js.gz +0 -0
  145. package/create-api-service/check-token/es5.d.ts +12 -0
  146. package/create-api-service/es5.d.ts +8 -0
  147. package/create-api-service/es5.js +24 -18
  148. package/create-api-service/i18n/es5.d.ts +39 -0
  149. package/create-api-service/index.js +17 -15
  150. package/create-api-service/index.js.gz +0 -0
  151. package/create-api-service/proxy-sso/es5.d.ts +3 -0
  152. package/create-api-service/sso/es5.d.ts +21 -0
  153. package/create-api-service/token-refresh-shared/es5.d.ts +30 -0
  154. package/curring-http/es5.d.ts +12 -0
  155. package/dimple-canvas/es5.d.ts +3 -0
  156. package/directive/auth/es5.d.ts +8 -0
  157. package/directive/clickOutside/es5.d.ts +6 -0
  158. package/directive/es5.d.ts +3 -0
  159. package/directive/hoverInside/es5.d.ts +6 -0
  160. package/directive/utils/es5.d.ts +7 -0
  161. package/dom-check-in/es5.d.ts +6 -0
  162. package/dom-watcher/es5.d.ts +25 -0
  163. package/esm-map.json +32 -7
  164. package/hooks/popup-manager/use-zindex/es5.d.ts +3 -0
  165. package/i18n-bridge/es5.d.ts +10 -0
  166. package/index.d.ts +1 -0
  167. package/index.js +1 -0
  168. package/load-js/es5.d.ts +3 -0
  169. package/nextTiken/es5.d.ts +12 -0
  170. package/oss/es5.d.ts +2 -0
  171. package/package.json +4 -3
  172. package/pinyin-first-character/es5.d.ts +2 -0
  173. package/process-engine-info/es5.d.ts +13 -0
  174. package/pure-image-src/es5.d.ts +2 -0
  175. package/size-watcher/es5.d.ts +6 -0
  176. package/style/es5.d.ts +2 -0
  177. package/theme/es5.d.ts +92 -0
  178. package/theme/es5.js +1365 -0
  179. package/theme/index.d.ts +92 -0
  180. package/theme/index.js +871 -0
  181. package/theme/index.js.gz +0 -0
  182. package/token-tools/es5.d.ts +21 -0
  183. package/use-low-code/es5.d.ts +1 -0
  184. package/vue/es5.d.ts +1 -0
  185. package/vue/hooks/use-model-value/es5.d.ts +9 -0
  186. package/webSocket-service/es5.d.ts +41 -0
  187. package/with-install/es5.d.ts +11 -0
  188. package/hooks/use-get-auth/es5.js +0 -67
  189. package/hooks/use-get-auth/index.d.ts +0 -4
  190. package/hooks/use-get-auth/index.js +0 -19
@@ -19,14 +19,14 @@ const { toString: po } = Object.prototype, { getPrototypeOf: Ht } = Object, { it
19
19
  return t[r] || (t[r] = r.slice(8, -1).toLowerCase());
20
20
  })(/* @__PURE__ */ Object.create(null)), q = (t) => (t = t.toLowerCase(), (e) => Xe(e) === t), Ze = (t) => (e) => typeof e === t, { isArray: he } = Array, pe = Ze("undefined");
21
21
  function Te(t) {
22
- return t !== null && !pe(t) && t.constructor !== null && !pe(t.constructor) && I(t.constructor.isBuffer) && t.constructor.isBuffer(t);
22
+ return t !== null && !pe(t) && t.constructor !== null && !pe(t.constructor) && $(t.constructor.isBuffer) && t.constructor.isBuffer(t);
23
23
  }
24
24
  const rn = q("ArrayBuffer");
25
25
  function yo(t) {
26
26
  let e;
27
27
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(t) : e = t && t.buffer && rn(t.buffer), e;
28
28
  }
29
- const ho = Ze("string"), I = Ze("function"), nn = Ze("number"), xe = (t) => t !== null && typeof t == "object", mo = (t) => t === !0 || t === !1, Me = (t) => {
29
+ const ho = Ze("string"), $ = Ze("function"), nn = Ze("number"), xe = (t) => t !== null && typeof t == "object", mo = (t) => t === !0 || t === !1, Me = (t) => {
30
30
  if (Xe(t) !== "object")
31
31
  return !1;
32
32
  const e = Ht(t);
@@ -39,10 +39,10 @@ const ho = Ze("string"), I = Ze("function"), nn = Ze("number"), xe = (t) => t !=
39
39
  } catch {
40
40
  return !1;
41
41
  }
42
- }, vo = q("Date"), wo = q("File"), bo = q("Blob"), So = q("FileList"), Eo = (t) => xe(t) && I(t.pipe), Oo = (t) => {
42
+ }, vo = q("Date"), wo = q("File"), bo = q("Blob"), So = q("FileList"), Eo = (t) => xe(t) && $(t.pipe), Oo = (t) => {
43
43
  let e;
44
- return t && (typeof FormData == "function" && t instanceof FormData || I(t.append) && ((e = Xe(t)) === "formdata" || // detect form-data instance
45
- e === "object" && I(t.toString) && t.toString() === "[object FormData]"));
44
+ return t && (typeof FormData == "function" && t instanceof FormData || $(t.append) && ((e = Xe(t)) === "formdata" || // detect form-data instance
45
+ e === "object" && $(t.toString) && t.toString() === "[object FormData]"));
46
46
  }, Ao = q("URLSearchParams"), [Ro, Po, To, xo] = ["ReadableStream", "Request", "Response", "Headers"].map(q), _o = (t) => t.trim ? t.trim() : t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
47
47
  function _e(t, e, { allOwnKeys: r = !1 } = {}) {
48
48
  if (t === null || typeof t > "u")
@@ -82,12 +82,12 @@ function Ft() {
82
82
  return r;
83
83
  }
84
84
  const Co = (t, e, r, { allOwnKeys: n } = {}) => (_e(e, (o, i) => {
85
- r && I(o) ? t[i] = en(o, r) : t[i] = o;
85
+ r && $(o) ? t[i] = en(o, r) : t[i] = o;
86
86
  }, { allOwnKeys: n }), t), Fo = (t) => (t.charCodeAt(0) === 65279 && (t = t.slice(1)), t), No = (t, e, r, n) => {
87
87
  t.prototype = Object.create(e.prototype, n), t.prototype.constructor = t, Object.defineProperty(t, "super", {
88
88
  value: e.prototype
89
89
  }), r && Object.assign(t.prototype, r);
90
- }, $o = (t, e, r, n) => {
90
+ }, Io = (t, e, r, n) => {
91
91
  let o, i, a;
92
92
  const s = {};
93
93
  if (e = e || {}, t == null) return e;
@@ -97,7 +97,7 @@ const Co = (t, e, r, { allOwnKeys: n } = {}) => (_e(e, (o, i) => {
97
97
  t = r !== !1 && Ht(t);
98
98
  } while (t && (!r || r(t, e)) && t !== Object.prototype);
99
99
  return e;
100
- }, Io = (t, e, r) => {
100
+ }, $o = (t, e, r) => {
101
101
  t = String(t), (r === void 0 || r > t.length) && (r = t.length), r -= e.length;
102
102
  const n = t.indexOf(e, r);
103
103
  return n !== -1 && n === r;
@@ -136,10 +136,10 @@ const Co = (t, e, r, { allOwnKeys: n } = {}) => (_e(e, (o, i) => {
136
136
  }), Object.defineProperties(t, n);
137
137
  }, jo = (t) => {
138
138
  sn(t, (e, r) => {
139
- if (I(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
139
+ if ($(t) && ["arguments", "caller", "callee"].indexOf(r) !== -1)
140
140
  return !1;
141
141
  const n = t[r];
142
- if (I(n)) {
142
+ if ($(n)) {
143
143
  if (e.enumerable = !1, "writable" in e) {
144
144
  e.writable = !1;
145
145
  return;
@@ -159,7 +159,7 @@ const Co = (t, e, r, { allOwnKeys: n } = {}) => (_e(e, (o, i) => {
159
159
  }, zo = () => {
160
160
  }, Wo = (t, e) => t != null && Number.isFinite(t = +t) ? t : e;
161
161
  function Go(t) {
162
- return !!(t && I(t.append) && t[tn] === "FormData" && t[Qe]);
162
+ return !!(t && $(t.append) && t[tn] === "FormData" && t[Qe]);
163
163
  }
164
164
  const Jo = (t) => {
165
165
  const e = new Array(10), r = (n, o) => {
@@ -180,14 +180,14 @@ const Jo = (t) => {
180
180
  return n;
181
181
  };
182
182
  return r(t, 0);
183
- }, Vo = q("AsyncFunction"), Ko = (t) => t && (xe(t) || I(t)) && I(t.then) && I(t.catch), ln = ((t, e) => t ? setImmediate : e ? ((r, n) => (ee.addEventListener("message", ({ source: o, data: i }) => {
183
+ }, Vo = q("AsyncFunction"), Ko = (t) => t && (xe(t) || $(t)) && $(t.then) && $(t.catch), ln = ((t, e) => t ? setImmediate : e ? ((r, n) => (ee.addEventListener("message", ({ source: o, data: i }) => {
184
184
  o === ee && i === r && n.length && n.shift()();
185
185
  }, !1), (o) => {
186
186
  n.push(o), ee.postMessage(r, "*");
187
187
  }))(`axios@${Math.random()}`, []) : (r) => setTimeout(r))(
188
188
  typeof setImmediate == "function",
189
- I(ee.postMessage)
190
- ), Qo = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || ln, Xo = (t) => t != null && I(t[Qe]), f = {
189
+ $(ee.postMessage)
190
+ ), Qo = typeof queueMicrotask < "u" ? queueMicrotask.bind(ee) : typeof process < "u" && process.nextTick || ln, Xo = (t) => t != null && $(t[Qe]), f = {
191
191
  isArray: he,
192
192
  isArrayBuffer: rn,
193
193
  isBuffer: Te,
@@ -208,7 +208,7 @@ const Jo = (t) => {
208
208
  isFile: wo,
209
209
  isBlob: bo,
210
210
  isRegExp: qo,
211
- isFunction: I,
211
+ isFunction: $,
212
212
  isStream: Eo,
213
213
  isURLSearchParams: Ao,
214
214
  isTypedArray: Uo,
@@ -219,10 +219,10 @@ const Jo = (t) => {
219
219
  trim: _o,
220
220
  stripBOM: Fo,
221
221
  inherits: No,
222
- toFlatObject: $o,
222
+ toFlatObject: Io,
223
223
  kindOf: Xe,
224
224
  kindOfTest: q,
225
- endsWith: Io,
225
+ endsWith: $o,
226
226
  toArray: Do,
227
227
  forEachEntry: Lo,
228
228
  matchAll: Bo,
@@ -493,22 +493,22 @@ const yn = {
493
493
  Blob: oi
494
494
  },
495
495
  protocols: ["http", "https", "file", "blob", "url", "data"]
496
- }, Wt = typeof window < "u" && typeof document < "u", $t = typeof navigator == "object" && navigator || void 0, ai = Wt && (!$t || ["ReactNative", "NativeScript", "NS"].indexOf($t.product) < 0), si = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
496
+ }, Wt = typeof window < "u" && typeof document < "u", It = typeof navigator == "object" && navigator || void 0, ai = Wt && (!It || ["ReactNative", "NativeScript", "NS"].indexOf(It.product) < 0), si = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
497
497
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", li = Wt && window.location.href || "http://localhost", ci = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
498
498
  __proto__: null,
499
499
  hasBrowserEnv: Wt,
500
500
  hasStandardBrowserEnv: ai,
501
501
  hasStandardBrowserWebWorkerEnv: si,
502
- navigator: $t,
502
+ navigator: It,
503
503
  origin: li
504
- }, Symbol.toStringTag, { value: "Module" })), $ = {
504
+ }, Symbol.toStringTag, { value: "Module" })), I = {
505
505
  ...ci,
506
506
  ...ii
507
507
  };
508
508
  function ui(t, e) {
509
- return Ye(t, new $.classes.URLSearchParams(), {
509
+ return Ye(t, new I.classes.URLSearchParams(), {
510
510
  visitor: function(r, n, o, i) {
511
- return $.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
511
+ return I.isNode && f.isBuffer(r) ? (this.append(n, r.toString("base64")), !1) : i.defaultVisitor.apply(this, arguments);
512
512
  },
513
513
  ...e
514
514
  });
@@ -603,8 +603,8 @@ const Ce = {
603
603
  maxContentLength: -1,
604
604
  maxBodyLength: -1,
605
605
  env: {
606
- FormData: $.classes.FormData,
607
- Blob: $.classes.Blob
606
+ FormData: I.classes.FormData,
607
+ Blob: I.classes.Blob
608
608
  },
609
609
  validateStatus: function(e) {
610
610
  return e >= 200 && e < 300;
@@ -904,10 +904,10 @@ const We = (t, e, r = 3) => {
904
904
  total: t,
905
905
  loaded: n
906
906
  }), e[1]];
907
- }, lr = (t) => (...e) => f.asap(() => t(...e)), Oi = $.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, $.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
908
- new URL($.origin),
909
- $.navigator && /(msie|trident)/i.test($.navigator.userAgent)
910
- ) : () => !0, Ai = $.hasStandardBrowserEnv ? (
907
+ }, lr = (t) => (...e) => f.asap(() => t(...e)), Oi = I.hasStandardBrowserEnv ? /* @__PURE__ */ ((t, e) => (r) => (r = new URL(r, I.origin), t.protocol === r.protocol && t.host === r.host && (e || t.port === r.port)))(
908
+ new URL(I.origin),
909
+ I.navigator && /(msie|trident)/i.test(I.navigator.userAgent)
910
+ ) : () => !0, Ai = I.hasStandardBrowserEnv ? (
911
911
  // Standard browser envs support document.cookie
912
912
  {
913
913
  write(t, e, r, n, o, i, a) {
@@ -1018,7 +1018,7 @@ const wn = (t) => {
1018
1018
  "Authorization",
1019
1019
  "Basic " + btoa((s.username || "") + ":" + (s.password ? unescape(encodeURIComponent(s.password)) : ""))
1020
1020
  ), f.isFormData(r)) {
1021
- if ($.hasStandardBrowserEnv || $.hasStandardBrowserWebWorkerEnv)
1021
+ if (I.hasStandardBrowserEnv || I.hasStandardBrowserWebWorkerEnv)
1022
1022
  a.setContentType(void 0);
1023
1023
  else if (f.isFunction(r.getHeaders)) {
1024
1024
  const u = r.getHeaders(), c = ["content-type", "content-length"];
@@ -1027,7 +1027,7 @@ const wn = (t) => {
1027
1027
  });
1028
1028
  }
1029
1029
  }
1030
- if ($.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 && Oi(e.url))) {
1030
+ if (I.hasStandardBrowserEnv && (n && f.isFunction(n) && (n = n(e)), n || n !== !1 && Oi(e.url))) {
1031
1031
  const u = o && i && Ai.read(i);
1032
1032
  u && a.set(o, u);
1033
1033
  }
@@ -1084,7 +1084,7 @@ const wn = (t) => {
1084
1084
  h && (n(!g || g.type ? new me(null, t, h) : g), h.abort(), h = null);
1085
1085
  }, o.cancelToken && o.cancelToken.subscribe(l), o.signal && (o.signal.aborted ? l() : o.signal.addEventListener("abort", l)));
1086
1086
  const O = bi(o.url);
1087
- if (O && $.protocols.indexOf(O) === -1) {
1087
+ if (O && I.protocols.indexOf(O) === -1) {
1088
1088
  n(new w("Unsupported protocol " + O + ":", w.ERR_BAD_REQUEST, t));
1089
1089
  return;
1090
1090
  }
@@ -1170,7 +1170,7 @@ const wn = (t) => {
1170
1170
  }, {
1171
1171
  highWaterMark: 2
1172
1172
  });
1173
- }, fr = 64 * 1024, { isFunction: De } = f, $i = (({ Request: t, Response: e }) => ({
1173
+ }, fr = 64 * 1024, { isFunction: De } = f, Ii = (({ Request: t, Response: e }) => ({
1174
1174
  Request: t,
1175
1175
  Response: e
1176
1176
  }))(f.global), {
@@ -1182,16 +1182,16 @@ const wn = (t) => {
1182
1182
  } catch {
1183
1183
  return !1;
1184
1184
  }
1185
- }, Ii = (t) => {
1185
+ }, $i = (t) => {
1186
1186
  t = f.merge.call({
1187
1187
  skipUndefined: !0
1188
- }, $i, t);
1188
+ }, Ii, t);
1189
1189
  const { fetch: e, Request: r, Response: n } = t, o = e ? De(e) : typeof fetch == "function", i = De(r), a = De(n);
1190
1190
  if (!o)
1191
1191
  return !1;
1192
1192
  const s = o && De(pr), u = o && (typeof dr == "function" ? /* @__PURE__ */ ((d) => (m) => d.encode(m))(new dr()) : async (d) => new Uint8Array(await new r(d).arrayBuffer())), c = i && s && yr(() => {
1193
1193
  let d = !1;
1194
- const m = new r($.origin, {
1194
+ const m = new r(I.origin, {
1195
1195
  body: new pr(),
1196
1196
  method: "POST",
1197
1197
  get duplex() {
@@ -1216,7 +1216,7 @@ const wn = (t) => {
1216
1216
  if (f.isBlob(d))
1217
1217
  return d.size;
1218
1218
  if (f.isSpecCompliantForm(d))
1219
- return (await new r($.origin, {
1219
+ return (await new r(I.origin, {
1220
1220
  method: "POST",
1221
1221
  body: d
1222
1222
  }).arrayBuffer()).byteLength;
@@ -1257,11 +1257,11 @@ const wn = (t) => {
1257
1257
  duplex: "half"
1258
1258
  }), se;
1259
1259
  if (f.isFormData(b) && (se = K.headers.get("content-type")) && V.setContentType(se), K.body) {
1260
- const [it, Ie] = sr(
1260
+ const [it, $e] = sr(
1261
1261
  B,
1262
1262
  We(lr(U))
1263
1263
  );
1264
- b = ur(K.body, fr, it, Ie);
1264
+ b = ur(K.body, fr, it, $e);
1265
1265
  }
1266
1266
  }
1267
1267
  f.isString(L) || (L = L ? "include" : "omit");
@@ -1282,13 +1282,13 @@ const wn = (t) => {
1282
1282
  ["status", "statusText", "headers"].forEach((tr) => {
1283
1283
  K[tr] = j[tr];
1284
1284
  });
1285
- const se = f.toFiniteNumber(j.headers.get("content-length")), [it, Ie] = P && sr(
1285
+ const se = f.toFiniteNumber(j.headers.get("content-length")), [it, $e] = P && sr(
1286
1286
  se,
1287
1287
  We(lr(P), !0)
1288
1288
  ) || [];
1289
1289
  j = new n(
1290
1290
  ur(j.body, fr, it, () => {
1291
- Ie && Ie(), F && F();
1291
+ $e && $e(), F && F();
1292
1292
  }),
1293
1293
  K
1294
1294
  );
@@ -1323,7 +1323,7 @@ const wn = (t) => {
1323
1323
  ];
1324
1324
  let a = i.length, s = a, u, c, l = Di;
1325
1325
  for (; s--; )
1326
- u = i[s], c = l.get(u), c === void 0 && l.set(u, c = s ? /* @__PURE__ */ new Map() : Ii(e)), l = c;
1326
+ u = i[s], c = l.get(u), c === void 0 && l.set(u, c = s ? /* @__PURE__ */ new Map() : $i(e)), l = c;
1327
1327
  return c;
1328
1328
  };
1329
1329
  bn();
@@ -1655,7 +1655,7 @@ function Mi(t) {
1655
1655
  function ki(t) {
1656
1656
  return f.isObject(t) && t.isAxiosError === !0;
1657
1657
  }
1658
- const It = {
1658
+ const $t = {
1659
1659
  Continue: 100,
1660
1660
  SwitchingProtocols: 101,
1661
1661
  Processing: 102,
@@ -1726,8 +1726,8 @@ const It = {
1726
1726
  SslHandshakeFailed: 525,
1727
1727
  InvalidSslCertificate: 526
1728
1728
  };
1729
- Object.entries(It).forEach(([t, e]) => {
1730
- It[e] = t;
1729
+ Object.entries($t).forEach(([t, e]) => {
1730
+ $t[e] = t;
1731
1731
  });
1732
1732
  function On(t) {
1733
1733
  const e = new te(t), r = en(te.prototype.request, e);
@@ -1753,7 +1753,7 @@ R.mergeConfig = ne;
1753
1753
  R.AxiosHeaders = D;
1754
1754
  R.formToJSON = (t) => hn(f.isHTMLForm(t) ? new FormData(t) : t);
1755
1755
  R.getAdapter = Sn.getAdapter;
1756
- R.HttpStatusCode = It;
1756
+ R.HttpStatusCode = $t;
1757
1757
  R.default = R;
1758
1758
  var vr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
1759
1759
  function qi(t) {
@@ -2199,7 +2199,7 @@ var ba = tt, Sa = ge, rt = function(t, e, r) {
2199
2199
  }
2200
2200
  };
2201
2201
  return r;
2202
- }, Fn = Object, Ta = Error, xa = EvalError, _a = RangeError, Ca = ReferenceError, Fa = SyntaxError, Na = URIError, $a = Math.abs, Ia = Math.floor, Da = Math.max, Ua = Math.min, La = Math.pow, Ba = Math.round, Ma = Number.isNaN || function(e) {
2202
+ }, Fn = Object, Ta = Error, xa = EvalError, _a = RangeError, Ca = ReferenceError, Fa = SyntaxError, Na = URIError, Ia = Math.abs, $a = Math.floor, Da = Math.max, Ua = Math.min, La = Math.pow, Ba = Math.round, Ma = Number.isNaN || function(e) {
2203
2203
  return e !== e;
2204
2204
  }, ka = Ma, qa = function(e) {
2205
2205
  return ka(e) || e === 0 ? e : e < 0 ? -1 : 1;
@@ -2256,14 +2256,14 @@ function Wa() {
2256
2256
  return typeof t != "function" || typeof Symbol != "function" || typeof t("foo") != "symbol" || typeof Symbol("bar") != "symbol" ? !1 : e();
2257
2257
  }, yt;
2258
2258
  }
2259
- var ht, $r;
2260
- function $n() {
2261
- return $r || ($r = 1, ht = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ht;
2262
- }
2263
- var mt, Ir;
2259
+ var ht, Ir;
2264
2260
  function In() {
2265
- if (Ir) return mt;
2266
- Ir = 1;
2261
+ return Ir || (Ir = 1, ht = typeof Reflect < "u" && Reflect.getPrototypeOf || null), ht;
2262
+ }
2263
+ var mt, $r;
2264
+ function $n() {
2265
+ if ($r) return mt;
2266
+ $r = 1;
2267
2267
  var t = Fn;
2268
2268
  return mt = t.getPrototypeOf || null, mt;
2269
2269
  }
@@ -2359,7 +2359,7 @@ var Et, kr;
2359
2359
  function os() {
2360
2360
  if (kr) return Et;
2361
2361
  kr = 1;
2362
- var t = $n(), e = In(), r = ns();
2362
+ var t = In(), e = $n(), r = ns();
2363
2363
  return Et = t ? function(o) {
2364
2364
  return t(o);
2365
2365
  } : e ? function(o) {
@@ -2377,7 +2377,7 @@ function is() {
2377
2377
  var t = Function.prototype.call, e = Object.prototype.hasOwnProperty, r = nt();
2378
2378
  return Ot = r.call(t, e), Ot;
2379
2379
  }
2380
- var S, as = Fn, ss = Ta, ls = xa, cs = _a, us = Ca, ye = Fa, fe = ge, fs = Na, ps = $a, ds = Ia, ys = Da, hs = Ua, ms = La, gs = Ba, vs = qa, Ln = Function, At = function(t) {
2380
+ var S, as = Fn, ss = Ta, ls = xa, cs = _a, us = Ca, ye = Fa, fe = ge, fs = Na, ps = Ia, ds = $a, ys = Da, hs = Ua, ms = La, gs = Ba, vs = qa, Ln = Function, At = function(t) {
2381
2381
  try {
2382
2382
  return Ln('"use strict"; return (' + t + ").constructor;")();
2383
2383
  } catch {
@@ -2394,7 +2394,7 @@ var S, as = Fn, ss = Ta, ls = xa, cs = _a, us = Ca, ye = Fa, fe = ge, fs = Na, p
2394
2394
  return Rt;
2395
2395
  }
2396
2396
  }
2397
- }() : Rt, le = Wa()(), _ = os(), Ss = In(), Es = $n(), Bn = Dn(), Fe = Xt(), ue = {}, Os = typeof Uint8Array > "u" || !_ ? S : _(Uint8Array), re = {
2397
+ }() : Rt, le = Wa()(), _ = os(), Ss = $n(), Es = In(), Bn = Dn(), Fe = Xt(), ue = {}, Os = typeof Uint8Array > "u" || !_ ? S : _(Uint8Array), re = {
2398
2398
  __proto__: null,
2399
2399
  "%AggregateError%": typeof AggregateError > "u" ? S : AggregateError,
2400
2400
  "%Array%": Array,
@@ -2607,16 +2607,16 @@ var Rs = function t(e) {
2607
2607
  }
2608
2608
  }
2609
2609
  return s;
2610
- }, Mn = Zt, kn = Un, $s = kn([Mn("%String.prototype.indexOf%")]), qn = function(e, r) {
2610
+ }, Mn = Zt, kn = Un, Is = kn([Mn("%String.prototype.indexOf%")]), qn = function(e, r) {
2611
2611
  var n = (
2612
2612
  /** @type {(this: unknown, ...args: unknown[]) => unknown} */
2613
2613
  Mn(e, !!r)
2614
2614
  );
2615
- return typeof n == "function" && $s(e, ".prototype.") > -1 ? kn(
2615
+ return typeof n == "function" && Is(e, ".prototype.") > -1 ? kn(
2616
2616
  /** @type {const} */
2617
2617
  [n]
2618
2618
  ) : n;
2619
- }, Is = Zt, $e = qn, Ds = tt, Us = ge, zr = Is("%Map%", !0), Ls = $e("Map.prototype.get", !0), Bs = $e("Map.prototype.set", !0), Ms = $e("Map.prototype.has", !0), ks = $e("Map.prototype.delete", !0), qs = $e("Map.prototype.size", !0), jn = !!zr && /** @type {Exclude<import('.'), false>} */
2619
+ }, $s = Zt, Ie = qn, Ds = tt, Us = ge, zr = $s("%Map%", !0), Ls = Ie("Map.prototype.get", !0), Bs = Ie("Map.prototype.set", !0), Ms = Ie("Map.prototype.has", !0), ks = Ie("Map.prototype.delete", !0), qs = Ie("Map.prototype.size", !0), jn = !!zr && /** @type {Exclude<import('.'), false>} */
2620
2620
  function() {
2621
2621
  var e, r = {
2622
2622
  assert: function(n) {
@@ -3157,12 +3157,12 @@ function() {
3157
3157
  o = oe.merge(o, u, r);
3158
3158
  }
3159
3159
  return r.allowSparse === !0 ? o : oe.compact(o);
3160
- }, Fl = El, Nl = Cl, $l = Yt, Il = {
3161
- formats: $l,
3160
+ }, Fl = El, Nl = Cl, Il = Yt, $l = {
3161
+ formats: Il,
3162
3162
  parse: Nl,
3163
3163
  stringify: Fl
3164
3164
  };
3165
- const Dl = /* @__PURE__ */ qi(Il);
3165
+ const Dl = /* @__PURE__ */ qi($l);
3166
3166
  /*! js-cookie v3.0.5 | MIT */
3167
3167
  function Be(t) {
3168
3168
  for (var e = 1; e < arguments.length; e++) {
@@ -3236,9 +3236,9 @@ function qt(t, e) {
3236
3236
  var Jr = qt(Ul, { path: "/" });
3237
3237
  jt.extend(io);
3238
3238
  jt.extend(ao);
3239
- const er = Yr(), Kn = er.sso ?? !0, Vr = er.i18n ?? !0, Qn = er.noRedireLogin ?? !1;
3239
+ const Ll = "UTC", Bl = () => jt.tz.guess() || Ll, er = Yr(), Kn = er.sso ?? !0, Vr = er.i18n ?? !0, Qn = er.noRedireLogin ?? !1;
3240
3240
  let Kr = "", Qr = 0;
3241
- const Ll = 1e3, Xr = async (t, e, r = []) => {
3241
+ const Ml = 1e3, Xr = async (t, e, r = []) => {
3242
3242
  const n = Date.now(), o = 1200, i = 60;
3243
3243
  for (; Date.now() - n < o; ) {
3244
3244
  const a = t(e, ...r);
@@ -3248,17 +3248,19 @@ const Ll = 1e3, Xr = async (t, e, r = []) => {
3248
3248
  return t(e, ...r);
3249
3249
  };
3250
3250
  let Ct = !1;
3251
- const Bl = 5e3, Xn = () => Ct ? !1 : (Ct = !0, setTimeout(() => {
3251
+ const kl = 5e3, Xn = () => Ct ? !1 : (Ct = !0, setTimeout(() => {
3252
3252
  Ct = !1;
3253
- }, Bl), !0), Zn = () => {
3254
- var e, r;
3253
+ }, kl), !0), Zn = () => {
3255
3254
  if (Qn) return;
3256
3255
  const t = "/login";
3257
- location.pathname !== t && (window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1, (e = window.top) != null && e.vueRouter ? (r = window.top) == null || r.vueRouter.replace(t) : window.location.replace(`/#${t}`));
3258
- }, Ml = () => to("code") || "" || Qn ? !1 : Xn() ? (Kn ? ro({ ...no, redirect_uri: oo }) : Zn(), !0) : !1, kl = async (t) => {
3256
+ if (location.pathname === t) return;
3257
+ window.sessionStorage.clear(), window.localStorage.clear(), window.__isAutoCloseApp = !1;
3258
+ const e = window.top;
3259
+ e != null && e.vueRouter ? e.vueRouter.replace(t) : window.location.replace(`/#${t}`);
3260
+ }, ql = () => to("code") || "" || Qn ? !1 : Xn() ? (Kn ? ro({ ...no, redirect_uri: oo }) : Zn(), !0) : !1, jl = async (t) => {
3259
3261
  var r;
3260
3262
  return ((r = t.config) == null ? void 0 : r.responseType) === "blob" ? t : t.data ?? t;
3261
- }, ql = async (t, e) => {
3263
+ }, Hl = async (t, e) => {
3262
3264
  var d, m, h, b;
3263
3265
  const { t: r } = Zr();
3264
3266
  let n, o, i = {};
@@ -3266,7 +3268,7 @@ const Bl = 5e3, Xn = () => Ct ? !1 : (Ct = !0, setTimeout(() => {
3266
3268
  let s = ((d = t == null ? void 0 : t.response) == null ? void 0 : d.data) || {};
3267
3269
  const u = s == null ? void 0 : s.code, c = (m = t.response) == null ? void 0 : m.status;
3268
3270
  if (u === 401 || c === 401) {
3269
- Ml(), n = u || c, i = s;
3271
+ ql(), n = u || c, i = s;
3270
3272
  const O = (e == null ? void 0 : e.i18n) ?? !0;
3271
3273
  if (Vr && O && (s != null && s.status)) {
3272
3274
  const g = !(s != null && s.data) || !s.data.length ? [] : s.data, E = r(s.status, ...g);
@@ -3296,10 +3298,10 @@ const Bl = 5e3, Xn = () => Ct ? !1 : (Ct = !0, setTimeout(() => {
3296
3298
  o || (o = a[t.response.status] || t.message);
3297
3299
  } else t.request ? (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("网络异常,请检查您的网络情况")) : (n = 500, t.code === "ERR_CANCELED" ? o = t.abortReason || "" : o = r("请求配置异常"));
3298
3300
  e != null && e.customErrorMessage && (o = e == null ? void 0 : e.customErrorMessage(o, t));
3299
- const p = Date.now(), y = o === Kr, v = p - Qr < Ll;
3301
+ const p = Date.now(), y = o === Kr, v = p - Qr < Ml;
3300
3302
  return !(e != null && e.ignoreErrorMessage) && o && (!y || !v) && ((b = (h = window.DasMessage) == null ? void 0 : h.error) == null || b.call(h, { message: o, showClose: !0 }), Kr = o, Qr = p), { ...i, code: n, msg: o, error: t };
3301
3303
  };
3302
- function Yl(t, e) {
3304
+ function tc(t, e) {
3303
3305
  const r = R.create();
3304
3306
  return Yn(r, async (n) => {
3305
3307
  const { currentLang: o } = Zr(), i = Yr();
@@ -3320,7 +3322,7 @@ function Yl(t, e) {
3320
3322
  }
3321
3323
  p && !n.headers.Authorization && (n.headers.Authorization = `Bearer ${p}`);
3322
3324
  }
3323
- n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Dl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = kl), n.onError || (n.onError = ql), (n.csrf ?? !1) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
3325
+ n.baseURL || (n.baseURL = i.baseURL || ""), n.urlPrefix || (n.urlPrefix = t), n.paramsSerializer || (n.paramsSerializer = { serialize: (p) => Dl.stringify(p, { indices: !1 }) }), n.onSuccess || (n.onSuccess = jl), n.onError || (n.onError = Hl), (n.csrf ?? !1) && (n.headers["csrf-token"] = Jr.get("csrf-token"));
3324
3326
  const u = n.params || {};
3325
3327
  if (u.project === void 0) {
3326
3328
  let p = 0;
@@ -3331,11 +3333,11 @@ function Yl(t, e) {
3331
3333
  const { instanceInfo: p } = lo();
3332
3334
  p != null && p.instanceId && (u.instance = p.instanceId);
3333
3335
  }
3334
- n.params = u, n.headers.Timezone = jt.tz.guess(), n.headers["X-Origin"] = location.origin;
3336
+ n.params = u, n.headers.Timezone = Bl(), n.headers["X-Origin"] = location.origin;
3335
3337
  const l = (o == null ? void 0 : o.value) ?? "";
3336
3338
  return l && (n.headers["Accept-Language"] = l), l && Jr.set("locale", l), (e == null ? void 0 : e(n)) || n;
3337
3339
  });
3338
3340
  }
3339
3341
  export {
3340
- Yl as createService
3342
+ tc as createService
3341
3343
  };
package/atob/es5.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export declare const encryption: (str: string) => any;
2
+ export declare const decrypt: (str: string) => any;
@@ -0,0 +1,48 @@
1
+ import { UserInfo, PersonalInfo, TenantInfo, HomeInfo, PersonalConfigInfo, ProjectInfo, ProjectMessage, menuItemTs } from './type';
2
+ import { groupPermissionListByModuleAndCode, getGroupedCurrentUserPermissionList, getCurrentModulePermissionData, getCurrentUserPermissionList, hasMenuPermissionByRouteCode } from './getPermissionMethod';
3
+
4
+ export { groupPermissionListByModuleAndCode, getGroupedCurrentUserPermissionList, getCurrentModulePermissionData, getCurrentUserPermissionList, hasMenuPermissionByRouteCode, };
5
+ /** 获取当前应用详情 */
6
+ export declare const getMenuItemInfo: (val?: any) => menuItemTs;
7
+ /** 获取当前应用详情 */
8
+ export declare const getMenuListnfo: () => any;
9
+ /** 获取所有权限code详情 */
10
+ export declare const getAuthobj: () => any;
11
+ /** 获取token */
12
+ export declare const getToken: any;
13
+ /** 获取账户详情 */
14
+ export declare const getUserInfo: () => UserInfo;
15
+ /** 获取用户详情 */
16
+ export declare const getPersonalInfo: () => PersonalInfo;
17
+ /** 获取当前租户详情 */
18
+ export declare const getTenantInfo: () => TenantInfo;
19
+ /** 获取当前租户设置了多少个语言类型 */
20
+ export declare const getLanguages: () => any;
21
+ /**
22
+ * 获取项目信息
23
+ * @returns 项目信息
24
+ */
25
+ export declare const getProjectInfo: () => ProjectInfo;
26
+ /**
27
+ * 获取项目信息
28
+ * @returns 项目信息
29
+ */
30
+ export declare const getProjectMessage: () => ProjectMessage;
31
+ /** 获取首页信息 */
32
+ export declare const getHomeInfo: () => HomeInfo;
33
+ export declare const getPersonalConfig: () => PersonalConfigInfo;
34
+ export declare const getCurrentRouteCode: () => any;
35
+ export type ActionSuffixReturnType = 'set' | 'list';
36
+ export interface BuildActionSuffixSetOptions {
37
+ routeCode?: string;
38
+ returnType?: ActionSuffixReturnType;
39
+ }
40
+ export declare const buildActionSuffixSet: (actionCodes: unknown, options?: BuildActionSuffixSetOptions) => any;
41
+ /** 获取minio地址 */
42
+ export declare const getMinioAddress: () => any;
43
+ /** 获取iot instanceinfo */
44
+ export declare const getInstanceInfo: () => {
45
+ instanceInfo: any;
46
+ };
47
+ /** 获取favIcon */
48
+ export declare const getFavIcon: () => any;