@infinilabs/discover 0.0.13 → 0.0.15
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-Cn5JPPL6.js → components-BvTvr50W.js} +69 -65
- package/dist/{components-x-uBcniU.cjs → components-C2kI9k-2.cjs} +44 -44
- package/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{public-7MmCLi8Y.cjs → public-BYN6Z58X.cjs} +1 -1
- package/dist/{public-PTd5784r.js → public-Bt8l4NcG.js} +2 -2
- package/dist/{query_bar_top_row-Dzppw1bf.js → query_bar_top_row-BwddkNP6.js} +4 -4
- package/dist/{query_bar_top_row-DOQidGGK.cjs → query_bar_top_row-C39a7RtT.cjs} +1 -1
- package/dist/{query_bar_top_row-Cp3NlZO1.cjs → query_bar_top_row-DWMv__Og.cjs} +1 -1
- package/dist/{query_bar_top_row-Cw-j7vhx.js → query_bar_top_row-DX0pHXPN.js} +2 -2
- package/dist/{query_string_input-yaVkkN5B.cjs → query_string_input-CARQeoRH.cjs} +1 -1
- package/dist/query_string_input-D7twKLvu.cjs +1 -0
- package/dist/{query_string_input-BdCKA2Yw.js → query_string_input-faUHLy06.js} +2 -2
- package/dist/{query_string_input-C72lx0zc.js → query_string_input-uPL0EQsF.js} +1 -1
- package/dist/{search_bar-CkyzOC1B.js → search_bar-C0TsIi1W.js} +4 -4
- package/dist/{search_bar-BZyhVzgH.cjs → search_bar-o9IVn8eN.cjs} +1 -1
- package/package.json +1 -1
- package/dist/query_string_input-DdJa18EH.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-Bt8l4NcG.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";
|
|
@@ -50,9 +50,11 @@ import { icon as icon$30 } from "@elastic/eui/es/components/icon/assets/tokenIP"
|
|
|
50
50
|
import { icon as icon$31 } from "@elastic/eui/es/components/icon/assets/tokenBoolean";
|
|
51
51
|
import { icon as icon$32 } from "@elastic/eui/es/components/icon/assets/tokenObject";
|
|
52
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/
|
|
53
|
+
import { icon as icon$34 } from "@elastic/eui/es/components/icon/assets/tokenGeo";
|
|
54
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/
|
|
55
|
+
import { icon as icon$36 } from "@elastic/eui/es/components/icon/assets/tokenFile";
|
|
56
|
+
import { icon as icon$37 } from "@elastic/eui/es/components/icon/assets/sortRight";
|
|
57
|
+
import { icon as icon$38 } from "@elastic/eui/es/components/icon/assets/alert";
|
|
56
58
|
function filter(e, t) {
|
|
57
59
|
return operate(function(n, i) {
|
|
58
60
|
var a = 0;
|
|
@@ -1268,40 +1270,40 @@ var require_react_is_production_min = /* @__PURE__ */ __commonJSMin(((e) => {
|
|
|
1268
1270
|
function Z(e) {
|
|
1269
1271
|
return A(e) === m;
|
|
1270
1272
|
}
|
|
1271
|
-
function
|
|
1273
|
+
function qZ(e) {
|
|
1272
1274
|
return A(e) === f;
|
|
1273
1275
|
}
|
|
1274
|
-
function
|
|
1276
|
+
function JZ(e) {
|
|
1275
1277
|
return A(e) === u;
|
|
1276
1278
|
}
|
|
1277
|
-
function
|
|
1279
|
+
function YZ(e) {
|
|
1278
1280
|
return typeof e == "object" && !!e && e.$$typeof === n;
|
|
1279
1281
|
}
|
|
1280
|
-
function
|
|
1282
|
+
function XZ(e) {
|
|
1281
1283
|
return A(e) === g;
|
|
1282
1284
|
}
|
|
1283
|
-
function
|
|
1285
|
+
function ZZ(e) {
|
|
1284
1286
|
return A(e) === a;
|
|
1285
1287
|
}
|
|
1286
|
-
function
|
|
1288
|
+
function QZ(e) {
|
|
1287
1289
|
return A(e) === S;
|
|
1288
1290
|
}
|
|
1289
|
-
function
|
|
1291
|
+
function $Z(e) {
|
|
1290
1292
|
return A(e) === x;
|
|
1291
1293
|
}
|
|
1292
|
-
function
|
|
1294
|
+
function eQ(e) {
|
|
1293
1295
|
return A(e) === i;
|
|
1294
1296
|
}
|
|
1295
1297
|
function Q(e) {
|
|
1296
1298
|
return A(e) === s;
|
|
1297
1299
|
}
|
|
1298
|
-
function
|
|
1300
|
+
function tQ(e) {
|
|
1299
1301
|
return A(e) === o;
|
|
1300
1302
|
}
|
|
1301
|
-
function
|
|
1303
|
+
function nQ(e) {
|
|
1302
1304
|
return A(e) === y;
|
|
1303
1305
|
}
|
|
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 =
|
|
1306
|
+
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 = qZ, e.isContextProvider = JZ, e.isElement = YZ, e.isForwardRef = XZ, e.isFragment = ZZ, e.isLazy = QZ, e.isMemo = $Z, e.isPortal = eQ, e.isProfiler = Q, e.isStrictMode = tQ, e.isSuspense = nQ, e.isValidElementType = O, e.typeOf = A;
|
|
1305
1307
|
})();
|
|
1306
1308
|
})), require_react_is = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
1307
1309
|
process.env.NODE_ENV === "production" ? t.exports = require_react_is_production_min() : t.exports = require_react_is_development();
|
|
@@ -3089,25 +3091,25 @@ function highlight_default(e, t) {
|
|
|
3089
3091
|
numberStyle: A,
|
|
3090
3092
|
startingLineNumber: T,
|
|
3091
3093
|
codeString: W
|
|
3092
|
-
}) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" },
|
|
3093
|
-
className: K.className ? `${
|
|
3094
|
+
}) : null, Z = s.hljs || s["pre[class*=\"language-\"]"] || { backgroundColor: "#fff" }, qZ = isHighlightJs(G) ? "hljs" : "prismjs", JZ = y ? Object.assign({}, K, { style: Object.assign({}, Z, f) }) : Object.assign({}, K, {
|
|
3095
|
+
className: K.className ? `${qZ} ${K.className}` : qZ,
|
|
3094
3096
|
style: Object.assign({}, f)
|
|
3095
3097
|
});
|
|
3096
|
-
if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z,
|
|
3098
|
+
if (P ? m.style = _objectSpread({ whiteSpace: "pre-wrap" }, m.style) : m.style = _objectSpread({ whiteSpace: "pre" }, m.style), !G) return /* @__PURE__ */ React.createElement(z, JZ, J, /* @__PURE__ */ React.createElement(V, m, W));
|
|
3097
3099
|
(M === void 0 && L || P) && (M = !0), L ||= defaultRenderer;
|
|
3098
|
-
var
|
|
3100
|
+
var YZ = [{
|
|
3099
3101
|
type: "text",
|
|
3100
3102
|
value: W
|
|
3101
|
-
}],
|
|
3103
|
+
}], XZ = getCodeTree({
|
|
3102
3104
|
astGenerator: G,
|
|
3103
3105
|
language: i,
|
|
3104
3106
|
code: W,
|
|
3105
|
-
defaultCodeValue:
|
|
3107
|
+
defaultCodeValue: YZ
|
|
3106
3108
|
});
|
|
3107
|
-
|
|
3108
|
-
var
|
|
3109
|
-
return /* @__PURE__ */ React.createElement(z,
|
|
3110
|
-
rows:
|
|
3109
|
+
XZ.language === null && (XZ.value = YZ);
|
|
3110
|
+
var ZZ = T + (W.match(/\n/g)?.length ?? 0), QZ = processLines(XZ, M, I, x, C, T, ZZ, A, P);
|
|
3111
|
+
return /* @__PURE__ */ React.createElement(z, JZ, /* @__PURE__ */ React.createElement(V, m, !C && J, L({
|
|
3112
|
+
rows: QZ,
|
|
3111
3113
|
stylesheet: s,
|
|
3112
3114
|
useInlineStyles: y
|
|
3113
3115
|
})));
|
|
@@ -11418,8 +11420,8 @@ function ichigojam(e) {
|
|
|
11418
11420
|
punctuation: /[\[,;:()\]]/
|
|
11419
11421
|
};
|
|
11420
11422
|
}
|
|
11421
|
-
icon$
|
|
11422
|
-
function icon$
|
|
11423
|
+
icon$39.displayName = "icon", icon$39.aliases = [];
|
|
11424
|
+
function icon$39(e) {
|
|
11423
11425
|
e.languages.icon = {
|
|
11424
11426
|
comment: /#.*/,
|
|
11425
11427
|
string: {
|
|
@@ -19898,7 +19900,7 @@ function zig(e) {
|
|
|
19898
19900
|
});
|
|
19899
19901
|
})(e);
|
|
19900
19902
|
}
|
|
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$
|
|
19903
|
+
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$39), 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);
|
|
19902
19904
|
var highlighter = highlight_default(refractor, prism_default$1);
|
|
19903
19905
|
highlighter.supportedLanguages = supported_languages_default;
|
|
19904
19906
|
var prism_default = highlighter, one_dark_default = {
|
|
@@ -51510,7 +51512,7 @@ appendIconComponentCache({
|
|
|
51510
51512
|
arrowRight: icon$7,
|
|
51511
51513
|
sortDown: icon$8,
|
|
51512
51514
|
sortUp: icon$9,
|
|
51513
|
-
sortRight: icon$
|
|
51515
|
+
sortRight: icon$37,
|
|
51514
51516
|
plusInCircle: icon$10,
|
|
51515
51517
|
plusInCircleFilled: icon$11,
|
|
51516
51518
|
minusInCircle: icon$12,
|
|
@@ -51536,7 +51538,9 @@ appendIconComponentCache({
|
|
|
51536
51538
|
tokenGeo: icon$34,
|
|
51537
51539
|
tokenObject: icon$32,
|
|
51538
51540
|
tokenNested: icon$33,
|
|
51539
|
-
|
|
51541
|
+
tokenFile: icon$36,
|
|
51542
|
+
tokenHistogram: icon$35,
|
|
51543
|
+
alert: icon$38
|
|
51540
51544
|
}), init_moment();
|
|
51541
51545
|
var import_lodash = require_lodash();
|
|
51542
51546
|
loader.config({ monaco: editor_main_exports });
|
|
@@ -51729,40 +51733,40 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51729
51733
|
columns: O.columns
|
|
51730
51734
|
}));
|
|
51731
51735
|
}, [O.columns]);
|
|
51732
|
-
let { onAddColumn: Z, onRemoveColumn:
|
|
51736
|
+
let { onAddColumn: Z, onRemoveColumn: JZ, onMoveColumn: YZ, onSetColumns: XZ } = useMemo(() => getStateColumnActions({
|
|
51733
51737
|
indexPattern: t,
|
|
51734
51738
|
setAppState: A,
|
|
51735
51739
|
state: O,
|
|
51736
51740
|
useNewFieldsApi: !1
|
|
51737
|
-
}), [t, O]),
|
|
51741
|
+
}), [t, O]), ZZ = useCallback((e) => {
|
|
51738
51742
|
A({
|
|
51739
51743
|
...O,
|
|
51740
51744
|
sort: e
|
|
51741
51745
|
}), B({ sort: e.reverse() });
|
|
51742
|
-
}, [O, t]),
|
|
51746
|
+
}, [O, t]), QZ = useCallback((e, n, i) => {
|
|
51743
51747
|
typeof e == "string" || e.name;
|
|
51744
51748
|
let a = generateFilters(filterManager, e, n, i, String(t.id));
|
|
51745
51749
|
filterManager.addFilters(a), B();
|
|
51746
|
-
}, [t, B]),
|
|
51750
|
+
}, [t, B]), $Z = useCallback((e) => {
|
|
51747
51751
|
timefilter.setTime({
|
|
51748
51752
|
from: moment_default(e.from).toISOString(),
|
|
51749
51753
|
to: moment_default(e.to).toISOString(),
|
|
51750
51754
|
mode: "absolute"
|
|
51751
51755
|
}), B();
|
|
51752
|
-
}, [timefilter]),
|
|
51756
|
+
}, [timefilter]), eQ = w.hits.hits || [], [Q, tQ] = useState([]);
|
|
51753
51757
|
useMemo(() => {
|
|
51754
|
-
|
|
51755
|
-
}, [
|
|
51756
|
-
let
|
|
51758
|
+
eQ.length > 0 ? tQ(L > 0 ? (e) => [...e, ...eQ] : eQ) : L === 0 && tQ([]);
|
|
51759
|
+
}, [eQ]);
|
|
51760
|
+
let nQ = {
|
|
51757
51761
|
savedSearch: {},
|
|
51758
51762
|
timefield: t?.getTimeField()?.displayName,
|
|
51759
51763
|
chartAggConfigs: {}
|
|
51760
|
-
},
|
|
51761
|
-
for (let e of Q) for (let n of Object.keys(t.flattenHit(e, !0)))
|
|
51762
|
-
let
|
|
51763
|
-
saveDocument:
|
|
51764
|
-
deleteDocument:
|
|
51765
|
-
}), [
|
|
51764
|
+
}, rQ = {};
|
|
51765
|
+
for (let e of Q) for (let n of Object.keys(t.flattenHit(e, !0))) rQ[n] = (rQ[n] || 0) + 1;
|
|
51766
|
+
let iQ = Number.isInteger(w.hits.total?.value) ? w.hits.total?.value : 0, aQ = t?.timeFieldName != "", oQ = useCallback(async ({ _index: e, _id: t, _type: n, _source: i, is_new: a }) => !1, [B]), sQ = useCallback(async ({ _index: e, _id: t, _type: n }) => !1, [B]), cQ = useMemo(() => ({
|
|
51767
|
+
saveDocument: oQ,
|
|
51768
|
+
deleteDocument: sQ
|
|
51769
|
+
}), [oQ, sQ]), lQ = async (e, n, i) => {
|
|
51766
51770
|
let a = e?.spec?.name || e?.name;
|
|
51767
51771
|
if (!a || !o) return;
|
|
51768
51772
|
if (e.isMulti) a = `${a}.keyword`;
|
|
@@ -51798,7 +51802,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51798
51802
|
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;
|
|
51799
51803
|
i(e || [], t || 0, y?.error);
|
|
51800
51804
|
}
|
|
51801
|
-
},
|
|
51805
|
+
}, uQ = async (e) => {
|
|
51802
51806
|
I.unsubscribe(), t.timeFieldName = e, n(t);
|
|
51803
51807
|
let i = [[e, "desc"]];
|
|
51804
51808
|
A({
|
|
@@ -51806,7 +51810,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51806
51810
|
columns: ["_source"],
|
|
51807
51811
|
sort: i
|
|
51808
51812
|
}), B({ sort: i });
|
|
51809
|
-
},
|
|
51813
|
+
}, dQ = async (e, n, i) => {
|
|
51810
51814
|
if (!o) return;
|
|
51811
51815
|
G("downloading");
|
|
51812
51816
|
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;
|
|
@@ -51819,7 +51823,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51819
51823
|
showSearchBar: !1,
|
|
51820
51824
|
showQueryBar: !0,
|
|
51821
51825
|
showQueryInput: !0,
|
|
51822
|
-
showDatePicker:
|
|
51826
|
+
showDatePicker: aQ,
|
|
51823
51827
|
showFilterBar: !0,
|
|
51824
51828
|
useDefaultBehaviors: !0,
|
|
51825
51829
|
screenTitle: "",
|
|
@@ -51846,8 +51850,8 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51846
51850
|
},
|
|
51847
51851
|
indices: e.indices,
|
|
51848
51852
|
histogramData: K,
|
|
51849
|
-
timefilterUpdateHandler:
|
|
51850
|
-
histogramOpts:
|
|
51853
|
+
timefilterUpdateHandler: $Z,
|
|
51854
|
+
histogramOpts: nQ,
|
|
51851
51855
|
timeSetting: {
|
|
51852
51856
|
...J || {},
|
|
51853
51857
|
showTimeSetting: !0,
|
|
@@ -51861,7 +51865,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51861
51865
|
value: t
|
|
51862
51866
|
})),
|
|
51863
51867
|
onTimeSettingChange: ({ timeField: e, timeInterval: n }) => {
|
|
51864
|
-
t.timeFieldName !== e &&
|
|
51868
|
+
t.timeFieldName !== e && uQ(e), J?.stateInterval !== n && V(n);
|
|
51865
51869
|
},
|
|
51866
51870
|
timeZone: S,
|
|
51867
51871
|
onTimeZoneChange: C,
|
|
@@ -51874,7 +51878,7 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51874
51878
|
children: /* @__PURE__ */ jsx("div", {
|
|
51875
51879
|
className: "absolute inset-0 flex border-t border-t-solid border-[var(--ant-color-border)]",
|
|
51876
51880
|
children: U === "none" && L === 0 ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(DiscoverNoResults, {
|
|
51877
|
-
timeFieldName:
|
|
51881
|
+
timeFieldName: nQ.timefield,
|
|
51878
51882
|
queryLanguage: O.query?.language || "",
|
|
51879
51883
|
range: s.range
|
|
51880
51884
|
}) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [!b.sideBar && /* @__PURE__ */ jsx("div", {
|
|
@@ -51882,20 +51886,20 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51882
51886
|
children: /* @__PURE__ */ jsx(SidebarMemoized, {
|
|
51883
51887
|
config: {},
|
|
51884
51888
|
columns: z,
|
|
51885
|
-
fieldCounts:
|
|
51889
|
+
fieldCounts: rQ,
|
|
51886
51890
|
hits: Q,
|
|
51887
51891
|
indexPatterns: [t],
|
|
51888
51892
|
onAddField: Z,
|
|
51889
|
-
onAddFilter:
|
|
51890
|
-
onRemoveField:
|
|
51893
|
+
onAddFilter: QZ,
|
|
51894
|
+
onRemoveField: JZ,
|
|
51891
51895
|
selectedIndexPattern: t,
|
|
51892
51896
|
setIndexPattern: () => {},
|
|
51893
51897
|
setAppState: A,
|
|
51894
51898
|
state: O,
|
|
51895
51899
|
distinctParams: N,
|
|
51896
51900
|
onDistinctParamsChange: F,
|
|
51897
|
-
total:
|
|
51898
|
-
onFieldAgg:
|
|
51901
|
+
total: iQ,
|
|
51902
|
+
onFieldAgg: lQ,
|
|
51899
51903
|
whetherToSample: s.whetherToSample,
|
|
51900
51904
|
sampleSize: s.sampleSize,
|
|
51901
51905
|
topNumber: s.topNumber,
|
|
@@ -51924,19 +51928,19 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51924
51928
|
collapseState: b,
|
|
51925
51929
|
setCollapseState: x,
|
|
51926
51930
|
took: w.took || 1,
|
|
51927
|
-
total:
|
|
51931
|
+
total: iQ,
|
|
51928
51932
|
timeChartProps: J,
|
|
51929
|
-
onDownloadQuery:
|
|
51933
|
+
onDownloadQuery: dQ,
|
|
51930
51934
|
downloading: U === "downloading",
|
|
51931
51935
|
exportMaxSize: g
|
|
51932
51936
|
}),
|
|
51933
|
-
!b.histogram &&
|
|
51937
|
+
!b.histogram && nQ.chartAggConfigs && K && Q.length !== 0 && /* @__PURE__ */ jsx("div", {
|
|
51934
51938
|
className: "dscTimechart",
|
|
51935
51939
|
children: /* @__PURE__ */ jsx("div", {
|
|
51936
51940
|
className: "h-100px dscHistogramGrid",
|
|
51937
51941
|
children: /* @__PURE__ */ jsx(DiscoverHistogram, {
|
|
51938
51942
|
chartData: K,
|
|
51939
|
-
timefilterUpdateHandler:
|
|
51943
|
+
timefilterUpdateHandler: $Z,
|
|
51940
51944
|
theme: m
|
|
51941
51945
|
})
|
|
51942
51946
|
})
|
|
@@ -51945,14 +51949,14 @@ var SidebarMemoized = React.memo(DiscoverSidebar), { filterManager, queryStringM
|
|
|
51945
51949
|
columns: z,
|
|
51946
51950
|
sortOrder: O.sort || [],
|
|
51947
51951
|
indexPattern: t,
|
|
51948
|
-
onFilter:
|
|
51949
|
-
onRemoveColumn:
|
|
51950
|
-
onMoveColumn:
|
|
51952
|
+
onFilter: QZ,
|
|
51953
|
+
onRemoveColumn: JZ,
|
|
51954
|
+
onMoveColumn: YZ,
|
|
51951
51955
|
onAddColumn: Z,
|
|
51952
|
-
onChangeSortOrder:
|
|
51953
|
-
document:
|
|
51956
|
+
onChangeSortOrder: ZZ,
|
|
51957
|
+
document: cQ,
|
|
51954
51958
|
hits: Q,
|
|
51955
|
-
hitsTotal:
|
|
51959
|
+
hitsTotal: iQ,
|
|
51956
51960
|
queryFrom: L,
|
|
51957
51961
|
setQueryFrom: (e) => {
|
|
51958
51962
|
G("next"), R(e);
|