@anzusystems/common-admin 1.47.0-beta.dev-1789897769 → 1.47.0-beta.dev-1789936376
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/{AFormRemoteAutocomplete-DIYc08Pe.mjs → AFormRemoteAutocomplete-C7LoRttw.mjs} +684 -642
- package/dist/AFormRemoteAutocomplete-C7LoRttw.mjs.map +1 -0
- package/dist/common-admin.d.ts +496 -450
- package/dist/common-admin.js +4773 -4779
- package/dist/common-admin.js.map +1 -1
- package/dist/{esm-Dov5R7kE.mjs → esm-DkZNKq8-.mjs} +2 -2
- package/dist/{esm-Dov5R7kE.mjs.map → esm-DkZNKq8-.mjs.map} +1 -1
- package/dist/labs.d.ts +107 -16
- package/dist/labs.js +697 -730
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-Db3zCeVG.mjs → webfontloader-4S5HXEWX.mjs} +2 -2
- package/dist/{webfontloader-Db3zCeVG.mjs.map → webfontloader-4S5HXEWX.mjs.map} +1 -1
- package/package.json +1 -1
- package/src/eslint/plugin.mjs +128 -33
- package/dist/AFormRemoteAutocomplete-DIYc08Pe.mjs.map +0 -1
|
@@ -3158,14 +3158,81 @@ function ys(e, t, n = {}) {
|
|
|
3158
3158
|
};
|
|
3159
3159
|
}
|
|
3160
3160
|
//#endregion
|
|
3161
|
-
//#region src/labs/
|
|
3162
|
-
var bs = {
|
|
3161
|
+
//#region src/labs/api/listBody.ts
|
|
3162
|
+
var bs = (e, t, n) => {
|
|
3163
|
+
if (!Vt(e) || !Array.isArray(e.data)) throw new gi(t, void 0, "Expected a list body, url: " + n);
|
|
3164
|
+
let { data: r, totalCount: i, hasNextPage: a, bigTable: o } = e;
|
|
3165
|
+
return Rt(a) ? {
|
|
3166
|
+
items: r,
|
|
3167
|
+
mode: "infinite",
|
|
3168
|
+
pagination: {
|
|
3169
|
+
hasNextPage: a,
|
|
3170
|
+
totalCount: 0
|
|
3171
|
+
},
|
|
3172
|
+
countIsBound: !1
|
|
3173
|
+
} : Ft(i) ? {
|
|
3174
|
+
items: r,
|
|
3175
|
+
mode: "counted",
|
|
3176
|
+
pagination: {
|
|
3177
|
+
totalCount: i,
|
|
3178
|
+
hasNextPage: null
|
|
3179
|
+
},
|
|
3180
|
+
countIsBound: o === !0
|
|
3181
|
+
} : {
|
|
3182
|
+
items: r,
|
|
3183
|
+
mode: "unknown",
|
|
3184
|
+
pagination: {},
|
|
3185
|
+
countIsBound: !1
|
|
3186
|
+
};
|
|
3187
|
+
}, xs = (e, t, n) => {
|
|
3188
|
+
if (!Array.isArray(e)) throw new gi(t, void 0, "Expected an array body, url: " + n);
|
|
3189
|
+
return e;
|
|
3190
|
+
}, Ss = (e) => {
|
|
3191
|
+
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, cancelPrevious: s = !1, method: c = "GET", shape: l = "envelope" } = e, u = ka({ cancelPrevious: s });
|
|
3192
|
+
return {
|
|
3193
|
+
execute: async (e = {}) => {
|
|
3194
|
+
let { urlTemplate: s, urlParams: d, body: f, signal: p } = e, m, h;
|
|
3195
|
+
try {
|
|
3196
|
+
let e = await u.run((e) => {
|
|
3197
|
+
let n = U(s) ? s : i;
|
|
3198
|
+
if (H(n)) throw new Xr(void 0, "Url template is undefined");
|
|
3199
|
+
let r = !W(f) && !H(f);
|
|
3200
|
+
if (c === "GET" && r) throw new Xr(void 0, "A GET request does not carry a body -- set method, or pass the value through options.params");
|
|
3201
|
+
let l = U(d) ? d : a, u = H(l) ? n : ma(n, l), p = {
|
|
3202
|
+
...Ta(o),
|
|
3203
|
+
method: c,
|
|
3204
|
+
url: u,
|
|
3205
|
+
signal: e
|
|
3206
|
+
};
|
|
3207
|
+
r && (p.data = JSON.stringify(f));
|
|
3208
|
+
let h = t();
|
|
3209
|
+
return m = u, h.request(p);
|
|
3210
|
+
}, p);
|
|
3211
|
+
h = e.config;
|
|
3212
|
+
let n = () => Oa(t, m, o, void 0, h);
|
|
3213
|
+
if (!ha(e.status)) throw new gi(e.status);
|
|
3214
|
+
if (e.status === 204) return [];
|
|
3215
|
+
if (!Ca(e)) throw new gi(e.status, void 0, "Expected a response body, url: " + n());
|
|
3216
|
+
return l === "array" ? xs(e.data, e.status, n()) : bs(e.data, e.status, n()).items;
|
|
3217
|
+
} catch (e) {
|
|
3218
|
+
let i = {
|
|
3219
|
+
system: n,
|
|
3220
|
+
entity: r,
|
|
3221
|
+
url: Oa(t, m, o, e, h)
|
|
3222
|
+
};
|
|
3223
|
+
throw xa(Sa(e, i), i);
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
abort: u.abort,
|
|
3227
|
+
loading: u.loading
|
|
3228
|
+
};
|
|
3229
|
+
}, Cs = {
|
|
3163
3230
|
CurrentMonth: "cm",
|
|
3164
3231
|
LastMonth: "lm",
|
|
3165
3232
|
Last3Months: "l3m",
|
|
3166
3233
|
Custom: "custom"
|
|
3167
3234
|
};
|
|
3168
|
-
function
|
|
3235
|
+
function ws(e = void 0) {
|
|
3169
3236
|
let { t } = me(), r = n(() => {
|
|
3170
3237
|
let n = [
|
|
3171
3238
|
{
|
|
@@ -3189,19 +3256,19 @@ function xs(e = void 0) {
|
|
|
3189
3256
|
title: "28 dní"
|
|
3190
3257
|
},
|
|
3191
3258
|
{
|
|
3192
|
-
value:
|
|
3259
|
+
value: Cs.CurrentMonth,
|
|
3193
3260
|
title: "Prebiehajúci mesiac"
|
|
3194
3261
|
},
|
|
3195
3262
|
{
|
|
3196
|
-
value:
|
|
3263
|
+
value: Cs.LastMonth,
|
|
3197
3264
|
title: "Minulý mesiac"
|
|
3198
3265
|
},
|
|
3199
3266
|
{
|
|
3200
|
-
value:
|
|
3267
|
+
value: Cs.Last3Months,
|
|
3201
3268
|
title: "Posledné 3 mesiace"
|
|
3202
3269
|
},
|
|
3203
3270
|
{
|
|
3204
|
-
value:
|
|
3271
|
+
value: Cs.Custom,
|
|
3205
3272
|
title: "Vlastné"
|
|
3206
3273
|
}
|
|
3207
3274
|
];
|
|
@@ -3212,7 +3279,7 @@ function xs(e = void 0) {
|
|
|
3212
3279
|
getTimeIntervalOption: (e) => r.value.find((t) => t.value === e)
|
|
3213
3280
|
};
|
|
3214
3281
|
}
|
|
3215
|
-
function
|
|
3282
|
+
function Ts(e) {
|
|
3216
3283
|
let { datesCompare: t, required: r } = oo(), i = n(() => e.value.from), a = { dialogData: {
|
|
3217
3284
|
from: {
|
|
3218
3285
|
required: r,
|
|
@@ -3227,7 +3294,7 @@ function Ss(e) {
|
|
|
3227
3294
|
}
|
|
3228
3295
|
//#endregion
|
|
3229
3296
|
//#region src/labs/api/useApiQueryBuilder.ts
|
|
3230
|
-
function
|
|
3297
|
+
function Es() {
|
|
3231
3298
|
let e = M([]), t = (e) => {
|
|
3232
3299
|
c("limit", e);
|
|
3233
3300
|
}, n = (e, t) => {
|
|
@@ -3244,9 +3311,9 @@ function Cs() {
|
|
|
3244
3311
|
};
|
|
3245
3312
|
let c = Xi(), l = Ji(c);
|
|
3246
3313
|
switch (o) {
|
|
3247
|
-
case
|
|
3248
|
-
case
|
|
3249
|
-
case
|
|
3314
|
+
case Cs.CurrentMonth: return ua(l, "utc", 0, !1);
|
|
3315
|
+
case Cs.LastMonth: return ua(l, "utc", -1, !1);
|
|
3316
|
+
case Cs.Last3Months: return ua(l, "utc", -2, !0);
|
|
3250
3317
|
default: if (Ft(o)) return {
|
|
3251
3318
|
from: ta($i(o * -1, l)),
|
|
3252
3319
|
until: c
|
|
@@ -3295,36 +3362,11 @@ function Cs() {
|
|
|
3295
3362
|
};
|
|
3296
3363
|
}
|
|
3297
3364
|
//#endregion
|
|
3298
|
-
//#region src/labs/api/
|
|
3299
|
-
var
|
|
3300
|
-
|
|
3301
|
-
let { data: r, totalCount: i, hasNextPage: a, bigTable: o } = e;
|
|
3302
|
-
return Rt(a) ? {
|
|
3303
|
-
items: r,
|
|
3304
|
-
mode: "infinite",
|
|
3305
|
-
pagination: {
|
|
3306
|
-
hasNextPage: a,
|
|
3307
|
-
totalCount: 0
|
|
3308
|
-
},
|
|
3309
|
-
countIsBound: !1
|
|
3310
|
-
} : Ft(i) ? {
|
|
3311
|
-
items: r,
|
|
3312
|
-
mode: "counted",
|
|
3313
|
-
pagination: {
|
|
3314
|
-
totalCount: i,
|
|
3315
|
-
hasNextPage: null
|
|
3316
|
-
},
|
|
3317
|
-
countIsBound: o === !0
|
|
3318
|
-
} : {
|
|
3319
|
-
items: r,
|
|
3320
|
-
mode: "unknown",
|
|
3321
|
-
pagination: {},
|
|
3322
|
-
countIsBound: !1
|
|
3323
|
-
};
|
|
3324
|
-
}, Ts = (e, t, n) => {
|
|
3325
|
-
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } = Cs();
|
|
3365
|
+
//#region src/labs/api/useApiFetchList.ts
|
|
3366
|
+
var Ds = (e, t, n) => {
|
|
3367
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } = Es();
|
|
3326
3368
|
return r(e.value.rowsPerPage), i(e.value.page, e.value.rowsPerPage), e.value.sortBy && a(e.value.sortBy.key, e.value.sortBy.order === Cr.Desc), s(t, n), o();
|
|
3327
|
-
},
|
|
3369
|
+
}, Os = (e) => {
|
|
3328
3370
|
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, cancelPrevious: s = !1 } = e, c = ka({ cancelPrevious: s });
|
|
3329
3371
|
return {
|
|
3330
3372
|
execute: async (e, s, l, u = {}) => {
|
|
@@ -3339,7 +3381,7 @@ var ws = (e, t, n) => {
|
|
|
3339
3381
|
_ = r, v = n;
|
|
3340
3382
|
let c = U(d) ? d : i;
|
|
3341
3383
|
if (H(c)) throw new Xr(void 0, "Url template is undefined");
|
|
3342
|
-
let u = U(f) ? f : a, m = l.general.elastic || p ? "/search" : "", g = (H(u) ? c : ma(c, u)) + m +
|
|
3384
|
+
let u = U(f) ? f : a, m = l.general.elastic || p ? "/search" : "", g = (H(u) ? c : ma(c, u)) + m + Ds(e, s, l), y = t();
|
|
3343
3385
|
return h = g, y.get(g, {
|
|
3344
3386
|
...Ta(o),
|
|
3345
3387
|
signal: n
|
|
@@ -3354,7 +3396,7 @@ var ws = (e, t, n) => {
|
|
|
3354
3396
|
currentViewCount: 0
|
|
3355
3397
|
}), [];
|
|
3356
3398
|
if (!Ca(n)) throw new gi(n.status, void 0, "Expected a response body, url: " + r());
|
|
3357
|
-
let u =
|
|
3399
|
+
let u = bs(n.data, n.status, r());
|
|
3358
3400
|
return u.mode !== "unknown" && y({
|
|
3359
3401
|
...u.pagination,
|
|
3360
3402
|
currentViewCount: u.items.length
|
|
@@ -3371,10 +3413,10 @@ var ws = (e, t, n) => {
|
|
|
3371
3413
|
abort: c.abort,
|
|
3372
3414
|
loading: c.loading
|
|
3373
3415
|
};
|
|
3374
|
-
},
|
|
3375
|
-
function
|
|
3416
|
+
}, ks = () => ({ rowsPerPage: 25 });
|
|
3417
|
+
function As(e, t = Cr.Desc, n = {}, r) {
|
|
3376
3418
|
let i = {
|
|
3377
|
-
...
|
|
3419
|
+
...ks(),
|
|
3378
3420
|
...n
|
|
3379
3421
|
}, a = r ?? M({
|
|
3380
3422
|
sortBy: W(e) ? null : {
|
|
@@ -3432,10 +3474,10 @@ function Os(e, t = Cr.Desc, n = {}, r) {
|
|
|
3432
3474
|
}
|
|
3433
3475
|
//#endregion
|
|
3434
3476
|
//#region src/labs/api/useApiFetchByIds.ts
|
|
3435
|
-
var
|
|
3436
|
-
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, queryAddFilter: s, queryAdd: c } =
|
|
3477
|
+
var js = (e, t, n = "id") => {
|
|
3478
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, queryAddFilter: s, queryAdd: c } = Es(), l = e.length;
|
|
3437
3479
|
return r(l), i(1, l), a(n, !1), t ? c(n, e.join(",")) : s("in", n, e.join(",")), o();
|
|
3438
|
-
},
|
|
3480
|
+
}, Ms = (e) => {
|
|
3439
3481
|
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, isSearchApi: s = !1, field: c = "id", cancelPrevious: l = !1 } = e, u = ka({ cancelPrevious: l });
|
|
3440
3482
|
return {
|
|
3441
3483
|
execute: async (e, l = {}) => {
|
|
@@ -3444,7 +3486,7 @@ var ks = (e, t, n = "id") => {
|
|
|
3444
3486
|
let n = await u.run((n) => {
|
|
3445
3487
|
let r = U(d) ? d : i;
|
|
3446
3488
|
if (H(r)) throw new Xr(void 0, "Url template is undefined");
|
|
3447
|
-
let l = U(f) ? f : a, u = (H(l) ? r : ma(r, l)) +
|
|
3489
|
+
let l = U(f) ? f : a, u = (H(l) ? r : ma(r, l)) + js(e, s, c), p = t();
|
|
3448
3490
|
return m = u, p.get(u, {
|
|
3449
3491
|
...Ta(o),
|
|
3450
3492
|
signal: n
|
|
@@ -3455,7 +3497,7 @@ var ks = (e, t, n = "id") => {
|
|
|
3455
3497
|
if (!ha(n.status)) throw new gi(n.status);
|
|
3456
3498
|
if (n.status === 204) return [];
|
|
3457
3499
|
if (!Ca(n)) throw new gi(n.status, void 0, "Expected a response body, url: " + r());
|
|
3458
|
-
return
|
|
3500
|
+
return bs(n.data, n.status, r()).items;
|
|
3459
3501
|
} catch (e) {
|
|
3460
3502
|
let i = {
|
|
3461
3503
|
system: n,
|
|
@@ -3468,7 +3510,7 @@ var ks = (e, t, n = "id") => {
|
|
|
3468
3510
|
abort: u.abort,
|
|
3469
3511
|
loading: u.loading
|
|
3470
3512
|
};
|
|
3471
|
-
},
|
|
3513
|
+
}, Ns = /* @__PURE__ */ u({
|
|
3472
3514
|
__name: "AFilterBooleanSelect",
|
|
3473
3515
|
props: {
|
|
3474
3516
|
name: {},
|
|
@@ -3542,7 +3584,7 @@ var ks = (e, t, n = "id") => {
|
|
|
3542
3584
|
"clearable"
|
|
3543
3585
|
]));
|
|
3544
3586
|
}
|
|
3545
|
-
}),
|
|
3587
|
+
}), Ps = /* @__PURE__ */ u({
|
|
3546
3588
|
__name: "AFilterString",
|
|
3547
3589
|
props: {
|
|
3548
3590
|
name: {},
|
|
@@ -3600,10 +3642,10 @@ var ks = (e, t, n = "id") => {
|
|
|
3600
3642
|
"data-cy"
|
|
3601
3643
|
]));
|
|
3602
3644
|
}
|
|
3603
|
-
}),
|
|
3645
|
+
}), Fs = {
|
|
3604
3646
|
key: 0,
|
|
3605
3647
|
class: "font-italic pl-1"
|
|
3606
|
-
},
|
|
3648
|
+
}, Is = 300, Ls = /* @__PURE__ */ u({
|
|
3607
3649
|
__name: "AFilterRemoteAutocomplete",
|
|
3608
3650
|
props: {
|
|
3609
3651
|
name: {},
|
|
@@ -3627,7 +3669,7 @@ var ks = (e, t, n = "id") => {
|
|
|
3627
3669
|
if (H(_.fields[x]) || H(v[x])) throw Error(`[${y}] Incorrect filter inner config. FilterByField is '${x}' and available options are ${Object.keys(v).join(", ")}.`);
|
|
3628
3670
|
let C = n(() => m.fields[o.name]), w = M([]), T = M(""), E = M(!1), D = M(null), O = M(0), { t: A } = me(), j = () => {
|
|
3629
3671
|
E.value = !1;
|
|
3630
|
-
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } =
|
|
3672
|
+
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } = As(W(S) ? null : S.key, S?.order), te = M([]), P = M([]), ne = M(!0), re = M(!1), ie = n(() => {
|
|
3631
3673
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
3632
3674
|
t.forEach((t) => {
|
|
3633
3675
|
e.set(t.value, {
|
|
@@ -3709,7 +3751,7 @@ var ks = (e, t, n = "id") => {
|
|
|
3709
3751
|
}
|
|
3710
3752
|
O.value++, ue(e, O.value);
|
|
3711
3753
|
}
|
|
3712
|
-
}, { debounce:
|
|
3754
|
+
}, { debounce: Is });
|
|
3713
3755
|
let B = async () => {
|
|
3714
3756
|
await de("mounted");
|
|
3715
3757
|
}, be = n(() => H(o.placeholder) ? C.value.variant === "startsWith" ? A("common.model.filterPlaceholder.startsWith") : C.value.variant === "eq" ? A("common.model.filterPlaceholder.eq") : C.value.variant === "search" ? A("common.model.filterPlaceholder.contains") : "" : o.placeholder), xe = n(() => {
|
|
@@ -3775,7 +3817,7 @@ var ks = (e, t, n = "id") => {
|
|
|
3775
3817
|
text: `${t.title} (${t.raw.subtitle})`,
|
|
3776
3818
|
disabled: t.props.disabled
|
|
3777
3819
|
}, {
|
|
3778
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
3820
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", Fs, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
3779
3821
|
_: 2
|
|
3780
3822
|
}, 1032, [
|
|
3781
3823
|
"closable",
|
|
@@ -3802,12 +3844,12 @@ var ks = (e, t, n = "id") => {
|
|
|
3802
3844
|
});
|
|
3803
3845
|
//#endregion
|
|
3804
3846
|
//#region src/utils/enum.ts
|
|
3805
|
-
function
|
|
3847
|
+
function Rs(e, t) {
|
|
3806
3848
|
return t.includes(e);
|
|
3807
3849
|
}
|
|
3808
3850
|
//#endregion
|
|
3809
3851
|
//#region src/labs/filters/AFilterRemoteAutocompleteWithMinimal.vue
|
|
3810
|
-
var
|
|
3852
|
+
var zs = /* @__PURE__ */ u({
|
|
3811
3853
|
__name: "AFilterRemoteAutocompleteWithMinimal",
|
|
3812
3854
|
props: {
|
|
3813
3855
|
name: {},
|
|
@@ -3832,7 +3874,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
3832
3874
|
if (H(d.fields[i.filterByField]) || H(p[i.filterByField])) throw Error(`[${m}] Incorrect filter inner config. FilterByField is '${i.filterByField}' and available options are ${Object.keys(p).join(", ")}.`);
|
|
3833
3875
|
let g = M([]), _ = M(""), v = M(!1), y = M(void 0), x = M(0), { t: S } = me(), C = n(() => c.fields[i.name]), w = () => {
|
|
3834
3876
|
v.value = !1;
|
|
3835
|
-
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } =
|
|
3877
|
+
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } = As(W(i.filterSortBy) ? null : i.filterSortBy.key, i.filterSortBy?.order), D = M([]), O = M([]), A = n(() => {
|
|
3836
3878
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
3837
3879
|
return O.value.forEach((n) => {
|
|
3838
3880
|
n.raw ? (e.set(n.raw[i.itemValue], n.raw[i.itemTitle]), t.set(n.raw[i.itemValue], K(n.raw))) : (e.set(n[i.itemValue], n[i.itemTitle]), t.set(n[i.itemValue], K(n)));
|
|
@@ -3914,7 +3956,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
3914
3956
|
return L(() => u[i.name], async (e, t) => {
|
|
3915
3957
|
if (!(e === t || Rt(e))) {
|
|
3916
3958
|
if (W(e) || H(e) || G(e) && e.length === 0) {
|
|
3917
|
-
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, z(g.value), re.value === !0 ||
|
|
3959
|
+
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, z(g.value), re.value === !0 || Rs(i.prefetch, [
|
|
3918
3960
|
"hover",
|
|
3919
3961
|
"focus",
|
|
3920
3962
|
!1
|
|
@@ -4002,7 +4044,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4002
4044
|
"loading"
|
|
4003
4045
|
]));
|
|
4004
4046
|
}
|
|
4005
|
-
}),
|
|
4047
|
+
}), Bs = /* @__PURE__ */ u({
|
|
4006
4048
|
__name: "AFilterValueObjectOptionsSelect",
|
|
4007
4049
|
props: {
|
|
4008
4050
|
name: {},
|
|
@@ -4071,7 +4113,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4071
4113
|
"data-cy"
|
|
4072
4114
|
]));
|
|
4073
4115
|
}
|
|
4074
|
-
}),
|
|
4116
|
+
}), Vs = /*#__PURE__*/ jt(/* @__PURE__ */ u({
|
|
4075
4117
|
__name: "AFilterTimeInterval",
|
|
4076
4118
|
props: {
|
|
4077
4119
|
nameFrom: {},
|
|
@@ -4093,10 +4135,10 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4093
4135
|
d("change");
|
|
4094
4136
|
});
|
|
4095
4137
|
}
|
|
4096
|
-
}), { timeIntervalOptions: v, getTimeIntervalOption: y } =
|
|
4138
|
+
}), { timeIntervalOptions: v, getTimeIntervalOption: y } = ws(u.allowed), S = M(null), C = M(!1), w = M({
|
|
4097
4139
|
from: null,
|
|
4098
4140
|
until: Xi()
|
|
4099
|
-
}), T = M(!1), { v$: E } =
|
|
4141
|
+
}), T = M(!1), { v$: E } = Ts(w), D = n(() => m.fields[u.nameFrom]), { t: O } = me(), A = n(() => D.value.titleT ? O(D.value.titleT) : void 0), { clearOne: j } = _s(), { showValidationError: ee } = Li(), P = () => {
|
|
4100
4142
|
ie(), se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
4101
4143
|
}, ne = () => {
|
|
4102
4144
|
if (E.value.$touch(), E.value.$invalid) {
|
|
@@ -4118,7 +4160,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4118
4160
|
}
|
|
4119
4161
|
let t = y(e);
|
|
4120
4162
|
if (!t && la(e)) {
|
|
4121
|
-
let t = y(
|
|
4163
|
+
let t = y(Cs.Custom);
|
|
4122
4164
|
p.value.set(u.nameFrom, [{
|
|
4123
4165
|
title: t.title + ": " + ra(w.value.from) + " - " + ra(w.value.until),
|
|
4124
4166
|
value: e
|
|
@@ -4138,7 +4180,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4138
4180
|
return;
|
|
4139
4181
|
}
|
|
4140
4182
|
let t = y(e), n = g[u.nameUntil];
|
|
4141
|
-
!t && la(e) && la(n) && (S.value =
|
|
4183
|
+
!t && la(e) && la(n) && (S.value = Cs.Custom, w.value.from = e, w.value.until = n, T.value = !0), t && (S.value = t.value);
|
|
4142
4184
|
};
|
|
4143
4185
|
L(_, se, { immediate: !0 }), L(f, () => {
|
|
4144
4186
|
se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
@@ -4146,7 +4188,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4146
4188
|
(e !== n || t !== r) && ae(e);
|
|
4147
4189
|
}, { immediate: !0 });
|
|
4148
4190
|
let ce = (e) => {
|
|
4149
|
-
if (e.value ===
|
|
4191
|
+
if (e.value === Cs.Custom) {
|
|
4150
4192
|
oe(!0);
|
|
4151
4193
|
return;
|
|
4152
4194
|
}
|
|
@@ -4259,14 +4301,14 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4259
4301
|
})) : i("", !0)], 64);
|
|
4260
4302
|
};
|
|
4261
4303
|
}
|
|
4262
|
-
}), [["__scopeId", "data-v-f6847895"]]),
|
|
4304
|
+
}), [["__scopeId", "data-v-f6847895"]]), Hs = (e, t = "item") => t + "." + e, Us = /* @__PURE__ */ u({
|
|
4263
4305
|
__name: "AFilterEmpty",
|
|
4264
4306
|
props: { name: {} },
|
|
4265
4307
|
setup(e) {
|
|
4266
4308
|
let t = e;
|
|
4267
4309
|
return (e, n) => (k(), a("div", null, F(t.name), 1));
|
|
4268
4310
|
}
|
|
4269
|
-
}),
|
|
4311
|
+
}), Ws = /* @__PURE__ */ u({
|
|
4270
4312
|
__name: "AFilterDatetimePicker",
|
|
4271
4313
|
props: {
|
|
4272
4314
|
name: {},
|
|
@@ -4306,7 +4348,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4306
4348
|
"label"
|
|
4307
4349
|
]));
|
|
4308
4350
|
}
|
|
4309
|
-
}),
|
|
4351
|
+
}), Gs = /* @__PURE__ */ u({
|
|
4310
4352
|
__name: "AFilterInteger",
|
|
4311
4353
|
props: {
|
|
4312
4354
|
name: {},
|
|
@@ -4364,20 +4406,20 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4364
4406
|
"data-cy"
|
|
4365
4407
|
]));
|
|
4366
4408
|
}
|
|
4367
|
-
}),
|
|
4409
|
+
}), Ks = /* @__PURE__ */ u({
|
|
4368
4410
|
__name: "FilterDetailItem",
|
|
4369
4411
|
props: { name: {} },
|
|
4370
4412
|
setup(e) {
|
|
4371
4413
|
let t = e, i = h(Zo);
|
|
4372
4414
|
if (H(i) || H(i.fields[t.name])) throw Error("Incorrect provide/inject config.");
|
|
4373
4415
|
let a = n(() => i.fields[t.name]), o = n(() => {
|
|
4374
|
-
if (a.value.render.skip) return
|
|
4416
|
+
if (a.value.render.skip) return Us;
|
|
4375
4417
|
switch (a.value.type) {
|
|
4376
|
-
case "string": return
|
|
4377
|
-
case "datetime": return
|
|
4378
|
-
case "boolean": return
|
|
4379
|
-
case "integer": return
|
|
4380
|
-
default: return
|
|
4418
|
+
case "string": return Ps;
|
|
4419
|
+
case "datetime": return Ws;
|
|
4420
|
+
case "boolean": return Ns;
|
|
4421
|
+
case "integer": return Gs;
|
|
4422
|
+
default: return Us;
|
|
4381
4423
|
}
|
|
4382
4424
|
});
|
|
4383
4425
|
return (t, n) => (k(), r(P(o.value), { name: e.name }, null, 8, ["name"]));
|
|
@@ -4385,7 +4427,7 @@ var Ls = /* @__PURE__ */ u({
|
|
|
4385
4427
|
});
|
|
4386
4428
|
//#endregion
|
|
4387
4429
|
//#region src/labs/filters/UserAdminConfigFilter.ts
|
|
4388
|
-
function
|
|
4430
|
+
function qs(e, t = "userAdminConfig") {
|
|
4389
4431
|
let n = [
|
|
4390
4432
|
{
|
|
4391
4433
|
name: "user",
|
|
@@ -4422,13 +4464,13 @@ function Gs(e, t = "userAdminConfig") {
|
|
|
4422
4464
|
}
|
|
4423
4465
|
//#endregion
|
|
4424
4466
|
//#region src/types/UserAdminConfig.ts
|
|
4425
|
-
var
|
|
4467
|
+
var Js = {
|
|
4426
4468
|
PinnedWidgets: "pinnedWidgets",
|
|
4427
4469
|
FilterBookmark: "filterBookmark"
|
|
4428
|
-
},
|
|
4470
|
+
}, Ys = Js.PinnedWidgets, Xs = {
|
|
4429
4471
|
Desktop: "desktop",
|
|
4430
4472
|
Mobile: "mobile"
|
|
4431
|
-
},
|
|
4473
|
+
}, Zs = Xs.Desktop, Qs = 3, $s = ht("filterBookmarkStore", () => {
|
|
4432
4474
|
let e = M(/* @__PURE__ */ new Map()), t = M(!1), n = /* @__PURE__ */ new Map();
|
|
4433
4475
|
function r(e, t) {
|
|
4434
4476
|
return `userAdminConfig/${t}/${e}/`;
|
|
@@ -4446,8 +4488,8 @@ var Ks = {
|
|
|
4446
4488
|
let t = e.value.get(c);
|
|
4447
4489
|
if (t && !t.stale) return t.lastUsed = l, [...t.items];
|
|
4448
4490
|
}
|
|
4449
|
-
let { pagination: d } =
|
|
4450
|
-
h.configType =
|
|
4491
|
+
let { pagination: d } = As("position", Cr.Asc, { rowsPerPage: 8 }), { start: f, end: p } = Yt(a.systemResource, "_"), { filterConfig: m, filterData: h } = qs(f, p);
|
|
4492
|
+
h.configType = Js.FilterBookmark, h.layoutType = a.layoutType, h.systemResource = a.systemResource, h.user = a.user;
|
|
4451
4493
|
let g = (n.get(c) ?? 0) + 1;
|
|
4452
4494
|
n.set(c, g);
|
|
4453
4495
|
let _;
|
|
@@ -4460,12 +4502,12 @@ var Ks = {
|
|
|
4460
4502
|
} catch {
|
|
4461
4503
|
return n.get(c) === g && (t.value = !0, u(c)), null;
|
|
4462
4504
|
}
|
|
4463
|
-
return e.value.size >
|
|
4505
|
+
return e.value.size > Qs && i(), [..._];
|
|
4464
4506
|
}
|
|
4465
4507
|
async function o(e, n) {
|
|
4466
4508
|
t.value = !1;
|
|
4467
|
-
let { pagination: r } =
|
|
4468
|
-
s.configType =
|
|
4509
|
+
let { pagination: r } = As("position", Cr.Asc, { rowsPerPage: 9 }), { start: i, end: a } = Yt(e.systemResource, "_"), { filterConfig: o, filterData: s } = qs(i, a);
|
|
4510
|
+
s.configType = Js.FilterBookmark, s.layoutType = e.layoutType, s.systemResource = e.systemResource, s.user = e.user;
|
|
4469
4511
|
try {
|
|
4470
4512
|
let { execute: e } = n(), t = await e(r, s, o);
|
|
4471
4513
|
return {
|
|
@@ -4504,14 +4546,14 @@ var Ks = {
|
|
|
4504
4546
|
markStale: u,
|
|
4505
4547
|
fetchBookmarkStats: o
|
|
4506
4548
|
};
|
|
4507
|
-
}),
|
|
4508
|
-
function
|
|
4549
|
+
}), ec = "/adm/v1/user-admin-config", tc = "userAdminConfig";
|
|
4550
|
+
function nc(e, t, n = tc, r = ec) {
|
|
4509
4551
|
return {
|
|
4510
|
-
useFetchUserAdminConfigList: () =>
|
|
4552
|
+
useFetchUserAdminConfigList: () => Os({
|
|
4511
4553
|
client: e,
|
|
4512
4554
|
system: t,
|
|
4513
4555
|
entity: n,
|
|
4514
|
-
urlTemplate:
|
|
4556
|
+
urlTemplate: ec
|
|
4515
4557
|
}),
|
|
4516
4558
|
fetchUserAdminConfig: (i) => {
|
|
4517
4559
|
let { execute: a } = ja({
|
|
@@ -4578,7 +4620,7 @@ function ec(e, t, n = $s, r = Qs) {
|
|
|
4578
4620
|
}
|
|
4579
4621
|
//#endregion
|
|
4580
4622
|
//#region src/labs/filters/FilterBookmarks.vue?vue&type=script&setup=true&lang.ts
|
|
4581
|
-
var
|
|
4623
|
+
var rc = { key: 0 }, ic = 32, ac = /* @__PURE__ */ u({
|
|
4582
4624
|
__name: "FilterBookmarks",
|
|
4583
4625
|
props: /*@__PURE__*/ y({
|
|
4584
4626
|
client: {},
|
|
@@ -4596,10 +4638,10 @@ var tc = { key: 0 }, nc = 32, rc = /* @__PURE__ */ u({
|
|
|
4596
4638
|
setup(t, { emit: o }) {
|
|
4597
4639
|
let s = t, u = o, d = oe(t, "datatableHiddenColumns"), f = h(Zo), p = h(Xo), m = h(ns), g = h(ts);
|
|
4598
4640
|
if (H(m) || H(f) || H(p) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
4599
|
-
let _ = M(!1), v = ce("toolbar"), y = M(300), S = M(1e3), C =
|
|
4641
|
+
let _ = M(!1), v = ce("toolbar"), y = M(300), S = M(1e3), C = $s(), { useFetchUserAdminConfigList: w } = nc(s.client, s.system), T = s.system + "_" + s.subject, D = async (e = !1) => {
|
|
4600
4642
|
_.value = !0, await C.getBookmarks({
|
|
4601
4643
|
user: s.userId,
|
|
4602
|
-
layoutType:
|
|
4644
|
+
layoutType: Xs.Desktop,
|
|
4603
4645
|
systemResource: T
|
|
4604
4646
|
}, w, e), _.value = !1;
|
|
4605
4647
|
}, { deserializeFilters: O } = ys(p, f), A = (e) => {
|
|
@@ -4638,7 +4680,7 @@ var tc = { key: 0 }, nc = 32, rc = /* @__PURE__ */ u({
|
|
|
4638
4680
|
let n = 0, r = 0;
|
|
4639
4681
|
for (let i = 0; i < t.children.length; i++) {
|
|
4640
4682
|
let a = t.children[i].offsetWidth;
|
|
4641
|
-
if (n += a, n >= e -
|
|
4683
|
+
if (n += a, n >= e - ic) break;
|
|
4642
4684
|
r++;
|
|
4643
4685
|
}
|
|
4644
4686
|
S.value = r;
|
|
@@ -4649,7 +4691,7 @@ var tc = { key: 0 }, nc = 32, rc = /* @__PURE__ */ u({
|
|
|
4649
4691
|
e !== t && j(e);
|
|
4650
4692
|
}, { throttle: 1e3 });
|
|
4651
4693
|
let N = n(() => {
|
|
4652
|
-
let e = C.generateKey(
|
|
4694
|
+
let e = C.generateKey(Xs.Desktop, T);
|
|
4653
4695
|
return C.bookmarks.get(e)?.items ?? [];
|
|
4654
4696
|
}), te = n(() => {
|
|
4655
4697
|
let e = S.value;
|
|
@@ -4668,7 +4710,7 @@ var tc = { key: 0 }, nc = 32, rc = /* @__PURE__ */ u({
|
|
|
4668
4710
|
ref: "toolbar",
|
|
4669
4711
|
key: N.value.length,
|
|
4670
4712
|
class: "w-100 d-flex overflow-hidden align-center mb-1"
|
|
4671
|
-
}, [_.value ? (k(), a("div",
|
|
4713
|
+
}, [_.value ? (k(), a("div", rc)) : (k(), a(e, { key: 1 }, [(k(!0), a(e, null, ee(te.value.visible, (e) => (k(), a("div", {
|
|
4672
4714
|
key: e.id,
|
|
4673
4715
|
class: "white-space-nowrap"
|
|
4674
4716
|
}, [l(V, {
|
|
@@ -4709,7 +4751,7 @@ var tc = { key: 0 }, nc = 32, rc = /* @__PURE__ */ u({
|
|
|
4709
4751
|
});
|
|
4710
4752
|
//#endregion
|
|
4711
4753
|
//#region src/labs/listEditor/composables/useContainerWidth.ts
|
|
4712
|
-
function
|
|
4754
|
+
function oc(e, t = 769) {
|
|
4713
4755
|
let { width: r } = Pe(e);
|
|
4714
4756
|
return {
|
|
4715
4757
|
width: r,
|
|
@@ -4718,24 +4760,24 @@ function ic(e, t = 769) {
|
|
|
4718
4760
|
}
|
|
4719
4761
|
//#endregion
|
|
4720
4762
|
//#region src/labs/listEditor/composables/useIsTouchDevice.ts
|
|
4721
|
-
function
|
|
4763
|
+
function sc() {
|
|
4722
4764
|
let e = Ie("(any-pointer: fine)");
|
|
4723
4765
|
return n(() => !e.value);
|
|
4724
4766
|
}
|
|
4725
|
-
function
|
|
4767
|
+
function cc() {
|
|
4726
4768
|
let e = Ie("(any-pointer: coarse)");
|
|
4727
4769
|
return n(() => e.value);
|
|
4728
4770
|
}
|
|
4729
4771
|
//#endregion
|
|
4730
4772
|
//#region src/labs/listEditor/composables/useKeyboardNav.ts
|
|
4731
|
-
function
|
|
4773
|
+
function lc(e) {
|
|
4732
4774
|
let t = M(null), r = M(null), i = n(() => e.viewItems.value.map((e) => e.key)), a = (e) => t.value === e, o = (e) => r.value === e, s = n(() => r.value === null ? -1 : i.value.indexOf(r.value)), c = n(() => i.value.length);
|
|
4733
4775
|
function l(e) {
|
|
4734
4776
|
let n = i.value;
|
|
4735
4777
|
return n.length === 0 ? -1 : t.value === null ? n[0] === e ? 0 : -1 : t.value === e ? 0 : -1;
|
|
4736
4778
|
}
|
|
4737
4779
|
function u(e) {
|
|
4738
|
-
e
|
|
4780
|
+
e !== null && typeof document < "u" && Promise.resolve().then(() => {
|
|
4739
4781
|
document.querySelector(`[data-id="${CSS.escape(String(e))}"]`)?.focus();
|
|
4740
4782
|
});
|
|
4741
4783
|
}
|
|
@@ -4834,24 +4876,24 @@ function sc(e) {
|
|
|
4834
4876
|
}
|
|
4835
4877
|
//#endregion
|
|
4836
4878
|
//#region node_modules/sortablejs/modular/sortable.esm.js
|
|
4837
|
-
function
|
|
4838
|
-
return (t =
|
|
4879
|
+
function uc(e, t, n) {
|
|
4880
|
+
return (t = _c(t)) in e ? Object.defineProperty(e, t, {
|
|
4839
4881
|
value: n,
|
|
4840
4882
|
enumerable: !0,
|
|
4841
4883
|
configurable: !0,
|
|
4842
4884
|
writable: !0
|
|
4843
4885
|
}) : e[t] = n, e;
|
|
4844
4886
|
}
|
|
4845
|
-
function
|
|
4846
|
-
return
|
|
4887
|
+
function dc() {
|
|
4888
|
+
return dc = Object.assign ? Object.assign.bind() : function(e) {
|
|
4847
4889
|
for (var t = 1; t < arguments.length; t++) {
|
|
4848
4890
|
var n = arguments[t];
|
|
4849
4891
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4850
4892
|
}
|
|
4851
4893
|
return e;
|
|
4852
|
-
},
|
|
4894
|
+
}, dc.apply(null, arguments);
|
|
4853
4895
|
}
|
|
4854
|
-
function
|
|
4896
|
+
function fc(e, t) {
|
|
4855
4897
|
var n = Object.keys(e);
|
|
4856
4898
|
if (Object.getOwnPropertySymbols) {
|
|
4857
4899
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -4861,27 +4903,27 @@ function uc(e, t) {
|
|
|
4861
4903
|
}
|
|
4862
4904
|
return n;
|
|
4863
4905
|
}
|
|
4864
|
-
function
|
|
4906
|
+
function pc(e) {
|
|
4865
4907
|
for (var t = 1; t < arguments.length; t++) {
|
|
4866
4908
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
4867
|
-
t % 2 ?
|
|
4868
|
-
|
|
4869
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4909
|
+
t % 2 ? fc(Object(n), !0).forEach(function(t) {
|
|
4910
|
+
uc(e, t, n[t]);
|
|
4911
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : fc(Object(n)).forEach(function(t) {
|
|
4870
4912
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
4871
4913
|
});
|
|
4872
4914
|
}
|
|
4873
4915
|
return e;
|
|
4874
4916
|
}
|
|
4875
|
-
function
|
|
4917
|
+
function mc(e, t) {
|
|
4876
4918
|
if (e == null) return {};
|
|
4877
|
-
var n, r, i =
|
|
4919
|
+
var n, r, i = hc(e, t);
|
|
4878
4920
|
if (Object.getOwnPropertySymbols) {
|
|
4879
4921
|
var a = Object.getOwnPropertySymbols(e);
|
|
4880
4922
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
4881
4923
|
}
|
|
4882
4924
|
return i;
|
|
4883
4925
|
}
|
|
4884
|
-
function
|
|
4926
|
+
function hc(e, t) {
|
|
4885
4927
|
if (e == null) return {};
|
|
4886
4928
|
var n = {};
|
|
4887
4929
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -4890,7 +4932,7 @@ function pc(e, t) {
|
|
|
4890
4932
|
}
|
|
4891
4933
|
return n;
|
|
4892
4934
|
}
|
|
4893
|
-
function
|
|
4935
|
+
function gc(e, t) {
|
|
4894
4936
|
if (typeof e != "object" || !e) return e;
|
|
4895
4937
|
var n = e[Symbol.toPrimitive];
|
|
4896
4938
|
if (n !== void 0) {
|
|
@@ -4900,33 +4942,33 @@ function mc(e, t) {
|
|
|
4900
4942
|
}
|
|
4901
4943
|
return (t === "string" ? String : Number)(e);
|
|
4902
4944
|
}
|
|
4903
|
-
function
|
|
4904
|
-
var t =
|
|
4945
|
+
function _c(e) {
|
|
4946
|
+
var t = gc(e, "string");
|
|
4905
4947
|
return typeof t == "symbol" ? t : t + "";
|
|
4906
4948
|
}
|
|
4907
|
-
function
|
|
4949
|
+
function vc(e) {
|
|
4908
4950
|
"@babel/helpers - typeof";
|
|
4909
|
-
return
|
|
4951
|
+
return vc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4910
4952
|
return typeof e;
|
|
4911
4953
|
} : function(e) {
|
|
4912
4954
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4913
|
-
},
|
|
4955
|
+
}, vc(e);
|
|
4914
4956
|
}
|
|
4915
|
-
var
|
|
4916
|
-
function
|
|
4957
|
+
var yc = "1.15.7";
|
|
4958
|
+
function bc(e) {
|
|
4917
4959
|
if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
|
|
4918
4960
|
}
|
|
4919
|
-
var
|
|
4961
|
+
var xc = bc(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Sc = bc(/Edge/i), Cc = bc(/firefox/i), wc = bc(/safari/i) && !bc(/chrome/i) && !bc(/android/i), Tc = bc(/iP(ad|od|hone)/i), Ec = bc(/chrome/i) && bc(/android/i), Dc = {
|
|
4920
4962
|
capture: !1,
|
|
4921
4963
|
passive: !1
|
|
4922
4964
|
};
|
|
4923
4965
|
function J(e, t, n) {
|
|
4924
|
-
e.addEventListener(t, n, !
|
|
4966
|
+
e.addEventListener(t, n, !xc && Dc);
|
|
4925
4967
|
}
|
|
4926
4968
|
function Y(e, t, n) {
|
|
4927
|
-
e.removeEventListener(t, n, !
|
|
4969
|
+
e.removeEventListener(t, n, !xc && Dc);
|
|
4928
4970
|
}
|
|
4929
|
-
function
|
|
4971
|
+
function Oc(e, t) {
|
|
4930
4972
|
if (t) {
|
|
4931
4973
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
4932
4974
|
if (e.matches) return e.matches(t);
|
|
@@ -4938,22 +4980,22 @@ function Ec(e, t) {
|
|
|
4938
4980
|
return !1;
|
|
4939
4981
|
}
|
|
4940
4982
|
}
|
|
4941
|
-
function
|
|
4983
|
+
function kc(e) {
|
|
4942
4984
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
4943
4985
|
}
|
|
4944
|
-
function
|
|
4986
|
+
function Ac(e, t, n, r) {
|
|
4945
4987
|
if (e) {
|
|
4946
4988
|
n ||= document;
|
|
4947
4989
|
do {
|
|
4948
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
4990
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Oc(e, t) : Oc(e, t)) || r && e === n) return e;
|
|
4949
4991
|
if (e === n) break;
|
|
4950
|
-
} while (e =
|
|
4992
|
+
} while (e = kc(e));
|
|
4951
4993
|
}
|
|
4952
4994
|
return null;
|
|
4953
4995
|
}
|
|
4954
|
-
var
|
|
4955
|
-
function
|
|
4956
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
4996
|
+
var jc = /\s+/g;
|
|
4997
|
+
function Mc(e, t, n) {
|
|
4998
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(jc, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(jc, " "));
|
|
4957
4999
|
}
|
|
4958
5000
|
function X(e, t, n) {
|
|
4959
5001
|
var r = e && e.style;
|
|
@@ -4962,7 +5004,7 @@ function X(e, t, n) {
|
|
|
4962
5004
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
4963
5005
|
}
|
|
4964
5006
|
}
|
|
4965
|
-
function
|
|
5007
|
+
function Nc(e, t) {
|
|
4966
5008
|
var n = "";
|
|
4967
5009
|
if (typeof e == "string") n = e;
|
|
4968
5010
|
else do {
|
|
@@ -4972,7 +5014,7 @@ function jc(e, t) {
|
|
|
4972
5014
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
4973
5015
|
return i && new i(n);
|
|
4974
5016
|
}
|
|
4975
|
-
function
|
|
5017
|
+
function Pc(e, t, n) {
|
|
4976
5018
|
if (e) {
|
|
4977
5019
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
4978
5020
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -4980,13 +5022,13 @@ function Mc(e, t, n) {
|
|
|
4980
5022
|
}
|
|
4981
5023
|
return [];
|
|
4982
5024
|
}
|
|
4983
|
-
function
|
|
5025
|
+
function Fc() {
|
|
4984
5026
|
return document.scrollingElement || document.documentElement;
|
|
4985
5027
|
}
|
|
4986
|
-
function
|
|
5028
|
+
function Ic(e, t, n, r, i) {
|
|
4987
5029
|
if (e.getBoundingClientRect || e === window) {
|
|
4988
5030
|
var a, o, s, c, l, u, d;
|
|
4989
|
-
if (e !== window && e.parentNode && e !==
|
|
5031
|
+
if (e !== window && e.parentNode && e !== Fc() ? (a = e.getBoundingClientRect(), o = a.top, s = a.left, c = a.bottom, l = a.right, u = a.height, d = a.width) : (o = 0, s = 0, c = window.innerHeight, l = window.innerWidth, u = window.innerHeight, d = window.innerWidth), (t || n) && e !== window && (i ||= e.parentNode, !xc)) do
|
|
4990
5032
|
if (i && i.getBoundingClientRect && (X(i, "transform") !== "none" || n && X(i, "position") !== "static")) {
|
|
4991
5033
|
var f = i.getBoundingClientRect();
|
|
4992
5034
|
o -= f.top + parseInt(X(i, "border-top-width")), s -= f.left + parseInt(X(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -4994,7 +5036,7 @@ function Pc(e, t, n, r, i) {
|
|
|
4994
5036
|
}
|
|
4995
5037
|
while (i = i.parentNode);
|
|
4996
5038
|
if (r && e !== window) {
|
|
4997
|
-
var p =
|
|
5039
|
+
var p = Nc(i || e), m = p && p.a, h = p && p.d;
|
|
4998
5040
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
4999
5041
|
}
|
|
5000
5042
|
return {
|
|
@@ -5007,18 +5049,18 @@ function Pc(e, t, n, r, i) {
|
|
|
5007
5049
|
};
|
|
5008
5050
|
}
|
|
5009
5051
|
}
|
|
5010
|
-
function
|
|
5011
|
-
for (var r =
|
|
5012
|
-
var a =
|
|
5052
|
+
function Lc(e, t, n) {
|
|
5053
|
+
for (var r = Uc(e, !0), i = Ic(e)[t]; r;) {
|
|
5054
|
+
var a = Ic(r)[n], o = void 0;
|
|
5013
5055
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
5014
|
-
if (r ===
|
|
5015
|
-
r =
|
|
5056
|
+
if (r === Fc()) break;
|
|
5057
|
+
r = Uc(r, !1);
|
|
5016
5058
|
}
|
|
5017
5059
|
return !1;
|
|
5018
5060
|
}
|
|
5019
|
-
function
|
|
5061
|
+
function Rc(e, t, n, r) {
|
|
5020
5062
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
5021
|
-
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) &&
|
|
5063
|
+
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) && Ac(o[a], n.draggable, e, !1)) {
|
|
5022
5064
|
if (i === t) return o[a];
|
|
5023
5065
|
i++;
|
|
5024
5066
|
}
|
|
@@ -5026,84 +5068,84 @@ function Ic(e, t, n, r) {
|
|
|
5026
5068
|
}
|
|
5027
5069
|
return null;
|
|
5028
5070
|
}
|
|
5029
|
-
function
|
|
5030
|
-
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !
|
|
5071
|
+
function zc(e, t) {
|
|
5072
|
+
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !Oc(n, t));) n = n.previousElementSibling;
|
|
5031
5073
|
return n || null;
|
|
5032
5074
|
}
|
|
5033
|
-
function
|
|
5075
|
+
function Bc(e, t) {
|
|
5034
5076
|
var n = 0;
|
|
5035
5077
|
if (!e || !e.parentNode) return -1;
|
|
5036
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t ||
|
|
5078
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t || Oc(e, t)) && n++;
|
|
5037
5079
|
return n;
|
|
5038
5080
|
}
|
|
5039
|
-
function
|
|
5040
|
-
var t = 0, n = 0, r =
|
|
5081
|
+
function Vc(e) {
|
|
5082
|
+
var t = 0, n = 0, r = Fc();
|
|
5041
5083
|
if (e) do {
|
|
5042
|
-
var i =
|
|
5084
|
+
var i = Nc(e), a = i.a, o = i.d;
|
|
5043
5085
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
5044
5086
|
} while (e !== r && (e = e.parentNode));
|
|
5045
5087
|
return [t, n];
|
|
5046
5088
|
}
|
|
5047
|
-
function
|
|
5089
|
+
function Hc(e, t) {
|
|
5048
5090
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
5049
5091
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
5050
5092
|
}
|
|
5051
5093
|
return -1;
|
|
5052
5094
|
}
|
|
5053
|
-
function
|
|
5054
|
-
if (!e || !e.getBoundingClientRect) return
|
|
5095
|
+
function Uc(e, t) {
|
|
5096
|
+
if (!e || !e.getBoundingClientRect) return Fc();
|
|
5055
5097
|
var n = e, r = !1;
|
|
5056
5098
|
do
|
|
5057
5099
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
5058
5100
|
var i = X(n);
|
|
5059
5101
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
5060
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
5102
|
+
if (!n.getBoundingClientRect || n === document.body) return Fc();
|
|
5061
5103
|
if (r || t) return n;
|
|
5062
5104
|
r = !0;
|
|
5063
5105
|
}
|
|
5064
5106
|
}
|
|
5065
5107
|
while (n = n.parentNode);
|
|
5066
|
-
return
|
|
5108
|
+
return Fc();
|
|
5067
5109
|
}
|
|
5068
|
-
function
|
|
5110
|
+
function Wc(e, t) {
|
|
5069
5111
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
5070
5112
|
return e;
|
|
5071
5113
|
}
|
|
5072
|
-
function
|
|
5114
|
+
function Gc(e, t) {
|
|
5073
5115
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
5074
5116
|
}
|
|
5075
|
-
var
|
|
5076
|
-
function
|
|
5117
|
+
var Kc;
|
|
5118
|
+
function qc(e, t) {
|
|
5077
5119
|
return function() {
|
|
5078
|
-
if (!
|
|
5120
|
+
if (!Kc) {
|
|
5079
5121
|
var n = arguments, r = this;
|
|
5080
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
5081
|
-
|
|
5122
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Kc = setTimeout(function() {
|
|
5123
|
+
Kc = void 0;
|
|
5082
5124
|
}, t);
|
|
5083
5125
|
}
|
|
5084
5126
|
};
|
|
5085
5127
|
}
|
|
5086
|
-
function
|
|
5087
|
-
clearTimeout(
|
|
5128
|
+
function Jc() {
|
|
5129
|
+
clearTimeout(Kc), Kc = void 0;
|
|
5088
5130
|
}
|
|
5089
|
-
function
|
|
5131
|
+
function Yc(e, t, n) {
|
|
5090
5132
|
e.scrollLeft += t, e.scrollTop += n;
|
|
5091
5133
|
}
|
|
5092
|
-
function
|
|
5134
|
+
function Xc(e) {
|
|
5093
5135
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
5094
5136
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
5095
5137
|
}
|
|
5096
|
-
function
|
|
5138
|
+
function Zc(e, t, n) {
|
|
5097
5139
|
var r = {};
|
|
5098
5140
|
return Array.from(e.children).forEach(function(i) {
|
|
5099
|
-
if (
|
|
5100
|
-
var a =
|
|
5141
|
+
if (Ac(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
5142
|
+
var a = Ic(i);
|
|
5101
5143
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
5102
5144
|
}
|
|
5103
5145
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
5104
5146
|
}
|
|
5105
|
-
var
|
|
5106
|
-
function
|
|
5147
|
+
var Qc = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
5148
|
+
function $c() {
|
|
5107
5149
|
var e = [], t;
|
|
5108
5150
|
return {
|
|
5109
5151
|
captureAnimationState: function() {
|
|
@@ -5111,11 +5153,11 @@ function Zc() {
|
|
|
5111
5153
|
if (X(t, "display") !== "none" && t !== $.ghost) {
|
|
5112
5154
|
e.push({
|
|
5113
5155
|
target: t,
|
|
5114
|
-
rect:
|
|
5156
|
+
rect: Ic(t)
|
|
5115
5157
|
});
|
|
5116
|
-
var n =
|
|
5158
|
+
var n = pc({}, e[e.length - 1].rect);
|
|
5117
5159
|
if (t.thisAnimationDuration) {
|
|
5118
|
-
var r =
|
|
5160
|
+
var r = Nc(t, !0);
|
|
5119
5161
|
r && (n.top -= r.f, n.left -= r.e);
|
|
5120
5162
|
}
|
|
5121
5163
|
t.fromRect = n;
|
|
@@ -5126,7 +5168,7 @@ function Zc() {
|
|
|
5126
5168
|
e.push(t);
|
|
5127
5169
|
},
|
|
5128
5170
|
removeAnimationState: function(t) {
|
|
5129
|
-
e.splice(
|
|
5171
|
+
e.splice(Hc(e, { target: t }), 1);
|
|
5130
5172
|
},
|
|
5131
5173
|
animateAll: function(n) {
|
|
5132
5174
|
var r = this;
|
|
@@ -5136,8 +5178,8 @@ function Zc() {
|
|
|
5136
5178
|
}
|
|
5137
5179
|
var i = !1, a = 0;
|
|
5138
5180
|
e.forEach(function(e) {
|
|
5139
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
5140
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
5181
|
+
var t = 0, n = e.target, o = n.fromRect, s = Ic(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Nc(n, !0);
|
|
5182
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && Gc(c, s) && !Gc(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = tl(u, c, l, r.options)), Gc(s, o) || (n.prevFromRect = o, n.prevToRect = s, t ||= r.options.animation, r.animate(n, u, s, t)), t && (i = !0, a = Math.max(a, t), clearTimeout(n.animationResetTimer), n.animationResetTimer = setTimeout(function() {
|
|
5141
5183
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
5142
5184
|
}, t), n.thisAnimationDuration = t);
|
|
5143
5185
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -5147,26 +5189,26 @@ function Zc() {
|
|
|
5147
5189
|
animate: function(e, t, n, r) {
|
|
5148
5190
|
if (r) {
|
|
5149
5191
|
X(e, "transition", ""), X(e, "transform", "");
|
|
5150
|
-
var i =
|
|
5151
|
-
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
5192
|
+
var i = Nc(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
5193
|
+
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = el(e), X(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), X(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
5152
5194
|
X(e, "transition", ""), X(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
5153
5195
|
}, r);
|
|
5154
5196
|
}
|
|
5155
5197
|
}
|
|
5156
5198
|
};
|
|
5157
5199
|
}
|
|
5158
|
-
function
|
|
5200
|
+
function el(e) {
|
|
5159
5201
|
return e.offsetWidth;
|
|
5160
5202
|
}
|
|
5161
|
-
function
|
|
5203
|
+
function tl(e, t, n, r) {
|
|
5162
5204
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
5163
5205
|
}
|
|
5164
|
-
var
|
|
5206
|
+
var nl = [], rl = { initializeByDefault: !0 }, il = {
|
|
5165
5207
|
mount: function(e) {
|
|
5166
|
-
for (var t in
|
|
5167
|
-
|
|
5208
|
+
for (var t in rl) rl.hasOwnProperty(t) && !(t in e) && (e[t] = rl[t]);
|
|
5209
|
+
nl.forEach(function(t) {
|
|
5168
5210
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
5169
|
-
}),
|
|
5211
|
+
}), nl.push(e);
|
|
5170
5212
|
},
|
|
5171
5213
|
pluginEvent: function(e, t, n) {
|
|
5172
5214
|
var r = this;
|
|
@@ -5174,16 +5216,16 @@ var el = [], tl = { initializeByDefault: !0 }, nl = {
|
|
|
5174
5216
|
r.eventCanceled = !0;
|
|
5175
5217
|
};
|
|
5176
5218
|
var i = e + "Global";
|
|
5177
|
-
|
|
5178
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
5219
|
+
nl.forEach(function(r) {
|
|
5220
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](pc({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](pc({ sortable: t }, n)));
|
|
5179
5221
|
});
|
|
5180
5222
|
},
|
|
5181
5223
|
initializePlugins: function(e, t, n, r) {
|
|
5182
|
-
for (var i in
|
|
5224
|
+
for (var i in nl.forEach(function(r) {
|
|
5183
5225
|
var i = r.pluginName;
|
|
5184
5226
|
if (e.options[i] || r.initializeByDefault) {
|
|
5185
5227
|
var a = new r(e, t, e.options);
|
|
5186
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
5228
|
+
a.sortable = e, a.options = e.options, e[i] = a, dc(n, a.defaults);
|
|
5187
5229
|
}
|
|
5188
5230
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
5189
5231
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -5192,59 +5234,59 @@ var el = [], tl = { initializeByDefault: !0 }, nl = {
|
|
|
5192
5234
|
},
|
|
5193
5235
|
getEventProperties: function(e, t) {
|
|
5194
5236
|
var n = {};
|
|
5195
|
-
return
|
|
5196
|
-
typeof r.eventProperties == "function" &&
|
|
5237
|
+
return nl.forEach(function(r) {
|
|
5238
|
+
typeof r.eventProperties == "function" && dc(n, r.eventProperties.call(t[r.pluginName], e));
|
|
5197
5239
|
}), n;
|
|
5198
5240
|
},
|
|
5199
5241
|
modifyOption: function(e, t, n) {
|
|
5200
5242
|
var r;
|
|
5201
|
-
return
|
|
5243
|
+
return nl.forEach(function(i) {
|
|
5202
5244
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
5203
5245
|
}), r;
|
|
5204
5246
|
}
|
|
5205
5247
|
};
|
|
5206
|
-
function
|
|
5248
|
+
function al(e) {
|
|
5207
5249
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
5208
|
-
if (t ||= n && n[
|
|
5250
|
+
if (t ||= n && n[Qc], t) {
|
|
5209
5251
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
5210
|
-
window.CustomEvent && !
|
|
5252
|
+
window.CustomEvent && !xc && !Sc ? h = new CustomEvent(r, {
|
|
5211
5253
|
bubbles: !0,
|
|
5212
5254
|
cancelable: !0
|
|
5213
5255
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
5214
|
-
var v =
|
|
5256
|
+
var v = pc(pc({}, m), il.getEventProperties(r, t));
|
|
5215
5257
|
for (var y in v) h[y] = v[y];
|
|
5216
5258
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
5217
5259
|
}
|
|
5218
5260
|
}
|
|
5219
|
-
var
|
|
5220
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
5221
|
-
|
|
5261
|
+
var ol = ["evt"], sl = function(e, t) {
|
|
5262
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = mc(n, ol);
|
|
5263
|
+
il.pluginEvent.bind($)(e, t, pc({
|
|
5222
5264
|
dragEl: Z,
|
|
5223
|
-
parentEl:
|
|
5265
|
+
parentEl: ll,
|
|
5224
5266
|
ghostEl: Q,
|
|
5225
|
-
rootEl:
|
|
5226
|
-
nextEl:
|
|
5227
|
-
lastDownEl:
|
|
5228
|
-
cloneEl:
|
|
5229
|
-
cloneHidden:
|
|
5230
|
-
dragStarted:
|
|
5231
|
-
putSortable:
|
|
5267
|
+
rootEl: ul,
|
|
5268
|
+
nextEl: dl,
|
|
5269
|
+
lastDownEl: fl,
|
|
5270
|
+
cloneEl: pl,
|
|
5271
|
+
cloneHidden: ml,
|
|
5272
|
+
dragStarted: Al,
|
|
5273
|
+
putSortable: bl,
|
|
5232
5274
|
activeSortable: $.active,
|
|
5233
5275
|
originalEvent: r,
|
|
5234
|
-
oldIndex:
|
|
5235
|
-
oldDraggableIndex:
|
|
5236
|
-
newIndex:
|
|
5237
|
-
newDraggableIndex:
|
|
5238
|
-
hideGhostForTarget:
|
|
5239
|
-
unhideGhostForTarget:
|
|
5276
|
+
oldIndex: hl,
|
|
5277
|
+
oldDraggableIndex: _l,
|
|
5278
|
+
newIndex: gl,
|
|
5279
|
+
newDraggableIndex: vl,
|
|
5280
|
+
hideGhostForTarget: Yl,
|
|
5281
|
+
unhideGhostForTarget: Xl,
|
|
5240
5282
|
cloneNowHidden: function() {
|
|
5241
|
-
|
|
5283
|
+
ml = !0;
|
|
5242
5284
|
},
|
|
5243
5285
|
cloneNowShown: function() {
|
|
5244
|
-
|
|
5286
|
+
ml = !1;
|
|
5245
5287
|
},
|
|
5246
5288
|
dispatchSortableEvent: function(e) {
|
|
5247
|
-
|
|
5289
|
+
cl({
|
|
5248
5290
|
sortable: t,
|
|
5249
5291
|
name: e,
|
|
5250
5292
|
originalEvent: r
|
|
@@ -5252,46 +5294,46 @@ var il = ["evt"], al = function(e, t) {
|
|
|
5252
5294
|
}
|
|
5253
5295
|
}, i));
|
|
5254
5296
|
};
|
|
5255
|
-
function
|
|
5256
|
-
|
|
5257
|
-
putSortable:
|
|
5258
|
-
cloneEl:
|
|
5297
|
+
function cl(e) {
|
|
5298
|
+
al(pc({
|
|
5299
|
+
putSortable: bl,
|
|
5300
|
+
cloneEl: pl,
|
|
5259
5301
|
targetEl: Z,
|
|
5260
|
-
rootEl:
|
|
5261
|
-
oldIndex:
|
|
5262
|
-
oldDraggableIndex:
|
|
5263
|
-
newIndex:
|
|
5264
|
-
newDraggableIndex:
|
|
5302
|
+
rootEl: ul,
|
|
5303
|
+
oldIndex: hl,
|
|
5304
|
+
oldDraggableIndex: _l,
|
|
5305
|
+
newIndex: gl,
|
|
5306
|
+
newDraggableIndex: vl
|
|
5265
5307
|
}, e));
|
|
5266
5308
|
}
|
|
5267
|
-
var Z,
|
|
5268
|
-
if (
|
|
5269
|
-
if (
|
|
5309
|
+
var Z, ll, Q, ul, dl, fl, pl, ml, hl, gl, _l, vl, yl, bl, xl = !1, Sl = !1, Cl = [], wl, Tl, El, Dl, Ol, kl, Al, jl, Ml, Nl = !1, Pl = !1, Fl, Il, Ll = [], Rl = !1, zl = [], Bl = typeof document < "u", Vl = Tc, Hl = Sc || xc ? "cssFloat" : "float", Ul = Bl && !Ec && !Tc && "draggable" in document.createElement("div"), Wl = function() {
|
|
5310
|
+
if (Bl) {
|
|
5311
|
+
if (xc) return !1;
|
|
5270
5312
|
var e = document.createElement("x");
|
|
5271
5313
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
5272
5314
|
}
|
|
5273
|
-
}(),
|
|
5274
|
-
var n = X(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
5315
|
+
}(), Gl = function(e, t) {
|
|
5316
|
+
var n = X(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Rc(e, 0, t), a = Rc(e, 1, t), o = i && X(i), s = a && X(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + Ic(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Ic(a).width;
|
|
5275
5317
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
5276
5318
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
5277
5319
|
if (i && o.float && o.float !== "none") {
|
|
5278
5320
|
var u = o.float === "left" ? "left" : "right";
|
|
5279
5321
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
5280
5322
|
}
|
|
5281
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
5282
|
-
},
|
|
5323
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Hl] === "none" || a && n[Hl] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
5324
|
+
}, Kl = function(e, t, n) {
|
|
5283
5325
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
5284
5326
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
5285
|
-
},
|
|
5327
|
+
}, ql = function(e, t) {
|
|
5286
5328
|
var n;
|
|
5287
|
-
return
|
|
5288
|
-
var i = r[
|
|
5289
|
-
if (i && !
|
|
5290
|
-
var a =
|
|
5329
|
+
return Cl.some(function(r) {
|
|
5330
|
+
var i = r[Qc].options.emptyInsertThreshold;
|
|
5331
|
+
if (i && !zc(r)) {
|
|
5332
|
+
var a = Ic(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
5291
5333
|
if (o && s) return n = r;
|
|
5292
5334
|
}
|
|
5293
5335
|
}), n;
|
|
5294
|
-
},
|
|
5336
|
+
}, Jl = function(e) {
|
|
5295
5337
|
function t(e, n) {
|
|
5296
5338
|
return function(r, i, a, o) {
|
|
5297
5339
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -5304,31 +5346,31 @@ var Z, sl, Q, cl, ll, ul, dl, fl, pl, ml, hl, gl, _l, vl, yl = !1, bl = !1, xl =
|
|
|
5304
5346
|
};
|
|
5305
5347
|
}
|
|
5306
5348
|
var n = {}, r = e.group;
|
|
5307
|
-
(!r ||
|
|
5308
|
-
},
|
|
5309
|
-
!
|
|
5310
|
-
},
|
|
5311
|
-
!
|
|
5349
|
+
(!r || vc(r) != "object") && (r = { name: r }), n.name = r.name, n.checkPull = t(r.pull, !0), n.checkPut = t(r.put), n.revertClone = r.revertClone, e.group = n;
|
|
5350
|
+
}, Yl = function() {
|
|
5351
|
+
!Wl && Q && X(Q, "display", "none");
|
|
5352
|
+
}, Xl = function() {
|
|
5353
|
+
!Wl && Q && X(Q, "display", "");
|
|
5312
5354
|
};
|
|
5313
|
-
|
|
5314
|
-
if (
|
|
5355
|
+
Bl && !Ec && document.addEventListener("click", function(e) {
|
|
5356
|
+
if (Sl) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Sl = !1, !1;
|
|
5315
5357
|
}, !0);
|
|
5316
|
-
var
|
|
5358
|
+
var Zl = function(e) {
|
|
5317
5359
|
if (Z) {
|
|
5318
5360
|
e = e.touches ? e.touches[0] : e;
|
|
5319
|
-
var t =
|
|
5361
|
+
var t = ql(e.clientX, e.clientY);
|
|
5320
5362
|
if (t) {
|
|
5321
5363
|
var n = {};
|
|
5322
5364
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
5323
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
5365
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Qc]._onDragOver(n);
|
|
5324
5366
|
}
|
|
5325
5367
|
}
|
|
5326
|
-
},
|
|
5327
|
-
Z && Z.parentNode[
|
|
5368
|
+
}, Ql = function(e) {
|
|
5369
|
+
Z && Z.parentNode[Qc]._isOutsideThisEl(e.target);
|
|
5328
5370
|
};
|
|
5329
5371
|
function $(e, t) {
|
|
5330
5372
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
5331
|
-
this.el = e, this.options = t =
|
|
5373
|
+
this.el = e, this.options = t = dc({}, t), e[Qc] = this;
|
|
5332
5374
|
var n = {
|
|
5333
5375
|
group: null,
|
|
5334
5376
|
sort: !0,
|
|
@@ -5341,7 +5383,7 @@ function $(e, t) {
|
|
|
5341
5383
|
invertedSwapThreshold: null,
|
|
5342
5384
|
removeCloneOnHide: !0,
|
|
5343
5385
|
direction: function() {
|
|
5344
|
-
return
|
|
5386
|
+
return Gl(e, this.options);
|
|
5345
5387
|
},
|
|
5346
5388
|
ghostClass: "sortable-ghost",
|
|
5347
5389
|
chosenClass: "sortable-chosen",
|
|
@@ -5368,17 +5410,17 @@ function $(e, t) {
|
|
|
5368
5410
|
x: 0,
|
|
5369
5411
|
y: 0
|
|
5370
5412
|
},
|
|
5371
|
-
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
5413
|
+
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!wc || Tc),
|
|
5372
5414
|
emptyInsertThreshold: 5
|
|
5373
5415
|
};
|
|
5374
|
-
for (var r in
|
|
5375
|
-
for (var i in
|
|
5376
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
5416
|
+
for (var r in il.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
5417
|
+
for (var i in Jl(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
5418
|
+
this.nativeDraggable = !t.forceFallback && Ul, this.nativeDraggable && (this.options.touchStartThreshold = 1), t.supportPointer ? J(e, "pointerdown", this._onTapStart) : (J(e, "mousedown", this._onTapStart), J(e, "touchstart", this._onTapStart)), this.nativeDraggable && (J(e, "dragover", this), J(e, "dragenter", this)), Cl.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), dc(this, $c());
|
|
5377
5419
|
}
|
|
5378
5420
|
$.prototype = {
|
|
5379
5421
|
constructor: $,
|
|
5380
5422
|
_isOutsideThisEl: function(e) {
|
|
5381
|
-
!this.el.contains(e) && e !== this.el && (
|
|
5423
|
+
!this.el.contains(e) && e !== this.el && (jl = null);
|
|
5382
5424
|
},
|
|
5383
5425
|
_getDirection: function(e, t) {
|
|
5384
5426
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, Z) : this.options.direction;
|
|
@@ -5386,57 +5428,57 @@ $.prototype = {
|
|
|
5386
5428
|
_onTapStart: function(e) {
|
|
5387
5429
|
if (e.cancelable) {
|
|
5388
5430
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
5389
|
-
if (
|
|
5390
|
-
if (
|
|
5431
|
+
if (cu(n), !Z && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && wc && s && s.tagName.toUpperCase() === "SELECT") && (s = Ac(s, r.draggable, n, !1), !(s && s.animated) && fl !== s)) {
|
|
5432
|
+
if (hl = Bc(s), _l = Bc(s, r.draggable), typeof l == "function") {
|
|
5391
5433
|
if (l.call(this, e, s, this)) {
|
|
5392
|
-
|
|
5434
|
+
cl({
|
|
5393
5435
|
sortable: t,
|
|
5394
5436
|
rootEl: c,
|
|
5395
5437
|
name: "filter",
|
|
5396
5438
|
targetEl: s,
|
|
5397
5439
|
toEl: n,
|
|
5398
5440
|
fromEl: n
|
|
5399
|
-
}),
|
|
5441
|
+
}), sl("filter", t, { evt: e }), i && e.preventDefault();
|
|
5400
5442
|
return;
|
|
5401
5443
|
}
|
|
5402
5444
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
5403
|
-
if (r =
|
|
5445
|
+
if (r = Ac(c, r.trim(), n, !1), r) return cl({
|
|
5404
5446
|
sortable: t,
|
|
5405
5447
|
rootEl: r,
|
|
5406
5448
|
name: "filter",
|
|
5407
5449
|
targetEl: s,
|
|
5408
5450
|
fromEl: n,
|
|
5409
5451
|
toEl: n
|
|
5410
|
-
}),
|
|
5452
|
+
}), sl("filter", t, { evt: e }), !0;
|
|
5411
5453
|
}), l)) {
|
|
5412
5454
|
i && e.preventDefault();
|
|
5413
5455
|
return;
|
|
5414
5456
|
}
|
|
5415
|
-
(!r.handle ||
|
|
5457
|
+
(!r.handle || Ac(c, r.handle, n, !1)) && this._prepareDragStart(e, o, s);
|
|
5416
5458
|
}
|
|
5417
5459
|
}
|
|
5418
5460
|
},
|
|
5419
5461
|
_prepareDragStart: function(e, t, n) {
|
|
5420
5462
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
5421
5463
|
if (n && !Z && n.parentNode === i) {
|
|
5422
|
-
var c =
|
|
5423
|
-
if (
|
|
5464
|
+
var c = Ic(n);
|
|
5465
|
+
if (ul = i, Z = n, ll = Z.parentNode, dl = Z.nextSibling, fl = n, yl = a.group, $.dragged = Z, wl = {
|
|
5424
5466
|
target: Z,
|
|
5425
5467
|
clientX: (t || e).clientX,
|
|
5426
5468
|
clientY: (t || e).clientY
|
|
5427
|
-
},
|
|
5428
|
-
if (
|
|
5469
|
+
}, Ol = wl.clientX - c.left, kl = wl.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, Z.style["will-change"] = "all", s = function() {
|
|
5470
|
+
if (sl("delayEnded", r, { evt: e }), $.eventCanceled) {
|
|
5429
5471
|
r._onDrop();
|
|
5430
5472
|
return;
|
|
5431
5473
|
}
|
|
5432
|
-
r._disableDelayedDragEvents(), !
|
|
5474
|
+
r._disableDelayedDragEvents(), !Cc && r.nativeDraggable && (Z.draggable = !0), r._triggerDragStart(e, t), cl({
|
|
5433
5475
|
sortable: r,
|
|
5434
5476
|
name: "choose",
|
|
5435
5477
|
originalEvent: e
|
|
5436
|
-
}),
|
|
5478
|
+
}), Mc(Z, a.chosenClass, !0);
|
|
5437
5479
|
}, a.ignore.split(",").forEach(function(e) {
|
|
5438
|
-
|
|
5439
|
-
}), J(o, "dragover",
|
|
5480
|
+
Pc(Z, e.trim(), tu);
|
|
5481
|
+
}), J(o, "dragover", Zl), J(o, "mousemove", Zl), J(o, "touchmove", Zl), a.supportPointer ? (J(o, "pointerup", r._onDrop), !this.nativeDraggable && J(o, "pointercancel", r._onDrop)) : (J(o, "mouseup", r._onDrop), J(o, "touchend", r._onDrop), J(o, "touchcancel", r._onDrop)), Cc && this.nativeDraggable && (this.options.touchStartThreshold = 4, Z.draggable = !0), sl("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Sc || xc))) {
|
|
5440
5482
|
if ($.eventCanceled) {
|
|
5441
5483
|
this._onDrop();
|
|
5442
5484
|
return;
|
|
@@ -5450,25 +5492,25 @@ $.prototype = {
|
|
|
5450
5492
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
5451
5493
|
},
|
|
5452
5494
|
_disableDelayedDrag: function() {
|
|
5453
|
-
Z &&
|
|
5495
|
+
Z && tu(Z), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
5454
5496
|
},
|
|
5455
5497
|
_disableDelayedDragEvents: function() {
|
|
5456
5498
|
var e = this.el.ownerDocument;
|
|
5457
5499
|
Y(e, "mouseup", this._disableDelayedDrag), Y(e, "touchend", this._disableDelayedDrag), Y(e, "touchcancel", this._disableDelayedDrag), Y(e, "pointerup", this._disableDelayedDrag), Y(e, "pointercancel", this._disableDelayedDrag), Y(e, "mousemove", this._delayedDragTouchMoveHandler), Y(e, "touchmove", this._delayedDragTouchMoveHandler), Y(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
5458
5500
|
},
|
|
5459
5501
|
_triggerDragStart: function(e, t) {
|
|
5460
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? J(document, "pointermove", this._onTouchMove) : t ? J(document, "touchmove", this._onTouchMove) : J(document, "mousemove", this._onTouchMove) : (J(Z, "dragend", this), J(
|
|
5502
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? J(document, "pointermove", this._onTouchMove) : t ? J(document, "touchmove", this._onTouchMove) : J(document, "mousemove", this._onTouchMove) : (J(Z, "dragend", this), J(ul, "dragstart", this._onDragStart));
|
|
5461
5503
|
try {
|
|
5462
|
-
document.selection ?
|
|
5504
|
+
document.selection ? lu(function() {
|
|
5463
5505
|
document.selection.empty();
|
|
5464
5506
|
}) : window.getSelection().removeAllRanges();
|
|
5465
5507
|
} catch {}
|
|
5466
5508
|
},
|
|
5467
5509
|
_dragStarted: function(e, t) {
|
|
5468
|
-
if (
|
|
5469
|
-
|
|
5510
|
+
if (xl = !1, ul && Z) {
|
|
5511
|
+
sl("dragStarted", this, { evt: t }), this.nativeDraggable && J(document, "dragover", Ql);
|
|
5470
5512
|
var n = this.options;
|
|
5471
|
-
!e &&
|
|
5513
|
+
!e && Mc(Z, n.dragClass, !1), Mc(Z, n.ghostClass, !0), $.active = this, e && this._appendGhost(), cl({
|
|
5472
5514
|
sortable: this,
|
|
5473
5515
|
name: "start",
|
|
5474
5516
|
originalEvent: t
|
|
@@ -5476,33 +5518,33 @@ $.prototype = {
|
|
|
5476
5518
|
} else this._nulling();
|
|
5477
5519
|
},
|
|
5478
5520
|
_emulateDragOver: function() {
|
|
5479
|
-
if (
|
|
5480
|
-
this._lastX =
|
|
5481
|
-
for (var e = document.elementFromPoint(
|
|
5482
|
-
if (Z.parentNode[
|
|
5483
|
-
if (t[
|
|
5521
|
+
if (Tl) {
|
|
5522
|
+
this._lastX = Tl.clientX, this._lastY = Tl.clientY, Yl();
|
|
5523
|
+
for (var e = document.elementFromPoint(Tl.clientX, Tl.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Tl.clientX, Tl.clientY), e !== t);) t = e;
|
|
5524
|
+
if (Z.parentNode[Qc]._isOutsideThisEl(e), t) do {
|
|
5525
|
+
if (t[Qc]) {
|
|
5484
5526
|
var n = void 0;
|
|
5485
|
-
if (n = t[
|
|
5486
|
-
clientX:
|
|
5487
|
-
clientY:
|
|
5527
|
+
if (n = t[Qc]._onDragOver({
|
|
5528
|
+
clientX: Tl.clientX,
|
|
5529
|
+
clientY: Tl.clientY,
|
|
5488
5530
|
target: e,
|
|
5489
5531
|
rootEl: t
|
|
5490
5532
|
}), n && !this.options.dragoverBubble) break;
|
|
5491
5533
|
}
|
|
5492
5534
|
e = t;
|
|
5493
|
-
} while (t =
|
|
5494
|
-
|
|
5535
|
+
} while (t = kc(t));
|
|
5536
|
+
Xl();
|
|
5495
5537
|
}
|
|
5496
5538
|
},
|
|
5497
5539
|
_onTouchMove: function(e) {
|
|
5498
|
-
if (
|
|
5499
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q &&
|
|
5500
|
-
if (!$.active && !
|
|
5540
|
+
if (wl) {
|
|
5541
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q && Nc(Q, !0), o = Q && a && a.a, s = Q && a && a.d, c = Vl && Il && Vc(Il), l = (i.clientX - wl.clientX + r.x) / (o || 1) + (c ? c[0] - Ll[0] : 0) / (o || 1), u = (i.clientY - wl.clientY + r.y) / (s || 1) + (c ? c[1] - Ll[1] : 0) / (s || 1);
|
|
5542
|
+
if (!$.active && !xl) {
|
|
5501
5543
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
5502
5544
|
this._onDragStart(e, !0);
|
|
5503
5545
|
}
|
|
5504
5546
|
if (Q) {
|
|
5505
|
-
a ? (a.e += l - (
|
|
5547
|
+
a ? (a.e += l - (El || 0), a.f += u - (Dl || 0)) : a = {
|
|
5506
5548
|
a: 1,
|
|
5507
5549
|
b: 0,
|
|
5508
5550
|
c: 0,
|
|
@@ -5511,39 +5553,39 @@ $.prototype = {
|
|
|
5511
5553
|
f: u
|
|
5512
5554
|
};
|
|
5513
5555
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
5514
|
-
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d),
|
|
5556
|
+
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d), El = l, Dl = u, Tl = i;
|
|
5515
5557
|
}
|
|
5516
5558
|
e.cancelable && e.preventDefault();
|
|
5517
5559
|
}
|
|
5518
5560
|
},
|
|
5519
5561
|
_appendGhost: function() {
|
|
5520
5562
|
if (!Q) {
|
|
5521
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
5522
|
-
if (
|
|
5523
|
-
for (
|
|
5524
|
-
|
|
5563
|
+
var e = this.options.fallbackOnBody ? document.body : ul, t = Ic(Z, !0, Vl, !0, e), n = this.options;
|
|
5564
|
+
if (Vl) {
|
|
5565
|
+
for (Il = e; X(Il, "position") === "static" && X(Il, "transform") === "none" && Il !== document;) Il = Il.parentNode;
|
|
5566
|
+
Il !== document.body && Il !== document.documentElement ? (Il === document && (Il = Fc()), t.top += Il.scrollTop, t.left += Il.scrollLeft) : Il = Fc(), Ll = Vc(Il);
|
|
5525
5567
|
}
|
|
5526
|
-
Q = Z.cloneNode(!0),
|
|
5568
|
+
Q = Z.cloneNode(!0), Mc(Q, n.ghostClass, !1), Mc(Q, n.fallbackClass, !0), Mc(Q, n.dragClass, !0), X(Q, "transition", ""), X(Q, "transform", ""), X(Q, "box-sizing", "border-box"), X(Q, "margin", 0), X(Q, "top", t.top), X(Q, "left", t.left), X(Q, "width", t.width), X(Q, "height", t.height), X(Q, "opacity", "0.8"), X(Q, "position", Vl ? "absolute" : "fixed"), X(Q, "zIndex", "100000"), X(Q, "pointerEvents", "none"), $.ghost = Q, e.appendChild(Q), X(Q, "transform-origin", Ol / parseInt(Q.style.width) * 100 + "% " + kl / parseInt(Q.style.height) * 100 + "%");
|
|
5527
5569
|
}
|
|
5528
5570
|
},
|
|
5529
5571
|
_onDragStart: function(e, t) {
|
|
5530
5572
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
5531
|
-
if (
|
|
5573
|
+
if (sl("dragStart", this, { evt: e }), $.eventCanceled) {
|
|
5532
5574
|
this._onDrop();
|
|
5533
5575
|
return;
|
|
5534
5576
|
}
|
|
5535
|
-
|
|
5536
|
-
|
|
5577
|
+
sl("setupClone", this), $.eventCanceled || (pl = Xc(Z), pl.removeAttribute("id"), pl.draggable = !1, pl.style["will-change"] = "", this._hideClone(), Mc(pl, this.options.chosenClass, !1), $.clone = pl), n.cloneId = lu(function() {
|
|
5578
|
+
sl("clone", n), !$.eventCanceled && (n.options.removeCloneOnHide || ul.insertBefore(pl, Z), n._hideClone(), cl({
|
|
5537
5579
|
sortable: n,
|
|
5538
5580
|
name: "clone"
|
|
5539
5581
|
}));
|
|
5540
|
-
}), !t &&
|
|
5582
|
+
}), !t && Mc(Z, i.dragClass, !0), t ? (Sl = !0, n._loopId = setInterval(n._emulateDragOver, 50)) : (Y(document, "mouseup", n._onDrop), Y(document, "touchend", n._onDrop), Y(document, "touchcancel", n._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(n, r, Z)), J(document, "drop", n), X(Z, "transform", "translateZ(0)")), xl = !0, n._dragStartId = lu(n._dragStarted.bind(n, t, e)), J(document, "selectstart", n), Al = !0, window.getSelection().removeAllRanges(), wc && X(document.body, "user-select", "none");
|
|
5541
5583
|
},
|
|
5542
5584
|
_onDragOver: function(e) {
|
|
5543
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l =
|
|
5544
|
-
if (
|
|
5585
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l = yl === s, u = o.sort, d = bl || c, f, p = this, m = !1;
|
|
5586
|
+
if (Rl) return;
|
|
5545
5587
|
function h(o, s) {
|
|
5546
|
-
|
|
5588
|
+
sl(o, p, pc({
|
|
5547
5589
|
evt: e,
|
|
5548
5590
|
isOwner: l,
|
|
5549
5591
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -5555,7 +5597,7 @@ $.prototype = {
|
|
|
5555
5597
|
target: n,
|
|
5556
5598
|
completed: _,
|
|
5557
5599
|
onMove: function(n, i) {
|
|
5558
|
-
return
|
|
5600
|
+
return eu(ul, t, Z, r, n, Ic(n), e, i);
|
|
5559
5601
|
},
|
|
5560
5602
|
changed: v
|
|
5561
5603
|
}, s));
|
|
@@ -5564,50 +5606,50 @@ $.prototype = {
|
|
|
5564
5606
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
5565
5607
|
}
|
|
5566
5608
|
function _(r) {
|
|
5567
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
5609
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Mc(Z, bl ? bl.options.ghostClass : c.options.ghostClass, !1), Mc(Z, o.ghostClass, !0)), bl !== p && p !== $.active ? bl = p : p === $.active && bl && (bl = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
5568
5610
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
5569
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (
|
|
5611
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (jl = null), !o.dragoverBubble && !e.rootEl && n !== document && (Z.parentNode[Qc]._isOutsideThisEl(e.target), !r && Zl(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
5570
5612
|
}
|
|
5571
5613
|
function v() {
|
|
5572
|
-
|
|
5614
|
+
gl = Bc(Z), vl = Bc(Z, o.draggable), cl({
|
|
5573
5615
|
sortable: p,
|
|
5574
5616
|
name: "change",
|
|
5575
5617
|
toEl: t,
|
|
5576
|
-
newIndex:
|
|
5577
|
-
newDraggableIndex:
|
|
5618
|
+
newIndex: gl,
|
|
5619
|
+
newDraggableIndex: vl,
|
|
5578
5620
|
originalEvent: e
|
|
5579
5621
|
});
|
|
5580
5622
|
}
|
|
5581
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
5623
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ac(n, o.draggable, t, !0), h("dragOver"), $.eventCanceled) return m;
|
|
5582
5624
|
if (Z.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
5583
|
-
if (
|
|
5584
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
5585
|
-
if (a) return
|
|
5586
|
-
var y =
|
|
5587
|
-
if (!y ||
|
|
5625
|
+
if (Sl = !1, c && !o.disabled && (l ? u || (a = ll !== ul) : bl === this || (this.lastPutMode = yl.checkPull(this, c, Z, e)) && s.checkPut(this, c, Z, e))) {
|
|
5626
|
+
if (f = this._getDirection(e, n) === "vertical", r = Ic(Z), h("dragOverValid"), $.eventCanceled) return m;
|
|
5627
|
+
if (a) return ll = ul, g(), this._hideClone(), h("revert"), $.eventCanceled || (dl ? ul.insertBefore(Z, dl) : ul.appendChild(Z)), _(!0);
|
|
5628
|
+
var y = zc(t, o.draggable);
|
|
5629
|
+
if (!y || iu(e, f, this) && !y.animated) {
|
|
5588
5630
|
if (y === Z) return _(!1);
|
|
5589
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
5590
|
-
} else if (y &&
|
|
5591
|
-
var b =
|
|
5631
|
+
if (y && t === e.target && (n = y), n && (i = Ic(n)), eu(ul, t, Z, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(Z, y.nextSibling) : t.appendChild(Z), ll = t, v(), _(!0);
|
|
5632
|
+
} else if (y && ru(e, f, this)) {
|
|
5633
|
+
var b = Rc(t, 0, o, !0);
|
|
5592
5634
|
if (b === Z) return _(!1);
|
|
5593
|
-
if (n = b, i =
|
|
5635
|
+
if (n = b, i = Ic(n), eu(ul, t, Z, r, n, i, e, !1) !== !1) return g(), t.insertBefore(Z, b), ll = t, v(), _(!0);
|
|
5594
5636
|
} else if (n.parentNode === t) {
|
|
5595
|
-
i =
|
|
5596
|
-
var x = 0, S, C = Z.parentNode !== t, w = !
|
|
5597
|
-
|
|
5637
|
+
i = Ic(n);
|
|
5638
|
+
var x = 0, S, C = Z.parentNode !== t, w = !Kl(Z.animated && Z.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Lc(n, "top", "top") || Lc(Z, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
5639
|
+
jl !== n && (S = i[T], Nl = !1, Pl = !w && o.invertSwap || C), x = au(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Pl, jl === n);
|
|
5598
5640
|
var O;
|
|
5599
5641
|
if (x !== 0) {
|
|
5600
|
-
var k =
|
|
5642
|
+
var k = Bc(Z);
|
|
5601
5643
|
do
|
|
5602
|
-
k -= x, O =
|
|
5644
|
+
k -= x, O = ll.children[k];
|
|
5603
5645
|
while (O && (X(O, "display") === "none" || O === Q));
|
|
5604
5646
|
}
|
|
5605
5647
|
if (x === 0 || O === n) return _(!1);
|
|
5606
|
-
|
|
5648
|
+
jl = n, Ml = x;
|
|
5607
5649
|
var A = n.nextElementSibling, j = !1;
|
|
5608
5650
|
j = x === 1;
|
|
5609
|
-
var M =
|
|
5610
|
-
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1),
|
|
5651
|
+
var M = eu(ul, t, Z, r, n, i, e, j);
|
|
5652
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Rl = !0, setTimeout(nu, 30), g(), j && !A ? t.appendChild(Z) : n.parentNode.insertBefore(Z, j ? A : n), E && Yc(E, 0, D - E.scrollTop), ll = Z.parentNode, S !== void 0 && !Pl && (Fl = Math.abs(S - Ic(n)[T])), v(), _(!0);
|
|
5611
5653
|
}
|
|
5612
5654
|
if (t.contains(Z)) return _(!1);
|
|
5613
5655
|
}
|
|
@@ -5615,7 +5657,7 @@ $.prototype = {
|
|
|
5615
5657
|
},
|
|
5616
5658
|
_ignoreWhileAnimating: null,
|
|
5617
5659
|
_offMoveEvents: function() {
|
|
5618
|
-
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover",
|
|
5660
|
+
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover", Zl), Y(document, "mousemove", Zl), Y(document, "touchmove", Zl);
|
|
5619
5661
|
},
|
|
5620
5662
|
_offUpEvents: function() {
|
|
5621
5663
|
var e = this.el.ownerDocument;
|
|
@@ -5623,62 +5665,62 @@ $.prototype = {
|
|
|
5623
5665
|
},
|
|
5624
5666
|
_onDrop: function(e) {
|
|
5625
5667
|
var t = this.el, n = this.options;
|
|
5626
|
-
if (
|
|
5668
|
+
if (gl = Bc(Z), vl = Bc(Z, n.draggable), sl("drop", this, { evt: e }), ll = Z && Z.parentNode, gl = Bc(Z), vl = Bc(Z, n.draggable), $.eventCanceled) {
|
|
5627
5669
|
this._nulling();
|
|
5628
5670
|
return;
|
|
5629
5671
|
}
|
|
5630
|
-
|
|
5672
|
+
xl = !1, Pl = !1, Nl = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), uu(this.cloneId), uu(this._dragStartId), this.nativeDraggable && (Y(document, "drop", this), Y(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), wc && X(document.body, "user-select", ""), X(Z, "transform", ""), e && (Al && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), Q && Q.parentNode && Q.parentNode.removeChild(Q), (ul === ll || bl && bl.lastPutMode !== "clone") && pl && pl.parentNode && pl.parentNode.removeChild(pl), Z && (this.nativeDraggable && Y(Z, "dragend", this), tu(Z), Z.style["will-change"] = "", Al && !xl && Mc(Z, bl ? bl.options.ghostClass : this.options.ghostClass, !1), Mc(Z, this.options.chosenClass, !1), cl({
|
|
5631
5673
|
sortable: this,
|
|
5632
5674
|
name: "unchoose",
|
|
5633
|
-
toEl:
|
|
5675
|
+
toEl: ll,
|
|
5634
5676
|
newIndex: null,
|
|
5635
5677
|
newDraggableIndex: null,
|
|
5636
5678
|
originalEvent: e
|
|
5637
|
-
}),
|
|
5679
|
+
}), ul === ll ? gl !== hl && gl >= 0 && (cl({
|
|
5638
5680
|
sortable: this,
|
|
5639
5681
|
name: "update",
|
|
5640
|
-
toEl:
|
|
5682
|
+
toEl: ll,
|
|
5641
5683
|
originalEvent: e
|
|
5642
|
-
}),
|
|
5684
|
+
}), cl({
|
|
5643
5685
|
sortable: this,
|
|
5644
5686
|
name: "sort",
|
|
5645
|
-
toEl:
|
|
5687
|
+
toEl: ll,
|
|
5646
5688
|
originalEvent: e
|
|
5647
|
-
})) : (
|
|
5648
|
-
rootEl:
|
|
5689
|
+
})) : (gl >= 0 && (cl({
|
|
5690
|
+
rootEl: ll,
|
|
5649
5691
|
name: "add",
|
|
5650
|
-
toEl:
|
|
5651
|
-
fromEl:
|
|
5692
|
+
toEl: ll,
|
|
5693
|
+
fromEl: ul,
|
|
5652
5694
|
originalEvent: e
|
|
5653
|
-
}),
|
|
5695
|
+
}), cl({
|
|
5654
5696
|
sortable: this,
|
|
5655
5697
|
name: "remove",
|
|
5656
|
-
toEl:
|
|
5698
|
+
toEl: ll,
|
|
5657
5699
|
originalEvent: e
|
|
5658
|
-
}),
|
|
5659
|
-
rootEl:
|
|
5700
|
+
}), cl({
|
|
5701
|
+
rootEl: ll,
|
|
5660
5702
|
name: "sort",
|
|
5661
|
-
toEl:
|
|
5662
|
-
fromEl:
|
|
5703
|
+
toEl: ll,
|
|
5704
|
+
fromEl: ul,
|
|
5663
5705
|
originalEvent: e
|
|
5664
|
-
}),
|
|
5706
|
+
}), cl({
|
|
5665
5707
|
sortable: this,
|
|
5666
5708
|
name: "sort",
|
|
5667
|
-
toEl:
|
|
5709
|
+
toEl: ll,
|
|
5668
5710
|
originalEvent: e
|
|
5669
|
-
})),
|
|
5711
|
+
})), bl && bl.save()), $.active && ((gl == null || gl === -1) && (gl = hl, vl = _l), cl({
|
|
5670
5712
|
sortable: this,
|
|
5671
5713
|
name: "end",
|
|
5672
|
-
toEl:
|
|
5714
|
+
toEl: ll,
|
|
5673
5715
|
originalEvent: e
|
|
5674
5716
|
}), this.save()))), this._nulling();
|
|
5675
5717
|
},
|
|
5676
5718
|
_nulling: function() {
|
|
5677
|
-
|
|
5719
|
+
sl("nulling", this), ul = Z = ll = Q = dl = pl = fl = ml = wl = Tl = Al = gl = vl = hl = _l = jl = Ml = bl = yl = $.dragged = $.ghost = $.clone = $.active = null;
|
|
5678
5720
|
var e = this.el;
|
|
5679
|
-
|
|
5721
|
+
zl.forEach(function(t) {
|
|
5680
5722
|
e.contains(t) && (t.checked = !0);
|
|
5681
|
-
}),
|
|
5723
|
+
}), zl.length = El = Dl = 0;
|
|
5682
5724
|
},
|
|
5683
5725
|
handleEvent: function(e) {
|
|
5684
5726
|
switch (e.type) {
|
|
@@ -5688,20 +5730,20 @@ $.prototype = {
|
|
|
5688
5730
|
break;
|
|
5689
5731
|
case "dragenter":
|
|
5690
5732
|
case "dragover":
|
|
5691
|
-
Z && (this._onDragOver(e),
|
|
5733
|
+
Z && (this._onDragOver(e), $l(e));
|
|
5692
5734
|
break;
|
|
5693
5735
|
case "selectstart": e.preventDefault();
|
|
5694
5736
|
}
|
|
5695
5737
|
},
|
|
5696
5738
|
toArray: function() {
|
|
5697
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
5739
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ac(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || su(t));
|
|
5698
5740
|
return e;
|
|
5699
5741
|
},
|
|
5700
5742
|
sort: function(e, t) {
|
|
5701
5743
|
var n = {}, r = this.el;
|
|
5702
5744
|
this.toArray().forEach(function(e, t) {
|
|
5703
5745
|
var i = r.children[t];
|
|
5704
|
-
|
|
5746
|
+
Ac(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
5705
5747
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
5706
5748
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
5707
5749
|
}), t && this.animateAll();
|
|
@@ -5711,25 +5753,25 @@ $.prototype = {
|
|
|
5711
5753
|
e && e.set && e.set(this);
|
|
5712
5754
|
},
|
|
5713
5755
|
closest: function(e, t) {
|
|
5714
|
-
return
|
|
5756
|
+
return Ac(e, t || this.options.draggable, this.el, !1);
|
|
5715
5757
|
},
|
|
5716
5758
|
option: function(e, t) {
|
|
5717
5759
|
var n = this.options;
|
|
5718
5760
|
if (t === void 0) return n[e];
|
|
5719
|
-
var r =
|
|
5720
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
5761
|
+
var r = il.modifyOption(this, e, t);
|
|
5762
|
+
n[e] = r === void 0 ? t : r, e === "group" && Jl(n);
|
|
5721
5763
|
},
|
|
5722
5764
|
destroy: function() {
|
|
5723
|
-
|
|
5765
|
+
sl("destroy", this);
|
|
5724
5766
|
var e = this.el;
|
|
5725
|
-
e[
|
|
5767
|
+
e[Qc] = null, Y(e, "mousedown", this._onTapStart), Y(e, "touchstart", this._onTapStart), Y(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Y(e, "dragover", this), Y(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
5726
5768
|
e.removeAttribute("draggable");
|
|
5727
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
5769
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Cl.splice(Cl.indexOf(this.el), 1), this.el = e = null;
|
|
5728
5770
|
},
|
|
5729
5771
|
_hideClone: function() {
|
|
5730
|
-
if (!
|
|
5731
|
-
if (
|
|
5732
|
-
X(
|
|
5772
|
+
if (!ml) {
|
|
5773
|
+
if (sl("hideClone", this), $.eventCanceled) return;
|
|
5774
|
+
X(pl, "display", "none"), this.options.removeCloneOnHide && pl.parentNode && pl.parentNode.removeChild(pl), ml = !0;
|
|
5733
5775
|
}
|
|
5734
5776
|
},
|
|
5735
5777
|
_showClone: function(e) {
|
|
@@ -5737,100 +5779,100 @@ $.prototype = {
|
|
|
5737
5779
|
this._hideClone();
|
|
5738
5780
|
return;
|
|
5739
5781
|
}
|
|
5740
|
-
if (
|
|
5741
|
-
if (
|
|
5742
|
-
Z.parentNode ==
|
|
5782
|
+
if (ml) {
|
|
5783
|
+
if (sl("showClone", this), $.eventCanceled) return;
|
|
5784
|
+
Z.parentNode == ul && !this.options.group.revertClone ? ul.insertBefore(pl, Z) : dl ? ul.insertBefore(pl, dl) : ul.appendChild(pl), this.options.group.revertClone && this.animate(Z, pl), X(pl, "display", ""), ml = !1;
|
|
5743
5785
|
}
|
|
5744
5786
|
}
|
|
5745
5787
|
};
|
|
5746
|
-
function
|
|
5788
|
+
function $l(e) {
|
|
5747
5789
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5748
5790
|
}
|
|
5749
|
-
function
|
|
5750
|
-
var c, l = e[
|
|
5751
|
-
return window.CustomEvent && !
|
|
5791
|
+
function eu(e, t, n, r, i, a, o, s) {
|
|
5792
|
+
var c, l = e[Qc], u = l.options.onMove, d;
|
|
5793
|
+
return window.CustomEvent && !xc && !Sc ? c = new CustomEvent("move", {
|
|
5752
5794
|
bubbles: !0,
|
|
5753
5795
|
cancelable: !0
|
|
5754
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a ||
|
|
5796
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || Ic(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
5755
5797
|
}
|
|
5756
|
-
function
|
|
5798
|
+
function tu(e) {
|
|
5757
5799
|
e.draggable = !1;
|
|
5758
5800
|
}
|
|
5759
|
-
function
|
|
5760
|
-
|
|
5801
|
+
function nu() {
|
|
5802
|
+
Rl = !1;
|
|
5761
5803
|
}
|
|
5762
|
-
function
|
|
5763
|
-
var r =
|
|
5804
|
+
function ru(e, t, n) {
|
|
5805
|
+
var r = Ic(Rc(n.el, 0, n.options, !0)), i = Zc(n.el, n.options, Q), a = 10;
|
|
5764
5806
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
5765
5807
|
}
|
|
5766
|
-
function
|
|
5767
|
-
var r =
|
|
5808
|
+
function iu(e, t, n) {
|
|
5809
|
+
var r = Ic(zc(n.el, n.options.draggable)), i = Zc(n.el, n.options, Q), a = 10;
|
|
5768
5810
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
5769
5811
|
}
|
|
5770
|
-
function
|
|
5812
|
+
function au(e, t, n, r, i, a, o, s) {
|
|
5771
5813
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
5772
5814
|
if (!o) {
|
|
5773
|
-
if (s &&
|
|
5774
|
-
if (!
|
|
5775
|
-
else if (
|
|
5776
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
5815
|
+
if (s && Fl < l * i) {
|
|
5816
|
+
if (!Nl && (Ml === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Nl = !0), Nl) f = !0;
|
|
5817
|
+
else if (Ml === 1 ? c < u + Fl : c > d - Fl) return -Ml;
|
|
5818
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return ou(t);
|
|
5777
5819
|
}
|
|
5778
5820
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
5779
5821
|
}
|
|
5780
|
-
function
|
|
5781
|
-
return
|
|
5822
|
+
function ou(e) {
|
|
5823
|
+
return Bc(Z) < Bc(e) ? 1 : -1;
|
|
5782
5824
|
}
|
|
5783
|
-
function
|
|
5825
|
+
function su(e) {
|
|
5784
5826
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
5785
5827
|
return r.toString(36);
|
|
5786
5828
|
}
|
|
5787
|
-
function
|
|
5788
|
-
|
|
5829
|
+
function cu(e) {
|
|
5830
|
+
zl.length = 0;
|
|
5789
5831
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
5790
5832
|
var r = t[n];
|
|
5791
|
-
r.checked &&
|
|
5833
|
+
r.checked && zl.push(r);
|
|
5792
5834
|
}
|
|
5793
5835
|
}
|
|
5794
|
-
function
|
|
5836
|
+
function lu(e) {
|
|
5795
5837
|
return setTimeout(e, 0);
|
|
5796
5838
|
}
|
|
5797
|
-
function
|
|
5839
|
+
function uu(e) {
|
|
5798
5840
|
return clearTimeout(e);
|
|
5799
5841
|
}
|
|
5800
|
-
|
|
5801
|
-
($.active ||
|
|
5842
|
+
Bl && J(document, "touchmove", function(e) {
|
|
5843
|
+
($.active || xl) && e.cancelable && e.preventDefault();
|
|
5802
5844
|
}), $.utils = {
|
|
5803
5845
|
on: J,
|
|
5804
5846
|
off: Y,
|
|
5805
5847
|
css: X,
|
|
5806
|
-
find:
|
|
5848
|
+
find: Pc,
|
|
5807
5849
|
is: function(e, t) {
|
|
5808
|
-
return !!
|
|
5850
|
+
return !!Ac(e, t, e, !1);
|
|
5809
5851
|
},
|
|
5810
|
-
extend:
|
|
5811
|
-
throttle:
|
|
5812
|
-
closest:
|
|
5813
|
-
toggleClass:
|
|
5814
|
-
clone:
|
|
5815
|
-
index:
|
|
5816
|
-
nextTick:
|
|
5817
|
-
cancelNextTick:
|
|
5818
|
-
detectDirection:
|
|
5819
|
-
getChild:
|
|
5820
|
-
expando:
|
|
5852
|
+
extend: Wc,
|
|
5853
|
+
throttle: qc,
|
|
5854
|
+
closest: Ac,
|
|
5855
|
+
toggleClass: Mc,
|
|
5856
|
+
clone: Xc,
|
|
5857
|
+
index: Bc,
|
|
5858
|
+
nextTick: lu,
|
|
5859
|
+
cancelNextTick: uu,
|
|
5860
|
+
detectDirection: Gl,
|
|
5861
|
+
getChild: Rc,
|
|
5862
|
+
expando: Qc
|
|
5821
5863
|
}, $.get = function(e) {
|
|
5822
|
-
return e[
|
|
5864
|
+
return e[Qc];
|
|
5823
5865
|
}, $.mount = function() {
|
|
5824
5866
|
var e = [...arguments];
|
|
5825
5867
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
5826
5868
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
5827
|
-
e.utils && ($.utils =
|
|
5869
|
+
e.utils && ($.utils = pc(pc({}, $.utils), e.utils)), il.mount(e);
|
|
5828
5870
|
});
|
|
5829
5871
|
}, $.create = function(e, t) {
|
|
5830
5872
|
return new $(e, t);
|
|
5831
|
-
}, $.version =
|
|
5832
|
-
var
|
|
5833
|
-
function
|
|
5873
|
+
}, $.version = yc;
|
|
5874
|
+
var du = [], fu, pu, mu = !1, hu, gu, _u, vu;
|
|
5875
|
+
function yu() {
|
|
5834
5876
|
function e() {
|
|
5835
5877
|
for (var e in this.defaults = {
|
|
5836
5878
|
scroll: !0,
|
|
@@ -5850,63 +5892,63 @@ function _u() {
|
|
|
5850
5892
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
5851
5893
|
},
|
|
5852
5894
|
drop: function() {
|
|
5853
|
-
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
5895
|
+
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)), xu(), bu(), Jc();
|
|
5854
5896
|
},
|
|
5855
5897
|
nulling: function() {
|
|
5856
|
-
|
|
5898
|
+
_u = pu = fu = mu = vu = hu = gu = null, du.length = 0;
|
|
5857
5899
|
},
|
|
5858
5900
|
_handleFallbackAutoScroll: function(e) {
|
|
5859
5901
|
this._handleAutoScroll(e, !0);
|
|
5860
5902
|
},
|
|
5861
5903
|
_handleAutoScroll: function(e, t) {
|
|
5862
5904
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
5863
|
-
if (
|
|
5864
|
-
|
|
5865
|
-
var o =
|
|
5866
|
-
|
|
5867
|
-
var a =
|
|
5868
|
-
a !== o && (o = a,
|
|
5869
|
-
}, 10),
|
|
5905
|
+
if (_u = e, t || this.options.forceAutoScrollFallback || Sc || xc || wc) {
|
|
5906
|
+
Su(e, this.options, a, t);
|
|
5907
|
+
var o = Uc(a, !0);
|
|
5908
|
+
mu && (!vu || r !== hu || i !== gu) && (vu && xu(), vu = setInterval(function() {
|
|
5909
|
+
var a = Uc(document.elementFromPoint(r, i), !0);
|
|
5910
|
+
a !== o && (o = a, bu()), Su(e, n.options, a, t);
|
|
5911
|
+
}, 10), hu = r, gu = i);
|
|
5870
5912
|
} else {
|
|
5871
|
-
if (!this.options.bubbleScroll ||
|
|
5872
|
-
|
|
5913
|
+
if (!this.options.bubbleScroll || Uc(a, !0) === Fc()) {
|
|
5914
|
+
bu();
|
|
5873
5915
|
return;
|
|
5874
5916
|
}
|
|
5875
|
-
|
|
5917
|
+
Su(e, this.options, Uc(a, !1), !1);
|
|
5876
5918
|
}
|
|
5877
5919
|
}
|
|
5878
|
-
},
|
|
5920
|
+
}, dc(e, {
|
|
5879
5921
|
pluginName: "scroll",
|
|
5880
5922
|
initializeByDefault: !0
|
|
5881
5923
|
});
|
|
5882
5924
|
}
|
|
5883
|
-
function
|
|
5884
|
-
|
|
5925
|
+
function bu() {
|
|
5926
|
+
du.forEach(function(e) {
|
|
5885
5927
|
clearInterval(e.pid);
|
|
5886
|
-
}),
|
|
5928
|
+
}), du = [];
|
|
5887
5929
|
}
|
|
5888
|
-
function
|
|
5889
|
-
clearInterval(
|
|
5930
|
+
function xu() {
|
|
5931
|
+
clearInterval(vu);
|
|
5890
5932
|
}
|
|
5891
|
-
var
|
|
5933
|
+
var Su = qc(function(e, t, n, r) {
|
|
5892
5934
|
if (t.scroll) {
|
|
5893
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
5894
|
-
|
|
5895
|
-
var d = 0, f =
|
|
5935
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Fc(), l = !1, u;
|
|
5936
|
+
pu !== n && (pu = n, bu(), fu = t.scroll, u = t.scrollFn, fu === !0 && (fu = Uc(n, !0)));
|
|
5937
|
+
var d = 0, f = fu;
|
|
5896
5938
|
do {
|
|
5897
|
-
var p = f, m =
|
|
5939
|
+
var p = f, m = Ic(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = X(p), E = p.scrollLeft, D = p.scrollTop;
|
|
5898
5940
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
5899
5941
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
5900
|
-
if (!
|
|
5901
|
-
(
|
|
5902
|
-
r && this.layer === 0 && $.active._onTouchMove(
|
|
5903
|
-
var t =
|
|
5904
|
-
(typeof u != "function" || u.call($.dragged.parentNode[
|
|
5942
|
+
if (!du[d]) for (var A = 0; A <= d; A++) du[A] || (du[A] = {});
|
|
5943
|
+
(du[d].vx != O || du[d].vy != k || du[d].el !== p) && (du[d].el = p, du[d].vx = O, du[d].vy = k, clearInterval(du[d].pid), (O != 0 || k != 0) && (l = !0, du[d].pid = setInterval(function() {
|
|
5944
|
+
r && this.layer === 0 && $.active._onTouchMove(_u);
|
|
5945
|
+
var t = du[this.layer].vy ? du[this.layer].vy * s : 0, n = du[this.layer].vx ? du[this.layer].vx * s : 0;
|
|
5946
|
+
(typeof u != "function" || u.call($.dragged.parentNode[Qc], n, t, e, _u, du[this.layer].el) === "continue") && Yc(du[this.layer].el, n, t);
|
|
5905
5947
|
}.bind({ layer: d }), 24))), d++;
|
|
5906
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
5907
|
-
|
|
5948
|
+
} while (t.bubbleScroll && f !== c && (f = Uc(f, !1)));
|
|
5949
|
+
mu = l;
|
|
5908
5950
|
}
|
|
5909
|
-
}, 30),
|
|
5951
|
+
}, 30), Cu = function(e) {
|
|
5910
5952
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
5911
5953
|
if (t) {
|
|
5912
5954
|
var c = n || i;
|
|
@@ -5918,8 +5960,8 @@ var bu = Gc(function(e, t, n, r) {
|
|
|
5918
5960
|
}));
|
|
5919
5961
|
}
|
|
5920
5962
|
};
|
|
5921
|
-
function
|
|
5922
|
-
|
|
5963
|
+
function wu() {}
|
|
5964
|
+
wu.prototype = {
|
|
5923
5965
|
startIndex: null,
|
|
5924
5966
|
dragStart: function(e) {
|
|
5925
5967
|
var t = e.oldDraggableIndex;
|
|
@@ -5928,24 +5970,24 @@ Su.prototype = {
|
|
|
5928
5970
|
onSpill: function(e) {
|
|
5929
5971
|
var t = e.dragEl, n = e.putSortable;
|
|
5930
5972
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
5931
|
-
var r =
|
|
5973
|
+
var r = Rc(this.sortable.el, this.startIndex, this.options);
|
|
5932
5974
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
5933
5975
|
},
|
|
5934
|
-
drop:
|
|
5935
|
-
},
|
|
5936
|
-
function
|
|
5937
|
-
|
|
5976
|
+
drop: Cu
|
|
5977
|
+
}, dc(wu, { pluginName: "revertOnSpill" });
|
|
5978
|
+
function Tu() {}
|
|
5979
|
+
Tu.prototype = {
|
|
5938
5980
|
onSpill: function(e) {
|
|
5939
5981
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
5940
5982
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
5941
5983
|
},
|
|
5942
|
-
drop:
|
|
5943
|
-
},
|
|
5984
|
+
drop: Cu
|
|
5985
|
+
}, dc(Tu, { pluginName: "removeOnSpill" }), $.mount(new yu()), $.mount(Tu, wu);
|
|
5944
5986
|
//#endregion
|
|
5945
5987
|
//#region node_modules/@vueuse/integrations/dist/useSortable.js
|
|
5946
|
-
function
|
|
5988
|
+
function Eu(e, t, n = {}) {
|
|
5947
5989
|
let r, { document: i = Oe, watchElement: a = !1, ...o } = n, s = { onUpdate: (e) => {
|
|
5948
|
-
|
|
5990
|
+
ku(t, e.oldIndex, e.newIndex, e);
|
|
5949
5991
|
} }, c = () => {
|
|
5950
5992
|
r?.destroy(), r = void 0;
|
|
5951
5993
|
}, l = (e) => {
|
|
@@ -5975,15 +6017,15 @@ function wu(e, t, n = {}) {
|
|
|
5975
6017
|
option: d
|
|
5976
6018
|
};
|
|
5977
6019
|
}
|
|
5978
|
-
function
|
|
6020
|
+
function Du(e, t, n) {
|
|
5979
6021
|
let r = e.children[n];
|
|
5980
6022
|
e.insertBefore(t, r);
|
|
5981
6023
|
}
|
|
5982
|
-
function
|
|
6024
|
+
function Ou(e) {
|
|
5983
6025
|
e.parentNode && e.parentNode.removeChild(e);
|
|
5984
6026
|
}
|
|
5985
|
-
function
|
|
5986
|
-
r != null && (
|
|
6027
|
+
function ku(e, t, n, r = null) {
|
|
6028
|
+
r != null && (Ou(r.item), Du(r.from, r.item, t));
|
|
5987
6029
|
let i = _(e), a = i ? [...ae(e)] : ae(e);
|
|
5988
6030
|
if (n >= 0 && n < a.length) {
|
|
5989
6031
|
let r = a.splice(t, 1)[0];
|
|
@@ -5994,14 +6036,14 @@ function Du(e, t, n, r = null) {
|
|
|
5994
6036
|
}
|
|
5995
6037
|
//#endregion
|
|
5996
6038
|
//#region src/labs/listEditor/utils/positions.ts
|
|
5997
|
-
var
|
|
6039
|
+
var Au = (e) => [...e].sort((e, t) => e.position - t.position), ju = (e, t = []) => Au(e).map((e) => {
|
|
5998
6040
|
let n = e;
|
|
5999
6041
|
for (let r of t) {
|
|
6000
6042
|
let i = e[r];
|
|
6001
|
-
Array.isArray(i) && (n === e && (n = { ...e }), n[r] =
|
|
6043
|
+
Array.isArray(i) && (n === e && (n = { ...e }), n[r] = ju(i, t));
|
|
6002
6044
|
}
|
|
6003
6045
|
return n;
|
|
6004
|
-
}),
|
|
6046
|
+
}), Mu = (e, t = {}) => {
|
|
6005
6047
|
let n = t.positionField ?? "position", r = t.positionMultiplier ?? 1;
|
|
6006
6048
|
return e.map((e, t) => {
|
|
6007
6049
|
let i = (t + 1) * r;
|
|
@@ -6010,7 +6052,7 @@ var Ou = (e) => [...e].sort((e, t) => e.position - t.position), ku = (e, t = [])
|
|
|
6010
6052
|
[n]: i
|
|
6011
6053
|
};
|
|
6012
6054
|
});
|
|
6013
|
-
},
|
|
6055
|
+
}, Nu = (e, t = {}) => {
|
|
6014
6056
|
let n = t.positionField ?? "position", r = e.map((e) => e[n]);
|
|
6015
6057
|
if (!r.every((e) => typeof e == "number" && Number.isFinite(e))) return console.warn(`[listEditor] position strategy "preserve-values" needs a finite numeric \`${n}\` on every row; found ` + JSON.stringify(r) + " — leaving positions untouched."), e;
|
|
6016
6058
|
new Set(r).size !== r.length && console.warn(`[listEditor] position strategy "preserve-values" found DUPLICATE \`${n}\` values ` + JSON.stringify(r) + " — the resulting order is not well defined relative to any interleaved collection.");
|
|
@@ -6019,10 +6061,10 @@ var Ou = (e) => [...e].sort((e, t) => e.position - t.position), ku = (e, t = [])
|
|
|
6019
6061
|
...e,
|
|
6020
6062
|
[n]: i[t]
|
|
6021
6063
|
});
|
|
6022
|
-
},
|
|
6064
|
+
}, Pu = 0, Fu = () => --Pu;
|
|
6023
6065
|
//#endregion
|
|
6024
6066
|
//#region src/labs/listEditor/composables/useListEditorController.ts
|
|
6025
|
-
function
|
|
6067
|
+
function Iu(e) {
|
|
6026
6068
|
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = e.position ?? "position", a = i !== !1, o = typeof i == "object" ? i.field : i === !1 ? "position" : i, s = typeof i == "object" && i.multiplier ? i.multiplier : 1, c = typeof i == "object" && i.strategy || "renumber", l = typeof i == "object" && i.strategyOverrides || {}, u = n(() => e.get()), d = n(() => ae(e.dirtyExclude) ?? []), f = (e, t) => e === "id" && typeof t == "number" && t < 0 ? void 0 : t, p = (e) => {
|
|
6027
6069
|
let t = { ...e };
|
|
6028
6070
|
a && delete t[o];
|
|
@@ -6047,7 +6089,7 @@ function Pu(e) {
|
|
|
6047
6089
|
return {
|
|
6048
6090
|
rows: e.map((e) => r(e) == null ? (n = !0, {
|
|
6049
6091
|
...e,
|
|
6050
|
-
[t]:
|
|
6092
|
+
[t]: Fu()
|
|
6051
6093
|
}) : e),
|
|
6052
6094
|
changed: n
|
|
6053
6095
|
};
|
|
@@ -6117,7 +6159,7 @@ function Pu(e) {
|
|
|
6117
6159
|
}), N = n(() => ee.value.size > 0), te = (e, t, n = !1) => {
|
|
6118
6160
|
let { invalid: r, warning: i } = A(e, t);
|
|
6119
6161
|
return r ? b.value ? "invalid" : n ? null : T(t) || D(t) ? "invalid" : null : i ? "warning" : null;
|
|
6120
|
-
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ?
|
|
6162
|
+
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ? Nu(e, { positionField: o }) : e : Mu(e, {
|
|
6121
6163
|
positionField: o,
|
|
6122
6164
|
positionMultiplier: s
|
|
6123
6165
|
}) : e, re = (t, n) => e.set(ne(t, n)), F = () => e.payload ? e.payload(e.get()) : ne(e.get(), "payload"), ie = () => {
|
|
@@ -6136,7 +6178,7 @@ function Pu(e) {
|
|
|
6136
6178
|
}, I = (n) => {
|
|
6137
6179
|
let i = n ?? e.get(), a = (e.normalizeSaved ? e.normalizeSaved(i) : i).map((n) => (e.commitKey ? e.commitKey(n, h.value.find((e) => r(e) === r(n))) : r(n)) == null && t ? {
|
|
6138
6180
|
...n,
|
|
6139
|
-
[t]:
|
|
6181
|
+
[t]: Fu()
|
|
6140
6182
|
} : n);
|
|
6141
6183
|
e.set(a), g(a), v.value = /* @__PURE__ */ new Set(), y.value = [], C.value = /* @__PURE__ */ new Map(), w.value = /* @__PURE__ */ new Set(), b.value = !1;
|
|
6142
6184
|
}, oe = (t) => {
|
|
@@ -6203,9 +6245,9 @@ function Pu(e) {
|
|
|
6203
6245
|
}
|
|
6204
6246
|
//#endregion
|
|
6205
6247
|
//#region src/labs/listEditor/composables/useNestedListEditor.ts
|
|
6206
|
-
var
|
|
6207
|
-
function
|
|
6208
|
-
let r = t.keyField ??
|
|
6248
|
+
var Lu = "id", Ru = "position", zu = "parent";
|
|
6249
|
+
function Bu(e, t) {
|
|
6250
|
+
let r = t.keyField ?? Lu, i = t.getKey, a = t.positionField ?? Ru, o = t.parentField ?? zu, s = t.positionMultiplier ?? 1, c = t.maxDepth, l = (e) => i ? i(e) : e[r], u = (e) => {
|
|
6209
6251
|
if (!e.children || e.children.length === 0) return 1;
|
|
6210
6252
|
let t = 0;
|
|
6211
6253
|
for (let n of e.children) {
|
|
@@ -6396,19 +6438,19 @@ function Ru(e, t) {
|
|
|
6396
6438
|
}
|
|
6397
6439
|
//#endregion
|
|
6398
6440
|
//#region src/labs/listEditor/composables/useNestedListEditorController.ts
|
|
6399
|
-
var
|
|
6441
|
+
var Vu = (e) => {
|
|
6400
6442
|
let t = [], n = (e) => {
|
|
6401
6443
|
for (let r of e) t.push(r.data), r.children && r.children.length && n(r.children);
|
|
6402
6444
|
};
|
|
6403
6445
|
return n(e.children), t;
|
|
6404
|
-
},
|
|
6446
|
+
}, Hu = (e, t) => {
|
|
6405
6447
|
let n = (e) => {
|
|
6406
6448
|
for (let r of e) t(r), r.children && r.children.length && n(r.children);
|
|
6407
6449
|
};
|
|
6408
6450
|
n(e.children);
|
|
6409
6451
|
};
|
|
6410
|
-
function
|
|
6411
|
-
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = t ?? "id", a = e.position ?? "position", o = a !== !1, s = typeof a == "object" ? a.field : a === !1 ? "position" : a, c = typeof a == "object" && a.multiplier ? a.multiplier : 1, l = e.parentField ?? "parent", u =
|
|
6452
|
+
function Uu(e) {
|
|
6453
|
+
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = t ?? "id", a = e.position ?? "position", o = a !== !1, s = typeof a == "object" ? a.field : a === !1 ? "position" : a, c = typeof a == "object" && a.multiplier ? a.multiplier : 1, l = e.parentField ?? "parent", u = Bu(n({
|
|
6412
6454
|
get: () => e.get(),
|
|
6413
6455
|
set: (t) => e.set(t)
|
|
6414
6456
|
}), {
|
|
@@ -6418,7 +6460,7 @@ function Vu(e) {
|
|
|
6418
6460
|
parentField: l,
|
|
6419
6461
|
positionMultiplier: c,
|
|
6420
6462
|
maxDepth: e.maxDepth
|
|
6421
|
-
}), d = n(() =>
|
|
6463
|
+
}), d = n(() => Vu(e.get())), f = u.viewItems, p = n(() => ae(e.dirtyExclude) ?? []), m = (e) => {
|
|
6422
6464
|
let t = { ...e };
|
|
6423
6465
|
o && delete t[s], delete t[l];
|
|
6424
6466
|
for (let e of p.value) delete t[e];
|
|
@@ -6435,7 +6477,7 @@ function Vu(e) {
|
|
|
6435
6477
|
y(e.get()), L(p, () => {
|
|
6436
6478
|
if (!_.value) return;
|
|
6437
6479
|
let e = /* @__PURE__ */ new Map();
|
|
6438
|
-
|
|
6480
|
+
Hu(_.value, (t) => e.set(r(t.data), m(t.data))), h.value = e;
|
|
6439
6481
|
}, { flush: "sync" });
|
|
6440
6482
|
let b = M(!1), x = j(/* @__PURE__ */ new Map()), S = (t, n, r) => {
|
|
6441
6483
|
if (e.isDirty) {
|
|
@@ -6447,7 +6489,7 @@ function Vu(e) {
|
|
|
6447
6489
|
}, C = M(/* @__PURE__ */ new Map()), w = M(/* @__PURE__ */ new Set()), T = M(/* @__PURE__ */ new Set());
|
|
6448
6490
|
L(() => e.get(), (e) => {
|
|
6449
6491
|
let t = /* @__PURE__ */ new Set();
|
|
6450
|
-
|
|
6492
|
+
Hu(e, (e) => {
|
|
6451
6493
|
let n = r(e.data);
|
|
6452
6494
|
if (t.add(n), !h.value.has(n) && !C.value.has(n) && C.value.set(n, m(e.data)), !w.value.has(n)) {
|
|
6453
6495
|
let t = h.value.get(n) ?? C.value.get(n);
|
|
@@ -6467,12 +6509,12 @@ function Vu(e) {
|
|
|
6467
6509
|
let E = (e) => w.value.has(e), D = (e) => {
|
|
6468
6510
|
if (!_.value) return;
|
|
6469
6511
|
let t;
|
|
6470
|
-
return
|
|
6512
|
+
return Hu(_.value, (n) => {
|
|
6471
6513
|
t === void 0 && r(n.data) === e && (t = n.data);
|
|
6472
6514
|
}), t;
|
|
6473
6515
|
}, O = (t) => {
|
|
6474
6516
|
let n = !1;
|
|
6475
|
-
return
|
|
6517
|
+
return Hu(e.get(), (e) => {
|
|
6476
6518
|
!n && r(e.data) === t && (n = !0);
|
|
6477
6519
|
}), n;
|
|
6478
6520
|
}, k = n(() => {
|
|
@@ -6485,7 +6527,7 @@ function Vu(e) {
|
|
|
6485
6527
|
return n(e.get().children, null), t;
|
|
6486
6528
|
}), A = (e) => k.value.has(e), ee = n(() => {
|
|
6487
6529
|
let t = !1;
|
|
6488
|
-
return
|
|
6530
|
+
return Hu(e.get(), (e) => {
|
|
6489
6531
|
e.meta.dirty && (t = !0);
|
|
6490
6532
|
}), t;
|
|
6491
6533
|
}), N = n(() => k.value.size > 0 || T.value.size > 0 || ee.value), te = n(() => {
|
|
@@ -6512,7 +6554,7 @@ function Vu(e) {
|
|
|
6512
6554
|
};
|
|
6513
6555
|
}, ne = n(() => {
|
|
6514
6556
|
let t = /* @__PURE__ */ new Set();
|
|
6515
|
-
return
|
|
6557
|
+
return Hu(e.get(), (e) => {
|
|
6516
6558
|
let n = r(e.data);
|
|
6517
6559
|
P(e.data, n).invalid && t.add(n);
|
|
6518
6560
|
}), t;
|
|
@@ -6542,7 +6584,7 @@ function Vu(e) {
|
|
|
6542
6584
|
getChanges: () => {
|
|
6543
6585
|
let t = [], n = [], i = [], a = [], o = I(), s = /* @__PURE__ */ new Map();
|
|
6544
6586
|
for (let e of o) s.set(r(e), e);
|
|
6545
|
-
|
|
6587
|
+
Hu(e.get(), (e) => {
|
|
6546
6588
|
let o = r(e.data), c = s.get(o) ?? e.data, u = h.value.get(o);
|
|
6547
6589
|
if (u === void 0 ? t.push(c) : u !== m(e.data) && n.push(c), u !== void 0 && e.meta.dirty && u === m(e.data) && i.push(c), g.value.has(o)) {
|
|
6548
6590
|
let e = g.value.get(o) ?? null, t = c[l];
|
|
@@ -6564,9 +6606,9 @@ function Vu(e) {
|
|
|
6564
6606
|
},
|
|
6565
6607
|
commit: (n) => {
|
|
6566
6608
|
let a = n ?? e.get(), o = e.normalizeSaved ? e.normalizeSaved(a) : a, s = v(o);
|
|
6567
|
-
|
|
6609
|
+
Hu(s, (n) => {
|
|
6568
6610
|
let a = D(r(n.data));
|
|
6569
|
-
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] =
|
|
6611
|
+
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] = Fu()), n.meta.dirty = !1;
|
|
6570
6612
|
}), e.set(s), y(s), C.value = /* @__PURE__ */ new Map(), w.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(), b.value = !1;
|
|
6571
6613
|
},
|
|
6572
6614
|
reset: (t) => {
|
|
@@ -6617,9 +6659,9 @@ function Vu(e) {
|
|
|
6617
6659
|
}
|
|
6618
6660
|
//#endregion
|
|
6619
6661
|
//#region src/labs/listEditor/composables/useListEditorStateScope.ts
|
|
6620
|
-
var
|
|
6621
|
-
function
|
|
6622
|
-
let e = `les${++
|
|
6662
|
+
var Wu = Symbol("le.stateScope"), Gu = 0;
|
|
6663
|
+
function Ku() {
|
|
6664
|
+
let e = `les${++Gu}`, t = /* @__PURE__ */ new Map(), n = d(), r = (e, n) => {
|
|
6623
6665
|
n.children?.dispose(), n.scope.stop(), t.delete(e);
|
|
6624
6666
|
}, i = {
|
|
6625
6667
|
id: e,
|
|
@@ -6641,7 +6683,7 @@ function Wu() {
|
|
|
6641
6683
|
},
|
|
6642
6684
|
childScope(e) {
|
|
6643
6685
|
let n = t.get(e);
|
|
6644
|
-
return n ? (n.children ||= n.scope.run(() =>
|
|
6686
|
+
return n ? (n.children ||= n.scope.run(() => Ku()) ?? null, n.children) : null;
|
|
6645
6687
|
},
|
|
6646
6688
|
prefixFor(t) {
|
|
6647
6689
|
return `${e}:${String(t)}`;
|
|
@@ -6666,11 +6708,11 @@ function Wu() {
|
|
|
6666
6708
|
};
|
|
6667
6709
|
return p() && D(() => i.dispose()), i;
|
|
6668
6710
|
}
|
|
6669
|
-
function
|
|
6670
|
-
let t = e ??
|
|
6671
|
-
return A(
|
|
6711
|
+
function qu(e) {
|
|
6712
|
+
let t = e ?? Ku();
|
|
6713
|
+
return A(Wu, t), t;
|
|
6672
6714
|
}
|
|
6673
|
-
var
|
|
6715
|
+
var Ju = (e) => {
|
|
6674
6716
|
let t = e.get();
|
|
6675
6717
|
return {
|
|
6676
6718
|
...e,
|
|
@@ -6678,10 +6720,10 @@ var Ku = (e) => {
|
|
|
6678
6720
|
set: () => void 0
|
|
6679
6721
|
};
|
|
6680
6722
|
};
|
|
6681
|
-
function
|
|
6682
|
-
let n = h(
|
|
6723
|
+
function Yu(e, t) {
|
|
6724
|
+
let n = h(Wu, null);
|
|
6683
6725
|
if (!e || !n) return null;
|
|
6684
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
6726
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => Iu({
|
|
6685
6727
|
get: () => e.value.get(),
|
|
6686
6728
|
set: (t) => e.value.set(t),
|
|
6687
6729
|
factory: (() => e.value.factory?.()),
|
|
@@ -6690,15 +6732,15 @@ function qu(e, t) {
|
|
|
6690
6732
|
dirtyExclude: () => ae(e.value.dirtyExclude) ?? [],
|
|
6691
6733
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
6692
6734
|
}), r);
|
|
6693
|
-
return f() && T(() => n.release(e, r,
|
|
6735
|
+
return f() && T(() => n.release(e, r, Ju)), {
|
|
6694
6736
|
handle: i,
|
|
6695
6737
|
childScope: n.childScope(e)
|
|
6696
6738
|
};
|
|
6697
6739
|
}
|
|
6698
|
-
function
|
|
6699
|
-
let n = h(
|
|
6740
|
+
function Xu(e, t) {
|
|
6741
|
+
let n = h(Wu, null);
|
|
6700
6742
|
if (!e || !n) return null;
|
|
6701
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
6743
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => Uu({
|
|
6702
6744
|
get: () => e.value.get(),
|
|
6703
6745
|
set: (t) => e.value.set(t),
|
|
6704
6746
|
factory: (() => e.value.factory?.()),
|
|
@@ -6709,14 +6751,14 @@ function Ju(e, t) {
|
|
|
6709
6751
|
dirtyExclude: () => ae(e.value.dirtyExclude) ?? [],
|
|
6710
6752
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
6711
6753
|
}), r);
|
|
6712
|
-
return f() && T(() => n.release(e, r,
|
|
6754
|
+
return f() && T(() => n.release(e, r, Ju)), {
|
|
6713
6755
|
handle: i,
|
|
6714
6756
|
childScope: n.childScope(e)
|
|
6715
6757
|
};
|
|
6716
6758
|
}
|
|
6717
6759
|
//#endregion
|
|
6718
6760
|
//#region src/labs/listEditor/composables/resolveCompactText.ts
|
|
6719
|
-
function
|
|
6761
|
+
function Zu(e, t) {
|
|
6720
6762
|
if (!t.compactField) return "";
|
|
6721
6763
|
let n = e;
|
|
6722
6764
|
for (let e of t.compactField.split(".")) {
|
|
@@ -6727,8 +6769,8 @@ function Yu(e, t) {
|
|
|
6727
6769
|
}
|
|
6728
6770
|
//#endregion
|
|
6729
6771
|
//#region src/labs/unsavedGuard/useUnsavedSection.ts
|
|
6730
|
-
var
|
|
6731
|
-
function
|
|
6772
|
+
var Qu = Symbol("unsaved.sections");
|
|
6773
|
+
function $u() {
|
|
6732
6774
|
let e = j(/* @__PURE__ */ new Map());
|
|
6733
6775
|
return {
|
|
6734
6776
|
register(t, n) {
|
|
@@ -6744,12 +6786,12 @@ function Zu() {
|
|
|
6744
6786
|
})
|
|
6745
6787
|
};
|
|
6746
6788
|
}
|
|
6747
|
-
function
|
|
6748
|
-
let e =
|
|
6749
|
-
return f() && A(
|
|
6789
|
+
function ed() {
|
|
6790
|
+
let e = $u();
|
|
6791
|
+
return f() && A(Qu, e), e;
|
|
6750
6792
|
}
|
|
6751
|
-
function
|
|
6752
|
-
let t = h(
|
|
6793
|
+
function td(e) {
|
|
6794
|
+
let t = h(Qu, null);
|
|
6753
6795
|
if (!t || !f()) return;
|
|
6754
6796
|
let r = Symbol("unsaved.section"), i = n(() => {
|
|
6755
6797
|
let t = e();
|
|
@@ -6759,7 +6801,7 @@ function $u(e) {
|
|
|
6759
6801
|
}
|
|
6760
6802
|
//#endregion
|
|
6761
6803
|
//#region src/labs/listEditor/composables/useDeleteDialog.ts
|
|
6762
|
-
function
|
|
6804
|
+
function nd(e) {
|
|
6763
6805
|
let t = M(!1), n = M(null), r = M(!1), i = M(null), a = async (t) => {
|
|
6764
6806
|
if (i.value = null, e.onDeleteConfirm && !await e.onDeleteConfirm(t.raw)) return !1;
|
|
6765
6807
|
if (e.onDelete) {
|
|
@@ -6796,7 +6838,7 @@ function ed(e) {
|
|
|
6796
6838
|
}
|
|
6797
6839
|
//#endregion
|
|
6798
6840
|
//#region src/labs/listEditor/composables/useInlineEditing.ts
|
|
6799
|
-
function
|
|
6841
|
+
function rd(e) {
|
|
6800
6842
|
let t = M(/* @__PURE__ */ new Set()), n = M(/* @__PURE__ */ new Map()), r = M(!1);
|
|
6801
6843
|
return L(e.watchKeys, (i, a) => {
|
|
6802
6844
|
if (!r.value) return;
|
|
@@ -6839,14 +6881,14 @@ function td(e) {
|
|
|
6839
6881
|
}
|
|
6840
6882
|
//#endregion
|
|
6841
6883
|
//#region src/labs/listEditor/utils/revealInvalidRows.ts
|
|
6842
|
-
function
|
|
6884
|
+
function id(e, t) {
|
|
6843
6885
|
let n = e.validateAll();
|
|
6844
6886
|
if (!n) for (let n of e.invalidKeys.value) t(n);
|
|
6845
6887
|
return n;
|
|
6846
6888
|
}
|
|
6847
6889
|
//#endregion
|
|
6848
6890
|
//#region src/labs/listEditor/composables/useListEditorScopeValidity.ts
|
|
6849
|
-
function
|
|
6891
|
+
function ad(e) {
|
|
6850
6892
|
let { hasErrors: t, validationScope: n, reveal: r, validateProvided: i } = e;
|
|
6851
6893
|
if (n === void 0 || n === !1) return;
|
|
6852
6894
|
n === !0 && console.warn("[list-editor] `:validation-scope=\"true\"` uses vuelidate’s GLOBAL scope. If your save gate collects a NAMED scope (useVuelidate({ $scope: someSymbol })), this editor’s validity is NOT collected by it and the gate won’t block. Pass the SAME scope value your collector uses."), i || console.warn("[list-editor] `:validation-scope` is set but `:validate` is missing. The scope save-gate bridges the editor’s aggregate `hasErrors`, which is driven only by `:validate`; without it the gate never blocks (hasErrors stays false). Pass `:validate` so collapsed/invalid rows block the consumer save, or drop `:validation-scope` if you gate validity yourself.");
|
|
@@ -6857,8 +6899,8 @@ function rd(e) {
|
|
|
6857
6899
|
}
|
|
6858
6900
|
//#endregion
|
|
6859
6901
|
//#region src/labs/listEditor/composables/useReorderMode.ts
|
|
6860
|
-
var
|
|
6861
|
-
function
|
|
6902
|
+
var od = Symbol("le.sharedReorderRegistry");
|
|
6903
|
+
function sd(e) {
|
|
6862
6904
|
let t = M(!1), r = M(null), i = n(() => e.mode.value === "reorder"), a = n(() => e.movedKeys.value.size), o = n(() => a.value > 0), s = () => e.clonePayload ? e.clonePayload(e.modelValue.value) : e.cloneModel(e.modelValue.value), c = () => e.embedded?.value === !0;
|
|
6863
6905
|
return L(e.mode, (n, i) => {
|
|
6864
6906
|
n === "reorder" && i !== "reorder" && (!c() && !e.snapshot.value && (e.snapshot.value = e.cloneModel(e.modelValue.value)), e.movedKeys.value = /* @__PURE__ */ new Set(), e.onExternalEnter?.()), n === "view" && i === "reorder" && (e.snapshot.value ? (e.snapshot.value = null, e.movedKeys.value = /* @__PURE__ */ new Set(), r.value = null, t.value = !1) : c() && (e.movedKeys.value = /* @__PURE__ */ new Set(), r.value = null, t.value = !1, e.onEmbeddedExit?.()));
|
|
@@ -6893,7 +6935,7 @@ function ad(e) {
|
|
|
6893
6935
|
}
|
|
6894
6936
|
//#endregion
|
|
6895
6937
|
//#region src/labs/listEditor/internal/LeDeleteDialog.vue
|
|
6896
|
-
var
|
|
6938
|
+
var cd = /* @__PURE__ */ u({
|
|
6897
6939
|
__name: "LeDeleteDialog",
|
|
6898
6940
|
props: /*@__PURE__*/ y({
|
|
6899
6941
|
title: {},
|
|
@@ -6970,10 +7012,10 @@ var od = /* @__PURE__ */ u({
|
|
|
6970
7012
|
_: 1
|
|
6971
7013
|
}, 8, ["modelValue", "persistent"]));
|
|
6972
7014
|
}
|
|
6973
|
-
}),
|
|
7015
|
+
}), ld = {
|
|
6974
7016
|
key: 0,
|
|
6975
7017
|
class: "text-body-medium mb-3"
|
|
6976
|
-
},
|
|
7018
|
+
}, ud = /* @__PURE__ */ u({
|
|
6977
7019
|
__name: "LeMoveToPositionDialog",
|
|
6978
7020
|
props: /*@__PURE__*/ y({
|
|
6979
7021
|
total: {},
|
|
@@ -7012,7 +7054,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7012
7054
|
_: 1
|
|
7013
7055
|
}),
|
|
7014
7056
|
l(Ce, null, {
|
|
7015
|
-
default: R(() => [e.itemLabel ? (k(), a("p",
|
|
7057
|
+
default: R(() => [e.itemLabel ? (k(), a("p", ld, F(I(d)("common.sortable.moveToPosition.itemDescription", { label: e.itemLabel })), 1)) : i("", !0), l(Be, {
|
|
7016
7058
|
modelValue: f.value,
|
|
7017
7059
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e,
|
|
7018
7060
|
modelModifiers: { number: !0 },
|
|
@@ -7067,7 +7109,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7067
7109
|
_: 1
|
|
7068
7110
|
}, 8, ["modelValue"]));
|
|
7069
7111
|
}
|
|
7070
|
-
}),
|
|
7112
|
+
}), dd = { class: "a-le-empty" }, fd = { class: "a-le-empty-title" }, pd = /* @__PURE__ */ u({
|
|
7071
7113
|
__name: "LeEmptyState",
|
|
7072
7114
|
props: {
|
|
7073
7115
|
title: {},
|
|
@@ -7080,7 +7122,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7080
7122
|
emits: ["add"],
|
|
7081
7123
|
setup(e) {
|
|
7082
7124
|
let { t } = me();
|
|
7083
|
-
return (n, s) => (k(), a("div",
|
|
7125
|
+
return (n, s) => (k(), a("div", dd, [o("h3", fd, F(e.title), 1), e.addLabel && e.canAdd ? (k(), r(V, {
|
|
7084
7126
|
key: 0,
|
|
7085
7127
|
color: "primary",
|
|
7086
7128
|
variant: "flat",
|
|
@@ -7091,16 +7133,16 @@ var od = /* @__PURE__ */ u({
|
|
|
7091
7133
|
_: 1
|
|
7092
7134
|
})) : i("", !0)]));
|
|
7093
7135
|
}
|
|
7094
|
-
}),
|
|
7136
|
+
}), md = { class: "a-le-toolbar-status" }, hd = {
|
|
7095
7137
|
key: 1,
|
|
7096
7138
|
class: "text-body-small"
|
|
7097
|
-
},
|
|
7139
|
+
}, gd = {
|
|
7098
7140
|
key: 2,
|
|
7099
7141
|
class: "text-body-small"
|
|
7100
|
-
},
|
|
7142
|
+
}, _d = {
|
|
7101
7143
|
key: 3,
|
|
7102
7144
|
class: "text-body-small text-medium-emphasis"
|
|
7103
|
-
},
|
|
7145
|
+
}, vd = /* @__PURE__ */ u({
|
|
7104
7146
|
__name: "LeStatus",
|
|
7105
7147
|
props: {
|
|
7106
7148
|
hasPendingChanges: { type: Boolean },
|
|
@@ -7109,14 +7151,14 @@ var od = /* @__PURE__ */ u({
|
|
|
7109
7151
|
},
|
|
7110
7152
|
setup(e) {
|
|
7111
7153
|
let { t } = me();
|
|
7112
|
-
return (n, o) => (k(), a("div",
|
|
7154
|
+
return (n, o) => (k(), a("div", md, [e.hasPendingChanges ? (k(), r(B, {
|
|
7113
7155
|
key: 0,
|
|
7114
7156
|
icon: "mdi-circle-medium",
|
|
7115
7157
|
color: "warning",
|
|
7116
7158
|
size: "18"
|
|
7117
|
-
})) : i("", !0), e.error ? (k(), a("span",
|
|
7159
|
+
})) : i("", !0), e.error ? (k(), a("span", hd, F(e.error), 1)) : e.hasPendingChanges ? (k(), a("span", gd, F(I(t)("common.sortable.pendingChanges", { count: e.pendingCount })), 1)) : (k(), a("span", _d, F(I(t)("common.sortable.noPendingChanges")), 1))]));
|
|
7118
7160
|
}
|
|
7119
|
-
}),
|
|
7161
|
+
}), yd = ["title"], bd = /* @__PURE__ */ u({
|
|
7120
7162
|
__name: "LeUnsavedLabel",
|
|
7121
7163
|
props: {
|
|
7122
7164
|
label: { default: null },
|
|
@@ -7133,9 +7175,9 @@ var od = /* @__PURE__ */ u({
|
|
|
7133
7175
|
}, [l(B, {
|
|
7134
7176
|
icon: "mdi-circle-medium",
|
|
7135
7177
|
size: "12"
|
|
7136
|
-
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10,
|
|
7178
|
+
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10, yd));
|
|
7137
7179
|
}
|
|
7138
|
-
}),
|
|
7180
|
+
}), xd = /* @__PURE__ */ u({
|
|
7139
7181
|
__name: "LeDragHandle",
|
|
7140
7182
|
setup(e) {
|
|
7141
7183
|
return (e, t) => (k(), r(B, {
|
|
@@ -7144,45 +7186,45 @@ var od = /* @__PURE__ */ u({
|
|
|
7144
7186
|
size: "20"
|
|
7145
7187
|
}));
|
|
7146
7188
|
}
|
|
7147
|
-
}),
|
|
7189
|
+
}), Sd = "a-le-row--ghost", Cd = "a-le-row--chosen", wd = "a-le-row--drag", Td = { class: "a-le-card" }, Ed = {
|
|
7148
7190
|
key: 0,
|
|
7149
7191
|
class: "a-le-header"
|
|
7150
|
-
},
|
|
7192
|
+
}, Dd = {
|
|
7151
7193
|
key: 0,
|
|
7152
7194
|
class: "a-le-title-heading"
|
|
7153
|
-
},
|
|
7195
|
+
}, Od = ["data-unsaved-count"], kd = { class: "a-le-header-actions" }, Ad = {
|
|
7154
7196
|
key: 1,
|
|
7155
7197
|
class: "a-le-state a-le-state--loading"
|
|
7156
|
-
},
|
|
7198
|
+
}, jd = {
|
|
7157
7199
|
key: 2,
|
|
7158
7200
|
class: "a-le-state a-le-state--error"
|
|
7159
|
-
},
|
|
7201
|
+
}, Md = {
|
|
7160
7202
|
key: 3,
|
|
7161
7203
|
class: "a-le-view-body"
|
|
7162
|
-
},
|
|
7204
|
+
}, Nd = {
|
|
7163
7205
|
key: 4,
|
|
7164
7206
|
class: "a-le-state a-le-state--empty"
|
|
7165
|
-
},
|
|
7207
|
+
}, Pd = [
|
|
7166
7208
|
"data-id",
|
|
7167
7209
|
"tabindex",
|
|
7168
7210
|
"onKeydown"
|
|
7169
|
-
],
|
|
7211
|
+
], Fd = ["onClick"], Id = { class: "a-le-row-main" }, Ld = { class: "a-le-title" }, Rd = {
|
|
7170
7212
|
key: 1,
|
|
7171
7213
|
class: "a-le-status"
|
|
7172
|
-
},
|
|
7214
|
+
}, zd = {
|
|
7173
7215
|
key: 0,
|
|
7174
7216
|
class: "a-le-status-badge"
|
|
7175
|
-
},
|
|
7217
|
+
}, Bd = { class: "a-le-actions" }, Vd = { class: "a-le-row-body" }, Hd = { class: "a-le-form" }, Ud = {
|
|
7176
7218
|
key: 0,
|
|
7177
7219
|
class: "a-le-row-footer"
|
|
7178
|
-
},
|
|
7220
|
+
}, Wd = {
|
|
7179
7221
|
key: 1,
|
|
7180
7222
|
class: "a-le-row-body"
|
|
7181
|
-
},
|
|
7223
|
+
}, Gd = { class: "a-le-form" }, Kd = {
|
|
7182
7224
|
class: "a-le-sr-only",
|
|
7183
7225
|
"aria-live": "polite",
|
|
7184
7226
|
role: "status"
|
|
7185
|
-
},
|
|
7227
|
+
}, qd = /* @__PURE__ */ u({
|
|
7186
7228
|
__name: "ASortableListEditor",
|
|
7187
7229
|
props: /*@__PURE__*/ y({
|
|
7188
7230
|
factory: {
|
|
@@ -7333,7 +7375,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7333
7375
|
"reorder-end"
|
|
7334
7376
|
], ["update:modelValue", "update:mode"]),
|
|
7335
7377
|
setup(t, { expose: s, emit: u }) {
|
|
7336
|
-
let d = t, f = u, p = oe(t, "modelValue"), g = oe(t, "mode"), { t: v } = me(), y = se(), w = ce("rootEl"), { isNarrow: E } =
|
|
7378
|
+
let d = t, f = u, p = oe(t, "modelValue"), g = oe(t, "mode"), { t: v } = me(), y = se(), w = ce("rootEl"), { isNarrow: E } = oc(w), D = sc(), O = cc(), j = {
|
|
7337
7379
|
get: () => p.value,
|
|
7338
7380
|
set: (e) => p.value = e,
|
|
7339
7381
|
factory: d.factory,
|
|
@@ -7341,7 +7383,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7341
7383
|
position: d.position,
|
|
7342
7384
|
dirtyExclude: () => d.dirtyExclude ?? [],
|
|
7343
7385
|
validate: d.validate
|
|
7344
|
-
}, te = d.editor ? null :
|
|
7386
|
+
}, te = d.editor ? null : Yu(d.stateKey, j), P = d.editor ?? te?.handle ?? Iu(j), ie = d.getKey ?? "id", ae = qu(te?.childScope ?? null), le = (e) => typeof ie == "function" ? ie(e) : e[ie], ue = n(() => {
|
|
7345
7387
|
let e = d.position;
|
|
7346
7388
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
7347
7389
|
}), de = n(() => p.value.map((e, t) => ({
|
|
@@ -7351,7 +7393,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7351
7393
|
position: e[ue.value]
|
|
7352
7394
|
})));
|
|
7353
7395
|
L(() => de.value.map((e) => String(e.key)).join("|"), () => ae.retainOwners(de.value.map((e) => e.key)), { flush: "post" });
|
|
7354
|
-
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), he = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), xe = re(null), Se = ce("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: De, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } =
|
|
7396
|
+
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), he = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), xe = re(null), Se = ce("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: De, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } = rd({
|
|
7355
7397
|
rowsContainer: Se,
|
|
7356
7398
|
rowSelector: ".a-le-row",
|
|
7357
7399
|
isInlineEdit: Ce,
|
|
@@ -7364,7 +7406,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7364
7406
|
afterAutoOpen: (e) => {
|
|
7365
7407
|
fe.value.delete(e);
|
|
7366
7408
|
}
|
|
7367
|
-
}), Pe = n(() => !d.readonly && !d.disabled && !d.loading), Fe = n(() => Pe.value && !d.disableReorder && p.value.length > 1), Ie = n(() => d.embedded), Le = n(() => d.allowEditInReorder), { applying: Re, applyError: ze, hasPendingChanges: Be, movedCount: Ve, reorderMode: He, enterReorderMode: qe, cancelReorderMode: Je, applyReorder: Ye } =
|
|
7409
|
+
}), Pe = n(() => !d.readonly && !d.disabled && !d.loading), Fe = n(() => Pe.value && !d.disableReorder && p.value.length > 1), Ie = n(() => d.embedded), Le = n(() => d.allowEditInReorder), { applying: Re, applyError: ze, hasPendingChanges: Be, movedCount: Ve, reorderMode: He, enterReorderMode: qe, cancelReorderMode: Je, applyReorder: Ye } = sd({
|
|
7368
7410
|
mode: g,
|
|
7369
7411
|
snapshot: xe,
|
|
7370
7412
|
movedKeys: pe,
|
|
@@ -7402,7 +7444,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7402
7444
|
reorderEnd: () => f("reorder-end")
|
|
7403
7445
|
}
|
|
7404
7446
|
}), Xe = d.embedded ? null : ne(/* @__PURE__ */ new Map());
|
|
7405
|
-
Xe && A(
|
|
7447
|
+
Xe && A(od, {
|
|
7406
7448
|
register: (e, t, n, r) => {
|
|
7407
7449
|
Xe.set(e, {
|
|
7408
7450
|
count: t,
|
|
@@ -7426,7 +7468,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7426
7468
|
return !1;
|
|
7427
7469
|
}), $e = n(() => Ze.value + he.value.size + _e.value.size), et = n(() => Qe.value || he.value.size > 0 || _e.value.size > 0);
|
|
7428
7470
|
if (d.embedded) {
|
|
7429
|
-
let e = h(
|
|
7471
|
+
let e = h(od, null);
|
|
7430
7472
|
if (e) {
|
|
7431
7473
|
let t = Symbol("le.embedded");
|
|
7432
7474
|
e.register(t, $e, et, () => xt()), T(() => e.unregister(t));
|
|
@@ -7465,17 +7507,17 @@ var od = /* @__PURE__ */ u({
|
|
|
7465
7507
|
t && ke(t);
|
|
7466
7508
|
}, bt = () => {
|
|
7467
7509
|
if (Ce.value) for (let e of gt.value) ke(e);
|
|
7468
|
-
}, xt = () =>
|
|
7510
|
+
}, xt = () => id(P, (e) => {
|
|
7469
7511
|
let t = de.value.find((t) => t.key === e);
|
|
7470
7512
|
t && ke(t);
|
|
7471
7513
|
});
|
|
7472
|
-
|
|
7514
|
+
ad({
|
|
7473
7515
|
hasErrors: P.hasErrors,
|
|
7474
7516
|
validationScope: d.validationScope,
|
|
7475
7517
|
validateProvided: d.validate !== void 0,
|
|
7476
7518
|
reveal: xt
|
|
7477
7519
|
});
|
|
7478
|
-
let St =
|
|
7520
|
+
let St = lc({
|
|
7479
7521
|
viewItems: n(() => gt.value.map((e) => ({ key: e.key }))),
|
|
7480
7522
|
variant: "sortable",
|
|
7481
7523
|
isReorderMode: He,
|
|
@@ -7511,16 +7553,16 @@ var od = /* @__PURE__ */ u({
|
|
|
7511
7553
|
}, Dt = (e) => {
|
|
7512
7554
|
let t = wt.value;
|
|
7513
7555
|
wt.value = null, t && e !== t.index && (P.moveItem(t.index, e), mt(t.key));
|
|
7514
|
-
}, Ot = (e) =>
|
|
7556
|
+
}, Ot = (e) => Zu(e, { compactField: d.compactField }), kt = Eu(Se, p, {
|
|
7515
7557
|
watchElement: !0,
|
|
7516
7558
|
handle: ".a-le-drag-handle",
|
|
7517
7559
|
animation: 150,
|
|
7518
7560
|
forceFallback: !0,
|
|
7519
7561
|
fallbackTolerance: 3,
|
|
7520
7562
|
fallbackOnBody: !0,
|
|
7521
|
-
ghostClass:
|
|
7522
|
-
chosenClass:
|
|
7523
|
-
dragClass:
|
|
7563
|
+
ghostClass: Sd,
|
|
7564
|
+
chosenClass: Cd,
|
|
7565
|
+
dragClass: wd,
|
|
7524
7566
|
disabled: !nt.value,
|
|
7525
7567
|
onUpdate: (e) => {
|
|
7526
7568
|
let { oldIndex: t, newIndex: n, item: r, from: i } = e;
|
|
@@ -7569,7 +7611,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7569
7611
|
}
|
|
7570
7612
|
d.readonly && we.value ? Nt(e) : Mt(e);
|
|
7571
7613
|
}
|
|
7572
|
-
}, { deleteDialog: U, deleteInFlight: W, deleteError: Ft, onDeleteClick: It, onDeleteDialogConfirm: G, onDeleteDialogCancel: Lt } =
|
|
7614
|
+
}, { deleteDialog: U, deleteInFlight: W, deleteError: Ft, onDeleteClick: It, onDeleteDialogConfirm: G, onDeleteDialogCancel: Lt } = nd({
|
|
7573
7615
|
onDeleteConfirm: (e) => !d.onDeleteConfirm || d.onDeleteConfirm(e),
|
|
7574
7616
|
onDelete: (e) => d.onDelete?.(e),
|
|
7575
7617
|
onDeleted: (e) => {
|
|
@@ -7696,7 +7738,7 @@ var od = /* @__PURE__ */ u({
|
|
|
7696
7738
|
exitReorderMode: Je
|
|
7697
7739
|
}
|
|
7698
7740
|
}));
|
|
7699
|
-
return
|
|
7741
|
+
return td(() => d.unsavedSectionLabel && !d.disableUnsaved ? {
|
|
7700
7742
|
label: d.unsavedSectionLabel,
|
|
7701
7743
|
dirty: P.hasUnsaved.value
|
|
7702
7744
|
} : []), s({
|
|
@@ -7733,16 +7775,16 @@ var od = /* @__PURE__ */ u({
|
|
|
7733
7775
|
}
|
|
7734
7776
|
]])
|
|
7735
7777
|
}, [
|
|
7736
|
-
o("div",
|
|
7737
|
-
dt.value ? (k(), a("div",
|
|
7738
|
-
t.title ? (k(), a("h3",
|
|
7778
|
+
o("div", Td, [
|
|
7779
|
+
dt.value ? (k(), a("div", Ed, [N(n.$slots, "header", b({ title: t.title }, Qt.value), () => [
|
|
7780
|
+
t.title ? (k(), a("h3", Dd, F(t.title), 1)) : i("", !0),
|
|
7739
7781
|
!I(He) && ut.value ? (k(), a("span", {
|
|
7740
7782
|
key: 1,
|
|
7741
7783
|
class: "a-le-unsaved-count",
|
|
7742
7784
|
"data-unsaved-count": I(lt)
|
|
7743
|
-
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9,
|
|
7744
|
-
o("div",
|
|
7745
|
-
l(
|
|
7785
|
+
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9, Od)) : i("", !0),
|
|
7786
|
+
o("div", kd, [I(He) && !t.embedded ? N(n.$slots, "reorder-toolbar", C(m(Zt.value)), () => [
|
|
7787
|
+
l(vd, {
|
|
7746
7788
|
class: S({ "a-le-toolbar-status--pending": et.value }),
|
|
7747
7789
|
"has-pending-changes": et.value,
|
|
7748
7790
|
"pending-count": $e.value,
|
|
@@ -7809,11 +7851,11 @@ var od = /* @__PURE__ */ u({
|
|
|
7809
7851
|
_: 1
|
|
7810
7852
|
}, 8, ["disabled", "onClick"]))], void 0, 1) : i("", !0)])
|
|
7811
7853
|
])])) : i("", !0),
|
|
7812
|
-
t.loading ? (k(), a("div",
|
|
7854
|
+
t.loading ? (k(), a("div", Ad, [l(be, {
|
|
7813
7855
|
indeterminate: "",
|
|
7814
7856
|
color: "primary",
|
|
7815
7857
|
size: "32"
|
|
7816
|
-
})])) : t.error ? (k(), a("div",
|
|
7858
|
+
})])) : t.error ? (k(), a("div", jd, [l(ye, {
|
|
7817
7859
|
type: "error",
|
|
7818
7860
|
variant: "tonal",
|
|
7819
7861
|
density: "compact",
|
|
@@ -7821,15 +7863,15 @@ var od = /* @__PURE__ */ u({
|
|
|
7821
7863
|
}, {
|
|
7822
7864
|
default: R(() => [c(F(t.error), 1)]),
|
|
7823
7865
|
_: 1
|
|
7824
|
-
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div",
|
|
7866
|
+
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div", Md, [N(n.$slots, "view-body", {
|
|
7825
7867
|
items: p.value,
|
|
7826
7868
|
mode: g.value,
|
|
7827
7869
|
actions: { enterReorderMode: I(qe) }
|
|
7828
|
-
})])) : _t.value ? (k(), a("div",
|
|
7870
|
+
})])) : _t.value ? (k(), a("div", Nd, [N(n.$slots, "empty", {
|
|
7829
7871
|
readonly: t.readonly,
|
|
7830
7872
|
disabled: t.disabled,
|
|
7831
7873
|
actions: { add: At }
|
|
7832
|
-
}, () => [l(
|
|
7874
|
+
}, () => [l(pd, {
|
|
7833
7875
|
title: it.value,
|
|
7834
7876
|
"add-label": rt.value,
|
|
7835
7877
|
"can-add": tt.value,
|
|
@@ -7867,13 +7909,13 @@ var od = /* @__PURE__ */ u({
|
|
|
7867
7909
|
class: "a-le-row-header",
|
|
7868
7910
|
onClick: (e) => H(u)
|
|
7869
7911
|
}, [
|
|
7870
|
-
nt.value ? (k(), r(
|
|
7871
|
-
o("div",
|
|
7912
|
+
nt.value ? (k(), r(xd, { key: 0 })) : i("", !0),
|
|
7913
|
+
o("div", Id, [N(n.$slots, "item-compact", b({ ref_for: !0 }, Xt(u)), () => [o("span", Ld, F(Ot(u.raw)), 1)]), u.unsaved ? (k(), r(bd, {
|
|
7872
7914
|
key: 0,
|
|
7873
7915
|
"dot-only": t.chips
|
|
7874
7916
|
}, null, 8, ["dot-only"])) : i("", !0)]),
|
|
7875
|
-
!t.chips && !I(He) ? (k(), a("div",
|
|
7876
|
-
o("div",
|
|
7917
|
+
!t.chips && !I(He) ? (k(), a("div", Rd, [N(n.$slots, "item-status", b({ ref_for: !0 }, Xt(u)), () => [t.statusField && u.raw[t.statusField] != null && u.raw[t.statusField] !== "" ? (k(), a("span", zd, F(u.raw[t.statusField]), 1)) : i("", !0)])])) : i("", !0),
|
|
7918
|
+
o("div", Bd, [N(n.$slots, "item-actions", b({ ref_for: !0 }, Xt(u)), () => [t.chips && Pe.value ? (k(), a(e, { key: 0 }, [(!nt.value || I(O)) && !t.disableReorder ? (k(), a(e, { key: 0 }, [l(V, {
|
|
7877
7919
|
icon: "",
|
|
7878
7920
|
size: "x-small",
|
|
7879
7921
|
variant: "text",
|
|
@@ -8118,7 +8160,7 @@ var od = /* @__PURE__ */ u({
|
|
|
8118
8160
|
_: 2
|
|
8119
8161
|
}, 1024)) : i("", !0)
|
|
8120
8162
|
], 64))])])
|
|
8121
|
-
], 8,
|
|
8163
|
+
], 8, Fd), u.editing && (t.allowEditInReorder || !I(He)) && n.$slots.item ? (k(), a(e, { key: 0 }, [o("div", Vd, [o("div", Hd, [N(n.$slots, "item", b({ ref_for: !0 }, Xt(u)))])]), N(n.$slots, "item-footer", b({ ref_for: !0 }, Xt(u)), () => [pt.value && !I(He) ? (k(), a("div", Ud, [
|
|
8122
8164
|
s[2] ||= o("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
8123
8165
|
l(V, {
|
|
8124
8166
|
variant: "text",
|
|
@@ -8138,7 +8180,7 @@ var od = /* @__PURE__ */ u({
|
|
|
8138
8180
|
default: R(() => [c(F(I(v)("common.button.save")), 1)]),
|
|
8139
8181
|
_: 1
|
|
8140
8182
|
}, 8, ["disabled", "onClick"])
|
|
8141
|
-
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div",
|
|
8183
|
+
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div", Wd, [o("div", Gd, [N(n.$slots, "item-readonly", b({ ref_for: !0 }, Xt(u)))])])) : i("", !0)], 42, Pd),
|
|
8142
8184
|
N(n.$slots, "after-item", b({ ref_for: !0 }, Xt(u)))
|
|
8143
8185
|
]))), 128))], 512)),
|
|
8144
8186
|
tt.value && !t.loading && !t.error && !_t.value ? N(n.$slots, "add-button", {
|
|
@@ -8155,7 +8197,7 @@ var od = /* @__PURE__ */ u({
|
|
|
8155
8197
|
size: "18"
|
|
8156
8198
|
}), o("span", null, F(rt.value), 1)])], void 0, 6) : i("", !0)
|
|
8157
8199
|
]),
|
|
8158
|
-
l(
|
|
8200
|
+
l(ud, {
|
|
8159
8201
|
modelValue: Ct.value,
|
|
8160
8202
|
"onUpdate:modelValue": s[0] ||= (e) => Ct.value = e,
|
|
8161
8203
|
total: gt.value.length,
|
|
@@ -8168,7 +8210,7 @@ var od = /* @__PURE__ */ u({
|
|
|
8168
8210
|
"current-index",
|
|
8169
8211
|
"item-label"
|
|
8170
8212
|
]),
|
|
8171
|
-
l(
|
|
8213
|
+
l(cd, {
|
|
8172
8214
|
modelValue: I(U),
|
|
8173
8215
|
"onUpdate:modelValue": s[1] ||= (e) => _(U) ? U.value = e : null,
|
|
8174
8216
|
title: at.value,
|
|
@@ -8190,7 +8232,7 @@ var od = /* @__PURE__ */ u({
|
|
|
8190
8232
|
"onConfirm",
|
|
8191
8233
|
"onCancel"
|
|
8192
8234
|
]),
|
|
8193
|
-
o("div",
|
|
8235
|
+
o("div", Kd, F(I(St).grabbedKey.value === null ? "" : I(v)("common.sortable.keyboardGrab.status", {
|
|
8194
8236
|
n: I(St).grabbedIndex.value + 1,
|
|
8195
8237
|
total: I(St).totalCount.value
|
|
8196
8238
|
})), 1)
|
|
@@ -8199,12 +8241,12 @@ var od = /* @__PURE__ */ u({
|
|
|
8199
8241
|
});
|
|
8200
8242
|
//#endregion
|
|
8201
8243
|
//#region src/model/factory/UserAdminConfigFactory.ts
|
|
8202
|
-
function
|
|
8244
|
+
function Jd() {
|
|
8203
8245
|
return { createDefaultUserAdminConfig: (e) => ({
|
|
8204
8246
|
id: 0,
|
|
8205
8247
|
user: 0,
|
|
8206
|
-
configType:
|
|
8207
|
-
layoutType:
|
|
8248
|
+
configType: Ys,
|
|
8249
|
+
layoutType: Zs,
|
|
8208
8250
|
systemResource: "",
|
|
8209
8251
|
customName: "",
|
|
8210
8252
|
defaultConfig: !1,
|
|
@@ -8220,7 +8262,7 @@ function Kd() {
|
|
|
8220
8262
|
}
|
|
8221
8263
|
//#endregion
|
|
8222
8264
|
//#region src/labs/unsavedGuard/AUnsavedConfirmDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8223
|
-
var
|
|
8265
|
+
var Yd = { class: "a-unsaved-sections" }, Xd = /*#__PURE__*/ jt(/* @__PURE__ */ u({
|
|
8224
8266
|
__name: "AUnsavedConfirmDialog",
|
|
8225
8267
|
props: /*@__PURE__*/ y({
|
|
8226
8268
|
title: { default: void 0 },
|
|
@@ -8257,7 +8299,7 @@ var qd = { class: "a-unsaved-sections" }, Jd = /*#__PURE__*/ jt(/* @__PURE__ */
|
|
|
8257
8299
|
l(Ce, null, {
|
|
8258
8300
|
default: R(() => [t.body ? (k(), a(e, { key: 0 }, [c(F(t.body), 1)], 64)) : t.dirtyLabels.length ? (k(), a(e, { key: 1 }, [
|
|
8259
8301
|
c(F(I(u)("common.sortable.unsavedChanges.sectionsIntro")) + " ", 1),
|
|
8260
|
-
o("ul",
|
|
8302
|
+
o("ul", Yd, [(k(!0), a(e, null, ee(t.dirtyLabels, (e, t) => (k(), a("li", { key: t }, F(e), 1))), 128))]),
|
|
8261
8303
|
c(" " + F(I(u)("common.sortable.unsavedChanges.leaveQuestion")), 1)
|
|
8262
8304
|
], 64)) : (k(), a(e, { key: 2 }, [c(F(I(u)("common.sortable.unsavedChanges.body")), 1)], 64))]),
|
|
8263
8305
|
_: 1
|
|
@@ -8289,9 +8331,9 @@ var qd = { class: "a-unsaved-sections" }, Jd = /*#__PURE__*/ jt(/* @__PURE__ */
|
|
|
8289
8331
|
_: 1
|
|
8290
8332
|
}, 8, ["modelValue"]));
|
|
8291
8333
|
}
|
|
8292
|
-
}), [["__scopeId", "data-v-8342a164"]]),
|
|
8293
|
-
function
|
|
8294
|
-
let t =
|
|
8334
|
+
}), [["__scopeId", "data-v-8342a164"]]), Zd = 8e3, Qd = (e) => e == null ? !1 : typeof e == "boolean" ? e : e instanceof Set ? e.size > 0 : Array.isArray(e) ? e.length > 0 : !!e, $d = (e, t) => e === void 0 ? t : typeof e == "boolean" ? e : e.value;
|
|
8335
|
+
function ef(e) {
|
|
8336
|
+
let t = ed();
|
|
8295
8337
|
if (e.ownSections) {
|
|
8296
8338
|
let r = e.ownSections, i = Symbol("unsaved.section.own"), a = n(() => {
|
|
8297
8339
|
let e = r();
|
|
@@ -8299,7 +8341,7 @@ function Qd(e) {
|
|
|
8299
8341
|
});
|
|
8300
8342
|
t.register(i, a);
|
|
8301
8343
|
}
|
|
8302
|
-
let r = n(() => e.sources.some((e) =>
|
|
8344
|
+
let r = n(() => e.sources.some((e) => Qd(e.value)) || t.dirtyLabels.value.length > 0), i = M(!1), a = null, o = !1, s = null, c = () => {
|
|
8303
8345
|
s !== null && (clearTimeout(s), s = null);
|
|
8304
8346
|
}, l = () => o ? (o = !1, c(), Promise.resolve(!0)) : new Promise((e) => {
|
|
8305
8347
|
a = e, i.value = !0;
|
|
@@ -8308,15 +8350,15 @@ function Qd(e) {
|
|
|
8308
8350
|
}, d = () => {
|
|
8309
8351
|
o = !0, c(), s = setTimeout(() => {
|
|
8310
8352
|
o = !1, s = null;
|
|
8311
|
-
},
|
|
8353
|
+
}, Zd);
|
|
8312
8354
|
}, p = () => {
|
|
8313
8355
|
o = !1, c();
|
|
8314
8356
|
};
|
|
8315
|
-
if (
|
|
8357
|
+
if ($d(e.guardRoute, !0) && f()) try {
|
|
8316
8358
|
Ye(async () => !r.value || await l());
|
|
8317
8359
|
} catch {}
|
|
8318
8360
|
let m = [c], h = !1;
|
|
8319
|
-
if (
|
|
8361
|
+
if ($d(e.guardWindowUnload, !0)) {
|
|
8320
8362
|
let e = (e) => {
|
|
8321
8363
|
r.value && (e.preventDefault(), e.returnValue = "");
|
|
8322
8364
|
};
|
|
@@ -8352,13 +8394,13 @@ function Qd(e) {
|
|
|
8352
8394
|
}
|
|
8353
8395
|
//#endregion
|
|
8354
8396
|
//#region src/labs/filters/FilterBookmarkDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8355
|
-
var
|
|
8397
|
+
var tf = {
|
|
8356
8398
|
key: 0,
|
|
8357
8399
|
class: "w-100 pt-4"
|
|
8358
|
-
},
|
|
8400
|
+
}, nf = { class: "w-100 pt-4" }, rf = {
|
|
8359
8401
|
key: 0,
|
|
8360
8402
|
class: "d-flex w-100 align-center justify-center"
|
|
8361
|
-
},
|
|
8403
|
+
}, af = 100, of = /* @__PURE__ */ u({
|
|
8362
8404
|
__name: "FilterBookmarkDialog",
|
|
8363
8405
|
props: {
|
|
8364
8406
|
client: {},
|
|
@@ -8371,7 +8413,7 @@ var $d = {
|
|
|
8371
8413
|
setup(t, { emit: n }) {
|
|
8372
8414
|
let s = t, u = n, d = h(Zo), f = h(Xo), p = h(ns);
|
|
8373
8415
|
if (H(p) || H(d) || H(f)) throw Error("Incorrect provide/inject config.");
|
|
8374
|
-
let m = M(!0), g = M(!1), _ = M(!1), v =
|
|
8416
|
+
let m = M(!0), g = M(!1), _ = M(!1), v = ef({
|
|
8375
8417
|
sources: [],
|
|
8376
8418
|
guardDialogModel: m,
|
|
8377
8419
|
guardRoute: !1,
|
|
@@ -8384,10 +8426,10 @@ var $d = {
|
|
|
8384
8426
|
T.value || (m.value = !1);
|
|
8385
8427
|
}, b = () => {
|
|
8386
8428
|
v.acknowledge(), m.value = !1;
|
|
8387
|
-
}, x = M("add"), S = M(""), C = M(!1), w = M(!1), T = M(!1), E = M(!1), D = M(!1), O = M([]), A = (e) => !!e.customName && e.customName.length <=
|
|
8429
|
+
}, x = M("add"), S = M(""), C = M(!1), w = M(!1), T = M(!1), E = M(!1), D = M(!1), O = M([]), A = (e) => !!e.customName && e.customName.length <= af, { required: j, maxLength: ee } = oo(), N = { customName: {
|
|
8388
8430
|
required: j,
|
|
8389
|
-
maxLength: ee(
|
|
8390
|
-
} }, P = Qe(N, { customName: S }, { $stopPropagation: !0 }), ne =
|
|
8431
|
+
maxLength: ee(af)
|
|
8432
|
+
} }, P = Qe(N, { customName: S }, { $stopPropagation: !0 }), ne = $s(), { createUserAdminConfig: re, useFetchUserAdminConfigList: ie, updateUserAdminConfigPositions: ae, deleteUserAdminConfig: oe, updateUserAdminConfig: se } = nc(s.client, s.system), { t: le } = me(), { showErrorsDefault: fe, showUnknownError: pe, showValidationError: he, showWarningT: ge } = Li(), { createDefaultUserAdminConfig: _e } = Jd(), ye = ce("editor"), B = (e) => Ai(e) && e.cause.response?.status === 404, we = async () => {
|
|
8391
8433
|
if (!E.value && ye.value?.validateAll()) {
|
|
8392
8434
|
T.value = !0;
|
|
8393
8435
|
try {
|
|
@@ -8408,10 +8450,10 @@ var $d = {
|
|
|
8408
8450
|
T.value = !1;
|
|
8409
8451
|
}
|
|
8410
8452
|
}
|
|
8411
|
-
}, { serializeFilters: Te } = ys(f, d), Ee = s.system + "_" + s.subject, De = () => ne.generateKey(
|
|
8453
|
+
}, { serializeFilters: Te } = ys(f, d), Ee = s.system + "_" + s.subject, De = () => ne.generateKey(Xs.Desktop, Ee), Oe = async () => {
|
|
8412
8454
|
T.value = !0, D.value = !1;
|
|
8413
8455
|
let e = _e(s.system);
|
|
8414
|
-
e.user = s.user, e.configType =
|
|
8456
|
+
e.user = s.user, e.configType = Js.FilterBookmark, e.layoutType = Xs.Desktop, e.systemResource = Ee, e.customName = S.value, e.data = {
|
|
8415
8457
|
filter: Te(f, p, !1),
|
|
8416
8458
|
datatableHiddenColumns: C.value && s.datatableHiddenColumns ? s.datatableHiddenColumns : void 0,
|
|
8417
8459
|
sortBy: w.value && p.value.sortBy ? p.value.sortBy : void 0
|
|
@@ -8419,7 +8461,7 @@ var $d = {
|
|
|
8419
8461
|
try {
|
|
8420
8462
|
let { count: t, maxPosition: n } = await ne.fetchBookmarkStats({
|
|
8421
8463
|
user: s.user,
|
|
8422
|
-
layoutType:
|
|
8464
|
+
layoutType: Xs.Desktop,
|
|
8423
8465
|
systemResource: Ee
|
|
8424
8466
|
}, ie);
|
|
8425
8467
|
if (t >= 8) {
|
|
@@ -8452,7 +8494,7 @@ var $d = {
|
|
|
8452
8494
|
try {
|
|
8453
8495
|
let t = await ne.getBookmarks({
|
|
8454
8496
|
user: s.user,
|
|
8455
|
-
layoutType:
|
|
8497
|
+
layoutType: Xs.Desktop,
|
|
8456
8498
|
systemResource: Ee
|
|
8457
8499
|
}, ie, !0);
|
|
8458
8500
|
return e === Ae ? t === null ? (_.value = !0, pe(), null) : t : null;
|
|
@@ -8504,7 +8546,7 @@ var $d = {
|
|
|
8504
8546
|
}, 8, ["disabled"])]),
|
|
8505
8547
|
_: 1
|
|
8506
8548
|
}, 8, ["modelValue"]),
|
|
8507
|
-
x.value === "add" ? (k(), a("div",
|
|
8549
|
+
x.value === "add" ? (k(), a("div", tf, [
|
|
8508
8550
|
l(At, { title: I(le)("common.filter.bookmark.infoSave") }, null, 8, ["title"]),
|
|
8509
8551
|
D.value ? (k(), r(At, {
|
|
8510
8552
|
key: 0,
|
|
@@ -8554,7 +8596,7 @@ var $d = {
|
|
|
8554
8596
|
_: 1
|
|
8555
8597
|
})
|
|
8556
8598
|
])) : i("", !0),
|
|
8557
|
-
de(o("div",
|
|
8599
|
+
de(o("div", nf, [!g.value && !_.value ? (k(), a("div", rf, [l(be, { indeterminate: "" })])) : g.value ? (k(), r(qd, {
|
|
8558
8600
|
key: 2,
|
|
8559
8601
|
ref_key: "editor",
|
|
8560
8602
|
ref: ye,
|
|
@@ -8615,7 +8657,7 @@ var $d = {
|
|
|
8615
8657
|
_: 1
|
|
8616
8658
|
})]),
|
|
8617
8659
|
_: 1
|
|
8618
|
-
}, 8, ["modelValue", "persistent"]), l(
|
|
8660
|
+
}, 8, ["modelValue", "persistent"]), l(Xd, {
|
|
8619
8661
|
modelValue: I(v).promptOpen.value,
|
|
8620
8662
|
"onUpdate:modelValue": n[6] ||= (e) => I(v).promptOpen.value = e,
|
|
8621
8663
|
"dirty-labels": I(v).dirtyLabels.value,
|
|
@@ -8627,7 +8669,7 @@ var $d = {
|
|
|
8627
8669
|
])], 64);
|
|
8628
8670
|
};
|
|
8629
8671
|
}
|
|
8630
|
-
}),
|
|
8672
|
+
}), sf = /* @__PURE__ */ u({
|
|
8631
8673
|
__name: "AFilterBookmarkButton",
|
|
8632
8674
|
props: /*@__PURE__*/ y({
|
|
8633
8675
|
client: {},
|
|
@@ -8670,7 +8712,7 @@ var $d = {
|
|
|
8670
8712
|
_: 1
|
|
8671
8713
|
})]),
|
|
8672
8714
|
_: 1
|
|
8673
|
-
}, 8, ["class", "data-cy"]), n.value ? (k(), r(
|
|
8715
|
+
}, 8, ["class", "data-cy"]), n.value ? (k(), r(of, {
|
|
8674
8716
|
key: 0,
|
|
8675
8717
|
client: t.client,
|
|
8676
8718
|
system: t.system,
|
|
@@ -8686,10 +8728,10 @@ var $d = {
|
|
|
8686
8728
|
"datatable-hidden-columns"
|
|
8687
8729
|
])) : i("", !0)], 64));
|
|
8688
8730
|
}
|
|
8689
|
-
}),
|
|
8731
|
+
}), cf = { class: "subject-select-filter__content px-2 py-4" }, lf = { class: "d-flex flex-wrap align-center" }, uf = {
|
|
8690
8732
|
key: 0,
|
|
8691
8733
|
class: "subject-select-filter__actions"
|
|
8692
|
-
},
|
|
8734
|
+
}, df = /* @__PURE__ */ u({
|
|
8693
8735
|
__name: "AFilterWrapperSubjectSelect",
|
|
8694
8736
|
props: /*@__PURE__*/ y({
|
|
8695
8737
|
hideButtons: {
|
|
@@ -8754,9 +8796,9 @@ var $d = {
|
|
|
8754
8796
|
name: t.formName,
|
|
8755
8797
|
onSubmit: z(b, ["prevent"])
|
|
8756
8798
|
}, {
|
|
8757
|
-
default: R(() => [o("div",
|
|
8799
|
+
default: R(() => [o("div", cf, [N(n.$slots, "bookmarks", {}, () => [l(_e, { density: "compact" }, {
|
|
8758
8800
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(ge, { key: 0 }, {
|
|
8759
|
-
default: R(() => [o("div",
|
|
8801
|
+
default: R(() => [o("div", lf, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(ac, {
|
|
8760
8802
|
key: 0,
|
|
8761
8803
|
"datatable-hidden-columns": f.value,
|
|
8762
8804
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -8784,7 +8826,7 @@ var $d = {
|
|
|
8784
8826
|
lg: I(m).fields[e].render.lg || 12,
|
|
8785
8827
|
xl: I(m).fields[e].render.xl || 12
|
|
8786
8828
|
}, {
|
|
8787
|
-
default: R(() => [N(n.$slots, I(
|
|
8829
|
+
default: R(() => [N(n.$slots, I(Hs)(e), { itemConfig: I(m).fields[e] }, () => [l(Ks, { name: e }, null, 8, ["name"])])]),
|
|
8788
8830
|
_: 2
|
|
8789
8831
|
}, 1032, [
|
|
8790
8832
|
"cols",
|
|
@@ -8794,10 +8836,10 @@ var $d = {
|
|
|
8794
8836
|
"xl"
|
|
8795
8837
|
]))), 128))]),
|
|
8796
8838
|
_: 3
|
|
8797
|
-
})])]), t.hideButtons ? i("", !0) : (k(), a("div",
|
|
8839
|
+
})])]), t.hideButtons ? i("", !0) : (k(), a("div", uf, [N(n.$slots, "buttons", {}, () => [
|
|
8798
8840
|
l(fa, { touched: E.value }, null, 8, ["touched"]),
|
|
8799
8841
|
l(pa, { onReset: T }),
|
|
8800
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
8842
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(sf, {
|
|
8801
8843
|
key: 0,
|
|
8802
8844
|
client: t.client,
|
|
8803
8845
|
user: t.userId,
|
|
@@ -8815,10 +8857,10 @@ var $d = {
|
|
|
8815
8857
|
_: 3
|
|
8816
8858
|
}, 8, ["name"]));
|
|
8817
8859
|
}
|
|
8818
|
-
}),
|
|
8860
|
+
}), ff = {
|
|
8819
8861
|
key: 0,
|
|
8820
8862
|
class: "required"
|
|
8821
|
-
},
|
|
8863
|
+
}, pf = /* @__PURE__ */ u({
|
|
8822
8864
|
__name: "AFormRemoteAutocompleteWithCached",
|
|
8823
8865
|
props: /*@__PURE__*/ y({
|
|
8824
8866
|
modelValue: {},
|
|
@@ -8893,7 +8935,7 @@ var $d = {
|
|
|
8893
8935
|
set(e) {
|
|
8894
8936
|
u("update:modelValue", K(e));
|
|
8895
8937
|
}
|
|
8896
|
-
}), { t: T } = me(), E = h(rn, void 0), D = h(an, void 0), O = M(!1), { pagination: A } =
|
|
8938
|
+
}), { t: T } = me(), E = h(rn, void 0), D = h(an, void 0), O = M(!1), { pagination: A } = As(W(o.filterSortBy) ? null : o.filterSortBy.key, o.filterSortBy?.order), j = () => {
|
|
8897
8939
|
O.value = !0, u("focus", w.value);
|
|
8898
8940
|
}, ee = () => {
|
|
8899
8941
|
O.value = !1, o.v?.$touch(), u("blur", w.value);
|
|
@@ -8964,7 +9006,7 @@ var $d = {
|
|
|
8964
9006
|
onFocus: j,
|
|
8965
9007
|
"onClick:clear": se
|
|
8966
9008
|
}, s({
|
|
8967
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span",
|
|
9009
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span", ff)) : i("", !0)]))]),
|
|
8968
9010
|
"append-item": R(() => [N(t.$slots, "append-item")]),
|
|
8969
9011
|
chip: R(({ props: e, internalItem: n }) => [N(t.$slots, "chip", {
|
|
8970
9012
|
props: e,
|
|
@@ -8990,7 +9032,7 @@ var $d = {
|
|
|
8990
9032
|
"no-data-text"
|
|
8991
9033
|
]));
|
|
8992
9034
|
}
|
|
8993
|
-
}),
|
|
9035
|
+
}), mf = /* @__PURE__ */ u({
|
|
8994
9036
|
__name: "AFilterAdvancedButton",
|
|
8995
9037
|
props: {
|
|
8996
9038
|
tooltipT: { default: "common.button.advancedFilters" },
|
|
@@ -9020,7 +9062,7 @@ var $d = {
|
|
|
9020
9062
|
_: 1
|
|
9021
9063
|
}, 8, ["class", "data-cy"]));
|
|
9022
9064
|
}
|
|
9023
|
-
}),
|
|
9065
|
+
}), hf = { class: "a-selected-filters__label text-body-small" }, gf = /* @__PURE__ */ u({
|
|
9024
9066
|
__name: "FiltersSelected",
|
|
9025
9067
|
setup(t) {
|
|
9026
9068
|
let i = h(Zo), s = h(Xo), u = h(ts);
|
|
@@ -9050,7 +9092,7 @@ var $d = {
|
|
|
9050
9092
|
return (t, n) => (k(!0), a(e, null, ee(p.value, (t) => (k(), a("div", {
|
|
9051
9093
|
key: t.name,
|
|
9052
9094
|
class: "a-selected-filters"
|
|
9053
|
-
}, [o("div",
|
|
9095
|
+
}, [o("div", hf, F(t.title) + ":", 1), (k(!0), a(e, null, ee(t.options, (e) => (k(), a("div", {
|
|
9054
9096
|
key: e.value,
|
|
9055
9097
|
class: "a-selected-filters__chips"
|
|
9056
9098
|
}, [_(t.name) ? (k(), r(he, {
|
|
@@ -9075,7 +9117,7 @@ var $d = {
|
|
|
9075
9117
|
_: 2
|
|
9076
9118
|
}, 1024))]))), 128))]))), 128));
|
|
9077
9119
|
}
|
|
9078
|
-
}),
|
|
9120
|
+
}), _f = { class: "d-flex flex-wrap align-center" }, vf = { class: "a-filter__container" }, yf = { class: "a-filter__search" }, bf = { key: 2 }, xf = /* @__PURE__ */ u({
|
|
9079
9121
|
__name: "AFilterWrapper",
|
|
9080
9122
|
props: /*@__PURE__*/ y({
|
|
9081
9123
|
enableTop: {
|
|
@@ -9169,7 +9211,7 @@ var $d = {
|
|
|
9169
9211
|
})) : i("", !0),
|
|
9170
9212
|
l(_e, { density: "compact" }, {
|
|
9171
9213
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(ge, { key: 0 }, {
|
|
9172
|
-
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div",
|
|
9214
|
+
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div", _f, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(ac, {
|
|
9173
9215
|
key: 0,
|
|
9174
9216
|
"datatable-hidden-columns": f.value,
|
|
9175
9217
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -9198,14 +9240,14 @@ var $d = {
|
|
|
9198
9240
|
key: 0,
|
|
9199
9241
|
cols: "auto"
|
|
9200
9242
|
}, {
|
|
9201
|
-
default: R(() => [l(
|
|
9243
|
+
default: R(() => [l(mf, {
|
|
9202
9244
|
"button-active": p.value,
|
|
9203
9245
|
onAdvancedFilter: D
|
|
9204
9246
|
}, null, 8, ["button-active"])]),
|
|
9205
9247
|
_: 1
|
|
9206
9248
|
})),
|
|
9207
9249
|
l(ge, null, {
|
|
9208
|
-
default: R(() => [o("div",
|
|
9250
|
+
default: R(() => [o("div", vf, [o("div", yf, [N(n.$slots, "search")]), l(gf)])]),
|
|
9209
9251
|
_: 3
|
|
9210
9252
|
}),
|
|
9211
9253
|
t.hideButtons ? i("", !0) : (k(), r(ge, {
|
|
@@ -9216,7 +9258,7 @@ var $d = {
|
|
|
9216
9258
|
default: R(() => [N(n.$slots, "buttons", {}, () => [
|
|
9217
9259
|
l(fa, { touched: O.value }, null, 8, ["touched"]),
|
|
9218
9260
|
l(pa, { onReset: E }),
|
|
9219
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
9261
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(sf, {
|
|
9220
9262
|
key: 0,
|
|
9221
9263
|
client: t.client,
|
|
9222
9264
|
user: t.userId,
|
|
@@ -9236,7 +9278,7 @@ var $d = {
|
|
|
9236
9278
|
]),
|
|
9237
9279
|
_: 3
|
|
9238
9280
|
})),
|
|
9239
|
-
t.hideMore ? i("", !0) : (k(), a("div",
|
|
9281
|
+
t.hideMore ? i("", !0) : (k(), a("div", bf, [(k(), r(P(t.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
9240
9282
|
default: R(() => [de(o("div", { class: S({ "mt-6 pa-4 system-border-a": !t.alwaysVisible }) }, [N(n.$slots, "detail", {}, () => [l(_e, null, {
|
|
9241
9283
|
default: R(() => [(k(!0), a(e, null, ee(j.value, (e) => (k(), r(ge, {
|
|
9242
9284
|
key: e,
|
|
@@ -9246,7 +9288,7 @@ var $d = {
|
|
|
9246
9288
|
lg: I(m).fields[e].render.lg || 3,
|
|
9247
9289
|
xl: I(m).fields[e].render.xl || 2
|
|
9248
9290
|
}, {
|
|
9249
|
-
default: R(() => [N(n.$slots, I(
|
|
9291
|
+
default: R(() => [N(n.$slots, I(Hs)(e), { itemConfig: I(m).fields[e] }, () => [l(Ks, { name: e }, null, 8, ["name"])])]),
|
|
9250
9292
|
_: 2
|
|
9251
9293
|
}, 1032, [
|
|
9252
9294
|
"cols",
|
|
@@ -9263,13 +9305,13 @@ var $d = {
|
|
|
9263
9305
|
_: 3
|
|
9264
9306
|
}, 8, ["name"]));
|
|
9265
9307
|
}
|
|
9266
|
-
}),
|
|
9308
|
+
}), Sf = {
|
|
9267
9309
|
key: 0,
|
|
9268
9310
|
class: "font-italic pl-1"
|
|
9269
|
-
},
|
|
9311
|
+
}, Cf = {
|
|
9270
9312
|
key: 0,
|
|
9271
9313
|
class: "required"
|
|
9272
|
-
},
|
|
9314
|
+
}, wf = 300, Tf = /* @__PURE__ */ u({
|
|
9273
9315
|
__name: "AFormRemoteAutocomplete",
|
|
9274
9316
|
props: /*@__PURE__*/ y({
|
|
9275
9317
|
label: { default: void 0 },
|
|
@@ -9366,7 +9408,7 @@ var $d = {
|
|
|
9366
9408
|
if (H(te) || H(P) || H(u.v?.$path)) return "";
|
|
9367
9409
|
let { end: e } = Yt(u.v?.$path, ".");
|
|
9368
9410
|
return ee(te + "." + P + ".model." + e);
|
|
9369
|
-
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), I = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: se } =
|
|
9411
|
+
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), I = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: se } = As(W(v) ? null : v.key, v?.order), ce = M([]), le = M([]), ue = M(!0), de = M(!1), fe = n(() => {
|
|
9370
9412
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
9371
9413
|
t.forEach((t) => {
|
|
9372
9414
|
e.set(t.value, {
|
|
@@ -9469,7 +9511,7 @@ var $d = {
|
|
|
9469
9511
|
}
|
|
9470
9512
|
j.value++, be(e, j.value), d("searchChangeDebounced", e);
|
|
9471
9513
|
}
|
|
9472
|
-
}, { debounce:
|
|
9514
|
+
}, { debounce: wf }), L(D, (e, t) => {
|
|
9473
9515
|
e !== t && d("searchChange", e);
|
|
9474
9516
|
});
|
|
9475
9517
|
let Oe = (e) => {
|
|
@@ -9530,7 +9572,7 @@ var $d = {
|
|
|
9530
9572
|
disabled: t.props.disabled,
|
|
9531
9573
|
"onClick:close": (e) => De(t.raw)
|
|
9532
9574
|
}, {
|
|
9533
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
9575
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", Sf, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
9534
9576
|
_: 2
|
|
9535
9577
|
}, 1032, [
|
|
9536
9578
|
"closable",
|
|
@@ -9538,7 +9580,7 @@ var $d = {
|
|
|
9538
9580
|
"disabled",
|
|
9539
9581
|
"onClick:close"
|
|
9540
9582
|
])]),
|
|
9541
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span",
|
|
9583
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span", Cf)) : i("", !0)]))]),
|
|
9542
9584
|
_: 2
|
|
9543
9585
|
}, [E.value ? {
|
|
9544
9586
|
name: "append-inner",
|
|
@@ -9570,6 +9612,6 @@ var $d = {
|
|
|
9570
9612
|
}
|
|
9571
9613
|
});
|
|
9572
9614
|
//#endregion
|
|
9573
|
-
export {
|
|
9615
|
+
export { zs as $, Xr as $n, rn as $r, pa as $t, Yu as A, Tt as Ai, Ei as An, Un as Ar, Ho as At, lc as B, fi as Bn, Pn as Br, Na as Bt, rd as C, Vt as Ci, Pi as Cn, Hn as Cr, Qo as Ct, Wu as D, Nt as Di, ki as Dn, qn as Dr, Jo as Dt, Zu as E, Pt as Ei, Ai as En, Jn as Er, rs as Et, Fu as F, yi as Fn, On as Fr, Lo as Ft, Zs as G, ei as Gn, Nn as Gr, Ta as Gt, oc as H, ci as Hn, Tn as Hr, ja as Ht, Mu as I, gi as In, jn as Ir, Io as It, Gs as J, ri as Jn, dn as Jr, Sa as Jt, Js as K, Qr as Kn, wn as Kr, Oa as Kt, Au as L, hi as Ln, Bn as Lr, Fo as Lt, Uu as M, Ot as Mi, wi as Mn, Ln as Mr, Ro as Mt, Bu as N, xi as Nn, In as Nr, zo as Nt, Ku as O, jt as Oi, Oi as On, Vn as Or, Yo as Ot, Iu as P, vi as Pn, Rn as Pr, Bo as Pt, Bs as Q, ii as Qn, an as Qr, ma as Qt, ju as R, mi as Rn, Dn as Rr, Po as Rt, id as S, Ft as Si, Li as Sn, Qn as Sr, $o as St, td as T, H as Ti, ji as Tn, Yn as Tr, es as Tt, nc as U, oi as Un, kn as Ur, ka as Ut, sc as V, di as Vn, Fn as Vr, Ma as Vt, Xs as W, si as Wn, Mn as Wr, Ca as Wt, Hs as X, Zr as Xn, on as Xr, va as Xt, Ws as Y, $r as Yn, cn as Yr, xa as Yt, Vs as Z, ti as Zn, sn as Zr, ha as Zt, ud as _, Ut as _i, sa as _n, dr as _r, ys as _t, df as a, Gt as ai, $i as an, vr as ar, As as at, sd as b, Bt as bi, Ri as bn, or as br, Zo as bt, Jd as c, Qt as ci, Qi as cn, Sr as cr, Es as ct, wd as d, K as di, ra as dn, Tr as dr, bs as dt, nn as ei, fa as en, Yr as er, Rs as et, Sd as f, G as fi, Zi as fn, gr as fr, ds as ft, pd as g, Wt as gi, ea as gn, fr as gr, _s as gt, vd as h, zt as hi, oa as hn, mr as hr, fs as ht, pf as i, Kt as ii, ca as in, Er as ir, Ms as it, Xu as j, Et as ji, Ci as jn, Gn as jr, Vo as jt, qu as k, At as ki, Di as kn, Kn as kr, Wo as kt, qd as l, $t as li, ia as ln, xr as lr, Cs as lt, bd as m, U as mi, ta as mn, hr as mr, ms as mt, xf as n, Yt as ni, Ki as nn, qr as nr, Ps as nt, ef as o, Zt as oi, qi as on, br as or, Ds as ot, xd as p, Rt as pi, Ji as pn, _r as pr, hs as pt, Ys as q, ni as qn, En as qr, ga as qt, gf as r, Jt as ri, Gi as rn, Kr as rr, Ns as rt, Xd as s, Xt as si, aa as sn, yr as sr, Os as st, Tf as t, tn as ti, da as tn, Jr as tr, Ls as tt, Cd as u, en as ui, Xi as un, Cr as ur, Ss as ut, cd as v, Ht as vi, Yi as vn, lr as vr, is as vt, nd as w, It as wi, Mi as wn, Wn as wr, ts as wt, ad as x, W as xi, Ii as xn, Zn as xr, Xo as xt, od as y, Lt as yi, na as yn, cr as yr, ns as yt, Eu as z, ui as zn, An as zr, oo as zt };
|
|
9574
9616
|
|
|
9575
|
-
//# sourceMappingURL=AFormRemoteAutocomplete-
|
|
9617
|
+
//# sourceMappingURL=AFormRemoteAutocomplete-C7LoRttw.mjs.map
|