@adaptabletools/adaptable 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",
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",
@@ -1144,8 +1144,9 @@ You need to define at least one Layout!`);
1144
1144
  format: '0.###############',
1145
1145
  },
1146
1146
  });
1147
- this.agGridExportAdapter.originalExcelStyles = excelStyles;
1148
- this.agGridExportAdapter.DANGER_excelStyles = this.agGridExportAdapter.originalExcelStyles;
1147
+ // store original excel styles, we will have to revert to them after each VISUAL EXPORT
1148
+ this.agGridExportAdapter.originalExcelStyles = [...excelStyles];
1149
+ this.agGridExportAdapter.DANGER_excelStyles = excelStyles;
1149
1150
  // this array reference will be used for the entire AG Grid session
1150
1151
  return this.agGridExportAdapter.DANGER_excelStyles;
1151
1152
  });
@@ -446,10 +446,11 @@ export class AgGridExportAdapter {
446
446
  }
447
447
  patchExcelStyles(exportContext) {
448
448
  const exportExcelStyles = this.buildExcelStyles(exportContext);
449
- // set DANGER_excelStyles without changing the array reference
450
- this.DANGER_excelStyles.splice(0, this.DANGER_excelStyles.length, ...exportExcelStyles);
449
+ // Concatenate exportExcelStyles to DANGER_excelStyles without changing the array reference
450
+ this.DANGER_excelStyles.push(...exportExcelStyles);
451
451
  }
452
452
  resetExcelStyles() {
453
+ // Revert to original state without changing the array reference
453
454
  this.DANGER_excelStyles.splice(0, this.DANGER_excelStyles.length, ...this.originalExcelStyles);
454
455
  this.excelStylesCache = {};
455
456
  this.cellClassKey2excelStyleIdMap = {};
@@ -602,27 +603,6 @@ export class AgGridExportAdapter {
602
603
  this.registerExcelStyle(finalCellExcelStyle, cellClassId);
603
604
  });
604
605
  }, forAllVisibleRowNodesDoConfig);
605
- // see #EXCEL_EXPORT_DATA_TYPES
606
- this.excelStylesCache['stringExcelType'] = {
607
- id: 'stringExcelType',
608
- dataType: 'String',
609
- };
610
- this.excelStylesCache['booleanExcelType'] = {
611
- id: 'booleanExcelType',
612
- dataType: 'Boolean',
613
- };
614
- this.excelStylesCache['dateExcelType'] = {
615
- id: 'dateExcelType',
616
- dataType: 'DateTime',
617
- };
618
- this.excelStylesCache['numberExcelType'] = {
619
- id: 'numberExcelType',
620
- // dataType: 'Number',
621
- // AG Grid requires either dataType or numberFormat to be set for Numbers
622
- numberFormat: {
623
- format: '0.###############',
624
- },
625
- };
626
606
  return Object.values(this.excelStylesCache);
627
607
  }
628
608
  registerExcelStyle(excelStyle, cellClassKey) {
package/src/env.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export default {
2
2
  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" || '',
3
- PUBLISH_TIMESTAMP: 1764941773702 || Date.now(),
4
- VERSION: "21.1.2" || '--current-version--',
3
+ PUBLISH_TIMESTAMP: 1765279149402 || Date.now(),
4
+ VERSION: "21.1.3-canary.0" || '--current-version--',
5
5
  };