@osovitny/anatoly 2.14.68 → 2.14.70
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/base.component.mjs +11 -3
- package/esm2020/lib/ui/components/base/base.list.mjs +4 -11
- package/esm2020/lib/ui/components/base/base.paged.page.mjs +1 -9
- package/fesm2015/osovitny-anatoly.mjs +13 -20
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +13 -20
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/base/base.component.d.ts +3 -1
- package/lib/ui/components/base/base.list.d.ts +2 -4
- package/lib/ui/components/base/base.paged.page.d.ts +0 -2
- package/package.json +1 -1
|
@@ -2633,6 +2633,9 @@ class BaseComponent {
|
|
|
2633
2633
|
this.dataLoaded = false;
|
|
2634
2634
|
this.dataFound = false;
|
|
2635
2635
|
}
|
|
2636
|
+
ngOnDestroy() {
|
|
2637
|
+
this.subs.unsubscribe();
|
|
2638
|
+
}
|
|
2636
2639
|
getEntityId() {
|
|
2637
2640
|
return this.getValueByNameInQS("id");
|
|
2638
2641
|
}
|
|
@@ -2642,8 +2645,13 @@ class BaseComponent {
|
|
|
2642
2645
|
return null;
|
|
2643
2646
|
return value;
|
|
2644
2647
|
}
|
|
2645
|
-
|
|
2646
|
-
this.
|
|
2648
|
+
dataLoadedAndNothingFound() {
|
|
2649
|
+
this.dataLoadedAndFound(false);
|
|
2650
|
+
}
|
|
2651
|
+
dataLoadedAndFound(found) {
|
|
2652
|
+
this.dataLoading = false;
|
|
2653
|
+
this.dataLoaded = true;
|
|
2654
|
+
this.dataFound = found;
|
|
2647
2655
|
}
|
|
2648
2656
|
}
|
|
2649
2657
|
BaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -3436,6 +3444,7 @@ class BaseList extends BaseComponent {
|
|
|
3436
3444
|
this.pageSize = 10;
|
|
3437
3445
|
this.skipItems = 0;
|
|
3438
3446
|
this.currentPage = 1;
|
|
3447
|
+
this.showNoDataIfNoDataFound = true;
|
|
3439
3448
|
}
|
|
3440
3449
|
loadPageOne() {
|
|
3441
3450
|
this.skipItems = 0;
|
|
@@ -3454,14 +3463,6 @@ class BaseList extends BaseComponent {
|
|
|
3454
3463
|
this.currentFilter = filter;
|
|
3455
3464
|
this.loadPageOne();
|
|
3456
3465
|
}
|
|
3457
|
-
dataLoadedAndNothingFound() {
|
|
3458
|
-
this.dataLoadedAndFound(false);
|
|
3459
|
-
}
|
|
3460
|
-
dataLoadedAndFound(found) {
|
|
3461
|
-
this.dataLoading = false;
|
|
3462
|
-
this.dataLoaded = true;
|
|
3463
|
-
this.dataFound = found;
|
|
3464
|
-
}
|
|
3465
3466
|
//Events
|
|
3466
3467
|
onPageChange(e) {
|
|
3467
3468
|
this.pageSize = e.take;
|
|
@@ -3471,13 +3472,13 @@ class BaseList extends BaseComponent {
|
|
|
3471
3472
|
}
|
|
3472
3473
|
}
|
|
3473
3474
|
BaseList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseList, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3474
|
-
BaseList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseList, selector: "ng-component", inputs: {
|
|
3475
|
+
BaseList.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: BaseList, selector: "ng-component", inputs: { showNoDataIfNoDataFound: "showNoDataIfNoDataFound" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
3475
3476
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: BaseList, decorators: [{
|
|
3476
3477
|
type: Component,
|
|
3477
3478
|
args: [{
|
|
3478
3479
|
template: ''
|
|
3479
3480
|
}]
|
|
3480
|
-
}], propDecorators: {
|
|
3481
|
+
}], propDecorators: { showNoDataIfNoDataFound: [{
|
|
3481
3482
|
type: Input
|
|
3482
3483
|
}] } });
|
|
3483
3484
|
|
|
@@ -3548,14 +3549,6 @@ class BasePagedPage extends BasePage {
|
|
|
3548
3549
|
this.currentFilter = filter;
|
|
3549
3550
|
this.loadPageOne();
|
|
3550
3551
|
}
|
|
3551
|
-
dataLoadedAndNothingFound() {
|
|
3552
|
-
this.dataLoadedAndFound(false);
|
|
3553
|
-
}
|
|
3554
|
-
dataLoadedAndFound(found) {
|
|
3555
|
-
this.dataLoading = false;
|
|
3556
|
-
this.dataLoaded = true;
|
|
3557
|
-
this.dataFound = found;
|
|
3558
|
-
}
|
|
3559
3552
|
//Events
|
|
3560
3553
|
onPageChange(e) {
|
|
3561
3554
|
this.pageSize = e.take;
|