@acorex/core 20.1.7 → 20.1.8

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.
package/events/index.d.ts CHANGED
@@ -1,6 +1,13 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import * as i0 from '@angular/core';
3
3
 
4
+ declare enum AXSystemEvents {
5
+ AXLocaleChanged = "AX_LOCALE_CHANGED",
6
+ AXLocaleLoaded = "AX_LOCALE_LOADED",
7
+ AXCalendarChanged = "AX_CALENDAR_CHANGED",
8
+ AXLanguageChanged = "AX_LANGUAGE_CHANGED",
9
+ AXLanguageLoaded = "AX_LANGUAGE_LOADED"
10
+ }
4
11
  interface AXEventData {
5
12
  type: string;
6
13
  payload?: any;
@@ -17,5 +24,5 @@ declare class AXEventService {
17
24
  static ɵprov: i0.ɵɵInjectableDeclaration<AXEventService>;
18
25
  }
19
26
 
20
- export { AXEventService };
27
+ export { AXEventService, AXSystemEvents };
21
28
  export type { AXEventData };
@@ -1,7 +1,7 @@
1
- import { AXEventService } from '@acorex/core/events';
1
+ import { AXSystemEvents, AXEventService } from '@acorex/core/events';
2
2
  import * as i1 from '@acorex/core/format';
3
3
  import { AXFormatService, AXFormatModule } from '@acorex/core/format';
4
- import { AXLocaleEvents, AXLocaleService } from '@acorex/core/locale';
4
+ import { AXLocaleService } from '@acorex/core/locale';
5
5
  import * as i0 from '@angular/core';
6
6
  import { InjectionToken, inject, Injectable, Pipe, NgModule } from '@angular/core';
7
7
  import { BehaviorSubject, Subject } from 'rxjs';
@@ -1067,7 +1067,7 @@ class AXCalendarService {
1067
1067
  const calendar = this.resolveCalendar(name);
1068
1068
  this.activeCalendar.next(calendar);
1069
1069
  this.eventService.emitEvent({
1070
- type: AXLocaleEvents.AXCalendarChanged,
1070
+ type: AXSystemEvents.AXCalendarChanged,
1071
1071
  payload: this.getActiveCalendar(),
1072
1072
  });
1073
1073
  }