@eui/core 15.4.0 → 15.4.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 (213) hide show
  1. package/LICENSE +296 -296
  2. package/README.md +26 -26
  3. package/assets/i18n-eui/bg.json +114 -114
  4. package/assets/i18n-eui/cs.json +114 -114
  5. package/assets/i18n-eui/da.json +114 -114
  6. package/assets/i18n-eui/de.json +114 -114
  7. package/assets/i18n-eui/el.json +114 -114
  8. package/assets/i18n-eui/en.json +113 -113
  9. package/assets/i18n-eui/es.json +114 -114
  10. package/assets/i18n-eui/et.json +114 -114
  11. package/assets/i18n-eui/fi.json +114 -114
  12. package/assets/i18n-eui/fr.json +114 -114
  13. package/assets/i18n-eui/ga.json +114 -114
  14. package/assets/i18n-eui/hr.json +114 -114
  15. package/assets/i18n-eui/hu.json +114 -114
  16. package/assets/i18n-eui/it.json +114 -114
  17. package/assets/i18n-eui/lt.json +114 -114
  18. package/assets/i18n-eui/lv.json +114 -114
  19. package/assets/i18n-eui/mt.json +114 -114
  20. package/assets/i18n-eui/nl.json +114 -114
  21. package/assets/i18n-eui/pl.json +114 -114
  22. package/assets/i18n-eui/pt.json +114 -114
  23. package/assets/i18n-eui/ro.json +114 -114
  24. package/assets/i18n-eui/sk.json +114 -114
  25. package/assets/i18n-eui/sl.json +114 -114
  26. package/assets/i18n-eui/sv.json +114 -114
  27. package/docs/classes/RouterMock.html +5 -5
  28. package/docs/dependencies.html +95 -7
  29. package/docs/index.html +36 -59
  30. package/docs/injectables/CoreAppEffects.html +51 -51
  31. package/docs/js/menu-wc.js +12 -7
  32. package/docs/js/menu-wc_es5.js +1 -1
  33. package/docs/js/search/search_index.js +2 -2
  34. package/docs/miscellaneous/variables.html +1211 -1211
  35. package/docs/overview.html +171 -0
  36. package/esm2020/eui-core.mjs +4 -4
  37. package/esm2020/index.mjs +13 -13
  38. package/esm2020/lib/eui-core.module.mjs +78 -78
  39. package/esm2020/lib/helpers/date-helpers.mjs +3 -3
  40. package/esm2020/lib/helpers/dom-helpers.mjs +87 -87
  41. package/esm2020/lib/helpers/event-helpers.mjs +9 -9
  42. package/esm2020/lib/helpers/form-helpers.mjs +42 -42
  43. package/esm2020/lib/helpers/format-helpers.mjs +66 -66
  44. package/esm2020/lib/helpers/http-helpers.mjs +7 -7
  45. package/esm2020/lib/helpers/index.mjs +8 -8
  46. package/esm2020/lib/helpers/utils.mjs +7 -7
  47. package/esm2020/lib/interceptors/add-lang-param.interceptor.mjs +35 -35
  48. package/esm2020/lib/interceptors/cache-prevention.interceptor.mjs +21 -21
  49. package/esm2020/lib/interceptors/cors-security.interceptor.mjs +15 -15
  50. package/esm2020/lib/interceptors/csrf-prevention.interceptor.mjs +15 -15
  51. package/esm2020/lib/interceptors/eu-login-session-timeout-handling.interceptor.mjs +72 -72
  52. package/esm2020/lib/interceptors/index.mjs +8 -8
  53. package/esm2020/lib/interceptors/openid/index.mjs +4 -4
  54. package/esm2020/lib/interceptors/openid/openid-connect.interceptor.mjs +149 -149
  55. package/esm2020/lib/interceptors/openid/openid-connect.service.mjs +56 -56
  56. package/esm2020/lib/interceptors/openid/openid-connect.service.mock.mjs +8 -8
  57. package/esm2020/lib/interceptors/ux-request-error-model.interceptor.mjs +31 -31
  58. package/esm2020/lib/services/app/eui-init-app.mjs +29 -29
  59. package/esm2020/lib/services/app/eui-pre-init-app.mjs +43 -43
  60. package/esm2020/lib/services/app/eui-startup.mjs +40 -40
  61. package/esm2020/lib/services/app/factories/log.mjs +55 -55
  62. package/esm2020/lib/services/app/index.mjs +2 -2
  63. package/esm2020/lib/services/config/defaults.mjs +68 -68
  64. package/esm2020/lib/services/config/tokens.mjs +74 -74
  65. package/esm2020/lib/services/errors/eui.error.mjs +38 -38
  66. package/esm2020/lib/services/errors/global-error-handler.mjs +24 -24
  67. package/esm2020/lib/services/errors/http-error-handler-callback-functions.mjs +17 -17
  68. package/esm2020/lib/services/errors/http-error-handler.interceptor.mjs +55 -55
  69. package/esm2020/lib/services/errors/index.mjs +5 -5
  70. package/esm2020/lib/services/i18n/i18n.loader.mjs +198 -198
  71. package/esm2020/lib/services/i18n/i18n.resource.mjs +43 -43
  72. package/esm2020/lib/services/i18n/i18n.service.mjs +228 -228
  73. package/esm2020/lib/services/i18n/i18n.service.mock.mjs +38 -38
  74. package/esm2020/lib/services/i18n/index.mjs +6 -6
  75. package/esm2020/lib/services/index.mjs +19 -19
  76. package/esm2020/lib/services/locale/index.mjs +3 -3
  77. package/esm2020/lib/services/locale/locale.service.mjs +232 -232
  78. package/esm2020/lib/services/locale/locale.service.mock.mjs +43 -43
  79. package/esm2020/lib/services/log/index.mjs +4 -4
  80. package/esm2020/lib/services/log/log.module.mjs +38 -38
  81. package/esm2020/lib/services/log/log.service.mjs +51 -51
  82. package/esm2020/lib/services/log/log.service.mock.mjs +7 -7
  83. package/esm2020/lib/services/permission/permission.service.mjs +110 -110
  84. package/esm2020/lib/services/queue/api-queue.service.mjs +137 -137
  85. package/esm2020/lib/services/queue/api-queue.service.mock.mjs +23 -23
  86. package/esm2020/lib/services/queue/index.mjs +3 -3
  87. package/esm2020/lib/services/storage/async-storage.service.mjs +17 -17
  88. package/esm2020/lib/services/storage/async-storage.service.mock.mjs +22 -22
  89. package/esm2020/lib/services/storage/index.mjs +8 -8
  90. package/esm2020/lib/services/storage/local-forage.service.mjs +93 -93
  91. package/esm2020/lib/services/storage/local-storage.service.mjs +75 -75
  92. package/esm2020/lib/services/storage/session-storage.service.mjs +75 -75
  93. package/esm2020/lib/services/storage/storage.service.mjs +6 -6
  94. package/esm2020/lib/services/storage/storage.service.mock.mjs +12 -12
  95. package/esm2020/lib/services/store/actions/app.actions.mjs +74 -74
  96. package/esm2020/lib/services/store/actions/i18n.actions.mjs +11 -11
  97. package/esm2020/lib/services/store/actions/index.mjs +6 -6
  98. package/esm2020/lib/services/store/actions/locale.actions.mjs +11 -11
  99. package/esm2020/lib/services/store/actions/notifications.actions.mjs +11 -11
  100. package/esm2020/lib/services/store/actions/user.actions.mjs +39 -39
  101. package/esm2020/lib/services/store/effects/app.effects.mjs +55 -55
  102. package/esm2020/lib/services/store/effects/index.mjs +4 -4
  103. package/esm2020/lib/services/store/index.mjs +6 -6
  104. package/esm2020/lib/services/store/reducers/app.reducers.mjs +56 -56
  105. package/esm2020/lib/services/store/reducers/core.reducers.mjs +13 -13
  106. package/esm2020/lib/services/store/reducers/i18n.reducers.mjs +16 -16
  107. package/esm2020/lib/services/store/reducers/index.mjs +8 -8
  108. package/esm2020/lib/services/store/reducers/locale.reducers.mjs +16 -16
  109. package/esm2020/lib/services/store/reducers/meta.reducers.mjs +89 -89
  110. package/esm2020/lib/services/store/reducers/notifications.reducers.mjs +13 -13
  111. package/esm2020/lib/services/store/reducers/user.reducers.mjs +43 -43
  112. package/esm2020/lib/services/store/store.service.mjs +112 -112
  113. package/esm2020/lib/services/store/store.service.mock.mjs +22 -22
  114. package/esm2020/lib/services/user/index.mjs +3 -3
  115. package/esm2020/lib/services/user/user.service.mjs +64 -64
  116. package/esm2020/lib/services/user/user.service.mock.mjs +32 -32
  117. package/esm2020/lib/services/ux-app-shell.service.mjs +690 -690
  118. package/esm2020/lib/services/ux-dynamic-component/ux-dynamic-component.service.mjs +63 -63
  119. package/esm2020/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.mjs +66 -66
  120. package/esm2020/lib/services/ux-error-feedback/ux-error-feedback.service.mjs +99 -99
  121. package/esm2020/lib/services/ux-error-feedback/ux-error-handler.operator.mjs +16 -16
  122. package/esm2020/lib/services/ux-timezone.service.mjs +716 -716
  123. package/fesm2015/eui-core.mjs +4484 -4484
  124. package/fesm2015/eui-core.mjs.map +1 -1
  125. package/fesm2020/eui-core.mjs +4538 -4538
  126. package/fesm2020/eui-core.mjs.map +1 -1
  127. package/index.d.ts +5 -5
  128. package/lib/eui-core.module.d.ts +20 -20
  129. package/lib/helpers/date-helpers.d.ts +2 -2
  130. package/lib/helpers/dom-helpers.d.ts +26 -26
  131. package/lib/helpers/event-helpers.d.ts +1 -1
  132. package/lib/helpers/form-helpers.d.ts +10 -10
  133. package/lib/helpers/format-helpers.d.ts +12 -12
  134. package/lib/helpers/http-helpers.d.ts +2 -2
  135. package/lib/helpers/index.d.ts +7 -7
  136. package/lib/helpers/utils.d.ts +6 -6
  137. package/lib/interceptors/add-lang-param.interceptor.d.ts +16 -16
  138. package/lib/interceptors/cache-prevention.interceptor.d.ts +8 -8
  139. package/lib/interceptors/cors-security.interceptor.d.ts +8 -8
  140. package/lib/interceptors/csrf-prevention.interceptor.d.ts +8 -8
  141. package/lib/interceptors/eu-login-session-timeout-handling.interceptor.d.ts +12 -12
  142. package/lib/interceptors/index.d.ts +7 -7
  143. package/lib/interceptors/openid/index.d.ts +3 -3
  144. package/lib/interceptors/openid/openid-connect.interceptor.d.ts +14 -14
  145. package/lib/interceptors/openid/openid-connect.service.d.ts +17 -17
  146. package/lib/interceptors/openid/openid-connect.service.mock.d.ts +5 -5
  147. package/lib/interceptors/ux-request-error-model.interceptor.d.ts +13 -13
  148. package/lib/services/app/eui-init-app.d.ts +2 -2
  149. package/lib/services/app/eui-pre-init-app.d.ts +16 -16
  150. package/lib/services/app/eui-startup.d.ts +4 -4
  151. package/lib/services/app/factories/log.d.ts +25 -25
  152. package/lib/services/app/index.d.ts +1 -1
  153. package/lib/services/config/defaults.d.ts +11 -11
  154. package/lib/services/config/tokens.d.ts +19 -19
  155. package/lib/services/errors/eui.error.d.ts +15 -15
  156. package/lib/services/errors/global-error-handler.d.ts +10 -10
  157. package/lib/services/errors/http-error-handler-callback-functions.d.ts +6 -6
  158. package/lib/services/errors/http-error-handler.interceptor.d.ts +22 -22
  159. package/lib/services/errors/index.d.ts +4 -4
  160. package/lib/services/i18n/i18n.loader.d.ts +79 -79
  161. package/lib/services/i18n/i18n.resource.d.ts +35 -35
  162. package/lib/services/i18n/i18n.service.d.ts +73 -73
  163. package/lib/services/i18n/i18n.service.mock.d.ts +19 -19
  164. package/lib/services/i18n/index.d.ts +4 -4
  165. package/lib/services/index.d.ts +18 -18
  166. package/lib/services/locale/index.d.ts +2 -2
  167. package/lib/services/locale/locale.service.d.ts +68 -68
  168. package/lib/services/locale/locale.service.mock.d.ts +15 -15
  169. package/lib/services/log/index.d.ts +3 -3
  170. package/lib/services/log/log.module.d.ts +15 -15
  171. package/lib/services/log/log.service.d.ts +27 -27
  172. package/lib/services/log/log.service.mock.d.ts +4 -4
  173. package/lib/services/permission/permission.service.d.ts +52 -52
  174. package/lib/services/queue/api-queue.service.d.ts +76 -76
  175. package/lib/services/queue/api-queue.service.mock.d.ts +13 -13
  176. package/lib/services/queue/index.d.ts +2 -2
  177. package/lib/services/storage/async-storage.service.d.ts +44 -44
  178. package/lib/services/storage/async-storage.service.mock.d.ts +11 -11
  179. package/lib/services/storage/index.d.ts +7 -7
  180. package/lib/services/storage/local-forage.service.d.ts +48 -48
  181. package/lib/services/storage/local-storage.service.d.ts +34 -34
  182. package/lib/services/storage/session-storage.service.d.ts +34 -34
  183. package/lib/services/storage/storage.service.d.ts +28 -28
  184. package/lib/services/storage/storage.service.mock.d.ts +7 -7
  185. package/lib/services/store/actions/app.actions.d.ts +82 -82
  186. package/lib/services/store/actions/i18n.actions.d.ts +11 -11
  187. package/lib/services/store/actions/index.d.ts +5 -5
  188. package/lib/services/store/actions/locale.actions.d.ts +11 -11
  189. package/lib/services/store/actions/notifications.actions.d.ts +10 -10
  190. package/lib/services/store/actions/user.actions.d.ts +35 -35
  191. package/lib/services/store/effects/app.effects.d.ts +19 -19
  192. package/lib/services/store/effects/index.d.ts +3 -3
  193. package/lib/services/store/index.d.ts +5 -5
  194. package/lib/services/store/reducers/app.reducers.d.ts +3 -3
  195. package/lib/services/store/reducers/core.reducers.d.ts +3 -3
  196. package/lib/services/store/reducers/i18n.reducers.d.ts +3 -3
  197. package/lib/services/store/reducers/index.d.ts +7 -7
  198. package/lib/services/store/reducers/locale.reducers.d.ts +3 -3
  199. package/lib/services/store/reducers/meta.reducers.d.ts +17 -17
  200. package/lib/services/store/reducers/notifications.reducers.d.ts +3 -3
  201. package/lib/services/store/reducers/user.reducers.d.ts +3 -3
  202. package/lib/services/store/store.service.d.ts +43 -43
  203. package/lib/services/store/store.service.mock.d.ts +12 -12
  204. package/lib/services/user/index.d.ts +2 -2
  205. package/lib/services/user/user.service.d.ts +15 -15
  206. package/lib/services/user/user.service.mock.d.ts +16 -16
  207. package/lib/services/ux-app-shell.service.d.ts +155 -155
  208. package/lib/services/ux-dynamic-component/ux-dynamic-component.service.d.ts +36 -36
  209. package/lib/services/ux-dynamic-menu/ux-dynamic-menu.service.d.ts +14 -14
  210. package/lib/services/ux-error-feedback/ux-error-feedback.service.d.ts +35 -35
  211. package/lib/services/ux-error-feedback/ux-error-handler.operator.d.ts +3 -3
  212. package/lib/services/ux-timezone.service.d.ts +269 -269
  213. package/package.json +2 -2
