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.
@@ -372,31 +372,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
372
372
  }]
373
373
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
374
374
 
375
- class MonkeyEcxFormatDatePipe {
376
- transform(date, showTime = false, format) {
377
- if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
378
- return '';
379
- let stillUtc = moment$2.utc(date).toDate();
380
- if (date.indexOf(':') <= -1) {
381
- stillUtc = date;
382
- }
383
- if (!format) {
384
- format = 'HH:mm';
385
- }
386
- const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
387
- const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
388
- return `${moment$2(stillUtc, formatFrom).local().format(formatTo)}`;
389
- }
390
- }
391
- MonkeyEcxFormatDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
392
- MonkeyEcxFormatDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, name: "monkeyecxFormatDate" });
393
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDatePipe, decorators: [{
394
- type: Pipe,
395
- args: [{
396
- name: 'monkeyecxFormatDate',
397
- }]
398
- }] });
399
-
400
375
  class MonkeyEcxFormatDocumentPipe {
401
376
  transform(document, withType) {
402
377
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
@@ -615,7 +590,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
615
590
  MonkeyEcxFormatAddressPipe,
616
591
  MonkeyEcxFormatCurrencyPipe,
617
592
  MonkeyEcxFormatDateTimelapsePipe,
618
- MonkeyEcxFormatDatePipe,
619
593
  MonkeyEcxFormatDateGroupPipe,
620
594
  MonkeyEcxFormatDocumentPipe,
621
595
  MonkeyEcxFormatNumberPipe,
@@ -629,7 +603,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
629
603
  MonkeyEcxFormatAddressPipe,
630
604
  MonkeyEcxFormatCurrencyPipe,
631
605
  MonkeyEcxFormatDateTimelapsePipe,
632
- MonkeyEcxFormatDatePipe,
633
606
  MonkeyEcxFormatDateGroupPipe,
634
607
  MonkeyEcxFormatDocumentPipe,
635
608
  MonkeyEcxFormatNumberPipe,
@@ -649,7 +622,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
649
622
  MonkeyEcxFormatAddressPipe,
650
623
  MonkeyEcxFormatCurrencyPipe,
651
624
  MonkeyEcxFormatDateTimelapsePipe,
652
- MonkeyEcxFormatDatePipe,
653
625
  MonkeyEcxFormatDateGroupPipe,
654
626
  MonkeyEcxFormatDocumentPipe,
655
627
  MonkeyEcxFormatNumberPipe,
@@ -666,7 +638,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
666
638
  MonkeyEcxFormatAddressPipe,
667
639
  MonkeyEcxFormatCurrencyPipe,
668
640
  MonkeyEcxFormatDateTimelapsePipe,
669
- MonkeyEcxFormatDatePipe,
670
641
  MonkeyEcxFormatDateGroupPipe,
671
642
  MonkeyEcxFormatDocumentPipe,
672
643
  MonkeyEcxFormatNumberPipe,
@@ -1397,7 +1368,7 @@ class Validators {
1397
1368
  return dateValidator(control);
1398
1369
  }
1399
1370
  static greaterThanZero(control) {
1400
- return dateValidator(control);
1371
+ return valueGreaterThanZero(control);
1401
1372
  }
1402
1373
  }
1403
1374
 
@@ -1481,7 +1452,7 @@ function MonkeyEcxCoreServicePaged(params) {
1481
1452
  context?.monkeyecxService?.monkeyecxHandlingService?.clearAll();
1482
1453
  context?.monkeyecxService?.monkeyecxHandlingService?.setMonkeyEcxServiceCredentials({
1483
1454
  ...params,
1484
- ...(requestPaged || null),
1455
+ ...(requestPaged || {}),
1485
1456
  });
1486
1457
  }
1487
1458
  const result = method.apply(context, args);
@@ -2029,21 +2000,7 @@ class MonkeyEcxCommonsService {
2029
2000
  }
2030
2001
  genericMethod(link, data, callback) {
2031
2002
  const { href, type = 'get' } = link;
2032
- let func = null;
2033
- const tp = `${type}`.toLowerCase();
2034
- if (tp === 'get') {
2035
- func = this.monkeyecxService?.get;
2036
- }
2037
- else if (tp === 'post') {
2038
- func = this.monkeyecxService?.post;
2039
- }
2040
- else if (tp === 'put') {
2041
- func = this.monkeyecxService?.put;
2042
- }
2043
- else if (tp === 'delete') {
2044
- func = this.monkeyecxService?.delete;
2045
- }
2046
- func?.(`${href}`, data)?.subscribe((resp) => {
2003
+ this.monkeyecxService?.[type.toLowerCase()](`${href}`, data)?.subscribe(() => {
2047
2004
  if (callback)
2048
2005
  callback();
2049
2006
  }, (err) => {
@@ -2793,13 +2750,7 @@ class MonkeyEcxSecurityDirective {
2793
2750
  handleAccess() {
2794
2751
  const { roles, byExclusion } = this;
2795
2752
  let display = 'none';
2796
- console.log('roles');
2797
- console.log(roles);
2798
- console.log('this.getRole()');
2799
- console.log(this.getRole());
2800
- const found = roles?.indexOf(this.getRole()) || -1;
2801
- console.log('found');
2802
- console.log(found);
2753
+ const found = roles?.indexOf(this.getRole());
2803
2754
  if (byExclusion) {
2804
2755
  display = 'block';
2805
2756
  if (found > -1) {
@@ -4040,13 +3991,13 @@ class MonkeyEcxRequestScheduleService {
4040
3991
  this.schedule = [
4041
3992
  ...saved.map((sch) => {
4042
3993
  const savedLocal = {
4043
- ...sch
3994
+ ...sch,
4044
3995
  };
4045
3996
  if (sch.id === q.id) {
4046
3997
  return null;
4047
3998
  }
4048
3999
  return savedLocal;
4049
- })
4000
+ }),
4050
4001
  ].filter((_) => {
4051
4002
  return _;
4052
4003
  });
@@ -4059,13 +4010,13 @@ class MonkeyEcxRequestScheduleService {
4059
4010
  this.schedule = [
4060
4011
  ...saved.map((sch) => {
4061
4012
  const savedLocal = {
4062
- ...sch
4013
+ ...sch,
4063
4014
  };
4064
4015
  if (sch.id === q.id) {
4065
4016
  return null;
4066
4017
  }
4067
4018
  return savedLocal;
4068
- })
4019
+ }),
4069
4020
  ].filter((_) => {
4070
4021
  return _;
4071
4022
  });
@@ -4073,24 +4024,10 @@ class MonkeyEcxRequestScheduleService {
4073
4024
  }
4074
4025
  doCall(sch) {
4075
4026
  const { url, method, params, data, action } = sch;
4076
- let func = null;
4077
- const tp = `${method}`.toLowerCase();
4078
- if (tp === 'get') {
4079
- func = this.monkeyecxService?.get;
4080
- }
4081
- else if (tp === 'post') {
4082
- func = this.monkeyecxService?.post;
4083
- }
4084
- else if (tp === 'put') {
4085
- func = this.monkeyecxService?.put;
4086
- }
4087
- else if (tp === 'delete') {
4088
- func = this.monkeyecxService?.delete;
4089
- }
4090
- func?.(`${url}`, params)?.subscribe((resp) => {
4027
+ this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4091
4028
  action({
4092
4029
  ...data,
4093
- ...resp
4030
+ ...resp,
4094
4031
  }, sch);
4095
4032
  }, () => {
4096
4033
  this.removeFromSchedule(sch);
@@ -4100,13 +4037,13 @@ class MonkeyEcxRequestScheduleService {
4100
4037
  const interval = setInterval(() => {
4101
4038
  this.doCall({
4102
4039
  ...q,
4103
- interval
4040
+ interval,
4104
4041
  });
4105
4042
  }, delay);
4106
4043
  const sch = {
4107
4044
  ...q,
4108
4045
  id: `${MonkeyEcxUtils.getRandomString(40)}`,
4109
- interval
4046
+ interval,
4110
4047
  };
4111
4048
  this.addToSchedule(sch);
4112
4049
  return sch;
@@ -4129,17 +4066,17 @@ MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion
4129
4066
  __decorate([
4130
4067
  MonkeyEcxCoreService({
4131
4068
  httpResponse: {
4132
- httpCodeIgnore: [400, 403, 404, 500, 503]
4069
+ httpCodeIgnore: [400, 403, 404, 500, 503],
4133
4070
  },
4134
4071
  requestInProgress: {
4135
- showProgress: false
4136
- }
4072
+ showProgress: false,
4073
+ },
4137
4074
  })
4138
4075
  ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
4139
4076
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4140
4077
  type: Injectable,
4141
4078
  args: [{
4142
- providedIn: 'root'
4079
+ providedIn: 'root',
4143
4080
  }]
4144
4081
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxLoggedHandlingService }]; }, propDecorators: { doCall: [] } });
4145
4082
 
@@ -4292,5 +4229,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4292
4229
  * Generated bundle index. Do not edit.
4293
4230
  */
4294
4231
 
4295
- 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 };
4232
+ 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 };
4296
4233
  //# sourceMappingURL=monkey-front-core.mjs.map