slick-components 17.0.63 → 17.0.64
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.
|
@@ -23,7 +23,7 @@ class SlickInitParams {
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
class SlickInitService {
|
|
26
|
-
static { this.version = "17.0.
|
|
26
|
+
static { this.version = "17.0.63"; }
|
|
27
27
|
constructor() { }
|
|
28
28
|
static init(initParams) {
|
|
29
29
|
console.info(`Slick Components Version ${SlickInitService.version}`);
|
|
@@ -6489,7 +6489,7 @@ class SlickGridComponent {
|
|
|
6489
6489
|
localStorage.setItem(`GRID_${this.gridOptions.gridKey}_FAVORITES`, JSON.stringify(favoriteNames));
|
|
6490
6490
|
this.gridOptions.favorites.forEach(favorite => {
|
|
6491
6491
|
// Make sure we haven't added a new column that needs to be saved
|
|
6492
|
-
this.gridOptions.columns
|
|
6492
|
+
this.gridOptions.columns?.forEach(c => {
|
|
6493
6493
|
const columnExists = favorite.columns?.findIndex(x => x.dataFieldName === c.dataFieldName);
|
|
6494
6494
|
if (columnExists < 0)
|
|
6495
6495
|
favorite.columns.push(c);
|
|
@@ -6505,7 +6505,7 @@ class SlickGridComponent {
|
|
|
6505
6505
|
}
|
|
6506
6506
|
this.selectedFavorite = localStorage.getItem("GRID_" + this.gridOptions.gridKey + "_SELECTED_FAVORITE") || 'Default';
|
|
6507
6507
|
// Check to make sure we don't have any duplicate column names
|
|
6508
|
-
this.gridOptions.columns
|
|
6508
|
+
this.gridOptions.columns?.forEach(c1 => {
|
|
6509
6509
|
const dataFieldCount = (this.gridOptions.columns.filter(x => x.dataFieldName === c1.dataFieldName) || []).length;
|
|
6510
6510
|
if (dataFieldCount > 1)
|
|
6511
6511
|
console.error(`Grid ${this.gridOptions.gridKey} column ${c1.dataFieldName} is defined ${dataFieldCount} times`);
|
|
@@ -6515,7 +6515,7 @@ class SlickGridComponent {
|
|
|
6515
6515
|
if (gridColumnsJson) {
|
|
6516
6516
|
let columns = JSON.parse(gridColumnsJson);
|
|
6517
6517
|
let displayOrder = 0;
|
|
6518
|
-
columns
|
|
6518
|
+
columns?.forEach(c => {
|
|
6519
6519
|
let column = this.gridOptions.columns.find(gridColumn => gridColumn.dataFieldName === c.dataFieldName);
|
|
6520
6520
|
if (column) {
|
|
6521
6521
|
column.visible = c.visible;
|