@myrmidon/cadmus-state 1.0.1 → 1.0.2

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.
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
2
2
  import { Injectable, NgModule } from '@angular/core';
3
3
  import { Store, StoreConfig, Query } from '@datorama/akita';
4
4
  import { __decorate } from 'tslib';
5
- import { forkJoin } from 'rxjs';
5
+ import { forkJoin, take } from 'rxjs';
6
6
  import * as i2 from '@myrmidon/cadmus-api';
7
7
  import { CadmusApiModule } from '@myrmidon/cadmus-api';
8
8
  import * as i2$1 from '@myrmidon/cadmus-core';
@@ -19,12 +19,12 @@ let AppStore = class AppStore extends Store {
19
19
  super(initialState$2);
20
20
  }
21
21
  };
22
- AppStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
- AppStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppStore, providedIn: 'root' });
22
+ AppStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
+ AppStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppStore, providedIn: 'root' });
24
24
  AppStore = __decorate([
25
25
  StoreConfig({ name: 'app', resettable: false })
26
26
  ], AppStore);
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppStore, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppStore, decorators: [{
28
28
  type: Injectable,
29
29
  args: [{ providedIn: 'root' }]
30
30
  }], ctorParameters: function () { return []; } });
@@ -47,9 +47,9 @@ class AppQuery extends Query {
47
47
  return this.select((state) => state.itemBrowserThesaurus);
48
48
  }
49
49
  }
50
- AppQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppQuery, deps: [{ token: AppStore }], target: i0.ɵɵFactoryTarget.Injectable });
51
- AppQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppQuery, providedIn: 'root' });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppQuery, decorators: [{
50
+ AppQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppQuery, deps: [{ token: AppStore }], target: i0.ɵɵFactoryTarget.Injectable });
51
+ AppQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppQuery, providedIn: 'root' });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppQuery, decorators: [{
53
53
  type: Injectable,
54
54
  args: [{ providedIn: 'root' }]
55
55
  }], ctorParameters: function () { return [{ type: AppStore }]; } });
@@ -85,9 +85,9 @@ class AppService {
85
85
  });
86
86
  }
87
87
  }
88
- AppService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppService, deps: [{ token: AppStore }, { token: i2.FacetService }, { token: i2.FlagService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
89
- AppService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppService, providedIn: 'root' });
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: AppService, decorators: [{
88
+ AppService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppService, deps: [{ token: AppStore }, { token: i2.FacetService }, { token: i2.FlagService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
89
+ AppService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppService, providedIn: 'root' });
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppService, decorators: [{
91
91
  type: Injectable,
92
92
  args: [{ providedIn: 'root' }]
93
93
  }], ctorParameters: function () { return [{ type: AppStore }, { type: i2.FacetService }, { type: i2.FlagService }, { type: i2.ThesaurusService }]; } });
@@ -117,12 +117,12 @@ let EditItemStore = class EditItemStore extends Store {
117
117
  });
118
118
  }
119
119
  };
120
- EditItemStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
121
- EditItemStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemStore, providedIn: 'root' });
120
+ EditItemStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
121
+ EditItemStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemStore, providedIn: 'root' });
122
122
  EditItemStore = __decorate([
123
123
  StoreConfig({ name: 'edit-item', resettable: true })
124
124
  ], EditItemStore);
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemStore, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemStore, decorators: [{
126
126
  type: Injectable,
127
127
  args: [{ providedIn: 'root' }]
128
128
  }], ctorParameters: function () { return []; } });
@@ -167,9 +167,9 @@ class EditItemQuery extends Query {
167
167
  .partKey;
168
168
  }
169
169
  }
