@o3r/application 12.5.0-prerelease.3 → 12.5.0-prerelease.30
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@o3r/application",
|
|
3
|
-
"version": "12.5.0-prerelease.
|
|
3
|
+
"version": "12.5.0-prerelease.30",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -26,14 +26,15 @@
|
|
|
26
26
|
"@angular-devkit/schematics": "^19.0.0",
|
|
27
27
|
"@angular/common": "^19.0.0",
|
|
28
28
|
"@angular/core": "^19.0.0",
|
|
29
|
-
"@o3r/core": "^12.5.0-prerelease.
|
|
30
|
-
"@o3r/logger": "^12.5.0-prerelease.
|
|
31
|
-
"@o3r/routing": "^12.5.0-prerelease.
|
|
32
|
-
"@o3r/schematics": "^12.5.0-prerelease.
|
|
33
|
-
"@o3r/testing": "^12.5.0-prerelease.
|
|
29
|
+
"@o3r/core": "^12.5.0-prerelease.30",
|
|
30
|
+
"@o3r/logger": "^12.5.0-prerelease.30",
|
|
31
|
+
"@o3r/routing": "^12.5.0-prerelease.30",
|
|
32
|
+
"@o3r/schematics": "^12.5.0-prerelease.30",
|
|
33
|
+
"@o3r/testing": "^12.5.0-prerelease.30",
|
|
34
34
|
"@schematics/angular": "^19.0.0",
|
|
35
35
|
"rxjs": "^7.8.1",
|
|
36
36
|
"ts-node": "~10.9.2",
|
|
37
|
+
"type-fest": "^4.30.1",
|
|
37
38
|
"typescript": "^5.5.4"
|
|
38
39
|
},
|
|
39
40
|
"peerDependenciesMeta": {
|
|
@@ -46,12 +47,15 @@
|
|
|
46
47
|
"@o3r/testing": {
|
|
47
48
|
"optional": true
|
|
48
49
|
},
|
|
50
|
+
"type-fest": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
49
53
|
"typescript": {
|
|
50
54
|
"optional": true
|
|
51
55
|
}
|
|
52
56
|
},
|
|
53
57
|
"dependencies": {
|
|
54
|
-
"@o3r/schematics": "^12.5.0-prerelease.
|
|
58
|
+
"@o3r/schematics": "^12.5.0-prerelease.30",
|
|
55
59
|
"tslib": "^2.6.2"
|
|
56
60
|
},
|
|
57
61
|
"engines": {
|
|
@@ -164,6 +164,26 @@
|
|
|
164
164
|
],
|
|
165
165
|
"description": "Enum collection type of the value type"
|
|
166
166
|
},
|
|
167
|
+
"choices": {
|
|
168
|
+
"type": "array",
|
|
169
|
+
"description": "Array of object to define the choices for a property",
|
|
170
|
+
"minItems": 1,
|
|
171
|
+
"items": {
|
|
172
|
+
"type": "object",
|
|
173
|
+
"required": [
|
|
174
|
+
"key",
|
|
175
|
+
"title"
|
|
176
|
+
],
|
|
177
|
+
"properties": {
|
|
178
|
+
"key": {
|
|
179
|
+
"type": "string"
|
|
180
|
+
},
|
|
181
|
+
"title": {
|
|
182
|
+
"type": "string"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
},
|
|
167
187
|
"enumProperty": {
|
|
168
188
|
"type": "object",
|
|
169
189
|
"description": "Type of the property (enum)",
|
|
@@ -182,24 +202,7 @@
|
|
|
182
202
|
"$ref": "#/definitions/propertyCollectionType"
|
|
183
203
|
},
|
|
184
204
|
"choices": {
|
|
185
|
-
"
|
|
186
|
-
"description": "Array of object to define the choices for an ENUM valueType",
|
|
187
|
-
"minItems": 1,
|
|
188
|
-
"items": {
|
|
189
|
-
"type": "object",
|
|
190
|
-
"required": [
|
|
191
|
-
"key",
|
|
192
|
-
"title"
|
|
193
|
-
],
|
|
194
|
-
"properties": {
|
|
195
|
-
"key": {
|
|
196
|
-
"type": "string"
|
|
197
|
-
},
|
|
198
|
-
"title": {
|
|
199
|
-
"type": "string"
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|
|
205
|
+
"$ref": "#/definitions/choices"
|
|
203
206
|
},
|
|
204
207
|
"defaultValue": {
|
|
205
208
|
"type": [
|
|
@@ -269,6 +272,9 @@
|
|
|
269
272
|
"collectionType": {
|
|
270
273
|
"$ref": "#/definitions/propertyCollectionType"
|
|
271
274
|
},
|
|
275
|
+
"choices": {
|
|
276
|
+
"$ref": "#/definitions/choices"
|
|
277
|
+
},
|
|
272
278
|
"defaultValue": {
|
|
273
279
|
"type": [
|
|
274
280
|
"string",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAwBpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAyHlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
|
|
@@ -6,6 +6,18 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
6
6
|
const schematics_2 = require("@o3r/schematics");
|
|
7
7
|
const utility_1 = require("@schematics/angular/utility");
|
|
8
8
|
const devtools_registration_1 = require("./helpers/devtools-registration");
|
|
9
|
+
/**
|
|
10
|
+
* List of external dependencies to be added to the project as peer dependencies
|
|
11
|
+
*/
|
|
12
|
+
const dependenciesToInstall = [
|
|
13
|
+
'@angular/common',
|
|
14
|
+
'@angular/core',
|
|
15
|
+
'rxjs'
|
|
16
|
+
];
|
|
17
|
+
/**
|
|
18
|
+
* List of external dependencies to be added to the project as dev dependencies
|
|
19
|
+
*/
|
|
20
|
+
const devDependenciesToInstall = [];
|
|
9
21
|
/**
|
|
10
22
|
* Add Otter application to an Angular Project
|
|
11
23
|
* @param options The options to pass to ng-add execution
|
|
@@ -55,11 +67,20 @@ function ngAddFn(options) {
|
|
|
55
67
|
};
|
|
56
68
|
return acc;
|
|
57
69
|
}, (0, schematics_2.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion));
|
|
70
|
+
const projectDirectory = workspaceProject?.root || '.';
|
|
71
|
+
const projectPackageJson = tree.readJson(path.posix.join(projectDirectory, 'package.json'));
|
|
72
|
+
const externalDependenciesInfo = (0, schematics_2.getExternalDependenciesInfo)({
|
|
73
|
+
devDependenciesToInstall,
|
|
74
|
+
dependenciesToInstall,
|
|
75
|
+
projectType: workspaceProject?.projectType,
|
|
76
|
+
o3rPackageJsonPath: packageJsonPath,
|
|
77
|
+
projectPackageJson
|
|
78
|
+
}, context.logger);
|
|
58
79
|
const registerDevtoolRule = (0, devtools_registration_1.registerDevtools)(options);
|
|
59
80
|
return () => (0, schematics_1.chain)([
|
|
60
81
|
(0, schematics_2.setupDependencies)({
|
|
61
82
|
projectName: options.projectName,
|
|
62
|
-
dependencies,
|
|
83
|
+
dependencies: { ...dependencies, ...externalDependenciesInfo },
|
|
63
84
|
ngAddToRun: depsInfo.o3rPeerDeps
|
|
64
85
|
}),
|
|
65
86
|
addAngularAnimationPreferences,
|