ngx-st-date-format 1.0.12 → 1.0.13

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 CHANGED
@@ -1,24 +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.
1
+ # NgxStDateFormat
2
+
3
+ This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 14.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,31 @@
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 { TimeFormatPipe } from "./pipes/time-format.pipe";
5
+ import * as i0 from "@angular/core";
6
+ export class NgxStDateFormatModule {
7
+ }
8
+ NgxStDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
9
+ NgxStDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, declarations: [DateFormatPipe,
10
+ DateTimeFormatPipe,
11
+ TimeFormatPipe], exports: [DateFormatPipe,
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: [{
16
+ type: NgModule,
17
+ args: [{
18
+ declarations: [
19
+ DateFormatPipe,
20
+ DateTimeFormatPipe,
21
+ TimeFormatPipe
22
+ ],
23
+ imports: [],
24
+ exports: [
25
+ DateFormatPipe,
26
+ DateTimeFormatPipe,
27
+ TimeFormatPipe
28
+ ]
29
+ }]
30
+ }] });
31
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0LWRhdGUtZm9ybWF0Lm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zd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1lLWZvcm1hdC5waXBlXCI7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW1xuICAgIERhdGVGb3JtYXRQaXBlLFxuICAgIERhdGVUaW1lRm9ybWF0UGlwZSxcbiAgICBUaW1lRm9ybWF0UGlwZVxuICBdLFxuICBpbXBvcnRzOiBbXG4gIF0sXG4gIGV4cG9ydHM6IFtcbiAgICBEYXRlRm9ybWF0UGlwZSxcbiAgICBEYXRlVGltZUZvcm1hdFBpcGUsXG4gICAgVGltZUZvcm1hdFBpcGVcbiAgXVxufSlcbmV4cG9ydCBjbGFzcyBOZ3hTdERhdGVGb3JtYXRNb2R1bGUgeyB9XG4iXX0=
@@ -1,26 +1,27 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class DateFormatPipe {
4
- transform(value) {
5
- if (value) {
6
- if (value instanceof Date) {
7
- return value.toLocaleDateString();
8
- }
9
- else {
10
- return new Date(value).toLocaleDateString();
11
- }
12
- }
13
- else {
14
- return '';
15
- }
16
- }
17
- }
18
- DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
19
- DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, decorators: [{
21
- type: Pipe,
22
- args: [{
23
- name: 'stDateFormatPipe',
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1mb3JtYXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZv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ZXR1cm4gbmV3IERhdGUodmFsdWUpLnRvTG9jYWxlRGF0ZVN0cmluZygpO1xyXG4gICAgICB9XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICByZXR1cm4gJyc7XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
1
+ import { Pipe } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export class DateFormatPipe {
4
+ constructor() { }
5
+ transform(value) {
6
+ if (value) {
7
+ if (value instanceof Date) {
8
+ return value.toLocaleDateString();
9
+ }
10
+ else {
11
+ return new Date(value).toLocaleDateString();
12
+ }
13
+ }
14
+ else {
15
+ return '';
16
+ }
17
+ }
18
+ }
19
+ DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
+ DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, decorators: [{
22
+ type: Pipe,
23
+ args: [{
24
+ name: 'stDateFormatPipe',
25
+ }]
26
+ }], ctorParameters: function () { return []; } });
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS1mb3JtYXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL3BpcGVzL2RhdGUtZm9ybWF0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLElBQUksRUFBZ0IsTUFBTSxlQUFlLENBQUM7O0FBS2xELE1BQU0sT0FBTyxjQUFjO0lBQ3pC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0dXJuICcnO1xuICAgIH1cbiAgfVxufVxuIl19
@@ -1,26 +1,27 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class DateTimeFormatPipe {
4
- transform(value) {
5
- if (value) {
6
- if (value instanceof Date) {
7
- return value.toLocaleString();
8
- }
9
- else {
10
- return new Date(value).toLocaleString();
11
- }
12
- }
13
- else {
14
- return '';
15
- }
16
- }
17
- }
18
- DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
19
- DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
21
- type: Pipe,
22
- args: [{
23
- name: 'stDateTimeFormatPipe',
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLWZvcm1hdC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9saWIvcGlwZXMvZGF0ZS10aW1lLWZvcm1hdC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDOztBQUtwRCxNQUFNLE9BQU8sa0JBQWtCO0lBQzdCLFNBQVMsQ0FBQyxLQUFnQztRQUN4QyxJQUFJLEtBQUssRUFBRTtZQUNULElBQUksS0FBSyxZQUFZLElBQUksRUFBRTtnQkFDekIsT0FBTyxLQUFLLENBQUMsY0FBYyxFQUFFLENBQUM7YUFDL0I7aUJBQU07Z0JBQ0wsT0FBTyxJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxjQUFjLEVBQUUsQ0FBQzthQUN6QztTQUNGO2FBQU07WUFDTCxPQUFPLEVBQUUsQ0FBQztTQUNYO0lBQ0gsQ0FBQzs7K0dBWFUsa0JBQWtCOzZHQUFsQixrQkFBa0I7MkZBQWxCLGtCQUFrQjtrQkFIOUIsSUFBSTttQkFBQztvQkFDSixJQUFJLEVBQUUsc0JBQXNCO2lCQUM3QiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFBpcGUsIFBpcGVUcmFuc2Zvcm0gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcclxuXHJcbkBQaXBlKHtcclxuICBuYW1lOiAnc3REYXRlVGltZUZvcm1hdFBpcGUnLFxyXG59KVxyXG5leHBvcnQgY2xhc3MgRGF0ZVRpbWVGb3JtYXRQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XHJcbiAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcgfCBEYXRlIHwgdW5kZWZpbmVkKSB7XHJcbiAgICBpZiAodmFsdWUpIHtcclxuICAgICAgaWYgKHZhbHVlIGluc3RhbmNlb2YgRGF0ZSkge1xyXG4gICAgICAgIHJldHVybiB2YWx1ZS50b0xvY2FsZVN0cmluZygpO1xyXG4gICAgICB9IGVsc2Uge1xyXG4gICAgICAgIHJldHVybiBuZXcgRGF0ZSh2YWx1ZSkudG9Mb2NhbGVTdHJpbmcoKTtcclxuICAgICAgfVxyXG4gICAgfSBlbHNlIHtcclxuICAgICAgcmV0dXJuICcnO1xyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
1
+ import { Pipe } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export class DateTimeFormatPipe {
4
+ constructor() { }
5
+ transform(value) {
6
+ if (value) {
7
+ if (value instanceof Date) {
8
+ return value.toLocaleString();
9
+ }
10
+ else {
11
+ return new Date(value).toLocaleString();
12
+ }
13
+ }
14
+ else {
15
+ return '';
16
+ }
17
+ }
18
+ }
19
+ DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
+ DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
22
+ type: Pipe,
23
+ args: [{
24
+ name: 'stDateTimeFormatPipe',
25
+ }]
26
+ }], ctorParameters: function () { return []; } });
27
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGF0ZS10aW1lLWZvcm1hdC5waXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9saWIvcGlwZXMvZGF0ZS10aW1lLWZvcm1hdC5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQWdCLE1BQU0sZUFBZSxDQUFDOztBQUtsRCxNQUFNLE9BQU8sa0JBQWtCO0lBQzdCLGdCQUFlLENBQUM7SUFFaEIsU0FBUyxDQUFDLEtBQWdDO1FBQ3hDLElBQUksS0FBSyxFQUFFO1lBQ1QsSUFBSSxLQUFLLFlBQVksSUFBSSxFQUFFO2dCQUN6QixPQUFPLEtBQUssQ0FBQyxjQUFjLEVBQUUsQ0FBQzthQUMvQjtpQkFBTTtnQkFDTCxPQUFPLElBQUksSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLGNBQWMsRUFBRSxDQUFDO2FBQ3pDO1NBQ0Y7YUFBTTtZQUNMLE9BQU8sRUFBRSxDQUFDO1NBQ1g7SUFDSCxDQUFDOzsrR0FiVSxrQkFBa0I7NkdBQWxCLGtCQUFrQjsyRkFBbEIsa0JBQWtCO2tCQUg5QixJQUFJO21CQUFDO29CQUNKLElBQUksRUFBRSxzQkFBc0I7aUJBQzdCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtQaXBlLCBQaXBlVHJhbnNmb3JtfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xuXG5AUGlwZSh7XG4gIG5hbWU6ICdzdERhdGVUaW1lRm9ybWF0UGlwZScsXG59KVxuZXhwb3J0IGNsYXNzIERhdGVUaW1lRm9ybWF0UGlwZSBpbXBsZW1lbnRzIFBpcGVUcmFuc2Zvcm0ge1xuICBjb25zdHJ1Y3RvcigpIHt9XG5cbiAgdHJhbnNmb3JtKHZhbHVlOiBzdHJpbmcgfCBEYXRlIHwgdW5kZWZpbmVkKTogc3RyaW5nIHtcbiAgICBpZiAodmFsdWUpIHtcbiAgICAgIGlmICh2YWx1ZSBpbnN0YW5jZW9mIERhdGUpIHtcbiAgICAgICAgcmV0dXJuIHZhbHVlLnRvTG9jYWxlU3RyaW5nKCk7XG4gICAgICB9IGVsc2Uge1xuICAgICAgICByZXR1cm4gbmV3IERhdGUodmFsdWUpLnRvTG9jYWxlU3RyaW5nKCk7XG4gICAgICB9XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiAnJztcbiAgICB9XG4gIH1cbn1cbiJdfQ==
@@ -1,32 +1,33 @@
1
- import { Pipe } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class TimeFormatPipe {
4
- transform(value) {
5
- if (value) {
6
- if (value instanceof Date) {
7
- return value.toLocaleTimeString([], {
8
- hour: '2-digit',
9
- minute: '2-digit',
10
- });
11
- }
12
- else {
13
- return new Date(value).toLocaleTimeString([], {
14
- hour: '2-digit',
15
- minute: '2-digit',
16
- });
17
- }
18
- }
19
- else {
20
- return '';
21
- }
22
- }
23
- }
24
- TimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
25
- TimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, name: "stTimeFormatPipe" });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, decorators: [{
27
- type: Pipe,
28
- args: [{
29
- name: 'stTimeFormatPipe',
30
- }]
31
- }] });
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1mb3JtYXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL3BpcGVzL3RpbWUtZm9ybWF0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxlQUFlLENBQUM7O0FBS3BELE1BQU0sT0FBTyxjQUFjO0lBQ3pCLFNBQVMsQ0FBQyxLQUFnQztRQUN4QyxJQUFJLEtBQUssRUFBRTtZQUNULElBQUksS0FBSyxZQUFZLElBQUksRUFBRTtnQkFDekIsT0FBTyxLQUFLLENBQUMsa0JBQWtCLENBQUMsRUFBRSxFQUFFO29CQUNsQyxJQUFJLEVBQUUsU0FBUztvQkFDZixNQUFNLEVBQUUsU0FBUztpQkFDbEIsQ0FBQyxDQUFDO2FBQ0o7aUJBQU07Z0JBQ0wsT0FBTyxJQUFJLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQyxrQkFBa0IsQ0FBQyxFQUFFLEVBQUU7b0JBQzVDL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yXG4gIH1cclxufVxyXG4iXX0=
1
+ import { Pipe } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export class TimeFormatPipe {
4
+ constructor() { }
5
+ transform(value) {
6
+ if (value) {
7
+ if (value instanceof Date) {
8
+ return value.toLocaleTimeString([], {
9
+ hour: '2-digit',
10
+ minute: '2-digit',
11
+ });
12
+ }
13
+ else {
14
+ return new Date(value).toLocaleTimeString([], {
15
+ hour: '2-digit',
16
+ minute: '2-digit',
17
+ });
18
+ }
19
+ }
20
+ else {
21
+ return '';
22
+ }
23
+ }
24
+ }
25
+ TimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
26
+ TimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, name: "stTimeFormatPipe" });
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, decorators: [{
28
+ type: Pipe,
29
+ args: [{
30
+ name: 'stTimeFormatPipe',
31
+ }]
32
+ }], ctorParameters: function () { return []; } });
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZS1mb3JtYXQucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvbGliL3BpcGVzL3RpbWUtZm9ybWF0LnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFDLElBQUksRUFBZ0IsTUFBTSxlQUFlLENBQUM7O0FBS2xELE1BQU0sT0FBTyxjQUFjO0lBQ3pCLGdCQUFlLENBQUM7SUFFaEIsU0FBUyxDQUFDLEtBQWdDO1FB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6ICcyLWRpZ2l0JyxcbiAgICAgICAgICBtaW51dGU6ICcyLWRpZ2l0JyxcbiAgICAgICAgfSk7XG4gICAgICB9XG4gICAgICBlbHNlIHtcbiAgICAgICAgcmV0dXJuIG5ldyBEYXRlKHZhbHVlKS50b0xvY2FsZVRpbWVTdHJpbmcoW10sIHtcbiAgICAgICAgICBob3VyOiAnMi1kaWdpdCcsXG4gICAgICAgICAgbWludXRlOiAnMi1kaWdpdCcsXG4gICAgICAgIH0pO1xuICAgICAgfVxuICAgIH1cbiAgICBlbHNlIHtcbiAgICAgIHJldHVybiAnJztcbiAgICB9XG4gIH1cbn1cbiJdfQ==
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './public-api';
5
5
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LXN0LWRhdGUtZm9ybWF0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9uZ3gtc3QtZGF0ZS1mb3JtYXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,8 +1,8 @@
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/pipes/time-format.pipe';
7
- export * from './lib/st-date-format.module';
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsNkJBQTZCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2Ygbmd4LXN0LWRhdGUtZm9ybWF0XHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvcGlwZXMvZGF0ZS1mb3JtYXQucGlwZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3BpcGVzL2RhdGUtdGltZS1mb3JtYXQucGlwZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL3BpcGVzL3RpbWUtZm9ybWF0LnBpcGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9zdC1kYXRlLWZvcm1hdC5tb2R1bGUnO1xyXG4iXX0=
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/pipes/time-format.pipe';
7
+ export * from './lib/ngx-st-date-format.module';
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL25neC1zdC1kYXRlLWZvcm1hdC9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsOEJBQThCLENBQUM7QUFDN0MsY0FBYyxtQ0FBbUMsQ0FBQztBQUNsRCxjQUFjLDhCQUE4QixDQUFDO0FBQzdDLGNBQWMsaUNBQWlDLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIG5neC1zdC1kYXRlLWZvcm1hdFxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vbGliL3BpcGVzL2RhdGUtZm9ybWF0LnBpcGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvcGlwZXMvZGF0ZS10aW1lLWZvcm1hdC5waXBlJztcbmV4cG9ydCAqIGZyb20gJy4vbGliL3BpcGVzL3RpbWUtZm9ybWF0LnBpcGUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbmd4LXN0LWRhdGUtZm9ybWF0Lm1vZHVsZSc7XG4iXX0=
@@ -1,118 +1,120 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Pipe, NgModule } from '@angular/core';
3
3
 
