monkey-front-core 0.0.61 → 0.0.66

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.
@@ -6,7 +6,7 @@ import * as i2 from '@angular/common';
6
6
  import { formatNumber, CurrencyPipe, CommonModule } from '@angular/common';
7
7
  import * as i1$1 from '@ngx-translate/core';
8
8
  import { TranslateService, TranslateModule } from '@ngx-translate/core';
9
- import * as moment$2 from 'moment';
9
+ import * as moment_ from 'moment';
10
10
  import * as i1$2 from 'ngx-cookie-service';
11
11
  import * as i1$3 from '@angular/router';
12
12
  import { NavigationStart, NavigationEnd, NavigationError, NavigationCancel } from '@angular/router';
@@ -240,13 +240,14 @@ class MonkeyEcxUtils {
240
240
  }
241
241
  }
242
242
 
243
+ const moment$3 = moment_;
243
244
  class MonkeyEcxFormatDateTimelapsePipe {
244
245
  transform(date, showTime = false, useUtc = true, format = '- HH:mm') {
245
246
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
246
247
  return '';
247
- let stillUtc = moment$2.utc(date).toDate();
248
+ let stillUtc = moment$3.utc(date).toDate();
248
249
  if (!useUtc)
249
- stillUtc = moment$2(date).toDate();
250
+ stillUtc = moment$3(date).toDate();
250
251
  if (date.toString().indexOf(':') <= -1) {
251
252
  if (typeof date === 'string') {
252
253
  stillUtc = date;
@@ -255,7 +256,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
255
256
  }
256
257
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
257
258
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
258
- return `${moment$2(stillUtc, formatFrom).format(formatTo)}`;
259
+ return `${moment$3(stillUtc, formatFrom).format(formatTo)}`;
259
260
  }
260
261
  }
261
262
  MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
@@ -263,7 +264,7 @@ MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12
263
264
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, decorators: [{
264
265
  type: Pipe,
265
266
  args: [{
266
- name: 'monkeyecxFormatDateTimelapse'
267
+ name: 'monkeyecxFormatDateTimelapse',
267
268
  }]
268
269
  }] });
269
270
 
@@ -374,31 +375,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
374
375
  }]
375
376
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
376
377
 
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
378
  class MonkeyEcxFormatDocumentPipe {
403
379
  transform(document, withType) {
404
380
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
@@ -571,6 +547,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
571
547
  }]
572
548
  }] });
573
549
 
550
+ const moment$2 = moment_;
574
551
  class MonkeyEcxFormatDateGroupPipe {
575
552
  constructor(injector) {
576
553
  this.injector = injector;
@@ -618,7 +595,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
618
595
  MonkeyEcxFormatAddressPipe,
619
596
  MonkeyEcxFormatCurrencyPipe,
620
597
  MonkeyEcxFormatDateTimelapsePipe,
621
- MonkeyEcxFormatDatePipe,
622
598
  MonkeyEcxFormatDateGroupPipe,
623
599
  MonkeyEcxFormatDocumentPipe,
624
600
  MonkeyEcxFormatNumberPipe,
@@ -632,7 +608,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
632
608
  MonkeyEcxFormatAddressPipe,
633
609
  MonkeyEcxFormatCurrencyPipe,
634
610
  MonkeyEcxFormatDateTimelapsePipe,
635
- MonkeyEcxFormatDatePipe,
636
611
  MonkeyEcxFormatDateGroupPipe,
637
612
  MonkeyEcxFormatDocumentPipe,
638
613
  MonkeyEcxFormatNumberPipe,
@@ -652,7 +627,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
652
627
  MonkeyEcxFormatAddressPipe,
653
628
  MonkeyEcxFormatCurrencyPipe,
654
629
  MonkeyEcxFormatDateTimelapsePipe,
655
- MonkeyEcxFormatDatePipe,
656
630
  MonkeyEcxFormatDateGroupPipe,
657
631
  MonkeyEcxFormatDocumentPipe,
658
632
  MonkeyEcxFormatNumberPipe,
@@ -669,7 +643,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
669
643
  MonkeyEcxFormatAddressPipe,
670
644
  MonkeyEcxFormatCurrencyPipe,
671
645
  MonkeyEcxFormatDateTimelapsePipe,
672
- MonkeyEcxFormatDatePipe,
673
646
  MonkeyEcxFormatDateGroupPipe,
674
647
  MonkeyEcxFormatDocumentPipe,
675
648
  MonkeyEcxFormatNumberPipe,
@@ -893,7 +866,7 @@ function MonkeyEcxCoreCharts(render = true) {
893
866
  }
894
867
 
895
868
  /* eslint-disable max-classes-per-file */
896
- const moment$1 = moment$2;
869
+ const moment$1 = moment_;
897
870
  class DateValidator {
898
871
  static do(control) {
899
872
  if (!control.parent || !control)
@@ -1205,7 +1178,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
1205
1178
  hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
1206
1179
  });
1207
1180
 
1208
- const moment = moment$2;
1181
+ const moment = moment_;
1209
1182
  const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
1210
1183
  function isEmptyInputValue(value) {
1211
1184
  return value == null || value.length === 0;
@@ -1408,7 +1381,7 @@ class Validators {
1408
1381
  return dateValidator(control);
1409
1382
  }
1410
1383
  static greaterThanZero(control) {
1411
- return dateValidator(control);
1384
+ return valueGreaterThanZero(control);
1412
1385
  }
1413
1386
  }
1414
1387
 
@@ -1493,7 +1466,7 @@ function MonkeyEcxCoreServicePaged(params) {
1493
1466
  requestPaged = credentials.requestPaged;
1494
1467
  }
1495
1468
  (_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)));
