monkey-front-core 0.0.50 → 0.0.54
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/interfaces/monkeyecx-config.mjs +1 -1
- package/esm2020/lib/core/interfaces/monkeyecx-token-credentials.mjs +1 -1
- package/esm2020/lib/core/pipes/index.mjs +2 -1
- package/esm2020/lib/core/pipes/monkeyecx-format-date-group.mjs +44 -0
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +9 -4
- package/esm2020/lib/core/services/monkeyecx-service.service.mjs +8 -8
- package/fesm2015/monkey-front-core.mjs +55 -11
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +55 -12
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-config.d.ts +19 -0
- package/lib/core/interfaces/monkeyecx-token-credentials.d.ts +1 -0
- package/lib/core/pipes/index.d.ts +1 -0
- package/lib/core/pipes/monkeyecx-format-date-group.d.ts +11 -0
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +11 -10
- package/monkey-front-core-0.0.54.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.50.tgz +0 -0
|
@@ -5,7 +5,7 @@ import { MonkeyButtonModule, MonkeyIconModule, MonkeyInputModule, MonkeyModalMod
|
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
6
6
|
import { formatNumber, CurrencyPipe, CommonModule } from '@angular/common';
|
|
7
7
|
import * as i1$1 from '@ngx-translate/core';
|
|
8
|
-
import {
|
|
8
|
+
import { TranslateService, TranslateModule } from '@ngx-translate/core';
|
|
9
9
|
import * as moment$2 from 'moment';
|
|
10
10
|
import * as i1$2 from 'ngx-cookie-service';
|
|
11
11
|
import * as i1$3 from '@angular/router';
|
|
@@ -569,6 +569,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
569
569
|
}]
|
|
570
570
|
}] });
|
|
571
571
|
|
|
572
|
+
class MonkeyEcxFormatDateGroupPipe {
|
|
573
|
+
constructor(injector) {
|
|
574
|
+
this.injector = injector;
|
|
575
|
+
this.lang = 'pt-BR';
|
|
576
|
+
const translateService = this.injector.get(TranslateService);
|
|
577
|
+
this.lang = translateService.getDefaultLang();
|
|
578
|
+
}
|
|
579
|
+
format(date) {
|
|
580
|
+
if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
|
|
581
|
+
return '';
|
|
582
|
+
let stillUtc = moment$2.utc(date).toDate();
|
|
583
|
+
if (date.toString()?.indexOf(':') <= -1) {
|
|
584
|
+
stillUtc = date;
|
|
585
|
+
}
|
|
586
|
+
const formatFrom = 'YYYY/MM/DD';
|
|
587
|
+
const fmt = moment$2(stillUtc, formatFrom).locale(this.lang);
|
|
588
|
+
const dayFormated = fmt.format('DD/');
|
|
589
|
+
const monthFormated = MonkeyEcxUtils.capitalize(fmt.format('MMMM'));
|
|
590
|
+
const yearFormated = fmt.format('YYYY');
|
|
591
|
+
return `${`${dayFormated}${monthFormated}`.substring(0, 6)}, ${yearFormated}`;
|
|
592
|
+
}
|
|
593
|
+
transform(obj) {
|
|
594
|
+
if (!obj || !obj?.start || !obj?.end)
|
|
595
|
+
return '';
|
|
596
|
+
const { start, end } = obj;
|
|
597
|
+
const formatedStart = this.format(start);
|
|
598
|
+
const formatedEnd = this.format(end);
|
|
599
|
+
return `${formatedStart} - ${formatedEnd}`;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
MonkeyEcxFormatDateGroupPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateGroupPipe, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
603
|
+
MonkeyEcxFormatDateGroupPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateGroupPipe, name: "monkeyecxFormatDateGroup" });
|
|
604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateGroupPipe, decorators: [{
|
|
605
|
+
type: Pipe,
|
|
606
|
+
args: [{
|
|
607
|
+
name: 'monkeyecxFormatDateGroup',
|
|
608
|
+
}]
|
|
609
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
610
|
+
|
|
572
611
|
class MonkeyEcxPipesModule {
|
|
573
612
|
}
|
|
574
613
|
MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -577,6 +616,7 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
577
616
|
MonkeyEcxFormatCurrencyPipe,
|
|
578
617
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
579
618
|
MonkeyEcxFormatDatePipe,
|
|
619
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
580
620
|
MonkeyEcxFormatDocumentPipe,
|
|
581
621
|
MonkeyEcxFormatNumberPipe,
|
|
582
622
|
MonkeyEcxFormatPhonePipe,
|
|
@@ -590,6 +630,7 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
590
630
|
MonkeyEcxFormatCurrencyPipe,
|
|
591
631
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
592
632
|
MonkeyEcxFormatDatePipe,
|
|
633
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
593
634
|
MonkeyEcxFormatDocumentPipe,
|
|
594
635
|
MonkeyEcxFormatNumberPipe,
|
|
595
636
|
MonkeyEcxFormatPhonePipe,
|
|
@@ -609,6 +650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
609
650
|
MonkeyEcxFormatCurrencyPipe,
|
|
610
651
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
611
652
|
MonkeyEcxFormatDatePipe,
|
|
653
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
612
654
|
MonkeyEcxFormatDocumentPipe,
|
|
613
655
|
MonkeyEcxFormatNumberPipe,
|
|
614
656
|
MonkeyEcxFormatPhonePipe,
|
|
@@ -617,7 +659,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
617
659
|
MonkeyEcxFormatValue,
|
|
618
660
|
MonkeyEcxFormatZipCodePipe,
|
|
619
661
|
MonkeyEcxTextTruncatePipe,
|
|
620
|
-
MonkeyEcxTruncateQtdPipe
|
|
662
|
+
MonkeyEcxTruncateQtdPipe,
|
|
621
663
|
],
|
|
622
664
|
exports: [
|
|
623
665
|
MonkeyEcxDisplayFirstNamePipe,
|
|
@@ -625,6 +667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
625
667
|
MonkeyEcxFormatCurrencyPipe,
|
|
626
668
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
627
669
|
MonkeyEcxFormatDatePipe,
|
|
670
|
+
MonkeyEcxFormatDateGroupPipe,
|
|
628
671
|
MonkeyEcxFormatDocumentPipe,
|
|
629
672
|
MonkeyEcxFormatNumberPipe,
|
|
630
673
|
MonkeyEcxFormatPhonePipe,
|
|
@@ -633,9 +676,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
633
676
|
MonkeyEcxFormatValue,
|
|
634
677
|
MonkeyEcxFormatZipCodePipe,
|
|
635
678
|
MonkeyEcxTextTruncatePipe,
|
|
636
|
-
MonkeyEcxTruncateQtdPipe
|
|
679
|
+
MonkeyEcxTruncateQtdPipe,
|
|
637
680
|
],
|
|
638
|
-
providers: [CurrencyPipe]
|
|
681
|
+
providers: [CurrencyPipe],
|
|
639
682
|
}]
|
|
640
683
|
}] });
|
|
641
684
|
|
|
@@ -2090,7 +2133,7 @@ class MonkeyEcxService {
|
|
|
2090
2133
|
'governmentIdType',
|
|
2091
2134
|
'governmentIdMask',
|
|
2092
2135
|
'screenType',
|
|
2093
|
-
'screenTab'
|
|
2136
|
+
'screenTab',
|
|
2094
2137
|
]) {
|
|
2095
2138
|
delete params[field];
|
|
2096
2139
|
}
|
|
@@ -2104,7 +2147,7 @@ class MonkeyEcxService {
|
|
|
2104
2147
|
}
|
|
2105
2148
|
put(url, params) {
|
|
2106
2149
|
return this.http.put(url, this.handlelize({
|
|
2107
|
-
...params
|
|
2150
|
+
...params,
|
|
2108
2151
|
}));
|
|
2109
2152
|
}
|
|
2110
2153
|
delete(url, params) {
|
|
@@ -2124,11 +2167,11 @@ class MonkeyEcxService {
|
|
|
2124
2167
|
.replace(new RegExp(/"/g), '');
|
|
2125
2168
|
}
|
|
2126
2169
|
const blob = new Blob([body], {
|
|
2127
|
-
type: `${contentType}
|
|
2170
|
+
type: `${contentType}`,
|
|
2128
2171
|
});
|
|
2129
2172
|
return {
|
|
2130
2173
|
filename,
|
|
2131
|
-
blob
|
|
2174
|
+
blob,
|
|
2132
2175
|
};
|
|
2133
2176
|
}, (err) => {
|
|
2134
2177
|
throwError(err);
|
|
@@ -2148,11 +2191,11 @@ class MonkeyEcxService {
|
|
|
2148
2191
|
.replace(new RegExp(/"/g), '');
|
|
2149
2192
|
}
|
|
2150
2193
|
const blob = new Blob([body], {
|
|
2151
|
-
type: `${contentType}
|
|
2194
|
+
type: `${contentType}`,
|
|
2152
2195
|
});
|
|
2153
2196
|
return {
|
|
2154
2197
|
filename,
|
|
2155
|
-
blob
|
|
2198
|
+
blob,
|
|
2156
2199
|
};
|
|
2157
2200
|
}), catchError((err) => {
|
|
2158
2201
|
return throwError(err);
|
|
@@ -2164,7 +2207,7 @@ MonkeyEcxService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", ver
|
|
|
2164
2207
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxService, decorators: [{
|
|
2165
2208
|
type: Injectable,
|
|
2166
2209
|
args: [{
|
|
2167
|
-
providedIn: 'root'
|
|
2210
|
+
providedIn: 'root',
|
|
2168
2211
|
}]
|
|
2169
2212
|
}], ctorParameters: function () { return [{ type: i1$4.HttpClient }, { type: MonkeyEcxHandlingService }]; } });
|
|
2170
2213
|
|
|
@@ -4234,5 +4277,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4234
4277
|
* Generated bundle index. Do not edit.
|
|
4235
4278
|
*/
|
|
4236
4279
|
|
|
4237
|
-
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
4280
|
+
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModuleModule, OpSearch, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
4238
4281
|
//# sourceMappingURL=monkey-front-core.mjs.map
|