@@ -1,3 +1,3 @@
1
- export * from './locale.service';
2
- export * from './locale.service.mock';
1
+ export * from './locale.service';
2
+ export * from './locale.service.mock';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1,69 +1,69 @@
1
- /**
2
- * Angular is using a gulp task to generate the locales that we dynamically import. This task can be found here
3
- * https://github.com/angular/angular/blob/master/tools/gulp-tasks/cldr/cldr-data.js
4
- * That task is utilizing the CLDR library to load and construct the locale for each region. This service is responsible
5
- * to load those locale dynamically upon request and to update the state of the eUI app.
6
- *
7
- * Parts that are handles through configuration:
8
- * - update of the LOCALE_ID token
9
- * - initial dynamical load of locales
10
- * - bind to translation service for locale changes
11
- */
12
- import { InjectionToken, OnDestroy } from '@angular/core';
13
- import { EuiService, EuiServiceStatus, GlobalConfig, LocaleServiceConfig, LocaleState } from '@eui/base';
14
- import { Observable } from 'rxjs';
15
- import { StoreService } from '../store';
16
- import { LogService } from '../log';
17
- import { I18nService } from '../i18n';
18
- import * as i0 from "@angular/core";
19
- export declare type LocaleMapper = (locale: string) => any;
20
- export declare const LOCALE_ID_MAPPER: InjectionToken<LocaleMapper>;
21
- export declare class LocaleService<T extends LocaleState = LocaleState> extends EuiService<T | LocaleState> implements OnDestroy {
22
- protected store: StoreService;
23
- protected baseGlobalConfig: GlobalConfig;
24
- protected locale_id: string;
25
- private localeMapper;
26
- private i18n;
27
- private log;
28
- private readonly logger;
29
- private subNotifier;
30
- protected config: LocaleServiceConfig;
31
- constructor(store: StoreService, baseGlobalConfig: GlobalConfig, locale_id: string, localeMapper: LocaleMapper, i18n: I18nService, log: LogService);
32
- ngOnDestroy(): void;
33
- getState<K = T>(mapFn?: (state: T) => K): Observable<K>;
34
- getState<a extends keyof T>(key?: a): Observable<T[a]>;
35
- init(state?: LocaleState | undefined): Observable<EuiServiceStatus>;
36
- /**
37
- * dynamically load locale and update the state
38
- */
39
- updateState(state: LocaleState): void;
40
- addLocale(id: string): Observable<EuiServiceStatus>;
41
- get previousLocale(): string;
42
- get currentLocale(): string;
43
- /**
44
- * load and register locale data dynamically
45
- *
46
- * @param locale array of locale to load
47
- */
48
- private loadLocale;
49
- /**
50
- * listen for language changes and dynamically set locale accordingly. In case of non registered locale register it
51
- * dynamically.
52
- */
53
- private bindTranslateServiceLangChangeToState;
54
- /**
55
- * retrieve locales from browser
56
- *
57
- * @param options
58
- */
59
- private getBrowserLocales;
60
- /**
61
- * if locale is already registered filtered out.
62
- *
63
- * @param locales A string array contains all locale id e.g. ["el", "el-CY"]
64
- */
65
- private filterRegisteredLocales;
66
- static ɵfac: i0.ɵɵFactoryDeclaration<LocaleService<any>, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
67
- static ɵprov: i0.ɵɵInjectableDeclaration<LocaleService<any>>;
68
- }
1
+ /**
2
+ * Angular is using a gulp task to generate the locales that we dynamically import. This task can be found here
3
+ * https://github.com/angular/angular/blob/master/tools/gulp-tasks/cldr/cldr-data.js
4
+ * That task is utilizing the CLDR library to load and construct the locale for each region. This service is responsible
5
+ * to load those locale dynamically upon request and to update the state of the eUI app.
6
+ *
7
+ * Parts that are handles through configuration:
8
+ * - update of the LOCALE_ID token
9
+ * - initial dynamical load of locales
10
+ * - bind to translation service for locale changes
11
+ */
12
+ import { InjectionToken, OnDestroy } from '@angular/core';
13
+ import { EuiService, EuiServiceStatus, GlobalConfig, LocaleServiceConfig, LocaleState } from '@eui/base';
14
+ import { Observable } from 'rxjs';
15
+ import { StoreService } from '../store';
16
+ import { LogService } from '../log';
17
+ import { I18nService } from '../i18n';
18
+ import * as i0 from "@angular/core";
19
+ export declare type LocaleMapper = (locale: string) => any;
20
+ export declare const LOCALE_ID_MAPPER: InjectionToken<LocaleMapper>;
21
+ export declare class LocaleService<T extends LocaleState = LocaleState> extends EuiService<T | LocaleState> implements OnDestroy {
22
+ protected store: StoreService;
23
+ protected baseGlobalConfig: GlobalConfig;
24
+ protected locale_id: string;
25
+ private localeMapper;
26
+ private i18n;
27
+ private log;
28
+ private readonly logger;
29
+ private subNotifier;
30
+ protected config: LocaleServiceConfig;
31
+ constructor(store: StoreService, baseGlobalConfig: GlobalConfig, locale_id: string, localeMapper: LocaleMapper, i18n: I18nService, log: LogService);
32
+ ngOnDestroy(): void;
33
+ getState<K = T>(mapFn?: (state: T) => K): Observable<K>;
34
+ getState<a extends keyof T>(key?: a): Observable<T[a]>;
35
+ init(state?: LocaleState | undefined): Observable<EuiServiceStatus>;
36
+ /**
37
+ * dynamically load locale and update the state
38
+ */
39
+ updateState(state: LocaleState): void;
40
+ addLocale(id: string): Observable<EuiServiceStatus>;
41
+ get previousLocale(): string;
42
+ get currentLocale(): string;
43
+ /**
44
+ * load and register locale data dynamically
45
+ *
46
+ * @param locale array of locale to load
47
+ */
48
+ private loadLocale;
49
+ /**
50
+ * listen for language changes and dynamically set locale accordingly. In case of non registered locale register it
51
+ * dynamically.
52
+ */
53
+ private bindTranslateServiceLangChangeToState;
54
+ /**
55
+ * retrieve locales from browser
56
+ *
57
+ * @param options
58
+ */
59
+ private getBrowserLocales;
60
+ /**
61
+ * if locale is already registered filtered out.
62
+ *
63
+ * @param locales A string array contains all locale id e.g. ["el", "el-CY"]
64
+ */
65
+ private filterRegisteredLocales;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocaleService<any>, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
67
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocaleService<any>>;
68
+ }
69
69
  //# sourceMappingURL=locale.service.d.ts.map
