@universis/ngx-tables 0.7.27 → 0.7.28

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.
@@ -20,7 +20,7 @@ import { ProgressbarModule } from 'ngx-bootstrap/progressbar';
20
20
  import { GroupByPipe, NgPipesModule } from 'ngx-pipes';
21
21
  import { template, at, cloneDeep } from 'lodash';
22
22
  import { __extends, __awaiter, __generator, __values, __assign, __spread } from 'tslib';
23
- import { Injectable, Directive, Optional, Input, Pipe, Component, ElementRef, ViewChild, ViewEncapsulation, EventEmitter, Output, NgModule, CUSTOM_ELEMENTS_SCHEMA, defineInjectable, inject, HostListener, ChangeDetectorRef, InjectionToken, Inject, Injector, ChangeDetectionStrategy } from '@angular/core';
23
+ import { Injectable, Directive, Optional, Input, Pipe, Component, EventEmitter, Output, ElementRef, ViewChild, ViewEncapsulation, NgModule, CUSTOM_ELEMENTS_SCHEMA, defineInjectable, inject, HostListener, ChangeDetectorRef, InjectionToken, Inject, Injector, ChangeDetectionStrategy } from '@angular/core';
24
24
  import { ActivatedRoute, Router, NavigationStart, NavigationEnd, RouterModule } from '@angular/router';
25
25
  import { createFeatureSelector, createSelector, select, Store } from '@ngrx/store';
26
26
  import { first, filter } from 'rxjs/operators';
@@ -907,6 +907,7 @@ var AdvancedTableComponent = /** @class */ (function () {
907
907
  this.order = new EventEmitter();
908
908
  this.scroll = new EventEmitter();
909
909
  this.selectedItems = new EventEmitter();
910
+ this.loading = new EventEmitter();
910
911
  this.scrollable = true;
911
912
  this.serverSide = true;
912
913
  this.lengthMenu = [50, 100, 200, 500];
@@ -1326,6 +1327,9 @@ var AdvancedTableComponent = /** @class */ (function () {
1326
1327
  this.destroy();
1327
1328
  }
1328
1329
  if (this.config) {
1330
+ this.loading.emit({
1331
+ target: this
1332
+ });
1329
1333
  // parse properties
1330
1334
  if (Object.prototype.hasOwnProperty.call(this.config, 'selectable')) {
1331
1335
  this.selectable = this.config.selectable;
@@ -2084,6 +2088,7 @@ var AdvancedTableComponent = /** @class */ (function () {
2084
2088
  order: [{ type: Output, args: ['order',] }],
2085
2089
  scroll: [{ type: Output, args: ['scroll',] }],
2086
2090
  selectedItems: [{ type: Output, args: ['selectedItems',] }],
2091
+ loading: [{ type: Output, args: ['loading',] }],
2087
2092
  scrollable: [{ type: Input }],
2088
2093
  serverSide: [{ type: Input }],
2089
2094
  lengthMenu: [{ type: Input }],
@@ -2497,8 +2502,9 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
2497
2502
  _this._http = _http;
2498
2503
  _this.form = {};
2499
2504
  _this.refreshForm = new EventEmitter();
2505
+ _this.loading = new EventEmitter();
2500
2506
  _this.submission = { data: {} };
2501
- _this.loading = true;
2507
+ _this.componentLoading = true;
2502
2508
  return _this;
2503
2509
  }
2504
2510
  AdvancedSearchFormComponent.prototype.ngOnChanges = function (changes) {
@@ -2544,10 +2550,13 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
2544
2550
  this.submission = {
2545
2551
  data: this.filter
2546
2552
  };
2553
+ this.loading.emit({
2554
+ target: this
2555
+ });
2547
2556
  this.refreshForm.emit({
2548
2557
  form: this.form
2549
2558
  });
2550
- this.loading = false;
2559
+ this.componentLoading = false;
2551
2560
  this.filterSubscription = this.filterChange.subscribe(function (filter$$1) {
2552
2561
  _this.submission.data = filter$$1;
2553
2562
  _this.refreshForm.emit({
@@ -2611,7 +2620,8 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
2611
2620
  formComponent: [{ type: ViewChild, args: ['formioComponent',] }],
2612
2621
  form: [{ type: Input }],
2613
2622
  formSrc: [{ type: Input }],
2614
- refreshForm: [{ type: Output }]
2623
+ refreshForm: [{ type: Output }],
2624
+ loading: [{ type: Output }]
2615
2625
  };
2616
2626
  return AdvancedSearchFormComponent;
2617
2627
  }(AdvancedTableSearchBaseComponent));