monkey-front-core 0.0.60 → 0.0.65

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.
@@ -374,31 +374,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
374
374
  }]
375
375
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
376
376
 
377
- class MonkeyEcxFormatDatePipe {
378
- transform(date, showTime = false, format) {
379
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
380
- return '';
381
- let stillUtc = moment$2.utc(date).toDate();
382
- if (date.indexOf(':') <= -1) {
383
- stillUtc = date;
384
- }
385
- if (!format) {
386
- format = 'HH:mm';
387
- }
388
- const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
389
- const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
390
- return `${moment$2(stillUtc, formatFrom).local().format(formatTo)}`;
391
- }
392
- }
393
- MonkeyEcxFormatDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
394
- MonkeyEcxFormatDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, name: "monkeyecxFormatDate" });
395
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, decorators: [{
396
- type: Pipe,
397
- args: [{
398
- name: 'monkeyecxFormatDate',
399
- }]
400
- }] });
401
-
402
377
  class MonkeyEcxFormatDocumentPipe {
403
378
  transform(document, withType) {
404
379
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
@@ -618,7 +593,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
618
593
  MonkeyEcxFormatAddressPipe,
619
594
  MonkeyEcxFormatCurrencyPipe,
620
595
  MonkeyEcxFormatDateTimelapsePipe,
621
- MonkeyEcxFormatDatePipe,
622
596
  MonkeyEcxFormatDateGroupPipe,
623
597
  MonkeyEcxFormatDocumentPipe,
624
598
  MonkeyEcxFormatNumberPipe,
@@ -632,7 +606,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
632
606
  MonkeyEcxFormatAddressPipe,
633
607
  MonkeyEcxFormatCurrencyPipe,
634
608
  MonkeyEcxFormatDateTimelapsePipe,
635
- MonkeyEcxFormatDatePipe,
636
609
  MonkeyEcxFormatDateGroupPipe,
637
610
  MonkeyEcxFormatDocumentPipe,
638
611
  MonkeyEcxFormatNumberPipe,
@@ -652,7 +625,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
652
625
  MonkeyEcxFormatAddressPipe,
653
626
  MonkeyEcxFormatCurrencyPipe,
654
627
  MonkeyEcxFormatDateTimelapsePipe,
655
- MonkeyEcxFormatDatePipe,
656
628
  MonkeyEcxFormatDateGroupPipe,
657
629
  MonkeyEcxFormatDocumentPipe,
658
630
  MonkeyEcxFormatNumberPipe,
@@ -669,7 +641,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
669
641
  MonkeyEcxFormatAddressPipe,
670
642
  MonkeyEcxFormatCurrencyPipe,
671
643
  MonkeyEcxFormatDateTimelapsePipe,
672
- MonkeyEcxFormatDatePipe,
673
644
  MonkeyEcxFormatDateGroupPipe,
674
645
  MonkeyEcxFormatDocumentPipe,
675
646
  MonkeyEcxFormatNumberPipe,
@@ -1408,7 +1379,7 @@ class Validators {
1408
1379
  return dateValidator(control);
1409
1380
  }
1410
1381
  static greaterThanZero(control) {
1411
- return dateValidator(control);
1382
+ return valueGreaterThanZero(control);
1412
1383
  }
1413
1384
  }
1414
1385
 
@@ -1493,7 +1464,7 @@ function MonkeyEcxCoreServicePaged(params) {
1493
1464
  requestPaged = credentials.requestPaged;
1494
1465
  }
1495
1466
  (_d = (_c = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _c === void 0 ? void 0 : _c.monkeyecxHandlingService) === null || _d === void 0 ? void 0 : _d.clearAll();
1496
- (_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxServiceCredentials(Object.assign(Object.assign({}, params), (requestPaged || null)));
1467
+ (_f = (_e = context === null || context === void 0 ? void 0 : context.monkeyecxService) === null || _e === void 0 ? void 0 : _e.monkeyecxHandlingService) === null || _f === void 0 ? void 0 : _f.setMonkeyEcxServiceCredentials(Object.assign(Object.assign({}, params), (requestPaged || {})));
1497
1468
  }
1498
1469
  const result = method.apply(context, args);
1499
1470
  return result;
@@ -2036,23 +2007,9 @@ class MonkeyEcxCommonsService {
2036
2007
  };
2037
2008
  }
2038
2009
  genericMethod(link, data, callback) {
2039
- var _a, _b, _c, _d, _e;
2010
+ var _a, _b;
2040
2011
  const { href, type = 'get' } = link;
2041
- let func = null;
2042
- const tp = `${type}`.toLowerCase();
2043
- if (tp === 'get') {
2044
- func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
2045
- }
2046
- else if (tp === 'post') {
2047
- func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
2048
- }
2049
- else if (tp === 'put') {
2050
- func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
2051
- }
2052
- else if (tp === 'delete') {
2053
- func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
2054
- }
2055
- (_e = func === null || func === void 0 ? void 0 : func(`${href}`, data)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
2012
+ (_b = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a[type.toLowerCase()](`${href}`, data)) === null || _b === void 0 ? void 0 : _b.subscribe(() => {
2056
2013
  if (callback)
2057
2014
  callback();
2058
2015
  }, (err) => {
@@ -2799,13 +2756,7 @@ class MonkeyEcxSecurityDirective {
2799
2756
  handleAccess() {
2800
2757
  const { roles, byExclusion } = this;
2801
2758
  let display = 'none';
2802
- console.log('roles');
2803
- console.log(roles);
2804
- console.log('this.getRole()');
2805
- console.log(this.getRole());
2806
- const found = (roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole())) || -1;
2807
- console.log('found');
2808
- console.log(found);
2759
+ const found = roles === null || roles === void 0 ? void 0 : roles.indexOf(this.getRole());
2809
2760
  if (byExclusion) {
2810
2761
  display = 'block';
2811
2762
  if (found > -1) {
@@ -4019,7 +3970,7 @@ class MonkeyEcxRequestScheduleService {
4019
3970
  return null;
4020
3971
  }
4021
3972
  return savedLocal;
4022
- })
3973
+ }),
4023
3974
  ].filter((_) => {
4024
3975
  return _;
4025
3976
  });
@@ -4036,30 +3987,15 @@ class MonkeyEcxRequestScheduleService {
4036
3987
  return null;
4037
3988
  }
4038
3989
  return savedLocal;
4039
- })
3990
+ }),
4040
3991
  ].filter((_) => {
4041
3992
  return _;
4042
3993
  });
