@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,17 +307,23 @@ 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
- var _a;
301
- this._store.setDeletingPart(false);
302
- // reload the store
303
- this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
304
- resolve(id);
305
- }, (error) => {
306
- console.log(error);
307
- this._store.setDeletingPart(false);
308
- this._store.setError('Error deleting part ' + id);
309
- 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
+ },
310
327
  });
311
328
  });
312
329
  }
@@ -322,34 +339,46 @@ class EditItemService {
322
339
  timeModified: new Date(),
323
340
  };
324
341
  this._store.setSaving();
325
- this._itemService.addPart(part).subscribe((_) => {
326
- var _a;
327
- this._store.setSaving(false);
328
- // reload the store
329
- this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
330
- }, (error) => {
331
- console.log(error);
332
- this._store.setSaving(false);
333
- 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
+ },
334
357
  });
335
358
  }
336
359
  setPartThesaurusScope(ids, scope) {
337
360
  this._store.setSaving();
338
- this._itemService.setPartThesaurusScope(ids, scope).subscribe((_) => {
339
- var _a;
340
- this._store.setSaving(false);
341
- // reload the store
342
- this.load((_a = this._store.getValue().item) === null || _a === void 0 ? void 0 : _a.id);
343
- }, (error) => {
344
- console.log(error);
345
- this._store.setSaving(false);
346
- 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
+ },
347
376
  });
348
377
  }
349
378
  }
350
- 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 });
351
- EditItemService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditItemService, providedIn: 'root' });
352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
353
382
  type: Injectable,
354
383
  args: [{ providedIn: 'root' }]
355
384
  }], ctorParameters: function () { return [{ type: EditItemStore }, { type: AppQuery }, { type: i2.ItemService }]; } });
@@ -373,11 +402,11 @@ class EditFragmentFeatureBase {
373
402
  this.fragment$ = this._editFrQuery.selectFragment();
374
403
  this.thesauri$ = this._editFrQuery.selectThesauri();
375
404
  this.baseText$ = this._editLayersQuery.select((state) => state.baseText);
376
- this.itemId = route.snapshot.params.iid;
377
- this.partId = route.snapshot.params.pid;
405
+ this.itemId = route.snapshot.params['iid'];
406
+ this.partId = route.snapshot.params['pid'];
378
407
  this.frTypeId = (_a = route.snapshot.url[2]) === null || _a === void 0 ? void 0 : _a.path;
379
- this.loc = route.snapshot.params.loc;
380
- this.frRoleId = route.snapshot.queryParams.frrid;
408
+ this.loc = route.snapshot.params['loc'];
409
+ this.frRoleId = route.snapshot.queryParams['frrid'];
381
410
  // connect _stateDirty to the value of the edit state
382
411
  this._editFrQuery.selectDirty().subscribe((d) => {
383
412
  console.log('fr dirty change (from state): ' + d);
@@ -487,18 +516,6 @@ class EditFragmentQueryBase extends Query {
487
516
  selectFragment() {
488
517
  return this.select((state) => state.fragment);
489
518
  }
490
- // public selectJson(): Observable<string> {
491
- // return this.select((state) => state.fragment).pipe(
492
- // map((fr: Fragment) => {
493
- // // supply IDs
494
- // if (fr) {
495
- // return JSON.stringify(fr);
496
- // } else {
497
- // return '{}';
498
- // }
499
- // })
500
- // );
501
- // }
502
519
  selectThesauri() {
503
520
  return this.select((state) => state.thesauri);
504
521
  }
@@ -525,12 +542,12 @@ let EditFragmentStore = class EditFragmentStore extends Store {
525
542
  this.update({ saving: value });
526
543
  }
527
544
  };
528
- EditFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
529
- EditFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
530
547
  EditFragmentStore = __decorate([
531
548
  StoreConfig({ name: 'edit-fragment' })
532
549
  ], EditFragmentStore);
533
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditFragmentStore, decorators: [{
550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditFragmentStore, decorators: [{
534
551
  type: Injectable,
535
552
  args: [{ providedIn: 'root' }]
536
553
  }], ctorParameters: function () { return []; } });
@@ -699,16 +716,16 @@ class EditPartFeatureBase {
699
716
  this._editItemQuery = _editItemQuery;
700
717
  this._editItemService = _editItemService;
701
718
  // item ID
702
- this.itemId = route.snapshot.params.iid;
719
+ this.itemId = route.snapshot.params['iid'];
703
720
  // type ID (from "TYPEID/:pid")
704
721
  this.typeId = route.snapshot.routeConfig.path.substr(0, route.snapshot.routeConfig.path.indexOf('/'));
705
722
  // part ID or null (if "new")
706
- this.partId = route.snapshot.params.pid;
723
+ this.partId = route.snapshot.params['pid'];
707
724
  if (this.partId === 'new') {
708
725
  this.partId = undefined;
709
726
  }
710
727
  // role ID or null (if "default")
711
- this.roleId = route.snapshot.queryParams.rid;
728
+ this.roleId = route.snapshot.queryParams['rid'];
712
729
  if (this.roleId === 'default') {
713
730
  this.roleId = undefined;
714
731
  }
@@ -953,12 +970,12 @@ let EditPartStore = class EditPartStore extends Store {
953
970
  this.update({ saving: value });
954
971
  }
955
972
  };
956
- EditPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
957
- EditPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
958
975
  EditPartStore = __decorate([
959
976
  StoreConfig({ name: 'edit-part' })
960
977
  ], EditPartStore);
961
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditPartStore, decorators: [{
978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditPartStore, decorators: [{
962
979
  type: Injectable,
963
980
  args: [{ providedIn: 'root' }]
964
981
  }], ctorParameters: function () { return []; } });
@@ -997,12 +1014,12 @@ let EditLayerPartStore = class EditLayerPartStore extends Store {
997
1014
  this.update({ locations });
998
1015
  }
999
1016
  };
1000
- EditLayerPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1001
- EditLayerPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
1002
1019
  EditLayerPartStore = __decorate([
1003
1020
  StoreConfig({ name: 'edit-layer-part' })
1004
1021
  ], EditLayerPartStore);
1005
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartStore, decorators: [{
1022
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditLayerPartStore, decorators: [{
1006
1023
  type: Injectable,
1007
1024
  args: [{ providedIn: 'root' }]
1008
1025
  }], ctorParameters: function () { return []; } });
@@ -1031,9 +1048,9 @@ class EditLayerPartQuery extends Query {
1031
1048
  return this.select((state) => state.patchingLayer);
1032
1049
  }
1033
1050
  }
1034
- EditLayerPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartQuery, deps: [{ token: EditLayerPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
1035
- EditLayerPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartQuery, providedIn: 'root' });
1036
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1037
1054
  type: Injectable,
1038
1055
  args: [{ providedIn: 'root' }]
1039
1056
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }]; } });
@@ -1256,9 +1273,9 @@ class EditLayerPartService {
1256
1273
  });
