@opra/client 0.11.1 → 0.11.4

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 (203) hide show
  1. package/cjs/index.min.mjs +1 -0
  2. package/esm/index.min.mjs +1 -0
  3. package/package.json +21 -13
  4. package/typings/common/filter/antlr/OpraFilterLexer.d.ts +11 -12
  5. package/typings/common/filter/antlr/OpraFilterListener.d.ts +430 -0
  6. package/typings/common/filter/antlr/OpraFilterParser.d.ts +183 -111
  7. package/typings/common/filter/antlr/OpraFilterVisitor.d.ts +77 -107
  8. package/typings/common/filter/errors.d.ts +4 -6
  9. package/typings/common/filter/filter-tree-visitor.d.ts +5 -3
  10. package/typings/common/filter/index.d.ts +1 -1
  11. package/typings/common/filter/opra-error-listener.d.ts +8 -0
  12. package/typings/common/filter/parse.d.ts +2 -2
  13. package/typings/common/i18n/i18n.d.ts +3 -3
  14. package/typings/common/i18n/translate.d.ts +1 -1
  15. package/cjs/934.min.cjs +0 -1
  16. package/cjs/main.min.cjs +0 -2
  17. package/cjs/main.min.cjs.LICENSE.txt +0 -13
  18. package/esm/934.min.mjs +0 -1
  19. package/esm/main.min.mjs +0 -2
  20. package/esm/main.min.mjs.LICENSE.txt +0 -13
  21. package/typings/antlr4ts/ANTLRErrorListener.d.ts +0 -43
  22. package/typings/antlr4ts/ANTLRErrorStrategy.d.ts +0 -109
  23. package/typings/antlr4ts/ANTLRInputStream.d.ts +0 -51
  24. package/typings/antlr4ts/BailErrorStrategy.d.ts +0 -48
  25. package/typings/antlr4ts/BufferedTokenStream.d.ts +0 -143
  26. package/typings/antlr4ts/CharStream.d.ts +0 -26
  27. package/typings/antlr4ts/CharStreams.d.ts +0 -54
  28. package/typings/antlr4ts/CodePointBuffer.d.ts +0 -40
  29. package/typings/antlr4ts/CodePointCharStream.d.ts +0 -45
  30. package/typings/antlr4ts/CommonToken.d.ts +0 -116
  31. package/typings/antlr4ts/CommonTokenFactory.d.ts +0 -53
  32. package/typings/antlr4ts/CommonTokenStream.d.ts +0 -52
  33. package/typings/antlr4ts/ConsoleErrorListener.d.ts +0 -29
  34. package/typings/antlr4ts/Decorators.d.ts +0 -8
  35. package/typings/antlr4ts/DefaultErrorStrategy.d.ts +0 -347
  36. package/typings/antlr4ts/Dependents.d.ts +0 -69
  37. package/typings/antlr4ts/DiagnosticErrorListener.d.ts +0 -60
  38. package/typings/antlr4ts/FailedPredicateException.d.ts +0 -21
  39. package/typings/antlr4ts/InputMismatchException.d.ts +0 -14
  40. package/typings/antlr4ts/IntStream.d.ts +0 -197
  41. package/typings/antlr4ts/InterpreterRuleContext.d.ts +0 -33
  42. package/typings/antlr4ts/Lexer.d.ts +0 -141
  43. package/typings/antlr4ts/LexerInterpreter.d.ts +0 -23
  44. package/typings/antlr4ts/LexerNoViableAltException.d.ts +0 -19
  45. package/typings/antlr4ts/ListTokenSource.d.ts +0 -86
  46. package/typings/antlr4ts/NoViableAltException.d.ts +0 -30
  47. package/typings/antlr4ts/Parser.d.ts +0 -372
  48. package/typings/antlr4ts/ParserErrorListener.d.ts +0 -112
  49. package/typings/antlr4ts/ParserInterpreter.d.ts +0 -151
  50. package/typings/antlr4ts/ParserRuleContext.d.ts +0 -169
  51. package/typings/antlr4ts/ProxyErrorListener.d.ts +0 -20
  52. package/typings/antlr4ts/ProxyParserErrorListener.d.ts +0 -21
  53. package/typings/antlr4ts/RecognitionException.d.ts +0 -87
  54. package/typings/antlr4ts/Recognizer.d.ts +0 -101
  55. package/typings/antlr4ts/RuleContext.d.ts +0 -124
  56. package/typings/antlr4ts/RuleContextWithAltNum.d.ts +0 -22
  57. package/typings/antlr4ts/RuleDependency.d.ts +0 -32
  58. package/typings/antlr4ts/RuleVersion.d.ts +0 -11
  59. package/typings/antlr4ts/Token.d.ts +0 -83
  60. package/typings/antlr4ts/TokenFactory.d.ts +0 -23
  61. package/typings/antlr4ts/TokenSource.d.ts +0 -67
  62. package/typings/antlr4ts/TokenStream.d.ts +0 -145
  63. package/typings/antlr4ts/TokenStreamRewriter.d.ts +0 -216
  64. package/typings/antlr4ts/Vocabulary.d.ts +0 -117
  65. package/typings/antlr4ts/VocabularyImpl.d.ts +0 -47
  66. package/typings/antlr4ts/WritableToken.d.ts +0 -13
  67. package/typings/antlr4ts/atn/ATN.d.ts +0 -123
  68. package/typings/antlr4ts/atn/ATNConfig.d.ts +0 -140
  69. package/typings/antlr4ts/atn/ATNConfigSet.d.ts +0 -113
  70. package/typings/antlr4ts/atn/ATNDeserializationOptions.d.ts +0 -26
  71. package/typings/antlr4ts/atn/ATNDeserializer.d.ts +0 -86
  72. package/typings/antlr4ts/atn/ATNSimulator.d.ts +0 -28
  73. package/typings/antlr4ts/atn/ATNState.d.ts +0 -111
  74. package/typings/antlr4ts/atn/ATNStateType.d.ts +0 -19
  75. package/typings/antlr4ts/atn/ATNType.d.ts +0 -19
  76. package/typings/antlr4ts/atn/AbstractPredicateTransition.d.ts +0 -13
  77. package/typings/antlr4ts/atn/ActionTransition.d.ts +0 -17
  78. package/typings/antlr4ts/atn/AmbiguityInfo.d.ts +0 -60
  79. package/typings/antlr4ts/atn/AtomTransition.d.ts +0 -18
  80. package/typings/antlr4ts/atn/BasicBlockStartState.d.ts +0 -13
  81. package/typings/antlr4ts/atn/BasicState.d.ts +0 -13
  82. package/typings/antlr4ts/atn/BlockEndState.d.ts +0 -12
  83. package/typings/antlr4ts/atn/BlockStartState.d.ts +0 -10
  84. package/typings/antlr4ts/atn/CodePointTransitions.d.ts +0 -27
  85. package/typings/antlr4ts/atn/ConflictInfo.d.ts +0 -35
  86. package/typings/antlr4ts/atn/ContextSensitivityInfo.d.ts +0 -39
  87. package/typings/antlr4ts/atn/DecisionEventInfo.d.ts +0 -54
  88. package/typings/antlr4ts/atn/DecisionInfo.d.ts +0 -201
  89. package/typings/antlr4ts/atn/DecisionState.d.ts +0 -10
  90. package/typings/antlr4ts/atn/EpsilonTransition.d.ts +0 -24
  91. package/typings/antlr4ts/atn/ErrorInfo.d.ts +0 -32
  92. package/typings/antlr4ts/atn/InvalidState.d.ts +0 -13
  93. package/typings/antlr4ts/atn/LL1Analyzer.d.ts +0 -98
  94. package/typings/antlr4ts/atn/LexerATNSimulator.d.ts +0 -153
  95. package/typings/antlr4ts/atn/LexerAction.d.ts +0 -47
  96. package/typings/antlr4ts/atn/LexerActionExecutor.d.ts +0 -104
  97. package/typings/antlr4ts/atn/LexerActionType.d.ts +0 -44
  98. package/typings/antlr4ts/atn/LexerChannelAction.d.ts +0 -48
  99. package/typings/antlr4ts/atn/LexerCustomAction.d.ts +0 -73
  100. package/typings/antlr4ts/atn/LexerIndexedCustomAction.d.ts +0 -74
  101. package/typings/antlr4ts/atn/LexerModeAction.d.ts +0 -48
  102. package/typings/antlr4ts/atn/LexerMoreAction.d.ts +0 -47
  103. package/typings/antlr4ts/atn/LexerPopModeAction.d.ts +0 -47
  104. package/typings/antlr4ts/atn/LexerPushModeAction.d.ts +0 -48
  105. package/typings/antlr4ts/atn/LexerSkipAction.d.ts +0 -47
  106. package/typings/antlr4ts/atn/LexerTypeAction.d.ts +0 -47
  107. package/typings/antlr4ts/atn/LookaheadEventInfo.d.ts +0 -37
  108. package/typings/antlr4ts/atn/LoopEndState.d.ts +0 -11
  109. package/typings/antlr4ts/atn/NotSetTransition.d.ts +0 -14
  110. package/typings/antlr4ts/atn/OrderedATNConfigSet.d.ts +0 -23
  111. package/typings/antlr4ts/atn/ParseInfo.d.ts +0 -79
  112. package/typings/antlr4ts/atn/ParserATNSimulator.d.ts +0 -567
  113. package/typings/antlr4ts/atn/PlusBlockStartState.d.ts +0 -16
  114. package/typings/antlr4ts/atn/PlusLoopbackState.d.ts +0 -12
  115. package/typings/antlr4ts/atn/PrecedencePredicateTransition.d.ts +0 -21
  116. package/typings/antlr4ts/atn/PredicateEvalInfo.d.ts +0 -54
  117. package/typings/antlr4ts/atn/PredicateTransition.d.ts +0 -25
  118. package/typings/antlr4ts/atn/PredictionContext.d.ts +0 -89
  119. package/typings/antlr4ts/atn/PredictionContextCache.d.ts +0 -40
  120. package/typings/antlr4ts/atn/PredictionMode.d.ts +0 -89
  121. package/typings/antlr4ts/atn/ProfilingATNSimulator.d.ts +0 -55
  122. package/typings/antlr4ts/atn/RangeTransition.d.ts +0 -17
  123. package/typings/antlr4ts/atn/RuleStartState.d.ts +0 -13
  124. package/typings/antlr4ts/atn/RuleStopState.d.ts +0 -15
  125. package/typings/antlr4ts/atn/RuleTransition.d.ts +0 -22
  126. package/typings/antlr4ts/atn/SemanticContext.d.ts +0 -143
  127. package/typings/antlr4ts/atn/SetTransition.d.ts +0 -17
  128. package/typings/antlr4ts/atn/SimulatorState.d.ts +0 -17
  129. package/typings/antlr4ts/atn/StarBlockStartState.d.ts +0 -10
  130. package/typings/antlr4ts/atn/StarLoopEntryState.d.ts +0 -37
  131. package/typings/antlr4ts/atn/StarLoopbackState.d.ts +0 -11
  132. package/typings/antlr4ts/atn/TokensStartState.d.ts +0 -10
  133. package/typings/antlr4ts/atn/Transition.d.ts +0 -38
  134. package/typings/antlr4ts/atn/TransitionType.d.ts +0 -16
  135. package/typings/antlr4ts/atn/WildcardTransition.d.ts +0 -13
  136. package/typings/antlr4ts/atn/index.d.ts +0 -73
  137. package/typings/antlr4ts/dfa/AcceptStateInfo.d.ts +0 -33
  138. package/typings/antlr4ts/dfa/DFA.d.ts +0 -94
  139. package/typings/antlr4ts/dfa/DFASerializer.d.ts +0 -23
  140. package/typings/antlr4ts/dfa/DFAState.d.ts +0 -95
  141. package/typings/antlr4ts/dfa/LexerDFASerializer.d.ts +0 -10
  142. package/typings/antlr4ts/dfa/index.d.ts +0 -9
  143. package/typings/antlr4ts/index.d.ts +0 -49
  144. package/typings/antlr4ts/misc/Args.d.ts +0 -13
  145. package/typings/antlr4ts/misc/Array2DHashMap.d.ts +0 -20
  146. package/typings/antlr4ts/misc/Array2DHashSet.d.ts +0 -62
  147. package/typings/antlr4ts/misc/ArrayEqualityComparator.d.ts +0 -32
  148. package/typings/antlr4ts/misc/Arrays.d.ts +0 -18
  149. package/typings/antlr4ts/misc/BitSet.d.ts +0 -268
  150. package/typings/antlr4ts/misc/Character.d.ts +0 -7
  151. package/typings/antlr4ts/misc/DefaultEqualityComparator.d.ts +0 -31
  152. package/typings/antlr4ts/misc/EqualityComparator.d.ts +0 -29
  153. package/typings/antlr4ts/misc/IntSet.d.ts +0 -129
  154. package/typings/antlr4ts/misc/IntegerList.d.ts +0 -69
  155. package/typings/antlr4ts/misc/IntegerStack.d.ts +0 -15
  156. package/typings/antlr4ts/misc/InterpreterDataReader.d.ts +0 -39
  157. package/typings/antlr4ts/misc/Interval.d.ts +0 -57
  158. package/typings/antlr4ts/misc/IntervalSet.d.ts +0 -96
  159. package/typings/antlr4ts/misc/MultiMap.d.ts +0 -9
  160. package/typings/antlr4ts/misc/MurmurHash.d.ts +0 -45
  161. package/typings/antlr4ts/misc/ObjectEqualityComparator.d.ts +0 -32
  162. package/typings/antlr4ts/misc/ParseCancellationException.d.ts +0 -18
  163. package/typings/antlr4ts/misc/Stubs.d.ts +0 -31
  164. package/typings/antlr4ts/misc/UUID.d.ts +0 -13
  165. package/typings/antlr4ts/misc/Utils.d.ts +0 -15
  166. package/typings/antlr4ts/misc/index.d.ts +0 -25
  167. package/typings/antlr4ts/tree/AbstractParseTreeVisitor.d.ts +0 -103
  168. package/typings/antlr4ts/tree/ErrorNode.d.ts +0 -17
  169. package/typings/antlr4ts/tree/ParseTree.d.ts +0 -36
  170. package/typings/antlr4ts/tree/ParseTreeListener.d.ts +0 -26
  171. package/typings/antlr4ts/tree/ParseTreeProperty.d.ts +0 -28
  172. package/typings/antlr4ts/tree/ParseTreeVisitor.d.ts +0 -48
  173. package/typings/antlr4ts/tree/ParseTreeWalker.d.ts +0 -35
  174. package/typings/antlr4ts/tree/RuleNode.d.ts +0 -21
  175. package/typings/antlr4ts/tree/SyntaxTree.d.ts +0 -29
  176. package/typings/antlr4ts/tree/TerminalNode.d.ts +0 -27
  177. package/typings/antlr4ts/tree/Tree.d.ts +0 -36
  178. package/typings/antlr4ts/tree/Trees.d.ts +0 -75
  179. package/typings/antlr4ts/tree/index.d.ts +0 -16
  180. package/typings/antlr4ts/tree/pattern/Chunk.d.ts +0 -17
  181. package/typings/antlr4ts/tree/pattern/ParseTreeMatch.d.ts +0 -124
  182. package/typings/antlr4ts/tree/pattern/ParseTreePattern.d.ts +0 -98
  183. package/typings/antlr4ts/tree/pattern/ParseTreePatternMatcher.d.ts +0 -166
  184. package/typings/antlr4ts/tree/pattern/RuleTagToken.d.ts +0 -122
  185. package/typings/antlr4ts/tree/pattern/TagChunk.d.ts +0 -59
  186. package/typings/antlr4ts/tree/pattern/TextChunk.d.ts +0 -35
  187. package/typings/antlr4ts/tree/pattern/TokenTagToken.d.ts +0 -56
  188. package/typings/antlr4ts/tree/pattern/index.d.ts +0 -9
  189. package/typings/antlr4ts/tree/xpath/XPath.d.ts +0 -66
  190. package/typings/antlr4ts/tree/xpath/XPathElement.d.ts +0 -19
  191. package/typings/antlr4ts/tree/xpath/XPathLexer.d.ts +0 -36
  192. package/typings/antlr4ts/tree/xpath/XPathLexerErrorListener.d.ts +0 -10
  193. package/typings/antlr4ts/tree/xpath/XPathRuleAnywhereElement.d.ts +0 -14
  194. package/typings/antlr4ts/tree/xpath/XPathRuleElement.d.ts +0 -11
  195. package/typings/antlr4ts/tree/xpath/XPathTokenAnywhereElement.d.ts +0 -11
  196. package/typings/antlr4ts/tree/xpath/XPathTokenElement.d.ts +0 -11
  197. package/typings/antlr4ts/tree/xpath/XPathWildcardAnywhereElement.d.ts +0 -10
  198. package/typings/antlr4ts/tree/xpath/XPathWildcardElement.d.ts +0 -10
  199. package/typings/antlr4ts/tree/xpath/index.d.ts +0 -14
  200. package/typings/common/filter/error-listener.d.ts +0 -8
  201. package/umd/934.min.cjs +0 -1
  202. package/umd/main.min.cjs +0 -2
  203. package/umd/main.min.cjs.LICENSE.txt +0 -13
