@osovitny/anatoly 2.14.49 → 2.14.51
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/base.page.mjs +31 -0
- package/esm2020/lib/ui/components/base.paged.page.mjs +65 -0
- package/esm2020/lib/ui/components/index.mjs +4 -1
- package/esm2020/lib/ui/components/nodata/nodata.component.mjs +3 -3
- package/fesm2015/osovitny-anatoly.mjs +149 -3
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +149 -3
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/base.list.d.ts +17 -0
- package/lib/ui/components/base.page.d.ts +6 -0
- package/lib/ui/components/base.paged.page.d.ts +17 -0
- package/lib/ui/components/index.d.ts +3 -0
- package/package.json +1 -1
|
@@ -3229,10 +3229,10 @@ class NodataComponent {
|
|
|
3229
3229
|
}
|
|
3230
3230
|
}
|
|
3231
3231
|
NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3232
|
-
NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { dataLoading: "dataLoading", dataLoaded: "dataLoaded", dataFound: "dataFound", icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class='loaded'
|
|
3232
|
+
NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { dataLoading: "dataLoading", dataLoaded: "dataLoaded", dataFound: "dataFound", icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\" *ngIf='dataLoaded && !dataFound'>\r\n <div class='loaded'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3233
3233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
|
|
3234
3234
|
type: Component,
|
|
3235
|
-
args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class='loaded'
|
|
3235
|
+
args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\" *ngIf='dataLoaded && !dataFound'>\r\n <div class='loaded'>\r\n <i class='{{icon}}'></i>\r\n <h2 class='{{headingClass}}'>{{heading}}</h2>\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n" }]
|
|
3236
3236
|
}], ctorParameters: function () { return []; }, propDecorators: { dataLoading: [{
|
|
3237
3237
|
type: Input
|
|
3238
3238
|
}], dataLoaded: [{
|
|
@@ -3394,6 +3394,152 @@ 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 = false) {
|
|
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
|
+
|
|
3457
|
+
/*
|
|
3458
|
+
<file>
|
|
3459
|
+
Project:
|
|
3460
|
+
@osovitny/anatoly
|
|
3461
|
+
|
|
3462
|
+
Authors:
|
|
3463
|
+
Vadim Osovitny
|
|
3464
|
+
Anatoly Osovitny
|
|
3465
|
+
|
|
3466
|
+
Created:
|
|
3467
|
+
20 Aug 2022
|
|
3468
|
+
|
|
3469
|
+
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
3470
|
+
</file>
|
|
3471
|
+
*/
|
|
3472
|
+
class BasePage extends BaseComponent {
|
|
3473
|
+
}
|
|
3474
|
+
BasePage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BasePage, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3475
|
+
BasePage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BasePage, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3476
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BasePage, decorators: [{
|
|
3477
|
+
type: Component,
|
|
3478
|
+
args: [{
|
|
3479
|
+
template: ''
|
|
3480
|
+
}]
|
|
3481
|
+
}] });
|
|
3482
|
+
|
|
3483
|
+
/*
|
|
3484
|
+
<file>
|
|
3485
|
+
Project:
|
|
3486
|
+
@osovitny/anatoly
|
|
3487
|
+
|
|
3488
|
+
Authors:
|
|
3489
|
+
Vadim Osovitny
|
|
3490
|
+
Anatoly Osovitny
|
|
3491
|
+
|
|
3492
|
+
Created:
|
|
3493
|
+
20 Aug 2022
|
|
3494
|
+
|
|
3495
|
+
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
3496
|
+
</file>
|
|
3497
|
+
*/
|
|
3498
|
+
class BasePagedPage extends BasePage {
|
|
3499
|
+
constructor() {
|
|
3500
|
+
super(...arguments);
|
|
3501
|
+
this.currentFilter = null;
|
|
3502
|
+
this.totalItems = 0;
|
|
3503
|
+
this.pageSize = 10;
|
|
3504
|
+
this.skipItems = 0;
|
|
3505
|
+
this.currentPage = 1;
|
|
3506
|
+
}
|
|
3507
|
+
loadPageOne() {
|
|
3508
|
+
this.skipItems = 0;
|
|
3509
|
+
this.currentPage = 1;
|
|
3510
|
+
if (this.loadPage) {
|
|
3511
|
+
this.loadPage();
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
setFilter(filter) {
|
|
3515
|
+
this.currentFilter = filter;
|
|
3516
|
+
this.loadPageOne();
|
|
3517
|
+
}
|
|
3518
|
+
reload(drop2pageOne = false) {
|
|
3519
|
+
if (drop2pageOne) {
|
|
3520
|
+
this.loadPageOne();
|
|
3521
|
+
}
|
|
3522
|
+
else {
|
|
3523
|
+
this.loadPage();
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
//Events
|
|
3527
|
+
onPageChange(e) {
|
|
3528
|
+
this.pageSize = e.take;
|
|
3529
|
+
this.skipItems = e.skip;
|
|
3530
|
+
this.currentPage = (this.skipItems / this.pageSize) + 1;
|
|
3531
|
+
this.loadPage();
|
|
3532
|
+
}
|
|
3533
|
+
}
|
|
3534
|
+
BasePagedPage.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BasePagedPage, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3535
|
+
BasePagedPage.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BasePagedPage, selector: "ng-component", usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BasePagedPage, decorators: [{
|
|
3537
|
+
type: Component,
|
|
3538
|
+
args: [{
|
|
3539
|
+
template: ''
|
|
3540
|
+
}]
|
|
3541
|
+
}] });
|
|
3542
|
+
|
|
3397
3543
|
/*
|
|
3398
3544
|
<file>
|
|
3399
3545
|
Project:
|
|
@@ -4423,5 +4569,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
4423
4569
|
* Generated bundle index. Do not edit.
|
|
4424
4570
|
*/
|
|
4425
4571
|
|
|
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 };
|
|
4572
|
+
export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BaseList, BasePage, BasePagedPage, 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
4573
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|