ngx-techlify-core 18.87.0 → 18.88.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.
@@ -5,13 +5,13 @@ import { OnInit } from '@angular/core';
5
5
  import { AlertService } from '../core/alert.service';
6
6
  import { ErrorHandlerService } from '../core/error-handler.service';
7
7
  import { ImportCsvConfig } from './import-csv-config';
8
- import { DatePipe } from "@angular/common";
8
+ import { DateUtils } from '../utility/date-utils.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class ImportCsvComponent implements OnInit {
11
11
  private alertService;
12
12
  private errorHandler;
13
13
  private http;
14
- private datePipe;
14
+ private dateUtils;
15
15
  result: any;
16
16
  config: ImportCsvConfig;
17
17
  filesConfig: FileDropperConfig;
@@ -25,7 +25,7 @@ export declare class ImportCsvComponent implements OnInit {
25
25
  selectedFields: any[];
26
26
  importSteps: any;
27
27
  currentStep: any;
28
- constructor(alertService: AlertService, errorHandler: ErrorHandlerService, http: HttpService, datePipe: DatePipe);
28
+ constructor(alertService: AlertService, errorHandler: ErrorHandlerService, http: HttpService, dateUtils: DateUtils);
29
29
  ngOnInit(): void;
30
30
  get step(): any;
31
31
  fileChanged(event: any): Promise<void>;
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class OrdinalPipe implements PipeTransform {
4
+ transform(n: number, keepNumber?: boolean): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<OrdinalPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<OrdinalPipe, "ordinal", true>;
7
+ }
@@ -20,6 +20,19 @@ export declare class DateUtils {
20
20
  getMM(inputDate: Date): number;
21
21
  getDateTime(inputDate: Date): string;
22
22
  getMonthName(month: number): string;
23
+ /**
24
+ * Parses a raw date string
25
+ */
26
+ parseLocalDate(rawValue: string): Date;
27
+ /**
28
+ * Builds a timezone-naive "yyyy-MM-dd" string from a raw date string,
29
+ * ignoring any time-of-day it contains.
30
+ */
31
+ toLocalDateString(rawValue: string): string;
32
+ /**
33
+ * Builds a timezone-naive "yyyy-MM-ddTHH:mm:ss" string
34
+ */
35
+ toLocalDateTimeString(rawValue: string): string;
23
36
  static ɵfac: i0.ɵɵFactoryDeclaration<DateUtils, never>;
24
37
  static ɵprov: i0.ɵɵInjectableDeclaration<DateUtils>;
25
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "18.87.0",
3
+ "version": "18.88.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18",
6
6
  "@angular/core": ">=18",
package/public-api.d.ts CHANGED
@@ -208,3 +208,4 @@ export * from './lib/tag/techlify-tagger-tag-form/techlify-tagger-tag-form.compo
208
208
  export * from './lib/tag/tag.service';
209
209
  export * from './lib/techlify-auto-complete-select/techlify-auto-complete-select.component';
210
210
  export * from './lib/techlify-currency-pipe/techlify-currency-pipe.directive';
211
+ export * from './lib/ordinal-pipe/ordinal-pipe';