@@ -1,5 +1,5 @@
1
- import { ParseTreeVisitor } from '../../../antlr4ts/tree/ParseTreeVisitor';
2
- import { ArithmeticExpressionContext, ArrayExpressionContext, ArthOpContext, BooleanContext, BooleanLiteralContext, ComparisonExpressionContext, CompOpContext, DateLiteralContext, DateTimeLiteralContext, DateTimePrecisionContext, ExpressionContext, ExternalConstantContext, ExternalConstantTermContext, FunctionContext, IdentifierContext, IndexerContext, InfinityContext, InfinityLiteralContext, InvocableContext, InvocationContext, LiteralContext, LiteralTermContext, LogicalExpressionContext, LogOpContext, MemberIndexContext, MemberInvocationContext, NullContext, NullLiteralContext, NumberIndexContext, NumberLiteralContext, ParamListContext, ParenthesizedExpressionContext, PluralDateTimePrecisionContext, PolarityExpressionContext, PolarOpContext, QualifiedIdentifierContext, QualifiedIdentifierTermContext, RootContext, StringLiteralContext, TermContext, TermExpressionContext, TimeLiteralContext, UnitContext } from "../antlr/OpraFilterParser.js";
1
+ import { ParseTreeVisitor } from 'antlr4';
2
+ import { ArithmeticExpressionContext, ArrayExpressionContext, ArthOpContext, BooleanContext, BooleanLiteralContext, ComparisonExpressionContext, CompOpContext, DateLiteralContext, DateTimeLiteralContext, DateTimePrecisionContext, ExternalConstantContext, ExternalConstantTermContext, FunctionContext, IdentifierContext, InfinityContext, InfinityLiteralContext, InvocableContext, LiteralTermContext, LogicalExpressionContext, LogOpContext, MemberIndexContext, MemberInvocationContext, NullContext, NullLiteralContext, NumberIndexContext, NumberLiteralContext, ParamListContext, ParenthesizedExpressionContext, PluralDateTimePrecisionContext, PolarityExpressionContext, PolarOpContext, QualifiedIdentifierContext, QualifiedIdentifierTermContext, RootContext, StringLiteralContext, TermExpressionContext, TimeLiteralContext, UnitContext } from "./OpraFilterParser.js";
3
3
  /**
4
4
  * This interface defines a complete generic visitor for a parse tree produced
5
5
  * by `OpraFilterParser`.
@@ -7,42 +7,13 @@ import { ArithmeticExpressionContext, ArrayExpressionContext, ArthOpContext, Boo
7
7
  * @param <Result> The return type of the visit operation. Use `void` for
8
8
  * operations with no return type.
9
9
  */
