ngx-st-date-format 0.0.1

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 ADDED
@@ -0,0 +1,24 @@
1
+ # NgxDateFormat
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 13.2.0.
4
+
5
+ ## Code scaffolding
6
+
7
+ Run `ng generate component component-name --project ngx-st-date-format` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project ngx-st-date-format`.
8
+ > Note: Don't forget to add `--project ngx-st-date-format` or else it will be added to the default project in your `angular.json` file.
9
+
10
+ ## Build
11
+
12
+ Run `ng build ngx-st-date-format` to build the project. The build artifacts will be stored in the `dist/` directory.
13
+
14
+ ## Publishing
15
+
16
+ After building your library with `ng build ngx-st-date-format`, go to the dist folder `cd dist/ngx-st-date-format` and run `npm publish`.
17
+
18
+ ## Running unit tests
19
+
20
+ Run `ng test ngx-st-date-format` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
+
22
+ ## Further help
23
+
24
+ To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -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 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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWRhdGUtZm9ybWF0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL25neC1kYXRlLWZvcm1hdC5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN2QyxPQUFPLEVBQUMsY0FBYyxFQUFDLE1BQU0sMEJBQTBCLENBQUM7QUFDeEQsT0FBTyxFQUFDLGtCQUFrQixFQUFDLE1BQU0sK0JBQStCLENBQUM7O0FBY2pFLE1BQU0sT0FBTyxnQkFBZ0I7OzZHQUFoQixnQkFBZ0I7OEdBQWhCLGdCQUFnQixpQkFUckIsY0FBYztRQUNkLGtCQUFrQixhQUdsQixjQUFjO1FBQ2Qsa0JBQWtCOzhHQUliLGdCQUFnQixhQUZkLEVBQUUsWUFUSixFQUFFOzJGQVdGLGdCQUFnQjtrQkFaNUIsUUFBUTttQkFBQztvQkFDTixPQUFPLEVBQUUsRUFBRTtvQkFDWCxZQUFZLEVBQUU7d0JBQ1YsY0FBYzt3QkFDZCxrQkFBa0I7cUJBQ3JCO29CQUNELE9BQU8sRUFBRTt3QkFDTCxjQUFjO3dCQUNkLGtCQUFrQjtxQkFDckI7b0JBQ0QsU0FBUyxFQUFFLEVBQUU7aUJBQ2hCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtOZ01vZHVsZX0gZnJvbSBcIkBhbmd1bGFyL2NvcmVcIjtcclxuaW1wb3J0IHtEYXRlRm9ybWF0UGlwZX0gZnJvbSBcIi4vcGlwZXMvZGF0ZS1mb3JtYXQucGlwZVwiO1xyXG5pbXBvcnQge0RhdGVUaW1lRm9ybWF0UGlwZX0gZnJvbSBcIi4vcGlwZXMvZGF0ZS10aW1lLWZvcm1hdC5waXBlXCI7XHJcblxyXG5ATmdNb2R1bGUoe1xyXG4gICAgaW1wb3J0czogW10sXHJcbiAgICBkZWNsYXJhdGlvbnM6IFtcclxuICAgICAgICBEYXRlRm9ybWF0UGlwZSxcclxuICAgICAgICBEYXRlVGltZUZvcm1hdFBpcGVcclxuICAgIF0sXHJcbiAgICBleHBvcnRzOiBbXHJcbiAgICAgICAgRGF0ZUZvcm1hdFBpcGUsXHJcbiAgICAgICAgRGF0ZVRpbWVGb3JtYXRQaXBlXHJcbiAgICBdLFxyXG4gICAgcHJvdmlkZXJzOiBbXVxyXG59KVxyXG5leHBvcnQgY2xhc3MgRGF0ZUZvcm1hdE1vZHVsZSB7XHJcblxyXG59XHJcbiJdfQ==
@@ -0,0 +1,16 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class DateFormatPipe {
4
+ transform(value) {
5
+ return value && new Date(value).toLocaleDateString();
6
+ }
7
+ }
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: "dateFormatPipe" });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, decorators: [{
11
+ type: Pipe,
12
+ args: [{
13
+ name: 'dateFormatPipe',
14
+ }]
15
+ }] });
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1mb3JtYXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL3BpcGVzL2RhdGUtZm9ybWF0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBS3BELE1BQU0sT0FBTyxjQUFjO0lBQ3ZCLFNBQVMsQ0FBQyxLQUFhO1FBQ25CLE9BQU8sS0FBSyxJQUFJLElBQUksSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLGtCQUFrQixFQUFFLENBQUM7SUFDekQsQ0FBQzs7MkdBSFEsY0FBYzt5R0FBZCxjQUFjOzJGQUFkLGNBQWM7a0JBSDFCLElBQUk7bUJBQUM7b0JBQ0YsSUFBSSxFQUFFLGdCQUFnQjtpQkFDekIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AUGlwZSh7XHJcbiAgICBuYW1lOiAnZGF0ZUZvcm1hdFBpcGUnLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgRGF0ZUZvcm1hdFBpcGUgaW1wbGVtZW50cyBQaXBlVHJhbnNmb3JtIHtcclxuICAgIHRyYW5zZm9ybSh2YWx1ZTogc3RyaW5nKSB7XHJcbiAgICAgICAgcmV0dXJuIHZhbHVlICYmIG5ldyBEYXRlKHZhbHVlKS50b0xvY2FsZURhdGVTdHJpbmcoKTtcclxuICAgIH1cclxufVxyXG4iXX0=
@@ -0,0 +1,16 @@
1
+ import { Pipe } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export class DateTimeFormatPipe {
4
+ transform(value) {
5
+ return value && new Date(value).toLocaleString();
6
+ }
7
+ }
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: "dateTimeFormatPipe" });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
11
+ type: Pipe,
12
+ args: [{
13
+ name: 'dateTimeFormatPipe',
14
+ }]
15
+ }] });
16
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLWZvcm1hdC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9saWIvcGlwZXMvZGF0ZS10aW1lLWZvcm1hdC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQUtwRCxNQUFNLE9BQU8sa0JBQWtCO0lBQzNCLFNBQVMsQ0FBQyxLQUFhO1FBQ25CLE9BQU8sS0FBSyxJQUFJLElBQUksSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLGNBQWMsRUFBRSxDQUFDO0lBQ3JELENBQUM7OytHQUhRLGtCQUFrQjs2R0FBbEIsa0JBQWtCOzJGQUFsQixrQkFBa0I7a0JBSDlCLElBQUk7bUJBQUM7b0JBQ0YsSUFBSSxFQUFFLG9CQUFvQjtpQkFDN0IiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBQaXBlLCBQaXBlVHJhbnNmb3JtIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XHJcblxyXG5AUGlwZSh7XHJcbiAgICBuYW1lOiAnZGF0ZVRpbWVGb3JtYXRQaXBlJyxcclxufSlcclxuZXhwb3J0IGNsYXNzIERhdGVUaW1lRm9ybWF0UGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xyXG4gICAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcpIHtcclxuICAgICAgICByZXR1cm4gdmFsdWUgJiYgbmV3IERhdGUodmFsdWUpLnRvTG9jYWxlU3RyaW5nKCk7XHJcbiAgICB9XHJcbn1cclxuIl19
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0LWRhdGUtZm9ybWF0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9uZ3gtc3QtZGF0ZS1mb3JtYXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -0,0 +1,7 @@
1
+ /*
2
+ * Public API Surface of ngx-st-date-format
3
+ */
4
+ export * from './lib/pipes/date-format.pipe';
5
+ export * from './lib/pipes/date-time-format.pipe';
6
+ export * from './lib/ngx-date-format.module';
7
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLDhCQUE4QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZ3gtc3QtZGF0ZS1mb3JtYXRcbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2xpYi9waXBlcy9kYXRlLWZvcm1hdC5waXBlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3BpcGVzL2RhdGUtdGltZS1mb3JtYXQucGlwZSc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9uZ3gtZGF0ZS1mb3JtYXQubW9kdWxlJztcbiJdfQ==
@@ -0,0 +1,64 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+
4
+ class DateFormatPipe {
5
+ transform(value) {
6
+ return value && new Date(value).toLocaleDateString();
7
+ }
8
+ }
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: "dateFormatPipe" });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, decorators: [{
12
+ type: Pipe,
13
+ args: [{
14
+ name: 'dateFormatPipe',
15
+ }]
16
+ }] });
17
+
18
+ class DateTimeFormatPipe {
19
+ transform(value) {
20
+ return value && new Date(value).toLocaleString();
21
+ }
22
+ }
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: "dateTimeFormatPipe" });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
26
+ type: Pipe,
27
+ args: [{
28
+ name: 'dateTimeFormatPipe',
29
+ }]
30
+ }] });
31
+
32
+ class DateFormatModule {
33
+ }
34
+ DateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
+ DateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, declarations: [DateFormatPipe,
36
+ DateTimeFormatPipe], exports: [DateFormatPipe,
37
+ DateTimeFormatPipe] });
38
+ DateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, providers: [], imports: [[]] });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, decorators: [{
40
+ type: NgModule,
41
+ args: [{
42
+ imports: [],
43
+ declarations: [
44
+ DateFormatPipe,
45
+ DateTimeFormatPipe
46
+ ],
47
+ exports: [
48
+ DateFormatPipe,
49
+ DateTimeFormatPipe
50
+ ],
51
+ providers: []
52
+ }]
53
+ }] });
54
+
55
+ /*
56
+ * Public API Surface of ngx-st-date-format
57
+ */
58
+
59
+ /**
60
+ * Generated bundle index. Do not edit.
61
+ */
62
+
63
+ export { DateFormatModule, DateFormatPipe, DateTimeFormatPipe };
64
+ //# sourceMappingURL=ngx-st-date-format.mjs.map
@@ -0,0 +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/ngx-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: 'dateFormatPipe',\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: 'dateTimeFormatPipe',\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 DateFormatModule {\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/ngx-date-format.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"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AAA,EAAA,CAAA,CAAA;8GAIb,gBAAgB,EAAA,SAAA,EAFd,EAAE,EAAA,OAAA,EAAA,CATJ,EAAE,CAAA,EAAA,CAAA,CAAA;2FAWF,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAZ5B,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;;;;"}
@@ -0,0 +1,64 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Pipe, NgModule } from '@angular/core';
3
+
4
+ class DateFormatPipe {
5
+ transform(value) {
6
+ return value && new Date(value).toLocaleDateString();
7
+ }
8
+ }
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: "dateFormatPipe" });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatPipe, decorators: [{
12
+ type: Pipe,
13
+ args: [{
14
+ name: 'dateFormatPipe',
15
+ }]
16
+ }] });
17
+
18
+ class DateTimeFormatPipe {
19
+ transform(value) {
20
+ return value && new Date(value).toLocaleString();
21
+ }
22
+ }
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: "dateTimeFormatPipe" });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
26
+ type: Pipe,
27
+ args: [{
28
+ name: 'dateTimeFormatPipe',
29
+ }]
30
+ }] });
31
+
32
+ class DateFormatModule {
33
+ }
34
+ DateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
35
+ DateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, declarations: [DateFormatPipe,
36
+ DateTimeFormatPipe], exports: [DateFormatPipe,
37
+ DateTimeFormatPipe] });
38
+ DateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, providers: [], imports: [[]] });
39
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: DateFormatModule, decorators: [{
40
+ type: NgModule,
41
+ args: [{
42
+ imports: [],
43
+ declarations: [
44
+ DateFormatPipe,
45
+ DateTimeFormatPipe
46
+ ],
47
+ exports: [
48
+ DateFormatPipe,
49
+ DateTimeFormatPipe
50
+ ],
51
+ providers: []
52
+ }]
53
+ }] });
54
+
55
+ /*
56
+ * Public API Surface of ngx-st-date-format
57
+ */
58
+
59
+ /**
60
+ * Generated bundle index. Do not edit.
61
+ */
62
+
63
+ export { DateFormatModule, DateFormatPipe, DateTimeFormatPipe };
64
+ //# sourceMappingURL=ngx-st-date-format.mjs.map
@@ -0,0 +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/ngx-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: 'dateFormatPipe',\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: 'dateTimeFormatPipe',\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 DateFormatModule {\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/ngx-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,gBAAA,EAAA,CAAA,CAAA;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D,oBAAA,OAAO,EAAE;wBACL,cAAc;wBACd,kBAAkB;AACrB,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;ACfD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -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 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
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DateFormatPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "dateFormatPipe">;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class DateTimeFormatPipe implements PipeTransform {
4
+ transform(value: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeFormatPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeFormatPipe, "dateTimeFormatPipe">;
7
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-st-date-format" />
5
+ export * from './public-api';
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "ngx-st-date-format",
3
+ "version": "0.0.1",
4
+ "peerDependencies": {
5
+ "@angular/common": "^13.2.0",
6
+ "@angular/core": "^13.2.0"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.3.0"
10
+ },
11
+ "module": "fesm2015/ngx-st-date-format.mjs",
12
+ "es2020": "fesm2020/ngx-st-date-format.mjs",
13
+ "esm2020": "esm2020/ngx-st-date-format.mjs",
14
+ "fesm2020": "fesm2020/ngx-st-date-format.mjs",
15
+ "fesm2015": "fesm2015/ngx-st-date-format.mjs",
16
+ "typings": "ngx-st-date-format.d.ts",
17
+ "exports": {
18
+ "./package.json": {
19
+ "default": "./package.json"
20
+ },
21
+ ".": {
22
+ "types": "./ngx-st-date-format.d.ts",
23
+ "esm2020": "./esm2020/ngx-st-date-format.mjs",
24
+ "es2020": "./fesm2020/ngx-st-date-format.mjs",
25
+ "es2015": "./fesm2015/ngx-st-date-format.mjs",
26
+ "node": "./fesm2015/ngx-st-date-format.mjs",
27
+ "default": "./fesm2020/ngx-st-date-format.mjs"
28
+ }
29
+ },
30
+ "sideEffects": false
31
+ }
@@ -0,0 +1,3 @@
1
+ export * from './lib/pipes/date-format.pipe';
2
+ export * from './lib/pipes/date-time-format.pipe';
3
+ export * from './lib/ngx-date-format.module';