ngx-universal-zone 1.0.7 → 2.0.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.
Files changed (51) hide show
  1. package/README.md +2 -0
  2. package/analytics/index.d.ts +237 -4
  3. package/database/index.d.ts +122 -6
  4. package/fesm2022/ngx-universal-zone-analytics.mjs +12 -12
  5. package/fesm2022/ngx-universal-zone-analytics.mjs.map +1 -1
  6. package/fesm2022/ngx-universal-zone-database.mjs +8 -22
  7. package/fesm2022/ngx-universal-zone-database.mjs.map +1 -1
  8. package/fesm2022/ngx-universal-zone-pipes.mjs +6 -6
  9. package/fesm2022/ngx-universal-zone-pipes.mjs.map +1 -1
  10. package/fesm2022/ngx-universal-zone-pub-sub.mjs +7 -7
  11. package/fesm2022/ngx-universal-zone-pub-sub.mjs.map +1 -1
  12. package/fesm2022/ngx-universal-zone-ui.mjs +20 -20
  13. package/fesm2022/ngx-universal-zone-ui.mjs.map +1 -1
  14. package/fesm2022/ngx-universal-zone.mjs +20 -34
  15. package/fesm2022/ngx-universal-zone.mjs.map +1 -1
  16. package/index.d.ts +184 -3
  17. package/package.json +4 -4
  18. package/pipes/index.d.ts +29 -2
  19. package/pub-sub/index.d.ts +37 -2
  20. package/ui/index.d.ts +56 -5
  21. package/analytics/analytics.module.d.ts +0 -2
  22. package/analytics/base-analytics.service.d.ts +0 -135
  23. package/analytics/firebase-analytics.service.d.ts +0 -81
  24. package/analytics/router-analytics.service.d.ts +0 -16
  25. package/database/db-base.service.d.ts +0 -37
  26. package/database/db-setting-constant.d.ts +0 -7
  27. package/database/db-web.service.d.ts +0 -50
  28. package/database/db.module.d.ts +0 -9
  29. package/database/schema.service.d.ts +0 -25
  30. package/pipes/formateDate.pipe.d.ts +0 -8
  31. package/pipes/safe.pipe.d.ts +0 -18
  32. package/pub-sub/i-hash.d.ts +0 -10
  33. package/pub-sub/ngx-pub-sub.module.d.ts +0 -7
  34. package/pub-sub/ngx-pub-sub.service.d.ts +0 -27
  35. package/pub-sub/subject-type.enum.d.ts +0 -5
  36. package/public-api.d.ts +0 -6
  37. package/shared/app-injector.d.ts +0 -6
  38. package/shared/app-setting.service.d.ts +0 -18
  39. package/shared/flag-based-preloading-strategy.d.ts +0 -12
  40. package/shared/helper.service.d.ts +0 -15
  41. package/shared/message-bus/index.d.ts +0 -4
  42. package/shared/message-bus/message-bus.d.ts +0 -15
  43. package/shared/message-bus/message-bus.testing.d.ts +0 -9
  44. package/shared/message-bus/messages.d.ts +0 -2
  45. package/shared/message-bus/models.d.ts +0 -39
  46. package/shared/universal-zone.provider.d.ts +0 -2
  47. package/ui/directives/directives.module.d.ts +0 -9
  48. package/ui/directives/long-ress.directive.d.ts +0 -21
  49. package/ui/directives/only-number.directive.d.ts +0 -7
  50. package/ui/no-data/no-data.component.d.ts +0 -13
  51. package/ui/no-data/no-data.module.d.ts +0 -8
