@universis/ngx-tables 0.7.26 → 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';
@@ -91,7 +91,12 @@ var AdvancedColumnFormatter = /** @class */ (function () {
91
91
  if (options.navigationExtras && typeof options.navigationExtras.skipLocationChange !== 'undefined') {
92
92
  skipLocationChange = options.navigationExtras.skipLocationChange;
93
93
  }
94
+ var fragment = void 0;
95
+ if (options.navigationExtras && typeof options.navigationExtras.fragment !== 'undefined') {
96
+ fragment = options.navigationExtras.fragment;
97
+ }
94
98
  return router.createUrlTree(commands, {
99
+ fragment: fragment,
95
100
  relativeTo: activatedRoute,
96
101
  queryParams: queryParams_1,
97
102
  replaceUrl: replaceUrl,
@@ -902,6 +907,7 @@ var AdvancedTableComponent = /** @class */ (function () {
902
907
  this.order = new EventEmitter();
903
908
  this.scroll = new EventEmitter();
904
909
  this.selectedItems = new EventEmitter();
910
+ this.loading = new EventEmitter();
905
911
  this.scrollable = true;
906
912
  this.serverSide = true;
907
913
  this.lengthMenu = [50, 100, 200, 500];
@@ -1321,6 +1327,9 @@ var AdvancedTableComponent = /** @class */ (function () {
1321
1327
  this.destroy();
1322
1328
  }
1323
1329
  if (this.config) {
1330
+ this.loading.emit({
1331
+ target: this
1332
+ });
1324
1333
  // parse properties
1325
1334
  if (Object.prototype.hasOwnProperty.call(this.config, 'selectable')) {
1326
1335
  this.selectable = this.config.selectable;
@@ -2079,6 +2088,7 @@ var AdvancedTableComponent = /** @class */ (function () {
2079
2088
  order: [{ type: Output, args: ['order',] }],
2080
2089
  scroll: [{ type: Output, args: ['scroll',] }],
2081
2090
  selectedItems: [{ type: Output, args: ['selectedItems',] }],
2091
+ loading: [{ type: Output, args: ['loading',] }],
2082
2092
  scrollable: [{ type: Input }],
2083
2093
  serverSide: [{ type: Input }],
2084
2094
  lengthMenu: [{ type: Input }],
@@ -2492,8 +2502,9 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
2492
2502
  _this._http = _http;
2493
2503
  _this.form = {};
2494
2504
  _this.refreshForm = new EventEmitter();
2505
+ _this.loading = new EventEmitter();
2495
2506
  _this.submission = { data: {} };
2496
- _this.loading = true;
2507
+ _this.componentLoading = true;
2497
2508
  return _this;
2498
2509
  }
2499
2510
  AdvancedSearchFormComponent.prototype.ngOnChanges = function (changes) {
@@ -2539,10 +2550,13 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
2539
2550
  this.submission = {
2540
2551
  data: this.filter
2541
2552
  };
2553
+ this.loading.emit({
2554
+ target: this
2555
+ });
2542
2556
  this.refreshForm.emit({
2543
2557
  form: this.form
2544
2558
  });
2545
- this.loading = false;
2559
+ this.componentLoading = false;
2546
2560
  this.filterSubscription = this.filterChange.subscribe(function (filter$$1) {
2547
2561
  _this.submission.data = filter$$1;
2548
2562
  _this.refreshForm.emit({
@@ -2606,7 +2620,8 @@ var AdvancedSearchFormComponent = /** @class */ (function (_super) {
2606
2620
  formComponent: [{ type: ViewChild, args: ['formioComponent',] }],
2607
2621
  form: [{ type: Input }],
2608
2622
  formSrc: [{ type: Input }],
2609
- refreshForm: [{ type: Output }]
2623
+ refreshForm: [{ type: Output }],
2624
+ loading: [{ type: Output }]
2610
2625
  };
2611
2626
  return AdvancedSearchFormComponent;
2612
2627
  }(AdvancedTableSearchBaseComponent));