monkey-front-core 0.0.161 → 0.0.164
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/interfaces/monkeyecx-request-paged.mjs +1 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +22 -1
- package/esm2020/lib/core/services/index.mjs +2 -1
- package/esm2020/lib/core/services/pagination/index.mjs +2 -0
- package/esm2020/lib/core/services/pagination/monkeyecx-pagination.service.mjs +24 -0
- package/fesm2015/monkey-front-core.mjs +42 -1
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +44 -1
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interfaces/monkeyecx-request-paged.d.ts +3 -0
- package/lib/core/services/commons/monkeyecx-commons.service.d.ts +7 -0
- package/lib/core/services/index.d.ts +1 -0
- package/lib/core/services/pagination/index.d.ts +1 -0
- package/lib/core/services/pagination/monkeyecx-pagination.service.d.ts +9 -0
- package/monkey-front-core-0.0.164.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.161.tgz +0 -0
|
@@ -2254,6 +2254,12 @@ class MonkeyEcxCommonsService {
|
|
|
2254
2254
|
});
|
|
2255
2255
|
}
|
|
2256
2256
|
}
|
|
2257
|
+
handlePaginationOptions(args) {
|
|
2258
|
+
const { service, callback } = args;
|
|
2259
|
+
service.setCallback((type) => {
|
|
2260
|
+
this.doPaginationv2.bind(this, type, callback);
|
|
2261
|
+
});
|
|
2262
|
+
}
|
|
2257
2263
|
setPage(requestPaged) {
|
|
2258
2264
|
this.__requestPaged = {
|
|
2259
2265
|
...this.__requestPaged,
|
|
@@ -2343,6 +2349,9 @@ class MonkeyEcxCommonsService {
|
|
|
2343
2349
|
if (otherArgs?.callbackPagination) {
|
|
2344
2350
|
this.__callbackPagination = otherArgs.callbackPagination;
|
|
2345
2351
|
}
|
|
2352
|
+
if (otherArgs?.paginationOptions) {
|
|
2353
|
+
this.handlePaginationOptions(otherArgs?.paginationOptions);
|
|
2354
|
+
}
|
|
2346
2355
|
if (otherArgs?.feature) {
|
|
2347
2356
|
const { flag, service } = otherArgs.feature;
|
|
2348
2357
|
service.onFlags
|
|
@@ -2412,6 +2421,18 @@ class MonkeyEcxCommonsService {
|
|
|
2412
2421
|
}
|
|
2413
2422
|
}
|
|
2414
2423
|
}
|
|
2424
|
+
doPaginationv2(type, callback) {
|
|
2425
|
+
if (!this.__onLoadingInProgress$.value) {
|
|
2426
|
+
const hasMorePages = this.setPage({
|
|
2427
|
+
page: {
|
|
2428
|
+
...this.__page
|
|
2429
|
+
}
|
|
2430
|
+
}).nextPage();
|
|
2431
|
+
if (hasMorePages && callback) {
|
|
2432
|
+
callback();
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
}
|
|
2415
2436
|
setSearchByUrl(router, url, search, extras) {
|
|
2416
2437
|
this.__data = null;
|
|
2417
2438
|
this.__page = null;
|
|
@@ -4266,6 +4287,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4266
4287
|
}]
|
|
4267
4288
|
}], ctorParameters: function () { return []; } });
|
|
4268
4289
|
|
|
4290
|
+
class MonkeyEcxPaginationService {
|
|
4291
|
+
constructor() {
|
|
4292
|
+
// not to do
|
|
4293
|
+
}
|
|
4294
|
+
setCallback(callback) {
|
|
4295
|
+
this.callback = callback;
|
|
4296
|
+
}
|
|
4297
|
+
execute(type) {
|
|
4298
|
+
const { callback } = this;
|
|
4299
|
+
if (callback)
|
|
4300
|
+
callback(type);
|
|
4301
|
+
}
|
|
4302
|
+
}
|
|
4303
|
+
MonkeyEcxPaginationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4304
|
+
MonkeyEcxPaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, providedIn: 'root' });
|
|
4305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: MonkeyEcxPaginationService, decorators: [{
|
|
4306
|
+
type: Injectable,
|
|
4307
|
+
args: [{
|
|
4308
|
+
providedIn: 'root'
|
|
4309
|
+
}]
|
|
4310
|
+
}], ctorParameters: function () { return []; } });
|
|
4311
|
+
|
|
4269
4312
|
class MonkeyEcxRequestDownloadHandlingService {
|
|
4270
4313
|
constructor() {
|
|
4271
4314
|
this.download = [];
|
|
@@ -4791,5 +4834,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
4791
4834
|
* Generated bundle index. Do not edit.
|
|
4792
4835
|
*/
|
|
4793
4836
|
|
|
4794
|
-
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 };
|
|
4837
|
+
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 };
|
|
4795
4838
|
//# sourceMappingURL=monkey-front-core.mjs.map
|