@myrmidon/cadmus-part-general-pg 16.0.5 → 16.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component } from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, signal } from '@angular/core';
|
|
3
3
|
import { AssertedHistoricalDatesPartComponent, BibliographyPartComponent, CategoriesPartComponent, ChronologyFragmentComponent, ChronotopesPartComponent, CommentEditorComponent, DecoratedCountsPartComponent, DistrictLocationPartComponent, DocReferencesPartComponent, ExternalIdsPartComponent, FlagsPartComponent, HistoricalDatePartComponent, HistoricalEventsPartComponent, IndexKeywordsPartComponent, KeywordsPartComponent, MetadataPartComponent, NamesPartComponent, NotePartComponent, PhysicalMeasurementsPartComponent, PhysicalStatesPartComponent, PinLinksFragmentComponent, PinLinksPartComponent, TextTileComponent, TiledTextPartComponent, TokenTextPartComponent, ASSERTED_HISTORICAL_DATES_PART_TYPEID, BIBLIOGRAPHY_PART_TYPEID, CATEGORIES_PART_TYPEID, COMMENT_PART_TYPEID, CHRONOTOPES_PART_TYPEID, DECORATED_COUNTS_PART_TYPEID, DISTRICT_LOCATION_PART_TYPEID, DOC_REFERENCES_PART_TYPEID, EXTERNAL_IDS_PART_TYPEID, FLAGS_PART_TYPEID, HISTORICAL_DATE_PART_TYPEID, HISTORICAL_EVENTS_PART_TYPEID, KEYWORDS_PART_TYPEID, INDEX_KEYWORDS_PART_TYPEID, METADATA_PART_TYPEID, NAMES_PART_TYPEID, NOTE_PART_TYPEID, PHYSICAL_MEASUREMENTS_PART_TYPEID, PHYSICAL_STATES_PART_TYPEID, PIN_LINKS_PART_TYPEID, TOKEN_TEXT_PART_TYPEID, TILED_TEXT_PART_TYPEID, COMMENT_FRAGMENT_TYPEID, CHRONOLOGY_FRAGMENT_TYPEID, PIN_LINKS_FRAGMENT_TYPEID } from '@myrmidon/cadmus-part-general-ui';
|
|
4
4
|
import * as i4 from '@myrmidon/cadmus-state';
|
|
5
5
|
import { EditPartFeatureBase, EditFragmentFeatureBase } from '@myrmidon/cadmus-state';
|
|
@@ -35,12 +35,12 @@ class AssertedHistoricalDateFeatureComponent extends EditPartFeatureBase {
|
|
|
35
35
|
'doc-reference-tags',
|
|
36
36
|
];
|
|
37
37
|
}
|
|
38
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
39
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AssertedHistoricalDateFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: AssertedHistoricalDateFeatureComponent, isStandalone: true, selector: "cadmus-asserted-historical-date-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar />\r\n<cadmus-asserted-historical-dates-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: AssertedHistoricalDatesPartComponent, selector: "cadmus-asserted-historical-dates-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40
40
|
}
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AssertedHistoricalDateFeatureComponent, decorators: [{
|
|
42
42
|
type: Component,
|
|
43
|
-
args: [{ selector: 'cadmus-asserted-historical-date-feature', imports: [CurrentItemBarComponent, AssertedHistoricalDatesPartComponent], template: "<cadmus-current-item-bar />\r\n<cadmus-asserted-historical-dates-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
43
|
+
args: [{ selector: 'cadmus-asserted-historical-date-feature', imports: [CurrentItemBarComponent, AssertedHistoricalDatesPartComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cadmus-current-item-bar />\r\n<cadmus-asserted-historical-dates-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
44
44
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
45
45
|
|
|
46
46
|
class BibliographyPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -55,12 +55,12 @@ class BibliographyPartFeatureComponent extends EditPartFeatureBase {
|
|
|
55
55
|
'bibliography-author-roles',
|
|
56
56
|
];
|
|
57
57
|
}
|
|
58
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
59
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
58
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BibliographyPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: BibliographyPartFeatureComponent, isStandalone: true, selector: "cadmus-bibliography-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: BibliographyPartComponent, selector: "cadmus-bibliography-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
60
60
|
}
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: BibliographyPartFeatureComponent, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
|
-
args: [{ selector: 'cadmus-bibliography-part-feature', imports: [CurrentItemBarComponent, BibliographyPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
63
|
+
args: [{ selector: 'cadmus-bibliography-part-feature', imports: [CurrentItemBarComponent, BibliographyPartComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cadmus-current-item-bar/>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
64
64
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
65
65
|
|
|
66
66
|
class CategoriesPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -71,12 +71,12 @@ class CategoriesPartFeatureComponent extends EditPartFeatureBase {
|
|
|
71
71
|
getReqThesauriIds() {
|
|
72
72
|
return ['categories'];
|
|
73
73
|
}
|
|
74
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
75
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
74
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CategoriesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CategoriesPartFeatureComponent, isStandalone: true, selector: "cadmus-categories-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-categories-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: CategoriesPartComponent, selector: "cadmus-categories-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
76
76
|
}
|
|
77
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
77
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CategoriesPartFeatureComponent, decorators: [{
|
|
78
78
|
type: Component,
|
|
79
|
-
args: [{ selector: 'cadmus-categories-part-feature', imports: [CurrentItemBarComponent, CategoriesPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-categories-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
79
|
+
args: [{ selector: 'cadmus-categories-part-feature', imports: [CurrentItemBarComponent, CategoriesPartComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cadmus-current-item-bar/>\r\n<cadmus-categories-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
80
80
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
81
81
|
|
|
82
82
|
class ChronologyFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
@@ -86,16 +86,16 @@ class ChronologyFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
|
86
86
|
getReqThesauriIds() {
|
|
87
87
|
return ['chronology-tags'];
|
|
88
88
|
}
|
|
89
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
90
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
89
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChronologyFragmentFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i4.FragmentEditorService }, { token: i4$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Component });
|
|
90
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChronologyFragmentFeatureComponent, isStandalone: true, selector: "cadmus-chronology-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n@let loc = frLoc();\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data()?.baseText || ''\"\r\n [locations]=\"loc ? [loc] : []\"\r\n />\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: ChronologyFragmentComponent, selector: "cadmus-chronology-fragment" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
91
91
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChronologyFragmentFeatureComponent, decorators: [{
|
|
93
93
|
type: Component,
|
|
94
94
|
args: [{ selector: 'cadmus-chronology-fragment-feature', imports: [
|
|
95
95
|
CurrentItemBarComponent,
|
|
96
96
|
DecoratedTokenTextComponent,
|
|
97
97
|
ChronologyFragmentComponent,
|
|
98
|
-
], template: "<cadmus-current-item-bar/>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"
|
|
98
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cadmus-current-item-bar/>\r\n@let loc = frLoc();\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data()?.baseText || ''\"\r\n [locations]=\"loc ? [loc] : []\"\r\n />\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
99
99
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i4$1.LibraryRouteService }] });
|
|
100
100
|
|
|
101
101
|
class ChronotopesPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -111,12 +111,12 @@ class ChronotopesPartFeatureComponent extends EditPartFeatureBase {
|
|
|
111
111
|
'doc-reference-tags',
|
|
112
112
|
];
|
|
113
113
|
}
|
|
114
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
115
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChronotopesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
115
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ChronotopesPartFeatureComponent, isStandalone: true, selector: "cadmus-chronotopes-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\n<cadmus-chronotopes-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: ChronotopesPartComponent, selector: "cadmus-chronotopes-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
116
116
|
}
|
|
117
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
117
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ChronotopesPartFeatureComponent, decorators: [{
|
|
118
118
|
type: Component,
|
|
119
|
-
args: [{ selector: 'cadmus-chronotopes-part-feature', imports: [CurrentItemBarComponent, ChronotopesPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-chronotopes-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
119
|
+
args: [{ selector: 'cadmus-chronotopes-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, ChronotopesPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-chronotopes-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
120
120
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
121
121
|
|
|
122
122
|
class CommentFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
@@ -137,16 +137,16 @@ class CommentFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
|
137
137
|
'assertion-tags',
|
|
138
138
|
];
|
|
139
139
|
}
|
|
140
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
141
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CommentFragmentFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i4.FragmentEditorService }, { token: i4$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Component });
|
|
141
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CommentFragmentFeatureComponent, isStandalone: true, selector: "cadmus-comment-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar />\r\n@let loc = frLoc();\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data()?.baseText || ''\"\r\n [locations]=\"loc ? [loc] : []\"\r\n />\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($any($event!.value!))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: CommentEditorComponent, selector: "cadmus-comment-editor" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
142
142
|
}
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CommentFragmentFeatureComponent, decorators: [{
|
|
144
144
|
type: Component,
|
|
145
|
-
args: [{ selector: 'cadmus-comment-fragment-feature', imports: [
|
|
145
|
+
args: [{ selector: 'cadmus-comment-fragment-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
146
146
|
CurrentItemBarComponent,
|
|
147
147
|
DecoratedTokenTextComponent,
|
|
148
148
|
CommentEditorComponent,
|
|
149
|
-
], template: "<cadmus-current-item-bar />\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"
|
|
149
|
+
], template: "<cadmus-current-item-bar />\r\n@let loc = frLoc();\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data()?.baseText || ''\"\r\n [locations]=\"loc ? [loc] : []\"\r\n />\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($any($event!.value!))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"] }]
|
|
150
150
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i4$1.LibraryRouteService }] });
|
|
151
151
|
|
|
152
152
|
class CommentPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -169,12 +169,12 @@ class CommentPartFeatureComponent extends EditPartFeatureBase {
|
|
|
169
169
|
'asserted-id-features',
|
|
170
170
|
];
|
|
171
171
|
}
|
|
172
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
173
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
172
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CommentPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
173
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: CommentPartFeatureComponent, isStandalone: true, selector: "cadmus-comment-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-comment-editor\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($any($event!.value!))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: CommentEditorComponent, selector: "cadmus-comment-editor" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
174
174
|
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: CommentPartFeatureComponent, decorators: [{
|
|
176
176
|
type: Component,
|
|
177
|
-
args: [{ selector: 'cadmus-comment-part-feature', imports: [CurrentItemBarComponent, CommentEditorComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-comment-editor\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event!.value!))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
177
|
+
args: [{ selector: 'cadmus-comment-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, CommentEditorComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-comment-editor\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($any($event!.value!))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
178
178
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
179
179
|
|
|
180
180
|
class DecoratedCountsPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -185,12 +185,12 @@ class DecoratedCountsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
185
185
|
getReqThesauriIds() {
|
|
186
186
|
return ['decorated-count-ids', 'decorated-count-tags'];
|
|
187
187
|
}
|
|
188
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
189
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
188
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DecoratedCountsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
189
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DecoratedCountsPartFeatureComponent, isStandalone: true, selector: "cadmus-decorated-counts-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar />\r\n<cadmus-decorated-counts-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: DecoratedCountsPartComponent, selector: "cadmus-decorated-counts-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
190
190
|
}
|
|
191
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DecoratedCountsPartFeatureComponent, decorators: [{
|
|
192
192
|
type: Component,
|
|
193
|
-
args: [{ selector: 'cadmus-decorated-counts-part-feature', imports: [CurrentItemBarComponent, DecoratedCountsPartComponent], template: "<cadmus-current-item-bar />\r\n<cadmus-decorated-counts-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
193
|
+
args: [{ selector: 'cadmus-decorated-counts-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, DecoratedCountsPartComponent], template: "<cadmus-current-item-bar />\r\n<cadmus-decorated-counts-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
194
194
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
195
195
|
|
|
196
196
|
class DistrictLocationPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -201,12 +201,12 @@ class DistrictLocationPartFeatureComponent extends EditPartFeatureBase {
|
|
|
201
201
|
getReqThesauriIds() {
|
|
202
202
|
return ['district-name-piece-types', 'district-name-lang-entries'];
|
|
203
203
|
}
|
|
204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
205
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
204
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DistrictLocationPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
205
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DistrictLocationPartFeatureComponent, isStandalone: true, selector: "cadmus-district-location-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-district-location-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: DistrictLocationPartComponent, selector: "cadmus-district-location-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
206
206
|
}
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DistrictLocationPartFeatureComponent, decorators: [{
|
|
208
208
|
type: Component,
|
|
209
|
-
args: [{ selector: 'cadmus-district-location-part-feature', imports: [CurrentItemBarComponent, DistrictLocationPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-district-location-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
209
|
+
args: [{ selector: 'cadmus-district-location-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, DistrictLocationPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-district-location-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
210
210
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
211
211
|
|
|
212
212
|
class DocReferencesPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -217,12 +217,12 @@ class DocReferencesPartFeatureComponent extends EditPartFeatureBase {
|
|
|
217
217
|
getReqThesauriIds() {
|
|
218
218
|
return ['doc-reference-tags', 'doc-reference-types'];
|
|
219
219
|
}
|
|
220
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
221
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
220
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DocReferencesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
221
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DocReferencesPartFeatureComponent, isStandalone: true, selector: "cadmus-doc-references-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: DocReferencesPartComponent, selector: "cadmus-doc-references-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
222
222
|
}
|
|
223
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
223
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DocReferencesPartFeatureComponent, decorators: [{
|
|
224
224
|
type: Component,
|
|
225
|
-
args: [{ selector: 'cadmus-doc-references-part-feature', imports: [CurrentItemBarComponent, DocReferencesPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
225
|
+
args: [{ selector: 'cadmus-doc-references-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, DocReferencesPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
226
226
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
227
227
|
|
|
228
228
|
class ExternalIdsPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -239,12 +239,12 @@ class ExternalIdsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
239
239
|
'doc-reference-tags',
|
|
240
240
|
];
|
|
241
241
|
}
|
|
242
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
243
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ExternalIdsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: ExternalIdsPartFeatureComponent, isStandalone: true, selector: "cadmus-refs-external-ids-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: ExternalIdsPartComponent, selector: "cadmus-refs-external-ids-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
244
244
|
}
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: ExternalIdsPartFeatureComponent, decorators: [{
|
|
246
246
|
type: Component,
|
|
247
|
-
args: [{ selector: 'cadmus-refs-external-ids-part-feature', imports: [CurrentItemBarComponent, ExternalIdsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
247
|
+
args: [{ selector: 'cadmus-refs-external-ids-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, ExternalIdsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
248
248
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
249
249
|
|
|
250
250
|
class FlagsPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -255,12 +255,12 @@ class FlagsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
255
255
|
getReqThesauriIds() {
|
|
256
256
|
return ['flags'];
|
|
257
257
|
}
|
|
258
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
259
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
258
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: FlagsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
259
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: FlagsPartFeatureComponent, isStandalone: true, selector: "cadmus-flags-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar />\r\n<cadmus-flags-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: FlagsPartComponent, selector: "cadmus-flags-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
260
260
|
}
|
|
261
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
261
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: FlagsPartFeatureComponent, decorators: [{
|
|
262
262
|
type: Component,
|
|
263
|
-
args: [{ selector: 'cadmus-flags-part-feature', imports: [CurrentItemBarComponent, FlagsPartComponent], template: "<cadmus-current-item-bar />\r\n<cadmus-flags-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
263
|
+
args: [{ selector: 'cadmus-flags-part-feature', imports: [CurrentItemBarComponent, FlagsPartComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cadmus-current-item-bar />\r\n<cadmus-flags-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
264
264
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
265
265
|
|
|
266
266
|
class HistoricalDatePartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -271,12 +271,12 @@ class HistoricalDatePartFeatureComponent extends EditPartFeatureBase {
|
|
|
271
271
|
getReqThesauriIds() {
|
|
272
272
|
return ['doc-reference-tags', 'doc-reference-types'];
|
|
273
273
|
}
|
|
274
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
275
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
274
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HistoricalDatePartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
275
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: HistoricalDatePartFeatureComponent, isStandalone: true, selector: "cadmus-historical-date-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: HistoricalDatePartComponent, selector: "cadmus-historical-date-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
276
276
|
}
|
|
277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HistoricalDatePartFeatureComponent, decorators: [{
|
|
278
278
|
type: Component,
|
|
279
|
-
args: [{ selector: 'cadmus-historical-date-part-feature', imports: [CurrentItemBarComponent, HistoricalDatePartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
279
|
+
args: [{ selector: 'cadmus-historical-date-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, HistoricalDatePartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
280
280
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
281
281
|
|
|
282
282
|
class HistoricalEventsPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -300,12 +300,12 @@ class HistoricalEventsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
300
300
|
'asserted-id-features',
|
|
301
301
|
];
|
|
302
302
|
}
|
|
303
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
304
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
303
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HistoricalEventsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
304
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: HistoricalEventsPartFeatureComponent, isStandalone: true, selector: "cadmus-historical-events-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\n<cadmus-historical-events-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: HistoricalEventsPartComponent, selector: "cadmus-historical-events-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
305
305
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: HistoricalEventsPartFeatureComponent, decorators: [{
|
|
307
307
|
type: Component,
|
|
308
|
-
args: [{ selector: 'cadmus-historical-events-part-feature', imports: [CurrentItemBarComponent, HistoricalEventsPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-historical-events-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
308
|
+
args: [{ selector: 'cadmus-historical-events-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, HistoricalEventsPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-historical-events-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
309
309
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
310
310
|
|
|
311
311
|
class IndexKeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -316,12 +316,12 @@ class IndexKeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
316
316
|
getReqThesauriIds() {
|
|
317
317
|
return ['languages', 'keyword-indexes', 'keyword-tags'];
|
|
318
318
|
}
|
|
319
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
320
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
319
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: IndexKeywordsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
320
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: IndexKeywordsPartFeatureComponent, isStandalone: true, selector: "cadmus-index-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: IndexKeywordsPartComponent, selector: "cadmus-index-keywords-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
321
321
|
}
|
|
322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: IndexKeywordsPartFeatureComponent, decorators: [{
|
|
323
323
|
type: Component,
|
|
324
|
-
args: [{ selector: 'cadmus-index-keywords-part-feature', imports: [CurrentItemBarComponent, IndexKeywordsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
324
|
+
args: [{ selector: 'cadmus-index-keywords-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, IndexKeywordsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
325
325
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
326
326
|
|
|
327
327
|
class KeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -332,12 +332,12 @@ class KeywordsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
332
332
|
getReqThesauriIds() {
|
|
333
333
|
return ['languages'];
|
|
334
334
|
}
|
|
335
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
336
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
335
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: KeywordsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
336
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: KeywordsPartFeatureComponent, isStandalone: true, selector: "cadmus-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-keywords-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: KeywordsPartComponent, selector: "cadmus-keywords-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
337
337
|
}
|
|
338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
338
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: KeywordsPartFeatureComponent, decorators: [{
|
|
339
339
|
type: Component,
|
|
340
|
-
args: [{ selector: 'cadmus-keywords-part-feature', imports: [CurrentItemBarComponent, KeywordsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
340
|
+
args: [{ selector: 'cadmus-keywords-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, KeywordsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-keywords-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
341
341
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
342
342
|
|
|
343
343
|
class MetadataPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -347,12 +347,12 @@ class MetadataPartFeatureComponent extends EditPartFeatureBase {
|
|
|
347
347
|
getReqThesauriIds() {
|
|
348
348
|
return ['metadata-types', 'metadata-names'];
|
|
349
349
|
}
|
|
350
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
351
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
350
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: MetadataPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
351
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: MetadataPartFeatureComponent, isStandalone: true, selector: "cadmus-metadata-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\n<cadmus-metadata-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: MetadataPartComponent, selector: "cadmus-metadata-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
352
352
|
}
|
|
353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
353
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: MetadataPartFeatureComponent, decorators: [{
|
|
354
354
|
type: Component,
|
|
355
|
-
args: [{ selector: 'cadmus-metadata-part-feature', imports: [CurrentItemBarComponent, MetadataPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-metadata-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
355
|
+
args: [{ selector: 'cadmus-metadata-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, MetadataPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-metadata-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
356
356
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
357
357
|
|
|
358
358
|
class NamesPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -370,12 +370,12 @@ class NamesPartFeatureComponent extends EditPartFeatureBase {
|
|
|
370
370
|
'doc-reference-tags',
|
|
371
371
|
];
|
|
372
372
|
}
|
|
373
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
374
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
373
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NamesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
374
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: NamesPartFeatureComponent, isStandalone: true, selector: "cadmus-names-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\n<cadmus-names-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: NamesPartComponent, selector: "cadmus-names-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
375
375
|
}
|
|
376
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NamesPartFeatureComponent, decorators: [{
|
|
377
377
|
type: Component,
|
|
378
|
-
args: [{ selector: 'cadmus-names-part-feature', imports: [CurrentItemBarComponent, NamesPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-names-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
378
|
+
args: [{ selector: 'cadmus-names-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, NamesPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-names-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
379
379
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
380
380
|
|
|
381
381
|
class NotePartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -386,12 +386,12 @@ class NotePartFeatureComponent extends EditPartFeatureBase {
|
|
|
386
386
|
getReqThesauriIds() {
|
|
387
387
|
return ['note-tags'];
|
|
388
388
|
}
|
|
389
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
390
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
389
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotePartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
390
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: NotePartFeatureComponent, isStandalone: true, selector: "cadmus-note-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-note-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: NotePartComponent, selector: "cadmus-note-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
391
391
|
}
|
|
392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
392
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotePartFeatureComponent, decorators: [{
|
|
393
393
|
type: Component,
|
|
394
|
-
args: [{ selector: 'cadmus-note-part-feature', imports: [CurrentItemBarComponent, NotePartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-note-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
394
|
+
args: [{ selector: 'cadmus-note-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, NotePartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-note-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
395
395
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
396
396
|
|
|
397
397
|
class PhysicalMeasurementsPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -406,12 +406,12 @@ class PhysicalMeasurementsPartFeatureComponent extends EditPartFeatureBase {
|
|
|
406
406
|
'physical-size-set-names',
|
|
407
407
|
];
|
|
408
408
|
}
|
|
409
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
410
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
409
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PhysicalMeasurementsPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
410
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: PhysicalMeasurementsPartFeatureComponent, isStandalone: true, selector: "cadmus-physical-measurements-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-physical-measurements-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: PhysicalMeasurementsPartComponent, selector: "cadmus-physical-measurements-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
411
411
|
}
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
412
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PhysicalMeasurementsPartFeatureComponent, decorators: [{
|
|
413
413
|
type: Component,
|
|
414
|
-
args: [{ selector: 'cadmus-physical-measurements-part-feature', imports: [CurrentItemBarComponent, PhysicalMeasurementsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-physical-measurements-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
414
|
+
args: [{ selector: 'cadmus-physical-measurements-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, PhysicalMeasurementsPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-physical-measurements-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
415
415
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
416
416
|
|
|
417
417
|
class PhysicalStatesPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -425,12 +425,12 @@ class PhysicalStatesPartFeatureComponent extends EditPartFeatureBase {
|
|
|
425
425
|
'physical-state-reporters',
|
|
426
426
|
];
|
|
427
427
|
}
|
|
428
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
429
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
428
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PhysicalStatesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
429
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: PhysicalStatesPartFeatureComponent, isStandalone: true, selector: "cadmus-physical-states-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-physical-states-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: PhysicalStatesPartComponent, selector: "cadmus-physical-states-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
430
430
|
}
|
|
431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PhysicalStatesPartFeatureComponent, decorators: [{
|
|
432
432
|
type: Component,
|
|
433
|
-
args: [{ selector: 'cadmus-physical-states-part-feature', imports: [CurrentItemBarComponent, PhysicalStatesPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-physical-states-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
433
|
+
args: [{ selector: 'cadmus-physical-states-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, PhysicalStatesPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-physical-states-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
434
434
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
435
435
|
|
|
436
436
|
class PinLinksFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
@@ -447,16 +447,16 @@ class PinLinksFragmentFeatureComponent extends EditFragmentFeatureBase {
|
|
|
447
447
|
'asserted-id-features',
|
|
448
448
|
];
|
|
449
449
|
}
|
|
450
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
451
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
450
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PinLinksFragmentFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i4.FragmentEditorService }, { token: i4$1.LibraryRouteService }], target: i0.ɵɵFactoryTarget.Component });
|
|
451
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: PinLinksFragmentFeatureComponent, isStandalone: true, selector: "cadmus-pin-links-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\n@let loc = frLoc();\n<div class=\"base-text\">\n <cadmus-decorated-token-text\n [baseText]=\"data()?.baseText || ''\"\n [locations]=\"loc ? [loc] : []\"\n />\n</div>\n<cadmus-pin-links-fragment\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: PinLinksFragmentComponent, selector: "cadmus-pin-links-fragment" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
452
452
|
}
|
|
453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PinLinksFragmentFeatureComponent, decorators: [{
|
|
454
454
|
type: Component,
|
|
455
|
-
args: [{ selector: 'cadmus-pin-links-fragment-feature', imports: [
|
|
455
|
+
args: [{ selector: 'cadmus-pin-links-fragment-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
456
456
|
CurrentItemBarComponent,
|
|
457
457
|
DecoratedTokenTextComponent,
|
|
458
458
|
PinLinksFragmentComponent,
|
|
459
|
-
], template: "<cadmus-current-item-bar/>\n<div class=\"base-text\">\n <cadmus-decorated-token-text\n [baseText]=\"data?.baseText || ''\"\n [locations]=\"
|
|
459
|
+
], template: "<cadmus-current-item-bar/>\n@let loc = frLoc();\n<div class=\"base-text\">\n <cadmus-decorated-token-text\n [baseText]=\"data()?.baseText || ''\"\n [locations]=\"loc ? [loc] : []\"\n />\n</div>\n<cadmus-pin-links-fragment\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
460
460
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i4$1.LibraryRouteService }] });
|
|
461
461
|
|
|
462
462
|
class PinLinksPartFeatureComponent extends EditPartFeatureBase {
|
|
@@ -474,12 +474,12 @@ class PinLinksPartFeatureComponent extends EditPartFeatureBase {
|
|
|
474
474
|
'asserted-id-features',
|
|
475
475
|
];
|
|
476
476
|
}
|
|
477
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
478
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PinLinksPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
478
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: PinLinksPartFeatureComponent, isStandalone: true, selector: "cadmus-pin-links-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\n<cadmus-pin-links-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: PinLinksPartComponent, selector: "cadmus-pin-links-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
479
479
|
}
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: PinLinksPartFeatureComponent, decorators: [{
|
|
481
481
|
type: Component,
|
|
482
|
-
args: [{ selector: 'cadmus-pin-links-part-feature', imports: [CurrentItemBarComponent, PinLinksPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-pin-links-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
482
|
+
args: [{ selector: 'cadmus-pin-links-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, PinLinksPartComponent], template: "<cadmus-current-item-bar/>\n<cadmus-pin-links-part\n [identity]=\"identity()\"\n [data]=\"$any(data())\"\n (dataChange)=\"save($event!.value!)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n/>\n" }]
|
|
483
483
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
484
484
|
|
|
485
485
|
/**
|
|
@@ -882,7 +882,7 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
882
882
|
_editedItemRepository;
|
|
883
883
|
_dialogService;
|
|
884
884
|
_sub;
|
|
885
|
-
view;
|
|
885
|
+
view = signal(undefined, ...(ngDevMode ? [{ debugName: "view" }] : []));
|
|
886
886
|
selectedTile;
|
|
887
887
|
itemId;
|
|
888
888
|
partId;
|
|
@@ -929,8 +929,9 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
929
929
|
// when the base text changes, load all the fragments locations
|
|
930
930
|
// and setup their UI state
|
|
931
931
|
this._sub = this.rows$.subscribe((rows) => {
|
|
932
|
-
|
|
933
|
-
|
|
932
|
+
const v = rows ? new TiledTextLayerView(rows) : undefined;
|
|
933
|
+
v?.setFragmentLocations(this._repository.getLocations());
|
|
934
|
+
this.view.set(v);
|
|
934
935
|
});
|
|
935
936
|
// ensure that the container item is loaded
|
|
936
937
|
this._editedItemRepository.ensureItemLoaded(this.itemId);
|
|
@@ -947,16 +948,18 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
947
948
|
this._repository.refreshBreakChance();
|
|
948
949
|
}
|
|
949
950
|
onTileChecked(y, x, checked) {
|
|
950
|
-
|
|
951
|
-
|
|
951
|
+
const v = this.view();
|
|
952
|
+
if (v) {
|
|
953
|
+
v.toggleLinearTileCheck(y, x, checked);
|
|
952
954
|
}
|
|
953
955
|
}
|
|
954
956
|
getSelectedTileCoords() {
|
|
955
|
-
|
|
957
|
+
const v = this.view();
|
|
958
|
+
if (!this.selectedTile || !v) {
|
|
956
959
|
return null;
|
|
957
960
|
}
|
|
958
|
-
for (let i = 0; i <
|
|
959
|
-
const j =
|
|
961
|
+
for (let i = 0; i < v.rows.length; i++) {
|
|
962
|
+
const j = v.rows[i].tiles.indexOf(this.selectedTile);
|
|
960
963
|
if (j > -1) {
|
|
961
964
|
return { y: i + 1, x: j + 1 };
|
|
962
965
|
}
|
|
@@ -964,34 +967,37 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
964
967
|
return null;
|
|
965
968
|
}
|
|
966
969
|
selectPrevTile() {
|
|
967
|
-
|
|
970
|
+
const v = this.view();
|
|
971
|
+
if (!v) {
|
|
968
972
|
return;
|
|
969
973
|
}
|
|
970
974
|
let yx = this.getSelectedTileCoords();
|
|
971
975
|
if (yx) {
|
|
972
|
-
yx =
|
|
976
|
+
yx = v.getPrevTileCoords(yx.y, yx.x);
|
|
973
977
|
if (yx) {
|
|
974
|
-
this.selectedTile =
|
|
978
|
+
this.selectedTile = v.rows[yx.y - 1].tiles[yx.x - 1];
|
|
975
979
|
}
|
|
976
980
|
}
|
|
977
981
|
}
|
|
978
982
|
selectNextTile() {
|
|
979
|
-
|
|
983
|
+
const v = this.view();
|
|
984
|
+
if (!v) {
|
|
980
985
|
return;
|
|
981
986
|
}
|
|
982
987
|
let yx = this.getSelectedTileCoords();
|
|
983
988
|
if (yx) {
|
|
984
|
-
yx =
|
|
989
|
+
yx = v.getNextTileCoords(yx.y, yx.x);
|
|
985
990
|
if (yx) {
|
|
986
|
-
this.selectedTile =
|
|
991
|
+
this.selectedTile = v.rows[yx.y - 1].tiles[yx.x - 1];
|
|
987
992
|
}
|
|
988
993
|
}
|
|
989
994
|
}
|
|
990
995
|
deleteFragment() {
|
|
991
|
-
|
|
996
|
+
const v = this.view();
|
|
997
|
+
if (!v) {
|
|
992
998
|
return;
|
|
993
999
|
}
|
|
994
|
-
const lf =
|
|
1000
|
+
const lf = v.getCheckedLocationAndFragment();
|
|
995
1001
|
if (!lf || lf.fragment === -1) {
|
|
996
1002
|
return;
|
|
997
1003
|
}
|
|
@@ -1034,10 +1040,11 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1034
1040
|
: {});
|
|
1035
1041
|
}
|
|
1036
1042
|
editFragment() {
|
|
1037
|
-
|
|
1043
|
+
const v = this.view();
|
|
1044
|
+
if (!v) {
|
|
1038
1045
|
return;
|
|
1039
1046
|
}
|
|
1040
|
-
const lf =
|
|
1047
|
+
const lf = v.getCheckedLocationAndFragment();
|
|
1041
1048
|
if (!lf || lf.fragment === -1) {
|
|
1042
1049
|
return;
|
|
1043
1050
|
}
|
|
@@ -1058,20 +1065,22 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1058
1065
|
]);
|
|
1059
1066
|
}
|
|
1060
1067
|
addFragment() {
|
|
1061
|
-
|
|
1068
|
+
const v = this.view();
|
|
1069
|
+
if (!v) {
|
|
1062
1070
|
return;
|
|
1063
1071
|
}
|
|
1064
|
-
const lf =
|
|
1072
|
+
const lf = v.getCheckedLocationAndFragment();
|
|
1065
1073
|
if (!lf || lf.fragment > -1) {
|
|
1066
1074
|
return;
|
|
1067
1075
|
}
|
|
1068
1076
|
this.navigateToFragmentEditor(lf.location.toString());
|
|
1069
1077
|
}
|
|
1070
1078
|
pickLocation() {
|
|
1071
|
-
|
|
1079
|
+
const v = this.view();
|
|
1080
|
+
if (!v) {
|
|
1072
1081
|
return;
|
|
1073
1082
|
}
|
|
1074
|
-
const lf =
|
|
1083
|
+
const lf = v.getCheckedLocationAndFragment();
|
|
1075
1084
|
if (!lf) {
|
|
1076
1085
|
return;
|
|
1077
1086
|
}
|
|
@@ -1079,10 +1088,11 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1079
1088
|
this.pickedLocation = (lf.fragment === -1 ? lf.location : locations[lf.fragment]).toString();
|
|
1080
1089
|
}
|
|
1081
1090
|
clearTileChecks() {
|
|
1082
|
-
|
|
1091
|
+
const v = this.view();
|
|
1092
|
+
if (!v) {
|
|
1083
1093
|
return;
|
|
1084
1094
|
}
|
|
1085
|
-
|
|
1095
|
+
v.setAllTilesViewState({ checked: false });
|
|
1086
1096
|
this.pickedLocation = undefined;
|
|
1087
1097
|
}
|
|
1088
1098
|
applyLayerPatches(patches) {
|
|
@@ -1093,12 +1103,12 @@ class TiledTextLayerPartFeatureComponent {
|
|
|
1093
1103
|
close() {
|
|
1094
1104
|
this._router.navigate(['/items', this.itemId]);
|
|
1095
1105
|
}
|
|
1096
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1097
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1106
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TiledTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i4.EditedLayerRepository }, { token: i4$1.LibraryRouteService }, { token: i4$2.EditedItemRepository }, { token: i5.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1107
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: TiledTextLayerPartFeatureComponent, isStandalone: true, selector: "cadmus-tiled-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<mat-card appearance=\"outlined\">\n <mat-card-header>\n <div mat-card-avatar>\n <mat-icon>view_headline</mat-icon>\n </div>\n <mat-card-title>\n Tiles-Based Text Layers\n <button type=\"button\" mat-icon-button (click)=\"refreshBreakChance()\">\n @switch (breakChance$ | async) { @case (-1) {\n <mat-icon matTooltip=\"Checking...\">refresh</mat-icon>\n } @case (0) {\n <mat-icon matTooltip=\"Valid\">check_circle</mat-icon>\n } @case (1) {\n <mat-icon matTooltip=\"Potentially broken\" class=\"mat-warn\"\n >warning</mat-icon\n >\n } @case (2) {\n <mat-icon matTooltip=\"Broken\" class=\"mat-warn\">error</mat-icon>\n } }\n </button>\n </mat-card-title>\n <cadmus-current-layer-part-bar />\n </mat-card-header>\n @if (!(loading$ | async) && !(saving$ | async)) {\n <mat-card-actions>\n <mat-toolbar>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"editFragment()\"\n matTooltip=\"Edit the selected fragment\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"deleteFragment()\"\n matTooltip=\"Delete the selected fragment\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"pickLocation()\"\n matTooltip=\"Pick the selection location for a new fragment\"\n >\n <mat-icon>info</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"clearTileChecks()\"\n matTooltip=\"Clear any selection\"\n >\n <mat-icon class=\"mat-warn\">clear</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"addFragment()\"\n matTooltip=\"Add a new fragment at selection\"\n >\n <mat-icon class=\"mat-primary\">add_circle</mat-icon>\n </button>\n <span>{{ pickedLocation }}</span>\n </mat-toolbar>\n </mat-card-actions>\n }\n\n <mat-card-content>\n @if (loading$ | async) {\n <mat-progress-bar mode=\"indeterminate\" />\n }\n\n <!-- rows -->\n @if (view()) {\n <div>\n @for (row of view()!.rows; track row; let iy = $index) {\n <div class=\"tile-row\" style=\"display: flex; flex-flow: row wrap\">\n <span class=\"row-nr\">{{ iy + 1 }}</span>\n <!-- tile -->\n @for (tile of row.tiles || []; track tile; let ix = $index) {\n <cadmus-text-tile\n [tile]=\"tile.model\"\n [readonly]=\"true\"\n [selected]=\"tile === selectedTile\"\n [checkable]=\"true\"\n [checked]=\"tile.checked\"\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\n style=\"flex: 0 0 auto\"\n (click)=\"selectedTile = tile\"\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event)\"\n (keydown.control.arrowleft)=\"selectPrevTile()\"\n (keydown.control.arrowright)=\"selectNextTile()\"\n />\n }\n </div>\n }\n </div>\n }\n </mat-card-content>\n\n <div>\n <button\n type=\"button\"\n mat-flat-button\n class=\"mat-warn\"\n matTooltip=\"Close this editor\"\n (click)=\"close()\"\n >\n <mat-icon>cancel</mat-icon>\n close\n </button>\n </div>\n @if (layerHints$ | async; as layerHints) {\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Layer hints</mat-panel-title>\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\n </mat-expansion-panel-header>\n <cadmus-layer-hints\n [hints]=\"layerHints\"\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\n [readonly]=\"userLevel < 2\"\n [targetLocation]=\"pickedLocation\"\n (requestEdit)=\"editFragmentFromHint($event)\"\n (requestDelete)=\"deleteFragmentFromHint($event)\"\n (requestMove)=\"moveFragmentFromHint($event)\"\n (requestPatch)=\"applyLayerPatches($event)\"\n />\n </mat-expansion-panel>\n }\n</mat-card>\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"], dependencies: [{ kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "component", type: MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "component", type: LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: TextTileComponent, selector: "cadmus-text-tile", inputs: ["selected", "checkable", "readonly", "color", "checked", "tile"], outputs: ["checkedChange", "tileChange", "editData"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1098
1108
|
}
|
|
1099
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1109
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TiledTextLayerPartFeatureComponent, decorators: [{
|
|
1100
1110
|
type: Component,
|
|
1101
|
-
args: [{ selector: 'cadmus-tiled-text-layer-part-feature', imports: [
|
|
1111
|
+
args: [{ selector: 'cadmus-tiled-text-layer-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1102
1112
|
MatCard,
|
|
1103
1113
|
MatCardHeader,
|
|
1104
1114
|
MatCardAvatar,
|
|
@@ -1120,19 +1130,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
1120
1130
|
CurrentLayerPartBarComponent,
|
|
1121
1131
|
LayerHintsComponent,
|
|
1122
1132
|
TextTileComponent,
|
|
1123
|
-
], template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<mat-card appearance=\"outlined\">\n <mat-card-header>\n <div mat-card-avatar>\n <mat-icon>view_headline</mat-icon>\n </div>\n <mat-card-title>\n Tiles-Based Text Layers\n <button type=\"button\" mat-icon-button (click)=\"refreshBreakChance()\">\n @switch (breakChance$ | async) { @case (-1) {\n <mat-icon matTooltip=\"Checking...\">refresh</mat-icon>\n } @case (0) {\n <mat-icon matTooltip=\"Valid\">check_circle</mat-icon>\n } @case (1) {\n <mat-icon matTooltip=\"Potentially broken\" class=\"mat-warn\"\n >warning</mat-icon\n >\n } @case (2) {\n <mat-icon matTooltip=\"Broken\" class=\"mat-warn\">error</mat-icon>\n } }\n </button>\n </mat-card-title>\n <cadmus-current-layer-part-bar />\n </mat-card-header>\n @if (!(loading$ | async) && !(saving$ | async)) {\n <mat-card-actions>\n <mat-toolbar>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"editFragment()\"\n matTooltip=\"Edit the selected fragment\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"deleteFragment()\"\n matTooltip=\"Delete the selected fragment\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"pickLocation()\"\n matTooltip=\"Pick the selection location for a new fragment\"\n >\n <mat-icon>info</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"clearTileChecks()\"\n matTooltip=\"Clear any selection\"\n >\n <mat-icon class=\"mat-warn\">clear</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"addFragment()\"\n matTooltip=\"Add a new fragment at selection\"\n >\n <mat-icon class=\"mat-primary\">add_circle</mat-icon>\n </button>\n <span>{{ pickedLocation }}</span>\n </mat-toolbar>\n </mat-card-actions>\n }\n\n <mat-card-content>\n @if (loading$ | async) {\n <mat-progress-bar mode=\"indeterminate\" />\n }\n\n <!-- rows -->\n @if (view) {\n <div>\n @for (row of view
|
|
1133
|
+
], template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<mat-card appearance=\"outlined\">\n <mat-card-header>\n <div mat-card-avatar>\n <mat-icon>view_headline</mat-icon>\n </div>\n <mat-card-title>\n Tiles-Based Text Layers\n <button type=\"button\" mat-icon-button (click)=\"refreshBreakChance()\">\n @switch (breakChance$ | async) { @case (-1) {\n <mat-icon matTooltip=\"Checking...\">refresh</mat-icon>\n } @case (0) {\n <mat-icon matTooltip=\"Valid\">check_circle</mat-icon>\n } @case (1) {\n <mat-icon matTooltip=\"Potentially broken\" class=\"mat-warn\"\n >warning</mat-icon\n >\n } @case (2) {\n <mat-icon matTooltip=\"Broken\" class=\"mat-warn\">error</mat-icon>\n } }\n </button>\n </mat-card-title>\n <cadmus-current-layer-part-bar />\n </mat-card-header>\n @if (!(loading$ | async) && !(saving$ | async)) {\n <mat-card-actions>\n <mat-toolbar>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"editFragment()\"\n matTooltip=\"Edit the selected fragment\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"deleteFragment()\"\n matTooltip=\"Delete the selected fragment\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"pickLocation()\"\n matTooltip=\"Pick the selection location for a new fragment\"\n >\n <mat-icon>info</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"clearTileChecks()\"\n matTooltip=\"Clear any selection\"\n >\n <mat-icon class=\"mat-warn\">clear</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"addFragment()\"\n matTooltip=\"Add a new fragment at selection\"\n >\n <mat-icon class=\"mat-primary\">add_circle</mat-icon>\n </button>\n <span>{{ pickedLocation }}</span>\n </mat-toolbar>\n </mat-card-actions>\n }\n\n <mat-card-content>\n @if (loading$ | async) {\n <mat-progress-bar mode=\"indeterminate\" />\n }\n\n <!-- rows -->\n @if (view()) {\n <div>\n @for (row of view()!.rows; track row; let iy = $index) {\n <div class=\"tile-row\" style=\"display: flex; flex-flow: row wrap\">\n <span class=\"row-nr\">{{ iy + 1 }}</span>\n <!-- tile -->\n @for (tile of row.tiles || []; track tile; let ix = $index) {\n <cadmus-text-tile\n [tile]=\"tile.model\"\n [readonly]=\"true\"\n [selected]=\"tile === selectedTile\"\n [checkable]=\"true\"\n [checked]=\"tile.checked\"\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\n style=\"flex: 0 0 auto\"\n (click)=\"selectedTile = tile\"\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event)\"\n (keydown.control.arrowleft)=\"selectPrevTile()\"\n (keydown.control.arrowright)=\"selectNextTile()\"\n />\n }\n </div>\n }\n </div>\n }\n </mat-card-content>\n\n <div>\n <button\n type=\"button\"\n mat-flat-button\n class=\"mat-warn\"\n matTooltip=\"Close this editor\"\n (click)=\"close()\"\n >\n <mat-icon>cancel</mat-icon>\n close\n </button>\n </div>\n @if (layerHints$ | async; as layerHints) {\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Layer hints</mat-panel-title>\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\n </mat-expansion-panel-header>\n <cadmus-layer-hints\n [hints]=\"layerHints\"\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\n [readonly]=\"userLevel < 2\"\n [targetLocation]=\"pickedLocation\"\n (requestEdit)=\"editFragmentFromHint($event)\"\n (requestDelete)=\"deleteFragmentFromHint($event)\"\n (requestMove)=\"moveFragmentFromHint($event)\"\n (requestPatch)=\"applyLayerPatches($event)\"\n />\n </mat-expansion-panel>\n }\n</mat-card>\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"] }]
|
|
1124
1134
|
}], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i4.EditedLayerRepository }, { type: i4$1.LibraryRouteService }, { type: i4$2.EditedItemRepository }, { type: i5.DialogService }, { type: i3.UserLevelService }] });
|
|
1125
1135
|
|
|
1126
1136
|
class TiledTextPartFeatureComponent extends EditPartFeatureBase {
|
|
1127
1137
|
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
1128
1138
|
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
1129
1139
|
}
|
|
1130
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1131
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1140
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TiledTextPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1141
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: TiledTextPartFeatureComponent, isStandalone: true, selector: "cadmus-tiled-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: TiledTextPartComponent, selector: "cadmus-tiled-text-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1132
1142
|
}
|
|
1133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1143
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TiledTextPartFeatureComponent, decorators: [{
|
|
1134
1144
|
type: Component,
|
|
1135
|
-
args: [{ selector: 'cadmus-tiled-text-part-feature', imports: [CurrentItemBarComponent, TiledTextPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
1145
|
+
args: [{ selector: 'cadmus-tiled-text-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, TiledTextPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
1136
1146
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
1137
1147
|
|
|
1138
1148
|
/**
|
|
@@ -1311,12 +1321,12 @@ class TokenTextLayerPartFeatureComponent {
|
|
|
1311
1321
|
close() {
|
|
1312
1322
|
this._router.navigate(['/items', this.itemId]);
|
|
1313
1323
|
}
|
|
1314
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1315
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1324
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TokenTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i4.EditedLayerRepository }, { token: i4$1.TextLayerService }, { token: i4$1.LibraryRouteService }, { token: i4$2.EditedItemRepository }, { token: i5.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1325
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: TokenTextLayerPartFeatureComponent, isStandalone: true, selector: "cadmus-token-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<mat-card appearance=\"outlined\">\n <mat-card-header>\n <div mat-card-avatar>\n <mat-icon>view_headline</mat-icon>\n </div>\n <mat-card-title>\n Token-Based Text Layers\n <button type=\"button\" mat-icon-button (click)=\"refreshBreakChance()\">\n @switch (breakChance$ | async) { @case (-1) {\n <mat-icon matTooltip=\"Checking...\">refresh</mat-icon>\n } @case (0) {\n <mat-icon matTooltip=\"Valid\">check_circle</mat-icon>\n } @case (1) {\n <mat-icon matTooltip=\"Potentially broken\" class=\"mat-warn\"\n >warning</mat-icon\n >\n } @case (2) {\n <mat-icon matTooltip=\"Broken\" class=\"mat-warn\">error</mat-icon>\n } }\n </button>\n </mat-card-title>\n <cadmus-current-layer-part-bar/>\n </mat-card-header>\n @if (!(loading$ | async)) {\n <mat-card-actions>\n <mat-toolbar>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"editFragment()\"\n matTooltip=\"Edit the selected fragment\"\n >\n <mat-icon>edit</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"deleteFragment()\"\n matTooltip=\"Delete the selected fragment\"\n >\n <mat-icon class=\"mat-warn\">delete</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Larger text\"\n (click)=\"makeLarger()\"\n [disabled]=\"textSize >= 24\"\n >\n <mat-icon>format_size</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n matTooltip=\"Smaller text\"\n (click)=\"makeSmaller()\"\n [disabled]=\"textSize <= 12\"\n >\n <mat-icon>text_fields</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"pickLocation()\"\n matTooltip=\"Pick the selection location for a new fragment\"\n >\n <mat-icon>info</mat-icon>\n </button>\n <button\n mat-icon-button\n type=\"button\"\n (click)=\"addFragment()\"\n matTooltip=\"Add a new fragment at selection\"\n >\n <mat-icon class=\"mat-primary\">add_circle</mat-icon>\n </button>\n <span>{{ pickedLocation }}</span>\n </mat-toolbar>\n </mat-card-actions>\n }\n <mat-card-content fxLayout=\"row\">\n @if (loading$ | async) {\n <mat-progress-bar mode=\"indeterminate\"/>\n }\n\n <div [style.font-size]=\"textSize + 'px'\">\n @if (baseText$ | async; as baseText) {\n <cadmus-decorated-token-text\n [baseText]=\"baseText\"\n [locations]=\"(locations$ | async) || []\"\n />\n }\n </div>\n </mat-card-content>\n <div>\n <button\n type=\"button\"\n mat-flat-button\n class=\"mat-warn\"\n matTooltip=\"Close this editor\"\n (click)=\"close()\"\n >\n <mat-icon>cancel</mat-icon>\n close\n </button>\n </div>\n @if (layerHints$ | async; as layerHints) {\n <mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>Layer hints</mat-panel-title>\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\n </mat-expansion-panel-header>\n <cadmus-layer-hints\n [hints]=\"layerHints\"\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\n [readonly]=\"userLevel < 2\"\n [targetLocation]=\"pickedLocation\"\n (requestEdit)=\"editFragmentFromHint($event)\"\n (requestDelete)=\"deleteFragmentFromHint($event)\"\n (requestMove)=\"moveFragmentFromHint($event)\"\n (requestPatch)=\"applyLayerPatches($event)\"\n />\n </mat-expansion-panel>\n }\n</mat-card>\n", styles: [""], dependencies: [{ kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "directive", type: MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "component", type: MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "component", type: MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "component", type: DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1316
1326
|
}
|
|
1317
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TokenTextLayerPartFeatureComponent, decorators: [{
|
|
1318
1328
|
type: Component,
|
|
1319
|
-
args: [{ selector: 'cadmus-token-text-layer-part-feature', imports: [
|
|
1329
|
+
args: [{ selector: 'cadmus-token-text-layer-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1320
1330
|
MatCard,
|
|
1321
1331
|
MatCardHeader,
|
|
1322
1332
|
MatCardAvatar,
|
|
@@ -1345,12 +1355,12 @@ class TokenTextPartFeatureComponent extends EditPartFeatureBase {
|
|
|
1345
1355
|
constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
|
|
1346
1356
|
super(router, route, snackbar, itemService, thesaurusService, editorService);
|
|
1347
1357
|
}
|
|
1348
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1349
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1358
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TokenTextPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1359
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: TokenTextPartFeatureComponent, isStandalone: true, selector: "cadmus-token-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar/>\r\n<cadmus-token-text-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n", styles: [""], dependencies: [{ kind: "component", type: CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: TokenTextPartComponent, selector: "cadmus-token-text-part" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1350
1360
|
}
|
|
1351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TokenTextPartFeatureComponent, decorators: [{
|
|
1352
1362
|
type: Component,
|
|
1353
|
-
args: [{ selector: 'cadmus-token-text-part-feature', imports: [CurrentItemBarComponent, TokenTextPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-token-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
1363
|
+
args: [{ selector: 'cadmus-token-text-part-feature', changeDetection: ChangeDetectionStrategy.OnPush, imports: [CurrentItemBarComponent, TokenTextPartComponent], template: "<cadmus-current-item-bar/>\r\n<cadmus-token-text-part\r\n [identity]=\"identity()\"\r\n [data]=\"$any(data())\"\r\n (dataChange)=\"save($event!.value!)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n/>\r\n" }]
|
|
1354
1364
|
}], ctorParameters: () => [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }] });
|
|
1355
1365
|
|
|
1356
1366
|
// https://github.com/ng-packagr/ng-packagr/issues/778
|