@grafana/scenes 5.3.9--canary.830.9911285459.0 → 5.3.9
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/esm/components/VizPanel/VizPanelRenderer.js +1 -0
- package/dist/esm/components/VizPanel/VizPanelRenderer.js.map +1 -1
- package/dist/esm/components/layout/grid/SceneGridRow.js +4 -0
- package/dist/esm/components/layout/grid/SceneGridRow.js.map +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -6
- package/dist/index.js +583 -1020
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/dist/esm/variables/adhoc/AdHocCombobox.js +0 -396
- package/dist/esm/variables/adhoc/AdHocCombobox.js.map +0 -1
- package/dist/esm/variables/adhoc/AdHocFiltersVariableV2.js +0 -58
- package/dist/esm/variables/adhoc/AdHocFiltersVariableV2.js.map +0 -1
package/dist/index.js
CHANGED
@@ -16,8 +16,6 @@ var css = require('@emotion/css');
|
|
16
16
|
var uFuzzy = require('@leeoniya/ufuzzy');
|
17
17
|
var reactUse = require('react-use');
|
18
18
|
var operators = require('rxjs/operators');
|
19
|
-
var react = require('@floating-ui/react');
|
20
|
-
var reactDom = require('react-dom');
|
21
19
|
var ReactGridLayout = require('react-grid-layout');
|
22
20
|
var AutoSizer = require('react-virtualized-auto-sizer');
|
23
21
|
var BarChartPanelCfg_types_gen = require('@grafana/schema/dist/esm/raw/composable/barchart/panelcfg/x/BarChartPanelCfg_types.gen');
|
@@ -43,19 +41,19 @@ var uFuzzy__default = /*#__PURE__*/_interopDefaultLegacy(uFuzzy);
|
|
43
41
|
var ReactGridLayout__default = /*#__PURE__*/_interopDefaultLegacy(ReactGridLayout);
|
44
42
|
var AutoSizer__default = /*#__PURE__*/_interopDefaultLegacy(AutoSizer);
|
45
43
|
|
46
|
-
var __defProp$
|
47
|
-
var __getOwnPropSymbols$
|
48
|
-
var __hasOwnProp$
|
49
|
-
var __propIsEnum$
|
50
|
-
var __defNormalProp$
|
51
|
-
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) => {
|
52
50
|
for (var prop in b || (b = {}))
|
53
|
-
if (__hasOwnProp$
|
54
|
-
__defNormalProp$
|
55
|
-
if (__getOwnPropSymbols$
|
56
|
-
for (var prop of __getOwnPropSymbols$
|
57
|
-
if (__propIsEnum$
|
58
|
-
__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]);
|
59
57
|
}
|
60
58
|
return a;
|
61
59
|
};
|
@@ -64,7 +62,7 @@ function useAppQueryParams() {
|
|
64
62
|
return runtime.locationSearchToObject(location.search || "");
|
65
63
|
}
|
66
64
|
function getUrlWithAppState(path, preserveParams) {
|
67
|
-
const paramsCopy = __spreadValues$
|
65
|
+
const paramsCopy = __spreadValues$K({}, runtime.locationService.getSearchObject());
|
68
66
|
if (preserveParams) {
|
69
67
|
for (const key of Object.keys(paramsCopy)) {
|
70
68
|
if (!preserveParams.includes(key)) {
|
@@ -78,31 +76,31 @@ function renderSceneComponentWithRouteProps(sceneObject, routeProps) {
|
|
78
76
|
return React__default["default"].createElement(sceneObject.Component, { model: sceneObject, routeProps });
|
79
77
|
}
|
80
78
|
|
81
|
-
var __defProp$
|
82
|
-
var __defProps$
|
83
|
-
var __getOwnPropDescs$
|
84
|
-
var __getOwnPropSymbols$
|
85
|
-
var __hasOwnProp$
|
86
|
-
var __propIsEnum$
|
87
|
-
var __defNormalProp$
|
88
|
-
var __spreadValues$
|
79
|
+
var __defProp$J = Object.defineProperty;
|
80
|
+
var __defProps$t = Object.defineProperties;
|
81
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
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) => {
|
89
87
|
for (var prop in b || (b = {}))
|
90
|
-
if (__hasOwnProp$
|
91
|
-
__defNormalProp$
|
92
|
-
if (__getOwnPropSymbols$
|
93
|
-
for (var prop of __getOwnPropSymbols$
|
94
|
-
if (__propIsEnum$
|
95
|
-
__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]);
|
96
94
|
}
|
97
95
|
return a;
|
98
96
|
};
|
99
|
-
var __spreadProps$
|
97
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
100
98
|
const runtimePanelPlugins = /* @__PURE__ */ new Map();
|
101
99
|
function registerRuntimePanelPlugin({ pluginId, plugin }) {
|
102
100
|
if (runtimePanelPlugins.has(pluginId)) {
|
103
101
|
throw new Error(`A runtime panel plugin with id ${pluginId} has already been registered`);
|
104
102
|
}
|
105
|
-
plugin.meta = __spreadProps$
|
103
|
+
plugin.meta = __spreadProps$t(__spreadValues$J({}, plugin.meta), {
|
106
104
|
id: pluginId,
|
107
105
|
name: pluginId,
|
108
106
|
module: "runtime plugin",
|
@@ -130,39 +128,39 @@ function loadPanelPluginSync(pluginId) {
|
|
130
128
|
return (_a = getPanelPluginFromCache(pluginId)) != null ? _a : runtimePanelPlugins.get(pluginId);
|
131
129
|
}
|
132
130
|
|
133
|
-
var __defProp$
|
134
|
-
var __defProps$
|
135
|
-
var __getOwnPropDescs$
|
136
|
-
var __getOwnPropSymbols$
|
137
|
-
var __hasOwnProp$
|
138
|
-
var __propIsEnum$
|
139
|
-
var __defNormalProp$
|
140
|
-
var __spreadValues$
|
131
|
+
var __defProp$I = Object.defineProperty;
|
132
|
+
var __defProps$s = Object.defineProperties;
|
133
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
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) => {
|
141
139
|
for (var prop in b || (b = {}))
|
142
|
-
if (__hasOwnProp$
|
143
|
-
__defNormalProp$
|
144
|
-
if (__getOwnPropSymbols$
|
145
|
-
for (var prop of __getOwnPropSymbols$
|
146
|
-
if (__propIsEnum$
|
147
|
-
__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]);
|
148
146
|
}
|
149
147
|
return a;
|
150
148
|
};
|
151
|
-
var __spreadProps$
|
152
|
-
var __objRest$
|
149
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
150
|
+
var __objRest$4 = (source, exclude) => {
|
153
151
|
var target = {};
|
154
152
|
for (var prop in source)
|
155
|
-
if (__hasOwnProp$
|
153
|
+
if (__hasOwnProp$I.call(source, prop) && exclude.indexOf(prop) < 0)
|
156
154
|
target[prop] = source[prop];
|
157
|
-
if (source != null && __getOwnPropSymbols$
|
158
|
-
for (var prop of __getOwnPropSymbols$
|
159
|
-
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))
|
160
158
|
target[prop] = source[prop];
|
161
159
|
}
|
162
160
|
return target;
|
163
161
|
};
|
164
162
|
function SceneComponentWrapperWithoutMemo(_a) {
|
165
|
-
var _b = _a, { model } = _b, otherProps = __objRest$
|
163
|
+
var _b = _a, { model } = _b, otherProps = __objRest$4(_b, ["model"]);
|
166
164
|
var _a2;
|
167
165
|
const Component = (_a2 = model.constructor["Component"]) != null ? _a2 : EmptyRenderer;
|
168
166
|
const [_, setValue] = React.useState(0);
|
@@ -174,7 +172,7 @@ function SceneComponentWrapperWithoutMemo(_a) {
|
|
174
172
|
if (!model.isActive) {
|
175
173
|
return null;
|
176
174
|
}
|
177
|
-
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$
|
175
|
+
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$s(__spreadValues$I({}, otherProps), {
|
178
176
|
model
|
179
177
|
}));
|
180
178
|
}
|
@@ -220,19 +218,19 @@ class SceneObjectRef {
|
|
220
218
|
}
|
221
219
|
_ref = new WeakMap();
|
222
220
|
|
223
|
-
var __defProp$
|
224
|
-
var __getOwnPropSymbols$
|
225
|
-
var __hasOwnProp$
|
226
|
-
var __propIsEnum$
|
227
|
-
var __defNormalProp$
|
228
|
-
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) => {
|
229
227
|
for (var prop in b || (b = {}))
|
230
|
-
if (__hasOwnProp$
|
231
|
-
__defNormalProp$
|
232
|
-
if (__getOwnPropSymbols$
|
233
|
-
for (var prop of __getOwnPropSymbols$
|
234
|
-
if (__propIsEnum$
|
235
|
-
__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]);
|
236
234
|
}
|
237
235
|
return a;
|
238
236
|
};
|
@@ -292,7 +290,7 @@ class SceneObjectBase {
|
|
292
290
|
}
|
293
291
|
setState(update) {
|
294
292
|
const prevState = this._state;
|
295
|
-
const newState = __spreadValues$
|
293
|
+
const newState = __spreadValues$H(__spreadValues$H({}, this._state), update);
|
296
294
|
this._state = Object.freeze(newState);
|
297
295
|
this._setParent(update);
|
298
296
|
this._handleActivationOfChangedStateProps(prevState, newState);
|
@@ -488,19 +486,19 @@ function forEachChild(state, callback) {
|
|
488
486
|
}
|
489
487
|
}
|
490
488
|
|
491
|
-
var __defProp$
|
492
|
-
var __getOwnPropSymbols$
|
493
|
-
var __hasOwnProp$
|
494
|
-
var __propIsEnum$
|
495
|
-
var __defNormalProp$
|
496
|
-
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) => {
|
497
495
|
for (var prop in b || (b = {}))
|
498
|
-
if (__hasOwnProp$
|
499
|
-
__defNormalProp$
|
500
|
-
if (__getOwnPropSymbols$
|
501
|
-
for (var prop of __getOwnPropSymbols$
|
502
|
-
if (__propIsEnum$
|
503
|
-
__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]);
|
504
502
|
}
|
505
503
|
return a;
|
506
504
|
};
|
@@ -509,7 +507,7 @@ function cloneSceneObject(sceneObject, withState) {
|
|
509
507
|
return new sceneObject.constructor(clonedState);
|
510
508
|
}
|
511
509
|
function cloneSceneObjectState(sceneState, withState) {
|
512
|
-
const clonedState = __spreadValues$
|
510
|
+
const clonedState = __spreadValues$G({}, sceneState);
|
513
511
|
for (const key in clonedState) {
|
514
512
|
const propValue = clonedState[key];
|
515
513
|
if (propValue instanceof SceneObjectBase) {
|
@@ -606,25 +604,25 @@ function lookupVariable(name, sceneObject) {
|
|
606
604
|
return null;
|
607
605
|
}
|
608
606
|
|
609
|
-
var __defProp$
|
610
|
-
var __getOwnPropSymbols$
|
611
|
-
var __hasOwnProp$
|
612
|
-
var __propIsEnum$
|
613
|
-
var __defNormalProp$
|
614
|
-
var __spreadValues$
|
607
|
+
var __defProp$F = Object.defineProperty;
|
608
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
609
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
610
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
611
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
612
|
+
var __spreadValues$F = (a, b) => {
|
615
613
|
for (var prop in b || (b = {}))
|
616
|
-
if (__hasOwnProp$
|
617
|
-
__defNormalProp$
|
618
|
-
if (__getOwnPropSymbols$
|
619
|
-
for (var prop of __getOwnPropSymbols$
|
620
|
-
if (__propIsEnum$
|
621
|
-
__defNormalProp$
|
614
|
+
if (__hasOwnProp$F.call(b, prop))
|
615
|
+
__defNormalProp$F(a, prop, b[prop]);
|
616
|
+
if (__getOwnPropSymbols$F)
|
617
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
618
|
+
if (__propIsEnum$F.call(b, prop))
|
619
|
+
__defNormalProp$F(a, prop, b[prop]);
|
622
620
|
}
|
623
621
|
return a;
|
624
622
|
};
|
625
623
|
class SceneDataNode extends SceneObjectBase {
|
626
624
|
constructor(state) {
|
627
|
-
super(__spreadValues$
|
625
|
+
super(__spreadValues$F({
|
628
626
|
data: emptyPanelData
|
629
627
|
}, state));
|
630
628
|
}
|
@@ -705,19 +703,19 @@ function evaluateTimeRange(from, to, timeZone, fiscalYearStartMonth, delay) {
|
|
705
703
|
};
|
706
704
|
}
|
707
705
|
|
708
|
-
var __defProp$
|
709
|
-
var __getOwnPropSymbols$
|
710
|
-
var __hasOwnProp$
|
711
|
-
var __propIsEnum$
|
712
|
-
var __defNormalProp$
|
713
|
-
var __spreadValues$
|
706
|
+
var __defProp$E = Object.defineProperty;
|
707
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
708
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
709
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
710
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
711
|
+
var __spreadValues$E = (a, b) => {
|
714
712
|
for (var prop in b || (b = {}))
|
715
|
-
if (__hasOwnProp$
|
716
|
-
__defNormalProp$
|
717
|
-
if (__getOwnPropSymbols$
|
718
|
-
for (var prop of __getOwnPropSymbols$
|
719
|
-
if (__propIsEnum$
|
720
|
-
__defNormalProp$
|
713
|
+
if (__hasOwnProp$E.call(b, prop))
|
714
|
+
__defNormalProp$E(a, prop, b[prop]);
|
715
|
+
if (__getOwnPropSymbols$E)
|
716
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
717
|
+
if (__propIsEnum$E.call(b, prop))
|
718
|
+
__defNormalProp$E(a, prop, b[prop]);
|
721
719
|
}
|
722
720
|
return a;
|
723
721
|
};
|
@@ -734,7 +732,7 @@ class SceneTimeRange extends SceneObjectBase {
|
|
734
732
|
state.fiscalYearStartMonth,
|
735
733
|
state.UNSAFE_nowDelay
|
736
734
|
);
|
737
|
-
super(__spreadValues$
|
735
|
+
super(__spreadValues$E({ from, to, timeZone, value }, state));
|
738
736
|
this._urlSync = new SceneObjectUrlSyncConfig(this, { keys: ["from", "to", "timezone"] });
|
739
737
|
this.onTimeRangeChange = (timeRange) => {
|
740
738
|
const update = {};
|
@@ -1364,25 +1362,25 @@ function collectAllVariables(sceneObject, record = {}) {
|
|
1364
1362
|
return record;
|
1365
1363
|
}
|
1366
1364
|
|
1367
|
-
var __defProp$
|
1368
|
-
var __defProps$
|
1369
|
-
var __getOwnPropDescs$
|
1370
|
-
var __getOwnPropSymbols$
|
1371
|
-
var __hasOwnProp$
|
1372
|
-
var __propIsEnum$
|
1373
|
-
var __defNormalProp$
|
1374
|
-
var __spreadValues$
|
1365
|
+
var __defProp$D = Object.defineProperty;
|
1366
|
+
var __defProps$r = Object.defineProperties;
|
1367
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
1368
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
1369
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
1370
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
1371
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
1372
|
+
var __spreadValues$D = (a, b) => {
|
1375
1373
|
for (var prop in b || (b = {}))
|
1376
|
-
if (__hasOwnProp$
|
1377
|
-
__defNormalProp$
|
1378
|
-
if (__getOwnPropSymbols$
|
1379
|
-
for (var prop of __getOwnPropSymbols$
|
1380
|
-
if (__propIsEnum$
|
1381
|
-
__defNormalProp$
|
1374
|
+
if (__hasOwnProp$D.call(b, prop))
|
1375
|
+
__defNormalProp$D(a, prop, b[prop]);
|
1376
|
+
if (__getOwnPropSymbols$D)
|
1377
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
1378
|
+
if (__propIsEnum$D.call(b, prop))
|
1379
|
+
__defNormalProp$D(a, prop, b[prop]);
|
1382
1380
|
}
|
1383
1381
|
return a;
|
1384
1382
|
};
|
1385
|
-
var __spreadProps$
|
1383
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
1386
1384
|
function getTemplateProxyForField(field, frame, frames) {
|
1387
1385
|
return new Proxy(
|
1388
1386
|
{},
|
@@ -1398,7 +1396,7 @@ function getTemplateProxyForField(field, frame, frames) {
|
|
1398
1396
|
if (!field.labels) {
|
1399
1397
|
return "";
|
1400
1398
|
}
|
1401
|
-
return __spreadProps$
|
1399
|
+
return __spreadProps$r(__spreadValues$D({}, field.labels), {
|
1402
1400
|
__values: Object.values(field.labels).sort().join(", "),
|
1403
1401
|
toString: () => {
|
1404
1402
|
return data.formatLabels(field.labels, "", true);
|
@@ -2283,25 +2281,25 @@ function isExtraQueryProvider(obj) {
|
|
2283
2281
|
return typeof obj === "object" && "getExtraQueries" in obj;
|
2284
2282
|
}
|
2285
2283
|
|
2286
|
-
var __defProp$
|
2287
|
-
var __defProps$
|
2288
|
-
var __getOwnPropDescs$
|
2289
|
-
var __getOwnPropSymbols$
|
2290
|
-
var __hasOwnProp$
|
2291
|
-
var __propIsEnum$
|
2292
|
-
var __defNormalProp$
|
2293
|
-
var __spreadValues$
|
2284
|
+
var __defProp$C = Object.defineProperty;
|
2285
|
+
var __defProps$q = Object.defineProperties;
|
2286
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
2287
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
2288
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
2289
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
2290
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2291
|
+
var __spreadValues$C = (a, b) => {
|
2294
2292
|
for (var prop in b || (b = {}))
|
2295
|
-
if (__hasOwnProp$
|
2296
|
-
__defNormalProp$
|
2297
|
-
if (__getOwnPropSymbols$
|
2298
|
-
for (var prop of __getOwnPropSymbols$
|
2299
|
-
if (__propIsEnum$
|
2300
|
-
__defNormalProp$
|
2293
|
+
if (__hasOwnProp$C.call(b, prop))
|
2294
|
+
__defNormalProp$C(a, prop, b[prop]);
|
2295
|
+
if (__getOwnPropSymbols$C)
|
2296
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
2297
|
+
if (__propIsEnum$C.call(b, prop))
|
2298
|
+
__defNormalProp$C(a, prop, b[prop]);
|
2301
2299
|
}
|
2302
2300
|
return a;
|
2303
2301
|
};
|
2304
|
-
var __spreadProps$
|
2302
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
2305
2303
|
const passthroughProcessor = (_, secondary) => rxjs.of(secondary);
|
2306
2304
|
const extraQueryProcessingOperator = (processors) => (data) => {
|
2307
2305
|
return data.pipe(
|
@@ -2314,7 +2312,7 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2314
2312
|
}),
|
2315
2313
|
rxjs.map(([primary, ...processedSecondaries]) => {
|
2316
2314
|
var _a;
|
2317
|
-
return __spreadProps$
|
2315
|
+
return __spreadProps$q(__spreadValues$C({}, primary), {
|
2318
2316
|
series: [...primary.series, ...processedSecondaries.flatMap((s) => s.series)],
|
2319
2317
|
annotations: [...(_a = primary.annotations) != null ? _a : [], ...processedSecondaries.flatMap((s) => {
|
2320
2318
|
var _a2;
|
@@ -2325,25 +2323,25 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2325
2323
|
);
|
2326
2324
|
};
|
2327
2325
|
|
2328
|
-
var __defProp$
|
2329
|
-
var __defProps$
|
2330
|
-
var __getOwnPropDescs$
|
2331
|
-
var __getOwnPropSymbols$
|
2332
|
-
var __hasOwnProp$
|
2333
|
-
var __propIsEnum$
|
2334
|
-
var __defNormalProp$
|
2335
|
-
var __spreadValues$
|
2326
|
+
var __defProp$B = Object.defineProperty;
|
2327
|
+
var __defProps$p = Object.defineProperties;
|
2328
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
2329
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
2330
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
2331
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
2332
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2333
|
+
var __spreadValues$B = (a, b) => {
|
2336
2334
|
for (var prop in b || (b = {}))
|
2337
|
-
if (__hasOwnProp$
|
2338
|
-
__defNormalProp$
|
2339
|
-
if (__getOwnPropSymbols$
|
2340
|
-
for (var prop of __getOwnPropSymbols$
|
2341
|
-
if (__propIsEnum$
|
2342
|
-
__defNormalProp$
|
2335
|
+
if (__hasOwnProp$B.call(b, prop))
|
2336
|
+
__defNormalProp$B(a, prop, b[prop]);
|
2337
|
+
if (__getOwnPropSymbols$B)
|
2338
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
2339
|
+
if (__propIsEnum$B.call(b, prop))
|
2340
|
+
__defNormalProp$B(a, prop, b[prop]);
|
2343
2341
|
}
|
2344
2342
|
return a;
|
2345
2343
|
};
|
2346
|
-
var __spreadProps$
|
2344
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
2347
2345
|
function filterAnnotations(data, filters) {
|
2348
2346
|
var _a;
|
2349
2347
|
if (!Array.isArray(data) || data.length === 0) {
|
@@ -2394,11 +2392,11 @@ function filterAnnotations(data, filters) {
|
|
2394
2392
|
continue;
|
2395
2393
|
}
|
2396
2394
|
}
|
2397
|
-
fields.push(__spreadProps$
|
2395
|
+
fields.push(__spreadProps$p(__spreadValues$B({}, field), {
|
2398
2396
|
values: buffer
|
2399
2397
|
}));
|
2400
2398
|
}
|
2401
|
-
processed.push(__spreadProps$
|
2399
|
+
processed.push(__spreadProps$p(__spreadValues$B({}, frame), {
|
2402
2400
|
fields,
|
2403
2401
|
length: frameLength
|
2404
2402
|
}));
|
@@ -2824,33 +2822,33 @@ function getOptionSearcher(options, includeAll) {
|
|
2824
2822
|
};
|
2825
2823
|
}
|
2826
2824
|
|
2827
|
-
var __defProp$
|
2828
|
-
var __defProps$
|
2829
|
-
var __getOwnPropDescs$
|
2830
|
-
var __getOwnPropSymbols$
|
2831
|
-
var __hasOwnProp$
|
2832
|
-
var __propIsEnum$
|
2833
|
-
var __defNormalProp$
|
2834
|
-
var __spreadValues$
|
2825
|
+
var __defProp$A = Object.defineProperty;
|
2826
|
+
var __defProps$o = Object.defineProperties;
|
2827
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
2828
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
2829
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
2830
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
2831
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2832
|
+
var __spreadValues$A = (a, b) => {
|
2835
2833
|
for (var prop in b || (b = {}))
|
2836
|
-
if (__hasOwnProp$
|
2837
|
-
__defNormalProp$
|
2838
|
-
if (__getOwnPropSymbols$
|
2839
|
-
for (var prop of __getOwnPropSymbols$
|
2840
|
-
if (__propIsEnum$
|
2841
|
-
__defNormalProp$
|
2834
|
+
if (__hasOwnProp$A.call(b, prop))
|
2835
|
+
__defNormalProp$A(a, prop, b[prop]);
|
2836
|
+
if (__getOwnPropSymbols$A)
|
2837
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
2838
|
+
if (__propIsEnum$A.call(b, prop))
|
2839
|
+
__defNormalProp$A(a, prop, b[prop]);
|
2842
2840
|
}
|
2843
2841
|
return a;
|
2844
2842
|
};
|
2845
|
-
var __spreadProps$
|
2846
|
-
var __objRest$
|
2843
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
2844
|
+
var __objRest$3 = (source, exclude) => {
|
2847
2845
|
var target = {};
|
2848
2846
|
for (var prop in source)
|
2849
|
-
if (__hasOwnProp$
|
2847
|
+
if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
|
2850
2848
|
target[prop] = source[prop];
|
2851
|
-
if (source != null && __getOwnPropSymbols$
|
2852
|
-
for (var prop of __getOwnPropSymbols$
|
2853
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
2849
|
+
if (source != null && __getOwnPropSymbols$A)
|
2850
|
+
for (var prop of __getOwnPropSymbols$A(source)) {
|
2851
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
|
2854
2852
|
target[prop] = source[prop];
|
2855
2853
|
}
|
2856
2854
|
return target;
|
@@ -2978,11 +2976,11 @@ const OptionWithCheckbox = ({
|
|
2978
2976
|
renderOptionLabel
|
2979
2977
|
}) => {
|
2980
2978
|
var _b;
|
2981
|
-
const _a = innerProps, rest = __objRest$
|
2979
|
+
const _a = innerProps, rest = __objRest$3(_a, ["onMouseMove", "onMouseOver"]);
|
2982
2980
|
const theme = ui.useTheme2();
|
2983
2981
|
const selectStyles = ui.getSelectStyles(theme);
|
2984
2982
|
const optionStyles = ui.useStyles2(getOptionStyles);
|
2985
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$
|
2983
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$o(__spreadValues$A({
|
2986
2984
|
ref: innerRef,
|
2987
2985
|
className: css.cx(selectStyles.option, isFocused && selectStyles.optionFocused)
|
2988
2986
|
}, rest), {
|
@@ -3084,28 +3082,28 @@ function getEnrichedFiltersRequest(sourceRunner) {
|
|
3084
3082
|
return null;
|
3085
3083
|
}
|
3086
3084
|
|
3087
|
-
var __defProp$
|
3088
|
-
var __defProps$
|
3089
|
-
var __getOwnPropDescs$
|
3090
|
-
var __getOwnPropSymbols$
|
3091
|
-
var __hasOwnProp$
|
3092
|
-
var __propIsEnum$
|
3093
|
-
var __defNormalProp$
|
3094
|
-
var __spreadValues$
|
3085
|
+
var __defProp$z = Object.defineProperty;
|
3086
|
+
var __defProps$n = Object.defineProperties;
|
3087
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
3088
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
3089
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
3090
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
3091
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3092
|
+
var __spreadValues$z = (a, b) => {
|
3095
3093
|
for (var prop in b || (b = {}))
|
3096
|
-
if (__hasOwnProp$
|
3097
|
-
__defNormalProp$
|
3098
|
-
if (__getOwnPropSymbols$
|
3099
|
-
for (var prop of __getOwnPropSymbols$
|
3100
|
-
if (__propIsEnum$
|
3101
|
-
__defNormalProp$
|
3094
|
+
if (__hasOwnProp$z.call(b, prop))
|
3095
|
+
__defNormalProp$z(a, prop, b[prop]);
|
3096
|
+
if (__getOwnPropSymbols$z)
|
3097
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
3098
|
+
if (__propIsEnum$z.call(b, prop))
|
3099
|
+
__defNormalProp$z(a, prop, b[prop]);
|
3102
3100
|
}
|
3103
3101
|
return a;
|
3104
3102
|
};
|
3105
|
-
var __spreadProps$
|
3103
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
3106
3104
|
class GroupByVariable extends MultiValueVariable {
|
3107
3105
|
constructor(initialState) {
|
3108
|
-
super(__spreadProps$
|
3106
|
+
super(__spreadProps$n(__spreadValues$z({
|
3109
3107
|
isMulti: true,
|
3110
3108
|
name: "",
|
3111
3109
|
value: [],
|
@@ -3138,7 +3136,7 @@ class GroupByVariable extends MultiValueVariable {
|
|
3138
3136
|
const queries = getQueriesForVariables(this);
|
3139
3137
|
const otherFilters = this.state.baseFilters || [];
|
3140
3138
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3141
|
-
const response = await ds.getTagKeys(__spreadValues$
|
3139
|
+
const response = await ds.getTagKeys(__spreadValues$z({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
|
3142
3140
|
if (responseHasError(response)) {
|
3143
3141
|
this.setState({ error: response.error.message });
|
3144
3142
|
}
|
@@ -3757,29 +3755,29 @@ function isFilter(filter) {
|
|
3757
3755
|
return filter !== null && typeof filter.key === "string" && typeof filter.value === "string";
|
3758
3756
|
}
|
3759
3757
|
|
3760
|
-
var __defProp$
|
3761
|
-
var __defProps$
|
3762
|
-
var __getOwnPropDescs$
|
3763
|
-
var __getOwnPropSymbols$
|
3764
|
-
var __hasOwnProp$
|
3765
|
-
var __propIsEnum$
|
3766
|
-
var __defNormalProp$
|
3767
|
-
var __spreadValues$
|
3758
|
+
var __defProp$y = Object.defineProperty;
|
3759
|
+
var __defProps$m = Object.defineProperties;
|
3760
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
3761
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
3762
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
3763
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
3764
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3765
|
+
var __spreadValues$y = (a, b) => {
|
3768
3766
|
for (var prop in b || (b = {}))
|
3769
|
-
if (__hasOwnProp$
|
3770
|
-
__defNormalProp$
|
3771
|
-
if (__getOwnPropSymbols$
|
3772
|
-
for (var prop of __getOwnPropSymbols$
|
3773
|
-
if (__propIsEnum$
|
3774
|
-
__defNormalProp$
|
3767
|
+
if (__hasOwnProp$y.call(b, prop))
|
3768
|
+
__defNormalProp$y(a, prop, b[prop]);
|
3769
|
+
if (__getOwnPropSymbols$y)
|
3770
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
3771
|
+
if (__propIsEnum$y.call(b, prop))
|
3772
|
+
__defNormalProp$y(a, prop, b[prop]);
|
3775
3773
|
}
|
3776
3774
|
return a;
|
3777
3775
|
};
|
3778
|
-
var __spreadProps$
|
3776
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
3779
3777
|
class AdHocFiltersVariable extends SceneObjectBase {
|
3780
3778
|
constructor(state) {
|
3781
3779
|
var _a, _b;
|
3782
|
-
super(__spreadValues$
|
3780
|
+
super(__spreadValues$y({
|
3783
3781
|
type: "adhoc",
|
3784
3782
|
name: (_a = state.name) != null ? _a : "Filters",
|
3785
3783
|
filters: [],
|
@@ -3816,15 +3814,15 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3816
3814
|
const propLabelKey = `${prop}Label`;
|
3817
3815
|
if (filter === _wip) {
|
3818
3816
|
if (prop === "value") {
|
3819
|
-
this.setState({ filters: [...filters, __spreadProps$
|
3817
|
+
this.setState({ filters: [...filters, __spreadProps$m(__spreadValues$y({}, _wip), { [prop]: value, [propLabelKey]: label })], _wip: void 0 });
|
3820
3818
|
} else {
|
3821
|
-
this.setState({ _wip: __spreadProps$
|
3819
|
+
this.setState({ _wip: __spreadProps$m(__spreadValues$y({}, filter), { [prop]: value, [propLabelKey]: label }) });
|
3822
3820
|
}
|
3823
3821
|
return;
|
3824
3822
|
}
|
3825
3823
|
const updatedFilters = this.state.filters.map((f) => {
|
3826
3824
|
if (f === filter) {
|
3827
|
-
const updatedFilter = __spreadProps$
|
3825
|
+
const updatedFilter = __spreadProps$m(__spreadValues$y({}, f), { [prop]: value, [propLabelKey]: label });
|
3828
3826
|
if (prop === "key" && filter[prop] !== value) {
|
3829
3827
|
updatedFilter.value = "";
|
3830
3828
|
updatedFilter.valueLabel = "";
|
@@ -3858,7 +3856,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3858
3856
|
const otherFilters = this.state.filters.filter((f) => f.key !== currentKey).concat((_c = this.state.baseFilters) != null ? _c : []);
|
3859
3857
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3860
3858
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
3861
|
-
const response = await ds.getTagKeys(__spreadValues$
|
3859
|
+
const response = await ds.getTagKeys(__spreadValues$y({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
|
3862
3860
|
if (responseHasError(response)) {
|
3863
3861
|
this.setState({ error: response.error.message });
|
3864
3862
|
}
|
@@ -3885,7 +3883,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3885
3883
|
const otherFilters = this.state.filters.filter((f) => f.key !== filter.key).concat((_c = this.state.baseFilters) != null ? _c : []);
|
3886
3884
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3887
3885
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
3888
|
-
const response = await ds.getTagValues(__spreadValues$
|
3886
|
+
const response = await ds.getTagValues(__spreadValues$y({
|
3889
3887
|
key: filter.key,
|
3890
3888
|
filters: otherFilters,
|
3891
3889
|
timeRange,
|
@@ -4002,25 +4000,25 @@ function areDifferentLayers(a, b) {
|
|
4002
4000
|
return false;
|
4003
4001
|
}
|
4004
4002
|
|
4005
|
-
var __defProp$
|
4006
|
-
var __defProps$
|
4007
|
-
var __getOwnPropDescs$
|
4008
|
-
var __getOwnPropSymbols$
|
4009
|
-
var __hasOwnProp$
|
4010
|
-
var __propIsEnum$
|
4011
|
-
var __defNormalProp$
|
4012
|
-
var __spreadValues$
|
4003
|
+
var __defProp$x = Object.defineProperty;
|
4004
|
+
var __defProps$l = Object.defineProperties;
|
4005
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
4006
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
4007
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
4008
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
4009
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4010
|
+
var __spreadValues$x = (a, b) => {
|
4013
4011
|
for (var prop in b || (b = {}))
|
4014
|
-
if (__hasOwnProp$
|
4015
|
-
__defNormalProp$
|
4016
|
-
if (__getOwnPropSymbols$
|
4017
|
-
for (var prop of __getOwnPropSymbols$
|
4018
|
-
if (__propIsEnum$
|
4019
|
-
__defNormalProp$
|
4012
|
+
if (__hasOwnProp$x.call(b, prop))
|
4013
|
+
__defNormalProp$x(a, prop, b[prop]);
|
4014
|
+
if (__getOwnPropSymbols$x)
|
4015
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
4016
|
+
if (__propIsEnum$x.call(b, prop))
|
4017
|
+
__defNormalProp$x(a, prop, b[prop]);
|
4020
4018
|
}
|
4021
4019
|
return a;
|
4022
4020
|
};
|
4023
|
-
var __spreadProps$
|
4021
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
4024
4022
|
let counter$1 = 100;
|
4025
4023
|
function getNextRequestId$1() {
|
4026
4024
|
return "SQR" + counter$1++;
|
@@ -4118,9 +4116,9 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4118
4116
|
return;
|
4119
4117
|
}
|
4120
4118
|
this._layerAnnotations = annotations;
|
4121
|
-
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$
|
4119
|
+
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$l(__spreadValues$x({}, emptyPanelData), { timeRange: timeRange.state.value });
|
4122
4120
|
this.setState({
|
4123
|
-
data: __spreadProps$
|
4121
|
+
data: __spreadProps$l(__spreadValues$x({}, baseStateUpdate), {
|
4124
4122
|
annotations: [...(_d = this._resultAnnotations) != null ? _d : [], ...annotations],
|
4125
4123
|
alertState: alertState != null ? alertState : (_e = this.state.data) == null ? void 0 : _e.alertState
|
4126
4124
|
})
|
@@ -4239,7 +4237,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4239
4237
|
this._dataLayersSub = void 0;
|
4240
4238
|
}
|
4241
4239
|
this.setState({
|
4242
|
-
data: __spreadProps$
|
4240
|
+
data: __spreadProps$l(__spreadValues$x({}, this.state.data), { state: schema.LoadingState.Done })
|
4243
4241
|
});
|
4244
4242
|
}
|
4245
4243
|
async runWithTimeRange(timeRange) {
|
@@ -4253,7 +4251,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4253
4251
|
(_a = this._querySub) == null ? void 0 : _a.unsubscribe();
|
4254
4252
|
if (this._variableDependency.hasDependencyInLoadingState()) {
|
4255
4253
|
writeSceneLog("SceneQueryRunner", "Variable dependency is in loading state, skipping query execution");
|
4256
|
-
this.setState({ data: __spreadProps$
|
4254
|
+
this.setState({ data: __spreadProps$l(__spreadValues$x({}, (_b = this.state.data) != null ? _b : emptyPanelData), { state: schema.LoadingState.Loading }) });
|
4257
4255
|
return;
|
4258
4256
|
}
|
4259
4257
|
const { queries } = this.state;
|
@@ -4285,7 +4283,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4285
4283
|
this._querySub = stream.subscribe(this.onDataReceived);
|
4286
4284
|
} catch (err) {
|
4287
4285
|
console.error("PanelQueryRunner Error", err);
|
4288
|
-
this.onDataReceived(__spreadProps$
|
4286
|
+
this.onDataReceived(__spreadProps$l(__spreadValues$x(__spreadValues$x({}, emptyPanelData), this.state.data), {
|
4289
4287
|
state: schema.LoadingState.Error,
|
4290
4288
|
errors: [runtime.toDataQueryError(err)]
|
4291
4289
|
}));
|
@@ -4295,10 +4293,10 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4295
4293
|
var _a;
|
4296
4294
|
const clone = super.clone(withState);
|
4297
4295
|
if (this._resultAnnotations) {
|
4298
|
-
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$
|
4296
|
+
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$x({}, frame));
|
4299
4297
|
}
|
4300
4298
|
if (this._layerAnnotations) {
|
4301
|
-
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$
|
4299
|
+
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$x({}, frame));
|
4302
4300
|
}
|
4303
4301
|
clone["_variableValueRecorder"] = this._variableValueRecorder.cloneAndRecordCurrentValuesForSceneObject(this);
|
4304
4302
|
clone["_containerWidth"] = this._containerWidth;
|
@@ -4308,7 +4306,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4308
4306
|
prepareRequests(timeRange, ds) {
|
4309
4307
|
var _a;
|
4310
4308
|
const { minInterval, queries } = this.state;
|
4311
|
-
let request = __spreadValues$
|
4309
|
+
let request = __spreadValues$x({
|
4312
4310
|
app: "scenes",
|
4313
4311
|
requestId: getNextRequestId$1(),
|
4314
4312
|
timezone: timeRange.getTimeZone(),
|
@@ -4354,7 +4352,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4354
4352
|
for (const provider of (_a = this.getClosestExtraQueryProviders()) != null ? _a : []) {
|
4355
4353
|
for (const { req, processor } of provider.getExtraQueries(request)) {
|
4356
4354
|
const requestId = getNextRequestId$1();
|
4357
|
-
secondaryRequests.push(__spreadProps$
|
4355
|
+
secondaryRequests.push(__spreadProps$l(__spreadValues$x({}, req), { requestId }));
|
4358
4356
|
secondaryProcessors.set(requestId, processor != null ? processor : passthroughProcessor);
|
4359
4357
|
}
|
4360
4358
|
}
|
@@ -4596,28 +4594,28 @@ class ActWhenVariableChanged extends SceneObjectBase {
|
|
4596
4594
|
}
|
4597
4595
|
}
|
4598
4596
|
|
4599
|
-
var __defProp$
|
4600
|
-
var __defProps$
|
4601
|
-
var __getOwnPropDescs$
|
4602
|
-
var __getOwnPropSymbols$
|
4603
|
-
var __hasOwnProp$
|
4604
|
-
var __propIsEnum$
|
4605
|
-
var __defNormalProp$
|
4606
|
-
var __spreadValues$
|
4597
|
+
var __defProp$w = Object.defineProperty;
|
4598
|
+
var __defProps$k = Object.defineProperties;
|
4599
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
4600
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
4601
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
4602
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
4603
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4604
|
+
var __spreadValues$w = (a, b) => {
|
4607
4605
|
for (var prop in b || (b = {}))
|
4608
|
-
if (__hasOwnProp$
|
4609
|
-
__defNormalProp$
|
4610
|
-
if (__getOwnPropSymbols$
|
4611
|
-
for (var prop of __getOwnPropSymbols$
|
4612
|
-
if (__propIsEnum$
|
4613
|
-
__defNormalProp$
|
4606
|
+
if (__hasOwnProp$w.call(b, prop))
|
4607
|
+
__defNormalProp$w(a, prop, b[prop]);
|
4608
|
+
if (__getOwnPropSymbols$w)
|
4609
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
4610
|
+
if (__propIsEnum$w.call(b, prop))
|
4611
|
+
__defNormalProp$w(a, prop, b[prop]);
|
4614
4612
|
}
|
4615
4613
|
return a;
|
4616
4614
|
};
|
4617
|
-
var __spreadProps$
|
4615
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
4618
4616
|
class CursorSync extends SceneObjectBase {
|
4619
4617
|
constructor(state) {
|
4620
|
-
super(__spreadProps$
|
4618
|
+
super(__spreadProps$k(__spreadValues$w({}, state), {
|
4621
4619
|
sync: state.sync || schema.DashboardCursorSync.Off
|
4622
4620
|
}));
|
4623
4621
|
this.getEventsBus = (panel) => {
|
@@ -4802,6 +4800,7 @@ function VizPanelRenderer({ model }) {
|
|
4802
4800
|
menu: panelMenu,
|
4803
4801
|
onCancelQuery: model.onCancelQuery,
|
4804
4802
|
onFocus: setPanelAttention,
|
4803
|
+
onMouseEnter: setPanelAttention,
|
4805
4804
|
onMouseMove: debouncedMouseMove
|
4806
4805
|
}, (innerWidth, innerHeight) => /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(ui.ErrorBoundaryAlert, {
|
4807
4806
|
dependencies: [plugin, data$1]
|
@@ -4881,25 +4880,25 @@ const getAlertStateStyles = (theme) => {
|
|
4881
4880
|
};
|
4882
4881
|
};
|
4883
4882
|
|
4884
|
-
var __defProp$
|
4885
|
-
var __defProps$
|
4886
|
-
var __getOwnPropDescs$
|
4887
|
-
var __getOwnPropSymbols$
|
4888
|
-
var __hasOwnProp$
|
4889
|
-
var __propIsEnum$
|
4890
|
-
var __defNormalProp$
|
4891
|
-
var __spreadValues$
|
4883
|
+
var __defProp$v = Object.defineProperty;
|
4884
|
+
var __defProps$j = Object.defineProperties;
|
4885
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
4886
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
4887
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
4888
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
4889
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4890
|
+
var __spreadValues$v = (a, b) => {
|
4892
4891
|
for (var prop in b || (b = {}))
|
4893
|
-
if (__hasOwnProp$
|
4894
|
-
__defNormalProp$
|
4895
|
-
if (__getOwnPropSymbols$
|
4896
|
-
for (var prop of __getOwnPropSymbols$
|
4897
|
-
if (__propIsEnum$
|
4898
|
-
__defNormalProp$
|
4892
|
+
if (__hasOwnProp$v.call(b, prop))
|
4893
|
+
__defNormalProp$v(a, prop, b[prop]);
|
4894
|
+
if (__getOwnPropSymbols$v)
|
4895
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
4896
|
+
if (__propIsEnum$v.call(b, prop))
|
4897
|
+
__defNormalProp$v(a, prop, b[prop]);
|
4899
4898
|
}
|
4900
4899
|
return a;
|
4901
4900
|
};
|
4902
|
-
var __spreadProps$
|
4901
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
4903
4902
|
const displayOverrideRef = "hideSeriesFrom";
|
4904
4903
|
const isHideSeriesOverride = data.isSystemOverrideWithRef(displayOverrideRef);
|
4905
4904
|
function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
@@ -4909,13 +4908,13 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4909
4908
|
if (currentIndex < 0) {
|
4910
4909
|
if (mode === ui.SeriesVisibilityChangeMode.ToggleSelection) {
|
4911
4910
|
const override3 = createOverride$1([displayName, ...getNamesOfHiddenFields(overrides, data)]);
|
4912
|
-
return __spreadProps$
|
4911
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4913
4912
|
overrides: [...fieldConfig.overrides, override3]
|
4914
4913
|
});
|
4915
4914
|
}
|
4916
4915
|
const displayNames = getDisplayNames(data, displayName);
|
4917
4916
|
const override2 = createOverride$1(displayNames);
|
4918
|
-
return __spreadProps$
|
4917
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4919
4918
|
overrides: [...fieldConfig.overrides, override2]
|
4920
4919
|
});
|
4921
4920
|
}
|
@@ -4928,22 +4927,22 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4928
4927
|
existing = existing.filter((el) => nameOfHiddenFields.indexOf(el) < 0);
|
4929
4928
|
}
|
4930
4929
|
if (existing[0] === displayName && existing.length === 1) {
|
4931
|
-
return __spreadProps$
|
4930
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4932
4931
|
overrides: overridesCopy
|
4933
4932
|
});
|
4934
4933
|
}
|
4935
4934
|
const override2 = createOverride$1([displayName, ...nameOfHiddenFields]);
|
4936
|
-
return __spreadProps$
|
4935
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4937
4936
|
overrides: [...overridesCopy, override2]
|
4938
4937
|
});
|
4939
4938
|
}
|
4940
4939
|
const override = createExtendedOverride(current, displayName);
|
4941
4940
|
if (allFieldsAreExcluded(override, data)) {
|
4942
|
-
return __spreadProps$
|
4941
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4943
4942
|
overrides: overridesCopy
|
4944
4943
|
});
|
4945
4944
|
}
|
4946
|
-
return __spreadProps$
|
4945
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4947
4946
|
overrides: [...overridesCopy, override]
|
4948
4947
|
});
|
4949
4948
|
}
|
@@ -4968,7 +4967,7 @@ function createOverride$1(names, mode = data.ByNamesMatcherMode.exclude, propert
|
|
4968
4967
|
}
|
4969
4968
|
},
|
4970
4969
|
properties: [
|
4971
|
-
__spreadProps$
|
4970
|
+
__spreadProps$j(__spreadValues$v({}, property), {
|
4972
4971
|
value: {
|
4973
4972
|
viz: true,
|
4974
4973
|
legend: false,
|
@@ -5040,32 +5039,32 @@ const getNamesOfHiddenFields = (overrides, data$1) => {
|
|
5040
5039
|
return names;
|
5041
5040
|
};
|
5042
5041
|
|
5043
|
-
var __defProp$
|
5044
|
-
var __defProps$
|
5045
|
-
var __getOwnPropDescs$
|
5046
|
-
var __getOwnPropSymbols$
|
5047
|
-
var __hasOwnProp$
|
5048
|
-
var __propIsEnum$
|
5049
|
-
var __defNormalProp$
|
5050
|
-
var __spreadValues$
|
5042
|
+
var __defProp$u = Object.defineProperty;
|
5043
|
+
var __defProps$i = Object.defineProperties;
|
5044
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
5045
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
5046
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
5047
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
5048
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5049
|
+
var __spreadValues$u = (a, b) => {
|
5051
5050
|
for (var prop in b || (b = {}))
|
5052
|
-
if (__hasOwnProp$
|
5053
|
-
__defNormalProp$
|
5054
|
-
if (__getOwnPropSymbols$
|
5055
|
-
for (var prop of __getOwnPropSymbols$
|
5056
|
-
if (__propIsEnum$
|
5057
|
-
__defNormalProp$
|
5051
|
+
if (__hasOwnProp$u.call(b, prop))
|
5052
|
+
__defNormalProp$u(a, prop, b[prop]);
|
5053
|
+
if (__getOwnPropSymbols$u)
|
5054
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
5055
|
+
if (__propIsEnum$u.call(b, prop))
|
5056
|
+
__defNormalProp$u(a, prop, b[prop]);
|
5058
5057
|
}
|
5059
5058
|
return a;
|
5060
5059
|
};
|
5061
|
-
var __spreadProps$
|
5060
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
5062
5061
|
const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
5063
5062
|
const { overrides } = fieldConfig;
|
5064
5063
|
const currentIndex = fieldConfig.overrides.findIndex((override) => {
|
5065
5064
|
return override.matcher.id === data.FieldMatcherID.byName && override.matcher.options === label;
|
5066
5065
|
});
|
5067
5066
|
if (currentIndex < 0) {
|
5068
|
-
return __spreadProps$
|
5067
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
5069
5068
|
overrides: [...fieldConfig.overrides, createOverride(label, color)]
|
5070
5069
|
});
|
5071
5070
|
}
|
@@ -5073,19 +5072,19 @@ const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
|
5073
5072
|
const existing = overridesCopy[currentIndex];
|
5074
5073
|
const propertyIndex = existing.properties.findIndex((p) => p.id === "color");
|
5075
5074
|
if (propertyIndex < 0) {
|
5076
|
-
overridesCopy[currentIndex] = __spreadProps$
|
5075
|
+
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$u({}, existing), {
|
5077
5076
|
properties: [...existing.properties, createProperty(color)]
|
5078
5077
|
});
|
5079
|
-
return __spreadProps$
|
5078
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
5080
5079
|
overrides: overridesCopy
|
5081
5080
|
});
|
5082
5081
|
}
|
5083
5082
|
const propertiesCopy = Array.from(existing.properties);
|
5084
5083
|
propertiesCopy[propertyIndex] = createProperty(color);
|
5085
|
-
overridesCopy[currentIndex] = __spreadProps$
|
5084
|
+
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$u({}, existing), {
|
5086
5085
|
properties: propertiesCopy
|
5087
5086
|
});
|
5088
|
-
return __spreadProps$
|
5087
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
5089
5088
|
overrides: overridesCopy
|
5090
5089
|
});
|
5091
5090
|
};
|
@@ -5108,29 +5107,29 @@ const createProperty = (color) => {
|
|
5108
5107
|
};
|
5109
5108
|
};
|
5110
5109
|
|
5111
|
-
var __defProp$
|
5112
|
-
var __defProps$
|
5113
|
-
var __getOwnPropDescs$
|
5114
|
-
var __getOwnPropSymbols$
|
5115
|
-
var __hasOwnProp$
|
5116
|
-
var __propIsEnum$
|
5117
|
-
var __defNormalProp$
|
5118
|
-
var __spreadValues$
|
5110
|
+
var __defProp$t = Object.defineProperty;
|
5111
|
+
var __defProps$h = Object.defineProperties;
|
5112
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
5113
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
5114
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
5115
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
5116
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5117
|
+
var __spreadValues$t = (a, b) => {
|
5119
5118
|
for (var prop in b || (b = {}))
|
5120
|
-
if (__hasOwnProp$
|
5121
|
-
__defNormalProp$
|
5122
|
-
if (__getOwnPropSymbols$
|
5123
|
-
for (var prop of __getOwnPropSymbols$
|
5124
|
-
if (__propIsEnum$
|
5125
|
-
__defNormalProp$
|
5119
|
+
if (__hasOwnProp$t.call(b, prop))
|
5120
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5121
|
+
if (__getOwnPropSymbols$t)
|
5122
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
5123
|
+
if (__propIsEnum$t.call(b, prop))
|
5124
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5126
5125
|
}
|
5127
5126
|
return a;
|
5128
5127
|
};
|
5129
|
-
var __spreadProps$
|
5128
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
5130
5129
|
class VizPanel extends SceneObjectBase {
|
5131
5130
|
constructor(state) {
|
5132
5131
|
var _a;
|
5133
|
-
super(__spreadValues$
|
5132
|
+
super(__spreadValues$t({
|
5134
5133
|
options: {},
|
5135
5134
|
fieldConfig: { defaults: {}, overrides: [] },
|
5136
5135
|
title: "Title",
|
@@ -5247,7 +5246,7 @@ class VizPanel extends SceneObjectBase {
|
|
5247
5246
|
};
|
5248
5247
|
this._onInstanceStateChange = (state) => {
|
5249
5248
|
if (this._panelContext) {
|
5250
|
-
this._panelContext = __spreadProps$
|
5249
|
+
this._panelContext = __spreadProps$h(__spreadValues$t({}, this._panelContext), {
|
5251
5250
|
instanceState: state
|
5252
5251
|
});
|
5253
5252
|
}
|
@@ -5271,8 +5270,8 @@ class VizPanel extends SceneObjectBase {
|
|
5271
5270
|
sortBy = sortKey;
|
5272
5271
|
}
|
5273
5272
|
this.onOptionsChange(
|
5274
|
-
__spreadProps$
|
5275
|
-
legend: __spreadProps$
|
5273
|
+
__spreadProps$h(__spreadValues$t({}, this.state.options), {
|
5274
|
+
legend: __spreadProps$h(__spreadValues$t({}, legendOptions), { sortBy, sortDesc })
|
5276
5275
|
}),
|
5277
5276
|
true
|
5278
5277
|
);
|
@@ -5382,7 +5381,7 @@ class VizPanel extends SceneObjectBase {
|
|
5382
5381
|
if (!data.compareArrayValues(newFrames, prevFrames, data.compareDataFrameStructures)) {
|
5383
5382
|
this._structureRev++;
|
5384
5383
|
}
|
5385
|
-
this._dataWithFieldConfig = __spreadProps$
|
5384
|
+
this._dataWithFieldConfig = __spreadProps$h(__spreadValues$t({}, rawData), {
|
5386
5385
|
structureRev: this._structureRev,
|
5387
5386
|
series: newFrames
|
5388
5387
|
});
|
@@ -5525,25 +5524,25 @@ function getMessageFromError(err) {
|
|
5525
5524
|
return JSON.stringify(err);
|
5526
5525
|
}
|
5527
5526
|
|
5528
|
-
var __defProp$
|
5529
|
-
var __getOwnPropSymbols$
|
5530
|
-
var __hasOwnProp$
|
5531
|
-
var __propIsEnum$
|
5532
|
-
var __defNormalProp$
|
5533
|
-
var __spreadValues$
|
5527
|
+
var __defProp$s = Object.defineProperty;
|
5528
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
5529
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
5530
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
5531
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5532
|
+
var __spreadValues$s = (a, b) => {
|
5534
5533
|
for (var prop in b || (b = {}))
|
5535
|
-
if (__hasOwnProp$
|
5536
|
-
__defNormalProp$
|
5537
|
-
if (__getOwnPropSymbols$
|
5538
|
-
for (var prop of __getOwnPropSymbols$
|
5539
|
-
if (__propIsEnum$
|
5540
|
-
__defNormalProp$
|
5534
|
+
if (__hasOwnProp$s.call(b, prop))
|
5535
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5536
|
+
if (__getOwnPropSymbols$s)
|
5537
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
5538
|
+
if (__propIsEnum$s.call(b, prop))
|
5539
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5541
5540
|
}
|
5542
5541
|
return a;
|
5543
5542
|
};
|
5544
5543
|
class SceneDataLayerBase extends SceneObjectBase {
|
5545
5544
|
constructor(initialState, variableDependencyStatePaths = []) {
|
5546
|
-
super(__spreadValues$
|
5545
|
+
super(__spreadValues$s({
|
5547
5546
|
isEnabled: true
|
5548
5547
|
}, initialState));
|
5549
5548
|
this._results = new rxjs.ReplaySubject(1);
|
@@ -5668,33 +5667,33 @@ function DataLayerControlSwitch({ layer }) {
|
|
5668
5667
|
}
|
5669
5668
|
const containerStyle$1 = css.css({ display: "flex" });
|
5670
5669
|
|
5671
|
-
var __defProp$
|
5672
|
-
var __defProps$
|
5673
|
-
var __getOwnPropDescs$
|
5674
|
-
var __getOwnPropSymbols$
|
5675
|
-
var __hasOwnProp$
|
5676
|
-
var __propIsEnum$
|
5677
|
-
var __defNormalProp$
|
5678
|
-
var __spreadValues$
|
5670
|
+
var __defProp$r = Object.defineProperty;
|
5671
|
+
var __defProps$g = Object.defineProperties;
|
5672
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
5673
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
5674
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
5675
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
5676
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5677
|
+
var __spreadValues$r = (a, b) => {
|
5679
5678
|
for (var prop in b || (b = {}))
|
5680
|
-
if (__hasOwnProp$
|
5681
|
-
__defNormalProp$
|
5682
|
-
if (__getOwnPropSymbols$
|
5683
|
-
for (var prop of __getOwnPropSymbols$
|
5684
|
-
if (__propIsEnum$
|
5685
|
-
__defNormalProp$
|
5679
|
+
if (__hasOwnProp$r.call(b, prop))
|
5680
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5681
|
+
if (__getOwnPropSymbols$r)
|
5682
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
5683
|
+
if (__propIsEnum$r.call(b, prop))
|
5684
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5686
5685
|
}
|
5687
5686
|
return a;
|
5688
5687
|
};
|
5689
|
-
var __spreadProps$
|
5690
|
-
var __objRest$
|
5688
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
5689
|
+
var __objRest$2 = (source, exclude) => {
|
5691
5690
|
var target = {};
|
5692
5691
|
for (var prop in source)
|
5693
|
-
if (__hasOwnProp$
|
5692
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
5694
5693
|
target[prop] = source[prop];
|
5695
|
-
if (source != null && __getOwnPropSymbols$
|
5696
|
-
for (var prop of __getOwnPropSymbols$
|
5697
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
5694
|
+
if (source != null && __getOwnPropSymbols$r)
|
5695
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
5696
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
5698
5697
|
target[prop] = source[prop];
|
5699
5698
|
}
|
5700
5699
|
return target;
|
@@ -5702,8 +5701,8 @@ var __objRest$3 = (source, exclude) => {
|
|
5702
5701
|
const standardAnnotationSupport = {
|
5703
5702
|
prepareAnnotation: (json) => {
|
5704
5703
|
if (lodash.isString(json == null ? void 0 : json.query)) {
|
5705
|
-
const _a = json, { query } = _a, rest = __objRest$
|
5706
|
-
return __spreadProps$
|
5704
|
+
const _a = json, { query } = _a, rest = __objRest$2(_a, ["query"]);
|
5705
|
+
return __spreadProps$g(__spreadValues$r({}, rest), {
|
5707
5706
|
target: {
|
5708
5707
|
refId: "annotation_query",
|
5709
5708
|
query
|
@@ -5871,25 +5870,25 @@ function shouldUseLegacyRunner(datasource) {
|
|
5871
5870
|
return !datasource.annotations || legacyRunner.includes(type);
|
5872
5871
|
}
|
5873
5872
|
|
5874
|
-
var __defProp$
|
5875
|
-
var __defProps$
|
5876
|
-
var __getOwnPropDescs$
|
5877
|
-
var __getOwnPropSymbols$
|
5878
|
-
var __hasOwnProp$
|
5879
|
-
var __propIsEnum$
|
5880
|
-
var __defNormalProp$
|
5881
|
-
var __spreadValues$
|
5873
|
+
var __defProp$q = Object.defineProperty;
|
5874
|
+
var __defProps$f = Object.defineProperties;
|
5875
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
5876
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
5877
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
5878
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
5879
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5880
|
+
var __spreadValues$q = (a, b) => {
|
5882
5881
|
for (var prop in b || (b = {}))
|
5883
|
-
if (__hasOwnProp$
|
5884
|
-
__defNormalProp$
|
5885
|
-
if (__getOwnPropSymbols$
|
5886
|
-
for (var prop of __getOwnPropSymbols$
|
5887
|
-
if (__propIsEnum$
|
5888
|
-
__defNormalProp$
|
5882
|
+
if (__hasOwnProp$q.call(b, prop))
|
5883
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5884
|
+
if (__getOwnPropSymbols$q)
|
5885
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
5886
|
+
if (__propIsEnum$q.call(b, prop))
|
5887
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5889
5888
|
}
|
5890
5889
|
return a;
|
5891
5890
|
};
|
5892
|
-
var __spreadProps$
|
5891
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
5893
5892
|
let counter = 100;
|
5894
5893
|
function getNextRequestId() {
|
5895
5894
|
return "AQ" + counter++;
|
@@ -5912,8 +5911,8 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5912
5911
|
}))
|
5913
5912
|
);
|
5914
5913
|
}
|
5915
|
-
const processor = __spreadValues$
|
5916
|
-
const annotationWithDefaults = __spreadValues$
|
5914
|
+
const processor = __spreadValues$q(__spreadValues$q({}, standardAnnotationSupport), datasource.annotations);
|
5915
|
+
const annotationWithDefaults = __spreadValues$q(__spreadValues$q({}, (_a = processor.getDefaultQuery) == null ? void 0 : _a.call(processor)), query);
|
5917
5916
|
const annotation = processor.prepareAnnotation(annotationWithDefaults);
|
5918
5917
|
if (!annotation) {
|
5919
5918
|
return rxjs.of({
|
@@ -5936,7 +5935,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5936
5935
|
__annotation: { text: annotation.name, value: annotation },
|
5937
5936
|
__sceneObject: { text: "__sceneObject", value: layer }
|
5938
5937
|
};
|
5939
|
-
const queryRequest = __spreadValues$
|
5938
|
+
const queryRequest = __spreadValues$q(__spreadProps$f(__spreadValues$q({
|
5940
5939
|
startTime: Date.now(),
|
5941
5940
|
requestId: getNextRequestId(),
|
5942
5941
|
range: timeRange.state.value,
|
@@ -5946,7 +5945,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5946
5945
|
app: data.CoreApp.Dashboard,
|
5947
5946
|
timezone: timeRange.getTimeZone(),
|
5948
5947
|
targets: [
|
5949
|
-
__spreadProps$
|
5948
|
+
__spreadProps$f(__spreadValues$q({}, processedQuery), {
|
5950
5949
|
refId: "Anno"
|
5951
5950
|
})
|
5952
5951
|
]
|
@@ -5964,7 +5963,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5964
5963
|
data$1.forEach((frame) => {
|
5965
5964
|
var _a2;
|
5966
5965
|
if (!((_a2 = frame.meta) == null ? void 0 : _a2.dataTopic)) {
|
5967
|
-
frame.meta = __spreadProps$
|
5966
|
+
frame.meta = __spreadProps$f(__spreadValues$q({}, frame.meta || {}), { dataTopic: data.DataTopic.Annotations });
|
5968
5967
|
}
|
5969
5968
|
});
|
5970
5969
|
return processor.processEvents(annotation, data$1).pipe(
|
@@ -5979,19 +5978,19 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5979
5978
|
);
|
5980
5979
|
}
|
5981
5980
|
|
5982
|
-
var __defProp$
|
5983
|
-
var __getOwnPropSymbols$
|
5984
|
-
var __hasOwnProp$
|
5985
|
-
var __propIsEnum$
|
5986
|
-
var __defNormalProp$
|
5987
|
-
var __spreadValues$
|
5981
|
+
var __defProp$p = Object.defineProperty;
|
5982
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
5983
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
5984
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
5985
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5986
|
+
var __spreadValues$p = (a, b) => {
|
5988
5987
|
for (var prop in b || (b = {}))
|
5989
|
-
if (__hasOwnProp$
|
5990
|
-
__defNormalProp$
|
5991
|
-
if (__getOwnPropSymbols$
|
5992
|
-
for (var prop of __getOwnPropSymbols$
|
5993
|
-
if (__propIsEnum$
|
5994
|
-
__defNormalProp$
|
5988
|
+
if (__hasOwnProp$p.call(b, prop))
|
5989
|
+
__defNormalProp$p(a, prop, b[prop]);
|
5990
|
+
if (__getOwnPropSymbols$p)
|
5991
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
5992
|
+
if (__propIsEnum$p.call(b, prop))
|
5993
|
+
__defNormalProp$p(a, prop, b[prop]);
|
5995
5994
|
}
|
5996
5995
|
return a;
|
5997
5996
|
};
|
@@ -6002,7 +6001,7 @@ function postProcessQueryResult(annotation, results) {
|
|
6002
6001
|
}
|
6003
6002
|
const processed = results.map((item) => {
|
6004
6003
|
var _a;
|
6005
|
-
const processedItem = __spreadValues$
|
6004
|
+
const processedItem = __spreadValues$p({}, item);
|
6006
6005
|
processedItem.source = annotation;
|
6007
6006
|
processedItem.color = runtime.config.theme2.visualization.getColorByName(annotation.iconColor);
|
6008
6007
|
processedItem.type = annotation.name;
|
@@ -6051,29 +6050,29 @@ function isPanelAlert(event) {
|
|
6051
6050
|
return event.eventType === "panel-alert";
|
6052
6051
|
}
|
6053
6052
|
|
6054
|
-
var __defProp$
|
6055
|
-
var __defProps$
|
6056
|
-
var __getOwnPropDescs$
|
6057
|
-
var __getOwnPropSymbols$
|
6058
|
-
var __hasOwnProp$
|
6059
|
-
var __propIsEnum$
|
6060
|
-
var __defNormalProp$
|
6061
|
-
var __spreadValues$
|
6053
|
+
var __defProp$o = Object.defineProperty;
|
6054
|
+
var __defProps$e = Object.defineProperties;
|
6055
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
6056
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
6057
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
6058
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
6059
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6060
|
+
var __spreadValues$o = (a, b) => {
|
6062
6061
|
for (var prop in b || (b = {}))
|
6063
|
-
if (__hasOwnProp$
|
6064
|
-
__defNormalProp$
|
6065
|
-
if (__getOwnPropSymbols$
|
6066
|
-
for (var prop of __getOwnPropSymbols$
|
6067
|
-
if (__propIsEnum$
|
6068
|
-
__defNormalProp$
|
6062
|
+
if (__hasOwnProp$o.call(b, prop))
|
6063
|
+
__defNormalProp$o(a, prop, b[prop]);
|
6064
|
+
if (__getOwnPropSymbols$o)
|
6065
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
6066
|
+
if (__propIsEnum$o.call(b, prop))
|
6067
|
+
__defNormalProp$o(a, prop, b[prop]);
|
6069
6068
|
}
|
6070
6069
|
return a;
|
6071
6070
|
};
|
6072
|
-
var __spreadProps$
|
6071
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
6073
6072
|
class AnnotationsDataLayer extends SceneDataLayerBase {
|
6074
6073
|
constructor(initialState) {
|
6075
6074
|
super(
|
6076
|
-
__spreadValues$
|
6075
|
+
__spreadValues$o({
|
6077
6076
|
isEnabled: true
|
6078
6077
|
}, initialState),
|
6079
6078
|
["query"]
|
@@ -6121,7 +6120,7 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6121
6120
|
this.publishResults(stateUpdate);
|
6122
6121
|
});
|
6123
6122
|
} catch (e) {
|
6124
|
-
this.publishResults(__spreadProps$
|
6123
|
+
this.publishResults(__spreadProps$e(__spreadValues$o({}, emptyPanelData), {
|
6125
6124
|
state: schema.LoadingState.Error,
|
6126
6125
|
errors: [
|
6127
6126
|
{
|
@@ -6138,9 +6137,9 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6138
6137
|
processEvents(query, events) {
|
6139
6138
|
let processedEvents = postProcessQueryResult(query, events.events || []);
|
6140
6139
|
processedEvents = dedupAnnotations(processedEvents);
|
6141
|
-
const stateUpdate = __spreadProps$
|
6140
|
+
const stateUpdate = __spreadProps$e(__spreadValues$o({}, emptyPanelData), { state: events.state });
|
6142
6141
|
const df = data.arrayToDataFrame(processedEvents);
|
6143
|
-
df.meta = __spreadProps$
|
6142
|
+
df.meta = __spreadProps$e(__spreadValues$o({}, df.meta), {
|
6144
6143
|
dataTopic: data.DataTopic.Annotations
|
6145
6144
|
});
|
6146
6145
|
stateUpdate.series = [df];
|
@@ -6193,28 +6192,28 @@ class SceneTimeRangeTransformerBase extends SceneObjectBase {
|
|
6193
6192
|
}
|
6194
6193
|
}
|
6195
6194
|
|
6196
|
-
var __defProp$
|
6197
|
-
var __defProps$
|
6198
|
-
var __getOwnPropDescs$
|
6199
|
-
var __getOwnPropSymbols$
|
6200
|
-
var __hasOwnProp$
|
6201
|
-
var __propIsEnum$
|
6202
|
-
var __defNormalProp$
|
6203
|
-
var __spreadValues$
|
6195
|
+
var __defProp$n = Object.defineProperty;
|
6196
|
+
var __defProps$d = Object.defineProperties;
|
6197
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
6198
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
6199
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
6200
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
6201
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6202
|
+
var __spreadValues$n = (a, b) => {
|
6204
6203
|
for (var prop in b || (b = {}))
|
6205
|
-
if (__hasOwnProp$
|
6206
|
-
__defNormalProp$
|
6207
|
-
if (__getOwnPropSymbols$
|
6208
|
-
for (var prop of __getOwnPropSymbols$
|
6209
|
-
if (__propIsEnum$
|
6210
|
-
__defNormalProp$
|
6204
|
+
if (__hasOwnProp$n.call(b, prop))
|
6205
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6206
|
+
if (__getOwnPropSymbols$n)
|
6207
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
6208
|
+
if (__propIsEnum$n.call(b, prop))
|
6209
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6211
6210
|
}
|
6212
6211
|
return a;
|
6213
6212
|
};
|
6214
|
-
var __spreadProps$
|
6213
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
6215
6214
|
class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
6216
6215
|
constructor(state) {
|
6217
|
-
super(__spreadProps$
|
6216
|
+
super(__spreadProps$d(__spreadValues$n({}, state), {
|
6218
6217
|
timeZone: state.timeZone,
|
6219
6218
|
from: "now-6h",
|
6220
6219
|
to: "now",
|
@@ -6222,7 +6221,7 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6222
6221
|
}));
|
6223
6222
|
}
|
6224
6223
|
ancestorTimeRangeChanged(timeRange) {
|
6225
|
-
this.setState(__spreadProps$
|
6224
|
+
this.setState(__spreadProps$d(__spreadValues$n({}, timeRange), {
|
6226
6225
|
timeZone: this.state.timeZone,
|
6227
6226
|
value: evaluateTimeRange(
|
6228
6227
|
timeRange.from,
|
@@ -6250,25 +6249,25 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6250
6249
|
}
|
6251
6250
|
}
|
6252
6251
|
|
6253
|
-
var __defProp$
|
6254
|
-
var __defProps$
|
6255
|
-
var __getOwnPropDescs$
|
6256
|
-
var __getOwnPropSymbols$
|
6257
|
-
var __hasOwnProp$
|
6258
|
-
var __propIsEnum$
|
6259
|
-
var __defNormalProp$
|
6260
|
-
var __spreadValues$
|
6252
|
+
var __defProp$m = Object.defineProperty;
|
6253
|
+
var __defProps$c = Object.defineProperties;
|
6254
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
6255
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
6256
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
6257
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
6258
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6259
|
+
var __spreadValues$m = (a, b) => {
|
6261
6260
|
for (var prop in b || (b = {}))
|
6262
|
-
if (__hasOwnProp$
|
6263
|
-
__defNormalProp$
|
6264
|
-
if (__getOwnPropSymbols$
|
6265
|
-
for (var prop of __getOwnPropSymbols$
|
6266
|
-
if (__propIsEnum$
|
6267
|
-
__defNormalProp$
|
6261
|
+
if (__hasOwnProp$m.call(b, prop))
|
6262
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6263
|
+
if (__getOwnPropSymbols$m)
|
6264
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
6265
|
+
if (__propIsEnum$m.call(b, prop))
|
6266
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6268
6267
|
}
|
6269
6268
|
return a;
|
6270
6269
|
};
|
6271
|
-
var __spreadProps$
|
6270
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
6272
6271
|
class SceneDataLayerSetBase extends SceneObjectBase {
|
6273
6272
|
constructor() {
|
6274
6273
|
super(...arguments);
|
@@ -6292,7 +6291,7 @@ class SceneDataLayerSetBase extends SceneObjectBase {
|
|
6292
6291
|
series = series.concat(result.data.series);
|
6293
6292
|
}
|
6294
6293
|
}
|
6295
|
-
const combinedData = __spreadProps$
|
6294
|
+
const combinedData = __spreadProps$c(__spreadValues$m({}, emptyPanelData), { series });
|
6296
6295
|
this._results.next({ origin: this, data: combinedData });
|
6297
6296
|
this.setStateHelper({ data: combinedData });
|
6298
6297
|
}
|
@@ -6341,25 +6340,25 @@ SceneDataLayerSet.Component = ({ model }) => {
|
|
6341
6340
|
})));
|
6342
6341
|
};
|
6343
6342
|
|
6344
|
-
var __defProp$
|
6345
|
-
var __defProps$
|
6346
|
-
var __getOwnPropDescs$
|
6347
|
-
var __getOwnPropSymbols$
|
6348
|
-
var __hasOwnProp$
|
6349
|
-
var __propIsEnum$
|
6350
|
-
var __defNormalProp$
|
6351
|
-
var __spreadValues$
|
6343
|
+
var __defProp$l = Object.defineProperty;
|
6344
|
+
var __defProps$b = Object.defineProperties;
|
6345
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
6346
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
6347
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
6348
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
6349
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6350
|
+
var __spreadValues$l = (a, b) => {
|
6352
6351
|
for (var prop in b || (b = {}))
|
6353
|
-
if (__hasOwnProp$
|
6354
|
-
__defNormalProp$
|
6355
|
-
if (__getOwnPropSymbols$
|
6356
|
-
for (var prop of __getOwnPropSymbols$
|
6357
|
-
if (__propIsEnum$
|
6358
|
-
__defNormalProp$
|
6352
|
+
if (__hasOwnProp$l.call(b, prop))
|
6353
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6354
|
+
if (__getOwnPropSymbols$l)
|
6355
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
6356
|
+
if (__propIsEnum$l.call(b, prop))
|
6357
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6359
6358
|
}
|
6360
6359
|
return a;
|
6361
6360
|
};
|
6362
|
-
var __spreadProps$
|
6361
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
6363
6362
|
class SceneDataTransformer extends SceneObjectBase {
|
6364
6363
|
constructor(state) {
|
6365
6364
|
super(state);
|
@@ -6436,7 +6435,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6436
6435
|
const { series, annotations } = this._prevDataFromSource;
|
6437
6436
|
if (data.series === series && data.annotations === annotations) {
|
6438
6437
|
if (this.state.data && data.state !== this.state.data.state) {
|
6439
|
-
this.setState({ data: __spreadProps$
|
6438
|
+
this.setState({ data: __spreadProps$b(__spreadValues$l({}, this.state.data), { state: data.state }) });
|
6440
6439
|
}
|
6441
6440
|
return true;
|
6442
6441
|
}
|
@@ -6484,7 +6483,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6484
6483
|
rxjs.map((values) => {
|
6485
6484
|
const transformedSeries = values[0];
|
6486
6485
|
const transformedAnnotations = values[1];
|
6487
|
-
return __spreadProps$
|
6486
|
+
return __spreadProps$b(__spreadValues$l({}, data$1), {
|
6488
6487
|
series: transformedSeries,
|
6489
6488
|
annotations: transformedAnnotations != null ? transformedAnnotations : data$1.annotations
|
6490
6489
|
});
|
@@ -6495,7 +6494,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6495
6494
|
const sourceErr = ((_a2 = this.getSourceData().state.data) == null ? void 0 : _a2.errors) || [];
|
6496
6495
|
const transformationError = runtime.toDataQueryError(err);
|
6497
6496
|
transformationError.message = `Error transforming data: ${transformationError.message}`;
|
6498
|
-
const result = __spreadProps$
|
6497
|
+
const result = __spreadProps$b(__spreadValues$l({}, data$1), {
|
6499
6498
|
state: data.LoadingState.Error,
|
6500
6499
|
errors: [...sourceErr, transformationError]
|
6501
6500
|
});
|
@@ -6830,28 +6829,28 @@ class SceneVariableSetVariableDependencyHandler {
|
|
6830
6829
|
}
|
6831
6830
|
}
|
6832
6831
|
|
6833
|
-
var __defProp$
|
6834
|
-
var __defProps$
|
6835
|
-
var __getOwnPropDescs$
|
6836
|
-
var __getOwnPropSymbols$
|
6837
|
-
var __hasOwnProp$
|
6838
|
-
var __propIsEnum$
|
6839
|
-
var __defNormalProp$
|
6840
|
-
var __spreadValues$
|
6832
|
+
var __defProp$k = Object.defineProperty;
|
6833
|
+
var __defProps$a = Object.defineProperties;
|
6834
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
6835
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
6836
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
6837
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
6838
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6839
|
+
var __spreadValues$k = (a, b) => {
|
6841
6840
|
for (var prop in b || (b = {}))
|
6842
|
-
if (__hasOwnProp$
|
6843
|
-
__defNormalProp$
|
6844
|
-
if (__getOwnPropSymbols$
|
6845
|
-
for (var prop of __getOwnPropSymbols$
|
6846
|
-
if (__propIsEnum$
|
6847
|
-
__defNormalProp$
|
6841
|
+
if (__hasOwnProp$k.call(b, prop))
|
6842
|
+
__defNormalProp$k(a, prop, b[prop]);
|
6843
|
+
if (__getOwnPropSymbols$k)
|
6844
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
6845
|
+
if (__propIsEnum$k.call(b, prop))
|
6846
|
+
__defNormalProp$k(a, prop, b[prop]);
|
6848
6847
|
}
|
6849
6848
|
return a;
|
6850
6849
|
};
|
6851
|
-
var __spreadProps$
|
6850
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
6852
6851
|
class ConstantVariable extends SceneObjectBase {
|
6853
6852
|
constructor(initialState) {
|
6854
|
-
super(__spreadProps$
|
6853
|
+
super(__spreadProps$a(__spreadValues$k({
|
6855
6854
|
type: "constant",
|
6856
6855
|
value: "",
|
6857
6856
|
name: ""
|
@@ -6864,25 +6863,25 @@ class ConstantVariable extends SceneObjectBase {
|
|
6864
6863
|
}
|
6865
6864
|
}
|
6866
6865
|
|
6867
|
-
var __defProp$
|
6868
|
-
var __getOwnPropSymbols$
|
6869
|
-
var __hasOwnProp$
|
6870
|
-
var __propIsEnum$
|
6871
|
-
var __defNormalProp$
|
6872
|
-
var __spreadValues$
|
6866
|
+
var __defProp$j = Object.defineProperty;
|
6867
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
6868
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
6869
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
6870
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6871
|
+
var __spreadValues$j = (a, b) => {
|
6873
6872
|
for (var prop in b || (b = {}))
|
6874
|
-
if (__hasOwnProp$
|
6875
|
-
__defNormalProp$
|
6876
|
-
if (__getOwnPropSymbols$
|
6877
|
-
for (var prop of __getOwnPropSymbols$
|
6878
|
-
if (__propIsEnum$
|
6879
|
-
__defNormalProp$
|
6873
|
+
if (__hasOwnProp$j.call(b, prop))
|
6874
|
+
__defNormalProp$j(a, prop, b[prop]);
|
6875
|
+
if (__getOwnPropSymbols$j)
|
6876
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
6877
|
+
if (__propIsEnum$j.call(b, prop))
|
6878
|
+
__defNormalProp$j(a, prop, b[prop]);
|
6880
6879
|
}
|
6881
6880
|
return a;
|
6882
6881
|
};
|
6883
6882
|
class CustomVariable extends MultiValueVariable {
|
6884
6883
|
constructor(initialState) {
|
6885
|
-
super(__spreadValues$
|
6884
|
+
super(__spreadValues$j({
|
6886
6885
|
type: "custom",
|
6887
6886
|
query: "",
|
6888
6887
|
value: "",
|
@@ -6916,25 +6915,25 @@ CustomVariable.Component = ({ model }) => {
|
|
6916
6915
|
return renderSelectForVariable(model);
|
6917
6916
|
};
|
6918
6917
|
|
6919
|
-
var __defProp$
|
6920
|
-
var __getOwnPropSymbols$
|
6921
|
-
var __hasOwnProp$
|
6922
|
-
var __propIsEnum$
|
6923
|
-
var __defNormalProp$
|
6924
|
-
var __spreadValues$
|
6918
|
+
var __defProp$i = Object.defineProperty;
|
6919
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
6920
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
6921
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
6922
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6923
|
+
var __spreadValues$i = (a, b) => {
|
6925
6924
|
for (var prop in b || (b = {}))
|
6926
|
-
if (__hasOwnProp$
|
6927
|
-
__defNormalProp$
|
6928
|
-
if (__getOwnPropSymbols$
|
6929
|
-
for (var prop of __getOwnPropSymbols$
|
6930
|
-
if (__propIsEnum$
|
6931
|
-
__defNormalProp$
|
6925
|
+
if (__hasOwnProp$i.call(b, prop))
|
6926
|
+
__defNormalProp$i(a, prop, b[prop]);
|
6927
|
+
if (__getOwnPropSymbols$i)
|
6928
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
6929
|
+
if (__propIsEnum$i.call(b, prop))
|
6930
|
+
__defNormalProp$i(a, prop, b[prop]);
|
6932
6931
|
}
|
6933
6932
|
return a;
|
6934
6933
|
};
|
6935
6934
|
class DataSourceVariable extends MultiValueVariable {
|
6936
6935
|
constructor(initialState) {
|
6937
|
-
super(__spreadValues$
|
6936
|
+
super(__spreadValues$i({
|
6938
6937
|
type: "datasource",
|
6939
6938
|
value: "",
|
6940
6939
|
text: "",
|
@@ -7018,25 +7017,25 @@ const hasCustomVariableSupport = (datasource) => {
|
|
7018
7017
|
return "query" in variableSupport && "editor" in variableSupport && Boolean(variableSupport.query) && Boolean(variableSupport.editor);
|
7019
7018
|
};
|
7020
7019
|
|
7021
|
-
var __defProp$
|
7022
|
-
var __defProps$
|
7023
|
-
var __getOwnPropDescs$
|
7024
|
-
var __getOwnPropSymbols$
|
7025
|
-
var __hasOwnProp$
|
7026
|
-
var __propIsEnum$
|
7027
|
-
var __defNormalProp$
|
7028
|
-
var __spreadValues$
|
7020
|
+
var __defProp$h = Object.defineProperty;
|
7021
|
+
var __defProps$9 = Object.defineProperties;
|
7022
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
7023
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
7024
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
7025
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
7026
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7027
|
+
var __spreadValues$h = (a, b) => {
|
7029
7028
|
for (var prop in b || (b = {}))
|
7030
|
-
if (__hasOwnProp$
|
7031
|
-
__defNormalProp$
|
7032
|
-
if (__getOwnPropSymbols$
|
7033
|
-
for (var prop of __getOwnPropSymbols$
|
7034
|
-
if (__propIsEnum$
|
7035
|
-
__defNormalProp$
|
7029
|
+
if (__hasOwnProp$h.call(b, prop))
|
7030
|
+
__defNormalProp$h(a, prop, b[prop]);
|
7031
|
+
if (__getOwnPropSymbols$h)
|
7032
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
7033
|
+
if (__propIsEnum$h.call(b, prop))
|
7034
|
+
__defNormalProp$h(a, prop, b[prop]);
|
7036
7035
|
}
|
7037
7036
|
return a;
|
7038
7037
|
};
|
7039
|
-
var __spreadProps$
|
7038
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
7040
7039
|
class StandardQueryRunner {
|
7041
7040
|
constructor(datasource, _runRequest = runtime.getRunRequest()) {
|
7042
7041
|
this.datasource = datasource;
|
@@ -7073,7 +7072,7 @@ class LegacyQueryRunner {
|
|
7073
7072
|
return getEmptyMetricFindValueObservable();
|
7074
7073
|
}
|
7075
7074
|
return rxjs.from(
|
7076
|
-
this.datasource.metricFindQuery(variable.state.query, __spreadProps$
|
7075
|
+
this.datasource.metricFindQuery(variable.state.query, __spreadProps$9(__spreadValues$h({}, request), {
|
7077
7076
|
variable: {
|
7078
7077
|
name: variable.state.name,
|
7079
7078
|
type: variable.state.type
|
@@ -7135,7 +7134,7 @@ function ensureVariableQueryModelIsADataQuery(variable) {
|
|
7135
7134
|
return { query, refId: `variable-${variable.state.name}` };
|
7136
7135
|
}
|
7137
7136
|
if (query.refId == null) {
|
7138
|
-
return __spreadProps$
|
7137
|
+
return __spreadProps$9(__spreadValues$h({}, query), { refId: `variable-${variable.state.name}` });
|
7139
7138
|
}
|
7140
7139
|
return variable.state.query;
|
7141
7140
|
}
|
@@ -7350,25 +7349,25 @@ function areMetricFindValues(data$1) {
|
|
7350
7349
|
return false;
|
7351
7350
|
}
|
7352
7351
|
|
7353
|
-
var __defProp$
|
7354
|
-
var __getOwnPropSymbols$
|
7355
|
-
var __hasOwnProp$
|
7356
|
-
var __propIsEnum$
|
7357
|
-
var __defNormalProp$
|
7358
|
-
var __spreadValues$
|
7352
|
+
var __defProp$g = Object.defineProperty;
|
7353
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
7354
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
7355
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
7356
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7357
|
+
var __spreadValues$g = (a, b) => {
|
7359
7358
|
for (var prop in b || (b = {}))
|
7360
|
-
if (__hasOwnProp$
|
7361
|
-
__defNormalProp$
|
7362
|
-
if (__getOwnPropSymbols$
|
7363
|
-
for (var prop of __getOwnPropSymbols$
|
7364
|
-
if (__propIsEnum$
|
7365
|
-
__defNormalProp$
|
7359
|
+
if (__hasOwnProp$g.call(b, prop))
|
7360
|
+
__defNormalProp$g(a, prop, b[prop]);
|
7361
|
+
if (__getOwnPropSymbols$g)
|
7362
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
7363
|
+
if (__propIsEnum$g.call(b, prop))
|
7364
|
+
__defNormalProp$g(a, prop, b[prop]);
|
7366
7365
|
}
|
7367
7366
|
return a;
|
7368
7367
|
};
|
7369
7368
|
class QueryVariable extends MultiValueVariable {
|
7370
7369
|
constructor(initialState) {
|
7371
|
-
super(__spreadValues$
|
7370
|
+
super(__spreadValues$g({
|
7372
7371
|
type: "query",
|
7373
7372
|
name: "",
|
7374
7373
|
value: "",
|
@@ -7521,25 +7520,25 @@ function queryMetricTree(query) {
|
|
7521
7520
|
return queryTree(children, query.split("."), 0);
|
7522
7521
|
}
|
7523
7522
|
|
7524
|
-
var __defProp$
|
7525
|
-
var __getOwnPropSymbols$
|
7526
|
-
var __hasOwnProp$
|
7527
|
-
var __propIsEnum$
|
7528
|
-
var __defNormalProp$
|
7529
|
-
var __spreadValues$
|
7523
|
+
var __defProp$f = Object.defineProperty;
|
7524
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
7525
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
7526
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
7527
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7528
|
+
var __spreadValues$f = (a, b) => {
|
7530
7529
|
for (var prop in b || (b = {}))
|
7531
|
-
if (__hasOwnProp$
|
7532
|
-
__defNormalProp$
|
7533
|
-
if (__getOwnPropSymbols$
|
7534
|
-
for (var prop of __getOwnPropSymbols$
|
7535
|
-
if (__propIsEnum$
|
7536
|
-
__defNormalProp$
|
7530
|
+
if (__hasOwnProp$f.call(b, prop))
|
7531
|
+
__defNormalProp$f(a, prop, b[prop]);
|
7532
|
+
if (__getOwnPropSymbols$f)
|
7533
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
7534
|
+
if (__propIsEnum$f.call(b, prop))
|
7535
|
+
__defNormalProp$f(a, prop, b[prop]);
|
7537
7536
|
}
|
7538
7537
|
return a;
|
7539
7538
|
};
|
7540
7539
|
class TestVariable extends MultiValueVariable {
|
7541
7540
|
constructor(initialState, isLazy = false) {
|
7542
|
-
super(__spreadValues$
|
7541
|
+
super(__spreadValues$f({
|
7543
7542
|
type: "custom",
|
7544
7543
|
name: "Test",
|
7545
7544
|
value: "Value",
|
@@ -7648,25 +7647,25 @@ function VariableValueInput({ model }) {
|
|
7648
7647
|
});
|
7649
7648
|
}
|
7650
7649
|
|
7651
|
-
var __defProp$
|
7652
|
-
var __getOwnPropSymbols$
|
7653
|
-
var __hasOwnProp$
|
7654
|
-
var __propIsEnum$
|
7655
|
-
var __defNormalProp$
|
7656
|
-
var __spreadValues$
|
7650
|
+
var __defProp$e = Object.defineProperty;
|
7651
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
7652
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
7653
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
7654
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7655
|
+
var __spreadValues$e = (a, b) => {
|
7657
7656
|
for (var prop in b || (b = {}))
|
7658
|
-
if (__hasOwnProp$
|
7659
|
-
__defNormalProp$
|
7660
|
-
if (__getOwnPropSymbols$
|
7661
|
-
for (var prop of __getOwnPropSymbols$
|
7662
|
-
if (__propIsEnum$
|
7663
|
-
__defNormalProp$
|
7657
|
+
if (__hasOwnProp$e.call(b, prop))
|
7658
|
+
__defNormalProp$e(a, prop, b[prop]);
|
7659
|
+
if (__getOwnPropSymbols$e)
|
7660
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
7661
|
+
if (__propIsEnum$e.call(b, prop))
|
7662
|
+
__defNormalProp$e(a, prop, b[prop]);
|
7664
7663
|
}
|
7665
7664
|
return a;
|
7666
7665
|
};
|
7667
7666
|
class TextBoxVariable extends SceneObjectBase {
|
7668
7667
|
constructor(initialState) {
|
7669
|
-
super(__spreadValues$
|
7668
|
+
super(__spreadValues$e({
|
7670
7669
|
type: "textbox",
|
7671
7670
|
value: "",
|
7672
7671
|
name: ""
|
@@ -7703,28 +7702,28 @@ TextBoxVariable.Component = ({ model }) => {
|
|
7703
7702
|
});
|
7704
7703
|
};
|
7705
7704
|
|
7706
|
-
var __defProp$
|
7707
|
-
var __defProps$
|
7708
|
-
var __getOwnPropDescs$
|
7709
|
-
var __getOwnPropSymbols$
|
7710
|
-
var __hasOwnProp$
|
7711
|
-
var __propIsEnum$
|
7712
|
-
var __defNormalProp$
|
7713
|
-
var __spreadValues$
|
7705
|
+
var __defProp$d = Object.defineProperty;
|
7706
|
+
var __defProps$8 = Object.defineProperties;
|
7707
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
7708
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
7709
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
7710
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
7711
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7712
|
+
var __spreadValues$d = (a, b) => {
|
7714
7713
|
for (var prop in b || (b = {}))
|
7715
|
-
if (__hasOwnProp$
|
7716
|
-
__defNormalProp$
|
7717
|
-
if (__getOwnPropSymbols$
|
7718
|
-
for (var prop of __getOwnPropSymbols$
|
7719
|
-
if (__propIsEnum$
|
7720
|
-
__defNormalProp$
|
7714
|
+
if (__hasOwnProp$d.call(b, prop))
|
7715
|
+
__defNormalProp$d(a, prop, b[prop]);
|
7716
|
+
if (__getOwnPropSymbols$d)
|
7717
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
7718
|
+
if (__propIsEnum$d.call(b, prop))
|
7719
|
+
__defNormalProp$d(a, prop, b[prop]);
|
7721
7720
|
}
|
7722
7721
|
return a;
|
7723
7722
|
};
|
7724
|
-
var __spreadProps$
|
7723
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
7725
7724
|
class LocalValueVariable extends SceneObjectBase {
|
7726
7725
|
constructor(initialState) {
|
7727
|
-
super(__spreadProps$
|
7726
|
+
super(__spreadProps$8(__spreadValues$d({
|
7728
7727
|
type: "system",
|
7729
7728
|
value: "",
|
7730
7729
|
text: "",
|
@@ -7756,25 +7755,25 @@ class LocalValueVariable extends SceneObjectBase {
|
|
7756
7755
|
}
|
7757
7756
|
}
|
7758
7757
|
|
7759
|
-
var __defProp$
|
7760
|
-
var __getOwnPropSymbols$
|
7761
|
-
var __hasOwnProp$
|
7762
|
-
var __propIsEnum$
|
7763
|
-
var __defNormalProp$
|
7764
|
-
var __spreadValues$
|
7758
|
+
var __defProp$c = Object.defineProperty;
|
7759
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
7760
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
7761
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
7762
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7763
|
+
var __spreadValues$c = (a, b) => {
|
7765
7764
|
for (var prop in b || (b = {}))
|
7766
|
-
if (__hasOwnProp$
|
7767
|
-
__defNormalProp$
|
7768
|
-
if (__getOwnPropSymbols$
|
7769
|
-
for (var prop of __getOwnPropSymbols$
|
7770
|
-
if (__propIsEnum$
|
7771
|
-
__defNormalProp$
|
7765
|
+
if (__hasOwnProp$c.call(b, prop))
|
7766
|
+
__defNormalProp$c(a, prop, b[prop]);
|
7767
|
+
if (__getOwnPropSymbols$c)
|
7768
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
7769
|
+
if (__propIsEnum$c.call(b, prop))
|
7770
|
+
__defNormalProp$c(a, prop, b[prop]);
|
7772
7771
|
}
|
7773
7772
|
return a;
|
7774
7773
|
};
|
7775
7774
|
class IntervalVariable extends SceneObjectBase {
|
7776
7775
|
constructor(initialState) {
|
7777
|
-
super(__spreadValues$
|
7776
|
+
super(__spreadValues$c({
|
7778
7777
|
type: "interval",
|
7779
7778
|
value: "",
|
7780
7779
|
intervals: ["1m", "10m", "30m", "1h", "6h", "12h", "1d", "7d", "14d", "30d"],
|
@@ -7860,444 +7859,6 @@ IntervalVariable.Component = ({ model }) => {
|
|
7860
7859
|
});
|
7861
7860
|
};
|
7862
7861
|
|
7863
|
-
var __defProp$c = Object.defineProperty;
|
7864
|
-
var __defProps$8 = Object.defineProperties;
|
7865
|
-
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
7866
|
-
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
7867
|
-
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
7868
|
-
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
7869
|
-
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7870
|
-
var __spreadValues$c = (a, b) => {
|
7871
|
-
for (var prop in b || (b = {}))
|
7872
|
-
if (__hasOwnProp$c.call(b, prop))
|
7873
|
-
__defNormalProp$c(a, prop, b[prop]);
|
7874
|
-
if (__getOwnPropSymbols$c)
|
7875
|
-
for (var prop of __getOwnPropSymbols$c(b)) {
|
7876
|
-
if (__propIsEnum$c.call(b, prop))
|
7877
|
-
__defNormalProp$c(a, prop, b[prop]);
|
7878
|
-
}
|
7879
|
-
return a;
|
7880
|
-
};
|
7881
|
-
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
7882
|
-
var __objRest$2 = (source, exclude) => {
|
7883
|
-
var target = {};
|
7884
|
-
for (var prop in source)
|
7885
|
-
if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0)
|
7886
|
-
target[prop] = source[prop];
|
7887
|
-
if (source != null && __getOwnPropSymbols$c)
|
7888
|
-
for (var prop of __getOwnPropSymbols$c(source)) {
|
7889
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop))
|
7890
|
-
target[prop] = source[prop];
|
7891
|
-
}
|
7892
|
-
return target;
|
7893
|
-
};
|
7894
|
-
const Item = React.forwardRef(
|
7895
|
-
(_a, ref) => {
|
7896
|
-
var _b = _a, { children, active } = _b, rest = __objRest$2(_b, ["children", "active"]);
|
7897
|
-
const theme = ui.useTheme2();
|
7898
|
-
const selectStyles = ui.getSelectStyles(theme);
|
7899
|
-
const id = react.useId();
|
7900
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadValues$c({
|
7901
|
-
ref,
|
7902
|
-
role: "option",
|
7903
|
-
id,
|
7904
|
-
"aria-selected": active,
|
7905
|
-
className: css.cx(selectStyles.option, active && selectStyles.optionFocused)
|
7906
|
-
}, rest), /* @__PURE__ */ React__default["default"].createElement("div", {
|
7907
|
-
className: selectStyles.optionBody,
|
7908
|
-
"data-testid": `data-testid ad hoc filter option value ${children}`
|
7909
|
-
}, /* @__PURE__ */ React__default["default"].createElement("span", null, children)));
|
7910
|
-
}
|
7911
|
-
);
|
7912
|
-
function AdHocCombobox({ filter, model, wip, handleChangeViewMode }) {
|
7913
|
-
var _a;
|
7914
|
-
const [open, setOpen] = React.useState(false);
|
7915
|
-
const [options, setOptions] = React.useState([]);
|
7916
|
-
const [inputValue, setInputValue] = React.useState("");
|
7917
|
-
const [activeIndex, setActiveIndex] = React.useState(null);
|
7918
|
-
const [inputType, setInputType] = React.useState(!wip ? "value" : "key");
|
7919
|
-
const styles = ui.useStyles2(getStyles2$1);
|
7920
|
-
const listRef = React.useRef([]);
|
7921
|
-
const { _wip } = model.useState();
|
7922
|
-
const filterToUse = filter || _wip;
|
7923
|
-
const operatorIdentifier = `${(_a = filterToUse == null ? void 0 : filterToUse.key) != null ? _a : ""}-operator`;
|
7924
|
-
const { refs, floatingStyles, context } = react.useFloating({
|
7925
|
-
whileElementsMounted: react.autoUpdate,
|
7926
|
-
open,
|
7927
|
-
onOpenChange: (nextOpen, _, reason) => {
|
7928
|
-
setOpen(nextOpen);
|
7929
|
-
if (reason === "outside-press") {
|
7930
|
-
handleChangeViewMode == null ? void 0 : handleChangeViewMode();
|
7931
|
-
}
|
7932
|
-
},
|
7933
|
-
middleware: [
|
7934
|
-
react.flip({ padding: 10 }),
|
7935
|
-
react.size({
|
7936
|
-
apply({ rects, availableHeight, elements }) {
|
7937
|
-
Object.assign(elements.floating.style, {
|
7938
|
-
width: `${rects.reference.width}px`,
|
7939
|
-
maxHeight: `${availableHeight > 256 ? 256 : availableHeight}px`
|
7940
|
-
});
|
7941
|
-
},
|
7942
|
-
padding: 10
|
7943
|
-
})
|
7944
|
-
]
|
7945
|
-
});
|
7946
|
-
const role = react.useRole(context, { role: "listbox" });
|
7947
|
-
const dismiss = react.useDismiss(context, {
|
7948
|
-
outsidePress: (event) => {
|
7949
|
-
return !event.currentTarget.classList.contains(
|
7950
|
-
operatorIdentifier
|
7951
|
-
);
|
7952
|
-
}
|
7953
|
-
});
|
7954
|
-
const listNav = react.useListNavigation(context, {
|
7955
|
-
listRef,
|
7956
|
-
activeIndex,
|
7957
|
-
onNavigate: setActiveIndex,
|
7958
|
-
virtual: true,
|
7959
|
-
loop: true
|
7960
|
-
});
|
7961
|
-
const { getReferenceProps, getFloatingProps, getItemProps } = react.useInteractions([role, dismiss, listNav]);
|
7962
|
-
function onChange(event) {
|
7963
|
-
var _a2, _b;
|
7964
|
-
if (inputType === "key") {
|
7965
|
-
const lastChar = event.target.value.slice(-1);
|
7966
|
-
if (["=", "!", "<", ">"].includes(lastChar)) {
|
7967
|
-
const key = event.target.value.slice(0, -1);
|
7968
|
-
const optionIndex = options.findIndex((option) => option.value === key);
|
7969
|
-
if (optionIndex >= 0) {
|
7970
|
-
model._updateFilter(filterToUse, inputType, options[optionIndex]);
|
7971
|
-
setInputValue(lastChar);
|
7972
|
-
}
|
7973
|
-
reactDom.flushSync(() => {
|
7974
|
-
setInputType("operator");
|
7975
|
-
});
|
7976
|
-
(_a2 = refs.domReference.current) == null ? void 0 : _a2.focus();
|
7977
|
-
return;
|
7978
|
-
}
|
7979
|
-
}
|
7980
|
-
if (inputType === "operator") {
|
7981
|
-
const lastChar = event.target.value.slice(-1);
|
7982
|
-
if (/\w/.test(lastChar)) {
|
7983
|
-
const operator = event.target.value.slice(0, -1);
|
7984
|
-
if (!/\w/.test(operator)) {
|
7985
|
-
const optionIndex = options.findIndex((option) => option.value === operator);
|
7986
|
-
if (optionIndex >= 0) {
|
7987
|
-
model._updateFilter(filterToUse, inputType, options[optionIndex]);
|
7988
|
-
setInputValue(lastChar);
|
7989
|
-
}
|
7990
|
-
reactDom.flushSync(() => {
|
7991
|
-
setInputType("value");
|
7992
|
-
});
|
7993
|
-
(_b = refs.domReference.current) == null ? void 0 : _b.focus();
|
7994
|
-
return;
|
7995
|
-
}
|
7996
|
-
}
|
7997
|
-
}
|
7998
|
-
const value = event.target.value;
|
7999
|
-
setInputValue(value);
|
8000
|
-
setActiveIndex(0);
|
8001
|
-
}
|
8002
|
-
const items = options.filter(
|
8003
|
-
(item) => {
|
8004
|
-
var _a2, _b;
|
8005
|
-
return (_b = (_a2 = item.label) != null ? _a2 : item.value) == null ? void 0 : _b.toLocaleLowerCase().startsWith(inputValue.toLowerCase());
|
8006
|
-
}
|
8007
|
-
);
|
8008
|
-
const flushInputType = React.useCallback((inputType2) => {
|
8009
|
-
reactDom.flushSync(() => {
|
8010
|
-
setInputType(inputType2);
|
8011
|
-
});
|
8012
|
-
}, []);
|
8013
|
-
React.useEffect(() => {
|
8014
|
-
if (wip && !_wip) {
|
8015
|
-
model._addWip();
|
8016
|
-
}
|
8017
|
-
}, [_wip]);
|
8018
|
-
React.useEffect(() => {
|
8019
|
-
if (!wip && refs.domReference.current) {
|
8020
|
-
setInputType("value");
|
8021
|
-
setInputValue("");
|
8022
|
-
refs.domReference.current.focus();
|
8023
|
-
}
|
8024
|
-
}, []);
|
8025
|
-
return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, filterToUse ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
8026
|
-
className: styles.pillWrapper
|
8027
|
-
}, (filterToUse == null ? void 0 : filterToUse.key) ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
8028
|
-
className: css.cx(styles.basePill, styles.keyPill)
|
8029
|
-
}, filterToUse.key) : null, (filterToUse == null ? void 0 : filterToUse.key) && (filterToUse == null ? void 0 : filterToUse.operator) && inputType !== "operator" ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
8030
|
-
className: css.cx(styles.basePill, operatorIdentifier),
|
8031
|
-
role: "button",
|
8032
|
-
"aria-label": "Edit filter operator",
|
8033
|
-
tabIndex: 0,
|
8034
|
-
onClick: () => {
|
8035
|
-
var _a2;
|
8036
|
-
flushInputType("operator");
|
8037
|
-
(_a2 = refs.domReference.current) == null ? void 0 : _a2.focus();
|
8038
|
-
},
|
8039
|
-
onKeyDown: (e) => {
|
8040
|
-
var _a2;
|
8041
|
-
if (e.key === "Enter") {
|
8042
|
-
flushInputType("operator");
|
8043
|
-
(_a2 = refs.domReference.current) == null ? void 0 : _a2.focus();
|
8044
|
-
}
|
8045
|
-
}
|
8046
|
-
}, filterToUse.operator) : null, (filterToUse == null ? void 0 : filterToUse.key) && (filterToUse == null ? void 0 : filterToUse.operator) && (filterToUse == null ? void 0 : filterToUse.value) && !["operator", "value"].includes(inputType) ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
8047
|
-
className: css.cx(styles.basePill, styles.valuePill)
|
8048
|
-
}, filterToUse.value) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$8(__spreadValues$c({}, getReferenceProps({
|
8049
|
-
ref: refs.setReference,
|
8050
|
-
onChange,
|
8051
|
-
value: inputValue,
|
8052
|
-
placeholder: !wip ? inputType === "operator" ? `${filterToUse[inputType]} ${filterToUse.value || ""}` : filterToUse[inputType] : "Filter by label values",
|
8053
|
-
"aria-autocomplete": "list",
|
8054
|
-
onKeyDown(event) {
|
8055
|
-
var _a2;
|
8056
|
-
if (event.key === "Enter" && activeIndex != null && items[activeIndex]) {
|
8057
|
-
model._updateFilter(filterToUse, inputType, items[activeIndex]);
|
8058
|
-
setInputValue("");
|
8059
|
-
if (inputType === "key") {
|
8060
|
-
flushInputType("operator");
|
8061
|
-
} else if (inputType === "operator") {
|
8062
|
-
flushInputType("value");
|
8063
|
-
} else if (inputType === "value") {
|
8064
|
-
flushInputType("key");
|
8065
|
-
handleChangeViewMode == null ? void 0 : handleChangeViewMode();
|
8066
|
-
}
|
8067
|
-
(_a2 = refs.domReference.current) == null ? void 0 : _a2.focus();
|
8068
|
-
}
|
8069
|
-
}
|
8070
|
-
})), {
|
8071
|
-
className: styles.inputStyle,
|
8072
|
-
key: inputType,
|
8073
|
-
onFocus: async () => {
|
8074
|
-
let options2 = [];
|
8075
|
-
if (inputType === "key") {
|
8076
|
-
options2 = await model._getKeys(null);
|
8077
|
-
} else if (inputType === "operator") {
|
8078
|
-
options2 = model._getOperators();
|
8079
|
-
} else if (inputType === "value") {
|
8080
|
-
options2 = await model._getValuesFor(filterToUse);
|
8081
|
-
}
|
8082
|
-
setActiveIndex(0);
|
8083
|
-
setOptions(options2);
|
8084
|
-
setOpen(true);
|
8085
|
-
}
|
8086
|
-
})), /* @__PURE__ */ React__default["default"].createElement(react.FloatingPortal, null, open && /* @__PURE__ */ React__default["default"].createElement(react.FloatingFocusManager, {
|
8087
|
-
context,
|
8088
|
-
initialFocus: -1,
|
8089
|
-
visuallyHiddenDismiss: true
|
8090
|
-
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$8(__spreadValues$c({}, getFloatingProps({
|
8091
|
-
ref: refs.setFloating,
|
8092
|
-
style: __spreadProps$8(__spreadValues$c({}, floatingStyles), {
|
8093
|
-
overflowY: "auto"
|
8094
|
-
})
|
8095
|
-
})), {
|
8096
|
-
className: styles.dropdownWrapper
|
8097
|
-
}), items.map((item, index) => {
|
8098
|
-
var _a2;
|
8099
|
-
return /* @__PURE__ */ React__default["default"].createElement(Item, __spreadProps$8(__spreadValues$c({}, getItemProps({
|
8100
|
-
key: item.value,
|
8101
|
-
ref(node) {
|
8102
|
-
listRef.current[index] = node;
|
8103
|
-
},
|
8104
|
-
onClick() {
|
8105
|
-
var _a3;
|
8106
|
-
model._updateFilter(filterToUse, inputType, item);
|
8107
|
-
setInputValue("");
|
8108
|
-
if (inputType === "key") {
|
8109
|
-
flushInputType("operator");
|
8110
|
-
} else if (inputType === "operator") {
|
8111
|
-
flushInputType("value");
|
8112
|
-
} else if (inputType === "value") {
|
8113
|
-
flushInputType("key");
|
8114
|
-
handleChangeViewMode == null ? void 0 : handleChangeViewMode();
|
8115
|
-
}
|
8116
|
-
(_a3 = refs.domReference.current) == null ? void 0 : _a3.focus();
|
8117
|
-
}
|
8118
|
-
})), {
|
8119
|
-
active: activeIndex === index
|
8120
|
-
}), (_a2 = item.label) != null ? _a2 : item.value);
|
8121
|
-
})))));
|
8122
|
-
}
|
8123
|
-
const getStyles2$1 = (theme) => ({
|
8124
|
-
pillWrapper: css.css({
|
8125
|
-
display: "flex",
|
8126
|
-
alignItems: "center",
|
8127
|
-
whiteSpace: "nowrap"
|
8128
|
-
}),
|
8129
|
-
basePill: css.css(__spreadProps$8(__spreadValues$c({
|
8130
|
-
display: "flex",
|
8131
|
-
alignItems: "center",
|
8132
|
-
background: theme.colors.action.disabledBackground,
|
8133
|
-
border: `1px solid ${theme.colors.border.weak}`,
|
8134
|
-
padding: theme.spacing(0.125, 1, 0.125, 1),
|
8135
|
-
color: theme.colors.text.primary,
|
8136
|
-
overflow: "hidden",
|
8137
|
-
whiteSpace: "nowrap",
|
8138
|
-
minHeight: "22px"
|
8139
|
-
}, theme.typography.bodySmall), {
|
8140
|
-
cursor: "pointer"
|
8141
|
-
})),
|
8142
|
-
keyPill: css.css({
|
8143
|
-
fontWeight: theme.typography.fontWeightBold,
|
8144
|
-
cursor: "default"
|
8145
|
-
}),
|
8146
|
-
valuePill: css.css({
|
8147
|
-
background: theme.colors.action.selected
|
8148
|
-
}),
|
8149
|
-
dropdownWrapper: css.css({
|
8150
|
-
backgroundColor: theme.colors.background.primary,
|
8151
|
-
color: theme.colors.text.primary,
|
8152
|
-
boxShadow: theme.shadows.z2
|
8153
|
-
}),
|
8154
|
-
inputStyle: css.css({
|
8155
|
-
paddingBlock: 0,
|
8156
|
-
"&:focus": {
|
8157
|
-
outline: "none"
|
8158
|
-
}
|
8159
|
-
})
|
8160
|
-
});
|
8161
|
-
function AdHocFilterEditSwitch({ filter, model }) {
|
8162
|
-
const styles = ui.useStyles2(getStyles3);
|
8163
|
-
const [viewMode, setViewMode] = React.useState(true);
|
8164
|
-
const wrapRef = React.useRef(null);
|
8165
|
-
const handleChangeViewMode = React.useCallback(() => {
|
8166
|
-
reactDom.flushSync(() => {
|
8167
|
-
setViewMode((mode) => !mode);
|
8168
|
-
});
|
8169
|
-
if (wrapRef.current) {
|
8170
|
-
wrapRef.current.focus();
|
8171
|
-
}
|
8172
|
-
}, []);
|
8173
|
-
if (viewMode) {
|
8174
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
8175
|
-
className: styles.combinedFilterPill,
|
8176
|
-
onClick: handleChangeViewMode,
|
8177
|
-
onKeyDown: (e) => {
|
8178
|
-
if (e.key === "Enter") {
|
8179
|
-
handleChangeViewMode();
|
8180
|
-
}
|
8181
|
-
},
|
8182
|
-
role: "button",
|
8183
|
-
"aria-label": "Edit filter",
|
8184
|
-
tabIndex: 0,
|
8185
|
-
ref: wrapRef
|
8186
|
-
}, /* @__PURE__ */ React__default["default"].createElement("span", null, filter.key, " ", filter.operator, " ", filter.value), /* @__PURE__ */ React__default["default"].createElement(ui.IconButton, {
|
8187
|
-
onClick: (e) => {
|
8188
|
-
e.stopPropagation();
|
8189
|
-
model._removeFilter(filter);
|
8190
|
-
},
|
8191
|
-
name: "times",
|
8192
|
-
size: "md",
|
8193
|
-
className: styles.removeButton,
|
8194
|
-
tooltip: "Remove filter"
|
8195
|
-
}));
|
8196
|
-
}
|
8197
|
-
return /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
|
8198
|
-
filter,
|
8199
|
-
model,
|
8200
|
-
handleChangeViewMode
|
8201
|
-
});
|
8202
|
-
}
|
8203
|
-
const getStyles3 = (theme) => ({
|
8204
|
-
wrapper: css.css({
|
8205
|
-
display: "flex",
|
8206
|
-
flexWrap: "wrap",
|
8207
|
-
alignItems: "center",
|
8208
|
-
columnGap: theme.spacing(1),
|
8209
|
-
rowGap: theme.spacing(1),
|
8210
|
-
minHeight: theme.spacing(4),
|
8211
|
-
backgroundColor: theme.components.input.background,
|
8212
|
-
border: `1px solid ${theme.colors.border.strong}`,
|
8213
|
-
borderRadius: theme.shape.radius.default,
|
8214
|
-
paddingInline: theme.spacing(1),
|
8215
|
-
"&:focus-within": {
|
8216
|
-
outline: "2px dotted transparent",
|
8217
|
-
outlineOffset: "2px",
|
8218
|
-
boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
|
8219
|
-
transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
|
8220
|
-
transitionDuration: "0.2s",
|
8221
|
-
transitionProperty: "outline, outline-offset, box-shadow"
|
8222
|
-
}
|
8223
|
-
}),
|
8224
|
-
combinedFilterPill: css.css(__spreadProps$8(__spreadValues$c({
|
8225
|
-
display: "flex",
|
8226
|
-
alignItems: "center",
|
8227
|
-
background: theme.colors.action.selected,
|
8228
|
-
borderRadius: theme.shape.radius.default,
|
8229
|
-
border: `1px solid ${theme.colors.border.weak}`,
|
8230
|
-
padding: theme.spacing(0.125, 0, 0.125, 1),
|
8231
|
-
color: theme.colors.text.primary,
|
8232
|
-
overflow: "hidden",
|
8233
|
-
whiteSpace: "nowrap",
|
8234
|
-
minHeight: "22px"
|
8235
|
-
}, theme.typography.bodySmall), {
|
8236
|
-
fontWeight: theme.typography.fontWeightBold,
|
8237
|
-
cursor: "pointer",
|
8238
|
-
"&:hover": {
|
8239
|
-
background: theme.colors.emphasize(theme.colors.background.secondary)
|
8240
|
-
}
|
8241
|
-
})),
|
8242
|
-
removeButton: css.css({
|
8243
|
-
marginInline: theme.spacing(0.5),
|
8244
|
-
cursor: "pointer",
|
8245
|
-
"&:hover": {
|
8246
|
-
color: theme.colors.text.primary
|
8247
|
-
}
|
8248
|
-
})
|
8249
|
-
});
|
8250
|
-
|
8251
|
-
class AdHocFiltersVariableV2 extends AdHocFiltersVariable {
|
8252
|
-
}
|
8253
|
-
AdHocFiltersVariableV2.Component = AdHocFiltersVariableRendererV2;
|
8254
|
-
function AdHocFiltersVariableRendererV2({ model }) {
|
8255
|
-
const { filters } = model.useState();
|
8256
|
-
const styles = ui.useStyles2(getStyles2);
|
8257
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
8258
|
-
className: styles.wrapper
|
8259
|
-
}, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
|
8260
|
-
name: "filter",
|
8261
|
-
className: styles.filterIcon,
|
8262
|
-
size: "lg"
|
8263
|
-
}), filters.map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFilterEditSwitch, {
|
8264
|
-
key: index,
|
8265
|
-
filter,
|
8266
|
-
model
|
8267
|
-
})), /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
|
8268
|
-
model,
|
8269
|
-
wip: true
|
8270
|
-
}));
|
8271
|
-
}
|
8272
|
-
const getStyles2 = (theme) => ({
|
8273
|
-
wrapper: css.css({
|
8274
|
-
display: "flex",
|
8275
|
-
flexWrap: "wrap",
|
8276
|
-
alignItems: "center",
|
8277
|
-
columnGap: theme.spacing(1),
|
8278
|
-
rowGap: theme.spacing(0.5),
|
8279
|
-
minHeight: theme.spacing(4),
|
8280
|
-
backgroundColor: theme.components.input.background,
|
8281
|
-
border: `1px solid ${theme.colors.border.strong}`,
|
8282
|
-
borderRadius: theme.shape.radius.default,
|
8283
|
-
paddingInline: theme.spacing(1),
|
8284
|
-
paddingBlock: theme.spacing(0.5),
|
8285
|
-
flexGrow: 1,
|
8286
|
-
"&:focus-within": {
|
8287
|
-
outline: "2px dotted transparent",
|
8288
|
-
outlineOffset: "2px",
|
8289
|
-
boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
|
8290
|
-
transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
|
8291
|
-
transitionDuration: "0.2s",
|
8292
|
-
transitionProperty: "outline, outline-offset, box-shadow"
|
8293
|
-
}
|
8294
|
-
}),
|
8295
|
-
filterIcon: css.css({
|
8296
|
-
color: theme.colors.text.secondary,
|
8297
|
-
alignSelf: "center"
|
8298
|
-
})
|
8299
|
-
});
|
8300
|
-
|
8301
7862
|
var __accessCheck = (obj, member, msg) => {
|
8302
7863
|
if (!member.has(obj))
|
8303
7864
|
throw TypeError("Cannot " + msg);
|
@@ -9178,6 +8739,9 @@ class SceneGridRow extends SceneObjectBase {
|
|
9178
8739
|
height: 1,
|
9179
8740
|
width: GRID_COLUMN_COUNT
|
9180
8741
|
}));
|
8742
|
+
this._variableDependency = new VariableDependencyConfig(this, {
|
8743
|
+
statePaths: ["title"]
|
8744
|
+
});
|
9181
8745
|
this.onCollapseToggle = () => {
|
9182
8746
|
if (!this.state.isCollapsible) {
|
9183
8747
|
return;
|
@@ -11977,7 +11541,6 @@ const sceneUtils = {
|
|
11977
11541
|
};
|
11978
11542
|
|
11979
11543
|
exports.AdHocFiltersVariable = AdHocFiltersVariable;
|
11980
|
-
exports.AdHocFiltersVariableV2 = AdHocFiltersVariableV2;
|
11981
11544
|
exports.ConstantVariable = ConstantVariable;
|
11982
11545
|
exports.CustomVariable = CustomVariable;
|
11983
11546
|
exports.DataSourceVariable = DataSourceVariable;
|