monkey-front-core 0.0.163 → 0.0.166
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/services/commons/monkeyecx-commons.service.mjs +19 -7
- package/esm2020/lib/core/services/index.mjs +2 -1
- package/fesm2015/monkey-front-core.mjs +41 -7
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +41 -7
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +6 -0
- package/lib/core/services/index.d.ts +1 -0
- package/monkey-front-core-0.0.166.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.163.tgz +0 -0
|
@@ -2145,6 +2145,7 @@ class MonkeyEcxCommonsService {
|
|
|
2145
2145
|
// eslint-disable-next-line no-console
|
|
2146
2146
|
return console.error('Method callbackPagination needs to be declared');
|
|
2147
2147
|
};
|
|
2148
|
+
this.__isAbleToDoPagination = {};
|
|
2148
2149
|
this.handleInit();
|
|
2149
2150
|
}
|
|
2150
2151
|
handleInit() {
|
|
@@ -2254,11 +2255,14 @@ class MonkeyEcxCommonsService {
|
|
|
2254
2255
|
});
|
|
2255
2256
|
}
|
|
2256
2257
|
}
|
|
2257
|
-
handlePaginationOptions(
|
|
2258
|
-
const {
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2258
|
+
handlePaginationOptions() {
|
|
2259
|
+
const { __paginationOptions } = this;
|
|
2260
|
+
if (__paginationOptions) {
|
|
2261
|
+
const { service, callback } = __paginationOptions;
|
|
2262
|
+
service?.setCallback((type) => {
|
|
2263
|
+
this.doPaginationv2(type, callback);
|
|
2264
|
+
});
|
|
2265
|
+
}
|
|
2262
2266
|
}
|
|
2263
2267
|
setPage(requestPaged) {
|
|
2264
2268
|
this.__requestPaged = {
|
|
@@ -2350,7 +2354,8 @@ class MonkeyEcxCommonsService {
|
|
|
2350
2354
|
this.__callbackPagination = otherArgs.callbackPagination;
|
|
2351
2355
|
}
|
|
2352
2356
|
if (otherArgs?.paginationOptions) {
|
|
2353
|
-
this.
|
|
2357
|
+
this.__paginationOptions = otherArgs?.paginationOptions;
|
|
2358
|
+
this.handlePaginationOptions();
|
|
2354
2359
|
}
|
|
2355
2360
|
if (otherArgs?.feature) {
|
|
2356
2361
|
const { flag, service } = otherArgs.feature;
|
|
@@ -2433,6 +2438,13 @@ class MonkeyEcxCommonsService {
|
|
|
2433
2438
|
}
|
|
2434
2439
|
}
|
|
2435
2440
|
}
|
|
2441
|
+
setLinks(links) {
|
|
2442
|
+
this.__isAbleToDoPagination = {
|
|
2443
|
+
first: !!links?.first,
|
|
2444
|
+
next: !!links?.next
|
|
2445
|
+
};
|
|
2446
|
+
this.__links = links;
|
|
2447
|
+
}
|
|
2436
2448
|
setSearchByUrl(router, url, search, extras) {
|
|
2437
2449
|
this.__data = null;
|
|
2438
2450
|
this.__page = null;
|
|
@@ -4287,6 +4299,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4287
4299
|
}]
|
|
4288
4300
|
}], ctorParameters: function () { return []; } });
|
|
4289
4301
|
|
|
4302
|
+
class MonkeyEcxPaginationService {
|
|
4303
|
+
constructor() {
|
|
4304
|
+
// not to do
|
|
4305
|
+
}
|
|
4306
|
+
setCallback(callback) {
|
|
4307
|
+
this.callback = callback;
|
|
4308
|
+
}
|
|
4309
|
+
execute(type) {
|
|
4310
|
+
const { callback } = this;
|
|
4311
|
+
if (callback)
|
|
4312
|
+
callback(type);
|
|
4313
|
+
}
|
|
4314
|
+
}
|
|
4315
|
+
MonkeyEcxPaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4316
|
+
MonkeyEcxPaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, providedIn: 'root' });
|
|
4317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, decorators: [{
|
|
4318
|
+
type: Injectable,
|
|
4319
|
+
args: [{
|
|
4320
|
+
providedIn: 'root'
|
|
4321
|
+
}]
|
|
4322
|
+
}], ctorParameters: function () { return []; } });
|
|
4323
|
+
|
|
4290
4324
|
class MonkeyEcxRequestDownloadHandlingService {
|
|
4291
4325
|
constructor() {
|
|
4292
4326
|
this.download = [];
|
|
@@ -4812,5 +4846,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4812
4846
|
* Generated bundle index. Do not edit.
|
|
4813
4847
|
*/
|
|
4814
4848
|
|
|
4815
|
-
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
4849
|
+
export { ClosedToMaintenanceComponent, ClosedToMaintenanceModule, decoratorsUtils as DecoratorsUtils, Link, MonkeyEcxAuthGuard, MonkeyEcxAuthGuardCompany, MonkeyEcxAuthGuardLogin, MonkeyEcxAuthenticationService, MonkeyEcxCommonsService, MonkeyEcxConfigModule, MonkeyEcxConfigService, MonkeyEcxCookieStorageService, MonkeyEcxCoreCharts, MonkeyEcxCoreClearDecorators, MonkeyEcxCoreLog, MonkeyEcxCoreService, MonkeyEcxCoreServiceConstructor, MonkeyEcxCoreServicePaged, MonkeyEcxCoreServiceQueue, MonkeyEcxDirectivesModule, MonkeyEcxDiscoveryParamsService, MonkeyEcxDisplayFirstNamePipe, MonkeyEcxDragDropDirective, MonkeyEcxErrorConfigService, MonkeyEcxErrorHandlingModule, MonkeyEcxErrorHandlingService, MonkeyEcxFeatureDirective, MonkeyEcxFeatureToggleService, MonkeyEcxFormatAddressPipe, MonkeyEcxFormatBeaufityJSONPipe, MonkeyEcxFormatCurrency, MonkeyEcxFormatCurrencyPipe, MonkeyEcxFormatDateGroupPipe, MonkeyEcxFormatDateTimelapsePipe, MonkeyEcxFormatDateUnixTimelapsePipe, MonkeyEcxFormatDocumentPipe, MonkeyEcxFormatDocumentTypePipe, MonkeyEcxFormatNumberPipe, MonkeyEcxFormatPhonePipe, MonkeyEcxFormatSizePipe, MonkeyEcxFormatTaxPipe, MonkeyEcxFormatUpper, MonkeyEcxFormatValue, MonkeyEcxFormatZipCodePipe, MonkeyEcxHandlingService, MonkeyEcxHttpConfigErrorInterceptor, MonkeyEcxHttpConfigHeaderInterceptor, MonkeyEcxHttpConfigInterceptorModule, MonkeyEcxHttpConfigLoadingInProgressInterceptor, MonkeyEcxHttpConfigQueueInterceptor, MonkeyEcxHttpErrorHandlingService, MonkeyEcxLoggedHandlingService, MonkeyEcxLogsConfigService, MonkeyEcxMaintenanceConfigService, MonkeyEcxModel, MonkeyEcxOnlyAlphaNumericDirective, MonkeyEcxOnlyNumbersDirective, MonkeyEcxOthersErrorsHandlingService, MonkeyEcxPaginationService, MonkeyEcxPipesModule, MonkeyEcxPopoverDirective, MonkeyEcxPopoverOptionsDirective, MonkeyEcxProgressBarComponent, MonkeyEcxProgressBarModule, MonkeyEcxProgressBarService, MonkeyEcxRequestDownloadHandlingService, MonkeyEcxRequestDownloadedHandlingService, MonkeyEcxRequestPagedHandling, MonkeyEcxRequestQueueHandlingService, MonkeyEcxRequestQueueModalHandlingService, MonkeyEcxRequestScheduleService, MonkeyEcxSecurityConsoleConfigService, MonkeyEcxSecurityDirective, MonkeyEcxService, MonkeyEcxServiceDownload, MonkeyEcxServiceUpload, MonkeyEcxServiceWorkerConfigService, MonkeyEcxSpecificationSearch, MonkeyEcxTextTruncatePipe, MonkeyEcxTokenStorageService, MonkeyEcxTooltipDirective, MonkeyEcxTruncateQtdPipe, MonkeyEcxUtils, MonkeyEcxi18nConfigService, MonkeyFrontCoreModule, OpSearch, POPOVER_OPTIONS, statics as Statics, validateUtils as ValidateUtils, Validators, VersionChangedComponent, VersionChangedModule, comboValidator, dateRangeValidator, dateStartEndValidator, dateValidator, documentValidator, emailValidator, passwordConfirmValidator, registerValidator, trueValidator, urlValidator, valueGreaterThanZero, zipCodeValidator };
|
|
4816
4850
|
//# sourceMappingURL=monkey-front-core.mjs.map
|