@o3r/components 11.7.0-prerelease.0 → 11.7.0-prerelease.2
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/component-extractor/helpers/component/component.extractor.d.ts.map +1 -1
- package/builders/component-extractor/helpers/component/component.extractor.js +3 -0
- package/builders/metadata-check/helpers/config-metadata-comparison.helper.d.ts.map +1 -1
- package/builders/metadata-check/helpers/config-metadata-comparison.helper.js +1 -3
- package/package.json +11 -11
|
@@ -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;
|
|
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;
|
|
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.
|
|
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.
|
|
3
|
+
"version": "11.7.0-prerelease.2",
|
|
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.
|
|
49
|
-
"@o3r/configuration": "^11.7.0-prerelease.
|
|
50
|
-
"@o3r/core": "^11.7.0-prerelease.
|
|
51
|
-
"@o3r/dynamic-content": "^11.7.0-prerelease.
|
|
52
|
-
"@o3r/extractors": "^11.7.0-prerelease.
|
|
53
|
-
"@o3r/localization": "^11.7.0-prerelease.
|
|
54
|
-
"@o3r/logger": "^11.7.0-prerelease.
|
|
55
|
-
"@o3r/rules-engine": "^11.7.0-prerelease.
|
|
56
|
-
"@o3r/schematics": "^11.7.0-prerelease.
|
|
57
|
-
"@o3r/testing": "^11.7.0-prerelease.
|
|
48
|
+
"@o3r/analytics": "^11.7.0-prerelease.2",
|
|
49
|
+
"@o3r/configuration": "^11.7.0-prerelease.2",
|
|
50
|
+
"@o3r/core": "^11.7.0-prerelease.2",
|
|
51
|
+
"@o3r/dynamic-content": "^11.7.0-prerelease.2",
|
|
52
|
+
"@o3r/extractors": "^11.7.0-prerelease.2",
|
|
53
|
+
"@o3r/localization": "^11.7.0-prerelease.2",
|
|
54
|
+
"@o3r/logger": "^11.7.0-prerelease.2",
|
|
55
|
+
"@o3r/rules-engine": "^11.7.0-prerelease.2",
|
|
56
|
+
"@o3r/schematics": "^11.7.0-prerelease.2",
|
|
57
|
+
"@o3r/testing": "^11.7.0-prerelease.2",
|
|
58
58
|
"@schematics/angular": "^18.2.0",
|
|
59
59
|
"@yarnpkg/cli": "^4.0.0",
|
|
60
60
|
"@yarnpkg/core": "^4.1.1",
|