4
- class DateFormatPipe {
5
- transform(value) {
6
- if (value) {
7
- if (value instanceof Date) {
8
- return value.toLocaleDateString();
9
- }
10
- else {
11
- return new Date(value).toLocaleDateString();
12
- }
13
- }
14
- else {
15
- return '';
16
- }
17
- }
18
- }
19
- DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
- DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, decorators: [{
22
- type: Pipe,
23
- args: [{
24
- name: 'stDateFormatPipe',
25
- }]
26
- }] });
4
+ class DateFormatPipe {
5
+ constructor() { }
6
+ transform(value) {
7
+ if (value) {
8
+ if (value instanceof Date) {
9
+ return value.toLocaleDateString();
10
+ }
11
+ else {
12
+ return new Date(value).toLocaleDateString();
13
+ }
14
+ }
15
+ else {
16
+ return '';
17
+ }
18
+ }
19
+ }
20
+ DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
21
+ DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, decorators: [{
23
+ type: Pipe,
24
+ args: [{
25
+ name: 'stDateFormatPipe',
26
+ }]
27
+ }], ctorParameters: function () { return []; } });
27
28
 
28
- class DateTimeFormatPipe {
29
- transform(value) {
30
- if (value) {
31
- if (value instanceof Date) {
32
- return value.toLocaleString();
33
- }
34
- else {
35
- return new Date(value).toLocaleString();
36
- }
37
- }
38
- else {
39
- return '';
40
- }
41
- }
42
- }
43
- DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
44
- DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
46
- type: Pipe,
47
- args: [{
48
- name: 'stDateTimeFormatPipe',
49
- }]
50
- }] });
29
+ class DateTimeFormatPipe {
30
+ constructor() { }
31
+ transform(value) {
32
+ if (value) {
33
+ if (value instanceof Date) {
34
+ return value.toLocaleString();
35
+ }
36
+ else {
37
+ return new Date(value).toLocaleString();
38
+ }
39
+ }
40
+ else {
41
+ return '';
42
+ }
43
+ }
44
+ }
45
+ DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
46
+ DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
48
+ type: Pipe,
49
+ args: [{
50
+ name: 'stDateTimeFormatPipe',
51
+ }]
52
+ }], ctorParameters: function () { return []; } });
51
53
 
