@myrmidon/cadmus-part-general-pg 0.2.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/esm2020/lib/bibliography-part-feature/bibliography-part-feature.component.mjs +5 -5
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.query.mjs +3 -3
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.service.mjs +3 -3
- package/esm2020/lib/bibliography-part-feature/edit-bibliography-part.store.mjs +5 -6
- package/esm2020/lib/cadmus-part-general-pg.module.mjs +83 -18
- package/esm2020/lib/categories-part-feature/categories-part-feature.component.mjs +5 -5
- package/esm2020/lib/categories-part-feature/edit-categories-part.query.mjs +3 -3
- package/esm2020/lib/categories-part-feature/edit-categories-part.service.mjs +3 -3
- package/esm2020/lib/categories-part-feature/edit-categories-part.store.mjs +5 -6
- package/esm2020/lib/chronology-fragment-feature/chronology-fragment-feature.component.mjs +5 -5
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.query.mjs +4 -4
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.service.mjs +3 -3
- package/esm2020/lib/chronology-fragment-feature/edit-chronology-fragment.store.mjs +3 -3
- package/esm2020/lib/comment-fragment-feature/comment-fragment-feature.component.mjs +7 -5
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.query.mjs +4 -4
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.service.mjs +3 -3
- package/esm2020/lib/comment-fragment-feature/edit-comment-fragment.store.mjs +3 -3
- package/esm2020/lib/comment-part-feature/comment-part-feature.component.mjs +7 -5
- package/esm2020/lib/comment-part-feature/edit-comment-part.query.mjs +3 -3
- package/esm2020/lib/comment-part-feature/edit-comment-part.service.mjs +3 -3
- package/esm2020/lib/comment-part-feature/edit-comment-part.store.mjs +5 -6
- package/esm2020/lib/doc-references-part-feature/doc-references-part-feature.component.mjs +5 -5
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.query.mjs +3 -3
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.service.mjs +3 -3
- package/esm2020/lib/doc-references-part-feature/edit-doc-references-part.store.mjs +5 -6
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.query.mjs +3 -3
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.service.mjs +3 -3
- package/esm2020/lib/historical-date-part-feature/edit-historical-date-part.store.mjs +6 -7
- package/esm2020/lib/historical-date-part-feature/historical-date-part-feature.component.mjs +5 -5
- package/esm2020/lib/historical-events-part-feature/edit-historical-events-part.query.mjs +16 -0
- package/esm2020/lib/historical-events-part-feature/edit-historical-events-part.service.mjs +18 -0
- package/esm2020/lib/historical-events-part-feature/edit-historical-events-part.store.mjs +27 -0
- package/esm2020/lib/historical-events-part-feature/historical-events-part-feature.component.mjs +33 -0
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.query.mjs +3 -3
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.service.mjs +3 -3
- package/esm2020/lib/index-keywords-part-feature/edit-index-keywords-part.store.mjs +5 -6
- package/esm2020/lib/index-keywords-part-feature/index-keywords-part-feature.component.mjs +5 -5
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.query.mjs +3 -3
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.service.mjs +3 -3
- package/esm2020/lib/keywords-part-feature/edit-keywords-part.store.mjs +5 -6
- package/esm2020/lib/keywords-part-feature/keywords-part-feature.component.mjs +5 -5
- package/esm2020/lib/metadata-part-feature/edit-metadata-part.query.mjs +16 -0
- package/esm2020/lib/metadata-part-feature/edit-metadata-part.service.mjs +18 -0
- package/esm2020/lib/metadata-part-feature/edit-metadata-part.store.mjs +27 -0
- package/esm2020/lib/metadata-part-feature/metadata-part-feature.component.mjs +26 -0
- package/esm2020/lib/note-part-feature/edit-note-part.query.mjs +3 -3
- package/esm2020/lib/note-part-feature/edit-note-part.service.mjs +3 -3
- package/esm2020/lib/note-part-feature/edit-note-part.store.mjs +5 -6
- package/esm2020/lib/note-part-feature/note-part-feature.component.mjs +5 -5
- package/esm2020/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.mjs +67 -31
- package/esm2020/lib/tiled-text-layer-part-feature/tiled-text-layer-view.mjs +6 -6
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.query.mjs +3 -3
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.service.mjs +6 -6
- package/esm2020/lib/tiled-text-part-feature/edit-tiled-text-part.store.mjs +5 -6
- package/esm2020/lib/tiled-text-part-feature/tiled-text-part-feature.component.mjs +6 -6
- package/esm2020/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.mjs +61 -32
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.query.mjs +3 -3
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.service.mjs +3 -3
- package/esm2020/lib/token-text-part-feature/edit-token-text-part.store.mjs +5 -6
- package/esm2020/lib/token-text-part-feature/token-text-part-feature.component.mjs +6 -6
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/myrmidon-cadmus-part-general-pg.mjs +514 -247
- package/fesm2015/myrmidon-cadmus-part-general-pg.mjs.map +1 -1
- package/fesm2020/myrmidon-cadmus-part-general-pg.mjs +509 -247
- package/fesm2020/myrmidon-cadmus-part-general-pg.mjs.map +1 -1
- package/lib/cadmus-part-general-pg.module.d.ts +31 -19
- package/lib/historical-events-part-feature/edit-historical-events-part.query.d.ts +8 -0
- package/lib/historical-events-part-feature/edit-historical-events-part.service.d.ts +9 -0
- package/lib/historical-events-part-feature/edit-historical-events-part.store.d.ts +10 -0
- package/lib/historical-events-part-feature/historical-events-part-feature.component.d.ts +13 -0
- package/lib/metadata-part-feature/edit-metadata-part.query.d.ts +8 -0
- package/lib/metadata-part-feature/edit-metadata-part.service.d.ts +9 -0
- package/lib/metadata-part-feature/edit-metadata-part.store.d.ts +10 -0
- package/lib/metadata-part-feature/metadata-part-feature.component.d.ts +13 -0
- package/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.d.ts +15 -15
- package/lib/tiled-text-part-feature/edit-tiled-text-part.service.d.ts +2 -2
- package/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.d.ts +12 -12
- package/package.json +6 -12
- package/public-api.d.ts +2 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Component, NgModule } from '@angular/core';
|
|
3
3
|
import * as i5 from '@myrmidon/cadmus-state';
|
|
4
|
-
import {
|
|
4
|
+
import { EditPartQueryBase, EditPartServiceBase, EditPartFeatureBase, editFragmentInitialState, EditFragmentQueryBase, EditFragmentServiceBase, EditFragmentFeatureBase, CadmusStateModule } from '@myrmidon/cadmus-state';
|
|
5
5
|
import * as i1 from '@angular/router';
|
|
6
6
|
import { RouterModule } from '@angular/router';
|
|
7
7
|
import * as i2$1 from '@angular/material/snack-bar';
|
|
8
8
|
import { __decorate } from 'tslib';
|
|
9
9
|
import { Store, StoreConfig } from '@datorama/akita';
|
|
10
10
|
import * as i7 from '@myrmidon/cadmus-part-general-ui';
|
|
11
|
-
import { BIBLIOGRAPHY_PART_TYPEID, CATEGORIES_PART_TYPEID, CHRONOLOGY_FRAGMENT_TYPEID, COMMENT_FRAGMENT_TYPEID, COMMENT_PART_TYPEID, DOC_REFERENCES_PART_TYPEID, HISTORICAL_DATE_PART_TYPEID, INDEX_KEYWORDS_PART_TYPEID, KEYWORDS_PART_TYPEID, NOTE_PART_TYPEID, TILED_TEXT_PART_TYPEID, TOKEN_TEXT_PART_TYPEID, CadmusPartGeneralUiModule } from '@myrmidon/cadmus-part-general-ui';
|
|
11
|
+
import { BIBLIOGRAPHY_PART_TYPEID, CATEGORIES_PART_TYPEID, CHRONOLOGY_FRAGMENT_TYPEID, COMMENT_FRAGMENT_TYPEID, COMMENT_PART_TYPEID, DOC_REFERENCES_PART_TYPEID, HISTORICAL_DATE_PART_TYPEID, HISTORICAL_EVENTS_PART_TYPEID, INDEX_KEYWORDS_PART_TYPEID, KEYWORDS_PART_TYPEID, METADATA_PART_TYPEID, NOTE_PART_TYPEID, TILED_TEXT_PART_TYPEID, TOKEN_TEXT_PART_TYPEID, CadmusPartGeneralUiModule } from '@myrmidon/cadmus-part-general-ui';
|
|
12
12
|
import * as i2 from '@myrmidon/cadmus-api';
|
|
13
13
|
import * as i6 from '@myrmidon/cadmus-ui-pg';
|
|
14
14
|
import { CadmusUiPgModule } from '@myrmidon/cadmus-ui-pg';
|
|
@@ -21,20 +21,30 @@ import { CadmusUiModule } from '@myrmidon/cadmus-ui';
|
|
|
21
21
|
import * as i4 from '@myrmidon/ng-mat-tools';
|
|
22
22
|
import { NgMatToolsModule } from '@myrmidon/ng-mat-tools';
|
|
23
23
|
import * as i7$1 from '@angular/material/card';
|
|
24
|
+
import { MatCardModule } from '@angular/material/card';
|
|
24
25
|
import * as i8$2 from '@angular/material/icon';
|
|
26
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
25
27
|
import * as i9 from '@angular/material/button';
|
|
28
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
26
29
|
import * as i10 from '@angular/material/toolbar';
|
|
30
|
+
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
27
31
|
import * as i11 from '@angular/material/progress-spinner';
|
|
32
|
+
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
28
33
|
import * as i13 from '@angular/material/expansion';
|
|
34
|
+
import { MatExpansionModule } from '@angular/material/expansion';
|
|
29
35
|
import * as i16 from '@angular/material/tooltip';
|
|
36
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
30
37
|
import * as i17 from '@angular/flex-layout/flex';
|
|
31
38
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
32
|
-
import {
|
|
39
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
40
|
+
import { MatInputModule } from '@angular/material/input';
|
|
41
|
+
import { MatSelectModule } from '@angular/material/select';
|
|
42
|
+
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
33
43
|
import { NgToolsModule } from '@myrmidon/ng-tools';
|
|
34
44
|
|
|
35
45
|
let EditBibliographyPartStore = class EditBibliographyPartStore extends Store {
|
|
36
46
|
constructor() {
|
|
37
|
-
super(
|
|
47
|
+
super({});
|
|
38
48
|
}
|
|
39
49
|
setDirty(value) {
|
|
40
50
|
this.update({ dirty: value });
|
|
@@ -43,12 +53,12 @@ let EditBibliographyPartStore = class EditBibliographyPartStore extends Store {
|
|
|
43
53
|
this.update({ saving: value });
|
|
44
54
|
}
|
|
45
55
|
};
|
|
46
|
-
EditBibliographyPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
47
|
-
EditBibliographyPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
56
|
+
EditBibliographyPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditBibliographyPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
57
|
+
EditBibliographyPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditBibliographyPartStore, providedIn: 'root' });
|
|
48
58
|
EditBibliographyPartStore = __decorate([
|
|
49
59
|
StoreConfig({ name: BIBLIOGRAPHY_PART_TYPEID })
|
|
50
60
|
], EditBibliographyPartStore);
|
|
51
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditBibliographyPartStore, decorators: [{
|
|
52
62
|
type: Injectable,
|
|
53
63
|
args: [{ providedIn: 'root' }]
|
|
54
64
|
}], ctorParameters: function () { return []; } });
|
|
@@ -58,9 +68,9 @@ class EditBibliographyPartQuery extends EditPartQueryBase {
|
|
|
58
68
|
super(store);
|
|
59
69
|
}
|
|
60
70
|
}
|
|
61
|
-
EditBibliographyPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
62
|
-
EditBibliographyPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
71
|
+
EditBibliographyPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditBibliographyPartQuery, deps: [{ token: EditBibliographyPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
72
|
+
EditBibliographyPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditBibliographyPartQuery, providedIn: 'root' });
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditBibliographyPartQuery, decorators: [{
|
|
64
74
|
type: Injectable,
|
|
65
75
|
args: [{ providedIn: 'root' }]
|
|
66
76
|
}], ctorParameters: function () { return [{ type: EditBibliographyPartStore }]; } });
|
|
@@ -71,9 +81,9 @@ class EditBibliographyPartService extends EditPartServiceBase {
|
|
|
71
81
|
this.store = editPartStore;
|
|
72
82
|
}
|
|
73
83
|
}
|
|
74
|
-
EditBibliographyPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
75
|
-
EditBibliographyPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
84
|
+
EditBibliographyPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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: "13.1.1", ngImport: i0, type: EditBibliographyPartService, providedIn: 'root' });
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditBibliographyPartService, decorators: [{
|
|
77
87
|
type: Injectable,
|
|
78
88
|
args: [{ providedIn: 'root' }]
|
|
79
89
|
}], ctorParameters: function () { return [{ type: EditBibliographyPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -91,16 +101,16 @@ class BibliographyPartFeatureComponent extends EditPartFeatureBase {
|
|
|
91
101
|
]);
|
|
92
102
|
}
|
|
93
103
|
}
|
|
94
|
-
BibliographyPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
95
|
-
BibliographyPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
104
|
+
BibliographyPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BibliographyPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditBibliographyPartQuery }, { token: EditBibliographyPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
105
|
+
BibliographyPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.BibliographyPartComponent, selector: "cadmus-bibliography-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BibliographyPartFeatureComponent, decorators: [{
|
|
97
107
|
type: Component,
|
|
98
|
-
args: [{ selector: 'cadmus-bibliography-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n", styles: [""] }]
|
|
108
|
+
args: [{ selector: 'cadmus-bibliography-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n", styles: [""] }]
|
|
99
109
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditBibliographyPartQuery }, { type: EditBibliographyPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
100
110
|
|
|
101
111
|
let EditCategoriesPartStore = class EditCategoriesPartStore extends Store {
|
|
102
112
|
constructor() {
|
|
103
|
-
super(
|
|
113
|
+
super({});
|
|
104
114
|
}
|
|
105
115
|
setDirty(value) {
|
|
106
116
|
this.update({ dirty: value });
|
|
@@ -109,12 +119,12 @@ let EditCategoriesPartStore = class EditCategoriesPartStore extends Store {
|
|
|
109
119
|
this.update({ saving: value });
|
|
110
120
|
}
|
|
111
121
|
};
|
|
112
|
-
EditCategoriesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
113
|
-
EditCategoriesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
122
|
+
EditCategoriesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCategoriesPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
123
|
+
EditCategoriesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCategoriesPartStore, providedIn: 'root' });
|
|
114
124
|
EditCategoriesPartStore = __decorate([
|
|
115
125
|
StoreConfig({ name: CATEGORIES_PART_TYPEID })
|
|
116
126
|
], EditCategoriesPartStore);
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCategoriesPartStore, decorators: [{
|
|
118
128
|
type: Injectable,
|
|
119
129
|
args: [{ providedIn: 'root' }]
|
|
120
130
|
}], ctorParameters: function () { return []; } });
|
|
@@ -124,9 +134,9 @@ class EditCategoriesPartQuery extends EditPartQueryBase {
|
|
|
124
134
|
super(store);
|
|
125
135
|
}
|
|
126
136
|
}
|
|
127
|
-
EditCategoriesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
128
|
-
EditCategoriesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
137
|
+
EditCategoriesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCategoriesPartQuery, deps: [{ token: EditCategoriesPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
138
|
+
EditCategoriesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCategoriesPartQuery, providedIn: 'root' });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCategoriesPartQuery, decorators: [{
|
|
130
140
|
type: Injectable,
|
|
131
141
|
args: [{ providedIn: 'root' }]
|
|
132
142
|
}], ctorParameters: function () { return [{ type: EditCategoriesPartStore }]; } });
|
|
@@ -137,9 +147,9 @@ class EditCategoriesPartService extends EditPartServiceBase {
|
|
|
137
147
|
this.store = editPartStore;
|
|
138
148
|
}
|
|
139
149
|
}
|
|
140
|
-
EditCategoriesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
141
|
-
EditCategoriesPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
150
|
+
EditCategoriesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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: "13.1.1", ngImport: i0, type: EditCategoriesPartService, providedIn: 'root' });
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCategoriesPartService, decorators: [{
|
|
143
153
|
type: Injectable,
|
|
144
154
|
args: [{ providedIn: 'root' }]
|
|
145
155
|
}], ctorParameters: function () { return [{ type: EditCategoriesPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -152,11 +162,11 @@ class CategoriesPartFeatureComponent extends EditPartFeatureBase {
|
|
|
152
162
|
this.initEditor(['categories']);
|
|
153
163
|
}
|
|
154
164
|
}
|
|
155
|
-
CategoriesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
156
|
-
CategoriesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
157
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
165
|
+
CategoriesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CategoriesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditCategoriesPartQuery }, { token: EditCategoriesPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
166
|
+
CategoriesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.CategoriesPartComponent, selector: "cadmus-categories-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CategoriesPartFeatureComponent, decorators: [{
|
|
158
168
|
type: Component,
|
|
159
|
-
args: [{ selector: 'cadmus-categories-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n", styles: [""] }]
|
|
169
|
+
args: [{ selector: 'cadmus-categories-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n", styles: [""] }]
|
|
160
170
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditCategoriesPartQuery }, { type: EditCategoriesPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
161
171
|
|
|
162
172
|
let EditChronologyFragmentStore = class EditChronologyFragmentStore extends Store {
|
|
@@ -170,12 +180,12 @@ let EditChronologyFragmentStore = class EditChronologyFragmentStore extends Stor
|
|
|
170
180
|
this.update({ saving: value });
|
|
171
181
|
}
|
|
172
182
|
};
|
|
173
|
-
EditChronologyFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
174
|
-
EditChronologyFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
183
|
+
EditChronologyFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditChronologyFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
184
|
+
EditChronologyFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditChronologyFragmentStore, providedIn: 'root' });
|
|
175
185
|
EditChronologyFragmentStore = __decorate([
|
|
176
186
|
StoreConfig({ name: CHRONOLOGY_FRAGMENT_TYPEID })
|
|
177
187
|
], EditChronologyFragmentStore);
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditChronologyFragmentStore, decorators: [{
|
|
179
189
|
type: Injectable,
|
|
180
190
|
args: [{ providedIn: 'root' }]
|
|
181
191
|
}], ctorParameters: function () { return []; } });
|
|
@@ -186,9 +196,9 @@ class EditChronologyFragmentQuery extends EditFragmentQueryBase {
|
|
|
186
196
|
this.store = store;
|
|
187
197
|
}
|
|
188
198
|
}
|
|
189
|
-
EditChronologyFragmentQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
190
|
-
EditChronologyFragmentQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
199
|
+
EditChronologyFragmentQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditChronologyFragmentQuery, deps: [{ token: EditChronologyFragmentStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
200
|
+
EditChronologyFragmentQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditChronologyFragmentQuery, providedIn: 'root' });
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditChronologyFragmentQuery, decorators: [{
|
|
192
202
|
type: Injectable,
|
|
193
203
|
args: [{ providedIn: 'root' }]
|
|
194
204
|
}], ctorParameters: function () { return [{ type: EditChronologyFragmentStore }]; } });
|
|
@@ -199,9 +209,9 @@ class EditChronologyFragmentService extends EditFragmentServiceBase {
|
|
|
199
209
|
this.store = editPartStore;
|
|
200
210
|
}
|
|
201
211
|
}
|
|
202
|
-
EditChronologyFragmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
203
|
-
EditChronologyFragmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
212
|
+
EditChronologyFragmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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: "13.1.1", ngImport: i0, type: EditChronologyFragmentService, providedIn: 'root' });
|
|
214
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditChronologyFragmentService, decorators: [{
|
|
205
215
|
type: Injectable,
|
|
206
216
|
args: [{ providedIn: 'root' }]
|
|
207
217
|
}], ctorParameters: function () { return [{ type: EditChronologyFragmentStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -214,11 +224,11 @@ class ChronologyFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
|
214
224
|
this.initEditor(['chronology-tags']);
|
|
215
225
|
}
|
|
216
226
|
}
|
|
217
|
-
ChronologyFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
218
|
-
ChronologyFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
227
|
+
ChronologyFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ChronologyFragmentFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditChronologyFragmentQuery }, { token: EditChronologyFragmentService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }, { token: i5.EditLayerPartQuery }, { token: i5.EditLayerPartService }, { token: i3.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Component });
|
|
228
|
+
ChronologyFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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]=\"(baseText$ | async) || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [model]=\"$any(fragment$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i8$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { type: i7.ChronologyFragmentComponent, selector: "cadmus-chronology-fragment" }], pipes: { "async": i8.AsyncPipe } });
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ChronologyFragmentFeatureComponent, decorators: [{
|
|
220
230
|
type: Component,
|
|
221
|
-
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]=\"baseText$ | async\"\r\n [locations]=\"[frLoc]\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [model]=\"fragment$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n", styles: [""] }]
|
|
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]=\"(baseText$ | async) || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [model]=\"$any(fragment$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n", styles: [""] }]
|
|
222
232
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditChronologyFragmentQuery }, { type: EditChronologyFragmentService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }, { type: i5.EditLayerPartQuery }, { type: i5.EditLayerPartService }, { type: i3.LibraryRouteService }]; } });
|
|
223
233
|
|
|
224
234
|
let EditCommentFragmentStore = class EditCommentFragmentStore extends Store {
|
|
@@ -232,12 +242,12 @@ let EditCommentFragmentStore = class EditCommentFragmentStore extends Store {
|
|
|
232
242
|
this.update({ saving: value });
|
|
233
243
|
}
|
|
234
244
|
};
|
|
235
|
-
EditCommentFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
236
|
-
EditCommentFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
245
|
+
EditCommentFragmentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
246
|
+
EditCommentFragmentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentStore, providedIn: 'root' });
|
|
237
247
|
EditCommentFragmentStore = __decorate([
|
|
238
248
|
StoreConfig({ name: COMMENT_FRAGMENT_TYPEID })
|
|
239
249
|
], EditCommentFragmentStore);
|
|
240
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentStore, decorators: [{
|
|
241
251
|
type: Injectable,
|
|
242
252
|
args: [{ providedIn: 'root' }]
|
|
243
253
|
}], ctorParameters: function () { return []; } });
|
|
@@ -248,9 +258,9 @@ class EditCommentFragmentQuery extends EditFragmentQueryBase {
|
|
|
248
258
|
this.store = store;
|
|
249
259
|
}
|
|
250
260
|
}
|
|
251
|
-
EditCommentFragmentQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
252
|
-
EditCommentFragmentQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
261
|
+
EditCommentFragmentQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentQuery, deps: [{ token: EditCommentFragmentStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
262
|
+
EditCommentFragmentQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentQuery, providedIn: 'root' });
|
|
263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentQuery, decorators: [{
|
|
254
264
|
type: Injectable,
|
|
255
265
|
args: [{ providedIn: 'root' }]
|
|
256
266
|
}], ctorParameters: function () { return [{ type: EditCommentFragmentStore }]; } });
|
|
@@ -261,9 +271,9 @@ class EditCommentFragmentService extends EditFragmentServiceBase {
|
|
|
261
271
|
this.store = editPartStore;
|
|
262
272
|
}
|
|
263
273
|
}
|
|
264
|
-
EditCommentFragmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
265
|
-
EditCommentFragmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
274
|
+
EditCommentFragmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentService, deps: [{ token: EditCommentFragmentStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
275
|
+
EditCommentFragmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentService, providedIn: 'root' });
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentFragmentService, decorators: [{
|
|
267
277
|
type: Injectable,
|
|
268
278
|
args: [{ providedIn: 'root' }]
|
|
269
279
|
}], ctorParameters: function () { return [{ type: EditCommentFragmentStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -281,19 +291,21 @@ class CommentFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
|
281
291
|
'languages',
|
|
282
292
|
'keyword-indexes',
|
|
283
293
|
'keyword-tags',
|
|
294
|
+
'id-scopes',
|
|
295
|
+
'id-tags'
|
|
284
296
|
]);
|
|
285
297
|
}
|
|
286
298
|
}
|
|
287
|
-
CommentFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
288
|
-
CommentFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
299
|
+
CommentFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommentFragmentFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditCommentFragmentQuery }, { token: EditCommentFragmentService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }, { token: i5.EditLayerPartQuery }, { token: i5.EditLayerPartService }, { token: i3.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Component });
|
|
300
|
+
CommentFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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]=\"(baseText$ | async) || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [model]=\"$any(fragment$ | async)\"\r\n (modelChange)=\"save($any($event))\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\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"], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i8$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { type: i7.CommentEditorComponent, selector: "cadmus-comment-editor" }], pipes: { "async": i8.AsyncPipe } });
|
|
301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommentFragmentFeatureComponent, decorators: [{
|
|
290
302
|
type: Component,
|
|
291
|
-
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]=\"baseText$ | async\"\r\n [locations]=\"[frLoc]\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [model]=\"fragment$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\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"] }]
|
|
303
|
+
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]=\"(baseText$ | async) || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [model]=\"$any(fragment$ | async)\"\r\n (modelChange)=\"save($any($event))\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\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"] }]
|
|
292
304
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditCommentFragmentQuery }, { type: EditCommentFragmentService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }, { type: i5.EditLayerPartQuery }, { type: i5.EditLayerPartService }, { type: i3.LibraryRouteService }]; } });
|
|
293
305
|
|
|
294
306
|
let EditCommentPartStore = class EditCommentPartStore extends Store {
|
|
295
307
|
constructor() {
|
|
296
|
-
super(
|
|
308
|
+
super({});
|
|
297
309
|
}
|
|
298
310
|
setDirty(value) {
|
|
299
311
|
this.update({ dirty: value });
|
|
@@ -302,12 +314,12 @@ let EditCommentPartStore = class EditCommentPartStore extends Store {
|
|
|
302
314
|
this.update({ saving: value });
|
|
303
315
|
}
|
|
304
316
|
};
|
|
305
|
-
EditCommentPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
306
|
-
EditCommentPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
317
|
+
EditCommentPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
318
|
+
EditCommentPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartStore, providedIn: 'root' });
|
|
307
319
|
EditCommentPartStore = __decorate([
|
|
308
320
|
StoreConfig({ name: COMMENT_PART_TYPEID })
|
|
309
321
|
], EditCommentPartStore);
|
|
310
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartStore, decorators: [{
|
|
311
323
|
type: Injectable,
|
|
312
324
|
args: [{ providedIn: 'root' }]
|
|
313
325
|
}], ctorParameters: function () { return []; } });
|
|
@@ -317,9 +329,9 @@ class EditCommentPartQuery extends EditPartQueryBase {
|
|
|
317
329
|
super(store);
|
|
318
330
|
}
|
|
319
331
|
}
|
|
320
|
-
EditCommentPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
321
|
-
EditCommentPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
332
|
+
EditCommentPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartQuery, deps: [{ token: EditCommentPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
333
|
+
EditCommentPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartQuery, providedIn: 'root' });
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartQuery, decorators: [{
|
|
323
335
|
type: Injectable,
|
|
324
336
|
args: [{ providedIn: 'root' }]
|
|
325
337
|
}], ctorParameters: function () { return [{ type: EditCommentPartStore }]; } });
|
|
@@ -330,9 +342,9 @@ class EditCommentPartService extends EditPartServiceBase {
|
|
|
330
342
|
this.store = editPartStore;
|
|
331
343
|
}
|
|
332
344
|
}
|
|
333
|
-
EditCommentPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
334
|
-
EditCommentPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
345
|
+
EditCommentPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartService, deps: [{ token: EditCommentPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
346
|
+
EditCommentPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartService, providedIn: 'root' });
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditCommentPartService, decorators: [{
|
|
336
348
|
type: Injectable,
|
|
337
349
|
args: [{ providedIn: 'root' }]
|
|
338
350
|
}], ctorParameters: function () { return [{ type: EditCommentPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -349,19 +361,21 @@ class CommentPartFeatureComponent extends EditPartFeatureBase {
|
|
|
349
361
|
'languages',
|
|
350
362
|
'keyword-indexes',
|
|
351
363
|
'keyword-tags',
|
|
364
|
+
'id-scopes',
|
|
365
|
+
'id-tags'
|
|
352
366
|
]);
|
|
353
367
|
}
|
|
354
368
|
}
|
|
355
|
-
CommentPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
356
|
-
CommentPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
369
|
+
CommentPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommentPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditCommentPartQuery }, { token: EditCommentPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
370
|
+
CommentPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($any($event))\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.CommentEditorComponent, selector: "cadmus-comment-editor" }], pipes: { "async": i8.AsyncPipe } });
|
|
371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CommentPartFeatureComponent, decorators: [{
|
|
358
372
|
type: Component,
|
|
359
|
-
args: [{ selector: 'cadmus-comment-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: [""] }]
|
|
373
|
+
args: [{ selector: 'cadmus-comment-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($any($event))\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: [""] }]
|
|
360
374
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditCommentPartQuery }, { type: EditCommentPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
361
375
|
|
|
362
376
|
let EditDocReferencesPartStore = class EditDocReferencesPartStore extends Store {
|
|
363
377
|
constructor() {
|
|
364
|
-
super(
|
|
378
|
+
super({});
|
|
365
379
|
}
|
|
366
380
|
setDirty(value) {
|
|
367
381
|
this.update({ dirty: value });
|
|
@@ -370,12 +384,12 @@ let EditDocReferencesPartStore = class EditDocReferencesPartStore extends Store
|
|
|
370
384
|
this.update({ saving: value });
|
|
371
385
|
}
|
|
372
386
|
};
|
|
373
|
-
EditDocReferencesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
374
|
-
EditDocReferencesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
387
|
+
EditDocReferencesPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
388
|
+
EditDocReferencesPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartStore, providedIn: 'root' });
|
|
375
389
|
EditDocReferencesPartStore = __decorate([
|
|
376
390
|
StoreConfig({ name: DOC_REFERENCES_PART_TYPEID })
|
|
377
391
|
], EditDocReferencesPartStore);
|
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartStore, decorators: [{
|
|
379
393
|
type: Injectable,
|
|
380
394
|
args: [{ providedIn: 'root' }]
|
|
381
395
|
}], ctorParameters: function () { return []; } });
|
|
@@ -385,9 +399,9 @@ class EditDocReferencesPartQuery extends EditPartQueryBase {
|
|
|
385
399
|
super(store);
|
|
386
400
|
}
|
|
387
401
|
}
|
|
388
|
-
EditDocReferencesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
389
|
-
EditDocReferencesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
402
|
+
EditDocReferencesPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartQuery, deps: [{ token: EditDocReferencesPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
403
|
+
EditDocReferencesPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartQuery, providedIn: 'root' });
|
|
404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartQuery, decorators: [{
|
|
391
405
|
type: Injectable,
|
|
392
406
|
args: [{ providedIn: 'root' }]
|
|
393
407
|
}], ctorParameters: function () { return [{ type: EditDocReferencesPartStore }]; } });
|
|
@@ -398,9 +412,9 @@ class EditDocReferencesPartService extends EditPartServiceBase {
|
|
|
398
412
|
this.store = editPartStore;
|
|
399
413
|
}
|
|
400
414
|
}
|
|
401
|
-
EditDocReferencesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
402
|
-
EditDocReferencesPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
415
|
+
EditDocReferencesPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartService, deps: [{ token: EditDocReferencesPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
416
|
+
EditDocReferencesPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartService, providedIn: 'root' });
|
|
417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditDocReferencesPartService, decorators: [{
|
|
404
418
|
type: Injectable,
|
|
405
419
|
args: [{ providedIn: 'root' }]
|
|
406
420
|
}], ctorParameters: function () { return [{ type: EditDocReferencesPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -413,16 +427,16 @@ class DocReferencesPartFeatureComponent extends EditPartFeatureBase {
|
|
|
413
427
|
this.initEditor(['doc-reference-tags', 'doc-reference-types']);
|
|
414
428
|
}
|
|
415
429
|
}
|
|
416
|
-
DocReferencesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
417
|
-
DocReferencesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
430
|
+
DocReferencesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DocReferencesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditDocReferencesPartQuery }, { token: EditDocReferencesPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
431
|
+
DocReferencesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.DocReferencesPartComponent, selector: "cadmus-doc-references-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: DocReferencesPartFeatureComponent, decorators: [{
|
|
419
433
|
type: Component,
|
|
420
|
-
args: [{ selector: 'cadmus-doc-references-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n", styles: [""] }]
|
|
434
|
+
args: [{ selector: 'cadmus-doc-references-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n", styles: [""] }]
|
|
421
435
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditDocReferencesPartQuery }, { type: EditDocReferencesPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
422
436
|
|
|
423
437
|
let EditHistoricalDatePartStore = class EditHistoricalDatePartStore extends Store {
|
|
424
438
|
constructor() {
|
|
425
|
-
super(
|
|
439
|
+
super({});
|
|
426
440
|
}
|
|
427
441
|
setDirty(value) {
|
|
428
442
|
this.update({ dirty: value });
|
|
@@ -431,12 +445,12 @@ let EditHistoricalDatePartStore = class EditHistoricalDatePartStore extends Stor
|
|
|
431
445
|
this.update({ saving: value });
|
|
432
446
|
}
|
|
433
447
|
};
|
|
434
|
-
EditHistoricalDatePartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
435
|
-
EditHistoricalDatePartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
448
|
+
EditHistoricalDatePartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
449
|
+
EditHistoricalDatePartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartStore, providedIn: 'root' });
|
|
436
450
|
EditHistoricalDatePartStore = __decorate([
|
|
437
451
|
StoreConfig({ name: HISTORICAL_DATE_PART_TYPEID })
|
|
438
452
|
], EditHistoricalDatePartStore);
|
|
439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartStore, decorators: [{
|
|
440
454
|
type: Injectable,
|
|
441
455
|
args: [{ providedIn: 'root' }]
|
|
442
456
|
}], ctorParameters: function () { return []; } });
|
|
@@ -446,9 +460,9 @@ class EditHistoricalDatePartQuery extends EditPartQueryBase {
|
|
|
446
460
|
super(store);
|
|
447
461
|
}
|
|
448
462
|
}
|
|
449
|
-
EditHistoricalDatePartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
450
|
-
EditHistoricalDatePartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
463
|
+
EditHistoricalDatePartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartQuery, deps: [{ token: EditHistoricalDatePartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
464
|
+
EditHistoricalDatePartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartQuery, providedIn: 'root' });
|
|
465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartQuery, decorators: [{
|
|
452
466
|
type: Injectable,
|
|
453
467
|
args: [{ providedIn: 'root' }]
|
|
454
468
|
}], ctorParameters: function () { return [{ type: EditHistoricalDatePartStore }]; } });
|
|
@@ -459,9 +473,9 @@ class EditHistoricalDatePartService extends EditPartServiceBase {
|
|
|
459
473
|
this.store = editPartStore;
|
|
460
474
|
}
|
|
461
475
|
}
|
|
462
|
-
EditHistoricalDatePartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
463
|
-
EditHistoricalDatePartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
476
|
+
EditHistoricalDatePartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartService, deps: [{ token: EditHistoricalDatePartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
477
|
+
EditHistoricalDatePartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartService, providedIn: 'root' });
|
|
478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalDatePartService, decorators: [{
|
|
465
479
|
type: Injectable,
|
|
466
480
|
args: [{ providedIn: 'root' }]
|
|
467
481
|
}], ctorParameters: function () { return [{ type: EditHistoricalDatePartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -474,16 +488,84 @@ class HistoricalDatePartFeatureComponent extends EditPartFeatureBase {
|
|
|
474
488
|
this.initEditor(['doc-reference-tags', 'doc-reference-types']);
|
|
475
489
|
}
|
|
476
490
|
}
|
|
477
|
-
HistoricalDatePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
478
|
-
HistoricalDatePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
491
|
+
HistoricalDatePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HistoricalDatePartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditHistoricalDatePartQuery }, { token: EditHistoricalDatePartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
492
|
+
HistoricalDatePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.HistoricalDatePartComponent, selector: "cadmus-historical-date-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HistoricalDatePartFeatureComponent, decorators: [{
|
|
480
494
|
type: Component,
|
|
481
|
-
args: [{ selector: 'cadmus-historical-date-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n", styles: [""] }]
|
|
495
|
+
args: [{ selector: 'cadmus-historical-date-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n", styles: [""] }]
|
|
482
496
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditHistoricalDatePartQuery }, { type: EditHistoricalDatePartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
483
497
|
|
|
498
|
+
let EditHistoricalEventsPartStore = class EditHistoricalEventsPartStore extends Store {
|
|
499
|
+
constructor() {
|
|
500
|
+
super({});
|
|
501
|
+
}
|
|
502
|
+
setDirty(value) {
|
|
503
|
+
this.update({ dirty: value });
|
|
504
|
+
}
|
|
505
|
+
setSaving(value) {
|
|
506
|
+
this.update({ saving: value });
|
|
507
|
+
}
|
|
508
|
+
};
|
|
509
|
+
EditHistoricalEventsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
510
|
+
EditHistoricalEventsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartStore, providedIn: 'root' });
|
|
511
|
+
EditHistoricalEventsPartStore = __decorate([
|
|
512
|
+
StoreConfig({ name: HISTORICAL_EVENTS_PART_TYPEID })
|
|
513
|
+
], EditHistoricalEventsPartStore);
|
|
514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartStore, decorators: [{
|
|
515
|
+
type: Injectable,
|
|
516
|
+
args: [{ providedIn: 'root' }]
|
|
517
|
+
}], ctorParameters: function () { return []; } });
|
|
518
|
+
|
|
519
|
+
class EditHistoricalEventsPartQuery extends EditPartQueryBase {
|
|
520
|
+
constructor(store) {
|
|
521
|
+
super(store);
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
EditHistoricalEventsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartQuery, deps: [{ token: EditHistoricalEventsPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
525
|
+
EditHistoricalEventsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartQuery, providedIn: 'root' });
|
|
526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartQuery, decorators: [{
|
|
527
|
+
type: Injectable,
|
|
528
|
+
args: [{ providedIn: 'root' }]
|
|
529
|
+
}], ctorParameters: function () { return [{ type: EditHistoricalEventsPartStore }]; } });
|
|
530
|
+
|
|
531
|
+
class EditHistoricalEventsPartService extends EditPartServiceBase {
|
|
532
|
+
constructor(editPartStore, itemService, thesaurusService) {
|
|
533
|
+
super(itemService, thesaurusService);
|
|
534
|
+
this.store = editPartStore;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
EditHistoricalEventsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartService, deps: [{ token: EditHistoricalEventsPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
538
|
+
EditHistoricalEventsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartService, providedIn: 'root' });
|
|
539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditHistoricalEventsPartService, decorators: [{
|
|
540
|
+
type: Injectable,
|
|
541
|
+
args: [{ providedIn: 'root' }]
|
|
542
|
+
}], ctorParameters: function () { return [{ type: EditHistoricalEventsPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
543
|
+
|
|
544
|
+
class HistoricalEventsPartFeatureComponent extends EditPartFeatureBase {
|
|
545
|
+
constructor(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
546
|
+
super(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService);
|
|
547
|
+
}
|
|
548
|
+
ngOnInit() {
|
|
549
|
+
this.initEditor([
|
|
550
|
+
'event-types',
|
|
551
|
+
'event-relations',
|
|
552
|
+
'chronotope-tags',
|
|
553
|
+
'assertion-tags',
|
|
554
|
+
'doc-reference-tags',
|
|
555
|
+
'doc-reference-types',
|
|
556
|
+
]);
|
|
557
|
+
}
|
|
558
|
+
}
|
|
559
|
+
HistoricalEventsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HistoricalEventsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditHistoricalEventsPartQuery }, { token: EditHistoricalEventsPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
560
|
+
HistoricalEventsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\n [roleId]=\"roleId\"\n [model]=\"$any(part$ | async)\"\n (modelChange)=\"save($event)\"\n [thesauri]=\"(thesauri$ | async) || undefined\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.HistoricalEventsPartComponent, selector: "cadmus-historical-events-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: HistoricalEventsPartFeatureComponent, decorators: [{
|
|
562
|
+
type: Component,
|
|
563
|
+
args: [{ selector: 'cadmus-historical-events-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [itemId]=\"itemId\"\n [roleId]=\"roleId\"\n [model]=\"$any(part$ | async)\"\n (modelChange)=\"save($event)\"\n [thesauri]=\"(thesauri$ | async) || undefined\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n", styles: [""] }]
|
|
564
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditHistoricalEventsPartQuery }, { type: EditHistoricalEventsPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
565
|
+
|
|
484
566
|
let EditIndexKeywordsPartStore = class EditIndexKeywordsPartStore extends Store {
|
|
485
567
|
constructor() {
|
|
486
|
-
super(
|
|
568
|
+
super({});
|
|
487
569
|
}
|
|
488
570
|
setDirty(value) {
|
|
489
571
|
this.update({ dirty: value });
|
|
@@ -492,12 +574,12 @@ let EditIndexKeywordsPartStore = class EditIndexKeywordsPartStore extends Store
|
|
|
492
574
|
this.update({ saving: value });
|
|
493
575
|
}
|
|
494
576
|
};
|
|
495
|
-
EditIndexKeywordsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
496
|
-
EditIndexKeywordsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
577
|
+
EditIndexKeywordsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
578
|
+
EditIndexKeywordsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartStore, providedIn: 'root' });
|
|
497
579
|
EditIndexKeywordsPartStore = __decorate([
|
|
498
580
|
StoreConfig({ name: INDEX_KEYWORDS_PART_TYPEID })
|
|
499
581
|
], EditIndexKeywordsPartStore);
|
|
500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartStore, decorators: [{
|
|
501
583
|
type: Injectable,
|
|
502
584
|
args: [{ providedIn: 'root' }]
|
|
503
585
|
}], ctorParameters: function () { return []; } });
|
|
@@ -507,9 +589,9 @@ class EditIndexKeywordsPartQuery extends EditPartQueryBase {
|
|
|
507
589
|
super(store);
|
|
508
590
|
}
|
|
509
591
|
}
|
|
510
|
-
EditIndexKeywordsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
511
|
-
EditIndexKeywordsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
512
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
592
|
+
EditIndexKeywordsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartQuery, deps: [{ token: EditIndexKeywordsPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
593
|
+
EditIndexKeywordsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartQuery, providedIn: 'root' });
|
|
594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartQuery, decorators: [{
|
|
513
595
|
type: Injectable,
|
|
514
596
|
args: [{ providedIn: 'root' }]
|
|
515
597
|
}], ctorParameters: function () { return [{ type: EditIndexKeywordsPartStore }]; } });
|
|
@@ -520,9 +602,9 @@ class EditIndexKeywordsPartService extends EditPartServiceBase {
|
|
|
520
602
|
this.store = editPartStore;
|
|
521
603
|
}
|
|
522
604
|
}
|
|
523
|
-
EditIndexKeywordsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
524
|
-
EditIndexKeywordsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
605
|
+
EditIndexKeywordsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartService, deps: [{ token: EditIndexKeywordsPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
606
|
+
EditIndexKeywordsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartService, providedIn: 'root' });
|
|
607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditIndexKeywordsPartService, decorators: [{
|
|
526
608
|
type: Injectable,
|
|
527
609
|
args: [{ providedIn: 'root' }]
|
|
528
610
|
}], ctorParameters: function () { return [{ type: EditIndexKeywordsPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -535,16 +617,16 @@ class IndexKeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
535
617
|
this.initEditor(['languages', 'keyword-indexes', 'keyword-tags']);
|
|
536
618
|
}
|
|
537
619
|
}
|
|
538
|
-
IndexKeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
539
|
-
IndexKeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
540
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
620
|
+
IndexKeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: IndexKeywordsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditIndexKeywordsPartQuery }, { token: EditIndexKeywordsPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
621
|
+
IndexKeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.IndexKeywordsPartComponent, selector: "cadmus-index-keywords-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: IndexKeywordsPartFeatureComponent, decorators: [{
|
|
541
623
|
type: Component,
|
|
542
|
-
args: [{ selector: 'cadmus-index-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n", styles: [""] }]
|
|
624
|
+
args: [{ selector: 'cadmus-index-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n", styles: [""] }]
|
|
543
625
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditIndexKeywordsPartQuery }, { type: EditIndexKeywordsPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
544
626
|
|
|
545
627
|
let EditKeywordsPartStore = class EditKeywordsPartStore extends Store {
|
|
546
628
|
constructor() {
|
|
547
|
-
super(
|
|
629
|
+
super({});
|
|
548
630
|
}
|
|
549
631
|
setDirty(value) {
|
|
550
632
|
this.update({ dirty: value });
|
|
@@ -553,12 +635,12 @@ let EditKeywordsPartStore = class EditKeywordsPartStore extends Store {
|
|
|
553
635
|
this.update({ saving: value });
|
|
554
636
|
}
|
|
555
637
|
};
|
|
556
|
-
EditKeywordsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
557
|
-
EditKeywordsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
638
|
+
EditKeywordsPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
639
|
+
EditKeywordsPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartStore, providedIn: 'root' });
|
|
558
640
|
EditKeywordsPartStore = __decorate([
|
|
559
641
|
StoreConfig({ name: KEYWORDS_PART_TYPEID })
|
|
560
642
|
], EditKeywordsPartStore);
|
|
561
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartStore, decorators: [{
|
|
562
644
|
type: Injectable,
|
|
563
645
|
args: [{ providedIn: 'root' }]
|
|
564
646
|
}], ctorParameters: function () { return []; } });
|
|
@@ -568,9 +650,9 @@ class EditKeywordsPartQuery extends EditPartQueryBase {
|
|
|
568
650
|
super(store);
|
|
569
651
|
}
|
|
570
652
|
}
|
|
571
|
-
EditKeywordsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
572
|
-
EditKeywordsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
653
|
+
EditKeywordsPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartQuery, deps: [{ token: EditKeywordsPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
654
|
+
EditKeywordsPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartQuery, providedIn: 'root' });
|
|
655
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartQuery, decorators: [{
|
|
574
656
|
type: Injectable,
|
|
575
657
|
args: [{ providedIn: 'root' }]
|
|
576
658
|
}], ctorParameters: function () { return [{ type: EditKeywordsPartStore }]; } });
|
|
@@ -581,9 +663,9 @@ class EditKeywordsPartService extends EditPartServiceBase {
|
|
|
581
663
|
this.store = editPartStore;
|
|
582
664
|
}
|
|
583
665
|
}
|
|
584
|
-
EditKeywordsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
585
|
-
EditKeywordsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
586
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
666
|
+
EditKeywordsPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartService, deps: [{ token: EditKeywordsPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
667
|
+
EditKeywordsPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartService, providedIn: 'root' });
|
|
668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditKeywordsPartService, decorators: [{
|
|
587
669
|
type: Injectable,
|
|
588
670
|
args: [{ providedIn: 'root' }]
|
|
589
671
|
}], ctorParameters: function () { return [{ type: EditKeywordsPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -596,16 +678,77 @@ class KeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
596
678
|
this.initEditor(['languages']);
|
|
597
679
|
}
|
|
598
680
|
}
|
|
599
|
-
KeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
600
|
-
KeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
681
|
+
KeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: KeywordsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditKeywordsPartQuery }, { token: EditKeywordsPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
682
|
+
KeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.KeywordsPartComponent, selector: "cadmus-keywords-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
683
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: KeywordsPartFeatureComponent, decorators: [{
|
|
602
684
|
type: Component,
|
|
603
|
-
args: [{ selector: 'cadmus-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n", styles: [""] }]
|
|
685
|
+
args: [{ selector: 'cadmus-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n", styles: [""] }]
|
|
604
686
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditKeywordsPartQuery }, { type: EditKeywordsPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
605
687
|
|
|
688
|
+
let EditMetadataPartStore = class EditMetadataPartStore extends Store {
|
|
689
|
+
constructor() {
|
|
690
|
+
super({});
|
|
691
|
+
}
|
|
692
|
+
setDirty(value) {
|
|
693
|
+
this.update({ dirty: value });
|
|
694
|
+
}
|
|
695
|
+
setSaving(value) {
|
|
696
|
+
this.update({ saving: value });
|
|
697
|
+
}
|
|
698
|
+
};
|
|
699
|
+
EditMetadataPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
700
|
+
EditMetadataPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartStore, providedIn: 'root' });
|
|
701
|
+
EditMetadataPartStore = __decorate([
|
|
702
|
+
StoreConfig({ name: METADATA_PART_TYPEID })
|
|
703
|
+
], EditMetadataPartStore);
|
|
704
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartStore, decorators: [{
|
|
705
|
+
type: Injectable,
|
|
706
|
+
args: [{ providedIn: 'root' }]
|
|
707
|
+
}], ctorParameters: function () { return []; } });
|
|
708
|
+
|
|
709
|
+
class EditMetadataPartQuery extends EditPartQueryBase {
|
|
710
|
+
constructor(store) {
|
|
711
|
+
super(store);
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
EditMetadataPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartQuery, deps: [{ token: EditMetadataPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
715
|
+
EditMetadataPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartQuery, providedIn: 'root' });
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartQuery, decorators: [{
|
|
717
|
+
type: Injectable,
|
|
718
|
+
args: [{ providedIn: 'root' }]
|
|
719
|
+
}], ctorParameters: function () { return [{ type: EditMetadataPartStore }]; } });
|
|
720
|
+
|
|
721
|
+
class EditMetadataPartService extends EditPartServiceBase {
|
|
722
|
+
constructor(editPartStore, itemService, thesaurusService) {
|
|
723
|
+
super(itemService, thesaurusService);
|
|
724
|
+
this.store = editPartStore;
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
EditMetadataPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartService, deps: [{ token: EditMetadataPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
728
|
+
EditMetadataPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartService, providedIn: 'root' });
|
|
729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditMetadataPartService, decorators: [{
|
|
730
|
+
type: Injectable,
|
|
731
|
+
args: [{ providedIn: 'root' }]
|
|
732
|
+
}], ctorParameters: function () { return [{ type: EditMetadataPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
733
|
+
|
|
734
|
+
class MetadataPartFeatureComponent extends EditPartFeatureBase {
|
|
735
|
+
constructor(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService) {
|
|
736
|
+
super(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService);
|
|
737
|
+
}
|
|
738
|
+
ngOnInit() {
|
|
739
|
+
this.initEditor(['metadata-types']);
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
MetadataPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MetadataPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditMetadataPartQuery }, { token: EditMetadataPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
743
|
+
MetadataPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\n [roleId]=\"roleId\"\n [model]=\"$any(part$ | async)\"\n (modelChange)=\"save($event)\"\n [thesauri]=\"(thesauri$ | async) || undefined\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.MetadataPartComponent, selector: "cadmus-metadata-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
744
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MetadataPartFeatureComponent, decorators: [{
|
|
745
|
+
type: Component,
|
|
746
|
+
args: [{ selector: 'cadmus-metadata-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [itemId]=\"itemId\"\n [roleId]=\"roleId\"\n [model]=\"$any(part$ | async)\"\n (modelChange)=\"save($event)\"\n [thesauri]=\"(thesauri$ | async) || undefined\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n", styles: [""] }]
|
|
747
|
+
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditMetadataPartQuery }, { type: EditMetadataPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
748
|
+
|
|
606
749
|
let EditNotePartStore = class EditNotePartStore extends Store {
|
|
607
750
|
constructor() {
|
|
608
|
-
super(
|
|
751
|
+
super({});
|
|
609
752
|
}
|
|
610
753
|
setDirty(value) {
|
|
611
754
|
this.update({ dirty: value });
|
|
@@ -614,12 +757,12 @@ let EditNotePartStore = class EditNotePartStore extends Store {
|
|
|
614
757
|
this.update({ saving: value });
|
|
615
758
|
}
|
|
616
759
|
};
|
|
617
|
-
EditNotePartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
618
|
-
EditNotePartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
760
|
+
EditNotePartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
761
|
+
EditNotePartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartStore, providedIn: 'root' });
|
|
619
762
|
EditNotePartStore = __decorate([
|
|
620
763
|
StoreConfig({ name: NOTE_PART_TYPEID })
|
|
621
764
|
], EditNotePartStore);
|
|
622
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
765
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartStore, decorators: [{
|
|
623
766
|
type: Injectable,
|
|
624
767
|
args: [{ providedIn: 'root' }]
|
|
625
768
|
}], ctorParameters: function () { return []; } });
|
|
@@ -629,9 +772,9 @@ class EditNotePartQuery extends EditPartQueryBase {
|
|
|
629
772
|
super(store);
|
|
630
773
|
}
|
|
631
774
|
}
|
|
632
|
-
EditNotePartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
633
|
-
EditNotePartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
634
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
775
|
+
EditNotePartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartQuery, deps: [{ token: EditNotePartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
776
|
+
EditNotePartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartQuery, providedIn: 'root' });
|
|
777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartQuery, decorators: [{
|
|
635
778
|
type: Injectable,
|
|
636
779
|
args: [{ providedIn: 'root' }]
|
|
637
780
|
}], ctorParameters: function () { return [{ type: EditNotePartStore }]; } });
|
|
@@ -642,9 +785,9 @@ class EditNotePartService extends EditPartServiceBase {
|
|
|
642
785
|
this.store = editPartStore;
|
|
643
786
|
}
|
|
644
787
|
}
|
|
645
|
-
EditNotePartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
646
|
-
EditNotePartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
647
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
788
|
+
EditNotePartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartService, deps: [{ token: EditNotePartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
789
|
+
EditNotePartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartService, providedIn: 'root' });
|
|
790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditNotePartService, decorators: [{
|
|
648
791
|
type: Injectable,
|
|
649
792
|
args: [{ providedIn: 'root' }]
|
|
650
793
|
}], ctorParameters: function () { return [{ type: EditNotePartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -657,11 +800,11 @@ class NotePartFeatureComponent extends EditPartFeatureBase {
|
|
|
657
800
|
this.initEditor(['note-tags']);
|
|
658
801
|
}
|
|
659
802
|
}
|
|
660
|
-
NotePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
661
|
-
NotePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
662
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
803
|
+
NotePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotePartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditNotePartQuery }, { token: EditNotePartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
804
|
+
NotePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.NotePartComponent, selector: "cadmus-note-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
805
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: NotePartFeatureComponent, decorators: [{
|
|
663
806
|
type: Component,
|
|
664
|
-
args: [{ selector: 'cadmus-note-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n", styles: [""] }]
|
|
807
|
+
args: [{ selector: 'cadmus-note-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n", styles: [""] }]
|
|
665
808
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditNotePartQuery }, { type: EditNotePartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
666
809
|
|
|
667
810
|
/**
|
|
@@ -727,8 +870,8 @@ class TiledTextLayerView {
|
|
|
727
870
|
for (let j = 0; j < row.tiles.length; j++) {
|
|
728
871
|
const tile = row.tiles[j];
|
|
729
872
|
row.tiles[j] = {
|
|
730
|
-
checked: hasChecked ? state.checked : tile.checked,
|
|
731
|
-
frIndex: hasFrIndex ? state.frIndex : tile.frIndex,
|
|
873
|
+
checked: (hasChecked ? state.checked : tile.checked) ? true : false,
|
|
874
|
+
frIndex: hasFrIndex ? state.frIndex || -1 : tile.frIndex,
|
|
732
875
|
model: tile.model,
|
|
733
876
|
};
|
|
734
877
|
}
|
|
@@ -965,12 +1108,12 @@ class TiledTextLayerView {
|
|
|
965
1108
|
y1 = next.y;
|
|
966
1109
|
x1 = next.x;
|
|
967
1110
|
}
|
|
1111
|
+
this.linearSetCheck(y1, x1, yx.y, yx.x, false);
|
|
968
1112
|
}
|
|
969
1113
|
else {
|
|
970
1114
|
y1 = 1;
|
|
971
1115
|
x1 = 1;
|
|
972
1116
|
}
|
|
973
|
-
this.linearSetCheck(y1, x1, yx.y, yx.x, false);
|
|
974
1117
|
}
|
|
975
1118
|
}
|
|
976
1119
|
/**
|
|
@@ -987,10 +1130,10 @@ class TiledTextLayerView {
|
|
|
987
1130
|
}
|
|
988
1131
|
const end = this.findFirstCheckedCoords(start.y, start.x, false);
|
|
989
1132
|
if (!end || (end.y === start.y && end.x === start.x)) {
|
|
990
|
-
return;
|
|
1133
|
+
return null;
|
|
991
1134
|
}
|
|
992
1135
|
const last = this.getPrevTileCoords(end.y, end.x);
|
|
993
|
-
return last.y === start.y && last.x === start.x
|
|
1136
|
+
return !last || (last.y === start.y && last.x === start.x)
|
|
994
1137
|
? new TokenLocation(new TokenPoint(start.y, start.x))
|
|
995
1138
|
: new TokenLocation(new TokenPoint(start.y, start.x), new TokenPoint(last.y, last.x));
|
|
996
1139
|
}
|
|
@@ -1057,7 +1200,7 @@ class TiledTextLayerView {
|
|
|
1057
1200
|
* checked.
|
|
1058
1201
|
*/
|
|
1059
1202
|
class TiledTextLayerPartFeatureComponent {
|
|
1060
|
-
constructor(route, _router, _editQuery, _editService, _editItemQuery, _editItemService, _libraryRouteService, _dialogService,
|
|
1203
|
+
constructor(route, _router, _editQuery, _editService, _editItemQuery, _editItemService, _libraryRouteService, _dialogService, userLevelService) {
|
|
1061
1204
|
this._router = _router;
|
|
1062
1205
|
this._editQuery = _editQuery;
|
|
1063
1206
|
this._editService = _editService;
|
|
@@ -1068,25 +1211,13 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1068
1211
|
this.itemId = route.snapshot.params['iid'];
|
|
1069
1212
|
this.partId = route.snapshot.params['pid'];
|
|
1070
1213
|
if (this.partId === 'new') {
|
|
1071
|
-
this.partId =
|
|
1214
|
+
this.partId = undefined;
|
|
1072
1215
|
}
|
|
1073
1216
|
this.roleId = route.snapshot.queryParams['rid'];
|
|
1074
1217
|
if (this.roleId === 'default') {
|
|
1075
|
-
this.roleId =
|
|
1218
|
+
this.roleId = undefined;
|
|
1076
1219
|
}
|
|
1077
|
-
this.userLevel =
|
|
1078
|
-
}
|
|
1079
|
-
canDeactivate() {
|
|
1080
|
-
return true;
|
|
1081
|
-
}
|
|
1082
|
-
ensureItemLoaded(id) {
|
|
1083
|
-
if (!this._editItemQuery.hasItem(id)) {
|
|
1084
|
-
this._editItemService.load(id);
|
|
1085
|
-
}
|
|
1086
|
-
}
|
|
1087
|
-
ngOnInit() {
|
|
1088
|
-
// base text: connect rows to the base text part
|
|
1089
|
-
this.rows$ = this._editQuery.select((state) => { var _a; return (_a = state.baseTextPart) === null || _a === void 0 ? void 0 : _a.rows; });
|
|
1220
|
+
this.userLevel = userLevelService.getCurrentUserLevel();
|
|
1090
1221
|
// layers part
|
|
1091
1222
|
this.loading$ = this._editQuery.selectLoading();
|
|
1092
1223
|
this.error$ = this._editQuery.selectError();
|
|
@@ -1097,23 +1228,39 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1097
1228
|
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1098
1229
|
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1099
1230
|
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
1231
|
+
// base text: connect rows to the base text part
|
|
1232
|
+
this.rows$ = this._editQuery.select((state) => { var _a; return (_a = state.baseTextPart) === null || _a === void 0 ? void 0 : _a.rows; });
|
|
1233
|
+
}
|
|
1234
|
+
canDeactivate() {
|
|
1235
|
+
return true;
|
|
1236
|
+
}
|
|
1237
|
+
ensureItemLoaded(id) {
|
|
1238
|
+
if (!this._editItemQuery.hasItem(id)) {
|
|
1239
|
+
this._editItemService.load(id);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
ngOnInit() {
|
|
1100
1243
|
// when the base text changes, load all the fragments locations
|
|
1101
1244
|
// and setup their UI state
|
|
1102
1245
|
this.rows$.subscribe((rows) => {
|
|
1103
1246
|
var _a;
|
|
1104
|
-
this.view = rows ? new TiledTextLayerView(rows) :
|
|
1247
|
+
this.view = rows ? new TiledTextLayerView(rows) : undefined;
|
|
1105
1248
|
(_a = this.view) === null || _a === void 0 ? void 0 : _a.setFragmentLocations(this._editQuery.getValue().locations);
|
|
1106
1249
|
});
|
|
1107
1250
|
// ensure that the container item is loaded
|
|
1108
1251
|
this.ensureItemLoaded(this.itemId);
|
|
1109
1252
|
// load the layer part
|
|
1110
|
-
|
|
1253
|
+
if (this.partId) {
|
|
1254
|
+
this._editService.load(this.itemId, this.partId);
|
|
1255
|
+
}
|
|
1111
1256
|
}
|
|
1112
1257
|
refreshBreakChance() {
|
|
1113
1258
|
this._editService.refreshBreakChance();
|
|
1114
1259
|
}
|
|
1115
1260
|
onTileChecked(y, x, checked) {
|
|
1116
|
-
this.view
|
|
1261
|
+
if (this.view) {
|
|
1262
|
+
this.view.toggleLinearTileCheck(y, x, checked);
|
|
1263
|
+
}
|
|
1117
1264
|
}
|
|
1118
1265
|
getSelectedTileCoords() {
|
|
1119
1266
|
if (!this.selectedTile || !this.view) {
|
|
@@ -1128,6 +1275,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1128
1275
|
return null;
|
|
1129
1276
|
}
|
|
1130
1277
|
selectPrevTile() {
|
|
1278
|
+
if (!this.view) {
|
|
1279
|
+
return;
|
|
1280
|
+
}
|
|
1131
1281
|
let yx = this.getSelectedTileCoords();
|
|
1132
1282
|
if (yx) {
|
|
1133
1283
|
yx = this.view.getPrevTileCoords(yx.y, yx.x);
|
|
@@ -1137,6 +1287,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1137
1287
|
}
|
|
1138
1288
|
}
|
|
1139
1289
|
selectNextTile() {
|
|
1290
|
+
if (!this.view) {
|
|
1291
|
+
return;
|
|
1292
|
+
}
|
|
1140
1293
|
let yx = this.getSelectedTileCoords();
|
|
1141
1294
|
if (yx) {
|
|
1142
1295
|
yx = this.view.getNextTileCoords(yx.y, yx.x);
|
|
@@ -1146,6 +1299,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1146
1299
|
}
|
|
1147
1300
|
}
|
|
1148
1301
|
deleteFragment() {
|
|
1302
|
+
if (!this.view) {
|
|
1303
|
+
return;
|
|
1304
|
+
}
|
|
1149
1305
|
const lf = this.view.getCheckedLocationAndFragment();
|
|
1150
1306
|
if (!lf || lf.fragment === -1) {
|
|
1151
1307
|
return;
|
|
@@ -1155,10 +1311,14 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1155
1311
|
this._dialogService
|
|
1156
1312
|
.confirm('Delete Fragment', `Delete the fragment at ${loc}?`)
|
|
1157
1313
|
.subscribe((ok) => {
|
|
1314
|
+
var _a;
|
|
1158
1315
|
if (ok) {
|
|
1159
1316
|
// find the fragment and remove it from the part
|
|
1160
|
-
const i = this._editQuery
|
|
1161
|
-
|
|
1317
|
+
const i = (_a = this._editQuery
|
|
1318
|
+
.getValue()
|
|
1319
|
+
.part) === null || _a === void 0 ? void 0 : _a.fragments.findIndex((p) => {
|
|
1320
|
+
var _a;
|
|
1321
|
+
return (_a = TokenLocation.parse(p.location)) === null || _a === void 0 ? void 0 : _a.overlaps(loc);
|
|
1162
1322
|
});
|
|
1163
1323
|
if (i === -1) {
|
|
1164
1324
|
return;
|
|
@@ -1169,10 +1329,15 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1169
1329
|
}
|
|
1170
1330
|
deleteFragmentFromHint(hint) {
|
|
1171
1331
|
const loc = TokenLocation.parse(hint.location);
|
|
1172
|
-
|
|
1332
|
+
if (loc) {
|
|
1333
|
+
this._editService.deleteFragment(loc);
|
|
1334
|
+
}
|
|
1173
1335
|
}
|
|
1174
1336
|
navigateToFragmentEditor(loc) {
|
|
1175
1337
|
const part = this._editQuery.getValue().part;
|
|
1338
|
+
if (!part) {
|
|
1339
|
+
return;
|
|
1340
|
+
}
|
|
1176
1341
|
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editItemQuery.getValue().facet.partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
|
|
1177
1342
|
// navigate to the editor
|
|
1178
1343
|
this._router.navigate([route], rid
|
|
@@ -1184,6 +1349,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1184
1349
|
: {});
|
|
1185
1350
|
}
|
|
1186
1351
|
editFragment() {
|
|
1352
|
+
if (!this.view) {
|
|
1353
|
+
return;
|
|
1354
|
+
}
|
|
1187
1355
|
const lf = this.view.getCheckedLocationAndFragment();
|
|
1188
1356
|
if (!lf || lf.fragment === -1) {
|
|
1189
1357
|
return;
|
|
@@ -1195,7 +1363,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1195
1363
|
this.navigateToFragmentEditor(hint.location);
|
|
1196
1364
|
}
|
|
1197
1365
|
moveFragmentFromHint(hint) {
|
|
1198
|
-
if (!this.pickedLocation ||
|
|
1366
|
+
if (!this.pickedLocation ||
|
|
1367
|
+
this.pickedLocation === hint.location ||
|
|
1368
|
+
!this.partId) {
|
|
1199
1369
|
return;
|
|
1200
1370
|
}
|
|
1201
1371
|
this._editService.applyLayerPatches(this.partId, [
|
|
@@ -1203,6 +1373,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1203
1373
|
]);
|
|
1204
1374
|
}
|
|
1205
1375
|
addFragment() {
|
|
1376
|
+
if (!this.view) {
|
|
1377
|
+
return;
|
|
1378
|
+
}
|
|
1206
1379
|
const lf = this.view.getCheckedLocationAndFragment();
|
|
1207
1380
|
if (!lf || lf.fragment > -1) {
|
|
1208
1381
|
return;
|
|
@@ -1210,6 +1383,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1210
1383
|
this.navigateToFragmentEditor(lf.location.toString());
|
|
1211
1384
|
}
|
|
1212
1385
|
pickLocation() {
|
|
1386
|
+
if (!this.view) {
|
|
1387
|
+
return;
|
|
1388
|
+
}
|
|
1213
1389
|
const lf = this.view.getCheckedLocationAndFragment();
|
|
1214
1390
|
if (!lf) {
|
|
1215
1391
|
return;
|
|
@@ -1218,26 +1394,31 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1218
1394
|
this.pickedLocation = (lf.fragment === -1 ? lf.location : locations[lf.fragment]).toString();
|
|
1219
1395
|
}
|
|
1220
1396
|
clearTileChecks() {
|
|
1397
|
+
if (!this.view) {
|
|
1398
|
+
return;
|
|
1399
|
+
}
|
|
1221
1400
|
this.view.setAllTilesViewState({ checked: false });
|
|
1222
|
-
this.pickedLocation =
|
|
1401
|
+
this.pickedLocation = undefined;
|
|
1223
1402
|
}
|
|
1224
1403
|
applyLayerPatches(patches) {
|
|
1225
|
-
|
|
1404
|
+
if (this.partId) {
|
|
1405
|
+
this._editService.applyLayerPatches(this.partId, patches);
|
|
1406
|
+
}
|
|
1226
1407
|
}
|
|
1227
1408
|
close() {
|
|
1228
1409
|
this._router.navigate(['/items', this.itemId]);
|
|
1229
1410
|
}
|
|
1230
1411
|
}
|
|
1231
|
-
TiledTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1232
|
-
TiledTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1233
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1412
|
+
TiledTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TiledTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i5.EditLayerPartQuery }, { token: i5.EditLayerPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }, { token: i3.LibraryRouteService }, { token: i4.DialogService }, { token: i2.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1413
|
+
TiledTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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"], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i7$1.MatCardHeader, selector: "mat-card-header" }, { type: i8$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9.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"] }, { type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { type: i10.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i11.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: i7.TextTileComponent, selector: "cadmus-text-tile", inputs: ["selected", "checkable", "readonly", "color", "checked", "tile"], outputs: ["tileChange", "editData", "checkedChange"] }, { type: i13.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i13.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: i8$1.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }], directives: [{ type: i7$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { type: i7$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { type: i7$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i17.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"] }, { type: i17.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"] }, { type: i17.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"] }, { type: i8.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i13.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i13.MatExpansionPanelDescription, selector: "mat-panel-description" }], pipes: { "async": i8.AsyncPipe } });
|
|
1414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TiledTextLayerPartFeatureComponent, decorators: [{
|
|
1234
1415
|
type: Component,
|
|
1235
|
-
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 <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)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile(
|
|
1236
|
-
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i5.EditLayerPartQuery }, { type: i5.EditLayerPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }, { type: i3.LibraryRouteService }, { type: i4.DialogService }, { type: i2.
|
|
1416
|
+
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 <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"] }]
|
|
1417
|
+
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i5.EditLayerPartQuery }, { type: i5.EditLayerPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }, { type: i3.LibraryRouteService }, { type: i4.DialogService }, { type: i2.UserLevelService }]; } });
|
|
1237
1418
|
|
|
1238
1419
|
let EditTiledTextPartStore = class EditTiledTextPartStore extends Store {
|
|
1239
1420
|
constructor() {
|
|
1240
|
-
super(
|
|
1421
|
+
super({});
|
|
1241
1422
|
}
|
|
1242
1423
|
setDirty(value) {
|
|
1243
1424
|
this.update({ dirty: value });
|
|
@@ -1246,12 +1427,12 @@ let EditTiledTextPartStore = class EditTiledTextPartStore extends Store {
|
|
|
1246
1427
|
this.update({ saving: value });
|
|
1247
1428
|
}
|
|
1248
1429
|
};
|
|
1249
|
-
EditTiledTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1250
|
-
EditTiledTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1430
|
+
EditTiledTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1431
|
+
EditTiledTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartStore, providedIn: 'root' });
|
|
1251
1432
|
EditTiledTextPartStore = __decorate([
|
|
1252
1433
|
StoreConfig({ name: TILED_TEXT_PART_TYPEID })
|
|
1253
1434
|
], EditTiledTextPartStore);
|
|
1254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1435
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartStore, decorators: [{
|
|
1255
1436
|
type: Injectable,
|
|
1256
1437
|
args: [{ providedIn: 'root' }]
|
|
1257
1438
|
}], ctorParameters: function () { return []; } });
|
|
@@ -1261,9 +1442,9 @@ class EditTiledTextPartQuery extends EditPartQueryBase {
|
|
|
1261
1442
|
super(store);
|
|
1262
1443
|
}
|
|
1263
1444
|
}
|
|
1264
|
-
EditTiledTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1265
|
-
EditTiledTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1445
|
+
EditTiledTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartQuery, deps: [{ token: EditTiledTextPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1446
|
+
EditTiledTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartQuery, providedIn: 'root' });
|
|
1447
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartQuery, decorators: [{
|
|
1267
1448
|
type: Injectable,
|
|
1268
1449
|
args: [{ providedIn: 'root' }]
|
|
1269
1450
|
}], ctorParameters: function () { return [{ type: EditTiledTextPartStore }]; } });
|
|
@@ -1281,10 +1462,10 @@ class EditTiledTextPartService extends EditPartServiceBase {
|
|
|
1281
1462
|
* @param itemId The item's ID.
|
|
1282
1463
|
* @param thesauriIds The optional thesauri IDs.
|
|
1283
1464
|
*/
|
|
1284
|
-
loadBaseTextPart(itemId, thesauriIds
|
|
1465
|
+
loadBaseTextPart(itemId, thesauriIds) {
|
|
1285
1466
|
// get the base text part ID from the item's ID
|
|
1286
1467
|
this.itemService
|
|
1287
|
-
.getPartFromTypeAndRole(itemId,
|
|
1468
|
+
.getPartFromTypeAndRole(itemId, 'any', 'base-text')
|
|
1288
1469
|
.subscribe((part) => {
|
|
1289
1470
|
this.load(part.id, thesauriIds);
|
|
1290
1471
|
}, (error) => {
|
|
@@ -1292,9 +1473,9 @@ class EditTiledTextPartService extends EditPartServiceBase {
|
|
|
1292
1473
|
});
|
|
1293
1474
|
}
|
|
1294
1475
|
}
|
|
1295
|
-
EditTiledTextPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1296
|
-
EditTiledTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1476
|
+
EditTiledTextPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartService, deps: [{ token: EditTiledTextPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1477
|
+
EditTiledTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartService, providedIn: 'root' });
|
|
1478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTiledTextPartService, decorators: [{
|
|
1298
1479
|
type: Injectable,
|
|
1299
1480
|
args: [{ providedIn: 'root' }]
|
|
1300
1481
|
}], ctorParameters: function () { return [{ type: EditTiledTextPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -1304,14 +1485,14 @@ class TiledTextPartFeatureComponent extends EditPartFeatureBase {
|
|
|
1304
1485
|
super(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService);
|
|
1305
1486
|
}
|
|
1306
1487
|
ngOnInit() {
|
|
1307
|
-
this.initEditor(
|
|
1488
|
+
this.initEditor();
|
|
1308
1489
|
}
|
|
1309
1490
|
}
|
|
1310
|
-
TiledTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1311
|
-
TiledTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1312
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1491
|
+
TiledTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TiledTextPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditTiledTextPartQuery }, { token: EditTiledTextPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1492
|
+
TiledTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.TiledTextPartComponent, selector: "cadmus-tiled-text-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
1493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TiledTextPartFeatureComponent, decorators: [{
|
|
1313
1494
|
type: Component,
|
|
1314
|
-
args: [{ selector: 'cadmus-tiled-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n", styles: [""] }]
|
|
1495
|
+
args: [{ selector: 'cadmus-tiled-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n", styles: [""] }]
|
|
1315
1496
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditTiledTextPartQuery }, { type: EditTiledTextPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
1316
1497
|
|
|
1317
1498
|
/**
|
|
@@ -1322,7 +1503,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
|
|
|
1322
1503
|
* no save capability: the single fragments are edited and saved as needed.
|
|
1323
1504
|
*/
|
|
1324
1505
|
class TokenTextLayerPartFeatureComponent {
|
|
1325
|
-
constructor(route, _router, _editQuery, _editService, _textLayerService, _editItemQuery, _editItemService, _libraryRouteService, _dialogService,
|
|
1506
|
+
constructor(route, _router, _editQuery, _editService, _textLayerService, _editItemQuery, _editItemService, _libraryRouteService, _dialogService, userLevelService) {
|
|
1326
1507
|
this._router = _router;
|
|
1327
1508
|
this._editQuery = _editQuery;
|
|
1328
1509
|
this._editService = _editService;
|
|
@@ -1332,16 +1513,25 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1332
1513
|
this._libraryRouteService = _libraryRouteService;
|
|
1333
1514
|
this._dialogService = _dialogService;
|
|
1334
1515
|
this.textSize = 14;
|
|
1335
|
-
this.itemId = route.snapshot.params
|
|
1336
|
-
this.partId = route.snapshot.params
|
|
1516
|
+
this.itemId = route.snapshot.params['iid'];
|
|
1517
|
+
this.partId = route.snapshot.params['pid'];
|
|
1337
1518
|
if (this.partId === 'new') {
|
|
1338
|
-
this.partId =
|
|
1519
|
+
this.partId = undefined;
|
|
1339
1520
|
}
|
|
1340
|
-
this.roleId = route.snapshot.queryParams
|
|
1521
|
+
this.roleId = route.snapshot.queryParams['rid'];
|
|
1341
1522
|
if (this.roleId === 'default') {
|
|
1342
|
-
this.roleId =
|
|
1523
|
+
this.roleId = undefined;
|
|
1343
1524
|
}
|
|
1344
|
-
this.userLevel =
|
|
1525
|
+
this.userLevel = userLevelService.getCurrentUserLevel();
|
|
1526
|
+
this.loading$ = this._editQuery.selectLoading();
|
|
1527
|
+
this.error$ = this._editQuery.selectError();
|
|
1528
|
+
this.baseText$ = this._editQuery.select((state) => state.baseText);
|
|
1529
|
+
this.locations$ = this._editQuery.select((state) => state.locations);
|
|
1530
|
+
this.refreshingBreakChance$ = this._editQuery.selectRefreshingBreakChance();
|
|
1531
|
+
this.breakChance$ = this._editQuery.selectBreakChance();
|
|
1532
|
+
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1533
|
+
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1534
|
+
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
1345
1535
|
}
|
|
1346
1536
|
canDeactivate() {
|
|
1347
1537
|
return true;
|
|
@@ -1366,15 +1556,6 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1366
1556
|
this.textSize = size;
|
|
1367
1557
|
}
|
|
1368
1558
|
ngOnInit() {
|
|
1369
|
-
this.loading$ = this._editQuery.selectLoading();
|
|
1370
|
-
this.error$ = this._editQuery.selectError();
|
|
1371
|
-
this.baseText$ = this._editQuery.select((state) => state.baseText);
|
|
1372
|
-
this.locations$ = this._editQuery.select((state) => state.locations);
|
|
1373
|
-
this.refreshingBreakChance$ = this._editQuery.selectRefreshingBreakChance();
|
|
1374
|
-
this.breakChance$ = this._editQuery.selectBreakChance();
|
|
1375
|
-
this.layerHints$ = this._editQuery.selectLayerHints();
|
|
1376
|
-
this.patchingLayer$ = this._editQuery.selectPatchingLayers();
|
|
1377
|
-
this.deletingFragment$ = this._editQuery.selectDeletingFragment();
|
|
1378
1559
|
// when the base text changes, load all the fragments locations
|
|
1379
1560
|
// this.baseText$.subscribe(_ => {
|
|
1380
1561
|
// this.loadAllFragmentLocations();
|
|
@@ -1382,10 +1563,16 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1382
1563
|
// ensure the container item is loaded
|
|
1383
1564
|
this.ensureItemLoaded(this.itemId);
|
|
1384
1565
|
// load the layer part data
|
|
1385
|
-
|
|
1566
|
+
if (this.partId) {
|
|
1567
|
+
this._editService.load(this.itemId, this.partId);
|
|
1568
|
+
}
|
|
1386
1569
|
}
|
|
1387
1570
|
deleteFragment() {
|
|
1388
|
-
const
|
|
1571
|
+
const range = this._textLayerService.getSelectedRange();
|
|
1572
|
+
if (!range) {
|
|
1573
|
+
return;
|
|
1574
|
+
}
|
|
1575
|
+
const location = this._textLayerService.getSelectedLocationForEdit(range);
|
|
1389
1576
|
if (!location) {
|
|
1390
1577
|
return;
|
|
1391
1578
|
}
|
|
@@ -1394,8 +1581,11 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1394
1581
|
.subscribe((ok) => {
|
|
1395
1582
|
if (ok) {
|
|
1396
1583
|
// find the fragment and remove it from the part
|
|
1397
|
-
const i = this._editQuery
|
|
1398
|
-
|
|
1584
|
+
const i = this._editQuery
|
|
1585
|
+
.getValue()
|
|
1586
|
+
.part.fragments.findIndex((p) => {
|
|
1587
|
+
var _a;
|
|
1588
|
+
return (_a = TokenLocation.parse(p.location)) === null || _a === void 0 ? void 0 : _a.overlaps(location);
|
|
1399
1589
|
});
|
|
1400
1590
|
if (i === -1) {
|
|
1401
1591
|
return;
|
|
@@ -1406,13 +1596,18 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1406
1596
|
}
|
|
1407
1597
|
deleteFragmentFromHint(hint) {
|
|
1408
1598
|
const loc = TokenLocation.parse(hint.location);
|
|
1409
|
-
|
|
1599
|
+
if (loc) {
|
|
1600
|
+
this._editService.deleteFragment(loc);
|
|
1601
|
+
}
|
|
1410
1602
|
}
|
|
1411
1603
|
refreshBreakChance() {
|
|
1412
1604
|
this._editService.refreshBreakChance();
|
|
1413
1605
|
}
|
|
1414
1606
|
navigateToFragmentEditor(loc) {
|
|
1415
1607
|
const part = this._editQuery.getValue().part;
|
|
1608
|
+
if (!part) {
|
|
1609
|
+
return;
|
|
1610
|
+
}
|
|
1416
1611
|
const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editItemQuery.getValue().facet.partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
|
|
1417
1612
|
// navigate to the editor
|
|
1418
1613
|
this._router.navigate([route], rid
|
|
@@ -1424,7 +1619,11 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1424
1619
|
: {});
|
|
1425
1620
|
}
|
|
1426
1621
|
editFragment() {
|
|
1427
|
-
const
|
|
1622
|
+
const range = this._textLayerService.getSelectedRange();
|
|
1623
|
+
if (!range) {
|
|
1624
|
+
return;
|
|
1625
|
+
}
|
|
1626
|
+
const location = this._textLayerService.getSelectedLocationForEdit(range);
|
|
1428
1627
|
if (location) {
|
|
1429
1628
|
this.navigateToFragmentEditor(location.toString());
|
|
1430
1629
|
}
|
|
@@ -1433,13 +1632,20 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1433
1632
|
this.navigateToFragmentEditor(hint.location);
|
|
1434
1633
|
}
|
|
1435
1634
|
addFragment() {
|
|
1436
|
-
|
|
1635
|
+
var _a;
|
|
1636
|
+
const range = this._textLayerService.getSelectedRange();
|
|
1637
|
+
if (!range) {
|
|
1638
|
+
return;
|
|
1639
|
+
}
|
|
1640
|
+
const location = this._textLayerService.getSelectedLocationForNew(range, ((_a = this._editQuery.getValue()) === null || _a === void 0 ? void 0 : _a.baseText) || '');
|
|
1437
1641
|
if (location) {
|
|
1438
1642
|
this.navigateToFragmentEditor(location.toString());
|
|
1439
1643
|
}
|
|
1440
1644
|
}
|
|
1441
1645
|
moveFragmentFromHint(hint) {
|
|
1442
|
-
if (!this.pickedLocation ||
|
|
1646
|
+
if (!this.pickedLocation ||
|
|
1647
|
+
this.pickedLocation === hint.location ||
|
|
1648
|
+
!this.partId) {
|
|
1443
1649
|
return;
|
|
1444
1650
|
}
|
|
1445
1651
|
this._editService.applyLayerPatches(this.partId, [
|
|
@@ -1447,10 +1653,17 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1447
1653
|
]);
|
|
1448
1654
|
}
|
|
1449
1655
|
applyLayerPatches(patches) {
|
|
1450
|
-
|
|
1656
|
+
if (this.partId) {
|
|
1657
|
+
this._editService.applyLayerPatches(this.partId, patches);
|
|
1658
|
+
}
|
|
1451
1659
|
}
|
|
1452
1660
|
pickLocation() {
|
|
1453
|
-
|
|
1661
|
+
var _a;
|
|
1662
|
+
const range = this._textLayerService.getSelectedRange();
|
|
1663
|
+
if (!range) {
|
|
1664
|
+
return;
|
|
1665
|
+
}
|
|
1666
|
+
const location = this._textLayerService.getSelectedLocationForNew(range, ((_a = this._editQuery.getValue()) === null || _a === void 0 ? void 0 : _a.baseText) || '');
|
|
1454
1667
|
if (location) {
|
|
1455
1668
|
this.pickedLocation = location.toString();
|
|
1456
1669
|
}
|
|
@@ -1459,16 +1672,16 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1459
1672
|
this._router.navigate(['/items', this.itemId]);
|
|
1460
1673
|
}
|
|
1461
1674
|
}
|
|
1462
|
-
TokenTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1463
|
-
TokenTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1675
|
+
TokenTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TokenTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i5.EditLayerPartQuery }, { token: i5.EditLayerPartService }, { token: i3.TextLayerService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }, { token: i3.LibraryRouteService }, { token: i4.DialogService }, { token: i2.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1676
|
+
TokenTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: TokenTextLayerPartFeatureComponent, selector: "cadmus-token-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 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 <div *ngIf=\"error$ | async as error\" class=\"error-message\">{{ error }}</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]=\"\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: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7$1.MatCard, selector: "mat-card", exportAs: ["matCard"] }, { type: i7$1.MatCardHeader, selector: "mat-card-header" }, { type: i8$2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i9.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"] }, { type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { type: i10.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i11.MatSpinner, selector: "mat-spinner", inputs: ["color"] }, { type: i8$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { type: i13.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { type: i13.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { type: i8$1.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }], directives: [{ type: i7$1.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { type: i7$1.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { type: i8.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i8.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i16.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i7$1.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { type: i7$1.MatCardContent, selector: "mat-card-content, [mat-card-content], [matCardContent]" }, { type: i17.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"] }, { type: i17.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"] }, { type: i17.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"] }, { type: i13.MatExpansionPanelTitle, selector: "mat-panel-title" }, { type: i13.MatExpansionPanelDescription, selector: "mat-panel-description" }], pipes: { "async": i8.AsyncPipe } });
|
|
1677
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TokenTextLayerPartFeatureComponent, decorators: [{
|
|
1465
1678
|
type: Component,
|
|
1466
|
-
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 <div *ngIf=\"error$ | async as error\" class=\"error-message\">{{ error }}</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]=\"\r\n (loading$ | async) ||\r\n (patchingLayer$ | async) ||\r\n (deletingFragment$ | async)\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: [""] }]
|
|
1467
|
-
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i5.EditLayerPartQuery }, { type: i5.EditLayerPartService }, { type: i3.TextLayerService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }, { type: i3.LibraryRouteService }, { type: i4.DialogService }, { type: i2.
|
|
1679
|
+
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 <div *ngIf=\"error$ | async as error\" class=\"error-message\">{{ error }}</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]=\"\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: [""] }]
|
|
1680
|
+
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i5.EditLayerPartQuery }, { type: i5.EditLayerPartService }, { type: i3.TextLayerService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }, { type: i3.LibraryRouteService }, { type: i4.DialogService }, { type: i2.UserLevelService }]; } });
|
|
1468
1681
|
|
|
1469
1682
|
let EditTokenTextPartStore = class EditTokenTextPartStore extends Store {
|
|
1470
1683
|
constructor() {
|
|
1471
|
-
super(
|
|
1684
|
+
super({});
|
|
1472
1685
|
}
|
|
1473
1686
|
setDirty(value) {
|
|
1474
1687
|
this.update({ dirty: value });
|
|
@@ -1477,12 +1690,12 @@ let EditTokenTextPartStore = class EditTokenTextPartStore extends Store {
|
|
|
1477
1690
|
this.update({ saving: value });
|
|
1478
1691
|
}
|
|
1479
1692
|
};
|
|
1480
|
-
EditTokenTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1481
|
-
EditTokenTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1693
|
+
EditTokenTextPartStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1694
|
+
EditTokenTextPartStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartStore, providedIn: 'root' });
|
|
1482
1695
|
EditTokenTextPartStore = __decorate([
|
|
1483
1696
|
StoreConfig({ name: TOKEN_TEXT_PART_TYPEID })
|
|
1484
1697
|
], EditTokenTextPartStore);
|
|
1485
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1698
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartStore, decorators: [{
|
|
1486
1699
|
type: Injectable,
|
|
1487
1700
|
args: [{ providedIn: 'root' }]
|
|
1488
1701
|
}], ctorParameters: function () { return []; } });
|
|
@@ -1492,9 +1705,9 @@ class EditTokenTextPartQuery extends EditPartQueryBase {
|
|
|
1492
1705
|
super(store);
|
|
1493
1706
|
}
|
|
1494
1707
|
}
|
|
1495
|
-
EditTokenTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1496
|
-
EditTokenTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1708
|
+
EditTokenTextPartQuery.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartQuery, deps: [{ token: EditTokenTextPartStore }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1709
|
+
EditTokenTextPartQuery.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartQuery, providedIn: 'root' });
|
|
1710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartQuery, decorators: [{
|
|
1498
1711
|
type: Injectable,
|
|
1499
1712
|
args: [{ providedIn: 'root' }]
|
|
1500
1713
|
}], ctorParameters: function () { return [{ type: EditTokenTextPartStore }]; } });
|
|
@@ -1505,9 +1718,9 @@ class EditTokenTextPartService extends EditPartServiceBase {
|
|
|
1505
1718
|
this.store = editPartStore;
|
|
1506
1719
|
}
|
|
1507
1720
|
}
|
|
1508
|
-
EditTokenTextPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1509
|
-
EditTokenTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1721
|
+
EditTokenTextPartService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartService, deps: [{ token: EditTokenTextPartStore }, { token: i2.ItemService }, { token: i2.ThesaurusService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1722
|
+
EditTokenTextPartService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartService, providedIn: 'root' });
|
|
1723
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: EditTokenTextPartService, decorators: [{
|
|
1511
1724
|
type: Injectable,
|
|
1512
1725
|
args: [{ providedIn: 'root' }]
|
|
1513
1726
|
}], ctorParameters: function () { return [{ type: EditTokenTextPartStore }, { type: i2.ItemService }, { type: i2.ThesaurusService }]; } });
|
|
@@ -1517,14 +1730,14 @@ class TokenTextPartFeatureComponent extends EditPartFeatureBase {
|
|
|
1517
1730
|
super(router, route, snackbar, editPartQuery, editPartService, editItemQuery, editItemService);
|
|
1518
1731
|
}
|
|
1519
1732
|
ngOnInit() {
|
|
1520
|
-
this.initEditor(
|
|
1733
|
+
this.initEditor();
|
|
1521
1734
|
}
|
|
1522
1735
|
}
|
|
1523
|
-
TokenTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1524
|
-
TokenTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1525
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1736
|
+
TokenTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TokenTextPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2$1.MatSnackBar }, { token: EditTokenTextPartQuery }, { token: EditTokenTextPartService }, { token: i5.EditItemQuery }, { token: i5.EditItemService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1737
|
+
TokenTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n></cadmus-token-text-part>\r\n", styles: [""], components: [{ type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { type: i7.TokenTextPartComponent, selector: "cadmus-token-text-part" }], pipes: { "async": i8.AsyncPipe } });
|
|
1738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: TokenTextPartFeatureComponent, decorators: [{
|
|
1526
1739
|
type: Component,
|
|
1527
|
-
args: [{ selector: 'cadmus-token-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"part$ | async\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"thesauri$ | async\"\r\n (editorClose)=\"close()\"\r\n></cadmus-token-text-part>\r\n", styles: [""] }]
|
|
1740
|
+
args: [{ selector: 'cadmus-token-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [itemId]=\"itemId\"\r\n [roleId]=\"roleId\"\r\n [model]=\"$any(part$ | async)\"\r\n (modelChange)=\"save($event)\"\r\n [thesauri]=\"(thesauri$ | async) || undefined\"\r\n (editorClose)=\"close()\"\r\n></cadmus-token-text-part>\r\n", styles: [""] }]
|
|
1528
1741
|
}], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2$1.MatSnackBar }, { type: EditTokenTextPartQuery }, { type: EditTokenTextPartService }, { type: i5.EditItemQuery }, { type: i5.EditItemService }]; } });
|
|
1529
1742
|
|
|
1530
1743
|
// https://github.com/ng-packagr/ng-packagr/issues/778
|
|
@@ -1559,6 +1772,12 @@ const RouterModuleForChild = RouterModule.forChild([
|
|
|
1559
1772
|
component: HistoricalDatePartFeatureComponent,
|
|
1560
1773
|
canDeactivate: [PendingChangesGuard],
|
|
1561
1774
|
},
|
|
1775
|
+
{
|
|
1776
|
+
path: `${HISTORICAL_EVENTS_PART_TYPEID}/:pid`,
|
|
1777
|
+
pathMatch: 'full',
|
|
1778
|
+
component: HistoricalEventsPartFeatureComponent,
|
|
1779
|
+
canDeactivate: [PendingChangesGuard],
|
|
1780
|
+
},
|
|
1562
1781
|
{
|
|
1563
1782
|
path: `${KEYWORDS_PART_TYPEID}/:pid`,
|
|
1564
1783
|
pathMatch: 'full',
|
|
@@ -1571,6 +1790,12 @@ const RouterModuleForChild = RouterModule.forChild([
|
|
|
1571
1790
|
component: IndexKeywordsPartFeatureComponent,
|
|
1572
1791
|
canDeactivate: [PendingChangesGuard],
|
|
1573
1792
|
},
|
|
1793
|
+
{
|
|
1794
|
+
path: `${METADATA_PART_TYPEID}/:pid`,
|
|
1795
|
+
pathMatch: 'full',
|
|
1796
|
+
component: MetadataPartFeatureComponent,
|
|
1797
|
+
canDeactivate: [PendingChangesGuard],
|
|
1798
|
+
},
|
|
1574
1799
|
{
|
|
1575
1800
|
path: `${NOTE_PART_TYPEID}/:pid`,
|
|
1576
1801
|
pathMatch: 'full',
|
|
@@ -1616,16 +1841,18 @@ const RouterModuleForChild = RouterModule.forChild([
|
|
|
1616
1841
|
]);
|
|
1617
1842
|
class CadmusPartGeneralPgModule {
|
|
1618
1843
|
}
|
|
1619
|
-
CadmusPartGeneralPgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1620
|
-
CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
1844
|
+
CadmusPartGeneralPgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CadmusPartGeneralPgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1845
|
+
CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CadmusPartGeneralPgModule, declarations: [BibliographyPartFeatureComponent,
|
|
1621
1846
|
CategoriesPartFeatureComponent,
|
|
1622
1847
|
ChronologyFragmentFeatureComponent,
|
|
1623
1848
|
CommentFragmentFeatureComponent,
|
|
1624
1849
|
CommentPartFeatureComponent,
|
|
1625
1850
|
DocReferencesPartFeatureComponent,
|
|
1626
1851
|
HistoricalDatePartFeatureComponent,
|
|
1852
|
+
HistoricalEventsPartFeatureComponent,
|
|
1627
1853
|
IndexKeywordsPartFeatureComponent,
|
|
1628
1854
|
KeywordsPartFeatureComponent,
|
|
1855
|
+
MetadataPartFeatureComponent,
|
|
1629
1856
|
NotePartFeatureComponent,
|
|
1630
1857
|
TiledTextLayerPartFeatureComponent,
|
|
1631
1858
|
TiledTextPartFeatureComponent,
|
|
@@ -1633,9 +1860,20 @@ CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0
|
|
|
1633
1860
|
TokenTextPartFeatureComponent], imports: [CommonModule,
|
|
1634
1861
|
FormsModule,
|
|
1635
1862
|
ReactiveFormsModule, i1.RouterModule,
|
|
1863
|
+
// material
|
|
1864
|
+
MatButtonModule,
|
|
1865
|
+
MatCheckboxModule,
|
|
1866
|
+
MatCardModule,
|
|
1867
|
+
MatExpansionModule,
|
|
1868
|
+
MatIconModule,
|
|
1869
|
+
MatInputModule,
|
|
1870
|
+
MatProgressSpinnerModule,
|
|
1871
|
+
MatSelectModule,
|
|
1872
|
+
MatTooltipModule,
|
|
1873
|
+
MatToolbarModule,
|
|
1874
|
+
FlexLayoutModule,
|
|
1636
1875
|
// cadmus
|
|
1637
1876
|
CadmusCoreModule,
|
|
1638
|
-
CadmusMaterialModule,
|
|
1639
1877
|
CadmusUiModule,
|
|
1640
1878
|
CadmusPartGeneralUiModule,
|
|
1641
1879
|
CadmusStateModule,
|
|
@@ -1648,21 +1886,34 @@ CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0
|
|
|
1648
1886
|
CommentPartFeatureComponent,
|
|
1649
1887
|
DocReferencesPartFeatureComponent,
|
|
1650
1888
|
HistoricalDatePartFeatureComponent,
|
|
1889
|
+
HistoricalEventsPartFeatureComponent,
|
|
1651
1890
|
IndexKeywordsPartFeatureComponent,
|
|
1652
1891
|
KeywordsPartFeatureComponent,
|
|
1892
|
+
MetadataPartFeatureComponent,
|
|
1653
1893
|
NotePartFeatureComponent,
|
|
1654
1894
|
TiledTextLayerPartFeatureComponent,
|
|
1655
1895
|
TiledTextPartFeatureComponent,
|
|
1656
1896
|
TokenTextLayerPartFeatureComponent,
|
|
1657
1897
|
TokenTextPartFeatureComponent] });
|
|
1658
|
-
CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
1898
|
+
CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CadmusPartGeneralPgModule, imports: [[
|
|
1659
1899
|
CommonModule,
|
|
1660
1900
|
FormsModule,
|
|
1661
1901
|
ReactiveFormsModule,
|
|
1662
1902
|
RouterModuleForChild,
|
|
1903
|
+
// material
|
|
1904
|
+
MatButtonModule,
|
|
1905
|
+
MatCheckboxModule,
|
|
1906
|
+
MatCardModule,
|
|
1907
|
+
MatExpansionModule,
|
|
1908
|
+
MatIconModule,
|
|
1909
|
+
MatInputModule,
|
|
1910
|
+
MatProgressSpinnerModule,
|
|
1911
|
+
MatSelectModule,
|
|
1912
|
+
MatTooltipModule,
|
|
1913
|
+
MatToolbarModule,
|
|
1914
|
+
FlexLayoutModule,
|
|
1663
1915
|
// cadmus
|
|
1664
1916
|
CadmusCoreModule,
|
|
1665
|
-
CadmusMaterialModule,
|
|
1666
1917
|
CadmusUiModule,
|
|
1667
1918
|
CadmusPartGeneralUiModule,
|
|
1668
1919
|
CadmusStateModule,
|
|
@@ -1670,7 +1921,7 @@ CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
|
|
|
1670
1921
|
NgToolsModule,
|
|
1671
1922
|
NgMatToolsModule,
|
|
1672
1923
|
]] });
|
|
1673
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1924
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CadmusPartGeneralPgModule, decorators: [{
|
|
1674
1925
|
type: NgModule,
|
|
1675
1926
|
args: [{
|
|
1676
1927
|
imports: [
|
|
@@ -1678,9 +1929,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
|
|
|
1678
1929
|
FormsModule,
|
|
1679
1930
|
ReactiveFormsModule,
|
|
1680
1931
|
RouterModuleForChild,
|
|
1932
|
+
// material
|
|
1933
|
+
MatButtonModule,
|
|
1934
|
+
MatCheckboxModule,
|
|
1935
|
+
MatCardModule,
|
|
1936
|
+
MatExpansionModule,
|
|
1937
|
+
MatIconModule,
|
|
1938
|
+
MatInputModule,
|
|
1939
|
+
MatProgressSpinnerModule,
|
|
1940
|
+
MatSelectModule,
|
|
1941
|
+
MatTooltipModule,
|
|
1942
|
+
MatToolbarModule,
|
|
1943
|
+
FlexLayoutModule,
|
|
1681
1944
|
// cadmus
|
|
1682
1945
|
CadmusCoreModule,
|
|
1683
|
-
CadmusMaterialModule,
|
|
1684
1946
|
CadmusUiModule,
|
|
1685
1947
|
CadmusPartGeneralUiModule,
|
|
1686
1948
|
CadmusStateModule,
|
|
@@ -1696,8 +1958,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
|
|
|
1696
1958
|
CommentPartFeatureComponent,
|
|
1697
1959
|
DocReferencesPartFeatureComponent,
|
|
1698
1960
|
HistoricalDatePartFeatureComponent,
|
|
1961
|
+
HistoricalEventsPartFeatureComponent,
|
|
1699
1962
|
IndexKeywordsPartFeatureComponent,
|
|
1700
1963
|
KeywordsPartFeatureComponent,
|
|
1964
|
+
MetadataPartFeatureComponent,
|
|
1701
1965
|
NotePartFeatureComponent,
|
|
1702
1966
|
TiledTextLayerPartFeatureComponent,
|
|
1703
1967
|
TiledTextPartFeatureComponent,
|
|
@@ -1712,8 +1976,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
|
|
|
1712
1976
|
CommentPartFeatureComponent,
|
|
1713
1977
|
DocReferencesPartFeatureComponent,
|
|
1714
1978
|
HistoricalDatePartFeatureComponent,
|
|
1979
|
+
HistoricalEventsPartFeatureComponent,
|
|
1715
1980
|
IndexKeywordsPartFeatureComponent,
|
|
1716
1981
|
KeywordsPartFeatureComponent,
|
|
1982
|
+
MetadataPartFeatureComponent,
|
|
1717
1983
|
NotePartFeatureComponent,
|
|
1718
1984
|
TiledTextLayerPartFeatureComponent,
|
|
1719
1985
|
TiledTextPartFeatureComponent,
|
|
@@ -1731,4 +1997,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImpor
|
|
|
1731
1997
|
* Generated bundle index. Do not edit.
|
|
1732
1998
|
*/
|
|
1733
1999
|
|
|
1734
|
-
export { BibliographyPartFeatureComponent, CadmusPartGeneralPgModule, CategoriesPartFeatureComponent, ChronologyFragmentFeatureComponent, CommentFragmentFeatureComponent, CommentPartFeatureComponent, DocReferencesPartFeatureComponent, HistoricalDatePartFeatureComponent, IndexKeywordsPartFeatureComponent, KeywordsPartFeatureComponent, NotePartFeatureComponent, RouterModuleForChild, TiledTextLayerPartFeatureComponent, TiledTextPartFeatureComponent, TokenTextLayerPartFeatureComponent, TokenTextPartFeatureComponent };
|
|
2000
|
+
export { BibliographyPartFeatureComponent, CadmusPartGeneralPgModule, CategoriesPartFeatureComponent, ChronologyFragmentFeatureComponent, CommentFragmentFeatureComponent, CommentPartFeatureComponent, DocReferencesPartFeatureComponent, HistoricalDatePartFeatureComponent, HistoricalEventsPartFeatureComponent, IndexKeywordsPartFeatureComponent, KeywordsPartFeatureComponent, MetadataPartFeatureComponent, NotePartFeatureComponent, RouterModuleForChild, TiledTextLayerPartFeatureComponent, TiledTextPartFeatureComponent, TokenTextLayerPartFeatureComponent, TokenTextPartFeatureComponent };
|
|
2001
|
+
//# sourceMappingURL=myrmidon-cadmus-part-general-pg.mjs.map
|