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.
- package/esm2022/lib/import-csv/import-csv.component.mjs +20 -19
- package/esm2022/lib/ordinal-pipe/ordinal-pipe.mjs +30 -0
- package/esm2022/lib/utility/date-utils.service.mjs +23 -1
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/ngx-techlify-core.mjs +57 -7
- package/fesm2022/ngx-techlify-core.mjs.map +1 -1
- package/lib/import-csv/import-csv.component.d.ts +3 -3
- package/lib/ordinal-pipe/ordinal-pipe.d.ts +7 -0
- package/lib/utility/date-utils.service.d.ts +13 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -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 {
|
|
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
|
|
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,
|
|
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
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';
|