@o3r/forms 10.2.0-prerelease.14 → 10.2.0-prerelease.15
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": "10.2.0-prerelease.
|
|
3
|
+
"version": "10.2.0-prerelease.15",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
"otter-module"
|
|
12
12
|
],
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"@ama-sdk/core": "^10.2.0-prerelease.
|
|
14
|
+
"@ama-sdk/core": "^10.2.0-prerelease.15",
|
|
15
15
|
"@angular/common": "~17.2.0",
|
|
16
16
|
"@angular/core": "~17.2.0",
|
|
17
17
|
"@angular/forms": "~17.2.0",
|
|
18
18
|
"@ngrx/entity": "~17.1.0",
|
|
19
19
|
"@ngrx/store": "~17.1.0",
|
|
20
|
-
"@o3r/core": "^10.2.0-prerelease.
|
|
21
|
-
"@o3r/schematics": "^10.2.0-prerelease.
|
|
20
|
+
"@o3r/core": "^10.2.0-prerelease.15",
|
|
21
|
+
"@o3r/schematics": "^10.2.0-prerelease.15",
|
|
22
22
|
"rxjs": "^7.8.1"
|
|
23
23
|
},
|
|
24
24
|
"peerDependenciesMeta": {
|
|
@@ -2,6 +2,7 @@ import type { Rule } from '@angular-devkit/schematics';
|
|
|
2
2
|
import type { NgAddSchematicsSchema } from './schema';
|
|
3
3
|
/**
|
|
4
4
|
* Add Otter forms to an Angular Project
|
|
5
|
+
* @param options
|
|
5
6
|
*/
|
|
6
7
|
export declare const ngAdd: (options: NgAddSchematicsSchema) => Rule;
|
|
7
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,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AA0BtD;;;GAGG;AACH,eAAO,MAAM,KAAK,YAAa,qBAAqB,KAAG,IAGtD,CAAC"}
|
|
@@ -1,24 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngAdd = void 0;
|
|
4
|
-
const schematics_1 = require("@o3r/schematics");
|
|
5
4
|
const path = require("node:path");
|
|
6
5
|
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
|
+
};
|
|
7
11
|
/**
|
|
8
12
|
* Add Otter forms to an Angular Project
|
|
9
13
|
* @param options
|
|
10
14
|
*/
|
|
11
15
|
function ngAddFn(options) {
|
|
12
16
|
/* ng add rules */
|
|
13
|
-
return (tree) => {
|
|
14
|
-
|
|
17
|
+
return async (tree) => {
|
|
18
|
+
const { getPackageInstallConfig, setupDependencies } = await Promise.resolve().then(() => require('@o3r/schematics'));
|
|
19
|
+
return setupDependencies({
|
|
15
20
|
projectName: options.projectName,
|
|
16
|
-
dependencies:
|
|
21
|
+
dependencies: getPackageInstallConfig(packageJsonPath, tree, options.projectName, false, !!options.exactO3rVersion)
|
|
17
22
|
});
|
|
18
23
|
};
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* Add Otter forms to an Angular Project
|
|
27
|
+
* @param options
|
|
22
28
|
*/
|
|
23
|
-
|
|
29
|
+
const ngAdd = (options) => async (_, { logger }) => {
|
|
30
|
+
const { createSchematicWithMetricsIfInstalled } = await Promise.resolve().then(() => require('@o3r/schematics')).catch(reportMissingSchematicsDep(logger));
|
|
31
|
+
return createSchematicWithMetricsIfInstalled(ngAddFn)(options);
|
|
32
|
+
};
|
|
33
|
+
exports.ngAdd = ngAdd;
|
|
24
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../schematics/ng-add/index.ts"],"names":[],"mappings":";;;AAEA,kCAAkC;AAElC,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,CAAC,CAAC;AAE5E,MAAM,0BAA0B,GAAG,CAAC,MAA2C,EAAE,EAAE,CAAC,CAAC,MAAW,EAAE,EAAE;IAClG,MAAM,CAAC,KAAK,CAAC;2GAC4F,CAAC,CAAC;IAC3G,MAAM,MAAM,CAAC;AACf,CAAC,CAAC;AAEF;;;GAGG;AACH,SAAS,OAAO,CAAC,OAA8B;IAC7C,kBAAkB;IAClB,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE;QACpB,MAAM,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,GAAG,2CAAa,iBAAiB,EAAC,CAAC;QACvF,OAAO,iBAAiB,CAAC;YACvB,WAAW,EAAE,OAAO,CAAC,WAAW;YAChC,YAAY,EAAE,uBAAuB,CAAC,eAAe,EAAE,IAAI,EAAE,OAAO,CAAC,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC,OAAO,CAAC,eAAe,CAAC;SACpH,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED;;;GAGG;AACI,MAAM,KAAK,GAAG,CAAC,OAA8B,EAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE;IACrF,MAAM,EAAE,qCAAqC,EAAE,GAAG,MAAM,qCAAO,iBAAiB,GAAE,KAAK,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC;IAC5H,OAAO,qCAAqC,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;AACjE,CAAC,CAAC;AAHW,QAAA,KAAK,SAGhB"}
|