@myrmidon/cadmus-state 0.3.0 → 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,14 +2,13 @@ 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';
9
9
  import { TokenLocation, CadmusCoreModule } from '@myrmidon/cadmus-core';
10
10
  import { deepCopy, NgToolsModule } from '@myrmidon/ng-tools';
11
11
  import { CommonModule } from '@angular/common';
12
- import { CadmusMaterialModule } from '@myrmidon/cadmus-material';
13
12
 
14
13
  const initialState$2 = {
15
14
  facets: [],
@@ -20,12 +19,12 @@ let AppStore = class AppStore extends Store {
20
19
  super(initialState$2);
21
20
  }
22
21
  };
23
- AppStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AppStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
24
- AppStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
25
24
  AppStore = __decorate([
26
25
  StoreConfig({ name: 'app', resettable: false })
27
26
  ], AppStore);
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AppStore, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: AppStore, decorators: [{
29
28
  type: Injectable,
30
29
  args: [{ providedIn: 'root' }]
31
30
  }], ctorParameters: function () { return []; } });
@@ -48,9 +47,9 @@ class AppQuery extends Query {
48
47
  return this.select((state) => state.itemBrowserThesaurus);
49
48
  }
50
49
  }
51
- AppQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AppQuery, deps: [{ token: AppStore }], target: i0.ɵɵFactoryTarget.Injectable });
52
- AppQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AppQuery, providedIn: 'root' });
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
54
53
  type: Injectable,
55
54
  args: [{ providedIn: 'root' }]
56
55
  }], ctorParameters: function () { return [{ type: AppStore }]; } });
@@ -86,9 +85,9 @@ class AppService {
86
85
  });
87
86
  }
88
87
  }
89
- AppService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AppService, deps: [{ token: AppStore }, { token: i2.FacetService }, { token: i2.FlagService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
90
- AppService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: AppService, providedIn: 'root' });
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
92
91
  type: Injectable,
93
92
  args: [{ providedIn: 'root' }]
94
93
  }], ctorParameters: function () { return [{ type: AppStore }, { type: i2.FacetService }, { type: i2.FlagService }, { type: i2.ThesaurusService }]; } });
@@ -118,12 +117,12 @@ let EditItemStore = class EditItemStore extends Store {
118
117
  });
119
118
  }
120
119
  };
121
- EditItemStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditItemStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
122
- EditItemStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
123
122
  EditItemStore = __decorate([
124
123
  StoreConfig({ name: 'edit-item', resettable: true })
125
124
  ], EditItemStore);
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditItemStore, decorators: [{
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditItemStore, decorators: [{
127
126
  type: Injectable,
128
127
  args: [{ providedIn: 'root' }]
129
128
  }], ctorParameters: function () { return []; } });
@@ -147,10 +146,10 @@ class EditItemQuery extends Query {
147
146
  return this.select((state) => state.facet);
148
147
  }
149
148
  selectSaving() {
150
- return this.select((state) => state.saving);
149
+ return this.select((state) => (state.saving ? true : false));
151
150
  }
152
151
  selectDeletingPart() {
153
- return this.select((state) => state.deletingPart);
152
+ return this.select((state) => (state.deletingPart ? true : false));
154
153
  }
155
154
  hasItem(id) {
156
155
  const item = this.getValue().item;
@@ -168,9 +167,9 @@ class EditItemQuery extends Query {
168
167
  .partKey;
169
168
  }
170
169
  }
171
- EditItemQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditItemQuery, deps: [{ token: EditItemStore }, { token: i2$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Injectable });
172
- EditItemQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditItemQuery, providedIn: 'root' });
173
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
174
173
  type: Injectable,
175
174
  args: [{ providedIn: 'root' }]
176
175
  }], ctorParameters: function () { return [{ type: EditItemStore }, { type: i2$1.LibraryRouteService }]; } });
