@grafana/scenes 5.38.0--canary.1028.12889195833.0 → 5.38.0--canary.1030.12908050920.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/dist/esm/components/VizPanel/VizPanelRenderer.js +1 -11
- package/dist/esm/components/VizPanel/VizPanelRenderer.js.map +1 -1
- package/dist/esm/core/types.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersVariable.js +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersVariable.js.map +1 -1
- package/dist/esm/variables/sets/SceneVariableSet.js +1 -6
- package/dist/esm/variables/sets/SceneVariableSet.js.map +1 -1
- package/dist/index.d.ts +314 -317
- package/dist/index.js +3 -18
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -5527,7 +5527,7 @@ const getStyles$9 = (theme) => ({
|
|
5527
5527
|
function toSelectableValue(input) {
|
5528
5528
|
const { text, value } = input;
|
5529
5529
|
const result = {
|
5530
|
-
label: text,
|
5530
|
+
label: String(text),
|
5531
5531
|
value: String(value != null ? value : text)
|
5532
5532
|
};
|
5533
5533
|
if ("group" in input) {
|
@@ -7358,7 +7358,6 @@ function VizPanelRenderer({ model }) {
|
|
7358
7358
|
);
|
7359
7359
|
const plugin = model.getPlugin();
|
7360
7360
|
const { dragClass, dragClassCancel } = getDragClasses(model);
|
7361
|
-
const dragHooks = getDragHooks(model);
|
7362
7361
|
const dataObject = sceneGraph.getData(model);
|
7363
7362
|
const rawData = dataObject.useState();
|
7364
7363
|
const dataWithSeriesLimit = useDataWithSeriesLimit(rawData.data, seriesLimit, seriesLimitShowAll);
|
@@ -7490,11 +7489,7 @@ function VizPanelRenderer({ model }) {
|
|
7490
7489
|
onMouseMove: debouncedMouseMove,
|
7491
7490
|
collapsible,
|
7492
7491
|
collapsed,
|
7493
|
-
onToggleCollapse: model.onToggleCollapse
|
7494
|
-
onDragStart: (e) => {
|
7495
|
-
var _a2;
|
7496
|
-
(_a2 = dragHooks.onDragStart) == null ? void 0 : _a2.call(dragHooks, e, model);
|
7497
|
-
}
|
7492
|
+
onToggleCollapse: model.onToggleCollapse
|
7498
7493
|
}, (innerWidth, innerHeight) => /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement(ui.ErrorBoundaryAlert, {
|
7499
7494
|
dependencies: [plugin, data$1]
|
7500
7495
|
}, /* @__PURE__ */ React__default["default"].createElement(data.PluginContextProvider, {
|
@@ -7539,11 +7534,6 @@ function getDragClasses(panel) {
|
|
7539
7534
|
}
|
7540
7535
|
return { dragClass: (_a = parentLayout.getDragClass) == null ? void 0 : _a.call(parentLayout), dragClassCancel: (_b = parentLayout == null ? void 0 : parentLayout.getDragClassCancel) == null ? void 0 : _b.call(parentLayout) };
|
7541
7536
|
}
|
7542
|
-
function getDragHooks(panel) {
|
7543
|
-
var _a, _b;
|
7544
|
-
const parentLayout = sceneGraph.getLayout(panel);
|
7545
|
-
return (_b = (_a = parentLayout == null ? void 0 : parentLayout.getDragHooks) == null ? void 0 : _a.call(parentLayout)) != null ? _b : {};
|
7546
|
-
}
|
7547
7537
|
function itemDraggingDisabled(item, layout) {
|
7548
7538
|
let ancestor = item.parent;
|
7549
7539
|
while (ancestor && ancestor !== layout) {
|
@@ -9581,12 +9571,7 @@ class SceneVariableSet extends SceneObjectBase {
|
|
9581
9571
|
if (!sceneObject.isActive) {
|
9582
9572
|
return;
|
9583
9573
|
}
|
9584
|
-
if (sceneObject.state.$variables && sceneObject.state.$variables !== this)
|
9585
|
-
const localVar = sceneObject.state.$variables.getByName(variable.state.name);
|
9586
|
-
if (localVar) {
|
9587
|
-
return;
|
9588
|
-
}
|
9589
|
-
}
|
9574
|
+
if (sceneObject.state.$variables && sceneObject.state.$variables !== this) ;
|
9590
9575
|
if (sceneObject.variableDependency) {
|
9591
9576
|
sceneObject.variableDependency.variableUpdateCompleted(variable, hasChanged);
|
9592
9577
|
}
|