@anzusystems/common-admin 1.47.0-beta.dev-1788935853 → 1.47.0-beta.dev-1788935854
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-CHvecQMq.mjs → AFormRemoteAutocomplete-f8Kz2DT2.mjs} +797 -784
- package/dist/AFormRemoteAutocomplete-f8Kz2DT2.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.d.ts +36 -0
- package/dist/common-admin.js +126 -83
- package/dist/common-admin.js.map +1 -1
- package/dist/{esm-BP456dlq.mjs → esm-BJSr9Mys.mjs} +3389 -3397
- package/dist/esm-BJSr9Mys.mjs.map +1 -0
- package/dist/labs.d.ts +4 -1
- package/dist/labs.js +1 -1
- package/dist/{webfontloader-ClDWjC2G.mjs → webfontloader-Dw7pJgKj.mjs} +2 -2
- package/dist/{webfontloader-ClDWjC2G.mjs.map → webfontloader-Dw7pJgKj.mjs.map} +1 -1
- package/package.json +4 -4
- package/dist/AFormRemoteAutocomplete-CHvecQMq.mjs.map +0 -1
- package/dist/esm-BP456dlq.mjs.map +0 -1
|
@@ -2002,7 +2002,7 @@ function Ra() {
|
|
|
2002
2002
|
}
|
|
2003
2003
|
//#endregion
|
|
2004
2004
|
//#region src/components/datetime/TimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
2005
|
-
var za = { class: "a-datetime-picker-time" }, Ba = { class: "a-datetime-picker-time__item a-datetime-picker-time__item" }, Va = { class: "a-datetime-picker-time__arrows" },
|
|
2005
|
+
var za = { class: "a-datetime-picker-time" }, Ba = { class: "a-datetime-picker-time__item a-datetime-picker-time__item" }, Va = ["aria-label"], Ha = { class: "a-datetime-picker-time__arrows" }, Ua = { class: "a-datetime-picker-time__item" }, Wa = ["aria-label"], Ga = { class: "a-datetime-picker-time__arrows" }, Ka = /*#__PURE__*/ At(/* @__PURE__ */ u({
|
|
2006
2006
|
__name: "TimePicker",
|
|
2007
2007
|
props: {
|
|
2008
2008
|
modelValue: { required: !0 },
|
|
@@ -2078,7 +2078,7 @@ var za = { class: "a-datetime-picker-time" }, Ba = { class: "a-datetime-picker-t
|
|
|
2078
2078
|
u.value = String(t).padStart(2, "0");
|
|
2079
2079
|
}
|
|
2080
2080
|
};
|
|
2081
|
-
|
|
2081
|
+
L([c, u], ([e, t], [n, r]) => {
|
|
2082
2082
|
if (e === n && t === r) return;
|
|
2083
2083
|
let i = parseInt(e ?? (s.value ? s.value.hours.toString() : "12")), a = parseInt(t ?? (s.value ? s.value.minutes.toString() : "0"));
|
|
2084
2084
|
i >= 0 && i <= 23 && a >= 0 && a <= 59 && (s.value = {
|
|
@@ -2087,21 +2087,23 @@ var za = { class: "a-datetime-picker-time" }, Ba = { class: "a-datetime-picker-t
|
|
|
2087
2087
|
});
|
|
2088
2088
|
}), t({ focusHour: () => {
|
|
2089
2089
|
d.value?.focus();
|
|
2090
|
-
} })
|
|
2090
|
+
} });
|
|
2091
|
+
let { t: T } = he();
|
|
2092
|
+
return (e, t) => (k(), a("div", za, [
|
|
2091
2093
|
o("div", Ba, [fe(o("input", {
|
|
2092
2094
|
ref_key: "hoursRefInput",
|
|
2093
2095
|
ref: d,
|
|
2094
2096
|
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
2095
2097
|
class: "a-datetime-picker-time__input a-datetime-picker-time__input--hours",
|
|
2096
2098
|
type: "text",
|
|
2097
|
-
"aria-label": "
|
|
2099
|
+
"aria-label": I(T)("$vuetify.timePicker.hour"),
|
|
2098
2100
|
tabindex: "1",
|
|
2099
2101
|
min: "0",
|
|
2100
2102
|
max: "23",
|
|
2101
2103
|
onFocus: h,
|
|
2102
2104
|
onBlur: g,
|
|
2103
2105
|
onKeyup: pe(v, ["enter"])
|
|
2104
|
-
}, null,
|
|
2106
|
+
}, null, 40, Va), [[ue, p.value]]), o("div", Ha, [l(V, {
|
|
2105
2107
|
tabindex: "-1",
|
|
2106
2108
|
variant: "text",
|
|
2107
2109
|
class: "a-datetime-picker-time__arrow-up",
|
|
@@ -2119,20 +2121,20 @@ var za = { class: "a-datetime-picker-time" }, Ba = { class: "a-datetime-picker-t
|
|
|
2119
2121
|
_: 1
|
|
2120
2122
|
})])]),
|
|
2121
2123
|
t[2] ||= o("span", { class: "a-datetime-picker-time__separator" }, ":", -1),
|
|
2122
|
-
o("div",
|
|
2124
|
+
o("div", Ua, [fe(o("input", {
|
|
2123
2125
|
ref_key: "minutesRefInput",
|
|
2124
2126
|
ref: f,
|
|
2125
2127
|
"onUpdate:modelValue": t[1] ||= (e) => m.value = e,
|
|
2126
2128
|
class: "a-datetime-picker-time__input a-datetime-picker-time__input--minutes",
|
|
2127
2129
|
type: "text",
|
|
2128
|
-
"aria-label": "
|
|
2130
|
+
"aria-label": I(T)("$vuetify.timePicker.minute"),
|
|
2129
2131
|
tabindex: "2",
|
|
2130
2132
|
min: "0",
|
|
2131
2133
|
max: "59",
|
|
2132
2134
|
onFocus: h,
|
|
2133
2135
|
onBlur: _,
|
|
2134
2136
|
onKeyup: pe(y, ["enter"])
|
|
2135
|
-
}, null,
|
|
2137
|
+
}, null, 40, Wa), [[ue, m.value]]), o("div", Ga, [l(V, {
|
|
2136
2138
|
tabindex: "-1",
|
|
2137
2139
|
variant: "text",
|
|
2138
2140
|
class: "a-datetime-picker-time__arrow-up",
|
|
@@ -2151,33 +2153,33 @@ var za = { class: "a-datetime-picker-time" }, Ba = { class: "a-datetime-picker-t
|
|
|
2151
2153
|
})])])
|
|
2152
2154
|
]));
|
|
2153
2155
|
}
|
|
2154
|
-
}), [["__scopeId", "data-v-
|
|
2156
|
+
}), [["__scopeId", "data-v-7e0b87cf"]]);
|
|
2155
2157
|
q.default.extend(ji.default), q.default.extend(Mi.default);
|
|
2156
|
-
var
|
|
2158
|
+
var qa = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ja = "YYYY-MM-DDTHH:mm:ss", Ya = "DD.MM.YYYY", Xa = ["DD.MM.YYYY HH:mm", Ya], Za = (e) => e === "date" ? "dd.mm.yyyy" : "dd.mm.yyyy hh:mm", Qa = (e) => e === "date" ? Ya : "DD.MM.YYYY HH:mm", $a = (e, t, n = !1) => {
|
|
2157
2159
|
if (W(e) || H(e) || e.length === 0) return null;
|
|
2158
2160
|
if (t === "date") {
|
|
2159
2161
|
let t = q.default.utc(e);
|
|
2160
2162
|
return t.isValid() ? t : null;
|
|
2161
2163
|
}
|
|
2162
|
-
let r = (0, q.default)(e,
|
|
2164
|
+
let r = (0, q.default)(e, qa), i = r.isValid() ? r : (0, q.default)(e);
|
|
2163
2165
|
return i.isValid() ? n ? i.millisecond(999) : i.millisecond(0) : null;
|
|
2164
|
-
},
|
|
2166
|
+
}, eo = (e, t, n = 0) => {
|
|
2165
2167
|
if (t === "date") {
|
|
2166
|
-
let t = q.default.utc(e,
|
|
2168
|
+
let t = q.default.utc(e, Ya);
|
|
2167
2169
|
return t.isValid() ? t : null;
|
|
2168
2170
|
}
|
|
2169
|
-
let r = (0, q.default)(e,
|
|
2171
|
+
let r = (0, q.default)(e, Xa);
|
|
2170
2172
|
return r.isValid() ? r.second(n) : null;
|
|
2171
|
-
},
|
|
2173
|
+
}, to = (e, t) => t === "date" ? e.format("YYYY-MM-DD") + "T00:00:00" + Ni : e.utc().format(Ja) + Ni, no = (e, t) => e.format(Qa(t)), ro = (e, t) => t === "date" ? new Date(e.year(), e.month(), e.date()) : e.toDate(), io = (e, t, n) => n === "date" ? q.default.utc(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate())) : e.set("year", t.getFullYear()).set("month", t.getMonth()).set("date", t.getDate()), ao = (e, t = !1) => {
|
|
2172
2174
|
if (e === "date") {
|
|
2173
2175
|
let e = /* @__PURE__ */ new Date();
|
|
2174
2176
|
return q.default.utc(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()));
|
|
2175
2177
|
}
|
|
2176
2178
|
return t ? (0, q.default)().second(59).millisecond(999) : (0, q.default)().second(0).millisecond(0);
|
|
2177
|
-
},
|
|
2179
|
+
}, oo = (e, t = !1) => e === "date" ? ao(e) : t ? (0, q.default)().hour(0).minute(0).second(59).millisecond(999) : (0, q.default)().hour(0).minute(0).second(0).millisecond(0), so = (e, t, n) => !W(t) && e.isSame(t, n === "date" ? "day" : "second"), co = { class: "d-flex" }, lo = { class: "ml-1" }, uo = {
|
|
2178
2180
|
key: 0,
|
|
2179
2181
|
class: "required"
|
|
2180
|
-
},
|
|
2182
|
+
}, fo = /*#__PURE__*/ At(/* @__PURE__ */ u({
|
|
2181
2183
|
__name: "ADatetimePicker",
|
|
2182
2184
|
props: {
|
|
2183
2185
|
modelValue: {},
|
|
@@ -2225,31 +2227,31 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2225
2227
|
"afterClear"
|
|
2226
2228
|
],
|
|
2227
2229
|
setup(e, { emit: t }) {
|
|
2228
|
-
let u = e, d = t, f = M(!1), p = M(0), m = M(0), h = le("timePickerInstance"), g = le("inputInstance"), _ = le("confirmRefButton"), v = M(""), y = M(null), S = M(null), C = M(null), { t: w } = he(), T = n(() => u.placeholder.length ? u.placeholder :
|
|
2230
|
+
let u = e, d = t, f = M(!1), p = M(0), m = M(0), h = le("timePickerInstance"), g = le("inputInstance"), _ = le("confirmRefButton"), v = M(""), y = M(null), S = M(null), C = M(null), { t: w } = he(), T = n(() => u.placeholder.length ? u.placeholder : Za(u.type)), { requiredIf: E } = Ra(), D = n(() => ({ textFieldValue: { required: E(u.required) } })), O = Ze(D, { textFieldValue: v }), A = (e) => {
|
|
2229
2231
|
e !== u.modelValue && d("update:modelValue", e);
|
|
2230
2232
|
}, j = (e) => {
|
|
2231
2233
|
W(e) || (u.type !== "date" && (W(S.value) || e.hour() !== S.value.hours || e.minute() !== S.value.minutes) && (S.value = {
|
|
2232
2234
|
hours: e.hour(),
|
|
2233
2235
|
minutes: e.minute()
|
|
2234
|
-
}), (W(y.value) || e.year() !== y.value.getFullYear() || e.month() !== y.value.getMonth() || e.date() !== y.value.getDate()) && (y.value =
|
|
2236
|
+
}), (W(y.value) || e.year() !== y.value.getFullYear() || e.month() !== y.value.getMonth() || e.date() !== y.value.getDate()) && (y.value = ro(e, u.type)));
|
|
2235
2237
|
};
|
|
2236
2238
|
L(() => u.modelValue, (e, t) => {
|
|
2237
|
-
e !== t && (C.value =
|
|
2239
|
+
e !== t && (C.value = $a(e, u.type, u.lastMinuteMoment));
|
|
2238
2240
|
}, { immediate: !0 });
|
|
2239
|
-
let ee = (e, t) => W(e) ? t :
|
|
2241
|
+
let ee = (e, t) => W(e) ? t : io(t, e, u.type), te = (e, t) => W(e) || u.type === "date" ? t : t.set("hour", e.hours).set("minute", e.minutes);
|
|
2240
2242
|
L([S, y], ([e, t]) => {
|
|
2241
2243
|
let n = null;
|
|
2242
|
-
n = W(C.value) ?
|
|
2244
|
+
n = W(C.value) ? $a(u.modelValue, u.type, u.lastMinuteMoment) ?? oo(u.type, u.lastMinuteMoment) : C.value, n = te(e, n), n = ee(t, n), !n.isSame(ie(C.value)) && (C.value = n);
|
|
2243
2245
|
}), L(C, (e) => {
|
|
2244
2246
|
if (W(e)) {
|
|
2245
2247
|
v.value = "", A(null);
|
|
2246
2248
|
return;
|
|
2247
2249
|
}
|
|
2248
|
-
let t =
|
|
2249
|
-
v.value =
|
|
2250
|
+
let t = to(e, u.type);
|
|
2251
|
+
v.value = no(e, u.type), j(e), A(t);
|
|
2250
2252
|
}, { immediate: !0 }), L(f, (e) => {
|
|
2251
2253
|
if (e) {
|
|
2252
|
-
ne(), W(C.value) && (W(u.defaultValue) || H(u.defaultValue)) && (C.value =
|
|
2254
|
+
ne(), W(C.value) && (W(u.defaultValue) || H(u.defaultValue)) && (C.value = ao(u.type, u.lastMinuteMoment)), d("onOpen");
|
|
2253
2255
|
return;
|
|
2254
2256
|
}
|
|
2255
2257
|
d("onClose");
|
|
@@ -2257,21 +2259,21 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2257
2259
|
let P = n(() => U(u.errorMessages) ? u.errorMessages : O.value.textFieldValue.$errors.length ? [O.value.textFieldValue.$errors.map((e) => e.$message).join(" ")] : []), ne = () => {
|
|
2258
2260
|
let e = v.value.replace(/[^\s\d.:]/g, "").trim();
|
|
2259
2261
|
if (e.length === 0 && !u.required) {
|
|
2260
|
-
C.value =
|
|
2262
|
+
C.value = $a(u.defaultValue, u.type, u.lastMinuteMoment), d("blur");
|
|
2261
2263
|
return;
|
|
2262
2264
|
}
|
|
2263
|
-
let t =
|
|
2265
|
+
let t = $a(u.modelValue, u.type, u.lastMinuteMoment)?.second() ?? 0, n = eo(e, u.type, t);
|
|
2264
2266
|
if (!W(n)) {
|
|
2265
|
-
|
|
2267
|
+
so(n, ie(C.value), u.type) ? v.value = no(n, u.type) : C.value = n, O.value.textFieldValue.$touch(), d("blur");
|
|
2266
2268
|
return;
|
|
2267
2269
|
}
|
|
2268
|
-
W(C.value) || (v.value =
|
|
2270
|
+
W(C.value) || (v.value = no(C.value, u.type)), O.value.textFieldValue.$touch(), d("blur");
|
|
2269
2271
|
}, re = () => {
|
|
2270
2272
|
if (W(u.defaultValue) || H(u.defaultValue)) {
|
|
2271
2273
|
C.value = null, y.value = null, S.value = null, d("afterClear");
|
|
2272
2274
|
return;
|
|
2273
2275
|
}
|
|
2274
|
-
C.value =
|
|
2276
|
+
C.value = $a(u.defaultValue, u.type, u.lastMinuteMoment), d("afterClear");
|
|
2275
2277
|
}, ae = () => {
|
|
2276
2278
|
f.value = !1, g.value?.focus(), g.value?.blur(), d("onClose"), d("blur");
|
|
2277
2279
|
}, oe = () => {
|
|
@@ -2287,7 +2289,7 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2287
2289
|
}
|
|
2288
2290
|
h.value?.focusHour();
|
|
2289
2291
|
}, de = () => {
|
|
2290
|
-
C.value =
|
|
2292
|
+
C.value = ao(u.type, u.lastMinuteMoment), x(() => {
|
|
2291
2293
|
p.value++, m.value++;
|
|
2292
2294
|
});
|
|
2293
2295
|
};
|
|
@@ -2352,7 +2354,7 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2352
2354
|
color: "primary",
|
|
2353
2355
|
"show-adjacent-months": ""
|
|
2354
2356
|
}, t.$attrs, { "onUpdate:modelValue": ue }), null, 16, ["modelValue"])),
|
|
2355
|
-
e.type === "date" ? i("", !0) : (k(), r(
|
|
2357
|
+
e.type === "date" ? i("", !0) : (k(), r(Ka, {
|
|
2356
2358
|
ref_key: "timePickerInstance",
|
|
2357
2359
|
ref: h,
|
|
2358
2360
|
key: m.value,
|
|
@@ -2361,7 +2363,7 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2361
2363
|
onOnEnterKeyup: se,
|
|
2362
2364
|
onFocusConfirm: ce
|
|
2363
2365
|
}, null, 8, ["modelValue"])),
|
|
2364
|
-
o("div",
|
|
2366
|
+
o("div", co, [e.hideSetToNow ? i("", !0) : (k(), a("button", {
|
|
2365
2367
|
key: 0,
|
|
2366
2368
|
type: "button",
|
|
2367
2369
|
class: "a-datetime-picker__bottom-button",
|
|
@@ -2380,12 +2382,12 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2380
2382
|
})) : i("", !0)]),
|
|
2381
2383
|
_: 1
|
|
2382
2384
|
}, 8, ["model-value"])),
|
|
2383
|
-
o("div",
|
|
2385
|
+
o("div", lo, [N(t.$slots, "append-inner", {}, void 0, !0)])
|
|
2384
2386
|
]),
|
|
2385
2387
|
_: 2
|
|
2386
2388
|
}, [e.hideLabel ? void 0 : {
|
|
2387
2389
|
name: "label",
|
|
2388
|
-
fn: R(() => [c(F(e.label), 1), e.required ? (k(), a("span",
|
|
2390
|
+
fn: R(() => [c(F(e.label), 1), e.required ? (k(), a("span", uo)) : i("", !0)]),
|
|
2389
2391
|
key: "0"
|
|
2390
2392
|
}]), 1032, [
|
|
2391
2393
|
"modelValue",
|
|
@@ -2396,7 +2398,7 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2396
2398
|
"disabled"
|
|
2397
2399
|
]));
|
|
2398
2400
|
}
|
|
2399
|
-
}), [["__scopeId", "data-v-4255e476"]]),
|
|
2401
|
+
}), [["__scopeId", "data-v-4255e476"]]), po = /* @__PURE__ */ u({
|
|
2400
2402
|
__name: "AFormDatetimePicker",
|
|
2401
2403
|
props: {
|
|
2402
2404
|
modelValue: {},
|
|
@@ -2460,7 +2462,7 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2460
2462
|
}), D = n(() => U(a.required) ? a.required : !!(a.v?.required && a.v?.required.$params.type === "required")), O = n(() => U(a.disabled) ? a.disabled : !!f.value);
|
|
2461
2463
|
return L(s, (e, t) => {
|
|
2462
2464
|
e !== t && c.value.enabled && (m.value || p.value) && u.value(e);
|
|
2463
|
-
}), (t, n) => (k(), r(
|
|
2465
|
+
}), (t, n) => (k(), r(fo, b({
|
|
2464
2466
|
modelValue: s.value,
|
|
2465
2467
|
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
2466
2468
|
type: e.type,
|
|
@@ -2493,7 +2495,7 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2493
2495
|
"clearable"
|
|
2494
2496
|
]));
|
|
2495
2497
|
}
|
|
2496
|
-
}),
|
|
2498
|
+
}), mo = /* @__PURE__ */ u({
|
|
2497
2499
|
__name: "AFormSwitch",
|
|
2498
2500
|
props: {
|
|
2499
2501
|
modelValue: { type: Boolean },
|
|
@@ -2559,21 +2561,21 @@ var Ga = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", Ka = "YYYY-MM-DDTHH:mm:ss", qa = "DD.MM.
|
|
|
2559
2561
|
"disabled"
|
|
2560
2562
|
]));
|
|
2561
2563
|
}
|
|
2562
|
-
}),
|
|
2563
|
-
function
|
|
2564
|
+
}), ho = M({}), go = M(!1), _o = "__unscoped", vo = (e, t) => typeof e == "string" && typeof t == "string" ? `${e}_${t}` : _o;
|
|
2565
|
+
function yo() {
|
|
2564
2566
|
return {
|
|
2565
2567
|
setStoredPage: (e, t) => {
|
|
2566
|
-
|
|
2568
|
+
ho.value[e] = t;
|
|
2567
2569
|
},
|
|
2568
2570
|
setPreservePage: () => {
|
|
2569
|
-
|
|
2571
|
+
go.value = !0;
|
|
2570
2572
|
},
|
|
2571
|
-
consumeStoredPage: (e) =>
|
|
2573
|
+
consumeStoredPage: (e) => go.value ? (go.value = !1, ho.value[e] ?? null) : null
|
|
2572
2574
|
};
|
|
2573
2575
|
}
|
|
2574
2576
|
//#endregion
|
|
2575
2577
|
//#region src/labs/filters/filterInjectionKeys.ts
|
|
2576
|
-
var
|
|
2578
|
+
var bo = Symbol.for("anzu:FilterDataKey"), xo = Symbol.for("anzu:FilterConfigKey"), So = Symbol.for("anzu:FilterInnerDataKey"), Co = Symbol.for("anzu:FilterInnerConfigKey"), wo = Symbol.for("anzu:FilterSubmitResetCounterKey"), To = Symbol.for("anzu:FilterSelectedKey"), Eo = Symbol.for("anzu:DatatablePaginationKey"), Do = Symbol.for("anzu:SubjectSelectCloseSidebarKey"), Oo = Symbol.for("anzu:DatatablePageStoreKey"), ko = "_sort", Ao = "~", jo = {
|
|
2577
2579
|
"%2C": ",",
|
|
2578
2580
|
"%3A": ":",
|
|
2579
2581
|
"%2F": "/",
|
|
@@ -2585,24 +2587,24 @@ var vo = Symbol.for("anzu:FilterDataKey"), yo = Symbol.for("anzu:FilterConfigKey
|
|
|
2585
2587
|
"%29": ")",
|
|
2586
2588
|
"%3B": ";",
|
|
2587
2589
|
"%3F": "?"
|
|
2588
|
-
},
|
|
2590
|
+
}, Mo = (e) => e.replace(/%(2C|3A|2F|40|24|21|27|28|29|3B|3F)/g, (e) => jo[e]), No = (e, t) => G(e) && G(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e === t, Po = (e, t) => {
|
|
2589
2591
|
let n = new URLSearchParams();
|
|
2590
2592
|
for (let t in e) {
|
|
2591
2593
|
let r = e[t];
|
|
2592
2594
|
H(r) || W(r) || G(r) && zt(r) || Lt(r) && Rt(r) || Mt(r) && r.length === 0 || n.set(t, G(r) ? r.join(",") : String(r));
|
|
2593
2595
|
}
|
|
2594
|
-
return t && n.set(
|
|
2596
|
+
return t && n.set(ko, `${t.key},${t.order}`), n.size === 0 ? "" : Mo(n.toString()) + Ao;
|
|
2595
2597
|
};
|
|
2596
|
-
function
|
|
2598
|
+
function Fo(e, t, n) {
|
|
2597
2599
|
let r = {};
|
|
2598
2600
|
for (let [n, i] of Object.entries(t)) {
|
|
2599
2601
|
let t = e.fields[n];
|
|
2600
|
-
H(t) ||
|
|
2602
|
+
H(t) || No(i, t.default) || (r[n] = i);
|
|
2601
2603
|
}
|
|
2602
|
-
let i =
|
|
2604
|
+
let i = Po(r, n);
|
|
2603
2605
|
return i.length === 0 ? i : "#" + i;
|
|
2604
2606
|
}
|
|
2605
|
-
var
|
|
2607
|
+
var Io = (e) => !e.includes("%"), Lo = {
|
|
2606
2608
|
skip: !1,
|
|
2607
2609
|
selected: !0,
|
|
2608
2610
|
xs: void 0,
|
|
@@ -2611,33 +2613,33 @@ var Po = (e) => !e.includes("%"), Fo = {
|
|
|
2611
2613
|
lg: void 0,
|
|
2612
2614
|
xl: void 0
|
|
2613
2615
|
};
|
|
2614
|
-
function
|
|
2616
|
+
function Ro(e) {
|
|
2615
2617
|
return j(e.reduce((e, t) => ({
|
|
2616
2618
|
...e,
|
|
2617
2619
|
[t.name]: K(t.default)
|
|
2618
2620
|
}), {}));
|
|
2619
2621
|
}
|
|
2620
|
-
function
|
|
2622
|
+
function zo(e, t, n) {
|
|
2621
2623
|
let r = e.reduce((e, t) => {
|
|
2622
2624
|
let r = t.name, i = K(t.default);
|
|
2623
2625
|
return {
|
|
2624
2626
|
...e,
|
|
2625
2627
|
[r]: {
|
|
2626
2628
|
name: r,
|
|
2627
|
-
variant:
|
|
2628
|
-
type:
|
|
2629
|
+
variant: Bo(t.variant, "eq"),
|
|
2630
|
+
type: Bo(t.type, "custom"),
|
|
2629
2631
|
titleT: t.titleT ?? (n?.system && n?.subject && t.name ? `${n.system}.${n.subject}.filter.${t.name}` : void 0),
|
|
2630
|
-
apiName:
|
|
2631
|
-
clearable:
|
|
2632
|
-
mandatory:
|
|
2632
|
+
apiName: Bo(t.apiName, t.name),
|
|
2633
|
+
clearable: Bo(t.clearable, !0),
|
|
2634
|
+
mandatory: Bo(t.mandatory, !1),
|
|
2633
2635
|
multiple: G(i),
|
|
2634
|
-
advanced:
|
|
2635
|
-
related:
|
|
2636
|
-
exclude:
|
|
2636
|
+
advanced: Bo(t.advanced, !1),
|
|
2637
|
+
related: Bo(t.related, void 0),
|
|
2638
|
+
exclude: Bo(t.exclude, !1),
|
|
2637
2639
|
default: i,
|
|
2638
2640
|
render: {
|
|
2639
|
-
...
|
|
2640
|
-
...
|
|
2641
|
+
...Lo,
|
|
2642
|
+
...Bo(t.render, {})
|
|
2641
2643
|
}
|
|
2642
2644
|
}
|
|
2643
2645
|
};
|
|
@@ -2657,10 +2659,10 @@ function Lo(e, t, n) {
|
|
|
2657
2659
|
filterData: t
|
|
2658
2660
|
};
|
|
2659
2661
|
}
|
|
2660
|
-
function
|
|
2662
|
+
function Bo(e, t) {
|
|
2661
2663
|
return H(e) ? t : e;
|
|
2662
2664
|
}
|
|
2663
|
-
function
|
|
2665
|
+
function Vo() {
|
|
2664
2666
|
let e = (e, t, n) => {
|
|
2665
2667
|
n.fields[e]?.clearable && (t[e] = K(n.fields[e].default));
|
|
2666
2668
|
}, t = (t, n) => {
|
|
@@ -2692,38 +2694,38 @@ function zo() {
|
|
|
2692
2694
|
isClearable: i
|
|
2693
2695
|
};
|
|
2694
2696
|
}
|
|
2695
|
-
var
|
|
2697
|
+
var Ho = {
|
|
2696
2698
|
storeFiltersLocalStorage: !0,
|
|
2697
2699
|
populateUrlParams: !0
|
|
2698
2700
|
};
|
|
2699
|
-
function
|
|
2701
|
+
function Uo(e, t, n = {}) {
|
|
2700
2702
|
let r = {
|
|
2701
|
-
...
|
|
2703
|
+
...Ho,
|
|
2702
2704
|
...n
|
|
2703
2705
|
}, i;
|
|
2704
2706
|
Mt(r.storeFiltersLocalStorage) ? i = r.storeFiltersLocalStorage : Pt(r.storeFiltersLocalStorage) && !0 === r.storeFiltersLocalStorage && Mt(t.general.system) && Mt(t.general.subject) && (i = "tableFilter_" + t.general.system + "_" + t.general.subject);
|
|
2705
|
-
let a = Mt(r.storeFiltersLocalStorage) ? r.storeFiltersLocalStorage :
|
|
2706
|
-
f() && A(
|
|
2707
|
-
let { clearAll: o } =
|
|
2707
|
+
let a = Mt(r.storeFiltersLocalStorage) ? r.storeFiltersLocalStorage : vo(t.general.system, t.general.subject);
|
|
2708
|
+
f() && A(Oo, a);
|
|
2709
|
+
let { clearAll: o } = Vo(), s = () => {
|
|
2708
2710
|
let n = {};
|
|
2709
2711
|
for (let r in e) try {
|
|
2710
2712
|
let i = r, a = e[i];
|
|
2711
|
-
!H(a) && !W(a) && !zt(a) && !
|
|
2713
|
+
!H(a) && !W(a) && !zt(a) && !No(a, t.fields[i].default) && (n[r] = a);
|
|
2712
2714
|
} catch {}
|
|
2713
2715
|
return n;
|
|
2714
|
-
}, c = (e, t, n) =>
|
|
2716
|
+
}, c = (e, t, n) => Po(e, n ? t.value.sortBy : void 0), l = (e) => {
|
|
2715
2717
|
if (!e) return null;
|
|
2716
2718
|
e.startsWith("#") && (e = e.substring(1));
|
|
2717
|
-
let n = e.indexOf(
|
|
2719
|
+
let n = e.indexOf(Ao);
|
|
2718
2720
|
if (n === -1) return null;
|
|
2719
2721
|
e = e.slice(0, n);
|
|
2720
|
-
let r = new URLSearchParams(e), i = {}, a = null, o = r.get(
|
|
2722
|
+
let r = new URLSearchParams(e), i = {}, a = null, o = r.get(ko);
|
|
2721
2723
|
if (o) {
|
|
2722
2724
|
let [e, t] = o.split(",");
|
|
2723
2725
|
e && (t === vr.Asc || t === vr.Desc) && (a = {
|
|
2724
2726
|
key: e,
|
|
2725
2727
|
order: t
|
|
2726
|
-
}), r.delete(
|
|
2728
|
+
}), r.delete(ko);
|
|
2727
2729
|
}
|
|
2728
2730
|
for (let [e, n] of r.entries()) {
|
|
2729
2731
|
let r = t.fields[e];
|
|
@@ -2753,7 +2755,7 @@ function Vo(e, t, n = {}) {
|
|
|
2753
2755
|
};
|
|
2754
2756
|
return {
|
|
2755
2757
|
loadStoredFilters: (n, r) => {
|
|
2756
|
-
let { consumeStoredPage: l } =
|
|
2758
|
+
let { consumeStoredPage: l } = yo(), d = "hash", f = p();
|
|
2757
2759
|
if (W(f) && (d = "localStorage", f = h()), W(f) || Rt(f.filters) && W(f.sortBy)) {
|
|
2758
2760
|
let e = l(a);
|
|
2759
2761
|
return e !== null && (n.value = {
|
|
@@ -2807,13 +2809,13 @@ function Vo(e, t, n = {}) {
|
|
|
2807
2809
|
}
|
|
2808
2810
|
//#endregion
|
|
2809
2811
|
//#region src/labs/filters/filterTimeIntervalTools.ts
|
|
2810
|
-
var
|
|
2812
|
+
var Wo = {
|
|
2811
2813
|
CurrentMonth: "cm",
|
|
2812
2814
|
LastMonth: "lm",
|
|
2813
2815
|
Last3Months: "l3m",
|
|
2814
2816
|
Custom: "custom"
|
|
2815
2817
|
};
|
|
2816
|
-
function
|
|
2818
|
+
function Go(e = void 0) {
|
|
2817
2819
|
let { t } = he(), r = n(() => {
|
|
2818
2820
|
let n = [
|
|
2819
2821
|
{
|
|
@@ -2837,19 +2839,19 @@ function Uo(e = void 0) {
|
|
|
2837
2839
|
title: "28 dní"
|
|
2838
2840
|
},
|
|
2839
2841
|
{
|
|
2840
|
-
value:
|
|
2842
|
+
value: Wo.CurrentMonth,
|
|
2841
2843
|
title: "Prebiehajúci mesiac"
|
|
2842
2844
|
},
|
|
2843
2845
|
{
|
|
2844
|
-
value:
|
|
2846
|
+
value: Wo.LastMonth,
|
|
2845
2847
|
title: "Minulý mesiac"
|
|
2846
2848
|
},
|
|
2847
2849
|
{
|
|
2848
|
-
value:
|
|
2850
|
+
value: Wo.Last3Months,
|
|
2849
2851
|
title: "Posledné 3 mesiace"
|
|
2850
2852
|
},
|
|
2851
2853
|
{
|
|
2852
|
-
value:
|
|
2854
|
+
value: Wo.Custom,
|
|
2853
2855
|
title: "Vlastné"
|
|
2854
2856
|
}
|
|
2855
2857
|
];
|
|
@@ -2860,7 +2862,7 @@ function Uo(e = void 0) {
|
|
|
2860
2862
|
getTimeIntervalOption: (e) => r.value.find((t) => t.value === e)
|
|
2861
2863
|
};
|
|
2862
2864
|
}
|
|
2863
|
-
function
|
|
2865
|
+
function Ko(e) {
|
|
2864
2866
|
let { datesCompare: t, required: r } = Ra(), i = n(() => e.value.from), a = { dialogData: {
|
|
2865
2867
|
from: {
|
|
2866
2868
|
required: r,
|
|
@@ -2875,7 +2877,7 @@ function Wo(e) {
|
|
|
2875
2877
|
}
|
|
2876
2878
|
//#endregion
|
|
2877
2879
|
//#region src/labs/api/useApiQueryBuilder.ts
|
|
2878
|
-
function
|
|
2880
|
+
function qo() {
|
|
2879
2881
|
let e = M([]), t = (e) => {
|
|
2880
2882
|
c("limit", e);
|
|
2881
2883
|
}, n = (e, t) => {
|
|
@@ -2892,9 +2894,9 @@ function Go() {
|
|
|
2892
2894
|
};
|
|
2893
2895
|
let c = Bi(), l = Ri(c);
|
|
2894
2896
|
switch (o) {
|
|
2895
|
-
case
|
|
2896
|
-
case
|
|
2897
|
-
case
|
|
2897
|
+
case Wo.CurrentMonth: return ea(l, "utc", 0, !1);
|
|
2898
|
+
case Wo.LastMonth: return ea(l, "utc", -1, !1);
|
|
2899
|
+
case Wo.Last3Months: return ea(l, "utc", -2, !0);
|
|
2898
2900
|
default: if (jt(o)) return {
|
|
2899
2901
|
from: Gi(Ui(o * -1, l)),
|
|
2900
2902
|
until: c
|
|
@@ -2944,10 +2946,10 @@ function Go() {
|
|
|
2944
2946
|
}
|
|
2945
2947
|
//#endregion
|
|
2946
2948
|
//#region src/types/ApiResponse.ts
|
|
2947
|
-
var
|
|
2948
|
-
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } =
|
|
2949
|
+
var Jo = (e) => Lt(e) && Object.hasOwn(e, "totalCount"), Yo = (e) => Lt(e) && Object.hasOwn(e, "hasNextPage"), Xo = (e, t, n) => {
|
|
2950
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } = qo();
|
|
2949
2951
|
return r(e.value.rowsPerPage), i(e.value.page, e.value.rowsPerPage), e.value.sortBy && a(e.value.sortBy.key, e.value.sortBy.order === vr.Desc), s(t, n), o();
|
|
2950
|
-
},
|
|
2952
|
+
}, Zo = (e) => {
|
|
2951
2953
|
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, silentConsoleError: s = !1 } = e, c = /* @__PURE__ */ new Set();
|
|
2952
2954
|
return {
|
|
2953
2955
|
executeFetch: async (e, l, u, d = {}) => {
|
|
@@ -2957,18 +2959,18 @@ var Ko = (e) => Lt(e) && Object.hasOwn(e, "totalCount"), qo = (e) => Lt(e) && Ob
|
|
|
2957
2959
|
try {
|
|
2958
2960
|
let n = u.general.elastic || h ? "/search" : "", r = U(m) ? m : a, s = U(p) ? p : i;
|
|
2959
2961
|
if (H(s)) throw Error("Url template is undefined");
|
|
2960
|
-
let c = (H(r) ? s : la(s, r)) + n +
|
|
2962
|
+
let c = (H(r) ? s : la(s, r)) + n + Xo(e, l, u), d = await t().get(c, {
|
|
2961
2963
|
...o,
|
|
2962
2964
|
signal: f.signal
|
|
2963
2965
|
});
|
|
2964
2966
|
if (!ua(d.status)) throw new li(d.status);
|
|
2965
2967
|
if (d.data) {
|
|
2966
2968
|
let t = d.data;
|
|
2967
|
-
return
|
|
2969
|
+
return Yo(t) ? e.value = {
|
|
2968
2970
|
...e.value,
|
|
2969
2971
|
hasNextPage: t.hasNextPage,
|
|
2970
2972
|
currentViewCount: d.data.data.length
|
|
2971
|
-
} :
|
|
2973
|
+
} : Jo(t) && (e.value = {
|
|
2972
2974
|
...e.value,
|
|
2973
2975
|
totalCount: t.totalCount,
|
|
2974
2976
|
currentViewCount: d.data.data.length
|
|
@@ -2987,10 +2989,10 @@ var Ko = (e) => Lt(e) && Object.hasOwn(e, "totalCount"), qo = (e) => Lt(e) && Ob
|
|
|
2987
2989
|
c.forEach((e) => e.abort()), c.clear();
|
|
2988
2990
|
}
|
|
2989
2991
|
};
|
|
2990
|
-
},
|
|
2991
|
-
function
|
|
2992
|
+
}, Qo = () => ({ rowsPerPage: 25 });
|
|
2993
|
+
function $o(e, t = vr.Desc, n = {}, r) {
|
|
2992
2994
|
let i = {
|
|
2993
|
-
...
|
|
2995
|
+
...Qo(),
|
|
2994
2996
|
...n
|
|
2995
2997
|
}, a = r ?? M({
|
|
2996
2998
|
sortBy: W(e) ? null : {
|
|
@@ -3048,9 +3050,9 @@ function Zo(e, t = vr.Desc, n = {}, r) {
|
|
|
3048
3050
|
}
|
|
3049
3051
|
//#endregion
|
|
3050
3052
|
//#region src/services/api/apiCreateOne.ts
|
|
3051
|
-
var
|
|
3053
|
+
var es = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
3052
3054
|
e().post(la(n, r), JSON.stringify(t), o).then((e) => ua(e.status) ? e.data ? s(e.data) : e.status === 204 ? s(null) : c(new Ur()) : c(new li(e.status))).catch((e) => $r(e) ? c(new ti(e, e.config?.url)) : ri(e) ? c(new si(e, i, a, e)) : gi(e) ? c(new yi(e, i, a, e)) : di(e) ? c(new mi(e, e)) : c(new Ur(e)));
|
|
3053
|
-
}),
|
|
3055
|
+
}), ts = /* @__PURE__ */ u({
|
|
3054
3056
|
__name: "AFilterBooleanSelect",
|
|
3055
3057
|
props: {
|
|
3056
3058
|
name: {},
|
|
@@ -3061,7 +3063,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3061
3063
|
},
|
|
3062
3064
|
emits: ["change"],
|
|
3063
3065
|
setup(e, { emit: t }) {
|
|
3064
|
-
let i = e, a = t, o = h(
|
|
3066
|
+
let i = e, a = t, o = h(wo), s = h(To), c = h(xo), l = h(bo);
|
|
3065
3067
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
3066
3068
|
let u = n({
|
|
3067
3069
|
get() {
|
|
@@ -3093,7 +3095,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3093
3095
|
value: 0,
|
|
3094
3096
|
title: f(i.falseT)
|
|
3095
3097
|
}
|
|
3096
|
-
]), { clearOne: g } =
|
|
3098
|
+
]), { clearOne: g } = Vo(), _ = () => {
|
|
3097
3099
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3098
3100
|
}, v = () => {
|
|
3099
3101
|
if (u.value.value === -1) {
|
|
@@ -3124,7 +3126,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3124
3126
|
"clearable"
|
|
3125
3127
|
]));
|
|
3126
3128
|
}
|
|
3127
|
-
}),
|
|
3129
|
+
}), ns = /* @__PURE__ */ u({
|
|
3128
3130
|
__name: "AFilterString",
|
|
3129
3131
|
props: {
|
|
3130
3132
|
name: {},
|
|
@@ -3133,7 +3135,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3133
3135
|
},
|
|
3134
3136
|
emits: ["change"],
|
|
3135
3137
|
setup(e, { emit: t }) {
|
|
3136
|
-
let i = e, a = t, o = h(
|
|
3138
|
+
let i = e, a = t, o = h(wo), s = h(To), c = h(xo), l = h(bo);
|
|
3137
3139
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
3138
3140
|
let u = n({
|
|
3139
3141
|
get() {
|
|
@@ -3142,7 +3144,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3142
3144
|
set(e) {
|
|
3143
3145
|
l[i.name] = e, c.touched = !0, a("change");
|
|
3144
3146
|
}
|
|
3145
|
-
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } =
|
|
3147
|
+
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } = Vo(), _ = () => {
|
|
3146
3148
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3147
3149
|
}, v = () => {
|
|
3148
3150
|
if (jt(u.value)) {
|
|
@@ -3182,10 +3184,10 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3182
3184
|
"data-cy"
|
|
3183
3185
|
]));
|
|
3184
3186
|
}
|
|
3185
|
-
}),
|
|
3187
|
+
}), rs = {
|
|
3186
3188
|
key: 0,
|
|
3187
3189
|
class: "font-italic pl-1"
|
|
3188
|
-
},
|
|
3190
|
+
}, is = 300, as = /* @__PURE__ */ u({
|
|
3189
3191
|
__name: "AFilterRemoteAutocomplete",
|
|
3190
3192
|
props: {
|
|
3191
3193
|
name: {},
|
|
@@ -3203,13 +3205,13 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3203
3205
|
},
|
|
3204
3206
|
emits: ["change"],
|
|
3205
3207
|
setup(e, { emit: t }) {
|
|
3206
|
-
let o = e, u = t, d = h(
|
|
3208
|
+
let o = e, u = t, d = h(wo), p = h(To), m = h(xo), g = h(bo), _ = h(Co), v = h(So), y = f()?.type.__name;
|
|
3207
3209
|
if (H(d) || H(p) || H(g) || H(m) || H(_) || H(v)) throw Error(`[${y}] Incorrect provide/inject config.`);
|
|
3208
3210
|
let x = o.filterByField, S = o.filterSortBy;
|
|
3209
3211
|
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(", ")}.`);
|
|
3210
3212
|
let C = n(() => m.fields[o.name]), w = M([]), T = M(""), E = M(!1), D = M(null), O = M(0), { t: A } = he(), j = () => {
|
|
3211
3213
|
E.value = !1;
|
|
3212
|
-
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } =
|
|
3214
|
+
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } = $o(W(S) ? null : S.key, S?.order), te = M([]), P = M([]), ne = M(!0), re = M(!1), ie = n(() => {
|
|
3213
3215
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
3214
3216
|
t.forEach((t) => {
|
|
3215
3217
|
e.set(t.value, {
|
|
@@ -3273,7 +3275,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3273
3275
|
if (!C.value.multiple && P.value[0]) return P.value[0].title;
|
|
3274
3276
|
}), me = (e) => {
|
|
3275
3277
|
(C.value.multiple || E.value || e.length !== 0) && z.value !== e && (T.value = e);
|
|
3276
|
-
}, { clearOne: _e } =
|
|
3278
|
+
}, { clearOne: _e } = Vo(), ve = () => {
|
|
3277
3279
|
_e(o.name, g, m), p.value.delete(o.name);
|
|
3278
3280
|
}, ye = async () => {
|
|
3279
3281
|
try {
|
|
@@ -3291,7 +3293,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3291
3293
|
}
|
|
3292
3294
|
O.value++, ue(e, O.value);
|
|
3293
3295
|
}
|
|
3294
|
-
}, { debounce:
|
|
3296
|
+
}, { debounce: is });
|
|
3295
3297
|
let be = async () => {
|
|
3296
3298
|
await de("mounted");
|
|
3297
3299
|
}, B = 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(() => {
|
|
@@ -3357,7 +3359,7 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3357
3359
|
text: `${t.title} (${t.raw.subtitle})`,
|
|
3358
3360
|
disabled: t.props.disabled
|
|
3359
3361
|
}, {
|
|
3360
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
3362
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", rs, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
3361
3363
|
_: 2
|
|
3362
3364
|
}, 1032, [
|
|
3363
3365
|
"closable",
|
|
@@ -3384,12 +3386,12 @@ var Qo = (e, t = {}, n, r = {}, i, a, o = {}) => new Promise((s, c) => {
|
|
|
3384
3386
|
});
|
|
3385
3387
|
//#endregion
|
|
3386
3388
|
//#region src/utils/enum.ts
|
|
3387
|
-
function
|
|
3389
|
+
function os(e, t) {
|
|
3388
3390
|
return t.includes(e);
|
|
3389
3391
|
}
|
|
3390
3392
|
//#endregion
|
|
3391
3393
|
//#region src/labs/filters/AFilterRemoteAutocompleteWithMinimal.vue
|
|
3392
|
-
var
|
|
3394
|
+
var ss = /* @__PURE__ */ u({
|
|
3393
3395
|
__name: "AFilterRemoteAutocompleteWithMinimal",
|
|
3394
3396
|
props: {
|
|
3395
3397
|
name: {},
|
|
@@ -3408,13 +3410,13 @@ var as = /* @__PURE__ */ u({
|
|
|
3408
3410
|
},
|
|
3409
3411
|
emits: ["change"],
|
|
3410
3412
|
setup(e, { emit: t }) {
|
|
3411
|
-
let i = e, a = t, o = h(
|
|
3413
|
+
let i = e, a = t, o = h(wo), s = h(To), c = h(xo), u = h(bo), d = h(Co), p = h(So), m = f()?.type.__name;
|
|
3412
3414
|
if (H(o) || H(s) || H(u) || H(c) || H(d) || H(p)) throw Error(`[${m}] Incorrect provide/inject config.`);
|
|
3413
3415
|
if (H(c.fields[i.name]) || H(u[i.name])) throw Error(`[${m}] Incorrect filter config. Name is '${i.name}' and available options are ${Object.keys(u).join(", ")}.`);
|
|
3414
3416
|
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(", ")}.`);
|
|
3415
3417
|
let g = M([]), _ = M(""), v = M(!1), y = M(void 0), x = M(0), { t: S } = he(), C = n(() => c.fields[i.name]), w = () => {
|
|
3416
3418
|
v.value = !1;
|
|
3417
|
-
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } =
|
|
3419
|
+
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } = $o(W(i.filterSortBy) ? null : i.filterSortBy.key, i.filterSortBy?.order), D = M([]), O = M([]), A = n(() => {
|
|
3418
3420
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
3419
3421
|
return O.value.forEach((n) => {
|
|
3420
3422
|
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)));
|
|
@@ -3474,7 +3476,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3474
3476
|
ee(e);
|
|
3475
3477
|
}
|
|
3476
3478
|
fe();
|
|
3477
|
-
}, ue = n(() => H(i.placeholder) ? C.value.variant === "startsWith" ? S("common.model.filterPlaceholder.startsWith") : C.value.variant === "eq" ? S("common.model.filterPlaceholder.eq") : C.value.variant === "search" ? S("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: de } =
|
|
3479
|
+
}, ue = n(() => H(i.placeholder) ? C.value.variant === "startsWith" ? S("common.model.filterPlaceholder.startsWith") : C.value.variant === "eq" ? S("common.model.filterPlaceholder.eq") : C.value.variant === "search" ? S("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: de } = Vo(), fe = () => {
|
|
3478
3480
|
de(i.name, u, c), s.value.delete(i.name);
|
|
3479
3481
|
}, pe = (e) => {
|
|
3480
3482
|
if (s.value.delete(i.name), G(e) && e.length === 0 || W(e)) {
|
|
@@ -3496,7 +3498,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3496
3498
|
return L(() => u[i.name], async (e, t) => {
|
|
3497
3499
|
if (!(e === t || Pt(e))) {
|
|
3498
3500
|
if (W(e) || H(e) || G(e) && e.length === 0) {
|
|
3499
|
-
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, pe(g.value), re.value === !0 ||
|
|
3501
|
+
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, pe(g.value), re.value === !0 || os(i.prefetch, [
|
|
3500
3502
|
"hover",
|
|
3501
3503
|
"focus",
|
|
3502
3504
|
!1
|
|
@@ -3584,15 +3586,16 @@ var as = /* @__PURE__ */ u({
|
|
|
3584
3586
|
"loading"
|
|
3585
3587
|
]));
|
|
3586
3588
|
}
|
|
3587
|
-
}),
|
|
3589
|
+
}), cs = /* @__PURE__ */ u({
|
|
3588
3590
|
__name: "AFilterValueObjectOptionsSelect",
|
|
3589
3591
|
props: {
|
|
3590
3592
|
name: {},
|
|
3591
|
-
items: {}
|
|
3593
|
+
items: {},
|
|
3594
|
+
dataCy: { default: "filter-value" }
|
|
3592
3595
|
},
|
|
3593
3596
|
emits: ["change"],
|
|
3594
3597
|
setup(e, { emit: t }) {
|
|
3595
|
-
let i = e, a = t, o = h(
|
|
3598
|
+
let i = e, a = t, o = h(wo), s = h(To), c = h(xo), l = h(bo), u = f()?.type.__name;
|
|
3596
3599
|
if (H(o) || H(s) || H(l) || H(c)) throw Error(`[${u}] Incorrect provide/inject config.`);
|
|
3597
3600
|
if (H(c.fields[i.name]) || H(l[i.name])) throw Error(`[${u}] Incorrect filter config. Name is '${i.name}' and available options are ${Object.keys(l).join(", ")}.`);
|
|
3598
3601
|
let d = n({
|
|
@@ -3602,7 +3605,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3602
3605
|
set(e) {
|
|
3603
3606
|
l[i.name] = e, y(e), c.touched = !0, a("change");
|
|
3604
3607
|
}
|
|
3605
|
-
}), p = n(() => c.fields[i.name]), { t: m } = he(), g = n(() => p.value.titleT ? m(p.value.titleT) : void 0), { clearOne: _ } =
|
|
3608
|
+
}), p = n(() => c.fields[i.name]), { t: m } = he(), g = n(() => p.value.titleT ? m(p.value.titleT) : void 0), { clearOne: _ } = Vo(), v = () => {
|
|
3606
3609
|
_(i.name, l, c), s.value.delete(i.name);
|
|
3607
3610
|
}, y = (e) => {
|
|
3608
3611
|
if (W(e) || H(e) || G(e) && e.length === 0) {
|
|
@@ -3638,7 +3641,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3638
3641
|
label: g.value,
|
|
3639
3642
|
multiple: p.value.multiple,
|
|
3640
3643
|
clearable: !p.value.mandatory,
|
|
3641
|
-
"data-cy":
|
|
3644
|
+
"data-cy": e.dataCy,
|
|
3642
3645
|
"hide-details": "",
|
|
3643
3646
|
autocomplete: "off",
|
|
3644
3647
|
"onClick:clear": z(v, ["stop"])
|
|
@@ -3648,10 +3651,11 @@ var as = /* @__PURE__ */ u({
|
|
|
3648
3651
|
"chips",
|
|
3649
3652
|
"label",
|
|
3650
3653
|
"multiple",
|
|
3651
|
-
"clearable"
|
|
3654
|
+
"clearable",
|
|
3655
|
+
"data-cy"
|
|
3652
3656
|
]));
|
|
3653
3657
|
}
|
|
3654
|
-
}),
|
|
3658
|
+
}), ls = /*#__PURE__*/ At(/* @__PURE__ */ u({
|
|
3655
3659
|
__name: "AFilterTimeInterval",
|
|
3656
3660
|
props: {
|
|
3657
3661
|
nameFrom: {},
|
|
@@ -3662,7 +3666,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3662
3666
|
},
|
|
3663
3667
|
emits: ["change"],
|
|
3664
3668
|
setup(t, { expose: o, emit: s }) {
|
|
3665
|
-
let u = t, d = s, f = h(
|
|
3669
|
+
let u = t, d = s, f = h(wo), p = h(To), m = h(xo), g = h(bo);
|
|
3666
3670
|
if (H(f) || H(p) || H(m) || H(m.fields[u.nameFrom]) || H(m.fields[u.nameUntil]) || H(g) || H(g[u.nameFrom]) || H(g[u.nameUntil])) throw Error("Incorrect provide/inject config.");
|
|
3667
3671
|
let _ = n({
|
|
3668
3672
|
get() {
|
|
@@ -3673,10 +3677,10 @@ var as = /* @__PURE__ */ u({
|
|
|
3673
3677
|
d("change");
|
|
3674
3678
|
});
|
|
3675
3679
|
}
|
|
3676
|
-
}), { timeIntervalOptions: v, getTimeIntervalOption: y } =
|
|
3680
|
+
}), { timeIntervalOptions: v, getTimeIntervalOption: y } = Go(u.allowed), S = M(null), C = M(!1), w = M({
|
|
3677
3681
|
from: null,
|
|
3678
3682
|
until: Bi()
|
|
3679
|
-
}), T = M(!1), { v$: E } =
|
|
3683
|
+
}), T = M(!1), { v$: E } = Ko(w), D = n(() => m.fields[u.nameFrom]), { t: O } = he(), A = n(() => D.value.titleT ? O(D.value.titleT) : void 0), { clearOne: j } = Vo(), { showValidationError: ee } = Di(), P = () => {
|
|
3680
3684
|
ie(), se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
3681
3685
|
}, ne = () => {
|
|
3682
3686
|
if (E.value.$touch(), E.value.$invalid) {
|
|
@@ -3698,7 +3702,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3698
3702
|
}
|
|
3699
3703
|
let t = y(e);
|
|
3700
3704
|
if (!t && $i(e)) {
|
|
3701
|
-
let t = y(
|
|
3705
|
+
let t = y(Wo.Custom);
|
|
3702
3706
|
p.value.set(u.nameFrom, [{
|
|
3703
3707
|
title: t.title + ": " + qi(w.value.from) + " - " + qi(w.value.until),
|
|
3704
3708
|
value: e
|
|
@@ -3718,7 +3722,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3718
3722
|
return;
|
|
3719
3723
|
}
|
|
3720
3724
|
let t = y(e), n = g[u.nameUntil];
|
|
3721
|
-
!t && $i(e) && $i(n) && (S.value =
|
|
3725
|
+
!t && $i(e) && $i(n) && (S.value = Wo.Custom, w.value.from = e, w.value.until = n, T.value = !0), t && (S.value = t.value);
|
|
3722
3726
|
};
|
|
3723
3727
|
L(_, se, { immediate: !0 }), L(f, () => {
|
|
3724
3728
|
se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
@@ -3726,7 +3730,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3726
3730
|
(e !== n || t !== r) && ae(e);
|
|
3727
3731
|
}, { immediate: !0 });
|
|
3728
3732
|
let ce = (e) => {
|
|
3729
|
-
if (e.value ===
|
|
3733
|
+
if (e.value === Wo.Custom) {
|
|
3730
3734
|
oe(!0);
|
|
3731
3735
|
return;
|
|
3732
3736
|
}
|
|
@@ -3784,7 +3788,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3784
3788
|
}),
|
|
3785
3789
|
l(we, null, {
|
|
3786
3790
|
default: R(() => [l(kt, null, {
|
|
3787
|
-
default: R(() => [l(
|
|
3791
|
+
default: R(() => [l(po, {
|
|
3788
3792
|
modelValue: w.value.from,
|
|
3789
3793
|
"onUpdate:modelValue": o[2] ||= (e) => w.value.from = e,
|
|
3790
3794
|
v: I(E).dialogData.from,
|
|
@@ -3797,7 +3801,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3797
3801
|
])]),
|
|
3798
3802
|
_: 1
|
|
3799
3803
|
}), l(kt, null, {
|
|
3800
|
-
default: R(() => [l(
|
|
3804
|
+
default: R(() => [l(po, {
|
|
3801
3805
|
modelValue: w.value.until,
|
|
3802
3806
|
"onUpdate:modelValue": o[3] ||= (e) => w.value.until = e,
|
|
3803
3807
|
v: I(E).dialogData.until,
|
|
@@ -3839,14 +3843,14 @@ var as = /* @__PURE__ */ u({
|
|
|
3839
3843
|
})) : i("", !0)], 64);
|
|
3840
3844
|
};
|
|
3841
3845
|
}
|
|
3842
|
-
}), [["__scopeId", "data-v-036a9f8f"]]),
|
|
3846
|
+
}), [["__scopeId", "data-v-036a9f8f"]]), us = (e, t = "item") => t + "." + e, ds = /* @__PURE__ */ u({
|
|
3843
3847
|
__name: "AFilterEmpty",
|
|
3844
3848
|
props: { name: {} },
|
|
3845
3849
|
setup(e) {
|
|
3846
3850
|
let t = e;
|
|
3847
3851
|
return (e, n) => (k(), a("div", null, F(t.name), 1));
|
|
3848
3852
|
}
|
|
3849
|
-
}),
|
|
3853
|
+
}), fs = /* @__PURE__ */ u({
|
|
3850
3854
|
__name: "AFilterDatetimePicker",
|
|
3851
3855
|
props: {
|
|
3852
3856
|
name: {},
|
|
@@ -3854,7 +3858,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3854
3858
|
},
|
|
3855
3859
|
emits: ["change"],
|
|
3856
3860
|
setup(e, { emit: t }) {
|
|
3857
|
-
let i = e, a = t, o = h(
|
|
3861
|
+
let i = e, a = t, o = h(wo), s = h(To), c = h(xo), l = h(bo);
|
|
3858
3862
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
3859
3863
|
let u = n({
|
|
3860
3864
|
get() {
|
|
@@ -3863,7 +3867,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3863
3867
|
set(e) {
|
|
3864
3868
|
l[i.name] = e, _(), c.touched = !0, a("change");
|
|
3865
3869
|
}
|
|
3866
|
-
}), { t: d } = he(), f = n(() => c.fields[i.name]), p = n(() => f.value.titleT ? d(f.value.titleT) : void 0), { clearOne: m } =
|
|
3870
|
+
}), { t: d } = he(), f = n(() => c.fields[i.name]), p = n(() => f.value.titleT ? d(f.value.titleT) : void 0), { clearOne: m } = Vo(), g = () => {
|
|
3867
3871
|
m(i.name, l, c), s.value.delete(i.name), c.touched = !0, a("change");
|
|
3868
3872
|
}, _ = () => {
|
|
3869
3873
|
Mt(u.value) && u.value.length !== 0 && s.value.set(i.name, [{
|
|
@@ -3871,7 +3875,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3871
3875
|
value: u.value
|
|
3872
3876
|
}]);
|
|
3873
3877
|
};
|
|
3874
|
-
return (t, n) => (k(), r(
|
|
3878
|
+
return (t, n) => (k(), r(fo, b({
|
|
3875
3879
|
modelValue: u.value,
|
|
3876
3880
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
3877
3881
|
"data-cy": e.dataCy,
|
|
@@ -3886,7 +3890,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3886
3890
|
"label"
|
|
3887
3891
|
]));
|
|
3888
3892
|
}
|
|
3889
|
-
}),
|
|
3893
|
+
}), ps = /* @__PURE__ */ u({
|
|
3890
3894
|
__name: "AFilterInteger",
|
|
3891
3895
|
props: {
|
|
3892
3896
|
name: {},
|
|
@@ -3895,7 +3899,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3895
3899
|
},
|
|
3896
3900
|
emits: ["change"],
|
|
3897
3901
|
setup(e, { emit: t }) {
|
|
3898
|
-
let i = e, a = t, o = h(
|
|
3902
|
+
let i = e, a = t, o = h(wo), s = h(To), c = h(xo), l = h(bo);
|
|
3899
3903
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
3900
3904
|
let u = n({
|
|
3901
3905
|
get() {
|
|
@@ -3904,7 +3908,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3904
3908
|
set(e) {
|
|
3905
3909
|
l[i.name] = e, c.touched = !0, a("change");
|
|
3906
3910
|
}
|
|
3907
|
-
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } =
|
|
3911
|
+
}), d = n(() => c.fields[i.name]), { t: f } = he(), p = n(() => d.value.titleT ? f(d.value.titleT) : void 0), m = n(() => H(i.placeholder) ? d.value.variant === "startsWith" ? f("common.model.filterPlaceholder.startsWith") : d.value.variant === "eq" ? f("common.model.filterPlaceholder.eq") : d.value.variant === "search" ? f("common.model.filterPlaceholder.contains") : "" : i.placeholder), { clearOne: g } = Vo(), _ = () => {
|
|
3908
3912
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3909
3913
|
}, v = () => {
|
|
3910
3914
|
if (jt(u.value)) {
|
|
@@ -3944,20 +3948,20 @@ var as = /* @__PURE__ */ u({
|
|
|
3944
3948
|
"data-cy"
|
|
3945
3949
|
]));
|
|
3946
3950
|
}
|
|
3947
|
-
}),
|
|
3951
|
+
}), ms = /* @__PURE__ */ u({
|
|
3948
3952
|
__name: "FilterDetailItem",
|
|
3949
3953
|
props: { name: {} },
|
|
3950
3954
|
setup(e) {
|
|
3951
|
-
let t = e, i = h(
|
|
3955
|
+
let t = e, i = h(xo);
|
|
3952
3956
|
if (H(i) || H(i.fields[t.name])) throw Error("Incorrect provide/inject config.");
|
|
3953
3957
|
let a = n(() => i.fields[t.name]), o = n(() => {
|
|
3954
|
-
if (a.value.render.skip) return
|
|
3958
|
+
if (a.value.render.skip) return ds;
|
|
3955
3959
|
switch (a.value.type) {
|
|
3956
|
-
case "string": return
|
|
3957
|
-
case "datetime": return
|
|
3958
|
-
case "boolean": return
|
|
3959
|
-
case "integer": return
|
|
3960
|
-
default: return
|
|
3960
|
+
case "string": return ns;
|
|
3961
|
+
case "datetime": return fs;
|
|
3962
|
+
case "boolean": return ts;
|
|
3963
|
+
case "integer": return ps;
|
|
3964
|
+
default: return ds;
|
|
3961
3965
|
}
|
|
3962
3966
|
});
|
|
3963
3967
|
return (t, n) => (k(), r(P(o.value), { name: e.name }, null, 8, ["name"]));
|
|
@@ -3965,7 +3969,7 @@ var as = /* @__PURE__ */ u({
|
|
|
3965
3969
|
});
|
|
3966
3970
|
//#endregion
|
|
3967
3971
|
//#region src/labs/filters/UserAdminConfigFilter.ts
|
|
3968
|
-
function
|
|
3972
|
+
function hs(e, t = "userAdminConfig") {
|
|
3969
3973
|
let n = [
|
|
3970
3974
|
{
|
|
3971
3975
|
name: "user",
|
|
@@ -3991,7 +3995,7 @@ function ps(e, t = "userAdminConfig") {
|
|
|
3991
3995
|
name: "defaultConfig",
|
|
3992
3996
|
default: null
|
|
3993
3997
|
}
|
|
3994
|
-
], { filterConfig: r, filterData: i } =
|
|
3998
|
+
], { filterConfig: r, filterData: i } = zo(n, Ro(n), {
|
|
3995
3999
|
system: e,
|
|
3996
4000
|
subject: t
|
|
3997
4001
|
});
|
|
@@ -4002,13 +4006,13 @@ function ps(e, t = "userAdminConfig") {
|
|
|
4002
4006
|
}
|
|
4003
4007
|
//#endregion
|
|
4004
4008
|
//#region src/types/UserAdminConfig.ts
|
|
4005
|
-
var
|
|
4009
|
+
var gs = {
|
|
4006
4010
|
PinnedWidgets: "pinnedWidgets",
|
|
4007
4011
|
FilterBookmark: "filterBookmark"
|
|
4008
|
-
},
|
|
4012
|
+
}, _s = gs.PinnedWidgets, vs = {
|
|
4009
4013
|
Desktop: "desktop",
|
|
4010
4014
|
Mobile: "mobile"
|
|
4011
|
-
},
|
|
4015
|
+
}, ys = vs.Desktop, bs = 3, xs = mt("filterBookmarkStore", () => {
|
|
4012
4016
|
let e = M(/* @__PURE__ */ new Map()), t = M(!1);
|
|
4013
4017
|
function n(e, t) {
|
|
4014
4018
|
return `userAdminConfig/${t}/${e}/`;
|
|
@@ -4026,8 +4030,8 @@ var ms = {
|
|
|
4026
4030
|
let t = e.value.get(s);
|
|
4027
4031
|
if (t) return t.lastUsed = c, t.items;
|
|
4028
4032
|
}
|
|
4029
|
-
let { pagination: l } =
|
|
4030
|
-
p.configType =
|
|
4033
|
+
let { pagination: l } = $o("position", vr.Asc, { rowsPerPage: 8 }), { start: u, end: d } = Gt(i.systemResource, "_"), { filterConfig: f, filterData: p } = hs(u, d);
|
|
4034
|
+
p.configType = gs.FilterBookmark, p.layoutType = i.layoutType, p.systemResource = i.systemResource, p.user = i.user;
|
|
4031
4035
|
let m = [];
|
|
4032
4036
|
try {
|
|
4033
4037
|
let { executeFetch: t } = a();
|
|
@@ -4038,12 +4042,12 @@ var ms = {
|
|
|
4038
4042
|
} catch {
|
|
4039
4043
|
t.value = !0;
|
|
4040
4044
|
}
|
|
4041
|
-
return e.value.size >
|
|
4045
|
+
return e.value.size > bs && r(), m;
|
|
4042
4046
|
}
|
|
4043
4047
|
async function a(e, n) {
|
|
4044
4048
|
t.value = !1;
|
|
4045
|
-
let { pagination: r } =
|
|
4046
|
-
s.configType =
|
|
4049
|
+
let { pagination: r } = $o("position", vr.Asc, { rowsPerPage: 9 }), { start: i, end: a } = Gt(e.systemResource, "_"), { filterConfig: o, filterData: s } = hs(i, a);
|
|
4050
|
+
s.configType = gs.FilterBookmark, s.layoutType = e.layoutType, s.systemResource = e.systemResource, s.user = e.user;
|
|
4047
4051
|
let c = Infinity;
|
|
4048
4052
|
try {
|
|
4049
4053
|
let { executeFetch: e } = n();
|
|
@@ -4064,7 +4068,7 @@ var ms = {
|
|
|
4064
4068
|
addOne: o,
|
|
4065
4069
|
fetchBookmarksCount: a
|
|
4066
4070
|
};
|
|
4067
|
-
}),
|
|
4071
|
+
}), Ss = (e) => {
|
|
4068
4072
|
let { client: t, method: n, system: r, entity: i, urlTemplate: a, urlParams: o, options: s = {}, silentConsoleError: c = !1 } = e, l = /* @__PURE__ */ new Set();
|
|
4069
4073
|
return {
|
|
4070
4074
|
executeRequest: async (e = {}) => {
|
|
@@ -4095,17 +4099,17 @@ var ms = {
|
|
|
4095
4099
|
l.forEach((e) => e.abort()), l.clear();
|
|
4096
4100
|
}
|
|
4097
4101
|
};
|
|
4098
|
-
},
|
|
4099
|
-
function
|
|
4102
|
+
}, Cs = "/adm/v1/user-admin-config", ws = "userAdminConfig";
|
|
4103
|
+
function Ts(e, t, n = ws, r = Cs) {
|
|
4100
4104
|
return {
|
|
4101
|
-
useFetchUserAdminConfigList: () =>
|
|
4105
|
+
useFetchUserAdminConfigList: () => Zo({
|
|
4102
4106
|
client: e,
|
|
4103
4107
|
system: t,
|
|
4104
4108
|
entity: n,
|
|
4105
|
-
urlTemplate:
|
|
4109
|
+
urlTemplate: Cs
|
|
4106
4110
|
}),
|
|
4107
4111
|
fetchUserAdminConfig: (i) => {
|
|
4108
|
-
let { executeRequest: a } =
|
|
4112
|
+
let { executeRequest: a } = Ss({
|
|
4109
4113
|
client: e,
|
|
4110
4114
|
method: "GET",
|
|
4111
4115
|
system: t,
|
|
@@ -4117,7 +4121,7 @@ function Cs(e, t, n = Ss, r = xs) {
|
|
|
4117
4121
|
});
|
|
4118
4122
|
},
|
|
4119
4123
|
createUserAdminConfig: (i) => {
|
|
4120
|
-
let { executeRequest: a } =
|
|
4124
|
+
let { executeRequest: a } = Ss({
|
|
4121
4125
|
client: e,
|
|
4122
4126
|
method: "POST",
|
|
4123
4127
|
system: t,
|
|
@@ -4129,7 +4133,7 @@ function Cs(e, t, n = Ss, r = xs) {
|
|
|
4129
4133
|
});
|
|
4130
4134
|
},
|
|
4131
4135
|
updateUserAdminConfig: (i, a) => {
|
|
4132
|
-
let { executeRequest: o } =
|
|
4136
|
+
let { executeRequest: o } = Ss({
|
|
4133
4137
|
client: e,
|
|
4134
4138
|
method: "PUT",
|
|
4135
4139
|
system: t,
|
|
@@ -4142,7 +4146,7 @@ function Cs(e, t, n = Ss, r = xs) {
|
|
|
4142
4146
|
});
|
|
4143
4147
|
},
|
|
4144
4148
|
deleteUserAdminConfig: (i) => {
|
|
4145
|
-
let { executeRequest: a } =
|
|
4149
|
+
let { executeRequest: a } = Ss({
|
|
4146
4150
|
client: e,
|
|
4147
4151
|
method: "DELETE",
|
|
4148
4152
|
system: t,
|
|
@@ -4154,7 +4158,7 @@ function Cs(e, t, n = Ss, r = xs) {
|
|
|
4154
4158
|
});
|
|
4155
4159
|
},
|
|
4156
4160
|
updateUserAdminConfigPositions: (i) => {
|
|
4157
|
-
let { executeRequest: a } =
|
|
4161
|
+
let { executeRequest: a } = Ss({
|
|
4158
4162
|
client: e,
|
|
4159
4163
|
method: "PATCH",
|
|
4160
4164
|
system: t,
|
|
@@ -4169,7 +4173,7 @@ function Cs(e, t, n = Ss, r = xs) {
|
|
|
4169
4173
|
}
|
|
4170
4174
|
//#endregion
|
|
4171
4175
|
//#region src/labs/filters/FilterBookmarks.vue?vue&type=script&setup=true&lang.ts
|
|
4172
|
-
var
|
|
4176
|
+
var Es = { key: 0 }, Ds = 32, Os = /* @__PURE__ */ u({
|
|
4173
4177
|
__name: "FilterBookmarks",
|
|
4174
4178
|
props: /*@__PURE__*/ y({
|
|
4175
4179
|
client: {},
|
|
@@ -4185,15 +4189,15 @@ var ws = { key: 0 }, Ts = 32, Es = /* @__PURE__ */ u({
|
|
|
4185
4189
|
}),
|
|
4186
4190
|
emits: /*@__PURE__*/ y(["submit"], ["update:datatableHiddenColumns"]),
|
|
4187
4191
|
setup(t, { emit: o }) {
|
|
4188
|
-
let s = t, u = o, d = se(t, "datatableHiddenColumns"), f = h(
|
|
4192
|
+
let s = t, u = o, d = se(t, "datatableHiddenColumns"), f = h(xo), p = h(bo), m = h(Eo), g = h(To);
|
|
4189
4193
|
if (H(m) || H(f) || H(p) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
4190
|
-
let _ = M(!1), v = le("toolbar"), y = M(300), S = M(1e3), C =
|
|
4194
|
+
let _ = M(!1), v = le("toolbar"), y = M(300), S = M(1e3), C = xs(), { useFetchUserAdminConfigList: w } = Ts(s.client, s.system), T = s.system + "_" + s.subject, D = async (e = !1) => {
|
|
4191
4195
|
_.value = !0, await C.getBookmarks({
|
|
4192
4196
|
user: s.userId,
|
|
4193
|
-
layoutType:
|
|
4197
|
+
layoutType: vs.Desktop,
|
|
4194
4198
|
systemResource: T
|
|
4195
4199
|
}, w, e), _.value = !1;
|
|
4196
|
-
}, { deserializeFilters: O } =
|
|
4200
|
+
}, { deserializeFilters: O } = Uo(p, f), A = (e) => {
|
|
4197
4201
|
let t = e.data;
|
|
4198
4202
|
U(t.datatableHiddenColumns) && U(d.value) && (d.value = t.datatableHiddenColumns), U(t.sortBy) && (m.value = {
|
|
4199
4203
|
...m.value,
|
|
@@ -4229,7 +4233,7 @@ var ws = { key: 0 }, Ts = 32, Es = /* @__PURE__ */ u({
|
|
|
4229
4233
|
let n = 0, r = 0;
|
|
4230
4234
|
for (let i = 0; i < t.children.length; i++) {
|
|
4231
4235
|
let a = t.children[i].offsetWidth;
|
|
4232
|
-
if (n += a, n >= e -
|
|
4236
|
+
if (n += a, n >= e - Ds) break;
|
|
4233
4237
|
r++;
|
|
4234
4238
|
}
|
|
4235
4239
|
S.value = r;
|
|
@@ -4240,7 +4244,7 @@ var ws = { key: 0 }, Ts = 32, Es = /* @__PURE__ */ u({
|
|
|
4240
4244
|
e !== t && j(e);
|
|
4241
4245
|
}, { throttle: 1e3 });
|
|
4242
4246
|
let N = n(() => {
|
|
4243
|
-
let e = C.generateKey(
|
|
4247
|
+
let e = C.generateKey(vs.Desktop, T);
|
|
4244
4248
|
return C.bookmarks.get(e)?.items ?? [];
|
|
4245
4249
|
}), te = n(() => {
|
|
4246
4250
|
let e = S.value;
|
|
@@ -4259,7 +4263,7 @@ var ws = { key: 0 }, Ts = 32, Es = /* @__PURE__ */ u({
|
|
|
4259
4263
|
ref: "toolbar",
|
|
4260
4264
|
key: N.value.length,
|
|
4261
4265
|
class: "w-100 d-flex overflow-hidden align-center mb-1"
|
|
4262
|
-
}, [_.value ? (k(), a("div",
|
|
4266
|
+
}, [_.value ? (k(), a("div", Es)) : (k(), a(e, { key: 1 }, [(k(!0), a(e, null, ee(te.value.visible, (e) => (k(), a("div", {
|
|
4263
4267
|
key: e.id,
|
|
4264
4268
|
class: "white-space-nowrap"
|
|
4265
4269
|
}, [l(V, {
|
|
@@ -4300,24 +4304,24 @@ var ws = { key: 0 }, Ts = 32, Es = /* @__PURE__ */ u({
|
|
|
4300
4304
|
});
|
|
4301
4305
|
//#endregion
|
|
4302
4306
|
//#region node_modules/sortablejs/modular/sortable.esm.js
|
|
4303
|
-
function
|
|
4304
|
-
return (t =
|
|
4307
|
+
function ks(e, t, n) {
|
|
4308
|
+
return (t = Is(t)) in e ? Object.defineProperty(e, t, {
|
|
4305
4309
|
value: n,
|
|
4306
4310
|
enumerable: !0,
|
|
4307
4311
|
configurable: !0,
|
|
4308
4312
|
writable: !0
|
|
4309
4313
|
}) : e[t] = n, e;
|
|
4310
4314
|
}
|
|
4311
|
-
function
|
|
4312
|
-
return
|
|
4315
|
+
function As() {
|
|
4316
|
+
return As = Object.assign ? Object.assign.bind() : function(e) {
|
|
4313
4317
|
for (var t = 1; t < arguments.length; t++) {
|
|
4314
4318
|
var n = arguments[t];
|
|
4315
4319
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4316
4320
|
}
|
|
4317
4321
|
return e;
|
|
4318
|
-
},
|
|
4322
|
+
}, As.apply(null, arguments);
|
|
4319
4323
|
}
|
|
4320
|
-
function
|
|
4324
|
+
function js(e, t) {
|
|
4321
4325
|
var n = Object.keys(e);
|
|
4322
4326
|
if (Object.getOwnPropertySymbols) {
|
|
4323
4327
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -4327,27 +4331,27 @@ function ks(e, t) {
|
|
|
4327
4331
|
}
|
|
4328
4332
|
return n;
|
|
4329
4333
|
}
|
|
4330
|
-
function
|
|
4334
|
+
function Ms(e) {
|
|
4331
4335
|
for (var t = 1; t < arguments.length; t++) {
|
|
4332
4336
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
4333
|
-
t % 2 ?
|
|
4334
|
-
|
|
4335
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4337
|
+
t % 2 ? js(Object(n), !0).forEach(function(t) {
|
|
4338
|
+
ks(e, t, n[t]);
|
|
4339
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : js(Object(n)).forEach(function(t) {
|
|
4336
4340
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
4337
4341
|
});
|
|
4338
4342
|
}
|
|
4339
4343
|
return e;
|
|
4340
4344
|
}
|
|
4341
|
-
function
|
|
4345
|
+
function Ns(e, t) {
|
|
4342
4346
|
if (e == null) return {};
|
|
4343
|
-
var n, r, i =
|
|
4347
|
+
var n, r, i = Ps(e, t);
|
|
4344
4348
|
if (Object.getOwnPropertySymbols) {
|
|
4345
4349
|
var a = Object.getOwnPropertySymbols(e);
|
|
4346
4350
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
4347
4351
|
}
|
|
4348
4352
|
return i;
|
|
4349
4353
|
}
|
|
4350
|
-
function
|
|
4354
|
+
function Ps(e, t) {
|
|
4351
4355
|
if (e == null) return {};
|
|
4352
4356
|
var n = {};
|
|
4353
4357
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -4356,7 +4360,7 @@ function Ms(e, t) {
|
|
|
4356
4360
|
}
|
|
4357
4361
|
return n;
|
|
4358
4362
|
}
|
|
4359
|
-
function
|
|
4363
|
+
function Fs(e, t) {
|
|
4360
4364
|
if (typeof e != "object" || !e) return e;
|
|
4361
4365
|
var n = e[Symbol.toPrimitive];
|
|
4362
4366
|
if (n !== void 0) {
|
|
@@ -4366,33 +4370,33 @@ function Ns(e, t) {
|
|
|
4366
4370
|
}
|
|
4367
4371
|
return (t === "string" ? String : Number)(e);
|
|
4368
4372
|
}
|
|
4369
|
-
function
|
|
4370
|
-
var t =
|
|
4373
|
+
function Is(e) {
|
|
4374
|
+
var t = Fs(e, "string");
|
|
4371
4375
|
return typeof t == "symbol" ? t : t + "";
|
|
4372
4376
|
}
|
|
4373
|
-
function
|
|
4377
|
+
function Ls(e) {
|
|
4374
4378
|
"@babel/helpers - typeof";
|
|
4375
|
-
return
|
|
4379
|
+
return Ls = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4376
4380
|
return typeof e;
|
|
4377
4381
|
} : function(e) {
|
|
4378
4382
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4379
|
-
},
|
|
4383
|
+
}, Ls(e);
|
|
4380
4384
|
}
|
|
4381
|
-
var
|
|
4382
|
-
function
|
|
4385
|
+
var Rs = "1.15.7";
|
|
4386
|
+
function zs(e) {
|
|
4383
4387
|
if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
|
|
4384
4388
|
}
|
|
4385
|
-
var
|
|
4389
|
+
var Bs = zs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Vs = zs(/Edge/i), Hs = zs(/firefox/i), Us = zs(/safari/i) && !zs(/chrome/i) && !zs(/android/i), Ws = zs(/iP(ad|od|hone)/i), Gs = zs(/chrome/i) && zs(/android/i), Ks = {
|
|
4386
4390
|
capture: !1,
|
|
4387
4391
|
passive: !1
|
|
4388
4392
|
};
|
|
4389
4393
|
function J(e, t, n) {
|
|
4390
|
-
e.addEventListener(t, n, !
|
|
4394
|
+
e.addEventListener(t, n, !Bs && Ks);
|
|
4391
4395
|
}
|
|
4392
4396
|
function Y(e, t, n) {
|
|
4393
|
-
e.removeEventListener(t, n, !
|
|
4397
|
+
e.removeEventListener(t, n, !Bs && Ks);
|
|
4394
4398
|
}
|
|
4395
|
-
function
|
|
4399
|
+
function qs(e, t) {
|
|
4396
4400
|
if (t) {
|
|
4397
4401
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
4398
4402
|
if (e.matches) return e.matches(t);
|
|
@@ -4404,22 +4408,22 @@ function Gs(e, t) {
|
|
|
4404
4408
|
return !1;
|
|
4405
4409
|
}
|
|
4406
4410
|
}
|
|
4407
|
-
function
|
|
4411
|
+
function Js(e) {
|
|
4408
4412
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
4409
4413
|
}
|
|
4410
|
-
function
|
|
4414
|
+
function Ys(e, t, n, r) {
|
|
4411
4415
|
if (e) {
|
|
4412
4416
|
n ||= document;
|
|
4413
4417
|
do {
|
|
4414
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
4418
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && qs(e, t) : qs(e, t)) || r && e === n) return e;
|
|
4415
4419
|
if (e === n) break;
|
|
4416
|
-
} while (e =
|
|
4420
|
+
} while (e = Js(e));
|
|
4417
4421
|
}
|
|
4418
4422
|
return null;
|
|
4419
4423
|
}
|
|
4420
|
-
var
|
|
4421
|
-
function
|
|
4422
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
4424
|
+
var Xs = /\s+/g;
|
|
4425
|
+
function Zs(e, t, n) {
|
|
4426
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(Xs, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(Xs, " "));
|
|
4423
4427
|
}
|
|
4424
4428
|
function X(e, t, n) {
|
|
4425
4429
|
var r = e && e.style;
|
|
@@ -4428,7 +4432,7 @@ function X(e, t, n) {
|
|
|
4428
4432
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
4429
4433
|
}
|
|
4430
4434
|
}
|
|
4431
|
-
function
|
|
4435
|
+
function Qs(e, t) {
|
|
4432
4436
|
var n = "";
|
|
4433
4437
|
if (typeof e == "string") n = e;
|
|
4434
4438
|
else do {
|
|
@@ -4438,7 +4442,7 @@ function Xs(e, t) {
|
|
|
4438
4442
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
4439
4443
|
return i && new i(n);
|
|
4440
4444
|
}
|
|
4441
|
-
function
|
|
4445
|
+
function $s(e, t, n) {
|
|
4442
4446
|
if (e) {
|
|
4443
4447
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
4444
4448
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -4446,13 +4450,13 @@ function Zs(e, t, n) {
|
|
|
4446
4450
|
}
|
|
4447
4451
|
return [];
|
|
4448
4452
|
}
|
|
4449
|
-
function
|
|
4453
|
+
function ec() {
|
|
4450
4454
|
return document.scrollingElement || document.documentElement;
|
|
4451
4455
|
}
|
|
4452
|
-
function
|
|
4456
|
+
function tc(e, t, n, r, i) {
|
|
4453
4457
|
if (e.getBoundingClientRect || e === window) {
|
|
4454
4458
|
var a, o, s, c, l, u, d;
|
|
4455
|
-
if (e !== window && e.parentNode && e !==
|
|
4459
|
+
if (e !== window && e.parentNode && e !== ec() ? (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, !Bs)) do
|
|
4456
4460
|
if (i && i.getBoundingClientRect && (X(i, "transform") !== "none" || n && X(i, "position") !== "static")) {
|
|
4457
4461
|
var f = i.getBoundingClientRect();
|
|
4458
4462
|
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;
|
|
@@ -4460,7 +4464,7 @@ function $s(e, t, n, r, i) {
|
|
|
4460
4464
|
}
|
|
4461
4465
|
while (i = i.parentNode);
|
|
4462
4466
|
if (r && e !== window) {
|
|
4463
|
-
var p =
|
|
4467
|
+
var p = Qs(i || e), m = p && p.a, h = p && p.d;
|
|
4464
4468
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
4465
4469
|
}
|
|
4466
4470
|
return {
|
|
@@ -4473,18 +4477,18 @@ function $s(e, t, n, r, i) {
|
|
|
4473
4477
|
};
|
|
4474
4478
|
}
|
|
4475
4479
|
}
|
|
4476
|
-
function
|
|
4477
|
-
for (var r =
|
|
4478
|
-
var a =
|
|
4480
|
+
function nc(e, t, n) {
|
|
4481
|
+
for (var r = cc(e, !0), i = tc(e)[t]; r;) {
|
|
4482
|
+
var a = tc(r)[n], o = void 0;
|
|
4479
4483
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
4480
|
-
if (r ===
|
|
4481
|
-
r =
|
|
4484
|
+
if (r === ec()) break;
|
|
4485
|
+
r = cc(r, !1);
|
|
4482
4486
|
}
|
|
4483
4487
|
return !1;
|
|
4484
4488
|
}
|
|
4485
|
-
function
|
|
4489
|
+
function rc(e, t, n, r) {
|
|
4486
4490
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
4487
|
-
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) &&
|
|
4491
|
+
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) && Ys(o[a], n.draggable, e, !1)) {
|
|
4488
4492
|
if (i === t) return o[a];
|
|
4489
4493
|
i++;
|
|
4490
4494
|
}
|
|
@@ -4492,84 +4496,84 @@ function tc(e, t, n, r) {
|
|
|
4492
4496
|
}
|
|
4493
4497
|
return null;
|
|
4494
4498
|
}
|
|
4495
|
-
function
|
|
4496
|
-
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !
|
|
4499
|
+
function ic(e, t) {
|
|
4500
|
+
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !qs(n, t));) n = n.previousElementSibling;
|
|
4497
4501
|
return n || null;
|
|
4498
4502
|
}
|
|
4499
|
-
function
|
|
4503
|
+
function ac(e, t) {
|
|
4500
4504
|
var n = 0;
|
|
4501
4505
|
if (!e || !e.parentNode) return -1;
|
|
4502
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t ||
|
|
4506
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t || qs(e, t)) && n++;
|
|
4503
4507
|
return n;
|
|
4504
4508
|
}
|
|
4505
|
-
function
|
|
4506
|
-
var t = 0, n = 0, r =
|
|
4509
|
+
function oc(e) {
|
|
4510
|
+
var t = 0, n = 0, r = ec();
|
|
4507
4511
|
if (e) do {
|
|
4508
|
-
var i =
|
|
4512
|
+
var i = Qs(e), a = i.a, o = i.d;
|
|
4509
4513
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
4510
4514
|
} while (e !== r && (e = e.parentNode));
|
|
4511
4515
|
return [t, n];
|
|
4512
4516
|
}
|
|
4513
|
-
function
|
|
4517
|
+
function sc(e, t) {
|
|
4514
4518
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
4515
4519
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
4516
4520
|
}
|
|
4517
4521
|
return -1;
|
|
4518
4522
|
}
|
|
4519
|
-
function
|
|
4520
|
-
if (!e || !e.getBoundingClientRect) return
|
|
4523
|
+
function cc(e, t) {
|
|
4524
|
+
if (!e || !e.getBoundingClientRect) return ec();
|
|
4521
4525
|
var n = e, r = !1;
|
|
4522
4526
|
do
|
|
4523
4527
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
4524
4528
|
var i = X(n);
|
|
4525
4529
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
4526
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
4530
|
+
if (!n.getBoundingClientRect || n === document.body) return ec();
|
|
4527
4531
|
if (r || t) return n;
|
|
4528
4532
|
r = !0;
|
|
4529
4533
|
}
|
|
4530
4534
|
}
|
|
4531
4535
|
while (n = n.parentNode);
|
|
4532
|
-
return
|
|
4536
|
+
return ec();
|
|
4533
4537
|
}
|
|
4534
|
-
function
|
|
4538
|
+
function lc(e, t) {
|
|
4535
4539
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
4536
4540
|
return e;
|
|
4537
4541
|
}
|
|
4538
|
-
function
|
|
4542
|
+
function uc(e, t) {
|
|
4539
4543
|
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);
|
|
4540
4544
|
}
|
|
4541
|
-
var
|
|
4542
|
-
function
|
|
4545
|
+
var dc;
|
|
4546
|
+
function fc(e, t) {
|
|
4543
4547
|
return function() {
|
|
4544
|
-
if (!
|
|
4548
|
+
if (!dc) {
|
|
4545
4549
|
var n = arguments, r = this;
|
|
4546
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
4547
|
-
|
|
4550
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), dc = setTimeout(function() {
|
|
4551
|
+
dc = void 0;
|
|
4548
4552
|
}, t);
|
|
4549
4553
|
}
|
|
4550
4554
|
};
|
|
4551
4555
|
}
|
|
4552
|
-
function
|
|
4553
|
-
clearTimeout(
|
|
4556
|
+
function pc() {
|
|
4557
|
+
clearTimeout(dc), dc = void 0;
|
|
4554
4558
|
}
|
|
4555
|
-
function
|
|
4559
|
+
function mc(e, t, n) {
|
|
4556
4560
|
e.scrollLeft += t, e.scrollTop += n;
|
|
4557
4561
|
}
|
|
4558
|
-
function
|
|
4562
|
+
function hc(e) {
|
|
4559
4563
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
4560
4564
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
4561
4565
|
}
|
|
4562
|
-
function
|
|
4566
|
+
function gc(e, t, n) {
|
|
4563
4567
|
var r = {};
|
|
4564
4568
|
return Array.from(e.children).forEach(function(i) {
|
|
4565
|
-
if (
|
|
4566
|
-
var a =
|
|
4569
|
+
if (Ys(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
4570
|
+
var a = tc(i);
|
|
4567
4571
|
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);
|
|
4568
4572
|
}
|
|
4569
4573
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
4570
4574
|
}
|
|
4571
|
-
var
|
|
4572
|
-
function
|
|
4575
|
+
var _c = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
4576
|
+
function vc() {
|
|
4573
4577
|
var e = [], t;
|
|
4574
4578
|
return {
|
|
4575
4579
|
captureAnimationState: function() {
|
|
@@ -4577,11 +4581,11 @@ function gc() {
|
|
|
4577
4581
|
if (X(t, "display") !== "none" && t !== $.ghost) {
|
|
4578
4582
|
e.push({
|
|
4579
4583
|
target: t,
|
|
4580
|
-
rect:
|
|
4584
|
+
rect: tc(t)
|
|
4581
4585
|
});
|
|
4582
|
-
var n =
|
|
4586
|
+
var n = Ms({}, e[e.length - 1].rect);
|
|
4583
4587
|
if (t.thisAnimationDuration) {
|
|
4584
|
-
var r =
|
|
4588
|
+
var r = Qs(t, !0);
|
|
4585
4589
|
r && (n.top -= r.f, n.left -= r.e);
|
|
4586
4590
|
}
|
|
4587
4591
|
t.fromRect = n;
|
|
@@ -4592,7 +4596,7 @@ function gc() {
|
|
|
4592
4596
|
e.push(t);
|
|
4593
4597
|
},
|
|
4594
4598
|
removeAnimationState: function(t) {
|
|
4595
|
-
e.splice(
|
|
4599
|
+
e.splice(sc(e, { target: t }), 1);
|
|
4596
4600
|
},
|
|
4597
4601
|
animateAll: function(n) {
|
|
4598
4602
|
var r = this;
|
|
@@ -4602,8 +4606,8 @@ function gc() {
|
|
|
4602
4606
|
}
|
|
4603
4607
|
var i = !1, a = 0;
|
|
4604
4608
|
e.forEach(function(e) {
|
|
4605
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
4606
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
4609
|
+
var t = 0, n = e.target, o = n.fromRect, s = tc(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = Qs(n, !0);
|
|
4610
|
+
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration && uc(c, s) && !uc(o, s) && (u.top - s.top) / (u.left - s.left) === (o.top - s.top) / (o.left - s.left) && (t = bc(u, c, l, r.options)), uc(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() {
|
|
4607
4611
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
4608
4612
|
}, t), n.thisAnimationDuration = t);
|
|
4609
4613
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -4613,26 +4617,26 @@ function gc() {
|
|
|
4613
4617
|
animate: function(e, t, n, r) {
|
|
4614
4618
|
if (r) {
|
|
4615
4619
|
X(e, "transition", ""), X(e, "transform", "");
|
|
4616
|
-
var i =
|
|
4617
|
-
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
4620
|
+
var i = Qs(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
4621
|
+
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = yc(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() {
|
|
4618
4622
|
X(e, "transition", ""), X(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
4619
4623
|
}, r);
|
|
4620
4624
|
}
|
|
4621
4625
|
}
|
|
4622
4626
|
};
|
|
4623
4627
|
}
|
|
4624
|
-
function
|
|
4628
|
+
function yc(e) {
|
|
4625
4629
|
return e.offsetWidth;
|
|
4626
4630
|
}
|
|
4627
|
-
function
|
|
4631
|
+
function bc(e, t, n, r) {
|
|
4628
4632
|
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;
|
|
4629
4633
|
}
|
|
4630
|
-
var
|
|
4634
|
+
var xc = [], Sc = { initializeByDefault: !0 }, Cc = {
|
|
4631
4635
|
mount: function(e) {
|
|
4632
|
-
for (var t in
|
|
4633
|
-
|
|
4636
|
+
for (var t in Sc) Sc.hasOwnProperty(t) && !(t in e) && (e[t] = Sc[t]);
|
|
4637
|
+
xc.forEach(function(t) {
|
|
4634
4638
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
4635
|
-
}),
|
|
4639
|
+
}), xc.push(e);
|
|
4636
4640
|
},
|
|
4637
4641
|
pluginEvent: function(e, t, n) {
|
|
4638
4642
|
var r = this;
|
|
@@ -4640,16 +4644,16 @@ var yc = [], bc = { initializeByDefault: !0 }, xc = {
|
|
|
4640
4644
|
r.eventCanceled = !0;
|
|
4641
4645
|
};
|
|
4642
4646
|
var i = e + "Global";
|
|
4643
|
-
|
|
4644
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
4647
|
+
xc.forEach(function(r) {
|
|
4648
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](Ms({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](Ms({ sortable: t }, n)));
|
|
4645
4649
|
});
|
|
4646
4650
|
},
|
|
4647
4651
|
initializePlugins: function(e, t, n, r) {
|
|
4648
|
-
for (var i in
|
|
4652
|
+
for (var i in xc.forEach(function(r) {
|
|
4649
4653
|
var i = r.pluginName;
|
|
4650
4654
|
if (e.options[i] || r.initializeByDefault) {
|
|
4651
4655
|
var a = new r(e, t, e.options);
|
|
4652
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
4656
|
+
a.sortable = e, a.options = e.options, e[i] = a, As(n, a.defaults);
|
|
4653
4657
|
}
|
|
4654
4658
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
4655
4659
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -4658,59 +4662,59 @@ var yc = [], bc = { initializeByDefault: !0 }, xc = {
|
|
|
4658
4662
|
},
|
|
4659
4663
|
getEventProperties: function(e, t) {
|
|
4660
4664
|
var n = {};
|
|
4661
|
-
return
|
|
4662
|
-
typeof r.eventProperties == "function" &&
|
|
4665
|
+
return xc.forEach(function(r) {
|
|
4666
|
+
typeof r.eventProperties == "function" && As(n, r.eventProperties.call(t[r.pluginName], e));
|
|
4663
4667
|
}), n;
|
|
4664
4668
|
},
|
|
4665
4669
|
modifyOption: function(e, t, n) {
|
|
4666
4670
|
var r;
|
|
4667
|
-
return
|
|
4671
|
+
return xc.forEach(function(i) {
|
|
4668
4672
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
4669
4673
|
}), r;
|
|
4670
4674
|
}
|
|
4671
4675
|
};
|
|
4672
|
-
function
|
|
4676
|
+
function wc(e) {
|
|
4673
4677
|
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;
|
|
4674
|
-
if (t ||= n && n[
|
|
4678
|
+
if (t ||= n && n[_c], t) {
|
|
4675
4679
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
4676
|
-
window.CustomEvent && !
|
|
4680
|
+
window.CustomEvent && !Bs && !Vs ? h = new CustomEvent(r, {
|
|
4677
4681
|
bubbles: !0,
|
|
4678
4682
|
cancelable: !0
|
|
4679
4683
|
}) : (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;
|
|
4680
|
-
var v =
|
|
4684
|
+
var v = Ms(Ms({}, m), Cc.getEventProperties(r, t));
|
|
4681
4685
|
for (var y in v) h[y] = v[y];
|
|
4682
4686
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
4683
4687
|
}
|
|
4684
4688
|
}
|
|
4685
|
-
var
|
|
4686
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
4687
|
-
|
|
4689
|
+
var Tc = ["evt"], Ec = function(e, t) {
|
|
4690
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = Ns(n, Tc);
|
|
4691
|
+
Cc.pluginEvent.bind($)(e, t, Ms({
|
|
4688
4692
|
dragEl: Z,
|
|
4689
|
-
parentEl:
|
|
4693
|
+
parentEl: Oc,
|
|
4690
4694
|
ghostEl: Q,
|
|
4691
|
-
rootEl:
|
|
4692
|
-
nextEl:
|
|
4693
|
-
lastDownEl:
|
|
4694
|
-
cloneEl:
|
|
4695
|
-
cloneHidden:
|
|
4696
|
-
dragStarted:
|
|
4697
|
-
putSortable:
|
|
4695
|
+
rootEl: kc,
|
|
4696
|
+
nextEl: Ac,
|
|
4697
|
+
lastDownEl: jc,
|
|
4698
|
+
cloneEl: Mc,
|
|
4699
|
+
cloneHidden: Nc,
|
|
4700
|
+
dragStarted: Yc,
|
|
4701
|
+
putSortable: zc,
|
|
4698
4702
|
activeSortable: $.active,
|
|
4699
4703
|
originalEvent: r,
|
|
4700
|
-
oldIndex:
|
|
4701
|
-
oldDraggableIndex:
|
|
4702
|
-
newIndex:
|
|
4703
|
-
newDraggableIndex:
|
|
4704
|
-
hideGhostForTarget:
|
|
4705
|
-
unhideGhostForTarget:
|
|
4704
|
+
oldIndex: Pc,
|
|
4705
|
+
oldDraggableIndex: Ic,
|
|
4706
|
+
newIndex: Fc,
|
|
4707
|
+
newDraggableIndex: Lc,
|
|
4708
|
+
hideGhostForTarget: ml,
|
|
4709
|
+
unhideGhostForTarget: hl,
|
|
4706
4710
|
cloneNowHidden: function() {
|
|
4707
|
-
|
|
4711
|
+
Nc = !0;
|
|
4708
4712
|
},
|
|
4709
4713
|
cloneNowShown: function() {
|
|
4710
|
-
|
|
4714
|
+
Nc = !1;
|
|
4711
4715
|
},
|
|
4712
4716
|
dispatchSortableEvent: function(e) {
|
|
4713
|
-
|
|
4717
|
+
Dc({
|
|
4714
4718
|
sortable: t,
|
|
4715
4719
|
name: e,
|
|
4716
4720
|
originalEvent: r
|
|
@@ -4718,46 +4722,46 @@ var Cc = ["evt"], wc = function(e, t) {
|
|
|
4718
4722
|
}
|
|
4719
4723
|
}, i));
|
|
4720
4724
|
};
|
|
4721
|
-
function
|
|
4722
|
-
|
|
4723
|
-
putSortable:
|
|
4724
|
-
cloneEl:
|
|
4725
|
+
function Dc(e) {
|
|
4726
|
+
wc(Ms({
|
|
4727
|
+
putSortable: zc,
|
|
4728
|
+
cloneEl: Mc,
|
|
4725
4729
|
targetEl: Z,
|
|
4726
|
-
rootEl:
|
|
4727
|
-
oldIndex:
|
|
4728
|
-
oldDraggableIndex:
|
|
4729
|
-
newIndex:
|
|
4730
|
-
newDraggableIndex:
|
|
4730
|
+
rootEl: kc,
|
|
4731
|
+
oldIndex: Pc,
|
|
4732
|
+
oldDraggableIndex: Ic,
|
|
4733
|
+
newIndex: Fc,
|
|
4734
|
+
newDraggableIndex: Lc
|
|
4731
4735
|
}, e));
|
|
4732
4736
|
}
|
|
4733
|
-
var Z,
|
|
4734
|
-
if (
|
|
4735
|
-
if (
|
|
4737
|
+
var Z, Oc, Q, kc, Ac, jc, Mc, Nc, Pc, Fc, Ic, Lc, Rc, zc, Bc = !1, Vc = !1, Hc = [], Uc, Wc, Gc, Kc, qc, Jc, Yc, Xc, Zc, Qc = !1, $c = !1, el, tl, nl = [], rl = !1, il = [], al = typeof document < "u", ol = Ws, sl = Vs || Bs ? "cssFloat" : "float", cl = al && !Gs && !Ws && "draggable" in document.createElement("div"), ll = function() {
|
|
4738
|
+
if (al) {
|
|
4739
|
+
if (Bs) return !1;
|
|
4736
4740
|
var e = document.createElement("x");
|
|
4737
4741
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4738
4742
|
}
|
|
4739
|
-
}(),
|
|
4740
|
-
var n = X(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
4743
|
+
}(), ul = function(e, t) {
|
|
4744
|
+
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) + tc(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + tc(a).width;
|
|
4741
4745
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
4742
4746
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
4743
4747
|
if (i && o.float && o.float !== "none") {
|
|
4744
4748
|
var u = o.float === "left" ? "left" : "right";
|
|
4745
4749
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
4746
4750
|
}
|
|
4747
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
4748
|
-
},
|
|
4751
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[sl] === "none" || a && n[sl] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
4752
|
+
}, dl = function(e, t, n) {
|
|
4749
4753
|
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;
|
|
4750
4754
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
4751
|
-
},
|
|
4755
|
+
}, fl = function(e, t) {
|
|
4752
4756
|
var n;
|
|
4753
|
-
return
|
|
4754
|
-
var i = r[
|
|
4755
|
-
if (i && !
|
|
4756
|
-
var a =
|
|
4757
|
+
return Hc.some(function(r) {
|
|
4758
|
+
var i = r[_c].options.emptyInsertThreshold;
|
|
4759
|
+
if (i && !ic(r)) {
|
|
4760
|
+
var a = tc(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
4757
4761
|
if (o && s) return n = r;
|
|
4758
4762
|
}
|
|
4759
4763
|
}), n;
|
|
4760
|
-
},
|
|
4764
|
+
}, pl = function(e) {
|
|
4761
4765
|
function t(e, n) {
|
|
4762
4766
|
return function(r, i, a, o) {
|
|
4763
4767
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -4770,31 +4774,31 @@ var Z, Ec, Q, Dc, Oc, kc, Ac, jc, Mc, Nc, Pc, Fc, Ic, Lc, Rc = !1, zc = !1, Bc =
|
|
|
4770
4774
|
};
|
|
4771
4775
|
}
|
|
4772
4776
|
var n = {}, r = e.group;
|
|
4773
|
-
(!r ||
|
|
4774
|
-
},
|
|
4775
|
-
!
|
|
4776
|
-
},
|
|
4777
|
-
!
|
|
4777
|
+
(!r || Ls(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;
|
|
4778
|
+
}, ml = function() {
|
|
4779
|
+
!ll && Q && X(Q, "display", "none");
|
|
4780
|
+
}, hl = function() {
|
|
4781
|
+
!ll && Q && X(Q, "display", "");
|
|
4778
4782
|
};
|
|
4779
|
-
|
|
4780
|
-
if (
|
|
4783
|
+
al && !Gs && document.addEventListener("click", function(e) {
|
|
4784
|
+
if (Vc) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Vc = !1, !1;
|
|
4781
4785
|
}, !0);
|
|
4782
|
-
var
|
|
4786
|
+
var gl = function(e) {
|
|
4783
4787
|
if (Z) {
|
|
4784
4788
|
e = e.touches ? e.touches[0] : e;
|
|
4785
|
-
var t =
|
|
4789
|
+
var t = fl(e.clientX, e.clientY);
|
|
4786
4790
|
if (t) {
|
|
4787
4791
|
var n = {};
|
|
4788
4792
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
4789
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
4793
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[_c]._onDragOver(n);
|
|
4790
4794
|
}
|
|
4791
4795
|
}
|
|
4792
|
-
},
|
|
4793
|
-
Z && Z.parentNode[
|
|
4796
|
+
}, _l = function(e) {
|
|
4797
|
+
Z && Z.parentNode[_c]._isOutsideThisEl(e.target);
|
|
4794
4798
|
};
|
|
4795
4799
|
function $(e, t) {
|
|
4796
4800
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
4797
|
-
this.el = e, this.options = t =
|
|
4801
|
+
this.el = e, this.options = t = As({}, t), e[_c] = this;
|
|
4798
4802
|
var n = {
|
|
4799
4803
|
group: null,
|
|
4800
4804
|
sort: !0,
|
|
@@ -4807,7 +4811,7 @@ function $(e, t) {
|
|
|
4807
4811
|
invertedSwapThreshold: null,
|
|
4808
4812
|
removeCloneOnHide: !0,
|
|
4809
4813
|
direction: function() {
|
|
4810
|
-
return
|
|
4814
|
+
return ul(e, this.options);
|
|
4811
4815
|
},
|
|
4812
4816
|
ghostClass: "sortable-ghost",
|
|
4813
4817
|
chosenClass: "sortable-chosen",
|
|
@@ -4834,17 +4838,17 @@ function $(e, t) {
|
|
|
4834
4838
|
x: 0,
|
|
4835
4839
|
y: 0
|
|
4836
4840
|
},
|
|
4837
|
-
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
4841
|
+
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!Us || Ws),
|
|
4838
4842
|
emptyInsertThreshold: 5
|
|
4839
4843
|
};
|
|
4840
|
-
for (var r in
|
|
4841
|
-
for (var i in
|
|
4842
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
4844
|
+
for (var r in Cc.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
4845
|
+
for (var i in pl(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
4846
|
+
this.nativeDraggable = !t.forceFallback && cl, 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)), Hc.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), As(this, vc());
|
|
4843
4847
|
}
|
|
4844
4848
|
$.prototype = {
|
|
4845
4849
|
constructor: $,
|
|
4846
4850
|
_isOutsideThisEl: function(e) {
|
|
4847
|
-
!this.el.contains(e) && e !== this.el && (
|
|
4851
|
+
!this.el.contains(e) && e !== this.el && (Xc = null);
|
|
4848
4852
|
},
|
|
4849
4853
|
_getDirection: function(e, t) {
|
|
4850
4854
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, Z) : this.options.direction;
|
|
@@ -4852,57 +4856,57 @@ $.prototype = {
|
|
|
4852
4856
|
_onTapStart: function(e) {
|
|
4853
4857
|
if (e.cancelable) {
|
|
4854
4858
|
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;
|
|
4855
|
-
if (
|
|
4856
|
-
if (
|
|
4859
|
+
if (Dl(n), !Z && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Us && s && s.tagName.toUpperCase() === "SELECT") && (s = Ys(s, r.draggable, n, !1), !(s && s.animated) && jc !== s)) {
|
|
4860
|
+
if (Pc = ac(s), Ic = ac(s, r.draggable), typeof l == "function") {
|
|
4857
4861
|
if (l.call(this, e, s, this)) {
|
|
4858
|
-
|
|
4862
|
+
Dc({
|
|
4859
4863
|
sortable: t,
|
|
4860
4864
|
rootEl: c,
|
|
4861
4865
|
name: "filter",
|
|
4862
4866
|
targetEl: s,
|
|
4863
4867
|
toEl: n,
|
|
4864
4868
|
fromEl: n
|
|
4865
|
-
}),
|
|
4869
|
+
}), Ec("filter", t, { evt: e }), i && e.preventDefault();
|
|
4866
4870
|
return;
|
|
4867
4871
|
}
|
|
4868
4872
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
4869
|
-
if (r =
|
|
4873
|
+
if (r = Ys(c, r.trim(), n, !1), r) return Dc({
|
|
4870
4874
|
sortable: t,
|
|
4871
4875
|
rootEl: r,
|
|
4872
4876
|
name: "filter",
|
|
4873
4877
|
targetEl: s,
|
|
4874
4878
|
fromEl: n,
|
|
4875
4879
|
toEl: n
|
|
4876
|
-
}),
|
|
4880
|
+
}), Ec("filter", t, { evt: e }), !0;
|
|
4877
4881
|
}), l)) {
|
|
4878
4882
|
i && e.preventDefault();
|
|
4879
4883
|
return;
|
|
4880
4884
|
}
|
|
4881
|
-
(!r.handle ||
|
|
4885
|
+
(!r.handle || Ys(c, r.handle, n, !1)) && this._prepareDragStart(e, o, s);
|
|
4882
4886
|
}
|
|
4883
4887
|
}
|
|
4884
4888
|
},
|
|
4885
4889
|
_prepareDragStart: function(e, t, n) {
|
|
4886
4890
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
4887
4891
|
if (n && !Z && n.parentNode === i) {
|
|
4888
|
-
var c =
|
|
4889
|
-
if (
|
|
4892
|
+
var c = tc(n);
|
|
4893
|
+
if (kc = i, Z = n, Oc = Z.parentNode, Ac = Z.nextSibling, jc = n, Rc = a.group, $.dragged = Z, Uc = {
|
|
4890
4894
|
target: Z,
|
|
4891
4895
|
clientX: (t || e).clientX,
|
|
4892
4896
|
clientY: (t || e).clientY
|
|
4893
|
-
},
|
|
4894
|
-
if (
|
|
4897
|
+
}, qc = Uc.clientX - c.left, Jc = Uc.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, Z.style["will-change"] = "all", s = function() {
|
|
4898
|
+
if (Ec("delayEnded", r, { evt: e }), $.eventCanceled) {
|
|
4895
4899
|
r._onDrop();
|
|
4896
4900
|
return;
|
|
4897
4901
|
}
|
|
4898
|
-
r._disableDelayedDragEvents(), !
|
|
4902
|
+
r._disableDelayedDragEvents(), !Hs && r.nativeDraggable && (Z.draggable = !0), r._triggerDragStart(e, t), Dc({
|
|
4899
4903
|
sortable: r,
|
|
4900
4904
|
name: "choose",
|
|
4901
4905
|
originalEvent: e
|
|
4902
|
-
}),
|
|
4906
|
+
}), Zs(Z, a.chosenClass, !0);
|
|
4903
4907
|
}, a.ignore.split(",").forEach(function(e) {
|
|
4904
|
-
|
|
4905
|
-
}), J(o, "dragover",
|
|
4908
|
+
$s(Z, e.trim(), bl);
|
|
4909
|
+
}), J(o, "dragover", gl), J(o, "mousemove", gl), J(o, "touchmove", gl), 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)), Hs && this.nativeDraggable && (this.options.touchStartThreshold = 4, Z.draggable = !0), Ec("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Vs || Bs))) {
|
|
4906
4910
|
if ($.eventCanceled) {
|
|
4907
4911
|
this._onDrop();
|
|
4908
4912
|
return;
|
|
@@ -4916,25 +4920,25 @@ $.prototype = {
|
|
|
4916
4920
|
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();
|
|
4917
4921
|
},
|
|
4918
4922
|
_disableDelayedDrag: function() {
|
|
4919
|
-
Z &&
|
|
4923
|
+
Z && bl(Z), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
4920
4924
|
},
|
|
4921
4925
|
_disableDelayedDragEvents: function() {
|
|
4922
4926
|
var e = this.el.ownerDocument;
|
|
4923
4927
|
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);
|
|
4924
4928
|
},
|
|
4925
4929
|
_triggerDragStart: function(e, t) {
|
|
4926
|
-
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(
|
|
4930
|
+
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(kc, "dragstart", this._onDragStart));
|
|
4927
4931
|
try {
|
|
4928
|
-
document.selection ?
|
|
4932
|
+
document.selection ? Ol(function() {
|
|
4929
4933
|
document.selection.empty();
|
|
4930
4934
|
}) : window.getSelection().removeAllRanges();
|
|
4931
4935
|
} catch {}
|
|
4932
4936
|
},
|
|
4933
4937
|
_dragStarted: function(e, t) {
|
|
4934
|
-
if (
|
|
4935
|
-
|
|
4938
|
+
if (Bc = !1, kc && Z) {
|
|
4939
|
+
Ec("dragStarted", this, { evt: t }), this.nativeDraggable && J(document, "dragover", _l);
|
|
4936
4940
|
var n = this.options;
|
|
4937
|
-
!e &&
|
|
4941
|
+
!e && Zs(Z, n.dragClass, !1), Zs(Z, n.ghostClass, !0), $.active = this, e && this._appendGhost(), Dc({
|
|
4938
4942
|
sortable: this,
|
|
4939
4943
|
name: "start",
|
|
4940
4944
|
originalEvent: t
|
|
@@ -4942,33 +4946,33 @@ $.prototype = {
|
|
|
4942
4946
|
} else this._nulling();
|
|
4943
4947
|
},
|
|
4944
4948
|
_emulateDragOver: function() {
|
|
4945
|
-
if (
|
|
4946
|
-
this._lastX =
|
|
4947
|
-
for (var e = document.elementFromPoint(
|
|
4948
|
-
if (Z.parentNode[
|
|
4949
|
-
if (t[
|
|
4949
|
+
if (Wc) {
|
|
4950
|
+
this._lastX = Wc.clientX, this._lastY = Wc.clientY, ml();
|
|
4951
|
+
for (var e = document.elementFromPoint(Wc.clientX, Wc.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Wc.clientX, Wc.clientY), e !== t);) t = e;
|
|
4952
|
+
if (Z.parentNode[_c]._isOutsideThisEl(e), t) do {
|
|
4953
|
+
if (t[_c]) {
|
|
4950
4954
|
var n = void 0;
|
|
4951
|
-
if (n = t[
|
|
4952
|
-
clientX:
|
|
4953
|
-
clientY:
|
|
4955
|
+
if (n = t[_c]._onDragOver({
|
|
4956
|
+
clientX: Wc.clientX,
|
|
4957
|
+
clientY: Wc.clientY,
|
|
4954
4958
|
target: e,
|
|
4955
4959
|
rootEl: t
|
|
4956
4960
|
}), n && !this.options.dragoverBubble) break;
|
|
4957
4961
|
}
|
|
4958
4962
|
e = t;
|
|
4959
|
-
} while (t =
|
|
4960
|
-
|
|
4963
|
+
} while (t = Js(t));
|
|
4964
|
+
hl();
|
|
4961
4965
|
}
|
|
4962
4966
|
},
|
|
4963
4967
|
_onTouchMove: function(e) {
|
|
4964
|
-
if (
|
|
4965
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q &&
|
|
4966
|
-
if (!$.active && !
|
|
4968
|
+
if (Uc) {
|
|
4969
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q && Qs(Q, !0), o = Q && a && a.a, s = Q && a && a.d, c = ol && tl && oc(tl), l = (i.clientX - Uc.clientX + r.x) / (o || 1) + (c ? c[0] - nl[0] : 0) / (o || 1), u = (i.clientY - Uc.clientY + r.y) / (s || 1) + (c ? c[1] - nl[1] : 0) / (s || 1);
|
|
4970
|
+
if (!$.active && !Bc) {
|
|
4967
4971
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
4968
4972
|
this._onDragStart(e, !0);
|
|
4969
4973
|
}
|
|
4970
4974
|
if (Q) {
|
|
4971
|
-
a ? (a.e += l - (
|
|
4975
|
+
a ? (a.e += l - (Gc || 0), a.f += u - (Kc || 0)) : a = {
|
|
4972
4976
|
a: 1,
|
|
4973
4977
|
b: 0,
|
|
4974
4978
|
c: 0,
|
|
@@ -4977,39 +4981,39 @@ $.prototype = {
|
|
|
4977
4981
|
f: u
|
|
4978
4982
|
};
|
|
4979
4983
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
4980
|
-
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d),
|
|
4984
|
+
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d), Gc = l, Kc = u, Wc = i;
|
|
4981
4985
|
}
|
|
4982
4986
|
e.cancelable && e.preventDefault();
|
|
4983
4987
|
}
|
|
4984
4988
|
},
|
|
4985
4989
|
_appendGhost: function() {
|
|
4986
4990
|
if (!Q) {
|
|
4987
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
4988
|
-
if (
|
|
4989
|
-
for (
|
|
4990
|
-
|
|
4991
|
+
var e = this.options.fallbackOnBody ? document.body : kc, t = tc(Z, !0, ol, !0, e), n = this.options;
|
|
4992
|
+
if (ol) {
|
|
4993
|
+
for (tl = e; X(tl, "position") === "static" && X(tl, "transform") === "none" && tl !== document;) tl = tl.parentNode;
|
|
4994
|
+
tl !== document.body && tl !== document.documentElement ? (tl === document && (tl = ec()), t.top += tl.scrollTop, t.left += tl.scrollLeft) : tl = ec(), nl = oc(tl);
|
|
4991
4995
|
}
|
|
4992
|
-
Q = Z.cloneNode(!0),
|
|
4996
|
+
Q = Z.cloneNode(!0), Zs(Q, n.ghostClass, !1), Zs(Q, n.fallbackClass, !0), Zs(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", ol ? "absolute" : "fixed"), X(Q, "zIndex", "100000"), X(Q, "pointerEvents", "none"), $.ghost = Q, e.appendChild(Q), X(Q, "transform-origin", qc / parseInt(Q.style.width) * 100 + "% " + Jc / parseInt(Q.style.height) * 100 + "%");
|
|
4993
4997
|
}
|
|
4994
4998
|
},
|
|
4995
4999
|
_onDragStart: function(e, t) {
|
|
4996
5000
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
4997
|
-
if (
|
|
5001
|
+
if (Ec("dragStart", this, { evt: e }), $.eventCanceled) {
|
|
4998
5002
|
this._onDrop();
|
|
4999
5003
|
return;
|
|
5000
5004
|
}
|
|
5001
|
-
|
|
5002
|
-
|
|
5005
|
+
Ec("setupClone", this), $.eventCanceled || (Mc = hc(Z), Mc.removeAttribute("id"), Mc.draggable = !1, Mc.style["will-change"] = "", this._hideClone(), Zs(Mc, this.options.chosenClass, !1), $.clone = Mc), n.cloneId = Ol(function() {
|
|
5006
|
+
Ec("clone", n), !$.eventCanceled && (n.options.removeCloneOnHide || kc.insertBefore(Mc, Z), n._hideClone(), Dc({
|
|
5003
5007
|
sortable: n,
|
|
5004
5008
|
name: "clone"
|
|
5005
5009
|
}));
|
|
5006
|
-
}), !t &&
|
|
5010
|
+
}), !t && Zs(Z, i.dragClass, !0), t ? (Vc = !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)")), Bc = !0, n._dragStartId = Ol(n._dragStarted.bind(n, t, e)), J(document, "selectstart", n), Yc = !0, window.getSelection().removeAllRanges(), Us && X(document.body, "user-select", "none");
|
|
5007
5011
|
},
|
|
5008
5012
|
_onDragOver: function(e) {
|
|
5009
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l =
|
|
5010
|
-
if (
|
|
5013
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l = Rc === s, u = o.sort, d = zc || c, f, p = this, m = !1;
|
|
5014
|
+
if (rl) return;
|
|
5011
5015
|
function h(o, s) {
|
|
5012
|
-
|
|
5016
|
+
Ec(o, p, Ms({
|
|
5013
5017
|
evt: e,
|
|
5014
5018
|
isOwner: l,
|
|
5015
5019
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -5021,7 +5025,7 @@ $.prototype = {
|
|
|
5021
5025
|
target: n,
|
|
5022
5026
|
completed: _,
|
|
5023
5027
|
onMove: function(n, i) {
|
|
5024
|
-
return
|
|
5028
|
+
return yl(kc, t, Z, r, n, tc(n), e, i);
|
|
5025
5029
|
},
|
|
5026
5030
|
changed: v
|
|
5027
5031
|
}, s));
|
|
@@ -5030,50 +5034,50 @@ $.prototype = {
|
|
|
5030
5034
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
5031
5035
|
}
|
|
5032
5036
|
function _(r) {
|
|
5033
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
5037
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Zs(Z, zc ? zc.options.ghostClass : c.options.ghostClass, !1), Zs(Z, o.ghostClass, !0)), zc !== p && p !== $.active ? zc = p : p === $.active && zc && (zc = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
5034
5038
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
5035
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (
|
|
5039
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (Xc = null), !o.dragoverBubble && !e.rootEl && n !== document && (Z.parentNode[_c]._isOutsideThisEl(e.target), !r && gl(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
5036
5040
|
}
|
|
5037
5041
|
function v() {
|
|
5038
|
-
|
|
5042
|
+
Fc = ac(Z), Lc = ac(Z, o.draggable), Dc({
|
|
5039
5043
|
sortable: p,
|
|
5040
5044
|
name: "change",
|
|
5041
5045
|
toEl: t,
|
|
5042
|
-
newIndex:
|
|
5043
|
-
newDraggableIndex:
|
|
5046
|
+
newIndex: Fc,
|
|
5047
|
+
newDraggableIndex: Lc,
|
|
5044
5048
|
originalEvent: e
|
|
5045
5049
|
});
|
|
5046
5050
|
}
|
|
5047
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
5051
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Ys(n, o.draggable, t, !0), h("dragOver"), $.eventCanceled) return m;
|
|
5048
5052
|
if (Z.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
5049
|
-
if (
|
|
5050
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
5051
|
-
if (a) return
|
|
5052
|
-
var y =
|
|
5053
|
-
if (!y ||
|
|
5053
|
+
if (Vc = !1, c && !o.disabled && (l ? u || (a = Oc !== kc) : zc === this || (this.lastPutMode = Rc.checkPull(this, c, Z, e)) && s.checkPut(this, c, Z, e))) {
|
|
5054
|
+
if (f = this._getDirection(e, n) === "vertical", r = tc(Z), h("dragOverValid"), $.eventCanceled) return m;
|
|
5055
|
+
if (a) return Oc = kc, g(), this._hideClone(), h("revert"), $.eventCanceled || (Ac ? kc.insertBefore(Z, Ac) : kc.appendChild(Z)), _(!0);
|
|
5056
|
+
var y = ic(t, o.draggable);
|
|
5057
|
+
if (!y || Cl(e, f, this) && !y.animated) {
|
|
5054
5058
|
if (y === Z) return _(!1);
|
|
5055
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
5056
|
-
} else if (y &&
|
|
5057
|
-
var b =
|
|
5059
|
+
if (y && t === e.target && (n = y), n && (i = tc(n)), yl(kc, t, Z, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(Z, y.nextSibling) : t.appendChild(Z), Oc = t, v(), _(!0);
|
|
5060
|
+
} else if (y && Sl(e, f, this)) {
|
|
5061
|
+
var b = rc(t, 0, o, !0);
|
|
5058
5062
|
if (b === Z) return _(!1);
|
|
5059
|
-
if (n = b, i =
|
|
5063
|
+
if (n = b, i = tc(n), yl(kc, t, Z, r, n, i, e, !1) !== !1) return g(), t.insertBefore(Z, b), Oc = t, v(), _(!0);
|
|
5060
5064
|
} else if (n.parentNode === t) {
|
|
5061
|
-
i =
|
|
5062
|
-
var x = 0, S, C = Z.parentNode !== t, w = !
|
|
5063
|
-
|
|
5065
|
+
i = tc(n);
|
|
5066
|
+
var x = 0, S, C = Z.parentNode !== t, w = !dl(Z.animated && Z.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = nc(n, "top", "top") || nc(Z, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
5067
|
+
Xc !== n && (S = i[T], Qc = !1, $c = !w && o.invertSwap || C), x = wl(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, $c, Xc === n);
|
|
5064
5068
|
var O;
|
|
5065
5069
|
if (x !== 0) {
|
|
5066
|
-
var k =
|
|
5070
|
+
var k = ac(Z);
|
|
5067
5071
|
do
|
|
5068
|
-
k -= x, O =
|
|
5072
|
+
k -= x, O = Oc.children[k];
|
|
5069
5073
|
while (O && (X(O, "display") === "none" || O === Q));
|
|
5070
5074
|
}
|
|
5071
5075
|
if (x === 0 || O === n) return _(!1);
|
|
5072
|
-
|
|
5076
|
+
Xc = n, Zc = x;
|
|
5073
5077
|
var A = n.nextElementSibling, j = !1;
|
|
5074
5078
|
j = x === 1;
|
|
5075
|
-
var M =
|
|
5076
|
-
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1),
|
|
5079
|
+
var M = yl(kc, t, Z, r, n, i, e, j);
|
|
5080
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), rl = !0, setTimeout(xl, 30), g(), j && !A ? t.appendChild(Z) : n.parentNode.insertBefore(Z, j ? A : n), E && mc(E, 0, D - E.scrollTop), Oc = Z.parentNode, S !== void 0 && !$c && (el = Math.abs(S - tc(n)[T])), v(), _(!0);
|
|
5077
5081
|
}
|
|
5078
5082
|
if (t.contains(Z)) return _(!1);
|
|
5079
5083
|
}
|
|
@@ -5081,7 +5085,7 @@ $.prototype = {
|
|
|
5081
5085
|
},
|
|
5082
5086
|
_ignoreWhileAnimating: null,
|
|
5083
5087
|
_offMoveEvents: function() {
|
|
5084
|
-
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover",
|
|
5088
|
+
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover", gl), Y(document, "mousemove", gl), Y(document, "touchmove", gl);
|
|
5085
5089
|
},
|
|
5086
5090
|
_offUpEvents: function() {
|
|
5087
5091
|
var e = this.el.ownerDocument;
|
|
@@ -5089,62 +5093,62 @@ $.prototype = {
|
|
|
5089
5093
|
},
|
|
5090
5094
|
_onDrop: function(e) {
|
|
5091
5095
|
var t = this.el, n = this.options;
|
|
5092
|
-
if (
|
|
5096
|
+
if (Fc = ac(Z), Lc = ac(Z, n.draggable), Ec("drop", this, { evt: e }), Oc = Z && Z.parentNode, Fc = ac(Z), Lc = ac(Z, n.draggable), $.eventCanceled) {
|
|
5093
5097
|
this._nulling();
|
|
5094
5098
|
return;
|
|
5095
5099
|
}
|
|
5096
|
-
|
|
5100
|
+
Bc = !1, $c = !1, Qc = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), kl(this.cloneId), kl(this._dragStartId), this.nativeDraggable && (Y(document, "drop", this), Y(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Us && X(document.body, "user-select", ""), X(Z, "transform", ""), e && (Yc && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), Q && Q.parentNode && Q.parentNode.removeChild(Q), (kc === Oc || zc && zc.lastPutMode !== "clone") && Mc && Mc.parentNode && Mc.parentNode.removeChild(Mc), Z && (this.nativeDraggable && Y(Z, "dragend", this), bl(Z), Z.style["will-change"] = "", Yc && !Bc && Zs(Z, zc ? zc.options.ghostClass : this.options.ghostClass, !1), Zs(Z, this.options.chosenClass, !1), Dc({
|
|
5097
5101
|
sortable: this,
|
|
5098
5102
|
name: "unchoose",
|
|
5099
|
-
toEl:
|
|
5103
|
+
toEl: Oc,
|
|
5100
5104
|
newIndex: null,
|
|
5101
5105
|
newDraggableIndex: null,
|
|
5102
5106
|
originalEvent: e
|
|
5103
|
-
}),
|
|
5107
|
+
}), kc === Oc ? Fc !== Pc && Fc >= 0 && (Dc({
|
|
5104
5108
|
sortable: this,
|
|
5105
5109
|
name: "update",
|
|
5106
|
-
toEl:
|
|
5110
|
+
toEl: Oc,
|
|
5107
5111
|
originalEvent: e
|
|
5108
|
-
}),
|
|
5112
|
+
}), Dc({
|
|
5109
5113
|
sortable: this,
|
|
5110
5114
|
name: "sort",
|
|
5111
|
-
toEl:
|
|
5115
|
+
toEl: Oc,
|
|
5112
5116
|
originalEvent: e
|
|
5113
|
-
})) : (
|
|
5114
|
-
rootEl:
|
|
5117
|
+
})) : (Fc >= 0 && (Dc({
|
|
5118
|
+
rootEl: Oc,
|
|
5115
5119
|
name: "add",
|
|
5116
|
-
toEl:
|
|
5117
|
-
fromEl:
|
|
5120
|
+
toEl: Oc,
|
|
5121
|
+
fromEl: kc,
|
|
5118
5122
|
originalEvent: e
|
|
5119
|
-
}),
|
|
5123
|
+
}), Dc({
|
|
5120
5124
|
sortable: this,
|
|
5121
5125
|
name: "remove",
|
|
5122
|
-
toEl:
|
|
5126
|
+
toEl: Oc,
|
|
5123
5127
|
originalEvent: e
|
|
5124
|
-
}),
|
|
5125
|
-
rootEl:
|
|
5128
|
+
}), Dc({
|
|
5129
|
+
rootEl: Oc,
|
|
5126
5130
|
name: "sort",
|
|
5127
|
-
toEl:
|
|
5128
|
-
fromEl:
|
|
5131
|
+
toEl: Oc,
|
|
5132
|
+
fromEl: kc,
|
|
5129
5133
|
originalEvent: e
|
|
5130
|
-
}),
|
|
5134
|
+
}), Dc({
|
|
5131
5135
|
sortable: this,
|
|
5132
5136
|
name: "sort",
|
|
5133
|
-
toEl:
|
|
5137
|
+
toEl: Oc,
|
|
5134
5138
|
originalEvent: e
|
|
5135
|
-
})),
|
|
5139
|
+
})), zc && zc.save()), $.active && ((Fc == null || Fc === -1) && (Fc = Pc, Lc = Ic), Dc({
|
|
5136
5140
|
sortable: this,
|
|
5137
5141
|
name: "end",
|
|
5138
|
-
toEl:
|
|
5142
|
+
toEl: Oc,
|
|
5139
5143
|
originalEvent: e
|
|
5140
5144
|
}), this.save()))), this._nulling();
|
|
5141
5145
|
},
|
|
5142
5146
|
_nulling: function() {
|
|
5143
|
-
|
|
5147
|
+
Ec("nulling", this), kc = Z = Oc = Q = Ac = Mc = jc = Nc = Uc = Wc = Yc = Fc = Lc = Pc = Ic = Xc = Zc = zc = Rc = $.dragged = $.ghost = $.clone = $.active = null;
|
|
5144
5148
|
var e = this.el;
|
|
5145
|
-
|
|
5149
|
+
il.forEach(function(t) {
|
|
5146
5150
|
e.contains(t) && (t.checked = !0);
|
|
5147
|
-
}),
|
|
5151
|
+
}), il.length = Gc = Kc = 0;
|
|
5148
5152
|
},
|
|
5149
5153
|
handleEvent: function(e) {
|
|
5150
5154
|
switch (e.type) {
|
|
@@ -5154,20 +5158,20 @@ $.prototype = {
|
|
|
5154
5158
|
break;
|
|
5155
5159
|
case "dragenter":
|
|
5156
5160
|
case "dragover":
|
|
5157
|
-
Z && (this._onDragOver(e),
|
|
5161
|
+
Z && (this._onDragOver(e), vl(e));
|
|
5158
5162
|
break;
|
|
5159
5163
|
case "selectstart": e.preventDefault();
|
|
5160
5164
|
}
|
|
5161
5165
|
},
|
|
5162
5166
|
toArray: function() {
|
|
5163
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
5167
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Ys(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || El(t));
|
|
5164
5168
|
return e;
|
|
5165
5169
|
},
|
|
5166
5170
|
sort: function(e, t) {
|
|
5167
5171
|
var n = {}, r = this.el;
|
|
5168
5172
|
this.toArray().forEach(function(e, t) {
|
|
5169
5173
|
var i = r.children[t];
|
|
5170
|
-
|
|
5174
|
+
Ys(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
5171
5175
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
5172
5176
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
5173
5177
|
}), t && this.animateAll();
|
|
@@ -5177,25 +5181,25 @@ $.prototype = {
|
|
|
5177
5181
|
e && e.set && e.set(this);
|
|
5178
5182
|
},
|
|
5179
5183
|
closest: function(e, t) {
|
|
5180
|
-
return
|
|
5184
|
+
return Ys(e, t || this.options.draggable, this.el, !1);
|
|
5181
5185
|
},
|
|
5182
5186
|
option: function(e, t) {
|
|
5183
5187
|
var n = this.options;
|
|
5184
5188
|
if (t === void 0) return n[e];
|
|
5185
|
-
var r =
|
|
5186
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
5189
|
+
var r = Cc.modifyOption(this, e, t);
|
|
5190
|
+
n[e] = r === void 0 ? t : r, e === "group" && pl(n);
|
|
5187
5191
|
},
|
|
5188
5192
|
destroy: function() {
|
|
5189
|
-
|
|
5193
|
+
Ec("destroy", this);
|
|
5190
5194
|
var e = this.el;
|
|
5191
|
-
e[
|
|
5195
|
+
e[_c] = 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) {
|
|
5192
5196
|
e.removeAttribute("draggable");
|
|
5193
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
5197
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Hc.splice(Hc.indexOf(this.el), 1), this.el = e = null;
|
|
5194
5198
|
},
|
|
5195
5199
|
_hideClone: function() {
|
|
5196
|
-
if (!
|
|
5197
|
-
if (
|
|
5198
|
-
X(
|
|
5200
|
+
if (!Nc) {
|
|
5201
|
+
if (Ec("hideClone", this), $.eventCanceled) return;
|
|
5202
|
+
X(Mc, "display", "none"), this.options.removeCloneOnHide && Mc.parentNode && Mc.parentNode.removeChild(Mc), Nc = !0;
|
|
5199
5203
|
}
|
|
5200
5204
|
},
|
|
5201
5205
|
_showClone: function(e) {
|
|
@@ -5203,100 +5207,100 @@ $.prototype = {
|
|
|
5203
5207
|
this._hideClone();
|
|
5204
5208
|
return;
|
|
5205
5209
|
}
|
|
5206
|
-
if (
|
|
5207
|
-
if (
|
|
5208
|
-
Z.parentNode ==
|
|
5210
|
+
if (Nc) {
|
|
5211
|
+
if (Ec("showClone", this), $.eventCanceled) return;
|
|
5212
|
+
Z.parentNode == kc && !this.options.group.revertClone ? kc.insertBefore(Mc, Z) : Ac ? kc.insertBefore(Mc, Ac) : kc.appendChild(Mc), this.options.group.revertClone && this.animate(Z, Mc), X(Mc, "display", ""), Nc = !1;
|
|
5209
5213
|
}
|
|
5210
5214
|
}
|
|
5211
5215
|
};
|
|
5212
|
-
function
|
|
5216
|
+
function vl(e) {
|
|
5213
5217
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5214
5218
|
}
|
|
5215
|
-
function
|
|
5216
|
-
var c, l = e[
|
|
5217
|
-
return window.CustomEvent && !
|
|
5219
|
+
function yl(e, t, n, r, i, a, o, s) {
|
|
5220
|
+
var c, l = e[_c], u = l.options.onMove, d;
|
|
5221
|
+
return window.CustomEvent && !Bs && !Vs ? c = new CustomEvent("move", {
|
|
5218
5222
|
bubbles: !0,
|
|
5219
5223
|
cancelable: !0
|
|
5220
|
-
}) : (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 ||
|
|
5224
|
+
}) : (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 || tc(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
5221
5225
|
}
|
|
5222
|
-
function
|
|
5226
|
+
function bl(e) {
|
|
5223
5227
|
e.draggable = !1;
|
|
5224
5228
|
}
|
|
5225
|
-
function
|
|
5226
|
-
|
|
5229
|
+
function xl() {
|
|
5230
|
+
rl = !1;
|
|
5227
5231
|
}
|
|
5228
|
-
function
|
|
5229
|
-
var r =
|
|
5232
|
+
function Sl(e, t, n) {
|
|
5233
|
+
var r = tc(rc(n.el, 0, n.options, !0)), i = gc(n.el, n.options, Q), a = 10;
|
|
5230
5234
|
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;
|
|
5231
5235
|
}
|
|
5232
|
-
function
|
|
5233
|
-
var r =
|
|
5236
|
+
function Cl(e, t, n) {
|
|
5237
|
+
var r = tc(ic(n.el, n.options.draggable)), i = gc(n.el, n.options, Q), a = 10;
|
|
5234
5238
|
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;
|
|
5235
5239
|
}
|
|
5236
|
-
function
|
|
5240
|
+
function wl(e, t, n, r, i, a, o, s) {
|
|
5237
5241
|
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;
|
|
5238
5242
|
if (!o) {
|
|
5239
|
-
if (s &&
|
|
5240
|
-
if (!
|
|
5241
|
-
else if (
|
|
5242
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
5243
|
+
if (s && el < l * i) {
|
|
5244
|
+
if (!Qc && (Zc === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (Qc = !0), Qc) f = !0;
|
|
5245
|
+
else if (Zc === 1 ? c < u + el : c > d - el) return -Zc;
|
|
5246
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return Tl(t);
|
|
5243
5247
|
}
|
|
5244
5248
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
5245
5249
|
}
|
|
5246
|
-
function
|
|
5247
|
-
return
|
|
5250
|
+
function Tl(e) {
|
|
5251
|
+
return ac(Z) < ac(e) ? 1 : -1;
|
|
5248
5252
|
}
|
|
5249
|
-
function
|
|
5253
|
+
function El(e) {
|
|
5250
5254
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
5251
5255
|
return r.toString(36);
|
|
5252
5256
|
}
|
|
5253
|
-
function
|
|
5254
|
-
|
|
5257
|
+
function Dl(e) {
|
|
5258
|
+
il.length = 0;
|
|
5255
5259
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
5256
5260
|
var r = t[n];
|
|
5257
|
-
r.checked &&
|
|
5261
|
+
r.checked && il.push(r);
|
|
5258
5262
|
}
|
|
5259
5263
|
}
|
|
5260
|
-
function
|
|
5264
|
+
function Ol(e) {
|
|
5261
5265
|
return setTimeout(e, 0);
|
|
5262
5266
|
}
|
|
5263
|
-
function
|
|
5267
|
+
function kl(e) {
|
|
5264
5268
|
return clearTimeout(e);
|
|
5265
5269
|
}
|
|
5266
|
-
|
|
5267
|
-
($.active ||
|
|
5270
|
+
al && J(document, "touchmove", function(e) {
|
|
5271
|
+
($.active || Bc) && e.cancelable && e.preventDefault();
|
|
5268
5272
|
}), $.utils = {
|
|
5269
5273
|
on: J,
|
|
5270
5274
|
off: Y,
|
|
5271
5275
|
css: X,
|
|
5272
|
-
find:
|
|
5276
|
+
find: $s,
|
|
5273
5277
|
is: function(e, t) {
|
|
5274
|
-
return !!
|
|
5278
|
+
return !!Ys(e, t, e, !1);
|
|
5275
5279
|
},
|
|
5276
|
-
extend:
|
|
5277
|
-
throttle:
|
|
5278
|
-
closest:
|
|
5279
|
-
toggleClass:
|
|
5280
|
-
clone:
|
|
5281
|
-
index:
|
|
5282
|
-
nextTick:
|
|
5283
|
-
cancelNextTick:
|
|
5284
|
-
detectDirection:
|
|
5285
|
-
getChild:
|
|
5286
|
-
expando:
|
|
5280
|
+
extend: lc,
|
|
5281
|
+
throttle: fc,
|
|
5282
|
+
closest: Ys,
|
|
5283
|
+
toggleClass: Zs,
|
|
5284
|
+
clone: hc,
|
|
5285
|
+
index: ac,
|
|
5286
|
+
nextTick: Ol,
|
|
5287
|
+
cancelNextTick: kl,
|
|
5288
|
+
detectDirection: ul,
|
|
5289
|
+
getChild: rc,
|
|
5290
|
+
expando: _c
|
|
5287
5291
|
}, $.get = function(e) {
|
|
5288
|
-
return e[
|
|
5292
|
+
return e[_c];
|
|
5289
5293
|
}, $.mount = function() {
|
|
5290
5294
|
var e = [...arguments];
|
|
5291
5295
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
5292
5296
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
5293
|
-
e.utils && ($.utils =
|
|
5297
|
+
e.utils && ($.utils = Ms(Ms({}, $.utils), e.utils)), Cc.mount(e);
|
|
5294
5298
|
});
|
|
5295
5299
|
}, $.create = function(e, t) {
|
|
5296
5300
|
return new $(e, t);
|
|
5297
|
-
}, $.version =
|
|
5298
|
-
var
|
|
5299
|
-
function
|
|
5301
|
+
}, $.version = Rs;
|
|
5302
|
+
var Al = [], jl, Ml, Nl = !1, Pl, Fl, Il, Ll;
|
|
5303
|
+
function Rl() {
|
|
5300
5304
|
function e() {
|
|
5301
5305
|
for (var e in this.defaults = {
|
|
5302
5306
|
scroll: !0,
|
|
@@ -5316,63 +5320,63 @@ function Il() {
|
|
|
5316
5320
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
5317
5321
|
},
|
|
5318
5322
|
drop: function() {
|
|
5319
|
-
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
5323
|
+
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)), Bl(), zl(), pc();
|
|
5320
5324
|
},
|
|
5321
5325
|
nulling: function() {
|
|
5322
|
-
|
|
5326
|
+
Il = Ml = jl = Nl = Ll = Pl = Fl = null, Al.length = 0;
|
|
5323
5327
|
},
|
|
5324
5328
|
_handleFallbackAutoScroll: function(e) {
|
|
5325
5329
|
this._handleAutoScroll(e, !0);
|
|
5326
5330
|
},
|
|
5327
5331
|
_handleAutoScroll: function(e, t) {
|
|
5328
5332
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
5329
|
-
if (
|
|
5330
|
-
|
|
5331
|
-
var o =
|
|
5332
|
-
|
|
5333
|
-
var a =
|
|
5334
|
-
a !== o && (o = a,
|
|
5335
|
-
}, 10),
|
|
5333
|
+
if (Il = e, t || this.options.forceAutoScrollFallback || Vs || Bs || Us) {
|
|
5334
|
+
Vl(e, this.options, a, t);
|
|
5335
|
+
var o = cc(a, !0);
|
|
5336
|
+
Nl && (!Ll || r !== Pl || i !== Fl) && (Ll && Bl(), Ll = setInterval(function() {
|
|
5337
|
+
var a = cc(document.elementFromPoint(r, i), !0);
|
|
5338
|
+
a !== o && (o = a, zl()), Vl(e, n.options, a, t);
|
|
5339
|
+
}, 10), Pl = r, Fl = i);
|
|
5336
5340
|
} else {
|
|
5337
|
-
if (!this.options.bubbleScroll ||
|
|
5338
|
-
|
|
5341
|
+
if (!this.options.bubbleScroll || cc(a, !0) === ec()) {
|
|
5342
|
+
zl();
|
|
5339
5343
|
return;
|
|
5340
5344
|
}
|
|
5341
|
-
|
|
5345
|
+
Vl(e, this.options, cc(a, !1), !1);
|
|
5342
5346
|
}
|
|
5343
5347
|
}
|
|
5344
|
-
},
|
|
5348
|
+
}, As(e, {
|
|
5345
5349
|
pluginName: "scroll",
|
|
5346
5350
|
initializeByDefault: !0
|
|
5347
5351
|
});
|
|
5348
5352
|
}
|
|
5349
|
-
function
|
|
5350
|
-
|
|
5353
|
+
function zl() {
|
|
5354
|
+
Al.forEach(function(e) {
|
|
5351
5355
|
clearInterval(e.pid);
|
|
5352
|
-
}),
|
|
5356
|
+
}), Al = [];
|
|
5353
5357
|
}
|
|
5354
|
-
function
|
|
5355
|
-
clearInterval(
|
|
5358
|
+
function Bl() {
|
|
5359
|
+
clearInterval(Ll);
|
|
5356
5360
|
}
|
|
5357
|
-
var
|
|
5361
|
+
var Vl = fc(function(e, t, n, r) {
|
|
5358
5362
|
if (t.scroll) {
|
|
5359
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
5360
|
-
|
|
5361
|
-
var d = 0, f =
|
|
5363
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = ec(), l = !1, u;
|
|
5364
|
+
Ml !== n && (Ml = n, zl(), jl = t.scroll, u = t.scrollFn, jl === !0 && (jl = cc(n, !0)));
|
|
5365
|
+
var d = 0, f = jl;
|
|
5362
5366
|
do {
|
|
5363
|
-
var p = f, m =
|
|
5367
|
+
var p = f, m = tc(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;
|
|
5364
5368
|
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"));
|
|
5365
5369
|
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);
|
|
5366
|
-
if (!
|
|
5367
|
-
(
|
|
5368
|
-
r && this.layer === 0 && $.active._onTouchMove(
|
|
5369
|
-
var t =
|
|
5370
|
-
(typeof u != "function" || u.call($.dragged.parentNode[
|
|
5370
|
+
if (!Al[d]) for (var A = 0; A <= d; A++) Al[A] || (Al[A] = {});
|
|
5371
|
+
(Al[d].vx != O || Al[d].vy != k || Al[d].el !== p) && (Al[d].el = p, Al[d].vx = O, Al[d].vy = k, clearInterval(Al[d].pid), (O != 0 || k != 0) && (l = !0, Al[d].pid = setInterval(function() {
|
|
5372
|
+
r && this.layer === 0 && $.active._onTouchMove(Il);
|
|
5373
|
+
var t = Al[this.layer].vy ? Al[this.layer].vy * s : 0, n = Al[this.layer].vx ? Al[this.layer].vx * s : 0;
|
|
5374
|
+
(typeof u != "function" || u.call($.dragged.parentNode[_c], n, t, e, Il, Al[this.layer].el) === "continue") && mc(Al[this.layer].el, n, t);
|
|
5371
5375
|
}.bind({ layer: d }), 24))), d++;
|
|
5372
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
5373
|
-
|
|
5376
|
+
} while (t.bubbleScroll && f !== c && (f = cc(f, !1)));
|
|
5377
|
+
Nl = l;
|
|
5374
5378
|
}
|
|
5375
|
-
}, 30),
|
|
5379
|
+
}, 30), Hl = function(e) {
|
|
5376
5380
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
5377
5381
|
if (t) {
|
|
5378
5382
|
var c = n || i;
|
|
@@ -5384,8 +5388,8 @@ var zl = uc(function(e, t, n, r) {
|
|
|
5384
5388
|
}));
|
|
5385
5389
|
}
|
|
5386
5390
|
};
|
|
5387
|
-
function
|
|
5388
|
-
|
|
5391
|
+
function Ul() {}
|
|
5392
|
+
Ul.prototype = {
|
|
5389
5393
|
startIndex: null,
|
|
5390
5394
|
dragStart: function(e) {
|
|
5391
5395
|
var t = e.oldDraggableIndex;
|
|
@@ -5394,24 +5398,24 @@ Vl.prototype = {
|
|
|
5394
5398
|
onSpill: function(e) {
|
|
5395
5399
|
var t = e.dragEl, n = e.putSortable;
|
|
5396
5400
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
5397
|
-
var r =
|
|
5401
|
+
var r = rc(this.sortable.el, this.startIndex, this.options);
|
|
5398
5402
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
5399
5403
|
},
|
|
5400
|
-
drop:
|
|
5401
|
-
},
|
|
5402
|
-
function
|
|
5403
|
-
|
|
5404
|
+
drop: Hl
|
|
5405
|
+
}, As(Ul, { pluginName: "revertOnSpill" });
|
|
5406
|
+
function Wl() {}
|
|
5407
|
+
Wl.prototype = {
|
|
5404
5408
|
onSpill: function(e) {
|
|
5405
5409
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
5406
5410
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
5407
5411
|
},
|
|
5408
|
-
drop:
|
|
5409
|
-
},
|
|
5412
|
+
drop: Hl
|
|
5413
|
+
}, As(Wl, { pluginName: "removeOnSpill" }), $.mount(new Rl()), $.mount(Wl, Ul);
|
|
5410
5414
|
//#endregion
|
|
5411
5415
|
//#region node_modules/@vueuse/integrations/dist/useSortable.js
|
|
5412
|
-
function
|
|
5416
|
+
function Gl(e, t, n = {}) {
|
|
5413
5417
|
let r, { document: i = ke, watchElement: a = !1, ...o } = n, s = { onUpdate: (e) => {
|
|
5414
|
-
|
|
5418
|
+
Jl(t, e.oldIndex, e.newIndex, e);
|
|
5415
5419
|
} }, c = () => {
|
|
5416
5420
|
r?.destroy(), r = void 0;
|
|
5417
5421
|
}, l = (e) => {
|
|
@@ -5441,15 +5445,15 @@ function Ul(e, t, n = {}) {
|
|
|
5441
5445
|
option: d
|
|
5442
5446
|
};
|
|
5443
5447
|
}
|
|
5444
|
-
function
|
|
5448
|
+
function Kl(e, t, n) {
|
|
5445
5449
|
let r = e.children[n];
|
|
5446
5450
|
e.insertBefore(t, r);
|
|
5447
5451
|
}
|
|
5448
|
-
function
|
|
5452
|
+
function ql(e) {
|
|
5449
5453
|
e.parentNode && e.parentNode.removeChild(e);
|
|
5450
5454
|
}
|
|
5451
|
-
function
|
|
5452
|
-
r != null && (
|
|
5455
|
+
function Jl(e, t, n, r = null) {
|
|
5456
|
+
r != null && (ql(r.item), Kl(r.from, r.item, t));
|
|
5453
5457
|
let i = _(e), a = i ? [...oe(e)] : oe(e);
|
|
5454
5458
|
if (n >= 0 && n < a.length) {
|
|
5455
5459
|
let r = a.splice(t, 1)[0];
|
|
@@ -5460,37 +5464,37 @@ function Kl(e, t, n, r = null) {
|
|
|
5460
5464
|
}
|
|
5461
5465
|
//#endregion
|
|
5462
5466
|
//#region node_modules/uuid/dist/stringify.js
|
|
5463
|
-
var
|
|
5464
|
-
for (let e = 0; e < 256; ++e)
|
|
5465
|
-
function
|
|
5466
|
-
return (
|
|
5467
|
+
var Yl = [];
|
|
5468
|
+
for (let e = 0; e < 256; ++e) Yl.push((e + 256).toString(16).slice(1));
|
|
5469
|
+
function Xl(e, t = 0) {
|
|
5470
|
+
return (Yl[e[t + 0]] + Yl[e[t + 1]] + Yl[e[t + 2]] + Yl[e[t + 3]] + "-" + Yl[e[t + 4]] + Yl[e[t + 5]] + "-" + Yl[e[t + 6]] + Yl[e[t + 7]] + "-" + Yl[e[t + 8]] + Yl[e[t + 9]] + "-" + Yl[e[t + 10]] + Yl[e[t + 11]] + Yl[e[t + 12]] + Yl[e[t + 13]] + Yl[e[t + 14]] + Yl[e[t + 15]]).toLowerCase();
|
|
5467
5471
|
}
|
|
5468
5472
|
//#endregion
|
|
5469
5473
|
//#region node_modules/uuid/dist/rng.js
|
|
5470
|
-
var
|
|
5471
|
-
function
|
|
5472
|
-
return crypto.getRandomValues(
|
|
5474
|
+
var Zl = /* @__PURE__ */ new Uint8Array(16);
|
|
5475
|
+
function Ql() {
|
|
5476
|
+
return crypto.getRandomValues(Zl);
|
|
5473
5477
|
}
|
|
5474
5478
|
//#endregion
|
|
5475
5479
|
//#region node_modules/uuid/dist/v1.js
|
|
5476
|
-
var
|
|
5477
|
-
function
|
|
5480
|
+
var $l = {};
|
|
5481
|
+
function eu(e, t, n) {
|
|
5478
5482
|
let r, i = e?._v6 ?? !1;
|
|
5479
5483
|
if (e) {
|
|
5480
5484
|
let t = Object.keys(e);
|
|
5481
5485
|
t.length === 1 && t[0] === "_v6" && (e = void 0);
|
|
5482
5486
|
}
|
|
5483
|
-
if (e) r =
|
|
5487
|
+
if (e) r = nu(e.random ?? e.rng?.() ?? Ql(), e.msecs, e.nsecs, e.clockseq, e.node, t, n);
|
|
5484
5488
|
else {
|
|
5485
|
-
let e = Date.now(), a =
|
|
5486
|
-
$l
|
|
5489
|
+
let e = Date.now(), a = Ql();
|
|
5490
|
+
tu($l, e, a), r = nu(a, $l.msecs, $l.nsecs, i ? void 0 : $l.clockseq, i ? void 0 : $l.node, t, n);
|
|
5487
5491
|
}
|
|
5488
|
-
return t ??
|
|
5492
|
+
return t ?? Xl(r);
|
|
5489
5493
|
}
|
|
5490
|
-
function
|
|
5494
|
+
function tu(e, t, n) {
|
|
5491
5495
|
return e.msecs ??= -Infinity, e.nsecs ??= 0, t === e.msecs ? (e.nsecs++, e.nsecs >= 1e4 && (e.node = void 0, e.nsecs = 0)) : t > e.msecs ? e.nsecs = 0 : t < e.msecs && (e.node = void 0), e.node || (e.node = n.slice(10, 16), e.node[0] |= 1, e.clockseq = (n[8] << 8 | n[9]) & 16383), e.msecs = t, e;
|
|
5492
5496
|
}
|
|
5493
|
-
function
|
|
5497
|
+
function nu(e, t, n, r, i, a, o = 0) {
|
|
5494
5498
|
if (e.length < 16) throw Error("Random bytes length must be >= 16");
|
|
5495
5499
|
if (!a) a = /* @__PURE__ */ new Uint8Array(16), o = 0;
|
|
5496
5500
|
else if (o < 0 || o + 16 > a.length) throw RangeError(`UUID byte range ${o}:${o + 15} is out of buffer bounds`);
|
|
@@ -5504,25 +5508,25 @@ function eu(e, t, n, r, i, a, o = 0) {
|
|
|
5504
5508
|
}
|
|
5505
5509
|
//#endregion
|
|
5506
5510
|
//#region node_modules/uuid/dist/v4.js
|
|
5507
|
-
function
|
|
5508
|
-
return !t && !e && crypto.randomUUID ? crypto.randomUUID() :
|
|
5511
|
+
function ru(e, t, n) {
|
|
5512
|
+
return !t && !e && crypto.randomUUID ? crypto.randomUUID() : iu(e, t, n);
|
|
5509
5513
|
}
|
|
5510
|
-
function
|
|
5514
|
+
function iu(e, t, n) {
|
|
5511
5515
|
e ||= {};
|
|
5512
|
-
let r = e.random ?? e.rng?.() ??
|
|
5516
|
+
let r = e.random ?? e.rng?.() ?? Ql();
|
|
5513
5517
|
if (r.length < 16) throw Error("Random bytes length must be >= 16");
|
|
5514
5518
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
5515
5519
|
if (n ||= 0, n < 0 || n + 16 > t.length) throw RangeError(`UUID byte range ${n}:${n + 15} is out of buffer bounds`);
|
|
5516
5520
|
for (let e = 0; e < 16; ++e) t[n + e] = r[e];
|
|
5517
5521
|
return t;
|
|
5518
5522
|
}
|
|
5519
|
-
return
|
|
5523
|
+
return Xl(r);
|
|
5520
5524
|
}
|
|
5521
5525
|
//#endregion
|
|
5522
5526
|
//#region src/utils/generator.ts
|
|
5523
|
-
var
|
|
5524
|
-
function
|
|
5525
|
-
let a = M(!1), o = M(null), s = M(null), c = M(
|
|
5527
|
+
var au = () => eu(), ou = () => ru(), su = "a-sortable-widget__handle", cu = "a-sortable-widget__ghost", lu = "a-sortable-widget__drag", uu = "a-sortable-widget__chosen", du = "a-sortable-widget__group";
|
|
5528
|
+
function fu(e, t, r, i) {
|
|
5529
|
+
let a = M(!1), o = M(null), s = M(null), c = M(au()), l = M(null), u = M(0), d = M(r.dirty);
|
|
5526
5530
|
function f(e, t) {
|
|
5527
5531
|
return {
|
|
5528
5532
|
key: e[r.keyField],
|
|
@@ -5613,7 +5617,7 @@ function uu(e, t, r, i) {
|
|
|
5613
5617
|
}
|
|
5614
5618
|
//#endregion
|
|
5615
5619
|
//#region src/components/sortable/sortableUtils.ts
|
|
5616
|
-
var
|
|
5620
|
+
var pu = "a-sortable-", mu = ["id"], hu = { key: 1 }, gu = { class: "a-sortable-widget__before" }, _u = { class: "a-sortable-widget__content" }, vu = { class: "a-sortable-widget__after" }, yu = /* @__PURE__ */ u({
|
|
5617
5621
|
__name: "ASortable",
|
|
5618
5622
|
props: {
|
|
5619
5623
|
modelValue: {},
|
|
@@ -5693,14 +5697,14 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5693
5697
|
return;
|
|
5694
5698
|
}
|
|
5695
5699
|
p("onAddLast", null);
|
|
5696
|
-
}, C = n(() => H(f.widgetIdentifierId) ?
|
|
5700
|
+
}, C = n(() => H(f.widgetIdentifierId) ? pu + ce.value : f.widgetIdentifierId), w = n(() => f.rootClassName + " " + (f.chips ? f.rootClassName + "--chips" : "")), E = () => {
|
|
5697
5701
|
if (f.disableDraggable || !se.value) return;
|
|
5698
|
-
let e = se.value.querySelector("." +
|
|
5699
|
-
e && (oe.value =
|
|
5700
|
-
handle: "." +
|
|
5701
|
-
ghostClass:
|
|
5702
|
-
dragClass:
|
|
5703
|
-
chosenClass:
|
|
5702
|
+
let e = se.value.querySelector("." + du);
|
|
5703
|
+
e && (oe.value = Gl(e, [], {
|
|
5704
|
+
handle: "." + su,
|
|
5705
|
+
ghostClass: cu,
|
|
5706
|
+
dragClass: lu,
|
|
5707
|
+
chosenClass: uu,
|
|
5704
5708
|
onEnd: async (e) => {
|
|
5705
5709
|
if (f.disableDefaultSort || H(e.oldIndex) || H(e.newIndex)) return;
|
|
5706
5710
|
let t = j(e.oldIndex, e.newIndex);
|
|
@@ -5710,7 +5714,7 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5710
5714
|
p("onStart");
|
|
5711
5715
|
}
|
|
5712
5716
|
}));
|
|
5713
|
-
}, { items: D, forceRerender: O, dirtyLocal: A, moveArrayElement: j, itemToRemove: M, removeDialog: P, destroy: ne, refresh: re, onRemoveDialogConfirm: ie, sortableInstance: oe, widgetEl: se, randomUuid: ce, addAfterId: le, removeById: ue, updateData: de, addAfterIndex: fe, removeByIndex: pe, updateDataAtIndex: me } =
|
|
5717
|
+
}, { items: D, forceRerender: O, dirtyLocal: A, moveArrayElement: j, itemToRemove: M, removeDialog: P, destroy: ne, refresh: re, onRemoveDialogConfirm: ie, sortableInstance: oe, widgetEl: se, randomUuid: ce, addAfterId: le, removeById: ue, updateData: de, addAfterIndex: fe, removeByIndex: pe, updateDataAtIndex: me } = fu(m, E, f, p);
|
|
5714
5718
|
return T(() => {
|
|
5715
5719
|
ne();
|
|
5716
5720
|
}), x(() => {
|
|
@@ -5735,23 +5739,23 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5735
5739
|
class: S(w.value)
|
|
5736
5740
|
}, [(k(), a("div", {
|
|
5737
5741
|
key: I(O),
|
|
5738
|
-
class: S(I(
|
|
5739
|
-
}, [(k(!0), a(e, null, ee(I(D), (
|
|
5742
|
+
class: S(I(du))
|
|
5743
|
+
}, [(k(!0), a(e, null, ee(I(D), (u, d) => (k(), a(e, { key: u.key }, [t.chips ? (k(), r(ge, {
|
|
5740
5744
|
key: 0,
|
|
5741
5745
|
size: t.chipSize,
|
|
5742
5746
|
class: "mr-1",
|
|
5743
5747
|
"prepend-icon": t.disableDraggable ? void 0 : "mdi-drag",
|
|
5744
5748
|
"append-icon": t.showDeleteButton ? "mdi-drag" : void 0,
|
|
5745
|
-
"onClick:close": (e) => v(
|
|
5749
|
+
"onClick:close": (e) => v(u)
|
|
5746
5750
|
}, s({
|
|
5747
|
-
default: R(() => [N(n.$slots, "item", { item:
|
|
5751
|
+
default: R(() => [N(n.$slots, "item", { item: u })]),
|
|
5748
5752
|
_: 2
|
|
5749
5753
|
}, [t.disableDraggable ? void 0 : {
|
|
5750
5754
|
name: "prepend",
|
|
5751
5755
|
fn: R(() => [l(B, {
|
|
5752
5756
|
class: S({
|
|
5753
|
-
[I(
|
|
5754
|
-
[I(
|
|
5757
|
+
[I(su)]: !0,
|
|
5758
|
+
[I(su) + "--disabled"]: t.disableDraggable
|
|
5755
5759
|
}),
|
|
5756
5760
|
icon: "mdi-drag"
|
|
5757
5761
|
}, null, 8, ["class"])]),
|
|
@@ -5762,7 +5766,7 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5762
5766
|
class: "ml-2",
|
|
5763
5767
|
icon: "mdi-close-circle",
|
|
5764
5768
|
size: "large",
|
|
5765
|
-
onClick: z((e) => v(
|
|
5769
|
+
onClick: z((e) => v(u), ["stop"])
|
|
5766
5770
|
}, null, 8, ["onClick"])]),
|
|
5767
5771
|
key: "1"
|
|
5768
5772
|
} : void 0]), 1032, [
|
|
@@ -5770,28 +5774,28 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5770
5774
|
"prepend-icon",
|
|
5771
5775
|
"append-icon",
|
|
5772
5776
|
"onClick:close"
|
|
5773
|
-
])) : (k(), a("div",
|
|
5774
|
-
o("div",
|
|
5777
|
+
])) : (k(), a("div", hu, [
|
|
5778
|
+
o("div", gu, [N(n.$slots, "itemBefore", { item: u })]),
|
|
5775
5779
|
o("div", { class: S(["a-sortable-widget__item", {
|
|
5776
|
-
"a-sortable-widget__item--last":
|
|
5777
|
-
"a-sortable-widget__item--first":
|
|
5780
|
+
"a-sortable-widget__item--last": d + 1 === I(D).length,
|
|
5781
|
+
"a-sortable-widget__item--first": d === 0
|
|
5778
5782
|
}]) }, [
|
|
5779
5783
|
l(B, {
|
|
5780
5784
|
class: S({
|
|
5781
|
-
[I(
|
|
5782
|
-
[I(
|
|
5785
|
+
[I(su)]: !0,
|
|
5786
|
+
[I(su) + "--disabled"]: t.disableDraggable
|
|
5783
5787
|
}),
|
|
5784
5788
|
icon: "mdi-drag"
|
|
5785
5789
|
}, null, 8, ["class"]),
|
|
5786
|
-
o("div",
|
|
5787
|
-
o("div", { class: S(["a-sortable-widget__buttons", { "a-sortable-widget__buttons--permanent": t.permanentButtons }]) }, [N(n.$slots, "item-buttons", { item:
|
|
5790
|
+
o("div", _u, [N(n.$slots, "item", { item: u })]),
|
|
5791
|
+
o("div", { class: S(["a-sortable-widget__buttons", { "a-sortable-widget__buttons--permanent": t.permanentButtons }]) }, [N(n.$slots, "item-buttons", { item: u }, () => [
|
|
5788
5792
|
t.showEditButton ? (k(), r(V, {
|
|
5789
5793
|
key: 0,
|
|
5790
5794
|
icon: "",
|
|
5791
5795
|
size: "x-small",
|
|
5792
5796
|
variant: "text",
|
|
5793
5797
|
class: "mx-1",
|
|
5794
|
-
onClick: z((e) => y(
|
|
5798
|
+
onClick: z((e) => y(u), ["stop"])
|
|
5795
5799
|
}, {
|
|
5796
5800
|
default: R(() => [l(B, { icon: "mdi-pencil" }), l(De, {
|
|
5797
5801
|
anchor: "bottom",
|
|
@@ -5806,7 +5810,7 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5806
5810
|
size: "x-small",
|
|
5807
5811
|
variant: "text",
|
|
5808
5812
|
class: "mx-1",
|
|
5809
|
-
onClick: z((e) => v(
|
|
5813
|
+
onClick: z((e) => v(u), ["stop"])
|
|
5810
5814
|
}, {
|
|
5811
5815
|
default: R(() => [l(B, { icon: "mdi-trash-can-outline" }), l(De, {
|
|
5812
5816
|
anchor: "bottom",
|
|
@@ -5815,7 +5819,7 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5815
5819
|
}, null, 8, ["text"])]),
|
|
5816
5820
|
_: 1
|
|
5817
5821
|
}, 8, ["onClick"])) : i("", !0),
|
|
5818
|
-
N(n.$slots, "buttons", { item:
|
|
5822
|
+
N(n.$slots, "buttons", { item: u }),
|
|
5819
5823
|
t.showAddAfterButton ? (k(), r(V, {
|
|
5820
5824
|
key: 2,
|
|
5821
5825
|
icon: "",
|
|
@@ -5828,15 +5832,15 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5828
5832
|
l(De, {
|
|
5829
5833
|
anchor: "bottom",
|
|
5830
5834
|
activator: "parent",
|
|
5831
|
-
text: "
|
|
5832
|
-
}),
|
|
5835
|
+
text: I(h)("common.sortable.moreOptions")
|
|
5836
|
+
}, null, 8, ["text"]),
|
|
5833
5837
|
l(Ke, { activator: "parent" }, {
|
|
5834
5838
|
default: R(() => [l(Ue, { density: "compact" }, {
|
|
5835
5839
|
default: R(() => [t.showAddAfterButton ? (k(), r(We, {
|
|
5836
5840
|
key: 0,
|
|
5837
|
-
onClick: z((e) => g(
|
|
5841
|
+
onClick: z((e) => g(u), ["stop"])
|
|
5838
5842
|
}, {
|
|
5839
|
-
default: R(() => [
|
|
5843
|
+
default: R(() => [c(F(I(h)("common.sortable.addNewAfter")), 1)]),
|
|
5840
5844
|
_: 1
|
|
5841
5845
|
}, 8, ["onClick"])) : i("", !0)]),
|
|
5842
5846
|
_: 2
|
|
@@ -5848,8 +5852,8 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5848
5852
|
}, 1024)) : i("", !0)
|
|
5849
5853
|
])], 2)
|
|
5850
5854
|
], 2),
|
|
5851
|
-
o("div",
|
|
5852
|
-
]))], 64))), 128))], 2))], 10,
|
|
5855
|
+
o("div", vu, [N(n.$slots, "itemAfter", { item: u })])
|
|
5856
|
+
]))], 64))), 128))], 2))], 10, mu),
|
|
5853
5857
|
N(n.$slots, "add-last-activator", { props: { onClick: z(() => b(), ["stop"]) } }, () => [t.showAddLastButton ? (k(), r(V, {
|
|
5854
5858
|
key: 0,
|
|
5855
5859
|
size: "small",
|
|
@@ -5893,12 +5897,12 @@ var du = "a-sortable-", fu = ["id"], pu = { key: 1 }, mu = { class: "a-sortable-
|
|
|
5893
5897
|
});
|
|
5894
5898
|
//#endregion
|
|
5895
5899
|
//#region src/model/factory/UserAdminConfigFactory.ts
|
|
5896
|
-
function
|
|
5900
|
+
function bu() {
|
|
5897
5901
|
return { createDefaultUserAdminConfig: (e) => ({
|
|
5898
5902
|
id: 0,
|
|
5899
5903
|
user: 0,
|
|
5900
|
-
configType:
|
|
5901
|
-
layoutType:
|
|
5904
|
+
configType: _s,
|
|
5905
|
+
layoutType: ys,
|
|
5902
5906
|
systemResource: "",
|
|
5903
5907
|
customName: "",
|
|
5904
5908
|
defaultConfig: !1,
|
|
@@ -5914,19 +5918,19 @@ function vu() {
|
|
|
5914
5918
|
}
|
|
5915
5919
|
//#endregion
|
|
5916
5920
|
//#region src/labs/filters/FilterBookmarkDialog.vue?vue&type=script&setup=true&lang.ts
|
|
5917
|
-
var
|
|
5921
|
+
var xu = {
|
|
5918
5922
|
key: 0,
|
|
5919
5923
|
class: "w-100 pt-4"
|
|
5920
|
-
},
|
|
5924
|
+
}, Su = {
|
|
5921
5925
|
key: 1,
|
|
5922
5926
|
class: "w-100 pt-4"
|
|
5923
|
-
},
|
|
5927
|
+
}, Cu = {
|
|
5924
5928
|
key: 0,
|
|
5925
5929
|
class: "d-flex w-100 align-center justify-center"
|
|
5926
|
-
},
|
|
5930
|
+
}, wu = { key: 1 }, Tu = {
|
|
5927
5931
|
key: 0,
|
|
5928
5932
|
class: "d-flex align-center justify-end"
|
|
5929
|
-
},
|
|
5933
|
+
}, Eu = /* @__PURE__ */ u({
|
|
5930
5934
|
__name: "FilterBookmarkDialog",
|
|
5931
5935
|
props: {
|
|
5932
5936
|
client: {},
|
|
@@ -5937,7 +5941,7 @@ var yu = {
|
|
|
5937
5941
|
},
|
|
5938
5942
|
emits: ["onClose"],
|
|
5939
5943
|
setup(e, { emit: t }) {
|
|
5940
|
-
let n = e, o = t, u = h(
|
|
5944
|
+
let n = e, o = t, u = h(xo), d = h(bo), f = h(Eo);
|
|
5941
5945
|
if (H(f) || H(u) || H(d)) throw Error("Incorrect provide/inject config.");
|
|
5942
5946
|
let p = M("add"), m = M(""), g = M(!1), _ = M(!1), v = M(!1), y = M(!1), b = M(!1), S = M([]), C = M(null), { required: w, maxLength: T } = Ra(), E = { customName: {
|
|
5943
5947
|
required: w,
|
|
@@ -5945,7 +5949,7 @@ var yu = {
|
|
|
5945
5949
|
} }, D = Ze(E, { customName: m }, { $stopPropagation: !0 }), O = { itemEdit: {
|
|
5946
5950
|
required: w,
|
|
5947
5951
|
maxLength: T(100)
|
|
5948
|
-
} }, A = Ze(O, { itemEdit: C }, { $stopPropagation: !0 }), j =
|
|
5952
|
+
} }, A = Ze(O, { itemEdit: C }, { $stopPropagation: !0 }), j = xs(), { createUserAdminConfig: ee, useFetchUserAdminConfigList: N, updateUserAdminConfigPositions: P, deleteUserAdminConfig: ne, updateUserAdminConfig: re } = Ts(n.client, n.system), { t: ie } = he(), { showErrorsDefault: ae, showValidationError: oe, showWarningT: se } = Di(), { createDefaultUserAdminConfig: ce } = bu(), ue = async () => {
|
|
5949
5953
|
v.value = !0;
|
|
5950
5954
|
let e = S.value.map((e) => e.id);
|
|
5951
5955
|
try {
|
|
@@ -5953,10 +5957,10 @@ var yu = {
|
|
|
5953
5957
|
} catch (e) {
|
|
5954
5958
|
ae(e), v.value = !1;
|
|
5955
5959
|
}
|
|
5956
|
-
}, { serializeFilters: de } =
|
|
5960
|
+
}, { serializeFilters: de } = Uo(d, u), fe = n.system + "_" + n.subject, pe = async () => {
|
|
5957
5961
|
v.value = !0, b.value = !1;
|
|
5958
5962
|
let e = ce(n.system);
|
|
5959
|
-
e.user = n.user, e.configType =
|
|
5963
|
+
e.user = n.user, e.configType = gs.FilterBookmark, e.layoutType = vs.Desktop, e.systemResource = fe, e.customName = m.value, e.data = {
|
|
5960
5964
|
filter: de(d, f, !1),
|
|
5961
5965
|
datatableHiddenColumns: g.value && n.datatableHiddenColumns ? n.datatableHiddenColumns : void 0,
|
|
5962
5966
|
sortBy: _.value && f.value.sortBy ? f.value.sortBy : void 0
|
|
@@ -5964,7 +5968,7 @@ var yu = {
|
|
|
5964
5968
|
try {
|
|
5965
5969
|
let t = await j.fetchBookmarksCount({
|
|
5966
5970
|
user: n.user,
|
|
5967
|
-
layoutType:
|
|
5971
|
+
layoutType: vs.Desktop,
|
|
5968
5972
|
systemResource: fe
|
|
5969
5973
|
}, N);
|
|
5970
5974
|
if (t >= 8) {
|
|
@@ -5973,7 +5977,7 @@ var yu = {
|
|
|
5973
5977
|
}
|
|
5974
5978
|
e.position = t + 1;
|
|
5975
5979
|
let r = await ee(e);
|
|
5976
|
-
j.addOne(j.generateKey(
|
|
5980
|
+
j.addOne(j.generateKey(vs.Desktop, fe), r), o("onClose");
|
|
5977
5981
|
} catch (e) {
|
|
5978
5982
|
if (ii(e) && ai(e, "error_field_not_unique", "cms.userAdminConfig.model.systemResource")) {
|
|
5979
5983
|
se("common.filter.bookmark.nameUniqueError");
|
|
@@ -6024,7 +6028,7 @@ var yu = {
|
|
|
6024
6028
|
try {
|
|
6025
6029
|
S.value = await j.getBookmarks({
|
|
6026
6030
|
user: n.user,
|
|
6027
|
-
layoutType:
|
|
6031
|
+
layoutType: vs.Desktop,
|
|
6028
6032
|
systemResource: fe
|
|
6029
6033
|
}, N, !0);
|
|
6030
6034
|
} catch (e) {
|
|
@@ -6061,7 +6065,7 @@ var yu = {
|
|
|
6061
6065
|
_: 1
|
|
6062
6066
|
})]),
|
|
6063
6067
|
_: 1
|
|
6064
|
-
}, 8, ["modelValue"]), p.value === "add" ? (k(), a("div",
|
|
6068
|
+
}, 8, ["modelValue"]), p.value === "add" ? (k(), a("div", xu, [
|
|
6065
6069
|
l(kt, { title: I(ie)("common.filter.bookmark.infoSave") }, null, 8, ["title"]),
|
|
6066
6070
|
b.value ? (k(), r(kt, {
|
|
6067
6071
|
key: 0,
|
|
@@ -6083,7 +6087,7 @@ var yu = {
|
|
|
6083
6087
|
_: 1
|
|
6084
6088
|
}),
|
|
6085
6089
|
l(kt, null, {
|
|
6086
|
-
default: R(() => [l(
|
|
6090
|
+
default: R(() => [l(mo, {
|
|
6087
6091
|
modelValue: g.value,
|
|
6088
6092
|
"onUpdate:modelValue": t[3] ||= (e) => g.value = e,
|
|
6089
6093
|
label: I(ie)("common.filter.bookmark.storeTableColumns")
|
|
@@ -6091,14 +6095,14 @@ var yu = {
|
|
|
6091
6095
|
_: 1
|
|
6092
6096
|
}),
|
|
6093
6097
|
l(kt, null, {
|
|
6094
|
-
default: R(() => [l(
|
|
6098
|
+
default: R(() => [l(mo, {
|
|
6095
6099
|
modelValue: _.value,
|
|
6096
6100
|
"onUpdate:modelValue": t[4] ||= (e) => _.value = e,
|
|
6097
6101
|
label: I(ie)("common.filter.bookmark.storeTableOrder")
|
|
6098
6102
|
}, null, 8, ["modelValue", "label"])]),
|
|
6099
6103
|
_: 1
|
|
6100
6104
|
})
|
|
6101
|
-
])) : p.value === "manage" ? (k(), a("div",
|
|
6105
|
+
])) : p.value === "manage" ? (k(), a("div", Su, [y.value ? (k(), a("div", Cu, [l(xe, { indeterminate: "" })])) : (k(), r(yu, {
|
|
6102
6106
|
key: 1,
|
|
6103
6107
|
modelValue: S.value,
|
|
6104
6108
|
"onUpdate:modelValue": t[7] ||= (e) => S.value = e,
|
|
@@ -6116,11 +6120,11 @@ var yu = {
|
|
|
6116
6120
|
"onUpdate:modelValue": t[5] ||= (e) => C.value.customName = e,
|
|
6117
6121
|
"hide-details": "auto",
|
|
6118
6122
|
v: I(A)
|
|
6119
|
-
}, null, 8, ["modelValue", "v"])) : (k(), a("div",
|
|
6123
|
+
}, null, 8, ["modelValue", "v"])) : (k(), a("div", wu, F(e.raw.customName), 1))]),
|
|
6120
6124
|
_: 2
|
|
6121
6125
|
}, [I(W)(C.value) ? void 0 : {
|
|
6122
6126
|
name: "item-buttons",
|
|
6123
|
-
fn: R(({ item: e }) => [C.value && C.value.id === e.raw.id ? (k(), a("div",
|
|
6127
|
+
fn: R(({ item: e }) => [C.value && C.value.id === e.raw.id ? (k(), a("div", Tu, [l(V, {
|
|
6124
6128
|
icon: "",
|
|
6125
6129
|
size: "x-small",
|
|
6126
6130
|
variant: "text",
|
|
@@ -6179,7 +6183,7 @@ var yu = {
|
|
|
6179
6183
|
});
|
|
6180
6184
|
};
|
|
6181
6185
|
}
|
|
6182
|
-
}),
|
|
6186
|
+
}), Du = /* @__PURE__ */ u({
|
|
6183
6187
|
__name: "AFilterBookmarkButton",
|
|
6184
6188
|
props: /*@__PURE__*/ y({
|
|
6185
6189
|
client: {},
|
|
@@ -6222,7 +6226,7 @@ var yu = {
|
|
|
6222
6226
|
_: 1
|
|
6223
6227
|
})]),
|
|
6224
6228
|
_: 1
|
|
6225
|
-
}, 8, ["class", "data-cy"]), n.value ? (k(), r(
|
|
6229
|
+
}, 8, ["class", "data-cy"]), n.value ? (k(), r(Eu, {
|
|
6226
6230
|
key: 0,
|
|
6227
6231
|
client: t.client,
|
|
6228
6232
|
system: t.system,
|
|
@@ -6238,10 +6242,10 @@ var yu = {
|
|
|
6238
6242
|
"datatable-hidden-columns"
|
|
6239
6243
|
])) : i("", !0)], 64));
|
|
6240
6244
|
}
|
|
6241
|
-
}),
|
|
6245
|
+
}), Ou = { class: "subject-select-filter__content px-2 py-4" }, ku = { class: "d-flex flex-wrap align-center" }, Au = {
|
|
6242
6246
|
key: 0,
|
|
6243
6247
|
class: "subject-select-filter__actions"
|
|
6244
|
-
},
|
|
6248
|
+
}, ju = /* @__PURE__ */ u({
|
|
6245
6249
|
__name: "AFilterWrapperSubjectSelect",
|
|
6246
6250
|
props: /*@__PURE__*/ y({
|
|
6247
6251
|
hideButtons: {
|
|
@@ -6275,7 +6279,7 @@ var yu = {
|
|
|
6275
6279
|
"bookmarkLoadAfter"
|
|
6276
6280
|
], ["update:datatableHiddenColumns"]),
|
|
6277
6281
|
setup(t, { expose: s, emit: c }) {
|
|
6278
|
-
let u = t, d = c, f = se(t, "datatableHiddenColumns"), p = h(
|
|
6282
|
+
let u = t, d = c, f = se(t, "datatableHiddenColumns"), p = h(Do, () => {}), m = h(xo), g = h(bo);
|
|
6279
6283
|
if (H(m) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
6280
6284
|
let _ = M({
|
|
6281
6285
|
system: m.general.system,
|
|
@@ -6283,14 +6287,14 @@ var yu = {
|
|
|
6283
6287
|
});
|
|
6284
6288
|
Pt(u.store) ? !1 === u.store && (_.value.system = void 0, _.value.subject = void 0) : (_.value.system = u.store.system, _.value.subject = u.store.subject);
|
|
6285
6289
|
let v = M(0);
|
|
6286
|
-
A(
|
|
6290
|
+
A(wo, v);
|
|
6287
6291
|
let y = M(/* @__PURE__ */ new Map());
|
|
6288
|
-
A(
|
|
6292
|
+
A(To, y);
|
|
6289
6293
|
let b = () => {
|
|
6290
6294
|
v.value++, x(() => {
|
|
6291
6295
|
d("submit"), p();
|
|
6292
6296
|
});
|
|
6293
|
-
}, { clearAll: S, clearAllFilterSelected: C } =
|
|
6297
|
+
}, { clearAll: S, clearAllFilterSelected: C } = Vo(), w = () => {
|
|
6294
6298
|
x(() => {
|
|
6295
6299
|
v.value++, d("bookmarkLoadAfter"), p();
|
|
6296
6300
|
});
|
|
@@ -6306,9 +6310,9 @@ var yu = {
|
|
|
6306
6310
|
name: t.formName,
|
|
6307
6311
|
onSubmit: z(b, ["prevent"])
|
|
6308
6312
|
}, {
|
|
6309
|
-
default: R(() => [o("div",
|
|
6313
|
+
default: R(() => [o("div", Ou, [N(n.$slots, "bookmarks", {}, () => [l(ve, { density: "compact" }, {
|
|
6310
6314
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(_e, { key: 0 }, {
|
|
6311
|
-
default: R(() => [o("div",
|
|
6315
|
+
default: R(() => [o("div", ku, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Os, {
|
|
6312
6316
|
key: 0,
|
|
6313
6317
|
"datatable-hidden-columns": f.value,
|
|
6314
6318
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -6336,7 +6340,7 @@ var yu = {
|
|
|
6336
6340
|
lg: I(m).fields[e].render.lg || 12,
|
|
6337
6341
|
xl: I(m).fields[e].render.xl || 12
|
|
6338
6342
|
}, {
|
|
6339
|
-
default: R(() => [N(n.$slots, I(
|
|
6343
|
+
default: R(() => [N(n.$slots, I(us)(e), { itemConfig: I(m).fields[e] }, () => [l(ms, { name: e }, null, 8, ["name"])])]),
|
|
6340
6344
|
_: 2
|
|
6341
6345
|
}, 1032, [
|
|
6342
6346
|
"cols",
|
|
@@ -6346,10 +6350,10 @@ var yu = {
|
|
|
6346
6350
|
"xl"
|
|
6347
6351
|
]))), 128))]),
|
|
6348
6352
|
_: 3
|
|
6349
|
-
})])]), t.hideButtons ? i("", !0) : (k(), a("div",
|
|
6353
|
+
})])]), t.hideButtons ? i("", !0) : (k(), a("div", Au, [N(n.$slots, "buttons", {}, () => [
|
|
6350
6354
|
l(na, { touched: E.value }, null, 8, ["touched"]),
|
|
6351
6355
|
l(ra, { onReset: T }),
|
|
6352
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
6356
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Du, {
|
|
6353
6357
|
key: 0,
|
|
6354
6358
|
client: t.client,
|
|
6355
6359
|
user: t.userId,
|
|
@@ -6367,10 +6371,10 @@ var yu = {
|
|
|
6367
6371
|
_: 3
|
|
6368
6372
|
}, 8, ["name"]));
|
|
6369
6373
|
}
|
|
6370
|
-
}),
|
|
6374
|
+
}), Mu = {
|
|
6371
6375
|
key: 0,
|
|
6372
6376
|
class: "required"
|
|
6373
|
-
},
|
|
6377
|
+
}, Nu = /* @__PURE__ */ u({
|
|
6374
6378
|
__name: "AFormRemoteAutocompleteWithCached",
|
|
6375
6379
|
props: /*@__PURE__*/ y({
|
|
6376
6380
|
modelValue: {},
|
|
@@ -6432,7 +6436,7 @@ var yu = {
|
|
|
6432
6436
|
"update:fetchedItemsMinimal"
|
|
6433
6437
|
]),
|
|
6434
6438
|
setup(e, { emit: t }) {
|
|
6435
|
-
let o = e, u = t, d = se(e, "search"), p = se(e, "loadingLocal"), m = se(e, "fetchedItemsMinimal"), g = h(
|
|
6439
|
+
let o = e, u = t, d = se(e, "search"), p = se(e, "loadingLocal"), m = se(e, "fetchedItemsMinimal"), g = h(Co), _ = h(So), v = f()?.type.__name;
|
|
6436
6440
|
if (H(g) || H(_)) throw Error(`[${v}] Incorrect provide/inject config.`);
|
|
6437
6441
|
if (H(g.fields[o.filterByField]) || H(_[o.filterByField])) throw Error(`[${v}] Incorrect filter inner config. FilterByField is '${o.filterByField}' and available options are ${Object.keys(_).join(", ")}.`);
|
|
6438
6442
|
let { fetch: y, add: x, addManualMinimal: S } = o.useCached(), C = n(() => {
|
|
@@ -6445,7 +6449,7 @@ var yu = {
|
|
|
6445
6449
|
set(e) {
|
|
6446
6450
|
u("update:modelValue", K(e));
|
|
6447
6451
|
}
|
|
6448
|
-
}), { t: T } = he(), E = h($t, void 0), D = h(en, void 0), O = M(!1), { pagination: A } =
|
|
6452
|
+
}), { t: T } = he(), E = h($t, void 0), D = h(en, void 0), O = M(!1), { pagination: A } = $o(W(o.filterSortBy) ? null : o.filterSortBy.key, o.filterSortBy?.order), j = () => {
|
|
6449
6453
|
O.value = !0, u("focus", w.value);
|
|
6450
6454
|
}, ee = () => {
|
|
6451
6455
|
O.value = !1, o.v?.$touch(), u("blur", w.value);
|
|
@@ -6516,7 +6520,7 @@ var yu = {
|
|
|
6516
6520
|
onFocus: j,
|
|
6517
6521
|
"onClick:clear": I
|
|
6518
6522
|
}, s({
|
|
6519
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span",
|
|
6523
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span", Mu)) : i("", !0)]))]),
|
|
6520
6524
|
"append-item": R(() => [N(t.$slots, "append-item")]),
|
|
6521
6525
|
chip: R(({ props: e, internalItem: n }) => [N(t.$slots, "chip", {
|
|
6522
6526
|
props: e,
|
|
@@ -6542,7 +6546,7 @@ var yu = {
|
|
|
6542
6546
|
"no-data-text"
|
|
6543
6547
|
]));
|
|
6544
6548
|
}
|
|
6545
|
-
}),
|
|
6549
|
+
}), Pu = /* @__PURE__ */ u({
|
|
6546
6550
|
__name: "AFilterAdvancedButton",
|
|
6547
6551
|
props: {
|
|
6548
6552
|
tooltipT: { default: "common.button.advancedFilters" },
|
|
@@ -6572,10 +6576,10 @@ var yu = {
|
|
|
6572
6576
|
_: 1
|
|
6573
6577
|
}, 8, ["class", "data-cy"]));
|
|
6574
6578
|
}
|
|
6575
|
-
}),
|
|
6579
|
+
}), Fu = { class: "a-selected-filters__label text-body-small" }, Iu = /* @__PURE__ */ u({
|
|
6576
6580
|
__name: "FiltersSelected",
|
|
6577
6581
|
setup(t) {
|
|
6578
|
-
let i = h(
|
|
6582
|
+
let i = h(xo), s = h(bo), u = h(To);
|
|
6579
6583
|
if (H(i) || H(s) || H(u)) throw Error("Incorrect provide/inject config.");
|
|
6580
6584
|
let { t: d } = he(), f = (e) => {
|
|
6581
6585
|
let t = i.fields?.[e]?.titleT;
|
|
@@ -6587,21 +6591,30 @@ var yu = {
|
|
|
6587
6591
|
title: f(e),
|
|
6588
6592
|
options: t
|
|
6589
6593
|
})).sort((t, n) => e.indexOf(t.name) - e.indexOf(n.name));
|
|
6590
|
-
}), { clearOneFilterSelected: m, isClearable: g } =
|
|
6594
|
+
}), { clearOneFilterSelected: m, isClearable: g } = Vo(), _ = (e) => {
|
|
6595
|
+
if (!g(e, i)) return !1;
|
|
6596
|
+
let t = i.fields[e];
|
|
6597
|
+
if (t.type === "timeInterval" && t.related) {
|
|
6598
|
+
let e = i.fields[t.related];
|
|
6599
|
+
if (s[t.related] !== e.default) return !0;
|
|
6600
|
+
}
|
|
6601
|
+
let n = s[e];
|
|
6602
|
+
return G(n) ? !0 : n !== t.default;
|
|
6603
|
+
}, v = (e, t) => {
|
|
6591
6604
|
m(e, t, s, i, u), i.touched = !0;
|
|
6592
6605
|
};
|
|
6593
6606
|
return (t, n) => (k(!0), a(e, null, ee(p.value, (t) => (k(), a("div", {
|
|
6594
6607
|
key: t.name,
|
|
6595
6608
|
class: "a-selected-filters"
|
|
6596
|
-
}, [o("div",
|
|
6609
|
+
}, [o("div", Fu, F(t.title) + ":", 1), (k(!0), a(e, null, ee(t.options, (e) => (k(), a("div", {
|
|
6597
6610
|
key: e.value,
|
|
6598
6611
|
class: "a-selected-filters__chips"
|
|
6599
|
-
}, [
|
|
6612
|
+
}, [_(t.name) ? (k(), r(ge, {
|
|
6600
6613
|
key: 0,
|
|
6601
6614
|
closable: "",
|
|
6602
6615
|
size: "small",
|
|
6603
6616
|
class: "a-selected-filters__chip",
|
|
6604
|
-
"onClick:close": z((n) =>
|
|
6617
|
+
"onClick:close": z((n) => v(t.name, e.value), ["stop"])
|
|
6605
6618
|
}, {
|
|
6606
6619
|
close: R(() => [l(B, {
|
|
6607
6620
|
size: "16",
|
|
@@ -6618,7 +6631,7 @@ var yu = {
|
|
|
6618
6631
|
_: 2
|
|
6619
6632
|
}, 1024))]))), 128))]))), 128));
|
|
6620
6633
|
}
|
|
6621
|
-
}),
|
|
6634
|
+
}), Lu = { class: "d-flex flex-wrap align-center" }, Ru = { class: "a-filter__container" }, zu = { class: "a-filter__search" }, Bu = { key: 2 }, Vu = /* @__PURE__ */ u({
|
|
6622
6635
|
__name: "AFilterWrapper",
|
|
6623
6636
|
props: /*@__PURE__*/ y({
|
|
6624
6637
|
enableTop: {
|
|
@@ -6666,7 +6679,7 @@ var yu = {
|
|
|
6666
6679
|
"bookmarkLoadAfter"
|
|
6667
6680
|
], ["update:datatableHiddenColumns", "update:showDetail"]),
|
|
6668
6681
|
setup(t, { expose: s, emit: c }) {
|
|
6669
|
-
let u = t, d = c, f = se(t, "datatableHiddenColumns"), p = se(t, "showDetail"), m = h(
|
|
6682
|
+
let u = t, d = c, f = se(t, "datatableHiddenColumns"), p = se(t, "showDetail"), m = h(xo), g = h(bo);
|
|
6670
6683
|
if (H(m) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
6671
6684
|
let _ = M({
|
|
6672
6685
|
system: m.general.system,
|
|
@@ -6674,14 +6687,14 @@ var yu = {
|
|
|
6674
6687
|
});
|
|
6675
6688
|
Pt(u.store) ? !1 === u.store && (_.value.system = void 0, _.value.subject = void 0) : (_.value.system = u.store.system, _.value.subject = u.store.subject);
|
|
6676
6689
|
let v = M(0);
|
|
6677
|
-
A(
|
|
6690
|
+
A(wo, v);
|
|
6678
6691
|
let y = M(/* @__PURE__ */ new Map());
|
|
6679
|
-
A(
|
|
6692
|
+
A(To, y);
|
|
6680
6693
|
let b = () => {
|
|
6681
6694
|
v.value++, x(() => {
|
|
6682
6695
|
d("submit");
|
|
6683
6696
|
});
|
|
6684
|
-
}, { clearAll: C, clearAllFilterSelected: w } =
|
|
6697
|
+
}, { clearAll: C, clearAllFilterSelected: w } = Vo(), T = () => {
|
|
6685
6698
|
x(() => {
|
|
6686
6699
|
v.value++, d("bookmarkLoadAfter");
|
|
6687
6700
|
});
|
|
@@ -6712,7 +6725,7 @@ var yu = {
|
|
|
6712
6725
|
})) : i("", !0),
|
|
6713
6726
|
l(ve, { density: "compact" }, {
|
|
6714
6727
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(_e, { key: 0 }, {
|
|
6715
|
-
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div",
|
|
6728
|
+
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div", Lu, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Os, {
|
|
6716
6729
|
key: 0,
|
|
6717
6730
|
"datatable-hidden-columns": f.value,
|
|
6718
6731
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -6741,14 +6754,14 @@ var yu = {
|
|
|
6741
6754
|
key: 0,
|
|
6742
6755
|
cols: "auto"
|
|
6743
6756
|
}, {
|
|
6744
|
-
default: R(() => [l(
|
|
6757
|
+
default: R(() => [l(Pu, {
|
|
6745
6758
|
"button-active": p.value,
|
|
6746
6759
|
onAdvancedFilter: D
|
|
6747
6760
|
}, null, 8, ["button-active"])]),
|
|
6748
6761
|
_: 1
|
|
6749
6762
|
})),
|
|
6750
6763
|
l(_e, null, {
|
|
6751
|
-
default: R(() => [o("div",
|
|
6764
|
+
default: R(() => [o("div", Ru, [o("div", zu, [N(n.$slots, "search")]), l(Iu)])]),
|
|
6752
6765
|
_: 3
|
|
6753
6766
|
}),
|
|
6754
6767
|
t.hideButtons ? i("", !0) : (k(), r(_e, {
|
|
@@ -6759,7 +6772,7 @@ var yu = {
|
|
|
6759
6772
|
default: R(() => [N(n.$slots, "buttons", {}, () => [
|
|
6760
6773
|
l(na, { touched: O.value }, null, 8, ["touched"]),
|
|
6761
6774
|
l(ra, { onReset: E }),
|
|
6762
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
6775
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(Du, {
|
|
6763
6776
|
key: 0,
|
|
6764
6777
|
client: t.client,
|
|
6765
6778
|
user: t.userId,
|
|
@@ -6779,7 +6792,7 @@ var yu = {
|
|
|
6779
6792
|
]),
|
|
6780
6793
|
_: 3
|
|
6781
6794
|
})),
|
|
6782
|
-
t.hideMore ? i("", !0) : (k(), a("div",
|
|
6795
|
+
t.hideMore ? i("", !0) : (k(), a("div", Bu, [(k(), r(P(t.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
6783
6796
|
default: R(() => [fe(o("div", { class: S({ "mt-6 pa-4 system-border-a": !t.alwaysVisible }) }, [N(n.$slots, "detail", {}, () => [l(ve, null, {
|
|
6784
6797
|
default: R(() => [(k(!0), a(e, null, ee(j.value, (e) => (k(), r(_e, {
|
|
6785
6798
|
key: e,
|
|
@@ -6789,7 +6802,7 @@ var yu = {
|
|
|
6789
6802
|
lg: I(m).fields[e].render.lg || 3,
|
|
6790
6803
|
xl: I(m).fields[e].render.xl || 2
|
|
6791
6804
|
}, {
|
|
6792
|
-
default: R(() => [N(n.$slots, I(
|
|
6805
|
+
default: R(() => [N(n.$slots, I(us)(e), { itemConfig: I(m).fields[e] }, () => [l(ms, { name: e }, null, 8, ["name"])])]),
|
|
6793
6806
|
_: 2
|
|
6794
6807
|
}, 1032, [
|
|
6795
6808
|
"cols",
|
|
@@ -6806,12 +6819,12 @@ var yu = {
|
|
|
6806
6819
|
_: 3
|
|
6807
6820
|
}, 8, ["name"]));
|
|
6808
6821
|
}
|
|
6809
|
-
}),
|
|
6822
|
+
}), Hu = (e, t, n = {}, r, i, a = {}) => new Promise((o, s) => {
|
|
6810
6823
|
e().delete(la(t, n), a).then((e) => ua(e.status) ? e.data ? o(e.data) : e.status === 204 ? o(null) : s(new Ur()) : s(new li(e.status))).catch((e) => $r(e) ? s(new ti(e, e.config?.url)) : ri(e) ? s(new si(e, r, i, e)) : gi(e) ? s(new yi(e, r, i, e)) : di(e) ? s(new mi(e, e)) : s(new Ur(e)));
|
|
6811
6824
|
});
|
|
6812
6825
|
//#endregion
|
|
6813
6826
|
//#region src/labs/listEditor/composables/useContainerWidth.ts
|
|
6814
|
-
function
|
|
6827
|
+
function Uu(e, t = 769) {
|
|
6815
6828
|
let { width: r } = Pe(e);
|
|
6816
6829
|
return {
|
|
6817
6830
|
width: r,
|
|
@@ -6820,17 +6833,17 @@ function Vu(e, t = 769) {
|
|
|
6820
6833
|
}
|
|
6821
6834
|
//#endregion
|
|
6822
6835
|
//#region src/labs/listEditor/composables/useIsTouchDevice.ts
|
|
6823
|
-
function
|
|
6836
|
+
function Wu() {
|
|
6824
6837
|
let e = Ie("(any-pointer: fine)");
|
|
6825
6838
|
return n(() => !e.value);
|
|
6826
6839
|
}
|
|
6827
|
-
function
|
|
6840
|
+
function Gu() {
|
|
6828
6841
|
let e = Ie("(any-pointer: coarse)");
|
|
6829
6842
|
return n(() => e.value);
|
|
6830
6843
|
}
|
|
6831
6844
|
//#endregion
|
|
6832
6845
|
//#region src/labs/listEditor/composables/useKeyboardNav.ts
|
|
6833
|
-
function
|
|
6846
|
+
function Ku(e) {
|
|
6834
6847
|
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);
|
|
6835
6848
|
function l(e) {
|
|
6836
6849
|
let n = i.value;
|
|
@@ -6936,14 +6949,14 @@ function Wu(e) {
|
|
|
6936
6949
|
}
|
|
6937
6950
|
//#endregion
|
|
6938
6951
|
//#region src/labs/listEditor/utils/positions.ts
|
|
6939
|
-
var
|
|
6952
|
+
var qu = (e) => [...e].sort((e, t) => e.position - t.position), Ju = (e, t = []) => qu(e).map((e) => {
|
|
6940
6953
|
let n = e;
|
|
6941
6954
|
for (let r of t) {
|
|
6942
6955
|
let i = e[r];
|
|
6943
|
-
Array.isArray(i) && (n === e && (n = { ...e }), n[r] =
|
|
6956
|
+
Array.isArray(i) && (n === e && (n = { ...e }), n[r] = Ju(i, t));
|
|
6944
6957
|
}
|
|
6945
6958
|
return n;
|
|
6946
|
-
}),
|
|
6959
|
+
}), Yu = (e, t = {}) => {
|
|
6947
6960
|
let n = t.positionField ?? "position", r = t.positionMultiplier ?? 1;
|
|
6948
6961
|
return e.map((e, t) => {
|
|
6949
6962
|
let i = (t + 1) * r;
|
|
@@ -6952,7 +6965,7 @@ var Gu = (e) => [...e].sort((e, t) => e.position - t.position), Ku = (e, t = [])
|
|
|
6952
6965
|
[n]: i
|
|
6953
6966
|
};
|
|
6954
6967
|
});
|
|
6955
|
-
},
|
|
6968
|
+
}, Xu = (e, t = {}) => {
|
|
6956
6969
|
let n = t.positionField ?? "position", r = e.map((e) => e[n]);
|
|
6957
6970
|
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;
|
|
6958
6971
|
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.");
|
|
@@ -6961,10 +6974,10 @@ var Gu = (e) => [...e].sort((e, t) => e.position - t.position), Ku = (e, t = [])
|
|
|
6961
6974
|
...e,
|
|
6962
6975
|
[n]: i[t]
|
|
6963
6976
|
});
|
|
6964
|
-
},
|
|
6977
|
+
}, Zu = 0, Qu = () => --Zu;
|
|
6965
6978
|
//#endregion
|
|
6966
6979
|
//#region src/labs/listEditor/composables/useListEditorController.ts
|
|
6967
|
-
function
|
|
6980
|
+
function $u(e) {
|
|
6968
6981
|
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(() => oe(e.dirtyExclude) ?? []), f = (e, t) => e === "id" && typeof t == "number" && t < 0 ? void 0 : t, p = (e) => {
|
|
6969
6982
|
let t = { ...e };
|
|
6970
6983
|
a && delete t[o];
|
|
@@ -6989,7 +7002,7 @@ function Zu(e) {
|
|
|
6989
7002
|
return {
|
|
6990
7003
|
rows: e.map((e) => r(e) == null ? (n = !0, {
|
|
6991
7004
|
...e,
|
|
6992
|
-
[t]:
|
|
7005
|
+
[t]: Qu()
|
|
6993
7006
|
}) : e),
|
|
6994
7007
|
changed: n
|
|
6995
7008
|
};
|
|
@@ -7059,7 +7072,7 @@ function Zu(e) {
|
|
|
7059
7072
|
}), N = n(() => ee.value.size > 0), te = (e, t, n = !1) => {
|
|
7060
7073
|
let { invalid: r, warning: i } = A(e, t);
|
|
7061
7074
|
return r ? b.value ? "invalid" : n ? null : T(t) || D(t) ? "invalid" : null : i ? "warning" : null;
|
|
7062
|
-
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ?
|
|
7075
|
+
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ? Xu(e, { positionField: o }) : e : Yu(e, {
|
|
7063
7076
|
positionField: o,
|
|
7064
7077
|
positionMultiplier: s
|
|
7065
7078
|
}) : e, re = (t, n) => e.set(ne(t, n)), F = () => e.payload ? e.payload(e.get()) : ne(e.get(), "payload"), ie = () => {
|
|
@@ -7078,7 +7091,7 @@ function Zu(e) {
|
|
|
7078
7091
|
}, ae = (n) => {
|
|
7079
7092
|
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 ? {
|
|
7080
7093
|
...n,
|
|
7081
|
-
[t]:
|
|
7094
|
+
[t]: Qu()
|
|
7082
7095
|
} : n);
|
|
7083
7096
|
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;
|
|
7084
7097
|
}, I = (t) => {
|
|
@@ -7145,9 +7158,9 @@ function Zu(e) {
|
|
|
7145
7158
|
}
|
|
7146
7159
|
//#endregion
|
|
7147
7160
|
//#region src/labs/listEditor/composables/useNestedListEditor.ts
|
|
7148
|
-
var
|
|
7149
|
-
function
|
|
7150
|
-
let r = t.keyField ??
|
|
7161
|
+
var ed = "id", td = "position", nd = "parent";
|
|
7162
|
+
function rd(e, t) {
|
|
7163
|
+
let r = t.keyField ?? ed, i = t.getKey, a = t.positionField ?? td, o = t.parentField ?? nd, s = t.positionMultiplier ?? 1, c = t.maxDepth, l = (e) => i ? i(e) : e[r], u = (e) => {
|
|
7151
7164
|
if (!e.children || e.children.length === 0) return 1;
|
|
7152
7165
|
let t = 0;
|
|
7153
7166
|
for (let n of e.children) {
|
|
@@ -7338,19 +7351,19 @@ function td(e, t) {
|
|
|
7338
7351
|
}
|
|
7339
7352
|
//#endregion
|
|
7340
7353
|
//#region src/labs/listEditor/composables/useNestedListEditorController.ts
|
|
7341
|
-
var
|
|
7354
|
+
var id = (e) => {
|
|
7342
7355
|
let t = [], n = (e) => {
|
|
7343
7356
|
for (let r of e) t.push(r.data), r.children && r.children.length && n(r.children);
|
|
7344
7357
|
};
|
|
7345
7358
|
return n(e.children), t;
|
|
7346
|
-
},
|
|
7359
|
+
}, ad = (e, t) => {
|
|
7347
7360
|
let n = (e) => {
|
|
7348
7361
|
for (let r of e) t(r), r.children && r.children.length && n(r.children);
|
|
7349
7362
|
};
|
|
7350
7363
|
n(e.children);
|
|
7351
7364
|
};
|
|
7352
|
-
function
|
|
7353
|
-
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 =
|
|
7365
|
+
function od(e) {
|
|
7366
|
+
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 = rd(n({
|
|
7354
7367
|
get: () => e.get(),
|
|
7355
7368
|
set: (t) => e.set(t)
|
|
7356
7369
|
}), {
|
|
@@ -7360,7 +7373,7 @@ function id(e) {
|
|
|
7360
7373
|
parentField: l,
|
|
7361
7374
|
positionMultiplier: c,
|
|
7362
7375
|
maxDepth: e.maxDepth
|
|
7363
|
-
}), d = n(() =>
|
|
7376
|
+
}), d = n(() => id(e.get())), f = u.viewItems, p = n(() => oe(e.dirtyExclude) ?? []), m = (e) => {
|
|
7364
7377
|
let t = { ...e };
|
|
7365
7378
|
o && delete t[s], delete t[l];
|
|
7366
7379
|
for (let e of p.value) delete t[e];
|
|
@@ -7377,7 +7390,7 @@ function id(e) {
|
|
|
7377
7390
|
y(e.get()), L(p, () => {
|
|
7378
7391
|
if (!_.value) return;
|
|
7379
7392
|
let e = /* @__PURE__ */ new Map();
|
|
7380
|
-
|
|
7393
|
+
ad(_.value, (t) => e.set(r(t.data), m(t.data))), h.value = e;
|
|
7381
7394
|
}, { flush: "sync" });
|
|
7382
7395
|
let b = M(!1), x = j(/* @__PURE__ */ new Map()), S = (t, n, r) => {
|
|
7383
7396
|
if (e.isDirty) {
|
|
@@ -7389,7 +7402,7 @@ function id(e) {
|
|
|
7389
7402
|
}, C = M(/* @__PURE__ */ new Map()), w = M(/* @__PURE__ */ new Set()), T = M(/* @__PURE__ */ new Set());
|
|
7390
7403
|
L(() => e.get(), (e) => {
|
|
7391
7404
|
let t = /* @__PURE__ */ new Set();
|
|
7392
|
-
|
|
7405
|
+
ad(e, (e) => {
|
|
7393
7406
|
let n = r(e.data);
|
|
7394
7407
|
if (t.add(n), !h.value.has(n) && !C.value.has(n) && C.value.set(n, m(e.data)), !w.value.has(n)) {
|
|
7395
7408
|
let t = h.value.get(n) ?? C.value.get(n);
|
|
@@ -7409,12 +7422,12 @@ function id(e) {
|
|
|
7409
7422
|
let E = (e) => w.value.has(e), D = (e) => {
|
|
7410
7423
|
if (!_.value) return;
|
|
7411
7424
|
let t;
|
|
7412
|
-
return
|
|
7425
|
+
return ad(_.value, (n) => {
|
|
7413
7426
|
t === void 0 && r(n.data) === e && (t = n.data);
|
|
7414
7427
|
}), t;
|
|
7415
7428
|
}, O = (t) => {
|
|
7416
7429
|
let n = !1;
|
|
7417
|
-
return
|
|
7430
|
+
return ad(e.get(), (e) => {
|
|
7418
7431
|
!n && r(e.data) === t && (n = !0);
|
|
7419
7432
|
}), n;
|
|
7420
7433
|
}, k = n(() => {
|
|
@@ -7427,7 +7440,7 @@ function id(e) {
|
|
|
7427
7440
|
return n(e.get().children, null), t;
|
|
7428
7441
|
}), A = (e) => k.value.has(e), ee = n(() => {
|
|
7429
7442
|
let t = !1;
|
|
7430
|
-
return
|
|
7443
|
+
return ad(e.get(), (e) => {
|
|
7431
7444
|
e.meta.dirty && (t = !0);
|
|
7432
7445
|
}), t;
|
|
7433
7446
|
}), N = n(() => k.value.size > 0 || T.value.size > 0 || ee.value), te = n(() => {
|
|
@@ -7454,7 +7467,7 @@ function id(e) {
|
|
|
7454
7467
|
};
|
|
7455
7468
|
}, ne = n(() => {
|
|
7456
7469
|
let t = /* @__PURE__ */ new Set();
|
|
7457
|
-
return
|
|
7470
|
+
return ad(e.get(), (e) => {
|
|
7458
7471
|
let n = r(e.data);
|
|
7459
7472
|
P(e.data, n).invalid && t.add(n);
|
|
7460
7473
|
}), t;
|
|
@@ -7484,7 +7497,7 @@ function id(e) {
|
|
|
7484
7497
|
getChanges: () => {
|
|
7485
7498
|
let t = [], n = [], i = [], a = [], o = ae(), s = /* @__PURE__ */ new Map();
|
|
7486
7499
|
for (let e of o) s.set(r(e), e);
|
|
7487
|
-
|
|
7500
|
+
ad(e.get(), (e) => {
|
|
7488
7501
|
let o = r(e.data), c = s.get(o) ?? e.data, u = h.value.get(o);
|
|
7489
7502
|
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)) {
|
|
7490
7503
|
let e = g.value.get(o) ?? null, t = c[l];
|
|
@@ -7506,9 +7519,9 @@ function id(e) {
|
|
|
7506
7519
|
},
|
|
7507
7520
|
commit: (n) => {
|
|
7508
7521
|
let a = n ?? e.get(), o = e.normalizeSaved ? e.normalizeSaved(a) : a, s = v(o);
|
|
7509
|
-
|
|
7522
|
+
ad(s, (n) => {
|
|
7510
7523
|
let a = D(r(n.data));
|
|
7511
|
-
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] =
|
|
7524
|
+
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] = Qu()), n.meta.dirty = !1;
|
|
7512
7525
|
}), e.set(s), y(s), C.value = /* @__PURE__ */ new Map(), w.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(), b.value = !1;
|
|
7513
7526
|
},
|
|
7514
7527
|
reset: (t) => {
|
|
@@ -7559,9 +7572,9 @@ function id(e) {
|
|
|
7559
7572
|
}
|
|
7560
7573
|
//#endregion
|
|
7561
7574
|
//#region src/labs/listEditor/composables/useListEditorStateScope.ts
|
|
7562
|
-
var
|
|
7563
|
-
function
|
|
7564
|
-
let e = `les${++
|
|
7575
|
+
var sd = Symbol("le.stateScope"), cd = 0;
|
|
7576
|
+
function ld() {
|
|
7577
|
+
let e = `les${++cd}`, t = /* @__PURE__ */ new Map(), n = d(), r = (e, n) => {
|
|
7565
7578
|
n.children?.dispose(), n.scope.stop(), t.delete(e);
|
|
7566
7579
|
}, i = {
|
|
7567
7580
|
id: e,
|
|
@@ -7583,7 +7596,7 @@ function sd() {
|
|
|
7583
7596
|
},
|
|
7584
7597
|
childScope(e) {
|
|
7585
7598
|
let n = t.get(e);
|
|
7586
|
-
return n ? (n.children ||= n.scope.run(() =>
|
|
7599
|
+
return n ? (n.children ||= n.scope.run(() => ld()) ?? null, n.children) : null;
|
|
7587
7600
|
},
|
|
7588
7601
|
prefixFor(t) {
|
|
7589
7602
|
return `${e}:${String(t)}`;
|
|
@@ -7608,11 +7621,11 @@ function sd() {
|
|
|
7608
7621
|
};
|
|
7609
7622
|
return p() && D(() => i.dispose()), i;
|
|
7610
7623
|
}
|
|
7611
|
-
function
|
|
7612
|
-
let t = e ??
|
|
7613
|
-
return A(
|
|
7624
|
+
function ud(e) {
|
|
7625
|
+
let t = e ?? ld();
|
|
7626
|
+
return A(sd, t), t;
|
|
7614
7627
|
}
|
|
7615
|
-
var
|
|
7628
|
+
var dd = (e) => {
|
|
7616
7629
|
let t = e.get();
|
|
7617
7630
|
return {
|
|
7618
7631
|
...e,
|
|
@@ -7620,10 +7633,10 @@ var ld = (e) => {
|
|
|
7620
7633
|
set: () => void 0
|
|
7621
7634
|
};
|
|
7622
7635
|
};
|
|
7623
|
-
function
|
|
7624
|
-
let n = h(
|
|
7636
|
+
function fd(e, t) {
|
|
7637
|
+
let n = h(sd, null);
|
|
7625
7638
|
if (!e || !n) return null;
|
|
7626
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
7639
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => $u({
|
|
7627
7640
|
get: () => e.value.get(),
|
|
7628
7641
|
set: (t) => e.value.set(t),
|
|
7629
7642
|
factory: (() => e.value.factory?.()),
|
|
@@ -7632,15 +7645,15 @@ function ud(e, t) {
|
|
|
7632
7645
|
dirtyExclude: () => oe(e.value.dirtyExclude) ?? [],
|
|
7633
7646
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
7634
7647
|
}), r);
|
|
7635
|
-
return f() && T(() => n.release(e, r,
|
|
7648
|
+
return f() && T(() => n.release(e, r, dd)), {
|
|
7636
7649
|
handle: i,
|
|
7637
7650
|
childScope: n.childScope(e)
|
|
7638
7651
|
};
|
|
7639
7652
|
}
|
|
7640
|
-
function
|
|
7641
|
-
let n = h(
|
|
7653
|
+
function pd(e, t) {
|
|
7654
|
+
let n = h(sd, null);
|
|
7642
7655
|
if (!e || !n) return null;
|
|
7643
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
7656
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => od({
|
|
7644
7657
|
get: () => e.value.get(),
|
|
7645
7658
|
set: (t) => e.value.set(t),
|
|
7646
7659
|
factory: (() => e.value.factory?.()),
|
|
@@ -7651,22 +7664,22 @@ function dd(e, t) {
|
|
|
7651
7664
|
dirtyExclude: () => oe(e.value.dirtyExclude) ?? [],
|
|
7652
7665
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
7653
7666
|
}), r);
|
|
7654
|
-
return f() && T(() => n.release(e, r,
|
|
7667
|
+
return f() && T(() => n.release(e, r, dd)), {
|
|
7655
7668
|
handle: i,
|
|
7656
7669
|
childScope: n.childScope(e)
|
|
7657
7670
|
};
|
|
7658
7671
|
}
|
|
7659
7672
|
//#endregion
|
|
7660
7673
|
//#region src/labs/listEditor/composables/resolveCompactText.ts
|
|
7661
|
-
function
|
|
7674
|
+
function md(e, t) {
|
|
7662
7675
|
if (!t.compactField) return "";
|
|
7663
7676
|
let n = e[t.compactField];
|
|
7664
7677
|
return n == null || n === "" ? "" : String(n);
|
|
7665
7678
|
}
|
|
7666
7679
|
//#endregion
|
|
7667
7680
|
//#region src/labs/unsavedGuard/useUnsavedSection.ts
|
|
7668
|
-
var
|
|
7669
|
-
function
|
|
7681
|
+
var hd = Symbol("unsaved.sections");
|
|
7682
|
+
function gd() {
|
|
7670
7683
|
let e = j(/* @__PURE__ */ new Map());
|
|
7671
7684
|
return {
|
|
7672
7685
|
register(t, n) {
|
|
@@ -7682,12 +7695,12 @@ function md() {
|
|
|
7682
7695
|
})
|
|
7683
7696
|
};
|
|
7684
7697
|
}
|
|
7685
|
-
function
|
|
7686
|
-
let e =
|
|
7687
|
-
return f() && A(
|
|
7698
|
+
function _d() {
|
|
7699
|
+
let e = gd();
|
|
7700
|
+
return f() && A(hd, e), e;
|
|
7688
7701
|
}
|
|
7689
|
-
function
|
|
7690
|
-
let t = h(
|
|
7702
|
+
function vd(e) {
|
|
7703
|
+
let t = h(hd, null);
|
|
7691
7704
|
if (!t || !f()) return;
|
|
7692
7705
|
let r = Symbol("unsaved.section"), i = n(() => {
|
|
7693
7706
|
let t = e();
|
|
@@ -7697,7 +7710,7 @@ function gd(e) {
|
|
|
7697
7710
|
}
|
|
7698
7711
|
//#endregion
|
|
7699
7712
|
//#region src/labs/listEditor/composables/useDeleteDialog.ts
|
|
7700
|
-
function
|
|
7713
|
+
function yd(e) {
|
|
7701
7714
|
let t = M(!1), n = M(null), r = M(!1), i = M(null), a = async (t) => {
|
|
7702
7715
|
if (i.value = null, e.onDeleteConfirm && !await e.onDeleteConfirm(t.raw)) return !1;
|
|
7703
7716
|
if (e.onDelete) {
|
|
@@ -7734,7 +7747,7 @@ function _d(e) {
|
|
|
7734
7747
|
}
|
|
7735
7748
|
//#endregion
|
|
7736
7749
|
//#region src/labs/listEditor/composables/useInlineEditing.ts
|
|
7737
|
-
function
|
|
7750
|
+
function bd(e) {
|
|
7738
7751
|
let t = M(/* @__PURE__ */ new Set()), n = M(/* @__PURE__ */ new Map()), r = M(!1);
|
|
7739
7752
|
return L(e.watchKeys, (i, a) => {
|
|
7740
7753
|
if (!r.value) return;
|
|
@@ -7777,14 +7790,14 @@ function vd(e) {
|
|
|
7777
7790
|
}
|
|
7778
7791
|
//#endregion
|
|
7779
7792
|
//#region src/labs/listEditor/utils/revealInvalidRows.ts
|
|
7780
|
-
function
|
|
7793
|
+
function xd(e, t) {
|
|
7781
7794
|
let n = e.validateAll();
|
|
7782
7795
|
if (!n) for (let n of e.invalidKeys.value) t(n);
|
|
7783
7796
|
return n;
|
|
7784
7797
|
}
|
|
7785
7798
|
//#endregion
|
|
7786
7799
|
//#region src/labs/listEditor/composables/useListEditorScopeValidity.ts
|
|
7787
|
-
function
|
|
7800
|
+
function Sd(e) {
|
|
7788
7801
|
let { hasErrors: t, validationScope: n, reveal: r, validateProvided: i } = e;
|
|
7789
7802
|
if (n === void 0 || n === !1) return;
|
|
7790
7803
|
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.");
|
|
@@ -7795,8 +7808,8 @@ function bd(e) {
|
|
|
7795
7808
|
}
|
|
7796
7809
|
//#endregion
|
|
7797
7810
|
//#region src/labs/listEditor/composables/useReorderMode.ts
|
|
7798
|
-
var
|
|
7799
|
-
function
|
|
7811
|
+
var Cd = Symbol("le.sharedReorderRegistry");
|
|
7812
|
+
function wd(e) {
|
|
7800
7813
|
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;
|
|
7801
7814
|
return L(e.mode, (n, i) => {
|
|
7802
7815
|
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?.()));
|
|
@@ -7831,7 +7844,7 @@ function Sd(e) {
|
|
|
7831
7844
|
}
|
|
7832
7845
|
//#endregion
|
|
7833
7846
|
//#region src/labs/listEditor/internal/LeDeleteDialog.vue
|
|
7834
|
-
var
|
|
7847
|
+
var Td = /* @__PURE__ */ u({
|
|
7835
7848
|
__name: "LeDeleteDialog",
|
|
7836
7849
|
props: /*@__PURE__*/ y({
|
|
7837
7850
|
title: {},
|
|
@@ -7908,10 +7921,10 @@ var Cd = /* @__PURE__ */ u({
|
|
|
7908
7921
|
_: 1
|
|
7909
7922
|
}, 8, ["modelValue", "persistent"]));
|
|
7910
7923
|
}
|
|
7911
|
-
}),
|
|
7924
|
+
}), Ed = {
|
|
7912
7925
|
key: 0,
|
|
7913
7926
|
class: "text-body-medium mb-3"
|
|
7914
|
-
},
|
|
7927
|
+
}, Dd = /* @__PURE__ */ u({
|
|
7915
7928
|
__name: "LeMoveToPositionDialog",
|
|
7916
7929
|
props: /*@__PURE__*/ y({
|
|
7917
7930
|
total: {},
|
|
@@ -7950,7 +7963,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
7950
7963
|
_: 1
|
|
7951
7964
|
}),
|
|
7952
7965
|
l(we, null, {
|
|
7953
|
-
default: R(() => [e.itemLabel ? (k(), a("p",
|
|
7966
|
+
default: R(() => [e.itemLabel ? (k(), a("p", Ed, F(I(d)("common.sortable.moveToPosition.itemDescription", { label: e.itemLabel })), 1)) : i("", !0), l(Be, {
|
|
7954
7967
|
modelValue: f.value,
|
|
7955
7968
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e,
|
|
7956
7969
|
modelModifiers: { number: !0 },
|
|
@@ -8005,7 +8018,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8005
8018
|
_: 1
|
|
8006
8019
|
}, 8, ["modelValue"]));
|
|
8007
8020
|
}
|
|
8008
|
-
}),
|
|
8021
|
+
}), Od = { class: "a-le-empty" }, kd = { class: "a-le-empty-title" }, Ad = /* @__PURE__ */ u({
|
|
8009
8022
|
__name: "LeEmptyState",
|
|
8010
8023
|
props: {
|
|
8011
8024
|
title: {},
|
|
@@ -8018,7 +8031,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8018
8031
|
emits: ["add"],
|
|
8019
8032
|
setup(e) {
|
|
8020
8033
|
let { t } = he();
|
|
8021
|
-
return (n, s) => (k(), a("div",
|
|
8034
|
+
return (n, s) => (k(), a("div", Od, [o("h3", kd, F(e.title), 1), e.addLabel && e.canAdd ? (k(), r(V, {
|
|
8022
8035
|
key: 0,
|
|
8023
8036
|
color: "primary",
|
|
8024
8037
|
variant: "flat",
|
|
@@ -8029,16 +8042,16 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8029
8042
|
_: 1
|
|
8030
8043
|
})) : i("", !0)]));
|
|
8031
8044
|
}
|
|
8032
|
-
}),
|
|
8045
|
+
}), jd = { class: "a-le-toolbar-status" }, Md = {
|
|
8033
8046
|
key: 1,
|
|
8034
8047
|
class: "text-body-small"
|
|
8035
|
-
},
|
|
8048
|
+
}, Nd = {
|
|
8036
8049
|
key: 2,
|
|
8037
8050
|
class: "text-body-small"
|
|
8038
|
-
},
|
|
8051
|
+
}, Pd = {
|
|
8039
8052
|
key: 3,
|
|
8040
8053
|
class: "text-body-small text-medium-emphasis"
|
|
8041
|
-
},
|
|
8054
|
+
}, Fd = /* @__PURE__ */ u({
|
|
8042
8055
|
__name: "LeStatus",
|
|
8043
8056
|
props: {
|
|
8044
8057
|
hasPendingChanges: { type: Boolean },
|
|
@@ -8047,14 +8060,14 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8047
8060
|
},
|
|
8048
8061
|
setup(e) {
|
|
8049
8062
|
let { t } = he();
|
|
8050
|
-
return (n, o) => (k(), a("div",
|
|
8063
|
+
return (n, o) => (k(), a("div", jd, [e.hasPendingChanges ? (k(), r(B, {
|
|
8051
8064
|
key: 0,
|
|
8052
8065
|
icon: "mdi-circle-medium",
|
|
8053
8066
|
color: "warning",
|
|
8054
8067
|
size: "18"
|
|
8055
|
-
})) : i("", !0), e.error ? (k(), a("span",
|
|
8068
|
+
})) : i("", !0), e.error ? (k(), a("span", Md, F(e.error), 1)) : e.hasPendingChanges ? (k(), a("span", Nd, F(I(t)("common.sortable.pendingChanges", { count: e.pendingCount })), 1)) : (k(), a("span", Pd, F(I(t)("common.sortable.noPendingChanges")), 1))]));
|
|
8056
8069
|
}
|
|
8057
|
-
}),
|
|
8070
|
+
}), Id = ["title"], Ld = /* @__PURE__ */ u({
|
|
8058
8071
|
__name: "LeUnsavedLabel",
|
|
8059
8072
|
props: {
|
|
8060
8073
|
label: { default: null },
|
|
@@ -8071,9 +8084,9 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8071
8084
|
}, [l(B, {
|
|
8072
8085
|
icon: "mdi-circle-medium",
|
|
8073
8086
|
size: "12"
|
|
8074
|
-
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10,
|
|
8087
|
+
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10, Id));
|
|
8075
8088
|
}
|
|
8076
|
-
}),
|
|
8089
|
+
}), Rd = /* @__PURE__ */ u({
|
|
8077
8090
|
__name: "LeDragHandle",
|
|
8078
8091
|
setup(e) {
|
|
8079
8092
|
return (e, t) => (k(), r(B, {
|
|
@@ -8082,45 +8095,45 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8082
8095
|
size: "20"
|
|
8083
8096
|
}));
|
|
8084
8097
|
}
|
|
8085
|
-
}),
|
|
8098
|
+
}), zd = "a-le-row--ghost", Bd = "a-le-row--chosen", Vd = "a-le-row--drag", Hd = { class: "a-le-card" }, Ud = {
|
|
8086
8099
|
key: 0,
|
|
8087
8100
|
class: "a-le-header"
|
|
8088
|
-
},
|
|
8101
|
+
}, Wd = {
|
|
8089
8102
|
key: 0,
|
|
8090
8103
|
class: "a-le-title-heading"
|
|
8091
|
-
},
|
|
8104
|
+
}, Gd = ["data-unsaved-count"], Kd = { class: "a-le-header-actions" }, qd = {
|
|
8092
8105
|
key: 1,
|
|
8093
8106
|
class: "a-le-state a-le-state--loading"
|
|
8094
|
-
},
|
|
8107
|
+
}, Jd = {
|
|
8095
8108
|
key: 2,
|
|
8096
8109
|
class: "a-le-state a-le-state--error"
|
|
8097
|
-
},
|
|
8110
|
+
}, Yd = {
|
|
8098
8111
|
key: 3,
|
|
8099
8112
|
class: "a-le-view-body"
|
|
8100
|
-
},
|
|
8113
|
+
}, Xd = {
|
|
8101
8114
|
key: 4,
|
|
8102
8115
|
class: "a-le-state a-le-state--empty"
|
|
8103
|
-
},
|
|
8116
|
+
}, Zd = [
|
|
8104
8117
|
"data-id",
|
|
8105
8118
|
"tabindex",
|
|
8106
8119
|
"onKeydown"
|
|
8107
|
-
],
|
|
8120
|
+
], Qd = ["onClick"], $d = { class: "a-le-row-main" }, ef = { class: "a-le-title" }, tf = {
|
|
8108
8121
|
key: 1,
|
|
8109
8122
|
class: "a-le-status"
|
|
8110
|
-
},
|
|
8123
|
+
}, nf = {
|
|
8111
8124
|
key: 0,
|
|
8112
8125
|
class: "a-le-status-badge"
|
|
8113
|
-
},
|
|
8126
|
+
}, rf = { class: "a-le-actions" }, af = { class: "a-le-row-body" }, of = { class: "a-le-form" }, sf = {
|
|
8114
8127
|
key: 0,
|
|
8115
8128
|
class: "a-le-row-footer"
|
|
8116
|
-
},
|
|
8129
|
+
}, cf = {
|
|
8117
8130
|
key: 1,
|
|
8118
8131
|
class: "a-le-row-body"
|
|
8119
|
-
},
|
|
8132
|
+
}, lf = { class: "a-le-form" }, uf = {
|
|
8120
8133
|
class: "a-le-sr-only",
|
|
8121
8134
|
"aria-live": "polite",
|
|
8122
8135
|
role: "status"
|
|
8123
|
-
},
|
|
8136
|
+
}, df = /* @__PURE__ */ u({
|
|
8124
8137
|
__name: "ASortableListEditor",
|
|
8125
8138
|
props: /*@__PURE__*/ y({
|
|
8126
8139
|
factory: {
|
|
@@ -8267,7 +8280,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8267
8280
|
"reorder-end"
|
|
8268
8281
|
], ["update:modelValue", "update:mode"]),
|
|
8269
8282
|
setup(t, { expose: s, emit: u }) {
|
|
8270
|
-
let d = t, f = u, p = se(t, "modelValue"), g = se(t, "mode"), { t: v } = he(), y = ce(), w = le("rootEl"), { isNarrow: E } =
|
|
8283
|
+
let d = t, f = u, p = se(t, "modelValue"), g = se(t, "mode"), { t: v } = he(), y = ce(), w = le("rootEl"), { isNarrow: E } = Uu(w), D = Wu(), O = Gu(), j = {
|
|
8271
8284
|
get: () => p.value,
|
|
8272
8285
|
set: (e) => p.value = e,
|
|
8273
8286
|
factory: d.factory,
|
|
@@ -8275,7 +8288,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8275
8288
|
position: d.position,
|
|
8276
8289
|
dirtyExclude: () => d.dirtyExclude ?? [],
|
|
8277
8290
|
validate: d.validate
|
|
8278
|
-
}, te = d.editor ? null :
|
|
8291
|
+
}, te = d.editor ? null : fd(d.stateKey, j), P = d.editor ?? te?.handle ?? $u(j), ie = d.getKey ?? "id", ae = ud(te?.childScope ?? null), oe = (e) => typeof ie == "function" ? ie(e) : e[ie], ue = n(() => {
|
|
8279
8292
|
let e = d.position;
|
|
8280
8293
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
8281
8294
|
}), de = n(() => p.value.map((e, t) => ({
|
|
@@ -8285,7 +8298,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8285
8298
|
position: e[ue.value]
|
|
8286
8299
|
})));
|
|
8287
8300
|
L(() => de.value.map((e) => String(e.key)).join("|"), () => ae.retainOwners(de.value.map((e) => e.key)), { flush: "post" });
|
|
8288
|
-
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), me = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), ye = re(null), Se = le("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: Ee, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } =
|
|
8301
|
+
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), me = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), ye = re(null), Se = le("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: Ee, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } = bd({
|
|
8289
8302
|
rowsContainer: Se,
|
|
8290
8303
|
rowSelector: ".a-le-row",
|
|
8291
8304
|
isInlineEdit: Ce,
|
|
@@ -8298,7 +8311,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8298
8311
|
afterAutoOpen: (e) => {
|
|
8299
8312
|
fe.value.delete(e);
|
|
8300
8313
|
}
|
|
8301
|
-
}), 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 } =
|
|
8314
|
+
}), 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 } = wd({
|
|
8302
8315
|
mode: g,
|
|
8303
8316
|
snapshot: ye,
|
|
8304
8317
|
movedKeys: pe,
|
|
@@ -8336,7 +8349,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8336
8349
|
reorderEnd: () => f("reorder-end")
|
|
8337
8350
|
}
|
|
8338
8351
|
}), Xe = d.embedded ? null : ne(/* @__PURE__ */ new Map());
|
|
8339
|
-
Xe && A(
|
|
8352
|
+
Xe && A(Cd, {
|
|
8340
8353
|
register: (e, t, n, r) => {
|
|
8341
8354
|
Xe.set(e, {
|
|
8342
8355
|
count: t,
|
|
@@ -8360,7 +8373,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8360
8373
|
return !1;
|
|
8361
8374
|
}), $e = n(() => Ze.value + me.value.size + _e.value.size), et = n(() => Qe.value || me.value.size > 0 || _e.value.size > 0);
|
|
8362
8375
|
if (d.embedded) {
|
|
8363
|
-
let e = h(
|
|
8376
|
+
let e = h(Cd, null);
|
|
8364
8377
|
if (e) {
|
|
8365
8378
|
let t = Symbol("le.embedded");
|
|
8366
8379
|
e.register(t, $e, et, () => xt()), T(() => e.unregister(t));
|
|
@@ -8399,17 +8412,17 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8399
8412
|
t && ke(t);
|
|
8400
8413
|
}, bt = () => {
|
|
8401
8414
|
if (Ce.value) for (let e of gt.value) ke(e);
|
|
8402
|
-
}, xt = () =>
|
|
8415
|
+
}, xt = () => xd(P, (e) => {
|
|
8403
8416
|
let t = de.value.find((t) => t.key === e);
|
|
8404
8417
|
t && ke(t);
|
|
8405
8418
|
});
|
|
8406
|
-
|
|
8419
|
+
Sd({
|
|
8407
8420
|
hasErrors: P.hasErrors,
|
|
8408
8421
|
validationScope: d.validationScope,
|
|
8409
8422
|
validateProvided: d.validate !== void 0,
|
|
8410
8423
|
reveal: xt
|
|
8411
8424
|
});
|
|
8412
|
-
let St =
|
|
8425
|
+
let St = Ku({
|
|
8413
8426
|
viewItems: n(() => gt.value.map((e) => ({ key: e.key }))),
|
|
8414
8427
|
variant: "sortable",
|
|
8415
8428
|
isReorderMode: He,
|
|
@@ -8445,16 +8458,16 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8445
8458
|
}, Dt = (e) => {
|
|
8446
8459
|
let t = wt.value;
|
|
8447
8460
|
wt.value = null, t && e !== t.index && (P.moveItem(t.index, e), mt(t.key));
|
|
8448
|
-
}, Ot = (e) =>
|
|
8461
|
+
}, Ot = (e) => md(e, { compactField: d.compactField }), kt = Gl(Se, p, {
|
|
8449
8462
|
watchElement: !0,
|
|
8450
8463
|
handle: ".a-le-drag-handle",
|
|
8451
8464
|
animation: 150,
|
|
8452
8465
|
forceFallback: !0,
|
|
8453
8466
|
fallbackTolerance: 3,
|
|
8454
8467
|
fallbackOnBody: !0,
|
|
8455
|
-
ghostClass:
|
|
8456
|
-
chosenClass:
|
|
8457
|
-
dragClass:
|
|
8468
|
+
ghostClass: zd,
|
|
8469
|
+
chosenClass: Bd,
|
|
8470
|
+
dragClass: Vd,
|
|
8458
8471
|
disabled: !nt.value,
|
|
8459
8472
|
onUpdate: (e) => {
|
|
8460
8473
|
let { oldIndex: t, newIndex: n, item: r, from: i } = e;
|
|
@@ -8503,7 +8516,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8503
8516
|
}
|
|
8504
8517
|
d.readonly && we.value ? W(e) : U(e);
|
|
8505
8518
|
}
|
|
8506
|
-
}, { deleteDialog: G, deleteInFlight: Nt, deleteError: Pt, onDeleteClick: Ft, onDeleteDialogConfirm: It, onDeleteDialogCancel: Lt } =
|
|
8519
|
+
}, { deleteDialog: G, deleteInFlight: Nt, deleteError: Pt, onDeleteClick: Ft, onDeleteDialogConfirm: It, onDeleteDialogCancel: Lt } = yd({
|
|
8507
8520
|
onDeleteConfirm: (e) => !d.onDeleteConfirm || d.onDeleteConfirm(e),
|
|
8508
8521
|
onDelete: (e) => d.onDelete?.(e),
|
|
8509
8522
|
onDeleted: (e) => {
|
|
@@ -8630,7 +8643,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8630
8643
|
exitReorderMode: Je
|
|
8631
8644
|
}
|
|
8632
8645
|
}));
|
|
8633
|
-
return
|
|
8646
|
+
return vd(() => d.unsavedSectionLabel ? {
|
|
8634
8647
|
label: d.unsavedSectionLabel,
|
|
8635
8648
|
dirty: P.hasUnsaved.value
|
|
8636
8649
|
} : []), s({
|
|
@@ -8667,16 +8680,16 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8667
8680
|
}
|
|
8668
8681
|
]])
|
|
8669
8682
|
}, [
|
|
8670
|
-
o("div",
|
|
8671
|
-
dt.value ? (k(), a("div",
|
|
8672
|
-
t.title ? (k(), a("h3",
|
|
8683
|
+
o("div", Hd, [
|
|
8684
|
+
dt.value ? (k(), a("div", Ud, [N(n.$slots, "header", b({ title: t.title }, Qt.value), () => [
|
|
8685
|
+
t.title ? (k(), a("h3", Wd, F(t.title), 1)) : i("", !0),
|
|
8673
8686
|
!I(He) && ut.value ? (k(), a("span", {
|
|
8674
8687
|
key: 1,
|
|
8675
8688
|
class: "a-le-unsaved-count",
|
|
8676
8689
|
"data-unsaved-count": I(lt)
|
|
8677
|
-
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9,
|
|
8678
|
-
o("div",
|
|
8679
|
-
l(
|
|
8690
|
+
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9, Gd)) : i("", !0),
|
|
8691
|
+
o("div", Kd, [I(He) && !t.embedded ? N(n.$slots, "reorder-toolbar", C(m(Zt.value)), () => [
|
|
8692
|
+
l(Fd, {
|
|
8680
8693
|
class: S({ "a-le-toolbar-status--pending": et.value }),
|
|
8681
8694
|
"has-pending-changes": et.value,
|
|
8682
8695
|
"pending-count": $e.value,
|
|
@@ -8743,11 +8756,11 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8743
8756
|
_: 1
|
|
8744
8757
|
}, 8, ["disabled", "onClick"]))], void 0, 1) : i("", !0)])
|
|
8745
8758
|
])])) : i("", !0),
|
|
8746
|
-
t.loading ? (k(), a("div",
|
|
8759
|
+
t.loading ? (k(), a("div", qd, [l(xe, {
|
|
8747
8760
|
indeterminate: "",
|
|
8748
8761
|
color: "primary",
|
|
8749
8762
|
size: "32"
|
|
8750
|
-
})])) : t.error ? (k(), a("div",
|
|
8763
|
+
})])) : t.error ? (k(), a("div", Jd, [l(be, {
|
|
8751
8764
|
type: "error",
|
|
8752
8765
|
variant: "tonal",
|
|
8753
8766
|
density: "compact",
|
|
@@ -8755,15 +8768,15 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8755
8768
|
}, {
|
|
8756
8769
|
default: R(() => [c(F(t.error), 1)]),
|
|
8757
8770
|
_: 1
|
|
8758
|
-
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div",
|
|
8771
|
+
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div", Yd, [N(n.$slots, "view-body", {
|
|
8759
8772
|
items: p.value,
|
|
8760
8773
|
mode: g.value,
|
|
8761
8774
|
actions: { enterReorderMode: I(qe) }
|
|
8762
|
-
})])) : _t.value ? (k(), a("div",
|
|
8775
|
+
})])) : _t.value ? (k(), a("div", Xd, [N(n.$slots, "empty", {
|
|
8763
8776
|
readonly: t.readonly,
|
|
8764
8777
|
disabled: t.disabled,
|
|
8765
8778
|
actions: { add: At }
|
|
8766
|
-
}, () => [l(
|
|
8779
|
+
}, () => [l(Ad, {
|
|
8767
8780
|
title: it.value,
|
|
8768
8781
|
"add-label": rt.value,
|
|
8769
8782
|
"can-add": tt.value,
|
|
@@ -8801,13 +8814,13 @@ var Cd = /* @__PURE__ */ u({
|
|
|
8801
8814
|
class: "a-le-row-header",
|
|
8802
8815
|
onClick: (e) => Mt(u)
|
|
8803
8816
|
}, [
|
|
8804
|
-
nt.value ? (k(), r(
|
|
8805
|
-
o("div",
|
|
8817
|
+
nt.value ? (k(), r(Rd, { key: 0 })) : i("", !0),
|
|
8818
|
+
o("div", $d, [N(n.$slots, "item-compact", b({ ref_for: !0 }, Xt(u)), () => [o("span", ef, F(Ot(u.raw)), 1)]), u.unsaved ? (k(), r(Ld, {
|
|
8806
8819
|
key: 0,
|
|
8807
8820
|
"dot-only": t.chips
|
|
8808
8821
|
}, null, 8, ["dot-only"])) : i("", !0)]),
|
|
8809
|
-
!t.chips && !I(He) ? (k(), a("div",
|
|
8810
|
-
o("div",
|
|
8822
|
+
!t.chips && !I(He) ? (k(), a("div", tf, [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", nf, F(u.raw[t.statusField]), 1)) : i("", !0)])])) : i("", !0),
|
|
8823
|
+
o("div", rf, [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, {
|
|
8811
8824
|
icon: "",
|
|
8812
8825
|
size: "x-small",
|
|
8813
8826
|
variant: "text",
|
|
@@ -9052,7 +9065,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9052
9065
|
_: 2
|
|
9053
9066
|
}, 1024)) : i("", !0)
|
|
9054
9067
|
], 64))])])
|
|
9055
|
-
], 8,
|
|
9068
|
+
], 8, Qd), u.editing && (t.allowEditInReorder || !I(He)) && n.$slots.item ? (k(), a(e, { key: 0 }, [o("div", af, [o("div", of, [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", sf, [
|
|
9056
9069
|
s[2] ||= o("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
9057
9070
|
l(V, {
|
|
9058
9071
|
variant: "text",
|
|
@@ -9072,7 +9085,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9072
9085
|
default: R(() => [c(F(I(v)("common.button.save")), 1)]),
|
|
9073
9086
|
_: 1
|
|
9074
9087
|
}, 8, ["disabled", "onClick"])
|
|
9075
|
-
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div",
|
|
9088
|
+
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div", cf, [o("div", lf, [N(n.$slots, "item-readonly", b({ ref_for: !0 }, Xt(u)))])])) : i("", !0)], 42, Zd),
|
|
9076
9089
|
N(n.$slots, "after-item", b({ ref_for: !0 }, Xt(u)))
|
|
9077
9090
|
]))), 128))], 512)),
|
|
9078
9091
|
tt.value && !t.loading && !t.error && !_t.value ? N(n.$slots, "add-button", {
|
|
@@ -9089,7 +9102,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9089
9102
|
size: "18"
|
|
9090
9103
|
}), o("span", null, F(rt.value), 1)])], void 0, 6) : i("", !0)
|
|
9091
9104
|
]),
|
|
9092
|
-
l(
|
|
9105
|
+
l(Dd, {
|
|
9093
9106
|
modelValue: Ct.value,
|
|
9094
9107
|
"onUpdate:modelValue": s[0] ||= (e) => Ct.value = e,
|
|
9095
9108
|
total: gt.value.length,
|
|
@@ -9102,7 +9115,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9102
9115
|
"current-index",
|
|
9103
9116
|
"item-label"
|
|
9104
9117
|
]),
|
|
9105
|
-
l(
|
|
9118
|
+
l(Td, {
|
|
9106
9119
|
modelValue: I(G),
|
|
9107
9120
|
"onUpdate:modelValue": s[1] ||= (e) => _(G) ? G.value = e : null,
|
|
9108
9121
|
title: at.value,
|
|
@@ -9124,19 +9137,19 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9124
9137
|
"onConfirm",
|
|
9125
9138
|
"onCancel"
|
|
9126
9139
|
]),
|
|
9127
|
-
o("div",
|
|
9140
|
+
o("div", uf, F(I(St).grabbedKey.value === null ? "" : I(v)("common.sortable.keyboardGrab.status", {
|
|
9128
9141
|
n: I(St).grabbedIndex.value + 1,
|
|
9129
9142
|
total: I(St).totalCount.value
|
|
9130
9143
|
})), 1)
|
|
9131
9144
|
], 2));
|
|
9132
9145
|
}
|
|
9133
|
-
}),
|
|
9146
|
+
}), ff = {
|
|
9134
9147
|
key: 0,
|
|
9135
9148
|
class: "font-italic pl-1"
|
|
9136
|
-
},
|
|
9149
|
+
}, pf = {
|
|
9137
9150
|
key: 0,
|
|
9138
9151
|
class: "required"
|
|
9139
|
-
},
|
|
9152
|
+
}, mf = 300, hf = /* @__PURE__ */ u({
|
|
9140
9153
|
__name: "AFormRemoteAutocomplete",
|
|
9141
9154
|
props: /*@__PURE__*/ y({
|
|
9142
9155
|
label: { default: void 0 },
|
|
@@ -9211,7 +9224,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9211
9224
|
"click:chipClose"
|
|
9212
9225
|
], ["update:modelValue", "update:selected"]),
|
|
9213
9226
|
setup(e, { expose: t, emit: o }) {
|
|
9214
|
-
let u = e, d = o, p = h(
|
|
9227
|
+
let u = e, d = o, p = h(Co), m = h(So), g = f()?.type.__name;
|
|
9215
9228
|
if (H(p) || H(m)) throw Error(`[${g}] Incorrect provide/inject config.`);
|
|
9216
9229
|
let _ = u.filterByField, v = u.filterSortBy;
|
|
9217
9230
|
if (H(p.fields[_]) || H(m[_])) throw Error(`[${g}] Incorrect filter inner config. FilterByField is '${_}' and available options are ${Object.keys(m).join(", ")}.`);
|
|
@@ -9233,7 +9246,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9233
9246
|
if (H(te) || H(P) || H(u.v?.$path)) return "";
|
|
9234
9247
|
let { end: e } = Gt(u.v?.$path, ".");
|
|
9235
9248
|
return ee(te + "." + P + ".model." + e);
|
|
9236
|
-
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), oe = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: I } =
|
|
9249
|
+
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), oe = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: I } = $o(W(v) ? null : v.key, v?.order), ce = M([]), le = M([]), ue = M(!0), de = M(!1), fe = n(() => {
|
|
9237
9250
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
9238
9251
|
t.forEach((t) => {
|
|
9239
9252
|
e.set(t.value, {
|
|
@@ -9336,7 +9349,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9336
9349
|
}
|
|
9337
9350
|
j.value++, B(e, j.value), d("searchChangeDebounced", e);
|
|
9338
9351
|
}
|
|
9339
|
-
}, { debounce:
|
|
9352
|
+
}, { debounce: mf }), L(D, (e, t) => {
|
|
9340
9353
|
e !== t && d("searchChange", e);
|
|
9341
9354
|
});
|
|
9342
9355
|
let Oe = (e) => {
|
|
@@ -9397,7 +9410,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9397
9410
|
disabled: t.props.disabled,
|
|
9398
9411
|
"onClick:close": (e) => De(t.raw)
|
|
9399
9412
|
}, {
|
|
9400
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
9413
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", ff, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
9401
9414
|
_: 2
|
|
9402
9415
|
}, 1032, [
|
|
9403
9416
|
"closable",
|
|
@@ -9405,7 +9418,7 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9405
9418
|
"disabled",
|
|
9406
9419
|
"onClick:close"
|
|
9407
9420
|
])]),
|
|
9408
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span",
|
|
9421
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span", pf)) : i("", !0)]))]),
|
|
9409
9422
|
_: 2
|
|
9410
9423
|
}, [E.value ? {
|
|
9411
9424
|
name: "append-inner",
|
|
@@ -9437,6 +9450,6 @@ var Cd = /* @__PURE__ */ u({
|
|
|
9437
9450
|
}
|
|
9438
9451
|
});
|
|
9439
9452
|
//#endregion
|
|
9440
|
-
export {
|
|
9453
|
+
export { ps as $, br as $n, G as $r, Li as $t, Yu as A, ai as An, Tn as Ar, wo as At, ju as B, Wr as Bn, $t as Br, la as Bt, ud as C, mi as Cn, Dn as Cr, Oo as Ct, rd as D, ci as Dn, An as Dr, Co as Dt, od as E, li as En, En as Er, bo as Et, Uu as F, qr as Fn, sn as Fr, po as Ft, ou as G, Vr as Gn, Ht as Gr, sa as Gt, yu as H, Zr as Hn, Zt as Hr, ca as Ht, Hu as I, Gr as In, rn as Ir, fo as It, Ss as J, hr as Jn, Kt as Jr, ta as Jt, Gl as K, xr as Kn, Vt as Kr, ra as Kt, Vu as L, Yr as Ln, tn as Lr, Ra as Lt, Ju as M, ti as Mn, kn as Mr, vo as Mt, Ku as N, $r as Nn, bn as Nr, yo as Nt, $u as O, si as On, jn as Or, So as Ot, Wu as P, ei as Pn, Sn as Pr, mo as Pt, _s as Q, vr as Qn, K as Qr, Ui as Qt, Iu as R, Xr as Rn, nn as Rr, da as Rt, ld as S, _i as Sn, wn as Sr, Uo as St, pd as T, fi as Tn, Cn as Tr, xo as Tt, pu as U, Ur as Un, Gt as Ur, oa as Ut, bu as V, Jr as Vn, Qt as Vr, ia as Vt, au as W, Hr as Wn, Wt as Wr, aa as Wt, ys as X, _r as Xn, Yt as Xr, Fi as Xt, vs as Y, mr as Yn, Jt as Yr, Ii as Yt, gs as Z, gr as Zn, Xt as Zr, Qi as Zt, yd as _, Dt as _i, Ci as _n, zn as _r, Fo as _t, zd as a, Rt as ai, Vi as an, ar, os as at, md as b, yi as bn, Mn as br, Io as bt, Fd as c, W as ci, Xi as cn, qn as cr, ts as ct, Td as d, Mt as di, zi as dn, Bn as dr, Xo as dt, Pt as ei, Yi as en, dr as er, fs as et, Cd as f, H as fi, Ki as fn, Gn as fr, Zo as ft, bd as g, Tt as gi, wi as gn, Hn as gr, Wo as gt, xd as h, wt as hi, Di as hn, Ln as hr, qo as ht, Vd as i, zt as ii, qi as in, sr as ir, ss as it, qu as j, ii as jn, On as jr, Do as jt, Qu as k, ri as kn, xn as kr, To as kt, Ad as l, jt as li, Wi as ln, Jn as lr, es as lt, Sd as m, kt as mi, Ei as mn, Un as mr, Jo as mt, df as n, Ft as ni, Ji as nn, ur as nr, ls as nt, Rd as o, Nt as oi, Ri as on, ir as or, as as ot, wd as p, At as pi, Oi as pn, Wn as pr, Yo as pt, Ts as q, pr as qn, qt as qr, na as qt, Bd as r, Bt as ri, Bi as rn, lr as rr, cs as rt, Ld as s, It as si, Gi as sn, nr as sr, ns as st, hf as t, U as ti, Hi as tn, fr as tr, us as tt, Dd as u, Lt as ui, Zi as un, Rn as ur, $o as ut, _d as v, Si as vn, Vn as vr, zo as vt, fd as w, di as wn, In as wr, Eo as wt, sd as x, gi as xn, Pn as xr, Vo as xt, vd as y, xi as yn, Nn as yr, Ro as yt, Nu as z, Kr as zn, en as zr, ua as zt };
|
|
9441
9454
|
|
|
9442
|
-
//# sourceMappingURL=AFormRemoteAutocomplete-
|
|
9455
|
+
//# sourceMappingURL=AFormRemoteAutocomplete-f8Kz2DT2.mjs.map
|