monkey-front-core 0.0.542 → 0.0.544
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-currency-code.mjs +30 -0
- package/esm2020/lib/core/pipes/monkeyecx-format-currency.mjs +2 -2
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +6 -1
- package/fesm2015/monkey-front-core.mjs +37 -2
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +34 -2
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/index.d.ts +1 -0
- package/lib/core/pipes/monkeyecx-currency-code.d.ts +9 -0
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +16 -15
- package/monkey-front-core-0.0.544.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.542.tgz +0 -0
|
@@ -950,7 +950,7 @@ class MonkeyEcxFormatCurrencyPipe {
|
|
|
950
950
|
return `${fmt}${symbol !== '' ? ` ${currency}` : ''}`;
|
|
951
951
|
}
|
|
952
952
|
if (currency === 'MXN') {
|
|
953
|
-
let fmt = this.currencyPipe.transform(value, '$', symbol, '
|
|
953
|
+
let fmt = this.currencyPipe.transform(value, '$', symbol, '', locale);
|
|
954
954
|
fmt = `${fmt}`.replace(/[^0-9,.]/g, '');
|
|
955
955
|
return `${fmt}${symbol !== '' ? ` ${currency}` : ''}`;
|
|
956
956
|
}
|
|
@@ -1832,6 +1832,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1832
1832
|
}]
|
|
1833
1833
|
}] });
|
|
1834
1834
|
|
|
1835
|
+
class MonkeyEcxCurrencyCodePipe {
|
|
1836
|
+
constructor(defaultCurencyCode) {
|
|
1837
|
+
this.defaultCurencyCode = defaultCurencyCode;
|
|
1838
|
+
// not to do
|
|
1839
|
+
}
|
|
1840
|
+
transform(value, type = 'symbol') {
|
|
1841
|
+
const currency = this.defaultCurencyCode?.toString() || 'BRL';
|
|
1842
|
+
const symbol = {
|
|
1843
|
+
BRL: 'R$',
|
|
1844
|
+
CLP: '$',
|
|
1845
|
+
MXN: '$',
|
|
1846
|
+
USD: '$'
|
|
1847
|
+
}[currency];
|
|
1848
|
+
return `${value} (${type === 'symbol' ? symbol : currency})`;
|
|
1849
|
+
}
|
|
1850
|
+
}
|
|
1851
|
+
MonkeyEcxCurrencyCodePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyCodePipe, deps: [{ token: DEFAULT_CURRENCY_CODE }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
1852
|
+
MonkeyEcxCurrencyCodePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyCodePipe, name: "monkeyecxCurrencyCode" });
|
|
1853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxCurrencyCodePipe, decorators: [{
|
|
1854
|
+
type: Pipe,
|
|
1855
|
+
args: [{
|
|
1856
|
+
name: 'monkeyecxCurrencyCode'
|
|
1857
|
+
}]
|
|
1858
|
+
}], ctorParameters: function () { return [{ type: i0.InjectionToken, decorators: [{
|
|
1859
|
+
type: Inject,
|
|
1860
|
+
args: [DEFAULT_CURRENCY_CODE]
|
|
1861
|
+
}] }]; } });
|
|
1862
|
+
|
|
1835
1863
|
class MonkeyEcxPipesModule {
|
|
1836
1864
|
}
|
|
1837
1865
|
MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
@@ -1842,6 +1870,7 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
1842
1870
|
MonkeyEcxFormatAddressPipe,
|
|
1843
1871
|
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1844
1872
|
MonkeyEcxFormatCurrencyPipe,
|
|
1873
|
+
MonkeyEcxCurrencyCodePipe,
|
|
1845
1874
|
MonkeyEcxFormatDateGroupPipe,
|
|
1846
1875
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
1847
1876
|
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
@@ -1862,6 +1891,7 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
|
|
|
1862
1891
|
MonkeyEcxFormatAddressPipe,
|
|
1863
1892
|
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1864
1893
|
MonkeyEcxFormatCurrencyPipe,
|
|
1894
|
+
MonkeyEcxCurrencyCodePipe,
|
|
1865
1895
|
MonkeyEcxFormatDateGroupPipe,
|
|
1866
1896
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
1867
1897
|
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
@@ -1888,6 +1918,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1888
1918
|
MonkeyEcxFormatAddressPipe,
|
|
1889
1919
|
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1890
1920
|
MonkeyEcxFormatCurrencyPipe,
|
|
1921
|
+
MonkeyEcxCurrencyCodePipe,
|
|
1891
1922
|
MonkeyEcxFormatDateGroupPipe,
|
|
1892
1923
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
1893
1924
|
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
@@ -1911,6 +1942,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1911
1942
|
MonkeyEcxFormatAddressPipe,
|
|
1912
1943
|
MonkeyEcxFormatBeaufityJSONPipe,
|
|
1913
1944
|
MonkeyEcxFormatCurrencyPipe,
|
|
1945
|
+
MonkeyEcxCurrencyCodePipe,
|
|
1914
1946
|
MonkeyEcxFormatDateGroupPipe,
|
|
1915
1947
|
MonkeyEcxFormatDateTimelapsePipe,
|
|
1916
1948
|
MonkeyEcxFormatDateUnixTimelapsePipe,
|
|
@@ -7043,5 +7075,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
7043
7075
|
* Generated bundle index. Do not edit.
|
|
7044
7076
|
*/
|
|
7045
7077
|
|
|
7046
|
-
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, LService, Link, MECX_ALPHA, MECX_BETA, MECX_DATE_FORMAT, MECX_ENV, MECX_LANG, 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, MonkeyEcxLoadingDirective, 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 };
|
|
7078
|
+
export { AlertsComponent, AlertsModule, ClosedToMaintenanceComponent, ClosedToMaintenanceModule, CurrencyConfigComponent, CurrencyConfigModule, decoratorsUtils as DecoratorsUtils, LService, Link, MECX_ALPHA, MECX_BETA, MECX_DATE_FORMAT, MECX_ENV, MECX_LANG, 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, MonkeyEcxCurrencyCodePipe, 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, MonkeyEcxLoadingDirective, 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 };
|
|
7047
7079
|
//# sourceMappingURL=monkey-front-core.mjs.map
|