monkey-front-core 0.0.486 → 0.0.488
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 +13 -8
- package/fesm2015/monkey-front-core.mjs +44 -12
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +42 -12
- 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.488.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.486.tgz +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
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';
|
|
6
|
-
import { CommonModule, formatNumber, CurrencyPipe, registerLocaleData } from '@angular/common';
|
|
6
|
+
import { CommonModule, formatNumber, CurrencyPipe, DatePipe, registerLocaleData } from '@angular/common';
|
|
7
7
|
import * as i1$1 from '@ngx-translate/core';
|
|
8
8
|
import { TranslateModule, TranslateService } from '@ngx-translate/core';
|
|
9
9
|
import * as moment_ from 'moment';
|
|
@@ -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,8 +1659,9 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
1629
1659
|
MonkeyEcxFormatValue,
|
|
1630
1660
|
MonkeyEcxFormatZipCodePipe,
|
|
1631
1661
|
MonkeyEcxTextTruncatePipe,
|
|
1632
|
-
MonkeyEcxTruncateQtdPipe
|
|
1633
|
-
|
|
1662
|
+
MonkeyEcxTruncateQtdPipe,
|
|
1663
|
+
MonkeyEcxFormatDatePipe] });
|
|
1664
|
+
MonkeyEcxPipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, providers: [CurrencyPipe, DatePipe] });
|
|
1634
1665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, decorators: [{
|
|
1635
1666
|
type: NgModule,
|
|
1636
1667
|
args: [{
|
|
@@ -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,9 +1708,10 @@ 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
|
-
providers: [CurrencyPipe]
|
|
1714
|
+
providers: [CurrencyPipe, DatePipe]
|
|
1682
1715
|
}]
|
|
1683
1716
|
}] });
|
|
1684
1717
|
|
|
@@ -6564,9 +6597,6 @@ class MonkeyEcxSpecificationSearch {
|
|
|
6564
6597
|
}
|
|
6565
6598
|
}
|
|
6566
6599
|
|
|
6567
|
-
const MECX_TIMEZONEOFFSET = new InjectionToken('');
|
|
6568
|
-
const MECX_DATE_FORMAT = new InjectionToken('');
|
|
6569
|
-
|
|
6570
6600
|
class MonkeyFrontCoreModule {
|
|
6571
6601
|
}
|
|
6572
6602
|
MonkeyFrontCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyFrontCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -6627,5 +6657,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
6627
6657
|
* Generated bundle index. Do not edit.
|
|
6628
6658
|
*/
|
|
6629
6659
|
|
|
6630
|
-
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 };
|
|
6631
6661
|
//# sourceMappingURL=monkey-front-core.mjs.map
|