@node-projects/web-component-designer 0.0.70 → 0.0.71
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,4 +1,5 @@
|
|
|
1
1
|
import { ValueType } from "../ValueType";
|
|
2
|
+
import { BindingTarget } from "../../../item/BindingTarget";
|
|
2
3
|
export class CommonPropertiesService {
|
|
3
4
|
//@ts-ignore
|
|
4
5
|
commonProperties = [
|
|
@@ -62,6 +63,12 @@ export class CommonPropertiesService {
|
|
|
62
63
|
all = all && has;
|
|
63
64
|
some = some || has;
|
|
64
65
|
});
|
|
66
|
+
//todo: optimize perf, do not call bindings service for each property.
|
|
67
|
+
const bindings = designItems[0].serviceContainer.forSomeServicesTillResult('bindingService', (s) => {
|
|
68
|
+
return s.getBindings(designItems[0]);
|
|
69
|
+
});
|
|
70
|
+
if (bindings && bindings.find(x => x.target == BindingTarget.property && x.targetName == property.name))
|
|
71
|
+
return ValueType.bound;
|
|
65
72
|
}
|
|
66
73
|
else
|
|
67
74
|
return ValueType.none;
|