dbgate-datalib 4.8.1 → 4.8.4
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/lib/GridDisplay.js +1 -1
- package/lib/JslGridDisplay.js +1 -2
- package/package.json +4 -4
package/lib/GridDisplay.js
CHANGED
|
@@ -500,7 +500,7 @@ class GridDisplay {
|
|
|
500
500
|
const column = this.isDynamicStructure ? null : this.columns.find(x => x.columnName == name);
|
|
501
501
|
if (!this.isDynamicStructure && !column)
|
|
502
502
|
continue;
|
|
503
|
-
const filterType =
|
|
503
|
+
const filterType = (_a = this.filterTypeOverride) !== null && _a !== void 0 ? _a : (this.isDynamicStructure ? 'mongo' : (0, dbgate_filterparser_1.getFilterType)(column.dataType));
|
|
504
504
|
try {
|
|
505
505
|
const condition = (0, dbgate_filterparser_1.parseFilter)(filters[name], filterType);
|
|
506
506
|
const replaced = lodash_1.default.cloneDeepWith(condition, (expr) => {
|
package/lib/JslGridDisplay.js
CHANGED
|
@@ -14,8 +14,7 @@ class JslGridDisplay extends GridDisplay_1.GridDisplay {
|
|
|
14
14
|
this.filterable = true;
|
|
15
15
|
this.supportsReload = supportsReload;
|
|
16
16
|
this.isDynamicStructure = isDynamicStructure;
|
|
17
|
-
|
|
18
|
-
this.filterTypeOverride = 'string';
|
|
17
|
+
this.filterTypeOverride = 'eval';
|
|
19
18
|
if (structure === null || structure === void 0 ? void 0 : structure.columns) {
|
|
20
19
|
this.columns = lodash_1.default.uniqBy((_a = structure.columns
|
|
21
20
|
.map(col => ({
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "4.8.
|
|
2
|
+
"version": "4.8.4",
|
|
3
3
|
"name": "dbgate-datalib",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"typings": "lib/index.d.ts",
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
"lib"
|
|
12
12
|
],
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"dbgate-sqltree": "^4.8.
|
|
15
|
-
"dbgate-filterparser": "^4.8.
|
|
14
|
+
"dbgate-sqltree": "^4.8.4",
|
|
15
|
+
"dbgate-filterparser": "^4.8.4"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"dbgate-types": "^4.8.
|
|
18
|
+
"dbgate-types": "^4.8.4",
|
|
19
19
|
"@types/node": "^13.7.0",
|
|
20
20
|
"typescript": "^4.4.3"
|
|
21
21
|
}
|