@o3r/application 10.0.0-prerelease.11 → 10.0.0-prerelease.111
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 +2 -1
- package/esm2022/devkit/application-devtools.console.service.mjs +3 -3
- package/esm2022/devkit/application-devtools.message.service.mjs +3 -3
- package/esm2022/devkit/application-devtools.module.mjs +4 -4
- package/esm2022/devkit/application-devtools.service.mjs +3 -3
- package/fesm2022/o3r-application.mjs +14 -14
- package/migration.json +3 -3
- package/package.json +13 -10
- package/schematics/ng-add/helpers/cms-registration.js.map +1 -0
- package/schematics/ng-add/helpers/devtools-registration.js.map +1 -0
- package/schematics/ng-add/index.d.ts +1 -1
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +15 -10
- package/schematics/ng-add/index.js.map +1 -0
- package/schematics/ng-add/schema.js.map +1 -0
- package/schematics/ng-update/index.d.ts.map +1 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/v10.0/update-cms-config.d.ts.map +1 -0
- package/schematics/ng-update/v10.0/update-cms-config.js.map +1 -0
- package/schematics/ng-add/ng-update/index.d.ts.map +0 -1
- package/schematics/ng-add/ng-update/v10.0/update-cms-config.d.ts.map +0 -1
- /package/schematics/{ng-add/ng-update → ng-update}/index.d.ts +0 -0
- /package/schematics/{ng-add/ng-update → ng-update}/index.js +0 -0
- /package/schematics/{ng-add/ng-update → ng-update}/v10.0/update-cms-config.d.ts +0 -0
- /package/schematics/{ng-add/ng-update → ng-update}/v10.0/update-cms-config.js +0 -0
package/README.md
CHANGED
|
@@ -17,4 +17,5 @@ This module provides development tools for your [Otter Application](https://gith
|
|
|
17
17
|
ng add @o3r/application
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
>
|
|
20
|
+
> [!WARNING]
|
|
21
|
+
> This module requires [@o3r/core](https://www.npmjs.com/package/@o3r/core) to be installed.
|
|
@@ -27,10 +27,10 @@ export class ApplicationDevtoolsConsoleService {
|
|
|
27
27
|
displayApplicationInfo() {
|
|
28
28
|
console.info('Application info', this.applicationDevtools.getApplicationInformation());
|
|
29
29
|
}
|
|
30
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
31
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
30
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsConsoleService, deps: [{ token: i1.OtterApplicationDevtools }, { token: OTTER_APPLICATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
31
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsConsoleService, providedIn: 'root' }); }
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsConsoleService, decorators: [{
|
|
34
34
|
type: Injectable,
|
|
35
35
|
args: [{
|
|
36
36
|
providedIn: 'root'
|
|
@@ -83,10 +83,10 @@ export class ApplicationDevtoolsMessageService {
|
|
|
83
83
|
ngOnDestroy() {
|
|
84
84
|
this.subscriptions.unsubscribe();
|
|
85
85
|
}
|
|
86
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
87
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
86
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsMessageService, deps: [{ token: i1.LoggerService }, { token: i2.OtterApplicationDevtools }, { token: OTTER_APPLICATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
87
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsMessageService, providedIn: 'root' }); }
|
|
88
88
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsMessageService, decorators: [{
|
|
90
90
|
type: Injectable,
|
|
91
91
|
args: [{
|
|
92
92
|
providedIn: 'root'
|
|
@@ -20,16 +20,16 @@ export class ApplicationDevtoolsModule {
|
|
|
20
20
|
]
|
|
21
21
|
};
|
|
22
22
|
}
|
|
23
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
24
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
|
25
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
|
23
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
24
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule }); }
|
|
25
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule, providers: [
|
|
26
26
|
{ provide: OTTER_APPLICATION_DEVTOOLS_OPTIONS, useValue: OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS },
|
|
27
27
|
ApplicationDevtoolsMessageService,
|
|
28
28
|
ApplicationDevtoolsConsoleService,
|
|
29
29
|
OtterApplicationDevtools
|
|
30
30
|
] }); }
|
|
31
31
|
}
|
|
32
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule, decorators: [{
|
|
33
33
|
type: NgModule,
|
|
34
34
|
args: [{
|
|
35
35
|
providers: [
|
|
@@ -14,10 +14,10 @@ export class OtterApplicationDevtools {
|
|
|
14
14
|
isProduction: isProductionEnvironment(this.document?.body.dataset)
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
18
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
17
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: OtterApplicationDevtools, deps: [{ token: DOCUMENT, optional: true }, { token: ENVIRONMENT_CONFIG_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: OtterApplicationDevtools, providedIn: 'root' }); }
|
|
19
19
|
}
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: OtterApplicationDevtools, decorators: [{
|
|
21
21
|
type: Injectable,
|
|
22
22
|
args: [{ providedIn: 'root' }]
|
|
23
23
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -4,7 +4,7 @@ import { DOCUMENT } from '@angular/common';
|
|
|
4
4
|
import { isProductionEnvironment, sendOtterMessage, filterMessageContent } from '@o3r/core';
|
|
5
5
|
import { ENVIRONMENT_CONFIG_TOKEN } from '@o3r/routing';
|
|
6
6
|
import * as i1 from '@o3r/logger';
|
|
7
|
-
import {
|
|
7
|
+
import { toggleVisualTestingRender, isVisualTestingEnabled, prepareVisualTesting } from '@o3r/testing/visual-test/utils';
|
|
8
8
|
import { Subscription, fromEvent } from 'rxjs';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -39,10 +39,10 @@ class OtterApplicationDevtools {
|
|
|
39
39
|
isProduction: isProductionEnvironment(this.document?.body.dataset)
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
43
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
42
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: OtterApplicationDevtools, deps: [{ token: DOCUMENT, optional: true }, { token: ENVIRONMENT_CONFIG_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
43
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: OtterApplicationDevtools, providedIn: 'root' }); }
|
|
44
44
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: OtterApplicationDevtools, decorators: [{
|
|
46
46
|
type: Injectable,
|
|
47
47
|
args: [{ providedIn: 'root' }]
|
|
48
48
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -86,10 +86,10 @@ class ApplicationDevtoolsConsoleService {
|
|
|
86
86
|
displayApplicationInfo() {
|
|
87
87
|
console.info('Application info', this.applicationDevtools.getApplicationInformation());
|
|
88
88
|
}
|
|
89
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
90
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
89
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsConsoleService, deps: [{ token: OtterApplicationDevtools }, { token: OTTER_APPLICATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
90
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsConsoleService, providedIn: 'root' }); }
|
|
91
91
|
}
|
|
92
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsConsoleService, decorators: [{
|
|
93
93
|
type: Injectable,
|
|
94
94
|
args: [{
|
|
95
95
|
providedIn: 'root'
|
|
@@ -175,10 +175,10 @@ class ApplicationDevtoolsMessageService {
|
|
|
175
175
|
ngOnDestroy() {
|
|
176
176
|
this.subscriptions.unsubscribe();
|
|
177
177
|
}
|
|
178
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
179
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
178
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsMessageService, deps: [{ token: i1.LoggerService }, { token: OtterApplicationDevtools }, { token: OTTER_APPLICATION_DEVTOOLS_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
179
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsMessageService, providedIn: 'root' }); }
|
|
180
180
|
}
|
|
181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsMessageService, decorators: [{
|
|
182
182
|
type: Injectable,
|
|
183
183
|
args: [{
|
|
184
184
|
providedIn: 'root'
|
|
@@ -206,16 +206,16 @@ class ApplicationDevtoolsModule {
|
|
|
206
206
|
]
|
|
207
207
|
};
|
|
208
208
|
}
|
|
209
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
210
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
|
211
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
|
209
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
210
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule }); }
|
|
211
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule, providers: [
|
|
212
212
|
{ provide: OTTER_APPLICATION_DEVTOOLS_OPTIONS, useValue: OTTER_APPLICATION_DEVTOOLS_DEFAULT_OPTIONS },
|
|
213
213
|
ApplicationDevtoolsMessageService,
|
|
214
214
|
ApplicationDevtoolsConsoleService,
|
|
215
215
|
OtterApplicationDevtools
|
|
216
216
|
] }); }
|
|
217
217
|
}
|
|
218
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ApplicationDevtoolsModule, decorators: [{
|
|
219
219
|
type: NgModule,
|
|
220
220
|
args: [{
|
|
221
221
|
providers: [
|
package/migration.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/angular/angular-cli/master/packages/angular_devkit/schematics/collection-schema.json",
|
|
3
3
|
"schematics": {
|
|
4
|
-
"
|
|
4
|
+
"migration-v10_0": {
|
|
5
5
|
"version": "10.0.0-alpha.0",
|
|
6
|
-
"description": "Updates of
|
|
7
|
-
"factory": "./schematics/ng-update/index#
|
|
6
|
+
"description": "Updates of @o3r/application to v10.0.*",
|
|
7
|
+
"factory": "./schematics/ng-update/index#updateV10_0"
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/application",
|
|
3
|
-
"version": "10.0.0-prerelease.
|
|
3
|
+
"version": "10.0.0-prerelease.111",
|
|
4
|
+
"publishConfig": {
|
|
5
|
+
"access": "public"
|
|
6
|
+
},
|
|
4
7
|
"description": "This module provides development help to monitor your Otter Application",
|
|
5
8
|
"keywords": [
|
|
6
9
|
"application",
|
|
@@ -22,15 +25,15 @@
|
|
|
22
25
|
}
|
|
23
26
|
},
|
|
24
27
|
"peerDependencies": {
|
|
25
|
-
"@angular-devkit/schematics": "~17.
|
|
26
|
-
"@angular/common": "~17.0
|
|
27
|
-
"@angular/core": "~17.0
|
|
28
|
-
"@o3r/core": "^10.0.0-prerelease.
|
|
29
|
-
"@o3r/logger": "^10.0.0-prerelease.
|
|
30
|
-
"@o3r/routing": "^10.0.0-prerelease.
|
|
31
|
-
"@o3r/schematics": "^10.0.0-prerelease.
|
|
32
|
-
"@o3r/testing": "^10.0.0-prerelease.
|
|
33
|
-
"@schematics/angular": "~17.
|
|
28
|
+
"@angular-devkit/schematics": "~17.2.0",
|
|
29
|
+
"@angular/common": "~17.2.0",
|
|
30
|
+
"@angular/core": "~17.2.0",
|
|
31
|
+
"@o3r/core": "^10.0.0-prerelease.111",
|
|
32
|
+
"@o3r/logger": "^10.0.0-prerelease.111",
|
|
33
|
+
"@o3r/routing": "^10.0.0-prerelease.111",
|
|
34
|
+
"@o3r/schematics": "^10.0.0-prerelease.111",
|
|
35
|
+
"@o3r/testing": "^10.0.0-prerelease.111",
|
|
36
|
+
"@schematics/angular": "~17.2.0",
|
|
34
37
|
"rxjs": "^7.8.1",
|
|
35
38
|
"typescript": "~5.2.2"
|
|
36
39
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cms-registration.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/cms-registration.ts"],"names":[],"mappings":";;;AAAA,2DAA6H;AAE7H,gDAAqD;AAErD;;;GAGG;AACI,MAAM,qBAAqB,GAAG,CAAC,OAA8B,EAAQ,EAAE;IAC5E,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,gBAAgB,GAAG,OAAO,EAAE,WAAW,IAAI,IAAA,+BAAkB,EAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,IAAI,IAAI,GAAG,CAAC;QACtH,MAAM,cAAc,GAAG,IAAA,kBAAK,EAAC,IAAA,gBAAG,EAAC,aAAa,CAAC,EAC7C;YACE,IAAA,qBAAQ,EAAC,EAAE,CAAC;YACZ,IAAA,gCAAmB,GAAE;YACrB,IAAA,iBAAI,EAAC,gBAAgB,CAAC;SACvB,CACF,CAAC;QAEF,OAAO,IAAA,sBAAS,EAAC,cAAc,EAAE,0BAAa,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,qBAAqB,yBAahC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"devtools-registration.js","sourceRoot":"","sources":["../../../../schematics/ng-add/helpers/devtools-registration.ts"],"names":[],"mappings":";;;AAAA,2DAAyD;AACzD,kCAAkC;AAGlC,MAAM,mBAAmB,GAAG,2BAA2B,CAAC;AACxD,MAAM,4BAA4B,GAAG,mCAAmC,CAAC;AACzE,MAAM,4BAA4B,GAAG,mCAAmC,CAAC;AACzE,MAAM,YAAY,GAAW,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;AAErG;;;;;GAKG;AACI,MAAM,gBAAgB,GAAG,KAAK,EAAE,OAA8B,EAAiB,EAAE;IACtF,MAAM,EAAE,6BAA6B,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;IAC1E,OAAO,IAAA,kBAAK,EAAC;QACX,6BAA6B,CAAC;YAC5B,UAAU,EAAE,mBAAmB;YAC/B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC;QACF,6BAA6B,CAAC;YAC5B,UAAU,EAAE,mBAAmB;YAC/B,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,4BAA4B;YACzC,WAAW,EAAE,OAAO,CAAC,WAAW;SACjC,CAAC;KACH,CAAC,CAAC;AACL,CAAC,CAAC;AAhBW,QAAA,gBAAgB,oBAgB3B"}
|
|
@@ -4,5 +4,5 @@ import type { NgAddSchematicsSchema } from './schema';
|
|
|
4
4
|
* Add Otter application to an Angular Project
|
|
5
5
|
* @param options The options to pass to ng-add execution
|
|
6
6
|
*/
|
|
7
|
-
export declare const ngAdd: (
|
|
7
|
+
export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAI/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAI/E,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAkGtD;;;GAGG;AACH,eAAO,MAAM,KAAK,0CAAiD,CAAC"}
|
|
@@ -14,12 +14,12 @@ function ngAddFn(options) {
|
|
|
14
14
|
/* ng add rules */
|
|
15
15
|
return async (tree, context) => {
|
|
16
16
|
try {
|
|
17
|
-
const { addImportToModuleFile, getAppModuleFilePath, getModuleIndex, getWorkspaceConfig, insertImportToModuleFile,
|
|
17
|
+
const { addImportToModuleFile, getAppModuleFilePath, getModuleIndex, getWorkspaceConfig, insertImportToModuleFile, setupDependencies, getO3rPeerDeps, getProjectNewDependenciesTypes } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
18
18
|
const { isImported } = await Promise.resolve().then(() => require('@schematics/angular/utility/ast-utils'));
|
|
19
19
|
const ts = await Promise.resolve().then(() => require('typescript'));
|
|
20
|
-
const
|
|
20
|
+
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
21
|
+
const depsInfo = getO3rPeerDeps(packageJsonPath);
|
|
21
22
|
const workspaceProject = options.projectName ? getWorkspaceConfig(tree)?.projects[options.projectName] : undefined;
|
|
22
|
-
const workingDirectory = workspaceProject?.root;
|
|
23
23
|
const addAngularAnimationPreferences = () => {
|
|
24
24
|
const moduleFilePath = getAppModuleFilePath(tree, context, options.projectName);
|
|
25
25
|
if (!moduleFilePath) {
|
|
@@ -38,16 +38,21 @@ function ngAddFn(options) {
|
|
|
38
38
|
tree.commitUpdate(recorder);
|
|
39
39
|
return tree;
|
|
40
40
|
};
|
|
41
|
-
const
|
|
41
|
+
const dependencies = depsInfo.o3rPeerDeps.reduce((acc, dep) => {
|
|
42
|
+
acc[dep] = {
|
|
43
|
+
inManifest: [{
|
|
44
|
+
range: `^${depsInfo.packageVersion}`,
|
|
45
|
+
types: getProjectNewDependenciesTypes(workspaceProject)
|
|
46
|
+
}]
|
|
47
|
+
};
|
|
48
|
+
return acc;
|
|
49
|
+
}, (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName));
|
|
42
50
|
const registerDevtoolRule = await (0, devtools_registration_1.registerDevtools)(options);
|
|
43
51
|
return () => (0, schematics_1.chain)([
|
|
44
|
-
|
|
45
|
-
skipConfirmation: true,
|
|
46
|
-
version: depsInfo.packageVersion,
|
|
47
|
-
parentPackageInfo: depsInfo.packageName,
|
|
52
|
+
setupDependencies({
|
|
48
53
|
projectName: options.projectName,
|
|
49
|
-
|
|
50
|
-
|
|
54
|
+
dependencies,
|
|
55
|
+
ngAddToRun: depsInfo.o3rPeerDeps
|
|
51
56
|
}),
|
|
52
57
|
addAngularAnimationPreferences,
|
|
53
58
|
registerDevtoolRule,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mapp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,EAAE,QAAQ,CAAC,WAAW;iBACjC,CAAC;gBACF,8BAA8B;gBAC9B,mBAAmB;gBACnB,IAAA,wCAAqB,EAAC,OAAO,CAAC;aAC/B,CAAC,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SACnB;QAAC,OAAO,CAAC,EAAE;YACV,mFAAmF;YACnF,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;;oDAEyB,CAAC,CAAC;YAChD,MAAM,CAAC,CAAC,CAAC,CAAC;SACX;IACH,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACU,QAAA,KAAK,GAAG,IAAA,kDAAqC,EAAC,OAAO,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../schematics/ng-add/schema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAS,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGzD;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAMlC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-update/index.ts"],"names":[],"mappings":";AAAA,yDAAyD;AACzD,8BAA8B;;;AAE9B,2DAAyD;AACzD,iEAA8D;AAE9D;;GAEG;AACH,SAAgB,WAAW;IACzB,MAAM,WAAW,GAAW;QAC1B,IAAA,qCAAiB,GAAE;KACpB,CAAC;IAEF,OAAO,IAAA,kBAAK,EAAC,WAAW,CAAC,CAAC;AAC5B,CAAC;AAND,kCAMC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-cms-config.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-update/v10.0/update-cms-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGvD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAuBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-cms-config.js","sourceRoot":"","sources":["../../../../schematics/ng-update/v10.0/update-cms-config.ts"],"names":[],"mappings":";;;AACA,yCAAqC;AAErC;;GAEG;AACH,SAAgB,iBAAiB;IAC/B,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,aAAa,GAAwB,EAAE,CAAC;QAE9C,IAAI,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE;YAClB,IAAI,IAAA,oBAAQ,EAAC,IAAI,CAAC,KAAK,UAAU,EAAE;gBACjC,IAAI;oBACF,MAAM,UAAU,GAAQ,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;oBAC5C,IAAI,OAAO,UAAU,KAAK,QAAQ,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;wBACzD,aAAa,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC;qBAClC;iBACF;gBAAC,MAAM;oBACN,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,oBAAoB,IAAI,GAAG,CAAC,CAAC;iBAClD;aACF;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,EAAE,UAAU,CAAC,EAAE,EAAE;YAC3D,UAAU,CAAC,OAAO,GAAG,8FAA8F,CAAC;YACpH,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;QAC5D,CAAC,CAAC,CAAC;QACH,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;AACJ,CAAC;AAvBD,8CAuBC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/ng-add/ng-update/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAS,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGzD;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAMlC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"update-cms-config.d.ts","sourceRoot":"","sources":["../../../../../schematics/ng-add/ng-update/v10.0/update-cms-config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGvD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAuBxC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|