@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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "1.23.49",
4
+ "version": "1.23.51",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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 { pushValueInArray, clearValueInArray, copyEntity2Form, disableControls, getControlFromPath, getFormErrors, getFormValueFromEntity, logFormErrors, markAllAsTouched, markAsUntouched, removeValueInArray, resizeArray, updateValueAndValidity, waitIdle, waitWhilePending } from '../../shared/forms';
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 ɵn } from './src/app/shared/material/badge/badge-icon.test';
13
- export { DateTestPage as ɵl } from './src/app/shared/material/datetime/testing/mat-date.test';
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 ɵm } from './src/app/shared/material/numpad/testing/numpad.test';
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 { ToastTestingPage as ɵp } from './src/app/shared/toast/toast.testing';
19
- export { ToastTestingModule as ɵo } from './src/app/shared/toast/toast.testing.module';
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';