@@ -204,61 +203,67 @@ class EditItemService {
204
203
  this._store.setLoading(true);
205
204
  const appState = this._appQuery.getValue();
206
205
  // if not a new item, include it in load
207
- const layers$ = this._itemService.getItemLayerInfo(itemId || '', true);
206
+ const layers$ = this._itemService.getItemLayerInfo(itemId || 'new', true);
208
207
  if (itemId) {
209
208
  forkJoin({
210
209
  item: this._itemService.getItem(itemId, true),
211
210
  layers: layers$,
212
- }).subscribe((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
- }, (error) => {
227
- console.error(error);
228
- this._store.setLoading(false);
229
- 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
+ },
230
232
  });
231
233
  }
232
234
  else {
233
235
  // if new, just set an empty item
234
236
  forkJoin({
235
237
  layers: layers$,
236
- }).subscribe((result) => {
237
- this._store.setLoading(false);
238
- this._store.setError(null);
239
- this._store.update({
240
- item: {
241
- id: '',
242
- title: '',
243
- description: '',
244
- facetId: '',
245
- groupId: '',
246
- sortKey: '',
247
- flags: 0,
248
- timeCreated: new Date(),
249
- creatorId: '',
250
- timeModified: new Date(),
251
- userId: '',
252
- },
253
- parts: [],
254
- partGroups: [],
255
- layerPartInfos: result.layers,
256
- facet: this.pickDefaultFacet(appState.facets),
257
- });
258
- }, (error) => {
259
- console.error(error);
260
- this._store.setLoading(false);
261
- 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
+ },
262
267
  });
263
268
  }
264
269
  }
@@ -275,16 +280,22 @@ class EditItemService {
275
280
  save(item) {
276
281
  this._store.setSaving();
277
282
  return new Promise((resolve, reject) => {
278
- this._itemService.addItem(item).subscribe((saved) => {
279
- this._store.setSaving(false);
280
- // reload the store
281
- this.load(saved.id);
282
- resolve(saved);
283
- }, (error) => {
284
- console.error(error);
285
- this._store.setSaving(false);
286
- this._store.setError('Error saving item');
287
- 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
+ },
288
299
  });
289
300
  });
290
301
  }
@@ -296,16 +307,22 @@ class EditItemService {
296
307
  this._store.setDeletingPart();
297
308
  return new Promise((resolve, reject) => {
298
309
  // delete from server
299
- this._itemService.deletePart(id).subscribe((_) => {
300
- this._store.setDeletingPart(false);
301
- // reload the store
302
- this.load(this._store.getValue().item?.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
+ 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
+ },
309
326
  });
310
327
  });
311
328
  }
@@ -321,32 +338,44 @@ class EditItemService {
321
338
  timeModified: new Date(),
322
339
  };
323
340
  this._store.setSaving();
324
- this._itemService.addPart(part).subscribe((_) => {
325
- this._store.setSaving(false);
326
- // reload the store
327
- this.load(this._store.getValue().item?.id);
328
- }, (error) => {
329
- console.log(error);
330
- this._store.setSaving(false);
331
- 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
+ },
332
355
  });
333
356
  }
334
357
  setPartThesaurusScope(ids, scope) {
335
358
  this._store.setSaving();
336
- this._itemService.setPartThesaurusScope(ids, scope).subscribe((_) => {
337
- this._store.setSaving(false);
338
- // reload the store
339
- this.load(this._store.getValue().item?.id);
340
- }, (error) => {
341
- console.log(error);
342
- this._store.setSaving(false);
343
- 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
+ },
344
373
  });
345
374
  }
346
375
  }
347
- EditItemService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditItemService, deps: [{ token: EditItemStore }, { token: AppQuery }, { token: i2.ItemService }], target: i0.ɵɵFactoryTarget.Injectable });
348
- EditItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditItemService, providedIn: 'root' });
349
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
350
379
  type: Injectable,
351
380
  args: [{ providedIn: 'root' }]
352
381
  }], ctorParameters: function () { return [{ type: EditItemStore }, { type: AppQuery }, { type: i2.ItemService }]; } });
