@syncbridge/common 0.6.7 → 0.6.9
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/constants.js +1 -1
- package/models/metadata/element-component-metadata.d.ts +0 -1
- package/models/metadata/element-component-metadata.js +0 -7
- package/models/profile/profile-component.d.ts +1 -0
- package/models/profile/profile-component.js +7 -0
- package/package.json +1 -1
- package/processor-factory.js +2 -2
package/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const version = '0.6.
|
|
1
|
+
export const version = '0.6.9';
|
|
2
2
|
export const OWN_ELEMENT_METADATA = Symbol.for('OWN_ELEMENT_METADATA');
|
|
3
3
|
export const COMPONENT_OPTIONS = Symbol.for('COMPONENT_OPTIONS');
|
|
4
4
|
export const PROCESSOR_OPTIONS = Symbol.for('PROCESSOR_OPTIONS');
|
|
@@ -33,13 +33,6 @@ __decorate([
|
|
|
33
33
|
}),
|
|
34
34
|
__metadata("design:type", String)
|
|
35
35
|
], ElementComponentMetadata.prototype, "description", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
ApiField({
|
|
38
|
-
label: 'Disabled',
|
|
39
|
-
description: 'Determine if the component is disabled or not',
|
|
40
|
-
}),
|
|
41
|
-
__metadata("design:type", Boolean)
|
|
42
|
-
], ElementComponentMetadata.prototype, "disabled", void 0);
|
|
43
36
|
__decorate([
|
|
44
37
|
ApiField({
|
|
45
38
|
label: 'Interfaces',
|
|
@@ -69,6 +69,13 @@ __decorate([
|
|
|
69
69
|
}),
|
|
70
70
|
__metadata("design:type", ProfileComponentSettings)
|
|
71
71
|
], ProfileComponent.prototype, "settings", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
ApiField({
|
|
74
|
+
label: 'Disabled',
|
|
75
|
+
description: 'Determine if the component is disabled or not',
|
|
76
|
+
}),
|
|
77
|
+
__metadata("design:type", Boolean)
|
|
78
|
+
], ProfileComponent.prototype, "disabled", void 0);
|
|
72
79
|
ProfileComponent = __decorate([
|
|
73
80
|
ComplexType({
|
|
74
81
|
description: 'User defined variable definition',
|
package/package.json
CHANGED
package/processor-factory.js
CHANGED
|
@@ -113,7 +113,7 @@ export var ProcessorFactory;
|
|
|
113
113
|
});
|
|
114
114
|
}
|
|
115
115
|
async function _configureComponents(ctx) {
|
|
116
|
-
const { newMetadata, stackExecutor } = ctx;
|
|
116
|
+
const { newMetadata, newProfile, stackExecutor } = ctx;
|
|
117
117
|
if (!newMetadata.components)
|
|
118
118
|
return;
|
|
119
119
|
// Stack: components
|
|
@@ -121,7 +121,7 @@ export var ProcessorFactory;
|
|
|
121
121
|
for (const [key, childMetadata] of Object.entries(newMetadata.components)) {
|
|
122
122
|
// Stack: components/componentName
|
|
123
123
|
await stackExecutor.executeAsync(key, async () => {
|
|
124
|
-
if (!
|
|
124
|
+
if (!newProfile.components?.[key]?.disabled)
|
|
125
125
|
await _configureComponent(ctx, key, childMetadata);
|
|
126
126
|
});
|
|
127
127
|
}
|