@syntify/office 0.1.17 → 0.1.18
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 +276 -277
- package/dist/syntify-office.umd.js +14 -14
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as qn, ref as ne, computed as Vn, resolveComponent as Fv, createBlock as Wr, openBlock as ut, withCtx as
|
|
1
|
+
import { defineComponent as qn, ref as ne, computed as Vn, resolveComponent as Fv, createBlock as Wr, openBlock as ut, withCtx as $e, createElementVNode as A, normalizeClass as Hn, toDisplayString as qt, createElementBlock as pt, renderSlot as ee, createVNode as Br, unref as yn, createCommentVNode as Se, withDirectives as Fn, withModifiers as Un, vModelText as ig, onMounted as Hs, onBeforeUnmount as Uv, Fragment as kr, renderList as ao, normalizeStyle as kv, Transition as Vs, vModelSelect as cg, createTextVNode as Nr, provide as Vv, inject as Hv, onUnmounted as hg, vShow as lo, nextTick as Ks, resolveDirective as pg, normalizeProps as Pn, guardReactiveProps as zn, resolveDynamicComponent as Mv, mergeProps as qv, toHandlers as dg, mergeModels as Zs, useModel as og, watch as so } from "vue";
|
|
2
2
|
import { useRoute as vg, useRouter as gg } from "vue-router";
|
|
3
3
|
const _g = /* @__PURE__ */ qn({
|
|
4
4
|
__name: "OfficeLink",
|
|
@@ -18,8 +18,8 @@ const _g = /* @__PURE__ */ qn({
|
|
|
18
18
|
},
|
|
19
19
|
emits: ["close"],
|
|
20
20
|
setup(p, { emit: x }) {
|
|
21
|
-
const u = x, j = vg(),
|
|
22
|
-
|
|
21
|
+
const u = x, j = vg(), E = ne(p.to), U = (L) => {
|
|
22
|
+
E.value = L, u("close");
|
|
23
23
|
}, v = Vn(() => j.path.split("/")[1]);
|
|
24
24
|
return (L, V) => {
|
|
25
25
|
const Y = Fv("RouterLink");
|
|
@@ -28,15 +28,15 @@ const _g = /* @__PURE__ */ qn({
|
|
|
28
28
|
class: "synt-office-link",
|
|
29
29
|
onClick: V[0] || (V[0] = (X) => U(p.to))
|
|
30
30
|
}, {
|
|
31
|
-
default:
|
|
31
|
+
default: $e(() => [
|
|
32
32
|
A("i", {
|
|
33
33
|
class: Hn([[
|
|
34
34
|
p.icon,
|
|
35
|
-
|
|
35
|
+
E.value === `/${v.value}` ? "synt-office-link-color-primary" : ""
|
|
36
36
|
], "synt-office-link-icon"])
|
|
37
37
|
}, null, 2),
|
|
38
38
|
A("span", {
|
|
39
|
-
class: Hn([[
|
|
39
|
+
class: Hn([[E.value === `/${v.value}` ? "synt-office-link-font-bold" : ""], "synt-office-link-label"])
|
|
40
40
|
}, qt(p.label), 3)
|
|
41
41
|
]),
|
|
42
42
|
_: 1
|
|
@@ -45,12 +45,12 @@ const _g = /* @__PURE__ */ qn({
|
|
|
45
45
|
}
|
|
46
46
|
}), Pr = (p, x) => {
|
|
47
47
|
const u = p.__vccOpts || p;
|
|
48
|
-
for (const [j,
|
|
49
|
-
u[j] =
|
|
48
|
+
for (const [j, E] of x)
|
|
49
|
+
u[j] = E;
|
|
50
50
|
return u;
|
|
51
51
|
}, Y0 = /* @__PURE__ */ Pr(_g, [["__scopeId", "data-v-1d74c6dc"]]), yg = {}, mg = { class: "synt-office-layout-wrapper" };
|
|
52
52
|
function wg(p, x) {
|
|
53
|
-
return ut(),
|
|
53
|
+
return ut(), pt("div", mg, [
|
|
54
54
|
ee(p.$slots, "default", {}, void 0, !0)
|
|
55
55
|
]);
|
|
56
56
|
}
|
|
@@ -67,7 +67,7 @@ const bg = /* @__PURE__ */ Pr(yg, [["render", wg], ["__scopeId", "data-v-5c72098
|
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
setup(p) {
|
|
70
|
-
return (x, u) => (ut(),
|
|
70
|
+
return (x, u) => (ut(), pt("div", xg, [
|
|
71
71
|
A("div", Og, [
|
|
72
72
|
A("div", $g, [
|
|
73
73
|
ee(x.$slots, "start", {}, void 0, !0),
|
|
@@ -98,15 +98,15 @@ const bg = /* @__PURE__ */ Pr(yg, [["render", wg], ["__scopeId", "data-v-5c72098
|
|
|
98
98
|
},
|
|
99
99
|
setup(p) {
|
|
100
100
|
return (x, u) => (ut(), Wr(bg, null, {
|
|
101
|
-
default:
|
|
101
|
+
default: $e(() => [
|
|
102
102
|
Br(yn(ug), {
|
|
103
103
|
label: p.label,
|
|
104
104
|
icon: p.icon
|
|
105
105
|
}, {
|
|
106
|
-
start:
|
|
106
|
+
start: $e(() => [
|
|
107
107
|
ee(x.$slots, "start")
|
|
108
108
|
]),
|
|
109
|
-
end:
|
|
109
|
+
end: $e(() => [
|
|
110
110
|
ee(x.$slots, "end")
|
|
111
111
|
]),
|
|
112
112
|
_: 3
|
|
@@ -126,15 +126,15 @@ const bg = /* @__PURE__ */ Pr(yg, [["render", wg], ["__scopeId", "data-v-5c72098
|
|
|
126
126
|
emits: ["refresh"],
|
|
127
127
|
setup(p, { emit: x }) {
|
|
128
128
|
return (u, j) => {
|
|
129
|
-
const
|
|
129
|
+
const E = Fv("RouterLink");
|
|
130
130
|
return ut(), Wr(yn(sg), {
|
|
131
131
|
icon: u.model.info.icon,
|
|
132
132
|
label: u.model.label
|
|
133
133
|
}, {
|
|
134
|
-
end:
|
|
134
|
+
end: $e(() => {
|
|
135
135
|
var U, v, L;
|
|
136
136
|
return [
|
|
137
|
-
(U = u.model.excludes) != null && U.includes("create") ?
|
|
137
|
+
(U = u.model.excludes) != null && U.includes("create") ? Se("", !0) : (ut(), Wr(E, {
|
|
138
138
|
key: 0,
|
|
139
139
|
to: {
|
|
140
140
|
path: `${u.model.collection.path}/new`,
|
|
@@ -142,14 +142,14 @@ const bg = /* @__PURE__ */ Pr(yg, [["render", wg], ["__scopeId", "data-v-5c72098
|
|
|
142
142
|
},
|
|
143
143
|
class: "synt-office-collection-create"
|
|
144
144
|
}, {
|
|
145
|
-
default:
|
|
145
|
+
default: $e(() => j[2] || (j[2] = [
|
|
146
146
|
A("i", { class: "fa-solid fa-plus" }, null, -1),
|
|
147
147
|
A("span", null, "Tambah", -1)
|
|
148
148
|
])),
|
|
149
149
|
_: 1
|
|
150
150
|
}, 8, ["to"])),
|
|
151
151
|
A("div", Eg, [
|
|
152
|
-
(v = u.model.excludes) != null && v.includes("refresh") ?
|
|
152
|
+
(v = u.model.excludes) != null && v.includes("refresh") ? Se("", !0) : (ut(), pt("button", {
|
|
153
153
|
key: 0,
|
|
154
154
|
type: "button",
|
|
155
155
|
class: "synt-office-collection-btn-refresh",
|
|
@@ -158,7 +158,7 @@ const bg = /* @__PURE__ */ Pr(yg, [["render", wg], ["__scopeId", "data-v-5c72098
|
|
|
158
158
|
A("i", { class: "synt-office-collection-btn-refresh-icon fa-solid fa-sync" }, null, -1)
|
|
159
159
|
]))),
|
|
160
160
|
ee(u.$slots, "head", {}, void 0, !0),
|
|
161
|
-
(L = u.model.excludes) != null && L.includes("search") ?
|
|
161
|
+
(L = u.model.excludes) != null && L.includes("search") ? Se("", !0) : Fn((ut(), pt("input", {
|
|
162
162
|
key: 1,
|
|
163
163
|
type: "search",
|
|
164
164
|
"onUpdate:modelValue": j[1] || (j[1] = (V) => u.query.search = V),
|
|
@@ -170,7 +170,7 @@ const bg = /* @__PURE__ */ Pr(yg, [["render", wg], ["__scopeId", "data-v-5c72098
|
|
|
170
170
|
])
|
|
171
171
|
];
|
|
172
172
|
}),
|
|
173
|
-
default:
|
|
173
|
+
default: $e(() => [
|
|
174
174
|
ee(u.$slots, "default", {}, void 0, !0)
|
|
175
175
|
]),
|
|
176
176
|
_: 3
|
|
@@ -284,7 +284,7 @@ function Rg() {
|
|
|
284
284
|
tt.stopPropagation(), this.options.onClick();
|
|
285
285
|
}).bind(this)
|
|
286
286
|
), typeof this.options.offset == "object") {
|
|
287
|
-
var Dt =
|
|
287
|
+
var Dt = E("x", this.options), z = E("y", this.options), N = this.options.position == "left" ? Dt : "-" + Dt, ot = this.options.gravity == "toastify-top" ? z : "-" + z;
|
|
288
288
|
v.style.transform = "translate(" + N + "," + ot + ")";
|
|
289
289
|
}
|
|
290
290
|
return v;
|
|
@@ -334,7 +334,7 @@ function Rg() {
|
|
|
334
334
|
}
|
|
335
335
|
return this;
|
|
336
336
|
};
|
|
337
|
-
function
|
|
337
|
+
function E(v, L) {
|
|
338
338
|
return L.offset[v] ? isNaN(L.offset[v]) ? L.offset[v] : L.offset[v] + "px" : "0px";
|
|
339
339
|
}
|
|
340
340
|
function U(v, L) {
|
|
@@ -355,55 +355,55 @@ function Wg() {
|
|
|
355
355
|
(function(u, j) {
|
|
356
356
|
p.exports = j();
|
|
357
357
|
})(kg, function() {
|
|
358
|
-
var u = 1e3, j = 6e4,
|
|
359
|
-
var O = ["th", "st", "nd", "rd"], w =
|
|
360
|
-
return "[" +
|
|
361
|
-
} }, Lt = function(
|
|
362
|
-
var S = String(
|
|
363
|
-
return !S || S.length >= O ?
|
|
364
|
-
}, Wt = { s: Lt, z: function(
|
|
365
|
-
var O = -
|
|
358
|
+
var u = 1e3, j = 6e4, E = 36e5, U = "millisecond", v = "second", L = "minute", V = "hour", Y = "day", X = "week", Z = "month", Dt = "quarter", z = "year", N = "date", ot = "Invalid Date", tt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, mt = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, gt = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
359
|
+
var O = ["th", "st", "nd", "rd"], w = T % 100;
|
|
360
|
+
return "[" + T + (O[(w - 20) % 10] || O[w] || O[0]) + "]";
|
|
361
|
+
} }, Lt = function(T, O, w) {
|
|
362
|
+
var S = String(T);
|
|
363
|
+
return !S || S.length >= O ? T : "" + Array(O + 1 - S.length).join(w) + T;
|
|
364
|
+
}, Wt = { s: Lt, z: function(T) {
|
|
365
|
+
var O = -T.utcOffset(), w = Math.abs(O), S = Math.floor(w / 60), m = w % 60;
|
|
366
366
|
return (O <= 0 ? "+" : "-") + Lt(S, 2, "0") + ":" + Lt(m, 2, "0");
|
|
367
|
-
}, m: function
|
|
368
|
-
if (O.date() < w.date()) return -
|
|
367
|
+
}, m: function T(O, w) {
|
|
368
|
+
if (O.date() < w.date()) return -T(w, O);
|
|
369
369
|
var S = 12 * (w.year() - O.year()) + (w.month() - O.month()), m = O.clone().add(S, Z), M = w - m < 0, B = O.clone().add(S + (M ? -1 : 1), Z);
|
|
370
370
|
return +(-(S + (w - m) / (M ? m - B : B - m)) || 0);
|
|
371
|
-
}, a: function(
|
|
372
|
-
return
|
|
373
|
-
}, p: function(
|
|
374
|
-
return { M: Z, y: z, w: X, d: Y, D: N, h: V, m: L, s: v, ms: U, Q: Dt }[
|
|
375
|
-
}, u: function(
|
|
376
|
-
return
|
|
371
|
+
}, a: function(T) {
|
|
372
|
+
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
373
|
+
}, p: function(T) {
|
|
374
|
+
return { M: Z, y: z, w: X, d: Y, D: N, h: V, m: L, s: v, ms: U, Q: Dt }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
375
|
+
}, u: function(T) {
|
|
376
|
+
return T === void 0;
|
|
377
377
|
} }, wt = "en", xt = {};
|
|
378
378
|
xt[wt] = gt;
|
|
379
|
-
var Et = "$isDayjsObject", Yt = function(
|
|
380
|
-
return
|
|
381
|
-
}, at = function
|
|
379
|
+
var Et = "$isDayjsObject", Yt = function(T) {
|
|
380
|
+
return T instanceof Bt || !(!T || !T[Et]);
|
|
381
|
+
}, at = function T(O, w, S) {
|
|
382
382
|
var m;
|
|
383
383
|
if (!O) return wt;
|
|
384
384
|
if (typeof O == "string") {
|
|
385
385
|
var M = O.toLowerCase();
|
|
386
386
|
xt[M] && (m = M), w && (xt[M] = w, m = M);
|
|
387
387
|
var B = O.split("-");
|
|
388
|
-
if (!m && B.length > 1) return
|
|
388
|
+
if (!m && B.length > 1) return T(B[0]);
|
|
389
389
|
} else {
|
|
390
390
|
var K = O.name;
|
|
391
391
|
xt[K] = O, m = K;
|
|
392
392
|
}
|
|
393
393
|
return !S && m && (wt = m), m || !S && wt;
|
|
394
|
-
}, R = function(
|
|
395
|
-
if (Yt(
|
|
394
|
+
}, R = function(T, O) {
|
|
395
|
+
if (Yt(T)) return T.clone();
|
|
396
396
|
var w = typeof O == "object" ? O : {};
|
|
397
|
-
return w.date =
|
|
397
|
+
return w.date = T, w.args = arguments, new Bt(w);
|
|
398
398
|
}, I = Wt;
|
|
399
|
-
I.l = at, I.i = Yt, I.w = function(
|
|
400
|
-
return R(
|
|
399
|
+
I.l = at, I.i = Yt, I.w = function(T, O) {
|
|
400
|
+
return R(T, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
|
401
401
|
};
|
|
402
402
|
var Bt = function() {
|
|
403
|
-
function
|
|
403
|
+
function T(w) {
|
|
404
404
|
this.$L = at(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[Et] = !0;
|
|
405
405
|
}
|
|
406
|
-
var O =
|
|
406
|
+
var O = T.prototype;
|
|
407
407
|
return O.parse = function(w) {
|
|
408
408
|
this.$d = function(S) {
|
|
409
409
|
var m = S.date, M = S.utc;
|
|
@@ -413,8 +413,8 @@ function Wg() {
|
|
|
413
413
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
414
414
|
var B = m.match(tt);
|
|
415
415
|
if (B) {
|
|
416
|
-
var K = B[2] - 1 || 0,
|
|
417
|
-
return M ? new Date(Date.UTC(B[1], K, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0,
|
|
416
|
+
var K = B[2] - 1 || 0, ht = (B[7] || "0").substring(0, 3);
|
|
417
|
+
return M ? new Date(Date.UTC(B[1], K, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, ht)) : new Date(B[1], K, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, ht);
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
return new Date(m);
|
|
@@ -443,7 +443,7 @@ function Wg() {
|
|
|
443
443
|
var m = this, M = !!I.u(S) || S, B = I.p(w), K = function(Gt, Rt) {
|
|
444
444
|
var Kt = I.w(m.$u ? Date.UTC(m.$y, Rt, Gt) : new Date(m.$y, Rt, Gt), m);
|
|
445
445
|
return M ? Kt : Kt.endOf(Y);
|
|
446
|
-
},
|
|
446
|
+
}, ht = function(Gt, Rt) {
|
|
447
447
|
return I.w(m.toDate()[Gt].apply(m.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Rt)), m);
|
|
448
448
|
}, bt = this.$W, At = this.$M, Ot = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
449
449
|
switch (B) {
|
|
@@ -456,24 +456,24 @@ function Wg() {
|
|
|
456
456
|
return K(M ? Ot - he : Ot + (6 - he), At);
|
|
457
457
|
case Y:
|
|
458
458
|
case N:
|
|
459
|
-
return
|
|
459
|
+
return ht(ce + "Hours", 0);
|
|
460
460
|
case V:
|
|
461
|
-
return
|
|
461
|
+
return ht(ce + "Minutes", 1);
|
|
462
462
|
case L:
|
|
463
|
-
return
|
|
463
|
+
return ht(ce + "Seconds", 2);
|
|
464
464
|
case v:
|
|
465
|
-
return
|
|
465
|
+
return ht(ce + "Milliseconds", 3);
|
|
466
466
|
default:
|
|
467
467
|
return this.clone();
|
|
468
468
|
}
|
|
469
469
|
}, O.endOf = function(w) {
|
|
470
470
|
return this.startOf(w, !1);
|
|
471
471
|
}, O.$set = function(w, S) {
|
|
472
|
-
var m, M = I.p(w), B = "set" + (this.$u ? "UTC" : ""), K = (m = {}, m[Y] = B + "Date", m[N] = B + "Date", m[Z] = B + "Month", m[z] = B + "FullYear", m[V] = B + "Hours", m[L] = B + "Minutes", m[v] = B + "Seconds", m[U] = B + "Milliseconds", m)[M],
|
|
472
|
+
var m, M = I.p(w), B = "set" + (this.$u ? "UTC" : ""), K = (m = {}, m[Y] = B + "Date", m[N] = B + "Date", m[Z] = B + "Month", m[z] = B + "FullYear", m[V] = B + "Hours", m[L] = B + "Minutes", m[v] = B + "Seconds", m[U] = B + "Milliseconds", m)[M], ht = M === Y ? this.$D + (S - this.$W) : S;
|
|
473
473
|
if (M === Z || M === z) {
|
|
474
474
|
var bt = this.clone().set(N, 1);
|
|
475
|
-
bt.$d[K](
|
|
476
|
-
} else K && this.$d[K](
|
|
475
|
+
bt.$d[K](ht), bt.init(), this.$d = bt.set(N, Math.min(this.$D, bt.daysInMonth())).$d;
|
|
476
|
+
} else K && this.$d[K](ht);
|
|
477
477
|
return this.init(), this;
|
|
478
478
|
}, O.set = function(w, S) {
|
|
479
479
|
return this.clone().$set(w, S);
|
|
@@ -490,14 +490,14 @@ function Wg() {
|
|
|
490
490
|
if (B === z) return this.set(z, this.$y + w);
|
|
491
491
|
if (B === Y) return K(1);
|
|
492
492
|
if (B === X) return K(7);
|
|
493
|
-
var
|
|
493
|
+
var ht = (m = {}, m[L] = j, m[V] = E, m[v] = u, m)[B] || 1, bt = this.$d.getTime() + w * ht;
|
|
494
494
|
return I.w(bt, this);
|
|
495
495
|
}, O.subtract = function(w, S) {
|
|
496
496
|
return this.add(-1 * w, S);
|
|
497
497
|
}, O.format = function(w) {
|
|
498
498
|
var S = this, m = this.$locale();
|
|
499
499
|
if (!this.isValid()) return m.invalidDate || ot;
|
|
500
|
-
var M = w || "YYYY-MM-DDTHH:mm:ssZ", B = I.z(this), K = this.$H,
|
|
500
|
+
var M = w || "YYYY-MM-DDTHH:mm:ssZ", B = I.z(this), K = this.$H, ht = this.$m, bt = this.$M, At = m.weekdays, Ot = m.months, ce = m.meridiem, Ae = function(Rt, Kt, we, Ye) {
|
|
501
501
|
return Rt && (Rt[Kt] || Rt(S, M)) || we[Kt].slice(0, Ye);
|
|
502
502
|
}, he = function(Rt) {
|
|
503
503
|
return I.s(K % 12 || 12, Rt, "0");
|
|
@@ -541,13 +541,13 @@ function Wg() {
|
|
|
541
541
|
case "hh":
|
|
542
542
|
return he(2);
|
|
543
543
|
case "a":
|
|
544
|
-
return Gt(K,
|
|
544
|
+
return Gt(K, ht, !0);
|
|
545
545
|
case "A":
|
|
546
|
-
return Gt(K,
|
|
546
|
+
return Gt(K, ht, !1);
|
|
547
547
|
case "m":
|
|
548
|
-
return String(
|
|
548
|
+
return String(ht);
|
|
549
549
|
case "mm":
|
|
550
|
-
return I.s(
|
|
550
|
+
return I.s(ht, 2, "0");
|
|
551
551
|
case "s":
|
|
552
552
|
return String(S.$s);
|
|
553
553
|
case "ss":
|
|
@@ -563,8 +563,8 @@ function Wg() {
|
|
|
563
563
|
}, O.utcOffset = function() {
|
|
564
564
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
565
565
|
}, O.diff = function(w, S, m) {
|
|
566
|
-
var M, B = this, K = I.p(S),
|
|
567
|
-
return I.m(B,
|
|
566
|
+
var M, B = this, K = I.p(S), ht = R(w), bt = (ht.utcOffset() - this.utcOffset()) * j, At = this - ht, Ot = function() {
|
|
567
|
+
return I.m(B, ht);
|
|
568
568
|
};
|
|
569
569
|
switch (K) {
|
|
570
570
|
case z:
|
|
@@ -583,7 +583,7 @@ function Wg() {
|
|
|
583
583
|
M = (At - bt) / 864e5;
|
|
584
584
|
break;
|
|
585
585
|
case V:
|
|
586
|
-
M = At /
|
|
586
|
+
M = At / E;
|
|
587
587
|
break;
|
|
588
588
|
case L:
|
|
589
589
|
M = At / j;
|
|
@@ -613,16 +613,16 @@ function Wg() {
|
|
|
613
613
|
return this.$d.toISOString();
|
|
614
614
|
}, O.toString = function() {
|
|
615
615
|
return this.$d.toUTCString();
|
|
616
|
-
},
|
|
616
|
+
}, T;
|
|
617
617
|
}(), me = Bt.prototype;
|
|
618
|
-
return R.prototype = me, [["$ms", U], ["$s", v], ["$m", L], ["$H", V], ["$W", Y], ["$M", Z], ["$y", z], ["$D", N]].forEach(function(
|
|
619
|
-
me[
|
|
620
|
-
return this.$g(O,
|
|
618
|
+
return R.prototype = me, [["$ms", U], ["$s", v], ["$m", L], ["$H", V], ["$W", Y], ["$M", Z], ["$y", z], ["$D", N]].forEach(function(T) {
|
|
619
|
+
me[T[1]] = function(O) {
|
|
620
|
+
return this.$g(O, T[0], T[1]);
|
|
621
621
|
};
|
|
622
|
-
}), R.extend = function(
|
|
623
|
-
return
|
|
624
|
-
}, R.locale = at, R.isDayjs = Yt, R.unix = function(
|
|
625
|
-
return R(1e3 *
|
|
622
|
+
}), R.extend = function(T, O) {
|
|
623
|
+
return T.$i || (T(O, Bt, R), T.$i = !0), R;
|
|
624
|
+
}, R.locale = at, R.isDayjs = Yt, R.unix = function(T) {
|
|
625
|
+
return R(1e3 * T);
|
|
626
626
|
}, R.en = xt[wt], R.Ls = xt, R.p = {}, R;
|
|
627
627
|
});
|
|
628
628
|
}(Bv)), Bv.exports;
|
|
@@ -665,7 +665,7 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
665
665
|
isLoading: { type: Boolean }
|
|
666
666
|
},
|
|
667
667
|
setup(p) {
|
|
668
|
-
const x = p, u = gg(), j = Vn(() => x.model.definition.replace(":", "_").replace("/", "")),
|
|
668
|
+
const x = p, u = gg(), j = Vn(() => x.model.definition.replace(":", "_").replace("/", "")), E = ne({
|
|
669
669
|
visible: !1,
|
|
670
670
|
x: 0,
|
|
671
671
|
y: 0,
|
|
@@ -679,7 +679,7 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
679
679
|
}
|
|
680
680
|
function L(z, N) {
|
|
681
681
|
var ot;
|
|
682
|
-
(ot = x.model.excludes) != null && ot.includes("edit") || (z.preventDefault(),
|
|
682
|
+
(ot = x.model.excludes) != null && ot.includes("edit") || (z.preventDefault(), E.value = {
|
|
683
683
|
visible: !0,
|
|
684
684
|
x: z.pageX,
|
|
685
685
|
y: z.pageY,
|
|
@@ -687,7 +687,7 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
687
687
|
});
|
|
688
688
|
}
|
|
689
689
|
function V() {
|
|
690
|
-
|
|
690
|
+
E.value.visible && (E.value.visible = !1);
|
|
691
691
|
}
|
|
692
692
|
function Y(z) {
|
|
693
693
|
const N = `${x.model.collection.path}/${z}`;
|
|
@@ -714,7 +714,7 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
714
714
|
window.addEventListener("click", V);
|
|
715
715
|
}), Uv(() => {
|
|
716
716
|
window.removeEventListener("click", V);
|
|
717
|
-
}), (z, N) => (ut(),
|
|
717
|
+
}), (z, N) => (ut(), pt(kr, null, [
|
|
718
718
|
A("div", {
|
|
719
719
|
id: j.value,
|
|
720
720
|
class: "synt-office-collection-table-wrapper"
|
|
@@ -724,14 +724,14 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
724
724
|
A("thead", null, [
|
|
725
725
|
A("tr", null, [
|
|
726
726
|
N[6] || (N[6] = A("th", null, "No", -1)),
|
|
727
|
-
(ut(!0),
|
|
727
|
+
(ut(!0), pt(kr, null, ao(z.model.collection.columns, (ot, tt) => (ut(), pt("th", { key: tt }, qt(ot.name), 1))), 128)),
|
|
728
728
|
ee(z.$slots, "th", {}, void 0, !0)
|
|
729
729
|
])
|
|
730
730
|
]),
|
|
731
731
|
A("tbody", null, [
|
|
732
|
-
(ut(!0),
|
|
732
|
+
(ut(!0), pt(kr, null, ao(z.items, (ot, tt) => {
|
|
733
733
|
var mt;
|
|
734
|
-
return ut(),
|
|
734
|
+
return ut(), pt("tr", {
|
|
735
735
|
key: tt,
|
|
736
736
|
class: Hn({
|
|
737
737
|
"synt-cursor-pointer": !((mt = z.model.excludes) != null && mt.includes("edit"))
|
|
@@ -740,10 +740,10 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
740
740
|
onContextmenu: Un((gt) => L(gt, ot.id), ["prevent"])
|
|
741
741
|
}, [
|
|
742
742
|
A("td", null, qt(tt + 1), 1),
|
|
743
|
-
(ut(!0),
|
|
743
|
+
(ut(!0), pt(kr, null, ao(z.model.collection.columns, (gt, Lt) => {
|
|
744
744
|
var Wt, wt, xt, Et, Yt;
|
|
745
|
-
return ut(),
|
|
746
|
-
gt.type == "currency" ? (ut(),
|
|
745
|
+
return ut(), pt("td", { key: Lt }, [
|
|
746
|
+
gt.type == "currency" ? (ut(), pt("div", Vg, qt(yn(Mg)(ot[gt.handle])), 1)) : gt.type == "date" ? (ut(), pt("div", Hg, qt(yn(Ng)(ot[gt.handle])), 1)) : gt.type == "datetime" ? (ut(), pt("div", qg, qt(yn(Pg)(ot[gt.handle])), 1)) : gt.type == "choice" ? (ut(), pt("div", {
|
|
747
747
|
key: 3,
|
|
748
748
|
class: Hn([
|
|
749
749
|
"synt-badge-tabel-color",
|
|
@@ -757,7 +757,7 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
757
757
|
color: ((Et = gt.choices[ot[gt.handle]]) == null ? void 0 : Et.textColor) ?? "black"
|
|
758
758
|
}
|
|
759
759
|
)
|
|
760
|
-
}, qt(((Yt = gt.choices[ot[gt.handle]]) == null ? void 0 : Yt.name) ?? ot[gt.handle]), 7)) : (ut(),
|
|
760
|
+
}, qt(((Yt = gt.choices[ot[gt.handle]]) == null ? void 0 : Yt.name) ?? ot[gt.handle]), 7)) : (ut(), pt("div", Yg, qt(ot[gt.handle]), 1))
|
|
761
761
|
]);
|
|
762
762
|
}), 128)),
|
|
763
763
|
ee(z.$slots, "td", { item: ot }, void 0, !0)
|
|
@@ -766,45 +766,45 @@ const Fg = ["id"], Ug = { id: "table-collection" }, zg = ["onClick", "onContextm
|
|
|
766
766
|
])
|
|
767
767
|
]),
|
|
768
768
|
Br(Vs, { name: "fade" }, {
|
|
769
|
-
default:
|
|
770
|
-
|
|
769
|
+
default: $e(() => [
|
|
770
|
+
E.value.visible ? (ut(), pt("div", {
|
|
771
771
|
key: 0,
|
|
772
|
-
style: kv({ top: `${
|
|
772
|
+
style: kv({ top: `${E.value.y}px`, left: `${E.value.x}px` }),
|
|
773
773
|
class: "synt-open-tab"
|
|
774
774
|
}, [
|
|
775
775
|
A("ul", null, [
|
|
776
776
|
A("li", {
|
|
777
777
|
class: "synt-open-tab-option",
|
|
778
|
-
onClick: N[0] || (N[0] = (ot) => X(
|
|
778
|
+
onClick: N[0] || (N[0] = (ot) => X(E.value.id))
|
|
779
779
|
}, N[7] || (N[7] = [
|
|
780
780
|
A("i", { class: "synt-open-tab-option-icon fa-solid fa-up-right-and-down-left-from-center" }, null, -1),
|
|
781
781
|
A("span", null, "Open as tab", -1)
|
|
782
782
|
])),
|
|
783
783
|
A("li", {
|
|
784
784
|
class: "synt-open-tab-option",
|
|
785
|
-
onClick: N[1] || (N[1] = (ot) => Y(
|
|
785
|
+
onClick: N[1] || (N[1] = (ot) => Y(E.value.id))
|
|
786
786
|
}, N[8] || (N[8] = [
|
|
787
787
|
A("i", { class: "synt-open-tab-option-icon fa-solid fa-arrow-up-right-from-square" }, null, -1),
|
|
788
788
|
A("span", null, "Open in new tab", -1)
|
|
789
789
|
])),
|
|
790
790
|
A("li", {
|
|
791
791
|
class: "synt-open-tab-option",
|
|
792
|
-
onClick: N[2] || (N[2] = (ot) => Z(
|
|
792
|
+
onClick: N[2] || (N[2] = (ot) => Z(E.value.id))
|
|
793
793
|
}, N[9] || (N[9] = [
|
|
794
794
|
A("i", { class: "synt-open-tab-option-icon fa-solid fa-paperclip" }, null, -1),
|
|
795
795
|
A("span", null, "Copy link", -1)
|
|
796
796
|
]))
|
|
797
797
|
])
|
|
798
|
-
], 4)) :
|
|
798
|
+
], 4)) : Se("", !0)
|
|
799
799
|
]),
|
|
800
800
|
_: 1
|
|
801
801
|
}),
|
|
802
|
-
z.isLoading ? (ut(),
|
|
802
|
+
z.isLoading ? (ut(), pt("div", Gg, N[10] || (N[10] = [
|
|
803
803
|
A("i", { class: "synt-loading-icon fa-solid fa-spinner" }, null, -1)
|
|
804
|
-
]))) :
|
|
805
|
-
!z.items.length && !z.isLoading ? (ut(),
|
|
804
|
+
]))) : Se("", !0),
|
|
805
|
+
!z.items.length && !z.isLoading ? (ut(), pt("div", Kg, N[11] || (N[11] = [
|
|
806
806
|
A("div", { class: "synt-table-empty-text" }, "Tidak ada data untuk ditampilkan", -1)
|
|
807
|
-
]))) :
|
|
807
|
+
]))) : Se("", !0)
|
|
808
808
|
], 8, Fg),
|
|
809
809
|
A("div", Zg, [
|
|
810
810
|
A("div", Qg, [
|
|
@@ -869,7 +869,7 @@ var s_ = zs.exports, Zv;
|
|
|
869
869
|
function a_() {
|
|
870
870
|
return Zv || (Zv = 1, function(p, x) {
|
|
871
871
|
(function() {
|
|
872
|
-
var u, j = "4.17.21",
|
|
872
|
+
var u, j = "4.17.21", E = 200, U = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", v = "Expected a function", L = "Invalid `variable` option passed into `_.template`", V = "__lodash_hash_undefined__", Y = 500, X = "__lodash_placeholder__", Z = 1, Dt = 2, z = 4, N = 1, ot = 2, tt = 1, mt = 2, gt = 4, Lt = 8, Wt = 16, wt = 32, xt = 64, Et = 128, Yt = 256, at = 512, R = 30, I = "...", Bt = 800, me = 16, T = 1, O = 2, w = 3, S = 1 / 0, m = 9007199254740991, M = 17976931348623157e292, B = NaN, K = 4294967295, ht = K - 1, bt = K >>> 1, At = [
|
|
873
873
|
["ary", Et],
|
|
874
874
|
["bind", tt],
|
|
875
875
|
["bindKey", mt],
|
|
@@ -1525,7 +1525,7 @@ function a_() {
|
|
|
1525
1525
|
if (Jt == O)
|
|
1526
1526
|
W = Ft;
|
|
1527
1527
|
else if (!Ft) {
|
|
1528
|
-
if (Jt ==
|
|
1528
|
+
if (Jt == T)
|
|
1529
1529
|
continue t;
|
|
1530
1530
|
break t;
|
|
1531
1531
|
}
|
|
@@ -1657,7 +1657,7 @@ function a_() {
|
|
|
1657
1657
|
var n = this.__data__;
|
|
1658
1658
|
if (n instanceof Le) {
|
|
1659
1659
|
var r = n.__data__;
|
|
1660
|
-
if (!An || r.length <
|
|
1660
|
+
if (!An || r.length < E - 1)
|
|
1661
1661
|
return r.push([t, e]), this.size = ++n.size, this;
|
|
1662
1662
|
n = this.__data__ = new Ee(r);
|
|
1663
1663
|
}
|
|
@@ -1789,7 +1789,7 @@ function a_() {
|
|
|
1789
1789
|
var i = -1, s = Qn, a = !0, l = t.length, c = [], g = e.length;
|
|
1790
1790
|
if (!l)
|
|
1791
1791
|
return c;
|
|
1792
|
-
n && (e = ct(e, Qt(n))), r ? (s = ii, a = !1) : e.length >=
|
|
1792
|
+
n && (e = ct(e, Qt(n))), r ? (s = ii, a = !1) : e.length >= E && (s = $n, a = !1, e = new Qe(e));
|
|
1793
1793
|
t:
|
|
1794
1794
|
for (; ++i < l; ) {
|
|
1795
1795
|
var _ = t[i], y = n == null ? _ : n(_);
|
|
@@ -2192,7 +2192,7 @@ function a_() {
|
|
|
2192
2192
|
else g ? W = k && (r || b) : l ? W = k && b && (r || !C) : c ? W = k && b && !C && (r || !q) : C || q ? W = !1 : W = r ? y <= e : y < e;
|
|
2193
2193
|
W ? i = _ + 1 : s = _;
|
|
2194
2194
|
}
|
|
2195
|
-
return Mt(s,
|
|
2195
|
+
return Mt(s, ht);
|
|
2196
2196
|
}
|
|
2197
2197
|
function Cu(t, e) {
|
|
2198
2198
|
for (var n = -1, r = t.length, i = 0, s = []; ++n < r; ) {
|
|
@@ -2221,7 +2221,7 @@ function a_() {
|
|
|
2221
2221
|
var r = -1, i = Qn, s = t.length, a = !0, l = [], c = l;
|
|
2222
2222
|
if (n)
|
|
2223
2223
|
a = !1, i = ii;
|
|
2224
|
-
else if (s >=
|
|
2224
|
+
else if (s >= E) {
|
|
2225
2225
|
var g = e ? null : nc(t);
|
|
2226
2226
|
if (g)
|
|
2227
2227
|
return Xn(g);
|
|
@@ -4448,7 +4448,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
4448
4448
|
return this.reverse()[t](n).reverse();
|
|
4449
4449
|
};
|
|
4450
4450
|
}), ie(["filter", "map", "takeWhile"], function(t, e) {
|
|
4451
|
-
var n = e + 1, r = n ==
|
|
4451
|
+
var n = e + 1, r = n == T || n == w;
|
|
4452
4452
|
J.prototype[t] = function(i) {
|
|
4453
4453
|
var s = this.clone();
|
|
4454
4454
|
return s.__iteratees__.push({
|
|
@@ -4535,15 +4535,15 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4535
4535
|
setup(p) {
|
|
4536
4536
|
const x = ne(null), u = ne([]), j = (v, L) => {
|
|
4537
4537
|
u.value.push({ title: v, setActive: L }), x.value === null && (x.value = v, L(!0));
|
|
4538
|
-
},
|
|
4538
|
+
}, E = (v) => {
|
|
4539
4539
|
var L;
|
|
4540
4540
|
u.value = u.value.filter((V) => V.title !== v), x.value === v && (x.value = ((L = u.value[0]) == null ? void 0 : L.title) || null, u.value.length > 0 ? (x.value = u.value[0].title, u.value.forEach((V) => V.setActive(V.title === x.value))) : x.value = null);
|
|
4541
4541
|
}, U = (v) => {
|
|
4542
4542
|
x.value = v, u.value.forEach((L) => L.setActive(L.title === v));
|
|
4543
4543
|
};
|
|
4544
|
-
return Vv("registerTab", j), Vv("unregisterTab",
|
|
4544
|
+
return Vv("registerTab", j), Vv("unregisterTab", E), (v, L) => (ut(), pt(kr, null, [
|
|
4545
4545
|
A("div", f_, [
|
|
4546
|
-
(ut(!0),
|
|
4546
|
+
(ut(!0), pt(kr, null, ao(u.value, (V) => (ut(), pt("button", {
|
|
4547
4547
|
key: V.title,
|
|
4548
4548
|
onClick: (Y) => U(V.title),
|
|
4549
4549
|
class: Hn({ active: V.title === x.value })
|
|
@@ -4566,8 +4566,8 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4566
4566
|
const x = ne(!1), u = Hv(
|
|
4567
4567
|
"registerTab"
|
|
4568
4568
|
), j = Hv("unregisterTab");
|
|
4569
|
-
return Hs(() => u == null ? void 0 : u(p.title, (
|
|
4570
|
-
ee(
|
|
4569
|
+
return Hs(() => u == null ? void 0 : u(p.title, (E) => x.value = E)), hg(() => j == null ? void 0 : j(p.title)), (E, U) => Fn((ut(), pt("div", d_, [
|
|
4570
|
+
ee(E.$slots, "default", {}, void 0, !0)
|
|
4571
4571
|
], 512)), [
|
|
4572
4572
|
[lo, x.value]
|
|
4573
4573
|
]);
|
|
@@ -4587,9 +4587,9 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4587
4587
|
},
|
|
4588
4588
|
emits: ["delete", "duplicate"],
|
|
4589
4589
|
setup(p, { emit: x }) {
|
|
4590
|
-
const u = p, j = x,
|
|
4590
|
+
const u = p, j = x, E = ne(!1), U = ne({}), v = ne(null), L = ne(null), V = ne(null), Y = ne(!1), X = async () => {
|
|
4591
4591
|
var tt, mt;
|
|
4592
|
-
if (!((tt = u.model.excludes) != null && tt.includes("delete") && ((mt = u.model.excludes) != null && mt.includes("duplicate"))) && (
|
|
4592
|
+
if (!((tt = u.model.excludes) != null && tt.includes("delete") && ((mt = u.model.excludes) != null && mt.includes("duplicate"))) && (E.value = !E.value, await Ks(), E.value && V.value && L.value)) {
|
|
4593
4593
|
const gt = V.value.getBoundingClientRect();
|
|
4594
4594
|
U.value = {
|
|
4595
4595
|
top: `${gt.height}px`,
|
|
@@ -4598,13 +4598,13 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4598
4598
|
};
|
|
4599
4599
|
}
|
|
4600
4600
|
}, Z = (tt) => {
|
|
4601
|
-
|
|
4601
|
+
E.value && v.value && !v.value.contains(tt.target) && (E.value = !1);
|
|
4602
4602
|
}, Dt = async () => {
|
|
4603
|
-
await j("duplicate"),
|
|
4603
|
+
await j("duplicate"), E.value = !1;
|
|
4604
4604
|
}, z = async () => {
|
|
4605
4605
|
Y.value = !1;
|
|
4606
4606
|
}, N = async () => {
|
|
4607
|
-
|
|
4607
|
+
E.value = !1, Y.value = !0;
|
|
4608
4608
|
}, ot = async () => {
|
|
4609
4609
|
await j("delete"), Y.value = !1;
|
|
4610
4610
|
};
|
|
@@ -4619,15 +4619,15 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4619
4619
|
icon: tt.model.info.icon,
|
|
4620
4620
|
label: `${tt.isNew && !((Lt = tt.model.excludes) != null && Lt.includes("back")) ? "New" : ""} ${tt.model.label}`
|
|
4621
4621
|
}, {
|
|
4622
|
-
start:
|
|
4622
|
+
start: $e(() => {
|
|
4623
4623
|
var Wt;
|
|
4624
4624
|
return [
|
|
4625
|
-
(Wt = tt.model.excludes) != null && Wt.includes("back") ?
|
|
4625
|
+
(Wt = tt.model.excludes) != null && Wt.includes("back") ? Se("", !0) : (ut(), Wr(gt, {
|
|
4626
4626
|
key: 0,
|
|
4627
4627
|
to: `${tt.model.single.path}`,
|
|
4628
4628
|
class: "lux-office-single-btn-back"
|
|
4629
4629
|
}, {
|
|
4630
|
-
default:
|
|
4630
|
+
default: $e(() => [
|
|
4631
4631
|
A("i", g_, null, 512)
|
|
4632
4632
|
]),
|
|
4633
4633
|
_: 1
|
|
@@ -4635,13 +4635,13 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4635
4635
|
ee(tt.$slots, "start", {}, void 0, !0)
|
|
4636
4636
|
];
|
|
4637
4637
|
}),
|
|
4638
|
-
end:
|
|
4638
|
+
end: $e(() => [
|
|
4639
4639
|
A("div", {
|
|
4640
4640
|
ref_key: "dropdownWrapperRef",
|
|
4641
4641
|
ref: v,
|
|
4642
4642
|
class: "lux-office-single-dropdown-wrapper"
|
|
4643
4643
|
}, [
|
|
4644
|
-
tt.isNew ?
|
|
4644
|
+
tt.isNew ? Se("", !0) : (ut(), pt("button", {
|
|
4645
4645
|
key: 0,
|
|
4646
4646
|
ref_key: "buttonRef",
|
|
4647
4647
|
ref: V,
|
|
@@ -4652,10 +4652,10 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4652
4652
|
A("i", { class: "lux-office-single-text-xs fa-solid fa-ellipsis" }, null, -1)
|
|
4653
4653
|
]), 512)),
|
|
4654
4654
|
Br(Vs, { name: "fade" }, {
|
|
4655
|
-
default:
|
|
4655
|
+
default: $e(() => {
|
|
4656
4656
|
var Wt, wt, xt, Et;
|
|
4657
4657
|
return [
|
|
4658
|
-
|
|
4658
|
+
E.value ? (ut(), pt("div", {
|
|
4659
4659
|
key: 0,
|
|
4660
4660
|
ref_key: "dropdownRef",
|
|
4661
4661
|
ref: L,
|
|
@@ -4663,7 +4663,7 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4663
4663
|
style: kv(U.value)
|
|
4664
4664
|
}, [
|
|
4665
4665
|
A("ul", null, [
|
|
4666
|
-
(Wt = tt.model.excludes) != null && Wt.includes("duplicate") ?
|
|
4666
|
+
(Wt = tt.model.excludes) != null && Wt.includes("duplicate") ? Se("", !0) : (ut(), pt("li", {
|
|
4667
4667
|
key: 0,
|
|
4668
4668
|
class: "lux-office-single-dropdown-option",
|
|
4669
4669
|
onClick: Dt
|
|
@@ -4671,8 +4671,8 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4671
4671
|
A("i", { class: "lux-office-single-dropdown-option-icon fa-regular fa-copy" }, null, -1),
|
|
4672
4672
|
A("span", null, "Duplicate", -1)
|
|
4673
4673
|
]))),
|
|
4674
|
-
!((wt = tt.model.excludes) != null && wt.includes("delete")) && !((xt = tt.model.excludes) != null && xt.includes("duplicate")) ? (ut(),
|
|
4675
|
-
(Et = tt.model.excludes) != null && Et.includes("delete") ?
|
|
4674
|
+
!((wt = tt.model.excludes) != null && wt.includes("delete")) && !((xt = tt.model.excludes) != null && xt.includes("duplicate")) ? (ut(), pt("hr", __)) : Se("", !0),
|
|
4675
|
+
(Et = tt.model.excludes) != null && Et.includes("delete") ? Se("", !0) : (ut(), pt("li", {
|
|
4676
4676
|
key: 2,
|
|
4677
4677
|
class: "lux-office-single-dropdown-option",
|
|
4678
4678
|
onClick: N
|
|
@@ -4681,7 +4681,7 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4681
4681
|
A("span", null, "Delete", -1)
|
|
4682
4682
|
])))
|
|
4683
4683
|
])
|
|
4684
|
-
], 4)) :
|
|
4684
|
+
], 4)) : Se("", !0)
|
|
4685
4685
|
];
|
|
4686
4686
|
}),
|
|
4687
4687
|
_: 1
|
|
@@ -4689,10 +4689,10 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4689
4689
|
], 512),
|
|
4690
4690
|
ee(tt.$slots, "end", {}, void 0, !0)
|
|
4691
4691
|
]),
|
|
4692
|
-
default:
|
|
4692
|
+
default: $e(() => [
|
|
4693
4693
|
Br(Vs, { name: "fade" }, {
|
|
4694
|
-
default:
|
|
4695
|
-
Y.value ? (ut(),
|
|
4694
|
+
default: $e(() => [
|
|
4695
|
+
Y.value ? (ut(), pt("div", y_, [
|
|
4696
4696
|
A("div", m_, [
|
|
4697
4697
|
mt[5] || (mt[5] = A("div", { class: "lux-office-single-modal-header" }, [
|
|
4698
4698
|
A("div", { class: "lux-office-single-modal-header-icon-box" }, [
|
|
@@ -4720,7 +4720,7 @@ const lg = /* @__PURE__ */ u_(l_), f_ = { class: "synt-office-tabs synt-no-scrol
|
|
|
4720
4720
|
])
|
|
4721
4721
|
])
|
|
4722
4722
|
])
|
|
4723
|
-
])) :
|
|
4723
|
+
])) : Se("", !0)
|
|
4724
4724
|
]),
|
|
4725
4725
|
_: 1
|
|
4726
4726
|
}),
|
|
@@ -4761,10 +4761,10 @@ const T_ = {
|
|
|
4761
4761
|
var p;
|
|
4762
4762
|
const x = ((p = this.$refs.dropdownMenu) == null ? void 0 : p.children[this.typeAheadPointer]) || !1;
|
|
4763
4763
|
if (x) {
|
|
4764
|
-
const u = this.getDropdownViewport(), { top: j, bottom:
|
|
4764
|
+
const u = this.getDropdownViewport(), { top: j, bottom: E, height: U } = x.getBoundingClientRect();
|
|
4765
4765
|
if (j < u.top)
|
|
4766
4766
|
return this.$refs.dropdownMenu.scrollTop = x.offsetTop;
|
|
4767
|
-
if (
|
|
4767
|
+
if (E > u.bottom)
|
|
4768
4768
|
return this.$refs.dropdownMenu.scrollTop = x.offsetTop - (u.height - U);
|
|
4769
4769
|
}
|
|
4770
4770
|
},
|
|
@@ -4847,8 +4847,8 @@ const T_ = {
|
|
|
4847
4847
|
}
|
|
4848
4848
|
}, zv = (p, x) => {
|
|
4849
4849
|
const u = p.__vccOpts || p;
|
|
4850
|
-
for (const [j,
|
|
4851
|
-
u[j] =
|
|
4850
|
+
for (const [j, E] of x)
|
|
4851
|
+
u[j] = E;
|
|
4852
4852
|
return u;
|
|
4853
4853
|
}, R_ = {}, M_ = {
|
|
4854
4854
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4858,7 +4858,7 @@ const T_ = {
|
|
|
4858
4858
|
k_
|
|
4859
4859
|
];
|
|
4860
4860
|
function B_(p, x) {
|
|
4861
|
-
return ut(),
|
|
4861
|
+
return ut(), pt("svg", M_, W_);
|
|
4862
4862
|
}
|
|
4863
4863
|
const N_ = /* @__PURE__ */ zv(R_, [["render", B_]]), P_ = {}, F_ = {
|
|
4864
4864
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -4868,7 +4868,7 @@ const N_ = /* @__PURE__ */ zv(R_, [["render", B_]]), P_ = {}, F_ = {
|
|
|
4868
4868
|
U_
|
|
4869
4869
|
];
|
|
4870
4870
|
function V_(p, x) {
|
|
4871
|
-
return ut(),
|
|
4871
|
+
return ut(), pt("svg", F_, z_);
|
|
4872
4872
|
}
|
|
4873
4873
|
const H_ = /* @__PURE__ */ zv(P_, [["render", V_]]), Jv = {
|
|
4874
4874
|
Deselect: N_,
|
|
@@ -4879,13 +4879,13 @@ const H_ = /* @__PURE__ */ zv(P_, [["render", V_]]), Jv = {
|
|
|
4879
4879
|
const {
|
|
4880
4880
|
height: u,
|
|
4881
4881
|
top: j,
|
|
4882
|
-
left:
|
|
4882
|
+
left: E,
|
|
4883
4883
|
width: U
|
|
4884
4884
|
} = x.$refs.toggle.getBoundingClientRect();
|
|
4885
4885
|
let v = window.scrollX || window.pageXOffset, L = window.scrollY || window.pageYOffset;
|
|
4886
4886
|
p.unbindPosition = x.calculatePosition(p, x, {
|
|
4887
4887
|
width: U + "px",
|
|
4888
|
-
left: v +
|
|
4888
|
+
left: v + E + "px",
|
|
4889
4889
|
top: L + j + u + "px"
|
|
4890
4890
|
}), document.body.appendChild(p);
|
|
4891
4891
|
}
|
|
@@ -5098,8 +5098,8 @@ https://vue-select.org/api/props.html#getoptionkey`, p, x);
|
|
|
5098
5098
|
},
|
|
5099
5099
|
calculatePosition: {
|
|
5100
5100
|
type: Function,
|
|
5101
|
-
default(p, x, { width: u, top: j, left:
|
|
5102
|
-
p.style.top = j, p.style.left =
|
|
5101
|
+
default(p, x, { width: u, top: j, left: E }) {
|
|
5102
|
+
p.style.top = j, p.style.left = E, p.style.width = u;
|
|
5103
5103
|
}
|
|
5104
5104
|
},
|
|
5105
5105
|
dropdownShouldOpen: {
|
|
@@ -5349,14 +5349,14 @@ https://vue-select.org/api/props.html#getoptionkey`, p, x);
|
|
|
5349
5349
|
this.mousedown = !1;
|
|
5350
5350
|
},
|
|
5351
5351
|
onSearchKeyDown(p) {
|
|
5352
|
-
const x = (
|
|
5353
|
-
8: (
|
|
5354
|
-
9: (
|
|
5355
|
-
27: (
|
|
5356
|
-
38: (
|
|
5357
|
-
40: (
|
|
5352
|
+
const x = (E) => (E.preventDefault(), !this.isComposing && this.typeAheadSelect()), u = {
|
|
5353
|
+
8: (E) => this.maybeDeleteValue(),
|
|
5354
|
+
9: (E) => this.onTab(),
|
|
5355
|
+
27: (E) => this.onEscape(),
|
|
5356
|
+
38: (E) => (E.preventDefault(), this.typeAheadUp()),
|
|
5357
|
+
40: (E) => (E.preventDefault(), this.typeAheadDown())
|
|
5358
5358
|
};
|
|
5359
|
-
this.selectOnKeyCodes.forEach((
|
|
5359
|
+
this.selectOnKeyCodes.forEach((E) => u[E] = x);
|
|
5360
5360
|
const j = this.mapKeydown(u, this);
|
|
5361
5361
|
if (typeof j[p.keyCode] == "function")
|
|
5362
5362
|
return j[p.keyCode](p);
|
|
@@ -5372,9 +5372,9 @@ https://vue-select.org/api/props.html#getoptionkey`, p, x);
|
|
|
5372
5372
|
key: 0,
|
|
5373
5373
|
class: "vs__no-options"
|
|
5374
5374
|
}, u0 = /* @__PURE__ */ Nr(" Sorry, no matching options. "), s0 = ["id"];
|
|
5375
|
-
function a0(p, x, u, j,
|
|
5375
|
+
function a0(p, x, u, j, E, U) {
|
|
5376
5376
|
const v = pg("append-to-body");
|
|
5377
|
-
return ut(),
|
|
5377
|
+
return ut(), pt("div", {
|
|
5378
5378
|
dir: u.dir,
|
|
5379
5379
|
class: Hn(["v-select", U.stateClasses])
|
|
5380
5380
|
}, [
|
|
@@ -5390,23 +5390,23 @@ function a0(p, x, u, j, T, U) {
|
|
|
5390
5390
|
onMousedown: x[1] || (x[1] = (L) => U.toggleDropdown(L))
|
|
5391
5391
|
}, [
|
|
5392
5392
|
A("div", X_, [
|
|
5393
|
-
(ut(!0),
|
|
5393
|
+
(ut(!0), pt(kr, null, ao(U.selectedValue, (L, V) => ee(p.$slots, "selected-option-container", {
|
|
5394
5394
|
option: U.normalizeOptionForSlot(L),
|
|
5395
5395
|
deselect: U.deselect,
|
|
5396
5396
|
multiple: u.multiple,
|
|
5397
5397
|
disabled: u.disabled
|
|
5398
5398
|
}, () => [
|
|
5399
|
-
(ut(),
|
|
5399
|
+
(ut(), pt("span", {
|
|
5400
5400
|
key: u.getOptionKey(L),
|
|
5401
5401
|
class: "vs__selected"
|
|
5402
5402
|
}, [
|
|
5403
5403
|
ee(p.$slots, "selected-option", Pn(zn(U.normalizeOptionForSlot(L))), () => [
|
|
5404
5404
|
Nr(qt(u.getOptionLabel(L)), 1)
|
|
5405
5405
|
]),
|
|
5406
|
-
u.multiple ? (ut(),
|
|
5406
|
+
u.multiple ? (ut(), pt("button", {
|
|
5407
5407
|
key: 0,
|
|
5408
5408
|
ref_for: !0,
|
|
5409
|
-
ref: (Y) =>
|
|
5409
|
+
ref: (Y) => E.deselectButtons[V] = Y,
|
|
5410
5410
|
disabled: u.disabled,
|
|
5411
5411
|
type: "button",
|
|
5412
5412
|
class: "vs__deselect",
|
|
@@ -5415,7 +5415,7 @@ function a0(p, x, u, j, T, U) {
|
|
|
5415
5415
|
onClick: (Y) => U.deselect(L)
|
|
5416
5416
|
}, [
|
|
5417
5417
|
(ut(), Wr(Mv(U.childComponents.Deselect)))
|
|
5418
|
-
], 8, J_)) :
|
|
5418
|
+
], 8, J_)) : Se("", !0)
|
|
5419
5419
|
]))
|
|
5420
5420
|
])), 256)),
|
|
5421
5421
|
ee(p.$slots, "search", Pn(zn(U.scope.search)), () => [
|
|
@@ -5437,7 +5437,7 @@ function a0(p, x, u, j, T, U) {
|
|
|
5437
5437
|
[lo, U.showClearButton]
|
|
5438
5438
|
]),
|
|
5439
5439
|
ee(p.$slots, "open-indicator", Pn(zn(U.scope.openIndicator)), () => [
|
|
5440
|
-
u.noDrop ?
|
|
5440
|
+
u.noDrop ? Se("", !0) : (ut(), Wr(Mv(U.childComponents.OpenIndicator), Pn(qv({ key: 0 }, U.scope.openIndicator.attributes)), null, 16))
|
|
5441
5441
|
]),
|
|
5442
5442
|
ee(p.$slots, "spinner", Pn(zn(U.scope.spinner)), () => [
|
|
5443
5443
|
Fn(A("div", n0, "Loading...", 512), [
|
|
@@ -5447,8 +5447,8 @@ function a0(p, x, u, j, T, U) {
|
|
|
5447
5447
|
], 512)
|
|
5448
5448
|
], 40, j_),
|
|
5449
5449
|
Br(Vs, { name: u.transition }, {
|
|
5450
|
-
default:
|
|
5451
|
-
U.dropdownOpen ? Fn((ut(),
|
|
5450
|
+
default: $e(() => [
|
|
5451
|
+
U.dropdownOpen ? Fn((ut(), pt("ul", {
|
|
5452
5452
|
id: `vs${u.uid}__listbox`,
|
|
5453
5453
|
ref: "dropdownMenu",
|
|
5454
5454
|
key: `vs${u.uid}__listbox`,
|
|
@@ -5459,7 +5459,7 @@ function a0(p, x, u, j, T, U) {
|
|
|
5459
5459
|
onMouseup: x[3] || (x[3] = (...L) => U.onMouseUp && U.onMouseUp(...L))
|
|
5460
5460
|
}, [
|
|
5461
5461
|
ee(p.$slots, "list-header", Pn(zn(U.scope.listHeader))),
|
|
5462
|
-
(ut(!0),
|
|
5462
|
+
(ut(!0), pt(kr, null, ao(U.filteredOptions, (L, V) => (ut(), pt("li", {
|
|
5463
5463
|
id: `vs${u.uid}__option-${V}`,
|
|
5464
5464
|
key: u.getOptionKey(L),
|
|
5465
5465
|
role: "option",
|
|
@@ -5477,15 +5477,15 @@ function a0(p, x, u, j, T, U) {
|
|
|
5477
5477
|
Nr(qt(u.getOptionLabel(L)), 1)
|
|
5478
5478
|
])
|
|
5479
5479
|
], 42, i0))), 128)),
|
|
5480
|
-
U.filteredOptions.length === 0 ? (ut(),
|
|
5480
|
+
U.filteredOptions.length === 0 ? (ut(), pt("li", o0, [
|
|
5481
5481
|
ee(p.$slots, "no-options", Pn(zn(U.scope.noOptions)), () => [
|
|
5482
5482
|
u0
|
|
5483
5483
|
])
|
|
5484
|
-
])) :
|
|
5484
|
+
])) : Se("", !0),
|
|
5485
5485
|
ee(p.$slots, "list-footer", Pn(zn(U.scope.listFooter)))
|
|
5486
5486
|
], 40, r0)), [
|
|
5487
5487
|
[v]
|
|
5488
|
-
]) : (ut(),
|
|
5488
|
+
]) : (ut(), pt("ul", {
|
|
5489
5489
|
key: 1,
|
|
5490
5490
|
id: `vs${u.uid}__listbox`,
|
|
5491
5491
|
role: "listbox",
|
|
@@ -5511,7 +5511,7 @@ var l0 = Gs.exports, tg;
|
|
|
5511
5511
|
function f0() {
|
|
5512
5512
|
return tg || (tg = 1, function(p, x) {
|
|
5513
5513
|
(function() {
|
|
5514
|
-
var u, j = "4.17.21",
|
|
5514
|
+
var u, j = "4.17.21", E = 200, U = "Unsupported core-js use. Try https://npms.io/search?q=ponyfill.", v = "Expected a function", L = "Invalid `variable` option passed into `_.template`", V = "__lodash_hash_undefined__", Y = 500, X = "__lodash_placeholder__", Z = 1, Dt = 2, z = 4, N = 1, ot = 2, tt = 1, mt = 2, gt = 4, Lt = 8, Wt = 16, wt = 32, xt = 64, Et = 128, Yt = 256, at = 512, R = 30, I = "...", Bt = 800, me = 16, T = 1, O = 2, w = 3, S = 1 / 0, m = 9007199254740991, M = 17976931348623157e292, B = NaN, K = 4294967295, ht = K - 1, bt = K >>> 1, At = [
|
|
5515
5515
|
["ary", Et],
|
|
5516
5516
|
["bind", tt],
|
|
5517
5517
|
["bindKey", mt],
|
|
@@ -6167,7 +6167,7 @@ function f0() {
|
|
|
6167
6167
|
if (Jt == O)
|
|
6168
6168
|
W = Ft;
|
|
6169
6169
|
else if (!Ft) {
|
|
6170
|
-
if (Jt ==
|
|
6170
|
+
if (Jt == T)
|
|
6171
6171
|
continue t;
|
|
6172
6172
|
break t;
|
|
6173
6173
|
}
|
|
@@ -6299,7 +6299,7 @@ function f0() {
|
|
|
6299
6299
|
var n = this.__data__;
|
|
6300
6300
|
if (n instanceof Le) {
|
|
6301
6301
|
var r = n.__data__;
|
|
6302
|
-
if (!An || r.length <
|
|
6302
|
+
if (!An || r.length < E - 1)
|
|
6303
6303
|
return r.push([t, e]), this.size = ++n.size, this;
|
|
6304
6304
|
n = this.__data__ = new Ee(r);
|
|
6305
6305
|
}
|
|
@@ -6431,7 +6431,7 @@ function f0() {
|
|
|
6431
6431
|
var i = -1, s = Qn, a = !0, l = t.length, c = [], g = e.length;
|
|
6432
6432
|
if (!l)
|
|
6433
6433
|
return c;
|
|
6434
|
-
n && (e = ct(e, Qt(n))), r ? (s = ii, a = !1) : e.length >=
|
|
6434
|
+
n && (e = ct(e, Qt(n))), r ? (s = ii, a = !1) : e.length >= E && (s = $n, a = !1, e = new Qe(e));
|
|
6435
6435
|
t:
|
|
6436
6436
|
for (; ++i < l; ) {
|
|
6437
6437
|
var _ = t[i], y = n == null ? _ : n(_);
|
|
@@ -6834,7 +6834,7 @@ function f0() {
|
|
|
6834
6834
|
else g ? W = k && (r || b) : l ? W = k && b && (r || !C) : c ? W = k && b && !C && (r || !q) : C || q ? W = !1 : W = r ? y <= e : y < e;
|
|
6835
6835
|
W ? i = _ + 1 : s = _;
|
|
6836
6836
|
}
|
|
6837
|
-
return Mt(s,
|
|
6837
|
+
return Mt(s, ht);
|
|
6838
6838
|
}
|
|
6839
6839
|
function Cu(t, e) {
|
|
6840
6840
|
for (var n = -1, r = t.length, i = 0, s = []; ++n < r; ) {
|
|
@@ -6863,7 +6863,7 @@ function f0() {
|
|
|
6863
6863
|
var r = -1, i = Qn, s = t.length, a = !0, l = [], c = l;
|
|
6864
6864
|
if (n)
|
|
6865
6865
|
a = !1, i = ii;
|
|
6866
|
-
else if (s >=
|
|
6866
|
+
else if (s >= E) {
|
|
6867
6867
|
var g = e ? null : nc(t);
|
|
6868
6868
|
if (g)
|
|
6869
6869
|
return Xn(g);
|
|
@@ -9090,7 +9090,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
9090
9090
|
return this.reverse()[t](n).reverse();
|
|
9091
9091
|
};
|
|
9092
9092
|
}), ie(["filter", "map", "takeWhile"], function(t, e) {
|
|
9093
|
-
var n = e + 1, r = n ==
|
|
9093
|
+
var n = e + 1, r = n == T || n == w;
|
|
9094
9094
|
J.prototype[t] = function(i) {
|
|
9095
9095
|
var s = this.clone();
|
|
9096
9096
|
return s.__iteratees__.push({
|
|
@@ -9275,7 +9275,7 @@ function h0() {
|
|
|
9275
9275
|
tt.stopPropagation(), this.options.onClick();
|
|
9276
9276
|
}).bind(this)
|
|
9277
9277
|
), typeof this.options.offset == "object") {
|
|
9278
|
-
var Dt =
|
|
9278
|
+
var Dt = E("x", this.options), z = E("y", this.options), N = this.options.position == "left" ? Dt : "-" + Dt, ot = this.options.gravity == "toastify-top" ? z : "-" + z;
|
|
9279
9279
|
v.style.transform = "translate(" + N + "," + ot + ")";
|
|
9280
9280
|
}
|
|
9281
9281
|
return v;
|
|
@@ -9325,7 +9325,7 @@ function h0() {
|
|
|
9325
9325
|
}
|
|
9326
9326
|
return this;
|
|
9327
9327
|
};
|
|
9328
|
-
function
|
|
9328
|
+
function E(v, L) {
|
|
9329
9329
|
return L.offset[v] ? isNaN(L.offset[v]) ? L.offset[v] : L.offset[v] + "px" : "0px";
|
|
9330
9330
|
}
|
|
9331
9331
|
function U(v, L) {
|
|
@@ -9342,55 +9342,55 @@ function d0() {
|
|
|
9342
9342
|
(function(u, j) {
|
|
9343
9343
|
p.exports = j();
|
|
9344
9344
|
})(p0, function() {
|
|
9345
|
-
var u = 1e3, j = 6e4,
|
|
9346
|
-
var O = ["th", "st", "nd", "rd"], w =
|
|
9347
|
-
return "[" +
|
|
9348
|
-
} }, Lt = function(
|
|
9349
|
-
var S = String(
|
|
9350
|
-
return !S || S.length >= O ?
|
|
9351
|
-
}, Wt = { s: Lt, z: function(
|
|
9352
|
-
var O = -
|
|
9345
|
+
var u = 1e3, j = 6e4, E = 36e5, U = "millisecond", v = "second", L = "minute", V = "hour", Y = "day", X = "week", Z = "month", Dt = "quarter", z = "year", N = "date", ot = "Invalid Date", tt = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, mt = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, gt = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(T) {
|
|
9346
|
+
var O = ["th", "st", "nd", "rd"], w = T % 100;
|
|
9347
|
+
return "[" + T + (O[(w - 20) % 10] || O[w] || O[0]) + "]";
|
|
9348
|
+
} }, Lt = function(T, O, w) {
|
|
9349
|
+
var S = String(T);
|
|
9350
|
+
return !S || S.length >= O ? T : "" + Array(O + 1 - S.length).join(w) + T;
|
|
9351
|
+
}, Wt = { s: Lt, z: function(T) {
|
|
9352
|
+
var O = -T.utcOffset(), w = Math.abs(O), S = Math.floor(w / 60), m = w % 60;
|
|
9353
9353
|
return (O <= 0 ? "+" : "-") + Lt(S, 2, "0") + ":" + Lt(m, 2, "0");
|
|
9354
|
-
}, m: function
|
|
9355
|
-
if (O.date() < w.date()) return -
|
|
9354
|
+
}, m: function T(O, w) {
|
|
9355
|
+
if (O.date() < w.date()) return -T(w, O);
|
|
9356
9356
|
var S = 12 * (w.year() - O.year()) + (w.month() - O.month()), m = O.clone().add(S, Z), M = w - m < 0, B = O.clone().add(S + (M ? -1 : 1), Z);
|
|
9357
9357
|
return +(-(S + (w - m) / (M ? m - B : B - m)) || 0);
|
|
9358
|
-
}, a: function(
|
|
9359
|
-
return
|
|
9360
|
-
}, p: function(
|
|
9361
|
-
return { M: Z, y: z, w: X, d: Y, D: N, h: V, m: L, s: v, ms: U, Q: Dt }[
|
|
9362
|
-
}, u: function(
|
|
9363
|
-
return
|
|
9358
|
+
}, a: function(T) {
|
|
9359
|
+
return T < 0 ? Math.ceil(T) || 0 : Math.floor(T);
|
|
9360
|
+
}, p: function(T) {
|
|
9361
|
+
return { M: Z, y: z, w: X, d: Y, D: N, h: V, m: L, s: v, ms: U, Q: Dt }[T] || String(T || "").toLowerCase().replace(/s$/, "");
|
|
9362
|
+
}, u: function(T) {
|
|
9363
|
+
return T === void 0;
|
|
9364
9364
|
} }, wt = "en", xt = {};
|
|
9365
9365
|
xt[wt] = gt;
|
|
9366
|
-
var Et = "$isDayjsObject", Yt = function(
|
|
9367
|
-
return
|
|
9368
|
-
}, at = function
|
|
9366
|
+
var Et = "$isDayjsObject", Yt = function(T) {
|
|
9367
|
+
return T instanceof Bt || !(!T || !T[Et]);
|
|
9368
|
+
}, at = function T(O, w, S) {
|
|
9369
9369
|
var m;
|
|
9370
9370
|
if (!O) return wt;
|
|
9371
9371
|
if (typeof O == "string") {
|
|
9372
9372
|
var M = O.toLowerCase();
|
|
9373
9373
|
xt[M] && (m = M), w && (xt[M] = w, m = M);
|
|
9374
9374
|
var B = O.split("-");
|
|
9375
|
-
if (!m && B.length > 1) return
|
|
9375
|
+
if (!m && B.length > 1) return T(B[0]);
|
|
9376
9376
|
} else {
|
|
9377
9377
|
var K = O.name;
|
|
9378
9378
|
xt[K] = O, m = K;
|
|
9379
9379
|
}
|
|
9380
9380
|
return !S && m && (wt = m), m || !S && wt;
|
|
9381
|
-
}, R = function(
|
|
9382
|
-
if (Yt(
|
|
9381
|
+
}, R = function(T, O) {
|
|
9382
|
+
if (Yt(T)) return T.clone();
|
|
9383
9383
|
var w = typeof O == "object" ? O : {};
|
|
9384
|
-
return w.date =
|
|
9384
|
+
return w.date = T, w.args = arguments, new Bt(w);
|
|
9385
9385
|
}, I = Wt;
|
|
9386
|
-
I.l = at, I.i = Yt, I.w = function(
|
|
9387
|
-
return R(
|
|
9386
|
+
I.l = at, I.i = Yt, I.w = function(T, O) {
|
|
9387
|
+
return R(T, { locale: O.$L, utc: O.$u, x: O.$x, $offset: O.$offset });
|
|
9388
9388
|
};
|
|
9389
9389
|
var Bt = function() {
|
|
9390
|
-
function
|
|
9390
|
+
function T(w) {
|
|
9391
9391
|
this.$L = at(w.locale, null, !0), this.parse(w), this.$x = this.$x || w.x || {}, this[Et] = !0;
|
|
9392
9392
|
}
|
|
9393
|
-
var O =
|
|
9393
|
+
var O = T.prototype;
|
|
9394
9394
|
return O.parse = function(w) {
|
|
9395
9395
|
this.$d = function(S) {
|
|
9396
9396
|
var m = S.date, M = S.utc;
|
|
@@ -9400,8 +9400,8 @@ function d0() {
|
|
|
9400
9400
|
if (typeof m == "string" && !/Z$/i.test(m)) {
|
|
9401
9401
|
var B = m.match(tt);
|
|
9402
9402
|
if (B) {
|
|
9403
|
-
var K = B[2] - 1 || 0,
|
|
9404
|
-
return M ? new Date(Date.UTC(B[1], K, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0,
|
|
9403
|
+
var K = B[2] - 1 || 0, ht = (B[7] || "0").substring(0, 3);
|
|
9404
|
+
return M ? new Date(Date.UTC(B[1], K, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, ht)) : new Date(B[1], K, B[3] || 1, B[4] || 0, B[5] || 0, B[6] || 0, ht);
|
|
9405
9405
|
}
|
|
9406
9406
|
}
|
|
9407
9407
|
return new Date(m);
|
|
@@ -9430,7 +9430,7 @@ function d0() {
|
|
|
9430
9430
|
var m = this, M = !!I.u(S) || S, B = I.p(w), K = function(Gt, Rt) {
|
|
9431
9431
|
var Kt = I.w(m.$u ? Date.UTC(m.$y, Rt, Gt) : new Date(m.$y, Rt, Gt), m);
|
|
9432
9432
|
return M ? Kt : Kt.endOf(Y);
|
|
9433
|
-
},
|
|
9433
|
+
}, ht = function(Gt, Rt) {
|
|
9434
9434
|
return I.w(m.toDate()[Gt].apply(m.toDate("s"), (M ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Rt)), m);
|
|
9435
9435
|
}, bt = this.$W, At = this.$M, Ot = this.$D, ce = "set" + (this.$u ? "UTC" : "");
|
|
9436
9436
|
switch (B) {
|
|
@@ -9443,24 +9443,24 @@ function d0() {
|
|
|
9443
9443
|
return K(M ? Ot - he : Ot + (6 - he), At);
|
|
9444
9444
|
case Y:
|
|
9445
9445
|
case N:
|
|
9446
|
-
return
|
|
9446
|
+
return ht(ce + "Hours", 0);
|
|
9447
9447
|
case V:
|
|
9448
|
-
return
|
|
9448
|
+
return ht(ce + "Minutes", 1);
|
|
9449
9449
|
case L:
|
|
9450
|
-
return
|
|
9450
|
+
return ht(ce + "Seconds", 2);
|
|
9451
9451
|
case v:
|
|
9452
|
-
return
|
|
9452
|
+
return ht(ce + "Milliseconds", 3);
|
|
9453
9453
|
default:
|
|
9454
9454
|
return this.clone();
|
|
9455
9455
|
}
|
|
9456
9456
|
}, O.endOf = function(w) {
|
|
9457
9457
|
return this.startOf(w, !1);
|
|
9458
9458
|
}, O.$set = function(w, S) {
|
|
9459
|
-
var m, M = I.p(w), B = "set" + (this.$u ? "UTC" : ""), K = (m = {}, m[Y] = B + "Date", m[N] = B + "Date", m[Z] = B + "Month", m[z] = B + "FullYear", m[V] = B + "Hours", m[L] = B + "Minutes", m[v] = B + "Seconds", m[U] = B + "Milliseconds", m)[M],
|
|
9459
|
+
var m, M = I.p(w), B = "set" + (this.$u ? "UTC" : ""), K = (m = {}, m[Y] = B + "Date", m[N] = B + "Date", m[Z] = B + "Month", m[z] = B + "FullYear", m[V] = B + "Hours", m[L] = B + "Minutes", m[v] = B + "Seconds", m[U] = B + "Milliseconds", m)[M], ht = M === Y ? this.$D + (S - this.$W) : S;
|
|
9460
9460
|
if (M === Z || M === z) {
|
|
9461
9461
|
var bt = this.clone().set(N, 1);
|
|
9462
|
-
bt.$d[K](
|
|
9463
|
-
} else K && this.$d[K](
|
|
9462
|
+
bt.$d[K](ht), bt.init(), this.$d = bt.set(N, Math.min(this.$D, bt.daysInMonth())).$d;
|
|
9463
|
+
} else K && this.$d[K](ht);
|
|
9464
9464
|
return this.init(), this;
|
|
9465
9465
|
}, O.set = function(w, S) {
|
|
9466
9466
|
return this.clone().$set(w, S);
|
|
@@ -9477,14 +9477,14 @@ function d0() {
|
|
|
9477
9477
|
if (B === z) return this.set(z, this.$y + w);
|
|
9478
9478
|
if (B === Y) return K(1);
|
|
9479
9479
|
if (B === X) return K(7);
|
|
9480
|
-
var
|
|
9480
|
+
var ht = (m = {}, m[L] = j, m[V] = E, m[v] = u, m)[B] || 1, bt = this.$d.getTime() + w * ht;
|
|
9481
9481
|
return I.w(bt, this);
|
|
9482
9482
|
}, O.subtract = function(w, S) {
|
|
9483
9483
|
return this.add(-1 * w, S);
|
|
9484
9484
|
}, O.format = function(w) {
|
|
9485
9485
|
var S = this, m = this.$locale();
|
|
9486
9486
|
if (!this.isValid()) return m.invalidDate || ot;
|
|
9487
|
-
var M = w || "YYYY-MM-DDTHH:mm:ssZ", B = I.z(this), K = this.$H,
|
|
9487
|
+
var M = w || "YYYY-MM-DDTHH:mm:ssZ", B = I.z(this), K = this.$H, ht = this.$m, bt = this.$M, At = m.weekdays, Ot = m.months, ce = m.meridiem, Ae = function(Rt, Kt, we, Ye) {
|
|
9488
9488
|
return Rt && (Rt[Kt] || Rt(S, M)) || we[Kt].slice(0, Ye);
|
|
9489
9489
|
}, he = function(Rt) {
|
|
9490
9490
|
return I.s(K % 12 || 12, Rt, "0");
|
|
@@ -9528,13 +9528,13 @@ function d0() {
|
|
|
9528
9528
|
case "hh":
|
|
9529
9529
|
return he(2);
|
|
9530
9530
|
case "a":
|
|
9531
|
-
return Gt(K,
|
|
9531
|
+
return Gt(K, ht, !0);
|
|
9532
9532
|
case "A":
|
|
9533
|
-
return Gt(K,
|
|
9533
|
+
return Gt(K, ht, !1);
|
|
9534
9534
|
case "m":
|
|
9535
|
-
return String(
|
|
9535
|
+
return String(ht);
|
|
9536
9536
|
case "mm":
|
|
9537
|
-
return I.s(
|
|
9537
|
+
return I.s(ht, 2, "0");
|
|
9538
9538
|
case "s":
|
|
9539
9539
|
return String(S.$s);
|
|
9540
9540
|
case "ss":
|
|
@@ -9550,8 +9550,8 @@ function d0() {
|
|
|
9550
9550
|
}, O.utcOffset = function() {
|
|
9551
9551
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
9552
9552
|
}, O.diff = function(w, S, m) {
|
|
9553
|
-
var M, B = this, K = I.p(S),
|
|
9554
|
-
return I.m(B,
|
|
9553
|
+
var M, B = this, K = I.p(S), ht = R(w), bt = (ht.utcOffset() - this.utcOffset()) * j, At = this - ht, Ot = function() {
|
|
9554
|
+
return I.m(B, ht);
|
|
9555
9555
|
};
|
|
9556
9556
|
switch (K) {
|
|
9557
9557
|
case z:
|
|
@@ -9570,7 +9570,7 @@ function d0() {
|
|
|
9570
9570
|
M = (At - bt) / 864e5;
|
|
9571
9571
|
break;
|
|
9572
9572
|
case V:
|
|
9573
|
-
M = At /
|
|
9573
|
+
M = At / E;
|
|
9574
9574
|
break;
|
|
9575
9575
|
case L:
|
|
9576
9576
|
M = At / j;
|
|
@@ -9600,23 +9600,23 @@ function d0() {
|
|
|
9600
9600
|
return this.$d.toISOString();
|
|
9601
9601
|
}, O.toString = function() {
|
|
9602
9602
|
return this.$d.toUTCString();
|
|
9603
|
-
},
|
|
9603
|
+
}, T;
|
|
9604
9604
|
}(), me = Bt.prototype;
|
|
9605
|
-
return R.prototype = me, [["$ms", U], ["$s", v], ["$m", L], ["$H", V], ["$W", Y], ["$M", Z], ["$y", z], ["$D", N]].forEach(function(
|
|
9606
|
-
me[
|
|
9607
|
-
return this.$g(O,
|
|
9605
|
+
return R.prototype = me, [["$ms", U], ["$s", v], ["$m", L], ["$H", V], ["$W", Y], ["$M", Z], ["$y", z], ["$D", N]].forEach(function(T) {
|
|
9606
|
+
me[T[1]] = function(O) {
|
|
9607
|
+
return this.$g(O, T[0], T[1]);
|
|
9608
9608
|
};
|
|
9609
|
-
}), R.extend = function(
|
|
9610
|
-
return
|
|
9611
|
-
}, R.locale = at, R.isDayjs = Yt, R.unix = function(
|
|
9612
|
-
return R(1e3 *
|
|
9609
|
+
}), R.extend = function(T, O) {
|
|
9610
|
+
return T.$i || (T(O, Bt, R), T.$i = !0), R;
|
|
9611
|
+
}, R.locale = at, R.isDayjs = Yt, R.unix = function(T) {
|
|
9612
|
+
return R(1e3 * T);
|
|
9613
9613
|
}, R.en = xt[wt], R.Ls = xt, R.p = {}, R;
|
|
9614
9614
|
});
|
|
9615
9615
|
}(Pv)), Pv.exports;
|
|
9616
9616
|
}
|
|
9617
9617
|
d0();
|
|
9618
9618
|
function v0(p) {
|
|
9619
|
-
const [x, u, j] = p.relation.definition.split(":"),
|
|
9619
|
+
const [x, u, j] = p.relation.definition.split(":"), E = p.relation.api[u], U = ne(!1), v = ne([]), L = ne({
|
|
9620
9620
|
limit: 99999,
|
|
9621
9621
|
page: 1
|
|
9622
9622
|
});
|
|
@@ -9632,7 +9632,7 @@ function v0(p) {
|
|
|
9632
9632
|
page: L.value.page,
|
|
9633
9633
|
filter: JSON.stringify(V.query)
|
|
9634
9634
|
}));
|
|
9635
|
-
await
|
|
9635
|
+
await E.get(`/api/${j}`, {
|
|
9636
9636
|
params: Y.value
|
|
9637
9637
|
}).then((X) => X.data).then((X) => {
|
|
9638
9638
|
X.code == 200 && (v.value = X == null ? void 0 : X.data);
|
|
@@ -9665,7 +9665,7 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9665
9665
|
}),
|
|
9666
9666
|
emits: /* @__PURE__ */ Zs(["update:selected"], ["update:modelValue"]),
|
|
9667
9667
|
setup(p, { emit: x }) {
|
|
9668
|
-
const u = p, j = x,
|
|
9668
|
+
const u = p, j = x, E = og(p, "modelValue"), { options: U, isLoading: v, fetchData: L } = v0({
|
|
9669
9669
|
relation: u.fields.relation
|
|
9670
9670
|
}), V = ne(""), Y = ne(99999), X = ne(null), Z = ne(null), Dt = ne(!1), z = Vn(() => {
|
|
9671
9671
|
var R, I;
|
|
@@ -9674,13 +9674,13 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9674
9674
|
var R;
|
|
9675
9675
|
return (R = U.value) == null ? void 0 : R.filter(
|
|
9676
9676
|
(I) => {
|
|
9677
|
-
var Bt, me,
|
|
9678
|
-
return (O = (
|
|
9677
|
+
var Bt, me, T, O;
|
|
9678
|
+
return (O = (T = I == null ? void 0 : I[(me = (Bt = u.fields) == null ? void 0 : Bt.relation) == null ? void 0 : me.display]) == null ? void 0 : T.toLowerCase()) == null ? void 0 : O.includes(V.value);
|
|
9679
9679
|
}
|
|
9680
9680
|
);
|
|
9681
9681
|
}), ot = Vn(() => N.value.slice(0, Y.value)), tt = Vn(() => ot.value.length < N.value.length), mt = Vn(() => {
|
|
9682
9682
|
var R;
|
|
9683
|
-
return ((R = U.value) == null ? void 0 : R.find((I) => I.id ===
|
|
9683
|
+
return ((R = U.value) == null ? void 0 : R.find((I) => I.id === E.value)) || null;
|
|
9684
9684
|
}), gt = ne([]);
|
|
9685
9685
|
so(
|
|
9686
9686
|
() => u.query,
|
|
@@ -9702,44 +9702,44 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9702
9702
|
Y.value += 10, await Ks(), Bt.scrollTop = me;
|
|
9703
9703
|
}
|
|
9704
9704
|
}, Wt = async () => {
|
|
9705
|
-
U.value.length && !Array.isArray(
|
|
9705
|
+
U.value.length && !Array.isArray(E.value) || await L({ query: gt.value });
|
|
9706
9706
|
}, wt = async (R) => {
|
|
9707
|
-
Array.isArray(
|
|
9707
|
+
Array.isArray(E.value) && (E.value.includes(R) ? E.value = E.value.filter((Bt) => Bt !== R) : E.value.push(R)), await Wt();
|
|
9708
9708
|
}, xt = Vn(() => {
|
|
9709
|
-
if (Array.isArray(
|
|
9709
|
+
if (Array.isArray(E.value))
|
|
9710
9710
|
return N.value.length > 0 && N.value.every(
|
|
9711
|
-
(R) => Array.isArray(
|
|
9711
|
+
(R) => Array.isArray(E.value) && E.value.includes(R.id)
|
|
9712
9712
|
);
|
|
9713
9713
|
});
|
|
9714
9714
|
function Et() {
|
|
9715
|
-
if (Array.isArray(
|
|
9715
|
+
if (Array.isArray(E.value))
|
|
9716
9716
|
if (xt.value)
|
|
9717
|
-
|
|
9717
|
+
E.value = E.value.filter(
|
|
9718
9718
|
(R) => !N.value.map((I) => I.id).includes(R)
|
|
9719
9719
|
);
|
|
9720
9720
|
else {
|
|
9721
9721
|
const R = N.value.map((I) => I.id);
|
|
9722
|
-
|
|
9722
|
+
E.value = Array.from(/* @__PURE__ */ new Set([...E.value, ...R]));
|
|
9723
9723
|
}
|
|
9724
9724
|
}
|
|
9725
9725
|
const Yt = async () => {
|
|
9726
|
-
await Wt(), Dt.value = !0;
|
|
9726
|
+
Array.isArray(E.value) || (E.value = []), await Wt(), Dt.value = !0;
|
|
9727
9727
|
}, at = async () => {
|
|
9728
9728
|
V.value = "", Dt.value = !1;
|
|
9729
9729
|
};
|
|
9730
9730
|
return so(
|
|
9731
|
-
() =>
|
|
9731
|
+
() => E.value,
|
|
9732
9732
|
async () => {
|
|
9733
|
-
U.value.length && !Array.isArray(
|
|
9733
|
+
U.value.length && !Array.isArray(E.value) || (v.value = !0, E.value && await Wt(), v.value = !1);
|
|
9734
9734
|
}
|
|
9735
9735
|
), Hs(async () => {
|
|
9736
9736
|
X.value = new IntersectionObserver(Lt);
|
|
9737
9737
|
}), (R, I) => {
|
|
9738
|
-
var Bt, me,
|
|
9739
|
-
return ut(),
|
|
9738
|
+
var Bt, me, T, O, w, S;
|
|
9739
|
+
return ut(), pt("div", null, [
|
|
9740
9740
|
A("div", g0, [
|
|
9741
9741
|
A("label", _0, qt((Bt = R.fields) == null ? void 0 : Bt.name), 1),
|
|
9742
|
-
A("span", y0, qt((
|
|
9742
|
+
A("span", y0, qt((T = (me = R.fields) == null ? void 0 : me.options) == null ? void 0 : T.note), 1),
|
|
9743
9743
|
A("div", m0, [
|
|
9744
9744
|
A("div", w0, [
|
|
9745
9745
|
Fn(A("div", b0, I[3] || (I[3] = [
|
|
@@ -9750,8 +9750,8 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9750
9750
|
[lo, yn(v)]
|
|
9751
9751
|
]),
|
|
9752
9752
|
Br(yn(fg), {
|
|
9753
|
-
modelValue:
|
|
9754
|
-
"onUpdate:modelValue": I[0] || (I[0] = (m) =>
|
|
9753
|
+
modelValue: E.value,
|
|
9754
|
+
"onUpdate:modelValue": I[0] || (I[0] = (m) => E.value = m),
|
|
9755
9755
|
class: Hn(["synt-relation-control", {
|
|
9756
9756
|
"synt-office-relation-error": R.isError,
|
|
9757
9757
|
"synt-office-relation-disabled": R.isDisabled,
|
|
@@ -9765,13 +9765,13 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9765
9765
|
multiple: z.value,
|
|
9766
9766
|
onOpen: Wt
|
|
9767
9767
|
}, {
|
|
9768
|
-
option:
|
|
9768
|
+
option: $e((m) => {
|
|
9769
9769
|
var M, B;
|
|
9770
9770
|
return [
|
|
9771
9771
|
A("span", null, qt(m[(B = (M = R.fields) == null ? void 0 : M.relation) == null ? void 0 : B.display]), 1)
|
|
9772
9772
|
];
|
|
9773
9773
|
}),
|
|
9774
|
-
"list-footer":
|
|
9774
|
+
"list-footer": $e(() => [
|
|
9775
9775
|
Fn(A("li", {
|
|
9776
9776
|
ref_key: "load",
|
|
9777
9777
|
ref: Z,
|
|
@@ -9785,28 +9785,28 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9785
9785
|
_: 1
|
|
9786
9786
|
}, 8, ["modelValue", "class", "options", "reduce", "label", "disabled", "multiple"])
|
|
9787
9787
|
]),
|
|
9788
|
-
z.value ? (ut(),
|
|
9788
|
+
z.value ? (ut(), pt("button", {
|
|
9789
9789
|
key: 0,
|
|
9790
9790
|
type: "button",
|
|
9791
9791
|
class: "synt-office-relation-btn-expands",
|
|
9792
9792
|
onClick: Un(Yt, ["prevent"])
|
|
9793
9793
|
}, I[5] || (I[5] = [
|
|
9794
9794
|
A("i", { class: "synt-office-relation-btn-expands-icon fa-solid fa-up-right-and-down-left-from-center" }, null, -1)
|
|
9795
|
-
]))) :
|
|
9795
|
+
]))) : Se("", !0)
|
|
9796
9796
|
]),
|
|
9797
|
-
((S = R.error) == null ? void 0 : S.length) > 0 ? (ut(),
|
|
9797
|
+
((S = R.error) == null ? void 0 : S.length) > 0 ? (ut(), pt("p", x0, "*" + qt(R.error), 1)) : Se("", !0)
|
|
9798
9798
|
]),
|
|
9799
9799
|
Br(Vs, { name: "fade" }, {
|
|
9800
|
-
default:
|
|
9800
|
+
default: $e(() => {
|
|
9801
9801
|
var m;
|
|
9802
9802
|
return [
|
|
9803
|
-
Dt.value ? (ut(),
|
|
9803
|
+
Dt.value ? (ut(), pt("div", O0, [
|
|
9804
9804
|
A("div", $0, [
|
|
9805
9805
|
Br(yn(ug), {
|
|
9806
9806
|
label: R.fields.name,
|
|
9807
9807
|
icon: "fa-solid fa-table"
|
|
9808
9808
|
}, {
|
|
9809
|
-
end:
|
|
9809
|
+
end: $e(() => [
|
|
9810
9810
|
A("div", S0, [
|
|
9811
9811
|
A("button", {
|
|
9812
9812
|
type: "button",
|
|
@@ -9841,29 +9841,28 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9841
9841
|
A("thead", null, [
|
|
9842
9842
|
A("tr", null, [
|
|
9843
9843
|
A("th", null, [
|
|
9844
|
-
|
|
9845
|
-
key: 0,
|
|
9844
|
+
A("input", {
|
|
9846
9845
|
type: "checkbox",
|
|
9847
9846
|
class: "synt-office-relation-modal-table-checkbox",
|
|
9848
9847
|
checked: xt.value,
|
|
9849
9848
|
onChange: Et
|
|
9850
|
-
}, null, 40, E0)
|
|
9849
|
+
}, null, 40, E0)
|
|
9851
9850
|
]),
|
|
9852
9851
|
A("th", T0, qt((m = R.fields) == null ? void 0 : m.name), 1)
|
|
9853
9852
|
])
|
|
9854
9853
|
]),
|
|
9855
9854
|
A("tbody", null, [
|
|
9856
|
-
(ut(!0),
|
|
9855
|
+
(ut(!0), pt(kr, null, ao(N.value, (M) => {
|
|
9857
9856
|
var B, K;
|
|
9858
|
-
return ut(),
|
|
9857
|
+
return ut(), pt("tr", {
|
|
9859
9858
|
key: M.id
|
|
9860
9859
|
}, [
|
|
9861
9860
|
A("td", null, [
|
|
9862
9861
|
A("input", {
|
|
9863
9862
|
type: "checkbox",
|
|
9864
9863
|
class: "synt-office-relation-modal-table-checkbox",
|
|
9865
|
-
checked: Array.isArray(
|
|
9866
|
-
onChange: (
|
|
9864
|
+
checked: Array.isArray(E.value) && E.value.includes(M.id),
|
|
9865
|
+
onChange: (ht) => wt(M.id)
|
|
9867
9866
|
}, null, 40, I0)
|
|
9868
9867
|
]),
|
|
9869
9868
|
A("td", null, [
|
|
@@ -9884,7 +9883,7 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9884
9883
|
])
|
|
9885
9884
|
])
|
|
9886
9885
|
])
|
|
9887
|
-
])) :
|
|
9886
|
+
])) : Se("", !0)
|
|
9888
9887
|
];
|
|
9889
9888
|
}),
|
|
9890
9889
|
_: 1
|
|
@@ -9910,9 +9909,9 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9910
9909
|
emits: /* @__PURE__ */ Zs(["update:selected"], ["update:modelValue"]),
|
|
9911
9910
|
setup(p, { emit: x }) {
|
|
9912
9911
|
var wt, xt, Et, Yt;
|
|
9913
|
-
const u = p, j = x,
|
|
9912
|
+
const u = p, j = x, E = og(p, "modelValue"), U = ne([]), v = ne(1), L = ne(!0), V = ne(!1), Y = ne(""), X = ne(null), Z = ne(null), [Dt, z, N] = (xt = (wt = u.fields) == null ? void 0 : wt.relation.definition) == null ? void 0 : xt.split(":"), ot = (Yt = (Et = u.fields) == null ? void 0 : Et.relation) == null ? void 0 : Yt.api[z], tt = Vn(() => {
|
|
9914
9913
|
var at;
|
|
9915
|
-
return ((at = U.value) == null ? void 0 : at.find((R) => R.id ===
|
|
9914
|
+
return ((at = U.value) == null ? void 0 : at.find((R) => R.id === E.value)) || null;
|
|
9916
9915
|
});
|
|
9917
9916
|
async function mt(at = !1) {
|
|
9918
9917
|
if (V.value || !L.value) return;
|
|
@@ -9924,9 +9923,9 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9924
9923
|
limit: rg,
|
|
9925
9924
|
page: v.value,
|
|
9926
9925
|
filter: JSON.stringify(u.query)
|
|
9927
|
-
},
|
|
9928
|
-
if (
|
|
9929
|
-
const O =
|
|
9926
|
+
}, T = (await ot.get(`/api/${N}/display`, { params: Bt })).data;
|
|
9927
|
+
if (T.code == 200) {
|
|
9928
|
+
const O = T.data;
|
|
9930
9929
|
at ? (U.value = O, v.value = 2) : (U.value.push(...O), v.value++), O.length < rg && (L.value = !1);
|
|
9931
9930
|
}
|
|
9932
9931
|
} catch (Bt) {
|
|
@@ -9936,9 +9935,9 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9936
9935
|
}
|
|
9937
9936
|
}
|
|
9938
9937
|
async function gt() {
|
|
9939
|
-
if (
|
|
9938
|
+
if (E.value)
|
|
9940
9939
|
try {
|
|
9941
|
-
const at = await ot.get(`/api/${N}/${
|
|
9940
|
+
const at = await ot.get(`/api/${N}/${E.value}`);
|
|
9942
9941
|
at.data.code == 200 && (U.value = [at.data.data]);
|
|
9943
9942
|
} catch (at) {
|
|
9944
9943
|
console.error("fetchOne error", at);
|
|
@@ -9953,7 +9952,7 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9953
9952
|
var at;
|
|
9954
9953
|
(at = X.value) == null || at.disconnect(), await gt();
|
|
9955
9954
|
}
|
|
9956
|
-
return so(() =>
|
|
9955
|
+
return so(() => E.value, gt), so(
|
|
9957
9956
|
() => Y.value,
|
|
9958
9957
|
lg.debounce(async () => {
|
|
9959
9958
|
Y.value.length < 3 || (v.value = 1, L.value = !0, await mt(!0));
|
|
@@ -9968,8 +9967,8 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9968
9967
|
var at;
|
|
9969
9968
|
(at = X.value) == null || at.disconnect();
|
|
9970
9969
|
}), (at, R) => {
|
|
9971
|
-
var I, Bt, me,
|
|
9972
|
-
return ut(),
|
|
9970
|
+
var I, Bt, me, T, O, w;
|
|
9971
|
+
return ut(), pt("div", B0, [
|
|
9973
9972
|
A("label", N0, qt((I = at.fields) == null ? void 0 : I.name), 1),
|
|
9974
9973
|
A("span", P0, qt((me = (Bt = at.fields) == null ? void 0 : Bt.options) == null ? void 0 : me.note), 1),
|
|
9975
9974
|
A("div", F0, [
|
|
@@ -9982,8 +9981,8 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9982
9981
|
[lo, V.value]
|
|
9983
9982
|
]),
|
|
9984
9983
|
Br(yn(fg), {
|
|
9985
|
-
modelValue:
|
|
9986
|
-
"onUpdate:modelValue": R[0] || (R[0] = (S) =>
|
|
9984
|
+
modelValue: E.value,
|
|
9985
|
+
"onUpdate:modelValue": R[0] || (R[0] = (S) => E.value = S),
|
|
9987
9986
|
class: Hn(["lux-relation-control", {
|
|
9988
9987
|
"lux-office-relation-error": at.isError,
|
|
9989
9988
|
"lux-office-relation-disabled": at.isDisabled,
|
|
@@ -9991,7 +9990,7 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9991
9990
|
}]),
|
|
9992
9991
|
options: U.value,
|
|
9993
9992
|
reduce: (S) => S.id,
|
|
9994
|
-
label: (O = (
|
|
9993
|
+
label: (O = (T = at.fields) == null ? void 0 : T.relation) == null ? void 0 : O.display,
|
|
9995
9994
|
placeholder: "Ketik 3 huruf untuk mencari...",
|
|
9996
9995
|
disabled: at.isDisabled,
|
|
9997
9996
|
filterable: !1,
|
|
@@ -9999,13 +9998,13 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
9999
9998
|
onClose: Wt,
|
|
10000
9999
|
onSearch: R[1] || (R[1] = (S) => Y.value = S == null ? void 0 : S.toLowerCase())
|
|
10001
10000
|
}, {
|
|
10002
|
-
option:
|
|
10001
|
+
option: $e((S) => {
|
|
10003
10002
|
var m, M;
|
|
10004
10003
|
return [
|
|
10005
10004
|
A("span", null, qt(S[(M = (m = at.fields) == null ? void 0 : m.relation) == null ? void 0 : M.display]), 1)
|
|
10006
10005
|
];
|
|
10007
10006
|
}),
|
|
10008
|
-
"list-footer":
|
|
10007
|
+
"list-footer": $e(() => [
|
|
10009
10008
|
Fn(A("li", {
|
|
10010
10009
|
ref_key: "loadMoreTrigger",
|
|
10011
10010
|
ref: Z,
|
|
@@ -10020,7 +10019,7 @@ const g0 = { class: "synt-office-relation-wrapper" }, _0 = { class: "synt-office
|
|
|
10020
10019
|
}, 8, ["modelValue", "class", "options", "reduce", "label", "disabled"])
|
|
10021
10020
|
])
|
|
10022
10021
|
]),
|
|
10023
|
-
at.error && ((w = at.error) == null ? void 0 : w.length) > 0 ? (ut(),
|
|
10022
|
+
at.error && ((w = at.error) == null ? void 0 : w.length) > 0 ? (ut(), pt("p", V0, "*" + qt(at.error), 1)) : Se("", !0)
|
|
10024
10023
|
]);
|
|
10025
10024
|
};
|
|
10026
10025
|
}
|