@partex/one-core 2.1.18 → 2.1.20
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 +84 -81
- package/package.json +1 -1
package/lib/one-core.js
CHANGED
|
@@ -2434,7 +2434,7 @@ const ws = /* @__PURE__ */ L(ms, [["render", bs]]), vs = X({
|
|
|
2434
2434
|
}
|
|
2435
2435
|
}), ks = /* @__PURE__ */ m("br", null, null, -1), Cs = /* @__PURE__ */ m("p", null, "点击或者拖动文件到该区域来上传", -1), Ns = /* @__PURE__ */ m("p", null, "请不要上传敏感数据,比如你的银行卡号和密码,信用卡号有效期和安全码", -1);
|
|
2436
2436
|
function $s(e, o, a, s, n, u) {
|
|
2437
|
-
const i = d("NDivider"), c = d("NInput"), h = d("NInputNumber"), f = d("NDatePicker"), g = d("NSelect"), b = d("NCascader"), y = d("NColorPicker"), w = d("NCheckbox"), P = d("NFlex"), _ = d("NCheckboxGroup"), S = d("NTimePicker"), B = d("NSwitch"), j = d("IconMailInboxAdd"), T = d("NIcon"),
|
|
2437
|
+
const i = d("NDivider"), c = d("NInput"), h = d("NInputNumber"), f = d("NDatePicker"), g = d("NSelect"), b = d("NCascader"), y = d("NColorPicker"), w = d("NCheckbox"), P = d("NFlex"), _ = d("NCheckboxGroup"), S = d("NTimePicker"), B = d("NSwitch"), j = d("IconMailInboxAdd"), T = d("NIcon"), R = d("NUploadDragger"), V = d("NUpload");
|
|
2438
2438
|
return p(), D(ie, null, [
|
|
2439
2439
|
e.item.input === "divider" ? (p(), O(i, {
|
|
2440
2440
|
key: 0,
|
|
@@ -2559,6 +2559,7 @@ function $s(e, o, a, s, n, u) {
|
|
|
2559
2559
|
key: 6,
|
|
2560
2560
|
value: e.formValue[e.item.key],
|
|
2561
2561
|
"onUpdate:value": o[5] || (o[5] = ($) => e.formValue[e.item.key] = $),
|
|
2562
|
+
"expand-trigger": "hover",
|
|
2562
2563
|
placeholder: typeof e.item.placeholder == "function" ? e.item.placeholder() : e.item.placeholder,
|
|
2563
2564
|
options: e.item.options,
|
|
2564
2565
|
disabled: e.edit && e.item.edit ? e.item.edit.disabled : e.item.disabled,
|
|
@@ -2672,7 +2673,7 @@ function $s(e, o, a, s, n, u) {
|
|
|
2672
2673
|
"directory-dnd": ""
|
|
2673
2674
|
}, {
|
|
2674
2675
|
default: l(() => [
|
|
2675
|
-
Le(r(
|
|
2676
|
+
Le(r(R, null, {
|
|
2676
2677
|
default: l(() => [
|
|
2677
2678
|
r(T, { size: "32" }, {
|
|
2678
2679
|
default: l(() => [
|
|
@@ -3681,7 +3682,7 @@ const Ws = /* @__PURE__ */ L(Hs, [["render", Js]]), Ks = X({
|
|
|
3681
3682
|
duration: 3e3
|
|
3682
3683
|
});
|
|
3683
3684
|
});
|
|
3684
|
-
},
|
|
3685
|
+
}, R = () => {
|
|
3685
3686
|
if (N.tenantStatus === 0 && N.renewalStatus === 0) {
|
|
3686
3687
|
const v = document.getElementById("app");
|
|
3687
3688
|
v && v.classList.add("outrange"), n.info({
|
|
@@ -3782,7 +3783,7 @@ const Ws = /* @__PURE__ */ L(Hs, [["render", Js]]), Ks = X({
|
|
|
3782
3783
|
}
|
|
3783
3784
|
};
|
|
3784
3785
|
return Oe(() => {
|
|
3785
|
-
|
|
3786
|
+
R(), f(a.path), $();
|
|
3786
3787
|
}), ve(
|
|
3787
3788
|
() => a.path,
|
|
3788
3789
|
(v) => {
|
|
@@ -4309,7 +4310,7 @@ const jt = /* @__PURE__ */ L(xs, [["render", oi]]), ti = X({
|
|
|
4309
4310
|
},
|
|
4310
4311
|
phone: {
|
|
4311
4312
|
required: !0,
|
|
4312
|
-
validator: (q,
|
|
4313
|
+
validator: (q, U) => U ? /^[1][3,4,5,6,7,8,9][0-9]{9}$/.test(U) : !1,
|
|
4313
4314
|
message: () => e("Common.login.mobileMessage"),
|
|
4314
4315
|
trigger: "blur"
|
|
4315
4316
|
},
|
|
@@ -4319,27 +4320,27 @@ const jt = /* @__PURE__ */ L(xs, [["render", oi]]), ti = X({
|
|
|
4319
4320
|
trigger: "input"
|
|
4320
4321
|
}
|
|
4321
4322
|
}), P = C([]), _ = C([]), S = C([]), B = C([]), j = () => {
|
|
4322
|
-
const q = pe("loginOption", {}),
|
|
4323
|
+
const q = pe("loginOption", {}), U = [];
|
|
4323
4324
|
Object.keys(q).forEach((J) => {
|
|
4324
|
-
|
|
4325
|
+
U.push({
|
|
4325
4326
|
label: J,
|
|
4326
4327
|
key: J
|
|
4327
4328
|
});
|
|
4328
|
-
}), P.value =
|
|
4329
|
+
}), P.value = U, _.value = U;
|
|
4329
4330
|
}, T = () => {
|
|
4330
|
-
const q = pe("phoneOption", {}),
|
|
4331
|
+
const q = pe("phoneOption", {}), U = [];
|
|
4331
4332
|
Object.keys(q).forEach((J) => {
|
|
4332
|
-
|
|
4333
|
+
U.push({
|
|
4333
4334
|
label: J,
|
|
4334
4335
|
key: J
|
|
4335
4336
|
});
|
|
4336
|
-
}), S.value =
|
|
4337
|
-
},
|
|
4338
|
-
ye("token", q, 0), Uo().then((
|
|
4337
|
+
}), S.value = U, B.value = U;
|
|
4338
|
+
}, R = (q) => {
|
|
4339
|
+
ye("token", q, 0), Uo().then((U) => {
|
|
4339
4340
|
o.success({
|
|
4340
4341
|
content: () => e("Notice.success"),
|
|
4341
4342
|
duration: 3e3
|
|
4342
|
-
}),
|
|
4343
|
+
}), U.kind !== 1 && a.replace(A.platformUrl);
|
|
4343
4344
|
}).catch(() => {
|
|
4344
4345
|
o.error({
|
|
4345
4346
|
content: () => e("Notice.error"),
|
|
@@ -4347,65 +4348,65 @@ const jt = /* @__PURE__ */ L(xs, [["render", oi]]), ti = X({
|
|
|
4347
4348
|
}), y.value.password = "", f.value = !1;
|
|
4348
4349
|
});
|
|
4349
4350
|
}, V = () => {
|
|
4350
|
-
var q,
|
|
4351
|
+
var q, U;
|
|
4351
4352
|
f.value || (f.value = !0, s.value === "0" ? (q = u.value) == null || q.validate((J) => {
|
|
4352
4353
|
J ? f.value = !1 : rt({
|
|
4353
4354
|
type: s.value,
|
|
4354
4355
|
...y.value
|
|
4355
4356
|
}).then((ge) => {
|
|
4356
4357
|
const ne = pe("loginOption", {});
|
|
4357
|
-
ne[y.value.name] = !0, ye("loginOption", ne, 0),
|
|
4358
|
+
ne[y.value.name] = !0, ye("loginOption", ne, 0), R(ge);
|
|
4358
4359
|
}).catch(() => {
|
|
4359
4360
|
y.value.password = "", f.value = !1;
|
|
4360
4361
|
});
|
|
4361
|
-
}) : (
|
|
4362
|
+
}) : (U = n.value) == null || U.validate((J) => {
|
|
4362
4363
|
J ? f.value = !1 : rt({
|
|
4363
4364
|
type: s.value,
|
|
4364
4365
|
...y.value
|
|
4365
4366
|
}).then((ge) => {
|
|
4366
4367
|
const ne = pe("phoneOption", {});
|
|
4367
|
-
ne[y.value.name] = !0, ye("phoneOption", ne, 0),
|
|
4368
|
+
ne[y.value.name] = !0, ye("phoneOption", ne, 0), R(ge);
|
|
4368
4369
|
}).catch(() => {
|
|
4369
4370
|
y.value.password = "", f.value = !1;
|
|
4370
4371
|
});
|
|
4371
4372
|
}));
|
|
4372
4373
|
}, $ = (q) => {
|
|
4373
4374
|
y.value.name = q;
|
|
4374
|
-
const
|
|
4375
|
+
const U = _.value.filter(
|
|
4375
4376
|
(J) => J.label.indexOf(q) > -1
|
|
4376
4377
|
);
|
|
4377
|
-
P.value =
|
|
4378
|
+
P.value = U, U.length === 0 ? b.value = !1 : b.value = !0;
|
|
4378
4379
|
}, v = (q) => {
|
|
4379
4380
|
y.value.name = q, b.value = !1, i.value.focus(), setTimeout(() => {
|
|
4380
|
-
var
|
|
4381
|
-
(
|
|
4381
|
+
var U;
|
|
4382
|
+
(U = u.value) == null || U.restoreValidation();
|
|
4382
4383
|
}, 80);
|
|
4383
4384
|
}, t = (q) => {
|
|
4384
|
-
var
|
|
4385
|
-
P.value.length === 0 ? b.value = !1 : b.value = q, (
|
|
4385
|
+
var U;
|
|
4386
|
+
P.value.length === 0 ? b.value = !1 : b.value = q, (U = u.value) == null || U.restoreValidation();
|
|
4386
4387
|
}, I = (q) => {
|
|
4387
4388
|
y.value.phone = q;
|
|
4388
|
-
const
|
|
4389
|
+
const U = B.value.filter(
|
|
4389
4390
|
(J) => J.label.indexOf(q) > -1
|
|
4390
4391
|
);
|
|
4391
|
-
S.value =
|
|
4392
|
+
S.value = U, U.length === 0 ? g.value = !1 : g.value = !0;
|
|
4392
4393
|
}, G = (q) => {
|
|
4393
4394
|
y.value.phone = q, g.value = !1, c.value.focus(), setTimeout(() => {
|
|
4394
|
-
var
|
|
4395
|
-
(
|
|
4395
|
+
var U;
|
|
4396
|
+
(U = n.value) == null || U.restoreValidation();
|
|
4396
4397
|
}, 80);
|
|
4397
4398
|
}, ae = (q) => {
|
|
4398
|
-
var
|
|
4399
|
-
S.value.length === 0 ? g.value = !1 : g.value = q, (
|
|
4399
|
+
var U;
|
|
4400
|
+
S.value.length === 0 ? g.value = !1 : g.value = q, (U = n.value) == null || U.restoreValidation();
|
|
4400
4401
|
}, M = (q) => {
|
|
4401
4402
|
h.value = q, po(q), ye("theme", q, 0);
|
|
4402
4403
|
}, Q = (q) => {
|
|
4403
|
-
var
|
|
4404
|
+
var U, J;
|
|
4404
4405
|
s.value = q, y.value = {
|
|
4405
4406
|
phone: "",
|
|
4406
4407
|
name: "",
|
|
4407
4408
|
password: ""
|
|
4408
|
-
}, ye("loginTab", q, 0), (
|
|
4409
|
+
}, ye("loginTab", q, 0), (U = u.value) == null || U.restoreValidation(), (J = n.value) == null || J.restoreValidation();
|
|
4409
4410
|
}, Ce = (q) => H(
|
|
4410
4411
|
"div",
|
|
4411
4412
|
{
|
|
@@ -4426,8 +4427,8 @@ const jt = /* @__PURE__ */ L(xs, [["render", oi]]), ti = X({
|
|
|
4426
4427
|
Ue,
|
|
4427
4428
|
{
|
|
4428
4429
|
class: "oc-login-drop-menu",
|
|
4429
|
-
onclick: (
|
|
4430
|
-
|
|
4430
|
+
onclick: (U) => {
|
|
4431
|
+
U.stopPropagation(), U.stopImmediatePropagation();
|
|
4431
4432
|
const J = pe("loginOption", {});
|
|
4432
4433
|
delete J[q.label], ye("loginOption", J, 0), j();
|
|
4433
4434
|
const ge = y.value.name, ne = _.value.filter(
|
|
@@ -4462,8 +4463,8 @@ const jt = /* @__PURE__ */ L(xs, [["render", oi]]), ti = X({
|
|
|
4462
4463
|
Ue,
|
|
4463
4464
|
{
|
|
4464
4465
|
class: "oc-login-drop-menu",
|
|
4465
|
-
onclick: (
|
|
4466
|
-
|
|
4466
|
+
onclick: (U) => {
|
|
4467
|
+
U.stopPropagation(), U.stopImmediatePropagation();
|
|
4467
4468
|
const J = pe("phoneOption", {});
|
|
4468
4469
|
delete J[q.label], ye("phoneOption", J, 0), T();
|
|
4469
4470
|
const ge = y.value.name, ne = B.value.filter(
|
|
@@ -5486,9 +5487,9 @@ function id(e, o, a) {
|
|
|
5486
5487
|
if (!c.value) {
|
|
5487
5488
|
_(!0, "loading");
|
|
5488
5489
|
try {
|
|
5489
|
-
let
|
|
5490
|
+
let R;
|
|
5490
5491
|
if (Array.isArray(o))
|
|
5491
|
-
|
|
5492
|
+
R = await new Promise(($, v) => {
|
|
5492
5493
|
n.value = v, Promise.all(o.map((t) => t.call(null))).then((t) => {
|
|
5493
5494
|
$(t);
|
|
5494
5495
|
}).catch((t) => {
|
|
@@ -5499,11 +5500,11 @@ function id(e, o, a) {
|
|
|
5499
5500
|
const V = new Promise(($, v) => {
|
|
5500
5501
|
n.value = v;
|
|
5501
5502
|
});
|
|
5502
|
-
|
|
5503
|
+
R = await Promise.race([V, o()]);
|
|
5503
5504
|
}
|
|
5504
|
-
_(!1, "success"), P(
|
|
5505
|
-
} catch (
|
|
5506
|
-
S(
|
|
5505
|
+
_(!1, "success"), P(R), ye(s, R, 0);
|
|
5506
|
+
} catch (R) {
|
|
5507
|
+
S(R), _(!1, "error"), g.value > 0 && (g.value = g.value - 1, setTimeout(() => {
|
|
5507
5508
|
y();
|
|
5508
5509
|
}, b.value));
|
|
5509
5510
|
}
|
|
@@ -5511,13 +5512,15 @@ function id(e, o, a) {
|
|
|
5511
5512
|
}, { run: w } = Gt(
|
|
5512
5513
|
y,
|
|
5513
5514
|
a != null && a.pollingInterval ? a.pollingInterval - 100 > 0 ? a.pollingInterval - 100 : 0 : 300
|
|
5514
|
-
), P = (
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
},
|
|
5520
|
-
|
|
5515
|
+
), P = (R) => {
|
|
5516
|
+
if (R) {
|
|
5517
|
+
let V = R;
|
|
5518
|
+
a != null && a.formatResult && (V = a.formatResult(R)), u.value = V;
|
|
5519
|
+
}
|
|
5520
|
+
}, _ = (R, V) => {
|
|
5521
|
+
c.value = R, V && (h.value = V);
|
|
5522
|
+
}, S = (R) => {
|
|
5523
|
+
f.value = R;
|
|
5521
5524
|
}, B = () => {
|
|
5522
5525
|
Tr(), n.value && n.value();
|
|
5523
5526
|
}, j = () => {
|
|
@@ -5527,12 +5530,12 @@ function id(e, o, a) {
|
|
|
5527
5530
|
};
|
|
5528
5531
|
if (a != null && a.retry && a.pollingInterval === void 0 && (g.value = a.retry.retryCount || 3, b.value = a.retry.retryInterval || 1e3 * 2 ** 3), a != null && a.initialData && P(a.initialData()), a === void 0 || a.initialData === void 0 || a.cache === void 0 || a.cache === !0)
|
|
5529
5532
|
try {
|
|
5530
|
-
const
|
|
5531
|
-
|
|
5533
|
+
const R = pe(s, !1);
|
|
5534
|
+
R && P(R);
|
|
5532
5535
|
} catch {
|
|
5533
5536
|
P(!1);
|
|
5534
5537
|
}
|
|
5535
|
-
return (a === void 0 || a.manual === void 0 || a.manual === !1) &&
|
|
5538
|
+
return (a === void 0 || a.manual === void 0 || a.manual === !1) && y(), a != null && a.pollingInterval && (w(), i.value = setInterval(
|
|
5536
5539
|
() => {
|
|
5537
5540
|
w();
|
|
5538
5541
|
},
|
|
@@ -5607,14 +5610,14 @@ const eu = X({
|
|
|
5607
5610
|
const { run: T } = Gt(() => {
|
|
5608
5611
|
B && o("on-update:value", B), B = "", j = 0;
|
|
5609
5612
|
}, 300);
|
|
5610
|
-
function
|
|
5613
|
+
function R(V) {
|
|
5611
5614
|
let $ = (/* @__PURE__ */ new Date()).getTime();
|
|
5612
5615
|
$ - j <= 50 ? T() : B = "", j = $, B += V.key;
|
|
5613
5616
|
}
|
|
5614
5617
|
return Oe(() => {
|
|
5615
|
-
window.addEventListener("keypress",
|
|
5618
|
+
window.addEventListener("keypress", R);
|
|
5616
5619
|
}), lo(() => {
|
|
5617
|
-
window.removeEventListener("keypress",
|
|
5620
|
+
window.removeEventListener("keypress", R), P();
|
|
5618
5621
|
}), {
|
|
5619
5622
|
videoRef: a,
|
|
5620
5623
|
inputRef: s,
|
|
@@ -5807,9 +5810,9 @@ const du = /* @__PURE__ */ L(su, [["render", uu]]), cu = X({
|
|
|
5807
5810
|
label: s("Common.message.all"),
|
|
5808
5811
|
value: "",
|
|
5809
5812
|
disabled: !0
|
|
5810
|
-
}) : T.fallbackOption : !1, w = (T,
|
|
5813
|
+
}) : T.fallbackOption : !1, w = (T, R, V) => {
|
|
5811
5814
|
const $ = V.options.filter(
|
|
5812
|
-
(v) => String(v.label).toLocaleLowerCase().indexOf(String(
|
|
5815
|
+
(v) => String(v.label).toLocaleLowerCase().indexOf(String(R).toLocaleLowerCase()) > -1
|
|
5813
5816
|
) || [];
|
|
5814
5817
|
f.value[T].options = $, $.length === 0 ? f.value[T].display = !1 : f.value[T].display = !0;
|
|
5815
5818
|
}, P = (T) => {
|
|
@@ -5822,13 +5825,13 @@ const du = /* @__PURE__ */ L(su, [["render", uu]]), cu = X({
|
|
|
5822
5825
|
options: G.options
|
|
5823
5826
|
}), G.type === "select" && G.fallbackOption && G.multiple && g.value[I].length === 0 && (g.value[I] = [""]), G.type === "group" && (g.value[I] || (g.value[I] = G.options[0].value), G.inputTemp = G.input.options[g.value[I] ? g.value[I] : G.options[0].value], ((ae = G.inputTemp) == null ? void 0 : ae.type) === "select" && ((M = G.inputTemp) != null && M.fallbackOption) && ((Q = G.inputTemp) != null && Q.multiple) && g.value[G.input.key].length === 0 && (g.value[G.input.key] = [""]));
|
|
5824
5827
|
});
|
|
5825
|
-
let
|
|
5828
|
+
let R = 0;
|
|
5826
5829
|
const V = e.small ? 1 : e.cols, $ = Object.keys(T);
|
|
5827
5830
|
if (Object.keys(T).length > 0)
|
|
5828
5831
|
for (let I = 0; I <= V; I++)
|
|
5829
|
-
(t = T[$[I]]) != null && t.show && (
|
|
5830
|
-
let v = V -
|
|
5831
|
-
n.value && (v = v - 1,
|
|
5832
|
+
(t = T[$[I]]) != null && t.show && (R = R + 1);
|
|
5833
|
+
let v = V - R >= 0 ? V - R - 1 : -1;
|
|
5834
|
+
n.value && (v = v - 1, R = R + 1), h.value = v, R > V ? c.value = !0 : c.value = !1, e.small && (i.value = !1, c.value = !1), u.value = T;
|
|
5832
5835
|
}, _ = (T) => {
|
|
5833
5836
|
f.value[T].options.length === 0 ? f.value[T].display = !1 : f.value[T].display = !0;
|
|
5834
5837
|
}, S = () => {
|
|
@@ -5836,7 +5839,7 @@ const du = /* @__PURE__ */ L(su, [["render", uu]]), cu = X({
|
|
|
5836
5839
|
}, B = () => {
|
|
5837
5840
|
const T = JSON.stringify(
|
|
5838
5841
|
g.value,
|
|
5839
|
-
(
|
|
5842
|
+
(R, V) => V === void 0 ? null : Array.isArray(V) ? V.filter(($) => $ !== "") : V
|
|
5840
5843
|
);
|
|
5841
5844
|
return JSON.parse(T);
|
|
5842
5845
|
}, j = (T) => {
|
|
@@ -5864,7 +5867,7 @@ const du = /* @__PURE__ */ L(su, [["render", uu]]), cu = X({
|
|
|
5864
5867
|
class: "oc-search-action-more"
|
|
5865
5868
|
};
|
|
5866
5869
|
function hu(e, o, a, s, n, u) {
|
|
5867
|
-
const i = d("NGridItem"), c = d("NInputGroupLabel"), h = d("NInput"), f = d("NInputNumber"), g = d("NSelect"), b = d("NDataTable"), y = d("NPopover"), w = d("NCascader"), P = d("NTreeSelect"), _ = d("OcTimePickRange"), S = d("NDatePicker"), B = d("NInputGroup"), j = d("NGrid"), T = d("IconArrowDown"),
|
|
5870
|
+
const i = d("NGridItem"), c = d("NInputGroupLabel"), h = d("NInput"), f = d("NInputNumber"), g = d("NSelect"), b = d("NDataTable"), y = d("NPopover"), w = d("NCascader"), P = d("NTreeSelect"), _ = d("OcTimePickRange"), S = d("NDatePicker"), B = d("NInputGroup"), j = d("NGrid"), T = d("IconArrowDown"), R = d("NIcon"), V = d("IconArrowUp"), $ = d("NButton"), v = d("NTooltip");
|
|
5868
5871
|
return p(), D("div", pu, [
|
|
5869
5872
|
r(j, {
|
|
5870
5873
|
"x-gap": "15",
|
|
@@ -6106,7 +6109,7 @@ function hu(e, o, a, s, n, u) {
|
|
|
6106
6109
|
}, 1024)) : z("", !0),
|
|
6107
6110
|
t.type === "group" ? (p(), O(B, { key: 1 }, {
|
|
6108
6111
|
default: l(() => {
|
|
6109
|
-
var ae, M, Q, Ce, he, q,
|
|
6112
|
+
var ae, M, Q, Ce, he, q, U, J, ge, ne, k, x, le, Y, se, we, ee, W, re, oe, ce, ue, Ze, Ho, Go, Jo, Wo, Ko, Qo, Xo, Yo, Zo, xo;
|
|
6110
6113
|
return [
|
|
6111
6114
|
r(g, {
|
|
6112
6115
|
value: e.searchData[I],
|
|
@@ -6152,7 +6155,7 @@ function hu(e, o, a, s, n, u) {
|
|
|
6152
6155
|
clearable: t.inputTemp.clearable ?? !0,
|
|
6153
6156
|
style: { flex: "1" }
|
|
6154
6157
|
}, null, 8, ["value", "onUpdate:value", "disabled", "placeholder", "on-update:value", "clearable"])) : z("", !0),
|
|
6155
|
-
((
|
|
6158
|
+
((U = t.inputTemp) == null ? void 0 : U.type) === "number" ? (p(), O(f, {
|
|
6156
6159
|
key: 1,
|
|
6157
6160
|
value: e.searchData[t.input.key],
|
|
6158
6161
|
"onUpdate:value": (K) => e.searchData[t.input.key] = K,
|
|
@@ -6252,12 +6255,12 @@ function hu(e, o, a, s, n, u) {
|
|
|
6252
6255
|
trigger: l(() => [
|
|
6253
6256
|
r($, { onClick: e.showMore }, {
|
|
6254
6257
|
icon: l(() => [
|
|
6255
|
-
e.collapsed ? (p(), O(
|
|
6258
|
+
e.collapsed ? (p(), O(R, { key: 0 }, {
|
|
6256
6259
|
default: l(() => [
|
|
6257
6260
|
r(T)
|
|
6258
6261
|
]),
|
|
6259
6262
|
_: 1
|
|
6260
|
-
})) : (p(), O(
|
|
6263
|
+
})) : (p(), O(R, { key: 1 }, {
|
|
6261
6264
|
default: l(() => [
|
|
6262
6265
|
r(V)
|
|
6263
6266
|
]),
|
|
@@ -6395,8 +6398,8 @@ const Nu = /* @__PURE__ */ L(yu, [["render", Cu]]), $u = X({
|
|
|
6395
6398
|
if (e.cache) {
|
|
6396
6399
|
const { cursor: S, routerId: B } = n.query;
|
|
6397
6400
|
if (S && B) {
|
|
6398
|
-
const j = n.path, T = to(B),
|
|
6399
|
-
T === j && (_ =
|
|
6401
|
+
const j = n.path, T = to(B), R = to(S);
|
|
6402
|
+
T === j && (_ = R);
|
|
6400
6403
|
}
|
|
6401
6404
|
}
|
|
6402
6405
|
i.value && (i.value.setValues(JSON.parse(JSON.stringify(_))), i.value.dataFactory(e.data)), e.autoSubmit && b(!0);
|
|
@@ -6783,7 +6786,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6783
6786
|
query: {
|
|
6784
6787
|
page: 1
|
|
6785
6788
|
}
|
|
6786
|
-
}), B = C({}), j = C({}), T = C(void 0),
|
|
6789
|
+
}), B = C({}), j = C({}), T = C(void 0), R = C(void 0), V = c.path, $ = (k) => {
|
|
6787
6790
|
g.value = !0, o("update:loading", !0), k && (S.value.query = {
|
|
6788
6791
|
...S.value.query,
|
|
6789
6792
|
...k
|
|
@@ -6858,7 +6861,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6858
6861
|
value: Y,
|
|
6859
6862
|
data: le
|
|
6860
6863
|
});
|
|
6861
|
-
}),
|
|
6864
|
+
}), U = async (k = !1, x) => {
|
|
6862
6865
|
const le = [], Y = [];
|
|
6863
6866
|
let se = {}, we = {};
|
|
6864
6867
|
const ee = he(x);
|
|
@@ -6917,10 +6920,10 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6917
6920
|
}, J = (k) => typeof k == "number" ? `${k}px` : k, ge = () => {
|
|
6918
6921
|
if (e.height) {
|
|
6919
6922
|
const k = J(e.height);
|
|
6920
|
-
T.value = k,
|
|
6923
|
+
T.value = k, R.value = k;
|
|
6921
6924
|
return;
|
|
6922
6925
|
}
|
|
6923
|
-
e.minHeight && (T.value = J(e.minHeight)), e.maxHeight && (
|
|
6926
|
+
e.minHeight && (T.value = J(e.minHeight)), e.maxHeight && (R.value = J(e.maxHeight));
|
|
6924
6927
|
}, ne = () => {
|
|
6925
6928
|
const k = [];
|
|
6926
6929
|
P.value.forEach((x) => {
|
|
@@ -6933,7 +6936,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6933
6936
|
}), o("on-update:filter", k);
|
|
6934
6937
|
};
|
|
6935
6938
|
return a({ init: $ }), Oe(() => {
|
|
6936
|
-
|
|
6939
|
+
U(!0), ge();
|
|
6937
6940
|
}), ve(
|
|
6938
6941
|
() => P.value,
|
|
6939
6942
|
() => {
|
|
@@ -6943,7 +6946,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6943
6946
|
), ve(
|
|
6944
6947
|
() => e.columns,
|
|
6945
6948
|
() => {
|
|
6946
|
-
e.realtime &&
|
|
6949
|
+
e.realtime && U();
|
|
6947
6950
|
},
|
|
6948
6951
|
{
|
|
6949
6952
|
deep: !0
|
|
@@ -6951,7 +6954,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6951
6954
|
), ve(
|
|
6952
6955
|
() => e.actions,
|
|
6953
6956
|
() => {
|
|
6954
|
-
e.realtime &&
|
|
6957
|
+
e.realtime && U();
|
|
6955
6958
|
},
|
|
6956
6959
|
{
|
|
6957
6960
|
deep: !0
|
|
@@ -6959,7 +6962,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6959
6962
|
), ve(
|
|
6960
6963
|
() => e.filters,
|
|
6961
6964
|
(k) => {
|
|
6962
|
-
|
|
6965
|
+
U(!1, k);
|
|
6963
6966
|
},
|
|
6964
6967
|
{
|
|
6965
6968
|
deep: !0
|
|
@@ -6967,7 +6970,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6967
6970
|
), {
|
|
6968
6971
|
loading: g,
|
|
6969
6972
|
minH: T,
|
|
6970
|
-
maxH:
|
|
6973
|
+
maxH: R,
|
|
6971
6974
|
searchRef: u,
|
|
6972
6975
|
exportLoading: b,
|
|
6973
6976
|
tableColumns: w,
|
|
@@ -6991,7 +6994,7 @@ const zu = /* @__PURE__ */ L(Pu, [["render", Du]]), Au = X({
|
|
|
6991
6994
|
}
|
|
6992
6995
|
}), Mu = { class: "com-card" };
|
|
6993
6996
|
function Bu(e, o, a, s, n, u) {
|
|
6994
|
-
const i = d("IconAdd"), c = d("NIcon"), h = d("NButton"), f = d("NTooltip"), g = d("IconMailInboxAdd"), b = d("IconCloudArrowDown"), y = d("NPopconfirm"), w = d("IconFilter"), P = d("IconNavigation"), _ = d("IconPin"), S = d("IconPinOff"), B = d("IconEye"), j = d("IconEyeOff"), T = d("Draggable"),
|
|
6997
|
+
const i = d("IconAdd"), c = d("NIcon"), h = d("NButton"), f = d("NTooltip"), g = d("IconMailInboxAdd"), b = d("IconCloudArrowDown"), y = d("NPopconfirm"), w = d("IconFilter"), P = d("IconNavigation"), _ = d("IconPin"), S = d("IconPinOff"), B = d("IconEye"), j = d("IconEyeOff"), T = d("Draggable"), R = d("NPopover"), V = d("OcSearchBar"), $ = d("NDataTable"), v = d("OcImporter");
|
|
6995
6998
|
return p(), D(ie, null, [
|
|
6996
6999
|
r(V, {
|
|
6997
7000
|
ref: "searchRef",
|
|
@@ -7090,7 +7093,7 @@ function Bu(e, o, a, s, n, u) {
|
|
|
7090
7093
|
trigger: "hover"
|
|
7091
7094
|
}, {
|
|
7092
7095
|
trigger: l(() => [
|
|
7093
|
-
r(
|
|
7096
|
+
r(R, {
|
|
7094
7097
|
placement: "bottom-end",
|
|
7095
7098
|
trigger: "click",
|
|
7096
7099
|
"show-arrow": !1
|
|
@@ -7321,7 +7324,7 @@ function dd() {
|
|
|
7321
7324
|
Eo = 3840, jo = 2160, window.removeEventListener("resize", e);
|
|
7322
7325
|
};
|
|
7323
7326
|
}
|
|
7324
|
-
const cd = (e) => !!(N.kind === -1 || N.kind === 99 || N.iot_menu_authorization.includes(e)), pd = (e) => N.platform_tdm ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.tdm_menu_authorization.includes(e) : !1, fd = (e) => N.platform_qms ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.qms_menu_authorization.includes(e) : !1, md = (e) => N.platform_twin ? (N.kind === -1 || N.kind === 99 || e === "home", !0) : !1, hd = (e) => !!(N.kind === -1 || N.kind === 99 || N.maintain_menu_authorization.includes(e)), gd = (e) => !!(N.kind === -1 || N.kind === 99 || N.order_menu_authorization.includes(e)), Ru = "2.1.
|
|
7327
|
+
const cd = (e) => !!(N.kind === -1 || N.kind === 99 || N.iot_menu_authorization.includes(e)), pd = (e) => N.platform_tdm ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.tdm_menu_authorization.includes(e) : !1, fd = (e) => N.platform_qms ? N.kind === -1 || N.kind === 99 || e === "home" ? !0 : N.qms_menu_authorization.includes(e) : !1, md = (e) => N.platform_twin ? (N.kind === -1 || N.kind === 99 || e === "home", !0) : !1, hd = (e) => !!(N.kind === -1 || N.kind === 99 || N.maintain_menu_authorization.includes(e)), gd = (e) => !!(N.kind === -1 || N.kind === 99 || N.order_menu_authorization.includes(e)), Ru = "2.1.20";
|
|
7325
7328
|
function Uu({ components: e = [] } = {}) {
|
|
7326
7329
|
const o = [];
|
|
7327
7330
|
function a(n, u, i) {
|
package/package.json
CHANGED