10
- export interface OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
10
+ export default class OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
11
11
  /**
12
- * Visit a parse tree produced by the `termExpression`
13
- * labeled alternative in `OpraFilterParser.expression`.
14
- * @param ctx the parse tree
15
- * @return the visitor result
16
- */
17
- visitTermExpression?: (ctx: TermExpressionContext) => Result;
18
- /**
19
- * Visit a parse tree produced by the `polarityExpression`
20
- * labeled alternative in `OpraFilterParser.expression`.
21
- * @param ctx the parse tree
22
- * @return the visitor result
23
- */
24
- visitPolarityExpression?: (ctx: PolarityExpressionContext) => Result;
25
- /**
26
- * Visit a parse tree produced by the `arithmeticExpression`
27
- * labeled alternative in `OpraFilterParser.expression`.
28
- * @param ctx the parse tree
29
- * @return the visitor result
30
- */
31
- visitArithmeticExpression?: (ctx: ArithmeticExpressionContext) => Result;
32
- /**
33
- * Visit a parse tree produced by the `comparisonExpression`
34
- * labeled alternative in `OpraFilterParser.expression`.
35
- * @param ctx the parse tree
36
- * @return the visitor result
37
- */
38
- visitComparisonExpression?: (ctx: ComparisonExpressionContext) => Result;
39
- /**
40
- * Visit a parse tree produced by the `logicalExpression`
41
- * labeled alternative in `OpraFilterParser.expression`.
12
+ * Visit a parse tree produced by `OpraFilterParser.root`.
42
13
  * @param ctx the parse tree
43
14
  * @return the visitor result
44
15
  */
