@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,17 +307,23 @@ 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
- var _a;
300
- this._store.setDeletingPart(false);
301
- // reload the store
302
- this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
303
- resolve(id);
304
- }, (error) => {
305
- console.log(error);
306
- this._store.setDeletingPart(false);
307
- this._store.setError('Error deleting part ' + id);
308
- reject(error);
310
+ this._itemService
311
+ .deletePart(id)
312
+ .pipe(take(1))
313
+ .subscribe({
314
+ next: (_) => {
315
+ var _a;
316
+ this._store.setDeletingPart(false);
317
+ // reload the store
318
+ this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
319
+ resolve(id);
320
+ },
321
+ error: (error) => {
322
+ console.log(error);
323
+ this._store.setDeletingPart(false);
324
+ this._store.setError('Error deleting part ' + id);
325
+ reject(error);
326
+ },
309
327
  });
310
328
  });
311
329
  }
@@ -321,34 +339,46 @@ class EditItemService {
321
339
  timeModified: new Date(),
322
340
  };
323
341
  this._store.setSaving();
324
- this._itemService.addPart(part).subscribe((_) => {
325
- var _a;
326
- this._store.setSaving(false);
327
- // reload the store
328
- this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
329
- }, (error) => {
330
- console.log(error);
331
- this._store.setSaving(false);
332
- this._store.setError('Error adding new layer part for item ' + itemId);
342
+ this._itemService
343
+ .addPart(part)
344
+ .pipe(take(1))
345
+ .subscribe({
346
+ next: (_) => {
347
+ var _a;
348
+ this._store.setSaving(false);
349
+ // reload the store
350
+ this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
351
+ },
352
+ error: (error) => {
353
+ console.log(error);
354
+ this._store.setSaving(false);
355
+ this._store.setError('Error adding new layer part for item ' + itemId);
356
+ },
333
357
  });
334
358
  }
335
359
  setPartThesaurusScope(ids, scope) {
336
360
  this._store.setSaving();
337
- this._itemService.setPartThesaurusScope(ids, scope).subscribe((_) => {
338
- var _a;
339
- this._store.setSaving(false);
340
- // reload the store
341
- this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
342
- }, (error) => {
343
- console.log(error);
344
- this._store.setSaving(false);
345
- this._store.setError("Error setting item's parts scope");
361
+ this._itemService
362
+ .setPartThesaurusScope(ids, scope)
363
+ .pipe(take(1))
364
+ .subscribe({
365
+ next: (_) => {
366
+ var _a;
367
+ this._store.setSaving(false);
368
+ // reload the store
369
+ this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
370
+ },
371
+ error: (error) => {
372
+ console.log(error);
373
+ this._store.setSaving(false);
374
+ this._store.setError("Error setting item's parts scope");
375
+ },
346
376
  });
347
377
  }
348
378
  }
349
- 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 });
350
- EditItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemService, providedIn: 'root' });
351
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditItemService, decorators: [{
379
+ 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 });
380
+ EditItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemService, providedIn: 'root' });
381
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemService, decorators: [{
352
382
  type: Injectable,
353
383
  args: [{ providedIn: 'root' }]
354
384
  }], ctorParameters: function () { return [{ type: EditItemStore }, { type: AppQuery }, { type: i2.ItemService }]; } });
@@ -512,12 +542,12 @@ let EditFragmentStore = class EditFragmentStore extends Store {
512
542
  this.update({ saving: value });
513
543
  }
514
544
  };
515
- EditFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
516
- EditFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditFragmentStore, providedIn: 'root' });
545
+ EditFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
546
+ EditFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, providedIn: 'root' });
517
547
  EditFragmentStore = __decorate([
518
548
  StoreConfig({ name: 'edit-fragment' })
519
549
  ], EditFragmentStore);
520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditFragmentStore, decorators: [{
550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, decorators: [{
521
551
  type: Injectable,
522
552
  args: [{ providedIn: 'root' }]
523
553
  }], ctorParameters: function () { return []; } });
@@ -940,12 +970,12 @@ let EditPartStore = class EditPartStore extends Store {
940
970
  this.update({ saving: value });
941
971
  }
942
972
  };
943
- EditPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
944
- EditPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditPartStore, providedIn: 'root' });
973
+ EditPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
974
+ EditPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, providedIn: 'root' });
945
975
  EditPartStore = __decorate([
946
976
  StoreConfig({ name: 'edit-part' })
947
977
  ], EditPartStore);
948
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditPartStore, decorators: [{
978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, decorators: [{
949
979
  type: Injectable,
950
980
  args: [{ providedIn: 'root' }]
951
981
  }], ctorParameters: function () { return []; } });
@@ -984,12 +1014,12 @@ let EditLayerPartStore = class EditLayerPartStore extends Store {
984
1014
  this.update({ locations });
985
1015
  }
986
1016
  };