1469
+ (_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
1470
  }
1498
1471
  const result = method.apply(context, args);
1499
1472
  return result;
@@ -2036,23 +2009,9 @@ class MonkeyEcxCommonsService {
2036
2009
  };
2037
2010
  }
2038
2011
  genericMethod(link, data, callback) {
2039
- var _a, _b, _c, _d, _e;
2012
+ var _a, _b;
2040
2013
  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) => {
2014
+ (_b = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a[type.toLowerCase()](`${href}`, data)) === null || _b === void 0 ? void 0 : _b.subscribe(() => {
2056
2015
  if (callback)
2057
2016
  callback();
2058
2017
  }, (err) => {
@@ -4013,7 +3972,7 @@ class MonkeyEcxRequestScheduleService {
4013
3972
  return null;
4014
3973
  }
4015
3974
  return savedLocal;
4016
- })
3975
+ }),
4017
3976
  ].filter((_) => {
4018
3977
  return _;
4019
3978
  });
@@ -4030,30 +3989,15 @@ class MonkeyEcxRequestScheduleService {
4030
3989
  return null;
4031
3990
  }
4032
3991
  return savedLocal;
4033
- })
3992
+ }),
4034
3993
  ].filter((_) => {
4035
3994
  return _;
4036
3995
  });
4037
3996
  this.monkeyecxLoggedHandlingService.addSchedule(this.schedule);
4038
3997
  }
4039
3998
  doCall(sch) {
4040
- var _a, _b, _c, _d, _e;
4041
3999
  const { url, method, params, data, action } = sch;
4042
- let func = null;
4043
- const tp = `${method}`.toLowerCase();
4044
- if (tp === 'get') {
4045
- func = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a.get;
4046
- }
4047
- else if (tp === 'post') {
4048
- func = (_b = this.monkeyecxService) === null || _b === void 0 ? void 0 : _b.post;
4049
- }
4050
- else if (tp === 'put') {
4051
- func = (_c = this.monkeyecxService) === null || _c === void 0 ? void 0 : _c.put;
4052
- }
4053
- else if (tp === 'delete') {
4054
- func = (_d = this.monkeyecxService) === null || _d === void 0 ? void 0 : _d.delete;
4055
- }
4056
- (_e = func === null || func === void 0 ? void 0 : func(`${url}`, params)) === null || _e === void 0 ? void 0 : _e.subscribe((resp) => {
4000
+ this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4057
4001
  action(Object.assign(Object.assign({}, data), resp), sch);
4058
4002
  }, () => {
4059
4003
  this.removeFromSchedule(sch);
@@ -4085,17 +4029,17 @@ MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion
4085
4029
  __decorate([
4086
4030
  MonkeyEcxCoreService({
4087
4031
  httpResponse: {
4088
- httpCodeIgnore: [400, 403, 404, 500, 503]
4032
+ httpCodeIgnore: [400, 403, 404, 500, 503],
4089
4033
  },
4090
4034
  requestInProgress: {
4091
- showProgress: false
4092
- }
4035
+ showProgress: false,
4036
+ },
4093
4037
  })
4094
4038
  ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
4095
4039
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4096
4040
  type: Injectable,
4097
4041
  args: [{
4098
- providedIn: 'root'
4042
+ providedIn: 'root',
4099
4043
  }]
4100
4044
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxLoggedHandlingService }]; }, propDecorators: { doCall: [] } });
4101
4045
 
@@ -4249,5 +4193,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4249
4193
  * Generated bundle index. Do not edit.
4250
4194
  */
4251
4195
 
4252
- 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 };
4196
+ 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 };
4253
4197
  //# sourceMappingURL=monkey-front-core.mjs.map