45
- visitLogicalExpression?: (ctx: LogicalExpressionContext) => Result;
16
+ visitRoot?: (ctx: RootContext) => Result;
46
17
  /**
47
18
  * Visit a parse tree produced by the `parenthesizedExpression`
48
19
  * labeled alternative in `OpraFilterParser.expression`.
@@ -58,75 +29,67 @@ export interface OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
58
29
  */
59
30
  visitArrayExpression?: (ctx: ArrayExpressionContext) => Result;
60
31
  /**
61
- * Visit a parse tree produced by the `memberIndex`
62
- * labeled alternative in `OpraFilterParser.indexer`.
63
- * @param ctx the parse tree
64
- * @return the visitor result
65
- */
66
- visitMemberIndex?: (ctx: MemberIndexContext) => Result;
67
- /**
68
- * Visit a parse tree produced by the `numberIndex`
69
- * labeled alternative in `OpraFilterParser.indexer`.
32
+ * Visit a parse tree produced by the `polarityExpression`
33
+ * labeled alternative in `OpraFilterParser.expression`.
70
34
  * @param ctx the parse tree
71
35
  * @return the visitor result
72
36
  */
73
- visitNumberIndex?: (ctx: NumberIndexContext) => Result;
37
+ visitPolarityExpression?: (ctx: PolarityExpressionContext) => Result;
74
38
  /**
75
- * Visit a parse tree produced by the `numberLiteral`
76
- * labeled alternative in `OpraFilterParser.literal`.
39
+ * Visit a parse tree produced by the `comparisonExpression`
40
+ * labeled alternative in `OpraFilterParser.expression`.
77
41
  * @param ctx the parse tree
78
42
  * @return the visitor result
79
43
  */
