@firestitch/list 12.18.6 → 12.19.0

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.
@@ -2567,9 +2567,7 @@ class SortingController {
2567
2567
  direction: this.sortingColumn.direction,
2568
2568
  };
2569
2569
  }
2570
- else {
2571
- return void 0;
2572
- }
2570
+ return undefined;
2573
2571
  }
2574
2572
  get initialization() {
2575
2573
  return !this._initialized.getValue();
@@ -2588,6 +2586,7 @@ class SortingController {
2588
2586
  }
2589
2587
  /**
2590
2588
  * Set Sortable Direction
2589
+ *
2591
2590
  * @param direction
2592
2591
  */
2593
2592
  sortDirection(direction) {
@@ -2598,6 +2597,7 @@ class SortingController {
2598
2597
  }
2599
2598
  /**
2600
2599
  * Sort By
2600
+ *
2601
2601
  * @param column
2602
2602
  */
2603
2603
  sortBy(column) {
@@ -2608,6 +2608,7 @@ class SortingController {
2608
2608
  }
2609
2609
  /**
2610
2610
  * Same as sortBy, but need only column name as parameter for sort
2611
+ *
2611
2612
  * @param name
2612
2613
  */
2613
2614
  sortByColumnWithName(name) {
@@ -2620,6 +2621,7 @@ class SortingController {
2620
2621
  }
2621
2622
  /**
2622
2623
  * Init fake columns for sorting
2624
+ *
2623
2625
  * @param columns
2624
2626
  */
2625
2627
  initFakeColumns(columns) {
@@ -2638,6 +2640,7 @@ class SortingController {
2638
2640
  }
2639
2641
  /**
2640
2642
  * Set initial sorting
2643
+ *
2641
2644
  * @param sort
2642
2645
  */
2643
2646
  initialSortBy(sort) {
@@ -2660,7 +2663,7 @@ class SortingController {
2660
2663
  }
2661
2664
  else {
2662
2665
  this.sortByColumnWithName(sort.value);
2663
- const direction = (sort.direction === void 0 || sort.direction === 'asc')
2666
+ const direction = (sort.direction === undefined || sort.direction === 'asc')
2664
2667
  ? SortingDirection.asc
2665
2668
  : SortingDirection.desc;
2666
2669
  this._setSortingDirection(direction);
@@ -2671,7 +2674,7 @@ class SortingController {
2671
2674
  * Sort by first of available sorting columns
2672
2675
  */
2673
2676
  sortByFirstSortbale() {
2674
- const column = this.sortingColumns.find(col => col.sortable);
2677
+ const column = this.sortingColumns.find((col) => col.sortable);
2675
2678
  if (!column) {
2676
2679
  return;
2677
2680
  }
@@ -2680,7 +2683,7 @@ class SortingController {
2680
2683
  }
2681
2684
  getColumn(name) {
2682
2685
  return [...this.sortingColumns, ...this.fakeSortingColumns]
2683
- .find(col => col.name === name && col.sortable);
2686
+ .find((col) => col.name === name && col.sortable);
2684
2687
  }
2685
2688
  /**
2686
2689
  * Destroy
@@ -2715,7 +2718,7 @@ class SortingController {
2715
2718
  }
2716
2719
  this._sortingChanged$.next({
2717
2720
  sortBy: this.sortingColumn.name,
2718
- sortDirection: this.sortingColumn.direction
2721
+ sortDirection: this.sortingColumn.direction,
2719
2722
  });
2720
2723
  }
2721
2724
  _trySortByDefaultSortableColumn() {
@@ -3314,7 +3317,7 @@ class DataController {
3314
3317
  _updateVisibleRows() {
3315
3318
  this.visibleRows = this._rowsStack
3316
3319
  .filter((row, index) => {
3317
- return (!row.isGroupChild && !row.isGroupFooter) || row.visible;
3320
+ return (!row.isChild && !row.isGroupFooter) || row.visible;
3318
3321
  });
3319
3322
  }
3320
3323
  updateRow(targetRow, trackBy) {
@@ -3515,14 +3518,15 @@ class ExternalParamsController {
3515
3518
  // FIXME
3516
3519
  setTimeout(() => {
3517
3520
  this._router.navigate([], {
3521
+ skipLocationChange: true,
3518
3522
  replaceUrl: true,
3519
3523
  relativeTo: this._route,
3520
3524
  queryParams: {
3521
3525
  sortName: name,
3522
3526
  sortDirection: direction,
3523
3527
  },
3524
- queryParamsHandling: 'merge'
3525
- }).then(() => { });
3528
+ queryParamsHandling: 'merge',
3529
+ }).then();
3526
3530
  });
3527
3531
  }
3528
3532
  if (this._persistance.enabled) {
@@ -3538,11 +3542,12 @@ class ExternalParamsController {
3538
3542
  if (this._queryParamsEnabled) {
3539
3543
  setTimeout(() => {
3540
3544
  this._router.navigate([], {
3545
+ skipLocationChange: true,
3541
3546
  replaceUrl: true,
3542
3547
  relativeTo: this._route,
3543
3548
  queryParams: params,
3544
- queryParamsHandling: 'merge'
3545
- }).then(() => { });
3549
+ queryParamsHandling: 'merge',
3550
+ }).then();
3546
3551
  });
3547
3552
  }
3548
3553
  if (this._persistance.enabled) {