@sumaris-net/ngx-components 0.27.3 → 0.27.4
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 +11 -13
- 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 +1 -3
- package/esm2015/src/app/core/form/entity-editor.class.js +2 -1
- package/esm2015/src/app/core/form/form.class.js +7 -9
- package/fesm2015/sumaris-net.ngx-components.js +5 -8
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.class.d.ts +3 -3
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
3
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
4
4
|
import { IAppForm } from './form.utils';
|
|
5
5
|
import { LocalSettingsService } from '../services/local-settings.service';
|
|
6
6
|
import { MatAutocompleteConfigHolder, MatAutocompleteFieldAddOptions, MatAutocompleteFieldConfig } from '../../shared/material/autocomplete/material.autocomplete';
|
|
@@ -16,7 +16,7 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
16
16
|
protected errorTranslator: FormErrorTranslator;
|
|
17
17
|
protected _enable: boolean;
|
|
18
18
|
protected _loading: boolean;
|
|
19
|
-
protected
|
|
19
|
+
protected _$ready: BehaviorSubject<boolean>;
|
|
20
20
|
protected i18nFieldPrefix: string;
|
|
21
21
|
private _subscription;
|
|
22
22
|
private _form;
|
|
@@ -54,7 +54,7 @@ export declare abstract class AppForm<T> implements IAppForm, OnInit, OnDestroy,
|
|
|
54
54
|
setValue(data: T, opts?: {
|
|
55
55
|
emitEvent?: boolean;
|
|
56
56
|
onlySelf?: boolean;
|
|
57
|
-
}): void;
|
|
57
|
+
}): Promise<void> | void;
|
|
58
58
|
reset(data?: T, opts?: {
|
|
59
59
|
emitEvent?: boolean;
|
|
60
60
|
onlySelf?: boolean;
|