@igo2/core 19.0.3 → 20.0.0-next.2

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 (119) hide show
  1. package/activity/index.d.ts +29 -5
  2. package/analytics/index.d.ts +35 -5
  3. package/config/index.d.ts +63 -3
  4. package/environment/index.d.ts +21 -5
  5. package/fesm2022/igo2-core-activity.mjs +13 -16
  6. package/fesm2022/igo2-core-activity.mjs.map +1 -1
  7. package/fesm2022/igo2-core-analytics.mjs +8 -9
  8. package/fesm2022/igo2-core-analytics.mjs.map +1 -1
  9. package/fesm2022/igo2-core-config.mjs +14 -14
  10. package/fesm2022/igo2-core-config.mjs.map +1 -1
  11. package/fesm2022/igo2-core-language.mjs +13 -15
  12. package/fesm2022/igo2-core-language.mjs.map +1 -1
  13. package/fesm2022/igo2-core-media.mjs +8 -8
  14. package/fesm2022/igo2-core-media.mjs.map +1 -1
  15. package/fesm2022/igo2-core-message.mjs +15 -21
  16. package/fesm2022/igo2-core-message.mjs.map +1 -1
  17. package/fesm2022/igo2-core-monitoring.mjs.map +1 -1
  18. package/fesm2022/igo2-core-network.mjs +9 -11
  19. package/fesm2022/igo2-core-network.mjs.map +1 -1
  20. package/fesm2022/igo2-core-regex.mjs +8 -9
  21. package/fesm2022/igo2-core-regex.mjs.map +1 -1
  22. package/fesm2022/igo2-core-request.mjs +24 -27
  23. package/fesm2022/igo2-core-request.mjs.map +1 -1
  24. package/fesm2022/igo2-core-route.mjs +12 -16
  25. package/fesm2022/igo2-core-route.mjs.map +1 -1
  26. package/fesm2022/igo2-core-storage.mjs +8 -9
  27. package/fesm2022/igo2-core-storage.mjs.map +1 -1
  28. package/fesm2022/igo2-core.mjs +4 -4
  29. package/fesm2022/igo2-core.mjs.map +1 -1
  30. package/index.d.ts +16 -5
  31. package/language/index.d.ts +83 -3
  32. package/media/index.d.ts +27 -5
  33. package/message/index.d.ts +70 -3
  34. package/monitoring/index.d.ts +42 -5
  35. package/network/index.d.ts +27 -5
  36. package/package.json +8 -11
  37. package/regex/index.d.ts +16 -5
  38. package/request/index.d.ts +37 -5
  39. package/route/index.d.ts +63 -5
  40. package/src/theming/themes/_theme.scss +1 -3
  41. package/storage/index.d.ts +46 -5
  42. package/theming/prebuilt-themes/blue-theme.css +833 -553
  43. package/theming/prebuilt-themes/bluedark-theme.css +833 -553
  44. package/theming/prebuilt-themes/bluedq-theme.css +833 -553
  45. package/theming/prebuilt-themes/teal-theme.css +833 -553
  46. package/user/index.d.ts +8 -5
  47. package/activity/activity.interceptor.d.ts +0 -11
  48. package/activity/activity.module.d.ts +0 -8
  49. package/activity/activity.service.d.ts +0 -10
  50. package/activity/public_api.d.ts +0 -3
  51. package/analytics/analytics.interface.d.ts +0 -10
  52. package/analytics/analytics.service.d.ts +0 -22
  53. package/analytics/public_api.d.ts +0 -2
  54. package/config/config-deprecated.d.ts +0 -3
  55. package/config/config.interface.d.ts +0 -12
  56. package/config/config.module.d.ts +0 -11
  57. package/config/config.provider.d.ts +0 -4
  58. package/config/config.service.d.ts +0 -27
  59. package/config/public_api.d.ts +0 -5
  60. package/config/version.d.ts +0 -7
  61. package/environment/environment.interface.d.ts +0 -18
  62. package/environment/public_api.d.ts +0 -1
  63. package/language/language.module.d.ts +0 -7
  64. package/language/public_api.d.ts +0 -2
  65. package/language/shared/index.d.ts +0 -6
  66. package/language/shared/language-mock.provider.d.ts +0 -2
  67. package/language/shared/language.interface.d.ts +0 -10
  68. package/language/shared/language.loader.d.ts +0 -21
  69. package/language/shared/language.provider.d.ts +0 -25
  70. package/language/shared/language.service.d.ts +0 -15
  71. package/language/shared/missing-translation.guard.d.ts +0 -4
  72. package/lib/core.module.d.ts +0 -13
  73. package/media/media.enum.d.ts +0 -9
  74. package/media/media.service.d.ts +0 -16
  75. package/media/public_api.d.ts +0 -2
  76. package/message/message.module.d.ts +0 -11
  77. package/message/public_api.d.ts +0 -2
  78. package/message/shared/index.d.ts +0 -4
  79. package/message/shared/message.enum.d.ts +0 -8
  80. package/message/shared/message.interface.d.ts +0 -21
  81. package/message/shared/message.provider.d.ts +0 -2
  82. package/message/shared/message.service.d.ts +0 -31
  83. package/message/src/message.theme.scss +0 -21
  84. package/monitoring/__mocks__/index.d.ts +0 -1
  85. package/monitoring/__mocks__/monitoring-mock.d.ts +0 -4
  86. package/monitoring/public_api.d.ts +0 -3
  87. package/monitoring/sentry/index.d.ts +0 -3
  88. package/monitoring/sentry/sentry.d.ts +0 -4
  89. package/monitoring/sentry/sentry.interface.d.ts +0 -8
  90. package/monitoring/sentry/sentry.provider.d.ts +0 -15
  91. package/monitoring/sentry/sentry.utils.d.ts +0 -2
  92. package/monitoring/shared/any-monitoring.interface.d.ts +0 -2
  93. package/monitoring/shared/index.d.ts +0 -3
  94. package/monitoring/shared/monitoring.d.ts +0 -3
  95. package/monitoring/shared/monitoring.interface.d.ts +0 -7
  96. package/network/network.interfaces.d.ts +0 -3
  97. package/network/network.service.d.ts +0 -21
  98. package/network/public_api.d.ts +0 -2
  99. package/public_api.d.ts +0 -2
  100. package/regex/public_api.d.ts +0 -2
  101. package/regex/regex.interface.d.ts +0 -1
  102. package/regex/regex.service.d.ts +0 -12
  103. package/request/error.interceptor.d.ts +0 -14
  104. package/request/error.module.d.ts +0 -9
  105. package/request/logging.interceptor.d.ts +0 -8
  106. package/request/logging.module.d.ts +0 -8
  107. package/request/public_api.d.ts +0 -4
  108. package/route/public_api.d.ts +0 -2
  109. package/route/route.interface.d.ts +0 -36
  110. package/route/route.service.d.ts +0 -23
  111. package/src/core.theme.scss +0 -5
  112. package/src/packages.import.scss +0 -4
  113. package/src/theming/all-theme.scss +0 -10
  114. package/storage/public_api.d.ts +0 -3
  115. package/storage/storage.d.ts +0 -15
  116. package/storage/storage.interface.d.ts +0 -20
  117. package/storage/storage.service.d.ts +0 -10
  118. package/user/public_api.d.ts +0 -1
  119. package/user/user.interface.d.ts +0 -6
