@indigina/ui-kit 1.1.678 → 1.1.679

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/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.678",
10
+ "version": "1.1.679",
11
11
  "peerDependencies": {
12
12
  "@angular/common": ">=22.0.0 <23.0.0",
13
13
  "@angular/core": ">=22.0.0 <23.0.0",
@@ -79,6 +79,10 @@
79
79
  "types": "./types/indigina-ui-kit-auth0.d.ts",
80
80
  "default": "./fesm2022/indigina-ui-kit-auth0.mjs"
81
81
  },
82
+ "./date-formatting": {
83
+ "types": "./types/indigina-ui-kit-date-formatting.d.ts",
84
+ "default": "./fesm2022/indigina-ui-kit-date-formatting.mjs"
85
+ },
82
86
  "./locales/de": {
83
87
  "types": "./types/indigina-ui-kit-locales-de.d.ts",
84
88
  "default": "./fesm2022/indigina-ui-kit-locales-de.mjs"
@@ -0,0 +1,20 @@
1
+ import { DatePipe } from '@angular/common';
2
+ import * as i0 from '@angular/core';
3
+ import { PipeTransform, InjectionToken } from '@angular/core';
4
+ import { Locale } from 'date-fns';
5
+
6
+ declare class KitDatePipe extends DatePipe implements PipeTransform {
7
+ constructor();
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitDatePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<KitDatePipe, "kitDate", true>;
10
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
11
+ }
12
+
13
+ interface KitDateLocale {
14
+ readonly localeId: string;
15
+ readonly dateFnsLocale?: Locale;
16
+ }
17
+ declare const KIT_DATE_LOCALE: InjectionToken<KitDateLocale>;
18
+
19
+ export { KIT_DATE_LOCALE, KitDatePipe };
20
+ export type { KitDateLocale };
@@ -1,9 +1,11 @@
1
1
  import { EnvironmentProviders } from '@angular/core';
2
+ import { KitDateLocale } from '@indigina/ui-kit/date-formatting';
2
3
 
3
4
  interface KitLocale {
4
5
  readonly language: string;
5
6
  readonly localeId: string;
6
7
  load(): Promise<Readonly<Record<string, string>>>;
8
+ loadDateLocale?(): Promise<KitDateLocale>;
7
9
  }
8
10
  interface KitLocalizationOptions {
9
11
  readonly locales: readonly KitLocale[];
@@ -23,6 +23,7 @@ import { DataMoveEvent } from '@progress/kendo-angular-sortable';
23
23
  import { TranslationObject, TranslateService, TranslateLoader } from '@ngx-translate/core';
24
24
  import { DateChangeEvent, EventClickEvent, NavigateEvent, SlotClickEvent, SchedulerEvent, SchedulerView, SchedulerComponent, SlotClassArgs } from '@progress/kendo-angular-scheduler';
25
25
  import { HttpClient, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpErrorResponse, HttpParams } from '@angular/common/http';
26
+ export { KitDatePipe } from '@indigina/ui-kit/date-formatting';
26
27
 
27
28
  declare const KIT_GRID_EXPORT_MAX_TOP: InjectionToken<number | null>;
28
29
 
@@ -5594,6 +5595,7 @@ declare class KitGridCellService {
5594
5595
  private readonly translateService;
5595
5596
  private readonly decimalPipe;
5596
5597
  private readonly datePipe;
5598
+ private readonly dateLocale;
5597
5599
  private readonly dateFormatConfig;
5598
5600
  private readonly store;
5599
5601
  private readonly userState;