4043
3994
  this.monkeyecxLoggedHandlingService.addSchedule(this.schedule);
4044
3995
  }
4045
3996
  doCall(sch) {
4046
- var _a, _b, _c, _d, _e;
4047
3997
  const { url, method, params, data, action } = sch;
4048
- let func = null;
4049
- const tp = `${method}`.toLowerCase();
4050
- if (tp === 'get') {
4051
- func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
4052
- }
4053
- else if (tp === 'post') {
4054
- func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
4055
- }
4056
- else if (tp === 'put') {
4057
- func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
4058
- }
4059
- else if (tp === 'delete') {
4060
- func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
4061
- }
4062
- (_e = func === null || func === void 0 ? void 0 : func(`${url}`, params)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
3998
+ this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4063
3999
  action(Object.assign(Object.assign({}, data), resp), sch);
4064
4000
  }, () => {
4065
4001
  this.removeFromSchedule(sch);
@@ -4091,17 +4027,17 @@ MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion
4091
4027
  __decorate([
4092
4028
  MonkeyEcxCoreService({
4093
4029
  httpResponse: {
4094
- httpCodeIgnore: [400, 403, 404, 500, 503]
4030
+ httpCodeIgnore: [400, 403, 404, 500, 503],
4095
4031
  },
4096
4032
  requestInProgress: {
4097
- showProgress: false
4098
- }
4033
+ showProgress: false,
4034
+ },
4099
4035
  })
4100
4036
  ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
4101
4037
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4102
4038
  type: Injectable,
4103
4039
  args: [{
4104
- providedIn: 'root'
4040
+ providedIn: 'root',
4105
4041
  }]
4106
4042
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxLoggedHandlingService }]; }, propDecorators: { doCall: [] } });
4107
4043
 
@@ -4255,5 +4191,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4255
4191
  * Generated bundle index. Do not edit.
4256
4192
  */
4257
4193
 
4258
- 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 };
4194
+ 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, 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 };
4259
4195
  //# sourceMappingURL=monkey-front-core.mjs.map