@sumaris-net/ngx-components 1.23.52 → 1.23.54
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 +28 -10
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/form/editor.class.js +5 -1
- package/esm2015/src/app/core/form/form.class.js +5 -1
- package/esm2015/src/app/core/table/table.class.js +10 -12
- package/fesm2015/sumaris-net.ngx-components.js +17 -11
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/editor.class.d.ts +1 -0
- package/src/app/core/form/form.class.d.ts +1 -0
- package/src/app/core/table/table.class.d.ts +1 -0
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -31,7 +31,7 @@ import { MatDialogModule, MAT_DIALOG_DATA, MatDialog } from '@angular/material/d
|
|
|
31
31
|
import { MatAutocomplete, MatAutocompleteTrigger, MatAutocompleteModule, MAT_AUTOCOMPLETE_SCROLL_STRATEGY, MAT_AUTOCOMPLETE_DEFAULT_OPTIONS } from '@angular/material/autocomplete';
|
|
32
32
|
import { __awaiter, __decorate } from 'tslib';
|
|
33
33
|
import { Validators, NG_VALUE_ACCESSOR, FormGroupDirective, AbstractControl, FormGroup, FormArray, FormControl, ReactiveFormsModule, FormBuilder } from '@angular/forms';
|
|
34
|
-
import { timer, merge, fromEvent, BehaviorSubject, Subscription, Subject, isObservable, from, of, noop as noop$9, Observable, defer, forkJoin, interval,
|
|
34
|
+
import { timer, merge, fromEvent, BehaviorSubject, Subscription, Subject, isObservable, from, of, noop as noop$9, Observable, defer, forkJoin, interval, EMPTY } from 'rxjs';
|
|
35
35
|
import { filter, map, takeUntil, first, switchMap, tap, debounceTime, startWith, distinctUntilChanged, mergeMap, catchError, throttleTime, skip, bufferWhen, take } from 'rxjs/operators';
|
|
36
36
|
import { trigger, transition, style, animate, state } from '@angular/animations';
|
|
37
37
|
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
@@ -17826,6 +17826,10 @@ class AppForm {
|
|
|
17826
17826
|
this.markForCheck();
|
|
17827
17827
|
}
|
|
17828
17828
|
}
|
|
17829
|
+
get destroyed() {
|
|
17830
|
+
var _a;
|
|
17831
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
17832
|
+
}
|
|
17829
17833
|
set form(value) {
|
|
17830
17834
|
this.setForm(value);
|
|
17831
17835
|
}
|
|
@@ -23263,6 +23267,10 @@ class AppTable {
|
|
|
23263
23267
|
get paginator() {
|
|
23264
23268
|
return this._paginator || this.childPaginator;
|
|
23265
23269
|
}
|
|
23270
|
+
get destroyed() {
|
|
23271
|
+
var _a;
|
|
23272
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
23273
|
+
}
|
|
23266
23274
|
ngOnInit() {
|
|
23267
23275
|
var _a;
|
|
23268
23276
|
if (this._initialized)
|
|
@@ -23298,17 +23306,11 @@ class AppTable {
|
|
|
23298
23306
|
// Propagate row dirty state to table
|
|
23299
23307
|
this.registerSubscription(this.onStartEditingRow
|
|
23300
23308
|
.pipe(filter(row => (row === null || row === void 0 ? void 0 : row.validator) && true), mergeMap(row => row.validator.valueChanges
|
|
23301
|
-
.pipe(
|
|
23302
|
-
// Stop if next another row, or destroying
|
|
23303
|
-
combineLatest([
|
|
23304
|
-
this.onStartEditingRow,
|
|
23305
|
-
this.destroySubject
|
|
23306
|
-
])
|
|
23309
|
+
.pipe(map(() => { var _a; return (_a = row.validator) === null || _a === void 0 ? void 0 : _a.dirty; }), filter(dirty => dirty === true), first(),
|
|
23307
23310
|
// DEBUG
|
|
23308
|
-
|
|
23309
|
-
//
|
|
23310
|
-
|
|
23311
|
-
), map(() => { var _a; return (_a = row.validator) === null || _a === void 0 ? void 0 : _a.dirty; }), filter(dirty => dirty === true), first())))
|
|
23311
|
+
//tap(() => console.debug("Propagate row's dirty to table..."))
|
|
23312
|
+
// Stop if next another row, or destroying
|
|
23313
|
+
takeUntil(this.onStartEditingRow), takeUntil(this.destroySubject))))
|
|
23312
23314
|
.subscribe(() => this.markAsDirty()));
|
|
23313
23315
|
// Call datasource refresh, on each refresh events
|
|
23314
23316
|
this.registerSubscription(this.onRefresh
|
|
@@ -24688,6 +24690,10 @@ class AppEditor {
|
|
|
24688
24690
|
var _a;
|
|
24689
24691
|
return this.savingSubject.value || ((_a = this.editors) === null || _a === void 0 ? void 0 : _a.some(e => e.saving));
|
|
24690
24692
|
}
|
|
24693
|
+
get destroyed() {
|
|
24694
|
+
var _a;
|
|
24695
|
+
return ((_a = this.destroySubject) === null || _a === void 0 ? void 0 : _a.closed) !== false;
|
|
24696
|
+
}
|
|
24691
24697
|
get tables() {
|
|
24692
24698
|
return this._children && this._children.filter(c => c instanceof AppTable);
|
|
24693
24699
|
}
|