ngx-deebodata-community 0.0.6 → 0.0.8

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.
@@ -1790,13 +1790,14 @@ class NgxDeebodataCommunity {
1790
1790
  linkCell;
1791
1791
  linkCells = [];
1792
1792
  validatedEditType = "";
1793
+ dataHasBeenSet = signal(false, ...(ngDevMode ? [{ debugName: "dataHasBeenSet" }] : /* istanbul ignore next */ []));
1793
1794
  data = input([], ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1794
1795
  color1 = "";
1795
1796
  color2 = "";
1796
1797
  primaryKey = "";
1797
1798
  defRowHgt = "50px";
1798
1799
  defGridHgt = 500;
1799
- altRowColor = "#fafafa";
1800
+ altRowColor = "";
1800
1801
  myColumnSymbols = [];
1801
1802
  editable = true;
1802
1803
  rowNumbers = true;
@@ -1813,9 +1814,8 @@ class NgxDeebodataCommunity {
1813
1814
  btnTogSelRows;
1814
1815
  dataTableHeaders;
1815
1816
  topLevelDataFilter;
1816
- dataHasBeenSet = false;
1817
1817
  ngOnChanges(changes) {
1818
- if (typeof changes !== "undefined" && changes["data"] && !this.dataHasBeenSet && this.data().length)
1818
+ if (typeof changes !== "undefined" && changes["data"] && !this.dataHasBeenSet() && this.data().length)
1819
1819
  this.handleDataInput();
1820
1820
  }
1821
1821
  ngOnInit() {
@@ -1825,7 +1825,7 @@ class NgxDeebodataCommunity {
1825
1825
  this.dataTableService.dTblHeight = this.defGridHgt;
1826
1826
  if (this.myColumnSymbols)
1827
1827
  this.dataTableService.columnSymbols = [...this.myColumnSymbols];
1828
- if (this.data.length)
1828
+ if (!this.dataHasBeenSet() && this.data().length)
1829
1829
  this.handleDataInput();
1830
1830
  }
1831
1831
  handleDataInput() {
@@ -1839,7 +1839,7 @@ class NgxDeebodataCommunity {
1839
1839
  this.tblDragService.dTblHeightOutput.subscribe(h => this.setTableHeight(h));
1840
1840
  this.tblDragService.columnMove.subscribe(c => this.processColMove(c));
1841
1841
  setTimeout(() => this.setTableHeight(510), 1000); //for demo
1842
- this.dataHasBeenSet = true;
1842
+ this.dataHasBeenSet.set(true);
1843
1843
  }
1844
1844
  getAllColsAtRuntime(excludeHidden) {
1845
1845
  let cols = (typeof this.dataTableService.mainData[0] === "object" ? Object.keys(this.dataTableService.mainData[0]) :