@osovitny/anatoly 2.14.47 → 2.14.49
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/appcontext.service.mjs +9 -6
- package/esm2020/lib/ui/components/nodata/nodata.component.mjs +9 -10
- package/fesm2015/osovitny-anatoly.mjs +16 -14
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +16 -14
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/services/appcontext.service.d.ts +2 -1
- package/lib/ui/components/nodata/nodata.component.d.ts +4 -4
- package/package.json +1 -1
|
@@ -1422,11 +1422,7 @@ class AppContextService extends BaseApiService {
|
|
|
1422
1422
|
this.subscription.unsubscribe();
|
|
1423
1423
|
this.subscription = null;
|
|
1424
1424
|
}
|
|
1425
|
-
|
|
1426
|
-
getLatestCurrent(success = null) {
|
|
1427
|
-
this.getCurrent(success, false);
|
|
1428
|
-
}
|
|
1429
|
-
getCurrent(success = null, getCachedIfExist = true) {
|
|
1425
|
+
getCurrentPrivate(success = null, getCachedIfExist = true) {
|
|
1430
1426
|
if (getCachedIfExist) {
|
|
1431
1427
|
let context = this.getCurrentFromSession();
|
|
1432
1428
|
if (context != null) {
|
|
@@ -1449,6 +1445,13 @@ class AppContextService extends BaseApiService {
|
|
|
1449
1445
|
}
|
|
1450
1446
|
});
|
|
1451
1447
|
}
|
|
1448
|
+
//Public
|
|
1449
|
+
getLatestCurrent(success = null) {
|
|
1450
|
+
this.getCurrentPrivate(success, false);
|
|
1451
|
+
}
|
|
1452
|
+
getCurrent(success = null) {
|
|
1453
|
+
this.getCurrentPrivate(success, true);
|
|
1454
|
+
}
|
|
1452
1455
|
updateCurrent(success = null) {
|
|
1453
1456
|
this.clearCurrent();
|
|
1454
1457
|
this.getLatestCurrent(success);
|
|
@@ -3217,25 +3220,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
|
|
|
3217
3220
|
*/
|
|
3218
3221
|
class NodataComponent {
|
|
3219
3222
|
constructor() {
|
|
3220
|
-
|
|
3221
|
-
this.
|
|
3222
|
-
this.
|
|
3223
|
-
this.datafound = false;
|
|
3223
|
+
this.dataLoading = false;
|
|
3224
|
+
this.dataLoaded = false;
|
|
3225
|
+
this.dataFound = false;
|
|
3224
3226
|
this.icon = 'fas fa-cubes fa-w-16 fa-9x';
|
|
3225
3227
|
this.heading = 'No data found';
|
|
3226
3228
|
this.headingClass = 'text-uppercase text-primary';
|
|
3227
3229
|
}
|
|
3228
3230
|
}
|
|
3229
3231
|
NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3230
|
-
NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: {
|
|
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' *ngIf='dataLoaded && !dataFound'>\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"] }] });
|
|
3231
3233
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
|
|
3232
3234
|
type: Component,
|
|
3233
|
-
args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='
|
|
3234
|
-
}], ctorParameters: function () { return []; }, propDecorators: {
|
|
3235
|
+
args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='dataLoaded && !dataFound'>\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
|
+
}], ctorParameters: function () { return []; }, propDecorators: { dataLoading: [{
|
|
3235
3237
|
type: Input
|
|
3236
|
-
}],
|
|
3238
|
+
}], dataLoaded: [{
|
|
3237
3239
|
type: Input
|
|
3238
|
-
}],
|
|
3240
|
+
}], dataFound: [{
|
|
3239
3241
|
type: Input
|
|
3240
3242
|
}], icon: [{
|
|
3241
3243
|
type: Input
|