rest-client-vue 1.1.1-b4 → 1.1.1-b5
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/index.d.ts +2 -0
- package/dist/rest-client-vue.js +127 -125
- package/dist/rest-client-vue.umd.cjs +1 -1
- package/dist/src/rest-collection.d.ts +2 -0
- package/dist/src/rest-collection.d.ts.map +1 -1
- package/dist/src/stores/rest-collection-store.d.ts +6 -0
- package/dist/src/stores/rest-collection-store.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
@@ -31,6 +31,7 @@ export declare interface ConcreteRestCollectionStoreOptionsInput {
|
|
31
31
|
pageSize?: number | null;
|
32
32
|
};
|
33
33
|
order?: [any, string][];
|
34
|
+
propertyBlacklist?: string[];
|
34
35
|
referencePathsToExpand?: string[];
|
35
36
|
restCollectionUrl?: string | null;
|
36
37
|
}
|
@@ -366,6 +367,7 @@ export declare interface RestCollectionStoreOptionsInput {
|
|
366
367
|
pageSize?: number | null;
|
367
368
|
};
|
368
369
|
order?: [any, string][];
|
370
|
+
propertyBlacklist?: string[] | ((resourceType: ResourceType) => string[]);
|
369
371
|
referencePathsToExpand?: string[] | ((resourceType: ResourceType) => string[]);
|
370
372
|
restCollectionUrl?: string | null;
|
371
373
|
}
|
package/dist/rest-client-vue.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
var we = Object.defineProperty;
|
2
2
|
var Ce = (f, s, R) => s in f ? we(f, s, { enumerable: !0, configurable: !0, writable: !0, value: R }) : f[s] = R;
|
3
|
-
var
|
3
|
+
var ae = (f, s, R) => (Ce(f, typeof s != "symbol" ? s + "" : s, R), R), Te = (f, s, R) => {
|
4
4
|
if (!s.has(f))
|
5
5
|
throw TypeError("Cannot " + R);
|
6
6
|
};
|
@@ -10,44 +10,44 @@ var Q = (f, s, R) => (Te(f, s, "read from private field"), R ? R.call(f) : s.get
|
|
10
10
|
s instanceof WeakSet ? s.add(f) : s.set(f, R);
|
11
11
|
};
|
12
12
|
import a from "lodash";
|
13
|
-
import { v4 as
|
14
|
-
import { ref as I, toRef as
|
13
|
+
import { v4 as H } from "uuid";
|
14
|
+
import { ref as I, toRef as se, computed as S, watch as T, nextTick as Le } from "vue";
|
15
15
|
import P from "axios";
|
16
16
|
import me from "jsog";
|
17
|
-
import
|
18
|
-
import { defineStore as
|
19
|
-
const
|
17
|
+
import X from "json-stringify-deterministic";
|
18
|
+
import { defineStore as pe } from "pinia";
|
19
|
+
const ye = {
|
20
20
|
apiBaseUrl: "",
|
21
21
|
useVueLogger: !1
|
22
22
|
};
|
23
|
-
class
|
23
|
+
class _e extends Error {
|
24
24
|
constructor(R, $ = void 0, e = void 0) {
|
25
25
|
super(R);
|
26
|
-
|
27
|
-
|
26
|
+
ae(this, "context");
|
27
|
+
ae(this, "innerError");
|
28
28
|
this.context = $, this.innerError = e;
|
29
29
|
}
|
30
30
|
}
|
31
|
-
var
|
31
|
+
var k;
|
32
32
|
class Ie {
|
33
33
|
constructor() {
|
34
|
-
Se(this,
|
34
|
+
Se(this, k, {});
|
35
35
|
}
|
36
36
|
clearAllStores() {
|
37
|
-
for (const s in Q(this,
|
38
|
-
Q(this,
|
37
|
+
for (const s in Q(this, k))
|
38
|
+
Q(this, k)[s].clear();
|
39
39
|
}
|
40
40
|
destroyStore(s) {
|
41
|
-
Q(this,
|
41
|
+
Q(this, k)[s] && (Q(this, k)[s].$dispose(), delete Q(this, k)[s]);
|
42
42
|
}
|
43
43
|
getStore(s) {
|
44
|
-
return Q(this,
|
44
|
+
return Q(this, k)[s];
|
45
45
|
}
|
46
46
|
registerStore(s, R) {
|
47
|
-
Q(this,
|
47
|
+
Q(this, k)[s] = R;
|
48
48
|
}
|
49
49
|
}
|
50
|
-
|
50
|
+
k = new WeakMap();
|
51
51
|
function v(f, s) {
|
52
52
|
return a.get(f, (s == null ? void 0 : s.idProperty) || "_id");
|
53
53
|
}
|
@@ -81,7 +81,7 @@ const De = {
|
|
81
81
|
[{ path: "history.creation.timestamp" }, "desc"],
|
82
82
|
[{ path: "history.creation.orderInBatch" }, "desc"]
|
83
83
|
]
|
84
|
-
},
|
84
|
+
}, Z = {
|
85
85
|
resources: [],
|
86
86
|
remoteCollectionSize: null,
|
87
87
|
status: "NotLoaded",
|
@@ -89,21 +89,22 @@ const De = {
|
|
89
89
|
detailSelection: [],
|
90
90
|
invalidResources: [],
|
91
91
|
transientData: {}
|
92
|
-
},
|
92
|
+
}, ne = {
|
93
93
|
editingDetailSelection: !1,
|
94
94
|
batchSaveAttempted: !1,
|
95
95
|
editors: [],
|
96
96
|
listNavigators: {}
|
97
97
|
}, Pe = (f, s) => {
|
98
98
|
s = a.merge({}, De, s);
|
99
|
-
const R =
|
99
|
+
const R = pe(f, {
|
100
100
|
state: () => ({
|
101
101
|
idProperty: s.idProperty,
|
102
102
|
filter: s.filter,
|
103
103
|
order: s.order || null,
|
104
|
+
propertyBlacklist: s.propertyBlacklist || null,
|
104
105
|
referencePathsToExpand: s.referencePathsToExpand || null,
|
105
|
-
...
|
106
|
-
...
|
106
|
+
...Z,
|
107
|
+
...ne
|
107
108
|
}),
|
108
109
|
getters: {
|
109
110
|
/**
|
@@ -118,9 +119,9 @@ const De = {
|
|
118
119
|
const t = [];
|
119
120
|
if ((u = e.filter) != null && u.resourceIds && t.push({ l: { path: e.idProperty }, r: { constant: e.filter.resourceIds }, operator: "in" }), (c = e.filter) != null && c.query && t.push((d = e.filter) == null ? void 0 : d.query), t.length > 0) {
|
120
121
|
const y = t.length == 1 ? t[0] : { and: t };
|
121
|
-
r.q =
|
122
|
+
r.q = X(y);
|
122
123
|
}
|
123
|
-
return e.order && (r.o =
|
124
|
+
return e.order && (r.o = X(e.order)), e.propertyBlacklist && (r.ex = X(e.propertyBlacklist)), e.referencePathsToExpand && (r.r = X(e.referencePathsToExpand)), r;
|
124
125
|
}
|
125
126
|
},
|
126
127
|
actions: {
|
@@ -133,10 +134,10 @@ const De = {
|
|
133
134
|
* Configuration is retained, but REST collection contents and contextual state are reset.
|
134
135
|
*/
|
135
136
|
reset() {
|
136
|
-
for (const e in
|
137
|
-
this[e] =
|
138
|
-
for (const e in
|
139
|
-
this[e] =
|
137
|
+
for (const e in Z)
|
138
|
+
this[e] = Z[e];
|
139
|
+
for (const e in ne)
|
140
|
+
this[e] = ne[e];
|
140
141
|
},
|
141
142
|
/**
|
142
143
|
* Reset the store to its initial state, but retain transient data if appropriate.
|
@@ -236,8 +237,8 @@ const De = {
|
|
236
237
|
* Configuration and contextual state are retained, but REST collection contents are reset.
|
237
238
|
*/
|
238
239
|
clear() {
|
239
|
-
for (const e in
|
240
|
-
this[e] =
|
240
|
+
for (const e in Z)
|
241
|
+
this[e] = Z[e];
|
241
242
|
},
|
242
243
|
/**
|
243
244
|
* Clear the collection's contents, but retain transient data if appropriate.
|
@@ -271,7 +272,7 @@ const De = {
|
|
271
272
|
*/
|
272
273
|
async loadResources(e = {}) {
|
273
274
|
this.resetRetainingTransientData();
|
274
|
-
const r =
|
275
|
+
const r = H();
|
275
276
|
this._loadId = r, await this._loadResources(0, r, e);
|
276
277
|
},
|
277
278
|
/**
|
@@ -288,13 +289,13 @@ const De = {
|
|
288
289
|
* @param loadOptions Pagination options that may override the defaults.
|
289
290
|
*/
|
290
291
|
async _loadResources(e, r, t) {
|
291
|
-
var
|
292
|
+
var z, F, A, B, O;
|
292
293
|
const l = e == 0;
|
293
|
-
if (this.status = l ? "Loading" : "LoadingMore", this._loadOffset = e, ((
|
294
|
+
if (this.status = l ? "Loading" : "LoadingMore", this._loadOffset = e, ((z = this.filter) == null ? void 0 : z.query) === !1) {
|
294
295
|
this.resources = [], this.remoteCollectionSize = 0;
|
295
296
|
return;
|
296
297
|
}
|
297
|
-
const u = this.fixedQueryParams, c = a.cloneDeep(u), d = l ? (
|
298
|
+
const u = this.fixedQueryParams, c = a.cloneDeep(u), d = l ? (F = this.filter) != null && F.resourceIds && !this.order ? null : t.firstPageSize || ((A = s.loading) == null ? void 0 : A.firstPageSize) || t.pageSize || ((B = s.loading) == null ? void 0 : B.pageSize) || null : t.pageSize || ((O = s.loading) == null ? void 0 : O.pageSize) || null, y = d != null || s.limit != null ? a.min(a.filter([d, s.limit], (g) => g != null)) : void 0;
|
298
299
|
y != null ? (c.offset = e, c.limit = y) : e != 0 && (c.offset = e);
|
299
300
|
const U = a.map(
|
300
301
|
c,
|
@@ -309,7 +310,7 @@ const De = {
|
|
309
310
|
console.log(
|
310
311
|
`Loaded ${E.length}${l ? "" : " more"} resources from ${s.restCollectionUrl}`
|
311
312
|
), l && (this.resources = []);
|
312
|
-
const W = [...this.resources, ...E.map((
|
313
|
+
const W = [...this.resources, ...E.map((J) => Object.freeze(J))];
|
313
314
|
this.resources = $e(W, this), a.get(g, "data.totalCollectionSize") ? this.remoteCollectionSize = a.get(g, "data.totalCollectionSize") : this.remoteCollectionSize = null, this.status = D ? "Loaded" : "LoadingMore", D || this._loadResources(this.resources.length, r, t);
|
314
315
|
}
|
315
316
|
} catch (g) {
|
@@ -414,7 +415,7 @@ const De = {
|
|
414
415
|
async refreshResource(e) {
|
415
416
|
if (e) {
|
416
417
|
const r = {};
|
417
|
-
this.referencePathsToExpand && (r.r =
|
418
|
+
this.referencePathsToExpand && (r.r = X(this.referencePathsToExpand));
|
418
419
|
const t = a.map(
|
419
420
|
r,
|
420
421
|
(c, d) => c != null ? `${encodeURIComponent(d)}=${encodeURIComponent(c)}` : null
|
@@ -677,21 +678,21 @@ const De = {
|
|
677
678
|
return (() => {
|
678
679
|
const e = (r, t) => {
|
679
680
|
const l = R(r, t);
|
680
|
-
return
|
681
|
+
return re.registerStore(l.$id, l), l;
|
681
682
|
};
|
682
683
|
return e.$id = R.$id, e;
|
683
684
|
})();
|
684
|
-
},
|
685
|
-
var
|
685
|
+
}, re = new Ie(), Oe = (f = {}) => {
|
686
|
+
var ue, de, he, fe;
|
686
687
|
const {
|
687
688
|
collectionId: s,
|
688
689
|
draftBatchId: R,
|
689
690
|
enabled: $,
|
690
691
|
resourceType: e,
|
691
692
|
options: r
|
692
|
-
} = f, t = I(void 0), l = I(s), u = I(R), c = I($ ?? !0), d = I([
|
693
|
-
() => u.value == null && l.value != null &&
|
694
|
-
),
|
693
|
+
} = f, t = I(void 0), l = I(s), u = I(R), c = I($ ?? !0), d = I([se(e)]), y = I(r), U = S(() => u.value), L = I(c.value), z = I(H()), F = I((de = (ue = y.value) == null ? void 0 : ue.filter) == null ? void 0 : de.resourceIds), A = I((fe = (he = y.value) == null ? void 0 : he.filter) == null ? void 0 : fe.query), B = S(
|
694
|
+
() => u.value == null && l.value != null && re.getStore(l.value) != null
|
695
|
+
), O = I(B.value), g = S(() => C("status", "Uninitialized"));
|
695
696
|
function m(i) {
|
696
697
|
if (t.value)
|
697
698
|
return i(t.value);
|
@@ -708,46 +709,47 @@ const De = {
|
|
708
709
|
throw "Attempted to use a REST collection store that has not been created, with no default value.";
|
709
710
|
}
|
710
711
|
const D = (i = {}) => {
|
711
|
-
var
|
712
|
+
var ie, ve, ge, Re;
|
712
713
|
const {
|
713
714
|
collectionId: o,
|
714
715
|
draftBatchId: w,
|
715
|
-
enabled:
|
716
|
-
resourceType:
|
717
|
-
options:
|
716
|
+
enabled: q,
|
717
|
+
resourceType: le,
|
718
|
+
options: te
|
718
719
|
} = i;
|
719
|
-
l.value = o, u.value = w, c.value =
|
720
|
+
l.value = o, u.value = w, c.value = q ?? !0, d.value = [se(le)], te != null && (y.value = te, F.value = (ve = (ie = y.value) == null ? void 0 : ie.filter) == null ? void 0 : ve.resourceIds, A.value = (Re = (ge = y.value) == null ? void 0 : ge.filter) == null ? void 0 : Re.query), z.value = H(), W(c.value);
|
720
721
|
}, W = async (i) => {
|
721
|
-
i != L.value && (L.value = i, i && (
|
722
|
-
}, H = async (i) => {
|
723
|
-
q.value = i, await E(async (o) => await o.setFilterResourceIds(q.value || null));
|
722
|
+
i != L.value && (L.value = i, i && (Y(), b()));
|
724
723
|
}, J = async (i) => {
|
725
|
-
|
724
|
+
F.value = i, await E(async (o) => await o.setFilterResourceIds(F.value || null));
|
725
|
+
}, K = async (i) => {
|
726
|
+
if (A.value = i, g.value != "Uninitialized") {
|
726
727
|
const o = i, w = S(() => a.isFunction(o) ? p.value ? o(p.value) : null : o);
|
727
|
-
await E((
|
728
|
+
await E((q) => q.setQuery(w.value || null));
|
728
729
|
}
|
729
|
-
},
|
730
|
+
}, Y = () => {
|
730
731
|
y.value = a.merge({}, y.value || {}, {
|
731
|
-
filter: { resourceIds:
|
732
|
+
filter: { resourceIds: F.value, query: A.value }
|
732
733
|
});
|
733
734
|
}, p = S(
|
734
735
|
() => d.value[0].value || void 0
|
735
|
-
),
|
736
|
-
const o = a.get(i, "filter.query"), w = a.get(i, "referencePathsToExpand"),
|
736
|
+
), _ = function(i) {
|
737
|
+
const o = a.get(i, "filter.query"), w = a.get(i, "propertyBlacklist"), q = a.get(i, "referencePathsToExpand"), le = a.isFunction(o) ? o(p.value) : o, te = p.value ? a.isFunction(w) ? w(p.value) : w || [] : [], ie = p.value ? a.isFunction(q) ? q(p.value) : q || [] : [];
|
737
738
|
return {
|
738
739
|
...a.cloneDeep(i || {}),
|
739
740
|
filter: {
|
740
741
|
...a.cloneDeep((i == null ? void 0 : i.filter) || {}),
|
741
|
-
query:
|
742
|
+
query: le
|
742
743
|
},
|
743
|
-
|
744
|
+
propertyBlacklist: te,
|
745
|
+
referencePathsToExpand: ie
|
744
746
|
};
|
745
|
-
}, x = S(() =>
|
747
|
+
}, x = S(() => _(y.value)), M = S(() => {
|
746
748
|
if (!p.value)
|
747
749
|
return null;
|
748
750
|
if (x.value.restCollectionUrl !== void 0)
|
749
751
|
return x.value.restCollectionUrl;
|
750
|
-
if (!
|
752
|
+
if (!O.value)
|
751
753
|
return !p.value || !p.value.collectionName ? null : U.value ? `${ee.config.apiBaseUrl}/draft-batches/${U.value}/${p.value.collectionName}` : `${ee.config.apiBaseUrl}/${p.value.collectionName}`;
|
752
754
|
}), n = S(() => {
|
753
755
|
var i;
|
@@ -764,31 +766,31 @@ const De = {
|
|
764
766
|
return w;
|
765
767
|
}
|
766
768
|
);
|
767
|
-
}), h = I(0),
|
769
|
+
}), h = I(0), N = S(
|
768
770
|
() => {
|
769
771
|
var i;
|
770
|
-
return h.value, l.value || p.value && ((i = p.value) == null ? void 0 : i.collectionName) && (U.value ? `draftBatches/${U.value}/${p.value.collectionName}/${
|
772
|
+
return h.value, l.value || p.value && ((i = p.value) == null ? void 0 : i.collectionName) && (U.value ? `draftBatches/${U.value}/${p.value.collectionName}/${z.value}` : `${p.value.collectionName}/${z.value}`) || null;
|
771
773
|
}
|
772
|
-
),
|
774
|
+
), b = () => {
|
773
775
|
if (L.value) {
|
774
776
|
let i = !1;
|
775
|
-
return p.value &&
|
777
|
+
return p.value && N.value && (t.value = re.getStore(N.value), t.value ? i = !1 : n.value && (O.value = !1, t.value = Pe(N.value, n.value)(), i = !0)), i;
|
776
778
|
} else
|
777
779
|
return !1;
|
778
780
|
}, G = () => {
|
779
|
-
|
781
|
+
N.value && l.value == N.value ? (t.value = void 0, b()) : (t.value = void 0, h.value = h.value + 1, b());
|
780
782
|
};
|
781
783
|
T(U, (i, o) => {
|
782
784
|
a.isEqual(i, o) || G();
|
783
785
|
}), T(L, (i, o) => {
|
784
|
-
i != o && (i ?
|
786
|
+
i != o && (i ? b() : t.value = void 0);
|
785
787
|
}), T(p, (i, o) => {
|
786
|
-
i && !o ?
|
788
|
+
i && !o ? b() : !i && o || a.isEqual(i, o) || G();
|
787
789
|
}), T(n, (i, o) => {
|
788
790
|
a.isEqual(i, o) || G();
|
789
|
-
}), T(
|
790
|
-
|
791
|
-
}), T(
|
791
|
+
}), T(B, () => {
|
792
|
+
B.value || (O.value = !1);
|
793
|
+
}), T(N, () => b()), T(M, (i, o) => {
|
792
794
|
a.isEqual(i, o) || G();
|
793
795
|
});
|
794
796
|
const j = [], Ee = function(i) {
|
@@ -798,12 +800,12 @@ const De = {
|
|
798
800
|
if (i != "Uninitialized" && o == "Uninitialized") {
|
799
801
|
const w = a.clone(j);
|
800
802
|
j.splice(0, j.length);
|
801
|
-
for (const
|
802
|
-
|
803
|
+
for (const q of w)
|
804
|
+
q();
|
803
805
|
}
|
804
|
-
}),
|
806
|
+
}), b(), {
|
805
807
|
// Configuration
|
806
|
-
collectionId:
|
808
|
+
collectionId: N,
|
807
809
|
draftBatchId: U,
|
808
810
|
resourceType: p,
|
809
811
|
// Status
|
@@ -827,10 +829,10 @@ const De = {
|
|
827
829
|
(o) => o.setEditingDetailSelection(i)
|
828
830
|
),
|
829
831
|
setEnabled: W,
|
830
|
-
setFilterResourceIds:
|
831
|
-
setQuery:
|
832
|
+
setFilterResourceIds: J,
|
833
|
+
setQuery: K,
|
832
834
|
// Methods: Status
|
833
|
-
ensureStore:
|
835
|
+
ensureStore: b,
|
834
836
|
// TODO Rename
|
835
837
|
setBatchSaveAttempted: (i) => m((o) => o.setBatchSaveAttempted(i)),
|
836
838
|
// Local collection management
|
@@ -841,7 +843,7 @@ const De = {
|
|
841
843
|
addResource: (i) => m((o) => o.addResource(i)),
|
842
844
|
checkForDeletedResource: async (i) => await E(async (o) => await o.checkForDeletedResource(i)) == !0,
|
843
845
|
recordDeletion: (i) => m((o) => o.recordDeletion(i)),
|
844
|
-
recordInsertion: (i, { insertAtBeginning: o = !1, transientData: w = void 0 } = {}) => m((
|
846
|
+
recordInsertion: (i, { insertAtBeginning: o = !1, transientData: w = void 0 } = {}) => m((q) => q.recordInsertion(i, { insertAtBeginning: o, transientData: w })),
|
845
847
|
recordUpdate: (i) => m((o) => o.recordUpdate(i)),
|
846
848
|
refreshResource: async (i) => await E(
|
847
849
|
async (o) => await o.refreshResource(i)
|
@@ -876,32 +878,32 @@ const De = {
|
|
876
878
|
onItemsStoreReady: Ee
|
877
879
|
};
|
878
880
|
}, Qe = () => {
|
879
|
-
|
881
|
+
re.clearAllStores();
|
880
882
|
};
|
881
|
-
function
|
883
|
+
function oe(f, s) {
|
882
884
|
return a.get(f, (s == null ? void 0 : s.idProperty) || "_id");
|
883
885
|
}
|
884
886
|
const Ue = {
|
885
887
|
idProperty: "_id"
|
886
|
-
},
|
888
|
+
}, V = {
|
887
889
|
resource: null,
|
888
890
|
status: "NotLoaded"
|
889
891
|
}, xe = (f, s) => {
|
890
892
|
s = a.merge({}, Ue, s);
|
891
|
-
const R =
|
893
|
+
const R = pe(f, {
|
892
894
|
state: () => ({
|
893
895
|
idProperty: s.idProperty,
|
894
896
|
resourceId: s.resourceId || null,
|
895
897
|
resourceUrl: s.resourceUrl || null,
|
896
898
|
referencePathsToExpand: s.referencePathsToExpand || null,
|
897
|
-
...
|
899
|
+
...V
|
898
900
|
}),
|
899
901
|
getters: {
|
900
902
|
currentResourceUrl: (e) => e.resourceUrl || (s.restCollectionUrl && e.resourceId ? `${s.restCollectionUrl}/${e.resourceId}` : null) || s.restCollectionUrl || null,
|
901
903
|
/** Get the REST query parameters that can be determined from the options. */
|
902
904
|
fixedQueryParams: (e) => {
|
903
905
|
const r = {};
|
904
|
-
return e.referencePathsToExpand && (r.r =
|
906
|
+
return e.referencePathsToExpand && (r.r = X(e.referencePathsToExpand)), r;
|
905
907
|
}
|
906
908
|
},
|
907
909
|
actions: {
|
@@ -914,8 +916,8 @@ const Ue = {
|
|
914
916
|
* Configuration is retained, but REST resource content and contextual state are reset.
|
915
917
|
*/
|
916
918
|
reset() {
|
917
|
-
for (const e in
|
918
|
-
this[e] =
|
919
|
+
for (const e in V)
|
920
|
+
this[e] = V[e];
|
919
921
|
},
|
920
922
|
async setResourceId(e) {
|
921
923
|
const r = this.currentResourceUrl;
|
@@ -934,8 +936,8 @@ const Ue = {
|
|
934
936
|
* Configuration and contextual state are retained, but REST collection contents are reset.
|
935
937
|
*/
|
936
938
|
clear() {
|
937
|
-
for (const e in
|
938
|
-
this[e] =
|
939
|
+
for (const e in V)
|
940
|
+
this[e] = V[e];
|
939
941
|
},
|
940
942
|
/**
|
941
943
|
* Load the resource, if it has not been loaded.
|
@@ -952,7 +954,7 @@ const Ue = {
|
|
952
954
|
*/
|
953
955
|
async loadResource() {
|
954
956
|
this.reset();
|
955
|
-
const e =
|
957
|
+
const e = H();
|
956
958
|
if (this._loadId = e, this.currentResourceUrl) {
|
957
959
|
this.status = "Loading";
|
958
960
|
const r = this.fixedQueryParams, t = a.cloneDeep(r), l = a.map(
|
@@ -1020,7 +1022,7 @@ const Ue = {
|
|
1020
1022
|
* @param resource The resource that has been inserted.
|
1021
1023
|
*/
|
1022
1024
|
recordInsertion(e) {
|
1023
|
-
this.resourceId =
|
1025
|
+
this.resourceId = oe(e, this) || null, this.status == "Loaded" && (this.resource = Object.freeze(e));
|
1024
1026
|
},
|
1025
1027
|
/**
|
1026
1028
|
* Record an update, making the same changes in the local resource.
|
@@ -1041,7 +1043,7 @@ const Ue = {
|
|
1041
1043
|
* @param resource The resource that has been updated.
|
1042
1044
|
*/
|
1043
1045
|
recordUpdate(e) {
|
1044
|
-
this.resourceId =
|
1046
|
+
this.resourceId = oe(e, this) || null, this.status == "Loaded" && (this.resource = Object.freeze(e));
|
1045
1047
|
},
|
1046
1048
|
async refreshResource() {
|
1047
1049
|
return await this.loadResource(), this.resource;
|
@@ -1072,7 +1074,7 @@ const Ue = {
|
|
1072
1074
|
* the operation failed.
|
1073
1075
|
*/
|
1074
1076
|
async saveResource(e) {
|
1075
|
-
const r =
|
1077
|
+
const r = oe(e, this), t = r == null;
|
1076
1078
|
if (!r)
|
1077
1079
|
throw "The REST resource store cannot create new resources on the server.";
|
1078
1080
|
if (!this.currentResourceUrl)
|
@@ -1111,21 +1113,21 @@ const Ue = {
|
|
1111
1113
|
return (() => {
|
1112
1114
|
const e = (r, t) => {
|
1113
1115
|
const l = R(r, t);
|
1114
|
-
return
|
1116
|
+
return ce.registerStore(l.$id, l), l;
|
1115
1117
|
};
|
1116
1118
|
return e.$id = R.$id, e;
|
1117
1119
|
})();
|
1118
|
-
},
|
1120
|
+
}, ce = new Ie(), Me = (f = {}) => {
|
1119
1121
|
const {
|
1120
1122
|
resourceClientId: s,
|
1121
1123
|
draftBatchId: R,
|
1122
1124
|
enabled: $,
|
1123
1125
|
resourceType: e,
|
1124
1126
|
options: r
|
1125
|
-
} = f, t = I(void 0), l = I(s), u = I(R), c = I($ ?? !0), d = I([
|
1126
|
-
() => u.value == null && l.value != null &&
|
1127
|
-
),
|
1128
|
-
function
|
1127
|
+
} = f, t = I(void 0), l = I(s), u = I(R), c = I($ ?? !0), d = I([se(e)]), y = I(r), U = S(() => u.value), L = I(c.value), z = I(H()), F = S(
|
1128
|
+
() => u.value == null && l.value != null && ce.getStore(l.value) != null
|
1129
|
+
), A = I(F.value), B = S(() => m("status", "Uninitialized"));
|
1130
|
+
function O(n) {
|
1129
1131
|
if (t.value)
|
1130
1132
|
return n(t.value);
|
1131
1133
|
}
|
@@ -1143,54 +1145,54 @@ const Ue = {
|
|
1143
1145
|
const E = (n = {}) => {
|
1144
1146
|
const {
|
1145
1147
|
resourceClientId: h,
|
1146
|
-
draftBatchId:
|
1147
|
-
enabled:
|
1148
|
+
draftBatchId: N,
|
1149
|
+
enabled: b,
|
1148
1150
|
resourceType: G,
|
1149
1151
|
options: j
|
1150
1152
|
} = n;
|
1151
|
-
l.value = h, u.value =
|
1153
|
+
l.value = h, u.value = N, c.value = b ?? !0, d.value = [se(G)], j != null && (y.value = j), z.value = H(), C(c.value);
|
1152
1154
|
}, C = async (n) => {
|
1153
1155
|
n != L.value && (L.value = n, n && x());
|
1154
1156
|
}, D = S(
|
1155
1157
|
() => d.value[0].value || void 0
|
1156
1158
|
), W = function(n) {
|
1157
|
-
const h = a.get(n, "referencePathsToExpand"),
|
1159
|
+
const h = a.get(n, "referencePathsToExpand"), N = D.value ? a.isFunction(h) ? h(D.value) : h || [] : [];
|
1158
1160
|
return {
|
1159
1161
|
...a.cloneDeep(n || {}),
|
1160
|
-
referencePathsToExpand:
|
1162
|
+
referencePathsToExpand: N
|
1161
1163
|
};
|
1162
|
-
},
|
1164
|
+
}, J = S(() => W(y.value)), K = S(() => {
|
1163
1165
|
if (!D.value)
|
1164
1166
|
return null;
|
1165
|
-
if (!
|
1167
|
+
if (!A.value)
|
1166
1168
|
return !D.value || !D.value.collectionName ? null : U.value ? `${ee.config.apiBaseUrl}/draft-batches/${U.value}/${D.value.collectionName}` : `${ee.config.apiBaseUrl}/${D.value.collectionName}`;
|
1167
|
-
}),
|
1168
|
-
if (D.value &&
|
1169
|
+
}), Y = S(() => {
|
1170
|
+
if (D.value && K.value)
|
1169
1171
|
return a.mergeWith(
|
1170
1172
|
a.cloneDeep(Ue),
|
1171
|
-
|
1173
|
+
J.value,
|
1172
1174
|
{
|
1173
1175
|
idProperty: D.value.idProperty,
|
1174
|
-
restCollectionUrl:
|
1176
|
+
restCollectionUrl: K.value
|
1175
1177
|
},
|
1176
1178
|
(n, h) => {
|
1177
1179
|
if (a.isArray(h) && h.length == 0 && (n == null || a.isArray(n)))
|
1178
1180
|
return h;
|
1179
1181
|
}
|
1180
1182
|
);
|
1181
|
-
}), p = I(0),
|
1183
|
+
}), p = I(0), _ = S(
|
1182
1184
|
() => {
|
1183
1185
|
var n;
|
1184
|
-
return p.value, l.value || D.value && ((n = D.value) == null ? void 0 : n.collectionName) && (U.value ? `draftBatches/${U.value}/${D.value.collectionName}/${
|
1186
|
+
return p.value, l.value || D.value && ((n = D.value) == null ? void 0 : n.collectionName) && (U.value ? `draftBatches/${U.value}/${D.value.collectionName}/${z.value}` : `${D.value.collectionName}/${z.value}`) || null;
|
1185
1187
|
}
|
1186
1188
|
), x = () => {
|
1187
1189
|
if (L.value) {
|
1188
1190
|
let n = !1;
|
1189
|
-
return D.value &&
|
1191
|
+
return D.value && _.value && (t.value = ce.getStore(_.value), t.value ? n = !1 : Y.value && (A.value = !1, t.value = xe(_.value, Y.value)(), n = !0)), n;
|
1190
1192
|
} else
|
1191
1193
|
return !1;
|
1192
1194
|
}, M = () => {
|
1193
|
-
|
1195
|
+
_.value && l.value == _.value ? (t.value = void 0, x()) : (t.value = void 0, p.value = p.value + 1, x());
|
1194
1196
|
};
|
1195
1197
|
return T(U, (n, h) => {
|
1196
1198
|
a.isEqual(n, h) || M();
|
@@ -1198,22 +1200,22 @@ const Ue = {
|
|
1198
1200
|
n != h && (n ? x() : t.value = void 0);
|
1199
1201
|
}), T(D, (n, h) => {
|
1200
1202
|
n && !h ? x() : !n && h || a.isEqual(n, h) || M();
|
1201
|
-
}), T(
|
1203
|
+
}), T(Y, (n, h) => {
|
1202
1204
|
a.isEqual(n, h) || M();
|
1203
|
-
}), T(
|
1204
|
-
|
1205
|
-
}), T(
|
1205
|
+
}), T(F, () => {
|
1206
|
+
F.value || (A.value = !1);
|
1207
|
+
}), T(_, () => x()), T(K, (n, h) => {
|
1206
1208
|
a.isEqual(n, h) || M();
|
1207
1209
|
}), x(), {
|
1208
1210
|
// Configuration
|
1209
|
-
resourceClientId:
|
1211
|
+
resourceClientId: _,
|
1210
1212
|
draftBatchId: U,
|
1211
1213
|
enabled: L,
|
1212
1214
|
resourceType: D,
|
1213
1215
|
// Status
|
1214
|
-
status:
|
1216
|
+
status: B,
|
1215
1217
|
// Resources loaded from the REST API
|
1216
|
-
resource: S(() =>
|
1218
|
+
resource: S(() => B.value != "Uninitialized" ? (g((n) => n.ensureResourceLoaded()), m("resource", [])) : []),
|
1217
1219
|
resourceId: S(() => m("resourceId", null)),
|
1218
1220
|
resourceUrl: S(() => m("resourceUrl", null)),
|
1219
1221
|
// Methods: Configuration
|
@@ -1224,7 +1226,7 @@ const Ue = {
|
|
1224
1226
|
// Methods: Status
|
1225
1227
|
ensureStore: x,
|
1226
1228
|
// Methods: Resource management
|
1227
|
-
clear: () =>
|
1229
|
+
clear: () => O((n) => n.clear()),
|
1228
1230
|
ensureResourceLoaded: async () => await g(async (n) => n.ensureResourceLoaded()),
|
1229
1231
|
loadResource: async () => await g(async (n) => await n.loadResource()),
|
1230
1232
|
// Methods: Recording changes to the resource
|
@@ -1242,16 +1244,16 @@ const Ue = {
|
|
1242
1244
|
)
|
1243
1245
|
};
|
1244
1246
|
}, ee = {
|
1245
|
-
config: { ...
|
1247
|
+
config: { ...ye }
|
1246
1248
|
};
|
1247
1249
|
function je(f) {
|
1248
|
-
ee.config = a.merge({},
|
1250
|
+
ee.config = a.merge({}, ye, f);
|
1249
1251
|
}
|
1250
1252
|
export {
|
1251
|
-
|
1253
|
+
_e as ApiClientError,
|
1252
1254
|
Qe as clearAllRestCollections,
|
1253
1255
|
je as initRestClient,
|
1254
1256
|
ee as restClient,
|
1255
|
-
|
1257
|
+
Oe as useRestCollection,
|
1256
1258
|
Me as useRestResource
|
1257
1259
|
};
|
@@ -1 +1 @@
|
|
1
|
-
(function(v,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("lodash"),require("uuid"),require("vue"),require("axios"),require("jsog"),require("json-stringify-deterministic"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","vue","axios","jsog","json-stringify-deterministic","pinia"],s):(v=typeof globalThis<"u"?globalThis:v||self,s(v["rest-client-vue"]={},v._,v.uuid,v.Vue,v.axios,v.jsog,v.stringify,v.pinia))})(this,function(v,s,I,a,$,ne,J,ae){"use strict";var Pe=Object.defineProperty;var Fe=(v,s,I)=>s in v?Pe(v,s,{enumerable:!0,configurable:!0,writable:!0,value:I}):v[s]=I;var le=(v,s,I)=>(Fe(v,typeof s!="symbol"?s+"":s,I),I),Ne=(v,s,I)=>{if(!s.has(v))throw TypeError("Cannot "+I)};var j=(v,s,I)=>(Ne(v,s,"read from private field"),I?I.call(v):s.get(v)),Ie=(v,s,I)=>{if(s.has(v))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(v):s.set(v,I)};var z;const oe={apiBaseUrl:"",useVueLogger:!1};class we extends Error{constructor(U,q=void 0,e=void 0){super(U);le(this,"context");le(this,"innerError");this.context=q,this.innerError=e}}class ce{constructor(){Ie(this,z,{})}clearAllStores(){for(const n in j(this,z))j(this,z)[n].clear()}destroyStore(n){j(this,z)[n]&&(j(this,z)[n].$dispose(),delete j(this,z)[n])}getStore(n){return j(this,z)[n]}registerStore(n,U){j(this,z)[n]=U}}z=new WeakMap;function g(w,n){return s.get(w,(n==null?void 0:n.idProperty)||"_id")}function De(w,n){var U;return w&&((U=n.filter)!=null&&U.resourceIds)&&!n.order?n.filter.resourceIds.map(q=>w.find(e=>g(e,n)==q)).filter(q=>q!=null):w}const ue={detail:{allowMultiple:!0,autoEdit:!1,autoFromMultipleSelection:!0,autoFromSingleInsertion:!0,autoFromSingleSelection:!0,constrainToSelection:!0},filter:{namedFilter:null,query:null,resourceIds:null},idProperty:"_id",limit:5e3,limitTransientDataToLocalCollection:!0,loading:{firstPageSize:500,pageSize:5e3},order:[[{path:"history.creation.timestamp"},"desc"],[{path:"history.creation.orderInBatch"},"desc"]]},K={resources:[],remoteCollectionSize:null,status:"NotLoaded",selection:[],detailSelection:[],invalidResources:[],transientData:{}},te={editingDetailSelection:!1,batchSaveAttempted:!1,editors:[],listNavigators:{}},Ce=(w,n)=>{n=s.merge({},ue,n);const U=ae.defineStore(w,{state:()=>({idProperty:n.idProperty,filter:n.filter,order:n.order||null,referencePathsToExpand:n.referencePathsToExpand||null,...K,...te}),getters:{fixedQueryParams:e=>{var l,d,u,h;const r={};(l=e.filter)!=null&&l.namedFilter&&(r.namedFilter=e.filter.namedFilter);const t=[];if((d=e.filter)!=null&&d.resourceIds&&t.push({l:{path:e.idProperty},r:{constant:e.filter.resourceIds},operator:"in"}),(u=e.filter)!=null&&u.query&&t.push((h=e.filter)==null?void 0:h.query),t.length>0){const S=t.length==1?t[0]:{and:t};r.q=J(S)}return e.order&&(r.o=J(e.order)),e.referencePathsToExpand&&(r.r=J(e.referencePathsToExpand)),r}},actions:{reset(){for(const e in K)this[e]=K[e];for(const e in te)this[e]=te[e]},resetRetainingTransientData(){if(n.limitTransientDataToLocalCollection)this.reset();else{const e=this.transientData;this.reset(),this.transientData=e}},setEditingDetailSelection(e){this.editingDetailSelection=e},setFilter(e){s.isEqual(e,this.filter)||(this.filter=e,this.status="NotLoaded",this.resources=[],this.remoteCollectionSize=null,this.selection=[],this.detailSelection=[],this.invalidResources=[],this.editingDetailSelection=!1)},async setQuery(e){var r,t;if(!s.isEqual(e,(r=this.filter)==null?void 0:r.query)&&(e!=null||((t=this.filter)==null?void 0:t.query)!=null)){const l=s.cloneDeep(this.filter)||{};e!==null?l.query=e:s.unset(l,"query");const d=this.status;this.setFilter(l),d!="NotLoaded"&&await this.loadResources()}},async setFilterResourceIds(e){if(!s.isEqual(e,s.get(this.filter,"resourceIds"))){const r=s.cloneDeep(this.filter)||{};e!=null?r.resourceIds=e:s.unset(r,"resourceIds");const t=this.status;this.setFilter(r),t!="NotLoaded"&&await this.loadResources()}},setBatchSaveAttempted(e){e!=this.batchSaveAttempted&&(this.batchSaveAttempted=e)},clear(){for(const e in K)this[e]=K[e]},clearRetainingTransientData(){if(n.limitTransientDataToLocalCollection)this.reset();else{const e=this.transientData;this.reset(),this.transientData=e}},async ensureCollectionLoaded(){["Loaded","Loading","LoadingMore","Failed"].includes(this.status)||await this.loadResources()},async loadResources(e={}){this.resetRetainingTransientData();const r=I.v4();this._loadId=r,await this._loadResources(0,r,e)},async _loadResources(e,r,t){var A,F,b,k,Q;const l=e==0;if(this.status=l?"Loading":"LoadingMore",this._loadOffset=e,((A=this.filter)==null?void 0:A.query)===!1){this.resources=[],this.remoteCollectionSize=0;return}const d=this.fixedQueryParams,u=s.cloneDeep(d),h=l?(F=this.filter)!=null&&F.resourceIds&&!this.order?null:t.firstPageSize||((b=n.loading)==null?void 0:b.firstPageSize)||t.pageSize||((k=n.loading)==null?void 0:k.pageSize)||null:t.pageSize||((Q=n.loading)==null?void 0:Q.pageSize)||null,S=h!=null||n.limit!=null?s.min(s.filter([h,n.limit],m=>m!=null)):void 0;S!=null?(u.offset=e,u.limit=S):e!=0&&(u.offset=e);const D=s.map(u,(m,R)=>m!=null?`${encodeURIComponent(R)}=${encodeURIComponent(m)}`:null).filter(m=>m!=null).join("&"),L=s.isEmpty(D)?n.restCollectionUrl:`${n.restCollectionUrl}?${D}`;try{const m=await $.get(L),R=this.fixedQueryParams;if(r!=this._loadId||e!=this._loadOffset||!s.isEqual(d,R))console.log(`Discarding resources fetched by obsolete query from ${n.restCollectionUrl}.`);else{const C=ne.decode(s.get(m,"data.data",[])),T=(l?0:this.resources.length)+C.length,y=S==null||C.length<S||n.limit&&T>=n.limit;console.log(`Loaded ${C.length}${l?"":" more"} resources from ${n.restCollectionUrl}`),l&&(this.resources=[]);const X=[...this.resources,...C.map(Z=>Object.freeze(Z))];this.resources=De(X,this),s.get(m,"data.totalCollectionSize")?this.remoteCollectionSize=s.get(m,"data.totalCollectionSize"):this.remoteCollectionSize=null,this.status=y?"Loaded":"LoadingMore",y||this._loadResources(this.resources.length,r,t)}}catch(m){console.log(`Error while loading resources (URL="${L}"):`,m),this.clearRetainingTransientData(),this.status="Failed"}},async checkForDeletedResource(e){let r;try{r=await $.get(`${n.restCollectionUrl}/${e}`)}catch(t){$.isAxiosError(t)&&(r=t.response)}return r&&r.status==404?(this.recordDeletion(e),!0):!1},recordDeletion(e){var r;if(["Loaded","LoadingMore"].includes(this.status)){let t=this.resources.findIndex(l=>g(l,this)==e);t>=0&&this.resources.splice(t,1),t=this.selection.findIndex(l=>g(l,this)==e),t>=0&&this.selection.splice(t,1),t=this.detailSelection.findIndex(l=>g(l,this)==e),t>=0&&(this.detailSelection.splice(t,1),this.detailSelection.length==0&&(this.editingDetailSelection=((r=n.detail)==null?void 0:r.autoEdit)||!1)),n.limitTransientDataToLocalCollection&&delete this.transientData[e]}},recordInsertion(e,{insertAtBeginning:r,transientData:t}={}){var l;if(["Loaded","LoadingMore"].includes(this.status)){const d=Object.freeze(e);r?this.resources.unshift(d):this.resources.push(d),(l=n.detail)!=null&&l.autoFromSingleInsertion&&(this.detailSelection.length==0||this.detailSelection.length==1&&g(this.detailSelection[0],this)==null)&&(this.detailSelection=[d],this.editingDetailSelection=n.detail.autoEdit);const u=g(e,this);u&&(t===void 0?delete this.transientData[u]:this.transientData[u]=t)}},recordUpdate(e){const r=g(e,this);if(r&&["Loaded","LoadingMore"].includes(this.status)){const t=Object.freeze(e);let l=this.resources.findIndex(d=>g(d,this)==r);l>=0&&(this.resources[l]=t),l=this.selection.findIndex(d=>g(d,this)==r),l>=0&&(this.selection[l]=t),l=this.detailSelection.findIndex(d=>g(d,this)==r),l>=0&&(this.detailSelection[l]=t)}},async refreshResource(e){if(e){const r={};this.referencePathsToExpand&&(r.r=J(this.referencePathsToExpand));const t=s.map(r,(u,h)=>u!=null?`${encodeURIComponent(h)}=${encodeURIComponent(u)}`:null).filter(u=>u!=null).join("&"),l=s.isEmpty(t)?`${n.restCollectionUrl}/${e}`:`${n.restCollectionUrl}/${e}?${t}`,d=await $.get(l);if(d.status==200){const u=d.data;return this.recordUpdate(u),u}}return null},addResource(e={}){this.detailSelection=[s.omit(s.merge({},e),this.idProperty)],this.editingDetailSelection=!0},async deleteResource(e){if((await $.delete(`${n.restCollectionUrl}/${e}`)).status==200&&["Loaded","LoadingMore"].includes(this.status)){let t=this.resources.findIndex(l=>g(l,this)==e);t>=0&&this.resources.splice(t,1),t=this.selection.findIndex(l=>g(l,this)==e),t>=0&&this.selection.splice(t,1),t=this.detailSelection.findIndex(l=>g(l,this)==e),t>=0&&(this.detailSelection.splice(t,1),this.detailSelection.length==0&&(this.editingDetailSelection=n.detail.autoEdit)),n.limitTransientDataToLocalCollection&&delete this.transientData[e]}},async saveResource(e){const r=g(e,this),t=r==null,l=await $({method:t?"post":"put",url:t?n.restCollectionUrl:`${n.restCollectionUrl}/${r}`,data:e});if(l.status==200){const d=l.data,u=g(d,this),h=u?await this.refreshResource(u):null;return t&&this.recordInsertion(h||Object.freeze(d)),h||d}return null},async saveResources(e){const r=await $({method:"put",url:n.restCollectionUrl,data:e});if(r.status==200){const t=r.data||[],l=[];for(const[d,u]of t.entries()){const h=g(e[d],this)==null,S=g(u,this),D=S?await this.refreshResource(S):null;h&&this.recordInsertion(D||u),l.push(D||Object.freeze(u))}return l}return[]},clearTransientData(){this.transientData={}},setInvalidResourceIds(e){s.isEqual(e,this.invalidResources.map(r=>g(r,this)))||(this.invalidResources=e.map(r=>this.resources.find(t=>g(t,this)==r)).filter(r=>r!=null))},setTransientDataForResources(e){const{transientData:r,merge:t=!0}=e;t?s.merge(this.transientData,r):s.assign(this.transientData,r)},clearSelection(){this.setSelection([])},deselectResources(e){const r=this.selection.map(t=>g(t,this)).filter(t=>t!=null&&!e.includes(t));this.setSelection(r)},selectResources(e,r){const{addToSelection:t,edit:l}=r||{},d=this.selection.map(h=>g(h,this));let u=e;if(t){const h=s.difference(e,d);h.length>0&&(u=d.concat(h).filter(S=>S!=null))}s.isEqual(d,u)||this.setSelection(u,l)},setSelection(e,r){if(!s.isEqual(e,this.selection.map(t=>g(t,this)))){let t=!0;if(this.editors.length>0){if(n.detail.autoFromSingleSelection&&this.selection.length==1)t=!1;else if(n.detail.autoFromMultipleSelection&&n.detail.allowMultiple&&this.selection.length>1)t=!1;else if(n.detail.constrainToSelection){const l=this.selection.map(h=>g(h,this)),u=this.detailSelection.map(h=>g(h,this)).filter(h=>l.includes(h));this.detailSelection.filter(h=>!u.includes(g(h,this))).length>0&&(t=!1)}}if(!t)return;if(this.selection=e.map(l=>this.resources.find(d=>g(d,this)==l)).filter(l=>l!=null),n.detail.autoFromSingleSelection&&this.selection.length==1){const l=this.selection[0];(this.detailSelection.length!=1||g(this.detailSelection[0],this)!=g(l,this))&&(this.detailSelection=[l])}else if(n.detail.autoFromMultipleSelection&&n.detail.allowMultiple&&this.selection.length>1)s.isEqual(this.selection.map(l=>g(l,this)),this.detailSelection.map(l=>g(l,this)))||(this.detailSelection=s.clone(this.selection));else if(n.detail.constrainToSelection){const l=this.selection.map(h=>g(h,this)),d=this.detailSelection.map(h=>g(h,this)),u=d.filter(h=>l.includes(h));s.isEqual(u,d)||(this.detailSelection=this.detailSelection.filter(h=>u.includes(g(h,this))))}this.detailSelection.length==0?this.editingDetailSelection=!1:this.editingDetailSelection=r!==void 0?r:this.editingDetailSelection||n.detail.autoEdit}},hideDetail(){this.detailSelection.length>0&&(this.detailSelection=[],this.editingDetailSelection=!1)},showSelectionAsDetail(e){if(this.selection.length<=1||n.detail.allowMultiple){const r=this.selection.map(l=>g(l,this)),t=this.detailSelection.map(l=>g(l,this));s.isEqual(r,t)||(this.detailSelection=s.clone(this.selection)),this.detailSelection.length==0?this.editingDetailSelection=!1:this.editingDetailSelection=e!==void 0?e:this.editingDetailSelection||n.detail.autoEdit}},deregisterEditor(e){s.remove(this.editors,r=>r==e)},registerEditor(e){this.editors.includes(e)||this.editors.push(e)},deregisterListNavigator({name:e,listNavigator:r}){(r==null||this.listNavigators[e]==r)&&delete this.listNavigators[e]},registerListNavigator({name:e,listNavigator:r}){this.listNavigators[e]!=r&&(this.listNavigators[e]=r)}}});return(()=>{const e=(r,t)=>{const l=U(r,t);return ee.registerStore(l.$id,l),l};return e.$id=U.$id,e})()},ee=new ce,Ee=(w={})=>{var he,fe,ge,ve;const{collectionId:n,draftBatchId:U,enabled:q,resourceType:e,options:r}=w,t=a.ref(void 0),l=a.ref(n),d=a.ref(U),u=a.ref(q??!0),h=a.ref([a.toRef(e)]),S=a.ref(r),D=a.computed(()=>d.value),L=a.ref(u.value),A=a.ref(I.v4()),F=a.ref((fe=(he=S.value)==null?void 0:he.filter)==null?void 0:fe.resourceIds),b=a.ref((ve=(ge=S.value)==null?void 0:ge.filter)==null?void 0:ve.query),k=a.computed(()=>d.value==null&&l.value!=null&&ee.getStore(l.value)!=null),Q=a.ref(k.value),m=a.computed(()=>T("status","Uninitialized"));function R(i){if(t.value)return i(t.value)}async function C(i){if(t.value)return await i(t.value)}function T(i,c){if(t.value)return t.value[i];if(c!==void 0)return c;throw"Attempted to use a REST collection store that has not been created, with no default value."}const y=(i={})=>{var Re,Se,pe,ye;const{collectionId:c,draftBatchId:E,enabled:O,resourceType:re,options:me}=i;l.value=c,d.value=E,u.value=O??!0,h.value=[a.toRef(re)],me!=null&&(S.value=me,F.value=(Se=(Re=S.value)==null?void 0:Re.filter)==null?void 0:Se.resourceIds,b.value=(ye=(pe=S.value)==null?void 0:pe.filter)==null?void 0:ye.query),A.value=I.v4(),X(u.value)},X=async i=>{i!=L.value&&(L.value=i,i&&(_(),x()))},Z=async i=>{F.value=i,await C(async c=>await c.setFilterResourceIds(F.value||null))},V=async i=>{if(b.value=i,m.value!="Uninitialized"){const c=i,E=a.computed(()=>s.isFunction(c)?p.value?c(p.value):null:c);await C(O=>O.setQuery(E.value||null))}},_=()=>{S.value=s.merge({},S.value||{},{filter:{resourceIds:F.value,query:b.value}})},p=a.computed(()=>h.value[0].value||void 0),B=function(i){const c=s.get(i,"filter.query"),E=s.get(i,"referencePathsToExpand"),O=s.isFunction(c)?c(p.value):c,re=p.value?s.isFunction(E)?E(p.value):E||[]:[];return{...s.cloneDeep(i||{}),filter:{...s.cloneDeep((i==null?void 0:i.filter)||{}),query:O},referencePathsToExpand:re}},P=a.computed(()=>B(S.value)),M=a.computed(()=>{if(!p.value)return null;if(P.value.restCollectionUrl!==void 0)return P.value.restCollectionUrl;if(!Q.value)return!p.value||!p.value.collectionName?null:D.value?`${G.config.apiBaseUrl}/draft-batches/${D.value}/${p.value.collectionName}`:`${G.config.apiBaseUrl}/${p.value.collectionName}`}),o=a.computed(()=>{var i;if(p.value)return s.mergeWith(s.cloneDeep(ue),P.value,{idProperty:(i=p.value)==null?void 0:i.idProperty,restCollectionUrl:M.value||""},(c,E)=>{if(s.isArray(E)&&E.length==0&&(c==null||s.isArray(c)))return E})}),f=a.ref(0),N=a.computed(()=>{var i;return f.value,l.value||p.value&&((i=p.value)==null?void 0:i.collectionName)&&(D.value?`draftBatches/${D.value}/${p.value.collectionName}/${A.value}`:`${p.value.collectionName}/${A.value}`)||null}),x=()=>{if(L.value){let i=!1;return p.value&&N.value&&(t.value=ee.getStore(N.value),t.value?i=!1:o.value&&(Q.value=!1,t.value=Ce(N.value,o.value)(),i=!0)),i}else return!1},H=()=>{N.value&&l.value==N.value?(t.value=void 0,x()):(t.value=void 0,f.value=f.value+1,x())};a.watch(D,(i,c)=>{s.isEqual(i,c)||H()}),a.watch(L,(i,c)=>{i!=c&&(i?x():t.value=void 0)}),a.watch(p,(i,c)=>{i&&!c?x():!i&&c||s.isEqual(i,c)||H()}),a.watch(o,(i,c)=>{s.isEqual(i,c)||H()}),a.watch(k,()=>{k.value||(Q.value=!1)}),a.watch(N,()=>x()),a.watch(M,(i,c)=>{s.isEqual(i,c)||H()});const W=[],qe=function(i){m.value!="Uninitialized"?a.nextTick(i):W.push(i)};return a.watch(m,(i,c)=>{if(i!="Uninitialized"&&c=="Uninitialized"){const E=s.clone(W);W.splice(0,W.length);for(const O of E)O()}}),x(),{collectionId:N,draftBatchId:D,resourceType:p,enabled:L,status:m,batchSaveAttempted:a.computed(()=>T("batchSaveAttempted",!1)),listNavigators:a.computed(()=>T("listNavigators",!1)),invalidResources:a.computed(()=>T("invalidResources",[])),resources:a.computed(()=>m.value!="Uninitialized"?(C(i=>i.ensureCollectionLoaded()),T("resources",[])):[]),remoteCollectionSize:a.computed(()=>T("remoteCollectionSize",null)),transientData:a.computed(()=>T("transientData",[])),detailSelection:a.computed(()=>T("detailSelection",[])),editingDetailSelection:a.computed(()=>T("editingDetailSelection",!1)),selection:a.computed(()=>T("selection",[])),reconfigureCollection:y,setEditingDetailSelection:i=>R(c=>c.setEditingDetailSelection(i)),setEnabled:X,setFilterResourceIds:Z,setQuery:V,ensureStore:x,setBatchSaveAttempted:i=>R(c=>c.setBatchSaveAttempted(i)),clear:()=>R(i=>i.clear()),ensureCollectionLoaded:async()=>await C(async i=>i.ensureCollectionLoaded()),loadResources:async()=>await C(async i=>await i.loadResources()),addResource:i=>R(c=>c.addResource(i)),checkForDeletedResource:async i=>await C(async c=>await c.checkForDeletedResource(i))==!0,recordDeletion:i=>R(c=>c.recordDeletion(i)),recordInsertion:(i,{insertAtBeginning:c=!1,transientData:E=void 0}={})=>R(O=>O.recordInsertion(i,{insertAtBeginning:c,transientData:E})),recordUpdate:i=>R(c=>c.recordUpdate(i)),refreshResource:async i=>await C(async c=>await c.refreshResource(i)),deleteResource:async i=>await C(async c=>await c.deleteResource(i)),saveResource:async i=>await C(async c=>await c.saveResource(i)),saveResources:async i=>await C(async c=>await c.saveResources(i)),clearTransientData:()=>R(i=>i.clearTransientData()),setInvalidResourceIds:i=>R(c=>c.setInvalidResourceIds(i)),setTransientDataForResources:i=>R(c=>c.setTransientDataForResources(i)),clearSelection:()=>R(i=>i.clearSelection()),deselectResources:i=>R(c=>c.deselectResources(i)),selectResources:(i,c)=>R(E=>E.selectResources(i,c)),hideDetail:()=>R(i=>i.hideDetail()),deregisterEditor:i=>R(c=>c.deregisterEditor(i)),registerEditor:i=>R(c=>c.registerEditor(i)),deregisterListNavigator:i=>R(c=>c.deregisterListNavigator(i)),registerListNavigator:i=>R(c=>c.registerListNavigator(i)),onItemsStoreReady:qe}},Ue=()=>{ee.clearAllStores()};function ie(w,n){return s.get(w,(n==null?void 0:n.idProperty)||"_id")}const de={idProperty:"_id"},Y={resource:null,status:"NotLoaded"},Te=(w,n)=>{n=s.merge({},de,n);const U=ae.defineStore(w,{state:()=>({idProperty:n.idProperty,resourceId:n.resourceId||null,resourceUrl:n.resourceUrl||null,referencePathsToExpand:n.referencePathsToExpand||null,...Y}),getters:{currentResourceUrl:e=>e.resourceUrl||(n.restCollectionUrl&&e.resourceId?`${n.restCollectionUrl}/${e.resourceId}`:null)||n.restCollectionUrl||null,fixedQueryParams:e=>{const r={};return e.referencePathsToExpand&&(r.r=J(e.referencePathsToExpand)),r}},actions:{reset(){for(const e in Y)this[e]=Y[e]},async setResourceId(e){const r=this.currentResourceUrl;this.resourceId=e,!s.isEqual(this.currentResourceUrl,r)&&this.status!="NotLoaded"&&await this.loadResource()},async setResourceUrl(e){const r=this.currentResourceUrl;this.resourceUrl=e,!s.isEqual(this.currentResourceUrl,r)&&this.status!="NotLoaded"&&await this.loadResource()},clear(){for(const e in Y)this[e]=Y[e]},async ensureResourceLoaded(){["Loaded","Loading","Failed"].includes(this.status)||await this.loadResource()},async loadResource(){this.reset();const e=I.v4();if(this._loadId=e,this.currentResourceUrl){this.status="Loading";const r=this.fixedQueryParams,t=s.cloneDeep(r),l=s.map(t,(u,h)=>u!=null?`${encodeURIComponent(h)}=${encodeURIComponent(u)}`:null).filter(u=>u!=null).join("&"),d=s.isEmpty(l)?this.currentResourceUrl:`${this.currentResourceUrl}?${l}`;try{const u=await $.get(d),h=this.fixedQueryParams;e!=this._loadId||!s.isEqual(r,h)?console.log(`Discarding resource fetched by obsolete query from ${d}.`):(this.resource=ne.decode(s.get(u,"data",{})),this.status="Loaded")}catch(u){console.log(`Error while loading resource (URL="${d}")`,u),this.reset(),this.status="Failed"}}else throw"Cannot load a resource because its URL, or its ID and collection URL, are unknown."},async checkForDeletedResource(){if(this.currentResourceUrl){let e;try{e=await $.get(this.currentResourceUrl)}catch(r){$.isAxiosError(r)&&(e=r.response)}return e&&e.status==404?(this.recordDeletion(),!0):!1}else throw"Cannot check for a deleted resource because its URL, or its ID and collection URL, are unknown."},recordDeletion(){this.resource=null,this.status="Loaded"},recordInsertion(e){this.resourceId=ie(e,this)||null,this.status=="Loaded"&&(this.resource=Object.freeze(e))},recordUpdate(e){this.resourceId=ie(e,this)||null,this.status=="Loaded"&&(this.resource=Object.freeze(e))},async refreshResource(){return await this.loadResource(),this.resource},async deleteResource(){if(this.currentResourceUrl)(await $.delete(this.currentResourceUrl)).status==200&&this.recordDeletion();else throw"Cannot delete a resource because its URL, or its ID and collection URL, are unknown."},async saveResource(e){const r=ie(e,this),t=r==null;if(!r)throw"The REST resource store cannot create new resources on the server.";if(!this.currentResourceUrl)throw"Cannot save a resource because its URL, or its ID and collection URL, are unknown.";const l=await $({method:t?"post":"put",url:this.currentResourceUrl,data:e});if(l.status==200){const d=l.data,u=await this.refreshResource();return t&&this.recordInsertion(u||d),u||Object.freeze(d)}return null},async makeCustomApiRequest(e){const{method:r,subpath:t,url:l,data:d}=e;let u=l;if(!u)if(this.currentResourceUrl)u=`${this.currentResourceUrl}/${t}`;else throw"Cannot make a custom API request for a resource because its URL, or its ID and collection URL, are unknown.";const h=await $({method:r||"get",url:u,data:d});return h.status>=200&&h.status<300?h.data:null}}});return(()=>{const e=(r,t)=>{const l=U(r,t);return se.registerStore(l.$id,l),l};return e.$id=U.$id,e})()},se=new ce,Le=(w={})=>{const{resourceClientId:n,draftBatchId:U,enabled:q,resourceType:e,options:r}=w,t=a.ref(void 0),l=a.ref(n),d=a.ref(U),u=a.ref(q??!0),h=a.ref([a.toRef(e)]),S=a.ref(r),D=a.computed(()=>d.value),L=a.ref(u.value),A=a.ref(I.v4()),F=a.computed(()=>d.value==null&&l.value!=null&&se.getStore(l.value)!=null),b=a.ref(F.value),k=a.computed(()=>R("status","Uninitialized"));function Q(o){if(t.value)return o(t.value)}async function m(o){if(t.value)return await o(t.value)}function R(o,f){if(t.value)return t.value[o];if(f!==void 0)return f;throw"Attempted to use a REST resource store that has not been created, with no default value."}const C=(o={})=>{const{resourceClientId:f,draftBatchId:N,enabled:x,resourceType:H,options:W}=o;l.value=f,d.value=N,u.value=x??!0,h.value=[a.toRef(H)],W!=null&&(S.value=W),A.value=I.v4(),T(u.value)},T=async o=>{o!=L.value&&(L.value=o,o&&P())},y=a.computed(()=>h.value[0].value||void 0),X=function(o){const f=s.get(o,"referencePathsToExpand"),N=y.value?s.isFunction(f)?f(y.value):f||[]:[];return{...s.cloneDeep(o||{}),referencePathsToExpand:N}},Z=a.computed(()=>X(S.value)),V=a.computed(()=>{if(!y.value)return null;if(!b.value)return!y.value||!y.value.collectionName?null:D.value?`${G.config.apiBaseUrl}/draft-batches/${D.value}/${y.value.collectionName}`:`${G.config.apiBaseUrl}/${y.value.collectionName}`}),_=a.computed(()=>{if(y.value&&V.value)return s.mergeWith(s.cloneDeep(de),Z.value,{idProperty:y.value.idProperty,restCollectionUrl:V.value},(o,f)=>{if(s.isArray(f)&&f.length==0&&(o==null||s.isArray(o)))return f})}),p=a.ref(0),B=a.computed(()=>{var o;return p.value,l.value||y.value&&((o=y.value)==null?void 0:o.collectionName)&&(D.value?`draftBatches/${D.value}/${y.value.collectionName}/${A.value}`:`${y.value.collectionName}/${A.value}`)||null}),P=()=>{if(L.value){let o=!1;return y.value&&B.value&&(t.value=se.getStore(B.value),t.value?o=!1:_.value&&(b.value=!1,t.value=Te(B.value,_.value)(),o=!0)),o}else return!1},M=()=>{B.value&&l.value==B.value?(t.value=void 0,P()):(t.value=void 0,p.value=p.value+1,P())};return a.watch(D,(o,f)=>{s.isEqual(o,f)||M()}),a.watch(L,(o,f)=>{o!=f&&(o?P():t.value=void 0)}),a.watch(y,(o,f)=>{o&&!f?P():!o&&f||s.isEqual(o,f)||M()}),a.watch(_,(o,f)=>{s.isEqual(o,f)||M()}),a.watch(F,()=>{F.value||(b.value=!1)}),a.watch(B,()=>P()),a.watch(V,(o,f)=>{s.isEqual(o,f)||M()}),P(),{resourceClientId:B,draftBatchId:D,enabled:L,resourceType:y,status:k,resource:a.computed(()=>k.value!="Uninitialized"?(m(o=>o.ensureResourceLoaded()),R("resource",[])):[]),resourceId:a.computed(()=>R("resourceId",null)),resourceUrl:a.computed(()=>R("resourceUrl",null)),reconfigureClient:C,setEnabled:T,setResourceId:async o=>await m(async f=>await f.setResourceId(o)),setResourceUrl:async o=>await m(async f=>await f.setResourceUrl(o)),ensureStore:P,clear:()=>Q(o=>o.clear()),ensureResourceLoaded:async()=>await m(async o=>o.ensureResourceLoaded()),loadResource:async()=>await m(async o=>await o.loadResource()),checkForDeletedResource:async()=>await m(async o=>await o.checkForDeletedResource())==!0,recordDeletion:()=>m(o=>o.recordDeletion()),recordInsertion:o=>m(f=>f.recordInsertion(o)),recordUpdate:o=>m(f=>f.recordUpdate(o)),refreshResource:async()=>await m(async o=>await o.refreshResource()),deleteResource:async()=>await m(async o=>await o.deleteResource()),saveResource:async o=>await m(async f=>await f.saveResource(o)),makeCustomApiRequest:async o=>await m(async f=>await f.makeCustomApiRequest(o))}},G={config:{...oe}};function $e(w){G.config=s.merge({},oe,w)}v.ApiClientError=we,v.clearAllRestCollections=Ue,v.initRestClient=$e,v.restClient=G,v.useRestCollection=Ee,v.useRestResource=Le,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
1
|
+
(function(v,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("lodash"),require("uuid"),require("vue"),require("axios"),require("jsog"),require("json-stringify-deterministic"),require("pinia")):typeof define=="function"&&define.amd?define(["exports","lodash","uuid","vue","axios","jsog","json-stringify-deterministic","pinia"],s):(v=typeof globalThis<"u"?globalThis:v||self,s(v["rest-client-vue"]={},v._,v.uuid,v.Vue,v.axios,v.jsog,v.stringify,v.pinia))})(this,function(v,s,I,a,$,oe,G,ce){"use strict";var Pe=Object.defineProperty;var Fe=(v,s,I)=>s in v?Pe(v,s,{enumerable:!0,configurable:!0,writable:!0,value:I}):v[s]=I;var ae=(v,s,I)=>(Fe(v,typeof s!="symbol"?s+"":s,I),I),Ne=(v,s,I)=>{if(!s.has(v))throw TypeError("Cannot "+I)};var j=(v,s,I)=>(Ne(v,s,"read from private field"),I?I.call(v):s.get(v)),Ie=(v,s,I)=>{if(s.has(v))throw TypeError("Cannot add the same private member more than once");s instanceof WeakSet?s.add(v):s.set(v,I)};var A;const ue={apiBaseUrl:"",useVueLogger:!1};class we extends Error{constructor(U,q=void 0,e=void 0){super(U);ae(this,"context");ae(this,"innerError");this.context=q,this.innerError=e}}class de{constructor(){Ie(this,A,{})}clearAllStores(){for(const n in j(this,A))j(this,A)[n].clear()}destroyStore(n){j(this,A)[n]&&(j(this,A)[n].$dispose(),delete j(this,A)[n])}getStore(n){return j(this,A)[n]}registerStore(n,U){j(this,A)[n]=U}}A=new WeakMap;function g(w,n){return s.get(w,(n==null?void 0:n.idProperty)||"_id")}function De(w,n){var U;return w&&((U=n.filter)!=null&&U.resourceIds)&&!n.order?n.filter.resourceIds.map(q=>w.find(e=>g(e,n)==q)).filter(q=>q!=null):w}const he={detail:{allowMultiple:!0,autoEdit:!1,autoFromMultipleSelection:!0,autoFromSingleInsertion:!0,autoFromSingleSelection:!0,constrainToSelection:!0},filter:{namedFilter:null,query:null,resourceIds:null},idProperty:"_id",limit:5e3,limitTransientDataToLocalCollection:!0,loading:{firstPageSize:500,pageSize:5e3},order:[[{path:"history.creation.timestamp"},"desc"],[{path:"history.creation.orderInBatch"},"desc"]]},K={resources:[],remoteCollectionSize:null,status:"NotLoaded",selection:[],detailSelection:[],invalidResources:[],transientData:{}},se={editingDetailSelection:!1,batchSaveAttempted:!1,editors:[],listNavigators:{}},Ce=(w,n)=>{n=s.merge({},he,n);const U=ce.defineStore(w,{state:()=>({idProperty:n.idProperty,filter:n.filter,order:n.order||null,propertyBlacklist:n.propertyBlacklist||null,referencePathsToExpand:n.referencePathsToExpand||null,...K,...se}),getters:{fixedQueryParams:e=>{var l,d,u,h;const r={};(l=e.filter)!=null&&l.namedFilter&&(r.namedFilter=e.filter.namedFilter);const t=[];if((d=e.filter)!=null&&d.resourceIds&&t.push({l:{path:e.idProperty},r:{constant:e.filter.resourceIds},operator:"in"}),(u=e.filter)!=null&&u.query&&t.push((h=e.filter)==null?void 0:h.query),t.length>0){const S=t.length==1?t[0]:{and:t};r.q=G(S)}return e.order&&(r.o=G(e.order)),e.propertyBlacklist&&(r.ex=G(e.propertyBlacklist)),e.referencePathsToExpand&&(r.r=G(e.referencePathsToExpand)),r}},actions:{reset(){for(const e in K)this[e]=K[e];for(const e in se)this[e]=se[e]},resetRetainingTransientData(){if(n.limitTransientDataToLocalCollection)this.reset();else{const e=this.transientData;this.reset(),this.transientData=e}},setEditingDetailSelection(e){this.editingDetailSelection=e},setFilter(e){s.isEqual(e,this.filter)||(this.filter=e,this.status="NotLoaded",this.resources=[],this.remoteCollectionSize=null,this.selection=[],this.detailSelection=[],this.invalidResources=[],this.editingDetailSelection=!1)},async setQuery(e){var r,t;if(!s.isEqual(e,(r=this.filter)==null?void 0:r.query)&&(e!=null||((t=this.filter)==null?void 0:t.query)!=null)){const l=s.cloneDeep(this.filter)||{};e!==null?l.query=e:s.unset(l,"query");const d=this.status;this.setFilter(l),d!="NotLoaded"&&await this.loadResources()}},async setFilterResourceIds(e){if(!s.isEqual(e,s.get(this.filter,"resourceIds"))){const r=s.cloneDeep(this.filter)||{};e!=null?r.resourceIds=e:s.unset(r,"resourceIds");const t=this.status;this.setFilter(r),t!="NotLoaded"&&await this.loadResources()}},setBatchSaveAttempted(e){e!=this.batchSaveAttempted&&(this.batchSaveAttempted=e)},clear(){for(const e in K)this[e]=K[e]},clearRetainingTransientData(){if(n.limitTransientDataToLocalCollection)this.reset();else{const e=this.transientData;this.reset(),this.transientData=e}},async ensureCollectionLoaded(){["Loaded","Loading","LoadingMore","Failed"].includes(this.status)||await this.loadResources()},async loadResources(e={}){this.resetRetainingTransientData();const r=I.v4();this._loadId=r,await this._loadResources(0,r,e)},async _loadResources(e,r,t){var b,N,k,B,Q;const l=e==0;if(this.status=l?"Loading":"LoadingMore",this._loadOffset=e,((b=this.filter)==null?void 0:b.query)===!1){this.resources=[],this.remoteCollectionSize=0;return}const d=this.fixedQueryParams,u=s.cloneDeep(d),h=l?(N=this.filter)!=null&&N.resourceIds&&!this.order?null:t.firstPageSize||((k=n.loading)==null?void 0:k.firstPageSize)||t.pageSize||((B=n.loading)==null?void 0:B.pageSize)||null:t.pageSize||((Q=n.loading)==null?void 0:Q.pageSize)||null,S=h!=null||n.limit!=null?s.min(s.filter([h,n.limit],p=>p!=null)):void 0;S!=null?(u.offset=e,u.limit=S):e!=0&&(u.offset=e);const D=s.map(u,(p,m)=>p!=null?`${encodeURIComponent(m)}=${encodeURIComponent(p)}`:null).filter(p=>p!=null).join("&"),L=s.isEmpty(D)?n.restCollectionUrl:`${n.restCollectionUrl}?${D}`;try{const p=await $.get(L),m=this.fixedQueryParams;if(r!=this._loadId||e!=this._loadOffset||!s.isEqual(d,m))console.log(`Discarding resources fetched by obsolete query from ${n.restCollectionUrl}.`);else{const C=oe.decode(s.get(p,"data.data",[])),T=(l?0:this.resources.length)+C.length,y=S==null||C.length<S||n.limit&&T>=n.limit;console.log(`Loaded ${C.length}${l?"":" more"} resources from ${n.restCollectionUrl}`),l&&(this.resources=[]);const H=[...this.resources,...C.map(Z=>Object.freeze(Z))];this.resources=De(H,this),s.get(p,"data.totalCollectionSize")?this.remoteCollectionSize=s.get(p,"data.totalCollectionSize"):this.remoteCollectionSize=null,this.status=y?"Loaded":"LoadingMore",y||this._loadResources(this.resources.length,r,t)}}catch(p){console.log(`Error while loading resources (URL="${L}"):`,p),this.clearRetainingTransientData(),this.status="Failed"}},async checkForDeletedResource(e){let r;try{r=await $.get(`${n.restCollectionUrl}/${e}`)}catch(t){$.isAxiosError(t)&&(r=t.response)}return r&&r.status==404?(this.recordDeletion(e),!0):!1},recordDeletion(e){var r;if(["Loaded","LoadingMore"].includes(this.status)){let t=this.resources.findIndex(l=>g(l,this)==e);t>=0&&this.resources.splice(t,1),t=this.selection.findIndex(l=>g(l,this)==e),t>=0&&this.selection.splice(t,1),t=this.detailSelection.findIndex(l=>g(l,this)==e),t>=0&&(this.detailSelection.splice(t,1),this.detailSelection.length==0&&(this.editingDetailSelection=((r=n.detail)==null?void 0:r.autoEdit)||!1)),n.limitTransientDataToLocalCollection&&delete this.transientData[e]}},recordInsertion(e,{insertAtBeginning:r,transientData:t}={}){var l;if(["Loaded","LoadingMore"].includes(this.status)){const d=Object.freeze(e);r?this.resources.unshift(d):this.resources.push(d),(l=n.detail)!=null&&l.autoFromSingleInsertion&&(this.detailSelection.length==0||this.detailSelection.length==1&&g(this.detailSelection[0],this)==null)&&(this.detailSelection=[d],this.editingDetailSelection=n.detail.autoEdit);const u=g(e,this);u&&(t===void 0?delete this.transientData[u]:this.transientData[u]=t)}},recordUpdate(e){const r=g(e,this);if(r&&["Loaded","LoadingMore"].includes(this.status)){const t=Object.freeze(e);let l=this.resources.findIndex(d=>g(d,this)==r);l>=0&&(this.resources[l]=t),l=this.selection.findIndex(d=>g(d,this)==r),l>=0&&(this.selection[l]=t),l=this.detailSelection.findIndex(d=>g(d,this)==r),l>=0&&(this.detailSelection[l]=t)}},async refreshResource(e){if(e){const r={};this.referencePathsToExpand&&(r.r=G(this.referencePathsToExpand));const t=s.map(r,(u,h)=>u!=null?`${encodeURIComponent(h)}=${encodeURIComponent(u)}`:null).filter(u=>u!=null).join("&"),l=s.isEmpty(t)?`${n.restCollectionUrl}/${e}`:`${n.restCollectionUrl}/${e}?${t}`,d=await $.get(l);if(d.status==200){const u=d.data;return this.recordUpdate(u),u}}return null},addResource(e={}){this.detailSelection=[s.omit(s.merge({},e),this.idProperty)],this.editingDetailSelection=!0},async deleteResource(e){if((await $.delete(`${n.restCollectionUrl}/${e}`)).status==200&&["Loaded","LoadingMore"].includes(this.status)){let t=this.resources.findIndex(l=>g(l,this)==e);t>=0&&this.resources.splice(t,1),t=this.selection.findIndex(l=>g(l,this)==e),t>=0&&this.selection.splice(t,1),t=this.detailSelection.findIndex(l=>g(l,this)==e),t>=0&&(this.detailSelection.splice(t,1),this.detailSelection.length==0&&(this.editingDetailSelection=n.detail.autoEdit)),n.limitTransientDataToLocalCollection&&delete this.transientData[e]}},async saveResource(e){const r=g(e,this),t=r==null,l=await $({method:t?"post":"put",url:t?n.restCollectionUrl:`${n.restCollectionUrl}/${r}`,data:e});if(l.status==200){const d=l.data,u=g(d,this),h=u?await this.refreshResource(u):null;return t&&this.recordInsertion(h||Object.freeze(d)),h||d}return null},async saveResources(e){const r=await $({method:"put",url:n.restCollectionUrl,data:e});if(r.status==200){const t=r.data||[],l=[];for(const[d,u]of t.entries()){const h=g(e[d],this)==null,S=g(u,this),D=S?await this.refreshResource(S):null;h&&this.recordInsertion(D||u),l.push(D||Object.freeze(u))}return l}return[]},clearTransientData(){this.transientData={}},setInvalidResourceIds(e){s.isEqual(e,this.invalidResources.map(r=>g(r,this)))||(this.invalidResources=e.map(r=>this.resources.find(t=>g(t,this)==r)).filter(r=>r!=null))},setTransientDataForResources(e){const{transientData:r,merge:t=!0}=e;t?s.merge(this.transientData,r):s.assign(this.transientData,r)},clearSelection(){this.setSelection([])},deselectResources(e){const r=this.selection.map(t=>g(t,this)).filter(t=>t!=null&&!e.includes(t));this.setSelection(r)},selectResources(e,r){const{addToSelection:t,edit:l}=r||{},d=this.selection.map(h=>g(h,this));let u=e;if(t){const h=s.difference(e,d);h.length>0&&(u=d.concat(h).filter(S=>S!=null))}s.isEqual(d,u)||this.setSelection(u,l)},setSelection(e,r){if(!s.isEqual(e,this.selection.map(t=>g(t,this)))){let t=!0;if(this.editors.length>0){if(n.detail.autoFromSingleSelection&&this.selection.length==1)t=!1;else if(n.detail.autoFromMultipleSelection&&n.detail.allowMultiple&&this.selection.length>1)t=!1;else if(n.detail.constrainToSelection){const l=this.selection.map(h=>g(h,this)),u=this.detailSelection.map(h=>g(h,this)).filter(h=>l.includes(h));this.detailSelection.filter(h=>!u.includes(g(h,this))).length>0&&(t=!1)}}if(!t)return;if(this.selection=e.map(l=>this.resources.find(d=>g(d,this)==l)).filter(l=>l!=null),n.detail.autoFromSingleSelection&&this.selection.length==1){const l=this.selection[0];(this.detailSelection.length!=1||g(this.detailSelection[0],this)!=g(l,this))&&(this.detailSelection=[l])}else if(n.detail.autoFromMultipleSelection&&n.detail.allowMultiple&&this.selection.length>1)s.isEqual(this.selection.map(l=>g(l,this)),this.detailSelection.map(l=>g(l,this)))||(this.detailSelection=s.clone(this.selection));else if(n.detail.constrainToSelection){const l=this.selection.map(h=>g(h,this)),d=this.detailSelection.map(h=>g(h,this)),u=d.filter(h=>l.includes(h));s.isEqual(u,d)||(this.detailSelection=this.detailSelection.filter(h=>u.includes(g(h,this))))}this.detailSelection.length==0?this.editingDetailSelection=!1:this.editingDetailSelection=r!==void 0?r:this.editingDetailSelection||n.detail.autoEdit}},hideDetail(){this.detailSelection.length>0&&(this.detailSelection=[],this.editingDetailSelection=!1)},showSelectionAsDetail(e){if(this.selection.length<=1||n.detail.allowMultiple){const r=this.selection.map(l=>g(l,this)),t=this.detailSelection.map(l=>g(l,this));s.isEqual(r,t)||(this.detailSelection=s.clone(this.selection)),this.detailSelection.length==0?this.editingDetailSelection=!1:this.editingDetailSelection=e!==void 0?e:this.editingDetailSelection||n.detail.autoEdit}},deregisterEditor(e){s.remove(this.editors,r=>r==e)},registerEditor(e){this.editors.includes(e)||this.editors.push(e)},deregisterListNavigator({name:e,listNavigator:r}){(r==null||this.listNavigators[e]==r)&&delete this.listNavigators[e]},registerListNavigator({name:e,listNavigator:r}){this.listNavigators[e]!=r&&(this.listNavigators[e]=r)}}});return(()=>{const e=(r,t)=>{const l=U(r,t);return ee.registerStore(l.$id,l),l};return e.$id=U.$id,e})()},ee=new de,Ee=(w={})=>{var ge,ve,pe,me;const{collectionId:n,draftBatchId:U,enabled:q,resourceType:e,options:r}=w,t=a.ref(void 0),l=a.ref(n),d=a.ref(U),u=a.ref(q??!0),h=a.ref([a.toRef(e)]),S=a.ref(r),D=a.computed(()=>d.value),L=a.ref(u.value),b=a.ref(I.v4()),N=a.ref((ve=(ge=S.value)==null?void 0:ge.filter)==null?void 0:ve.resourceIds),k=a.ref((me=(pe=S.value)==null?void 0:pe.filter)==null?void 0:me.query),B=a.computed(()=>d.value==null&&l.value!=null&&ee.getStore(l.value)!=null),Q=a.ref(B.value),p=a.computed(()=>T("status","Uninitialized"));function m(i){if(t.value)return i(t.value)}async function C(i){if(t.value)return await i(t.value)}function T(i,c){if(t.value)return t.value[i];if(c!==void 0)return c;throw"Attempted to use a REST collection store that has not been created, with no default value."}const y=(i={})=>{var ie,Re,Se,ye;const{collectionId:c,draftBatchId:E,enabled:F,resourceType:ne,options:te}=i;l.value=c,d.value=E,u.value=F??!0,h.value=[a.toRef(ne)],te!=null&&(S.value=te,N.value=(Re=(ie=S.value)==null?void 0:ie.filter)==null?void 0:Re.resourceIds,k.value=(ye=(Se=S.value)==null?void 0:Se.filter)==null?void 0:ye.query),b.value=I.v4(),H(u.value)},H=async i=>{i!=L.value&&(L.value=i,i&&(_(),z()))},Z=async i=>{N.value=i,await C(async c=>await c.setFilterResourceIds(N.value||null))},V=async i=>{if(k.value=i,p.value!="Uninitialized"){const c=i,E=a.computed(()=>s.isFunction(c)?R.value?c(R.value):null:c);await C(F=>F.setQuery(E.value||null))}},_=()=>{S.value=s.merge({},S.value||{},{filter:{resourceIds:N.value,query:k.value}})},R=a.computed(()=>h.value[0].value||void 0),O=function(i){const c=s.get(i,"filter.query"),E=s.get(i,"propertyBlacklist"),F=s.get(i,"referencePathsToExpand"),ne=s.isFunction(c)?c(R.value):c,te=R.value?s.isFunction(E)?E(R.value):E||[]:[],ie=R.value?s.isFunction(F)?F(R.value):F||[]:[];return{...s.cloneDeep(i||{}),filter:{...s.cloneDeep((i==null?void 0:i.filter)||{}),query:ne},propertyBlacklist:te,referencePathsToExpand:ie}},P=a.computed(()=>O(S.value)),M=a.computed(()=>{if(!R.value)return null;if(P.value.restCollectionUrl!==void 0)return P.value.restCollectionUrl;if(!Q.value)return!R.value||!R.value.collectionName?null:D.value?`${X.config.apiBaseUrl}/draft-batches/${D.value}/${R.value.collectionName}`:`${X.config.apiBaseUrl}/${R.value.collectionName}`}),o=a.computed(()=>{var i;if(R.value)return s.mergeWith(s.cloneDeep(he),P.value,{idProperty:(i=R.value)==null?void 0:i.idProperty,restCollectionUrl:M.value||""},(c,E)=>{if(s.isArray(E)&&E.length==0&&(c==null||s.isArray(c)))return E})}),f=a.ref(0),x=a.computed(()=>{var i;return f.value,l.value||R.value&&((i=R.value)==null?void 0:i.collectionName)&&(D.value?`draftBatches/${D.value}/${R.value.collectionName}/${b.value}`:`${R.value.collectionName}/${b.value}`)||null}),z=()=>{if(L.value){let i=!1;return R.value&&x.value&&(t.value=ee.getStore(x.value),t.value?i=!1:o.value&&(Q.value=!1,t.value=Ce(x.value,o.value)(),i=!0)),i}else return!1},J=()=>{x.value&&l.value==x.value?(t.value=void 0,z()):(t.value=void 0,f.value=f.value+1,z())};a.watch(D,(i,c)=>{s.isEqual(i,c)||J()}),a.watch(L,(i,c)=>{i!=c&&(i?z():t.value=void 0)}),a.watch(R,(i,c)=>{i&&!c?z():!i&&c||s.isEqual(i,c)||J()}),a.watch(o,(i,c)=>{s.isEqual(i,c)||J()}),a.watch(B,()=>{B.value||(Q.value=!1)}),a.watch(x,()=>z()),a.watch(M,(i,c)=>{s.isEqual(i,c)||J()});const W=[],qe=function(i){p.value!="Uninitialized"?a.nextTick(i):W.push(i)};return a.watch(p,(i,c)=>{if(i!="Uninitialized"&&c=="Uninitialized"){const E=s.clone(W);W.splice(0,W.length);for(const F of E)F()}}),z(),{collectionId:x,draftBatchId:D,resourceType:R,enabled:L,status:p,batchSaveAttempted:a.computed(()=>T("batchSaveAttempted",!1)),listNavigators:a.computed(()=>T("listNavigators",!1)),invalidResources:a.computed(()=>T("invalidResources",[])),resources:a.computed(()=>p.value!="Uninitialized"?(C(i=>i.ensureCollectionLoaded()),T("resources",[])):[]),remoteCollectionSize:a.computed(()=>T("remoteCollectionSize",null)),transientData:a.computed(()=>T("transientData",[])),detailSelection:a.computed(()=>T("detailSelection",[])),editingDetailSelection:a.computed(()=>T("editingDetailSelection",!1)),selection:a.computed(()=>T("selection",[])),reconfigureCollection:y,setEditingDetailSelection:i=>m(c=>c.setEditingDetailSelection(i)),setEnabled:H,setFilterResourceIds:Z,setQuery:V,ensureStore:z,setBatchSaveAttempted:i=>m(c=>c.setBatchSaveAttempted(i)),clear:()=>m(i=>i.clear()),ensureCollectionLoaded:async()=>await C(async i=>i.ensureCollectionLoaded()),loadResources:async()=>await C(async i=>await i.loadResources()),addResource:i=>m(c=>c.addResource(i)),checkForDeletedResource:async i=>await C(async c=>await c.checkForDeletedResource(i))==!0,recordDeletion:i=>m(c=>c.recordDeletion(i)),recordInsertion:(i,{insertAtBeginning:c=!1,transientData:E=void 0}={})=>m(F=>F.recordInsertion(i,{insertAtBeginning:c,transientData:E})),recordUpdate:i=>m(c=>c.recordUpdate(i)),refreshResource:async i=>await C(async c=>await c.refreshResource(i)),deleteResource:async i=>await C(async c=>await c.deleteResource(i)),saveResource:async i=>await C(async c=>await c.saveResource(i)),saveResources:async i=>await C(async c=>await c.saveResources(i)),clearTransientData:()=>m(i=>i.clearTransientData()),setInvalidResourceIds:i=>m(c=>c.setInvalidResourceIds(i)),setTransientDataForResources:i=>m(c=>c.setTransientDataForResources(i)),clearSelection:()=>m(i=>i.clearSelection()),deselectResources:i=>m(c=>c.deselectResources(i)),selectResources:(i,c)=>m(E=>E.selectResources(i,c)),hideDetail:()=>m(i=>i.hideDetail()),deregisterEditor:i=>m(c=>c.deregisterEditor(i)),registerEditor:i=>m(c=>c.registerEditor(i)),deregisterListNavigator:i=>m(c=>c.deregisterListNavigator(i)),registerListNavigator:i=>m(c=>c.registerListNavigator(i)),onItemsStoreReady:qe}},Ue=()=>{ee.clearAllStores()};function re(w,n){return s.get(w,(n==null?void 0:n.idProperty)||"_id")}const fe={idProperty:"_id"},Y={resource:null,status:"NotLoaded"},Te=(w,n)=>{n=s.merge({},fe,n);const U=ce.defineStore(w,{state:()=>({idProperty:n.idProperty,resourceId:n.resourceId||null,resourceUrl:n.resourceUrl||null,referencePathsToExpand:n.referencePathsToExpand||null,...Y}),getters:{currentResourceUrl:e=>e.resourceUrl||(n.restCollectionUrl&&e.resourceId?`${n.restCollectionUrl}/${e.resourceId}`:null)||n.restCollectionUrl||null,fixedQueryParams:e=>{const r={};return e.referencePathsToExpand&&(r.r=G(e.referencePathsToExpand)),r}},actions:{reset(){for(const e in Y)this[e]=Y[e]},async setResourceId(e){const r=this.currentResourceUrl;this.resourceId=e,!s.isEqual(this.currentResourceUrl,r)&&this.status!="NotLoaded"&&await this.loadResource()},async setResourceUrl(e){const r=this.currentResourceUrl;this.resourceUrl=e,!s.isEqual(this.currentResourceUrl,r)&&this.status!="NotLoaded"&&await this.loadResource()},clear(){for(const e in Y)this[e]=Y[e]},async ensureResourceLoaded(){["Loaded","Loading","Failed"].includes(this.status)||await this.loadResource()},async loadResource(){this.reset();const e=I.v4();if(this._loadId=e,this.currentResourceUrl){this.status="Loading";const r=this.fixedQueryParams,t=s.cloneDeep(r),l=s.map(t,(u,h)=>u!=null?`${encodeURIComponent(h)}=${encodeURIComponent(u)}`:null).filter(u=>u!=null).join("&"),d=s.isEmpty(l)?this.currentResourceUrl:`${this.currentResourceUrl}?${l}`;try{const u=await $.get(d),h=this.fixedQueryParams;e!=this._loadId||!s.isEqual(r,h)?console.log(`Discarding resource fetched by obsolete query from ${d}.`):(this.resource=oe.decode(s.get(u,"data",{})),this.status="Loaded")}catch(u){console.log(`Error while loading resource (URL="${d}")`,u),this.reset(),this.status="Failed"}}else throw"Cannot load a resource because its URL, or its ID and collection URL, are unknown."},async checkForDeletedResource(){if(this.currentResourceUrl){let e;try{e=await $.get(this.currentResourceUrl)}catch(r){$.isAxiosError(r)&&(e=r.response)}return e&&e.status==404?(this.recordDeletion(),!0):!1}else throw"Cannot check for a deleted resource because its URL, or its ID and collection URL, are unknown."},recordDeletion(){this.resource=null,this.status="Loaded"},recordInsertion(e){this.resourceId=re(e,this)||null,this.status=="Loaded"&&(this.resource=Object.freeze(e))},recordUpdate(e){this.resourceId=re(e,this)||null,this.status=="Loaded"&&(this.resource=Object.freeze(e))},async refreshResource(){return await this.loadResource(),this.resource},async deleteResource(){if(this.currentResourceUrl)(await $.delete(this.currentResourceUrl)).status==200&&this.recordDeletion();else throw"Cannot delete a resource because its URL, or its ID and collection URL, are unknown."},async saveResource(e){const r=re(e,this),t=r==null;if(!r)throw"The REST resource store cannot create new resources on the server.";if(!this.currentResourceUrl)throw"Cannot save a resource because its URL, or its ID and collection URL, are unknown.";const l=await $({method:t?"post":"put",url:this.currentResourceUrl,data:e});if(l.status==200){const d=l.data,u=await this.refreshResource();return t&&this.recordInsertion(u||d),u||Object.freeze(d)}return null},async makeCustomApiRequest(e){const{method:r,subpath:t,url:l,data:d}=e;let u=l;if(!u)if(this.currentResourceUrl)u=`${this.currentResourceUrl}/${t}`;else throw"Cannot make a custom API request for a resource because its URL, or its ID and collection URL, are unknown.";const h=await $({method:r||"get",url:u,data:d});return h.status>=200&&h.status<300?h.data:null}}});return(()=>{const e=(r,t)=>{const l=U(r,t);return le.registerStore(l.$id,l),l};return e.$id=U.$id,e})()},le=new de,Le=(w={})=>{const{resourceClientId:n,draftBatchId:U,enabled:q,resourceType:e,options:r}=w,t=a.ref(void 0),l=a.ref(n),d=a.ref(U),u=a.ref(q??!0),h=a.ref([a.toRef(e)]),S=a.ref(r),D=a.computed(()=>d.value),L=a.ref(u.value),b=a.ref(I.v4()),N=a.computed(()=>d.value==null&&l.value!=null&&le.getStore(l.value)!=null),k=a.ref(N.value),B=a.computed(()=>m("status","Uninitialized"));function Q(o){if(t.value)return o(t.value)}async function p(o){if(t.value)return await o(t.value)}function m(o,f){if(t.value)return t.value[o];if(f!==void 0)return f;throw"Attempted to use a REST resource store that has not been created, with no default value."}const C=(o={})=>{const{resourceClientId:f,draftBatchId:x,enabled:z,resourceType:J,options:W}=o;l.value=f,d.value=x,u.value=z??!0,h.value=[a.toRef(J)],W!=null&&(S.value=W),b.value=I.v4(),T(u.value)},T=async o=>{o!=L.value&&(L.value=o,o&&P())},y=a.computed(()=>h.value[0].value||void 0),H=function(o){const f=s.get(o,"referencePathsToExpand"),x=y.value?s.isFunction(f)?f(y.value):f||[]:[];return{...s.cloneDeep(o||{}),referencePathsToExpand:x}},Z=a.computed(()=>H(S.value)),V=a.computed(()=>{if(!y.value)return null;if(!k.value)return!y.value||!y.value.collectionName?null:D.value?`${X.config.apiBaseUrl}/draft-batches/${D.value}/${y.value.collectionName}`:`${X.config.apiBaseUrl}/${y.value.collectionName}`}),_=a.computed(()=>{if(y.value&&V.value)return s.mergeWith(s.cloneDeep(fe),Z.value,{idProperty:y.value.idProperty,restCollectionUrl:V.value},(o,f)=>{if(s.isArray(f)&&f.length==0&&(o==null||s.isArray(o)))return f})}),R=a.ref(0),O=a.computed(()=>{var o;return R.value,l.value||y.value&&((o=y.value)==null?void 0:o.collectionName)&&(D.value?`draftBatches/${D.value}/${y.value.collectionName}/${b.value}`:`${y.value.collectionName}/${b.value}`)||null}),P=()=>{if(L.value){let o=!1;return y.value&&O.value&&(t.value=le.getStore(O.value),t.value?o=!1:_.value&&(k.value=!1,t.value=Te(O.value,_.value)(),o=!0)),o}else return!1},M=()=>{O.value&&l.value==O.value?(t.value=void 0,P()):(t.value=void 0,R.value=R.value+1,P())};return a.watch(D,(o,f)=>{s.isEqual(o,f)||M()}),a.watch(L,(o,f)=>{o!=f&&(o?P():t.value=void 0)}),a.watch(y,(o,f)=>{o&&!f?P():!o&&f||s.isEqual(o,f)||M()}),a.watch(_,(o,f)=>{s.isEqual(o,f)||M()}),a.watch(N,()=>{N.value||(k.value=!1)}),a.watch(O,()=>P()),a.watch(V,(o,f)=>{s.isEqual(o,f)||M()}),P(),{resourceClientId:O,draftBatchId:D,enabled:L,resourceType:y,status:B,resource:a.computed(()=>B.value!="Uninitialized"?(p(o=>o.ensureResourceLoaded()),m("resource",[])):[]),resourceId:a.computed(()=>m("resourceId",null)),resourceUrl:a.computed(()=>m("resourceUrl",null)),reconfigureClient:C,setEnabled:T,setResourceId:async o=>await p(async f=>await f.setResourceId(o)),setResourceUrl:async o=>await p(async f=>await f.setResourceUrl(o)),ensureStore:P,clear:()=>Q(o=>o.clear()),ensureResourceLoaded:async()=>await p(async o=>o.ensureResourceLoaded()),loadResource:async()=>await p(async o=>await o.loadResource()),checkForDeletedResource:async()=>await p(async o=>await o.checkForDeletedResource())==!0,recordDeletion:()=>p(o=>o.recordDeletion()),recordInsertion:o=>p(f=>f.recordInsertion(o)),recordUpdate:o=>p(f=>f.recordUpdate(o)),refreshResource:async()=>await p(async o=>await o.refreshResource()),deleteResource:async()=>await p(async o=>await o.deleteResource()),saveResource:async o=>await p(async f=>await f.saveResource(o)),makeCustomApiRequest:async o=>await p(async f=>await f.makeCustomApiRequest(o))}},X={config:{...ue}};function $e(w){X.config=s.merge({},ue,w)}v.ApiClientError=we,v.clearAllRestCollections=Ue,v.initRestClient=$e,v.restClient=X,v.useRestCollection=Ee,v.useRestResource=Le,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
@@ -54,6 +54,7 @@ export interface ConcreteRestCollectionStoreOptionsInput {
|
|
54
54
|
pageSize?: number | null;
|
55
55
|
};
|
56
56
|
order?: [any, string][];
|
57
|
+
propertyBlacklist?: string[];
|
57
58
|
referencePathsToExpand?: string[];
|
58
59
|
restCollectionUrl?: string | null;
|
59
60
|
}
|
@@ -79,6 +80,7 @@ export interface RestCollectionStoreOptionsInput {
|
|
79
80
|
pageSize?: number | null;
|
80
81
|
};
|
81
82
|
order?: [any, string][];
|
83
|
+
propertyBlacklist?: string[] | ((resourceType: ResourceType) => string[]);
|
82
84
|
referencePathsToExpand?: string[] | ((resourceType: ResourceType) => string[]);
|
83
85
|
restCollectionUrl?: string | null;
|
84
86
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rest-collection.d.ts","sourceRoot":"","sources":["../../src/rest-collection.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,GAAG,EAAe,MAAM,KAAK,CAAA;AAI9D,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,gCAAgC,CAAA;AACjF,OAAkB,EAEhB,oBAAoB,EAIrB,MAAM,mCAAmC,CAAA;AAE1C,6CAA6C;AAC7C,MAAM,WAAW,qBAAqB;IACpC;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,yBAAyB;IACzB,YAAY,CAAC,EAAE,GAAG,CAAC,YAAY,GAAG,SAAS,CAAC,GAAG,YAAY,CAAA;IAC3D,oFAAoF;IACpF,OAAO,CAAC,EAAE,+BAA+B,CAAA;CAC1C;AAED,MAAM,WAAW,uCAAuC;IACtD,MAAM,CAAC,EAAE;QACP,aAAa,C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,CAAA;IAE3D;;;;;;;;OAQG;IACH,qBAAqB,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IAM1D,0DAA0D;IAC1D,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAE9B;;;;OAIG;IACH,4BAA4B,EAAE,CAAC,MAAM,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAMtE,cAAc,EAAE,MAAM,IAAI,CAAA;IAC1B,iBAAiB,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,KAAK,IAAI,CAAA;IACtD,eAAe,EAAE,CAAC,WAAW,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,EAAE,sBAAsB,KAAK,IAAI,CAAA;IAMtF,UAAU,EAAE,MAAM,IAAI,CAAA;IAMtB,gBAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAA;IACvC,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAA;IAMrC,uBAAuB,EAAE,CAAC,EAAC,IAAI,EAAE,aAAa,EAAC,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,GAAG,CAAA;KAAC,KAAK,IAAI,CAAA;IAC5F,qBAAqB,EAAE,CAAC,EAAC,IAAI,EAAE,aAAa,EAAC,EAAE;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,aAAa,EAAE,GAAG,CAAA;KAAC,KAAK,IAAI,CAAA;IAM1F,iBAAiB,EAAE,CAAC,QAAQ,EAAE,gCAAgC,KAAK,IAAI,CAAA;CACxE;6DAEsD,qBAAqB;AAA5E,wBA8cC;AAED,eAAO,MAAM,uBAAuB,YAA2C,CAAA"}
|
@@ -27,6 +27,7 @@ export interface RestCollectionStoreOptions {
|
|
27
27
|
pageSize?: number;
|
28
28
|
};
|
29
29
|
order?: QueryOrder;
|
30
|
+
propertyBlacklist?: string[];
|
30
31
|
referencePathsToExpand?: string[];
|
31
32
|
restCollectionUrl: string;
|
32
33
|
}
|
@@ -39,6 +40,7 @@ export interface RestCollectionStoreState {
|
|
39
40
|
idProperty: string;
|
40
41
|
filter: RestCollectionFilter;
|
41
42
|
order: QueryOrder | null;
|
43
|
+
propertyBlacklist: string[] | null;
|
42
44
|
referencePathsToExpand: string[] | null;
|
43
45
|
resources: Resource[];
|
44
46
|
remoteCollectionSize: number | null;
|
@@ -69,6 +71,8 @@ interface RestCollectionQueryParams {
|
|
69
71
|
q?: string;
|
70
72
|
/** Deterministically JSON-serialized representation of a QueryOrder. */
|
71
73
|
o?: string;
|
74
|
+
/** Deterministically JSON-serialized array of path strings to exclude. */
|
75
|
+
ex?: string;
|
72
76
|
/** Deterministically JSON-serialized array of path strings to expand. */
|
73
77
|
r?: string;
|
74
78
|
/** Page offset, the 0-based index of the first resource to return. */
|
@@ -96,6 +100,7 @@ declare const makeStore: (storeId: string, options: RestCollectionStoreOptions)
|
|
96
100
|
path: string;
|
97
101
|
sqlType?: string | undefined;
|
98
102
|
}, import("../queries.js").QueryOrderDirection])[] | null;
|
103
|
+
propertyBlacklist: string[] | null;
|
99
104
|
referencePathsToExpand: string[] | null;
|
100
105
|
resources: Resource[];
|
101
106
|
remoteCollectionSize: number | null;
|
@@ -446,6 +451,7 @@ export declare const storeRegistry: StoreRegistry<import("pinia").Store<string,
|
|
446
451
|
path: string;
|
447
452
|
sqlType?: string | undefined;
|
448
453
|
}, import("../queries.js").QueryOrderDirection])[] | null;
|
454
|
+
propertyBlacklist: string[] | null;
|
449
455
|
referencePathsToExpand: string[] | null;
|
450
456
|
resources: Resource[];
|
451
457
|
remoteCollectionSize: number | null;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"rest-collection-store.d.ts","sourceRoot":"","sources":["../../../src/stores/rest-collection-store.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,sBAAsB,EAAE,sBAAsB,EAAC,MAAM,uBAAuB,CAAA;AACpF,OAAO,EAAC,QAAQ,EAAE,UAAU,EAAC,MAAM,iCAAiC,CAAA;A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