@o3r/forms 12.3.0-prerelease.48 → 12.3.0-prerelease.49
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/forms",
|
|
3
|
-
"version": "12.3.0-prerelease.
|
|
3
|
+
"version": "12.3.0-prerelease.49",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,15 +11,15 @@
|
|
|
11
11
|
"otter-module"
|
|
12
12
|
],
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@ama-sdk/core": "^12.3.0-prerelease.
|
|
14
|
+
"@ama-sdk/core": "^12.3.0-prerelease.49",
|
|
15
15
|
"@angular-devkit/schematics": "^19.0.0",
|
|
16
16
|
"@angular/common": "^19.0.0",
|
|
17
17
|
"@angular/core": "^19.0.0",
|
|
18
18
|
"@angular/forms": "^19.0.0",
|
|
19
19
|
"@ngrx/entity": "^19.0.0",
|
|
20
20
|
"@ngrx/store": "^19.0.0",
|
|
21
|
-
"@o3r/core": "^12.3.0-prerelease.
|
|
22
|
-
"@o3r/schematics": "^12.3.0-prerelease.
|
|
21
|
+
"@o3r/core": "^12.3.0-prerelease.49",
|
|
22
|
+
"@o3r/schematics": "^12.3.0-prerelease.49",
|
|
23
23
|
"@schematics/angular": "^19.0.0",
|
|
24
24
|
"rxjs": "^7.8.1",
|
|
25
25
|
"ts-node": "~10.9.2"
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
+
"@o3r/schematics": "^12.3.0-prerelease.49",
|
|
39
40
|
"tslib": "^2.6.2"
|
|
40
41
|
},
|
|
41
42
|
"engines": {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AAMpC,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,UAAU,CAAC;AAkBlB;;;GAGG;AACH,eAAO,MAAM,KAAK,GAAI,SAAS,qBAAqB,SAA2C,CAAC"}
|
|
@@ -2,23 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
4
|
const path = require("node:path");
|
|
5
|
+
const schematics_1 = require("@o3r/schematics");
|
|
5
6
|
const packageJsonPath = path.resolve(__dirname, '..', '..', 'package.json');
|
|
6
|
-
const reportMissingSchematicsDep = (logger) => (reason) => {
|
|
7
|
-
logger.error(`[ERROR]: Adding @o3r/form has failed.
|
|
8
|
-
You need to install '@o3r/core' package to be able to use the form package. Please run 'ng add @o3r/core'.`);
|
|
9
|
-
throw reason;
|
|
10
|
-
};
|
|
11
7
|
/**
|
|
12
8
|
* Add Otter forms to an Angular Project
|
|
13
9
|
* @param options
|
|
14
10
|
*/
|
|
15
11
|
function ngAddFn(options) {
|
|
16
12
|
/* ng add rules */
|
|
17
|
-
return
|
|
18
|
-
|
|
19
|
-
return setupDependencies({
|
|
13
|
+
return (tree) => {
|
|
14
|
+
return (0, schematics_1.setupDependencies)({
|
|
20
15
|
projectName: options.projectName,
|
|
21
|
-
dependencies: getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
|
|
16
|
+
dependencies: (0, schematics_1.getPackageInstallConfig)(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
|
|
22
17
|
});
|
|
23
18
|
};
|
|
24
19
|
}
|
|
@@ -26,9 +21,6 @@ function ngAddFn(options) {
|
|
|
26
21
|
* Add Otter forms to an Angular Project
|
|
27
22
|
* @param options
|
|
28
23
|
*/
|
|
29
|
-
const ngAdd = (options) =>
|
|
30
|
-
const { createOtterSchematic } = await Promise.resolve().then(() => require('@o3r/schematics')).catch(reportMissingSchematicsDep(logger));
|
|
31
|
-
return createOtterSchematic(ngAddFn)(options);
|
|
32
|
-
};
|
|
24
|
+
const ngAdd = (options) => (0, schematics_1.createOtterSchematic)(ngAddFn)(options);
|
|
33
25
|
exports.ngAdd = ngAdd;
|
|
34
26
|
//# sourceMappingURL=index.js.map
|