@syntify/office 0.1.8-beta.1 → 0.1.8
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/dist/syntify-office.es.js +137 -137
- package/dist/syntify-office.umd.js +25 -25
- package/package.json +1 -1
|
@@ -18,8 +18,8 @@ const ov = /* @__PURE__ */ Tr({
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["close"],
|
|
20
20
|
setup(d, { emit: m }) {
|
|
21
|
-
const a = m, z = iv(),
|
|
22
|
-
|
|
21
|
+
const a = m, z = iv(), L = et(d.to), F = (B) => {
|
|
22
|
+
L.value = B, a("close");
|
|
23
23
|
}, w = Ar(() => z.path.split("/")[1]);
|
|
24
24
|
return (B, q) => {
|
|
25
25
|
const ie = kg("RouterLink");
|
|
@@ -32,11 +32,11 @@ const ov = /* @__PURE__ */ Tr({
|
|
|
32
32
|
A("i", {
|
|
33
33
|
class: Rr([[
|
|
34
34
|
d.icon,
|
|
35
|
-
|
|
35
|
+
L.value === `/${w.value}` ? "synt-office-link-color-primary" : ""
|
|
36
36
|
], "synt-office-link-icon"])
|
|
37
37
|
}, null, 2),
|
|
38
38
|
A("span", {
|
|
39
|
-
class: Rr([[
|
|
39
|
+
class: Rr([[L.value === `/${w.value}` ? "synt-office-link-font-bold" : ""], "synt-office-link-label"])
|
|
40
40
|
}, je(d.label), 3)
|
|
41
41
|
]),
|
|
42
42
|
_: 1
|
|
@@ -45,8 +45,8 @@ const ov = /* @__PURE__ */ Tr({
|
|
|
45
45
|
}
|
|
46
46
|
}), $r = (d, m) => {
|
|
47
47
|
const a = d.__vccOpts || d;
|
|
48
|
-
for (const [z,
|
|
49
|
-
a[z] =
|
|
48
|
+
for (const [z, L] of m)
|
|
49
|
+
a[z] = L;
|
|
50
50
|
return a;
|
|
51
51
|
}, g0 = /* @__PURE__ */ $r(ov, [["__scopeId", "data-v-1d74c6dc"]]), av = {}, lv = { class: "synt-office-layout-wrapper" };
|
|
52
52
|
function sv(d, m) {
|
|
@@ -126,7 +126,7 @@ const fv = /* @__PURE__ */ $r(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
126
126
|
emits: ["refresh"],
|
|
127
127
|
setup(d, { emit: m }) {
|
|
128
128
|
return (a, z) => {
|
|
129
|
-
const
|
|
129
|
+
const L = kg("RouterLink");
|
|
130
130
|
return J(), Ir(Er(Qg), {
|
|
131
131
|
icon: a.model.info.icon,
|
|
132
132
|
label: a.model.label
|
|
@@ -134,7 +134,7 @@ const fv = /* @__PURE__ */ $r(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
134
134
|
end: ht(() => {
|
|
135
135
|
var F, w, B;
|
|
136
136
|
return [
|
|
137
|
-
(F = a.model.excludes) != null && F.includes("create") ? dt("", !0) : (J(), Ir(
|
|
137
|
+
(F = a.model.excludes) != null && F.includes("create") ? dt("", !0) : (J(), Ir(L, {
|
|
138
138
|
key: 0,
|
|
139
139
|
to: {
|
|
140
140
|
path: `${a.model.collection.path}/new`,
|
|
@@ -193,7 +193,7 @@ const fv = /* @__PURE__ */ $r(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
193
193
|
isLoading: { type: Boolean }
|
|
194
194
|
},
|
|
195
195
|
setup(d) {
|
|
196
|
-
const m = d, a = uv(), z = Ar(() => m.model.definition.replace(":", "_").replace("/", "")),
|
|
196
|
+
const m = d, a = uv(), z = Ar(() => m.model.definition.replace(":", "_").replace("/", "")), L = et({
|
|
197
197
|
visible: !1,
|
|
198
198
|
x: 0,
|
|
199
199
|
y: 0,
|
|
@@ -207,7 +207,7 @@ const fv = /* @__PURE__ */ $r(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
207
207
|
}
|
|
208
208
|
function B(ee, M) {
|
|
209
209
|
var Z;
|
|
210
|
-
(Z = m.model.excludes) != null && Z.includes("edit") || (ee.preventDefault(),
|
|
210
|
+
(Z = m.model.excludes) != null && Z.includes("edit") || (ee.preventDefault(), L.value = {
|
|
211
211
|
visible: !0,
|
|
212
212
|
x: ee.pageX,
|
|
213
213
|
y: ee.pageY,
|
|
@@ -215,7 +215,7 @@ const fv = /* @__PURE__ */ $r(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
function q() {
|
|
218
|
-
|
|
218
|
+
L.value.visible && (L.value.visible = !1);
|
|
219
219
|
}
|
|
220
220
|
function ie(ee) {
|
|
221
221
|
const M = `${m.model.collection.path}/${ee}`;
|
|
@@ -272,29 +272,29 @@ const fv = /* @__PURE__ */ $r(av, [["render", sv], ["__scopeId", "data-v-5c72098
|
|
|
272
272
|
]),
|
|
273
273
|
Cr(Ma, { name: "fade" }, {
|
|
274
274
|
default: ht(() => [
|
|
275
|
-
|
|
275
|
+
L.value.visible ? (J(), ue("div", {
|
|
276
276
|
key: 0,
|
|
277
|
-
style: Yg({ top: `${
|
|
277
|
+
style: Yg({ top: `${L.value.y}px`, left: `${L.value.x}px` }),
|
|
278
278
|
class: "synt-open-tab"
|
|
279
279
|
}, [
|
|
280
280
|
A("ul", null, [
|
|
281
281
|
A("li", {
|
|
282
282
|
class: "synt-open-tab-option",
|
|
283
|
-
onClick: M[0] || (M[0] = (Z) => oe(
|
|
283
|
+
onClick: M[0] || (M[0] = (Z) => oe(L.value.id))
|
|
284
284
|
}, M[7] || (M[7] = [
|
|
285
285
|
A("i", { class: "synt-open-tab-option-icon fa-solid fa-up-right-and-down-left-from-center" }, null, -1),
|
|
286
286
|
A("span", null, "Open as tab", -1)
|
|
287
287
|
])),
|
|
288
288
|
A("li", {
|
|
289
289
|
class: "synt-open-tab-option",
|
|
290
|
-
onClick: M[1] || (M[1] = (Z) => ie(
|
|
290
|
+
onClick: M[1] || (M[1] = (Z) => ie(L.value.id))
|
|
291
291
|
}, M[8] || (M[8] = [
|
|
292
292
|
A("i", { class: "synt-open-tab-option-icon fa-solid fa-arrow-up-right-from-square" }, null, -1),
|
|
293
293
|
A("span", null, "Open in new tab", -1)
|
|
294
294
|
])),
|
|
295
295
|
A("li", {
|
|
296
296
|
class: "synt-open-tab-option",
|
|
297
|
-
onClick: M[2] || (M[2] = (Z) => fe(
|
|
297
|
+
onClick: M[2] || (M[2] = (Z) => fe(L.value.id))
|
|
298
298
|
}, M[9] || (M[9] = [
|
|
299
299
|
A("i", { class: "synt-open-tab-option-icon fa-solid fa-paperclip" }, null, -1),
|
|
300
300
|
A("span", null, "Copy link", -1)
|
|
@@ -374,7 +374,7 @@ var Fv = Da.exports, Ug;
|
|
|
374
374
|
function Wv() {
|
|
375
375
|
return Ug || (Ug = 1, function(d, m) {
|
|
376
376
|
(function() {
|
|
377
|
-
var a, z = "4.17.21",
|
|
377
|
+
var a, z = "4.17.21", L = 200, F = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", w = "Expected a function", B = "Invalid `variable` option passed into `_.template`", q = "__lodash_hash_undefined__", ie = 500, oe = "__lodash_placeholder__", fe = 1, ee = 2, M = 4, Z = 1, Ze = 2, V = 1, ce = 2, Ct = 4, Pe = 8, tt = 16, Fe = 32, gt = 64, Ye = 128, Mt = 256, Tn = 512, j = 30, re = "...", Dt = 800, en = 16, tn = 1, En = 2, tu = 3, pt = 1 / 0, We = 9007199254740991, In = 17976931348623157e292, jt = NaN, Ge = 4294967295, qa = Ge - 1, Va = Ge >>> 1, Ha = [
|
|
378
378
|
["ary", Ye],
|
|
379
379
|
["bind", V],
|
|
380
380
|
["bindKey", ce],
|
|
@@ -661,8 +661,8 @@ function Wv() {
|
|
|
661
661
|
return f.apply(p, h);
|
|
662
662
|
}
|
|
663
663
|
function es(f, p, h, b) {
|
|
664
|
-
for (var
|
|
665
|
-
var ae = f[
|
|
664
|
+
for (var T = -1, W = f == null ? 0 : f.length; ++T < W; ) {
|
|
665
|
+
var ae = f[T];
|
|
666
666
|
p(b, ae, h(ae), f);
|
|
667
667
|
}
|
|
668
668
|
return b;
|
|
@@ -684,9 +684,9 @@ function Wv() {
|
|
|
684
684
|
return !0;
|
|
685
685
|
}
|
|
686
686
|
function vt(f, p) {
|
|
687
|
-
for (var h = -1, b = f == null ? 0 : f.length,
|
|
687
|
+
for (var h = -1, b = f == null ? 0 : f.length, T = 0, W = []; ++h < b; ) {
|
|
688
688
|
var ae = f[h];
|
|
689
|
-
p(ae, h, f) && (W[
|
|
689
|
+
p(ae, h, f) && (W[T++] = ae);
|
|
690
690
|
}
|
|
691
691
|
return W;
|
|
692
692
|
}
|
|
@@ -695,31 +695,31 @@ function Wv() {
|
|
|
695
695
|
return !!h && Ut(f, p, 0) > -1;
|
|
696
696
|
}
|
|
697
697
|
function Xr(f, p, h) {
|
|
698
|
-
for (var b = -1,
|
|
698
|
+
for (var b = -1, T = f == null ? 0 : f.length; ++b < T; )
|
|
699
699
|
if (h(p, f[b]))
|
|
700
700
|
return !0;
|
|
701
701
|
return !1;
|
|
702
702
|
}
|
|
703
703
|
function Y(f, p) {
|
|
704
|
-
for (var h = -1, b = f == null ? 0 : f.length,
|
|
705
|
-
|
|
706
|
-
return
|
|
704
|
+
for (var h = -1, b = f == null ? 0 : f.length, T = Array(b); ++h < b; )
|
|
705
|
+
T[h] = p(f[h], h, f);
|
|
706
|
+
return T;
|
|
707
707
|
}
|
|
708
708
|
function _t(f, p) {
|
|
709
|
-
for (var h = -1, b = p.length,
|
|
710
|
-
f[
|
|
709
|
+
for (var h = -1, b = p.length, T = f.length; ++h < b; )
|
|
710
|
+
f[T + h] = p[h];
|
|
711
711
|
return f;
|
|
712
712
|
}
|
|
713
713
|
function Qr(f, p, h, b) {
|
|
714
|
-
var
|
|
715
|
-
for (b && W && (h = f[++
|
|
716
|
-
h = p(h, f[
|
|
714
|
+
var T = -1, W = f == null ? 0 : f.length;
|
|
715
|
+
for (b && W && (h = f[++T]); ++T < W; )
|
|
716
|
+
h = p(h, f[T], T, f);
|
|
717
717
|
return h;
|
|
718
718
|
}
|
|
719
719
|
function ns(f, p, h, b) {
|
|
720
|
-
var
|
|
721
|
-
for (b &&
|
|
722
|
-
h = p(h, f[
|
|
720
|
+
var T = f == null ? 0 : f.length;
|
|
721
|
+
for (b && T && (h = f[--T]); T--; )
|
|
722
|
+
h = p(h, f[T], T, f);
|
|
723
723
|
return h;
|
|
724
724
|
}
|
|
725
725
|
function jr(f, p) {
|
|
@@ -737,13 +737,13 @@ function Wv() {
|
|
|
737
737
|
}
|
|
738
738
|
function Mu(f, p, h) {
|
|
739
739
|
var b;
|
|
740
|
-
return h(f, function(
|
|
741
|
-
if (p(
|
|
740
|
+
return h(f, function(T, W, ae) {
|
|
741
|
+
if (p(T, W, ae))
|
|
742
742
|
return b = W, !1;
|
|
743
743
|
}), b;
|
|
744
744
|
}
|
|
745
745
|
function Wn(f, p, h, b) {
|
|
746
|
-
for (var
|
|
746
|
+
for (var T = f.length, W = h + (b ? 1 : -1); b ? W-- : ++W < T; )
|
|
747
747
|
if (p(f[W], W, f))
|
|
748
748
|
return W;
|
|
749
749
|
return -1;
|
|
@@ -752,9 +752,9 @@ function Wv() {
|
|
|
752
752
|
return p === p ? _s(f, p, h) : Wn(f, Pu, h);
|
|
753
753
|
}
|
|
754
754
|
function os(f, p, h, b) {
|
|
755
|
-
for (var
|
|
756
|
-
if (b(f[
|
|
757
|
-
return
|
|
755
|
+
for (var T = h - 1, W = f.length; ++T < W; )
|
|
756
|
+
if (b(f[T], p))
|
|
757
|
+
return T;
|
|
758
758
|
return -1;
|
|
759
759
|
}
|
|
760
760
|
function Pu(f) {
|
|
@@ -774,8 +774,8 @@ function Wv() {
|
|
|
774
774
|
return f == null ? a : f[p];
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
function Wu(f, p, h, b,
|
|
778
|
-
return
|
|
777
|
+
function Wu(f, p, h, b, T) {
|
|
778
|
+
return T(f, function(W, ae, H) {
|
|
779
779
|
h = b ? (b = !1, W) : p(h, W, ae, H);
|
|
780
780
|
}), h;
|
|
781
781
|
}
|
|
@@ -786,7 +786,7 @@ function Wv() {
|
|
|
786
786
|
return f;
|
|
787
787
|
}
|
|
788
788
|
function ni(f, p) {
|
|
789
|
-
for (var h, b = -1,
|
|
789
|
+
for (var h, b = -1, T = f.length; ++b < T; ) {
|
|
790
790
|
var W = p(f[b]);
|
|
791
791
|
W !== a && (h = h === a ? W : h + W);
|
|
792
792
|
}
|
|
@@ -853,8 +853,8 @@ function Wv() {
|
|
|
853
853
|
}
|
|
854
854
|
function ui(f) {
|
|
855
855
|
var p = -1, h = Array(f.size);
|
|
856
|
-
return f.forEach(function(b,
|
|
857
|
-
h[++p] = [
|
|
856
|
+
return f.forEach(function(b, T) {
|
|
857
|
+
h[++p] = [T, b];
|
|
858
858
|
}), h;
|
|
859
859
|
}
|
|
860
860
|
function qu(f, p) {
|
|
@@ -863,9 +863,9 @@ function Wv() {
|
|
|
863
863
|
};
|
|
864
864
|
}
|
|
865
865
|
function yt(f, p) {
|
|
866
|
-
for (var h = -1, b = f.length,
|
|
866
|
+
for (var h = -1, b = f.length, T = 0, W = []; ++h < b; ) {
|
|
867
867
|
var ae = f[h];
|
|
868
|
-
(ae === p || ae === oe) && (f[h] = oe, W[
|
|
868
|
+
(ae === p || ae === oe) && (f[h] = oe, W[T++] = h);
|
|
869
869
|
}
|
|
870
870
|
return W;
|
|
871
871
|
}
|
|
@@ -882,7 +882,7 @@ function Wv() {
|
|
|
882
882
|
}), h;
|
|
883
883
|
}
|
|
884
884
|
function _s(f, p, h) {
|
|
885
|
-
for (var b = h - 1,
|
|
885
|
+
for (var b = h - 1, T = f.length; ++b < T; )
|
|
886
886
|
if (f[b] === p)
|
|
887
887
|
return b;
|
|
888
888
|
return -1;
|
|
@@ -918,7 +918,7 @@ function Wv() {
|
|
|
918
918
|
}
|
|
919
919
|
var As = function f(p) {
|
|
920
920
|
p = p == null ? he : qt.defaults(he.Object(), p, qt.pick(he, Hl));
|
|
921
|
-
var h = p.Array, b = p.Date,
|
|
921
|
+
var h = p.Array, b = p.Date, T = p.Error, W = p.Function, ae = p.Math, H = p.Object, oi = p.RegExp, Os = p.String, Re = p.TypeError, Nn = h.prototype, Cs = W.prototype, Vt = H.prototype, zn = p["__core-js_shared__"], qn = Cs.toString, N = Vt.hasOwnProperty, Ss = 0, Hu = function() {
|
|
922
922
|
var e = /[^.]+$/.exec(zn && zn.keys && zn.keys.IE_PROTO || "");
|
|
923
923
|
return e ? "Symbol(src)_1." + e : "";
|
|
924
924
|
}(), Vn = Vt.toString, Ls = qn.call(H), Ts = he._, Es = oi(
|
|
@@ -1162,7 +1162,7 @@ function Wv() {
|
|
|
1162
1162
|
var n = this.__data__;
|
|
1163
1163
|
if (n instanceof rt) {
|
|
1164
1164
|
var r = n.__data__;
|
|
1165
|
-
if (!hn || r.length <
|
|
1165
|
+
if (!hn || r.length < L - 1)
|
|
1166
1166
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
1167
1167
|
n = this.__data__ = new it(r);
|
|
1168
1168
|
}
|
|
@@ -1294,7 +1294,7 @@ function Wv() {
|
|
|
1294
1294
|
var i = -1, o = Fn, l = !0, s = e.length, c = [], g = t.length;
|
|
1295
1295
|
if (!s)
|
|
1296
1296
|
return c;
|
|
1297
|
-
n && (t = Y(t, Oe(n))), r ? (o = Xr, l = !1) : t.length >=
|
|
1297
|
+
n && (t = Y(t, Oe(n))), r ? (o = Xr, l = !1) : t.length >= L && (o = fn, l = !1, t = new Et(t));
|
|
1298
1298
|
e:
|
|
1299
1299
|
for (; ++i < s; ) {
|
|
1300
1300
|
var v = e[i], _ = n == null ? v : n(v);
|
|
@@ -1726,7 +1726,7 @@ function Wv() {
|
|
|
1726
1726
|
var r = -1, i = Fn, o = e.length, l = !0, s = [], c = s;
|
|
1727
1727
|
if (n)
|
|
1728
1728
|
l = !1, i = Xr;
|
|
1729
|
-
else if (o >=
|
|
1729
|
+
else if (o >= L) {
|
|
1730
1730
|
var g = t ? null : ec(e);
|
|
1731
1731
|
if (g)
|
|
1732
1732
|
return Un(g);
|
|
@@ -3324,7 +3324,7 @@ function Wv() {
|
|
|
3324
3324
|
}
|
|
3325
3325
|
function Ip(e) {
|
|
3326
3326
|
if (pc(e))
|
|
3327
|
-
throw new
|
|
3327
|
+
throw new T(F);
|
|
3328
3328
|
return so(e);
|
|
3329
3329
|
}
|
|
3330
3330
|
function Rp(e) {
|
|
@@ -3688,7 +3688,7 @@ __p += '`), P && (_ += `' +
|
|
|
3688
3688
|
}
|
|
3689
3689
|
`;
|
|
3690
3690
|
else if (dl.test(C))
|
|
3691
|
-
throw new
|
|
3691
|
+
throw new T(B);
|
|
3692
3692
|
_ = (c ? _.replace(Qa, "") : _).replace(ja, "$1").replace(el, "$1;"), _ = "function(" + (C || "obj") + `) {
|
|
3693
3693
|
` + (C ? "" : `obj || (obj = {});
|
|
3694
3694
|
`) + "var __t, __p = ''" + (s ? ", __e = _.escape" : "") + (c ? `, __j = Array.prototype.join;
|
|
@@ -3779,7 +3779,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
3779
3779
|
try {
|
|
3780
3780
|
return Ae(e, a, t);
|
|
3781
3781
|
} catch (n) {
|
|
3782
|
-
return qi(n) ? n : new
|
|
3782
|
+
return qi(n) ? n : new T(n);
|
|
3783
3783
|
}
|
|
3784
3784
|
}), Gd = at(function(e, t) {
|
|
3785
3785
|
return Ie(t, function(n) {
|
|
@@ -4040,13 +4040,13 @@ const Nv = /* @__PURE__ */ Pv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4040
4040
|
setup(d) {
|
|
4041
4041
|
const m = et(null), a = et([]), z = (w, B) => {
|
|
4042
4042
|
a.value.push({ title: w, setActive: B }), m.value === null && (m.value = w, B(!0));
|
|
4043
|
-
},
|
|
4043
|
+
}, L = (w) => {
|
|
4044
4044
|
var B;
|
|
4045
4045
|
a.value = a.value.filter((q) => q.title !== w), m.value === w && (m.value = ((B = a.value[0]) == null ? void 0 : B.title) || null, a.value.length > 0 ? (m.value = a.value[0].title, a.value.forEach((q) => q.setActive(q.title === m.value))) : m.value = null);
|
|
4046
4046
|
}, F = (w) => {
|
|
4047
4047
|
m.value = w, a.value.forEach((B) => B.setActive(B.title === w));
|
|
4048
4048
|
};
|
|
4049
|
-
return Mg("registerTab", z), Mg("unregisterTab",
|
|
4049
|
+
return Mg("registerTab", z), Mg("unregisterTab", L), (w, B) => (J(), ue(Or, null, [
|
|
4050
4050
|
A("div", zv, [
|
|
4051
4051
|
(J(!0), ue(Or, null, eu(a.value, (q) => (J(), ue("button", {
|
|
4052
4052
|
key: q.title,
|
|
@@ -4071,8 +4071,8 @@ const Nv = /* @__PURE__ */ Pv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4071
4071
|
const m = et(!1), a = Pg(
|
|
4072
4072
|
"registerTab"
|
|
4073
4073
|
), z = Pg("unregisterTab");
|
|
4074
|
-
return za(() => a == null ? void 0 : a(d.title, (
|
|
4075
|
-
Ue(
|
|
4074
|
+
return za(() => a == null ? void 0 : a(d.title, (L) => m.value = L)), ev(() => z == null ? void 0 : z(d.title)), (L, F) => Sr((J(), ue("div", Kv, [
|
|
4075
|
+
Ue(L.$slots, "default", {}, void 0, !0)
|
|
4076
4076
|
], 512)), [
|
|
4077
4077
|
[Pa, m.value]
|
|
4078
4078
|
]);
|
|
@@ -4092,9 +4092,9 @@ const Nv = /* @__PURE__ */ Pv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4092
4092
|
},
|
|
4093
4093
|
emits: ["delete", "duplicate"],
|
|
4094
4094
|
setup(d, { emit: m }) {
|
|
4095
|
-
const a = d, z = m,
|
|
4095
|
+
const a = d, z = m, L = et(!1), F = et({}), w = et(null), B = et(null), q = et(null), ie = et(!1), oe = async () => {
|
|
4096
4096
|
var V, ce;
|
|
4097
|
-
if (!((V = a.model.excludes) != null && V.includes("delete") && ((ce = a.model.excludes) != null && ce.includes("duplicate"))) && (
|
|
4097
|
+
if (!((V = a.model.excludes) != null && V.includes("delete") && ((ce = a.model.excludes) != null && ce.includes("duplicate"))) && (L.value = !L.value, await Jg(), L.value && q.value && B.value)) {
|
|
4098
4098
|
const Ct = q.value.getBoundingClientRect();
|
|
4099
4099
|
F.value = {
|
|
4100
4100
|
top: `${Ct.height}px`,
|
|
@@ -4103,13 +4103,13 @@ const Nv = /* @__PURE__ */ Pv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4103
4103
|
};
|
|
4104
4104
|
}
|
|
4105
4105
|
}, fe = (V) => {
|
|
4106
|
-
|
|
4106
|
+
L.value && w.value && !w.value.contains(V.target) && (L.value = !1);
|
|
4107
4107
|
}, ee = async () => {
|
|
4108
|
-
await z("duplicate"),
|
|
4108
|
+
await z("duplicate"), L.value = !1;
|
|
4109
4109
|
}, M = async () => {
|
|
4110
4110
|
ie.value = !1;
|
|
4111
4111
|
}, Z = async () => {
|
|
4112
|
-
|
|
4112
|
+
L.value = !1, ie.value = !0;
|
|
4113
4113
|
}, Ze = async () => {
|
|
4114
4114
|
await z("delete"), ie.value = !1;
|
|
4115
4115
|
};
|
|
@@ -4155,7 +4155,7 @@ const Nv = /* @__PURE__ */ Pv(Uv), zv = { class: "synt-office-tabs synt-no-scrol
|
|
|
4155
4155
|
default: ht(() => {
|
|
4156
4156
|
var Pe, tt, Fe, gt;
|
|
4157
4157
|
return [
|
|
4158
|
-
|
|
4158
|
+
L.value ? (J(), ue("div", {
|
|
4159
4159
|
key: 0,
|
|
4160
4160
|
ref_key: "dropdownRef",
|
|
4161
4161
|
ref: B,
|
|
@@ -4261,10 +4261,10 @@ const l_ = {
|
|
|
4261
4261
|
var d;
|
|
4262
4262
|
const m = ((d = this.$refs.dropdownMenu) == null ? void 0 : d.children[this.typeAheadPointer]) || !1;
|
|
4263
4263
|
if (m) {
|
|
4264
|
-
const a = this.getDropdownViewport(), { top: z, bottom:
|
|
4264
|
+
const a = this.getDropdownViewport(), { top: z, bottom: L, height: F } = m.getBoundingClientRect();
|
|
4265
4265
|
if (z < a.top)
|
|
4266
4266
|
return this.$refs.dropdownMenu.scrollTop = m.offsetTop;
|
|
4267
|
-
if (
|
|
4267
|
+
if (L > a.bottom)
|
|
4268
4268
|
return this.$refs.dropdownMenu.scrollTop = m.offsetTop - (a.height - F);
|
|
4269
4269
|
}
|
|
4270
4270
|
},
|
|
@@ -4347,8 +4347,8 @@ const l_ = {
|
|
|
4347
4347
|
}
|
|
4348
4348
|
}, Dg = (d, m) => {
|
|
4349
4349
|
const a = d.__vccOpts || d;
|
|
4350
|
-
for (const [z,
|
|
4351
|
-
a[z] =
|
|
4350
|
+
for (const [z, L] of m)
|
|
4351
|
+
a[z] = L;
|
|
4352
4352
|
return a;
|
|
4353
4353
|
}, c_ = {}, h_ = {
|
|
4354
4354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4379,13 +4379,13 @@ const x_ = /* @__PURE__ */ Dg(__, [["render", b_]]), Vg = {
|
|
|
4379
4379
|
const {
|
|
4380
4380
|
height: a,
|
|
4381
4381
|
top: z,
|
|
4382
|
-
left:
|
|
4382
|
+
left: L,
|
|
4383
4383
|
width: F
|
|
4384
4384
|
} = m.$refs.toggle.getBoundingClientRect();
|
|
4385
4385
|
let w = window.scrollX || window.pageXOffset, B = window.scrollY || window.pageYOffset;
|
|
4386
4386
|
d.unbindPosition = m.calculatePosition(d, m, {
|
|
4387
4387
|
width: F + "px",
|
|
4388
|
-
left: w +
|
|
4388
|
+
left: w + L + "px",
|
|
4389
4389
|
top: B + z + a + "px"
|
|
4390
4390
|
}), document.body.appendChild(d);
|
|
4391
4391
|
}
|
|
@@ -4598,8 +4598,8 @@ https://vue-select.org/api/props.html#getoptionkey`, d, m);
|
|
|
4598
4598
|
},
|
|
4599
4599
|
calculatePosition: {
|
|
4600
4600
|
type: Function,
|
|
4601
|
-
default(d, m, { width: a, top: z, left:
|
|
4602
|
-
d.style.top = z, d.style.left =
|
|
4601
|
+
default(d, m, { width: a, top: z, left: L }) {
|
|
4602
|
+
d.style.top = z, d.style.left = L, d.style.width = a;
|
|
4603
4603
|
}
|
|
4604
4604
|
},
|
|
4605
4605
|
dropdownShouldOpen: {
|
|
@@ -4849,14 +4849,14 @@ https://vue-select.org/api/props.html#getoptionkey`, d, m);
|
|
|
4849
4849
|
this.mousedown = !1;
|
|
4850
4850
|
},
|
|
4851
4851
|
onSearchKeyDown(d) {
|
|
4852
|
-
const m = (
|
|
4853
|
-
8: (
|
|
4854
|
-
9: (
|
|
4855
|
-
27: (
|
|
4856
|
-
38: (
|
|
4857
|
-
40: (
|
|
4852
|
+
const m = (L) => (L.preventDefault(), !this.isComposing && this.typeAheadSelect()), a = {
|
|
4853
|
+
8: (L) => this.maybeDeleteValue(),
|
|
4854
|
+
9: (L) => this.onTab(),
|
|
4855
|
+
27: (L) => this.onEscape(),
|
|
4856
|
+
38: (L) => (L.preventDefault(), this.typeAheadUp()),
|
|
4857
|
+
40: (L) => (L.preventDefault(), this.typeAheadDown())
|
|
4858
4858
|
};
|
|
4859
|
-
this.selectOnKeyCodes.forEach((
|
|
4859
|
+
this.selectOnKeyCodes.forEach((L) => a[L] = m);
|
|
4860
4860
|
const z = this.mapKeydown(a, this);
|
|
4861
4861
|
if (typeof z[d.keyCode] == "function")
|
|
4862
4862
|
return z[d.keyCode](d);
|
|
@@ -4872,7 +4872,7 @@ https://vue-select.org/api/props.html#getoptionkey`, d, m);
|
|
|
4872
4872
|
key: 0,
|
|
4873
4873
|
class: "vs__no-options"
|
|
4874
4874
|
}, F_ = /* @__PURE__ */ Lr(" Sorry, no matching options. "), W_ = ["id"];
|
|
4875
|
-
function U_(d, m, a, z,
|
|
4875
|
+
function U_(d, m, a, z, L, F) {
|
|
4876
4876
|
const w = tv("append-to-body");
|
|
4877
4877
|
return J(), ue("div", {
|
|
4878
4878
|
dir: a.dir,
|
|
@@ -4906,7 +4906,7 @@ function U_(d, m, a, z, T, F) {
|
|
|
4906
4906
|
a.multiple ? (J(), ue("button", {
|
|
4907
4907
|
key: 0,
|
|
4908
4908
|
ref_for: !0,
|
|
4909
|
-
ref: (ie) =>
|
|
4909
|
+
ref: (ie) => L.deselectButtons[q] = ie,
|
|
4910
4910
|
disabled: a.disabled,
|
|
4911
4911
|
type: "button",
|
|
4912
4912
|
class: "vs__deselect",
|
|
@@ -5011,7 +5011,7 @@ var z_ = Na.exports, Hg;
|
|
|
5011
5011
|
function q_() {
|
|
5012
5012
|
return Hg || (Hg = 1, function(d, m) {
|
|
5013
5013
|
(function() {
|
|
5014
|
-
var a, z = "4.17.21",
|
|
5014
|
+
var a, z = "4.17.21", L = 200, F = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", w = "Expected a function", B = "Invalid `variable` option passed into `_.template`", q = "__lodash_hash_undefined__", ie = 500, oe = "__lodash_placeholder__", fe = 1, ee = 2, M = 4, Z = 1, Ze = 2, V = 1, ce = 2, Ct = 4, Pe = 8, tt = 16, Fe = 32, gt = 64, Ye = 128, Mt = 256, Tn = 512, j = 30, re = "...", Dt = 800, en = 16, tn = 1, En = 2, tu = 3, pt = 1 / 0, We = 9007199254740991, In = 17976931348623157e292, jt = NaN, Ge = 4294967295, qa = Ge - 1, Va = Ge >>> 1, Ha = [
|
|
5015
5015
|
["ary", Ye],
|
|
5016
5016
|
["bind", V],
|
|
5017
5017
|
["bindKey", ce],
|
|
@@ -5298,8 +5298,8 @@ function q_() {
|
|
|
5298
5298
|
return f.apply(p, h);
|
|
5299
5299
|
}
|
|
5300
5300
|
function es(f, p, h, b) {
|
|
5301
|
-
for (var
|
|
5302
|
-
var ae = f[
|
|
5301
|
+
for (var T = -1, W = f == null ? 0 : f.length; ++T < W; ) {
|
|
5302
|
+
var ae = f[T];
|
|
5303
5303
|
p(b, ae, h(ae), f);
|
|
5304
5304
|
}
|
|
5305
5305
|
return b;
|
|
@@ -5321,9 +5321,9 @@ function q_() {
|
|
|
5321
5321
|
return !0;
|
|
5322
5322
|
}
|
|
5323
5323
|
function vt(f, p) {
|
|
5324
|
-
for (var h = -1, b = f == null ? 0 : f.length,
|
|
5324
|
+
for (var h = -1, b = f == null ? 0 : f.length, T = 0, W = []; ++h < b; ) {
|
|
5325
5325
|
var ae = f[h];
|
|
5326
|
-
p(ae, h, f) && (W[
|
|
5326
|
+
p(ae, h, f) && (W[T++] = ae);
|
|
5327
5327
|
}
|
|
5328
5328
|
return W;
|
|
5329
5329
|
}
|
|
@@ -5332,31 +5332,31 @@ function q_() {
|
|
|
5332
5332
|
return !!h && Ut(f, p, 0) > -1;
|
|
5333
5333
|
}
|
|
5334
5334
|
function Xr(f, p, h) {
|
|
5335
|
-
for (var b = -1,
|
|
5335
|
+
for (var b = -1, T = f == null ? 0 : f.length; ++b < T; )
|
|
5336
5336
|
if (h(p, f[b]))
|
|
5337
5337
|
return !0;
|
|
5338
5338
|
return !1;
|
|
5339
5339
|
}
|
|
5340
5340
|
function Y(f, p) {
|
|
5341
|
-
for (var h = -1, b = f == null ? 0 : f.length,
|
|
5342
|
-
|
|
5343
|
-
return
|
|
5341
|
+
for (var h = -1, b = f == null ? 0 : f.length, T = Array(b); ++h < b; )
|
|
5342
|
+
T[h] = p(f[h], h, f);
|
|
5343
|
+
return T;
|
|
5344
5344
|
}
|
|
5345
5345
|
function _t(f, p) {
|
|
5346
|
-
for (var h = -1, b = p.length,
|
|
5347
|
-
f[
|
|
5346
|
+
for (var h = -1, b = p.length, T = f.length; ++h < b; )
|
|
5347
|
+
f[T + h] = p[h];
|
|
5348
5348
|
return f;
|
|
5349
5349
|
}
|
|
5350
5350
|
function Qr(f, p, h, b) {
|
|
5351
|
-
var
|
|
5352
|
-
for (b && W && (h = f[++
|
|
5353
|
-
h = p(h, f[
|
|
5351
|
+
var T = -1, W = f == null ? 0 : f.length;
|
|
5352
|
+
for (b && W && (h = f[++T]); ++T < W; )
|
|
5353
|
+
h = p(h, f[T], T, f);
|
|
5354
5354
|
return h;
|
|
5355
5355
|
}
|
|
5356
5356
|
function ns(f, p, h, b) {
|
|
5357
|
-
var
|
|
5358
|
-
for (b &&
|
|
5359
|
-
h = p(h, f[
|
|
5357
|
+
var T = f == null ? 0 : f.length;
|
|
5358
|
+
for (b && T && (h = f[--T]); T--; )
|
|
5359
|
+
h = p(h, f[T], T, f);
|
|
5360
5360
|
return h;
|
|
5361
5361
|
}
|
|
5362
5362
|
function jr(f, p) {
|
|
@@ -5374,13 +5374,13 @@ function q_() {
|
|
|
5374
5374
|
}
|
|
5375
5375
|
function Mu(f, p, h) {
|
|
5376
5376
|
var b;
|
|
5377
|
-
return h(f, function(
|
|
5378
|
-
if (p(
|
|
5377
|
+
return h(f, function(T, W, ae) {
|
|
5378
|
+
if (p(T, W, ae))
|
|
5379
5379
|
return b = W, !1;
|
|
5380
5380
|
}), b;
|
|
5381
5381
|
}
|
|
5382
5382
|
function Wn(f, p, h, b) {
|
|
5383
|
-
for (var
|
|
5383
|
+
for (var T = f.length, W = h + (b ? 1 : -1); b ? W-- : ++W < T; )
|
|
5384
5384
|
if (p(f[W], W, f))
|
|
5385
5385
|
return W;
|
|
5386
5386
|
return -1;
|
|
@@ -5389,9 +5389,9 @@ function q_() {
|
|
|
5389
5389
|
return p === p ? _s(f, p, h) : Wn(f, Pu, h);
|
|
5390
5390
|
}
|
|
5391
5391
|
function os(f, p, h, b) {
|
|
5392
|
-
for (var
|
|
5393
|
-
if (b(f[
|
|
5394
|
-
return
|
|
5392
|
+
for (var T = h - 1, W = f.length; ++T < W; )
|
|
5393
|
+
if (b(f[T], p))
|
|
5394
|
+
return T;
|
|
5395
5395
|
return -1;
|
|
5396
5396
|
}
|
|
5397
5397
|
function Pu(f) {
|
|
@@ -5411,8 +5411,8 @@ function q_() {
|
|
|
5411
5411
|
return f == null ? a : f[p];
|
|
5412
5412
|
};
|
|
5413
5413
|
}
|
|
5414
|
-
function Wu(f, p, h, b,
|
|
5415
|
-
return
|
|
5414
|
+
function Wu(f, p, h, b, T) {
|
|
5415
|
+
return T(f, function(W, ae, H) {
|
|
5416
5416
|
h = b ? (b = !1, W) : p(h, W, ae, H);
|
|
5417
5417
|
}), h;
|
|
5418
5418
|
}
|
|
@@ -5423,7 +5423,7 @@ function q_() {
|
|
|
5423
5423
|
return f;
|
|
5424
5424
|
}
|
|
5425
5425
|
function ni(f, p) {
|
|
5426
|
-
for (var h, b = -1,
|
|
5426
|
+
for (var h, b = -1, T = f.length; ++b < T; ) {
|
|
5427
5427
|
var W = p(f[b]);
|
|
5428
5428
|
W !== a && (h = h === a ? W : h + W);
|
|
5429
5429
|
}
|
|
@@ -5490,8 +5490,8 @@ function q_() {
|
|
|
5490
5490
|
}
|
|
5491
5491
|
function ui(f) {
|
|
5492
5492
|
var p = -1, h = Array(f.size);
|
|
5493
|
-
return f.forEach(function(b,
|
|
5494
|
-
h[++p] = [
|
|
5493
|
+
return f.forEach(function(b, T) {
|
|
5494
|
+
h[++p] = [T, b];
|
|
5495
5495
|
}), h;
|
|
5496
5496
|
}
|
|
5497
5497
|
function qu(f, p) {
|
|
@@ -5500,9 +5500,9 @@ function q_() {
|
|
|
5500
5500
|
};
|
|
5501
5501
|
}
|
|
5502
5502
|
function yt(f, p) {
|
|
5503
|
-
for (var h = -1, b = f.length,
|
|
5503
|
+
for (var h = -1, b = f.length, T = 0, W = []; ++h < b; ) {
|
|
5504
5504
|
var ae = f[h];
|
|
5505
|
-
(ae === p || ae === oe) && (f[h] = oe, W[
|
|
5505
|
+
(ae === p || ae === oe) && (f[h] = oe, W[T++] = h);
|
|
5506
5506
|
}
|
|
5507
5507
|
return W;
|
|
5508
5508
|
}
|
|
@@ -5519,7 +5519,7 @@ function q_() {
|
|
|
5519
5519
|
}), h;
|
|
5520
5520
|
}
|
|
5521
5521
|
function _s(f, p, h) {
|
|
5522
|
-
for (var b = h - 1,
|
|
5522
|
+
for (var b = h - 1, T = f.length; ++b < T; )
|
|
5523
5523
|
if (f[b] === p)
|
|
5524
5524
|
return b;
|
|
5525
5525
|
return -1;
|
|
@@ -5555,7 +5555,7 @@ function q_() {
|
|
|
5555
5555
|
}
|
|
5556
5556
|
var As = function f(p) {
|
|
5557
5557
|
p = p == null ? he : qt.defaults(he.Object(), p, qt.pick(he, Hl));
|
|
5558
|
-
var h = p.Array, b = p.Date,
|
|
5558
|
+
var h = p.Array, b = p.Date, T = p.Error, W = p.Function, ae = p.Math, H = p.Object, oi = p.RegExp, Os = p.String, Re = p.TypeError, Nn = h.prototype, Cs = W.prototype, Vt = H.prototype, zn = p["__core-js_shared__"], qn = Cs.toString, N = Vt.hasOwnProperty, Ss = 0, Hu = function() {
|
|
5559
5559
|
var e = /[^.]+$/.exec(zn && zn.keys && zn.keys.IE_PROTO || "");
|
|
5560
5560
|
return e ? "Symbol(src)_1." + e : "";
|
|
5561
5561
|
}(), Vn = Vt.toString, Ls = qn.call(H), Ts = he._, Es = oi(
|
|
@@ -5799,7 +5799,7 @@ function q_() {
|
|
|
5799
5799
|
var n = this.__data__;
|
|
5800
5800
|
if (n instanceof rt) {
|
|
5801
5801
|
var r = n.__data__;
|
|
5802
|
-
if (!hn || r.length <
|
|
5802
|
+
if (!hn || r.length < L - 1)
|
|
5803
5803
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
5804
5804
|
n = this.__data__ = new it(r);
|
|
5805
5805
|
}
|
|
@@ -5931,7 +5931,7 @@ function q_() {
|
|
|
5931
5931
|
var i = -1, o = Fn, l = !0, s = e.length, c = [], g = t.length;
|
|
5932
5932
|
if (!s)
|
|
5933
5933
|
return c;
|
|
5934
|
-
n && (t = Y(t, Oe(n))), r ? (o = Xr, l = !1) : t.length >=
|
|
5934
|
+
n && (t = Y(t, Oe(n))), r ? (o = Xr, l = !1) : t.length >= L && (o = fn, l = !1, t = new Et(t));
|
|
5935
5935
|
e:
|
|
5936
5936
|
for (; ++i < s; ) {
|
|
5937
5937
|
var v = e[i], _ = n == null ? v : n(v);
|
|
@@ -6363,7 +6363,7 @@ function q_() {
|
|
|
6363
6363
|
var r = -1, i = Fn, o = e.length, l = !0, s = [], c = s;
|
|
6364
6364
|
if (n)
|
|
6365
6365
|
l = !1, i = Xr;
|
|
6366
|
-
else if (o >=
|
|
6366
|
+
else if (o >= L) {
|
|
6367
6367
|
var g = t ? null : ec(e);
|
|
6368
6368
|
if (g)
|
|
6369
6369
|
return Un(g);
|
|
@@ -7961,7 +7961,7 @@ function q_() {
|
|
|
7961
7961
|
}
|
|
7962
7962
|
function Ip(e) {
|
|
7963
7963
|
if (pc(e))
|
|
7964
|
-
throw new
|
|
7964
|
+
throw new T(F);
|
|
7965
7965
|
return so(e);
|
|
7966
7966
|
}
|
|
7967
7967
|
function Rp(e) {
|
|
@@ -8325,7 +8325,7 @@ __p += '`), P && (_ += `' +
|
|
|
8325
8325
|
}
|
|
8326
8326
|
`;
|
|
8327
8327
|
else if (dl.test(C))
|
|
8328
|
-
throw new
|
|
8328
|
+
throw new T(B);
|
|
8329
8329
|
_ = (c ? _.replace(Qa, "") : _).replace(ja, "$1").replace(el, "$1;"), _ = "function(" + (C || "obj") + `) {
|
|
8330
8330
|
` + (C ? "" : `obj || (obj = {});
|
|
8331
8331
|
`) + "var __t, __p = ''" + (s ? ", __e = _.escape" : "") + (c ? `, __j = Array.prototype.join;
|
|
@@ -8416,7 +8416,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
8416
8416
|
try {
|
|
8417
8417
|
return Ae(e, a, t);
|
|
8418
8418
|
} catch (n) {
|
|
8419
|
-
return qi(n) ? n : new
|
|
8419
|
+
return qi(n) ? n : new T(n);
|
|
8420
8420
|
}
|
|
8421
8421
|
}), Gd = at(function(e, t) {
|
|
8422
8422
|
return Ie(t, function(n) {
|
|
@@ -8775,7 +8775,7 @@ function H_() {
|
|
|
8775
8775
|
V.stopPropagation(), this.options.onClick();
|
|
8776
8776
|
}).bind(this)
|
|
8777
8777
|
), typeof this.options.offset == "object") {
|
|
8778
|
-
var ee =
|
|
8778
|
+
var ee = L("x", this.options), M = L("y", this.options), Z = this.options.position == "left" ? ee : "-" + ee, Ze = this.options.gravity == "toastify-top" ? M : "-" + M;
|
|
8779
8779
|
w.style.transform = "translate(" + Z + "," + Ze + ")";
|
|
8780
8780
|
}
|
|
8781
8781
|
return w;
|
|
@@ -8825,7 +8825,7 @@ function H_() {
|
|
|
8825
8825
|
}
|
|
8826
8826
|
return this;
|
|
8827
8827
|
};
|
|
8828
|
-
function
|
|
8828
|
+
function L(w, B) {
|
|
8829
8829
|
return B.offset[w] ? isNaN(B.offset[w]) ? B.offset[w] : B.offset[w] + "px" : "0px";
|
|
8830
8830
|
}
|
|
8831
8831
|
function F(w, B) {
|
|
@@ -8837,7 +8837,7 @@ function H_() {
|
|
|
8837
8837
|
}
|
|
8838
8838
|
H_();
|
|
8839
8839
|
function K_(d) {
|
|
8840
|
-
const [m, a, z] = d.relation.definition.split(":"),
|
|
8840
|
+
const [m, a, z] = d.relation.definition.split(":"), L = d.relation.api[a], F = et(!1), w = et([]), B = et({
|
|
8841
8841
|
limit: 99999,
|
|
8842
8842
|
page: 1
|
|
8843
8843
|
});
|
|
@@ -8853,7 +8853,7 @@ function K_(d) {
|
|
|
8853
8853
|
page: B.value.page,
|
|
8854
8854
|
filter: JSON.stringify(q.query)
|
|
8855
8855
|
}));
|
|
8856
|
-
await
|
|
8856
|
+
await L.get(`/api/${z}`, {
|
|
8857
8857
|
params: ie.value
|
|
8858
8858
|
}).then((oe) => oe.data).then((oe) => {
|
|
8859
8859
|
oe.code == 200 && (w.value = oe == null ? void 0 : oe.data);
|
|
@@ -8882,7 +8882,7 @@ const G_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8882
8882
|
}),
|
|
8883
8883
|
emits: /* @__PURE__ */ Wg(["update:selected"], ["update:modelValue"]),
|
|
8884
8884
|
setup(d, { emit: m }) {
|
|
8885
|
-
const a = d, z = m,
|
|
8885
|
+
const a = d, z = m, L = rv(d, "modelValue"), { options: F, isLoading: w, fetchData: B } = K_({
|
|
8886
8886
|
relation: a.fields.relation
|
|
8887
8887
|
}), q = et(""), ie = et(99999), oe = et(null), fe = et(null), ee = et(!1), M = Ar(() => {
|
|
8888
8888
|
var j, re;
|
|
@@ -8897,7 +8897,7 @@ const G_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8897
8897
|
);
|
|
8898
8898
|
}), Ze = Ar(() => Z.value.slice(0, ie.value)), V = Ar(() => Ze.value.length < Z.value.length), ce = Ar(() => {
|
|
8899
8899
|
var j;
|
|
8900
|
-
return ((j = F.value) == null ? void 0 : j.find((re) => re.id ===
|
|
8900
|
+
return ((j = F.value) == null ? void 0 : j.find((re) => re.id === L.value)) || null;
|
|
8901
8901
|
}), Ct = et([]);
|
|
8902
8902
|
Fa(
|
|
8903
8903
|
() => a.query,
|
|
@@ -8919,24 +8919,24 @@ const G_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8919
8919
|
ie.value += 10, await Jg(), Dt.scrollTop = en;
|
|
8920
8920
|
}
|
|
8921
8921
|
}, tt = async () => {
|
|
8922
|
-
await B({ query: Ct.value });
|
|
8922
|
+
F.value.length && !Array.isArray(L.value) || await B({ query: Ct.value });
|
|
8923
8923
|
}, Fe = async (j) => {
|
|
8924
|
-
Array.isArray(
|
|
8924
|
+
Array.isArray(L.value) && (L.value.includes(j) ? L.value = L.value.filter((Dt) => Dt !== j) : L.value.push(j)), await tt();
|
|
8925
8925
|
}, gt = Ar(() => {
|
|
8926
|
-
if (Array.isArray(
|
|
8926
|
+
if (Array.isArray(L.value))
|
|
8927
8927
|
return Z.value.length > 0 && Z.value.every(
|
|
8928
|
-
(j) => Array.isArray(
|
|
8928
|
+
(j) => Array.isArray(L.value) && L.value.includes(j.id)
|
|
8929
8929
|
);
|
|
8930
8930
|
});
|
|
8931
8931
|
function Ye() {
|
|
8932
|
-
if (Array.isArray(
|
|
8932
|
+
if (Array.isArray(L.value))
|
|
8933
8933
|
if (gt.value)
|
|
8934
|
-
|
|
8934
|
+
L.value = L.value.filter(
|
|
8935
8935
|
(j) => !Z.value.map((re) => re.id).includes(j)
|
|
8936
8936
|
);
|
|
8937
8937
|
else {
|
|
8938
8938
|
const j = Z.value.map((re) => re.id);
|
|
8939
|
-
|
|
8939
|
+
L.value = Array.from(/* @__PURE__ */ new Set([...L.value, ...j]));
|
|
8940
8940
|
}
|
|
8941
8941
|
}
|
|
8942
8942
|
const Mt = async () => {
|
|
@@ -8945,9 +8945,9 @@ const G_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8945
8945
|
q.value = "", ee.value = !1;
|
|
8946
8946
|
};
|
|
8947
8947
|
return Fa(
|
|
8948
|
-
() =>
|
|
8948
|
+
() => L.value,
|
|
8949
8949
|
async () => {
|
|
8950
|
-
w.value = !0,
|
|
8950
|
+
F.value.length && !Array.isArray(L.value) || (w.value = !0, L.value && await tt(), w.value = !1);
|
|
8951
8951
|
}
|
|
8952
8952
|
), za(async () => {
|
|
8953
8953
|
oe.value = new IntersectionObserver(Pe);
|
|
@@ -8967,8 +8967,8 @@ const G_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
8967
8967
|
[Pa, Er(w)]
|
|
8968
8968
|
]),
|
|
8969
8969
|
Cr(Er(N_), {
|
|
8970
|
-
modelValue:
|
|
8971
|
-
"onUpdate:modelValue": re[0] || (re[0] = (pt) =>
|
|
8970
|
+
modelValue: L.value,
|
|
8971
|
+
"onUpdate:modelValue": re[0] || (re[0] = (pt) => L.value = pt),
|
|
8972
8972
|
class: Rr(["synt-relation-control", {
|
|
8973
8973
|
"synt-office-relation-error": j.isError,
|
|
8974
8974
|
"synt-office-relation-disabled": j.isDisabled,
|
|
@@ -9078,7 +9078,7 @@ const G_ = { class: "synt-office-relation-wrapper" }, Z_ = { class: "synt-office
|
|
|
9078
9078
|
A("input", {
|
|
9079
9079
|
type: "checkbox",
|
|
9080
9080
|
class: "synt-office-relation-modal-table-checkbox",
|
|
9081
|
-
checked: Array.isArray(
|
|
9081
|
+
checked: Array.isArray(L.value) && L.value.includes(We.id),
|
|
9082
9082
|
onChange: (Ge) => Fe(We.id)
|
|
9083
9083
|
}, null, 40, a0)
|
|
9084
9084
|
]),
|