52
- class TimeFormatPipe {
53
- transform(value) {
54
- if (value) {
55
- if (value instanceof Date) {
56
- return value.toLocaleTimeString([], {
57
- hour: '2-digit',
58
- minute: '2-digit',
59
- });
60
- }
61
- else {
62
- return new Date(value).toLocaleTimeString([], {
63
- hour: '2-digit',
64
- minute: '2-digit',
65
- });
66
- }
67
- }
68
- else {
69
- return '';
70
- }
71
- }
72
- }
73
- TimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
74
- TimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, name: "stTimeFormatPipe" });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, decorators: [{
76
- type: Pipe,
77
- args: [{
78
- name: 'stTimeFormatPipe',
79
- }]
80
- }] });
54
+ class TimeFormatPipe {
55
+ constructor() { }
56
+ transform(value) {
57
+ if (value) {
58
+ if (value instanceof Date) {
59
+ return value.toLocaleTimeString([], {
60
+ hour: '2-digit',
61
+ minute: '2-digit',
62
+ });
63
+ }
64
+ else {
65
+ return new Date(value).toLocaleTimeString([], {
66
+ hour: '2-digit',
67
+ minute: '2-digit',
68
+ });
69
+ }
70
+ }
71
+ else {
72
+ return '';
73
+ }
74
+ }
75
+ }
76
+ TimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
77
+ TimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, name: "stTimeFormatPipe" });
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, decorators: [{
79
+ type: Pipe,
80
+ args: [{
81
+ name: 'stTimeFormatPipe',
82
+ }]
83
+ }], ctorParameters: function () { return []; } });
81
84
 
