@myrmidon/cadmus-part-general-pg 2.1.2 → 6.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (77) hide show
  1. package/esm2022/lib/bibliography-part-feature/bibliography-part-feature.component.mjs +30 -0
  2. package/{esm2020 → esm2022}/lib/cadmus-part-general-pg.module.mjs +347 -346
  3. package/esm2022/lib/categories-part-feature/categories-part-feature.component.mjs +26 -0
  4. package/esm2022/lib/chronology-fragment-feature/chronology-fragment-feature.component.mjs +26 -0
  5. package/esm2022/lib/chronotopes-part-feature/chronotopes-part-feature.component.mjs +30 -0
  6. package/esm2022/lib/comment-fragment-feature/comment-fragment-feature.component.mjs +38 -0
  7. package/esm2022/lib/comment-part-feature/comment-part-feature.component.mjs +38 -0
  8. package/esm2022/lib/doc-references-part-feature/doc-references-part-feature.component.mjs +25 -0
  9. package/esm2022/lib/external-ids-part-feature/external-ids-part-feature.component.mjs +31 -0
  10. package/esm2022/lib/historical-date-part-feature/historical-date-part-feature.component.mjs +25 -0
  11. package/esm2022/lib/historical-events-part-feature/historical-events-part-feature.component.mjs +37 -0
  12. package/esm2022/lib/index-keywords-part-feature/index-keywords-part-feature.component.mjs +25 -0
  13. package/esm2022/lib/keywords-part-feature/keywords-part-feature.component.mjs +25 -0
  14. package/esm2022/lib/metadata-part-feature/metadata-part-feature.component.mjs +25 -0
  15. package/esm2022/lib/names-part-feature/names-part-feature.component.mjs +33 -0
  16. package/esm2022/lib/note-part-feature/note-part-feature.component.mjs +26 -0
  17. package/esm2022/lib/pin-links-fragment-feature/pin-links-fragment-feature.component.mjs +33 -0
  18. package/esm2022/lib/pin-links-part-feature/pin-links-part-feature.component.mjs +32 -0
  19. package/esm2022/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.mjs +239 -0
  20. package/{esm2020 → esm2022}/lib/tiled-text-layer-part-feature/tiled-text-layer-view.mjs +379 -379
  21. package/esm2022/lib/tiled-text-part-feature/tiled-text-part-feature.component.mjs +22 -0
  22. package/esm2022/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.mjs +190 -0
  23. package/esm2022/lib/token-text-part-feature/token-text-part-feature.component.mjs +22 -0
  24. package/{esm2020 → esm2022}/myrmidon-cadmus-part-general-pg.mjs +4 -4
  25. package/{esm2020 → esm2022}/public-api.mjs +25 -25
  26. package/{fesm2020 → fesm2022}/myrmidon-cadmus-part-general-pg.mjs +1379 -1358
  27. package/fesm2022/myrmidon-cadmus-part-general-pg.mjs.map +1 -0
  28. package/index.d.ts +5 -5
  29. package/lib/bibliography-part-feature/bibliography-part-feature.component.d.ts +12 -12
  30. package/lib/cadmus-part-general-pg.module.d.ts +50 -50
  31. package/lib/categories-part-feature/categories-part-feature.component.d.ts +12 -12
  32. package/lib/chronology-fragment-feature/chronology-fragment-feature.component.d.ts +12 -12
  33. package/lib/chronotopes-part-feature/chronotopes-part-feature.component.d.ts +12 -12
  34. package/lib/comment-fragment-feature/comment-fragment-feature.component.d.ts +12 -12
  35. package/lib/comment-part-feature/comment-part-feature.component.d.ts +12 -12
  36. package/lib/doc-references-part-feature/doc-references-part-feature.component.d.ts +12 -12
  37. package/lib/external-ids-part-feature/external-ids-part-feature.component.d.ts +12 -12
  38. package/lib/historical-date-part-feature/historical-date-part-feature.component.d.ts +12 -12
  39. package/lib/historical-events-part-feature/historical-events-part-feature.component.d.ts +12 -12
  40. package/lib/index-keywords-part-feature/index-keywords-part-feature.component.d.ts +12 -12
  41. package/lib/keywords-part-feature/keywords-part-feature.component.d.ts +12 -12
  42. package/lib/metadata-part-feature/metadata-part-feature.component.d.ts +12 -12
  43. package/lib/names-part-feature/names-part-feature.component.d.ts +12 -12
  44. package/lib/note-part-feature/note-part-feature.component.d.ts +12 -12
  45. package/lib/pin-links-fragment-feature/pin-links-fragment-feature.component.d.ts +12 -12
  46. package/lib/pin-links-part-feature/pin-links-part-feature.component.d.ts +12 -12
  47. package/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.d.ts +66 -66
  48. package/lib/tiled-text-layer-part-feature/tiled-text-layer-view.d.ts +145 -145
  49. package/lib/tiled-text-part-feature/tiled-text-part-feature.component.d.ts +11 -11
  50. package/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.d.ts +54 -54
  51. package/lib/token-text-part-feature/token-text-part-feature.component.d.ts +11 -11
  52. package/package.json +8 -14
  53. package/public-api.d.ts +22 -22
  54. package/esm2020/lib/bibliography-part-feature/bibliography-part-feature.component.mjs +0 -29
  55. package/esm2020/lib/categories-part-feature/categories-part-feature.component.mjs +0 -25
  56. package/esm2020/lib/chronology-fragment-feature/chronology-fragment-feature.component.mjs +0 -25
  57. package/esm2020/lib/chronotopes-part-feature/chronotopes-part-feature.component.mjs +0 -29
  58. package/esm2020/lib/comment-fragment-feature/comment-fragment-feature.component.mjs +0 -35
  59. package/esm2020/lib/comment-part-feature/comment-part-feature.component.mjs +0 -35
  60. package/esm2020/lib/doc-references-part-feature/doc-references-part-feature.component.mjs +0 -24
  61. package/esm2020/lib/external-ids-part-feature/external-ids-part-feature.component.mjs +0 -30
  62. package/esm2020/lib/historical-date-part-feature/historical-date-part-feature.component.mjs +0 -24
  63. package/esm2020/lib/historical-events-part-feature/historical-events-part-feature.component.mjs +0 -33
  64. package/esm2020/lib/index-keywords-part-feature/index-keywords-part-feature.component.mjs +0 -24
  65. package/esm2020/lib/keywords-part-feature/keywords-part-feature.component.mjs +0 -24
  66. package/esm2020/lib/metadata-part-feature/metadata-part-feature.component.mjs +0 -24
  67. package/esm2020/lib/names-part-feature/names-part-feature.component.mjs +0 -32
  68. package/esm2020/lib/note-part-feature/note-part-feature.component.mjs +0 -25
  69. package/esm2020/lib/pin-links-fragment-feature/pin-links-fragment-feature.component.mjs +0 -25
  70. package/esm2020/lib/pin-links-part-feature/pin-links-part-feature.component.mjs +0 -24
  71. package/esm2020/lib/tiled-text-layer-part-feature/tiled-text-layer-part-feature.component.mjs +0 -238
  72. package/esm2020/lib/tiled-text-part-feature/tiled-text-part-feature.component.mjs +0 -21
  73. package/esm2020/lib/token-text-layer-part-feature/token-text-layer-part-feature.component.mjs +0 -189
  74. package/esm2020/lib/token-text-part-feature/token-text-part-feature.component.mjs +0 -21
  75. package/fesm2015/myrmidon-cadmus-part-general-pg.mjs +0 -1458
  76. package/fesm2015/myrmidon-cadmus-part-general-pg.mjs.map +0 -1
  77. package/fesm2020/myrmidon-cadmus-part-general-pg.mjs.map +0 -1
@@ -41,1412 +41,1433 @@ import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
41
41
  import { MatSelectModule } from '@angular/material/select';
42
42
  import { NgToolsModule } from '@myrmidon/ng-tools';
43
43
 
