@indigina/ui-kit 1.1.172 → 1.1.173

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.
@@ -1,2 +1,8 @@
1
+ import { InjectionToken } from '@angular/core';
1
2
  export type KitGridCellDataItem = Record<string, string | number | null>;
2
3
  export type KitGridCellTranslationMap = Record<string, (value: string) => string>;
4
+ export interface KitGridCellDateFormatConfig {
5
+ dateFormat: string;
6
+ dateTimeFormat: string;
7
+ }
8
+ export declare const KIT_GRID_CELL_DATE_FORMAT_CONFIG: InjectionToken<KitGridCellDateFormatConfig>;
@@ -1,17 +1,17 @@
1
1
  import { DatePipe, DecimalPipe } from '@angular/common';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
- import { KitGridCellTranslationMap } from './kit-grid-cell.model';
4
- import { KIT_DATE_FORMAT, KIT_DATETIME_FORMAT_LONG } from '../../../const/date-time.const';
3
+ import { KitGridCellDateFormatConfig, KitGridCellTranslationMap } from './kit-grid-cell.model';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class KitGridCellService {
7
6
  private readonly translateService;
8
7
  private readonly decimalPipe;
9
8
  private readonly datePipe;
10
- readonly dateFormat: typeof KIT_DATE_FORMAT;
11
- readonly dateTimeFormat: typeof KIT_DATETIME_FORMAT_LONG;
12
- constructor(translateService: TranslateService, decimalPipe: DecimalPipe, datePipe: DatePipe);
9
+ private readonly dateFormatConfig?;
10
+ readonly dateFormat: string;
11
+ readonly dateTimeFormat: string;
12
+ constructor(translateService: TranslateService, decimalPipe: DecimalPipe, datePipe: DatePipe, dateFormatConfig?: KitGridCellDateFormatConfig | undefined);
13
13
  createCellValue<T>(columnType: string, columnField: string, dataItem: T, translationMap?: KitGridCellTranslationMap, defaultValue?: string | number): string | number;
14
14
  private getNestedGridCellValue;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<KitGridCellService, never>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<KitGridCellService, [null, null, null, { optional: true; }]>;
16
16
  static ɵprov: i0.ɵɵInjectableDeclaration<KitGridCellService>;
17
17
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "components",
8
8
  "shared"
9
9
  ],
10
- "version": "1.1.172",
10
+ "version": "1.1.173",
11
11
  "peerDependencies": {
12
12
  "@angular/common": ">=19.1.4 <20.0.0",
13
13
  "@angular/core": ">=19.1.4 <20.0.0"
package/public-api.d.ts CHANGED
@@ -187,7 +187,7 @@ export { KitGridExportComponent } from './lib/widgets/kit-grid-management/kit-gr
187
187
  export { KitKendoDrawPdf } from './lib/widgets/kit-grid-management/kit-grid-export/kit-grid-export.model';
188
188
  export { KitGridCellComponent } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.component';
189
189
  export { KitGridCellService } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.service';
190
- export { KitGridCellTranslationMap } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.model';
190
+ export { KitGridCellTranslationMap, KIT_GRID_CELL_DATE_FORMAT_CONFIG, } from './lib/widgets/kit-grid-management/kit-grid-cell/kit-grid-cell.model';
191
191
  export { KitGridSearchComponent } from './lib/widgets/kit-grid-management/kit-grid-search/kit-grid-search.component';
192
192
  export { KitGridColumnManagerComponent, } from './lib/widgets/kit-grid-management/kit-grid-column-manager/kit-grid-column-manager.component';
193
193
  export { KIT_DATE_FORMAT, KIT_DATETIME_FORMAT_LONG } from './lib/const/date-time.const';