@sumaris-net/ngx-components 0.16.6 → 0.16.10
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/ngx-sumaris-components.umd.js +8 -8
- package/bundles/ngx-sumaris-components.umd.js.map +1 -1
- package/bundles/ngx-sumaris-components.umd.min.js +2 -2
- package/bundles/ngx-sumaris-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/editor.class.js +2 -2
- package/esm2015/src/app/core/form/entity-editor.class.js +2 -2
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +7 -7
- package/fesm2015/ngx-sumaris-components.js +8 -8
- package/fesm2015/ngx-sumaris-components.js.map +1 -1
- package/package.json +1 -1
|
@@ -1282,7 +1282,7 @@
|
|
|
1282
1282
|
});
|
|
1283
1283
|
MatAutocompleteField.prototype.ngOnInit = function () {
|
|
1284
1284
|
var _this = this;
|
|
1285
|
-
var _a;
|
|
1285
|
+
var _a, _b;
|
|
1286
1286
|
this.formControl = this.formControl || this.formControlName && this.formGroupDir && this.formGroupDir.form.get(this.formControlName);
|
|
1287
1287
|
if (!this.formControl)
|
|
1288
1288
|
throw new Error('Missing mandatory attribute \'formControl\' or \'formControlName\' in <mat-autocomplete-field>.');
|
|
@@ -1325,11 +1325,11 @@
|
|
|
1325
1325
|
// Default comparator (only need when using mat-select)
|
|
1326
1326
|
if (!this.searchable && !this.compareWith)
|
|
1327
1327
|
this.compareWith = function (o1, o2) { return o1 && o2 && o1.id === o2.id; };
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|| (
|
|
1331
|
-
|| (
|
|
1332
|
-
|| (
|
|
1328
|
+
var classList = (_b = this.classList) === null || _b === void 0 ? void 0 : _b.split(' ');
|
|
1329
|
+
this.panelWidth = this.panelWidth || (classList && ((classList.includes('min-width-medium') && '300px')
|
|
1330
|
+
|| (classList.includes('min-width-large') && '400px')
|
|
1331
|
+
|| (classList.includes('min-width-xlarge') && '450px')
|
|
1332
|
+
|| (classList.includes('mat-autocomplete-panel-full-size') && '100vw')));
|
|
1333
1333
|
this.debounceTime = toNumber(this.debounceTime, 250);
|
|
1334
1334
|
this.suggestLengthThreshold = this.suggestLengthThreshold || 0;
|
|
1335
1335
|
// No suggestFn: filter on the given items
|
|
@@ -25109,7 +25109,7 @@
|
|
|
25109
25109
|
if (!c.empty && !c.valid) {
|
|
25110
25110
|
if (c.pending) {
|
|
25111
25111
|
var path_2 = c.constructor.name.toLowerCase();
|
|
25112
|
-
console.warn(prefix + "
|
|
25112
|
+
console.warn(prefix + " -> " + path_2 + ": waiting while pending...");
|
|
25113
25113
|
AppFormUtils.waitWhilePending(c, { timeout: 1000 })
|
|
25114
25114
|
.then(function () { return _this.logChildrenFormErrors(c.form, prefix, path_2); });
|
|
25115
25115
|
}
|
|
@@ -25378,7 +25378,7 @@
|
|
|
25378
25378
|
idChanged = isNotNil(data.id)
|
|
25379
25379
|
&& this.previousDataId !== undefined // Ignore if first loading (=undefined)
|
|
25380
25380
|
&& this.previousDataId !== data.id;
|
|
25381
|
-
opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && isNil(this.previousDataId) && this.selectedTabIndex < this.tabCount
|
|
25381
|
+
opts = Object.assign({ updateRoute: this._autoUpdateRoute && idChanged && !this.loading, openTabIndex: this._autoOpenNextTab && idChanged && isNil(this.previousDataId) && this.selectedTabIndex + 1 < this.tabCount ? this.selectedTabIndex + 1 : undefined }, opts);
|
|
25382
25382
|
this.data = data;
|
|
25383
25383
|
this.previousDataId = data.id || null;
|
|
25384
25384
|
promiseOrVoid = this.setValue(data);
|