@o3r/core 11.6.0-prerelease.0 → 11.6.0-prerelease.10
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/builders/app-version/index.d.ts.map +1 -1
- package/builders/app-version/index.js +1 -1
- package/builders/app-version/schema.d.ts.map +1 -1
- package/builders/lib-build/index.d.ts +1 -2
- package/builders/lib-build/index.d.ts.map +1 -1
- package/builders/lib-build/index.js +10 -10
- package/builders/lib-build/schema.d.ts +1 -2
- package/builders/lib-build/schema.d.ts.map +1 -1
- package/builders/multi-watcher/index.d.ts.map +1 -1
- package/builders/multi-watcher/index.js +1 -0
- package/builders/multi-watcher/schema.d.ts.map +1 -1
- package/builders/ngc/index.d.ts.map +1 -1
- package/builders/ngc/index.js +4 -5
- package/builders/ngc/schema.d.ts.map +1 -1
- package/builders/pattern-replacement/index.d.ts.map +1 -1
- package/builders/pattern-replacement/index.js +2 -3
- package/builders/pattern-replacement/schema.d.ts.map +1 -1
- package/builders/run-script/index.d.ts.map +1 -1
- package/builders/run-script/index.js +3 -3
- package/builders/utils.d.ts.map +1 -1
- package/core/application/runtime.d.ts.map +1 -1
- package/core/common/interface-utils.d.ts.map +1 -1
- package/core/interfaces/configuration.d.ts.map +1 -1
- package/core/interfaces/context.d.ts.map +1 -1
- package/core/metadata/component.decorator.d.ts.map +1 -1
- package/core/metadata/index.d.ts +1 -1
- package/core/metadata/index.d.ts.map +1 -1
- package/esm2022/core/application/build-properties.mjs +2 -2
- package/esm2022/core/application/index.mjs +1 -1
- package/esm2022/core/application/runtime.mjs +1 -1
- package/esm2022/core/common/interface-utils.mjs +1 -1
- package/esm2022/core/devkit/devtools.interface.mjs +1 -1
- package/esm2022/core/interfaces/configuration.mjs +1 -1
- package/esm2022/core/interfaces/context.mjs +1 -2
- package/esm2022/core/metadata/component.decorator.mjs +2 -2
- package/esm2022/core/metadata/index.mjs +2 -2
- package/esm2022/messages/common-message.interface.mjs +1 -1
- package/esm2022/messages/index.mjs +1 -1
- package/esm2022/messages/message.helpers.mjs +7 -5
- package/esm2022/public_api.mjs +2 -2
- package/esm2022/store/async/async-entity.adapter.mjs +3 -3
- package/esm2022/store/async/async.adapter.mjs +8 -7
- package/esm2022/store/async/async.helpers.mjs +1 -1
- package/esm2022/store/async/async.interfaces.mjs +1 -1
- package/esm2022/store/async/async.operators.mjs +5 -5
- package/esm2022/store/async/async.props.mjs +3 -4
- package/esm2022/store/async/async.serializer.mjs +2 -2
- package/esm2022/store/async/index.mjs +4 -4
- package/esm2022/store/types.mjs +1 -1
- package/esm2022/utils/debug/debug.helper.mjs +1 -2
- package/esm2022/utils/deep-fill/deep-fill.mjs +3 -4
- package/esm2022/utils/rendering/rendering.helpers.mjs +3 -4
- package/fesm2022/o3r-core.mjs +48 -51
- package/fesm2022/o3r-core.mjs.map +1 -1
- package/messages/common-message.interface.d.ts.map +1 -1
- package/messages/message.helpers.d.ts.map +1 -1
- package/package.json +21 -14
- package/public_api.d.ts +1 -1
- package/public_api.d.ts.map +1 -1
- package/schematics/add-modules/index.d.ts.map +1 -1
- package/schematics/add-modules/index.js +2 -2
- package/schematics/add-modules/schema.d.ts.map +1 -1
- package/schematics/component/container/index.d.ts.map +1 -1
- package/schematics/component/container/index.js +13 -11
- package/schematics/component/container/schema.d.ts.map +1 -1
- package/schematics/component/index.d.ts.map +1 -1
- package/schematics/component/index.js +1 -3
- package/schematics/component/presenter/index.d.ts.map +1 -1
- package/schematics/component/presenter/index.js +13 -12
- package/schematics/component/presenter/schema.d.ts.map +1 -1
- package/schematics/component/schema.d.ts.map +1 -1
- package/schematics/component/structures.types.d.ts +3 -3
- package/schematics/component/structures.types.d.ts.map +1 -1
- package/schematics/component/structures.types.js +2 -0
- package/schematics/context-to-component/index.d.ts +0 -1
- package/schematics/context-to-component/index.d.ts.map +1 -1
- package/schematics/context-to-component/index.js +1 -2
- package/schematics/context-to-component/schema.d.ts.map +1 -1
- package/schematics/convert-component/index.d.ts +0 -1
- package/schematics/convert-component/index.d.ts.map +1 -1
- package/schematics/convert-component/index.js +0 -2
- package/schematics/convert-component/schema.d.ts.map +1 -1
- package/schematics/ng-add/component-decorator/index.d.ts.map +1 -1
- package/schematics/ng-add/component-decorator/index.js +4 -4
- package/schematics/ng-add/index.d.ts.map +1 -1
- package/schematics/ng-add/index.js +4 -5
- package/schematics/ng-add/project-setup/index.d.ts.map +1 -1
- package/schematics/ng-add/project-setup/index.js +5 -5
- package/schematics/ng-add/schema.d.ts.map +1 -1
- package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.d.ts.map +1 -1
- package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.js +40 -41
- package/schematics/ng-add/updates-for-v8/generators/update-generators-names.d.ts.map +1 -1
- package/schematics/ng-add/updates-for-v8/generators/update-generators-names.js +25 -27
- package/schematics/ng-add/utils/linter/index.d.ts +8 -3
- package/schematics/ng-add/utils/linter/index.d.ts.map +1 -1
- package/schematics/ng-add/utils/linter/index.js +11 -5
- package/schematics/ng-add-create/index.d.ts +0 -2
- package/schematics/ng-add-create/index.d.ts.map +1 -1
- package/schematics/ng-add-create/index.js +9 -15
- package/schematics/ng-add-create/schema.d.ts.map +1 -1
- package/schematics/ng-update/index.d.ts.map +1 -1
- package/schematics/ng-update/index.js +5 -3
- package/schematics/ng-update/v10.0/configuration.d.ts.map +1 -1
- package/schematics/ng-update/v10.0/configuration.js +2 -2
- package/schematics/ng-update/v8.2/import-map.d.ts.map +1 -1
- package/schematics/page/index.d.ts.map +1 -1
- package/schematics/page/index.js +16 -16
- package/schematics/page/schema.d.ts.map +1 -1
- package/schematics/renovate/index.d.ts.map +1 -1
- package/schematics/renovate/schema.d.ts.map +1 -1
- package/schematics/rule-factories/additional-modules/index.d.ts.map +1 -1
- package/schematics/rule-factories/additional-modules/index.js +3 -3
- package/schematics/rule-factories/component/analytics.d.ts.map +1 -1
- package/schematics/rule-factories/component/common.d.ts +0 -1
- package/schematics/rule-factories/component/common.d.ts.map +1 -1
- package/schematics/rule-factories/component/common.js +18 -15
- package/schematics/rule-factories/component/configuration.d.ts.map +1 -1
- package/schematics/rule-factories/component/context.d.ts.map +1 -1
- package/schematics/rule-factories/component/design-token.d.ts.map +1 -1
- package/schematics/rule-factories/component/fixture.d.ts.map +1 -1
- package/schematics/rule-factories/component/localization.d.ts.map +1 -1
- package/schematics/rule-factories/component/rules-engine.d.ts.map +1 -1
- package/schematics/rule-factories/component/theming.d.ts.map +1 -1
- package/schematics/rule-factories/customization-environment/index.d.ts.map +1 -1
- package/schematics/rule-factories/customization-environment/index.js +5 -7
- package/schematics/rule-factories/index.d.ts +1 -1
- package/schematics/rule-factories/index.d.ts.map +1 -1
- package/schematics/rule-factories/index.js +1 -1
- package/schematics/rule-factories/o3r-basic-updates/index.d.ts +0 -1
- package/schematics/rule-factories/o3r-basic-updates/index.d.ts.map +1 -1
- package/schematics/rule-factories/o3r-basic-updates/index.js +7 -8
- package/schematics/rule-factories/otter-environment/index.d.ts +1 -2
- package/schematics/rule-factories/otter-environment/index.d.ts.map +1 -1
- package/schematics/rule-factories/otter-environment/index.js +16 -18
- package/schematics/rule-factories/store/index.d.ts +3 -4
- package/schematics/rule-factories/store/index.d.ts.map +1 -1
- package/schematics/rule-factories/store/index.js +7 -8
- package/schematics/schematics-update/index.d.ts.map +1 -1
- package/schematics/schematics-update/index.js +3 -3
- package/schematics/schematics-update/schema.d.ts.map +1 -1
- package/schematics/service/index.d.ts.map +1 -1
- package/schematics/service/index.js +3 -3
- package/schematics/service/schema.d.ts.map +1 -1
- package/schematics/shared/presets/all.preset.d.ts.map +1 -1
- package/schematics/shared/presets/all.preset.js +2 -3
- package/schematics/shared/presets/basic.preset.d.ts.map +1 -1
- package/schematics/shared/presets/cms.preset.d.ts +0 -1
- package/schematics/shared/presets/cms.preset.d.ts.map +1 -1
- package/schematics/shared/presets/cms.preset.js +1 -3
- package/schematics/shared/presets/external.preset.d.ts.map +1 -1
- package/schematics/shared/presets/external.preset.js +1 -1
- package/schematics/shared/presets/helpers.d.ts.map +1 -1
- package/schematics/shared/presets/helpers.js +10 -8
- package/schematics/shared/presets/index.d.ts +1 -1
- package/schematics/shared/presets/index.d.ts.map +1 -1
- package/schematics/shared/presets/index.js +1 -1
- package/schematics/shared/presets/preset.interface.d.ts +1 -1
- package/schematics/shared/presets/preset.interface.d.ts.map +1 -1
- package/schematics/show-modules/index.d.ts.map +1 -1
- package/schematics/show-modules/schema.d.ts.map +1 -1
- package/schematics/store/common/helpers.d.ts.map +1 -1
- package/schematics/store/common/schema.d.ts.map +1 -1
- package/schematics/store/entity-async/index.d.ts.map +1 -1
- package/schematics/store/entity-async/index.js +3 -4
- package/schematics/store/entity-async/schema.d.ts.map +1 -1
- package/schematics/store/entity-sync/index.d.ts.map +1 -1
- package/schematics/store/entity-sync/index.js +3 -4
- package/schematics/store/entity-sync/schema.d.ts.map +1 -1
- package/schematics/store/index.d.ts.map +1 -1
- package/schematics/store/index.js +10 -5
- package/schematics/store/schema.d.ts.map +1 -1
- package/schematics/store/simple-async/index.d.ts.map +1 -1
- package/schematics/store/simple-async/index.js +2 -3
- package/schematics/store/simple-async/schema.d.ts.map +1 -1
- package/schematics/store/simple-sync/index.d.ts.map +1 -1
- package/schematics/store/simple-sync/index.js +2 -4
- package/schematics/store/simple-sync/schema.d.ts.map +1 -1
- package/schematics/store-action/index.d.ts.map +1 -1
- package/schematics/store-action/index.js +26 -22
- package/schematics/store-action/schema.d.ts.map +1 -1
- package/store/async/async-entity.adapter.d.ts.map +1 -1
- package/store/async/async.adapter.d.ts.map +1 -1
- package/store/async/async.helpers.d.ts.map +1 -1
- package/store/async/async.interfaces.d.ts.map +1 -1
- package/store/async/async.operators.d.ts +1 -0
- package/store/async/async.operators.d.ts.map +1 -1
- package/store/async/async.props.d.ts.map +1 -1
- package/store/async/async.serializer.d.ts.map +1 -1
- package/store/async/index.d.ts +3 -3
- package/store/async/index.d.ts.map +1 -1
- package/store/types.d.ts +9 -7
- package/store/types.d.ts.map +1 -1
- package/utils/debug/debug.helper.d.ts.map +1 -1
- package/utils/deep-fill/deep-fill.d.ts.map +1 -1
- package/utils/rendering/rendering.helpers.d.ts +0 -1
- package/utils/rendering/rendering.helpers.d.ts.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/otter-environment/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/otter-environment/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AAsBpC;;;;;;;;;GASG;AACH,wBAAgB,6BAA6B,CAC3C,OAAO,EAAE;IACP,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,EACD,SAAS,EAAE,MAAM,GAChB,IAAI,CAqHN"}
|
|
@@ -1,27 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateOtterEnvironmentAdapter = updateOtterEnvironmentAdapter;
|
|
4
|
+
const node_path_1 = require("node:path");
|
|
4
5
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const schematics_2 = require("@o3r/schematics");
|
|
5
7
|
const index_1 = require("@schematics/angular/environments/index");
|
|
6
8
|
const ts = require("typescript");
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
+
const editTsConfigJson = (tree) => {
|
|
10
|
+
if (tree.exists('/tsconfig.json')) {
|
|
11
|
+
const tsConfig = ts.parseConfigFileTextToJson('/tsconfig.json', tree.readText('/tsconfig.json')).config;
|
|
12
|
+
if (tsConfig.compilerOptions?.noPropertyAccessFromIndexSignature) {
|
|
13
|
+
delete tsConfig.compilerOptions.noPropertyAccessFromIndexSignature;
|
|
14
|
+
}
|
|
15
|
+
tree.overwrite('/tsconfig.json', JSON.stringify(tsConfig, null, 2));
|
|
16
|
+
}
|
|
17
|
+
return tree;
|
|
18
|
+
};
|
|
9
19
|
/**
|
|
10
20
|
* Update Otter environment variable for schematics
|
|
11
21
|
* @param options @see RuleFactory.options
|
|
12
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
13
22
|
* @param options.projectName
|
|
14
23
|
* @param options.enableStorybook
|
|
15
24
|
* @param options.enableStyling
|
|
16
25
|
* @param options.enableAnalytics
|
|
17
26
|
* @param options.workingDirectory
|
|
18
|
-
* @param _rootPath
|
|
27
|
+
* @param _rootPath @see RuleFactory.rootPath
|
|
19
28
|
*/
|
|
20
29
|
function updateOtterEnvironmentAdapter(options, _rootPath) {
|
|
21
30
|
/**
|
|
22
31
|
* Add Configuration for schematics
|
|
23
32
|
* @param tree
|
|
24
|
-
* @param _context
|
|
25
33
|
* @param context
|
|
26
34
|
*/
|
|
27
35
|
const editAngularJson = (tree, context) => {
|
|
@@ -39,7 +47,7 @@ function updateOtterEnvironmentAdapter(options, _rootPath) {
|
|
|
39
47
|
if (path) {
|
|
40
48
|
workspaceProject.schematics[item] = {
|
|
41
49
|
path: node_path_1.posix.join(workspaceProject.root, path),
|
|
42
|
-
...
|
|
50
|
+
...workspaceProject.schematics[item]
|
|
43
51
|
};
|
|
44
52
|
}
|
|
45
53
|
});
|
|
@@ -56,7 +64,7 @@ function updateOtterEnvironmentAdapter(options, _rootPath) {
|
|
|
56
64
|
if (path) {
|
|
57
65
|
workspaceProject.schematics[item] = {
|
|
58
66
|
path: node_path_1.posix.join(workspaceProject.root, path),
|
|
59
|
-
...
|
|
67
|
+
...workspaceProject.schematics[item]
|
|
60
68
|
};
|
|
61
69
|
}
|
|
62
70
|
});
|
|
@@ -66,16 +74,6 @@ function updateOtterEnvironmentAdapter(options, _rootPath) {
|
|
|
66
74
|
tree.overwrite('/angular.json', JSON.stringify(workspace, null, 2));
|
|
67
75
|
return tree;
|
|
68
76
|
};
|
|
69
|
-
const editTsConfigJson = (tree) => {
|
|
70
|
-
if (tree.exists('/tsconfig.json')) {
|
|
71
|
-
const tsConfig = ts.parseConfigFileTextToJson('/tsconfig.json', tree.readText('/tsconfig.json')).config;
|
|
72
|
-
if (tsConfig.compilerOptions?.noPropertyAccessFromIndexSignature) {
|
|
73
|
-
delete tsConfig.compilerOptions.noPropertyAccessFromIndexSignature;
|
|
74
|
-
}
|
|
75
|
-
tree.overwrite('/tsconfig.json', JSON.stringify(tsConfig, null, 2));
|
|
76
|
-
}
|
|
77
|
-
return tree;
|
|
78
|
-
};
|
|
79
77
|
/**
|
|
80
78
|
* Use Angular CLI generator to create environment files
|
|
81
79
|
* @param tree
|
|
@@ -117,7 +115,7 @@ function updateOtterEnvironmentAdapter(options, _rootPath) {
|
|
|
117
115
|
const envDefaultFilePath = node_path_1.posix.join(envBasePath, 'environment.ts');
|
|
118
116
|
const addProductionBoolean = (envFilePath, value) => {
|
|
119
117
|
let envContent = tree.readText(envFilePath);
|
|
120
|
-
if (!/production['
|
|
118
|
+
if (!/production["']?:\s*(true|false)/.test(envContent)) {
|
|
121
119
|
envContent = envContent.replace(/(const environment = {)/, `$1\n production: ${String(value)},\n`);
|
|
122
120
|
tree.overwrite(envFilePath, envContent);
|
|
123
121
|
}
|
|
@@ -4,12 +4,11 @@ import { WorkspaceProject } from '@o3r/schematics';
|
|
|
4
4
|
/**
|
|
5
5
|
* Add Redux Store support
|
|
6
6
|
* @param options @see RuleFactory.options
|
|
7
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
8
7
|
* @param options.projectName
|
|
9
|
-
* @param options.workingDirectory
|
|
10
|
-
* @param projectType
|
|
11
|
-
* @param options.dependenciesSetupConfig
|
|
12
8
|
* @param options.workingDirector
|
|
9
|
+
* @param options.dependenciesSetupConfig
|
|
10
|
+
* @param options.exactO3rVersion
|
|
11
|
+
* @param projectType
|
|
13
12
|
*/
|
|
14
13
|
export declare function updateStore(options: {
|
|
15
14
|
projectName?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/rule-factories/store/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AACpC,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAoBzB;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CACzB,OAAO,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,eAAe,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAAC,uBAAuB,EAAE,wBAAwB,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAA;CAAE,EACjK,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,GAAG,IAAI,CAmIrD"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.updateStore = updateStore;
|
|
4
|
+
const fs = require("node:fs");
|
|
5
|
+
const path = require("node:path");
|
|
4
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
7
|
const schematics_2 = require("@o3r/schematics");
|
|
6
8
|
const utility_1 = require("@schematics/angular/utility");
|
|
7
9
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
8
|
-
const path = require("node:path");
|
|
9
10
|
const ts = require("typescript");
|
|
10
|
-
const fs = require("node:fs");
|
|
11
11
|
const coreSchematicsFolder = path.resolve(__dirname, '..', '..');
|
|
12
12
|
const corePackageJsonPath = path.resolve(coreSchematicsFolder, '..', 'package.json');
|
|
13
13
|
const corePackageJsonContent = JSON.parse(fs.readFileSync(corePackageJsonPath, { encoding: 'utf8' }));
|
|
@@ -20,17 +20,16 @@ const ngrxRouterStoreDevToolDep = '@ngrx/store-devtools';
|
|
|
20
20
|
/**
|
|
21
21
|
* Add Redux Store support
|
|
22
22
|
* @param options @see RuleFactory.options
|
|
23
|
-
* @param rootPath @see RuleFactory.rootPath
|
|
24
23
|
* @param options.projectName
|
|
25
|
-
* @param options.workingDirectory
|
|
26
|
-
* @param projectType
|
|
27
|
-
* @param options.dependenciesSetupConfig
|
|
28
24
|
* @param options.workingDirector
|
|
25
|
+
* @param options.dependenciesSetupConfig
|
|
26
|
+
* @param options.exactO3rVersion
|
|
27
|
+
* @param projectType
|
|
29
28
|
*/
|
|
30
29
|
function updateStore(options, projectType) {
|
|
31
30
|
const addStoreModules = (tree) => {
|
|
32
31
|
const workspaceConfig = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
33
|
-
const workspaceProject = options.projectName && workspaceConfig?.projects?.[options.projectName] || undefined;
|
|
32
|
+
const workspaceProject = (options.projectName && workspaceConfig?.projects?.[options.projectName]) || undefined;
|
|
34
33
|
const storeSyncPackageName = '@o3r/store-sync';
|
|
35
34
|
options.dependenciesSetupConfig.dependencies[storeSyncPackageName] = {
|
|
36
35
|
inManifest: [{
|
|
@@ -48,7 +47,7 @@ function updateStore(options, projectType) {
|
|
|
48
47
|
*/
|
|
49
48
|
const updatePackageJson = (tree, context) => {
|
|
50
49
|
const workspaceConfig = (0, schematics_2.getWorkspaceConfig)(tree);
|
|
51
|
-
const workspaceProject = options.projectName && workspaceConfig?.projects?.[options.projectName] || undefined;
|
|
50
|
+
const workspaceProject = (options.projectName && workspaceConfig?.projects?.[options.projectName]) || undefined;
|
|
52
51
|
const appDeps = [ngrxEffectsDep, ngrxRouterStore, ngrxRouterStoreDevToolDep];
|
|
53
52
|
const corePeerDeps = [ngrxEntityDep, ngrxStoreDep];
|
|
54
53
|
const dependenciesList = projectType === 'application' ? [...corePeerDeps, ...appDeps] : [...corePeerDeps];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/schematics-update/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/schematics-update/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,IAAI,EAGL,MAAM,4BAA4B,CAAC;AASpC,OAAO,EACL,gCAAgC,EACjC,MAAM,UAAU,CAAC;AAoElB;;;GAGG;AACH,eAAO,MAAM,gBAAgB,qDAA4D,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateUpdate = void 0;
|
|
4
|
+
const node_fs_1 = require("node:fs");
|
|
5
|
+
const path = require("node:path");
|
|
4
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
7
|
const schematics_2 = require("@o3r/schematics");
|
|
6
|
-
const path = require("node:path");
|
|
7
8
|
const otter_environment_1 = require("../rule-factories/otter-environment");
|
|
8
|
-
const node_fs_1 = require("node:fs");
|
|
9
9
|
/**
|
|
10
10
|
* add a new ngUpdate function
|
|
11
11
|
* @param options
|
|
@@ -14,7 +14,7 @@ function ngGenerateUpdateFn(options) {
|
|
|
14
14
|
const generateFiles = (tree, _context) => {
|
|
15
15
|
const destination = (0, schematics_2.getDestinationPath)('@o3r/core:schematics-update', options.path, tree, options.projectName);
|
|
16
16
|
const sanitizedVersion = options.version.replace('.', '_');
|
|
17
|
-
const baseVersion = `${options.version}${options.version.
|
|
17
|
+
const baseVersion = `${options.version}${options.version.includes('.') ? '' : '.0'}.0-alpha.0`;
|
|
18
18
|
const updateFunction = `updateV${sanitizedVersion}`;
|
|
19
19
|
const barrelPath = path.join(destination, 'schematics', 'ng-update', 'index.ts');
|
|
20
20
|
let migrationFilePath = JSON.parse((0, node_fs_1.readFileSync)(path.resolve(destination, '..', 'package.json'), { encoding: 'utf8' }))['ng-update'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/schematics-update/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/schematics-update/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,gCAAiC,SAAQ,qBAAqB;IAC7E,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,oCAAoC;IACpC,OAAO,EAAE,MAAM,CAAC;IAEhB,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/service/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/service/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAWpC,OAAO,EACL,iCAAiC,EAClC,MAAM,UAAU,CAAC;AAkGlB;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sDAA6D,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateService = void 0;
|
|
4
|
+
const path = require("node:path");
|
|
4
5
|
const core_1 = require("@angular-devkit/core");
|
|
5
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
7
|
const schematics_2 = require("@o3r/schematics");
|
|
7
|
-
const path = require("node:path");
|
|
8
8
|
/**
|
|
9
9
|
* Add a Service to an Otter project
|
|
10
10
|
* @param options
|
|
@@ -25,9 +25,9 @@ function ngGenerateServiceFn(options) {
|
|
|
25
25
|
tree.overwrite(barrelPath, currentServiceIndex);
|
|
26
26
|
}
|
|
27
27
|
const barrelJasminePath = path.join(destination, name, 'fixture', 'jasmine', 'index.ts');
|
|
28
|
-
const currentFixtureJasmineIndex = tree.exists(barrelJasminePath) && tree.read(barrelJasminePath)?.toString() || '';
|
|
28
|
+
const currentFixtureJasmineIndex = (tree.exists(barrelJasminePath) && tree.read(barrelJasminePath)?.toString()) || '';
|
|
29
29
|
const barrelJestPath = path.join(destination, name, 'fixture', 'jest', 'index.ts');
|
|
30
|
-
const currentFixtureJestIndex = tree.exists(barrelJestPath) && tree.read(barrelJestPath)?.toString() || '';
|
|
30
|
+
const currentFixtureJestIndex = (tree.exists(barrelJestPath) && tree.read(barrelJestPath)?.toString()) || '';
|
|
31
31
|
const inServiceBarrelPath = path.join(destination, name, 'index.ts');
|
|
32
32
|
if (tree.exists(inServiceBarrelPath)) {
|
|
33
33
|
const currentServiceIndexBuffer = tree.read(inServiceBarrelPath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/service/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/service/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,iCAAkC,SAAQ,qBAAqB;IAC9E,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IAEb,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IAEpB,wCAAwC;IACxC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/all.preset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"all.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/all.preset.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa;;;EA6B/C"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.allPreset = allPreset;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const helpers_1 = require("./helpers");
|
|
6
5
|
const schematics_2 = require("@o3r/schematics");
|
|
6
|
+
const helpers_1 = require("./helpers");
|
|
7
7
|
/**
|
|
8
8
|
* Preset Installing all the Otter modules
|
|
9
9
|
* @param options
|
|
@@ -17,7 +17,7 @@ function allPreset(options) {
|
|
|
17
17
|
'@o3r/configuration',
|
|
18
18
|
'@o3r/design',
|
|
19
19
|
'@o3r/dynamic-content',
|
|
20
|
-
'@o3r/eslint-config
|
|
20
|
+
'@o3r/eslint-config',
|
|
21
21
|
'@o3r/eslint-plugin',
|
|
22
22
|
'@o3r/forms',
|
|
23
23
|
'@o3r/localization',
|
|
@@ -31,7 +31,6 @@ function allPreset(options) {
|
|
|
31
31
|
return {
|
|
32
32
|
modules,
|
|
33
33
|
rule: (0, schematics_1.chain)([
|
|
34
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
35
34
|
(0, schematics_2.setupSchematicsParamsForProject)({ '*:ng-add': { enableMetadataExtract: true } }, options.projectName),
|
|
36
35
|
rule
|
|
37
36
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/basic.preset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"basic.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/basic.preset.ts"],"names":[],"mappings":"AAIA;;GAEG;AACH,wBAAgB,WAAW;;EAI1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cms.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/cms.preset.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cms.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/cms.preset.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EACV,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa;;;EAmB/C"}
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.cmsPreset = cmsPreset;
|
|
4
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const helpers_1 = require("./helpers");
|
|
6
5
|
const schematics_2 = require("@o3r/schematics");
|
|
6
|
+
const helpers_1 = require("./helpers");
|
|
7
7
|
/**
|
|
8
8
|
* Preset Installing the minimum modules to fully administrated the application via CMS
|
|
9
|
-
*
|
|
10
9
|
* @param options
|
|
11
10
|
*/
|
|
12
11
|
function cmsPreset(options) {
|
|
@@ -22,7 +21,6 @@ function cmsPreset(options) {
|
|
|
22
21
|
return {
|
|
23
22
|
modules,
|
|
24
23
|
rule: (0, schematics_1.chain)([
|
|
25
|
-
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
26
24
|
(0, schematics_2.setupSchematicsParamsForProject)({ '*:ng-add': { enableMetadataExtract: true } }, options.projectName),
|
|
27
25
|
rule
|
|
28
26
|
])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/external.preset.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"external.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/external.preset.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,IAAI,EACL,MAAM,4BAA4B,CAAC;AAUpC,OAAO,KAAK,EACV,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,GAAG,aAAa,CAanH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getExternalPreset = getExternalPreset;
|
|
4
|
-
const helpers_1 = require("./helpers");
|
|
5
4
|
const schematics_1 = require("@o3r/schematics");
|
|
5
|
+
const helpers_1 = require("./helpers");
|
|
6
6
|
/**
|
|
7
7
|
* Generate the Preset runner for external presets
|
|
8
8
|
* @param externalPresetLabel
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/helpers.ts"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,IAAI,EACV,MAAM,4BAA4B,CAAC;AAUpC,OAAO,KAAK,EACV,aAAa,EACd,MAAM,oBAAoB,CAAC;AAE5B;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,aAAkB,GAAG,IAAI,CAkCrG"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.defaultPresetRuleFactory = defaultPresetRuleFactory;
|
|
4
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
-
const schematics_2 = require("@o3r/schematics");
|
|
6
4
|
const fs = require("node:fs");
|
|
7
5
|
const path = require("node:path");
|
|
6
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
7
|
+
const schematics_2 = require("@o3r/schematics");
|
|
8
8
|
/**
|
|
9
9
|
* Default implementation of the preset rule
|
|
10
10
|
* @param moduleToInstall
|
|
@@ -14,7 +14,7 @@ function defaultPresetRuleFactory(moduleToInstall, options = {}) {
|
|
|
14
14
|
return (tree, _context) => {
|
|
15
15
|
const corePackageJsonContent = JSON.parse(fs.readFileSync(path.resolve(__dirname, '..', '..', '..', 'package.json'), { encoding: 'utf8' }));
|
|
16
16
|
const workspaceProject = options.projectName ? (0, schematics_2.getWorkspaceConfig)(tree)?.projects[options.projectName] : undefined;
|
|
17
|
-
if (
|
|
17
|
+
if (moduleToInstall.length === 0) {
|
|
18
18
|
return tree;
|
|
19
19
|
}
|
|
20
20
|
const dependencies = moduleToInstall.reduce((acc, dep) => {
|
|
@@ -33,11 +33,13 @@ function defaultPresetRuleFactory(moduleToInstall, options = {}) {
|
|
|
33
33
|
...dependencies
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
return options.dependenciesSetupConfig
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
36
|
+
return options.dependenciesSetupConfig
|
|
37
|
+
? schematics_1.noop
|
|
38
|
+
: (0, schematics_2.setupDependencies)({
|
|
39
|
+
projectName: options.projectName,
|
|
40
|
+
dependencies,
|
|
41
|
+
ngAddToRun: moduleToInstall
|
|
42
|
+
});
|
|
41
43
|
};
|
|
42
44
|
}
|
|
43
45
|
//# sourceMappingURL=helpers.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,OAAO,EACR,MAAM,oBAAoB,CAAC;AAE5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,OAIrB,CAAC"}
|
|
@@ -5,8 +5,8 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const all_preset_1 = require("./all.preset");
|
|
6
6
|
const basic_preset_1 = require("./basic.preset");
|
|
7
7
|
const cms_preset_1 = require("./cms.preset");
|
|
8
|
-
tslib_1.__exportStar(require("./preset.interface"), exports);
|
|
9
8
|
tslib_1.__exportStar(require("./external.preset"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./preset.interface"), exports);
|
|
10
10
|
exports.presets = {
|
|
11
11
|
basic: basic_preset_1.basicPreset,
|
|
12
12
|
cms: cms_preset_1.cmsPreset,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
import type { PresetNames } from '../../ng-add/schema';
|
|
3
2
|
import type { SchematicOptionObject, SetupDependenciesOptions } from '@o3r/schematics';
|
|
3
|
+
import type { PresetNames } from '../../ng-add/schema';
|
|
4
4
|
/** Options of the preset runner */
|
|
5
5
|
export interface PresetOptions {
|
|
6
6
|
/** Project name */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preset.interface.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/preset.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"preset.interface.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/preset.interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,IAAI,EACL,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAE7B,oCAAoC;AACpC,MAAM,WAAW,aAAa;IAC5B,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,oDAAoD;IACpD,cAAc,CAAC,EAAE,qBAAqB,CAAC;IAEvC,uDAAuD;IACvD,uBAAuB,CAAC,EAAE,wBAAwB,CAAC;IAEnD,8CAA8C;IAC9C,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,uCAAuC;AACvC,MAAM,WAAW,MAAM;IACrB,8CAA8C;IAC9C,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,4CAA4C;IAC5C,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,0DAA0D;AAC1D,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC;AAEjF,kBAAkB;AAClB,MAAM,MAAM,OAAO,GAAG;KAAG,CAAC,IAAI,WAAW,GAAG,aAAa;CAAE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/show-modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/show-modules/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EACL,MAAM,4BAA4B,CAAC;AAOpC,OAAO,EACL,6BAA6B,EAC9B,MAAM,UAAU,CAAC;AAUlB;;;GAGG;AACH,eAAO,MAAM,aAAa,kDAAyD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/show-modules/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/show-modules/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IAC1E,uDAAuD;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,mBAAmB,EAAE,OAAO,CAAC;CAC9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../schematics/store/common/helpers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../schematics/store/common/helpers.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,wBAAwB;IAEvC,uDAAuD;IACvD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,uCAAuC;IACvC,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,mDAAmD;IACnD,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,gDAAgD;IAChD,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,6CAA6C;IAC7C,MAAM,EAAE,OAAO,CAAC;IAEhB,6EAA6E;IAC7E,WAAW,EAAE,OAAO,CAAC;IAErB,gDAAgD;IAChD,cAAc,EAAE,MAAM,CAAC;IAEvB,oDAAoD;IACpD,gBAAgB,EAAE,MAAM,CAAC;IAEzB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,2BAA2B;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAE1B,0BAA0B;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,gBAAgB;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/common/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/common/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,qCAAsC,SAAQ,qBAAqB;IAClF,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,iBAAiB;IACjB,SAAS,EAAE,MAAM,CAAC;IAElB,kBAAkB;IAClB,UAAU,EAAE,MAAM,CAAC;IAEnB,wDAAwD;IACxD,SAAS,EAAE,MAAM,CAAC;IAElB,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-async/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-async/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAWpC,OAAO,EACL,0CAA0C,EAC3C,MAAM,UAAU,CAAC;AA0ElB;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+DAAsE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateEntityAsyncStore = void 0;
|
|
4
|
+
const path = require("node:path");
|
|
4
5
|
const core_1 = require("@angular-devkit/core");
|
|
5
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
7
|
const schematics_2 = require("@o3r/schematics");
|
|
7
|
-
const path = require("node:path");
|
|
8
8
|
/**
|
|
9
9
|
* Create an Otter friendly entity async store
|
|
10
10
|
* @param options
|
|
@@ -29,7 +29,7 @@ function ngGenerateEntityAsyncStoreFn(options) {
|
|
|
29
29
|
hasCustomId: !!options.modelIdPropName && options.modelIdPropName !== 'id',
|
|
30
30
|
storeModelName: options.sdkPackage ? `${core_1.strings.classify(options.modelName)}Model` : `${core_1.strings.classify(options.storeName)}Model`,
|
|
31
31
|
payloadModelName: options.sdkPackage ? options.modelName : `${core_1.strings.classify(options.storeName)}Model`,
|
|
32
|
-
modelIdPropName: options.modelIdPropName
|
|
32
|
+
modelIdPropName: options.modelIdPropName || 'id',
|
|
33
33
|
reviverModelName: `revive${options.modelName}`,
|
|
34
34
|
fileName: core_1.strings.dasherize(options.storeName)
|
|
35
35
|
};
|
|
@@ -50,8 +50,7 @@ function ngGenerateEntityAsyncStoreFn(options) {
|
|
|
50
50
|
}),
|
|
51
51
|
(0, schematics_1.renameTemplateFiles)(),
|
|
52
52
|
(0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
|
|
53
|
-
]), schematics_1.MergeStrategy.Overwrite))
|
|
54
|
-
rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)(asyncEntityTemplates, [
|
|
53
|
+
]), schematics_1.MergeStrategy.Overwrite), (0, schematics_1.mergeWith)((0, schematics_1.apply)(asyncEntityTemplates, [
|
|
55
54
|
(0, schematics_1.template)({
|
|
56
55
|
...core_1.strings,
|
|
57
56
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-async/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-async/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qCAAqC,EACtC,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,0CAA2C,SAAQ,qCAAqC;IACvG,kDAAkD;IAClD,eAAe,EAAE,MAAM,CAAC;IAExB,0BAA0B;IAC1B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-sync/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-sync/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAWpC,OAAO,EACL,yCAAyC,EAC1C,MAAM,UAAU,CAAC;AAyElB;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8DAAqE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateEntitySyncStore = void 0;
|
|
4
|
+
const path = require("node:path");
|
|
4
5
|
const core_1 = require("@angular-devkit/core");
|
|
5
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
7
|
const schematics_2 = require("@o3r/schematics");
|
|
7
|
-
const path = require("node:path");
|
|
8
8
|
/**
|
|
9
9
|
* Create an Otter friendly entity sync store
|
|
10
10
|
* @param options
|
|
@@ -29,7 +29,7 @@ function ngGenerateEntitySyncStoreFn(options) {
|
|
|
29
29
|
hasCustomId: !!options.modelIdPropName && options.modelIdPropName !== 'id',
|
|
30
30
|
storeModelName: options.sdkPackage ? `${core_1.strings.classify(options.modelName)}Model` : `${core_1.strings.classify(options.storeName)}Model`,
|
|
31
31
|
payloadModelName: options.sdkPackage ? options.modelName : `${core_1.strings.classify(options.storeName)}Model`,
|
|
32
|
-
modelIdPropName: options.modelIdPropName
|
|
32
|
+
modelIdPropName: options.modelIdPropName || 'id',
|
|
33
33
|
reviverModelName: `revive${options.modelName}`,
|
|
34
34
|
fileName: core_1.strings.dasherize(options.storeName)
|
|
35
35
|
};
|
|
@@ -49,8 +49,7 @@ function ngGenerateEntitySyncStoreFn(options) {
|
|
|
49
49
|
currentStoreIndex
|
|
50
50
|
}),
|
|
51
51
|
(0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
|
|
52
|
-
]), schematics_1.MergeStrategy.Overwrite))
|
|
53
|
-
rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
|
|
52
|
+
]), schematics_1.MergeStrategy.Overwrite), (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
|
|
54
53
|
(0, schematics_1.template)({
|
|
55
54
|
...core_1.strings,
|
|
56
55
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-sync/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/entity-sync/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qCAAqC,EACtC,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,yCAA0C,SAAQ,qCAAqC;IACtG,kDAAkD;IAClD,eAAe,EAAE,MAAM,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../schematics/store/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,IAAI,EAEL,MAAM,4BAA4B,CAAC;AAIpC,OAAO,EACL,+BAA+B,EAChC,MAAM,UAAU,CAAC;AA+BlB;;;GAGG;AACH,eAAO,MAAM,eAAe,oDAA2D,CAAC"}
|
|
@@ -14,16 +14,21 @@ function ngGenerateStoreFn(options) {
|
|
|
14
14
|
return acc;
|
|
15
15
|
}, {});
|
|
16
16
|
switch (options.storeType) {
|
|
17
|
-
case 'simple-sync':
|
|
17
|
+
case 'simple-sync': {
|
|
18
18
|
return (0, schematics_1.schematic)('store-simple-sync', parameterToChildSchematics);
|
|
19
|
-
|
|
19
|
+
}
|
|
20
|
+
case 'simple-async': {
|
|
20
21
|
return (0, schematics_1.schematic)('store-simple-async', parameterToChildSchematics);
|
|
21
|
-
|
|
22
|
+
}
|
|
23
|
+
case 'entity-async': {
|
|
22
24
|
return (0, schematics_1.schematic)('store-entity-async', parameterToChildSchematics);
|
|
23
|
-
|
|
25
|
+
}
|
|
26
|
+
case 'entity-sync': {
|
|
24
27
|
return (0, schematics_1.schematic)('store-entity-sync', parameterToChildSchematics);
|
|
25
|
-
|
|
28
|
+
}
|
|
29
|
+
default: {
|
|
26
30
|
return (0, schematics_1.schematic)('store-entity-async', parameterToChildSchematics);
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/store/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../schematics/store/schema.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,0CAA0C,EAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yCAAyC,EAC1C,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,0CAA0C,EAC3C,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,yCAAyC,EAC1C,MAAM,sBAAsB,CAAC;AAE9B;;GAEG;AACH,MAAM,WAAW,mCAAoC,SAAQ,qBAAqB;IAChF,sCAAsC;IACtC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAE1B,mBAAmB;IACnB,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAEjC,iBAAiB;IACjB,SAAS,EAAE,cAAc,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,CAAC;IAE3E,8BAA8B;IAC9B,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,KAAK,QAAQ,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS;CAAE,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,mCAAmC,GAC/E,QAAQ,CAAC,0CAA0C,CAAC,GACpD,QAAQ,CAAC,0CAA0C,CAAC,GACpD,QAAQ,CAAC,yCAAyC,CAAC,GACnD,QAAQ,CAAC,yCAAyC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-async/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-async/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAQL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAWpC,OAAO,EACL,0CAA0C,EAC3C,MAAM,UAAU,CAAC;AAuElB;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+DAAsE,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ngGenerateSimpleAsyncStore = void 0;
|
|
4
|
+
const path = require("node:path");
|
|
4
5
|
const core_1 = require("@angular-devkit/core");
|
|
5
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
7
|
const schematics_2 = require("@o3r/schematics");
|
|
7
|
-
const path = require("node:path");
|
|
8
8
|
/**
|
|
9
9
|
* Create an Otter friendly simple async store
|
|
10
10
|
* @param options
|
|
@@ -46,8 +46,7 @@ function ngGenerateSimpleAsyncStoreFn(options) {
|
|
|
46
46
|
}),
|
|
47
47
|
(0, schematics_1.renameTemplateFiles)(),
|
|
48
48
|
(0, schematics_1.move)(`${destination}/${core_1.strings.dasherize(options.storeName)}`)
|
|
49
|
-
]), schematics_1.MergeStrategy.Overwrite))
|
|
50
|
-
rules.push((0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
|
|
49
|
+
]), schematics_1.MergeStrategy.Overwrite), (0, schematics_1.mergeWith)((0, schematics_1.apply)(syncEntityTemplates, [
|
|
51
50
|
(0, schematics_1.template)({
|
|
52
51
|
...core_1.strings,
|
|
53
52
|
...options,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-async/schema.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-async/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qCAAqC,EACtC,MAAM,kBAAkB,CAAC;AAE1B;;GAEG;AACH,MAAM,WAAW,0CAA2C,SAAQ,qCAAqC;IACvG,0BAA0B;IAC1B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-sync/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/store/simple-sync/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAOL,IAAI,EAKL,MAAM,4BAA4B,CAAC;AAWpC,OAAO,EACL,yCAAyC,EAC1C,MAAM,UAAU,CAAC;AAgElB,eAAO,MAAM,yBAAyB,8DAAqE,CAAC"}
|