@libs-ui/pipes-format-date 0.2.88 → 0.2.90
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.
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { Pipe
|
|
2
|
-
import {
|
|
1
|
+
import { Pipe } from '@angular/core';
|
|
2
|
+
import { formatDate } from '@libs-ui/utils';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export class LibsUiPipesFormatDatePipe {
|
|
5
|
-
formatDate = inject(FormatDateService);
|
|
6
5
|
transform(time, format = 'YYYY/MM/DD HH:mm', lang) {
|
|
7
|
-
return
|
|
6
|
+
return formatDate(time, format, lang);
|
|
8
7
|
}
|
|
9
8
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
10
9
|
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, isStandalone: true, name: "LibsUiPipesFormatDatePipe" });
|
|
@@ -16,4 +15,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
16
15
|
standalone: true
|
|
17
16
|
}]
|
|
18
17
|
}] });
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybWF0LWRhdGUucGlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMtdWkvcGlwZXMvZm9ybWF0LWRhdGUvc3JjL2Zvcm1hdC1kYXRlLnBpcGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLElBQUksRUFBaUIsTUFBTSxl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|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Pipe } from '@angular/core';
|
|
3
|
+
import { formatDate } from '@libs-ui/utils';
|
|
4
4
|
|
|
5
5
|
class LibsUiPipesFormatDatePipe {
|
|
6
|
-
formatDate = inject(FormatDateService);
|
|
7
6
|
transform(time, format = 'YYYY/MM/DD HH:mm', lang) {
|
|
8
|
-
return
|
|
7
|
+
return formatDate(time, format, lang);
|
|
9
8
|
}
|
|
10
9
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
11
10
|
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: LibsUiPipesFormatDatePipe, isStandalone: true, name: "LibsUiPipesFormatDatePipe" });
|
|
@@ -1 +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
|
|
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 } from '@angular/core';\nimport dayjs from 'dayjs';\nimport { formatDate } from '@libs-ui/utils';\n\n@Pipe({\n name: 'LibsUiPipesFormatDatePipe',\n standalone: true\n})\nexport class LibsUiPipesFormatDatePipe implements PipeTransform {\n transform(time: string | number | dayjs.Dayjs | undefined | null, format = 'YYYY/MM/DD HH:mm', lang?: string): string {\n return formatDate(time, format, lang);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAQa,yBAAyB,CAAA;AACpC,IAAA,SAAS,CAAC,IAAsD,EAAE,MAAM,GAAG,kBAAkB,EAAE,IAAa,EAAA;QAC1G,OAAO,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC;;wGAF5B,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;;;;"}
|
package/format-date.pipe.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { PipeTransform } from '@angular/core';
|
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LibsUiPipesFormatDatePipe implements PipeTransform {
|
|
5
|
-
private formatDate;
|
|
6
5
|
transform(time: string | number | dayjs.Dayjs | undefined | null, format?: string, lang?: string): string;
|
|
7
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<LibsUiPipesFormatDatePipe, never>;
|
|
8
7
|
static ɵpipe: i0.ɵɵPipeDeclaration<LibsUiPipesFormatDatePipe, "LibsUiPipesFormatDatePipe", true>;
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libs-ui/pipes-format-date",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.90",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "^18.2.0",
|
|
6
|
-
"@angular/core": "^18.2.0"
|
|
6
|
+
"@angular/core": "^18.2.0",
|
|
7
|
+
"dayjs": "1.11.5"
|
|
7
8
|
},
|
|
8
9
|
"sideEffects": false,
|
|
9
10
|
"module": "fesm2022/libs-ui-pipes-format-date.mjs",
|