80
- visitNumberLiteral?: (ctx: NumberLiteralContext) => Result;
44
+ visitComparisonExpression?: (ctx: ComparisonExpressionContext) => Result;
81
45
  /**
82
- * Visit a parse tree produced by the `infinityLiteral`
83
- * labeled alternative in `OpraFilterParser.literal`.
46
+ * Visit a parse tree produced by the `arithmeticExpression`
47
+ * labeled alternative in `OpraFilterParser.expression`.
84
48
  * @param ctx the parse tree
85
49
  * @return the visitor result
86
50
  */
87
- visitInfinityLiteral?: (ctx: InfinityLiteralContext) => Result;
51
+ visitArithmeticExpression?: (ctx: ArithmeticExpressionContext) => Result;
88
52
  /**
89
- * Visit a parse tree produced by the `booleanLiteral`
90
- * labeled alternative in `OpraFilterParser.literal`.
53
+ * Visit a parse tree produced by the `logicalExpression`
54
+ * labeled alternative in `OpraFilterParser.expression`.
91
55
  * @param ctx the parse tree
92
56
  * @return the visitor result
93
57
  */
94
- visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result;
58
+ visitLogicalExpression?: (ctx: LogicalExpressionContext) => Result;
95
59
  /**
96
- * Visit a parse tree produced by the `nullLiteral`
97
- * labeled alternative in `OpraFilterParser.literal`.
60
+ * Visit a parse tree produced by the `termExpression`
61
+ * labeled alternative in `OpraFilterParser.expression`.
98
62
  * @param ctx the parse tree
99
63
  * @return the visitor result
100
64
  */
101
- visitNullLiteral?: (ctx: NullLiteralContext) => Result;
65
+ visitTermExpression?: (ctx: TermExpressionContext) => Result;
102
66
  /**
103
- * Visit a parse tree produced by the `dateLiteral`
104
- * labeled alternative in `OpraFilterParser.literal`.
67
+ * Visit a parse tree produced by the `literalTerm`
68
+ * labeled alternative in `OpraFilterParser.term`.
105
69
  * @param ctx the parse tree
106
70
  * @return the visitor result
107
71
  */
108
- visitDateLiteral?: (ctx: DateLiteralContext) => Result;
72
+ visitLiteralTerm?: (ctx: LiteralTermContext) => Result;
109
73
  /**
110
- * Visit a parse tree produced by the `dateTimeLiteral`
111
- * labeled alternative in `OpraFilterParser.literal`.
74
+ * Visit a parse tree produced by the `qualifiedIdentifierTerm`
75
+ * labeled alternative in `OpraFilterParser.term`.
112
76
  * @param ctx the parse tree
113
77
  * @return the visitor result
114
78
  */
115
- visitDateTimeLiteral?: (ctx: DateTimeLiteralContext) => Result;
79
+ visitQualifiedIdentifierTerm?: (ctx: QualifiedIdentifierTermContext) => Result;
116
80
  /**
117
- * Visit a parse tree produced by the `timeLiteral`
118
- * labeled alternative in `OpraFilterParser.literal`.
81
+ * Visit a parse tree produced by the `externalConstantTerm`
82
+ * labeled alternative in `OpraFilterParser.term`.
119
83
  * @param ctx the parse tree
120
84
  * @return the visitor result
121
85
  */
