@grafana/scenes 5.3.9--canary.827.9887483180.0 → 5.3.9--canary.830.9908208124.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/index.js +2 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocCombobox.js +374 -0
- package/dist/esm/variables/adhoc/AdHocCombobox.js.map +1 -0
- package/dist/esm/variables/adhoc/AdHocFiltersVariableV2.js +58 -0
- package/dist/esm/variables/adhoc/AdHocFiltersVariableV2.js.map +1 -0
- package/dist/esm/variables/sets/SceneVariableSet.js +1 -8
- package/dist/esm/variables/sets/SceneVariableSet.js.map +1 -1
- package/dist/esm/variables/types.js +1 -4
- package/dist/esm/variables/types.js.map +1 -1
- package/dist/esm/variables/variants/MultiValueVariable.js +1 -4
- package/dist/esm/variables/variants/MultiValueVariable.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1001 -596
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.js
CHANGED
@@ -16,6 +16,8 @@ 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');
|
19
21
|
var ReactGridLayout = require('react-grid-layout');
|
20
22
|
var AutoSizer = require('react-virtualized-auto-sizer');
|
21
23
|
var BarChartPanelCfg_types_gen = require('@grafana/schema/dist/esm/raw/composable/barchart/panelcfg/x/BarChartPanelCfg_types.gen');
|
@@ -41,19 +43,19 @@ var uFuzzy__default = /*#__PURE__*/_interopDefaultLegacy(uFuzzy);
|
|
41
43
|
var ReactGridLayout__default = /*#__PURE__*/_interopDefaultLegacy(ReactGridLayout);
|
42
44
|
var AutoSizer__default = /*#__PURE__*/_interopDefaultLegacy(AutoSizer);
|
43
45
|
|
44
|
-
var __defProp$
|
45
|
-
var __getOwnPropSymbols$
|
46
|
-
var __hasOwnProp$
|
47
|
-
var __propIsEnum$
|
48
|
-
var __defNormalProp$
|
49
|
-
var __spreadValues$
|
46
|
+
var __defProp$L = Object.defineProperty;
|
47
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
48
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
49
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
50
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
51
|
+
var __spreadValues$L = (a, b) => {
|
50
52
|
for (var prop in b || (b = {}))
|
51
|
-
if (__hasOwnProp$
|
52
|
-
__defNormalProp$
|
53
|
-
if (__getOwnPropSymbols$
|
54
|
-
for (var prop of __getOwnPropSymbols$
|
55
|
-
if (__propIsEnum$
|
56
|
-
__defNormalProp$
|
53
|
+
if (__hasOwnProp$L.call(b, prop))
|
54
|
+
__defNormalProp$L(a, prop, b[prop]);
|
55
|
+
if (__getOwnPropSymbols$L)
|
56
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
57
|
+
if (__propIsEnum$L.call(b, prop))
|
58
|
+
__defNormalProp$L(a, prop, b[prop]);
|
57
59
|
}
|
58
60
|
return a;
|
59
61
|
};
|
@@ -62,7 +64,7 @@ function useAppQueryParams() {
|
|
62
64
|
return runtime.locationSearchToObject(location.search || "");
|
63
65
|
}
|
64
66
|
function getUrlWithAppState(path, preserveParams) {
|
65
|
-
const paramsCopy = __spreadValues$
|
67
|
+
const paramsCopy = __spreadValues$L({}, runtime.locationService.getSearchObject());
|
66
68
|
if (preserveParams) {
|
67
69
|
for (const key of Object.keys(paramsCopy)) {
|
68
70
|
if (!preserveParams.includes(key)) {
|
@@ -76,31 +78,31 @@ function renderSceneComponentWithRouteProps(sceneObject, routeProps) {
|
|
76
78
|
return React__default["default"].createElement(sceneObject.Component, { model: sceneObject, routeProps });
|
77
79
|
}
|
78
80
|
|
79
|
-
var __defProp$
|
80
|
-
var __defProps$
|
81
|
-
var __getOwnPropDescs$
|
82
|
-
var __getOwnPropSymbols$
|
83
|
-
var __hasOwnProp$
|
84
|
-
var __propIsEnum$
|
85
|
-
var __defNormalProp$
|
86
|
-
var __spreadValues$
|
81
|
+
var __defProp$K = Object.defineProperty;
|
82
|
+
var __defProps$u = Object.defineProperties;
|
83
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
84
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
85
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
86
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
87
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
88
|
+
var __spreadValues$K = (a, b) => {
|
87
89
|
for (var prop in b || (b = {}))
|
88
|
-
if (__hasOwnProp$
|
89
|
-
__defNormalProp$
|
90
|
-
if (__getOwnPropSymbols$
|
91
|
-
for (var prop of __getOwnPropSymbols$
|
92
|
-
if (__propIsEnum$
|
93
|
-
__defNormalProp$
|
90
|
+
if (__hasOwnProp$K.call(b, prop))
|
91
|
+
__defNormalProp$K(a, prop, b[prop]);
|
92
|
+
if (__getOwnPropSymbols$K)
|
93
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
94
|
+
if (__propIsEnum$K.call(b, prop))
|
95
|
+
__defNormalProp$K(a, prop, b[prop]);
|
94
96
|
}
|
95
97
|
return a;
|
96
98
|
};
|
97
|
-
var __spreadProps$
|
99
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
98
100
|
const runtimePanelPlugins = /* @__PURE__ */ new Map();
|
99
101
|
function registerRuntimePanelPlugin({ pluginId, plugin }) {
|
100
102
|
if (runtimePanelPlugins.has(pluginId)) {
|
101
103
|
throw new Error(`A runtime panel plugin with id ${pluginId} has already been registered`);
|
102
104
|
}
|
103
|
-
plugin.meta = __spreadProps$
|
105
|
+
plugin.meta = __spreadProps$u(__spreadValues$K({}, plugin.meta), {
|
104
106
|
id: pluginId,
|
105
107
|
name: pluginId,
|
106
108
|
module: "runtime plugin",
|
@@ -128,39 +130,39 @@ function loadPanelPluginSync(pluginId) {
|
|
128
130
|
return (_a = getPanelPluginFromCache(pluginId)) != null ? _a : runtimePanelPlugins.get(pluginId);
|
129
131
|
}
|
130
132
|
|
131
|
-
var __defProp$
|
132
|
-
var __defProps$
|
133
|
-
var __getOwnPropDescs$
|
134
|
-
var __getOwnPropSymbols$
|
135
|
-
var __hasOwnProp$
|
136
|
-
var __propIsEnum$
|
137
|
-
var __defNormalProp$
|
138
|
-
var __spreadValues$
|
133
|
+
var __defProp$J = Object.defineProperty;
|
134
|
+
var __defProps$t = Object.defineProperties;
|
135
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
136
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
137
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
138
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
139
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
140
|
+
var __spreadValues$J = (a, b) => {
|
139
141
|
for (var prop in b || (b = {}))
|
140
|
-
if (__hasOwnProp$
|
141
|
-
__defNormalProp$
|
142
|
-
if (__getOwnPropSymbols$
|
143
|
-
for (var prop of __getOwnPropSymbols$
|
144
|
-
if (__propIsEnum$
|
145
|
-
__defNormalProp$
|
142
|
+
if (__hasOwnProp$J.call(b, prop))
|
143
|
+
__defNormalProp$J(a, prop, b[prop]);
|
144
|
+
if (__getOwnPropSymbols$J)
|
145
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
146
|
+
if (__propIsEnum$J.call(b, prop))
|
147
|
+
__defNormalProp$J(a, prop, b[prop]);
|
146
148
|
}
|
147
149
|
return a;
|
148
150
|
};
|
149
|
-
var __spreadProps$
|
150
|
-
var __objRest$
|
151
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
152
|
+
var __objRest$5 = (source, exclude) => {
|
151
153
|
var target = {};
|
152
154
|
for (var prop in source)
|
153
|
-
if (__hasOwnProp$
|
155
|
+
if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
|
154
156
|
target[prop] = source[prop];
|
155
|
-
if (source != null && __getOwnPropSymbols$
|
156
|
-
for (var prop of __getOwnPropSymbols$
|
157
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
157
|
+
if (source != null && __getOwnPropSymbols$J)
|
158
|
+
for (var prop of __getOwnPropSymbols$J(source)) {
|
159
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$J.call(source, prop))
|
158
160
|
target[prop] = source[prop];
|
159
161
|
}
|
160
162
|
return target;
|
161
163
|
};
|
162
164
|
function SceneComponentWrapperWithoutMemo(_a) {
|
163
|
-
var _b = _a, { model } = _b, otherProps = __objRest$
|
165
|
+
var _b = _a, { model } = _b, otherProps = __objRest$5(_b, ["model"]);
|
164
166
|
var _a2;
|
165
167
|
const Component = (_a2 = model.constructor["Component"]) != null ? _a2 : EmptyRenderer;
|
166
168
|
const [_, setValue] = React.useState(0);
|
@@ -172,7 +174,7 @@ function SceneComponentWrapperWithoutMemo(_a) {
|
|
172
174
|
if (!model.isActive) {
|
173
175
|
return null;
|
174
176
|
}
|
175
|
-
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$
|
177
|
+
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$t(__spreadValues$J({}, otherProps), {
|
176
178
|
model
|
177
179
|
}));
|
178
180
|
}
|
@@ -218,19 +220,19 @@ class SceneObjectRef {
|
|
218
220
|
}
|
219
221
|
_ref = new WeakMap();
|
220
222
|
|
221
|
-
var __defProp$
|
222
|
-
var __getOwnPropSymbols$
|
223
|
-
var __hasOwnProp$
|
224
|
-
var __propIsEnum$
|
225
|
-
var __defNormalProp$
|
226
|
-
var __spreadValues$
|
223
|
+
var __defProp$I = Object.defineProperty;
|
224
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
225
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
226
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
227
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
228
|
+
var __spreadValues$I = (a, b) => {
|
227
229
|
for (var prop in b || (b = {}))
|
228
|
-
if (__hasOwnProp$
|
229
|
-
__defNormalProp$
|
230
|
-
if (__getOwnPropSymbols$
|
231
|
-
for (var prop of __getOwnPropSymbols$
|
232
|
-
if (__propIsEnum$
|
233
|
-
__defNormalProp$
|
230
|
+
if (__hasOwnProp$I.call(b, prop))
|
231
|
+
__defNormalProp$I(a, prop, b[prop]);
|
232
|
+
if (__getOwnPropSymbols$I)
|
233
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
234
|
+
if (__propIsEnum$I.call(b, prop))
|
235
|
+
__defNormalProp$I(a, prop, b[prop]);
|
234
236
|
}
|
235
237
|
return a;
|
236
238
|
};
|
@@ -290,7 +292,7 @@ class SceneObjectBase {
|
|
290
292
|
}
|
291
293
|
setState(update) {
|
292
294
|
const prevState = this._state;
|
293
|
-
const newState = __spreadValues$
|
295
|
+
const newState = __spreadValues$I(__spreadValues$I({}, this._state), update);
|
294
296
|
this._state = Object.freeze(newState);
|
295
297
|
this._setParent(update);
|
296
298
|
this._handleActivationOfChangedStateProps(prevState, newState);
|
@@ -486,19 +488,19 @@ function forEachChild(state, callback) {
|
|
486
488
|
}
|
487
489
|
}
|
488
490
|
|
489
|
-
var __defProp$
|
490
|
-
var __getOwnPropSymbols$
|
491
|
-
var __hasOwnProp$
|
492
|
-
var __propIsEnum$
|
493
|
-
var __defNormalProp$
|
494
|
-
var __spreadValues$
|
491
|
+
var __defProp$H = Object.defineProperty;
|
492
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
493
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
494
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
495
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
496
|
+
var __spreadValues$H = (a, b) => {
|
495
497
|
for (var prop in b || (b = {}))
|
496
|
-
if (__hasOwnProp$
|
497
|
-
__defNormalProp$
|
498
|
-
if (__getOwnPropSymbols$
|
499
|
-
for (var prop of __getOwnPropSymbols$
|
500
|
-
if (__propIsEnum$
|
501
|
-
__defNormalProp$
|
498
|
+
if (__hasOwnProp$H.call(b, prop))
|
499
|
+
__defNormalProp$H(a, prop, b[prop]);
|
500
|
+
if (__getOwnPropSymbols$H)
|
501
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
502
|
+
if (__propIsEnum$H.call(b, prop))
|
503
|
+
__defNormalProp$H(a, prop, b[prop]);
|
502
504
|
}
|
503
505
|
return a;
|
504
506
|
};
|
@@ -507,7 +509,7 @@ function cloneSceneObject(sceneObject, withState) {
|
|
507
509
|
return new sceneObject.constructor(clonedState);
|
508
510
|
}
|
509
511
|
function cloneSceneObjectState(sceneState, withState) {
|
510
|
-
const clonedState = __spreadValues$
|
512
|
+
const clonedState = __spreadValues$H({}, sceneState);
|
511
513
|
for (const key in clonedState) {
|
512
514
|
const propValue = clonedState[key];
|
513
515
|
if (propValue instanceof SceneObjectBase) {
|
@@ -604,25 +606,25 @@ function lookupVariable(name, sceneObject) {
|
|
604
606
|
return null;
|
605
607
|
}
|
606
608
|
|
607
|
-
var __defProp$
|
608
|
-
var __getOwnPropSymbols$
|
609
|
-
var __hasOwnProp$
|
610
|
-
var __propIsEnum$
|
611
|
-
var __defNormalProp$
|
612
|
-
var __spreadValues$
|
609
|
+
var __defProp$G = Object.defineProperty;
|
610
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
611
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
612
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
613
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
614
|
+
var __spreadValues$G = (a, b) => {
|
613
615
|
for (var prop in b || (b = {}))
|
614
|
-
if (__hasOwnProp$
|
615
|
-
__defNormalProp$
|
616
|
-
if (__getOwnPropSymbols$
|
617
|
-
for (var prop of __getOwnPropSymbols$
|
618
|
-
if (__propIsEnum$
|
619
|
-
__defNormalProp$
|
616
|
+
if (__hasOwnProp$G.call(b, prop))
|
617
|
+
__defNormalProp$G(a, prop, b[prop]);
|
618
|
+
if (__getOwnPropSymbols$G)
|
619
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
620
|
+
if (__propIsEnum$G.call(b, prop))
|
621
|
+
__defNormalProp$G(a, prop, b[prop]);
|
620
622
|
}
|
621
623
|
return a;
|
622
624
|
};
|
623
625
|
class SceneDataNode extends SceneObjectBase {
|
624
626
|
constructor(state) {
|
625
|
-
super(__spreadValues$
|
627
|
+
super(__spreadValues$G({
|
626
628
|
data: emptyPanelData
|
627
629
|
}, state));
|
628
630
|
}
|
@@ -703,19 +705,19 @@ function evaluateTimeRange(from, to, timeZone, fiscalYearStartMonth, delay) {
|
|
703
705
|
};
|
704
706
|
}
|
705
707
|
|
706
|
-
var __defProp$
|
707
|
-
var __getOwnPropSymbols$
|
708
|
-
var __hasOwnProp$
|
709
|
-
var __propIsEnum$
|
710
|
-
var __defNormalProp$
|
711
|
-
var __spreadValues$
|
708
|
+
var __defProp$F = Object.defineProperty;
|
709
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
710
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
711
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
712
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
713
|
+
var __spreadValues$F = (a, b) => {
|
712
714
|
for (var prop in b || (b = {}))
|
713
|
-
if (__hasOwnProp$
|
714
|
-
__defNormalProp$
|
715
|
-
if (__getOwnPropSymbols$
|
716
|
-
for (var prop of __getOwnPropSymbols$
|
717
|
-
if (__propIsEnum$
|
718
|
-
__defNormalProp$
|
715
|
+
if (__hasOwnProp$F.call(b, prop))
|
716
|
+
__defNormalProp$F(a, prop, b[prop]);
|
717
|
+
if (__getOwnPropSymbols$F)
|
718
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
719
|
+
if (__propIsEnum$F.call(b, prop))
|
720
|
+
__defNormalProp$F(a, prop, b[prop]);
|
719
721
|
}
|
720
722
|
return a;
|
721
723
|
};
|
@@ -732,7 +734,7 @@ class SceneTimeRange extends SceneObjectBase {
|
|
732
734
|
state.fiscalYearStartMonth,
|
733
735
|
state.UNSAFE_nowDelay
|
734
736
|
);
|
735
|
-
super(__spreadValues$
|
737
|
+
super(__spreadValues$F({ from, to, timeZone, value }, state));
|
736
738
|
this._urlSync = new SceneObjectUrlSyncConfig(this, { keys: ["from", "to", "timezone"] });
|
737
739
|
this.onTimeRangeChange = (timeRange) => {
|
738
740
|
const update = {};
|
@@ -891,9 +893,6 @@ function getTimeRange(sceneObject) {
|
|
891
893
|
class SceneVariableValueChangedEvent extends data.BusEventWithPayload {
|
892
894
|
}
|
893
895
|
SceneVariableValueChangedEvent.type = "scene-variable-changed-value";
|
894
|
-
class SceneVariableOptionsRefreshEvent extends data.BusEventWithPayload {
|
895
|
-
}
|
896
|
-
SceneVariableOptionsRefreshEvent.type = "scene-variable-options-refresh";
|
897
896
|
function isCustomVariableValue(value) {
|
898
897
|
return typeof value === "object" && "formatter" in value;
|
899
898
|
}
|
@@ -1365,25 +1364,25 @@ function collectAllVariables(sceneObject, record = {}) {
|
|
1365
1364
|
return record;
|
1366
1365
|
}
|
1367
1366
|
|
1368
|
-
var __defProp$
|
1369
|
-
var __defProps$
|
1370
|
-
var __getOwnPropDescs$
|
1371
|
-
var __getOwnPropSymbols$
|
1372
|
-
var __hasOwnProp$
|
1373
|
-
var __propIsEnum$
|
1374
|
-
var __defNormalProp$
|
1375
|
-
var __spreadValues$
|
1367
|
+
var __defProp$E = Object.defineProperty;
|
1368
|
+
var __defProps$s = Object.defineProperties;
|
1369
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
1370
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
1371
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
1372
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
1373
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
1374
|
+
var __spreadValues$E = (a, b) => {
|
1376
1375
|
for (var prop in b || (b = {}))
|
1377
|
-
if (__hasOwnProp$
|
1378
|
-
__defNormalProp$
|
1379
|
-
if (__getOwnPropSymbols$
|
1380
|
-
for (var prop of __getOwnPropSymbols$
|
1381
|
-
if (__propIsEnum$
|
1382
|
-
__defNormalProp$
|
1376
|
+
if (__hasOwnProp$E.call(b, prop))
|
1377
|
+
__defNormalProp$E(a, prop, b[prop]);
|
1378
|
+
if (__getOwnPropSymbols$E)
|
1379
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
1380
|
+
if (__propIsEnum$E.call(b, prop))
|
1381
|
+
__defNormalProp$E(a, prop, b[prop]);
|
1383
1382
|
}
|
1384
1383
|
return a;
|
1385
1384
|
};
|
1386
|
-
var __spreadProps$
|
1385
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
1387
1386
|
function getTemplateProxyForField(field, frame, frames) {
|
1388
1387
|
return new Proxy(
|
1389
1388
|
{},
|
@@ -1399,7 +1398,7 @@ function getTemplateProxyForField(field, frame, frames) {
|
|
1399
1398
|
if (!field.labels) {
|
1400
1399
|
return "";
|
1401
1400
|
}
|
1402
|
-
return __spreadProps$
|
1401
|
+
return __spreadProps$s(__spreadValues$E({}, field.labels), {
|
1403
1402
|
__values: Object.values(field.labels).sort().join(", "),
|
1404
1403
|
toString: () => {
|
1405
1404
|
return data.formatLabels(field.labels, "", true);
|
@@ -2284,25 +2283,25 @@ function isExtraQueryProvider(obj) {
|
|
2284
2283
|
return typeof obj === "object" && "getExtraQueries" in obj;
|
2285
2284
|
}
|
2286
2285
|
|
2287
|
-
var __defProp$
|
2288
|
-
var __defProps$
|
2289
|
-
var __getOwnPropDescs$
|
2290
|
-
var __getOwnPropSymbols$
|
2291
|
-
var __hasOwnProp$
|
2292
|
-
var __propIsEnum$
|
2293
|
-
var __defNormalProp$
|
2294
|
-
var __spreadValues$
|
2286
|
+
var __defProp$D = Object.defineProperty;
|
2287
|
+
var __defProps$r = Object.defineProperties;
|
2288
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
2289
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
2290
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
2291
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
2292
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2293
|
+
var __spreadValues$D = (a, b) => {
|
2295
2294
|
for (var prop in b || (b = {}))
|
2296
|
-
if (__hasOwnProp$
|
2297
|
-
__defNormalProp$
|
2298
|
-
if (__getOwnPropSymbols$
|
2299
|
-
for (var prop of __getOwnPropSymbols$
|
2300
|
-
if (__propIsEnum$
|
2301
|
-
__defNormalProp$
|
2295
|
+
if (__hasOwnProp$D.call(b, prop))
|
2296
|
+
__defNormalProp$D(a, prop, b[prop]);
|
2297
|
+
if (__getOwnPropSymbols$D)
|
2298
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
2299
|
+
if (__propIsEnum$D.call(b, prop))
|
2300
|
+
__defNormalProp$D(a, prop, b[prop]);
|
2302
2301
|
}
|
2303
2302
|
return a;
|
2304
2303
|
};
|
2305
|
-
var __spreadProps$
|
2304
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
2306
2305
|
const passthroughProcessor = (_, secondary) => rxjs.of(secondary);
|
2307
2306
|
const extraQueryProcessingOperator = (processors) => (data) => {
|
2308
2307
|
return data.pipe(
|
@@ -2315,7 +2314,7 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2315
2314
|
}),
|
2316
2315
|
rxjs.map(([primary, ...processedSecondaries]) => {
|
2317
2316
|
var _a;
|
2318
|
-
return __spreadProps$
|
2317
|
+
return __spreadProps$r(__spreadValues$D({}, primary), {
|
2319
2318
|
series: [...primary.series, ...processedSecondaries.flatMap((s) => s.series)],
|
2320
2319
|
annotations: [...(_a = primary.annotations) != null ? _a : [], ...processedSecondaries.flatMap((s) => {
|
2321
2320
|
var _a2;
|
@@ -2326,25 +2325,25 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2326
2325
|
);
|
2327
2326
|
};
|
2328
2327
|
|
2329
|
-
var __defProp$
|
2330
|
-
var __defProps$
|
2331
|
-
var __getOwnPropDescs$
|
2332
|
-
var __getOwnPropSymbols$
|
2333
|
-
var __hasOwnProp$
|
2334
|
-
var __propIsEnum$
|
2335
|
-
var __defNormalProp$
|
2336
|
-
var __spreadValues$
|
2328
|
+
var __defProp$C = Object.defineProperty;
|
2329
|
+
var __defProps$q = Object.defineProperties;
|
2330
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
2331
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
2332
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
2333
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
2334
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2335
|
+
var __spreadValues$C = (a, b) => {
|
2337
2336
|
for (var prop in b || (b = {}))
|
2338
|
-
if (__hasOwnProp$
|
2339
|
-
__defNormalProp$
|
2340
|
-
if (__getOwnPropSymbols$
|
2341
|
-
for (var prop of __getOwnPropSymbols$
|
2342
|
-
if (__propIsEnum$
|
2343
|
-
__defNormalProp$
|
2337
|
+
if (__hasOwnProp$C.call(b, prop))
|
2338
|
+
__defNormalProp$C(a, prop, b[prop]);
|
2339
|
+
if (__getOwnPropSymbols$C)
|
2340
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
2341
|
+
if (__propIsEnum$C.call(b, prop))
|
2342
|
+
__defNormalProp$C(a, prop, b[prop]);
|
2344
2343
|
}
|
2345
2344
|
return a;
|
2346
2345
|
};
|
2347
|
-
var __spreadProps$
|
2346
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
2348
2347
|
function filterAnnotations(data, filters) {
|
2349
2348
|
var _a;
|
2350
2349
|
if (!Array.isArray(data) || data.length === 0) {
|
@@ -2395,11 +2394,11 @@ function filterAnnotations(data, filters) {
|
|
2395
2394
|
continue;
|
2396
2395
|
}
|
2397
2396
|
}
|
2398
|
-
fields.push(__spreadProps$
|
2397
|
+
fields.push(__spreadProps$q(__spreadValues$C({}, field), {
|
2399
2398
|
values: buffer
|
2400
2399
|
}));
|
2401
2400
|
}
|
2402
|
-
processed.push(__spreadProps$
|
2401
|
+
processed.push(__spreadProps$q(__spreadValues$C({}, frame), {
|
2403
2402
|
fields,
|
2404
2403
|
length: frameLength
|
2405
2404
|
}));
|
@@ -2702,9 +2701,6 @@ class MultiValueVariable extends SceneObjectBase {
|
|
2702
2701
|
}
|
2703
2702
|
return options;
|
2704
2703
|
}
|
2705
|
-
refreshOptions() {
|
2706
|
-
this.publishEvent(new SceneVariableOptionsRefreshEvent(this), true);
|
2707
|
-
}
|
2708
2704
|
}
|
2709
2705
|
function findOptionMatchingCurrent(currentValue, currentText, options) {
|
2710
2706
|
let textMatch;
|
@@ -2828,33 +2824,33 @@ function getOptionSearcher(options, includeAll) {
|
|
2828
2824
|
};
|
2829
2825
|
}
|
2830
2826
|
|
2831
|
-
var __defProp$
|
2832
|
-
var __defProps$
|
2833
|
-
var __getOwnPropDescs$
|
2834
|
-
var __getOwnPropSymbols$
|
2835
|
-
var __hasOwnProp$
|
2836
|
-
var __propIsEnum$
|
2837
|
-
var __defNormalProp$
|
2838
|
-
var __spreadValues$
|
2827
|
+
var __defProp$B = Object.defineProperty;
|
2828
|
+
var __defProps$p = Object.defineProperties;
|
2829
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
2830
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
2831
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
2832
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
2833
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2834
|
+
var __spreadValues$B = (a, b) => {
|
2839
2835
|
for (var prop in b || (b = {}))
|
2840
|
-
if (__hasOwnProp$
|
2841
|
-
__defNormalProp$
|
2842
|
-
if (__getOwnPropSymbols$
|
2843
|
-
for (var prop of __getOwnPropSymbols$
|
2844
|
-
if (__propIsEnum$
|
2845
|
-
__defNormalProp$
|
2836
|
+
if (__hasOwnProp$B.call(b, prop))
|
2837
|
+
__defNormalProp$B(a, prop, b[prop]);
|
2838
|
+
if (__getOwnPropSymbols$B)
|
2839
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
2840
|
+
if (__propIsEnum$B.call(b, prop))
|
2841
|
+
__defNormalProp$B(a, prop, b[prop]);
|
2846
2842
|
}
|
2847
2843
|
return a;
|
2848
2844
|
};
|
2849
|
-
var __spreadProps$
|
2850
|
-
var __objRest$
|
2845
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
2846
|
+
var __objRest$4 = (source, exclude) => {
|
2851
2847
|
var target = {};
|
2852
2848
|
for (var prop in source)
|
2853
|
-
if (__hasOwnProp$
|
2849
|
+
if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
|
2854
2850
|
target[prop] = source[prop];
|
2855
|
-
if (source != null && __getOwnPropSymbols$
|
2856
|
-
for (var prop of __getOwnPropSymbols$
|
2857
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
2851
|
+
if (source != null && __getOwnPropSymbols$B)
|
2852
|
+
for (var prop of __getOwnPropSymbols$B(source)) {
|
2853
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$B.call(source, prop))
|
2858
2854
|
target[prop] = source[prop];
|
2859
2855
|
}
|
2860
2856
|
return target;
|
@@ -2982,11 +2978,11 @@ const OptionWithCheckbox = ({
|
|
2982
2978
|
renderOptionLabel
|
2983
2979
|
}) => {
|
2984
2980
|
var _b;
|
2985
|
-
const _a = innerProps, rest = __objRest$
|
2981
|
+
const _a = innerProps, rest = __objRest$4(_a, ["onMouseMove", "onMouseOver"]);
|
2986
2982
|
const theme = ui.useTheme2();
|
2987
2983
|
const selectStyles = ui.getSelectStyles(theme);
|
2988
2984
|
const optionStyles = ui.useStyles2(getOptionStyles);
|
2989
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$
|
2985
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$p(__spreadValues$B({
|
2990
2986
|
ref: innerRef,
|
2991
2987
|
className: css.cx(selectStyles.option, isFocused && selectStyles.optionFocused)
|
2992
2988
|
}, rest), {
|
@@ -3088,28 +3084,28 @@ function getEnrichedFiltersRequest(sourceRunner) {
|
|
3088
3084
|
return null;
|
3089
3085
|
}
|
3090
3086
|
|
3091
|
-
var __defProp$
|
3092
|
-
var __defProps$
|
3093
|
-
var __getOwnPropDescs$
|
3094
|
-
var __getOwnPropSymbols$
|
3095
|
-
var __hasOwnProp$
|
3096
|
-
var __propIsEnum$
|
3097
|
-
var __defNormalProp$
|
3098
|
-
var __spreadValues$
|
3087
|
+
var __defProp$A = Object.defineProperty;
|
3088
|
+
var __defProps$o = Object.defineProperties;
|
3089
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
3090
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
3091
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
3092
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
3093
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3094
|
+
var __spreadValues$A = (a, b) => {
|
3099
3095
|
for (var prop in b || (b = {}))
|
3100
|
-
if (__hasOwnProp$
|
3101
|
-
__defNormalProp$
|
3102
|
-
if (__getOwnPropSymbols$
|
3103
|
-
for (var prop of __getOwnPropSymbols$
|
3104
|
-
if (__propIsEnum$
|
3105
|
-
__defNormalProp$
|
3096
|
+
if (__hasOwnProp$A.call(b, prop))
|
3097
|
+
__defNormalProp$A(a, prop, b[prop]);
|
3098
|
+
if (__getOwnPropSymbols$A)
|
3099
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
3100
|
+
if (__propIsEnum$A.call(b, prop))
|
3101
|
+
__defNormalProp$A(a, prop, b[prop]);
|
3106
3102
|
}
|
3107
3103
|
return a;
|
3108
3104
|
};
|
3109
|
-
var __spreadProps$
|
3105
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
3110
3106
|
class GroupByVariable extends MultiValueVariable {
|
3111
3107
|
constructor(initialState) {
|
3112
|
-
super(__spreadProps$
|
3108
|
+
super(__spreadProps$o(__spreadValues$A({
|
3113
3109
|
isMulti: true,
|
3114
3110
|
name: "",
|
3115
3111
|
value: [],
|
@@ -3142,7 +3138,7 @@ class GroupByVariable extends MultiValueVariable {
|
|
3142
3138
|
const queries = getQueriesForVariables(this);
|
3143
3139
|
const otherFilters = this.state.baseFilters || [];
|
3144
3140
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3145
|
-
const response = await ds.getTagKeys(__spreadValues$
|
3141
|
+
const response = await ds.getTagKeys(__spreadValues$A({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
|
3146
3142
|
if (responseHasError(response)) {
|
3147
3143
|
this.setState({ error: response.error.message });
|
3148
3144
|
}
|
@@ -3761,29 +3757,29 @@ function isFilter(filter) {
|
|
3761
3757
|
return filter !== null && typeof filter.key === "string" && typeof filter.value === "string";
|
3762
3758
|
}
|
3763
3759
|
|
3764
|
-
var __defProp$
|
3765
|
-
var __defProps$
|
3766
|
-
var __getOwnPropDescs$
|
3767
|
-
var __getOwnPropSymbols$
|
3768
|
-
var __hasOwnProp$
|
3769
|
-
var __propIsEnum$
|
3770
|
-
var __defNormalProp$
|
3771
|
-
var __spreadValues$
|
3760
|
+
var __defProp$z = Object.defineProperty;
|
3761
|
+
var __defProps$n = Object.defineProperties;
|
3762
|
+
var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
|
3763
|
+
var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
|
3764
|
+
var __hasOwnProp$z = Object.prototype.hasOwnProperty;
|
3765
|
+
var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
|
3766
|
+
var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3767
|
+
var __spreadValues$z = (a, b) => {
|
3772
3768
|
for (var prop in b || (b = {}))
|
3773
|
-
if (__hasOwnProp$
|
3774
|
-
__defNormalProp$
|
3775
|
-
if (__getOwnPropSymbols$
|
3776
|
-
for (var prop of __getOwnPropSymbols$
|
3777
|
-
if (__propIsEnum$
|
3778
|
-
__defNormalProp$
|
3769
|
+
if (__hasOwnProp$z.call(b, prop))
|
3770
|
+
__defNormalProp$z(a, prop, b[prop]);
|
3771
|
+
if (__getOwnPropSymbols$z)
|
3772
|
+
for (var prop of __getOwnPropSymbols$z(b)) {
|
3773
|
+
if (__propIsEnum$z.call(b, prop))
|
3774
|
+
__defNormalProp$z(a, prop, b[prop]);
|
3779
3775
|
}
|
3780
3776
|
return a;
|
3781
3777
|
};
|
3782
|
-
var __spreadProps$
|
3778
|
+
var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
|
3783
3779
|
class AdHocFiltersVariable extends SceneObjectBase {
|
3784
3780
|
constructor(state) {
|
3785
3781
|
var _a, _b;
|
3786
|
-
super(__spreadValues$
|
3782
|
+
super(__spreadValues$z({
|
3787
3783
|
type: "adhoc",
|
3788
3784
|
name: (_a = state.name) != null ? _a : "Filters",
|
3789
3785
|
filters: [],
|
@@ -3820,15 +3816,15 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3820
3816
|
const propLabelKey = `${prop}Label`;
|
3821
3817
|
if (filter === _wip) {
|
3822
3818
|
if (prop === "value") {
|
3823
|
-
this.setState({ filters: [...filters, __spreadProps$
|
3819
|
+
this.setState({ filters: [...filters, __spreadProps$n(__spreadValues$z({}, _wip), { [prop]: value, [propLabelKey]: label })], _wip: void 0 });
|
3824
3820
|
} else {
|
3825
|
-
this.setState({ _wip: __spreadProps$
|
3821
|
+
this.setState({ _wip: __spreadProps$n(__spreadValues$z({}, filter), { [prop]: value, [propLabelKey]: label }) });
|
3826
3822
|
}
|
3827
3823
|
return;
|
3828
3824
|
}
|
3829
3825
|
const updatedFilters = this.state.filters.map((f) => {
|
3830
3826
|
if (f === filter) {
|
3831
|
-
const updatedFilter = __spreadProps$
|
3827
|
+
const updatedFilter = __spreadProps$n(__spreadValues$z({}, f), { [prop]: value, [propLabelKey]: label });
|
3832
3828
|
if (prop === "key" && filter[prop] !== value) {
|
3833
3829
|
updatedFilter.value = "";
|
3834
3830
|
updatedFilter.valueLabel = "";
|
@@ -3862,7 +3858,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3862
3858
|
const otherFilters = this.state.filters.filter((f) => f.key !== currentKey).concat((_c = this.state.baseFilters) != null ? _c : []);
|
3863
3859
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3864
3860
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
3865
|
-
const response = await ds.getTagKeys(__spreadValues$
|
3861
|
+
const response = await ds.getTagKeys(__spreadValues$z({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
|
3866
3862
|
if (responseHasError(response)) {
|
3867
3863
|
this.setState({ error: response.error.message });
|
3868
3864
|
}
|
@@ -3889,7 +3885,7 @@ class AdHocFiltersVariable extends SceneObjectBase {
|
|
3889
3885
|
const otherFilters = this.state.filters.filter((f) => f.key !== filter.key).concat((_c = this.state.baseFilters) != null ? _c : []);
|
3890
3886
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
3891
3887
|
const queries = this.state.useQueriesAsFilterForOptions ? getQueriesForVariables(this) : void 0;
|
3892
|
-
const response = await ds.getTagValues(__spreadValues$
|
3888
|
+
const response = await ds.getTagValues(__spreadValues$z({
|
3893
3889
|
key: filter.key,
|
3894
3890
|
filters: otherFilters,
|
3895
3891
|
timeRange,
|
@@ -4006,25 +4002,25 @@ function areDifferentLayers(a, b) {
|
|
4006
4002
|
return false;
|
4007
4003
|
}
|
4008
4004
|
|
4009
|
-
var __defProp$
|
4010
|
-
var __defProps$
|
4011
|
-
var __getOwnPropDescs$
|
4012
|
-
var __getOwnPropSymbols$
|
4013
|
-
var __hasOwnProp$
|
4014
|
-
var __propIsEnum$
|
4015
|
-
var __defNormalProp$
|
4016
|
-
var __spreadValues$
|
4005
|
+
var __defProp$y = Object.defineProperty;
|
4006
|
+
var __defProps$m = Object.defineProperties;
|
4007
|
+
var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
|
4008
|
+
var __getOwnPropSymbols$y = Object.getOwnPropertySymbols;
|
4009
|
+
var __hasOwnProp$y = Object.prototype.hasOwnProperty;
|
4010
|
+
var __propIsEnum$y = Object.prototype.propertyIsEnumerable;
|
4011
|
+
var __defNormalProp$y = (obj, key, value) => key in obj ? __defProp$y(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4012
|
+
var __spreadValues$y = (a, b) => {
|
4017
4013
|
for (var prop in b || (b = {}))
|
4018
|
-
if (__hasOwnProp$
|
4019
|
-
__defNormalProp$
|
4020
|
-
if (__getOwnPropSymbols$
|
4021
|
-
for (var prop of __getOwnPropSymbols$
|
4022
|
-
if (__propIsEnum$
|
4023
|
-
__defNormalProp$
|
4014
|
+
if (__hasOwnProp$y.call(b, prop))
|
4015
|
+
__defNormalProp$y(a, prop, b[prop]);
|
4016
|
+
if (__getOwnPropSymbols$y)
|
4017
|
+
for (var prop of __getOwnPropSymbols$y(b)) {
|
4018
|
+
if (__propIsEnum$y.call(b, prop))
|
4019
|
+
__defNormalProp$y(a, prop, b[prop]);
|
4024
4020
|
}
|
4025
4021
|
return a;
|
4026
4022
|
};
|
4027
|
-
var __spreadProps$
|
4023
|
+
var __spreadProps$m = (a, b) => __defProps$m(a, __getOwnPropDescs$m(b));
|
4028
4024
|
let counter$1 = 100;
|
4029
4025
|
function getNextRequestId$1() {
|
4030
4026
|
return "SQR" + counter$1++;
|
@@ -4122,9 +4118,9 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4122
4118
|
return;
|
4123
4119
|
}
|
4124
4120
|
this._layerAnnotations = annotations;
|
4125
|
-
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$
|
4121
|
+
const baseStateUpdate = this.state.data ? this.state.data : __spreadProps$m(__spreadValues$y({}, emptyPanelData), { timeRange: timeRange.state.value });
|
4126
4122
|
this.setState({
|
4127
|
-
data: __spreadProps$
|
4123
|
+
data: __spreadProps$m(__spreadValues$y({}, baseStateUpdate), {
|
4128
4124
|
annotations: [...(_d = this._resultAnnotations) != null ? _d : [], ...annotations],
|
4129
4125
|
alertState: alertState != null ? alertState : (_e = this.state.data) == null ? void 0 : _e.alertState
|
4130
4126
|
})
|
@@ -4243,7 +4239,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4243
4239
|
this._dataLayersSub = void 0;
|
4244
4240
|
}
|
4245
4241
|
this.setState({
|
4246
|
-
data: __spreadProps$
|
4242
|
+
data: __spreadProps$m(__spreadValues$y({}, this.state.data), { state: schema.LoadingState.Done })
|
4247
4243
|
});
|
4248
4244
|
}
|
4249
4245
|
async runWithTimeRange(timeRange) {
|
@@ -4257,7 +4253,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4257
4253
|
(_a = this._querySub) == null ? void 0 : _a.unsubscribe();
|
4258
4254
|
if (this._variableDependency.hasDependencyInLoadingState()) {
|
4259
4255
|
writeSceneLog("SceneQueryRunner", "Variable dependency is in loading state, skipping query execution");
|
4260
|
-
this.setState({ data: __spreadProps$
|
4256
|
+
this.setState({ data: __spreadProps$m(__spreadValues$y({}, (_b = this.state.data) != null ? _b : emptyPanelData), { state: schema.LoadingState.Loading }) });
|
4261
4257
|
return;
|
4262
4258
|
}
|
4263
4259
|
const { queries } = this.state;
|
@@ -4289,7 +4285,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4289
4285
|
this._querySub = stream.subscribe(this.onDataReceived);
|
4290
4286
|
} catch (err) {
|
4291
4287
|
console.error("PanelQueryRunner Error", err);
|
4292
|
-
this.onDataReceived(__spreadProps$
|
4288
|
+
this.onDataReceived(__spreadProps$m(__spreadValues$y(__spreadValues$y({}, emptyPanelData), this.state.data), {
|
4293
4289
|
state: schema.LoadingState.Error,
|
4294
4290
|
errors: [runtime.toDataQueryError(err)]
|
4295
4291
|
}));
|
@@ -4299,10 +4295,10 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4299
4295
|
var _a;
|
4300
4296
|
const clone = super.clone(withState);
|
4301
4297
|
if (this._resultAnnotations) {
|
4302
|
-
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$
|
4298
|
+
clone["_resultAnnotations"] = this._resultAnnotations.map((frame) => __spreadValues$y({}, frame));
|
4303
4299
|
}
|
4304
4300
|
if (this._layerAnnotations) {
|
4305
|
-
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$
|
4301
|
+
clone["_layerAnnotations"] = this._layerAnnotations.map((frame) => __spreadValues$y({}, frame));
|
4306
4302
|
}
|
4307
4303
|
clone["_variableValueRecorder"] = this._variableValueRecorder.cloneAndRecordCurrentValuesForSceneObject(this);
|
4308
4304
|
clone["_containerWidth"] = this._containerWidth;
|
@@ -4312,7 +4308,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4312
4308
|
prepareRequests(timeRange, ds) {
|
4313
4309
|
var _a;
|
4314
4310
|
const { minInterval, queries } = this.state;
|
4315
|
-
let request = __spreadValues$
|
4311
|
+
let request = __spreadValues$y({
|
4316
4312
|
app: "scenes",
|
4317
4313
|
requestId: getNextRequestId$1(),
|
4318
4314
|
timezone: timeRange.getTimeZone(),
|
@@ -4358,7 +4354,7 @@ class SceneQueryRunner extends SceneObjectBase {
|
|
4358
4354
|
for (const provider of (_a = this.getClosestExtraQueryProviders()) != null ? _a : []) {
|
4359
4355
|
for (const { req, processor } of provider.getExtraQueries(request)) {
|
4360
4356
|
const requestId = getNextRequestId$1();
|
4361
|
-
secondaryRequests.push(__spreadProps$
|
4357
|
+
secondaryRequests.push(__spreadProps$m(__spreadValues$y({}, req), { requestId }));
|
4362
4358
|
secondaryProcessors.set(requestId, processor != null ? processor : passthroughProcessor);
|
4363
4359
|
}
|
4364
4360
|
}
|
@@ -4600,28 +4596,28 @@ class ActWhenVariableChanged extends SceneObjectBase {
|
|
4600
4596
|
}
|
4601
4597
|
}
|
4602
4598
|
|
4603
|
-
var __defProp$
|
4604
|
-
var __defProps$
|
4605
|
-
var __getOwnPropDescs$
|
4606
|
-
var __getOwnPropSymbols$
|
4607
|
-
var __hasOwnProp$
|
4608
|
-
var __propIsEnum$
|
4609
|
-
var __defNormalProp$
|
4610
|
-
var __spreadValues$
|
4599
|
+
var __defProp$x = Object.defineProperty;
|
4600
|
+
var __defProps$l = Object.defineProperties;
|
4601
|
+
var __getOwnPropDescs$l = Object.getOwnPropertyDescriptors;
|
4602
|
+
var __getOwnPropSymbols$x = Object.getOwnPropertySymbols;
|
4603
|
+
var __hasOwnProp$x = Object.prototype.hasOwnProperty;
|
4604
|
+
var __propIsEnum$x = Object.prototype.propertyIsEnumerable;
|
4605
|
+
var __defNormalProp$x = (obj, key, value) => key in obj ? __defProp$x(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4606
|
+
var __spreadValues$x = (a, b) => {
|
4611
4607
|
for (var prop in b || (b = {}))
|
4612
|
-
if (__hasOwnProp$
|
4613
|
-
__defNormalProp$
|
4614
|
-
if (__getOwnPropSymbols$
|
4615
|
-
for (var prop of __getOwnPropSymbols$
|
4616
|
-
if (__propIsEnum$
|
4617
|
-
__defNormalProp$
|
4608
|
+
if (__hasOwnProp$x.call(b, prop))
|
4609
|
+
__defNormalProp$x(a, prop, b[prop]);
|
4610
|
+
if (__getOwnPropSymbols$x)
|
4611
|
+
for (var prop of __getOwnPropSymbols$x(b)) {
|
4612
|
+
if (__propIsEnum$x.call(b, prop))
|
4613
|
+
__defNormalProp$x(a, prop, b[prop]);
|
4618
4614
|
}
|
4619
4615
|
return a;
|
4620
4616
|
};
|
4621
|
-
var __spreadProps$
|
4617
|
+
var __spreadProps$l = (a, b) => __defProps$l(a, __getOwnPropDescs$l(b));
|
4622
4618
|
class CursorSync extends SceneObjectBase {
|
4623
4619
|
constructor(state) {
|
4624
|
-
super(__spreadProps$
|
4620
|
+
super(__spreadProps$l(__spreadValues$x({}, state), {
|
4625
4621
|
sync: state.sync || schema.DashboardCursorSync.Off
|
4626
4622
|
}));
|
4627
4623
|
this.getEventsBus = (panel) => {
|
@@ -4885,25 +4881,25 @@ const getAlertStateStyles = (theme) => {
|
|
4885
4881
|
};
|
4886
4882
|
};
|
4887
4883
|
|
4888
|
-
var __defProp$
|
4889
|
-
var __defProps$
|
4890
|
-
var __getOwnPropDescs$
|
4891
|
-
var __getOwnPropSymbols$
|
4892
|
-
var __hasOwnProp$
|
4893
|
-
var __propIsEnum$
|
4894
|
-
var __defNormalProp$
|
4895
|
-
var __spreadValues$
|
4884
|
+
var __defProp$w = Object.defineProperty;
|
4885
|
+
var __defProps$k = Object.defineProperties;
|
4886
|
+
var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
|
4887
|
+
var __getOwnPropSymbols$w = Object.getOwnPropertySymbols;
|
4888
|
+
var __hasOwnProp$w = Object.prototype.hasOwnProperty;
|
4889
|
+
var __propIsEnum$w = Object.prototype.propertyIsEnumerable;
|
4890
|
+
var __defNormalProp$w = (obj, key, value) => key in obj ? __defProp$w(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4891
|
+
var __spreadValues$w = (a, b) => {
|
4896
4892
|
for (var prop in b || (b = {}))
|
4897
|
-
if (__hasOwnProp$
|
4898
|
-
__defNormalProp$
|
4899
|
-
if (__getOwnPropSymbols$
|
4900
|
-
for (var prop of __getOwnPropSymbols$
|
4901
|
-
if (__propIsEnum$
|
4902
|
-
__defNormalProp$
|
4893
|
+
if (__hasOwnProp$w.call(b, prop))
|
4894
|
+
__defNormalProp$w(a, prop, b[prop]);
|
4895
|
+
if (__getOwnPropSymbols$w)
|
4896
|
+
for (var prop of __getOwnPropSymbols$w(b)) {
|
4897
|
+
if (__propIsEnum$w.call(b, prop))
|
4898
|
+
__defNormalProp$w(a, prop, b[prop]);
|
4903
4899
|
}
|
4904
4900
|
return a;
|
4905
4901
|
};
|
4906
|
-
var __spreadProps$
|
4902
|
+
var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
|
4907
4903
|
const displayOverrideRef = "hideSeriesFrom";
|
4908
4904
|
const isHideSeriesOverride = data.isSystemOverrideWithRef(displayOverrideRef);
|
4909
4905
|
function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
@@ -4913,13 +4909,13 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4913
4909
|
if (currentIndex < 0) {
|
4914
4910
|
if (mode === ui.SeriesVisibilityChangeMode.ToggleSelection) {
|
4915
4911
|
const override3 = createOverride$1([displayName, ...getNamesOfHiddenFields(overrides, data)]);
|
4916
|
-
return __spreadProps$
|
4912
|
+
return __spreadProps$k(__spreadValues$w({}, fieldConfig), {
|
4917
4913
|
overrides: [...fieldConfig.overrides, override3]
|
4918
4914
|
});
|
4919
4915
|
}
|
4920
4916
|
const displayNames = getDisplayNames(data, displayName);
|
4921
4917
|
const override2 = createOverride$1(displayNames);
|
4922
|
-
return __spreadProps$
|
4918
|
+
return __spreadProps$k(__spreadValues$w({}, fieldConfig), {
|
4923
4919
|
overrides: [...fieldConfig.overrides, override2]
|
4924
4920
|
});
|
4925
4921
|
}
|
@@ -4932,22 +4928,22 @@ function seriesVisibilityConfigFactory(label, mode, fieldConfig, data) {
|
|
4932
4928
|
existing = existing.filter((el) => nameOfHiddenFields.indexOf(el) < 0);
|
4933
4929
|
}
|
4934
4930
|
if (existing[0] === displayName && existing.length === 1) {
|
4935
|
-
return __spreadProps$
|
4931
|
+
return __spreadProps$k(__spreadValues$w({}, fieldConfig), {
|
4936
4932
|
overrides: overridesCopy
|
4937
4933
|
});
|
4938
4934
|
}
|
4939
4935
|
const override2 = createOverride$1([displayName, ...nameOfHiddenFields]);
|
4940
|
-
return __spreadProps$
|
4936
|
+
return __spreadProps$k(__spreadValues$w({}, fieldConfig), {
|
4941
4937
|
overrides: [...overridesCopy, override2]
|
4942
4938
|
});
|
4943
4939
|
}
|
4944
4940
|
const override = createExtendedOverride(current, displayName);
|
4945
4941
|
if (allFieldsAreExcluded(override, data)) {
|
4946
|
-
return __spreadProps$
|
4942
|
+
return __spreadProps$k(__spreadValues$w({}, fieldConfig), {
|
4947
4943
|
overrides: overridesCopy
|
4948
4944
|
});
|
4949
4945
|
}
|
4950
|
-
return __spreadProps$
|
4946
|
+
return __spreadProps$k(__spreadValues$w({}, fieldConfig), {
|
4951
4947
|
overrides: [...overridesCopy, override]
|
4952
4948
|
});
|
4953
4949
|
}
|
@@ -4972,7 +4968,7 @@ function createOverride$1(names, mode = data.ByNamesMatcherMode.exclude, propert
|
|
4972
4968
|
}
|
4973
4969
|
},
|
4974
4970
|
properties: [
|
4975
|
-
__spreadProps$
|
4971
|
+
__spreadProps$k(__spreadValues$w({}, property), {
|
4976
4972
|
value: {
|
4977
4973
|
viz: true,
|
4978
4974
|
legend: false,
|
@@ -5044,32 +5040,32 @@ const getNamesOfHiddenFields = (overrides, data$1) => {
|
|
5044
5040
|
return names;
|
5045
5041
|
};
|
5046
5042
|
|
5047
|
-
var __defProp$
|
5048
|
-
var __defProps$
|
5049
|
-
var __getOwnPropDescs$
|
5050
|
-
var __getOwnPropSymbols$
|
5051
|
-
var __hasOwnProp$
|
5052
|
-
var __propIsEnum$
|
5053
|
-
var __defNormalProp$
|
5054
|
-
var __spreadValues$
|
5043
|
+
var __defProp$v = Object.defineProperty;
|
5044
|
+
var __defProps$j = Object.defineProperties;
|
5045
|
+
var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
|
5046
|
+
var __getOwnPropSymbols$v = Object.getOwnPropertySymbols;
|
5047
|
+
var __hasOwnProp$v = Object.prototype.hasOwnProperty;
|
5048
|
+
var __propIsEnum$v = Object.prototype.propertyIsEnumerable;
|
5049
|
+
var __defNormalProp$v = (obj, key, value) => key in obj ? __defProp$v(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5050
|
+
var __spreadValues$v = (a, b) => {
|
5055
5051
|
for (var prop in b || (b = {}))
|
5056
|
-
if (__hasOwnProp$
|
5057
|
-
__defNormalProp$
|
5058
|
-
if (__getOwnPropSymbols$
|
5059
|
-
for (var prop of __getOwnPropSymbols$
|
5060
|
-
if (__propIsEnum$
|
5061
|
-
__defNormalProp$
|
5052
|
+
if (__hasOwnProp$v.call(b, prop))
|
5053
|
+
__defNormalProp$v(a, prop, b[prop]);
|
5054
|
+
if (__getOwnPropSymbols$v)
|
5055
|
+
for (var prop of __getOwnPropSymbols$v(b)) {
|
5056
|
+
if (__propIsEnum$v.call(b, prop))
|
5057
|
+
__defNormalProp$v(a, prop, b[prop]);
|
5062
5058
|
}
|
5063
5059
|
return a;
|
5064
5060
|
};
|
5065
|
-
var __spreadProps$
|
5061
|
+
var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
|
5066
5062
|
const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
5067
5063
|
const { overrides } = fieldConfig;
|
5068
5064
|
const currentIndex = fieldConfig.overrides.findIndex((override) => {
|
5069
5065
|
return override.matcher.id === data.FieldMatcherID.byName && override.matcher.options === label;
|
5070
5066
|
});
|
5071
5067
|
if (currentIndex < 0) {
|
5072
|
-
return __spreadProps$
|
5068
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
5073
5069
|
overrides: [...fieldConfig.overrides, createOverride(label, color)]
|
5074
5070
|
});
|
5075
5071
|
}
|
@@ -5077,19 +5073,19 @@ const changeSeriesColorConfigFactory = (label, color, fieldConfig) => {
|
|
5077
5073
|
const existing = overridesCopy[currentIndex];
|
5078
5074
|
const propertyIndex = existing.properties.findIndex((p) => p.id === "color");
|
5079
5075
|
if (propertyIndex < 0) {
|
5080
|
-
overridesCopy[currentIndex] = __spreadProps$
|
5076
|
+
overridesCopy[currentIndex] = __spreadProps$j(__spreadValues$v({}, existing), {
|
5081
5077
|
properties: [...existing.properties, createProperty(color)]
|
5082
5078
|
});
|
5083
|
-
return __spreadProps$
|
5079
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
5084
5080
|
overrides: overridesCopy
|
5085
5081
|
});
|
5086
5082
|
}
|
5087
5083
|
const propertiesCopy = Array.from(existing.properties);
|
5088
5084
|
propertiesCopy[propertyIndex] = createProperty(color);
|
5089
|
-
overridesCopy[currentIndex] = __spreadProps$
|
5085
|
+
overridesCopy[currentIndex] = __spreadProps$j(__spreadValues$v({}, existing), {
|
5090
5086
|
properties: propertiesCopy
|
5091
5087
|
});
|
5092
|
-
return __spreadProps$
|
5088
|
+
return __spreadProps$j(__spreadValues$v({}, fieldConfig), {
|
5093
5089
|
overrides: overridesCopy
|
5094
5090
|
});
|
5095
5091
|
};
|
@@ -5112,29 +5108,29 @@ const createProperty = (color) => {
|
|
5112
5108
|
};
|
5113
5109
|
};
|
5114
5110
|
|
5115
|
-
var __defProp$
|
5116
|
-
var __defProps$
|
5117
|
-
var __getOwnPropDescs$
|
5118
|
-
var __getOwnPropSymbols$
|
5119
|
-
var __hasOwnProp$
|
5120
|
-
var __propIsEnum$
|
5121
|
-
var __defNormalProp$
|
5122
|
-
var __spreadValues$
|
5111
|
+
var __defProp$u = Object.defineProperty;
|
5112
|
+
var __defProps$i = Object.defineProperties;
|
5113
|
+
var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
|
5114
|
+
var __getOwnPropSymbols$u = Object.getOwnPropertySymbols;
|
5115
|
+
var __hasOwnProp$u = Object.prototype.hasOwnProperty;
|
5116
|
+
var __propIsEnum$u = Object.prototype.propertyIsEnumerable;
|
5117
|
+
var __defNormalProp$u = (obj, key, value) => key in obj ? __defProp$u(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5118
|
+
var __spreadValues$u = (a, b) => {
|
5123
5119
|
for (var prop in b || (b = {}))
|
5124
|
-
if (__hasOwnProp$
|
5125
|
-
__defNormalProp$
|
5126
|
-
if (__getOwnPropSymbols$
|
5127
|
-
for (var prop of __getOwnPropSymbols$
|
5128
|
-
if (__propIsEnum$
|
5129
|
-
__defNormalProp$
|
5120
|
+
if (__hasOwnProp$u.call(b, prop))
|
5121
|
+
__defNormalProp$u(a, prop, b[prop]);
|
5122
|
+
if (__getOwnPropSymbols$u)
|
5123
|
+
for (var prop of __getOwnPropSymbols$u(b)) {
|
5124
|
+
if (__propIsEnum$u.call(b, prop))
|
5125
|
+
__defNormalProp$u(a, prop, b[prop]);
|
5130
5126
|
}
|
5131
5127
|
return a;
|
5132
5128
|
};
|
5133
|
-
var __spreadProps$
|
5129
|
+
var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
|
5134
5130
|
class VizPanel extends SceneObjectBase {
|
5135
5131
|
constructor(state) {
|
5136
5132
|
var _a;
|
5137
|
-
super(__spreadValues$
|
5133
|
+
super(__spreadValues$u({
|
5138
5134
|
options: {},
|
5139
5135
|
fieldConfig: { defaults: {}, overrides: [] },
|
5140
5136
|
title: "Title",
|
@@ -5251,7 +5247,7 @@ class VizPanel extends SceneObjectBase {
|
|
5251
5247
|
};
|
5252
5248
|
this._onInstanceStateChange = (state) => {
|
5253
5249
|
if (this._panelContext) {
|
5254
|
-
this._panelContext = __spreadProps$
|
5250
|
+
this._panelContext = __spreadProps$i(__spreadValues$u({}, this._panelContext), {
|
5255
5251
|
instanceState: state
|
5256
5252
|
});
|
5257
5253
|
}
|
@@ -5275,8 +5271,8 @@ class VizPanel extends SceneObjectBase {
|
|
5275
5271
|
sortBy = sortKey;
|
5276
5272
|
}
|
5277
5273
|
this.onOptionsChange(
|
5278
|
-
__spreadProps$
|
5279
|
-
legend: __spreadProps$
|
5274
|
+
__spreadProps$i(__spreadValues$u({}, this.state.options), {
|
5275
|
+
legend: __spreadProps$i(__spreadValues$u({}, legendOptions), { sortBy, sortDesc })
|
5280
5276
|
}),
|
5281
5277
|
true
|
5282
5278
|
);
|
@@ -5386,7 +5382,7 @@ class VizPanel extends SceneObjectBase {
|
|
5386
5382
|
if (!data.compareArrayValues(newFrames, prevFrames, data.compareDataFrameStructures)) {
|
5387
5383
|
this._structureRev++;
|
5388
5384
|
}
|
5389
|
-
this._dataWithFieldConfig = __spreadProps$
|
5385
|
+
this._dataWithFieldConfig = __spreadProps$i(__spreadValues$u({}, rawData), {
|
5390
5386
|
structureRev: this._structureRev,
|
5391
5387
|
series: newFrames
|
5392
5388
|
});
|
@@ -5529,25 +5525,25 @@ function getMessageFromError(err) {
|
|
5529
5525
|
return JSON.stringify(err);
|
5530
5526
|
}
|
5531
5527
|
|
5532
|
-
var __defProp$
|
5533
|
-
var __getOwnPropSymbols$
|
5534
|
-
var __hasOwnProp$
|
5535
|
-
var __propIsEnum$
|
5536
|
-
var __defNormalProp$
|
5537
|
-
var __spreadValues$
|
5528
|
+
var __defProp$t = Object.defineProperty;
|
5529
|
+
var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
|
5530
|
+
var __hasOwnProp$t = Object.prototype.hasOwnProperty;
|
5531
|
+
var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
|
5532
|
+
var __defNormalProp$t = (obj, key, value) => key in obj ? __defProp$t(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5533
|
+
var __spreadValues$t = (a, b) => {
|
5538
5534
|
for (var prop in b || (b = {}))
|
5539
|
-
if (__hasOwnProp$
|
5540
|
-
__defNormalProp$
|
5541
|
-
if (__getOwnPropSymbols$
|
5542
|
-
for (var prop of __getOwnPropSymbols$
|
5543
|
-
if (__propIsEnum$
|
5544
|
-
__defNormalProp$
|
5535
|
+
if (__hasOwnProp$t.call(b, prop))
|
5536
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5537
|
+
if (__getOwnPropSymbols$t)
|
5538
|
+
for (var prop of __getOwnPropSymbols$t(b)) {
|
5539
|
+
if (__propIsEnum$t.call(b, prop))
|
5540
|
+
__defNormalProp$t(a, prop, b[prop]);
|
5545
5541
|
}
|
5546
5542
|
return a;
|
5547
5543
|
};
|
5548
5544
|
class SceneDataLayerBase extends SceneObjectBase {
|
5549
5545
|
constructor(initialState, variableDependencyStatePaths = []) {
|
5550
|
-
super(__spreadValues$
|
5546
|
+
super(__spreadValues$t({
|
5551
5547
|
isEnabled: true
|
5552
5548
|
}, initialState));
|
5553
5549
|
this._results = new rxjs.ReplaySubject(1);
|
@@ -5672,33 +5668,33 @@ function DataLayerControlSwitch({ layer }) {
|
|
5672
5668
|
}
|
5673
5669
|
const containerStyle$1 = css.css({ display: "flex" });
|
5674
5670
|
|
5675
|
-
var __defProp$
|
5676
|
-
var __defProps$
|
5677
|
-
var __getOwnPropDescs$
|
5678
|
-
var __getOwnPropSymbols$
|
5679
|
-
var __hasOwnProp$
|
5680
|
-
var __propIsEnum$
|
5681
|
-
var __defNormalProp$
|
5682
|
-
var __spreadValues$
|
5671
|
+
var __defProp$s = Object.defineProperty;
|
5672
|
+
var __defProps$h = Object.defineProperties;
|
5673
|
+
var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
|
5674
|
+
var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
|
5675
|
+
var __hasOwnProp$s = Object.prototype.hasOwnProperty;
|
5676
|
+
var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
|
5677
|
+
var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5678
|
+
var __spreadValues$s = (a, b) => {
|
5683
5679
|
for (var prop in b || (b = {}))
|
5684
|
-
if (__hasOwnProp$
|
5685
|
-
__defNormalProp$
|
5686
|
-
if (__getOwnPropSymbols$
|
5687
|
-
for (var prop of __getOwnPropSymbols$
|
5688
|
-
if (__propIsEnum$
|
5689
|
-
__defNormalProp$
|
5680
|
+
if (__hasOwnProp$s.call(b, prop))
|
5681
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5682
|
+
if (__getOwnPropSymbols$s)
|
5683
|
+
for (var prop of __getOwnPropSymbols$s(b)) {
|
5684
|
+
if (__propIsEnum$s.call(b, prop))
|
5685
|
+
__defNormalProp$s(a, prop, b[prop]);
|
5690
5686
|
}
|
5691
5687
|
return a;
|
5692
5688
|
};
|
5693
|
-
var __spreadProps$
|
5694
|
-
var __objRest$
|
5689
|
+
var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
|
5690
|
+
var __objRest$3 = (source, exclude) => {
|
5695
5691
|
var target = {};
|
5696
5692
|
for (var prop in source)
|
5697
|
-
if (__hasOwnProp$
|
5693
|
+
if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0)
|
5698
5694
|
target[prop] = source[prop];
|
5699
|
-
if (source != null && __getOwnPropSymbols$
|
5700
|
-
for (var prop of __getOwnPropSymbols$
|
5701
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
5695
|
+
if (source != null && __getOwnPropSymbols$s)
|
5696
|
+
for (var prop of __getOwnPropSymbols$s(source)) {
|
5697
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop))
|
5702
5698
|
target[prop] = source[prop];
|
5703
5699
|
}
|
5704
5700
|
return target;
|
@@ -5706,8 +5702,8 @@ var __objRest$2 = (source, exclude) => {
|
|
5706
5702
|
const standardAnnotationSupport = {
|
5707
5703
|
prepareAnnotation: (json) => {
|
5708
5704
|
if (lodash.isString(json == null ? void 0 : json.query)) {
|
5709
|
-
const _a = json, { query } = _a, rest = __objRest$
|
5710
|
-
return __spreadProps$
|
5705
|
+
const _a = json, { query } = _a, rest = __objRest$3(_a, ["query"]);
|
5706
|
+
return __spreadProps$h(__spreadValues$s({}, rest), {
|
5711
5707
|
target: {
|
5712
5708
|
refId: "annotation_query",
|
5713
5709
|
query
|
@@ -5875,25 +5871,25 @@ function shouldUseLegacyRunner(datasource) {
|
|
5875
5871
|
return !datasource.annotations || legacyRunner.includes(type);
|
5876
5872
|
}
|
5877
5873
|
|
5878
|
-
var __defProp$
|
5879
|
-
var __defProps$
|
5880
|
-
var __getOwnPropDescs$
|
5881
|
-
var __getOwnPropSymbols$
|
5882
|
-
var __hasOwnProp$
|
5883
|
-
var __propIsEnum$
|
5884
|
-
var __defNormalProp$
|
5885
|
-
var __spreadValues$
|
5874
|
+
var __defProp$r = Object.defineProperty;
|
5875
|
+
var __defProps$g = Object.defineProperties;
|
5876
|
+
var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
|
5877
|
+
var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
|
5878
|
+
var __hasOwnProp$r = Object.prototype.hasOwnProperty;
|
5879
|
+
var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
|
5880
|
+
var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5881
|
+
var __spreadValues$r = (a, b) => {
|
5886
5882
|
for (var prop in b || (b = {}))
|
5887
|
-
if (__hasOwnProp$
|
5888
|
-
__defNormalProp$
|
5889
|
-
if (__getOwnPropSymbols$
|
5890
|
-
for (var prop of __getOwnPropSymbols$
|
5891
|
-
if (__propIsEnum$
|
5892
|
-
__defNormalProp$
|
5883
|
+
if (__hasOwnProp$r.call(b, prop))
|
5884
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5885
|
+
if (__getOwnPropSymbols$r)
|
5886
|
+
for (var prop of __getOwnPropSymbols$r(b)) {
|
5887
|
+
if (__propIsEnum$r.call(b, prop))
|
5888
|
+
__defNormalProp$r(a, prop, b[prop]);
|
5893
5889
|
}
|
5894
5890
|
return a;
|
5895
5891
|
};
|
5896
|
-
var __spreadProps$
|
5892
|
+
var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
|
5897
5893
|
let counter = 100;
|
5898
5894
|
function getNextRequestId() {
|
5899
5895
|
return "AQ" + counter++;
|
@@ -5916,8 +5912,8 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5916
5912
|
}))
|
5917
5913
|
);
|
5918
5914
|
}
|
5919
|
-
const processor = __spreadValues$
|
5920
|
-
const annotationWithDefaults = __spreadValues$
|
5915
|
+
const processor = __spreadValues$r(__spreadValues$r({}, standardAnnotationSupport), datasource.annotations);
|
5916
|
+
const annotationWithDefaults = __spreadValues$r(__spreadValues$r({}, (_a = processor.getDefaultQuery) == null ? void 0 : _a.call(processor)), query);
|
5921
5917
|
const annotation = processor.prepareAnnotation(annotationWithDefaults);
|
5922
5918
|
if (!annotation) {
|
5923
5919
|
return rxjs.of({
|
@@ -5940,7 +5936,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5940
5936
|
__annotation: { text: annotation.name, value: annotation },
|
5941
5937
|
__sceneObject: { text: "__sceneObject", value: layer }
|
5942
5938
|
};
|
5943
|
-
const queryRequest = __spreadValues$
|
5939
|
+
const queryRequest = __spreadValues$r(__spreadProps$g(__spreadValues$r({
|
5944
5940
|
startTime: Date.now(),
|
5945
5941
|
requestId: getNextRequestId(),
|
5946
5942
|
range: timeRange.state.value,
|
@@ -5950,7 +5946,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5950
5946
|
app: data.CoreApp.Dashboard,
|
5951
5947
|
timezone: timeRange.getTimeZone(),
|
5952
5948
|
targets: [
|
5953
|
-
__spreadProps$
|
5949
|
+
__spreadProps$g(__spreadValues$r({}, processedQuery), {
|
5954
5950
|
refId: "Anno"
|
5955
5951
|
})
|
5956
5952
|
]
|
@@ -5968,7 +5964,7 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5968
5964
|
data$1.forEach((frame) => {
|
5969
5965
|
var _a2;
|
5970
5966
|
if (!((_a2 = frame.meta) == null ? void 0 : _a2.dataTopic)) {
|
5971
|
-
frame.meta = __spreadProps$
|
5967
|
+
frame.meta = __spreadProps$g(__spreadValues$r({}, frame.meta || {}), { dataTopic: data.DataTopic.Annotations });
|
5972
5968
|
}
|
5973
5969
|
});
|
5974
5970
|
return processor.processEvents(annotation, data$1).pipe(
|
@@ -5983,19 +5979,19 @@ function executeAnnotationQuery(datasource, timeRange, query, layer) {
|
|
5983
5979
|
);
|
5984
5980
|
}
|
5985
5981
|
|
5986
|
-
var __defProp$
|
5987
|
-
var __getOwnPropSymbols$
|
5988
|
-
var __hasOwnProp$
|
5989
|
-
var __propIsEnum$
|
5990
|
-
var __defNormalProp$
|
5991
|
-
var __spreadValues$
|
5982
|
+
var __defProp$q = Object.defineProperty;
|
5983
|
+
var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
|
5984
|
+
var __hasOwnProp$q = Object.prototype.hasOwnProperty;
|
5985
|
+
var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
|
5986
|
+
var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
5987
|
+
var __spreadValues$q = (a, b) => {
|
5992
5988
|
for (var prop in b || (b = {}))
|
5993
|
-
if (__hasOwnProp$
|
5994
|
-
__defNormalProp$
|
5995
|
-
if (__getOwnPropSymbols$
|
5996
|
-
for (var prop of __getOwnPropSymbols$
|
5997
|
-
if (__propIsEnum$
|
5998
|
-
__defNormalProp$
|
5989
|
+
if (__hasOwnProp$q.call(b, prop))
|
5990
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5991
|
+
if (__getOwnPropSymbols$q)
|
5992
|
+
for (var prop of __getOwnPropSymbols$q(b)) {
|
5993
|
+
if (__propIsEnum$q.call(b, prop))
|
5994
|
+
__defNormalProp$q(a, prop, b[prop]);
|
5999
5995
|
}
|
6000
5996
|
return a;
|
6001
5997
|
};
|
@@ -6006,7 +6002,7 @@ function postProcessQueryResult(annotation, results) {
|
|
6006
6002
|
}
|
6007
6003
|
const processed = results.map((item) => {
|
6008
6004
|
var _a;
|
6009
|
-
const processedItem = __spreadValues$
|
6005
|
+
const processedItem = __spreadValues$q({}, item);
|
6010
6006
|
processedItem.source = annotation;
|
6011
6007
|
processedItem.color = runtime.config.theme2.visualization.getColorByName(annotation.iconColor);
|
6012
6008
|
processedItem.type = annotation.name;
|
@@ -6055,29 +6051,29 @@ function isPanelAlert(event) {
|
|
6055
6051
|
return event.eventType === "panel-alert";
|
6056
6052
|
}
|
6057
6053
|
|
6058
|
-
var __defProp$
|
6059
|
-
var __defProps$
|
6060
|
-
var __getOwnPropDescs$
|
6061
|
-
var __getOwnPropSymbols$
|
6062
|
-
var __hasOwnProp$
|
6063
|
-
var __propIsEnum$
|
6064
|
-
var __defNormalProp$
|
6065
|
-
var __spreadValues$
|
6054
|
+
var __defProp$p = Object.defineProperty;
|
6055
|
+
var __defProps$f = Object.defineProperties;
|
6056
|
+
var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
|
6057
|
+
var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
|
6058
|
+
var __hasOwnProp$p = Object.prototype.hasOwnProperty;
|
6059
|
+
var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
|
6060
|
+
var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6061
|
+
var __spreadValues$p = (a, b) => {
|
6066
6062
|
for (var prop in b || (b = {}))
|
6067
|
-
if (__hasOwnProp$
|
6068
|
-
__defNormalProp$
|
6069
|
-
if (__getOwnPropSymbols$
|
6070
|
-
for (var prop of __getOwnPropSymbols$
|
6071
|
-
if (__propIsEnum$
|
6072
|
-
__defNormalProp$
|
6063
|
+
if (__hasOwnProp$p.call(b, prop))
|
6064
|
+
__defNormalProp$p(a, prop, b[prop]);
|
6065
|
+
if (__getOwnPropSymbols$p)
|
6066
|
+
for (var prop of __getOwnPropSymbols$p(b)) {
|
6067
|
+
if (__propIsEnum$p.call(b, prop))
|
6068
|
+
__defNormalProp$p(a, prop, b[prop]);
|
6073
6069
|
}
|
6074
6070
|
return a;
|
6075
6071
|
};
|
6076
|
-
var __spreadProps$
|
6072
|
+
var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
|
6077
6073
|
class AnnotationsDataLayer extends SceneDataLayerBase {
|
6078
6074
|
constructor(initialState) {
|
6079
6075
|
super(
|
6080
|
-
__spreadValues$
|
6076
|
+
__spreadValues$p({
|
6081
6077
|
isEnabled: true
|
6082
6078
|
}, initialState),
|
6083
6079
|
["query"]
|
@@ -6125,7 +6121,7 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6125
6121
|
this.publishResults(stateUpdate);
|
6126
6122
|
});
|
6127
6123
|
} catch (e) {
|
6128
|
-
this.publishResults(__spreadProps$
|
6124
|
+
this.publishResults(__spreadProps$f(__spreadValues$p({}, emptyPanelData), {
|
6129
6125
|
state: schema.LoadingState.Error,
|
6130
6126
|
errors: [
|
6131
6127
|
{
|
@@ -6142,9 +6138,9 @@ class AnnotationsDataLayer extends SceneDataLayerBase {
|
|
6142
6138
|
processEvents(query, events) {
|
6143
6139
|
let processedEvents = postProcessQueryResult(query, events.events || []);
|
6144
6140
|
processedEvents = dedupAnnotations(processedEvents);
|
6145
|
-
const stateUpdate = __spreadProps$
|
6141
|
+
const stateUpdate = __spreadProps$f(__spreadValues$p({}, emptyPanelData), { state: events.state });
|
6146
6142
|
const df = data.arrayToDataFrame(processedEvents);
|
6147
|
-
df.meta = __spreadProps$
|
6143
|
+
df.meta = __spreadProps$f(__spreadValues$p({}, df.meta), {
|
6148
6144
|
dataTopic: data.DataTopic.Annotations
|
6149
6145
|
});
|
6150
6146
|
stateUpdate.series = [df];
|
@@ -6197,28 +6193,28 @@ class SceneTimeRangeTransformerBase extends SceneObjectBase {
|
|
6197
6193
|
}
|
6198
6194
|
}
|
6199
6195
|
|
6200
|
-
var __defProp$
|
6201
|
-
var __defProps$
|
6202
|
-
var __getOwnPropDescs$
|
6203
|
-
var __getOwnPropSymbols$
|
6204
|
-
var __hasOwnProp$
|
6205
|
-
var __propIsEnum$
|
6206
|
-
var __defNormalProp$
|
6207
|
-
var __spreadValues$
|
6196
|
+
var __defProp$o = Object.defineProperty;
|
6197
|
+
var __defProps$e = Object.defineProperties;
|
6198
|
+
var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
|
6199
|
+
var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
|
6200
|
+
var __hasOwnProp$o = Object.prototype.hasOwnProperty;
|
6201
|
+
var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
|
6202
|
+
var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6203
|
+
var __spreadValues$o = (a, b) => {
|
6208
6204
|
for (var prop in b || (b = {}))
|
6209
|
-
if (__hasOwnProp$
|
6210
|
-
__defNormalProp$
|
6211
|
-
if (__getOwnPropSymbols$
|
6212
|
-
for (var prop of __getOwnPropSymbols$
|
6213
|
-
if (__propIsEnum$
|
6214
|
-
__defNormalProp$
|
6205
|
+
if (__hasOwnProp$o.call(b, prop))
|
6206
|
+
__defNormalProp$o(a, prop, b[prop]);
|
6207
|
+
if (__getOwnPropSymbols$o)
|
6208
|
+
for (var prop of __getOwnPropSymbols$o(b)) {
|
6209
|
+
if (__propIsEnum$o.call(b, prop))
|
6210
|
+
__defNormalProp$o(a, prop, b[prop]);
|
6215
6211
|
}
|
6216
6212
|
return a;
|
6217
6213
|
};
|
6218
|
-
var __spreadProps$
|
6214
|
+
var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
|
6219
6215
|
class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
6220
6216
|
constructor(state) {
|
6221
|
-
super(__spreadProps$
|
6217
|
+
super(__spreadProps$e(__spreadValues$o({}, state), {
|
6222
6218
|
timeZone: state.timeZone,
|
6223
6219
|
from: "now-6h",
|
6224
6220
|
to: "now",
|
@@ -6226,7 +6222,7 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6226
6222
|
}));
|
6227
6223
|
}
|
6228
6224
|
ancestorTimeRangeChanged(timeRange) {
|
6229
|
-
this.setState(__spreadProps$
|
6225
|
+
this.setState(__spreadProps$e(__spreadValues$o({}, timeRange), {
|
6230
6226
|
timeZone: this.state.timeZone,
|
6231
6227
|
value: evaluateTimeRange(
|
6232
6228
|
timeRange.from,
|
@@ -6254,25 +6250,25 @@ class SceneTimeZoneOverride extends SceneTimeRangeTransformerBase {
|
|
6254
6250
|
}
|
6255
6251
|
}
|
6256
6252
|
|
6257
|
-
var __defProp$
|
6258
|
-
var __defProps$
|
6259
|
-
var __getOwnPropDescs$
|
6260
|
-
var __getOwnPropSymbols$
|
6261
|
-
var __hasOwnProp$
|
6262
|
-
var __propIsEnum$
|
6263
|
-
var __defNormalProp$
|
6264
|
-
var __spreadValues$
|
6253
|
+
var __defProp$n = Object.defineProperty;
|
6254
|
+
var __defProps$d = Object.defineProperties;
|
6255
|
+
var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
|
6256
|
+
var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
|
6257
|
+
var __hasOwnProp$n = Object.prototype.hasOwnProperty;
|
6258
|
+
var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
|
6259
|
+
var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6260
|
+
var __spreadValues$n = (a, b) => {
|
6265
6261
|
for (var prop in b || (b = {}))
|
6266
|
-
if (__hasOwnProp$
|
6267
|
-
__defNormalProp$
|
6268
|
-
if (__getOwnPropSymbols$
|
6269
|
-
for (var prop of __getOwnPropSymbols$
|
6270
|
-
if (__propIsEnum$
|
6271
|
-
__defNormalProp$
|
6262
|
+
if (__hasOwnProp$n.call(b, prop))
|
6263
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6264
|
+
if (__getOwnPropSymbols$n)
|
6265
|
+
for (var prop of __getOwnPropSymbols$n(b)) {
|
6266
|
+
if (__propIsEnum$n.call(b, prop))
|
6267
|
+
__defNormalProp$n(a, prop, b[prop]);
|
6272
6268
|
}
|
6273
6269
|
return a;
|
6274
6270
|
};
|
6275
|
-
var __spreadProps$
|
6271
|
+
var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
|
6276
6272
|
class SceneDataLayerSetBase extends SceneObjectBase {
|
6277
6273
|
constructor() {
|
6278
6274
|
super(...arguments);
|
@@ -6296,7 +6292,7 @@ class SceneDataLayerSetBase extends SceneObjectBase {
|
|
6296
6292
|
series = series.concat(result.data.series);
|
6297
6293
|
}
|
6298
6294
|
}
|
6299
|
-
const combinedData = __spreadProps$
|
6295
|
+
const combinedData = __spreadProps$d(__spreadValues$n({}, emptyPanelData), { series });
|
6300
6296
|
this._results.next({ origin: this, data: combinedData });
|
6301
6297
|
this.setStateHelper({ data: combinedData });
|
6302
6298
|
}
|
@@ -6345,25 +6341,25 @@ SceneDataLayerSet.Component = ({ model }) => {
|
|
6345
6341
|
})));
|
6346
6342
|
};
|
6347
6343
|
|
6348
|
-
var __defProp$
|
6349
|
-
var __defProps$
|
6350
|
-
var __getOwnPropDescs$
|
6351
|
-
var __getOwnPropSymbols$
|
6352
|
-
var __hasOwnProp$
|
6353
|
-
var __propIsEnum$
|
6354
|
-
var __defNormalProp$
|
6355
|
-
var __spreadValues$
|
6344
|
+
var __defProp$m = Object.defineProperty;
|
6345
|
+
var __defProps$c = Object.defineProperties;
|
6346
|
+
var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
|
6347
|
+
var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
|
6348
|
+
var __hasOwnProp$m = Object.prototype.hasOwnProperty;
|
6349
|
+
var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
|
6350
|
+
var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6351
|
+
var __spreadValues$m = (a, b) => {
|
6356
6352
|
for (var prop in b || (b = {}))
|
6357
|
-
if (__hasOwnProp$
|
6358
|
-
__defNormalProp$
|
6359
|
-
if (__getOwnPropSymbols$
|
6360
|
-
for (var prop of __getOwnPropSymbols$
|
6361
|
-
if (__propIsEnum$
|
6362
|
-
__defNormalProp$
|
6353
|
+
if (__hasOwnProp$m.call(b, prop))
|
6354
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6355
|
+
if (__getOwnPropSymbols$m)
|
6356
|
+
for (var prop of __getOwnPropSymbols$m(b)) {
|
6357
|
+
if (__propIsEnum$m.call(b, prop))
|
6358
|
+
__defNormalProp$m(a, prop, b[prop]);
|
6363
6359
|
}
|
6364
6360
|
return a;
|
6365
6361
|
};
|
6366
|
-
var __spreadProps$
|
6362
|
+
var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
|
6367
6363
|
class SceneDataTransformer extends SceneObjectBase {
|
6368
6364
|
constructor(state) {
|
6369
6365
|
super(state);
|
@@ -6440,7 +6436,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6440
6436
|
const { series, annotations } = this._prevDataFromSource;
|
6441
6437
|
if (data.series === series && data.annotations === annotations) {
|
6442
6438
|
if (this.state.data && data.state !== this.state.data.state) {
|
6443
|
-
this.setState({ data: __spreadProps$
|
6439
|
+
this.setState({ data: __spreadProps$c(__spreadValues$m({}, this.state.data), { state: data.state }) });
|
6444
6440
|
}
|
6445
6441
|
return true;
|
6446
6442
|
}
|
@@ -6488,7 +6484,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6488
6484
|
rxjs.map((values) => {
|
6489
6485
|
const transformedSeries = values[0];
|
6490
6486
|
const transformedAnnotations = values[1];
|
6491
|
-
return __spreadProps$
|
6487
|
+
return __spreadProps$c(__spreadValues$m({}, data$1), {
|
6492
6488
|
series: transformedSeries,
|
6493
6489
|
annotations: transformedAnnotations != null ? transformedAnnotations : data$1.annotations
|
6494
6490
|
});
|
@@ -6499,7 +6495,7 @@ class SceneDataTransformer extends SceneObjectBase {
|
|
6499
6495
|
const sourceErr = ((_a2 = this.getSourceData().state.data) == null ? void 0 : _a2.errors) || [];
|
6500
6496
|
const transformationError = runtime.toDataQueryError(err);
|
6501
6497
|
transformationError.message = `Error transforming data: ${transformationError.message}`;
|
6502
|
-
const result = __spreadProps$
|
6498
|
+
const result = __spreadProps$c(__spreadValues$m({}, data$1), {
|
6503
6499
|
state: data.LoadingState.Error,
|
6504
6500
|
errors: [...sourceErr, transformationError]
|
6505
6501
|
});
|
@@ -6606,9 +6602,6 @@ class SceneVariableSet extends SceneObjectBase {
|
|
6606
6602
|
this._subs.add(
|
6607
6603
|
this.subscribeToEvent(SceneVariableValueChangedEvent, (event) => this._handleVariableValueChanged(event.payload))
|
6608
6604
|
);
|
6609
|
-
this._subs.add(
|
6610
|
-
this.subscribeToEvent(SceneVariableOptionsRefreshEvent, (event) => this._handleVariableOptionsUpdate(event.payload))
|
6611
|
-
);
|
6612
6605
|
this._subs.add(
|
6613
6606
|
timeRange.subscribeToState(() => {
|
6614
6607
|
this._refreshTimeRangeBasedVariables();
|
@@ -6750,10 +6743,6 @@ class SceneVariableSet extends SceneObjectBase {
|
|
6750
6743
|
console.error("SceneVariableSet updateAndValidate error", err);
|
6751
6744
|
writeVariableTraceLog(variable, "updateAndValidate error", err);
|
6752
6745
|
}
|
6753
|
-
_handleVariableOptionsUpdate(variable) {
|
6754
|
-
this._variablesToUpdate.add(variable);
|
6755
|
-
this._updateNextBatch();
|
6756
|
-
}
|
6757
6746
|
_handleVariableValueChanged(variableThatChanged) {
|
6758
6747
|
this._variablesThatHaveChanged.add(variableThatChanged);
|
6759
6748
|
this._addDependentVariablesToUpdateQueue(variableThatChanged);
|
@@ -6841,28 +6830,28 @@ class SceneVariableSetVariableDependencyHandler {
|
|
6841
6830
|
}
|
6842
6831
|
}
|
6843
6832
|
|
6844
|
-
var __defProp$
|
6845
|
-
var __defProps$
|
6846
|
-
var __getOwnPropDescs$
|
6847
|
-
var __getOwnPropSymbols$
|
6848
|
-
var __hasOwnProp$
|
6849
|
-
var __propIsEnum$
|
6850
|
-
var __defNormalProp$
|
6851
|
-
var __spreadValues$
|
6833
|
+
var __defProp$l = Object.defineProperty;
|
6834
|
+
var __defProps$b = Object.defineProperties;
|
6835
|
+
var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
|
6836
|
+
var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
|
6837
|
+
var __hasOwnProp$l = Object.prototype.hasOwnProperty;
|
6838
|
+
var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
|
6839
|
+
var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6840
|
+
var __spreadValues$l = (a, b) => {
|
6852
6841
|
for (var prop in b || (b = {}))
|
6853
|
-
if (__hasOwnProp$
|
6854
|
-
__defNormalProp$
|
6855
|
-
if (__getOwnPropSymbols$
|
6856
|
-
for (var prop of __getOwnPropSymbols$
|
6857
|
-
if (__propIsEnum$
|
6858
|
-
__defNormalProp$
|
6859
|
-
}
|
6860
|
-
return a;
|
6861
|
-
};
|
6862
|
-
var __spreadProps$
|
6842
|
+
if (__hasOwnProp$l.call(b, prop))
|
6843
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6844
|
+
if (__getOwnPropSymbols$l)
|
6845
|
+
for (var prop of __getOwnPropSymbols$l(b)) {
|
6846
|
+
if (__propIsEnum$l.call(b, prop))
|
6847
|
+
__defNormalProp$l(a, prop, b[prop]);
|
6848
|
+
}
|
6849
|
+
return a;
|
6850
|
+
};
|
6851
|
+
var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
|
6863
6852
|
class ConstantVariable extends SceneObjectBase {
|
6864
6853
|
constructor(initialState) {
|
6865
|
-
super(__spreadProps$
|
6854
|
+
super(__spreadProps$b(__spreadValues$l({
|
6866
6855
|
type: "constant",
|
6867
6856
|
value: "",
|
6868
6857
|
name: ""
|
@@ -6875,25 +6864,25 @@ class ConstantVariable extends SceneObjectBase {
|
|
6875
6864
|
}
|
6876
6865
|
}
|
6877
6866
|
|
6878
|
-
var __defProp$
|
6879
|
-
var __getOwnPropSymbols$
|
6880
|
-
var __hasOwnProp$
|
6881
|
-
var __propIsEnum$
|
6882
|
-
var __defNormalProp$
|
6883
|
-
var __spreadValues$
|
6867
|
+
var __defProp$k = Object.defineProperty;
|
6868
|
+
var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
|
6869
|
+
var __hasOwnProp$k = Object.prototype.hasOwnProperty;
|
6870
|
+
var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
|
6871
|
+
var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6872
|
+
var __spreadValues$k = (a, b) => {
|
6884
6873
|
for (var prop in b || (b = {}))
|
6885
|
-
if (__hasOwnProp$
|
6886
|
-
__defNormalProp$
|
6887
|
-
if (__getOwnPropSymbols$
|
6888
|
-
for (var prop of __getOwnPropSymbols$
|
6889
|
-
if (__propIsEnum$
|
6890
|
-
__defNormalProp$
|
6874
|
+
if (__hasOwnProp$k.call(b, prop))
|
6875
|
+
__defNormalProp$k(a, prop, b[prop]);
|
6876
|
+
if (__getOwnPropSymbols$k)
|
6877
|
+
for (var prop of __getOwnPropSymbols$k(b)) {
|
6878
|
+
if (__propIsEnum$k.call(b, prop))
|
6879
|
+
__defNormalProp$k(a, prop, b[prop]);
|
6891
6880
|
}
|
6892
6881
|
return a;
|
6893
6882
|
};
|
6894
6883
|
class CustomVariable extends MultiValueVariable {
|
6895
6884
|
constructor(initialState) {
|
6896
|
-
super(__spreadValues$
|
6885
|
+
super(__spreadValues$k({
|
6897
6886
|
type: "custom",
|
6898
6887
|
query: "",
|
6899
6888
|
value: "",
|
@@ -6927,25 +6916,25 @@ CustomVariable.Component = ({ model }) => {
|
|
6927
6916
|
return renderSelectForVariable(model);
|
6928
6917
|
};
|
6929
6918
|
|
6930
|
-
var __defProp$
|
6931
|
-
var __getOwnPropSymbols$
|
6932
|
-
var __hasOwnProp$
|
6933
|
-
var __propIsEnum$
|
6934
|
-
var __defNormalProp$
|
6935
|
-
var __spreadValues$
|
6919
|
+
var __defProp$j = Object.defineProperty;
|
6920
|
+
var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
|
6921
|
+
var __hasOwnProp$j = Object.prototype.hasOwnProperty;
|
6922
|
+
var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
|
6923
|
+
var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
6924
|
+
var __spreadValues$j = (a, b) => {
|
6936
6925
|
for (var prop in b || (b = {}))
|
6937
|
-
if (__hasOwnProp$
|
6938
|
-
__defNormalProp$
|
6939
|
-
if (__getOwnPropSymbols$
|
6940
|
-
for (var prop of __getOwnPropSymbols$
|
6941
|
-
if (__propIsEnum$
|
6942
|
-
__defNormalProp$
|
6926
|
+
if (__hasOwnProp$j.call(b, prop))
|
6927
|
+
__defNormalProp$j(a, prop, b[prop]);
|
6928
|
+
if (__getOwnPropSymbols$j)
|
6929
|
+
for (var prop of __getOwnPropSymbols$j(b)) {
|
6930
|
+
if (__propIsEnum$j.call(b, prop))
|
6931
|
+
__defNormalProp$j(a, prop, b[prop]);
|
6943
6932
|
}
|
6944
6933
|
return a;
|
6945
6934
|
};
|
6946
6935
|
class DataSourceVariable extends MultiValueVariable {
|
6947
6936
|
constructor(initialState) {
|
6948
|
-
super(__spreadValues$
|
6937
|
+
super(__spreadValues$j({
|
6949
6938
|
type: "datasource",
|
6950
6939
|
value: "",
|
6951
6940
|
text: "",
|
@@ -7029,25 +7018,25 @@ const hasCustomVariableSupport = (datasource) => {
|
|
7029
7018
|
return "query" in variableSupport && "editor" in variableSupport && Boolean(variableSupport.query) && Boolean(variableSupport.editor);
|
7030
7019
|
};
|
7031
7020
|
|
7032
|
-
var __defProp$
|
7033
|
-
var __defProps$
|
7034
|
-
var __getOwnPropDescs$
|
7035
|
-
var __getOwnPropSymbols$
|
7036
|
-
var __hasOwnProp$
|
7037
|
-
var __propIsEnum$
|
7038
|
-
var __defNormalProp$
|
7039
|
-
var __spreadValues$
|
7021
|
+
var __defProp$i = Object.defineProperty;
|
7022
|
+
var __defProps$a = Object.defineProperties;
|
7023
|
+
var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
|
7024
|
+
var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
|
7025
|
+
var __hasOwnProp$i = Object.prototype.hasOwnProperty;
|
7026
|
+
var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
|
7027
|
+
var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7028
|
+
var __spreadValues$i = (a, b) => {
|
7040
7029
|
for (var prop in b || (b = {}))
|
7041
|
-
if (__hasOwnProp$
|
7042
|
-
__defNormalProp$
|
7043
|
-
if (__getOwnPropSymbols$
|
7044
|
-
for (var prop of __getOwnPropSymbols$
|
7045
|
-
if (__propIsEnum$
|
7046
|
-
__defNormalProp$
|
7030
|
+
if (__hasOwnProp$i.call(b, prop))
|
7031
|
+
__defNormalProp$i(a, prop, b[prop]);
|
7032
|
+
if (__getOwnPropSymbols$i)
|
7033
|
+
for (var prop of __getOwnPropSymbols$i(b)) {
|
7034
|
+
if (__propIsEnum$i.call(b, prop))
|
7035
|
+
__defNormalProp$i(a, prop, b[prop]);
|
7047
7036
|
}
|
7048
7037
|
return a;
|
7049
7038
|
};
|
7050
|
-
var __spreadProps$
|
7039
|
+
var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
|
7051
7040
|
class StandardQueryRunner {
|
7052
7041
|
constructor(datasource, _runRequest = runtime.getRunRequest()) {
|
7053
7042
|
this.datasource = datasource;
|
@@ -7084,7 +7073,7 @@ class LegacyQueryRunner {
|
|
7084
7073
|
return getEmptyMetricFindValueObservable();
|
7085
7074
|
}
|
7086
7075
|
return rxjs.from(
|
7087
|
-
this.datasource.metricFindQuery(variable.state.query, __spreadProps$
|
7076
|
+
this.datasource.metricFindQuery(variable.state.query, __spreadProps$a(__spreadValues$i({}, request), {
|
7088
7077
|
variable: {
|
7089
7078
|
name: variable.state.name,
|
7090
7079
|
type: variable.state.type
|
@@ -7146,7 +7135,7 @@ function ensureVariableQueryModelIsADataQuery(variable) {
|
|
7146
7135
|
return { query, refId: `variable-${variable.state.name}` };
|
7147
7136
|
}
|
7148
7137
|
if (query.refId == null) {
|
7149
|
-
return __spreadProps$
|
7138
|
+
return __spreadProps$a(__spreadValues$i({}, query), { refId: `variable-${variable.state.name}` });
|
7150
7139
|
}
|
7151
7140
|
return variable.state.query;
|
7152
7141
|
}
|
@@ -7361,25 +7350,25 @@ function areMetricFindValues(data$1) {
|
|
7361
7350
|
return false;
|
7362
7351
|
}
|
7363
7352
|
|
7364
|
-
var __defProp$
|
7365
|
-
var __getOwnPropSymbols$
|
7366
|
-
var __hasOwnProp$
|
7367
|
-
var __propIsEnum$
|
7368
|
-
var __defNormalProp$
|
7369
|
-
var __spreadValues$
|
7353
|
+
var __defProp$h = Object.defineProperty;
|
7354
|
+
var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
|
7355
|
+
var __hasOwnProp$h = Object.prototype.hasOwnProperty;
|
7356
|
+
var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
|
7357
|
+
var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7358
|
+
var __spreadValues$h = (a, b) => {
|
7370
7359
|
for (var prop in b || (b = {}))
|
7371
|
-
if (__hasOwnProp$
|
7372
|
-
__defNormalProp$
|
7373
|
-
if (__getOwnPropSymbols$
|
7374
|
-
for (var prop of __getOwnPropSymbols$
|
7375
|
-
if (__propIsEnum$
|
7376
|
-
__defNormalProp$
|
7360
|
+
if (__hasOwnProp$h.call(b, prop))
|
7361
|
+
__defNormalProp$h(a, prop, b[prop]);
|
7362
|
+
if (__getOwnPropSymbols$h)
|
7363
|
+
for (var prop of __getOwnPropSymbols$h(b)) {
|
7364
|
+
if (__propIsEnum$h.call(b, prop))
|
7365
|
+
__defNormalProp$h(a, prop, b[prop]);
|
7377
7366
|
}
|
7378
7367
|
return a;
|
7379
7368
|
};
|
7380
7369
|
class QueryVariable extends MultiValueVariable {
|
7381
7370
|
constructor(initialState) {
|
7382
|
-
super(__spreadValues$
|
7371
|
+
super(__spreadValues$h({
|
7383
7372
|
type: "query",
|
7384
7373
|
name: "",
|
7385
7374
|
value: "",
|
@@ -7532,25 +7521,25 @@ function queryMetricTree(query) {
|
|
7532
7521
|
return queryTree(children, query.split("."), 0);
|
7533
7522
|
}
|
7534
7523
|
|
7535
|
-
var __defProp$
|
7536
|
-
var __getOwnPropSymbols$
|
7537
|
-
var __hasOwnProp$
|
7538
|
-
var __propIsEnum$
|
7539
|
-
var __defNormalProp$
|
7540
|
-
var __spreadValues$
|
7524
|
+
var __defProp$g = Object.defineProperty;
|
7525
|
+
var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
|
7526
|
+
var __hasOwnProp$g = Object.prototype.hasOwnProperty;
|
7527
|
+
var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
|
7528
|
+
var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7529
|
+
var __spreadValues$g = (a, b) => {
|
7541
7530
|
for (var prop in b || (b = {}))
|
7542
|
-
if (__hasOwnProp$
|
7543
|
-
__defNormalProp$
|
7544
|
-
if (__getOwnPropSymbols$
|
7545
|
-
for (var prop of __getOwnPropSymbols$
|
7546
|
-
if (__propIsEnum$
|
7547
|
-
__defNormalProp$
|
7531
|
+
if (__hasOwnProp$g.call(b, prop))
|
7532
|
+
__defNormalProp$g(a, prop, b[prop]);
|
7533
|
+
if (__getOwnPropSymbols$g)
|
7534
|
+
for (var prop of __getOwnPropSymbols$g(b)) {
|
7535
|
+
if (__propIsEnum$g.call(b, prop))
|
7536
|
+
__defNormalProp$g(a, prop, b[prop]);
|
7548
7537
|
}
|
7549
7538
|
return a;
|
7550
7539
|
};
|
7551
7540
|
class TestVariable extends MultiValueVariable {
|
7552
7541
|
constructor(initialState, isLazy = false) {
|
7553
|
-
super(__spreadValues$
|
7542
|
+
super(__spreadValues$g({
|
7554
7543
|
type: "custom",
|
7555
7544
|
name: "Test",
|
7556
7545
|
value: "Value",
|
@@ -7659,25 +7648,25 @@ function VariableValueInput({ model }) {
|
|
7659
7648
|
});
|
7660
7649
|
}
|
7661
7650
|
|
7662
|
-
var __defProp$
|
7663
|
-
var __getOwnPropSymbols$
|
7664
|
-
var __hasOwnProp$
|
7665
|
-
var __propIsEnum$
|
7666
|
-
var __defNormalProp$
|
7667
|
-
var __spreadValues$
|
7651
|
+
var __defProp$f = Object.defineProperty;
|
7652
|
+
var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
|
7653
|
+
var __hasOwnProp$f = Object.prototype.hasOwnProperty;
|
7654
|
+
var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
|
7655
|
+
var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7656
|
+
var __spreadValues$f = (a, b) => {
|
7668
7657
|
for (var prop in b || (b = {}))
|
7669
|
-
if (__hasOwnProp$
|
7670
|
-
__defNormalProp$
|
7671
|
-
if (__getOwnPropSymbols$
|
7672
|
-
for (var prop of __getOwnPropSymbols$
|
7673
|
-
if (__propIsEnum$
|
7674
|
-
__defNormalProp$
|
7658
|
+
if (__hasOwnProp$f.call(b, prop))
|
7659
|
+
__defNormalProp$f(a, prop, b[prop]);
|
7660
|
+
if (__getOwnPropSymbols$f)
|
7661
|
+
for (var prop of __getOwnPropSymbols$f(b)) {
|
7662
|
+
if (__propIsEnum$f.call(b, prop))
|
7663
|
+
__defNormalProp$f(a, prop, b[prop]);
|
7675
7664
|
}
|
7676
7665
|
return a;
|
7677
7666
|
};
|
7678
7667
|
class TextBoxVariable extends SceneObjectBase {
|
7679
7668
|
constructor(initialState) {
|
7680
|
-
super(__spreadValues$
|
7669
|
+
super(__spreadValues$f({
|
7681
7670
|
type: "textbox",
|
7682
7671
|
value: "",
|
7683
7672
|
name: ""
|
@@ -7714,28 +7703,28 @@ TextBoxVariable.Component = ({ model }) => {
|
|
7714
7703
|
});
|
7715
7704
|
};
|
7716
7705
|
|
7717
|
-
var __defProp$
|
7718
|
-
var __defProps$
|
7719
|
-
var __getOwnPropDescs$
|
7720
|
-
var __getOwnPropSymbols$
|
7721
|
-
var __hasOwnProp$
|
7722
|
-
var __propIsEnum$
|
7723
|
-
var __defNormalProp$
|
7724
|
-
var __spreadValues$
|
7706
|
+
var __defProp$e = Object.defineProperty;
|
7707
|
+
var __defProps$9 = Object.defineProperties;
|
7708
|
+
var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
|
7709
|
+
var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
|
7710
|
+
var __hasOwnProp$e = Object.prototype.hasOwnProperty;
|
7711
|
+
var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
|
7712
|
+
var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7713
|
+
var __spreadValues$e = (a, b) => {
|
7725
7714
|
for (var prop in b || (b = {}))
|
7726
|
-
if (__hasOwnProp$
|
7727
|
-
__defNormalProp$
|
7728
|
-
if (__getOwnPropSymbols$
|
7729
|
-
for (var prop of __getOwnPropSymbols$
|
7730
|
-
if (__propIsEnum$
|
7731
|
-
__defNormalProp$
|
7715
|
+
if (__hasOwnProp$e.call(b, prop))
|
7716
|
+
__defNormalProp$e(a, prop, b[prop]);
|
7717
|
+
if (__getOwnPropSymbols$e)
|
7718
|
+
for (var prop of __getOwnPropSymbols$e(b)) {
|
7719
|
+
if (__propIsEnum$e.call(b, prop))
|
7720
|
+
__defNormalProp$e(a, prop, b[prop]);
|
7732
7721
|
}
|
7733
7722
|
return a;
|
7734
7723
|
};
|
7735
|
-
var __spreadProps$
|
7724
|
+
var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
|
7736
7725
|
class LocalValueVariable extends SceneObjectBase {
|
7737
7726
|
constructor(initialState) {
|
7738
|
-
super(__spreadProps$
|
7727
|
+
super(__spreadProps$9(__spreadValues$e({
|
7739
7728
|
type: "system",
|
7740
7729
|
value: "",
|
7741
7730
|
text: "",
|
@@ -7767,25 +7756,25 @@ class LocalValueVariable extends SceneObjectBase {
|
|
7767
7756
|
}
|
7768
7757
|
}
|
7769
7758
|
|
7770
|
-
var __defProp$
|
7771
|
-
var __getOwnPropSymbols$
|
7772
|
-
var __hasOwnProp$
|
7773
|
-
var __propIsEnum$
|
7774
|
-
var __defNormalProp$
|
7775
|
-
var __spreadValues$
|
7759
|
+
var __defProp$d = Object.defineProperty;
|
7760
|
+
var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
|
7761
|
+
var __hasOwnProp$d = Object.prototype.hasOwnProperty;
|
7762
|
+
var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
|
7763
|
+
var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
7764
|
+
var __spreadValues$d = (a, b) => {
|
7776
7765
|
for (var prop in b || (b = {}))
|
7777
|
-
if (__hasOwnProp$
|
7778
|
-
__defNormalProp$
|
7779
|
-
if (__getOwnPropSymbols$
|
7780
|
-
for (var prop of __getOwnPropSymbols$
|
7781
|
-
if (__propIsEnum$
|
7782
|
-
__defNormalProp$
|
7766
|
+
if (__hasOwnProp$d.call(b, prop))
|
7767
|
+
__defNormalProp$d(a, prop, b[prop]);
|
7768
|
+
if (__getOwnPropSymbols$d)
|
7769
|
+
for (var prop of __getOwnPropSymbols$d(b)) {
|
7770
|
+
if (__propIsEnum$d.call(b, prop))
|
7771
|
+
__defNormalProp$d(a, prop, b[prop]);
|
7783
7772
|
}
|
7784
7773
|
return a;
|
7785
7774
|
};
|
7786
7775
|
class IntervalVariable extends SceneObjectBase {
|
7787
7776
|
constructor(initialState) {
|
7788
|
-
super(__spreadValues$
|
7777
|
+
super(__spreadValues$d({
|
7789
7778
|
type: "interval",
|
7790
7779
|
value: "",
|
7791
7780
|
intervals: ["1m", "10m", "30m", "1h", "6h", "12h", "1d", "7d", "14d", "30d"],
|
@@ -7871,6 +7860,422 @@ IntervalVariable.Component = ({ model }) => {
|
|
7871
7860
|
});
|
7872
7861
|
};
|
7873
7862
|
|
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 { refs, floatingStyles, context } = react.useFloating({
|
7924
|
+
whileElementsMounted: react.autoUpdate,
|
7925
|
+
open,
|
7926
|
+
onOpenChange: (nextOpen, _, reason) => {
|
7927
|
+
setOpen(nextOpen);
|
7928
|
+
if (reason === "outside-press") {
|
7929
|
+
handleChangeViewMode == null ? void 0 : handleChangeViewMode();
|
7930
|
+
}
|
7931
|
+
},
|
7932
|
+
middleware: [
|
7933
|
+
react.flip({ padding: 10 }),
|
7934
|
+
react.size({
|
7935
|
+
apply({ rects, availableHeight, elements }) {
|
7936
|
+
Object.assign(elements.floating.style, {
|
7937
|
+
width: `${rects.reference.width}px`,
|
7938
|
+
maxHeight: `${availableHeight > 256 ? 256 : availableHeight}px`
|
7939
|
+
});
|
7940
|
+
},
|
7941
|
+
padding: 10
|
7942
|
+
})
|
7943
|
+
]
|
7944
|
+
});
|
7945
|
+
const role = react.useRole(context, { role: "listbox" });
|
7946
|
+
const dismiss = react.useDismiss(context, {
|
7947
|
+
outsidePress: (event) => {
|
7948
|
+
var _a2;
|
7949
|
+
return !event.currentTarget.classList.contains(
|
7950
|
+
`${(_a2 = filterToUse == null ? void 0 : filterToUse.key) != null ? _a2 : ""}-operator`
|
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
|
+
const value = event.target.value;
|
7964
|
+
setInputValue(value);
|
7965
|
+
setActiveIndex(0);
|
7966
|
+
}
|
7967
|
+
const items = options.filter(
|
7968
|
+
(item) => {
|
7969
|
+
var _a2, _b;
|
7970
|
+
return (_b = (_a2 = item.label) != null ? _a2 : item.value) == null ? void 0 : _b.toLocaleLowerCase().startsWith(inputValue.toLowerCase());
|
7971
|
+
}
|
7972
|
+
);
|
7973
|
+
React.useEffect(() => {
|
7974
|
+
if (wip && !_wip) {
|
7975
|
+
model._addWip();
|
7976
|
+
}
|
7977
|
+
}, [_wip]);
|
7978
|
+
React.useEffect(() => {
|
7979
|
+
if (!wip && refs.domReference.current) {
|
7980
|
+
setInputType("value");
|
7981
|
+
setInputValue("");
|
7982
|
+
refs.domReference.current.focus();
|
7983
|
+
}
|
7984
|
+
}, []);
|
7985
|
+
return /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, filterToUse ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
7986
|
+
className: styles.pillWrapper
|
7987
|
+
}, (filterToUse == null ? void 0 : filterToUse.key) ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
7988
|
+
className: css.cx(styles.basePill, styles.keyPill)
|
7989
|
+
}, filterToUse.key) : null, (filterToUse == null ? void 0 : filterToUse.key) && (filterToUse == null ? void 0 : filterToUse.operator) && inputType !== "operator" ? /* @__PURE__ */ React__default["default"].createElement("div", {
|
7990
|
+
className: css.cx(styles.basePill, `${(_a = filterToUse == null ? void 0 : filterToUse.key) != null ? _a : ""}-operator`),
|
7991
|
+
role: "button",
|
7992
|
+
"aria-label": "Edit filter operator",
|
7993
|
+
tabIndex: 0,
|
7994
|
+
onClick: () => {
|
7995
|
+
var _a2;
|
7996
|
+
reactDom.flushSync(() => {
|
7997
|
+
setInputType("operator");
|
7998
|
+
});
|
7999
|
+
(_a2 = refs.domReference.current) == null ? void 0 : _a2.focus();
|
8000
|
+
},
|
8001
|
+
onKeyDown: (e) => {
|
8002
|
+
var _a2;
|
8003
|
+
if (e.key === "Enter") {
|
8004
|
+
reactDom.flushSync(() => {
|
8005
|
+
setInputType("operator");
|
8006
|
+
});
|
8007
|
+
(_a2 = refs.domReference.current) == null ? void 0 : _a2.focus();
|
8008
|
+
}
|
8009
|
+
}
|
8010
|
+
}, 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", {
|
8011
|
+
className: css.cx(styles.basePill, styles.valuePill)
|
8012
|
+
}, filterToUse.value) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$8(__spreadValues$c({}, getReferenceProps({
|
8013
|
+
ref: refs.setReference,
|
8014
|
+
onChange,
|
8015
|
+
value: inputValue,
|
8016
|
+
placeholder: !wip ? inputType === "operator" ? `${filterToUse[inputType]} ${filterToUse.value || ""}` : filterToUse[inputType] : "Filter by label values",
|
8017
|
+
"aria-autocomplete": "list",
|
8018
|
+
onKeyDown(event) {
|
8019
|
+
var _a2;
|
8020
|
+
if (event.key === "Enter" && activeIndex != null && items[activeIndex]) {
|
8021
|
+
model._updateFilter(filterToUse, inputType, items[activeIndex]);
|
8022
|
+
setInputValue("");
|
8023
|
+
reactDom.flushSync(() => {
|
8024
|
+
if (inputType === "key") {
|
8025
|
+
setInputType("operator");
|
8026
|
+
} else if (inputType === "operator") {
|
8027
|
+
setInputType("value");
|
8028
|
+
} else if (inputType === "value") {
|
8029
|
+
setInputType("key");
|
8030
|
+
handleChangeViewMode == null ? void 0 : handleChangeViewMode();
|
8031
|
+
}
|
8032
|
+
});
|
8033
|
+
(_a2 = refs.domReference.current) == null ? void 0 : _a2.focus();
|
8034
|
+
}
|
8035
|
+
}
|
8036
|
+
})), {
|
8037
|
+
className: styles.inputStyle,
|
8038
|
+
key: inputType,
|
8039
|
+
onFocus: async () => {
|
8040
|
+
let options2 = [];
|
8041
|
+
if (inputType === "key") {
|
8042
|
+
options2 = await model._getKeys(null);
|
8043
|
+
} else if (inputType === "operator") {
|
8044
|
+
options2 = model._getOperators();
|
8045
|
+
} else if (inputType === "value") {
|
8046
|
+
options2 = await model._getValuesFor(filterToUse);
|
8047
|
+
}
|
8048
|
+
setActiveIndex(0);
|
8049
|
+
setOptions(options2);
|
8050
|
+
setOpen(true);
|
8051
|
+
}
|
8052
|
+
})), /* @__PURE__ */ React__default["default"].createElement(react.FloatingPortal, null, open && /* @__PURE__ */ React__default["default"].createElement(react.FloatingFocusManager, {
|
8053
|
+
context,
|
8054
|
+
initialFocus: -1,
|
8055
|
+
visuallyHiddenDismiss: true
|
8056
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$8(__spreadValues$c({}, getFloatingProps({
|
8057
|
+
ref: refs.setFloating,
|
8058
|
+
style: __spreadProps$8(__spreadValues$c({}, floatingStyles), {
|
8059
|
+
overflowY: "auto"
|
8060
|
+
})
|
8061
|
+
})), {
|
8062
|
+
className: styles.dropdownWrapper
|
8063
|
+
}), items.map((item, index) => {
|
8064
|
+
var _a2;
|
8065
|
+
return /* @__PURE__ */ React__default["default"].createElement(Item, __spreadProps$8(__spreadValues$c({}, getItemProps({
|
8066
|
+
key: item.value,
|
8067
|
+
ref(node) {
|
8068
|
+
listRef.current[index] = node;
|
8069
|
+
},
|
8070
|
+
onClick() {
|
8071
|
+
var _a3;
|
8072
|
+
model._updateFilter(filterToUse, inputType, item);
|
8073
|
+
setInputValue("");
|
8074
|
+
reactDom.flushSync(() => {
|
8075
|
+
if (inputType === "key") {
|
8076
|
+
setInputType("operator");
|
8077
|
+
} else if (inputType === "operator") {
|
8078
|
+
setInputType("value");
|
8079
|
+
} else if (inputType === "value") {
|
8080
|
+
setInputType("key");
|
8081
|
+
handleChangeViewMode == null ? void 0 : handleChangeViewMode();
|
8082
|
+
}
|
8083
|
+
});
|
8084
|
+
(_a3 = refs.domReference.current) == null ? void 0 : _a3.focus();
|
8085
|
+
}
|
8086
|
+
})), {
|
8087
|
+
active: activeIndex === index
|
8088
|
+
}), (_a2 = item.label) != null ? _a2 : item.value);
|
8089
|
+
})))));
|
8090
|
+
}
|
8091
|
+
const getStyles2$1 = (theme) => ({
|
8092
|
+
pillWrapper: css.css({
|
8093
|
+
display: "flex",
|
8094
|
+
alignItems: "center",
|
8095
|
+
whiteSpace: "nowrap"
|
8096
|
+
}),
|
8097
|
+
basePill: css.css(__spreadProps$8(__spreadValues$c({
|
8098
|
+
display: "flex",
|
8099
|
+
alignItems: "center",
|
8100
|
+
background: theme.colors.action.disabledBackground,
|
8101
|
+
border: `1px solid ${theme.colors.border.weak}`,
|
8102
|
+
padding: theme.spacing(0.125, 1, 0.125, 1),
|
8103
|
+
color: theme.colors.text.primary,
|
8104
|
+
overflow: "hidden",
|
8105
|
+
whiteSpace: "nowrap",
|
8106
|
+
minHeight: "22px"
|
8107
|
+
}, theme.typography.bodySmall), {
|
8108
|
+
cursor: "pointer"
|
8109
|
+
})),
|
8110
|
+
keyPill: css.css({
|
8111
|
+
fontWeight: theme.typography.fontWeightBold,
|
8112
|
+
cursor: "default"
|
8113
|
+
}),
|
8114
|
+
valuePill: css.css({
|
8115
|
+
background: theme.colors.action.selected
|
8116
|
+
}),
|
8117
|
+
dropdownWrapper: css.css({
|
8118
|
+
backgroundColor: theme.colors.background.primary,
|
8119
|
+
color: theme.colors.text.primary,
|
8120
|
+
boxShadow: theme.shadows.z2
|
8121
|
+
}),
|
8122
|
+
inputStyle: css.css({
|
8123
|
+
paddingBlock: 0,
|
8124
|
+
"&:focus": {
|
8125
|
+
outline: "none"
|
8126
|
+
}
|
8127
|
+
})
|
8128
|
+
});
|
8129
|
+
function AdHocFilterEditSwitch({ filter, model }) {
|
8130
|
+
const styles = ui.useStyles2(getStyles3);
|
8131
|
+
const [viewMode, setViewMode] = React.useState(true);
|
8132
|
+
const wrapRef = React.useRef(null);
|
8133
|
+
const handleChangeViewMode = React.useCallback(() => {
|
8134
|
+
reactDom.flushSync(() => {
|
8135
|
+
setViewMode((mode) => !mode);
|
8136
|
+
});
|
8137
|
+
if (wrapRef.current) {
|
8138
|
+
wrapRef.current.focus();
|
8139
|
+
}
|
8140
|
+
}, []);
|
8141
|
+
if (viewMode) {
|
8142
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
8143
|
+
className: styles.combinedFilterPill,
|
8144
|
+
onClick: handleChangeViewMode,
|
8145
|
+
onKeyDown: (e) => {
|
8146
|
+
if (e.key === "Enter") {
|
8147
|
+
handleChangeViewMode();
|
8148
|
+
}
|
8149
|
+
},
|
8150
|
+
role: "button",
|
8151
|
+
"aria-label": "Edit filter",
|
8152
|
+
tabIndex: 0,
|
8153
|
+
ref: wrapRef
|
8154
|
+
}, /* @__PURE__ */ React__default["default"].createElement("span", null, filter.key, " ", filter.operator, " ", filter.value), /* @__PURE__ */ React__default["default"].createElement(ui.IconButton, {
|
8155
|
+
onClick: (e) => {
|
8156
|
+
e.stopPropagation();
|
8157
|
+
model._removeFilter(filter);
|
8158
|
+
},
|
8159
|
+
onKeyDown: (e) => {
|
8160
|
+
if (e.key === "Enter") {
|
8161
|
+
e.stopPropagation();
|
8162
|
+
model._removeFilter(filter);
|
8163
|
+
}
|
8164
|
+
},
|
8165
|
+
name: "times",
|
8166
|
+
size: "md",
|
8167
|
+
className: styles.removeButton,
|
8168
|
+
tooltip: "Remove filter"
|
8169
|
+
}));
|
8170
|
+
}
|
8171
|
+
return /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
|
8172
|
+
filter,
|
8173
|
+
model,
|
8174
|
+
handleChangeViewMode
|
8175
|
+
});
|
8176
|
+
}
|
8177
|
+
const getStyles3 = (theme) => ({
|
8178
|
+
wrapper: css.css({
|
8179
|
+
display: "flex",
|
8180
|
+
flexWrap: "wrap",
|
8181
|
+
alignItems: "center",
|
8182
|
+
columnGap: theme.spacing(1),
|
8183
|
+
rowGap: theme.spacing(1),
|
8184
|
+
minHeight: theme.spacing(4),
|
8185
|
+
backgroundColor: theme.components.input.background,
|
8186
|
+
border: `1px solid ${theme.colors.border.strong}`,
|
8187
|
+
borderRadius: theme.shape.radius.default,
|
8188
|
+
paddingInline: theme.spacing(1),
|
8189
|
+
"&:focus-within": {
|
8190
|
+
outline: "2px dotted transparent",
|
8191
|
+
outlineOffset: "2px",
|
8192
|
+
boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
|
8193
|
+
transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
|
8194
|
+
transitionDuration: "0.2s",
|
8195
|
+
transitionProperty: "outline, outline-offset, box-shadow"
|
8196
|
+
}
|
8197
|
+
}),
|
8198
|
+
filterIcon: css.css({
|
8199
|
+
color: theme.colors.text.secondary,
|
8200
|
+
alignSelf: "center"
|
8201
|
+
}),
|
8202
|
+
combinedFilterPill: css.css(__spreadProps$8(__spreadValues$c({
|
8203
|
+
display: "flex",
|
8204
|
+
alignItems: "center",
|
8205
|
+
background: theme.colors.action.selected,
|
8206
|
+
borderRadius: theme.shape.radius.default,
|
8207
|
+
border: `1px solid ${theme.colors.border.weak}`,
|
8208
|
+
padding: theme.spacing(0.125, 0, 0.125, 1),
|
8209
|
+
color: theme.colors.text.primary,
|
8210
|
+
overflow: "hidden",
|
8211
|
+
whiteSpace: "nowrap",
|
8212
|
+
minHeight: "22px"
|
8213
|
+
}, theme.typography.bodySmall), {
|
8214
|
+
fontWeight: theme.typography.fontWeightBold,
|
8215
|
+
cursor: "pointer",
|
8216
|
+
"&:hover": {
|
8217
|
+
background: theme.colors.emphasize(theme.colors.background.secondary)
|
8218
|
+
}
|
8219
|
+
})),
|
8220
|
+
removeButton: css.css({
|
8221
|
+
marginInline: theme.spacing(0.5),
|
8222
|
+
cursor: "pointer",
|
8223
|
+
"&:hover": {
|
8224
|
+
color: theme.colors.text.primary
|
8225
|
+
}
|
8226
|
+
})
|
8227
|
+
});
|
8228
|
+
|
8229
|
+
class AdHocFiltersVariableV2 extends AdHocFiltersVariable {
|
8230
|
+
}
|
8231
|
+
AdHocFiltersVariableV2.Component = AdHocFiltersVariableRendererV2;
|
8232
|
+
function AdHocFiltersVariableRendererV2({ model }) {
|
8233
|
+
const { filters } = model.useState();
|
8234
|
+
const styles = ui.useStyles2(getStyles2);
|
8235
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
8236
|
+
className: styles.wrapper
|
8237
|
+
}, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
|
8238
|
+
name: "filter",
|
8239
|
+
className: styles.filterIcon,
|
8240
|
+
size: "lg"
|
8241
|
+
}), filters.map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFilterEditSwitch, {
|
8242
|
+
key: index,
|
8243
|
+
filter,
|
8244
|
+
model
|
8245
|
+
})), /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
|
8246
|
+
model,
|
8247
|
+
wip: true
|
8248
|
+
}));
|
8249
|
+
}
|
8250
|
+
const getStyles2 = (theme) => ({
|
8251
|
+
wrapper: css.css({
|
8252
|
+
display: "flex",
|
8253
|
+
flexWrap: "wrap",
|
8254
|
+
alignItems: "center",
|
8255
|
+
columnGap: theme.spacing(1),
|
8256
|
+
rowGap: theme.spacing(0.5),
|
8257
|
+
minHeight: theme.spacing(4),
|
8258
|
+
backgroundColor: theme.components.input.background,
|
8259
|
+
border: `1px solid ${theme.colors.border.strong}`,
|
8260
|
+
borderRadius: theme.shape.radius.default,
|
8261
|
+
paddingInline: theme.spacing(1),
|
8262
|
+
paddingBlock: theme.spacing(0.5),
|
8263
|
+
flexGrow: 1,
|
8264
|
+
"&:focus-within": {
|
8265
|
+
outline: "2px dotted transparent",
|
8266
|
+
outlineOffset: "2px",
|
8267
|
+
boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
|
8268
|
+
transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
|
8269
|
+
transitionDuration: "0.2s",
|
8270
|
+
transitionProperty: "outline, outline-offset, box-shadow"
|
8271
|
+
}
|
8272
|
+
}),
|
8273
|
+
filterIcon: css.css({
|
8274
|
+
color: theme.colors.text.secondary,
|
8275
|
+
alignSelf: "center"
|
8276
|
+
})
|
8277
|
+
});
|
8278
|
+
|
7874
8279
|
var __accessCheck = (obj, member, msg) => {
|
7875
8280
|
if (!member.has(obj))
|
7876
8281
|
throw TypeError("Cannot " + msg);
|
@@ -11550,6 +11955,7 @@ const sceneUtils = {
|
|
11550
11955
|
};
|
11551
11956
|
|
11552
11957
|
exports.AdHocFiltersVariable = AdHocFiltersVariable;
|
11958
|
+
exports.AdHocFiltersVariableV2 = AdHocFiltersVariableV2;
|
11553
11959
|
exports.ConstantVariable = ConstantVariable;
|
11554
11960
|
exports.CustomVariable = CustomVariable;
|
11555
11961
|
exports.DataSourceVariable = DataSourceVariable;
|
@@ -11600,7 +12006,6 @@ exports.SceneTimeRangeTransformerBase = SceneTimeRangeTransformerBase;
|
|
11600
12006
|
exports.SceneTimeZoneOverride = SceneTimeZoneOverride;
|
11601
12007
|
exports.SceneToolbarButton = SceneToolbarButton;
|
11602
12008
|
exports.SceneToolbarInput = SceneToolbarInput;
|
11603
|
-
exports.SceneVariableOptionsRefreshEvent = SceneVariableOptionsRefreshEvent;
|
11604
12009
|
exports.SceneVariableSet = SceneVariableSet;
|
11605
12010
|
exports.SceneVariableValueChangedEvent = SceneVariableValueChangedEvent;
|
11606
12011
|
exports.SplitLayout = SplitLayout;
|