@sumaris-net/ngx-components 2.6.14 → 2.6.16
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/esm2020/src/app/core/form/entity/editor.class.mjs +7 -3
- package/esm2020/src/app/core/form/entity/entity-editor.class.mjs +12 -6
- package/esm2020/src/app/social/message/message.model.mjs +1 -1
- package/fesm2015/sumaris-net.ngx-components.mjs +14 -5
- package/fesm2015/sumaris-net.ngx-components.mjs.map +1 -1
- package/fesm2020/sumaris-net.ngx-components.mjs +14 -5
- package/fesm2020/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/entity/entity-editor.class.d.ts +10 -6
- package/src/assets/manifest.json +1 -1
|
@@ -30338,6 +30338,7 @@ class AppEditor {
|
|
|
30338
30338
|
this._subscription = new Subscription();
|
|
30339
30339
|
this._enabled = false;
|
|
30340
30340
|
this.destroySubject = new Subject();
|
|
30341
|
+
// TODO use RxState instead
|
|
30341
30342
|
this.readySubject = new BehaviorSubject(false);
|
|
30342
30343
|
this.dirtySubject = new BehaviorSubject(false);
|
|
30343
30344
|
this.loadingSubject = new BehaviorSubject(true);
|
|
@@ -30436,7 +30437,9 @@ class AppEditor {
|
|
|
30436
30437
|
}
|
|
30437
30438
|
ngOnInit() {
|
|
30438
30439
|
if (this.formButtonsBar) {
|
|
30439
|
-
this.registerSubscription(this.formButtonsBar.onBack
|
|
30440
|
+
this.registerSubscription(this.formButtonsBar.onBack
|
|
30441
|
+
.pipe(throttleTime(200)) // Avoid to be called twice
|
|
30442
|
+
.subscribe(event => this.goBack(event)));
|
|
30440
30443
|
}
|
|
30441
30444
|
}
|
|
30442
30445
|
ngAfterViewInit() {
|
|
@@ -32156,7 +32159,7 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
32156
32159
|
super(injector.get(ActivatedRoute), injector.get(Router), injector.get(NavController), injector.get(AlertController), injector.get(TranslateService), options);
|
|
32157
32160
|
this.dataType = dataType;
|
|
32158
32161
|
this.dataService = dataService;
|
|
32159
|
-
this
|
|
32162
|
+
this.titleSubject = new BehaviorSubject(undefined);
|
|
32160
32163
|
this.onUpdateView = new EventEmitter();
|
|
32161
32164
|
this.environment = injector.get(ENVIRONMENT);
|
|
32162
32165
|
options = {
|
|
@@ -32192,6 +32195,12 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
32192
32195
|
// FOR DEV ONLY ----
|
|
32193
32196
|
//this.debug = !environment.production;
|
|
32194
32197
|
}
|
|
32198
|
+
/**
|
|
32199
|
+
* @deprecated
|
|
32200
|
+
*/
|
|
32201
|
+
get $title() {
|
|
32202
|
+
return this.titleSubject;
|
|
32203
|
+
}
|
|
32195
32204
|
get usageMode() {
|
|
32196
32205
|
return this._usageMode;
|
|
32197
32206
|
}
|
|
@@ -32238,8 +32247,8 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
32238
32247
|
}
|
|
32239
32248
|
ngOnDestroy() {
|
|
32240
32249
|
super.ngOnDestroy();
|
|
32241
|
-
this
|
|
32242
|
-
this
|
|
32250
|
+
this.titleSubject.complete();
|
|
32251
|
+
this.titleSubject.unsubscribe();
|
|
32243
32252
|
this.onUpdateView.complete();
|
|
32244
32253
|
this.onUpdateView.unsubscribe();
|
|
32245
32254
|
this.savingSubject.unsubscribe();
|
|
@@ -32691,7 +32700,7 @@ class AppEntityEditor extends AppTabEditor {
|
|
|
32691
32700
|
async updateTitle(data) {
|
|
32692
32701
|
data = data || this.data;
|
|
32693
32702
|
const title = await this.computeTitle(data);
|
|
32694
|
-
this
|
|
32703
|
+
this.titleSubject.next(title);
|
|
32695
32704
|
// If NOT data, then add to page history
|
|
32696
32705
|
if (!this.isNewData) {
|
|
32697
32706
|
const page = await this.computePageHistory(title);
|