@sumaris-net/ngx-components 1.23.49 → 1.23.51
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 +169 -35
- 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/doc/changelog.md +6 -0
- package/esm2015/src/app/core/form/form.utils.js +2 -2
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +3 -5
- package/esm2015/src/app/shared/material/chips/material.chips.js +2 -3
- package/esm2015/src/app/shared/material/material.testing.module.js +14 -4
- package/esm2015/src/app/shared/observables.js +25 -18
- package/esm2015/src/app/shared/services/memory-entity-service.class.js +1 -5
- package/esm2015/src/app/shared/testing/observable.test.js +97 -0
- package/esm2015/sumaris-net.ngx-components.js +7 -6
- package/fesm2015/sumaris-net.ngx-components.js +129 -31
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +1 -1
- package/src/app/core/form/form.utils.d.ts +1 -1
- package/src/app/shared/observables.d.ts +1 -1
- package/src/app/shared/testing/observable.test.d.ts +22 -0
- package/sumaris-net.ngx-components.d.ts +6 -5
- package/sumaris-net.ngx-components.metadata.json +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { AbstractControl, FormArray, FormBuilder, FormGroup, ValidatorFn } from
|
|
|
2
2
|
import { Entity } from '../services/model/entity.model';
|
|
3
3
|
import { filterNumberInput, selectInputContent } from '../../shared/inputs';
|
|
4
4
|
import { WaitForOptions } from '../../shared/observables';
|
|
5
|
-
import {
|
|
5
|
+
import { clearValueInArray, copyEntity2Form, disableControls, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, pushValueInArray, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
|
|
6
6
|
export declare type IAppFormGetter = () => IAppForm;
|
|
7
7
|
export declare interface OnReady {
|
|
8
8
|
ngOnReady(): any;
|
|
@@ -3,7 +3,7 @@ import { Predicate } from '@angular/core';
|
|
|
3
3
|
export declare interface FirstOptions {
|
|
4
4
|
timeout?: number;
|
|
5
5
|
stop?: Observable<any>;
|
|
6
|
-
stopError?: boolean;
|
|
6
|
+
stopError?: boolean | string | Error;
|
|
7
7
|
}
|
|
8
8
|
export declare interface WaitForOptions extends FirstOptions {
|
|
9
9
|
dueTime?: number;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { FirstOptions, WaitForOptions } from '../observables';
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
export declare class ObservableTestPage implements OnDestroy {
|
|
5
|
+
_stopSubject: Subject<void>;
|
|
6
|
+
$value: Subject<any>;
|
|
7
|
+
runningTaskCount: number;
|
|
8
|
+
taskId: number;
|
|
9
|
+
options: Partial<FirstOptions>;
|
|
10
|
+
resultDiv: ElementRef;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
setOptions(opts: any): void;
|
|
14
|
+
setOptionsError(errorMessage: any): void;
|
|
15
|
+
firstNotNilPromise(opts?: FirstOptions): Promise<void>;
|
|
16
|
+
waitForTrue(opts?: WaitForOptions): Promise<void>;
|
|
17
|
+
execute<T, O extends WaitForOptions = WaitForOptions>(fn: (o: Observable<any>, opts: O) => Promise<T>, opts?: O, logPrefix?: string): Promise<void>;
|
|
18
|
+
emit(value: any): void;
|
|
19
|
+
stop(): void;
|
|
20
|
+
log(message: string, ...args: any): void;
|
|
21
|
+
appendLog(message: string): void;
|
|
22
|
+
}
|
|
@@ -9,12 +9,13 @@ export { AccountValidatorService as ɵf } from './src/app/core/services/validato
|
|
|
9
9
|
export { LocalSettingsValidatorService as ɵi } from './src/app/core/services/validator/local-settings.validator';
|
|
10
10
|
export { UserSettingsValidatorService as ɵh } from './src/app/core/services/validator/user-settings.validator';
|
|
11
11
|
export { isFocusableElement as ɵd } from './src/app/shared/focusable';
|
|
12
|
-
export { MatBadgeIconTestPage as
|
|
13
|
-
export { DateTestPage as
|
|
12
|
+
export { MatBadgeIconTestPage as ɵo } from './src/app/shared/material/badge/badge-icon.test';
|
|
13
|
+
export { DateTestPage as ɵm } from './src/app/shared/material/datetime/testing/mat-date.test';
|
|
14
14
|
export { MatNumpadDomService as ɵb } from './src/app/shared/material/numpad/numpad.dom-service';
|
|
15
|
-
export { NumpadTestPage as
|
|
15
|
+
export { NumpadTestPage as ɵn } from './src/app/shared/material/numpad/testing/numpad.test';
|
|
16
16
|
export { StartableObservableService as ɵc } from './src/app/shared/services/startable-observable-service.class';
|
|
17
17
|
export { CustomReuseStrategy as ɵa } from './src/app/shared/shared-routing.module';
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
18
|
+
export { ObservableTestPage as ɵl } from './src/app/shared/testing/observable.test';
|
|
19
|
+
export { ToastTestingPage as ɵq } from './src/app/shared/toast/toast.testing';
|
|
20
|
+
export { ToastTestingModule as ɵp } from './src/app/shared/toast/toast.testing.module';
|
|
20
21
|
export { UserEventNotificationList as ɵk } from './src/app/social/user-event/notification/user-event-notification.list';
|