ngx-st-date-format 1.0.13 → 1.0.14
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/esm2020/lib/ngx-st-date-format.module.mjs +11 -23
- package/fesm2015/ngx-st-date-format.mjs +8 -20
- package/fesm2015/ngx-st-date-format.mjs.map +1 -1
- package/fesm2020/ngx-st-date-format.mjs +8 -20
- package/fesm2020/ngx-st-date-format.mjs.map +1 -1
- package/lib/ngx-st-date-format.module.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1,31 +1,19 @@
|
|
|
1
1
|
import { NgModule } from '@angular/core';
|
|
2
|
-
import { DateFormatPipe } from
|
|
3
|
-
import { DateTimeFormatPipe } from
|
|
4
|
-
import { TimeFormatPipe } from
|
|
2
|
+
import { DateFormatPipe } from './pipes/date-format.pipe';
|
|
3
|
+
import { DateTimeFormatPipe } from './pipes/date-time-format.pipe';
|
|
4
|
+
import { TimeFormatPipe } from './pipes/time-format.pipe';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export class
|
|
6
|
+
export class StDateFormatModule {
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
DateTimeFormatPipe,
|
|
13
|
-
TimeFormatPipe] });
|
|
14
|
-
NgxStDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule });
|
|
15
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, decorators: [{
|
|
8
|
+
StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
9
|
+
StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe], exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe] });
|
|
10
|
+
StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule });
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, decorators: [{
|
|
16
12
|
type: NgModule,
|
|
17
13
|
args: [{
|
|
18
|
-
declarations: [
|
|
19
|
-
DateFormatPipe,
|
|
20
|
-
DateTimeFormatPipe,
|
|
21
|
-
TimeFormatPipe
|
|
22
|
-
],
|
|
14
|
+
declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],
|
|
23
15
|
imports: [],
|
|
24
|
-
exports: [
|
|
25
|
-
DateFormatPipe,
|
|
26
|
-
DateTimeFormatPipe,
|
|
27
|
-
TimeFormatPipe
|
|
28
|
-
]
|
|
16
|
+
exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],
|
|
29
17
|
}]
|
|
30
18
|
}] });
|
|
31
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0LWRhdGUtZm9ybWF0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL25neC1zdC1kYXRlLWZvcm1hdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sMEJBQTBCLENBQUM7QUFDMUQsT0FBTyxFQUFFLG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nQgY2xhc3MgU3REYXRlRm9ybWF0TW9kdWxlIHt9XG4iXX0=
|
|
@@ -82,29 +82,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
82
82
|
}]
|
|
83
83
|
}], ctorParameters: function () { return []; } });
|
|
84
84
|
|
|
85
|
-
class
|
|
85
|
+
class StDateFormatModule {
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
DateTimeFormatPipe,
|
|
92
|
-
TimeFormatPipe] });
|
|
93
|
-
NgxStDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule });
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, decorators: [{
|
|
87
|
+
StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
88
|
+
StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe], exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe] });
|
|
89
|
+
StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, decorators: [{
|
|
95
91
|
type: NgModule,
|
|
96
92
|
args: [{
|
|
97
|
-
declarations: [
|
|
98
|
-
DateFormatPipe,
|
|
99
|
-
DateTimeFormatPipe,
|
|
100
|
-
TimeFormatPipe
|
|
101
|
-
],
|
|
93
|
+
declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],
|
|
102
94
|
imports: [],
|
|
103
|
-
exports: [
|
|
104
|
-
DateFormatPipe,
|
|
105
|
-
DateTimeFormatPipe,
|
|
106
|
-
TimeFormatPipe
|
|
107
|
-
]
|
|
95
|
+
exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],
|
|
108
96
|
}]
|
|
109
97
|
}] });
|
|
110
98
|
|
|
@@ -116,5 +104,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
116
104
|
* Generated bundle index. Do not edit.
|
|
117
105
|
*/
|
|
118
106
|
|
|
119
|
-
export { DateFormatPipe, DateTimeFormatPipe,
|
|
107
|
+
export { DateFormatPipe, DateTimeFormatPipe, StDateFormatModule, TimeFormatPipe };
|
|
120
108
|
//# sourceMappingURL=ngx-st-date-format.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-st-date-format.mjs","sources":["../../../projects/ngx-st-date-format/src/lib/pipes/date-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/date-time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/ngx-st-date-format.module.ts","../../../projects/ngx-st-date-format/src/public-api.ts","../../../projects/ngx-st-date-format/src/ngx-st-date-format.ts"],"sourcesContent":["import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateFormatPipe',\n})\nexport class DateFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n else {\n return new Date(value).toLocaleDateString();\n }\n }\n else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateTimeFormatPipe',\n})\nexport class DateTimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleString();\n } else {\n return new Date(value).toLocaleString();\n }\n } else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stTimeFormatPipe',\n})\nexport class TimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n else {\n return new Date(value).toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n }\n else {\n return '';\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport {DateFormatPipe} from
|
|
1
|
+
{"version":3,"file":"ngx-st-date-format.mjs","sources":["../../../projects/ngx-st-date-format/src/lib/pipes/date-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/date-time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/ngx-st-date-format.module.ts","../../../projects/ngx-st-date-format/src/public-api.ts","../../../projects/ngx-st-date-format/src/ngx-st-date-format.ts"],"sourcesContent":["import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateFormatPipe',\n})\nexport class DateFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n else {\n return new Date(value).toLocaleDateString();\n }\n }\n else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateTimeFormatPipe',\n})\nexport class DateTimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleString();\n } else {\n return new Date(value).toLocaleString();\n }\n } else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stTimeFormatPipe',\n})\nexport class TimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n else {\n return new Date(value).toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n }\n else {\n return '';\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DateFormatPipe } from './pipes/date-format.pipe';\nimport { DateTimeFormatPipe } from './pipes/date-time-format.pipe';\nimport { TimeFormatPipe } from './pipes/time-format.pipe';\n\n@NgModule({\n declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],\n imports: [],\n exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],\n})\nexport class StDateFormatModule {}\n","/*\n * Public API Surface of ngx-st-date-format\n */\n\nexport * from './lib/pipes/date-format.pipe';\nexport * from './lib/pipes/date-time-format.pipe';\nexport * from './lib/pipes/time-format.pipe';\nexport * from './lib/ngx-st-date-format.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AACzB,IAAA,WAAA,GAAA,GAAgB;AAEhB,IAAA,SAAS,CAAC,KAAgC,EAAA;AACxC,QAAA,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,YAAY,IAAI,EAAE;AACzB,gBAAA,OAAO,KAAK,CAAC,kBAAkB,EAAE,CAAC;AACnC,aAAA;AACI,iBAAA;gBACH,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAC7C,aAAA;AACF,SAAA;AACI,aAAA;AACH,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;KACF;;2GAfU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;yGAAd,cAA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ters: function () { return []; } });
|
|
84
84
|
|
|
85
|
-
class
|
|
85
|
+
class StDateFormatModule {
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
DateTimeFormatPipe,
|
|
92
|
-
TimeFormatPipe] });
|
|
93
|
-
NgxStDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule });
|
|
94
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, decorators: [{
|
|
87
|
+
StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
88
|
+
StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe], exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe] });
|
|
89
|
+
StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule });
|
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, decorators: [{
|
|
95
91
|
type: NgModule,
|
|
96
92
|
args: [{
|
|
97
|
-
declarations: [
|
|
98
|
-
DateFormatPipe,
|
|
99
|
-
DateTimeFormatPipe,
|
|
100
|
-
TimeFormatPipe
|
|
101
|
-
],
|
|
93
|
+
declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],
|
|
102
94
|
imports: [],
|
|
103
|
-
exports: [
|
|
104
|
-
DateFormatPipe,
|
|
105
|
-
DateTimeFormatPipe,
|
|
106
|
-
TimeFormatPipe
|
|
107
|
-
]
|
|
95
|
+
exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],
|
|
108
96
|
}]
|
|
109
97
|
}] });
|
|
110
98
|
|
|
@@ -116,5 +104,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
116
104
|
* Generated bundle index. Do not edit.
|
|
117
105
|
*/
|
|
118
106
|
|
|
119
|
-
export { DateFormatPipe, DateTimeFormatPipe,
|
|
107
|
+
export { DateFormatPipe, DateTimeFormatPipe, StDateFormatModule, TimeFormatPipe };
|
|
120
108
|
//# sourceMappingURL=ngx-st-date-format.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-st-date-format.mjs","sources":["../../../projects/ngx-st-date-format/src/lib/pipes/date-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/date-time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/ngx-st-date-format.module.ts","../../../projects/ngx-st-date-format/src/public-api.ts","../../../projects/ngx-st-date-format/src/ngx-st-date-format.ts"],"sourcesContent":["import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateFormatPipe',\n})\nexport class DateFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n else {\n return new Date(value).toLocaleDateString();\n }\n }\n else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateTimeFormatPipe',\n})\nexport class DateTimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleString();\n } else {\n return new Date(value).toLocaleString();\n }\n } else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stTimeFormatPipe',\n})\nexport class TimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n else {\n return new Date(value).toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n }\n else {\n return '';\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport {DateFormatPipe} from
|
|
1
|
+
{"version":3,"file":"ngx-st-date-format.mjs","sources":["../../../projects/ngx-st-date-format/src/lib/pipes/date-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/date-time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/pipes/time-format.pipe.ts","../../../projects/ngx-st-date-format/src/lib/ngx-st-date-format.module.ts","../../../projects/ngx-st-date-format/src/public-api.ts","../../../projects/ngx-st-date-format/src/ngx-st-date-format.ts"],"sourcesContent":["import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateFormatPipe',\n})\nexport class DateFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleDateString();\n }\n else {\n return new Date(value).toLocaleDateString();\n }\n }\n else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stDateTimeFormatPipe',\n})\nexport class DateTimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleString();\n } else {\n return new Date(value).toLocaleString();\n }\n } else {\n return '';\n }\n }\n}\n","import {Pipe, PipeTransform} from \"@angular/core\";\n\n@Pipe({\n name: 'stTimeFormatPipe',\n})\nexport class TimeFormatPipe implements PipeTransform {\n constructor() {}\n\n transform(value: string | Date | undefined): string {\n if (value) {\n if (value instanceof Date) {\n return value.toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n else {\n return new Date(value).toLocaleTimeString([], {\n hour: '2-digit',\n minute: '2-digit',\n });\n }\n }\n else {\n return '';\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { DateFormatPipe } from './pipes/date-format.pipe';\nimport { DateTimeFormatPipe } from './pipes/date-time-format.pipe';\nimport { TimeFormatPipe } from './pipes/time-format.pipe';\n\n@NgModule({\n declarations: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],\n imports: [],\n exports: [DateFormatPipe, DateTimeFormatPipe, TimeFormatPipe],\n})\nexport class StDateFormatModule {}\n","/*\n * Public API Surface of ngx-st-date-format\n */\n\nexport * from './lib/pipes/date-format.pipe';\nexport * from './lib/pipes/date-time-format.pipe';\nexport * from './lib/pipes/time-format.pipe';\nexport * from './lib/ngx-st-date-format.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AACzB,IAAA,WAAA,GAAA,GAAgB;AAEhB,IAAA,SAAS,CAAC,KAAgC,EAAA;AACxC,QAAA,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,YAAY,IAAI,EAAE;AACzB,gBAAA,OAAO,KAAK,CAAC,kBAAkB,EAAE,CAAC;AACnC,aAAA;AACI,iBAAA;gBACH,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAC7C,aAAA;AACF,SAAA;AACI,aAAA;AACH,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;KACF;;2GAfU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;yGAAd,cAAc,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,kBAAkB;AACzB,iBAAA,CA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,CAAC;AACX,SAAA;KACF;;2GArBU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;yGAAd,cAAc,EAAA,IAAA,EAAA,kBAAA,EAAA,CAAA,CAAA;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,kBAAkB;AACzB,iBAAA,CAAA;;;MCMY,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAlB,kBAAkB,EAAA,YAAA,EAAA,CAJd,cAAc,EAAE,kBAAkB,EAAE,cAAc,CAAA,EAAA,OAAA,EAAA,CAEvD,cAAc,EAAE,kBAAkB,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;gHAEjD,kBAAkB,EAAA,CAAA,CAAA;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAL9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,cAAc,EAAE,kBAAkB,EAAE,cAAc,CAAC;AAClE,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,OAAO,EAAE,CAAC,cAAc,EAAE,kBAAkB,EAAE,cAAc,CAAC;AAC9D,iBAAA,CAAA;;;ACTD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -2,8 +2,8 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./pipes/date-format.pipe";
|
|
3
3
|
import * as i2 from "./pipes/date-time-format.pipe";
|
|
4
4
|
import * as i3 from "./pipes/time-format.pipe";
|
|
5
|
-
export declare class
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<
|
|
5
|
+
export declare class StDateFormatModule {
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StDateFormatModule, never>;
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StDateFormatModule, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe, typeof i3.TimeFormatPipe], never, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe, typeof i3.TimeFormatPipe]>;
|
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StDateFormatModule>;
|
|
9
9
|
}
|