44
- class BibliographyPartFeatureComponent extends EditPartFeatureBase {
45
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
46
- super(router, route, snackbar, itemService, thesaurusService, editorService);
47
- }
48
- getReqThesauriIds() {
49
- return [
50
- 'bibliography-languages',
51
- 'bibliography-types',
52
- 'bibliography-tags',
53
- 'bibliography-author-roles',
54
- ];
55
- }
56
- }
57
- BibliographyPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
58
- BibliographyPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: BibliographyPartFeatureComponent, selector: "cadmus-bibliography-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.BibliographyPartComponent, selector: "cadmus-bibliography-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: BibliographyPartFeatureComponent, decorators: [{
60
- type: Component,
61
- args: [{ selector: 'cadmus-bibliography-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n" }]
44
+ class BibliographyPartFeatureComponent extends EditPartFeatureBase {
45
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
46
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
47
+ }
48
+ getReqThesauriIds() {
49
+ return [
50
+ 'bibliography-languages',
51
+ 'bibliography-types',
52
+ 'bibliography-tags',
53
+ 'bibliography-author-roles',
54
+ ];
55
+ }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: BibliographyPartFeatureComponent, selector: "cadmus-bibliography-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.BibliographyPartComponent, selector: "cadmus-bibliography-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
58
+ }
59
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: BibliographyPartFeatureComponent, decorators: [{
60
+ type: Component,
61
+ args: [{ selector: 'cadmus-bibliography-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-bibliography-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-bibliography-part>\r\n" }]
62
62
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
63
63
 
64
- class CategoriesPartFeatureComponent extends EditPartFeatureBase {
65
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
66
- super(router, route, snackbar, itemService, thesaurusService, editorService);
67
- this.roleIdInThesauri = true;
68
- }
69
- getReqThesauriIds() {
70
- return ['categories'];
71
- }
72
- }
73
- CategoriesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CategoriesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
74
- CategoriesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CategoriesPartFeatureComponent, selector: "cadmus-categories-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.CategoriesPartComponent, selector: "cadmus-categories-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CategoriesPartFeatureComponent, decorators: [{
76
- type: Component,
77
- args: [{ selector: 'cadmus-categories-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n" }]
64
+ class CategoriesPartFeatureComponent extends EditPartFeatureBase {
65
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
66
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
67
+ this.roleIdInThesauri = true;
68
+ }
69
+ getReqThesauriIds() {
70
+ return ['categories'];
71
+ }
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
73
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: CategoriesPartFeatureComponent, selector: "cadmus-categories-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.CategoriesPartComponent, selector: "cadmus-categories-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
74
+ }
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CategoriesPartFeatureComponent, decorators: [{
76
+ type: Component,
77
+ args: [{ selector: 'cadmus-categories-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-categories-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-categories-part>\r\n" }]
78
78
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
79
79
 
80
- class ChronologyFragmentFeatureComponent extends EditFragmentFeatureBase {
81
- constructor(router, route, snackbar, editorService, libraryRouteService) {
82
- super(router, route, snackbar, editorService, libraryRouteService);
83
- }
84
- getReqThesauriIds() {
85
- return ['chronology-tags'];
86
- }
87
- }
88
- ChronologyFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
89
- ChronologyFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: ChronologyFragmentFeatureComponent, selector: "cadmus-chronology-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.ChronologyFragmentComponent, selector: "cadmus-chronology-fragment" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
90
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: ChronologyFragmentFeatureComponent, decorators: [{
91
- type: Component,
92
- args: [{ selector: 'cadmus-chronology-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n" }]
80
+ class ChronologyFragmentFeatureComponent extends EditFragmentFeatureBase {
81
+ constructor(router, route, snackbar, editorService, libraryRouteService) {
82
+ super(router, route, snackbar, editorService, libraryRouteService);
83
+ }
84
+ getReqThesauriIds() {
85
+ return ['chronology-tags'];
86
+ }
87
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
88
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: ChronologyFragmentFeatureComponent, selector: "cadmus-chronology-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.ChronologyFragmentComponent, selector: "cadmus-chronology-fragment" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
89
+ }
90
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChronologyFragmentFeatureComponent, decorators: [{
91
+ type: Component,
92
+ args: [{ selector: 'cadmus-chronology-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-chronology-fragment\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-chronology-fragment>\r\n" }]
93
93
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i4$1.LibraryRouteService }]; } });
94
94
 
95
- class ChronotopesPartFeatureComponent extends EditPartFeatureBase {
96
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
97
- super(router, route, snackbar, itemService, thesaurusService, editorService);
98
- }
99
- getReqThesauriIds() {
100
- return [
101
- 'chronotope-place-tags',
102
- 'chronotope-assertion-tags',
103
- 'doc-reference-types',
104
- 'doc-reference-tags',
105
- ];
106
- }
107
- }
108
- ChronotopesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: ChronotopesPartFeatureComponent, deps: [{ token: i1.Router }, { token: i1.ActivatedRoute }, { token: i2.MatSnackBar }, { token: i3.ItemService }, { token: i3.ThesaurusService }, { token: i4.PartEditorService }], target: i0.ɵɵFactoryTarget.Component });
109
- ChronotopesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: ChronotopesPartFeatureComponent, selector: "cadmus-chronotopes-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-chronotopes-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-chronotopes-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.ChronotopesPartComponent, selector: "cadmus-chronotopes-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
110
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: ChronotopesPartFeatureComponent, decorators: [{
111
- type: Component,
112
- args: [{ selector: 'cadmus-chronotopes-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-chronotopes-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-chronotopes-part>\n" }]
95
+ class ChronotopesPartFeatureComponent extends EditPartFeatureBase {
96
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
97
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
98
+ }
99
+ getReqThesauriIds() {
100
+ return [
101
+ 'chronotope-place-tags',
102
+ 'chronotope-assertion-tags',
103
+ 'doc-reference-types',
104
+ 'doc-reference-tags',
105
+ ];
106
+ }
107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
108
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: ChronotopesPartFeatureComponent, selector: "cadmus-chronotopes-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-chronotopes-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-chronotopes-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.ChronotopesPartComponent, selector: "cadmus-chronotopes-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
109
+ }
110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ChronotopesPartFeatureComponent, decorators: [{
111
+ type: Component,
112
+ args: [{ selector: 'cadmus-chronotopes-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-chronotopes-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-chronotopes-part>\n" }]
113
113
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
114
114
 
115
- class CommentFragmentFeatureComponent extends EditFragmentFeatureBase {
116
- constructor(router, route, snackbar, editorService, libraryRouteService) {
117
- super(router, route, snackbar, editorService, libraryRouteService);
118
- }
119
- getReqThesauriIds() {
120
- return [
121
- 'comment-tags',
122
- 'doc-reference-tags',
123
- 'doc-reference-types',
124
- 'comment-categories',
125
- 'languages',
126
- 'keyword-indexes',
127
- 'keyword-tags',
128
- 'comment-id-scopes',
129
- 'comment-id-tags',
130
- ];
131
- }
132
- }
133
- CommentFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
134
- CommentFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CommentFragmentFeatureComponent, selector: "cadmus-comment-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"], dependencies: [{ kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.CommentEditorComponent, selector: "cadmus-comment-editor" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CommentFragmentFeatureComponent, decorators: [{
136
- type: Component,
137
- args: [{ selector: 'cadmus-comment-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"] }]
115
+ class CommentFragmentFeatureComponent extends EditFragmentFeatureBase {
116
+ constructor(router, route, snackbar, editorService, libraryRouteService) {
117
+ super(router, route, snackbar, editorService, libraryRouteService);
118
+ }
119
+ getReqThesauriIds() {
120
+ return [
121
+ 'comment-tags',
122
+ 'doc-reference-tags',
123
+ 'doc-reference-types',
124
+ 'comment-categories',
125
+ 'languages',
126
+ 'keyword-indexes',
127
+ 'keyword-tags',
128
+ 'comment-id-scopes',
129
+ 'comment-id-tags',
130
+ 'assertion-tags',
131
+ 'pin-link-settings',
132
+ ];
133
+ }
134
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
135
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: CommentFragmentFeatureComponent, selector: "cadmus-comment-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"], dependencies: [{ kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.CommentEditorComponent, selector: "cadmus-comment-editor" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
136
+ }
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CommentFragmentFeatureComponent, decorators: [{
138
+ type: Component,
139
+ args: [{ selector: 'cadmus-comment-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<div class=\"base-text\">\r\n <cadmus-decorated-token-text\r\n [baseText]=\"data?.baseText || ''\"\r\n [locations]=\"frLoc ? [frLoc] : []\"\r\n ></cadmus-decorated-token-text>\r\n</div>\r\n<cadmus-comment-editor\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: ["div.base-text{margin:12px;border:1px solid #f0f0f0;border-radius:4px;padding:8px}\n"] }]
138
140
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i4$1.LibraryRouteService }]; } });
139
141
 
140
- class CommentPartFeatureComponent extends EditPartFeatureBase {
141
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
142
- super(router, route, snackbar, itemService, thesaurusService, editorService);
143
- this.roleIdInThesauri = true;
144
- }
145
- getReqThesauriIds() {
146
- return [
147
- 'comment-tags',
148
- 'doc-reference-tags',
149
- 'doc-reference-types',
150
- 'comment-categories',
151
- 'languages',
152
- 'keyword-indexes',
153
- 'keyword-tags',
154
- 'comment-id-scopes',
155
- 'comment-id-tags',
156
- ];
157
- }
158
- }
159
- CommentPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
160
- CommentPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: CommentPartFeatureComponent, selector: "cadmus-comment-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.CommentEditorComponent, selector: "cadmus-comment-editor" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CommentPartFeatureComponent, decorators: [{
162
- type: Component,
163
- args: [{ selector: 'cadmus-comment-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n" }]
142
+ class CommentPartFeatureComponent extends EditPartFeatureBase {
143
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
144
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
145
+ this.roleIdInThesauri = true;
146
+ }
147
+ getReqThesauriIds() {
148
+ return [
149
+ 'comment-tags',
150
+ 'doc-reference-tags',
151
+ 'doc-reference-types',
152
+ 'comment-categories',
153
+ 'languages',
154
+ 'keyword-indexes',
155
+ 'keyword-tags',
156
+ 'comment-id-scopes',
157
+ 'comment-id-tags',
158
+ 'assertion-tags',
159
+ 'pin-link-settings'
160
+ ];
161
+ }
162
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
163
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: CommentPartFeatureComponent, selector: "cadmus-comment-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.CommentEditorComponent, selector: "cadmus-comment-editor" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
164
+ }
165
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CommentPartFeatureComponent, decorators: [{
166
+ type: Component,
167
+ args: [{ selector: 'cadmus-comment-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-comment-editor\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($any($event))\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-comment-editor>\r\n" }]
164
168
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
165
169
 
166
- class DocReferencesPartFeatureComponent extends EditPartFeatureBase {
167
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
168
- super(router, route, snackbar, itemService, thesaurusService, editorService);
169
- }
170
- getReqThesauriIds() {
171
- return ['doc-reference-tags', 'doc-reference-types'];
172
- }
173
- }
174
- DocReferencesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
175
- DocReferencesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: DocReferencesPartFeatureComponent, selector: "cadmus-doc-references-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.DocReferencesPartComponent, selector: "cadmus-doc-references-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: DocReferencesPartFeatureComponent, decorators: [{
177
- type: Component,
178
- args: [{ selector: 'cadmus-doc-references-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n" }]
170
+ class DocReferencesPartFeatureComponent extends EditPartFeatureBase {
171
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
172
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
173
+ }
174
+ getReqThesauriIds() {
175
+ return ['doc-reference-tags', 'doc-reference-types'];
176
+ }
177
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
178
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: DocReferencesPartFeatureComponent, selector: "cadmus-doc-references-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.DocReferencesPartComponent, selector: "cadmus-doc-references-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
179
+ }
180
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: DocReferencesPartFeatureComponent, decorators: [{
181
+ type: Component,
182
+ args: [{ selector: 'cadmus-doc-references-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-doc-references-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-doc-references-part>\r\n" }]
179
183
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
180
184
 
181
- class ExternalIdsPartFeatureComponent extends EditPartFeatureBase {
182
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
183
- super(router, route, snackbar, itemService, thesaurusService, editorService);
184
- }
185
- getReqThesauriIds() {
186
- return [
187
- 'external-id-scopes',
188
- 'external-id-tags',
189
- 'assertion-tags',
190
- 'doc-reference-types',
191
- 'doc-reference-tags',
192
- ];
193
- }
194
- }
195
- ExternalIdsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
196
- ExternalIdsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: ExternalIdsPartFeatureComponent, selector: "cadmus-refs-external-ids-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-refs-external-ids-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.ExternalIdsPartComponent, selector: "cadmus-refs-external-ids-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
197
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: ExternalIdsPartFeatureComponent, decorators: [{
198
- type: Component,
199
- args: [{ selector: 'cadmus-refs-external-ids-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-refs-external-ids-part>\r\n" }]
185
+ class ExternalIdsPartFeatureComponent extends EditPartFeatureBase {
186
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
187
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
188
+ }
189
+ getReqThesauriIds() {
190
+ return [
191
+ 'external-id-scopes',
192
+ 'external-id-tags',
193
+ 'assertion-tags',
194
+ 'doc-reference-types',
195
+ 'doc-reference-tags',
196
+ ];
197
+ }
198
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
199
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: ExternalIdsPartFeatureComponent, selector: "cadmus-refs-external-ids-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-refs-external-ids-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.ExternalIdsPartComponent, selector: "cadmus-refs-external-ids-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
200
+ }
201
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ExternalIdsPartFeatureComponent, decorators: [{
202
+ type: Component,
203
+ args: [{ selector: 'cadmus-refs-external-ids-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-refs-external-ids-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-refs-external-ids-part>\r\n" }]
200
204
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
201
205
 
202
- class HistoricalDatePartFeatureComponent extends EditPartFeatureBase {
203
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
204
- super(router, route, snackbar, itemService, thesaurusService, editorService);
205
- }
206
- getReqThesauriIds() {
207
- return ['doc-reference-tags', 'doc-reference-types'];
208
- }
209
- }
210
- HistoricalDatePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
211
- HistoricalDatePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: HistoricalDatePartFeatureComponent, selector: "cadmus-historical-date-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.HistoricalDatePartComponent, selector: "cadmus-historical-date-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HistoricalDatePartFeatureComponent, decorators: [{
213
- type: Component,
214
- args: [{ selector: 'cadmus-historical-date-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n" }]
206
+ class HistoricalDatePartFeatureComponent extends EditPartFeatureBase {
207
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
208
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
209
+ }
210
+ getReqThesauriIds() {
211
+ return ['doc-reference-tags', 'doc-reference-types'];
212
+ }
213
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
214
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: HistoricalDatePartFeatureComponent, selector: "cadmus-historical-date-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.HistoricalDatePartComponent, selector: "cadmus-historical-date-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
215
+ }
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HistoricalDatePartFeatureComponent, decorators: [{
217
+ type: Component,
218
+ args: [{ selector: 'cadmus-historical-date-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-historical-date-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-historical-date-part>\r\n" }]
215
219
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
216
220
 
217
- class HistoricalEventsPartFeatureComponent extends EditPartFeatureBase {
218
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
219
- super(router, route, snackbar, itemService, thesaurusService, editorService);
220
- this.roleIdInThesauri = true;
221
- }
222
- getReqThesauriIds() {
223
- return [
224
- 'event-types',
225
- 'event-tags',
226
- 'event-relations',
227
- 'chronotope-tags',
228
- 'assertion-tags',
229
- 'doc-reference-tags',
230
- 'doc-reference-types',
231
- ];
232
- }
233
- }
234
- HistoricalEventsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
235
- HistoricalEventsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: HistoricalEventsPartFeatureComponent, selector: "cadmus-historical-events-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.HistoricalEventsPartComponent, selector: "cadmus-historical-events-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: HistoricalEventsPartFeatureComponent, decorators: [{
237
- type: Component,
238
- args: [{ selector: 'cadmus-historical-events-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n" }]
221
+ class HistoricalEventsPartFeatureComponent extends EditPartFeatureBase {
222
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
223
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
224
+ this.roleIdInThesauri = true;
225
+ }
226
+ getReqThesauriIds() {
227
+ return [
228
+ 'event-types',
229
+ 'event-tags',
230
+ 'event-relations',
231
+ 'chronotope-tags',
232
+ 'assertion-tags',
233
+ 'doc-reference-tags',
234
+ 'doc-reference-types',
235
+ 'pin-link-scopes',
236
+ 'pin-link-tags',
237
+ 'pin-link-settings',
238
+ ];
239
+ }
240
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
241
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: HistoricalEventsPartFeatureComponent, selector: "cadmus-historical-events-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.HistoricalEventsPartComponent, selector: "cadmus-historical-events-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
242
+ }
243
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: HistoricalEventsPartFeatureComponent, decorators: [{
244
+ type: Component,
245
+ args: [{ selector: 'cadmus-historical-events-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-historical-events-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-historical-events-part>\n" }]
239
246
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
240
247
 
241
- class IndexKeywordsPartFeatureComponent extends EditPartFeatureBase {
242
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
243
- super(router, route, snackbar, itemService, thesaurusService, editorService);
244
- }
245
- getReqThesauriIds() {
246
- return ['languages', 'keyword-indexes', 'keyword-tags'];
247
- }
248
- }
249
- IndexKeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
250
- IndexKeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: IndexKeywordsPartFeatureComponent, selector: "cadmus-index-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.IndexKeywordsPartComponent, selector: "cadmus-index-keywords-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: IndexKeywordsPartFeatureComponent, decorators: [{
252
- type: Component,
253
- args: [{ selector: 'cadmus-index-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n" }]
248
+ class IndexKeywordsPartFeatureComponent extends EditPartFeatureBase {
249
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
250
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
251
+ }
252
+ getReqThesauriIds() {
253
+ return ['languages', 'keyword-indexes', 'keyword-tags'];
254
+ }
255
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
256
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: IndexKeywordsPartFeatureComponent, selector: "cadmus-index-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.IndexKeywordsPartComponent, selector: "cadmus-index-keywords-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
257
+ }
258
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: IndexKeywordsPartFeatureComponent, decorators: [{
259
+ type: Component,
260
+ args: [{ selector: 'cadmus-index-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-index-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-index-keywords-part>\r\n" }]
254
261
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
255
262
 
256
- class KeywordsPartFeatureComponent extends EditPartFeatureBase {
257
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
258
- super(router, route, snackbar, itemService, thesaurusService, editorService);
259
- }
260
- getReqThesauriIds() {
261
- return ['languages'];
262
- }
263
- }
264
- KeywordsPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
265
- KeywordsPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: KeywordsPartFeatureComponent, selector: "cadmus-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.KeywordsPartComponent, selector: "cadmus-keywords-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
266
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: KeywordsPartFeatureComponent, decorators: [{
267
- type: Component,
268
- args: [{ selector: 'cadmus-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n" }]
263
+ class KeywordsPartFeatureComponent extends EditPartFeatureBase {
264
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
265
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
266
+ }
267
+ getReqThesauriIds() {
268
+ return ['languages'];
269
+ }
270
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
271
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: KeywordsPartFeatureComponent, selector: "cadmus-keywords-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.KeywordsPartComponent, selector: "cadmus-keywords-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
272
+ }
273
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: KeywordsPartFeatureComponent, decorators: [{
274
+ type: Component,
275
+ args: [{ selector: 'cadmus-keywords-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-keywords-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-keywords-part>\r\n" }]
269
276
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
270
277
 
271
- class MetadataPartFeatureComponent extends EditPartFeatureBase {
272
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
273
- super(router, route, snackbar, itemService, thesaurusService, editorService);
274
- }
275
- getReqThesauriIds() {
276
- return ['metadata-types'];
277
- }
278
- }
279
- MetadataPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
280
- MetadataPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: MetadataPartFeatureComponent, selector: "cadmus-metadata-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.MetadataPartComponent, selector: "cadmus-metadata-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: MetadataPartFeatureComponent, decorators: [{
282
- type: Component,
283
- args: [{ selector: 'cadmus-metadata-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n" }]
278
+ class MetadataPartFeatureComponent extends EditPartFeatureBase {
279
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
280
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
281
+ }
282
+ getReqThesauriIds() {
283
+ return ['metadata-types'];
284
+ }
285
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
286
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: MetadataPartFeatureComponent, selector: "cadmus-metadata-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.MetadataPartComponent, selector: "cadmus-metadata-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
287
+ }
288
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: MetadataPartFeatureComponent, decorators: [{
289
+ type: Component,
290
+ args: [{ selector: 'cadmus-metadata-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-metadata-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-metadata-part>\n" }]
284
291
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
285
292
 
286
- class NamesPartFeatureComponent extends EditPartFeatureBase {
287
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
288
- super(router, route, snackbar, itemService, thesaurusService, editorService);
289
- this.roleIdInThesauri = true;
290
- }
291
- getReqThesauriIds() {
292
- return [
293
- 'name-languages',
294
- 'name-tags',
295
- 'name-piece-types',
296
- 'assertion-tags',
297
- 'doc-reference-types',
298
- 'doc-reference-tags',
299
- ];
300
- }
301
- }
302
- NamesPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
303
- NamesPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NamesPartFeatureComponent, selector: "cadmus-names-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-names-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-names-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.NamesPartComponent, selector: "cadmus-names-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
304
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NamesPartFeatureComponent, decorators: [{
305
- type: Component,
306
- args: [{ selector: 'cadmus-names-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-names-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-names-part>\n" }]
293
+ class NamesPartFeatureComponent extends EditPartFeatureBase {
294
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
295
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
296
+ this.roleIdInThesauri = true;
297
+ }
298
+ getReqThesauriIds() {
299
+ return [
300
+ 'name-languages',
301
+ 'name-tags',
302
+ 'name-piece-types',
303
+ 'assertion-tags',
304
+ 'doc-reference-types',
305
+ 'doc-reference-tags',
306
+ ];
307
+ }
308
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
309
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: NamesPartFeatureComponent, selector: "cadmus-names-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-names-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-names-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.NamesPartComponent, selector: "cadmus-names-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
310
+ }
311
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NamesPartFeatureComponent, decorators: [{
312
+ type: Component,
313
+ args: [{ selector: 'cadmus-names-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-names-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-names-part>\n" }]
307
314
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
308
315
 
309
- class NotePartFeatureComponent extends EditPartFeatureBase {
310
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
311
- super(router, route, snackbar, itemService, thesaurusService, editorService);
312
- this.roleIdInThesauri = true;
313
- }
314
- getReqThesauriIds() {
315
- return ['note-tags'];
316
- }
317
- }
318
- NotePartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
319
- NotePartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: NotePartFeatureComponent, selector: "cadmus-note-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.NotePartComponent, selector: "cadmus-note-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
320
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: NotePartFeatureComponent, decorators: [{
321
- type: Component,
322
- args: [{ selector: 'cadmus-note-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n" }]
316
+ class NotePartFeatureComponent extends EditPartFeatureBase {
317
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
318
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
319
+ this.roleIdInThesauri = true;
320
+ }
321
+ getReqThesauriIds() {
322
+ return ['note-tags'];
323
+ }
324
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
325
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: NotePartFeatureComponent, selector: "cadmus-note-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.NotePartComponent, selector: "cadmus-note-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
326
+ }
327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: NotePartFeatureComponent, decorators: [{
328
+ type: Component,
329
+ args: [{ selector: 'cadmus-note-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-note-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-note-part>\r\n" }]
323
330
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
324
331
 
325
- class PinLinksFragmentFeatureComponent extends EditFragmentFeatureBase {
326
- constructor(router, route, snackbar, editorService, libraryRouteService) {
327
- super(router, route, snackbar, editorService, libraryRouteService);
328
- }
329
- getReqThesauriIds() {
330
- return ['pin-link-tags'];
331
- }
332
- }
333
- PinLinksFragmentFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
334
- PinLinksFragmentFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: PinLinksFragmentFeatureComponent, selector: "cadmus-pin-links-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<div class=\"base-text\">\n <cadmus-decorated-token-text\n [baseText]=\"data?.baseText || ''\"\n [locations]=\"frLoc ? [frLoc] : []\"\n ></cadmus-decorated-token-text>\n</div>\n<cadmus-pin-links-fragment\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($any($event))\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-fragment>\n", styles: [""], dependencies: [{ kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.PinLinksFragmentComponent, selector: "cadmus-pin-links-fragment" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
335
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: PinLinksFragmentFeatureComponent, decorators: [{
336
- type: Component,
337
- args: [{ selector: 'cadmus-pin-links-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<div class=\"base-text\">\n <cadmus-decorated-token-text\n [baseText]=\"data?.baseText || ''\"\n [locations]=\"frLoc ? [frLoc] : []\"\n ></cadmus-decorated-token-text>\n</div>\n<cadmus-pin-links-fragment\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($any($event))\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-fragment>\n" }]
332
+ class PinLinksFragmentFeatureComponent extends EditFragmentFeatureBase {
333
+ constructor(router, route, snackbar, editorService, libraryRouteService) {
334
+ super(router, route, snackbar, editorService, libraryRouteService);
335
+ }
336
+ getReqThesauriIds() {
337
+ return [
338
+ 'pin-link-scopes',
339
+ 'pin-link-tags',
340
+ 'pin-link-assertion-tags',
341
+ 'pin-link-docref-types',
342
+ 'pin-link-docref-tags',
343
+ 'pin-link-settings',
344
+ ];
345
+ }
346
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
347
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: PinLinksFragmentFeatureComponent, selector: "cadmus-pin-links-fragment-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<div class=\"base-text\">\n <cadmus-decorated-token-text\n [baseText]=\"data?.baseText || ''\"\n [locations]=\"frLoc ? [frLoc] : []\"\n ></cadmus-decorated-token-text>\n</div>\n<cadmus-pin-links-fragment\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($any($event))\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-fragment>\n", styles: [""], dependencies: [{ kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5.PinLinksFragmentComponent, selector: "cadmus-pin-links-fragment" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
348
+ }
349
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PinLinksFragmentFeatureComponent, decorators: [{
350
+ type: Component,
351
+ args: [{ selector: 'cadmus-pin-links-fragment-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<div class=\"base-text\">\n <cadmus-decorated-token-text\n [baseText]=\"data?.baseText || ''\"\n [locations]=\"frLoc ? [frLoc] : []\"\n ></cadmus-decorated-token-text>\n</div>\n<cadmus-pin-links-fragment\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($any($event))\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-fragment>\n" }]
338
352
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i4.FragmentEditorService }, { type: i4$1.LibraryRouteService }]; } });
339
353
 
340
- class PinLinksPartFeatureComponent extends EditPartFeatureBase {
341
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
342
- super(router, route, snackbar, itemService, thesaurusService, editorService);
343
- }
344
- getReqThesauriIds() {
345
- return ['pin-link-tags'];
346
- }
347
- }
348
- PinLinksPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
349
- PinLinksPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: PinLinksPartFeatureComponent, selector: "cadmus-pin-links-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-pin-links-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.PinLinksPartComponent, selector: "cadmus-pin-links-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
350
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: PinLinksPartFeatureComponent, decorators: [{
351
- type: Component,
352
- args: [{ selector: 'cadmus-pin-links-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-pin-links-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-part>\n" }]
354
+ class PinLinksPartFeatureComponent extends EditPartFeatureBase {
355
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
356
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
357
+ }
358
+ getReqThesauriIds() {
359
+ return [
360
+ 'pin-link-scopes',
361
+ 'pin-link-tags',
362
+ 'pin-link-assertion-tags',
363
+ 'pin-link-docref-types',
364
+ 'pin-link-docref-tags',
365
+ 'pin-link-settings',
366
+ ];
367
+ }
368
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
369
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: PinLinksPartFeatureComponent, selector: "cadmus-pin-links-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-pin-links-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-part>\n", styles: [""], dependencies: [{ kind: "component", type: i5.PinLinksPartComponent, selector: "cadmus-pin-links-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
370
+ }
371
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PinLinksPartFeatureComponent, decorators: [{
372
+ type: Component,
373
+ args: [{ selector: 'cadmus-pin-links-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\n<cadmus-pin-links-part\n [identity]=\"identity\"\n [data]=\"$any(data)\"\n (dataChange)=\"save($event)\"\n (editorClose)=\"close()\"\n (dirtyChange)=\"onDirtyChange($event)\"\n></cadmus-pin-links-part>\n" }]
353
374
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
354
375
 
355
- /**
356
- * The layer view model for a tiled text.
357
- */
358
- class TiledTextLayerView {
359
- /**
360
- * Create a new view from the specified tiled text.
361
- * @param rows The tiled text rows.
362
- */
363
- constructor(rows) {
364
- // setup rows to reflect the text
365
- this._rows = [];
366
- if (rows) {
367
- // for each row
368
- for (let i = 0; i < rows.length; i++) {
369
- this._rows[i] = {
370
- tiles: [],
371
- };
372
- // for each tile in row
373
- for (let j = 0; j < (rows[i].tiles ? rows[i].tiles.length : 0); j++) {
374
- this._rows[i].tiles[j] = {
375
- checked: false,
376
- frIndex: -1,
377
- model: rows[i].tiles[j],
378
- };
379
- }
380
- }
381
- }
382
- }
383
- /**
384
- * The internal rows view models.
385
- */
386
- get rows() {
387
- return this._rows;
388
- }
389
- /**
390
- * Get the tile at the specified coordinates.
391
- *
392
- * @param y The tile's y coordinate.
393
- * @param x The tile's x coordinate.
394
- */
395
- getTileAt(y, x) {
396
- return this._rows[y - 1].tiles[x - 1];
397
- }
398
- /**
399
- * Set the view state of all the tiles.
400
- *
401
- * @param state The state values to set in each tile's state.
402
- * @param setChecked True to set the checked property of states.
403
- * @param setFrIndex True to set the frIndex property of states.
404
- */
405
- setAllTilesViewState(state) {
406
- const hasChecked = state.hasOwnProperty('checked');
407
- const hasFrIndex = state.hasOwnProperty('frIndex');
408
- if (!hasChecked && !hasFrIndex) {
409
- return;
410
- }
411
- // for each row
412
- for (let i = 0; i < this._rows.length; i++) {
413
- const row = this._rows[i];
414
- // for each tile in row
415
- for (let j = 0; j < row.tiles.length; j++) {
416
- const tile = row.tiles[j];
417
- row.tiles[j] = {
418
- checked: (hasChecked ? state.checked : tile.checked) ? true : false,
419
- frIndex: hasFrIndex ? state.frIndex || -1 : tile.frIndex,
420
- model: tile.model,
421
- };
422
- }
423
- }
424
- }
425
- /**
426
- * Set the fragment index of each tile in this view. This is equal to the
427
- * index to the fragment including the tile, when the tile is inside that
428
- * fragment, or to -1, when the tile is outside any fragment. Fragment indexes
429
- * refer to their locations, as received by this function.
430
- *
431
- * @param locations Fragments locations.
432
- */
433
- setFragmentLocations(locations) {
434
- // reset all the tiles fragment indexes
435
- this.setAllTilesViewState({ frIndex: -1 });
436
- // for each fragment's location
437
- for (let i = 0; i < locations.length; i++) {
438
- const loc = locations[i];
439
- if (loc.secondary) {
440
- // range
441
- for (let y = loc.primary.y; y <= loc.secondary.y; y++) {
442
- const row = this._rows[y - 1];
443
- for (let x = y === loc.primary.y ? loc.primary.x : 1; y === loc.secondary.y
444
- ? x <= loc.secondary.x
445
- : x <= row.tiles.length; x++) {
446
- const tile = row.tiles[x - 1];
447
- row.tiles[x - 1] = {
448
- checked: tile.checked,
449
- frIndex: i,
450
- model: tile.model,
451
- };
452
- }
453
- }
454
- }
455
- else {
456
- // point
457
- const tile = this.getTileAt(loc.primary.y, loc.primary.x);
458
- if (tile) {
459
- this._rows[loc.primary.y - 1].tiles[loc.primary.x - 1] = {
460
- checked: tile.checked,
461
- frIndex: i,
462
- model: tile.model,
463
- };
464
- }
465
- }
466
- }
467
- }
468
- /**
469
- * Find the coordinates of the first tile having the specified checked state,
470
- * starting from the specified coordinates.
471
- *
472
- * @param y The y coordinates to start from.
473
- * @param x The x coordinates to start from.
474
- * @param checked True to find checked tiles, false to find unchecked tiles.
475
- * @param reverse True to find in reverse direction.
476
- * @returns The coordinates, or null if not found.
477
- */
478
- findFirstCheckedCoords(y, x, checked, reverse = false) {
479
- if (reverse) {
480
- let xstart = x;
481
- while (true) {
482
- for (let xi = xstart; xi >= 1; xi--) {
483
- if (this.getTileAt(y, xi).checked === checked) {
484
- return {
485
- y,
486
- x: xi,
487
- };
488
- }
489
- }
490
- if (--y > 0) {
491
- xstart = this._rows[y - 1].tiles.length;
492
- }
493
- else {
494
- break;
495
- }
496
- }
497
- }
498
- else {
499
- let xstart = x;
500
- while (true) {
501
- for (let xi = xstart; xi <= this._rows[y - 1].tiles.length; xi++) {
502
- if (this.getTileAt(y, xi).checked === checked) {
503
- return {
504
- y,
505
- x: xi,
506
- };
507
- }
508
- }
509
- if (++y <= this._rows.length) {
510
- xstart = 1;
511
- }
512
- else {
513
- break;
514
- }
515
- }
516
- }
517
- return null;
518
- }
519
- /**
520
- * "Linearly" set the checked state in the specified range of checked tiles.
521
- *
522
- * @param y1 The start y coordinate.
523
- * @param x1 The start x coordinate.
524
- * @param y2 The end y coordinate (included).
525
- * @param x2 The end x coordinate (included).
526
- * @param checked The state to be set.
527
- */
528
- linearSetCheck(y1, x1, y2, x2, checked) {
529
- for (let y = y1; y <= y2; y++) {
530
- const row = this._rows[y - 1];
531
- for (let x = y === y1 ? x1 : 1; y === y2 ? x <= x2 : x <= row.tiles.length; x++) {
532
- const tile = row.tiles[x - 1];
533
- row.tiles[x - 1] = {
534
- frIndex: tile.frIndex,
535
- checked,
536
- model: tile.model,
537
- };
538
- }
539
- }
540
- }
541
- /**
542
- * Get the coordinates of the next tile starting from the specified origin
543
- * tile. The next tile is the tile to the right of the origin tile in the
544
- * same row, or the first tile of the next row (if any) when the origin is
545
- * the last tile in its row.
546
- *
547
- * @param y The y coordinate of the origin tile.
548
- * @param x The x coordinate of the origin tile.
549
- * @returns The coordinates, or null if no other tiles after origin.
550
- */
551
- getNextTileCoords(y, x) {
552
- if (x < this._rows[y - 1].tiles.length) {
553
- return {
554
- y,
555
- x: x + 1,
556
- };
557
- }
558
- y++;
559
- while (y <= this._rows.length) {
560
- if (this._rows[y - 1].tiles.length > 0) {
561
- return {
562
- y,
563
- x: 1,
564
- };
565
- }
566
- y++;
567
- }
568
- return null;
569
- }
570
- /**
571
- * Get the coordinates of the previous tile starting from the specified origin
572
- * tile. The previous tile is the tile to the left of the origin tile in the
573
- * same row, or the last tile of the previous row (if any) when the origin is
574
- * the first tile in its row.
575
- *
576
- * @param y The y coordinate of the origin tile.
577
- * @param x The x coordinate of the origin tile.
578
- * @returns The coordinates, or null if no other tiles before origin.
579
- */
580
- getPrevTileCoords(y, x) {
581
- if (x > 1) {
582
- return {
583
- y,
584
- x: x - 1,
585
- };
586
- }
587
- y--;
588
- while (y > 0) {
589
- if (this._rows[y - 1].tiles.length > 0) {
590
- return {
591
- y,
592
- x: this._rows[y - 1].tiles.length,
593
- };
594
- }
595
- y--;
596
- }
597
- return null;
598
- }
599
- /**
600
- * "Linearly" toggle the tiles according to the specified toggle action
601
- * in the specified set of tiles rows. When users toggle a tile from unchecked
602
- * to checked, and any other tile was checked, the checked state must be
603
- * extended so that all the tiles between the newly checked tile and the old
604
- * one(s) are checked, so that they form a continuous "line", eventually
605
- * spanning rows. The same inversely applies when un-checking tiles. This
606
- * ensures that users can select a single range of tiles by toggling at any
607
- * of its ends.
608
- *
609
- * @param y The y coordinate of the tile which was toggled.
610
- * @param x The x coordinate of the tile which was toggled.
611
- * @param checked The new checked state after toggling the tile.
612
- */
613
- toggleLinearTileCheck(y, x, checked) {
614
- // if it was checked, it was toggled from unchecked
615
- if (checked) {
616
- // find 1st next checked:
617
- let yx = this.findFirstCheckedCoords(y, x, true);
618
- // found: extend from it to y,x
619
- if (yx) {
620
- this.linearSetCheck(yx.y, yx.x, y, x, true);
621
- return;
622
- }
623
- // not found: find 1st prev checked:
624
- yx = this.findFirstCheckedCoords(y, x, true, true);
625
- // found: extend from it to y,x
626
- if (yx) {
627
- this.linearSetCheck(yx.y, yx.x, y, x, true);
628
- return;
629
- }
630
- // not found: check y,x
631
- const tile = this.getTileAt(y, x);
632
- this._rows[y - 1].tiles[x - 1] = {
633
- checked: true,
634
- frIndex: tile.frIndex,
635
- model: tile.model,
636
- };
637
- }
638
- else {
639
- // it was toggled from checked:
640
- // find 1st prev non-checked and set origin (y1,x1) equal to 1 if not found,
641
- // else to the tile next to the one found. Then uncheck all from origin
642
- // to y,x.
643
- let y1;
644
- let x1;
645
- const yx = this.findFirstCheckedCoords(y, x, false, true);
646
- if (yx) {
647
- const next = this.getNextTileCoords(yx.y, yx.x);
648
- if (!next) {
649
- y1 = y;
650
- x1 = x;
651
- }
652
- else {
653
- y1 = next.y;
654
- x1 = next.x;
655
- }
656
- this.linearSetCheck(y1, x1, yx.y, yx.x, false);
657
- }
658
- else {
659
- y1 = 1;
660
- x1 = 1;
661
- }
662
- }
663
- }
664
- /**
665
- * Get the location of the checked tiles, if any. As tiles are checked
666
- * only as an uninterrupted sequence, there can be only 0 or 1 location
667
- * in a set.
668
- *
669
- * @returns The location, or null if no tiles are checked.
670
- */
671
- getCheckedLocation() {
672
- const start = this.findFirstCheckedCoords(1, 1, true);
673
- if (!start) {
674
- return null;
675
- }
676
- const end = this.findFirstCheckedCoords(start.y, start.x, false);
677
- if (!end || (end.y === start.y && end.x === start.x)) {
678
- return null;
679
- }
680
- const last = this.getPrevTileCoords(end.y, end.x);
681
- return !last || (last.y === start.y && last.x === start.x)
682
- ? new TokenLocation(new TokenPoint(start.y, start.x))
683
- : new TokenLocation(new TokenPoint(start.y, start.x), new TokenPoint(last.y, last.x));
684
- }
685
- /**
686
- * Get the location of the checked tiles, together with the index to the
687
- * fragment including them (or a part of them). Should the tiles be included
688
- * in more than 1 fragment, no fragment will be returned.
689
- *
690
- * @returns Object with fragment=fragment index or -1, and location=location
691
- * of checked tiles; or null if no checked tile.
692
- */
693
- getCheckedLocationAndFragment() {
694
- const loc = this.getCheckedLocation();
695
- if (!loc) {
696
- return null;
697
- }
698
- let y2;
699
- let x2;
700
- if (loc.secondary) {
701
- y2 = loc.secondary.y;
702
- x2 = loc.secondary.x;
703
- }
704
- else {
705
- y2 = loc.primary.y;
706
- x2 = loc.primary.x;
707
- }
708
- let fr = -1;
709
- for (let y = loc.primary.y; y <= y2; y++) {
710
- const row = this._rows[y - 1];
711
- for (let x = y === loc.primary.y ? loc.primary.x : 1; x <= (y === y2 ? x2 : row.tiles.length); x++) {
712
- if (row.tiles[x - 1].frIndex > -1) {
713
- if (fr > -1) {
714
- if (fr !== row.tiles[x - 1].frIndex) {
715
- return {
716
- fragment: -1,
717
- location: loc,
718
- };
719
- }
720
- }
721
- else {
722
- fr = row.tiles[x - 1].frIndex;
723
- }
724
- }
725
- }
726
- }
727
- return {
728
- fragment: fr,
729
- location: loc,
730
- };
731
- }
376
+ /**
377
+ * The layer view model for a tiled text.
378
+ */
379
+ class TiledTextLayerView {
380
+ /**
381
+ * Create a new view from the specified tiled text.
382
+ * @param rows The tiled text rows.
383
+ */
384
+ constructor(rows) {
385
+ // setup rows to reflect the text
386
+ this._rows = [];
387
+ if (rows) {
388
+ // for each row
389
+ for (let i = 0; i < rows.length; i++) {
390
+ this._rows[i] = {
391
+ tiles: [],
392
+ };
393
+ // for each tile in row
394
+ for (let j = 0; j < (rows[i].tiles ? rows[i].tiles.length : 0); j++) {
395
+ this._rows[i].tiles[j] = {
396
+ checked: false,
397
+ frIndex: -1,
398
+ model: rows[i].tiles[j],
399
+ };
400
+ }
401
+ }
402
+ }
403
+ }
404
+ /**
405
+ * The internal rows view models.
406
+ */
407
+ get rows() {
408
+ return this._rows;
409
+ }
410
+ /**
411
+ * Get the tile at the specified coordinates.
412
+ *
413
+ * @param y The tile's y coordinate.
414
+ * @param x The tile's x coordinate.
415
+ */
416
+ getTileAt(y, x) {
417
+ return this._rows[y - 1].tiles[x - 1];
418
+ }
419
+ /**
420
+ * Set the view state of all the tiles.
421
+ *
422
+ * @param state The state values to set in each tile's state.
423
+ * @param setChecked True to set the checked property of states.
424
+ * @param setFrIndex True to set the frIndex property of states.
425
+ */
426
+ setAllTilesViewState(state) {
427
+ const hasChecked = state.hasOwnProperty('checked');
428
+ const hasFrIndex = state.hasOwnProperty('frIndex');
429
+ if (!hasChecked && !hasFrIndex) {
430
+ return;
431
+ }
432
+ // for each row
433
+ for (let i = 0; i < this._rows.length; i++) {
434
+ const row = this._rows[i];
435
+ // for each tile in row
436
+ for (let j = 0; j < row.tiles.length; j++) {
437
+ const tile = row.tiles[j];
438
+ row.tiles[j] = {
439
+ checked: (hasChecked ? state.checked : tile.checked) ? true : false,
440
+ frIndex: hasFrIndex ? state.frIndex || -1 : tile.frIndex,
441
+ model: tile.model,
442
+ };
443
+ }
444
+ }
445
+ }
446
+ /**
447
+ * Set the fragment index of each tile in this view. This is equal to the
448
+ * index to the fragment including the tile, when the tile is inside that
449
+ * fragment, or to -1, when the tile is outside any fragment. Fragment indexes
450
+ * refer to their locations, as received by this function.
451
+ *
452
+ * @param locations Fragments locations.
453
+ */
454
+ setFragmentLocations(locations) {
455
+ // reset all the tiles fragment indexes
456
+ this.setAllTilesViewState({ frIndex: -1 });
457
+ // for each fragment's location
458
+ for (let i = 0; i < locations.length; i++) {
459
+ const loc = locations[i];
460
+ if (loc.secondary) {
461
+ // range
462
+ for (let y = loc.primary.y; y <= loc.secondary.y; y++) {
463
+ const row = this._rows[y - 1];
464
+ for (let x = y === loc.primary.y ? loc.primary.x : 1; y === loc.secondary.y
465
+ ? x <= loc.secondary.x
466
+ : x <= row.tiles.length; x++) {
467
+ const tile = row.tiles[x - 1];
468
+ row.tiles[x - 1] = {
469
+ checked: tile.checked,
470
+ frIndex: i,
471
+ model: tile.model,
472
+ };
473
+ }
474
+ }
475
+ }
476
+ else {
477
+ // point
478
+ const tile = this.getTileAt(loc.primary.y, loc.primary.x);
479
+ if (tile) {
480
+ this._rows[loc.primary.y - 1].tiles[loc.primary.x - 1] = {
481
+ checked: tile.checked,
482
+ frIndex: i,
483
+ model: tile.model,
484
+ };
485
+ }
486
+ }
487
+ }
488
+ }
489
+ /**
490
+ * Find the coordinates of the first tile having the specified checked state,
491
+ * starting from the specified coordinates.
492
+ *
493
+ * @param y The y coordinates to start from.
494
+ * @param x The x coordinates to start from.
495
+ * @param checked True to find checked tiles, false to find unchecked tiles.
496
+ * @param reverse True to find in reverse direction.
497
+ * @returns The coordinates, or null if not found.
498
+ */
499
+ findFirstCheckedCoords(y, x, checked, reverse = false) {
500
+ if (reverse) {
501
+ let xstart = x;
502
+ while (true) {
503
+ for (let xi = xstart; xi >= 1; xi--) {
504
+ if (this.getTileAt(y, xi).checked === checked) {
505
+ return {
506
+ y,
507
+ x: xi,
508
+ };
509
+ }
510
+ }
511
+ if (--y > 0) {
512
+ xstart = this._rows[y - 1].tiles.length;
513
+ }
514
+ else {
515
+ break;
516
+ }
517
+ }
518
+ }
519
+ else {
520
+ let xstart = x;
521
+ while (true) {
522
+ for (let xi = xstart; xi <= this._rows[y - 1].tiles.length; xi++) {
523
+ if (this.getTileAt(y, xi).checked === checked) {
524
+ return {
525
+ y,
526
+ x: xi,
527
+ };
528
+ }
529
+ }
530
+ if (++y <= this._rows.length) {
531
+ xstart = 1;
532
+ }
533
+ else {
534
+ break;
535
+ }
536
+ }
537
+ }
538
+ return null;
539
+ }
540
+ /**
541
+ * "Linearly" set the checked state in the specified range of checked tiles.
542
+ *
543
+ * @param y1 The start y coordinate.
544
+ * @param x1 The start x coordinate.
545
+ * @param y2 The end y coordinate (included).
546
+ * @param x2 The end x coordinate (included).
547
+ * @param checked The state to be set.
548
+ */
549
+ linearSetCheck(y1, x1, y2, x2, checked) {
550
+ for (let y = y1; y <= y2; y++) {
551
+ const row = this._rows[y - 1];
552
+ for (let x = y === y1 ? x1 : 1; y === y2 ? x <= x2 : x <= row.tiles.length; x++) {
553
+ const tile = row.tiles[x - 1];
554
+ row.tiles[x - 1] = {
555
+ frIndex: tile.frIndex,
556
+ checked,
557
+ model: tile.model,
558
+ };
559
+ }
560
+ }
561
+ }
562
+ /**
563
+ * Get the coordinates of the next tile starting from the specified origin
564
+ * tile. The next tile is the tile to the right of the origin tile in the
565
+ * same row, or the first tile of the next row (if any) when the origin is
566
+ * the last tile in its row.
567
+ *
568
+ * @param y The y coordinate of the origin tile.
569
+ * @param x The x coordinate of the origin tile.
570
+ * @returns The coordinates, or null if no other tiles after origin.
571
+ */
572
+ getNextTileCoords(y, x) {
573
+ if (x < this._rows[y - 1].tiles.length) {
574
+ return {
575
+ y,
576
+ x: x + 1,
577
+ };
578
+ }
579
+ y++;
580
+ while (y <= this._rows.length) {
581
+ if (this._rows[y - 1].tiles.length > 0) {
582
+ return {
583
+ y,
584
+ x: 1,
585
+ };
586
+ }
587
+ y++;
588
+ }
589
+ return null;
590
+ }
591
+ /**
592
+ * Get the coordinates of the previous tile starting from the specified origin
593
+ * tile. The previous tile is the tile to the left of the origin tile in the
594
+ * same row, or the last tile of the previous row (if any) when the origin is
595
+ * the first tile in its row.
596
+ *
597
+ * @param y The y coordinate of the origin tile.
598
+ * @param x The x coordinate of the origin tile.
599
+ * @returns The coordinates, or null if no other tiles before origin.
600
+ */
601
+ getPrevTileCoords(y, x) {
602
+ if (x > 1) {
603
+ return {
604
+ y,
605
+ x: x - 1,
606
+ };
607
+ }
608
+ y--;
609
+ while (y > 0) {
610
+ if (this._rows[y - 1].tiles.length > 0) {
611
+ return {
612
+ y,
613
+ x: this._rows[y - 1].tiles.length,
614
+ };
615
+ }
616
+ y--;
617
+ }
618
+ return null;
619
+ }
620
+ /**
621
+ * "Linearly" toggle the tiles according to the specified toggle action
622
+ * in the specified set of tiles rows. When users toggle a tile from unchecked
623
+ * to checked, and any other tile was checked, the checked state must be
624
+ * extended so that all the tiles between the newly checked tile and the old
625
+ * one(s) are checked, so that they form a continuous "line", eventually
626
+ * spanning rows. The same inversely applies when un-checking tiles. This
627
+ * ensures that users can select a single range of tiles by toggling at any
628
+ * of its ends.
629
+ *
630
+ * @param y The y coordinate of the tile which was toggled.
631
+ * @param x The x coordinate of the tile which was toggled.
632
+ * @param checked The new checked state after toggling the tile.
633
+ */
634
+ toggleLinearTileCheck(y, x, checked) {
635
+ // if it was checked, it was toggled from unchecked
636
+ if (checked) {
637
+ // find 1st next checked:
638
+ let yx = this.findFirstCheckedCoords(y, x, true);
639
+ // found: extend from it to y,x
640
+ if (yx) {
641
+ this.linearSetCheck(yx.y, yx.x, y, x, true);
642
+ return;
643
+ }
644
+ // not found: find 1st prev checked:
645
+ yx = this.findFirstCheckedCoords(y, x, true, true);
646
+ // found: extend from it to y,x
647
+ if (yx) {
648
+ this.linearSetCheck(yx.y, yx.x, y, x, true);
649
+ return;
650
+ }
651
+ // not found: check y,x
652
+ const tile = this.getTileAt(y, x);
653
+ this._rows[y - 1].tiles[x - 1] = {
654
+ checked: true,
655
+ frIndex: tile.frIndex,
656
+ model: tile.model,
657
+ };
658
+ }
659
+ else {
660
+ // it was toggled from checked:
661
+ // find 1st prev non-checked and set origin (y1,x1) equal to 1 if not found,
662
+ // else to the tile next to the one found. Then uncheck all from origin
663
+ // to y,x.
664
+ let y1;
665
+ let x1;
666
+ const yx = this.findFirstCheckedCoords(y, x, false, true);
667
+ if (yx) {
668
+ const next = this.getNextTileCoords(yx.y, yx.x);
669
+ if (!next) {
670
+ y1 = y;
671
+ x1 = x;
672
+ }
673
+ else {
674
+ y1 = next.y;
675
+ x1 = next.x;
676
+ }
677
+ this.linearSetCheck(y1, x1, yx.y, yx.x, false);
678
+ }
679
+ else {
680
+ y1 = 1;
681
+ x1 = 1;
682
+ }
683
+ }
684
+ }
685
+ /**
686
+ * Get the location of the checked tiles, if any. As tiles are checked
687
+ * only as an uninterrupted sequence, there can be only 0 or 1 location
688
+ * in a set.
689
+ *
690
+ * @returns The location, or null if no tiles are checked.
691
+ */
692
+ getCheckedLocation() {
693
+ const start = this.findFirstCheckedCoords(1, 1, true);
694
+ if (!start) {
695
+ return null;
696
+ }
697
+ const end = this.findFirstCheckedCoords(start.y, start.x, false);
698
+ if (!end || (end.y === start.y && end.x === start.x)) {
699
+ return null;
700
+ }
701
+ const last = this.getPrevTileCoords(end.y, end.x);
702
+ return !last || (last.y === start.y && last.x === start.x)
703
+ ? new TokenLocation(new TokenPoint(start.y, start.x))
704
+ : new TokenLocation(new TokenPoint(start.y, start.x), new TokenPoint(last.y, last.x));
705
+ }
706
+ /**
707
+ * Get the location of the checked tiles, together with the index to the
708
+ * fragment including them (or a part of them). Should the tiles be included
709
+ * in more than 1 fragment, no fragment will be returned.
710
+ *
711
+ * @returns Object with fragment=fragment index or -1, and location=location
712
+ * of checked tiles; or null if no checked tile.
713
+ */
714
+ getCheckedLocationAndFragment() {
715
+ const loc = this.getCheckedLocation();
716
+ if (!loc) {
717
+ return null;
718
+ }
719
+ let y2;
720
+ let x2;
721
+ if (loc.secondary) {
722
+ y2 = loc.secondary.y;
723
+ x2 = loc.secondary.x;
724
+ }
725
+ else {
726
+ y2 = loc.primary.y;
727
+ x2 = loc.primary.x;
728
+ }
729
+ let fr = -1;
730
+ for (let y = loc.primary.y; y <= y2; y++) {
731
+ const row = this._rows[y - 1];
732
+ for (let x = y === loc.primary.y ? loc.primary.x : 1; x <= (y === y2 ? x2 : row.tiles.length); x++) {
733
+ if (row.tiles[x - 1].frIndex > -1) {
734
+ if (fr > -1) {
735
+ if (fr !== row.tiles[x - 1].frIndex) {
736
+ return {
737
+ fragment: -1,
738
+ location: loc,
739
+ };
740
+ }
741
+ }
742
+ else {
743
+ fr = row.tiles[x - 1].frIndex;
744
+ }
745
+ }
746
+ }
747
+ }
748
+ return {
749
+ fragment: fr,
750
+ location: loc,
751
+ };
752
+ }
732
753
  }
733
754
 
734
- /**
735
- * Tiled text layer part editor.
736
- * This editor allows picking any layer and see all the text tiles included
737
- * in a fragment with a color highlight. Users can check any number of tiles
738
- * not belonging to any fragment in the selected layer, and add a new fragment
739
- * in the selected layer; or check any number of tiles belonging to a fragment
740
- * of the selected layer, and edit or delete it.
741
- * Tiles are thus colorized by the UI to render the fragments extent; and freely
742
- * checked by users to select the fragments to operate with.
743
- * All the checked tiles must follow each other, in one or more rows. Users can
744
- * just check the first and the last of a sequence to get the whole sequence
745
- * checked.
746
- */
747
- class TiledTextLayerPartFeatureComponent {
748
- constructor(route, _router, _repository, _libraryRouteService, _editedItemRepository, _dialogService, userLevelService) {
749
- this._router = _router;
750
- this._repository = _repository;
751
- this._libraryRouteService = _libraryRouteService;
752
- this._editedItemRepository = _editedItemRepository;
753
- this._dialogService = _dialogService;
754
- this.itemId = route.snapshot.params['iid'];
755
- this.partId = route.snapshot.params['pid'];
756
- if (this.partId === 'new') {
757
- this.partId = undefined;
758
- }
759
- this.roleId = route.snapshot.queryParams['rid'];
760
- if (this.roleId === 'default') {
761
- this.roleId = undefined;
762
- }
763
- this.userLevel = userLevelService.getCurrentUserLevel();
764
- // layers part
765
- this.loading$ = this._repository.loading$;
766
- this.saving$ = this._repository.saving$;
767
- this.baseText$ = this._repository.baseText$;
768
- this.locations$ = this._repository.locations$;
769
- this.breakChance$ = this._repository.breakChance$;
770
- this.layerHints$ = this._repository.layerHints$;
771
- // base text: connect rows to the base text part
772
- this.rows$ = this._repository.baseTextPart$.pipe(map((part) => part?.rows));
773
- }
774
- canDeactivate() {
775
- return true;
776
- }
777
- ngOnInit() {
778
- // when the base text changes, load all the fragments locations
779
- // and setup their UI state
780
- this.rows$.subscribe((rows) => {
781
- this.view = rows ? new TiledTextLayerView(rows) : undefined;
782
- this.view?.setFragmentLocations(this._repository.getLocations());
783
- });
784
- // ensure that the container item is loaded
785
- this._editedItemRepository.ensureItemLoaded(this.itemId);
786
- // load the layer part
787
- this._repository.reset();
788
- if (this.partId) {
789
- this._repository.load(this.itemId, this.partId);
790
- }
791
- }
792
- refreshBreakChance() {
793
- this._repository.refreshBreakChance();
794
- }
795
- onTileChecked(y, x, checked) {
796
- if (this.view) {
797
- this.view.toggleLinearTileCheck(y, x, checked);
798
- }
799
- }
800
- getSelectedTileCoords() {
801
- if (!this.selectedTile || !this.view) {
802
- return null;
803
- }
804
- for (let i = 0; i < this.view.rows.length; i++) {
805
- const j = this.view.rows[i].tiles.indexOf(this.selectedTile);
806
- if (j > -1) {
807
- return { y: i + 1, x: j + 1 };
808
- }
809
- }
810
- return null;
811
- }
812
- selectPrevTile() {
813
- if (!this.view) {
814
- return;
815
- }
816
- let yx = this.getSelectedTileCoords();
817
- if (yx) {
818
- yx = this.view.getPrevTileCoords(yx.y, yx.x);
819
- if (yx) {
820
- this.selectedTile = this.view.rows[yx.y - 1].tiles[yx.x - 1];
821
- }
822
- }
823
- }
824
- selectNextTile() {
825
- if (!this.view) {
826
- return;
827
- }
828
- let yx = this.getSelectedTileCoords();
829
- if (yx) {
830
- yx = this.view.getNextTileCoords(yx.y, yx.x);
831
- if (yx) {
832
- this.selectedTile = this.view.rows[yx.y - 1].tiles[yx.x - 1];
833
- }
834
- }
835
- }
836
- deleteFragment() {
837
- if (!this.view) {
838
- return;
839
- }
840
- const lf = this.view.getCheckedLocationAndFragment();
841
- if (!lf || lf.fragment === -1) {
842
- return;
843
- }
844
- const locations = this._repository.getLocations();
845
- const loc = locations[lf.fragment];
846
- this._dialogService
847
- .confirm('Delete Fragment', `Delete the fragment at ${loc}?`)
848
- .subscribe((ok) => {
849
- if (ok) {
850
- // find the fragment and remove it from the part
851
- const i = this._repository.getPart()?.fragments.findIndex((p) => {
852
- return TokenLocation.parse(p.location)?.overlaps(loc);
853
- });
854
- if (i === -1) {
855
- return;
856
- }
857
- this._repository.deleteFragment(loc);
858
- }
859
- });
860
- }
861
- deleteFragmentFromHint(hint) {
862
- const loc = TokenLocation.parse(hint.location);
863
- if (loc) {
864
- this._repository.deleteFragment(loc);
865
- }
866
- }
867
- navigateToFragmentEditor(loc) {
868
- const part = this._repository.getPart();
869
- if (!part) {
870
- return;
871
- }
872
- const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
873
- // navigate to the editor
874
- this._router.navigate([route], rid
875
- ? {
876
- queryParams: {
877
- rid: part.roleId,
878
- },
879
- }
880
- : {});
881
- }
882
- editFragment() {
883
- if (!this.view) {
884
- return;
885
- }
886
- const lf = this.view.getCheckedLocationAndFragment();
887
- if (!lf || lf.fragment === -1) {
888
- return;
889
- }
890
- const locations = this._repository.getLocations();
891
- this.navigateToFragmentEditor(locations[lf.fragment].toString());
892
- }
893
- editFragmentFromHint(hint) {
894
- this.navigateToFragmentEditor(hint.location);
895
- }
896
- moveFragmentFromHint(hint) {
897
- if (!this.pickedLocation ||
898
- this.pickedLocation === hint.location ||
899
- !this.partId) {
900
- return;
901
- }
902
- this._repository.applyLayerPatches(this.partId, [
903
- `mov ${hint.location} ${this.pickedLocation}`,
904
- ]);
905
- }
906
- addFragment() {
907
- if (!this.view) {
908
- return;
909
- }
910
- const lf = this.view.getCheckedLocationAndFragment();
911
- if (!lf || lf.fragment > -1) {
912
- return;
913
- }
914
- this.navigateToFragmentEditor(lf.location.toString());
915
- }
916
- pickLocation() {
917
- if (!this.view) {
918
- return;
919
- }
920
- const lf = this.view.getCheckedLocationAndFragment();
921
- if (!lf) {
922
- return;
923
- }
924
- const locations = this._repository.getLocations();
925
- this.pickedLocation = (lf.fragment === -1 ? lf.location : locations[lf.fragment]).toString();
926
- }
927
- clearTileChecks() {
928
- if (!this.view) {
929
- return;
930
- }
931
- this.view.setAllTilesViewState({ checked: false });
932
- this.pickedLocation = undefined;
933
- }
934
- applyLayerPatches(patches) {
935
- if (this.partId) {
936
- this._repository.applyLayerPatches(this.partId, patches);
937
- }
938
- }
939
- close() {
940
- this._router.navigate(['/items', this.itemId]);
941
- }
942
- }
943
- TiledTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TiledTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i4.EditedLayerRepository }, { token: i4$1.LibraryRouteService }, { token: i4$2.EditedItemRepository }, { token: i5$2.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
944
- TiledTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TiledTextLayerPartFeatureComponent, selector: "cadmus-tiled-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async) && !(saving$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content>\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n style=\"display: flex; flex-flow: row wrap\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n style=\"flex: 0 0 auto\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event.checked)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile()\"\r\n (keydown.control.arrowright)=\"selectNextTile()\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i10.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i5$1.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: i5.TextTileComponent, selector: "cadmus-text-tile", inputs: ["selected", "checkable", "readonly", "color", "checked", "tile"], outputs: ["tileChange", "editData", "checkedChange"] }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }] });
945
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TiledTextLayerPartFeatureComponent, decorators: [{
946
- type: Component,
947
- args: [{ selector: 'cadmus-tiled-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async) && !(saving$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content>\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n style=\"display: flex; flex-flow: row wrap\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n style=\"flex: 0 0 auto\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event.checked)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile()\"\r\n (keydown.control.arrowright)=\"selectNextTile()\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"] }]
755
+ /**
756
+ * Tiled text layer part editor.
757
+ * This editor allows picking any layer and see all the text tiles included
758
+ * in a fragment with a color highlight. Users can check any number of tiles
759
+ * not belonging to any fragment in the selected layer, and add a new fragment
760
+ * in the selected layer; or check any number of tiles belonging to a fragment
761
+ * of the selected layer, and edit or delete it.
762
+ * Tiles are thus colorized by the UI to render the fragments extent; and freely
763
+ * checked by users to select the fragments to operate with.
764
+ * All the checked tiles must follow each other, in one or more rows. Users can
765
+ * just check the first and the last of a sequence to get the whole sequence
766
+ * checked.
767
+ */
768
+ class TiledTextLayerPartFeatureComponent {
769
+ constructor(route, _router, _repository, _libraryRouteService, _editedItemRepository, _dialogService, userLevelService) {
770
+ this._router = _router;
771
+ this._repository = _repository;
772
+ this._libraryRouteService = _libraryRouteService;
773
+ this._editedItemRepository = _editedItemRepository;
774
+ this._dialogService = _dialogService;
775
+ this.itemId = route.snapshot.params['iid'];
776
+ this.partId = route.snapshot.params['pid'];
777
+ if (this.partId === 'new') {
778
+ this.partId = undefined;
779
+ }
780
+ this.roleId = route.snapshot.queryParams['rid'];
781
+ if (this.roleId === 'default') {
782
+ this.roleId = undefined;
783
+ }
784
+ this.userLevel = userLevelService.getCurrentUserLevel();
785
+ // layers part
786
+ this.loading$ = this._repository.loading$;
787
+ this.saving$ = this._repository.saving$;
788
+ this.baseText$ = this._repository.baseText$;
789
+ this.locations$ = this._repository.locations$;
790
+ this.breakChance$ = this._repository.breakChance$;
791
+ this.layerHints$ = this._repository.layerHints$;
792
+ // base text: connect rows to the base text part
793
+ this.rows$ = this._repository.baseTextPart$.pipe(map((part) => part?.rows));
794
+ }
795
+ canDeactivate() {
796
+ return true;
797
+ }
798
+ ngOnInit() {
799
+ // when the base text changes, load all the fragments locations
800
+ // and setup their UI state
801
+ this.rows$.subscribe((rows) => {
802
+ this.view = rows ? new TiledTextLayerView(rows) : undefined;
803
+ this.view?.setFragmentLocations(this._repository.getLocations());
804
+ });
805
+ // ensure that the container item is loaded
806
+ this._editedItemRepository.ensureItemLoaded(this.itemId);
807
+ // load the layer part
808
+ this._repository.reset();
809
+ if (this.partId) {
810
+ this._repository.load(this.itemId, this.partId);
811
+ }
812
+ }
813
+ refreshBreakChance() {
814
+ this._repository.refreshBreakChance();
815
+ }
816
+ onTileChecked(y, x, checked) {
817
+ if (this.view) {
818
+ this.view.toggleLinearTileCheck(y, x, checked);
819
+ }
820
+ }
821
+ getSelectedTileCoords() {
822
+ if (!this.selectedTile || !this.view) {
823
+ return null;
824
+ }
825
+ for (let i = 0; i < this.view.rows.length; i++) {
826
+ const j = this.view.rows[i].tiles.indexOf(this.selectedTile);
827
+ if (j > -1) {
828
+ return { y: i + 1, x: j + 1 };
829
+ }
830
+ }
831
+ return null;
832
+ }
833
+ selectPrevTile() {
834
+ if (!this.view) {
835
+ return;
836
+ }
837
+ let yx = this.getSelectedTileCoords();
838
+ if (yx) {
839
+ yx = this.view.getPrevTileCoords(yx.y, yx.x);
840
+ if (yx) {
841
+ this.selectedTile = this.view.rows[yx.y - 1].tiles[yx.x - 1];
842
+ }
843
+ }
844
+ }
845
+ selectNextTile() {
846
+ if (!this.view) {
847
+ return;
848
+ }
849
+ let yx = this.getSelectedTileCoords();
850
+ if (yx) {
851
+ yx = this.view.getNextTileCoords(yx.y, yx.x);
852
+ if (yx) {
853
+ this.selectedTile = this.view.rows[yx.y - 1].tiles[yx.x - 1];
854
+ }
855
+ }
856
+ }
857
+ deleteFragment() {
858
+ if (!this.view) {
859
+ return;
860
+ }
861
+ const lf = this.view.getCheckedLocationAndFragment();
862
+ if (!lf || lf.fragment === -1) {
863
+ return;
864
+ }
865
+ const locations = this._repository.getLocations();
866
+ const loc = locations[lf.fragment];
867
+ this._dialogService
868
+ .confirm('Delete Fragment', `Delete the fragment at ${loc}?`)
869
+ .subscribe((ok) => {
870
+ if (ok) {
871
+ // find the fragment and remove it from the part
872
+ const i = this._repository.getPart()?.fragments.findIndex((p) => {
873
+ return TokenLocation.parse(p.location)?.overlaps(loc);
874
+ });
875
+ if (i === -1) {
876
+ return;
877
+ }
878
+ this._repository.deleteFragment(loc);
879
+ }
880
+ });
881
+ }
882
+ deleteFragmentFromHint(hint) {
883
+ const loc = TokenLocation.parse(hint.location);
884
+ if (loc) {
885
+ this._repository.deleteFragment(loc);
886
+ }
887
+ }
888
+ navigateToFragmentEditor(loc) {
889
+ const part = this._repository.getPart();
890
+ if (!part) {
891
+ return;
892
+ }
893
+ const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
894
+ // navigate to the editor
895
+ this._router.navigate([route], rid
896
+ ? {
897
+ queryParams: {
898
+ rid: part.roleId,
899
+ },
900
+ }
901
+ : {});
902
+ }
903
+ editFragment() {
904
+ if (!this.view) {
905
+ return;
906
+ }
907
+ const lf = this.view.getCheckedLocationAndFragment();
908
+ if (!lf || lf.fragment === -1) {
909
+ return;
910
+ }
911
+ const locations = this._repository.getLocations();
912
+ this.navigateToFragmentEditor(locations[lf.fragment].toString());
913
+ }
914
+ editFragmentFromHint(hint) {
915
+ this.navigateToFragmentEditor(hint.location);
916
+ }
917
+ moveFragmentFromHint(hint) {
918
+ if (!this.pickedLocation ||
919
+ this.pickedLocation === hint.location ||
920
+ !this.partId) {
921
+ return;
922
+ }
923
+ this._repository.applyLayerPatches(this.partId, [
924
+ `mov ${hint.location} ${this.pickedLocation}`,
925
+ ]);
926
+ }
927
+ addFragment() {
928
+ if (!this.view) {
929
+ return;
930
+ }
931
+ const lf = this.view.getCheckedLocationAndFragment();
932
+ if (!lf || lf.fragment > -1) {
933
+ return;
934
+ }
935
+ this.navigateToFragmentEditor(lf.location.toString());
936
+ }
937
+ pickLocation() {
938
+ if (!this.view) {
939
+ return;
940
+ }
941
+ const lf = this.view.getCheckedLocationAndFragment();
942
+ if (!lf) {
943
+ return;
944
+ }
945
+ const locations = this._repository.getLocations();
946
+ this.pickedLocation = (lf.fragment === -1 ? lf.location : locations[lf.fragment]).toString();
947
+ }
948
+ clearTileChecks() {
949
+ if (!this.view) {
950
+ return;
951
+ }
952
+ this.view.setAllTilesViewState({ checked: false });
953
+ this.pickedLocation = undefined;
954
+ }
955
+ applyLayerPatches(patches) {
956
+ if (this.partId) {
957
+ this._repository.applyLayerPatches(this.partId, patches);
958
+ }
959
+ }
960
+ close() {
961
+ this._router.navigate(['/items', this.itemId]);
962
+ }
963
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: TiledTextLayerPartFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i1.Router }, { token: i4.EditedLayerRepository }, { token: i4$1.LibraryRouteService }, { token: i4$2.EditedItemRepository }, { token: i5$2.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component }); }
964
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: TiledTextLayerPartFeatureComponent, selector: "cadmus-tiled-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async) && !(saving$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content>\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n style=\"display: flex; flex-flow: row wrap\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n style=\"flex: 0 0 auto\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event.checked)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile()\"\r\n (keydown.control.arrowright)=\"selectNextTile()\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"], dependencies: [{ kind: "directive", type: i7.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i10.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i5$1.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: i5.TextTileComponent, selector: "cadmus-text-tile", inputs: ["selected", "checkable", "readonly", "color", "checked", "tile"], outputs: ["tileChange", "editData", "checkedChange"] }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }] }); }
965
+ }
966
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: TiledTextLayerPartFeatureComponent, decorators: [{
967
+ type: Component,
968
+ args: [{ selector: 'cadmus-tiled-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Tiles-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async) && !(saving$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"clearTileChecks()\"\r\n matTooltip=\"Clear any selection\"\r\n >\r\n <mat-icon>clear</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n\r\n <mat-card-content>\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <!-- rows -->\r\n <div *ngIf=\"view\">\r\n <div\r\n *ngFor=\"let row of view.rows; let iy = index\"\r\n class=\"tile-row\"\r\n style=\"display: flex; flex-flow: row wrap\"\r\n >\r\n <span class=\"row-nr\">{{ iy + 1 }}</span>\r\n <!-- tile -->\r\n <cadmus-text-tile\r\n *ngFor=\"let tile of row.tiles || []; let ix = index\"\r\n [tile]=\"tile.model\"\r\n [readonly]=\"true\"\r\n [selected]=\"tile === selectedTile\"\r\n [checkable]=\"true\"\r\n [checked]=\"tile.checked\"\r\n [color]=\"tile.frIndex > -1 ? 'yellow' : 'transparent'\"\r\n style=\"flex: 0 0 auto\"\r\n (click)=\"selectedTile = tile\"\r\n (checkedChange)=\"onTileChecked(iy + 1, ix + 1, $event.checked)\"\r\n (keydown.control.arrowleft)=\"selectPrevTile()\"\r\n (keydown.control.arrowright)=\"selectNextTile()\"\r\n >\r\n </cadmus-text-tile>\r\n </div>\r\n </div>\r\n </mat-card-content>\r\n\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: ["div.tile-row{margin-bottom:6px}span.row-nr{color:silver;font-weight:700}\n"] }]
948
969
  }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i4.EditedLayerRepository }, { type: i4$1.LibraryRouteService }, { type: i4$2.EditedItemRepository }, { type: i5$2.DialogService }, { type: i3.UserLevelService }]; } });
949
970
 
950
- class TiledTextPartFeatureComponent extends EditPartFeatureBase {
951
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
952
- super(router, route, snackbar, itemService, thesaurusService, editorService);
953
- }
954
- }
955
- TiledTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
956
- TiledTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TiledTextPartFeatureComponent, selector: "cadmus-tiled-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.TiledTextPartComponent, selector: "cadmus-tiled-text-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
957
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TiledTextPartFeatureComponent, decorators: [{
958
- type: Component,
959
- args: [{ selector: 'cadmus-tiled-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n" }]
971
+ class TiledTextPartFeatureComponent extends EditPartFeatureBase {
972
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
973
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
974
+ }
975
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
976
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: TiledTextPartFeatureComponent, selector: "cadmus-tiled-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.TiledTextPartComponent, selector: "cadmus-tiled-text-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
977
+ }
978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: TiledTextPartFeatureComponent, decorators: [{
979
+ type: Component,
980
+ args: [{ selector: 'cadmus-tiled-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-tiled-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-tiled-text-part>\r\n" }]
960
981
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
961
982
 
962
- /**
963
- * Token-based text layer part feature editor. This is a special type of editor,
964
- * rather than being a simple wrapper like the others; it is used for editing
965
- * any text layer (using token-based coordinates), whatever the type of its
966
- * fragments. Being a sort of portal for accessing a fragments editor, it has
967
- * no save capability: the single fragments are edited and saved as needed.
968
- */
969
- class TokenTextLayerPartFeatureComponent {
970
- constructor(route, _router, _repository, _textLayerService, _libraryRouteService, _editedItemRepository, _dialogService, userLevelService) {
971
- this._router = _router;
972
- this._repository = _repository;
973
- this._textLayerService = _textLayerService;
974
- this._libraryRouteService = _libraryRouteService;
975
- this._editedItemRepository = _editedItemRepository;
976
- this._dialogService = _dialogService;
977
- this.textSize = 14;
978
- this.itemId = route.snapshot.params['iid'];
979
- this.partId = route.snapshot.params['pid'];
980
- if (this.partId === 'new') {
981
- this.partId = undefined;
982
- }
983
- this.roleId = route.snapshot.queryParams['rid'];
984
- if (this.roleId === 'default') {
985
- this.roleId = undefined;
986
- }
987
- this.userLevel = userLevelService.getCurrentUserLevel();
988
- this.loading$ = this._repository.loading$;
989
- this.saving$ = this._repository.saving$;
990
- this.baseText$ = this._repository.baseText$;
991
- this.locations$ = this._repository.locations$;
992
- this.breakChance$ = this._repository.breakChance$;
993
- this.layerHints$ = this._repository.layerHints$;
994
- }
995
- canDeactivate() {
996
- return true;
997
- }
998
- makeLarger() {
999
- const size = this.textSize + 2;
1000
- if (size > 24) {
1001
- return;
1002
- }
1003
- this.textSize = size;
1004
- }
1005
- makeSmaller() {
1006
- const size = this.textSize - 2;
1007
- if (size < 12) {
1008
- return;
1009
- }
1010
- this.textSize = size;
1011
- }
1012
- ngOnInit() {
1013
- // when the base text changes, load all the fragments locations
1014
- // this.baseText$.subscribe(_ => {
1015
- // this.loadAllFragmentLocations();
1016
- // });
1017
- // ensure the container item is loaded
1018
- this._editedItemRepository.ensureItemLoaded(this.itemId);
1019
- // load the layer part data
1020
- this._repository.reset();
1021
- if (this.partId) {
1022
- this._repository.load(this.itemId, this.partId);
1023
- }
1024
- }
1025
- deleteFragment() {
1026
- const range = this._textLayerService.getSelectedRange();
1027
- if (!range) {
1028
- return;
1029
- }
1030
- const location = this._textLayerService.getSelectedLocationForEdit(range);
1031
- if (!location) {
1032
- return;
1033
- }
1034
- this._dialogService
1035
- .confirm('Delete Fragment', `Delete the fragment at ${location}?`)
1036
- .subscribe((ok) => {
1037
- if (ok) {
1038
- // find the fragment and remove it from the part
1039
- const i = this._repository.getPart()?.fragments.findIndex((p) => {
1040
- return TokenLocation.parse(p.location)?.overlaps(location);
1041
- });
1042
- if (i === -1) {
1043
- return;
1044
- }
1045
- this._repository.deleteFragment(location);
1046
- }
1047
- });
1048
- }
1049
- deleteFragmentFromHint(hint) {
1050
- const loc = TokenLocation.parse(hint.location);
1051
- if (loc) {
1052
- this._repository.deleteFragment(loc);
1053
- }
1054
- }
1055
- refreshBreakChance() {
1056
- this._repository.refreshBreakChance();
1057
- }
1058
- navigateToFragmentEditor(loc) {
1059
- const part = this._repository.getPart();
1060
- if (!part) {
1061
- return;
1062
- }
1063
- const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
1064
- // navigate to the editor
1065
- this._router.navigate([route], rid
1066
- ? {
1067
- queryParams: {
1068
- rid: part.roleId,
1069
- },
1070
- }
1071
- : {});
1072
- }
1073
- editFragment() {
1074
- const range = this._textLayerService.getSelectedRange();
1075
- if (!range) {
1076
- return;
1077
- }
1078
- const location = this._textLayerService.getSelectedLocationForEdit(range);
1079
- if (location) {
1080
- this.navigateToFragmentEditor(location.toString());
1081
- }
1082
- }
1083
- editFragmentFromHint(hint) {
1084
- this.navigateToFragmentEditor(hint.location);
1085
- }
1086
- addFragment() {
1087
- const range = this._textLayerService.getSelectedRange();
1088
- if (!range) {
1089
- return;
1090
- }
1091
- const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
1092
- if (location) {
1093
- this.navigateToFragmentEditor(location.toString());
1094
- }
1095
- }
1096
- moveFragmentFromHint(hint) {
1097
- if (!this.pickedLocation ||
1098
- this.pickedLocation === hint.location ||
1099
- !this.partId) {
1100
- return;
1101
- }
1102
- this._repository.applyLayerPatches(this.partId, [
1103
- `mov ${hint.location} ${this.pickedLocation}`,
1104
- ]);
1105
- }
1106
- applyLayerPatches(patches) {
1107
- if (this.partId) {
1108
- this._repository.applyLayerPatches(this.partId, patches);
1109
- }
1110
- }
1111
- pickLocation() {
1112
- const range = this._textLayerService.getSelectedRange();
1113
- if (!range) {
1114
- return;
1115
- }
1116
- const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
1117
- if (location) {
1118
- this.pickedLocation = location.toString();
1119
- }
1120
- }
1121
- close() {
1122
- this._router.navigate(['/items', this.itemId]);
1123
- }
1124
- }
1125
- TokenTextLayerPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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$2.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component });
1126
- TokenTextLayerPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TokenTextLayerPartFeatureComponent, selector: "cadmus-token-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <div [style.font-size]=\"textSize + 'px'\">\r\n <cadmus-decorated-token-text\r\n *ngIf=\"baseText$ | async as baseText\"\r\n [baseText]=\"baseText\"\r\n [locations]=\"(locations$ | async) || []\"\r\n ></cadmus-decorated-token-text>\r\n </div>\r\n </mat-card-content>\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i10.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5$1.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }] });
1127
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TokenTextLayerPartFeatureComponent, decorators: [{
1128
- type: Component,
1129
- args: [{ selector: 'cadmus-token-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <div [style.font-size]=\"textSize + 'px'\">\r\n <cadmus-decorated-token-text\r\n *ngIf=\"baseText$ | async as baseText\"\r\n [baseText]=\"baseText\"\r\n [locations]=\"(locations$ | async) || []\"\r\n ></cadmus-decorated-token-text>\r\n </div>\r\n </mat-card-content>\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n" }]
983
+ /**
984
+ * Token-based text layer part feature editor. This is a special type of editor,
985
+ * rather than being a simple wrapper like the others; it is used for editing
986
+ * any text layer (using token-based coordinates), whatever the type of its
987
+ * fragments. Being a sort of portal for accessing a fragments editor, it has
988
+ * no save capability: the single fragments are edited and saved as needed.
989
+ */
990
+ class TokenTextLayerPartFeatureComponent {
991
+ constructor(route, _router, _repository, _textLayerService, _libraryRouteService, _editedItemRepository, _dialogService, userLevelService) {
992
+ this._router = _router;
993
+ this._repository = _repository;
994
+ this._textLayerService = _textLayerService;
995
+ this._libraryRouteService = _libraryRouteService;
996
+ this._editedItemRepository = _editedItemRepository;
997
+ this._dialogService = _dialogService;
998
+ this.textSize = 14;
999
+ this.itemId = route.snapshot.params['iid'];
1000
+ this.partId = route.snapshot.params['pid'];
1001
+ if (this.partId === 'new') {
1002
+ this.partId = undefined;
1003
+ }
1004
+ this.roleId = route.snapshot.queryParams['rid'];
1005
+ if (this.roleId === 'default') {
1006
+ this.roleId = undefined;
1007
+ }
1008
+ this.userLevel = userLevelService.getCurrentUserLevel();
1009
+ this.loading$ = this._repository.loading$;
1010
+ this.saving$ = this._repository.saving$;
1011
+ this.baseText$ = this._repository.baseText$;
1012
+ this.locations$ = this._repository.locations$;
1013
+ this.breakChance$ = this._repository.breakChance$;
1014
+ this.layerHints$ = this._repository.layerHints$;
1015
+ }
1016
+ canDeactivate() {
1017
+ return true;
1018
+ }
1019
+ makeLarger() {
1020
+ const size = this.textSize + 2;
1021
+ if (size > 24) {
1022
+ return;
1023
+ }
1024
+ this.textSize = size;
1025
+ }
1026
+ makeSmaller() {
1027
+ const size = this.textSize - 2;
1028
+ if (size < 12) {
1029
+ return;
1030
+ }
1031
+ this.textSize = size;
1032
+ }
1033
+ ngOnInit() {
1034
+ // when the base text changes, load all the fragments locations
1035
+ // this.baseText$.subscribe(_ => {
1036
+ // this.loadAllFragmentLocations();
1037
+ // });
1038
+ // ensure the container item is loaded
1039
+ this._editedItemRepository.ensureItemLoaded(this.itemId);
1040
+ // load the layer part data
1041
+ this._repository.reset();
1042
+ if (this.partId) {
1043
+ this._repository.load(this.itemId, this.partId);
1044
+ }
1045
+ }
1046
+ deleteFragment() {
1047
+ const range = this._textLayerService.getSelectedRange();
1048
+ if (!range) {
1049
+ return;
1050
+ }
1051
+ const location = this._textLayerService.getSelectedLocationForEdit(range);
1052
+ if (!location) {
1053
+ return;
1054
+ }
1055
+ this._dialogService
1056
+ .confirm('Delete Fragment', `Delete the fragment at ${location}?`)
1057
+ .subscribe((ok) => {
1058
+ if (ok) {
1059
+ // find the fragment and remove it from the part
1060
+ const i = this._repository.getPart()?.fragments.findIndex((p) => {
1061
+ return TokenLocation.parse(p.location)?.overlaps(location);
1062
+ });
1063
+ if (i === -1) {
1064
+ return;
1065
+ }
1066
+ this._repository.deleteFragment(location);
1067
+ }
1068
+ });
1069
+ }
1070
+ deleteFragmentFromHint(hint) {
1071
+ const loc = TokenLocation.parse(hint.location);
1072
+ if (loc) {
1073
+ this._repository.deleteFragment(loc);
1074
+ }
1075
+ }
1076
+ refreshBreakChance() {
1077
+ this._repository.refreshBreakChance();
1078
+ }
1079
+ navigateToFragmentEditor(loc) {
1080
+ const part = this._repository.getPart();
1081
+ if (!part) {
1082
+ return;
1083
+ }
1084
+ const { route, rid } = this._libraryRouteService.buildFragmentEditorRoute(this._editedItemRepository.getFacet().partDefinitions, part.itemId, part.id, part.typeId, part.roleId, loc);
1085
+ // navigate to the editor
1086
+ this._router.navigate([route], rid
1087
+ ? {
1088
+ queryParams: {
1089
+ rid: part.roleId,
1090
+ },
1091
+ }
1092
+ : {});
1093
+ }
1094
+ editFragment() {
1095
+ const range = this._textLayerService.getSelectedRange();
1096
+ if (!range) {
1097
+ return;
1098
+ }
1099
+ const location = this._textLayerService.getSelectedLocationForEdit(range);
1100
+ if (location) {
1101
+ this.navigateToFragmentEditor(location.toString());
1102
+ }
1103
+ }
1104
+ editFragmentFromHint(hint) {
1105
+ this.navigateToFragmentEditor(hint.location);
1106
+ }
1107
+ addFragment() {
1108
+ const range = this._textLayerService.getSelectedRange();
1109
+ if (!range) {
1110
+ return;
1111
+ }
1112
+ const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
1113
+ if (location) {
1114
+ this.navigateToFragmentEditor(location.toString());
1115
+ }
1116
+ }
1117
+ moveFragmentFromHint(hint) {
1118
+ if (!this.pickedLocation ||
1119
+ this.pickedLocation === hint.location ||
1120
+ !this.partId) {
1121
+ return;
1122
+ }
1123
+ this._repository.applyLayerPatches(this.partId, [
1124
+ `mov ${hint.location} ${this.pickedLocation}`,
1125
+ ]);
1126
+ }
1127
+ applyLayerPatches(patches) {
1128
+ if (this.partId) {
1129
+ this._repository.applyLayerPatches(this.partId, patches);
1130
+ }
1131
+ }
1132
+ pickLocation() {
1133
+ const range = this._textLayerService.getSelectedRange();
1134
+ if (!range) {
1135
+ return;
1136
+ }
1137
+ const location = this._textLayerService.getSelectedLocationForNew(range, this._repository.getBaseText() || '');
1138
+ if (location) {
1139
+ this.pickedLocation = location.toString();
1140
+ }
1141
+ }
1142
+ close() {
1143
+ this._router.navigate(['/items', this.itemId]);
1144
+ }
1145
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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$2.DialogService }, { token: i3.UserLevelService }], target: i0.ɵɵFactoryTarget.Component }); }
1146
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: TokenTextLayerPartFeatureComponent, selector: "cadmus-token-text-layer-part-feature", ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <div [style.font-size]=\"textSize + 'px'\">\r\n <cadmus-decorated-token-text\r\n *ngIf=\"baseText$ | async as baseText\"\r\n [baseText]=\"baseText\"\r\n [locations]=\"(locations$ | async) || []\"\r\n ></cadmus-decorated-token-text>\r\n </div>\r\n </mat-card-content>\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n", styles: [""], dependencies: [{ kind: "directive", type: i7.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i7.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i8.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i9.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i9.MatCardActions, selector: "mat-card-actions", inputs: ["align"], exportAs: ["matCardActions"] }, { kind: "directive", type: i9.MatCardAvatar, selector: "[mat-card-avatar], [matCardAvatar]" }, { kind: "directive", type: i9.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i9.MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: i9.MatCardTitle, selector: "mat-card-title, [mat-card-title], [matCardTitle]" }, { kind: "component", type: i10.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["disabled", "expanded", "hideToggle", "togglePosition"], outputs: ["opened", "closed", "expandedChange", "afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: i10.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["tabIndex", "expandedHeight", "collapsedHeight"] }, { kind: "directive", type: i10.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i10.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "component", type: i11.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i12.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i14.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i5$1.DecoratedTokenTextComponent, selector: "cadmus-decorated-token-text", inputs: ["baseText", "locations", "selectedLocation"] }, { kind: "component", type: i5$1.LayerHintsComponent, selector: "cadmus-layer-hints", inputs: ["hints", "targetLocation", "disabled", "readonly"], outputs: ["requestEdit", "requestDelete", "requestMove", "requestPatch"] }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }, { kind: "component", type: i6.CurrentLayerPartBarComponent, selector: "cadmus-current-layer-part-bar" }, { kind: "pipe", type: i7.AsyncPipe, name: "async" }] }); }
1147
+ }
1148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: TokenTextLayerPartFeatureComponent, decorators: [{
1149
+ type: Component,
1150
+ args: [{ selector: 'cadmus-token-text-layer-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <div mat-card-avatar>\r\n <mat-icon>view_headline</mat-icon>\r\n </div>\r\n <mat-card-title>\r\n Token-Based Text Layers\r\n <button\r\n type=\"button\"\r\n mat-icon-button\r\n [ngSwitch]=\"breakChance$ | async\"\r\n (click)=\"refreshBreakChance()\"\r\n >\r\n <mat-icon *ngSwitchCase=\"-1\" matTooltip=\"Checking...\">refresh</mat-icon>\r\n <mat-icon *ngSwitchCase=\"0\" matTooltip=\"Valid\">check_circle</mat-icon>\r\n <mat-icon *ngSwitchCase=\"1\" matTooltip=\"Potentially broken\" color=\"warn\"\r\n >warning</mat-icon\r\n >\r\n <mat-icon *ngSwitchCase=\"2\" matTooltip=\"Broken\" color=\"warn\"\r\n >error</mat-icon\r\n >\r\n </button>\r\n </mat-card-title>\r\n <cadmus-current-layer-part-bar></cadmus-current-layer-part-bar>\r\n </mat-card-header>\r\n <mat-card-actions *ngIf=\"!(loading$ | async)\">\r\n <mat-toolbar>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"editFragment()\"\r\n matTooltip=\"Edit the selected fragment\"\r\n >\r\n <mat-icon>edit</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"warn\"\r\n (click)=\"deleteFragment()\"\r\n matTooltip=\"Delete the selected fragment\"\r\n >\r\n <mat-icon>delete</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Larger text\"\r\n (click)=\"makeLarger()\"\r\n [disabled]=\"textSize >= 24\"\r\n >\r\n <mat-icon>format_size</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n matTooltip=\"Smaller text\"\r\n (click)=\"makeSmaller()\"\r\n [disabled]=\"textSize <= 12\"\r\n >\r\n <mat-icon>text_fields</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n (click)=\"pickLocation()\"\r\n matTooltip=\"Pick the selection location for a new fragment\"\r\n >\r\n <mat-icon>info</mat-icon>\r\n </button>\r\n <button\r\n mat-icon-button\r\n type=\"button\"\r\n color=\"primary\"\r\n (click)=\"addFragment()\"\r\n matTooltip=\"Add a new fragment at selection\"\r\n >\r\n <mat-icon>add_circle</mat-icon>\r\n </button>\r\n <span>{{ pickedLocation }}</span>\r\n </mat-toolbar>\r\n </mat-card-actions>\r\n <mat-card-content fxLayout=\"row\">\r\n <mat-progress-bar\r\n mode=\"indeterminate\"\r\n *ngIf=\"loading$ | async\"\r\n ></mat-progress-bar>\r\n\r\n <div [style.font-size]=\"textSize + 'px'\">\r\n <cadmus-decorated-token-text\r\n *ngIf=\"baseText$ | async as baseText\"\r\n [baseText]=\"baseText\"\r\n [locations]=\"(locations$ | async) || []\"\r\n ></cadmus-decorated-token-text>\r\n </div>\r\n </mat-card-content>\r\n <div>\r\n <button\r\n type=\"button\"\r\n mat-raised-button\r\n color=\"warn\"\r\n matTooltip=\"Close this editor\"\r\n (click)=\"close()\"\r\n >\r\n <mat-icon>cancel</mat-icon>\r\n close\r\n </button>\r\n </div>\r\n <mat-expansion-panel *ngIf=\"layerHints$ | async as layerHints\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>Layer hints</mat-panel-title>\r\n <mat-panel-description>{{ layerHints.length }}</mat-panel-description>\r\n </mat-expansion-panel-header>\r\n <cadmus-layer-hints\r\n [hints]=\"layerHints\"\r\n [disabled]=\"(loading$ | async) || (saving$ | async) ? true : false\"\r\n [readonly]=\"userLevel < 2\"\r\n [targetLocation]=\"pickedLocation\"\r\n (requestEdit)=\"editFragmentFromHint($event)\"\r\n (requestDelete)=\"deleteFragmentFromHint($event)\"\r\n (requestMove)=\"moveFragmentFromHint($event)\"\r\n (requestPatch)=\"applyLayerPatches($event)\"\r\n ></cadmus-layer-hints>\r\n </mat-expansion-panel>\r\n</mat-card>\r\n" }]
1130
1151
  }], ctorParameters: function () { return [{ type: i1.ActivatedRoute }, { type: i1.Router }, { type: i4.EditedLayerRepository }, { type: i4$1.TextLayerService }, { type: i4$1.LibraryRouteService }, { type: i4$2.EditedItemRepository }, { type: i5$2.DialogService }, { type: i3.UserLevelService }]; } });
1131
1152
 
1132
- class TokenTextPartFeatureComponent extends EditPartFeatureBase {
1133
- constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
1134
- super(router, route, snackbar, itemService, thesaurusService, editorService);
1135
- }
1136
- }
1137
- TokenTextPartFeatureComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", 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 });
1138
- TokenTextPartFeatureComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.5", type: TokenTextPartFeatureComponent, selector: "cadmus-token-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-token-text-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.TokenTextPartComponent, selector: "cadmus-token-text-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] });
1139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: TokenTextPartFeatureComponent, decorators: [{
1140
- type: Component,
1141
- args: [{ selector: 'cadmus-token-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-token-text-part>\r\n" }]
1153
+ class TokenTextPartFeatureComponent extends EditPartFeatureBase {
1154
+ constructor(router, route, snackbar, itemService, thesaurusService, editorService) {
1155
+ super(router, route, snackbar, itemService, thesaurusService, editorService);
1156
+ }
1157
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", 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 }); }
1158
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.0.2", type: TokenTextPartFeatureComponent, selector: "cadmus-token-text-part-feature", usesInheritance: true, ngImport: i0, template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-token-text-part>\r\n", styles: [""], dependencies: [{ kind: "component", type: i5.TokenTextPartComponent, selector: "cadmus-token-text-part" }, { kind: "component", type: i6.CurrentItemBarComponent, selector: "cadmus-current-item-bar" }] }); }
1159
+ }
1160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: TokenTextPartFeatureComponent, decorators: [{
1161
+ type: Component,
1162
+ args: [{ selector: 'cadmus-token-text-part-feature', template: "<cadmus-current-item-bar></cadmus-current-item-bar>\r\n<cadmus-token-text-part\r\n [identity]=\"identity\"\r\n [data]=\"$any(data)\"\r\n (dataChange)=\"save($event)\"\r\n (editorClose)=\"close()\"\r\n (dirtyChange)=\"onDirtyChange($event)\"\r\n></cadmus-token-text-part>\r\n" }]
1142
1163
  }], ctorParameters: function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.MatSnackBar }, { type: i3.ItemService }, { type: i3.ThesaurusService }, { type: i4.PartEditorService }]; } });
1143
1164
 
1144
- // https://github.com/ng-packagr/ng-packagr/issues/778
1145
- const RouterModuleForChild = RouterModule.forChild([
1146
- {
1147
- path: `${BIBLIOGRAPHY_PART_TYPEID}/:pid`,
1148
- pathMatch: 'full',
1149
- component: BibliographyPartFeatureComponent,
1150
- canDeactivate: [PendingChangesGuard],
1151
- },
1152
- {
1153
- path: `${CATEGORIES_PART_TYPEID}/:pid`,
1154
- pathMatch: 'full',
1155
- component: CategoriesPartFeatureComponent,
1156
- canDeactivate: [PendingChangesGuard],
1157
- },
1158
- {
1159
- path: `${COMMENT_PART_TYPEID}/:pid`,
1160
- pathMatch: 'full',
1161
- component: CommentPartFeatureComponent,
1162
- canDeactivate: [PendingChangesGuard],
1163
- },
1164
- {
1165
- path: `${CHRONOTOPES_PART_TYPEID}/:pid`,
1166
- pathMatch: 'full',
1167
- component: ChronotopesPartFeatureComponent,
1168
- canDeactivate: [PendingChangesGuard],
1169
- },
1170
- {
1171
- path: `${DOC_REFERENCES_PART_TYPEID}/:pid`,
1172
- pathMatch: 'full',
1173
- component: DocReferencesPartFeatureComponent,
1174
- canDeactivate: [PendingChangesGuard],
1175
- },
1176
- {
1177
- path: `${EXTERNAL_IDS_PART_TYPEID}/:pid`,
1178
- pathMatch: 'full',
1179
- component: ExternalIdsPartFeatureComponent,
1180
- canDeactivate: [PendingChangesGuard],
1181
- },
1182
- {
1183
- path: `${HISTORICAL_DATE_PART_TYPEID}/:pid`,
1184
- pathMatch: 'full',
1185
- component: HistoricalDatePartFeatureComponent,
1186
- canDeactivate: [PendingChangesGuard],
1187
- },
1188
- {
1189
- path: `${HISTORICAL_EVENTS_PART_TYPEID}/:pid`,
1190
- pathMatch: 'full',
1191
- component: HistoricalEventsPartFeatureComponent,
1192
- canDeactivate: [PendingChangesGuard],
1193
- },
1194
- {
1195
- path: `${KEYWORDS_PART_TYPEID}/:pid`,
1196
- pathMatch: 'full',
1197
- component: KeywordsPartFeatureComponent,
1198
- canDeactivate: [PendingChangesGuard],
1199
- },
1200
- {
1201
- path: `${INDEX_KEYWORDS_PART_TYPEID}/:pid`,
1202
- pathMatch: 'full',
1203
- component: IndexKeywordsPartFeatureComponent,
1204
- canDeactivate: [PendingChangesGuard],
1205
- },
1206
- {
1207
- path: `${METADATA_PART_TYPEID}/:pid`,
1208
- pathMatch: 'full',
1209
- component: MetadataPartFeatureComponent,
1210
- canDeactivate: [PendingChangesGuard],
1211
- },
1212
- {
1213
- path: `${NAMES_PART_TYPEID}/:pid`,
1214
- pathMatch: 'full',
1215
- component: NamesPartFeatureComponent,
1216
- canDeactivate: [PendingChangesGuard],
1217
- },
1218
- {
1219
- path: `${NOTE_PART_TYPEID}/:pid`,
1220
- pathMatch: 'full',
1221
- component: NotePartFeatureComponent,
1222
- canDeactivate: [PendingChangesGuard],
1223
- },
1224
- {
1225
- path: `${PIN_LINKS_PART_TYPEID}/:pid`,
1226
- pathMatch: 'full',
1227
- component: PinLinksPartFeatureComponent,
1228
- canDeactivate: [PendingChangesGuard],
1229
- },
1230
- {
1231
- path: `${TOKEN_TEXT_PART_TYPEID}/:pid`,
1232
- pathMatch: 'full',
1233
- component: TokenTextPartFeatureComponent,
1234
- canDeactivate: [PendingChangesGuard],
1235
- },
1236
- {
1237
- path: `${TILED_TEXT_PART_TYPEID}/:pid`,
1238
- pathMatch: 'full',
1239
- component: TiledTextPartFeatureComponent,
1240
- canDeactivate: [PendingChangesGuard],
1241
- },
1242
- {
1243
- path: 'it.vedph.token-text-layer/:pid',
1244
- pathMatch: 'full',
1245
- component: TokenTextLayerPartFeatureComponent,
1246
- canDeactivate: [PendingChangesGuard],
1247
- },
1248
- {
1249
- path: 'it.vedph.tiled-text-layer/:pid',
1250
- pathMatch: 'full',
1251
- component: TiledTextLayerPartFeatureComponent,
1252
- canDeactivate: [PendingChangesGuard],
1253
- },
1254
- {
1255
- path: `fragment/:pid/${COMMENT_FRAGMENT_TYPEID}/:loc`,
1256
- pathMatch: 'full',
1257
- component: CommentFragmentFeatureComponent,
1258
- canDeactivate: [PendingChangesGuard],
1259
- },
1260
- {
1261
- path: `fragment/:pid/${CHRONOLOGY_FRAGMENT_TYPEID}/:loc`,
1262
- pathMatch: 'full',
1263
- component: ChronologyFragmentFeatureComponent,
1264
- canDeactivate: [PendingChangesGuard],
1265
- },
1266
- {
1267
- path: `fragment/:pid/${PIN_LINKS_FRAGMENT_TYPEID}/:loc`,
1268
- pathMatch: 'full',
1269
- component: PinLinksFragmentFeatureComponent,
1270
- canDeactivate: [PendingChangesGuard],
1271
- },
1272
- ]);
1273
- class CadmusPartGeneralPgModule {
1274
- }
1275
- CadmusPartGeneralPgModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CadmusPartGeneralPgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1276
- CadmusPartGeneralPgModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.5", ngImport: i0, type: CadmusPartGeneralPgModule, declarations: [BibliographyPartFeatureComponent,
1277
- CategoriesPartFeatureComponent,
1278
- ChronologyFragmentFeatureComponent,
1279
- ChronotopesPartFeatureComponent,
1280
- CommentFragmentFeatureComponent,
1281
- CommentPartFeatureComponent,
1282
- DocReferencesPartFeatureComponent,
1283
- ExternalIdsPartFeatureComponent,
1284
- HistoricalDatePartFeatureComponent,
1285
- HistoricalEventsPartFeatureComponent,
1286
- IndexKeywordsPartFeatureComponent,
1287
- KeywordsPartFeatureComponent,
1288
- MetadataPartFeatureComponent,
1289
- NamesPartFeatureComponent,
1290
- NotePartFeatureComponent,
1291
- PinLinksFragmentFeatureComponent,
1292
- PinLinksPartFeatureComponent,
1293
- TiledTextLayerPartFeatureComponent,
1294
- TiledTextPartFeatureComponent,
1295
- TokenTextLayerPartFeatureComponent,
1296
- TokenTextPartFeatureComponent], imports: [CommonModule,
1297
- FormsModule,
1298
- ReactiveFormsModule, i1.RouterModule,
1299
- // material
1300
- MatButtonModule,
1301
- MatCheckboxModule,
1302
- MatCardModule,
1303
- MatExpansionModule,
1304
- MatIconModule,
1305
- MatInputModule,
1306
- MatProgressBarModule,
1307
- MatProgressSpinnerModule,
1308
- MatSelectModule,
1309
- MatTooltipModule,
1310
- MatToolbarModule,
1311
- // vendors
1312
- NgToolsModule,
1313
- NgMatToolsModule,
1314
- // cadmus
1315
- CadmusCoreModule,
1316
- CadmusUiModule,
1317
- CadmusPartGeneralUiModule,
1318
- CadmusStateModule,
1319
- CadmusUiPgModule], exports: [BibliographyPartFeatureComponent,
1320
- CategoriesPartFeatureComponent,
1321
- ChronologyFragmentFeatureComponent,
1322
- ChronotopesPartFeatureComponent,
1323
- CommentFragmentFeatureComponent,
1324
- CommentPartFeatureComponent,
1325
- DocReferencesPartFeatureComponent,
1326
- ExternalIdsPartFeatureComponent,
1327
- HistoricalDatePartFeatureComponent,
1328
- HistoricalEventsPartFeatureComponent,
1329
- IndexKeywordsPartFeatureComponent,
1330
- KeywordsPartFeatureComponent,
1331
- MetadataPartFeatureComponent,
1332
- NamesPartFeatureComponent,
1333
- NotePartFeatureComponent,
1334
- PinLinksFragmentFeatureComponent,
1335
- PinLinksPartFeatureComponent,
1336
- TiledTextLayerPartFeatureComponent,
1337
- TiledTextPartFeatureComponent,
1338
- TokenTextLayerPartFeatureComponent,
1339
- TokenTextPartFeatureComponent] });
1340
- CadmusPartGeneralPgModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CadmusPartGeneralPgModule, imports: [CommonModule,
1341
- FormsModule,
1342
- ReactiveFormsModule,
1343
- RouterModuleForChild,
1344
- // material
1345
- MatButtonModule,
1346
- MatCheckboxModule,
1347
- MatCardModule,
1348
- MatExpansionModule,
1349
- MatIconModule,
1350
- MatInputModule,
1351
- MatProgressBarModule,
1352
- MatProgressSpinnerModule,
1353
- MatSelectModule,
1354
- MatTooltipModule,
1355
- MatToolbarModule,
1356
- // vendors
1357
- NgToolsModule,
1358
- NgMatToolsModule,
1359
- // cadmus
1360
- CadmusCoreModule,
1361
- CadmusUiModule,
1362
- CadmusPartGeneralUiModule,
1363
- CadmusStateModule,
1364
- CadmusUiPgModule] });
1365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.5", ngImport: i0, type: CadmusPartGeneralPgModule, decorators: [{
1366
- type: NgModule,
1367
- args: [{
1368
- imports: [
1369
- CommonModule,
1370
- FormsModule,
1371
- ReactiveFormsModule,
1372
- RouterModuleForChild,
1373
- // material
1374
- MatButtonModule,
1375
- MatCheckboxModule,
1376
- MatCardModule,
1377
- MatExpansionModule,
1378
- MatIconModule,
1379
- MatInputModule,
1380
- MatProgressBarModule,
1381
- MatProgressSpinnerModule,
1382
- MatSelectModule,
1383
- MatTooltipModule,
1384
- MatToolbarModule,
1385
- // vendors
1386
- NgToolsModule,
1387
- NgMatToolsModule,
1388
- // cadmus
1389
- CadmusCoreModule,
1390
- CadmusUiModule,
1391
- CadmusPartGeneralUiModule,
1392
- CadmusStateModule,
1393
- CadmusUiPgModule,
1394
- ],
1395
- declarations: [
1396
- BibliographyPartFeatureComponent,
1397
- CategoriesPartFeatureComponent,
1398
- ChronologyFragmentFeatureComponent,
1399
- ChronotopesPartFeatureComponent,
1400
- CommentFragmentFeatureComponent,
1401
- CommentPartFeatureComponent,
1402
- DocReferencesPartFeatureComponent,
1403
- ExternalIdsPartFeatureComponent,
1404
- HistoricalDatePartFeatureComponent,
1405
- HistoricalEventsPartFeatureComponent,
1406
- IndexKeywordsPartFeatureComponent,
1407
- KeywordsPartFeatureComponent,
1408
- MetadataPartFeatureComponent,
1409
- NamesPartFeatureComponent,
1410
- NotePartFeatureComponent,
1411
- PinLinksFragmentFeatureComponent,
1412
- PinLinksPartFeatureComponent,
1413
- TiledTextLayerPartFeatureComponent,
1414
- TiledTextPartFeatureComponent,
1415
- TokenTextLayerPartFeatureComponent,
1416
- TokenTextPartFeatureComponent,
1417
- ],
1418
- exports: [
1419
- BibliographyPartFeatureComponent,
1420
- CategoriesPartFeatureComponent,
1421
- ChronologyFragmentFeatureComponent,
1422
- ChronotopesPartFeatureComponent,
1423
- CommentFragmentFeatureComponent,
1424
- CommentPartFeatureComponent,
1425
- DocReferencesPartFeatureComponent,
1426
- ExternalIdsPartFeatureComponent,
1427
- HistoricalDatePartFeatureComponent,
1428
- HistoricalEventsPartFeatureComponent,
1429
- IndexKeywordsPartFeatureComponent,
1430
- KeywordsPartFeatureComponent,
1431
- MetadataPartFeatureComponent,
1432
- NamesPartFeatureComponent,
1433
- NotePartFeatureComponent,
1434
- PinLinksFragmentFeatureComponent,
1435
- PinLinksPartFeatureComponent,
1436
- TiledTextLayerPartFeatureComponent,
1437
- TiledTextPartFeatureComponent,
1438
- TokenTextLayerPartFeatureComponent,
1439
- TokenTextPartFeatureComponent,
1440
- ],
1441
- }]
1165
+ // https://github.com/ng-packagr/ng-packagr/issues/778
1166
+ const RouterModuleForChild = RouterModule.forChild([
1167
+ {
1168
+ path: `${BIBLIOGRAPHY_PART_TYPEID}/:pid`,
1169
+ pathMatch: 'full',
1170
+ component: BibliographyPartFeatureComponent,
1171
+ canDeactivate: [PendingChangesGuard],
1172
+ },
1173
+ {
1174
+ path: `${CATEGORIES_PART_TYPEID}/:pid`,
1175
+ pathMatch: 'full',
1176
+ component: CategoriesPartFeatureComponent,
1177
+ canDeactivate: [PendingChangesGuard],
1178
+ },
1179
+ {
1180
+ path: `${COMMENT_PART_TYPEID}/:pid`,
1181
+ pathMatch: 'full',
1182
+ component: CommentPartFeatureComponent,
1183
+ canDeactivate: [PendingChangesGuard],
1184
+ },
1185
+ {
1186
+ path: `${CHRONOTOPES_PART_TYPEID}/:pid`,
1187
+ pathMatch: 'full',
1188
+ component: ChronotopesPartFeatureComponent,
1189
+ canDeactivate: [PendingChangesGuard],
1190
+ },
1191
+ {
1192
+ path: `${DOC_REFERENCES_PART_TYPEID}/:pid`,
1193
+ pathMatch: 'full',
1194
+ component: DocReferencesPartFeatureComponent,
1195
+ canDeactivate: [PendingChangesGuard],
1196
+ },
1197
+ {
1198
+ path: `${EXTERNAL_IDS_PART_TYPEID}/:pid`,
1199
+ pathMatch: 'full',
1200
+ component: ExternalIdsPartFeatureComponent,
1201
+ canDeactivate: [PendingChangesGuard],
1202
+ },
1203
+ {
1204
+ path: `${HISTORICAL_DATE_PART_TYPEID}/:pid`,
1205
+ pathMatch: 'full',
1206
+ component: HistoricalDatePartFeatureComponent,
1207
+ canDeactivate: [PendingChangesGuard],
1208
+ },
1209
+ {
1210
+ path: `${HISTORICAL_EVENTS_PART_TYPEID}/:pid`,
1211
+ pathMatch: 'full',
1212
+ component: HistoricalEventsPartFeatureComponent,
1213
+ canDeactivate: [PendingChangesGuard],
1214
+ },
1215
+ {
1216
+ path: `${KEYWORDS_PART_TYPEID}/:pid`,
1217
+ pathMatch: 'full',
1218
+ component: KeywordsPartFeatureComponent,
1219
+ canDeactivate: [PendingChangesGuard],
1220
+ },
1221
+ {
1222
+ path: `${INDEX_KEYWORDS_PART_TYPEID}/:pid`,
1223
+ pathMatch: 'full',
1224
+ component: IndexKeywordsPartFeatureComponent,
1225
+ canDeactivate: [PendingChangesGuard],
1226
+ },
1227
+ {
1228
+ path: `${METADATA_PART_TYPEID}/:pid`,
1229
+ pathMatch: 'full',
1230
+ component: MetadataPartFeatureComponent,
1231
+ canDeactivate: [PendingChangesGuard],
1232
+ },
1233
+ {
1234
+ path: `${NAMES_PART_TYPEID}/:pid`,
1235
+ pathMatch: 'full',
1236
+ component: NamesPartFeatureComponent,
1237
+ canDeactivate: [PendingChangesGuard],
1238
+ },
1239
+ {
1240
+ path: `${NOTE_PART_TYPEID}/:pid`,
1241
+ pathMatch: 'full',
1242
+ component: NotePartFeatureComponent,
1243
+ canDeactivate: [PendingChangesGuard],
1244
+ },
1245
+ {
1246
+ path: `${PIN_LINKS_PART_TYPEID}/:pid`,
1247
+ pathMatch: 'full',
1248
+ component: PinLinksPartFeatureComponent,
1249
+ canDeactivate: [PendingChangesGuard],
1250
+ },
1251
+ {
1252
+ path: `${TOKEN_TEXT_PART_TYPEID}/:pid`,
1253
+ pathMatch: 'full',
1254
+ component: TokenTextPartFeatureComponent,
1255
+ canDeactivate: [PendingChangesGuard],
1256
+ },
1257
+ {
1258
+ path: `${TILED_TEXT_PART_TYPEID}/:pid`,
1259
+ pathMatch: 'full',
1260
+ component: TiledTextPartFeatureComponent,
1261
+ canDeactivate: [PendingChangesGuard],
1262
+ },
1263
+ {
1264
+ path: 'it.vedph.token-text-layer/:pid',
1265
+ pathMatch: 'full',
1266
+ component: TokenTextLayerPartFeatureComponent,
1267
+ canDeactivate: [PendingChangesGuard],
1268
+ },
1269
+ {
1270
+ path: 'it.vedph.tiled-text-layer/:pid',
1271
+ pathMatch: 'full',
1272
+ component: TiledTextLayerPartFeatureComponent,
1273
+ canDeactivate: [PendingChangesGuard],
1274
+ },
1275
+ {
1276
+ path: `fragment/:pid/${COMMENT_FRAGMENT_TYPEID}/:loc`,
1277
+ pathMatch: 'full',
1278
+ component: CommentFragmentFeatureComponent,
1279
+ canDeactivate: [PendingChangesGuard],
1280
+ },
1281
+ {
1282
+ path: `fragment/:pid/${CHRONOLOGY_FRAGMENT_TYPEID}/:loc`,
1283
+ pathMatch: 'full',
1284
+ component: ChronologyFragmentFeatureComponent,
1285
+ canDeactivate: [PendingChangesGuard],
1286
+ },
1287
+ {
1288
+ path: `fragment/:pid/${PIN_LINKS_FRAGMENT_TYPEID}/:loc`,
1289
+ pathMatch: 'full',
1290
+ component: PinLinksFragmentFeatureComponent,
1291
+ canDeactivate: [PendingChangesGuard],
1292
+ },
1293
+ ]);
1294
+ class CadmusPartGeneralPgModule {
1295
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CadmusPartGeneralPgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1296
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.2", ngImport: i0, type: CadmusPartGeneralPgModule, declarations: [BibliographyPartFeatureComponent,
1297
+ CategoriesPartFeatureComponent,
1298
+ ChronologyFragmentFeatureComponent,
1299
+ ChronotopesPartFeatureComponent,
1300
+ CommentFragmentFeatureComponent,
1301
+ CommentPartFeatureComponent,
1302
+ DocReferencesPartFeatureComponent,
1303
+ ExternalIdsPartFeatureComponent,
1304
+ HistoricalDatePartFeatureComponent,
1305
+ HistoricalEventsPartFeatureComponent,
1306
+ IndexKeywordsPartFeatureComponent,
1307
+ KeywordsPartFeatureComponent,
1308
+ MetadataPartFeatureComponent,
1309
+ NamesPartFeatureComponent,
1310
+ NotePartFeatureComponent,
1311
+ PinLinksFragmentFeatureComponent,
1312
+ PinLinksPartFeatureComponent,
1313
+ TiledTextLayerPartFeatureComponent,
1314
+ TiledTextPartFeatureComponent,
1315
+ TokenTextLayerPartFeatureComponent,
1316
+ TokenTextPartFeatureComponent], imports: [CommonModule,
1317
+ FormsModule,
1318
+ ReactiveFormsModule, i1.RouterModule,
1319
+ // material
1320
+ MatButtonModule,
1321
+ MatCheckboxModule,
1322
+ MatCardModule,
1323
+ MatExpansionModule,
1324
+ MatIconModule,
1325
+ MatInputModule,
1326
+ MatProgressBarModule,
1327
+ MatProgressSpinnerModule,
1328
+ MatSelectModule,
1329
+ MatTooltipModule,
1330
+ MatToolbarModule,
1331
+ // vendors
1332
+ NgToolsModule,
1333
+ NgMatToolsModule,
1334
+ // cadmus
1335
+ CadmusCoreModule,
1336
+ CadmusUiModule,
1337
+ CadmusPartGeneralUiModule,
1338
+ CadmusStateModule,
1339
+ CadmusUiPgModule], exports: [BibliographyPartFeatureComponent,
1340
+ CategoriesPartFeatureComponent,
1341
+ ChronologyFragmentFeatureComponent,
1342
+ ChronotopesPartFeatureComponent,
1343
+ CommentFragmentFeatureComponent,
1344
+ CommentPartFeatureComponent,
1345
+ DocReferencesPartFeatureComponent,
1346
+ ExternalIdsPartFeatureComponent,
1347
+ HistoricalDatePartFeatureComponent,
1348
+ HistoricalEventsPartFeatureComponent,
1349
+ IndexKeywordsPartFeatureComponent,
1350
+ KeywordsPartFeatureComponent,
1351
+ MetadataPartFeatureComponent,
1352
+ NamesPartFeatureComponent,
1353
+ NotePartFeatureComponent,
1354
+ PinLinksFragmentFeatureComponent,
1355
+ PinLinksPartFeatureComponent,
1356
+ TiledTextLayerPartFeatureComponent,
1357
+ TiledTextPartFeatureComponent,
1358
+ TokenTextLayerPartFeatureComponent,
1359
+ TokenTextPartFeatureComponent] }); }
1360
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CadmusPartGeneralPgModule, imports: [CommonModule,
1361
+ FormsModule,
1362
+ ReactiveFormsModule,
1363
+ RouterModuleForChild,
1364
+ // material
1365
+ MatButtonModule,
1366
+ MatCheckboxModule,
1367
+ MatCardModule,
1368
+ MatExpansionModule,
1369
+ MatIconModule,
1370
+ MatInputModule,
1371
+ MatProgressBarModule,
1372
+ MatProgressSpinnerModule,
1373
+ MatSelectModule,
1374
+ MatTooltipModule,
1375
+ MatToolbarModule,
1376
+ // vendors
1377
+ NgToolsModule,
1378
+ NgMatToolsModule,
1379
+ // cadmus
1380
+ CadmusCoreModule,
1381
+ CadmusUiModule,
1382
+ CadmusPartGeneralUiModule,
1383
+ CadmusStateModule,
1384
+ CadmusUiPgModule] }); }
1385
+ }
1386
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: CadmusPartGeneralPgModule, decorators: [{
1387
+ type: NgModule,
1388
+ args: [{
1389
+ imports: [
1390
+ CommonModule,
1391
+ FormsModule,
1392
+ ReactiveFormsModule,
1393
+ RouterModuleForChild,
1394
+ // material
1395
+ MatButtonModule,
1396
+ MatCheckboxModule,
1397
+ MatCardModule,
1398
+ MatExpansionModule,
1399
+ MatIconModule,
1400
+ MatInputModule,
1401
+ MatProgressBarModule,
1402
+ MatProgressSpinnerModule,
1403
+ MatSelectModule,
1404
+ MatTooltipModule,
1405
+ MatToolbarModule,
1406
+ // vendors
1407
+ NgToolsModule,
1408
+ NgMatToolsModule,
1409
+ // cadmus
1410
+ CadmusCoreModule,
1411
+ CadmusUiModule,
1412
+ CadmusPartGeneralUiModule,
1413
+ CadmusStateModule,
1414
+ CadmusUiPgModule,
1415
+ ],
1416
+ declarations: [
1417
+ BibliographyPartFeatureComponent,
1418
+ CategoriesPartFeatureComponent,
1419
+ ChronologyFragmentFeatureComponent,
1420
+ ChronotopesPartFeatureComponent,
1421
+ CommentFragmentFeatureComponent,
1422
+ CommentPartFeatureComponent,
1423
+ DocReferencesPartFeatureComponent,
1424
+ ExternalIdsPartFeatureComponent,
1425
+ HistoricalDatePartFeatureComponent,
1426
+ HistoricalEventsPartFeatureComponent,
1427
+ IndexKeywordsPartFeatureComponent,
1428
+ KeywordsPartFeatureComponent,
1429
+ MetadataPartFeatureComponent,
1430
+ NamesPartFeatureComponent,
1431
+ NotePartFeatureComponent,
1432
+ PinLinksFragmentFeatureComponent,
1433
+ PinLinksPartFeatureComponent,
1434
+ TiledTextLayerPartFeatureComponent,
1435
+ TiledTextPartFeatureComponent,
1436
+ TokenTextLayerPartFeatureComponent,
1437
+ TokenTextPartFeatureComponent,
1438
+ ],
1439
+ exports: [
1440
+ BibliographyPartFeatureComponent,
1441
+ CategoriesPartFeatureComponent,
1442
+ ChronologyFragmentFeatureComponent,
1443
+ ChronotopesPartFeatureComponent,
1444
+ CommentFragmentFeatureComponent,
1445
+ CommentPartFeatureComponent,
1446
+ DocReferencesPartFeatureComponent,
1447
+ ExternalIdsPartFeatureComponent,
1448
+ HistoricalDatePartFeatureComponent,
1449
+ HistoricalEventsPartFeatureComponent,
1450
+ IndexKeywordsPartFeatureComponent,
1451
+ KeywordsPartFeatureComponent,
1452
+ MetadataPartFeatureComponent,
1453
+ NamesPartFeatureComponent,
1454
+ NotePartFeatureComponent,
1455
+ PinLinksFragmentFeatureComponent,
1456
+ PinLinksPartFeatureComponent,
1457
+ TiledTextLayerPartFeatureComponent,
1458
+ TiledTextPartFeatureComponent,
1459
+ TokenTextLayerPartFeatureComponent,
1460
+ TokenTextPartFeatureComponent,
1461
+ ],
1462
+ }]
1442
1463
  }] });
1443
1464
 
1444
- /*
1445
- * Public API Surface of cadmus-part-general-pg
1465
+ /*
1466
+ * Public API Surface of cadmus-part-general-pg
1446
1467
  */
1447
1468
 
1448
- /**
1449
- * Generated bundle index. Do not edit.
1469
+ /**
1470
+ * Generated bundle index. Do not edit.
1450
1471
  */
1451
1472
 
1452
1473
  export { BibliographyPartFeatureComponent, CadmusPartGeneralPgModule, CategoriesPartFeatureComponent, ChronologyFragmentFeatureComponent, ChronotopesPartFeatureComponent, CommentFragmentFeatureComponent, CommentPartFeatureComponent, DocReferencesPartFeatureComponent, ExternalIdsPartFeatureComponent, HistoricalDatePartFeatureComponent, HistoricalEventsPartFeatureComponent, IndexKeywordsPartFeatureComponent, KeywordsPartFeatureComponent, MetadataPartFeatureComponent, NamesPartFeatureComponent, NotePartFeatureComponent, PinLinksFragmentFeatureComponent, PinLinksPartFeatureComponent, RouterModuleForChild, TiledTextLayerPartFeatureComponent, TiledTextPartFeatureComponent, TokenTextLayerPartFeatureComponent, TokenTextPartFeatureComponent };