@@ -1,16 +1,16 @@
1
- import { Observable } from 'rxjs';
2
- import { EuiServiceStatus, LocaleState } from '@eui/base';
3
- import { LocaleService } from './locale.service';
4
- import * as i0 from "@angular/core";
5
- export declare class LocaleServiceMock extends LocaleService {
6
- protected locale_id: string;
7
- private DEFAULT_LOCALE;
8
- private stateSubject;
9
- constructor(locale_id: string);
10
- getState(): Observable<LocaleState>;
11
- updateState(state: LocaleState): void;
12
- init(state?: LocaleState): Observable<EuiServiceStatus>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<LocaleServiceMock, [{ optional: true; }]>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<LocaleServiceMock>;
15
- }
1
+ import { Observable } from 'rxjs';
2
+ import { EuiServiceStatus, LocaleState } from '@eui/base';
3
+ import { LocaleService } from './locale.service';
4
+ import * as i0 from "@angular/core";
5
+ export declare class LocaleServiceMock extends LocaleService {
6
+ protected locale_id: string;
7
+ private DEFAULT_LOCALE;
8
+ private stateSubject;
9
+ constructor(locale_id: string);
10
+ getState(): Observable<LocaleState>;
11
+ updateState(state: LocaleState): void;
12
+ init(state?: LocaleState): Observable<EuiServiceStatus>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocaleServiceMock, [{ optional: true; }]>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<LocaleServiceMock>;
15
+ }
16
16
  //# sourceMappingURL=locale.service.mock.d.ts.map
