@react-querybuilder/core 8.22.0 → 8.22.2
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 +25 -3
- package/dist/cjs/react-querybuilder_core.cjs.development.js +36 -4
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +25 -3
- 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/react-querybuilder_core.d.mts +25 -3
- package/dist/react-querybuilder_core.legacy-esm.d.ts +25 -3
- package/dist/react-querybuilder_core.legacy-esm.js +47 -14
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +36 -5
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +25 -3
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -3326,6 +3326,11 @@ interface RuleClassNameState extends DndClassNameState {
|
|
|
3326
3326
|
muted?: boolean;
|
|
3327
3327
|
hasSubQuery?: boolean;
|
|
3328
3328
|
}
|
|
3329
|
+
/** State that contributes conditional classnames to the query builder's wrapper element. */
|
|
3330
|
+
interface QueryBuilderClassNameState {
|
|
3331
|
+
disabled?: boolean;
|
|
3332
|
+
validationResult?: boolean | ValidationMap;
|
|
3333
|
+
}
|
|
3329
3334
|
/** Options common to every classname derivation. */
|
|
3330
3335
|
interface DeriveClassNamesOptions {
|
|
3331
3336
|
/** The merged `controlClassnames` for the query builder. */
|
|
@@ -3356,8 +3361,8 @@ declare const deriveRuleClassName: (key: RuleClassnameKey, options: DeriveClassN
|
|
|
3356
3361
|
* @group Query Tools
|
|
3357
3362
|
*/
|
|
3358
3363
|
declare const deriveRuleGroupClassNames: (options: DeriveClassNamesOptions & DndClassNameState) => Record<RuleGroupClassnameKey, string>;
|
|
3359
|
-
/** Inputs to
|
|
3360
|
-
interface
|
|
3364
|
+
/** Inputs common to every outer (wrapper) classname derivation. */
|
|
3365
|
+
interface OuterClassNameOptionsBase extends DeriveClassNamesOptions {
|
|
3361
3366
|
/**
|
|
3362
3367
|
* Classnames contributed by the rule or group itself and its configuration, applied first.
|
|
3363
3368
|
* For a rule that is the rule/field/operator classnames; for a group, the group and combinator
|
|
@@ -3367,6 +3372,8 @@ interface OuterClassNameOptions extends DeriveClassNamesOptions, RuleClassNameSt
|
|
|
3367
3372
|
/** Appended last, as produced by `getValidationClassNames`. */
|
|
3368
3373
|
validationClassName?: Classname;
|
|
3369
3374
|
}
|
|
3375
|
+
/** Inputs to {@link deriveRuleOuterClassName} and {@link deriveRuleGroupOuterClassName}. */
|
|
3376
|
+
interface OuterClassNameOptions extends OuterClassNameOptionsBase, RuleClassNameState {}
|
|
3370
3377
|
/**
|
|
3371
3378
|
* The outer (wrapper) classname for a rule, including every conditional state class.
|
|
3372
3379
|
*
|
|
@@ -3383,6 +3390,13 @@ declare const deriveRuleOuterClassName: (options: OuterClassNameOptions) => stri
|
|
|
3383
3390
|
* @group Query Tools
|
|
3384
3391
|
*/
|
|
3385
3392
|
declare const deriveRuleGroupOuterClassName: (options: OuterClassNameOptions) => string;
|
|
3393
|
+
/**
|
|
3394
|
+
* The outer (wrapper) classname for the query builder itself, including the conditional
|
|
3395
|
+
* `disabled`, `valid`, and `invalid` state classes.
|
|
3396
|
+
*
|
|
3397
|
+
* @group Query Tools
|
|
3398
|
+
*/
|
|
3399
|
+
declare const deriveQueryBuilderClassNames: (options: OuterClassNameOptionsBase & QueryBuilderClassNameState) => string;
|
|
3386
3400
|
//#endregion
|
|
3387
3401
|
//#region src/utils/defaultValidator.d.ts
|
|
3388
3402
|
/**
|
|
@@ -5657,6 +5671,14 @@ interface QueryManagerOptions<F extends FullField = FullField, O extends FullOpe
|
|
|
5657
5671
|
autoSelectOperator?: boolean;
|
|
5658
5672
|
/** When `false`, an empty placeholder option is prepended to each value list. */
|
|
5659
5673
|
autoSelectValue?: boolean;
|
|
5674
|
+
/**
|
|
5675
|
+
* Translations, accepting the same shape as the `translations` prop. Only the placeholder
|
|
5676
|
+
* properties of `fields`, `operators`, and `values` are used, and only when the corresponding
|
|
5677
|
+
* `autoSelect*` option is `false`; the remaining keys describe UI elements that have no
|
|
5678
|
+
* meaning outside the `QueryBuilder` component. Labels are typed as `unknown` so the React
|
|
5679
|
+
* `Translations` type, whose labels are `ReactNode`, can be passed as-is.
|
|
5680
|
+
*/
|
|
5681
|
+
translations?: Partial<BaseTranslations<unknown>>;
|
|
5660
5682
|
/** The default `field` for rules created by {@link QueryManager.createRule}. */
|
|
5661
5683
|
getDefaultField?: string | ((fieldsData: FullOptionList<F>) => string);
|
|
5662
5684
|
/** The default `operator` for a given field. */
|
|
@@ -6245,5 +6267,5 @@ declare const unchangedSignature = "";
|
|
|
6245
6267
|
*/
|
|
6246
6268
|
declare const signatureOf: (prev: RuleGroupTypeAny, next: RuleGroupTypeAny) => string;
|
|
6247
6269
|
//#endregion
|
|
6248
|
-
export { AbortInfo, AbortOptions, AbortReason, AccessibleDescriptionGenerator, ActionElementEventHandler, AddMethod, AddOptions, Arity, BaseFullOption, BaseOption, BaseOptionMap, BaseTranslation, BaseTranslationWithLabel, BaseTranslationWithPlaceholders, BaseTranslations, BaseTranslationsFull, Classname, ClassnameCondition, ClassnameSpec, Classnames, Combinator, CombinatorByValue, CommonRuleAndGroupProperties, CommonRuleSubComponentProps, ConstituentWordOrder, ConstituentWordOrderString, CreateRuleGroupOptions, CreateRuleOptions, DefaultCombinator, DefaultCombinatorExtended, DefaultCombinatorName, DefaultCombinatorNameExtended, DefaultCombinators, DefaultCombinatorsExtended, DefaultMatchModes, DefaultOperator, DefaultOperatorName, DefaultOperators, DefaultRuleGroupArray, DefaultRuleGroupICArray, DefaultRuleGroupType, DefaultRuleGroupTypeAny, DefaultRuleGroupTypeIC, DefaultRuleOrGroupArray, DefaultRuleType, DeriveClassNamesOptions, DiagnosticEntry, DiagnosticsFieldSummaryEntry, DiagnosticsResult, DiagnosticsStats, DndClassNameState, DndDropTargetType, DragCollection, DraggedItem, DropCollection, DropEffect, DropResult, ExportFormat, ExportObjectFormats, ExportOperatorMap, ExpressionNode, Field, FieldByValue, FindPathReturnType, FlexibleOption, FlexibleOptionGroup, FlexibleOptionList, FlexibleOptionListProp, FormatQueryFinalOptions, FormatQueryOptions, FormatQueryValidateRule, FullCombinator, FullField, FullOperator, FullOption, FullOptionList, FullOptionMap, FullOptionRecord, GenericizeRuleGroupType, GetOptionIdentifierType, GetOptionType, GetRuleDefaultValueOptions, GetRuleGroupType, GetRuleTypeFromGroupWithFieldAndOperator, GroupMethod, GroupOptions, GroupVariantCondition, GuardOptions, 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, OuterClassNameOptions, ParameterizedNamedSQL, ParameterizedSQL, ParseNumberMethod, ParseNumberOptions, ParseNumbersPropConfig, Path, PathInfo, Placeholder, PrepareOptionListParams, PreparedOptionList, PreparerOptions, QueryActionCallbacks, QueryActionHandlers, QueryActions, QueryActionsConfig, QueryBuilderFlags, QueryHistoryOptions, QueryManager, QueryManagerError, QueryManagerOptions, QueryNode, QueryValidator, RQBJsonLogic, RQBJsonLogicEndsWith, RQBJsonLogicStartsWith, RQBJsonLogicVar, RegenerateIdOptions, RemoveMethod, RemoveNullability, RemoveOptions, ResolveOptionListOptions, RuleClassNameState, RuleClassnameKey, RuleContext, RuleContextResolvers, RuleDiagnosticsResult, RuleFacet, RuleGroupArray, RuleGroupClassnameKey, RuleGroupContext, RuleGroupDiagnosticsArray, RuleGroupDiagnosticsResult, RuleGroupICArray, RuleGroupICDiagnosticsArray, RuleGroupICDiagnosticsResult, RuleGroupProcessor, RuleGroupType, RuleGroupTypeAny, RuleGroupTypeIC, RuleOrGroupArray, RuleProcessor, RuleType, RuleValidator, SQLPreset, StrictOptions, StringUnionToFlexibleOptionArray, StringUnionToFullOptionArray, TestID, ToFlexibleOption, ToFullOption, ToRuleGroupType, ToRuleGroupTypeIC, TransformQueryOptions, UpdateMethod, UpdateOptions, UpdateValueMap, UpdateableProperties, ValidationMap, ValidationResult, ValueChangeEventHandler, ValueEditorType, ValueOption, ValueProcessor, ValueProcessorByRule, ValueProcessorLegacy, ValueProcessorOptions, ValueSource, ValueSourceFlexibleOptions, ValueSourceFullOptions, ValueSources, WalkOptions, WithRequired, WithUnknownIndex, add, addInPlace, betweenOperators, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, clsx, coerceBigIntValue, coerceInputType, 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, 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$1 as 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, 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, 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, withParamPrefix, wrapLikeFragment };
|
|
6270
|
+
export { AbortInfo, AbortOptions, AbortReason, AccessibleDescriptionGenerator, ActionElementEventHandler, AddMethod, AddOptions, Arity, BaseFullOption, BaseOption, BaseOptionMap, BaseTranslation, BaseTranslationWithLabel, BaseTranslationWithPlaceholders, BaseTranslations, BaseTranslationsFull, Classname, ClassnameCondition, ClassnameSpec, Classnames, Combinator, CombinatorByValue, CommonRuleAndGroupProperties, CommonRuleSubComponentProps, ConstituentWordOrder, ConstituentWordOrderString, CreateRuleGroupOptions, CreateRuleOptions, DefaultCombinator, DefaultCombinatorExtended, DefaultCombinatorName, DefaultCombinatorNameExtended, DefaultCombinators, DefaultCombinatorsExtended, DefaultMatchModes, DefaultOperator, DefaultOperatorName, DefaultOperators, DefaultRuleGroupArray, DefaultRuleGroupICArray, DefaultRuleGroupType, DefaultRuleGroupTypeAny, DefaultRuleGroupTypeIC, DefaultRuleOrGroupArray, DefaultRuleType, DeriveClassNamesOptions, DiagnosticEntry, DiagnosticsFieldSummaryEntry, DiagnosticsResult, DiagnosticsStats, DndClassNameState, DndDropTargetType, DragCollection, DraggedItem, DropCollection, DropEffect, DropResult, ExportFormat, ExportObjectFormats, ExportOperatorMap, ExpressionNode, Field, FieldByValue, FindPathReturnType, FlexibleOption, FlexibleOptionGroup, FlexibleOptionList, FlexibleOptionListProp, FormatQueryFinalOptions, FormatQueryOptions, FormatQueryValidateRule, FullCombinator, FullField, FullOperator, FullOption, FullOptionList, FullOptionMap, FullOptionRecord, GenericizeRuleGroupType, GetOptionIdentifierType, GetOptionType, GetRuleDefaultValueOptions, GetRuleGroupType, GetRuleTypeFromGroupWithFieldAndOperator, GroupMethod, GroupOptions, GroupVariantCondition, GuardOptions, 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, OuterClassNameOptions, OuterClassNameOptionsBase, ParameterizedNamedSQL, ParameterizedSQL, ParseNumberMethod, ParseNumberOptions, ParseNumbersPropConfig, Path, PathInfo, Placeholder, PrepareOptionListParams, PreparedOptionList, PreparerOptions, QueryActionCallbacks, QueryActionHandlers, QueryActions, QueryActionsConfig, QueryBuilderClassNameState, QueryBuilderFlags, QueryHistoryOptions, QueryManager, QueryManagerError, QueryManagerOptions, QueryNode, QueryValidator, RQBJsonLogic, RQBJsonLogicEndsWith, RQBJsonLogicStartsWith, RQBJsonLogicVar, RegenerateIdOptions, RemoveMethod, RemoveNullability, RemoveOptions, ResolveOptionListOptions, RuleClassNameState, RuleClassnameKey, RuleContext, RuleContextResolvers, RuleDiagnosticsResult, RuleFacet, RuleGroupArray, RuleGroupClassnameKey, RuleGroupContext, RuleGroupDiagnosticsArray, RuleGroupDiagnosticsResult, RuleGroupICArray, RuleGroupICDiagnosticsArray, RuleGroupICDiagnosticsResult, RuleGroupProcessor, RuleGroupType, RuleGroupTypeAny, RuleGroupTypeIC, RuleOrGroupArray, RuleProcessor, RuleType, RuleValidator, SQLPreset, StrictOptions, StringUnionToFlexibleOptionArray, StringUnionToFullOptionArray, TestID, ToFlexibleOption, ToFullOption, ToRuleGroupType, ToRuleGroupTypeIC, TransformQueryOptions, UpdateMethod, UpdateOptions, UpdateValueMap, UpdateableProperties, ValidationMap, ValidationResult, ValueChangeEventHandler, ValueEditorType, ValueOption, ValueProcessor, ValueProcessorByRule, ValueProcessorLegacy, ValueProcessorOptions, ValueSource, ValueSourceFlexibleOptions, ValueSourceFullOptions, ValueSources, WalkOptions, WithRequired, WithUnknownIndex, add, addInPlace, betweenOperators, bigIntJsonParseReviver, bigIntJsonStringifyReplacer, celCombinatorMap, clsx, coerceBigIntValue, coerceInputType, 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$1 as 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, 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, 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, withParamPrefix, wrapLikeFragment };
|
|
6249
6271
|
//# sourceMappingURL=react-querybuilder_core.cjs.development.d.ts.map
|
|
@@ -944,6 +944,26 @@ const ruleGroupOuterConditions = [
|
|
|
944
944
|
}
|
|
945
945
|
];
|
|
946
946
|
/**
|
|
947
|
+
* Conditional classes applied to the query builder's wrapper element.
|
|
948
|
+
*
|
|
949
|
+
* Only a `boolean` validation result contributes a class; a {@link ValidationMap} describes
|
|
950
|
+
* individual rules and groups, not the query as a whole.
|
|
951
|
+
*/
|
|
952
|
+
const queryBuilderOuterConditions = [
|
|
953
|
+
{
|
|
954
|
+
key: "disabled",
|
|
955
|
+
when: (s) => s.disabled
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
key: "valid",
|
|
959
|
+
when: (s) => typeof s.validationResult === "boolean" && s.validationResult
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
key: "invalid",
|
|
963
|
+
when: (s) => typeof s.validationResult === "boolean" && !s.validationResult
|
|
964
|
+
}
|
|
965
|
+
];
|
|
966
|
+
/**
|
|
947
967
|
* Expands conditions into `clsx` arguments: every custom class first (in declaration order),
|
|
948
968
|
* then a single object of standard classes.
|
|
949
969
|
*/
|
|
@@ -1004,6 +1024,13 @@ const deriveRuleOuterClassName = (options) => deriveOuterClassName("rule", ruleO
|
|
|
1004
1024
|
* @group Query Tools
|
|
1005
1025
|
*/
|
|
1006
1026
|
const deriveRuleGroupOuterClassName = (options) => deriveOuterClassName("ruleGroup", ruleGroupOuterConditions, options);
|
|
1027
|
+
/**
|
|
1028
|
+
* The outer (wrapper) classname for the query builder itself, including the conditional
|
|
1029
|
+
* `disabled`, `valid`, and `invalid` state classes.
|
|
1030
|
+
*
|
|
1031
|
+
* @group Query Tools
|
|
1032
|
+
*/
|
|
1033
|
+
const deriveQueryBuilderClassNames = (options) => deriveOuterClassName("queryBuilder", queryBuilderOuterConditions, options);
|
|
1007
1034
|
//#endregion
|
|
1008
1035
|
//#region src/utils/defaultValidator.ts
|
|
1009
1036
|
/**
|
|
@@ -6790,7 +6817,8 @@ var QueryManager = class QueryManager {
|
|
|
6790
6817
|
const { optionList: fields, optionsMap: fieldMap } = prepareOptionList({
|
|
6791
6818
|
optionList: options.fields,
|
|
6792
6819
|
baseOption: options.baseField,
|
|
6793
|
-
autoSelectOption: options.autoSelectField
|
|
6820
|
+
autoSelectOption: options.autoSelectField,
|
|
6821
|
+
placeholder: options.translations?.fields
|
|
6794
6822
|
});
|
|
6795
6823
|
this.#fields = (0, immer.freeze)(fields, true);
|
|
6796
6824
|
this.#fieldMap = (0, immer.freeze)(fieldMap, true);
|
|
@@ -6798,7 +6826,8 @@ var QueryManager = class QueryManager {
|
|
|
6798
6826
|
optionList: options.operators ?? defaultOperators,
|
|
6799
6827
|
baseOption: options.baseOperator,
|
|
6800
6828
|
labelMap: defaultOperatorLabelMap,
|
|
6801
|
-
autoSelectOption: options.autoSelectOperator
|
|
6829
|
+
autoSelectOption: options.autoSelectOperator,
|
|
6830
|
+
placeholder: options.translations?.operators
|
|
6802
6831
|
}).optionList;
|
|
6803
6832
|
this.#combinators = (0, immer.freeze)(prepareOptionList({
|
|
6804
6833
|
optionList: options.combinators ?? defaultCombinators,
|
|
@@ -6818,7 +6847,8 @@ var QueryManager = class QueryManager {
|
|
|
6818
6847
|
getOperators: this.#options.getOperators,
|
|
6819
6848
|
operators: this.#operators,
|
|
6820
6849
|
baseOption: this.#options.baseOperator,
|
|
6821
|
-
autoSelectOption: this.#options.autoSelectOperator
|
|
6850
|
+
autoSelectOption: this.#options.autoSelectOperator,
|
|
6851
|
+
placeholder: this.#options.translations?.operators
|
|
6822
6852
|
});
|
|
6823
6853
|
}
|
|
6824
6854
|
/** Resolves the default operator for a field, mirroring `QueryBuilder`'s precedence. */
|
|
@@ -6842,7 +6872,8 @@ var QueryManager = class QueryManager {
|
|
|
6842
6872
|
operator,
|
|
6843
6873
|
fieldData: this.#fieldData(field),
|
|
6844
6874
|
getValues: this.#options.getValues,
|
|
6845
|
-
autoSelectOption: this.#options.autoSelectValue
|
|
6875
|
+
autoSelectOption: this.#options.autoSelectValue,
|
|
6876
|
+
placeholder: this.#options.translations?.values
|
|
6846
6877
|
});
|
|
6847
6878
|
}
|
|
6848
6879
|
#valueEditorTypeFor(field, operator) {
|
|
@@ -7640,6 +7671,7 @@ exports.defaultValueProcessorMongoDBByRule = defaultValueProcessorMongoDBByRule;
|
|
|
7640
7671
|
exports.defaultValueProcessorNL = defaultValueProcessorNL;
|
|
7641
7672
|
exports.defaultValueProcessorSpELByRule = defaultValueProcessorSpELByRule;
|
|
7642
7673
|
exports.derivePathInfo = derivePathInfo;
|
|
7674
|
+
exports.deriveQueryBuilderClassNames = deriveQueryBuilderClassNames;
|
|
7643
7675
|
exports.deriveRuleClassName = deriveRuleClassName;
|
|
7644
7676
|
exports.deriveRuleClassNames = deriveRuleClassNames;
|
|
7645
7677
|
exports.deriveRuleContext = deriveRuleContext;
|