@react-querybuilder/core 8.13.0 → 8.14.0
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/{basic-_KlsCAyT.d.ts → basic-Dxm6jWFu.d.ts} +10 -10
- package/dist/{basic-Cw014pDc.d.mts → basic-GFsWfi0Z.d.mts} +10 -10
- package/dist/cjs/react-querybuilder_core.cjs.development.d.ts +23 -23
- package/dist/cjs/react-querybuilder_core.cjs.development.js +24 -1
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +23 -23
- package/dist/cjs/react-querybuilder_core.cjs.production.js +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
- package/dist/{export-DRA8O1Wz.d.ts → export-6VbkhCrf.d.ts} +2 -2
- package/dist/{export-CffjLxEe.d.mts → export-_wipiqJZ.d.mts} +2 -2
- package/dist/formatQuery.d.mts +2 -2
- package/dist/formatQuery.d.ts +2 -2
- package/dist/formatQuery.js +24 -1
- package/dist/formatQuery.js.map +1 -1
- package/dist/formatQuery.mjs +24 -1
- package/dist/formatQuery.mjs.map +1 -1
- package/dist/{import-CWYJkN_w.d.ts → import-D8M7awTx.d.ts} +2 -2
- package/dist/{import-DjHGaGhJ.d.mts → import-DRmutNSr.d.mts} +2 -2
- package/dist/parseCEL.d.mts +2 -2
- package/dist/parseCEL.d.ts +2 -2
- package/dist/parseCEL.js +6 -6
- package/dist/parseCEL.js.map +1 -1
- package/dist/parseCEL.mjs +1 -1
- package/dist/parseJSONata.d.mts +2 -2
- package/dist/parseJSONata.d.ts +2 -2
- package/dist/parseJSONata.js +3 -3
- package/dist/parseJSONata.js.map +1 -1
- package/dist/parseJSONata.mjs +1 -2
- package/dist/parseJSONata.mjs.map +1 -1
- package/dist/parseJsonLogic.d.mts +3 -3
- package/dist/parseJsonLogic.d.ts +3 -3
- package/dist/parseJsonLogic.js +1 -1
- package/dist/parseJsonLogic.mjs +1 -1
- package/dist/parseMongoDB.d.mts +2 -2
- package/dist/parseMongoDB.d.ts +2 -2
- package/dist/parseMongoDB.js +1 -1
- package/dist/parseMongoDB.mjs +1 -1
- package/dist/parseSQL.d.mts +2 -2
- package/dist/parseSQL.d.ts +2 -2
- package/dist/parseSQL.js +6 -6
- package/dist/parseSQL.js.map +1 -1
- package/dist/parseSQL.mjs +1 -1
- package/dist/parseSpEL.d.mts +2 -2
- package/dist/parseSpEL.d.ts +2 -2
- package/dist/parseSpEL.js +1 -1
- package/dist/parseSpEL.mjs +1 -1
- package/dist/{prepareQueryObjects-6Bxx4Bs1.mjs → prepareQueryObjects-BBayjIn2.mjs} +2 -5
- package/dist/prepareQueryObjects-BBayjIn2.mjs.map +1 -0
- package/dist/{prepareQueryObjects-CkN0bTKm.js → prepareQueryObjects-BxWvIPI4.js} +2 -5
- package/dist/prepareQueryObjects-BxWvIPI4.js.map +1 -0
- package/dist/react-querybuilder_core.d.mts +23 -23
- package/dist/react-querybuilder_core.legacy-esm.d.ts +23 -23
- package/dist/react-querybuilder_core.legacy-esm.js +28 -8
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +24 -1
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +23 -23
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/dist/transformQuery.d.mts +1 -1
- package/dist/transformQuery.d.ts +1 -1
- package/dist/transformQuery.js +0 -1
- package/dist/transformQuery.mjs +0 -1
- package/dist/utils-CR1ToTMW.js.map +1 -1
- package/dist/utils-nQU7WCM9.mjs.map +1 -1
- package/package.json +14 -14
- package/dist/prepareQueryObjects-6Bxx4Bs1.mjs.map +0 -1
- package/dist/prepareQueryObjects-CkN0bTKm.js.map +0 -1
|
@@ -2585,7 +2585,30 @@ const defaultRuleProcessorElasticSearch = (rule, options = {}) => {
|
|
|
2585
2585
|
const { field, operator, value, valueSource } = rule;
|
|
2586
2586
|
const { parseNumbers, preserveValueOrder } = options;
|
|
2587
2587
|
const operatorLC = lc(operator);
|
|
2588
|
-
|
|
2588
|
+
const matchEval = processMatchMode(rule);
|
|
2589
|
+
if (matchEval === false) return false;
|
|
2590
|
+
else if (matchEval) {
|
|
2591
|
+
const { mode } = matchEval;
|
|
2592
|
+
const subQuery = defaultRuleGroupProcessorElasticSearch(transformQuery(rule.value, { ruleProcessor: (r) => ({
|
|
2593
|
+
...r,
|
|
2594
|
+
field: r.field ? `${field}.${r.field}` : field
|
|
2595
|
+
}) }), options);
|
|
2596
|
+
if (Object.keys(subQuery).length === 0) return false;
|
|
2597
|
+
switch (mode) {
|
|
2598
|
+
case "some": return { nested: {
|
|
2599
|
+
path: field,
|
|
2600
|
+
query: subQuery
|
|
2601
|
+
} };
|
|
2602
|
+
case "none": return { bool: { must_not: { nested: {
|
|
2603
|
+
path: field,
|
|
2604
|
+
query: subQuery
|
|
2605
|
+
} } } };
|
|
2606
|
+
case "all":
|
|
2607
|
+
case "atleast":
|
|
2608
|
+
case "atmost":
|
|
2609
|
+
case "exactly": return false;
|
|
2610
|
+
}
|
|
2611
|
+
}
|
|
2589
2612
|
if (valueSource === "field") {
|
|
2590
2613
|
if (toArray(value).some((v) => typeof v !== "string")) return false;
|
|
2591
2614
|
const fieldForScript = escapeSQ(field);
|