@myrmidon/cadmus-part-general-pg 1.2.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/bibliography-part-feature/bibliography-part-feature.component.mjs +16 -18
- package/esm2020/lib/cadmus-part-general-pg.module.mjs +16 -13
- package/esm2020/lib/categories-part-feature/categories-part-feature.component.mjs +15 -17
- package/esm2020/lib/chronology-fragment-feature/chronology-fragment-feature.component.mjs +15 -18
- package/esm2020/lib/chronotopes-part-feature/chronotopes-part-feature.component.mjs +18 -20
- package/esm2020/lib/comment-fragment-feature/comment-fragment-feature.component.mjs +17 -20
- package/esm2020/lib/comment-part-feature/comment-part-feature.component.mjs +17 -19
- package/esm2020/lib/doc-references-part-feature/doc-references-part-feature.component.mjs +15 -17
- package/esm2020/lib/external-ids-part-feature/external-ids-part-feature.component.mjs +17 -19
- package/esm2020/lib/historical-date-part-feature/historical-date-part-feature.component.mjs +15 -17
- package/esm2020/lib/historical-events-part-feature/historical-events-part-feature.component.mjs +16 -18
- package/esm2020/lib/index-keywords-part-feature/index-keywords-part-feature.component.mjs +15 -17
- package/esm2020/lib/keywords-part-feature/keywords-part-feature.component.mjs +15 -17
- package/esm2020/lib/metadata-part-feature/metadata-part-feature.component.mjs +15 -17
- package/esm2020/lib/names-part-feature/names-part-feature.component.mjs +18 -20
- package/esm2020/lib/note-part-feature/note-part-feature.component.mjs +15 -17
- package/esm2020/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.mjs +46 -56
- package/esm2020/lib/tiled-text-part-feature/tiled-text-part-feature.component.mjs +13 -18
- package/esm2020/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.mjs +41 -52
- package/esm2020/lib/token-text-part-feature/token-text-part-feature.component.mjs +13 -18
- package/fesm2015/myrmidon-cadmus-part-general-pg.mjs +258 -1087
- package/fesm2015/myrmidon-cadmus-part-general-pg.mjs.map +1 -1
- package/fesm2020/myrmidon-cadmus-part-general-pg.mjs +257 -1085
- package/fesm2020/myrmidon-cadmus-part-general-pg.mjs.map +1 -1
- package/lib/bibliography-part-feature/bibliography-part-feature.component.d.ts +5 -6
- package/lib/cadmus-part-general-pg.module.d.ts +8 -8
- package/lib/categories-part-feature/categories-part-feature.component.d.ts +5 -6
- package/lib/chronology-fragment-feature/chronology-fragment-feature.component.d.ts +4 -6
- package/lib/chronotopes-part-feature/chronotopes-part-feature.component.d.ts +5 -6
- package/lib/comment-fragment-feature/comment-fragment-feature.component.d.ts +4 -6
- package/lib/comment-part-feature/comment-part-feature.component.d.ts +5 -6
- package/lib/doc-references-part-feature/doc-references-part-feature.component.d.ts +5 -6
- package/lib/external-ids-part-feature/external-ids-part-feature.component.d.ts +5 -6
- package/lib/historical-date-part-feature/historical-date-part-feature.component.d.ts +5 -6
- package/lib/historical-events-part-feature/historical-events-part-feature.component.d.ts +5 -6
- package/lib/index-keywords-part-feature/index-keywords-part-feature.component.d.ts +5 -6
- package/lib/keywords-part-feature/keywords-part-feature.component.d.ts +5 -6
- package/lib/metadata-part-feature/metadata-part-feature.component.d.ts +5 -6
- package/lib/names-part-feature/names-part-feature.component.d.ts +5 -6
- package/lib/note-part-feature/note-part-feature.component.d.ts +5 -6
- package/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.d.ts +8 -13
- package/lib/tiled-text-part-feature/tiled-text-part-feature.component.d.ts +4 -6
- package/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.d.ts +9 -14
- package/lib/token-text-part-feature/token-text-part-feature.component.d.ts +4 -6
- package/package.json +3 -3
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.query.mjs +0 -16
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.service.mjs +0 -18
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.store.mjs +0 -27
- package/esm2020/lib/categories-part-feature/edit-categories-part.query.mjs +0 -16
- package/esm2020/lib/categories-part-feature/edit-categories-part.service.mjs +0 -18
- package/esm2020/lib/categories-part-feature/edit-categories-part.store.mjs +0 -27
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.query.mjs +0 -17
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.service.mjs +0 -18
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.store.mjs +0 -28
- package/esm2020/lib/chronotopes-part-feature/edit-chronotopes-part.query.mjs +0 -16
- package/esm2020/lib/chronotopes-part-feature/edit-chronotopes-part.service.mjs +0 -18
- package/esm2020/lib/chronotopes-part-feature/edit-chronotopes-part.store.mjs +0 -27
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.query.mjs +0 -17
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.service.mjs +0 -18
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.store.mjs +0 -28
- package/esm2020/lib/comment-part-feature/edit-comment-part.query.mjs +0 -16
- package/esm2020/lib/comment-part-feature/edit-comment-part.service.mjs +0 -18
- package/esm2020/lib/comment-part-feature/edit-comment-part.store.mjs +0 -27
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.query.mjs +0 -16
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.service.mjs +0 -18
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.store.mjs +0 -27
- package/esm2020/lib/external-ids-part-feature/edit-external-ids-part.query.mjs +0 -16
- package/esm2020/lib/external-ids-part-feature/edit-external-ids-part.service.mjs +0 -18
- package/esm2020/lib/external-ids-part-feature/edit-external-ids-part.store.mjs +0 -27
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.query.mjs +0 -16
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.service.mjs +0 -18
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.store.mjs +0 -27
- package/esm2020/lib/historical-events-part-feature/edit-historical-events-part.query.mjs +0 -16
- package/esm2020/lib/historical-events-part-feature/edit-historical-events-part.service.mjs +0 -18
- package/esm2020/lib/historical-events-part-feature/edit-historical-events-part.store.mjs +0 -27
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.query.mjs +0 -16
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.service.mjs +0 -18
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.store.mjs +0 -27
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.query.mjs +0 -16
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.service.mjs +0 -18
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.store.mjs +0 -27
- package/esm2020/lib/metadata-part-feature/edit-metadata-part.query.mjs +0 -16
- package/esm2020/lib/metadata-part-feature/edit-metadata-part.service.mjs +0 -18
- package/esm2020/lib/metadata-part-feature/edit-metadata-part.store.mjs +0 -27
- package/esm2020/lib/names-part-feature/edit-names-part.query.mjs +0 -16
- package/esm2020/lib/names-part-feature/edit-names-part.service.mjs +0 -18
- package/esm2020/lib/names-part-feature/edit-names-part.store.mjs +0 -27
- package/esm2020/lib/note-part-feature/edit-note-part.query.mjs +0 -16
- package/esm2020/lib/note-part-feature/edit-note-part.service.mjs +0 -18
- package/esm2020/lib/note-part-feature/edit-note-part.store.mjs +0 -27
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.query.mjs +0 -16
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.service.mjs +0 -36
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.store.mjs +0 -27
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.query.mjs +0 -16
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.service.mjs +0 -18
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.store.mjs +0 -27
- package/lib/bibliography-part-feature/edit-bibliography-part.query.d.ts +0 -8
- package/lib/bibliography-part-feature/edit-bibliography-part.service.d.ts +0 -9
- package/lib/bibliography-part-feature/edit-bibliography-part.store.d.ts +0 -10
- package/lib/categories-part-feature/edit-categories-part.query.d.ts +0 -8
- package/lib/categories-part-feature/edit-categories-part.service.d.ts +0 -9
- package/lib/categories-part-feature/edit-categories-part.store.d.ts +0 -10
- package/lib/chronology-fragment-feature/edit-chronology-fragment.query.d.ts +0 -9
- package/lib/chronology-fragment-feature/edit-chronology-fragment.service.d.ts +0 -9
- package/lib/chronology-fragment-feature/edit-chronology-fragment.store.d.ts +0 -10
- package/lib/chronotopes-part-feature/edit-chronotopes-part.query.d.ts +0 -8
- package/lib/chronotopes-part-feature/edit-chronotopes-part.service.d.ts +0 -9
- package/lib/chronotopes-part-feature/edit-chronotopes-part.store.d.ts +0 -10
- package/lib/comment-fragment-feature/edit-comment-fragment.query.d.ts +0 -9
- package/lib/comment-fragment-feature/edit-comment-fragment.service.d.ts +0 -9
- package/lib/comment-fragment-feature/edit-comment-fragment.store.d.ts +0 -10
- package/lib/comment-part-feature/edit-comment-part.query.d.ts +0 -8
- package/lib/comment-part-feature/edit-comment-part.service.d.ts +0 -9
- package/lib/comment-part-feature/edit-comment-part.store.d.ts +0 -10
- package/lib/doc-references-part-feature/edit-doc-references-part.query.d.ts +0 -8
- package/lib/doc-references-part-feature/edit-doc-references-part.service.d.ts +0 -9
- package/lib/doc-references-part-feature/edit-doc-references-part.store.d.ts +0 -10
- package/lib/external-ids-part-feature/edit-external-ids-part.query.d.ts +0 -8
- package/lib/external-ids-part-feature/edit-external-ids-part.service.d.ts +0 -9
- package/lib/external-ids-part-feature/edit-external-ids-part.store.d.ts +0 -10
- package/lib/historical-date-part-feature/edit-historical-date-part.query.d.ts +0 -8
- package/lib/historical-date-part-feature/edit-historical-date-part.service.d.ts +0 -9
- package/lib/historical-date-part-feature/edit-historical-date-part.store.d.ts +0 -10
- package/lib/historical-events-part-feature/edit-historical-events-part.query.d.ts +0 -8
- package/lib/historical-events-part-feature/edit-historical-events-part.service.d.ts +0 -9
- package/lib/historical-events-part-feature/edit-historical-events-part.store.d.ts +0 -10
- package/lib/index-keywords-part-feature/edit-index-keywords-part.query.d.ts +0 -8
- package/lib/index-keywords-part-feature/edit-index-keywords-part.service.d.ts +0 -9
- package/lib/index-keywords-part-feature/edit-index-keywords-part.store.d.ts +0 -10
- package/lib/keywords-part-feature/edit-keywords-part.query.d.ts +0 -8
- package/lib/keywords-part-feature/edit-keywords-part.service.d.ts +0 -9
- package/lib/keywords-part-feature/edit-keywords-part.store.d.ts +0 -10
- package/lib/metadata-part-feature/edit-metadata-part.query.d.ts +0 -8
- package/lib/metadata-part-feature/edit-metadata-part.service.d.ts +0 -9
- package/lib/metadata-part-feature/edit-metadata-part.store.d.ts +0 -10
- package/lib/names-part-feature/edit-names-part.query.d.ts +0 -8
- package/lib/names-part-feature/edit-names-part.service.d.ts +0 -9
- package/lib/names-part-feature/edit-names-part.store.d.ts +0 -10
- package/lib/note-part-feature/edit-note-part.query.d.ts +0 -8
- package/lib/note-part-feature/edit-note-part.service.d.ts +0 -9
- package/lib/note-part-feature/edit-note-part.store.d.ts +0 -10
- package/lib/tiled-text-part-feature/edit-tiled-text-part.query.d.ts +0 -8
- package/lib/tiled-text-part-feature/edit-tiled-text-part.service.d.ts +0 -18
- package/lib/tiled-text-part-feature/edit-tiled-text-part.store.d.ts +0 -10
- package/lib/token-text-part-feature/edit-token-text-part.query.d.ts +0 -8
- package/lib/token-text-part-feature/edit-token-text-part.service.d.ts +0 -9
- package/lib/token-text-part-feature/edit-token-text-part.store.d.ts +0 -10
|
@@ -1,40 +1,40 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import * as
|
|
4
|
-
import {
|
|
2
|
+
import { Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i4 from '@myrmidon/cadmus-state';
|
|
4
|
+
import { EditPartFeatureBase, EditFragmentFeatureBase, CadmusStateModule } from '@myrmidon/cadmus-state';
|
|
5
5
|
import * as i1 from '@angular/router';
|
|
6
6
|
import { RouterModule } from '@angular/router';
|
|
7
|
-
import * as i2
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as i2 from '@myrmidon/cadmus-api';
|
|
13
|
-
import * as i7 from '@myrmidon/cadmus-ui-pg';
|
|
7
|
+
import * as i2 from '@angular/material/snack-bar';
|
|
8
|
+
import * as i3 from '@myrmidon/cadmus-api';
|
|
9
|
+
import * as i5 from '@myrmidon/cadmus-part-general-ui';
|
|
10
|
+
import { BIBLIOGRAPHY_PART_TYPEID, CATEGORIES_PART_TYPEID, COMMENT_PART_TYPEID, CHRONOTOPES_PART_TYPEID, DOC_REFERENCES_PART_TYPEID, EXTERNAL_IDS_PART_TYPEID, HISTORICAL_DATE_PART_TYPEID, HISTORICAL_EVENTS_PART_TYPEID, KEYWORDS_PART_TYPEID, INDEX_KEYWORDS_PART_TYPEID, METADATA_PART_TYPEID, NAMES_PART_TYPEID, NOTE_PART_TYPEID, TOKEN_TEXT_PART_TYPEID, TILED_TEXT_PART_TYPEID, COMMENT_FRAGMENT_TYPEID, CHRONOLOGY_FRAGMENT_TYPEID, CadmusPartGeneralUiModule } from '@myrmidon/cadmus-part-general-ui';
|
|
11
|
+
import * as i6 from '@myrmidon/cadmus-ui-pg';
|
|
14
12
|
import { CadmusUiPgModule } from '@myrmidon/cadmus-ui-pg';
|
|
15
|
-
import * as
|
|
16
|
-
import { CommonModule } from '@angular/common';
|
|
17
|
-
import * as i3 from '@myrmidon/cadmus-core';
|
|
13
|
+
import * as i3$1 from '@myrmidon/cadmus-core';
|
|
18
14
|
import { TokenLocation, TokenPoint, PendingChangesGuard, CadmusCoreModule } from '@myrmidon/cadmus-core';
|
|
19
|
-
import * as
|
|
15
|
+
import * as i16 from '@myrmidon/cadmus-ui';
|
|
20
16
|
import { CadmusUiModule } from '@myrmidon/cadmus-ui';
|
|
21
|
-
import
|
|
17
|
+
import { map } from 'rxjs';
|
|
18
|
+
import * as i4$1 from '@myrmidon/cadmus-item-editor';
|
|
19
|
+
import * as i5$1 from '@myrmidon/ng-mat-tools';
|
|
22
20
|
import { NgMatToolsModule } from '@myrmidon/ng-mat-tools';
|
|
23
|
-
import * as i7
|
|
21
|
+
import * as i7 from '@angular/common';
|
|
22
|
+
import { CommonModule } from '@angular/common';
|
|
23
|
+
import * as i8 from '@angular/material/button';
|
|
24
24
|
import { MatButtonModule } from '@angular/material/button';
|
|
25
|
-
import * as
|
|
25
|
+
import * as i9 from '@angular/material/card';
|
|
26
26
|
import { MatCardModule } from '@angular/material/card';
|
|
27
|
-
import * as
|
|
27
|
+
import * as i10 from '@angular/material/expansion';
|
|
28
28
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
29
|
-
import * as
|
|
29
|
+
import * as i11 from '@angular/material/icon';
|
|
30
30
|
import { MatIconModule } from '@angular/material/icon';
|
|
31
|
-
import * as
|
|
31
|
+
import * as i12 from '@angular/material/progress-spinner';
|
|
32
32
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
33
|
-
import * as
|
|
33
|
+
import * as i13 from '@angular/material/tooltip';
|
|
34
34
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
35
|
-
import * as
|
|
35
|
+
import * as i14 from '@angular/material/toolbar';
|
|
36
36
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
37
|
-
import * as
|
|
37
|
+
import * as i15 from '@angular/flex-layout/flex';
|
|
38
38
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
39
39
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
40
40
|
import { MatInputModule } from '@angular/material/input';
|
|
@@ -42,314 +42,82 @@ import { MatSelectModule } from '@angular/material/select';
|
|
|
42
42
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
43
43
|
import { NgToolsModule } from '@myrmidon/ng-tools';
|
|
44
44
|
|
|
45
|
-
let EditBibliographyPartStore = class EditBibliographyPartStore extends Store {
|
|
46
|
-
constructor() {
|
|
47
|
-
super({});
|
|
48
|
-
}
|
|
49
|
-
setDirty(value) {
|
|
50
|
-
this.update({ dirty: value });
|
|
51
|
-
}
|
|
52
|
-
setSaving(value) {
|
|
53
|
-
this.update({ saving: value });
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
EditBibliographyPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
57
|
-
EditBibliographyPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartStore, providedIn: 'root' });
|
|
58
|
-
EditBibliographyPartStore = __decorate([
|
|
59
|
-
StoreConfig({ name: BIBLIOGRAPHY_PART_TYPEID })
|
|
60
|
-
], EditBibliographyPartStore);
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartStore, decorators: [{
|
|
62
|
-
type: Injectable,
|
|
63
|
-
args: [{ providedIn: 'root' }]
|
|
64
|
-
}], ctorParameters: function () { return []; } });
|
|
65
|
-
|
|
66
|
-
class EditBibliographyPartQuery extends EditPartQueryBase {
|
|
67
|
-
constructor(store) {
|
|
68
|
-
super(store);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
EditBibliographyPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartQuery, deps: [{ token: EditBibliographyPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
72
|
-
EditBibliographyPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartQuery, providedIn: 'root' });
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartQuery, decorators: [{
|
|
74
|
-
type: Injectable,
|
|
75
|
-
args: [{ providedIn: 'root' }]
|
|
76
|
-
}], ctorParameters: function () { return [{ type: EditBibliographyPartStore }]; } });
|
|
77
|
-
|
|
78
|
-
class EditBibliographyPartService extends EditPartServiceBase {
|
|
79
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
80
|
-
super(itemService, thesaurusService);
|
|
81
|
-
this.store = editPartStore;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
EditBibliographyPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartService, deps: [{ token: EditBibliographyPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
85
|
-
EditBibliographyPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartService, providedIn: 'root' });
|
|
86
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditBibliographyPartService, decorators: [{
|
|
87
|
-
type: Injectable,
|
|
88
|
-
args: [{ providedIn: 'root' }]
|
|
89
|
-
}], ctorParameters: function () { return [{ type: EditBibliographyPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
90
|
-
|
|
91
45
|
class BibliographyPartFeatureComponent extends EditPartFeatureBase {
|
|
92
|
-
constructor(router, route, snackbar,
|
|
93
|
-
super(router, route, snackbar,
|
|
46
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
47
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
94
48
|
}
|
|
95
|
-
|
|
96
|
-
|
|
49
|
+
getReqThesauriIds() {
|
|
50
|
+
return [
|
|
97
51
|
'bibliography-languages',
|
|
98
52
|
'bibliography-types',
|
|
99
53
|
'bibliography-tags',
|
|
100
54
|
'bibliography-author-roles',
|
|
101
|
-
]
|
|
55
|
+
];
|
|
102
56
|
}
|
|
103
57
|
}
|
|
104
|
-
BibliographyPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
105
|
-
BibliographyPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
BibliographyPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: BibliographyPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
BibliographyPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: BibliographyPartFeatureComponent, selector: "cadmus-bibliography-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.BibliographyPartComponent, selector: "cadmus-bibliography-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: BibliographyPartFeatureComponent, decorators: [{
|
|
107
61
|
type: Component,
|
|
108
|
-
args: [{ selector: 'cadmus-bibliography-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [
|
|
109
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
110
|
-
|
|
111
|
-
let EditCategoriesPartStore = class EditCategoriesPartStore extends Store {
|
|
112
|
-
constructor() {
|
|
113
|
-
super({});
|
|
114
|
-
}
|
|
115
|
-
setDirty(value) {
|
|
116
|
-
this.update({ dirty: value });
|
|
117
|
-
}
|
|
118
|
-
setSaving(value) {
|
|
119
|
-
this.update({ saving: value });
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
EditCategoriesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
123
|
-
EditCategoriesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartStore, providedIn: 'root' });
|
|
124
|
-
EditCategoriesPartStore = __decorate([
|
|
125
|
-
StoreConfig({ name: CATEGORIES_PART_TYPEID })
|
|
126
|
-
], EditCategoriesPartStore);
|
|
127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartStore, decorators: [{
|
|
128
|
-
type: Injectable,
|
|
129
|
-
args: [{ providedIn: 'root' }]
|
|
130
|
-
}], ctorParameters: function () { return []; } });
|
|
131
|
-
|
|
132
|
-
class EditCategoriesPartQuery extends EditPartQueryBase {
|
|
133
|
-
constructor(store) {
|
|
134
|
-
super(store);
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
EditCategoriesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartQuery, deps: [{ token: EditCategoriesPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
138
|
-
EditCategoriesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartQuery, providedIn: 'root' });
|
|
139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartQuery, decorators: [{
|
|
140
|
-
type: Injectable,
|
|
141
|
-
args: [{ providedIn: 'root' }]
|
|
142
|
-
}], ctorParameters: function () { return [{ type: EditCategoriesPartStore }]; } });
|
|
143
|
-
|
|
144
|
-
class EditCategoriesPartService extends EditPartServiceBase {
|
|
145
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
146
|
-
super(itemService, thesaurusService);
|
|
147
|
-
this.store = editPartStore;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
EditCategoriesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartService, deps: [{ token: EditCategoriesPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
151
|
-
EditCategoriesPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartService, providedIn: 'root' });
|
|
152
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCategoriesPartService, decorators: [{
|
|
153
|
-
type: Injectable,
|
|
154
|
-
args: [{ providedIn: 'root' }]
|
|
155
|
-
}], ctorParameters: function () { return [{ type: EditCategoriesPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
62
|
+
args: [{ selector: 'cadmus-bibliography-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n" }]
|
|
63
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
156
64
|
|
|
157
65
|
class CategoriesPartFeatureComponent extends EditPartFeatureBase {
|
|
158
|
-
constructor(router, route, snackbar,
|
|
159
|
-
super(router, route, snackbar,
|
|
66
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
67
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
160
68
|
}
|
|
161
|
-
|
|
162
|
-
|
|
69
|
+
getReqThesauriIds() {
|
|
70
|
+
return ['categories'];
|
|
163
71
|
}
|
|
164
72
|
}
|
|
165
|
-
CategoriesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
166
|
-
CategoriesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
CategoriesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CategoriesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
74
|
+
CategoriesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: CategoriesPartFeatureComponent, selector: "cadmus-categories-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.CategoriesPartComponent, selector: "cadmus-categories-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CategoriesPartFeatureComponent, decorators: [{
|
|
168
76
|
type: Component,
|
|
169
|
-
args: [{ selector: 'cadmus-categories-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [
|
|
170
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
171
|
-
|
|
172
|
-
let EditChronologyFragmentStore = class EditChronologyFragmentStore extends Store {
|
|
173
|
-
constructor() {
|
|
174
|
-
super(editFragmentInitialState);
|
|
175
|
-
}
|
|
176
|
-
setDirty(value) {
|
|
177
|
-
this.update({ dirty: value });
|
|
178
|
-
}
|
|
179
|
-
setSaving(value) {
|
|
180
|
-
this.update({ saving: value });
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
EditChronologyFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
184
|
-
EditChronologyFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentStore, providedIn: 'root' });
|
|
185
|
-
EditChronologyFragmentStore = __decorate([
|
|
186
|
-
StoreConfig({ name: CHRONOLOGY_FRAGMENT_TYPEID })
|
|
187
|
-
], EditChronologyFragmentStore);
|
|
188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentStore, decorators: [{
|
|
189
|
-
type: Injectable,
|
|
190
|
-
args: [{ providedIn: 'root' }]
|
|
191
|
-
}], ctorParameters: function () { return []; } });
|
|
192
|
-
|
|
193
|
-
class EditChronologyFragmentQuery extends EditFragmentQueryBase {
|
|
194
|
-
constructor(store) {
|
|
195
|
-
super(store);
|
|
196
|
-
this.store = store;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
EditChronologyFragmentQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentQuery, deps: [{ token: EditChronologyFragmentStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
200
|
-
EditChronologyFragmentQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentQuery, providedIn: 'root' });
|
|
201
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentQuery, decorators: [{
|
|
202
|
-
type: Injectable,
|
|
203
|
-
args: [{ providedIn: 'root' }]
|
|
204
|
-
}], ctorParameters: function () { return [{ type: EditChronologyFragmentStore }]; } });
|
|
205
|
-
|
|
206
|
-
class EditChronologyFragmentService extends EditFragmentServiceBase {
|
|
207
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
208
|
-
super(itemService, thesaurusService);
|
|
209
|
-
this.store = editPartStore;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
EditChronologyFragmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentService, deps: [{ token: EditChronologyFragmentStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
213
|
-
EditChronologyFragmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentService, providedIn: 'root' });
|
|
214
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronologyFragmentService, decorators: [{
|
|
215
|
-
type: Injectable,
|
|
216
|
-
args: [{ providedIn: 'root' }]
|
|
217
|
-
}], ctorParameters: function () { return [{ type: EditChronologyFragmentStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
77
|
+
args: [{ selector: 'cadmus-categories-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n" }]
|
|
78
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
218
79
|
|
|
219
80
|
class ChronologyFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
220
|
-
constructor(router, route, snackbar,
|
|
221
|
-
super(router, route, snackbar,
|
|
81
|
+
constructor(router, route, snackbar, editorService, libraryRouteService) {
|
|
82
|
+
super(router, route, snackbar, editorService, libraryRouteService);
|
|
222
83
|
}
|
|
223
|
-
|
|
224
|
-
|
|
84
|
+
getReqThesauriIds() {
|
|
85
|
+
return ['chronology-tags'];
|
|
225
86
|
}
|
|
226
87
|
}
|
|
227
|
-
ChronologyFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
228
|
-
ChronologyFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
ChronologyFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ChronologyFragmentFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i4.FragmentEditorService }, { token: i3$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Component });
|
|
89
|
+
ChronologyFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: ChronologyFragmentFeatureComponent, selector: "cadmus-chronology-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n", styles: [""], dependencies: [{ kind: "component", type: i16.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.ChronologyFragmentComponent, selector: "cadmus-chronology-fragment" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ChronologyFragmentFeatureComponent, decorators: [{
|
|
230
91
|
type: Component,
|
|
231
|
-
args: [{ selector: 'cadmus-chronology-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"
|
|
232
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
233
|
-
|
|
234
|
-
let EditChronotopesPartStore = class EditChronotopesPartStore extends Store {
|
|
235
|
-
constructor() {
|
|
236
|
-
super({});
|
|
237
|
-
}
|
|
238
|
-
setDirty(value) {
|
|
239
|
-
this.update({ dirty: value });
|
|
240
|
-
}
|
|
241
|
-
setSaving(value) {
|
|
242
|
-
this.update({ saving: value });
|
|
243
|
-
}
|
|
244
|
-
};
|
|
245
|
-
EditChronotopesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
246
|
-
EditChronotopesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartStore, providedIn: 'root' });
|
|
247
|
-
EditChronotopesPartStore = __decorate([
|
|
248
|
-
StoreConfig({ name: CHRONOTOPES_PART_TYPEID })
|
|
249
|
-
], EditChronotopesPartStore);
|
|
250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartStore, decorators: [{
|
|
251
|
-
type: Injectable,
|
|
252
|
-
args: [{ providedIn: 'root' }]
|
|
253
|
-
}], ctorParameters: function () { return []; } });
|
|
254
|
-
|
|
255
|
-
class EditChronotopesPartQuery extends EditPartQueryBase {
|
|
256
|
-
constructor(store) {
|
|
257
|
-
super(store);
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
EditChronotopesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartQuery, deps: [{ token: EditChronotopesPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
261
|
-
EditChronotopesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartQuery, providedIn: 'root' });
|
|
262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartQuery, decorators: [{
|
|
263
|
-
type: Injectable,
|
|
264
|
-
args: [{ providedIn: 'root' }]
|
|
265
|
-
}], ctorParameters: function () { return [{ type: EditChronotopesPartStore }]; } });
|
|
266
|
-
|
|
267
|
-
class EditChronotopesPartService extends EditPartServiceBase {
|
|
268
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
269
|
-
super(itemService, thesaurusService);
|
|
270
|
-
this.store = editPartStore;
|
|
271
|
-
}
|
|
272
|
-
}
|
|
273
|
-
EditChronotopesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartService, deps: [{ token: EditChronotopesPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
274
|
-
EditChronotopesPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartService, providedIn: 'root' });
|
|
275
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditChronotopesPartService, decorators: [{
|
|
276
|
-
type: Injectable,
|
|
277
|
-
args: [{ providedIn: 'root' }]
|
|
278
|
-
}], ctorParameters: function () { return [{ type: EditChronotopesPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
92
|
+
args: [{ selector: 'cadmus-chronology-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n" }]
|
|
93
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i3$1.LibraryRouteService }]; } });
|
|
279
94
|
|
|
280
95
|
class ChronotopesPartFeatureComponent extends EditPartFeatureBase {
|
|
281
|
-
constructor(router, route, snackbar,
|
|
282
|
-
super(router, route, snackbar,
|
|
96
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
97
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
283
98
|
}
|
|
284
|
-
|
|
285
|
-
|
|
99
|
+
getReqThesauriIds() {
|
|
100
|
+
return [
|
|
286
101
|
'chronotope-place-tags',
|
|
287
102
|
'chronotope-assertion-tags',
|
|
288
|
-
'
|
|
289
|
-
'
|
|
290
|
-
]
|
|
103
|
+
'doc-reference-types',
|
|
104
|
+
'doc-reference-tags',
|
|
105
|
+
];
|
|
291
106
|
}
|
|
292
107
|
}
|
|
293
|
-
ChronotopesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
294
|
-
ChronotopesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
295
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
108
|
+
ChronotopesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ChronotopesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
109
|
+
ChronotopesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: ChronotopesPartFeatureComponent, selector: "cadmus-chronotopes-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-chronotopes-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-chronotopes-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.ChronotopesPartComponent, selector: "cadmus-chronotopes-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ChronotopesPartFeatureComponent, decorators: [{
|
|
296
111
|
type: Component,
|
|
297
|
-
args: [{ selector: 'cadmus-chronotopes-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-chronotopes-part\n [
|
|
298
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
299
|
-
|
|
300
|
-
let EditCommentFragmentStore = class EditCommentFragmentStore extends Store {
|
|
301
|
-
constructor() {
|
|
302
|
-
super(editFragmentInitialState);
|
|
303
|
-
}
|
|
304
|
-
setDirty(value) {
|
|
305
|
-
this.update({ dirty: value });
|
|
306
|
-
}
|
|
307
|
-
setSaving(value) {
|
|
308
|
-
this.update({ saving: value });
|
|
309
|
-
}
|
|
310
|
-
};
|
|
311
|
-
EditCommentFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
312
|
-
EditCommentFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentStore, providedIn: 'root' });
|
|
313
|
-
EditCommentFragmentStore = __decorate([
|
|
314
|
-
StoreConfig({ name: COMMENT_FRAGMENT_TYPEID })
|
|
315
|
-
], EditCommentFragmentStore);
|
|
316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentStore, decorators: [{
|
|
317
|
-
type: Injectable,
|
|
318
|
-
args: [{ providedIn: 'root' }]
|
|
319
|
-
}], ctorParameters: function () { return []; } });
|
|
320
|
-
|
|
321
|
-
class EditCommentFragmentQuery extends EditFragmentQueryBase {
|
|
322
|
-
constructor(store) {
|
|
323
|
-
super(store);
|
|
324
|
-
this.store = store;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
EditCommentFragmentQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentQuery, deps: [{ token: EditCommentFragmentStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
328
|
-
EditCommentFragmentQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentQuery, providedIn: 'root' });
|
|
329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentQuery, decorators: [{
|
|
330
|
-
type: Injectable,
|
|
331
|
-
args: [{ providedIn: 'root' }]
|
|
332
|
-
}], ctorParameters: function () { return [{ type: EditCommentFragmentStore }]; } });
|
|
333
|
-
|
|
334
|
-
class EditCommentFragmentService extends EditFragmentServiceBase {
|
|
335
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
336
|
-
super(itemService, thesaurusService);
|
|
337
|
-
this.store = editPartStore;
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
EditCommentFragmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentService, deps: [{ token: EditCommentFragmentStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
341
|
-
EditCommentFragmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentService, providedIn: 'root' });
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentFragmentService, decorators: [{
|
|
343
|
-
type: Injectable,
|
|
344
|
-
args: [{ providedIn: 'root' }]
|
|
345
|
-
}], ctorParameters: function () { return [{ type: EditCommentFragmentStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
112
|
+
args: [{ selector: 'cadmus-chronotopes-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-chronotopes-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-chronotopes-part>\n" }]
|
|
113
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
346
114
|
|
|
347
115
|
class CommentFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
348
|
-
constructor(router, route, snackbar,
|
|
349
|
-
super(router, route, snackbar,
|
|
116
|
+
constructor(router, route, snackbar, editorService, libraryRouteService) {
|
|
117
|
+
super(router, route, snackbar, editorService, libraryRouteService);
|
|
350
118
|
}
|
|
351
|
-
|
|
352
|
-
|
|
119
|
+
getReqThesauriIds() {
|
|
120
|
+
return [
|
|
353
121
|
'comment-tags',
|
|
354
122
|
'doc-reference-tags',
|
|
355
123
|
'doc-reference-types',
|
|
@@ -358,69 +126,23 @@ class CommentFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
|
358
126
|
'keyword-indexes',
|
|
359
127
|
'keyword-tags',
|
|
360
128
|
'comment-id-scopes',
|
|
361
|
-
'comment-id-tags'
|
|
362
|
-
]
|
|
129
|
+
'comment-id-tags',
|
|
130
|
+
];
|
|
363
131
|
}
|
|
364
132
|
}
|
|
365
|
-
CommentFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
366
|
-
CommentFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
133
|
+
CommentFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CommentFragmentFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i4.FragmentEditorService }, { token: i3$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Component });
|
|
134
|
+
CommentFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: CommentFragmentFeatureComponent, selector: "cadmus-comment-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"], dependencies: [{ kind: "component", type: i16.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.CommentEditorComponent, selector: "cadmus-comment-editor" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CommentFragmentFeatureComponent, decorators: [{
|
|
368
136
|
type: Component,
|
|
369
|
-
args: [{ selector: 'cadmus-comment-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"
|
|
370
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
371
|
-
|
|
372
|
-
let EditCommentPartStore = class EditCommentPartStore extends Store {
|
|
373
|
-
constructor() {
|
|
374
|
-
super({});
|
|
375
|
-
}
|
|
376
|
-
setDirty(value) {
|
|
377
|
-
this.update({ dirty: value });
|
|
378
|
-
}
|
|
379
|
-
setSaving(value) {
|
|
380
|
-
this.update({ saving: value });
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
EditCommentPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
384
|
-
EditCommentPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartStore, providedIn: 'root' });
|
|
385
|
-
EditCommentPartStore = __decorate([
|
|
386
|
-
StoreConfig({ name: COMMENT_PART_TYPEID })
|
|
387
|
-
], EditCommentPartStore);
|
|
388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartStore, decorators: [{
|
|
389
|
-
type: Injectable,
|
|
390
|
-
args: [{ providedIn: 'root' }]
|
|
391
|
-
}], ctorParameters: function () { return []; } });
|
|
392
|
-
|
|
393
|
-
class EditCommentPartQuery extends EditPartQueryBase {
|
|
394
|
-
constructor(store) {
|
|
395
|
-
super(store);
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
EditCommentPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartQuery, deps: [{ token: EditCommentPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
399
|
-
EditCommentPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartQuery, providedIn: 'root' });
|
|
400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartQuery, decorators: [{
|
|
401
|
-
type: Injectable,
|
|
402
|
-
args: [{ providedIn: 'root' }]
|
|
403
|
-
}], ctorParameters: function () { return [{ type: EditCommentPartStore }]; } });
|
|
404
|
-
|
|
405
|
-
class EditCommentPartService extends EditPartServiceBase {
|
|
406
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
407
|
-
super(itemService, thesaurusService);
|
|
408
|
-
this.store = editPartStore;
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
EditCommentPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartService, deps: [{ token: EditCommentPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
412
|
-
EditCommentPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartService, providedIn: 'root' });
|
|
413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditCommentPartService, decorators: [{
|
|
414
|
-
type: Injectable,
|
|
415
|
-
args: [{ providedIn: 'root' }]
|
|
416
|
-
}], ctorParameters: function () { return [{ type: EditCommentPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
137
|
+
args: [{ selector: 'cadmus-comment-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"] }]
|
|
138
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i3$1.LibraryRouteService }]; } });
|
|
417
139
|
|
|
418
140
|
class CommentPartFeatureComponent extends EditPartFeatureBase {
|
|
419
|
-
constructor(router, route, snackbar,
|
|
420
|
-
super(router, route, snackbar,
|
|
141
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
142
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
421
143
|
}
|
|
422
|
-
|
|
423
|
-
|
|
144
|
+
getReqThesauriIds() {
|
|
145
|
+
return [
|
|
424
146
|
'comment-tags',
|
|
425
147
|
'doc-reference-tags',
|
|
426
148
|
'doc-reference-types',
|
|
@@ -429,585 +151,171 @@ class CommentPartFeatureComponent extends EditPartFeatureBase {
|
|
|
429
151
|
'keyword-indexes',
|
|
430
152
|
'keyword-tags',
|
|
431
153
|
'comment-id-scopes',
|
|
432
|
-
'comment-id-tags'
|
|
433
|
-
]
|
|
154
|
+
'comment-id-tags',
|
|
155
|
+
];
|
|
434
156
|
}
|
|
435
157
|
}
|
|
436
|
-
CommentPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
437
|
-
CommentPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
438
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
158
|
+
CommentPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CommentPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
159
|
+
CommentPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: CommentPartFeatureComponent, selector: "cadmus-comment-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.CommentEditorComponent, selector: "cadmus-comment-editor" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CommentPartFeatureComponent, decorators: [{
|
|
439
161
|
type: Component,
|
|
440
|
-
args: [{ selector: 'cadmus-comment-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [
|
|
441
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
442
|
-
|
|
443
|
-
let EditDocReferencesPartStore = class EditDocReferencesPartStore extends Store {
|
|
444
|
-
constructor() {
|
|
445
|
-
super({});
|
|
446
|
-
}
|
|
447
|
-
setDirty(value) {
|
|
448
|
-
this.update({ dirty: value });
|
|
449
|
-
}
|
|
450
|
-
setSaving(value) {
|
|
451
|
-
this.update({ saving: value });
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
EditDocReferencesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
455
|
-
EditDocReferencesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartStore, providedIn: 'root' });
|
|
456
|
-
EditDocReferencesPartStore = __decorate([
|
|
457
|
-
StoreConfig({ name: DOC_REFERENCES_PART_TYPEID })
|
|
458
|
-
], EditDocReferencesPartStore);
|
|
459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartStore, decorators: [{
|
|
460
|
-
type: Injectable,
|
|
461
|
-
args: [{ providedIn: 'root' }]
|
|
462
|
-
}], ctorParameters: function () { return []; } });
|
|
463
|
-
|
|
464
|
-
class EditDocReferencesPartQuery extends EditPartQueryBase {
|
|
465
|
-
constructor(store) {
|
|
466
|
-
super(store);
|
|
467
|
-
}
|
|
468
|
-
}
|
|
469
|
-
EditDocReferencesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartQuery, deps: [{ token: EditDocReferencesPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
470
|
-
EditDocReferencesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartQuery, providedIn: 'root' });
|
|
471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartQuery, decorators: [{
|
|
472
|
-
type: Injectable,
|
|
473
|
-
args: [{ providedIn: 'root' }]
|
|
474
|
-
}], ctorParameters: function () { return [{ type: EditDocReferencesPartStore }]; } });
|
|
475
|
-
|
|
476
|
-
class EditDocReferencesPartService extends EditPartServiceBase {
|
|
477
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
478
|
-
super(itemService, thesaurusService);
|
|
479
|
-
this.store = editPartStore;
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
EditDocReferencesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartService, deps: [{ token: EditDocReferencesPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
483
|
-
EditDocReferencesPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartService, providedIn: 'root' });
|
|
484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditDocReferencesPartService, decorators: [{
|
|
485
|
-
type: Injectable,
|
|
486
|
-
args: [{ providedIn: 'root' }]
|
|
487
|
-
}], ctorParameters: function () { return [{ type: EditDocReferencesPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
162
|
+
args: [{ selector: 'cadmus-comment-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n" }]
|
|
163
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
488
164
|
|
|
489
165
|
class DocReferencesPartFeatureComponent extends EditPartFeatureBase {
|
|
490
|
-
constructor(router, route, snackbar,
|
|
491
|
-
super(router, route, snackbar,
|
|
166
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
167
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
492
168
|
}
|
|
493
|
-
|
|
494
|
-
|
|
169
|
+
getReqThesauriIds() {
|
|
170
|
+
return ['doc-reference-tags', 'doc-reference-types'];
|
|
495
171
|
}
|
|
496
172
|
}
|
|
497
|
-
DocReferencesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
498
|
-
DocReferencesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
173
|
+
DocReferencesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DocReferencesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
174
|
+
DocReferencesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: DocReferencesPartFeatureComponent, selector: "cadmus-doc-references-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.DocReferencesPartComponent, selector: "cadmus-doc-references-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DocReferencesPartFeatureComponent, decorators: [{
|
|
500
176
|
type: Component,
|
|
501
|
-
args: [{ selector: 'cadmus-doc-references-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [
|
|
502
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
503
|
-
|
|
504
|
-
let EditExternalIdsPartStore = class EditExternalIdsPartStore extends Store {
|
|
505
|
-
constructor() {
|
|
506
|
-
super({});
|
|
507
|
-
}
|
|
508
|
-
setDirty(value) {
|
|
509
|
-
this.update({ dirty: value });
|
|
510
|
-
}
|
|
511
|
-
setSaving(value) {
|
|
512
|
-
this.update({ saving: value });
|
|
513
|
-
}
|
|
514
|
-
};
|
|
515
|
-
EditExternalIdsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
516
|
-
EditExternalIdsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartStore, providedIn: 'root' });
|
|
517
|
-
EditExternalIdsPartStore = __decorate([
|
|
518
|
-
StoreConfig({ name: EXTERNAL_IDS_PART_TYPEID })
|
|
519
|
-
], EditExternalIdsPartStore);
|
|
520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartStore, decorators: [{
|
|
521
|
-
type: Injectable,
|
|
522
|
-
args: [{ providedIn: 'root' }]
|
|
523
|
-
}], ctorParameters: function () { return []; } });
|
|
524
|
-
|
|
525
|
-
class EditExternalIdsPartQuery extends EditPartQueryBase {
|
|
526
|
-
constructor(store) {
|
|
527
|
-
super(store);
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
EditExternalIdsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartQuery, deps: [{ token: EditExternalIdsPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
531
|
-
EditExternalIdsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartQuery, providedIn: "root" });
|
|
532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartQuery, decorators: [{
|
|
533
|
-
type: Injectable,
|
|
534
|
-
args: [{ providedIn: "root" }]
|
|
535
|
-
}], ctorParameters: function () { return [{ type: EditExternalIdsPartStore }]; } });
|
|
536
|
-
|
|
537
|
-
class EditExternalIdsPartService extends EditPartServiceBase {
|
|
538
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
539
|
-
super(itemService, thesaurusService);
|
|
540
|
-
this.store = editPartStore;
|
|
541
|
-
}
|
|
542
|
-
}
|
|
543
|
-
EditExternalIdsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartService, deps: [{ token: EditExternalIdsPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
544
|
-
EditExternalIdsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartService, providedIn: "root" });
|
|
545
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditExternalIdsPartService, decorators: [{
|
|
546
|
-
type: Injectable,
|
|
547
|
-
args: [{ providedIn: "root" }]
|
|
548
|
-
}], ctorParameters: function () { return [{ type: EditExternalIdsPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
177
|
+
args: [{ selector: 'cadmus-doc-references-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n" }]
|
|
178
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
549
179
|
|
|
550
180
|
class ExternalIdsPartFeatureComponent extends EditPartFeatureBase {
|
|
551
|
-
constructor(router, route, snackbar,
|
|
552
|
-
super(router, route, snackbar,
|
|
181
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
182
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
553
183
|
}
|
|
554
|
-
|
|
555
|
-
|
|
184
|
+
getReqThesauriIds() {
|
|
185
|
+
return [
|
|
556
186
|
'external-id-scopes',
|
|
557
187
|
'external-id-tags',
|
|
558
188
|
'assertion-tags',
|
|
559
189
|
'doc-reference-types',
|
|
560
|
-
'doc-reference-tags'
|
|
561
|
-
]
|
|
190
|
+
'doc-reference-tags',
|
|
191
|
+
];
|
|
562
192
|
}
|
|
563
193
|
}
|
|
564
|
-
ExternalIdsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
565
|
-
ExternalIdsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
194
|
+
ExternalIdsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ExternalIdsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
195
|
+
ExternalIdsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: ExternalIdsPartFeatureComponent, selector: "cadmus-refs-external-ids-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-refs-external-ids-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.ExternalIdsPartComponent, selector: "cadmus-refs-external-ids-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: ExternalIdsPartFeatureComponent, decorators: [{
|
|
567
197
|
type: Component,
|
|
568
|
-
args: [{ selector: 'cadmus-refs-external-ids-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-refs-external-ids-part\r\n [
|
|
569
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
570
|
-
|
|
571
|
-
let EditHistoricalDatePartStore = class EditHistoricalDatePartStore extends Store {
|
|
572
|
-
constructor() {
|
|
573
|
-
super({});
|
|
574
|
-
}
|
|
575
|
-
setDirty(value) {
|
|
576
|
-
this.update({ dirty: value });
|
|
577
|
-
}
|
|
578
|
-
setSaving(value) {
|
|
579
|
-
this.update({ saving: value });
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
EditHistoricalDatePartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
583
|
-
EditHistoricalDatePartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartStore, providedIn: 'root' });
|
|
584
|
-
EditHistoricalDatePartStore = __decorate([
|
|
585
|
-
StoreConfig({ name: HISTORICAL_DATE_PART_TYPEID })
|
|
586
|
-
], EditHistoricalDatePartStore);
|
|
587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartStore, decorators: [{
|
|
588
|
-
type: Injectable,
|
|
589
|
-
args: [{ providedIn: 'root' }]
|
|
590
|
-
}], ctorParameters: function () { return []; } });
|
|
591
|
-
|
|
592
|
-
class EditHistoricalDatePartQuery extends EditPartQueryBase {
|
|
593
|
-
constructor(store) {
|
|
594
|
-
super(store);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
EditHistoricalDatePartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartQuery, deps: [{ token: EditHistoricalDatePartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
598
|
-
EditHistoricalDatePartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartQuery, providedIn: 'root' });
|
|
599
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartQuery, decorators: [{
|
|
600
|
-
type: Injectable,
|
|
601
|
-
args: [{ providedIn: 'root' }]
|
|
602
|
-
}], ctorParameters: function () { return [{ type: EditHistoricalDatePartStore }]; } });
|
|
603
|
-
|
|
604
|
-
class EditHistoricalDatePartService extends EditPartServiceBase {
|
|
605
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
606
|
-
super(itemService, thesaurusService);
|
|
607
|
-
this.store = editPartStore;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
EditHistoricalDatePartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartService, deps: [{ token: EditHistoricalDatePartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
611
|
-
EditHistoricalDatePartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartService, providedIn: 'root' });
|
|
612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalDatePartService, decorators: [{
|
|
613
|
-
type: Injectable,
|
|
614
|
-
args: [{ providedIn: 'root' }]
|
|
615
|
-
}], ctorParameters: function () { return [{ type: EditHistoricalDatePartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
198
|
+
args: [{ selector: 'cadmus-refs-external-ids-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-refs-external-ids-part>\r\n" }]
|
|
199
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
616
200
|
|
|
617
201
|
class HistoricalDatePartFeatureComponent extends EditPartFeatureBase {
|
|
618
|
-
constructor(router, route, snackbar,
|
|
619
|
-
super(router, route, snackbar,
|
|
202
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
203
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
620
204
|
}
|
|
621
|
-
|
|
622
|
-
|
|
205
|
+
getReqThesauriIds() {
|
|
206
|
+
return ['doc-reference-tags', 'doc-reference-types'];
|
|
623
207
|
}
|
|
624
208
|
}
|
|
625
|
-
HistoricalDatePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
626
|
-
HistoricalDatePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
627
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
209
|
+
HistoricalDatePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HistoricalDatePartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
210
|
+
HistoricalDatePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: HistoricalDatePartFeatureComponent, selector: "cadmus-historical-date-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.HistoricalDatePartComponent, selector: "cadmus-historical-date-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HistoricalDatePartFeatureComponent, decorators: [{
|
|
628
212
|
type: Component,
|
|
629
|
-
args: [{ selector: 'cadmus-historical-date-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [
|
|
630
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
631
|
-
|
|
632
|
-
let EditHistoricalEventsPartStore = class EditHistoricalEventsPartStore extends Store {
|
|
633
|
-
constructor() {
|
|
634
|
-
super({});
|
|
635
|
-
}
|
|
636
|
-
setDirty(value) {
|
|
637
|
-
this.update({ dirty: value });
|
|
638
|
-
}
|
|
639
|
-
setSaving(value) {
|
|
640
|
-
this.update({ saving: value });
|
|
641
|
-
}
|
|
642
|
-
};
|
|
643
|
-
EditHistoricalEventsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
644
|
-
EditHistoricalEventsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartStore, providedIn: 'root' });
|
|
645
|
-
EditHistoricalEventsPartStore = __decorate([
|
|
646
|
-
StoreConfig({ name: HISTORICAL_EVENTS_PART_TYPEID })
|
|
647
|
-
], EditHistoricalEventsPartStore);
|
|
648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartStore, decorators: [{
|
|
649
|
-
type: Injectable,
|
|
650
|
-
args: [{ providedIn: 'root' }]
|
|
651
|
-
}], ctorParameters: function () { return []; } });
|
|
652
|
-
|
|
653
|
-
class EditHistoricalEventsPartQuery extends EditPartQueryBase {
|
|
654
|
-
constructor(store) {
|
|
655
|
-
super(store);
|
|
656
|
-
}
|
|
657
|
-
}
|
|
658
|
-
EditHistoricalEventsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartQuery, deps: [{ token: EditHistoricalEventsPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
659
|
-
EditHistoricalEventsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartQuery, providedIn: 'root' });
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartQuery, decorators: [{
|
|
661
|
-
type: Injectable,
|
|
662
|
-
args: [{ providedIn: 'root' }]
|
|
663
|
-
}], ctorParameters: function () { return [{ type: EditHistoricalEventsPartStore }]; } });
|
|
664
|
-
|
|
665
|
-
class EditHistoricalEventsPartService extends EditPartServiceBase {
|
|
666
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
667
|
-
super(itemService, thesaurusService);
|
|
668
|
-
this.store = editPartStore;
|
|
669
|
-
}
|
|
670
|
-
}
|
|
671
|
-
EditHistoricalEventsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartService, deps: [{ token: EditHistoricalEventsPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
672
|
-
EditHistoricalEventsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartService, providedIn: 'root' });
|
|
673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditHistoricalEventsPartService, decorators: [{
|
|
674
|
-
type: Injectable,
|
|
675
|
-
args: [{ providedIn: 'root' }]
|
|
676
|
-
}], ctorParameters: function () { return [{ type: EditHistoricalEventsPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
213
|
+
args: [{ selector: 'cadmus-historical-date-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n" }]
|
|
214
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
677
215
|
|
|
678
216
|
class HistoricalEventsPartFeatureComponent extends EditPartFeatureBase {
|
|
679
|
-
constructor(router, route, snackbar,
|
|
680
|
-
super(router, route, snackbar,
|
|
217
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
218
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
681
219
|
}
|
|
682
|
-
|
|
683
|
-
|
|
220
|
+
getReqThesauriIds() {
|
|
221
|
+
return [
|
|
684
222
|
'event-types',
|
|
685
223
|
'event-relations',
|
|
686
224
|
'chronotope-tags',
|
|
687
225
|
'assertion-tags',
|
|
688
226
|
'doc-reference-tags',
|
|
689
227
|
'doc-reference-types',
|
|
690
|
-
]
|
|
228
|
+
];
|
|
691
229
|
}
|
|
692
230
|
}
|
|
693
|
-
HistoricalEventsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
694
|
-
HistoricalEventsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
231
|
+
HistoricalEventsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HistoricalEventsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
232
|
+
HistoricalEventsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: HistoricalEventsPartFeatureComponent, selector: "cadmus-historical-events-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.HistoricalEventsPartComponent, selector: "cadmus-historical-events-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: HistoricalEventsPartFeatureComponent, decorators: [{
|
|
696
234
|
type: Component,
|
|
697
|
-
args: [{ selector: 'cadmus-historical-events-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [
|
|
698
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
699
|
-
|
|
700
|
-
let EditIndexKeywordsPartStore = class EditIndexKeywordsPartStore extends Store {
|
|
701
|
-
constructor() {
|
|
702
|
-
super({});
|
|
703
|
-
}
|
|
704
|
-
setDirty(value) {
|
|
705
|
-
this.update({ dirty: value });
|
|
706
|
-
}
|
|
707
|
-
setSaving(value) {
|
|
708
|
-
this.update({ saving: value });
|
|
709
|
-
}
|
|
710
|
-
};
|
|
711
|
-
EditIndexKeywordsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
712
|
-
EditIndexKeywordsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartStore, providedIn: 'root' });
|
|
713
|
-
EditIndexKeywordsPartStore = __decorate([
|
|
714
|
-
StoreConfig({ name: INDEX_KEYWORDS_PART_TYPEID })
|
|
715
|
-
], EditIndexKeywordsPartStore);
|
|
716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartStore, decorators: [{
|
|
717
|
-
type: Injectable,
|
|
718
|
-
args: [{ providedIn: 'root' }]
|
|
719
|
-
}], ctorParameters: function () { return []; } });
|
|
720
|
-
|
|
721
|
-
class EditIndexKeywordsPartQuery extends EditPartQueryBase {
|
|
722
|
-
constructor(store) {
|
|
723
|
-
super(store);
|
|
724
|
-
}
|
|
725
|
-
}
|
|
726
|
-
EditIndexKeywordsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartQuery, deps: [{ token: EditIndexKeywordsPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
727
|
-
EditIndexKeywordsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartQuery, providedIn: 'root' });
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartQuery, decorators: [{
|
|
729
|
-
type: Injectable,
|
|
730
|
-
args: [{ providedIn: 'root' }]
|
|
731
|
-
}], ctorParameters: function () { return [{ type: EditIndexKeywordsPartStore }]; } });
|
|
732
|
-
|
|
733
|
-
class EditIndexKeywordsPartService extends EditPartServiceBase {
|
|
734
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
735
|
-
super(itemService, thesaurusService);
|
|
736
|
-
this.store = editPartStore;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
EditIndexKeywordsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartService, deps: [{ token: EditIndexKeywordsPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
740
|
-
EditIndexKeywordsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartService, providedIn: 'root' });
|
|
741
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditIndexKeywordsPartService, decorators: [{
|
|
742
|
-
type: Injectable,
|
|
743
|
-
args: [{ providedIn: 'root' }]
|
|
744
|
-
}], ctorParameters: function () { return [{ type: EditIndexKeywordsPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
235
|
+
args: [{ selector: 'cadmus-historical-events-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n" }]
|
|
236
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
745
237
|
|
|
746
238
|
class IndexKeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
747
|
-
constructor(router, route, snackbar,
|
|
748
|
-
super(router, route, snackbar,
|
|
239
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
240
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
749
241
|
}
|
|
750
|
-
|
|
751
|
-
|
|
242
|
+
getReqThesauriIds() {
|
|
243
|
+
return ['languages', 'keyword-indexes', 'keyword-tags'];
|
|
752
244
|
}
|
|
753
245
|
}
|
|
754
|
-
IndexKeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
755
|
-
IndexKeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
246
|
+
IndexKeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: IndexKeywordsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
247
|
+
IndexKeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: IndexKeywordsPartFeatureComponent, selector: "cadmus-index-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.IndexKeywordsPartComponent, selector: "cadmus-index-keywords-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: IndexKeywordsPartFeatureComponent, decorators: [{
|
|
757
249
|
type: Component,
|
|
758
|
-
args: [{ selector: 'cadmus-index-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [
|
|
759
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
760
|
-
|
|
761
|
-
let EditKeywordsPartStore = class EditKeywordsPartStore extends Store {
|
|
762
|
-
constructor() {
|
|
763
|
-
super({});
|
|
764
|
-
}
|
|
765
|
-
setDirty(value) {
|
|
766
|
-
this.update({ dirty: value });
|
|
767
|
-
}
|
|
768
|
-
setSaving(value) {
|
|
769
|
-
this.update({ saving: value });
|
|
770
|
-
}
|
|
771
|
-
};
|
|
772
|
-
EditKeywordsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
773
|
-
EditKeywordsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartStore, providedIn: 'root' });
|
|
774
|
-
EditKeywordsPartStore = __decorate([
|
|
775
|
-
StoreConfig({ name: KEYWORDS_PART_TYPEID })
|
|
776
|
-
], EditKeywordsPartStore);
|
|
777
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartStore, decorators: [{
|
|
778
|
-
type: Injectable,
|
|
779
|
-
args: [{ providedIn: 'root' }]
|
|
780
|
-
}], ctorParameters: function () { return []; } });
|
|
781
|
-
|
|
782
|
-
class EditKeywordsPartQuery extends EditPartQueryBase {
|
|
783
|
-
constructor(store) {
|
|
784
|
-
super(store);
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
EditKeywordsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartQuery, deps: [{ token: EditKeywordsPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
788
|
-
EditKeywordsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartQuery, providedIn: 'root' });
|
|
789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartQuery, decorators: [{
|
|
790
|
-
type: Injectable,
|
|
791
|
-
args: [{ providedIn: 'root' }]
|
|
792
|
-
}], ctorParameters: function () { return [{ type: EditKeywordsPartStore }]; } });
|
|
793
|
-
|
|
794
|
-
class EditKeywordsPartService extends EditPartServiceBase {
|
|
795
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
796
|
-
super(itemService, thesaurusService);
|
|
797
|
-
this.store = editPartStore;
|
|
798
|
-
}
|
|
799
|
-
}
|
|
800
|
-
EditKeywordsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartService, deps: [{ token: EditKeywordsPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
801
|
-
EditKeywordsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartService, providedIn: 'root' });
|
|
802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditKeywordsPartService, decorators: [{
|
|
803
|
-
type: Injectable,
|
|
804
|
-
args: [{ providedIn: 'root' }]
|
|
805
|
-
}], ctorParameters: function () { return [{ type: EditKeywordsPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
250
|
+
args: [{ selector: 'cadmus-index-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n" }]
|
|
251
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
806
252
|
|
|
807
253
|
class KeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
808
|
-
constructor(router, route, snackbar,
|
|
809
|
-
super(router, route, snackbar,
|
|
254
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
255
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
810
256
|
}
|
|
811
|
-
|
|
812
|
-
|
|
257
|
+
getReqThesauriIds() {
|
|
258
|
+
return ['languages'];
|
|
813
259
|
}
|
|
814
260
|
}
|
|
815
|
-
KeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
816
|
-
KeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
817
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
261
|
+
KeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: KeywordsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
262
|
+
KeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: KeywordsPartFeatureComponent, selector: "cadmus-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.KeywordsPartComponent, selector: "cadmus-keywords-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: KeywordsPartFeatureComponent, decorators: [{
|
|
818
264
|
type: Component,
|
|
819
|
-
args: [{ selector: 'cadmus-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [
|
|
820
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
821
|
-
|
|
822
|
-
let EditMetadataPartStore = class EditMetadataPartStore extends Store {
|
|
823
|
-
constructor() {
|
|
824
|
-
super({});
|
|
825
|
-
}
|
|
826
|
-
setDirty(value) {
|
|
827
|
-
this.update({ dirty: value });
|
|
828
|
-
}
|
|
829
|
-
setSaving(value) {
|
|
830
|
-
this.update({ saving: value });
|
|
831
|
-
}
|
|
832
|
-
};
|
|
833
|
-
EditMetadataPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
834
|
-
EditMetadataPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartStore, providedIn: 'root' });
|
|
835
|
-
EditMetadataPartStore = __decorate([
|
|
836
|
-
StoreConfig({ name: METADATA_PART_TYPEID })
|
|
837
|
-
], EditMetadataPartStore);
|
|
838
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartStore, decorators: [{
|
|
839
|
-
type: Injectable,
|
|
840
|
-
args: [{ providedIn: 'root' }]
|
|
841
|
-
}], ctorParameters: function () { return []; } });
|
|
842
|
-
|
|
843
|
-
class EditMetadataPartQuery extends EditPartQueryBase {
|
|
844
|
-
constructor(store) {
|
|
845
|
-
super(store);
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
EditMetadataPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartQuery, deps: [{ token: EditMetadataPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
849
|
-
EditMetadataPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartQuery, providedIn: 'root' });
|
|
850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartQuery, decorators: [{
|
|
851
|
-
type: Injectable,
|
|
852
|
-
args: [{ providedIn: 'root' }]
|
|
853
|
-
}], ctorParameters: function () { return [{ type: EditMetadataPartStore }]; } });
|
|
854
|
-
|
|
855
|
-
class EditMetadataPartService extends EditPartServiceBase {
|
|
856
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
857
|
-
super(itemService, thesaurusService);
|
|
858
|
-
this.store = editPartStore;
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
EditMetadataPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartService, deps: [{ token: EditMetadataPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
862
|
-
EditMetadataPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartService, providedIn: 'root' });
|
|
863
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditMetadataPartService, decorators: [{
|
|
864
|
-
type: Injectable,
|
|
865
|
-
args: [{ providedIn: 'root' }]
|
|
866
|
-
}], ctorParameters: function () { return [{ type: EditMetadataPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
265
|
+
args: [{ selector: 'cadmus-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n" }]
|
|
266
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
867
267
|
|
|
868
268
|
class MetadataPartFeatureComponent extends EditPartFeatureBase {
|
|
869
|
-
constructor(router, route, snackbar,
|
|
870
|
-
super(router, route, snackbar,
|
|
269
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
270
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
871
271
|
}
|
|
872
|
-
|
|
873
|
-
|
|
272
|
+
getReqThesauriIds() {
|
|
273
|
+
return ['metadata-types'];
|
|
874
274
|
}
|
|
875
275
|
}
|
|
876
|
-
MetadataPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
877
|
-
MetadataPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
MetadataPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: MetadataPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
277
|
+
MetadataPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: MetadataPartFeatureComponent, selector: "cadmus-metadata-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.MetadataPartComponent, selector: "cadmus-metadata-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: MetadataPartFeatureComponent, decorators: [{
|
|
879
279
|
type: Component,
|
|
880
|
-
args: [{ selector: 'cadmus-metadata-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [
|
|
881
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
882
|
-
|
|
883
|
-
let EditNamesPartStore = class EditNamesPartStore extends Store {
|
|
884
|
-
constructor() {
|
|
885
|
-
super({});
|
|
886
|
-
}
|
|
887
|
-
setDirty(value) {
|
|
888
|
-
this.update({ dirty: value });
|
|
889
|
-
}
|
|
890
|
-
setSaving(value) {
|
|
891
|
-
this.update({ saving: value });
|
|
892
|
-
}
|
|
893
|
-
};
|
|
894
|
-
EditNamesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
895
|
-
EditNamesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartStore, providedIn: 'root' });
|
|
896
|
-
EditNamesPartStore = __decorate([
|
|
897
|
-
StoreConfig({ name: NAMES_PART_TYPEID })
|
|
898
|
-
], EditNamesPartStore);
|
|
899
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartStore, decorators: [{
|
|
900
|
-
type: Injectable,
|
|
901
|
-
args: [{ providedIn: 'root' }]
|
|
902
|
-
}], ctorParameters: function () { return []; } });
|
|
903
|
-
|
|
904
|
-
class EditNamesPartQuery extends EditPartQueryBase {
|
|
905
|
-
constructor(store) {
|
|
906
|
-
super(store);
|
|
907
|
-
}
|
|
908
|
-
}
|
|
909
|
-
EditNamesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartQuery, deps: [{ token: EditNamesPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
910
|
-
EditNamesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartQuery, providedIn: 'root' });
|
|
911
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartQuery, decorators: [{
|
|
912
|
-
type: Injectable,
|
|
913
|
-
args: [{ providedIn: 'root' }]
|
|
914
|
-
}], ctorParameters: function () { return [{ type: EditNamesPartStore }]; } });
|
|
915
|
-
|
|
916
|
-
class EditNamesPartService extends EditPartServiceBase {
|
|
917
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
918
|
-
super(itemService, thesaurusService);
|
|
919
|
-
this.store = editPartStore;
|
|
920
|
-
}
|
|
921
|
-
}
|
|
922
|
-
EditNamesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartService, deps: [{ token: EditNamesPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
923
|
-
EditNamesPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartService, providedIn: 'root' });
|
|
924
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNamesPartService, decorators: [{
|
|
925
|
-
type: Injectable,
|
|
926
|
-
args: [{ providedIn: 'root' }]
|
|
927
|
-
}], ctorParameters: function () { return [{ type: EditNamesPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
280
|
+
args: [{ selector: 'cadmus-metadata-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n" }]
|
|
281
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
928
282
|
|
|
929
283
|
class NamesPartFeatureComponent extends EditPartFeatureBase {
|
|
930
|
-
constructor(router, route, snackbar,
|
|
931
|
-
super(router, route, snackbar,
|
|
284
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
285
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
932
286
|
}
|
|
933
|
-
|
|
934
|
-
|
|
287
|
+
getReqThesauriIds() {
|
|
288
|
+
return [
|
|
935
289
|
'name-languages',
|
|
936
290
|
'name-tags',
|
|
937
291
|
'name-piece-types',
|
|
938
292
|
'assertion-tags',
|
|
939
|
-
'
|
|
940
|
-
'
|
|
941
|
-
]
|
|
293
|
+
'doc-reference-types',
|
|
294
|
+
'doc-reference-tags',
|
|
295
|
+
];
|
|
942
296
|
}
|
|
943
297
|
}
|
|
944
|
-
NamesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
945
|
-
NamesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
946
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
298
|
+
NamesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NamesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
299
|
+
NamesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: NamesPartFeatureComponent, selector: "cadmus-names-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-names-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-names-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.NamesPartComponent, selector: "cadmus-names-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NamesPartFeatureComponent, decorators: [{
|
|
947
301
|
type: Component,
|
|
948
|
-
args: [{ selector: 'cadmus-names-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-names-part\n [
|
|
949
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
950
|
-
|
|
951
|
-
let EditNotePartStore = class EditNotePartStore extends Store {
|
|
952
|
-
constructor() {
|
|
953
|
-
super({});
|
|
954
|
-
}
|
|
955
|
-
setDirty(value) {
|
|
956
|
-
this.update({ dirty: value });
|
|
957
|
-
}
|
|
958
|
-
setSaving(value) {
|
|
959
|
-
this.update({ saving: value });
|
|
960
|
-
}
|
|
961
|
-
};
|
|
962
|
-
EditNotePartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
963
|
-
EditNotePartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartStore, providedIn: 'root' });
|
|
964
|
-
EditNotePartStore = __decorate([
|
|
965
|
-
StoreConfig({ name: NOTE_PART_TYPEID })
|
|
966
|
-
], EditNotePartStore);
|
|
967
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartStore, decorators: [{
|
|
968
|
-
type: Injectable,
|
|
969
|
-
args: [{ providedIn: 'root' }]
|
|
970
|
-
}], ctorParameters: function () { return []; } });
|
|
971
|
-
|
|
972
|
-
class EditNotePartQuery extends EditPartQueryBase {
|
|
973
|
-
constructor(store) {
|
|
974
|
-
super(store);
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
EditNotePartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartQuery, deps: [{ token: EditNotePartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
978
|
-
EditNotePartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartQuery, providedIn: 'root' });
|
|
979
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartQuery, decorators: [{
|
|
980
|
-
type: Injectable,
|
|
981
|
-
args: [{ providedIn: 'root' }]
|
|
982
|
-
}], ctorParameters: function () { return [{ type: EditNotePartStore }]; } });
|
|
983
|
-
|
|
984
|
-
class EditNotePartService extends EditPartServiceBase {
|
|
985
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
986
|
-
super(itemService, thesaurusService);
|
|
987
|
-
this.store = editPartStore;
|
|
988
|
-
}
|
|
989
|
-
}
|
|
990
|
-
EditNotePartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartService, deps: [{ token: EditNotePartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
991
|
-
EditNotePartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartService, providedIn: 'root' });
|
|
992
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditNotePartService, decorators: [{
|
|
993
|
-
type: Injectable,
|
|
994
|
-
args: [{ providedIn: 'root' }]
|
|
995
|
-
}], ctorParameters: function () { return [{ type: EditNotePartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
302
|
+
args: [{ selector: 'cadmus-names-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-names-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-names-part>\n" }]
|
|
303
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
996
304
|
|
|
997
305
|
class NotePartFeatureComponent extends EditPartFeatureBase {
|
|
998
|
-
constructor(router, route, snackbar,
|
|
999
|
-
super(router, route, snackbar,
|
|
306
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
307
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
1000
308
|
}
|
|
1001
|
-
|
|
1002
|
-
|
|
309
|
+
getReqThesauriIds() {
|
|
310
|
+
return ['note-tags'];
|
|
1003
311
|
}
|
|
1004
312
|
}
|
|
1005
|
-
NotePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1006
|
-
NotePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1007
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
313
|
+
NotePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NotePartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
314
|
+
NotePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: NotePartFeatureComponent, selector: "cadmus-note-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.NotePartComponent, selector: "cadmus-note-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
315
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: NotePartFeatureComponent, decorators: [{
|
|
1008
316
|
type: Component,
|
|
1009
|
-
args: [{ selector: 'cadmus-note-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [
|
|
1010
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
317
|
+
args: [{ selector: 'cadmus-note-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n" }]
|
|
318
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
1011
319
|
|
|
1012
320
|
/**
|
|
1013
321
|
* The layer view model for a tiled text.
|
|
@@ -1402,13 +710,11 @@ class TiledTextLayerView {
|
|
|
1402
710
|
* checked.
|
|
1403
711
|
*/
|
|
1404
712
|
class TiledTextLayerPartFeatureComponent {
|
|
1405
|
-
constructor(route, _router,
|
|
713
|
+
constructor(route, _router, _repository, _libraryRouteService, _editedItemRepository, _dialogService, userLevelService) {
|
|
1406
714
|
this._router = _router;
|
|
1407
|
-
this.
|
|
1408
|
-
this._editService = _editService;
|
|
1409
|
-
this._editItemQuery = _editItemQuery;
|
|
1410
|
-
this._editItemService = _editItemService;
|
|
715
|
+
this._repository = _repository;
|
|
1411
716
|
this._libraryRouteService = _libraryRouteService;
|
|
717
|
+
this._editedItemRepository = _editedItemRepository;
|
|
1412
718
|
this._dialogService = _dialogService;
|
|
1413
719
|
this.itemId = route.snapshot.params['iid'];
|
|
1414
720
|
this.partId = route.snapshot.params['pid'];
|
|
@@ -1421,43 +727,35 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1421
727
|
}
|
|
1422
728
|
this.userLevel = userLevelService.getCurrentUserLevel();
|
|
1423
729
|
// layers part
|
|
1424
|
-
this.loading$ = this.
|
|
1425
|
-
this.
|
|
1426
|
-
this.baseText$ = this.
|
|
1427
|
-
this.locations$ = this.
|
|
1428
|
-
this.
|
|
1429
|
-
this.
|
|
1430
|
-
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1431
|
-
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1432
|
-
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
730
|
+
this.loading$ = this._repository.loading$;
|
|
731
|
+
this.saving$ = this._repository.saving$;
|
|
732
|
+
this.baseText$ = this._repository.baseText$;
|
|
733
|
+
this.locations$ = this._repository.locations$;
|
|
734
|
+
this.breakChance$ = this._repository.breakChance$;
|
|
735
|
+
this.layerHints$ = this._repository.layerHints$;
|
|
1433
736
|
// base text: connect rows to the base text part
|
|
1434
|
-
this.rows$ = this.
|
|
737
|
+
this.rows$ = this._repository.baseTextPart$.pipe(map((part) => part === null || part === void 0 ? void 0 : part.rows));
|
|
1435
738
|
}
|
|
1436
739
|
canDeactivate() {
|
|
1437
740
|
return true;
|
|
1438
741
|
}
|
|
1439
|
-
ensureItemLoaded(id) {
|
|
1440
|
-
if (!this._editItemQuery.hasItem(id)) {
|
|
1441
|
-
this._editItemService.load(id);
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
742
|
ngOnInit() {
|
|
1445
743
|
// when the base text changes, load all the fragments locations
|
|
1446
744
|
// and setup their UI state
|
|
1447
745
|
this.rows$.subscribe((rows) => {
|
|
1448
746
|
var _a;
|
|
1449
747
|
this.view = rows ? new TiledTextLayerView(rows) : undefined;
|
|
1450
|
-
(_a = this.view) === null || _a === void 0 ? void 0 : _a.setFragmentLocations(this.
|
|
748
|
+
(_a = this.view) === null || _a === void 0 ? void 0 : _a.setFragmentLocations(this._repository.getLocations());
|
|
1451
749
|
});
|
|
1452
750
|
// ensure that the container item is loaded
|
|
1453
|
-
this.ensureItemLoaded(this.itemId);
|
|
751
|
+
this._editedItemRepository.ensureItemLoaded(this.itemId);
|
|
1454
752
|
// load the layer part
|
|
1455
753
|
if (this.partId) {
|
|
1456
|
-
this.
|
|
754
|
+
this._repository.load(this.itemId, this.partId);
|
|
1457
755
|
}
|
|
1458
756
|
}
|
|
1459
757
|
refreshBreakChance() {
|
|
1460
|
-
this.
|
|
758
|
+
this._repository.refreshBreakChance();
|
|
1461
759
|
}
|
|
1462
760
|
onTileChecked(y, x, checked) {
|
|
1463
761
|
if (this.view) {
|
|
@@ -1508,7 +806,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1508
806
|
if (!lf || lf.fragment === -1) {
|
|
1509
807
|
return;
|
|
1510
808
|
}
|
|
1511
|
-
const locations = this.
|
|
809
|
+
const locations = this._repository.getLocations();
|
|
1512
810
|
const loc = locations[lf.fragment];
|
|
1513
811
|
this._dialogService
|
|
1514
812
|
.confirm('Delete Fragment', `Delete the fragment at ${loc}?`)
|
|
@@ -1516,31 +814,29 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1516
814
|
var _a;
|
|
1517
815
|
if (ok) {
|
|
1518
816
|
// find the fragment and remove it from the part
|
|
1519
|
-
const i = (_a = this.
|
|
1520
|
-
.getValue()
|
|
1521
|
-
.part) === null || _a === void 0 ? void 0 : _a.fragments.findIndex((p) => {
|
|
817
|
+
const i = (_a = this._repository.getPart()) === null || _a === void 0 ? void 0 : _a.fragments.findIndex((p) => {
|
|
1522
818
|
var _a;
|
|
1523
819
|
return (_a = TokenLocation.parse(p.location)) === null || _a === void 0 ? void 0 : _a.overlaps(loc);
|
|
1524
820
|
});
|
|
1525
821
|
if (i === -1) {
|
|
1526
822
|
return;
|
|
1527
823
|
}
|
|
1528
|
-
this.
|
|
824
|
+
this._repository.deleteFragment(loc);
|
|
1529
825
|
}
|
|
1530
826
|
});
|
|
1531
827
|
}
|
|
1532
828
|
deleteFragmentFromHint(hint) {
|
|
1533
829
|
const loc = TokenLocation.parse(hint.location);
|
|
1534
830
|
if (loc) {
|
|
1535
|
-
this.
|
|
831
|
+
this._repository.deleteFragment(loc);
|
|
1536
832
|
}
|
|
1537
833
|
}
|
|
1538
834
|
navigateToFragmentEditor(loc) {
|
|
1539
|
-
const part = this.
|
|
835
|
+
const part = this._repository.getPart();
|
|
1540
836
|
if (!part) {
|
|
1541
837
|
return;
|
|
1542
838
|
}
|
|
1543
|
-
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this.
|
|
839
|
+
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
|
|
1544
840
|
// navigate to the editor
|
|
1545
841
|
this._router.navigate([route], rid
|
|
1546
842
|
? {
|
|
@@ -1558,7 +854,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1558
854
|
if (!lf || lf.fragment === -1) {
|
|
1559
855
|
return;
|
|
1560
856
|
}
|
|
1561
|
-
const locations = this.
|
|
857
|
+
const locations = this._repository.getLocations();
|
|
1562
858
|
this.navigateToFragmentEditor(locations[lf.fragment].toString());
|
|
1563
859
|
}
|
|
1564
860
|
editFragmentFromHint(hint) {
|
|
@@ -1570,7 +866,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1570
866
|
!this.partId) {
|
|
1571
867
|
return;
|
|
1572
868
|
}
|
|
1573
|
-
this.
|
|
869
|
+
this._repository.applyLayerPatches(this.partId, [
|
|
1574
870
|
`mov ${hint.location} ${this.pickedLocation}`,
|
|
1575
871
|
]);
|
|
1576
872
|
}
|
|
@@ -1592,7 +888,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1592
888
|
if (!lf) {
|
|
1593
889
|
return;
|
|
1594
890
|
}
|
|
1595
|
-
const locations = this.
|
|
891
|
+
const locations = this._repository.getLocations();
|
|
1596
892
|
this.pickedLocation = (lf.fragment === -1 ? lf.location : locations[lf.fragment]).toString();
|
|
1597
893
|
}
|
|
1598
894
|
clearTileChecks() {
|
|
@@ -1604,98 +900,31 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1604
900
|
}
|
|
1605
901
|
applyLayerPatches(patches) {
|
|
1606
902
|
if (this.partId) {
|
|
1607
|
-
this.
|
|
903
|
+
this._repository.applyLayerPatches(this.partId, patches);
|
|
1608
904
|
}
|
|
1609
905
|
}
|
|
1610
906
|
close() {
|
|
1611
907
|
this._router.navigate(['/items', this.itemId]);
|
|
1612
908
|
}
|
|
1613
909
|
}
|
|
1614
|
-
TiledTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1615
|
-
TiledTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: TiledTextLayerPartFeatureComponent, selector: "cadmus-tiled-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card>\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n <div *ngIf=\"error$ | async as error\" class=\"error-message\">{{ error }}</div>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n fxFlex=\"none\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event.checked)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile()\"\r\n (keydown.control.arrowright)=\"selectNextTile()\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"\r\n (loading$ | async) ||\r\n (patchingLayer$ | async) ||\r\n (deletingFragment$ | async)\r\n ? true\r\n : false\r\n \"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i7$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { kind: "component", type: i8$1.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i8$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { kind: "directive", type: i8$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "directive", type: i8$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i8$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "component", type: i9.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i9.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i9.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i9.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i10.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i11.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i12.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i13.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i14.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i14.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i14.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i15.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: i6.TextTileComponent, selector: "cadmus-text-tile", inputs: ["selected", "checkable", "readonly", "color", "checked", "tile"], outputs: ["tileChange", "editData", "checkedChange"] }, { kind: "component", type: i7.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i7.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "pipe", type: i8.AsyncPipe, name: "async" }] });
|
|
1616
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
910
|
+
TiledTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TiledTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i4.EditedLayerRepository }, { token: i3$1.LibraryRouteService }, { token: i4$1.EditedItemRepository }, { token: i5$1.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
|
|
911
|
+
TiledTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: TiledTextLayerPartFeatureComponent, selector: "cadmus-tiled-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async) && !(saving$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n fxFlex=\"none\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event.checked)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile()\"\r\n (keydown.control.arrowright)=\"selectNextTile()\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i10.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i15.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i15.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i15.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i16.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: i5.TextTileComponent, selector: "cadmus-text-tile", inputs: ["selected", "checkable", "readonly", "color", "checked", "tile"], outputs: ["tileChange", "editData", "checkedChange"] }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }] });
|
|
912
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TiledTextLayerPartFeatureComponent, decorators: [{
|
|
1617
913
|
type: Component,
|
|
1618
|
-
args: [{ selector: 'cadmus-tiled-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card>\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n
|
|
1619
|
-
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type:
|
|
1620
|
-
|
|
1621
|
-
let EditTiledTextPartStore = class EditTiledTextPartStore extends Store {
|
|
1622
|
-
constructor() {
|
|
1623
|
-
super({});
|
|
1624
|
-
}
|
|
1625
|
-
setDirty(value) {
|
|
1626
|
-
this.update({ dirty: value });
|
|
1627
|
-
}
|
|
1628
|
-
setSaving(value) {
|
|
1629
|
-
this.update({ saving: value });
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
EditTiledTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1633
|
-
EditTiledTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartStore, providedIn: 'root' });
|
|
1634
|
-
EditTiledTextPartStore = __decorate([
|
|
1635
|
-
StoreConfig({ name: TILED_TEXT_PART_TYPEID })
|
|
1636
|
-
], EditTiledTextPartStore);
|
|
1637
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartStore, decorators: [{
|
|
1638
|
-
type: Injectable,
|
|
1639
|
-
args: [{ providedIn: 'root' }]
|
|
1640
|
-
}], ctorParameters: function () { return []; } });
|
|
1641
|
-
|
|
1642
|
-
class EditTiledTextPartQuery extends EditPartQueryBase {
|
|
1643
|
-
constructor(store) {
|
|
1644
|
-
super(store);
|
|
1645
|
-
}
|
|
1646
|
-
}
|
|
1647
|
-
EditTiledTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartQuery, deps: [{ token: EditTiledTextPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1648
|
-
EditTiledTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartQuery, providedIn: 'root' });
|
|
1649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartQuery, decorators: [{
|
|
1650
|
-
type: Injectable,
|
|
1651
|
-
args: [{ providedIn: 'root' }]
|
|
1652
|
-
}], ctorParameters: function () { return [{ type: EditTiledTextPartStore }]; } });
|
|
1653
|
-
|
|
1654
|
-
class EditTiledTextPartService extends EditPartServiceBase {
|
|
1655
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
1656
|
-
super(itemService, thesaurusService);
|
|
1657
|
-
this.store = editPartStore;
|
|
1658
|
-
}
|
|
1659
|
-
/**
|
|
1660
|
-
* Load the part, a base text part, from its item's ID.
|
|
1661
|
-
* This relies on the convention that every base text part should have
|
|
1662
|
-
* a "base-text" role ID.
|
|
1663
|
-
*
|
|
1664
|
-
* @param itemId The item's ID.
|
|
1665
|
-
* @param thesauriIds The optional thesauri IDs.
|
|
1666
|
-
*/
|
|
1667
|
-
loadBaseTextPart(itemId, thesauriIds) {
|
|
1668
|
-
// get the base text part ID from the item's ID
|
|
1669
|
-
this.itemService
|
|
1670
|
-
.getPartFromTypeAndRole(itemId, 'any', 'base-text')
|
|
1671
|
-
.subscribe((part) => {
|
|
1672
|
-
this.load(part.id, thesauriIds);
|
|
1673
|
-
}, (error) => {
|
|
1674
|
-
this.store.setError('Error retrieving base text part of item ' + itemId);
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
}
|
|
1678
|
-
EditTiledTextPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartService, deps: [{ token: EditTiledTextPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1679
|
-
EditTiledTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartService, providedIn: 'root' });
|
|
1680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartService, decorators: [{
|
|
1681
|
-
type: Injectable,
|
|
1682
|
-
args: [{ providedIn: 'root' }]
|
|
1683
|
-
}], ctorParameters: function () { return [{ type: EditTiledTextPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
914
|
+
args: [{ selector: 'cadmus-tiled-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async) && !(saving$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n fxLayout=\"row\"\r\n fxLayoutAlign=\"start center\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n fxFlex=\"none\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event.checked)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile()\"\r\n (keydown.control.arrowright)=\"selectNextTile()\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"] }]
|
|
915
|
+
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i4.EditedLayerRepository }, { type: i3$1.LibraryRouteService }, { type: i4$1.EditedItemRepository }, { type: i5$1.DialogService }, { type: i3.UserLevelService }]; } });
|
|
1684
916
|
|
|
1685
917
|
class TiledTextPartFeatureComponent extends EditPartFeatureBase {
|
|
1686
|
-
constructor(router, route, snackbar,
|
|
1687
|
-
super(router, route, snackbar,
|
|
1688
|
-
}
|
|
1689
|
-
ngOnInit() {
|
|
1690
|
-
this.initEditor();
|
|
918
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
919
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
1691
920
|
}
|
|
1692
921
|
}
|
|
1693
|
-
TiledTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1694
|
-
TiledTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
922
|
+
TiledTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TiledTextPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
923
|
+
TiledTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: TiledTextPartFeatureComponent, selector: "cadmus-tiled-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.TiledTextPartComponent, selector: "cadmus-tiled-text-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TiledTextPartFeatureComponent, decorators: [{
|
|
1696
925
|
type: Component,
|
|
1697
|
-
args: [{ selector: 'cadmus-tiled-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [
|
|
1698
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
926
|
+
args: [{ selector: 'cadmus-tiled-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n" }]
|
|
927
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
1699
928
|
|
|
1700
929
|
/**
|
|
1701
930
|
* Token-based text layer part feature editor. This is a special type of editor,
|
|
@@ -1705,14 +934,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
1705
934
|
* no save capability: the single fragments are edited and saved as needed.
|
|
1706
935
|
*/
|
|
1707
936
|
class TokenTextLayerPartFeatureComponent {
|
|
1708
|
-
constructor(route, _router,
|
|
937
|
+
constructor(route, _router, _repository, _textLayerService, _libraryRouteService, _editedItemRepository, _dialogService, userLevelService) {
|
|
1709
938
|
this._router = _router;
|
|
1710
|
-
this.
|
|
1711
|
-
this._editService = _editService;
|
|
939
|
+
this._repository = _repository;
|
|
1712
940
|
this._textLayerService = _textLayerService;
|
|
1713
|
-
this._editItemQuery = _editItemQuery;
|
|
1714
|
-
this._editItemService = _editItemService;
|
|
1715
941
|
this._libraryRouteService = _libraryRouteService;
|
|
942
|
+
this._editedItemRepository = _editedItemRepository;
|
|
1716
943
|
this._dialogService = _dialogService;
|
|
1717
944
|
this.textSize = 14;
|
|
1718
945
|
this.itemId = route.snapshot.params['iid'];
|
|
@@ -1725,24 +952,16 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1725
952
|
this.roleId = undefined;
|
|
1726
953
|
}
|
|
1727
954
|
this.userLevel = userLevelService.getCurrentUserLevel();
|
|
1728
|
-
this.loading$ = this.
|
|
1729
|
-
this.
|
|
1730
|
-
this.baseText$ = this.
|
|
1731
|
-
this.locations$ = this.
|
|
1732
|
-
this.
|
|
1733
|
-
this.
|
|
1734
|
-
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1735
|
-
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1736
|
-
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
955
|
+
this.loading$ = this._repository.loading$;
|
|
956
|
+
this.saving$ = this._repository.saving$;
|
|
957
|
+
this.baseText$ = this._repository.baseText$;
|
|
958
|
+
this.locations$ = this._repository.locations$;
|
|
959
|
+
this.breakChance$ = this._repository.breakChance$;
|
|
960
|
+
this.layerHints$ = this._repository.layerHints$;
|
|
1737
961
|
}
|
|
1738
962
|
canDeactivate() {
|
|
1739
963
|
return true;
|
|
1740
964
|
}
|
|
1741
|
-
ensureItemLoaded(id) {
|
|
1742
|
-
if (!this._editItemQuery.hasItem(id)) {
|
|
1743
|
-
this._editItemService.load(id);
|
|
1744
|
-
}
|
|
1745
|
-
}
|
|
1746
965
|
makeLarger() {
|
|
1747
966
|
const size = this.textSize + 2;
|
|
1748
967
|
if (size > 24) {
|
|
@@ -1763,10 +982,10 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1763
982
|
// this.loadAllFragmentLocations();
|
|
1764
983
|
// });
|
|
1765
984
|
// ensure the container item is loaded
|
|
1766
|
-
this.ensureItemLoaded(this.itemId);
|
|
985
|
+
this._editedItemRepository.ensureItemLoaded(this.itemId);
|
|
1767
986
|
// load the layer part data
|
|
1768
987
|
if (this.partId) {
|
|
1769
|
-
this.
|
|
988
|
+
this._repository.load(this.itemId, this.partId);
|
|
1770
989
|
}
|
|
1771
990
|
}
|
|
1772
991
|
deleteFragment() {
|
|
@@ -1781,36 +1000,35 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1781
1000
|
this._dialogService
|
|
1782
1001
|
.confirm('Delete Fragment', `Delete the fragment at ${location}?`)
|
|
1783
1002
|
.subscribe((ok) => {
|
|
1003
|
+
var _a;
|
|
1784
1004
|
if (ok) {
|
|
1785
1005
|
// find the fragment and remove it from the part
|
|
1786
|
-
const i = this.
|
|
1787
|
-
.getValue()
|
|
1788
|
-
.part.fragments.findIndex((p) => {
|
|
1006
|
+
const i = (_a = this._repository.getPart()) === null || _a === void 0 ? void 0 : _a.fragments.findIndex((p) => {
|
|
1789
1007
|
var _a;
|
|
1790
1008
|
return (_a = TokenLocation.parse(p.location)) === null || _a === void 0 ? void 0 : _a.overlaps(location);
|
|
1791
1009
|
});
|
|
1792
1010
|
if (i === -1) {
|
|
1793
1011
|
return;
|
|
1794
1012
|
}
|
|
1795
|
-
this.
|
|
1013
|
+
this._repository.deleteFragment(location);
|
|
1796
1014
|
}
|
|
1797
1015
|
});
|
|
1798
1016
|
}
|
|
1799
1017
|
deleteFragmentFromHint(hint) {
|
|
1800
1018
|
const loc = TokenLocation.parse(hint.location);
|
|
1801
1019
|
if (loc) {
|
|
1802
|
-
this.
|
|
1020
|
+
this._repository.deleteFragment(loc);
|
|
1803
1021
|
}
|
|
1804
1022
|
}
|
|
1805
1023
|
refreshBreakChance() {
|
|
1806
|
-
this.
|
|
1024
|
+
this._repository.refreshBreakChance();
|
|
1807
1025
|
}
|
|
1808
1026
|
navigateToFragmentEditor(loc) {
|
|
1809
|
-
const part = this.
|
|
1027
|
+
const part = this._repository.getPart();
|
|
1810
1028
|
if (!part) {
|
|
1811
1029
|
return;
|
|
1812
1030
|
}
|
|
1813
|
-
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this.
|
|
1031
|
+
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
|
|
1814
1032
|
// navigate to the editor
|
|
1815
1033
|
this._router.navigate([route], rid
|
|
1816
1034
|
? {
|
|
@@ -1834,12 +1052,11 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1834
1052
|
this.navigateToFragmentEditor(hint.location);
|
|
1835
1053
|
}
|
|
1836
1054
|
addFragment() {
|
|
1837
|
-
var _a;
|
|
1838
1055
|
const range = this._textLayerService.getSelectedRange();
|
|
1839
1056
|
if (!range) {
|
|
1840
1057
|
return;
|
|
1841
1058
|
}
|
|
1842
|
-
const location = this._textLayerService.getSelectedLocationForNew(range,
|
|
1059
|
+
const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
|
|
1843
1060
|
if (location) {
|
|
1844
1061
|
this.navigateToFragmentEditor(location.toString());
|
|
1845
1062
|
}
|
|
@@ -1850,22 +1067,21 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1850
1067
|
!this.partId) {
|
|
1851
1068
|
return;
|
|
1852
1069
|
}
|
|
1853
|
-
this.
|
|
1070
|
+
this._repository.applyLayerPatches(this.partId, [
|
|
1854
1071
|
`mov ${hint.location} ${this.pickedLocation}`,
|
|
1855
1072
|
]);
|
|
1856
1073
|
}
|
|
1857
1074
|
applyLayerPatches(patches) {
|
|
1858
1075
|
if (this.partId) {
|
|
1859
|
-
this.
|
|
1076
|
+
this._repository.applyLayerPatches(this.partId, patches);
|
|
1860
1077
|
}
|
|
1861
1078
|
}
|
|
1862
1079
|
pickLocation() {
|
|
1863
|
-
var _a;
|
|
1864
1080
|
const range = this._textLayerService.getSelectedRange();
|
|
1865
1081
|
if (!range) {
|
|
1866
1082
|
return;
|
|
1867
1083
|
}
|
|
1868
|
-
const location = this._textLayerService.getSelectedLocationForNew(range,
|
|
1084
|
+
const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
|
|
1869
1085
|
if (location) {
|
|
1870
1086
|
this.pickedLocation = location.toString();
|
|
1871
1087
|
}
|
|
@@ -1874,73 +1090,24 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1874
1090
|
this._router.navigate(['/items', this.itemId]);
|
|
1875
1091
|
}
|
|
1876
1092
|
}
|
|
1877
|
-
TokenTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1878
|
-
TokenTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1879
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1093
|
+
TokenTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TokenTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i4.EditedLayerRepository }, { token: i3$1.TextLayerService }, { token: i3$1.LibraryRouteService }, { token: i4$1.EditedItemRepository }, { token: i5$1.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1094
|
+
TokenTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: TokenTextLayerPartFeatureComponent, selector: "cadmus-token-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n\r\n <div [style.font-size]=\"textSize + 'px'\">\r\n <cadmus-decorated-token-text\r\n *ngIf=\"baseText$ | async as baseText\"\r\n [baseText]=\"baseText\"\r\n [locations]=\"(locations$ | async) || []\"\r\n ></cadmus-decorated-token-text>\r\n </div>\r\n </mat-card-content>\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"((loading$ | async) || (saving$ | async)) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i10.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: i15.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i15.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i15.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i16.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i16.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }] });
|
|
1095
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TokenTextLayerPartFeatureComponent, decorators: [{
|
|
1880
1096
|
type: Component,
|
|
1881
|
-
args: [{ selector: 'cadmus-token-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card>\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n
|
|
1882
|
-
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type:
|
|
1883
|
-
|
|
1884
|
-
let EditTokenTextPartStore = class EditTokenTextPartStore extends Store {
|
|
1885
|
-
constructor() {
|
|
1886
|
-
super({});
|
|
1887
|
-
}
|
|
1888
|
-
setDirty(value) {
|
|
1889
|
-
this.update({ dirty: value });
|
|
1890
|
-
}
|
|
1891
|
-
setSaving(value) {
|
|
1892
|
-
this.update({ saving: value });
|
|
1893
|
-
}
|
|
1894
|
-
};
|
|
1895
|
-
EditTokenTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1896
|
-
EditTokenTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartStore, providedIn: 'root' });
|
|
1897
|
-
EditTokenTextPartStore = __decorate([
|
|
1898
|
-
StoreConfig({ name: TOKEN_TEXT_PART_TYPEID })
|
|
1899
|
-
], EditTokenTextPartStore);
|
|
1900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartStore, decorators: [{
|
|
1901
|
-
type: Injectable,
|
|
1902
|
-
args: [{ providedIn: 'root' }]
|
|
1903
|
-
}], ctorParameters: function () { return []; } });
|
|
1904
|
-
|
|
1905
|
-
class EditTokenTextPartQuery extends EditPartQueryBase {
|
|
1906
|
-
constructor(store) {
|
|
1907
|
-
super(store);
|
|
1908
|
-
}
|
|
1909
|
-
}
|
|
1910
|
-
EditTokenTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartQuery, deps: [{ token: EditTokenTextPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1911
|
-
EditTokenTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartQuery, providedIn: 'root' });
|
|
1912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartQuery, decorators: [{
|
|
1913
|
-
type: Injectable,
|
|
1914
|
-
args: [{ providedIn: 'root' }]
|
|
1915
|
-
}], ctorParameters: function () { return [{ type: EditTokenTextPartStore }]; } });
|
|
1916
|
-
|
|
1917
|
-
class EditTokenTextPartService extends EditPartServiceBase {
|
|
1918
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
1919
|
-
super(itemService, thesaurusService);
|
|
1920
|
-
this.store = editPartStore;
|
|
1921
|
-
}
|
|
1922
|
-
}
|
|
1923
|
-
EditTokenTextPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartService, deps: [{ token: EditTokenTextPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1924
|
-
EditTokenTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartService, providedIn: 'root' });
|
|
1925
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartService, decorators: [{
|
|
1926
|
-
type: Injectable,
|
|
1927
|
-
args: [{ providedIn: 'root' }]
|
|
1928
|
-
}], ctorParameters: function () { return [{ type: EditTokenTextPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
1097
|
+
args: [{ selector: 'cadmus-token-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <div *ngIf=\"loading$ | async\" fxFlex fxLayoutAlign=\"center center\">\r\n <mat-spinner [diameter]=\"48\" [strokeWidth]=\"4\"></mat-spinner>\r\n </div>\r\n\r\n <div [style.font-size]=\"textSize + 'px'\">\r\n <cadmus-decorated-token-text\r\n *ngIf=\"baseText$ | async as baseText\"\r\n [baseText]=\"baseText\"\r\n [locations]=\"(locations$ | async) || []\"\r\n ></cadmus-decorated-token-text>\r\n </div>\r\n </mat-card-content>\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"((loading$ | async) || (saving$ | async)) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n" }]
|
|
1098
|
+
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i4.EditedLayerRepository }, { type: i3$1.TextLayerService }, { type: i3$1.LibraryRouteService }, { type: i4$1.EditedItemRepository }, { type: i5$1.DialogService }, { type: i3.UserLevelService }]; } });
|
|
1929
1099
|
|
|
1930
1100
|
class TokenTextPartFeatureComponent extends EditPartFeatureBase {
|
|
1931
|
-
constructor(router, route, snackbar,
|
|
1932
|
-
super(router, route, snackbar,
|
|
1933
|
-
}
|
|
1934
|
-
ngOnInit() {
|
|
1935
|
-
this.initEditor();
|
|
1101
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
1102
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
1936
1103
|
}
|
|
1937
1104
|
}
|
|
1938
|
-
TokenTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1939
|
-
TokenTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1940
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1105
|
+
TokenTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TokenTextPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1106
|
+
TokenTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: TokenTextPartFeatureComponent, selector: "cadmus-token-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-token-text-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.TokenTextPartComponent, selector: "cadmus-token-text-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
|
|
1107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TokenTextPartFeatureComponent, decorators: [{
|
|
1941
1108
|
type: Component,
|
|
1942
|
-
args: [{ selector: 'cadmus-token-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [
|
|
1943
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
1109
|
+
args: [{ selector: 'cadmus-token-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-token-text-part>\r\n" }]
|
|
1110
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
1944
1111
|
|
|
1945
1112
|
// https://github.com/ng-packagr/ng-packagr/issues/778
|
|
1946
1113
|
const RouterModuleForChild = RouterModule.forChild([
|
|
@@ -2061,8 +1228,8 @@ const RouterModuleForChild = RouterModule.forChild([
|
|
|
2061
1228
|
]);
|
|
2062
1229
|
class CadmusPartGeneralPgModule {
|
|
2063
1230
|
}
|
|
2064
|
-
CadmusPartGeneralPgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2065
|
-
CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1231
|
+
CadmusPartGeneralPgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1232
|
+
CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, declarations: [BibliographyPartFeatureComponent,
|
|
2066
1233
|
CategoriesPartFeatureComponent,
|
|
2067
1234
|
ChronologyFragmentFeatureComponent,
|
|
2068
1235
|
ChronotopesPartFeatureComponent,
|
|
@@ -2095,14 +1262,15 @@ CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0
|
|
|
2095
1262
|
MatTooltipModule,
|
|
2096
1263
|
MatToolbarModule,
|
|
2097
1264
|
FlexLayoutModule,
|
|
1265
|
+
// vendors
|
|
1266
|
+
NgToolsModule,
|
|
1267
|
+
NgMatToolsModule,
|
|
2098
1268
|
// cadmus
|
|
2099
1269
|
CadmusCoreModule,
|
|
2100
1270
|
CadmusUiModule,
|
|
2101
1271
|
CadmusPartGeneralUiModule,
|
|
2102
1272
|
CadmusStateModule,
|
|
2103
|
-
CadmusUiPgModule,
|
|
2104
|
-
NgToolsModule,
|
|
2105
|
-
NgMatToolsModule], exports: [BibliographyPartFeatureComponent,
|
|
1273
|
+
CadmusUiPgModule], exports: [BibliographyPartFeatureComponent,
|
|
2106
1274
|
CategoriesPartFeatureComponent,
|
|
2107
1275
|
ChronologyFragmentFeatureComponent,
|
|
2108
1276
|
ChronotopesPartFeatureComponent,
|
|
@@ -2121,7 +1289,7 @@ CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0
|
|
|
2121
1289
|
TiledTextPartFeatureComponent,
|
|
2122
1290
|
TokenTextLayerPartFeatureComponent,
|
|
2123
1291
|
TokenTextPartFeatureComponent] });
|
|
2124
|
-
CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1292
|
+
CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, imports: [CommonModule,
|
|
2125
1293
|
FormsModule,
|
|
2126
1294
|
ReactiveFormsModule,
|
|
2127
1295
|
RouterModuleForChild,
|
|
@@ -2137,15 +1305,16 @@ CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
2137
1305
|
MatTooltipModule,
|
|
2138
1306
|
MatToolbarModule,
|
|
2139
1307
|
FlexLayoutModule,
|
|
1308
|
+
// vendors
|
|
1309
|
+
NgToolsModule,
|
|
1310
|
+
NgMatToolsModule,
|
|
2140
1311
|
// cadmus
|
|
2141
1312
|
CadmusCoreModule,
|
|
2142
1313
|
CadmusUiModule,
|
|
2143
1314
|
CadmusPartGeneralUiModule,
|
|
2144
1315
|
CadmusStateModule,
|
|
2145
|
-
CadmusUiPgModule
|
|
2146
|
-
|
|
2147
|
-
NgMatToolsModule] });
|
|
2148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CadmusPartGeneralPgModule, decorators: [{
|
|
1316
|
+
CadmusUiPgModule] });
|
|
1317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, decorators: [{
|
|
2149
1318
|
type: NgModule,
|
|
2150
1319
|
args: [{
|
|
2151
1320
|
imports: [
|
|
@@ -2165,14 +1334,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
2165
1334
|
MatTooltipModule,
|
|
2166
1335
|
MatToolbarModule,
|
|
2167
1336
|
FlexLayoutModule,
|
|
1337
|
+
// vendors
|
|
1338
|
+
NgToolsModule,
|
|
1339
|
+
NgMatToolsModule,
|
|
2168
1340
|
// cadmus
|
|
2169
1341
|
CadmusCoreModule,
|
|
2170
1342
|
CadmusUiModule,
|
|
2171
1343
|
CadmusPartGeneralUiModule,
|
|
2172
1344
|
CadmusStateModule,
|
|
2173
1345
|
CadmusUiPgModule,
|
|
2174
|
-
NgToolsModule,
|
|
2175
|
-
NgMatToolsModule,
|
|
2176
1346
|
],
|
|
2177
1347
|
declarations: [
|
|
2178
1348
|
BibliographyPartFeatureComponent,
|
|
@@ -2229,3 +1399,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
2229
1399
|
|
|
2230
1400
|
export { BibliographyPartFeatureComponent, CadmusPartGeneralPgModule, CategoriesPartFeatureComponent, ChronologyFragmentFeatureComponent, ChronotopesPartFeatureComponent, CommentFragmentFeatureComponent, CommentPartFeatureComponent, DocReferencesPartFeatureComponent, ExternalIdsPartFeatureComponent, HistoricalDatePartFeatureComponent, HistoricalEventsPartFeatureComponent, IndexKeywordsPartFeatureComponent, KeywordsPartFeatureComponent, MetadataPartFeatureComponent, NamesPartFeatureComponent, NotePartFeatureComponent, RouterModuleForChild, TiledTextLayerPartFeatureComponent, TiledTextPartFeatureComponent, TokenTextLayerPartFeatureComponent, TokenTextPartFeatureComponent };
|
|
2231
1401
|
//# sourceMappingURL=myrmidon-cadmus-part-general-pg.mjs.map
|
|
1402
|
+
//# sourceMappingURL=myrmidon-cadmus-part-general-pg.mjs.map
|