ect-date-formatter 1.19.8 → 1.20.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/README.md +1 -1
- package/fesm2022/ect-date-formatter.mjs +3 -3
- package/index.d.ts +49 -5
- package/package.json +3 -3
- package/lib/ect-date-formatter.service.d.ts +0 -45
- package/public-api.d.ts +0 -1
package/README.md
CHANGED
|
@@ -300,10 +300,10 @@ class EctDateFormatterService {
|
|
|
300
300
|
return new Date(input);
|
|
301
301
|
return input;
|
|
302
302
|
}
|
|
303
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
304
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
303
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: EctDateFormatterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
304
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: EctDateFormatterService, providedIn: 'root' });
|
|
305
305
|
}
|
|
306
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
306
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.4", ngImport: i0, type: EctDateFormatterService, decorators: [{
|
|
307
307
|
type: Injectable,
|
|
308
308
|
args: [{
|
|
309
309
|
providedIn: 'root'
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
|
|
3
|
+
interface IDateTimeFormatSections {
|
|
4
|
+
parts: string[];
|
|
5
|
+
divider: string;
|
|
6
|
+
}
|
|
7
|
+
interface IEctDateFormatterService {
|
|
8
|
+
getISO8601DateFormat(date: Date): string;
|
|
9
|
+
getISO8601TimeFormat(date: Date): string;
|
|
10
|
+
getISO8601DateAndTimeFormat(date: Date): string;
|
|
11
|
+
formatDate(date: Date, format: string): string;
|
|
12
|
+
formatTime(date: Date, format: string): string;
|
|
13
|
+
}
|
|
14
|
+
declare class EctDateFormatterService implements IEctDateFormatterService {
|
|
15
|
+
getISO8601DateFormat(date: Date): string;
|
|
16
|
+
getISO8601TimeFormat(date: Date): string;
|
|
17
|
+
getISO8601DateAndTimeFormat(date: Date): string;
|
|
18
|
+
private getFormatPartsByDivider;
|
|
19
|
+
formatDate(date: Date, format: string): string;
|
|
20
|
+
formatTime(date: Date, format: string): string;
|
|
21
|
+
private get1DigitDay;
|
|
22
|
+
private get2DigitDay;
|
|
23
|
+
private get3DigitDay;
|
|
24
|
+
private get4DigitDay;
|
|
25
|
+
private get1DigitMonth;
|
|
26
|
+
private get2DigitMonth;
|
|
27
|
+
private get3DigitMonth;
|
|
28
|
+
private get4DigitMonth;
|
|
29
|
+
private get2DigitYear;
|
|
30
|
+
private get4DigitYear;
|
|
31
|
+
private get1Digit12Hours;
|
|
32
|
+
private get2Digit12Hours;
|
|
33
|
+
private get1Digit24Hours;
|
|
34
|
+
private get2Digit24Hours;
|
|
35
|
+
private get1DigitMinutes;
|
|
36
|
+
private get2DigitMinutes;
|
|
37
|
+
private get1DigitSeconds;
|
|
38
|
+
private get2DigitSeconds;
|
|
39
|
+
private get1DigitAmPm;
|
|
40
|
+
private get2DigitAmPm;
|
|
41
|
+
private getXDigitMillisecond;
|
|
42
|
+
private padDateElement;
|
|
43
|
+
private convertToDateIfRequired;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EctDateFormatterService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EctDateFormatterService>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { EctDateFormatterService };
|
|
49
|
+
export type { IDateTimeFormatSections, IEctDateFormatterService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ect-date-formatter",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "An Ivy compiled package for formatting dates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -17,8 +17,8 @@
|
|
|
17
17
|
"type": "git"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@angular/common": "^
|
|
21
|
-
"@angular/core": "^
|
|
20
|
+
"@angular/common": "^20.0.4",
|
|
21
|
+
"@angular/core": "^20.0.4"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"tslib": "^2.5.0"
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export interface IDateTimeFormatSections {
|
|
3
|
-
parts: string[];
|
|
4
|
-
divider: string;
|
|
5
|
-
}
|
|
6
|
-
export interface IEctDateFormatterService {
|
|
7
|
-
getISO8601DateFormat(date: Date): string;
|
|
8
|
-
getISO8601TimeFormat(date: Date): string;
|
|
9
|
-
getISO8601DateAndTimeFormat(date: Date): string;
|
|
10
|
-
formatDate(date: Date, format: string): string;
|
|
11
|
-
formatTime(date: Date, format: string): string;
|
|
12
|
-
}
|
|
13
|
-
export declare class EctDateFormatterService implements IEctDateFormatterService {
|
|
14
|
-
getISO8601DateFormat(date: Date): string;
|
|
15
|
-
getISO8601TimeFormat(date: Date): string;
|
|
16
|
-
getISO8601DateAndTimeFormat(date: Date): string;
|
|
17
|
-
private getFormatPartsByDivider;
|
|
18
|
-
formatDate(date: Date, format: string): string;
|
|
19
|
-
formatTime(date: Date, format: string): string;
|
|
20
|
-
private get1DigitDay;
|
|
21
|
-
private get2DigitDay;
|
|
22
|
-
private get3DigitDay;
|
|
23
|
-
private get4DigitDay;
|
|
24
|
-
private get1DigitMonth;
|
|
25
|
-
private get2DigitMonth;
|
|
26
|
-
private get3DigitMonth;
|
|
27
|
-
private get4DigitMonth;
|
|
28
|
-
private get2DigitYear;
|
|
29
|
-
private get4DigitYear;
|
|
30
|
-
private get1Digit12Hours;
|
|
31
|
-
private get2Digit12Hours;
|
|
32
|
-
private get1Digit24Hours;
|
|
33
|
-
private get2Digit24Hours;
|
|
34
|
-
private get1DigitMinutes;
|
|
35
|
-
private get2DigitMinutes;
|
|
36
|
-
private get1DigitSeconds;
|
|
37
|
-
private get2DigitSeconds;
|
|
38
|
-
private get1DigitAmPm;
|
|
39
|
-
private get2DigitAmPm;
|
|
40
|
-
private getXDigitMillisecond;
|
|
41
|
-
private padDateElement;
|
|
42
|
-
private convertToDateIfRequired;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EctDateFormatterService, never>;
|
|
44
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EctDateFormatterService>;
|
|
45
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lib/ect-date-formatter.service';
|