@lenne.tech/ng-base 14.10.1 → 14.11.1

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
@@ -10,7 +10,7 @@
10
10
  "angular-library",
11
11
  "angular13+"
12
12
  ],
13
- "version": "14.10.1",
13
+ "version": "14.11.1",
14
14
  "author": "lenne.Tech <info@lenne.tech> (https://lenne.tech)",
15
15
  "homepage": "https://github.com/lenneTech/ng-base",
16
16
  "license": "MIT",
@@ -1,7 +1,13 @@
1
1
  import { UntypedFormGroup } from '@angular/forms';
2
+ import { ScrollService } from './scroll.service';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class FormsService {
5
+ private document;
6
+ private scrollService;
7
+ constructor(document: Document, scrollService: ScrollService);
4
8
  validateAllFormFields(formGroup: UntypedFormGroup): void;
9
+ findInvalidControls(formGroup: UntypedFormGroup): string[];
10
+ scrollToInvalidControl(form: UntypedFormGroup): void;
5
11
  static ɵfac: i0.ɵɵFactoryDeclaration<FormsService, never>;
6
12
  static ɵprov: i0.ɵɵInjectableDeclaration<FormsService>;
7
13
  }
@@ -5,9 +5,28 @@ import * as i0 from "@angular/core";
5
5
  */
6
6
  export declare class LoaderService {
7
7
  isLoading: BehaviorSubject<boolean>;
8
+ private lastStartTime;
9
+ /**
10
+ * Start loading manually
11
+ */
8
12
  start(): void;
9
- stop(): void;
13
+ /**
14
+ * Stop loading manually
15
+ *
16
+ * @param duration
17
+ */
18
+ stop(duration?: number): void;
19
+ /**
20
+ * Get loader as observable
21
+ */
10
22
  getAsObservable(): Observable<boolean>;
23
+ /**
24
+ * Load until observable done
25
+ *
26
+ * @param observable
27
+ * @param duration
28
+ */
29
+ loadUntilObservable(observable: Observable<unknown>, duration?: number): Observable<unknown>;
11
30
  static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
12
31
  static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
13
32
  }