ngx-st-date-format 1.0.0 → 1.0.2
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/pipes/date-format.pipe.mjs +3 -3
- package/esm2020/lib/pipes/date-time-format.pipe.mjs +3 -3
- package/esm2020/lib/st-date-format.module.mjs +27 -0
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/ngx-st-date-format.mjs +10 -10
- package/fesm2015/ngx-st-date-format.mjs.map +1 -1
- package/fesm2020/ngx-st-date-format.mjs +10 -10
- package/fesm2020/ngx-st-date-format.mjs.map +1 -1
- package/lib/pipes/date-format.pipe.d.ts +1 -1
- package/lib/pipes/date-time-format.pipe.d.ts +1 -1
- package/lib/st-date-format.module.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2020/lib/ngx-date-format.module.mjs +0 -27
- package/lib/ngx-date-format.module.d.ts +0 -8
|
@@ -6,11 +6,11 @@ export class DateFormatPipe {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
-
DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, name: "
|
|
9
|
+
DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
|
|
10
10
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, decorators: [{
|
|
11
11
|
type: Pipe,
|
|
12
12
|
args: [{
|
|
13
|
-
name: '
|
|
13
|
+
name: 'stDateFormatPipe',
|
|
14
14
|
}]
|
|
15
15
|
}] });
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1mb3JtYXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL3BpcGVzL2RhdGUtZm9ybWF0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBS3BELE1BQU0sT0FBTyxjQUFjO0lBQ3ZCLFNBQVMsQ0FBQyxLQUFhO1FBQ25CLE9BQU8sS0FBSyxJQUFJLElBQUksSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLGtCQUFrQixFQUFFLENBQUM7SUFDekQsQ0FBQzs7MkdBSFEsY0FBYzt5R0FBZCxjQUFjOzJGQUFkLGNBQWM7a0JBSDFCLElBQUk7bUJBQUM7b0JBQ0YsSUFBSSxFQUFFLGtCQUFrQjtpQkFDM0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AUGlwZSh7XHJcbiAgICBuYW1lOiAnc3REYXRlRm9ybWF0UGlwZScsXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBEYXRlRm9ybWF0UGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xyXG4gICAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcpIHtcclxuICAgICAgICByZXR1cm4gdmFsdWUgJiYgbmV3IERhdGUodmFsdWUpLnRvTG9jYWxlRGF0ZVN0cmluZygpO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -6,11 +6,11 @@ export class DateTimeFormatPipe {
|
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
9
|
-
DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, name: "
|
|
9
|
+
DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
|
|
10
10
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
|
|
11
11
|
type: Pipe,
|
|
12
12
|
args: [{
|
|
13
|
-
name: '
|
|
13
|
+
name: 'stDateTimeFormatPipe',
|
|
14
14
|
}]
|
|
15
15
|
}] });
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLWZvcm1hdC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9saWIvcGlwZXMvZGF0ZS10aW1lLWZvcm1hdC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQUtwRCxNQUFNLE9BQU8sa0JBQWtCO0lBQzNCLFNBQVMsQ0FBQyxLQUFhO1FBQ25CLE9BQU8sS0FBSyxJQUFJLElBQUksSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLGNBQWMsRUFBRSxDQUFDO0lBQ3JELENBQUM7OytHQUhRLGtCQUFrQjs2R0FBbEIsa0JBQWtCOzJGQUFsQixrQkFBa0I7a0JBSDlCLElBQUk7bUJBQUM7b0JBQ0YsSUFBSSxFQUFFLHNCQUFzQjtpQkFDL0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AUGlwZSh7XHJcbiAgICBuYW1lOiAnc3REYXRlVGltZUZvcm1hdFBpcGUnLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgRGF0ZVRpbWVGb3JtYXRQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XHJcbiAgICB0cmFuc2Zvcm0odmFsdWU6IHN0cmluZykge1xyXG4gICAgICAgIHJldHVybiB2YWx1ZSAmJiBuZXcgRGF0ZSh2YWx1ZSkudG9Mb2NhbGVTdHJpbmcoKTtcclxuICAgIH1cclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { NgModule } from "@angular/core";
|
|
2
|
+
import { DateFormatPipe } from "./pipes/date-format.pipe";
|
|
3
|
+
import { DateTimeFormatPipe } from "./pipes/date-time-format.pipe";
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export class StDateFormatModule {
|
|
6
|
+
}
|
|
7
|
+
StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
+
StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe,
|
|
9
|
+
DateTimeFormatPipe], exports: [DateFormatPipe,
|
|
10
|
+
DateTimeFormatPipe] });
|
|
11
|
+
StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, providers: [], imports: [[]] });
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, decorators: [{
|
|
13
|
+
type: NgModule,
|
|
14
|
+
args: [{
|
|
15
|
+
imports: [],
|
|
16
|
+
declarations: [
|
|
17
|
+
DateFormatPipe,
|
|
18
|
+
DateTimeFormatPipe
|
|
19
|
+
],
|
|
20
|
+
exports: [
|
|
21
|
+
DateFormatPipe,
|
|
22
|
+
DateTimeFormatPipe
|
|
23
|
+
],
|
|
24
|
+
providers: []
|
|
25
|
+
}]
|
|
26
|
+
}] });
|
|
27
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3QtZGF0ZS1mb3JtYXQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9saWIvc3QtZGF0ZS1mb3JtYXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBQ3hELE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLCtCQUErQixDQUFDOztBQWNqRSxNQUFNLE9BQU8sa0JBQWtCOzsrR0FBbEIsa0JBQWtCO2dIQUFsQixrQkFBa0IsaUJBVHZCLGNBQWM7UUFDZCxrQkFBa0IsYUFHbEIsY0FBYztRQUNkLGtCQUFrQjtnSEFJYixrQkFBa0IsYUFGaEIsRUFBRSxZQVRKLEVBQUU7MkZBV0Ysa0JBQWtCO2tCQVo5QixRQUFRO21CQUFDO29CQUNOLE9BQU8sRUFBRSxFQUFFO29CQUNYLFlBQVksRUFBRTt3QkFDVixjQUFjO3dCQUNkLGtCQUFrQjtxQkFDckI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNMLGNBQWM7d0JBQ2Qsa0JBQWtCO3FCQUNyQjtvQkFDRCxTQUFTLEVBQUUsRUFBRTtpQkFDaEIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5pbXBvcnQge0RhdGVGb3JtYXRQaXBlfSBmcm9tIFwiLi9waXBlcy9kYXRlLWZvcm1hdC5waXBlXCI7XHJcbmltcG9ydCB7RGF0ZVRpbWVGb3JtYXRQaXBlfSBmcm9tIFwiLi9waXBlcy9kYXRlLXRpbWUtZm9ybWF0LnBpcGVcIjtcclxuXHJcbkBOZ01vZHVsZSh7XHJcbiAgICBpbXBvcnRzOiBbXSxcclxuICAgIGRlY2xhcmF0aW9uczogW1xyXG4gICAgICAgIERhdGVGb3JtYXRQaXBlLFxyXG4gICAgICAgIERhdGVUaW1lRm9ybWF0UGlwZVxyXG4gICAgXSxcclxuICAgIGV4cG9ydHM6IFtcclxuICAgICAgICBEYXRlRm9ybWF0UGlwZSxcclxuICAgICAgICBEYXRlVGltZUZvcm1hdFBpcGVcclxuICAgIF0sXHJcbiAgICBwcm92aWRlcnM6IFtdXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBTdERhdGVGb3JtYXRNb2R1bGUge1xyXG5cclxufVxyXG4iXX0=
|
package/esm2020/public-api.mjs
CHANGED
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/pipes/date-format.pipe';
|
|
5
5
|
export * from './lib/pipes/date-time-format.pipe';
|
|
6
|
-
export * from './lib/
|
|
7
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
export * from './lib/st-date-format.module';
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLDZCQUE2QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtc3QtZGF0ZS1mb3JtYXRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9waXBlcy9kYXRlLWZvcm1hdC5waXBlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3BpcGVzL2RhdGUtdGltZS1mb3JtYXQucGlwZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdC1kYXRlLWZvcm1hdC5tb2R1bGUnO1xuIl19
|
|
@@ -7,11 +7,11 @@ class DateFormatPipe {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
-
DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, name: "
|
|
10
|
+
DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
|
|
11
11
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
|
-
name: '
|
|
14
|
+
name: 'stDateFormatPipe',
|
|
15
15
|
}]
|
|
16
16
|
}] });
|
|
17
17
|
|
|
@@ -21,22 +21,22 @@ class DateTimeFormatPipe {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
24
|
-
DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, name: "
|
|
24
|
+
DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
|
|
26
26
|
type: Pipe,
|
|
27
27
|
args: [{
|
|
28
|
-
name: '
|
|
28
|
+
name: 'stDateTimeFormatPipe',
|
|
29
29
|
}]
|
|
30
30
|
}] });
|
|
31
31
|
|
|
32
|
-
class
|
|
32
|
+
class StDateFormatModule {
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
35
|
+
StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe,
|
|
36
36
|
DateTimeFormatPipe], exports: [DateFormatPipe,
|
|
37
37
|
DateTimeFormatPipe] });
|
|
38
|
-
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
38
|
+
StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, providers: [], imports: [[]] });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, decorators: [{
|
|
40
40
|
type: NgModule,
|
|
41
41
|
args: [{
|
|
42
42
|
imports: [],
|
|
@@ -60,5 +60,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
60
60
|
* Generated bundle index. Do not edit.
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { DateFormatPipe, DateTimeFormatPipe, StDateFormatModule };
|
|
64
64
|
//# 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/
|
|
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/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';\r\n\r\n@Pipe({\r\n name: 'stDateFormatPipe',\r\n})\r\nexport class DateFormatPipe implements PipeTransform {\r\n transform(value: string) {\r\n return value && new Date(value).toLocaleDateString();\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'stDateTimeFormatPipe',\r\n})\r\nexport class DateTimeFormatPipe implements PipeTransform {\r\n transform(value: string) {\r\n return value && new Date(value).toLocaleString();\r\n }\r\n}\r\n","import {NgModule} from \"@angular/core\";\r\nimport {DateFormatPipe} from \"./pipes/date-format.pipe\";\r\nimport {DateTimeFormatPipe} from \"./pipes/date-time-format.pipe\";\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe\r\n ],\r\n exports: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe\r\n ],\r\n providers: []\r\n})\r\nexport class StDateFormatModule {\r\n\r\n}\r\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/st-date-format.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AACvB,IAAA,SAAS,CAAC,KAAa,EAAA;QACnB,OAAO,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;KACxD;;2GAHQ,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;AACF,oBAAA,IAAI,EAAE,kBAAkB;iBAC3B,CAAA;;;MCCY,kBAAkB,CAAA;AAC3B,IAAA,SAAS,CAAC,KAAa,EAAA;QACnB,OAAO,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,cAAc,EAAE,CAAC;KACpD;;+GAHQ,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA;6GAAlB,kBAAkB,EAAA,IAAA,EAAA,sBAAA,EAAA,CAAA,CAAA;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAH9B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACF,oBAAA,IAAI,EAAE,sBAAsB;iBAC/B,CAAA;;;MCYY,kBAAkB,CAAA;;+GAAlB,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,kBAAkB,iBATvB,cAAc;AACd,QAAA,kBAAkB,aAGlB,cAAc;QACd,kBAAkB,CAAA,EAAA,CAAA,CAAA;gHAIb,kBAAkB,EAAA,SAAA,EAFhB,EAAE,EAAA,OAAA,EAAA,CATJ,EAAE,CAAA,EAAA,CAAA,CAAA;2FAWF,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAZ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE;wBACV,cAAc;wBACd,kBAAkB;AACrB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,cAAc;wBACd,kBAAkB;AACrB,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;iBAChB,CAAA;;;ACfD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -7,11 +7,11 @@ class DateFormatPipe {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
-
DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, name: "
|
|
10
|
+
DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
|
|
11
11
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, decorators: [{
|
|
12
12
|
type: Pipe,
|
|
13
13
|
args: [{
|
|
14
|
-
name: '
|
|
14
|
+
name: 'stDateFormatPipe',
|
|
15
15
|
}]
|
|
16
16
|
}] });
|
|
17
17
|
|
|
@@ -21,22 +21,22 @@ class DateTimeFormatPipe {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
24
|
-
DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, name: "
|
|
24
|
+
DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
|
|
25
25
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
|
|
26
26
|
type: Pipe,
|
|
27
27
|
args: [{
|
|
28
|
-
name: '
|
|
28
|
+
name: 'stDateTimeFormatPipe',
|
|
29
29
|
}]
|
|
30
30
|
}] });
|
|
31
31
|
|
|
32
|
-
class
|
|
32
|
+
class StDateFormatModule {
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
35
|
+
StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe,
|
|
36
36
|
DateTimeFormatPipe], exports: [DateFormatPipe,
|
|
37
37
|
DateTimeFormatPipe] });
|
|
38
|
-
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type:
|
|
38
|
+
StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, providers: [], imports: [[]] });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: StDateFormatModule, decorators: [{
|
|
40
40
|
type: NgModule,
|
|
41
41
|
args: [{
|
|
42
42
|
imports: [],
|
|
@@ -60,5 +60,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImpor
|
|
|
60
60
|
* Generated bundle index. Do not edit.
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
|
-
export {
|
|
63
|
+
export { DateFormatPipe, DateTimeFormatPipe, StDateFormatModule };
|
|
64
64
|
//# 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/
|
|
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/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';\r\n\r\n@Pipe({\r\n name: 'stDateFormatPipe',\r\n})\r\nexport class DateFormatPipe implements PipeTransform {\r\n transform(value: string) {\r\n return value && new Date(value).toLocaleDateString();\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'stDateTimeFormatPipe',\r\n})\r\nexport class DateTimeFormatPipe implements PipeTransform {\r\n transform(value: string) {\r\n return value && new Date(value).toLocaleString();\r\n }\r\n}\r\n","import {NgModule} from \"@angular/core\";\r\nimport {DateFormatPipe} from \"./pipes/date-format.pipe\";\r\nimport {DateTimeFormatPipe} from \"./pipes/date-time-format.pipe\";\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe\r\n ],\r\n exports: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe\r\n ],\r\n providers: []\r\n})\r\nexport class StDateFormatModule {\r\n\r\n}\r\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/st-date-format.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AACvB,IAAA,SAAS,CAAC,KAAa,EAAA;QACnB,OAAO,KAAK,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;KACxD;;2GAHQ,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,Y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AAA;AACD,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACfD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class DateFormatPipe implements PipeTransform {
|
|
4
4
|
transform(value: string): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "stDateFormatPipe">;
|
|
7
7
|
}
|
|
@@ -3,5 +3,5 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class DateTimeFormatPipe implements PipeTransform {
|
|
4
4
|
transform(value: string): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeFormatPipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeFormatPipe, "
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeFormatPipe, "stDateTimeFormatPipe">;
|
|
7
7
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pipes/date-format.pipe";
|
|
3
|
+
import * as i2 from "./pipes/date-time-format.pipe";
|
|
4
|
+
export declare class StDateFormatModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StDateFormatModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StDateFormatModule, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe], never, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StDateFormatModule>;
|
|
8
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NgModule } from "@angular/core";
|
|
2
|
-
import { DateFormatPipe } from "./pipes/date-format.pipe";
|
|
3
|
-
import { DateTimeFormatPipe } from "./pipes/date-time-format.pipe";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class DateFormatModule {
|
|
6
|
-
}
|
|
7
|
-
DateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
8
|
-
DateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, declarations: [DateFormatPipe,
|
|
9
|
-
DateTimeFormatPipe], exports: [DateFormatPipe,
|
|
10
|
-
DateTimeFormatPipe] });
|
|
11
|
-
DateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, providers: [], imports: [[]] });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
imports: [],
|
|
16
|
-
declarations: [
|
|
17
|
-
DateFormatPipe,
|
|
18
|
-
DateTimeFormatPipe
|
|
19
|
-
],
|
|
20
|
-
exports: [
|
|
21
|
-
DateFormatPipe,
|
|
22
|
-
DateTimeFormatPipe
|
|
23
|
-
],
|
|
24
|
-
providers: []
|
|
25
|
-
}]
|
|
26
|
-
}] });
|
|
27
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWRhdGUtZm9ybWF0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL25neC1kYXRlLWZvcm1hd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JcbiAgICBleHBvcnRzOiBbXHJcbiAgICAgICAgRGF0ZUZvcm1hdFBpcGUsXHJcbiAgICAgICAgRGF0ZVRpbWVGb3JtYXRQaXBlXHJcbiAgICBdLFxyXG4gICAgcHJvdmlkZXJzOiBbXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgRGF0ZUZvcm1hdE1vZHVsZSB7XHJcblxyXG59XHJcbiJdfQ==
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./pipes/date-format.pipe";
|
|
3
|
-
import * as i2 from "./pipes/date-time-format.pipe";
|
|
4
|
-
export declare class DateFormatModule {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatModule, never>;
|
|
6
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DateFormatModule, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe], never, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe]>;
|
|
7
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DateFormatModule>;
|
|
8
|
-
}
|