monkey-front-core 0.0.62 → 0.0.68

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,17 @@ 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') {
246
+ console.log('moment');
247
+ console.log('11');
248
+ console.log(moment$3);
245
249
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(date))
246
250
  return '';
247
- let stillUtc = moment$2.utc(date).toDate();
251
+ let stillUtc = moment$3.utc(date).toDate();
248
252
  if (!useUtc)
249
- stillUtc = moment$2(date).toDate();
253
+ stillUtc = moment$3(date).toDate();
250
254
  if (date.toString().indexOf(':') <= -1) {
251
255
  if (typeof date === 'string') {
252
256
  stillUtc = date;
@@ -255,7 +259,7 @@ class MonkeyEcxFormatDateTimelapsePipe {
255
259
  }
256
260
  const formatFrom = `YYYY/MM/DD${showTime ? ` ${format}` : ''}`;
257
261
  const formatTo = `DD/MM/YYYY${showTime ? ` ${format}` : ''}`;
258
- return `${moment$2(stillUtc, formatFrom).format(formatTo)}`;
262
+ return `${moment$3(stillUtc, formatFrom).format(formatTo)}`;
259
263
  }
260
264
  }
261
265
  MonkeyEcxFormatDateTimelapsePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
@@ -263,7 +267,7 @@ MonkeyEcxFormatDateTimelapsePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12
263
267
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxFormatDateTimelapsePipe, decorators: [{
264
268
  type: Pipe,
265
269
  args: [{
266
- name: 'monkeyecxFormatDateTimelapse'
270
+ name: 'monkeyecxFormatDateTimelapse',
267
271
  }]
268
272
  }] });
269
273
 
@@ -374,31 +378,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
374
378
  }]
375
379
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i2.CurrencyPipe }]; } });
376
380
 
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
381
  class MonkeyEcxFormatDocumentPipe {
403
382
  transform(document, withType) {
404
383
  if (!MonkeyEcxUtils.persistNullEmptyUndefined(document))
@@ -571,6 +550,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
571
550
  }]
572
551
  }] });
573
552
 
553
+ const moment$2 = moment_;
574
554
  class MonkeyEcxFormatDateGroupPipe {
575
555
  constructor(injector) {
576
556
  this.injector = injector;
@@ -618,7 +598,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
618
598
  MonkeyEcxFormatAddressPipe,
619
599
  MonkeyEcxFormatCurrencyPipe,
620
600
  MonkeyEcxFormatDateTimelapsePipe,
621
- MonkeyEcxFormatDatePipe,
622
601
  MonkeyEcxFormatDateGroupPipe,
623
602
  MonkeyEcxFormatDocumentPipe,
624
603
  MonkeyEcxFormatNumberPipe,
@@ -632,7 +611,6 @@ MonkeyEcxPipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", ve
632
611
  MonkeyEcxFormatAddressPipe,
633
612
  MonkeyEcxFormatCurrencyPipe,
634
613
  MonkeyEcxFormatDateTimelapsePipe,
635
- MonkeyEcxFormatDatePipe,
636
614
  MonkeyEcxFormatDateGroupPipe,
637
615
  MonkeyEcxFormatDocumentPipe,
638
616
  MonkeyEcxFormatNumberPipe,
@@ -652,7 +630,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
652
630
  MonkeyEcxFormatAddressPipe,
653
631
  MonkeyEcxFormatCurrencyPipe,
654
632
  MonkeyEcxFormatDateTimelapsePipe,
655
- MonkeyEcxFormatDatePipe,
656
633
  MonkeyEcxFormatDateGroupPipe,
657
634
  MonkeyEcxFormatDocumentPipe,
658
635
  MonkeyEcxFormatNumberPipe,
@@ -669,7 +646,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
669
646
  MonkeyEcxFormatAddressPipe,
670
647
  MonkeyEcxFormatCurrencyPipe,
671
648
  MonkeyEcxFormatDateTimelapsePipe,
672
- MonkeyEcxFormatDatePipe,
673
649
  MonkeyEcxFormatDateGroupPipe,
674
650
  MonkeyEcxFormatDocumentPipe,
675
651
  MonkeyEcxFormatNumberPipe,
@@ -893,7 +869,7 @@ function MonkeyEcxCoreCharts(render = true) {
893
869
  }
894
870
 
895
871
  /* eslint-disable max-classes-per-file */
896
- const moment$1 = moment$2;
872
+ const moment$1 = moment_;
897
873
  class DateValidator {
898
874
  static do(control) {
899
875
  if (!control.parent || !control)
@@ -1205,7 +1181,7 @@ var decoratorsUtils = /*#__PURE__*/Object.freeze({
1205
1181
  hasMonkeyEcxServiceAndHandlingProperties: hasMonkeyEcxServiceAndHandlingProperties
1206
1182
  });
1207
1183
 
1208
- const moment = moment$2;
1184
+ const moment = moment_;
1209
1185
  const EMAIL_REGEXP = /^[\w-.]+@([\w-]+\.)+[\w-]{1,64}$/;
1210
1186
  function isEmptyInputValue(value) {
1211
1187
  return value == null || value.length === 0;
@@ -1408,7 +1384,7 @@ class Validators {
1408
1384
  return dateValidator(control);
1409
1385
  }
1410
1386
  static greaterThanZero(control) {
1411
- return dateValidator(control);
1387
+ return valueGreaterThanZero(control);
1412
1388
  }
1413
1389
  }
1414
1390
 
@@ -1493,7 +1469,7 @@ function MonkeyEcxCoreServicePaged(params) {
1493
1469
  requestPaged = credentials.requestPaged;
1494
1470
  }
1495
1471
  (_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)));
1472
+ (_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
1473
  }
1498
1474
  const result = method.apply(context, args);
1499
1475
  return result;
@@ -2036,23 +2012,9 @@ class MonkeyEcxCommonsService {
2036
2012
  };
2037
2013
  }
2038
2014
  genericMethod(link, data, callback) {
2039
- var _a, _b, _c, _d, _e;
2015
+ var _a, _b;
2040
2016
  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) => {
2017
+ (_b = (_a = this.monkeyecxService) === null || _a === void 0 ? void 0 : _a[type.toLowerCase()](`${href}`, data)) === null || _b === void 0 ? void 0 : _b.subscribe(() => {
2056
2018
  if (callback)
2057
2019
  callback();
2058
2020
  }, (err) => {
@@ -4013,7 +3975,7 @@ class MonkeyEcxRequestScheduleService {
4013
3975
  return null;
4014
3976
  }
4015
3977
  return savedLocal;
4016
- })
3978
+ }),
4017
3979
  ].filter((_) => {
4018
3980
  return _;
4019
3981
  });
