@o3r/components 11.7.0-prerelease.1 → 11.7.0-prerelease.3

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.
@@ -1 +1 @@
1
- {"version":3,"file":"component.extractor.d.ts","sourceRoot":"","sources":["../../../../../builders/component-extractor/helpers/component/component.extractor.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,aAAa,CAAC;AAQrB,OAAO,EACL,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAGV,eAAe,EAIhB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,qBAAa,kBAAkB;IAkBjB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAA+B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAqB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAU,OAAO,CAAC,QAAQ,CAAC,UAAU;IAjBtL,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAE9C,8CAA8C;IAC9C,OAAO,CAAC,iBAAiB,CAAC,CAA4B;IAEtD,oDAAoD;IACpD,OAAO,CAAC,wBAAwB,CAAC,CAA2B;IAE5D;;;;;;;OAOG;gBAC0B,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAmB,MAAM,EAAE,OAAO,CAAC,SAAS,EAAmB,aAAa,EAAE,MAAM,EAAmB,UAAU,UAAQ;IAK9L;;;OAGG;YACW,yBAAyB;IAQvC;;;OAGG;YACW,gCAAgC;IAQ9C;;;OAGG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,2BAA2B;IAenC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAKzB;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAyCzB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAiC7B;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IASlC;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IA8ChC;;;;OAIG;IACU,OAAO,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,eAAe,CAAC;CAsBrH"}
1
+ {"version":3,"file":"component.extractor.d.ts","sourceRoot":"","sources":["../../../../../builders/component-extractor/helpers/component/component.extractor.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACR,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,KAAK,EACV,+BAA+B,EAChC,MAAM,aAAa,CAAC;AAQrB,OAAO,EACL,YAAY,EACb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,KAAK,EAGV,eAAe,EAIhB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,qBAAa,kBAAkB;IAkBjB,OAAO,CAAC,QAAQ,CAAC,WAAW;IAA+B,OAAO,CAAC,QAAQ,CAAC,MAAM;IAAqB,OAAO,CAAC,QAAQ,CAAC,aAAa;IAAU,OAAO,CAAC,QAAQ,CAAC,UAAU;IAjBtL,2DAA2D;IAC3D,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAoB;IAE9C,8CAA8C;IAC9C,OAAO,CAAC,iBAAiB,CAAC,CAA4B;IAEtD,oDAAoD;IACpD,OAAO,CAAC,wBAAwB,CAAC,CAA2B;IAE5D;;;;;;;OAOG;gBAC0B,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,EAAmB,MAAM,EAAE,OAAO,CAAC,SAAS,EAAmB,aAAa,EAAE,MAAM,EAAmB,UAAU,UAAQ;IAK9L;;;OAGG;YACW,yBAAyB;IAQvC;;;OAGG;YACW,gCAAgC;IAQ9C;;;OAGG;IACH,OAAO,CAAC,cAAc;IAKtB;;;;;OAKG;IACH,OAAO,CAAC,2BAA2B;IAenC;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAKzB;;;;;OAKG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,iBAAiB;IAyCzB;;;;OAIG;IACH,OAAO,CAAC,qBAAqB;IAiC7B;;;;;OAKG;IACH,OAAO,CAAC,0BAA0B;IASlC;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAiDhC;;;;OAIG;IACU,OAAO,CAAC,YAAY,EAAE,YAAY,EAAE,OAAO,EAAE,+BAA+B,GAAG,OAAO,CAAC,eAAe,CAAC;CAsBrH"}
@@ -222,6 +222,9 @@ class ComponentExtractor {
222
222
  else {
223
223
  this.logger.warn(message);
224
224
  }
225
+ if (propertiesWithDefaultValue.length === 0) {
226
+ return acc;
227
+ }
225
228
  const configWithoutIncompatibleProperties = {
226
229
  ...config,
227
230
  properties: propertiesWithDefaultValue
@@ -1 +1 @@
1
- {"version":3,"file":"config-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/config-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA8BD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC,CAK7H,CAAC"}
1
+ {"version":3,"file":"config-metadata-comparison.helper.d.ts","sourceRoot":"","sources":["../../../../builders/metadata-check/helpers/config-metadata-comparison.helper.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,qBAAqB,EACtB,MAAM,iBAAiB,CAAC;AAEzB;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,mBAAmB;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA4BD;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,QAAQ,CAAC,kBAAkB,CAAC,qBAAqB,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,CAAC,CAK7H,CAAC"}
@@ -14,9 +14,7 @@ exports.configMetadataComparator = void 0;
14
14
  * [{ library: '@o3r/demo', properties: [{name : 'property1', type: 'string'}] }, { library: '@o3r/demo', properties: [{name : 'property2', type: 'number'}] }]
15
15
  * ```
16
16
  */
17
- const getConfigurationArray = (content) => content.flatMap((config) => config.properties.length > 1
18
- ? config.properties.map((prop) => ({ ...config, properties: [prop] }))
19
- : [config]);
17
+ const getConfigurationArray = (content) => content.flatMap((config) => config.properties.map((prop) => ({ ...config, properties: [prop] })));
20
18
  const getConfigurationPropertyName = (config) => `${config.library}#${config.name}` + (config.properties.length > 0 ? ` ${config.properties[0].name}` : '');
21
19
  const isRelevantContentType = (contentType) => contentType === 'CONFIG';
22
20
  const isMigrationConfigurationDataMatch = (config, migrationData) => migrationData.libraryName === config.library
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@o3r/components",
3
- "version": "11.7.0-prerelease.1",
3
+ "version": "11.7.0-prerelease.3",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -45,16 +45,16 @@
45
45
  "@ngrx/effects": "^18.0.0",
46
46
  "@ngrx/entity": "^18.0.0",
47
47
  "@ngrx/store": "^18.0.0",
48
- "@o3r/analytics": "^11.7.0-prerelease.1",
49
- "@o3r/configuration": "^11.7.0-prerelease.1",
50
- "@o3r/core": "^11.7.0-prerelease.1",
51
- "@o3r/dynamic-content": "^11.7.0-prerelease.1",
52
- "@o3r/extractors": "^11.7.0-prerelease.1",
53
- "@o3r/localization": "^11.7.0-prerelease.1",
54
- "@o3r/logger": "^11.7.0-prerelease.1",
55
- "@o3r/rules-engine": "^11.7.0-prerelease.1",
56
- "@o3r/schematics": "^11.7.0-prerelease.1",
57
- "@o3r/testing": "^11.7.0-prerelease.1",
48
+ "@o3r/analytics": "^11.7.0-prerelease.3",
49
+ "@o3r/configuration": "^11.7.0-prerelease.3",
50
+ "@o3r/core": "^11.7.0-prerelease.3",
51
+ "@o3r/dynamic-content": "^11.7.0-prerelease.3",
52
+ "@o3r/extractors": "^11.7.0-prerelease.3",
53
+ "@o3r/localization": "^11.7.0-prerelease.3",
54
+ "@o3r/logger": "^11.7.0-prerelease.3",
55
+ "@o3r/rules-engine": "^11.7.0-prerelease.3",
56
+ "@o3r/schematics": "^11.7.0-prerelease.3",
57
+ "@o3r/testing": "^11.7.0-prerelease.3",
58
58
  "@schematics/angular": "^18.2.0",
59
59
  "@yarnpkg/cli": "^4.0.0",
60
60
  "@yarnpkg/core": "^4.1.1",