@@ -369,11 +398,11 @@ class EditFragmentFeatureBase {
369
398
  this.fragment$ = this._editFrQuery.selectFragment();
370
399
  this.thesauri$ = this._editFrQuery.selectThesauri();
371
400
  this.baseText$ = this._editLayersQuery.select((state) => state.baseText);
372
- this.itemId = route.snapshot.params.iid;
373
- this.partId = route.snapshot.params.pid;
401
+ this.itemId = route.snapshot.params['iid'];
402
+ this.partId = route.snapshot.params['pid'];
374
403
  this.frTypeId = route.snapshot.url[2]?.path;
375
- this.loc = route.snapshot.params.loc;
376
- this.frRoleId = route.snapshot.queryParams.frrid;
404
+ this.loc = route.snapshot.params['loc'];
405
+ this.frRoleId = route.snapshot.queryParams['frrid'];
377
406
  // connect _stateDirty to the value of the edit state
378
407
  this._editFrQuery.selectDirty().subscribe((d) => {
379
408
  console.log('fr dirty change (from state): ' + d);
@@ -482,18 +511,6 @@ class EditFragmentQueryBase extends Query {
482
511
  selectFragment() {
483
512
  return this.select((state) => state.fragment);
484
513
  }
485
- // public selectJson(): Observable<string> {
486
- // return this.select((state) => state.fragment).pipe(
487
- // map((fr: Fragment) => {
488
- // // supply IDs
489
- // if (fr) {
490
- // return JSON.stringify(fr);
491
- // } else {
492
- // return '{}';
493
- // }
494
- // })
495
- // );
496
- // }
497
514
  selectThesauri() {
498
515
  return this.select((state) => state.thesauri);
499
516
  }
@@ -520,12 +537,12 @@ let EditFragmentStore = class EditFragmentStore extends Store {
520
537
  this.update({ saving: value });
521
538
  }
522
539
  };
523
- EditFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
524
- EditFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
525
542
  EditFragmentStore = __decorate([
526
543
  StoreConfig({ name: 'edit-fragment' })
527
544
  ], EditFragmentStore);
528
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditFragmentStore, decorators: [{
545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, decorators: [{
529
546
  type: Injectable,
530
547
  args: [{ providedIn: 'root' }]
531
548
  }], ctorParameters: function () { return []; } });
@@ -692,16 +709,16 @@ class EditPartFeatureBase {
692
709
  this._editItemQuery = _editItemQuery;
693
710
  this._editItemService = _editItemService;
694
711
  // item ID
695
- this.itemId = route.snapshot.params.iid;
712
+ this.itemId = route.snapshot.params['iid'];
696
713
  // type ID (from "TYPEID/:pid")
697
714
  this.typeId = route.snapshot.routeConfig.path.substr(0, route.snapshot.routeConfig.path.indexOf('/'));
698
715
  // part ID or null (if "new")
699
- this.partId = route.snapshot.params.pid;
716
+ this.partId = route.snapshot.params['pid'];
700
717
  if (this.partId === 'new') {
701
718
  this.partId = undefined;
702
719
  }
703
720
  // role ID or null (if "default")
704
- this.roleId = route.snapshot.queryParams.rid;
721
+ this.roleId = route.snapshot.queryParams['rid'];
705
722
  if (this.roleId === 'default') {
706
723
  this.roleId = undefined;
707
724
  }
@@ -944,12 +961,12 @@ let EditPartStore = class EditPartStore extends Store {
944
961
  this.update({ saving: value });
945
962
  }
946
963
  };
947
- EditPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
948
- EditPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
949
966
  EditPartStore = __decorate([
950
967
  StoreConfig({ name: 'edit-part' })
951
968
  ], EditPartStore);
952
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditPartStore, decorators: [{
969
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, decorators: [{
953
970
  type: Injectable,
954
971
  args: [{ providedIn: 'root' }]
955
972
  }], ctorParameters: function () { return []; } });
@@ -988,12 +1005,12 @@ let EditLayerPartStore = class EditLayerPartStore extends Store {
988
1005
  this.update({ locations });
989
1006
  }
990
1007
  };
991
- EditLayerPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
992
- EditLayerPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
993
1010
  EditLayerPartStore = __decorate([
994
1011
  StoreConfig({ name: 'edit-layer-part' })
995
1012
  ], EditLayerPartStore);
996
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartStore, decorators: [{
1013
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, decorators: [{
997
1014
  type: Injectable,
998
1015
  args: [{ providedIn: 'root' }]
999
1016
  }], ctorParameters: function () { return []; } });
@@ -1022,9 +1039,9 @@ class EditLayerPartQuery extends Query {
1022
1039
  return this.select((state) => state.patchingLayer);
1023
1040
  }
1024
1041
  }
1025
- EditLayerPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartQuery, deps: [{ token: EditLayerPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
1026
- EditLayerPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartQuery, providedIn: 'root' });
1027
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1028
1045
  type: Injectable,
1029
1046
  args: [{ providedIn: 'root' }]
1030
1047
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }]; } });
@@ -1245,9 +1262,9 @@ class EditLayerPartService {
1245
1262
  });
