bt-core-app 2.1.7 → 2.1.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/bt-core-app.js +1 -1
- package/dist/index.d.ts +4 -4
- package/package.json +1 -1
package/dist/bt-core-app.js
CHANGED
|
@@ -41915,7 +41915,7 @@ function Mse(e, t, a) {
|
|
|
41915
41915
|
for (var o = 0; o < n.length; o++) {
|
|
41916
41916
|
var s = n[o].split(","), u = {};
|
|
41917
41917
|
a != null && a(s, u), r.forEach((c) => {
|
|
41918
|
-
c.opt.onProcessProp != null ? c.opt.onProcessProp(s[c.csvInd], u) : u[c.opt.propName] = s[c.csvInd];
|
|
41918
|
+
c.opt.onProcessProp != null ? c.opt.onProcessProp(s[c.csvInd], u) : c.opt.propName != null && (u[c.opt.propName] = s[c.csvInd]);
|
|
41919
41919
|
}), i.push(u);
|
|
41920
41920
|
}
|
|
41921
41921
|
return i;
|
package/dist/index.d.ts
CHANGED
|
@@ -983,12 +983,12 @@ export declare interface GetChartResult {
|
|
|
983
983
|
|
|
984
984
|
export declare function getColors(): string[];
|
|
985
985
|
|
|
986
|
-
export declare function getCSVItems<T>(csvTxt: string, options: GetCSVOption[], onProcessItem?: (csvItem: string[], item: T) => void): T[];
|
|
986
|
+
export declare function getCSVItems<T>(csvTxt: string, options: GetCSVOption<T>[], onProcessItem?: (csvItem: string[], item: T) => void): T[];
|
|
987
987
|
|
|
988
|
-
export declare interface GetCSVOption {
|
|
988
|
+
export declare interface GetCSVOption<T> {
|
|
989
989
|
csvColumnNames: string[];
|
|
990
|
-
onProcessProp?:
|
|
991
|
-
propName
|
|
990
|
+
onProcessProp?: (v: string, ret: T) => void;
|
|
991
|
+
propName?: string;
|
|
992
992
|
}
|
|
993
993
|
|
|
994
994
|
export declare interface GetDataSetOptions<T> {
|
package/package.json
CHANGED