@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,42 +727,34 @@ 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?.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
|
this.view = rows ? new TiledTextLayerView(rows) : undefined;
|
|
1449
|
-
this.view?.setFragmentLocations(this.
|
|
747
|
+
this.view?.setFragmentLocations(this._repository.getLocations());
|
|
1450
748
|
});
|
|
1451
749
|
// ensure that the container item is loaded
|
|
1452
|
-
this.ensureItemLoaded(this.itemId);
|
|
750
|
+
this._editedItemRepository.ensureItemLoaded(this.itemId);
|
|
1453
751
|
// load the layer part
|
|
1454
752
|
if (this.partId) {
|
|
1455
|
-
this.
|
|
753
|
+
this._repository.load(this.itemId, this.partId);
|
|
1456
754
|
}
|
|
1457
755
|
}
|
|
1458
756
|
refreshBreakChance() {
|
|
1459
|
-
this.
|
|
757
|
+
this._repository.refreshBreakChance();
|
|
1460
758
|
}
|
|
1461
759
|
onTileChecked(y, x, checked) {
|
|
1462
760
|
if (this.view) {
|
|
@@ -1507,37 +805,35 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1507
805
|
if (!lf || lf.fragment === -1) {
|
|
1508
806
|
return;
|
|
1509
807
|
}
|
|
1510
|
-
const locations = this.
|
|
808
|
+
const locations = this._repository.getLocations();
|
|
1511
809
|
const loc = locations[lf.fragment];
|
|
1512
810
|
this._dialogService
|
|
1513
811
|
.confirm('Delete Fragment', `Delete the fragment at ${loc}?`)
|
|
1514
812
|
.subscribe((ok) => {
|
|
1515
813
|
if (ok) {
|
|
1516
814
|
// find the fragment and remove it from the part
|
|
1517
|
-
const i = this.
|
|
1518
|
-
.getValue()
|
|
1519
|
-
.part?.fragments.findIndex((p) => {
|
|
815
|
+
const i = this._repository.getPart()?.fragments.findIndex((p) => {
|
|
1520
816
|
return TokenLocation.parse(p.location)?.overlaps(loc);
|
|
1521
817
|
});
|
|
1522
818
|
if (i === -1) {
|
|
1523
819
|
return;
|
|
1524
820
|
}
|
|
1525
|
-
this.
|
|
821
|
+
this._repository.deleteFragment(loc);
|
|
1526
822
|
}
|
|
1527
823
|
});
|
|
1528
824
|
}
|
|
1529
825
|
deleteFragmentFromHint(hint) {
|
|
1530
826
|
const loc = TokenLocation.parse(hint.location);
|
|
1531
827
|
if (loc) {
|
|
1532
|
-
this.
|
|
828
|
+
this._repository.deleteFragment(loc);
|
|
1533
829
|
}
|
|
1534
830
|
}
|
|
1535
831
|
navigateToFragmentEditor(loc) {
|
|
1536
|
-
const part = this.
|
|
832
|
+
const part = this._repository.getPart();
|
|
1537
833
|
if (!part) {
|
|
1538
834
|
return;
|
|
1539
835
|
}
|
|
1540
|
-
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this.
|
|
836
|
+
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
|
|
1541
837
|
// navigate to the editor
|
|
1542
838
|
this._router.navigate([route], rid
|
|
1543
839
|
? {
|
|
@@ -1555,7 +851,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1555
851
|
if (!lf || lf.fragment === -1) {
|
|
1556
852
|
return;
|
|
1557
853
|
}
|
|
1558
|
-
const locations = this.
|
|
854
|
+
const locations = this._repository.getLocations();
|
|
1559
855
|
this.navigateToFragmentEditor(locations[lf.fragment].toString());
|
|
1560
856
|
}
|
|
1561
857
|
editFragmentFromHint(hint) {
|
|
@@ -1567,7 +863,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1567
863
|
!this.partId) {
|
|
1568
864
|
return;
|
|
1569
865
|
}
|
|
1570
|
-
this.
|
|
866
|
+
this._repository.applyLayerPatches(this.partId, [
|
|
1571
867
|
`mov ${hint.location} ${this.pickedLocation}`,
|
|
1572
868
|
]);
|
|
1573
869
|
}
|
|
@@ -1589,7 +885,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1589
885
|
if (!lf) {
|
|
1590
886
|
return;
|
|
1591
887
|
}
|
|
1592
|
-
const locations = this.
|
|
888
|
+
const locations = this._repository.getLocations();
|
|
1593
889
|
this.pickedLocation = (lf.fragment === -1 ? lf.location : locations[lf.fragment]).toString();
|
|
1594
890
|
}
|
|
1595
891
|
clearTileChecks() {
|
|
@@ -1601,98 +897,31 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1601
897
|
}
|
|
1602
898
|
applyLayerPatches(patches) {
|
|
1603
899
|
if (this.partId) {
|
|
1604
|
-
this.
|
|
900
|
+
this._repository.applyLayerPatches(this.partId, patches);
|
|
1605
901
|
}
|
|
1606
902
|
}
|
|
1607
903
|
close() {
|
|
1608
904
|
this._router.navigate(['/items', this.itemId]);
|
|
1609
905
|
}
|
|
1610
906
|
}
|
|
1611
|
-
TiledTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1612
|
-
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" }] });
|
|
1613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
907
|
+
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 });
|
|
908
|
+
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" }] });
|
|
909
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TiledTextLayerPartFeatureComponent, decorators: [{
|
|
1614
910
|
type: Component,
|
|
1615
|
-
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
|
|
1616
|
-
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type:
|
|
1617
|
-
|
|
1618
|
-
let EditTiledTextPartStore = class EditTiledTextPartStore extends Store {
|
|
1619
|
-
constructor() {
|
|
1620
|
-
super({});
|
|
1621
|
-
}
|
|
1622
|
-
setDirty(value) {
|
|
1623
|
-
this.update({ dirty: value });
|
|
1624
|
-
}
|
|
1625
|
-
setSaving(value) {
|
|
1626
|
-
this.update({ saving: value });
|
|
1627
|
-
}
|
|
1628
|
-
};
|
|
1629
|
-
EditTiledTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1630
|
-
EditTiledTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartStore, providedIn: 'root' });
|
|
1631
|
-
EditTiledTextPartStore = __decorate([
|
|
1632
|
-
StoreConfig({ name: TILED_TEXT_PART_TYPEID })
|
|
1633
|
-
], EditTiledTextPartStore);
|
|
1634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartStore, decorators: [{
|
|
1635
|
-
type: Injectable,
|
|
1636
|
-
args: [{ providedIn: 'root' }]
|
|
1637
|
-
}], ctorParameters: function () { return []; } });
|
|
1638
|
-
|
|
1639
|
-
class EditTiledTextPartQuery extends EditPartQueryBase {
|
|
1640
|
-
constructor(store) {
|
|
1641
|
-
super(store);
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
EditTiledTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartQuery, deps: [{ token: EditTiledTextPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1645
|
-
EditTiledTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartQuery, providedIn: 'root' });
|
|
1646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartQuery, decorators: [{
|
|
1647
|
-
type: Injectable,
|
|
1648
|
-
args: [{ providedIn: 'root' }]
|
|
1649
|
-
}], ctorParameters: function () { return [{ type: EditTiledTextPartStore }]; } });
|
|
1650
|
-
|
|
1651
|
-
class EditTiledTextPartService extends EditPartServiceBase {
|
|
1652
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
1653
|
-
super(itemService, thesaurusService);
|
|
1654
|
-
this.store = editPartStore;
|
|
1655
|
-
}
|
|
1656
|
-
/**
|
|
1657
|
-
* Load the part, a base text part, from its item's ID.
|
|
1658
|
-
* This relies on the convention that every base text part should have
|
|
1659
|
-
* a "base-text" role ID.
|
|
1660
|
-
*
|
|
1661
|
-
* @param itemId The item's ID.
|
|
1662
|
-
* @param thesauriIds The optional thesauri IDs.
|
|
1663
|
-
*/
|
|
1664
|
-
loadBaseTextPart(itemId, thesauriIds) {
|
|
1665
|
-
// get the base text part ID from the item's ID
|
|
1666
|
-
this.itemService
|
|
1667
|
-
.getPartFromTypeAndRole(itemId, 'any', 'base-text')
|
|
1668
|
-
.subscribe((part) => {
|
|
1669
|
-
this.load(part.id, thesauriIds);
|
|
1670
|
-
}, (error) => {
|
|
1671
|
-
this.store.setError('Error retrieving base text part of item ' + itemId);
|
|
1672
|
-
});
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
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 });
|
|
1676
|
-
EditTiledTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartService, providedIn: 'root' });
|
|
1677
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTiledTextPartService, decorators: [{
|
|
1678
|
-
type: Injectable,
|
|
1679
|
-
args: [{ providedIn: 'root' }]
|
|
1680
|
-
}], ctorParameters: function () { return [{ type: EditTiledTextPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
911
|
+
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"] }]
|
|
912
|
+
}], 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 }]; } });
|
|
1681
913
|
|
|
1682
914
|
class TiledTextPartFeatureComponent extends EditPartFeatureBase {
|
|
1683
|
-
constructor(router, route, snackbar,
|
|
1684
|
-
super(router, route, snackbar,
|
|
1685
|
-
}
|
|
1686
|
-
ngOnInit() {
|
|
1687
|
-
this.initEditor();
|
|
915
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
916
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
1688
917
|
}
|
|
1689
918
|
}
|
|
1690
|
-
TiledTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1691
|
-
TiledTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
919
|
+
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 });
|
|
920
|
+
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" }] });
|
|
921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TiledTextPartFeatureComponent, decorators: [{
|
|
1693
922
|
type: Component,
|
|
1694
|
-
args: [{ selector: 'cadmus-tiled-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [
|
|
1695
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
923
|
+
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" }]
|
|
924
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
1696
925
|
|
|
1697
926
|
/**
|
|
1698
927
|
* Token-based text layer part feature editor. This is a special type of editor,
|
|
@@ -1702,14 +931,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
1702
931
|
* no save capability: the single fragments are edited and saved as needed.
|
|
1703
932
|
*/
|
|
1704
933
|
class TokenTextLayerPartFeatureComponent {
|
|
1705
|
-
constructor(route, _router,
|
|
934
|
+
constructor(route, _router, _repository, _textLayerService, _libraryRouteService, _editedItemRepository, _dialogService, userLevelService) {
|
|
1706
935
|
this._router = _router;
|
|
1707
|
-
this.
|
|
1708
|
-
this._editService = _editService;
|
|
936
|
+
this._repository = _repository;
|
|
1709
937
|
this._textLayerService = _textLayerService;
|
|
1710
|
-
this._editItemQuery = _editItemQuery;
|
|
1711
|
-
this._editItemService = _editItemService;
|
|
1712
938
|
this._libraryRouteService = _libraryRouteService;
|
|
939
|
+
this._editedItemRepository = _editedItemRepository;
|
|
1713
940
|
this._dialogService = _dialogService;
|
|
1714
941
|
this.textSize = 14;
|
|
1715
942
|
this.itemId = route.snapshot.params['iid'];
|
|
@@ -1722,24 +949,16 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1722
949
|
this.roleId = undefined;
|
|
1723
950
|
}
|
|
1724
951
|
this.userLevel = userLevelService.getCurrentUserLevel();
|
|
1725
|
-
this.loading$ = this.
|
|
1726
|
-
this.
|
|
1727
|
-
this.baseText$ = this.
|
|
1728
|
-
this.locations$ = this.
|
|
1729
|
-
this.
|
|
1730
|
-
this.
|
|
1731
|
-
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1732
|
-
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1733
|
-
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
952
|
+
this.loading$ = this._repository.loading$;
|
|
953
|
+
this.saving$ = this._repository.saving$;
|
|
954
|
+
this.baseText$ = this._repository.baseText$;
|
|
955
|
+
this.locations$ = this._repository.locations$;
|
|
956
|
+
this.breakChance$ = this._repository.breakChance$;
|
|
957
|
+
this.layerHints$ = this._repository.layerHints$;
|
|
1734
958
|
}
|
|
1735
959
|
canDeactivate() {
|
|
1736
960
|
return true;
|
|
1737
961
|
}
|
|
1738
|
-
ensureItemLoaded(id) {
|
|
1739
|
-
if (!this._editItemQuery.hasItem(id)) {
|
|
1740
|
-
this._editItemService.load(id);
|
|
1741
|
-
}
|
|
1742
|
-
}
|
|
1743
962
|
makeLarger() {
|
|
1744
963
|
const size = this.textSize + 2;
|
|
1745
964
|
if (size > 24) {
|
|
@@ -1760,10 +979,10 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1760
979
|
// this.loadAllFragmentLocations();
|
|
1761
980
|
// });
|
|
1762
981
|
// ensure the container item is loaded
|
|
1763
|
-
this.ensureItemLoaded(this.itemId);
|
|
982
|
+
this._editedItemRepository.ensureItemLoaded(this.itemId);
|
|
1764
983
|
// load the layer part data
|
|
1765
984
|
if (this.partId) {
|
|
1766
|
-
this.
|
|
985
|
+
this._repository.load(this.itemId, this.partId);
|
|
1767
986
|
}
|
|
1768
987
|
}
|
|
1769
988
|
deleteFragment() {
|
|
@@ -1780,33 +999,31 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1780
999
|
.subscribe((ok) => {
|
|
1781
1000
|
if (ok) {
|
|
1782
1001
|
// find the fragment and remove it from the part
|
|
1783
|
-
const i = this.
|
|
1784
|
-
.getValue()
|
|
1785
|
-
.part.fragments.findIndex((p) => {
|
|
1002
|
+
const i = this._repository.getPart()?.fragments.findIndex((p) => {
|
|
1786
1003
|
return TokenLocation.parse(p.location)?.overlaps(location);
|
|
1787
1004
|
});
|
|
1788
1005
|
if (i === -1) {
|
|
1789
1006
|
return;
|
|
1790
1007
|
}
|
|
1791
|
-
this.
|
|
1008
|
+
this._repository.deleteFragment(location);
|
|
1792
1009
|
}
|
|
1793
1010
|
});
|
|
1794
1011
|
}
|
|
1795
1012
|
deleteFragmentFromHint(hint) {
|
|
1796
1013
|
const loc = TokenLocation.parse(hint.location);
|
|
1797
1014
|
if (loc) {
|
|
1798
|
-
this.
|
|
1015
|
+
this._repository.deleteFragment(loc);
|
|
1799
1016
|
}
|
|
1800
1017
|
}
|
|
1801
1018
|
refreshBreakChance() {
|
|
1802
|
-
this.
|
|
1019
|
+
this._repository.refreshBreakChance();
|
|
1803
1020
|
}
|
|
1804
1021
|
navigateToFragmentEditor(loc) {
|
|
1805
|
-
const part = this.
|
|
1022
|
+
const part = this._repository.getPart();
|
|
1806
1023
|
if (!part) {
|
|
1807
1024
|
return;
|
|
1808
1025
|
}
|
|
1809
|
-
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this.
|
|
1026
|
+
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
|
|
1810
1027
|
// navigate to the editor
|
|
1811
1028
|
this._router.navigate([route], rid
|
|
1812
1029
|
? {
|
|
@@ -1834,7 +1051,7 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1834
1051
|
if (!range) {
|
|
1835
1052
|
return;
|
|
1836
1053
|
}
|
|
1837
|
-
const location = this._textLayerService.getSelectedLocationForNew(range, this.
|
|
1054
|
+
const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
|
|
1838
1055
|
if (location) {
|
|
1839
1056
|
this.navigateToFragmentEditor(location.toString());
|
|
1840
1057
|
}
|
|
@@ -1845,13 +1062,13 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1845
1062
|
!this.partId) {
|
|
1846
1063
|
return;
|
|
1847
1064
|
}
|
|
1848
|
-
this.
|
|
1065
|
+
this._repository.applyLayerPatches(this.partId, [
|
|
1849
1066
|
`mov ${hint.location} ${this.pickedLocation}`,
|
|
1850
1067
|
]);
|
|
1851
1068
|
}
|
|
1852
1069
|
applyLayerPatches(patches) {
|
|
1853
1070
|
if (this.partId) {
|
|
1854
|
-
this.
|
|
1071
|
+
this._repository.applyLayerPatches(this.partId, patches);
|
|
1855
1072
|
}
|
|
1856
1073
|
}
|
|
1857
1074
|
pickLocation() {
|
|
@@ -1859,7 +1076,7 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1859
1076
|
if (!range) {
|
|
1860
1077
|
return;
|
|
1861
1078
|
}
|
|
1862
|
-
const location = this._textLayerService.getSelectedLocationForNew(range, this.
|
|
1079
|
+
const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
|
|
1863
1080
|
if (location) {
|
|
1864
1081
|
this.pickedLocation = location.toString();
|
|
1865
1082
|
}
|
|
@@ -1868,73 +1085,24 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1868
1085
|
this._router.navigate(['/items', this.itemId]);
|
|
1869
1086
|
}
|
|
1870
1087
|
}
|
|
1871
|
-
TokenTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1872
|
-
TokenTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1873
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1088
|
+
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 });
|
|
1089
|
+
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" }] });
|
|
1090
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TokenTextLayerPartFeatureComponent, decorators: [{
|
|
1874
1091
|
type: Component,
|
|
1875
|
-
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
|
|
1876
|
-
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type:
|
|
1877
|
-
|
|
1878
|
-
let EditTokenTextPartStore = class EditTokenTextPartStore extends Store {
|
|
1879
|
-
constructor() {
|
|
1880
|
-
super({});
|
|
1881
|
-
}
|
|
1882
|
-
setDirty(value) {
|
|
1883
|
-
this.update({ dirty: value });
|
|
1884
|
-
}
|
|
1885
|
-
setSaving(value) {
|
|
1886
|
-
this.update({ saving: value });
|
|
1887
|
-
}
|
|
1888
|
-
};
|
|
1889
|
-
EditTokenTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1890
|
-
EditTokenTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartStore, providedIn: 'root' });
|
|
1891
|
-
EditTokenTextPartStore = __decorate([
|
|
1892
|
-
StoreConfig({ name: TOKEN_TEXT_PART_TYPEID })
|
|
1893
|
-
], EditTokenTextPartStore);
|
|
1894
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartStore, decorators: [{
|
|
1895
|
-
type: Injectable,
|
|
1896
|
-
args: [{ providedIn: 'root' }]
|
|
1897
|
-
}], ctorParameters: function () { return []; } });
|
|
1898
|
-
|
|
1899
|
-
class EditTokenTextPartQuery extends EditPartQueryBase {
|
|
1900
|
-
constructor(store) {
|
|
1901
|
-
super(store);
|
|
1902
|
-
}
|
|
1903
|
-
}
|
|
1904
|
-
EditTokenTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartQuery, deps: [{ token: EditTokenTextPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1905
|
-
EditTokenTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartQuery, providedIn: 'root' });
|
|
1906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartQuery, decorators: [{
|
|
1907
|
-
type: Injectable,
|
|
1908
|
-
args: [{ providedIn: 'root' }]
|
|
1909
|
-
}], ctorParameters: function () { return [{ type: EditTokenTextPartStore }]; } });
|
|
1910
|
-
|
|
1911
|
-
class EditTokenTextPartService extends EditPartServiceBase {
|
|
1912
|
-
constructor(editPartStore, itemService, thesaurusService) {
|
|
1913
|
-
super(itemService, thesaurusService);
|
|
1914
|
-
this.store = editPartStore;
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
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 });
|
|
1918
|
-
EditTokenTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartService, providedIn: 'root' });
|
|
1919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: EditTokenTextPartService, decorators: [{
|
|
1920
|
-
type: Injectable,
|
|
1921
|
-
args: [{ providedIn: 'root' }]
|
|
1922
|
-
}], ctorParameters: function () { return [{ type: EditTokenTextPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
1092
|
+
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" }]
|
|
1093
|
+
}], 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 }]; } });
|
|
1923
1094
|
|
|
1924
1095
|
class TokenTextPartFeatureComponent extends EditPartFeatureBase {
|
|
1925
|
-
constructor(router, route, snackbar,
|
|
1926
|
-
super(router, route, snackbar,
|
|
1927
|
-
}
|
|
1928
|
-
ngOnInit() {
|
|
1929
|
-
this.initEditor();
|
|
1096
|
+
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
1097
|
+
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
1930
1098
|
}
|
|
1931
1099
|
}
|
|
1932
|
-
TokenTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1933
|
-
TokenTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1934
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1100
|
+
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 });
|
|
1101
|
+
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" }] });
|
|
1102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: TokenTextPartFeatureComponent, decorators: [{
|
|
1935
1103
|
type: Component,
|
|
1936
|
-
args: [{ selector: 'cadmus-token-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [
|
|
1937
|
-
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2
|
|
1104
|
+
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" }]
|
|
1105
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
|
|
1938
1106
|
|
|
1939
1107
|
// https://github.com/ng-packagr/ng-packagr/issues/778
|
|
1940
1108
|
const RouterModuleForChild = RouterModule.forChild([
|
|
@@ -2055,8 +1223,8 @@ const RouterModuleForChild = RouterModule.forChild([
|
|
|
2055
1223
|
]);
|
|
2056
1224
|
class CadmusPartGeneralPgModule {
|
|
2057
1225
|
}
|
|
2058
|
-
CadmusPartGeneralPgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2059
|
-
CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1226
|
+
CadmusPartGeneralPgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1227
|
+
CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, declarations: [BibliographyPartFeatureComponent,
|
|
2060
1228
|
CategoriesPartFeatureComponent,
|
|
2061
1229
|
ChronologyFragmentFeatureComponent,
|
|
2062
1230
|
ChronotopesPartFeatureComponent,
|
|
@@ -2089,14 +1257,15 @@ CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0
|
|
|
2089
1257
|
MatTooltipModule,
|
|
2090
1258
|
MatToolbarModule,
|
|
2091
1259
|
FlexLayoutModule,
|
|
1260
|
+
// vendors
|
|
1261
|
+
NgToolsModule,
|
|
1262
|
+
NgMatToolsModule,
|
|
2092
1263
|
// cadmus
|
|
2093
1264
|
CadmusCoreModule,
|
|
2094
1265
|
CadmusUiModule,
|
|
2095
1266
|
CadmusPartGeneralUiModule,
|
|
2096
1267
|
CadmusStateModule,
|
|
2097
|
-
CadmusUiPgModule,
|
|
2098
|
-
NgToolsModule,
|
|
2099
|
-
NgMatToolsModule], exports: [BibliographyPartFeatureComponent,
|
|
1268
|
+
CadmusUiPgModule], exports: [BibliographyPartFeatureComponent,
|
|
2100
1269
|
CategoriesPartFeatureComponent,
|
|
2101
1270
|
ChronologyFragmentFeatureComponent,
|
|
2102
1271
|
ChronotopesPartFeatureComponent,
|
|
@@ -2115,7 +1284,7 @@ CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0
|
|
|
2115
1284
|
TiledTextPartFeatureComponent,
|
|
2116
1285
|
TokenTextLayerPartFeatureComponent,
|
|
2117
1286
|
TokenTextPartFeatureComponent] });
|
|
2118
|
-
CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1287
|
+
CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, imports: [CommonModule,
|
|
2119
1288
|
FormsModule,
|
|
2120
1289
|
ReactiveFormsModule,
|
|
2121
1290
|
RouterModuleForChild,
|
|
@@ -2131,15 +1300,16 @@ CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
2131
1300
|
MatTooltipModule,
|
|
2132
1301
|
MatToolbarModule,
|
|
2133
1302
|
FlexLayoutModule,
|
|
1303
|
+
// vendors
|
|
1304
|
+
NgToolsModule,
|
|
1305
|
+
NgMatToolsModule,
|
|
2134
1306
|
// cadmus
|
|
2135
1307
|
CadmusCoreModule,
|
|
2136
1308
|
CadmusUiModule,
|
|
2137
1309
|
CadmusPartGeneralUiModule,
|
|
2138
1310
|
CadmusStateModule,
|
|
2139
|
-
CadmusUiPgModule
|
|
2140
|
-
|
|
2141
|
-
NgMatToolsModule] });
|
|
2142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: CadmusPartGeneralPgModule, decorators: [{
|
|
1311
|
+
CadmusUiPgModule] });
|
|
1312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CadmusPartGeneralPgModule, decorators: [{
|
|
2143
1313
|
type: NgModule,
|
|
2144
1314
|
args: [{
|
|
2145
1315
|
imports: [
|
|
@@ -2159,14 +1329,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
2159
1329
|
MatTooltipModule,
|
|
2160
1330
|
MatToolbarModule,
|
|
2161
1331
|
FlexLayoutModule,
|
|
1332
|
+
// vendors
|
|
1333
|
+
NgToolsModule,
|
|
1334
|
+
NgMatToolsModule,
|
|
2162
1335
|
// cadmus
|
|
2163
1336
|
CadmusCoreModule,
|
|
2164
1337
|
CadmusUiModule,
|
|
2165
1338
|
CadmusPartGeneralUiModule,
|
|
2166
1339
|
CadmusStateModule,
|
|
2167
1340
|
CadmusUiPgModule,
|
|
2168
|
-
NgToolsModule,
|
|
2169
|
-
NgMatToolsModule,
|
|
2170
1341
|
],
|
|
2171
1342
|
declarations: [
|
|
2172
1343
|
BibliographyPartFeatureComponent,
|
|
@@ -2223,3 +1394,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImpor
|
|
|
2223
1394
|
|
|
2224
1395
|
export { BibliographyPartFeatureComponent, CadmusPartGeneralPgModule, CategoriesPartFeatureComponent, ChronologyFragmentFeatureComponent, ChronotopesPartFeatureComponent, CommentFragmentFeatureComponent, CommentPartFeatureComponent, DocReferencesPartFeatureComponent, ExternalIdsPartFeatureComponent, HistoricalDatePartFeatureComponent, HistoricalEventsPartFeatureComponent, IndexKeywordsPartFeatureComponent, KeywordsPartFeatureComponent, MetadataPartFeatureComponent, NamesPartFeatureComponent, NotePartFeatureComponent, RouterModuleForChild, TiledTextLayerPartFeatureComponent, TiledTextPartFeatureComponent, TokenTextLayerPartFeatureComponent, TokenTextPartFeatureComponent };
|
|
2225
1396
|
//# sourceMappingURL=myrmidon-cadmus-part-general-pg.mjs.map
|
|
1397
|
+
//# sourceMappingURL=myrmidon-cadmus-part-general-pg.mjs.map
|