@libs-ui/pipes-format-date 0.2.43
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 +3 -0
- package/esm2022/format-date.pipe.mjs +19 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/libs-ui-pipes-format-date.mjs +5 -0
- package/fesm2022/libs-ui-pipes-format-date.mjs +26 -0
- package/fesm2022/libs-ui-pipes-format-date.mjs.map +1 -0
- package/format-date.pipe.d.ts +9 -0
- package/index.d.ts +1 -0
- package/package.json +25 -0
package/README.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Pipe, inject } from '@angular/core';
|
|
2
|
+
import { FormatDateService } from '@libs-ui/services-format-date';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export class LibsUiPipesFormatDatePipe {
|
|
5
|
+
formatDate = inject(FormatDateService);
|
|
6
|
+
transform(time, format = 'YYYY/MM/DD HH:mm', lang) {
|
|
7
|
+
return this.formatDate.transform(time, format, lang);
|
|
8
|
+
}
|
|
9
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, isStandalone: true, name: "LibsUiPipesFormatDatePipe" });
|
|
11
|
+
}
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, decorators: [{
|
|
13
|
+
type: Pipe,
|
|
14
|
+
args: [{
|
|
15
|
+
name: 'LibsUiPipesFormatDatePipe',
|
|
16
|
+
standalone: true
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9u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yxcbiAgc3RhbmRhbG9uZTogdHJ1ZVxufSlcbmV4cG9ydCBjbGFzcyBMaWJzVWlQaXBlc0Zvcm1hdERhdGVQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHByaXZhdGUgZm9ybWF0RGF0ZSA9IGluamVjdChGb3JtYXREYXRlU2VydmljZSk7XG5cbiAgdHJhbnNmb3JtKHRpbWU6IHN0cmluZyB8IG51bWJlciB8IGRheWpzLkRheWpzIHwgdW5kZWZpbmVkIHwgbnVsbCwgZm9ybWF0ID0gJ1lZWVkvTU0vREQgSEg6bW0nLCBsYW5nPzogc3RyaW5nKTogc3RyaW5nIHtcbiAgICByZXR1cm4gdGhpcy5mb3JtYXREYXRlLnRyYW5zZm9ybSh0aW1lLCBmb3JtYXQsIGxhbmcpO1xuICB9XG59XG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export * from './format-date.pipe';
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzLXVpL3BpcGVzL2Zvcm1hdC1kYXRlL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLG9CQUFvQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9mb3JtYXQtZGF0ZS5waXBlJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlicy11aS1waXBlcy1mb3JtYXQtZGF0ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMtdWkvcGlwZXMvZm9ybWF0LWRhdGUvc3JjL2xpYnMtdWktcGlwZXMtZm9ybWF0LWRhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLFNBQVMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9pbmRleCc7XG4iXX0=
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { inject, Pipe } from '@angular/core';
|
|
3
|
+
import { FormatDateService } from '@libs-ui/services-format-date';
|
|
4
|
+
|
|
5
|
+
class LibsUiPipesFormatDatePipe {
|
|
6
|
+
formatDate = inject(FormatDateService);
|
|
7
|
+
transform(time, format = 'YYYY/MM/DD HH:mm', lang) {
|
|
8
|
+
return this.formatDate.transform(time, format, lang);
|
|
9
|
+
}
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
11
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, isStandalone: true, name: "LibsUiPipesFormatDatePipe" });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, decorators: [{
|
|
14
|
+
type: Pipe,
|
|
15
|
+
args: [{
|
|
16
|
+
name: 'LibsUiPipesFormatDatePipe',
|
|
17
|
+
standalone: true
|
|
18
|
+
}]
|
|
19
|
+
}] });
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Generated bundle index. Do not edit.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
export { LibsUiPipesFormatDatePipe };
|
|
26
|
+
//# sourceMappingURL=libs-ui-pipes-format-date.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libs-ui-pipes-format-date.mjs","sources":["../../../../../libs-ui/pipes/format-date/src/format-date.pipe.ts","../../../../../libs-ui/pipes/format-date/src/libs-ui-pipes-format-date.ts"],"sourcesContent":["import { Pipe, PipeTransform, inject } from '@angular/core';\nimport * as dayjs from 'dayjs';\nimport { FormatDateService } from '@libs-ui/services-format-date';\n\n@Pipe({\n name: 'LibsUiPipesFormatDatePipe',\n standalone: true\n})\nexport class LibsUiPipesFormatDatePipe implements PipeTransform {\n private formatDate = inject(FormatDateService);\n\n transform(time: string | number | dayjs.Dayjs | undefined | null, format = 'YYYY/MM/DD HH:mm', lang?: string): string {\n return this.formatDate.transform(time, format, lang);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAQa,yBAAyB,CAAA;AAC5B,IAAA,UAAU,GAAG,MAAM,CAAC,iBAAiB,CAAC;AAE9C,IAAA,SAAS,CAAC,IAAsD,EAAE,MAAM,GAAG,kBAAkB,EAAE,IAAa,EAAA;AAC1G,QAAA,OAAO,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC;;wGAJ3C,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA;sGAAzB,yBAAyB,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,2BAAA,EAAA,CAAA;;4FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAJrC,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,2BAA2B;AACjC,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACPD;;AAEG;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as dayjs from 'dayjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class LibsUiPipesFormatDatePipe implements PipeTransform {
|
|
5
|
+
private formatDate;
|
|
6
|
+
transform(time: string | number | dayjs.Dayjs | undefined | null, format?: string, lang?: string): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiPipesFormatDatePipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LibsUiPipesFormatDatePipe, "LibsUiPipesFormatDatePipe", true>;
|
|
9
|
+
}
|
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './format-date.pipe';
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@libs-ui/pipes-format-date",
|
|
3
|
+
"version": "0.2.43",
|
|
4
|
+
"peerDependencies": {
|
|
5
|
+
"@angular/common": "^18.2.0",
|
|
6
|
+
"@angular/core": "^18.2.0"
|
|
7
|
+
},
|
|
8
|
+
"sideEffects": false,
|
|
9
|
+
"module": "fesm2022/libs-ui-pipes-format-date.mjs",
|
|
10
|
+
"typings": "index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
"./package.json": {
|
|
13
|
+
"default": "./package.json"
|
|
14
|
+
},
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./index.d.ts",
|
|
17
|
+
"esm2022": "./esm2022/libs-ui-pipes-format-date.mjs",
|
|
18
|
+
"esm": "./esm2022/libs-ui-pipes-format-date.mjs",
|
|
19
|
+
"default": "./fesm2022/libs-ui-pipes-format-date.mjs"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"tslib": "^2.3.0"
|
|
24
|
+
}
|
|
25
|
+
}
|