@tellaro/tql 1.5.0 → 3.0.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.
- package/dist/index.js +73 -65
- package/dist/src/builder.d.ts +6 -0
- package/dist/src/completionProvider.js +276 -195
- package/dist/src/complexityAnalyzer.js +41 -32
- package/dist/src/index.d.ts +3 -3
- package/dist/src/parser.d.ts +193 -1
- package/dist/src/parser.js +614 -127
- package/dist/src/semanticPreview.d.ts +23 -0
- package/dist/src/semanticPreview.js +111 -41
- package/dist/src/tokenizer.d.ts +134 -5
- package/dist/src/tokenizer.js +47 -30
- package/dist/src/types.d.ts +138 -10
- package/dist/src/validator.d.ts +235 -1
- package/dist/src/validator.js +468 -150
- package/dist/tql.css +1 -1
- package/dist/vue/TqlAutocomplete.vue.d.ts +24 -1
- package/dist/vue/TqlChart.vue.d.ts +19 -1
- package/dist/vue/TqlChart.vue.js +1 -1
- package/dist/vue/TqlInput.vue.d.ts +92 -1
- package/dist/vue/TqlInput.vue.js +1 -1
- package/dist/vue/TqlInput.vue2.js +282 -256
- package/dist/vue/components/TqlPreview.vue.d.ts +89 -2
- package/dist/vue/components/TqlPreview.vue.js +4 -4
- package/dist/vue/index.d.ts +1 -1
- package/dist/vue/useTqlInput.d.ts +38 -29
- package/package.json +3 -5
package/dist/index.js
CHANGED
|
@@ -1,70 +1,78 @@
|
|
|
1
|
-
import { AGGREGATION_FUNCTIONS as r,
|
|
2
|
-
import { TqlParser as
|
|
3
|
-
import {
|
|
4
|
-
import { getCompletionTriggerCharacters as
|
|
5
|
-
import { findClosestMatch as
|
|
6
|
-
import { SchemaCache as
|
|
7
|
-
import { ComplexityAnalyzer as
|
|
8
|
-
import { SemanticPreview as
|
|
9
|
-
import { buildStatsQuery as
|
|
1
|
+
import { AGGREGATION_FUNCTIONS as r, BOOLEAN_PREDICATE_MUTATORS as i, BOOLEAN_PREDICATE_MUTATOR_SET as o, COLLECTION_OPERATORS as T, COMPARISON_OPERATORS as a, KEYWORDS as E, LOGICAL_OPERATORS as l, MUTATORS as S, NEGATION_SYMBOL_OPERATORS as O, SYMBOL_OPERATORS as n, TYPE_HINTS as s, TqlTokenizer as g, VISUALIZATION_TYPES as A, findPreviousToken as m, findTokenAtPosition as R, findTokenBefore as c, findTokensInRange as C, tokenizeTql as _, tokenizeTqlNoWhitespace as p } from "./src/tokenizer.js";
|
|
2
|
+
import { TqlParser as d, formatParseError as f, getTqlErrors as h, isValidTql as I, parseTql as N } from "./src/parser.js";
|
|
3
|
+
import { CASE_SENSITIVE_MEMBERSHIP_OPERATORS as x, CASE_SENSITIVE_OPERATORS as y, CASE_SENSITIVE_WHOLE_VALUE_OPERATORS as M, MAX_REGEX_PATTERN_LENGTH as q, TqlValidator as u, casePreservingForm as z, caseSensitiveSupport as V, formatValidationResult as F, getTqlIssues as U, isValidTqlSyntax as k, validateTql as v } from "./src/validator.js";
|
|
4
|
+
import { getCompletionTriggerCharacters as B, getCompletions as H, getWordAtPosition as D, shouldTriggerCompletion as W } from "./src/completionProvider.js";
|
|
5
|
+
import { findClosestMatch as w, fuzzyFilter as X, fuzzyMatch as b, highlightMatch as K, levenshteinDistance as Q } from "./src/fuzzyMatcher.js";
|
|
6
|
+
import { SchemaCache as j, createSchemaCache as J, getCachedField as $, getCachedFieldNames as ee, getCachedFieldType as te, getSchemaCache as re } from "./src/schemaCache.js";
|
|
7
|
+
import { ComplexityAnalyzer as oe, analyzeComplexity as Te, getComplexityMetrics as ae, getComplexityWarnings as Ee, isHighComplexity as le } from "./src/complexityAnalyzer.js";
|
|
8
|
+
import { SemanticPreview as Oe, flattenLogicTree as ne, formatLogicTreeAscii as se, formatLogicTreeNode as ge, generatePreview as Ae, getFieldUsage as me, getLogicTree as Re, getLogicTreeDepth as ce, getOperatorSummary as Ce, getUniqueFields as _e } from "./src/semanticPreview.js";
|
|
9
|
+
import { buildStatsQuery as Pe, parseVizHintString as de } from "./src/builder.js";
|
|
10
10
|
export {
|
|
11
11
|
r as AGGREGATION_FUNCTIONS,
|
|
12
|
-
i as
|
|
13
|
-
o as
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
i as BOOLEAN_PREDICATE_MUTATORS,
|
|
13
|
+
o as BOOLEAN_PREDICATE_MUTATOR_SET,
|
|
14
|
+
x as CASE_SENSITIVE_MEMBERSHIP_OPERATORS,
|
|
15
|
+
y as CASE_SENSITIVE_OPERATORS,
|
|
16
|
+
M as CASE_SENSITIVE_WHOLE_VALUE_OPERATORS,
|
|
17
|
+
T as COLLECTION_OPERATORS,
|
|
18
|
+
a as COMPARISON_OPERATORS,
|
|
19
|
+
oe as ComplexityAnalyzer,
|
|
20
|
+
E as KEYWORDS,
|
|
16
21
|
l as LOGICAL_OPERATORS,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
q as MAX_REGEX_PATTERN_LENGTH,
|
|
23
|
+
S as MUTATORS,
|
|
24
|
+
O as NEGATION_SYMBOL_OPERATORS,
|
|
25
|
+
n as SYMBOL_OPERATORS,
|
|
26
|
+
j as SchemaCache,
|
|
27
|
+
Oe as SemanticPreview,
|
|
22
28
|
s as TYPE_HINTS,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
29
|
+
d as TqlParser,
|
|
30
|
+
g as TqlTokenizer,
|
|
31
|
+
u as TqlValidator,
|
|
32
|
+
A as VISUALIZATION_TYPES,
|
|
33
|
+
Te as analyzeComplexity,
|
|
34
|
+
Pe as buildStatsQuery,
|
|
35
|
+
z as casePreservingForm,
|
|
36
|
+
V as caseSensitiveSupport,
|
|
37
|
+
J as createSchemaCache,
|
|
38
|
+
w as findClosestMatch,
|
|
39
|
+
m as findPreviousToken,
|
|
40
|
+
R as findTokenAtPosition,
|
|
41
|
+
c as findTokenBefore,
|
|
42
|
+
C as findTokensInRange,
|
|
43
|
+
ne as flattenLogicTree,
|
|
44
|
+
se as formatLogicTreeAscii,
|
|
45
|
+
ge as formatLogicTreeNode,
|
|
46
|
+
f as formatParseError,
|
|
47
|
+
F as formatValidationResult,
|
|
48
|
+
X as fuzzyFilter,
|
|
49
|
+
b as fuzzyMatch,
|
|
50
|
+
Ae as generatePreview,
|
|
51
|
+
$ as getCachedField,
|
|
52
|
+
ee as getCachedFieldNames,
|
|
53
|
+
te as getCachedFieldType,
|
|
54
|
+
B as getCompletionTriggerCharacters,
|
|
55
|
+
H as getCompletions,
|
|
56
|
+
ae as getComplexityMetrics,
|
|
57
|
+
Ee as getComplexityWarnings,
|
|
58
|
+
me as getFieldUsage,
|
|
59
|
+
Re as getLogicTree,
|
|
60
|
+
ce as getLogicTreeDepth,
|
|
61
|
+
Ce as getOperatorSummary,
|
|
62
|
+
re as getSchemaCache,
|
|
63
|
+
h as getTqlErrors,
|
|
64
|
+
U as getTqlIssues,
|
|
65
|
+
_e as getUniqueFields,
|
|
66
|
+
D as getWordAtPosition,
|
|
67
|
+
K as highlightMatch,
|
|
68
|
+
le as isHighComplexity,
|
|
69
|
+
I as isValidTql,
|
|
70
|
+
k as isValidTqlSyntax,
|
|
71
|
+
Q as levenshteinDistance,
|
|
72
|
+
N as parseTql,
|
|
73
|
+
de as parseVizHintString,
|
|
74
|
+
W as shouldTriggerCompletion,
|
|
75
|
+
_ as tokenizeTql,
|
|
76
|
+
p as tokenizeTqlNoWhitespace,
|
|
77
|
+
v as validateTql
|
|
70
78
|
};
|
package/dist/src/builder.d.ts
CHANGED
|
@@ -58,5 +58,11 @@ export declare function buildStatsQuery(config: StatsQueryConfig): string;
|
|
|
58
58
|
/**
|
|
59
59
|
* Parse a TQL viz hint string (e.g., "bar" or 'bar(title="Events")') into a VizHintConfig.
|
|
60
60
|
* This is a lightweight parser for the viz_hint portion only.
|
|
61
|
+
*
|
|
62
|
+
* It does NOT validate the chart type against `VISUALIZATION_TYPES`: the name is cast to
|
|
63
|
+
* `TqlVisualizationType` whatever it is, so `parseVizHintString("zzz")` returns a config the
|
|
64
|
+
* type system claims is valid. Stated because the return type asserts otherwise and a caller
|
|
65
|
+
* would reasonably trust it. The Python grammar's `viz_types` is a closed set and rejects an
|
|
66
|
+
* unknown name at execution, so a bad type is caught there and nowhere earlier.
|
|
61
67
|
*/
|
|
62
68
|
export declare function parseVizHintString(vizStr: string): VizHintConfig | null;
|