122
- visitTimeLiteral?: (ctx: TimeLiteralContext) => Result;
86
+ visitExternalConstantTerm?: (ctx: ExternalConstantTermContext) => Result;
123
87
  /**
124
- * Visit a parse tree produced by the `stringLiteral`
125
- * labeled alternative in `OpraFilterParser.literal`.
88
+ * Visit a parse tree produced by `OpraFilterParser.invocable`.
126
89
  * @param ctx the parse tree
127
90
  * @return the visitor result
128
91
  */
129
- visitStringLiteral?: (ctx: StringLiteralContext) => Result;
92
+ visitInvocable?: (ctx: InvocableContext) => Result;
130
93
  /**
131
94
  * Visit a parse tree produced by the `memberInvocation`
132
95
  * labeled alternative in `OpraFilterParser.invocation`.
@@ -135,116 +98,123 @@ export interface OpraFilterVisitor<Result> extends ParseTreeVisitor<Result> {
135
98
  */
136
99
  visitMemberInvocation?: (ctx: MemberInvocationContext) => Result;
137
100
  /**
138
- * Visit a parse tree produced by the `literalTerm`
139
- * labeled alternative in `OpraFilterParser.term`.
101
+ * Visit a parse tree produced by the `memberIndex`
102
+ * labeled alternative in `OpraFilterParser.indexer`.
140
103
  * @param ctx the parse tree
141
104
  * @return the visitor result
142
105
  */
143
- visitLiteralTerm?: (ctx: LiteralTermContext) => Result;
106
+ visitMemberIndex?: (ctx: MemberIndexContext) => Result;
144
107
  /**
145
- * Visit a parse tree produced by the `qualifiedIdentifierTerm`
146
- * labeled alternative in `OpraFilterParser.term`.
108
+ * Visit a parse tree produced by the `numberIndex`
109
+ * labeled alternative in `OpraFilterParser.indexer`.
147
110
  * @param ctx the parse tree
148
111
  * @return the visitor result
149
112
  */
150
- visitQualifiedIdentifierTerm?: (ctx: QualifiedIdentifierTermContext) => Result;
113
+ visitNumberIndex?: (ctx: NumberIndexContext) => Result;
151
114
  /**
152
- * Visit a parse tree produced by the `externalConstantTerm`
153
- * labeled alternative in `OpraFilterParser.term`.
115
+ * Visit a parse tree produced by `OpraFilterParser.function`.
154
116
  * @param ctx the parse tree
155
117
  * @return the visitor result
156
118
  */
157
- visitExternalConstantTerm?: (ctx: ExternalConstantTermContext) => Result;
119
+ visitFunction?: (ctx: FunctionContext) => Result;
158
120
  /**
159
- * Visit a parse tree produced by `OpraFilterParser.root`.
121
+ * Visit a parse tree produced by `OpraFilterParser.paramList`.
160
122
  * @param ctx the parse tree
161
123
  * @return the visitor result
162
124
  */
163
- visitRoot?: (ctx: RootContext) => Result;
125
+ visitParamList?: (ctx: ParamListContext) => Result;
164
126
  /**
165
- * Visit a parse tree produced by `OpraFilterParser.expression`.
127
+ * Visit a parse tree produced by `OpraFilterParser.unit`.
166
128
  * @param ctx the parse tree
167
129
  * @return the visitor result
168
130
  */
169
- visitExpression?: (ctx: ExpressionContext) => Result;
131
+ visitUnit?: (ctx: UnitContext) => Result;
170
132
  /**
171
- * Visit a parse tree produced by `OpraFilterParser.term`.
133
+ * Visit a parse tree produced by `OpraFilterParser.dateTimePrecision`.
172
134
  * @param ctx the parse tree
173
135
  * @return the visitor result
174
136
  */
175
- visitTerm?: (ctx: TermContext) => Result;
137
+ visitDateTimePrecision?: (ctx: DateTimePrecisionContext) => Result;
176
138
  /**
177
- * Visit a parse tree produced by `OpraFilterParser.invocable`.
139
+ * Visit a parse tree produced by `OpraFilterParser.pluralDateTimePrecision`.
178
140
  * @param ctx the parse tree
179
141
  * @return the visitor result
180
142
  */
181
- visitInvocable?: (ctx: InvocableContext) => Result;
143
+ visitPluralDateTimePrecision?: (ctx: PluralDateTimePrecisionContext) => Result;
182
144
  /**
183
- * Visit a parse tree produced by `OpraFilterParser.invocation`.
145
+ * Visit a parse tree produced by `OpraFilterParser.qualifiedIdentifier`.
184
146
  * @param ctx the parse tree
185
147
  * @return the visitor result
186
148
  */
187
- visitInvocation?: (ctx: InvocationContext) => Result;
149
+ visitQualifiedIdentifier?: (ctx: QualifiedIdentifierContext) => Result;
188
150
  /**
189
- * Visit a parse tree produced by `OpraFilterParser.indexer`.
151
+ * Visit a parse tree produced by `OpraFilterParser.externalConstant`.
190
152
  * @param ctx the parse tree
191
153
  * @return the visitor result
192
154
  */
