@hapiboo/flux 1.1.2 → 1.1.3
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/application.js +14 -4
- package/package.json +1 -1
package/dist/application.js
CHANGED
|
@@ -82,6 +82,14 @@ var fluxApplication;
|
|
|
82
82
|
return undefined;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
+
function processValue(column, value) {
|
|
86
|
+
if (column.type === 'S' && typeof value === 'string' && value.length === 0) {
|
|
87
|
+
return undefined;
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return value;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
85
93
|
function getModel(source) {
|
|
86
94
|
const model = modelCache.get(source);
|
|
87
95
|
if (!model) {
|
|
@@ -157,14 +165,16 @@ var fluxApplication;
|
|
|
157
165
|
const values = new core_1.Dictionary();
|
|
158
166
|
columns.forEach((col) => {
|
|
159
167
|
const value = getValue(item, col.propertyKey);
|
|
160
|
-
|
|
161
|
-
|
|
168
|
+
const processed = processValue(col.info, value);
|
|
169
|
+
if (processed !== undefined) {
|
|
170
|
+
values.push(col.info.name, processed);
|
|
162
171
|
}
|
|
163
172
|
});
|
|
164
173
|
calculatedColumns.forEach((col) => {
|
|
165
174
|
const value = callValueFunction(item, col.methodKey);
|
|
166
|
-
|
|
167
|
-
|
|
175
|
+
const processed = processValue(col.info, value);
|
|
176
|
+
if (processed !== undefined) {
|
|
177
|
+
values.push(col.info.name, processed);
|
|
168
178
|
}
|
|
169
179
|
});
|
|
170
180
|
return {
|