@grafana/scenes 5.27.0--canary.968.12050773878.0 → 5.28.0--canary.978.12051612211.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/dist/esm/components/VizPanel/VizPanel.js +1 -5
- package/dist/esm/components/VizPanel/VizPanel.js.map +1 -1
- package/dist/esm/components/VizPanel/VizPanelRenderer.js +45 -1
- package/dist/esm/components/VizPanel/VizPanelRenderer.js.map +1 -1
- package/dist/esm/components/VizPanel/VizPanelSeriesLimit.js +45 -0
- package/dist/esm/components/VizPanel/VizPanelSeriesLimit.js.map +1 -0
- package/dist/esm/core/PanelBuilders/VizPanelBuilder.js +4 -0
- package/dist/esm/core/PanelBuilders/VizPanelBuilder.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +483 -401
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -41,19 +41,19 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
41
41
|
var uFuzzy__default = /*#__PURE__*/_interopDefaultLegacy(uFuzzy);
|
42
42
|
var ReactGridLayout__default = /*#__PURE__*/_interopDefaultLegacy(ReactGridLayout);
|
43
43
|
|
44
|
-
var __defProp$
|
45
|
-
var __getOwnPropSymbols$
|
46
|
-
var __hasOwnProp$
|
47
|
-
var __propIsEnum$
|
48
|
-
var __defNormalProp$
|
49
|
-
var __spreadValues$
|
44
|
+
var __defProp$Q = Object.defineProperty;
|
45
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
46
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
47
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
48
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
49
|
+
var __spreadValues$Q = (a, b) => {
|
50
50
|
for (var prop in b || (b = {}))
|
51
|
-
if (__hasOwnProp$
|
52
|
-
__defNormalProp$
|
53
|
-
if (__getOwnPropSymbols$
|
54
|
-
for (var prop of __getOwnPropSymbols$
|
55
|
-
if (__propIsEnum$
|
56
|
-
__defNormalProp$
|
51
|
+
if (__hasOwnProp$Q.call(b, prop))
|
52
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
53
|
+
if (__getOwnPropSymbols$Q)
|
54
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
55
|
+
if (__propIsEnum$Q.call(b, prop))
|
56
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
57
57
|
}
|
58
58
|
return a;
|
59
59
|
};
|
@@ -62,7 +62,7 @@ function useAppQueryParams() {
|
|
62
62
|
return runtime.locationSearchToObject(location.search || "");
|
63
63
|
}
|
64
64
|
function getUrlWithAppState(path, searchObject, preserveParams) {
|
65
|
-
const paramsCopy = __spreadValues$
|
65
|
+
const paramsCopy = __spreadValues$Q({}, searchObject);
|
66
66
|
if (preserveParams) {
|
67
67
|
for (const key of Object.keys(paramsCopy)) {
|
68
68
|
if (!preserveParams.includes(key)) {
|
@@ -76,31 +76,31 @@ function renderSceneComponentWithRouteProps(sceneObject, routeProps) {
|
|
76
76
|
return React__default["default"].createElement(sceneObject.Component, { model: sceneObject, routeProps });
|
77
77
|
}
|
78
78
|
|
79
|
-
var __defProp$
|
80
|
-
var __defProps$
|
81
|
-
var __getOwnPropDescs$
|
82
|
-
var __getOwnPropSymbols$
|
83
|
-
var __hasOwnProp$
|
84
|
-
var __propIsEnum$
|
85
|
-
var __defNormalProp$
|
86
|
-
var __spreadValues$
|
79
|
+
var __defProp$P = Object.defineProperty;
|
80
|
+
var __defProps$x = Object.defineProperties;
|
81
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
82
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
83
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
84
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
85
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
86
|
+
var __spreadValues$P = (a, b) => {
|
87
87
|
for (var prop in b || (b = {}))
|
88
|
-
if (__hasOwnProp$
|
89
|
-
__defNormalProp$
|
90
|
-
if (__getOwnPropSymbols$
|
91
|
-
for (var prop of __getOwnPropSymbols$
|
92
|
-
if (__propIsEnum$
|
93
|
-
__defNormalProp$
|
88
|
+
if (__hasOwnProp$P.call(b, prop))
|
89
|
+
__defNormalProp$P(a, prop, b[prop]);
|
90
|
+
if (__getOwnPropSymbols$P)
|
91
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
92
|
+
if (__propIsEnum$P.call(b, prop))
|
93
|
+
__defNormalProp$P(a, prop, b[prop]);
|
94
94
|
}
|
95
95
|
return a;
|
96
96
|
};
|
97
|
-
var __spreadProps$
|
97
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
98
98
|
const runtimePanelPlugins = /* @__PURE__ */ new Map();
|
99
99
|
function registerRuntimePanelPlugin({ pluginId, plugin }) {
|
100
100
|
if (runtimePanelPlugins.has(pluginId)) {
|
101
101
|
throw new Error(`A runtime panel plugin with id ${pluginId} has already been registered`);
|
102
102
|
}
|
103
|
-
plugin.meta = __spreadProps$
|
103
|
+
plugin.meta = __spreadProps$x(__spreadValues$P({}, plugin.meta), {
|
104
104
|
id: pluginId,
|
105
105
|
name: pluginId,
|
106
106
|
module: "runtime plugin",
|
@@ -128,33 +128,33 @@ function loadPanelPluginSync(pluginId) {
|
|
128
128
|
return (_a = getPanelPluginFromCache(pluginId)) != null ? _a : runtimePanelPlugins.get(pluginId);
|
129
129
|
}
|
130
130
|
|
131
|
-
var __defProp$
|
132
|
-
var __defProps$
|
133
|
-
var __getOwnPropDescs$
|
134
|
-
var __getOwnPropSymbols$
|
135
|
-
var __hasOwnProp$
|
136
|
-
var __propIsEnum$
|
137
|
-
var __defNormalProp$
|
138
|
-
var __spreadValues$
|
131
|
+
var __defProp$O = Object.defineProperty;
|
132
|
+
var __defProps$w = Object.defineProperties;
|
133
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
134
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
135
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
136
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
137
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
138
|
+
var __spreadValues$O = (a, b) => {
|
139
139
|
for (var prop in b || (b = {}))
|
140
|
-
if (__hasOwnProp$
|
141
|
-
__defNormalProp$
|
142
|
-
if (__getOwnPropSymbols$
|
143
|
-
for (var prop of __getOwnPropSymbols$
|
144
|
-
if (__propIsEnum$
|
145
|
-
__defNormalProp$
|
140
|
+
if (__hasOwnProp$O.call(b, prop))
|
141
|
+
__defNormalProp$O(a, prop, b[prop]);
|
142
|
+
if (__getOwnPropSymbols$O)
|
143
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
144
|
+
if (__propIsEnum$O.call(b, prop))
|
145
|
+
__defNormalProp$O(a, prop, b[prop]);
|
146
146
|
}
|
147
147
|
return a;
|
148
148
|
};
|
149
|
-
var __spreadProps$
|
149
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
150
150
|
var __objRest$5 = (source, exclude) => {
|
151
151
|
var target = {};
|
152
152
|
for (var prop in source)
|
153
|
-
if (__hasOwnProp$
|
153
|
+
if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0)
|
154
154
|
target[prop] = source[prop];
|
155
|
-
if (source != null && __getOwnPropSymbols$
|
156
|
-
for (var prop of __getOwnPropSymbols$
|
157
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
155
|
+
if (source != null && __getOwnPropSymbols$O)
|
156
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
157
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop))
|
158
158
|
target[prop] = source[prop];
|
159
159
|
}
|
160
160
|
return target;
|
@@ -172,7 +172,7 @@ function SceneComponentWrapperWithoutMemo(_a) {
|
|
172
172
|
if (!model.isActive && !model.renderBeforeActivation) {
|
173
173
|
return null;
|
174
174
|
}
|
175
|
-
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$
|
175
|
+
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$w(__spreadValues$O({}, otherProps), {
|
176
176
|
model
|
177
177
|
}));
|
178
178
|
}
|
@@ -218,19 +218,19 @@ class SceneObjectRef {
|
|
218
218
|
}
|
219
219
|
_ref = new WeakMap();
|
220
220
|
|
221
|
-
var __defProp$
|
222
|
-
var __getOwnPropSymbols$
|
223
|
-
var __hasOwnProp$
|
224
|
-
var __propIsEnum$
|
225
|
-
var __defNormalProp$
|
226
|
-
var __spreadValues$
|
221
|
+
var __defProp$N = Object.defineProperty;
|
222
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
223
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
224
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
225
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
226
|
+
var __spreadValues$N = (a, b) => {
|
227
227
|
for (var prop in b || (b = {}))
|
228
|
-
if (__hasOwnProp$
|
229
|
-
__defNormalProp$
|
230
|
-
if (__getOwnPropSymbols$
|
231
|
-
for (var prop of __getOwnPropSymbols$
|
232
|
-
if (__propIsEnum$
|
233
|
-
__defNormalProp$
|
228
|
+
if (__hasOwnProp$N.call(b, prop))
|
229
|
+
__defNormalProp$N(a, prop, b[prop]);
|
230
|
+
if (__getOwnPropSymbols$N)
|
231
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
232
|
+
if (__propIsEnum$N.call(b, prop))
|
233
|
+
__defNormalProp$N(a, prop, b[prop]);
|
234
234
|
}
|
235
235
|
return a;
|
236
236
|
};
|
@@ -297,7 +297,7 @@ class SceneObjectBase {
|
|
297
297
|
}
|
298
298
|
setState(update) {
|
299
299
|
const prevState = this._state;
|
300
|
-
const newState = __spreadValues$
|
300
|
+
const newState = __spreadValues$N(__spreadValues$N({}, this._state), update);
|
301
301
|
this._state = Object.freeze(newState);
|
302
302
|
this._setParent(update);
|
303
303
|
this._handleActivationOfChangedStateProps(prevState, newState);
|
@@ -493,19 +493,19 @@ function forEachChild(state, callback) {
|
|
493
493
|
}
|
494
494
|
}
|
495
495
|
|
496
|
-
var __defProp$
|
497
|
-
var __getOwnPropSymbols$
|
498
|
-
var __hasOwnProp$
|
499
|
-
var __propIsEnum$
|
500
|
-
var __defNormalProp$
|
501
|
-
var __spreadValues$
|
496
|
+
var __defProp$M = Object.defineProperty;
|
497
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
498
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
499
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
500
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
501
|
+
var __spreadValues$M = (a, b) => {
|
502
502
|
for (var prop in b || (b = {}))
|
503
|
-
if (__hasOwnProp$
|
504
|
-
__defNormalProp$
|
505
|
-
if (__getOwnPropSymbols$
|
506
|
-
for (var prop of __getOwnPropSymbols$
|
507
|
-
if (__propIsEnum$
|
508
|
-
__defNormalProp$
|
503
|
+
if (__hasOwnProp$M.call(b, prop))
|
504
|
+
__defNormalProp$M(a, prop, b[prop]);
|
505
|
+
if (__getOwnPropSymbols$M)
|
506
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
507
|
+
if (__propIsEnum$M.call(b, prop))
|
508
|
+
__defNormalProp$M(a, prop, b[prop]);
|
509
509
|
}
|
510
510
|
return a;
|
511
511
|
};
|
@@ -514,7 +514,7 @@ function cloneSceneObject(sceneObject, withState) {
|
|
514
514
|
return new sceneObject.constructor(clonedState);
|
515
515
|
}
|
516
516
|
function cloneSceneObjectState(sceneState, withState) {
|
517
|
-
const clonedState = __spreadValues$
|
517
|
+
const clonedState = __spreadValues$M({}, sceneState);
|
518
518
|
Object.assign(clonedState, withState);
|
519
519
|
for (const key in clonedState) {
|
520
520
|
if (withState && withState[key] !== void 0) {
|
@@ -615,25 +615,25 @@ function lookupVariable(name, sceneObject) {
|
|
615
615
|
return null;
|
616
616
|
}
|
617
617
|
|
618
|
-
var __defProp$
|
619
|
-
var __getOwnPropSymbols$
|
620
|
-
var __hasOwnProp$
|
621
|
-
var __propIsEnum$
|
622
|
-
var __defNormalProp$
|
623
|
-
var __spreadValues$
|
618
|
+
var __defProp$L = Object.defineProperty;
|
619
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
620
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
621
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
622
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
623
|
+
var __spreadValues$L = (a, b) => {
|
624
624
|
for (var prop in b || (b = {}))
|
625
|
-
if (__hasOwnProp$
|
626
|
-
__defNormalProp$
|
627
|
-
if (__getOwnPropSymbols$
|
628
|
-
for (var prop of __getOwnPropSymbols$
|
629
|
-
if (__propIsEnum$
|
630
|
-
__defNormalProp$
|
625
|
+
if (__hasOwnProp$L.call(b, prop))
|
626
|
+
__defNormalProp$L(a, prop, b[prop]);
|
627
|
+
if (__getOwnPropSymbols$L)
|
628
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
629
|
+
if (__propIsEnum$L.call(b, prop))
|
630
|
+
__defNormalProp$L(a, prop, b[prop]);
|
631
631
|
}
|
632
632
|
return a;
|
633
633
|
};
|
634
634
|
class SceneDataNode extends SceneObjectBase {
|
635
635
|
constructor(state) {
|
636
|
-
super(__spreadValues$
|
636
|
+
super(__spreadValues$L({
|
637
637
|
data: emptyPanelData
|
638
638
|
}, state));
|
639
639
|
}
|
@@ -739,19 +739,19 @@ function isValid$1(value, roundUp, timeZone) {
|
|
739
739
|
return parsed.isValid();
|
740
740
|
}
|
741
741
|
|
742
|
-
var __defProp$
|
743
|
-
var __getOwnPropSymbols$
|
744
|
-
var __hasOwnProp$
|
745
|
-
var __propIsEnum$
|
746
|
-
var __defNormalProp$
|
747
|
-
var __spreadValues$
|
742
|
+
var __defProp$K = Object.defineProperty;
|
743
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
744
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
745
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
746
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
747
|
+
var __spreadValues$K = (a, b) => {
|
748
748
|
for (var prop in b || (b = {}))
|
749
|
-
if (__hasOwnProp$
|
750
|
-
__defNormalProp$
|
751
|
-
if (__getOwnPropSymbols$
|
752
|
-
for (var prop of __getOwnPropSymbols$
|
753
|
-
if (__propIsEnum$
|
754
|
-
__defNormalProp$
|
749
|
+
if (__hasOwnProp$K.call(b, prop))
|
750
|
+
__defNormalProp$K(a, prop, b[prop]);
|
751
|
+
if (__getOwnPropSymbols$K)
|
752
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
753
|
+
if (__propIsEnum$K.call(b, prop))
|
754
|
+
__defNormalProp$K(a, prop, b[prop]);
|
755
755
|
}
|
756
756
|
return a;
|
757
757
|
};
|
@@ -769,7 +769,7 @@ class SceneTimeRange extends SceneObjectBase {
|
|
769
769
|
state.UNSAFE_nowDelay
|
770
770
|
);
|
771
771
|
const refreshOnActivate = (_a = state.refreshOnActivate) != null ? _a : { percent: 10 };
|
772
|
-
super(__spreadValues$
|
772
|
+
super(__spreadValues$K({ from, to, timeZone, value, refreshOnActivate }, state));
|
773
773
|
this._urlSync = new SceneObjectUrlSyncConfig(this, { keys: ["from", "to", "timezone", "time", "time.window"] });
|
774
774
|
this.onTimeRangeChange = (timeRange) => {
|
775
775
|
const update = {};
|
@@ -1755,25 +1755,25 @@ function collectAllVariables(sceneObject, record = {}) {
|
|
1755
1755
|
return record;
|
1756
1756
|
}
|
1757
1757
|
|
1758
|
-
var __defProp$
|
1759
|
-
var __defProps$
|
1760
|
-
var __getOwnPropDescs$
|
1761
|
-
var __getOwnPropSymbols$
|
1762
|
-
var __hasOwnProp$
|
1763
|
-
var __propIsEnum$
|
1764
|
-
var __defNormalProp$
|
1765
|
-
var __spreadValues$
|
1758
|
+
var __defProp$J = Object.defineProperty;
|
1759
|
+
var __defProps$v = Object.defineProperties;
|
1760
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
1761
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
1762
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
1763
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
1764
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
1765
|
+
var __spreadValues$J = (a, b) => {
|
1766
1766
|
for (var prop in b || (b = {}))
|
1767
|
-
if (__hasOwnProp$
|
1768
|
-
__defNormalProp$
|
1769
|
-
if (__getOwnPropSymbols$
|
1770
|
-
for (var prop of __getOwnPropSymbols$
|
1771
|
-
if (__propIsEnum$
|
1772
|
-
__defNormalProp$
|
1767
|
+
if (__hasOwnProp$J.call(b, prop))
|
1768
|
+
__defNormalProp$J(a, prop, b[prop]);
|
1769
|
+
if (__getOwnPropSymbols$J)
|
1770
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
1771
|
+
if (__propIsEnum$J.call(b, prop))
|
1772
|
+
__defNormalProp$J(a, prop, b[prop]);
|
1773
1773
|
}
|
1774
1774
|
return a;
|
1775
1775
|
};
|
1776
|
-
var __spreadProps$
|
1776
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
1777
1777
|
function getTemplateProxyForField(field, frame, frames) {
|
1778
1778
|
return new Proxy(
|
1779
1779
|
{},
|
@@ -1789,7 +1789,7 @@ function getTemplateProxyForField(field, frame, frames) {
|
|
1789
1789
|
if (!field.labels) {
|
1790
1790
|
return "";
|
1791
1791
|
}
|
1792
|
-
return __spreadProps$
|
1792
|
+
return __spreadProps$v(__spreadValues$J({}, field.labels), {
|
1793
1793
|
__values: Object.values(field.labels).sort().join(", "),
|
1794
1794
|
toString: () => {
|
1795
1795
|
return data.formatLabels(field.labels, "", true);
|
@@ -2286,25 +2286,25 @@ function isExtraQueryProvider(obj) {
|
|
2286
2286
|
return typeof obj === "object" && "getExtraQueries" in obj;
|
2287
2287
|
}
|
2288
2288
|
|
2289
|
-
var __defProp$
|
2290
|
-
var __defProps$
|
2291
|
-
var __getOwnPropDescs$
|
2292
|
-
var __getOwnPropSymbols$
|
2293
|
-
var __hasOwnProp$
|
2294
|
-
var __propIsEnum$
|
2295
|
-
var __defNormalProp$
|
2296
|
-
var __spreadValues$
|
2289
|
+
var __defProp$I = Object.defineProperty;
|
2290
|
+
var __defProps$u = Object.defineProperties;
|
2291
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
2292
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
2293
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
2294
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
2295
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2296
|
+
var __spreadValues$I = (a, b) => {
|
2297
2297
|
for (var prop in b || (b = {}))
|
2298
|
-
if (__hasOwnProp$
|
2299
|
-
__defNormalProp$
|
2300
|
-
if (__getOwnPropSymbols$
|
2301
|
-
for (var prop of __getOwnPropSymbols$
|
2302
|
-
if (__propIsEnum$
|
2303
|
-
__defNormalProp$
|
2298
|
+
if (__hasOwnProp$I.call(b, prop))
|
2299
|
+
__defNormalProp$I(a, prop, b[prop]);
|
2300
|
+
if (__getOwnPropSymbols$I)
|
2301
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
2302
|
+
if (__propIsEnum$I.call(b, prop))
|
2303
|
+
__defNormalProp$I(a, prop, b[prop]);
|
2304
2304
|
}
|
2305
2305
|
return a;
|
2306
2306
|
};
|
2307
|
-
var __spreadProps$
|
2307
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
2308
2308
|
const passthroughProcessor = (_, secondary) => rxjs.of(secondary);
|
2309
2309
|
const extraQueryProcessingOperator = (processors) => (data) => {
|
2310
2310
|
return data.pipe(
|
@@ -2317,7 +2317,7 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2317
2317
|
}),
|
2318
2318
|
rxjs.map(([primary, ...processedSecondaries]) => {
|
2319
2319
|
var _a;
|
2320
|
-
return __spreadProps$
|
2320
|
+
return __spreadProps$u(__spreadValues$I({}, primary), {
|
2321
2321
|
series: [...primary.series, ...processedSecondaries.flatMap((s) => s.series)],
|
2322
2322
|
annotations: [...(_a = primary.annotations) != null ? _a : [], ...processedSecondaries.flatMap((s) => {
|
2323
2323
|
var _a2;
|
@@ -2328,25 +2328,25 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2328
2328
|
);
|
2329
2329
|
};
|
2330
2330
|
|
2331
|
-
var __defProp$
|
2332
|
-
var __defProps$
|
2333
|
-
var __getOwnPropDescs$
|
2334
|
-
var __getOwnPropSymbols$
|
2335
|
-
var __hasOwnProp$
|
2336
|
-
var __propIsEnum$
|
2337
|
-
var __defNormalProp$
|
2338
|
-
var __spreadValues$
|
2331
|
+
var __defProp$H = Object.defineProperty;
|
2332
|
+
var __defProps$t = Object.defineProperties;
|
2333
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
2334
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
2335
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
2336
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
2337
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2338
|
+
var __spreadValues$H = (a, b) => {
|
2339
2339
|
for (var prop in b || (b = {}))
|
2340
|
-
if (__hasOwnProp$
|
2341
|
-
__defNormalProp$
|
2342
|
-
if (__getOwnPropSymbols$
|
2343
|
-
for (var prop of __getOwnPropSymbols$
|
2344
|
-
if (__propIsEnum$
|
2345
|
-
__defNormalProp$
|
2340
|
+
if (__hasOwnProp$H.call(b, prop))
|
2341
|
+
__defNormalProp$H(a, prop, b[prop]);
|
2342
|
+
if (__getOwnPropSymbols$H)
|
2343
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
2344
|
+
if (__propIsEnum$H.call(b, prop))
|
2345
|
+
__defNormalProp$H(a, prop, b[prop]);
|
2346
2346
|
}
|
2347
2347
|
return a;
|
2348
2348
|
};
|
2349
|
-
var __spreadProps$
|
2349
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
2350
2350
|
const GLOBAL_ANNOTATION_ID = 0;
|
2351
2351
|
function filterAnnotations(data, filters) {
|
2352
2352
|
var _a;
|
@@ -2398,11 +2398,11 @@ function filterAnnotations(data, filters) {
|
|
2398
2398
|
continue;
|
2399
2399
|
}
|
2400
2400
|
}
|
2401
|
-
fields.push(__spreadProps$
|
2401
|
+
fields.push(__spreadProps$t(__spreadValues$H({}, field), {
|
2402
2402
|
values: buffer
|
2403
2403
|
}));
|
2404
2404
|
}
|
2405
|
-
processed.push(__spreadProps$
|
2405
|
+
processed.push(__spreadProps$t(__spreadValues$H({}, frame), {
|
2406
2406
|
fields,
|
2407
2407
|
length: frameLength
|
2408
2408
|
}));
|
@@ -2518,33 +2518,33 @@ function getOptionSearcher(options, includeAll = false) {
|
|
2518
2518
|
return (search) => fuzzySearch(search).map((i) => allOptions[i]);
|
2519
2519
|
}
|
2520
2520
|
|
2521
|
-
var __defProp$
|
2522
|
-
var __defProps$
|
2523
|
-
var __getOwnPropDescs$
|
2524
|
-
var __getOwnPropSymbols$
|
2525
|
-
var __hasOwnProp$
|
2526
|
-
var __propIsEnum$
|
2527
|
-
var __defNormalProp$
|
2528
|
-
var __spreadValues$
|
2521
|
+
var __defProp$G = Object.defineProperty;
|
2522
|
+
var __defProps$s = Object.defineProperties;
|
2523
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
2524
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
2525
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
2526
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
2527
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2528
|
+
var __spreadValues$G = (a, b) => {
|
2529
2529
|
for (var prop in b || (b = {}))
|
2530
|
-
if (__hasOwnProp$
|
2531
|
-
__defNormalProp$
|
2532
|
-
if (__getOwnPropSymbols$
|
2533
|
-
for (var prop of __getOwnPropSymbols$
|
2534
|
-
if (__propIsEnum$
|
2535
|
-
__defNormalProp$
|
2530
|
+
if (__hasOwnProp$G.call(b, prop))
|
2531
|
+
__defNormalProp$G(a, prop, b[prop]);
|
2532
|
+
if (__getOwnPropSymbols$G)
|
2533
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
2534
|
+
if (__propIsEnum$G.call(b, prop))
|
2535
|
+
__defNormalProp$G(a, prop, b[prop]);
|
2536
2536
|
}
|
2537
2537
|
return a;
|
2538
2538
|
};
|
2539
|
-
var __spreadProps$
|
2539
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
2540
2540
|
var __objRest$4 = (source, exclude) => {
|
2541
2541
|
var target = {};
|
2542
2542
|
for (var prop in source)
|
2543
|
-
if (__hasOwnProp$
|
2543
|
+
if (__hasOwnProp$G.call(source, prop) && exclude.indexOf(prop) < 0)
|
2544
2544
|
target[prop] = source[prop];
|
2545
|
-
if (source != null && __getOwnPropSymbols$
|
2546
|
-
for (var prop of __getOwnPropSymbols$
|
2547
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
2545
|
+
if (source != null && __getOwnPropSymbols$G)
|
2546
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
2547
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.call(source, prop))
|
2548
2548
|
target[prop] = source[prop];
|
2549
2549
|
}
|
2550
2550
|
return target;
|
@@ -2692,7 +2692,7 @@ const OptionWithCheckbox = ({
|
|
2692
2692
|
const theme = ui.useTheme2();
|
2693
2693
|
const selectStyles = ui.getSelectStyles(theme);
|
2694
2694
|
const optionStyles = ui.useStyles2(getOptionStyles);
|
2695
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$
|
2695
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$s(__spreadValues$G({
|
2696
2696
|
ref: innerRef,
|
2697
2697
|
className: css.cx(selectStyles.option, isFocused && selectStyles.optionFocused)
|
2698
2698
|
}, rest), {
|
@@ -2857,28 +2857,28 @@ function wrapInSafeSerializableSceneObject(sceneObject) {
|
|
2857
2857
|
return { value: sceneObject, text: "__sceneObject" };
|
2858
2858
|
}
|
2859
2859
|
|
2860
|
-
var __defProp$
|
2861
|
-
var __defProps$
|
2862
|
-
var __getOwnPropDescs$
|
2863
|
-
var __getOwnPropSymbols$
|
2864
|
-
var __hasOwnProp$
|
2865
|
-
var __propIsEnum$
|
2866
|
-
var __defNormalProp$
|
2867
|
-
var __spreadValues$
|
2860
|
+
var __defProp$F = Object.defineProperty;
|
2861
|
+
var __defProps$r = Object.defineProperties;
|
2862
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
2863
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
2864
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
2865
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
2866
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2867
|
+
var __spreadValues$F = (a, b) => {
|
2868
2868
|
for (var prop in b || (b = {}))
|
2869
|
-
if (__hasOwnProp$
|
2870
|
-
__defNormalProp$
|
2871
|
-
if (__getOwnPropSymbols$
|
2872
|
-
for (var prop of __getOwnPropSymbols$
|
2873
|
-
if (__propIsEnum$
|
2874
|
-
__defNormalProp$
|
2869
|
+
if (__hasOwnProp$F.call(b, prop))
|
2870
|
+
__defNormalProp$F(a, prop, b[prop]);
|
2871
|
+
if (__getOwnPropSymbols$F)
|
2872
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
2873
|
+
if (__propIsEnum$F.call(b, prop))
|
2874
|
+
__defNormalProp$F(a, prop, b[prop]);
|
2875
2875
|
}
|
2876
2876
|
return a;
|
2877
2877
|
};
|
2878
|
-
var __spreadProps$
|
2878
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
2879
2879
|
class GroupByVariable extends MultiValueVariable {
|
2880
2880
|
constructor(initialState) {
|
2881
|
-
super(__spreadProps$
|
2881
|
+
super(__spreadProps$r(__spreadValues$F({
|
2882
2882
|
isMulti: true,
|
2883
2883
|
name: "",
|
2884
2884
|
value: [],
|
@@ -2909,7 +2909,7 @@ class GroupByVariable extends MultiValueVariable {
|
|
2909
2909
|
const queries = getQueriesForVariables(this);
|
2910
2910
|
const otherFilters = this.state.baseFilters || [];
|
2911
2911
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
2912
|
-
const response = await ds.getTagKeys(__spreadValues$
|
2912
|
+
const response = await ds.getTagKeys(__spreadValues$F({
|
2913
2913
|
filters: otherFilters,
|
2914
2914
|
queries,
|
2915
2915
|
timeRange
|
@@ -3114,7 +3114,7 @@ function LoadingIndicator(props) {
|
|
3114
3114
|
}
|
3115
3115
|
|
3116
3116
|
function ControlsLabel(props) {
|
3117
|
-
const styles = ui.useStyles2(getStyles$
|
3117
|
+
const styles = ui.useStyles2(getStyles$g);
|
3118
3118
|
const theme = ui.useTheme2();
|
3119
3119
|
const isVertical = props.layout === "vertical";
|
3120
3120
|
const loadingIndicator = Boolean(props.isLoading) ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
@@ -3177,7 +3177,7 @@ function ControlsLabel(props) {
|
|
3177
3177
|
}
|
3178
3178
|
return labelElement;
|
3179
3179
|
}
|
3180
|
-
const getStyles$
|
3180
|
+
const getStyles$g = (theme) => ({
|
3181
3181
|
horizontalLabel: css.css({
|
3182
3182
|
background: theme.isDark ? theme.colors.background.primary : theme.colors.background.secondary,
|
3183
3183
|
display: `flex`,
|
@@ -3221,19 +3221,19 @@ function getAdhocOptionSearcher(options) {
|
|
3221
3221
|
return (search) => fuzzySearch(search).map((i) => options[i]);
|
3222
3222
|
}
|
3223
3223
|
|
3224
|
-
var __defProp$
|
3225
|
-
var __getOwnPropSymbols$
|
3226
|
-
var __hasOwnProp$
|
3227
|
-
var __propIsEnum$
|
3228
|
-
var __defNormalProp$
|
3229
|
-
var __spreadValues$
|
3224
|
+
var __defProp$E = Object.defineProperty;
|
3225
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
3226
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
3227
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
3228
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3229
|
+
var __spreadValues$E = (a, b) => {
|
3230
3230
|
for (var prop in b || (b = {}))
|
3231
|
-
if (__hasOwnProp$
|
3232
|
-
__defNormalProp$
|
3233
|
-
if (__getOwnPropSymbols$
|
3234
|
-
for (var prop of __getOwnPropSymbols$
|
3235
|
-
if (__propIsEnum$
|
3236
|
-
__defNormalProp$
|
3231
|
+
if (__hasOwnProp$E.call(b, prop))
|
3232
|
+
__defNormalProp$E(a, prop, b[prop]);
|
3233
|
+
if (__getOwnPropSymbols$E)
|
3234
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
3235
|
+
if (__propIsEnum$E.call(b, prop))
|
3236
|
+
__defNormalProp$E(a, prop, b[prop]);
|
3237
3237
|
}
|
3238
3238
|
return a;
|
3239
3239
|
};
|
@@ -3246,7 +3246,7 @@ function keyLabelToOption(key, label) {
|
|
3246
3246
|
const filterNoOp = () => true;
|
3247
3247
|
function AdHocFilterRenderer({ filter, model }) {
|
3248
3248
|
var _a, _b, _c, _d, _e;
|
3249
|
-
const styles = ui.useStyles2(getStyles$
|
3249
|
+
const styles = ui.useStyles2(getStyles$f);
|
3250
3250
|
const [keys, setKeys] = React.useState([]);
|
3251
3251
|
const [values, setValues] = React.useState([]);
|
3252
3252
|
const [isKeysLoading, setIsKeysLoading] = React.useState(false);
|
@@ -3317,7 +3317,7 @@ function AdHocFilterRenderer({ filter, model }) {
|
|
3317
3317
|
});
|
3318
3318
|
}
|
3319
3319
|
};
|
3320
|
-
const valueSelect = /* @__PURE__ */ React__default["default"].createElement(ui.Select, __spreadValues$
|
3320
|
+
const valueSelect = /* @__PURE__ */ React__default["default"].createElement(ui.Select, __spreadValues$E({
|
3321
3321
|
virtualized: true,
|
3322
3322
|
allowCustomValue: (_b = model.state.allowCustomValue) != null ? _b : true,
|
3323
3323
|
isValidNewOption: (inputValue) => inputValue.trim().length > 0,
|
@@ -3449,7 +3449,7 @@ function AdHocFilterRenderer({ filter, model }) {
|
|
3449
3449
|
onClick: () => model._removeFilter(filter)
|
3450
3450
|
}));
|
3451
3451
|
}
|
3452
|
-
const getStyles$
|
3452
|
+
const getStyles$f = (theme) => ({
|
3453
3453
|
field: css.css({
|
3454
3454
|
marginBottom: 0
|
3455
3455
|
}),
|
@@ -3601,30 +3601,30 @@ function isFilter(filter) {
|
|
3601
3601
|
return filter !== null && typeof filter.key === "string" && typeof filter.value === "string";
|
3602
3602
|
}
|
3603
3603
|
|
3604
|
-
var __defProp$
|
3605
|
-
var __getOwnPropSymbols$
|
3606
|
-
var __hasOwnProp$
|
3607
|
-
var __propIsEnum$
|
3608
|
-
var __defNormalProp$
|
3609
|
-
var __spreadValues$
|
3604
|
+
var __defProp$D = Object.defineProperty;
|
3605
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
3606
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
3607
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
3608
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3609
|
+
var __spreadValues$D = (a, b) => {
|
3610
3610
|
for (var prop in b || (b = {}))
|
3611
|
-
if (__hasOwnProp$
|
3612
|
-
__defNormalProp$
|
3613
|
-
if (__getOwnPropSymbols$
|
3614
|
-
for (var prop of __getOwnPropSymbols$
|
3615
|
-
if (__propIsEnum$
|
3616
|
-
__defNormalProp$
|
3611
|
+
if (__hasOwnProp$D.call(b, prop))
|
3612
|
+
__defNormalProp$D(a, prop, b[prop]);
|
3613
|
+
if (__getOwnPropSymbols$D)
|
3614
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
3615
|
+
if (__propIsEnum$D.call(b, prop))
|
3616
|
+
__defNormalProp$D(a, prop, b[prop]);
|
3617
3617
|
}
|
3618
3618
|
return a;
|
3619
3619
|
};
|
3620
3620
|
var __objRest$3 = (source, exclude) => {
|
3621
3621
|
var target = {};
|
3622
3622
|
for (var prop in source)
|
3623
|
-
if (__hasOwnProp$
|
3623
|
+
if (__hasOwnProp$D.call(source, prop) && exclude.indexOf(prop) < 0)
|
3624
3624
|
target[prop] = source[prop];
|
3625
|
-
if (source != null && __getOwnPropSymbols$
|
3626
|
-
for (var prop of __getOwnPropSymbols$
|
3627
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
3625
|
+
if (source != null && __getOwnPropSymbols$D)
|
3626
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
3627
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.call(source, prop))
|
3628
3628
|
target[prop] = source[prop];
|
3629
3629
|
}
|
3630
3630
|
return target;
|
@@ -3632,9 +3632,9 @@ var __objRest$3 = (source, exclude) => {
|
|
3632
3632
|
const DropdownItem = React.forwardRef(
|
3633
3633
|
function DropdownItem2(_a, ref) {
|
3634
3634
|
var _b = _a, { children, active, addGroupBottomBorder, isMultiValueEdit, checked } = _b, rest = __objRest$3(_b, ["children", "active", "addGroupBottomBorder", "isMultiValueEdit", "checked"]);
|
3635
|
-
const styles = ui.useStyles2(getStyles$
|
3635
|
+
const styles = ui.useStyles2(getStyles$e);
|
3636
3636
|
const id = React.useId();
|
3637
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadValues$
|
3637
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadValues$D({
|
3638
3638
|
ref,
|
3639
3639
|
role: "option",
|
3640
3640
|
id,
|
@@ -3650,7 +3650,7 @@ const DropdownItem = React.forwardRef(
|
|
3650
3650
|
}) : null, children)));
|
3651
3651
|
}
|
3652
3652
|
);
|
3653
|
-
const getStyles$
|
3653
|
+
const getStyles$e = (theme) => ({
|
3654
3654
|
option: css.css({
|
3655
3655
|
label: "grafana-select-option",
|
3656
3656
|
top: 0,
|
@@ -3721,7 +3721,7 @@ const OptionsErrorPlaceholder = ({ handleFetchOptions }) => {
|
|
3721
3721
|
}, "An error has occurred fetching labels. Click to retry");
|
3722
3722
|
};
|
3723
3723
|
const MultiValueApplyButton = ({ onApply, floatingElement, maxOptionWidth, menuHeight }) => {
|
3724
|
-
const styles = ui.useStyles2(getStyles$
|
3724
|
+
const styles = ui.useStyles2(getStyles$e);
|
3725
3725
|
const floatingElementRect = floatingElement == null ? void 0 : floatingElement.getBoundingClientRect();
|
3726
3726
|
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
3727
3727
|
className: styles.multiValueApplyWrapper,
|
@@ -3941,25 +3941,25 @@ const useFloatingInteractions = ({
|
|
3941
3941
|
};
|
3942
3942
|
};
|
3943
3943
|
|
3944
|
-
var __defProp$
|
3945
|
-
var __defProps$
|
3946
|
-
var __getOwnPropDescs$
|
3947
|
-
var __getOwnPropSymbols$
|
3948
|
-
var __hasOwnProp$
|
3949
|
-
var __propIsEnum$
|
3950
|
-
var __defNormalProp$
|
3951
|
-
var __spreadValues$
|
3944
|
+
var __defProp$C = Object.defineProperty;
|
3945
|
+
var __defProps$q = Object.defineProperties;
|
3946
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
3947
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
3948
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
3949
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
3950
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3951
|
+
var __spreadValues$C = (a, b) => {
|
3952
3952
|
for (var prop in b || (b = {}))
|
3953
|
-
if (__hasOwnProp$
|
3954
|
-
__defNormalProp$
|
3955
|
-
if (__getOwnPropSymbols$
|
3956
|
-
for (var prop of __getOwnPropSymbols$
|
3957
|
-
if (__propIsEnum$
|
3958
|
-
__defNormalProp$
|
3953
|
+
if (__hasOwnProp$C.call(b, prop))
|
3954
|
+
__defNormalProp$C(a, prop, b[prop]);
|
3955
|
+
if (__getOwnPropSymbols$C)
|
3956
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
3957
|
+
if (__propIsEnum$C.call(b, prop))
|
3958
|
+
__defNormalProp$C(a, prop, b[prop]);
|
3959
3959
|
}
|
3960
3960
|
return a;
|
3961
3961
|
};
|
3962
|
-
var __spreadProps$
|
3962
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
3963
3963
|
const MultiValuePill = ({
|
3964
3964
|
item,
|
3965
3965
|
handleRemoveMultiValue,
|
@@ -3967,7 +3967,7 @@ const MultiValuePill = ({
|
|
3967
3967
|
handleEditMultiValuePill
|
3968
3968
|
}) => {
|
3969
3969
|
var _a, _b;
|
3970
|
-
const styles = ui.useStyles2(getStyles$
|
3970
|
+
const styles = ui.useStyles2(getStyles$d);
|
3971
3971
|
const editMultiValuePill = React.useCallback(
|
3972
3972
|
(e) => {
|
3973
3973
|
e.stopPropagation();
|
@@ -4020,8 +4020,8 @@ const MultiValuePill = ({
|
|
4020
4020
|
id: `${item.value}-${index}-close-icon`
|
4021
4021
|
})));
|
4022
4022
|
};
|
4023
|
-
const getStyles$
|
4024
|
-
basePill: css.css(__spreadProps$
|
4023
|
+
const getStyles$d = (theme) => ({
|
4024
|
+
basePill: css.css(__spreadProps$q(__spreadValues$C({
|
4025
4025
|
display: "flex",
|
4026
4026
|
alignItems: "center",
|
4027
4027
|
background: theme.colors.action.disabledBackground,
|
@@ -4049,25 +4049,25 @@ const getStyles$c = (theme) => ({
|
|
4049
4049
|
})
|
4050
4050
|
});
|
4051
4051
|
|
4052
|
-
var __defProp$
|
4053
|
-
var __defProps$
|
4054
|
-
var __getOwnPropDescs$
|
4055
|
-
var __getOwnPropSymbols$
|
4056
|
-
var __hasOwnProp$
|
4057
|
-
var __propIsEnum$
|
4058
|
-
var __defNormalProp$
|
4059
|
-
var __spreadValues$
|
4052
|
+
var __defProp$B = Object.defineProperty;
|
4053
|
+
var __defProps$p = Object.defineProperties;
|
4054
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
4055
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
4056
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
4057
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
4058
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4059
|
+
var __spreadValues$B = (a, b) => {
|
4060
4060
|
for (var prop in b || (b = {}))
|
4061
|
-
if (__hasOwnProp$
|
4062
|
-
__defNormalProp$
|
4063
|
-
if (__getOwnPropSymbols$
|
4064
|
-
for (var prop of __getOwnPropSymbols$
|
4065
|
-
if (__propIsEnum$
|
4066
|
-
__defNormalProp$
|
4061
|
+
if (__hasOwnProp$B.call(b, prop))
|
4062
|
+
__defNormalProp$B(a, prop, b[prop]);
|
4063
|
+
if (__getOwnPropSymbols$B)
|
4064
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
4065
|
+
if (__propIsEnum$B.call(b, prop))
|
4066
|
+
__defNormalProp$B(a, prop, b[prop]);
|
4067
4067
|
}
|
4068
4068
|
return a;
|
4069
4069
|
};
|
4070
|
-
var __spreadProps$
|
4070
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
4071
4071
|
const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model, isAlwaysWip, handleChangeViewMode, focusOnWipInputRef, populateInputOnEdit }, parentRef) {
|
4072
4072
|
var _a, _b, _c, _d;
|
4073
4073
|
const [open, setOpen] = React.useState(false);
|
@@ -4077,7 +4077,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4077
4077
|
const [inputValue, setInputValue] = React.useState("");
|
4078
4078
|
const [activeIndex, setActiveIndex] = React.useState(null);
|
4079
4079
|
const [filterInputType, setInputType] = React.useState(!isAlwaysWip ? "value" : "key");
|
4080
|
-
const styles = ui.useStyles2(getStyles$
|
4080
|
+
const styles = ui.useStyles2(getStyles$c);
|
4081
4081
|
const [filterMultiValues, setFilterMultiValues] = React.useState([]);
|
4082
4082
|
const [_, setForceRefresh] = React.useState({});
|
4083
4083
|
const allowCustomValue = (_a = model.state.allowCustomValue) != null ? _a : true;
|
@@ -4445,7 +4445,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4445
4445
|
index: i,
|
4446
4446
|
handleRemoveMultiValue,
|
4447
4447
|
handleEditMultiValuePill
|
4448
|
-
})) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$
|
4448
|
+
})) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$p(__spreadValues$B({}, getReferenceProps({
|
4449
4449
|
ref: refs.setReference,
|
4450
4450
|
onChange,
|
4451
4451
|
value: inputValue,
|
@@ -4481,14 +4481,14 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4481
4481
|
visuallyHiddenDismiss: true,
|
4482
4482
|
modal: false
|
4483
4483
|
}, /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement("div", {
|
4484
|
-
style: __spreadProps$
|
4484
|
+
style: __spreadProps$p(__spreadValues$B({}, floatingStyles), {
|
4485
4485
|
width: `${optionsError ? ERROR_STATE_DROPDOWN_WIDTH : maxOptionWidth}px`,
|
4486
4486
|
transform: isMultiValueEdit ? `translate(${((_c = multiValuePillWrapperRef.current) == null ? void 0 : _c.getBoundingClientRect().left) || 0}px, ${(((_d = refs.domReference.current) == null ? void 0 : _d.getBoundingClientRect().bottom) || 0) + 10}px )` : floatingStyles.transform
|
4487
4487
|
}),
|
4488
4488
|
ref: refs.setFloating,
|
4489
4489
|
className: styles.dropdownWrapper,
|
4490
4490
|
tabIndex: -1
|
4491
|
-
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$
|
4491
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$p(__spreadValues$B({
|
4492
4492
|
style: {
|
4493
4493
|
height: `${rowVirtualizer.getTotalSize() || VIRTUAL_LIST_ITEM_HEIGHT}px`
|
4494
4494
|
}
|
@@ -4516,7 +4516,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4516
4516
|
}
|
4517
4517
|
const nextItem = filteredDropDownItems[virtualItem.index + 1];
|
4518
4518
|
const shouldAddBottomBorder = nextItem && !nextItem.group && !nextItem.options && item.group;
|
4519
|
-
return /* @__PURE__ */ React__default["default"].createElement(DropdownItem, __spreadProps$
|
4519
|
+
return /* @__PURE__ */ React__default["default"].createElement(DropdownItem, __spreadProps$p(__spreadValues$B({}, getItemProps({
|
4520
4520
|
key: `${item.value}-${index}`,
|
4521
4521
|
ref(node) {
|
4522
4522
|
listRef.current[index] = node;
|
@@ -4581,7 +4581,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4581
4581
|
menuHeight: Math.min(rowVirtualizer.getTotalSize(), MAX_MENU_HEIGHT)
|
4582
4582
|
}) : null))));
|
4583
4583
|
});
|
4584
|
-
const getStyles$
|
4584
|
+
const getStyles$c = (theme) => ({
|
4585
4585
|
comboboxWrapper: css.css({
|
4586
4586
|
display: "flex",
|
4587
4587
|
flexWrap: "wrap"
|
@@ -4591,7 +4591,7 @@ const getStyles$b = (theme) => ({
|
|
4591
4591
|
alignItems: "center",
|
4592
4592
|
flexWrap: "wrap"
|
4593
4593
|
}),
|
4594
|
-
basePill: css.css(__spreadProps$
|
4594
|
+
basePill: css.css(__spreadProps$p(__spreadValues$B({
|
4595
4595
|
display: "flex",
|
4596
4596
|
alignItems: "center",
|
4597
4597
|
background: theme.colors.action.disabledBackground,
|
@@ -4645,34 +4645,34 @@ const getStyles$b = (theme) => ({
|
|
4645
4645
|
borderTop: `1px solid ${theme.colors.border.weak}`
|
4646
4646
|
}
|
4647
4647
|
}),
|
4648
|
-
descriptionText: css.css(__spreadProps$
|
4648
|
+
descriptionText: css.css(__spreadProps$p(__spreadValues$B({}, theme.typography.bodySmall), {
|
4649
4649
|
color: theme.colors.text.secondary,
|
4650
4650
|
paddingTop: theme.spacing(0.5)
|
4651
4651
|
}))
|
4652
4652
|
});
|
4653
4653
|
|
4654
|
-
var __defProp$
|
4655
|
-
var __defProps$
|
4656
|
-
var __getOwnPropDescs$
|
4657
|
-
var __getOwnPropSymbols$
|
4658
|
-
var __hasOwnProp$
|
4659
|
-
var __propIsEnum$
|
4660
|
-
var __defNormalProp$
|
4661
|
-
var __spreadValues$
|
4654
|
+
var __defProp$A = Object.defineProperty;
|
4655
|
+
var __defProps$o = Object.defineProperties;
|
4656
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
4657
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
4658
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
4659
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
4660
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4661
|
+
var __spreadValues$A = (a, b) => {
|
4662
4662
|
for (var prop in b || (b = {}))
|
4663
|
-
if (__hasOwnProp$
|
4664
|
-
__defNormalProp$
|
4665
|
-
if (__getOwnPropSymbols$
|
4666
|
-
for (var prop of __getOwnPropSymbols$
|
4667
|
-
if (__propIsEnum$
|
4668
|
-
__defNormalProp$
|
4663
|
+
if (__hasOwnProp$A.call(b, prop))
|
4664
|
+
__defNormalProp$A(a, prop, b[prop]);
|
4665
|
+
if (__getOwnPropSymbols$A)
|
4666
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
4667
|
+
if (__propIsEnum$A.call(b, prop))
|
4668
|
+
__defNormalProp$A(a, prop, b[prop]);
|
4669
4669
|
}
|
4670
4670
|
return a;
|
4671
4671
|
};
|
4672
|
-
var __spreadProps$
|
4672
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
4673
4673
|
function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
4674
4674
|
var _a, _b, _c;
|
4675
|
-
const styles = ui.useStyles2(getStyles$
|
4675
|
+
const styles = ui.useStyles2(getStyles$b);
|
4676
4676
|
const [viewMode, setViewMode] = React.useState(true);
|
4677
4677
|
const [shouldFocusOnPillWrapper, setShouldFocusOnPillWrapper] = React.useState(false);
|
4678
4678
|
const pillWrapperRef = React.useRef(null);
|
@@ -4762,8 +4762,8 @@ function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
|
4762
4762
|
populateInputOnEdit
|
4763
4763
|
});
|
4764
4764
|
}
|
4765
|
-
const getStyles$
|
4766
|
-
combinedFilterPill: css.css(__spreadProps$
|
4765
|
+
const getStyles$b = (theme) => ({
|
4766
|
+
combinedFilterPill: css.css(__spreadProps$o(__spreadValues$A({
|
4767
4767
|
display: "flex",
|
4768
4768
|
alignItems: "center",
|
4769
4769
|
background: theme.colors.action.selected,
|
@@ -4823,7 +4823,7 @@ const AdHocFiltersAlwaysWipCombobox = React.forwardRef(function AdHocFiltersAlwa
|
|
4823
4823
|
|
4824
4824
|
const AdHocFiltersComboboxRenderer = React.memo(function AdHocFiltersComboboxRenderer2({ model }) {
|
4825
4825
|
const { filters, readOnly } = model.useState();
|
4826
|
-
const styles = ui.useStyles2(getStyles$
|
4826
|
+
const styles = ui.useStyles2(getStyles$a);
|
4827
4827
|
const focusOnWipInputRef = React.useRef();
|
4828
4828
|
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
4829
4829
|
className: css.cx(styles.comboboxWrapper, { [styles.comboboxFocusOutline]: !readOnly }),
|
@@ -4846,7 +4846,7 @@ const AdHocFiltersComboboxRenderer = React.memo(function AdHocFiltersComboboxRen
|
|
4846
4846
|
ref: focusOnWipInputRef
|
4847
4847
|
}) : null);
|
4848
4848
|
});
|
4849
|
-
const getStyles$
|
4849
|
+
const getStyles$a = (theme) => ({
|
4850
4850
|
comboboxWrapper: css.css({
|
4851
4851
|
display: "flex",
|
4852
4852
|
flexWrap: "wrap",
|
@@ -4878,25 +4878,25 @@ const getStyles$9 = (theme) => ({
|
|
4878
4878
|
})
|
4879
4879
|
});
|
4880
4880
|
|
4881
|
-
var __defProp$
|
4882
|
-
var __defProps$
|
4883
|
-
var __getOwnPropDescs$
|
4884
|
-
var __getOwnPropSymbols$
|
4885
|
-
var __hasOwnProp$
|
4886
|
-
var __propIsEnum$
|
4887
|
-
var __defNormalProp$
|
4888
|
-
var __spreadValues$
|
4881
|
+
var __defProp$z = Object.defineProperty;
|
4882
|
+
var __defProps$n = Object.defineProperties;
|
4883
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
4884
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
4885
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
4886
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
4887
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4888
|
+
var __spreadValues$z = (a, b) => {
|
4889
4889
|
for (var prop in b || (b = {}))
|
4890
|
-
if (__hasOwnProp$
|
4891
|
-
__defNormalProp$
|
4892
|
-
if (__getOwnPropSymbols$
|
4893
|
-
for (var prop of __getOwnPropSymbols$
|
4894
|
-
if (__propIsEnum$
|
4895
|
-
__defNormalProp$
|
4890
|
+
if (__hasOwnProp$z.call(b, prop))
|
4891
|
+
__defNormalProp$z(a, prop, b[prop]);
|
4892
|
+
if (__getOwnPropSymbols$z)
|
4893
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
4894
|
+
if (__propIsEnum$z.call(b, prop))
|
4895
|
+
__defNormalProp$z(a, prop, b[prop]);
|
4896
4896
|
}
|
4897
4897
|
return a;
|
4898
4898
|
};
|
4899
|
-
var __spreadProps$
|
4899
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
4900
4900
|
const OPERATORS = [
|
4901
4901
|
{
|
4902
4902
|
value: "=",
|
@@ -4936,7 +4936,7 @@ const OPERATORS = [
|
|
4936
4936
|
class AdHocFiltersVariable extends SceneObjectBase {
|
4937
4937
|
constructor(state) {
|
4938
4938
|
var _a, _b;
|
4939
|
-
super(__spreadValues$
|
4939
|
+
super(__spreadValues$z({
|
4940
4940
|
type: "adhoc",
|
4941
4941
|
name: (_a = state.name) != null ? _a : "Filters",
|
4942
4942
|
filters: [],
|
@@ -4969,14 +4969,14 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
4969
4969
|
const { filters, _wip } = this.state;
|
4970
4970
|
if (filter === _wip) {
|
4971
4971
|
if ("value" in update && update["value"] !== "") {
|
4972
|
-
this.setState({ filters: [...filters, __spreadValues$
|
4972
|
+
this.setState({ filters: [...filters, __spreadValues$z(__spreadValues$z({}, _wip), update)], _wip: void 0 });
|
4973
4973
|
} else {
|
4974
|
-
this.setState({ _wip: __spreadValues$
|
4974
|
+
this.setState({ _wip: __spreadValues$z(__spreadValues$z({}, filter), update) });
|
4975
4975
|
}
|
4976
4976
|
return;
|
4977
4977
|
}
|
4978
4978
|
const updatedFilters = this.state.filters.map((f) => {
|
4979
|
-
return f === filter ? __spreadValues$
|
4979
|
+
return f === filter ? __spreadValues$z(__spreadValues$z({}, f), update) : f;
|
4980
4980
|
});
|
4981
4981
|
this.setState({ filters: updatedFilters });
|
4982
4982
|
}
|
@@ -5004,7 +5004,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
5004
5004
|
if (index === filterToForceIndex) {
|
5005
5005
|
return [
|
5006
5006
|
...acc,
|
5007
|
-
__spreadProps$
|
5007
|
+
__spreadProps$n(__spreadValues$z({}, f), {
|
5008
5008
|
forceEdit: true
|
5009
5009
|
})
|
5010
5010
|
];
|
@@ -5033,7 +5033,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
5033
5033
|
const otherFilters = this.state.filters.filter((f) => f.key !== currentKey).concat((_c = this.state.baseFilters) != null ? _c : []);
|
5034
5034
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
5035
5035
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
5036
|
-
const response = await ds.getTagKeys(__spreadValues$
|
5036
|
+
const response = await ds.getTagKeys(__spreadValues$z({
|
5037
5037
|
filters: otherFilters,
|
5038
5038
|
queries,
|
5039
5039
|
timeRange
|
@@ -5064,7 +5064,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
5064
5064
|
const otherFilters = this.state.filters.filter((f) => f.key !== filter.key).concat((_c = this.state.baseFilters) != null ? _c : []);
|
5065
5065
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
5066
5066
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
5067
|
-
const response = await ds.getTagValues(__spreadValues$
|
5067
|
+
const response = await ds.getTagValues(__spreadValues$z({
|
5068
5068
|
key: filter.key,
|
5069
5069
|
filters: otherFilters,
|
5070
5070
|
timeRange,
|
@@ -5099,7 +5099,7 @@ function renderExpression(builder, filters) {
|
|
5099
5099
|
}
|
5100
5100
|
function AdHocFiltersVariableRenderer({ model }) {
|
5101
5101
|
const { filters, readOnly, addFilterButtonText } = model.useState();
|
5102
|
-
const styles = ui.useStyles2(getStyles$
|
5102
|
+
const styles = ui.useStyles2(getStyles$9);
|
5103
5103
|
if (model.state.layout === "combobox") {
|
5104
5104
|
return /* @__PURE__ */ React__default["default"].createElement(AdHocFiltersComboboxRenderer, {
|
5105
5105
|
model
|
@@ -5118,7 +5118,7 @@ function AdHocFiltersVariableRenderer({ model }) {
|
|
5118
5118
|
addFilterButtonText
|
5119
5119
|
}));
|
5120
5120
|
}
|
5121
|
-
const getStyles$
|
5121
|
+
const getStyles$9 = (theme) => ({
|
5122
5122
|
wrapper: css.css({
|
5123
5123
|
display: "flex",
|
5124
5124
|
flexWrap: "wrap",
|
@@ -5191,25 +5191,25 @@ function areDifferentLayers(a, b) {
|
|
5191
5191
|
return false;
|
5192
5192
|
}
|
5193
5193
|
|
5194
|
-
var __defProp$
|
5195
|
-
var __defProps$
|
5196
|
-
var __getOwnPropDescs$
|
5197
|
-
var __getOwnPropSymbols$
|
5198
|
-
var __hasOwnProp$
|
5199
|
-
var __propIsEnum$
|
5200
|
-
var __defNormalProp$
|
5201
|
-
var __spreadValues$
|
5194
|
+
var __defProp$y = Object.defineProperty;
|
5195
|
+
var __defProps$m = Object.defineProperties;
|
5196
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
5197
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
5198
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
5199
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
5200
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5201
|
+
var __spreadValues$y = (a, b) => {
|
5202
5202
|
for (var prop in b || (b = {}))
|
5203
|
-
if (__hasOwnProp$
|
5204
|
-
__defNormalProp$
|
5205
|
-
if (__getOwnPropSymbols$
|
5206
|
-
for (var prop of __getOwnPropSymbols$
|
5207
|
-
if (__propIsEnum$
|
5208
|
-
__defNormalProp$
|
5203
|
+
if (__hasOwnProp$y.call(b, prop))
|
5204
|
+
__defNormalProp$y(a, prop, b[prop]);
|
5205
|
+
if (__getOwnPropSymbols$y)
|
5206
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
5207
|
+
if (__propIsEnum$y.call(b, prop))
|
5208
|
+
__defNormalProp$y(a, prop, b[prop]);
|
5209
5209
|
}
|
5210
5210
|
return a;
|
5211
5211
|
};
|
5212
|
-
var __spreadProps$
|
5212
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
5213
5213
|
let counter$1 = 100;
|
5214
5214
|
function getNextRequestId$1() {
|
5215
5215
|
return "SQR" + counter$1++;
|
@@ -5311,9 +5311,9 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
5311
5311
|
return;
|
5312
5312
|
}
|
5313
5313
|
this._layerAnnotations = annotations;
|
5314
|
-
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$
|
5314
|
+
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$m(__spreadValues$y({}, emptyPanelData), { timeRange: timeRange.state.value });
|
5315
5315
|
this.setState({
|
5316
|
-
data: __spreadProps$
|
5316
|
+
data: __spreadProps$m(__spreadValues$y({}, baseStateUpdate), {
|
5317
5317
|
annotations: [...(_d = this._resultAnnotations) != null ? _d : [], ...annotations],
|
5318
5318
|
alertState: alertState != null ? alertState : (_e = this.state.data) == null ? void 0 : _e.alertState
|
5319
5319
|
})
|
@@ -5436,7 +5436,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
5436
5436
|
this._dataLayersSub = void 0;
|
5437
5437
|
}
|
5438
5438
|
this.setState({
|
5439
|
-
data: __spreadProps$
|
5439
|
+
data: __spreadProps$m(__spreadValues$y({}, this.state.data), { state: schema.LoadingState.Done })
|
5440
5440
|
});
|
5441
5441
|
}
|
5442
5442
|
async runWithTimeRange(timeRange) {
|
@@ -5450,7 +5450,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
5450
5450
|
(_a = this._querySub) == null ? void 0 : _a.unsubscribe();
|
5451
5451
|
if (this._variableDependency.hasDependencyInLoadingState()) {
|
5452
5452
|
writeSceneLog("SceneQueryRunner", "Variable dependency is in loading state, skipping query execution");
|
5453
|
-
this.setState({ data: __spreadProps$
|
5453
|
+
this.setState({ data: __spreadProps$m(__spreadValues$y({}, (_b = this.state.data) != null ? _b : emptyPanelData), { state: schema.LoadingState.Loading }) });
|
5454
5454
|
return;
|
5455
5455
|
}
|
5456
5456
|
const { queries } = this.state;
|
@@ -5482,7 +5482,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
5482
5482
|
this._querySub = stream.subscribe(this.onDataReceived);
|
5483
5483
|
} catch (err) {
|
5484
5484
|
console.error("PanelQueryRunner Error", err);
|
5485
|
-
this.onDataReceived(__spreadProps$
|
5485
|
+
this.onDataReceived(__spreadProps$m(__spreadValues$y(__spreadValues$y({}, emptyPanelData), this.state.data), {
|
5486
5486
|
state: schema.LoadingState.Error,
|
5487
5487
|
errors: [runtime.toDataQueryError(err)]
|
5488
5488
|
}));
|
@@ -5492,10 +5492,10 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
5492
5492
|
var _a;
|
5493
5493
|
const clone = super.clone(withState);
|
5494
5494
|
if (this._resultAnnotations) {
|
5495
|
-
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$
|
5495
|
+
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$y({}, frame));
|
5496
5496
|
}
|
5497
5497
|
if (this._layerAnnotations) {
|
5498
|
-
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$
|
5498
|
+
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$y({}, frame));
|
5499
5499
|
}
|
5500
5500
|
clone["_variableValueRecorder"] = this._variableValueRecorder.cloneAndRecordCurrentValuesForSceneObject(this);
|
5501
5501
|
clone["_containerWidth"] = this._containerWidth;
|
@@ -5505,7 +5505,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
5505
5505
|
prepareRequests(timeRange, ds) {
|
5506
5506
|
var _a;
|
5507
5507
|
const { minInterval, queries } = this.state;
|
5508
|
-
let request = __spreadValues$
|
5508
|
+
let request = __spreadValues$y({
|
5509
5509
|
app: "scenes",
|
5510
5510
|
requestId: getNextRequestId$1(),
|
5511
5511
|
timezone: timeRange.getTimeZone(),
|
@@ -5551,7 +5551,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
5551
5551
|
for (const provider of (_a = this.getClosestExtraQueryProviders()) != null ? _a : []) {
|
5552
5552
|
for (const { req, processor } of provider.getExtraQueries(request)) {
|
5553
5553
|
const requestId = getNextRequestId$1();
|
5554
|
-
secondaryRequests.push(__spreadProps$
|
5554
|
+
secondaryRequests.push(__spreadProps$m(__spreadValues$y({}, req), { requestId }));
|
5555
5555
|
secondaryProcessors.set(requestId, processor != null ? processor : passthroughProcessor);
|
5556
5556
|
}
|
5557
5557
|
}
|
@@ -5798,28 +5798,28 @@ function getFuzzySearcher(haystack, limit = 1e4) {
|
|
5798
5798
|
};
|
5799
5799
|
}
|
5800
5800
|
|
5801
|
-
var __defProp$
|
5802
|
-
var __defProps$
|
5803
|
-
var __getOwnPropDescs$
|
5804
|
-
var __getOwnPropSymbols$
|
5805
|
-
var __hasOwnProp$
|
5806
|
-
var __propIsEnum$
|
5807
|
-
var __defNormalProp$
|
5808
|
-
var __spreadValues$
|
5801
|
+
var __defProp$x = Object.defineProperty;
|
5802
|
+
var __defProps$l = Object.defineProperties;
|
5803
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
5804
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
5805
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
5806
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
5807
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5808
|
+
var __spreadValues$x = (a, b) => {
|
5809
5809
|
for (var prop in b || (b = {}))
|
5810
|
-
if (__hasOwnProp$
|
5811
|
-
__defNormalProp$
|
5812
|
-
if (__getOwnPropSymbols$
|
5813
|
-
for (var prop of __getOwnPropSymbols$
|
5814
|
-
if (__propIsEnum$
|
5815
|
-
__defNormalProp$
|
5810
|
+
if (__hasOwnProp$x.call(b, prop))
|
5811
|
+
__defNormalProp$x(a, prop, b[prop]);
|
5812
|
+
if (__getOwnPropSymbols$x)
|
5813
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
5814
|
+
if (__propIsEnum$x.call(b, prop))
|
5815
|
+
__defNormalProp$x(a, prop, b[prop]);
|
5816
5816
|
}
|
5817
5817
|
return a;
|
5818
5818
|
};
|
5819
|
-
var __spreadProps$
|
5819
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
5820
5820
|
class ConstantVariable extends SceneObjectBase {
|
5821
5821
|
constructor(initialState) {
|
5822
|
-
super(__spreadProps$
|
5822
|
+
super(__spreadProps$l(__spreadValues$x({
|
5823
5823
|
type: "constant",
|
5824
5824
|
value: "",
|
5825
5825
|
name: ""
|
@@ -5997,25 +5997,25 @@ const hasCustomVariableSupport = (datasource) => {
|
|
5997
5997
|
return "query" in variableSupport && "editor" in variableSupport && Boolean(variableSupport.query) && Boolean(variableSupport.editor);
|
5998
5998
|
};
|
5999
5999
|
|
6000
|
-
var __defProp$
|
6001
|
-
var __defProps$
|
6002
|
-
var __getOwnPropDescs$
|
6003
|
-
var __getOwnPropSymbols$
|
6004
|
-
var __hasOwnProp$
|
6005
|
-
var __propIsEnum$
|
6006
|
-
var __defNormalProp$
|
6007
|
-
var __spreadValues$
|
6000
|
+
var __defProp$w = Object.defineProperty;
|
6001
|
+
var __defProps$k = Object.defineProperties;
|
6002
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
6003
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
6004
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
6005
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
6006
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6007
|
+
var __spreadValues$w = (a, b) => {
|
6008
6008
|
for (var prop in b || (b = {}))
|
6009
|
-
if (__hasOwnProp$
|
6010
|
-
__defNormalProp$
|
6011
|
-
if (__getOwnPropSymbols$
|
6012
|
-
for (var prop of __getOwnPropSymbols$
|
6013
|
-
if (__propIsEnum$
|
6014
|
-
__defNormalProp$
|
6009
|
+
if (__hasOwnProp$w.call(b, prop))
|
6010
|
+
__defNormalProp$w(a, prop, b[prop]);
|
6011
|
+
if (__getOwnPropSymbols$w)
|
6012
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
6013
|
+
if (__propIsEnum$w.call(b, prop))
|
6014
|
+
__defNormalProp$w(a, prop, b[prop]);
|
6015
6015
|
}
|
6016
6016
|
return a;
|
6017
6017
|
};
|
6018
|
-
var __spreadProps$
|
6018
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
6019
6019
|
class StandardQueryRunner {
|
6020
6020
|
constructor(datasource, _runRequest = runtime.getRunRequest()) {
|
6021
6021
|
this.datasource = datasource;
|
@@ -6052,7 +6052,7 @@ class LegacyQueryRunner {
|
|
6052
6052
|
return getEmptyMetricFindValueObservable();
|
6053
6053
|
}
|
6054
6054
|
return rxjs.from(
|
6055
|
-
this.datasource.metricFindQuery(variable.state.query, __spreadProps$
|
6055
|
+
this.datasource.metricFindQuery(variable.state.query, __spreadProps$k(__spreadValues$w({}, request), {
|
6056
6056
|
variable: {
|
6057
6057
|
name: variable.state.name,
|
6058
6058
|
type: variable.state.type
|
@@ -6114,7 +6114,7 @@ function ensureVariableQueryModelIsADataQuery(variable) {
|
|
6114
6114
|
return { query, refId: `variable-${variable.state.name}` };
|
6115
6115
|
}
|
6116
6116
|
if (query.refId == null) {
|
6117
|
-
return __spreadProps$
|
6117
|
+
return __spreadProps$k(__spreadValues$w({}, query), { refId: `variable-${variable.state.name}` });
|
6118
6118
|
}
|
6119
6119
|
return variable.state.query;
|
6120
6120
|
}
|
@@ -6329,25 +6329,25 @@ function areMetricFindValues(data$1) {
|
|
6329
6329
|
return false;
|
6330
6330
|
}
|
6331
6331
|
|
6332
|
-
var __defProp$
|
6333
|
-
var __getOwnPropSymbols$
|
6334
|
-
var __hasOwnProp$
|
6335
|
-
var __propIsEnum$
|
6336
|
-
var __defNormalProp$
|
6337
|
-
var __spreadValues$
|
6332
|
+
var __defProp$v = Object.defineProperty;
|
6333
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
6334
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
6335
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
6336
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6337
|
+
var __spreadValues$v = (a, b) => {
|
6338
6338
|
for (var prop in b || (b = {}))
|
6339
|
-
if (__hasOwnProp$
|
6340
|
-
__defNormalProp$
|
6341
|
-
if (__getOwnPropSymbols$
|
6342
|
-
for (var prop of __getOwnPropSymbols$
|
6343
|
-
if (__propIsEnum$
|
6344
|
-
__defNormalProp$
|
6339
|
+
if (__hasOwnProp$v.call(b, prop))
|
6340
|
+
__defNormalProp$v(a, prop, b[prop]);
|
6341
|
+
if (__getOwnPropSymbols$v)
|
6342
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
6343
|
+
if (__propIsEnum$v.call(b, prop))
|
6344
|
+
__defNormalProp$v(a, prop, b[prop]);
|
6345
6345
|
}
|
6346
6346
|
return a;
|
6347
6347
|
};
|
6348
6348
|
class QueryVariable extends MultiValueVariable {
|
6349
6349
|
constructor(initialState) {
|
6350
|
-
super(__spreadValues$
|
6350
|
+
super(__spreadValues$v({
|
6351
6351
|
type: "query",
|
6352
6352
|
name: "",
|
6353
6353
|
value: "",
|
@@ -6794,28 +6794,28 @@ class ActWhenVariableChanged extends SceneObjectBase {
|
|
6794
6794
|
}
|
6795
6795
|
}
|
6796
6796
|
|
6797
|
-
var __defProp$
|
6798
|
-
var __defProps$
|
6799
|
-
var __getOwnPropDescs$
|
6800
|
-
var __getOwnPropSymbols$
|
6801
|
-
var __hasOwnProp$
|
6802
|
-
var __propIsEnum$
|
6803
|
-
var __defNormalProp$
|
6804
|
-
var __spreadValues$
|
6797
|
+
var __defProp$u = Object.defineProperty;
|
6798
|
+
var __defProps$j = Object.defineProperties;
|
6799
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
6800
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
6801
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
6802
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
6803
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6804
|
+
var __spreadValues$u = (a, b) => {
|
6805
6805
|
for (var prop in b || (b = {}))
|
6806
|
-
if (__hasOwnProp$
|
6807
|
-
__defNormalProp$
|
6808
|
-
if (__getOwnPropSymbols$
|
6809
|
-
for (var prop of __getOwnPropSymbols$
|
6810
|
-
if (__propIsEnum$
|
6811
|
-
__defNormalProp$
|
6806
|
+
if (__hasOwnProp$u.call(b, prop))
|
6807
|
+
__defNormalProp$u(a, prop, b[prop]);
|
6808
|
+
if (__getOwnPropSymbols$u)
|
6809
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
6810
|
+
if (__propIsEnum$u.call(b, prop))
|
6811
|
+
__defNormalProp$u(a, prop, b[prop]);
|
6812
6812
|
}
|
6813
6813
|
return a;
|
6814
6814
|
};
|
6815
|
-
var __spreadProps$
|
6815
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
6816
6816
|
class CursorSync extends SceneObjectBase {
|
6817
6817
|
constructor(state) {
|
6818
|
-
super(__spreadProps$
|
6818
|
+
super(__spreadProps$j(__spreadValues$u({}, state), {
|
6819
6819
|
sync: state.sync || schema.DashboardCursorSync.Off
|
6820
6820
|
}));
|
6821
6821
|
this.getEventsBus = (panel) => {
|
@@ -6863,6 +6863,64 @@ function getCursorSyncScope(sceneObject) {
|
|
6863
6863
|
return sceneGraph.findObject(sceneObject, (o) => o instanceof CursorSync);
|
6864
6864
|
}
|
6865
6865
|
|
6866
|
+
function VizPanelSeriesLimit({ data, showAll, seriesLimit, onShowAllSeries }) {
|
6867
|
+
const styles = ui.useStyles2(getStyles$8);
|
6868
|
+
const seriesCount = data == null ? void 0 : data.series.length;
|
6869
|
+
if (seriesCount === void 0 || seriesCount < seriesLimit) {
|
6870
|
+
return null;
|
6871
|
+
}
|
6872
|
+
const buttonText = showAll ? "Restore limit" : `Show all ${seriesCount}`;
|
6873
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
6874
|
+
className: styles.timeSeriesDisclaimer
|
6875
|
+
}, !showAll && /* @__PURE__ */ React__default["default"].createElement("span", {
|
6876
|
+
className: styles.warningMessage
|
6877
|
+
}, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
|
6878
|
+
title: `Showing only ${seriesLimit} series`,
|
6879
|
+
name: "exclamation-triangle",
|
6880
|
+
"aria-hidden": "true"
|
6881
|
+
})), /* @__PURE__ */ React__default["default"].createElement(ui.Tooltip, {
|
6882
|
+
content: "Rendering too many series in a single panel may impact performance and make data harder to read."
|
6883
|
+
}, /* @__PURE__ */ React__default["default"].createElement(ui.Button, {
|
6884
|
+
variant: "secondary",
|
6885
|
+
size: "sm",
|
6886
|
+
onClick: onShowAllSeries
|
6887
|
+
}, buttonText)));
|
6888
|
+
}
|
6889
|
+
const getStyles$8 = (theme) => ({
|
6890
|
+
timeSeriesDisclaimer: css.css({
|
6891
|
+
label: "time-series-disclaimer",
|
6892
|
+
display: "flex",
|
6893
|
+
alignItems: "center",
|
6894
|
+
gap: theme.spacing(1)
|
6895
|
+
}),
|
6896
|
+
warningMessage: css.css({
|
6897
|
+
display: "flex",
|
6898
|
+
alignItems: "center",
|
6899
|
+
gap: theme.spacing(0.5),
|
6900
|
+
color: theme.colors.warning.main,
|
6901
|
+
fontSize: theme.typography.bodySmall.fontSize
|
6902
|
+
})
|
6903
|
+
});
|
6904
|
+
|
6905
|
+
var __defProp$t = Object.defineProperty;
|
6906
|
+
var __defProps$i = Object.defineProperties;
|
6907
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
6908
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
6909
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
6910
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
6911
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6912
|
+
var __spreadValues$t = (a, b) => {
|
6913
|
+
for (var prop in b || (b = {}))
|
6914
|
+
if (__hasOwnProp$t.call(b, prop))
|
6915
|
+
__defNormalProp$t(a, prop, b[prop]);
|
6916
|
+
if (__getOwnPropSymbols$t)
|
6917
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
6918
|
+
if (__propIsEnum$t.call(b, prop))
|
6919
|
+
__defNormalProp$t(a, prop, b[prop]);
|
6920
|
+
}
|
6921
|
+
return a;
|
6922
|
+
};
|
6923
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
6866
6924
|
function VizPanelRenderer({ model }) {
|
6867
6925
|
var _a;
|
6868
6926
|
const {
|
@@ -6877,6 +6935,8 @@ function VizPanelRenderer({ model }) {
|
|
6877
6935
|
menu,
|
6878
6936
|
headerActions,
|
6879
6937
|
titleItems,
|
6938
|
+
seriesLimit,
|
6939
|
+
seriesLimitShowAll,
|
6880
6940
|
description,
|
6881
6941
|
_renderCounter = 0
|
6882
6942
|
} = model.useState();
|
@@ -6893,7 +6953,8 @@ function VizPanelRenderer({ model }) {
|
|
6893
6953
|
const { dragClass, dragClassCancel } = getDragClasses(model);
|
6894
6954
|
const dataObject = sceneGraph.getData(model);
|
6895
6955
|
const rawData = dataObject.useState();
|
6896
|
-
const
|
6956
|
+
const dataWithSeriesLimit = useDataWithSeriesLimit(rawData.data, seriesLimit, seriesLimitShowAll);
|
6957
|
+
const dataWithFieldConfig = model.applyFieldConfig(dataWithSeriesLimit);
|
6897
6958
|
const sceneTimeRange = sceneGraph.getTimeRange(model);
|
6898
6959
|
const timeZone = sceneTimeRange.getTimeZone();
|
6899
6960
|
const timeRange = model.getTimeRange(dataWithFieldConfig);
|
@@ -6928,6 +6989,17 @@ function VizPanelRenderer({ model }) {
|
|
6928
6989
|
titleItemsElement.push(titleItems);
|
6929
6990
|
}
|
6930
6991
|
}
|
6992
|
+
if (seriesLimit) {
|
6993
|
+
titleItemsElement.push(
|
6994
|
+
/* @__PURE__ */ React__default["default"].createElement(VizPanelSeriesLimit, {
|
6995
|
+
key: "series-limit",
|
6996
|
+
data: rawData.data,
|
6997
|
+
seriesLimit,
|
6998
|
+
showAll: seriesLimitShowAll,
|
6999
|
+
onShowAllSeries: () => model.setState({ seriesLimitShowAll: !seriesLimitShowAll })
|
7000
|
+
})
|
7001
|
+
);
|
7002
|
+
}
|
6931
7003
|
if (model.state.$timeRange) {
|
6932
7004
|
titleItemsElement.push(/* @__PURE__ */ React__default["default"].createElement(model.state.$timeRange.Component, {
|
6933
7005
|
model: model.state.$timeRange,
|
@@ -7032,6 +7104,16 @@ function VizPanelRenderer({ model }) {
|
|
7032
7104
|
eventBus: context.eventBus
|
7033
7105
|
}))))))));
|
7034
7106
|
}
|
7107
|
+
function useDataWithSeriesLimit(data, seriesLimit, showAllSeries) {
|
7108
|
+
return React.useMemo(() => {
|
7109
|
+
if (!(data == null ? void 0 : data.series) || !seriesLimit || showAllSeries) {
|
7110
|
+
return data;
|
7111
|
+
}
|
7112
|
+
return __spreadProps$i(__spreadValues$t({}, data), {
|
7113
|
+
series: data.series.slice(0, seriesLimit)
|
7114
|
+
});
|
7115
|
+
}, [data, seriesLimit, showAllSeries]);
|
7116
|
+
}
|
7035
7117
|
function getDragClasses(panel) {
|
7036
7118
|
var _a, _b;
|
7037
7119
|
const parentLayout = sceneGraph.getLayout(panel);
|
@@ -7576,11 +7658,7 @@ class VizPanel extends SceneObjectBase {
|
|
7576
7658
|
}
|
7577
7659
|
async changePluginType(pluginId, newOptions, newFieldConfig) {
|
7578
7660
|
var _a, _b;
|
7579
|
-
const {
|
7580
|
-
options: prevOptions,
|
7581
|
-
fieldConfig: prevFieldConfig,
|
7582
|
-
pluginId: prevPluginId
|
7583
|
-
} = this.state;
|
7661
|
+
const { options: prevOptions, fieldConfig: prevFieldConfig, pluginId: prevPluginId } = this.state;
|
7584
7662
|
this._dataWithFieldConfig = void 0;
|
7585
7663
|
const isAfterPluginChange = this.state.pluginId !== pluginId;
|
7586
7664
|
await this._loadPlugin(pluginId, newOptions != null ? newOptions : {}, newFieldConfig, isAfterPluginChange);
|
@@ -13115,6 +13193,10 @@ class VizPanelBuilder {
|
|
13115
13193
|
this._state.$behaviors = behaviors;
|
13116
13194
|
return this;
|
13117
13195
|
}
|
13196
|
+
setSeriesLimit(seriesLimit) {
|
13197
|
+
this._state.seriesLimit = seriesLimit;
|
13198
|
+
return this;
|
13199
|
+
}
|
13118
13200
|
applyMixin(mixin) {
|
13119
13201
|
mixin(this);
|
13120
13202
|
return this;
|