@syncbridge/common 0.6.2 → 0.6.4
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
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const version = '0.6.
|
|
1
|
+
export const version = '0.6.4';
|
|
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');
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { ApiField, ComplexType } from '@opra/common';
|
|
2
|
+
import { ApiField, ArrayType, ComplexType } from '@opra/common';
|
|
3
3
|
import { VariableFormat } from '../enums/variable-format.enum.js';
|
|
4
4
|
import { VariableType } from '../enums/variable-type.enum.js';
|
|
5
5
|
/**
|
|
@@ -48,16 +48,14 @@ __decorate([
|
|
|
48
48
|
__decorate([
|
|
49
49
|
ApiField({
|
|
50
50
|
description: 'Examples of the variable value.',
|
|
51
|
-
type:
|
|
52
|
-
isArray: true,
|
|
51
|
+
type: ArrayType(String),
|
|
53
52
|
}),
|
|
54
53
|
__metadata("design:type", Array)
|
|
55
54
|
], VariableMetadata.prototype, "examples", void 0);
|
|
56
55
|
__decorate([
|
|
57
56
|
ApiField({
|
|
58
57
|
description: 'Choices of the variable',
|
|
59
|
-
type:
|
|
60
|
-
isArray: true,
|
|
58
|
+
type: ArrayType(String),
|
|
61
59
|
}),
|
|
62
60
|
__metadata("design:type", Array)
|
|
63
61
|
], VariableMetadata.prototype, "choice", void 0);
|
|
@@ -136,6 +134,12 @@ __decorate([
|
|
|
136
134
|
}),
|
|
137
135
|
__metadata("design:type", Object)
|
|
138
136
|
], VariableMetadata.prototype, "maxValue", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
ApiField({
|
|
139
|
+
description: 'Width of the variable in the UI',
|
|
140
|
+
}),
|
|
141
|
+
__metadata("design:type", Number)
|
|
142
|
+
], VariableMetadata.prototype, "displayWidth", void 0);
|
|
139
143
|
VariableMetadata = __decorate([
|
|
140
144
|
ComplexType({
|
|
141
145
|
description: 'User defined variable definition',
|
package/package.json
CHANGED
package/processor-factory.js
CHANGED
|
@@ -128,9 +128,11 @@ export var ProcessorFactory;
|
|
|
128
128
|
}
|
|
129
129
|
async function _configureComponent(ctx, key, childMetadata) {
|
|
130
130
|
const { newProfile, oldMetadata, oldProfile, curPath, owner, processor } = ctx;
|
|
131
|
+
const childProfile = newProfile.components[key];
|
|
132
|
+
if (!childProfile?.className)
|
|
133
|
+
return;
|
|
131
134
|
const oldChildMetadata = oldMetadata?.components?.[key];
|
|
132
135
|
const oldChildProfile = oldProfile?.components?.[key];
|
|
133
|
-
const childProfile = newProfile.components[key];
|
|
134
136
|
const componentPath = curPath ? curPath + '/' + key : key;
|
|
135
137
|
let componentInstance = owner.components?.[key];
|
|
136
138
|
/** Create the component only if the owner stopped */ // todo implement hotplug components
|