@react-querybuilder/core 8.14.3 → 8.15.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 +201 -8
- package/dist/cjs/react-querybuilder_core.cjs.development.js +400 -62
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +201 -8
- 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/{convertQuery-CeJSNn37.mjs → convertQuery-BeJJH9BI.mjs} +2 -2
- package/dist/convertQuery-BeJJH9BI.mjs.map +1 -0
- package/dist/{convertQuery-J8LpTG-7.js → convertQuery-Lx2HQa0m.js} +2 -2
- package/dist/convertQuery-Lx2HQa0m.js.map +1 -0
- package/dist/formatQuery.d.mts +24 -3
- package/dist/formatQuery.d.ts +24 -3
- package/dist/formatQuery.js +379 -51
- package/dist/formatQuery.js.map +1 -1
- package/dist/formatQuery.mjs +379 -52
- package/dist/formatQuery.mjs.map +1 -1
- package/dist/{import-Bltb2mT4.d.mts → import-0wp72lLT.d.mts} +2 -2
- package/dist/{import-B5Iq8XmL.d.ts → import-yRVJh7E1.d.ts} +2 -2
- package/dist/{basic-BXJVfD0P.d.ts → index-D5TXNIzF.d.ts} +595 -3
- package/dist/{basic-CNIjb6rI.d.mts → index-Lht_Wq3V.d.mts} +595 -3
- package/dist/{objectUtils-ButT0Mng.js → objectUtils-Bzug_QfX.js} +2 -2
- package/dist/objectUtils-Bzug_QfX.js.map +1 -0
- package/dist/{objectUtils-C0WB-8ex.mjs → objectUtils-D96eEEzL.mjs} +2 -2
- package/dist/objectUtils-D96eEEzL.mjs.map +1 -0
- package/dist/parseCEL.d.mts +2 -2
- package/dist/parseCEL.d.ts +2 -2
- package/dist/parseCEL.js +35 -35
- package/dist/parseCEL.js.map +1 -1
- package/dist/parseCEL.mjs +35 -35
- package/dist/parseCEL.mjs.map +1 -1
- package/dist/parseJSONata.d.mts +2 -2
- package/dist/parseJSONata.d.ts +2 -2
- package/dist/parseJSONata.js +11 -11
- package/dist/parseJSONata.js.map +1 -1
- package/dist/parseJSONata.mjs +11 -11
- package/dist/parseJSONata.mjs.map +1 -1
- package/dist/parseJsonLogic.d.mts +2 -3
- package/dist/parseJsonLogic.d.ts +2 -3
- package/dist/parseJsonLogic.js +6 -6
- package/dist/parseJsonLogic.js.map +1 -1
- package/dist/parseJsonLogic.mjs +6 -6
- package/dist/parseJsonLogic.mjs.map +1 -1
- package/dist/parseMongoDB.d.mts +2 -2
- package/dist/parseMongoDB.d.ts +2 -2
- package/dist/parseMongoDB.js +6 -6
- package/dist/parseMongoDB.js.map +1 -1
- package/dist/parseMongoDB.mjs +6 -6
- package/dist/parseMongoDB.mjs.map +1 -1
- package/dist/parseSQL.d.mts +2 -2
- package/dist/parseSQL.d.ts +2 -2
- package/dist/parseSQL.js +16 -16
- package/dist/parseSQL.js.map +1 -1
- package/dist/parseSQL.mjs +16 -16
- package/dist/parseSQL.mjs.map +1 -1
- package/dist/parseSpEL.d.mts +2 -2
- package/dist/parseSpEL.d.ts +2 -2
- package/dist/parseSpEL.js +10 -10
- package/dist/parseSpEL.js.map +1 -1
- package/dist/parseSpEL.mjs +10 -10
- package/dist/parseSpEL.mjs.map +1 -1
- package/dist/{prepareQueryObjects-DO3qXriW.js → prepareQueryObjects-BoG5Rt8z.js} +6 -6
- package/dist/prepareQueryObjects-BoG5Rt8z.js.map +1 -0
- package/dist/{prepareQueryObjects-BfMlS4ql.mjs → prepareQueryObjects-uA10ZpZX.mjs} +6 -6
- package/dist/prepareQueryObjects-uA10ZpZX.mjs.map +1 -0
- package/dist/query-builder.css +1 -1
- package/dist/query-builder.css.map +1 -1
- package/dist/react-querybuilder_core.d.mts +201 -8
- package/dist/react-querybuilder_core.legacy-esm.d.ts +201 -8
- package/dist/react-querybuilder_core.legacy-esm.js +441 -93
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +399 -63
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +201 -8
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/dist/styles/_main.scss +4 -0
- package/dist/transformQuery.d.mts +1 -1
- package/dist/transformQuery.d.ts +1 -1
- package/dist/transformQuery.js +1 -1
- package/dist/transformQuery.mjs +1 -1
- package/dist/{utils-BlMGIhvx.mjs → utils-ChLG90DP.mjs} +3 -3
- package/dist/utils-ChLG90DP.mjs.map +1 -0
- package/dist/{utils-CZRhzje-.js → utils-Qwkq2Q0F.js} +3 -3
- package/dist/utils-Qwkq2Q0F.js.map +1 -0
- package/package.json +12 -16
- package/dist/convertQuery-CeJSNn37.mjs.map +0 -1
- package/dist/convertQuery-J8LpTG-7.js.map +0 -1
- package/dist/export-6x7MilFR.d.mts +0 -451
- package/dist/export-CpJOQuZv.d.ts +0 -451
- package/dist/objectUtils-ButT0Mng.js.map +0 -1
- package/dist/objectUtils-C0WB-8ex.mjs.map +0 -1
- package/dist/prepareQueryObjects-BfMlS4ql.mjs.map +0 -1
- package/dist/prepareQueryObjects-DO3qXriW.js.map +0 -1
- package/dist/utils-BlMGIhvx.mjs.map +0 -1
- package/dist/utils-CZRhzje-.js.map +0 -1
|
@@ -1452,6 +1452,20 @@ type GetRuleTypeFromGroupWithFieldAndOperator<RG extends RuleGroupTypeAny, F ext
|
|
|
1452
1452
|
* Converts a narrowed rule group type to its most generic form.
|
|
1453
1453
|
*/
|
|
1454
1454
|
type GenericizeRuleGroupType<RG> = RG extends RuleGroupType ? RuleGroupType : RuleGroupTypeIC;
|
|
1455
|
+
/**
|
|
1456
|
+
* Converts a {@link RuleGroupType} extension to the corresponding
|
|
1457
|
+
* {@link RuleGroupTypeIC} type, preserving any additional properties.
|
|
1458
|
+
* If the type already extends {@link RuleGroupTypeIC}, it is returned as-is.
|
|
1459
|
+
*/
|
|
1460
|
+
type ToRuleGroupTypeIC<T extends RuleGroupTypeAny> = T extends RuleGroupTypeIC ? T : T extends DefaultRuleGroupType<infer F> ? DefaultRuleGroupTypeIC<F> : T extends RuleGroupType<infer R, infer C> ? RuleGroupTypeIC<R, C> & Omit<T, keyof RuleGroupType<R, C>> : T;
|
|
1461
|
+
/**
|
|
1462
|
+
* Converts a {@link RuleGroupTypeIC} extension to the corresponding
|
|
1463
|
+
* {@link RuleGroupType} type, preserving any additional properties.
|
|
1464
|
+
* If the type already extends {@link RuleGroupType} (non-IC), it is returned as-is.
|
|
1465
|
+
*/
|
|
1466
|
+
type ToRuleGroupType<T extends RuleGroupTypeAny> = T extends {
|
|
1467
|
+
combinator: string;
|
|
1468
|
+
} ? T : T extends DefaultRuleGroupTypeIC<infer F> ? DefaultRuleGroupType<F> : T extends RuleGroupTypeIC<infer R, infer C> ? RuleGroupType<R, C> & Omit<T, keyof RuleGroupTypeIC<R, C>> : T;
|
|
1455
1469
|
//#endregion
|
|
1456
1470
|
//#region src/types/validation.d.ts
|
|
1457
1471
|
/**
|
|
@@ -1506,7 +1520,7 @@ type ToOptionArrays<Sources extends readonly string[]> = Sources extends unknown
|
|
|
1506
1520
|
value: Sources[K];
|
|
1507
1521
|
label: string;
|
|
1508
1522
|
} } : never;
|
|
1509
|
-
type ToFlexibleOptionArrays<Sources extends readonly string[]> = Sources extends unknown ? { [K in keyof Sources]: FlexibleOption
|
|
1523
|
+
type ToFlexibleOptionArrays<Sources extends readonly string[]> = Sources extends unknown ? { [K in keyof Sources]: FlexibleOption } : never;
|
|
1510
1524
|
type WithOptionalClassName<T> = T & {
|
|
1511
1525
|
className?: Classname;
|
|
1512
1526
|
};
|
|
@@ -1726,13 +1740,13 @@ interface DropCollection {
|
|
|
1726
1740
|
*
|
|
1727
1741
|
* @group Export
|
|
1728
1742
|
*/
|
|
1729
|
-
type ExportFormat = "json" | "sql" | "json_without_ids" | "parameterized" | "parameterized_named" | "mongodb" | "mongodb_query" | "cel" | "jsonlogic" | "spel" | "elasticsearch" | "jsonata" | "natural_language" | "ldap" | "drizzle" | "prisma" | "sequelize";
|
|
1743
|
+
type ExportFormat = "json" | "sql" | "json_without_ids" | "parameterized" | "parameterized_named" | "mongodb" | "mongodb_query" | "cel" | "jsonlogic" | "spel" | "elasticsearch" | "jsonata" | "natural_language" | "ldap" | "drizzle" | "prisma" | "sequelize" | "diagnostics";
|
|
1730
1744
|
/**
|
|
1731
1745
|
* Export formats for {@link formatQuery} that produce objects instead of strings.
|
|
1732
1746
|
*
|
|
1733
1747
|
* @group Export
|
|
1734
1748
|
*/
|
|
1735
|
-
type ExportObjectFormats = "parameterized" | "parameterized_named" | "jsonlogic" | "elasticsearch" | "jsonata" | "mongodb_query";
|
|
1749
|
+
type ExportObjectFormats = "parameterized" | "parameterized_named" | "jsonlogic" | "elasticsearch" | "jsonata" | "mongodb_query" | "diagnostics";
|
|
1736
1750
|
/**
|
|
1737
1751
|
* Available presets for the "sql" export format.
|
|
1738
1752
|
*
|
|
@@ -2111,6 +2125,150 @@ interface ParameterizedNamedSQL {
|
|
|
2111
2125
|
params: Record<string, any>;
|
|
2112
2126
|
}
|
|
2113
2127
|
/**
|
|
2128
|
+
* A {@link RuleType} annotated with diagnostics results, as produced
|
|
2129
|
+
* by {@link formatQuery} for the `"diagnostics"` format.
|
|
2130
|
+
*
|
|
2131
|
+
* The generics mirror those of {@link RuleType}.
|
|
2132
|
+
*
|
|
2133
|
+
* @group Export
|
|
2134
|
+
*/
|
|
2135
|
+
type RuleDiagnosticsResult<F extends string = string, O extends string = string, V = any, C extends string = string> = RuleType<F, O, V, C> & {
|
|
2136
|
+
/** Whether the rule passed all validation checks. */valid: boolean;
|
|
2137
|
+
/**
|
|
2138
|
+
* Reasons why the rule is invalid. Only present when
|
|
2139
|
+
* the rule is invalid and specific reasons were provided
|
|
2140
|
+
* by the validator.
|
|
2141
|
+
*/
|
|
2142
|
+
reasons?: any[]; /** The path to this rule within the query tree. */
|
|
2143
|
+
path: number[]; /** The nesting depth of this rule (`path.length`). */
|
|
2144
|
+
level: number;
|
|
2145
|
+
};
|
|
2146
|
+
/**
|
|
2147
|
+
* The type of the `rules` array in a {@link RuleGroupDiagnosticsResult}.
|
|
2148
|
+
*
|
|
2149
|
+
* @group Export
|
|
2150
|
+
*/
|
|
2151
|
+
type RuleGroupDiagnosticsArray<RG extends RuleGroupDiagnosticsResult = RuleGroupDiagnosticsResult, R extends RuleDiagnosticsResult = RuleDiagnosticsResult> = RuleGroupArray<RG, R>;
|
|
2152
|
+
/**
|
|
2153
|
+
* A {@link RuleGroupType} annotated with diagnostics results, as produced
|
|
2154
|
+
* by {@link formatQuery} for the `"diagnostics"` format.
|
|
2155
|
+
*
|
|
2156
|
+
* The generics mirror those of {@link RuleGroupType}.
|
|
2157
|
+
*
|
|
2158
|
+
* @group Export
|
|
2159
|
+
*/
|
|
2160
|
+
interface RuleGroupDiagnosticsResult<R extends RuleDiagnosticsResult = RuleDiagnosticsResult, C extends string = string> extends Omit<RuleGroupType<R, C>, "rules"> {
|
|
2161
|
+
/** Whether the group and all of its descendants are valid. */
|
|
2162
|
+
valid: boolean;
|
|
2163
|
+
/**
|
|
2164
|
+
* Reasons why the group itself is invalid. Only present when
|
|
2165
|
+
* the group is invalid and specific reasons were provided
|
|
2166
|
+
* by the validator.
|
|
2167
|
+
*/
|
|
2168
|
+
reasons?: any[];
|
|
2169
|
+
/** The path to this group within the query tree. */
|
|
2170
|
+
path: number[];
|
|
2171
|
+
/** The nesting depth of this group (`path.length`). */
|
|
2172
|
+
level: number;
|
|
2173
|
+
rules: RuleGroupDiagnosticsArray<RuleGroupDiagnosticsResult<R, C>, R>;
|
|
2174
|
+
}
|
|
2175
|
+
/**
|
|
2176
|
+
* The type of the `rules` array in a {@link RuleGroupICDiagnosticsResult}.
|
|
2177
|
+
*
|
|
2178
|
+
* Mirrors {@link RuleGroupICArray} but with diagnostics-annotated node types.
|
|
2179
|
+
*
|
|
2180
|
+
* @group Export
|
|
2181
|
+
*/
|
|
2182
|
+
type RuleGroupICDiagnosticsArray<RG extends RuleGroupICDiagnosticsResult = RuleGroupICDiagnosticsResult, R extends RuleDiagnosticsResult = RuleDiagnosticsResult, C extends string = string> = RuleGroupICArray<RG, R, C>;
|
|
2183
|
+
/**
|
|
2184
|
+
* A {@link RuleGroupTypeIC} annotated with diagnostics results, as produced
|
|
2185
|
+
* by {@link formatQuery} for the `"diagnostics"` format (independent combinators).
|
|
2186
|
+
*
|
|
2187
|
+
* The generics mirror those of {@link RuleGroupTypeIC}.
|
|
2188
|
+
*
|
|
2189
|
+
* @group Export
|
|
2190
|
+
*/
|
|
2191
|
+
interface RuleGroupICDiagnosticsResult<R extends RuleDiagnosticsResult = RuleDiagnosticsResult, C extends string = string> extends Omit<RuleGroupTypeIC<R, C>, "rules"> {
|
|
2192
|
+
/** Whether the group and all of its descendants are valid. */
|
|
2193
|
+
valid: boolean;
|
|
2194
|
+
/**
|
|
2195
|
+
* Reasons why the group itself is invalid. Only present when
|
|
2196
|
+
* the group is invalid and specific reasons were provided
|
|
2197
|
+
* by the validator.
|
|
2198
|
+
*/
|
|
2199
|
+
reasons?: any[];
|
|
2200
|
+
/** The path to this group within the query tree. */
|
|
2201
|
+
path: number[];
|
|
2202
|
+
/** The nesting depth of this group (`path.length`). */
|
|
2203
|
+
level: number;
|
|
2204
|
+
rules: RuleGroupICDiagnosticsArray<RuleGroupICDiagnosticsResult<R, C>, R, C>;
|
|
2205
|
+
}
|
|
2206
|
+
/**
|
|
2207
|
+
* A single diagnostic entry produced by the `"diagnostics"` format.
|
|
2208
|
+
*
|
|
2209
|
+
* @group Export
|
|
2210
|
+
*/
|
|
2211
|
+
interface DiagnosticEntry {
|
|
2212
|
+
/** The `id` of the rule or group this diagnostic pertains to. */
|
|
2213
|
+
id: string;
|
|
2214
|
+
/** The path to the rule or group within the query tree. */
|
|
2215
|
+
path: number[];
|
|
2216
|
+
/** A machine-readable code identifying the type of diagnostic. */
|
|
2217
|
+
code: string;
|
|
2218
|
+
/** A human-readable description of the diagnostic. */
|
|
2219
|
+
message: string;
|
|
2220
|
+
/**
|
|
2221
|
+
* Which check produced this diagnostic.
|
|
2222
|
+
*
|
|
2223
|
+
* - `"placeholder"` — a placeholder field, operator, or value
|
|
2224
|
+
* - `"muted"` — a muted rule or group
|
|
2225
|
+
* - `"query-validator"` — the query-level validator
|
|
2226
|
+
* - `"field-validator"` — a field-level validator
|
|
2227
|
+
* - `"type-check"` — value/type mismatch based on field `inputType`
|
|
2228
|
+
* - `"field-check"` — field existence check against the `fields` config
|
|
2229
|
+
*/
|
|
2230
|
+
source: "placeholder" | "muted" | "query-validator" | "field-validator" | "type-check" | "field-check";
|
|
2231
|
+
}
|
|
2232
|
+
/**
|
|
2233
|
+
* Aggregate statistics for the `"diagnostics"` format.
|
|
2234
|
+
*
|
|
2235
|
+
* @group Export
|
|
2236
|
+
*/
|
|
2237
|
+
interface DiagnosticsStats {
|
|
2238
|
+
totalRules: number;
|
|
2239
|
+
totalGroups: number;
|
|
2240
|
+
validRules: number;
|
|
2241
|
+
invalidRules: number;
|
|
2242
|
+
validGroups: number;
|
|
2243
|
+
invalidGroups: number;
|
|
2244
|
+
}
|
|
2245
|
+
/**
|
|
2246
|
+
* Per-field summary entry for the `"diagnostics"` format.
|
|
2247
|
+
*
|
|
2248
|
+
* @group Export
|
|
2249
|
+
*/
|
|
2250
|
+
interface DiagnosticsFieldSummaryEntry {
|
|
2251
|
+
/** Number of rules referencing this field. */
|
|
2252
|
+
ruleCount: number;
|
|
2253
|
+
/** Number of invalid rules referencing this field. */
|
|
2254
|
+
invalidCount: number;
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* Top-level result of {@link formatQuery} for the `"diagnostics"` format.
|
|
2258
|
+
*
|
|
2259
|
+
* @group Export
|
|
2260
|
+
*/
|
|
2261
|
+
interface DiagnosticsResult {
|
|
2262
|
+
/** The annotated query tree with `valid`, `path`, and `level` on every node. */
|
|
2263
|
+
query: RuleGroupDiagnosticsResult | RuleGroupICDiagnosticsResult;
|
|
2264
|
+
/** A flat array of all diagnostic entries across the tree. */
|
|
2265
|
+
diagnostics: DiagnosticEntry[];
|
|
2266
|
+
/** Aggregate statistics about the query. */
|
|
2267
|
+
stats: DiagnosticsStats;
|
|
2268
|
+
/** Per-field summary of rule counts and invalid counts. */
|
|
2269
|
+
fieldSummary: Record<string, DiagnosticsFieldSummaryEntry>;
|
|
2270
|
+
}
|
|
2271
|
+
/**
|
|
2114
2272
|
* @group Export
|
|
2115
2273
|
*/
|
|
2116
2274
|
interface RQBJsonLogicStartsWith {
|
|
@@ -2335,6 +2493,16 @@ interface Classnames {
|
|
|
2335
2493
|
*/
|
|
2336
2494
|
dndDropNotAllowed: Classname;
|
|
2337
2495
|
/**
|
|
2496
|
+
* Classname(s) applied to a rule or group at its prospective position
|
|
2497
|
+
* during an active drag when `updateWhileDragging` is enabled.
|
|
2498
|
+
*/
|
|
2499
|
+
dndPreviewPosition: Classname;
|
|
2500
|
+
/**
|
|
2501
|
+
* Classname(s) applied to a dragged rule or group at its original position
|
|
2502
|
+
* to hide it when `updateWhileDragging` is enabled.
|
|
2503
|
+
*/
|
|
2504
|
+
dndHidden: Classname;
|
|
2505
|
+
/**
|
|
2338
2506
|
* Classname(s) applied to disabled elements.
|
|
2339
2507
|
*/
|
|
2340
2508
|
disabled: Classname;
|
|
@@ -2708,6 +2876,8 @@ declare const standardClassnames: {
|
|
|
2708
2876
|
readonly dndCopy: "dndCopy";
|
|
2709
2877
|
readonly dndGroup: "dndGroup";
|
|
2710
2878
|
readonly dndDropNotAllowed: "dndDropNotAllowed";
|
|
2879
|
+
readonly dndPreviewPosition: "dndPreviewPosition";
|
|
2880
|
+
readonly dndHidden: "dndHidden";
|
|
2711
2881
|
readonly dragHandle: "queryBuilder-dragHandle";
|
|
2712
2882
|
readonly disabled: "queryBuilder-disabled";
|
|
2713
2883
|
readonly muted: "queryBuilder-muted";
|
|
@@ -2864,7 +3034,7 @@ declare function clsx(...args: ClassValue[]): string;
|
|
|
2864
3034
|
*
|
|
2865
3035
|
* @group Query Tools
|
|
2866
3036
|
*/
|
|
2867
|
-
declare const convertFromIC: <RG extends
|
|
3037
|
+
declare const convertFromIC: <RG extends RuleGroupTypeAny>(rg: RG) => ToRuleGroupType<RG>;
|
|
2868
3038
|
/**
|
|
2869
3039
|
* Converts a {@link RuleGroupType} to {@link RuleGroupTypeIC}.
|
|
2870
3040
|
*
|
|
@@ -2873,7 +3043,7 @@ declare const convertFromIC: <RG extends RuleGroupType = RuleGroupType>(rg: Rule
|
|
|
2873
3043
|
*
|
|
2874
3044
|
* @group Query Tools
|
|
2875
3045
|
*/
|
|
2876
|
-
declare const convertToIC: <
|
|
3046
|
+
declare const convertToIC: <RG extends RuleGroupTypeAny>(rg: RG) => ToRuleGroupTypeIC<RG>;
|
|
2877
3047
|
/**
|
|
2878
3048
|
* Converts a {@link RuleGroupType} to {@link RuleGroupTypeIC}. For a more explicit
|
|
2879
3049
|
* operation, use {@link convertToIC}.
|
|
@@ -3086,6 +3256,19 @@ declare const defaultRuleGroupProcessorSpEL: RuleGroupProcessor<string>;
|
|
|
3086
3256
|
*/
|
|
3087
3257
|
declare const defaultRuleGroupProcessorSQL: RuleGroupProcessor<string>;
|
|
3088
3258
|
//#endregion
|
|
3259
|
+
//#region src/utils/formatQuery/defaultRuleGroupProcessorDiagnostics.d.ts
|
|
3260
|
+
/**
|
|
3261
|
+
* Rule group processor used by {@link formatQuery} for "diagnostics" format.
|
|
3262
|
+
*
|
|
3263
|
+
* Produces a {@link DiagnosticsResult} containing an annotated copy of the query
|
|
3264
|
+
* tree (`query`) with `valid`, `reasons`, `path`, and `level` properties on every
|
|
3265
|
+
* rule and group; a flat `diagnostics` array; aggregate `stats`; and a per-field
|
|
3266
|
+
* `fieldSummary`.
|
|
3267
|
+
*
|
|
3268
|
+
* @group Export
|
|
3269
|
+
*/
|
|
3270
|
+
declare const defaultRuleGroupProcessorDiagnostics: RuleGroupProcessor<DiagnosticsResult>;
|
|
3271
|
+
//#endregion
|
|
3089
3272
|
//#region src/utils/formatQuery/defaultRuleProcessorDrizzle.d.ts
|
|
3090
3273
|
/**
|
|
3091
3274
|
* Default rule processor used by {@link formatQuery} for the "drizzle" format.
|
|
@@ -3334,6 +3517,15 @@ declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "ldap" | (For
|
|
|
3334
3517
|
format: "ldap";
|
|
3335
3518
|
})): string;
|
|
3336
3519
|
/**
|
|
3520
|
+
* Generates a {@link DiagnosticsResult} from a query object, containing an annotated
|
|
3521
|
+
* query tree, a flat diagnostics array, aggregate stats, and a per-field summary.
|
|
3522
|
+
*
|
|
3523
|
+
* @group Export
|
|
3524
|
+
*/
|
|
3525
|
+
declare function formatQuery(ruleGroup: RuleGroupTypeAny, options: "diagnostics" | (FormatQueryOptions & {
|
|
3526
|
+
format: "diagnostics";
|
|
3527
|
+
})): DiagnosticsResult;
|
|
3528
|
+
/**
|
|
3337
3529
|
* Generates a formatted (indented two spaces) JSON string from a query object.
|
|
3338
3530
|
*
|
|
3339
3531
|
* @group Export
|
|
@@ -3592,6 +3784,7 @@ declare const generateAccessibleDescription: AccessibleDescriptionGenerator;
|
|
|
3592
3784
|
//#endregion
|
|
3593
3785
|
//#region src/utils/generateID.d.ts
|
|
3594
3786
|
type UUID = `${string}-${string}-${string}-${string}-${string}`;
|
|
3787
|
+
declare const uuidV4regex: RegExp;
|
|
3595
3788
|
/**
|
|
3596
3789
|
* Default `id` generator. Generates a valid v4 UUID. Uses `crypto.randomUUID()`
|
|
3597
3790
|
* when available, otherwise uses an alternate method based on `getRandomValues`.
|
|
@@ -3835,7 +4028,7 @@ declare function getFirstOption<Opt extends Option>(arr?: OptionGroup<Opt>[] | O
|
|
|
3835
4028
|
*
|
|
3836
4029
|
* @group Option Lists
|
|
3837
4030
|
*/
|
|
3838
|
-
declare const toFlatOptionArray: <T extends FullOption
|
|
4031
|
+
declare const toFlatOptionArray: <T extends FullOption>(arr: FullOptionList<T>) => T[];
|
|
3839
4032
|
/**
|
|
3840
4033
|
* Generates a new {@link OptionGroup} array with duplicates
|
|
3841
4034
|
* removed based on the identifying property (`value` or `name`).
|
|
@@ -3970,7 +4163,7 @@ declare const prepareRuleGroup: <RG extends RuleGroupTypeAny>(queryObject: RG, {
|
|
|
3970
4163
|
/**
|
|
3971
4164
|
* Ensures that a rule or group is valid. See {@link prepareRule} and {@link prepareRuleGroup}.
|
|
3972
4165
|
*/
|
|
3973
|
-
declare const prepareRuleOrGroup:
|
|
4166
|
+
declare const prepareRuleOrGroup: (rg: RuleGroupTypeAny | RuleType, {
|
|
3974
4167
|
idGenerator
|
|
3975
4168
|
}?: PreparerOptions) => RuleGroupType | RuleGroupTypeIC | RuleType;
|
|
3976
4169
|
//#endregion
|
|
@@ -4368,5 +4561,5 @@ declare function transformQuery(query: RuleGroupType, options?: TransformQueryOp
|
|
|
4368
4561
|
*/
|
|
4369
4562
|
declare function transformQuery(query: RuleGroupTypeIC, options?: TransformQueryOptions<RuleGroupTypeIC>): any;
|
|
4370
4563
|
//#endregion
|
|
4371
|
-
export { AccessibleDescriptionGenerator, ActionElementEventHandler, AddMethod, AddOptions, Arity, BaseFullOption, BaseOption, BaseOptionMap, BaseTranslation, BaseTranslationWithLabel, BaseTranslationWithPlaceholders, BaseTranslations, BaseTranslationsFull, Classname, Classnames, Combinator, CombinatorByValue, CommonRuleAndGroupProperties, CommonRuleSubComponentProps, ConstituentWordOrder, ConstituentWordOrderString, DefaultCombinator, DefaultCombinatorExtended, DefaultCombinatorName, DefaultCombinatorNameExtended, DefaultCombinators, DefaultCombinatorsExtended, DefaultMatchModes, DefaultOperator, DefaultOperatorName, DefaultOperators, DefaultRuleGroupArray, DefaultRuleGroupICArray, DefaultRuleGroupType, DefaultRuleGroupTypeAny, DefaultRuleGroupTypeIC, DefaultRuleOrGroupArray, DefaultRuleType, DndDropTargetType, DragCollection, DraggedItem, DropCollection, DropEffect, DropResult, ExportFormat, ExportObjectFormats, ExportOperatorMap, Field, FieldByValue, FindPathReturnType, FlexibleOption, FlexibleOptionGroup, FlexibleOptionList, FlexibleOptionListProp, FormatQueryFinalOptions, FormatQueryOptions, FormatQueryValidateRule, FullCombinator, FullField, FullOperator, FullOption, FullOptionList, FullOptionMap, FullOptionRecord, GenericizeRuleGroupType, GetOptionIdentifierType, GetOptionType, GetRuleGroupType, GetRuleTypeFromGroupWithFieldAndOperator, GroupMethod, GroupOptions, GroupVariantCondition, InputType, InsertMethod, InsertOptions, type JsonLogicAll, type JsonLogicAnd, type JsonLogicDoubleNegation, type JsonLogicEqual, type JsonLogicGreaterThan, type JsonLogicGreaterThanOrEqual, type JsonLogicInArray, type JsonLogicInString, type JsonLogicLessThan, type JsonLogicLessThanOrEqual, type JsonLogicNegation, type JsonLogicNone, type JsonLogicNotEqual, type JsonLogicOr, type JsonLogicReservedOperations, type JsonLogicRulesLogic, type JsonLogicSome, type JsonLogicStrictEqual, type JsonLogicStrictNotEqual, type JsonLogicVar, LogType, MatchConfig, MatchMode, MatchModeOptions, MoveMethod, MoveOptions, NLTranslationKey, NLTranslations, NameLabelPair, Operator, OperatorByValue, Option, OptionGroup, OptionList, ParameterizedNamedSQL, ParameterizedSQL, ParseNumberMethod, ParseNumberOptions, ParseNumbersPropConfig, Path, Placeholder, PrepareOptionListParams, PreparedOptionList, PreparerOptions, QueryActions, QueryBuilderFlags, QueryValidator, RQBJsonLogic, RQBJsonLogicEndsWith, RQBJsonLogicStartsWith, RQBJsonLogicVar, RegenerateIdOptions, RemoveMethod, RemoveNullability, RuleGroupArray, RuleGroupICArray, RuleGroupProcessor, RuleGroupType, RuleGroupTypeAny, RuleGroupTypeIC, RuleOrGroupArray, RuleProcessor, RuleType, RuleValidator, SQLPreset, StringUnionToFlexibleOptionArray, StringUnionToFullOptionArray, TestID, ToFlexibleOption, ToFullOption, TransformQueryOptions, UpdateMethod, UpdateOptions, UpdateableProperties, ValidationMap, ValidationResult, ValueChangeEventHandler, ValueEditorType, ValueOption, ValueProcessor, ValueProcessorByRule, ValueProcessorLegacy, ValueProcessorOptions, ValueSource, ValueSourceFlexibleOptions, ValueSourceFullOptions, ValueSources, WithRequired, WithUnknownIndex, add, addInPlace, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, clsx, convertFromIC, convertQuery, convertToIC, defaultCELValueProcessor, defaultCombinatorLabelMap, defaultCombinators, defaultCombinatorsExtended, defaultControlClassnames, defaultExportOperatorMap, defaultJoinChar, defaultMatchModes, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorLabelMap, defaultOperatorNegationMap, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultOperators, defaultPlaceholderFieldGroupLabel, defaultPlaceholderFieldLabel, defaultPlaceholderFieldName, defaultPlaceholderLabel, defaultPlaceholderName, defaultPlaceholderOperatorGroupLabel, defaultPlaceholderOperatorLabel, defaultPlaceholderOperatorName, defaultPlaceholderValueGroupLabel, defaultPlaceholderValueLabel, defaultPlaceholderValueName, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleProcessorCEL, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultSpELValueProcessor, defaultTranslations, defaultValidator, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, filterFieldsByComparator, findID, findPath, formatQuery, formatQueryOptionPresets, generateAccessibleDescription, generateID, getCommonAncestorPath, getFirstOption, getMatchModesUtil, getNLTranslataion, getOption, getParentPath, getParseNumberMethod, getPathOfID, getQuoteFieldNamesWithArray, getQuotedFieldName, getValidationClassNames, getValueSourcesUtil, group, groupInPlace, groupInvalidReasons, insert, insertInPlace, isAncestor, 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, nullFreeArray, nullOrUndefinedOrEmpty, numericRegex, numerifyValues, objectEntries, objectKeys, parseNumber, pathIsDisabled, pathsAreEqual, preferAnyProp, preferFlagProps, preferProp, prepareOptionList, prepareRule, prepareRuleGroup, prepareRuleOrGroup, prismaFallback, prismaOperators, processMatchMode, queryBuilderFlagDefaults, regenerateID, regenerateIDs, remove, removeInPlace, rootPath, shouldRenderAsNumber, splitBy, sqlDialectPresets, standardClassnames, toArray, toFlatOptionArray, toFullOption, toFullOptionList, toFullOptionMap, transformQuery, trimIfString, uniqByIdentifier, uniqByName, uniqOptGroups, uniqOptList, update, updateInPlace };
|
|
4564
|
+
export { AccessibleDescriptionGenerator, ActionElementEventHandler, AddMethod, AddOptions, Arity, BaseFullOption, BaseOption, BaseOptionMap, BaseTranslation, BaseTranslationWithLabel, BaseTranslationWithPlaceholders, BaseTranslations, BaseTranslationsFull, Classname, Classnames, Combinator, CombinatorByValue, CommonRuleAndGroupProperties, CommonRuleSubComponentProps, ConstituentWordOrder, ConstituentWordOrderString, DefaultCombinator, DefaultCombinatorExtended, DefaultCombinatorName, DefaultCombinatorNameExtended, DefaultCombinators, DefaultCombinatorsExtended, DefaultMatchModes, DefaultOperator, DefaultOperatorName, DefaultOperators, DefaultRuleGroupArray, DefaultRuleGroupICArray, DefaultRuleGroupType, DefaultRuleGroupTypeAny, DefaultRuleGroupTypeIC, DefaultRuleOrGroupArray, DefaultRuleType, DiagnosticEntry, DiagnosticsFieldSummaryEntry, DiagnosticsResult, DiagnosticsStats, DndDropTargetType, DragCollection, DraggedItem, DropCollection, DropEffect, DropResult, ExportFormat, ExportObjectFormats, ExportOperatorMap, Field, FieldByValue, FindPathReturnType, FlexibleOption, FlexibleOptionGroup, FlexibleOptionList, FlexibleOptionListProp, FormatQueryFinalOptions, FormatQueryOptions, FormatQueryValidateRule, FullCombinator, FullField, FullOperator, FullOption, FullOptionList, FullOptionMap, FullOptionRecord, GenericizeRuleGroupType, GetOptionIdentifierType, GetOptionType, GetRuleGroupType, GetRuleTypeFromGroupWithFieldAndOperator, GroupMethod, GroupOptions, GroupVariantCondition, InputType, InsertMethod, InsertOptions, type JsonLogicAll, type JsonLogicAnd, type JsonLogicDoubleNegation, type JsonLogicEqual, type JsonLogicGreaterThan, type JsonLogicGreaterThanOrEqual, type JsonLogicInArray, type JsonLogicInString, type JsonLogicLessThan, type JsonLogicLessThanOrEqual, type JsonLogicNegation, type JsonLogicNone, type JsonLogicNotEqual, type JsonLogicOr, type JsonLogicReservedOperations, type JsonLogicRulesLogic, type JsonLogicSome, type JsonLogicStrictEqual, type JsonLogicStrictNotEqual, type JsonLogicVar, LogType, MatchConfig, MatchMode, MatchModeOptions, MoveMethod, MoveOptions, NLTranslationKey, NLTranslations, NameLabelPair, Operator, OperatorByValue, Option, OptionGroup, OptionList, ParameterizedNamedSQL, ParameterizedSQL, ParseNumberMethod, ParseNumberOptions, ParseNumbersPropConfig, Path, Placeholder, PrepareOptionListParams, PreparedOptionList, PreparerOptions, QueryActions, QueryBuilderFlags, QueryValidator, RQBJsonLogic, RQBJsonLogicEndsWith, RQBJsonLogicStartsWith, RQBJsonLogicVar, RegenerateIdOptions, RemoveMethod, RemoveNullability, RuleDiagnosticsResult, RuleGroupArray, RuleGroupDiagnosticsArray, RuleGroupDiagnosticsResult, RuleGroupICArray, RuleGroupICDiagnosticsArray, RuleGroupICDiagnosticsResult, RuleGroupProcessor, RuleGroupType, RuleGroupTypeAny, RuleGroupTypeIC, RuleOrGroupArray, RuleProcessor, RuleType, RuleValidator, SQLPreset, StringUnionToFlexibleOptionArray, StringUnionToFullOptionArray, TestID, ToFlexibleOption, ToFullOption, ToRuleGroupType, ToRuleGroupTypeIC, TransformQueryOptions, UpdateMethod, UpdateOptions, UpdateableProperties, ValidationMap, ValidationResult, ValueChangeEventHandler, ValueEditorType, ValueOption, ValueProcessor, ValueProcessorByRule, ValueProcessorLegacy, ValueProcessorOptions, ValueSource, ValueSourceFlexibleOptions, ValueSourceFullOptions, ValueSources, WithRequired, WithUnknownIndex, add, addInPlace, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, clsx, convertFromIC, convertQuery, convertToIC, defaultCELValueProcessor, defaultCombinatorLabelMap, defaultCombinators, defaultCombinatorsExtended, defaultControlClassnames, defaultExportOperatorMap, defaultJoinChar, defaultMatchModes, defaultMongoDBValueProcessor, defaultNLTranslations, defaultOperatorLabelMap, defaultOperatorNegationMap, defaultOperatorProcessorNL, defaultOperatorProcessorSQL, defaultOperators, defaultPlaceholderFieldGroupLabel, defaultPlaceholderFieldLabel, defaultPlaceholderFieldName, defaultPlaceholderLabel, defaultPlaceholderName, defaultPlaceholderOperatorGroupLabel, defaultPlaceholderOperatorLabel, defaultPlaceholderOperatorName, defaultPlaceholderValueGroupLabel, defaultPlaceholderValueLabel, defaultPlaceholderValueName, defaultRuleGroupProcessorCEL, defaultRuleGroupProcessorDiagnostics, defaultRuleGroupProcessorDrizzle, defaultRuleGroupProcessorElasticSearch, defaultRuleGroupProcessorJSONata, defaultRuleGroupProcessorJsonLogic, defaultRuleGroupProcessorLDAP, defaultRuleGroupProcessorMongoDB, defaultRuleGroupProcessorMongoDBQuery, defaultRuleGroupProcessorNL, defaultRuleGroupProcessorParameterized, defaultRuleGroupProcessorPrisma, defaultRuleGroupProcessorSQL, defaultRuleGroupProcessorSequelize, defaultRuleGroupProcessorSpEL, defaultRuleProcessorCEL, defaultRuleProcessorDrizzle, defaultRuleProcessorElasticSearch, defaultRuleProcessorJSONata, defaultRuleProcessorJsonLogic, defaultRuleProcessorLDAP, defaultRuleProcessorMongoDB, defaultRuleProcessorMongoDBQuery, defaultRuleProcessorNL, defaultRuleProcessorParameterized, defaultRuleProcessorPrisma, defaultRuleProcessorSQL, defaultRuleProcessorSequelize, defaultRuleProcessorSpEL, defaultSpELValueProcessor, defaultTranslations, defaultValidator, defaultValueProcessor, defaultValueProcessorByRule, defaultValueProcessorCELByRule, defaultValueProcessorMongoDBByRule, defaultValueProcessorNL, defaultValueProcessorSpELByRule, filterFieldsByComparator, findID, findPath, formatQuery, formatQueryOptionPresets, generateAccessibleDescription, generateID, getCommonAncestorPath, getFirstOption, getMatchModesUtil, getNLTranslataion, getOption, getParentPath, getParseNumberMethod, getPathOfID, getQuoteFieldNamesWithArray, getQuotedFieldName, getValidationClassNames, getValueSourcesUtil, group, groupInPlace, groupInvalidReasons, insert, insertInPlace, isAncestor, 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, nullFreeArray, nullOrUndefinedOrEmpty, numericRegex, numerifyValues, objectEntries, objectKeys, parseNumber, pathIsDisabled, pathsAreEqual, preferAnyProp, preferFlagProps, preferProp, prepareOptionList, prepareRule, prepareRuleGroup, prepareRuleOrGroup, prismaFallback, prismaOperators, processMatchMode, queryBuilderFlagDefaults, regenerateID, regenerateIDs, remove, removeInPlace, rootPath, shouldRenderAsNumber, splitBy, sqlDialectPresets, standardClassnames, toArray, toFlatOptionArray, toFullOption, toFullOptionList, toFullOptionMap, transformQuery, trimIfString, uniqByIdentifier, uniqByName, uniqOptGroups, uniqOptList, update, updateInPlace, uuidV4regex };
|
|
4372
4565
|
//# sourceMappingURL=react-querybuilder_core.cjs.production.d.ts.map
|