export-table-pulgin-csharp 1.0.4 → 1.0.8

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/dist/index.d.ts CHANGED
@@ -1,7 +1,10 @@
1
- import { HandleSheetParams, PluginBase } from "windy-quicktable";
1
+ import { HandleSheetParams, PluginBase, HandleBatchParams } from "windy-quicktable";
2
2
  export declare function export_stuff(paras: HandleSheetParams): string | null;
3
3
  export declare class ExportPlugin extends PluginBase {
4
+ name: string;
5
+ tags: string[];
4
6
  handleSheet(paras: HandleSheetParams): string | null;
7
+ handleBatch(paras: HandleBatchParams): void;
5
8
  }
6
9
  export declare const ExportPlugins: ExportPlugin[];
7
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoC,iBAAiB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAGnG,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+JpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,WAAW,CAAC,KAAK,EAAE,iBAAiB;CAOpC;AAED,eAAO,MAAM,aAAa,gBAEzB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAO,iBAAiB,EAA+B,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA;AAGrH,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,GAAG,MAAM,GAAG,IAAI,CA+JpE;AAED,qBAAa,YAAa,SAAQ,UAAU;IAC3C,IAAI,SAAW;IACf,IAAI,EAAE,MAAM,EAAE,CAAS;IAEvB,WAAW,CAAC,KAAK,EAAE,iBAAiB;IAOpC,WAAW,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;CAG3C;AAED,eAAO,MAAM,aAAa,gBAEzB,CAAA"}
package/dist/index.js CHANGED
@@ -179,6 +179,11 @@ ${(0, windy_quicktable_1.foreach)(fields, f => ` public ${getFieldType(f.type)}
179
179
  }
180
180
  exports.export_stuff = export_stuff;
181
181
  class ExportPlugin extends windy_quicktable_1.PluginBase {
182
+ constructor() {
183
+ super(...arguments);
184
+ this.name = "csharp";
185
+ this.tags = ["cs"];
186
+ }
182
187
  handleSheet(paras) {
183
188
  let content = export_stuff(paras);
184
189
  if (content != null) {
@@ -186,6 +191,9 @@ class ExportPlugin extends windy_quicktable_1.PluginBase {
186
191
  }
187
192
  return content;
188
193
  }
194
+ handleBatch(paras) {
195
+ console.log("lkwej:", paras.workbookManager.dataTables.length);
196
+ }
189
197
  }
190
198
  exports.ExportPlugin = ExportPlugin;
191
199
  exports.ExportPlugins = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.0.4",
3
+ "version": "1.0.8",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -15,6 +15,6 @@
15
15
  "dependencies": {
16
16
  "@types/node": "^17.0.18",
17
17
  "fs": "^0.0.1-security",
18
- "windy-quicktable": "^1.3.27"
18
+ "windy-quicktable": "^1.3.34"
19
19
  }
20
20
  }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
- import { Field, foreach, st, cmm, IPlugin, HandleSheetParams, PluginBase } from "windy-quicktable";
1
+
2
+ import { cmm, HandleSheetParams, Field, foreach, IPlugin, st, PluginBase, HandleBatchParams } from "windy-quicktable"
2
3
  import * as fs from "fs"
3
4
 
4
5
  export function export_stuff(paras: HandleSheetParams): string | null {
@@ -163,6 +164,9 @@ ${foreach(fields, f =>
163
164
  }
164
165
 
165
166
  export class ExportPlugin extends PluginBase {
167
+ name = "csharp"
168
+ tags: string[] = ["cs"]
169
+
166
170
  handleSheet(paras: HandleSheetParams) {
167
171
  let content = export_stuff(paras)
168
172
  if (content != null) {
@@ -170,6 +174,9 @@ export class ExportPlugin extends PluginBase {
170
174
  }
171
175
  return content
172
176
  }
177
+ handleBatch(paras: HandleBatchParams): void {
178
+ console.log("lkwej:", paras.workbookManager.dataTables.length)
179
+ }
173
180
  }
174
181
 
175
182
  export const ExportPlugins = [
Binary file
Binary file