@igo2/core 1.15.4 → 16.0.0-rc.0

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 (241) hide show
  1. package/_index.scss +8 -0
  2. package/assets/icons/mdi.svg +1 -1
  3. package/core-theme.scss +5 -0
  4. package/{esm2020 → esm2022}/igo2-core.mjs +4 -4
  5. package/{esm2020 → esm2022}/lib/activity/activity.interceptor.mjs +32 -30
  6. package/{esm2020 → esm2022}/lib/activity/activity.module.mjs +30 -30
  7. package/esm2022/lib/activity/activity.service.mjs +32 -0
  8. package/{esm2020 → esm2022}/lib/activity/index.mjs +3 -3
  9. package/{esm2020 → esm2022}/lib/analytics/index.mjs +2 -2
  10. package/{esm2020 → esm2022}/lib/analytics/shared/analytics.interface.mjs +2 -2
  11. package/esm2022/lib/analytics/shared/analytics.service.mjs +84 -0
  12. package/{esm2020 → esm2022}/lib/analytics/shared/index.mjs +3 -3
  13. package/{esm2020 → esm2022}/lib/compression/compressedData.interface.mjs +2 -2
  14. package/esm2022/lib/compression/compression.service.mjs +142 -0
  15. package/{esm2020 → esm2022}/lib/compression/index.mjs +3 -3
  16. package/{esm2020 → esm2022}/lib/config/config.interface.mjs +1 -1
  17. package/{esm2020 → esm2022}/lib/config/config.module.mjs +23 -23
  18. package/{esm2020 → esm2022}/lib/config/config.provider.mjs +21 -21
  19. package/esm2022/lib/config/config.service.mjs +53 -0
  20. package/{esm2020 → esm2022}/lib/config/index.mjs +4 -4
  21. package/esm2022/lib/config/version.mjs +5 -0
  22. package/esm2022/lib/core.module.mjs +104 -0
  23. package/{esm2020 → esm2022}/lib/gesture/gesture.module.mjs +30 -30
  24. package/{esm2020 → esm2022}/lib/gesture/gesture.provider.mjs +16 -16
  25. package/{esm2020 → esm2022}/lib/language/index.mjs +2 -2
  26. package/esm2022/lib/language/language.module.mjs +39 -0
  27. package/{esm2020 → esm2022}/lib/language/shared/index.mjs +5 -5
  28. package/{esm2020 → esm2022}/lib/language/shared/language.interface.mjs +2 -2
  29. package/esm2022/lib/language/shared/language.loader.mjs +31 -0
  30. package/esm2022/lib/language/shared/language.provider.mjs +22 -0
  31. package/esm2022/lib/language/shared/language.service.mjs +38 -0
  32. package/{esm2020 → esm2022}/lib/language/shared/missing-translation.guard.mjs +16 -16
  33. package/{esm2020 → esm2022}/lib/media/index.mjs +3 -3
  34. package/{esm2020 → esm2022}/lib/media/media.enum.mjs +12 -12
  35. package/esm2022/lib/media/media.service.mjs +82 -0
  36. package/{esm2020 → esm2022}/lib/message/index.mjs +2 -2
  37. package/esm2022/lib/message/message.module.mjs +60 -0
  38. package/{esm2020 → esm2022}/lib/message/shared/index.mjs +4 -4
  39. package/{esm2020 → esm2022}/lib/message/shared/message.enum.mjs +10 -10
  40. package/{esm2020 → esm2022}/lib/message/shared/message.interface.mjs +2 -2
  41. package/esm2022/lib/message/shared/message.service.mjs +218 -0
  42. package/{esm2020 → esm2022}/lib/network/index.mjs +3 -3
  43. package/{esm2020 → esm2022}/lib/network/network.interfaces.mjs +2 -2
  44. package/esm2022/lib/network/network.service.mjs +66 -0
  45. package/{esm2020 → esm2022}/lib/regex/index.mjs +3 -3
  46. package/{esm2020 → esm2022}/lib/regex/regex.interface.mjs +2 -2
  47. package/esm2022/lib/regex/regex.service.mjs +30 -0
  48. package/esm2022/lib/request/error.interceptor.mjs +67 -0
  49. package/esm2022/lib/request/error.module.mjs +39 -0
  50. package/{esm2020 → esm2022}/lib/request/index.mjs +3 -3
  51. package/esm2022/lib/request/logging.interceptor.mjs +29 -0
  52. package/{esm2020 → esm2022}/lib/request/logging.module.mjs +30 -30
  53. package/esm2022/lib/route/route.interface.mjs +2 -0
  54. package/esm2022/lib/route/route.service.mjs +75 -0
  55. package/esm2022/lib/storage/index.mjs +4 -0
  56. package/{esm2020 → esm2022}/lib/storage/storage.interface.mjs +13 -13
  57. package/esm2022/lib/storage/storage.mjs +76 -0
  58. package/esm2022/lib/storage/storage.service.mjs +21 -0
  59. package/{esm2020 → esm2022}/public_api.mjs +27 -27
  60. package/{fesm2020 → fesm2022}/igo2-core.mjs +1364 -1288
  61. package/fesm2022/igo2-core.mjs.map +1 -0
  62. package/index.d.ts +5 -5
  63. package/lib/activity/activity.interceptor.d.ts +11 -11
  64. package/lib/activity/activity.module.d.ts +8 -8
  65. package/lib/activity/activity.service.d.ts +11 -11
  66. package/lib/activity/index.d.ts +2 -2
  67. package/lib/analytics/index.d.ts +1 -1
  68. package/lib/analytics/shared/analytics.interface.d.ts +6 -6
  69. package/lib/analytics/shared/analytics.service.d.ts +23 -23
  70. package/lib/analytics/shared/index.d.ts +2 -2
  71. package/lib/compression/compressedData.interface.d.ts +5 -5
  72. package/lib/compression/compression.service.d.ts +15 -15
  73. package/lib/compression/index.d.ts +2 -2
  74. package/lib/config/config.interface.d.ts +6 -6
  75. package/lib/config/config.module.d.ts +8 -8
  76. package/lib/config/config.provider.d.ts +15 -15
  77. package/lib/config/config.service.d.ts +18 -18
  78. package/lib/config/index.d.ts +3 -3
  79. package/lib/config/version.d.ts +5 -5
  80. package/lib/core.module.d.ts +19 -19
  81. package/lib/gesture/gesture.module.d.ts +9 -9
  82. package/lib/gesture/gesture.provider.d.ts +7 -7
  83. package/lib/language/index.d.ts +1 -1
  84. package/lib/language/language.module.d.ts +9 -9
  85. package/lib/language/shared/index.d.ts +4 -4
  86. package/lib/language/shared/language.interface.d.ts +3 -3
  87. package/lib/language/shared/language.loader.d.ts +11 -11
  88. package/lib/language/shared/language.provider.d.ts +15 -15
  89. package/lib/language/shared/language.service.d.ts +13 -13
  90. package/lib/language/shared/missing-translation.guard.d.ts +4 -4
  91. package/lib/media/index.d.ts +2 -2
  92. package/lib/media/media.enum.d.ts +9 -9
  93. package/lib/media/media.service.d.ts +16 -16
  94. package/lib/message/index.d.ts +1 -1
  95. package/lib/message/message.module.d.ts +10 -10
  96. package/lib/message/message.theming.scss +26 -0
  97. package/lib/message/shared/index.d.ts +4 -4
  98. package/lib/message/shared/message.enum.d.ts +8 -8
  99. package/lib/message/shared/message.interface.d.ts +21 -21
  100. package/lib/message/shared/message.service.d.ts +31 -31
  101. package/lib/network/index.d.ts +2 -2
  102. package/lib/network/network.interfaces.d.ts +3 -3
  103. package/lib/network/network.service.d.ts +21 -21
  104. package/lib/regex/index.d.ts +2 -2
  105. package/lib/regex/regex.interface.d.ts +3 -3
  106. package/lib/regex/regex.service.d.ts +12 -12
  107. package/lib/request/error.interceptor.d.ts +14 -14
  108. package/lib/request/error.module.d.ts +9 -9
  109. package/lib/request/index.d.ts +2 -2
  110. package/lib/request/logging.interceptor.d.ts +8 -8
  111. package/lib/request/logging.module.d.ts +8 -8
  112. package/lib/route/route.interface.d.ts +23 -23
  113. package/lib/route/route.service.d.ts +19 -19
  114. package/lib/storage/index.d.ts +3 -2
  115. package/lib/storage/storage.d.ts +15 -0
  116. package/lib/storage/storage.interface.d.ts +20 -20
  117. package/lib/storage/storage.service.d.ts +10 -19
  118. package/locale/en.core.json +1 -2
  119. package/locale/en.json +1 -1205
  120. package/locale/fr.core.json +1 -2
  121. package/locale/fr.json +1 -1210
  122. package/package.json +40 -30
  123. package/packages.import.scss +4 -0
  124. package/public_api.d.ts +24 -24
  125. package/style/all-style.css +793 -0
  126. package/style/all-style.scss +3 -0
  127. package/style/layout.scss +163 -0
  128. package/style/partial/core-utils.scss +5 -0
  129. package/style/partial/core.variables.scss +1 -1
  130. package/style/partial/media.scss +80 -80
  131. package/style/style.css +237 -0
  132. package/style/style.scss +19 -0
  133. package/theming/all-theme.scss +14 -0
  134. package/theming/material-theme-override.scss +39 -0
  135. package/theming/prebuilt-themes/blue-theme.css +2986 -0
  136. package/theming/prebuilt-themes/blue-theme.scss +34 -0
  137. package/theming/prebuilt-themes/bluedark-theme.css +2986 -0
  138. package/theming/prebuilt-themes/bluedark-theme.scss +67 -0
  139. package/theming/prebuilt-themes/bluedq-theme.css +2986 -0
  140. package/theming/prebuilt-themes/bluedq-theme.scss +66 -0
  141. package/theming/prebuilt-themes/bluegrey-theme.css +2986 -0
  142. package/theming/prebuilt-themes/bluegrey-theme.scss +25 -0
  143. package/theming/prebuilt-themes/dark-theme.css +2993 -0
  144. package/theming/prebuilt-themes/dark-theme.scss +25 -0
  145. package/theming/prebuilt-themes/deeppurple-theme.css +2986 -0
  146. package/theming/prebuilt-themes/deeppurple-theme.scss +25 -0
  147. package/theming/prebuilt-themes/indigo-theme.css +2986 -0
  148. package/theming/prebuilt-themes/indigo-theme.scss +25 -0
  149. package/theming/prebuilt-themes/orange-theme.css +2986 -0
  150. package/theming/prebuilt-themes/orange-theme.scss +25 -0
  151. package/theming/prebuilt-themes/qcca/_index.scss +2 -0
  152. package/theming/prebuilt-themes/qcca/base/_index.scss +4 -0
  153. package/theming/prebuilt-themes/qcca/base/breakpoints.scss +57 -0
  154. package/theming/prebuilt-themes/qcca/base/colors.scss +40 -0
  155. package/theming/prebuilt-themes/qcca/base/palette.scss +50 -0
  156. package/theming/prebuilt-themes/qcca/base/typography/_index.scss +2 -0
  157. package/theming/prebuilt-themes/qcca/base/typography/typography.scss +138 -0
  158. package/theming/prebuilt-themes/qcca/base/typography/typography.utils.scss +18 -0
  159. package/theming/prebuilt-themes/qcca/components/_index.scss +9 -0
  160. package/theming/prebuilt-themes/qcca/components/_index.theme.scss +5 -0
  161. package/theming/prebuilt-themes/qcca/components/button.scss +24 -0
  162. package/theming/prebuilt-themes/qcca/components/dialog.scss +36 -0
  163. package/theming/prebuilt-themes/qcca/components/form-field.scss +5 -0
  164. package/theming/prebuilt-themes/qcca/components/input.scss +6 -0
  165. package/theming/prebuilt-themes/qcca/components/list.scss +24 -0
  166. package/theming/prebuilt-themes/qcca/components/panel.scss +8 -0
  167. package/theming/prebuilt-themes/qcca/components/search-bar.scss +41 -0
  168. package/theming/prebuilt-themes/qcca/components/search-bar.theme.scss +29 -0
  169. package/theming/prebuilt-themes/qcca-theme.css +3373 -0
  170. package/theming/prebuilt-themes/qcca-theme.scss +47 -0
  171. package/theming/prebuilt-themes/teal-theme.css +2986 -0
  172. package/theming/prebuilt-themes/teal-theme.scss +25 -0
  173. package/theming/typography.scss +28 -0
  174. package/theming/utils/_foreground.scss +22 -0
  175. package/__ivy_ngcc__/locale/en.auth.json +0 -29
  176. package/__ivy_ngcc__/locale/en.common.json +0 -43
  177. package/__ivy_ngcc__/locale/en.context.json +0 -199
  178. package/__ivy_ngcc__/locale/en.core.json +0 -29
  179. package/__ivy_ngcc__/locale/en.geo.json +0 -805
  180. package/__ivy_ngcc__/locale/en.integration.json +0 -124
  181. package/__ivy_ngcc__/locale/en.json +0 -1205
  182. package/__ivy_ngcc__/locale/fr.auth.json +0 -32
  183. package/__ivy_ngcc__/locale/fr.common.json +0 -43
  184. package/__ivy_ngcc__/locale/fr.context.json +0 -199
  185. package/__ivy_ngcc__/locale/fr.core.json +0 -29
  186. package/__ivy_ngcc__/locale/fr.geo.json +0 -805
  187. package/__ivy_ngcc__/locale/fr.integration.json +0 -125
  188. package/__ivy_ngcc__/locale/fr.json +0 -1210
  189. package/esm2020/lib/activity/activity.service.mjs +0 -33
  190. package/esm2020/lib/analytics/shared/analytics.service.mjs +0 -81
  191. package/esm2020/lib/compression/compression.service.mjs +0 -140
  192. package/esm2020/lib/config/config.service.mjs +0 -52
  193. package/esm2020/lib/config/version.mjs +0 -5
  194. package/esm2020/lib/core.module.mjs +0 -92
  195. package/esm2020/lib/language/language.module.mjs +0 -39
  196. package/esm2020/lib/language/shared/language.loader.mjs +0 -26
  197. package/esm2020/lib/language/shared/language.provider.mjs +0 -22
  198. package/esm2020/lib/language/shared/language.service.mjs +0 -32
  199. package/esm2020/lib/media/media.service.mjs +0 -76
  200. package/esm2020/lib/message/message.module.mjs +0 -56
  201. package/esm2020/lib/message/shared/message.service.mjs +0 -201
  202. package/esm2020/lib/network/network.service.mjs +0 -60
  203. package/esm2020/lib/regex/regex.service.mjs +0 -27
  204. package/esm2020/lib/request/error.interceptor.mjs +0 -66
  205. package/esm2020/lib/request/error.module.mjs +0 -39
  206. package/esm2020/lib/request/logging.interceptor.mjs +0 -29
  207. package/esm2020/lib/route/route.interface.mjs +0 -2
  208. package/esm2020/lib/route/route.service.mjs +0 -71
  209. package/esm2020/lib/storage/index.mjs +0 -3
  210. package/esm2020/lib/storage/storage.service.mjs +0 -79
  211. package/fesm2015/igo2-core.mjs +0 -1418
  212. package/fesm2015/igo2-core.mjs.map +0 -1
  213. package/fesm2020/igo2-core.mjs.map +0 -1
  214. package/locale/en.auth.json +0 -29
  215. package/locale/en.common.json +0 -43
  216. package/locale/en.context.json +0 -199
  217. package/locale/en.geo.json +0 -805
  218. package/locale/en.integration.json +0 -124
  219. package/locale/fr.auth.json +0 -32
  220. package/locale/fr.common.json +0 -43
  221. package/locale/fr.context.json +0 -199
  222. package/locale/fr.geo.json +0 -805
  223. package/locale/fr.integration.json +0 -125
  224. package/style/all.theming.scss +0 -5
  225. package/style/core.theming.scss +0 -9
  226. package/style/foreground.scss +0 -20
  227. package/style/index.theming.scss +0 -1465
  228. package/style/material.font.scss +0 -10
  229. package/style/setup.scss +0 -2
  230. package/style/themes/blue.theme.scss +0 -19
  231. package/style/themes/bluedark.theme.scss +0 -52
  232. package/style/themes/bluedq.theme.scss +0 -52
  233. package/style/themes/bluegrey.theme.scss +0 -16
  234. package/style/themes/dark.theme.scss +0 -16
  235. package/style/themes/deeppurple.theme.scss +0 -16
  236. package/style/themes/indigo.theme.scss +0 -16
  237. package/style/themes/orange.theme.scss +0 -16
  238. package/style/themes/qcca.theme.scss +0 -98
  239. package/style/themes/teal.theme.scss +0 -16
  240. package/style/theming.scss +0 -5
  241. package/style/typography.scss +0 -17
