@react-querybuilder/core 8.23.0 → 8.24.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/cjs/react-querybuilder_core.cjs.development.d.ts +507 -448
- package/dist/cjs/react-querybuilder_core.cjs.development.js +169 -6
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +507 -448
- 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/derivations.d.mts +288 -237
- package/dist/derivations.d.ts +288 -237
- package/dist/derivations.js +137 -4
- package/dist/derivations.js.map +1 -1
- package/dist/derivations.mjs +136 -5
- package/dist/derivations.mjs.map +1 -1
- package/dist/formatQuery.d.mts +1 -1
- package/dist/formatQuery.d.ts +1 -1
- package/dist/formatQuery.js +7 -4
- package/dist/formatQuery.js.map +1 -1
- package/dist/formatQuery.mjs +7 -4
- package/dist/formatQuery.mjs.map +1 -1
- package/dist/{index-OF2Q1gTp.d.mts → index-94yESPHr.d.mts} +4 -2
- package/dist/{index-XueTy_XQ.d.ts → index-D41_Ba4j.d.ts} +4 -2
- package/dist/parseCEL.d.mts +110 -110
- package/dist/parseCEL.d.ts +110 -110
- package/dist/parseCEL.js +4 -4
- package/dist/parseCEL.js.map +1 -1
- package/dist/parseCEL.mjs +4 -4
- package/dist/parseCEL.mjs.map +1 -1
- package/dist/parseCypher.d.mts +7 -7
- package/dist/parseCypher.d.ts +7 -7
- package/dist/parseGremlin.d.mts +4 -4
- package/dist/parseGremlin.d.ts +4 -4
- package/dist/parseJSONata.d.mts +37 -37
- package/dist/parseJSONata.d.ts +37 -37
- package/dist/parseJSONata.js +2 -2
- package/dist/parseJSONata.mjs +2 -2
- package/dist/parseJsonLogic.d.mts +8 -8
- package/dist/parseJsonLogic.d.ts +8 -8
- package/dist/parseJsonLogic.js +3 -3
- package/dist/parseJsonLogic.mjs +3 -3
- package/dist/parseMongoDB.d.mts +7 -7
- package/dist/parseMongoDB.d.ts +7 -7
- package/dist/parseMongoDB.js +3 -3
- package/dist/parseMongoDB.mjs +3 -3
- package/dist/parseSPARQL.d.mts +4 -4
- package/dist/parseSPARQL.d.ts +4 -4
- package/dist/parseSQL.d.mts +61 -61
- package/dist/parseSQL.d.ts +61 -61
- package/dist/parseSQL.js +4 -4
- package/dist/parseSQL.js.map +1 -1
- package/dist/parseSQL.mjs +4 -4
- package/dist/parseSQL.mjs.map +1 -1
- package/dist/parseSpEL.d.mts +55 -55
- package/dist/parseSpEL.d.ts +55 -55
- package/dist/parseSpEL.js +4 -4
- package/dist/parseSpEL.js.map +1 -1
- package/dist/parseSpEL.mjs +4 -4
- package/dist/parseSpEL.mjs.map +1 -1
- package/dist/{parserUtils-DbBXyAht.js → parserUtils-2VtG7m8L.js} +3 -3
- package/dist/{parserUtils-DbBXyAht.js.map → parserUtils-2VtG7m8L.js.map} +1 -1
- package/dist/{parserUtils-BKPstAaO.mjs → parserUtils-BlafvoFb.mjs} +3 -3
- package/dist/{parserUtils-BKPstAaO.mjs.map → parserUtils-BlafvoFb.mjs.map} +1 -1
- package/dist/{prepareQueryObjects-Dj9cTl9D.js → prepareQueryObjects-DJ_VjOLb.js} +2 -2
- package/dist/{prepareQueryObjects-Dj9cTl9D.js.map → prepareQueryObjects-DJ_VjOLb.js.map} +1 -1
- package/dist/{prepareQueryObjects-Dmyf3Wi_.mjs → prepareQueryObjects-DawsH4e3.mjs} +2 -2
- package/dist/{prepareQueryObjects-Dmyf3Wi_.mjs.map → prepareQueryObjects-DawsH4e3.mjs.map} +1 -1
- package/dist/react-querybuilder_core.d.mts +507 -448
- package/dist/react-querybuilder_core.legacy-esm.d.ts +507 -448
- package/dist/react-querybuilder_core.legacy-esm.js +172 -14
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +168 -7
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +507 -448
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/dist/{utils-e-7KHkjV.js → utils-B4E1-ZvU.js} +12 -2
- package/dist/utils-B4E1-ZvU.js.map +1 -0
- package/dist/{utils-CP5Jqy1P.mjs → utils-DLZCoyAh.mjs} +12 -2
- package/dist/utils-DLZCoyAh.mjs.map +1 -0
- package/package.json +20 -19
- package/dist/utils-CP5Jqy1P.mjs.map +0 -1
- package/dist/utils-e-7KHkjV.js.map +0 -1
|
@@ -43,6 +43,7 @@ const controlKeys = [
|
|
|
43
43
|
"ruleGroupHeaderElements",
|
|
44
44
|
"shiftActions",
|
|
45
45
|
"undoRedoActions",
|
|
46
|
+
"ungroupAction",
|
|
46
47
|
"valueEditor",
|
|
47
48
|
"valueSelector",
|
|
48
49
|
"valueSourceSelector"
|
|
@@ -453,6 +454,7 @@ const controlPropKeys = {
|
|
|
453
454
|
"toggleLockGroup",
|
|
454
455
|
"toggleMuteGroup",
|
|
455
456
|
"translations",
|
|
457
|
+
"ungroup",
|
|
456
458
|
"validationClassName",
|
|
457
459
|
"validationResult"
|
|
458
460
|
],
|
|
@@ -500,6 +502,7 @@ const controlPropKeys = {
|
|
|
500
502
|
"toggleLockGroup",
|
|
501
503
|
"toggleMuteGroup",
|
|
502
504
|
"translations",
|
|
505
|
+
"ungroup",
|
|
503
506
|
"validationClassName",
|
|
504
507
|
"validationResult"
|
|
505
508
|
],
|
|
@@ -536,6 +539,22 @@ const controlPropKeys = {
|
|
|
536
539
|
"titles",
|
|
537
540
|
"validation"
|
|
538
541
|
],
|
|
542
|
+
ungroupAction: [
|
|
543
|
+
"className",
|
|
544
|
+
"context",
|
|
545
|
+
"disabled",
|
|
546
|
+
"disabledTranslation",
|
|
547
|
+
"handleOnClick",
|
|
548
|
+
"label",
|
|
549
|
+
"level",
|
|
550
|
+
"path",
|
|
551
|
+
"ruleOrGroup",
|
|
552
|
+
"rules",
|
|
553
|
+
"schema",
|
|
554
|
+
"testID",
|
|
555
|
+
"title",
|
|
556
|
+
"validation"
|
|
557
|
+
],
|
|
539
558
|
valueEditor: [
|
|
540
559
|
"className",
|
|
541
560
|
"context",
|
|
@@ -636,6 +655,7 @@ const controlKind = {
|
|
|
636
655
|
ruleGroupHeaderElements: null,
|
|
637
656
|
shiftActions: null,
|
|
638
657
|
undoRedoActions: null,
|
|
658
|
+
ungroupAction: "action",
|
|
639
659
|
valueEditor: null,
|
|
640
660
|
valueSelector: null,
|
|
641
661
|
valueSourceSelector: "selector"
|
|
@@ -763,6 +783,10 @@ const defaultTranslations = {
|
|
|
763
783
|
label: "⧉",
|
|
764
784
|
title: "Clone group"
|
|
765
785
|
},
|
|
786
|
+
ungroupRuleGroup: {
|
|
787
|
+
label: "⊟",
|
|
788
|
+
title: "Ungroup"
|
|
789
|
+
},
|
|
766
790
|
shiftActionUp: {
|
|
767
791
|
label: "˄",
|
|
768
792
|
title: "Shift up"
|
|
@@ -1090,6 +1114,7 @@ const standardClassnames = {
|
|
|
1090
1114
|
addGroup: "ruleGroup-addGroup",
|
|
1091
1115
|
cloneRule: "rule-cloneRule",
|
|
1092
1116
|
cloneGroup: "ruleGroup-cloneGroup",
|
|
1117
|
+
ungroup: "ruleGroup-ungroup",
|
|
1093
1118
|
removeGroup: "ruleGroup-remove",
|
|
1094
1119
|
notToggle: "ruleGroup-notToggle",
|
|
1095
1120
|
rule: "rule",
|
|
@@ -1144,6 +1169,7 @@ const defaultControlClassnames = {
|
|
|
1144
1169
|
addGroup: "",
|
|
1145
1170
|
cloneRule: "",
|
|
1146
1171
|
cloneGroup: "",
|
|
1172
|
+
ungroup: "",
|
|
1147
1173
|
removeGroup: "",
|
|
1148
1174
|
notToggle: "",
|
|
1149
1175
|
rule: "",
|
|
@@ -1205,6 +1231,7 @@ const TestID = {
|
|
|
1205
1231
|
addGroup: "add-group",
|
|
1206
1232
|
removeGroup: "remove-group",
|
|
1207
1233
|
cloneGroup: "clone-group",
|
|
1234
|
+
ungroup: "ungroup",
|
|
1208
1235
|
cloneRule: "clone-rule",
|
|
1209
1236
|
addRule: "add-rule",
|
|
1210
1237
|
removeRule: "remove-rule",
|
|
@@ -1236,11 +1263,13 @@ const LogType = {
|
|
|
1236
1263
|
onMoveRuleFalse: "onMoveRule callback returned false",
|
|
1237
1264
|
onMoveGroupFalse: "onMoveGroup callback returned false",
|
|
1238
1265
|
onRemoveFalse: "onRemove callback returned false",
|
|
1266
|
+
onUngroupFalse: "onUngroup callback returned false",
|
|
1239
1267
|
add: "rule or group added",
|
|
1240
1268
|
remove: "rule or group removed",
|
|
1241
1269
|
update: "rule or group updated",
|
|
1242
1270
|
move: "rule or group moved",
|
|
1243
|
-
group: "rule or group grouped with another"
|
|
1271
|
+
group: "rule or group grouped with another",
|
|
1272
|
+
ungroup: "group replaced by its own rules"
|
|
1244
1273
|
};
|
|
1245
1274
|
/**
|
|
1246
1275
|
* The {@link Path} of the root group.
|
|
@@ -1273,6 +1302,7 @@ const queryBuilderFlagDefaults = {
|
|
|
1273
1302
|
showNotToggle: false,
|
|
1274
1303
|
showShiftActions: false,
|
|
1275
1304
|
showUndoRedo: false,
|
|
1305
|
+
showUngroupButtons: false,
|
|
1276
1306
|
suppressStandardClassnames: false
|
|
1277
1307
|
};
|
|
1278
1308
|
/**
|
|
@@ -1304,6 +1334,7 @@ const strictAbortReasons = [
|
|
|
1304
1334
|
"target-not-found",
|
|
1305
1335
|
"parent-not-found",
|
|
1306
1336
|
"parent-not-a-group",
|
|
1337
|
+
"target-not-a-group",
|
|
1307
1338
|
"destination-not-found",
|
|
1308
1339
|
"root-not-allowed",
|
|
1309
1340
|
"not-a-combinator-slot",
|
|
@@ -1631,6 +1662,7 @@ const ruleGroupClassnameSources = {
|
|
|
1631
1662
|
addRule: ["actionElement", "addRule"],
|
|
1632
1663
|
addGroup: ["actionElement", "addGroup"],
|
|
1633
1664
|
cloneGroup: ["actionElement", "cloneGroup"],
|
|
1665
|
+
ungroup: ["actionElement", "ungroup"],
|
|
1634
1666
|
lockGroup: ["actionElement", "lockGroup"],
|
|
1635
1667
|
muteGroup: ["actionElement", "muteGroup"],
|
|
1636
1668
|
removeGroup: ["actionElement", "removeGroup"],
|
|
@@ -3451,7 +3483,9 @@ const defaultRuleGroupProcessorElasticSearch = (ruleGroup, options) => {
|
|
|
3451
3483
|
*
|
|
3452
3484
|
* At the top level, filter rules produce chained `.has()` steps (implicit AND).
|
|
3453
3485
|
* Nested groups use `.and()` / `.or()` / `.not()` compound traversals with
|
|
3454
|
-
* `__` anonymous traversal prefixes.
|
|
3486
|
+
* `__` anonymous traversal prefixes. Since `not()` accepts exactly one
|
|
3487
|
+
* traversal, negated groups with multiple predicates wrap them in a single
|
|
3488
|
+
* `__.and()`/`__.or()` sub-traversal.
|
|
3455
3489
|
*
|
|
3456
3490
|
* @group Export
|
|
3457
3491
|
*/
|
|
@@ -3488,9 +3522,10 @@ const defaultRuleGroupProcessorGremlin = (ruleGroup, options) => {
|
|
|
3488
3522
|
}
|
|
3489
3523
|
if (predicates.length === 0) return "";
|
|
3490
3524
|
const combinator = rg.combinator ?? "and";
|
|
3491
|
-
const prefix = rg.not ? "not" : combinator;
|
|
3492
3525
|
if (predicates.length === 1 && !rg.not) return predicates[0];
|
|
3493
|
-
|
|
3526
|
+
const args = predicates.map((p) => p.startsWith(".") ? `__${p}` : p).join(", ");
|
|
3527
|
+
if (rg.not) return predicates.length === 1 ? `.not(${args})` : `.not(__.${combinator}(${args}))`;
|
|
3528
|
+
return `.${combinator}(${args})`;
|
|
3494
3529
|
};
|
|
3495
3530
|
if (!isRuleOrGroupValid(ruleGroup, validationMap[ruleGroup.id ?? /* v8 ignore start -- @preserve */ ""])) return fallbackExpression;
|
|
3496
3531
|
const steps = [];
|
|
@@ -6281,6 +6316,7 @@ const mergeClassnames = (...args) => ({
|
|
|
6281
6316
|
addGroup: joinClassnamesByName("addGroup", args),
|
|
6282
6317
|
cloneRule: joinClassnamesByName("cloneRule", args),
|
|
6283
6318
|
cloneGroup: joinClassnamesByName("cloneGroup", args),
|
|
6319
|
+
ungroup: joinClassnamesByName("ungroup", args),
|
|
6284
6320
|
removeGroup: joinClassnamesByName("removeGroup", args),
|
|
6285
6321
|
rule: joinClassnamesByName("rule", args),
|
|
6286
6322
|
fields: joinClassnamesByName("fields", args),
|
|
@@ -6843,6 +6879,81 @@ const removeInPlace = (query, pathOrID, options = {}) => {
|
|
|
6843
6879
|
} else parent.rules.splice(index, 1);
|
|
6844
6880
|
return query;
|
|
6845
6881
|
};
|
|
6882
|
+
/**
|
|
6883
|
+
* Replaces a group with its own rules in its parent group, without mutating the original query.
|
|
6884
|
+
*
|
|
6885
|
+
* The group's `combinator`, `not`, `id`, `muted`, and `disabled` properties are discarded; its
|
|
6886
|
+
* rules keep their `id`s since they remain in the same query. An empty group is simply removed.
|
|
6887
|
+
*
|
|
6888
|
+
* @returns A new query with the group's rules promoted into its parent group.
|
|
6889
|
+
*
|
|
6890
|
+
* @group Query Tools
|
|
6891
|
+
*/
|
|
6892
|
+
const ungroup = (query, pathOrID, options = {}) => producerFor(options.freeze)(query, (q) => ungroupInPlace(q, pathOrID, options));
|
|
6893
|
+
/**
|
|
6894
|
+
* Replaces a group with its own rules in its parent group, in place.
|
|
6895
|
+
*
|
|
6896
|
+
* @returns The query (mutated in place) with the group's rules promoted into its parent group.
|
|
6897
|
+
*
|
|
6898
|
+
* @group Query Tools
|
|
6899
|
+
*/
|
|
6900
|
+
const ungroupInPlace = (query, pathOrID, options = {}) => {
|
|
6901
|
+
const { onAbort } = options;
|
|
6902
|
+
const path = Array.isArray(pathOrID) ? pathOrID : getPathOfID(pathOrID, query);
|
|
6903
|
+
if (!path) {
|
|
6904
|
+
onAbort?.({
|
|
6905
|
+
reason: "target-not-found",
|
|
6906
|
+
operation: "ungroup",
|
|
6907
|
+
pathOrID
|
|
6908
|
+
});
|
|
6909
|
+
return query;
|
|
6910
|
+
}
|
|
6911
|
+
if (path.length === 0) {
|
|
6912
|
+
onAbort?.({
|
|
6913
|
+
reason: "root-not-allowed",
|
|
6914
|
+
operation: "ungroup",
|
|
6915
|
+
pathOrID
|
|
6916
|
+
});
|
|
6917
|
+
return query;
|
|
6918
|
+
}
|
|
6919
|
+
const ungroupGuardReason = getGuardAbortReason(query, path, options);
|
|
6920
|
+
if (ungroupGuardReason) {
|
|
6921
|
+
onAbort?.({
|
|
6922
|
+
reason: ungroupGuardReason,
|
|
6923
|
+
operation: "ungroup",
|
|
6924
|
+
pathOrID
|
|
6925
|
+
});
|
|
6926
|
+
return query;
|
|
6927
|
+
}
|
|
6928
|
+
const target = findPath(path, query);
|
|
6929
|
+
if (!target) {
|
|
6930
|
+
onAbort?.({
|
|
6931
|
+
reason: "target-not-found",
|
|
6932
|
+
operation: "ungroup",
|
|
6933
|
+
pathOrID
|
|
6934
|
+
});
|
|
6935
|
+
return query;
|
|
6936
|
+
}
|
|
6937
|
+
if (!isRuleGroup(target)) {
|
|
6938
|
+
onAbort?.({
|
|
6939
|
+
reason: "target-not-a-group",
|
|
6940
|
+
operation: "ungroup",
|
|
6941
|
+
pathOrID
|
|
6942
|
+
});
|
|
6943
|
+
return query;
|
|
6944
|
+
}
|
|
6945
|
+
const index = path.at(-1);
|
|
6946
|
+
const parent = findPath(getParentPath(path), query);
|
|
6947
|
+
if (target.rules.length === 0) {
|
|
6948
|
+
if (!isRuleGroupType(parent) && parent.rules.length > 1) {
|
|
6949
|
+
const idxStartDelete = index === 0 ? 0 : index - 1;
|
|
6950
|
+
parent.rules.splice(idxStartDelete, 2);
|
|
6951
|
+
} else parent.rules.splice(index, 1);
|
|
6952
|
+
return query;
|
|
6953
|
+
}
|
|
6954
|
+
parent.rules.splice(index, 1, ...target.rules);
|
|
6955
|
+
return query;
|
|
6956
|
+
};
|
|
6846
6957
|
const getNextPath = (query, currentPath, newPathOrShiftDirection) => {
|
|
6847
6958
|
if (Array.isArray(newPathOrShiftDirection)) return newPathOrShiftDirection;
|
|
6848
6959
|
const ic = isRuleGroupTypeIC(query);
|
|
@@ -7181,7 +7292,7 @@ const groupInPlace = (query, sourcePathOrID, targetPathOrID, options = {}) => {
|
|
|
7181
7292
|
//#endregion
|
|
7182
7293
|
//#region src/utils/queryActions.ts
|
|
7183
7294
|
/**
|
|
7184
|
-
* Builds the query builder's
|
|
7295
|
+
* Builds the query builder's seven mutation handlers as pure functions of the current query.
|
|
7185
7296
|
*
|
|
7186
7297
|
* This is the framework-agnostic core of the action handlers in `useQueryBuilderSchema`. It owns
|
|
7187
7298
|
* the policy that surrounds the query tools—disabled gating, the confirmation callback protocol,
|
|
@@ -7191,7 +7302,7 @@ const groupInPlace = (query, sourcePathOrID, targetPathOrID, options = {}) => {
|
|
|
7191
7302
|
* @group Query Tools
|
|
7192
7303
|
*/
|
|
7193
7304
|
const createQueryActions = (config = {}) => {
|
|
7194
|
-
const { qbId, combinators, idGenerator, maxLevels = Infinity, queryDisabled, respectDisabled = true, disabledPaths, resetOnFieldChange, resetOnOperatorChange, getRuleDefaultOperator, getValueSources, getRuleDefaultValue, getMatchModes, freeze, onAddRule, onAddGroup, onRemove, onMoveRule, onMoveGroup, onGroupRule, onGroupGroup, onLog } = config;
|
|
7305
|
+
const { qbId, combinators, idGenerator, maxLevels = Infinity, queryDisabled, respectDisabled = true, disabledPaths, resetOnFieldChange, resetOnOperatorChange, getRuleDefaultOperator, getValueSources, getRuleDefaultValue, getMatchModes, freeze, onAddRule, onAddGroup, onRemove, onMoveRule, onMoveGroup, onGroupRule, onGroupGroup, onUngroup, onLog } = config;
|
|
7195
7306
|
const log = (payload) => onLog?.({
|
|
7196
7307
|
qbId,
|
|
7197
7308
|
...payload
|
|
@@ -7431,6 +7542,39 @@ const createQueryActions = (config = {}) => {
|
|
|
7431
7542
|
clone
|
|
7432
7543
|
});
|
|
7433
7544
|
return newQuery;
|
|
7545
|
+
},
|
|
7546
|
+
ungroupRuleGroup: (query, path, context) => {
|
|
7547
|
+
if (blocked(query, path)) {
|
|
7548
|
+
log({
|
|
7549
|
+
type: LogType.pathDisabled,
|
|
7550
|
+
path,
|
|
7551
|
+
query
|
|
7552
|
+
});
|
|
7553
|
+
return;
|
|
7554
|
+
}
|
|
7555
|
+
const ruleGroup = findPath(path, query);
|
|
7556
|
+
if (path.length === 0 || !isRuleGroup(ruleGroup)) return void 0;
|
|
7557
|
+
const nextQuery = ungroup(query, path, { freeze });
|
|
7558
|
+
const callbackResult = onUngroup ? onUngroup(ruleGroup, path, query, nextQuery, context) : true;
|
|
7559
|
+
if (!callbackResult) {
|
|
7560
|
+
log({
|
|
7561
|
+
type: LogType.onUngroupFalse,
|
|
7562
|
+
ruleGroup,
|
|
7563
|
+
path,
|
|
7564
|
+
query,
|
|
7565
|
+
nextQuery
|
|
7566
|
+
});
|
|
7567
|
+
return;
|
|
7568
|
+
}
|
|
7569
|
+
const newQuery = isRuleGroup(callbackResult) ? callbackResult : nextQuery;
|
|
7570
|
+
log({
|
|
7571
|
+
type: LogType.ungroup,
|
|
7572
|
+
query,
|
|
7573
|
+
newQuery,
|
|
7574
|
+
path,
|
|
7575
|
+
ruleGroup
|
|
7576
|
+
});
|
|
7577
|
+
return newQuery;
|
|
7434
7578
|
}
|
|
7435
7579
|
};
|
|
7436
7580
|
};
|
|
@@ -7998,6 +8142,23 @@ var QueryManager = class QueryManager {
|
|
|
7998
8142
|
return this;
|
|
7999
8143
|
}
|
|
8000
8144
|
/**
|
|
8145
|
+
* Replaces the group at `pathOrID` with its own rules in the parent group. The group's
|
|
8146
|
+
* `combinator`, `not`, `id`, `muted`, and `disabled` properties are discarded; an empty group
|
|
8147
|
+
* is simply removed.
|
|
8148
|
+
*/
|
|
8149
|
+
ungroup(pathOrID, options = {}) {
|
|
8150
|
+
const { strict, onInvalidTarget, ...toolOptions } = options;
|
|
8151
|
+
this.commit(ungroup(this.state.query, pathOrID, {
|
|
8152
|
+
...this.toolOptions(),
|
|
8153
|
+
...toolOptions,
|
|
8154
|
+
onAbort: this.onAbort({
|
|
8155
|
+
strict,
|
|
8156
|
+
onInvalidTarget
|
|
8157
|
+
})
|
|
8158
|
+
}));
|
|
8159
|
+
return this;
|
|
8160
|
+
}
|
|
8161
|
+
/**
|
|
8001
8162
|
* The options currently in effect, as a frozen shallow copy. Reflects everything applied by
|
|
8002
8163
|
* the constructor and any subsequent {@link QueryManager.reconfigure} calls, but not the
|
|
8003
8164
|
* defaults filled in for options that were never provided.
|
|
@@ -8523,6 +8684,6 @@ var QueryManager = class QueryManager {
|
|
|
8523
8684
|
}
|
|
8524
8685
|
};
|
|
8525
8686
|
//#endregion
|
|
8526
|
-
export { LogType, QueryManager, QueryManagerError, TestID, add, addInPlace, betweenOperators, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, clsx, coerceBigIntValue, coerceInputType, controlKeys, controlKind, controlPropKeys, convertFromIC, convertQuery, convertToIC, createQueryActions, createRule, createRuleGroup, cypherCombinatorMap, defaultCELValueProcessor, defaultCoalesceMs, defaultCombinatorLabelMap, defaultCombinators, defaultCombinatorsExtended, defaultControlClassnames, defaultExportOperatorMap, defaultJoinChar, defaultMatchModes, defaultMaxHistory, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorLabelMap, defaultOperatorNegationMap, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultOperators, defaultPlaceholderFieldGroupLabel, defaultPlaceholderFieldLabel, defaultPlaceholderFieldName, defaultPlaceholderLabel, defaultPlaceholderName, defaultPlaceholderOperatorGroupLabel, defaultPlaceholderOperatorLabel, defaultPlaceholderOperatorName, defaultPlaceholderValueGroupLabel, defaultPlaceholderValueLabel, defaultPlaceholderValueName, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorCypher, defaultRuleGroupProcessorDiagnostics, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorGremlin, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSPARQL, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleGroupProcessorTanStackDB, defaultRuleProcessorCEL, defaultRuleProcessorCypher, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorGremlin, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSPARQL, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultRuleProcessorTanStackDB, defaultSpELValueProcessor, defaultTranslations, defaultValidator, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, derivePathInfo, deriveQueryBuilderClassNames, deriveRuleClassName, deriveRuleClassNames, deriveRuleContext, deriveRuleGroupClassNames, deriveRuleGroupContext, deriveRuleGroupOuterClassName, deriveRuleOuterClassName, exceedsMaxLevels, filterFieldsByComparator, findID, findPath, formatQuery, formatQueryOptionPresets, generateAccessibleDescription, generateID, getCommonAncestorPath, getFieldData, getFirstOption, getGuardAbortReason, getLikeWildcards, getMatchModesUtil, getMultiValueUpdate, getNLTranslataion, getOption, getParametersAsList, getParentPath, getParseNumberMethod, getPathOfID, getQuoteFieldNamesWithArray, getQuotedFieldName, getRuleDefaultValue, getRuleGroupCombinator, getRuleInputType, getRuleValidationResult, getRuleValueEditorType, getRuleValueSourceOptions, getRuleValues, getSQLConcat, getSubqueryElementAlias, getValidationClassNames, getValueEditorReset, getValueSelectorUpdate, getValueSourcesUtil, group, groupInPlace, groupInvalidReasons, hideValueControlsForOperator, inOperators, insert, insertInPlace, isAncestor, isBetweenOperator, isFlexibleOptionArray, isFlexibleOptionGroupArray, isFullOptionArray, isFullOptionGroupArray, isOptionGroupArray, isPojo, isRuleGroup, isRuleGroupType, isRuleGroupTypeIC, isRuleOrGroupValid, isRuleType, isUnsafeKey, isValidValue, isValidationResult, isValueProcessorLegacy, joinWith, jsonLogicAdditionalOperators, lc, mapSQLOperator, mergeAnyTranslation, mergeAnyTranslations, mergeClassnames, mongoDbFallback, mongoOperators, move, moveInPlace, normalizeConstituentWordOrder, normalizeValueSelectorValue, nullFreeArray, nullOperators, nullOrUndefinedOrEmpty, numericRegex, numerifyValues, objectEntries, objectKeys, optionsEqual, parseNumber, pathIsDisabled, pathIsDisabledByPaths, pathsAreEqual, preferAnyProp, preferFlagProps, preferProp, prepareOptionList, prepareRule, prepareRuleGroup, prepareRuleOrGroup, prismaFallback, prismaOperators, processMatchMode, queryBuilderFlagDefaults, regenerateID, regenerateIDs, relationalOperators, remove, removeInPlace, resolveCandidateQuery, resolveDefaultOperator, resolveOperatorList, resolveValueEditorType, resolveValueList, rootPath, setAutoFreeze, shouldCoalesce, shouldRenderAsNumber, signatureOf, sparqlVar, splitBy, sqlDialectPresets, standardClassnames, strictAbortReasons, stripParamPrefix, structuralSignature, subqueryElementAliasBase, substringOperators, toArray, toFlatOptionArray, toFullOption, toFullOptionList, toFullOptionMap, transformQuery, trimIfString, unchangedSignature, uniqByIdentifier, uniqByName, uniqOptGroups, uniqOptList, update, updateInPlace, uuidV4regex, valuesEqual, withParamPrefix, wrapLikeFragment };
|
|
8687
|
+
export { LogType, QueryManager, QueryManagerError, TestID, add, addInPlace, betweenOperators, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, clsx, coerceBigIntValue, coerceInputType, controlKeys, controlKind, controlPropKeys, convertFromIC, convertQuery, convertToIC, createQueryActions, createRule, createRuleGroup, cypherCombinatorMap, defaultCELValueProcessor, defaultCoalesceMs, defaultCombinatorLabelMap, defaultCombinators, defaultCombinatorsExtended, defaultControlClassnames, defaultExportOperatorMap, defaultJoinChar, defaultMatchModes, defaultMaxHistory, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorLabelMap, defaultOperatorNegationMap, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultOperators, defaultPlaceholderFieldGroupLabel, defaultPlaceholderFieldLabel, defaultPlaceholderFieldName, defaultPlaceholderLabel, defaultPlaceholderName, defaultPlaceholderOperatorGroupLabel, defaultPlaceholderOperatorLabel, defaultPlaceholderOperatorName, defaultPlaceholderValueGroupLabel, defaultPlaceholderValueLabel, defaultPlaceholderValueName, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorCypher, defaultRuleGroupProcessorDiagnostics, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorGremlin, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSPARQL, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleGroupProcessorTanStackDB, defaultRuleProcessorCEL, defaultRuleProcessorCypher, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorGremlin, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSPARQL, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultRuleProcessorTanStackDB, defaultSpELValueProcessor, defaultTranslations, defaultValidator, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, derivePathInfo, deriveQueryBuilderClassNames, deriveRuleClassName, deriveRuleClassNames, deriveRuleContext, deriveRuleGroupClassNames, deriveRuleGroupContext, deriveRuleGroupOuterClassName, deriveRuleOuterClassName, exceedsMaxLevels, filterFieldsByComparator, findID, findPath, formatQuery, formatQueryOptionPresets, generateAccessibleDescription, generateID, getCommonAncestorPath, getFieldData, getFirstOption, getGuardAbortReason, getLikeWildcards, getMatchModesUtil, getMultiValueUpdate, getNLTranslataion, getOption, getParametersAsList, getParentPath, getParseNumberMethod, getPathOfID, getQuoteFieldNamesWithArray, getQuotedFieldName, getRuleDefaultValue, getRuleGroupCombinator, getRuleInputType, getRuleValidationResult, getRuleValueEditorType, getRuleValueSourceOptions, getRuleValues, getSQLConcat, getSubqueryElementAlias, getValidationClassNames, getValueEditorReset, getValueSelectorUpdate, getValueSourcesUtil, group, groupInPlace, groupInvalidReasons, hideValueControlsForOperator, inOperators, insert, insertInPlace, isAncestor, isBetweenOperator, isFlexibleOptionArray, isFlexibleOptionGroupArray, isFullOptionArray, isFullOptionGroupArray, isOptionGroupArray, isPojo, isRuleGroup, isRuleGroupType, isRuleGroupTypeIC, isRuleOrGroupValid, isRuleType, isUnsafeKey, isValidValue, isValidationResult, isValueProcessorLegacy, joinWith, jsonLogicAdditionalOperators, lc, mapSQLOperator, mergeAnyTranslation, mergeAnyTranslations, mergeClassnames, mongoDbFallback, mongoOperators, move, moveInPlace, normalizeConstituentWordOrder, normalizeValueSelectorValue, nullFreeArray, nullOperators, nullOrUndefinedOrEmpty, numericRegex, numerifyValues, objectEntries, objectKeys, optionsEqual, parseNumber, pathIsDisabled, pathIsDisabledByPaths, pathsAreEqual, preferAnyProp, preferFlagProps, preferProp, prepareOptionList, prepareRule, prepareRuleGroup, prepareRuleOrGroup, prismaFallback, prismaOperators, processMatchMode, queryBuilderFlagDefaults, regenerateID, regenerateIDs, relationalOperators, remove, removeInPlace, resolveCandidateQuery, resolveDefaultOperator, resolveOperatorList, resolveValueEditorType, resolveValueList, rootPath, setAutoFreeze, shouldCoalesce, shouldRenderAsNumber, signatureOf, sparqlVar, splitBy, sqlDialectPresets, standardClassnames, strictAbortReasons, stripParamPrefix, structuralSignature, subqueryElementAliasBase, substringOperators, toArray, toFlatOptionArray, toFullOption, toFullOptionList, toFullOptionMap, transformQuery, trimIfString, unchangedSignature, ungroup, ungroupInPlace, uniqByIdentifier, uniqByName, uniqOptGroups, uniqOptList, update, updateInPlace, uuidV4regex, valuesEqual, withParamPrefix, wrapLikeFragment };
|
|
8527
8688
|
|
|
8528
8689
|
//# sourceMappingURL=react-querybuilder_core.mjs.map
|