@cuby-ui/core 0.0.211 → 0.0.213

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.
@@ -1 +1,2 @@
1
1
  export { cuiXNdjsonInterceptor } from './x-ndjson.interceptor';
2
+ export { cuiLoaderInterceptor } from './loader.interceptor';
@@ -0,0 +1,2 @@
1
+ import type { HttpInterceptorFn } from '@angular/common/http';
2
+ export declare const cuiLoaderInterceptor: HttpInterceptorFn;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@cuby-ui/core",
3
- "version": "0.0.211",
3
+ "version": "0.0.213",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18.0.0",
6
6
  "@angular/core": ">=18.0.0",
7
7
  "@angular/forms": ">=18.0.0",
8
- "@cuby-ui/cdk": "^0.0.211",
9
- "@cuby-ui/icons": "^0.0.211",
8
+ "@cuby-ui/cdk": "^0.0.213",
9
+ "@cuby-ui/icons": "^0.0.213",
10
10
  "@maskito/angular": "^2.5.0",
11
11
  "@maskito/core": "^2.5.0",
12
12
  "@maskito/kit": "^2.5.0",
@@ -1,4 +1,6 @@
1
1
  export * from './position.service';
2
2
  export * from './theme.options';
3
3
  export * from './theme.service';
4
+ export * from './loader.options';
5
+ export * from './loader.service';
4
6
  export * from './visual-viewport.service';
@@ -0,0 +1,7 @@
1
+ import type { CuiValueOf } from '@cuby-ui/cdk';
2
+ export declare const LoadingState: {
3
+ readonly LOADING: "loading";
4
+ readonly COMPLETED: "completed";
5
+ readonly INITIAL: "initial";
6
+ };
7
+ export type LoadingState = CuiValueOf<typeof LoadingState>;
@@ -0,0 +1,21 @@
1
+ import { LoadingState } from './loader.options';
2
+ import * as i0 from "@angular/core";
3
+ export declare class LoaderService {
4
+ private readonly RESET_TO_INITIAL_TIME;
5
+ private readonly loaderStateSignal;
6
+ private requestCount;
7
+ private resetLoadingStateTimerId?;
8
+ readonly loaderState: import("@angular/core").Signal<LoadingState>;
9
+ constructor();
10
+ setLoading(): void;
11
+ setCompleted(): void;
12
+ handleCompletedRequest(): void;
13
+ reset(): void;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
15
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
16
+ }
17
+ export declare class AngularOutsideLoaderService {
18
+ private static instance;
19
+ static getInstance(): LoaderService;
20
+ static setInstance(instance: LoaderService): void;
21
+ }