ngx-deebodata 0.1.5 → 0.1.7

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,12 +1,12 @@
1
1
  # NgxDeebodata
2
2
 
3
- Commercial data grid with virtual scroll, integrated charts, row grouping, column resizing, toggle column visibility, cell editing, tab accessibility, sorting with priority, and advanced filtering.
3
+ Angular data grid with virtual scroll, integrated charts, row grouping, column resizing, toggle column visibility, cell editing, tab accessibility, sorting with priority, and advanced filtering. This package uses only basic @angular packages and rxjs as peer dependencies.
4
4
 
5
5
  # Licensing
6
6
 
7
- **Commercial license** - However, you can install this module and test the full functionality when developing locally at **http://localhost:4200/**
7
+ Install this package and use the full functionality when developing locally at **http://localhost:4200/**
8
8
 
9
- To deploy to any live url, you need to obtain a deployment license for each developer on the project from https://deebodata.com/data-grid-checkout/angular
9
+ To deploy to any live url, you need to obtain a **deployment license** for each developer on the project from https://deebodata.com/data-grid-checkout/angular
10
10
 
11
11
  ## Usage
12
12
 
@@ -1664,7 +1664,7 @@ class DataTablePaginator {
1664
1664
  showSkipToOptions(event) {
1665
1665
  if (!this.showSkipTo)
1666
1666
  this.showSkipTo = true;
1667
- if (event && event.type === "click" && !this.listenToWindowSkipTo)
1667
+ if (event && !this.listenToWindowSkipTo)
1668
1668
  setTimeout(() => { this.listenToWindowSkipTo = true; });
1669
1669
  }
1670
1670
  closeSkipOpts() {
@@ -1780,8 +1780,11 @@ class DataCellComponent {
1780
1780
  const cell = this.cellElem.nativeElement;
1781
1781
  if (this.cell.text && !cell.textContent)
1782
1782
  cell.textContent = this.cell.text;
1783
- if (this.cell.html && !cell.innerHTML)
1783
+ if (this.cell.html && !cell.innerHTML) {
1784
1784
  cell.innerHTML = this.cell.html;
1785
+ if (/ \<a/g.test(this.cell.html) || /a\> /g.test(this.cell.html))
1786
+ cell.style.display = "inline-block";
1787
+ }
1785
1788
  this.ready = true;
1786
1789
  if (this.cell.html) {
1787
1790
  setTimeout(() => {
@@ -1939,16 +1942,19 @@ class DataCellComponent {
1939
1942
  nxtCell.focus();
1940
1943
  }
1941
1944
  else {
1942
- this.dataTableService.autoScrollOnEdit = true;
1943
- this.dataTableService.scrollBodyForTabbing(this.dataTableService.shiftKeyDown);
1944
- const baseRow = parseInt(this.rowId.replace(/^dataTableRow/, ""));
1945
- const nxtRowCell = document.querySelector("#dataTableRow" + (baseRow + (1 * this.dataTableService.shiftKeyDown)) + " .data-cell:not(.col-header-minimized)");
1946
- if (nxtRowCell)
1947
- nxtRowCell.focus();
1948
- else {
1949
- const skip = document.getElementById("skipTo");
1950
- if (skip)
1951
- skip.focus();
1945
+ const nxtRow = this.dataTableService.shiftKeyDown === 1 ? this.cellElem.nativeElement.parentElement?.parentElement?.nextElementSibling :
1946
+ this.cellElem.nativeElement.parentElement?.parentElement?.previousElementSibling;
1947
+ if (nxtRow) {
1948
+ this.dataTableService.autoScrollOnEdit = true;
1949
+ this.dataTableService.scrollBodyForTabbing(this.dataTableService.shiftKeyDown);
1950
+ const nxtRowCell = document.querySelector("#" + (nxtRow.id || "notHere") + " .data-cell:not(.col-header-minimized)");
1951
+ if (nxtRowCell)
1952
+ nxtRowCell.focus();
1953
+ else {
1954
+ const skip = document.getElementById("skipTo");
1955
+ if (skip)
1956
+ skip.focus();
1957
+ }
1952
1958
  }
1953
1959
  }
1954
1960
  }
@@ -6170,7 +6176,7 @@ class NgxDeebodata {
6170
6176
  cell.parentElement?.parentElement?.previousElementSibling;
6171
6177
  if (nxtRow) {
6172
6178
  this.dataTableService.scrollBodyForTabbing(this.dataTableService.shiftKeyDown);
6173
- const nxtRowCell = document.querySelector("#" + nxtRow.id + " .data-cell:not(.col-header-minimized)");
6179
+ const nxtRowCell = document.querySelector("#" + (nxtRow.id || "notHere") + " .data-cell:not(.col-header-minimized)");
6174
6180
  if (nxtRowCell)
6175
6181
  nxtRowCell.focus();
6176
6182
  else {