@react-querybuilder/core 8.13.0 → 8.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{basic-Cw014pDc.d.mts → basic-BXJVfD0P.d.ts} +77 -59
- package/dist/{basic-_KlsCAyT.d.ts → basic-CNIjb6rI.d.mts} +77 -59
- package/dist/cjs/react-querybuilder_core.cjs.development.d.ts +201 -150
- package/dist/cjs/react-querybuilder_core.cjs.development.js +323 -252
- package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
- package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +201 -150
- 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-DAj92cbM.mjs → convertQuery-B5Qm_6ut.mjs} +30 -22
- package/dist/convertQuery-B5Qm_6ut.mjs.map +1 -0
- package/dist/convertQuery-DfZehtnd.js +94 -0
- package/dist/convertQuery-DfZehtnd.js.map +1 -0
- package/dist/{export-CffjLxEe.d.mts → export-6x7MilFR.d.mts} +2 -3
- package/dist/{export-DRA8O1Wz.d.ts → export-CpJOQuZv.d.ts} +2 -3
- package/dist/formatQuery.d.mts +4 -3
- package/dist/formatQuery.d.ts +4 -3
- package/dist/formatQuery.js +42 -51
- package/dist/formatQuery.js.map +1 -1
- package/dist/formatQuery.mjs +41 -50
- package/dist/formatQuery.mjs.map +1 -1
- package/dist/{import-CWYJkN_w.d.ts → import-B5Iq8XmL.d.ts} +2 -3
- package/dist/{import-DjHGaGhJ.d.mts → import-Bltb2mT4.d.mts} +2 -3
- package/dist/{isRuleGroup-Cjk1Q2mj.js → isRuleGroup-BCwaLzDj.js} +38 -40
- package/dist/isRuleGroup-BCwaLzDj.js.map +1 -0
- package/dist/{isRuleGroup-DztIOOKa.mjs → isRuleGroup-LzP0HCKh.mjs} +2 -4
- package/dist/isRuleGroup-LzP0HCKh.mjs.map +1 -0
- package/dist/parseCEL.d.mts +2 -2
- package/dist/parseCEL.d.ts +2 -2
- package/dist/parseCEL.js +14 -16
- package/dist/parseCEL.js.map +1 -1
- package/dist/parseCEL.mjs +7 -10
- package/dist/parseCEL.mjs.map +1 -1
- package/dist/parseJSONata.d.mts +2 -3
- package/dist/parseJSONata.d.ts +2 -3
- package/dist/parseJSONata.js +37 -5611
- package/dist/parseJSONata.js.map +1 -1
- package/dist/parseJSONata.mjs +11 -14
- package/dist/parseJSONata.mjs.map +1 -1
- package/dist/parseJsonLogic.d.mts +3 -4
- package/dist/parseJsonLogic.d.ts +3 -4
- package/dist/parseJsonLogic.js +20 -21
- package/dist/parseJsonLogic.js.map +1 -1
- package/dist/parseJsonLogic.mjs +19 -21
- package/dist/parseJsonLogic.mjs.map +1 -1
- package/dist/parseMongoDB.d.mts +2 -3
- package/dist/parseMongoDB.d.ts +2 -3
- package/dist/parseMongoDB.js +7 -8
- package/dist/parseMongoDB.js.map +1 -1
- package/dist/parseMongoDB.mjs +6 -8
- package/dist/parseMongoDB.mjs.map +1 -1
- package/dist/parseSQL.d.mts +2 -3
- package/dist/parseSQL.d.ts +2 -3
- package/dist/parseSQL.js +14 -16
- package/dist/parseSQL.js.map +1 -1
- package/dist/parseSQL.mjs +7 -10
- package/dist/parseSQL.mjs.map +1 -1
- package/dist/parseSpEL.d.mts +2 -3
- package/dist/parseSpEL.d.ts +2 -3
- package/dist/parseSpEL.js +11 -2700
- package/dist/parseSpEL.js.map +1 -1
- package/dist/parseSpEL.mjs +7 -9
- package/dist/parseSpEL.mjs.map +1 -1
- package/dist/{prepareQueryObjects-CkN0bTKm.js → prepareQueryObjects-Dc8rqsYM.js} +50 -38
- package/dist/prepareQueryObjects-Dc8rqsYM.js.map +1 -0
- package/dist/{prepareQueryObjects-6Bxx4Bs1.mjs → prepareQueryObjects-tMukQHT9.mjs} +35 -22
- package/dist/prepareQueryObjects-tMukQHT9.mjs.map +1 -0
- package/dist/react-querybuilder_core.d.mts +201 -150
- package/dist/react-querybuilder_core.legacy-esm.d.ts +201 -150
- package/dist/react-querybuilder_core.legacy-esm.js +317 -280
- package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
- package/dist/react-querybuilder_core.mjs +312 -248
- package/dist/react-querybuilder_core.mjs.map +1 -1
- package/dist/react-querybuilder_core.production.d.mts +201 -150
- package/dist/react-querybuilder_core.production.mjs +1 -1
- package/dist/react-querybuilder_core.production.mjs.map +1 -1
- package/dist/transformQuery.d.mts +1 -2
- package/dist/transformQuery.d.ts +1 -2
- package/dist/transformQuery.js +44 -3
- package/dist/transformQuery.js.map +1 -0
- package/dist/transformQuery.mjs +43 -3
- package/dist/transformQuery.mjs.map +1 -0
- package/dist/{utils-nQU7WCM9.mjs → utils-DQoYnxpa.mjs} +32 -84
- package/dist/utils-DQoYnxpa.mjs.map +1 -0
- package/dist/{utils-CR1ToTMW.js → utils-EsYRkPtf.js} +182 -246
- package/dist/utils-EsYRkPtf.js.map +1 -0
- package/package.json +29 -21
- package/dist/chunk-U64pC571.js +0 -41
- package/dist/convertQuery-DAj92cbM.mjs.map +0 -1
- package/dist/convertQuery-DRldbzhZ.js +0 -87
- package/dist/convertQuery-DRldbzhZ.js.map +0 -1
- package/dist/isRuleGroup-Cjk1Q2mj.js.map +0 -1
- package/dist/isRuleGroup-DztIOOKa.mjs.map +0 -1
- package/dist/prepareQueryObjects-6Bxx4Bs1.mjs.map +0 -1
- package/dist/prepareQueryObjects-CkN0bTKm.js.map +0 -1
- package/dist/transformQuery-ClBRfnFg.js +0 -54
- package/dist/transformQuery-ClBRfnFg.js.map +0 -1
- package/dist/transformQuery-DUpbpqjX.mjs +0 -48
- package/dist/transformQuery-DUpbpqjX.mjs.map +0 -1
- package/dist/utils-CR1ToTMW.js.map +0 -1
- package/dist/utils-nQU7WCM9.mjs.map +0 -1
|
@@ -23,25 +23,20 @@ import type {UnionToIntersection} from 'type-fest';
|
|
|
23
23
|
type Union = {the(): void} | {great(arg: string): void} | {escape: boolean};
|
|
24
24
|
|
|
25
25
|
type Intersection = UnionToIntersection<Union>;
|
|
26
|
-
//=> {the(): void
|
|
26
|
+
//=> {the(): void} & {great(arg: string): void} & {escape: boolean}
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
@category Type
|
|
30
30
|
*/
|
|
31
|
-
type UnionToIntersection<Union> = (
|
|
32
|
-
// `extends unknown` is always going to be the case and is used to convert the
|
|
31
|
+
type UnionToIntersection<Union> = (// `extends unknown` is always going to be the case and is used to convert the
|
|
33
32
|
// `Union` into a [distributive conditional
|
|
34
33
|
// type](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-8.html#distributive-conditional-types).
|
|
35
|
-
Union extends unknown
|
|
36
|
-
// The union type is used as the only argument to a function since the union
|
|
34
|
+
Union extends unknown // The union type is used as the only argument to a function since the union
|
|
37
35
|
// of function arguments is an intersection.
|
|
38
|
-
? (distributedUnion: Union) => void
|
|
39
|
-
//
|
|
40
|
-
: never
|
|
41
|
-
// Infer the `Intersection` type since TypeScript represents the positional
|
|
36
|
+
? (distributedUnion: Union) => void // This won't happen.
|
|
37
|
+
: never // Infer the `Intersection` type since TypeScript represents the positional
|
|
42
38
|
// arguments of unions of functions as an intersection of the union.
|
|
43
|
-
) extends ((mergedIntersection: infer Intersection) => void)
|
|
44
|
-
// The `& Union` is to ensure result of `UnionToIntersection<A | B>` is always assignable to `A | B`
|
|
39
|
+
) extends ((mergedIntersection: infer Intersection) => void) // The `& Union` is to ensure result of `UnionToIntersection<A | B>` is always assignable to `A | B`
|
|
45
40
|
? Intersection & Union : never;
|
|
46
41
|
//#endregion
|
|
47
42
|
//#region ../../node_modules/type-fest/source/keys-of-union.d.ts
|
|
@@ -82,8 +77,7 @@ type AllKeys = KeysOfUnion<Union>;
|
|
|
82
77
|
|
|
83
78
|
@category Object
|
|
84
79
|
*/
|
|
85
|
-
type KeysOfUnion<ObjectType> =
|
|
86
|
-
// Hack to fix https://github.com/sindresorhus/type-fest/issues/1008
|
|
80
|
+
type KeysOfUnion<ObjectType> = // Hack to fix https://github.com/sindresorhus/type-fest/issues/1008
|
|
87
81
|
keyof UnionToIntersection<ObjectType extends unknown ? Record<keyof ObjectType, never> : never>;
|
|
88
82
|
//#endregion
|
|
89
83
|
//#region ../../node_modules/type-fest/source/is-any.d.ts
|
|
@@ -158,7 +152,7 @@ type T5 = IsOptionalKeyOf<User | Admin, 'surname'>;
|
|
|
158
152
|
@category Type Guard
|
|
159
153
|
@category Utilities
|
|
160
154
|
*/
|
|
161
|
-
type IsOptionalKeyOf<Type extends object, Key
|
|
155
|
+
type IsOptionalKeyOf<Type extends object, Key extends keyof Type> = IsAny<Type | Key> extends true ? never : Key extends keyof Type ? Type extends Record<Key, Type[Key]> ? false : true : false;
|
|
162
156
|
//#endregion
|
|
163
157
|
//#region ../../node_modules/type-fest/source/optional-keys-of.d.ts
|
|
164
158
|
/**
|
|
@@ -273,14 +267,14 @@ type IsTrue<T> = T extends true ? true : false;
|
|
|
273
267
|
|
|
274
268
|
// When a distributive conditional is instantiated with `never`, the entire conditional results in `never`.
|
|
275
269
|
type A = IsTrue<never>;
|
|
276
|
-
|
|
270
|
+
//=> never
|
|
277
271
|
|
|
278
272
|
// If you don't want that behaviour, you can explicitly add an `IsNever` check before the distributive conditional.
|
|
279
273
|
type IsTrueFixed<T> =
|
|
280
274
|
IsNever<T> extends true ? false : T extends true ? true : false;
|
|
281
275
|
|
|
282
276
|
type B = IsTrueFixed<never>;
|
|
283
|
-
|
|
277
|
+
//=> false
|
|
284
278
|
```
|
|
285
279
|
|
|
286
280
|
@category Type Guard
|
|
@@ -471,7 +465,7 @@ type T2 = TrimLeftOptimised<NineHundredNinetyNineSpaces>;
|
|
|
471
465
|
//=> ''
|
|
472
466
|
```
|
|
473
467
|
*/
|
|
474
|
-
type IfNotAnyOrNever<T, IfNotAnyOrNever
|
|
468
|
+
type IfNotAnyOrNever<T, IfNotAnyOrNever, IfAny = any, IfNever = never> = If<IsAny<T>, IfAny, If<IsNever<T>, IfNever, IfNotAnyOrNever>>;
|
|
475
469
|
//#endregion
|
|
476
470
|
//#region ../../node_modules/type-fest/source/internal/array.d.ts
|
|
477
471
|
/**
|
|
@@ -567,9 +561,9 @@ type Includes<Value extends readonly any[], Item> =
|
|
|
567
561
|
@category Type Guard
|
|
568
562
|
@category Utilities
|
|
569
563
|
*/
|
|
570
|
-
type IsEqual<A
|
|
564
|
+
type IsEqual<A, B> = [A] extends [B] ? [B] extends [A] ? _IsEqual<A, B> : false : false;
|
|
571
565
|
// This version fails the `equalWrappedTupleIntersectionToBeNeverAndNeverExpanded` test in `test-d/is-equal.ts`.
|
|
572
|
-
type _IsEqual<A
|
|
566
|
+
type _IsEqual<A, B> = (<G>() => G extends A & G | G ? 1 : 2) extends (<G>() => G extends B & G | G ? 1 : 2) ? true : false;
|
|
573
567
|
//#endregion
|
|
574
568
|
//#region ../../node_modules/type-fest/source/omit-index-signature.d.ts
|
|
575
569
|
/**
|
|
@@ -591,7 +585,7 @@ const indexed: Record<string, unknown> = {}; // Allowed
|
|
|
591
585
|
|
|
592
586
|
// @ts-expect-error
|
|
593
587
|
const keyed: Record<'foo', unknown> = {}; // Error
|
|
594
|
-
//
|
|
588
|
+
// TS2739: Type '{}' is missing the following properties from type 'Record<"foo" | "bar", unknown>': foo, bar
|
|
595
589
|
```
|
|
596
590
|
|
|
597
591
|
Instead of causing a type error like the above, you can also use a [conditional type](https://www.typescriptlang.org/docs/handbook/2/conditional-types.html) to test whether a type is assignable to another:
|
|
@@ -600,12 +594,16 @@ Instead of causing a type error like the above, you can also use a [conditional
|
|
|
600
594
|
type Indexed = {} extends Record<string, unknown>
|
|
601
595
|
? '✅ `{}` is assignable to `Record<string, unknown>`'
|
|
602
596
|
: '❌ `{}` is NOT assignable to `Record<string, unknown>`';
|
|
603
|
-
|
|
597
|
+
|
|
598
|
+
type IndexedResult = Indexed;
|
|
599
|
+
//=> '✅ `{}` is assignable to `Record<string, unknown>`'
|
|
604
600
|
|
|
605
601
|
type Keyed = {} extends Record<'foo' | 'bar', unknown>
|
|
606
602
|
? '✅ `{}` is assignable to `Record<\'foo\' | \'bar\', unknown>`'
|
|
607
603
|
: '❌ `{}` is NOT assignable to `Record<\'foo\' | \'bar\', unknown>`';
|
|
608
|
-
|
|
604
|
+
|
|
605
|
+
type KeyedResult = Keyed;
|
|
606
|
+
//=> '❌ `{}` is NOT assignable to `Record<\'foo\' | \'bar\', unknown>`'
|
|
609
607
|
```
|
|
610
608
|
|
|
611
609
|
Using a [mapped type](https://www.typescriptlang.org/docs/handbook/2/mapped-types.html#further-exploration), you can then check for each `KeyType` of `ObjectType`...
|
|
@@ -653,7 +651,7 @@ type Example = {
|
|
|
653
651
|
};
|
|
654
652
|
|
|
655
653
|
type ExampleWithoutIndexSignatures = OmitIndexSignature<Example>;
|
|
656
|
-
|
|
654
|
+
//=> {foo: 'bar'; qux?: 'baz'}
|
|
657
655
|
```
|
|
658
656
|
|
|
659
657
|
@see {@link PickIndexSignature}
|
|
@@ -711,11 +709,35 @@ type PickIndexSignature<ObjectType> = { [KeyType in keyof ObjectType as {} exten
|
|
|
711
709
|
//#endregion
|
|
712
710
|
//#region ../../node_modules/type-fest/source/merge.d.ts
|
|
713
711
|
// Merges two objects without worrying about index signatures.
|
|
714
|
-
type SimpleMerge<Destination, Source> = { [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key] } & Source
|
|
715
|
-
|
|
712
|
+
type SimpleMerge<Destination, Source> = Simplify<{ [Key in keyof Destination as Key extends keyof Source ? never : Key]: Destination[Key] } & Source>;
|
|
716
713
|
/**
|
|
717
714
|
Merge two types into a new type. Keys of the second type overrides keys of the first type.
|
|
718
715
|
|
|
716
|
+
This is different from the TypeScript `&` (intersection) operator. With `&`, conflicting property types are intersected, which often results in `never`. For example, `{a: string} & {a: number}` makes `a` become `string & number`, which resolves to `never`. With `Merge`, the second type's keys cleanly override the first, so `Merge<{a: string}, {a: number}>` gives `{a: number}` as expected. `Merge` also produces a flattened type (via `Simplify`), making it more readable in IDE tooltips compared to `A & B`.
|
|
717
|
+
|
|
718
|
+
@example
|
|
719
|
+
```
|
|
720
|
+
import type {Merge} from 'type-fest';
|
|
721
|
+
|
|
722
|
+
type Foo = {
|
|
723
|
+
a: string;
|
|
724
|
+
b: number;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
type Bar = {
|
|
728
|
+
a: number; // Conflicts with Foo['a']
|
|
729
|
+
c: boolean;
|
|
730
|
+
};
|
|
731
|
+
|
|
732
|
+
// With `&`, `a` becomes `string & number` which is `never`. Not what you want.
|
|
733
|
+
type WithIntersection = (Foo & Bar)['a'];
|
|
734
|
+
//=> never
|
|
735
|
+
|
|
736
|
+
// With `Merge`, `a` is cleanly overridden to `number`.
|
|
737
|
+
type WithMerge = Merge<Foo, Bar>['a'];
|
|
738
|
+
//=> number
|
|
739
|
+
```
|
|
740
|
+
|
|
719
741
|
@example
|
|
720
742
|
```
|
|
721
743
|
import type {Merge} from 'type-fest';
|
|
@@ -735,7 +757,7 @@ type Bar = {
|
|
|
735
757
|
};
|
|
736
758
|
|
|
737
759
|
export type FooBar = Merge<Foo, Bar>;
|
|
738
|
-
|
|
760
|
+
//=> {
|
|
739
761
|
// [x: string]: unknown;
|
|
740
762
|
// [x: number]: number;
|
|
741
763
|
// [x: symbol]: unknown;
|
|
@@ -745,9 +767,17 @@ export type FooBar = Merge<Foo, Bar>;
|
|
|
745
767
|
// }
|
|
746
768
|
```
|
|
747
769
|
|
|
770
|
+
Note: If you want a merge type that more accurately reflects the runtime behavior of object spread or `Object.assign`, refer to the {@link ObjectMerge} type.
|
|
771
|
+
|
|
772
|
+
@see {@link ObjectMerge}
|
|
748
773
|
@category Object
|
|
749
774
|
*/
|
|
750
|
-
type Merge<Destination, Source> =
|
|
775
|
+
type Merge<Destination, Source> = Destination extends unknown // For distributing `Destination`
|
|
776
|
+
? Source extends unknown // For distributing `Source`
|
|
777
|
+
? If<IsEqual<Destination, Source>, Destination, _Merge<Destination, Source>> : never // Should never happen
|
|
778
|
+
: never;
|
|
779
|
+
// Should never happen
|
|
780
|
+
type _Merge<Destination, Source> = Simplify<SimpleMerge<PickIndexSignature<Destination>, PickIndexSignature<Source>> & SimpleMerge<OmitIndexSignature<Destination>, OmitIndexSignature<Source>>>;
|
|
751
781
|
//#endregion
|
|
752
782
|
//#region ../../node_modules/type-fest/source/internal/object.d.ts
|
|
753
783
|
/**
|
|
@@ -870,7 +900,7 @@ type Filtered = Filter<'bar', 'foo'>;
|
|
|
870
900
|
|
|
871
901
|
@see {Except}
|
|
872
902
|
*/
|
|
873
|
-
type Filter<KeyType
|
|
903
|
+
type Filter<KeyType, ExcludeType> = IsEqual<KeyType, ExcludeType> extends true ? never : (KeyType extends ExcludeType ? never : KeyType);
|
|
874
904
|
type ExceptOptions = {
|
|
875
905
|
/**
|
|
876
906
|
Disallow assigning non-specified properties.
|
|
@@ -882,7 +912,6 @@ type ExceptOptions = {
|
|
|
882
912
|
type DefaultExceptOptions = {
|
|
883
913
|
requireExactProps: false;
|
|
884
914
|
};
|
|
885
|
-
|
|
886
915
|
/**
|
|
887
916
|
Create a type from an object type without certain keys.
|
|
888
917
|
|
|
@@ -906,14 +935,14 @@ type FooWithoutA = Except<Foo, 'a'>;
|
|
|
906
935
|
|
|
907
936
|
// @ts-expect-error
|
|
908
937
|
const fooWithoutA: FooWithoutA = {a: 1, b: '2'};
|
|
909
|
-
|
|
938
|
+
// errors: 'a' does not exist in type '{ b: string; }'
|
|
910
939
|
|
|
911
940
|
type FooWithoutB = Except<Foo, 'b', {requireExactProps: true}>;
|
|
912
|
-
//=> {a: number} & Partial<Record<
|
|
941
|
+
//=> {a: number} & Partial<Record<'b', never>>
|
|
913
942
|
|
|
914
943
|
// @ts-expect-error
|
|
915
944
|
const fooWithoutB: FooWithoutB = {a: 1, b: '2'};
|
|
916
|
-
|
|
945
|
+
// errors at 'b': Type 'string' is not assignable to type 'undefined'.
|
|
917
946
|
|
|
918
947
|
// The `Omit` utility type doesn't work when omitting specific keys from objects containing index signatures.
|
|
919
948
|
|
|
@@ -928,12 +957,12 @@ type UserData = {
|
|
|
928
957
|
|
|
929
958
|
// `Omit` clearly doesn't behave as expected in this case:
|
|
930
959
|
type PostPayload = Omit<UserData, 'email'>;
|
|
931
|
-
//=> {
|
|
960
|
+
//=> {[x: string]: string; [x: number]: string}
|
|
932
961
|
|
|
933
962
|
// In situations like this, `Except` works better.
|
|
934
963
|
// It simply removes the `email` key while preserving all the other keys.
|
|
935
964
|
type PostPayloadFixed = Except<UserData, 'email'>;
|
|
936
|
-
//=> {
|
|
965
|
+
//=> {[x: string]: string; name: string; role: 'admin' | 'user'}
|
|
937
966
|
```
|
|
938
967
|
|
|
939
968
|
@category Object
|
|
@@ -963,14 +992,11 @@ const responder: RequireAtLeastOne<Responder, 'text' | 'json'> = {
|
|
|
963
992
|
|
|
964
993
|
@category Object
|
|
965
994
|
*/
|
|
966
|
-
type RequireAtLeastOne<ObjectType, KeysType extends keyof ObjectType = keyof ObjectType> = IfNotAnyOrNever<ObjectType, If<IsNever<KeysType>, never, _RequireAtLeastOne<ObjectType, If<IsAny<KeysType>, keyof ObjectType, KeysType>>>>;
|
|
967
|
-
type _RequireAtLeastOne<ObjectType, KeysType extends keyof ObjectType> = {
|
|
968
|
-
|
|
969
|
-
[Key in KeysType]-?: Required<Pick<ObjectType, Key>> &
|
|
970
|
-
// 1. Make `Key`'s type required
|
|
995
|
+
type RequireAtLeastOne$1<ObjectType, KeysType extends keyof ObjectType = keyof ObjectType> = IfNotAnyOrNever<ObjectType, If<IsNever<KeysType>, never, _RequireAtLeastOne<ObjectType, If<IsAny<KeysType>, keyof ObjectType, KeysType>>>>;
|
|
996
|
+
type _RequireAtLeastOne<ObjectType, KeysType extends keyof ObjectType> = { // For each `Key` in `KeysType` make a mapped type:
|
|
997
|
+
[Key in KeysType]-?: Required<Pick<ObjectType, Key>> & // 1. Make `Key`'s type required
|
|
971
998
|
// 2. Make all other keys in `KeysType` optional
|
|
972
|
-
Partial<Pick<ObjectType, Exclude<KeysType, Key>>> }[KeysType] &
|
|
973
|
-
// 3. Add the remaining keys not in `KeysType`
|
|
999
|
+
Partial<Pick<ObjectType, Exclude<KeysType, Key>>> }[KeysType] & // 3. Add the remaining keys not in `KeysType`
|
|
974
1000
|
Except<ObjectType, KeysType>;
|
|
975
1001
|
//#endregion
|
|
976
1002
|
//#region ../../node_modules/type-fest/source/required-deep.d.ts
|
|
@@ -1015,7 +1041,8 @@ Note that types containing overloaded functions are not made deeply required due
|
|
|
1015
1041
|
@category Set
|
|
1016
1042
|
@category Map
|
|
1017
1043
|
*/
|
|
1018
|
-
type RequiredDeep<T> = T extends BuiltIns ? T : T extends Map<infer KeyType, infer ValueType> ? Map<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends Set<infer ItemType> ? Set<RequiredDeep<ItemType>> : T extends ReadonlyMap<infer KeyType, infer ValueType> ? ReadonlyMap<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends ReadonlySet<infer ItemType> ? ReadonlySet<RequiredDeep<ItemType>> : T extends WeakMap<infer KeyType, infer ValueType> ? WeakMap<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends WeakSet<infer ItemType> ? WeakSet<RequiredDeep<ItemType>> : T extends Promise<infer ValueType> ? Promise<RequiredDeep<ValueType>> : T extends ((...arguments_: any[]) => unknown) ? IsNever<keyof T> extends true ? T : HasMultipleCallSignatures<T> extends true ? T : ((...arguments_: Parameters<T>) => ReturnType<T>) & RequiredObjectDeep<T> : T extends object ? RequiredObjectDeep<T
|
|
1044
|
+
type RequiredDeep<T> = T extends BuiltIns ? T : T extends Map<infer KeyType, infer ValueType> ? Map<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends Set<infer ItemType> ? Set<RequiredDeep<ItemType>> : T extends ReadonlyMap<infer KeyType, infer ValueType> ? ReadonlyMap<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends ReadonlySet<infer ItemType> ? ReadonlySet<RequiredDeep<ItemType>> : T extends WeakMap<infer KeyType, infer ValueType> ? WeakMap<RequiredDeep<KeyType>, RequiredDeep<ValueType>> : T extends WeakSet<infer ItemType> ? WeakSet<RequiredDeep<ItemType>> : T extends Promise<infer ValueType> ? Promise<RequiredDeep<ValueType>> : T extends ((...arguments_: any[]) => unknown) ? IsNever<keyof T> extends true ? T : HasMultipleCallSignatures<T> extends true ? T : ((...arguments_: Parameters<T>) => ReturnType<T>) & RequiredObjectDeep<T> : T extends object ? Simplify<RequiredObjectDeep<T>> // `Simplify` to prevent `RequiredObjectDeep` from appearing in the resulting type
|
|
1045
|
+
: unknown;
|
|
1019
1046
|
type RequiredObjectDeep<ObjectType extends object> = { [KeyType in keyof ObjectType]-?: RequiredDeep<ObjectType[KeyType]> };
|
|
1020
1047
|
//#endregion
|
|
1021
1048
|
//#region ../../node_modules/type-fest/source/set-optional.d.ts
|
|
@@ -1035,21 +1062,15 @@ type Foo = {
|
|
|
1035
1062
|
};
|
|
1036
1063
|
|
|
1037
1064
|
type SomeOptional = SetOptional<Foo, 'b' | 'c'>;
|
|
1038
|
-
|
|
1039
|
-
// a: number;
|
|
1040
|
-
// b?: string; // Was already optional and still is.
|
|
1041
|
-
// c?: boolean; // Is now optional.
|
|
1042
|
-
// }
|
|
1065
|
+
//=> {a: number; b?: string; c?: boolean}
|
|
1043
1066
|
```
|
|
1044
1067
|
|
|
1045
1068
|
@category Object
|
|
1046
1069
|
*/
|
|
1047
1070
|
type SetOptional<BaseType, Keys extends keyof BaseType> = (BaseType extends ((...arguments_: never) => any) ? (...arguments_: Parameters<BaseType>) => ReturnType<BaseType> : unknown) & _SetOptional<BaseType, Keys>;
|
|
1048
1071
|
type _SetOptional<BaseType, Keys extends keyof BaseType> = BaseType extends unknown // To distribute `BaseType` when it's a union type.
|
|
1049
|
-
? Simplify<
|
|
1050
|
-
// Pick
|
|
1051
|
-
Except<BaseType, Keys> &
|
|
1052
|
-
// Pick the keys that should be mutable from the base type and make them mutable.
|
|
1072
|
+
? Simplify< // Pick just the keys that are readonly from the base type.
|
|
1073
|
+
Except<BaseType, Keys> & // Pick the keys that should be mutable from the base type and make them mutable.
|
|
1053
1074
|
Partial<HomomorphicPick<BaseType, Keys>>> : never;
|
|
1054
1075
|
//#endregion
|
|
1055
1076
|
//#region ../../node_modules/type-fest/source/set-required.d.ts
|
|
@@ -1069,11 +1090,7 @@ type Foo = {
|
|
|
1069
1090
|
};
|
|
1070
1091
|
|
|
1071
1092
|
type SomeRequired = SetRequired<Foo, 'b' | 'c'>;
|
|
1072
|
-
|
|
1073
|
-
// a?: number;
|
|
1074
|
-
// b: string; // Was already required and still is.
|
|
1075
|
-
// c: boolean; // Is now required.
|
|
1076
|
-
// }
|
|
1093
|
+
//=> {a?: number; b: string; c: boolean}
|
|
1077
1094
|
|
|
1078
1095
|
// Set specific indices in an array to be required.
|
|
1079
1096
|
type ArrayExample = SetRequired<[number?, number?, number?], 0 | 1>;
|
|
@@ -1083,29 +1100,24 @@ type ArrayExample = SetRequired<[number?, number?, number?], 0 | 1>;
|
|
|
1083
1100
|
@category Object
|
|
1084
1101
|
*/
|
|
1085
1102
|
type SetRequired<BaseType, Keys extends keyof BaseType> = (BaseType extends ((...arguments_: never) => any) ? (...arguments_: Parameters<BaseType>) => ReturnType<BaseType> : unknown) & _SetRequired<BaseType, Keys>;
|
|
1086
|
-
type _SetRequired<BaseType, Keys extends keyof BaseType> = BaseType extends UnknownArray ? SetArrayRequired<BaseType, Keys> extends infer ResultantArray ? If<IsArrayReadonly<BaseType>, Readonly<ResultantArray>, ResultantArray> : never : Simplify<
|
|
1087
|
-
// Pick
|
|
1088
|
-
Except<BaseType, Keys> &
|
|
1089
|
-
// Pick the keys that should be required from the base type and make them required.
|
|
1103
|
+
type _SetRequired<BaseType, Keys extends keyof BaseType> = BaseType extends UnknownArray ? SetArrayRequired<BaseType, Keys> extends infer ResultantArray ? If<IsArrayReadonly<BaseType>, Readonly<ResultantArray>, ResultantArray> : never : Simplify< // Pick just the keys that are optional from the base type.
|
|
1104
|
+
Except<BaseType, Keys> & // Pick the keys that should be required from the base type and make them required.
|
|
1090
1105
|
Required<HomomorphicPick<BaseType, Keys>>>;
|
|
1091
|
-
|
|
1092
1106
|
/**
|
|
1093
1107
|
Remove the optional modifier from the specified keys in an array.
|
|
1094
1108
|
*/
|
|
1095
1109
|
type SetArrayRequired<TArray extends UnknownArray, Keys, Counter extends any[] = [], Accumulator extends UnknownArray = []> = TArray extends unknown // For distributing `TArray` when it's a union
|
|
1096
|
-
? keyof TArray & `${number}` extends never
|
|
1097
|
-
// Exit if `TArray` is empty (e.g., []), or
|
|
1110
|
+
? keyof TArray & `${number}` extends never // Exit if `TArray` is empty (e.g., []), or
|
|
1098
1111
|
// `TArray` contains no non-rest elements preceding the rest element (e.g., `[...string[]]` or `[...string[], string]`).
|
|
1099
1112
|
? [...Accumulator, ...TArray] : TArray extends readonly [(infer First)?, ...infer Rest] ? '0' extends OptionalKeysOf<TArray> // If the first element of `TArray` is optional
|
|
1100
1113
|
? `${Counter['length']}` extends `${Keys & (string | number)}` // If the current index needs to be required
|
|
1101
|
-
? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]>
|
|
1102
|
-
// If the current element is optional, but it doesn't need to be required,
|
|
1114
|
+
? SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, First]> // If the current element is optional, but it doesn't need to be required,
|
|
1103
1115
|
// then we can exit early, since no further elements can now be made required.
|
|
1104
1116
|
: [...Accumulator, ...TArray] : SetArrayRequired<Rest, Keys, [...Counter, any], [...Accumulator, TArray[0]]> : never // Should never happen, since `[(infer F)?, ...infer R]` is a top-type for arrays.
|
|
1105
1117
|
: never; // Should never happen
|
|
1106
1118
|
//#endregion
|
|
1107
1119
|
//#region src/types/options.d.ts
|
|
1108
|
-
type RequireAtLeastOne
|
|
1120
|
+
type RequireAtLeastOne<ObjectType, KeysType extends keyof ObjectType> = { [Key in KeysType]-?: Required<Pick<ObjectType, Key>> & Partial<Pick<ObjectType, Exclude<KeysType, Key>>> }[KeysType] & Except<ObjectType, KeysType>;
|
|
1109
1121
|
type StringUnionToFlexibleOptionArray<Op extends string> = Array<Op extends unknown ? FlexibleOption<Op> : never>;
|
|
1110
1122
|
type StringUnionToFullOptionArray<Op extends string> = Array<Op extends unknown ? FullOption<Op> : never>;
|
|
1111
1123
|
/**
|
|
@@ -1120,7 +1132,7 @@ type GetOptionType<OL extends FlexibleOptionList<FullOption>> = OL extends Flexi
|
|
|
1120
1132
|
*
|
|
1121
1133
|
* @group Option Lists
|
|
1122
1134
|
*/
|
|
1123
|
-
type GetOptionIdentifierType<Opt
|
|
1135
|
+
type GetOptionIdentifierType<Opt extends BaseOption> = Opt extends Option<infer NameType> | ValueOption<infer NameType> ? NameType : string;
|
|
1124
1136
|
/**
|
|
1125
1137
|
* Adds an `unknown` index property to an interface.
|
|
1126
1138
|
*/
|
|
@@ -1162,14 +1174,14 @@ type ValueOption<N extends string = string> = Simplify<WithUnknownIndex<SetRequi
|
|
|
1162
1174
|
*
|
|
1163
1175
|
* @group Option Lists
|
|
1164
1176
|
*/
|
|
1165
|
-
type FlexibleOption<N extends string = string> = Simplify<WithUnknownIndex<RequireAtLeastOne
|
|
1177
|
+
type FlexibleOption<N extends string = string> = Simplify<WithUnknownIndex<RequireAtLeastOne<BaseOption<N>, "name" | "value">>>;
|
|
1166
1178
|
/**
|
|
1167
1179
|
* Utility type to turn an {@link Option}, {@link ValueOption}, or {@link BaseOption}
|
|
1168
1180
|
* into a {@link FlexibleOption}.
|
|
1169
1181
|
*
|
|
1170
1182
|
* @group Option Lists
|
|
1171
1183
|
*/
|
|
1172
|
-
type ToFlexibleOption<Opt
|
|
1184
|
+
type ToFlexibleOption<Opt extends BaseOption | string> = WithUnknownIndex<RequireAtLeastOne<Opt extends string ? FlexibleOption<Opt> : Opt, "name" | "value">>;
|
|
1173
1185
|
/**
|
|
1174
1186
|
* A generic {@link Option} requiring both `name` _and_ `value` properties.
|
|
1175
1187
|
* Props that extend {@link OptionList} accept {@link BaseOption}, but
|
|
@@ -1197,7 +1209,7 @@ type BaseFullOption<N extends string = string> = Simplify<SetRequired<BaseOption
|
|
|
1197
1209
|
*
|
|
1198
1210
|
* @group Option Lists
|
|
1199
1211
|
*/
|
|
1200
|
-
type ToFullOption<Opt
|
|
1212
|
+
type ToFullOption<Opt extends BaseOption> = Opt extends BaseFullOption ? Opt : Opt extends BaseOption<infer IdentifierType> ? WithUnknownIndex<Opt & FullOption<IdentifierType>> : never;
|
|
1201
1213
|
/**
|
|
1202
1214
|
* @deprecated Renamed to {@link Option}.
|
|
1203
1215
|
*
|
|
@@ -1209,39 +1221,39 @@ type NameLabelPair<N extends string = string> = Option<N>;
|
|
|
1209
1221
|
*
|
|
1210
1222
|
* @group Option Lists
|
|
1211
1223
|
*/
|
|
1212
|
-
interface OptionGroup<Opt
|
|
1224
|
+
interface OptionGroup<Opt extends BaseOption = FlexibleOption> {
|
|
1213
1225
|
label: string;
|
|
1214
|
-
options: WithUnknownIndex<Opt
|
|
1226
|
+
options: WithUnknownIndex<Opt>[];
|
|
1215
1227
|
}
|
|
1216
1228
|
/**
|
|
1217
1229
|
* A group of {@link BaseOption}s, usually within a {@link FlexibleOptionList}.
|
|
1218
1230
|
*
|
|
1219
1231
|
* @group Option Lists
|
|
1220
1232
|
*/
|
|
1221
|
-
type FlexibleOptionGroup<Opt
|
|
1233
|
+
type FlexibleOptionGroup<Opt extends BaseOption | string = BaseOption> = {
|
|
1222
1234
|
label: string;
|
|
1223
|
-
options: (Opt
|
|
1235
|
+
options: (Opt extends BaseFullOption ? Opt : ToFlexibleOption<Opt>)[];
|
|
1224
1236
|
};
|
|
1225
1237
|
/**
|
|
1226
1238
|
* Either an array of {@link Option}s or an array of {@link OptionGroup}s.
|
|
1227
1239
|
*
|
|
1228
1240
|
* @group Option Lists
|
|
1229
1241
|
*/
|
|
1230
|
-
type OptionList<Opt
|
|
1242
|
+
type OptionList<Opt extends Option = Option> = Opt[] | OptionGroup<Opt>[];
|
|
1231
1243
|
/**
|
|
1232
1244
|
* An array of options or option groups, like {@link OptionList} but the option type
|
|
1233
1245
|
* may use either `name` or `value` as the primary identifier.
|
|
1234
1246
|
*
|
|
1235
1247
|
* @group Option Lists
|
|
1236
1248
|
*/
|
|
1237
|
-
type FlexibleOptionList<Opt
|
|
1249
|
+
type FlexibleOptionList<Opt extends BaseOption> = ToFlexibleOption<Opt>[] | FlexibleOptionGroup<ToFlexibleOption<Opt>>[];
|
|
1238
1250
|
/**
|
|
1239
1251
|
* An array of options or option groups, like {@link OptionList} but the option type
|
|
1240
1252
|
* may use either `name` or `value` as the primary identifier.
|
|
1241
1253
|
*
|
|
1242
1254
|
* @group Option Lists
|
|
1243
1255
|
*/
|
|
1244
|
-
type FlexibleOptionListProp<Opt
|
|
1256
|
+
type FlexibleOptionListProp<Opt extends BaseOption> = (ToFlexibleOption<Opt> | GetOptionIdentifierType<Opt>)[] | FlexibleOptionGroup<ToFlexibleOption<Opt> | GetOptionIdentifierType<Opt>>[];
|
|
1245
1257
|
/**
|
|
1246
1258
|
* An array of options or option groups, like {@link OptionList}, but using
|
|
1247
1259
|
* {@link FullOption} instead of {@link Option}. This means that every member is
|
|
@@ -1249,26 +1261,26 @@ type FlexibleOptionListProp<Opt$1 extends BaseOption> = (ToFlexibleOption<Opt$1>
|
|
|
1249
1261
|
*
|
|
1250
1262
|
* @group Option Lists
|
|
1251
1263
|
*/
|
|
1252
|
-
type FullOptionList<Opt
|
|
1264
|
+
type FullOptionList<Opt extends BaseOption> = Opt extends BaseFullOption ? Opt[] | OptionGroup<Opt>[] : ToFullOption<Opt>[] | OptionGroup<ToFullOption<Opt>>[];
|
|
1253
1265
|
/**
|
|
1254
1266
|
* Map of option identifiers to their respective {@link Option}.
|
|
1255
1267
|
*
|
|
1256
1268
|
* @group Option Lists
|
|
1257
1269
|
*/
|
|
1258
|
-
type BaseOptionMap<V
|
|
1270
|
+
type BaseOptionMap<V extends BaseOption = BaseOption, K extends string = GetOptionIdentifierType<V>> = { [k in K]?: ToFlexibleOption<V> };
|
|
1259
1271
|
/**
|
|
1260
1272
|
* Map of option identifiers to their respective {@link FullOption}.
|
|
1261
1273
|
*
|
|
1262
1274
|
* @group Option Lists
|
|
1263
1275
|
*/
|
|
1264
|
-
type FullOptionMap<V
|
|
1276
|
+
type FullOptionMap<V extends BaseFullOption, K extends string = GetOptionIdentifierType<V>> = { [k in K]?: V };
|
|
1265
1277
|
/**
|
|
1266
1278
|
* Map of option identifiers to their respective {@link FullOption}.
|
|
1267
1279
|
* Must include all possible strings from the identifier type.
|
|
1268
1280
|
*
|
|
1269
1281
|
* @group Option Lists
|
|
1270
1282
|
*/
|
|
1271
|
-
type FullOptionRecord<V
|
|
1283
|
+
type FullOptionRecord<V extends BaseFullOption, K extends string = GetOptionIdentifierType<V>> = Record<K, V>;
|
|
1272
1284
|
//#endregion
|
|
1273
1285
|
//#region src/types/ruleGroups.d.ts
|
|
1274
1286
|
/**
|
|
@@ -1289,10 +1301,10 @@ interface CommonRuleAndGroupProperties {
|
|
|
1289
1301
|
* The main rule type. The `field`, `operator`, and `value` properties
|
|
1290
1302
|
* can be narrowed with generics.
|
|
1291
1303
|
*/
|
|
1292
|
-
interface RuleType<F extends string = string, O extends string = string, V
|
|
1304
|
+
interface RuleType<F extends string = string, O extends string = string, V = any, C extends string = string> extends CommonRuleAndGroupProperties {
|
|
1293
1305
|
field: F;
|
|
1294
1306
|
operator: O;
|
|
1295
|
-
value: V
|
|
1307
|
+
value: V;
|
|
1296
1308
|
valueSource?: ValueSource;
|
|
1297
1309
|
match?: MatchConfig;
|
|
1298
1310
|
/**
|
|
@@ -1317,7 +1329,7 @@ type RuleGroupArray<RG extends RuleGroupType = RuleGroupType, R extends RuleType
|
|
|
1317
1329
|
* All updateable properties of rules and groups (everything except
|
|
1318
1330
|
* `id`, `path`, and `rules`).
|
|
1319
1331
|
*/
|
|
1320
|
-
type UpdateableProperties = Exclude<keyof (RuleType & RuleGroupType), "id" | "path" | "rules"
|
|
1332
|
+
type UpdateableProperties = Exclude<keyof (RuleType & RuleGroupType), "id" | "path" | "rules"> | (string & {});
|
|
1321
1333
|
/**
|
|
1322
1334
|
* The type of the `rules` array in a {@link DefaultRuleGroupType}.
|
|
1323
1335
|
*/
|
|
@@ -1579,7 +1591,7 @@ type FieldByValue<FieldName extends string = string, OperatorName extends string
|
|
|
1579
1591
|
/**
|
|
1580
1592
|
* Utility type to make one or more properties required.
|
|
1581
1593
|
*/
|
|
1582
|
-
type WithRequired<T, K
|
|
1594
|
+
type WithRequired<T, K extends keyof T> = T & { [P in K]-?: T[P] };
|
|
1583
1595
|
/**
|
|
1584
1596
|
* Utility type to make all properties non-nullable.
|
|
1585
1597
|
*/
|
|
@@ -2822,7 +2834,7 @@ declare const trimIfString: (val: any) => any;
|
|
|
2822
2834
|
* Splits a string by comma then trims each element. Arrays are returned as is except
|
|
2823
2835
|
* any string elements are trimmed.
|
|
2824
2836
|
*/
|
|
2825
|
-
declare const toArray: (
|
|
2837
|
+
declare const toArray: (a: any, {
|
|
2826
2838
|
retainEmptyStrings
|
|
2827
2839
|
}?: {
|
|
2828
2840
|
retainEmptyStrings?: boolean;
|
|
@@ -3405,7 +3417,8 @@ declare const celCombinatorMap: {
|
|
|
3405
3417
|
*/
|
|
3406
3418
|
declare const jsonLogicAdditionalOperators: Record<"startsWith" | "endsWith", (a: string, b: string) => boolean>;
|
|
3407
3419
|
/**
|
|
3408
|
-
*
|
|
3420
|
+
* Returns a new query object with all `string`-type `value` properties converted
|
|
3421
|
+
* to `number` where appropriate.
|
|
3409
3422
|
*
|
|
3410
3423
|
* Used by {@link formatQuery} for the `json*` formats when `parseNumbers` is `true`.
|
|
3411
3424
|
*
|
|
@@ -3719,14 +3732,14 @@ declare const objectEntries: <Type extends Record<PropertyKey, unknown>>(value:
|
|
|
3719
3732
|
*
|
|
3720
3733
|
* @group Option Lists
|
|
3721
3734
|
*/
|
|
3722
|
-
declare function toFullOption<Opt
|
|
3735
|
+
declare function toFullOption<Opt extends BaseOption>(opt: Opt | string, baseProperties?: Record<string, unknown>, labelMap?: Record<string, unknown>): ToFullOption<Opt>;
|
|
3723
3736
|
/**
|
|
3724
3737
|
* Converts an {@link OptionList} or {@link FlexibleOptionList} into a {@link FullOptionList}.
|
|
3725
3738
|
* Lists of full options are left unchanged.
|
|
3726
3739
|
*
|
|
3727
3740
|
* @group Option Lists
|
|
3728
3741
|
*/
|
|
3729
|
-
declare function toFullOptionList<Opt
|
|
3742
|
+
declare function toFullOptionList<Opt extends BaseOption>(optList: unknown[], baseProperties?: Record<string, unknown>, labelMap?: Record<string, unknown>): FullOptionList<Opt>;
|
|
3730
3743
|
/**
|
|
3731
3744
|
* Converts a {@link FlexibleOptionList} into a {@link FullOptionList}.
|
|
3732
3745
|
* Lists of full options are left unchanged.
|
|
@@ -3752,7 +3765,7 @@ declare const uniqByName: <T extends {
|
|
|
3752
3765
|
*
|
|
3753
3766
|
* @group Option Lists
|
|
3754
3767
|
*/
|
|
3755
|
-
declare const uniqByIdentifier: <T extends RequireAtLeastOne<{
|
|
3768
|
+
declare const uniqByIdentifier: <T extends RequireAtLeastOne$1<{
|
|
3756
3769
|
name: string;
|
|
3757
3770
|
value: string;
|
|
3758
3771
|
}, "name" | "value">>(originalArray: T[]) => T[];
|
|
@@ -3808,9 +3821,9 @@ declare function getOption<OptType extends Option>(arr: FlexibleOptionList<OptTy
|
|
|
3808
3821
|
*
|
|
3809
3822
|
* @group Option Lists
|
|
3810
3823
|
*/
|
|
3811
|
-
declare function getFirstOption<Opt
|
|
3812
|
-
declare function getFirstOption<Opt
|
|
3813
|
-
declare function getFirstOption<Opt
|
|
3824
|
+
declare function getFirstOption<Opt extends FullOption>(arr?: OptionGroup<Opt>[] | Opt[]): GetOptionIdentifierType<Opt> | null;
|
|
3825
|
+
declare function getFirstOption<Opt extends ValueOption>(arr?: OptionGroup<Opt>[] | Opt[]): GetOptionIdentifierType<Opt> | null;
|
|
3826
|
+
declare function getFirstOption<Opt extends Option>(arr?: OptionGroup<Opt>[] | Opt[]): GetOptionIdentifierType<Opt> | null;
|
|
3814
3827
|
/**
|
|
3815
3828
|
* Flattens {@link FlexibleOptionGroup} arrays into {@link BaseOption} arrays.
|
|
3816
3829
|
* If the array is already flat, it is returned as is.
|
|
@@ -3912,17 +3925,6 @@ declare const getCommonAncestorPath: (path1: Path, path2: Path) => Path;
|
|
|
3912
3925
|
*/
|
|
3913
3926
|
declare const pathIsDisabled: (path: Path, query: RuleGroupTypeAny) => boolean;
|
|
3914
3927
|
//#endregion
|
|
3915
|
-
//#region ../react-querybuilder/src/redux/getRqbStore.d.ts
|
|
3916
|
-
declare global {
|
|
3917
|
-
var __RQB_DEVTOOLS__: boolean | undefined;
|
|
3918
|
-
}
|
|
3919
|
-
/**
|
|
3920
|
-
* Gets the singleton React Query Builder store instance.
|
|
3921
|
-
* DevTools are enabled if either:
|
|
3922
|
-
* - globalThis.__RQB_DEVTOOLS__ is truthy
|
|
3923
|
-
* - window.__RQB_DEVTOOLS__ is truthy
|
|
3924
|
-
*/
|
|
3925
|
-
//#endregion
|
|
3926
3928
|
//#region src/utils/preferProp.d.ts
|
|
3927
3929
|
/**
|
|
3928
3930
|
* For given default, prop, and context values, return the first provided of prop,
|
|
@@ -3992,17 +3994,25 @@ interface AddOptions {
|
|
|
3992
3994
|
*/
|
|
3993
3995
|
idGenerator?: () => string;
|
|
3994
3996
|
}
|
|
3997
|
+
interface AddMethod {
|
|
3998
|
+
<RG extends RuleGroupTypeAny>(query: RG, ruleOrGroup: RG | RuleType, parentPathOrID: Path | string, options?: AddOptions): RG;
|
|
3999
|
+
}
|
|
3995
4000
|
/**
|
|
3996
|
-
* Adds a rule or group to a query.
|
|
3997
|
-
*
|
|
4001
|
+
* Adds a rule or group to a query without mutating the original query.
|
|
4002
|
+
*
|
|
4003
|
+
* @returns A new query with the rule or group added.
|
|
3998
4004
|
*
|
|
3999
4005
|
* @group Query Tools
|
|
4000
4006
|
*/
|
|
4001
|
-
declare const add:
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4007
|
+
declare const add: AddMethod;
|
|
4008
|
+
/**
|
|
4009
|
+
* Adds a rule or group to a query in place.
|
|
4010
|
+
*
|
|
4011
|
+
* @returns The query (mutated in place) with the rule or group added.
|
|
4012
|
+
*
|
|
4013
|
+
* @group Query Tools
|
|
4014
|
+
*/
|
|
4015
|
+
declare const addInPlace: AddMethod;
|
|
4006
4016
|
/**
|
|
4007
4017
|
* Options for {@link update}.
|
|
4008
4018
|
*
|
|
@@ -4036,27 +4046,44 @@ interface UpdateOptions {
|
|
|
4036
4046
|
*/
|
|
4037
4047
|
getMatchModes?: (field: string) => MatchModeOptions;
|
|
4038
4048
|
}
|
|
4049
|
+
interface UpdateMethod {
|
|
4050
|
+
<RG extends RuleGroupTypeAny>(query: RG, prop: UpdateableProperties, value: any, pathOrID: Path | string, options?: UpdateOptions): RG;
|
|
4051
|
+
}
|
|
4052
|
+
/**
|
|
4053
|
+
* Updates a property of a rule or group within a query without mutating the original query.
|
|
4054
|
+
*
|
|
4055
|
+
* @returns A new query with the rule or group property updated.
|
|
4056
|
+
*
|
|
4057
|
+
* @group Query Tools
|
|
4058
|
+
*/
|
|
4059
|
+
declare const update: UpdateMethod;
|
|
4039
4060
|
/**
|
|
4040
|
-
* Updates a property of a rule or group within a query.
|
|
4041
|
-
*
|
|
4061
|
+
* Updates a property of a rule or group within a query in place.
|
|
4062
|
+
*
|
|
4063
|
+
* @returns The query (mutated in place) with the rule or group property updated.
|
|
4042
4064
|
*
|
|
4043
4065
|
* @group Query Tools
|
|
4044
4066
|
*/
|
|
4045
|
-
declare const
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
getValueSources,
|
|
4050
|
-
getRuleDefaultValue,
|
|
4051
|
-
getMatchModes
|
|
4052
|
-
}?: UpdateOptions) => RG;
|
|
4067
|
+
declare const updateInPlace: UpdateMethod;
|
|
4068
|
+
interface RemoveMethod {
|
|
4069
|
+
<RG extends RuleGroupTypeAny>(query: RG, pathOrID: Path | string): RG;
|
|
4070
|
+
}
|
|
4053
4071
|
/**
|
|
4054
|
-
* Removes a rule or group from a query.
|
|
4055
|
-
*
|
|
4072
|
+
* Removes a rule or group from a query without mutating the original query.
|
|
4073
|
+
*
|
|
4074
|
+
* @returns A new query with the rule or group removed.
|
|
4056
4075
|
*
|
|
4057
4076
|
* @group Query Tools
|
|
4058
4077
|
*/
|
|
4059
|
-
declare const remove:
|
|
4078
|
+
declare const remove: RemoveMethod;
|
|
4079
|
+
/**
|
|
4080
|
+
* Removes a rule or group from a query in place.
|
|
4081
|
+
*
|
|
4082
|
+
* @returns The query (mutated in place) with the rule or group removed.
|
|
4083
|
+
*
|
|
4084
|
+
* @group Query Tools
|
|
4085
|
+
*/
|
|
4086
|
+
declare const removeInPlace: RemoveMethod;
|
|
4060
4087
|
/**
|
|
4061
4088
|
* Options for {@link move}.
|
|
4062
4089
|
*
|
|
@@ -4078,18 +4105,27 @@ interface MoveOptions {
|
|
|
4078
4105
|
*/
|
|
4079
4106
|
idGenerator?: () => string;
|
|
4080
4107
|
}
|
|
4108
|
+
interface MoveMethod {
|
|
4109
|
+
<RG extends RuleGroupTypeAny>(query: RG, oldPathOrID: Path | string, newPath: Path | "up" | "down", options?: MoveOptions): RG;
|
|
4110
|
+
}
|
|
4081
4111
|
/**
|
|
4082
|
-
* Moves a rule or group from one path to another
|
|
4083
|
-
* `{ clone: true }` to copy instead of move.
|
|
4084
|
-
*
|
|
4112
|
+
* Moves a rule or group from one path to another without mutating the original query.
|
|
4113
|
+
* In the options parameter, pass `{ clone: true }` to copy instead of move.
|
|
4114
|
+
*
|
|
4115
|
+
* @returns A new query with the rule or group moved or cloned.
|
|
4085
4116
|
*
|
|
4086
4117
|
* @group Query Tools
|
|
4087
4118
|
*/
|
|
4088
|
-
declare const move:
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4119
|
+
declare const move: MoveMethod;
|
|
4120
|
+
/**
|
|
4121
|
+
* Moves a rule or group from one path to another in place.
|
|
4122
|
+
* In the options parameter, pass `{ clone: true }` to copy instead of move.
|
|
4123
|
+
*
|
|
4124
|
+
* @returns The query (mutated in place) with the rule or group moved or cloned.
|
|
4125
|
+
*
|
|
4126
|
+
* @group Query Tools
|
|
4127
|
+
*/
|
|
4128
|
+
declare const moveInPlace: MoveMethod;
|
|
4093
4129
|
/**
|
|
4094
4130
|
* Options for {@link insert}.
|
|
4095
4131
|
*
|
|
@@ -4128,19 +4164,25 @@ interface InsertOptions {
|
|
|
4128
4164
|
*/
|
|
4129
4165
|
replace?: boolean;
|
|
4130
4166
|
}
|
|
4167
|
+
interface InsertMethod {
|
|
4168
|
+
<RG extends RuleGroupTypeAny>(query: RG, ruleOrGroup: RG | RuleType, path: number[], options?: InsertOptions): RG;
|
|
4169
|
+
}
|
|
4131
4170
|
/**
|
|
4132
|
-
* Inserts a rule or group into a query.
|
|
4133
|
-
*
|
|
4171
|
+
* Inserts a rule or group into a query without mutating the original query.
|
|
4172
|
+
*
|
|
4173
|
+
* @returns A new query with the rule or group inserted.
|
|
4134
4174
|
*
|
|
4135
4175
|
* @group Query Tools
|
|
4136
4176
|
*/
|
|
4137
|
-
declare const insert:
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4177
|
+
declare const insert: InsertMethod;
|
|
4178
|
+
/**
|
|
4179
|
+
* Inserts a rule or group into a query in place.
|
|
4180
|
+
*
|
|
4181
|
+
* @returns The query (mutated in place) with the rule or group inserted.
|
|
4182
|
+
*
|
|
4183
|
+
* @group Query Tools
|
|
4184
|
+
*/
|
|
4185
|
+
declare const insertInPlace: InsertMethod;
|
|
4144
4186
|
/**
|
|
4145
4187
|
* Options for {@link group}.
|
|
4146
4188
|
*
|
|
@@ -4162,20 +4204,29 @@ interface GroupOptions {
|
|
|
4162
4204
|
*/
|
|
4163
4205
|
idGenerator?: () => string;
|
|
4164
4206
|
}
|
|
4207
|
+
interface GroupMethod {
|
|
4208
|
+
<RG extends RuleGroupTypeAny>(query: RG, sourcePathOrID: Path | string, targetPathOrID: Path | string, options?: GroupOptions): RG;
|
|
4209
|
+
}
|
|
4165
4210
|
/**
|
|
4166
4211
|
* Creates a new group at a target path with its `rules` array containing the current
|
|
4167
|
-
* objects at the target path and the source path
|
|
4168
|
-
* `{ clone: true }` to copy the source rule/group instead of move.
|
|
4212
|
+
* objects at the target path and the source path without mutating the original query.
|
|
4213
|
+
* In the options parameter, pass `{ clone: true }` to copy the source rule/group instead of move.
|
|
4169
4214
|
*
|
|
4170
|
-
* @returns
|
|
4215
|
+
* @returns A new query with the rules or groups grouped.
|
|
4171
4216
|
*
|
|
4172
4217
|
* @group Query Tools
|
|
4173
4218
|
*/
|
|
4174
|
-
declare const group:
|
|
4175
|
-
|
|
4176
|
-
|
|
4177
|
-
|
|
4178
|
-
}
|
|
4219
|
+
declare const group: GroupMethod;
|
|
4220
|
+
/**
|
|
4221
|
+
* Creates a new group at a target path with its `rules` array containing the current
|
|
4222
|
+
* objects at the target path and the source path in place.
|
|
4223
|
+
* In the options parameter, pass `{ clone: true }` to copy the source rule/group instead of move.
|
|
4224
|
+
*
|
|
4225
|
+
* @returns The query (mutated in place) with the rules or groups grouped.
|
|
4226
|
+
*
|
|
4227
|
+
* @group Query Tools
|
|
4228
|
+
*/
|
|
4229
|
+
declare const groupInPlace: GroupMethod;
|
|
4179
4230
|
//#endregion
|
|
4180
4231
|
//#region src/utils/regenerateIDs.d.ts
|
|
4181
4232
|
/**
|
|
@@ -4312,5 +4363,5 @@ declare function transformQuery(query: RuleGroupType, options?: TransformQueryOp
|
|
|
4312
4363
|
*/
|
|
4313
4364
|
declare function transformQuery(query: RuleGroupTypeIC, options?: TransformQueryOptions<RuleGroupTypeIC>): any;
|
|
4314
4365
|
//#endregion
|
|
4315
|
-
export { AccessibleDescriptionGenerator, ActionElementEventHandler, 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, GroupOptions, GroupVariantCondition, InputType, 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, 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, RemoveNullability, RuleGroupArray, RuleGroupICArray, RuleGroupProcessor, RuleGroupType, RuleGroupTypeAny, RuleGroupTypeIC, RuleOrGroupArray, RuleProcessor, RuleType, RuleValidator, SQLPreset, StringUnionToFlexibleOptionArray, StringUnionToFullOptionArray, TestID, ToFlexibleOption, ToFullOption, TransformQueryOptions, UpdateOptions, UpdateableProperties, ValidationMap, ValidationResult, ValueChangeEventHandler, ValueEditorType, ValueOption, ValueProcessor, ValueProcessorByRule, ValueProcessorLegacy, ValueProcessorOptions, ValueSource, ValueSourceFlexibleOptions, ValueSourceFullOptions, ValueSources, WithRequired, WithUnknownIndex, add, 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, groupInvalidReasons, insert, isAncestor, isFlexibleOptionArray, isFlexibleOptionGroupArray, isFullOptionArray, isFullOptionGroupArray, isOptionGroupArray, isPojo, isRuleGroup, isRuleGroupType, isRuleGroupTypeIC, isRuleOrGroupValid, isRuleType, isValidValue, isValidationResult, isValueProcessorLegacy, joinWith, jsonLogicAdditionalOperators, lc, mapSQLOperator, mergeAnyTranslation, mergeAnyTranslations, mergeClassnames, mongoDbFallback, mongoOperators, move, normalizeConstituentWordOrder, nullFreeArray, nullOrUndefinedOrEmpty, numericRegex, numerifyValues, objectEntries, objectKeys, parseNumber, pathIsDisabled, pathsAreEqual, preferAnyProp, preferFlagProps, preferProp, prepareOptionList, prepareRule, prepareRuleGroup, prepareRuleOrGroup, prismaFallback, prismaOperators, processMatchMode, queryBuilderFlagDefaults, regenerateID, regenerateIDs, remove, rootPath, shouldRenderAsNumber, splitBy, sqlDialectPresets, standardClassnames, toArray, toFlatOptionArray, toFullOption, toFullOptionList, toFullOptionMap, transformQuery, trimIfString, uniqByIdentifier, uniqByName, uniqOptGroups, uniqOptList, update };
|
|
4366
|
+
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, 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 };
|
|
4316
4367
|
//# sourceMappingURL=react-querybuilder_core.legacy-esm.d.ts.map
|