@@ -1,135 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export interface IAnalyticsConfig {
3
- apiKey: string;
4
- authDomain: string;
5
- projectId: string;
6
- storageBucket: string;
7
- messagingSenderId: string;
8
- appId: string;
9
- measurementId: string;
10
- }
11
- export interface IAnalyticsService {
12
- /**
13
- * Track page view
14
- */
15
- trackPageView(pageName: string, pageTitle?: string): void;
16
- /**
17
- * Track button click events
18
- */
19
- trackButtonClick(buttonName: string, buttonLocation?: string): void;
20
- /**
21
- * Track user navigation events
22
- */
23
- trackNavigation(from: string, to: string, method?: string): void;
24
- /**
25
- * Track user actions in the app
26
- */
27
- trackUserAction(action: string, category: string, label?: string, value?: number): void;
28
- /**
29
- * Track business-specific events
30
- */
31
- trackBusinessEvent(eventName: string, parameters: {
32
- [key: string]: any;
33
- }): void;
34
- /**
35
- * Track errors that occur in the app
36
- */
37
- trackError(errorMessage: string, errorLocation: string, errorType?: string): void;
38
- /**
39
- * Set user ID for analytics
40
- */
41
- setUserId(userId: string): void;
42
- /**
43
- * Set user properties
44
- */
45
- setUserProperties(properties: {
46
- [key: string]: any;
47
- }): void;
48
- /**
49
- * Test analytics functionality
50
- */
51
- testAnalytics(): void;
52
- /**
53
- * Get analytics debug info
54
- */
55
- getDebugInfo(): any;
56
- /**
57
- * Dashboard specific events
58
- */
59
- trackDashboardEvents: {
60
- dashboardViewed(): void;
61
- dashboardButtonClicked(buttonType: string): void;
62
- storeInfoClicked(): void;
63
- lottieAnimationCompleted(): void;
64
- syncStatusViewed(status: string): void;
65
- };
66
- }
67
- export declare abstract class BaseAnalyticsService implements IAnalyticsService {
68
- protected isDebugMode: boolean;
69
- protected eventCount: number;
70
- abstract trackPageView(pageName: string, pageTitle?: string): void;
71
- abstract trackButtonClick(buttonName: string, buttonLocation?: string): void;
72
- abstract trackNavigation(from: string, to: string, method?: string): void;
73
- abstract trackUserAction(action: string, category: string, label?: string, value?: number): void;
74
- abstract trackBusinessEvent(eventName: string, parameters: {
75
- [key: string]: any;
76
- }): void;
77
- abstract trackError(errorMessage: string, errorLocation: string, errorType?: string): void;
78
- abstract setUserId(userId: string): void;
79
- abstract setUserProperties(properties: {
80
- [key: string]: any;
81
- }): void;
82
- abstract testAnalytics(): void;
83
- abstract getDebugInfo(): any;
84
- /**
85
- * Dashboard specific events
86
- */
87
- abstract trackDashboardEvents: {
88
- dashboardViewed(): void;
89
- dashboardButtonClicked(buttonType: string): void;
90
- storeInfoClicked(): void;
91
- lottieAnimationCompleted(): void;
92
- syncStatusViewed(status: string): void;
93
- };
94
- /**
95
- * Internal method to track event count in debug mode
96
- */
97
- protected incrementEventCount(): void;
98
- /**
99
- * Log debug information
100
- */
101
- protected logDebug(message: string, data?: any): void;
102
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseAnalyticsService, never>;
103
- static ɵprov: i0.ɵɵInjectableDeclaration<BaseAnalyticsService>;
104
- }
105
- /**
106
- * No-op implementation for development environment
107
- */
108
- export declare class NoOpAnalyticsService extends BaseAnalyticsService {
109
- trackPageView(pageName: string, pageTitle?: string): void;
110
- trackButtonClick(buttonName: string, buttonLocation?: string): void;
111
- trackNavigation(from: string, to: string, method?: string): void;
112
- trackUserAction(action: string, category: string, label?: string, value?: number): void;
113
- trackBusinessEvent(eventName: string, parameters: {
114
- [key: string]: any;
115
- }): void;
116
- trackError(errorMessage: string, errorLocation: string, errorType?: string): void;
117
- setUserId(userId: string): void;
118
- setUserProperties(properties: {
119
- [key: string]: any;
120
- }): void;
121
- testAnalytics(): void;
122
- getDebugInfo(): any;
123
- /**
124
- * Dashboard specific events
125
- */
126
- trackDashboardEvents: {
127
- dashboardViewed: () => void;
128
- dashboardButtonClicked: (buttonType: string) => void;
129
- storeInfoClicked: () => void;
130
- lottieAnimationCompleted: () => void;
131
- syncStatusViewed: (status: string) => void;
132
- };
133
- static ɵfac: i0.ɵɵFactoryDeclaration<NoOpAnalyticsService, never>;
134
- static ɵprov: i0.ɵɵInjectableDeclaration<NoOpAnalyticsService>;
135
- }
@@ -1,81 +0,0 @@
1
- import { BaseAnalyticsService, IAnalyticsConfig } from './base-analytics.service';
2
- import * as i0 from "@angular/core";
3
- export interface IFirebaseAnalytics {
4
- logEvent: (eventName: string, parameters?: {
5
- [key: string]: any;
6
- }) => void;
7
- setUserId: (userId: string) => void;
8
- setUserProperties: (properties: {
9
- [key: string]: any;
10
- }) => void;
11
- setCurrentScreen: (screenName: string) => void;
12
- }
13
- export declare class FirebaseAnalyticsService extends BaseAnalyticsService {
14
- private analytics;
15
- private config;
16
- constructor();
17
- /**
18
- * Initialize Firebase Analytics
19
- */
20
- initialize(analytics: IFirebaseAnalytics, config: IAnalyticsConfig, isDebugMode?: boolean): void;
21
- /**
22
- * Monitor gtag calls for debugging
23
- */
24
- private monitorGtagCalls;
25
- /**
26
- * Track page view
27
- */
28
- trackPageView(pageName: string, pageTitle?: string): void;
29
- /**
30
- * Track button click events
31
- */
32
- trackButtonClick(buttonName: string, buttonLocation?: string): void;
33
- /**
34
- * Track user navigation events
35
- */
36
- trackNavigation(from: string, to: string, method?: string): void;
37
- /**
38
- * Track user actions in the app
39
- */
40
- trackUserAction(action: string, category: string, label?: string, value?: number): void;
41
- /**
42
- * Track business-specific events
43
- */
44
- trackBusinessEvent(eventName: string, parameters: {
45
- [key: string]: any;
46
- }): void;
47
- /**
48
- * Track errors that occur in the app
49
- */
50
- trackError(errorMessage: string, errorLocation: string, errorType?: string): void;
51
- /**
52
- * Set user ID for analytics
53
- */
54
- setUserId(userId: string): void;
55
- /**
56
- * Set user properties
57
- */
58
- setUserProperties(properties: {
59
- [key: string]: any;
60
- }): void;
61
- /**
62
- * Test analytics functionality
63
- */
64
- testAnalytics(): void;
65
- /**
66
- * Get analytics debug info
67
- */
68
- getDebugInfo(): any;
69
- /**
70
- * Dashboard specific events
71
- */
72
- trackDashboardEvents: {
73
- dashboardViewed: () => void;
74
- dashboardButtonClicked: (buttonType: string) => void;
75
- storeInfoClicked: () => void;
76
- lottieAnimationCompleted: () => void;
77
- syncStatusViewed: (status: string) => void;
78
- };
79
- static ɵfac: i0.ɵɵFactoryDeclaration<FirebaseAnalyticsService, never>;
80
- static ɵprov: i0.ɵɵInjectableDeclaration<FirebaseAnalyticsService>;
81
- }
@@ -1,16 +0,0 @@
1
- import { Router } from '@angular/router';
2
- import { BaseAnalyticsService } from './base-analytics.service';
3
- import * as i0 from "@angular/core";
4
- export declare class RouterAnalyticsService {
5
- private router;
6
- private analyticsService;
7
- private previousUrl;
8
- private currentUrl;
9
- constructor(router: Router, analyticsService: BaseAnalyticsService);
10
- private initializeRouterTracking;
11
- private trackPageView;
12
- private trackNavigation;
13
- private getPageNameFromUrl;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<RouterAnalyticsService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<RouterAnalyticsService>;
16
- }
@@ -1,37 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { ITableOptions } from "./schema.service";
3
- import { DbFilter } from "./db-web.service";
4
- export declare class DbServiceConfig {
5
- dbType: DbServiceType;
6
- dbName: string;
7
- schema: ITableOptions[];
8
- }
9
- export declare enum DbServiceType {
10
- IndexDd = 0,
11
- Sqlite = 1
12
- }
13
- export declare abstract class DbService {
14
- dbInitialized$: Observable<any>;
15
- get Db(): any;
16
- putLocal(store: any, data: any): Promise<{
17
- rowsAffected: any;
18
- insertId: any;
19
- }>;
20
- putLocalRx(store: any, data: any): Observable<any>;
21
- get<T>(store: string, key: any): Promise<T>;
22
- getRx<T>(store: string, key: any): Observable<T>;
23
- getAll<T>(store: string, opt?: DbFilter): Promise<T>;
24
- getAllRx<T>(store: string, opt?: DbFilter): Observable<T>;
25
- remove(store: any, id: any): Promise<any>;
26
- removeRx(store: any, key: any): Observable<any>;
27
- removeAll(store: any): Promise<any>;
28
- removeAllRx(store: string): Observable<any>;
29
- count(store: any, opts?: {
30
- key: any;
31
- }): Promise<number>;
32
- countRx(store: any, opts?: {
33
- key: any;
34
- }): Observable<number>;
35
- deleteDb(): Promise<any>;
36
- deleteTable(store: any): Observable<void>;
37
- }
@@ -1,7 +0,0 @@
1
- import { ITableOptions } from "./schema.service";
2
- export declare class DbSettingConstant {
3
- static readonly SETTING = "setting";
4
- }
5
- export declare const DbSettingConfig: {
6
- schema: ITableOptions;
7
- };
@@ -1,50 +0,0 @@
1
- import Dexie from 'dexie';
2
- import { Observable } from 'rxjs';
3
- import { SchemaService } from './schema.service';
4
- import { DbService, DbServiceConfig } from './db-base.service';
5
- export declare class DbWebService extends Dexie implements DbService {
6
- private config;
7
- private schemaService;
8
- private _db;
9
- private dbInitialized;
10
- constructor(config: DbServiceConfig, schemaService: SchemaService);
11
- dbInitialized$: Observable<any>;
12
- get Db(): Dexie;
13
- putLocal(store: any, data: any): Promise<{
14
- rowsAffected: any;
15
- insertId: any;
16
- }>;
17
- putLocalRx(store: any, data: any): Observable<unknown>;
18
- get<T>(store: string, key: any): Promise<T>;
19
- getRx<T>(store: string, key: any): Observable<T>;
20
- getByFieldName<T>(storeName: any, fieldName: any, key: any): Promise<Array<T>>;
21
- getAll<T>(store: string, opt?: DbFilter): Promise<T>;
22
- getAllRx<T>(store: string, opt?: DbFilter): Observable<T>;
23
- remove(store: any, key: any): Promise<any>;
24
- removeRx(store: any, key: any): Observable<any>;
25
- removeAll(store: any): Promise<void>;
26
- removeAllRx(store: string): Observable<any[]>;
27
- count(store: any, opts?: {
28
- key: any;
29
- }): Promise<number>;
30
- countRx(store: any, opts?: {
31
- key: any;
32
- }): Observable<number>;
33
- deleteDb(): Promise<unknown>;
34
- deleteTable(store: any): Observable<void>;
35
- }
36
- export interface DbFilter {
37
- key?: any;
38
- value?: any;
39
- keyRange?: KeyRangeType;
40
- pageIndex?: number;
41
- pageSize?: number;
42
- sortBy?: any;
43
- sortType?: 'asc' | 'desc';
44
- }
45
- export declare enum KeyRangeType {
46
- equalToIgnoreCase = 1,
47
- startsWithIgnoreCase = 2,
48
- equalTo = 3,
49
- notEqualTo = 4
50
- }
@@ -1,9 +0,0 @@
1
- import { EnvironmentProviders, Type } from '@angular/core';
2
- import { SchemaService } from './schema.service';
3
- import { DbWebService } from './db-web.service';
4
- import { DbService } from './db-base.service';
5
- export declare function dbFactory(schemaSvc: SchemaService, customDbService?: Type<DbService>): DbWebService | DbService;
6
- /**
7
- * Optionally accepts a custom DbService class (e.g., from ngx-ionic-zone).
8
- */
9
- export declare function provideDb(customDbService?: Type<DbService>): EnvironmentProviders;
@@ -1,25 +0,0 @@
1
- import { DbServiceConfig } from './db-base.service';
2
- import * as i0 from "@angular/core";
3
- export interface ITableOptions {
4
- name: string;
5
- columns: Array<{
6
- name: any;
7
- isPrimaryKey?: any;
8
- type?: any;
9
- }>;
10
- }
11
- export declare class SchemaService {
12
- schema: {
13
- stores: ITableOptions[];
14
- };
15
- tables: Record<string, string>;
16
- private _config;
17
- /**
18
- * Represents a SchemaService that manages the database schema.
19
- */
20
- constructor();
21
- get config(): DbServiceConfig;
22
- init(config: DbServiceConfig): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<SchemaService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<SchemaService>;
25
- }
@@ -1,8 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class FormateDatePipe {
4
- constructor();
5
- transform(date: any, ft: string): Observable<string>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<FormateDatePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<FormateDatePipe, "formateDate", true>;
8
- }
@@ -1,18 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class SafePipe implements PipeTransform {
5
- private sanitizer;
6
- constructor(sanitizer: DomSanitizer);
7
- transform(data: any, type: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<SafePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<SafePipe, "safe", true>;
10
- }
11
- export declare enum SecurityContext {
12
- NONE = "none",
13
- HTML = "html",
14
- STYLE = "style",
15
- SCRIPT = "script",
16
- URL = "url",
17
- RESOURCE_URL = "resource"
18
- }
@@ -1,10 +0,0 @@
1
- import { Subject } from 'rxjs/internal/Subject';
2
- import { ReplaySubject } from 'rxjs/internal/ReplaySubject';
3
- import { BehaviorSubject } from 'rxjs/internal/BehaviorSubject';
4
- import { SubjectType } from './subject-type.enum';
5
- export interface IHash {
6
- [key: string]: {
7
- type: SubjectType;
8
- ref: Subject<any> | BehaviorSubject<any> | ReplaySubject<any>;
9
- };
10
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- export declare class NgxPubSubModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxPubSubModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<NgxPubSubModule, never, [typeof i1.CommonModule], never>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<NgxPubSubModule>;
7
- }
@@ -1,27 +0,0 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Subscription, Observable, SchedulerLike } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class NgxPubSubService implements OnDestroy {
5
- private eventObservableMapping;
6
- constructor();
7
- publishEvent(eventName: string, data?: any): void;
8
- subscribe(eventName: string, next?: (value: any) => void, error?: (error: any) => any, complete?: () => void): Subscription;
9
- /**
10
- * Use this method to get the Observable associated with the event.
11
- * Useful when you would like to apply additional rxjs operators like debounceTime
12
- */
13
- getEventObservable(eventName: string): Observable<any>;
14
- registerEventWithLastValue(name: string, defaultValue: any): void;
15
- registerEventWithHistory(name: string, bufferSize?: number, windowTime?: number, scheduler?: SchedulerLike): void;
16
- publishWithLast(eventName: string, data?: any): void;
17
- publishWithHistory(eventName: string, data?: any): void;
18
- completeEvent(eventName: string): void;
19
- ngOnDestroy(): void;
20
- private publishNext;
21
- private checkEventType;
22
- private createSubjectIfNotExist;
23
- private validateEventName;
24
- private completeObservableAndDestroyMapping;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<NgxPubSubService, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<NgxPubSubService>;
27
- }
@@ -1,5 +0,0 @@
1
- export declare enum SubjectType {
2
- Subject = 0,
3
- BehaviorSubject = 1,
4
- ReplaySubject = 2
5
- }
package/public-api.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './shared/app-injector';
2
- export * from './shared/app-setting.service';
3
- export * from './shared/helper.service';
4
- export * from './shared/universal-zone.provider';
5
- export * from './shared/message-bus';
6
- export * from './shared/flag-based-preloading-strategy';
@@ -1,6 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- export declare class AppInjector {
3
- private static injector;
4
- static setInjector(injector: Injector): void;
5
- static getInjector(): Injector;
6
- }
@@ -1,18 +0,0 @@
1
- import { DbService, SchemaService } from '../database';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class AppSettingService {
5
- private _dbService;
6
- private _schemaSvc;
7
- protected static settingCache: Map<any, any>;
8
- constructor(_dbService: DbService, _schemaSvc: SchemaService);
9
- protected get<T>(key: string): Promise<T>;
10
- protected getRx<T>(key: string): Observable<T>;
11
- protected put(key: string, values: any): Promise<void>;
12
- protected putRx(key: string, values: any): Observable<void>;
13
- protected remove(key: string): Promise<void>;
14
- protected removeRx(key: string): Observable<void>;
15
- protected removeCache(key: string): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<AppSettingService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<AppSettingService>;
18
- }
@@ -1,12 +0,0 @@
1
- import { PreloadingStrategy, Route, Router } from "@angular/router";
2
- import { Observable } from "rxjs";
3
- import * as i0 from "@angular/core";
4
- export declare class FlagBasedPreloadingStrategy extends PreloadingStrategy {
5
- private router;
6
- constructor(router: Router);
7
- preload(route: Route, load: () => Observable<any>): Observable<any>;
8
- private getCurrentRouteData;
9
- private waitForNetworkIdle;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FlagBasedPreloadingStrategy, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<FlagBasedPreloadingStrategy>;
12
- }
@@ -1,15 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class HelperService {
3
- constructor();
4
- deepCopy(obj: any): any;
5
- toDataURL(url: any): Promise<unknown>;
6
- generateGuid(): string;
7
- getRandomNumber(): number;
8
- getRandomColor(): string;
9
- getFormValidationErrors(formName: any): void;
10
- removeFormValidationErrors(formName: any, controlName: any, errorKey: any): void;
11
- downloadCanvasAsImage(canvas: HTMLCanvasElement): void;
12
- getParamsObjectsFromUrl(url: any): any;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<HelperService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<HelperService>;
15
- }
@@ -1,4 +0,0 @@
1
- export * from './message-bus';
2
- export * from './models';
3
- export * from './message-bus.testing';
4
- export * from './messages';
@@ -1,15 +0,0 @@
1
- import { Message } from './models';
2
- import * as i0 from "@angular/core";
3
- export declare const EVENT_NAME = "uz-message-bus";
4
- export declare class MessageBus {
5
- private readonly eventHandler;
6
- private messageSubject;
7
- event$: import("rxjs").Observable<Message>;
8
- constructor();
9
- dispatch(message: Message): void;
10
- startListening(): void;
11
- stopListening(): void;
12
- private handleEvent;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageBus, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<MessageBus>;
15
- }
@@ -1,9 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { MessageBus } from './message-bus';
3
- import { Message } from './models';
4
- export declare function provideTestMessages(getMessages: () => Observable<Message>): {
5
- provide: typeof MessageBus;
6
- useFactory: () => {
7
- event$: Observable<Message>;
8
- };
9
- };
@@ -1,2 +0,0 @@
1
- export {};
2
- /** Indicates that the global styling has changed & loaded (Light/Dark) */
@@ -1,39 +0,0 @@
1
- import { OperatorFunction } from 'rxjs';
2
- /**
3
- * Messaging system is taken from NGRX (Actions) and adapted to fit our needs.
4
- */
5
- export interface Message {
6
- type: string;
7
- }
8
- export declare interface TypedMessage<T extends string> extends Message {
9
- readonly type: T;
10
- }
11
- export declare function props<P extends object>(): Props<P>;
12
- export type FunctionWithParametersType<P extends unknown[], R = void> = (...args: P) => R;
13
- /**
14
- * A function that returns an object in the shape of the `Action` interface. Configured using `createAction`.
15
- */
16
- export type Creator<P extends any[] = any[], R extends object = object> = FunctionWithParametersType<P, R>;
17
- export interface Props<T> {
18
- _as: 'props';
19
- _p: T;
20
- }
21
- /**
22
- * See `Creator`.
23
- */
24
- export type MessageCreator<T extends string = string, C extends Creator = Creator> = C & TypedMessage<T>;
25
- export declare const arraysAreNotAllowedMsg = "arrays are not allowed in action creators";
26
- type ArraysAreNotAllowed = typeof arraysAreNotAllowedMsg;
27
- export declare const typePropertyIsNotAllowedMsg = "type property is not allowed in action creators";
28
- type TypePropertyIsNotAllowed = typeof typePropertyIsNotAllowedMsg;
29
- export type NotAllowedCheck<T extends object> = T extends any[] ? ArraysAreNotAllowed : T extends {
30
- type: any;
31
- } ? TypePropertyIsNotAllowed : unknown;
32
- export declare function createMessage<T extends string>(type: T): MessageCreator<T, () => TypedMessage<T>>;
33
- export declare function createMessage<T extends string, P extends object>(type: T, config: Props<P> & NotAllowedCheck<P>): MessageCreator<T, (props: P & NotAllowedCheck<P>) => P & TypedMessage<T>>;
34
- export declare function createMessage<T extends string, P extends any[], R extends object>(type: T, creator: Creator<P, R> & NotAllowedCheck<R>): FunctionWithParametersType<P, R & TypedMessage<T>> & TypedMessage<T>;
35
- export declare function ofMessageType<AC extends MessageCreator<string, Creator>[], U extends Message = Message, V = ReturnType<AC[number]>>(...allowedTypes: AC): OperatorFunction<U, V>;
36
- export declare function ofMessageType<E extends Extract<U, {
37
- type: T1;
38
- }>, AC extends MessageCreator<string, Creator>, T1 extends string | AC, U extends Message = Message, V = T1 extends string ? E : ReturnType<Extract<T1, AC>>>(t1: T1): OperatorFunction<U, V>;
39
- export {};
@@ -1,2 +0,0 @@
1
- import { EnvironmentProviders } from "@angular/core";
2
- export declare const provideUniversalZone: () => EnvironmentProviders;
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./only-number.directive";
3
- import * as i2 from "./long-ress.directive";
4
- import * as i3 from "@angular/common";
5
- export declare class DirectivesModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<DirectivesModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<DirectivesModule, [typeof i1.OnlyNumberDirective, typeof i2.LongPressDirective], [typeof i3.CommonModule], [typeof i1.OnlyNumberDirective, typeof i2.LongPressDirective]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<DirectivesModule>;
9
- }
@@ -1,21 +0,0 @@
1
- import { ElementRef, EventEmitter } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class LongPressDirective {
4
- private elRef;
5
- constructor(elRef: ElementRef);
6
- set duration(v: number | string);
7
- disabled: boolean;
8
- set _continuousInterval(v: number);
9
- private _duration;
10
- private isContinuous;
11
- private continuousInterval;
12
- longPressStart: EventEmitter<MouseEvent | TouchEvent>;
13
- longPressFinish: EventEmitter<MouseEvent | TouchEvent>;
14
- longPressCancel: EventEmitter<MouseEvent | TouchEvent>;
15
- private pressing;
16
- private longPressSubscription?;
17
- onPress(event: MouseEvent | TouchEvent): void;
18
- onRelease(event: MouseEvent | TouchEvent): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<LongPressDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<LongPressDirective, "[longPress]", never, { "duration": { "alias": "longPress"; "required": false; }; "disabled": { "alias": "longPressDisabled"; "required": false; }; "_continuousInterval": { "alias": "longPressInterval"; "required": false; }; }, { "longPressStart": "longPressStart"; "longPressFinish": "longPressFinish"; "longPressCancel": "longPressCancel"; }, never, never, false, never>;
21
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class OnlyNumberDirective {
3
- constructor();
4
- onKeyDown(event: KeyboardEvent): void;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<OnlyNumberDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<OnlyNumberDirective, "[onlyNumber]", never, {}, {}, never, never, false, never>;
7
- }
@@ -1,13 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- export declare class NoDataComponent implements OnInit {
5
- private domSanitizer;
6
- icon: import("@angular/core").InputSignal<string>;
7
- message: import("@angular/core").InputSignal<string>;
8
- iconHtml: SafeHtml;
9
- constructor(domSanitizer: DomSanitizer);
10
- ngOnInit(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<NoDataComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<NoDataComponent, "app-no-data", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, ["*"], false, never>;
13
- }