ngx-deebodata-community 0.0.7 → 0.0.9

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/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  # NgxDeebodataCommunity
2
2
 
3
3
  DeeboData Community for Angular - an open source data grid with virtual scroll,
4
- column resizing, cell editing, tab accessibility, sorting, and filtering. It
5
- only uses core Angular modules.
4
+ column resizing, cell editing, tab accessibility, sorting, and filtering.
6
5
 
7
6
  ## Usage
8
7
 
@@ -5,7 +5,6 @@ import { CommonModule, DecimalPipe } from '@angular/common';
5
5
  import * as i5 from '@angular/forms';
6
6
  import { FormsModule } from '@angular/forms';
7
7
  import { Subject } from 'rxjs';
8
- import * as i2 from '@angular/common/http';
9
8
 
10
9
  class CommonService {
11
10
  uniSep = "X_";
@@ -338,10 +337,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
338
337
 
339
338
  class DataTableService {
340
339
  common;
341
- http;
342
- constructor(common, http) {
340
+ constructor(common) {
343
341
  this.common = common;
344
- this.http = http;
345
342
  }
346
343
  sortOrder = [];
347
344
  mainData = [];
@@ -824,7 +821,7 @@ class DataTableService {
824
821
  }
825
822
  return true;
826
823
  }
827
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: DataTableService, deps: [{ token: CommonService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
824
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: DataTableService, deps: [{ token: CommonService }], target: i0.ɵɵFactoryTarget.Injectable });
828
825
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: DataTableService, providedIn: 'root' });
829
826
  }
830
827
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImport: i0, type: DataTableService, decorators: [{
@@ -832,7 +829,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.10", ngImpo
832
829
  args: [{
833
830
  providedIn: 'root'
834
831
  }]
835
- }], ctorParameters: () => [{ type: CommonService }, { type: i2.HttpClient }] });
832
+ }], ctorParameters: () => [{ type: CommonService }] });
836
833
 
837
834
  class TableDragService {
838
835
  dataTableService;
@@ -1790,13 +1787,14 @@ class NgxDeebodataCommunity {
1790
1787
  linkCell;
1791
1788
  linkCells = [];
1792
1789
  validatedEditType = "";
1790
+ dataHasBeenSet = signal(false, ...(ngDevMode ? [{ debugName: "dataHasBeenSet" }] : /* istanbul ignore next */ []));
1793
1791
  data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1794
1792
  color1 = "";
1795
1793
  color2 = "";
1796
1794
  primaryKey = "";
1797
1795
  defRowHgt = "50px";
1798
1796
  defGridHgt = 500;
1799
- altRowColor = "#fafafa";
1797
+ altRowColor = "";
1800
1798
  myColumnSymbols = [];
1801
1799
  editable = true;
1802
1800
  rowNumbers = true;
@@ -1813,9 +1811,8 @@ class NgxDeebodataCommunity {
1813
1811
  btnTogSelRows;
1814
1812
  dataTableHeaders;
1815
1813
  topLevelDataFilter;
1816
- dataHasBeenSet = false;
1817
1814
  ngOnChanges(changes) {
1818
- if (typeof changes !== "undefined" && changes["data"] && !this.dataHasBeenSet && this.data().length)
1815
+ if (typeof changes !== "undefined" && changes["data"] && !this.dataHasBeenSet() && this.data().length)
1819
1816
  this.handleDataInput();
1820
1817
  }
1821
1818
  ngOnInit() {
@@ -1825,7 +1822,7 @@ class NgxDeebodataCommunity {
1825
1822
  this.dataTableService.dTblHeight = this.defGridHgt;
1826
1823
  if (this.myColumnSymbols)
1827
1824
  this.dataTableService.columnSymbols = [...this.myColumnSymbols];
1828
- if (this.data().length)
1825
+ if (!this.dataHasBeenSet() && this.data().length)
1829
1826
  this.handleDataInput();
1830
1827
  }
1831
1828
  handleDataInput() {
@@ -1839,7 +1836,7 @@ class NgxDeebodataCommunity {
1839
1836
  this.tblDragService.dTblHeightOutput.subscribe(h => this.setTableHeight(h));
1840
1837
  this.tblDragService.columnMove.subscribe(c => this.processColMove(c));
1841
1838
  setTimeout(() => this.setTableHeight(510), 1000); //for demo
1842
- this.dataHasBeenSet = true;
1839
+ this.dataHasBeenSet.set(true);
1843
1840
  }
1844
1841
  getAllColsAtRuntime(excludeHidden) {
1845
1842
  let cols = (typeof this.dataTableService.mainData[0] === "object" ? Object.keys(this.dataTableService.mainData[0]) :