monkey-front-core 0.0.59 → 0.0.64
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.
- package/esm2020/lib/core/directives/monkeyecx-security-directive.mjs +2 -6
- package/esm2020/lib/core/pipes/index.mjs +1 -2
- package/esm2020/lib/core/pipes/monkeyecx-pipes.module.mjs +1 -6
- package/esm2020/lib/core/utils/validators.mjs +2 -2
- package/fesm2015/monkey-front-core.mjs +3 -36
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +3 -36
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/pipes/index.d.ts +0 -1
- package/lib/core/pipes/monkeyecx-pipes.module.d.ts +11 -12
- package/monkey-front-core-0.0.64.tgz +0 -0
- package/package.json +1 -1
- package/esm2020/lib/core/pipes/monkeyecx-format-date.mjs +0 -29
- package/lib/core/pipes/monkeyecx-format-date.d.ts +0 -7
- package/monkey-front-core-0.0.59.tgz +0 -0
|
@@ -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
|
|
1371
|
+
return valueGreaterThanZero(control);
|
|
1401
1372
|
}
|
|
1402
1373
|
}
|
|
1403
1374
|
|
|
@@ -2793,11 +2764,7 @@ class MonkeyEcxSecurityDirective {
|
|
|
2793
2764
|
handleAccess() {
|
|
2794
2765
|
const { roles, byExclusion } = this;
|
|
2795
2766
|
let display = 'none';
|
|
2796
|
-
|
|
2797
|
-
console.log(roles);
|
|
2798
|
-
const found = roles?.indexOf(this.getRole()) || -1;
|
|
2799
|
-
console.log('found');
|
|
2800
|
-
console.log(found);
|
|
2767
|
+
const found = roles?.indexOf(this.getRole());
|
|
2801
2768
|
if (byExclusion) {
|
|
2802
2769
|
display = 'block';
|
|
2803
2770
|
if (found > -1) {
|
|
@@ -4290,5 +4257,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4290
4257
|
* Generated bundle index. Do not edit.
|
|
4291
4258
|
*/
|
|
4292
4259
|
|
|
4293
|
-
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,
|
|
4260
|
+
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 };
|
|
4294
4261
|
//# sourceMappingURL=monkey-front-core.mjs.map
|