export-table-pulgin-csharp 1.0.16 → 1.0.17

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,4 +1,4 @@
1
- import { HandleSheetParams, PluginBase } from "windy-quicktable";
1
+ import { HandleSheetParams, PluginBase } from "export-table-lib";
2
2
  export declare function export_stuff(paras: HandleSheetParams): string | null;
3
3
  export declare class ExportPlugin extends PluginBase {
4
4
  name: string;
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  exports.ExportPlugins = exports.ExportPlugin = exports.export_stuff = void 0;
27
- const windy_quicktable_1 = require("windy-quicktable");
27
+ const export_table_lib_1 = require("export-table-lib");
28
28
  const fs = __importStar(require("fs-extra"));
29
29
  function export_stuff(paras) {
30
30
  let { datas, fields, inject, name, objects, packagename, tables, xxtea, } = paras;
@@ -146,18 +146,18 @@ public class ${RowClass} {
146
146
 
147
147
  public static List<${RowClass}> Configs = new List<${RowClass}>()
148
148
  {
149
- ${(0, windy_quicktable_1.foreach)(datas, data => ` new ${RowClass}(${(0, windy_quicktable_1.st)(() => fields.map((f, index) => genValue(data[index], f)).join(", "))}),`)}
149
+ ${(0, export_table_lib_1.foreach)(datas, data => ` new ${RowClass}(${(0, export_table_lib_1.st)(() => fields.map((f, index) => genValue(data[index], f)).join(", "))}),`)}
150
150
  };
151
151
 
152
152
  public ${RowClass}() { }
153
- public ${RowClass}(${(0, windy_quicktable_1.st)(() => fields.map(f => `${getFieldType(f)} ${convVarName(f.name)}`).join(", "))})
153
+ public ${RowClass}(${(0, export_table_lib_1.st)(() => fields.map(f => `${getFieldType(f)} ${convVarName(f.name)}`).join(", "))})
154
154
  {
155
- ${(0, windy_quicktable_1.foreach)(fields, f => ` this.${convMemberName(f.name)} = ${convVarName(f.name)};`)}
155
+ ${(0, export_table_lib_1.foreach)(fields, f => ` this.${convMemberName(f.name)} = ${convVarName(f.name)};`)}
156
156
  }
157
157
 
158
158
  public virtual ${RowClass} MergeFrom(${RowClass} source)
159
159
  {
160
- ${(0, windy_quicktable_1.foreach)(fields, f => ` this.${convMemberName(f.name)} = source.${convMemberName(f.name)};`)}
160
+ ${(0, export_table_lib_1.foreach)(fields, f => ` this.${convMemberName(f.name)} = source.${convMemberName(f.name)};`)}
161
161
  return this;
162
162
  }
163
163
 
@@ -168,23 +168,23 @@ ${(0, windy_quicktable_1.foreach)(fields, f => ` this.${convMemberName(f.name)}
168
168
  return config;
169
169
  }
170
170
 
171
- ${(0, windy_quicktable_1.cmm)( /**生成字段 */)}
172
- ${(0, windy_quicktable_1.foreach)(fields, f => `
171
+ ${(0, export_table_lib_1.cmm)( /**生成字段 */)}
172
+ ${(0, export_table_lib_1.foreach)(fields, f => `
173
173
  /// <summary>
174
- ${(0, windy_quicktable_1.foreach)(getDescripts(f), line => ` /// ${line}`)}
174
+ ${(0, export_table_lib_1.foreach)(getDescripts(f), line => ` /// ${line}`)}
175
175
  /// </summary>
176
176
  public ${getFieldType(f)} ${convMemberName(f.name)};`)}
177
177
 
178
- ${(0, windy_quicktable_1.cmm)( /**生成get字段 */)}
178
+ ${(0, export_table_lib_1.cmm)( /**生成get字段 */)}
179
179
  #region get字段
180
- ${(0, windy_quicktable_1.foreach)(fields, f => ` public ${getFieldType(f)} ${getTitle(f).replace(" ", "_")} => ${convMemberName(f.name)};`)}
180
+ ${(0, export_table_lib_1.foreach)(fields, f => ` public ${getFieldType(f)} ${getTitle(f).replace(" ", "_")} => ${convMemberName(f.name)};`)}
181
181
  #endregion
182
182
  }
183
183
  `;
184
184
  return temp;
185
185
  }
186
186
  exports.export_stuff = export_stuff;
187
- class ExportPlugin extends windy_quicktable_1.PluginBase {
187
+ class ExportPlugin extends export_table_lib_1.PluginBase {
188
188
  constructor() {
189
189
  super(...arguments);
190
190
  this.name = "csharp";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "export-table-pulgin-csharp",
3
- "version": "1.0.16",
3
+ "version": "1.0.17",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "scripts": {
@@ -14,10 +14,10 @@
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
16
  "@types/node": "^17.0.18",
17
+ "export-table-lib": "^1.0.38",
17
18
  "fs": "^0.0.1-security",
18
19
  "fs-extra": "^10.0.0",
19
- "fse": "^4.0.1",
20
- "windy-quicktable": "^1.3.34"
20
+ "fse": "^4.0.1"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/fs-extra": "^9.0.13"
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import { cmm, HandleSheetParams, Field, foreach, IPlugin, st, PluginBase, HandleBatchParams } from "windy-quicktable"
2
+ import { cmm, HandleSheetParams, Field, foreach, IPlugin, st, PluginBase, HandleBatchParams } from "export-table-lib"
3
3
  import * as fs from "fs-extra"
4
4
 
5
5
  export function export_stuff(paras: HandleSheetParams): string | null {