monkey-front-core 0.0.485 → 0.0.487
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/pipes/index.mjs +2 -1
- package/esm2020/lib/core/pipes/monkeyecx-format-date.mjs +30 -0
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +10 -5
- package/esm2020/lib/core/services/config/monkeyecx-i18n-config.service.mjs +1 -2
- package/fesm2015/monkey-front-core.mjs +41 -10
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +39 -10
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/index.d.ts +1 -0
- package/lib/core/pipes/monkeyecx-format-date.d.ts +12 -0
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +2 -1
- package/monkey-front-core-0.0.487.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.485.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self,
|
|
2
|
+
import { Component, Input, NgModule, Pipe, ViewEncapsulation, Injectable, InjectionToken, Inject, EventEmitter, Directive, Output, HostBinding, HostListener, forwardRef, Self, Optional, inject, SkipSelf, NgZone, ErrorHandler } from '@angular/core';
|
|
3
3
|
import * as i1 from 'monkey-style-guide';
|
|
4
4
|
import { MonkeyButtonModule, MonkeyModalModule, MonkeyIconModule, MonkeyInputModule, MonkeyRadioButtonModule, MonkeyOptionModule, MonkeyUtils, MonkeyStyleGuideModule, MonkeyStyleGuideModalService, MonkeyStyleGuideSettingsService, MonkeyStyleGuideSnackbarService } from 'monkey-style-guide';
|
|
5
5
|
import * as i2 from '@angular/common';
|
|
@@ -788,6 +788,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
788
788
|
}]
|
|
789
789
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
|
|
790
790
|
|
|
791
|
+
const MECX_TIMEZONEOFFSET = new InjectionToken('');
|
|
792
|
+
const MECX_DATE_FORMAT = new InjectionToken('');
|
|
793
|
+
|
|
794
|
+
class MonkeyEcxFormatDatePipe {
|
|
795
|
+
constructor(dt, dateFormat, timezone) {
|
|
796
|
+
this.dt = dt;
|
|
797
|
+
this.dateFormat = dateFormat;
|
|
798
|
+
this.timezone = timezone;
|
|
799
|
+
// not to do
|
|
800
|
+
}
|
|
801
|
+
transform(date, format = this.dateFormat.toString()) {
|
|
802
|
+
return this.dt.transform(date, format, this.timezone.toString());
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
MonkeyEcxFormatDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, deps: [{ token: i2.DatePipe }, { token: MECX_DATE_FORMAT }, { token: MECX_TIMEZONEOFFSET }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
806
|
+
MonkeyEcxFormatDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, name: "monkeyecxFormatDate" });
|
|
807
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, decorators: [{
|
|
808
|
+
type: Pipe,
|
|
809
|
+
args: [{
|
|
810
|
+
name: 'monkeyecxFormatDate'
|
|
811
|
+
}]
|
|
812
|
+
}], ctorParameters: function () { return [{ type: i2.DatePipe }, { type: i0.InjectionToken, decorators: [{
|
|
813
|
+
type: Inject,
|
|
814
|
+
args: [MECX_DATE_FORMAT]
|
|
815
|
+
}] }, { type: i0.InjectionToken, decorators: [{
|
|
816
|
+
type: Inject,
|
|
817
|
+
args: [MECX_TIMEZONEOFFSET]
|
|
818
|
+
}] }]; } });
|
|
819
|
+
|
|
791
820
|
const moment$4 = moment_;
|
|
792
821
|
class MonkeyEcxFormatDateGroupPipe {
|
|
793
822
|
constructor(injector) {
|
|
@@ -1610,7 +1639,8 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
1610
1639
|
MonkeyEcxFormatValue,
|
|
1611
1640
|
MonkeyEcxFormatZipCodePipe,
|
|
1612
1641
|
MonkeyEcxTextTruncatePipe,
|
|
1613
|
-
MonkeyEcxTruncateQtdPipe
|
|
1642
|
+
MonkeyEcxTruncateQtdPipe,
|
|
1643
|
+
MonkeyEcxFormatDatePipe], exports: [MonkeyEcxBlobSecurePipe,
|
|
1614
1644
|
MonkeyEcxDisplayFirstNamePipe,
|
|
1615
1645
|
MonkeyEcxDisplayInitialsPipe,
|
|
1616
1646
|
MonkeyEcxDisplaySupportPhone,
|
|
@@ -1629,7 +1659,8 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
1629
1659
|
MonkeyEcxFormatValue,
|
|
1630
1660
|
MonkeyEcxFormatZipCodePipe,
|
|
1631
1661
|
MonkeyEcxTextTruncatePipe,
|
|
1632
|
-
MonkeyEcxTruncateQtdPipe
|
|
1662
|
+
MonkeyEcxTruncateQtdPipe,
|
|
1663
|
+
MonkeyEcxFormatDatePipe] });
|
|
1633
1664
|
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe] });
|
|
1634
1665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
1635
1666
|
type: NgModule,
|
|
@@ -1654,7 +1685,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1654
1685
|
MonkeyEcxFormatValue,
|
|
1655
1686
|
MonkeyEcxFormatZipCodePipe,
|
|
1656
1687
|
MonkeyEcxTextTruncatePipe,
|
|
1657
|
-
MonkeyEcxTruncateQtdPipe
|
|
1688
|
+
MonkeyEcxTruncateQtdPipe,
|
|
1689
|
+
MonkeyEcxFormatDatePipe
|
|
1658
1690
|
],
|
|
1659
1691
|
exports: [
|
|
1660
1692
|
MonkeyEcxBlobSecurePipe,
|
|
@@ -1676,7 +1708,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1676
1708
|
MonkeyEcxFormatValue,
|
|
1677
1709
|
MonkeyEcxFormatZipCodePipe,
|
|
1678
1710
|
MonkeyEcxTextTruncatePipe,
|
|
1679
|
-
MonkeyEcxTruncateQtdPipe
|
|
1711
|
+
MonkeyEcxTruncateQtdPipe,
|
|
1712
|
+
MonkeyEcxFormatDatePipe
|
|
1680
1713
|
],
|
|
1681
1714
|
providers: [CurrencyPipe]
|
|
1682
1715
|
}]
|
|
@@ -3529,7 +3562,6 @@ class MonkeyEcxi18nConfigService extends MonkeyEcxCommonsService {
|
|
|
3529
3562
|
async apply(environment) {
|
|
3530
3563
|
let lang = environment?.locale?.lang || 'pt-BR';
|
|
3531
3564
|
try {
|
|
3532
|
-
console.log(localStorage.getItem('me'));
|
|
3533
3565
|
const me = JSON.parse(localStorage.getItem('me') || '{}');
|
|
3534
3566
|
lang = me?.locale || lang;
|
|
3535
3567
|
}
|
|
@@ -6565,9 +6597,6 @@ class MonkeyEcxSpecificationSearch {
|
|
|
6565
6597
|
}
|
|
6566
6598
|
}
|
|
6567
6599
|
|
|
6568
|
-
const MECX_TIMEZONEOFFSET = new InjectionToken('');
|
|
6569
|
-
const MECX_DATE_FORMAT = new InjectionToken('');
|
|
6570
|
-
|
|
6571
6600
|
class MonkeyFrontCoreModule {
|
|
6572
6601
|
}
|
|
6573
6602
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -6628,5 +6657,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
6628
6657
|
* Generated bundle index. Do not edit.
|
|
6629
6658
|
*/
|
|
6630
6659
|
|
|
6631
|
-
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MECX_DATE_FORMAT, MECX_TIMEZONEOFFSET, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardByRole, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsActions, MonkeyEcxCommonsResolveBaseService, MonkeyEcxCommonsResolveService, MonkeyEcxCommonsSelectors, MonkeyEcxCommonsService, MonkeyEcxCommonsStoreBaseService, MonkeyEcxCommonsStoreService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxDisplaySupportPhone, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLinksModel, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, differentFromZero, documentValidator, documentValidatorByType, emailValidator, passwordConfirmValidator, registerValidator, requiredWithTrimValidator, index as store, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
6660
|
+
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, Link, MECX_DATE_FORMAT, MECX_TIMEZONEOFFSET, MonkeyEcxAlertsService, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardByRole, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxBlobSecurePipe, MonkeyEcxCommonsActions, MonkeyEcxCommonsResolveBaseService, MonkeyEcxCommonsResolveService, MonkeyEcxCommonsSelectors, MonkeyEcxCommonsService, MonkeyEcxCommonsStoreBaseService, MonkeyEcxCommonsStoreService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxCurrencyConfigService, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDisplayInitialsPipe, MonkeyEcxDisplaySupportPhone, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureByProgramDirective, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDatePipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLinksModel, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, differentFromZero, documentValidator, documentValidatorByType, emailValidator, passwordConfirmValidator, registerValidator, requiredWithTrimValidator, index as store, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
6632
6661
|
//# sourceMappingURL=monkey-front-core.mjs.map
|