@o3r/core 11.6.0-prerelease.2 → 11.6.0-prerelease.20

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.
Files changed (198) hide show
  1. package/builders/app-version/index.d.ts.map +1 -1
  2. package/builders/app-version/index.js +1 -1
  3. package/builders/app-version/schema.d.ts.map +1 -1
  4. package/builders/lib-build/index.d.ts +1 -2
  5. package/builders/lib-build/index.d.ts.map +1 -1
  6. package/builders/lib-build/index.js +10 -10
  7. package/builders/lib-build/schema.d.ts +1 -2
  8. package/builders/lib-build/schema.d.ts.map +1 -1
  9. package/builders/multi-watcher/index.d.ts.map +1 -1
  10. package/builders/multi-watcher/index.js +1 -0
  11. package/builders/multi-watcher/schema.d.ts.map +1 -1
  12. package/builders/ngc/index.d.ts.map +1 -1
  13. package/builders/ngc/index.js +4 -5
  14. package/builders/ngc/schema.d.ts.map +1 -1
  15. package/builders/pattern-replacement/index.d.ts.map +1 -1
  16. package/builders/pattern-replacement/index.js +2 -3
  17. package/builders/pattern-replacement/schema.d.ts.map +1 -1
  18. package/builders/run-script/index.d.ts.map +1 -1
  19. package/builders/run-script/index.js +3 -3
  20. package/builders/utils.d.ts.map +1 -1
  21. package/core/application/build-properties.d.ts +1 -1
  22. package/core/application/build-properties.d.ts.map +1 -1
  23. package/core/application/runtime.d.ts.map +1 -1
  24. package/core/common/interface-utils.d.ts.map +1 -1
  25. package/core/interfaces/configuration.d.ts.map +1 -1
  26. package/core/interfaces/context.d.ts.map +1 -1
  27. package/core/metadata/component.decorator.d.ts.map +1 -1
  28. package/core/metadata/index.d.ts +1 -1
  29. package/core/metadata/index.d.ts.map +1 -1
  30. package/esm2022/core/application/build-properties.mjs +2 -2
  31. package/esm2022/core/application/index.mjs +1 -1
  32. package/esm2022/core/application/runtime.mjs +1 -1
  33. package/esm2022/core/common/interface-utils.mjs +1 -1
  34. package/esm2022/core/devkit/devtools.interface.mjs +1 -1
  35. package/esm2022/core/interfaces/configuration.mjs +1 -1
  36. package/esm2022/core/interfaces/context.mjs +1 -2
  37. package/esm2022/core/metadata/component.decorator.mjs +2 -2
  38. package/esm2022/core/metadata/index.mjs +2 -2
  39. package/esm2022/messages/common-message.interface.mjs +1 -1
  40. package/esm2022/messages/index.mjs +1 -1
  41. package/esm2022/messages/message.helpers.mjs +7 -5
  42. package/esm2022/public_api.mjs +2 -2
  43. package/esm2022/store/async/async-entity.adapter.mjs +3 -3
  44. package/esm2022/store/async/async.adapter.mjs +8 -7
  45. package/esm2022/store/async/async.helpers.mjs +1 -1
  46. package/esm2022/store/async/async.interfaces.mjs +1 -1
  47. package/esm2022/store/async/async.operators.mjs +5 -5
  48. package/esm2022/store/async/async.props.mjs +3 -4
  49. package/esm2022/store/async/async.serializer.mjs +2 -2
  50. package/esm2022/store/async/index.mjs +4 -4
  51. package/esm2022/store/types.mjs +1 -1
  52. package/esm2022/utils/debug/debug.helper.mjs +1 -2
  53. package/esm2022/utils/deep-fill/deep-fill.mjs +3 -4
  54. package/esm2022/utils/rendering/rendering.helpers.mjs +3 -4
  55. package/fesm2022/o3r-core.mjs +48 -51
  56. package/fesm2022/o3r-core.mjs.map +1 -1
  57. package/messages/common-message.interface.d.ts.map +1 -1
  58. package/messages/message.helpers.d.ts.map +1 -1
  59. package/package.json +21 -14
  60. package/public_api.d.ts +1 -1
  61. package/public_api.d.ts.map +1 -1
  62. package/schematics/add-modules/index.d.ts.map +1 -1
  63. package/schematics/add-modules/index.js +2 -2
  64. package/schematics/add-modules/schema.d.ts.map +1 -1
  65. package/schematics/component/container/index.d.ts.map +1 -1
  66. package/schematics/component/container/index.js +13 -11
  67. package/schematics/component/container/schema.d.ts.map +1 -1
  68. package/schematics/component/index.d.ts.map +1 -1
  69. package/schematics/component/index.js +1 -3
  70. package/schematics/component/presenter/index.d.ts.map +1 -1
  71. package/schematics/component/presenter/index.js +13 -12
  72. package/schematics/component/presenter/schema.d.ts.map +1 -1
  73. package/schematics/component/schema.d.ts.map +1 -1
  74. package/schematics/component/structures.types.d.ts +3 -3
  75. package/schematics/component/structures.types.d.ts.map +1 -1
  76. package/schematics/component/structures.types.js +2 -0
  77. package/schematics/context-to-component/index.d.ts +0 -1
  78. package/schematics/context-to-component/index.d.ts.map +1 -1
  79. package/schematics/context-to-component/index.js +1 -2
  80. package/schematics/context-to-component/schema.d.ts.map +1 -1
  81. package/schematics/convert-component/index.d.ts +0 -1
  82. package/schematics/convert-component/index.d.ts.map +1 -1
  83. package/schematics/convert-component/index.js +0 -2
  84. package/schematics/convert-component/schema.d.ts.map +1 -1
  85. package/schematics/ng-add/component-decorator/index.d.ts.map +1 -1
  86. package/schematics/ng-add/component-decorator/index.js +4 -4
  87. package/schematics/ng-add/index.d.ts.map +1 -1
  88. package/schematics/ng-add/index.js +5 -6
  89. package/schematics/ng-add/project-setup/index.d.ts.map +1 -1
  90. package/schematics/ng-add/project-setup/index.js +5 -5
  91. package/schematics/ng-add/schema.d.ts.map +1 -1
  92. package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.d.ts.map +1 -1
  93. package/schematics/ng-add/updates-for-v8/cms-adapters/update-builders-names.js +40 -41
  94. package/schematics/ng-add/updates-for-v8/generators/update-generators-names.d.ts.map +1 -1
  95. package/schematics/ng-add/updates-for-v8/generators/update-generators-names.js +25 -27
  96. package/schematics/ng-add/utils/linter/index.d.ts +8 -3
  97. package/schematics/ng-add/utils/linter/index.d.ts.map +1 -1
  98. package/schematics/ng-add/utils/linter/index.js +11 -5
  99. package/schematics/ng-add-create/index.d.ts +0 -2
  100. package/schematics/ng-add-create/index.d.ts.map +1 -1
  101. package/schematics/ng-add-create/index.js +9 -15
  102. package/schematics/ng-add-create/schema.d.ts.map +1 -1
  103. package/schematics/ng-update/index.d.ts.map +1 -1
  104. package/schematics/ng-update/index.js +5 -3
  105. package/schematics/ng-update/v10.0/configuration.d.ts.map +1 -1
  106. package/schematics/ng-update/v10.0/configuration.js +2 -2
  107. package/schematics/ng-update/v8.2/import-map.d.ts.map +1 -1
  108. package/schematics/page/index.d.ts.map +1 -1
  109. package/schematics/page/index.js +16 -16
  110. package/schematics/page/schema.d.ts.map +1 -1
  111. package/schematics/renovate/index.d.ts.map +1 -1
  112. package/schematics/renovate/schema.d.ts.map +1 -1
  113. package/schematics/rule-factories/additional-modules/index.d.ts.map +1 -1
  114. package/schematics/rule-factories/additional-modules/index.js +3 -3
  115. package/schematics/rule-factories/component/analytics.d.ts.map +1 -1
  116. package/schematics/rule-factories/component/common.d.ts +0 -1
  117. package/schematics/rule-factories/component/common.d.ts.map +1 -1
  118. package/schematics/rule-factories/component/common.js +18 -15
  119. package/schematics/rule-factories/component/configuration.d.ts.map +1 -1
  120. package/schematics/rule-factories/component/context.d.ts.map +1 -1
  121. package/schematics/rule-factories/component/design-token.d.ts.map +1 -1
  122. package/schematics/rule-factories/component/fixture.d.ts.map +1 -1
  123. package/schematics/rule-factories/component/localization.d.ts.map +1 -1
  124. package/schematics/rule-factories/component/rules-engine.d.ts.map +1 -1
  125. package/schematics/rule-factories/component/theming.d.ts.map +1 -1
  126. package/schematics/rule-factories/customization-environment/index.d.ts.map +1 -1
  127. package/schematics/rule-factories/customization-environment/index.js +5 -7
  128. package/schematics/rule-factories/index.d.ts +1 -1
  129. package/schematics/rule-factories/index.d.ts.map +1 -1
  130. package/schematics/rule-factories/index.js +1 -1
  131. package/schematics/rule-factories/o3r-basic-updates/index.d.ts +0 -1
  132. package/schematics/rule-factories/o3r-basic-updates/index.d.ts.map +1 -1
  133. package/schematics/rule-factories/o3r-basic-updates/index.js +7 -8
  134. package/schematics/rule-factories/otter-environment/index.d.ts +1 -2
  135. package/schematics/rule-factories/otter-environment/index.d.ts.map +1 -1
  136. package/schematics/rule-factories/otter-environment/index.js +16 -18
  137. package/schematics/rule-factories/store/index.d.ts +3 -4
  138. package/schematics/rule-factories/store/index.d.ts.map +1 -1
  139. package/schematics/rule-factories/store/index.js +7 -8
  140. package/schematics/schematics-update/index.d.ts.map +1 -1
  141. package/schematics/schematics-update/index.js +3 -3
  142. package/schematics/schematics-update/schema.d.ts.map +1 -1
  143. package/schematics/service/index.d.ts.map +1 -1
  144. package/schematics/service/index.js +3 -3
  145. package/schematics/service/schema.d.ts.map +1 -1
  146. package/schematics/shared/presets/all.preset.d.ts.map +1 -1
  147. package/schematics/shared/presets/all.preset.js +2 -3
  148. package/schematics/shared/presets/basic.preset.d.ts.map +1 -1
  149. package/schematics/shared/presets/cms.preset.d.ts +0 -1
  150. package/schematics/shared/presets/cms.preset.d.ts.map +1 -1
  151. package/schematics/shared/presets/cms.preset.js +1 -3
  152. package/schematics/shared/presets/external.preset.d.ts.map +1 -1
  153. package/schematics/shared/presets/external.preset.js +1 -1
  154. package/schematics/shared/presets/helpers.d.ts.map +1 -1
  155. package/schematics/shared/presets/helpers.js +10 -8
  156. package/schematics/shared/presets/index.d.ts +1 -1
  157. package/schematics/shared/presets/index.d.ts.map +1 -1
  158. package/schematics/shared/presets/index.js +1 -1
  159. package/schematics/shared/presets/preset.interface.d.ts +1 -1
  160. package/schematics/shared/presets/preset.interface.d.ts.map +1 -1
  161. package/schematics/show-modules/index.d.ts.map +1 -1
  162. package/schematics/show-modules/schema.d.ts.map +1 -1
  163. package/schematics/store/common/helpers.d.ts.map +1 -1
  164. package/schematics/store/common/schema.d.ts.map +1 -1
  165. package/schematics/store/entity-async/index.d.ts.map +1 -1
  166. package/schematics/store/entity-async/index.js +3 -4
  167. package/schematics/store/entity-async/schema.d.ts.map +1 -1
  168. package/schematics/store/entity-sync/index.d.ts.map +1 -1
  169. package/schematics/store/entity-sync/index.js +3 -4
  170. package/schematics/store/entity-sync/schema.d.ts.map +1 -1
  171. package/schematics/store/index.d.ts.map +1 -1
  172. package/schematics/store/index.js +10 -5
  173. package/schematics/store/schema.d.ts.map +1 -1
  174. package/schematics/store/simple-async/index.d.ts.map +1 -1
  175. package/schematics/store/simple-async/index.js +2 -3
  176. package/schematics/store/simple-async/schema.d.ts.map +1 -1
  177. package/schematics/store/simple-sync/index.d.ts.map +1 -1
  178. package/schematics/store/simple-sync/index.js +2 -4
  179. package/schematics/store/simple-sync/schema.d.ts.map +1 -1
  180. package/schematics/store-action/index.d.ts.map +1 -1
  181. package/schematics/store-action/index.js +26 -22
  182. package/schematics/store-action/schema.d.ts.map +1 -1
  183. package/store/async/async-entity.adapter.d.ts.map +1 -1
  184. package/store/async/async.adapter.d.ts.map +1 -1
  185. package/store/async/async.helpers.d.ts.map +1 -1
  186. package/store/async/async.interfaces.d.ts.map +1 -1
  187. package/store/async/async.operators.d.ts +1 -0
  188. package/store/async/async.operators.d.ts.map +1 -1
  189. package/store/async/async.props.d.ts.map +1 -1
  190. package/store/async/async.serializer.d.ts.map +1 -1
  191. package/store/async/index.d.ts +3 -3
  192. package/store/async/index.d.ts.map +1 -1
  193. package/store/types.d.ts +9 -7
  194. package/store/types.d.ts.map +1 -1
  195. package/utils/debug/debug.helper.d.ts.map +1 -1
  196. package/utils/deep-fill/deep-fill.d.ts.map +1 -1
  197. package/utils/rendering/rendering.helpers.d.ts +0 -1
  198. 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":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAOjF;;;;;;;;;;GAUG;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,CAqIN"}
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 schematics_2 = require("@o3r/schematics");
8
- const node_path_1 = require("node:path");
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
- ...(workspaceProject.schematics[item] || {})
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
- ...(workspaceProject.schematics[item] || {})
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['"]?:\s*(true|false)/.test(envContent)) {
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":"AAAA,OAAO,EAAS,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AACjF,OAAO,EASL,KAAK,wBAAwB,EAC9B,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAkBnD;;;;;;;;;GASG;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,CAoIrD"}
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":"AAAA,OAAO,EAAe,IAAI,EAA0B,MAAM,4BAA4B,CAAC;AAIvF,OAAO,EAAE,gCAAgC,EAAE,MAAM,UAAU,CAAC;AAsE5D;;;GAGG;AACH,eAAO,MAAM,gBAAgB,qDAA4D,CAAC"}
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.indexOf('.') > -1 ? '' : '.0'}.0-alpha.0`;
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,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,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
+ {"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":"AACA,OAAO,EAA2E,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAGlK,OAAO,EAAE,iCAAiC,EAAE,MAAM,UAAU,CAAC;AAkG7D;;;GAGG;AACH,eAAO,MAAM,iBAAiB,sDAA6D,CAAC"}
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,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,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
+ {"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":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD;;;GAGG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa;;;EA8B/C"}
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-otter',
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":"AAEA;;GAEG;AACH,wBAAgB,WAAW;;EAI1B"}
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,7 +1,6 @@
1
1
  import type { PresetOptions } from './preset.interface';
2
2
  /**
3
3
  * Preset Installing the minimum modules to fully administrated the application via CMS
4
- *
5
4
  * @param options
6
5
  */
7
6
  export declare function cmsPreset(options: PresetOptions): {
@@ -1 +1 @@
1
- {"version":3,"file":"cms.preset.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/cms.preset.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,aAAa;;;EAoB/C"}
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,EAAE,gBAAgB,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAQxD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,mBAAmB,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,gBAAgB,GAAG,aAAa,CAanH"}
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":"AAAA,OAAO,EAAO,KAAK,IAAI,EAAC,MAAM,4BAA4B,CAAC;AAK3D,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,oBAAoB,CAAC;AAEtD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,eAAe,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,aAAkB,GAAG,IAAI,CAiCrG"}
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 (!moduleToInstall.length) {
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 ? schematics_1.noop : (0, schematics_2.setupDependencies)({
37
- projectName: options.projectName,
38
- dependencies,
39
- ngAddToRun: moduleToInstall
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,5 +1,5 @@
1
1
  import type { Presets } from './preset.interface';
2
- export * from './preset.interface';
3
2
  export * from './external.preset';
3
+ export * from './preset.interface';
4
4
  export declare const presets: Presets;
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../schematics/shared/presets/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAElC,eAAO,MAAM,OAAO,EAAE,OAIrB,CAAC"}
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,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAEvF,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
+ {"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,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAClD,OAAO,EAAE,6BAA6B,EAAE,MAAM,UAAU,CAAC;AAWzD;;;GAGG;AACH,eAAO,MAAM,aAAa,kDAAyD,CAAC"}
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,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D,MAAM,WAAW,6BAA8B,SAAQ,qBAAqB;IAC1E,uDAAuD;IACvD,OAAO,EAAE,OAAO,CAAC;IACjB,8DAA8D;IAC9D,mBAAmB,EAAE,OAAO,CAAC;CAC9B"}
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":"AACA;;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
+ {"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,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAE7D;;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
+ {"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":"AACA,OAAO,EAA2E,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAIlK,OAAO,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAC;AAwEtE;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+DAAsE,CAAC"}
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 ? options.modelIdPropName : 'id',
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,EAAE,qCAAqC,EAAE,MAAM,kBAAkB,CAAC;AAEzE;;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
+ {"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":"AACA,OAAO,EAAsD,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAK7I,OAAO,EAAE,yCAAyC,EAAE,MAAM,UAAU,CAAC;AAuErE;;;GAGG;AACH,eAAO,MAAM,yBAAyB,8DAAqE,CAAC"}
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 ? options.modelIdPropName : 'id',
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,EAAC,qCAAqC,EAAC,MAAM,kBAAkB,CAAC;AAEvE;;GAEG;AACH,MAAM,WAAW,yCAA0C,SAAQ,qCAAqC;IACtG,kDAAkD;IAClD,eAAe,EAAE,MAAM,CAAC;CACzB"}
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,EAAE,IAAI,EAAa,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,UAAU,CAAC;AA0B3D;;;GAGG;AACH,eAAO,MAAM,eAAe,oDAA2D,CAAC"}
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
- case 'simple-async':
19
+ }
20
+ case 'simple-async': {
20
21
  return (0, schematics_1.schematic)('store-simple-async', parameterToChildSchematics);
21
- case 'entity-async':
22
+ }
23
+ case 'entity-async': {
22
24
  return (0, schematics_1.schematic)('store-entity-async', parameterToChildSchematics);
23
- case 'entity-sync':
25
+ }
26
+ case 'entity-sync': {
24
27
  return (0, schematics_1.schematic)('store-entity-sync', parameterToChildSchematics);
25
- default:
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,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,yCAAyC,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,0CAA0C,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EAAE,yCAAyC,EAAE,MAAM,sBAAsB,CAAC;AAEjF;;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
+ {"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":"AACA,OAAO,EAA2E,IAAI,EAAyC,MAAM,4BAA4B,CAAC;AAIlK,OAAO,EAAE,0CAA0C,EAAE,MAAM,UAAU,CAAC;AAqEtE;;;GAGG;AACH,eAAO,MAAM,0BAA0B,+DAAsE,CAAC"}
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,EAAE,qCAAqC,EAAE,MAAM,kBAAkB,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,0CAA2C,SAAQ,qCAAqC;IACvG,0BAA0B;IAC1B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC"}
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":"AACA,OAAO,EAAqD,IAAI,EAAwC,MAAM,4BAA4B,CAAC;AAI3I,OAAO,EAAC,yCAAyC,EAAC,MAAM,UAAU,CAAC;AA+DnE,eAAO,MAAM,yBAAyB,8DAAqE,CAAC"}
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"}