package/user/index.d.ts CHANGED
@@ -1,5 +1,8 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@igo2/core/user" />
5
- export * from './public_api';
1
+ interface BaseUser {
2
+ id?: string | number;
3
+ email?: string;
4
+ firstName?: string;
5
+ lastName?: string;
6
+ }
7
+
8
+ export type { BaseUser };
@@ -1,11 +0,0 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { ActivityService } from './activity.service';
4
- import * as i0 from "@angular/core";
5
- export declare class ActivityInterceptor implements HttpInterceptor {
6
- private activityService;
7
- constructor(activityService: ActivityService);
8
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<ActivityInterceptor, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<ActivityInterceptor>;
11
- }
@@ -1,8 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class IgoActivityModule {
4
- static forRoot(): ModuleWithProviders<IgoActivityModule>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoActivityModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoActivityModule, never, never, never>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoActivityModule>;
8
- }
@@ -1,10 +0,0 @@
1
- import { BehaviorSubject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class ActivityService {
4
- counter$: BehaviorSubject<number>;
5
- private ids;
6
- register(): string;
7
- unregister(id: string): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<ActivityService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<ActivityService>;
10
- }
@@ -1,3 +0,0 @@
1
- export * from './activity.module';
2
- export * from './activity.service';
3
- export * from './activity.interceptor';
@@ -1,10 +0,0 @@
1
- import { BaseUser } from '@igo2/core/user';
2
- export type AnalyticsProvider = 'matomo';
3
- export interface AnalyticsOptions {
4
- provider?: AnalyticsProvider;
5
- url?: string;
6
- id?: string;
7
- }
8
- export interface AnalyticsBaseUser extends BaseUser {
9
- sourceId?: string | number;
10
- }
@@ -1,22 +0,0 @@
1
- import { ConfigService } from '@igo2/core/config';
2
- import { AnalyticsBaseUser } from './analytics.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class AnalyticsService {
5
- private config;
6
- private options;
7
- get paq(): any;
8
- constructor(config: ConfigService);
9
- private initMatomo;
10
- /**
11
- * Pass `null` to unset the user.
12
- */
13
- setUser(user: AnalyticsBaseUser | null, profils?: string[]): void;
14
- trackSearch(term: string, nbResults: number): void;
15
- trackEvent(category: string, action: string, name: string): void;
16
- /**
17
- * Function that tracks layers added to the map
18
- */
19
- trackLayer(category: string, action: string, parameters: any): void;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<AnalyticsService, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<AnalyticsService>;
22
- }
@@ -1,2 +0,0 @@
1
- export * from './analytics.interface';
2
- export * from './analytics.service';
@@ -1,3 +0,0 @@
1
- import { AlternateConfigOptions, DeprecatedOptions } from './config.interface';
2
- export declare const CONFIG_DEPRECATED: Record<string, DeprecatedOptions>;
3
- export declare const ALTERNATE_CONFIG_FROM_DEPRECATION: Map<string, AlternateConfigOptions>;
@@ -1,12 +0,0 @@
1
- export interface ConfigOptions<T = Record<string, any>> {
2
- /** This is a representation of EnvironmentOptions */
3
- default?: T;
4
- path?: string;
5
- }
6
- export interface DeprecatedOptions {
7
- alternativeKey?: string;
8
- mayBeRemoveIn: Date;
9
- }
10
- export interface AlternateConfigOptions {
11
- deprecatedKey: string;
12
- }
@@ -1,11 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated import the provideConfig directly
5
- */
6
- export declare class IgoConfigModule {
7
- static forRoot(): ModuleWithProviders<IgoConfigModule>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoConfigModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoConfigModule, never, never, never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoConfigModule>;
11
- }
@@ -1,4 +0,0 @@
1
- import { EnvironmentProviders, InjectionToken } from '@angular/core';
2
- import { ConfigOptions } from './config.interface';
3
- export declare const CONFIG_OPTIONS: InjectionToken<ConfigOptions<Record<string, any>>>;
4
- export declare function provideConfig(options: ConfigOptions): EnvironmentProviders;
@@ -1,27 +0,0 @@
1
- import { HttpBackend } from '@angular/common/http';
2
- import { ConfigOptions } from './config.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class ConfigService<T extends object = Record<string, any>> {
5
- private config;
6
- private httpClient;
7
- private configDeprecated;
8
- private _isLoaded$;
9
- isLoaded$: import("rxjs").Observable<boolean>;
10
- constructor(handler: HttpBackend);
11
- /**
12
- * Use to get the all config file (merge from environnement.ts and config.json)
13
- */
14
- getConfigs(): any;
15
- /**
16
- * Use to get the data found in config file
17
- */
18
- getConfig<T = any>(key: string, defaultValue?: unknown): T;
19
- private handleDeprecatedConfig;
20
- private handleDeprecationPossibility;
21
- /**
22
- * This method loads "[path]" to get all config's variables
23
- */
24
- load(options: ConfigOptions<T>): void | Promise<unknown>;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<ConfigService<any>, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<ConfigService<any>>;
27
- }
@@ -1,5 +0,0 @@
1
- export * from './config.module';
2
- export * from './config.provider';
3
- export * from './config.service';
4
- export * from './config.interface';
5
- export * from './version';
@@ -1,7 +0,0 @@
1
- export interface Version {
2
- app?: string;
3
- lib?: string;
4
- releaseDateApp?: number;
5
- releaseDate?: number;
6
- }
7
- export declare const version: Version;
@@ -1,18 +0,0 @@
1
- import { AnalyticsOptions } from '@igo2/core/analytics';
2
- import { Version } from '@igo2/core/config';
3
- import { LanguageOptions } from '@igo2/core/language';
4
- import { MessageOptions } from '@igo2/core/message';
5
- import { AnyMonitoringOptions } from '@igo2/core/monitoring';
6
- import { RegexOptions } from '@igo2/core/regex';
7
- export interface BaseEnvironmentOptions {
8
- production: boolean;
9
- }
10
- export interface EnvironmentOptions {
11
- analytics?: AnalyticsOptions;
12
- emailAddress?: string;
13
- language?: LanguageOptions;
14
- message?: MessageOptions;
15
- monitoring?: AnyMonitoringOptions;
16
- regex?: RegexOptions;
17
- version?: Version;
18
- }
@@ -1 +0,0 @@
1
- export * from './environment.interface';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@ngx-translate/core";
3
- export declare class IgoLanguageModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoLanguageModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoLanguageModule, never, never, [typeof i1.TranslateModule]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoLanguageModule>;
7
- }
@@ -1,2 +0,0 @@
1
- export * from './language.module';
2
- export * from './shared';
@@ -1,6 +0,0 @@
1
- export * from './language.interface';
2
- export * from './language.loader';
3
- export * from './language.provider';
4
- export * from './language-mock.provider';
5
- export * from './language.service';
6
- export * from './missing-translation.guard';
@@ -1,2 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- export declare function provideMockTranslation(): EnvironmentProviders;
@@ -1,10 +0,0 @@
1
- import { TranslateLoader } from '@ngx-translate/core';
2
- import { Observable } from 'rxjs';
3
- export interface LanguageOptions {
4
- prefix?: string | string[];
5
- ignoreLibsLocale?: boolean;
6
- }
7
- export declare abstract class LanguageLoaderBase implements TranslateLoader {
8
- abstract isLoaded$: Observable<boolean>;
9
- abstract getTranslation(lang: string): Observable<any>;
10
- }
@@ -1,21 +0,0 @@
1
- import { HttpBackend } from '@angular/common/http';
2
- import { ConfigService } from '@igo2/core/config';
3
- import { Observable } from 'rxjs';
4
- import { LanguageLoaderBase, LanguageOptions } from './language.interface';
5
- export declare class LanguageLoader implements LanguageLoaderBase {
6
- private httpClient;
7
- private _isLoaded$;
8
- isLoaded$: Observable<boolean>;
9
- suffix: string;
10
- prefix?: string | string[];
11
- options: LanguageOptions;
12
- baseUrl: string;
13
- constructor(handler: HttpBackend, options: LanguageOptions);
14
- private getServerUrl;
15
- getTranslation(lang: string): Observable<any>;
16
- }
17
- export declare class LanguageLoaderWithAsyncConfig extends LanguageLoader {
18
- private configService;
19
- constructor(handler: HttpBackend, configService: ConfigService, prefix?: string | string[], suffix?: string);
20
- getTranslation(lang: string): Observable<any>;
21
- }
@@ -1,25 +0,0 @@
1
- import { EnvironmentProviders, Provider } from '@angular/core';
2
- import { Language, TranslateModuleConfig } from '@ngx-translate/core';
3
- import { LanguageOptions } from './language.interface';
4
- export interface TranslationFeature<KindT extends TranslationFeatureKind> {
5
- kind: KindT;
6
- providers: (Provider | EnvironmentProviders)[];
7
- }
8
- export declare enum TranslationFeatureKind {
9
- Translation = 0,
10
- DefaultLanguage = 1
11
- }
12
- /**
13
- * Make sure you only call this method in the root module of your application, most of the time called AppModule.
14
- */
15
- export declare function provideTranslation(featureConfig: TranslationFeature<TranslationFeatureKind.Translation>): EnvironmentProviders;
16
- export declare function withStaticConfig(options: LanguageOptions, defaultLanguage?: string | undefined): TranslationFeature<TranslationFeatureKind.Translation>;
17
- export declare function withAsyncConfig(defaultLanguage?: string | undefined): TranslationFeature<TranslationFeatureKind.Translation>;
18
- /**
19
- * Get the first segment of the path (e.g., '/en/alerts' => 'en')
20
- * @param allowedLanguages default to ['fr', 'en']
21
- */
22
- export declare function withUrlDefaultLanguage(fallbackLang?: Language, allowedLanguages?: Language[]): TranslationFeature<TranslationFeatureKind.DefaultLanguage>;
23
- export declare const setTranslationConfig: (loader?: Provider, defaultLanguage?: string) => TranslateModuleConfig;
24
- export declare const LANGUAGE_LOADER: Provider;
25
- export declare const DEFAULT_LANGUAGE_LOADER: Provider;
@@ -1,15 +0,0 @@
1
- import { TranslateService } from '@ngx-translate/core';
2
- import { BehaviorSubject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class LanguageService {
5
- translate: TranslateService;
6
- private language;
7
- readonly language$: BehaviorSubject<string>;
8
- constructor(translate: TranslateService);
9
- private setBrowserLanguage;
10
- getLanguage(): string;
11
- private matchLanguage;
12
- setLanguage(language: string): void;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<LanguageService, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<LanguageService>;
15
- }
@@ -1,4 +0,0 @@
1
- import { MissingTranslationHandler, MissingTranslationHandlerParams } from '@ngx-translate/core';
2
- export declare class IgoMissingTranslationHandler implements MissingTranslationHandler {
3
- handle(params: MissingTranslationHandlerParams): string;
4
- }
@@ -1,13 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { ConfigOptions } from '@igo2/core/config';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- import * as i2 from "@igo2/core/activity";
6
- import * as i3 from "@igo2/core/request";
7
- import * as i4 from "@igo2/core/language";
8
- export declare class IgoCoreModule {
9
- static forRoot(options?: ConfigOptions): ModuleWithProviders<IgoCoreModule>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoCoreModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoCoreModule, never, [typeof i1.CommonModule, typeof i2.IgoActivityModule, typeof i3.IgoErrorModule], [typeof i2.IgoActivityModule, typeof i3.IgoErrorModule, typeof i4.IgoLanguageModule]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoCoreModule>;
13
- }
@@ -1,9 +0,0 @@
1
- export declare enum Media {
2
- Mobile = "mobile",
3
- Tablet = "tablet",
4
- Desktop = "desktop"
5
- }
6
- export declare enum MediaOrientation {
7
- Portrait = "portrait",
8
- Landscape = "landscape"
9
- }
@@ -1,16 +0,0 @@
1
- import { BreakpointObserver } from '@angular/cdk/layout';
2
- import { BehaviorSubject } from 'rxjs';
3
- import { Media, MediaOrientation } from './media.enum';
4
- import * as i0 from "@angular/core";
5
- export declare class MediaService {
6
- media$: BehaviorSubject<Media>;
7
- orientation$: BehaviorSubject<MediaOrientation>;
8
- constructor(breakpointObserver: BreakpointObserver);
9
- getMedia(): Media;
10
- getOrientation(): MediaOrientation;
11
- isTouchScreen(): boolean;
12
- isMobile(): boolean;
13
- isDesktop(): boolean;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<MediaService, never>;
15
- static ɵprov: i0.ɵɵInjectableDeclaration<MediaService>;
16
- }
@@ -1,2 +0,0 @@
1
- export * from './media.enum';
2
- export * from './media.service';
@@ -1,11 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @deprecated import the provideMessage directly
5
- */
6
- export declare class IgoMessageModule {
7
- static forRoot(): ModuleWithProviders<IgoMessageModule>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoMessageModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoMessageModule, never, never, never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoMessageModule>;
11
- }
@@ -1,2 +0,0 @@
1
- export * from './message.module';
2
- export * from './shared';
@@ -1,4 +0,0 @@
1
- export * from './message.enum';
2
- export * from './message.interface';
3
- export * from './message.provider';
4
- export * from './message.service';
@@ -1,8 +0,0 @@
1
- export declare enum MessageType {
2
- ERROR = "error",
3
- ALERT = "warning",// todo delete (transition to ngx-toastr)
4
- WARNING = "warning",
5
- INFO = "info",
6
- SUCCESS = "success",
7
- SHOW = "show"
8
- }
@@ -1,21 +0,0 @@
1
- import { TemplateRef } from '@angular/core';
2
- import { IndividualConfig } from 'ngx-toastr';
3
- import { MessageType } from './message.enum';
4
- export interface Message {
5
- title?: string;
6
- text?: string;
7
- html?: string | TemplateRef<any>;
8
- type?: MessageType;
9
- options?: MessageOptions;
10
- format?: 'text' | 'html';
11
- textInterpolateParams?: object;
12
- titleInterpolateParams?: object;
13
- showIcon?: boolean;
14
- }
15
- export interface MessageOptions extends IndividualConfig {
16
- template?: string;
17
- from?: Date | string;
18
- to?: Date | string;
19
- id?: number;
20
- showOnEachLayerVisibility?: boolean;
21
- }
@@ -1,2 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- export declare function provideMessage(): EnvironmentProviders;
@@ -1,31 +0,0 @@
1
- import { HttpErrorResponse } from '@angular/common/http';
2
- import { Injector } from '@angular/core';
3
- import { ConfigService } from '@igo2/core/config';
4
- import { LanguageService } from '@igo2/core/language';
5
- import { ActiveToast, IndividualConfig } from 'ngx-toastr';
6
- import { BehaviorSubject } from 'rxjs';
7
- import { Message } from './message.interface';
8
- import * as i0 from "@angular/core";
9
- export declare class MessageService {
10
- private injector;
11
- private configService;
12
- private languageService;
13
- messages$: BehaviorSubject<Message[]>;
14
- private options?;
15
- private activeMessageTranslations;
16
- constructor(injector: Injector, configService: ConfigService, languageService: LanguageService);
17
- private get toastr();
18
- showError(httpError: HttpErrorResponse): ActiveToast<any>;
19
- message(message: Message): void;
20
- success(text: string, title?: string, options?: Partial<IndividualConfig>, textInterpolateParams?: object, titleInterpolateParams?: object): ActiveToast<any>;
21
- error(text: string, title?: string, options?: Partial<IndividualConfig>, textInterpolateParams?: object, titleInterpolateParams?: object): ActiveToast<any>;
22
- info(text: string, title?: string, options?: Partial<IndividualConfig>, textInterpolateParams?: object, titleInterpolateParams?: object): ActiveToast<any>;
23
- alert(text: string, title?: string, options?: Partial<IndividualConfig>, textInterpolateParams?: object, titleInterpolateParams?: object): ActiveToast<any>;
24
- show(text: string, title?: string, options?: Partial<IndividualConfig>, textInterpolateParams?: object, titleInterpolateParams?: object): ActiveToast<any>;
25
- private handleNgxToastr;
26
- remove(id?: number): void;
27
- removeAllAreNotError(): void;
28
- private handleTemplate;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, never>;
30
- static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
31
- }
@@ -1,21 +0,0 @@
1
- @use 'sass:map';
2
- @use '@angular/material' as mat;
3
-
4
- @mixin theme() {
5
- .toast-error {
6
- background-color: var(--mat-sys-error) !important;
7
- }
8
-
9
- .toast-info {
10
- background-color: var(--mat-sys-primary) !important;
11
- }
12
-
13
- .toast-no-icon {
14
- background-image: none;
15
- padding-left: 6%;
16
- }
17
-
18
- .toast-title {
19
- font-weight: bold;
20
- }
21
- }
@@ -1 +0,0 @@
1
- export * from './monitoring-mock';
@@ -1,4 +0,0 @@
1
- import { SentryMonitoringOptions } from '../sentry';
2
- import { AnyMonitoringOptions } from '../shared';
3
- export declare const MOCK_SENTRY_OPTIONS: SentryMonitoringOptions;
4
- export declare const MOCK_MONITORING_OPTIONS: AnyMonitoringOptions;
@@ -1,3 +0,0 @@
1
- export * from './sentry';
2
- export * from './shared';
3
- export * from './__mocks__';
@@ -1,3 +0,0 @@
1
- export * from './sentry.interface';
2
- export * from './sentry.provider';
3
- export * from './sentry.utils';
@@ -1,4 +0,0 @@
1
- import { SentryErrorHandler } from '@sentry/angular';
2
- import { SentryMonitoringOptions } from './sentry.interface';
3
- export declare const createSentryErrorHandler: (options: SentryMonitoringOptions) => SentryErrorHandler;
4
- export declare const initSentry: (options: SentryMonitoringOptions, force?: boolean) => void;
@@ -1,8 +0,0 @@
1
- import { BrowserOptions, ErrorHandlerOptions } from '@sentry/angular';
2
- import { Integration } from '@sentry/core';
3
- import { MonitoringOptions } from '../shared/monitoring.interface';
4
- export type SentryMonitoringOptions = Omit<BrowserOptions, 'integrations'> & MonitoringOptions & {
5
- provider: 'sentry';
6
- errorHandlerOptions?: ErrorHandlerOptions;
7
- integrations?: Integration[];
8
- };
@@ -1,15 +0,0 @@
1
- import { EnvironmentProviders, Provider } from '@angular/core';
2
- import { browserTracingIntegration } from '@sentry/angular';
3
- import { SentryMonitoringOptions } from './sentry.interface';
4
- export declare const provideSentryMonitoring: (options: SentryMonitoringOptions, integrations?: SentryIntegrationFactory<SentryIntegrationKind>[]) => (Provider | EnvironmentProviders)[];
5
- export interface SentryIntegration<KindT extends SentryIntegrationKind> {
6
- kind: KindT;
7
- providers: (Provider | EnvironmentProviders)[];
8
- }
9
- type SentryIntegrationFactory<KindT extends SentryIntegrationKind> = (sentryOptions: SentryMonitoringOptions) => SentryIntegration<KindT>;
10
- export declare enum SentryIntegrationKind {
11
- Tracing = 0,
12
- Replay = 1
13
- }
14
- export declare function withTracingIntegration(options: Parameters<typeof browserTracingIntegration>[0]): SentryIntegrationFactory<SentryIntegrationKind.Tracing>;
15
- export {};
@@ -1,2 +0,0 @@
1
- import { BaseUser } from '@igo2/core/user';
2
- export declare const identifySentryUser: (user: BaseUser | null) => void;
@@ -1,2 +0,0 @@
1
- import { SentryMonitoringOptions } from '../sentry/sentry.interface';
2
- export type AnyMonitoringOptions = SentryMonitoringOptions;
@@ -1,3 +0,0 @@
1
- export * from './any-monitoring.interface';
2
- export * from './monitoring.interface';
3
- export * from './monitoring';
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { MonitoringOptions } from './monitoring.interface';
3
- export declare const MONITORING_OPTIONS: InjectionToken<MonitoringOptions>;
@@ -1,7 +0,0 @@
1
- export type MonitoringProvider = 'sentry';
2
- export interface MonitoringOptions {
3
- provider: MonitoringProvider;
4
- /** Add the user info(id, name, email) to the event request */
5
- identifyUser?: boolean;
6
- logErrors?: boolean;
7
- }
@@ -1,3 +0,0 @@
1
- export interface ConnectionState {
2
- connection: boolean;
3
- }
@@ -1,21 +0,0 @@
1
- import { Injector, OnDestroy } from '@angular/core';
2
- import { MessageService } from '@igo2/core/message';
3
- import { Observable } from 'rxjs';
4
- import { ConnectionState } from './network.interfaces';
5
- import * as i0 from "@angular/core";
6
- export declare class NetworkService implements OnDestroy {
7
- private messageService;
8
- private injector;
9
- private stateChangeEventEmitter;
10
- private onlineSubscription;
11
- private offlineSubscription;
12
- private previousMessageId;
13
- private state;
14
- constructor(messageService: MessageService, injector: Injector);
15
- private checkNetworkState;
16
- private emitEvent;
17
- ngOnDestroy(): void;
18
- currentState(reportState?: boolean): Observable<ConnectionState>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<NetworkService, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<NetworkService>;
21
- }
@@ -1,2 +0,0 @@
1
- export * from './network.service';
2
- export * from './network.interfaces';
package/public_api.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export * from './lib/core.module';
2
- /** @deprecated */
@@ -1,2 +0,0 @@
1
- export * from './regex.service';
2
- export * from './regex.interface';
@@ -1 +0,0 @@
1
- export type RegexOptions = Record<string, any>;
@@ -1,12 +0,0 @@
1
- import { ConfigService } from '@igo2/core/config';
2
- import { RegexOptions } from './regex.interface';
3
- import * as i0 from "@angular/core";
4
- export declare class RegexService {
5
- private config;
6
- protected options: RegexOptions;
7
- constructor(config: ConfigService);
8
- getAll(): RegexOptions;
9
- get(key: any): any;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<RegexService, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<RegexService>;
12
- }
@@ -1,14 +0,0 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
- import { MessageService } from '@igo2/core/message';
3
- import { Observable } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class ErrorInterceptor implements HttpInterceptor {
6
- private messageService;
7
- constructor(messageService: MessageService);
8
- intercept(originalReq: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
9
- private handleError;
10
- private handleCaughtError;
11
- private handleUncaughtError;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<ErrorInterceptor, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<ErrorInterceptor>;
14
- }