@react-querybuilder/core 8.23.1 → 8.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/cjs/react-querybuilder_core.cjs.development.d.ts +507 -448
  2. package/dist/cjs/react-querybuilder_core.cjs.development.js +169 -6
  3. package/dist/cjs/react-querybuilder_core.cjs.development.js.map +1 -1
  4. package/dist/cjs/react-querybuilder_core.cjs.production.d.ts +507 -448
  5. package/dist/cjs/react-querybuilder_core.cjs.production.js +1 -1
  6. package/dist/cjs/react-querybuilder_core.cjs.production.js.map +1 -1
  7. package/dist/derivations.d.mts +288 -237
  8. package/dist/derivations.d.ts +288 -237
  9. package/dist/derivations.js +137 -4
  10. package/dist/derivations.js.map +1 -1
  11. package/dist/derivations.mjs +136 -5
  12. package/dist/derivations.mjs.map +1 -1
  13. package/dist/formatQuery.d.mts +1 -1
  14. package/dist/formatQuery.d.ts +1 -1
  15. package/dist/formatQuery.js +7 -4
  16. package/dist/formatQuery.js.map +1 -1
  17. package/dist/formatQuery.mjs +7 -4
  18. package/dist/formatQuery.mjs.map +1 -1
  19. package/dist/{index-OF2Q1gTp.d.mts → index-94yESPHr.d.mts} +4 -2
  20. package/dist/{index-XueTy_XQ.d.ts → index-D41_Ba4j.d.ts} +4 -2
  21. package/dist/parseCEL.d.mts +110 -110
  22. package/dist/parseCEL.d.ts +110 -110
  23. package/dist/parseCEL.js +4 -4
  24. package/dist/parseCEL.js.map +1 -1
  25. package/dist/parseCEL.mjs +4 -4
  26. package/dist/parseCEL.mjs.map +1 -1
  27. package/dist/parseCypher.d.mts +7 -7
  28. package/dist/parseCypher.d.ts +7 -7
  29. package/dist/parseGremlin.d.mts +4 -4
  30. package/dist/parseGremlin.d.ts +4 -4
  31. package/dist/parseJSONata.d.mts +37 -37
  32. package/dist/parseJSONata.d.ts +37 -37
  33. package/dist/parseJSONata.js +2 -2
  34. package/dist/parseJSONata.mjs +2 -2
  35. package/dist/parseJsonLogic.d.mts +8 -8
  36. package/dist/parseJsonLogic.d.ts +8 -8
  37. package/dist/parseJsonLogic.js +3 -3
  38. package/dist/parseJsonLogic.mjs +3 -3
  39. package/dist/parseMongoDB.d.mts +7 -7
  40. package/dist/parseMongoDB.d.ts +7 -7
  41. package/dist/parseMongoDB.js +3 -3
  42. package/dist/parseMongoDB.mjs +3 -3
  43. package/dist/parseSPARQL.d.mts +4 -4
  44. package/dist/parseSPARQL.d.ts +4 -4
  45. package/dist/parseSQL.d.mts +61 -61
  46. package/dist/parseSQL.d.ts +61 -61
  47. package/dist/parseSQL.js +4 -4
  48. package/dist/parseSQL.js.map +1 -1
  49. package/dist/parseSQL.mjs +4 -4
  50. package/dist/parseSQL.mjs.map +1 -1
  51. package/dist/parseSpEL.d.mts +55 -55
  52. package/dist/parseSpEL.d.ts +55 -55
  53. package/dist/parseSpEL.js +3 -3
  54. package/dist/parseSpEL.mjs +3 -3
  55. package/dist/{parserUtils-DbBXyAht.js → parserUtils-2VtG7m8L.js} +3 -3
  56. package/dist/{parserUtils-DbBXyAht.js.map → parserUtils-2VtG7m8L.js.map} +1 -1
  57. package/dist/{parserUtils-BKPstAaO.mjs → parserUtils-BlafvoFb.mjs} +3 -3
  58. package/dist/{parserUtils-BKPstAaO.mjs.map → parserUtils-BlafvoFb.mjs.map} +1 -1
  59. package/dist/{prepareQueryObjects-Dj9cTl9D.js → prepareQueryObjects-DJ_VjOLb.js} +2 -2
  60. package/dist/{prepareQueryObjects-Dj9cTl9D.js.map → prepareQueryObjects-DJ_VjOLb.js.map} +1 -1
  61. package/dist/{prepareQueryObjects-Dmyf3Wi_.mjs → prepareQueryObjects-DawsH4e3.mjs} +2 -2
  62. package/dist/{prepareQueryObjects-Dmyf3Wi_.mjs.map → prepareQueryObjects-DawsH4e3.mjs.map} +1 -1
  63. package/dist/react-querybuilder_core.d.mts +507 -448
  64. package/dist/react-querybuilder_core.legacy-esm.d.ts +507 -448
  65. package/dist/react-querybuilder_core.legacy-esm.js +172 -14
  66. package/dist/react-querybuilder_core.legacy-esm.js.map +1 -1
  67. package/dist/react-querybuilder_core.mjs +168 -7
  68. package/dist/react-querybuilder_core.mjs.map +1 -1
  69. package/dist/react-querybuilder_core.production.d.mts +507 -448
  70. package/dist/react-querybuilder_core.production.mjs +1 -1
  71. package/dist/react-querybuilder_core.production.mjs.map +1 -1
  72. package/dist/{utils-e-7KHkjV.js → utils-B4E1-ZvU.js} +12 -2
  73. package/dist/utils-B4E1-ZvU.js.map +1 -0
  74. package/dist/{utils-CP5Jqy1P.mjs → utils-DLZCoyAh.mjs} +12 -2
  75. package/dist/utils-DLZCoyAh.mjs.map +1 -0
  76. package/package.json +20 -19
  77. package/dist/utils-CP5Jqy1P.mjs.map +0 -1
  78. package/dist/utils-e-7KHkjV.js.map +0 -1
