@arbocollab/arbo-plugin-item-table 0.1.29 → 0.1.30
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/es/index.es.js +184 -184
- package/lib/umd/index.umd.js +12 -12
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -3523,7 +3523,7 @@ function pG(e, t) {
|
|
|
3523
3523
|
if (W === ne)
|
|
3524
3524
|
return;
|
|
3525
3525
|
W && !Fl(W, ne) && (Le = _e(W), V(W, Ae, P, !0), W = null), ne.patchFlag === -2 && (fe = !1, ne.dynamicChildren = null);
|
|
3526
|
-
const { type: Fe, ref: ze, shapeFlag:
|
|
3526
|
+
const { type: Fe, ref: ze, shapeFlag: Be } = ne;
|
|
3527
3527
|
switch (Fe) {
|
|
3528
3528
|
case gu:
|
|
3529
3529
|
v(W, ne, we, Le);
|
|
@@ -3548,7 +3548,7 @@ function pG(e, t) {
|
|
|
3548
3548
|
);
|
|
3549
3549
|
break;
|
|
3550
3550
|
default:
|
|
3551
|
-
|
|
3551
|
+
Be & 1 ? E(
|
|
3552
3552
|
W,
|
|
3553
3553
|
ne,
|
|
3554
3554
|
we,
|
|
@@ -3558,7 +3558,7 @@ function pG(e, t) {
|
|
|
3558
3558
|
M,
|
|
3559
3559
|
j,
|
|
3560
3560
|
fe
|
|
3561
|
-
) :
|
|
3561
|
+
) : Be & 6 ? q(
|
|
3562
3562
|
W,
|
|
3563
3563
|
ne,
|
|
3564
3564
|
we,
|
|
@@ -3568,7 +3568,7 @@ function pG(e, t) {
|
|
|
3568
3568
|
M,
|
|
3569
3569
|
j,
|
|
3570
3570
|
fe
|
|
3571
|
-
) :
|
|
3571
|
+
) : Be & 64 || Be & 128 ? Fe.process(
|
|
3572
3572
|
W,
|
|
3573
3573
|
ne,
|
|
3574
3574
|
we,
|
|
@@ -3659,13 +3659,13 @@ function pG(e, t) {
|
|
|
3659
3659
|
}
|
|
3660
3660
|
}, F = (W, ne, we, Le, Ae, P, M, j) => {
|
|
3661
3661
|
let fe, Fe;
|
|
3662
|
-
const { props: ze, shapeFlag:
|
|
3662
|
+
const { props: ze, shapeFlag: Be, transition: he, dirs: Te } = W;
|
|
3663
3663
|
if (fe = W.el = r(
|
|
3664
3664
|
W.type,
|
|
3665
3665
|
P,
|
|
3666
3666
|
ze && ze.is,
|
|
3667
3667
|
ze
|
|
3668
|
-
),
|
|
3668
|
+
), Be & 8 ? c(fe, W.children) : Be & 16 && O(
|
|
3669
3669
|
W.children,
|
|
3670
3670
|
fe,
|
|
3671
3671
|
null,
|
|
@@ -3721,9 +3721,9 @@ function pG(e, t) {
|
|
|
3721
3721
|
G.env.NODE_ENV !== "production" && (j.__vnode = ne);
|
|
3722
3722
|
let { patchFlag: fe, dynamicChildren: Fe, dirs: ze } = ne;
|
|
3723
3723
|
fe |= W.patchFlag & 16;
|
|
3724
|
-
const
|
|
3724
|
+
const Be = W.props || Xt, he = ne.props || Xt;
|
|
3725
3725
|
let Te;
|
|
3726
|
-
if (we && fl(we, !1), (Te = he.onVnodeBeforeUpdate) && Wi(Te, we, ne, W), ze && hl(ne, W, we, "beforeUpdate"), we && fl(we, !0), G.env.NODE_ENV !== "production" && lr && (fe = 0, M = !1, Fe = null), (
|
|
3726
|
+
if (we && fl(we, !1), (Te = he.onVnodeBeforeUpdate) && Wi(Te, we, ne, W), ze && hl(ne, W, we, "beforeUpdate"), we && fl(we, !0), G.env.NODE_ENV !== "production" && lr && (fe = 0, M = !1, Fe = null), (Be.innerHTML && he.innerHTML == null || Be.textContent && he.textContent == null) && c(j, ""), Fe ? (D(
|
|
3727
3727
|
W.dynamicChildren,
|
|
3728
3728
|
Fe,
|
|
3729
3729
|
j,
|
|
@@ -3743,16 +3743,16 @@ function pG(e, t) {
|
|
|
3743
3743
|
!1
|
|
3744
3744
|
), fe > 0) {
|
|
3745
3745
|
if (fe & 16)
|
|
3746
|
-
T(j,
|
|
3747
|
-
else if (fe & 2 &&
|
|
3746
|
+
T(j, Be, he, we, Ae);
|
|
3747
|
+
else if (fe & 2 && Be.class !== he.class && i(j, "class", null, he.class, Ae), fe & 4 && i(j, "style", Be.style, he.style, Ae), fe & 8) {
|
|
3748
3748
|
const Je = ne.dynamicProps;
|
|
3749
3749
|
for (let yt = 0; yt < Je.length; yt++) {
|
|
3750
|
-
const Mt = Je[yt], un =
|
|
3750
|
+
const Mt = Je[yt], un = Be[Mt], $t = he[Mt];
|
|
3751
3751
|
($t !== un || Mt === "value") && i(j, Mt, un, $t, Ae, we);
|
|
3752
3752
|
}
|
|
3753
3753
|
}
|
|
3754
3754
|
fe & 1 && W.children !== ne.children && c(j, ne.children);
|
|
3755
|
-
} else !M && Fe == null && T(j,
|
|
3755
|
+
} else !M && Fe == null && T(j, Be, he, we, Ae);
|
|
3756
3756
|
((Te = he.onVnodeUpdated) || ze) && Cs(() => {
|
|
3757
3757
|
Te && Wi(Te, we, ne, W), ze && hl(ne, W, we, "updated");
|
|
3758
3758
|
}, Le);
|
|
@@ -3805,9 +3805,9 @@ function pG(e, t) {
|
|
|
3805
3805
|
}
|
|
3806
3806
|
}, A = (W, ne, we, Le, Ae, P, M, j, fe) => {
|
|
3807
3807
|
const Fe = ne.el = W ? W.el : a(""), ze = ne.anchor = W ? W.anchor : a("");
|
|
3808
|
-
let { patchFlag:
|
|
3808
|
+
let { patchFlag: Be, dynamicChildren: he, slotScopeIds: Te } = ne;
|
|
3809
3809
|
G.env.NODE_ENV !== "production" && // #5523 dev root fragment may inherit directives
|
|
3810
|
-
(lr ||
|
|
3810
|
+
(lr || Be & 2048) && (Be = 0, fe = !1, he = null), Te && (j = j ? j.concat(Te) : Te), W == null ? (o(Fe, we, Le), o(ze, we, Le), O(
|
|
3811
3811
|
// #10007
|
|
3812
3812
|
// such fragment like `<></>` will be compiled into
|
|
3813
3813
|
// a fragment which doesn't have a children.
|
|
@@ -3820,7 +3820,7 @@ function pG(e, t) {
|
|
|
3820
3820
|
M,
|
|
3821
3821
|
j,
|
|
3822
3822
|
fe
|
|
3823
|
-
)) :
|
|
3823
|
+
)) : Be > 0 && Be & 64 && he && // #2715 the previous fragment could've been a BAILed one as a result
|
|
3824
3824
|
// of renderSlot() with no valid children
|
|
3825
3825
|
W.dynamicChildren ? (D(
|
|
3826
3826
|
W.dynamicChildren,
|
|
@@ -3903,18 +3903,18 @@ function pG(e, t) {
|
|
|
3903
3903
|
}, ie = (W, ne, we, Le, Ae, P, M) => {
|
|
3904
3904
|
const j = () => {
|
|
3905
3905
|
if (W.isMounted) {
|
|
3906
|
-
let { next:
|
|
3906
|
+
let { next: Be, bu: he, u: Te, parent: Je, vnode: yt } = W;
|
|
3907
3907
|
{
|
|
3908
3908
|
const so = mA(W);
|
|
3909
3909
|
if (so) {
|
|
3910
|
-
|
|
3910
|
+
Be && (Be.el = yt.el, ee(W, Be, M)), so.asyncDep.then(() => {
|
|
3911
3911
|
W.isUnmounted || j();
|
|
3912
3912
|
});
|
|
3913
3913
|
return;
|
|
3914
3914
|
}
|
|
3915
3915
|
}
|
|
3916
|
-
let Mt =
|
|
3917
|
-
G.env.NODE_ENV !== "production" && Tg(
|
|
3916
|
+
let Mt = Be, un;
|
|
3917
|
+
G.env.NODE_ENV !== "production" && Tg(Be || W.vnode), fl(W, !1), Be ? (Be.el = yt.el, ee(W, Be, M)) : Be = yt, he && qu(he), (un = Be.props && Be.props.onVnodeBeforeUpdate) && Wi(un, Je, Be, yt), fl(W, !0), G.env.NODE_ENV !== "production" && Ou(W, "render");
|
|
3918
3918
|
const $t = xR(W);
|
|
3919
3919
|
G.env.NODE_ENV !== "production" && Mu(W, "render");
|
|
3920
3920
|
const fn = W.subTree;
|
|
@@ -3928,14 +3928,14 @@ function pG(e, t) {
|
|
|
3928
3928
|
W,
|
|
3929
3929
|
Ae,
|
|
3930
3930
|
P
|
|
3931
|
-
), G.env.NODE_ENV !== "production" && Mu(W, "patch"),
|
|
3932
|
-
() => Wi(un, Je,
|
|
3931
|
+
), G.env.NODE_ENV !== "production" && Mu(W, "patch"), Be.el = $t.el, Mt === null && J$(W, $t.el), Te && Cs(Te, Ae), (un = Be.props && Be.props.onVnodeUpdated) && Cs(
|
|
3932
|
+
() => Wi(un, Je, Be, yt),
|
|
3933
3933
|
Ae
|
|
3934
3934
|
), G.env.NODE_ENV !== "production" && VP(W), G.env.NODE_ENV !== "production" && Fg();
|
|
3935
3935
|
} else {
|
|
3936
|
-
let
|
|
3936
|
+
let Be;
|
|
3937
3937
|
const { el: he, props: Te } = ne, { bm: Je, m: yt, parent: Mt, root: un, type: $t } = W, fn = gc(ne);
|
|
3938
|
-
fl(W, !1), Je && qu(Je), !fn && (
|
|
3938
|
+
fl(W, !1), Je && qu(Je), !fn && (Be = Te && Te.onVnodeBeforeMount) && Wi(Be, Mt, ne), fl(W, !0);
|
|
3939
3939
|
{
|
|
3940
3940
|
un.ce && // @ts-expect-error _def is private
|
|
3941
3941
|
un.ce._def.shadowRoot !== !1 && un.ce._injectChildStyle($t), G.env.NODE_ENV !== "production" && Ou(W, "render");
|
|
@@ -3950,10 +3950,10 @@ function pG(e, t) {
|
|
|
3950
3950
|
P
|
|
3951
3951
|
), G.env.NODE_ENV !== "production" && Mu(W, "patch"), ne.el = so.el;
|
|
3952
3952
|
}
|
|
3953
|
-
if (yt && Cs(yt, Ae), !fn && (
|
|
3953
|
+
if (yt && Cs(yt, Ae), !fn && (Be = Te && Te.onVnodeMounted)) {
|
|
3954
3954
|
const so = ne;
|
|
3955
3955
|
Cs(
|
|
3956
|
-
() => Wi(
|
|
3956
|
+
() => Wi(Be, Mt, so),
|
|
3957
3957
|
Ae
|
|
3958
3958
|
);
|
|
3959
3959
|
}
|
|
@@ -3964,18 +3964,18 @@ function pG(e, t) {
|
|
|
3964
3964
|
const fe = W.effect = new fP(j);
|
|
3965
3965
|
W.scope.off();
|
|
3966
3966
|
const Fe = W.update = fe.run.bind(fe), ze = W.job = fe.runIfDirty.bind(fe);
|
|
3967
|
-
ze.i = W, ze.id = W.uid, fe.scheduler = () => $v(ze), fl(W, !0), G.env.NODE_ENV !== "production" && (fe.onTrack = W.rtc ? (
|
|
3967
|
+
ze.i = W, ze.id = W.uid, fe.scheduler = () => $v(ze), fl(W, !0), G.env.NODE_ENV !== "production" && (fe.onTrack = W.rtc ? (Be) => qu(W.rtc, Be) : void 0, fe.onTrigger = W.rtg ? (Be) => qu(W.rtg, Be) : void 0), Fe();
|
|
3968
3968
|
}, ee = (W, ne, we) => {
|
|
3969
3969
|
ne.component = W;
|
|
3970
3970
|
const Le = W.vnode.props;
|
|
3971
3971
|
W.vnode = ne, W.next = null, tG(W, ne.props, Le, we), dG(W, ne.children, we), Di(), CR(W), Ti();
|
|
3972
3972
|
}, $ = (W, ne, we, Le, Ae, P, M, j, fe = !1) => {
|
|
3973
|
-
const Fe = W && W.children, ze = W ? W.shapeFlag : 0,
|
|
3973
|
+
const Fe = W && W.children, ze = W ? W.shapeFlag : 0, Be = ne.children, { patchFlag: he, shapeFlag: Te } = ne;
|
|
3974
3974
|
if (he > 0) {
|
|
3975
3975
|
if (he & 128) {
|
|
3976
3976
|
H(
|
|
3977
3977
|
Fe,
|
|
3978
|
-
|
|
3978
|
+
Be,
|
|
3979
3979
|
we,
|
|
3980
3980
|
Le,
|
|
3981
3981
|
Ae,
|
|
@@ -3988,7 +3988,7 @@ function pG(e, t) {
|
|
|
3988
3988
|
} else if (he & 256) {
|
|
3989
3989
|
le(
|
|
3990
3990
|
Fe,
|
|
3991
|
-
|
|
3991
|
+
Be,
|
|
3992
3992
|
we,
|
|
3993
3993
|
Le,
|
|
3994
3994
|
Ae,
|
|
@@ -4000,9 +4000,9 @@ function pG(e, t) {
|
|
|
4000
4000
|
return;
|
|
4001
4001
|
}
|
|
4002
4002
|
}
|
|
4003
|
-
Te & 8 ? (ze & 16 && de(Fe, Ae, P),
|
|
4003
|
+
Te & 8 ? (ze & 16 && de(Fe, Ae, P), Be !== Fe && c(we, Be)) : ze & 16 ? Te & 16 ? H(
|
|
4004
4004
|
Fe,
|
|
4005
|
-
|
|
4005
|
+
Be,
|
|
4006
4006
|
we,
|
|
4007
4007
|
Le,
|
|
4008
4008
|
Ae,
|
|
@@ -4011,7 +4011,7 @@ function pG(e, t) {
|
|
|
4011
4011
|
j,
|
|
4012
4012
|
fe
|
|
4013
4013
|
) : de(Fe, Ae, P, !0) : (ze & 8 && c(we, ""), Te & 16 && O(
|
|
4014
|
-
|
|
4014
|
+
Be,
|
|
4015
4015
|
we,
|
|
4016
4016
|
Le,
|
|
4017
4017
|
Ae,
|
|
@@ -4022,9 +4022,9 @@ function pG(e, t) {
|
|
|
4022
4022
|
));
|
|
4023
4023
|
}, le = (W, ne, we, Le, Ae, P, M, j, fe) => {
|
|
4024
4024
|
W = W || fc, ne = ne || fc;
|
|
4025
|
-
const Fe = W.length, ze = ne.length,
|
|
4025
|
+
const Fe = W.length, ze = ne.length, Be = Math.min(Fe, ze);
|
|
4026
4026
|
let he;
|
|
4027
|
-
for (he = 0; he <
|
|
4027
|
+
for (he = 0; he < Be; he++) {
|
|
4028
4028
|
const Te = ne[he] = fe ? Pa(ne[he]) : yi(ne[he]);
|
|
4029
4029
|
g(
|
|
4030
4030
|
W[he],
|
|
@@ -4044,7 +4044,7 @@ function pG(e, t) {
|
|
|
4044
4044
|
P,
|
|
4045
4045
|
!0,
|
|
4046
4046
|
!1,
|
|
4047
|
-
|
|
4047
|
+
Be
|
|
4048
4048
|
) : O(
|
|
4049
4049
|
ne,
|
|
4050
4050
|
we,
|
|
@@ -4054,13 +4054,13 @@ function pG(e, t) {
|
|
|
4054
4054
|
M,
|
|
4055
4055
|
j,
|
|
4056
4056
|
fe,
|
|
4057
|
-
|
|
4057
|
+
Be
|
|
4058
4058
|
);
|
|
4059
4059
|
}, H = (W, ne, we, Le, Ae, P, M, j, fe) => {
|
|
4060
4060
|
let Fe = 0;
|
|
4061
4061
|
const ze = ne.length;
|
|
4062
|
-
let
|
|
4063
|
-
for (; Fe <=
|
|
4062
|
+
let Be = W.length - 1, he = ze - 1;
|
|
4063
|
+
for (; Fe <= Be && Fe <= he; ) {
|
|
4064
4064
|
const Te = W[Fe], Je = ne[Fe] = fe ? Pa(ne[Fe]) : yi(ne[Fe]);
|
|
4065
4065
|
if (Fl(Te, Je))
|
|
4066
4066
|
g(
|
|
@@ -4078,8 +4078,8 @@ function pG(e, t) {
|
|
|
4078
4078
|
break;
|
|
4079
4079
|
Fe++;
|
|
4080
4080
|
}
|
|
4081
|
-
for (; Fe <=
|
|
4082
|
-
const Te = W[
|
|
4081
|
+
for (; Fe <= Be && Fe <= he; ) {
|
|
4082
|
+
const Te = W[Be], Je = ne[he] = fe ? Pa(ne[he]) : yi(ne[he]);
|
|
4083
4083
|
if (Fl(Te, Je))
|
|
4084
4084
|
g(
|
|
4085
4085
|
Te,
|
|
@@ -4094,9 +4094,9 @@ function pG(e, t) {
|
|
|
4094
4094
|
);
|
|
4095
4095
|
else
|
|
4096
4096
|
break;
|
|
4097
|
-
|
|
4097
|
+
Be--, he--;
|
|
4098
4098
|
}
|
|
4099
|
-
if (Fe >
|
|
4099
|
+
if (Fe > Be) {
|
|
4100
4100
|
if (Fe <= he) {
|
|
4101
4101
|
const Te = he + 1, Je = Te < ze ? ne[Te].el : Le;
|
|
4102
4102
|
for (; Fe <= he; )
|
|
@@ -4113,7 +4113,7 @@ function pG(e, t) {
|
|
|
4113
4113
|
), Fe++;
|
|
4114
4114
|
}
|
|
4115
4115
|
} else if (Fe > he)
|
|
4116
|
-
for (; Fe <=
|
|
4116
|
+
for (; Fe <= Be; )
|
|
4117
4117
|
V(W[Fe], Ae, P, !0), Fe++;
|
|
4118
4118
|
else {
|
|
4119
4119
|
const Te = Fe, Je = Fe, yt = /* @__PURE__ */ new Map();
|
|
@@ -4130,7 +4130,7 @@ function pG(e, t) {
|
|
|
4130
4130
|
let fn = !1, so = 0;
|
|
4131
4131
|
const Me = new Array($t);
|
|
4132
4132
|
for (Fe = 0; Fe < $t; Fe++) Me[Fe] = 0;
|
|
4133
|
-
for (Fe = Te; Fe <=
|
|
4133
|
+
for (Fe = Te; Fe <= Be; Fe++) {
|
|
4134
4134
|
const Ct = W[Fe];
|
|
4135
4135
|
if (un >= $t) {
|
|
4136
4136
|
V(Ct, Ae, P, !0);
|
|
@@ -4192,8 +4192,8 @@ function pG(e, t) {
|
|
|
4192
4192
|
}
|
|
4193
4193
|
if (M === Ft) {
|
|
4194
4194
|
o(P, ne, we);
|
|
4195
|
-
for (let
|
|
4196
|
-
J(fe[
|
|
4195
|
+
for (let Be = 0; Be < fe.length; Be++)
|
|
4196
|
+
J(fe[Be], ne, we, Le);
|
|
4197
4197
|
o(W.anchor, ne, we);
|
|
4198
4198
|
return;
|
|
4199
4199
|
}
|
|
@@ -4205,13 +4205,13 @@ function pG(e, t) {
|
|
|
4205
4205
|
if (Le === 0)
|
|
4206
4206
|
j.beforeEnter(P), o(P, ne, we), Cs(() => j.enter(P), Ae);
|
|
4207
4207
|
else {
|
|
4208
|
-
const { leave:
|
|
4208
|
+
const { leave: Be, delayLeave: he, afterLeave: Te } = j, Je = () => {
|
|
4209
4209
|
W.ctx.isUnmounted ? s(P) : o(P, ne, we);
|
|
4210
4210
|
}, yt = () => {
|
|
4211
4211
|
P._isLeaving && P[$r](
|
|
4212
4212
|
!0
|
|
4213
4213
|
/* cancelled */
|
|
4214
|
-
),
|
|
4214
|
+
), Be(P, () => {
|
|
4215
4215
|
Je(), Te && Te();
|
|
4216
4216
|
});
|
|
4217
4217
|
};
|
|
@@ -4227,11 +4227,11 @@ function pG(e, t) {
|
|
|
4227
4227
|
children: fe,
|
|
4228
4228
|
dynamicChildren: Fe,
|
|
4229
4229
|
shapeFlag: ze,
|
|
4230
|
-
patchFlag:
|
|
4230
|
+
patchFlag: Be,
|
|
4231
4231
|
dirs: he,
|
|
4232
4232
|
cacheIndex: Te
|
|
4233
4233
|
} = W;
|
|
4234
|
-
if (
|
|
4234
|
+
if (Be === -2 && (Ae = !1), j != null && (Di(), Ch(j, null, we, W, !0), Ti()), Te != null && (ne.renderCache[Te] = void 0), ze & 256) {
|
|
4235
4235
|
ne.ctx.deactivate(W);
|
|
4236
4236
|
return;
|
|
4237
4237
|
}
|
|
@@ -4256,13 +4256,13 @@ function pG(e, t) {
|
|
|
4256
4256
|
// so that it doesn't take the fast path during unmount - otherwise
|
|
4257
4257
|
// components nested in v-once are never unmounted.
|
|
4258
4258
|
!Fe.hasOnce && // #1153: fast path should not be taken for non-stable (v-for) fragments
|
|
4259
|
-
(P !== Ft ||
|
|
4259
|
+
(P !== Ft || Be > 0 && Be & 64) ? de(
|
|
4260
4260
|
Fe,
|
|
4261
4261
|
ne,
|
|
4262
4262
|
we,
|
|
4263
4263
|
!1,
|
|
4264
4264
|
!0
|
|
4265
|
-
) : (P === Ft &&
|
|
4265
|
+
) : (P === Ft && Be & 384 || !Ae && ze & 16) && de(fe, ne, we), Le && oe(W);
|
|
4266
4266
|
}
|
|
4267
4267
|
(yt && (Mt = M && M.onVnodeUnmounted) || Je) && Cs(() => {
|
|
4268
4268
|
Mt && Wi(Mt, ne, W), Je && hl(W, null, ne, "unmounted");
|
|
@@ -6573,7 +6573,7 @@ function dW(e) {
|
|
|
6573
6573
|
E[y] = Le, T[y] = Le - ie;
|
|
6574
6574
|
}
|
|
6575
6575
|
if (a) {
|
|
6576
|
-
var Ae, P = y === "x" ? ls : us, M = y === "x" ? ni : oi, j = E[R], fe = R === "y" ? "height" : "width", Fe = j + v[P], ze = j - v[M],
|
|
6576
|
+
var Ae, P = y === "x" ? ls : us, M = y === "x" ? ni : oi, j = E[R], fe = R === "y" ? "height" : "width", Fe = j + v[P], ze = j - v[M], Be = [ls, us].indexOf(C) !== -1, he = (Ae = D == null ? void 0 : D[R]) != null ? Ae : 0, Te = Be ? Fe : j - F[fe] - k[fe] - he + x.altAxis, Je = Be ? j + F[fe] + k[fe] - he - x.altAxis : ze, yt = f && Be ? MU(Te, j, Je) : Eh(f ? Te : Fe, j, f ? Je : ze);
|
|
6577
6577
|
E[R] = yt, T[R] = yt - j;
|
|
6578
6578
|
}
|
|
6579
6579
|
t.modifiersData[o] = T;
|
|
@@ -7168,7 +7168,7 @@ function XW(e, t) {
|
|
|
7168
7168
|
show: Mt,
|
|
7169
7169
|
hide: un,
|
|
7170
7170
|
hideWithInteractivity: $t,
|
|
7171
|
-
enable:
|
|
7171
|
+
enable: Be,
|
|
7172
7172
|
disable: he,
|
|
7173
7173
|
unmount: fn,
|
|
7174
7174
|
destroy: so
|
|
@@ -7467,7 +7467,7 @@ function XW(e, t) {
|
|
|
7467
7467
|
});
|
|
7468
7468
|
}
|
|
7469
7469
|
}
|
|
7470
|
-
function
|
|
7470
|
+
function Be() {
|
|
7471
7471
|
y.state.isEnabled = !0;
|
|
7472
7472
|
}
|
|
7473
7473
|
function he() {
|
|
@@ -8042,7 +8042,7 @@ var uk = { exports: {} };
|
|
|
8042
8042
|
function Fe(m) {
|
|
8043
8043
|
fe = m;
|
|
8044
8044
|
}
|
|
8045
|
-
var ze = {},
|
|
8045
|
+
var ze = {}, Be = 100, Pr = typeof Promise > "u" ? [] : function() {
|
|
8046
8046
|
var m = Promise.resolve();
|
|
8047
8047
|
if (typeof crypto > "u" || !crypto.subtle) return [m, u(m), m];
|
|
8048
8048
|
var w = crypto.subtle.digest("SHA-512", new Uint8Array([0]));
|
|
@@ -8278,18 +8278,18 @@ var uk = { exports: {} };
|
|
|
8278
8278
|
});
|
|
8279
8279
|
});
|
|
8280
8280
|
}), Te.withResolvers && (Qe.withResolvers = Te.withResolvers));
|
|
8281
|
-
var io = { awaits: 0, echoes: 0, id: 0 }, Ly = 0, Ru = [], Du = 0, Tu = 0,
|
|
8281
|
+
var io = { awaits: 0, echoes: 0, id: 0 }, Ly = 0, Ru = [], Du = 0, Tu = 0, Ve = 0;
|
|
8282
8282
|
function Xe(m, w, _, I) {
|
|
8283
8283
|
var N = $e, B = Object.create(N);
|
|
8284
|
-
return B.parent = N, B.ref = 0, B.global = !1, B.id = ++
|
|
8284
|
+
return B.parent = N, B.ref = 0, B.global = !1, B.id = ++Ve, Me.env, B.env = Je ? { Promise: Qe, PromiseProp: { value: Qe, configurable: !0, writable: !0 }, all: Qe.all, race: Qe.race, allSettled: Qe.allSettled, any: Qe.any, resolve: Qe.resolve, reject: Qe.reject } : {}, w && l(B, w), ++N.ref, B.finalize = function() {
|
|
8285
8285
|
--this.parent.ref || this.parent.finalize();
|
|
8286
8286
|
}, I = hi(B, m, _, I), B.ref === 0 && B.finalize(), I;
|
|
8287
8287
|
}
|
|
8288
8288
|
function en() {
|
|
8289
|
-
return io.id || (io.id = ++Ly), ++io.awaits, io.echoes +=
|
|
8289
|
+
return io.id || (io.id = ++Ly), ++io.awaits, io.echoes += Be, io.id;
|
|
8290
8290
|
}
|
|
8291
8291
|
function bn() {
|
|
8292
|
-
return !!io.awaits && (--io.awaits == 0 && (io.id = 0), io.echoes = io.awaits *
|
|
8292
|
+
return !!io.awaits && (--io.awaits == 0 && (io.id = 0), io.echoes = io.awaits * Be, !0);
|
|
8293
8293
|
}
|
|
8294
8294
|
function ci(m) {
|
|
8295
8295
|
return io.echoes && m && m.constructor === Te ? (en(), m.then(function(w) {
|
|
@@ -19554,7 +19554,7 @@ const k7 = (e) => {
|
|
|
19554
19554
|
state: e == null ? void 0 : e.bulk_process.state,
|
|
19555
19555
|
message: (e == null ? void 0 : e.bulk_process.message) || ""
|
|
19556
19556
|
} : void 0,
|
|
19557
|
-
disabled: ((o = e
|
|
19557
|
+
disabled: ((o = e == null ? void 0 : e.bulk_process) == null ? void 0 : o.state) == 0,
|
|
19558
19558
|
isArchived: ((s = e.property) == null ? void 0 : s.is_archived) === 1 || e.status == 0
|
|
19559
19559
|
};
|
|
19560
19560
|
return M7(n);
|
|
@@ -36643,7 +36643,7 @@ const my = /* @__PURE__ */ wu("userStore", () => {
|
|
|
36643
36643
|
var P;
|
|
36644
36644
|
return (P = F.value) == null ? void 0 : P.focus();
|
|
36645
36645
|
}, ne = async (P = "clear") => {
|
|
36646
|
-
var j, fe, Fe, ze,
|
|
36646
|
+
var j, fe, Fe, ze, Be, he, Te, Je, yt, Mt, un;
|
|
36647
36647
|
if (T.value || v.value) return;
|
|
36648
36648
|
v.value = !0;
|
|
36649
36649
|
const M = {
|
|
@@ -36663,7 +36663,7 @@ const my = /* @__PURE__ */ wu("userStore", () => {
|
|
|
36663
36663
|
throw new Error("Invalid response from server: missing scene ID");
|
|
36664
36664
|
switch (P) {
|
|
36665
36665
|
case "close":
|
|
36666
|
-
h(), (Fe = R.value) == null || Fe.setData([]), (ze = E.value) == null || ze.setData(null), (
|
|
36666
|
+
h(), (Fe = R.value) == null || Fe.setData([]), (ze = E.value) == null || ze.setData(null), (Be = F.value) == null || Be.setData([null, null]), f(), te();
|
|
36667
36667
|
break;
|
|
36668
36668
|
case "close-open":
|
|
36669
36669
|
h(), (he = R.value) == null || he.setData([]), (Te = E.value) == null || Te.setData(null), (Je = F.value) == null || Je.setData([null, null]), f(), te(), g($t.id);
|
|
@@ -37089,7 +37089,7 @@ const my = /* @__PURE__ */ wu("userStore", () => {
|
|
|
37089
37089
|
...o,
|
|
37090
37090
|
value: []
|
|
37091
37091
|
}), { apiServices: ee } = oo(!1, o), $ = async (P = 1, M = "", j = !1) => {
|
|
37092
|
-
var Fe, ze,
|
|
37092
|
+
var Fe, ze, Be, he, Te;
|
|
37093
37093
|
if (!ee.value)
|
|
37094
37094
|
throw console.error("API service or item identifiers are undefined"), new Error("API service or item identifiers are undefined");
|
|
37095
37095
|
if (j ? k.value = !0 : F.value = !0, O.value = null, !((Fe = ee.value) != null && Fe.getEntityUserRoles))
|
|
@@ -37102,7 +37102,7 @@ const my = /* @__PURE__ */ wu("userStore", () => {
|
|
|
37102
37102
|
per_page: qne,
|
|
37103
37103
|
display_name_like: M,
|
|
37104
37104
|
entity_ids: String(o.entityId)
|
|
37105
|
-
})), yt = ((
|
|
37105
|
+
})), yt = ((Be = bc(Je.data)) == null ? void 0 : Be.map(ry)) ?? [];
|
|
37106
37106
|
te.value = j ? Wc(te.value, yt, "id") : yt, T.value = Je.meta.total, D.value = (((he = Je == null ? void 0 : Je.meta) == null ? void 0 : he.current_page) || 0) < (((Te = Je == null ? void 0 : Je.meta) == null ? void 0 : Te.last_page) || 0), x.value = P;
|
|
37107
37107
|
} catch (Je) {
|
|
37108
37108
|
console.error("Error fetching assignable users:", Je), O.value = "Failed to load assignable users";
|
|
@@ -37435,7 +37435,7 @@ const my = /* @__PURE__ */ wu("userStore", () => {
|
|
|
37435
37435
|
selectedIndex: fe,
|
|
37436
37436
|
isSelected: Fe,
|
|
37437
37437
|
handleSelect: ze,
|
|
37438
|
-
handleItemHover:
|
|
37438
|
+
handleItemHover: Be,
|
|
37439
37439
|
getHighlightedLabel: he,
|
|
37440
37440
|
query: Te,
|
|
37441
37441
|
idx: Je
|
|
@@ -37445,7 +37445,7 @@ const my = /* @__PURE__ */ wu("userStore", () => {
|
|
|
37445
37445
|
selected: Fe(j),
|
|
37446
37446
|
type: j.type,
|
|
37447
37447
|
onClick: At((yt) => ze(j, yt), ["stop", "prevent"]),
|
|
37448
|
-
onMouseover: (yt) =>
|
|
37448
|
+
onMouseover: (yt) => Be(Je),
|
|
37449
37449
|
class: P.$style["item-assignee"]
|
|
37450
37450
|
}), {
|
|
37451
37451
|
prefix: ye(() => [
|
|
@@ -38131,12 +38131,12 @@ const my = /* @__PURE__ */ wu("userStore", () => {
|
|
|
38131
38131
|
archiveStatuses: ((Pe = S.value) == null ? void 0 : Pe.getData()) || []
|
|
38132
38132
|
};
|
|
38133
38133
|
}, J = (de) => {
|
|
38134
|
-
var _e, X, Ee, Pe, He, W, ne, we, Le, Ae, P, M, j, fe, Fe, ze,
|
|
38134
|
+
var _e, X, Ee, Pe, He, W, ne, we, Le, Ae, P, M, j, fe, Fe, ze, Be, he, Te, Je;
|
|
38135
38135
|
if (!de) {
|
|
38136
38136
|
(X = (_e = g.value) == null ? void 0 : _e.clear) == null || X.call(_e), (Pe = (Ee = v.value) == null ? void 0 : Ee.clear) == null || Pe.call(Ee), (W = (He = C.value) == null ? void 0 : He.clear) == null || W.call(He), (we = (ne = b.value) == null ? void 0 : ne.clear) == null || we.call(ne), (Ae = (Le = S.value) == null ? void 0 : Le.clear) == null || Ae.call(Le);
|
|
38137
38137
|
return;
|
|
38138
38138
|
}
|
|
38139
|
-
de.assignees && ((M = (P = g.value) == null ? void 0 : P.setData) == null || M.call(P, de.assignees)), de.statuses && ((fe = (j = v.value) == null ? void 0 : j.setData) == null || fe.call(j, de.statuses)), de.startDateRange && ((ze = (Fe = C.value) == null ? void 0 : Fe.setData) == null || ze.call(Fe, de.startDateRange)), de.dueDateRange && ((he = (
|
|
38139
|
+
de.assignees && ((M = (P = g.value) == null ? void 0 : P.setData) == null || M.call(P, de.assignees)), de.statuses && ((fe = (j = v.value) == null ? void 0 : j.setData) == null || fe.call(j, de.statuses)), de.startDateRange && ((ze = (Fe = C.value) == null ? void 0 : Fe.setData) == null || ze.call(Fe, de.startDateRange)), de.dueDateRange && ((he = (Be = b.value) == null ? void 0 : Be.setData) == null || he.call(Be, de.dueDateRange)), de.archiveStatuses && ((Je = (Te = S.value) == null ? void 0 : Te.setData) == null || Je.call(Te, de.archiveStatuses));
|
|
38140
38140
|
}, V = () => {
|
|
38141
38141
|
const de = H(), _e = $(de);
|
|
38142
38142
|
R.value = le(de), y.value = le(de), p("apply-filter", _e), l();
|
|
@@ -38688,11 +38688,11 @@ function cse(e, t = {}) {
|
|
|
38688
38688
|
function d(P, M, j, ...fe) {
|
|
38689
38689
|
const Fe = u();
|
|
38690
38690
|
if (M.column += j, M.offset += j, c) {
|
|
38691
|
-
const ze = n ? gS(Fe.startLoc, M) : null,
|
|
38691
|
+
const ze = n ? gS(Fe.startLoc, M) : null, Be = bd(P, ze, {
|
|
38692
38692
|
domain: use,
|
|
38693
38693
|
args: fe
|
|
38694
38694
|
});
|
|
38695
|
-
c(
|
|
38695
|
+
c(Be);
|
|
38696
38696
|
}
|
|
38697
38697
|
}
|
|
38698
38698
|
function h(P, M, j) {
|
|
@@ -38797,8 +38797,8 @@ function cse(e, t = {}) {
|
|
|
38797
38797
|
}
|
|
38798
38798
|
function D(P, M = !0) {
|
|
38799
38799
|
const j = (Fe = !1, ze = "") => {
|
|
38800
|
-
const
|
|
38801
|
-
return
|
|
38800
|
+
const Be = P.currentPeek();
|
|
38801
|
+
return Be === "{" || Be === "@" || !Be ? Fe : Be === "|" ? !(ze === ji || ze === Lo) : Be === ji ? (P.peek(), j(!0, ji)) : Be === Lo ? (P.peek(), j(!0, Lo)) : !0;
|
|
38802
38802
|
}, fe = j();
|
|
38803
38803
|
return M && P.resetPeek(), fe;
|
|
38804
38804
|
}
|
|
@@ -38977,7 +38977,7 @@ function cse(e, t = {}) {
|
|
|
38977
38977
|
case "@":
|
|
38978
38978
|
return M.braceNest > 0 && d(Vt.UNTERMINATED_CLOSING_BRACE, i(), 0), j = we(P, M) || f(M), M.braceNest = 0, j;
|
|
38979
38979
|
default: {
|
|
38980
|
-
let Fe = !0, ze = !0,
|
|
38980
|
+
let Fe = !0, ze = !0, Be = !0;
|
|
38981
38981
|
if (x(P))
|
|
38982
38982
|
return M.braceNest > 0 && d(Vt.UNTERMINATED_CLOSING_BRACE, i(), 0), j = h(M, 1, W(P)), M.braceNest = 0, M.inLinked = !1, j;
|
|
38983
38983
|
if (M.braceNest > 0 && (M.currentType === 4 || M.currentType === 5 || M.currentType === 6))
|
|
@@ -38986,9 +38986,9 @@ function cse(e, t = {}) {
|
|
|
38986
38986
|
return j = h(M, 4, V(P)), v(P), j;
|
|
38987
38987
|
if (ze = y(P, M))
|
|
38988
38988
|
return j = h(M, 5, oe(P)), v(P), j;
|
|
38989
|
-
if (
|
|
38989
|
+
if (Be = R(P, M))
|
|
38990
38990
|
return j = h(M, 6, Ue(P)), v(P), j;
|
|
38991
|
-
if (!Fe && !ze && !
|
|
38991
|
+
if (!Fe && !ze && !Be)
|
|
38992
38992
|
return j = h(M, 12, Ee(P)), d(Vt.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, j.value), v(P), j;
|
|
38993
38993
|
break;
|
|
38994
38994
|
}
|
|
@@ -41063,7 +41063,7 @@ function W0(e = {}) {
|
|
|
41063
41063
|
}), tt(t.fallbackLocale, (he) => {
|
|
41064
41064
|
r && (l.value = he, F.fallbackLocale = he, Kd(F, a.value, l.value));
|
|
41065
41065
|
}));
|
|
41066
|
-
const
|
|
41066
|
+
const Be = {
|
|
41067
41067
|
id: ix,
|
|
41068
41068
|
locale: x,
|
|
41069
41069
|
fallbackLocale: D,
|
|
@@ -41132,11 +41132,11 @@ function W0(e = {}) {
|
|
|
41132
41132
|
setMissingHandler: ee,
|
|
41133
41133
|
[KN]: Pe
|
|
41134
41134
|
};
|
|
41135
|
-
return
|
|
41135
|
+
return Be.datetimeFormats = A, Be.numberFormats = q, Be.rt = J, Be.te = He, Be.tm = ne, Be.d = V, Be.n = oe, Be.getDateTimeFormat = P, Be.setDateTimeFormat = M, Be.mergeDateTimeFormat = j, Be.getNumberFormat = fe, Be.setNumberFormat = Fe, Be.mergeNumberFormat = ze, Be[qN] = n, Be[bS] = _e, Be[SS] = Ee, Be[ES] = X, G.env.NODE_ENV !== "production" && (Be[lu] = (he) => {
|
|
41136
41136
|
F.__v_emitter = he;
|
|
41137
|
-
},
|
|
41137
|
+
}, Be[wf] = () => {
|
|
41138
41138
|
F.__v_emitter = void 0;
|
|
41139
|
-
}),
|
|
41139
|
+
}), Be;
|
|
41140
41140
|
}
|
|
41141
41141
|
const XN = "vue-i18n: composer properties", vC = {
|
|
41142
41142
|
"vue-devtools-plugin-vue-i18n": "Vue I18n DevTools",
|
|
@@ -85424,7 +85424,7 @@ const nRe = {
|
|
|
85424
85424
|
GRID_HEIGHT: "650px"
|
|
85425
85425
|
}, c = L(""), d = K(() => {
|
|
85426
85426
|
var Xe;
|
|
85427
|
-
const
|
|
85427
|
+
const Ve = ((Xe = r.value) == null ? void 0 : Xe.has_create_item_permission) == 1 || !1;
|
|
85428
85428
|
return [
|
|
85429
85429
|
{
|
|
85430
85430
|
label: "Create manually",
|
|
@@ -85432,14 +85432,14 @@ const nRe = {
|
|
|
85432
85432
|
icon: "Plus",
|
|
85433
85433
|
type: "icon",
|
|
85434
85434
|
id: "create_new_scene",
|
|
85435
|
-
hide: !
|
|
85435
|
+
hide: !Ve
|
|
85436
85436
|
},
|
|
85437
85437
|
{
|
|
85438
85438
|
label: "Import from CSV or Excel",
|
|
85439
85439
|
value: "import_scenes",
|
|
85440
85440
|
icon: "FileImport",
|
|
85441
85441
|
type: "icon",
|
|
85442
|
-
hide: !
|
|
85442
|
+
hide: !Ve,
|
|
85443
85443
|
id: "import_scenes_option"
|
|
85444
85444
|
},
|
|
85445
85445
|
{
|
|
@@ -85447,7 +85447,7 @@ const nRe = {
|
|
|
85447
85447
|
value: "overwrite_scenes",
|
|
85448
85448
|
icon: "FilePen",
|
|
85449
85449
|
type: "icon",
|
|
85450
|
-
hide: !
|
|
85450
|
+
hide: !Ve,
|
|
85451
85451
|
id: "overwrite_scenes_option"
|
|
85452
85452
|
}
|
|
85453
85453
|
];
|
|
@@ -85458,8 +85458,8 @@ const nRe = {
|
|
|
85458
85458
|
});
|
|
85459
85459
|
const f = tp(), { switchInstanceFunc: p } = zo(f);
|
|
85460
85460
|
Qt(() => {
|
|
85461
|
-
const
|
|
85462
|
-
p.value =
|
|
85461
|
+
const Ve = Ro();
|
|
85462
|
+
p.value = Ve == null ? void 0 : Ve.appContext.config.globalProperties.switchInstance, console.log("Switch instance set in store:", p.value);
|
|
85463
85463
|
});
|
|
85464
85464
|
const g = L(null), v = L([]), C = fy(), { rowCount: b } = zo(C), S = L(!1), y = L(""), R = L(), E = $M(), { metricList: F } = zo(E), k = L(""), O = L(!1), x = L(/* @__PURE__ */ new Set()), D = L(/* @__PURE__ */ new Map()), { apiServices: T } = oo(!1, h), { columnDefs: A, checkboxColumn: q, saveColumnConfig: Z } = h0e(
|
|
85465
85465
|
F,
|
|
@@ -85469,23 +85469,23 @@ const nRe = {
|
|
|
85469
85469
|
tt(
|
|
85470
85470
|
() => A,
|
|
85471
85471
|
() => {
|
|
85472
|
-
var
|
|
85473
|
-
(
|
|
85472
|
+
var Ve;
|
|
85473
|
+
(Ve = te.value) == null || Ve.updateColumnDefs(A.value);
|
|
85474
85474
|
},
|
|
85475
85475
|
{ deep: !0 }
|
|
85476
85476
|
);
|
|
85477
|
-
const ie = (
|
|
85478
|
-
Z(
|
|
85477
|
+
const ie = (Ve, Xe) => {
|
|
85478
|
+
Z(Ve, Xe);
|
|
85479
85479
|
}, { updateRowData: ee, setMetricValues: $ } = Q_e(g), le = K(() => ({
|
|
85480
85480
|
isSearching: y.value.length > 0,
|
|
85481
85481
|
isFiltering: !(Object.keys(we.value || {}).length == 1 && Object.keys(we.value)[0] == "preflight_status") && Object.keys(we.value || {}).length > 0
|
|
85482
85482
|
})), H = K(iy), J = K(
|
|
85483
|
-
() => A.value.filter((
|
|
85483
|
+
() => A.value.filter((Ve) => {
|
|
85484
85484
|
var Xe;
|
|
85485
|
-
return ((Xe =
|
|
85486
|
-
}).map((
|
|
85485
|
+
return ((Xe = Ve.field) == null ? void 0 : Xe.startsWith("metric_")) && !Ve.hide;
|
|
85486
|
+
}).map((Ve) => {
|
|
85487
85487
|
var Xe;
|
|
85488
|
-
return ((Xe =
|
|
85488
|
+
return ((Xe = Ve.field) == null ? void 0 : Xe.replace("metric_", "")) || "";
|
|
85489
85489
|
})
|
|
85490
85490
|
);
|
|
85491
85491
|
wr("timezone", H);
|
|
@@ -85498,23 +85498,23 @@ const nRe = {
|
|
|
85498
85498
|
setMetricValues: $
|
|
85499
85499
|
})), { fetchItems: oe, getMetricList: ue, cusorMap: Ue, getMetricValues: de } = J_e(V), _e = K(() => {
|
|
85500
85500
|
if (!g.value) return !1;
|
|
85501
|
-
const
|
|
85502
|
-
return
|
|
85501
|
+
const Ve = g.value.getSelectedRows().length;
|
|
85502
|
+
return Ve > 0 && Ve >= b.value.total;
|
|
85503
85503
|
}), X = K(() => {
|
|
85504
|
-
var
|
|
85505
|
-
return ((
|
|
85506
|
-
}), Ee = (
|
|
85504
|
+
var Ve;
|
|
85505
|
+
return ((Ve = l.value) == null ? void 0 : Ve.name) || "Items";
|
|
85506
|
+
}), Ee = (Ve, Xe) => {
|
|
85507
85507
|
var en, bn, ci;
|
|
85508
|
-
b.value.total =
|
|
85508
|
+
b.value.total = Ve.meta.total ?? 0, (en = Ve.meta.next) != null && en.cursor && (Ue[Xe + 1] = Ve.meta.next.cursor), k.value = Ve.meta["X-Tsr-signature"] || "", Ve.meta.total === 0 ? (bn = g.value) == null || bn.showNoRowsOverlay() : (ci = g.value) == null || ci.hideOverlay();
|
|
85509
85509
|
}, Pe = bN(), He = L(null), { sortingAPIConfiguration: W, isSortingRunning: ne } = zo(Pe), we = L({
|
|
85510
85510
|
// status_eq: '1',
|
|
85511
85511
|
preflight_status: "1"
|
|
85512
85512
|
}), Le = K(() => ({ ...we.value, search: y.value }));
|
|
85513
85513
|
wr("filterParams", Le);
|
|
85514
|
-
const Ae = L([]), P = async ({ page:
|
|
85514
|
+
const Ae = L([]), P = async ({ page: Ve, pageSize: Xe, filterText: en }) => {
|
|
85515
85515
|
var di;
|
|
85516
85516
|
(di = g.value) == null || di.hideOverlay();
|
|
85517
|
-
const bn = Ue[
|
|
85517
|
+
const bn = Ue[Ve], ci = !bn && Ve > 1 ? (Ve - 1) * Xe : void 0, yp = W.value;
|
|
85518
85518
|
yp.length > 0 && (ne.value = !0);
|
|
85519
85519
|
try {
|
|
85520
85520
|
const Fu = {
|
|
@@ -85532,7 +85532,7 @@ const nRe = {
|
|
|
85532
85532
|
x.value.add(String(ts.id)), D.value.set(String(ts.id), {});
|
|
85533
85533
|
}), $i;
|
|
85534
85534
|
})(hi);
|
|
85535
|
-
return Ee(hi,
|
|
85535
|
+
return Ee(hi, Ve), { rows: Td, total: b.value.total };
|
|
85536
85536
|
} catch (Fu) {
|
|
85537
85537
|
return console.error("Failed to fetch items:", Fu), { rows: [], total: 0 };
|
|
85538
85538
|
} finally {
|
|
@@ -85544,7 +85544,7 @@ const nRe = {
|
|
|
85544
85544
|
onGridReady: fe,
|
|
85545
85545
|
handleUnSelect: Fe,
|
|
85546
85546
|
handleSelectAll: ze,
|
|
85547
|
-
onSearch:
|
|
85547
|
+
onSearch: Be,
|
|
85548
85548
|
firstLoad: he
|
|
85549
85549
|
} = tRe({
|
|
85550
85550
|
selectRowData: L([]),
|
|
@@ -85555,8 +85555,8 @@ const nRe = {
|
|
|
85555
85555
|
perPage: u.ROWS_PER_PAGE,
|
|
85556
85556
|
fetcher: P
|
|
85557
85557
|
}), Te = L([]), Je = () => {
|
|
85558
|
-
var
|
|
85559
|
-
Te.value = ((
|
|
85558
|
+
var Ve;
|
|
85559
|
+
Te.value = ((Ve = g.value) == null ? void 0 : Ve.getSelectedRows()) || [];
|
|
85560
85560
|
}, yt = ti({
|
|
85561
85561
|
columnsDisplay: [],
|
|
85562
85562
|
rowsDisplay: {
|
|
@@ -85604,11 +85604,11 @@ const nRe = {
|
|
|
85604
85604
|
minWidth: 100,
|
|
85605
85605
|
suppressNavigable: !1
|
|
85606
85606
|
},
|
|
85607
|
-
getRowId: (
|
|
85608
|
-
getRowClass: (
|
|
85609
|
-
if (!
|
|
85607
|
+
getRowId: (Ve) => Ve.data.id,
|
|
85608
|
+
getRowClass: (Ve) => {
|
|
85609
|
+
if (!Ve.data) return ["row-empty"];
|
|
85610
85610
|
const Xe = ["row-highlight"];
|
|
85611
|
-
return
|
|
85611
|
+
return Ve.data.id || Xe.push("row-inactive"), Ve.data.isDeleted && Xe.push("row-deleted"), Ve.data.disabled && Xe.push("row-deleted"), Ve.data.isArchived && Xe.push("row-archived"), Xe;
|
|
85612
85612
|
},
|
|
85613
85613
|
suppressRowTransform: !1,
|
|
85614
85614
|
singleClickEdit: !0,
|
|
@@ -85618,129 +85618,129 @@ const nRe = {
|
|
|
85618
85618
|
apiServices: T.value,
|
|
85619
85619
|
sorting: ne.value
|
|
85620
85620
|
},
|
|
85621
|
-
suppressKeyboardEvent: (
|
|
85622
|
-
const Xe =
|
|
85623
|
-
return
|
|
85621
|
+
suppressKeyboardEvent: (Ve) => {
|
|
85622
|
+
const Xe = Ve.event.key;
|
|
85623
|
+
return Ve.editing && Xe === "Enter" ? !1 : Xe === "Enter" ? (Ve.event.preventDefault(), Ve.event.stopPropagation(), !0) : Xe === "ArrowUp" || Xe === "ArrowDown" || Xe === "ArrowLeft" || Xe === "ArrowRight" || Xe === "Tab" || Xe === "Enter";
|
|
85624
85624
|
},
|
|
85625
85625
|
navigateToNextCell: () => null,
|
|
85626
|
-
onBodyScroll: (
|
|
85627
|
-
const Xe =
|
|
85628
|
-
yt.rowsDisplay.fromIndex = Xe, yt.rowsDisplay.toIndex = en, yt.columnsDisplay =
|
|
85626
|
+
onBodyScroll: (Ve) => {
|
|
85627
|
+
const Xe = Ve.api.getFirstDisplayedRowIndex(), en = Ve.api.getLastDisplayedRowIndex();
|
|
85628
|
+
yt.rowsDisplay.fromIndex = Xe, yt.rowsDisplay.toIndex = en, yt.columnsDisplay = Ve.api.getAllDisplayedVirtualColumns().map((bn) => bn.getColId());
|
|
85629
85629
|
},
|
|
85630
|
-
onViewportChanged: (
|
|
85631
|
-
yt.columnsDisplay =
|
|
85630
|
+
onViewportChanged: (Ve) => {
|
|
85631
|
+
yt.columnsDisplay = Ve.api.getAllDisplayedVirtualColumns().map((Xe) => Xe.getColId());
|
|
85632
85632
|
},
|
|
85633
85633
|
suppressHeaderFocus: !0
|
|
85634
85634
|
}));
|
|
85635
85635
|
function un() {
|
|
85636
85636
|
if (!g.value) return;
|
|
85637
|
-
let
|
|
85637
|
+
let Ve = 0;
|
|
85638
85638
|
g.value.forEachNode((Xe) => {
|
|
85639
|
-
Xe.data &&
|
|
85640
|
-
}), b.value.loaded = Math.min(
|
|
85639
|
+
Xe.data && Ve++;
|
|
85640
|
+
}), b.value.loaded = Math.min(Ve, b.value.total);
|
|
85641
85641
|
}
|
|
85642
85642
|
tt(
|
|
85643
85643
|
() => W,
|
|
85644
85644
|
() => {
|
|
85645
|
-
g.value && (k.value = "", x.value.clear(), g.value.deselectAll(), Object.keys(Ue).forEach((
|
|
85645
|
+
g.value && (k.value = "", x.value.clear(), g.value.deselectAll(), Object.keys(Ue).forEach((Ve) => delete Ue[Number(Ve)]), g.value.purgeInfiniteCache(), g.value.ensureIndexVisible(0));
|
|
85646
85646
|
},
|
|
85647
85647
|
{
|
|
85648
85648
|
deep: !0
|
|
85649
85649
|
}
|
|
85650
85650
|
);
|
|
85651
85651
|
const $t = L(), fn = L(), so = () => {
|
|
85652
|
-
var
|
|
85653
|
-
(
|
|
85652
|
+
var Ve;
|
|
85653
|
+
(Ve = fn.value) == null || Ve.open();
|
|
85654
85654
|
}, Me = () => {
|
|
85655
|
-
var
|
|
85656
|
-
(
|
|
85655
|
+
var Ve;
|
|
85656
|
+
(Ve = $t.value) == null || Ve.open();
|
|
85657
85657
|
}, $e = async () => {
|
|
85658
|
-
he.value = !0, g.value && (k.value = "", x.value.clear(), Object.keys(Ue).forEach((
|
|
85658
|
+
he.value = !0, g.value && (k.value = "", x.value.clear(), Object.keys(Ue).forEach((Ve) => delete Ue[Number(Ve)]), await g.value.deselectAll(), await g.value.ensureIndexVisible(0, "top"), await g.value.purgeInfiniteCache(), await g.value.refreshInfiniteCache());
|
|
85659
85659
|
}, Ct = K(() => Cn.getInstance().getItem("ITEM_TABLE_APP_VERSION") || ""), It = L(), Gt = K(() => {
|
|
85660
|
-
var
|
|
85661
|
-
return (
|
|
85660
|
+
var Ve;
|
|
85661
|
+
return (Ve = sRe(Ct.value)) == null ? void 0 : Ve.map((Xe) => `<div>• ${Xe}</div>`).join(`
|
|
85662
85662
|
`);
|
|
85663
85663
|
});
|
|
85664
|
-
function Qe(
|
|
85664
|
+
function Qe(Ve) {
|
|
85665
85665
|
var Xe;
|
|
85666
|
-
|
|
85666
|
+
Ve === "new_scene" ? (Xe = It.value) == null || Xe.show() : Ve === "import_scenes" ? Me() : Ve === "overwrite_scenes" && so();
|
|
85667
85667
|
}
|
|
85668
|
-
const Co = (
|
|
85669
|
-
v.value =
|
|
85670
|
-
}, li = (
|
|
85671
|
-
const Xe = fe(
|
|
85668
|
+
const Co = (Ve) => {
|
|
85669
|
+
v.value = Ve.api.getSelectedRows().map((Xe) => Xe.id);
|
|
85670
|
+
}, li = (Ve) => {
|
|
85671
|
+
const Xe = fe(Ve);
|
|
85672
85672
|
return Xe && (Xe.addEventListener("modelUpdated", un), Xe.addEventListener("bodyScroll", () => Xe.stopEditing()), Xe.addEventListener("selectionChanged", Je), Xe.addEventListener("columnMoved", (bn) => ie(bn, !0)), Xe.addEventListener("columnResized", (bn) => ie(bn, !0)), Xe.addEventListener("firstDataRendered", () => {
|
|
85673
85673
|
he.value = !1;
|
|
85674
85674
|
}), !document.querySelector(".ag-body-viewport")), Xe;
|
|
85675
85675
|
}, Vi = () => {
|
|
85676
|
-
var
|
|
85677
|
-
c.value = (((
|
|
85676
|
+
var Ve;
|
|
85677
|
+
c.value = (((Ve = document.getElementById("item-table-layout-id")) == null ? void 0 : Ve.clientHeight) ?? 0) - 78 + "px";
|
|
85678
85678
|
};
|
|
85679
85679
|
Qt(() => {
|
|
85680
85680
|
Dt(() => {
|
|
85681
85681
|
Vi();
|
|
85682
85682
|
}), window.addEventListener("resize", Vi);
|
|
85683
|
-
function
|
|
85684
|
-
requestAnimationFrame(
|
|
85683
|
+
function Ve() {
|
|
85684
|
+
requestAnimationFrame(Ve);
|
|
85685
85685
|
}
|
|
85686
|
-
|
|
85686
|
+
Ve();
|
|
85687
85687
|
}), to(() => {
|
|
85688
85688
|
window.removeEventListener("resize", Vi);
|
|
85689
85689
|
});
|
|
85690
|
-
const Os = async ({ code:
|
|
85691
|
-
await Ve
|
|
85690
|
+
const Os = async ({ code: Ve, name: Xe }) => {
|
|
85691
|
+
await Be(Ve), setTimeout(() => {
|
|
85692
85692
|
var en;
|
|
85693
85693
|
(en = R.value) == null || en.setValue(Xe);
|
|
85694
85694
|
}, 300);
|
|
85695
|
-
}, Ir = (
|
|
85695
|
+
}, Ir = (Ve) => {
|
|
85696
85696
|
if (!g.value) return;
|
|
85697
|
-
const Xe = g.value.getRowNode(
|
|
85697
|
+
const Xe = g.value.getRowNode(Ve);
|
|
85698
85698
|
Xe ? (g.value.ensureIndexVisible(Number(Xe.rowIndex), "middle"), g.value.flashCells({
|
|
85699
85699
|
rowNodes: [Xe],
|
|
85700
85700
|
flashDuration: 3e3,
|
|
85701
85701
|
/** The duration in milliseconds of how long the "flashed" state animation takes to fade away after the timer set by `flashDuration` has completed. */
|
|
85702
85702
|
fadeDuration: 1e3
|
|
85703
85703
|
})) : g.value.ensureIndexVisible(b.value.total - 1, "bottom");
|
|
85704
|
-
}, ma = (
|
|
85704
|
+
}, ma = (Ve) => Ve.metric_type.code === "number" ? "number" : "default", Bi = async () => {
|
|
85705
85705
|
if (h.entityId)
|
|
85706
85706
|
try {
|
|
85707
|
-
const
|
|
85708
|
-
F.value =
|
|
85707
|
+
const Ve = await ue(h.entityId);
|
|
85708
|
+
F.value = Ve.data.map((Xe) => ({
|
|
85709
85709
|
...Xe,
|
|
85710
85710
|
sortType: ma(Xe)
|
|
85711
85711
|
}));
|
|
85712
|
-
} catch (
|
|
85713
|
-
console.error("Failed to initialize metric list:",
|
|
85712
|
+
} catch (Ve) {
|
|
85713
|
+
console.error("Failed to initialize metric list:", Ve), F.value = [];
|
|
85714
85714
|
}
|
|
85715
85715
|
}, Hi = async () => {
|
|
85716
85716
|
if (T.value)
|
|
85717
85717
|
try {
|
|
85718
|
-
const
|
|
85719
|
-
s(
|
|
85720
|
-
} catch (
|
|
85721
|
-
console.error("Failed to fetch user permissions:",
|
|
85718
|
+
const Ve = await T.value.getUserPermission(h.workspaceId);
|
|
85719
|
+
s(Ve);
|
|
85720
|
+
} catch (Ve) {
|
|
85721
|
+
console.error("Failed to fetch user permissions:", Ve);
|
|
85722
85722
|
}
|
|
85723
85723
|
}, Ms = async () => {
|
|
85724
85724
|
if (T.value)
|
|
85725
85725
|
try {
|
|
85726
|
-
const
|
|
85727
|
-
i(
|
|
85728
|
-
} catch (
|
|
85729
|
-
console.error("Failed to fetch entity details:",
|
|
85726
|
+
const Ve = await T.value.getEntityDetail(h.workspaceId, h.entityId);
|
|
85727
|
+
i(Ve.permission), l.value = Ve;
|
|
85728
|
+
} catch (Ve) {
|
|
85729
|
+
console.error("Failed to fetch entity details:", Ve);
|
|
85730
85730
|
}
|
|
85731
85731
|
}, ui = my(), { setUser: _u } = ui, Dn = async () => {
|
|
85732
85732
|
if (T.value)
|
|
85733
85733
|
try {
|
|
85734
|
-
const
|
|
85735
|
-
return _u(
|
|
85736
|
-
} catch (
|
|
85737
|
-
console.error("Failed to fetch user details:",
|
|
85734
|
+
const Ve = await T.value.getMe();
|
|
85735
|
+
return _u(Ve), Ve;
|
|
85736
|
+
} catch (Ve) {
|
|
85737
|
+
console.error("Failed to fetch user details:", Ve);
|
|
85738
85738
|
}
|
|
85739
85739
|
}, io = async () => {
|
|
85740
|
-
var
|
|
85740
|
+
var Ve;
|
|
85741
85741
|
if (T.value)
|
|
85742
85742
|
try {
|
|
85743
|
-
const Xe = await T.value.getWorkspaces(h.workspaceId), en = (
|
|
85743
|
+
const Xe = await T.value.getWorkspaces(h.workspaceId), en = (Ve = Xe.data[0]) == null ? void 0 : Ve.ws_user_role_id;
|
|
85744
85744
|
return en && ui.setUserRoleId(en), Xe;
|
|
85745
85745
|
} catch (Xe) {
|
|
85746
85746
|
console.error("Failed to fetch workspace details:", Xe);
|
|
@@ -85748,14 +85748,14 @@ const nRe = {
|
|
|
85748
85748
|
};
|
|
85749
85749
|
tt(
|
|
85750
85750
|
() => [h.entityId, h.workspaceId],
|
|
85751
|
-
async ([
|
|
85752
|
-
!
|
|
85751
|
+
async ([Ve, Xe]) => {
|
|
85752
|
+
!Ve || !Xe || (Dn(), io(), Bi(), Hi(), Ms());
|
|
85753
85753
|
},
|
|
85754
85754
|
{ immediate: !0, deep: !0 }
|
|
85755
85755
|
), tt(
|
|
85756
85756
|
J,
|
|
85757
|
-
(
|
|
85758
|
-
const en =
|
|
85757
|
+
(Ve, Xe) => {
|
|
85758
|
+
const en = Ve.filter((bn) => !(Xe != null && Xe.includes(bn)));
|
|
85759
85759
|
en.length > 0 && de(Array.from(x.value), en).then((bn) => {
|
|
85760
85760
|
$(bn, x.value, en);
|
|
85761
85761
|
});
|
|
@@ -85764,23 +85764,23 @@ const nRe = {
|
|
|
85764
85764
|
immediate: !0,
|
|
85765
85765
|
deep: !0
|
|
85766
85766
|
}
|
|
85767
|
-
), tt(k, (
|
|
85768
|
-
O.value = !!(Xe &&
|
|
85767
|
+
), tt(k, (Ve, Xe) => {
|
|
85768
|
+
O.value = !!(Xe && Ve && Xe !== Ve);
|
|
85769
85769
|
}), t({
|
|
85770
85770
|
refreshTable: $e
|
|
85771
85771
|
});
|
|
85772
|
-
const Ly = (
|
|
85773
|
-
we.value =
|
|
85774
|
-
}, Ru = (
|
|
85775
|
-
Ae.value =
|
|
85776
|
-
}, Du = (
|
|
85777
|
-
A.value =
|
|
85772
|
+
const Ly = (Ve) => {
|
|
85773
|
+
we.value = Ve, $e();
|
|
85774
|
+
}, Ru = (Ve) => {
|
|
85775
|
+
Ae.value = Ve, $e();
|
|
85776
|
+
}, Du = (Ve) => {
|
|
85777
|
+
A.value = Ve || [], ie({}, !0);
|
|
85778
85778
|
}, Tu = K(() => {
|
|
85779
85779
|
var bn;
|
|
85780
|
-
const
|
|
85781
|
-
return `New ${((bn = (
|
|
85780
|
+
const Ve = Cn.getInstance().getItem("ws.terminology");
|
|
85781
|
+
return `New ${((bn = (Ve ? JSON.parse(Ve) : null).find((ci) => ci.code === "scene")) == null ? void 0 : bn.name) || "Scene"}`;
|
|
85782
85782
|
});
|
|
85783
|
-
return (
|
|
85783
|
+
return (Ve, Xe) => (z(), je(U(dQ), {
|
|
85784
85784
|
"is-sidebar-open": S.value,
|
|
85785
85785
|
onCloseSidebar: U(j),
|
|
85786
85786
|
onSidebarClear: U(j),
|
|
@@ -85813,7 +85813,7 @@ const nRe = {
|
|
|
85813
85813
|
_: 1
|
|
85814
85814
|
}, 8, ["options"])) : Ze("", !0),
|
|
85815
85815
|
pe("div", {
|
|
85816
|
-
class: Y(
|
|
85816
|
+
class: Y(Ve.$style["beta-tag"])
|
|
85817
85817
|
}, "Beta", 2),
|
|
85818
85818
|
qe((z(), ae("span", vRe, [
|
|
85819
85819
|
st(bt(Ct.value), 1)
|
|
@@ -85833,9 +85833,9 @@ const nRe = {
|
|
|
85833
85833
|
"data-tab-index": 4,
|
|
85834
85834
|
modelValue: y.value,
|
|
85835
85835
|
"onUpdate:modelValue": Xe[2] || (Xe[2] = (en) => y.value = en),
|
|
85836
|
-
onSearch: U(
|
|
85837
|
-
class: Y(
|
|
85838
|
-
onClear: Xe[3] || (Xe[3] = (en) => U(
|
|
85836
|
+
onSearch: U(Be),
|
|
85837
|
+
class: Y(Ve.$style.itemSearchBox),
|
|
85838
|
+
onClear: Xe[3] || (Xe[3] = (en) => U(Be)("")),
|
|
85839
85839
|
id: "item_search_box",
|
|
85840
85840
|
ref_key: "searchBoxRef",
|
|
85841
85841
|
ref: R
|
|
@@ -85901,7 +85901,7 @@ const nRe = {
|
|
|
85901
85901
|
]),
|
|
85902
85902
|
footer: ye(() => [
|
|
85903
85903
|
pe("div", {
|
|
85904
|
-
class: Y(
|
|
85904
|
+
class: Y(Ve.$style.tableFooter),
|
|
85905
85905
|
id: "table_footer"
|
|
85906
85906
|
}, [
|
|
85907
85907
|
pe("span", null, [
|
|
@@ -85969,7 +85969,7 @@ const nRe = {
|
|
|
85969
85969
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
85970
85970
|
}, RRe = {
|
|
85971
85971
|
$style: _Re
|
|
85972
|
-
}, DRe = /* @__PURE__ */ _t(yRe, [["__cssModules", RRe]]), kB = "0.1.
|
|
85972
|
+
}, DRe = /* @__PURE__ */ _t(yRe, [["__cssModules", RRe]]), kB = "0.1.30", TRe = { key: 0 }, FRe = /* @__PURE__ */ ft({
|
|
85973
85973
|
__name: "app",
|
|
85974
85974
|
setup(e) {
|
|
85975
85975
|
const t = K(() => n.id.length === 0 || n.workspaceId.length === 0), n = ti({
|