@@ -1,8 +1,8 @@
1
- import { HttpInterceptor, HttpHandler, HttpEvent, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class LoggingInterceptor implements HttpInterceptor {
5
- intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<LoggingInterceptor, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<LoggingInterceptor>;
8
- }
1
+ import { HttpInterceptor, HttpHandler, HttpEvent, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ export declare class LoggingInterceptor implements HttpInterceptor {
5
+ intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<LoggingInterceptor, never>;
7
+ static ɵprov: i0.ɵɵInjectableDeclaration<LoggingInterceptor>;
8
+ }
@@ -1,8 +1,8 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class IgoLoggingModule {
4
- static forRoot(): ModuleWithProviders<IgoLoggingModule>;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<IgoLoggingModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<IgoLoggingModule, never, never, never>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<IgoLoggingModule>;
8
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class IgoLoggingModule {
4
+ static forRoot(): ModuleWithProviders<IgoLoggingModule>;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<IgoLoggingModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<IgoLoggingModule, never, never, never>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<IgoLoggingModule>;
8
+ }
@@ -1,23 +1,23 @@
1
- export interface RouteServiceOptions {
2
- centerKey?: boolean | string;
3
- zoomKey?: boolean | string;
4
- projectionKey?: boolean | string;
5
- contextKey?: boolean | string;
6
- searchKey?: boolean | string;
7
- visibleOnLayersKey?: boolean | string;
8
- visibleOffLayersKey?: boolean | string;
9
- directionsCoordKey?: boolean | string;
10
- directionsOptionsKey?: boolean | string;
11
- toolKey?: boolean | string;
12
- wmsUrlKey?: boolean | string;
13
- wmsLayersKey?: boolean | string;
14
- wmtsUrlKey?: boolean | string;
15
- wmtsLayersKey?: boolean | string;
16
- arcgisUrlKey?: boolean | string;
17
- arcgisLayersKey?: boolean | string;
18
- iarcgisUrlKey?: boolean | string;
19
- iarcgisLayersKey?: boolean | string;
20
- tarcgisUrlKey?: boolean | string;
21
- tarcgisLayersKey?: boolean | string;
22
- vectorKey?: boolean | string;
23
- }
1
+ export interface RouteServiceOptions {
2
+ centerKey?: boolean | string;
3
+ zoomKey?: boolean | string;
4
+ projectionKey?: boolean | string;
5
+ contextKey?: boolean | string;
6
+ searchKey?: boolean | string;
7
+ visibleOnLayersKey?: boolean | string;
8
+ visibleOffLayersKey?: boolean | string;
9
+ directionsCoordKey?: boolean | string;
10
+ directionsOptionsKey?: boolean | string;
11
+ toolKey?: boolean | string;
12
+ wmsUrlKey?: boolean | string;
13
+ wmsLayersKey?: boolean | string;
14
+ wmtsUrlKey?: boolean | string;
15
+ wmtsLayersKey?: boolean | string;
16
+ arcgisUrlKey?: boolean | string;
17
+ arcgisLayersKey?: boolean | string;
18
+ iarcgisUrlKey?: boolean | string;
19
+ iarcgisLayersKey?: boolean | string;
20
+ tarcgisUrlKey?: boolean | string;
21
+ tarcgisLayersKey?: boolean | string;
22
+ vectorKey?: boolean | string;
23
+ }
@@ -1,19 +1,19 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { ActivatedRoute, Params, Router } from '@angular/router';
3
- import { Observable } from 'rxjs';
4
- import { RouteServiceOptions } from './route.interface';
5
- import * as i0 from "@angular/core";
6
- export declare let ROUTE_SERVICE_OPTIONS: InjectionToken<RouteServiceOptions>;
7
- export declare function provideRouteServiceOptions(options: RouteServiceOptions): {
8
- provide: InjectionToken<RouteServiceOptions>;
9
- useValue: RouteServiceOptions;
10
- };
11
- export declare class RouteService {
12
- private router;
13
- route: ActivatedRoute;
14
- options: RouteServiceOptions;
15
- constructor(router: Router, route: ActivatedRoute, options: RouteServiceOptions);
16
- get queryParams(): Observable<Params>;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<RouteService, [null, null, { optional: true; }]>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<RouteService>;
19
- }
1
+ import { InjectionToken } from '@angular/core';
2
+ import { ActivatedRoute, Params, Router } from '@angular/router';
3
+ import { Observable } from 'rxjs';
4
+ import { RouteServiceOptions } from './route.interface';
5
+ import * as i0 from "@angular/core";
6
+ export declare let ROUTE_SERVICE_OPTIONS: InjectionToken<RouteServiceOptions>;
7
+ export declare function provideRouteServiceOptions(options: RouteServiceOptions): {
8
+ provide: InjectionToken<RouteServiceOptions>;
9
+ useValue: RouteServiceOptions;
10
+ };
11
+ export declare class RouteService {
12
+ private router;
13
+ route: ActivatedRoute;
14
+ options: RouteServiceOptions;
15
+ constructor(router: Router, route: ActivatedRoute, options: RouteServiceOptions);
16
+ get queryParams(): Observable<Params>;
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<RouteService, [null, null, { optional: true; }]>;
18
+ static ɵprov: i0.ɵɵInjectableDeclaration<RouteService>;
19
+ }
@@ -1,2 +1,3 @@
1
- export * from './storage.service';
2
- export * from './storage.interface';
1
+ export * from './storage';
2
+ export * from './storage.service';
3
+ export * from './storage.interface';
@@ -0,0 +1,15 @@
1
+ import { ConfigService } from '../config/config.service';
2
+ import { StorageScope, StorageOptions, StorageServiceEvent } from './storage.interface';
3
+ import { BehaviorSubject } from 'rxjs';
4
+ export declare abstract class BaseStorage<T extends StorageOptions = StorageOptions> {
5
+ protected options?: T;
6
+ storageChange$: BehaviorSubject<StorageServiceEvent>;
7
+ constructor(config: ConfigService);
8
+ /**
9
+ * Use to get the data found in storage file
10
+ */
11
+ get(key: string, scope?: StorageScope): string | object | boolean | number;
12
+ set(key: string, value: string | object | boolean | number, scope?: StorageScope): void;
13
+ remove(key: string, scope?: StorageScope): void;
14
+ clear(scope?: StorageScope): void;
15
+ }
@@ -1,20 +1,20 @@
1
- export declare enum StorageScope {
2
- SESSION = "Session",
3
- LOCAL = "Local"
4
- }
5
- export interface StorageOptions {
6
- key: string;
7
- }
8
- export interface StorageServiceEvent {
9
- key?: string;
10
- scope: StorageScope;
11
- event: StorageServiceEventEnum;
12
- previousValue?: any;
13
- currentValue?: any;
14
- }
15
- export declare enum StorageServiceEventEnum {
16
- ADDED = "Added",
17
- MODIFIED = "Modified",
18
- REMOVED = "Removed",
19
- CLEARED = "Cleared"
20
- }
1
+ export declare enum StorageScope {
2
+ SESSION = "Session",
3
+ LOCAL = "Local"
4
+ }
5
+ export interface StorageOptions {
6
+ key: string;
7
+ }
8
+ export interface StorageServiceEvent {
9
+ key?: string;
10
+ scope: StorageScope;
11
+ event: StorageServiceEventEnum;
12
+ previousValue?: any;
13
+ currentValue?: any;
14
+ }
15
+ export declare enum StorageServiceEventEnum {
16
+ ADDED = "Added",
17
+ MODIFIED = "Modified",
18
+ REMOVED = "Removed",
19
+ CLEARED = "Cleared"
20
+ }
@@ -1,19 +1,10 @@
1
- import { ConfigService } from '../config/config.service';
2
- import { StorageScope, StorageOptions, StorageServiceEvent } from './storage.interface';
3
- import { BehaviorSubject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- export declare class StorageService {
6
- private config;
7
- protected options: StorageOptions;
8
- storageChange$: BehaviorSubject<StorageServiceEvent>;
9
- constructor(config: ConfigService);
10
- /**
11
- * Use to get the data found in storage file
12
- */
13
- get(key: string, scope?: StorageScope): string | object | boolean | number;
14
- set(key: string, value: string | object | boolean | number, scope?: StorageScope): void;
15
- remove(key: string, scope?: StorageScope): void;
16
- clear(scope?: StorageScope): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
18
- static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
19
- }
1
+ import { ConfigService } from '../config/config.service';
2
+ import { StorageOptions } from './storage.interface';
3
+ import { BaseStorage } from './storage';
4
+ import * as i0 from "@angular/core";
5
+ export declare class StorageService extends BaseStorage<StorageOptions> {
6
+ private config;
7
+ constructor(config: ConfigService);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<StorageService, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<StorageService>;
10
+ }
@@ -9,8 +9,7 @@
9
9
  },
10
10
  "errors": {
11
11
  "uncaught": {
12
- "message":
13
- "Sorry, service is currently not available. Please try again later",
12
+ "message": "Sorry, service is currently not available. Please try again later",
14
13
  "title": "Error server"
15
14
  }
16
15
  },