193
- visitIndexer?: (ctx: IndexerContext) => Result;
155
+ visitExternalConstant?: (ctx: ExternalConstantContext) => Result;
194
156
  /**
195
- * Visit a parse tree produced by `OpraFilterParser.function`.
157
+ * Visit a parse tree produced by `OpraFilterParser.identifier`.
196
158
  * @param ctx the parse tree
197
159
  * @return the visitor result
198
160
  */
199
- visitFunction?: (ctx: FunctionContext) => Result;
161
+ visitIdentifier?: (ctx: IdentifierContext) => Result;
200
162
  /**
201
- * Visit a parse tree produced by `OpraFilterParser.paramList`.
163
+ * Visit a parse tree produced by the `numberLiteral`
164
+ * labeled alternative in `OpraFilterParser.literal`.
202
165
  * @param ctx the parse tree
203
166
  * @return the visitor result
204
167
  */
205
- visitParamList?: (ctx: ParamListContext) => Result;
168
+ visitNumberLiteral?: (ctx: NumberLiteralContext) => Result;
206
169
  /**
207
- * Visit a parse tree produced by `OpraFilterParser.unit`.
170
+ * Visit a parse tree produced by the `infinityLiteral`
171
+ * labeled alternative in `OpraFilterParser.literal`.
208
172
  * @param ctx the parse tree
209
173
  * @return the visitor result
210
174
  */
211
- visitUnit?: (ctx: UnitContext) => Result;
175
+ visitInfinityLiteral?: (ctx: InfinityLiteralContext) => Result;
212
176
  /**
213
- * Visit a parse tree produced by `OpraFilterParser.dateTimePrecision`.
177
+ * Visit a parse tree produced by the `booleanLiteral`
178
+ * labeled alternative in `OpraFilterParser.literal`.
214
179
  * @param ctx the parse tree
215
180
  * @return the visitor result
216
181
  */
217
- visitDateTimePrecision?: (ctx: DateTimePrecisionContext) => Result;
182
+ visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result;
218
183
  /**
219
- * Visit a parse tree produced by `OpraFilterParser.pluralDateTimePrecision`.
184
+ * Visit a parse tree produced by the `nullLiteral`
185
+ * labeled alternative in `OpraFilterParser.literal`.
220
186
  * @param ctx the parse tree
221
187
  * @return the visitor result
222
188
  */
223
- visitPluralDateTimePrecision?: (ctx: PluralDateTimePrecisionContext) => Result;
189
+ visitNullLiteral?: (ctx: NullLiteralContext) => Result;
224
190
  /**
225
- * Visit a parse tree produced by `OpraFilterParser.qualifiedIdentifier`.
191
+ * Visit a parse tree produced by the `dateLiteral`
192
+ * labeled alternative in `OpraFilterParser.literal`.
226
193
  * @param ctx the parse tree
227
194
  * @return the visitor result
228
195
  */
229
- visitQualifiedIdentifier?: (ctx: QualifiedIdentifierContext) => Result;
196
+ visitDateLiteral?: (ctx: DateLiteralContext) => Result;
230
197
  /**
231
- * Visit a parse tree produced by `OpraFilterParser.externalConstant`.
198
+ * Visit a parse tree produced by the `dateTimeLiteral`
199
+ * labeled alternative in `OpraFilterParser.literal`.
232
200
  * @param ctx the parse tree
233
201
  * @return the visitor result
234
202
  */
235
- visitExternalConstant?: (ctx: ExternalConstantContext) => Result;
203
+ visitDateTimeLiteral?: (ctx: DateTimeLiteralContext) => Result;
236
204
  /**
237
- * Visit a parse tree produced by `OpraFilterParser.identifier`.
205
+ * Visit a parse tree produced by the `timeLiteral`
206
+ * labeled alternative in `OpraFilterParser.literal`.
238
207
  * @param ctx the parse tree
239
208
  * @return the visitor result
240
209
  */
241
- visitIdentifier?: (ctx: IdentifierContext) => Result;
210
+ visitTimeLiteral?: (ctx: TimeLiteralContext) => Result;
242
211
  /**
243
- * Visit a parse tree produced by `OpraFilterParser.literal`.
212
+ * Visit a parse tree produced by the `stringLiteral`
213
+ * labeled alternative in `OpraFilterParser.literal`.
244
214
  * @param ctx the parse tree
245
215
  * @return the visitor result
246
216
  */
