@anzusystems/common-admin 1.47.0-beta.dev-1789895853 → 1.47.0-beta.dev-1789897769
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-DtEeZY57.mjs → AFormRemoteAutocomplete-DIYc08Pe.mjs} +825 -825
- package/dist/AFormRemoteAutocomplete-DIYc08Pe.mjs.map +1 -0
- package/dist/common-admin.js +3 -3
- package/dist/{esm-DmynC16A.mjs → esm-Dov5R7kE.mjs} +2 -2
- package/dist/{esm-DmynC16A.mjs.map → esm-Dov5R7kE.mjs.map} +1 -1
- package/dist/labs.js +1 -1
- package/dist/{webfontloader-DKErl27O.mjs → webfontloader-Db3zCeVG.mjs} +2 -2
- package/dist/{webfontloader-DKErl27O.mjs.map → webfontloader-Db3zCeVG.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/AFormRemoteAutocomplete-DtEeZY57.mjs.map +0 -1
|
@@ -1972,17 +1972,17 @@ var Ui = ".000000Z", Wi = "YYYY-MM-DDTHH:mm:ss", Gi = "1970-01-01T00:00:00.00000
|
|
|
1972
1972
|
let t = { ...e };
|
|
1973
1973
|
for (let e of wa) delete t[e];
|
|
1974
1974
|
return t;
|
|
1975
|
-
}, Ea = Xe.create(),
|
|
1975
|
+
}, Ea, Da = () => Ea ??= Xe.create(), Oa = (e, t, n = {}, r, i) => {
|
|
1976
1976
|
if (!H(t)) try {
|
|
1977
1977
|
let a = (Xe.isAxiosError(r) ? r.config : void 0) ?? i, o = H(a) ? e().getUri({
|
|
1978
1978
|
...Ta(n),
|
|
1979
1979
|
url: t
|
|
1980
|
-
}) :
|
|
1980
|
+
}) : Da().getUri(a);
|
|
1981
1981
|
return It(o) ? o : t;
|
|
1982
1982
|
} catch {
|
|
1983
1983
|
return t;
|
|
1984
1984
|
}
|
|
1985
|
-
},
|
|
1985
|
+
}, ka = (e = {}) => {
|
|
1986
1986
|
let { cancelPrevious: t = !1 } = e, n = /* @__PURE__ */ new Set(), r = 0, i = M(!1), a = () => {
|
|
1987
1987
|
i.value = n.size > 0;
|
|
1988
1988
|
}, o = () => {
|
|
@@ -2009,8 +2009,8 @@ var Ui = ".000000Z", Wi = "YYYY-MM-DDTHH:mm:ss", Gi = "1970-01-01T00:00:00.00000
|
|
|
2009
2009
|
generation: () => r,
|
|
2010
2010
|
loading: i
|
|
2011
2011
|
};
|
|
2012
|
-
},
|
|
2013
|
-
let { client: n, method: r, system: i, entity: a, urlTemplate: o, urlParams: s, options: c = {}, cancelPrevious: l = !1 } = e, u =
|
|
2012
|
+
}, Aa = (e, t) => {
|
|
2013
|
+
let { client: n, method: r, system: i, entity: a, urlTemplate: o, urlParams: s, options: c = {}, cancelPrevious: l = !1 } = e, u = ka({ cancelPrevious: l });
|
|
2014
2014
|
return {
|
|
2015
2015
|
execute: async (e = {}) => {
|
|
2016
2016
|
let { urlTemplate: l, urlParams: d, body: f, signal: p } = e, m = U(l) ? l : o, h = U(d) ? d : s, g, _;
|
|
@@ -2030,12 +2030,12 @@ var Ui = ".000000Z", Wi = "YYYY-MM-DDTHH:mm:ss", Gi = "1970-01-01T00:00:00.00000
|
|
|
2030
2030
|
return g = t, o.request(a);
|
|
2031
2031
|
}, p);
|
|
2032
2032
|
if (_ = e.config, !ha(e.status)) throw new gi(e.status);
|
|
2033
|
-
return t(e, () =>
|
|
2033
|
+
return t(e, () => Oa(n, g, c, void 0, _));
|
|
2034
2034
|
} catch (e) {
|
|
2035
2035
|
let t = {
|
|
2036
2036
|
system: i,
|
|
2037
2037
|
entity: a,
|
|
2038
|
-
url:
|
|
2038
|
+
url: Oa(n, g, c, e, _)
|
|
2039
2039
|
};
|
|
2040
2040
|
throw xa(Sa(e, t), t);
|
|
2041
2041
|
}
|
|
@@ -2044,9 +2044,9 @@ var Ui = ".000000Z", Wi = "YYYY-MM-DDTHH:mm:ss", Gi = "1970-01-01T00:00:00.00000
|
|
|
2044
2044
|
loading: u.loading
|
|
2045
2045
|
};
|
|
2046
2046
|
};
|
|
2047
|
-
function
|
|
2047
|
+
function ja(e) {
|
|
2048
2048
|
let t = e.optionalBody === !0;
|
|
2049
|
-
return
|
|
2049
|
+
return Aa(e, (e, n) => {
|
|
2050
2050
|
if (e.status === 204) {
|
|
2051
2051
|
if (t) return;
|
|
2052
2052
|
throw new gi(e.status);
|
|
@@ -2055,7 +2055,7 @@ function Aa(e) {
|
|
|
2055
2055
|
if (!t) throw new gi(e.status, void 0, "Expected a response body, url: " + n());
|
|
2056
2056
|
});
|
|
2057
2057
|
}
|
|
2058
|
-
var
|
|
2058
|
+
var Ma = (e) => Aa(e, () => void 0), Na = /* @__PURE__ */ u({
|
|
2059
2059
|
__name: "ADatetime",
|
|
2060
2060
|
props: {
|
|
2061
2061
|
dateTime: {},
|
|
@@ -2065,87 +2065,87 @@ var ja = (e) => ka(e, () => void 0), Ma = /* @__PURE__ */ u({
|
|
|
2065
2065
|
let t = e, r = n(() => ra(t.dateTime, t.edgeDateValue));
|
|
2066
2066
|
return (e, t) => F(r.value);
|
|
2067
2067
|
}
|
|
2068
|
-
}), { t:
|
|
2069
|
-
function
|
|
2070
|
-
return et({ t:
|
|
2068
|
+
}), { t: Pa } = hr.global;
|
|
2069
|
+
function Fa() {
|
|
2070
|
+
return et({ t: Pa })($e, {
|
|
2071
2071
|
withArguments: !0,
|
|
2072
2072
|
messagePath: () => "error.jsValidation.between"
|
|
2073
2073
|
});
|
|
2074
2074
|
}
|
|
2075
2075
|
//#endregion
|
|
2076
2076
|
//#region src/validators/vuelidate/common/useValidateEmail.ts
|
|
2077
|
-
var { t:
|
|
2078
|
-
function
|
|
2079
|
-
return et({ t:
|
|
2077
|
+
var { t: Ia } = hr.global;
|
|
2078
|
+
function La() {
|
|
2079
|
+
return et({ t: Ia })(tt, { messagePath: () => "error.jsValidation.email" });
|
|
2080
2080
|
}
|
|
2081
2081
|
//#endregion
|
|
2082
2082
|
//#region src/validators/vuelidate/common/useValidateMaxLength.ts
|
|
2083
|
-
var { t:
|
|
2084
|
-
function
|
|
2085
|
-
return et({ t:
|
|
2083
|
+
var { t: Ra } = hr.global;
|
|
2084
|
+
function za() {
|
|
2085
|
+
return et({ t: Ra })(rt, {
|
|
2086
2086
|
withArguments: !0,
|
|
2087
2087
|
messagePath: () => "error.jsValidation.maxLength"
|
|
2088
2088
|
});
|
|
2089
2089
|
}
|
|
2090
2090
|
//#endregion
|
|
2091
2091
|
//#region src/validators/vuelidate/common/useValidateMaxValue.ts
|
|
2092
|
-
var { t:
|
|
2093
|
-
function
|
|
2094
|
-
return et({ t:
|
|
2092
|
+
var { t: Ba } = hr.global;
|
|
2093
|
+
function Va() {
|
|
2094
|
+
return et({ t: Ba })(it, {
|
|
2095
2095
|
withArguments: !0,
|
|
2096
2096
|
messagePath: () => "error.jsValidation.maxValue"
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
2099
|
//#endregion
|
|
2100
2100
|
//#region src/validators/vuelidate/common/useValidateMinLength.ts
|
|
2101
|
-
var { t:
|
|
2102
|
-
function
|
|
2103
|
-
return et({ t:
|
|
2101
|
+
var { t: Ha } = hr.global;
|
|
2102
|
+
function Ua() {
|
|
2103
|
+
return et({ t: Ha })(at, {
|
|
2104
2104
|
withArguments: !0,
|
|
2105
2105
|
messagePath: () => "error.jsValidation.minLength"
|
|
2106
2106
|
});
|
|
2107
2107
|
}
|
|
2108
2108
|
//#endregion
|
|
2109
2109
|
//#region src/validators/vuelidate/common/useValidateMinValue.ts
|
|
2110
|
-
var { t:
|
|
2111
|
-
function
|
|
2112
|
-
return et({ t:
|
|
2110
|
+
var { t: Wa } = hr.global;
|
|
2111
|
+
function Ga() {
|
|
2112
|
+
return et({ t: Wa })(ot, {
|
|
2113
2113
|
withArguments: !0,
|
|
2114
2114
|
messagePath: () => "error.jsValidation.minValue"
|
|
2115
2115
|
});
|
|
2116
2116
|
}
|
|
2117
2117
|
//#endregion
|
|
2118
2118
|
//#region src/validators/vuelidate/common/useValidateNumeric.ts
|
|
2119
|
-
var { t:
|
|
2120
|
-
function
|
|
2121
|
-
return et({ t:
|
|
2119
|
+
var { t: Ka } = hr.global;
|
|
2120
|
+
function qa() {
|
|
2121
|
+
return et({ t: Ka })(st, { messagePath: () => "error.jsValidation.numeric" });
|
|
2122
2122
|
}
|
|
2123
2123
|
//#endregion
|
|
2124
2124
|
//#region src/validators/vuelidate/common/useValidateRequired.ts
|
|
2125
|
-
var { t:
|
|
2126
|
-
function
|
|
2127
|
-
return et({ t:
|
|
2125
|
+
var { t: Ja } = hr.global;
|
|
2126
|
+
function Ya() {
|
|
2127
|
+
return et({ t: Ja })(ct, { messagePath: () => "error.jsValidation.required" });
|
|
2128
2128
|
}
|
|
2129
2129
|
//#endregion
|
|
2130
2130
|
//#region src/validators/vuelidate/common/useValidateRequiredIf.ts
|
|
2131
|
-
var { t:
|
|
2132
|
-
function
|
|
2133
|
-
return et({ t:
|
|
2131
|
+
var { t: Xa } = hr.global;
|
|
2132
|
+
function Za() {
|
|
2133
|
+
return et({ t: Xa })(lt, {
|
|
2134
2134
|
withArguments: !0,
|
|
2135
2135
|
messagePath: () => "error.jsValidation.required"
|
|
2136
2136
|
});
|
|
2137
2137
|
}
|
|
2138
2138
|
//#endregion
|
|
2139
2139
|
//#region src/validators/vuelidate/common/useValidateSlug.ts
|
|
2140
|
-
var { t:
|
|
2141
|
-
function
|
|
2142
|
-
return et({ t:
|
|
2140
|
+
var { t: Qa } = hr.global;
|
|
2141
|
+
function $a() {
|
|
2142
|
+
return et({ t: Qa })(nt.regex(/^[a-z\-0-9]+$/), { messagePath: () => "error.jsValidation.slug" });
|
|
2143
2143
|
}
|
|
2144
2144
|
//#endregion
|
|
2145
2145
|
//#region src/validators/vuelidate/common/useValidateStringArrayItemLength.ts
|
|
2146
|
-
var { t:
|
|
2147
|
-
function
|
|
2148
|
-
let e = et({ t:
|
|
2146
|
+
var { t: eo } = hr.global;
|
|
2147
|
+
function to() {
|
|
2148
|
+
let e = et({ t: eo }), t = (e, t) => (n) => !nt.req(n) || n.every((n) => n.length >= I(e) && n.length <= I(t));
|
|
2149
2149
|
return e((e, n) => ({
|
|
2150
2150
|
$validator: t(e, n),
|
|
2151
2151
|
$params: {
|
|
@@ -2160,15 +2160,15 @@ function eo() {
|
|
|
2160
2160
|
}
|
|
2161
2161
|
//#endregion
|
|
2162
2162
|
//#region src/validators/vuelidate/common/useValidateUrl.ts
|
|
2163
|
-
var { t:
|
|
2164
|
-
function
|
|
2165
|
-
return et({ t:
|
|
2163
|
+
var { t: no } = hr.global;
|
|
2164
|
+
function ro() {
|
|
2165
|
+
return et({ t: no })(ut, { messagePath: () => "error.jsValidation.url" });
|
|
2166
2166
|
}
|
|
2167
2167
|
//#endregion
|
|
2168
2168
|
//#region src/validators/vuelidate/common/useValidateCompareDates.ts
|
|
2169
|
-
var { t:
|
|
2170
|
-
function
|
|
2171
|
-
let e = et({ t:
|
|
2169
|
+
var { t: io } = hr.global;
|
|
2170
|
+
function ao() {
|
|
2171
|
+
let e = et({ t: io }), t = (e, t, n) => (t) => {
|
|
2172
2172
|
let r = I(e);
|
|
2173
2173
|
if (t === null && r === null || t === null || r === null) return !0;
|
|
2174
2174
|
let i = new Date(t), a = new Date(r);
|
|
@@ -2194,26 +2194,26 @@ function io() {
|
|
|
2194
2194
|
}
|
|
2195
2195
|
//#endregion
|
|
2196
2196
|
//#region src/validators/vuelidate/useValidate.ts
|
|
2197
|
-
function
|
|
2197
|
+
function oo() {
|
|
2198
2198
|
return {
|
|
2199
|
-
required:
|
|
2200
|
-
requiredIf:
|
|
2201
|
-
minLength:
|
|
2202
|
-
maxLength:
|
|
2203
|
-
minValue:
|
|
2204
|
-
maxValue:
|
|
2205
|
-
between:
|
|
2206
|
-
email:
|
|
2207
|
-
numeric:
|
|
2208
|
-
slug:
|
|
2209
|
-
url:
|
|
2210
|
-
stringArrayItemLength:
|
|
2211
|
-
datesCompare:
|
|
2199
|
+
required: Ya(),
|
|
2200
|
+
requiredIf: Za(),
|
|
2201
|
+
minLength: Ua(),
|
|
2202
|
+
maxLength: za(),
|
|
2203
|
+
minValue: Ga(),
|
|
2204
|
+
maxValue: Va(),
|
|
2205
|
+
between: Fa(),
|
|
2206
|
+
email: La(),
|
|
2207
|
+
numeric: qa(),
|
|
2208
|
+
slug: $a(),
|
|
2209
|
+
url: ro(),
|
|
2210
|
+
stringArrayItemLength: to(),
|
|
2211
|
+
datesCompare: ao()
|
|
2212
2212
|
};
|
|
2213
2213
|
}
|
|
2214
2214
|
//#endregion
|
|
2215
2215
|
//#region src/components/datetime/TimePicker.vue?vue&type=script&setup=true&lang.ts
|
|
2216
|
-
var
|
|
2216
|
+
var so = { class: "a-datetime-picker-time" }, co = { class: "a-datetime-picker-time__item a-datetime-picker-time__item" }, lo = ["aria-label"], uo = { class: "a-datetime-picker-time__arrows" }, fo = { class: "a-datetime-picker-time__item" }, po = ["aria-label"], mo = { class: "a-datetime-picker-time__arrows" }, ho = /*#__PURE__*/ jt(/* @__PURE__ */ u({
|
|
2217
2217
|
__name: "TimePicker",
|
|
2218
2218
|
props: {
|
|
2219
2219
|
modelValue: { required: !0 },
|
|
@@ -2300,8 +2300,8 @@ var oo = { class: "a-datetime-picker-time" }, so = { class: "a-datetime-picker-t
|
|
|
2300
2300
|
d.value?.focus();
|
|
2301
2301
|
} });
|
|
2302
2302
|
let { t: T } = me();
|
|
2303
|
-
return (e, t) => (k(), a("div",
|
|
2304
|
-
o("div",
|
|
2303
|
+
return (e, t) => (k(), a("div", so, [
|
|
2304
|
+
o("div", co, [de(o("input", {
|
|
2305
2305
|
ref_key: "hoursRefInput",
|
|
2306
2306
|
ref: d,
|
|
2307
2307
|
"onUpdate:modelValue": t[0] ||= (e) => p.value = e,
|
|
@@ -2314,7 +2314,7 @@ var oo = { class: "a-datetime-picker-time" }, so = { class: "a-datetime-picker-t
|
|
|
2314
2314
|
onFocus: h,
|
|
2315
2315
|
onBlur: g,
|
|
2316
2316
|
onKeyup: fe(v, ["enter"])
|
|
2317
|
-
}, null, 40,
|
|
2317
|
+
}, null, 40, lo), [[le, p.value]]), o("div", uo, [l(V, {
|
|
2318
2318
|
tabindex: "-1",
|
|
2319
2319
|
variant: "text",
|
|
2320
2320
|
class: "a-datetime-picker-time__arrow-up",
|
|
@@ -2332,7 +2332,7 @@ var oo = { class: "a-datetime-picker-time" }, so = { class: "a-datetime-picker-t
|
|
|
2332
2332
|
_: 1
|
|
2333
2333
|
})])]),
|
|
2334
2334
|
t[2] ||= o("span", { class: "a-datetime-picker-time__separator" }, ":", -1),
|
|
2335
|
-
o("div",
|
|
2335
|
+
o("div", fo, [de(o("input", {
|
|
2336
2336
|
ref_key: "minutesRefInput",
|
|
2337
2337
|
ref: f,
|
|
2338
2338
|
"onUpdate:modelValue": t[1] ||= (e) => m.value = e,
|
|
@@ -2345,7 +2345,7 @@ var oo = { class: "a-datetime-picker-time" }, so = { class: "a-datetime-picker-t
|
|
|
2345
2345
|
onFocus: h,
|
|
2346
2346
|
onBlur: _,
|
|
2347
2347
|
onKeyup: fe(y, ["enter"])
|
|
2348
|
-
}, null, 40,
|
|
2348
|
+
}, null, 40, po), [[le, m.value]]), o("div", mo, [l(V, {
|
|
2349
2349
|
tabindex: "-1",
|
|
2350
2350
|
variant: "text",
|
|
2351
2351
|
class: "a-datetime-picker-time__arrow-up",
|
|
@@ -2366,31 +2366,31 @@ var oo = { class: "a-datetime-picker-time" }, so = { class: "a-datetime-picker-t
|
|
|
2366
2366
|
}
|
|
2367
2367
|
}), [["__scopeId", "data-v-e9afd3f9"]]);
|
|
2368
2368
|
q.default.extend(Vi.default), q.default.extend(Hi.default);
|
|
2369
|
-
var
|
|
2369
|
+
var go = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", _o = "YYYY-MM-DDTHH:mm:ss", vo = "DD.MM.YYYY", yo = ["DD.MM.YYYY HH:mm", vo], bo = (e) => e === "date" ? "dd.mm.yyyy" : "dd.mm.yyyy hh:mm", xo = (e) => e === "date" ? vo : "DD.MM.YYYY HH:mm", So = (e, t, n = !1) => {
|
|
2370
2370
|
if (W(e) || H(e) || e.length === 0) return null;
|
|
2371
2371
|
if (t === "date") {
|
|
2372
2372
|
let t = q.default.utc(e);
|
|
2373
2373
|
return t.isValid() ? t : null;
|
|
2374
2374
|
}
|
|
2375
|
-
let r = (0, q.default)(e,
|
|
2375
|
+
let r = (0, q.default)(e, go), i = r.isValid() ? r : (0, q.default)(e);
|
|
2376
2376
|
return i.isValid() ? n ? i.millisecond(999) : i.millisecond(0) : null;
|
|
2377
|
-
},
|
|
2377
|
+
}, Co = (e, t, n = 0) => {
|
|
2378
2378
|
if (t === "date") {
|
|
2379
|
-
let t = q.default.utc(e,
|
|
2379
|
+
let t = q.default.utc(e, vo);
|
|
2380
2380
|
return t.isValid() ? t : null;
|
|
2381
2381
|
}
|
|
2382
|
-
let r = (0, q.default)(e,
|
|
2382
|
+
let r = (0, q.default)(e, yo);
|
|
2383
2383
|
return r.isValid() ? r.second(n) : null;
|
|
2384
|
-
},
|
|
2384
|
+
}, wo = (e, t) => t === "date" ? e.format("YYYY-MM-DD") + "T00:00:00" + Ui : e.utc().format(_o) + Ui, To = (e, t) => e.format(xo(t)), Eo = (e, t) => t === "date" ? new Date(e.year(), e.month(), e.date()) : e.toDate(), Do = (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()), Oo = (e, t = !1) => {
|
|
2385
2385
|
if (e === "date") {
|
|
2386
2386
|
let e = /* @__PURE__ */ new Date();
|
|
2387
2387
|
return q.default.utc(Date.UTC(e.getFullYear(), e.getMonth(), e.getDate()));
|
|
2388
2388
|
}
|
|
2389
2389
|
return t ? (0, q.default)().second(59).millisecond(999) : (0, q.default)().second(0).millisecond(0);
|
|
2390
|
-
},
|
|
2390
|
+
}, ko = (e, t = !1) => e === "date" ? Oo(e) : t ? (0, q.default)().hour(0).minute(0).second(59).millisecond(999) : (0, q.default)().hour(0).minute(0).second(0).millisecond(0), Ao = (e, t, n) => !W(t) && e.isSame(t, n === "date" ? "day" : "second"), jo = { class: "d-flex" }, Mo = { class: "ml-1" }, No = {
|
|
2391
2391
|
key: 0,
|
|
2392
2392
|
class: "required"
|
|
2393
|
-
},
|
|
2393
|
+
}, Po = /*#__PURE__*/ jt(/* @__PURE__ */ u({
|
|
2394
2394
|
__name: "ADatetimePicker",
|
|
2395
2395
|
props: {
|
|
2396
2396
|
modelValue: {},
|
|
@@ -2438,31 +2438,31 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2438
2438
|
"afterClear"
|
|
2439
2439
|
],
|
|
2440
2440
|
setup(e, { emit: t }) {
|
|
2441
|
-
let u = e, d = t, f = M(!1), p = M(0), m = M(0), h = ce("timePickerInstance"), g = ce("inputInstance"), _ = ce("confirmRefButton"), v = M(""), y = M(null), S = M(null), C = M(null), { t: w } = me(), T = n(() => u.placeholder.length ? u.placeholder :
|
|
2441
|
+
let u = e, d = t, f = M(!1), p = M(0), m = M(0), h = ce("timePickerInstance"), g = ce("inputInstance"), _ = ce("confirmRefButton"), v = M(""), y = M(null), S = M(null), C = M(null), { t: w } = me(), T = n(() => u.placeholder.length ? u.placeholder : bo(u.type)), { requiredIf: E } = oo(), D = n(() => ({ textFieldValue: { required: E(u.required) } })), O = Qe(D, { textFieldValue: v }), A = (e) => {
|
|
2442
2442
|
e !== u.modelValue && d("update:modelValue", e);
|
|
2443
2443
|
}, j = (e) => {
|
|
2444
2444
|
W(e) || (u.type !== "date" && (W(S.value) || e.hour() !== S.value.hours || e.minute() !== S.value.minutes) && (S.value = {
|
|
2445
2445
|
hours: e.hour(),
|
|
2446
2446
|
minutes: e.minute()
|
|
2447
|
-
}), (W(y.value) || e.year() !== y.value.getFullYear() || e.month() !== y.value.getMonth() || e.date() !== y.value.getDate()) && (y.value =
|
|
2447
|
+
}), (W(y.value) || e.year() !== y.value.getFullYear() || e.month() !== y.value.getMonth() || e.date() !== y.value.getDate()) && (y.value = Eo(e, u.type)));
|
|
2448
2448
|
};
|
|
2449
2449
|
L(() => u.modelValue, (e, t) => {
|
|
2450
|
-
e !== t && (C.value =
|
|
2450
|
+
e !== t && (C.value = So(e, u.type, u.lastMinuteMoment));
|
|
2451
2451
|
}, { immediate: !0 });
|
|
2452
|
-
let ee = (e, t) => W(e) ? t :
|
|
2452
|
+
let ee = (e, t) => W(e) ? t : Do(t, e, u.type), te = (e, t) => W(e) || u.type === "date" ? t : t.set("hour", e.hours).set("minute", e.minutes);
|
|
2453
2453
|
L([S, y], ([e, t]) => {
|
|
2454
2454
|
let n = null;
|
|
2455
|
-
n = W(C.value) ?
|
|
2455
|
+
n = W(C.value) ? So(u.modelValue, u.type, u.lastMinuteMoment) ?? ko(u.type, u.lastMinuteMoment) : C.value, n = te(e, n), n = ee(t, n), !n.isSame(ie(C.value)) && (C.value = n);
|
|
2456
2456
|
}), L(C, (e) => {
|
|
2457
2457
|
if (W(e)) {
|
|
2458
2458
|
v.value = "", A(null);
|
|
2459
2459
|
return;
|
|
2460
2460
|
}
|
|
2461
|
-
let t =
|
|
2462
|
-
v.value =
|
|
2461
|
+
let t = wo(e, u.type);
|
|
2462
|
+
v.value = To(e, u.type), j(e), A(t);
|
|
2463
2463
|
}, { immediate: !0 }), L(f, (e) => {
|
|
2464
2464
|
if (e) {
|
|
2465
|
-
ne(), W(C.value) && (W(u.defaultValue) || H(u.defaultValue)) && (C.value =
|
|
2465
|
+
ne(), W(C.value) && (W(u.defaultValue) || H(u.defaultValue)) && (C.value = Oo(u.type, u.lastMinuteMoment)), d("onOpen");
|
|
2466
2466
|
return;
|
|
2467
2467
|
}
|
|
2468
2468
|
d("onClose");
|
|
@@ -2470,21 +2470,21 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2470
2470
|
let P = n(() => U(u.errorMessages) ? u.errorMessages : O.value.textFieldValue.$errors.length ? [O.value.textFieldValue.$errors.map((e) => e.$message).join(" ")] : []), ne = () => {
|
|
2471
2471
|
let e = v.value.replace(/[^\s\d.:]/g, "").trim();
|
|
2472
2472
|
if (e.length === 0 && !u.required) {
|
|
2473
|
-
C.value =
|
|
2473
|
+
C.value = So(u.defaultValue, u.type, u.lastMinuteMoment), d("blur");
|
|
2474
2474
|
return;
|
|
2475
2475
|
}
|
|
2476
|
-
let t =
|
|
2476
|
+
let t = So(u.modelValue, u.type, u.lastMinuteMoment)?.second() ?? 0, n = Co(e, u.type, t);
|
|
2477
2477
|
if (!W(n)) {
|
|
2478
|
-
|
|
2478
|
+
Ao(n, ie(C.value), u.type) ? v.value = To(n, u.type) : C.value = n, O.value.textFieldValue.$touch(), d("blur");
|
|
2479
2479
|
return;
|
|
2480
2480
|
}
|
|
2481
|
-
W(C.value) || (v.value =
|
|
2481
|
+
W(C.value) || (v.value = To(C.value, u.type)), O.value.textFieldValue.$touch(), d("blur");
|
|
2482
2482
|
}, re = () => {
|
|
2483
2483
|
if (W(u.defaultValue) || H(u.defaultValue)) {
|
|
2484
2484
|
C.value = null, y.value = null, S.value = null, d("afterClear");
|
|
2485
2485
|
return;
|
|
2486
2486
|
}
|
|
2487
|
-
C.value =
|
|
2487
|
+
C.value = So(u.defaultValue, u.type, u.lastMinuteMoment), d("afterClear");
|
|
2488
2488
|
}, ae = () => {
|
|
2489
2489
|
f.value = !1, g.value?.focus(), g.value?.blur(), d("onClose"), d("blur");
|
|
2490
2490
|
}, oe = () => {
|
|
@@ -2500,7 +2500,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2500
2500
|
}
|
|
2501
2501
|
h.value?.focusHour();
|
|
2502
2502
|
}, pe = () => {
|
|
2503
|
-
C.value =
|
|
2503
|
+
C.value = Oo(u.type, u.lastMinuteMoment), x(() => {
|
|
2504
2504
|
p.value++, m.value++;
|
|
2505
2505
|
});
|
|
2506
2506
|
};
|
|
@@ -2565,7 +2565,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2565
2565
|
color: "primary",
|
|
2566
2566
|
"show-adjacent-months": ""
|
|
2567
2567
|
}, t.$attrs, { "onUpdate:modelValue": ue }), null, 16, ["modelValue"])),
|
|
2568
|
-
e.type === "date" ? i("", !0) : (k(), r(
|
|
2568
|
+
e.type === "date" ? i("", !0) : (k(), r(ho, {
|
|
2569
2569
|
ref_key: "timePickerInstance",
|
|
2570
2570
|
ref: h,
|
|
2571
2571
|
key: m.value,
|
|
@@ -2574,7 +2574,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2574
2574
|
onOnEnterKeyup: se,
|
|
2575
2575
|
onFocusConfirm: le
|
|
2576
2576
|
}, null, 8, ["modelValue"])),
|
|
2577
|
-
o("div",
|
|
2577
|
+
o("div", jo, [e.hideSetToNow ? i("", !0) : (k(), a("button", {
|
|
2578
2578
|
key: 0,
|
|
2579
2579
|
type: "button",
|
|
2580
2580
|
class: "a-datetime-picker__bottom-button",
|
|
@@ -2593,12 +2593,12 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2593
2593
|
})) : i("", !0)]),
|
|
2594
2594
|
_: 1
|
|
2595
2595
|
}, 8, ["model-value"])),
|
|
2596
|
-
o("div",
|
|
2596
|
+
o("div", Mo, [N(t.$slots, "append-inner", {}, void 0, !0)])
|
|
2597
2597
|
]),
|
|
2598
2598
|
_: 2
|
|
2599
2599
|
}, [e.hideLabel ? void 0 : {
|
|
2600
2600
|
name: "label",
|
|
2601
|
-
fn: R(() => [c(F(e.label), 1), e.required ? (k(), a("span",
|
|
2601
|
+
fn: R(() => [c(F(e.label), 1), e.required ? (k(), a("span", No)) : i("", !0)]),
|
|
2602
2602
|
key: "0"
|
|
2603
2603
|
}]), 1032, [
|
|
2604
2604
|
"modelValue",
|
|
@@ -2609,7 +2609,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2609
2609
|
"disabled"
|
|
2610
2610
|
]));
|
|
2611
2611
|
}
|
|
2612
|
-
}), [["__scopeId", "data-v-80659c91"]]),
|
|
2612
|
+
}), [["__scopeId", "data-v-80659c91"]]), Fo = /* @__PURE__ */ u({
|
|
2613
2613
|
__name: "AFormDatetimePicker",
|
|
2614
2614
|
props: {
|
|
2615
2615
|
modelValue: {},
|
|
@@ -2673,7 +2673,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2673
2673
|
}), 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);
|
|
2674
2674
|
return L(s, (e, t) => {
|
|
2675
2675
|
e !== t && c.value.enabled && (m.value || p.value) && u.value(e);
|
|
2676
|
-
}), (t, n) => (k(), r(
|
|
2676
|
+
}), (t, n) => (k(), r(Po, b({
|
|
2677
2677
|
modelValue: s.value,
|
|
2678
2678
|
"onUpdate:modelValue": n[0] ||= (e) => s.value = e,
|
|
2679
2679
|
type: e.type,
|
|
@@ -2706,7 +2706,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2706
2706
|
"clearable"
|
|
2707
2707
|
]));
|
|
2708
2708
|
}
|
|
2709
|
-
}),
|
|
2709
|
+
}), Io = /* @__PURE__ */ u({
|
|
2710
2710
|
__name: "AFormSwitch",
|
|
2711
2711
|
props: {
|
|
2712
2712
|
modelValue: { type: Boolean },
|
|
@@ -2772,7 +2772,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2772
2772
|
"disabled"
|
|
2773
2773
|
]));
|
|
2774
2774
|
}
|
|
2775
|
-
}),
|
|
2775
|
+
}), Lo = /* @__PURE__ */ u({
|
|
2776
2776
|
__name: "AChipNoLink",
|
|
2777
2777
|
props: {
|
|
2778
2778
|
color: { default: void 0 },
|
|
@@ -2797,7 +2797,7 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2797
2797
|
"size"
|
|
2798
2798
|
]));
|
|
2799
2799
|
}
|
|
2800
|
-
}),
|
|
2800
|
+
}), Ro = {
|
|
2801
2801
|
Debug: "DEBUG",
|
|
2802
2802
|
Info: "INFO",
|
|
2803
2803
|
Notice: "NOTICE",
|
|
@@ -2806,47 +2806,47 @@ var ho = "YYYY-MM-DDTHH:mm:ss.SSSSSSZ", go = "YYYY-MM-DDTHH:mm:ss", _o = "DD.MM.
|
|
|
2806
2806
|
Critical: "CRITICAL",
|
|
2807
2807
|
Alert: "ALERT",
|
|
2808
2808
|
Emergency: "EMERGENCY"
|
|
2809
|
-
},
|
|
2810
|
-
function
|
|
2809
|
+
}, zo = Ro.Info;
|
|
2810
|
+
function Bo() {
|
|
2811
2811
|
let e = M([
|
|
2812
2812
|
{
|
|
2813
|
-
value:
|
|
2814
|
-
title:
|
|
2813
|
+
value: Ro.Debug,
|
|
2814
|
+
title: Ro.Debug,
|
|
2815
2815
|
color: "blue-grey lighten-5"
|
|
2816
2816
|
},
|
|
2817
2817
|
{
|
|
2818
|
-
value:
|
|
2819
|
-
title:
|
|
2818
|
+
value: Ro.Info,
|
|
2819
|
+
title: Ro.Info,
|
|
2820
2820
|
color: "blue-grey lighten-3"
|
|
2821
2821
|
},
|
|
2822
2822
|
{
|
|
2823
|
-
value:
|
|
2824
|
-
title:
|
|
2823
|
+
value: Ro.Notice,
|
|
2824
|
+
title: Ro.Notice,
|
|
2825
2825
|
color: "amber lighten-4"
|
|
2826
2826
|
},
|
|
2827
2827
|
{
|
|
2828
|
-
value:
|
|
2829
|
-
title:
|
|
2828
|
+
value: Ro.Warning,
|
|
2829
|
+
title: Ro.Warning,
|
|
2830
2830
|
color: "amber"
|
|
2831
2831
|
},
|
|
2832
2832
|
{
|
|
2833
|
-
value:
|
|
2834
|
-
title:
|
|
2833
|
+
value: Ro.Error,
|
|
2834
|
+
title: Ro.Error,
|
|
2835
2835
|
color: "red"
|
|
2836
2836
|
},
|
|
2837
2837
|
{
|
|
2838
|
-
value:
|
|
2839
|
-
title:
|
|
2838
|
+
value: Ro.Critical,
|
|
2839
|
+
title: Ro.Critical,
|
|
2840
2840
|
color: "red accent-4"
|
|
2841
2841
|
},
|
|
2842
2842
|
{
|
|
2843
|
-
value:
|
|
2844
|
-
title:
|
|
2843
|
+
value: Ro.Alert,
|
|
2844
|
+
title: Ro.Alert,
|
|
2845
2845
|
color: "pink"
|
|
2846
2846
|
},
|
|
2847
2847
|
{
|
|
2848
|
-
value:
|
|
2849
|
-
title:
|
|
2848
|
+
value: Ro.Emergency,
|
|
2849
|
+
title: Ro.Emergency,
|
|
2850
2850
|
color: "ping darken-4"
|
|
2851
2851
|
}
|
|
2852
2852
|
]);
|
|
@@ -2857,12 +2857,12 @@ function zo() {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
//#endregion
|
|
2859
2859
|
//#region src/components/log/ALogLevelChip.vue
|
|
2860
|
-
var
|
|
2860
|
+
var Vo = /* @__PURE__ */ u({
|
|
2861
2861
|
__name: "ALogLevelChip",
|
|
2862
2862
|
props: { level: {} },
|
|
2863
2863
|
setup(e) {
|
|
2864
|
-
let t = e, { getLogLevelOption: a } =
|
|
2865
|
-
return (e, t) => o.value ? (k(), r(
|
|
2864
|
+
let t = e, { getLogLevelOption: a } = Bo(), o = n(() => a(t.level));
|
|
2865
|
+
return (e, t) => o.value ? (k(), r(Lo, {
|
|
2866
2866
|
key: 0,
|
|
2867
2867
|
color: o.value.color
|
|
2868
2868
|
}, {
|
|
@@ -2870,7 +2870,7 @@ var Bo = /* @__PURE__ */ u({
|
|
|
2870
2870
|
_: 1
|
|
2871
2871
|
}, 8, ["color"])) : i("", !0);
|
|
2872
2872
|
}
|
|
2873
|
-
}),
|
|
2873
|
+
}), Ho = (e) => "" + e, Uo = ["data-cy"], Wo = /* @__PURE__ */ u({
|
|
2874
2874
|
__name: "ACopyText",
|
|
2875
2875
|
props: {
|
|
2876
2876
|
value: {},
|
|
@@ -2880,7 +2880,7 @@ var Bo = /* @__PURE__ */ u({
|
|
|
2880
2880
|
},
|
|
2881
2881
|
setup(e) {
|
|
2882
2882
|
let t = e, { copy: n, isSupported: a } = Ne(), { showSuccess: s } = Li(), { t: l } = me(), u = (e) => {
|
|
2883
|
-
da(e), a && (Ft(t.value) ? n(
|
|
2883
|
+
da(e), a && (Ft(t.value) ? n(Ho(t.value)).then(() => {
|
|
2884
2884
|
s(l(t.notifyT));
|
|
2885
2885
|
}) : It(t.value) && t.value.length && n(t.value).then(() => {
|
|
2886
2886
|
s(l(t.notifyT));
|
|
@@ -2909,23 +2909,23 @@ var Bo = /* @__PURE__ */ u({
|
|
|
2909
2909
|
default: R(() => [c(F(I(l)(e.tooltipT)), 1)]),
|
|
2910
2910
|
_: 1
|
|
2911
2911
|
})) : i("", !0)
|
|
2912
|
-
], 10,
|
|
2912
|
+
], 10, Uo)]);
|
|
2913
2913
|
}
|
|
2914
|
-
}),
|
|
2915
|
-
function
|
|
2914
|
+
}), Go = M({}), Ko = M(!1), qo = "__unscoped", Jo = (e, t) => typeof e == "string" && typeof t == "string" ? `${e}_${t}` : qo;
|
|
2915
|
+
function Yo() {
|
|
2916
2916
|
return {
|
|
2917
2917
|
setStoredPage: (e, t) => {
|
|
2918
|
-
|
|
2918
|
+
Go.value[e] = t;
|
|
2919
2919
|
},
|
|
2920
2920
|
setPreservePage: () => {
|
|
2921
|
-
|
|
2921
|
+
Ko.value = !0;
|
|
2922
2922
|
},
|
|
2923
|
-
consumeStoredPage: (e) =>
|
|
2923
|
+
consumeStoredPage: (e) => Ko.value ? (Ko.value = !1, Go.value[e] ?? null) : null
|
|
2924
2924
|
};
|
|
2925
2925
|
}
|
|
2926
2926
|
//#endregion
|
|
2927
2927
|
//#region src/labs/filters/filterInjectionKeys.ts
|
|
2928
|
-
var
|
|
2928
|
+
var Xo = Symbol.for("anzu:FilterDataKey"), Zo = Symbol.for("anzu:FilterConfigKey"), Qo = Symbol.for("anzu:FilterInnerDataKey"), $o = Symbol.for("anzu:FilterInnerConfigKey"), es = Symbol.for("anzu:FilterSubmitResetCounterKey"), ts = Symbol.for("anzu:FilterSelectedKey"), ns = Symbol.for("anzu:DatatablePaginationKey"), rs = Symbol.for("anzu:SubjectSelectCloseSidebarKey"), is = Symbol.for("anzu:DatatablePageStoreKey"), as = "_sort", os = "~", ss = {
|
|
2929
2929
|
"%2C": ",",
|
|
2930
2930
|
"%3A": ":",
|
|
2931
2931
|
"%2F": "/",
|
|
@@ -2937,24 +2937,24 @@ var Yo = Symbol.for("anzu:FilterDataKey"), Xo = Symbol.for("anzu:FilterConfigKey
|
|
|
2937
2937
|
"%29": ")",
|
|
2938
2938
|
"%3B": ";",
|
|
2939
2939
|
"%3F": "?"
|
|
2940
|
-
},
|
|
2940
|
+
}, cs = (e) => e.replace(/%(2C|3A|2F|40|24|21|27|28|29|3B|3F)/g, (e) => ss[e]), ls = (e, t) => G(e) && G(t) ? e.length === t.length && e.every((e, n) => e === t[n]) : e === t, us = (e, t) => {
|
|
2941
2941
|
let n = new URLSearchParams();
|
|
2942
2942
|
for (let t in e) {
|
|
2943
2943
|
let r = e[t];
|
|
2944
2944
|
H(r) || W(r) || G(r) && Ut(r) || Vt(r) && Ht(r) || It(r) && r.length === 0 || n.set(t, G(r) ? r.join(",") : String(r));
|
|
2945
2945
|
}
|
|
2946
|
-
return t && n.set(
|
|
2946
|
+
return t && n.set(as, `${t.key},${t.order}`), n.size === 0 ? "" : cs(n.toString()) + os;
|
|
2947
2947
|
};
|
|
2948
|
-
function
|
|
2948
|
+
function ds(e, t, n) {
|
|
2949
2949
|
let r = {};
|
|
2950
2950
|
for (let [n, i] of Object.entries(t)) {
|
|
2951
2951
|
let t = e.fields[n];
|
|
2952
|
-
H(t) ||
|
|
2952
|
+
H(t) || ls(i, t.default) || (r[n] = i);
|
|
2953
2953
|
}
|
|
2954
|
-
let i =
|
|
2954
|
+
let i = us(r, n);
|
|
2955
2955
|
return i.length === 0 ? i : "#" + i;
|
|
2956
2956
|
}
|
|
2957
|
-
var
|
|
2957
|
+
var fs = (e) => !e.includes("%"), ps = {
|
|
2958
2958
|
skip: !1,
|
|
2959
2959
|
selected: !0,
|
|
2960
2960
|
xs: void 0,
|
|
@@ -2963,33 +2963,33 @@ var ds = (e) => !e.includes("%"), fs = {
|
|
|
2963
2963
|
lg: void 0,
|
|
2964
2964
|
xl: void 0
|
|
2965
2965
|
};
|
|
2966
|
-
function
|
|
2966
|
+
function ms(e) {
|
|
2967
2967
|
return j(e.reduce((e, t) => ({
|
|
2968
2968
|
...e,
|
|
2969
2969
|
[t.name]: K(t.default)
|
|
2970
2970
|
}), {}));
|
|
2971
2971
|
}
|
|
2972
|
-
function
|
|
2972
|
+
function hs(e, t, n) {
|
|
2973
2973
|
let r = e.reduce((e, t) => {
|
|
2974
2974
|
let r = t.name, i = K(t.default);
|
|
2975
2975
|
return {
|
|
2976
2976
|
...e,
|
|
2977
2977
|
[r]: {
|
|
2978
2978
|
name: r,
|
|
2979
|
-
variant:
|
|
2980
|
-
type:
|
|
2979
|
+
variant: gs(t.variant, "eq"),
|
|
2980
|
+
type: gs(t.type, "custom"),
|
|
2981
2981
|
titleT: t.titleT ?? (n?.system && n?.subject && t.name ? `${n.system}.${n.subject}.filter.${t.name}` : void 0),
|
|
2982
|
-
apiName:
|
|
2983
|
-
clearable:
|
|
2984
|
-
mandatory:
|
|
2982
|
+
apiName: gs(t.apiName, t.name),
|
|
2983
|
+
clearable: gs(t.clearable, !0),
|
|
2984
|
+
mandatory: gs(t.mandatory, !1),
|
|
2985
2985
|
multiple: G(i),
|
|
2986
|
-
advanced:
|
|
2987
|
-
related:
|
|
2988
|
-
exclude:
|
|
2986
|
+
advanced: gs(t.advanced, !1),
|
|
2987
|
+
related: gs(t.related, void 0),
|
|
2988
|
+
exclude: gs(t.exclude, !1),
|
|
2989
2989
|
default: i,
|
|
2990
2990
|
render: {
|
|
2991
|
-
...
|
|
2992
|
-
...
|
|
2991
|
+
...ps,
|
|
2992
|
+
...gs(t.render, {})
|
|
2993
2993
|
}
|
|
2994
2994
|
}
|
|
2995
2995
|
};
|
|
@@ -3009,10 +3009,10 @@ function ms(e, t, n) {
|
|
|
3009
3009
|
filterData: t
|
|
3010
3010
|
};
|
|
3011
3011
|
}
|
|
3012
|
-
function
|
|
3012
|
+
function gs(e, t) {
|
|
3013
3013
|
return H(e) ? t : e;
|
|
3014
3014
|
}
|
|
3015
|
-
function
|
|
3015
|
+
function _s() {
|
|
3016
3016
|
let e = (e, t, n) => {
|
|
3017
3017
|
n.fields[e]?.clearable && (t[e] = K(n.fields[e].default));
|
|
3018
3018
|
}, t = (t, n) => {
|
|
@@ -3044,38 +3044,38 @@ function gs() {
|
|
|
3044
3044
|
isClearable: i
|
|
3045
3045
|
};
|
|
3046
3046
|
}
|
|
3047
|
-
var
|
|
3047
|
+
var vs = {
|
|
3048
3048
|
storeFiltersLocalStorage: !0,
|
|
3049
3049
|
populateUrlParams: !0
|
|
3050
3050
|
};
|
|
3051
|
-
function
|
|
3051
|
+
function ys(e, t, n = {}) {
|
|
3052
3052
|
let r = {
|
|
3053
|
-
...
|
|
3053
|
+
...vs,
|
|
3054
3054
|
...n
|
|
3055
3055
|
}, i;
|
|
3056
3056
|
It(r.storeFiltersLocalStorage) ? i = r.storeFiltersLocalStorage : Rt(r.storeFiltersLocalStorage) && !0 === r.storeFiltersLocalStorage && It(t.general.system) && It(t.general.subject) && (i = "tableFilter_" + t.general.system + "_" + t.general.subject);
|
|
3057
|
-
let a = It(r.storeFiltersLocalStorage) ? r.storeFiltersLocalStorage :
|
|
3058
|
-
f() && A(
|
|
3059
|
-
let { clearAll: o } =
|
|
3057
|
+
let a = It(r.storeFiltersLocalStorage) ? r.storeFiltersLocalStorage : Jo(t.general.system, t.general.subject);
|
|
3058
|
+
f() && A(is, a);
|
|
3059
|
+
let { clearAll: o } = _s(), s = () => {
|
|
3060
3060
|
let n = {};
|
|
3061
3061
|
for (let r in e) try {
|
|
3062
3062
|
let i = r, a = e[i];
|
|
3063
|
-
!H(a) && !W(a) && !Ut(a) && !
|
|
3063
|
+
!H(a) && !W(a) && !Ut(a) && !ls(a, t.fields[i].default) && (n[r] = a);
|
|
3064
3064
|
} catch {}
|
|
3065
3065
|
return n;
|
|
3066
|
-
}, c = (e, t, n) =>
|
|
3066
|
+
}, c = (e, t, n) => us(e, n ? t.value.sortBy : void 0), l = (e) => {
|
|
3067
3067
|
if (!e) return null;
|
|
3068
3068
|
e.startsWith("#") && (e = e.substring(1));
|
|
3069
|
-
let n = e.indexOf(
|
|
3069
|
+
let n = e.indexOf(os);
|
|
3070
3070
|
if (n === -1) return null;
|
|
3071
3071
|
e = e.slice(0, n);
|
|
3072
|
-
let r = new URLSearchParams(e), i = {}, a = null, o = r.get(
|
|
3072
|
+
let r = new URLSearchParams(e), i = {}, a = null, o = r.get(as);
|
|
3073
3073
|
if (o) {
|
|
3074
3074
|
let [e, t] = o.split(",");
|
|
3075
3075
|
e && (t === Cr.Asc || t === Cr.Desc) && (a = {
|
|
3076
3076
|
key: e,
|
|
3077
3077
|
order: t
|
|
3078
|
-
}), r.delete(
|
|
3078
|
+
}), r.delete(as);
|
|
3079
3079
|
}
|
|
3080
3080
|
for (let [e, n] of r.entries()) {
|
|
3081
3081
|
let r = t.fields[e];
|
|
@@ -3105,7 +3105,7 @@ function vs(e, t, n = {}) {
|
|
|
3105
3105
|
};
|
|
3106
3106
|
return {
|
|
3107
3107
|
loadStoredFilters: (n, r) => {
|
|
3108
|
-
let { consumeStoredPage: l } =
|
|
3108
|
+
let { consumeStoredPage: l } = Yo(), d = "hash", f = p();
|
|
3109
3109
|
if (W(f) && (d = "localStorage", f = h()), W(f) || Ht(f.filters) && W(f.sortBy)) {
|
|
3110
3110
|
let e = l(a);
|
|
3111
3111
|
return e !== null && (n.value = {
|
|
@@ -3159,13 +3159,13 @@ function vs(e, t, n = {}) {
|
|
|
3159
3159
|
}
|
|
3160
3160
|
//#endregion
|
|
3161
3161
|
//#region src/labs/filters/filterTimeIntervalTools.ts
|
|
3162
|
-
var
|
|
3162
|
+
var bs = {
|
|
3163
3163
|
CurrentMonth: "cm",
|
|
3164
3164
|
LastMonth: "lm",
|
|
3165
3165
|
Last3Months: "l3m",
|
|
3166
3166
|
Custom: "custom"
|
|
3167
3167
|
};
|
|
3168
|
-
function
|
|
3168
|
+
function xs(e = void 0) {
|
|
3169
3169
|
let { t } = me(), r = n(() => {
|
|
3170
3170
|
let n = [
|
|
3171
3171
|
{
|
|
@@ -3189,19 +3189,19 @@ function bs(e = void 0) {
|
|
|
3189
3189
|
title: "28 dní"
|
|
3190
3190
|
},
|
|
3191
3191
|
{
|
|
3192
|
-
value:
|
|
3192
|
+
value: bs.CurrentMonth,
|
|
3193
3193
|
title: "Prebiehajúci mesiac"
|
|
3194
3194
|
},
|
|
3195
3195
|
{
|
|
3196
|
-
value:
|
|
3196
|
+
value: bs.LastMonth,
|
|
3197
3197
|
title: "Minulý mesiac"
|
|
3198
3198
|
},
|
|
3199
3199
|
{
|
|
3200
|
-
value:
|
|
3200
|
+
value: bs.Last3Months,
|
|
3201
3201
|
title: "Posledné 3 mesiace"
|
|
3202
3202
|
},
|
|
3203
3203
|
{
|
|
3204
|
-
value:
|
|
3204
|
+
value: bs.Custom,
|
|
3205
3205
|
title: "Vlastné"
|
|
3206
3206
|
}
|
|
3207
3207
|
];
|
|
@@ -3212,8 +3212,8 @@ function bs(e = void 0) {
|
|
|
3212
3212
|
getTimeIntervalOption: (e) => r.value.find((t) => t.value === e)
|
|
3213
3213
|
};
|
|
3214
3214
|
}
|
|
3215
|
-
function
|
|
3216
|
-
let { datesCompare: t, required: r } =
|
|
3215
|
+
function Ss(e) {
|
|
3216
|
+
let { datesCompare: t, required: r } = oo(), i = n(() => e.value.from), a = { dialogData: {
|
|
3217
3217
|
from: {
|
|
3218
3218
|
required: r,
|
|
3219
3219
|
datesCompare: t(n(() => e.value.until), "Until", "onOrBefore")
|
|
@@ -3227,7 +3227,7 @@ function xs(e) {
|
|
|
3227
3227
|
}
|
|
3228
3228
|
//#endregion
|
|
3229
3229
|
//#region src/labs/api/useApiQueryBuilder.ts
|
|
3230
|
-
function
|
|
3230
|
+
function Cs() {
|
|
3231
3231
|
let e = M([]), t = (e) => {
|
|
3232
3232
|
c("limit", e);
|
|
3233
3233
|
}, n = (e, t) => {
|
|
@@ -3244,9 +3244,9 @@ function Ss() {
|
|
|
3244
3244
|
};
|
|
3245
3245
|
let c = Xi(), l = Ji(c);
|
|
3246
3246
|
switch (o) {
|
|
3247
|
-
case
|
|
3248
|
-
case
|
|
3249
|
-
case
|
|
3247
|
+
case bs.CurrentMonth: return ua(l, "utc", 0, !1);
|
|
3248
|
+
case bs.LastMonth: return ua(l, "utc", -1, !1);
|
|
3249
|
+
case bs.Last3Months: return ua(l, "utc", -2, !0);
|
|
3250
3250
|
default: if (Ft(o)) return {
|
|
3251
3251
|
from: ta($i(o * -1, l)),
|
|
3252
3252
|
until: c
|
|
@@ -3296,7 +3296,7 @@ function Ss() {
|
|
|
3296
3296
|
}
|
|
3297
3297
|
//#endregion
|
|
3298
3298
|
//#region src/labs/api/listBody.ts
|
|
3299
|
-
var
|
|
3299
|
+
var ws = (e, t, n) => {
|
|
3300
3300
|
if (!Vt(e) || !Array.isArray(e.data)) throw new gi(t, void 0, "Expected a list body, url: " + n);
|
|
3301
3301
|
let { data: r, totalCount: i, hasNextPage: a, bigTable: o } = e;
|
|
3302
3302
|
return Rt(a) ? {
|
|
@@ -3321,11 +3321,11 @@ var Cs = (e, t, n) => {
|
|
|
3321
3321
|
pagination: {},
|
|
3322
3322
|
countIsBound: !1
|
|
3323
3323
|
};
|
|
3324
|
-
},
|
|
3325
|
-
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } =
|
|
3324
|
+
}, Ts = (e, t, n) => {
|
|
3325
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, querySetFilters: s } = Cs();
|
|
3326
3326
|
return r(e.value.rowsPerPage), i(e.value.page, e.value.rowsPerPage), e.value.sortBy && a(e.value.sortBy.key, e.value.sortBy.order === Cr.Desc), s(t, n), o();
|
|
3327
|
-
},
|
|
3328
|
-
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, cancelPrevious: s = !1 } = e, c =
|
|
3327
|
+
}, Es = (e) => {
|
|
3328
|
+
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, cancelPrevious: s = !1 } = e, c = ka({ cancelPrevious: s });
|
|
3329
3329
|
return {
|
|
3330
3330
|
execute: async (e, s, l, u = {}) => {
|
|
3331
3331
|
let { urlTemplate: d, urlParams: f, forceElastic: p = !1, signal: m } = u, h, g, _ = 0, v, y = (t) => {
|
|
@@ -3339,14 +3339,14 @@ var Cs = (e, t, n) => {
|
|
|
3339
3339
|
_ = r, v = n;
|
|
3340
3340
|
let c = U(d) ? d : i;
|
|
3341
3341
|
if (H(c)) throw new Xr(void 0, "Url template is undefined");
|
|
3342
|
-
let u = U(f) ? f : a, m = l.general.elastic || p ? "/search" : "", g = (H(u) ? c : ma(c, u)) + m +
|
|
3342
|
+
let u = U(f) ? f : a, m = l.general.elastic || p ? "/search" : "", g = (H(u) ? c : ma(c, u)) + m + Ts(e, s, l), y = t();
|
|
3343
3343
|
return h = g, y.get(g, {
|
|
3344
3344
|
...Ta(o),
|
|
3345
3345
|
signal: n
|
|
3346
3346
|
});
|
|
3347
3347
|
}, m);
|
|
3348
3348
|
g = n.config;
|
|
3349
|
-
let r = () =>
|
|
3349
|
+
let r = () => Oa(t, h, o, void 0, g);
|
|
3350
3350
|
if (!ha(n.status)) throw new gi(n.status);
|
|
3351
3351
|
if (n.status === 204) return y({
|
|
3352
3352
|
totalCount: 0,
|
|
@@ -3354,7 +3354,7 @@ var Cs = (e, t, n) => {
|
|
|
3354
3354
|
currentViewCount: 0
|
|
3355
3355
|
}), [];
|
|
3356
3356
|
if (!Ca(n)) throw new gi(n.status, void 0, "Expected a response body, url: " + r());
|
|
3357
|
-
let u =
|
|
3357
|
+
let u = ws(n.data, n.status, r());
|
|
3358
3358
|
return u.mode !== "unknown" && y({
|
|
3359
3359
|
...u.pagination,
|
|
3360
3360
|
currentViewCount: u.items.length
|
|
@@ -3363,7 +3363,7 @@ var Cs = (e, t, n) => {
|
|
|
3363
3363
|
let i = {
|
|
3364
3364
|
system: n,
|
|
3365
3365
|
entity: r,
|
|
3366
|
-
url:
|
|
3366
|
+
url: Oa(t, h, o, e, g)
|
|
3367
3367
|
};
|
|
3368
3368
|
throw xa(Sa(e, i), i);
|
|
3369
3369
|
}
|
|
@@ -3371,10 +3371,10 @@ var Cs = (e, t, n) => {
|
|
|
3371
3371
|
abort: c.abort,
|
|
3372
3372
|
loading: c.loading
|
|
3373
3373
|
};
|
|
3374
|
-
},
|
|
3375
|
-
function
|
|
3374
|
+
}, Ds = () => ({ rowsPerPage: 25 });
|
|
3375
|
+
function Os(e, t = Cr.Desc, n = {}, r) {
|
|
3376
3376
|
let i = {
|
|
3377
|
-
...
|
|
3377
|
+
...Ds(),
|
|
3378
3378
|
...n
|
|
3379
3379
|
}, a = r ?? M({
|
|
3380
3380
|
sortBy: W(e) ? null : {
|
|
@@ -3432,11 +3432,11 @@ function Ds(e, t = Cr.Desc, n = {}, r) {
|
|
|
3432
3432
|
}
|
|
3433
3433
|
//#endregion
|
|
3434
3434
|
//#region src/labs/api/useApiFetchByIds.ts
|
|
3435
|
-
var
|
|
3436
|
-
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, queryAddFilter: s, queryAdd: c } =
|
|
3435
|
+
var ks = (e, t, n = "id") => {
|
|
3436
|
+
let { querySetLimit: r, querySetOffset: i, querySetOrder: a, queryBuild: o, queryAddFilter: s, queryAdd: c } = Cs(), l = e.length;
|
|
3437
3437
|
return r(l), i(1, l), a(n, !1), t ? c(n, e.join(",")) : s("in", n, e.join(",")), o();
|
|
3438
|
-
},
|
|
3439
|
-
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, isSearchApi: s = !1, field: c = "id", cancelPrevious: l = !1 } = e, u =
|
|
3438
|
+
}, As = (e) => {
|
|
3439
|
+
let { client: t, system: n, entity: r, urlTemplate: i, urlParams: a, options: o = {}, isSearchApi: s = !1, field: c = "id", cancelPrevious: l = !1 } = e, u = ka({ cancelPrevious: l });
|
|
3440
3440
|
return {
|
|
3441
3441
|
execute: async (e, l = {}) => {
|
|
3442
3442
|
let { urlTemplate: d, urlParams: f, signal: p } = l, m, h;
|
|
@@ -3444,23 +3444,23 @@ var Os = (e, t, n = "id") => {
|
|
|
3444
3444
|
let n = await u.run((n) => {
|
|
3445
3445
|
let r = U(d) ? d : i;
|
|
3446
3446
|
if (H(r)) throw new Xr(void 0, "Url template is undefined");
|
|
3447
|
-
let l = U(f) ? f : a, u = (H(l) ? r : ma(r, l)) +
|
|
3447
|
+
let l = U(f) ? f : a, u = (H(l) ? r : ma(r, l)) + ks(e, s, c), p = t();
|
|
3448
3448
|
return m = u, p.get(u, {
|
|
3449
3449
|
...Ta(o),
|
|
3450
3450
|
signal: n
|
|
3451
3451
|
});
|
|
3452
3452
|
}, p);
|
|
3453
3453
|
h = n.config;
|
|
3454
|
-
let r = () =>
|
|
3454
|
+
let r = () => Oa(t, m, o, void 0, h);
|
|
3455
3455
|
if (!ha(n.status)) throw new gi(n.status);
|
|
3456
3456
|
if (n.status === 204) return [];
|
|
3457
3457
|
if (!Ca(n)) throw new gi(n.status, void 0, "Expected a response body, url: " + r());
|
|
3458
|
-
return
|
|
3458
|
+
return ws(n.data, n.status, r()).items;
|
|
3459
3459
|
} catch (e) {
|
|
3460
3460
|
let i = {
|
|
3461
3461
|
system: n,
|
|
3462
3462
|
entity: r,
|
|
3463
|
-
url:
|
|
3463
|
+
url: Oa(t, m, o, e, h)
|
|
3464
3464
|
};
|
|
3465
3465
|
throw xa(Sa(e, i), i);
|
|
3466
3466
|
}
|
|
@@ -3468,7 +3468,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3468
3468
|
abort: u.abort,
|
|
3469
3469
|
loading: u.loading
|
|
3470
3470
|
};
|
|
3471
|
-
},
|
|
3471
|
+
}, js = /* @__PURE__ */ u({
|
|
3472
3472
|
__name: "AFilterBooleanSelect",
|
|
3473
3473
|
props: {
|
|
3474
3474
|
name: {},
|
|
@@ -3479,7 +3479,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3479
3479
|
},
|
|
3480
3480
|
emits: ["change"],
|
|
3481
3481
|
setup(e, { emit: t }) {
|
|
3482
|
-
let i = e, a = t, o = h(
|
|
3482
|
+
let i = e, a = t, o = h(es), s = h(ts), c = h(Zo), l = h(Xo);
|
|
3483
3483
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
3484
3484
|
let u = n({
|
|
3485
3485
|
get() {
|
|
@@ -3511,7 +3511,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3511
3511
|
value: 0,
|
|
3512
3512
|
title: f(i.falseT)
|
|
3513
3513
|
}
|
|
3514
|
-
]), { clearOne: g } =
|
|
3514
|
+
]), { clearOne: g } = _s(), _ = () => {
|
|
3515
3515
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3516
3516
|
}, v = () => {
|
|
3517
3517
|
if (u.value.value === -1) {
|
|
@@ -3542,7 +3542,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3542
3542
|
"clearable"
|
|
3543
3543
|
]));
|
|
3544
3544
|
}
|
|
3545
|
-
}),
|
|
3545
|
+
}), Ms = /* @__PURE__ */ u({
|
|
3546
3546
|
__name: "AFilterString",
|
|
3547
3547
|
props: {
|
|
3548
3548
|
name: {},
|
|
@@ -3551,7 +3551,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3551
3551
|
},
|
|
3552
3552
|
emits: ["change"],
|
|
3553
3553
|
setup(e, { emit: t }) {
|
|
3554
|
-
let i = e, a = t, o = h(
|
|
3554
|
+
let i = e, a = t, o = h(es), s = h(ts), c = h(Zo), l = h(Xo);
|
|
3555
3555
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
3556
3556
|
let u = n({
|
|
3557
3557
|
get() {
|
|
@@ -3560,7 +3560,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3560
3560
|
set(e) {
|
|
3561
3561
|
l[i.name] = e, c.touched = !0, a("change");
|
|
3562
3562
|
}
|
|
3563
|
-
}), d = n(() => c.fields[i.name]), { t: f } = me(), 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 } =
|
|
3563
|
+
}), d = n(() => c.fields[i.name]), { t: f } = me(), 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 } = _s(), _ = () => {
|
|
3564
3564
|
g(i.name, l, c), s.value.delete(i.name);
|
|
3565
3565
|
}, v = () => {
|
|
3566
3566
|
if (Ft(u.value)) {
|
|
@@ -3600,10 +3600,10 @@ var Os = (e, t, n = "id") => {
|
|
|
3600
3600
|
"data-cy"
|
|
3601
3601
|
]));
|
|
3602
3602
|
}
|
|
3603
|
-
}),
|
|
3603
|
+
}), Ns = {
|
|
3604
3604
|
key: 0,
|
|
3605
3605
|
class: "font-italic pl-1"
|
|
3606
|
-
},
|
|
3606
|
+
}, Ps = 300, Fs = /* @__PURE__ */ u({
|
|
3607
3607
|
__name: "AFilterRemoteAutocomplete",
|
|
3608
3608
|
props: {
|
|
3609
3609
|
name: {},
|
|
@@ -3621,13 +3621,13 @@ var Os = (e, t, n = "id") => {
|
|
|
3621
3621
|
},
|
|
3622
3622
|
emits: ["change"],
|
|
3623
3623
|
setup(e, { emit: t }) {
|
|
3624
|
-
let o = e, u = t, d = h(
|
|
3624
|
+
let o = e, u = t, d = h(es), p = h(ts), m = h(Zo), g = h(Xo), _ = h($o), v = h(Qo), y = f()?.type.__name;
|
|
3625
3625
|
if (H(d) || H(p) || H(g) || H(m) || H(_) || H(v)) throw Error(`[${y}] Incorrect provide/inject config.`);
|
|
3626
3626
|
let x = o.filterByField, S = o.filterSortBy;
|
|
3627
3627
|
if (H(_.fields[x]) || H(v[x])) throw Error(`[${y}] Incorrect filter inner config. FilterByField is '${x}' and available options are ${Object.keys(v).join(", ")}.`);
|
|
3628
3628
|
let C = n(() => m.fields[o.name]), w = M([]), T = M(""), E = M(!1), D = M(null), O = M(0), { t: A } = me(), j = () => {
|
|
3629
3629
|
E.value = !1;
|
|
3630
|
-
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } =
|
|
3630
|
+
}, ee = n(() => C.value.titleT ? A(C.value.titleT) : void 0), { pagination: N } = Os(W(S) ? null : S.key, S?.order), te = M([]), P = M([]), ne = M(!0), re = M(!1), ie = n(() => {
|
|
3631
3631
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
3632
3632
|
t.forEach((t) => {
|
|
3633
3633
|
e.set(t.value, {
|
|
@@ -3691,7 +3691,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3691
3691
|
if (!C.value.multiple && P.value[0]) return P.value[0].title;
|
|
3692
3692
|
}), ge = (e) => {
|
|
3693
3693
|
(C.value.multiple || E.value || e.length !== 0) && pe.value !== e && (T.value = e);
|
|
3694
|
-
}, { clearOne: _e } =
|
|
3694
|
+
}, { clearOne: _e } = _s(), ve = () => {
|
|
3695
3695
|
_e(o.name, g, m), p.value.delete(o.name);
|
|
3696
3696
|
}, ye = async () => {
|
|
3697
3697
|
try {
|
|
@@ -3709,7 +3709,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3709
3709
|
}
|
|
3710
3710
|
O.value++, ue(e, O.value);
|
|
3711
3711
|
}
|
|
3712
|
-
}, { debounce:
|
|
3712
|
+
}, { debounce: Ps });
|
|
3713
3713
|
let B = async () => {
|
|
3714
3714
|
await de("mounted");
|
|
3715
3715
|
}, be = n(() => H(o.placeholder) ? C.value.variant === "startsWith" ? A("common.model.filterPlaceholder.startsWith") : C.value.variant === "eq" ? A("common.model.filterPlaceholder.eq") : C.value.variant === "search" ? A("common.model.filterPlaceholder.contains") : "" : o.placeholder), xe = n(() => {
|
|
@@ -3775,7 +3775,7 @@ var Os = (e, t, n = "id") => {
|
|
|
3775
3775
|
text: `${t.title} (${t.raw.subtitle})`,
|
|
3776
3776
|
disabled: t.props.disabled
|
|
3777
3777
|
}, {
|
|
3778
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
3778
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", Ns, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
3779
3779
|
_: 2
|
|
3780
3780
|
}, 1032, [
|
|
3781
3781
|
"closable",
|
|
@@ -3802,12 +3802,12 @@ var Os = (e, t, n = "id") => {
|
|
|
3802
3802
|
});
|
|
3803
3803
|
//#endregion
|
|
3804
3804
|
//#region src/utils/enum.ts
|
|
3805
|
-
function
|
|
3805
|
+
function Is(e, t) {
|
|
3806
3806
|
return t.includes(e);
|
|
3807
3807
|
}
|
|
3808
3808
|
//#endregion
|
|
3809
3809
|
//#region src/labs/filters/AFilterRemoteAutocompleteWithMinimal.vue
|
|
3810
|
-
var
|
|
3810
|
+
var Ls = /* @__PURE__ */ u({
|
|
3811
3811
|
__name: "AFilterRemoteAutocompleteWithMinimal",
|
|
3812
3812
|
props: {
|
|
3813
3813
|
name: {},
|
|
@@ -3826,13 +3826,13 @@ var Is = /* @__PURE__ */ u({
|
|
|
3826
3826
|
},
|
|
3827
3827
|
emits: ["change"],
|
|
3828
3828
|
setup(e, { emit: t }) {
|
|
3829
|
-
let i = e, a = t, o = h(
|
|
3829
|
+
let i = e, a = t, o = h(es), s = h(ts), c = h(Zo), u = h(Xo), d = h($o), p = h(Qo), m = f()?.type.__name;
|
|
3830
3830
|
if (H(o) || H(s) || H(u) || H(c) || H(d) || H(p)) throw Error(`[${m}] Incorrect provide/inject config.`);
|
|
3831
3831
|
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(", ")}.`);
|
|
3832
3832
|
if (H(d.fields[i.filterByField]) || H(p[i.filterByField])) throw Error(`[${m}] Incorrect filter inner config. FilterByField is '${i.filterByField}' and available options are ${Object.keys(p).join(", ")}.`);
|
|
3833
3833
|
let g = M([]), _ = M(""), v = M(!1), y = M(void 0), x = M(0), { t: S } = me(), C = n(() => c.fields[i.name]), w = () => {
|
|
3834
3834
|
v.value = !1;
|
|
3835
|
-
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } =
|
|
3835
|
+
}, T = n(() => C.value.titleT ? S(C.value.titleT) : void 0), { pagination: E } = Os(W(i.filterSortBy) ? null : i.filterSortBy.key, i.filterSortBy?.order), D = M([]), O = M([]), A = n(() => {
|
|
3836
3836
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
3837
3837
|
return O.value.forEach((n) => {
|
|
3838
3838
|
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)));
|
|
@@ -3892,7 +3892,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
3892
3892
|
ee(e);
|
|
3893
3893
|
}
|
|
3894
3894
|
fe();
|
|
3895
|
-
}, 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 } =
|
|
3895
|
+
}, 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 } = _s(), fe = () => {
|
|
3896
3896
|
de(i.name, u, c), s.value.delete(i.name);
|
|
3897
3897
|
}, z = (e) => {
|
|
3898
3898
|
if (s.value.delete(i.name), G(e) && e.length === 0 || W(e)) {
|
|
@@ -3914,7 +3914,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
3914
3914
|
return L(() => u[i.name], async (e, t) => {
|
|
3915
3915
|
if (!(e === t || Rt(e))) {
|
|
3916
3916
|
if (W(e) || H(e) || G(e) && e.length === 0) {
|
|
3917
|
-
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, z(g.value), re.value === !0 ||
|
|
3917
|
+
if (O.value = [], C.value.multiple ? g.value = [] : g.value = null, z(g.value), re.value === !0 || Is(i.prefetch, [
|
|
3918
3918
|
"hover",
|
|
3919
3919
|
"focus",
|
|
3920
3920
|
!1
|
|
@@ -4002,7 +4002,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4002
4002
|
"loading"
|
|
4003
4003
|
]));
|
|
4004
4004
|
}
|
|
4005
|
-
}),
|
|
4005
|
+
}), Rs = /* @__PURE__ */ u({
|
|
4006
4006
|
__name: "AFilterValueObjectOptionsSelect",
|
|
4007
4007
|
props: {
|
|
4008
4008
|
name: {},
|
|
@@ -4011,7 +4011,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4011
4011
|
},
|
|
4012
4012
|
emits: ["change"],
|
|
4013
4013
|
setup(e, { emit: t }) {
|
|
4014
|
-
let i = e, a = t, o = h(
|
|
4014
|
+
let i = e, a = t, o = h(es), s = h(ts), c = h(Zo), l = h(Xo), u = f()?.type.__name;
|
|
4015
4015
|
if (H(o) || H(s) || H(l) || H(c)) throw Error(`[${u}] Incorrect provide/inject config.`);
|
|
4016
4016
|
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(", ")}.`);
|
|
4017
4017
|
let d = n({
|
|
@@ -4021,7 +4021,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4021
4021
|
set(e) {
|
|
4022
4022
|
l[i.name] = e, y(e), c.touched = !0, a("change");
|
|
4023
4023
|
}
|
|
4024
|
-
}), p = n(() => c.fields[i.name]), { t: m } = me(), g = n(() => p.value.titleT ? m(p.value.titleT) : void 0), { clearOne: _ } =
|
|
4024
|
+
}), p = n(() => c.fields[i.name]), { t: m } = me(), g = n(() => p.value.titleT ? m(p.value.titleT) : void 0), { clearOne: _ } = _s(), v = () => {
|
|
4025
4025
|
_(i.name, l, c), s.value.delete(i.name);
|
|
4026
4026
|
}, y = (e) => {
|
|
4027
4027
|
if (W(e) || H(e) || G(e) && e.length === 0) {
|
|
@@ -4071,7 +4071,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4071
4071
|
"data-cy"
|
|
4072
4072
|
]));
|
|
4073
4073
|
}
|
|
4074
|
-
}),
|
|
4074
|
+
}), zs = /*#__PURE__*/ jt(/* @__PURE__ */ u({
|
|
4075
4075
|
__name: "AFilterTimeInterval",
|
|
4076
4076
|
props: {
|
|
4077
4077
|
nameFrom: {},
|
|
@@ -4082,7 +4082,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4082
4082
|
},
|
|
4083
4083
|
emits: ["change"],
|
|
4084
4084
|
setup(t, { expose: o, emit: s }) {
|
|
4085
|
-
let u = t, d = s, f = h(
|
|
4085
|
+
let u = t, d = s, f = h(es), p = h(ts), m = h(Zo), g = h(Xo);
|
|
4086
4086
|
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.");
|
|
4087
4087
|
let _ = n({
|
|
4088
4088
|
get() {
|
|
@@ -4093,10 +4093,10 @@ var Is = /* @__PURE__ */ u({
|
|
|
4093
4093
|
d("change");
|
|
4094
4094
|
});
|
|
4095
4095
|
}
|
|
4096
|
-
}), { timeIntervalOptions: v, getTimeIntervalOption: y } =
|
|
4096
|
+
}), { timeIntervalOptions: v, getTimeIntervalOption: y } = xs(u.allowed), S = M(null), C = M(!1), w = M({
|
|
4097
4097
|
from: null,
|
|
4098
4098
|
until: Xi()
|
|
4099
|
-
}), T = M(!1), { v$: E } =
|
|
4099
|
+
}), T = M(!1), { v$: E } = Ss(w), D = n(() => m.fields[u.nameFrom]), { t: O } = me(), A = n(() => D.value.titleT ? O(D.value.titleT) : void 0), { clearOne: j } = _s(), { showValidationError: ee } = Li(), P = () => {
|
|
4100
4100
|
ie(), se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
4101
4101
|
}, ne = () => {
|
|
4102
4102
|
if (E.value.$touch(), E.value.$invalid) {
|
|
@@ -4118,7 +4118,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4118
4118
|
}
|
|
4119
4119
|
let t = y(e);
|
|
4120
4120
|
if (!t && la(e)) {
|
|
4121
|
-
let t = y(
|
|
4121
|
+
let t = y(bs.Custom);
|
|
4122
4122
|
p.value.set(u.nameFrom, [{
|
|
4123
4123
|
title: t.title + ": " + ra(w.value.from) + " - " + ra(w.value.until),
|
|
4124
4124
|
value: e
|
|
@@ -4138,7 +4138,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4138
4138
|
return;
|
|
4139
4139
|
}
|
|
4140
4140
|
let t = y(e), n = g[u.nameUntil];
|
|
4141
|
-
!t && la(e) && la(n) && (S.value =
|
|
4141
|
+
!t && la(e) && la(n) && (S.value = bs.Custom, w.value.from = e, w.value.until = n, T.value = !0), t && (S.value = t.value);
|
|
4142
4142
|
};
|
|
4143
4143
|
L(_, se, { immediate: !0 }), L(f, () => {
|
|
4144
4144
|
se(g[u.nameFrom]), ae(g[u.nameFrom]);
|
|
@@ -4146,7 +4146,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4146
4146
|
(e !== n || t !== r) && ae(e);
|
|
4147
4147
|
}, { immediate: !0 });
|
|
4148
4148
|
let ce = (e) => {
|
|
4149
|
-
if (e.value ===
|
|
4149
|
+
if (e.value === bs.Custom) {
|
|
4150
4150
|
oe(!0);
|
|
4151
4151
|
return;
|
|
4152
4152
|
}
|
|
@@ -4204,7 +4204,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4204
4204
|
}),
|
|
4205
4205
|
l(Ce, null, {
|
|
4206
4206
|
default: R(() => [l(At, null, {
|
|
4207
|
-
default: R(() => [l(
|
|
4207
|
+
default: R(() => [l(Fo, {
|
|
4208
4208
|
modelValue: w.value.from,
|
|
4209
4209
|
"onUpdate:modelValue": o[2] ||= (e) => w.value.from = e,
|
|
4210
4210
|
v: I(E).dialogData.from,
|
|
@@ -4217,7 +4217,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4217
4217
|
])]),
|
|
4218
4218
|
_: 1
|
|
4219
4219
|
}), l(At, null, {
|
|
4220
|
-
default: R(() => [l(
|
|
4220
|
+
default: R(() => [l(Fo, {
|
|
4221
4221
|
modelValue: w.value.until,
|
|
4222
4222
|
"onUpdate:modelValue": o[3] ||= (e) => w.value.until = e,
|
|
4223
4223
|
v: I(E).dialogData.until,
|
|
@@ -4259,14 +4259,14 @@ var Is = /* @__PURE__ */ u({
|
|
|
4259
4259
|
})) : i("", !0)], 64);
|
|
4260
4260
|
};
|
|
4261
4261
|
}
|
|
4262
|
-
}), [["__scopeId", "data-v-f6847895"]]),
|
|
4262
|
+
}), [["__scopeId", "data-v-f6847895"]]), Bs = (e, t = "item") => t + "." + e, Vs = /* @__PURE__ */ u({
|
|
4263
4263
|
__name: "AFilterEmpty",
|
|
4264
4264
|
props: { name: {} },
|
|
4265
4265
|
setup(e) {
|
|
4266
4266
|
let t = e;
|
|
4267
4267
|
return (e, n) => (k(), a("div", null, F(t.name), 1));
|
|
4268
4268
|
}
|
|
4269
|
-
}),
|
|
4269
|
+
}), Hs = /* @__PURE__ */ u({
|
|
4270
4270
|
__name: "AFilterDatetimePicker",
|
|
4271
4271
|
props: {
|
|
4272
4272
|
name: {},
|
|
@@ -4274,7 +4274,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4274
4274
|
},
|
|
4275
4275
|
emits: ["change"],
|
|
4276
4276
|
setup(e, { emit: t }) {
|
|
4277
|
-
let i = e, a = t, o = h(
|
|
4277
|
+
let i = e, a = t, o = h(es), s = h(ts), c = h(Zo), l = h(Xo);
|
|
4278
4278
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
4279
4279
|
let u = n({
|
|
4280
4280
|
get() {
|
|
@@ -4283,7 +4283,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4283
4283
|
set(e) {
|
|
4284
4284
|
l[i.name] = e, _(), c.touched = !0, a("change");
|
|
4285
4285
|
}
|
|
4286
|
-
}), { t: d } = me(), f = n(() => c.fields[i.name]), p = n(() => f.value.titleT ? d(f.value.titleT) : void 0), { clearOne: m } =
|
|
4286
|
+
}), { t: d } = me(), f = n(() => c.fields[i.name]), p = n(() => f.value.titleT ? d(f.value.titleT) : void 0), { clearOne: m } = _s(), g = () => {
|
|
4287
4287
|
m(i.name, l, c), s.value.delete(i.name), c.touched = !0, a("change");
|
|
4288
4288
|
}, _ = () => {
|
|
4289
4289
|
It(u.value) && u.value.length !== 0 && s.value.set(i.name, [{
|
|
@@ -4291,7 +4291,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4291
4291
|
value: u.value
|
|
4292
4292
|
}]);
|
|
4293
4293
|
};
|
|
4294
|
-
return (t, n) => (k(), r(
|
|
4294
|
+
return (t, n) => (k(), r(Po, b({
|
|
4295
4295
|
modelValue: u.value,
|
|
4296
4296
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
4297
4297
|
"data-cy": e.dataCy,
|
|
@@ -4306,7 +4306,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4306
4306
|
"label"
|
|
4307
4307
|
]));
|
|
4308
4308
|
}
|
|
4309
|
-
}),
|
|
4309
|
+
}), Us = /* @__PURE__ */ u({
|
|
4310
4310
|
__name: "AFilterInteger",
|
|
4311
4311
|
props: {
|
|
4312
4312
|
name: {},
|
|
@@ -4315,7 +4315,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4315
4315
|
},
|
|
4316
4316
|
emits: ["change"],
|
|
4317
4317
|
setup(e, { emit: t }) {
|
|
4318
|
-
let i = e, a = t, o = h(
|
|
4318
|
+
let i = e, a = t, o = h(es), s = h(ts), c = h(Zo), l = h(Xo);
|
|
4319
4319
|
if (H(o) || H(s) || H(c) || H(c.fields[i.name]) || H(l) || H(l[i.name])) throw Error("Incorrect provide/inject config.");
|
|
4320
4320
|
let u = n({
|
|
4321
4321
|
get() {
|
|
@@ -4324,7 +4324,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4324
4324
|
set(e) {
|
|
4325
4325
|
l[i.name] = e, c.touched = !0, a("change");
|
|
4326
4326
|
}
|
|
4327
|
-
}), d = n(() => c.fields[i.name]), { t: f } = me(), 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 } =
|
|
4327
|
+
}), d = n(() => c.fields[i.name]), { t: f } = me(), 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 } = _s(), _ = () => {
|
|
4328
4328
|
g(i.name, l, c), s.value.delete(i.name);
|
|
4329
4329
|
}, v = () => {
|
|
4330
4330
|
if (Ft(u.value)) {
|
|
@@ -4364,20 +4364,20 @@ var Is = /* @__PURE__ */ u({
|
|
|
4364
4364
|
"data-cy"
|
|
4365
4365
|
]));
|
|
4366
4366
|
}
|
|
4367
|
-
}),
|
|
4367
|
+
}), Ws = /* @__PURE__ */ u({
|
|
4368
4368
|
__name: "FilterDetailItem",
|
|
4369
4369
|
props: { name: {} },
|
|
4370
4370
|
setup(e) {
|
|
4371
|
-
let t = e, i = h(
|
|
4371
|
+
let t = e, i = h(Zo);
|
|
4372
4372
|
if (H(i) || H(i.fields[t.name])) throw Error("Incorrect provide/inject config.");
|
|
4373
4373
|
let a = n(() => i.fields[t.name]), o = n(() => {
|
|
4374
|
-
if (a.value.render.skip) return
|
|
4374
|
+
if (a.value.render.skip) return Vs;
|
|
4375
4375
|
switch (a.value.type) {
|
|
4376
|
-
case "string": return
|
|
4377
|
-
case "datetime": return
|
|
4378
|
-
case "boolean": return
|
|
4379
|
-
case "integer": return
|
|
4380
|
-
default: return
|
|
4376
|
+
case "string": return Ms;
|
|
4377
|
+
case "datetime": return Hs;
|
|
4378
|
+
case "boolean": return js;
|
|
4379
|
+
case "integer": return Us;
|
|
4380
|
+
default: return Vs;
|
|
4381
4381
|
}
|
|
4382
4382
|
});
|
|
4383
4383
|
return (t, n) => (k(), r(P(o.value), { name: e.name }, null, 8, ["name"]));
|
|
@@ -4385,7 +4385,7 @@ var Is = /* @__PURE__ */ u({
|
|
|
4385
4385
|
});
|
|
4386
4386
|
//#endregion
|
|
4387
4387
|
//#region src/labs/filters/UserAdminConfigFilter.ts
|
|
4388
|
-
function
|
|
4388
|
+
function Gs(e, t = "userAdminConfig") {
|
|
4389
4389
|
let n = [
|
|
4390
4390
|
{
|
|
4391
4391
|
name: "user",
|
|
@@ -4411,7 +4411,7 @@ function Ws(e, t = "userAdminConfig") {
|
|
|
4411
4411
|
name: "defaultConfig",
|
|
4412
4412
|
default: null
|
|
4413
4413
|
}
|
|
4414
|
-
], { filterConfig: r, filterData: i } =
|
|
4414
|
+
], { filterConfig: r, filterData: i } = hs(n, ms(n), {
|
|
4415
4415
|
system: e,
|
|
4416
4416
|
subject: t
|
|
4417
4417
|
});
|
|
@@ -4422,13 +4422,13 @@ function Ws(e, t = "userAdminConfig") {
|
|
|
4422
4422
|
}
|
|
4423
4423
|
//#endregion
|
|
4424
4424
|
//#region src/types/UserAdminConfig.ts
|
|
4425
|
-
var
|
|
4425
|
+
var Ks = {
|
|
4426
4426
|
PinnedWidgets: "pinnedWidgets",
|
|
4427
4427
|
FilterBookmark: "filterBookmark"
|
|
4428
|
-
},
|
|
4428
|
+
}, qs = Ks.PinnedWidgets, Js = {
|
|
4429
4429
|
Desktop: "desktop",
|
|
4430
4430
|
Mobile: "mobile"
|
|
4431
|
-
},
|
|
4431
|
+
}, Ys = Js.Desktop, Xs = 3, Zs = ht("filterBookmarkStore", () => {
|
|
4432
4432
|
let e = M(/* @__PURE__ */ new Map()), t = M(!1), n = /* @__PURE__ */ new Map();
|
|
4433
4433
|
function r(e, t) {
|
|
4434
4434
|
return `userAdminConfig/${t}/${e}/`;
|
|
@@ -4446,8 +4446,8 @@ var Gs = {
|
|
|
4446
4446
|
let t = e.value.get(c);
|
|
4447
4447
|
if (t && !t.stale) return t.lastUsed = l, [...t.items];
|
|
4448
4448
|
}
|
|
4449
|
-
let { pagination: d } =
|
|
4450
|
-
h.configType =
|
|
4449
|
+
let { pagination: d } = Os("position", Cr.Asc, { rowsPerPage: 8 }), { start: f, end: p } = Yt(a.systemResource, "_"), { filterConfig: m, filterData: h } = Gs(f, p);
|
|
4450
|
+
h.configType = Ks.FilterBookmark, h.layoutType = a.layoutType, h.systemResource = a.systemResource, h.user = a.user;
|
|
4451
4451
|
let g = (n.get(c) ?? 0) + 1;
|
|
4452
4452
|
n.set(c, g);
|
|
4453
4453
|
let _;
|
|
@@ -4460,12 +4460,12 @@ var Gs = {
|
|
|
4460
4460
|
} catch {
|
|
4461
4461
|
return n.get(c) === g && (t.value = !0, u(c)), null;
|
|
4462
4462
|
}
|
|
4463
|
-
return e.value.size >
|
|
4463
|
+
return e.value.size > Xs && i(), [..._];
|
|
4464
4464
|
}
|
|
4465
4465
|
async function o(e, n) {
|
|
4466
4466
|
t.value = !1;
|
|
4467
|
-
let { pagination: r } =
|
|
4468
|
-
s.configType =
|
|
4467
|
+
let { pagination: r } = Os("position", Cr.Asc, { rowsPerPage: 9 }), { start: i, end: a } = Yt(e.systemResource, "_"), { filterConfig: o, filterData: s } = Gs(i, a);
|
|
4468
|
+
s.configType = Ks.FilterBookmark, s.layoutType = e.layoutType, s.systemResource = e.systemResource, s.user = e.user;
|
|
4469
4469
|
try {
|
|
4470
4470
|
let { execute: e } = n(), t = await e(r, s, o);
|
|
4471
4471
|
return {
|
|
@@ -4504,17 +4504,17 @@ var Gs = {
|
|
|
4504
4504
|
markStale: u,
|
|
4505
4505
|
fetchBookmarkStats: o
|
|
4506
4506
|
};
|
|
4507
|
-
}),
|
|
4508
|
-
function
|
|
4507
|
+
}), Qs = "/adm/v1/user-admin-config", $s = "userAdminConfig";
|
|
4508
|
+
function ec(e, t, n = $s, r = Qs) {
|
|
4509
4509
|
return {
|
|
4510
|
-
useFetchUserAdminConfigList: () =>
|
|
4510
|
+
useFetchUserAdminConfigList: () => Es({
|
|
4511
4511
|
client: e,
|
|
4512
4512
|
system: t,
|
|
4513
4513
|
entity: n,
|
|
4514
|
-
urlTemplate:
|
|
4514
|
+
urlTemplate: Qs
|
|
4515
4515
|
}),
|
|
4516
4516
|
fetchUserAdminConfig: (i) => {
|
|
4517
|
-
let { execute: a } =
|
|
4517
|
+
let { execute: a } = ja({
|
|
4518
4518
|
client: e,
|
|
4519
4519
|
method: "GET",
|
|
4520
4520
|
system: t,
|
|
@@ -4526,7 +4526,7 @@ function $s(e, t, n = Qs, r = Zs) {
|
|
|
4526
4526
|
});
|
|
4527
4527
|
},
|
|
4528
4528
|
createUserAdminConfig: (i) => {
|
|
4529
|
-
let { execute: a } =
|
|
4529
|
+
let { execute: a } = ja({
|
|
4530
4530
|
client: e,
|
|
4531
4531
|
method: "POST",
|
|
4532
4532
|
system: t,
|
|
@@ -4538,7 +4538,7 @@ function $s(e, t, n = Qs, r = Zs) {
|
|
|
4538
4538
|
});
|
|
4539
4539
|
},
|
|
4540
4540
|
updateUserAdminConfig: (i, a) => {
|
|
4541
|
-
let { execute: o } =
|
|
4541
|
+
let { execute: o } = ja({
|
|
4542
4542
|
client: e,
|
|
4543
4543
|
method: "PUT",
|
|
4544
4544
|
system: t,
|
|
@@ -4551,7 +4551,7 @@ function $s(e, t, n = Qs, r = Zs) {
|
|
|
4551
4551
|
});
|
|
4552
4552
|
},
|
|
4553
4553
|
deleteUserAdminConfig: (i) => {
|
|
4554
|
-
let { execute: a } =
|
|
4554
|
+
let { execute: a } = Ma({
|
|
4555
4555
|
client: e,
|
|
4556
4556
|
method: "DELETE",
|
|
4557
4557
|
system: t,
|
|
@@ -4563,7 +4563,7 @@ function $s(e, t, n = Qs, r = Zs) {
|
|
|
4563
4563
|
});
|
|
4564
4564
|
},
|
|
4565
4565
|
updateUserAdminConfigPositions: (i) => {
|
|
4566
|
-
let { execute: a } =
|
|
4566
|
+
let { execute: a } = ja({
|
|
4567
4567
|
client: e,
|
|
4568
4568
|
method: "PATCH",
|
|
4569
4569
|
system: t,
|
|
@@ -4578,7 +4578,7 @@ function $s(e, t, n = Qs, r = Zs) {
|
|
|
4578
4578
|
}
|
|
4579
4579
|
//#endregion
|
|
4580
4580
|
//#region src/labs/filters/FilterBookmarks.vue?vue&type=script&setup=true&lang.ts
|
|
4581
|
-
var
|
|
4581
|
+
var tc = { key: 0 }, nc = 32, rc = /* @__PURE__ */ u({
|
|
4582
4582
|
__name: "FilterBookmarks",
|
|
4583
4583
|
props: /*@__PURE__*/ y({
|
|
4584
4584
|
client: {},
|
|
@@ -4594,15 +4594,15 @@ var ec = { key: 0 }, tc = 32, nc = /* @__PURE__ */ u({
|
|
|
4594
4594
|
}),
|
|
4595
4595
|
emits: /*@__PURE__*/ y(["submit"], ["update:datatableHiddenColumns"]),
|
|
4596
4596
|
setup(t, { emit: o }) {
|
|
4597
|
-
let s = t, u = o, d = oe(t, "datatableHiddenColumns"), f = h(
|
|
4597
|
+
let s = t, u = o, d = oe(t, "datatableHiddenColumns"), f = h(Zo), p = h(Xo), m = h(ns), g = h(ts);
|
|
4598
4598
|
if (H(m) || H(f) || H(p) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
4599
|
-
let _ = M(!1), v = ce("toolbar"), y = M(300), S = M(1e3), C =
|
|
4599
|
+
let _ = M(!1), v = ce("toolbar"), y = M(300), S = M(1e3), C = Zs(), { useFetchUserAdminConfigList: w } = ec(s.client, s.system), T = s.system + "_" + s.subject, D = async (e = !1) => {
|
|
4600
4600
|
_.value = !0, await C.getBookmarks({
|
|
4601
4601
|
user: s.userId,
|
|
4602
|
-
layoutType:
|
|
4602
|
+
layoutType: Js.Desktop,
|
|
4603
4603
|
systemResource: T
|
|
4604
4604
|
}, w, e), _.value = !1;
|
|
4605
|
-
}, { deserializeFilters: O } =
|
|
4605
|
+
}, { deserializeFilters: O } = ys(p, f), A = (e) => {
|
|
4606
4606
|
let t = e.data;
|
|
4607
4607
|
U(t.datatableHiddenColumns) && U(d.value) && (d.value = t.datatableHiddenColumns), U(t.sortBy) && (m.value = {
|
|
4608
4608
|
...m.value,
|
|
@@ -4638,7 +4638,7 @@ var ec = { key: 0 }, tc = 32, nc = /* @__PURE__ */ u({
|
|
|
4638
4638
|
let n = 0, r = 0;
|
|
4639
4639
|
for (let i = 0; i < t.children.length; i++) {
|
|
4640
4640
|
let a = t.children[i].offsetWidth;
|
|
4641
|
-
if (n += a, n >= e -
|
|
4641
|
+
if (n += a, n >= e - nc) break;
|
|
4642
4642
|
r++;
|
|
4643
4643
|
}
|
|
4644
4644
|
S.value = r;
|
|
@@ -4649,7 +4649,7 @@ var ec = { key: 0 }, tc = 32, nc = /* @__PURE__ */ u({
|
|
|
4649
4649
|
e !== t && j(e);
|
|
4650
4650
|
}, { throttle: 1e3 });
|
|
4651
4651
|
let N = n(() => {
|
|
4652
|
-
let e = C.generateKey(
|
|
4652
|
+
let e = C.generateKey(Js.Desktop, T);
|
|
4653
4653
|
return C.bookmarks.get(e)?.items ?? [];
|
|
4654
4654
|
}), te = n(() => {
|
|
4655
4655
|
let e = S.value;
|
|
@@ -4668,7 +4668,7 @@ var ec = { key: 0 }, tc = 32, nc = /* @__PURE__ */ u({
|
|
|
4668
4668
|
ref: "toolbar",
|
|
4669
4669
|
key: N.value.length,
|
|
4670
4670
|
class: "w-100 d-flex overflow-hidden align-center mb-1"
|
|
4671
|
-
}, [_.value ? (k(), a("div",
|
|
4671
|
+
}, [_.value ? (k(), a("div", tc)) : (k(), a(e, { key: 1 }, [(k(!0), a(e, null, ee(te.value.visible, (e) => (k(), a("div", {
|
|
4672
4672
|
key: e.id,
|
|
4673
4673
|
class: "white-space-nowrap"
|
|
4674
4674
|
}, [l(V, {
|
|
@@ -4709,7 +4709,7 @@ var ec = { key: 0 }, tc = 32, nc = /* @__PURE__ */ u({
|
|
|
4709
4709
|
});
|
|
4710
4710
|
//#endregion
|
|
4711
4711
|
//#region src/labs/listEditor/composables/useContainerWidth.ts
|
|
4712
|
-
function
|
|
4712
|
+
function ic(e, t = 769) {
|
|
4713
4713
|
let { width: r } = Pe(e);
|
|
4714
4714
|
return {
|
|
4715
4715
|
width: r,
|
|
@@ -4718,17 +4718,17 @@ function rc(e, t = 769) {
|
|
|
4718
4718
|
}
|
|
4719
4719
|
//#endregion
|
|
4720
4720
|
//#region src/labs/listEditor/composables/useIsTouchDevice.ts
|
|
4721
|
-
function
|
|
4721
|
+
function ac() {
|
|
4722
4722
|
let e = Ie("(any-pointer: fine)");
|
|
4723
4723
|
return n(() => !e.value);
|
|
4724
4724
|
}
|
|
4725
|
-
function
|
|
4725
|
+
function oc() {
|
|
4726
4726
|
let e = Ie("(any-pointer: coarse)");
|
|
4727
4727
|
return n(() => e.value);
|
|
4728
4728
|
}
|
|
4729
4729
|
//#endregion
|
|
4730
4730
|
//#region src/labs/listEditor/composables/useKeyboardNav.ts
|
|
4731
|
-
function
|
|
4731
|
+
function sc(e) {
|
|
4732
4732
|
let t = M(null), r = M(null), i = n(() => e.viewItems.value.map((e) => e.key)), a = (e) => t.value === e, o = (e) => r.value === e, s = n(() => r.value === null ? -1 : i.value.indexOf(r.value)), c = n(() => i.value.length);
|
|
4733
4733
|
function l(e) {
|
|
4734
4734
|
let n = i.value;
|
|
@@ -4834,24 +4834,24 @@ function oc(e) {
|
|
|
4834
4834
|
}
|
|
4835
4835
|
//#endregion
|
|
4836
4836
|
//#region node_modules/sortablejs/modular/sortable.esm.js
|
|
4837
|
-
function
|
|
4838
|
-
return (t =
|
|
4837
|
+
function cc(e, t, n) {
|
|
4838
|
+
return (t = hc(t)) in e ? Object.defineProperty(e, t, {
|
|
4839
4839
|
value: n,
|
|
4840
4840
|
enumerable: !0,
|
|
4841
4841
|
configurable: !0,
|
|
4842
4842
|
writable: !0
|
|
4843
4843
|
}) : e[t] = n, e;
|
|
4844
4844
|
}
|
|
4845
|
-
function
|
|
4846
|
-
return
|
|
4845
|
+
function lc() {
|
|
4846
|
+
return lc = Object.assign ? Object.assign.bind() : function(e) {
|
|
4847
4847
|
for (var t = 1; t < arguments.length; t++) {
|
|
4848
4848
|
var n = arguments[t];
|
|
4849
4849
|
for (var r in n) ({}).hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
4850
4850
|
}
|
|
4851
4851
|
return e;
|
|
4852
|
-
},
|
|
4852
|
+
}, lc.apply(null, arguments);
|
|
4853
4853
|
}
|
|
4854
|
-
function
|
|
4854
|
+
function uc(e, t) {
|
|
4855
4855
|
var n = Object.keys(e);
|
|
4856
4856
|
if (Object.getOwnPropertySymbols) {
|
|
4857
4857
|
var r = Object.getOwnPropertySymbols(e);
|
|
@@ -4861,27 +4861,27 @@ function lc(e, t) {
|
|
|
4861
4861
|
}
|
|
4862
4862
|
return n;
|
|
4863
4863
|
}
|
|
4864
|
-
function
|
|
4864
|
+
function dc(e) {
|
|
4865
4865
|
for (var t = 1; t < arguments.length; t++) {
|
|
4866
4866
|
var n = arguments[t] == null ? {} : arguments[t];
|
|
4867
|
-
t % 2 ?
|
|
4868
|
-
|
|
4869
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) :
|
|
4867
|
+
t % 2 ? uc(Object(n), !0).forEach(function(t) {
|
|
4868
|
+
cc(e, t, n[t]);
|
|
4869
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : uc(Object(n)).forEach(function(t) {
|
|
4870
4870
|
Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
|
|
4871
4871
|
});
|
|
4872
4872
|
}
|
|
4873
4873
|
return e;
|
|
4874
4874
|
}
|
|
4875
|
-
function
|
|
4875
|
+
function fc(e, t) {
|
|
4876
4876
|
if (e == null) return {};
|
|
4877
|
-
var n, r, i =
|
|
4877
|
+
var n, r, i = pc(e, t);
|
|
4878
4878
|
if (Object.getOwnPropertySymbols) {
|
|
4879
4879
|
var a = Object.getOwnPropertySymbols(e);
|
|
4880
4880
|
for (r = 0; r < a.length; r++) n = a[r], t.indexOf(n) === -1 && {}.propertyIsEnumerable.call(e, n) && (i[n] = e[n]);
|
|
4881
4881
|
}
|
|
4882
4882
|
return i;
|
|
4883
4883
|
}
|
|
4884
|
-
function
|
|
4884
|
+
function pc(e, t) {
|
|
4885
4885
|
if (e == null) return {};
|
|
4886
4886
|
var n = {};
|
|
4887
4887
|
for (var r in e) if ({}.hasOwnProperty.call(e, r)) {
|
|
@@ -4890,7 +4890,7 @@ function fc(e, t) {
|
|
|
4890
4890
|
}
|
|
4891
4891
|
return n;
|
|
4892
4892
|
}
|
|
4893
|
-
function
|
|
4893
|
+
function mc(e, t) {
|
|
4894
4894
|
if (typeof e != "object" || !e) return e;
|
|
4895
4895
|
var n = e[Symbol.toPrimitive];
|
|
4896
4896
|
if (n !== void 0) {
|
|
@@ -4900,33 +4900,33 @@ function pc(e, t) {
|
|
|
4900
4900
|
}
|
|
4901
4901
|
return (t === "string" ? String : Number)(e);
|
|
4902
4902
|
}
|
|
4903
|
-
function
|
|
4904
|
-
var t =
|
|
4903
|
+
function hc(e) {
|
|
4904
|
+
var t = mc(e, "string");
|
|
4905
4905
|
return typeof t == "symbol" ? t : t + "";
|
|
4906
4906
|
}
|
|
4907
|
-
function
|
|
4907
|
+
function gc(e) {
|
|
4908
4908
|
"@babel/helpers - typeof";
|
|
4909
|
-
return
|
|
4909
|
+
return gc = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
|
|
4910
4910
|
return typeof e;
|
|
4911
4911
|
} : function(e) {
|
|
4912
4912
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
4913
|
-
},
|
|
4913
|
+
}, gc(e);
|
|
4914
4914
|
}
|
|
4915
|
-
var
|
|
4916
|
-
function
|
|
4915
|
+
var _c = "1.15.7";
|
|
4916
|
+
function vc(e) {
|
|
4917
4917
|
if (typeof window < "u" && window.navigator) return !!/*@__PURE__*/ navigator.userAgent.match(e);
|
|
4918
4918
|
}
|
|
4919
|
-
var
|
|
4919
|
+
var yc = vc(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), bc = vc(/Edge/i), xc = vc(/firefox/i), Sc = vc(/safari/i) && !vc(/chrome/i) && !vc(/android/i), Cc = vc(/iP(ad|od|hone)/i), wc = vc(/chrome/i) && vc(/android/i), Tc = {
|
|
4920
4920
|
capture: !1,
|
|
4921
4921
|
passive: !1
|
|
4922
4922
|
};
|
|
4923
4923
|
function J(e, t, n) {
|
|
4924
|
-
e.addEventListener(t, n, !
|
|
4924
|
+
e.addEventListener(t, n, !yc && Tc);
|
|
4925
4925
|
}
|
|
4926
4926
|
function Y(e, t, n) {
|
|
4927
|
-
e.removeEventListener(t, n, !
|
|
4927
|
+
e.removeEventListener(t, n, !yc && Tc);
|
|
4928
4928
|
}
|
|
4929
|
-
function
|
|
4929
|
+
function Ec(e, t) {
|
|
4930
4930
|
if (t) {
|
|
4931
4931
|
if (t[0] === ">" && (t = t.substring(1)), e) try {
|
|
4932
4932
|
if (e.matches) return e.matches(t);
|
|
@@ -4938,22 +4938,22 @@ function Tc(e, t) {
|
|
|
4938
4938
|
return !1;
|
|
4939
4939
|
}
|
|
4940
4940
|
}
|
|
4941
|
-
function
|
|
4941
|
+
function Dc(e) {
|
|
4942
4942
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
4943
4943
|
}
|
|
4944
|
-
function
|
|
4944
|
+
function Oc(e, t, n, r) {
|
|
4945
4945
|
if (e) {
|
|
4946
4946
|
n ||= document;
|
|
4947
4947
|
do {
|
|
4948
|
-
if (t != null && (t[0] === ">" ? e.parentNode === n &&
|
|
4948
|
+
if (t != null && (t[0] === ">" ? e.parentNode === n && Ec(e, t) : Ec(e, t)) || r && e === n) return e;
|
|
4949
4949
|
if (e === n) break;
|
|
4950
|
-
} while (e =
|
|
4950
|
+
} while (e = Dc(e));
|
|
4951
4951
|
}
|
|
4952
4952
|
return null;
|
|
4953
4953
|
}
|
|
4954
|
-
var
|
|
4955
|
-
function
|
|
4956
|
-
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(
|
|
4954
|
+
var kc = /\s+/g;
|
|
4955
|
+
function Ac(e, t, n) {
|
|
4956
|
+
e && t && (e.classList ? e.classList[n ? "add" : "remove"](t) : e.className = ((" " + e.className + " ").replace(kc, " ").replace(" " + t + " ", " ") + (n ? " " + t : "")).replace(kc, " "));
|
|
4957
4957
|
}
|
|
4958
4958
|
function X(e, t, n) {
|
|
4959
4959
|
var r = e && e.style;
|
|
@@ -4962,7 +4962,7 @@ function X(e, t, n) {
|
|
|
4962
4962
|
!(t in r) && t.indexOf("webkit") === -1 && (t = "-webkit-" + t), r[t] = n + (typeof n == "string" ? "" : "px");
|
|
4963
4963
|
}
|
|
4964
4964
|
}
|
|
4965
|
-
function
|
|
4965
|
+
function jc(e, t) {
|
|
4966
4966
|
var n = "";
|
|
4967
4967
|
if (typeof e == "string") n = e;
|
|
4968
4968
|
else do {
|
|
@@ -4972,7 +4972,7 @@ function Ac(e, t) {
|
|
|
4972
4972
|
var i = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
4973
4973
|
return i && new i(n);
|
|
4974
4974
|
}
|
|
4975
|
-
function
|
|
4975
|
+
function Mc(e, t, n) {
|
|
4976
4976
|
if (e) {
|
|
4977
4977
|
var r = e.getElementsByTagName(t), i = 0, a = r.length;
|
|
4978
4978
|
if (n) for (; i < a; i++) n(r[i], i);
|
|
@@ -4980,13 +4980,13 @@ function jc(e, t, n) {
|
|
|
4980
4980
|
}
|
|
4981
4981
|
return [];
|
|
4982
4982
|
}
|
|
4983
|
-
function
|
|
4983
|
+
function Nc() {
|
|
4984
4984
|
return document.scrollingElement || document.documentElement;
|
|
4985
4985
|
}
|
|
4986
|
-
function
|
|
4986
|
+
function Pc(e, t, n, r, i) {
|
|
4987
4987
|
if (e.getBoundingClientRect || e === window) {
|
|
4988
4988
|
var a, o, s, c, l, u, d;
|
|
4989
|
-
if (e !== window && e.parentNode && e !==
|
|
4989
|
+
if (e !== window && e.parentNode && e !== Nc() ? (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, !yc)) do
|
|
4990
4990
|
if (i && i.getBoundingClientRect && (X(i, "transform") !== "none" || n && X(i, "position") !== "static")) {
|
|
4991
4991
|
var f = i.getBoundingClientRect();
|
|
4992
4992
|
o -= f.top + parseInt(X(i, "border-top-width")), s -= f.left + parseInt(X(i, "border-left-width")), c = o + a.height, l = s + a.width;
|
|
@@ -4994,7 +4994,7 @@ function Nc(e, t, n, r, i) {
|
|
|
4994
4994
|
}
|
|
4995
4995
|
while (i = i.parentNode);
|
|
4996
4996
|
if (r && e !== window) {
|
|
4997
|
-
var p =
|
|
4997
|
+
var p = jc(i || e), m = p && p.a, h = p && p.d;
|
|
4998
4998
|
p && (o /= h, s /= m, d /= m, u /= h, c = o + u, l = s + d);
|
|
4999
4999
|
}
|
|
5000
5000
|
return {
|
|
@@ -5007,18 +5007,18 @@ function Nc(e, t, n, r, i) {
|
|
|
5007
5007
|
};
|
|
5008
5008
|
}
|
|
5009
5009
|
}
|
|
5010
|
-
function
|
|
5011
|
-
for (var r =
|
|
5012
|
-
var a =
|
|
5010
|
+
function Fc(e, t, n) {
|
|
5011
|
+
for (var r = Vc(e, !0), i = Pc(e)[t]; r;) {
|
|
5012
|
+
var a = Pc(r)[n], o = void 0;
|
|
5013
5013
|
if (o = n === "top" || n === "left" ? i >= a : i <= a, !o) return r;
|
|
5014
|
-
if (r ===
|
|
5015
|
-
r =
|
|
5014
|
+
if (r === Nc()) break;
|
|
5015
|
+
r = Vc(r, !1);
|
|
5016
5016
|
}
|
|
5017
5017
|
return !1;
|
|
5018
5018
|
}
|
|
5019
|
-
function
|
|
5019
|
+
function Ic(e, t, n, r) {
|
|
5020
5020
|
for (var i = 0, a = 0, o = e.children; a < o.length;) {
|
|
5021
|
-
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) &&
|
|
5021
|
+
if (o[a].style.display !== "none" && o[a] !== $.ghost && (r || o[a] !== $.dragged) && Oc(o[a], n.draggable, e, !1)) {
|
|
5022
5022
|
if (i === t) return o[a];
|
|
5023
5023
|
i++;
|
|
5024
5024
|
}
|
|
@@ -5026,84 +5026,84 @@ function Fc(e, t, n, r) {
|
|
|
5026
5026
|
}
|
|
5027
5027
|
return null;
|
|
5028
5028
|
}
|
|
5029
|
-
function
|
|
5030
|
-
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !
|
|
5029
|
+
function Lc(e, t) {
|
|
5030
|
+
for (var n = e.lastElementChild; n && (n === $.ghost || X(n, "display") === "none" || t && !Ec(n, t));) n = n.previousElementSibling;
|
|
5031
5031
|
return n || null;
|
|
5032
5032
|
}
|
|
5033
|
-
function
|
|
5033
|
+
function Rc(e, t) {
|
|
5034
5034
|
var n = 0;
|
|
5035
5035
|
if (!e || !e.parentNode) return -1;
|
|
5036
|
-
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t ||
|
|
5036
|
+
for (; e = e.previousElementSibling;) e.nodeName.toUpperCase() !== "TEMPLATE" && e !== $.clone && (!t || Ec(e, t)) && n++;
|
|
5037
5037
|
return n;
|
|
5038
5038
|
}
|
|
5039
|
-
function
|
|
5040
|
-
var t = 0, n = 0, r =
|
|
5039
|
+
function zc(e) {
|
|
5040
|
+
var t = 0, n = 0, r = Nc();
|
|
5041
5041
|
if (e) do {
|
|
5042
|
-
var i =
|
|
5042
|
+
var i = jc(e), a = i.a, o = i.d;
|
|
5043
5043
|
t += e.scrollLeft * a, n += e.scrollTop * o;
|
|
5044
5044
|
} while (e !== r && (e = e.parentNode));
|
|
5045
5045
|
return [t, n];
|
|
5046
5046
|
}
|
|
5047
|
-
function
|
|
5047
|
+
function Bc(e, t) {
|
|
5048
5048
|
for (var n in e) if (e.hasOwnProperty(n)) {
|
|
5049
5049
|
for (var r in t) if (t.hasOwnProperty(r) && t[r] === e[n][r]) return Number(n);
|
|
5050
5050
|
}
|
|
5051
5051
|
return -1;
|
|
5052
5052
|
}
|
|
5053
|
-
function
|
|
5054
|
-
if (!e || !e.getBoundingClientRect) return
|
|
5053
|
+
function Vc(e, t) {
|
|
5054
|
+
if (!e || !e.getBoundingClientRect) return Nc();
|
|
5055
5055
|
var n = e, r = !1;
|
|
5056
5056
|
do
|
|
5057
5057
|
if (n.clientWidth < n.scrollWidth || n.clientHeight < n.scrollHeight) {
|
|
5058
5058
|
var i = X(n);
|
|
5059
5059
|
if (n.clientWidth < n.scrollWidth && (i.overflowX == "auto" || i.overflowX == "scroll") || n.clientHeight < n.scrollHeight && (i.overflowY == "auto" || i.overflowY == "scroll")) {
|
|
5060
|
-
if (!n.getBoundingClientRect || n === document.body) return
|
|
5060
|
+
if (!n.getBoundingClientRect || n === document.body) return Nc();
|
|
5061
5061
|
if (r || t) return n;
|
|
5062
5062
|
r = !0;
|
|
5063
5063
|
}
|
|
5064
5064
|
}
|
|
5065
5065
|
while (n = n.parentNode);
|
|
5066
|
-
return
|
|
5066
|
+
return Nc();
|
|
5067
5067
|
}
|
|
5068
|
-
function
|
|
5068
|
+
function Hc(e, t) {
|
|
5069
5069
|
if (e && t) for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
|
|
5070
5070
|
return e;
|
|
5071
5071
|
}
|
|
5072
|
-
function
|
|
5072
|
+
function Uc(e, t) {
|
|
5073
5073
|
return Math.round(e.top) === Math.round(t.top) && Math.round(e.left) === Math.round(t.left) && Math.round(e.height) === Math.round(t.height) && Math.round(e.width) === Math.round(t.width);
|
|
5074
5074
|
}
|
|
5075
|
-
var
|
|
5076
|
-
function
|
|
5075
|
+
var Wc;
|
|
5076
|
+
function Gc(e, t) {
|
|
5077
5077
|
return function() {
|
|
5078
|
-
if (!
|
|
5078
|
+
if (!Wc) {
|
|
5079
5079
|
var n = arguments, r = this;
|
|
5080
|
-
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n),
|
|
5081
|
-
|
|
5080
|
+
n.length === 1 ? e.call(r, n[0]) : e.apply(r, n), Wc = setTimeout(function() {
|
|
5081
|
+
Wc = void 0;
|
|
5082
5082
|
}, t);
|
|
5083
5083
|
}
|
|
5084
5084
|
};
|
|
5085
5085
|
}
|
|
5086
|
-
function
|
|
5087
|
-
clearTimeout(
|
|
5086
|
+
function Kc() {
|
|
5087
|
+
clearTimeout(Wc), Wc = void 0;
|
|
5088
5088
|
}
|
|
5089
|
-
function
|
|
5089
|
+
function qc(e, t, n) {
|
|
5090
5090
|
e.scrollLeft += t, e.scrollTop += n;
|
|
5091
5091
|
}
|
|
5092
|
-
function
|
|
5092
|
+
function Jc(e) {
|
|
5093
5093
|
var t = window.Polymer, n = window.jQuery || window.Zepto;
|
|
5094
5094
|
return t && t.dom ? t.dom(e).cloneNode(!0) : n ? n(e).clone(!0)[0] : e.cloneNode(!0);
|
|
5095
5095
|
}
|
|
5096
|
-
function
|
|
5096
|
+
function Yc(e, t, n) {
|
|
5097
5097
|
var r = {};
|
|
5098
5098
|
return Array.from(e.children).forEach(function(i) {
|
|
5099
|
-
if (
|
|
5100
|
-
var a =
|
|
5099
|
+
if (Oc(i, t.draggable, e, !1) && !i.animated && i !== n) {
|
|
5100
|
+
var a = Pc(i);
|
|
5101
5101
|
r.left = Math.min(r.left ?? Infinity, a.left), r.top = Math.min(r.top ?? Infinity, a.top), r.right = Math.max(r.right ?? -Infinity, a.right), r.bottom = Math.max(r.bottom ?? -Infinity, a.bottom);
|
|
5102
5102
|
}
|
|
5103
5103
|
}), r.width = r.right - r.left, r.height = r.bottom - r.top, r.x = r.left, r.y = r.top, r;
|
|
5104
5104
|
}
|
|
5105
|
-
var
|
|
5106
|
-
function
|
|
5105
|
+
var Xc = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
5106
|
+
function Zc() {
|
|
5107
5107
|
var e = [], t;
|
|
5108
5108
|
return {
|
|
5109
5109
|
captureAnimationState: function() {
|
|
@@ -5111,11 +5111,11 @@ function Xc() {
|
|
|
5111
5111
|
if (X(t, "display") !== "none" && t !== $.ghost) {
|
|
5112
5112
|
e.push({
|
|
5113
5113
|
target: t,
|
|
5114
|
-
rect:
|
|
5114
|
+
rect: Pc(t)
|
|
5115
5115
|
});
|
|
5116
|
-
var n =
|
|
5116
|
+
var n = dc({}, e[e.length - 1].rect);
|
|
5117
5117
|
if (t.thisAnimationDuration) {
|
|
5118
|
-
var r =
|
|
5118
|
+
var r = jc(t, !0);
|
|
5119
5119
|
r && (n.top -= r.f, n.left -= r.e);
|
|
5120
5120
|
}
|
|
5121
5121
|
t.fromRect = n;
|
|
@@ -5126,7 +5126,7 @@ function Xc() {
|
|
|
5126
5126
|
e.push(t);
|
|
5127
5127
|
},
|
|
5128
5128
|
removeAnimationState: function(t) {
|
|
5129
|
-
e.splice(
|
|
5129
|
+
e.splice(Bc(e, { target: t }), 1);
|
|
5130
5130
|
},
|
|
5131
5131
|
animateAll: function(n) {
|
|
5132
5132
|
var r = this;
|
|
@@ -5136,8 +5136,8 @@ function Xc() {
|
|
|
5136
5136
|
}
|
|
5137
5137
|
var i = !1, a = 0;
|
|
5138
5138
|
e.forEach(function(e) {
|
|
5139
|
-
var t = 0, n = e.target, o = n.fromRect, s =
|
|
5140
|
-
d && (s.top -= d.f, s.left -= d.e), n.toRect = s, n.thisAnimationDuration &&
|
|
5139
|
+
var t = 0, n = e.target, o = n.fromRect, s = Pc(n), c = n.prevFromRect, l = n.prevToRect, u = e.rect, d = jc(n, !0);
|
|
5140
|
+
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 = $c(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() {
|
|
5141
5141
|
n.animationTime = 0, n.prevFromRect = null, n.fromRect = null, n.prevToRect = null, n.thisAnimationDuration = null;
|
|
5142
5142
|
}, t), n.thisAnimationDuration = t);
|
|
5143
5143
|
}), clearTimeout(t), i ? t = setTimeout(function() {
|
|
@@ -5147,26 +5147,26 @@ function Xc() {
|
|
|
5147
5147
|
animate: function(e, t, n, r) {
|
|
5148
5148
|
if (r) {
|
|
5149
5149
|
X(e, "transition", ""), X(e, "transform", "");
|
|
5150
|
-
var i =
|
|
5151
|
-
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy =
|
|
5150
|
+
var i = jc(this.el), a = i && i.a, o = i && i.d, s = (t.left - n.left) / (a || 1), c = (t.top - n.top) / (o || 1);
|
|
5151
|
+
e.animatingX = !!s, e.animatingY = !!c, X(e, "transform", "translate3d(" + s + "px," + c + "px,0)"), this.forRepaintDummy = Qc(e), X(e, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), X(e, "transform", "translate3d(0,0,0)"), typeof e.animated == "number" && clearTimeout(e.animated), e.animated = setTimeout(function() {
|
|
5152
5152
|
X(e, "transition", ""), X(e, "transform", ""), e.animated = !1, e.animatingX = !1, e.animatingY = !1;
|
|
5153
5153
|
}, r);
|
|
5154
5154
|
}
|
|
5155
5155
|
}
|
|
5156
5156
|
};
|
|
5157
5157
|
}
|
|
5158
|
-
function
|
|
5158
|
+
function Qc(e) {
|
|
5159
5159
|
return e.offsetWidth;
|
|
5160
5160
|
}
|
|
5161
|
-
function
|
|
5161
|
+
function $c(e, t, n, r) {
|
|
5162
5162
|
return Math.sqrt((t.top - e.top) ** 2 + (t.left - e.left) ** 2) / Math.sqrt((t.top - n.top) ** 2 + (t.left - n.left) ** 2) * r.animation;
|
|
5163
5163
|
}
|
|
5164
|
-
var
|
|
5164
|
+
var el = [], tl = { initializeByDefault: !0 }, nl = {
|
|
5165
5165
|
mount: function(e) {
|
|
5166
|
-
for (var t in
|
|
5167
|
-
|
|
5166
|
+
for (var t in tl) tl.hasOwnProperty(t) && !(t in e) && (e[t] = tl[t]);
|
|
5167
|
+
el.forEach(function(t) {
|
|
5168
5168
|
if (t.pluginName === e.pluginName) throw `Sortable: Cannot mount plugin ${e.pluginName} more than once`;
|
|
5169
|
-
}),
|
|
5169
|
+
}), el.push(e);
|
|
5170
5170
|
},
|
|
5171
5171
|
pluginEvent: function(e, t, n) {
|
|
5172
5172
|
var r = this;
|
|
@@ -5174,16 +5174,16 @@ var $c = [], el = { initializeByDefault: !0 }, tl = {
|
|
|
5174
5174
|
r.eventCanceled = !0;
|
|
5175
5175
|
};
|
|
5176
5176
|
var i = e + "Global";
|
|
5177
|
-
|
|
5178
|
-
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](
|
|
5177
|
+
el.forEach(function(r) {
|
|
5178
|
+
t[r.pluginName] && (t[r.pluginName][i] && t[r.pluginName][i](dc({ sortable: t }, n)), t.options[r.pluginName] && t[r.pluginName][e] && t[r.pluginName][e](dc({ sortable: t }, n)));
|
|
5179
5179
|
});
|
|
5180
5180
|
},
|
|
5181
5181
|
initializePlugins: function(e, t, n, r) {
|
|
5182
|
-
for (var i in
|
|
5182
|
+
for (var i in el.forEach(function(r) {
|
|
5183
5183
|
var i = r.pluginName;
|
|
5184
5184
|
if (e.options[i] || r.initializeByDefault) {
|
|
5185
5185
|
var a = new r(e, t, e.options);
|
|
5186
|
-
a.sortable = e, a.options = e.options, e[i] = a,
|
|
5186
|
+
a.sortable = e, a.options = e.options, e[i] = a, lc(n, a.defaults);
|
|
5187
5187
|
}
|
|
5188
5188
|
}), e.options) if (e.options.hasOwnProperty(i)) {
|
|
5189
5189
|
var a = this.modifyOption(e, i, e.options[i]);
|
|
@@ -5192,59 +5192,59 @@ var $c = [], el = { initializeByDefault: !0 }, tl = {
|
|
|
5192
5192
|
},
|
|
5193
5193
|
getEventProperties: function(e, t) {
|
|
5194
5194
|
var n = {};
|
|
5195
|
-
return
|
|
5196
|
-
typeof r.eventProperties == "function" &&
|
|
5195
|
+
return el.forEach(function(r) {
|
|
5196
|
+
typeof r.eventProperties == "function" && lc(n, r.eventProperties.call(t[r.pluginName], e));
|
|
5197
5197
|
}), n;
|
|
5198
5198
|
},
|
|
5199
5199
|
modifyOption: function(e, t, n) {
|
|
5200
5200
|
var r;
|
|
5201
|
-
return
|
|
5201
|
+
return el.forEach(function(i) {
|
|
5202
5202
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[t] == "function" && (r = i.optionListeners[t].call(e[i.pluginName], n));
|
|
5203
5203
|
}), r;
|
|
5204
5204
|
}
|
|
5205
5205
|
};
|
|
5206
|
-
function
|
|
5206
|
+
function rl(e) {
|
|
5207
5207
|
var t = e.sortable, n = e.rootEl, r = e.name, i = e.targetEl, a = e.cloneEl, o = e.toEl, s = e.fromEl, c = e.oldIndex, l = e.newIndex, u = e.oldDraggableIndex, d = e.newDraggableIndex, f = e.originalEvent, p = e.putSortable, m = e.extraEventProperties;
|
|
5208
|
-
if (t ||= n && n[
|
|
5208
|
+
if (t ||= n && n[Xc], t) {
|
|
5209
5209
|
var h, g = t.options, _ = "on" + r.charAt(0).toUpperCase() + r.substr(1);
|
|
5210
|
-
window.CustomEvent && !
|
|
5210
|
+
window.CustomEvent && !yc && !bc ? h = new CustomEvent(r, {
|
|
5211
5211
|
bubbles: !0,
|
|
5212
5212
|
cancelable: !0
|
|
5213
5213
|
}) : (h = document.createEvent("Event"), h.initEvent(r, !0, !0)), h.to = o || n, h.from = s || n, h.item = i || n, h.clone = a, h.oldIndex = c, h.newIndex = l, h.oldDraggableIndex = u, h.newDraggableIndex = d, h.originalEvent = f, h.pullMode = p ? p.lastPutMode : void 0;
|
|
5214
|
-
var v =
|
|
5214
|
+
var v = dc(dc({}, m), nl.getEventProperties(r, t));
|
|
5215
5215
|
for (var y in v) h[y] = v[y];
|
|
5216
5216
|
n && n.dispatchEvent(h), g[_] && g[_].call(t, h);
|
|
5217
5217
|
}
|
|
5218
5218
|
}
|
|
5219
|
-
var
|
|
5220
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i =
|
|
5221
|
-
|
|
5219
|
+
var il = ["evt"], al = function(e, t) {
|
|
5220
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = n.evt, i = fc(n, il);
|
|
5221
|
+
nl.pluginEvent.bind($)(e, t, dc({
|
|
5222
5222
|
dragEl: Z,
|
|
5223
|
-
parentEl:
|
|
5223
|
+
parentEl: sl,
|
|
5224
5224
|
ghostEl: Q,
|
|
5225
|
-
rootEl:
|
|
5226
|
-
nextEl:
|
|
5227
|
-
lastDownEl:
|
|
5228
|
-
cloneEl:
|
|
5229
|
-
cloneHidden:
|
|
5230
|
-
dragStarted:
|
|
5231
|
-
putSortable:
|
|
5225
|
+
rootEl: cl,
|
|
5226
|
+
nextEl: ll,
|
|
5227
|
+
lastDownEl: ul,
|
|
5228
|
+
cloneEl: dl,
|
|
5229
|
+
cloneHidden: fl,
|
|
5230
|
+
dragStarted: Ol,
|
|
5231
|
+
putSortable: vl,
|
|
5232
5232
|
activeSortable: $.active,
|
|
5233
5233
|
originalEvent: r,
|
|
5234
|
-
oldIndex:
|
|
5235
|
-
oldDraggableIndex:
|
|
5236
|
-
newIndex:
|
|
5237
|
-
newDraggableIndex:
|
|
5238
|
-
hideGhostForTarget:
|
|
5239
|
-
unhideGhostForTarget:
|
|
5234
|
+
oldIndex: pl,
|
|
5235
|
+
oldDraggableIndex: hl,
|
|
5236
|
+
newIndex: ml,
|
|
5237
|
+
newDraggableIndex: gl,
|
|
5238
|
+
hideGhostForTarget: ql,
|
|
5239
|
+
unhideGhostForTarget: Jl,
|
|
5240
5240
|
cloneNowHidden: function() {
|
|
5241
|
-
|
|
5241
|
+
fl = !0;
|
|
5242
5242
|
},
|
|
5243
5243
|
cloneNowShown: function() {
|
|
5244
|
-
|
|
5244
|
+
fl = !1;
|
|
5245
5245
|
},
|
|
5246
5246
|
dispatchSortableEvent: function(e) {
|
|
5247
|
-
|
|
5247
|
+
ol({
|
|
5248
5248
|
sortable: t,
|
|
5249
5249
|
name: e,
|
|
5250
5250
|
originalEvent: r
|
|
@@ -5252,46 +5252,46 @@ var rl = ["evt"], il = function(e, t) {
|
|
|
5252
5252
|
}
|
|
5253
5253
|
}, i));
|
|
5254
5254
|
};
|
|
5255
|
-
function
|
|
5256
|
-
|
|
5257
|
-
putSortable:
|
|
5258
|
-
cloneEl:
|
|
5255
|
+
function ol(e) {
|
|
5256
|
+
rl(dc({
|
|
5257
|
+
putSortable: vl,
|
|
5258
|
+
cloneEl: dl,
|
|
5259
5259
|
targetEl: Z,
|
|
5260
|
-
rootEl:
|
|
5261
|
-
oldIndex:
|
|
5262
|
-
oldDraggableIndex:
|
|
5263
|
-
newIndex:
|
|
5264
|
-
newDraggableIndex:
|
|
5260
|
+
rootEl: cl,
|
|
5261
|
+
oldIndex: pl,
|
|
5262
|
+
oldDraggableIndex: hl,
|
|
5263
|
+
newIndex: ml,
|
|
5264
|
+
newDraggableIndex: gl
|
|
5265
5265
|
}, e));
|
|
5266
5266
|
}
|
|
5267
|
-
var Z,
|
|
5268
|
-
if (
|
|
5269
|
-
if (
|
|
5267
|
+
var Z, sl, Q, cl, ll, ul, dl, fl, pl, ml, hl, gl, _l, vl, yl = !1, bl = !1, xl = [], Sl, Cl, wl, Tl, El, Dl, Ol, kl, Al, jl = !1, Ml = !1, Nl, Pl, Fl = [], Il = !1, Ll = [], Rl = typeof document < "u", zl = Cc, Bl = bc || yc ? "cssFloat" : "float", Vl = Rl && !wc && !Cc && "draggable" in document.createElement("div"), Hl = function() {
|
|
5268
|
+
if (Rl) {
|
|
5269
|
+
if (yc) return !1;
|
|
5270
5270
|
var e = document.createElement("x");
|
|
5271
5271
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
5272
5272
|
}
|
|
5273
|
-
}(),
|
|
5274
|
-
var n = X(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i =
|
|
5273
|
+
}(), Ul = function(e, t) {
|
|
5274
|
+
var n = X(e), r = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = Ic(e, 0, t), a = Ic(e, 1, t), o = i && X(i), s = a && X(a), c = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + Pc(i).width, l = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Pc(a).width;
|
|
5275
5275
|
if (n.display === "flex") return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
5276
5276
|
if (n.display === "grid") return n.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
5277
5277
|
if (i && o.float && o.float !== "none") {
|
|
5278
5278
|
var u = o.float === "left" ? "left" : "right";
|
|
5279
5279
|
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
5280
5280
|
}
|
|
5281
|
-
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[
|
|
5282
|
-
},
|
|
5281
|
+
return i && (o.display === "block" || o.display === "flex" || o.display === "table" || o.display === "grid" || c >= r && n[Bl] === "none" || a && n[Bl] === "none" && c + l > r) ? "vertical" : "horizontal";
|
|
5282
|
+
}, Wl = function(e, t, n) {
|
|
5283
5283
|
var r = n ? e.left : e.top, i = n ? e.right : e.bottom, a = n ? e.width : e.height, o = n ? t.left : t.top, s = n ? t.right : t.bottom, c = n ? t.width : t.height;
|
|
5284
5284
|
return r === o || i === s || r + a / 2 === o + c / 2;
|
|
5285
|
-
},
|
|
5285
|
+
}, Gl = function(e, t) {
|
|
5286
5286
|
var n;
|
|
5287
|
-
return
|
|
5288
|
-
var i = r[
|
|
5289
|
-
if (i && !
|
|
5290
|
-
var a =
|
|
5287
|
+
return xl.some(function(r) {
|
|
5288
|
+
var i = r[Xc].options.emptyInsertThreshold;
|
|
5289
|
+
if (i && !Lc(r)) {
|
|
5290
|
+
var a = Pc(r), o = e >= a.left - i && e <= a.right + i, s = t >= a.top - i && t <= a.bottom + i;
|
|
5291
5291
|
if (o && s) return n = r;
|
|
5292
5292
|
}
|
|
5293
5293
|
}), n;
|
|
5294
|
-
},
|
|
5294
|
+
}, Kl = function(e) {
|
|
5295
5295
|
function t(e, n) {
|
|
5296
5296
|
return function(r, i, a, o) {
|
|
5297
5297
|
var s = r.options.group.name && i.options.group.name && r.options.group.name === i.options.group.name;
|
|
@@ -5304,31 +5304,31 @@ var Z, ol, Q, sl, cl, ll, ul, dl, fl, pl, ml, hl, gl, _l, vl = !1, yl = !1, bl =
|
|
|
5304
5304
|
};
|
|
5305
5305
|
}
|
|
5306
5306
|
var n = {}, r = e.group;
|
|
5307
|
-
(!r ||
|
|
5308
|
-
}, Kl = function() {
|
|
5309
|
-
!Vl && Q && X(Q, "display", "none");
|
|
5307
|
+
(!r || gc(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;
|
|
5310
5308
|
}, ql = function() {
|
|
5311
|
-
!
|
|
5309
|
+
!Hl && Q && X(Q, "display", "none");
|
|
5310
|
+
}, Jl = function() {
|
|
5311
|
+
!Hl && Q && X(Q, "display", "");
|
|
5312
5312
|
};
|
|
5313
|
-
|
|
5314
|
-
if (
|
|
5313
|
+
Rl && !wc && document.addEventListener("click", function(e) {
|
|
5314
|
+
if (bl) return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), bl = !1, !1;
|
|
5315
5315
|
}, !0);
|
|
5316
|
-
var
|
|
5316
|
+
var Yl = function(e) {
|
|
5317
5317
|
if (Z) {
|
|
5318
5318
|
e = e.touches ? e.touches[0] : e;
|
|
5319
|
-
var t =
|
|
5319
|
+
var t = Gl(e.clientX, e.clientY);
|
|
5320
5320
|
if (t) {
|
|
5321
5321
|
var n = {};
|
|
5322
5322
|
for (var r in e) e.hasOwnProperty(r) && (n[r] = e[r]);
|
|
5323
|
-
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[
|
|
5323
|
+
n.target = n.rootEl = t, n.preventDefault = void 0, n.stopPropagation = void 0, t[Xc]._onDragOver(n);
|
|
5324
5324
|
}
|
|
5325
5325
|
}
|
|
5326
|
-
},
|
|
5327
|
-
Z && Z.parentNode[
|
|
5326
|
+
}, Xl = function(e) {
|
|
5327
|
+
Z && Z.parentNode[Xc]._isOutsideThisEl(e.target);
|
|
5328
5328
|
};
|
|
5329
5329
|
function $(e, t) {
|
|
5330
5330
|
if (!(e && e.nodeType && e.nodeType === 1)) throw `Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;
|
|
5331
|
-
this.el = e, this.options = t =
|
|
5331
|
+
this.el = e, this.options = t = lc({}, t), e[Xc] = this;
|
|
5332
5332
|
var n = {
|
|
5333
5333
|
group: null,
|
|
5334
5334
|
sort: !0,
|
|
@@ -5341,7 +5341,7 @@ function $(e, t) {
|
|
|
5341
5341
|
invertedSwapThreshold: null,
|
|
5342
5342
|
removeCloneOnHide: !0,
|
|
5343
5343
|
direction: function() {
|
|
5344
|
-
return
|
|
5344
|
+
return Ul(e, this.options);
|
|
5345
5345
|
},
|
|
5346
5346
|
ghostClass: "sortable-ghost",
|
|
5347
5347
|
chosenClass: "sortable-chosen",
|
|
@@ -5368,17 +5368,17 @@ function $(e, t) {
|
|
|
5368
5368
|
x: 0,
|
|
5369
5369
|
y: 0
|
|
5370
5370
|
},
|
|
5371
|
-
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!
|
|
5371
|
+
supportPointer: $.supportPointer !== !1 && "PointerEvent" in window && (!Sc || Cc),
|
|
5372
5372
|
emptyInsertThreshold: 5
|
|
5373
5373
|
};
|
|
5374
|
-
for (var r in
|
|
5375
|
-
for (var i in
|
|
5376
|
-
this.nativeDraggable = !t.forceFallback &&
|
|
5374
|
+
for (var r in nl.initializePlugins(this, e, n), n) !(r in t) && (t[r] = n[r]);
|
|
5375
|
+
for (var i in Kl(t), this) i.charAt(0) === "_" && typeof this[i] == "function" && (this[i] = this[i].bind(this));
|
|
5376
|
+
this.nativeDraggable = !t.forceFallback && Vl, 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)), xl.push(this.el), t.store && t.store.get && this.sort(t.store.get(this) || []), lc(this, Zc());
|
|
5377
5377
|
}
|
|
5378
5378
|
$.prototype = {
|
|
5379
5379
|
constructor: $,
|
|
5380
5380
|
_isOutsideThisEl: function(e) {
|
|
5381
|
-
!this.el.contains(e) && e !== this.el && (
|
|
5381
|
+
!this.el.contains(e) && e !== this.el && (kl = null);
|
|
5382
5382
|
},
|
|
5383
5383
|
_getDirection: function(e, t) {
|
|
5384
5384
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, t, Z) : this.options.direction;
|
|
@@ -5386,57 +5386,57 @@ $.prototype = {
|
|
|
5386
5386
|
_onTapStart: function(e) {
|
|
5387
5387
|
if (e.cancelable) {
|
|
5388
5388
|
var t = this, n = this.el, r = this.options, i = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (o || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, l = r.filter;
|
|
5389
|
-
if (
|
|
5390
|
-
if (
|
|
5389
|
+
if (ou(n), !Z && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Sc && s && s.tagName.toUpperCase() === "SELECT") && (s = Oc(s, r.draggable, n, !1), !(s && s.animated) && ul !== s)) {
|
|
5390
|
+
if (pl = Rc(s), hl = Rc(s, r.draggable), typeof l == "function") {
|
|
5391
5391
|
if (l.call(this, e, s, this)) {
|
|
5392
|
-
|
|
5392
|
+
ol({
|
|
5393
5393
|
sortable: t,
|
|
5394
5394
|
rootEl: c,
|
|
5395
5395
|
name: "filter",
|
|
5396
5396
|
targetEl: s,
|
|
5397
5397
|
toEl: n,
|
|
5398
5398
|
fromEl: n
|
|
5399
|
-
}),
|
|
5399
|
+
}), al("filter", t, { evt: e }), i && e.preventDefault();
|
|
5400
5400
|
return;
|
|
5401
5401
|
}
|
|
5402
5402
|
} else if (l && (l = l.split(",").some(function(r) {
|
|
5403
|
-
if (r =
|
|
5403
|
+
if (r = Oc(c, r.trim(), n, !1), r) return ol({
|
|
5404
5404
|
sortable: t,
|
|
5405
5405
|
rootEl: r,
|
|
5406
5406
|
name: "filter",
|
|
5407
5407
|
targetEl: s,
|
|
5408
5408
|
fromEl: n,
|
|
5409
5409
|
toEl: n
|
|
5410
|
-
}),
|
|
5410
|
+
}), al("filter", t, { evt: e }), !0;
|
|
5411
5411
|
}), l)) {
|
|
5412
5412
|
i && e.preventDefault();
|
|
5413
5413
|
return;
|
|
5414
5414
|
}
|
|
5415
|
-
(!r.handle ||
|
|
5415
|
+
(!r.handle || Oc(c, r.handle, n, !1)) && this._prepareDragStart(e, o, s);
|
|
5416
5416
|
}
|
|
5417
5417
|
}
|
|
5418
5418
|
},
|
|
5419
5419
|
_prepareDragStart: function(e, t, n) {
|
|
5420
5420
|
var r = this, i = r.el, a = r.options, o = i.ownerDocument, s;
|
|
5421
5421
|
if (n && !Z && n.parentNode === i) {
|
|
5422
|
-
var c =
|
|
5423
|
-
if (
|
|
5422
|
+
var c = Pc(n);
|
|
5423
|
+
if (cl = i, Z = n, sl = Z.parentNode, ll = Z.nextSibling, ul = n, _l = a.group, $.dragged = Z, Sl = {
|
|
5424
5424
|
target: Z,
|
|
5425
5425
|
clientX: (t || e).clientX,
|
|
5426
5426
|
clientY: (t || e).clientY
|
|
5427
|
-
},
|
|
5428
|
-
if (
|
|
5427
|
+
}, El = Sl.clientX - c.left, Dl = Sl.clientY - c.top, this._lastX = (t || e).clientX, this._lastY = (t || e).clientY, Z.style["will-change"] = "all", s = function() {
|
|
5428
|
+
if (al("delayEnded", r, { evt: e }), $.eventCanceled) {
|
|
5429
5429
|
r._onDrop();
|
|
5430
5430
|
return;
|
|
5431
5431
|
}
|
|
5432
|
-
r._disableDelayedDragEvents(), !
|
|
5432
|
+
r._disableDelayedDragEvents(), !xc && r.nativeDraggable && (Z.draggable = !0), r._triggerDragStart(e, t), ol({
|
|
5433
5433
|
sortable: r,
|
|
5434
5434
|
name: "choose",
|
|
5435
5435
|
originalEvent: e
|
|
5436
|
-
}),
|
|
5436
|
+
}), Ac(Z, a.chosenClass, !0);
|
|
5437
5437
|
}, a.ignore.split(",").forEach(function(e) {
|
|
5438
|
-
|
|
5439
|
-
}), J(o, "dragover",
|
|
5438
|
+
Mc(Z, e.trim(), $l);
|
|
5439
|
+
}), J(o, "dragover", Yl), J(o, "mousemove", Yl), J(o, "touchmove", Yl), 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)), xc && this.nativeDraggable && (this.options.touchStartThreshold = 4, Z.draggable = !0), al("delayStart", this, { evt: e }), a.delay && (!a.delayOnTouchOnly || t) && (!this.nativeDraggable || !(bc || yc))) {
|
|
5440
5440
|
if ($.eventCanceled) {
|
|
5441
5441
|
this._onDrop();
|
|
5442
5442
|
return;
|
|
@@ -5450,25 +5450,25 @@ $.prototype = {
|
|
|
5450
5450
|
Math.max(Math.abs(t.clientX - this._lastX), Math.abs(t.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
5451
5451
|
},
|
|
5452
5452
|
_disableDelayedDrag: function() {
|
|
5453
|
-
Z &&
|
|
5453
|
+
Z && $l(Z), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
5454
5454
|
},
|
|
5455
5455
|
_disableDelayedDragEvents: function() {
|
|
5456
5456
|
var e = this.el.ownerDocument;
|
|
5457
5457
|
Y(e, "mouseup", this._disableDelayedDrag), Y(e, "touchend", this._disableDelayedDrag), Y(e, "touchcancel", this._disableDelayedDrag), Y(e, "pointerup", this._disableDelayedDrag), Y(e, "pointercancel", this._disableDelayedDrag), Y(e, "mousemove", this._delayedDragTouchMoveHandler), Y(e, "touchmove", this._delayedDragTouchMoveHandler), Y(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
5458
5458
|
},
|
|
5459
5459
|
_triggerDragStart: function(e, t) {
|
|
5460
|
-
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? J(document, "pointermove", this._onTouchMove) : t ? J(document, "touchmove", this._onTouchMove) : J(document, "mousemove", this._onTouchMove) : (J(Z, "dragend", this), J(
|
|
5460
|
+
t ||= e.pointerType == "touch" && e, !this.nativeDraggable || t ? this.options.supportPointer ? J(document, "pointermove", this._onTouchMove) : t ? J(document, "touchmove", this._onTouchMove) : J(document, "mousemove", this._onTouchMove) : (J(Z, "dragend", this), J(cl, "dragstart", this._onDragStart));
|
|
5461
5461
|
try {
|
|
5462
|
-
document.selection ?
|
|
5462
|
+
document.selection ? su(function() {
|
|
5463
5463
|
document.selection.empty();
|
|
5464
5464
|
}) : window.getSelection().removeAllRanges();
|
|
5465
5465
|
} catch {}
|
|
5466
5466
|
},
|
|
5467
5467
|
_dragStarted: function(e, t) {
|
|
5468
|
-
if (
|
|
5469
|
-
|
|
5468
|
+
if (yl = !1, cl && Z) {
|
|
5469
|
+
al("dragStarted", this, { evt: t }), this.nativeDraggable && J(document, "dragover", Xl);
|
|
5470
5470
|
var n = this.options;
|
|
5471
|
-
!e &&
|
|
5471
|
+
!e && Ac(Z, n.dragClass, !1), Ac(Z, n.ghostClass, !0), $.active = this, e && this._appendGhost(), ol({
|
|
5472
5472
|
sortable: this,
|
|
5473
5473
|
name: "start",
|
|
5474
5474
|
originalEvent: t
|
|
@@ -5476,33 +5476,33 @@ $.prototype = {
|
|
|
5476
5476
|
} else this._nulling();
|
|
5477
5477
|
},
|
|
5478
5478
|
_emulateDragOver: function() {
|
|
5479
|
-
if (
|
|
5480
|
-
this._lastX =
|
|
5481
|
-
for (var e = document.elementFromPoint(
|
|
5482
|
-
if (Z.parentNode[
|
|
5483
|
-
if (t[
|
|
5479
|
+
if (Cl) {
|
|
5480
|
+
this._lastX = Cl.clientX, this._lastY = Cl.clientY, ql();
|
|
5481
|
+
for (var e = document.elementFromPoint(Cl.clientX, Cl.clientY), t = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(Cl.clientX, Cl.clientY), e !== t);) t = e;
|
|
5482
|
+
if (Z.parentNode[Xc]._isOutsideThisEl(e), t) do {
|
|
5483
|
+
if (t[Xc]) {
|
|
5484
5484
|
var n = void 0;
|
|
5485
|
-
if (n = t[
|
|
5486
|
-
clientX:
|
|
5487
|
-
clientY:
|
|
5485
|
+
if (n = t[Xc]._onDragOver({
|
|
5486
|
+
clientX: Cl.clientX,
|
|
5487
|
+
clientY: Cl.clientY,
|
|
5488
5488
|
target: e,
|
|
5489
5489
|
rootEl: t
|
|
5490
5490
|
}), n && !this.options.dragoverBubble) break;
|
|
5491
5491
|
}
|
|
5492
5492
|
e = t;
|
|
5493
|
-
} while (t =
|
|
5494
|
-
|
|
5493
|
+
} while (t = Dc(t));
|
|
5494
|
+
Jl();
|
|
5495
5495
|
}
|
|
5496
5496
|
},
|
|
5497
5497
|
_onTouchMove: function(e) {
|
|
5498
|
-
if (
|
|
5499
|
-
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q &&
|
|
5500
|
-
if (!$.active && !
|
|
5498
|
+
if (Sl) {
|
|
5499
|
+
var t = this.options, n = t.fallbackTolerance, r = t.fallbackOffset, i = e.touches ? e.touches[0] : e, a = Q && jc(Q, !0), o = Q && a && a.a, s = Q && a && a.d, c = zl && Pl && zc(Pl), l = (i.clientX - Sl.clientX + r.x) / (o || 1) + (c ? c[0] - Fl[0] : 0) / (o || 1), u = (i.clientY - Sl.clientY + r.y) / (s || 1) + (c ? c[1] - Fl[1] : 0) / (s || 1);
|
|
5500
|
+
if (!$.active && !yl) {
|
|
5501
5501
|
if (n && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < n) return;
|
|
5502
5502
|
this._onDragStart(e, !0);
|
|
5503
5503
|
}
|
|
5504
5504
|
if (Q) {
|
|
5505
|
-
a ? (a.e += l - (
|
|
5505
|
+
a ? (a.e += l - (wl || 0), a.f += u - (Tl || 0)) : a = {
|
|
5506
5506
|
a: 1,
|
|
5507
5507
|
b: 0,
|
|
5508
5508
|
c: 0,
|
|
@@ -5511,39 +5511,39 @@ $.prototype = {
|
|
|
5511
5511
|
f: u
|
|
5512
5512
|
};
|
|
5513
5513
|
var d = `matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;
|
|
5514
|
-
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d),
|
|
5514
|
+
X(Q, "webkitTransform", d), X(Q, "mozTransform", d), X(Q, "msTransform", d), X(Q, "transform", d), wl = l, Tl = u, Cl = i;
|
|
5515
5515
|
}
|
|
5516
5516
|
e.cancelable && e.preventDefault();
|
|
5517
5517
|
}
|
|
5518
5518
|
},
|
|
5519
5519
|
_appendGhost: function() {
|
|
5520
5520
|
if (!Q) {
|
|
5521
|
-
var e = this.options.fallbackOnBody ? document.body :
|
|
5522
|
-
if (
|
|
5523
|
-
for (
|
|
5524
|
-
|
|
5521
|
+
var e = this.options.fallbackOnBody ? document.body : cl, t = Pc(Z, !0, zl, !0, e), n = this.options;
|
|
5522
|
+
if (zl) {
|
|
5523
|
+
for (Pl = e; X(Pl, "position") === "static" && X(Pl, "transform") === "none" && Pl !== document;) Pl = Pl.parentNode;
|
|
5524
|
+
Pl !== document.body && Pl !== document.documentElement ? (Pl === document && (Pl = Nc()), t.top += Pl.scrollTop, t.left += Pl.scrollLeft) : Pl = Nc(), Fl = zc(Pl);
|
|
5525
5525
|
}
|
|
5526
|
-
Q = Z.cloneNode(!0),
|
|
5526
|
+
Q = Z.cloneNode(!0), Ac(Q, n.ghostClass, !1), Ac(Q, n.fallbackClass, !0), Ac(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", zl ? "absolute" : "fixed"), X(Q, "zIndex", "100000"), X(Q, "pointerEvents", "none"), $.ghost = Q, e.appendChild(Q), X(Q, "transform-origin", El / parseInt(Q.style.width) * 100 + "% " + Dl / parseInt(Q.style.height) * 100 + "%");
|
|
5527
5527
|
}
|
|
5528
5528
|
},
|
|
5529
5529
|
_onDragStart: function(e, t) {
|
|
5530
5530
|
var n = this, r = e.dataTransfer, i = n.options;
|
|
5531
|
-
if (
|
|
5531
|
+
if (al("dragStart", this, { evt: e }), $.eventCanceled) {
|
|
5532
5532
|
this._onDrop();
|
|
5533
5533
|
return;
|
|
5534
5534
|
}
|
|
5535
|
-
|
|
5536
|
-
|
|
5535
|
+
al("setupClone", this), $.eventCanceled || (dl = Jc(Z), dl.removeAttribute("id"), dl.draggable = !1, dl.style["will-change"] = "", this._hideClone(), Ac(dl, this.options.chosenClass, !1), $.clone = dl), n.cloneId = su(function() {
|
|
5536
|
+
al("clone", n), !$.eventCanceled && (n.options.removeCloneOnHide || cl.insertBefore(dl, Z), n._hideClone(), ol({
|
|
5537
5537
|
sortable: n,
|
|
5538
5538
|
name: "clone"
|
|
5539
5539
|
}));
|
|
5540
|
-
}), !t &&
|
|
5540
|
+
}), !t && Ac(Z, i.dragClass, !0), t ? (bl = !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)")), yl = !0, n._dragStartId = su(n._dragStarted.bind(n, t, e)), J(document, "selectstart", n), Ol = !0, window.getSelection().removeAllRanges(), Sc && X(document.body, "user-select", "none");
|
|
5541
5541
|
},
|
|
5542
5542
|
_onDragOver: function(e) {
|
|
5543
|
-
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l =
|
|
5544
|
-
if (
|
|
5543
|
+
var t = this.el, n = e.target, r, i, a, o = this.options, s = o.group, c = $.active, l = _l === s, u = o.sort, d = vl || c, f, p = this, m = !1;
|
|
5544
|
+
if (Il) return;
|
|
5545
5545
|
function h(o, s) {
|
|
5546
|
-
|
|
5546
|
+
al(o, p, dc({
|
|
5547
5547
|
evt: e,
|
|
5548
5548
|
isOwner: l,
|
|
5549
5549
|
axis: f ? "vertical" : "horizontal",
|
|
@@ -5555,7 +5555,7 @@ $.prototype = {
|
|
|
5555
5555
|
target: n,
|
|
5556
5556
|
completed: _,
|
|
5557
5557
|
onMove: function(n, i) {
|
|
5558
|
-
return
|
|
5558
|
+
return Ql(cl, t, Z, r, n, Pc(n), e, i);
|
|
5559
5559
|
},
|
|
5560
5560
|
changed: v
|
|
5561
5561
|
}, s));
|
|
@@ -5564,50 +5564,50 @@ $.prototype = {
|
|
|
5564
5564
|
h("dragOverAnimationCapture"), p.captureAnimationState(), p !== d && d.captureAnimationState();
|
|
5565
5565
|
}
|
|
5566
5566
|
function _(r) {
|
|
5567
|
-
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (
|
|
5567
|
+
return h("dragOverCompleted", { insertion: r }), r && (l ? c._hideClone() : c._showClone(p), p !== d && (Ac(Z, vl ? vl.options.ghostClass : c.options.ghostClass, !1), Ac(Z, o.ghostClass, !0)), vl !== p && p !== $.active ? vl = p : p === $.active && vl && (vl = null), d === p && (p._ignoreWhileAnimating = n), p.animateAll(function() {
|
|
5568
5568
|
h("dragOverAnimationComplete"), p._ignoreWhileAnimating = null;
|
|
5569
|
-
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (
|
|
5569
|
+
}), p !== d && (d.animateAll(), d._ignoreWhileAnimating = null)), (n === Z && !Z.animated || n === t && !n.animated) && (kl = null), !o.dragoverBubble && !e.rootEl && n !== document && (Z.parentNode[Xc]._isOutsideThisEl(e.target), !r && Yl(e)), !o.dragoverBubble && e.stopPropagation && e.stopPropagation(), m = !0;
|
|
5570
5570
|
}
|
|
5571
5571
|
function v() {
|
|
5572
|
-
|
|
5572
|
+
ml = Rc(Z), gl = Rc(Z, o.draggable), ol({
|
|
5573
5573
|
sortable: p,
|
|
5574
5574
|
name: "change",
|
|
5575
5575
|
toEl: t,
|
|
5576
|
-
newIndex:
|
|
5577
|
-
newDraggableIndex:
|
|
5576
|
+
newIndex: ml,
|
|
5577
|
+
newDraggableIndex: gl,
|
|
5578
5578
|
originalEvent: e
|
|
5579
5579
|
});
|
|
5580
5580
|
}
|
|
5581
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n =
|
|
5581
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), n = Oc(n, o.draggable, t, !0), h("dragOver"), $.eventCanceled) return m;
|
|
5582
5582
|
if (Z.contains(e.target) || n.animated && n.animatingX && n.animatingY || p._ignoreWhileAnimating === n) return _(!1);
|
|
5583
|
-
if (
|
|
5584
|
-
if (f = this._getDirection(e, n) === "vertical", r =
|
|
5585
|
-
if (a) return
|
|
5586
|
-
var y =
|
|
5587
|
-
if (!y ||
|
|
5583
|
+
if (bl = !1, c && !o.disabled && (l ? u || (a = sl !== cl) : vl === this || (this.lastPutMode = _l.checkPull(this, c, Z, e)) && s.checkPut(this, c, Z, e))) {
|
|
5584
|
+
if (f = this._getDirection(e, n) === "vertical", r = Pc(Z), h("dragOverValid"), $.eventCanceled) return m;
|
|
5585
|
+
if (a) return sl = cl, g(), this._hideClone(), h("revert"), $.eventCanceled || (ll ? cl.insertBefore(Z, ll) : cl.appendChild(Z)), _(!0);
|
|
5586
|
+
var y = Lc(t, o.draggable);
|
|
5587
|
+
if (!y || nu(e, f, this) && !y.animated) {
|
|
5588
5588
|
if (y === Z) return _(!1);
|
|
5589
|
-
if (y && t === e.target && (n = y), n && (i =
|
|
5590
|
-
} else if (y &&
|
|
5591
|
-
var b =
|
|
5589
|
+
if (y && t === e.target && (n = y), n && (i = Pc(n)), Ql(cl, t, Z, r, n, i, e, !!n) !== !1) return g(), y && y.nextSibling ? t.insertBefore(Z, y.nextSibling) : t.appendChild(Z), sl = t, v(), _(!0);
|
|
5590
|
+
} else if (y && tu(e, f, this)) {
|
|
5591
|
+
var b = Ic(t, 0, o, !0);
|
|
5592
5592
|
if (b === Z) return _(!1);
|
|
5593
|
-
if (n = b, i =
|
|
5593
|
+
if (n = b, i = Pc(n), Ql(cl, t, Z, r, n, i, e, !1) !== !1) return g(), t.insertBefore(Z, b), sl = t, v(), _(!0);
|
|
5594
5594
|
} else if (n.parentNode === t) {
|
|
5595
|
-
i =
|
|
5596
|
-
var x = 0, S, C = Z.parentNode !== t, w = !
|
|
5597
|
-
|
|
5595
|
+
i = Pc(n);
|
|
5596
|
+
var x = 0, S, C = Z.parentNode !== t, w = !Wl(Z.animated && Z.toRect || r, n.animated && n.toRect || i, f), T = f ? "top" : "left", E = Fc(n, "top", "top") || Fc(Z, "top", "top"), D = E ? E.scrollTop : void 0;
|
|
5597
|
+
kl !== n && (S = i[T], jl = !1, Ml = !w && o.invertSwap || C), x = ru(e, n, i, f, w ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, Ml, kl === n);
|
|
5598
5598
|
var O;
|
|
5599
5599
|
if (x !== 0) {
|
|
5600
|
-
var k =
|
|
5600
|
+
var k = Rc(Z);
|
|
5601
5601
|
do
|
|
5602
|
-
k -= x, O =
|
|
5602
|
+
k -= x, O = sl.children[k];
|
|
5603
5603
|
while (O && (X(O, "display") === "none" || O === Q));
|
|
5604
5604
|
}
|
|
5605
5605
|
if (x === 0 || O === n) return _(!1);
|
|
5606
|
-
|
|
5606
|
+
kl = n, Al = x;
|
|
5607
5607
|
var A = n.nextElementSibling, j = !1;
|
|
5608
5608
|
j = x === 1;
|
|
5609
|
-
var M =
|
|
5610
|
-
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1),
|
|
5609
|
+
var M = Ql(cl, t, Z, r, n, i, e, j);
|
|
5610
|
+
if (M !== !1) return (M === 1 || M === -1) && (j = M === 1), Il = !0, setTimeout(eu, 30), g(), j && !A ? t.appendChild(Z) : n.parentNode.insertBefore(Z, j ? A : n), E && qc(E, 0, D - E.scrollTop), sl = Z.parentNode, S !== void 0 && !Ml && (Nl = Math.abs(S - Pc(n)[T])), v(), _(!0);
|
|
5611
5611
|
}
|
|
5612
5612
|
if (t.contains(Z)) return _(!1);
|
|
5613
5613
|
}
|
|
@@ -5615,7 +5615,7 @@ $.prototype = {
|
|
|
5615
5615
|
},
|
|
5616
5616
|
_ignoreWhileAnimating: null,
|
|
5617
5617
|
_offMoveEvents: function() {
|
|
5618
|
-
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover",
|
|
5618
|
+
Y(document, "mousemove", this._onTouchMove), Y(document, "touchmove", this._onTouchMove), Y(document, "pointermove", this._onTouchMove), Y(document, "dragover", Yl), Y(document, "mousemove", Yl), Y(document, "touchmove", Yl);
|
|
5619
5619
|
},
|
|
5620
5620
|
_offUpEvents: function() {
|
|
5621
5621
|
var e = this.el.ownerDocument;
|
|
@@ -5623,62 +5623,62 @@ $.prototype = {
|
|
|
5623
5623
|
},
|
|
5624
5624
|
_onDrop: function(e) {
|
|
5625
5625
|
var t = this.el, n = this.options;
|
|
5626
|
-
if (
|
|
5626
|
+
if (ml = Rc(Z), gl = Rc(Z, n.draggable), al("drop", this, { evt: e }), sl = Z && Z.parentNode, ml = Rc(Z), gl = Rc(Z, n.draggable), $.eventCanceled) {
|
|
5627
5627
|
this._nulling();
|
|
5628
5628
|
return;
|
|
5629
5629
|
}
|
|
5630
|
-
|
|
5630
|
+
yl = !1, Ml = !1, jl = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), cu(this.cloneId), cu(this._dragStartId), this.nativeDraggable && (Y(document, "drop", this), Y(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Sc && X(document.body, "user-select", ""), X(Z, "transform", ""), e && (Ol && (e.cancelable && e.preventDefault(), !n.dropBubble && e.stopPropagation()), Q && Q.parentNode && Q.parentNode.removeChild(Q), (cl === sl || vl && vl.lastPutMode !== "clone") && dl && dl.parentNode && dl.parentNode.removeChild(dl), Z && (this.nativeDraggable && Y(Z, "dragend", this), $l(Z), Z.style["will-change"] = "", Ol && !yl && Ac(Z, vl ? vl.options.ghostClass : this.options.ghostClass, !1), Ac(Z, this.options.chosenClass, !1), ol({
|
|
5631
5631
|
sortable: this,
|
|
5632
5632
|
name: "unchoose",
|
|
5633
|
-
toEl:
|
|
5633
|
+
toEl: sl,
|
|
5634
5634
|
newIndex: null,
|
|
5635
5635
|
newDraggableIndex: null,
|
|
5636
5636
|
originalEvent: e
|
|
5637
|
-
}),
|
|
5637
|
+
}), cl === sl ? ml !== pl && ml >= 0 && (ol({
|
|
5638
5638
|
sortable: this,
|
|
5639
5639
|
name: "update",
|
|
5640
|
-
toEl:
|
|
5640
|
+
toEl: sl,
|
|
5641
5641
|
originalEvent: e
|
|
5642
|
-
}),
|
|
5642
|
+
}), ol({
|
|
5643
5643
|
sortable: this,
|
|
5644
5644
|
name: "sort",
|
|
5645
|
-
toEl:
|
|
5645
|
+
toEl: sl,
|
|
5646
5646
|
originalEvent: e
|
|
5647
|
-
})) : (
|
|
5648
|
-
rootEl:
|
|
5647
|
+
})) : (ml >= 0 && (ol({
|
|
5648
|
+
rootEl: sl,
|
|
5649
5649
|
name: "add",
|
|
5650
|
-
toEl:
|
|
5651
|
-
fromEl:
|
|
5650
|
+
toEl: sl,
|
|
5651
|
+
fromEl: cl,
|
|
5652
5652
|
originalEvent: e
|
|
5653
|
-
}),
|
|
5653
|
+
}), ol({
|
|
5654
5654
|
sortable: this,
|
|
5655
5655
|
name: "remove",
|
|
5656
|
-
toEl:
|
|
5656
|
+
toEl: sl,
|
|
5657
5657
|
originalEvent: e
|
|
5658
|
-
}),
|
|
5659
|
-
rootEl:
|
|
5658
|
+
}), ol({
|
|
5659
|
+
rootEl: sl,
|
|
5660
5660
|
name: "sort",
|
|
5661
|
-
toEl:
|
|
5662
|
-
fromEl:
|
|
5661
|
+
toEl: sl,
|
|
5662
|
+
fromEl: cl,
|
|
5663
5663
|
originalEvent: e
|
|
5664
|
-
}),
|
|
5664
|
+
}), ol({
|
|
5665
5665
|
sortable: this,
|
|
5666
5666
|
name: "sort",
|
|
5667
|
-
toEl:
|
|
5667
|
+
toEl: sl,
|
|
5668
5668
|
originalEvent: e
|
|
5669
|
-
})),
|
|
5669
|
+
})), vl && vl.save()), $.active && ((ml == null || ml === -1) && (ml = pl, gl = hl), ol({
|
|
5670
5670
|
sortable: this,
|
|
5671
5671
|
name: "end",
|
|
5672
|
-
toEl:
|
|
5672
|
+
toEl: sl,
|
|
5673
5673
|
originalEvent: e
|
|
5674
5674
|
}), this.save()))), this._nulling();
|
|
5675
5675
|
},
|
|
5676
5676
|
_nulling: function() {
|
|
5677
|
-
|
|
5677
|
+
al("nulling", this), cl = Z = sl = Q = ll = dl = ul = fl = Sl = Cl = Ol = ml = gl = pl = hl = kl = Al = vl = _l = $.dragged = $.ghost = $.clone = $.active = null;
|
|
5678
5678
|
var e = this.el;
|
|
5679
|
-
|
|
5679
|
+
Ll.forEach(function(t) {
|
|
5680
5680
|
e.contains(t) && (t.checked = !0);
|
|
5681
|
-
}),
|
|
5681
|
+
}), Ll.length = wl = Tl = 0;
|
|
5682
5682
|
},
|
|
5683
5683
|
handleEvent: function(e) {
|
|
5684
5684
|
switch (e.type) {
|
|
@@ -5688,20 +5688,20 @@ $.prototype = {
|
|
|
5688
5688
|
break;
|
|
5689
5689
|
case "dragenter":
|
|
5690
5690
|
case "dragover":
|
|
5691
|
-
Z && (this._onDragOver(e),
|
|
5691
|
+
Z && (this._onDragOver(e), Zl(e));
|
|
5692
5692
|
break;
|
|
5693
5693
|
case "selectstart": e.preventDefault();
|
|
5694
5694
|
}
|
|
5695
5695
|
},
|
|
5696
5696
|
toArray: function() {
|
|
5697
|
-
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r],
|
|
5697
|
+
for (var e = [], t, n = this.el.children, r = 0, i = n.length, a = this.options; r < i; r++) t = n[r], Oc(t, a.draggable, this.el, !1) && e.push(t.getAttribute(a.dataIdAttr) || au(t));
|
|
5698
5698
|
return e;
|
|
5699
5699
|
},
|
|
5700
5700
|
sort: function(e, t) {
|
|
5701
5701
|
var n = {}, r = this.el;
|
|
5702
5702
|
this.toArray().forEach(function(e, t) {
|
|
5703
5703
|
var i = r.children[t];
|
|
5704
|
-
|
|
5704
|
+
Oc(i, this.options.draggable, r, !1) && (n[e] = i);
|
|
5705
5705
|
}, this), t && this.captureAnimationState(), e.forEach(function(e) {
|
|
5706
5706
|
n[e] && (r.removeChild(n[e]), r.appendChild(n[e]));
|
|
5707
5707
|
}), t && this.animateAll();
|
|
@@ -5711,25 +5711,25 @@ $.prototype = {
|
|
|
5711
5711
|
e && e.set && e.set(this);
|
|
5712
5712
|
},
|
|
5713
5713
|
closest: function(e, t) {
|
|
5714
|
-
return
|
|
5714
|
+
return Oc(e, t || this.options.draggable, this.el, !1);
|
|
5715
5715
|
},
|
|
5716
5716
|
option: function(e, t) {
|
|
5717
5717
|
var n = this.options;
|
|
5718
5718
|
if (t === void 0) return n[e];
|
|
5719
|
-
var r =
|
|
5720
|
-
n[e] = r === void 0 ? t : r, e === "group" &&
|
|
5719
|
+
var r = nl.modifyOption(this, e, t);
|
|
5720
|
+
n[e] = r === void 0 ? t : r, e === "group" && Kl(n);
|
|
5721
5721
|
},
|
|
5722
5722
|
destroy: function() {
|
|
5723
|
-
|
|
5723
|
+
al("destroy", this);
|
|
5724
5724
|
var e = this.el;
|
|
5725
|
-
e[
|
|
5725
|
+
e[Xc] = null, Y(e, "mousedown", this._onTapStart), Y(e, "touchstart", this._onTapStart), Y(e, "pointerdown", this._onTapStart), this.nativeDraggable && (Y(e, "dragover", this), Y(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(e) {
|
|
5726
5726
|
e.removeAttribute("draggable");
|
|
5727
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
5727
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), xl.splice(xl.indexOf(this.el), 1), this.el = e = null;
|
|
5728
5728
|
},
|
|
5729
5729
|
_hideClone: function() {
|
|
5730
|
-
if (!
|
|
5731
|
-
if (
|
|
5732
|
-
X(
|
|
5730
|
+
if (!fl) {
|
|
5731
|
+
if (al("hideClone", this), $.eventCanceled) return;
|
|
5732
|
+
X(dl, "display", "none"), this.options.removeCloneOnHide && dl.parentNode && dl.parentNode.removeChild(dl), fl = !0;
|
|
5733
5733
|
}
|
|
5734
5734
|
},
|
|
5735
5735
|
_showClone: function(e) {
|
|
@@ -5737,100 +5737,100 @@ $.prototype = {
|
|
|
5737
5737
|
this._hideClone();
|
|
5738
5738
|
return;
|
|
5739
5739
|
}
|
|
5740
|
-
if (
|
|
5741
|
-
if (
|
|
5742
|
-
Z.parentNode ==
|
|
5740
|
+
if (fl) {
|
|
5741
|
+
if (al("showClone", this), $.eventCanceled) return;
|
|
5742
|
+
Z.parentNode == cl && !this.options.group.revertClone ? cl.insertBefore(dl, Z) : ll ? cl.insertBefore(dl, ll) : cl.appendChild(dl), this.options.group.revertClone && this.animate(Z, dl), X(dl, "display", ""), fl = !1;
|
|
5743
5743
|
}
|
|
5744
5744
|
}
|
|
5745
5745
|
};
|
|
5746
|
-
function
|
|
5746
|
+
function Zl(e) {
|
|
5747
5747
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5748
5748
|
}
|
|
5749
|
-
function
|
|
5750
|
-
var c, l = e[
|
|
5751
|
-
return window.CustomEvent && !
|
|
5749
|
+
function Ql(e, t, n, r, i, a, o, s) {
|
|
5750
|
+
var c, l = e[Xc], u = l.options.onMove, d;
|
|
5751
|
+
return window.CustomEvent && !yc && !bc ? c = new CustomEvent("move", {
|
|
5752
5752
|
bubbles: !0,
|
|
5753
5753
|
cancelable: !0
|
|
5754
|
-
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a ||
|
|
5754
|
+
}) : (c = document.createEvent("Event"), c.initEvent("move", !0, !0)), c.to = t, c.from = e, c.dragged = n, c.draggedRect = r, c.related = i || t, c.relatedRect = a || Pc(t), c.willInsertAfter = s, c.originalEvent = o, e.dispatchEvent(c), u && (d = u.call(l, c, o)), d;
|
|
5755
5755
|
}
|
|
5756
|
-
function
|
|
5756
|
+
function $l(e) {
|
|
5757
5757
|
e.draggable = !1;
|
|
5758
5758
|
}
|
|
5759
|
-
function
|
|
5760
|
-
|
|
5759
|
+
function eu() {
|
|
5760
|
+
Il = !1;
|
|
5761
5761
|
}
|
|
5762
|
-
function
|
|
5763
|
-
var r =
|
|
5762
|
+
function tu(e, t, n) {
|
|
5763
|
+
var r = Pc(Ic(n.el, 0, n.options, !0)), i = Yc(n.el, n.options, Q), a = 10;
|
|
5764
5764
|
return t ? e.clientX < i.left - a || e.clientY < r.top && e.clientX < r.right : e.clientY < i.top - a || e.clientY < r.bottom && e.clientX < r.left;
|
|
5765
5765
|
}
|
|
5766
|
-
function
|
|
5767
|
-
var r =
|
|
5766
|
+
function nu(e, t, n) {
|
|
5767
|
+
var r = Pc(Lc(n.el, n.options.draggable)), i = Yc(n.el, n.options, Q), a = 10;
|
|
5768
5768
|
return t ? e.clientX > i.right + a || e.clientY > r.bottom && e.clientX > r.left : e.clientY > i.bottom + a || e.clientX > r.right && e.clientY > r.top;
|
|
5769
5769
|
}
|
|
5770
|
-
function
|
|
5770
|
+
function ru(e, t, n, r, i, a, o, s) {
|
|
5771
5771
|
var c = r ? e.clientY : e.clientX, l = r ? n.height : n.width, u = r ? n.top : n.left, d = r ? n.bottom : n.right, f = !1;
|
|
5772
5772
|
if (!o) {
|
|
5773
|
-
if (s &&
|
|
5774
|
-
if (!
|
|
5775
|
-
else if (
|
|
5776
|
-
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return
|
|
5773
|
+
if (s && Nl < l * i) {
|
|
5774
|
+
if (!jl && (Al === 1 ? c > u + l * a / 2 : c < d - l * a / 2) && (jl = !0), jl) f = !0;
|
|
5775
|
+
else if (Al === 1 ? c < u + Nl : c > d - Nl) return -Al;
|
|
5776
|
+
} else if (c > u + l * (1 - i) / 2 && c < d - l * (1 - i) / 2) return iu(t);
|
|
5777
5777
|
}
|
|
5778
5778
|
return f ||= o, f && (c < u + l * a / 2 || c > d - l * a / 2) ? c > u + l / 2 ? 1 : -1 : 0;
|
|
5779
5779
|
}
|
|
5780
|
-
function ru(e) {
|
|
5781
|
-
return Lc(Z) < Lc(e) ? 1 : -1;
|
|
5782
|
-
}
|
|
5783
5780
|
function iu(e) {
|
|
5781
|
+
return Rc(Z) < Rc(e) ? 1 : -1;
|
|
5782
|
+
}
|
|
5783
|
+
function au(e) {
|
|
5784
5784
|
for (var t = e.tagName + e.className + e.src + e.href + e.textContent, n = t.length, r = 0; n--;) r += t.charCodeAt(n);
|
|
5785
5785
|
return r.toString(36);
|
|
5786
5786
|
}
|
|
5787
|
-
function
|
|
5788
|
-
|
|
5787
|
+
function ou(e) {
|
|
5788
|
+
Ll.length = 0;
|
|
5789
5789
|
for (var t = e.getElementsByTagName("input"), n = t.length; n--;) {
|
|
5790
5790
|
var r = t[n];
|
|
5791
|
-
r.checked &&
|
|
5791
|
+
r.checked && Ll.push(r);
|
|
5792
5792
|
}
|
|
5793
5793
|
}
|
|
5794
|
-
function
|
|
5794
|
+
function su(e) {
|
|
5795
5795
|
return setTimeout(e, 0);
|
|
5796
5796
|
}
|
|
5797
|
-
function
|
|
5797
|
+
function cu(e) {
|
|
5798
5798
|
return clearTimeout(e);
|
|
5799
5799
|
}
|
|
5800
|
-
|
|
5801
|
-
($.active ||
|
|
5800
|
+
Rl && J(document, "touchmove", function(e) {
|
|
5801
|
+
($.active || yl) && e.cancelable && e.preventDefault();
|
|
5802
5802
|
}), $.utils = {
|
|
5803
5803
|
on: J,
|
|
5804
5804
|
off: Y,
|
|
5805
5805
|
css: X,
|
|
5806
|
-
find:
|
|
5806
|
+
find: Mc,
|
|
5807
5807
|
is: function(e, t) {
|
|
5808
|
-
return !!
|
|
5808
|
+
return !!Oc(e, t, e, !1);
|
|
5809
5809
|
},
|
|
5810
|
-
extend:
|
|
5811
|
-
throttle:
|
|
5812
|
-
closest:
|
|
5813
|
-
toggleClass:
|
|
5814
|
-
clone:
|
|
5815
|
-
index:
|
|
5816
|
-
nextTick:
|
|
5817
|
-
cancelNextTick:
|
|
5818
|
-
detectDirection:
|
|
5819
|
-
getChild:
|
|
5820
|
-
expando:
|
|
5810
|
+
extend: Hc,
|
|
5811
|
+
throttle: Gc,
|
|
5812
|
+
closest: Oc,
|
|
5813
|
+
toggleClass: Ac,
|
|
5814
|
+
clone: Jc,
|
|
5815
|
+
index: Rc,
|
|
5816
|
+
nextTick: su,
|
|
5817
|
+
cancelNextTick: cu,
|
|
5818
|
+
detectDirection: Ul,
|
|
5819
|
+
getChild: Ic,
|
|
5820
|
+
expando: Xc
|
|
5821
5821
|
}, $.get = function(e) {
|
|
5822
|
-
return e[
|
|
5822
|
+
return e[Xc];
|
|
5823
5823
|
}, $.mount = function() {
|
|
5824
5824
|
var e = [...arguments];
|
|
5825
5825
|
e[0].constructor === Array && (e = e[0]), e.forEach(function(e) {
|
|
5826
5826
|
if (!e.prototype || !e.prototype.constructor) throw `Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;
|
|
5827
|
-
e.utils && ($.utils =
|
|
5827
|
+
e.utils && ($.utils = dc(dc({}, $.utils), e.utils)), nl.mount(e);
|
|
5828
5828
|
});
|
|
5829
5829
|
}, $.create = function(e, t) {
|
|
5830
5830
|
return new $(e, t);
|
|
5831
|
-
}, $.version =
|
|
5832
|
-
var
|
|
5833
|
-
function
|
|
5831
|
+
}, $.version = _c;
|
|
5832
|
+
var lu = [], uu, du, fu = !1, pu, mu, hu, gu;
|
|
5833
|
+
function _u() {
|
|
5834
5834
|
function e() {
|
|
5835
5835
|
for (var e in this.defaults = {
|
|
5836
5836
|
scroll: !0,
|
|
@@ -5850,63 +5850,63 @@ function gu() {
|
|
|
5850
5850
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
5851
5851
|
},
|
|
5852
5852
|
drop: function() {
|
|
5853
|
-
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
5853
|
+
this.sortable.nativeDraggable ? Y(document, "dragover", this._handleAutoScroll) : (Y(document, "pointermove", this._handleFallbackAutoScroll), Y(document, "touchmove", this._handleFallbackAutoScroll), Y(document, "mousemove", this._handleFallbackAutoScroll)), yu(), vu(), Kc();
|
|
5854
5854
|
},
|
|
5855
5855
|
nulling: function() {
|
|
5856
|
-
|
|
5856
|
+
hu = du = uu = fu = gu = pu = mu = null, lu.length = 0;
|
|
5857
5857
|
},
|
|
5858
5858
|
_handleFallbackAutoScroll: function(e) {
|
|
5859
5859
|
this._handleAutoScroll(e, !0);
|
|
5860
5860
|
},
|
|
5861
5861
|
_handleAutoScroll: function(e, t) {
|
|
5862
5862
|
var n = this, r = (e.touches ? e.touches[0] : e).clientX, i = (e.touches ? e.touches[0] : e).clientY, a = document.elementFromPoint(r, i);
|
|
5863
|
-
if (
|
|
5864
|
-
|
|
5865
|
-
var o =
|
|
5866
|
-
|
|
5867
|
-
var a =
|
|
5868
|
-
a !== o && (o = a,
|
|
5869
|
-
}, 10),
|
|
5863
|
+
if (hu = e, t || this.options.forceAutoScrollFallback || bc || yc || Sc) {
|
|
5864
|
+
bu(e, this.options, a, t);
|
|
5865
|
+
var o = Vc(a, !0);
|
|
5866
|
+
fu && (!gu || r !== pu || i !== mu) && (gu && yu(), gu = setInterval(function() {
|
|
5867
|
+
var a = Vc(document.elementFromPoint(r, i), !0);
|
|
5868
|
+
a !== o && (o = a, vu()), bu(e, n.options, a, t);
|
|
5869
|
+
}, 10), pu = r, mu = i);
|
|
5870
5870
|
} else {
|
|
5871
|
-
if (!this.options.bubbleScroll ||
|
|
5872
|
-
|
|
5871
|
+
if (!this.options.bubbleScroll || Vc(a, !0) === Nc()) {
|
|
5872
|
+
vu();
|
|
5873
5873
|
return;
|
|
5874
5874
|
}
|
|
5875
|
-
|
|
5875
|
+
bu(e, this.options, Vc(a, !1), !1);
|
|
5876
5876
|
}
|
|
5877
5877
|
}
|
|
5878
|
-
},
|
|
5878
|
+
}, lc(e, {
|
|
5879
5879
|
pluginName: "scroll",
|
|
5880
5880
|
initializeByDefault: !0
|
|
5881
5881
|
});
|
|
5882
5882
|
}
|
|
5883
|
-
function
|
|
5884
|
-
|
|
5883
|
+
function vu() {
|
|
5884
|
+
lu.forEach(function(e) {
|
|
5885
5885
|
clearInterval(e.pid);
|
|
5886
|
-
}),
|
|
5886
|
+
}), lu = [];
|
|
5887
5887
|
}
|
|
5888
|
-
function
|
|
5889
|
-
clearInterval(
|
|
5888
|
+
function yu() {
|
|
5889
|
+
clearInterval(gu);
|
|
5890
5890
|
}
|
|
5891
|
-
var
|
|
5891
|
+
var bu = Gc(function(e, t, n, r) {
|
|
5892
5892
|
if (t.scroll) {
|
|
5893
|
-
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c =
|
|
5894
|
-
|
|
5895
|
-
var d = 0, f =
|
|
5893
|
+
var i = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, o = t.scrollSensitivity, s = t.scrollSpeed, c = Nc(), l = !1, u;
|
|
5894
|
+
du !== n && (du = n, vu(), uu = t.scroll, u = t.scrollFn, uu === !0 && (uu = Vc(n, !0)));
|
|
5895
|
+
var d = 0, f = uu;
|
|
5896
5896
|
do {
|
|
5897
|
-
var p = f, m =
|
|
5897
|
+
var p = f, m = Pc(p), h = m.top, g = m.bottom, _ = m.left, v = m.right, y = m.width, b = m.height, x = void 0, S = void 0, C = p.scrollWidth, w = p.scrollHeight, T = X(p), E = p.scrollLeft, D = p.scrollTop;
|
|
5898
5898
|
p === c ? (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll" || T.overflowX === "visible"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll" || T.overflowY === "visible")) : (x = y < C && (T.overflowX === "auto" || T.overflowX === "scroll"), S = b < w && (T.overflowY === "auto" || T.overflowY === "scroll"));
|
|
5899
5899
|
var O = x && (Math.abs(v - i) <= o && E + y < C) - (Math.abs(_ - i) <= o && !!E), k = S && (Math.abs(g - a) <= o && D + b < w) - (Math.abs(h - a) <= o && !!D);
|
|
5900
|
-
if (!
|
|
5901
|
-
(
|
|
5902
|
-
r && this.layer === 0 && $.active._onTouchMove(
|
|
5903
|
-
var t =
|
|
5904
|
-
(typeof u != "function" || u.call($.dragged.parentNode[
|
|
5900
|
+
if (!lu[d]) for (var A = 0; A <= d; A++) lu[A] || (lu[A] = {});
|
|
5901
|
+
(lu[d].vx != O || lu[d].vy != k || lu[d].el !== p) && (lu[d].el = p, lu[d].vx = O, lu[d].vy = k, clearInterval(lu[d].pid), (O != 0 || k != 0) && (l = !0, lu[d].pid = setInterval(function() {
|
|
5902
|
+
r && this.layer === 0 && $.active._onTouchMove(hu);
|
|
5903
|
+
var t = lu[this.layer].vy ? lu[this.layer].vy * s : 0, n = lu[this.layer].vx ? lu[this.layer].vx * s : 0;
|
|
5904
|
+
(typeof u != "function" || u.call($.dragged.parentNode[Xc], n, t, e, hu, lu[this.layer].el) === "continue") && qc(lu[this.layer].el, n, t);
|
|
5905
5905
|
}.bind({ layer: d }), 24))), d++;
|
|
5906
|
-
} while (t.bubbleScroll && f !== c && (f =
|
|
5907
|
-
|
|
5906
|
+
} while (t.bubbleScroll && f !== c && (f = Vc(f, !1)));
|
|
5907
|
+
fu = l;
|
|
5908
5908
|
}
|
|
5909
|
-
}, 30),
|
|
5909
|
+
}, 30), xu = function(e) {
|
|
5910
5910
|
var t = e.originalEvent, n = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, o = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
5911
5911
|
if (t) {
|
|
5912
5912
|
var c = n || i;
|
|
@@ -5918,8 +5918,8 @@ var yu = Wc(function(e, t, n, r) {
|
|
|
5918
5918
|
}));
|
|
5919
5919
|
}
|
|
5920
5920
|
};
|
|
5921
|
-
function
|
|
5922
|
-
|
|
5921
|
+
function Su() {}
|
|
5922
|
+
Su.prototype = {
|
|
5923
5923
|
startIndex: null,
|
|
5924
5924
|
dragStart: function(e) {
|
|
5925
5925
|
var t = e.oldDraggableIndex;
|
|
@@ -5928,24 +5928,24 @@ xu.prototype = {
|
|
|
5928
5928
|
onSpill: function(e) {
|
|
5929
5929
|
var t = e.dragEl, n = e.putSortable;
|
|
5930
5930
|
this.sortable.captureAnimationState(), n && n.captureAnimationState();
|
|
5931
|
-
var r =
|
|
5931
|
+
var r = Ic(this.sortable.el, this.startIndex, this.options);
|
|
5932
5932
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), n && n.animateAll();
|
|
5933
5933
|
},
|
|
5934
|
-
drop:
|
|
5935
|
-
},
|
|
5936
|
-
function
|
|
5937
|
-
|
|
5934
|
+
drop: xu
|
|
5935
|
+
}, lc(Su, { pluginName: "revertOnSpill" });
|
|
5936
|
+
function Cu() {}
|
|
5937
|
+
Cu.prototype = {
|
|
5938
5938
|
onSpill: function(e) {
|
|
5939
5939
|
var t = e.dragEl, n = e.putSortable || this.sortable;
|
|
5940
5940
|
n.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), n.animateAll();
|
|
5941
5941
|
},
|
|
5942
|
-
drop:
|
|
5943
|
-
},
|
|
5942
|
+
drop: xu
|
|
5943
|
+
}, lc(Cu, { pluginName: "removeOnSpill" }), $.mount(new _u()), $.mount(Cu, Su);
|
|
5944
5944
|
//#endregion
|
|
5945
5945
|
//#region node_modules/@vueuse/integrations/dist/useSortable.js
|
|
5946
|
-
function
|
|
5946
|
+
function wu(e, t, n = {}) {
|
|
5947
5947
|
let r, { document: i = Oe, watchElement: a = !1, ...o } = n, s = { onUpdate: (e) => {
|
|
5948
|
-
|
|
5948
|
+
Du(t, e.oldIndex, e.newIndex, e);
|
|
5949
5949
|
} }, c = () => {
|
|
5950
5950
|
r?.destroy(), r = void 0;
|
|
5951
5951
|
}, l = (e) => {
|
|
@@ -5975,15 +5975,15 @@ function Cu(e, t, n = {}) {
|
|
|
5975
5975
|
option: d
|
|
5976
5976
|
};
|
|
5977
5977
|
}
|
|
5978
|
-
function
|
|
5978
|
+
function Tu(e, t, n) {
|
|
5979
5979
|
let r = e.children[n];
|
|
5980
5980
|
e.insertBefore(t, r);
|
|
5981
5981
|
}
|
|
5982
|
-
function
|
|
5982
|
+
function Eu(e) {
|
|
5983
5983
|
e.parentNode && e.parentNode.removeChild(e);
|
|
5984
5984
|
}
|
|
5985
|
-
function
|
|
5986
|
-
r != null && (
|
|
5985
|
+
function Du(e, t, n, r = null) {
|
|
5986
|
+
r != null && (Eu(r.item), Tu(r.from, r.item, t));
|
|
5987
5987
|
let i = _(e), a = i ? [...ae(e)] : ae(e);
|
|
5988
5988
|
if (n >= 0 && n < a.length) {
|
|
5989
5989
|
let r = a.splice(t, 1)[0];
|
|
@@ -5994,14 +5994,14 @@ function Eu(e, t, n, r = null) {
|
|
|
5994
5994
|
}
|
|
5995
5995
|
//#endregion
|
|
5996
5996
|
//#region src/labs/listEditor/utils/positions.ts
|
|
5997
|
-
var
|
|
5997
|
+
var Ou = (e) => [...e].sort((e, t) => e.position - t.position), ku = (e, t = []) => Ou(e).map((e) => {
|
|
5998
5998
|
let n = e;
|
|
5999
5999
|
for (let r of t) {
|
|
6000
6000
|
let i = e[r];
|
|
6001
|
-
Array.isArray(i) && (n === e && (n = { ...e }), n[r] =
|
|
6001
|
+
Array.isArray(i) && (n === e && (n = { ...e }), n[r] = ku(i, t));
|
|
6002
6002
|
}
|
|
6003
6003
|
return n;
|
|
6004
|
-
}),
|
|
6004
|
+
}), Au = (e, t = {}) => {
|
|
6005
6005
|
let n = t.positionField ?? "position", r = t.positionMultiplier ?? 1;
|
|
6006
6006
|
return e.map((e, t) => {
|
|
6007
6007
|
let i = (t + 1) * r;
|
|
@@ -6010,7 +6010,7 @@ var Du = (e) => [...e].sort((e, t) => e.position - t.position), Ou = (e, t = [])
|
|
|
6010
6010
|
[n]: i
|
|
6011
6011
|
};
|
|
6012
6012
|
});
|
|
6013
|
-
},
|
|
6013
|
+
}, ju = (e, t = {}) => {
|
|
6014
6014
|
let n = t.positionField ?? "position", r = e.map((e) => e[n]);
|
|
6015
6015
|
if (!r.every((e) => typeof e == "number" && Number.isFinite(e))) return console.warn(`[listEditor] position strategy "preserve-values" needs a finite numeric \`${n}\` on every row; found ` + JSON.stringify(r) + " — leaving positions untouched."), e;
|
|
6016
6016
|
new Set(r).size !== r.length && console.warn(`[listEditor] position strategy "preserve-values" found DUPLICATE \`${n}\` values ` + JSON.stringify(r) + " — the resulting order is not well defined relative to any interleaved collection.");
|
|
@@ -6019,10 +6019,10 @@ var Du = (e) => [...e].sort((e, t) => e.position - t.position), Ou = (e, t = [])
|
|
|
6019
6019
|
...e,
|
|
6020
6020
|
[n]: i[t]
|
|
6021
6021
|
});
|
|
6022
|
-
},
|
|
6022
|
+
}, Mu = 0, Nu = () => --Mu;
|
|
6023
6023
|
//#endregion
|
|
6024
6024
|
//#region src/labs/listEditor/composables/useListEditorController.ts
|
|
6025
|
-
function
|
|
6025
|
+
function Pu(e) {
|
|
6026
6026
|
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = e.position ?? "position", a = i !== !1, o = typeof i == "object" ? i.field : i === !1 ? "position" : i, s = typeof i == "object" && i.multiplier ? i.multiplier : 1, c = typeof i == "object" && i.strategy || "renumber", l = typeof i == "object" && i.strategyOverrides || {}, u = n(() => e.get()), d = n(() => ae(e.dirtyExclude) ?? []), f = (e, t) => e === "id" && typeof t == "number" && t < 0 ? void 0 : t, p = (e) => {
|
|
6027
6027
|
let t = { ...e };
|
|
6028
6028
|
a && delete t[o];
|
|
@@ -6047,7 +6047,7 @@ function Nu(e) {
|
|
|
6047
6047
|
return {
|
|
6048
6048
|
rows: e.map((e) => r(e) == null ? (n = !0, {
|
|
6049
6049
|
...e,
|
|
6050
|
-
[t]:
|
|
6050
|
+
[t]: Nu()
|
|
6051
6051
|
}) : e),
|
|
6052
6052
|
changed: n
|
|
6053
6053
|
};
|
|
@@ -6117,7 +6117,7 @@ function Nu(e) {
|
|
|
6117
6117
|
}), N = n(() => ee.value.size > 0), te = (e, t, n = !1) => {
|
|
6118
6118
|
let { invalid: r, warning: i } = A(e, t);
|
|
6119
6119
|
return r ? b.value ? "invalid" : n ? null : T(t) || D(t) ? "invalid" : null : i ? "warning" : null;
|
|
6120
|
-
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ?
|
|
6120
|
+
}, P = () => (b.value = !0, ee.value.size === 0), ne = (e, t) => a ? (l[t] ?? c) === "preserve-values" ? t === "move" ? ju(e, { positionField: o }) : e : Au(e, {
|
|
6121
6121
|
positionField: o,
|
|
6122
6122
|
positionMultiplier: s
|
|
6123
6123
|
}) : e, re = (t, n) => e.set(ne(t, n)), F = () => e.payload ? e.payload(e.get()) : ne(e.get(), "payload"), ie = () => {
|
|
@@ -6136,7 +6136,7 @@ function Nu(e) {
|
|
|
6136
6136
|
}, I = (n) => {
|
|
6137
6137
|
let i = n ?? e.get(), a = (e.normalizeSaved ? e.normalizeSaved(i) : i).map((n) => (e.commitKey ? e.commitKey(n, h.value.find((e) => r(e) === r(n))) : r(n)) == null && t ? {
|
|
6138
6138
|
...n,
|
|
6139
|
-
[t]:
|
|
6139
|
+
[t]: Nu()
|
|
6140
6140
|
} : n);
|
|
6141
6141
|
e.set(a), g(a), v.value = /* @__PURE__ */ new Set(), y.value = [], C.value = /* @__PURE__ */ new Map(), w.value = /* @__PURE__ */ new Set(), b.value = !1;
|
|
6142
6142
|
}, oe = (t) => {
|
|
@@ -6203,9 +6203,9 @@ function Nu(e) {
|
|
|
6203
6203
|
}
|
|
6204
6204
|
//#endregion
|
|
6205
6205
|
//#region src/labs/listEditor/composables/useNestedListEditor.ts
|
|
6206
|
-
var
|
|
6207
|
-
function
|
|
6208
|
-
let r = t.keyField ??
|
|
6206
|
+
var Fu = "id", Iu = "position", Lu = "parent";
|
|
6207
|
+
function Ru(e, t) {
|
|
6208
|
+
let r = t.keyField ?? Fu, i = t.getKey, a = t.positionField ?? Iu, o = t.parentField ?? Lu, s = t.positionMultiplier ?? 1, c = t.maxDepth, l = (e) => i ? i(e) : e[r], u = (e) => {
|
|
6209
6209
|
if (!e.children || e.children.length === 0) return 1;
|
|
6210
6210
|
let t = 0;
|
|
6211
6211
|
for (let n of e.children) {
|
|
@@ -6396,19 +6396,19 @@ function Lu(e, t) {
|
|
|
6396
6396
|
}
|
|
6397
6397
|
//#endregion
|
|
6398
6398
|
//#region src/labs/listEditor/composables/useNestedListEditorController.ts
|
|
6399
|
-
var
|
|
6399
|
+
var zu = (e) => {
|
|
6400
6400
|
let t = [], n = (e) => {
|
|
6401
6401
|
for (let r of e) t.push(r.data), r.children && r.children.length && n(r.children);
|
|
6402
6402
|
};
|
|
6403
6403
|
return n(e.children), t;
|
|
6404
|
-
},
|
|
6404
|
+
}, Bu = (e, t) => {
|
|
6405
6405
|
let n = (e) => {
|
|
6406
6406
|
for (let r of e) t(r), r.children && r.children.length && n(r.children);
|
|
6407
6407
|
};
|
|
6408
6408
|
n(e.children);
|
|
6409
6409
|
};
|
|
6410
|
-
function
|
|
6411
|
-
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = t ?? "id", a = e.position ?? "position", o = a !== !1, s = typeof a == "object" ? a.field : a === !1 ? "position" : a, c = typeof a == "object" && a.multiplier ? a.multiplier : 1, l = e.parentField ?? "parent", u =
|
|
6410
|
+
function Vu(e) {
|
|
6411
|
+
let t = typeof e.getKey == "function" ? null : e.getKey ?? "id", r = (n) => typeof e.getKey == "function" ? e.getKey(n) : n[t], i = t ?? "id", a = e.position ?? "position", o = a !== !1, s = typeof a == "object" ? a.field : a === !1 ? "position" : a, c = typeof a == "object" && a.multiplier ? a.multiplier : 1, l = e.parentField ?? "parent", u = Ru(n({
|
|
6412
6412
|
get: () => e.get(),
|
|
6413
6413
|
set: (t) => e.set(t)
|
|
6414
6414
|
}), {
|
|
@@ -6418,7 +6418,7 @@ function Bu(e) {
|
|
|
6418
6418
|
parentField: l,
|
|
6419
6419
|
positionMultiplier: c,
|
|
6420
6420
|
maxDepth: e.maxDepth
|
|
6421
|
-
}), d = n(() =>
|
|
6421
|
+
}), d = n(() => zu(e.get())), f = u.viewItems, p = n(() => ae(e.dirtyExclude) ?? []), m = (e) => {
|
|
6422
6422
|
let t = { ...e };
|
|
6423
6423
|
o && delete t[s], delete t[l];
|
|
6424
6424
|
for (let e of p.value) delete t[e];
|
|
@@ -6435,7 +6435,7 @@ function Bu(e) {
|
|
|
6435
6435
|
y(e.get()), L(p, () => {
|
|
6436
6436
|
if (!_.value) return;
|
|
6437
6437
|
let e = /* @__PURE__ */ new Map();
|
|
6438
|
-
|
|
6438
|
+
Bu(_.value, (t) => e.set(r(t.data), m(t.data))), h.value = e;
|
|
6439
6439
|
}, { flush: "sync" });
|
|
6440
6440
|
let b = M(!1), x = j(/* @__PURE__ */ new Map()), S = (t, n, r) => {
|
|
6441
6441
|
if (e.isDirty) {
|
|
@@ -6447,7 +6447,7 @@ function Bu(e) {
|
|
|
6447
6447
|
}, C = M(/* @__PURE__ */ new Map()), w = M(/* @__PURE__ */ new Set()), T = M(/* @__PURE__ */ new Set());
|
|
6448
6448
|
L(() => e.get(), (e) => {
|
|
6449
6449
|
let t = /* @__PURE__ */ new Set();
|
|
6450
|
-
|
|
6450
|
+
Bu(e, (e) => {
|
|
6451
6451
|
let n = r(e.data);
|
|
6452
6452
|
if (t.add(n), !h.value.has(n) && !C.value.has(n) && C.value.set(n, m(e.data)), !w.value.has(n)) {
|
|
6453
6453
|
let t = h.value.get(n) ?? C.value.get(n);
|
|
@@ -6467,12 +6467,12 @@ function Bu(e) {
|
|
|
6467
6467
|
let E = (e) => w.value.has(e), D = (e) => {
|
|
6468
6468
|
if (!_.value) return;
|
|
6469
6469
|
let t;
|
|
6470
|
-
return
|
|
6470
|
+
return Bu(_.value, (n) => {
|
|
6471
6471
|
t === void 0 && r(n.data) === e && (t = n.data);
|
|
6472
6472
|
}), t;
|
|
6473
6473
|
}, O = (t) => {
|
|
6474
6474
|
let n = !1;
|
|
6475
|
-
return
|
|
6475
|
+
return Bu(e.get(), (e) => {
|
|
6476
6476
|
!n && r(e.data) === t && (n = !0);
|
|
6477
6477
|
}), n;
|
|
6478
6478
|
}, k = n(() => {
|
|
@@ -6485,7 +6485,7 @@ function Bu(e) {
|
|
|
6485
6485
|
return n(e.get().children, null), t;
|
|
6486
6486
|
}), A = (e) => k.value.has(e), ee = n(() => {
|
|
6487
6487
|
let t = !1;
|
|
6488
|
-
return
|
|
6488
|
+
return Bu(e.get(), (e) => {
|
|
6489
6489
|
e.meta.dirty && (t = !0);
|
|
6490
6490
|
}), t;
|
|
6491
6491
|
}), N = n(() => k.value.size > 0 || T.value.size > 0 || ee.value), te = n(() => {
|
|
@@ -6512,7 +6512,7 @@ function Bu(e) {
|
|
|
6512
6512
|
};
|
|
6513
6513
|
}, ne = n(() => {
|
|
6514
6514
|
let t = /* @__PURE__ */ new Set();
|
|
6515
|
-
return
|
|
6515
|
+
return Bu(e.get(), (e) => {
|
|
6516
6516
|
let n = r(e.data);
|
|
6517
6517
|
P(e.data, n).invalid && t.add(n);
|
|
6518
6518
|
}), t;
|
|
@@ -6542,7 +6542,7 @@ function Bu(e) {
|
|
|
6542
6542
|
getChanges: () => {
|
|
6543
6543
|
let t = [], n = [], i = [], a = [], o = I(), s = /* @__PURE__ */ new Map();
|
|
6544
6544
|
for (let e of o) s.set(r(e), e);
|
|
6545
|
-
|
|
6545
|
+
Bu(e.get(), (e) => {
|
|
6546
6546
|
let o = r(e.data), c = s.get(o) ?? e.data, u = h.value.get(o);
|
|
6547
6547
|
if (u === void 0 ? t.push(c) : u !== m(e.data) && n.push(c), u !== void 0 && e.meta.dirty && u === m(e.data) && i.push(c), g.value.has(o)) {
|
|
6548
6548
|
let e = g.value.get(o) ?? null, t = c[l];
|
|
@@ -6564,9 +6564,9 @@ function Bu(e) {
|
|
|
6564
6564
|
},
|
|
6565
6565
|
commit: (n) => {
|
|
6566
6566
|
let a = n ?? e.get(), o = e.normalizeSaved ? e.normalizeSaved(a) : a, s = v(o);
|
|
6567
|
-
|
|
6567
|
+
Bu(s, (n) => {
|
|
6568
6568
|
let a = D(r(n.data));
|
|
6569
|
-
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] =
|
|
6569
|
+
(e.commitKey ? e.commitKey(n.data, a) : r(n.data)) == null && t && (n.data[i] = Nu()), n.meta.dirty = !1;
|
|
6570
6570
|
}), e.set(s), y(s), C.value = /* @__PURE__ */ new Map(), w.value = /* @__PURE__ */ new Set(), T.value = /* @__PURE__ */ new Set(), b.value = !1;
|
|
6571
6571
|
},
|
|
6572
6572
|
reset: (t) => {
|
|
@@ -6617,9 +6617,9 @@ function Bu(e) {
|
|
|
6617
6617
|
}
|
|
6618
6618
|
//#endregion
|
|
6619
6619
|
//#region src/labs/listEditor/composables/useListEditorStateScope.ts
|
|
6620
|
-
var
|
|
6621
|
-
function
|
|
6622
|
-
let e = `les${++
|
|
6620
|
+
var Hu = Symbol("le.stateScope"), Uu = 0;
|
|
6621
|
+
function Wu() {
|
|
6622
|
+
let e = `les${++Uu}`, t = /* @__PURE__ */ new Map(), n = d(), r = (e, n) => {
|
|
6623
6623
|
n.children?.dispose(), n.scope.stop(), t.delete(e);
|
|
6624
6624
|
}, i = {
|
|
6625
6625
|
id: e,
|
|
@@ -6641,7 +6641,7 @@ function Uu() {
|
|
|
6641
6641
|
},
|
|
6642
6642
|
childScope(e) {
|
|
6643
6643
|
let n = t.get(e);
|
|
6644
|
-
return n ? (n.children ||= n.scope.run(() =>
|
|
6644
|
+
return n ? (n.children ||= n.scope.run(() => Wu()) ?? null, n.children) : null;
|
|
6645
6645
|
},
|
|
6646
6646
|
prefixFor(t) {
|
|
6647
6647
|
return `${e}:${String(t)}`;
|
|
@@ -6666,11 +6666,11 @@ function Uu() {
|
|
|
6666
6666
|
};
|
|
6667
6667
|
return p() && D(() => i.dispose()), i;
|
|
6668
6668
|
}
|
|
6669
|
-
function
|
|
6670
|
-
let t = e ??
|
|
6671
|
-
return A(
|
|
6669
|
+
function Gu(e) {
|
|
6670
|
+
let t = e ?? Wu();
|
|
6671
|
+
return A(Hu, t), t;
|
|
6672
6672
|
}
|
|
6673
|
-
var
|
|
6673
|
+
var Ku = (e) => {
|
|
6674
6674
|
let t = e.get();
|
|
6675
6675
|
return {
|
|
6676
6676
|
...e,
|
|
@@ -6678,10 +6678,10 @@ var Gu = (e) => {
|
|
|
6678
6678
|
set: () => void 0
|
|
6679
6679
|
};
|
|
6680
6680
|
};
|
|
6681
|
-
function
|
|
6682
|
-
let n = h(
|
|
6681
|
+
function qu(e, t) {
|
|
6682
|
+
let n = h(Hu, null);
|
|
6683
6683
|
if (!e || !n) return null;
|
|
6684
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
6684
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => Pu({
|
|
6685
6685
|
get: () => e.value.get(),
|
|
6686
6686
|
set: (t) => e.value.set(t),
|
|
6687
6687
|
factory: (() => e.value.factory?.()),
|
|
@@ -6690,15 +6690,15 @@ function Ku(e, t) {
|
|
|
6690
6690
|
dirtyExclude: () => ae(e.value.dirtyExclude) ?? [],
|
|
6691
6691
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
6692
6692
|
}), r);
|
|
6693
|
-
return f() && T(() => n.release(e, r,
|
|
6693
|
+
return f() && T(() => n.release(e, r, Ku)), {
|
|
6694
6694
|
handle: i,
|
|
6695
6695
|
childScope: n.childScope(e)
|
|
6696
6696
|
};
|
|
6697
6697
|
}
|
|
6698
|
-
function
|
|
6699
|
-
let n = h(
|
|
6698
|
+
function Ju(e, t) {
|
|
6699
|
+
let n = h(Hu, null);
|
|
6700
6700
|
if (!e || !n) return null;
|
|
6701
|
-
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) =>
|
|
6701
|
+
let r = f()?.uid ?? null, i = n.resolve(e, t, (e) => Vu({
|
|
6702
6702
|
get: () => e.value.get(),
|
|
6703
6703
|
set: (t) => e.value.set(t),
|
|
6704
6704
|
factory: (() => e.value.factory?.()),
|
|
@@ -6709,14 +6709,14 @@ function qu(e, t) {
|
|
|
6709
6709
|
dirtyExclude: () => ae(e.value.dirtyExclude) ?? [],
|
|
6710
6710
|
validate: (t) => e.value.validate?.(t) ?? !0
|
|
6711
6711
|
}), r);
|
|
6712
|
-
return f() && T(() => n.release(e, r,
|
|
6712
|
+
return f() && T(() => n.release(e, r, Ku)), {
|
|
6713
6713
|
handle: i,
|
|
6714
6714
|
childScope: n.childScope(e)
|
|
6715
6715
|
};
|
|
6716
6716
|
}
|
|
6717
6717
|
//#endregion
|
|
6718
6718
|
//#region src/labs/listEditor/composables/resolveCompactText.ts
|
|
6719
|
-
function
|
|
6719
|
+
function Yu(e, t) {
|
|
6720
6720
|
if (!t.compactField) return "";
|
|
6721
6721
|
let n = e;
|
|
6722
6722
|
for (let e of t.compactField.split(".")) {
|
|
@@ -6727,8 +6727,8 @@ function Ju(e, t) {
|
|
|
6727
6727
|
}
|
|
6728
6728
|
//#endregion
|
|
6729
6729
|
//#region src/labs/unsavedGuard/useUnsavedSection.ts
|
|
6730
|
-
var
|
|
6731
|
-
function
|
|
6730
|
+
var Xu = Symbol("unsaved.sections");
|
|
6731
|
+
function Zu() {
|
|
6732
6732
|
let e = j(/* @__PURE__ */ new Map());
|
|
6733
6733
|
return {
|
|
6734
6734
|
register(t, n) {
|
|
@@ -6744,12 +6744,12 @@ function Xu() {
|
|
|
6744
6744
|
})
|
|
6745
6745
|
};
|
|
6746
6746
|
}
|
|
6747
|
-
function
|
|
6748
|
-
let e =
|
|
6749
|
-
return f() && A(
|
|
6747
|
+
function Qu() {
|
|
6748
|
+
let e = Zu();
|
|
6749
|
+
return f() && A(Xu, e), e;
|
|
6750
6750
|
}
|
|
6751
|
-
function
|
|
6752
|
-
let t = h(
|
|
6751
|
+
function $u(e) {
|
|
6752
|
+
let t = h(Xu, null);
|
|
6753
6753
|
if (!t || !f()) return;
|
|
6754
6754
|
let r = Symbol("unsaved.section"), i = n(() => {
|
|
6755
6755
|
let t = e();
|
|
@@ -6759,7 +6759,7 @@ function Qu(e) {
|
|
|
6759
6759
|
}
|
|
6760
6760
|
//#endregion
|
|
6761
6761
|
//#region src/labs/listEditor/composables/useDeleteDialog.ts
|
|
6762
|
-
function
|
|
6762
|
+
function ed(e) {
|
|
6763
6763
|
let t = M(!1), n = M(null), r = M(!1), i = M(null), a = async (t) => {
|
|
6764
6764
|
if (i.value = null, e.onDeleteConfirm && !await e.onDeleteConfirm(t.raw)) return !1;
|
|
6765
6765
|
if (e.onDelete) {
|
|
@@ -6796,7 +6796,7 @@ function $u(e) {
|
|
|
6796
6796
|
}
|
|
6797
6797
|
//#endregion
|
|
6798
6798
|
//#region src/labs/listEditor/composables/useInlineEditing.ts
|
|
6799
|
-
function
|
|
6799
|
+
function td(e) {
|
|
6800
6800
|
let t = M(/* @__PURE__ */ new Set()), n = M(/* @__PURE__ */ new Map()), r = M(!1);
|
|
6801
6801
|
return L(e.watchKeys, (i, a) => {
|
|
6802
6802
|
if (!r.value) return;
|
|
@@ -6839,14 +6839,14 @@ function ed(e) {
|
|
|
6839
6839
|
}
|
|
6840
6840
|
//#endregion
|
|
6841
6841
|
//#region src/labs/listEditor/utils/revealInvalidRows.ts
|
|
6842
|
-
function
|
|
6842
|
+
function nd(e, t) {
|
|
6843
6843
|
let n = e.validateAll();
|
|
6844
6844
|
if (!n) for (let n of e.invalidKeys.value) t(n);
|
|
6845
6845
|
return n;
|
|
6846
6846
|
}
|
|
6847
6847
|
//#endregion
|
|
6848
6848
|
//#region src/labs/listEditor/composables/useListEditorScopeValidity.ts
|
|
6849
|
-
function
|
|
6849
|
+
function rd(e) {
|
|
6850
6850
|
let { hasErrors: t, validationScope: n, reveal: r, validateProvided: i } = e;
|
|
6851
6851
|
if (n === void 0 || n === !1) return;
|
|
6852
6852
|
n === !0 && console.warn("[list-editor] `:validation-scope=\"true\"` uses vuelidate’s GLOBAL scope. If your save gate collects a NAMED scope (useVuelidate({ $scope: someSymbol })), this editor’s validity is NOT collected by it and the gate won’t block. Pass the SAME scope value your collector uses."), i || console.warn("[list-editor] `:validation-scope` is set but `:validate` is missing. The scope save-gate bridges the editor’s aggregate `hasErrors`, which is driven only by `:validate`; without it the gate never blocks (hasErrors stays false). Pass `:validate` so collapsed/invalid rows block the consumer save, or drop `:validation-scope` if you gate validity yourself.");
|
|
@@ -6857,8 +6857,8 @@ function nd(e) {
|
|
|
6857
6857
|
}
|
|
6858
6858
|
//#endregion
|
|
6859
6859
|
//#region src/labs/listEditor/composables/useReorderMode.ts
|
|
6860
|
-
var
|
|
6861
|
-
function
|
|
6860
|
+
var id = Symbol("le.sharedReorderRegistry");
|
|
6861
|
+
function ad(e) {
|
|
6862
6862
|
let t = M(!1), r = M(null), i = n(() => e.mode.value === "reorder"), a = n(() => e.movedKeys.value.size), o = n(() => a.value > 0), s = () => e.clonePayload ? e.clonePayload(e.modelValue.value) : e.cloneModel(e.modelValue.value), c = () => e.embedded?.value === !0;
|
|
6863
6863
|
return L(e.mode, (n, i) => {
|
|
6864
6864
|
n === "reorder" && i !== "reorder" && (!c() && !e.snapshot.value && (e.snapshot.value = e.cloneModel(e.modelValue.value)), e.movedKeys.value = /* @__PURE__ */ new Set(), e.onExternalEnter?.()), n === "view" && i === "reorder" && (e.snapshot.value ? (e.snapshot.value = null, e.movedKeys.value = /* @__PURE__ */ new Set(), r.value = null, t.value = !1) : c() && (e.movedKeys.value = /* @__PURE__ */ new Set(), r.value = null, t.value = !1, e.onEmbeddedExit?.()));
|
|
@@ -6893,7 +6893,7 @@ function id(e) {
|
|
|
6893
6893
|
}
|
|
6894
6894
|
//#endregion
|
|
6895
6895
|
//#region src/labs/listEditor/internal/LeDeleteDialog.vue
|
|
6896
|
-
var
|
|
6896
|
+
var od = /* @__PURE__ */ u({
|
|
6897
6897
|
__name: "LeDeleteDialog",
|
|
6898
6898
|
props: /*@__PURE__*/ y({
|
|
6899
6899
|
title: {},
|
|
@@ -6970,10 +6970,10 @@ var ad = /* @__PURE__ */ u({
|
|
|
6970
6970
|
_: 1
|
|
6971
6971
|
}, 8, ["modelValue", "persistent"]));
|
|
6972
6972
|
}
|
|
6973
|
-
}),
|
|
6973
|
+
}), sd = {
|
|
6974
6974
|
key: 0,
|
|
6975
6975
|
class: "text-body-medium mb-3"
|
|
6976
|
-
},
|
|
6976
|
+
}, cd = /* @__PURE__ */ u({
|
|
6977
6977
|
__name: "LeMoveToPositionDialog",
|
|
6978
6978
|
props: /*@__PURE__*/ y({
|
|
6979
6979
|
total: {},
|
|
@@ -7012,7 +7012,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7012
7012
|
_: 1
|
|
7013
7013
|
}),
|
|
7014
7014
|
l(Ce, null, {
|
|
7015
|
-
default: R(() => [e.itemLabel ? (k(), a("p",
|
|
7015
|
+
default: R(() => [e.itemLabel ? (k(), a("p", sd, F(I(d)("common.sortable.moveToPosition.itemDescription", { label: e.itemLabel })), 1)) : i("", !0), l(Be, {
|
|
7016
7016
|
modelValue: f.value,
|
|
7017
7017
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e,
|
|
7018
7018
|
modelModifiers: { number: !0 },
|
|
@@ -7067,7 +7067,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7067
7067
|
_: 1
|
|
7068
7068
|
}, 8, ["modelValue"]));
|
|
7069
7069
|
}
|
|
7070
|
-
}),
|
|
7070
|
+
}), ld = { class: "a-le-empty" }, ud = { class: "a-le-empty-title" }, dd = /* @__PURE__ */ u({
|
|
7071
7071
|
__name: "LeEmptyState",
|
|
7072
7072
|
props: {
|
|
7073
7073
|
title: {},
|
|
@@ -7080,7 +7080,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7080
7080
|
emits: ["add"],
|
|
7081
7081
|
setup(e) {
|
|
7082
7082
|
let { t } = me();
|
|
7083
|
-
return (n, s) => (k(), a("div",
|
|
7083
|
+
return (n, s) => (k(), a("div", ld, [o("h3", ud, F(e.title), 1), e.addLabel && e.canAdd ? (k(), r(V, {
|
|
7084
7084
|
key: 0,
|
|
7085
7085
|
color: "primary",
|
|
7086
7086
|
variant: "flat",
|
|
@@ -7091,16 +7091,16 @@ var ad = /* @__PURE__ */ u({
|
|
|
7091
7091
|
_: 1
|
|
7092
7092
|
})) : i("", !0)]));
|
|
7093
7093
|
}
|
|
7094
|
-
}),
|
|
7094
|
+
}), fd = { class: "a-le-toolbar-status" }, pd = {
|
|
7095
7095
|
key: 1,
|
|
7096
7096
|
class: "text-body-small"
|
|
7097
|
-
},
|
|
7097
|
+
}, md = {
|
|
7098
7098
|
key: 2,
|
|
7099
7099
|
class: "text-body-small"
|
|
7100
|
-
},
|
|
7100
|
+
}, hd = {
|
|
7101
7101
|
key: 3,
|
|
7102
7102
|
class: "text-body-small text-medium-emphasis"
|
|
7103
|
-
},
|
|
7103
|
+
}, gd = /* @__PURE__ */ u({
|
|
7104
7104
|
__name: "LeStatus",
|
|
7105
7105
|
props: {
|
|
7106
7106
|
hasPendingChanges: { type: Boolean },
|
|
@@ -7109,14 +7109,14 @@ var ad = /* @__PURE__ */ u({
|
|
|
7109
7109
|
},
|
|
7110
7110
|
setup(e) {
|
|
7111
7111
|
let { t } = me();
|
|
7112
|
-
return (n, o) => (k(), a("div",
|
|
7112
|
+
return (n, o) => (k(), a("div", fd, [e.hasPendingChanges ? (k(), r(B, {
|
|
7113
7113
|
key: 0,
|
|
7114
7114
|
icon: "mdi-circle-medium",
|
|
7115
7115
|
color: "warning",
|
|
7116
7116
|
size: "18"
|
|
7117
|
-
})) : i("", !0), e.error ? (k(), a("span",
|
|
7117
|
+
})) : i("", !0), e.error ? (k(), a("span", pd, F(e.error), 1)) : e.hasPendingChanges ? (k(), a("span", md, F(I(t)("common.sortable.pendingChanges", { count: e.pendingCount })), 1)) : (k(), a("span", hd, F(I(t)("common.sortable.noPendingChanges")), 1))]));
|
|
7118
7118
|
}
|
|
7119
|
-
}),
|
|
7119
|
+
}), _d = ["title"], vd = /* @__PURE__ */ u({
|
|
7120
7120
|
__name: "LeUnsavedLabel",
|
|
7121
7121
|
props: {
|
|
7122
7122
|
label: { default: null },
|
|
@@ -7133,9 +7133,9 @@ var ad = /* @__PURE__ */ u({
|
|
|
7133
7133
|
}, [l(B, {
|
|
7134
7134
|
icon: "mdi-circle-medium",
|
|
7135
7135
|
size: "12"
|
|
7136
|
-
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10,
|
|
7136
|
+
}), t.dotOnly ? i("", !0) : (k(), a(e, { key: 0 }, [c(F(t.label ?? I(n)("common.sortable.unsaved")), 1)], 64))], 10, _d));
|
|
7137
7137
|
}
|
|
7138
|
-
}),
|
|
7138
|
+
}), yd = /* @__PURE__ */ u({
|
|
7139
7139
|
__name: "LeDragHandle",
|
|
7140
7140
|
setup(e) {
|
|
7141
7141
|
return (e, t) => (k(), r(B, {
|
|
@@ -7144,45 +7144,45 @@ var ad = /* @__PURE__ */ u({
|
|
|
7144
7144
|
size: "20"
|
|
7145
7145
|
}));
|
|
7146
7146
|
}
|
|
7147
|
-
}),
|
|
7147
|
+
}), bd = "a-le-row--ghost", xd = "a-le-row--chosen", Sd = "a-le-row--drag", Cd = { class: "a-le-card" }, wd = {
|
|
7148
7148
|
key: 0,
|
|
7149
7149
|
class: "a-le-header"
|
|
7150
|
-
},
|
|
7150
|
+
}, Td = {
|
|
7151
7151
|
key: 0,
|
|
7152
7152
|
class: "a-le-title-heading"
|
|
7153
|
-
},
|
|
7153
|
+
}, Ed = ["data-unsaved-count"], Dd = { class: "a-le-header-actions" }, Od = {
|
|
7154
7154
|
key: 1,
|
|
7155
7155
|
class: "a-le-state a-le-state--loading"
|
|
7156
|
-
},
|
|
7156
|
+
}, kd = {
|
|
7157
7157
|
key: 2,
|
|
7158
7158
|
class: "a-le-state a-le-state--error"
|
|
7159
|
-
},
|
|
7159
|
+
}, Ad = {
|
|
7160
7160
|
key: 3,
|
|
7161
7161
|
class: "a-le-view-body"
|
|
7162
|
-
},
|
|
7162
|
+
}, jd = {
|
|
7163
7163
|
key: 4,
|
|
7164
7164
|
class: "a-le-state a-le-state--empty"
|
|
7165
|
-
},
|
|
7165
|
+
}, Md = [
|
|
7166
7166
|
"data-id",
|
|
7167
7167
|
"tabindex",
|
|
7168
7168
|
"onKeydown"
|
|
7169
|
-
],
|
|
7169
|
+
], Nd = ["onClick"], Pd = { class: "a-le-row-main" }, Fd = { class: "a-le-title" }, Id = {
|
|
7170
7170
|
key: 1,
|
|
7171
7171
|
class: "a-le-status"
|
|
7172
|
-
},
|
|
7172
|
+
}, Ld = {
|
|
7173
7173
|
key: 0,
|
|
7174
7174
|
class: "a-le-status-badge"
|
|
7175
|
-
},
|
|
7175
|
+
}, Rd = { class: "a-le-actions" }, zd = { class: "a-le-row-body" }, Bd = { class: "a-le-form" }, Vd = {
|
|
7176
7176
|
key: 0,
|
|
7177
7177
|
class: "a-le-row-footer"
|
|
7178
|
-
},
|
|
7178
|
+
}, Hd = {
|
|
7179
7179
|
key: 1,
|
|
7180
7180
|
class: "a-le-row-body"
|
|
7181
|
-
},
|
|
7181
|
+
}, Ud = { class: "a-le-form" }, Wd = {
|
|
7182
7182
|
class: "a-le-sr-only",
|
|
7183
7183
|
"aria-live": "polite",
|
|
7184
7184
|
role: "status"
|
|
7185
|
-
},
|
|
7185
|
+
}, Gd = /* @__PURE__ */ u({
|
|
7186
7186
|
__name: "ASortableListEditor",
|
|
7187
7187
|
props: /*@__PURE__*/ y({
|
|
7188
7188
|
factory: {
|
|
@@ -7333,7 +7333,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7333
7333
|
"reorder-end"
|
|
7334
7334
|
], ["update:modelValue", "update:mode"]),
|
|
7335
7335
|
setup(t, { expose: s, emit: u }) {
|
|
7336
|
-
let d = t, f = u, p = oe(t, "modelValue"), g = oe(t, "mode"), { t: v } = me(), y = se(), w = ce("rootEl"), { isNarrow: E } =
|
|
7336
|
+
let d = t, f = u, p = oe(t, "modelValue"), g = oe(t, "mode"), { t: v } = me(), y = se(), w = ce("rootEl"), { isNarrow: E } = ic(w), D = ac(), O = oc(), j = {
|
|
7337
7337
|
get: () => p.value,
|
|
7338
7338
|
set: (e) => p.value = e,
|
|
7339
7339
|
factory: d.factory,
|
|
@@ -7341,7 +7341,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7341
7341
|
position: d.position,
|
|
7342
7342
|
dirtyExclude: () => d.dirtyExclude ?? [],
|
|
7343
7343
|
validate: d.validate
|
|
7344
|
-
}, te = d.editor ? null :
|
|
7344
|
+
}, te = d.editor ? null : qu(d.stateKey, j), P = d.editor ?? te?.handle ?? Pu(j), ie = d.getKey ?? "id", ae = Gu(te?.childScope ?? null), le = (e) => typeof ie == "function" ? ie(e) : e[ie], ue = n(() => {
|
|
7345
7345
|
let e = d.position;
|
|
7346
7346
|
return e === void 0 || e === !1 ? "position" : typeof e == "object" ? e.field : e;
|
|
7347
7347
|
}), de = n(() => p.value.map((e, t) => ({
|
|
@@ -7351,7 +7351,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7351
7351
|
position: e[ue.value]
|
|
7352
7352
|
})));
|
|
7353
7353
|
L(() => de.value.map((e) => String(e.key)).join("|"), () => ae.retainOwners(de.value.map((e) => e.key)), { flush: "post" });
|
|
7354
|
-
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), he = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), xe = re(null), Se = ce("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: De, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } =
|
|
7354
|
+
let fe = M(/* @__PURE__ */ new Set()), pe = M(/* @__PURE__ */ new Set()), he = M(/* @__PURE__ */ new Set()), ge = M(/* @__PURE__ */ new Set()), _e = M(/* @__PURE__ */ new Set()), ve = M(/* @__PURE__ */ new Set()), xe = re(null), Se = ce("rowsContainer"), Ce = n(() => !d.chips && !!y.item), we = n(() => !d.chips && !!y["item-readonly"]), { editingKeys: Te, editingSnapshots: De, clearEditing: Oe, beginEdit: ke, cancelEdit: Ae, commitEdit: je, closeEdit: Me, requestAutoOpen: Ne } = td({
|
|
7355
7355
|
rowsContainer: Se,
|
|
7356
7356
|
rowSelector: ".a-le-row",
|
|
7357
7357
|
isInlineEdit: Ce,
|
|
@@ -7364,7 +7364,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7364
7364
|
afterAutoOpen: (e) => {
|
|
7365
7365
|
fe.value.delete(e);
|
|
7366
7366
|
}
|
|
7367
|
-
}), Pe = n(() => !d.readonly && !d.disabled && !d.loading), Fe = n(() => Pe.value && !d.disableReorder && p.value.length > 1), Ie = n(() => d.embedded), Le = n(() => d.allowEditInReorder), { applying: Re, applyError: ze, hasPendingChanges: Be, movedCount: Ve, reorderMode: He, enterReorderMode: qe, cancelReorderMode: Je, applyReorder: Ye } =
|
|
7367
|
+
}), Pe = n(() => !d.readonly && !d.disabled && !d.loading), Fe = n(() => Pe.value && !d.disableReorder && p.value.length > 1), Ie = n(() => d.embedded), Le = n(() => d.allowEditInReorder), { applying: Re, applyError: ze, hasPendingChanges: Be, movedCount: Ve, reorderMode: He, enterReorderMode: qe, cancelReorderMode: Je, applyReorder: Ye } = ad({
|
|
7368
7368
|
mode: g,
|
|
7369
7369
|
snapshot: xe,
|
|
7370
7370
|
movedKeys: pe,
|
|
@@ -7402,7 +7402,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7402
7402
|
reorderEnd: () => f("reorder-end")
|
|
7403
7403
|
}
|
|
7404
7404
|
}), Xe = d.embedded ? null : ne(/* @__PURE__ */ new Map());
|
|
7405
|
-
Xe && A(
|
|
7405
|
+
Xe && A(id, {
|
|
7406
7406
|
register: (e, t, n, r) => {
|
|
7407
7407
|
Xe.set(e, {
|
|
7408
7408
|
count: t,
|
|
@@ -7426,7 +7426,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7426
7426
|
return !1;
|
|
7427
7427
|
}), $e = n(() => Ze.value + he.value.size + _e.value.size), et = n(() => Qe.value || he.value.size > 0 || _e.value.size > 0);
|
|
7428
7428
|
if (d.embedded) {
|
|
7429
|
-
let e = h(
|
|
7429
|
+
let e = h(id, null);
|
|
7430
7430
|
if (e) {
|
|
7431
7431
|
let t = Symbol("le.embedded");
|
|
7432
7432
|
e.register(t, $e, et, () => xt()), T(() => e.unregister(t));
|
|
@@ -7465,17 +7465,17 @@ var ad = /* @__PURE__ */ u({
|
|
|
7465
7465
|
t && ke(t);
|
|
7466
7466
|
}, bt = () => {
|
|
7467
7467
|
if (Ce.value) for (let e of gt.value) ke(e);
|
|
7468
|
-
}, xt = () =>
|
|
7468
|
+
}, xt = () => nd(P, (e) => {
|
|
7469
7469
|
let t = de.value.find((t) => t.key === e);
|
|
7470
7470
|
t && ke(t);
|
|
7471
7471
|
});
|
|
7472
|
-
|
|
7472
|
+
rd({
|
|
7473
7473
|
hasErrors: P.hasErrors,
|
|
7474
7474
|
validationScope: d.validationScope,
|
|
7475
7475
|
validateProvided: d.validate !== void 0,
|
|
7476
7476
|
reveal: xt
|
|
7477
7477
|
});
|
|
7478
|
-
let St =
|
|
7478
|
+
let St = sc({
|
|
7479
7479
|
viewItems: n(() => gt.value.map((e) => ({ key: e.key }))),
|
|
7480
7480
|
variant: "sortable",
|
|
7481
7481
|
isReorderMode: He,
|
|
@@ -7511,16 +7511,16 @@ var ad = /* @__PURE__ */ u({
|
|
|
7511
7511
|
}, Dt = (e) => {
|
|
7512
7512
|
let t = wt.value;
|
|
7513
7513
|
wt.value = null, t && e !== t.index && (P.moveItem(t.index, e), mt(t.key));
|
|
7514
|
-
}, Ot = (e) =>
|
|
7514
|
+
}, Ot = (e) => Yu(e, { compactField: d.compactField }), kt = wu(Se, p, {
|
|
7515
7515
|
watchElement: !0,
|
|
7516
7516
|
handle: ".a-le-drag-handle",
|
|
7517
7517
|
animation: 150,
|
|
7518
7518
|
forceFallback: !0,
|
|
7519
7519
|
fallbackTolerance: 3,
|
|
7520
7520
|
fallbackOnBody: !0,
|
|
7521
|
-
ghostClass:
|
|
7522
|
-
chosenClass:
|
|
7523
|
-
dragClass:
|
|
7521
|
+
ghostClass: bd,
|
|
7522
|
+
chosenClass: xd,
|
|
7523
|
+
dragClass: Sd,
|
|
7524
7524
|
disabled: !nt.value,
|
|
7525
7525
|
onUpdate: (e) => {
|
|
7526
7526
|
let { oldIndex: t, newIndex: n, item: r, from: i } = e;
|
|
@@ -7569,7 +7569,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7569
7569
|
}
|
|
7570
7570
|
d.readonly && we.value ? Nt(e) : Mt(e);
|
|
7571
7571
|
}
|
|
7572
|
-
}, { deleteDialog: U, deleteInFlight: W, deleteError: Ft, onDeleteClick: It, onDeleteDialogConfirm: G, onDeleteDialogCancel: Lt } =
|
|
7572
|
+
}, { deleteDialog: U, deleteInFlight: W, deleteError: Ft, onDeleteClick: It, onDeleteDialogConfirm: G, onDeleteDialogCancel: Lt } = ed({
|
|
7573
7573
|
onDeleteConfirm: (e) => !d.onDeleteConfirm || d.onDeleteConfirm(e),
|
|
7574
7574
|
onDelete: (e) => d.onDelete?.(e),
|
|
7575
7575
|
onDeleted: (e) => {
|
|
@@ -7696,7 +7696,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
7696
7696
|
exitReorderMode: Je
|
|
7697
7697
|
}
|
|
7698
7698
|
}));
|
|
7699
|
-
return
|
|
7699
|
+
return $u(() => d.unsavedSectionLabel && !d.disableUnsaved ? {
|
|
7700
7700
|
label: d.unsavedSectionLabel,
|
|
7701
7701
|
dirty: P.hasUnsaved.value
|
|
7702
7702
|
} : []), s({
|
|
@@ -7733,16 +7733,16 @@ var ad = /* @__PURE__ */ u({
|
|
|
7733
7733
|
}
|
|
7734
7734
|
]])
|
|
7735
7735
|
}, [
|
|
7736
|
-
o("div",
|
|
7737
|
-
dt.value ? (k(), a("div",
|
|
7738
|
-
t.title ? (k(), a("h3",
|
|
7736
|
+
o("div", Cd, [
|
|
7737
|
+
dt.value ? (k(), a("div", wd, [N(n.$slots, "header", b({ title: t.title }, Qt.value), () => [
|
|
7738
|
+
t.title ? (k(), a("h3", Td, F(t.title), 1)) : i("", !0),
|
|
7739
7739
|
!I(He) && ut.value ? (k(), a("span", {
|
|
7740
7740
|
key: 1,
|
|
7741
7741
|
class: "a-le-unsaved-count",
|
|
7742
7742
|
"data-unsaved-count": I(lt)
|
|
7743
|
-
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9,
|
|
7744
|
-
o("div",
|
|
7745
|
-
l(
|
|
7743
|
+
}, F(I(v)("common.sortable.pendingChanges", { count: I(lt) })), 9, Ed)) : i("", !0),
|
|
7744
|
+
o("div", Dd, [I(He) && !t.embedded ? N(n.$slots, "reorder-toolbar", C(m(Zt.value)), () => [
|
|
7745
|
+
l(gd, {
|
|
7746
7746
|
class: S({ "a-le-toolbar-status--pending": et.value }),
|
|
7747
7747
|
"has-pending-changes": et.value,
|
|
7748
7748
|
"pending-count": $e.value,
|
|
@@ -7809,11 +7809,11 @@ var ad = /* @__PURE__ */ u({
|
|
|
7809
7809
|
_: 1
|
|
7810
7810
|
}, 8, ["disabled", "onClick"]))], void 0, 1) : i("", !0)])
|
|
7811
7811
|
])])) : i("", !0),
|
|
7812
|
-
t.loading ? (k(), a("div",
|
|
7812
|
+
t.loading ? (k(), a("div", Od, [l(be, {
|
|
7813
7813
|
indeterminate: "",
|
|
7814
7814
|
color: "primary",
|
|
7815
7815
|
size: "32"
|
|
7816
|
-
})])) : t.error ? (k(), a("div",
|
|
7816
|
+
})])) : t.error ? (k(), a("div", kd, [l(ye, {
|
|
7817
7817
|
type: "error",
|
|
7818
7818
|
variant: "tonal",
|
|
7819
7819
|
density: "compact",
|
|
@@ -7821,15 +7821,15 @@ var ad = /* @__PURE__ */ u({
|
|
|
7821
7821
|
}, {
|
|
7822
7822
|
default: R(() => [c(F(t.error), 1)]),
|
|
7823
7823
|
_: 1
|
|
7824
|
-
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div",
|
|
7824
|
+
})])) : !I(He) && n.$slots["view-body"] ? (k(), a("div", Ad, [N(n.$slots, "view-body", {
|
|
7825
7825
|
items: p.value,
|
|
7826
7826
|
mode: g.value,
|
|
7827
7827
|
actions: { enterReorderMode: I(qe) }
|
|
7828
|
-
})])) : _t.value ? (k(), a("div",
|
|
7828
|
+
})])) : _t.value ? (k(), a("div", jd, [N(n.$slots, "empty", {
|
|
7829
7829
|
readonly: t.readonly,
|
|
7830
7830
|
disabled: t.disabled,
|
|
7831
7831
|
actions: { add: At }
|
|
7832
|
-
}, () => [l(
|
|
7832
|
+
}, () => [l(dd, {
|
|
7833
7833
|
title: it.value,
|
|
7834
7834
|
"add-label": rt.value,
|
|
7835
7835
|
"can-add": tt.value,
|
|
@@ -7867,13 +7867,13 @@ var ad = /* @__PURE__ */ u({
|
|
|
7867
7867
|
class: "a-le-row-header",
|
|
7868
7868
|
onClick: (e) => H(u)
|
|
7869
7869
|
}, [
|
|
7870
|
-
nt.value ? (k(), r(
|
|
7871
|
-
o("div",
|
|
7870
|
+
nt.value ? (k(), r(yd, { key: 0 })) : i("", !0),
|
|
7871
|
+
o("div", Pd, [N(n.$slots, "item-compact", b({ ref_for: !0 }, Xt(u)), () => [o("span", Fd, F(Ot(u.raw)), 1)]), u.unsaved ? (k(), r(vd, {
|
|
7872
7872
|
key: 0,
|
|
7873
7873
|
"dot-only": t.chips
|
|
7874
7874
|
}, null, 8, ["dot-only"])) : i("", !0)]),
|
|
7875
|
-
!t.chips && !I(He) ? (k(), a("div",
|
|
7876
|
-
o("div",
|
|
7875
|
+
!t.chips && !I(He) ? (k(), a("div", Id, [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", Ld, F(u.raw[t.statusField]), 1)) : i("", !0)])])) : i("", !0),
|
|
7876
|
+
o("div", Rd, [N(n.$slots, "item-actions", b({ ref_for: !0 }, Xt(u)), () => [t.chips && Pe.value ? (k(), a(e, { key: 0 }, [(!nt.value || I(O)) && !t.disableReorder ? (k(), a(e, { key: 0 }, [l(V, {
|
|
7877
7877
|
icon: "",
|
|
7878
7878
|
size: "x-small",
|
|
7879
7879
|
variant: "text",
|
|
@@ -8118,7 +8118,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
8118
8118
|
_: 2
|
|
8119
8119
|
}, 1024)) : i("", !0)
|
|
8120
8120
|
], 64))])])
|
|
8121
|
-
], 8,
|
|
8121
|
+
], 8, Nd), u.editing && (t.allowEditInReorder || !I(He)) && n.$slots.item ? (k(), a(e, { key: 0 }, [o("div", zd, [o("div", Bd, [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", Vd, [
|
|
8122
8122
|
s[2] ||= o("div", { class: "a-le-row-footer-spacer" }, null, -1),
|
|
8123
8123
|
l(V, {
|
|
8124
8124
|
variant: "text",
|
|
@@ -8138,7 +8138,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
8138
8138
|
default: R(() => [c(F(I(v)("common.button.save")), 1)]),
|
|
8139
8139
|
_: 1
|
|
8140
8140
|
}, 8, ["disabled", "onClick"])
|
|
8141
|
-
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div",
|
|
8141
|
+
])) : i("", !0)])], 64)) : n.$slots["item-readonly"] && (t.readonly || u.expanded) && (t.allowEditInReorder || !I(He)) ? (k(), a("div", Hd, [o("div", Ud, [N(n.$slots, "item-readonly", b({ ref_for: !0 }, Xt(u)))])])) : i("", !0)], 42, Md),
|
|
8142
8142
|
N(n.$slots, "after-item", b({ ref_for: !0 }, Xt(u)))
|
|
8143
8143
|
]))), 128))], 512)),
|
|
8144
8144
|
tt.value && !t.loading && !t.error && !_t.value ? N(n.$slots, "add-button", {
|
|
@@ -8155,7 +8155,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
8155
8155
|
size: "18"
|
|
8156
8156
|
}), o("span", null, F(rt.value), 1)])], void 0, 6) : i("", !0)
|
|
8157
8157
|
]),
|
|
8158
|
-
l(
|
|
8158
|
+
l(cd, {
|
|
8159
8159
|
modelValue: Ct.value,
|
|
8160
8160
|
"onUpdate:modelValue": s[0] ||= (e) => Ct.value = e,
|
|
8161
8161
|
total: gt.value.length,
|
|
@@ -8168,7 +8168,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
8168
8168
|
"current-index",
|
|
8169
8169
|
"item-label"
|
|
8170
8170
|
]),
|
|
8171
|
-
l(
|
|
8171
|
+
l(od, {
|
|
8172
8172
|
modelValue: I(U),
|
|
8173
8173
|
"onUpdate:modelValue": s[1] ||= (e) => _(U) ? U.value = e : null,
|
|
8174
8174
|
title: at.value,
|
|
@@ -8190,7 +8190,7 @@ var ad = /* @__PURE__ */ u({
|
|
|
8190
8190
|
"onConfirm",
|
|
8191
8191
|
"onCancel"
|
|
8192
8192
|
]),
|
|
8193
|
-
o("div",
|
|
8193
|
+
o("div", Wd, F(I(St).grabbedKey.value === null ? "" : I(v)("common.sortable.keyboardGrab.status", {
|
|
8194
8194
|
n: I(St).grabbedIndex.value + 1,
|
|
8195
8195
|
total: I(St).totalCount.value
|
|
8196
8196
|
})), 1)
|
|
@@ -8199,12 +8199,12 @@ var ad = /* @__PURE__ */ u({
|
|
|
8199
8199
|
});
|
|
8200
8200
|
//#endregion
|
|
8201
8201
|
//#region src/model/factory/UserAdminConfigFactory.ts
|
|
8202
|
-
function
|
|
8202
|
+
function Kd() {
|
|
8203
8203
|
return { createDefaultUserAdminConfig: (e) => ({
|
|
8204
8204
|
id: 0,
|
|
8205
8205
|
user: 0,
|
|
8206
|
-
configType:
|
|
8207
|
-
layoutType:
|
|
8206
|
+
configType: qs,
|
|
8207
|
+
layoutType: Ys,
|
|
8208
8208
|
systemResource: "",
|
|
8209
8209
|
customName: "",
|
|
8210
8210
|
defaultConfig: !1,
|
|
@@ -8220,7 +8220,7 @@ function Gd() {
|
|
|
8220
8220
|
}
|
|
8221
8221
|
//#endregion
|
|
8222
8222
|
//#region src/labs/unsavedGuard/AUnsavedConfirmDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8223
|
-
var
|
|
8223
|
+
var qd = { class: "a-unsaved-sections" }, Jd = /*#__PURE__*/ jt(/* @__PURE__ */ u({
|
|
8224
8224
|
__name: "AUnsavedConfirmDialog",
|
|
8225
8225
|
props: /*@__PURE__*/ y({
|
|
8226
8226
|
title: { default: void 0 },
|
|
@@ -8257,7 +8257,7 @@ var Kd = { class: "a-unsaved-sections" }, qd = /*#__PURE__*/ jt(/* @__PURE__ */
|
|
|
8257
8257
|
l(Ce, null, {
|
|
8258
8258
|
default: R(() => [t.body ? (k(), a(e, { key: 0 }, [c(F(t.body), 1)], 64)) : t.dirtyLabels.length ? (k(), a(e, { key: 1 }, [
|
|
8259
8259
|
c(F(I(u)("common.sortable.unsavedChanges.sectionsIntro")) + " ", 1),
|
|
8260
|
-
o("ul",
|
|
8260
|
+
o("ul", qd, [(k(!0), a(e, null, ee(t.dirtyLabels, (e, t) => (k(), a("li", { key: t }, F(e), 1))), 128))]),
|
|
8261
8261
|
c(" " + F(I(u)("common.sortable.unsavedChanges.leaveQuestion")), 1)
|
|
8262
8262
|
], 64)) : (k(), a(e, { key: 2 }, [c(F(I(u)("common.sortable.unsavedChanges.body")), 1)], 64))]),
|
|
8263
8263
|
_: 1
|
|
@@ -8289,9 +8289,9 @@ var Kd = { class: "a-unsaved-sections" }, qd = /*#__PURE__*/ jt(/* @__PURE__ */
|
|
|
8289
8289
|
_: 1
|
|
8290
8290
|
}, 8, ["modelValue"]));
|
|
8291
8291
|
}
|
|
8292
|
-
}), [["__scopeId", "data-v-8342a164"]]),
|
|
8293
|
-
function
|
|
8294
|
-
let t =
|
|
8292
|
+
}), [["__scopeId", "data-v-8342a164"]]), Yd = 8e3, Xd = (e) => e == null ? !1 : typeof e == "boolean" ? e : e instanceof Set ? e.size > 0 : Array.isArray(e) ? e.length > 0 : !!e, Zd = (e, t) => e === void 0 ? t : typeof e == "boolean" ? e : e.value;
|
|
8293
|
+
function Qd(e) {
|
|
8294
|
+
let t = Qu();
|
|
8295
8295
|
if (e.ownSections) {
|
|
8296
8296
|
let r = e.ownSections, i = Symbol("unsaved.section.own"), a = n(() => {
|
|
8297
8297
|
let e = r();
|
|
@@ -8299,7 +8299,7 @@ function Zd(e) {
|
|
|
8299
8299
|
});
|
|
8300
8300
|
t.register(i, a);
|
|
8301
8301
|
}
|
|
8302
|
-
let r = n(() => e.sources.some((e) =>
|
|
8302
|
+
let r = n(() => e.sources.some((e) => Xd(e.value)) || t.dirtyLabels.value.length > 0), i = M(!1), a = null, o = !1, s = null, c = () => {
|
|
8303
8303
|
s !== null && (clearTimeout(s), s = null);
|
|
8304
8304
|
}, l = () => o ? (o = !1, c(), Promise.resolve(!0)) : new Promise((e) => {
|
|
8305
8305
|
a = e, i.value = !0;
|
|
@@ -8308,15 +8308,15 @@ function Zd(e) {
|
|
|
8308
8308
|
}, d = () => {
|
|
8309
8309
|
o = !0, c(), s = setTimeout(() => {
|
|
8310
8310
|
o = !1, s = null;
|
|
8311
|
-
},
|
|
8311
|
+
}, Yd);
|
|
8312
8312
|
}, p = () => {
|
|
8313
8313
|
o = !1, c();
|
|
8314
8314
|
};
|
|
8315
|
-
if (
|
|
8315
|
+
if (Zd(e.guardRoute, !0) && f()) try {
|
|
8316
8316
|
Ye(async () => !r.value || await l());
|
|
8317
8317
|
} catch {}
|
|
8318
8318
|
let m = [c], h = !1;
|
|
8319
|
-
if (
|
|
8319
|
+
if (Zd(e.guardWindowUnload, !0)) {
|
|
8320
8320
|
let e = (e) => {
|
|
8321
8321
|
r.value && (e.preventDefault(), e.returnValue = "");
|
|
8322
8322
|
};
|
|
@@ -8352,13 +8352,13 @@ function Zd(e) {
|
|
|
8352
8352
|
}
|
|
8353
8353
|
//#endregion
|
|
8354
8354
|
//#region src/labs/filters/FilterBookmarkDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8355
|
-
var
|
|
8355
|
+
var $d = {
|
|
8356
8356
|
key: 0,
|
|
8357
8357
|
class: "w-100 pt-4"
|
|
8358
|
-
},
|
|
8358
|
+
}, ef = { class: "w-100 pt-4" }, tf = {
|
|
8359
8359
|
key: 0,
|
|
8360
8360
|
class: "d-flex w-100 align-center justify-center"
|
|
8361
|
-
},
|
|
8361
|
+
}, nf = 100, rf = /* @__PURE__ */ u({
|
|
8362
8362
|
__name: "FilterBookmarkDialog",
|
|
8363
8363
|
props: {
|
|
8364
8364
|
client: {},
|
|
@@ -8369,9 +8369,9 @@ var Qd = {
|
|
|
8369
8369
|
},
|
|
8370
8370
|
emits: ["onClose"],
|
|
8371
8371
|
setup(t, { emit: n }) {
|
|
8372
|
-
let s = t, u = n, d = h(
|
|
8372
|
+
let s = t, u = n, d = h(Zo), f = h(Xo), p = h(ns);
|
|
8373
8373
|
if (H(p) || H(d) || H(f)) throw Error("Incorrect provide/inject config.");
|
|
8374
|
-
let m = M(!0), g = M(!1), _ = M(!1), v =
|
|
8374
|
+
let m = M(!0), g = M(!1), _ = M(!1), v = Qd({
|
|
8375
8375
|
sources: [],
|
|
8376
8376
|
guardDialogModel: m,
|
|
8377
8377
|
guardRoute: !1,
|
|
@@ -8384,10 +8384,10 @@ var Qd = {
|
|
|
8384
8384
|
T.value || (m.value = !1);
|
|
8385
8385
|
}, b = () => {
|
|
8386
8386
|
v.acknowledge(), m.value = !1;
|
|
8387
|
-
}, x = M("add"), S = M(""), C = M(!1), w = M(!1), T = M(!1), E = M(!1), D = M(!1), O = M([]), A = (e) => !!e.customName && e.customName.length <=
|
|
8387
|
+
}, x = M("add"), S = M(""), C = M(!1), w = M(!1), T = M(!1), E = M(!1), D = M(!1), O = M([]), A = (e) => !!e.customName && e.customName.length <= nf, { required: j, maxLength: ee } = oo(), N = { customName: {
|
|
8388
8388
|
required: j,
|
|
8389
|
-
maxLength: ee(
|
|
8390
|
-
} }, P = Qe(N, { customName: S }, { $stopPropagation: !0 }), ne =
|
|
8389
|
+
maxLength: ee(nf)
|
|
8390
|
+
} }, P = Qe(N, { customName: S }, { $stopPropagation: !0 }), ne = Zs(), { createUserAdminConfig: re, useFetchUserAdminConfigList: ie, updateUserAdminConfigPositions: ae, deleteUserAdminConfig: oe, updateUserAdminConfig: se } = ec(s.client, s.system), { t: le } = me(), { showErrorsDefault: fe, showUnknownError: pe, showValidationError: he, showWarningT: ge } = Li(), { createDefaultUserAdminConfig: _e } = Kd(), ye = ce("editor"), B = (e) => Ai(e) && e.cause.response?.status === 404, we = async () => {
|
|
8391
8391
|
if (!E.value && ye.value?.validateAll()) {
|
|
8392
8392
|
T.value = !0;
|
|
8393
8393
|
try {
|
|
@@ -8408,10 +8408,10 @@ var Qd = {
|
|
|
8408
8408
|
T.value = !1;
|
|
8409
8409
|
}
|
|
8410
8410
|
}
|
|
8411
|
-
}, { serializeFilters: Te } =
|
|
8411
|
+
}, { serializeFilters: Te } = ys(f, d), Ee = s.system + "_" + s.subject, De = () => ne.generateKey(Js.Desktop, Ee), Oe = async () => {
|
|
8412
8412
|
T.value = !0, D.value = !1;
|
|
8413
8413
|
let e = _e(s.system);
|
|
8414
|
-
e.user = s.user, e.configType =
|
|
8414
|
+
e.user = s.user, e.configType = Ks.FilterBookmark, e.layoutType = Js.Desktop, e.systemResource = Ee, e.customName = S.value, e.data = {
|
|
8415
8415
|
filter: Te(f, p, !1),
|
|
8416
8416
|
datatableHiddenColumns: C.value && s.datatableHiddenColumns ? s.datatableHiddenColumns : void 0,
|
|
8417
8417
|
sortBy: w.value && p.value.sortBy ? p.value.sortBy : void 0
|
|
@@ -8419,7 +8419,7 @@ var Qd = {
|
|
|
8419
8419
|
try {
|
|
8420
8420
|
let { count: t, maxPosition: n } = await ne.fetchBookmarkStats({
|
|
8421
8421
|
user: s.user,
|
|
8422
|
-
layoutType:
|
|
8422
|
+
layoutType: Js.Desktop,
|
|
8423
8423
|
systemResource: Ee
|
|
8424
8424
|
}, ie);
|
|
8425
8425
|
if (t >= 8) {
|
|
@@ -8452,7 +8452,7 @@ var Qd = {
|
|
|
8452
8452
|
try {
|
|
8453
8453
|
let t = await ne.getBookmarks({
|
|
8454
8454
|
user: s.user,
|
|
8455
|
-
layoutType:
|
|
8455
|
+
layoutType: Js.Desktop,
|
|
8456
8456
|
systemResource: Ee
|
|
8457
8457
|
}, ie, !0);
|
|
8458
8458
|
return e === Ae ? t === null ? (_.value = !0, pe(), null) : t : null;
|
|
@@ -8504,7 +8504,7 @@ var Qd = {
|
|
|
8504
8504
|
}, 8, ["disabled"])]),
|
|
8505
8505
|
_: 1
|
|
8506
8506
|
}, 8, ["modelValue"]),
|
|
8507
|
-
x.value === "add" ? (k(), a("div",
|
|
8507
|
+
x.value === "add" ? (k(), a("div", $d, [
|
|
8508
8508
|
l(At, { title: I(le)("common.filter.bookmark.infoSave") }, null, 8, ["title"]),
|
|
8509
8509
|
D.value ? (k(), r(At, {
|
|
8510
8510
|
key: 0,
|
|
@@ -8528,7 +8528,7 @@ var Qd = {
|
|
|
8528
8528
|
_: 1
|
|
8529
8529
|
}),
|
|
8530
8530
|
l(At, null, {
|
|
8531
|
-
default: R(() => [l(
|
|
8531
|
+
default: R(() => [l(Io, {
|
|
8532
8532
|
modelValue: C.value,
|
|
8533
8533
|
"onUpdate:modelValue": n[2] ||= (e) => C.value = e,
|
|
8534
8534
|
disabled: T.value,
|
|
@@ -8541,7 +8541,7 @@ var Qd = {
|
|
|
8541
8541
|
_: 1
|
|
8542
8542
|
}),
|
|
8543
8543
|
l(At, null, {
|
|
8544
|
-
default: R(() => [l(
|
|
8544
|
+
default: R(() => [l(Io, {
|
|
8545
8545
|
modelValue: w.value,
|
|
8546
8546
|
"onUpdate:modelValue": n[3] ||= (e) => w.value = e,
|
|
8547
8547
|
disabled: T.value,
|
|
@@ -8554,7 +8554,7 @@ var Qd = {
|
|
|
8554
8554
|
_: 1
|
|
8555
8555
|
})
|
|
8556
8556
|
])) : i("", !0),
|
|
8557
|
-
de(o("div",
|
|
8557
|
+
de(o("div", ef, [!g.value && !_.value ? (k(), a("div", tf, [l(be, { indeterminate: "" })])) : g.value ? (k(), r(Gd, {
|
|
8558
8558
|
key: 2,
|
|
8559
8559
|
ref_key: "editor",
|
|
8560
8560
|
ref: ye,
|
|
@@ -8615,7 +8615,7 @@ var Qd = {
|
|
|
8615
8615
|
_: 1
|
|
8616
8616
|
})]),
|
|
8617
8617
|
_: 1
|
|
8618
|
-
}, 8, ["modelValue", "persistent"]), l(
|
|
8618
|
+
}, 8, ["modelValue", "persistent"]), l(Jd, {
|
|
8619
8619
|
modelValue: I(v).promptOpen.value,
|
|
8620
8620
|
"onUpdate:modelValue": n[6] ||= (e) => I(v).promptOpen.value = e,
|
|
8621
8621
|
"dirty-labels": I(v).dirtyLabels.value,
|
|
@@ -8627,7 +8627,7 @@ var Qd = {
|
|
|
8627
8627
|
])], 64);
|
|
8628
8628
|
};
|
|
8629
8629
|
}
|
|
8630
|
-
}),
|
|
8630
|
+
}), af = /* @__PURE__ */ u({
|
|
8631
8631
|
__name: "AFilterBookmarkButton",
|
|
8632
8632
|
props: /*@__PURE__*/ y({
|
|
8633
8633
|
client: {},
|
|
@@ -8670,7 +8670,7 @@ var Qd = {
|
|
|
8670
8670
|
_: 1
|
|
8671
8671
|
})]),
|
|
8672
8672
|
_: 1
|
|
8673
|
-
}, 8, ["class", "data-cy"]), n.value ? (k(), r(
|
|
8673
|
+
}, 8, ["class", "data-cy"]), n.value ? (k(), r(rf, {
|
|
8674
8674
|
key: 0,
|
|
8675
8675
|
client: t.client,
|
|
8676
8676
|
system: t.system,
|
|
@@ -8686,10 +8686,10 @@ var Qd = {
|
|
|
8686
8686
|
"datatable-hidden-columns"
|
|
8687
8687
|
])) : i("", !0)], 64));
|
|
8688
8688
|
}
|
|
8689
|
-
}),
|
|
8689
|
+
}), of = { class: "subject-select-filter__content px-2 py-4" }, sf = { class: "d-flex flex-wrap align-center" }, cf = {
|
|
8690
8690
|
key: 0,
|
|
8691
8691
|
class: "subject-select-filter__actions"
|
|
8692
|
-
},
|
|
8692
|
+
}, lf = /* @__PURE__ */ u({
|
|
8693
8693
|
__name: "AFilterWrapperSubjectSelect",
|
|
8694
8694
|
props: /*@__PURE__*/ y({
|
|
8695
8695
|
hideButtons: {
|
|
@@ -8723,7 +8723,7 @@ var Qd = {
|
|
|
8723
8723
|
"bookmarkLoadAfter"
|
|
8724
8724
|
], ["update:datatableHiddenColumns"]),
|
|
8725
8725
|
setup(t, { expose: s, emit: c }) {
|
|
8726
|
-
let u = t, d = c, f = oe(t, "datatableHiddenColumns"), p = h(
|
|
8726
|
+
let u = t, d = c, f = oe(t, "datatableHiddenColumns"), p = h(rs, () => {}), m = h(Zo), g = h(Xo);
|
|
8727
8727
|
if (H(m) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
8728
8728
|
let _ = M({
|
|
8729
8729
|
system: m.general.system,
|
|
@@ -8731,14 +8731,14 @@ var Qd = {
|
|
|
8731
8731
|
});
|
|
8732
8732
|
Rt(u.store) ? !1 === u.store && (_.value.system = void 0, _.value.subject = void 0) : (_.value.system = u.store.system, _.value.subject = u.store.subject);
|
|
8733
8733
|
let v = M(0);
|
|
8734
|
-
A(
|
|
8734
|
+
A(es, v);
|
|
8735
8735
|
let y = M(/* @__PURE__ */ new Map());
|
|
8736
|
-
A(
|
|
8736
|
+
A(ts, y);
|
|
8737
8737
|
let b = () => {
|
|
8738
8738
|
v.value++, x(() => {
|
|
8739
8739
|
d("submit"), p();
|
|
8740
8740
|
});
|
|
8741
|
-
}, { clearAll: S, clearAllFilterSelected: C } =
|
|
8741
|
+
}, { clearAll: S, clearAllFilterSelected: C } = _s(), w = () => {
|
|
8742
8742
|
x(() => {
|
|
8743
8743
|
v.value++, d("bookmarkLoadAfter"), p();
|
|
8744
8744
|
});
|
|
@@ -8754,9 +8754,9 @@ var Qd = {
|
|
|
8754
8754
|
name: t.formName,
|
|
8755
8755
|
onSubmit: z(b, ["prevent"])
|
|
8756
8756
|
}, {
|
|
8757
|
-
default: R(() => [o("div",
|
|
8757
|
+
default: R(() => [o("div", of, [N(n.$slots, "bookmarks", {}, () => [l(_e, { density: "compact" }, {
|
|
8758
8758
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(ge, { key: 0 }, {
|
|
8759
|
-
default: R(() => [o("div",
|
|
8759
|
+
default: R(() => [o("div", sf, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(rc, {
|
|
8760
8760
|
key: 0,
|
|
8761
8761
|
"datatable-hidden-columns": f.value,
|
|
8762
8762
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -8784,7 +8784,7 @@ var Qd = {
|
|
|
8784
8784
|
lg: I(m).fields[e].render.lg || 12,
|
|
8785
8785
|
xl: I(m).fields[e].render.xl || 12
|
|
8786
8786
|
}, {
|
|
8787
|
-
default: R(() => [N(n.$slots, I(
|
|
8787
|
+
default: R(() => [N(n.$slots, I(Bs)(e), { itemConfig: I(m).fields[e] }, () => [l(Ws, { name: e }, null, 8, ["name"])])]),
|
|
8788
8788
|
_: 2
|
|
8789
8789
|
}, 1032, [
|
|
8790
8790
|
"cols",
|
|
@@ -8794,10 +8794,10 @@ var Qd = {
|
|
|
8794
8794
|
"xl"
|
|
8795
8795
|
]))), 128))]),
|
|
8796
8796
|
_: 3
|
|
8797
|
-
})])]), t.hideButtons ? i("", !0) : (k(), a("div",
|
|
8797
|
+
})])]), t.hideButtons ? i("", !0) : (k(), a("div", cf, [N(n.$slots, "buttons", {}, () => [
|
|
8798
8798
|
l(fa, { touched: E.value }, null, 8, ["touched"]),
|
|
8799
8799
|
l(pa, { onReset: T }),
|
|
8800
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
8800
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(af, {
|
|
8801
8801
|
key: 0,
|
|
8802
8802
|
client: t.client,
|
|
8803
8803
|
user: t.userId,
|
|
@@ -8815,10 +8815,10 @@ var Qd = {
|
|
|
8815
8815
|
_: 3
|
|
8816
8816
|
}, 8, ["name"]));
|
|
8817
8817
|
}
|
|
8818
|
-
}),
|
|
8818
|
+
}), uf = {
|
|
8819
8819
|
key: 0,
|
|
8820
8820
|
class: "required"
|
|
8821
|
-
},
|
|
8821
|
+
}, df = /* @__PURE__ */ u({
|
|
8822
8822
|
__name: "AFormRemoteAutocompleteWithCached",
|
|
8823
8823
|
props: /*@__PURE__*/ y({
|
|
8824
8824
|
modelValue: {},
|
|
@@ -8880,7 +8880,7 @@ var Qd = {
|
|
|
8880
8880
|
"update:fetchedItemsMinimal"
|
|
8881
8881
|
]),
|
|
8882
8882
|
setup(e, { emit: t }) {
|
|
8883
|
-
let o = e, u = t, d = oe(e, "search"), p = oe(e, "loadingLocal"), m = oe(e, "fetchedItemsMinimal"), g = h(
|
|
8883
|
+
let o = e, u = t, d = oe(e, "search"), p = oe(e, "loadingLocal"), m = oe(e, "fetchedItemsMinimal"), g = h($o), _ = h(Qo), v = f()?.type.__name;
|
|
8884
8884
|
if (H(g) || H(_)) throw Error(`[${v}] Incorrect provide/inject config.`);
|
|
8885
8885
|
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(", ")}.`);
|
|
8886
8886
|
let { fetch: y, add: x, addManualMinimal: S } = o.useCached(), C = n(() => {
|
|
@@ -8893,7 +8893,7 @@ var Qd = {
|
|
|
8893
8893
|
set(e) {
|
|
8894
8894
|
u("update:modelValue", K(e));
|
|
8895
8895
|
}
|
|
8896
|
-
}), { t: T } = me(), E = h(rn, void 0), D = h(an, void 0), O = M(!1), { pagination: A } =
|
|
8896
|
+
}), { t: T } = me(), E = h(rn, void 0), D = h(an, void 0), O = M(!1), { pagination: A } = Os(W(o.filterSortBy) ? null : o.filterSortBy.key, o.filterSortBy?.order), j = () => {
|
|
8897
8897
|
O.value = !0, u("focus", w.value);
|
|
8898
8898
|
}, ee = () => {
|
|
8899
8899
|
O.value = !1, o.v?.$touch(), u("blur", w.value);
|
|
@@ -8964,7 +8964,7 @@ var Qd = {
|
|
|
8964
8964
|
onFocus: j,
|
|
8965
8965
|
"onClick:clear": se
|
|
8966
8966
|
}, s({
|
|
8967
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span",
|
|
8967
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ne.value + "" }, [c(F(P.value) + " ", 1), ne.value ? (k(), a("span", uf)) : i("", !0)]))]),
|
|
8968
8968
|
"append-item": R(() => [N(t.$slots, "append-item")]),
|
|
8969
8969
|
chip: R(({ props: e, internalItem: n }) => [N(t.$slots, "chip", {
|
|
8970
8970
|
props: e,
|
|
@@ -8990,7 +8990,7 @@ var Qd = {
|
|
|
8990
8990
|
"no-data-text"
|
|
8991
8991
|
]));
|
|
8992
8992
|
}
|
|
8993
|
-
}),
|
|
8993
|
+
}), ff = /* @__PURE__ */ u({
|
|
8994
8994
|
__name: "AFilterAdvancedButton",
|
|
8995
8995
|
props: {
|
|
8996
8996
|
tooltipT: { default: "common.button.advancedFilters" },
|
|
@@ -9020,10 +9020,10 @@ var Qd = {
|
|
|
9020
9020
|
_: 1
|
|
9021
9021
|
}, 8, ["class", "data-cy"]));
|
|
9022
9022
|
}
|
|
9023
|
-
}),
|
|
9023
|
+
}), pf = { class: "a-selected-filters__label text-body-small" }, mf = /* @__PURE__ */ u({
|
|
9024
9024
|
__name: "FiltersSelected",
|
|
9025
9025
|
setup(t) {
|
|
9026
|
-
let i = h(
|
|
9026
|
+
let i = h(Zo), s = h(Xo), u = h(ts);
|
|
9027
9027
|
if (H(i) || H(s) || H(u)) throw Error("Incorrect provide/inject config.");
|
|
9028
9028
|
let { t: d } = me(), f = (e) => {
|
|
9029
9029
|
let t = i.fields?.[e]?.titleT;
|
|
@@ -9035,7 +9035,7 @@ var Qd = {
|
|
|
9035
9035
|
title: f(e),
|
|
9036
9036
|
options: t
|
|
9037
9037
|
})).sort((t, n) => e.indexOf(t.name) - e.indexOf(n.name));
|
|
9038
|
-
}), { clearOneFilterSelected: m, isClearable: g } =
|
|
9038
|
+
}), { clearOneFilterSelected: m, isClearable: g } = _s(), _ = (e) => {
|
|
9039
9039
|
if (!g(e, i)) return !1;
|
|
9040
9040
|
let t = i.fields[e];
|
|
9041
9041
|
if (t.type === "timeInterval" && t.related) {
|
|
@@ -9050,7 +9050,7 @@ var Qd = {
|
|
|
9050
9050
|
return (t, n) => (k(!0), a(e, null, ee(p.value, (t) => (k(), a("div", {
|
|
9051
9051
|
key: t.name,
|
|
9052
9052
|
class: "a-selected-filters"
|
|
9053
|
-
}, [o("div",
|
|
9053
|
+
}, [o("div", pf, F(t.title) + ":", 1), (k(!0), a(e, null, ee(t.options, (e) => (k(), a("div", {
|
|
9054
9054
|
key: e.value,
|
|
9055
9055
|
class: "a-selected-filters__chips"
|
|
9056
9056
|
}, [_(t.name) ? (k(), r(he, {
|
|
@@ -9075,7 +9075,7 @@ var Qd = {
|
|
|
9075
9075
|
_: 2
|
|
9076
9076
|
}, 1024))]))), 128))]))), 128));
|
|
9077
9077
|
}
|
|
9078
|
-
}),
|
|
9078
|
+
}), hf = { class: "d-flex flex-wrap align-center" }, gf = { class: "a-filter__container" }, _f = { class: "a-filter__search" }, vf = { key: 2 }, yf = /* @__PURE__ */ u({
|
|
9079
9079
|
__name: "AFilterWrapper",
|
|
9080
9080
|
props: /*@__PURE__*/ y({
|
|
9081
9081
|
enableTop: {
|
|
@@ -9123,7 +9123,7 @@ var Qd = {
|
|
|
9123
9123
|
"bookmarkLoadAfter"
|
|
9124
9124
|
], ["update:datatableHiddenColumns", "update:showDetail"]),
|
|
9125
9125
|
setup(t, { expose: s, emit: c }) {
|
|
9126
|
-
let u = t, d = c, f = oe(t, "datatableHiddenColumns"), p = oe(t, "showDetail"), m = h(
|
|
9126
|
+
let u = t, d = c, f = oe(t, "datatableHiddenColumns"), p = oe(t, "showDetail"), m = h(Zo), g = h(Xo);
|
|
9127
9127
|
if (H(m) || H(g)) throw Error("Incorrect provide/inject config.");
|
|
9128
9128
|
let _ = M({
|
|
9129
9129
|
system: m.general.system,
|
|
@@ -9131,14 +9131,14 @@ var Qd = {
|
|
|
9131
9131
|
});
|
|
9132
9132
|
Rt(u.store) ? !1 === u.store && (_.value.system = void 0, _.value.subject = void 0) : (_.value.system = u.store.system, _.value.subject = u.store.subject);
|
|
9133
9133
|
let v = M(0);
|
|
9134
|
-
A(
|
|
9134
|
+
A(es, v);
|
|
9135
9135
|
let y = M(/* @__PURE__ */ new Map());
|
|
9136
|
-
A(
|
|
9136
|
+
A(ts, y);
|
|
9137
9137
|
let b = () => {
|
|
9138
9138
|
v.value++, x(() => {
|
|
9139
9139
|
d("submit");
|
|
9140
9140
|
});
|
|
9141
|
-
}, { clearAll: C, clearAllFilterSelected: w } =
|
|
9141
|
+
}, { clearAll: C, clearAllFilterSelected: w } = _s(), T = () => {
|
|
9142
9142
|
x(() => {
|
|
9143
9143
|
v.value++, d("bookmarkLoadAfter");
|
|
9144
9144
|
});
|
|
@@ -9169,7 +9169,7 @@ var Qd = {
|
|
|
9169
9169
|
})) : i("", !0),
|
|
9170
9170
|
l(_e, { density: "compact" }, {
|
|
9171
9171
|
default: R(() => [t.store && t.userId && I(U)(t.client) ? (k(), r(ge, { key: 0 }, {
|
|
9172
|
-
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div",
|
|
9172
|
+
default: R(() => [N(n.$slots, "bookmarks", {}, () => [o("div", hf, [_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(rc, {
|
|
9173
9173
|
key: 0,
|
|
9174
9174
|
"datatable-hidden-columns": f.value,
|
|
9175
9175
|
"onUpdate:datatableHiddenColumns": s[0] ||= (e) => f.value = e,
|
|
@@ -9198,14 +9198,14 @@ var Qd = {
|
|
|
9198
9198
|
key: 0,
|
|
9199
9199
|
cols: "auto"
|
|
9200
9200
|
}, {
|
|
9201
|
-
default: R(() => [l(
|
|
9201
|
+
default: R(() => [l(ff, {
|
|
9202
9202
|
"button-active": p.value,
|
|
9203
9203
|
onAdvancedFilter: D
|
|
9204
9204
|
}, null, 8, ["button-active"])]),
|
|
9205
9205
|
_: 1
|
|
9206
9206
|
})),
|
|
9207
9207
|
l(ge, null, {
|
|
9208
|
-
default: R(() => [o("div",
|
|
9208
|
+
default: R(() => [o("div", gf, [o("div", _f, [N(n.$slots, "search")]), l(mf)])]),
|
|
9209
9209
|
_: 3
|
|
9210
9210
|
}),
|
|
9211
9211
|
t.hideButtons ? i("", !0) : (k(), r(ge, {
|
|
@@ -9216,7 +9216,7 @@ var Qd = {
|
|
|
9216
9216
|
default: R(() => [N(n.$slots, "buttons", {}, () => [
|
|
9217
9217
|
l(fa, { touched: O.value }, null, 8, ["touched"]),
|
|
9218
9218
|
l(pa, { onReset: E }),
|
|
9219
|
-
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(
|
|
9219
|
+
_.value.system && _.value.subject && t.userId && I(U)(t.client) ? (k(), r(af, {
|
|
9220
9220
|
key: 0,
|
|
9221
9221
|
client: t.client,
|
|
9222
9222
|
user: t.userId,
|
|
@@ -9236,7 +9236,7 @@ var Qd = {
|
|
|
9236
9236
|
]),
|
|
9237
9237
|
_: 3
|
|
9238
9238
|
})),
|
|
9239
|
-
t.hideMore ? i("", !0) : (k(), a("div",
|
|
9239
|
+
t.hideMore ? i("", !0) : (k(), a("div", vf, [(k(), r(P(t.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
9240
9240
|
default: R(() => [de(o("div", { class: S({ "mt-6 pa-4 system-border-a": !t.alwaysVisible }) }, [N(n.$slots, "detail", {}, () => [l(_e, null, {
|
|
9241
9241
|
default: R(() => [(k(!0), a(e, null, ee(j.value, (e) => (k(), r(ge, {
|
|
9242
9242
|
key: e,
|
|
@@ -9246,7 +9246,7 @@ var Qd = {
|
|
|
9246
9246
|
lg: I(m).fields[e].render.lg || 3,
|
|
9247
9247
|
xl: I(m).fields[e].render.xl || 2
|
|
9248
9248
|
}, {
|
|
9249
|
-
default: R(() => [N(n.$slots, I(
|
|
9249
|
+
default: R(() => [N(n.$slots, I(Bs)(e), { itemConfig: I(m).fields[e] }, () => [l(Ws, { name: e }, null, 8, ["name"])])]),
|
|
9250
9250
|
_: 2
|
|
9251
9251
|
}, 1032, [
|
|
9252
9252
|
"cols",
|
|
@@ -9263,13 +9263,13 @@ var Qd = {
|
|
|
9263
9263
|
_: 3
|
|
9264
9264
|
}, 8, ["name"]));
|
|
9265
9265
|
}
|
|
9266
|
-
}),
|
|
9266
|
+
}), bf = {
|
|
9267
9267
|
key: 0,
|
|
9268
9268
|
class: "font-italic pl-1"
|
|
9269
|
-
},
|
|
9269
|
+
}, xf = {
|
|
9270
9270
|
key: 0,
|
|
9271
9271
|
class: "required"
|
|
9272
|
-
},
|
|
9272
|
+
}, Sf = 300, Cf = /* @__PURE__ */ u({
|
|
9273
9273
|
__name: "AFormRemoteAutocomplete",
|
|
9274
9274
|
props: /*@__PURE__*/ y({
|
|
9275
9275
|
label: { default: void 0 },
|
|
@@ -9344,7 +9344,7 @@ var Qd = {
|
|
|
9344
9344
|
"click:chipClose"
|
|
9345
9345
|
], ["update:modelValue", "update:selected"]),
|
|
9346
9346
|
setup(e, { expose: t, emit: o }) {
|
|
9347
|
-
let u = e, d = o, p = h(
|
|
9347
|
+
let u = e, d = o, p = h($o), m = h(Qo), g = f()?.type.__name;
|
|
9348
9348
|
if (H(p) || H(m)) throw Error(`[${g}] Incorrect provide/inject config.`);
|
|
9349
9349
|
let _ = u.filterByField, v = u.filterSortBy;
|
|
9350
9350
|
if (H(p.fields[_]) || H(m[_])) throw Error(`[${g}] Incorrect filter inner config. FilterByField is '${_}' and available options are ${Object.keys(m).join(", ")}.`);
|
|
@@ -9366,7 +9366,7 @@ var Qd = {
|
|
|
9366
9366
|
if (H(te) || H(P) || H(u.v?.$path)) return "";
|
|
9367
9367
|
let { end: e } = Yt(u.v?.$path, ".");
|
|
9368
9368
|
return ee(te + "." + P + ".model." + e);
|
|
9369
|
-
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), I = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: se } =
|
|
9369
|
+
}), ae = n(() => U(u.required) ? u.required : u.v?.required && u.v?.required.$params.type === "required"), I = n(() => U(u.disabled) ? u.disabled : !!E.value), { pagination: se } = Os(W(v) ? null : v.key, v?.order), ce = M([]), le = M([]), ue = M(!0), de = M(!1), fe = n(() => {
|
|
9370
9370
|
let e = /* @__PURE__ */ new Map(), t = (t) => {
|
|
9371
9371
|
t.forEach((t) => {
|
|
9372
9372
|
e.set(t.value, {
|
|
@@ -9469,7 +9469,7 @@ var Qd = {
|
|
|
9469
9469
|
}
|
|
9470
9470
|
j.value++, be(e, j.value), d("searchChangeDebounced", e);
|
|
9471
9471
|
}
|
|
9472
|
-
}, { debounce:
|
|
9472
|
+
}, { debounce: Sf }), L(D, (e, t) => {
|
|
9473
9473
|
e !== t && d("searchChange", e);
|
|
9474
9474
|
});
|
|
9475
9475
|
let Oe = (e) => {
|
|
@@ -9530,7 +9530,7 @@ var Qd = {
|
|
|
9530
9530
|
disabled: t.props.disabled,
|
|
9531
9531
|
"onClick:close": (e) => De(t.raw)
|
|
9532
9532
|
}, {
|
|
9533
|
-
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span",
|
|
9533
|
+
default: R(() => [c(F(t.raw.title) + " ", 1), t.raw.subtitle ? (k(), a("span", bf, " (" + F(t.raw.subtitle) + ") ", 1)) : i("", !0)]),
|
|
9534
9534
|
_: 2
|
|
9535
9535
|
}, 1032, [
|
|
9536
9536
|
"closable",
|
|
@@ -9538,7 +9538,7 @@ var Qd = {
|
|
|
9538
9538
|
"disabled",
|
|
9539
9539
|
"onClick:close"
|
|
9540
9540
|
])]),
|
|
9541
|
-
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span",
|
|
9541
|
+
label: R(() => [e.hideLabel ? i("", !0) : (k(), a("span", { key: ae.value + "" }, [c(F(ie.value) + " ", 1), ae.value ? (k(), a("span", xf)) : i("", !0)]))]),
|
|
9542
9542
|
_: 2
|
|
9543
9543
|
}, [E.value ? {
|
|
9544
9544
|
name: "append-inner",
|
|
@@ -9570,6 +9570,6 @@ var Qd = {
|
|
|
9570
9570
|
}
|
|
9571
9571
|
});
|
|
9572
9572
|
//#endregion
|
|
9573
|
-
export {
|
|
9573
|
+
export { Ls as $, Yr as $n, nn as $r, fa as $t, qu as A, Et as Ai, Ci as An, Gn as Ar, Vo as At, sc as B, di as Bn, Fn as Br, Ma as Bt, td as C, It as Ci, Mi as Cn, Wn as Cr, ts as Ct, Hu as D, jt as Di, Oi as Dn, Vn as Dr, Yo as Dt, Yu as E, Nt as Ei, ki as En, qn as Er, Jo as Et, Nu as F, gi as Fn, jn as Fr, Io as Ft, Ys as G, Qr as Gn, wn as Gr, Oa as Gt, ic as H, oi as Hn, kn as Hr, ka as Ht, Au as I, hi as In, Bn as Ir, Fo as It, Us as J, $r as Jn, cn as Jr, xa as Jt, Ks as K, ni as Kn, En as Kr, ga as Kt, Ou as L, mi as Ln, Dn as Lr, Po as Lt, Vu as M, xi as Mn, In as Mr, zo as Mt, Ru as N, vi as Nn, Rn as Nr, Bo as Nt, Wu as O, At as Oi, Di as On, Kn as Or, Wo as Ot, Pu as P, yi as Pn, On as Pr, Lo as Pt, Rs as Q, Xr as Qn, rn as Qr, pa as Qt, ku as R, ui as Rn, An as Rr, oo as Rt, nd as S, Vt as Si, Pi as Sn, Hn as Sr, Qo as St, $u as T, Pt as Ti, Ai as Tn, Jn as Tr, rs as Tt, ec as U, si as Un, Mn as Ur, Ca as Ut, ac as V, ci as Vn, Tn as Vr, ja as Vt, Js as W, ei as Wn, Nn as Wr, Ta as Wt, Bs as X, ti as Xn, sn as Xr, ha as Xt, Hs as Y, Zr as Yn, on as Yr, va as Yt, zs as Z, ii as Zn, an as Zr, ma as Zt, cd as _, Ht as _i, Yi as _n, lr as _r, is as _t, lf as a, Zt as ai, qi as an, br as ar, Os as at, ad as b, W as bi, Ii as bn, Zn as br, Xo as bt, Kd as c, $t as ci, ia as cn, xr as cr, ws as ct, Sd as d, G as di, Zi as dn, gr as dr, ds as dt, tn as ei, da as en, Jr as er, Is as et, bd as f, Rt as fi, Ji as fn, _r as fr, hs as ft, dd as g, Ut as gi, sa as gn, dr as gr, ys as gt, gd as h, Wt as hi, ea as hn, fr as hr, _s as ht, df as i, Gt as ii, $i as in, vr as ir, As as it, Ju as j, Ot as ji, wi as jn, Ln as jr, Ro as jt, Gu as k, Tt as ki, Ei as kn, Un as kr, Ho as kt, Gd as l, en as li, Xi as ln, Cr as lr, Cs as lt, vd as m, zt as mi, oa as mn, mr, fs as mt, yf as n, Jt as ni, Gi as nn, Kr as nr, Ms as nt, Qd as o, Xt as oi, aa as on, yr as or, Ts as ot, yd as p, U as pi, ta as pn, hr as pr, ms as pt, qs as q, ri as qn, dn as qr, Sa as qt, mf as r, Kt as ri, ca as rn, Er as rr, js as rt, Jd as s, Qt as si, Qi as sn, Sr as sr, Es as st, Cf as t, Yt as ti, Ki as tn, qr as tr, Fs as tt, xd as u, K as ui, ra as un, Tr as ur, bs as ut, od as v, Lt as vi, na as vn, cr as vr, ns as vt, ed as w, H as wi, ji as wn, Yn as wr, es as wt, rd as x, Ft as xi, Li as xn, Qn as xr, $o as xt, id as y, Bt as yi, Ri as yn, or as yr, Zo as yt, wu as z, fi as zn, Pn as zr, Na as zt };
|
|
9574
9574
|
|
|
9575
|
-
//# sourceMappingURL=AFormRemoteAutocomplete-
|
|
9575
|
+
//# sourceMappingURL=AFormRemoteAutocomplete-DIYc08Pe.mjs.map
|