@@ -1,4 +1,4 @@
1
- export * from './log.service';
2
- export * from './log.service.mock';
3
- export * from './log.module';
1
+ export * from './log.service';
2
+ export * from './log.service.mock';
3
+ export * from './log.module';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1,16 +1,16 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { LogConfig } from '@eui/base';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Log Module
6
- */
7
- export declare class LogModule {
8
- /** method called in your root module to provide the LogService */
9
- static forRoot(config?: LogConfig): ModuleWithProviders<LogModule>;
10
- /** method called in your other (non root, lazy loaded) modules to import a different instance of LogService */
11
- static forChild(config?: LogConfig): ModuleWithProviders<LogModule>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<LogModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<LogModule, never, never, never>;
14
- static ɵinj: i0.ɵɵInjectorDeclaration<LogModule>;
15
- }
1
+ import { ModuleWithProviders } from '@angular/core';
2
+ import { LogConfig } from '@eui/base';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Log Module
6
+ */
7
+ export declare class LogModule {
8
+ /** method called in your root module to provide the LogService */
9
+ static forRoot(config?: LogConfig): ModuleWithProviders<LogModule>;
10
+ /** method called in your other (non root, lazy loaded) modules to import a different instance of LogService */
11
+ static forChild(config?: LogConfig): ModuleWithProviders<LogModule>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<LogModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LogModule, never, never, never>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<LogModule>;
15
+ }
16
16
  //# sourceMappingURL=log.module.d.ts.map