170
- EditItemQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemQuery, deps: [{ token: EditItemStore }, { token: i2$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Injectable });
171
- EditItemQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemQuery, providedIn: 'root' });
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemQuery, decorators: [{
170
+ EditItemQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemQuery, deps: [{ token: EditItemStore }, { token: i2$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Injectable });
171
+ EditItemQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemQuery, providedIn: 'root' });
172
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemQuery, decorators: [{
173
173
  type: Injectable,
174
174
  args: [{ providedIn: 'root' }]
175
175
  }], ctorParameters: function () { return [{ type: EditItemStore }, { type: i2$1.LibraryRouteService }]; } });
@@ -208,56 +208,62 @@ class EditItemService {
208
208
  forkJoin({
209
209
  item: this._itemService.getItem(itemId, true),
210
210
  layers: layers$,
211
- }).subscribe((result) => {
212
- this._store.setLoading(false);
213
- this._store.setError(null);
214
- const itemFacet = appState.facets.find((f) => {
215
- return f.id === result.item.facetId;
216
- });
217
- const facetParts = itemFacet ? itemFacet.partDefinitions : [];
218
- this._store.update({
219
- item: result.item,
220
- parts: result.item.parts,
221
- partGroups: this._itemService.groupParts(result.item.parts || [], facetParts),
222
- layerPartInfos: result.layers,
223
- facet: appState.facets.find((f) => f.id === result.item.facetId),
224
- });
225
- }, (error) => {
226
- console.error(error);
227
- this._store.setLoading(false);
228
- this._store.setError('Error loading item ' + itemId);
211
+ }).pipe(take(1)).subscribe({
212
+ next: (result) => {
213
+ this._store.setLoading(false);
214
+ this._store.setError(null);
215
+ const itemFacet = appState.facets.find((f) => {
216
+ return f.id === result.item.facetId;
217
+ });
218
+ const facetParts = itemFacet ? itemFacet.partDefinitions : [];
219
+ this._store.update({
220
+ item: result.item,
221
+ parts: result.item.parts,
222
+ partGroups: this._itemService.groupParts(result.item.parts || [], facetParts),
223
+ layerPartInfos: result.layers,
224
+ facet: appState.facets.find((f) => f.id === result.item.facetId),
225
+ });
226
+ },
227
+ error: (error) => {
228
+ console.error(error);
229
+ this._store.setLoading(false);
230
+ this._store.setError('Error loading item ' + itemId);
231
+ },
229
232
  });
230
233
  }
231
234
  else {
232
235
  // if new, just set an empty item
233
236
  forkJoin({
234
237
  layers: layers$,
235
- }).subscribe((result) => {
236
- this._store.setLoading(false);
237
- this._store.setError(null);
238
- this._store.update({
239
- item: {
240
- id: '',
241
- title: '',
242
- description: '',
243
- facetId: '',
244
- groupId: '',
245
- sortKey: '',
246
- flags: 0,
247
- timeCreated: new Date(),
248
- creatorId: '',
249
- timeModified: new Date(),
250
- userId: '',
251
- },
252
- parts: [],
253
- partGroups: [],
254
- layerPartInfos: result.layers,
255
- facet: this.pickDefaultFacet(appState.facets),
256
- });
257
- }, (error) => {
258
- console.error(error);
259
- this._store.setLoading(false);
260
- this._store.setError('Error loading item ' + itemId);
238
+ }).pipe(take(1)).subscribe({
239
+ next: (result) => {
240
+ this._store.setLoading(false);
241
+ this._store.setError(null);
242
+ this._store.update({
243
+ item: {
244
+ id: '',
245
+ title: '',
246
+ description: '',
247
+ facetId: '',
248
+ groupId: '',
249
+ sortKey: '',
250
+ flags: 0,
251
+ timeCreated: new Date(),
252
+ creatorId: '',
253
+ timeModified: new Date(),
254
+ userId: '',
255
+ },
256
+ parts: [],
257
+ partGroups: [],
258
+ layerPartInfos: result.layers,
259
+ facet: this.pickDefaultFacet(appState.facets),
260
+ });
261
+ },
262
+ error: (error) => {
263
+ console.error(error);
264
+ this._store.setLoading(false);
265
+ this._store.setError('Error loading item ' + itemId);
266
+ },
261
267
  });
262
268
  }