@@ -36,7 +36,7 @@ type OverrideProperties<TOriginal,
36
36
  TOverride extends Partial<Record<keyof TOriginal, unknown>> & { [Key in keyof TOverride]: Key extends keyof TOriginal ? TOverride[Key] : never; }> = Merge<TOriginal, TOverride>;
37
37
  //#endregion
38
38
  //#region src/utils/parseJSONata/types.d.ts
39
- interface JSONataExprNode {
39
+ export interface JSONataExprNode {
40
40
  type: string;
41
41
  value?: any;
42
42
  position?: number;
@@ -49,76 +49,76 @@ interface JSONataExprNode {
49
49
  lhs?: JSONataExprNode;
50
50
  rhs?: JSONataExprNode;
51
51
  }
52
- interface JSONataPath extends JSONataExprNode {
52
+ export interface JSONataPath extends JSONataExprNode {
53
53
  type: "path";
54
54
  steps: [JSONataExprNode, ...JSONataExprNode[]];
55
55
  }
56
- interface JSONataName extends JSONataExprNode {
56
+ export interface JSONataName extends JSONataExprNode {
57
57
  type: "name";
58
58
  value: string;
59
59
  }
60
- interface JSONataIdentifier extends JSONataPath {
60
+ export interface JSONataIdentifier extends JSONataPath {
61
61
  steps: [JSONataName, ...JSONataName[]];
62
62
  }
63
- interface JSONataBlock extends JSONataExprNode {
63
+ export interface JSONataBlock extends JSONataExprNode {
64
64
  type: "block";
65
65
  expressions: [JSONataExprNode];
66
66
  }
67
- interface JSONataString extends JSONataExprNode {
67
+ export interface JSONataString extends JSONataExprNode {
68
68
  type: "string";
69
69
  value: string;
70
70
  }
71
- interface JSONataNumber extends JSONataExprNode {
71
+ export interface JSONataNumber extends JSONataExprNode {
72
72
  type: "number";
73
73
  value: number;
74
74
  }
75
- interface JSONataBoolean extends JSONataExprNode {
75
+ export interface JSONataBoolean extends JSONataExprNode {
76
76
  type: "value";
77
77
  value: boolean;
78
78
  }
79
- interface JSONataNull extends JSONataExprNode {
79
+ export interface JSONataNull extends JSONataExprNode {
80
80
  type: "value";
81
81
  value: null;
82
82
  }
83
- interface JSONataRegex extends JSONataExprNode {
83
+ export interface JSONataRegex extends JSONataExprNode {
84
84
  type: "regex";
85
85
  value: RegExp;
86
86
  }
87
- interface JSONataBinaryNode extends JSONataExprNode {
87
+ export interface JSONataBinaryNode extends JSONataExprNode {
88
88
  type: "binary";
89
89
  lhs: JSONataExprNode;
90
90
  rhs: JSONataExprNode;
91
91
  }
92
- interface JSONataAnd extends JSONataBinaryNode {
92
+ export interface JSONataAnd extends JSONataBinaryNode {
93
93
  value: "and";
94
94
  }
95
- interface JSONataOr extends JSONataBinaryNode {
95
+ export interface JSONataOr extends JSONataBinaryNode {
96
96
  value: "or";
97
97
  }
98
- interface JSONataEqual extends JSONataBinaryNode {
98
+ export interface JSONataEqual extends JSONataBinaryNode {
99
99
  value: "=";
100
100
  }
101
- interface JSONataNotEqual extends JSONataBinaryNode {
101
+ export interface JSONataNotEqual extends JSONataBinaryNode {
102
102
  value: "!=";
103
103
  }
104
- interface JSONataGreaterThan extends JSONataBinaryNode {
104
+ export interface JSONataGreaterThan extends JSONataBinaryNode {
105
105
  value: ">";
106
106
  }
107
- interface JSONataGreaterThanOrEqual extends JSONataBinaryNode {
107
+ export interface JSONataGreaterThanOrEqual extends JSONataBinaryNode {
108
108
  value: ">=";
109
109
  }
110
- interface JSONataLessThan extends JSONataBinaryNode {
110
+ export interface JSONataLessThan extends JSONataBinaryNode {
111
111
  value: "<";
112
112
  }
113
- interface JSONataLessThanOrEqual extends JSONataBinaryNode {
113
+ export interface JSONataLessThanOrEqual extends JSONataBinaryNode {
114
114
  value: "<=";
115
115
  }
116
- interface JSONataIn extends JSONataBinaryNode {
116
+ export interface JSONataIn extends JSONataBinaryNode {
117
117
  value: "in";
118
118
  lhs: JSONataPath;
119
119
  rhs: JSONataList;
120
120
  }
121
- interface JSONataNot extends JSONataExprNode {
121
+ export interface JSONataNot extends JSONataExprNode {
122
122
  type: "function";
123
123
  value: "(";
124
124
  arguments: [JSONataExprNode];
@@ -127,7 +127,7 @@ interface JSONataNot extends JSONataExprNode {
127
127
  type: "variable";
128
128
  }>;
129
129
  }
130
- interface JSONataContains extends JSONataExprNode {
130
+ export interface JSONataContains extends JSONataExprNode {
131
131
  type: "function";
132
132
  value: "(";
133
133
  arguments: [JSONataPath, JSONataString | JSONataRegex];
@@ -136,7 +136,7 @@ interface JSONataContains extends JSONataExprNode {
136
136
  type: "variable";
137
137
  }>;
138
138
  }
139
- interface JSONataToMillis extends JSONataExprNode {
139
+ export interface JSONataToMillis extends JSONataExprNode {
140
140
  type: "function";
141
141
  value: "(";
142
142
  arguments: [JSONataString, ...JSONataString[]];
@@ -145,7 +145,7 @@ interface JSONataToMillis extends JSONataExprNode {
145
145
  type: "variable";
146
146
  }>;
147
147
  }
148
- interface JSONataList extends JSONataExprNode {
148
+ export interface JSONataList extends JSONataExprNode {
149
149
  type: "unary";
150
150
  value: "[";
151
151
  expressions: JSONataExprNode[];
@@ -155,9 +155,9 @@ interface JSONataList extends JSONataExprNode {
155
155
  * receive — an arithmetic infix node (`+ - * / %`) or a function-call node
156
156
  * (`$abs`/`$min`/`$max`/`$uppercase`/`$lowercase`, etc.).
157
157
  */
158
- type JSONataExpressionOperand = JSONataExprNode;
158
+ export type JSONataExpressionOperand = JSONataExprNode;
159
159
  /** Context passed to {@link parseJSONata!ParseJSONataOptions.getExpression}. */
160
- interface ParseJSONataExpressionContext {
160
+ export interface ParseJSONataExpressionContext {
161
161
  /** Returns `true` if the field is configured (or if no `fields` were supplied). */
162
162
  fieldExists: (fieldName: string) => boolean;
163
163
  }
@@ -168,7 +168,7 @@ interface ParseJSONataExpressionContext {
168
168
  *
169
169
  * Note: `listsAsArrays` is ignored by `parseJSONata`; lists are _always_ arrays.
170
170
  */
171
- interface ParseJSONataOptions extends ParserCommonOptions {
171
+ export interface ParseJSONataOptions extends ParserCommonOptions {
172
172
  /**
173
173
  * Handler that converts a JSONata arithmetic/function operand subtree into an
174
174
  * {@link ExpressionNode}. Return `null` to reject (the rule is dropped). Supplied by
@@ -202,21 +202,21 @@ declare function parseJSONata(jsonataInput: string, options: Except<ParseJSONata
202
202
  //#endregion
203
203
  //#region src/utils/parseJSONata/utils.d.ts
204
204
  type Any = any;
205
- declare const isJSONataIdentifier: (expr: Any) => expr is JSONataIdentifier;
206
- declare const isJSONataString: (expr: Any) => expr is JSONataString;
207
- declare const isJSONataNumber: (expr: Any) => expr is JSONataNumber;
208
- declare const isJSONataBoolean: (expr: Any) => expr is JSONataBoolean;
209
- declare const isJSONataNull: (expr: Any) => expr is JSONataNull;
210
- declare const isJSONataList: (expr: Any) => expr is JSONataList;
205
+ export declare const isJSONataIdentifier: (expr: Any) => expr is JSONataIdentifier;
206
+ export declare const isJSONataString: (expr: Any) => expr is JSONataString;
207
+ export declare const isJSONataNumber: (expr: Any) => expr is JSONataNumber;
208
+ export declare const isJSONataBoolean: (expr: Any) => expr is JSONataBoolean;
209
+ export declare const isJSONataNull: (expr: Any) => expr is JSONataNull;
210
+ export declare const isJSONataList: (expr: Any) => expr is JSONataList;
211
211
  /**
212
212
  * A JSONata comparison operand that is a candidate expression subtree: an arithmetic infix node
213
213
  * (`+ - * / %`) or a function-call node (excluding the `not`/`contains` predicates handled
214
214
  * elsewhere). The expr-supplied `getExpression` handler decides whether it maps to a known
215
215
  * function.
216
216
  */
217
- declare const isJSONataExpressionOperand: (expr: Any) => expr is JSONataExprNode;
218
- declare const getValidValue: (expr: Any) => Any;
219
- declare const getFieldFromPath: (path: JSONataPath) => string;
217
+ export declare const isJSONataExpressionOperand: (expr: Any) => expr is JSONataExprNode;
218
+ export declare const getValidValue: (expr: Any) => Any;
219
+ export declare const getFieldFromPath: (path: JSONataPath) => string;
220
220
  //#endregion
221
- export { JSONataAnd, JSONataBinaryNode, JSONataBlock, JSONataBoolean, JSONataContains, JSONataEqual, JSONataExprNode, JSONataExpressionOperand, JSONataGreaterThan, JSONataGreaterThanOrEqual, JSONataIdentifier, JSONataIn, JSONataLessThan, JSONataLessThanOrEqual, JSONataList, JSONataName, JSONataNot, JSONataNotEqual, JSONataNull, JSONataNumber, JSONataOr, JSONataPath, JSONataRegex, JSONataString, JSONataToMillis, ParseJSONataExpressionContext, ParseJSONataOptions, getFieldFromPath, getValidValue, isJSONataBoolean, isJSONataExpressionOperand, isJSONataIdentifier, isJSONataList, isJSONataNull, isJSONataNumber, isJSONataString, parseJSONata };
221
+ export { parseJSONata };
222
222
  //# sourceMappingURL=parseJSONata.d.mts.map
@@ -36,7 +36,7 @@ type OverrideProperties<TOriginal,
36
36
  TOverride extends Partial<Record<keyof TOriginal, unknown>> & { [Key in keyof TOverride]: Key extends keyof TOriginal ? TOverride[Key] : never; }> = Merge<TOriginal, TOverride>;
37
37
  //#endregion
38
38
  //#region src/utils/parseJSONata/types.d.ts
39
- interface JSONataExprNode {
39
+ export interface JSONataExprNode {
40
40
  type: string;
41
41
  value?: any;
42
42
  position?: number;
@@ -49,76 +49,76 @@ interface JSONataExprNode {
49
49
  lhs?: JSONataExprNode;
50
50
  rhs?: JSONataExprNode;
51
51
  }
52
- interface JSONataPath extends JSONataExprNode {
52
+ export interface JSONataPath extends JSONataExprNode {
53
53
  type: "path";
54
54
  steps: [JSONataExprNode, ...JSONataExprNode[]];
55
55
  }
56
- interface JSONataName extends JSONataExprNode {
56
+ export interface JSONataName extends JSONataExprNode {
57
57
  type: "name";
58
58
  value: string;
59
59
  }
60
- interface JSONataIdentifier extends JSONataPath {
60
+ export interface JSONataIdentifier extends JSONataPath {
61
61
  steps: [JSONataName, ...JSONataName[]];
62
62
  }
63
- interface JSONataBlock extends JSONataExprNode {
63
+ export interface JSONataBlock extends JSONataExprNode {
64
64
  type: "block";
65
65
  expressions: [JSONataExprNode];
66
66
  }
67
- interface JSONataString extends JSONataExprNode {
67
+ export interface JSONataString extends JSONataExprNode {
68
68
  type: "string";
69
69
  value: string;
70
70
  }
71
- interface JSONataNumber extends JSONataExprNode {
71
+ export interface JSONataNumber extends JSONataExprNode {
72
72
  type: "number";
73
73
  value: number;
74
74
  }
75
- interface JSONataBoolean extends JSONataExprNode {
75
+ export interface JSONataBoolean extends JSONataExprNode {
76
76
  type: "value";
77
77
  value: boolean;
78
78
  }
79
- interface JSONataNull extends JSONataExprNode {
79
+ export interface JSONataNull extends JSONataExprNode {
80
80
  type: "value";
81
81
  value: null;
82
82
  }
83
- interface JSONataRegex extends JSONataExprNode {
83
+ export interface JSONataRegex extends JSONataExprNode {
84
84
  type: "regex";
85
85
  value: RegExp;
86
86
  }
87
- interface JSONataBinaryNode extends JSONataExprNode {
87
+ export interface JSONataBinaryNode extends JSONataExprNode {
88
88
  type: "binary";
89
89
  lhs: JSONataExprNode;
90
90
  rhs: JSONataExprNode;
91
91
  }
92
- interface JSONataAnd extends JSONataBinaryNode {
92
+ export interface JSONataAnd extends JSONataBinaryNode {
93
93
  value: "and";
94
94
  }
95
- interface JSONataOr extends JSONataBinaryNode {
95
+ export interface JSONataOr extends JSONataBinaryNode {
96
96
  value: "or";
97
97
  }
98
- interface JSONataEqual extends JSONataBinaryNode {
98
+ export interface JSONataEqual extends JSONataBinaryNode {
99
99
  value: "=";
100
100
  }
101
- interface JSONataNotEqual extends JSONataBinaryNode {
101
+ export interface JSONataNotEqual extends JSONataBinaryNode {
102
102
  value: "!=";
103
103
  }
104
- interface JSONataGreaterThan extends JSONataBinaryNode {
104
+ export interface JSONataGreaterThan extends JSONataBinaryNode {
105
105
  value: ">";
106
106
  }
107
- interface JSONataGreaterThanOrEqual extends JSONataBinaryNode {
107
+ export interface JSONataGreaterThanOrEqual extends JSONataBinaryNode {
108
108
  value: ">=";
109
109
  }
110
- interface JSONataLessThan extends JSONataBinaryNode {
110
+ export interface JSONataLessThan extends JSONataBinaryNode {
111
111
  value: "<";
112
112
  }
113
- interface JSONataLessThanOrEqual extends JSONataBinaryNode {
113
+ export interface JSONataLessThanOrEqual extends JSONataBinaryNode {
114
114
  value: "<=";
115
115
  }
116
- interface JSONataIn extends JSONataBinaryNode {
116
+ export interface JSONataIn extends JSONataBinaryNode {
117
117
  value: "in";
118
118
  lhs: JSONataPath;
119
119
  rhs: JSONataList;
120
120
  }
121
- interface JSONataNot extends JSONataExprNode {
121
+ export interface JSONataNot extends JSONataExprNode {
122
122
  type: "function";
123
123
  value: "(";
124
124
  arguments: [JSONataExprNode];
@@ -127,7 +127,7 @@ interface JSONataNot extends JSONataExprNode {
127
127
  type: "variable";
128
128
  }>;
129
129
  }
130
- interface JSONataContains extends JSONataExprNode {
130
+ export interface JSONataContains extends JSONataExprNode {
131
131
  type: "function";
132
132
  value: "(";
133
133
  arguments: [JSONataPath, JSONataString | JSONataRegex];
@@ -136,7 +136,7 @@ interface JSONataContains extends JSONataExprNode {
136
136
  type: "variable";
137
137
  }>;
138
138
  }
139
- interface JSONataToMillis extends JSONataExprNode {
139
+ export interface JSONataToMillis extends JSONataExprNode {
140
140
  type: "function";
141
141
  value: "(";
142
142
  arguments: [JSONataString, ...JSONataString[]];
@@ -145,7 +145,7 @@ interface JSONataToMillis extends JSONataExprNode {
145
145
  type: "variable";
146
146
  }>;
147
147
  }
148
- interface JSONataList extends JSONataExprNode {
148
+ export interface JSONataList extends JSONataExprNode {
149
149
  type: "unary";
150
150
  value: "[";
151
151
  expressions: JSONataExprNode[];
@@ -155,9 +155,9 @@ interface JSONataList extends JSONataExprNode {
155
155
  * receive — an arithmetic infix node (`+ - * / %`) or a function-call node
156
156
  * (`$abs`/`$min`/`$max`/`$uppercase`/`$lowercase`, etc.).
157
157
  */
158
- type JSONataExpressionOperand = JSONataExprNode;
158
+ export type JSONataExpressionOperand = JSONataExprNode;
159
159
  /** Context passed to {@link parseJSONata!ParseJSONataOptions.getExpression}. */
160
- interface ParseJSONataExpressionContext {
160
+ export interface ParseJSONataExpressionContext {
161
161
  /** Returns `true` if the field is configured (or if no `fields` were supplied). */
162
162
  fieldExists: (fieldName: string) => boolean;
163
163
  }
@@ -168,7 +168,7 @@ interface ParseJSONataExpressionContext {
168
168
  *
169
169
  * Note: `listsAsArrays` is ignored by `parseJSONata`; lists are _always_ arrays.
170
170
  */
171
- interface ParseJSONataOptions extends ParserCommonOptions {
171
+ export interface ParseJSONataOptions extends ParserCommonOptions {
172
172
  /**
173
173
  * Handler that converts a JSONata arithmetic/function operand subtree into an
174
174
  * {@link ExpressionNode}. Return `null` to reject (the rule is dropped). Supplied by
@@ -202,21 +202,21 @@ declare function parseJSONata(jsonataInput: string, options: Except<ParseJSONata
202
202
  //#endregion
203
203
  //#region src/utils/parseJSONata/utils.d.ts
204
204
  type Any = any;
205
- declare const isJSONataIdentifier: (expr: Any) => expr is JSONataIdentifier;
206
- declare const isJSONataString: (expr: Any) => expr is JSONataString;
207
- declare const isJSONataNumber: (expr: Any) => expr is JSONataNumber;
208
- declare const isJSONataBoolean: (expr: Any) => expr is JSONataBoolean;
209
- declare const isJSONataNull: (expr: Any) => expr is JSONataNull;
210
- declare const isJSONataList: (expr: Any) => expr is JSONataList;
205
+ export declare const isJSONataIdentifier: (expr: Any) => expr is JSONataIdentifier;
206
+ export declare const isJSONataString: (expr: Any) => expr is JSONataString;
207
+ export declare const isJSONataNumber: (expr: Any) => expr is JSONataNumber;
208
+ export declare const isJSONataBoolean: (expr: Any) => expr is JSONataBoolean;
209
+ export declare const isJSONataNull: (expr: Any) => expr is JSONataNull;
210
+ export declare const isJSONataList: (expr: Any) => expr is JSONataList;
211
211
  /**
212
212
  * A JSONata comparison operand that is a candidate expression subtree: an arithmetic infix node
213
213
  * (`+ - * / %`) or a function-call node (excluding the `not`/`contains` predicates handled
214
214
  * elsewhere). The expr-supplied `getExpression` handler decides whether it maps to a known
215
215
  * function.
216
216
  */
217
- declare const isJSONataExpressionOperand: (expr: Any) => expr is JSONataExprNode;
218
- declare const getValidValue: (expr: Any) => Any;
219
- declare const getFieldFromPath: (path: JSONataPath) => string;
217
+ export declare const isJSONataExpressionOperand: (expr: Any) => expr is JSONataExprNode;
218
+ export declare const getValidValue: (expr: Any) => Any;
219
+ export declare const getFieldFromPath: (path: JSONataPath) => string;
220
220
  //#endregion
221
- export { JSONataAnd, JSONataBinaryNode, JSONataBlock, JSONataBoolean, JSONataContains, JSONataEqual, JSONataExprNode, JSONataExpressionOperand, JSONataGreaterThan, JSONataGreaterThanOrEqual, JSONataIdentifier, JSONataIn, JSONataLessThan, JSONataLessThanOrEqual, JSONataList, JSONataName, JSONataNot, JSONataNotEqual, JSONataNull, JSONataNumber, JSONataOr, JSONataPath, JSONataRegex, JSONataString, JSONataToMillis, ParseJSONataExpressionContext, ParseJSONataOptions, getFieldFromPath, getValidValue, isJSONataBoolean, isJSONataExpressionOperand, isJSONataIdentifier, isJSONataList, isJSONataNull, isJSONataNumber, isJSONataString, parseJSONata };
221
+ export { parseJSONata };
222
222
  //# sourceMappingURL=parseJSONata.d.ts.map
@@ -22,8 +22,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
22
22
  }) : target, mod));
23
23
  //#endregion
24
24
  const require_objectUtils = require("./objectUtils-DfnEmDSV.js");
25
- const require_prepareQueryObjects = require("./prepareQueryObjects-Dj9cTl9D.js");
26
- const require_parserUtils = require("./parserUtils-DbBXyAht.js");
25
+ const require_prepareQueryObjects = require("./prepareQueryObjects-DJ_VjOLb.js");
26
+ const require_parserUtils = require("./parserUtils-2VtG7m8L.js");
27
27
  let jsonata = require("jsonata");
28
28
  jsonata = __toESM(jsonata);
29
29
  //#region src/utils/parseJSONata/utils.ts
@@ -1,6 +1,6 @@
1
1
  import { i as isRuleGroup } from "./objectUtils-DDZ-KhV5.mjs";
2
- import { n as prepareRuleGroup } from "./prepareQueryObjects-Dmyf3Wi_.mjs";
3
- import { n as getFieldsArray, t as fieldIsValidUtil } from "./parserUtils-BKPstAaO.mjs";
2
+ import { n as prepareRuleGroup } from "./prepareQueryObjects-DawsH4e3.mjs";
3
+ import { n as getFieldsArray, t as fieldIsValidUtil } from "./parserUtils-BlafvoFb.mjs";
4
4
  import jsonata from "jsonata";
5
5
  //#region src/utils/parseJSONata/utils.ts
6
6
  const isJSONataExprNode = (expr) => {
@@ -1,19 +1,19 @@
1
1
  import { $t as DefaultRuleGroupType, Bt as RuleGroupTypeAny, Pt as DefaultRuleGroupTypeIC, R as RQBJsonLogic, V as RQBJsonLogicVar, g as JsonLogicRulesLogic, jn as Except, l as JsonLogicLessThan, on as ExpressionNode, rn as RuleType, u as JsonLogicLessThanOrEqual } from "./index-DOIE2pwx.mjs";
2
2
  import { t as ParserCommonOptions } from "./import-BdKPtLzo.mjs";
3
3
  //#region src/utils/parseJsonLogic/types.d.ts
4
- interface JsonLogicBetweenExclusive extends JsonLogicLessThan {
4
+ export interface JsonLogicBetweenExclusive extends JsonLogicLessThan {
5
5
  "<": [JsonLogicRulesLogic, JsonLogicRulesLogic, JsonLogicRulesLogic];
6
6
  }
7
- interface JsonLogicBetweenInclusive extends JsonLogicLessThanOrEqual {
7
+ export interface JsonLogicBetweenInclusive extends JsonLogicLessThanOrEqual {
8
8
  "<=": [JsonLogicRulesLogic, JsonLogicRulesLogic, JsonLogicRulesLogic];
9
9
  }
10
10
  /**
11
11
  * A JsonLogic operand subtree that {@link ParseJsonLogicOptions.getExpression} may receive —
12
12
  * an arithmetic/function operation object, a variable reference, or a literal.
13
13
  */
14
- type JsonLogicExpressionOperand = RQBJsonLogic;
14
+ export type JsonLogicExpressionOperand = RQBJsonLogic;
15
15
  /** Context passed to {@link ParseJsonLogicOptions.getExpression}. */
16
- interface ParseJsonLogicExpressionContext {
16
+ export interface ParseJsonLogicExpressionContext {
17
17
  /** Returns `true` if the field is configured (or if no `fields` were supplied). */
18
18
  fieldExists: (fieldName: string) => boolean;
19
19
  }
@@ -22,7 +22,7 @@ interface ParseJsonLogicExpressionContext {
22
22
  /**
23
23
  * Options object for {@link parseJsonLogic}.
24
24
  */
25
- interface ParseJsonLogicOptions extends ParserCommonOptions {
25
+ export interface ParseJsonLogicOptions extends ParserCommonOptions {
26
26
  jsonLogicOperations?: Record<string, (value: any) => RuleType | RuleGroupTypeAny | false>;
27
27
  /**
28
28
  * Handler that converts a JsonLogic arithmetic/function operation object into an
@@ -56,13 +56,13 @@ declare function parseJsonLogic(rqbJsonLogic: string | RQBJsonLogic, options: Ex
56
56
  }): DefaultRuleGroupTypeIC;
57
57
  //#endregion
58
58
  //#region src/utils/parseJsonLogic/utils.d.ts
59
- declare const isRQBJsonLogicVar: (logic: unknown) => logic is RQBJsonLogicVar;
59
+ export declare const isRQBJsonLogicVar: (logic: unknown) => logic is RQBJsonLogicVar;
60
60
  /**
61
61
  * A JsonLogic comparison operand that is a candidate expression subtree: a plain object that
62
62
  * is not a variable reference (i.e. an arithmetic/function operation object). The
63
63
  * expr-supplied `getExpression` handler decides whether it maps to a known function.
64
64
  */
65
- declare const isJsonLogicExpressionOperand: (logic: unknown) => logic is JsonLogicExpressionOperand;
65
+ export declare const isJsonLogicExpressionOperand: (logic: unknown) => logic is JsonLogicExpressionOperand;
66
66
  //#endregion
67
- export { JsonLogicBetweenExclusive, JsonLogicBetweenInclusive, JsonLogicExpressionOperand, ParseJsonLogicExpressionContext, ParseJsonLogicOptions, isJsonLogicExpressionOperand, isRQBJsonLogicVar, parseJsonLogic };
67
+ export { parseJsonLogic };
68
68
  //# sourceMappingURL=parseJsonLogic.d.mts.map
@@ -1,19 +1,19 @@
1
1
  import { $t as DefaultRuleGroupType, Bt as RuleGroupTypeAny, Pt as DefaultRuleGroupTypeIC, R as RQBJsonLogic, V as RQBJsonLogicVar, g as JsonLogicRulesLogic, jn as Except, l as JsonLogicLessThan, on as ExpressionNode, rn as RuleType, u as JsonLogicLessThanOrEqual } from "./index-DOIE2pwx.js";
2
2
  import { t as ParserCommonOptions } from "./import-BfZTwhp2.js";
3
3
  //#region src/utils/parseJsonLogic/types.d.ts
4
- interface JsonLogicBetweenExclusive extends JsonLogicLessThan {
4
+ export interface JsonLogicBetweenExclusive extends JsonLogicLessThan {
5
5
  "<": [JsonLogicRulesLogic, JsonLogicRulesLogic, JsonLogicRulesLogic];
6
6
  }
7
- interface JsonLogicBetweenInclusive extends JsonLogicLessThanOrEqual {
7
+ export interface JsonLogicBetweenInclusive extends JsonLogicLessThanOrEqual {
8
8
  "<=": [JsonLogicRulesLogic, JsonLogicRulesLogic, JsonLogicRulesLogic];
9
9
  }
10
10
  /**
11
11
  * A JsonLogic operand subtree that {@link ParseJsonLogicOptions.getExpression} may receive —
12
12
  * an arithmetic/function operation object, a variable reference, or a literal.
13
13
  */
14
- type JsonLogicExpressionOperand = RQBJsonLogic;
14
+ export type JsonLogicExpressionOperand = RQBJsonLogic;
15
15
  /** Context passed to {@link ParseJsonLogicOptions.getExpression}. */
16
- interface ParseJsonLogicExpressionContext {
16
+ export interface ParseJsonLogicExpressionContext {
17
17
  /** Returns `true` if the field is configured (or if no `fields` were supplied). */
18
18
  fieldExists: (fieldName: string) => boolean;
19
19
  }
@@ -22,7 +22,7 @@ interface ParseJsonLogicExpressionContext {
22
22
  /**
23
23
  * Options object for {@link parseJsonLogic}.
24
24
  */
25
- interface ParseJsonLogicOptions extends ParserCommonOptions {
25
+ export interface ParseJsonLogicOptions extends ParserCommonOptions {
26
26
  jsonLogicOperations?: Record<string, (value: any) => RuleType | RuleGroupTypeAny | false>;
27
27
  /**
28
28
  * Handler that converts a JsonLogic arithmetic/function operation object into an
@@ -56,13 +56,13 @@ declare function parseJsonLogic(rqbJsonLogic: string | RQBJsonLogic, options: Ex
56
56
  }): DefaultRuleGroupTypeIC;
57
57
  //#endregion
58
58
  //#region src/utils/parseJsonLogic/utils.d.ts
59
- declare const isRQBJsonLogicVar: (logic: unknown) => logic is RQBJsonLogicVar;
59
+ export declare const isRQBJsonLogicVar: (logic: unknown) => logic is RQBJsonLogicVar;
60
60
  /**
61
61
  * A JsonLogic comparison operand that is a candidate expression subtree: a plain object that
62
62
  * is not a variable reference (i.e. an arithmetic/function operation object). The
63
63
  * expr-supplied `getExpression` handler decides whether it maps to a known function.
64
64
  */
65
- declare const isJsonLogicExpressionOperand: (logic: unknown) => logic is JsonLogicExpressionOperand;
65
+ export declare const isJsonLogicExpressionOperand: (logic: unknown) => logic is JsonLogicExpressionOperand;
66
66
  //#endregion
67
- export { JsonLogicBetweenExclusive, JsonLogicBetweenInclusive, JsonLogicExpressionOperand, ParseJsonLogicExpressionContext, ParseJsonLogicOptions, isJsonLogicExpressionOperand, isRQBJsonLogicVar, parseJsonLogic };
67
+ export { parseJsonLogic };
68
68
  //# sourceMappingURL=parseJsonLogic.d.ts.map
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_utils = require("./utils-e-7KHkjV.js");
2
+ const require_utils = require("./utils-B4E1-ZvU.js");
3
3
  const require_objectUtils = require("./objectUtils-DfnEmDSV.js");
4
4
  const require_convertQuery = require("./convertQuery-BLT0GIhM.js");
5
- const require_prepareQueryObjects = require("./prepareQueryObjects-Dj9cTl9D.js");
6
- const require_parserUtils = require("./parserUtils-DbBXyAht.js");
5
+ const require_prepareQueryObjects = require("./prepareQueryObjects-DJ_VjOLb.js");
6
+ const require_parserUtils = require("./parserUtils-2VtG7m8L.js");
7
7
  //#region src/utils/parseJsonLogic/utils.ts
8
8
  const isJsonLogicVar = (logic) => require_objectUtils.isPojo(logic) && "var" in logic;
9
9
  const isRQBJsonLogicVar = (logic) => isJsonLogicVar(logic) && typeof logic.var === "string";
@@ -1,8 +1,8 @@
1
- import { U as joinWith, ot as defaultOperatorNegationMap } from "./utils-CP5Jqy1P.mjs";
1
+ import { U as joinWith, ot as defaultOperatorNegationMap } from "./utils-DLZCoyAh.mjs";
2
2
  import { a as isRuleGroupType, c as isPojo, i as isRuleGroup, r as objectKeys } from "./objectUtils-DDZ-KhV5.mjs";
3
3
  import { r as convertToIC } from "./convertQuery-DaXv3h7S.mjs";
4
- import { n as prepareRuleGroup } from "./prepareQueryObjects-Dmyf3Wi_.mjs";
5
- import { n as getFieldsArray, t as fieldIsValidUtil } from "./parserUtils-BKPstAaO.mjs";
4
+ import { n as prepareRuleGroup } from "./prepareQueryObjects-DawsH4e3.mjs";
5
+ import { n as getFieldsArray, t as fieldIsValidUtil } from "./parserUtils-BlafvoFb.mjs";
6
6
  //#region src/utils/parseJsonLogic/utils.ts
7
7
  const isJsonLogicVar = (logic) => isPojo(logic) && "var" in logic;
8
8
  const isRQBJsonLogicVar = (logic) => isJsonLogicVar(logic) && typeof logic.var === "string";
@@ -1,15 +1,15 @@
1
1
  import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-DOIE2pwx.mjs";
2
2
  import { t as ParserCommonOptions } from "./import-BdKPtLzo.mjs";
3
3
  //#region src/utils/parseMongoDB/types.d.ts
4
- type MongoDbSupportedOperators = "$and" | "$or" | "$not" | "$eq" | "$gt" | "$gte" | "$in" | "$lt" | "$lte" | "$ne" | "$nin" | "$regex" | "$expr";
4
+ export type MongoDbSupportedOperators = "$and" | "$or" | "$not" | "$eq" | "$gt" | "$gte" | "$in" | "$lt" | "$lte" | "$ne" | "$nin" | "$regex" | "$expr";
5
5
  /**
6
6
  * A MongoDB aggregation-expression operand that {@link parseMongoDB!ParseMongoDbOptions.getExpression}
7
7
  * may receive — an aggregation-operator object (`{ $add: [...] }`, `{ $abs: x }`, etc.), a
8
8
  * `"$field"` path reference, or a literal.
9
9
  */
10
- type MongoDBExpressionOperand = unknown;
10
+ export type MongoDBExpressionOperand = unknown;
11
11
  /** Context passed to {@link parseMongoDB!ParseMongoDbOptions.getExpression}. */
12
- interface ParseMongoDBExpressionContext {
12
+ export interface ParseMongoDBExpressionContext {
13
13
  /** Returns `true` if the field is configured (or if no `fields` were supplied). */
14
14
  fieldExists: (fieldName: string) => boolean;
15
15
  }
@@ -18,7 +18,7 @@ interface ParseMongoDBExpressionContext {
18
18
  /**
19
19
  * Options object for {@link parseMongoDB}.
20
20
  */
21
- interface ParseMongoDbOptions extends ParserCommonOptions {
21
+ export interface ParseMongoDbOptions extends ParserCommonOptions {
22
22
  /**
23
23
  * When `true`, MongoDB rules in the form of `{ fieldName: { $not: { <...rule> } } }`
24
24
  * will be parsed into a rule group with the `not` attribute set to `true`. By default
@@ -101,9 +101,9 @@ declare function parseMongoDB(mongoDbRules: string | Record<string, any>, option
101
101
  * literals are not expression operands. The expr-supplied `getExpression` handler decides
102
102
  * whether it maps to a known function.
103
103
  */
104
- declare const isMongoDBExpressionOperand: (operand: unknown) => boolean;
104
+ export declare const isMongoDBExpressionOperand: (operand: unknown) => boolean;
105
105
  /** Reads a MongoDB field-path operand (`"$field"`), returning the field name or `null`. */
106
- declare const mongoDbFieldRef: (operand: unknown) => string | null;
106
+ export declare const mongoDbFieldRef: (operand: unknown) => string | null;
107
107
  //#endregion
108
- export { MongoDBExpressionOperand, MongoDbSupportedOperators, ParseMongoDBExpressionContext, ParseMongoDbOptions, isMongoDBExpressionOperand, mongoDbFieldRef, parseMongoDB };
108
+ export { parseMongoDB };
109
109
  //# sourceMappingURL=parseMongoDB.d.mts.map
@@ -1,15 +1,15 @@
1
1
  import { $t as DefaultRuleGroupType, Pt as DefaultRuleGroupTypeIC, jn as Except, nn as RuleGroupType, on as ExpressionNode, rn as RuleType } from "./index-DOIE2pwx.js";
2
2
  import { t as ParserCommonOptions } from "./import-BfZTwhp2.js";
3
3
  //#region src/utils/parseMongoDB/types.d.ts
4
- type MongoDbSupportedOperators = "$and" | "$or" | "$not" | "$eq" | "$gt" | "$gte" | "$in" | "$lt" | "$lte" | "$ne" | "$nin" | "$regex" | "$expr";
4
+ export type MongoDbSupportedOperators = "$and" | "$or" | "$not" | "$eq" | "$gt" | "$gte" | "$in" | "$lt" | "$lte" | "$ne" | "$nin" | "$regex" | "$expr";
5
5
  /**
6
6
  * A MongoDB aggregation-expression operand that {@link parseMongoDB!ParseMongoDbOptions.getExpression}
7
7
  * may receive — an aggregation-operator object (`{ $add: [...] }`, `{ $abs: x }`, etc.), a
8
8
  * `"$field"` path reference, or a literal.
9
9
  */
10
- type MongoDBExpressionOperand = unknown;
10
+ export type MongoDBExpressionOperand = unknown;
11
11
  /** Context passed to {@link parseMongoDB!ParseMongoDbOptions.getExpression}. */
12
- interface ParseMongoDBExpressionContext {
12
+ export interface ParseMongoDBExpressionContext {
13
13
  /** Returns `true` if the field is configured (or if no `fields` were supplied). */
14
14
  fieldExists: (fieldName: string) => boolean;
15
15
  }
@@ -18,7 +18,7 @@ interface ParseMongoDBExpressionContext {
18
18
  /**
19
19
  * Options object for {@link parseMongoDB}.
20
20
  */
21
- interface ParseMongoDbOptions extends ParserCommonOptions {
21
+ export interface ParseMongoDbOptions extends ParserCommonOptions {
22
22
  /**
23
23
  * When `true`, MongoDB rules in the form of `{ fieldName: { $not: { <...rule> } } }`
24
24
  * will be parsed into a rule group with the `not` attribute set to `true`. By default
@@ -101,9 +101,9 @@ declare function parseMongoDB(mongoDbRules: string | Record<string, any>, option
101
101
  * literals are not expression operands. The expr-supplied `getExpression` handler decides
102
102
  * whether it maps to a known function.
103
103
  */
104
- declare const isMongoDBExpressionOperand: (operand: unknown) => boolean;
104
+ export declare const isMongoDBExpressionOperand: (operand: unknown) => boolean;
105
105
  /** Reads a MongoDB field-path operand (`"$field"`), returning the field name or `null`. */
106
- declare const mongoDbFieldRef: (operand: unknown) => string | null;
106
+ export declare const mongoDbFieldRef: (operand: unknown) => string | null;
107
107
  //#endregion
108
- export { MongoDBExpressionOperand, MongoDbSupportedOperators, ParseMongoDBExpressionContext, ParseMongoDbOptions, isMongoDBExpressionOperand, mongoDbFieldRef, parseMongoDB };
108
+ export { parseMongoDB };
109
109
  //# sourceMappingURL=parseMongoDB.d.ts.map
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
- const require_utils = require("./utils-e-7KHkjV.js");
2
+ const require_utils = require("./utils-B4E1-ZvU.js");
3
3
  const require_objectUtils = require("./objectUtils-DfnEmDSV.js");
4
4
  const require_convertQuery = require("./convertQuery-BLT0GIhM.js");
5
- const require_prepareQueryObjects = require("./prepareQueryObjects-Dj9cTl9D.js");
6
- const require_parserUtils = require("./parserUtils-DbBXyAht.js");
5
+ const require_prepareQueryObjects = require("./prepareQueryObjects-DJ_VjOLb.js");
6
+ const require_parserUtils = require("./parserUtils-2VtG7m8L.js");
7
7
  //#region src/utils/parseMongoDB/utils.ts
8
8
  const getRegExStr = (re) => typeof re === "string" ? re : re.source;
9
9
  const isPrimitive = (v) => typeof v === "string" || typeof v === "number" || typeof v === "boolean";
@@ -1,8 +1,8 @@
1
- import { U as joinWith, ot as defaultOperatorNegationMap } from "./utils-CP5Jqy1P.mjs";
1
+ import { U as joinWith, ot as defaultOperatorNegationMap } from "./utils-DLZCoyAh.mjs";
2
2
  import { a as isRuleGroupType, c as isPojo, r as objectKeys } from "./objectUtils-DDZ-KhV5.mjs";
3
3
  import { r as convertToIC } from "./convertQuery-DaXv3h7S.mjs";
4
- import { n as prepareRuleGroup } from "./prepareQueryObjects-Dmyf3Wi_.mjs";
5
- import { n as getFieldsArray, t as fieldIsValidUtil } from "./parserUtils-BKPstAaO.mjs";
4
+ import { n as prepareRuleGroup } from "./prepareQueryObjects-DawsH4e3.mjs";
5
+ import { n as getFieldsArray, t as fieldIsValidUtil } from "./parserUtils-BlafvoFb.mjs";
6
6
  //#region src/utils/parseMongoDB/utils.ts
7
7
  const getRegExStr = (re) => typeof re === "string" ? re : re.source;
8
8
  const isPrimitive = (v) => typeof v === "string" || typeof v === "number" || typeof v === "boolean";