@infinilabs/discover 0.0.11 → 0.0.13
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/{components-B5oz0qEP.js → components-Cn5JPPL6.js} +116 -106
- package/dist/{components-BNkPixQf.cjs → components-x-uBcniU.cjs} +44 -44
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{public-DjY6WiHp.cjs → public-7MmCLi8Y.cjs} +1 -1
- package/dist/{public-BaKflCPD.js → public-PTd5784r.js} +2 -2
- package/dist/{query_bar_top_row-CV0kPChU.cjs → query_bar_top_row-Cp3NlZO1.cjs} +1 -1
- package/dist/{query_bar_top_row-DeMRmbAY.js → query_bar_top_row-Cw-j7vhx.js} +2 -2
- package/dist/{query_bar_top_row-DO4GCOmg.cjs → query_bar_top_row-DOQidGGK.cjs} +1 -1
- package/dist/{query_bar_top_row-Dvzwn66c.js → query_bar_top_row-Dzppw1bf.js} +4 -4
- package/dist/{query_string_input-BXzxHlzv.js → query_string_input-BdCKA2Yw.js} +2 -2
- package/dist/{query_string_input-BaxQWru0.js → query_string_input-C72lx0zc.js} +1 -1
- package/dist/query_string_input-DdJa18EH.cjs +1 -0
- package/dist/{query_string_input-GgsObT5K.cjs → query_string_input-yaVkkN5B.cjs} +1 -1
- package/dist/{search_bar-B289tHqc.cjs → search_bar-BZyhVzgH.cjs} +1 -1
- package/dist/{search_bar-ln1L6itL.js → search_bar-CkyzOC1B.js} +4 -4
- package/package.json +1 -1
- package/dist/query_string_input-DMTiuoIc.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { o as __toESM, r as __export, t as __commonJSMin } from "./chunk-D-4zIDrl.js";
|
|
2
|
-
import { C as BehaviorSubject, E as Subscription, T as operate, _ as onRedirectNoIndexPattern, b as FilterManager, d as baseFormattersPublic, f as getTimezone, g as onUnsupportedTimePattern, h as IndexPatternsApiClient, l as generateFilters, m as SavedObjectsClientPublicToCommon, n as search, p as deserializeFieldFormat, u as createSearchBar, v as TimeHistory, w as createOperatorSubscriber, x as AutocompleteService, y as Timefilter } from "./public-
|
|
2
|
+
import { C as BehaviorSubject, E as Subscription, T as operate, _ as onRedirectNoIndexPattern, b as FilterManager, d as baseFormattersPublic, f as getTimezone, g as onUnsupportedTimePattern, h as IndexPatternsApiClient, l as generateFilters, m as SavedObjectsClientPublicToCommon, n as search, p as deserializeFieldFormat, u as createSearchBar, v as TimeHistory, w as createOperatorSubscriber, x as AutocompleteService, y as Timefilter } from "./public-PTd5784r.js";
|
|
3
3
|
import { a as createHashHistory, c as require_object_assign, d as FieldIcon, i as setIndexPatterns$1, l as require_url, o as _extends, t as getIndexPatterns, u as FieldButton } from "./services-C8UxrSbr.js";
|
|
4
4
|
import { t as require_classnames } from "./classnames-BCXlvRQ0.js";
|
|
5
5
|
import { t as require_lodash } from "./lodash-Gv_ptthU.js";
|
|
@@ -30,24 +30,29 @@ import { icon as icon$10 } from "@elastic/eui/es/components/icon/assets/plus_in_
|
|
|
30
30
|
import { icon as icon$11 } from "@elastic/eui/es/components/icon/assets/plus_in_circle_filled";
|
|
31
31
|
import { icon as icon$12 } from "@elastic/eui/es/components/icon/assets/minus_in_circle";
|
|
32
32
|
import { icon as icon$13 } from "@elastic/eui/es/components/icon/assets/editor_code_block";
|
|
33
|
-
import { icon as icon$14 } from "@elastic/eui/es/components/icon/assets/
|
|
34
|
-
import { icon as icon$15 } from "@elastic/eui/es/components/icon/assets/
|
|
35
|
-
import { icon as icon$16 } from "@elastic/eui/es/components/icon/assets/
|
|
36
|
-
import { icon as icon$17 } from "@elastic/eui/es/components/icon/assets/
|
|
37
|
-
import { icon as icon$18 } from "@elastic/eui/es/components/icon/assets/
|
|
38
|
-
import { icon as icon$19 } from "@elastic/eui/es/components/icon/assets/
|
|
39
|
-
import { icon as icon$20 } from "@elastic/eui/es/components/icon/assets/
|
|
40
|
-
import { icon as icon$21 } from "@elastic/eui/es/components/icon/assets/
|
|
41
|
-
import { icon as icon$22 } from "@elastic/eui/es/components/icon/assets/
|
|
42
|
-
import { icon as icon$23 } from "@elastic/eui/es/components/icon/assets/
|
|
43
|
-
import { icon as icon$24 } from "@elastic/eui/es/components/icon/assets/
|
|
44
|
-
import { icon as icon$25 } from "@elastic/eui/es/components/icon/assets/
|
|
45
|
-
import { icon as icon$26 } from "@elastic/eui/es/components/icon/assets/
|
|
46
|
-
import { icon as icon$27 } from "@elastic/eui/es/components/icon/assets/
|
|
47
|
-
import { icon as icon$28 } from "@elastic/eui/es/components/icon/assets/
|
|
48
|
-
import { icon as icon$29 } from "@elastic/eui/es/components/icon/assets/
|
|
49
|
-
import { icon as icon$30 } from "@elastic/eui/es/components/icon/assets/
|
|
50
|
-
import { icon as icon$31 } from "@elastic/eui/es/components/icon/assets/
|
|
33
|
+
import { icon as icon$14 } from "@elastic/eui/es/components/icon/assets/folder_open";
|
|
34
|
+
import { icon as icon$15 } from "@elastic/eui/es/components/icon/assets/question_in_circle";
|
|
35
|
+
import { icon as icon$16 } from "@elastic/eui/es/components/icon/assets/kql_field";
|
|
36
|
+
import { icon as icon$17 } from "@elastic/eui/es/components/icon/assets/kql_operand";
|
|
37
|
+
import { icon as icon$18 } from "@elastic/eui/es/components/icon/assets/kql_selector";
|
|
38
|
+
import { icon as icon$19 } from "@elastic/eui/es/components/icon/assets/kql_value";
|
|
39
|
+
import { icon as icon$20 } from "@elastic/eui/es/components/icon/assets/index_open";
|
|
40
|
+
import { icon as icon$21 } from "@elastic/eui/es/components/icon/assets/eye_closed";
|
|
41
|
+
import { icon as icon$22 } from "@elastic/eui/es/components/icon/assets/copy_clipboard";
|
|
42
|
+
import { icon as icon$23 } from "@elastic/eui/es/components/icon/assets/return_key";
|
|
43
|
+
import { icon as icon$24 } from "@elastic/eui/es/components/icon/assets/magnifyWithPlus";
|
|
44
|
+
import { icon as icon$25 } from "@elastic/eui/es/components/icon/assets/magnifyWithMinus";
|
|
45
|
+
import { icon as icon$26 } from "@elastic/eui/es/components/icon/assets/tableOfContents";
|
|
46
|
+
import { icon as icon$27 } from "@elastic/eui/es/components/icon/assets/tokenString";
|
|
47
|
+
import { icon as icon$28 } from "@elastic/eui/es/components/icon/assets/tokenNumber";
|
|
48
|
+
import { icon as icon$29 } from "@elastic/eui/es/components/icon/assets/tokenDate";
|
|
49
|
+
import { icon as icon$30 } from "@elastic/eui/es/components/icon/assets/tokenIP";
|
|
50
|
+
import { icon as icon$31 } from "@elastic/eui/es/components/icon/assets/tokenBoolean";
|
|
51
|
+
import { icon as icon$32 } from "@elastic/eui/es/components/icon/assets/tokenObject";
|
|
52
|
+
import { icon as icon$33 } from "@elastic/eui/es/components/icon/assets/tokenNested";
|
|
53
|
+
import { icon as icon$34 } from "@elastic/eui/es/components/icon/assets/tokenGEO";
|
|
54
|
+
import { icon as icon$35 } from "@elastic/eui/es/components/icon/assets/tokenHistogram";
|
|
55
|
+
import { icon as icon$36 } from "@elastic/eui/es/components/icon/assets/sortRight";
|
|
51
56
|
function filter(e, t) {
|
|
52
57
|
return operate(function(n, i) {
|
|
53
58
|
var a = 0;
|
|
@@ -483,17 +488,17 @@ function DiscoverFieldBucket({ field: e, bucket: t, onAddFilter: n }) {
|
|
|
483
488
|
}
|
|
484
489
|
function DiscoverFieldDetails({ field: e, indexPattern: t, details: n, onAddFilter: i }) {
|
|
485
490
|
let { i18n: a } = useContext(GlobalConfigContext), o = a?.field || {};
|
|
486
|
-
return /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */
|
|
491
|
+
return console.log("error", n.error), /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("div", {
|
|
487
492
|
className: "dscFieldDetails !p-12px",
|
|
488
|
-
children:
|
|
493
|
+
children: n.error?.root_cause ? /* @__PURE__ */ jsx(Typography.Text, {
|
|
489
494
|
className: "text-xs mb-12px",
|
|
490
495
|
type: "danger",
|
|
491
|
-
children: n.error
|
|
492
|
-
})
|
|
496
|
+
children: JSON.stringify(n.error?.root_cause)
|
|
497
|
+
}) : Number.isInteger(n.total) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [n?.buckets?.map((t, n) => /* @__PURE__ */ jsx(DiscoverFieldBucket, {
|
|
493
498
|
bucket: t,
|
|
494
499
|
field: e,
|
|
495
500
|
onAddFilter: i
|
|
496
|
-
}, `bucket${n}`)), /* @__PURE__ */ jsx(Typography.Text, { children: `${o.top_result_prefix || "Calculated from"} ${n.total} ${o.top_result_suffix || "sample records"}` })] })
|
|
501
|
+
}, `bucket${n}`)), /* @__PURE__ */ jsx(Typography.Text, { children: `${o.top_result_prefix || "Calculated from"} ${n.total} ${o.top_result_suffix || "sample records"}` })] }) : /* @__PURE__ */ jsx(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE })
|
|
497
502
|
}) });
|
|
498
503
|
}
|
|
499
504
|
var DOT_PREFIX_RE = /(.).+?\./g;
|
|
@@ -584,7 +589,7 @@ function DiscoverField({ field: e, indexPattern: t, onAddField: n, onRemoveField
|
|
|
584
589
|
});
|
|
585
590
|
} else m(n, () => {
|
|
586
591
|
M(!0);
|
|
587
|
-
}, (e, i) => {
|
|
592
|
+
}, (e, i, a) => {
|
|
588
593
|
O({
|
|
589
594
|
...E,
|
|
590
595
|
buckets: (e || []).map((e) => ({
|
|
@@ -593,9 +598,9 @@ function DiscoverField({ field: e, indexPattern: t, onAddField: n, onRemoveField
|
|
|
593
598
|
count: e.doc_count,
|
|
594
599
|
percent: (e.doc_count / i * 100).toFixed(1)
|
|
595
600
|
})),
|
|
596
|
-
exists: (e || []).map((e) => e.doc_count).reduce((e, t) => e + t),
|
|
601
|
+
exists: (e || []).map((e) => e.doc_count).reduce((e, t) => e + t, 0),
|
|
597
602
|
total: i,
|
|
598
|
-
|
|
603
|
+
error: a
|
|
599
604
|
}), M(!1);
|
|
600
605
|
});
|
|
601
606
|
};
|
|
@@ -1263,40 +1268,40 @@ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
|
1263
1268
|
function Z(e) {
|
|
1264
1269
|
return A(e) === m;
|
|
1265
1270
|
}
|
|
1266
|
-
function
|
|
1271
|
+
function GZ(e) {
|
|
1267
1272
|
return A(e) === f;
|
|
1268
1273
|
}
|
|
1269
|
-
function
|
|
1274
|
+
function KZ(e) {
|
|
1270
1275
|
return A(e) === u;
|
|
1271
1276
|
}
|
|
1272
|
-
function
|
|
1277
|
+
function qZ(e) {
|
|
1273
1278
|
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
1274
1279
|
}
|
|
1275
|
-
function
|
|
1280
|
+
function JZ(e) {
|
|
1276
1281
|
return A(e) === g;
|
|
1277
1282
|
}
|
|
1278
|
-
function
|
|
1283
|
+
function YZ(e) {
|
|
1279
1284
|
return A(e) === a;
|
|
1280
1285
|
}
|
|
1281
|
-
function
|
|
1286
|
+
function XZ(e) {
|
|
1282
1287
|
return A(e) === S;
|
|
1283
1288
|
}
|
|
1284
|
-
function
|
|
1289
|
+
function ZZ(e) {
|
|
1285
1290
|
return A(e) === x;
|
|
1286
1291
|
}
|
|
1287
|
-
function
|
|
1292
|
+
function QZ(e) {
|
|
1288
1293
|
return A(e) === i;
|
|
1289
1294
|
}
|
|
1290
1295
|
function Q(e) {
|
|
1291
1296
|
return A(e) === s;
|
|
1292
1297
|
}
|
|
1293
|
-
function
|
|
1298
|
+
function $Z(e) {
|
|
1294
1299
|
return A(e) === o;
|
|
1295
1300
|
}
|
|
1296
|
-
function
|
|
1301
|
+
function eQ(e) {
|
|
1297
1302
|
return A(e) === y;
|
|
1298
1303
|
}
|
|
1299
|
-
e.AsyncMode = M, e.ConcurrentMode = N, e.ContextConsumer = P, e.ContextProvider = F, e.Element = I, e.ForwardRef = L, e.Fragment = R, e.Lazy = z, e.Memo = B, e.Portal = V, e.Profiler = U, e.StrictMode = W, e.Suspense = G, e.isAsyncMode = J, e.isConcurrentMode = Z, e.isContextConsumer =
|
|
1304
|
+
e.AsyncMode = M, e.ConcurrentMode = N, e.ContextConsumer = P, e.ContextProvider = F, e.Element = I, e.ForwardRef = L, e.Fragment = R, e.Lazy = z, e.Memo = B, e.Portal = V, e.Profiler = U, e.StrictMode = W, e.Suspense = G, e.isAsyncMode = J, e.isConcurrentMode = Z, e.isContextConsumer = GZ, e.isContextProvider = KZ, e.isElement = qZ, e.isForwardRef = JZ, e.isFragment = YZ, e.isLazy = XZ, e.isMemo = ZZ, e.isPortal = QZ, e.isProfiler = Q, e.isStrictMode = $Z, e.isSuspense = eQ, e.isValidElementType = O, e.typeOf = A;
|
|
1300
1305
|
})();
|
|
1301
1306
|
})), require_react_is = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
1302
1307
|
process.env.NODE_ENV === "production" ? t.exports = require_react_is_production_min() : t.exports = require_react_is_development();
|
|
@@ -3084,25 +3089,25 @@ function highlight_default(e, t) {
|
|
|
3084
3089
|
numberStyle: A,
|
|
3085
3090
|
startingLineNumber: T,
|
|
3086
3091
|
codeString: W
|
|
3087
|
-
}) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" },
|
|
3088
|
-
className: K.className ? `${
|
|
3092
|
+
}) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, GZ = isHighlightJs(G) ? "hljs" : "prismjs", KZ = y ? Object.assign({}, K, { style: Object.assign({}, Z, f) }) : Object.assign({}, K, {
|
|
3093
|
+
className: K.className ? `${GZ} ${K.className}` : GZ,
|
|
3089
3094
|
style: Object.assign({}, f)
|
|
3090
3095
|
});
|
|
3091
|
-
if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z,
|
|
3096
|
+
if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z, KZ, J, /* @__PURE__ */ React.createElement(V, m, W));
|
|
3092
3097
|
(M === void 0 && L || P) && (M = !0), L ||= defaultRenderer;
|
|
3093
|
-
var
|
|
3098
|
+
var qZ = [{
|
|
3094
3099
|
type: "text",
|
|
3095
3100
|
value: W
|
|
3096
|
-
}],
|
|
3101
|
+
}], JZ = getCodeTree({
|
|
3097
3102
|
astGenerator: G,
|
|
3098
3103
|
language: i,
|
|
3099
3104
|
code: W,
|
|
3100
|
-
defaultCodeValue:
|
|
3105
|
+
defaultCodeValue: qZ
|
|
3101
3106
|
});
|
|
3102
|
-
|
|
3103
|
-
var
|
|
3104
|
-
return /* @__PURE__ */ React.createElement(z,
|
|
3105
|
-
rows:
|
|
3107
|
+
JZ.language === null && (JZ.value = qZ);
|
|
3108
|
+
var YZ = T + (W.match(/\n/g)?.length ?? 0), XZ = processLines(JZ, M, I, x, C, T, YZ, A, P);
|
|
3109
|
+
return /* @__PURE__ */ React.createElement(z, KZ, /* @__PURE__ */ React.createElement(V, m, !C && J, L({
|
|
3110
|
+
rows: XZ,
|
|
3106
3111
|
stylesheet: s,
|
|
3107
3112
|
useInlineStyles: y
|
|
3108
3113
|
})));
|
|
@@ -11413,8 +11418,8 @@ function ichigojam(e) {
|
|
|
11413
11418
|
punctuation: /[\[,;:()\]]/
|
|
11414
11419
|
};
|
|
11415
11420
|
}
|
|
11416
|
-
icon$
|
|
11417
|
-
function icon$
|
|
11421
|
+
icon$37.displayName = "icon", icon$37.aliases = [];
|
|
11422
|
+
function icon$37(e) {
|
|
11418
11423
|
e.languages.icon = {
|
|
11419
11424
|
comment: /#.*/,
|
|
11420
11425
|
string: {
|
|
@@ -19893,7 +19898,7 @@ function zig(e) {
|
|
|
19893
19898
|
});
|
|
19894
19899
|
})(e);
|
|
19895
19900
|
}
|
|
19896
|
-
refractor.register(markup), refractor.register(css), refractor.register(clike), refractor.register(regex), refractor.register(javascript), refractor.register(abap), refractor.register(abnf), refractor.register(actionscript), refractor.register(ada), refractor.register(agda), refractor.register(al), refractor.register(antlr4), refractor.register(apacheconf), refractor.register(sql), refractor.register(apex), refractor.register(apl), refractor.register(applescript), refractor.register(aql), refractor.register(c), refractor.register(cpp), refractor.register(arduino), refractor.register(arff), refractor.register(armasm), refractor.register(bash), refractor.register(yaml), refractor.register(markdown), refractor.register(arturo), refractor.register(asciidoc), refractor.register(csharp), refractor.register(aspnet), refractor.register(asm6502), refractor.register(asmatmel), refractor.register(autohotkey), refractor.register(autoit), refractor.register(avisynth), refractor.register(avroIdl), refractor.register(awk), refractor.register(basic), refractor.register(batch), refractor.register(bbcode), refractor.register(bbj), refractor.register(bicep), refractor.register(birb), refractor.register(bison), refractor.register(bnf), refractor.register(bqn), refractor.register(brainfuck), refractor.register(brightscript), refractor.register(bro), refractor.register(bsl), refractor.register(cfscript), refractor.register(chaiscript), refractor.register(cil), refractor.register(cilkc), refractor.register(cilkcpp), refractor.register(clojure), refractor.register(cmake), refractor.register(cobol), refractor.register(coffeescript), refractor.register(concurnas), refractor.register(csp), refractor.register(cooklang), refractor.register(coq), refractor.register(ruby), refractor.register(crystal), refractor.register(cssExtras), refractor.register(csv), refractor.register(cue), refractor.register(cypher), refractor.register(d), refractor.register(dart), refractor.register(dataweave), refractor.register(dax), refractor.register(dhall), refractor.register(diff), refractor.register(markupTemplating), refractor.register(django), refractor.register(dnsZoneFile), refractor.register(docker), refractor.register(dot), refractor.register(ebnf), refractor.register(editorconfig), refractor.register(eiffel), refractor.register(ejs), refractor.register(elixir), refractor.register(elm), refractor.register(lua), refractor.register(etlua), refractor.register(erb), refractor.register(erlang), refractor.register(excelFormula), refractor.register(fsharp), refractor.register(factor), refractor.register($false), refractor.register(firestoreSecurityRules), refractor.register(flow), refractor.register(fortran), refractor.register(ftl), refractor.register(gml), refractor.register(gap), refractor.register(gcode), refractor.register(gdscript), refractor.register(gedcom), refractor.register(gettext), refractor.register(gherkin), refractor.register(git), refractor.register(glsl), refractor.register(gn), refractor.register(linkerScript), refractor.register(go), refractor.register(goModule), refractor.register(gradle), refractor.register(graphql), refractor.register(groovy), refractor.register(less), refractor.register(scss), refractor.register(textile), refractor.register(haml), refractor.register(handlebars), refractor.register(haskell), refractor.register(haxe), refractor.register(hcl), refractor.register(hlsl), refractor.register(hoon), refractor.register(hpkp), refractor.register(hsts), refractor.register(json), refractor.register(uri), refractor.register(http), refractor.register(ichigojam), refractor.register(icon$
|
|
19901
|
+
refractor.register(markup), refractor.register(css), refractor.register(clike), refractor.register(regex), refractor.register(javascript), refractor.register(abap), refractor.register(abnf), refractor.register(actionscript), refractor.register(ada), refractor.register(agda), refractor.register(al), refractor.register(antlr4), refractor.register(apacheconf), refractor.register(sql), refractor.register(apex), refractor.register(apl), refractor.register(applescript), refractor.register(aql), refractor.register(c), refractor.register(cpp), refractor.register(arduino), refractor.register(arff), refractor.register(armasm), refractor.register(bash), refractor.register(yaml), refractor.register(markdown), refractor.register(arturo), refractor.register(asciidoc), refractor.register(csharp), refractor.register(aspnet), refractor.register(asm6502), refractor.register(asmatmel), refractor.register(autohotkey), refractor.register(autoit), refractor.register(avisynth), refractor.register(avroIdl), refractor.register(awk), refractor.register(basic), refractor.register(batch), refractor.register(bbcode), refractor.register(bbj), refractor.register(bicep), refractor.register(birb), refractor.register(bison), refractor.register(bnf), refractor.register(bqn), refractor.register(brainfuck), refractor.register(brightscript), refractor.register(bro), refractor.register(bsl), refractor.register(cfscript), refractor.register(chaiscript), refractor.register(cil), refractor.register(cilkc), refractor.register(cilkcpp), refractor.register(clojure), refractor.register(cmake), refractor.register(cobol), refractor.register(coffeescript), refractor.register(concurnas), refractor.register(csp), refractor.register(cooklang), refractor.register(coq), refractor.register(ruby), refractor.register(crystal), refractor.register(cssExtras), refractor.register(csv), refractor.register(cue), refractor.register(cypher), refractor.register(d), refractor.register(dart), refractor.register(dataweave), refractor.register(dax), refractor.register(dhall), refractor.register(diff), refractor.register(markupTemplating), refractor.register(django), refractor.register(dnsZoneFile), refractor.register(docker), refractor.register(dot), refractor.register(ebnf), refractor.register(editorconfig), refractor.register(eiffel), refractor.register(ejs), refractor.register(elixir), refractor.register(elm), refractor.register(lua), refractor.register(etlua), refractor.register(erb), refractor.register(erlang), refractor.register(excelFormula), refractor.register(fsharp), refractor.register(factor), refractor.register($false), refractor.register(firestoreSecurityRules), refractor.register(flow), refractor.register(fortran), refractor.register(ftl), refractor.register(gml), refractor.register(gap), refractor.register(gcode), refractor.register(gdscript), refractor.register(gedcom), refractor.register(gettext), refractor.register(gherkin), refractor.register(git), refractor.register(glsl), refractor.register(gn), refractor.register(linkerScript), refractor.register(go), refractor.register(goModule), refractor.register(gradle), refractor.register(graphql), refractor.register(groovy), refractor.register(less), refractor.register(scss), refractor.register(textile), refractor.register(haml), refractor.register(handlebars), refractor.register(haskell), refractor.register(haxe), refractor.register(hcl), refractor.register(hlsl), refractor.register(hoon), refractor.register(hpkp), refractor.register(hsts), refractor.register(json), refractor.register(uri), refractor.register(http), refractor.register(ichigojam), refractor.register(icon$37), refractor.register(icuMessageFormat), refractor.register(idris), refractor.register(ignore), refractor.register(inform7), refractor.register(ini), refractor.register(io), refractor.register(j), refractor.register(java), refractor.register(php), refractor.register(javadoclike), refractor.register(scala), refractor.register(javadoc), refractor.register(javastacktrace), refractor.register(jexl), refractor.register(jolie), refractor.register(jq), refractor.register(jsTemplates), refractor.register(typescript), refractor.register(jsdoc), refractor.register(n4js), refractor.register(jsExtras), refractor.register(json5), refractor.register(jsonp), refractor.register(jsstacktrace), refractor.register(julia), refractor.register(keepalived), refractor.register(keyman), refractor.register(kotlin), refractor.register(kumir), refractor.register(kusto), refractor.register(latex), refractor.register(latte), refractor.register(scheme), refractor.register(lilypond), refractor.register(liquid), refractor.register(lisp), refractor.register(livescript), refractor.register(llvm), refractor.register(log), refractor.register(lolcode), refractor.register(magma), refractor.register(makefile), refractor.register(mata), refractor.register(matlab), refractor.register(maxscript), refractor.register(mel), refractor.register(mermaid), refractor.register(metafont), refractor.register(mizar), refractor.register(mongodb), refractor.register(monkey), refractor.register(moonscript), refractor.register(n1ql), refractor.register(nand2tetrisHdl), refractor.register(naniscript), refractor.register(nasm), refractor.register(neon), refractor.register(nevod), refractor.register(nginx), refractor.register(nim), refractor.register(nix), refractor.register(nsis), refractor.register(objectivec), refractor.register(ocaml), refractor.register(odin), refractor.register(opencl), refractor.register(openqasm), refractor.register(oz), refractor.register(parigp), refractor.register(parser), refractor.register(pascal), refractor.register(pascaligo), refractor.register(psl), refractor.register(pcaxis), refractor.register(peoplecode), refractor.register(perl), refractor.register(phpdoc), refractor.register(phpExtras), refractor.register(plantUml), refractor.register(plsql), refractor.register(powerquery), refractor.register(powershell), refractor.register(processing), refractor.register(prolog), refractor.register(promql), refractor.register(properties), refractor.register(protobuf), refractor.register(stylus), refractor.register(twig), refractor.register(pug), refractor.register(puppet), refractor.register(pure), refractor.register(purebasic), refractor.register(purescript), refractor.register(python), refractor.register(qsharp), refractor.register(q), refractor.register(qml), refractor.register(qore), refractor.register(r), refractor.register(racket), refractor.register(cshtml), refractor.register(jsx$1), refractor.register(tsx), refractor.register(reason), refractor.register(rego), refractor.register(renpy), refractor.register(rescript), refractor.register(rest), refractor.register(rip), refractor.register(roboconf), refractor.register(robotframework), refractor.register(rust), refractor.register(sas), refractor.register(sass), refractor.register(shellSession), refractor.register(smali), refractor.register(smalltalk), refractor.register(smarty), refractor.register(sml), refractor.register(solidity), refractor.register(solutionFile), refractor.register(soy), refractor.register(turtle), refractor.register(sparql), refractor.register(splunkSpl), refractor.register(sqf), refractor.register(squirrel), refractor.register(stan), refractor.register(stata), refractor.register(iecst), refractor.register(supercollider), refractor.register(swift), refractor.register(systemd), refractor.register(t4Templating), refractor.register(t4Cs), refractor.register(vbnet), refractor.register(t4Vb), refractor.register(tap), refractor.register(tcl), refractor.register(tt2), refractor.register(toml), refractor.register(tremor), refractor.register(typoscript), refractor.register(unrealscript), refractor.register(uorazor), refractor.register(v$1), refractor.register(vala), refractor.register(velocity), refractor.register(verilog), refractor.register(vhdl), refractor.register(vim), refractor.register(visualBasic), refractor.register(warpscript), refractor.register(wasm), refractor.register(webIdl), refractor.register(wgsl), refractor.register(wiki), refractor.register(wolfram), refractor.register(wren), refractor.register(xeora), refractor.register(xmlDoc), refractor.register(xojo), refractor.register(xquery), refractor.register(yang), refractor.register(zig);
|
|
19897
19902
|
var highlighter = highlight_default(refractor, prism_default$1);
|
|
19898
19903
|
highlighter.supportedLanguages = supported_languages_default;
|
|
19899
19904
|
var prism_default = highlighter, one_dark_default = {
|
|
@@ -51505,28 +51510,33 @@ appendIconComponentCache({
|
|
|
51505
51510
|
arrowRight: icon$7,
|
|
51506
51511
|
sortDown: icon$8,
|
|
51507
51512
|
sortUp: icon$9,
|
|
51508
|
-
sortRight: icon$
|
|
51513
|
+
sortRight: icon$36,
|
|
51509
51514
|
plusInCircle: icon$10,
|
|
51510
51515
|
plusInCircleFilled: icon$11,
|
|
51511
51516
|
minusInCircle: icon$12,
|
|
51512
51517
|
editorCodeBlock: icon$13,
|
|
51513
|
-
|
|
51514
|
-
|
|
51515
|
-
|
|
51516
|
-
|
|
51517
|
-
|
|
51518
|
-
|
|
51519
|
-
|
|
51520
|
-
|
|
51521
|
-
|
|
51522
|
-
|
|
51523
|
-
|
|
51524
|
-
|
|
51525
|
-
|
|
51526
|
-
|
|
51527
|
-
|
|
51528
|
-
|
|
51529
|
-
|
|
51518
|
+
folderOpen: icon$14,
|
|
51519
|
+
questionInCircle: icon$15,
|
|
51520
|
+
kqlField: icon$16,
|
|
51521
|
+
kqlOperand: icon$17,
|
|
51522
|
+
kqlSelector: icon$18,
|
|
51523
|
+
kqlValue: icon$19,
|
|
51524
|
+
indexOpen: icon$20,
|
|
51525
|
+
eyeClosed: icon$21,
|
|
51526
|
+
copyClipboard: icon$22,
|
|
51527
|
+
returnKey: icon$23,
|
|
51528
|
+
magnifyWithPlus: icon$24,
|
|
51529
|
+
magnifyWithMinus: icon$25,
|
|
51530
|
+
tableOfContents: icon$26,
|
|
51531
|
+
tokenString: icon$27,
|
|
51532
|
+
tokenNumber: icon$28,
|
|
51533
|
+
tokenBoolean: icon$31,
|
|
51534
|
+
tokenDate: icon$29,
|
|
51535
|
+
tokenIP: icon$30,
|
|
51536
|
+
tokenGeo: icon$34,
|
|
51537
|
+
tokenObject: icon$32,
|
|
51538
|
+
tokenNested: icon$33,
|
|
51539
|
+
tokenHistogram: icon$35
|
|
51530
51540
|
}), init_moment();
|
|
51531
51541
|
var import_lodash = require_lodash();
|
|
51532
51542
|
loader.config({ monaco: editor_main_exports });
|
|
@@ -51719,40 +51729,40 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51719
51729
|
columns: O.columns
|
|
51720
51730
|
}));
|
|
51721
51731
|
}, [O.columns]);
|
|
51722
|
-
let { onAddColumn: Z, onRemoveColumn:
|
|
51732
|
+
let { onAddColumn: Z, onRemoveColumn: KZ, onMoveColumn: qZ, onSetColumns: JZ } = useMemo(() => getStateColumnActions({
|
|
51723
51733
|
indexPattern: t,
|
|
51724
51734
|
setAppState: A,
|
|
51725
51735
|
state: O,
|
|
51726
51736
|
useNewFieldsApi: !1
|
|
51727
|
-
}), [t, O]),
|
|
51737
|
+
}), [t, O]), YZ = useCallback((e) => {
|
|
51728
51738
|
A({
|
|
51729
51739
|
...O,
|
|
51730
51740
|
sort: e
|
|
51731
51741
|
}), B({ sort: e.reverse() });
|
|
51732
|
-
}, [O, t]),
|
|
51742
|
+
}, [O, t]), XZ = useCallback((e, n, i) => {
|
|
51733
51743
|
typeof e == "string" || e.name;
|
|
51734
51744
|
let a = generateFilters(filterManager, e, n, i, String(t.id));
|
|
51735
51745
|
filterManager.addFilters(a), B();
|
|
51736
|
-
}, [t, B]),
|
|
51746
|
+
}, [t, B]), ZZ = useCallback((e) => {
|
|
51737
51747
|
timefilter.setTime({
|
|
51738
51748
|
from: moment_default(e.from).toISOString(),
|
|
51739
51749
|
to: moment_default(e.to).toISOString(),
|
|
51740
51750
|
mode: "absolute"
|
|
51741
51751
|
}), B();
|
|
51742
|
-
}, [timefilter]),
|
|
51752
|
+
}, [timefilter]), QZ = w.hits.hits || [], [Q, $Z] = useState([]);
|
|
51743
51753
|
useMemo(() => {
|
|
51744
|
-
|
|
51745
|
-
}, [
|
|
51746
|
-
let
|
|
51754
|
+
QZ.length > 0 ? $Z(L > 0 ? (e) => [...e, ...QZ] : QZ) : L === 0 && $Z([]);
|
|
51755
|
+
}, [QZ]);
|
|
51756
|
+
let eQ = {
|
|
51747
51757
|
savedSearch: {},
|
|
51748
51758
|
timefield: t?.getTimeField()?.displayName,
|
|
51749
51759
|
chartAggConfigs: {}
|
|
51750
|
-
},
|
|
51751
|
-
for (let e of Q) for (let n of Object.keys(t.flattenHit(e, !0)))
|
|
51752
|
-
let
|
|
51753
|
-
saveDocument:
|
|
51754
|
-
deleteDocument:
|
|
51755
|
-
}), [
|
|
51760
|
+
}, tQ = {};
|
|
51761
|
+
for (let e of Q) for (let n of Object.keys(t.flattenHit(e, !0))) tQ[n] = (tQ[n] || 0) + 1;
|
|
51762
|
+
let nQ = Number.isInteger(w.hits.total?.value) ? w.hits.total?.value : 0, rQ = t?.timeFieldName != "", iQ = useCallback(async ({ _index: e, _id: t, _type: n, _source: i, is_new: a }) => !1, [B]), aQ = useCallback(async ({ _index: e, _id: t, _type: n }) => !1, [B]), oQ = useMemo(() => ({
|
|
51763
|
+
saveDocument: iQ,
|
|
51764
|
+
deleteDocument: aQ
|
|
51765
|
+
}), [iQ, aQ]), sQ = async (e, n, i) => {
|
|
51756
51766
|
let a = e?.spec?.name || e?.name;
|
|
51757
51767
|
if (!a || !o) return;
|
|
51758
51768
|
if (e.isMulti) a = `${a}.keyword`;
|
|
@@ -51786,9 +51796,9 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51786
51796
|
let { index: m, body: g } = f, y = await o(m, g);
|
|
51787
51797
|
if (i) {
|
|
51788
51798
|
let e = s.sampleRecords === "all" ? y?.aggregations?.top5?.buckets : y?.aggregations?.sample?.top5?.buckets, t = s.sampleRecords === "all" ? y?.aggregations?.top5?.sum_other_doc_count : y?.aggregations?.sample?.sample_count?.value;
|
|
51789
|
-
i(e || [], t || 0);
|
|
51799
|
+
i(e || [], t || 0, y?.error);
|
|
51790
51800
|
}
|
|
51791
|
-
},
|
|
51801
|
+
}, cQ = async (e) => {
|
|
51792
51802
|
I.unsubscribe(), t.timeFieldName = e, n(t);
|
|
51793
51803
|
let i = [[e, "desc"]];
|
|
51794
51804
|
A({
|
|
@@ -51796,7 +51806,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51796
51806
|
columns: ["_source"],
|
|
51797
51807
|
sort: i
|
|
51798
51808
|
}), B({ sort: i });
|
|
51799
|
-
},
|
|
51809
|
+
}, lQ = async (e, n, i) => {
|
|
51800
51810
|
if (!o) return;
|
|
51801
51811
|
G("downloading");
|
|
51802
51812
|
let { index: a, body: s } = getSearchParams(t, O.interval, O.sort, null, N || {}, e, !1, n), u = await o(a, s), f = Array.isArray(u?.hits?.hits) ? u?.hits?.hits : [], p = t.timeFieldName;
|
|
@@ -51809,7 +51819,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51809
51819
|
showSearchBar: !1,
|
|
51810
51820
|
showQueryBar: !0,
|
|
51811
51821
|
showQueryInput: !0,
|
|
51812
|
-
showDatePicker:
|
|
51822
|
+
showDatePicker: rQ,
|
|
51813
51823
|
showFilterBar: !0,
|
|
51814
51824
|
useDefaultBehaviors: !0,
|
|
51815
51825
|
screenTitle: "",
|
|
@@ -51836,8 +51846,8 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51836
51846
|
},
|
|
51837
51847
|
indices: e.indices,
|
|
51838
51848
|
histogramData: K,
|
|
51839
|
-
timefilterUpdateHandler:
|
|
51840
|
-
histogramOpts:
|
|
51849
|
+
timefilterUpdateHandler: ZZ,
|
|
51850
|
+
histogramOpts: eQ,
|
|
51841
51851
|
timeSetting: {
|
|
51842
51852
|
...J || {},
|
|
51843
51853
|
showTimeSetting: !0,
|
|
@@ -51851,7 +51861,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51851
51861
|
value: t
|
|
51852
51862
|
})),
|
|
51853
51863
|
onTimeSettingChange: ({ timeField: e, timeInterval: n }) => {
|
|
51854
|
-
t.timeFieldName !== e &&
|
|
51864
|
+
t.timeFieldName !== e && cQ(e), J?.stateInterval !== n && V(n);
|
|
51855
51865
|
},
|
|
51856
51866
|
timeZone: S,
|
|
51857
51867
|
onTimeZoneChange: C,
|
|
@@ -51864,7 +51874,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51864
51874
|
children: /* @__PURE__ */ jsx("div", {
|
|
51865
51875
|
className: "absolute inset-0 flex border-t border-t-solid border-[var(--ant-color-border)]",
|
|
51866
51876
|
children: U === "none" && L === 0 ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(DiscoverNoResults, {
|
|
51867
|
-
timeFieldName:
|
|
51877
|
+
timeFieldName: eQ.timefield,
|
|
51868
51878
|
queryLanguage: O.query?.language || "",
|
|
51869
51879
|
range: s.range
|
|
51870
51880
|
}) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [!b.sideBar && /* @__PURE__ */ jsx("div", {
|
|
@@ -51872,20 +51882,20 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51872
51882
|
children: /* @__PURE__ */ jsx(SidebarMemoized, {
|
|
51873
51883
|
config: {},
|
|
51874
51884
|
columns: z,
|
|
51875
|
-
fieldCounts:
|
|
51885
|
+
fieldCounts: tQ,
|
|
51876
51886
|
hits: Q,
|
|
51877
51887
|
indexPatterns: [t],
|
|
51878
51888
|
onAddField: Z,
|
|
51879
|
-
onAddFilter:
|
|
51880
|
-
onRemoveField:
|
|
51889
|
+
onAddFilter: XZ,
|
|
51890
|
+
onRemoveField: KZ,
|
|
51881
51891
|
selectedIndexPattern: t,
|
|
51882
51892
|
setIndexPattern: () => {},
|
|
51883
51893
|
setAppState: A,
|
|
51884
51894
|
state: O,
|
|
51885
51895
|
distinctParams: N,
|
|
51886
51896
|
onDistinctParamsChange: F,
|
|
51887
|
-
total:
|
|
51888
|
-
onFieldAgg:
|
|
51897
|
+
total: nQ,
|
|
51898
|
+
onFieldAgg: sQ,
|
|
51889
51899
|
whetherToSample: s.whetherToSample,
|
|
51890
51900
|
sampleSize: s.sampleSize,
|
|
51891
51901
|
topNumber: s.topNumber,
|
|
@@ -51914,19 +51924,19 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51914
51924
|
collapseState: b,
|
|
51915
51925
|
setCollapseState: x,
|
|
51916
51926
|
took: w.took || 1,
|
|
51917
|
-
total:
|
|
51927
|
+
total: nQ,
|
|
51918
51928
|
timeChartProps: J,
|
|
51919
|
-
onDownloadQuery:
|
|
51929
|
+
onDownloadQuery: lQ,
|
|
51920
51930
|
downloading: U === "downloading",
|
|
51921
51931
|
exportMaxSize: g
|
|
51922
51932
|
}),
|
|
51923
|
-
!b.histogram &&
|
|
51933
|
+
!b.histogram && eQ.chartAggConfigs && K && Q.length !== 0 && /* @__PURE__ */ jsx("div", {
|
|
51924
51934
|
className: "dscTimechart",
|
|
51925
51935
|
children: /* @__PURE__ */ jsx("div", {
|
|
51926
51936
|
className: "h-100px dscHistogramGrid",
|
|
51927
51937
|
children: /* @__PURE__ */ jsx(DiscoverHistogram, {
|
|
51928
51938
|
chartData: K,
|
|
51929
|
-
timefilterUpdateHandler:
|
|
51939
|
+
timefilterUpdateHandler: ZZ,
|
|
51930
51940
|
theme: m
|
|
51931
51941
|
})
|
|
51932
51942
|
})
|
|
@@ -51935,14 +51945,14 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51935
51945
|
columns: z,
|
|
51936
51946
|
sortOrder: O.sort || [],
|
|
51937
51947
|
indexPattern: t,
|
|
51938
|
-
onFilter:
|
|
51939
|
-
onRemoveColumn:
|
|
51940
|
-
onMoveColumn:
|
|
51948
|
+
onFilter: XZ,
|
|
51949
|
+
onRemoveColumn: KZ,
|
|
51950
|
+
onMoveColumn: qZ,
|
|
51941
51951
|
onAddColumn: Z,
|
|
51942
|
-
onChangeSortOrder:
|
|
51943
|
-
document:
|
|
51952
|
+
onChangeSortOrder: YZ,
|
|
51953
|
+
document: oQ,
|
|
51944
51954
|
hits: Q,
|
|
51945
|
-
hitsTotal:
|
|
51955
|
+
hitsTotal: nQ,
|
|
51946
51956
|
queryFrom: L,
|
|
51947
51957
|
setQueryFrom: (e) => {
|
|
51948
51958
|
G("next"), R(e);
|