82
- class StDateFormatModule {
83
- }
84
- StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
85
- StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe,
86
- DateTimeFormatPipe,
87
- TimeFormatPipe], exports: [DateFormatPipe,
88
- DateTimeFormatPipe,
89
- TimeFormatPipe] });
90
- StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule });
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, decorators: [{
92
- type: NgModule,
93
- args: [{
94
- imports: [],
95
- declarations: [
96
- DateFormatPipe,
97
- DateTimeFormatPipe,
98
- TimeFormatPipe
99
- ],
100
- exports: [
101
- DateFormatPipe,
102
- DateTimeFormatPipe,
103
- TimeFormatPipe
104
- ],
105
- providers: []
106
- }]
85
+ class NgxStDateFormatModule {
86
+ }
87
+ NgxStDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
88
+ NgxStDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, declarations: [DateFormatPipe,
89
+ DateTimeFormatPipe,
90
+ TimeFormatPipe], exports: [DateFormatPipe,
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: [{
95
+ type: NgModule,
96
+ args: [{
97
+ declarations: [
98
+ DateFormatPipe,
99
+ DateTimeFormatPipe,
100
+ TimeFormatPipe
101
+ ],
102
+ imports: [],
103
+ exports: [
104
+ DateFormatPipe,
105
+ DateTimeFormatPipe,
106
+ TimeFormatPipe
107
+ ]
108
+ }]
107
109
  }] });
108
110
 
109
- /*
110
- * Public API Surface of ngx-st-date-format
111
+ /*
112
+ * Public API Surface of ngx-st-date-format
111
113
  */
112
114
 
113
- /**
114
- * Generated bundle index. Do not edit.
115
+ /**
116
+ * Generated bundle index. Do not edit.
115
117
  */
116
118
 
117
- export { DateFormatPipe, DateTimeFormatPipe, StDateFormatModule, TimeFormatPipe };
119
+ export { DateFormatPipe, DateTimeFormatPipe, NgxStDateFormatModule, TimeFormatPipe };
118
120
  //# 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/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 | Date | undefined) {\r\n if (value) {\r\n if (value instanceof Date) {\r\n return value.toLocaleDateString();\r\n } else {\r\n return new Date(value).toLocaleDateString();\r\n }\r\n } else {\r\n return '';\r\n }\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 | Date | undefined) {\r\n if (value) {\r\n if (value instanceof Date) {\r\n return value.toLocaleString();\r\n } else {\r\n return new Date(value).toLocaleString();\r\n }\r\n } else {\r\n return '';\r\n }\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'stTimeFormatPipe',\r\n})\r\nexport class TimeFormatPipe implements PipeTransform {\r\n transform(value: string | Date | undefined) {\r\n if (value) {\r\n if (value instanceof Date) {\r\n return value.toLocaleTimeString([], {\r\n hour: '2-digit',\r\n minute: '2-digit',\r\n });\r\n } else {\r\n return new Date(value).toLocaleTimeString([], {\r\n hour: '2-digit',\r\n minute: '2-digit',\r\n });\r\n }\r\n } else {\r\n return '';\r\n }\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\nimport {TimeFormatPipe} from \"./pipes/time-format.pipe\";\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe,\r\n TimeFormatPipe\r\n ],\r\n exports: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe,\r\n TimeFormatPipe\r\n ],\r\n providers: []\r\n})\r\nexport class StDateFormatModule {\r\n\r\n}\r\n","/*\r\n * Public API Surface of ngx-st-date-format\r\n */\r\n\r\nexport * from './lib/pipes/date-format.pipe';\r\nexport * from './lib/pipes/date-time-format.pipe';\r\nexport * from './lib/pipes/time-format.pipe';\r\nexport * from './lib/st-date-format.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AACzB,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;AAAM,iBAAA;gBACL,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAC7C,aAAA;AACF,SAAA;AAAM,aAAA;AACL,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;KACF;;2GAXU,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;iBACzB,CAAA;;;MCCY,kBAAkB,CAAA;AAC7B,IAAA,SAAS,CAAC,KAAgC,EAAA;AACxC,QAAA,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,YAAY,IAAI,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cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,kBAAkB;iBACzB,CAAA;;;MCeY,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,iBAXvB,cAAc;QACd,kBAAkB;AAClB,QAAA,cAAc,aAGd,cAAc;QACd,kBAAkB;QAClB,cAAc,CAAA,EAAA,CAAA,CAAA;gHAIT,kBAAkB,EAAA,CAAA,CAAA;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAd9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE;wBACV,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACjB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACjB,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;iBAChB,CAAA;;;AClBD;;AAEG;;ACFH;;AAEG;;;;"}
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: [\n DateFormatPipe,\n DateTimeFormatPipe,\n TimeFormatPipe\n ],\n imports: [\n ],\n exports: [\n DateFormatPipe,\n DateTimeFormatPipe,\n TimeFormatPipe\n ]\n})\nexport class NgxStDateFormatModule { }\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,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A,qBAAqB,iBAZ9B,cAAc;QACd,kBAAkB;AAClB,QAAA,cAAc,aAKd,cAAc;QACd,kBAAkB;QAClB,cAAc,CAAA,EAAA,CAAA,CAAA;mHAGL,qBAAqB,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAdjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACf,qBAAA;iBACF,CAAA;;;AClBD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -1,118 +1,120 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { Pipe, NgModule } from '@angular/core';
3
3
 