987
- EditLayerPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
988
- EditLayerPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartStore, providedIn: 'root' });
1017
+ EditLayerPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1018
+ EditLayerPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, providedIn: 'root' });
989
1019
  EditLayerPartStore = __decorate([
990
1020
  StoreConfig({ name: 'edit-layer-part' })
991
1021
  ], EditLayerPartStore);
992
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartStore, decorators: [{
1022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, decorators: [{
993
1023
  type: Injectable,
994
1024
  args: [{ providedIn: 'root' }]
995
1025
  }], ctorParameters: function () { return []; } });
@@ -1018,9 +1048,9 @@ class EditLayerPartQuery extends Query {
1018
1048
  return this.select((state) => state.patchingLayer);
1019
1049
  }
1020
1050
  }
1021
- EditLayerPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartQuery, deps: [{ token: EditLayerPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
1022
- EditLayerPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartQuery, providedIn: 'root' });
1023
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartQuery, decorators: [{
1051
+ EditLayerPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartQuery, deps: [{ token: EditLayerPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
1052
+ EditLayerPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartQuery, providedIn: 'root' });
1053
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartQuery, decorators: [{
1024
1054
  type: Injectable,
1025
1055
  args: [{ providedIn: 'root' }]
1026
1056
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }]; } });
@@ -1243,9 +1273,9 @@ class EditLayerPartService {
1243
1273
  });
1244
1274
  }
1245
1275
  }
1246
- 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 });
1247
- EditLayerPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartService, providedIn: 'root' });
1248
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditLayerPartService, decorators: [{
1276
+ 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 });
1277
+ EditLayerPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartService, providedIn: 'root' });
1278
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartService, decorators: [{
1249
1279
  type: Injectable,
1250
1280
  args: [{ providedIn: 'root' }]
1251
1281
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }, { type: i2.ItemService }, { type: i2.FacetService }, { type: i2.ThesaurusService }]; } });
@@ -1265,12 +1295,12 @@ let EditThesaurusStore = class EditThesaurusStore extends Store {
1265
1295
  });
1266
1296
  }
1267
1297
  };
1268
- EditThesaurusStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1269
- EditThesaurusStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusStore, providedIn: 'root' });
1298
+ EditThesaurusStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1299
+ EditThesaurusStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, providedIn: 'root' });
1270
1300
  EditThesaurusStore = __decorate([
1271
1301
  StoreConfig({ name: 'edit-thesaurus', resettable: true })
1272
1302
  ], EditThesaurusStore);
1273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusStore, decorators: [{
1303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, decorators: [{
1274
1304
  type: Injectable,
1275
1305
  args: [{ providedIn: 'root' }]
1276
1306
  }], ctorParameters: function () { return []; } });
@@ -1290,9 +1320,9 @@ class EditThesaurusQuery extends Query {
1290
1320
  return this.select(state => state.saving);
1291
1321
  }
1292
1322
  }
1293
- EditThesaurusQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusQuery, deps: [{ token: EditThesaurusStore }], target: i0.ɵɵFactoryTarget.Injectable });
1294
- EditThesaurusQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusQuery, providedIn: 'root' });
1295
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusQuery, decorators: [{
1323
+ EditThesaurusQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusQuery, deps: [{ token: EditThesaurusStore }], target: i0.ɵɵFactoryTarget.Injectable });
1324
+ EditThesaurusQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusQuery, providedIn: 'root' });
1325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusQuery, decorators: [{
1296
1326
  type: Injectable,
1297
1327
  args: [{ providedIn: 'root' }]
1298
1328
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }]; } });
@@ -1345,29 +1375,29 @@ class EditThesaurusService {
1345
1375
  });
1346
1376
  }
1347
1377
  }
1348
- 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 });
1349
- EditThesaurusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusService, providedIn: 'root' });
1350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: EditThesaurusService, decorators: [{
1378
+ 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 });
1379
+ EditThesaurusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusService, providedIn: 'root' });
1380
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusService, decorators: [{
1351
1381
  type: Injectable,
1352
1382
  args: [{ providedIn: 'root' }]
1353
1383
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }, { type: i2.ThesaurusService }]; } });
1354
1384
 
1355
1385
  class CadmusStateModule {
1356
1386
  }
1357
- CadmusStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1358
- CadmusStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, imports: [CommonModule,
1387
+ CadmusStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1388
+ CadmusStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, imports: [CommonModule,
1359
1389
  // Cadmus
1360
1390
  CadmusCoreModule,
1361
1391
  CadmusApiModule,
1362
1392
  NgToolsModule] });
1363
- CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, imports: [[
1393
+ CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, imports: [[
1364
1394
  CommonModule,
1365
1395
  // Cadmus
1366
1396
  CadmusCoreModule,
1367
1397
  CadmusApiModule,
1368
1398
  NgToolsModule,
1369
1399
  ]] });
1370
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.3", ngImport: i0, type: CadmusStateModule, decorators: [{
1400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, decorators: [{
1371
1401
  type: NgModule,
1372
1402
  args: [{
1373
1403
  imports: [