247
- visitLiteral?: (ctx: LiteralContext) => Result;
217
+ visitStringLiteral?: (ctx: StringLiteralContext) => Result;
248
218
  /**
249
219
  * Visit a parse tree produced by `OpraFilterParser.compOp`.
250
220
  * @param ctx the parse tree
@@ -1,20 +1,18 @@
1
- import { Recognizer } from '../../antlr4ts';
2
- import { RecognitionException } from '../../antlr4ts/RecognitionException';
1
+ import { RecognitionException } from 'antlr4';
2
+ import { Recognizer } from 'antlr4/src/antlr4/Recognizer';
3
3
  export declare class SyntaxError extends TypeError {
4
4
  }
5
5
  export declare class ValidationError extends TypeError {
6
6
  }
7
7
  export declare class FilterParseError extends Error {
8
- recognizer: Recognizer<any, any>;
8
+ recognizer: Recognizer<any>;
9
9
  offendingSymbol: any | undefined;
10
10
  line: number;
11
- charPositionInLine: number;
12
11
  e: RecognitionException | undefined;
13
12
  constructor(message: string, args: {
14
- recognizer: Recognizer<any, any>;
13
+ recognizer: Recognizer<any>;
15
14
  offendingSymbol: any | undefined;
16
15
  line: number;
17
- charPositionInLine: number;
18
16
  e: RecognitionException | undefined;
19
17
  });
20
18
  }
@@ -1,9 +1,10 @@
1
- import { AbstractParseTreeVisitor } from '../../antlr4ts/tree/index.js';
1
+ import type { ParseTreeVisitor as TParseTreeVisitor } from 'antlr4';
2
2
  import { ArithmeticExpressionContext, ArrayExpressionContext, BooleanLiteralContext, ComparisonExpressionContext, DateLiteralContext, DateTimeLiteralContext, ExternalConstantTermContext, IdentifierContext, LogicalExpressionContext, NumberLiteralContext, ParenthesizedExpressionContext, PolarityExpressionContext, QualifiedIdentifierTermContext, RootContext, StringLiteralContext, TimeLiteralContext } from './antlr/OpraFilterParser.js';
3
- import { OpraFilterVisitor } from './antlr/OpraFilterVisitor.js';
3
+ import OpraFilterVisitor from './antlr/OpraFilterVisitor.js';
4
4
  import { ArithmeticExpression, ArrayExpression, BooleanLiteral, DateLiteral, LogicalExpression, NullLiteral, NumberLiteral, ParenthesesExpression, QualifiedIdentifier, StringLiteral, TimeLiteral } from './ast/index.js';
5
5
  import { ExternalConstant } from './ast/terms/external-constant.js';
6
- export declare class FilterTreeVisitor extends AbstractParseTreeVisitor<any> implements OpraFilterVisitor<any> {
6
+ declare const ParseTreeVisitor: typeof TParseTreeVisitor;
7
+ export declare class FilterTreeVisitor extends ParseTreeVisitor<any> implements OpraFilterVisitor<any> {
7
8
  private _timeZone?;
8
9
  constructor(options?: {
9
10
  timeZone?: string;
@@ -28,3 +29,4 @@ export declare class FilterTreeVisitor extends AbstractParseTreeVisitor<any> imp
28
29
  visitLogicalExpression(ctx: LogicalExpressionContext): LogicalExpression;
29
30
  visitArithmeticExpression(ctx: ArithmeticExpressionContext): ArithmeticExpression;
30
31
  }
32
+ export {};
@@ -1,5 +1,5 @@
1
1
  export * from './ast/index.js';
2
2
  export * from './parse.js';
3
3
  export * from './build.js';
4
- export * from './error-listener.js';
4
+ export * from './opra-error-listener.js';
5
5
  export * from './filter-tree-visitor.js';
@@ -0,0 +1,8 @@
1
+ import { ErrorListener, RecognitionException } from 'antlr4';
2
+ import { Recognizer } from 'antlr4/src/antlr4/Recognizer';
3
+ import { FilterParseError } from './errors.js';
4
+ export declare class OpraErrorListener extends ErrorListener<any> {
5
+ errors: FilterParseError[];
6
+ constructor(errors: FilterParseError[]);
7
+ syntaxError(recognizer: Recognizer<any>, offendingSymbol: any, line: number, column: number, msg: string, e: RecognitionException): void;
8
+ }
@@ -1,2 +1,2 @@
1
- import { AbstractParseTreeVisitor } from '../../antlr4ts/tree';
2
- export declare function parseFilter(text: string, visitor?: AbstractParseTreeVisitor<any>): any;
1
+ import type { ParseTreeVisitor } from 'antlr4';
2
+ export declare function parseFilter(text: string, visitor?: ParseTreeVisitor<any>): any;
@@ -1,5 +1,5 @@
1
- import { FallbackLng, Formatter as I18nextFormatter, i18n, InitOptions as I18nextInitOptions, Resource as I18nextResource, TFunction as I18nextTFunction, TOptions } from 'i18next';
2
- import * as I18next from 'i18next';
1
+ import { FallbackLng, Formatter as I18nextFormatter, i18n, InitOptions as I18nextInitOptions, Resource as I18nextResource, TFunction as I18nextTFunction, TOptions } from '@browsery/i18next';
2
+ import * as I18next from '@browsery/i18next';
3
3
  import { Type } from 'ts-gems';
4
4
  export declare type BaseI18n = Type<I18next.i18n>;
5
5
  export declare const BaseI18n: BaseI18n;
@@ -10,7 +10,7 @@ export declare type InitCallback = I18next.Callback;
10
10
  export declare type TranslateFunction = I18nextTFunction;
11
11
  export declare type Formatter = I18nextFormatter;
12
12
  export declare type LanguageResource = I18nextResource;
13
- export { FallbackLng };
13
+ export type { FallbackLng };
14
14
  export interface InitOptions extends I18nextInitOptions {
15
15
  resourceDirs?: string[];
16
16
  }
@@ -1,4 +1,4 @@
1
- import { TOptions } from 'i18next';
1
+ import { TOptions } from '@browsery/i18next';
2
2
  export declare function translate(key: string, options?: TOptions<Record<string, any>>): string;
3
3
  export declare function translate(key: string, options: TOptions<Record<string, any>>, fallback: string): string;
4
4
  export declare function translate(key: string, fallback: string): string;
package/cjs/934.min.cjs DELETED
@@ -1 +0,0 @@
1
- (self.webpackChunk=self.webpackChunk||[]).push([[934],{6934:()=>{}}]);