@partex/one-core 2.0.49 → 2.0.51

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.
package/lib/one-core.js CHANGED
@@ -606,7 +606,7 @@ const gn = (e, t = "yyyy-MM-dd") => {
606
606
  } catch {
607
607
  return "";
608
608
  }
609
- }, iY = (e, t = 500) => {
609
+ }, aY = (e, t = 500) => {
610
610
  const r = e;
611
611
  let n;
612
612
  const a = function(...o) {
@@ -616,10 +616,10 @@ const gn = (e, t = "yyyy-MM-dd") => {
616
616
  };
617
617
  return a;
618
618
  };
619
- function oY(e, t) {
619
+ function iY(e, t) {
620
620
  e.requestFullscreen ? (t && (e.onfullscreenchange = t), e.requestFullscreen()) : e.mozRequestFullScreen ? (t && (e.onmozfullscreenchange = t), e.mozRequestFullScreen()) : e.webkitRequestFullscreen ? (t && (e.onwebkitfullscreenchange = t), e.webkitRequestFullscreen()) : e.msRequestFullscreen && (t && (e.onmsfullscreenchange = t), e.msRequestFullscreen());
621
621
  }
622
- function sY(e, t = 0) {
622
+ function oY(e, t = 0) {
623
623
  const r = ["", "k", "m", "b", "t"], n = Math.floor(Math.log10(Math.abs(e)) / 3), a = Math.max(0, Math.min(n, r.length - 1)), i = r[a];
624
624
  return i ? (e / Math.pow(10, a * 3)).toFixed(t) + i : (e / Math.pow(10, a * 3)).toFixed(0);
625
625
  }
@@ -830,7 +830,7 @@ const Yx = {
830
830
  "zh-CN": { ...Yx },
831
831
  "fr-FR": {}
832
832
  }
833
- }), Ut = Xx, L_ = "2.0.49", _p = {
833
+ }), Ut = Xx, L_ = "2.0.51", _p = {
834
834
  Components: {
835
835
  platformName: () => `${Ut.global.t("Platform.components")} v${L_}`,
836
836
  platformType: "T0",
@@ -28085,7 +28085,7 @@ Fi.interceptors.response.use(
28085
28085
  return Promise.reject();
28086
28086
  }
28087
28087
  );
28088
- const lY = () => {
28088
+ const sY = () => {
28089
28089
  fd.cancel(), fd = _d.CancelToken.source();
28090
28090
  }, up = "/apiserver/", AH = (e, t, r = "json") => Fi({
28091
28091
  url: `${up}${e}`,
@@ -28098,7 +28098,7 @@ const lY = () => {
28098
28098
  data: t,
28099
28099
  responseType: r,
28100
28100
  timeout: n
28101
- }), uY = (e) => Fi(e), AC = (e, t) => Fi({
28101
+ }), lY = (e) => Fi(e), AC = (e, t) => Fi({
28102
28102
  headers: {
28103
28103
  "Content-Type": "multipart/form-data"
28104
28104
  },
@@ -32942,7 +32942,7 @@ let hp = 3840, dp = 2160;
32942
32942
  const BW = cd({
32943
32943
  scale: 1
32944
32944
  });
32945
- function fY(e, t) {
32945
+ function uY(e, t) {
32946
32946
  hp = e, dp = t;
32947
32947
  }
32948
32948
  function VW() {
@@ -32963,13 +32963,13 @@ function VW() {
32963
32963
  }
32964
32964
  BW.scale = e;
32965
32965
  }
32966
- function cY() {
32966
+ function fY() {
32967
32967
  const e = $W(VW, 200);
32968
32968
  return e(), window.addEventListener("resize", e), () => {
32969
32969
  hp = 3840, dp = 2160, window.removeEventListener("resize", e);
32970
32970
  };
32971
32971
  }
32972
- const hY = (e) => !!(G.kind === -1 || G.kind === 99 || G.iot_menu_authorization.includes(e)), dY = (e) => G.platform_tdm ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.tdm_menu_authorization.includes(e) : !1, vY = (e) => G.platform_qms ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.qms_menu_authorization.includes(e) : !1, pY = (e) => G.platform_twin ? (G.kind === -1 || G.kind === 99 || e === "home", !0) : !1, gY = (e) => !!(G.kind === -1 || G.kind === 99 || G.maintain_menu_authorization.includes(e));
32972
+ const cY = (e) => !!(G.kind === -1 || G.kind === 99 || G.iot_menu_authorization.includes(e)), hY = (e) => G.platform_tdm ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.tdm_menu_authorization.includes(e) : !1, dY = (e) => G.platform_qms ? G.kind === -1 || G.kind === 99 || e === "home" ? !0 : G.qms_menu_authorization.includes(e) : !1, vY = (e) => G.platform_twin ? (G.kind === -1 || G.kind === 99 || e === "home", !0) : !1, pY = (e) => !!(G.kind === -1 || G.kind === 99 || G.maintain_menu_authorization.includes(e));
32973
32973
  let yl = "";
32974
32974
  const Me = navigator.userAgent.toLocaleUpperCase(), FW = () => {
32975
32975
  const e = /WINDOWS NT 5.[\d]+/, t = /WINDOWS NT 6.[\d]+/, r = /WINDOWS NT 7.[\d]+/, n = /WINDOWS NT 10.[\d]+/, a = /WINDOWS NT 11.[\d]+/, i = /ANDROID [\d.]+/, o = /IPHONE/, s = /IPAD/, l = /MAC/;
@@ -33130,8 +33130,7 @@ async function YW() {
33130
33130
  WW();
33131
33131
  }, 60 * 1e3);
33132
33132
  }
33133
- const qW = ["OcEcharts", "OcScan"];
33134
- function XW({ components: e = [] } = {}) {
33133
+ function qW({ components: e = [] } = {}) {
33135
33134
  const t = [];
33136
33135
  function r(a, i, o) {
33137
33136
  a.component(i) || a.component(i, o);
@@ -33139,9 +33138,9 @@ function XW({ components: e = [] } = {}) {
33139
33138
  function n(a, i) {
33140
33139
  if (!t.includes(a) && (t.push(a), e.forEach((o) => {
33141
33140
  const { name: s, alias: l } = o;
33142
- qW.includes(s) || (r(a, s, o), l && l.forEach((u) => {
33141
+ r(a, s, o), l && l.forEach((u) => {
33143
33142
  r(a, u, o);
33144
- }));
33143
+ });
33145
33144
  }), i)) {
33146
33145
  const {
33147
33146
  platform: o = "iot",
@@ -33159,13 +33158,13 @@ function XW({ components: e = [] } = {}) {
33159
33158
  install: n
33160
33159
  };
33161
33160
  }
33162
- const jW = XW({
33161
+ const XW = qW({
33163
33162
  components: Object.keys(f_).map(
33164
33163
  (e) => f_[e]
33165
33164
  )
33166
- }), mY = jW.install;
33165
+ }), gY = XW.install;
33167
33166
  export {
33168
- uY as CUSTOM,
33167
+ lY as CUSTOM,
33169
33168
  AC as FILE,
33170
33169
  AH as GET,
33171
33170
  bd as IconAdd,
@@ -33216,15 +33215,15 @@ export {
33216
33215
  sW as OcWorkflow,
33217
33216
  Pt as POST,
33218
33217
  pe as commonStore,
33219
- XW as create,
33218
+ qW as create,
33220
33219
  k9 as darkTheme,
33221
- jW as default,
33222
- lY as fnCancelFetch,
33223
- pY as fnCheckDashRole,
33224
- hY as fnCheckIoTRole,
33225
- gY as fnCheckMaintainRole,
33226
- vY as fnCheckQMSRole,
33227
- dY as fnCheckTDMRole,
33220
+ XW as default,
33221
+ sY as fnCancelFetch,
33222
+ vY as fnCheckDashRole,
33223
+ cY as fnCheckIoTRole,
33224
+ pY as fnCheckMaintainRole,
33225
+ dY as fnCheckQMSRole,
33226
+ hY as fnCheckTDMRole,
33228
33227
  cp as fnClearUser,
33229
33228
  VW as fnComputedScale,
33230
33229
  _l as fnDecodeCursor,
@@ -33233,25 +33232,25 @@ export {
33233
33232
  MC as fnDownload,
33234
33233
  na as fnEncodeCursor,
33235
33234
  gn as fnFormatTime,
33236
- sY as fnFormatUnits,
33237
- oY as fnFullScreen,
33235
+ oY as fnFormatUnits,
33236
+ iY as fnFullScreen,
33238
33237
  ir as fnGetStorage,
33239
33238
  fp as fnGetUser,
33240
- cY as fnListenerScale,
33239
+ fY as fnListenerScale,
33241
33240
  gu as fnPageModel2Naive,
33242
33241
  mu as fnPageNaive2Model,
33243
33242
  Sa as fnRenderAction,
33244
33243
  Qc as fnScrollTop,
33245
33244
  zo as fnSetLang,
33246
- fY as fnSetNormalWidthAndHeight,
33245
+ uY as fnSetNormalWidthAndHeight,
33247
33246
  Sr as fnSetStorage,
33248
33247
  yu as fnSetTheme,
33249
33248
  NC as fnSetUser,
33250
- iY as fnThrottle,
33249
+ aY as fnThrottle,
33251
33250
  kC as fnUserLogout,
33252
33251
  ho as getDefaultDate,
33253
33252
  Ut as i18n,
33254
- mY as install,
33253
+ gY as install,
33255
33254
  N9 as lightTheme,
33256
33255
  BW as scaleStore,
33257
33256
  G as userStore