bt-core-app 1.4.521 → 1.4.522
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/bt-core-app.js +193 -193
- package/dist/index.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -6486,7 +6486,7 @@ var Cg = { exports: {} };
|
|
|
6486
6486
|
function he() {
|
|
6487
6487
|
return typeof openDatabase == "function";
|
|
6488
6488
|
}
|
|
6489
|
-
var ge = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",
|
|
6489
|
+
var ge = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", me = "~~local_forage_type~", Fe = /^~~local_forage_type~([^~]+)~/, ue = "__lfsc__:", Ce = ue.length, Ne = "arbf", nt = "blob", ht = "si08", Ue = "ui08", kn = "uic8", rn = "si16", Pn = "si32", Rt = "ur16", za = "ui32", il = "fl32", Sn = "fl64", xl = Ce + Ne.length, kl = Object.prototype.toString;
|
|
6490
6490
|
function ol(H) {
|
|
6491
6491
|
var X = H.length * 0.75, U = H.length, ie, ce = 0, ae, we, Te, De;
|
|
6492
6492
|
H[H.length - 1] === "=" && (X--, H[H.length - 2] === "=" && X--);
|
|
@@ -6509,7 +6509,7 @@ var Cg = { exports: {} };
|
|
|
6509
6509
|
} else if (U === "[object Blob]") {
|
|
6510
6510
|
var ae = new FileReader();
|
|
6511
6511
|
ae.onload = function() {
|
|
6512
|
-
var we =
|
|
6512
|
+
var we = me + H.type + "~" + Ha(this.result);
|
|
6513
6513
|
X(ue + nt + we);
|
|
6514
6514
|
}, ae.readAsArrayBuffer(H);
|
|
6515
6515
|
} else
|
|
@@ -6519,7 +6519,7 @@ var Cg = { exports: {} };
|
|
|
6519
6519
|
console.error("Couldn't convert value into a JSON string: ", H), X(null, we);
|
|
6520
6520
|
}
|
|
6521
6521
|
}
|
|
6522
|
-
function
|
|
6522
|
+
function ve(H) {
|
|
6523
6523
|
if (H.substring(0, Ce) !== ue)
|
|
6524
6524
|
return JSON.parse(H);
|
|
6525
6525
|
var X = H.substring(xl), U = H.substring(Ce, xl), ie;
|
|
@@ -6557,7 +6557,7 @@ var Cg = { exports: {} };
|
|
|
6557
6557
|
}
|
|
6558
6558
|
var K = {
|
|
6559
6559
|
serialize: Sl,
|
|
6560
|
-
deserialize:
|
|
6560
|
+
deserialize: ve,
|
|
6561
6561
|
stringToBuffer: ol,
|
|
6562
6562
|
bufferToString: Ha
|
|
6563
6563
|
};
|
|
@@ -12011,7 +12011,7 @@ function HV(e) {
|
|
|
12011
12011
|
}
|
|
12012
12012
|
function Gi(e, t, n) {
|
|
12013
12013
|
var ol, Ha, Sl;
|
|
12014
|
-
const a = Qx(), l = bl(), r = (n == null ? void 0 : n.idSelector) ?? e.idSelector ?? ((
|
|
12014
|
+
const a = Qx(), l = bl(), r = (n == null ? void 0 : n.idSelector) ?? e.idSelector ?? ((ve) => ve.id), i = (n == null ? void 0 : n.isNotSetup) == !0 ? void 0 : hd({
|
|
12015
12015
|
bladeGroup: e.bladeGroup,
|
|
12016
12016
|
bladeName: e.bladeName,
|
|
12017
12017
|
onUpdate: () => {
|
|
@@ -12019,22 +12019,22 @@ function Gi(e, t, n) {
|
|
|
12019
12019
|
},
|
|
12020
12020
|
bladeStartShowing: e.bladeStartShowing
|
|
12021
12021
|
}), o = e.useBladeSrc ?? e.variant == "blade", s = e.useRouteSrc ?? e.variant == "page", c = e.nav ?? e.bladeName ?? e.itemBladeName ?? "basic", u = e.storeKey ?? (n == null ? void 0 : n.storeKey), f = e.storeMode ?? ((ol = l.findItem(c)) == null ? void 0 : ol.storeMode), m = e.storageMode ?? ((Ha = l.findItem(c)) == null ? void 0 : Ha.storageMode), h = (Sl = l.findItem(c)) == null ? void 0 : Sl.deleteStrat, v = tt(e.customFilters) ?? [], g = W([]), y = D(() => P0([
|
|
12022
|
-
...(e.localFilters ?? []).filter((
|
|
12023
|
-
...v.filter((
|
|
12022
|
+
...(e.localFilters ?? []).filter((ve) => ve.predicate != null || ve.onFilter != null).map((ve) => ve.name),
|
|
12023
|
+
...v.filter((ve) => ve.name != null).map((ve) => ve.name),
|
|
12024
12024
|
...e.defaultFilters ?? [],
|
|
12025
12025
|
...g.value
|
|
12026
|
-
]).value), d = W((e.defaultFilters ?? []).map((
|
|
12026
|
+
]).value), d = W((e.defaultFilters ?? []).map((ve) => y.value.indexOf(ve)));
|
|
12027
12027
|
let w = W([...d.value]);
|
|
12028
12028
|
const M = D(() => Rf(w, d).value.length > 0 || Rf(d, w).value.length > 0), x = W(k());
|
|
12029
12029
|
function k() {
|
|
12030
|
-
var
|
|
12030
|
+
var ve, K;
|
|
12031
12031
|
if (o) {
|
|
12032
12032
|
const se = i == null ? void 0 : i.bladeData.data.page;
|
|
12033
12033
|
if (se != null)
|
|
12034
12034
|
return Number.parseInt(se);
|
|
12035
12035
|
}
|
|
12036
12036
|
if (s) {
|
|
12037
|
-
const se = (K = (
|
|
12037
|
+
const se = (K = (ve = n == null ? void 0 : n.route) == null ? void 0 : ve.query) == null ? void 0 : K.page;
|
|
12038
12038
|
if (se != null)
|
|
12039
12039
|
return Number.parseInt(typeof se == "string" ? se : se.toString());
|
|
12040
12040
|
}
|
|
@@ -12042,17 +12042,17 @@ function Gi(e, t, n) {
|
|
|
12042
12042
|
}
|
|
12043
12043
|
const p = e.proxyKey ?? "proxyID", C = D(() => {
|
|
12044
12044
|
var K, se;
|
|
12045
|
-
let
|
|
12046
|
-
return
|
|
12045
|
+
let ve = e.proxyID;
|
|
12046
|
+
return ve == null && o && (ve = i == null ? void 0 : i.bladeData.data[p]), ve == null && s && (ve = (se = (K = n == null ? void 0 : n.route) == null ? void 0 : K.query) == null ? void 0 : se[p]), ve;
|
|
12047
12047
|
}), S = e.searchKey ?? "search", _ = W(T());
|
|
12048
12048
|
function T() {
|
|
12049
12049
|
var K, se;
|
|
12050
|
-
let
|
|
12051
|
-
return
|
|
12050
|
+
let ve;
|
|
12051
|
+
return ve == null && o && (ve = i == null ? void 0 : i.bladeData.data[S]), ve == null && s && (ve = (se = (K = n == null ? void 0 : n.route) == null ? void 0 : K.query) == null ? void 0 : se[S]), ve;
|
|
12052
12052
|
}
|
|
12053
12053
|
const V = W(tt(e.startShowingInactive) ?? !1), z = D(() => [
|
|
12054
12054
|
...e.searchProps ?? [],
|
|
12055
|
-
...(e.headers ?? []).filter((
|
|
12055
|
+
...(e.headers ?? []).filter((ve) => ve.searchable != null && ve.value != null).map((ve) => ve.value ?? "")
|
|
12056
12056
|
]), I = Pe(), L = Pe([]), E = W([]);
|
|
12057
12057
|
let R;
|
|
12058
12058
|
const { actionErrorMsg: P, actionLoadingMsg: Z, deleteItem: j, doAction: O, getItem: G, getAllItems: B, restoreItem: oe, saveItem: $ } = vd({
|
|
@@ -12066,49 +12066,49 @@ function Gi(e, t, n) {
|
|
|
12066
12066
|
nav: c
|
|
12067
12067
|
})
|
|
12068
12068
|
}), ne = D(() => e.errorMsg ?? P.value), ee = W(), Y = D(() => ee.value ?? e.loadingMsg ?? Z.value), le = D(() => Y.value != null), _e = Pe(!1), re = Pe(e.startShowingSearch == !0), Oe = W(0), q = D(() => {
|
|
12069
|
-
let
|
|
12069
|
+
let ve, K = [];
|
|
12070
12070
|
d.value.forEach((fe) => {
|
|
12071
12071
|
const pe = y.value[fe], Le = v.find(($t) => $t.name == pe);
|
|
12072
|
-
Le != null ?
|
|
12072
|
+
Le != null ? ve = ve != null ? `${ve}ANDALSO${Le.filterFunction()}` : Le.filterFunction() : K.push(pe);
|
|
12073
12073
|
});
|
|
12074
12074
|
const se = {};
|
|
12075
|
-
return pt(K) && (se.filterBy = K.toString()),
|
|
12075
|
+
return pt(K) && (se.filterBy = K.toString()), ve != null && (se.query = ve), se;
|
|
12076
12076
|
}), Q = D(() => {
|
|
12077
12077
|
var K, se;
|
|
12078
|
-
let
|
|
12079
|
-
return
|
|
12078
|
+
let ve = e.itemID;
|
|
12079
|
+
return ve == null && o && (ve = i == null ? void 0 : i.bladeData.data.id), ve == null && s && (ve = (se = (K = n == null ? void 0 : n.route) == null ? void 0 : K.query) == null ? void 0 : se.id), ve;
|
|
12080
12080
|
}), he = D(() => {
|
|
12081
12081
|
var K;
|
|
12082
|
-
let
|
|
12083
|
-
return e.paginate == "server" && e.itemsPerPage != null && (
|
|
12084
|
-
}), ge = D(() => (
|
|
12085
|
-
|
|
12086
|
-
}), ue = D(() => E.value.filter((
|
|
12087
|
-
let
|
|
12082
|
+
let ve = e.params != null ? { ...e.params } : {};
|
|
12083
|
+
return e.paginate == "server" && e.itemsPerPage != null && (ve.includeCount = !0, ve.takeAmount = e.itemsPerPage, ve.takeFrom = (x.value - 1) * e.itemsPerPage), q.value != null && (ve = { ...ve, ...q.value }), V.value && (ve.includeInactive = !0), pt(e.selectProps) && (ve.properties = (K = e.selectProps) == null ? void 0 : K.toString()), _.value != null && (ve.searchString = _.value), ve;
|
|
12084
|
+
}), ge = D(() => (ve) => e.onCanDelete != null ? e.onCanDelete(ve) : !(ve != null && ve.isInactive === !0)), me = D(() => (ve) => V.value ? e.onCanRestore != null ? e.onCanRestore(ve) : (ve == null ? void 0 : ve.isInactive) === !0 : !1), Fe = e.onUpdateAsyncItem ?? ((ve, K) => {
|
|
12085
|
+
ve.hasOwnProperty("rowVersion") && (ve.rowVersion = K.rowVersion), ve.hasOwnProperty("version") && (ve.version = K.version), ve.hasOwnProperty("isDeleted") && (ve.isDeleted = K.isDeleted), ve.hasOwnProperty("isInactive") && (ve.isInactive = K.isInactive);
|
|
12086
|
+
}), ue = D(() => E.value.filter((ve) => !ve.hide)), Ce = D(() => {
|
|
12087
|
+
let ve = new Array();
|
|
12088
12088
|
return ue.value.filter((se) => se.sublevel != null).forEach((se) => {
|
|
12089
|
-
let fe =
|
|
12090
|
-
fe == null ?
|
|
12091
|
-
}),
|
|
12089
|
+
let fe = ve.find((pe) => pe.position == se.sublevel);
|
|
12090
|
+
fe == null ? ve.push({ position: se.sublevel ?? 0, values: [se] }) : fe.values.push(se);
|
|
12091
|
+
}), ve.sort(ml.firstBy((se) => se.position));
|
|
12092
12092
|
}), Ne = D(() => {
|
|
12093
|
-
let
|
|
12093
|
+
let ve = new Array();
|
|
12094
12094
|
return ue.value.filter((se) => se.level != null).forEach((se) => {
|
|
12095
|
-
let fe =
|
|
12096
|
-
fe == null ?
|
|
12097
|
-
}),
|
|
12098
|
-
}), nt = D(() => ue.value.filter((
|
|
12099
|
-
function ht(
|
|
12095
|
+
let fe = ve.find((pe) => pe.position == se.level);
|
|
12096
|
+
fe == null ? ve.push({ position: se.level ?? 0, values: [se] }) : fe.values.push(se);
|
|
12097
|
+
}), ve.sort(ml.firstBy((se) => se.position));
|
|
12098
|
+
}), nt = D(() => ue.value.filter((ve) => ve.nav != null && ve.itemText != null || ve.textFilter != null || ve.display != null || ve.bool != null));
|
|
12099
|
+
function ht(ve) {
|
|
12100
12100
|
var se;
|
|
12101
12101
|
const K = e.addBladeName ?? e.itemBladeName;
|
|
12102
|
-
K != null && (
|
|
12102
|
+
K != null && (ve == "page" ? (se = n == null ? void 0 : n.router) == null || se.push({
|
|
12103
12103
|
name: K,
|
|
12104
12104
|
params: { id: "new" }
|
|
12105
|
-
}) :
|
|
12105
|
+
}) : ve == "blade" && (i == null || i.updateBlade({
|
|
12106
12106
|
data: { id: "new" },
|
|
12107
12107
|
bladeName: K
|
|
12108
12108
|
})));
|
|
12109
12109
|
}
|
|
12110
|
-
function Ue(
|
|
12111
|
-
const K = r(
|
|
12110
|
+
function Ue(ve) {
|
|
12111
|
+
const K = r(ve), {
|
|
12112
12112
|
additionalUrl: se,
|
|
12113
12113
|
onDeleteAsync: fe
|
|
12114
12114
|
} = { ...e };
|
|
@@ -12120,32 +12120,32 @@ function Gi(e, t, n) {
|
|
|
12120
12120
|
let zt = Le.findIndex(($n) => r($n) == $t);
|
|
12121
12121
|
zt > -1 && Le.splice(zt, 1);
|
|
12122
12122
|
} else {
|
|
12123
|
-
let zt = Le.findIndex(($n) => $n ===
|
|
12124
|
-
zt == -1 && (zt = Le.findIndex(($n) => $n ==
|
|
12123
|
+
let zt = Le.findIndex(($n) => $n === ve);
|
|
12124
|
+
zt == -1 && (zt = Le.findIndex(($n) => $n == ve)), zt > -1 && Le.splice(zt, 1);
|
|
12125
12125
|
}
|
|
12126
12126
|
};
|
|
12127
12127
|
e.localOnly == !0 || c == null ? h != "soft" ? (pe(I.value, K), pe(e.items, K)) : V.value || pe(L.value, K) : j({
|
|
12128
12128
|
additionalUrl: se,
|
|
12129
|
-
data:
|
|
12129
|
+
data: ve,
|
|
12130
12130
|
nav: c,
|
|
12131
12131
|
onCanDeleteAsync: e.onCanDeleteAsync,
|
|
12132
12132
|
onDeleteAsync: fe,
|
|
12133
|
-
onDeleteSuccessAsync: async (Le) => (h != "soft" ? (pe(I.value, K), pe(e.items, K)) : (Fe(
|
|
12133
|
+
onDeleteSuccessAsync: async (Le) => (h != "soft" ? (pe(I.value, K), pe(e.items, K)) : (Fe(ve, Le), V.value || pe(L.value, K)), e.onDeleteSuccessAsync != null ? e.onDeleteSuccessAsync(ve) : Promise.resolve(void 0)),
|
|
12134
12134
|
proxyID: C.value,
|
|
12135
12135
|
storeKey: u
|
|
12136
12136
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
12137
12137
|
// requireConfirmation: true
|
|
12138
|
-
}), t && t("deleted",
|
|
12138
|
+
}), t && t("deleted", ve);
|
|
12139
12139
|
}
|
|
12140
|
-
function kn(
|
|
12140
|
+
function kn(ve) {
|
|
12141
12141
|
const {
|
|
12142
12142
|
additionalUrl: K,
|
|
12143
12143
|
onRestoreAsync: se,
|
|
12144
|
-
onRestoreSuccessAsync: fe = (pe) => (Fe(
|
|
12144
|
+
onRestoreSuccessAsync: fe = (pe) => (Fe(ve, pe), pe)
|
|
12145
12145
|
} = { ...e };
|
|
12146
12146
|
return oe({
|
|
12147
12147
|
additionalUrl: K,
|
|
12148
|
-
data:
|
|
12148
|
+
data: ve,
|
|
12149
12149
|
nav: c,
|
|
12150
12150
|
onRestoreAsync: se,
|
|
12151
12151
|
onRestoreSuccessAsync: fe,
|
|
@@ -12155,8 +12155,8 @@ function Gi(e, t, n) {
|
|
|
12155
12155
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
12156
12156
|
});
|
|
12157
12157
|
}
|
|
12158
|
-
function rn(
|
|
12159
|
-
const K = tt(
|
|
12158
|
+
function rn(ve) {
|
|
12159
|
+
const K = tt(ve), {
|
|
12160
12160
|
additionalUrl: se,
|
|
12161
12161
|
onCanSaveAsync: fe,
|
|
12162
12162
|
onGetSaveAsync: pe,
|
|
@@ -12175,9 +12175,9 @@ function Gi(e, t, n) {
|
|
|
12175
12175
|
storeKey: u
|
|
12176
12176
|
});
|
|
12177
12177
|
}
|
|
12178
|
-
function Pn(
|
|
12178
|
+
function Pn() {
|
|
12179
12179
|
O(() => {
|
|
12180
|
-
|
|
12180
|
+
a.exportToCSV({ headers: ue.value, items: f == "session" ? L.value : I.value });
|
|
12181
12181
|
}, { loadingMsg: "Exporting to CSV" });
|
|
12182
12182
|
}
|
|
12183
12183
|
function Rt() {
|
|
@@ -12185,37 +12185,37 @@ function Gi(e, t, n) {
|
|
|
12185
12185
|
L.value = [];
|
|
12186
12186
|
return;
|
|
12187
12187
|
}
|
|
12188
|
-
let
|
|
12188
|
+
let ve = e.onFilter ? e.onFilter(I.value) : I.value;
|
|
12189
12189
|
if (pt(e.localFilters) && d.value.forEach((K) => {
|
|
12190
12190
|
var fe;
|
|
12191
12191
|
const se = (fe = e.localFilters) == null ? void 0 : fe.find((pe) => pe.name == y.value[K]);
|
|
12192
|
-
se != null && (se.onFilter != null ?
|
|
12192
|
+
se != null && (se.onFilter != null ? ve = se.onFilter(ve) : se.predicate != null && (ve = ve.filter((pe) => se.predicate(pe))));
|
|
12193
12193
|
}), e.inactiveProp != null && !V.value) {
|
|
12194
12194
|
const K = e.inactiveProp;
|
|
12195
|
-
|
|
12195
|
+
ve = ve.filter((se) => se[K] !== !0);
|
|
12196
12196
|
}
|
|
12197
12197
|
if (_.value != null && _.value.length > 0) {
|
|
12198
12198
|
let K = [...z.value];
|
|
12199
|
-
e.itemText && K.push(e.itemText), pt(K) && (
|
|
12199
|
+
e.itemText && K.push(e.itemText), pt(K) && (ve = ve.filter((se) => rx(se, _.value, K)));
|
|
12200
12200
|
}
|
|
12201
12201
|
if (e.paginate == "local" && vl(_.value) && e.itemsPerPage != null) {
|
|
12202
12202
|
let K = (x.value - 1) * e.itemsPerPage, se = K + e.itemsPerPage;
|
|
12203
|
-
se >=
|
|
12203
|
+
se >= ve.length && (se = ve.length - 1), ve = ve.slice(K, se);
|
|
12204
12204
|
}
|
|
12205
|
-
L.value =
|
|
12205
|
+
L.value = ve;
|
|
12206
12206
|
}
|
|
12207
12207
|
function za() {
|
|
12208
|
-
const
|
|
12209
|
-
e.headers != null && (E.value = [...e.headers],
|
|
12208
|
+
const ve = (n == null ? void 0 : n.hideActions) ?? e.hideActions;
|
|
12209
|
+
e.headers != null && (E.value = [...e.headers], ve || E.value.push({ title: "Actions", value: "itemActions", align: "end" }));
|
|
12210
12210
|
}
|
|
12211
|
-
function il(
|
|
12212
|
-
if (e.itemsPerPage == null ||
|
|
12211
|
+
function il(ve, K) {
|
|
12212
|
+
if (e.itemsPerPage == null || ve == null || ve.length == 0)
|
|
12213
12213
|
return;
|
|
12214
12214
|
const se = typeof e.itemsPerPage == "string" ? Number.parseInt(e.itemsPerPage) : e.itemsPerPage;
|
|
12215
|
-
se <= 0 || (e.paginate == "server" ? K != null && (Oe.value = Math.ceil(K / se)) : e.paginate == "local" && (Oe.value = Math.ceil(
|
|
12215
|
+
se <= 0 || (e.paginate == "server" ? K != null && (Oe.value = Math.ceil(K / se)) : e.paginate == "local" && (Oe.value = Math.ceil(ve.length / se)));
|
|
12216
12216
|
}
|
|
12217
|
-
async function Sn(
|
|
12218
|
-
if (_e.value = !1, (
|
|
12217
|
+
async function Sn(ve) {
|
|
12218
|
+
if (_e.value = !1, (ve == null ? void 0 : ve.resetSearch) === !0 && (re.value = !1, _.value = void 0), e.items != null) {
|
|
12219
12219
|
let K = { data: e.items };
|
|
12220
12220
|
ee.value = "Loading";
|
|
12221
12221
|
let se = e.onGetSuccessAsync != null ? await e.onGetSuccessAsync(K) : K;
|
|
@@ -12234,7 +12234,7 @@ function Gi(e, t, n) {
|
|
|
12234
12234
|
...o ? i == null ? void 0 : i.bladeData.data.params : {}
|
|
12235
12235
|
},
|
|
12236
12236
|
proxyID: C.value,
|
|
12237
|
-
refresh: (
|
|
12237
|
+
refresh: (ve == null ? void 0 : ve.deepRefresh) ?? !1,
|
|
12238
12238
|
storeKey: u,
|
|
12239
12239
|
onGetAsync: e.onGetSingleAsync,
|
|
12240
12240
|
onGetSuccessAsync: e.onGetSingleSuccessAsync
|
|
@@ -12255,7 +12255,7 @@ function Gi(e, t, n) {
|
|
|
12255
12255
|
...o ? i == null ? void 0 : i.bladeData.data.params : {}
|
|
12256
12256
|
},
|
|
12257
12257
|
proxyID: C.value,
|
|
12258
|
-
refresh: (
|
|
12258
|
+
refresh: (ve == null ? void 0 : ve.deepRefresh) ?? !1,
|
|
12259
12259
|
storeKey: u,
|
|
12260
12260
|
onGetAsync: e.onGetAsync,
|
|
12261
12261
|
onGetSuccessAsync: e.onGetSuccessAsync
|
|
@@ -12268,9 +12268,9 @@ function Gi(e, t, n) {
|
|
|
12268
12268
|
}
|
|
12269
12269
|
Rt(), e.onFinished && e.onFinished(), t && t("fetched", I.value);
|
|
12270
12270
|
}
|
|
12271
|
-
function xl(
|
|
12271
|
+
function xl(ve, K) {
|
|
12272
12272
|
var fe;
|
|
12273
|
-
const se = tt(
|
|
12273
|
+
const se = tt(ve);
|
|
12274
12274
|
e.canUnselect ? R = se === R ? null : se : R = se ?? R, e.canSelect == !0 && (e.onCanSelectItem == null || e.onCanSelectItem(se)) && (e.onSelectItem != null ? e.onSelectItem(R) : K == "blade" && R == null ? i == null || i.closeBlade({ bladeName: e.itemBladeName }) : K == "page" ? (fe = n == null ? void 0 : n.router) == null || fe.push({
|
|
12275
12275
|
name: e.itemBladeName,
|
|
12276
12276
|
params: { id: se.id }
|
|
@@ -12288,8 +12288,8 @@ function Gi(e, t, n) {
|
|
|
12288
12288
|
f == "whole-last-updated" ? Rt() : await Sn();
|
|
12289
12289
|
}), xe(x, async () => {
|
|
12290
12290
|
await Sn();
|
|
12291
|
-
}), xe([ne, () => e.errorMsg], ([
|
|
12292
|
-
_e.value =
|
|
12291
|
+
}), xe([ne, () => e.errorMsg], ([ve, K]) => {
|
|
12292
|
+
_e.value = ve != null || K != null;
|
|
12293
12293
|
}), xe(() => e.refreshToggle, () => {
|
|
12294
12294
|
Sn({ deepRefresh: !0 });
|
|
12295
12295
|
}), xe(() => e.filterToggle, () => {
|
|
@@ -12299,8 +12299,8 @@ function Gi(e, t, n) {
|
|
|
12299
12299
|
}), Xu([() => e.items], () => {
|
|
12300
12300
|
Sn();
|
|
12301
12301
|
}), n != null && n.isNotSetup || kt(async () => {
|
|
12302
|
-
var
|
|
12303
|
-
e.eager == !0 && await Sn({ deepRefresh: ((K = (
|
|
12302
|
+
var ve, K;
|
|
12303
|
+
e.eager == !0 && await Sn({ deepRefresh: ((K = (ve = n == null ? void 0 : n.route) == null ? void 0 : ve.params) == null ? void 0 : K.refresh) == "true" });
|
|
12304
12304
|
}), {
|
|
12305
12305
|
add: ht,
|
|
12306
12306
|
asyncItems: I,
|
|
@@ -12315,7 +12315,7 @@ function Gi(e, t, n) {
|
|
|
12315
12315
|
headerOptions: E,
|
|
12316
12316
|
isDeletable: ge,
|
|
12317
12317
|
isLoading: le,
|
|
12318
|
-
isRestorable:
|
|
12318
|
+
isRestorable: me,
|
|
12319
12319
|
loadingMsg: Y,
|
|
12320
12320
|
refresh: Sn,
|
|
12321
12321
|
restoreItem: kn,
|
|
@@ -20911,8 +20911,8 @@ const xi = ke({
|
|
|
20911
20911
|
density: T.density,
|
|
20912
20912
|
"prepend-icon": "$file-delimited-outline",
|
|
20913
20913
|
subtitle: "Export To CSV",
|
|
20914
|
-
onClick:
|
|
20915
|
-
}, null, 8, ["density"])) : J("", !0),
|
|
20914
|
+
onClick: A(m).exportToCSV
|
|
20915
|
+
}, null, 8, ["density", "onClick"])) : J("", !0),
|
|
20916
20916
|
ye(T.$slots, "settings", {
|
|
20917
20917
|
items: A(m).filteredItems.value,
|
|
20918
20918
|
allItems: A(m).asyncItems.value,
|
|
@@ -20950,7 +20950,7 @@ const xi = ke({
|
|
|
20950
20950
|
placeholder: "Find",
|
|
20951
20951
|
variant: "outlined",
|
|
20952
20952
|
modelValue: A(m).searchString.value,
|
|
20953
|
-
"onUpdate:modelValue": V[
|
|
20953
|
+
"onUpdate:modelValue": V[5] || (V[5] = (L) => A(m).searchString.value = L)
|
|
20954
20954
|
}, null, 8, ["onClick:appendInner", "onClick:prependInner", "onKeyup", "density", "modelValue"])) : J("", !0)
|
|
20955
20955
|
]),
|
|
20956
20956
|
_: 1
|
|
@@ -20983,7 +20983,7 @@ const xi = ke({
|
|
|
20983
20983
|
"open-strategy": "multiple",
|
|
20984
20984
|
"select-strategy": "classic",
|
|
20985
20985
|
selected: A(m).selectedFilters.value,
|
|
20986
|
-
"onUpdate:selected": V[
|
|
20986
|
+
"onUpdate:selected": V[7] || (V[7] = (L) => A(m).selectedFilters.value = L)
|
|
20987
20987
|
}, {
|
|
20988
20988
|
default: F(() => [
|
|
20989
20989
|
(N(!0), de(Me, null, et(A(m).filters.value, (L, E) => (N(), te(ct, {
|
|
@@ -21014,7 +21014,7 @@ const xi = ke({
|
|
|
21014
21014
|
A(m).filtersChanged.value ? (N(), te(Ie, {
|
|
21015
21015
|
key: 0,
|
|
21016
21016
|
block: "",
|
|
21017
|
-
onClick: V[
|
|
21017
|
+
onClick: V[6] || (V[6] = () => A(m).refresh({ resetSearch: !0 })),
|
|
21018
21018
|
size: T.size
|
|
21019
21019
|
}, {
|
|
21020
21020
|
default: F(() => [
|
|
@@ -21074,7 +21074,7 @@ const xi = ke({
|
|
|
21074
21074
|
ref: r,
|
|
21075
21075
|
variant: "solo",
|
|
21076
21076
|
modelValue: A(m).searchString.value,
|
|
21077
|
-
"onUpdate:modelValue": V[
|
|
21077
|
+
"onUpdate:modelValue": V[8] || (V[8] = (R) => A(m).searchString.value = R)
|
|
21078
21078
|
}, null, 8, ["onClick", "onKeyup", "density", "modelValue"])) : J("", !0)
|
|
21079
21079
|
]),
|
|
21080
21080
|
_: 1
|
|
@@ -21102,7 +21102,7 @@ const xi = ke({
|
|
|
21102
21102
|
"select-strategy": T.selectSingle ? "single-independent" : "independent",
|
|
21103
21103
|
style: Pt(p.value),
|
|
21104
21104
|
selected: S.value,
|
|
21105
|
-
"onUpdate:selected": V[
|
|
21105
|
+
"onUpdate:selected": V[9] || (V[9] = (R) => S.value = R)
|
|
21106
21106
|
}, {
|
|
21107
21107
|
default: F(() => [
|
|
21108
21108
|
b(_a, {
|
|
@@ -21367,7 +21367,7 @@ const xi = ke({
|
|
|
21367
21367
|
A(vl)(T.paginate) ? J("", !0) : (N(), de("div", tM, [
|
|
21368
21368
|
b(RT, {
|
|
21369
21369
|
modelValue: A(m).currentPage.value,
|
|
21370
|
-
"onUpdate:modelValue": V[
|
|
21370
|
+
"onUpdate:modelValue": V[10] || (V[10] = (R) => A(m).currentPage.value = R),
|
|
21371
21371
|
length: A(m).totalPages.value
|
|
21372
21372
|
}, null, 8, ["modelValue", "length"])
|
|
21373
21373
|
]))
|
|
@@ -21381,7 +21381,7 @@ const xi = ke({
|
|
|
21381
21381
|
for (const [a, l] of t)
|
|
21382
21382
|
n[a] = l;
|
|
21383
21383
|
return n;
|
|
21384
|
-
}, aM = /* @__PURE__ */ qs(nM, [["__scopeId", "data-v-
|
|
21384
|
+
}, aM = /* @__PURE__ */ qs(nM, [["__scopeId", "data-v-21892303"]]);
|
|
21385
21385
|
/*!
|
|
21386
21386
|
* vue-use-spring v0.3.3
|
|
21387
21387
|
* (c) 2020-2024 Eduardo San Martin Morote
|
|
@@ -29745,26 +29745,26 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
29745
29745
|
const ge = l.disabledTimesConfig(l.order, q === "hours" ? Q : void 0);
|
|
29746
29746
|
return ge[q] ? !!((he = ge[q]) != null && he.includes(Q)) : !0;
|
|
29747
29747
|
}, P = (q, Q) => Q !== "hours" || g.value === "AM" ? q : q + 12, Z = (q) => {
|
|
29748
|
-
const Q = l.is24 ? 24 : 12, he = q === "hours" ? Q : 60, ge = +l[`${q}GridIncrement`],
|
|
29749
|
-
for (let ue =
|
|
29748
|
+
const Q = l.is24 ? 24 : 12, he = q === "hours" ? Q : 60, ge = +l[`${q}GridIncrement`], me = q === "hours" && !l.is24 ? ge : 0, Fe = [];
|
|
29749
|
+
for (let ue = me; ue < he; ue += ge)
|
|
29750
29750
|
Fe.push({ value: l.is24 ? ue : P(ue, q), text: ue < 10 ? `0${ue}` : `${ue}` });
|
|
29751
29751
|
return q === "hours" && !l.is24 && Fe.unshift({ value: g.value === "PM" ? 12 : 0, text: "12" }), ii(Fe, (ue) => ({ active: !1, disabled: c.value.times[q].includes(ue.value) || !G(ue.value, q) || R(q, ue.value) || p(q, ue.value) }));
|
|
29752
29752
|
}, j = (q) => q >= 0 ? q : 59, O = (q) => q >= 0 ? q : 23, G = (q, Q) => {
|
|
29753
|
-
const he = l.minTime ? M(Bu(l.minTime)) : null, ge = l.maxTime ? M(Bu(l.maxTime)) : null,
|
|
29753
|
+
const he = l.minTime ? M(Bu(l.minTime)) : null, ge = l.maxTime ? M(Bu(l.maxTime)) : null, me = M(
|
|
29754
29754
|
Bu(
|
|
29755
29755
|
k.value,
|
|
29756
29756
|
Q,
|
|
29757
29757
|
Q === "minutes" || Q === "seconds" ? j(q) : O(q)
|
|
29758
29758
|
)
|
|
29759
29759
|
);
|
|
29760
|
-
return he && ge ? (no(
|
|
29760
|
+
return he && ge ? (no(me, ge) || Or(me, ge)) && (li(me, he) || Or(me, he)) : he ? li(me, he) || Or(me, he) : ge ? no(me, ge) || Or(me, ge) : !0;
|
|
29761
29761
|
}, B = (q) => l[`no${q[0].toUpperCase() + q.slice(1)}Overlay`], oe = (q) => {
|
|
29762
29762
|
B(q) || (v[q] = !v[q], v[q] ? a("overlay-opened", q) : a("overlay-closed", q));
|
|
29763
29763
|
}, $ = (q) => q === "hours" ? yl : q === "minutes" ? Ul : ai, ne = () => {
|
|
29764
29764
|
w.value && clearTimeout(w.value);
|
|
29765
29765
|
}, ee = (q, Q = !0, he) => {
|
|
29766
|
-
const ge = Q ? T : V,
|
|
29767
|
-
G(+l[q] +
|
|
29766
|
+
const ge = Q ? T : V, me = Q ? +l[`${q}Increment`] : -+l[`${q}Increment`];
|
|
29767
|
+
G(+l[q] + me, q) && a(
|
|
29768
29768
|
`update:${q}`,
|
|
29769
29769
|
$(q)(ge({ [q]: +l[q] }, { [q]: +l[`${q}Increment`] }))
|
|
29770
29770
|
), !(he != null && he.keyboard) && u.value.timeArrowHoldThreshold && (w.value = setTimeout(() => {
|
|
@@ -29778,7 +29778,7 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
29778
29778
|
if (q && l.arrowNavigation) {
|
|
29779
29779
|
Array.isArray(d.value[Q]) ? d.value[Q][he] = q : d.value[Q] = [q];
|
|
29780
29780
|
const ge = d.value.reduce(
|
|
29781
|
-
(
|
|
29781
|
+
(me, Fe) => Fe.map((ue, Ce) => [...me[Ce] || [], Fe[Ce]]),
|
|
29782
29782
|
[]
|
|
29783
29783
|
);
|
|
29784
29784
|
i(l.closeTimePickerBtn), y.value && (ge[1] = ge[1].concat(y.value)), r(ge, l.order);
|
|
@@ -29787,10 +29787,10 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
29787
29787
|
return t({ openChildCmp: _e }), (q, Q) => {
|
|
29788
29788
|
var he;
|
|
29789
29789
|
return q.disabled ? J("", !0) : (N(), de("div", P3, [
|
|
29790
|
-
(N(!0), de(Me, null, et(I.value, (ge,
|
|
29790
|
+
(N(!0), de(Me, null, et(I.value, (ge, me) => {
|
|
29791
29791
|
var Fe, ue, Ce;
|
|
29792
29792
|
return N(), de("div", {
|
|
29793
|
-
key:
|
|
29793
|
+
key: me,
|
|
29794
29794
|
class: Je(z.value)
|
|
29795
29795
|
}, [
|
|
29796
29796
|
ge.separator ? (N(), de(Me, { key: 0 }, [
|
|
@@ -29798,7 +29798,7 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
29798
29798
|
], 64)) : (N(), de(Me, { key: 1 }, [
|
|
29799
29799
|
ze("button", {
|
|
29800
29800
|
ref_for: !0,
|
|
29801
|
-
ref: (Ne) => re(Ne,
|
|
29801
|
+
ref: (Ne) => re(Ne, me, 0),
|
|
29802
29802
|
type: "button",
|
|
29803
29803
|
class: Je({
|
|
29804
29804
|
dp__btn: !0,
|
|
@@ -29827,7 +29827,7 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
29827
29827
|
], 42, $3),
|
|
29828
29828
|
ze("button", {
|
|
29829
29829
|
ref_for: !0,
|
|
29830
|
-
ref: (Ne) => re(Ne,
|
|
29830
|
+
ref: (Ne) => re(Ne, me, 1),
|
|
29831
29831
|
type: "button",
|
|
29832
29832
|
"aria-label": (ue = A(o)) == null ? void 0 : ue.openTpOverlay(ge.type),
|
|
29833
29833
|
class: Je({
|
|
@@ -29854,7 +29854,7 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
29854
29854
|
], 42, F3),
|
|
29855
29855
|
ze("button", {
|
|
29856
29856
|
ref_for: !0,
|
|
29857
|
-
ref: (Ne) => re(Ne,
|
|
29857
|
+
ref: (Ne) => re(Ne, me, 2),
|
|
29858
29858
|
type: "button",
|
|
29859
29859
|
class: Je({
|
|
29860
29860
|
dp__btn: !0,
|
|
@@ -29903,8 +29903,8 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
29903
29903
|
onKeydown: Q[0] || (Q[0] = (ge) => A(Gn)(ge, () => le(), !0))
|
|
29904
29904
|
}, Be(g.value), 41, O3))
|
|
29905
29905
|
])),
|
|
29906
|
-
(N(!0), de(Me, null, et(L.value, (ge,
|
|
29907
|
-
key:
|
|
29906
|
+
(N(!0), de(Me, null, et(L.value, (ge, me) => (N(), te(Qn, {
|
|
29907
|
+
key: me,
|
|
29908
29908
|
name: A(m)(v[ge.type]),
|
|
29909
29909
|
css: A(h)
|
|
29910
29910
|
}, {
|
|
@@ -30637,14 +30637,14 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30637
30637
|
if (Q) {
|
|
30638
30638
|
const { width: he, height: ge } = Q.getBoundingClientRect();
|
|
30639
30639
|
h.value = re.value;
|
|
30640
|
-
let
|
|
30640
|
+
let me = { left: `${he / 2}px` }, Fe = -50;
|
|
30641
30641
|
if (await ot(), x.value[0]) {
|
|
30642
30642
|
const { left: ue, width: Ce } = x.value[0].getBoundingClientRect();
|
|
30643
|
-
ue < 0 && (
|
|
30643
|
+
ue < 0 && (me = { left: "0" }, Fe = 0, k.value.left = `${he / 2}px`), window.innerWidth < ue + Ce && (me = { right: "0" }, Fe = 0, k.value.left = `${Ce - he / 2}px`);
|
|
30644
30644
|
}
|
|
30645
30645
|
v.value = {
|
|
30646
30646
|
bottom: `${ge}px`,
|
|
30647
|
-
...
|
|
30647
|
+
...me,
|
|
30648
30648
|
transform: `translateX(${Fe}%)`
|
|
30649
30649
|
}, a("tooltip-open", re.marker);
|
|
30650
30650
|
}
|
|
@@ -30693,13 +30693,13 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30693
30693
|
ze("div", lL, [
|
|
30694
30694
|
re.weekNumbers ? (N(), de("div", rL, Be(re.weekNumName), 1)) : J("", !0),
|
|
30695
30695
|
(N(!0), de(Me, null, et(S.value, (Q, he) => {
|
|
30696
|
-
var ge,
|
|
30696
|
+
var ge, me;
|
|
30697
30697
|
return N(), de("div", {
|
|
30698
30698
|
key: he,
|
|
30699
30699
|
class: "dp__calendar_header_item",
|
|
30700
30700
|
role: "gridcell",
|
|
30701
30701
|
"data-test": "calendar-header",
|
|
30702
|
-
"aria-label": (
|
|
30702
|
+
"aria-label": (me = (ge = A(s)) == null ? void 0 : ge.weekDay) == null ? void 0 : me.call(ge, he)
|
|
30703
30703
|
}, [
|
|
30704
30704
|
re.$slots["calendar-header"] ? ye(re.$slots, "calendar-header", {
|
|
30705
30705
|
key: 0,
|
|
@@ -30735,51 +30735,51 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30735
30735
|
re.weekNumbers ? (N(), de("div", uL, [
|
|
30736
30736
|
ze("div", cL, Be(ee(he.days)), 1)
|
|
30737
30737
|
])) : J("", !0),
|
|
30738
|
-
(N(!0), de(Me, null, et(he.days, (
|
|
30738
|
+
(N(!0), de(Me, null, et(he.days, (me, Fe) => {
|
|
30739
30739
|
var ue, Ce, Ne;
|
|
30740
30740
|
return N(), de("div", {
|
|
30741
|
-
id: A(o1)(
|
|
30741
|
+
id: A(o1)(me.value),
|
|
30742
30742
|
ref_for: !0,
|
|
30743
30743
|
ref: (nt) => oe(nt, ge, Fe),
|
|
30744
30744
|
key: Fe + ge,
|
|
30745
30745
|
role: "gridcell",
|
|
30746
30746
|
class: "dp__calendar_item",
|
|
30747
|
-
"aria-selected": (
|
|
30748
|
-
"aria-disabled":
|
|
30749
|
-
"aria-label": (Ce = (ue = A(s)) == null ? void 0 : ue.day) == null ? void 0 : Ce.call(ue,
|
|
30747
|
+
"aria-selected": (me.classData.dp__active_date || me.classData.dp__range_start || me.classData.dp__range_start) ?? void 0,
|
|
30748
|
+
"aria-disabled": me.classData.dp__cell_disabled || void 0,
|
|
30749
|
+
"aria-label": (Ce = (ue = A(s)) == null ? void 0 : ue.day) == null ? void 0 : Ce.call(ue, me),
|
|
30750
30750
|
tabindex: "0",
|
|
30751
|
-
"data-test":
|
|
30752
|
-
onClick: _n((nt) => Y(nt,
|
|
30753
|
-
onKeydown: (nt) => A(Gn)(nt, () => re.$emit("select-date",
|
|
30754
|
-
onMouseenter: (nt) => P(
|
|
30755
|
-
onMouseleave: (nt) => Z(
|
|
30756
|
-
onMousedown: (nt) => _e(
|
|
30751
|
+
"data-test": me.value,
|
|
30752
|
+
onClick: _n((nt) => Y(nt, me), ["prevent"]),
|
|
30753
|
+
onKeydown: (nt) => A(Gn)(nt, () => re.$emit("select-date", me)),
|
|
30754
|
+
onMouseenter: (nt) => P(me, ge, Fe),
|
|
30755
|
+
onMouseleave: (nt) => Z(me),
|
|
30756
|
+
onMousedown: (nt) => _e(me),
|
|
30757
30757
|
onMouseup: Oe[0] || (Oe[0] = (nt) => p.value = !1)
|
|
30758
30758
|
}, [
|
|
30759
30759
|
ze("div", {
|
|
30760
|
-
class: Je(["dp__cell_inner",
|
|
30760
|
+
class: Je(["dp__cell_inner", me.classData])
|
|
30761
30761
|
}, [
|
|
30762
|
-
re.$slots.day && E.value(
|
|
30762
|
+
re.$slots.day && E.value(me) ? ye(re.$slots, "day", {
|
|
30763
30763
|
key: 0,
|
|
30764
|
-
day: +
|
|
30765
|
-
date:
|
|
30764
|
+
day: +me.text,
|
|
30765
|
+
date: me.value
|
|
30766
30766
|
}) : J("", !0),
|
|
30767
30767
|
re.$slots.day ? J("", !0) : (N(), de(Me, { key: 1 }, [
|
|
30768
|
-
We(Be(
|
|
30768
|
+
We(Be(me.text), 1)
|
|
30769
30769
|
], 64)),
|
|
30770
|
-
|
|
30770
|
+
me.marker && E.value(me) ? (N(), de(Me, { key: 2 }, [
|
|
30771
30771
|
re.$slots.marker ? ye(re.$slots, "marker", {
|
|
30772
30772
|
key: 0,
|
|
30773
|
-
marker:
|
|
30774
|
-
day: +
|
|
30775
|
-
date:
|
|
30773
|
+
marker: me.marker,
|
|
30774
|
+
day: +me.text,
|
|
30775
|
+
date: me.value
|
|
30776
30776
|
}) : (N(), de("div", {
|
|
30777
30777
|
key: 1,
|
|
30778
|
-
class: Je(z.value(
|
|
30779
|
-
style: Pt(
|
|
30778
|
+
class: Je(z.value(me.marker)),
|
|
30779
|
+
style: Pt(me.marker.color ? { backgroundColor: me.marker.color } : {})
|
|
30780
30780
|
}, null, 6))
|
|
30781
30781
|
], 64)) : J("", !0),
|
|
30782
|
-
I.value(
|
|
30782
|
+
I.value(me.value) ? (N(), de("div", {
|
|
30783
30783
|
key: 3,
|
|
30784
30784
|
ref_for: !0,
|
|
30785
30785
|
ref_key: "activeTooltip",
|
|
@@ -30787,19 +30787,19 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30787
30787
|
class: "dp__marker_tooltip",
|
|
30788
30788
|
style: Pt(v.value)
|
|
30789
30789
|
}, [
|
|
30790
|
-
(Ne =
|
|
30790
|
+
(Ne = me.marker) != null && Ne.tooltip ? (N(), de("div", {
|
|
30791
30791
|
key: 0,
|
|
30792
30792
|
class: "dp__tooltip_content",
|
|
30793
30793
|
onClick: le
|
|
30794
30794
|
}, [
|
|
30795
|
-
(N(!0), de(Me, null, et(
|
|
30795
|
+
(N(!0), de(Me, null, et(me.marker.tooltip, (nt, ht) => (N(), de("div", {
|
|
30796
30796
|
key: ht,
|
|
30797
30797
|
class: "dp__tooltip_text"
|
|
30798
30798
|
}, [
|
|
30799
30799
|
re.$slots["marker-tooltip"] ? ye(re.$slots, "marker-tooltip", {
|
|
30800
30800
|
key: 0,
|
|
30801
30801
|
tooltip: nt,
|
|
30802
|
-
day:
|
|
30802
|
+
day: me.value
|
|
30803
30803
|
}) : J("", !0),
|
|
30804
30804
|
re.$slots["marker-tooltip"] ? J("", !0) : (N(), de(Me, { key: 1 }, [
|
|
30805
30805
|
ze("div", {
|
|
@@ -30928,7 +30928,7 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30928
30928
|
}, ge = (K) => {
|
|
30929
30929
|
if (d.value.markers)
|
|
30930
30930
|
return ks(K.value, d.value.markers);
|
|
30931
|
-
},
|
|
30931
|
+
}, me = (K, se) => {
|
|
30932
30932
|
switch (e.sixWeeks === !0 ? "append" : e.sixWeeks) {
|
|
30933
30933
|
case "prepend":
|
|
30934
30934
|
return [!0, !1];
|
|
@@ -30943,7 +30943,7 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
30943
30943
|
}
|
|
30944
30944
|
}, Fe = (K, se, fe, pe) => {
|
|
30945
30945
|
if (e.sixWeeks && K.length < 6) {
|
|
30946
|
-
const Le = 6 - K.length, $t = (se.getDay() + 7 - pe) % 7, zt = 6 - (fe.getDay() + 7 - pe) % 7, [$n, Sr] =
|
|
30946
|
+
const Le = 6 - K.length, $t = (se.getDay() + 7 - pe) % 7, zt = 6 - (fe.getDay() + 7 - pe) % 7, [$n, Sr] = me($t, zt);
|
|
30947
30947
|
for (let Gl = 1; Gl <= Le; Gl++)
|
|
30948
30948
|
if (Sr ? !!(Gl % 2) == $n : $n) {
|
|
30949
30949
|
const Wa = K[0].days[0], Si = ue(Ca(Wa.value, -7), ut(se));
|
|
@@ -31045,14 +31045,14 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31045
31045
|
}, Sl = () => {
|
|
31046
31046
|
if (Array.isArray(s.value))
|
|
31047
31047
|
if (w.value.enabled) {
|
|
31048
|
-
const K =
|
|
31048
|
+
const K = ve();
|
|
31049
31049
|
s.value[s.value.length - 1] = S(K);
|
|
31050
31050
|
} else
|
|
31051
31051
|
s.value = s.value.map((K, se) => K && S(K, se));
|
|
31052
31052
|
else
|
|
31053
31053
|
s.value = S(s.value);
|
|
31054
31054
|
t("time-update");
|
|
31055
|
-
},
|
|
31055
|
+
}, ve = () => Array.isArray(s.value) && s.value.length ? s.value[s.value.length - 1] : null;
|
|
31056
31056
|
return {
|
|
31057
31057
|
calendars: c,
|
|
31058
31058
|
modelValue: s,
|
|
@@ -31169,10 +31169,10 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31169
31169
|
}, Y = (q, Q) => {
|
|
31170
31170
|
var he;
|
|
31171
31171
|
if (!l.range) {
|
|
31172
|
-
const ge = s.value ? s.value : f,
|
|
31172
|
+
const ge = s.value ? s.value : f, me = Q ? new Date(Q) : ge, Fe = q ? Ea(me, { weekStartsOn: 1 }) : Np(me, { weekStartsOn: 1 });
|
|
31173
31173
|
w({
|
|
31174
31174
|
value: Fe,
|
|
31175
|
-
current: ut(
|
|
31175
|
+
current: ut(me) === i.value(0),
|
|
31176
31176
|
text: "",
|
|
31177
31177
|
classData: {}
|
|
31178
31178
|
}), (he = document.getElementById(o1(Fe))) == null || he.focus();
|
|
@@ -31217,8 +31217,8 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31217
31217
|
default: F(({ instance: he, index: ge }) => [
|
|
31218
31218
|
q.disableMonthYearSelect ? J("", !0) : (N(), te(nL, be({
|
|
31219
31219
|
key: 0,
|
|
31220
|
-
ref: (
|
|
31221
|
-
|
|
31220
|
+
ref: (me) => {
|
|
31221
|
+
me && (I.value[ge] = me);
|
|
31222
31222
|
},
|
|
31223
31223
|
months: A(Kp)(q.formatLocale, q.locale, q.monthNameFormat),
|
|
31224
31224
|
years: A(yf)(q.yearRange, q.locale, q.reverseYears),
|
|
@@ -31226,42 +31226,42 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31226
31226
|
year: A(o)(he),
|
|
31227
31227
|
instance: he
|
|
31228
31228
|
}, q.$props, {
|
|
31229
|
-
onMount: Q[0] || (Q[0] = (
|
|
31230
|
-
onResetFlow: Q[1] || (Q[1] = (
|
|
31231
|
-
onUpdateMonthYear: (
|
|
31229
|
+
onMount: Q[0] || (Q[0] = (me) => j(A(fr).header)),
|
|
31230
|
+
onResetFlow: Q[1] || (Q[1] = (me) => q.$emit("reset-flow")),
|
|
31231
|
+
onUpdateMonthYear: (me) => A(M)(he, me),
|
|
31232
31232
|
onOverlayClosed: Oe,
|
|
31233
|
-
onOverlayOpened: Q[2] || (Q[2] = (
|
|
31233
|
+
onOverlayOpened: Q[2] || (Q[2] = (me) => q.$emit("overlay-toggle", { open: !0, overlay: me }))
|
|
31234
31234
|
}), yn({ _: 2 }, [
|
|
31235
|
-
et(A(P), (
|
|
31236
|
-
name:
|
|
31235
|
+
et(A(P), (me, Fe) => ({
|
|
31236
|
+
name: me,
|
|
31237
31237
|
fn: F((ue) => [
|
|
31238
|
-
ye(q.$slots,
|
|
31238
|
+
ye(q.$slots, me, Vt(tn(ue)))
|
|
31239
31239
|
])
|
|
31240
31240
|
}))
|
|
31241
31241
|
]), 1040, ["months", "years", "month", "year", "instance", "onUpdateMonthYear"])),
|
|
31242
31242
|
b(fL, be({
|
|
31243
|
-
ref: (
|
|
31244
|
-
|
|
31243
|
+
ref: (me) => {
|
|
31244
|
+
me && (L.value[ge] = me);
|
|
31245
31245
|
},
|
|
31246
31246
|
"mapped-dates": O.value(he),
|
|
31247
31247
|
month: A(i)(he),
|
|
31248
31248
|
year: A(o)(he),
|
|
31249
31249
|
instance: he
|
|
31250
31250
|
}, q.$props, {
|
|
31251
|
-
onSelectDate: (
|
|
31252
|
-
onHandleSpace: (
|
|
31253
|
-
onSetHoverDate: Q[3] || (Q[3] = (
|
|
31254
|
-
onHandleScroll: (
|
|
31255
|
-
onHandleSwipe: (
|
|
31256
|
-
onMount: Q[4] || (Q[4] = (
|
|
31257
|
-
onResetFlow: Q[5] || (Q[5] = (
|
|
31258
|
-
onTooltipOpen: Q[6] || (Q[6] = (
|
|
31259
|
-
onTooltipClose: Q[7] || (Q[7] = (
|
|
31251
|
+
onSelectDate: (me) => A(w)(me, he !== 1),
|
|
31252
|
+
onHandleSpace: (me) => oe(me, he !== 1),
|
|
31253
|
+
onSetHoverDate: Q[3] || (Q[3] = (me) => A(_)(me)),
|
|
31254
|
+
onHandleScroll: (me) => A(y)(me, he),
|
|
31255
|
+
onHandleSwipe: (me) => A(d)(me, he),
|
|
31256
|
+
onMount: Q[4] || (Q[4] = (me) => j(A(fr).calendar)),
|
|
31257
|
+
onResetFlow: Q[5] || (Q[5] = (me) => q.$emit("reset-flow")),
|
|
31258
|
+
onTooltipOpen: Q[6] || (Q[6] = (me) => q.$emit("tooltip-open", me)),
|
|
31259
|
+
onTooltipClose: Q[7] || (Q[7] = (me) => q.$emit("tooltip-close", me))
|
|
31260
31260
|
}), yn({ _: 2 }, [
|
|
31261
|
-
et(A(R), (
|
|
31262
|
-
name:
|
|
31261
|
+
et(A(R), (me, Fe) => ({
|
|
31262
|
+
name: me,
|
|
31263
31263
|
fn: F((ue) => [
|
|
31264
|
-
ye(q.$slots,
|
|
31264
|
+
ye(q.$slots, me, Vt(tn({ ...ue })))
|
|
31265
31265
|
])
|
|
31266
31266
|
}))
|
|
31267
31267
|
]), 1040, ["mapped-dates", "month", "year", "instance", "onSelectDate", "onHandleSpace", "onHandleScroll", "onHandleSwipe"])
|
|
@@ -31291,8 +31291,8 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31291
31291
|
}), yn({ _: 2 }, [
|
|
31292
31292
|
et(A(Z), (he, ge) => ({
|
|
31293
31293
|
name: he,
|
|
31294
|
-
fn: F((
|
|
31295
|
-
ye(q.$slots, he, Vt(tn(
|
|
31294
|
+
fn: F((me) => [
|
|
31295
|
+
ye(q.$slots, he, Vt(tn(me)))
|
|
31296
31296
|
])
|
|
31297
31297
|
}))
|
|
31298
31298
|
]), 1040, ["hours", "minutes", "seconds", "internal-model-value", "disabled-times-config", "validate-time"]))
|
|
@@ -31619,7 +31619,7 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31619
31619
|
Oe("clearHoverDate");
|
|
31620
31620
|
}, ge = (ue, Ce) => {
|
|
31621
31621
|
Oe("updateMonthYear", ue, Ce);
|
|
31622
|
-
},
|
|
31622
|
+
}, me = (ue, Ce) => {
|
|
31623
31623
|
ue.preventDefault(), ee(Ce);
|
|
31624
31624
|
}, Fe = (ue) => {
|
|
31625
31625
|
var Ce;
|
|
@@ -31633,13 +31633,13 @@ const qA = (e, t) => e == null ? void 0 : e.querySelector(`[data-dp-element="${t
|
|
|
31633
31633
|
case Wt.esc:
|
|
31634
31634
|
return ne();
|
|
31635
31635
|
case Wt.arrowLeft:
|
|
31636
|
-
return
|
|
31636
|
+
return me(ue, Nn.left);
|
|
31637
31637
|
case Wt.arrowRight:
|
|
31638
|
-
return
|
|
31638
|
+
return me(ue, Nn.right);
|
|
31639
31639
|
case Wt.arrowUp:
|
|
31640
|
-
return
|
|
31640
|
+
return me(ue, Nn.up);
|
|
31641
31641
|
case Wt.arrowDown:
|
|
31642
|
-
return
|
|
31642
|
+
return me(ue, Nn.down);
|
|
31643
31643
|
default:
|
|
31644
31644
|
return;
|
|
31645
31645
|
}
|
|
@@ -32537,13 +32537,13 @@ const DL = ({
|
|
|
32537
32537
|
ne(l.modelValue), ot().then(() => {
|
|
32538
32538
|
if (!_.value.enabled) {
|
|
32539
32539
|
const fe = G(h.value);
|
|
32540
|
-
fe == null || fe.addEventListener("scroll", ge), window == null || window.addEventListener("resize",
|
|
32540
|
+
fe == null || fe.addEventListener("scroll", ge), window == null || window.addEventListener("resize", me);
|
|
32541
32541
|
}
|
|
32542
32542
|
}), _.value.enabled && (i.value = !0), window == null || window.addEventListener("keyup", Fe), window == null || window.addEventListener("keydown", ue);
|
|
32543
32543
|
}), pl(() => {
|
|
32544
32544
|
if (!_.value.enabled) {
|
|
32545
32545
|
const fe = G(h.value);
|
|
32546
|
-
fe == null || fe.removeEventListener("scroll", ge), window == null || window.removeEventListener("resize",
|
|
32546
|
+
fe == null || fe.removeEventListener("scroll", ge), window == null || window.removeEventListener("resize", me);
|
|
32547
32547
|
}
|
|
32548
32548
|
window == null || window.removeEventListener("keyup", Fe), window == null || window.removeEventListener("keydown", ue);
|
|
32549
32549
|
});
|
|
@@ -32588,7 +32588,7 @@ const DL = ({
|
|
|
32588
32588
|
return (pe = (fe = f.value) == null ? void 0 : fe.$el) == null ? void 0 : pe.getBoundingClientRect();
|
|
32589
32589
|
}, ge = () => {
|
|
32590
32590
|
i.value && (T.value.closeOnScroll ? Rt() : O());
|
|
32591
|
-
},
|
|
32591
|
+
}, me = () => {
|
|
32592
32592
|
var fe;
|
|
32593
32593
|
i.value && O();
|
|
32594
32594
|
const pe = (fe = u.value) == null ? void 0 : fe.$el.getBoundingClientRect().width;
|
|
@@ -32645,7 +32645,7 @@ const DL = ({
|
|
|
32645
32645
|
});
|
|
32646
32646
|
}, Sl = (fe) => {
|
|
32647
32647
|
ne(fe ?? l.modelValue);
|
|
32648
|
-
},
|
|
32648
|
+
}, ve = (fe, pe) => {
|
|
32649
32649
|
var Le;
|
|
32650
32650
|
(Le = u.value) == null || Le.switchView(fe, pe);
|
|
32651
32651
|
}, K = (fe) => T.value.onClickOutside ? T.value.onClickOutside(fe) : Rt(), se = (fe = 0) => {
|
|
@@ -32664,7 +32664,7 @@ const DL = ({
|
|
|
32664
32664
|
// modify internal modelValue
|
|
32665
32665
|
setMonthYear: Ha,
|
|
32666
32666
|
parseModel: Sl,
|
|
32667
|
-
switchView:
|
|
32667
|
+
switchView: ve,
|
|
32668
32668
|
toggleMenu: Sn,
|
|
32669
32669
|
handleFlow: se
|
|
32670
32670
|
}), (fe, pe) => (N(), de("div", {
|
|
@@ -35280,8 +35280,8 @@ const II = ke({
|
|
|
35280
35280
|
var he;
|
|
35281
35281
|
if (T.value = Q ?? "", !e.multiple && !_.value && (p.value = [Pl(e, Q)]), Q && e.multiple && ((he = e.delimiters) != null && he.length)) {
|
|
35282
35282
|
const ge = Q.split(new RegExp(`(?:${e.delimiters.join("|")})+`));
|
|
35283
|
-
ge.length > 1 && (ge.forEach((
|
|
35284
|
-
|
|
35283
|
+
ge.length > 1 && (ge.forEach((me) => {
|
|
35284
|
+
me = me.trim(), me && le(Pl(e, me));
|
|
35285
35285
|
}), T.value = "");
|
|
35286
35286
|
}
|
|
35287
35287
|
Q || (h.value = -1), o.value = !Q;
|
|
@@ -35314,7 +35314,7 @@ const II = ke({
|
|
|
35314
35314
|
gc(Q) && ((he = r.value) == null || he.focus());
|
|
35315
35315
|
}
|
|
35316
35316
|
function ne(Q) {
|
|
35317
|
-
var
|
|
35317
|
+
var me;
|
|
35318
35318
|
if (fk(Q) || e.readonly || C != null && C.isReadonly.value)
|
|
35319
35319
|
return;
|
|
35320
35320
|
const he = r.value.selectionStart, ge = p.value.length;
|
|
@@ -35323,7 +35323,7 @@ const II = ke({
|
|
|
35323
35323
|
value: ue
|
|
35324
35324
|
} = Fe;
|
|
35325
35325
|
return ue === E.value[0].value;
|
|
35326
|
-
}) && le(I.value[0]), o.value = !0), Q.key === "ArrowDown" && P.value && ((
|
|
35326
|
+
}) && le(I.value[0]), o.value = !0), Q.key === "ArrowDown" && P.value && ((me = j.value) == null || me.focus("next")), Q.key === "Enter" && V.value && (le(Pl(e, V.value)), _.value && (T.value = "")), ["Backspace", "Delete"].includes(Q.key)) {
|
|
35327
35327
|
if (!e.multiple && _.value && p.value.length > 0 && !V.value)
|
|
35328
35328
|
return le(p.value[0], !1);
|
|
35329
35329
|
if (~h.value) {
|
|
@@ -35359,12 +35359,12 @@ const II = ke({
|
|
|
35359
35359
|
let he = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0;
|
|
35360
35360
|
if (!(!Q || Q.props.disabled))
|
|
35361
35361
|
if (e.multiple) {
|
|
35362
|
-
const ge = p.value.findIndex((Fe) => e.valueComparator(Fe.value, Q.value)),
|
|
35362
|
+
const ge = p.value.findIndex((Fe) => e.valueComparator(Fe.value, Q.value)), me = he ?? !~ge;
|
|
35363
35363
|
if (~ge) {
|
|
35364
|
-
const Fe =
|
|
35364
|
+
const Fe = me ? [...p.value, Q] : [...p.value];
|
|
35365
35365
|
Fe.splice(ge, 1), p.value = Fe;
|
|
35366
35366
|
} else
|
|
35367
|
-
|
|
35367
|
+
me && (p.value = [...p.value, Q]);
|
|
35368
35368
|
e.clearOnSelect && (V.value = "");
|
|
35369
35369
|
} else {
|
|
35370
35370
|
const ge = he !== !1;
|
|
@@ -35394,9 +35394,9 @@ const II = ke({
|
|
|
35394
35394
|
return;
|
|
35395
35395
|
p.value.some((ge) => {
|
|
35396
35396
|
let {
|
|
35397
|
-
title:
|
|
35397
|
+
title: me
|
|
35398
35398
|
} = ge;
|
|
35399
|
-
return
|
|
35399
|
+
return me === V.value;
|
|
35400
35400
|
}) ? T.value = "" : le(Pl(e, V.value));
|
|
35401
35401
|
}
|
|
35402
35402
|
}), xe(m, () => {
|
|
@@ -35415,9 +35415,9 @@ const II = ke({
|
|
|
35415
35415
|
ref: r
|
|
35416
35416
|
}, ge, {
|
|
35417
35417
|
modelValue: V.value,
|
|
35418
|
-
"onUpdate:modelValue": [(
|
|
35418
|
+
"onUpdate:modelValue": [(me) => V.value = me, Oe],
|
|
35419
35419
|
focused: i.value,
|
|
35420
|
-
"onUpdate:focused": (
|
|
35420
|
+
"onUpdate:focused": (me) => i.value = me,
|
|
35421
35421
|
validationValue: p.externalValue,
|
|
35422
35422
|
counterValue: z.value,
|
|
35423
35423
|
dirty: he,
|
|
@@ -35439,7 +35439,7 @@ const II = ke({
|
|
|
35439
35439
|
default: () => b(Me, null, [b(In, be({
|
|
35440
35440
|
ref: c,
|
|
35441
35441
|
modelValue: m.value,
|
|
35442
|
-
"onUpdate:modelValue": (
|
|
35442
|
+
"onUpdate:modelValue": (me) => m.value = me,
|
|
35443
35443
|
activator: "parent",
|
|
35444
35444
|
contentClass: "v-combobox__content",
|
|
35445
35445
|
disabled: Z.value,
|
|
@@ -35455,7 +35455,7 @@ const II = ke({
|
|
|
35455
35455
|
ref: j,
|
|
35456
35456
|
selected: R.value,
|
|
35457
35457
|
selectStrategy: e.multiple ? "independent" : "single-independent",
|
|
35458
|
-
onMousedown: (
|
|
35458
|
+
onMousedown: (me) => me.preventDefault(),
|
|
35459
35459
|
onKeydown: $,
|
|
35460
35460
|
onFocusin: _e,
|
|
35461
35461
|
onFocusout: re,
|
|
@@ -35464,8 +35464,8 @@ const II = ke({
|
|
|
35464
35464
|
color: e.itemColor ?? e.color
|
|
35465
35465
|
}, O, e.listProps), {
|
|
35466
35466
|
default: () => {
|
|
35467
|
-
var
|
|
35468
|
-
return [(
|
|
35467
|
+
var me, Fe, ue;
|
|
35468
|
+
return [(me = a["prepend-item"]) == null ? void 0 : me.call(a), !E.value.length && !e.hideNoData && (((Fe = a["no-data"]) == null ? void 0 : Fe.call(a)) ?? b(ct, {
|
|
35469
35469
|
title: l(e.noDataText)
|
|
35470
35470
|
}, null)), b(Tf, {
|
|
35471
35471
|
ref: u,
|
|
@@ -35516,9 +35516,9 @@ const II = ke({
|
|
|
35516
35516
|
}), (ue = a["append-item"]) == null ? void 0 : ue.call(a)];
|
|
35517
35517
|
}
|
|
35518
35518
|
})]
|
|
35519
|
-
}), p.value.map((
|
|
35519
|
+
}), p.value.map((me, Fe) => {
|
|
35520
35520
|
function ue(ht) {
|
|
35521
|
-
ht.stopPropagation(), ht.preventDefault(), le(
|
|
35521
|
+
ht.stopPropagation(), ht.preventDefault(), le(me, !1);
|
|
35522
35522
|
}
|
|
35523
35523
|
const Ce = {
|
|
35524
35524
|
"onClick:close": ue,
|
|
@@ -35531,16 +35531,16 @@ const II = ke({
|
|
|
35531
35531
|
modelValue: !0,
|
|
35532
35532
|
"onUpdate:modelValue": void 0
|
|
35533
35533
|
}, Ne = S.value ? !!a.chip : !!a.selection, nt = Ne ? Md(S.value ? a.chip({
|
|
35534
|
-
item:
|
|
35534
|
+
item: me,
|
|
35535
35535
|
index: Fe,
|
|
35536
35536
|
props: Ce
|
|
35537
35537
|
}) : a.selection({
|
|
35538
|
-
item:
|
|
35538
|
+
item: me,
|
|
35539
35539
|
index: Fe
|
|
35540
35540
|
})) : void 0;
|
|
35541
35541
|
if (!(Ne && !nt))
|
|
35542
35542
|
return b("div", {
|
|
35543
|
-
key:
|
|
35543
|
+
key: me.value,
|
|
35544
35544
|
class: ["v-combobox__selection", Fe === h.value && ["v-combobox__selection--selected", x.value]],
|
|
35545
35545
|
style: Fe === h.value ? k.value : {}
|
|
35546
35546
|
}, [S.value ? a.chip ? b(It, {
|
|
@@ -35549,7 +35549,7 @@ const II = ke({
|
|
|
35549
35549
|
VChip: {
|
|
35550
35550
|
closable: e.closableChips,
|
|
35551
35551
|
size: "small",
|
|
35552
|
-
text:
|
|
35552
|
+
text: me.title
|
|
35553
35553
|
}
|
|
35554
35554
|
}
|
|
35555
35555
|
}, {
|
|
@@ -35558,17 +35558,17 @@ const II = ke({
|
|
|
35558
35558
|
key: "chip",
|
|
35559
35559
|
closable: e.closableChips,
|
|
35560
35560
|
size: "small",
|
|
35561
|
-
text:
|
|
35562
|
-
disabled:
|
|
35561
|
+
text: me.title,
|
|
35562
|
+
disabled: me.props.disabled
|
|
35563
35563
|
}, Ce), null) : nt ?? b("span", {
|
|
35564
35564
|
class: "v-combobox__selection-text"
|
|
35565
|
-
}, [
|
|
35565
|
+
}, [me.title, e.multiple && Fe < p.value.length - 1 && b("span", {
|
|
35566
35566
|
class: "v-combobox__selection-comma"
|
|
35567
35567
|
}, [We(",")])])]);
|
|
35568
35568
|
})]),
|
|
35569
35569
|
"append-inner": function() {
|
|
35570
35570
|
var Ce;
|
|
35571
|
-
for (var
|
|
35571
|
+
for (var me = arguments.length, Fe = new Array(me), ue = 0; ue < me; ue++)
|
|
35572
35572
|
Fe[ue] = arguments[ue];
|
|
35573
35573
|
return b(Me, null, [(Ce = a["append-inner"]) == null ? void 0 : Ce.call(a, ...Fe), (!e.hideNoData || e.items.length) && e.menuIcon ? b(it, {
|
|
35574
35574
|
class: "v-combobox__menu-icon",
|