@tellaro/tql 3.2.0 → 4.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 +86 -79
- package/dist/src/chart/index.d.ts +1 -1
- package/dist/src/chart/index.js +39 -26
- package/dist/src/chart/mappers.d.ts +861 -69
- package/dist/src/chart/mappers.js +502 -201
- package/dist/src/completionProvider.d.ts +11 -0
- package/dist/src/completionProvider.js +99 -59
- package/dist/src/index.d.ts +3 -3
- package/dist/src/parser.d.ts +36 -0
- package/dist/src/parser.js +263 -151
- package/dist/src/tokenizer.d.ts +20 -0
- package/dist/src/tokenizer.js +123 -104
- package/dist/src/types.d.ts +114 -3
- package/dist/tql.css +1 -1
- package/dist/vue/TqlChart.vue.js +1 -1
- package/dist/vue/TqlChart.vue2.js +148 -130
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,83 +1,90 @@
|
|
|
1
|
-
import { AGGREGATION_FUNCTIONS as
|
|
2
|
-
import { TqlParser as
|
|
3
|
-
import { CASE_SENSITIVE_MEMBERSHIP_OPERATORS as
|
|
4
|
-
import { getCompletionTriggerCharacters as
|
|
5
|
-
import { findClosestMatch as
|
|
6
|
-
import { SchemaCache as
|
|
7
|
-
import { ComplexityAnalyzer as
|
|
8
|
-
import { SemanticPreview as
|
|
9
|
-
import { buildStatsQuery as
|
|
10
|
-
import { QUERY_PLAN_EXPLAIN_KEYS as
|
|
1
|
+
import { AGGREGATION_FUNCTIONS as t, BOOLEAN_PREDICATE_MUTATORS as o, BOOLEAN_PREDICATE_MUTATOR_SET as i, COLLECTION_OPERATORS as T, COMPARISON_OPERATORS as a, DATE_HISTOGRAM_CALENDAR_INTERVALS as E, DATE_HISTOGRAM_FIXED_UNITS as S, GEO_GRID_PRECISION as _, GROUP_BY_BUCKET_FUNCTIONS as l, KEYWORDS as A, LOGICAL_OPERATORS as O, MUTATORS as n, NEGATION_SYMBOL_OPERATORS as R, SYMBOL_OPERATORS as s, TYPE_HINTS as g, TqlTokenizer as m, VISUALIZATION_TYPES as P, findPreviousToken as I, findTokenAtPosition as N, findTokenBefore as C, findTokensInRange as c, tokenizeTql as p, tokenizeTqlNoWhitespace as L } from "./src/tokenizer.js";
|
|
2
|
+
import { TqlParser as f, dateHistogramIntervalProblem as h, formatParseError as x, geoPrecisionProblem as U, getTqlErrors as M, isValidTql as u, parseTql as y, rangeBoundariesProblem as q } from "./src/parser.js";
|
|
3
|
+
import { CASE_SENSITIVE_MEMBERSHIP_OPERATORS as V, CASE_SENSITIVE_OPERATORS as z, CASE_SENSITIVE_WHOLE_VALUE_OPERATORS as D, MAX_REGEX_PATTERN_LENGTH as F, TqlValidator as Y, casePreservingForm as B, caseSensitiveSupport as H, formatValidationResult as v, getTqlIssues as k, isValidTqlSyntax as Q, validateTql as W } from "./src/validator.js";
|
|
4
|
+
import { getCompletionTriggerCharacters as b, getCompletions as K, getWordAtPosition as w, shouldTriggerCompletion as Z } from "./src/completionProvider.js";
|
|
5
|
+
import { findClosestMatch as J, fuzzyFilter as $, fuzzyMatch as ee, highlightMatch as re, levenshteinDistance as te } from "./src/fuzzyMatcher.js";
|
|
6
|
+
import { SchemaCache as ie, createSchemaCache as Te, getCachedField as ae, getCachedFieldNames as Ee, getCachedFieldType as Se, getSchemaCache as _e } from "./src/schemaCache.js";
|
|
7
|
+
import { ComplexityAnalyzer as Ae, analyzeComplexity as Oe, getComplexityMetrics as ne, getComplexityWarnings as Re, isHighComplexity as se } from "./src/complexityAnalyzer.js";
|
|
8
|
+
import { SemanticPreview as me, flattenLogicTree as Pe, formatLogicTreeAscii as Ie, formatLogicTreeNode as Ne, generatePreview as Ce, getFieldUsage as ce, getLogicTree as pe, getLogicTreeDepth as Le, getOperatorSummary as de, getUniqueFields as fe } from "./src/semanticPreview.js";
|
|
9
|
+
import { buildStatsQuery as xe, parseVizHintString as Ue } from "./src/builder.js";
|
|
10
|
+
import { QUERY_PLAN_EXPLAIN_KEYS as ue, QUERY_PLAN_EXPLAIN_VERSION as ye, QUERY_PLAN_RULES as qe, summarizeQueryPlan as Ge } from "./src/queryPlan.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
12
|
+
t as AGGREGATION_FUNCTIONS,
|
|
13
|
+
o as BOOLEAN_PREDICATE_MUTATORS,
|
|
14
|
+
i as BOOLEAN_PREDICATE_MUTATOR_SET,
|
|
15
|
+
V as CASE_SENSITIVE_MEMBERSHIP_OPERATORS,
|
|
16
|
+
z as CASE_SENSITIVE_OPERATORS,
|
|
17
|
+
D as CASE_SENSITIVE_WHOLE_VALUE_OPERATORS,
|
|
18
18
|
T as COLLECTION_OPERATORS,
|
|
19
19
|
a as COMPARISON_OPERATORS,
|
|
20
|
-
|
|
21
|
-
E as
|
|
22
|
-
S as
|
|
23
|
-
|
|
24
|
-
l as
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
g as
|
|
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
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
20
|
+
Ae as ComplexityAnalyzer,
|
|
21
|
+
E as DATE_HISTOGRAM_CALENDAR_INTERVALS,
|
|
22
|
+
S as DATE_HISTOGRAM_FIXED_UNITS,
|
|
23
|
+
_ as GEO_GRID_PRECISION,
|
|
24
|
+
l as GROUP_BY_BUCKET_FUNCTIONS,
|
|
25
|
+
A as KEYWORDS,
|
|
26
|
+
O as LOGICAL_OPERATORS,
|
|
27
|
+
F as MAX_REGEX_PATTERN_LENGTH,
|
|
28
|
+
n as MUTATORS,
|
|
29
|
+
R as NEGATION_SYMBOL_OPERATORS,
|
|
30
|
+
ue as QUERY_PLAN_EXPLAIN_KEYS,
|
|
31
|
+
ye as QUERY_PLAN_EXPLAIN_VERSION,
|
|
32
|
+
qe as QUERY_PLAN_RULES,
|
|
33
|
+
s as SYMBOL_OPERATORS,
|
|
34
|
+
ie as SchemaCache,
|
|
35
|
+
me as SemanticPreview,
|
|
36
|
+
g as TYPE_HINTS,
|
|
37
|
+
f as TqlParser,
|
|
38
|
+
m as TqlTokenizer,
|
|
39
|
+
Y as TqlValidator,
|
|
40
|
+
P as VISUALIZATION_TYPES,
|
|
41
|
+
Oe as analyzeComplexity,
|
|
42
|
+
xe as buildStatsQuery,
|
|
43
|
+
B as casePreservingForm,
|
|
44
|
+
H as caseSensitiveSupport,
|
|
45
|
+
Te as createSchemaCache,
|
|
46
|
+
h as dateHistogramIntervalProblem,
|
|
47
|
+
J as findClosestMatch,
|
|
48
|
+
I as findPreviousToken,
|
|
49
|
+
N as findTokenAtPosition,
|
|
50
|
+
C as findTokenBefore,
|
|
51
|
+
c as findTokensInRange,
|
|
52
|
+
Pe as flattenLogicTree,
|
|
53
|
+
Ie as formatLogicTreeAscii,
|
|
54
|
+
Ne as formatLogicTreeNode,
|
|
55
|
+
x as formatParseError,
|
|
56
|
+
v as formatValidationResult,
|
|
57
|
+
$ as fuzzyFilter,
|
|
58
|
+
ee as fuzzyMatch,
|
|
59
|
+
Ce as generatePreview,
|
|
60
|
+
U as geoPrecisionProblem,
|
|
61
|
+
ae as getCachedField,
|
|
62
|
+
Ee as getCachedFieldNames,
|
|
63
|
+
Se as getCachedFieldType,
|
|
64
|
+
b as getCompletionTriggerCharacters,
|
|
65
|
+
K as getCompletions,
|
|
66
|
+
ne as getComplexityMetrics,
|
|
67
|
+
Re as getComplexityWarnings,
|
|
68
|
+
ce as getFieldUsage,
|
|
69
|
+
pe as getLogicTree,
|
|
70
|
+
Le as getLogicTreeDepth,
|
|
71
|
+
de as getOperatorSummary,
|
|
72
|
+
_e as getSchemaCache,
|
|
73
|
+
M as getTqlErrors,
|
|
74
|
+
k as getTqlIssues,
|
|
75
|
+
fe as getUniqueFields,
|
|
76
|
+
w as getWordAtPosition,
|
|
77
|
+
re as highlightMatch,
|
|
78
|
+
se as isHighComplexity,
|
|
79
|
+
u as isValidTql,
|
|
80
|
+
Q as isValidTqlSyntax,
|
|
81
|
+
te as levenshteinDistance,
|
|
82
|
+
y as parseTql,
|
|
83
|
+
Ue as parseVizHintString,
|
|
84
|
+
q as rangeBoundariesProblem,
|
|
85
|
+
Z as shouldTriggerCompletion,
|
|
86
|
+
Ge as summarizeQueryPlan,
|
|
87
|
+
p as tokenizeTql,
|
|
88
|
+
L as tokenizeTqlNoWhitespace,
|
|
89
|
+
W as validateTql
|
|
83
90
|
};
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export { PALETTE, PALETTES, SEVERITY, type PaletteName, colorAt, colorArray, fillColorArray, } from './colors';
|
|
8
8
|
export { formatValue, tickFormatter, tooltipFormatter, } from './formatters';
|
|
9
|
-
export { type TqlStatsResult, type GroupedData, type DrilldownEvent, normalizeOpenSearchAggs, extractGroupedData, extractScalarValue, isTimeSeriesData, parseColorMap, applyVizFilters, expandLinkTemplate, isLinkTemplateSafe, barChartData, lineChartData, pieChartData, barChartOptions, lineChartOptions, pieChartOptions, chartJsType, buildChartData, buildChartOptions, } from './mappers';
|
|
9
|
+
export { type TqlStatsResult, type GroupedData, type DrilldownEvent, normalizeOpenSearchAggs, extractGroupedData, extractScalarValue, isTimeSeriesData, parseColorMap, applyVizFilters, expandLinkTemplate, isLinkTemplateSafe, barChartData, lineChartData, pieChartData, barChartOptions, lineChartOptions, pieChartOptions, type GeoPoint, type HeatmapCell, type TimePoint, type TimeSeriesData, groupLevels, rowMetricValue, timeLevelKey, timeSeriesData, timeSeriesOptions, timeUnitForInterval, heatmapData, heatmapOptions, mapData, mapOptions, decodeGeoCell, type BuildChartOptions, type UnsupportedChart, UNSUPPORTED_CHART_TYPES, isUnsupportedChart, chartJsType, buildChartData, buildChartOptions, } from './mappers';
|
package/dist/src/chart/index.js
CHANGED
|
@@ -1,31 +1,44 @@
|
|
|
1
|
-
import { PALETTE as
|
|
2
|
-
import { formatValue as
|
|
3
|
-
import {
|
|
1
|
+
import { PALETTE as e, PALETTES as r, SEVERITY as i, colorArray as o, colorAt as p, fillColorArray as l } from "./colors.js";
|
|
2
|
+
import { formatValue as m, tickFormatter as n, tooltipFormatter as h } from "./formatters.js";
|
|
3
|
+
import { UNSUPPORTED_CHART_TYPES as T, applyVizFilters as c, barChartData as D, barChartOptions as S, buildChartData as O, buildChartOptions as u, chartJsType as E, decodeGeoCell as d, expandLinkTemplate as A, extractGroupedData as f, extractScalarValue as x, groupLevels as L, heatmapData as y, heatmapOptions as P, isLinkTemplateSafe as V, isTimeSeriesData as b, isUnsupportedChart as F, lineChartData as U, lineChartOptions as g, mapData as k, mapOptions as v, normalizeOpenSearchAggs as R, parseColorMap as z, pieChartData as G, pieChartOptions as I, rowMetricValue as M, timeLevelKey as Y, timeSeriesData as _, timeSeriesOptions as w, timeUnitForInterval as H } from "./mappers.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
T as
|
|
9
|
-
c as
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
5
|
+
e as PALETTE,
|
|
6
|
+
r as PALETTES,
|
|
7
|
+
i as SEVERITY,
|
|
8
|
+
T as UNSUPPORTED_CHART_TYPES,
|
|
9
|
+
c as applyVizFilters,
|
|
10
|
+
D as barChartData,
|
|
11
|
+
S as barChartOptions,
|
|
12
|
+
O as buildChartData,
|
|
13
|
+
u as buildChartOptions,
|
|
14
|
+
E as chartJsType,
|
|
15
|
+
o as colorArray,
|
|
15
16
|
p as colorAt,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
d as decodeGeoCell,
|
|
18
|
+
A as expandLinkTemplate,
|
|
19
|
+
f as extractGroupedData,
|
|
20
|
+
x as extractScalarValue,
|
|
19
21
|
l as fillColorArray,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
+
m as formatValue,
|
|
23
|
+
L as groupLevels,
|
|
24
|
+
y as heatmapData,
|
|
25
|
+
P as heatmapOptions,
|
|
26
|
+
V as isLinkTemplateSafe,
|
|
22
27
|
b as isTimeSeriesData,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
F as isUnsupportedChart,
|
|
29
|
+
U as lineChartData,
|
|
30
|
+
g as lineChartOptions,
|
|
31
|
+
k as mapData,
|
|
32
|
+
v as mapOptions,
|
|
33
|
+
R as normalizeOpenSearchAggs,
|
|
34
|
+
z as parseColorMap,
|
|
35
|
+
G as pieChartData,
|
|
36
|
+
I as pieChartOptions,
|
|
37
|
+
M as rowMetricValue,
|
|
38
|
+
n as tickFormatter,
|
|
39
|
+
Y as timeLevelKey,
|
|
40
|
+
_ as timeSeriesData,
|
|
41
|
+
w as timeSeriesOptions,
|
|
42
|
+
H as timeUnitForInterval,
|
|
43
|
+
h as tooltipFormatter
|
|
31
44
|
};
|