@@ -1,28 +1,28 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { LogAppender, Logger, LogLevel } from '@eui/base';
3
- import * as i0 from "@angular/core";
4
- export declare const BASE_LOGGER_NAME_TOKEN: InjectionToken<string>;
5
- export declare const LOG_LEVEL_TOKEN: InjectionToken<LogLevel>;
6
- export declare const LOG_APPENDERS_TOKEN: InjectionToken<LogAppender<import("@eui/base").LogAppenderConfig>[]>;
7
- /**
8
- * Log service, responsible for getting or creating loggers. It itself acts as a base logger
9
- */
10
- export declare class LogService extends Logger {
11
- protected name: string;
12
- protected level: LogLevel;
13
- protected appenders: LogAppender[];
14
- /** the list of persistent loggers */
15
- protected loggers: {};
16
- constructor(name: string, level: LogLevel, appenders: LogAppender[]);
17
- /**
18
- * Gets a logger by name. If the logger does not exist, it is created
19
- *
20
- * @param loggerName logger name
21
- * @param persist optional parameter. Set it to true if you want to reuse the logger. By default, it is set to false
22
- * @returns the logger
23
- */
24
- getLogger(loggerName: string, persist?: boolean): Logger;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<LogService, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<LogService>;
27
- }
1
+ import { InjectionToken } from '@angular/core';
2
+ import { LogAppender, Logger, LogLevel } from '@eui/base';
3
+ import * as i0 from "@angular/core";
4
+ export declare const BASE_LOGGER_NAME_TOKEN: InjectionToken<string>;
5
+ export declare const LOG_LEVEL_TOKEN: InjectionToken<LogLevel>;
6
+ export declare const LOG_APPENDERS_TOKEN: InjectionToken<LogAppender<import("@eui/base").LogAppenderConfig>[]>;
7
+ /**
8
+ * Log service, responsible for getting or creating loggers. It itself acts as a base logger
9
+ */
10
+ export declare class LogService extends Logger {
11
+ protected name: string;
12
+ protected level: LogLevel;
13
+ protected appenders: LogAppender[];
14
+ /** the list of persistent loggers */
15
+ protected loggers: {};
16
+ constructor(name: string, level: LogLevel, appenders: LogAppender[]);
17
+ /**
18
+ * Gets a logger by name. If the logger does not exist, it is created
19
+ *
20
+ * @param loggerName logger name
21
+ * @param persist optional parameter. Set it to true if you want to reuse the logger. By default, it is set to false
22
+ * @returns the logger
23
+ */
24
+ getLogger(loggerName: string, persist?: boolean): Logger;
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<LogService, never>;
26
+ static ɵprov: i0.ɵɵInjectableDeclaration<LogService>;
27
+ }
28
28
  //# sourceMappingURL=log.service.d.ts.map
