@adaptabletools/adaptable-cjs 21.1.2 → 21.1.3-canary.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-cjs",
3
- "version": "21.1.2",
3
+ "version": "21.1.3-canary.0",
4
4
  "description": "Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements",
5
5
  "keywords": [
6
6
  "web-components",
@@ -1148,8 +1148,9 @@ You need to define at least one Layout!`);
1148
1148
  format: '0.###############',
1149
1149
  },
1150
1150
  });
1151
- this.agGridExportAdapter.originalExcelStyles = excelStyles;
1152
- this.agGridExportAdapter.DANGER_excelStyles = this.agGridExportAdapter.originalExcelStyles;
1151
+ // store original excel styles, we will have to revert to them after each VISUAL EXPORT
1152
+ this.agGridExportAdapter.originalExcelStyles = [...excelStyles];
1153
+ this.agGridExportAdapter.DANGER_excelStyles = excelStyles;
1153
1154
  // this array reference will be used for the entire AG Grid session
1154
1155
  return this.agGridExportAdapter.DANGER_excelStyles;
1155
1156
  });
@@ -450,10 +450,11 @@ class AgGridExportAdapter {
450
450
  }
451
451
  patchExcelStyles(exportContext) {
452
452
  const exportExcelStyles = this.buildExcelStyles(exportContext);
453
- // set DANGER_excelStyles without changing the array reference
454
- this.DANGER_excelStyles.splice(0, this.DANGER_excelStyles.length, ...exportExcelStyles);
453
+ // Concatenate exportExcelStyles to DANGER_excelStyles without changing the array reference
454
+ this.DANGER_excelStyles.push(...exportExcelStyles);
455
455
  }
456
456
  resetExcelStyles() {
457
+ // Revert to original state without changing the array reference
457
458
  this.DANGER_excelStyles.splice(0, this.DANGER_excelStyles.length, ...this.originalExcelStyles);
458
459
  this.excelStylesCache = {};
459
460
  this.cellClassKey2excelStyleIdMap = {};
@@ -606,27 +607,6 @@ class AgGridExportAdapter {
606
607
  this.registerExcelStyle(finalCellExcelStyle, cellClassId);
607
608
  });
608
609
  }, forAllVisibleRowNodesDoConfig);
609
- // see #EXCEL_EXPORT_DATA_TYPES
610
- this.excelStylesCache['stringExcelType'] = {
611
- id: 'stringExcelType',
612
- dataType: 'String',
613
- };
614
- this.excelStylesCache['booleanExcelType'] = {
615
- id: 'booleanExcelType',
616
- dataType: 'Boolean',
617
- };
618
- this.excelStylesCache['dateExcelType'] = {
619
- id: 'dateExcelType',
620
- dataType: 'DateTime',
621
- };
622
- this.excelStylesCache['numberExcelType'] = {
623
- id: 'numberExcelType',
624
- // dataType: 'Number',
625
- // AG Grid requires either dataType or numberFormat to be set for Numbers
626
- numberFormat: {
627
- format: '0.###############',
628
- },
629
- };
630
610
  return Object.values(this.excelStylesCache);
631
611
  }
632
612
  registerExcelStyle(excelStyle, cellClassKey) {
package/src/env.js CHANGED
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
4
  NEXT_PUBLIC_INFINITE_TABLE_LICENSE_KEY: "StartDate=2021-06-29|EndDate=2030-01-01|Owner=Adaptable|Type=distribution|TS=1624971462479|C=137829811,1004007071,2756196225,1839832928,3994409405,636616862" || '',
5
- PUBLISH_TIMESTAMP: 1764941804167 || Date.now(),
6
- VERSION: "21.1.2" || '--current-version--',
5
+ PUBLISH_TIMESTAMP: 1765279179972 || Date.now(),
6
+ VERSION: "21.1.3-canary.0" || '--current-version--',
7
7
  };