bt-core-app 2.2.20 → 2.2.22
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/components/BT-Blade-Items.vue2.mjs +1 -0
- package/dist/components/BT-Blade-Steps.vue2.mjs +1 -0
- package/dist/components/BT-Cron.vue.mjs +283 -235
- package/dist/components/BT-Select-List-Box.vue.mjs +6 -5
- package/dist/components/BT-Select-Simple.vue.mjs +5 -4
- package/dist/components/BT-Select.vue.mjs +5 -4
- package/dist/composables/cron.d.ts +6 -1
- package/dist/composables/cron.mjs +183 -145
- package/dist/composables/list.d.ts +1 -0
- package/dist/composables/list.mjs +63 -63
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { useCSV as ca } from "./csv.mjs";
|
|
2
2
|
import { isNullOrEmpty as Ie, isLengthyArray as q, nestedValue as _, hasSearch as ia } from "./helpers.mjs";
|
|
3
3
|
import { t as j } from "../bt-core/core/node_modules/thenby/thenBy.module.mjs";
|
|
4
|
-
import { ref as y, toValue as V, computed as v, shallowRef as p, watch as C, onMounted as
|
|
5
|
-
import { useArrayUnique as
|
|
4
|
+
import { ref as y, toValue as V, computed as v, shallowRef as p, watch as C, onMounted as fa } from "vue";
|
|
5
|
+
import { useArrayUnique as da, useArrayDifference as Fe, watchDebounced as sa, watchArray as oe } from "@vueuse/core";
|
|
6
6
|
import { useActions as va } from "./actions.mjs";
|
|
7
7
|
import { useStoreDefinition as ya } from "./stores.mjs";
|
|
8
8
|
import { useNavigation as ma } from "./navigation.mjs";
|
|
9
9
|
import { useBlade as ha } from "./blade.mjs";
|
|
10
10
|
import { useDialogConfirm as ga } from "./dialog-items.mjs";
|
|
11
11
|
import { useUrlUpdater as Sa } from "./routing.mjs";
|
|
12
|
-
function Ua(a,
|
|
12
|
+
function Ua(a, o, r) {
|
|
13
13
|
var ge, Se, Pe, Ae;
|
|
14
14
|
const we = ca(), xe = ma(), Ne = Sa(), ee = (r == null ? void 0 : r.idSelector) ?? a.idSelector ?? ((e) => e.id), n = (r == null ? void 0 : r.isNotSetup) == !0 ? void 0 : ha({
|
|
15
15
|
bladeGroup: a.bladeGroup,
|
|
@@ -21,14 +21,14 @@ function Ua(a, F, r) {
|
|
|
21
21
|
bladeStartShowing: a.bladeStartShowing
|
|
22
22
|
}), w = a.useBladeSrc ?? !!a.bladeName, k = a.useRouteSrc ?? a.variant == "page", A = a.nav ?? a.bladeName ?? a.itemBladeName;
|
|
23
23
|
var h = xe.findItem(A);
|
|
24
|
-
const z = a.storeMode ?? (h == null ? void 0 : h.storeMode), Be = a.storageMode ?? (h == null ? void 0 : h.storageMode), ae = h == null ? void 0 : h.deleteStrat, le = y((h == null ? void 0 : h.externals) ?? []), U = y(), te = V(a.customFilters) ?? [], re = y([]), $ = v(() =>
|
|
24
|
+
const z = a.storeMode ?? (h == null ? void 0 : h.storeMode), Be = a.storageMode ?? (h == null ? void 0 : h.storageMode), ae = h == null ? void 0 : h.deleteStrat, le = y((h == null ? void 0 : h.externals) ?? []), U = y(), te = V(a.customFilters) ?? [], re = y([]), $ = v(() => da([
|
|
25
25
|
...(a.localFilters ?? []).filter((e) => e.predicate != null || e.onFilter != null).map((e) => e.name),
|
|
26
26
|
...te.filter((e) => e.name != null).map((e) => e.name),
|
|
27
27
|
...a.defaultFilters ?? [],
|
|
28
28
|
...re.value
|
|
29
29
|
]).value), M = y((a.defaultFilters ?? []).map((e) => $.value.indexOf(e)));
|
|
30
30
|
let J = y([...M.value]);
|
|
31
|
-
const Ce = v(() =>
|
|
31
|
+
const Ce = v(() => Fe(J, M).value.length > 0 || Fe(M, J).value.length > 0), Ue = y([]), x = y(Me());
|
|
32
32
|
function Me() {
|
|
33
33
|
var e, l, t, u;
|
|
34
34
|
if (w) {
|
|
@@ -56,13 +56,13 @@ function Ua(a, F, r) {
|
|
|
56
56
|
const T = y(V(a.startShowingInactive) ?? !1), Te = v(() => [
|
|
57
57
|
...a.searchProps ?? [],
|
|
58
58
|
...(a.headers ?? []).filter((e) => e.searchable != null && e.value != null).map((e) => e.value ?? "")
|
|
59
|
-
]),
|
|
59
|
+
]), d = y(), ie = y(), L = p([]), Q = y([]);
|
|
60
60
|
let N;
|
|
61
|
-
const b = a.onFinished ?? (r == null ? void 0 : r.onFinished), { actionErrorMsg: Ge, actionLoadingMsg: Le, deleteItem: be, doAction: qe, getItem: Ve, getAllItems: ke, restoreItem:
|
|
61
|
+
const b = a.onFinished ?? (r == null ? void 0 : r.onFinished), { actionErrorMsg: Ge, actionLoadingMsg: Le, deleteItem: be, doAction: qe, getItem: Ve, getAllItems: ke, restoreItem: Re, saveItem: Ke, syncItem: fe } = va({
|
|
62
62
|
nav: A,
|
|
63
63
|
onError: a.onError ?? (r == null ? void 0 : r.onError),
|
|
64
64
|
onFinished: () => {
|
|
65
|
-
b != null && b(
|
|
65
|
+
b != null && b(d.value);
|
|
66
66
|
},
|
|
67
67
|
proxyID: D.value,
|
|
68
68
|
store: A != null ? ya({
|
|
@@ -71,45 +71,45 @@ function Ua(a, F, r) {
|
|
|
71
71
|
nav: A,
|
|
72
72
|
proxyID: D.value
|
|
73
73
|
}) : void 0
|
|
74
|
-
}),
|
|
74
|
+
}), de = v(() => a.errorMsg ?? Ge.value), X = y(), se = v(() => X.value ?? a.loadingMsg ?? Le.value), He = v(() => se.value != null), Y = p(!1), R = p($e());
|
|
75
75
|
function $e() {
|
|
76
76
|
return a.startShowingSearch ? !0 : !Ie(ce());
|
|
77
77
|
}
|
|
78
78
|
const Z = y(0), ve = v(() => {
|
|
79
79
|
let e, l = [];
|
|
80
80
|
M.value.forEach((u) => {
|
|
81
|
-
const c = $.value[u], i = te.find((
|
|
81
|
+
const c = $.value[u], i = te.find((f) => f.name == c);
|
|
82
82
|
i != null ? e = e != null ? `${e}ANDALSO${i.filterFunction()}` : i.filterFunction() : l.push(c);
|
|
83
83
|
});
|
|
84
84
|
const t = {};
|
|
85
85
|
return q(l) && (t.filterBy = l.toString()), e != null && (t.query = e), t;
|
|
86
86
|
}), W = v(() => {
|
|
87
|
-
var l, t, u, c, i,
|
|
87
|
+
var l, t, u, c, i, f;
|
|
88
88
|
let e = a.itemID;
|
|
89
|
-
return e == null && w && (e = (t = (l = n == null ? void 0 : n.bladeData) == null ? void 0 : l.data) == null ? void 0 : t.id), e == null && k && (e = (c = (u = r == null ? void 0 : r.route) == null ? void 0 : u.query) == null ? void 0 : c.id), e == null && k && (e = (
|
|
89
|
+
return e == null && w && (e = (t = (l = n == null ? void 0 : n.bladeData) == null ? void 0 : l.data) == null ? void 0 : t.id), e == null && k && (e = (c = (u = r == null ? void 0 : r.route) == null ? void 0 : u.query) == null ? void 0 : c.id), e == null && k && (e = (f = (i = r == null ? void 0 : r.route) == null ? void 0 : i.params) == null ? void 0 : f.id), e;
|
|
90
90
|
}), E = y(W.value == "new" ? "new" : a.startEditing ? "edit" : "view"), ye = v(() => {
|
|
91
91
|
var u, c, i;
|
|
92
92
|
var e = a.params ?? {}, l = (r == null ? void 0 : r.params) ?? {};
|
|
93
93
|
let t = { ...e, ...l };
|
|
94
|
-
return a.paginate == "server" && a.itemsPerPage != null && (t.includeCount = !0, t.takeAmount = a.itemsPerPage, t.takeFrom = (x.value - 1) * a.itemsPerPage), ve.value != null && (t = { ...t, ...ve.value }), T.value && (t.includeInactive = !0), q(a.selectProps) && (t.properties = (u = a.selectProps) == null ? void 0 : u.toString()), S.value != null && (t.searchString = S.value), q(a.queryParams) && ((c = r == null ? void 0 : r.route) == null ? void 0 : c.query) != null && ((i = a.queryParams) == null || i.forEach((
|
|
95
|
-
var B, m, P,
|
|
96
|
-
typeof
|
|
94
|
+
return a.paginate == "server" && a.itemsPerPage != null && (t.includeCount = !0, t.takeAmount = a.itemsPerPage, t.takeFrom = (x.value - 1) * a.itemsPerPage), ve.value != null && (t = { ...t, ...ve.value }), T.value && (t.includeInactive = !0), q(a.selectProps) && (t.properties = (u = a.selectProps) == null ? void 0 : u.toString()), S.value != null && (t.searchString = S.value), q(a.queryParams) && ((c = r == null ? void 0 : r.route) == null ? void 0 : c.query) != null && ((i = a.queryParams) == null || i.forEach((f) => {
|
|
95
|
+
var B, m, P, H;
|
|
96
|
+
typeof f == "string" ? ((B = r.route) == null ? void 0 : B.query[f]) != null && (t[f] = (m = r.route) == null ? void 0 : m.query[f]) : ((P = r.route) == null ? void 0 : P.query[f.key]) != null && (t[f.value] = (H = r.route) == null ? void 0 : H.query[f.key]);
|
|
97
97
|
})), t;
|
|
98
98
|
}), Qe = v(() => (e) => a.onCanDelete != null ? a.onCanDelete(e) : !(e != null && e.isInactive === !0)), We = v(() => (e) => a.onCanIntegrate != null ? a.onCanIntegrate(e) : !(!q(le.value) || U.value == null || (e == null ? void 0 : e.isInactive) === !0)), _e = v(() => (e) => U.value != null ? !Ie(_(e, U.value.localIDProp)) : !1), je = v(() => (e) => T.value ? a.onCanRestore != null ? a.onCanRestore(e) : (e == null ? void 0 : e.isInactive) === !0 : !1), me = a.onUpdateAsyncItem ?? ((e, l) => {
|
|
99
99
|
l.hasOwnProperty("rowVersion") && (e.rowVersion = l.rowVersion), l.hasOwnProperty("version") && (e.version = l.version), l.hasOwnProperty("isDeleted") && (e.isDeleted = l.isDeleted), l.hasOwnProperty("isInactive") && (e.isInactive = l.isInactive), l.hasOwnProperty("id") && (e.id = l.id);
|
|
100
|
-
}),
|
|
100
|
+
}), K = v(() => Q.value.filter((e) => !e.hide)), ze = v(() => {
|
|
101
101
|
let e = new Array();
|
|
102
|
-
return
|
|
102
|
+
return K.value.filter((t) => t.sublevel != null).forEach((t) => {
|
|
103
103
|
let u = e.find((c) => c.position == t.sublevel);
|
|
104
104
|
u == null ? e.push({ position: t.sublevel ?? 0, values: [t] }) : u.values.push(t);
|
|
105
105
|
}), e.sort(j.firstBy((t) => t.position));
|
|
106
106
|
}), Je = v(() => {
|
|
107
107
|
let e = new Array();
|
|
108
|
-
return
|
|
108
|
+
return K.value.filter((t) => t.level != null).forEach((t) => {
|
|
109
109
|
let u = e.find((c) => c.position == t.level);
|
|
110
110
|
u == null ? e.push({ position: t.level ?? 0, values: [t] }) : u.values.push(t);
|
|
111
111
|
}), e.sort(j.firstBy((t) => t.position));
|
|
112
|
-
}), Xe = v(() =>
|
|
112
|
+
}), Xe = v(() => K.value.filter((e) => e.nav != null && e.itemText != null || e.textFilter != null || e.display != null || e.bool != null));
|
|
113
113
|
function Ye(e) {
|
|
114
114
|
U.value = e, Ue.value = [];
|
|
115
115
|
}
|
|
@@ -138,31 +138,31 @@ function Ua(a, F, r) {
|
|
|
138
138
|
if (!c.isConfirmed)
|
|
139
139
|
return;
|
|
140
140
|
}
|
|
141
|
-
const i = (
|
|
142
|
-
if (
|
|
141
|
+
const i = (f, B) => {
|
|
142
|
+
if (f == null || !Array.isArray(f))
|
|
143
143
|
return !1;
|
|
144
144
|
if (B != null) {
|
|
145
|
-
let m =
|
|
145
|
+
let m = f.findIndex((P) => ee(P) == B);
|
|
146
146
|
if (m > -1)
|
|
147
|
-
return
|
|
147
|
+
return f.splice(m, 1), !0;
|
|
148
148
|
} else {
|
|
149
|
-
let m =
|
|
150
|
-
if (m == -1 && (m =
|
|
151
|
-
return
|
|
149
|
+
let m = f.findIndex((P) => P === e);
|
|
150
|
+
if (m == -1 && (m = f.findIndex((P) => P == e)), m > -1)
|
|
151
|
+
return f.splice(m, 1), !0;
|
|
152
152
|
}
|
|
153
153
|
return !1;
|
|
154
154
|
};
|
|
155
|
-
a.localOnly == !0 || A == null ? ae != "soft" ? (i(
|
|
155
|
+
a.localOnly == !0 || A == null ? ae != "soft" ? (i(d.value, l), i(a.items, l)) : T.value || i(L.value, l) : await be({
|
|
156
156
|
additionalUrl: t,
|
|
157
157
|
data: e,
|
|
158
158
|
nav: A,
|
|
159
159
|
onCanDeleteAsync: a.onCanDeleteAsync,
|
|
160
160
|
onDeleteAsync: u,
|
|
161
|
-
onDeleteSuccessAsync: async (
|
|
161
|
+
onDeleteSuccessAsync: async (f) => (ae != "soft" ? i(a.items, l) : (me(e, f), T.value || i(L.value, l)), a.onDeleteSuccessAsync != null ? a.onDeleteSuccessAsync(e) : Promise.resolve(void 0)),
|
|
162
162
|
proxyID: D.value
|
|
163
163
|
// ...(useBladeSrc ? bladeData.value : {}),
|
|
164
164
|
// requireConfirmation: true
|
|
165
|
-
}),
|
|
165
|
+
}), o && o("deleted", e);
|
|
166
166
|
}
|
|
167
167
|
async function Oe(e) {
|
|
168
168
|
let l = U.value;
|
|
@@ -172,7 +172,7 @@ function Ua(a, F, r) {
|
|
|
172
172
|
nav: u,
|
|
173
173
|
onSyncAsync: c
|
|
174
174
|
} = { ...a };
|
|
175
|
-
var i = await
|
|
175
|
+
var i = await fe({
|
|
176
176
|
actions: [{
|
|
177
177
|
action: "push",
|
|
178
178
|
item: e,
|
|
@@ -194,7 +194,7 @@ function Ua(a, F, r) {
|
|
|
194
194
|
nav: u,
|
|
195
195
|
onSyncAsync: c
|
|
196
196
|
} = { ...a };
|
|
197
|
-
var i = await
|
|
197
|
+
var i = await fe({
|
|
198
198
|
actions: [{
|
|
199
199
|
action: "unlink",
|
|
200
200
|
item: e,
|
|
@@ -214,7 +214,7 @@ function Ua(a, F, r) {
|
|
|
214
214
|
onRestoreAsync: t,
|
|
215
215
|
onRestoreSuccessAsync: u = (c) => (me(e, c), c)
|
|
216
216
|
} = { ...a };
|
|
217
|
-
return
|
|
217
|
+
return Re({
|
|
218
218
|
additionalUrl: l,
|
|
219
219
|
data: e,
|
|
220
220
|
nav: A,
|
|
@@ -231,23 +231,23 @@ function Ua(a, F, r) {
|
|
|
231
231
|
onCanSaveAsync: u,
|
|
232
232
|
onGetSaveAsync: c,
|
|
233
233
|
onSaveAsync: i,
|
|
234
|
-
onSaveSuccessAsync:
|
|
234
|
+
onSaveSuccessAsync: f
|
|
235
235
|
} = { ...a };
|
|
236
|
-
return
|
|
236
|
+
return Ke({
|
|
237
237
|
additionalUrl: t,
|
|
238
238
|
data: l,
|
|
239
239
|
nav: A,
|
|
240
240
|
onCanSaveAsync: u,
|
|
241
241
|
onGetSaveAsync: c,
|
|
242
242
|
onSaveAsync: i,
|
|
243
|
-
onSaveSuccessAsync:
|
|
243
|
+
onSaveSuccessAsync: f,
|
|
244
244
|
proxyID: D.value
|
|
245
245
|
});
|
|
246
246
|
}
|
|
247
247
|
function la() {
|
|
248
248
|
qe(() => {
|
|
249
|
-
var e = z == "session" ? L.value :
|
|
250
|
-
e != null && we.exportToCSV({ headers:
|
|
249
|
+
var e = z == "session" ? L.value : d.value;
|
|
250
|
+
e != null && we.exportToCSV({ headers: K.value, items: e });
|
|
251
251
|
}, { loadingMsg: "Exporting to CSV" });
|
|
252
252
|
}
|
|
253
253
|
function he(e) {
|
|
@@ -262,11 +262,11 @@ function Ua(a, F, r) {
|
|
|
262
262
|
return e.sort(j.firstBy((t) => _(t, a.sortProp), a.sortDirection ?? "asc"));
|
|
263
263
|
}
|
|
264
264
|
function G() {
|
|
265
|
-
if (
|
|
265
|
+
if (d.value == null || !Array.isArray(d.value)) {
|
|
266
266
|
L.value = [];
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
-
let e = he(
|
|
269
|
+
let e = he(d.value);
|
|
270
270
|
if (a.onFilter != null && (e = a.onFilter(e)), q(a.localFilters) && M.value.forEach((l) => {
|
|
271
271
|
var u;
|
|
272
272
|
const t = (u = a.localFilters) == null ? void 0 : u.find((c) => c.name == $.value[l]);
|
|
@@ -296,21 +296,21 @@ function Ua(a, F, r) {
|
|
|
296
296
|
t <= 0 || (a.paginate == "server" ? l != null && (Z.value = Math.ceil(l / t)) : a.paginate == "local" && (Z.value = Math.ceil(e.length / t)));
|
|
297
297
|
}
|
|
298
298
|
async function g(e) {
|
|
299
|
-
var t, u, c, i,
|
|
300
|
-
if (Y.value = !1, (e == null ? void 0 : e.resetSearch) == !0 && (
|
|
299
|
+
var t, u, c, i, f, B, m, P, H, De;
|
|
300
|
+
if (Y.value = !1, (e == null ? void 0 : e.resetSearch) == !0 && (R.value = !1, S.value = void 0), a.items != null) {
|
|
301
301
|
let I = { data: a.items };
|
|
302
302
|
X.value = "Loading";
|
|
303
303
|
let s = a.onGetSuccessAsync != null ? await a.onGetSuccessAsync(I) : I;
|
|
304
304
|
if (X.value = void 0, s == null || !Array.isArray(s.data))
|
|
305
305
|
return;
|
|
306
|
-
|
|
306
|
+
d.value = (s == null ? void 0 : s.data) ?? [], a.paginate != "local" && O(d.value, d.value.length), G(), b != null && b(d.value), (r == null ? void 0 : r.onFinishedAsync) != null && await (r == null ? void 0 : r.onFinishedAsync(d.value)), o && o("fetched", d.value);
|
|
307
307
|
return;
|
|
308
308
|
}
|
|
309
309
|
if (a.isSingle) {
|
|
310
310
|
var l = w ? (u = (t = n == null ? void 0 : n.bladeData) == null ? void 0 : t.data) == null ? void 0 : u.data : void 0;
|
|
311
311
|
if (l != null) {
|
|
312
312
|
let I = { data: l }, s = a.onGetSingleSuccessAsync != null ? await a.onGetSingleSuccessAsync(I) : I;
|
|
313
|
-
Array.isArray(s == null ? void 0 : s.data) ?
|
|
313
|
+
Array.isArray(s == null ? void 0 : s.data) ? d.value = s.data : d.value = (s == null ? void 0 : s.data) != null ? [s.data] : void 0;
|
|
314
314
|
} else {
|
|
315
315
|
const I = {
|
|
316
316
|
additionalUrl: a.additionalUrl,
|
|
@@ -328,22 +328,22 @@ function Ua(a, F, r) {
|
|
|
328
328
|
onGetSuccessAsync: a.onGetSingleSuccessAsync
|
|
329
329
|
};
|
|
330
330
|
if (I.id === "new")
|
|
331
|
-
|
|
331
|
+
d.value = [];
|
|
332
332
|
else {
|
|
333
333
|
const s = await Ve(I);
|
|
334
|
-
s == null ?
|
|
334
|
+
s == null ? d.value = void 0 : Array.isArray(s.data) ? d.value = s.data : d.value = s.data != null ? [s.data] : void 0;
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
} else {
|
|
338
338
|
const I = {
|
|
339
339
|
additionalUrl: a.additionalUrl,
|
|
340
|
-
dateFrom: (w ? (B = (
|
|
340
|
+
dateFrom: (w ? (B = (f = n == null ? void 0 : n.bladeData) == null ? void 0 : f.data) == null ? void 0 : B.dateFrom : void 0) ?? a.dateFrom,
|
|
341
341
|
dateTo: (w ? (P = (m = n == null ? void 0 : n.bladeData) == null ? void 0 : m.data) == null ? void 0 : P.dateTo : void 0) ?? a.dateTo,
|
|
342
342
|
id: a.ignoreID ? void 0 : W.value,
|
|
343
343
|
nav: A,
|
|
344
344
|
params: {
|
|
345
345
|
...ye.value,
|
|
346
|
-
...w ? (De = (
|
|
346
|
+
...w ? (De = (H = n == null ? void 0 : n.bladeData) == null ? void 0 : H.data) == null ? void 0 : De.params : {},
|
|
347
347
|
...r == null ? void 0 : r.params,
|
|
348
348
|
...e == null ? void 0 : e.params
|
|
349
349
|
},
|
|
@@ -354,11 +354,11 @@ function Ua(a, F, r) {
|
|
|
354
354
|
};
|
|
355
355
|
let s = await ke({
|
|
356
356
|
...I,
|
|
357
|
-
onGetSuccessAsync: async (
|
|
357
|
+
onGetSuccessAsync: async (F, na) => F != null && (F.filters != null && (re.value = (F == null ? void 0 : F.filters) ?? []), ie.value = F.count, O(F.data, F.count), a.onGetSuccessAsync != null) ? await a.onGetSuccessAsync(F, na) : F
|
|
358
358
|
});
|
|
359
|
-
|
|
359
|
+
d.value = (s == null ? void 0 : s.data) ?? [], J.value = [...M.value];
|
|
360
360
|
}
|
|
361
|
-
G(), b && b(
|
|
361
|
+
G(), b && b(d.value), (r == null ? void 0 : r.onFinishedAsync) != null && await (r == null ? void 0 : r.onFinishedAsync(d.value)), o && o("fetched", d.value);
|
|
362
362
|
}
|
|
363
363
|
function ra(e, l) {
|
|
364
364
|
var c;
|
|
@@ -375,10 +375,10 @@ function Ua(a, F, r) {
|
|
|
375
375
|
closeBladeNames: a.closeBladeNames
|
|
376
376
|
}));
|
|
377
377
|
}
|
|
378
|
-
|
|
378
|
+
o != null && (o("select", N), o("confirm", N));
|
|
379
379
|
}
|
|
380
380
|
function ua() {
|
|
381
|
-
|
|
381
|
+
R.value = !R.value, S.value = void 0, g();
|
|
382
382
|
}
|
|
383
383
|
return ta(), sa([S], ([e]) => {
|
|
384
384
|
(a.trackSearchQuery || a.variant == "page") && Ne.updateSearch(e), x.value != 1 ? x.value = 1 : G();
|
|
@@ -388,7 +388,7 @@ function Ua(a, F, r) {
|
|
|
388
388
|
z == "whole-last-updated" ? G() : await g();
|
|
389
389
|
}), C(x, async () => {
|
|
390
390
|
await g();
|
|
391
|
-
}), C([
|
|
391
|
+
}), C([de, () => a.errorMsg], ([e, l]) => {
|
|
392
392
|
Y.value = e != null || l != null;
|
|
393
393
|
}), C(() => a.refreshToggle, () => {
|
|
394
394
|
g({ deepRefresh: !0 });
|
|
@@ -398,24 +398,24 @@ function Ua(a, F, r) {
|
|
|
398
398
|
G();
|
|
399
399
|
}), C(() => a.proxyID, () => {
|
|
400
400
|
g();
|
|
401
|
-
}),
|
|
401
|
+
}), oe([d], () => {
|
|
402
402
|
G();
|
|
403
|
-
}, { deep: !0 }),
|
|
403
|
+
}, { deep: !0 }), oe([() => a.items], () => {
|
|
404
404
|
g();
|
|
405
|
-
}, { deep: !0 }), r != null && r.isNotSetup ? (r == null ? void 0 : r.isNotSetup) == !0 && a.eager == !0 && g({ deepRefresh: ((Se = (ge = r == null ? void 0 : r.route) == null ? void 0 : ge.params) == null ? void 0 : Se.refresh) == "true" || ((Ae = (Pe = r == null ? void 0 : r.route) == null ? void 0 : Pe.query) == null ? void 0 : Ae.refresh) == "true" }) :
|
|
405
|
+
}, { deep: !0 }), r != null && r.isNotSetup ? (r == null ? void 0 : r.isNotSetup) == !0 && a.eager == !0 && g({ deepRefresh: ((Se = (ge = r == null ? void 0 : r.route) == null ? void 0 : ge.params) == null ? void 0 : Se.refresh) == "true" || ((Ae = (Pe = r == null ? void 0 : r.route) == null ? void 0 : Pe.query) == null ? void 0 : Ae.refresh) == "true" || !!a.startRefreshing }) : fa(async () => {
|
|
406
406
|
var e, l, t, u;
|
|
407
|
-
a.eager == !0 && await g({ deepRefresh: ((l = (e = r == null ? void 0 : r.route) == null ? void 0 : e.params) == null ? void 0 : l.refresh) == "true" || ((u = (t = r == null ? void 0 : r.route) == null ? void 0 : t.query) == null ? void 0 : u.refresh) == "true" });
|
|
407
|
+
a.eager == !0 && await g({ deepRefresh: ((l = (e = r == null ? void 0 : r.route) == null ? void 0 : e.params) == null ? void 0 : l.refresh) == "true" || ((u = (t = r == null ? void 0 : r.route) == null ? void 0 : t.query) == null ? void 0 : u.refresh) == "true" || !!a.startRefreshing });
|
|
408
408
|
}), {
|
|
409
409
|
add: Ze,
|
|
410
410
|
applyFilters: async () => {
|
|
411
|
-
x.value != 1 ? (
|
|
411
|
+
x.value != 1 ? (R.value = !1, S.value = void 0, x.value = 1) : await g({ resetSearch: !0 });
|
|
412
412
|
},
|
|
413
|
-
asyncItems:
|
|
413
|
+
asyncItems: d,
|
|
414
414
|
currentExternalParty: U,
|
|
415
415
|
currentPage: x,
|
|
416
416
|
deleteItem: Ee,
|
|
417
417
|
displayHeaders: Xe,
|
|
418
|
-
errorMsg:
|
|
418
|
+
errorMsg: de,
|
|
419
419
|
exportToCSV: la,
|
|
420
420
|
externalParties: le,
|
|
421
421
|
filteredItems: L,
|
|
@@ -427,7 +427,7 @@ function Ua(a, F, r) {
|
|
|
427
427
|
isEditing: v(() => E.value == "new" || E.value == "edit"),
|
|
428
428
|
isIntegratable: We,
|
|
429
429
|
isIntegrated: _e,
|
|
430
|
-
isLoading:
|
|
430
|
+
isLoading: He,
|
|
431
431
|
isRestorable: je,
|
|
432
432
|
loadingMsg: se,
|
|
433
433
|
mode: E,
|
|
@@ -443,9 +443,9 @@ function Ua(a, F, r) {
|
|
|
443
443
|
selectItem: ra,
|
|
444
444
|
showError: Y,
|
|
445
445
|
showInactive: T,
|
|
446
|
-
showSearch:
|
|
446
|
+
showSearch: R,
|
|
447
447
|
subtitleOptions: ze,
|
|
448
|
-
tableHeaders:
|
|
448
|
+
tableHeaders: K,
|
|
449
449
|
titleOptions: Je,
|
|
450
450
|
toggleSearch: ua,
|
|
451
451
|
totalCount: ie,
|