@@ -1,5 +1,5 @@
1
- import { LoggerMock } from '@eui/base';
2
- export declare class LogServiceMock extends LoggerMock {
3
- getLogger(): LoggerMock;
4
- }
1
+ import { LoggerMock } from '@eui/base';
2
+ export declare class LogServiceMock extends LoggerMock {
3
+ getLogger(): LoggerMock;
4
+ }
5
5
  //# sourceMappingURL=log.service.mock.d.ts.map
@@ -1,53 +1,53 @@
1
- import { EuiService, EuiServiceStatus, UxUserRight } from '@eui/base';
2
- import { Observable } from 'rxjs';
3
- import { LogService } from '../log/log.service';
4
- import { StoreService } from '../store/store.service';
5
- import * as i0 from "@angular/core";
6
- export declare class EuiPermissionService extends EuiService<UxUserRight[]> {
7
- private log;
8
- protected store: StoreService;
9
- private readonly logger;
10
- constructor(log: LogService, store: StoreService);
11
- /**
12
- * initialize the service by providing a state
13
- * @param rights
14
- */
15
- init(rights: UxUserRight[]): Observable<EuiServiceStatus>;
16
- protected get userRights(): UxUserRight[];
17
- /**
18
- * get the user's Rights from the state
19
- */
20
- getState<K = UxUserRight[]>(): Observable<K>;
21
- /**
22
- * update the state with the given user's rights
23
- * @param rights
24
- */
25
- updateState(rights: UxUserRight[]): void;
26
- /**
27
- * accepts a string of right and or a permission. In string first comes the right and or followed by permission in
28
- * a dot separated way e.g. 'RIGHT.PERMISSION' or 'RIGHT'. The string can contain more that 2 separated fields.
29
- * In that case the last field should be the permission and all the others a Right. e.g. 'RIGHT1.RIGHT2.PERMISSION'
30
- * The last part is useful where you want a user to have multiple rights and the permission of the last right.
31
- * @param rightsAndPermission
32
- */
33
- checkAttributePermission(rightsAndPermission: string): boolean;
34
- /**
35
- * check if a user has the right.
36
- * @param rightId the id of Right
37
- */
38
- checkRight(rightId: string): boolean;
39
- /**
40
- * check if a user has that right and that right has the permission given.
41
- * @param rightId the right of the user
42
- * @param permission the permission of the right
43
- */
44
- checkPermission(rightId: string, permission: string): boolean;
45
- /**
46
- * checks whether a user have all rights passed as an argument
47
- * @param rights an array of UxUserRight
48
- */
49
- private haveAllRights;
50
- static ɵfac: i0.ɵɵFactoryDeclaration<EuiPermissionService, [{ optional: true; }, null]>;
51
- static ɵprov: i0.ɵɵInjectableDeclaration<EuiPermissionService>;
52
- }
1
+ import { EuiService, EuiServiceStatus, UxUserRight } from '@eui/base';
2
+ import { Observable } from 'rxjs';
3
+ import { LogService } from '../log/log.service';
4
+ import { StoreService } from '../store/store.service';
5
+ import * as i0 from "@angular/core";
6
+ export declare class EuiPermissionService extends EuiService<UxUserRight[]> {
7
+ private log;
8
+ protected store: StoreService;
9
+ private readonly logger;
10
+ constructor(log: LogService, store: StoreService);
11
+ /**
12
+ * initialize the service by providing a state
13
+ * @param rights
14
+ */
15
+ init(rights: UxUserRight[]): Observable<EuiServiceStatus>;
16
+ protected get userRights(): UxUserRight[];
17
+ /**
18
+ * get the user's Rights from the state
19
+ */
20
+ getState<K = UxUserRight[]>(): Observable<K>;
21
+ /**
22
+ * update the state with the given user's rights
23
+ * @param rights
24
+ */
25
+ updateState(rights: UxUserRight[]): void;
26
+ /**
27
+ * accepts a string of right and or a permission. In string first comes the right and or followed by permission in
28
+ * a dot separated way e.g. 'RIGHT.PERMISSION' or 'RIGHT'. The string can contain more that 2 separated fields.
29
+ * In that case the last field should be the permission and all the others a Right. e.g. 'RIGHT1.RIGHT2.PERMISSION'
30
+ * The last part is useful where you want a user to have multiple rights and the permission of the last right.
31
+ * @param rightsAndPermission
32
+ */
33
+ checkAttributePermission(rightsAndPermission: string): boolean;
34
+ /**
35
+ * check if a user has the right.
36
+ * @param rightId the id of Right
37
+ */
38
+ checkRight(rightId: string): boolean;
39
+ /**
40
+ * check if a user has that right and that right has the permission given.
41
+ * @param rightId the right of the user
42
+ * @param permission the permission of the right
43
+ */
44
+ checkPermission(rightId: string, permission: string): boolean;
45
+ /**
46
+ * checks whether a user have all rights passed as an argument
47
+ * @param rights an array of UxUserRight
48
+ */
49
+ private haveAllRights;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<EuiPermissionService, [{ optional: true; }, null]>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<EuiPermissionService>;
52
+ }
53
53
  //# sourceMappingURL=permission.service.d.ts.map