4
- class DateFormatPipe {
5
- transform(value) {
6
- if (value) {
7
- if (value instanceof Date) {
8
- return value.toLocaleDateString();
9
- }
10
- else {
11
- return new Date(value).toLocaleDateString();
12
- }
13
- }
14
- else {
15
- return '';
16
- }
17
- }
18
- }
19
- DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
20
- DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
21
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, decorators: [{
22
- type: Pipe,
23
- args: [{
24
- name: 'stDateFormatPipe',
25
- }]
26
- }] });
4
+ class DateFormatPipe {
5
+ constructor() { }
6
+ transform(value) {
7
+ if (value) {
8
+ if (value instanceof Date) {
9
+ return value.toLocaleDateString();
10
+ }
11
+ else {
12
+ return new Date(value).toLocaleDateString();
13
+ }
14
+ }
15
+ else {
16
+ return '';
17
+ }
18
+ }
19
+ }
20
+ DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
21
+ DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, name: "stDateFormatPipe" });
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateFormatPipe, decorators: [{
23
+ type: Pipe,
24
+ args: [{
25
+ name: 'stDateFormatPipe',
26
+ }]
27
+ }], ctorParameters: function () { return []; } });
27
28
 
28
- class DateTimeFormatPipe {
29
- transform(value) {
30
- if (value) {
31
- if (value instanceof Date) {
32
- return value.toLocaleString();
33
- }
34
- else {
35
- return new Date(value).toLocaleString();
36
- }
37
- }
38
- else {
39
- return '';
40
- }
41
- }
42
- }
43
- DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
44
- DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
46
- type: Pipe,
47
- args: [{
48
- name: 'stDateTimeFormatPipe',
49
- }]
50
- }] });
29
+ class DateTimeFormatPipe {
30
+ constructor() { }
31
+ transform(value) {
32
+ if (value) {
33
+ if (value instanceof Date) {
34
+ return value.toLocaleString();
35
+ }
36
+ else {
37
+ return new Date(value).toLocaleString();
38
+ }
39
+ }
40
+ else {
41
+ return '';
42
+ }
43
+ }
44
+ }
45
+ DateTimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
46
+ DateTimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, name: "stDateTimeFormatPipe" });
47
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: DateTimeFormatPipe, decorators: [{
48
+ type: Pipe,
49
+ args: [{
50
+ name: 'stDateTimeFormatPipe',
51
+ }]
52
+ }], ctorParameters: function () { return []; } });
51
53
 
