@myrmidon/cadmus-preview-pg 10.2.0 → 11.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -24
- package/fesm2022/myrmidon-cadmus-preview-pg.mjs +24 -25
- package/fesm2022/myrmidon-cadmus-preview-pg.mjs.map +1 -1
- package/lib/cadmus-preview-pg.module.d.ts +8 -10
- package/lib/components/part-preview-feature/part-preview-feature.component.d.ts +2 -4
- package/lib/components/text-preview-feature/text-preview-feature.component.d.ts +2 -4
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,24 +1,63 @@
|
|
|
1
|
-
# CadmusPreviewPg
|
|
2
|
-
|
|
3
|
-
This
|
|
4
|
-
|
|
5
|
-
## Code scaffolding
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
# CadmusPreviewPg
|
|
2
|
+
|
|
3
|
+
This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 19.0.0.
|
|
4
|
+
|
|
5
|
+
## Code scaffolding
|
|
6
|
+
|
|
7
|
+
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
ng generate component component-name
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
For a complete list of available schematics (such as `components`, `directives`, or `pipes`), run:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
ng generate --help
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Building
|
|
20
|
+
|
|
21
|
+
To build the library, run:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
ng build cadmus-preview-pg
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This command will compile your project, and the build artifacts will be placed in the `dist/` directory.
|
|
28
|
+
|
|
29
|
+
### Publishing the Library
|
|
30
|
+
|
|
31
|
+
Once the project is built, you can publish your library by following these steps:
|
|
32
|
+
|
|
33
|
+
1. Navigate to the `dist` directory:
|
|
34
|
+
```bash
|
|
35
|
+
cd dist/cadmus-preview-pg
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
2. Run the `npm publish` command to publish your library to the npm registry:
|
|
39
|
+
```bash
|
|
40
|
+
npm publish
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Running unit tests
|
|
44
|
+
|
|
45
|
+
To execute unit tests with the [Karma](https://karma-runner.github.io) test runner, use the following command:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
ng test
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Running end-to-end tests
|
|
52
|
+
|
|
53
|
+
For end-to-end (e2e) testing, run:
|
|
54
|
+
|
|
55
|
+
```bash
|
|
56
|
+
ng e2e
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
Angular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
|
|
60
|
+
|
|
61
|
+
## Additional Resources
|
|
62
|
+
|
|
63
|
+
For more information on using the Angular CLI, including detailed command references, visit the [Angular CLI Overview and Command Reference](https://angular.dev/tools/cli) page.
|
|
@@ -1,35 +1,34 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, NgModule } from '@angular/core';
|
|
3
|
+
import { MatCard, MatCardHeader, MatCardContent, MatCardModule } from '@angular/material/card';
|
|
4
|
+
import { PartPreviewComponent, TextPreviewComponent } from '@myrmidon/cadmus-preview-ui';
|
|
3
5
|
import * as i1 from '@angular/router';
|
|
4
6
|
import { RouterModule } from '@angular/router';
|
|
5
|
-
import * as i2 from '@angular/material/card';
|
|
6
|
-
import { MatCardModule } from '@angular/material/card';
|
|
7
|
-
import * as i3 from '@myrmidon/cadmus-preview-ui';
|
|
8
|
-
import { CadmusPreviewUiModule } from '@myrmidon/cadmus-preview-ui';
|
|
9
7
|
import { take } from 'rxjs/operators';
|
|
10
|
-
import * as i2
|
|
8
|
+
import * as i2 from '@myrmidon/cadmus-state';
|
|
11
9
|
import { CommonModule } from '@angular/common';
|
|
12
10
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
13
11
|
import { MatTabsModule } from '@angular/material/tabs';
|
|
14
|
-
import { CadmusApiModule } from '@myrmidon/cadmus-api';
|
|
15
12
|
|
|
16
13
|
class PartPreviewFeatureComponent {
|
|
14
|
+
source;
|
|
17
15
|
constructor(route) {
|
|
18
16
|
this.source = {
|
|
19
17
|
itemId: route.snapshot.params['iid'],
|
|
20
18
|
partId: route.snapshot.params['pid'],
|
|
21
19
|
};
|
|
22
20
|
}
|
|
23
|
-
|
|
24
|
-
static
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: PartPreviewFeatureComponent, isStandalone: false, selector: "cadmus-part-preview-feature", ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <h3>Part Preview</h3>\n </mat-card-header>\n <mat-card-content>\n <cadmus-part-preview [source]=\"source\"></cadmus-part-preview>\n </mat-card-content>\n</mat-card>\n", styles: [""], dependencies: [{ kind: "component", type: i2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i2.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i2.MatCardHeader, selector: "mat-card-header" }, { kind: "component", type: i3.PartPreviewComponent, selector: "cadmus-part-preview", inputs: ["source"] }] }); }
|
|
21
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: PartPreviewFeatureComponent, deps: [{ token: i1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component });
|
|
22
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: PartPreviewFeatureComponent, isStandalone: true, selector: "cadmus-part-preview-feature", ngImport: i0, template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <h3>Part Preview</h3>\n </mat-card-header>\n <mat-card-content>\n <cadmus-part-preview [source]=\"source\"/>\n </mat-card-content>\n</mat-card>\n", styles: [""], dependencies: [{ kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "component", type: PartPreviewComponent, selector: "cadmus-part-preview", inputs: ["source"] }] });
|
|
26
23
|
}
|
|
27
24
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: PartPreviewFeatureComponent, decorators: [{
|
|
28
25
|
type: Component,
|
|
29
|
-
args: [{ selector: 'cadmus-part-preview-feature',
|
|
26
|
+
args: [{ selector: 'cadmus-part-preview-feature', imports: [MatCard, MatCardHeader, MatCardContent, PartPreviewComponent], template: "<mat-card appearance=\"outlined\">\n <mat-card-header>\n <h3>Part Preview</h3>\n </mat-card-header>\n <mat-card-content>\n <cadmus-part-preview [source]=\"source\"/>\n </mat-card-content>\n</mat-card>\n" }]
|
|
30
27
|
}], ctorParameters: () => [{ type: i1.ActivatedRoute }] });
|
|
31
28
|
|
|
32
29
|
class TextPreviewFeatureComponent {
|
|
30
|
+
source;
|
|
31
|
+
typeEntries;
|
|
33
32
|
constructor(route, appRepository) {
|
|
34
33
|
this.source = {
|
|
35
34
|
itemId: route.snapshot.params['iid'],
|
|
@@ -39,15 +38,16 @@ class TextPreviewFeatureComponent {
|
|
|
39
38
|
appRepository.typeThesaurus$.pipe(take(1)).subscribe((t) => {
|
|
40
39
|
this.typeEntries = t?.entries;
|
|
41
40
|
});
|
|
41
|
+
// ensure app data is loaded
|
|
42
|
+
appRepository.load();
|
|
42
43
|
}
|
|
43
|
-
|
|
44
|
-
static
|
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: TextPreviewFeatureComponent, isStandalone: false, selector: "cadmus-text-preview-feature", ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Layered Text Preview</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <cadmus-text-preview\r\n [source]=\"source\"\r\n [typeEntries]=\"typeEntries\"\r\n ></cadmus-text-preview>\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [""], dependencies: [{ kind: "component", type: i2.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i2.MatCardContent, selector: "mat-card-content" }, { kind: "component", type: i2.MatCardHeader, selector: "mat-card-header" }, { kind: "component", type: i3.TextPreviewComponent, selector: "cadmus-text-preview", inputs: ["source", "typeEntries"] }] }); }
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: TextPreviewFeatureComponent, deps: [{ token: i1.ActivatedRoute }, { token: i2.AppRepository }], target: i0.ɵɵFactoryTarget.Component });
|
|
45
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: TextPreviewFeatureComponent, isStandalone: true, selector: "cadmus-text-preview-feature", ngImport: i0, template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Layered Text Preview</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <cadmus-text-preview [source]=\"source\" [typeEntries]=\"typeEntries\" />\r\n </mat-card-content>\r\n</mat-card>\r\n", styles: [""], dependencies: [{ kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "component", type: TextPreviewComponent, selector: "cadmus-text-preview", inputs: ["source", "typeEntries"] }] });
|
|
46
46
|
}
|
|
47
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: TextPreviewFeatureComponent, decorators: [{
|
|
48
48
|
type: Component,
|
|
49
|
-
args: [{ selector: 'cadmus-text-preview-feature',
|
|
50
|
-
}], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i2
|
|
49
|
+
args: [{ selector: 'cadmus-text-preview-feature', imports: [MatCard, MatCardHeader, MatCardContent, TextPreviewComponent], template: "<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Layered Text Preview</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <cadmus-text-preview [source]=\"source\" [typeEntries]=\"typeEntries\" />\r\n </mat-card-content>\r\n</mat-card>\r\n" }]
|
|
50
|
+
}], ctorParameters: () => [{ type: i1.ActivatedRoute }, { type: i2.AppRepository }] });
|
|
51
51
|
|
|
52
52
|
// https://github.com/ng-packagr/ng-packagr/issues/778
|
|
53
53
|
const RouterModuleForChild = RouterModule.forChild([
|
|
@@ -63,17 +63,17 @@ const RouterModuleForChild = RouterModule.forChild([
|
|
|
63
63
|
},
|
|
64
64
|
]);
|
|
65
65
|
class CadmusPreviewPgModule {
|
|
66
|
-
static
|
|
67
|
-
static
|
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CadmusPreviewPgModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
67
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.5", ngImport: i0, type: CadmusPreviewPgModule, imports: [CommonModule,
|
|
68
68
|
FormsModule,
|
|
69
69
|
RouterModule, i1.RouterModule, ReactiveFormsModule,
|
|
70
70
|
// material
|
|
71
71
|
MatCardModule,
|
|
72
72
|
MatTabsModule,
|
|
73
73
|
// cadmus
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
static
|
|
74
|
+
PartPreviewFeatureComponent,
|
|
75
|
+
TextPreviewFeatureComponent], exports: [PartPreviewFeatureComponent, TextPreviewFeatureComponent] });
|
|
76
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CadmusPreviewPgModule, imports: [CommonModule,
|
|
77
77
|
FormsModule,
|
|
78
78
|
RouterModule,
|
|
79
79
|
RouterModuleForChild,
|
|
@@ -82,13 +82,12 @@ class CadmusPreviewPgModule {
|
|
|
82
82
|
MatCardModule,
|
|
83
83
|
MatTabsModule,
|
|
84
84
|
// cadmus
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
PartPreviewFeatureComponent,
|
|
86
|
+
TextPreviewFeatureComponent] });
|
|
87
87
|
}
|
|
88
88
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: CadmusPreviewPgModule, decorators: [{
|
|
89
89
|
type: NgModule,
|
|
90
90
|
args: [{
|
|
91
|
-
declarations: [PartPreviewFeatureComponent, TextPreviewFeatureComponent],
|
|
92
91
|
imports: [
|
|
93
92
|
CommonModule,
|
|
94
93
|
FormsModule,
|
|
@@ -99,8 +98,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
|
99
98
|
MatCardModule,
|
|
100
99
|
MatTabsModule,
|
|
101
100
|
// cadmus
|
|
102
|
-
|
|
103
|
-
|
|
101
|
+
PartPreviewFeatureComponent,
|
|
102
|
+
TextPreviewFeatureComponent,
|
|
104
103
|
],
|
|
105
104
|
exports: [PartPreviewFeatureComponent, TextPreviewFeatureComponent],
|
|
106
105
|
}]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"myrmidon-cadmus-preview-pg.mjs","sources":["../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/part-preview-feature/part-preview-feature.component.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/part-preview-feature/part-preview-feature.component.html","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/text-preview-feature/text-preview-feature.component.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/text-preview-feature/text-preview-feature.component.html","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/cadmus-preview-pg.module.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/public-api.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/myrmidon-cadmus-preview-pg.ts"],"sourcesContent":["import { Component
|
|
1
|
+
{"version":3,"file":"myrmidon-cadmus-preview-pg.mjs","sources":["../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/part-preview-feature/part-preview-feature.component.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/part-preview-feature/part-preview-feature.component.html","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/text-preview-feature/text-preview-feature.component.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/components/text-preview-feature/text-preview-feature.component.html","../../../../projects/myrmidon/cadmus-preview-pg/src/lib/cadmus-preview-pg.module.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/public-api.ts","../../../../projects/myrmidon/cadmus-preview-pg/src/myrmidon-cadmus-preview-pg.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\n\nimport { MatCard, MatCardHeader, MatCardContent } from '@angular/material/card';\n\nimport {\n PartPreviewComponent,\n PartPreviewSource,\n} from '@myrmidon/cadmus-preview-ui';\n\n@Component({\n selector: 'cadmus-part-preview-feature',\n templateUrl: './part-preview-feature.component.html',\n styleUrls: ['./part-preview-feature.component.css'],\n imports: [MatCard, MatCardHeader, MatCardContent, PartPreviewComponent],\n})\nexport class PartPreviewFeatureComponent {\n public source?: PartPreviewSource;\n\n constructor(route: ActivatedRoute) {\n this.source = {\n itemId: route.snapshot.params['iid'],\n partId: route.snapshot.params['pid'],\n };\n }\n}\n","<mat-card appearance=\"outlined\">\n <mat-card-header>\n <h3>Part Preview</h3>\n </mat-card-header>\n <mat-card-content>\n <cadmus-part-preview [source]=\"source\"/>\n </mat-card-content>\n</mat-card>\n","import { Component } from '@angular/core';\r\nimport { ActivatedRoute } from '@angular/router';\r\nimport { take } from 'rxjs/operators';\r\n\r\nimport { MatCard, MatCardHeader, MatCardContent } from '@angular/material/card';\r\n\r\nimport { ThesaurusEntry } from '@myrmidon/cadmus-core';\r\nimport {\r\n PartPreviewSource,\r\n TextPreviewComponent,\r\n} from '@myrmidon/cadmus-preview-ui';\r\nimport { AppRepository } from '@myrmidon/cadmus-state';\r\n\r\n@Component({\r\n selector: 'cadmus-text-preview-feature',\r\n templateUrl: './text-preview-feature.component.html',\r\n styleUrls: ['./text-preview-feature.component.css'],\r\n imports: [MatCard, MatCardHeader, MatCardContent, TextPreviewComponent],\r\n})\r\nexport class TextPreviewFeatureComponent {\r\n public source?: PartPreviewSource;\r\n public typeEntries?: ThesaurusEntry[];\r\n\r\n constructor(route: ActivatedRoute, appRepository: AppRepository) {\r\n this.source = {\r\n itemId: route.snapshot.params['iid'],\r\n partId: route.snapshot.params['pid'],\r\n layerId: route.snapshot.queryParams['lid'],\r\n };\r\n appRepository.typeThesaurus$.pipe(take(1)).subscribe((t) => {\r\n this.typeEntries = t?.entries;\r\n });\r\n // ensure app data is loaded\r\n appRepository.load();\r\n }\r\n}\r\n","<mat-card appearance=\"outlined\">\r\n <mat-card-header>\r\n <h3>Layered Text Preview</h3>\r\n </mat-card-header>\r\n <mat-card-content>\r\n <cadmus-text-preview [source]=\"source\" [typeEntries]=\"typeEntries\" />\r\n </mat-card-content>\r\n</mat-card>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { RouterModule } from '@angular/router';\r\n\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatTabsModule } from '@angular/material/tabs';\r\n\r\nimport { PartPreviewFeatureComponent } from './components/part-preview-feature/part-preview-feature.component';\r\nimport { TextPreviewFeatureComponent } from './components/text-preview-feature/text-preview-feature.component';\r\n\r\n// https://github.com/ng-packagr/ng-packagr/issues/778\r\nexport const RouterModuleForChild = RouterModule.forChild([\r\n {\r\n path: ':iid/:pid',\r\n pathMatch: 'full',\r\n component: PartPreviewFeatureComponent,\r\n },\r\n {\r\n path: ':iid/:pid/text',\r\n pathMatch: 'full',\r\n component: TextPreviewFeatureComponent,\r\n },\r\n]);\r\n\r\n@NgModule({\r\n imports: [\r\n CommonModule,\r\n FormsModule,\r\n RouterModule,\r\n RouterModuleForChild,\r\n ReactiveFormsModule,\r\n // material\r\n MatCardModule,\r\n MatTabsModule,\r\n // cadmus\r\n PartPreviewFeatureComponent,\r\n TextPreviewFeatureComponent,\r\n ],\r\n exports: [PartPreviewFeatureComponent, TextPreviewFeatureComponent],\r\n})\r\nexport class CadmusPreviewPgModule {}\r\n","/*\r\n * Public API Surface of cadmus-preview-pg\r\n */\r\n\r\nexport * from './lib/components/part-preview-feature/part-preview-feature.component';\r\nexport * from './lib/components/text-preview-feature/text-preview-feature.component';\r\nexport * from './lib/cadmus-preview-pg.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAgBa,2BAA2B,CAAA;AAC/B,IAAA,MAAM;AAEb,IAAA,WAAA,CAAY,KAAqB,EAAA;QAC/B,IAAI,CAAC,MAAM,GAAG;YACZ,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC;YACpC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC;SACrC;;uGAPQ,2BAA2B,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,cAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,QAAA,EAA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AArB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAd9B,YAAY;YACZ,WAAW;AACX,YAAA,YAAY,mBAEZ,mBAAmB;;YAEnB,aAAa;YACb,aAAa;;YAEb,2BAA2B;YAC3B,2BAA2B,CAAA,EAAA,OAAA,EAAA,CAEnB,2BAA2B,EAAE,2BAA2B,CAAA,EAAA,CAAA;AAEvD,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,YAd9B,YAAY;YACZ,WAAW;YACX,YAAY;YACZ,oBAAoB;YACpB,mBAAmB;;YAEnB,aAAa;YACb,aAAa;;YAEb,2BAA2B;YAC3B,2BAA2B,CAAA,EAAA,CAAA;;2FAIlB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAhBjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,WAAW;wBACX,YAAY;wBACZ,oBAAoB;wBACpB,mBAAmB;;wBAEnB,aAAa;wBACb,aAAa;;wBAEb,2BAA2B;wBAC3B,2BAA2B;AAC5B,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,2BAA2B,EAAE,2BAA2B,CAAC;AACpE,iBAAA;;;ACxCD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import { RouterModule } from '@angular/router';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "
|
|
4
|
-
import * as i2 from "
|
|
5
|
-
import * as i3 from "@angular/
|
|
6
|
-
import * as i4 from "@angular/
|
|
7
|
-
import * as i5 from "@angular/
|
|
8
|
-
import * as i6 from "
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "@myrmidon/cadmus-api";
|
|
11
|
-
import * as i9 from "@myrmidon/cadmus-preview-ui";
|
|
3
|
+
import * as i1 from "@angular/common";
|
|
4
|
+
import * as i2 from "@angular/forms";
|
|
5
|
+
import * as i3 from "@angular/router";
|
|
6
|
+
import * as i4 from "@angular/material/card";
|
|
7
|
+
import * as i5 from "@angular/material/tabs";
|
|
8
|
+
import * as i6 from "./components/part-preview-feature/part-preview-feature.component";
|
|
9
|
+
import * as i7 from "./components/text-preview-feature/text-preview-feature.component";
|
|
12
10
|
export declare const RouterModuleForChild: import("@angular/core").ModuleWithProviders<RouterModule>;
|
|
13
11
|
export declare class CadmusPreviewPgModule {
|
|
14
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<CadmusPreviewPgModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<CadmusPreviewPgModule,
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<CadmusPreviewPgModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i3.RouterModule, typeof i3.RouterModule, typeof i2.ReactiveFormsModule, typeof i4.MatCardModule, typeof i5.MatTabsModule, typeof i6.PartPreviewFeatureComponent, typeof i7.TextPreviewFeatureComponent], [typeof i6.PartPreviewFeatureComponent, typeof i7.TextPreviewFeatureComponent]>;
|
|
16
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<CadmusPreviewPgModule>;
|
|
17
15
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { ActivatedRoute } from '@angular/router';
|
|
3
2
|
import { PartPreviewSource } from '@myrmidon/cadmus-preview-ui';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class PartPreviewFeatureComponent
|
|
4
|
+
export declare class PartPreviewFeatureComponent {
|
|
6
5
|
source?: PartPreviewSource;
|
|
7
6
|
constructor(route: ActivatedRoute);
|
|
8
|
-
ngOnInit(): void;
|
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<PartPreviewFeatureComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PartPreviewFeatureComponent, "cadmus-part-preview-feature", never, {}, {}, never, never,
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PartPreviewFeatureComponent, "cadmus-part-preview-feature", never, {}, {}, never, never, true, never>;
|
|
11
9
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { ActivatedRoute } from '@angular/router';
|
|
3
2
|
import { ThesaurusEntry } from '@myrmidon/cadmus-core';
|
|
4
3
|
import { PartPreviewSource } from '@myrmidon/cadmus-preview-ui';
|
|
5
4
|
import { AppRepository } from '@myrmidon/cadmus-state';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class TextPreviewFeatureComponent
|
|
6
|
+
export declare class TextPreviewFeatureComponent {
|
|
8
7
|
source?: PartPreviewSource;
|
|
9
8
|
typeEntries?: ThesaurusEntry[];
|
|
10
9
|
constructor(route: ActivatedRoute, appRepository: AppRepository);
|
|
11
|
-
ngOnInit(): void;
|
|
12
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextPreviewFeatureComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextPreviewFeatureComponent, "cadmus-text-preview-feature", never, {}, {}, never, never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextPreviewFeatureComponent, "cadmus-text-preview-feature", never, {}, {}, never, never, true, never>;
|
|
14
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@myrmidon/cadmus-preview-pg",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "11.0.0",
|
|
4
4
|
"description": "Cadmus - preview wrapper components.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Cadmus"
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"@angular/core": "^19.0.0",
|
|
19
19
|
"@myrmidon/ngx-tools": "^1.0.0",
|
|
20
20
|
"@myrmidon/ngx-mat-tools": "^0.0.1",
|
|
21
|
-
"@myrmidon/cadmus-api": "^
|
|
22
|
-
"@myrmidon/cadmus-preview-ui": "^
|
|
21
|
+
"@myrmidon/cadmus-api": "^11.0.0",
|
|
22
|
+
"@myrmidon/cadmus-preview-ui": "^11.0.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"tslib": "^2.3.0"
|