@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
@@ -1,183 +1,183 @@
1
1
  import { $t as DefaultRuleGroupType, Jt as DefaultCombinatorName, Pt as DefaultRuleGroupTypeIC, Vt as RuleGroupTypeIC, Zt as DefaultOperatorName, 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/parseCEL/types.d.ts
4
- type CELExpressionType = "Addition" | "BooleanLiteral" | "BytesLiteral" | "ConditionalAnd" | "ConditionalExpr" | "ConditionalOr" | "Division" | "DynamicPropertyAccessor" | "ExpressionGroup" | "ExpressionList" | "FieldInit" | "FieldInits" | "MessageInit" | "FloatLiteral" | "FunctionCall" | "Identifier" | "IntegerLiteral" | "List" | "Map" | "MapInit" | "MapInits" | "Member" | "Modulo" | "Multiplication" | "Negation" | "Negative" | "NullLiteral" | "Property" | "Relation" | "StringLiteral" | "Subtraction" | "Unary" | "UnsignedIntegerLiteral" | "LikeExpression" | "SubqueryExpression";
5
- type CELRelop = "==" | ">=" | ">" | "<=" | "<" | "!=" | "in";
6
- interface CELExpression {
4
+ export type CELExpressionType = "Addition" | "BooleanLiteral" | "BytesLiteral" | "ConditionalAnd" | "ConditionalExpr" | "ConditionalOr" | "Division" | "DynamicPropertyAccessor" | "ExpressionGroup" | "ExpressionList" | "FieldInit" | "FieldInits" | "MessageInit" | "FloatLiteral" | "FunctionCall" | "Identifier" | "IntegerLiteral" | "List" | "Map" | "MapInit" | "MapInits" | "Member" | "Modulo" | "Multiplication" | "Negation" | "Negative" | "NullLiteral" | "Property" | "Relation" | "StringLiteral" | "Subtraction" | "Unary" | "UnsignedIntegerLiteral" | "LikeExpression" | "SubqueryExpression";
5
+ export type CELRelop = "==" | ">=" | ">" | "<=" | "<" | "!=" | "in";
6
+ export interface CELExpression {
7
7
  type: CELExpressionType;
8
8
  }
9
- interface CELIdentifier<LimitTo extends string = string> extends CELExpression {
9
+ export interface CELIdentifier<LimitTo extends string = string> extends CELExpression {
10
10
  type: "Identifier";
11
11
  value: LimitTo;
12
12
  }
13
- interface CELStringLiteral extends CELExpression {
13
+ export interface CELStringLiteral extends CELExpression {
14
14
  type: "StringLiteral";
15
15
  value: `'${string}'` | `"${string}"` | `'''${string}'''` | `"""${string}"""`;
16
16
  }
17
- interface CELBytesLiteral extends CELExpression {
17
+ export interface CELBytesLiteral extends CELExpression {
18
18
  type: "BytesLiteral";
19
19
  value: string;
20
20
  }
21
- interface CELIntegerLiteral extends CELExpression {
21
+ export interface CELIntegerLiteral extends CELExpression {
22
22
  type: "IntegerLiteral";
23
23
  value: number;
24
24
  }
25
- interface CELUnsignedIntegerLiteral extends CELExpression {
25
+ export interface CELUnsignedIntegerLiteral extends CELExpression {
26
26
  type: "UnsignedIntegerLiteral";
27
27
  value: number;
28
28
  }
29
- interface CELFloatLiteral extends CELExpression {
29
+ export interface CELFloatLiteral extends CELExpression {
30
30
  type: "FloatLiteral";
31
31
  value: number;
32
32
  }
33
- interface CELBooleanLiteral extends CELExpression {
33
+ export interface CELBooleanLiteral extends CELExpression {
34
34
  type: "BooleanLiteral";
35
35
  value: boolean;
36
36
  }
37
- interface CELNullLiteral extends CELExpression {
37
+ export interface CELNullLiteral extends CELExpression {
38
38
  type: "NullLiteral";
39
39
  value: null;
40
40
  }
41
- interface CELRelation extends CELExpression {
41
+ export interface CELRelation extends CELExpression {
42
42
  type: "Relation";
43
43
  left: CELExpression;
44
44
  operator: CELRelop;
45
45
  right: CELExpression;
46
46
  }
47
- interface CELConditionalExpr extends CELExpression {
47
+ export interface CELConditionalExpr extends CELExpression {
48
48
  type: "ConditionalExpr";
49
49
  condition: CELExpression;
50
50
  valueIfTrue: CELExpression;
51
51
  valueIfFalse: CELExpression;
52
52
  }
53
- interface CELNegation extends CELExpression {
53
+ export interface CELNegation extends CELExpression {
54
54
  type: "Negation";
55
55
  negations: number;
56
56
  value: CELPrimary;
57
57
  }
58
- interface CELNegative extends CELExpression {
58
+ export interface CELNegative extends CELExpression {
59
59
  type: "Negative";
60
60
  negatives: number;
61
61
  value: CELMember;
62
62
  }
63
- interface CELMember extends CELExpression {
63
+ export interface CELMember extends CELExpression {
64
64
  type: "Member";
65
65
  value?: CELPrimary;
66
66
  left?: CELPrimary | CELMember | CELNegation;
67
67
  right?: CELIdentifier;
68
68
  list?: CELExpressionList;
69
69
  }
70
- interface CELMemberIdentifierChain extends CELMember {
70
+ export interface CELMemberIdentifierChain extends CELMember {
71
71
  type: "Member";
72
72
  value: never;
73
73
  left: CELMemberIdentifierChain;
74
74
  right: CELIdentifier;
75
75
  list: never;
76
76
  }
77
- interface CELMemberNegatedIdentifier extends CELNegation {
77
+ export interface CELMemberNegatedIdentifier extends CELNegation {
78
78
  value: CELIdentifier;
79
79
  }
80
- interface CELMemberNegatedIdentifierChain extends CELExpression {
80
+ export interface CELMemberNegatedIdentifierChain extends CELExpression {
81
81
  value: never;
82
82
  left: CELMemberIdentifierChain | CELMemberNegatedIdentifier;
83
83
  right: CELIdentifier;
84
84
  list: never;
85
85
  }
86
- interface CELDynamicPropertyAccessor extends CELExpression {
86
+ export interface CELDynamicPropertyAccessor extends CELExpression {
87
87
  type: "DynamicPropertyAccessor";
88
88
  left: CELMember;
89
89
  right: CELExpression;
90
90
  }
91
- interface CELProperty extends CELExpression {
91
+ export interface CELProperty extends CELExpression {
92
92
  type: "Property";
93
93
  value: CELIdentifier;
94
94
  args?: CELExpressionList;
95
95
  trailingComma?: boolean;
96
96
  }
97
- interface CELFunctionCall extends CELExpression {
97
+ export interface CELFunctionCall extends CELExpression {
98
98
  type: "FunctionCall";
99
99
  name: CELIdentifier;
100
100
  args: CELExpressionList;
101
101
  trailingComma?: boolean;
102
102
  }
103
- interface CELExpressionGroup extends CELExpression {
103
+ export interface CELExpressionGroup extends CELExpression {
104
104
  type: "ExpressionGroup";
105
105
  value: CELExpression;
106
106
  }
107
- interface CELList extends CELExpression {
107
+ export interface CELList extends CELExpression {
108
108
  type: "List";
109
109
  value: CELExpressionList;
110
110
  trailingComma?: boolean;
111
111
  }
112
- interface CELMap extends CELExpression {
112
+ export interface CELMap extends CELExpression {
113
113
  type: "Map";
114
114
  value: CELMapInits;
115
115
  trailingComma?: boolean;
116
116
  }
117
- interface CELAddition extends CELExpression {
117
+ export interface CELAddition extends CELExpression {
118
118
  type: "Addition";
119
119
  left: CELExpression;
120
120
  right: CELExpression;
121
121
  }
122
- interface CELSubtraction extends CELExpression {
122
+ export interface CELSubtraction extends CELExpression {
123
123
  type: "Subtraction";
124
124
  left: CELExpression;
125
125
  right: CELExpression;
126
126
  }
127
- interface CELMultiplication extends CELExpression {
127
+ export interface CELMultiplication extends CELExpression {
128
128
  type: "Multiplication";
129
129
  left: CELExpression;
130
130
  right: CELExpression;
131
131
  }
132
- interface CELDivision extends CELExpression {
132
+ export interface CELDivision extends CELExpression {
133
133
  type: "Division";
134
134
  left: CELExpression;
135
135
  right: CELExpression;
136
136
  }
137
- interface CELModulo extends CELExpression {
137
+ export interface CELModulo extends CELExpression {
138
138
  type: "Modulo";
139
139
  left: CELExpression;
140
140
  right: CELExpression;
141
141
  }
142
- interface CELConditionalOr extends CELExpression {
142
+ export interface CELConditionalOr extends CELExpression {
143
143
  type: "ConditionalOr";
144
144
  left: CELExpression;
145
145
  right: CELExpression;
146
146
  }
147
- interface CELConditionalAnd extends CELExpression {
147
+ export interface CELConditionalAnd extends CELExpression {
148
148
  type: "ConditionalAnd";
149
149
  left: CELExpression;
150
150
  right: CELExpression;
151
151
  }
152
- interface CELExpressionList extends CELExpression {
152
+ export interface CELExpressionList extends CELExpression {
153
153
  type: "ExpressionList";
154
154
  value: CELExpression[];
155
155
  }
156
- interface CELMessageInit extends CELExpression {
156
+ export interface CELMessageInit extends CELExpression {
157
157
  type: "MessageInit";
158
158
  left: CELMember;
159
159
  list: CELFieldInits;
160
160
  trailingComma?: boolean;
161
161
  }
162
- interface CELFieldInits extends CELExpression {
162
+ export interface CELFieldInits extends CELExpression {
163
163
  type: "FieldInits";
164
164
  value: CELFieldInit[];
165
165
  }
166
- interface CELFieldInit extends CELExpression {
166
+ export interface CELFieldInit extends CELExpression {
167
167
  type: "FieldInit";
168
168
  left: CELIdentifier;
169
169
  right: CELExpression;
170
170
  }
171
- interface CELMapInits extends CELExpression {
171
+ export interface CELMapInits extends CELExpression {
172
172
  type: "MapInits";
173
173
  value: CELMapInit[];
174
174
  }
175
- interface CELMapInit extends CELExpression {
175
+ export interface CELMapInit extends CELExpression {
176
176
  type: "MapInit";
177
177
  left: CELExpression;
178
178
  right: CELExpression;
179
179
  }
180
- interface CELLikeExpression extends CELExpression {
180
+ export interface CELLikeExpression extends CELExpression {
181
181
  type: "LikeExpression";
182
182
  left: CELIdentifier | CELMemberIdentifierChain;
183
183
  right: CELIdentifier<"contains" | "startsWith" | "endsWith">;
@@ -185,7 +185,7 @@ interface CELLikeExpression extends CELExpression {
185
185
  value: [CELStringLiteral | CELIdentifier];
186
186
  };
187
187
  }
188
- interface CELNegatedLikeExpression extends CELExpression {
188
+ export interface CELNegatedLikeExpression extends CELExpression {
189
189
  type: "LikeExpression";
190
190
  left: CELMemberNegatedIdentifier | CELMemberNegatedIdentifierChain;
191
191
  right: CELIdentifier<"contains" | "startsWith" | "endsWith">;
@@ -193,7 +193,7 @@ interface CELNegatedLikeExpression extends CELExpression {
193
193
  value: [CELStringLiteral | CELIdentifier];
194
194
  };
195
195
  }
196
- interface CELSubqueryExpression extends CELExpression {
196
+ export interface CELSubqueryExpression extends CELExpression {
197
197
  type: "Member";
198
198
  left: CELIdentifier | CELMemberIdentifierChain;
199
199
  right: CELIdentifier<"all" | "exists">;
@@ -201,7 +201,7 @@ interface CELSubqueryExpression extends CELExpression {
201
201
  value: [CELIdentifier, CELExpression];
202
202
  };
203
203
  }
204
- interface CELNegatedSubqueryExpression extends CELExpression {
204
+ export interface CELNegatedSubqueryExpression extends CELExpression {
205
205
  type: "Member";
206
206
  left: CELMemberNegatedIdentifier | CELMemberNegatedIdentifierChain;
207
207
  right: CELIdentifier<"all" | "exists">;
@@ -209,11 +209,11 @@ interface CELNegatedSubqueryExpression extends CELExpression {
209
209
  value: [CELIdentifier, CELExpression];
210
210
  };
211
211
  }
212
- type CELNumericLiteral = CELIntegerLiteral | CELUnsignedIntegerLiteral | CELFloatLiteral;
213
- type CELLiteral = CELStringLiteral | CELBytesLiteral | CELNumericLiteral | CELBooleanLiteral | CELNullLiteral;
214
- type CELPrimary = CELProperty | CELIdentifier | CELExpressionGroup | CELFunctionCall | CELLiteral | CELList | CELMap;
215
- type CELMathOperation = CELAddition | CELSubtraction | CELMultiplication | CELDivision | CELModulo;
216
- interface ParsedCEL {
212
+ export type CELNumericLiteral = CELIntegerLiteral | CELUnsignedIntegerLiteral | CELFloatLiteral;
213
+ export type CELLiteral = CELStringLiteral | CELBytesLiteral | CELNumericLiteral | CELBooleanLiteral | CELNullLiteral;
214
+ export type CELPrimary = CELProperty | CELIdentifier | CELExpressionGroup | CELFunctionCall | CELLiteral | CELList | CELMap;
215
+ export type CELMathOperation = CELAddition | CELSubtraction | CELMultiplication | CELDivision | CELModulo;
216
+ export interface ParsedCEL {
217
217
  nodeType: "Main";
218
218
  value: CELExpression;
219
219
  }
@@ -223,15 +223,15 @@ interface ParsedCEL {
223
223
  * optionally wrapped in an `ExpressionGroup`), a `FunctionCall`, or a `ConditionalExpr` (the
224
224
  * `min`/`max` emulated template).
225
225
  */
226
- type CELExpressionOperand = CELExpression;
226
+ export type CELExpressionOperand = CELExpression;
227
227
  /** Context passed to {@link parseCEL!ParseCELOptions.getExpression}. */
228
- interface ParseCELExpressionContext {
228
+ export interface ParseCELExpressionContext {
229
229
  /** Returns `true` if the field is configured (or if no `fields` were supplied). */
230
230
  fieldExists: (fieldName: string) => boolean;
231
231
  }
232
232
  //#endregion
233
233
  //#region src/utils/parseCEL/parseCEL.d.ts
234
- interface ParseCELOptionsStandard extends Except<ParserCommonOptions, "independentCombinators"> {
234
+ export interface ParseCELOptionsStandard extends Except<ParserCommonOptions, "independentCombinators"> {
235
235
  independentCombinators?: false;
236
236
  /**
237
237
  * Handler for custom CEL expressions.
@@ -245,7 +245,7 @@ interface ParseCELOptionsStandard extends Except<ParserCommonOptions, "independe
245
245
  */
246
246
  getExpression?: (node: CELExpressionOperand, ctx: ParseCELExpressionContext) => ExpressionNode | null;
247
247
  }
248
- interface ParseCELOptionsIC extends Except<ParserCommonOptions, "independentCombinators"> {
248
+ export interface ParseCELOptionsIC extends Except<ParserCommonOptions, "independentCombinators"> {
249
249
  independentCombinators: true;
250
250
  /**
251
251
  * Handler for custom CEL expressions.
@@ -262,7 +262,7 @@ interface ParseCELOptionsIC extends Except<ParserCommonOptions, "independentComb
262
262
  /**
263
263
  * Options object for {@link parseCEL}.
264
264
  */
265
- type ParseCELOptions = ParseCELOptionsStandard | ParseCELOptionsIC;
265
+ export type ParseCELOptions = ParseCELOptionsStandard | ParseCELOptionsIC;
266
266
  /**
267
267
  * Converts a CEL string expression into a query suitable for the
268
268
  * {@link index!QueryBuilder QueryBuilder} component's `query` or `defaultQuery` props
@@ -299,75 +299,75 @@ declare function parseCEL(cel: string, options?: ParseCELOptionsStandard): Defau
299
299
  declare function parseCEL(cel: string, options: ParseCELOptionsIC): DefaultRuleGroupTypeIC;
300
300
  //#endregion
301
301
  //#region src/utils/parseCEL/utils.d.ts
302
- declare const isCELExpressionGroup: (expr: CELExpression) => expr is CELExpressionGroup;
303
- declare const isCELConditionalAnd: (expr: CELExpression) => expr is CELConditionalAnd;
304
- declare const isCELConditionalOr: (expr: CELExpression) => expr is CELConditionalOr;
305
- declare const isCELStringLiteral: (expr: CELExpression) => expr is CELStringLiteral;
306
- declare const isCELLiteral: (expr: CELExpression) => expr is CELLiteral;
307
- declare const isCELNumericLiteral: (expr: CELExpression) => expr is CELNumericLiteral;
308
- declare const isCELRelation: (expr: CELExpression) => expr is CELRelation;
309
- declare const isCELList: (expr: CELExpression) => expr is CELList;
310
- declare const isCELMap: (expr: CELExpression) => expr is CELMap;
311
- declare const isCELIdentifier: (expr: CELExpression) => expr is CELIdentifier;
312
- declare const isCELNegation: (expr: CELExpression) => expr is CELNegation;
313
- declare const isCELMember: (expr: CELExpression) => expr is CELMember;
314
- declare const isCELAddition: (expr: CELExpression) => expr is CELAddition;
315
- declare const isCELBooleanLiteral: (expr: CELExpression) => expr is CELBooleanLiteral;
316
- declare const isCELBytesLiteral: (expr: CELExpression) => expr is CELBytesLiteral;
317
- declare const isCELConditionalExpr: (expr: CELExpression) => expr is CELConditionalExpr;
318
- declare const isCELDivision: (expr: CELExpression) => expr is CELDivision;
319
- declare const isCELDynamicPropertyAccessor: (expr: CELExpression) => expr is CELDynamicPropertyAccessor;
320
- declare const isCELExpressionList: (expr: CELExpression) => expr is CELExpressionList;
321
- declare const isCELFieldInit: (expr: CELExpression) => expr is CELFieldInit;
322
- declare const isCELFieldInits: (expr: CELExpression) => expr is CELFieldInits;
323
- declare const isCELMessageInit: (expr: CELExpression) => expr is CELMessageInit;
324
- declare const isCELFloatLiteral: (expr: CELExpression) => expr is CELFloatLiteral;
325
- declare const isCELFunctionCall: (expr: CELExpression) => expr is CELFunctionCall;
326
- declare const isCELIntegerLiteral: (expr: CELExpression) => expr is CELIntegerLiteral;
327
- declare const isCELMapInit: (expr: CELExpression) => expr is CELMapInit;
328
- declare const isCELMapInits: (expr: CELExpression) => expr is CELMapInits;
329
- declare const isCELModulo: (expr: CELExpression) => expr is CELModulo;
330
- declare const isCELMultiplication: (expr: CELExpression) => expr is CELMultiplication;
331
- declare const isCELNegative: (expr: CELExpression) => expr is CELNegative;
332
- declare const isCELNullLiteral: (expr: CELExpression) => expr is CELNullLiteral;
333
- declare const isCELProperty: (expr: CELExpression) => expr is CELProperty;
334
- declare const isCELSubtraction: (expr: CELExpression) => expr is CELSubtraction;
335
- declare const isCELUnsignedIntegerLiteral: (expr: CELExpression) => expr is CELUnsignedIntegerLiteral;
336
- declare const isCELIdentifierOrChain: (expr: CELExpression) => expr is CELMemberIdentifierChain | CELIdentifier | CELDynamicPropertyAccessor;
337
- declare const isCELNegatedIdentifier: (expr: CELExpression) => expr is CELMemberNegatedIdentifier;
338
- declare const isCELNegatedIdentifierOrChain: (expr: CELExpression) => expr is CELMemberNegatedIdentifierChain | CELMemberNegatedIdentifier;
339
- declare const isCELLikeExpression: (expr: CELExpression) => expr is CELLikeExpression;
340
- declare const isCELNegatedLikeExpression: (expr: CELExpression) => expr is CELNegatedLikeExpression;
341
- declare const isCELSubqueryExpression: (expr: CELExpression) => expr is CELSubqueryExpression;
342
- declare const isCELNegatedSubqueryExpression: (expr: CELExpression) => expr is CELNegatedSubqueryExpression;
343
- declare const extractSubqueryComponents: (expr: CELMember) => {
302
+ export declare const isCELExpressionGroup: (expr: CELExpression) => expr is CELExpressionGroup;
303
+ export declare const isCELConditionalAnd: (expr: CELExpression) => expr is CELConditionalAnd;
304
+ export declare const isCELConditionalOr: (expr: CELExpression) => expr is CELConditionalOr;
305
+ export declare const isCELStringLiteral: (expr: CELExpression) => expr is CELStringLiteral;
306
+ export declare const isCELLiteral: (expr: CELExpression) => expr is CELLiteral;
307
+ export declare const isCELNumericLiteral: (expr: CELExpression) => expr is CELNumericLiteral;
308
+ export declare const isCELRelation: (expr: CELExpression) => expr is CELRelation;
309
+ export declare const isCELList: (expr: CELExpression) => expr is CELList;
310
+ export declare const isCELMap: (expr: CELExpression) => expr is CELMap;
311
+ export declare const isCELIdentifier: (expr: CELExpression) => expr is CELIdentifier;
312
+ export declare const isCELNegation: (expr: CELExpression) => expr is CELNegation;
313
+ export declare const isCELMember: (expr: CELExpression) => expr is CELMember;
314
+ export declare const isCELAddition: (expr: CELExpression) => expr is CELAddition;
315
+ export declare const isCELBooleanLiteral: (expr: CELExpression) => expr is CELBooleanLiteral;
316
+ export declare const isCELBytesLiteral: (expr: CELExpression) => expr is CELBytesLiteral;
317
+ export declare const isCELConditionalExpr: (expr: CELExpression) => expr is CELConditionalExpr;
318
+ export declare const isCELDivision: (expr: CELExpression) => expr is CELDivision;
319
+ export declare const isCELDynamicPropertyAccessor: (expr: CELExpression) => expr is CELDynamicPropertyAccessor;
320
+ export declare const isCELExpressionList: (expr: CELExpression) => expr is CELExpressionList;
321
+ export declare const isCELFieldInit: (expr: CELExpression) => expr is CELFieldInit;
322
+ export declare const isCELFieldInits: (expr: CELExpression) => expr is CELFieldInits;
323
+ export declare const isCELMessageInit: (expr: CELExpression) => expr is CELMessageInit;
324
+ export declare const isCELFloatLiteral: (expr: CELExpression) => expr is CELFloatLiteral;
325
+ export declare const isCELFunctionCall: (expr: CELExpression) => expr is CELFunctionCall;
326
+ export declare const isCELIntegerLiteral: (expr: CELExpression) => expr is CELIntegerLiteral;
327
+ export declare const isCELMapInit: (expr: CELExpression) => expr is CELMapInit;
328
+ export declare const isCELMapInits: (expr: CELExpression) => expr is CELMapInits;
329
+ export declare const isCELModulo: (expr: CELExpression) => expr is CELModulo;
330
+ export declare const isCELMultiplication: (expr: CELExpression) => expr is CELMultiplication;
331
+ export declare const isCELNegative: (expr: CELExpression) => expr is CELNegative;
332
+ export declare const isCELNullLiteral: (expr: CELExpression) => expr is CELNullLiteral;
333
+ export declare const isCELProperty: (expr: CELExpression) => expr is CELProperty;
334
+ export declare const isCELSubtraction: (expr: CELExpression) => expr is CELSubtraction;
335
+ export declare const isCELUnsignedIntegerLiteral: (expr: CELExpression) => expr is CELUnsignedIntegerLiteral;
336
+ export declare const isCELIdentifierOrChain: (expr: CELExpression) => expr is CELMemberIdentifierChain | CELIdentifier | CELDynamicPropertyAccessor;
337
+ export declare const isCELNegatedIdentifier: (expr: CELExpression) => expr is CELMemberNegatedIdentifier;
338
+ export declare const isCELNegatedIdentifierOrChain: (expr: CELExpression) => expr is CELMemberNegatedIdentifierChain | CELMemberNegatedIdentifier;
339
+ export declare const isCELLikeExpression: (expr: CELExpression) => expr is CELLikeExpression;
340
+ export declare const isCELNegatedLikeExpression: (expr: CELExpression) => expr is CELNegatedLikeExpression;
341
+ export declare const isCELSubqueryExpression: (expr: CELExpression) => expr is CELSubqueryExpression;
342
+ export declare const isCELNegatedSubqueryExpression: (expr: CELExpression) => expr is CELNegatedSubqueryExpression;
343
+ export declare const extractSubqueryComponents: (expr: CELMember) => {
344
344
  field: string;
345
345
  method: "all" | "exists";
346
346
  alias: string | null;
347
347
  condition: CELExpression;
348
348
  } | null;
349
- declare const getCELIdentifierFromChain: (expr: CELIdentifier | CELMemberIdentifierChain | CELDynamicPropertyAccessor | CELMember) => string;
350
- declare const getCELIdentifierFromNegatedChain: (expr: CELMemberNegatedIdentifier | CELMemberNegatedIdentifierChain) => string;
351
- declare function evalCELLiteralValue(literal: CELStringLiteral): string;
352
- declare function evalCELLiteralValue(literal: CELBooleanLiteral): boolean;
353
- declare function evalCELLiteralValue(literal: CELNumericLiteral): number | null;
354
- declare function evalCELLiteralValue(literal: CELBytesLiteral): null;
355
- declare function evalCELLiteralValue(literal: CELNullLiteral): null;
356
- declare function evalCELLiteralValue(literal: CELLiteral): string | boolean | number | null;
357
- declare const celNormalizeCombinator: (c: "&&" | "||") => DefaultCombinatorName;
358
- declare const celNormalizeOperator: (op: CELRelop, flip?: boolean) => DefaultOperatorName;
359
- declare const celGenerateFlatAndOrList: (expr: CELConditionalAnd | CELConditionalOr) => (DefaultCombinatorName | CELExpression)[];
360
- declare const celGenerateMixedAndOrList: (expr: CELConditionalAnd | CELConditionalOr) => (DefaultCombinatorName | CELExpression | ("and" | CELExpression)[])[];
361
- declare const transformAliasInExpression: (expr: CELExpression, alias: string | null) => CELExpression;
349
+ export declare const getCELIdentifierFromChain: (expr: CELIdentifier | CELMemberIdentifierChain | CELDynamicPropertyAccessor | CELMember) => string;
350
+ export declare const getCELIdentifierFromNegatedChain: (expr: CELMemberNegatedIdentifier | CELMemberNegatedIdentifierChain) => string;
351
+ export declare function evalCELLiteralValue(literal: CELStringLiteral): string;
352
+ export declare function evalCELLiteralValue(literal: CELBooleanLiteral): boolean;
353
+ export declare function evalCELLiteralValue(literal: CELNumericLiteral): number | null;
354
+ export declare function evalCELLiteralValue(literal: CELBytesLiteral): null;
355
+ export declare function evalCELLiteralValue(literal: CELNullLiteral): null;
356
+ export declare function evalCELLiteralValue(literal: CELLiteral): string | boolean | number | null;
357
+ export declare const celNormalizeCombinator: (c: "&&" | "||") => DefaultCombinatorName;
358
+ export declare const celNormalizeOperator: (op: CELRelop, flip?: boolean) => DefaultOperatorName;
359
+ export declare const celGenerateFlatAndOrList: (expr: CELConditionalAnd | CELConditionalOr) => (DefaultCombinatorName | CELExpression)[];
360
+ export declare const celGenerateMixedAndOrList: (expr: CELConditionalAnd | CELConditionalOr) => (DefaultCombinatorName | CELExpression | ("and" | CELExpression)[])[];
361
+ export declare const transformAliasInExpression: (expr: CELExpression, alias: string | null) => CELExpression;
362
362
  /** A CEL arithmetic infix node (`Addition`/`Subtraction`/`Multiplication`/`Division`/`Modulo`). */
363
- declare const isCELMathOperation: (expr: CELExpression) => boolean;
363
+ export declare const isCELMathOperation: (expr: CELExpression) => boolean;
364
364
  /**
365
365
  * Whether a relation operand should be routed to `getExpression`: an arithmetic infix node, a
366
366
  * `FunctionCall`, or a `ConditionalExpr` (`min`/`max` template) — optionally wrapped in one or
367
367
  * more `ExpressionGroup`s. Bare identifiers, chains, and literals are not expression operands
368
368
  * (they retain their normal handling).
369
369
  */
370
- declare const isCELExpressionOperand: (expr: CELExpression) => boolean;
370
+ export declare const isCELExpressionOperand: (expr: CELExpression) => boolean;
371
371
  //#endregion
372
- export { CELAddition, CELBooleanLiteral, CELBytesLiteral, CELConditionalAnd, CELConditionalExpr, CELConditionalOr, CELDivision, CELDynamicPropertyAccessor, CELExpression, CELExpressionGroup, CELExpressionList, CELExpressionOperand, CELExpressionType, CELFieldInit, CELFieldInits, CELFloatLiteral, CELFunctionCall, CELIdentifier, CELIntegerLiteral, CELLikeExpression, CELList, CELLiteral, CELMap, CELMapInit, CELMapInits, CELMathOperation, CELMember, CELMemberIdentifierChain, CELMemberNegatedIdentifier, CELMemberNegatedIdentifierChain, CELMessageInit, CELModulo, CELMultiplication, CELNegatedLikeExpression, CELNegatedSubqueryExpression, CELNegation, CELNegative, CELNullLiteral, CELNumericLiteral, CELPrimary, CELProperty, CELRelation, CELRelop, CELStringLiteral, CELSubqueryExpression, CELSubtraction, CELUnsignedIntegerLiteral, ParseCELExpressionContext, ParseCELOptions, ParseCELOptionsIC, ParseCELOptionsStandard, ParsedCEL, celGenerateFlatAndOrList, celGenerateMixedAndOrList, celNormalizeCombinator, celNormalizeOperator, evalCELLiteralValue, extractSubqueryComponents, getCELIdentifierFromChain, getCELIdentifierFromNegatedChain, isCELAddition, isCELBooleanLiteral, isCELBytesLiteral, isCELConditionalAnd, isCELConditionalExpr, isCELConditionalOr, isCELDivision, isCELDynamicPropertyAccessor, isCELExpressionGroup, isCELExpressionList, isCELExpressionOperand, isCELFieldInit, isCELFieldInits, isCELFloatLiteral, isCELFunctionCall, isCELIdentifier, isCELIdentifierOrChain, isCELIntegerLiteral, isCELLikeExpression, isCELList, isCELLiteral, isCELMap, isCELMapInit, isCELMapInits, isCELMathOperation, isCELMember, isCELMessageInit, isCELModulo, isCELMultiplication, isCELNegatedIdentifier, isCELNegatedIdentifierOrChain, isCELNegatedLikeExpression, isCELNegatedSubqueryExpression, isCELNegation, isCELNegative, isCELNullLiteral, isCELNumericLiteral, isCELProperty, isCELRelation, isCELStringLiteral, isCELSubqueryExpression, isCELSubtraction, isCELUnsignedIntegerLiteral, parseCEL, transformAliasInExpression };
372
+ export { parseCEL };
373
373
  //# sourceMappingURL=parseCEL.d.ts.map
package/dist/parseCEL.js CHANGED
@@ -1,13 +1,13 @@
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
- const require_prepareQueryObjects = require("./prepareQueryObjects-Dj9cTl9D.js");
5
- const require_parserUtils = require("./parserUtils-DbBXyAht.js");
4
+ const require_prepareQueryObjects = require("./prepareQueryObjects-DJ_VjOLb.js");
5
+ const require_parserUtils = require("./parserUtils-2VtG7m8L.js");
6
6
  let _ts_jison_parser = require("@ts-jison/parser");
7
7
  let _ts_jison_lexer = require("@ts-jison/lexer");
8
8
  //#region src/utils/parseCEL/celParser.ts
9
9
  /**
10
- * parser generated by @ts-jison/parser-generator 0.4.1-alpha.2
10
+ * parser generated by @ts-jison/parser-generator 0.4.1-alpha.4
11
11
  * @returns Parser implementing JisonParserApi and a Lexer implementing JisonLexerApi.
12
12
  */
13
13
  var CELParser = class extends _ts_jison_parser.JisonParser {