@@ -4030,30 +3992,15 @@ class MonkeyEcxRequestScheduleService {
4030
3992
  return null;
4031
3993
  }
4032
3994
  return savedLocal;
4033
- })
3995
+ }),
4034
3996
  ].filter((_) => {
4035
3997
  return _;
4036
3998
  });
4037
3999
  this.monkeyecxLoggedHandlingService.addSchedule(this.schedule);
4038
4000
  }
4039
4001
  doCall(sch) {
4040
- var _a, _b, _c, _d, _e;
4041
4002
  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) => {
4003
+ this.monkeyecxService[method.toLowerCase()](`${url}`, params).subscribe((resp) => {
4057
4004
  action(Object.assign(Object.assign({}, data), resp), sch);
4058
4005
  }, () => {
4059
4006
  this.removeFromSchedule(sch);
@@ -4085,17 +4032,17 @@ MonkeyEcxRequestScheduleService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion
4085
4032
  __decorate([
4086
4033
  MonkeyEcxCoreService({
4087
4034
  httpResponse: {
4088
- httpCodeIgnore: [400, 403, 404, 500, 503]
4035
+ httpCodeIgnore: [400, 403, 404, 500, 503],
4089
4036
  },
4090
4037
  requestInProgress: {
4091
- showProgress: false
4092
- }
4038
+ showProgress: false,
4039
+ },
4093
4040
  })
4094
4041
  ], MonkeyEcxRequestScheduleService.prototype, "doCall", null);
4095
4042
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxRequestScheduleService, decorators: [{
4096
4043
  type: Injectable,
4097
4044
  args: [{
4098
- providedIn: 'root'
4045
+ providedIn: 'root',
4099
4046
  }]
4100
4047
  }], ctorParameters: function () { return [{ type: MonkeyEcxService }, { type: MonkeyEcxLoggedHandlingService }]; }, propDecorators: { doCall: [] } });
4101
4048
 
@@ -4249,5 +4196,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
4249
4196
  * Generated bundle index. Do not edit.
4250
4197
  */
4251
4198
 
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 };
4199
+ 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
4200
  //# sourceMappingURL=monkey-front-core.mjs.map