@slickgrid-universal/text-export 9.1.0 → 9.3.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.
@@ -35,7 +35,7 @@ export declare class TextExportService implements ExternalResource, BaseTextExpo
35
35
  */
36
36
  init(grid: SlickGrid, containerService: ContainerService): void;
37
37
  /**
38
- * Function to export the Grid result to an Excel CSV format using javascript for it to produce the CSV file.
38
+ * Function to export the Grid result to an Excel CSV format using JavaScript for it to produce the CSV file.
39
39
  * This is a WYSIWYG export to file output (What You See is What You Get)
40
40
  *
41
41
  * NOTES: The column position needs to match perfectly the JSON Object position because of the way we are pulling the data,
@@ -47,7 +47,7 @@ export declare class TextExportService implements ExternalResource, BaseTextExpo
47
47
  /**
48
48
  * Triggers download file with file format.
49
49
  * IE(6-10) are not supported
50
- * All other browsers will use plain javascript on client side to produce a file download.
50
+ * All other browsers will use plain JavaScript on client side to produce a file download.
51
51
  * @param options
52
52
  */
53
53
  startDownloadFile(options: ExportTextDownloadOption): void;
@@ -50,7 +50,7 @@ export class TextExportService {
50
50
  }
51
51
  }
52
52
  /**
53
- * Function to export the Grid result to an Excel CSV format using javascript for it to produce the CSV file.
53
+ * Function to export the Grid result to an Excel CSV format using JavaScript for it to produce the CSV file.
54
54
  * This is a WYSIWYG export to file output (What You See is What You Get)
55
55
  *
56
56
  * NOTES: The column position needs to match perfectly the JSON Object position because of the way we are pulling the data,
@@ -89,7 +89,7 @@ export class TextExportService {
89
89
  /**
90
90
  * Triggers download file with file format.
91
91
  * IE(6-10) are not supported
92
- * All other browsers will use plain javascript on client side to produce a file download.
92
+ * All other browsers will use plain JavaScript on client side to produce a file download.
93
93
  * @param options
94
94
  */
95
95
  startDownloadFile(options) {
@@ -98,7 +98,7 @@ export class TextExportService {
98
98
  // dealing with Excel CSV export and UTF-8 is a little tricky.. We will use Option #2 to cover older Excel versions
99
99
  // Option #1: we need to make Excel knowing that it's dealing with an UTF-8, A correctly formatted UTF8 file can have a Byte Order Mark as its first three octets
100
100
  // reference: http://stackoverflow.com/questions/155097/microsoft-excel-mangles-diacritics-in-csv-files
101
- // Option#2: use a 3rd party extension to javascript encode into UTF-16
101
+ // Option#2: use a 3rd party extension to JavaScript encode into UTF-16
102
102
  let outputData;
103
103
  if (options.format === 'csv') {
104
104
  outputData = new TextEncoder('utf-8').encode(csvContent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slickgrid-universal/text-export",
3
- "version": "9.1.0",
3
+ "version": "9.3.0",
4
4
  "description": "Export to Text File (csv/txt) Service.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -36,13 +36,13 @@
36
36
  "not dead"
37
37
  ],
38
38
  "dependencies": {
39
- "@slickgrid-universal/common": "9.1.0",
40
- "@slickgrid-universal/utils": "9.0.0",
39
+ "@slickgrid-universal/common": "9.3.0",
40
+ "@slickgrid-universal/utils": "9.3.0",
41
41
  "text-encoding-utf-8": "^1.0.2"
42
42
  },
43
43
  "funding": {
44
44
  "type": "ko_fi",
45
45
  "url": "https://ko-fi.com/ghiscoding"
46
46
  },
47
- "gitHead": "13b7246f58494ab65f345b8eb33c34d75c457aa5"
47
+ "gitHead": "55ed5323130560ff5004d1fbb09d754d1dd5804e"
48
48
  }
@@ -98,7 +98,7 @@ export class TextExportService implements ExternalResource, BaseTextExportServic
98
98
  }
99
99
 
100
100
  /**
101
- * Function to export the Grid result to an Excel CSV format using javascript for it to produce the CSV file.
101
+ * Function to export the Grid result to an Excel CSV format using JavaScript for it to produce the CSV file.
102
102
  * This is a WYSIWYG export to file output (What You See is What You Get)
103
103
  *
104
104
  * NOTES: The column position needs to match perfectly the JSON Object position because of the way we are pulling the data,
@@ -144,7 +144,7 @@ export class TextExportService implements ExternalResource, BaseTextExportServic
144
144
  /**
145
145
  * Triggers download file with file format.
146
146
  * IE(6-10) are not supported
147
- * All other browsers will use plain javascript on client side to produce a file download.
147
+ * All other browsers will use plain JavaScript on client side to produce a file download.
148
148
  * @param options
149
149
  */
150
150
  startDownloadFile(options: ExportTextDownloadOption): void {
@@ -154,7 +154,7 @@ export class TextExportService implements ExternalResource, BaseTextExportServic
154
154
  // dealing with Excel CSV export and UTF-8 is a little tricky.. We will use Option #2 to cover older Excel versions
155
155
  // Option #1: we need to make Excel knowing that it's dealing with an UTF-8, A correctly formatted UTF8 file can have a Byte Order Mark as its first three octets
156
156
  // reference: http://stackoverflow.com/questions/155097/microsoft-excel-mangles-diacritics-in-csv-files
157
- // Option#2: use a 3rd party extension to javascript encode into UTF-16
157
+ // Option#2: use a 3rd party extension to JavaScript encode into UTF-16
158
158
  let outputData: Uint8Array | string;
159
159
  if (options.format === 'csv') {
160
160
  outputData = new TextEncoder('utf-8').encode(csvContent);