263
269
  }
@@ -274,16 +280,22 @@ class EditItemService {
274
280
  save(item) {
275
281
  this._store.setSaving();
276
282
  return new Promise((resolve, reject) => {
277
- this._itemService.addItem(item).subscribe((saved) => {
278
- this._store.setSaving(false);
279
- // reload the store
280
- this.load(saved.id);
281
- resolve(saved);
282
- }, (error) => {
283
- console.error(error);
284
- this._store.setSaving(false);
285
- this._store.setError('Error saving item');
286
- reject(error);
283
+ this._itemService
284
+ .addItem(item)
285
+ .pipe(take(1))
286
+ .subscribe({
287
+ next: (saved) => {
288
+ this._store.setSaving(false);
289
+ // reload the store
290
+ this.load(saved.id);
291
+ resolve(saved);
292
+ },
293
+ error: (error) => {
294
+ console.error(error);
295
+ this._store.setSaving(false);
296
+ this._store.setError('Error saving item');
297
+ reject(error);
298
+ },
287
299
  });
288
300
  });
289
301
  }
@@ -295,16 +307,22 @@ class EditItemService {
295
307
  this._store.setDeletingPart();
296
308
  return new Promise((resolve, reject) => {
297
309
  // delete from server
298
- this._itemService.deletePart(id).subscribe((_) => {
299
- this._store.setDeletingPart(false);
300
- // reload the store
301
- this.load(this._store.getValue().item?.id);
302
- resolve(id);
303
- }, (error) => {
304
- console.log(error);
305
- this._store.setDeletingPart(false);
306
- this._store.setError('Error deleting part ' + id);
307
- reject(error);
310
+ this._itemService
311
+ .deletePart(id)
312
+ .pipe(take(1))
313
+ .subscribe({
314
+ next: (_) => {
315
+ this._store.setDeletingPart(false);
316
+ // reload the store
317
+ this.load(this._store.getValue().item?.id);
318
+ resolve(id);
319
+ },
320
+ error: (error) => {
321
+ console.log(error);
322
+ this._store.setDeletingPart(false);
323
+ this._store.setError('Error deleting part ' + id);
324
+ reject(error);
325
+ },
308
326
  });
309
327
  });
310
328
  }
@@ -320,32 +338,44 @@ class EditItemService {
320
338
  timeModified: new Date(),
321
339
  };
322
340
  this._store.setSaving();
323
- this._itemService.addPart(part).subscribe((_) => {
324
- this._store.setSaving(false);
325
- // reload the store
326
- this.load(this._store.getValue().item?.id);
327
- }, (error) => {
328
- console.log(error);
329
- this._store.setSaving(false);
330
- this._store.setError('Error adding new layer part for item ' + itemId);
341
+ this._itemService
342
+ .addPart(part)
343
+ .pipe(take(1))
344
+ .subscribe({
345
+ next: (_) => {
346
+ this._store.setSaving(false);
347
+ // reload the store
348
+ this.load(this._store.getValue().item?.id);
349
+ },
350
+ error: (error) => {
351
+ console.log(error);
352
+ this._store.setSaving(false);
353
+ this._store.setError('Error adding new layer part for item ' + itemId);
354
+ },
331
355
  });
332
356
  }
333
357
  setPartThesaurusScope(ids, scope) {
334
358
  this._store.setSaving();
335
- this._itemService.setPartThesaurusScope(ids, scope).subscribe((_) => {
336
- this._store.setSaving(false);
337
- // reload the store
338
- this.load(this._store.getValue().item?.id);
339
- }, (error) => {
340
- console.log(error);
341
- this._store.setSaving(false);
342
- this._store.setError("Error setting item's parts scope");
359
+ this._itemService
360
+ .setPartThesaurusScope(ids, scope)
361
+ .pipe(take(1))
362
+ .subscribe({
363
+ next: (_) => {
364
+ this._store.setSaving(false);
365
+ // reload the store
366
+ this.load(this._store.getValue().item?.id);
367
+ },
368
+ error: (error) => {
369
+ console.log(error);
370
+ this._store.setSaving(false);
371
+ this._store.setError("Error setting item's parts scope");
372
+ },
343
373
  });
344
374
  }
345
375
  }
346
- EditItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemService, deps: [{ token: EditItemStore }, { token: AppQuery }, { token: i2.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
347
- EditItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemService, providedIn: 'root' });
348
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemService, decorators: [{
376
+ EditItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemService, deps: [{ token: EditItemStore }, { token: AppQuery }, { token: i2.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
377
+ EditItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemService, providedIn: 'root' });
378
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemService, decorators: [{
349
379
  type: Injectable,
350
380
  args: [{ providedIn: 'root' }]
351
381
  }], ctorParameters: function () { return [{ type: EditItemStore }, { type: AppQuery }, { type: i2.ItemService }]; } });
@@ -507,12 +537,12 @@ let EditFragmentStore = class EditFragmentStore extends Store {
507
537
  this.update({ saving: value });
508
538
  }
509
539
  };
510
- EditFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
511
- EditFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditFragmentStore, providedIn: 'root' });
540
+ EditFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
541
+ EditFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, providedIn: 'root' });
512
542
  EditFragmentStore = __decorate([
513
543
  StoreConfig({ name: 'edit-fragment' })
514
544
  ], EditFragmentStore);
515
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditFragmentStore, decorators: [{
545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, decorators: [{
516
546
  type: Injectable,
517
547
  args: [{ providedIn: 'root' }]
518
548
  }], ctorParameters: function () { return []; } });
@@ -931,12 +961,12 @@ let EditPartStore = class EditPartStore extends Store {
931
961
  this.update({ saving: value });
932
962
  }
933
963
  };
934
- EditPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
935
- EditPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditPartStore, providedIn: 'root' });
964
+ EditPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
965
+ EditPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, providedIn: 'root' });
936
966
  EditPartStore = __decorate([
937
967
  StoreConfig({ name: 'edit-part' })
938
968
  ], EditPartStore);