52
- class TimeFormatPipe {
53
- transform(value) {
54
- if (value) {
55
- if (value instanceof Date) {
56
- return value.toLocaleTimeString([], {
57
- hour: '2-digit',
58
- minute: '2-digit',
59
- });
60
- }
61
- else {
62
- return new Date(value).toLocaleTimeString([], {
63
- hour: '2-digit',
64
- minute: '2-digit',
65
- });
66
- }
67
- }
68
- else {
69
- return '';
70
- }
71
- }
72
- }
73
- TimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
74
- TimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, name: "stTimeFormatPipe" });
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, decorators: [{
76
- type: Pipe,
77
- args: [{
78
- name: 'stTimeFormatPipe',
79
- }]
80
- }] });
54
+ class TimeFormatPipe {
55
+ constructor() { }
56
+ transform(value) {
57
+ if (value) {
58
+ if (value instanceof Date) {
59
+ return value.toLocaleTimeString([], {
60
+ hour: '2-digit',
61
+ minute: '2-digit',
62
+ });
63
+ }
64
+ else {
65
+ return new Date(value).toLocaleTimeString([], {
66
+ hour: '2-digit',
67
+ minute: '2-digit',
68
+ });
69
+ }
70
+ }
71
+ else {
72
+ return '';
73
+ }
74
+ }
75
+ }
76
+ TimeFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
77
+ TimeFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, name: "stTimeFormatPipe" });
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TimeFormatPipe, decorators: [{
79
+ type: Pipe,
80
+ args: [{
81
+ name: 'stTimeFormatPipe',
82
+ }]
83
+ }], ctorParameters: function () { return []; } });
81
84
 
