@elite.framework/ng.core 1.0.19 → 1.0.20
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.
|
@@ -762,6 +762,7 @@ class ConditionExpressionBuilderType extends FieldType {
|
|
|
762
762
|
/**
|
|
763
763
|
*
|
|
764
764
|
*/
|
|
765
|
+
valueChangeSubscription;
|
|
765
766
|
constructor(svc, cdr) {
|
|
766
767
|
super();
|
|
767
768
|
this.svc = svc;
|
|
@@ -772,6 +773,18 @@ class ConditionExpressionBuilderType extends FieldType {
|
|
|
772
773
|
const to = this.props;
|
|
773
774
|
this.api.apiName = to['serviceName'];
|
|
774
775
|
this.displayMode = to['displayMode'] ?? 'full';
|
|
776
|
+
this.initTokens();
|
|
777
|
+
this.valueChangeSubscription = this.formControl.valueChanges
|
|
778
|
+
.subscribe(() => {
|
|
779
|
+
this.initTokens();
|
|
780
|
+
});
|
|
781
|
+
}
|
|
782
|
+
ngOnDestroy() {
|
|
783
|
+
if (this.valueChangeSubscription) {
|
|
784
|
+
this.valueChangeSubscription.unsubscribe();
|
|
785
|
+
}
|
|
786
|
+
}
|
|
787
|
+
initTokens() {
|
|
775
788
|
const existing = this.formControl.value || '';
|
|
776
789
|
if (existing) {
|
|
777
790
|
const tokens = existing.split(' ').filter((x) => x);
|