@osovitny/anatoly 2.14.49 → 2.14.50
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/ui/components/base.list.mjs +65 -0
- package/esm2020/lib/ui/components/index.mjs +2 -1
- package/fesm2015/osovitny-anatoly.mjs +61 -1
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +61 -1
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/base.list.d.ts +17 -0
- package/lib/ui/components/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -3394,6 +3394,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
3394
3394
|
type: Input
|
|
3395
3395
|
}] } });
|
|
3396
3396
|
|
|
3397
|
+
/*
|
|
3398
|
+
<file>
|
|
3399
|
+
Project:
|
|
3400
|
+
@osovitny/anatoly
|
|
3401
|
+
|
|
3402
|
+
Authors:
|
|
3403
|
+
Vadim Osovitny
|
|
3404
|
+
Anatoly Osovitny
|
|
3405
|
+
|
|
3406
|
+
Created:
|
|
3407
|
+
20 Aug 2022
|
|
3408
|
+
|
|
3409
|
+
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
3410
|
+
</file>
|
|
3411
|
+
*/
|
|
3412
|
+
class BaseList extends BaseComponent {
|
|
3413
|
+
constructor() {
|
|
3414
|
+
super(...arguments);
|
|
3415
|
+
this.currentFilter = null;
|
|
3416
|
+
this.totalItems = 0;
|
|
3417
|
+
this.pageSize = 10;
|
|
3418
|
+
this.skipItems = 0;
|
|
3419
|
+
this.currentPage = 1;
|
|
3420
|
+
}
|
|
3421
|
+
loadPageOne() {
|
|
3422
|
+
this.skipItems = 0;
|
|
3423
|
+
this.currentPage = 1;
|
|
3424
|
+
if (this.loadPage) {
|
|
3425
|
+
this.loadPage();
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
setFilter(filter) {
|
|
3429
|
+
this.currentFilter = filter;
|
|
3430
|
+
this.loadPageOne();
|
|
3431
|
+
}
|
|
3432
|
+
reload(drop2pageOne = true) {
|
|
3433
|
+
if (drop2pageOne) {
|
|
3434
|
+
this.loadPageOne();
|
|
3435
|
+
}
|
|
3436
|
+
else {
|
|
3437
|
+
this.loadPage();
|
|
3438
|
+
}
|
|
3439
|
+
}
|
|
3440
|
+
//Events
|
|
3441
|
+
onPageChange(e) {
|
|
3442
|
+
this.pageSize = e.take;
|
|
3443
|
+
this.skipItems = e.skip;
|
|
3444
|
+
this.currentPage = (this.skipItems / this.pageSize) + 1;
|
|
3445
|
+
this.loadPage();
|
|
3446
|
+
}
|
|
3447
|
+
}
|
|
3448
|
+
BaseList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseList, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3449
|
+
BaseList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseList, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseList, decorators: [{
|
|
3451
|
+
type: Component,
|
|
3452
|
+
args: [{
|
|
3453
|
+
template: ''
|
|
3454
|
+
}]
|
|
3455
|
+
}] });
|
|
3456
|
+
|
|
3397
3457
|
/*
|
|
3398
3458
|
<file>
|
|
3399
3459
|
Project:
|
|
@@ -4423,5 +4483,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
4423
4483
|
* Generated bundle index. Do not edit.
|
|
4424
4484
|
*/
|
|
4425
4485
|
|
|
4426
|
-
export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, CoreApiService, DOM, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
4486
|
+
export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BaseList, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, CoreApiService, DOM, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
4427
4487
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|