basesite-shared-grid-lib 21.0.1-beta.2 → 21.0.1-beta.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.
|
Binary file
|
|
@@ -313,10 +313,15 @@ class OdataProvider {
|
|
|
313
313
|
return me.odataOperator[col.type](colName, `${me.toDateTime(col.dateFrom)}`, `${me.toDateTime(col.dateTo)}`);
|
|
314
314
|
}
|
|
315
315
|
break;
|
|
316
|
-
case 'set':
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
316
|
+
case 'set': {
|
|
317
|
+
if (!col.values || col.values.length === 0) {
|
|
318
|
+
return '';
|
|
319
|
+
}
|
|
320
|
+
const containsClauses = col.values.map((v) => me.odataOperator.contains(colName, `'${me.encode(v)}'`, isCaseSensitiveStringFilter));
|
|
321
|
+
return containsClauses.length === 1
|
|
322
|
+
? containsClauses[0]
|
|
323
|
+
: `(${containsClauses.join(' or ')})`;
|
|
324
|
+
}
|
|
320
325
|
default:
|
|
321
326
|
break;
|
|
322
327
|
}
|