@osovitny/anatoly 2.14.36 → 2.14.38

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.
@@ -2266,6 +2266,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
2266
2266
  class BaseComponent {
2267
2267
  constructor() {
2268
2268
  this.subs = new Subs();
2269
+ //Component Data => usually loading from API
2270
+ this.dataLoading = true;
2271
+ this.dataLoaded = false;
2272
+ this.dataFound = false;
2269
2273
  }
2270
2274
  getQSId() {
2271
2275
  let id = Utils.getValueByNameInQS("id");
@@ -3176,17 +3180,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImpor
3176
3180
  */
3177
3181
  class NodataComponent {
3178
3182
  constructor() {
3183
+ //Inputs
3184
+ this.loading = false;
3185
+ this.loaded = false;
3186
+ this.datafound = false;
3179
3187
  this.icon = 'fas fa-cubes fa-w-16 fa-9x';
3180
3188
  this.heading = 'No data found';
3181
3189
  this.headingClass = 'text-uppercase text-primary';
3182
3190
  }
3183
3191
  }
3184
3192
  NodataComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3185
- NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class=\"text-center\">\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" });
3193
+ NodataComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.6", type: NodataComponent, selector: "anatoly-nodata", inputs: { loading: "loading", loaded: "loaded", datafound: "datafound", icon: "icon", heading: "heading", headingClass: "headingClass" }, ngImport: i0, template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='loaded && !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"] }] });
3186
3194
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.6", ngImport: i0, type: NodataComponent, decorators: [{
3187
3195
  type: Component,
3188
- args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class=\"text-center\">\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" }]
3189
- }], propDecorators: { icon: [{
3196
+ args: [{ selector: 'anatoly-nodata', template: "<div class=\"no-data\">\r\n <div class='loaded' *ngIf='loaded && !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" }]
3197
+ }], ctorParameters: function () { return []; }, propDecorators: { loading: [{
3198
+ type: Input
3199
+ }], loaded: [{
3200
+ type: Input
3201
+ }], datafound: [{
3202
+ type: Input
3203
+ }], icon: [{
3190
3204
  type: Input
3191
3205
  }], heading: [{
3192
3206
  type: Input