@grafana/scenes 5.3.9--canary.830.9911031213.0 → 5.3.9--canary.832.9944397103.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +582 -1026
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/dist/esm/variables/adhoc/AdHocCombobox.js +0 -402
- 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) => {
|
@@ -4881,25 +4879,25 @@ const getAlertStateStyles = (theme) => {
|
|
4881
4879
|
};
|
4882
4880
|
};
|
4883
4881
|
|
4884
|
-
var __defProp$
|
4885
|
-
var __defProps$
|
4886
|
-
var __getOwnPropDescs$
|
4887
|
-
var __getOwnPropSymbols$
|
4888
|
-
var __hasOwnProp$
|
4889
|
-
var __propIsEnum$
|
4890
|
-
var __defNormalProp$
|
4891
|
-
var __spreadValues$
|
4882
|
+
var __defProp$v = Object.defineProperty;
|
4883
|
+
var __defProps$j = Object.defineProperties;
|
4884
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
4885
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
4886
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
4887
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
4888
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4889
|
+
var __spreadValues$v = (a, b) => {
|
4892
4890
|
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$
|
4891
|
+
if (__hasOwnProp$v.call(b, prop))
|
4892
|
+
__defNormalProp$v(a, prop, b[prop]);
|
4893
|
+
if (__getOwnPropSymbols$v)
|
4894
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
4895
|
+
if (__propIsEnum$v.call(b, prop))
|
4896
|
+
__defNormalProp$v(a, prop, b[prop]);
|
4899
4897
|
}
|
4900
4898
|
return a;
|
4901
4899
|
};
|
4902
|
-
var __spreadProps$
|
4900
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
4903
4901
|
const displayOverrideRef = "hideSeriesFrom";
|
4904
4902
|
const isHideSeriesOverride = data.isSystemOverrideWithRef(displayOverrideRef);
|
4905
4903
|
function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
@@ -4909,13 +4907,13 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4909
4907
|
if (currentIndex < 0) {
|
4910
4908
|
if (mode === ui.SeriesVisibilityChangeMode.ToggleSelection) {
|
4911
4909
|
const override3 = createOverride$1([displayName, ...getNamesOfHiddenFields(overrides, data)]);
|
4912
|
-
return __spreadProps$
|
4910
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4913
4911
|
overrides: [...fieldConfig.overrides, override3]
|
4914
4912
|
});
|
4915
4913
|
}
|
4916
4914
|
const displayNames = getDisplayNames(data, displayName);
|
4917
4915
|
const override2 = createOverride$1(displayNames);
|
4918
|
-
return __spreadProps$
|
4916
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4919
4917
|
overrides: [...fieldConfig.overrides, override2]
|
4920
4918
|
});
|
4921
4919
|
}
|
@@ -4928,22 +4926,22 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4928
4926
|
existing = existing.filter((el) => nameOfHiddenFields.indexOf(el) < 0);
|
4929
4927
|
}
|
4930
4928
|
if (existing[0] === displayName && existing.length === 1) {
|
4931
|
-
return __spreadProps$
|
4929
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4932
4930
|
overrides: overridesCopy
|
4933
4931
|
});
|
4934
4932
|
}
|
4935
4933
|
const override2 = createOverride$1([displayName, ...nameOfHiddenFields]);
|
4936
|
-
return __spreadProps$
|
4934
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4937
4935
|
overrides: [...overridesCopy, override2]
|
4938
4936
|
});
|
4939
4937
|
}
|
4940
4938
|
const override = createExtendedOverride(current, displayName);
|
4941
4939
|
if (allFieldsAreExcluded(override, data)) {
|
4942
|
-
return __spreadProps$
|
4940
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4943
4941
|
overrides: overridesCopy
|
4944
4942
|
});
|
4945
4943
|
}
|
4946
|
-
return __spreadProps$
|
4944
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
4947
4945
|
overrides: [...overridesCopy, override]
|
4948
4946
|
});
|
4949
4947
|
}
|
@@ -4968,7 +4966,7 @@ function createOverride$1(names, mode = data.ByNamesMatcherMode.exclude, propert
|
|
4968
4966
|
}
|
4969
4967
|
},
|
4970
4968
|
properties: [
|
4971
|
-
__spreadProps$
|
4969
|
+
__spreadProps$j(__spreadValues$v({}, property), {
|
4972
4970
|
value: {
|
4973
4971
|
viz: true,
|
4974
4972
|
legend: false,
|
@@ -5040,32 +5038,32 @@ const getNamesOfHiddenFields = (overrides, data$1) => {
|
|
5040
5038
|
return names;
|
5041
5039
|
};
|
5042
5040
|
|
5043
|
-
var __defProp$
|
5044
|
-
var __defProps$
|
5045
|
-
var __getOwnPropDescs$
|
5046
|
-
var __getOwnPropSymbols$
|
5047
|
-
var __hasOwnProp$
|
5048
|
-
var __propIsEnum$
|
5049
|
-
var __defNormalProp$
|
5050
|
-
var __spreadValues$
|
5041
|
+
var __defProp$u = Object.defineProperty;
|
5042
|
+
var __defProps$i = Object.defineProperties;
|
5043
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
5044
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
5045
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
5046
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
5047
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5048
|
+
var __spreadValues$u = (a, b) => {
|
5051
5049
|
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$
|
5050
|
+
if (__hasOwnProp$u.call(b, prop))
|
5051
|
+
__defNormalProp$u(a, prop, b[prop]);
|
5052
|
+
if (__getOwnPropSymbols$u)
|
5053
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
5054
|
+
if (__propIsEnum$u.call(b, prop))
|
5055
|
+
__defNormalProp$u(a, prop, b[prop]);
|
5058
5056
|
}
|
5059
5057
|
return a;
|
5060
5058
|
};
|
5061
|
-
var __spreadProps$
|
5059
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
5062
5060
|
const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
5063
5061
|
const { overrides } = fieldConfig;
|
5064
5062
|
const currentIndex = fieldConfig.overrides.findIndex((override) => {
|
5065
5063
|
return override.matcher.id === data.FieldMatcherID.byName && override.matcher.options === label;
|
5066
5064
|
});
|
5067
5065
|
if (currentIndex < 0) {
|
5068
|
-
return __spreadProps$
|
5066
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
5069
5067
|
overrides: [...fieldConfig.overrides, createOverride(label, color)]
|
5070
5068
|
});
|
5071
5069
|
}
|
@@ -5073,19 +5071,19 @@ const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
|
5073
5071
|
const existing = overridesCopy[currentIndex];
|
5074
5072
|
const propertyIndex = existing.properties.findIndex((p) => p.id === "color");
|
5075
5073
|
if (propertyIndex < 0) {
|
5076
|
-
overridesCopy[currentIndex] = __spreadProps$
|
5074
|
+
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$u({}, existing), {
|
5077
5075
|
properties: [...existing.properties, createProperty(color)]
|
5078
5076
|
});
|
5079
|
-
return __spreadProps$
|
5077
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
5080
5078
|
overrides: overridesCopy
|
5081
5079
|
});
|
5082
5080
|
}
|
5083
5081
|
const propertiesCopy = Array.from(existing.properties);
|
5084
5082
|
propertiesCopy[propertyIndex] = createProperty(color);
|
5085
|
-
overridesCopy[currentIndex] = __spreadProps$
|
5083
|
+
overridesCopy[currentIndex] = __spreadProps$i(__spreadValues$u({}, existing), {
|
5086
5084
|
properties: propertiesCopy
|
5087
5085
|
});
|
5088
|
-
return __spreadProps$
|
5086
|
+
return __spreadProps$i(__spreadValues$u({}, fieldConfig), {
|
5089
5087
|
overrides: overridesCopy
|
5090
5088
|
});
|
5091
5089
|
};
|
@@ -5108,29 +5106,29 @@ const createProperty = (color) => {
|
|
5108
5106
|
};
|
5109
5107
|
};
|
5110
5108
|
|
5111
|
-
var __defProp$
|
5112
|
-
var __defProps$
|
5113
|
-
var __getOwnPropDescs$
|
5114
|
-
var __getOwnPropSymbols$
|
5115
|
-
var __hasOwnProp$
|
5116
|
-
var __propIsEnum$
|
5117
|
-
var __defNormalProp$
|
5118
|
-
var __spreadValues$
|
5109
|
+
var __defProp$t = Object.defineProperty;
|
5110
|
+
var __defProps$h = Object.defineProperties;
|
5111
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
5112
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
5113
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
5114
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
5115
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5116
|
+
var __spreadValues$t = (a, b) => {
|
5119
5117
|
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$
|
5118
|
+
if (__hasOwnProp$t.call(b, prop))
|
5119
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5120
|
+
if (__getOwnPropSymbols$t)
|
5121
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
5122
|
+
if (__propIsEnum$t.call(b, prop))
|
5123
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5126
5124
|
}
|
5127
5125
|
return a;
|
5128
5126
|
};
|
5129
|
-
var __spreadProps$
|
5127
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
5130
5128
|
class VizPanel extends SceneObjectBase {
|
5131
5129
|
constructor(state) {
|
5132
5130
|
var _a;
|
5133
|
-
super(__spreadValues$
|
5131
|
+
super(__spreadValues$t({
|
5134
5132
|
options: {},
|
5135
5133
|
fieldConfig: { defaults: {}, overrides: [] },
|
5136
5134
|
title: "Title",
|
@@ -5247,7 +5245,7 @@ class VizPanel extends SceneObjectBase {
|
|
5247
5245
|
};
|
5248
5246
|
this._onInstanceStateChange = (state) => {
|
5249
5247
|
if (this._panelContext) {
|
5250
|
-
this._panelContext = __spreadProps$
|
5248
|
+
this._panelContext = __spreadProps$h(__spreadValues$t({}, this._panelContext), {
|
5251
5249
|
instanceState: state
|
5252
5250
|
});
|
5253
5251
|
}
|
@@ -5271,8 +5269,8 @@ class VizPanel extends SceneObjectBase {
|
|
5271
5269
|
sortBy = sortKey;
|
5272
5270
|
}
|
5273
5271
|
this.onOptionsChange(
|
5274
|
-
__spreadProps$
|
5275
|
-
legend: __spreadProps$
|
5272
|
+
__spreadProps$h(__spreadValues$t({}, this.state.options), {
|
5273
|
+
legend: __spreadProps$h(__spreadValues$t({}, legendOptions), { sortBy, sortDesc })
|
5276
5274
|
}),
|
5277
5275
|
true
|
5278
5276
|
);
|
@@ -5382,7 +5380,7 @@ class VizPanel extends SceneObjectBase {
|
|
5382
5380
|
if (!data.compareArrayValues(newFrames, prevFrames, data.compareDataFrameStructures)) {
|
5383
5381
|
this._structureRev++;
|
5384
5382
|
}
|
5385
|
-
this._dataWithFieldConfig = __spreadProps$
|
5383
|
+
this._dataWithFieldConfig = __spreadProps$h(__spreadValues$t({}, rawData), {
|
5386
5384
|
structureRev: this._structureRev,
|
5387
5385
|
series: newFrames
|
5388
5386
|
});
|
@@ -5525,25 +5523,25 @@ function getMessageFromError(err) {
|
|
5525
5523
|
return JSON.stringify(err);
|
5526
5524
|
}
|
5527
5525
|
|
5528
|
-
var __defProp$
|
5529
|
-
var __getOwnPropSymbols$
|
5530
|
-
var __hasOwnProp$
|
5531
|
-
var __propIsEnum$
|
5532
|
-
var __defNormalProp$
|
5533
|
-
var __spreadValues$
|
5526
|
+
var __defProp$s = Object.defineProperty;
|
5527
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
5528
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
5529
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
5530
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5531
|
+
var __spreadValues$s = (a, b) => {
|
5534
5532
|
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$
|
5533
|
+
if (__hasOwnProp$s.call(b, prop))
|
5534
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5535
|
+
if (__getOwnPropSymbols$s)
|
5536
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
5537
|
+
if (__propIsEnum$s.call(b, prop))
|
5538
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5541
5539
|
}
|
5542
5540
|
return a;
|
5543
5541
|
};
|
5544
5542
|
class SceneDataLayerBase extends SceneObjectBase {
|
5545
5543
|
constructor(initialState, variableDependencyStatePaths = []) {
|
5546
|
-
super(__spreadValues$
|
5544
|
+
super(__spreadValues$s({
|
5547
5545
|
isEnabled: true
|
5548
5546
|
}, initialState));
|
5549
5547
|
this._results = new rxjs.ReplaySubject(1);
|
@@ -5668,33 +5666,33 @@ function DataLayerControlSwitch({ layer }) {
|
|
5668
5666
|
}
|
5669
5667
|
const containerStyle$1 = css.css({ display: "flex" });
|
5670
5668
|
|
5671
|
-
var __defProp$
|
5672
|
-
var __defProps$
|
5673
|
-
var __getOwnPropDescs$
|
5674
|
-
var __getOwnPropSymbols$
|
5675
|
-
var __hasOwnProp$
|
5676
|
-
var __propIsEnum$
|
5677
|
-
var __defNormalProp$
|
5678
|
-
var __spreadValues$
|
5669
|
+
var __defProp$r = Object.defineProperty;
|
5670
|
+
var __defProps$g = Object.defineProperties;
|
5671
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
5672
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
5673
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
5674
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
5675
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5676
|
+
var __spreadValues$r = (a, b) => {
|
5679
5677
|
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$
|
5678
|
+
if (__hasOwnProp$r.call(b, prop))
|
5679
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5680
|
+
if (__getOwnPropSymbols$r)
|
5681
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
5682
|
+
if (__propIsEnum$r.call(b, prop))
|
5683
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5686
5684
|
}
|
5687
5685
|
return a;
|
5688
5686
|
};
|
5689
|
-
var __spreadProps$
|
5690
|
-
var __objRest$
|
5687
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
5688
|
+
var __objRest$2 = (source, exclude) => {
|
5691
5689
|
var target = {};
|
5692
5690
|
for (var prop in source)
|
5693
|
-
if (__hasOwnProp$
|
5691
|
+
if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
|
5694
5692
|
target[prop] = source[prop];
|
5695
|
-
if (source != null && __getOwnPropSymbols$
|
5696
|
-
for (var prop of __getOwnPropSymbols$
|
5697
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
5693
|
+
if (source != null && __getOwnPropSymbols$r)
|
5694
|
+
for (var prop of __getOwnPropSymbols$r(source)) {
|
5695
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
|
5698
5696
|
target[prop] = source[prop];
|
5699
5697
|
}
|
5700
5698
|
return target;
|
@@ -5702,8 +5700,8 @@ var __objRest$3 = (source, exclude) => {
|
|
5702
5700
|
const standardAnnotationSupport = {
|
5703
5701
|
prepareAnnotation: (json) => {
|
5704
5702
|
if (lodash.isString(json == null ? void 0 : json.query)) {
|
5705
|
-
const _a = json, { query } = _a, rest = __objRest$
|
5706
|
-
return __spreadProps$
|
5703
|
+
const _a = json, { query } = _a, rest = __objRest$2(_a, ["query"]);
|
5704
|
+
return __spreadProps$g(__spreadValues$r({}, rest), {
|
5707
5705
|
target: {
|
5708
5706
|
refId: "annotation_query",
|
5709
5707
|
query
|
@@ -5871,25 +5869,25 @@ function shouldUseLegacyRunner(datasource) {
|
|
5871
5869
|
return !datasource.annotations || legacyRunner.includes(type);
|
5872
5870
|
}
|
5873
5871
|
|
5874
|
-
var __defProp$
|
5875
|
-
var __defProps$
|
5876
|
-
var __getOwnPropDescs$
|
5877
|
-
var __getOwnPropSymbols$
|
5878
|
-
var __hasOwnProp$
|
5879
|
-
var __propIsEnum$
|
5880
|
-
var __defNormalProp$
|
5881
|
-
var __spreadValues$
|
5872
|
+
var __defProp$q = Object.defineProperty;
|
5873
|
+
var __defProps$f = Object.defineProperties;
|
5874
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
5875
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
5876
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
5877
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
5878
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5879
|
+
var __spreadValues$q = (a, b) => {
|
5882
5880
|
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$
|
5881
|
+
if (__hasOwnProp$q.call(b, prop))
|
5882
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5883
|
+
if (__getOwnPropSymbols$q)
|
5884
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
5885
|
+
if (__propIsEnum$q.call(b, prop))
|
5886
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5889
5887
|
}
|
5890
5888
|
return a;
|
5891
5889
|
};
|
5892
|
-
var __spreadProps$
|
5890
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
5893
5891
|
let counter = 100;
|
5894
5892
|
function getNextRequestId() {
|
5895
5893
|
return "AQ" + counter++;
|
@@ -5912,8 +5910,8 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5912
5910
|
}))
|
5913
5911
|
);
|
5914
5912
|
}
|
5915
|
-
const processor = __spreadValues$
|
5916
|
-
const annotationWithDefaults = __spreadValues$
|
5913
|
+
const processor = __spreadValues$q(__spreadValues$q({}, standardAnnotationSupport), datasource.annotations);
|
5914
|
+
const annotationWithDefaults = __spreadValues$q(__spreadValues$q({}, (_a = processor.getDefaultQuery) == null ? void 0 : _a.call(processor)), query);
|
5917
5915
|
const annotation = processor.prepareAnnotation(annotationWithDefaults);
|
5918
5916
|
if (!annotation) {
|
5919
5917
|
return rxjs.of({
|
@@ -5936,7 +5934,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5936
5934
|
__annotation: { text: annotation.name, value: annotation },
|
5937
5935
|
__sceneObject: { text: "__sceneObject", value: layer }
|
5938
5936
|
};
|
5939
|
-
const queryRequest = __spreadValues$
|
5937
|
+
const queryRequest = __spreadValues$q(__spreadProps$f(__spreadValues$q({
|
5940
5938
|
startTime: Date.now(),
|
5941
5939
|
requestId: getNextRequestId(),
|
5942
5940
|
range: timeRange.state.value,
|
@@ -5946,7 +5944,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5946
5944
|
app: data.CoreApp.Dashboard,
|
5947
5945
|
timezone: timeRange.getTimeZone(),
|
5948
5946
|
targets: [
|
5949
|
-
__spreadProps$
|
5947
|
+
__spreadProps$f(__spreadValues$q({}, processedQuery), {
|
5950
5948
|
refId: "Anno"
|
5951
5949
|
})
|
5952
5950
|
]
|
@@ -5964,7 +5962,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5964
5962
|
data$1.forEach((frame) => {
|
5965
5963
|
var _a2;
|
5966
5964
|
if (!((_a2 = frame.meta) == null ? void 0 : _a2.dataTopic)) {
|
5967
|
-
frame.meta = __spreadProps$
|
5965
|
+
frame.meta = __spreadProps$f(__spreadValues$q({}, frame.meta || {}), { dataTopic: data.DataTopic.Annotations });
|
5968
5966
|
}
|
5969
5967
|
});
|
5970
5968
|
return processor.processEvents(annotation, data$1).pipe(
|
@@ -5979,19 +5977,19 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5979
5977
|
);
|
5980
5978
|
}
|
5981
5979
|
|
5982
|
-
var __defProp$
|
5983
|
-
var __getOwnPropSymbols$
|
5984
|
-
var __hasOwnProp$
|
5985
|
-
var __propIsEnum$
|
5986
|
-
var __defNormalProp$
|
5987
|
-
var __spreadValues$
|
5980
|
+
var __defProp$p = Object.defineProperty;
|
5981
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
5982
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
5983
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
5984
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5985
|
+
var __spreadValues$p = (a, b) => {
|
5988
5986
|
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$
|
5987
|
+
if (__hasOwnProp$p.call(b, prop))
|
5988
|
+
__defNormalProp$p(a, prop, b[prop]);
|
5989
|
+
if (__getOwnPropSymbols$p)
|
5990
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
5991
|
+
if (__propIsEnum$p.call(b, prop))
|
5992
|
+
__defNormalProp$p(a, prop, b[prop]);
|
5995
5993
|
}
|
5996
5994
|
return a;
|
5997
5995
|
};
|
@@ -6002,7 +6000,7 @@ function postProcessQueryResult(annotation, results) {
|
|
6002
6000
|
}
|
6003
6001
|
const processed = results.map((item) => {
|
6004
6002
|
var _a;
|
6005
|
-
const processedItem = __spreadValues$
|
6003
|
+
const processedItem = __spreadValues$p({}, item);
|
6006
6004
|
processedItem.source = annotation;
|
6007
6005
|
processedItem.color = runtime.config.theme2.visualization.getColorByName(annotation.iconColor);
|
6008
6006
|
processedItem.type = annotation.name;
|
@@ -6051,29 +6049,29 @@ function isPanelAlert(event) {
|
|
6051
6049
|
return event.eventType === "panel-alert";
|
6052
6050
|
}
|
6053
6051
|
|
6054
|
-
var __defProp$
|
6055
|
-
var __defProps$
|
6056
|
-
var __getOwnPropDescs$
|
6057
|
-
var __getOwnPropSymbols$
|
6058
|
-
var __hasOwnProp$
|
6059
|
-
var __propIsEnum$
|
6060
|
-
var __defNormalProp$
|
6061
|
-
var __spreadValues$
|
6052
|
+
var __defProp$o = Object.defineProperty;
|
6053
|
+
var __defProps$e = Object.defineProperties;
|
6054
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
6055
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
6056
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
6057
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
6058
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6059
|
+
var __spreadValues$o = (a, b) => {
|
6062
6060
|
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$
|
6061
|
+
if (__hasOwnProp$o.call(b, prop))
|
6062
|
+
__defNormalProp$o(a, prop, b[prop]);
|
6063
|
+
if (__getOwnPropSymbols$o)
|
6064
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
6065
|
+
if (__propIsEnum$o.call(b, prop))
|
6066
|
+
__defNormalProp$o(a, prop, b[prop]);
|
6069
6067
|
}
|
6070
6068
|
return a;
|
6071
6069
|
};
|
6072
|
-
var __spreadProps$
|
6070
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
6073
6071
|
class AnnotationsDataLayer extends SceneDataLayerBase {
|
6074
6072
|
constructor(initialState) {
|
6075
6073
|
super(
|
6076
|
-
__spreadValues$
|
6074
|
+
__spreadValues$o({
|
6077
6075
|
isEnabled: true
|
6078
6076
|
}, initialState),
|
6079
6077
|
["query"]
|
@@ -6121,7 +6119,7 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6121
6119
|
this.publishResults(stateUpdate);
|
6122
6120
|
});
|
6123
6121
|
} catch (e) {
|
6124
|
-
this.publishResults(__spreadProps$
|
6122
|
+
this.publishResults(__spreadProps$e(__spreadValues$o({}, emptyPanelData), {
|
6125
6123
|
state: schema.LoadingState.Error,
|
6126
6124
|
errors: [
|
6127
6125
|
{
|
@@ -6138,9 +6136,9 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6138
6136
|
processEvents(query, events) {
|
6139
6137
|
let processedEvents = postProcessQueryResult(query, events.events || []);
|
6140
6138
|
processedEvents = dedupAnnotations(processedEvents);
|
6141
|
-
const stateUpdate = __spreadProps$
|
6139
|
+
const stateUpdate = __spreadProps$e(__spreadValues$o({}, emptyPanelData), { state: events.state });
|
6142
6140
|
const df = data.arrayToDataFrame(processedEvents);
|
6143
|
-
df.meta = __spreadProps$
|
6141
|
+
df.meta = __spreadProps$e(__spreadValues$o({}, df.meta), {
|
6144
6142
|
dataTopic: data.DataTopic.Annotations
|
6145
6143
|
});
|
6146
6144
|
stateUpdate.series = [df];
|
@@ -6193,28 +6191,28 @@ class SceneTimeRangeTransformerBase extends SceneObjectBase {
|
|
6193
6191
|
}
|
6194
6192
|
}
|
6195
6193
|
|
6196
|
-
var __defProp$
|
6197
|
-
var __defProps$
|
6198
|
-
var __getOwnPropDescs$
|
6199
|
-
var __getOwnPropSymbols$
|
6200
|
-
var __hasOwnProp$
|
6201
|
-
var __propIsEnum$
|
6202
|
-
var __defNormalProp$
|
6203
|
-
var __spreadValues$
|
6194
|
+
var __defProp$n = Object.defineProperty;
|
6195
|
+
var __defProps$d = Object.defineProperties;
|
6196
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
6197
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
6198
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
6199
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
6200
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6201
|
+
var __spreadValues$n = (a, b) => {
|
6204
6202
|
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$
|
6203
|
+
if (__hasOwnProp$n.call(b, prop))
|
6204
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6205
|
+
if (__getOwnPropSymbols$n)
|
6206
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
6207
|
+
if (__propIsEnum$n.call(b, prop))
|
6208
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6211
6209
|
}
|
6212
6210
|
return a;
|
6213
6211
|
};
|
6214
|
-
var __spreadProps$
|
6212
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
6215
6213
|
class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
6216
6214
|
constructor(state) {
|
6217
|
-
super(__spreadProps$
|
6215
|
+
super(__spreadProps$d(__spreadValues$n({}, state), {
|
6218
6216
|
timeZone: state.timeZone,
|
6219
6217
|
from: "now-6h",
|
6220
6218
|
to: "now",
|
@@ -6222,7 +6220,7 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6222
6220
|
}));
|
6223
6221
|
}
|
6224
6222
|
ancestorTimeRangeChanged(timeRange) {
|
6225
|
-
this.setState(__spreadProps$
|
6223
|
+
this.setState(__spreadProps$d(__spreadValues$n({}, timeRange), {
|
6226
6224
|
timeZone: this.state.timeZone,
|
6227
6225
|
value: evaluateTimeRange(
|
6228
6226
|
timeRange.from,
|
@@ -6250,25 +6248,25 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6250
6248
|
}
|
6251
6249
|
}
|
6252
6250
|
|
6253
|
-
var __defProp$
|
6254
|
-
var __defProps$
|
6255
|
-
var __getOwnPropDescs$
|
6256
|
-
var __getOwnPropSymbols$
|
6257
|
-
var __hasOwnProp$
|
6258
|
-
var __propIsEnum$
|
6259
|
-
var __defNormalProp$
|
6260
|
-
var __spreadValues$
|
6251
|
+
var __defProp$m = Object.defineProperty;
|
6252
|
+
var __defProps$c = Object.defineProperties;
|
6253
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
6254
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
6255
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
6256
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
6257
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6258
|
+
var __spreadValues$m = (a, b) => {
|
6261
6259
|
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$
|
6260
|
+
if (__hasOwnProp$m.call(b, prop))
|
6261
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6262
|
+
if (__getOwnPropSymbols$m)
|
6263
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
6264
|
+
if (__propIsEnum$m.call(b, prop))
|
6265
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6268
6266
|
}
|
6269
6267
|
return a;
|
6270
6268
|
};
|
6271
|
-
var __spreadProps$
|
6269
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
6272
6270
|
class SceneDataLayerSetBase extends SceneObjectBase {
|
6273
6271
|
constructor() {
|
6274
6272
|
super(...arguments);
|
@@ -6292,7 +6290,7 @@ class SceneDataLayerSetBase extends SceneObjectBase {
|
|
6292
6290
|
series = series.concat(result.data.series);
|
6293
6291
|
}
|
6294
6292
|
}
|
6295
|
-
const combinedData = __spreadProps$
|
6293
|
+
const combinedData = __spreadProps$c(__spreadValues$m({}, emptyPanelData), { series });
|
6296
6294
|
this._results.next({ origin: this, data: combinedData });
|
6297
6295
|
this.setStateHelper({ data: combinedData });
|
6298
6296
|
}
|
@@ -6341,25 +6339,25 @@ SceneDataLayerSet.Component = ({ model }) => {
|
|
6341
6339
|
})));
|
6342
6340
|
};
|
6343
6341
|
|
6344
|
-
var __defProp$
|
6345
|
-
var __defProps$
|
6346
|
-
var __getOwnPropDescs$
|
6347
|
-
var __getOwnPropSymbols$
|
6348
|
-
var __hasOwnProp$
|
6349
|
-
var __propIsEnum$
|
6350
|
-
var __defNormalProp$
|
6351
|
-
var __spreadValues$
|
6342
|
+
var __defProp$l = Object.defineProperty;
|
6343
|
+
var __defProps$b = Object.defineProperties;
|
6344
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
6345
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
6346
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
6347
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
6348
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6349
|
+
var __spreadValues$l = (a, b) => {
|
6352
6350
|
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$
|
6351
|
+
if (__hasOwnProp$l.call(b, prop))
|
6352
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6353
|
+
if (__getOwnPropSymbols$l)
|
6354
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
6355
|
+
if (__propIsEnum$l.call(b, prop))
|
6356
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6359
6357
|
}
|
6360
6358
|
return a;
|
6361
6359
|
};
|
6362
|
-
var __spreadProps$
|
6360
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
6363
6361
|
class SceneDataTransformer extends SceneObjectBase {
|
6364
6362
|
constructor(state) {
|
6365
6363
|
super(state);
|
@@ -6436,7 +6434,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6436
6434
|
const { series, annotations } = this._prevDataFromSource;
|
6437
6435
|
if (data.series === series && data.annotations === annotations) {
|
6438
6436
|
if (this.state.data && data.state !== this.state.data.state) {
|
6439
|
-
this.setState({ data: __spreadProps$
|
6437
|
+
this.setState({ data: __spreadProps$b(__spreadValues$l({}, this.state.data), { state: data.state }) });
|
6440
6438
|
}
|
6441
6439
|
return true;
|
6442
6440
|
}
|
@@ -6484,7 +6482,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6484
6482
|
rxjs.map((values) => {
|
6485
6483
|
const transformedSeries = values[0];
|
6486
6484
|
const transformedAnnotations = values[1];
|
6487
|
-
return __spreadProps$
|
6485
|
+
return __spreadProps$b(__spreadValues$l({}, data$1), {
|
6488
6486
|
series: transformedSeries,
|
6489
6487
|
annotations: transformedAnnotations != null ? transformedAnnotations : data$1.annotations
|
6490
6488
|
});
|
@@ -6495,7 +6493,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6495
6493
|
const sourceErr = ((_a2 = this.getSourceData().state.data) == null ? void 0 : _a2.errors) || [];
|
6496
6494
|
const transformationError = runtime.toDataQueryError(err);
|
6497
6495
|
transformationError.message = `Error transforming data: ${transformationError.message}`;
|
6498
|
-
const result = __spreadProps$
|
6496
|
+
const result = __spreadProps$b(__spreadValues$l({}, data$1), {
|
6499
6497
|
state: data.LoadingState.Error,
|
6500
6498
|
errors: [...sourceErr, transformationError]
|
6501
6499
|
});
|
@@ -6830,28 +6828,28 @@ class SceneVariableSetVariableDependencyHandler {
|
|
6830
6828
|
}
|
6831
6829
|
}
|
6832
6830
|
|
6833
|
-
var __defProp$
|
6834
|
-
var __defProps$
|
6835
|
-
var __getOwnPropDescs$
|
6836
|
-
var __getOwnPropSymbols$
|
6837
|
-
var __hasOwnProp$
|
6838
|
-
var __propIsEnum$
|
6839
|
-
var __defNormalProp$
|
6840
|
-
var __spreadValues$
|
6831
|
+
var __defProp$k = Object.defineProperty;
|
6832
|
+
var __defProps$a = Object.defineProperties;
|
6833
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
6834
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
6835
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
6836
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
6837
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6838
|
+
var __spreadValues$k = (a, b) => {
|
6841
6839
|
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$
|
6840
|
+
if (__hasOwnProp$k.call(b, prop))
|
6841
|
+
__defNormalProp$k(a, prop, b[prop]);
|
6842
|
+
if (__getOwnPropSymbols$k)
|
6843
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
6844
|
+
if (__propIsEnum$k.call(b, prop))
|
6845
|
+
__defNormalProp$k(a, prop, b[prop]);
|
6848
6846
|
}
|
6849
6847
|
return a;
|
6850
6848
|
};
|
6851
|
-
var __spreadProps$
|
6849
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
6852
6850
|
class ConstantVariable extends SceneObjectBase {
|
6853
6851
|
constructor(initialState) {
|
6854
|
-
super(__spreadProps$
|
6852
|
+
super(__spreadProps$a(__spreadValues$k({
|
6855
6853
|
type: "constant",
|
6856
6854
|
value: "",
|
6857
6855
|
name: ""
|
@@ -6864,25 +6862,25 @@ class ConstantVariable extends SceneObjectBase {
|
|
6864
6862
|
}
|
6865
6863
|
}
|
6866
6864
|
|
6867
|
-
var __defProp$
|
6868
|
-
var __getOwnPropSymbols$
|
6869
|
-
var __hasOwnProp$
|
6870
|
-
var __propIsEnum$
|
6871
|
-
var __defNormalProp$
|
6872
|
-
var __spreadValues$
|
6865
|
+
var __defProp$j = Object.defineProperty;
|
6866
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
6867
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
6868
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
6869
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6870
|
+
var __spreadValues$j = (a, b) => {
|
6873
6871
|
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$
|
6872
|
+
if (__hasOwnProp$j.call(b, prop))
|
6873
|
+
__defNormalProp$j(a, prop, b[prop]);
|
6874
|
+
if (__getOwnPropSymbols$j)
|
6875
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
6876
|
+
if (__propIsEnum$j.call(b, prop))
|
6877
|
+
__defNormalProp$j(a, prop, b[prop]);
|
6880
6878
|
}
|
6881
6879
|
return a;
|
6882
6880
|
};
|
6883
6881
|
class CustomVariable extends MultiValueVariable {
|
6884
6882
|
constructor(initialState) {
|
6885
|
-
super(__spreadValues$
|
6883
|
+
super(__spreadValues$j({
|
6886
6884
|
type: "custom",
|
6887
6885
|
query: "",
|
6888
6886
|
value: "",
|
@@ -6916,25 +6914,25 @@ CustomVariable.Component = ({ model }) => {
|
|
6916
6914
|
return renderSelectForVariable(model);
|
6917
6915
|
};
|
6918
6916
|
|
6919
|
-
var __defProp$
|
6920
|
-
var __getOwnPropSymbols$
|
6921
|
-
var __hasOwnProp$
|
6922
|
-
var __propIsEnum$
|
6923
|
-
var __defNormalProp$
|
6924
|
-
var __spreadValues$
|
6917
|
+
var __defProp$i = Object.defineProperty;
|
6918
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
6919
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
6920
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
6921
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6922
|
+
var __spreadValues$i = (a, b) => {
|
6925
6923
|
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$
|
6924
|
+
if (__hasOwnProp$i.call(b, prop))
|
6925
|
+
__defNormalProp$i(a, prop, b[prop]);
|
6926
|
+
if (__getOwnPropSymbols$i)
|
6927
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
6928
|
+
if (__propIsEnum$i.call(b, prop))
|
6929
|
+
__defNormalProp$i(a, prop, b[prop]);
|
6932
6930
|
}
|
6933
6931
|
return a;
|
6934
6932
|
};
|
6935
6933
|
class DataSourceVariable extends MultiValueVariable {
|
6936
6934
|
constructor(initialState) {
|
6937
|
-
super(__spreadValues$
|
6935
|
+
super(__spreadValues$i({
|
6938
6936
|
type: "datasource",
|
6939
6937
|
value: "",
|
6940
6938
|
text: "",
|
@@ -7018,25 +7016,25 @@ const hasCustomVariableSupport = (datasource) => {
|
|
7018
7016
|
return "query" in variableSupport && "editor" in variableSupport && Boolean(variableSupport.query) && Boolean(variableSupport.editor);
|
7019
7017
|
};
|
7020
7018
|
|
7021
|
-
var __defProp$
|
7022
|
-
var __defProps$
|
7023
|
-
var __getOwnPropDescs$
|
7024
|
-
var __getOwnPropSymbols$
|
7025
|
-
var __hasOwnProp$
|
7026
|
-
var __propIsEnum$
|
7027
|
-
var __defNormalProp$
|
7028
|
-
var __spreadValues$
|
7019
|
+
var __defProp$h = Object.defineProperty;
|
7020
|
+
var __defProps$9 = Object.defineProperties;
|
7021
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
7022
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
7023
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
7024
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
7025
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7026
|
+
var __spreadValues$h = (a, b) => {
|
7029
7027
|
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$
|
7028
|
+
if (__hasOwnProp$h.call(b, prop))
|
7029
|
+
__defNormalProp$h(a, prop, b[prop]);
|
7030
|
+
if (__getOwnPropSymbols$h)
|
7031
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
7032
|
+
if (__propIsEnum$h.call(b, prop))
|
7033
|
+
__defNormalProp$h(a, prop, b[prop]);
|
7036
7034
|
}
|
7037
7035
|
return a;
|
7038
7036
|
};
|
7039
|
-
var __spreadProps$
|
7037
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
7040
7038
|
class StandardQueryRunner {
|
7041
7039
|
constructor(datasource, _runRequest = runtime.getRunRequest()) {
|
7042
7040
|
this.datasource = datasource;
|
@@ -7073,7 +7071,7 @@ class LegacyQueryRunner {
|
|
7073
7071
|
return getEmptyMetricFindValueObservable();
|
7074
7072
|
}
|
7075
7073
|
return rxjs.from(
|
7076
|
-
this.datasource.metricFindQuery(variable.state.query, __spreadProps$
|
7074
|
+
this.datasource.metricFindQuery(variable.state.query, __spreadProps$9(__spreadValues$h({}, request), {
|
7077
7075
|
variable: {
|
7078
7076
|
name: variable.state.name,
|
7079
7077
|
type: variable.state.type
|
@@ -7135,7 +7133,7 @@ function ensureVariableQueryModelIsADataQuery(variable) {
|
|
7135
7133
|
return { query, refId: `variable-${variable.state.name}` };
|
7136
7134
|
}
|
7137
7135
|
if (query.refId == null) {
|
7138
|
-
return __spreadProps$
|
7136
|
+
return __spreadProps$9(__spreadValues$h({}, query), { refId: `variable-${variable.state.name}` });
|
7139
7137
|
}
|
7140
7138
|
return variable.state.query;
|
7141
7139
|
}
|
@@ -7350,25 +7348,25 @@ function areMetricFindValues(data$1) {
|
|
7350
7348
|
return false;
|
7351
7349
|
}
|
7352
7350
|
|
7353
|
-
var __defProp$
|
7354
|
-
var __getOwnPropSymbols$
|
7355
|
-
var __hasOwnProp$
|
7356
|
-
var __propIsEnum$
|
7357
|
-
var __defNormalProp$
|
7358
|
-
var __spreadValues$
|
7351
|
+
var __defProp$g = Object.defineProperty;
|
7352
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
7353
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
7354
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
7355
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7356
|
+
var __spreadValues$g = (a, b) => {
|
7359
7357
|
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$
|
7358
|
+
if (__hasOwnProp$g.call(b, prop))
|
7359
|
+
__defNormalProp$g(a, prop, b[prop]);
|
7360
|
+
if (__getOwnPropSymbols$g)
|
7361
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
7362
|
+
if (__propIsEnum$g.call(b, prop))
|
7363
|
+
__defNormalProp$g(a, prop, b[prop]);
|
7366
7364
|
}
|
7367
7365
|
return a;
|
7368
7366
|
};
|
7369
7367
|
class QueryVariable extends MultiValueVariable {
|
7370
7368
|
constructor(initialState) {
|
7371
|
-
super(__spreadValues$
|
7369
|
+
super(__spreadValues$g({
|
7372
7370
|
type: "query",
|
7373
7371
|
name: "",
|
7374
7372
|
value: "",
|
@@ -7521,25 +7519,25 @@ function queryMetricTree(query) {
|
|
7521
7519
|
return queryTree(children, query.split("."), 0);
|
7522
7520
|
}
|
7523
7521
|
|
7524
|
-
var __defProp$
|
7525
|
-
var __getOwnPropSymbols$
|
7526
|
-
var __hasOwnProp$
|
7527
|
-
var __propIsEnum$
|
7528
|
-
var __defNormalProp$
|
7529
|
-
var __spreadValues$
|
7522
|
+
var __defProp$f = Object.defineProperty;
|
7523
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
7524
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
7525
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
7526
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7527
|
+
var __spreadValues$f = (a, b) => {
|
7530
7528
|
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$
|
7529
|
+
if (__hasOwnProp$f.call(b, prop))
|
7530
|
+
__defNormalProp$f(a, prop, b[prop]);
|
7531
|
+
if (__getOwnPropSymbols$f)
|
7532
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
7533
|
+
if (__propIsEnum$f.call(b, prop))
|
7534
|
+
__defNormalProp$f(a, prop, b[prop]);
|
7537
7535
|
}
|
7538
7536
|
return a;
|
7539
7537
|
};
|
7540
7538
|
class TestVariable extends MultiValueVariable {
|
7541
7539
|
constructor(initialState, isLazy = false) {
|
7542
|
-
super(__spreadValues$
|
7540
|
+
super(__spreadValues$f({
|
7543
7541
|
type: "custom",
|
7544
7542
|
name: "Test",
|
7545
7543
|
value: "Value",
|
@@ -7648,25 +7646,25 @@ function VariableValueInput({ model }) {
|
|
7648
7646
|
});
|
7649
7647
|
}
|
7650
7648
|
|
7651
|
-
var __defProp$
|
7652
|
-
var __getOwnPropSymbols$
|
7653
|
-
var __hasOwnProp$
|
7654
|
-
var __propIsEnum$
|
7655
|
-
var __defNormalProp$
|
7656
|
-
var __spreadValues$
|
7649
|
+
var __defProp$e = Object.defineProperty;
|
7650
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
7651
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
7652
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
7653
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7654
|
+
var __spreadValues$e = (a, b) => {
|
7657
7655
|
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$
|
7656
|
+
if (__hasOwnProp$e.call(b, prop))
|
7657
|
+
__defNormalProp$e(a, prop, b[prop]);
|
7658
|
+
if (__getOwnPropSymbols$e)
|
7659
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
7660
|
+
if (__propIsEnum$e.call(b, prop))
|
7661
|
+
__defNormalProp$e(a, prop, b[prop]);
|
7664
7662
|
}
|
7665
7663
|
return a;
|
7666
7664
|
};
|
7667
7665
|
class TextBoxVariable extends SceneObjectBase {
|
7668
7666
|
constructor(initialState) {
|
7669
|
-
super(__spreadValues$
|
7667
|
+
super(__spreadValues$e({
|
7670
7668
|
type: "textbox",
|
7671
7669
|
value: "",
|
7672
7670
|
name: ""
|
@@ -7703,28 +7701,28 @@ TextBoxVariable.Component = ({ model }) => {
|
|
7703
7701
|
});
|
7704
7702
|
};
|
7705
7703
|
|
7706
|
-
var __defProp$
|
7707
|
-
var __defProps$
|
7708
|
-
var __getOwnPropDescs$
|
7709
|
-
var __getOwnPropSymbols$
|
7710
|
-
var __hasOwnProp$
|
7711
|
-
var __propIsEnum$
|
7712
|
-
var __defNormalProp$
|
7713
|
-
var __spreadValues$
|
7704
|
+
var __defProp$d = Object.defineProperty;
|
7705
|
+
var __defProps$8 = Object.defineProperties;
|
7706
|
+
var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
|
7707
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
7708
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
7709
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
7710
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7711
|
+
var __spreadValues$d = (a, b) => {
|
7714
7712
|
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$
|
7713
|
+
if (__hasOwnProp$d.call(b, prop))
|
7714
|
+
__defNormalProp$d(a, prop, b[prop]);
|
7715
|
+
if (__getOwnPropSymbols$d)
|
7716
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
7717
|
+
if (__propIsEnum$d.call(b, prop))
|
7718
|
+
__defNormalProp$d(a, prop, b[prop]);
|
7721
7719
|
}
|
7722
7720
|
return a;
|
7723
7721
|
};
|
7724
|
-
var __spreadProps$
|
7722
|
+
var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
|
7725
7723
|
class LocalValueVariable extends SceneObjectBase {
|
7726
7724
|
constructor(initialState) {
|
7727
|
-
super(__spreadProps$
|
7725
|
+
super(__spreadProps$8(__spreadValues$d({
|
7728
7726
|
type: "system",
|
7729
7727
|
value: "",
|
7730
7728
|
text: "",
|
@@ -7756,25 +7754,25 @@ class LocalValueVariable extends SceneObjectBase {
|
|
7756
7754
|
}
|
7757
7755
|
}
|
7758
7756
|
|
7759
|
-
var __defProp$
|
7760
|
-
var __getOwnPropSymbols$
|
7761
|
-
var __hasOwnProp$
|
7762
|
-
var __propIsEnum$
|
7763
|
-
var __defNormalProp$
|
7764
|
-
var __spreadValues$
|
7757
|
+
var __defProp$c = Object.defineProperty;
|
7758
|
+
var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
|
7759
|
+
var __hasOwnProp$c = Object.prototype.hasOwnProperty;
|
7760
|
+
var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
|
7761
|
+
var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7762
|
+
var __spreadValues$c = (a, b) => {
|
7765
7763
|
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$
|
7764
|
+
if (__hasOwnProp$c.call(b, prop))
|
7765
|
+
__defNormalProp$c(a, prop, b[prop]);
|
7766
|
+
if (__getOwnPropSymbols$c)
|
7767
|
+
for (var prop of __getOwnPropSymbols$c(b)) {
|
7768
|
+
if (__propIsEnum$c.call(b, prop))
|
7769
|
+
__defNormalProp$c(a, prop, b[prop]);
|
7772
7770
|
}
|
7773
7771
|
return a;
|
7774
7772
|
};
|
7775
7773
|
class IntervalVariable extends SceneObjectBase {
|
7776
7774
|
constructor(initialState) {
|
7777
|
-
super(__spreadValues$
|
7775
|
+
super(__spreadValues$c({
|
7778
7776
|
type: "interval",
|
7779
7777
|
value: "",
|
7780
7778
|
intervals: ["1m", "10m", "30m", "1h", "6h", "12h", "1d", "7d", "14d", "30d"],
|
@@ -7860,450 +7858,6 @@ IntervalVariable.Component = ({ model }) => {
|
|
7860
7858
|
});
|
7861
7859
|
};
|
7862
7860
|
|
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
|
-
onKeyDownCapture: (e) => {
|
8192
|
-
e.stopPropagation();
|
8193
|
-
if (e.key === "Enter") {
|
8194
|
-
model._removeFilter(filter);
|
8195
|
-
}
|
8196
|
-
},
|
8197
|
-
name: "times",
|
8198
|
-
size: "md",
|
8199
|
-
className: styles.removeButton,
|
8200
|
-
tooltip: "Remove filter"
|
8201
|
-
}));
|
8202
|
-
}
|
8203
|
-
return /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
|
8204
|
-
filter,
|
8205
|
-
model,
|
8206
|
-
handleChangeViewMode
|
8207
|
-
});
|
8208
|
-
}
|
8209
|
-
const getStyles3 = (theme) => ({
|
8210
|
-
wrapper: css.css({
|
8211
|
-
display: "flex",
|
8212
|
-
flexWrap: "wrap",
|
8213
|
-
alignItems: "center",
|
8214
|
-
columnGap: theme.spacing(1),
|
8215
|
-
rowGap: theme.spacing(1),
|
8216
|
-
minHeight: theme.spacing(4),
|
8217
|
-
backgroundColor: theme.components.input.background,
|
8218
|
-
border: `1px solid ${theme.colors.border.strong}`,
|
8219
|
-
borderRadius: theme.shape.radius.default,
|
8220
|
-
paddingInline: theme.spacing(1),
|
8221
|
-
"&:focus-within": {
|
8222
|
-
outline: "2px dotted transparent",
|
8223
|
-
outlineOffset: "2px",
|
8224
|
-
boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
|
8225
|
-
transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
|
8226
|
-
transitionDuration: "0.2s",
|
8227
|
-
transitionProperty: "outline, outline-offset, box-shadow"
|
8228
|
-
}
|
8229
|
-
}),
|
8230
|
-
combinedFilterPill: css.css(__spreadProps$8(__spreadValues$c({
|
8231
|
-
display: "flex",
|
8232
|
-
alignItems: "center",
|
8233
|
-
background: theme.colors.action.selected,
|
8234
|
-
borderRadius: theme.shape.radius.default,
|
8235
|
-
border: `1px solid ${theme.colors.border.weak}`,
|
8236
|
-
padding: theme.spacing(0.125, 0, 0.125, 1),
|
8237
|
-
color: theme.colors.text.primary,
|
8238
|
-
overflow: "hidden",
|
8239
|
-
whiteSpace: "nowrap",
|
8240
|
-
minHeight: "22px"
|
8241
|
-
}, theme.typography.bodySmall), {
|
8242
|
-
fontWeight: theme.typography.fontWeightBold,
|
8243
|
-
cursor: "pointer",
|
8244
|
-
"&:hover": {
|
8245
|
-
background: theme.colors.emphasize(theme.colors.background.secondary)
|
8246
|
-
}
|
8247
|
-
})),
|
8248
|
-
removeButton: css.css({
|
8249
|
-
marginInline: theme.spacing(0.5),
|
8250
|
-
cursor: "pointer",
|
8251
|
-
"&:hover": {
|
8252
|
-
color: theme.colors.text.primary
|
8253
|
-
}
|
8254
|
-
})
|
8255
|
-
});
|
8256
|
-
|
8257
|
-
class AdHocFiltersVariableV2 extends AdHocFiltersVariable {
|
8258
|
-
}
|
8259
|
-
AdHocFiltersVariableV2.Component = AdHocFiltersVariableRendererV2;
|
8260
|
-
function AdHocFiltersVariableRendererV2({ model }) {
|
8261
|
-
const { filters } = model.useState();
|
8262
|
-
const styles = ui.useStyles2(getStyles2);
|
8263
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
8264
|
-
className: styles.wrapper
|
8265
|
-
}, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
|
8266
|
-
name: "filter",
|
8267
|
-
className: styles.filterIcon,
|
8268
|
-
size: "lg"
|
8269
|
-
}), filters.map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFilterEditSwitch, {
|
8270
|
-
key: index,
|
8271
|
-
filter,
|
8272
|
-
model
|
8273
|
-
})), /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
|
8274
|
-
model,
|
8275
|
-
wip: true
|
8276
|
-
}));
|
8277
|
-
}
|
8278
|
-
const getStyles2 = (theme) => ({
|
8279
|
-
wrapper: css.css({
|
8280
|
-
display: "flex",
|
8281
|
-
flexWrap: "wrap",
|
8282
|
-
alignItems: "center",
|
8283
|
-
columnGap: theme.spacing(1),
|
8284
|
-
rowGap: theme.spacing(0.5),
|
8285
|
-
minHeight: theme.spacing(4),
|
8286
|
-
backgroundColor: theme.components.input.background,
|
8287
|
-
border: `1px solid ${theme.colors.border.strong}`,
|
8288
|
-
borderRadius: theme.shape.radius.default,
|
8289
|
-
paddingInline: theme.spacing(1),
|
8290
|
-
paddingBlock: theme.spacing(0.5),
|
8291
|
-
flexGrow: 1,
|
8292
|
-
"&:focus-within": {
|
8293
|
-
outline: "2px dotted transparent",
|
8294
|
-
outlineOffset: "2px",
|
8295
|
-
boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
|
8296
|
-
transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
|
8297
|
-
transitionDuration: "0.2s",
|
8298
|
-
transitionProperty: "outline, outline-offset, box-shadow"
|
8299
|
-
}
|
8300
|
-
}),
|
8301
|
-
filterIcon: css.css({
|
8302
|
-
color: theme.colors.text.secondary,
|
8303
|
-
alignSelf: "center"
|
8304
|
-
})
|
8305
|
-
});
|
8306
|
-
|
8307
7861
|
var __accessCheck = (obj, member, msg) => {
|
8308
7862
|
if (!member.has(obj))
|
8309
7863
|
throw TypeError("Cannot " + msg);
|
@@ -9184,6 +8738,9 @@ class SceneGridRow extends SceneObjectBase {
|
|
9184
8738
|
height: 1,
|
9185
8739
|
width: GRID_COLUMN_COUNT
|
9186
8740
|
}));
|
8741
|
+
this._variableDependency = new VariableDependencyConfig(this, {
|
8742
|
+
statePaths: ["title"]
|
8743
|
+
});
|
9187
8744
|
this.onCollapseToggle = () => {
|
9188
8745
|
if (!this.state.isCollapsible) {
|
9189
8746
|
return;
|
@@ -11983,7 +11540,6 @@ const sceneUtils = {
|
|
11983
11540
|
};
|
11984
11541
|
|
11985
11542
|
exports.AdHocFiltersVariable = AdHocFiltersVariable;
|
11986
|
-
exports.AdHocFiltersVariableV2 = AdHocFiltersVariableV2;
|
11987
11543
|
exports.ConstantVariable = ConstantVariable;
|
11988
11544
|
exports.CustomVariable = CustomVariable;
|
11989
11545
|
exports.DataSourceVariable = DataSourceVariable;
|