@partex/one-core 2.0.39 → 2.0.40

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
@@ -2,7 +2,7 @@ var Mn = Object.defineProperty;
2
2
  var jn = (e, o, t) => o in e ? Mn(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t;
3
3
  var so = (e, o, t) => (jn(e, typeof o != "symbol" ? o + "" : o, t), t);
4
4
  import { defineComponent as x, openBlock as v, createElementBlock as P, createElementVNode as y, h as E, reactive as Ko, resolveComponent as f, createBlock as j, withCtx as c, createVNode as l, toDisplayString as V, ref as N, Fragment as re, normalizeStyle as Wo, createCommentVNode as B, createTextVNode as q, onMounted as Ce, onBeforeUnmount as Jo, watch as me, renderList as Fe, withDirectives as Ve, vShow as Re, createSlots as zo, renderSlot as $e, withKeys as Uo, nextTick as Bn, normalizeClass as zn, computed as Un, mergeProps as Fn } from "vue";
5
- import { NPopover as ke, NFlex as ie, NButton as ee, NTooltip as Me, NIcon as ce, NPopconfirm as Oa, NGrid as Le, NForm as xo, NFormItemGi as Vn, NInput as no, NSelect as Xo, NInputNumber as Ia, NDatePicker as Qo, NTimePicker as Pa, NSwitch as Rn, NUpload as Aa, NUploadDragger as Ln, createDiscreteApi as En, NDataTable as Ee, useNotification as Oe, NBadge as qn, NRadioGroup as Gn, NRadioButton as Hn, NDropdown as Da, NMenu as Kn, NDrawer as Wn, NDrawerContent as Jn, NCard as Yo, NModal as Ma, NTabs as xn, NTabPane as Xn, NFormItem as ja, NGi as yo, NDivider as Qn, darkTheme as je, NConfigProvider as Yn, NDialogProvider as Zn, NNotificationProvider as er, zhCN as or, dateZhCN as tr, NInputGroup as Zo, NInputGroupLabel as Ba, NGridItem as ar, NCascader as nr, NTreeSelect as rr, NSkeleton as lr, NSlider as sr } from "naive-ui";
5
+ import { NPopover as ke, NFlex as ce, NButton as ee, NTooltip as Me, NIcon as se, NPopconfirm as Oa, NGrid as Le, NForm as xo, NFormItemGi as Vn, NInput as no, NSelect as Xo, NInputNumber as Ia, NDatePicker as Qo, NTimePicker as Pa, NSwitch as Rn, NUpload as Aa, NUploadDragger as Ln, createDiscreteApi as En, NDataTable as Ee, useNotification as Oe, NBadge as qn, NRadioGroup as Gn, NRadioButton as Hn, NDropdown as Da, NMenu as Kn, NDrawer as Wn, NDrawerContent as Jn, NCard as Yo, NModal as Ma, NTabs as xn, NTabPane as Xn, NFormItem as ja, NGi as yo, NDivider as Qn, darkTheme as je, NConfigProvider as Yn, NDialogProvider as Zn, NNotificationProvider as er, zhCN as or, dateZhCN as tr, NInputGroup as Zo, NInputGroupLabel as Ba, NGridItem as ar, NCascader as nr, NTreeSelect as rr, NSkeleton as lr, NSlider as sr } from "naive-ui";
6
6
  import { useRoute as bo, useRouter as qe, createRouter as ir, createWebHistory as cr } from "vue-router";
7
7
  import { createI18n as ur, useI18n as ye } from "vue-i18n";
8
8
  import et from "axios";
@@ -822,7 +822,7 @@ const Fs = {
822
822
  "zh-CN": { ...Fs },
823
823
  "fr-FR": {}
824
824
  }
825
- }), de = Rs, Wa = "2.0.39", xt = {
825
+ }), de = Rs, Wa = "2.0.40", xt = {
826
826
  Components: {
827
827
  platformName: () => `${de.global.t("Platform.components")} v${Wa}`,
828
828
  platformType: "T0",
@@ -944,7 +944,7 @@ const io = (e, o) => E(
944
944
  e.onClick && typeof e.onClick == "function" && (d.onClick = e.onClick.bind(void 0, n, r));
945
945
  }
946
946
  return t && (s.icon = () => E(
947
- ce,
947
+ se,
948
948
  {},
949
949
  {
950
950
  default: () => E(
@@ -1103,7 +1103,7 @@ const io = (e, o) => E(
1103
1103
  t
1104
1104
  ),
1105
1105
  default: () => E(
1106
- ie,
1106
+ ce,
1107
1107
  {
1108
1108
  vertical: !0
1109
1109
  },
@@ -1148,7 +1148,7 @@ const Qs = /* @__PURE__ */ z(Ks, [["render", Xs]]), Ys = x({
1148
1148
  components: {
1149
1149
  IconChevronLeft: Fa,
1150
1150
  NButton: ee,
1151
- NIcon: ce
1151
+ NIcon: se
1152
1152
  },
1153
1153
  props: {
1154
1154
  to: {
@@ -2081,7 +2081,7 @@ var o0 = e0;
2081
2081
  const pe = /* @__PURE__ */ xa(o0), t0 = x({
2082
2082
  name: "OcForm",
2083
2083
  components: {
2084
- NIcon: ce,
2084
+ NIcon: se,
2085
2085
  NGrid: Le,
2086
2086
  NForm: xo,
2087
2087
  NFormItemGi: Vn,
@@ -2503,7 +2503,7 @@ const Ey = () => {
2503
2503
  method: "GET",
2504
2504
  data: o,
2505
2505
  responseType: t
2506
- }), se = (e, o = {}, t = "json", n = 3e5) => Xe({
2506
+ }), ie = (e, o = {}, t = "json", n = 3e5) => Xe({
2507
2507
  url: `${kt}${e}`,
2508
2508
  method: "POST",
2509
2509
  data: o,
@@ -2518,9 +2518,9 @@ const Ey = () => {
2518
2518
  data: o
2519
2519
  }), _a = (e) => {
2520
2520
  const o = JSON.parse(JSON.stringify(e));
2521
- return o.password = uo(o.password), se("api/user/v2/login", o);
2521
+ return o.password = uo(o.password), ie("api/user/v2/login", o);
2522
2522
  }, u0 = () => new Promise((e, o) => {
2523
- se("api/auth/user/getCurrentUserInfo", {}, "json", 1e4).then((t) => {
2523
+ ie("api/auth/user/getCurrentUserInfo", {}, "json", 1e4).then((t) => {
2524
2524
  const n = ["046459"];
2525
2525
  t.commissioner = !1, n.includes(String(t.tenantLoginCode)) && (t.commissioner = !0);
2526
2526
  const r = t.ownedProducts ? JSON.parse(t.ownedProducts) : [];
@@ -2539,11 +2539,11 @@ const Ey = () => {
2539
2539
  }).catch(() => {
2540
2540
  o();
2541
2541
  });
2542
- }), d0 = () => se("api/auth/user/logout"), p0 = () => se("api/manager/message/markReadAll"), f0 = () => se("api/auth/user/updateTenantRenewalStatus"), h0 = (e) => se("api/manager/job/remove", e), m0 = (e) => se("api/manager/job/retry", {
2542
+ }), d0 = () => ie("api/auth/user/logout"), p0 = () => ie("api/manager/message/markReadAll"), f0 = () => ie("api/auth/user/updateTenantRenewalStatus"), h0 = (e) => ie("api/manager/job/remove", e), m0 = (e) => ie("api/manager/job/retry", {
2543
2543
  jobId: e
2544
2544
  }), g0 = (e) => new Promise((o, t) => {
2545
2545
  const n = ko(e);
2546
- se("api/manager/job/page", n).then((r) => {
2546
+ ie("api/manager/job/page", n).then((r) => {
2547
2547
  const d = Co(r);
2548
2548
  o(d);
2549
2549
  }).catch(() => {
@@ -2560,7 +2560,7 @@ const Ey = () => {
2560
2560
  });
2561
2561
  }), v0 = (e) => new Promise((o, t) => {
2562
2562
  const n = ko(e);
2563
- n.status === -1 && (n.status = ""), se("api/manager/message/messagePage", n).then((r) => {
2563
+ n.status === -1 && (n.status = ""), ie("api/manager/message/messagePage", n).then((r) => {
2564
2564
  const d = Co(r);
2565
2565
  o({
2566
2566
  data: d,
@@ -2569,7 +2569,7 @@ const Ey = () => {
2569
2569
  }).catch(() => {
2570
2570
  t();
2571
2571
  });
2572
- }), y0 = (e) => se("api/manager/message/markRead", {
2572
+ }), y0 = (e) => ie("api/manager/message/markRead", {
2573
2573
  messageId: e
2574
2574
  });
2575
2575
  let $n = !0;
@@ -2659,12 +2659,12 @@ async function kn() {
2659
2659
  const w0 = x({
2660
2660
  name: "HeaderPop",
2661
2661
  components: {
2662
- NFlex: ie,
2662
+ NFlex: ce,
2663
2663
  NInput: no,
2664
2664
  NPopover: ke,
2665
2665
  NTooltip: Me,
2666
2666
  NButton: ee,
2667
- NIcon: ce,
2667
+ NIcon: se,
2668
2668
  NDataTable: Ee,
2669
2669
  IconSearch: nt,
2670
2670
  IconArrowClockwise: to,
@@ -2930,10 +2930,10 @@ const C0 = /* @__PURE__ */ z(w0, [["render", $0]]), k0 = x({
2930
2930
  components: {
2931
2931
  NBadge: qn,
2932
2932
  NPopover: ke,
2933
- NFlex: ie,
2933
+ NFlex: ce,
2934
2934
  NTooltip: Me,
2935
2935
  NButton: ee,
2936
- NIcon: ce,
2936
+ NIcon: se,
2937
2937
  NDataTable: Ee,
2938
2938
  NRadioGroup: Gn,
2939
2939
  NRadioButton: Hn,
@@ -3171,10 +3171,10 @@ const S0 = /* @__PURE__ */ z(k0, [["render", T0]]), O0 = x({
3171
3171
  Message: S0,
3172
3172
  NDropdown: Da,
3173
3173
  NMenu: Kn,
3174
- NIcon: ce,
3174
+ NIcon: se,
3175
3175
  NButton: ee,
3176
3176
  NDrawer: Wn,
3177
- NFlex: ie,
3177
+ NFlex: ce,
3178
3178
  NDrawerContent: Jn,
3179
3179
  NCard: Yo,
3180
3180
  IconWeatherSunny: at,
@@ -3242,7 +3242,7 @@ const S0 = /* @__PURE__ */ z(k0, [["render", T0]]), O0 = x({
3242
3242
  default: () => I.label
3243
3243
  }
3244
3244
  ), T = (I) => I.icon ? E(
3245
- ce,
3245
+ se,
3246
3246
  {
3247
3247
  size: 24,
3248
3248
  onClick: () => _(I)
@@ -3286,7 +3286,7 @@ const S0 = /* @__PURE__ */ z(k0, [["render", T0]]), O0 = x({
3286
3286
  key: "tenantName"
3287
3287
  },
3288
3288
  {
3289
- label: `${s ? "日间" : "夜间"}`,
3289
+ label: `主题 ${s.value ? "日间" : "夜间"}`,
3290
3290
  key: "theme"
3291
3291
  }
3292
3292
  ];
@@ -3362,7 +3362,7 @@ const S0 = /* @__PURE__ */ z(k0, [["render", T0]]), O0 = x({
3362
3362
  const I = document.getElementById("app");
3363
3363
  I && I.classList.add("outrange"), r.info({
3364
3364
  action: () => E(
3365
- ie,
3365
+ ce,
3366
3366
  {
3367
3367
  size: [15, 15]
3368
3368
  },
@@ -3434,7 +3434,7 @@ const S0 = /* @__PURE__ */ z(k0, [["render", T0]]), O0 = x({
3434
3434
  )
3435
3435
  ]), r.info({
3436
3436
  action: () => E(
3437
- ie,
3437
+ ce,
3438
3438
  {
3439
3439
  size: [15, 15]
3440
3440
  },
@@ -3479,7 +3479,7 @@ const S0 = /* @__PURE__ */ z(k0, [["render", T0]]), O0 = x({
3479
3479
  clearInterval(window.versionMonitor);
3480
3480
  },
3481
3481
  action: () => E(
3482
- ie,
3482
+ ce,
3483
3483
  {
3484
3484
  justify: "space-between"
3485
3485
  },
@@ -3703,7 +3703,7 @@ const D0 = /* @__PURE__ */ z(O0, [["render", A0]]), Nn = (e) => {
3703
3703
  }), wn("api/manager/job/submit", o);
3704
3704
  }, M0 = (e) => new Promise((o, t) => {
3705
3705
  const n = ko(e);
3706
- se("api/manager/job/page", n).then((r) => {
3706
+ ie("api/manager/job/page", n).then((r) => {
3707
3707
  const d = Co(r);
3708
3708
  o(d);
3709
3709
  }).catch(() => {
@@ -3718,11 +3718,11 @@ const D0 = /* @__PURE__ */ z(O0, [["render", A0]]), Nn = (e) => {
3718
3718
  IconCloudArrowDown: st,
3719
3719
  NModal: Ma,
3720
3720
  NCard: Yo,
3721
- NFlex: ie,
3721
+ NFlex: ce,
3722
3722
  NUpload: Aa,
3723
3723
  NButton: ee,
3724
3724
  NTooltip: Me,
3725
- NIcon: ce,
3725
+ NIcon: se,
3726
3726
  NDataTable: Ee
3727
3727
  },
3728
3728
  props: {
@@ -4008,6 +4008,7 @@ const Tn = /* @__PURE__ */ z(B0, [["render", U0]]), F0 = x({
4008
4008
  NButton: ee,
4009
4009
  NGrid: Le,
4010
4010
  NGi: yo,
4011
+ NIcon: se,
4011
4012
  NPopover: ke,
4012
4013
  IconWeatherSunny: at,
4013
4014
  IconWeatherMoon: tt
@@ -4753,8 +4754,8 @@ function mg(e, o, t, n, r, d) {
4753
4754
  }
4754
4755
  const gg = /* @__PURE__ */ z(hg, [["render", mg]]), vg = (e) => {
4755
4756
  const o = JSON.parse(JSON.stringify(e));
4756
- return o.oldPassword = uo(o.oldPassword), o.newPassword = uo(o.newPassword), o.comfirmPassword = uo(o.comfirmPassword), se("api/auth/user/modifyPassword", o);
4757
- }, yg = (e) => se("api/auth/user/update", e), bg = x({
4757
+ return o.oldPassword = uo(o.oldPassword), o.newPassword = uo(o.newPassword), o.comfirmPassword = uo(o.comfirmPassword), ie("api/auth/user/modifyPassword", o);
4758
+ }, yg = (e) => ie("api/auth/user/update", e), bg = x({
4758
4759
  name: "OcMy",
4759
4760
  components: {
4760
4761
  NGrid: Le,
@@ -5056,7 +5057,7 @@ function Og(e, o, t, n, r, d) {
5056
5057
  const Ig = /* @__PURE__ */ z(bg, [["render", Og]]);
5057
5058
  function Pg(e) {
5058
5059
  return new Promise((o, t) => {
5059
- se("api/manager/factory-params/detail", { keyName: e }).then((n) => {
5060
+ ie("api/manager/factory-params/detail", { keyName: e }).then((n) => {
5060
5061
  const r = JSON.parse(n.valueJson ?? "[]");
5061
5062
  o(r);
5062
5063
  }).catch(() => {
@@ -5067,7 +5068,7 @@ function Pg(e) {
5067
5068
  const Ag = x({
5068
5069
  name: "OcReport",
5069
5070
  components: {
5070
- NFlex: ie,
5071
+ NFlex: ce,
5071
5072
  NDataTable: Ee,
5072
5073
  NDatePicker: Qo,
5073
5074
  NInputGroup: Zo,
@@ -5197,8 +5198,8 @@ const Bg = /* @__PURE__ */ z(Ag, [["render", jg]]), zg = x({
5197
5198
  NButton: ee,
5198
5199
  NModal: Ma,
5199
5200
  NCard: Yo,
5200
- NFlex: ie,
5201
- NIcon: ce,
5201
+ NFlex: ce,
5202
+ NIcon: se,
5202
5203
  IconDismiss: De
5203
5204
  },
5204
5205
  emits: ["on-update:value"],
@@ -5402,7 +5403,7 @@ function Gg(e, o, t, n, r, d) {
5402
5403
  const Hg = /* @__PURE__ */ z(Eg, [["render", Gg]]), Kg = x({
5403
5404
  name: "OcSearchBarItem",
5404
5405
  components: {
5405
- NIcon: ce,
5406
+ NIcon: se,
5406
5407
  NButton: ee,
5407
5408
  NGrid: Le,
5408
5409
  NGridItem: ar,
@@ -5936,8 +5937,8 @@ function tv(e, o, t, n, r, d) {
5936
5937
  const av = /* @__PURE__ */ z(Qg, [["render", tv]]), nv = x({
5937
5938
  name: "OcSearchBar",
5938
5939
  components: {
5939
- NFlex: ie,
5940
- NIcon: ce,
5940
+ NFlex: ce,
5941
+ NIcon: se,
5941
5942
  NTooltip: Me,
5942
5943
  NButton: ee,
5943
5944
  NPopover: ke,
@@ -6287,8 +6288,8 @@ const fv = /* @__PURE__ */ z(uv, [["render", pv]]), hv = x({
6287
6288
  NTooltip: Me,
6288
6289
  NPopover: ke,
6289
6290
  NButton: ee,
6290
- NIcon: ce,
6291
- NFlex: ie,
6291
+ NIcon: se,
6292
+ NFlex: ce,
6292
6293
  NPopconfirm: Oa,
6293
6294
  IconFilter: rt,
6294
6295
  IconNavigation: it,
@@ -6775,7 +6776,7 @@ const vv = /* @__PURE__ */ z(hv, [["render", gv]]), yv = x({
6775
6776
  components: {
6776
6777
  IconAdd: ot,
6777
6778
  NButton: ee,
6778
- NIcon: ce,
6779
+ NIcon: se,
6779
6780
  NPopover: ke
6780
6781
  },
6781
6782
  emits: ["update:add"],
@@ -6842,7 +6843,7 @@ function bv(e, o, t, n, r, d) {
6842
6843
  const In = /* @__PURE__ */ z(yv, [["render", bv]]), wv = x({
6843
6844
  name: "OcWorkflowCard",
6844
6845
  components: {
6845
- NFlex: ie,
6846
+ NFlex: ce,
6846
6847
  OcWorkflowAdd: In,
6847
6848
  IconDismiss: De
6848
6849
  },
@@ -7607,7 +7608,7 @@ export {
7607
7608
  fv as OcSkeleton,
7608
7609
  vv as OcTable,
7609
7610
  qv as OcWorkflow,
7610
- se as POST,
7611
+ ie as POST,
7611
7612
  H as commonStore,
7612
7613
  Oy as create,
7613
7614
  fg as darkTheme,