@grafana/scenes 4.30.0--canary.781.9444216593.0 → 4.30.0--canary.781.9446611509.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/variables/components/VariableValueSelect.js +1 -1
- package/dist/index.d.ts +3 -14
- package/dist/index.js +402 -473
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/esm/variables/variants/SnapshotVariable.js +0 -79
- package/dist/esm/variables/variants/SnapshotVariable.js.map +0 -1
package/dist/index.js
CHANGED
@@ -41,19 +41,19 @@ var uFuzzy__default = /*#__PURE__*/_interopDefaultLegacy(uFuzzy);
|
|
41
41
|
var ReactGridLayout__default = /*#__PURE__*/_interopDefaultLegacy(ReactGridLayout);
|
42
42
|
var AutoSizer__default = /*#__PURE__*/_interopDefaultLegacy(AutoSizer);
|
43
43
|
|
44
|
-
var __defProp$
|
45
|
-
var __getOwnPropSymbols$
|
46
|
-
var __hasOwnProp$
|
47
|
-
var __propIsEnum$
|
48
|
-
var __defNormalProp$
|
49
|
-
var __spreadValues$
|
44
|
+
var __defProp$K = Object.defineProperty;
|
45
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
46
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
47
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
48
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
49
|
+
var __spreadValues$K = (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$K.call(b, prop))
|
52
|
+
__defNormalProp$K(a, prop, b[prop]);
|
53
|
+
if (__getOwnPropSymbols$K)
|
54
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
55
|
+
if (__propIsEnum$K.call(b, prop))
|
56
|
+
__defNormalProp$K(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, preserveParams) {
|
65
|
-
const paramsCopy = __spreadValues$
|
65
|
+
const paramsCopy = __spreadValues$K({}, runtime.locationService.getSearchObject());
|
66
66
|
if (preserveParams) {
|
67
67
|
for (const key of Object.keys(paramsCopy)) {
|
68
68
|
if (!preserveParams.includes(key)) {
|
@@ -76,21 +76,21 @@ function renderSceneComponentWithRouteProps(sceneObject, routeProps) {
|
|
76
76
|
return React__default["default"].createElement(sceneObject.Component, { model: sceneObject, routeProps });
|
77
77
|
}
|
78
78
|
|
79
|
-
var __defProp$
|
79
|
+
var __defProp$J = Object.defineProperty;
|
80
80
|
var __defProps$t = Object.defineProperties;
|
81
81
|
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
82
|
-
var __getOwnPropSymbols$
|
83
|
-
var __hasOwnProp$
|
84
|
-
var __propIsEnum$
|
85
|
-
var __defNormalProp$
|
86
|
-
var __spreadValues$
|
82
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
83
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
84
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
85
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
86
|
+
var __spreadValues$J = (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$J.call(b, prop))
|
89
|
+
__defNormalProp$J(a, prop, b[prop]);
|
90
|
+
if (__getOwnPropSymbols$J)
|
91
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
92
|
+
if (__propIsEnum$J.call(b, prop))
|
93
|
+
__defNormalProp$J(a, prop, b[prop]);
|
94
94
|
}
|
95
95
|
return a;
|
96
96
|
};
|
@@ -100,7 +100,7 @@ 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$t(__spreadValues$
|
103
|
+
plugin.meta = __spreadProps$t(__spreadValues$J({}, plugin.meta), {
|
104
104
|
id: pluginId,
|
105
105
|
name: pluginId,
|
106
106
|
module: "runtime plugin",
|
@@ -128,21 +128,21 @@ function loadPanelPluginSync(pluginId) {
|
|
128
128
|
return (_a = getPanelPluginFromCache(pluginId)) != null ? _a : runtimePanelPlugins.get(pluginId);
|
129
129
|
}
|
130
130
|
|
131
|
-
var __defProp$
|
131
|
+
var __defProp$I = Object.defineProperty;
|
132
132
|
var __defProps$s = Object.defineProperties;
|
133
133
|
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
134
|
-
var __getOwnPropSymbols$
|
135
|
-
var __hasOwnProp$
|
136
|
-
var __propIsEnum$
|
137
|
-
var __defNormalProp$
|
138
|
-
var __spreadValues$
|
134
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
135
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
136
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
137
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
138
|
+
var __spreadValues$I = (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$I.call(b, prop))
|
141
|
+
__defNormalProp$I(a, prop, b[prop]);
|
142
|
+
if (__getOwnPropSymbols$I)
|
143
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
144
|
+
if (__propIsEnum$I.call(b, prop))
|
145
|
+
__defNormalProp$I(a, prop, b[prop]);
|
146
146
|
}
|
147
147
|
return a;
|
148
148
|
};
|
@@ -150,11 +150,11 @@ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
|
150
150
|
var __objRest$4 = (source, exclude) => {
|
151
151
|
var target = {};
|
152
152
|
for (var prop in source)
|
153
|
-
if (__hasOwnProp$
|
153
|
+
if (__hasOwnProp$I.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$I)
|
156
|
+
for (var prop of __getOwnPropSymbols$I(source)) {
|
157
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$I.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) {
|
173
173
|
return null;
|
174
174
|
}
|
175
|
-
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$s(__spreadValues$
|
175
|
+
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$s(__spreadValues$I({}, 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$H = Object.defineProperty;
|
222
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
223
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
224
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
225
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
226
|
+
var __spreadValues$H = (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$H.call(b, prop))
|
229
|
+
__defNormalProp$H(a, prop, b[prop]);
|
230
|
+
if (__getOwnPropSymbols$H)
|
231
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
232
|
+
if (__propIsEnum$H.call(b, prop))
|
233
|
+
__defNormalProp$H(a, prop, b[prop]);
|
234
234
|
}
|
235
235
|
return a;
|
236
236
|
};
|
@@ -290,7 +290,7 @@ class SceneObjectBase {
|
|
290
290
|
}
|
291
291
|
setState(update) {
|
292
292
|
const prevState = this._state;
|
293
|
-
const newState = __spreadValues$
|
293
|
+
const newState = __spreadValues$H(__spreadValues$H({}, this._state), update);
|
294
294
|
this._state = Object.freeze(newState);
|
295
295
|
this._setParent(update);
|
296
296
|
this._handleActivationOfChangedStateProps(prevState, newState);
|
@@ -486,19 +486,19 @@ function forEachChild(state, callback) {
|
|
486
486
|
}
|
487
487
|
}
|
488
488
|
|
489
|
-
var __defProp$
|
490
|
-
var __getOwnPropSymbols$
|
491
|
-
var __hasOwnProp$
|
492
|
-
var __propIsEnum$
|
493
|
-
var __defNormalProp$
|
494
|
-
var __spreadValues$
|
489
|
+
var __defProp$G = Object.defineProperty;
|
490
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
491
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
492
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
493
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
494
|
+
var __spreadValues$G = (a, b) => {
|
495
495
|
for (var prop in b || (b = {}))
|
496
|
-
if (__hasOwnProp$
|
497
|
-
__defNormalProp$
|
498
|
-
if (__getOwnPropSymbols$
|
499
|
-
for (var prop of __getOwnPropSymbols$
|
500
|
-
if (__propIsEnum$
|
501
|
-
__defNormalProp$
|
496
|
+
if (__hasOwnProp$G.call(b, prop))
|
497
|
+
__defNormalProp$G(a, prop, b[prop]);
|
498
|
+
if (__getOwnPropSymbols$G)
|
499
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
500
|
+
if (__propIsEnum$G.call(b, prop))
|
501
|
+
__defNormalProp$G(a, prop, b[prop]);
|
502
502
|
}
|
503
503
|
return a;
|
504
504
|
};
|
@@ -507,7 +507,7 @@ function cloneSceneObject(sceneObject, withState) {
|
|
507
507
|
return new sceneObject.constructor(clonedState);
|
508
508
|
}
|
509
509
|
function cloneSceneObjectState(sceneState, withState) {
|
510
|
-
const clonedState = __spreadValues$
|
510
|
+
const clonedState = __spreadValues$G({}, sceneState);
|
511
511
|
for (const key in clonedState) {
|
512
512
|
const propValue = clonedState[key];
|
513
513
|
if (propValue instanceof SceneObjectBase) {
|
@@ -685,25 +685,25 @@ function isUrlValueEqual(currentUrlValue, newUrlValue) {
|
|
685
685
|
return lodash.isEqual(currentUrlValue, newUrlValue);
|
686
686
|
}
|
687
687
|
|
688
|
-
var __defProp$
|
689
|
-
var __getOwnPropSymbols$
|
690
|
-
var __hasOwnProp$
|
691
|
-
var __propIsEnum$
|
692
|
-
var __defNormalProp$
|
693
|
-
var __spreadValues$
|
688
|
+
var __defProp$F = Object.defineProperty;
|
689
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
690
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
691
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
692
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
693
|
+
var __spreadValues$F = (a, b) => {
|
694
694
|
for (var prop in b || (b = {}))
|
695
|
-
if (__hasOwnProp$
|
696
|
-
__defNormalProp$
|
697
|
-
if (__getOwnPropSymbols$
|
698
|
-
for (var prop of __getOwnPropSymbols$
|
699
|
-
if (__propIsEnum$
|
700
|
-
__defNormalProp$
|
695
|
+
if (__hasOwnProp$F.call(b, prop))
|
696
|
+
__defNormalProp$F(a, prop, b[prop]);
|
697
|
+
if (__getOwnPropSymbols$F)
|
698
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
699
|
+
if (__propIsEnum$F.call(b, prop))
|
700
|
+
__defNormalProp$F(a, prop, b[prop]);
|
701
701
|
}
|
702
702
|
return a;
|
703
703
|
};
|
704
704
|
class SceneDataNode extends SceneObjectBase {
|
705
705
|
constructor(state) {
|
706
|
-
super(__spreadValues$
|
706
|
+
super(__spreadValues$F({
|
707
707
|
data: emptyPanelData
|
708
708
|
}, state));
|
709
709
|
}
|
@@ -784,19 +784,19 @@ function evaluateTimeRange(from, to, timeZone, fiscalYearStartMonth, delay) {
|
|
784
784
|
};
|
785
785
|
}
|
786
786
|
|
787
|
-
var __defProp$
|
788
|
-
var __getOwnPropSymbols$
|
789
|
-
var __hasOwnProp$
|
790
|
-
var __propIsEnum$
|
791
|
-
var __defNormalProp$
|
792
|
-
var __spreadValues$
|
787
|
+
var __defProp$E = Object.defineProperty;
|
788
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
789
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
790
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
791
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
792
|
+
var __spreadValues$E = (a, b) => {
|
793
793
|
for (var prop in b || (b = {}))
|
794
|
-
if (__hasOwnProp$
|
795
|
-
__defNormalProp$
|
796
|
-
if (__getOwnPropSymbols$
|
797
|
-
for (var prop of __getOwnPropSymbols$
|
798
|
-
if (__propIsEnum$
|
799
|
-
__defNormalProp$
|
794
|
+
if (__hasOwnProp$E.call(b, prop))
|
795
|
+
__defNormalProp$E(a, prop, b[prop]);
|
796
|
+
if (__getOwnPropSymbols$E)
|
797
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
798
|
+
if (__propIsEnum$E.call(b, prop))
|
799
|
+
__defNormalProp$E(a, prop, b[prop]);
|
800
800
|
}
|
801
801
|
return a;
|
802
802
|
};
|
@@ -813,7 +813,7 @@ class SceneTimeRange extends SceneObjectBase {
|
|
813
813
|
state.fiscalYearStartMonth,
|
814
814
|
state.UNSAFE_nowDelay
|
815
815
|
);
|
816
|
-
super(__spreadValues$
|
816
|
+
super(__spreadValues$E({ from, to, timeZone, value }, state));
|
817
817
|
this._urlSync = new SceneObjectUrlSyncConfig(this, { keys: ["from", "to", "timezone"] });
|
818
818
|
this.onTimeRangeChange = (timeRange) => {
|
819
819
|
const update = {};
|
@@ -1751,21 +1751,21 @@ function collectAllVariables(sceneObject, record = {}) {
|
|
1751
1751
|
return record;
|
1752
1752
|
}
|
1753
1753
|
|
1754
|
-
var __defProp$
|
1754
|
+
var __defProp$D = Object.defineProperty;
|
1755
1755
|
var __defProps$r = Object.defineProperties;
|
1756
1756
|
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
1757
|
-
var __getOwnPropSymbols$
|
1758
|
-
var __hasOwnProp$
|
1759
|
-
var __propIsEnum$
|
1760
|
-
var __defNormalProp$
|
1761
|
-
var __spreadValues$
|
1757
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
1758
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
1759
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
1760
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
1761
|
+
var __spreadValues$D = (a, b) => {
|
1762
1762
|
for (var prop in b || (b = {}))
|
1763
|
-
if (__hasOwnProp$
|
1764
|
-
__defNormalProp$
|
1765
|
-
if (__getOwnPropSymbols$
|
1766
|
-
for (var prop of __getOwnPropSymbols$
|
1767
|
-
if (__propIsEnum$
|
1768
|
-
__defNormalProp$
|
1763
|
+
if (__hasOwnProp$D.call(b, prop))
|
1764
|
+
__defNormalProp$D(a, prop, b[prop]);
|
1765
|
+
if (__getOwnPropSymbols$D)
|
1766
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
1767
|
+
if (__propIsEnum$D.call(b, prop))
|
1768
|
+
__defNormalProp$D(a, prop, b[prop]);
|
1769
1769
|
}
|
1770
1770
|
return a;
|
1771
1771
|
};
|
@@ -1785,7 +1785,7 @@ function getTemplateProxyForField(field, frame, frames) {
|
|
1785
1785
|
if (!field.labels) {
|
1786
1786
|
return "";
|
1787
1787
|
}
|
1788
|
-
return __spreadProps$r(__spreadValues$
|
1788
|
+
return __spreadProps$r(__spreadValues$D({}, field.labels), {
|
1789
1789
|
__values: Object.values(field.labels).sort().join(", "),
|
1790
1790
|
toString: () => {
|
1791
1791
|
return data.formatLabels(field.labels, "", true);
|
@@ -2266,21 +2266,21 @@ function isExtraQueryProvider(obj) {
|
|
2266
2266
|
return typeof obj === "object" && "getExtraQueries" in obj;
|
2267
2267
|
}
|
2268
2268
|
|
2269
|
-
var __defProp$
|
2269
|
+
var __defProp$C = Object.defineProperty;
|
2270
2270
|
var __defProps$q = Object.defineProperties;
|
2271
2271
|
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
2272
|
-
var __getOwnPropSymbols$
|
2273
|
-
var __hasOwnProp$
|
2274
|
-
var __propIsEnum$
|
2275
|
-
var __defNormalProp$
|
2276
|
-
var __spreadValues$
|
2272
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
2273
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
2274
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
2275
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2276
|
+
var __spreadValues$C = (a, b) => {
|
2277
2277
|
for (var prop in b || (b = {}))
|
2278
|
-
if (__hasOwnProp$
|
2279
|
-
__defNormalProp$
|
2280
|
-
if (__getOwnPropSymbols$
|
2281
|
-
for (var prop of __getOwnPropSymbols$
|
2282
|
-
if (__propIsEnum$
|
2283
|
-
__defNormalProp$
|
2278
|
+
if (__hasOwnProp$C.call(b, prop))
|
2279
|
+
__defNormalProp$C(a, prop, b[prop]);
|
2280
|
+
if (__getOwnPropSymbols$C)
|
2281
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
2282
|
+
if (__propIsEnum$C.call(b, prop))
|
2283
|
+
__defNormalProp$C(a, prop, b[prop]);
|
2284
2284
|
}
|
2285
2285
|
return a;
|
2286
2286
|
};
|
@@ -2297,7 +2297,7 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2297
2297
|
}),
|
2298
2298
|
rxjs.map(([primary, ...processedSecondaries]) => {
|
2299
2299
|
var _a;
|
2300
|
-
return __spreadProps$q(__spreadValues$
|
2300
|
+
return __spreadProps$q(__spreadValues$C({}, primary), {
|
2301
2301
|
series: [...primary.series, ...processedSecondaries.flatMap((s) => s.series)],
|
2302
2302
|
annotations: [...(_a = primary.annotations) != null ? _a : [], ...processedSecondaries.flatMap((s) => {
|
2303
2303
|
var _a2;
|
@@ -2308,21 +2308,21 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2308
2308
|
);
|
2309
2309
|
};
|
2310
2310
|
|
2311
|
-
var __defProp$
|
2311
|
+
var __defProp$B = Object.defineProperty;
|
2312
2312
|
var __defProps$p = Object.defineProperties;
|
2313
2313
|
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
2314
|
-
var __getOwnPropSymbols$
|
2315
|
-
var __hasOwnProp$
|
2316
|
-
var __propIsEnum$
|
2317
|
-
var __defNormalProp$
|
2318
|
-
var __spreadValues$
|
2314
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
2315
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
2316
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
2317
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2318
|
+
var __spreadValues$B = (a, b) => {
|
2319
2319
|
for (var prop in b || (b = {}))
|
2320
|
-
if (__hasOwnProp$
|
2321
|
-
__defNormalProp$
|
2322
|
-
if (__getOwnPropSymbols$
|
2323
|
-
for (var prop of __getOwnPropSymbols$
|
2324
|
-
if (__propIsEnum$
|
2325
|
-
__defNormalProp$
|
2320
|
+
if (__hasOwnProp$B.call(b, prop))
|
2321
|
+
__defNormalProp$B(a, prop, b[prop]);
|
2322
|
+
if (__getOwnPropSymbols$B)
|
2323
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
2324
|
+
if (__propIsEnum$B.call(b, prop))
|
2325
|
+
__defNormalProp$B(a, prop, b[prop]);
|
2326
2326
|
}
|
2327
2327
|
return a;
|
2328
2328
|
};
|
@@ -2377,11 +2377,11 @@ function filterAnnotations(data, filters) {
|
|
2377
2377
|
continue;
|
2378
2378
|
}
|
2379
2379
|
}
|
2380
|
-
fields.push(__spreadProps$p(__spreadValues$
|
2380
|
+
fields.push(__spreadProps$p(__spreadValues$B({}, field), {
|
2381
2381
|
values: buffer
|
2382
2382
|
}));
|
2383
2383
|
}
|
2384
|
-
processed.push(__spreadProps$p(__spreadValues$
|
2384
|
+
processed.push(__spreadProps$p(__spreadValues$B({}, frame), {
|
2385
2385
|
fields,
|
2386
2386
|
length: frameLength
|
2387
2387
|
}));
|
@@ -2807,21 +2807,21 @@ function getOptionSearcher(options, includeAll) {
|
|
2807
2807
|
};
|
2808
2808
|
}
|
2809
2809
|
|
2810
|
-
var __defProp$
|
2810
|
+
var __defProp$A = Object.defineProperty;
|
2811
2811
|
var __defProps$o = Object.defineProperties;
|
2812
2812
|
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
2813
|
-
var __getOwnPropSymbols$
|
2814
|
-
var __hasOwnProp$
|
2815
|
-
var __propIsEnum$
|
2816
|
-
var __defNormalProp$
|
2817
|
-
var __spreadValues$
|
2813
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
2814
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
2815
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
2816
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2817
|
+
var __spreadValues$A = (a, b) => {
|
2818
2818
|
for (var prop in b || (b = {}))
|
2819
|
-
if (__hasOwnProp$
|
2820
|
-
__defNormalProp$
|
2821
|
-
if (__getOwnPropSymbols$
|
2822
|
-
for (var prop of __getOwnPropSymbols$
|
2823
|
-
if (__propIsEnum$
|
2824
|
-
__defNormalProp$
|
2819
|
+
if (__hasOwnProp$A.call(b, prop))
|
2820
|
+
__defNormalProp$A(a, prop, b[prop]);
|
2821
|
+
if (__getOwnPropSymbols$A)
|
2822
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
2823
|
+
if (__propIsEnum$A.call(b, prop))
|
2824
|
+
__defNormalProp$A(a, prop, b[prop]);
|
2825
2825
|
}
|
2826
2826
|
return a;
|
2827
2827
|
};
|
@@ -2829,11 +2829,11 @@ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
|
2829
2829
|
var __objRest$3 = (source, exclude) => {
|
2830
2830
|
var target = {};
|
2831
2831
|
for (var prop in source)
|
2832
|
-
if (__hasOwnProp$
|
2832
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
2833
2833
|
target[prop] = source[prop];
|
2834
|
-
if (source != null && __getOwnPropSymbols$
|
2835
|
-
for (var prop of __getOwnPropSymbols$
|
2836
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
2834
|
+
if (source != null && __getOwnPropSymbols$A)
|
2835
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
2836
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
2837
2837
|
target[prop] = source[prop];
|
2838
2838
|
}
|
2839
2839
|
return target;
|
@@ -2965,7 +2965,7 @@ const OptionWithCheckbox = ({
|
|
2965
2965
|
const theme = ui.useTheme2();
|
2966
2966
|
const selectStyles = ui.getSelectStyles(theme);
|
2967
2967
|
const optionStyles = ui.useStyles2(getOptionStyles);
|
2968
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$o(__spreadValues$
|
2968
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$o(__spreadValues$A({
|
2969
2969
|
ref: innerRef,
|
2970
2970
|
className: css.cx(selectStyles.option, isFocused && selectStyles.optionFocused)
|
2971
2971
|
}, rest), {
|
@@ -3067,28 +3067,28 @@ function getEnrichedFiltersRequest(sourceRunner) {
|
|
3067
3067
|
return null;
|
3068
3068
|
}
|
3069
3069
|
|
3070
|
-
var __defProp$
|
3070
|
+
var __defProp$z = Object.defineProperty;
|
3071
3071
|
var __defProps$n = Object.defineProperties;
|
3072
3072
|
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
3073
|
-
var __getOwnPropSymbols$
|
3074
|
-
var __hasOwnProp$
|
3075
|
-
var __propIsEnum$
|
3076
|
-
var __defNormalProp$
|
3077
|
-
var __spreadValues$
|
3073
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
3074
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
3075
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
3076
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3077
|
+
var __spreadValues$z = (a, b) => {
|
3078
3078
|
for (var prop in b || (b = {}))
|
3079
|
-
if (__hasOwnProp$
|
3080
|
-
__defNormalProp$
|
3081
|
-
if (__getOwnPropSymbols$
|
3082
|
-
for (var prop of __getOwnPropSymbols$
|
3083
|
-
if (__propIsEnum$
|
3084
|
-
__defNormalProp$
|
3079
|
+
if (__hasOwnProp$z.call(b, prop))
|
3080
|
+
__defNormalProp$z(a, prop, b[prop]);
|
3081
|
+
if (__getOwnPropSymbols$z)
|
3082
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
3083
|
+
if (__propIsEnum$z.call(b, prop))
|
3084
|
+
__defNormalProp$z(a, prop, b[prop]);
|
3085
3085
|
}
|
3086
3086
|
return a;
|
3087
3087
|
};
|
3088
3088
|
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
3089
3089
|
class GroupByVariable extends MultiValueVariable {
|
3090
3090
|
constructor(initialState) {
|
3091
|
-
super(__spreadProps$n(__spreadValues$
|
3091
|
+
super(__spreadProps$n(__spreadValues$z({
|
3092
3092
|
isMulti: true,
|
3093
3093
|
name: "",
|
3094
3094
|
value: [],
|
@@ -3119,7 +3119,7 @@ class GroupByVariable extends MultiValueVariable {
|
|
3119
3119
|
const queries = getQueriesForVariables(this);
|
3120
3120
|
const otherFilters = this.state.baseFilters || [];
|
3121
3121
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3122
|
-
let keys = await ds.getTagKeys(__spreadValues$
|
3122
|
+
let keys = await ds.getTagKeys(__spreadValues$z({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
|
3123
3123
|
if (override) {
|
3124
3124
|
keys = keys.concat(override.values);
|
3125
3125
|
}
|
@@ -3668,21 +3668,21 @@ function isFilter(filter) {
|
|
3668
3668
|
return filter !== null && typeof filter.key === "string" && typeof filter.value === "string";
|
3669
3669
|
}
|
3670
3670
|
|
3671
|
-
var __defProp$
|
3671
|
+
var __defProp$y = Object.defineProperty;
|
3672
3672
|
var __defProps$m = Object.defineProperties;
|
3673
3673
|
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
3674
|
-
var __getOwnPropSymbols$
|
3675
|
-
var __hasOwnProp$
|
3676
|
-
var __propIsEnum$
|
3677
|
-
var __defNormalProp$
|
3678
|
-
var __spreadValues$
|
3674
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
3675
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
3676
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
3677
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3678
|
+
var __spreadValues$y = (a, b) => {
|
3679
3679
|
for (var prop in b || (b = {}))
|
3680
|
-
if (__hasOwnProp$
|
3681
|
-
__defNormalProp$
|
3682
|
-
if (__getOwnPropSymbols$
|
3683
|
-
for (var prop of __getOwnPropSymbols$
|
3684
|
-
if (__propIsEnum$
|
3685
|
-
__defNormalProp$
|
3680
|
+
if (__hasOwnProp$y.call(b, prop))
|
3681
|
+
__defNormalProp$y(a, prop, b[prop]);
|
3682
|
+
if (__getOwnPropSymbols$y)
|
3683
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
3684
|
+
if (__propIsEnum$y.call(b, prop))
|
3685
|
+
__defNormalProp$y(a, prop, b[prop]);
|
3686
3686
|
}
|
3687
3687
|
return a;
|
3688
3688
|
};
|
@@ -3690,7 +3690,7 @@ var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
|
3690
3690
|
class AdHocFiltersVariable extends SceneObjectBase {
|
3691
3691
|
constructor(state) {
|
3692
3692
|
var _a, _b;
|
3693
|
-
super(__spreadValues$
|
3693
|
+
super(__spreadValues$y({
|
3694
3694
|
type: "adhoc",
|
3695
3695
|
name: (_a = state.name) != null ? _a : "Filters",
|
3696
3696
|
filters: [],
|
@@ -3727,15 +3727,15 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3727
3727
|
const propLabelKey = `${prop}Label`;
|
3728
3728
|
if (filter === _wip) {
|
3729
3729
|
if (prop === "value") {
|
3730
|
-
this.setState({ filters: [...filters, __spreadProps$m(__spreadValues$
|
3730
|
+
this.setState({ filters: [...filters, __spreadProps$m(__spreadValues$y({}, _wip), { [prop]: value, [propLabelKey]: label })], _wip: void 0 });
|
3731
3731
|
} else {
|
3732
|
-
this.setState({ _wip: __spreadProps$m(__spreadValues$
|
3732
|
+
this.setState({ _wip: __spreadProps$m(__spreadValues$y({}, filter), { [prop]: value, [propLabelKey]: label }) });
|
3733
3733
|
}
|
3734
3734
|
return;
|
3735
3735
|
}
|
3736
3736
|
const updatedFilters = this.state.filters.map((f) => {
|
3737
3737
|
if (f === filter) {
|
3738
|
-
const updatedFilter = __spreadProps$m(__spreadValues$
|
3738
|
+
const updatedFilter = __spreadProps$m(__spreadValues$y({}, f), { [prop]: value, [propLabelKey]: label });
|
3739
3739
|
if (prop === "key" && filter[prop] !== value) {
|
3740
3740
|
updatedFilter.value = "";
|
3741
3741
|
updatedFilter.valueLabel = "";
|
@@ -3769,7 +3769,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3769
3769
|
const otherFilters = this.state.filters.filter((f) => f.key !== currentKey).concat((_c = this.state.baseFilters) != null ? _c : []);
|
3770
3770
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3771
3771
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
3772
|
-
let keys = await ds.getTagKeys(__spreadValues$
|
3772
|
+
let keys = await ds.getTagKeys(__spreadValues$y({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
|
3773
3773
|
if (override) {
|
3774
3774
|
keys = keys.concat(override.values);
|
3775
3775
|
}
|
@@ -3792,7 +3792,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3792
3792
|
const otherFilters = this.state.filters.filter((f) => f.key !== filter.key).concat((_c = this.state.baseFilters) != null ? _c : []);
|
3793
3793
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3794
3794
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
3795
|
-
let values = await ds.getTagValues(__spreadValues$
|
3795
|
+
let values = await ds.getTagValues(__spreadValues$y({
|
3796
3796
|
key: filter.key,
|
3797
3797
|
filters: otherFilters,
|
3798
3798
|
timeRange,
|
@@ -3919,21 +3919,21 @@ function areDifferentLayers(a, b) {
|
|
3919
3919
|
return false;
|
3920
3920
|
}
|
3921
3921
|
|
3922
|
-
var __defProp$
|
3922
|
+
var __defProp$x = Object.defineProperty;
|
3923
3923
|
var __defProps$l = Object.defineProperties;
|
3924
3924
|
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
3925
|
-
var __getOwnPropSymbols$
|
3926
|
-
var __hasOwnProp$
|
3927
|
-
var __propIsEnum$
|
3928
|
-
var __defNormalProp$
|
3929
|
-
var __spreadValues$
|
3925
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
3926
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
3927
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
3928
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3929
|
+
var __spreadValues$x = (a, b) => {
|
3930
3930
|
for (var prop in b || (b = {}))
|
3931
|
-
if (__hasOwnProp$
|
3932
|
-
__defNormalProp$
|
3933
|
-
if (__getOwnPropSymbols$
|
3934
|
-
for (var prop of __getOwnPropSymbols$
|
3935
|
-
if (__propIsEnum$
|
3936
|
-
__defNormalProp$
|
3931
|
+
if (__hasOwnProp$x.call(b, prop))
|
3932
|
+
__defNormalProp$x(a, prop, b[prop]);
|
3933
|
+
if (__getOwnPropSymbols$x)
|
3934
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
3935
|
+
if (__propIsEnum$x.call(b, prop))
|
3936
|
+
__defNormalProp$x(a, prop, b[prop]);
|
3937
3937
|
}
|
3938
3938
|
return a;
|
3939
3939
|
};
|
@@ -4035,9 +4035,9 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4035
4035
|
return;
|
4036
4036
|
}
|
4037
4037
|
this._layerAnnotations = annotations;
|
4038
|
-
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$l(__spreadValues$
|
4038
|
+
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$l(__spreadValues$x({}, emptyPanelData), { timeRange: timeRange.state.value });
|
4039
4039
|
this.setState({
|
4040
|
-
data: __spreadProps$l(__spreadValues$
|
4040
|
+
data: __spreadProps$l(__spreadValues$x({}, baseStateUpdate), {
|
4041
4041
|
annotations: [...(_d = this._resultAnnotations) != null ? _d : [], ...annotations],
|
4042
4042
|
alertState: alertState != null ? alertState : (_e = this.state.data) == null ? void 0 : _e.alertState
|
4043
4043
|
})
|
@@ -4156,7 +4156,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4156
4156
|
this._dataLayersSub = void 0;
|
4157
4157
|
}
|
4158
4158
|
this.setState({
|
4159
|
-
data: __spreadProps$l(__spreadValues$
|
4159
|
+
data: __spreadProps$l(__spreadValues$x({}, this.state.data), { state: schema.LoadingState.Done })
|
4160
4160
|
});
|
4161
4161
|
}
|
4162
4162
|
async runWithTimeRange(timeRange) {
|
@@ -4170,7 +4170,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4170
4170
|
(_a = this._querySub) == null ? void 0 : _a.unsubscribe();
|
4171
4171
|
if (this._variableDependency.hasDependencyInLoadingState()) {
|
4172
4172
|
writeSceneLog("SceneQueryRunner", "Variable dependency is in loading state, skipping query execution");
|
4173
|
-
this.setState({ data: __spreadProps$l(__spreadValues$
|
4173
|
+
this.setState({ data: __spreadProps$l(__spreadValues$x({}, this.state.data), { state: schema.LoadingState.Loading }) });
|
4174
4174
|
return;
|
4175
4175
|
}
|
4176
4176
|
const { queries } = this.state;
|
@@ -4202,7 +4202,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4202
4202
|
this._querySub = stream.subscribe(this.onDataReceived);
|
4203
4203
|
} catch (err) {
|
4204
4204
|
console.error("PanelQueryRunner Error", err);
|
4205
|
-
this.onDataReceived(__spreadProps$l(__spreadValues$
|
4205
|
+
this.onDataReceived(__spreadProps$l(__spreadValues$x(__spreadValues$x({}, emptyPanelData), this.state.data), {
|
4206
4206
|
state: schema.LoadingState.Error,
|
4207
4207
|
errors: [runtime.toDataQueryError(err)]
|
4208
4208
|
}));
|
@@ -4212,10 +4212,10 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4212
4212
|
var _a;
|
4213
4213
|
const clone = super.clone(withState);
|
4214
4214
|
if (this._resultAnnotations) {
|
4215
|
-
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$
|
4215
|
+
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$x({}, frame));
|
4216
4216
|
}
|
4217
4217
|
if (this._layerAnnotations) {
|
4218
|
-
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$
|
4218
|
+
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$x({}, frame));
|
4219
4219
|
}
|
4220
4220
|
clone["_variableValueRecorder"] = this._variableValueRecorder.cloneAndRecordCurrentValuesForSceneObject(this);
|
4221
4221
|
clone["_containerWidth"] = this._containerWidth;
|
@@ -4225,7 +4225,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4225
4225
|
prepareRequests(timeRange, ds) {
|
4226
4226
|
var _a;
|
4227
4227
|
const { minInterval, queries } = this.state;
|
4228
|
-
let request = __spreadValues$
|
4228
|
+
let request = __spreadValues$x({
|
4229
4229
|
app: "scenes",
|
4230
4230
|
requestId: getNextRequestId$1(),
|
4231
4231
|
timezone: timeRange.getTimeZone(),
|
@@ -4271,7 +4271,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4271
4271
|
for (const provider of (_a = this.getClosestExtraQueryProviders()) != null ? _a : []) {
|
4272
4272
|
for (const { req, processor } of provider.getExtraQueries(request)) {
|
4273
4273
|
const requestId = getNextRequestId$1();
|
4274
|
-
secondaryRequests.push(__spreadProps$l(__spreadValues$
|
4274
|
+
secondaryRequests.push(__spreadProps$l(__spreadValues$x({}, req), { requestId }));
|
4275
4275
|
secondaryProcessors.set(requestId, processor != null ? processor : passthroughProcessor);
|
4276
4276
|
}
|
4277
4277
|
}
|
@@ -4507,28 +4507,28 @@ class ActWhenVariableChanged extends SceneObjectBase {
|
|
4507
4507
|
}
|
4508
4508
|
}
|
4509
4509
|
|
4510
|
-
var __defProp$
|
4510
|
+
var __defProp$w = Object.defineProperty;
|
4511
4511
|
var __defProps$k = Object.defineProperties;
|
4512
4512
|
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
4513
|
-
var __getOwnPropSymbols$
|
4514
|
-
var __hasOwnProp$
|
4515
|
-
var __propIsEnum$
|
4516
|
-
var __defNormalProp$
|
4517
|
-
var __spreadValues$
|
4513
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
4514
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
4515
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
4516
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4517
|
+
var __spreadValues$w = (a, b) => {
|
4518
4518
|
for (var prop in b || (b = {}))
|
4519
|
-
if (__hasOwnProp$
|
4520
|
-
__defNormalProp$
|
4521
|
-
if (__getOwnPropSymbols$
|
4522
|
-
for (var prop of __getOwnPropSymbols$
|
4523
|
-
if (__propIsEnum$
|
4524
|
-
__defNormalProp$
|
4519
|
+
if (__hasOwnProp$w.call(b, prop))
|
4520
|
+
__defNormalProp$w(a, prop, b[prop]);
|
4521
|
+
if (__getOwnPropSymbols$w)
|
4522
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
4523
|
+
if (__propIsEnum$w.call(b, prop))
|
4524
|
+
__defNormalProp$w(a, prop, b[prop]);
|
4525
4525
|
}
|
4526
4526
|
return a;
|
4527
4527
|
};
|
4528
4528
|
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
4529
4529
|
class CursorSync extends SceneObjectBase {
|
4530
4530
|
constructor(state) {
|
4531
|
-
super(__spreadProps$k(__spreadValues$
|
4531
|
+
super(__spreadProps$k(__spreadValues$w({}, state), {
|
4532
4532
|
sync: state.sync || schema.DashboardCursorSync.Off
|
4533
4533
|
}));
|
4534
4534
|
this.getEventsBus = (panel) => {
|
@@ -4792,21 +4792,21 @@ const getAlertStateStyles = (theme) => {
|
|
4792
4792
|
};
|
4793
4793
|
};
|
4794
4794
|
|
4795
|
-
var __defProp$
|
4795
|
+
var __defProp$v = Object.defineProperty;
|
4796
4796
|
var __defProps$j = Object.defineProperties;
|
4797
4797
|
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
4798
|
-
var __getOwnPropSymbols$
|
4799
|
-
var __hasOwnProp$
|
4800
|
-
var __propIsEnum$
|
4801
|
-
var __defNormalProp$
|
4802
|
-
var __spreadValues$
|
4798
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
4799
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
4800
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
4801
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4802
|
+
var __spreadValues$v = (a, b) => {
|
4803
4803
|
for (var prop in b || (b = {}))
|
4804
|
-
if (__hasOwnProp$
|
4805
|
-
__defNormalProp$
|
4806
|
-
if (__getOwnPropSymbols$
|
4807
|
-
for (var prop of __getOwnPropSymbols$
|
4808
|
-
if (__propIsEnum$
|
4809
|
-
__defNormalProp$
|
4804
|
+
if (__hasOwnProp$v.call(b, prop))
|
4805
|
+
__defNormalProp$v(a, prop, b[prop]);
|
4806
|
+
if (__getOwnPropSymbols$v)
|
4807
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
4808
|
+
if (__propIsEnum$v.call(b, prop))
|
4809
|
+
__defNormalProp$v(a, prop, b[prop]);
|
4810
4810
|
}
|
4811
4811
|
return a;
|
4812
4812
|
};
|
@@ -4820,13 +4820,13 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4820
4820
|
if (currentIndex < 0) {
|
4821
4821
|
if (mode === ui.SeriesVisibilityChangeMode.ToggleSelection) {
|
4822
4822
|
const override3 = createOverride$1([displayName, ...getNamesOfHiddenFields(overrides, data)]);
|
4823
|
-
return __spreadProps$j(__spreadValues$
|
4823
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4824
4824
|
overrides: [...fieldConfig.overrides, override3]
|
4825
4825
|
});
|
4826
4826
|
}
|
4827
4827
|
const displayNames = getDisplayNames(data, displayName);
|
4828
4828
|
const override2 = createOverride$1(displayNames);
|
4829
|
-
return __spreadProps$j(__spreadValues$
|
4829
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4830
4830
|
overrides: [...fieldConfig.overrides, override2]
|
4831
4831
|
});
|
4832
4832
|
}
|
@@ -4839,22 +4839,22 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4839
4839
|
existing = existing.filter((el) => nameOfHiddenFields.indexOf(el) < 0);
|
4840
4840
|
}
|
4841
4841
|
if (existing[0] === displayName && existing.length === 1) {
|
4842
|
-
return __spreadProps$j(__spreadValues$
|
4842
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4843
4843
|
overrides: overridesCopy
|
4844
4844
|
});
|
4845
4845
|
}
|
4846
4846
|
const override2 = createOverride$1([displayName, ...nameOfHiddenFields]);
|
4847
|
-
return __spreadProps$j(__spreadValues$
|
4847
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4848
4848
|
overrides: [...overridesCopy, override2]
|
4849
4849
|
});
|
4850
4850
|
}
|
4851
4851
|
const override = createExtendedOverride(current, displayName);
|
4852
4852
|
if (allFieldsAreExcluded(override, data)) {
|
4853
|
-
return __spreadProps$j(__spreadValues$
|
4853
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4854
4854
|
overrides: overridesCopy
|
4855
4855
|
});
|
4856
4856
|
}
|
4857
|
-
return __spreadProps$j(__spreadValues$
|
4857
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4858
4858
|
overrides: [...overridesCopy, override]
|
4859
4859
|
});
|
4860
4860
|
}
|
@@ -4879,7 +4879,7 @@ function createOverride$1(names, mode = data.ByNamesMatcherMode.exclude, propert
|
|
4879
4879
|
}
|
4880
4880
|
},
|
4881
4881
|
properties: [
|
4882
|
-
__spreadProps$j(__spreadValues$
|
4882
|
+
__spreadProps$j(__spreadValues$v({}, property), {
|
4883
4883
|
value: {
|
4884
4884
|
viz: true,
|
4885
4885
|
legend: false,
|
@@ -4951,21 +4951,21 @@ const getNamesOfHiddenFields = (overrides, data$1) => {
|
|
4951
4951
|
return names;
|
4952
4952
|
};
|
4953
4953
|
|
4954
|
-
var __defProp$
|
4954
|
+
var __defProp$u = Object.defineProperty;
|
4955
4955
|
var __defProps$i = Object.defineProperties;
|
4956
4956
|
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
4957
|
-
var __getOwnPropSymbols$
|
4958
|
-
var __hasOwnProp$
|
4959
|
-
var __propIsEnum$
|
4960
|
-
var __defNormalProp$
|
4961
|
-
var __spreadValues$
|
4957
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
4958
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
4959
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
4960
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4961
|
+
var __spreadValues$u = (a, b) => {
|
4962
4962
|
for (var prop in b || (b = {}))
|
4963
|
-
if (__hasOwnProp$
|
4964
|
-
__defNormalProp$
|
4965
|
-
if (__getOwnPropSymbols$
|
4966
|
-
for (var prop of __getOwnPropSymbols$
|
4967
|
-
if (__propIsEnum$
|
4968
|
-
__defNormalProp$
|
4963
|
+
if (__hasOwnProp$u.call(b, prop))
|
4964
|
+
__defNormalProp$u(a, prop, b[prop]);
|
4965
|
+
if (__getOwnPropSymbols$u)
|
4966
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
4967
|
+
if (__propIsEnum$u.call(b, prop))
|
4968
|
+
__defNormalProp$u(a, prop, b[prop]);
|
4969
4969
|
}
|
4970
4970
|
return a;
|
4971
4971
|
};
|
@@ -4976,7 +4976,7 @@ const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
|
4976
4976
|
return override.matcher.id === data.FieldMatcherID.byName && override.matcher.options === label;
|
4977
4977
|
});
|
4978
4978
|
if (currentIndex < 0) {
|
4979
|
-
return __spreadProps$i(__spreadValues$
|
4979
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
4980
4980
|
overrides: [...fieldConfig.overrides, createOverride(label, color)]
|
4981
4981
|
});
|
4982
4982
|
}
|
@@ -4984,19 +4984,19 @@ const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
|
4984
4984
|
const existing = overridesCopy[currentIndex];
|
4985
4985
|
const propertyIndex = existing.properties.findIndex((p) => p.id === "color");
|
4986
4986
|
if (propertyIndex < 0) {
|
4987
|
-
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$
|
4987
|
+
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$u({}, existing), {
|
4988
4988
|
properties: [...existing.properties, createProperty(color)]
|
4989
4989
|
});
|
4990
|
-
return __spreadProps$i(__spreadValues$
|
4990
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
4991
4991
|
overrides: overridesCopy
|
4992
4992
|
});
|
4993
4993
|
}
|
4994
4994
|
const propertiesCopy = Array.from(existing.properties);
|
4995
4995
|
propertiesCopy[propertyIndex] = createProperty(color);
|
4996
|
-
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$
|
4996
|
+
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$u({}, existing), {
|
4997
4997
|
properties: propertiesCopy
|
4998
4998
|
});
|
4999
|
-
return __spreadProps$i(__spreadValues$
|
4999
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
5000
5000
|
overrides: overridesCopy
|
5001
5001
|
});
|
5002
5002
|
};
|
@@ -5019,21 +5019,21 @@ const createProperty = (color) => {
|
|
5019
5019
|
};
|
5020
5020
|
};
|
5021
5021
|
|
5022
|
-
var __defProp$
|
5022
|
+
var __defProp$t = Object.defineProperty;
|
5023
5023
|
var __defProps$h = Object.defineProperties;
|
5024
5024
|
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
5025
|
-
var __getOwnPropSymbols$
|
5026
|
-
var __hasOwnProp$
|
5027
|
-
var __propIsEnum$
|
5028
|
-
var __defNormalProp$
|
5029
|
-
var __spreadValues$
|
5025
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
5026
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
5027
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
5028
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5029
|
+
var __spreadValues$t = (a, b) => {
|
5030
5030
|
for (var prop in b || (b = {}))
|
5031
|
-
if (__hasOwnProp$
|
5032
|
-
__defNormalProp$
|
5033
|
-
if (__getOwnPropSymbols$
|
5034
|
-
for (var prop of __getOwnPropSymbols$
|
5035
|
-
if (__propIsEnum$
|
5036
|
-
__defNormalProp$
|
5031
|
+
if (__hasOwnProp$t.call(b, prop))
|
5032
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5033
|
+
if (__getOwnPropSymbols$t)
|
5034
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
5035
|
+
if (__propIsEnum$t.call(b, prop))
|
5036
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5037
5037
|
}
|
5038
5038
|
return a;
|
5039
5039
|
};
|
@@ -5041,7 +5041,7 @@ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
|
5041
5041
|
class VizPanel extends SceneObjectBase {
|
5042
5042
|
constructor(state) {
|
5043
5043
|
var _a;
|
5044
|
-
super(__spreadValues$
|
5044
|
+
super(__spreadValues$t({
|
5045
5045
|
options: {},
|
5046
5046
|
fieldConfig: { defaults: {}, overrides: [] },
|
5047
5047
|
title: "Title",
|
@@ -5154,7 +5154,7 @@ class VizPanel extends SceneObjectBase {
|
|
5154
5154
|
};
|
5155
5155
|
this._onInstanceStateChange = (state) => {
|
5156
5156
|
if (this._panelContext) {
|
5157
|
-
this._panelContext = __spreadProps$h(__spreadValues$
|
5157
|
+
this._panelContext = __spreadProps$h(__spreadValues$t({}, this._panelContext), {
|
5158
5158
|
instanceState: state
|
5159
5159
|
});
|
5160
5160
|
}
|
@@ -5178,8 +5178,8 @@ class VizPanel extends SceneObjectBase {
|
|
5178
5178
|
sortBy = sortKey;
|
5179
5179
|
}
|
5180
5180
|
this.onOptionsChange(
|
5181
|
-
__spreadProps$h(__spreadValues$
|
5182
|
-
legend: __spreadProps$h(__spreadValues$
|
5181
|
+
__spreadProps$h(__spreadValues$t({}, this.state.options), {
|
5182
|
+
legend: __spreadProps$h(__spreadValues$t({}, legendOptions), { sortBy, sortDesc })
|
5183
5183
|
}),
|
5184
5184
|
true
|
5185
5185
|
);
|
@@ -5289,7 +5289,7 @@ class VizPanel extends SceneObjectBase {
|
|
5289
5289
|
if (!data.compareArrayValues(newFrames, prevFrames, data.compareDataFrameStructures)) {
|
5290
5290
|
this._structureRev++;
|
5291
5291
|
}
|
5292
|
-
this._dataWithFieldConfig = __spreadProps$h(__spreadValues$
|
5292
|
+
this._dataWithFieldConfig = __spreadProps$h(__spreadValues$t({}, rawData), {
|
5293
5293
|
structureRev: this._structureRev,
|
5294
5294
|
series: newFrames
|
5295
5295
|
});
|
@@ -5432,25 +5432,25 @@ function getMessageFromError(err) {
|
|
5432
5432
|
return JSON.stringify(err);
|
5433
5433
|
}
|
5434
5434
|
|
5435
|
-
var __defProp$
|
5436
|
-
var __getOwnPropSymbols$
|
5437
|
-
var __hasOwnProp$
|
5438
|
-
var __propIsEnum$
|
5439
|
-
var __defNormalProp$
|
5440
|
-
var __spreadValues$
|
5435
|
+
var __defProp$s = Object.defineProperty;
|
5436
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
5437
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
5438
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
5439
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5440
|
+
var __spreadValues$s = (a, b) => {
|
5441
5441
|
for (var prop in b || (b = {}))
|
5442
|
-
if (__hasOwnProp$
|
5443
|
-
__defNormalProp$
|
5444
|
-
if (__getOwnPropSymbols$
|
5445
|
-
for (var prop of __getOwnPropSymbols$
|
5446
|
-
if (__propIsEnum$
|
5447
|
-
__defNormalProp$
|
5442
|
+
if (__hasOwnProp$s.call(b, prop))
|
5443
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5444
|
+
if (__getOwnPropSymbols$s)
|
5445
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
5446
|
+
if (__propIsEnum$s.call(b, prop))
|
5447
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5448
5448
|
}
|
5449
5449
|
return a;
|
5450
5450
|
};
|
5451
5451
|
class SceneDataLayerBase extends SceneObjectBase {
|
5452
5452
|
constructor(initialState, variableDependencyStatePaths = []) {
|
5453
|
-
super(__spreadValues$
|
5453
|
+
super(__spreadValues$s({
|
5454
5454
|
isEnabled: true
|
5455
5455
|
}, initialState));
|
5456
5456
|
this._results = new rxjs.ReplaySubject(1);
|
@@ -5572,21 +5572,21 @@ function DataLayerControlSwitch({ layer }) {
|
|
5572
5572
|
}
|
5573
5573
|
const containerStyle$1 = css.css({ display: "flex" });
|
5574
5574
|
|
5575
|
-
var __defProp$
|
5575
|
+
var __defProp$r = Object.defineProperty;
|
5576
5576
|
var __defProps$g = Object.defineProperties;
|
5577
5577
|
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
5578
|
-
var __getOwnPropSymbols$
|
5579
|
-
var __hasOwnProp$
|
5580
|
-
var __propIsEnum$
|
5581
|
-
var __defNormalProp$
|
5582
|
-
var __spreadValues$
|
5578
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
5579
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
5580
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
5581
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5582
|
+
var __spreadValues$r = (a, b) => {
|
5583
5583
|
for (var prop in b || (b = {}))
|
5584
|
-
if (__hasOwnProp$
|
5585
|
-
__defNormalProp$
|
5586
|
-
if (__getOwnPropSymbols$
|
5587
|
-
for (var prop of __getOwnPropSymbols$
|
5588
|
-
if (__propIsEnum$
|
5589
|
-
__defNormalProp$
|
5584
|
+
if (__hasOwnProp$r.call(b, prop))
|
5585
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5586
|
+
if (__getOwnPropSymbols$r)
|
5587
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
5588
|
+
if (__propIsEnum$r.call(b, prop))
|
5589
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5590
5590
|
}
|
5591
5591
|
return a;
|
5592
5592
|
};
|
@@ -5594,11 +5594,11 @@ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
|
5594
5594
|
var __objRest$2 = (source, exclude) => {
|
5595
5595
|
var target = {};
|
5596
5596
|
for (var prop in source)
|
5597
|
-
if (__hasOwnProp$
|
5597
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
5598
5598
|
target[prop] = source[prop];
|
5599
|
-
if (source != null && __getOwnPropSymbols$
|
5600
|
-
for (var prop of __getOwnPropSymbols$
|
5601
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
5599
|
+
if (source != null && __getOwnPropSymbols$r)
|
5600
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
5601
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
5602
5602
|
target[prop] = source[prop];
|
5603
5603
|
}
|
5604
5604
|
return target;
|
@@ -5607,7 +5607,7 @@ const standardAnnotationSupport = {
|
|
5607
5607
|
prepareAnnotation: (json) => {
|
5608
5608
|
if (lodash.isString(json == null ? void 0 : json.query)) {
|
5609
5609
|
const _a = json, { query } = _a, rest = __objRest$2(_a, ["query"]);
|
5610
|
-
return __spreadProps$g(__spreadValues$
|
5610
|
+
return __spreadProps$g(__spreadValues$r({}, rest), {
|
5611
5611
|
target: {
|
5612
5612
|
refId: "annotation_query",
|
5613
5613
|
query
|
@@ -5775,21 +5775,21 @@ function shouldUseLegacyRunner(datasource) {
|
|
5775
5775
|
return !datasource.annotations || legacyRunner.includes(type);
|
5776
5776
|
}
|
5777
5777
|
|
5778
|
-
var __defProp$
|
5778
|
+
var __defProp$q = Object.defineProperty;
|
5779
5779
|
var __defProps$f = Object.defineProperties;
|
5780
5780
|
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
5781
|
-
var __getOwnPropSymbols$
|
5782
|
-
var __hasOwnProp$
|
5783
|
-
var __propIsEnum$
|
5784
|
-
var __defNormalProp$
|
5785
|
-
var __spreadValues$
|
5781
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
5782
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
5783
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
5784
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5785
|
+
var __spreadValues$q = (a, b) => {
|
5786
5786
|
for (var prop in b || (b = {}))
|
5787
|
-
if (__hasOwnProp$
|
5788
|
-
__defNormalProp$
|
5789
|
-
if (__getOwnPropSymbols$
|
5790
|
-
for (var prop of __getOwnPropSymbols$
|
5791
|
-
if (__propIsEnum$
|
5792
|
-
__defNormalProp$
|
5787
|
+
if (__hasOwnProp$q.call(b, prop))
|
5788
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5789
|
+
if (__getOwnPropSymbols$q)
|
5790
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
5791
|
+
if (__propIsEnum$q.call(b, prop))
|
5792
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5793
5793
|
}
|
5794
5794
|
return a;
|
5795
5795
|
};
|
@@ -5816,8 +5816,8 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5816
5816
|
}))
|
5817
5817
|
);
|
5818
5818
|
}
|
5819
|
-
const processor = __spreadValues$
|
5820
|
-
const annotationWithDefaults = __spreadValues$
|
5819
|
+
const processor = __spreadValues$q(__spreadValues$q({}, standardAnnotationSupport), datasource.annotations);
|
5820
|
+
const annotationWithDefaults = __spreadValues$q(__spreadValues$q({}, (_a = processor.getDefaultQuery) == null ? void 0 : _a.call(processor)), query);
|
5821
5821
|
const annotation = processor.prepareAnnotation(annotationWithDefaults);
|
5822
5822
|
if (!annotation) {
|
5823
5823
|
return rxjs.of({
|
@@ -5840,7 +5840,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5840
5840
|
__annotation: { text: annotation.name, value: annotation },
|
5841
5841
|
__sceneObject: { text: "__sceneObject", value: layer }
|
5842
5842
|
};
|
5843
|
-
const queryRequest = __spreadValues$
|
5843
|
+
const queryRequest = __spreadValues$q(__spreadProps$f(__spreadValues$q({
|
5844
5844
|
startTime: Date.now(),
|
5845
5845
|
requestId: getNextRequestId(),
|
5846
5846
|
range: timeRange.state.value,
|
@@ -5850,7 +5850,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5850
5850
|
app: data.CoreApp.Dashboard,
|
5851
5851
|
timezone: timeRange.getTimeZone(),
|
5852
5852
|
targets: [
|
5853
|
-
__spreadProps$f(__spreadValues$
|
5853
|
+
__spreadProps$f(__spreadValues$q({}, processedQuery), {
|
5854
5854
|
refId: "Anno"
|
5855
5855
|
})
|
5856
5856
|
]
|
@@ -5868,7 +5868,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5868
5868
|
data$1.forEach((frame) => {
|
5869
5869
|
var _a2;
|
5870
5870
|
if (!((_a2 = frame.meta) == null ? void 0 : _a2.dataTopic)) {
|
5871
|
-
frame.meta = __spreadProps$f(__spreadValues$
|
5871
|
+
frame.meta = __spreadProps$f(__spreadValues$q({}, frame.meta || {}), { dataTopic: data.DataTopic.Annotations });
|
5872
5872
|
}
|
5873
5873
|
});
|
5874
5874
|
return processor.processEvents(annotation, data$1).pipe(
|
@@ -5883,19 +5883,19 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5883
5883
|
);
|
5884
5884
|
}
|
5885
5885
|
|
5886
|
-
var __defProp$
|
5887
|
-
var __getOwnPropSymbols$
|
5888
|
-
var __hasOwnProp$
|
5889
|
-
var __propIsEnum$
|
5890
|
-
var __defNormalProp$
|
5891
|
-
var __spreadValues$
|
5886
|
+
var __defProp$p = Object.defineProperty;
|
5887
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
5888
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
5889
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
5890
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5891
|
+
var __spreadValues$p = (a, b) => {
|
5892
5892
|
for (var prop in b || (b = {}))
|
5893
|
-
if (__hasOwnProp$
|
5894
|
-
__defNormalProp$
|
5895
|
-
if (__getOwnPropSymbols$
|
5896
|
-
for (var prop of __getOwnPropSymbols$
|
5897
|
-
if (__propIsEnum$
|
5898
|
-
__defNormalProp$
|
5893
|
+
if (__hasOwnProp$p.call(b, prop))
|
5894
|
+
__defNormalProp$p(a, prop, b[prop]);
|
5895
|
+
if (__getOwnPropSymbols$p)
|
5896
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
5897
|
+
if (__propIsEnum$p.call(b, prop))
|
5898
|
+
__defNormalProp$p(a, prop, b[prop]);
|
5899
5899
|
}
|
5900
5900
|
return a;
|
5901
5901
|
};
|
@@ -5906,7 +5906,7 @@ function postProcessQueryResult(annotation, results) {
|
|
5906
5906
|
}
|
5907
5907
|
const processed = results.map((item) => {
|
5908
5908
|
var _a;
|
5909
|
-
const processedItem = __spreadValues$
|
5909
|
+
const processedItem = __spreadValues$p({}, item);
|
5910
5910
|
processedItem.source = annotation;
|
5911
5911
|
processedItem.color = runtime.config.theme2.visualization.getColorByName(annotation.iconColor);
|
5912
5912
|
processedItem.type = annotation.name;
|
@@ -5955,21 +5955,21 @@ function isPanelAlert(event) {
|
|
5955
5955
|
return event.eventType === "panel-alert";
|
5956
5956
|
}
|
5957
5957
|
|
5958
|
-
var __defProp$
|
5958
|
+
var __defProp$o = Object.defineProperty;
|
5959
5959
|
var __defProps$e = Object.defineProperties;
|
5960
5960
|
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
5961
|
-
var __getOwnPropSymbols$
|
5962
|
-
var __hasOwnProp$
|
5963
|
-
var __propIsEnum$
|
5964
|
-
var __defNormalProp$
|
5965
|
-
var __spreadValues$
|
5961
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
5962
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
5963
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
5964
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5965
|
+
var __spreadValues$o = (a, b) => {
|
5966
5966
|
for (var prop in b || (b = {}))
|
5967
|
-
if (__hasOwnProp$
|
5968
|
-
__defNormalProp$
|
5969
|
-
if (__getOwnPropSymbols$
|
5970
|
-
for (var prop of __getOwnPropSymbols$
|
5971
|
-
if (__propIsEnum$
|
5972
|
-
__defNormalProp$
|
5967
|
+
if (__hasOwnProp$o.call(b, prop))
|
5968
|
+
__defNormalProp$o(a, prop, b[prop]);
|
5969
|
+
if (__getOwnPropSymbols$o)
|
5970
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
5971
|
+
if (__propIsEnum$o.call(b, prop))
|
5972
|
+
__defNormalProp$o(a, prop, b[prop]);
|
5973
5973
|
}
|
5974
5974
|
return a;
|
5975
5975
|
};
|
@@ -5977,7 +5977,7 @@ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
|
5977
5977
|
class AnnotationsDataLayer extends SceneDataLayerBase {
|
5978
5978
|
constructor(initialState) {
|
5979
5979
|
super(
|
5980
|
-
__spreadValues$
|
5980
|
+
__spreadValues$o({
|
5981
5981
|
isEnabled: true
|
5982
5982
|
}, initialState),
|
5983
5983
|
["query"]
|
@@ -6025,7 +6025,7 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6025
6025
|
this.publishResults(stateUpdate);
|
6026
6026
|
});
|
6027
6027
|
} catch (e) {
|
6028
|
-
this.publishResults(__spreadProps$e(__spreadValues$
|
6028
|
+
this.publishResults(__spreadProps$e(__spreadValues$o({}, emptyPanelData), {
|
6029
6029
|
state: schema.LoadingState.Error,
|
6030
6030
|
errors: [
|
6031
6031
|
{
|
@@ -6042,9 +6042,9 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6042
6042
|
processEvents(query, events) {
|
6043
6043
|
let processedEvents = postProcessQueryResult(query, events.events || []);
|
6044
6044
|
processedEvents = dedupAnnotations(processedEvents);
|
6045
|
-
const stateUpdate = __spreadProps$e(__spreadValues$
|
6045
|
+
const stateUpdate = __spreadProps$e(__spreadValues$o({}, emptyPanelData), { state: events.state });
|
6046
6046
|
const df = data.arrayToDataFrame(processedEvents);
|
6047
|
-
df.meta = __spreadProps$e(__spreadValues$
|
6047
|
+
df.meta = __spreadProps$e(__spreadValues$o({}, df.meta), {
|
6048
6048
|
dataTopic: data.DataTopic.Annotations
|
6049
6049
|
});
|
6050
6050
|
stateUpdate.series = [df];
|
@@ -6097,28 +6097,28 @@ class SceneTimeRangeTransformerBase extends SceneObjectBase {
|
|
6097
6097
|
}
|
6098
6098
|
}
|
6099
6099
|
|
6100
|
-
var __defProp$
|
6100
|
+
var __defProp$n = Object.defineProperty;
|
6101
6101
|
var __defProps$d = Object.defineProperties;
|
6102
6102
|
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
6103
|
-
var __getOwnPropSymbols$
|
6104
|
-
var __hasOwnProp$
|
6105
|
-
var __propIsEnum$
|
6106
|
-
var __defNormalProp$
|
6107
|
-
var __spreadValues$
|
6103
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
6104
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
6105
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
6106
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6107
|
+
var __spreadValues$n = (a, b) => {
|
6108
6108
|
for (var prop in b || (b = {}))
|
6109
|
-
if (__hasOwnProp$
|
6110
|
-
__defNormalProp$
|
6111
|
-
if (__getOwnPropSymbols$
|
6112
|
-
for (var prop of __getOwnPropSymbols$
|
6113
|
-
if (__propIsEnum$
|
6114
|
-
__defNormalProp$
|
6109
|
+
if (__hasOwnProp$n.call(b, prop))
|
6110
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6111
|
+
if (__getOwnPropSymbols$n)
|
6112
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
6113
|
+
if (__propIsEnum$n.call(b, prop))
|
6114
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6115
6115
|
}
|
6116
6116
|
return a;
|
6117
6117
|
};
|
6118
6118
|
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
6119
6119
|
class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
6120
6120
|
constructor(state) {
|
6121
|
-
super(__spreadProps$d(__spreadValues$
|
6121
|
+
super(__spreadProps$d(__spreadValues$n({}, state), {
|
6122
6122
|
timeZone: state.timeZone,
|
6123
6123
|
from: "now-6h",
|
6124
6124
|
to: "now",
|
@@ -6126,7 +6126,7 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6126
6126
|
}));
|
6127
6127
|
}
|
6128
6128
|
ancestorTimeRangeChanged(timeRange) {
|
6129
|
-
this.setState(__spreadProps$d(__spreadValues$
|
6129
|
+
this.setState(__spreadProps$d(__spreadValues$n({}, timeRange), {
|
6130
6130
|
timeZone: this.state.timeZone,
|
6131
6131
|
value: evaluateTimeRange(
|
6132
6132
|
timeRange.from,
|
@@ -6154,21 +6154,21 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6154
6154
|
}
|
6155
6155
|
}
|
6156
6156
|
|
6157
|
-
var __defProp$
|
6157
|
+
var __defProp$m = Object.defineProperty;
|
6158
6158
|
var __defProps$c = Object.defineProperties;
|
6159
6159
|
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
6160
|
-
var __getOwnPropSymbols$
|
6161
|
-
var __hasOwnProp$
|
6162
|
-
var __propIsEnum$
|
6163
|
-
var __defNormalProp$
|
6164
|
-
var __spreadValues$
|
6160
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
6161
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
6162
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
6163
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6164
|
+
var __spreadValues$m = (a, b) => {
|
6165
6165
|
for (var prop in b || (b = {}))
|
6166
|
-
if (__hasOwnProp$
|
6167
|
-
__defNormalProp$
|
6168
|
-
if (__getOwnPropSymbols$
|
6169
|
-
for (var prop of __getOwnPropSymbols$
|
6170
|
-
if (__propIsEnum$
|
6171
|
-
__defNormalProp$
|
6166
|
+
if (__hasOwnProp$m.call(b, prop))
|
6167
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6168
|
+
if (__getOwnPropSymbols$m)
|
6169
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
6170
|
+
if (__propIsEnum$m.call(b, prop))
|
6171
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6172
6172
|
}
|
6173
6173
|
return a;
|
6174
6174
|
};
|
@@ -6196,7 +6196,7 @@ class SceneDataLayerSetBase extends SceneObjectBase {
|
|
6196
6196
|
series = series.concat(result.data.series);
|
6197
6197
|
}
|
6198
6198
|
}
|
6199
|
-
const combinedData = __spreadProps$c(__spreadValues$
|
6199
|
+
const combinedData = __spreadProps$c(__spreadValues$m({}, emptyPanelData), { series });
|
6200
6200
|
this._results.next({ origin: this, data: combinedData });
|
6201
6201
|
this.setStateHelper({ data: combinedData });
|
6202
6202
|
}
|
@@ -6245,21 +6245,21 @@ SceneDataLayerSet.Component = ({ model }) => {
|
|
6245
6245
|
})));
|
6246
6246
|
};
|
6247
6247
|
|
6248
|
-
var __defProp$
|
6248
|
+
var __defProp$l = Object.defineProperty;
|
6249
6249
|
var __defProps$b = Object.defineProperties;
|
6250
6250
|
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
6251
|
-
var __getOwnPropSymbols$
|
6252
|
-
var __hasOwnProp$
|
6253
|
-
var __propIsEnum$
|
6254
|
-
var __defNormalProp$
|
6255
|
-
var __spreadValues$
|
6251
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
6252
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
6253
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
6254
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6255
|
+
var __spreadValues$l = (a, b) => {
|
6256
6256
|
for (var prop in b || (b = {}))
|
6257
|
-
if (__hasOwnProp$
|
6258
|
-
__defNormalProp$
|
6259
|
-
if (__getOwnPropSymbols$
|
6260
|
-
for (var prop of __getOwnPropSymbols$
|
6261
|
-
if (__propIsEnum$
|
6262
|
-
__defNormalProp$
|
6257
|
+
if (__hasOwnProp$l.call(b, prop))
|
6258
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6259
|
+
if (__getOwnPropSymbols$l)
|
6260
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
6261
|
+
if (__propIsEnum$l.call(b, prop))
|
6262
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6263
6263
|
}
|
6264
6264
|
return a;
|
6265
6265
|
};
|
@@ -6340,7 +6340,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6340
6340
|
const { series, annotations } = this._prevDataFromSource;
|
6341
6341
|
if (data.series === series && data.annotations === annotations) {
|
6342
6342
|
if (this.state.data && data.state !== this.state.data.state) {
|
6343
|
-
this.setState({ data: __spreadProps$b(__spreadValues$
|
6343
|
+
this.setState({ data: __spreadProps$b(__spreadValues$l({}, this.state.data), { state: data.state }) });
|
6344
6344
|
}
|
6345
6345
|
return true;
|
6346
6346
|
}
|
@@ -6388,7 +6388,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6388
6388
|
rxjs.map((values) => {
|
6389
6389
|
const transformedSeries = values[0];
|
6390
6390
|
const transformedAnnotations = values[1];
|
6391
|
-
return __spreadProps$b(__spreadValues$
|
6391
|
+
return __spreadProps$b(__spreadValues$l({}, data$1), {
|
6392
6392
|
series: transformedSeries,
|
6393
6393
|
annotations: transformedAnnotations != null ? transformedAnnotations : data$1.annotations
|
6394
6394
|
});
|
@@ -6399,7 +6399,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6399
6399
|
const sourceErr = ((_a2 = this.getSourceData().state.data) == null ? void 0 : _a2.errors) || [];
|
6400
6400
|
const transformationError = runtime.toDataQueryError(err);
|
6401
6401
|
transformationError.message = `Error transforming data: ${transformationError.message}`;
|
6402
|
-
const result = __spreadProps$b(__spreadValues$
|
6402
|
+
const result = __spreadProps$b(__spreadValues$l({}, data$1), {
|
6403
6403
|
state: data.LoadingState.Error,
|
6404
6404
|
errors: [...sourceErr, transformationError]
|
6405
6405
|
});
|
@@ -6734,41 +6734,9 @@ class SceneVariableSetVariableDependencyHandler {
|
|
6734
6734
|
}
|
6735
6735
|
}
|
6736
6736
|
|
6737
|
-
var __defProp$
|
6737
|
+
var __defProp$k = Object.defineProperty;
|
6738
6738
|
var __defProps$a = Object.defineProperties;
|
6739
6739
|
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
6740
|
-
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
6741
|
-
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
6742
|
-
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
6743
|
-
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6744
|
-
var __spreadValues$l = (a, b) => {
|
6745
|
-
for (var prop in b || (b = {}))
|
6746
|
-
if (__hasOwnProp$l.call(b, prop))
|
6747
|
-
__defNormalProp$l(a, prop, b[prop]);
|
6748
|
-
if (__getOwnPropSymbols$l)
|
6749
|
-
for (var prop of __getOwnPropSymbols$l(b)) {
|
6750
|
-
if (__propIsEnum$l.call(b, prop))
|
6751
|
-
__defNormalProp$l(a, prop, b[prop]);
|
6752
|
-
}
|
6753
|
-
return a;
|
6754
|
-
};
|
6755
|
-
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
6756
|
-
class ConstantVariable extends SceneObjectBase {
|
6757
|
-
constructor(initialState) {
|
6758
|
-
super(__spreadProps$a(__spreadValues$l({
|
6759
|
-
type: "constant",
|
6760
|
-
value: "",
|
6761
|
-
name: ""
|
6762
|
-
}, initialState), {
|
6763
|
-
skipUrlSync: true
|
6764
|
-
}));
|
6765
|
-
}
|
6766
|
-
getValue() {
|
6767
|
-
return this.state.value;
|
6768
|
-
}
|
6769
|
-
}
|
6770
|
-
|
6771
|
-
var __defProp$k = Object.defineProperty;
|
6772
6740
|
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
6773
6741
|
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
6774
6742
|
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
@@ -6784,41 +6752,21 @@ var __spreadValues$k = (a, b) => {
|
|
6784
6752
|
}
|
6785
6753
|
return a;
|
6786
6754
|
};
|
6787
|
-
|
6755
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
6756
|
+
class ConstantVariable extends SceneObjectBase {
|
6788
6757
|
constructor(initialState) {
|
6789
|
-
super(__spreadValues$k({
|
6790
|
-
type: "
|
6791
|
-
query: "",
|
6758
|
+
super(__spreadProps$a(__spreadValues$k({
|
6759
|
+
type: "constant",
|
6792
6760
|
value: "",
|
6793
|
-
text: "",
|
6794
|
-
options: [],
|
6795
6761
|
name: ""
|
6796
|
-
}, initialState)
|
6797
|
-
|
6798
|
-
|
6799
|
-
});
|
6762
|
+
}, initialState), {
|
6763
|
+
skipUrlSync: true
|
6764
|
+
}));
|
6800
6765
|
}
|
6801
|
-
|
6802
|
-
|
6803
|
-
const interpolated = sceneGraph.interpolate(this, this.state.query);
|
6804
|
-
const match = (_a = interpolated.match(/(?:\\,|[^,])+/g)) != null ? _a : [];
|
6805
|
-
const options = match.map((text) => {
|
6806
|
-
var _a2;
|
6807
|
-
text = text.replace(/\\,/g, ",");
|
6808
|
-
const textMatch = (_a2 = /^(.+)\s:\s(.+)$/g.exec(text)) != null ? _a2 : [];
|
6809
|
-
if (textMatch.length === 3) {
|
6810
|
-
const [, key, value] = textMatch;
|
6811
|
-
return { label: key.trim(), value: value.trim() };
|
6812
|
-
} else {
|
6813
|
-
return { label: text.trim(), value: text.trim() };
|
6814
|
-
}
|
6815
|
-
});
|
6816
|
-
return rxjs.of(options);
|
6766
|
+
getValue() {
|
6767
|
+
return this.state.value;
|
6817
6768
|
}
|
6818
6769
|
}
|
6819
|
-
CustomVariable.Component = ({ model }) => {
|
6820
|
-
return renderSelectForVariable(model);
|
6821
|
-
};
|
6822
6770
|
|
6823
6771
|
var __defProp$j = Object.defineProperty;
|
6824
6772
|
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
@@ -6836,11 +6784,10 @@ var __spreadValues$j = (a, b) => {
|
|
6836
6784
|
}
|
6837
6785
|
return a;
|
6838
6786
|
};
|
6839
|
-
class
|
6787
|
+
class CustomVariable extends MultiValueVariable {
|
6840
6788
|
constructor(initialState) {
|
6841
6789
|
super(__spreadValues$j({
|
6842
6790
|
type: "custom",
|
6843
|
-
isReadOnly: true,
|
6844
6791
|
query: "",
|
6845
6792
|
value: "",
|
6846
6793
|
text: "",
|
@@ -6868,26 +6815,8 @@ class SnapshotVariable extends MultiValueVariable {
|
|
6868
6815
|
});
|
6869
6816
|
return rxjs.of(options);
|
6870
6817
|
}
|
6871
|
-
validateAndUpdate() {
|
6872
|
-
return this.getValueOptions({}).pipe(
|
6873
|
-
rxjs.map((options) => {
|
6874
|
-
this._updateValueGivenNewOptions(options);
|
6875
|
-
return {};
|
6876
|
-
})
|
6877
|
-
);
|
6878
|
-
}
|
6879
|
-
_updateValueGivenNewOptions(options) {
|
6880
|
-
const { value: currentValue, text: currentText } = this.state;
|
6881
|
-
const stateUpdate = {
|
6882
|
-
options,
|
6883
|
-
loading: false,
|
6884
|
-
value: currentValue != null ? currentValue : [],
|
6885
|
-
text: currentText != null ? currentText : []
|
6886
|
-
};
|
6887
|
-
this.setState(stateUpdate);
|
6888
|
-
}
|
6889
6818
|
}
|
6890
|
-
|
6819
|
+
CustomVariable.Component = ({ model }) => {
|
6891
6820
|
return renderSelectForVariable(model);
|
6892
6821
|
};
|
6893
6822
|
|
@@ -11496,7 +11425,6 @@ exports.SceneToolbarButton = SceneToolbarButton;
|
|
11496
11425
|
exports.SceneToolbarInput = SceneToolbarInput;
|
11497
11426
|
exports.SceneVariableSet = SceneVariableSet;
|
11498
11427
|
exports.SceneVariableValueChangedEvent = SceneVariableValueChangedEvent;
|
11499
|
-
exports.SnapshotVariable = SnapshotVariable;
|
11500
11428
|
exports.SplitLayout = SplitLayout;
|
11501
11429
|
exports.TestVariable = TestVariable;
|
11502
11430
|
exports.TextBoxVariable = TextBoxVariable;
|
@@ -11522,6 +11450,7 @@ exports.isFiltersRequestEnricher = isFiltersRequestEnricher;
|
|
11522
11450
|
exports.isSceneObject = isSceneObject;
|
11523
11451
|
exports.registerQueryWithController = registerQueryWithController;
|
11524
11452
|
exports.registerRuntimeDataSource = registerRuntimeDataSource;
|
11453
|
+
exports.renderSelectForVariable = renderSelectForVariable;
|
11525
11454
|
exports.sceneGraph = sceneGraph;
|
11526
11455
|
exports.sceneUtils = sceneUtils;
|
11527
11456
|
exports.useSceneApp = useSceneApp;
|