monkey-front-core 0.0.62 → 0.0.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/core/decorators/monkeyecx-decorators.mjs +2 -2
- package/esm2020/lib/core/pipes/index.mjs +1 -2
- package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +3 -2
- package/esm2020/lib/core/pipes/monkeyecx-format-date-timelapse.mjs +7 -3
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +1 -6
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +2 -16
- package/esm2020/lib/core/services/schedules/monkeyecx-request-schedule.service.mjs +13 -27
- package/esm2020/lib/core/utils/validators.mjs +2 -2
- package/fesm2015/monkey-front-core.mjs +24 -77
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +28 -80
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/index.d.ts +0 -1
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +11 -12
- package/monkey-front-core-0.0.68.tgz +0 -0
- package/package.json +1 -1
- package/esm2020/lib/core/pipes/monkeyecx-format-date.mjs +0 -29
- package/lib/core/pipes/monkeyecx-format-date.d.ts +0 -7
- package/monkey-front-core-0.0.62.tgz +0 -0
|
@@ -2,7 +2,6 @@ export * from './monkeyecx-display-first-name';
|
|
|
2
2
|
export * from './monkeyecx-format-address';
|
|
3
3
|
export * from './monkeyecx-format-currency';
|
|
4
4
|
export * from './monkeyecx-format-date-timelapse';
|
|
5
|
-
export * from './monkeyecx-format-date';
|
|
6
5
|
export * from './monkeyecx-format-date-group';
|
|
7
6
|
export * from './monkeyecx-format-document';
|
|
8
7
|
export * from './monkeyecx-format-number';
|
|
@@ -3,19 +3,18 @@ import * as i1 from "./monkeyecx-display-first-name";
|
|
|
3
3
|
import * as i2 from "./monkeyecx-format-address";
|
|
4
4
|
import * as i3 from "./monkeyecx-format-currency";
|
|
5
5
|
import * as i4 from "./monkeyecx-format-date-timelapse";
|
|
6
|
-
import * as i5 from "./monkeyecx-format-date";
|
|
7
|
-
import * as i6 from "./monkeyecx-format-
|
|
8
|
-
import * as i7 from "./monkeyecx-format-
|
|
9
|
-
import * as i8 from "./monkeyecx-format-
|
|
10
|
-
import * as i9 from "./monkeyecx-format-
|
|
11
|
-
import * as i10 from "./monkeyecx-format-
|
|
12
|
-
import * as i11 from "./monkeyecx-format-
|
|
13
|
-
import * as i12 from "./monkeyecx-format-
|
|
14
|
-
import * as i13 from "./monkeyecx-
|
|
15
|
-
import * as i14 from "./monkeyecx-
|
|
16
|
-
import * as i15 from "./monkeyecx-truncate-qtd";
|
|
6
|
+
import * as i5 from "./monkeyecx-format-date-group";
|
|
7
|
+
import * as i6 from "./monkeyecx-format-document";
|
|
8
|
+
import * as i7 from "./monkeyecx-format-number";
|
|
9
|
+
import * as i8 from "./monkeyecx-format-phone";
|
|
10
|
+
import * as i9 from "./monkeyecx-format-size";
|
|
11
|
+
import * as i10 from "./monkeyecx-format-type-document";
|
|
12
|
+
import * as i11 from "./monkeyecx-format-value";
|
|
13
|
+
import * as i12 from "./monkeyecx-format-zipcode";
|
|
14
|
+
import * as i13 from "./monkeyecx-text-truncate";
|
|
15
|
+
import * as i14 from "./monkeyecx-truncate-qtd";
|
|
17
16
|
export declare class MonkeyEcxPipesModule {
|
|
18
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxPipesModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxPipesModule, [typeof i1.MonkeyEcxDisplayFirstNamePipe, typeof i2.MonkeyEcxFormatAddressPipe, typeof i3.MonkeyEcxFormatCurrencyPipe, typeof i4.MonkeyEcxFormatDateTimelapsePipe, typeof i5.
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MonkeyEcxPipesModule, [typeof i1.MonkeyEcxDisplayFirstNamePipe, typeof i2.MonkeyEcxFormatAddressPipe, typeof i3.MonkeyEcxFormatCurrencyPipe, typeof i4.MonkeyEcxFormatDateTimelapsePipe, typeof i5.MonkeyEcxFormatDateGroupPipe, typeof i6.MonkeyEcxFormatDocumentPipe, typeof i7.MonkeyEcxFormatNumberPipe, typeof i8.MonkeyEcxFormatPhonePipe, typeof i9.MonkeyEcxFormatSizePipe, typeof i10.MonkeyEcxFormatDocumentTypePipe, typeof i11.MonkeyEcxFormatValue, typeof i12.MonkeyEcxFormatZipCodePipe, typeof i13.MonkeyEcxTextTruncatePipe, typeof i14.MonkeyEcxTruncateQtdPipe], never, [typeof i1.MonkeyEcxDisplayFirstNamePipe, typeof i2.MonkeyEcxFormatAddressPipe, typeof i3.MonkeyEcxFormatCurrencyPipe, typeof i4.MonkeyEcxFormatDateTimelapsePipe, typeof i5.MonkeyEcxFormatDateGroupPipe, typeof i6.MonkeyEcxFormatDocumentPipe, typeof i7.MonkeyEcxFormatNumberPipe, typeof i8.MonkeyEcxFormatPhonePipe, typeof i9.MonkeyEcxFormatSizePipe, typeof i10.MonkeyEcxFormatDocumentTypePipe, typeof i11.MonkeyEcxFormatValue, typeof i12.MonkeyEcxFormatZipCodePipe, typeof i13.MonkeyEcxTextTruncatePipe, typeof i14.MonkeyEcxTruncateQtdPipe]>;
|
|
20
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<MonkeyEcxPipesModule>;
|
|
21
20
|
}
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import * as moment from 'moment';
|
|
3
|
-
import { MonkeyEcxUtils } from '../utils/utils';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export class MonkeyEcxFormatDatePipe {
|
|
6
|
-
transform(date, showTime = false, format) {
|
|
7
|
-
if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
|
|
8
|
-
return '';
|
|
9
|
-
let stillUtc = moment.utc(date).toDate();
|
|
10
|
-
if (date.indexOf(':') <= -1) {
|
|
11
|
-
stillUtc = date;
|
|
12
|
-
}
|
|
13
|
-
if (!format) {
|
|
14
|
-
format = 'HH:mm';
|
|
15
|
-
}
|
|
16
|
-
const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
|
|
17
|
-
const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
|
|
18
|
-
return `${moment(stillUtc, formatFrom).local().format(formatTo)}`;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
MonkeyEcxFormatDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
22
|
-
MonkeyEcxFormatDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, name: "monkeyecxFormatDate" });
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, decorators: [{
|
|
24
|
-
type: Pipe,
|
|
25
|
-
args: [{
|
|
26
|
-
name: 'monkeyecxFormatDate',
|
|
27
|
-
}]
|
|
28
|
-
}] });
|
|
29
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibW9ua2V5ZWN4LWZvcm1hdC1kYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbW9ua2V5LWZyb250LWNvcmUvc3JjL2xpYi9jb3JlL3BpcGVzL21vbmtleWVjeC1mb3JtYXQtZGF0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsSUFBSSxFQUFpQixNQUFNLGVBQWUsQ0FBQztBQUNwRCxPQUFPLEtBQUssTUFBT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HJldHVybiBgJHttb21lbnQoc3RpbGxVdGMsIGZvcm1hdEZyb20pLmxvY2FsKCkuZm9ybWF0KGZvcm1hdFRvKX1gO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MonkeyEcxFormatDatePipe implements PipeTransform {
|
|
4
|
-
transform(date: string, showTime?: boolean, format?: any): string;
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxFormatDatePipe, never>;
|
|
6
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<MonkeyEcxFormatDatePipe, "monkeyecxFormatDate">;
|
|
7
|
-
}
|
|
Binary file
|