1257
1274
  }
1258
1275
  }
1259
- 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 });
1260
- EditLayerPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditLayerPartService, providedIn: 'root' });
1261
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1262
1279
  type: Injectable,
1263
1280
  args: [{ providedIn: 'root' }]
1264
1281
  }], ctorParameters: function () { return [{ type: EditLayerPartStore }, { type: i2.ItemService }, { type: i2.FacetService }, { type: i2.ThesaurusService }]; } });
@@ -1278,12 +1295,12 @@ let EditThesaurusStore = class EditThesaurusStore extends Store {
1278
1295
  });
1279
1296
  }
1280
1297
  };
1281
- EditThesaurusStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1282
- EditThesaurusStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", 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' });
1283
1300
  EditThesaurusStore = __decorate([
1284
1301
  StoreConfig({ name: 'edit-thesaurus', resettable: true })
1285
1302
  ], EditThesaurusStore);
1286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusStore, decorators: [{
1303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: EditThesaurusStore, decorators: [{
1287
1304
  type: Injectable,
1288
1305
  args: [{ providedIn: 'root' }]
1289
1306
  }], ctorParameters: function () { return []; } });
@@ -1303,9 +1320,9 @@ class EditThesaurusQuery extends Query {
1303
1320
  return this.select(state => state.saving);
1304
1321
  }
1305
1322
  }
1306
- EditThesaurusQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusQuery, deps: [{ token: EditThesaurusStore }], target: i0.ɵɵFactoryTarget.Injectable });
1307
- EditThesaurusQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusQuery, providedIn: 'root' });
1308
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1309
1326
  type: Injectable,
1310
1327
  args: [{ providedIn: 'root' }]
1311
1328
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }]; } });
@@ -1358,31 +1375,29 @@ class EditThesaurusService {
1358
1375
  });
1359
1376
  }
1360
1377
  }
1361
- 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 });
1362
- EditThesaurusService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: EditThesaurusService, providedIn: 'root' });
1363
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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: [{
1364
1381
  type: Injectable,
1365
1382
  args: [{ providedIn: 'root' }]
1366
1383
  }], ctorParameters: function () { return [{ type: EditThesaurusStore }, { type: i2.ThesaurusService }]; } });
1367
1384
 
1368
1385
  class CadmusStateModule {
1369
1386
  }
1370
- CadmusStateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusStateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1371
- CadmusStateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", 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,
1372
1389
  // Cadmus
1373
1390
  CadmusCoreModule,
1374
1391
  CadmusApiModule,
1375
- CadmusMaterialModule,
1376
1392
  NgToolsModule] });
1377
- CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusStateModule, imports: [[
1393
+ CadmusStateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, imports: [[
1378
1394
  CommonModule,
1379
1395
  // Cadmus
1380
1396
  CadmusCoreModule,
1381
1397
  CadmusApiModule,
1382
- CadmusMaterialModule,
1383
- NgToolsModule
1398
+ NgToolsModule,
1384
1399
  ]] });
1385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: CadmusStateModule, decorators: [{
1400
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImport: i0, type: CadmusStateModule, decorators: [{
1386
1401
  type: NgModule,
1387
1402
  args: [{
1388
1403
  imports: [
@@ -1390,8 +1405,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
1390
1405
  // Cadmus
1391
1406
  CadmusCoreModule,
1392
1407
  CadmusApiModule,
1393
- CadmusMaterialModule,
1394
- NgToolsModule
1408
+ NgToolsModule,
1395
1409
  ],
1396
1410
  }]
1397
1411
  }] });