82
- class StDateFormatModule {
83
- }
84
- StDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
85
- StDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, declarations: [DateFormatPipe,
86
- DateTimeFormatPipe,
87
- TimeFormatPipe], exports: [DateFormatPipe,
88
- DateTimeFormatPipe,
89
- TimeFormatPipe] });
90
- StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule });
91
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, decorators: [{
92
- type: NgModule,
93
- args: [{
94
- imports: [],
95
- declarations: [
96
- DateFormatPipe,
97
- DateTimeFormatPipe,
98
- TimeFormatPipe
99
- ],
100
- exports: [
101
- DateFormatPipe,
102
- DateTimeFormatPipe,
103
- TimeFormatPipe
104
- ],
105
- providers: []
106
- }]
85
+ class NgxStDateFormatModule {
86
+ }
87
+ NgxStDateFormatModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
88
+ NgxStDateFormatModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: NgxStDateFormatModule, declarations: [DateFormatPipe,
89
+ DateTimeFormatPipe,
90
+ TimeFormatPipe], exports: [DateFormatPipe,
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: [{
95
+ type: NgModule,
96
+ args: [{
97
+ declarations: [
98
+ DateFormatPipe,
99
+ DateTimeFormatPipe,
100
+ TimeFormatPipe
101
+ ],
102
+ imports: [],
103
+ exports: [
104
+ DateFormatPipe,
105
+ DateTimeFormatPipe,
106
+ TimeFormatPipe
107
+ ]
108
+ }]
107
109
  }] });
108
110
 
109
- /*
110
- * Public API Surface of ngx-st-date-format
111
+ /*
112
+ * Public API Surface of ngx-st-date-format
111
113
  */
112
114
 
113
- /**
114
- * Generated bundle index. Do not edit.
115
+ /**
116
+ * Generated bundle index. Do not edit.
115
117
  */
116
118
 
117
- export { DateFormatPipe, DateTimeFormatPipe, StDateFormatModule, TimeFormatPipe };
119
+ export { DateFormatPipe, DateTimeFormatPipe, NgxStDateFormatModule, TimeFormatPipe };
118
120
  //# 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/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 | Date | undefined) {\r\n if (value) {\r\n if (value instanceof Date) {\r\n return value.toLocaleDateString();\r\n } else {\r\n return new Date(value).toLocaleDateString();\r\n }\r\n } else {\r\n return '';\r\n }\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 | Date | undefined) {\r\n if (value) {\r\n if (value instanceof Date) {\r\n return value.toLocaleString();\r\n } else {\r\n return new Date(value).toLocaleString();\r\n }\r\n } else {\r\n return '';\r\n }\r\n }\r\n}\r\n","import { Pipe, PipeTransform } from '@angular/core';\r\n\r\n@Pipe({\r\n name: 'stTimeFormatPipe',\r\n})\r\nexport class TimeFormatPipe implements PipeTransform {\r\n transform(value: string | Date | undefined) {\r\n if (value) {\r\n if (value instanceof Date) {\r\n return value.toLocaleTimeString([], {\r\n hour: '2-digit',\r\n minute: '2-digit',\r\n });\r\n } else {\r\n return new Date(value).toLocaleTimeString([], {\r\n hour: '2-digit',\r\n minute: '2-digit',\r\n });\r\n }\r\n } else {\r\n return '';\r\n }\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\nimport {TimeFormatPipe} from \"./pipes/time-format.pipe\";\r\n\r\n@NgModule({\r\n imports: [],\r\n declarations: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe,\r\n TimeFormatPipe\r\n ],\r\n exports: [\r\n DateFormatPipe,\r\n DateTimeFormatPipe,\r\n TimeFormatPipe\r\n ],\r\n providers: []\r\n})\r\nexport class StDateFormatModule {\r\n\r\n}\r\n","/*\r\n * Public API Surface of ngx-st-date-format\r\n */\r\n\r\nexport * from './lib/pipes/date-format.pipe';\r\nexport * from './lib/pipes/date-time-format.pipe';\r\nexport * from './lib/pipes/time-format.pipe';\r\nexport * from './lib/st-date-format.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,cAAc,CAAA;AACzB,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;AAAM,iBAAA;gBACL,OAAO,IAAI,IAAI,CAAC,KAAK,CAAC,CAAC,kBAAkB,EAAE,CAAC;AAC7C,aAAA;AACF,SAAA;AAAM,aAAA;AACL,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;KACF;;2GAXU,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;;;MCCY,kBAAkB,CAAA;AAC7B,IAAA,SAAS,CAAC,KAAgC,EAAA;AACxC,QAAA,IAAI,KAAK,EAAE;YACT,IAAI,KAAK,YAAY,IAAI,EAAE;AACzB,gBAAA,OAAO,KAAK,CAAC,cAAc,EAAE,CAAC;AAC/B,aAAA;AAAM,iBAAA;gBACL,OAA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A,IAAI,EAAE,kBAAkB;AACzB,iBAAA,CAAA;;;MCeY,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,iBAXvB,cAAc;QACd,kBAAkB;AAClB,QAAA,cAAc,aAGd,cAAc;QACd,kBAAkB;QAClB,cAAc,CAAA,EAAA,CAAA,CAAA;gHAIT,kBAAkB,EAAA,CAAA,CAAA;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAd9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,YAAY,EAAE;wBACV,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACjB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACL,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACjB,qBAAA;AACD,oBAAA,SAAS,EAAE,EAAE;AAChB,iBAAA,CAAA;;;AClBD;;AAEG;;ACFH;;AAEG;;;;"}
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: [\n DateFormatPipe,\n DateTimeFormatPipe,\n TimeFormatPipe\n ],\n imports: [\n ],\n exports: [\n DateFormatPipe,\n DateTimeFormatPipe,\n TimeFormatPipe\n ]\n})\nexport class NgxStDateFormatModule { }\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,EAA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c,aAKd,cAAc;QACd,kBAAkB;QAClB,cAAc,CAAA,EAAA,CAAA,CAAA;mHAGL,qBAAqB,EAAA,CAAA,CAAA;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAdjC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACf,qBAAA;AACD,oBAAA,OAAO,EAAE,EACR;AACD,oBAAA,OAAO,EAAE;wBACP,cAAc;wBACd,kBAAkB;wBAClB,cAAc;AACf,qBAAA;AACF,iBAAA,CAAA;;;AClBD;;AAEG;;ACFH;;AAEG;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="ngx-st-date-format" />
5
- export * from './public-api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="ngx-st-date-format" />
5
+ export * from './public-api';
@@ -0,0 +1,9 @@
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
+ import * as i3 from "./pipes/time-format.pipe";
5
+ export declare class NgxStDateFormatModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxStDateFormatModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NgxStDateFormatModule, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe, typeof i3.TimeFormatPipe], never, [typeof i1.DateFormatPipe, typeof i2.DateTimeFormatPipe, typeof i3.TimeFormatPipe]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<NgxStDateFormatModule>;
9
+ }
@@ -1,7 +1,8 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DateFormatPipe implements PipeTransform {
4
- transform(value: string | Date | undefined): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "stDateFormatPipe", false>;
7
- }
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class DateFormatPipe implements PipeTransform {
4
+ constructor();
5
+ transform(value: string | Date | undefined): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateFormatPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateFormatPipe, "stDateFormatPipe", false>;
8
+ }
@@ -1,7 +1,8 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class DateTimeFormatPipe implements PipeTransform {
4
- transform(value: string | Date | undefined): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeFormatPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeFormatPipe, "stDateTimeFormatPipe", false>;
7
- }
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class DateTimeFormatPipe implements PipeTransform {
4
+ constructor();
5
+ transform(value: string | Date | undefined): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeFormatPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<DateTimeFormatPipe, "stDateTimeFormatPipe", false>;
8
+ }
@@ -1,7 +1,8 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class TimeFormatPipe implements PipeTransform {
4
- transform(value: string | Date | undefined): string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TimeFormatPipe, never>;
6
- static ɵpipe: i0.ɵɵPipeDeclaration<TimeFormatPipe, "stTimeFormatPipe", false>;
7
- }
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class TimeFormatPipe implements PipeTransform {
4
+ constructor();
5
+ transform(value: string | Date | undefined): string;
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<TimeFormatPipe, never>;
7
+ static ɵpipe: i0.ɵɵPipeDeclaration<TimeFormatPipe, "stTimeFormatPipe", false>;
8
+ }
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "ngx-st-date-format",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "peerDependencies": {
5
- "@angular/common": "^14.3.0",
6
- "@angular/core": "^14.3.0"
5
+ "@angular/common": "^14.2.0",
6
+ "@angular/core": "^14.2.0"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.3.0"
package/public-api.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export * from './lib/pipes/date-format.pipe';
2
- export * from './lib/pipes/date-time-format.pipe';
3
- export * from './lib/pipes/time-format.pipe';
4
- export * from './lib/st-date-format.module';
1
+ export * from './lib/pipes/date-format.pipe';
2
+ export * from './lib/pipes/date-time-format.pipe';
3
+ export * from './lib/pipes/time-format.pipe';
4
+ export * from './lib/ngx-st-date-format.module';
@@ -1,32 +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 { TimeFormatPipe } from "./pipes/time-format.pipe";
5
- import * as i0 from "@angular/core";
6
- export class StDateFormatModule {
7
- }
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,
10
- DateTimeFormatPipe,
11
- TimeFormatPipe], exports: [DateFormatPipe,
12
- DateTimeFormatPipe,
13
- TimeFormatPipe] });
14
- StDateFormatModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: StDateFormatModule, decorators: [{
16
- type: NgModule,
17
- args: [{
18
- imports: [],
19
- declarations: [
20
- DateFormatPipe,
21
- DateTimeFormatPipe,
22
- TimeFormatPipe
23
- ],
24
- exports: [
25
- DateFormatPipe,
26
- DateTimeFormatPipe,
27
- TimeFormatPipe
28
- ],
29
- providers: []
30
- }]
31
- }] });
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3QtZGF0ZS1mb3JtYXQubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXN0LWRhdGUtZm9ybWF0L3NyYy9saWIvc3QtZGF0ZS1mb3JtYXQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLDBCQUEwQixDQUFDO0FBQ3hELE9BQU8sRUFBQyxrQkFBa0IsRUFBQyxNQUFNLCtCQUErQixDQUFDO0FBQ2pFLE9BQU8sRUFBQyxjQUFjLEVBQUMsTUFBTSwwQkFBMEIsQ0FBQzs7QUFnQnhELE1BQU0sT0FBTyxrQkFBa0I7OytHQUFsQixrQkFBa0I7Z0hBQWxCLGtCQUFrQixpQkFYdkIsY0FBYztRQUNkLGtCQUFrQjtRQUNsQixjQUFjLGFBR2QsY0FBYztRQUNkLGtCQUFrQjtRQUNsQixjQUFjO2dIQUlULGtCQUFrQjsyRkFBbEIsa0JBQWtCO2tCQWQ5QixRQUFRO21CQUFDO29CQUNOLE9BQU8sRUFBRSxFQUFFO29CQUNYLFlBQVksRUFBRTt3QkFDVixjQUFjO3dCQUNkLGtCQUFrQjt3QkFDbEIsY0FBYztxQkFDakI7b0JBQ0QsT0FBTyxFQUFFO3dCQUNMLGNBQWM7d0JBQ2Qsa0JBQWtCO3dCQUNsQixjQUFjO3FCQUNqQjtvQkFDRCxTQUFTLEVBQUUsRUFBRTtpQkFDaEIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQge05nTW9kdWxlfSBmcm9tIFwiQGFuZ3VsYXIvY29yZVwiO1xyXG5pbXBvcnQge0RhdGVGb3JtYXRQaXBlfSBmcm9tIFwiLi9waXBlcy9kYXRlLWZvcm1hdC5waXBlXCI7XHJcbmltcG9ydCB7RGF0ZVRpbWVGb3JtYXRQaXBlfSBmcm9tIFwiLi9waXBlcy9kYXRlLXRpbWUtZm9ybWF0LnBpcGVcIjtcclxuaW1wb3J0IHtUaW1lRm9ybWF0UGlwZX0gZnJvbSBcIi4vcGlwZXMvdGltZS1mb3JtYXQucGlwZVwiO1xyXG5cclxuQE5nTW9kdWxlKHtcclxuICAgIGltcG9ydHM6IFtdLFxyXG4gICAgZGVjbGFyYXRpb25zOiBbXHJcbiAgICAgICAgRGF0ZUZvcm1hdFBpcGUsXHJcbiAgICAgICAgRGF0ZVRpbWVGb3JtYXRQaXBlLFxyXG4gICAgICAgIFRpbWVGb3JtYXRQaXBlXHJcbiAgICBdLFxyXG4gICAgZXhwb3J0czogW1xyXG4gICAgICAgIERhdGVGb3JtYXRQaXBlLFxyXG4gICAgICAgIERhdGVUaW1lRm9ybWF0UGlwZSxcclxuICAgICAgICBUaW1lRm9ybWF0UGlwZVxyXG4gICAgXSxcclxuICAgIHByb3ZpZGVyczogW11cclxufSlcclxuZXhwb3J0IGNsYXNzIFN0RGF0ZUZvcm1hdE1vZHVsZSB7XHJcblxyXG59XHJcbiJdfQ==
@@ -1,9 +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
- import * as i3 from "./pipes/time-format.pipe";
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
- }