@@ -1,77 +1,77 @@
1
- import { HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { ApiQueueItem } from '@eui/base';
4
- import { LogService } from '../log/log.service';
5
- import { StoreService } from '../store/store.service';
6
- import * as i0 from "@angular/core";
7
- export declare class ApiQueueService {
8
- protected store: StoreService;
9
- protected http: HttpClient;
10
- protected logService: LogService;
11
- constructor(store: StoreService, http: HttpClient, logService: LogService);
12
- /**
13
- * Adds an item in the queue by dispatching an action to the store.
14
- * @param id - The id of the item inside the queue.
15
- * WARNING if matches any other queue item id will overwrite it.
16
- * @param item - an item for Queue
17
- */
18
- addQueueItem(id: string, item: ApiQueueItem): void;
19
- /**
20
- * Subscribes to the store to retrieve queue and then converts the queue object to an array of items.
21
- * @return An Observable of array of all items inside the current queue (ApiQueueItem[])
22
- */
23
- getQueue(): Observable<ApiQueueItem[]>;
24
- /**
25
- * Subscribes to the store to retrieve an item from the queue.
26
- * @param id - id of the item inside the queue
27
- * @return An Observable of ApiQueueItem type
28
- */
29
- getQueueItem(id: string): Observable<ApiQueueItem>;
30
- /**
31
- * Removes a given item from the queue.
32
- * @param id - id of the item inside the queue
33
- */
34
- removeQueueItem(id: string): void;
35
- /**
36
- * Removes all items placed in the queue.
37
- */
38
- removeAllQueueItem(): void;
39
- /**
40
- * Process an item from the queue.
41
- * @param id - id of the item inside the queue
42
- * @return An Observable of type any
43
- */
44
- processQueueItem(id: string): Observable<any>;
45
- /**
46
- * Process all the items inside the queue.
47
- * @param [continueOnError=true] - in case of an item request fails continue with the rest in queue
48
- * @return An Observable with an array which contains all responses from all items in queue.
49
- */
50
- processAllQueueItems(continueOnError?: boolean): Observable<any[]>;
51
- /**
52
- * Process all items in queue after it order them based on their timestamp. Beware that order
53
- * matter in execution of Http Request in queue. When a request completes only then next will begin. Emission
54
- * or Http response follows order.
55
- * @param [ascending=true] - sets the order of queue items based on timestamp
56
- */
57
- processAllQueueItemsSequential(ascending?: boolean): Observable<any>;
58
- /**
59
- * Short dates ascending based on input
60
- * @param a - Date one
61
- * @param b - Date two
62
- *
63
- * @beta
64
- */
65
- protected sortOnTimestamp(a: [string, ApiQueueItem], b: [string, ApiQueueItem]): number;
66
- /**
67
- * build and HttpRequest Observable based on the given queue.
68
- * After successful request completion removes the item from the queue.
69
- * @param id - id of the item inside the queue
70
- * @param item - the item of the queue that matches the id.
71
- * @return An Observable of HttpClient Request
72
- */
73
- private buildHttpRequest;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<ApiQueueService, never>;
75
- static ɵprov: i0.ɵɵInjectableDeclaration<ApiQueueService>;
76
- }
1
+ import { HttpClient } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import { ApiQueueItem } from '@eui/base';
4
+ import { LogService } from '../log/log.service';
5
+ import { StoreService } from '../store/store.service';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ApiQueueService {
8
+ protected store: StoreService;
9
+ protected http: HttpClient;
10
+ protected logService: LogService;
11
+ constructor(store: StoreService, http: HttpClient, logService: LogService);
12
+ /**
13
+ * Adds an item in the queue by dispatching an action to the store.
14
+ * @param id - The id of the item inside the queue.
15
+ * WARNING if matches any other queue item id will overwrite it.
16
+ * @param item - an item for Queue
17
+ */
18
+ addQueueItem(id: string, item: ApiQueueItem): void;
19
+ /**
20
+ * Subscribes to the store to retrieve queue and then converts the queue object to an array of items.
21
+ * @return An Observable of array of all items inside the current queue (ApiQueueItem[])
22
+ */
23
+ getQueue(): Observable<ApiQueueItem[]>;
24
+ /**
25
+ * Subscribes to the store to retrieve an item from the queue.
26
+ * @param id - id of the item inside the queue
27
+ * @return An Observable of ApiQueueItem type
28
+ */
29
+ getQueueItem(id: string): Observable<ApiQueueItem>;
30
+ /**
31
+ * Removes a given item from the queue.
32
+ * @param id - id of the item inside the queue
33
+ */
34
+ removeQueueItem(id: string): void;
35
+ /**
36
+ * Removes all items placed in the queue.
37
+ */
38
+ removeAllQueueItem(): void;
39
+ /**
40
+ * Process an item from the queue.
41
+ * @param id - id of the item inside the queue
42
+ * @return An Observable of type any
43
+ */
44
+ processQueueItem(id: string): Observable<any>;
45
+ /**
46
+ * Process all the items inside the queue.
47
+ * @param [continueOnError=true] - in case of an item request fails continue with the rest in queue
48
+ * @return An Observable with an array which contains all responses from all items in queue.
49
+ */
50
+ processAllQueueItems(continueOnError?: boolean): Observable<any[]>;
51
+ /**
52
+ * Process all items in queue after it order them based on their timestamp. Beware that order
53
+ * matter in execution of Http Request in queue. When a request completes only then next will begin. Emission
54
+ * or Http response follows order.
55
+ * @param [ascending=true] - sets the order of queue items based on timestamp
56
+ */
57
+ processAllQueueItemsSequential(ascending?: boolean): Observable<any>;
58
+ /**
59
+ * Short dates ascending based on input
60
+ * @param a - Date one
61
+ * @param b - Date two
62
+ *
63
+ * @beta
64
+ */
65
+ protected sortOnTimestamp(a: [string, ApiQueueItem], b: [string, ApiQueueItem]): number;
66
+ /**
67
+ * build and HttpRequest Observable based on the given queue.
68
+ * After successful request completion removes the item from the queue.
69
+ * @param id - id of the item inside the queue
70
+ * @param item - the item of the queue that matches the id.
71
+ * @return An Observable of HttpClient Request
72
+ */
73
+ private buildHttpRequest;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<ApiQueueService, never>;
75
+ static ɵprov: i0.ɵɵInjectableDeclaration<ApiQueueService>;
76
+ }
77
77
  //# sourceMappingURL=api-queue.service.d.ts.map
@@ -1,14 +1,14 @@
1
- import { ApiQueueService } from './api-queue.service';
2
- import { Observable } from 'rxjs';
3
- import { ApiQueueItem } from '@eui/base';
4
- export declare class ApiQueueServiceMock extends ApiQueueService {
5
- constructor();
6
- getQueue(): Observable<ApiQueueItem[]>;
7
- getQueueItem(id: string): Observable<ApiQueueItem>;
8
- removeAllQueueItem(): void;
9
- processAllQueueItems(): Observable<any>;
10
- addQueueItem(): void;
11
- removeQueueItem(): void;
12
- processQueueItem(): Observable<any>;
13
- }
1
+ import { ApiQueueService } from './api-queue.service';
2
+ import { Observable } from 'rxjs';
3
+ import { ApiQueueItem } from '@eui/base';
4
+ export declare class ApiQueueServiceMock extends ApiQueueService {
5
+ constructor();
6
+ getQueue(): Observable<ApiQueueItem[]>;
7
+ getQueueItem(id: string): Observable<ApiQueueItem>;
8
+ removeAllQueueItem(): void;
9
+ processAllQueueItems(): Observable<any>;
10
+ addQueueItem(): void;
11
+ removeQueueItem(): void;
12
+ processQueueItem(): Observable<any>;
13
+ }
14
14
  //# sourceMappingURL=api-queue.service.mock.d.ts.map
@@ -1,3 +1,3 @@
1
- export * from './api-queue.service';
2
- export * from './api-queue.service.mock';
1
+ export * from './api-queue.service';
2
+ export * from './api-queue.service.mock';
3
3
  //# sourceMappingURL=index.d.ts.map