@sumaris-net/ngx-components 1.3.11 → 1.4.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.
- package/bundles/sumaris-net.ngx-components.umd.js +5 -3
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/form.utils.js +2 -2
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +5 -3
- package/fesm2015/sumaris-net.ngx-components.js +5 -3
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -1266,7 +1266,6 @@
|
|
|
1266
1266
|
this.required = false;
|
|
1267
1267
|
this.clearable = false;
|
|
1268
1268
|
this.debounceTime = null;
|
|
1269
|
-
this.highlightAccent = false;
|
|
1270
1269
|
this.i18nPrefix = 'REFERENTIAL.';
|
|
1271
1270
|
this.noResultMessage = 'COMMON.NO_RESULT';
|
|
1272
1271
|
this.matAutocompletePosition = 'auto';
|
|
@@ -1401,9 +1400,10 @@
|
|
|
1401
1400
|
this.mobile = toBoolean(this.mobile, this.config.mobile);
|
|
1402
1401
|
this.suggestLengthThreshold = toNumber(this.suggestLengthThreshold, this.config.suggestLengthThreshold || 0);
|
|
1403
1402
|
this.showAllOnFocus = toBoolean(this.showAllOnFocus, toBoolean(this.config.showAllOnFocus, this.suggestLengthThreshold === 0));
|
|
1404
|
-
this.showPanelOnFocus = toBoolean(this.showPanelOnFocus, toBoolean(this.config.showPanelOnFocus
|
|
1403
|
+
this.showPanelOnFocus = toBoolean(this.showPanelOnFocus, toBoolean(this.config.showPanelOnFocus));
|
|
1405
1404
|
this.classList = this.classList || this.config.class;
|
|
1406
1405
|
this.debounceTime = toNumber(this.debounceTime, this.config.debounceTime);
|
|
1406
|
+
this.highlightAccent = toBoolean(this.highlightAccent, toBoolean(this.config.highlightAccent));
|
|
1407
1407
|
}
|
|
1408
1408
|
// Default values
|
|
1409
1409
|
this.displayAttributes = this.displayAttributes || ((_a = this.filter) === null || _a === void 0 ? void 0 : _a.attributes) || ['label', 'name'];
|
|
@@ -1431,7 +1431,9 @@
|
|
|
1431
1431
|
|| (classList.includes('min-width-large') && '400px')
|
|
1432
1432
|
|| (classList.includes('min-width-xlarge') && '450px')
|
|
1433
1433
|
|| (classList.includes('mat-autocomplete-panel-full-size') && '100vw')));
|
|
1434
|
+
this.showPanelOnFocus = toBoolean(this.showPanelOnFocus, true);
|
|
1434
1435
|
this.debounceTime = toNumber(this.debounceTime, 250);
|
|
1436
|
+
this.highlightAccent = toBoolean(this.highlightAccent, false);
|
|
1435
1437
|
this.suggestLengthThreshold = this.suggestLengthThreshold || 0;
|
|
1436
1438
|
// No suggestFn: filter on the given items
|
|
1437
1439
|
if (!this.suggestFn) {
|
|
@@ -3840,7 +3842,7 @@
|
|
|
3840
3842
|
// Form array
|
|
3841
3843
|
else if (control instanceof i1.FormArray) {
|
|
3842
3844
|
control.controls.forEach(function (child, index) {
|
|
3843
|
-
getFormErrors(child, Object.assign(Object.assign({}, opts), { controlName: (opts.controlName || '') + '
|
|
3845
|
+
getFormErrors(child, Object.assign(Object.assign({}, opts), { controlName: (opts.controlName || '') + '.' + index, result: opts.result // Make sure to keep the same result object
|
|
3844
3846
|
}));
|
|
3845
3847
|
});
|
|
3846
3848
|
}
|