@smartsoft001/angular 2.146.0 → 2.147.0
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.
|
@@ -11102,6 +11102,13 @@ class FormFactory {
|
|
|
11102
11102
|
control.setValidators(providerResult?.validators ?? null);
|
|
11103
11103
|
control.setAsyncValidators(providerResult?.asyncValidators ?? null);
|
|
11104
11104
|
}
|
|
11105
|
+
// `setValidators` and `setAsyncValidators` do not recalculate the status,
|
|
11106
|
+
// so the control still carries the one it computed before it had any
|
|
11107
|
+
// validators. Recalculate it here, once every validator is attached, or
|
|
11108
|
+
// the group would be built from stale child statuses and report VALID.
|
|
11109
|
+
// Silently: the only subscribers this early are the `enabled` pipelines
|
|
11110
|
+
// of the nested groups, and the `addControl` below emits anyway.
|
|
11111
|
+
control.updateValueAndValidity({ emitEvent: false });
|
|
11105
11112
|
result.addControl(field.key, control);
|
|
11106
11113
|
if (options.confirm && options.type === FieldType.object) {
|
|
11107
11114
|
throw Error('Object not supported confirms');
|
|
@@ -22388,19 +22395,19 @@ class ListBaseComponent {
|
|
|
22388
22395
|
if (options.details) {
|
|
22389
22396
|
if (!details?.provider)
|
|
22390
22397
|
throw Error('Must set details provider');
|
|
22391
|
-
if (
|
|
22392
|
-
|
|
22393
|
-
|
|
22394
|
-
|
|
22395
|
-
|
|
22396
|
-
|
|
22397
|
-
|
|
22398
|
-
|
|
22399
|
-
|
|
22400
|
-
|
|
22401
|
-
}
|
|
22402
|
-
this.select = details
|
|
22403
|
-
this.unselect = details
|
|
22398
|
+
if (details.component) {
|
|
22399
|
+
this.detailsComponent = details.component;
|
|
22400
|
+
this.detailsComponentProps = {
|
|
22401
|
+
item: details.provider.item,
|
|
22402
|
+
type: options.type,
|
|
22403
|
+
loading: details.provider.loading,
|
|
22404
|
+
itemHandler: this.itemHandler ?? null,
|
|
22405
|
+
removeHandler: this.removeHandler,
|
|
22406
|
+
componentFactories: details.componentFactories,
|
|
22407
|
+
};
|
|
22408
|
+
}
|
|
22409
|
+
this.select = details.provider.getData;
|
|
22410
|
+
this.unselect = details.provider.clearData;
|
|
22404
22411
|
}
|
|
22405
22412
|
if (options.pagination) {
|
|
22406
22413
|
this.loadNextPage = async (event = null) => {
|