@3kles/kles-material-dynamicforms 19.5.1 → 19.5.3
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.
|
@@ -347,11 +347,23 @@ class KlesDynamicFieldDirective {
|
|
|
347
347
|
this.buildComponent();
|
|
348
348
|
}
|
|
349
349
|
ngOnChanges(changes) {
|
|
350
|
-
|
|
351
|
-
|
|
350
|
+
const groupChanged = !!changes['group'] && !changes['group'].isFirstChange();
|
|
351
|
+
const fieldChanged = !!changes['field'] && !changes['field'].isFirstChange();
|
|
352
|
+
const uiChanged = !!changes['ui'] && !changes['ui'].isFirstChange();
|
|
353
|
+
const siblingFieldsChanged = !!changes['siblingFields'] && !changes['siblingFields'].isFirstChange();
|
|
354
|
+
if (groupChanged) {
|
|
355
|
+
this.group = changes['group'].currentValue;
|
|
352
356
|
}
|
|
353
|
-
if (
|
|
354
|
-
this.field = changes
|
|
357
|
+
if (fieldChanged) {
|
|
358
|
+
this.field = changes['field'].currentValue;
|
|
359
|
+
}
|
|
360
|
+
if (uiChanged) {
|
|
361
|
+
this.ui = changes['ui'].currentValue;
|
|
362
|
+
}
|
|
363
|
+
if (siblingFieldsChanged) {
|
|
364
|
+
this.siblingFields = changes['siblingFields'].currentValue;
|
|
365
|
+
}
|
|
366
|
+
if (groupChanged || fieldChanged || uiChanged || siblingFieldsChanged) {
|
|
355
367
|
this.buildComponent();
|
|
356
368
|
}
|
|
357
369
|
}
|