939
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditPartStore, decorators: [{
969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, decorators: [{
940
970
  type: Injectable,
941
971
  args: [{ providedIn: 'root' }]
942
972
  }], ctorParameters: function () { return []; } });
@@ -975,12 +1005,12 @@ let EditLayerPartStore = class EditLayerPartStore extends Store {
975
1005
  this.update({ locations });
976
1006
  }
977
1007
  };
978
- EditLayerPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
979
- EditLayerPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartStore, providedIn: 'root' });
1008
+ EditLayerPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1009
+ EditLayerPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, providedIn: 'root' });
980
1010
  EditLayerPartStore = __decorate([
981
1011
  StoreConfig({ name: 'edit-layer-part' })
982
1012
  ], EditLayerPartStore);
983
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartStore, decorators: [{
1013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, decorators: [{
984
1014
  type: Injectable,
985
1015
  args: [{ providedIn: 'root' }]
986
1016
  }], ctorParameters: function () { return []; } });
@@ -1009,9 +1039,9 @@ class EditLayerPartQuery extends Query {
1009
1039
  return this.select((state) => state.patchingLayer);
1010
1040
  }
1011
1041
  }
1012
- EditLayerPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartQuery, deps: [{ token: EditLayerPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
1013
- EditLayerPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartQuery, providedIn: 'root' });
1014
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartQuery, decorators: [{
1042
+ EditLayerPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartQuery, deps: [{ token: EditLayerPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
1043
+ EditLayerPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartQuery, providedIn: 'root' });
1044
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartQuery, decorators: [{
1015
1045
  type: Injectable,
1016
1046
  args: [{ providedIn: 'root' }]
1017
1047
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }]; } });
@@ -1232,9 +1262,9 @@ class EditLayerPartService {
1232
1262
  });
1233
1263
  }
1234
1264
  }