1246
1263
  }
1247
1264
  }
1248
- EditLayerPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartService, deps: [{ token: EditLayerPartStore }, { token: i2.ItemService }, { token: i2.FacetService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
1249
- EditLayerPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartService, providedIn: 'root' });
1250
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1251
1268
  type: Injectable,
1252
1269
  args: [{ providedIn: 'root' }]
1253
1270
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }, { type: i2.ItemService }, { type: i2.FacetService }, { type: i2.ThesaurusService }]; } });
@@ -1267,12 +1284,12 @@ let EditThesaurusStore = class EditThesaurusStore extends Store {
1267
1284
  });
1268
1285
  }
1269
1286
  };
1270
- EditThesaurusStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1271
- EditThesaurusStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
1272
1289
  EditThesaurusStore = __decorate([
1273
1290
  StoreConfig({ name: 'edit-thesaurus', resettable: true })
1274
1291
  ], EditThesaurusStore);
1275
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusStore, decorators: [{
1292
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, decorators: [{
1276
1293
  type: Injectable,
1277
1294
  args: [{ providedIn: 'root' }]
1278
1295
  }], ctorParameters: function () { return []; } });
@@ -1292,9 +1309,9 @@ class EditThesaurusQuery extends Query {
1292
1309
  return this.select(state => state.saving);
1293
1310
  }
1294
1311
  }
1295
- EditThesaurusQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusQuery, deps: [{ token: EditThesaurusStore }], target: i0.ɵɵFactoryTarget.Injectable });
1296
- EditThesaurusQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusQuery, providedIn: 'root' });
1297
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1298
1315
  type: Injectable,
1299
1316
  args: [{ providedIn: 'root' }]
1300
1317
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }]; } });
@@ -1347,31 +1364,29 @@ class EditThesaurusService {
1347
1364
  });
1348
1365
  }
1349
1366
  }
1350
- EditThesaurusService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusService, deps: [{ token: EditThesaurusStore }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
1351
- EditThesaurusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusService, providedIn: 'root' });
1352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1353
1370
  type: Injectable,
1354
1371
  args: [{ providedIn: 'root' }]
1355
1372
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }, { type: i2.ThesaurusService }]; } });
1356
1373
 
1357
1374
  class CadmusStateModule {
1358
1375
  }
1359
- CadmusStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1360
- CadmusStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", 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,
1361
1378
  // Cadmus
1362
1379
  CadmusCoreModule,
1363
1380
  CadmusApiModule,
1364
- CadmusMaterialModule,
1365
1381
  NgToolsModule] });
1366
- CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusStateModule, imports: [[
1382
+ CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, imports: [[
1367
1383
  CommonModule,
1368
1384
  // Cadmus
1369
1385
  CadmusCoreModule,
1370
1386
  CadmusApiModule,
1371
- CadmusMaterialModule,
1372
- NgToolsModule
1387
+ NgToolsModule,
1373
1388
  ]] });
1374
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusStateModule, decorators: [{
1389
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, decorators: [{
1375
1390
  type: NgModule,
1376
1391
  args: [{
1377
1392
  imports: [
@@ -1379,8 +1394,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
1379
1394
  // Cadmus
1380
1395
  CadmusCoreModule,
1381
1396
  CadmusApiModule,
1382
- CadmusMaterialModule,
1383
- NgToolsModule
1397
+ NgToolsModule,
1384
1398
  ],
1385
1399
  }]
1386
1400
  }] });