monkey-front-core 0.0.134 → 0.0.137

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.
@@ -585,6 +585,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
585
585
  }]
586
586
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
587
587
 
588
+ class MonkeyEcxFormatTaxPipe {
589
+ transform(tax, decimalDigits = 7) {
590
+ if (!tax)
591
+ return '';
592
+ const stringTax = tax.toString();
593
+ const stringTaxLimited = stringTax.slice(0, stringTax.indexOf('.') + decimalDigits + 1);
594
+ return Number(stringTaxLimited).toLocaleString('pt-br', {
595
+ maximumFractionDigits: decimalDigits,
596
+ });
597
+ }
598
+ }
599
+ MonkeyEcxFormatTaxPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
600
+ MonkeyEcxFormatTaxPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, name: "monkeyecxFormatTax" });
601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxFormatTaxPipe, decorators: [{
602
+ type: Pipe,
603
+ args: [{
604
+ name: 'monkeyecxFormatTax',
605
+ }]
606
+ }] });
607
+
588
608
  class MonkeyEcxPipesModule {
589
609
  }
590
610
  MonkeyEcxPipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MonkeyEcxPipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
@@ -597,6 +617,7 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
597
617
  MonkeyEcxFormatNumberPipe,
598
618
  MonkeyEcxFormatPhonePipe,
599
619
  MonkeyEcxFormatSizePipe,
620
+ MonkeyEcxFormatTaxPipe,
600
621
  MonkeyEcxFormatDocumentTypePipe,
601
622
  MonkeyEcxFormatValue,
602
623
  MonkeyEcxFormatZipCodePipe,
@@ -610,6 +631,7 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
610
631
  MonkeyEcxFormatNumberPipe,
611
632
  MonkeyEcxFormatPhonePipe,
612
633
  MonkeyEcxFormatSizePipe,
634
+ MonkeyEcxFormatTaxPipe,
613
635
  MonkeyEcxFormatDocumentTypePipe,
614
636
  MonkeyEcxFormatValue,
615
637
  MonkeyEcxFormatZipCodePipe,
@@ -629,6 +651,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
629
651
  MonkeyEcxFormatNumberPipe,
630
652
  MonkeyEcxFormatPhonePipe,
631
653
  MonkeyEcxFormatSizePipe,
654
+ MonkeyEcxFormatTaxPipe,
632
655
  MonkeyEcxFormatDocumentTypePipe,
633
656
  MonkeyEcxFormatValue,
634
657
  MonkeyEcxFormatZipCodePipe,
@@ -645,6 +668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
645
668
  MonkeyEcxFormatNumberPipe,
646
669
  MonkeyEcxFormatPhonePipe,
647
670
  MonkeyEcxFormatSizePipe,
671
+ MonkeyEcxFormatTaxPipe,
648
672
  MonkeyEcxFormatDocumentTypePipe,
649
673
  MonkeyEcxFormatValue,
650
674
  MonkeyEcxFormatZipCodePipe,
@@ -1742,12 +1766,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
1742
1766
  }] } });
1743
1767
 
1744
1768
  class MonkeyEcxRequestPagedHandling {
1745
- constructor(_url, _pagedParams, _links) {
1746
- this.url = _url;
1747
- this.pagedParams = _pagedParams || {
1769
+ constructor(url, pagedParams, links, samePage = false) {
1770
+ this.samePage = false;
1771
+ this.url = url;
1772
+ this.pagedParams = pagedParams || {
1748
1773
  page: {},
1749
1774
  };
1750
- this.links = _links;
1775
+ this.links = links;
1776
+ this.samePage = samePage;
1751
1777
  }
1752
1778
  handlePagedValuesFromApi(url = '') {
1753
1779
  if (url.search('\\?') < 0)
@@ -1768,7 +1794,10 @@ class MonkeyEcxRequestPagedHandling {
1768
1794
  return `${!hasInitialQueryParams ? '?' : '&'}page=${number || 0}&size=${size || 20}`;
1769
1795
  }
1770
1796
  getRequestWithPagedParams() {
1771
- const { url, links } = this;
1797
+ const { url, links, samePage } = this;
1798
+ if (samePage && links.self) {
1799
+ return links.self.href;
1800
+ }
1772
1801
  if (links && links.next) {
1773
1802
  return links.next.href;
1774
1803
  }
@@ -1944,9 +1973,9 @@ class MonkeyEcxCommonsService {
1944
1973
  const { _embedded } = data;
1945
1974
  return _embedded ? _embedded[field] : null;
1946
1975
  }
1947
- getNormalizedUrl(url) {
1976
+ getNormalizedUrl(url, samePage = false) {
1948
1977
  const { __requestPaged, __links } = this;
1949
- return new MonkeyEcxRequestPagedHandling(url, __requestPaged || {}, __links).getRequestWithPagedParams();
1978
+ return new MonkeyEcxRequestPagedHandling(url, __requestPaged || {}, __links, samePage).getRequestWithPagedParams();
1950
1979
  }
1951
1980
  clear(clearData) {
1952
1981
  if (clearData) {
@@ -2706,6 +2735,7 @@ class MonkeyEcxTokenStorageService {
2706
2735
  programType: '',
2707
2736
  accessType: '',
2708
2737
  role: '',
2738
+ ownerGovernmentId: '',
2709
2739
  _clearIgnore: {
2710
2740
  ignore: ['username', 'program', 'accessType'],
2711
2741
  },
@@ -4324,5 +4354,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
4324
4354
  * Generated bundle index. Do not edit.
4325
4355
  */
4326
4356
 
4327
- export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, 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, 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 };
4357
+ export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, 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, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, 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 };
4328
4358
  //# sourceMappingURL=monkey-front-core.mjs.map