1235
- EditLayerPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartService, deps: [{ token: EditLayerPartStore }, { token: i2.ItemService }, { token: i2.FacetService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
1236
- EditLayerPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartService, providedIn: 'root' });
1237
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartService, decorators: [{
1265
+ EditLayerPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartService, deps: [{ token: EditLayerPartStore }, { token: i2.ItemService }, { token: i2.FacetService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
1266
+ EditLayerPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartService, providedIn: 'root' });
1267
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartService, decorators: [{
1238
1268
  type: Injectable,
1239
1269
  args: [{ providedIn: 'root' }]
1240
1270
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }, { type: i2.ItemService }, { type: i2.FacetService }, { type: i2.ThesaurusService }]; } });
@@ -1254,12 +1284,12 @@ let EditThesaurusStore = class EditThesaurusStore extends Store {
1254
1284
  });
1255
1285
  }
1256
1286
  };
1257
- EditThesaurusStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1258
- EditThesaurusStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusStore, providedIn: 'root' });
1287
+ EditThesaurusStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1288
+ EditThesaurusStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, providedIn: 'root' });
1259
1289
  EditThesaurusStore = __decorate([
1260
1290
  StoreConfig({ name: 'edit-thesaurus', resettable: true })
1261
1291
  ], EditThesaurusStore);
1262
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusStore, decorators: [{
1292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, decorators: [{
1263
1293
  type: Injectable,
1264
1294
  args: [{ providedIn: 'root' }]
1265
1295
  }], ctorParameters: function () { return []; } });
@@ -1279,9 +1309,9 @@ class EditThesaurusQuery extends Query {
1279
1309
  return this.select(state => state.saving);
1280
1310
  }
1281
1311
  }
1282
- EditThesaurusQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusQuery, deps: [{ token: EditThesaurusStore }], target: i0.ɵɵFactoryTarget.Injectable });
1283
- EditThesaurusQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusQuery, providedIn: 'root' });
1284
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusQuery, decorators: [{
1312
+ EditThesaurusQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusQuery, deps: [{ token: EditThesaurusStore }], target: i0.ɵɵFactoryTarget.Injectable });
1313
+ EditThesaurusQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusQuery, providedIn: 'root' });
1314
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusQuery, decorators: [{
1285
1315
  type: Injectable,
1286
1316
  args: [{ providedIn: 'root' }]
1287
1317
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }]; } });
@@ -1334,29 +1364,29 @@ class EditThesaurusService {
1334
1364
  });
1335
1365
  }
1336
1366
  }
1337
- EditThesaurusService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusService, deps: [{ token: EditThesaurusStore }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
1338
- EditThesaurusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusService, providedIn: 'root' });
1339
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusService, decorators: [{
1367
+ EditThesaurusService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusService, deps: [{ token: EditThesaurusStore }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
1368
+ EditThesaurusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusService, providedIn: 'root' });
1369
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusService, decorators: [{
1340
1370
  type: Injectable,
1341
1371
  args: [{ providedIn: 'root' }]
1342
1372
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }, { type: i2.ThesaurusService }]; } });
1343
1373
 
1344
1374
  class CadmusStateModule {
1345
1375
  }
1346
- CadmusStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1347
- CadmusStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, imports: [CommonModule,
1376
+ CadmusStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1377
+ CadmusStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, imports: [CommonModule,
1348
1378
  // Cadmus
1349
1379
  CadmusCoreModule,
1350
1380
  CadmusApiModule,
1351
1381
  NgToolsModule] });
1352
- CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, imports: [[
1382
+ CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, imports: [[
1353
1383
  CommonModule,
1354
1384
  // Cadmus
1355
1385
  CadmusCoreModule,
1356
1386
  CadmusApiModule,
1357
1387
  NgToolsModule,
1358
1388
  ]] });
1359
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, decorators: [{
1389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, decorators: [{
1360
1390
  type: NgModule,
1361
1391
  args: [{
1362
1392
  imports: [