@grafana/scenes 5.4.2--canary.830.9989651797.0 → 5.4.2--canary.830.9989928012.0

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -43,19 +43,19 @@ var uFuzzy__default = /*#__PURE__*/_interopDefaultLegacy(uFuzzy);
43
43
  var ReactGridLayout__default = /*#__PURE__*/_interopDefaultLegacy(ReactGridLayout);
44
44
  var AutoSizer__default = /*#__PURE__*/_interopDefaultLegacy(AutoSizer);
45
45
 
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) => {
46
+ var __defProp$M = Object.defineProperty;
47
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
48
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
49
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
50
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
51
+ var __spreadValues$M = (a, b) => {
52
52
  for (var prop in b || (b = {}))
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]);
53
+ if (__hasOwnProp$M.call(b, prop))
54
+ __defNormalProp$M(a, prop, b[prop]);
55
+ if (__getOwnPropSymbols$M)
56
+ for (var prop of __getOwnPropSymbols$M(b)) {
57
+ if (__propIsEnum$M.call(b, prop))
58
+ __defNormalProp$M(a, prop, b[prop]);
59
59
  }
60
60
  return a;
61
61
  };
@@ -64,7 +64,7 @@ function useAppQueryParams() {
64
64
  return runtime.locationSearchToObject(location.search || "");
65
65
  }
66
66
  function getUrlWithAppState(path, preserveParams) {
67
- const paramsCopy = __spreadValues$L({}, runtime.locationService.getSearchObject());
67
+ const paramsCopy = __spreadValues$M({}, runtime.locationService.getSearchObject());
68
68
  if (preserveParams) {
69
69
  for (const key of Object.keys(paramsCopy)) {
70
70
  if (!preserveParams.includes(key)) {
@@ -78,31 +78,31 @@ function renderSceneComponentWithRouteProps(sceneObject, routeProps) {
78
78
  return React__default["default"].createElement(sceneObject.Component, { model: sceneObject, routeProps });
79
79
  }
80
80
 
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) => {
81
+ var __defProp$L = Object.defineProperty;
82
+ var __defProps$v = Object.defineProperties;
83
+ var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
84
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
85
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
86
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
87
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
88
+ var __spreadValues$L = (a, b) => {
89
89
  for (var prop in b || (b = {}))
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]);
90
+ if (__hasOwnProp$L.call(b, prop))
91
+ __defNormalProp$L(a, prop, b[prop]);
92
+ if (__getOwnPropSymbols$L)
93
+ for (var prop of __getOwnPropSymbols$L(b)) {
94
+ if (__propIsEnum$L.call(b, prop))
95
+ __defNormalProp$L(a, prop, b[prop]);
96
96
  }
97
97
  return a;
98
98
  };
99
- var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
99
+ var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
100
100
  const runtimePanelPlugins = /* @__PURE__ */ new Map();
101
101
  function registerRuntimePanelPlugin({ pluginId, plugin }) {
102
102
  if (runtimePanelPlugins.has(pluginId)) {
103
103
  throw new Error(`A runtime panel plugin with id ${pluginId} has already been registered`);
104
104
  }
105
- plugin.meta = __spreadProps$u(__spreadValues$K({}, plugin.meta), {
105
+ plugin.meta = __spreadProps$v(__spreadValues$L({}, plugin.meta), {
106
106
  id: pluginId,
107
107
  name: pluginId,
108
108
  module: "runtime plugin",
@@ -130,33 +130,33 @@ function loadPanelPluginSync(pluginId) {
130
130
  return (_a = getPanelPluginFromCache(pluginId)) != null ? _a : runtimePanelPlugins.get(pluginId);
131
131
  }
132
132
 
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) => {
133
+ var __defProp$K = Object.defineProperty;
134
+ var __defProps$u = Object.defineProperties;
135
+ var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
136
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
137
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
138
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
139
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
140
+ var __spreadValues$K = (a, b) => {
141
141
  for (var prop in b || (b = {}))
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]);
142
+ if (__hasOwnProp$K.call(b, prop))
143
+ __defNormalProp$K(a, prop, b[prop]);
144
+ if (__getOwnPropSymbols$K)
145
+ for (var prop of __getOwnPropSymbols$K(b)) {
146
+ if (__propIsEnum$K.call(b, prop))
147
+ __defNormalProp$K(a, prop, b[prop]);
148
148
  }
149
149
  return a;
150
150
  };
151
- var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
151
+ var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
152
152
  var __objRest$5 = (source, exclude) => {
153
153
  var target = {};
154
154
  for (var prop in source)
155
- if (__hasOwnProp$J.call(source, prop) && exclude.indexOf(prop) < 0)
155
+ if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0)
156
156
  target[prop] = source[prop];
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))
157
+ if (source != null && __getOwnPropSymbols$K)
158
+ for (var prop of __getOwnPropSymbols$K(source)) {
159
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop))
160
160
  target[prop] = source[prop];
161
161
  }
162
162
  return target;
@@ -174,7 +174,7 @@ function SceneComponentWrapperWithoutMemo(_a) {
174
174
  if (!model.isActive) {
175
175
  return null;
176
176
  }
177
- return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$t(__spreadValues$J({}, otherProps), {
177
+ return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$u(__spreadValues$K({}, otherProps), {
178
178
  model
179
179
  }));
180
180
  }
@@ -220,19 +220,19 @@ class SceneObjectRef {
220
220
  }
221
221
  _ref = new WeakMap();
222
222
 
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) => {
223
+ var __defProp$J = Object.defineProperty;
224
+ var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
225
+ var __hasOwnProp$J = Object.prototype.hasOwnProperty;
226
+ var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
227
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
228
+ var __spreadValues$J = (a, b) => {
229
229
  for (var prop in b || (b = {}))
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]);
230
+ if (__hasOwnProp$J.call(b, prop))
231
+ __defNormalProp$J(a, prop, b[prop]);
232
+ if (__getOwnPropSymbols$J)
233
+ for (var prop of __getOwnPropSymbols$J(b)) {
234
+ if (__propIsEnum$J.call(b, prop))
235
+ __defNormalProp$J(a, prop, b[prop]);
236
236
  }
237
237
  return a;
238
238
  };
@@ -292,7 +292,7 @@ class SceneObjectBase {
292
292
  }
293
293
  setState(update) {
294
294
  const prevState = this._state;
295
- const newState = __spreadValues$I(__spreadValues$I({}, this._state), update);
295
+ const newState = __spreadValues$J(__spreadValues$J({}, this._state), update);
296
296
  this._state = Object.freeze(newState);
297
297
  this._setParent(update);
298
298
  this._handleActivationOfChangedStateProps(prevState, newState);
@@ -488,19 +488,19 @@ function forEachChild(state, callback) {
488
488
  }
489
489
  }
490
490
 
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) => {
491
+ var __defProp$I = Object.defineProperty;
492
+ var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
493
+ var __hasOwnProp$I = Object.prototype.hasOwnProperty;
494
+ var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
495
+ var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
496
+ var __spreadValues$I = (a, b) => {
497
497
  for (var prop in b || (b = {}))
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]);
498
+ if (__hasOwnProp$I.call(b, prop))
499
+ __defNormalProp$I(a, prop, b[prop]);
500
+ if (__getOwnPropSymbols$I)
501
+ for (var prop of __getOwnPropSymbols$I(b)) {
502
+ if (__propIsEnum$I.call(b, prop))
503
+ __defNormalProp$I(a, prop, b[prop]);
504
504
  }
505
505
  return a;
506
506
  };
@@ -509,7 +509,7 @@ function cloneSceneObject(sceneObject, withState) {
509
509
  return new sceneObject.constructor(clonedState);
510
510
  }
511
511
  function cloneSceneObjectState(sceneState, withState) {
512
- const clonedState = __spreadValues$H({}, sceneState);
512
+ const clonedState = __spreadValues$I({}, sceneState);
513
513
  for (const key in clonedState) {
514
514
  const propValue = clonedState[key];
515
515
  if (propValue instanceof SceneObjectBase) {
@@ -606,25 +606,25 @@ function lookupVariable(name, sceneObject) {
606
606
  return null;
607
607
  }
608
608
 
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) => {
609
+ var __defProp$H = Object.defineProperty;
610
+ var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
611
+ var __hasOwnProp$H = Object.prototype.hasOwnProperty;
612
+ var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
613
+ var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
614
+ var __spreadValues$H = (a, b) => {
615
615
  for (var prop in b || (b = {}))
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]);
616
+ if (__hasOwnProp$H.call(b, prop))
617
+ __defNormalProp$H(a, prop, b[prop]);
618
+ if (__getOwnPropSymbols$H)
619
+ for (var prop of __getOwnPropSymbols$H(b)) {
620
+ if (__propIsEnum$H.call(b, prop))
621
+ __defNormalProp$H(a, prop, b[prop]);
622
622
  }
623
623
  return a;
624
624
  };
625
625
  class SceneDataNode extends SceneObjectBase {
626
626
  constructor(state) {
627
- super(__spreadValues$G({
627
+ super(__spreadValues$H({
628
628
  data: emptyPanelData
629
629
  }, state));
630
630
  }
@@ -705,19 +705,19 @@ function evaluateTimeRange(from, to, timeZone, fiscalYearStartMonth, delay) {
705
705
  };
706
706
  }
707
707
 
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) => {
708
+ var __defProp$G = Object.defineProperty;
709
+ var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
710
+ var __hasOwnProp$G = Object.prototype.hasOwnProperty;
711
+ var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
712
+ var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
713
+ var __spreadValues$G = (a, b) => {
714
714
  for (var prop in b || (b = {}))
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]);
715
+ if (__hasOwnProp$G.call(b, prop))
716
+ __defNormalProp$G(a, prop, b[prop]);
717
+ if (__getOwnPropSymbols$G)
718
+ for (var prop of __getOwnPropSymbols$G(b)) {
719
+ if (__propIsEnum$G.call(b, prop))
720
+ __defNormalProp$G(a, prop, b[prop]);
721
721
  }
722
722
  return a;
723
723
  };
@@ -734,7 +734,7 @@ class SceneTimeRange extends SceneObjectBase {
734
734
  state.fiscalYearStartMonth,
735
735
  state.UNSAFE_nowDelay
736
736
  );
737
- super(__spreadValues$F({ from, to, timeZone, value }, state));
737
+ super(__spreadValues$G({ from, to, timeZone, value }, state));
738
738
  this._urlSync = new SceneObjectUrlSyncConfig(this, { keys: ["from", "to", "timezone"] });
739
739
  this.onTimeRangeChange = (timeRange) => {
740
740
  const update = {};
@@ -1364,25 +1364,25 @@ function collectAllVariables(sceneObject, record = {}) {
1364
1364
  return record;
1365
1365
  }
1366
1366
 
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) => {
1367
+ var __defProp$F = Object.defineProperty;
1368
+ var __defProps$t = Object.defineProperties;
1369
+ var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
1370
+ var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
1371
+ var __hasOwnProp$F = Object.prototype.hasOwnProperty;
1372
+ var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
1373
+ var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1374
+ var __spreadValues$F = (a, b) => {
1375
1375
  for (var prop in b || (b = {}))
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]);
1376
+ if (__hasOwnProp$F.call(b, prop))
1377
+ __defNormalProp$F(a, prop, b[prop]);
1378
+ if (__getOwnPropSymbols$F)
1379
+ for (var prop of __getOwnPropSymbols$F(b)) {
1380
+ if (__propIsEnum$F.call(b, prop))
1381
+ __defNormalProp$F(a, prop, b[prop]);
1382
1382
  }
1383
1383
  return a;
1384
1384
  };
1385
- var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
1385
+ var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
1386
1386
  function getTemplateProxyForField(field, frame, frames) {
1387
1387
  return new Proxy(
1388
1388
  {},
@@ -1398,7 +1398,7 @@ function getTemplateProxyForField(field, frame, frames) {
1398
1398
  if (!field.labels) {
1399
1399
  return "";
1400
1400
  }
1401
- return __spreadProps$s(__spreadValues$E({}, field.labels), {
1401
+ return __spreadProps$t(__spreadValues$F({}, field.labels), {
1402
1402
  __values: Object.values(field.labels).sort().join(", "),
1403
1403
  toString: () => {
1404
1404
  return data.formatLabels(field.labels, "", true);
@@ -2283,25 +2283,25 @@ function isExtraQueryProvider(obj) {
2283
2283
  return typeof obj === "object" && "getExtraQueries" in obj;
2284
2284
  }
2285
2285
 
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) => {
2286
+ var __defProp$E = Object.defineProperty;
2287
+ var __defProps$s = Object.defineProperties;
2288
+ var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
2289
+ var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
2290
+ var __hasOwnProp$E = Object.prototype.hasOwnProperty;
2291
+ var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
2292
+ var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2293
+ var __spreadValues$E = (a, b) => {
2294
2294
  for (var prop in b || (b = {}))
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]);
2295
+ if (__hasOwnProp$E.call(b, prop))
2296
+ __defNormalProp$E(a, prop, b[prop]);
2297
+ if (__getOwnPropSymbols$E)
2298
+ for (var prop of __getOwnPropSymbols$E(b)) {
2299
+ if (__propIsEnum$E.call(b, prop))
2300
+ __defNormalProp$E(a, prop, b[prop]);
2301
2301
  }
2302
2302
  return a;
2303
2303
  };
2304
- var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
2304
+ var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
2305
2305
  const passthroughProcessor = (_, secondary) => rxjs.of(secondary);
2306
2306
  const extraQueryProcessingOperator = (processors) => (data) => {
2307
2307
  return data.pipe(
@@ -2314,7 +2314,7 @@ const extraQueryProcessingOperator = (processors) => (data) => {
2314
2314
  }),
2315
2315
  rxjs.map(([primary, ...processedSecondaries]) => {
2316
2316
  var _a;
2317
- return __spreadProps$r(__spreadValues$D({}, primary), {
2317
+ return __spreadProps$s(__spreadValues$E({}, primary), {
2318
2318
  series: [...primary.series, ...processedSecondaries.flatMap((s) => s.series)],
2319
2319
  annotations: [...(_a = primary.annotations) != null ? _a : [], ...processedSecondaries.flatMap((s) => {
2320
2320
  var _a2;
@@ -2325,25 +2325,25 @@ const extraQueryProcessingOperator = (processors) => (data) => {
2325
2325
  );
2326
2326
  };
2327
2327
 
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) => {
2328
+ var __defProp$D = Object.defineProperty;
2329
+ var __defProps$r = Object.defineProperties;
2330
+ var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
2331
+ var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
2332
+ var __hasOwnProp$D = Object.prototype.hasOwnProperty;
2333
+ var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
2334
+ var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2335
+ var __spreadValues$D = (a, b) => {
2336
2336
  for (var prop in b || (b = {}))
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]);
2337
+ if (__hasOwnProp$D.call(b, prop))
2338
+ __defNormalProp$D(a, prop, b[prop]);
2339
+ if (__getOwnPropSymbols$D)
2340
+ for (var prop of __getOwnPropSymbols$D(b)) {
2341
+ if (__propIsEnum$D.call(b, prop))
2342
+ __defNormalProp$D(a, prop, b[prop]);
2343
2343
  }
2344
2344
  return a;
2345
2345
  };
2346
- var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
2346
+ var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
2347
2347
  function filterAnnotations(data, filters) {
2348
2348
  var _a;
2349
2349
  if (!Array.isArray(data) || data.length === 0) {
@@ -2394,11 +2394,11 @@ function filterAnnotations(data, filters) {
2394
2394
  continue;
2395
2395
  }
2396
2396
  }
2397
- fields.push(__spreadProps$q(__spreadValues$C({}, field), {
2397
+ fields.push(__spreadProps$r(__spreadValues$D({}, field), {
2398
2398
  values: buffer
2399
2399
  }));
2400
2400
  }
2401
- processed.push(__spreadProps$q(__spreadValues$C({}, frame), {
2401
+ processed.push(__spreadProps$r(__spreadValues$D({}, frame), {
2402
2402
  fields,
2403
2403
  length: frameLength
2404
2404
  }));
@@ -2824,33 +2824,33 @@ function getOptionSearcher(options, includeAll) {
2824
2824
  };
2825
2825
  }
2826
2826
 
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) => {
2827
+ var __defProp$C = Object.defineProperty;
2828
+ var __defProps$q = Object.defineProperties;
2829
+ var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
2830
+ var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
2831
+ var __hasOwnProp$C = Object.prototype.hasOwnProperty;
2832
+ var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
2833
+ var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2834
+ var __spreadValues$C = (a, b) => {
2835
2835
  for (var prop in b || (b = {}))
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]);
2836
+ if (__hasOwnProp$C.call(b, prop))
2837
+ __defNormalProp$C(a, prop, b[prop]);
2838
+ if (__getOwnPropSymbols$C)
2839
+ for (var prop of __getOwnPropSymbols$C(b)) {
2840
+ if (__propIsEnum$C.call(b, prop))
2841
+ __defNormalProp$C(a, prop, b[prop]);
2842
2842
  }
2843
2843
  return a;
2844
2844
  };
2845
- var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
2845
+ var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
2846
2846
  var __objRest$4 = (source, exclude) => {
2847
2847
  var target = {};
2848
2848
  for (var prop in source)
2849
- if (__hasOwnProp$B.call(source, prop) && exclude.indexOf(prop) < 0)
2849
+ if (__hasOwnProp$C.call(source, prop) && exclude.indexOf(prop) < 0)
2850
2850
  target[prop] = source[prop];
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))
2851
+ if (source != null && __getOwnPropSymbols$C)
2852
+ for (var prop of __getOwnPropSymbols$C(source)) {
2853
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$C.call(source, prop))
2854
2854
  target[prop] = source[prop];
2855
2855
  }
2856
2856
  return target;
@@ -2982,7 +2982,7 @@ const OptionWithCheckbox = ({
2982
2982
  const theme = ui.useTheme2();
2983
2983
  const selectStyles = ui.getSelectStyles(theme);
2984
2984
  const optionStyles = ui.useStyles2(getOptionStyles);
2985
- return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$p(__spreadValues$B({
2985
+ return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$q(__spreadValues$C({
2986
2986
  ref: innerRef,
2987
2987
  className: css.cx(selectStyles.option, isFocused && selectStyles.optionFocused)
2988
2988
  }, rest), {
@@ -3084,28 +3084,28 @@ function getEnrichedFiltersRequest(sourceRunner) {
3084
3084
  return null;
3085
3085
  }
3086
3086
 
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) => {
3087
+ var __defProp$B = Object.defineProperty;
3088
+ var __defProps$p = Object.defineProperties;
3089
+ var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
3090
+ var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
3091
+ var __hasOwnProp$B = Object.prototype.hasOwnProperty;
3092
+ var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
3093
+ var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3094
+ var __spreadValues$B = (a, b) => {
3095
3095
  for (var prop in b || (b = {}))
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]);
3096
+ if (__hasOwnProp$B.call(b, prop))
3097
+ __defNormalProp$B(a, prop, b[prop]);
3098
+ if (__getOwnPropSymbols$B)
3099
+ for (var prop of __getOwnPropSymbols$B(b)) {
3100
+ if (__propIsEnum$B.call(b, prop))
3101
+ __defNormalProp$B(a, prop, b[prop]);
3102
3102
  }
3103
3103
  return a;
3104
3104
  };
3105
- var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
3105
+ var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
3106
3106
  class GroupByVariable extends MultiValueVariable {
3107
3107
  constructor(initialState) {
3108
- super(__spreadProps$o(__spreadValues$A({
3108
+ super(__spreadProps$p(__spreadValues$B({
3109
3109
  isMulti: true,
3110
3110
  name: "",
3111
3111
  value: [],
@@ -3138,7 +3138,7 @@ class GroupByVariable extends MultiValueVariable {
3138
3138
  const queries = getQueriesForVariables(this);
3139
3139
  const otherFilters = this.state.baseFilters || [];
3140
3140
  const timeRange = sceneGraph.getTimeRange(this).state.value;
3141
- const response = await ds.getTagKeys(__spreadValues$A({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
3141
+ const response = await ds.getTagKeys(__spreadValues$B({ filters: otherFilters, queries, timeRange }, getEnrichedFiltersRequest(this)));
3142
3142
  if (responseHasError(response)) {
3143
3143
  this.setState({ error: response.error.message });
3144
3144
  }
@@ -3329,7 +3329,7 @@ function LoadingIndicator(props) {
3329
3329
  }
3330
3330
 
3331
3331
  function ControlsLabel(props) {
3332
- const styles = ui.useStyles2(getStyles$a);
3332
+ const styles = ui.useStyles2(getStyles$c);
3333
3333
  const theme = ui.useTheme2();
3334
3334
  const isVertical = props.layout === "vertical";
3335
3335
  const loadingIndicator = Boolean(props.isLoading) ? /* @__PURE__ */ React__default["default"].createElement("div", {
@@ -3392,7 +3392,7 @@ function ControlsLabel(props) {
3392
3392
  }
3393
3393
  return labelElement;
3394
3394
  }
3395
- const getStyles$a = (theme) => ({
3395
+ const getStyles$c = (theme) => ({
3396
3396
  horizontalLabel: css.css({
3397
3397
  background: theme.isDark ? theme.colors.background.primary : theme.colors.background.secondary,
3398
3398
  display: `flex`,
@@ -3472,7 +3472,7 @@ function keyLabelToOption(key, label) {
3472
3472
  const filterNoOp = () => true;
3473
3473
  function AdHocFilterRenderer({ filter, model }) {
3474
3474
  var _a, _b;
3475
- const styles = ui.useStyles2(getStyles$9);
3475
+ const styles = ui.useStyles2(getStyles$b);
3476
3476
  const [keys, setKeys] = React.useState([]);
3477
3477
  const [values, setValues] = React.useState([]);
3478
3478
  const [isKeysLoading, setIsKeysLoading] = React.useState(false);
@@ -3613,7 +3613,7 @@ function AdHocFilterRenderer({ filter, model }) {
3613
3613
  onClick: () => model._removeFilter(filter)
3614
3614
  }));
3615
3615
  }
3616
- const getStyles$9 = (theme) => ({
3616
+ const getStyles$b = (theme) => ({
3617
3617
  field: css.css({
3618
3618
  marginBottom: 0
3619
3619
  }),
@@ -3751,33 +3751,33 @@ function isFilter(filter) {
3751
3751
  return filter !== null && typeof filter.key === "string" && typeof filter.value === "string";
3752
3752
  }
3753
3753
 
3754
- var __defProp$z = Object.defineProperty;
3755
- var __defProps$n = Object.defineProperties;
3756
- var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
3757
- var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
3758
- var __hasOwnProp$z = Object.prototype.hasOwnProperty;
3759
- var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
3760
- var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3761
- var __spreadValues$z = (a, b) => {
3754
+ var __defProp$A = Object.defineProperty;
3755
+ var __defProps$o = Object.defineProperties;
3756
+ var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
3757
+ var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
3758
+ var __hasOwnProp$A = Object.prototype.hasOwnProperty;
3759
+ var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
3760
+ var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3761
+ var __spreadValues$A = (a, b) => {
3762
3762
  for (var prop in b || (b = {}))
3763
- if (__hasOwnProp$z.call(b, prop))
3764
- __defNormalProp$z(a, prop, b[prop]);
3765
- if (__getOwnPropSymbols$z)
3766
- for (var prop of __getOwnPropSymbols$z(b)) {
3767
- if (__propIsEnum$z.call(b, prop))
3768
- __defNormalProp$z(a, prop, b[prop]);
3763
+ if (__hasOwnProp$A.call(b, prop))
3764
+ __defNormalProp$A(a, prop, b[prop]);
3765
+ if (__getOwnPropSymbols$A)
3766
+ for (var prop of __getOwnPropSymbols$A(b)) {
3767
+ if (__propIsEnum$A.call(b, prop))
3768
+ __defNormalProp$A(a, prop, b[prop]);
3769
3769
  }
3770
3770
  return a;
3771
3771
  };
3772
- var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
3772
+ var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
3773
3773
  var __objRest$3 = (source, exclude) => {
3774
3774
  var target = {};
3775
3775
  for (var prop in source)
3776
- if (__hasOwnProp$z.call(source, prop) && exclude.indexOf(prop) < 0)
3776
+ if (__hasOwnProp$A.call(source, prop) && exclude.indexOf(prop) < 0)
3777
3777
  target[prop] = source[prop];
3778
- if (source != null && __getOwnPropSymbols$z)
3779
- for (var prop of __getOwnPropSymbols$z(source)) {
3780
- if (exclude.indexOf(prop) < 0 && __propIsEnum$z.call(source, prop))
3778
+ if (source != null && __getOwnPropSymbols$A)
3779
+ for (var prop of __getOwnPropSymbols$A(source)) {
3780
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$A.call(source, prop))
3781
3781
  target[prop] = source[prop];
3782
3782
  }
3783
3783
  return target;
@@ -3788,7 +3788,7 @@ const Item = React.forwardRef(
3788
3788
  const theme = ui.useTheme2();
3789
3789
  const selectStyles = ui.getSelectStyles(theme);
3790
3790
  const id = react.useId();
3791
- return /* @__PURE__ */ React__default["default"].createElement("div", __spreadValues$z({
3791
+ return /* @__PURE__ */ React__default["default"].createElement("div", __spreadValues$A({
3792
3792
  ref,
3793
3793
  role: "option",
3794
3794
  id,
@@ -4008,7 +4008,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
4008
4008
  }
4009
4009
  }, 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", {
4010
4010
  className: css.cx(styles.basePill, styles.valuePill)
4011
- }, filterToUse.value) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$n(__spreadValues$z({}, getReferenceProps({
4011
+ }, filterToUse.value) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$o(__spreadValues$A({}, getReferenceProps({
4012
4012
  ref: refs.setReference,
4013
4013
  onChange,
4014
4014
  value: inputValue,
@@ -4036,16 +4036,16 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
4036
4036
  context,
4037
4037
  initialFocus: -1,
4038
4038
  visuallyHiddenDismiss: true
4039
- }, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$n(__spreadValues$z({}, getFloatingProps({
4039
+ }, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$o(__spreadValues$A({}, getFloatingProps({
4040
4040
  ref: refs.setFloating,
4041
- style: __spreadProps$n(__spreadValues$z({}, floatingStyles), {
4041
+ style: __spreadProps$o(__spreadValues$A({}, floatingStyles), {
4042
4042
  overflowY: "auto"
4043
4043
  })
4044
4044
  })), {
4045
4045
  className: styles.dropdownWrapper
4046
4046
  }), items.map((item, index) => {
4047
4047
  var _a2;
4048
- return /* @__PURE__ */ React__default["default"].createElement(Item, __spreadProps$n(__spreadValues$z({}, getItemProps({
4048
+ return /* @__PURE__ */ React__default["default"].createElement(Item, __spreadProps$o(__spreadValues$A({}, getItemProps({
4049
4049
  key: item.value,
4050
4050
  ref(node) {
4051
4051
  listRef.current[index] = node;
@@ -4079,7 +4079,7 @@ const getStyles2 = (theme) => ({
4079
4079
  alignItems: "center",
4080
4080
  whiteSpace: "nowrap"
4081
4081
  }),
4082
- basePill: css.css(__spreadProps$n(__spreadValues$z({
4082
+ basePill: css.css(__spreadProps$o(__spreadValues$A({
4083
4083
  display: "flex",
4084
4084
  alignItems: "center",
4085
4085
  background: theme.colors.action.disabledBackground,
@@ -4111,8 +4111,28 @@ const getStyles2 = (theme) => ({
4111
4111
  }
4112
4112
  })
4113
4113
  });
4114
- function AdHocFilterEditSwitch({ filter, model }) {
4115
- const styles = ui.useStyles2(getStyles3);
4114
+
4115
+ var __defProp$z = Object.defineProperty;
4116
+ var __defProps$n = Object.defineProperties;
4117
+ var __getOwnPropDescs$n = Object.getOwnPropertyDescriptors;
4118
+ var __getOwnPropSymbols$z = Object.getOwnPropertySymbols;
4119
+ var __hasOwnProp$z = Object.prototype.hasOwnProperty;
4120
+ var __propIsEnum$z = Object.prototype.propertyIsEnumerable;
4121
+ var __defNormalProp$z = (obj, key, value) => key in obj ? __defProp$z(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4122
+ var __spreadValues$z = (a, b) => {
4123
+ for (var prop in b || (b = {}))
4124
+ if (__hasOwnProp$z.call(b, prop))
4125
+ __defNormalProp$z(a, prop, b[prop]);
4126
+ if (__getOwnPropSymbols$z)
4127
+ for (var prop of __getOwnPropSymbols$z(b)) {
4128
+ if (__propIsEnum$z.call(b, prop))
4129
+ __defNormalProp$z(a, prop, b[prop]);
4130
+ }
4131
+ return a;
4132
+ };
4133
+ var __spreadProps$n = (a, b) => __defProps$n(a, __getOwnPropDescs$n(b));
4134
+ function AdHocFiltersComboboxEditSwitch({ filter, model }) {
4135
+ const styles = ui.useStyles2(getStyles$a);
4116
4136
  const [viewMode, setViewMode] = React.useState(true);
4117
4137
  const pillWrapperRef = React.useRef(null);
4118
4138
  const handleChangeViewMode = React.useCallback((event) => {
@@ -4166,7 +4186,7 @@ function AdHocFilterEditSwitch({ filter, model }) {
4166
4186
  handleChangeViewMode
4167
4187
  });
4168
4188
  }
4169
- const getStyles3 = (theme) => ({
4189
+ const getStyles$a = (theme) => ({
4170
4190
  wrapper: css.css({
4171
4191
  display: "flex",
4172
4192
  flexWrap: "wrap",
@@ -4214,6 +4234,61 @@ const getStyles3 = (theme) => ({
4214
4234
  })
4215
4235
  });
4216
4236
 
4237
+ const AdHocFiltersComboboxRenderer = React.memo(function AdHocFiltersComboboxRenderer2({
4238
+ model
4239
+ }) {
4240
+ const { filters } = model.useState();
4241
+ const styles = ui.useStyles2(getStyles$9);
4242
+ const focusOnInputRef = React.useRef();
4243
+ return /* @__PURE__ */ React__default["default"].createElement("div", {
4244
+ className: styles.comboboxWrapper,
4245
+ onClick: () => {
4246
+ var _a;
4247
+ (_a = focusOnInputRef.current) == null ? void 0 : _a.call(focusOnInputRef);
4248
+ }
4249
+ }, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
4250
+ name: "filter",
4251
+ className: styles.filterIcon,
4252
+ size: "lg"
4253
+ }), filters.map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFiltersComboboxEditSwitch, {
4254
+ key: index,
4255
+ filter,
4256
+ model
4257
+ })), /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
4258
+ model,
4259
+ wip: true,
4260
+ ref: focusOnInputRef
4261
+ }));
4262
+ });
4263
+ const getStyles$9 = (theme) => ({
4264
+ comboboxWrapper: css.css({
4265
+ display: "flex",
4266
+ flexWrap: "wrap",
4267
+ alignItems: "center",
4268
+ columnGap: theme.spacing(1),
4269
+ rowGap: theme.spacing(0.5),
4270
+ minHeight: theme.spacing(4),
4271
+ backgroundColor: theme.components.input.background,
4272
+ border: `1px solid ${theme.colors.border.strong}`,
4273
+ borderRadius: theme.shape.radius.default,
4274
+ paddingInline: theme.spacing(1),
4275
+ paddingBlock: theme.spacing(0.5),
4276
+ flexGrow: 1,
4277
+ "&:focus-within": {
4278
+ outline: "2px dotted transparent",
4279
+ outlineOffset: "2px",
4280
+ boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
4281
+ transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
4282
+ transitionDuration: "0.2s",
4283
+ transitionProperty: "outline, outline-offset, box-shadow"
4284
+ }
4285
+ }),
4286
+ filterIcon: css.css({
4287
+ color: theme.colors.text.secondary,
4288
+ alignSelf: "center"
4289
+ })
4290
+ });
4291
+
4217
4292
  var __defProp$y = Object.defineProperty;
4218
4293
  var __defProps$m = Object.defineProperties;
4219
4294
  var __getOwnPropDescs$m = Object.getOwnPropertyDescriptors;
@@ -4386,27 +4461,10 @@ function renderExpression(builder, filters) {
4386
4461
  function AdHocFiltersVariableRenderer({ model }) {
4387
4462
  const { filters, readOnly, addFilterButtonText } = model.useState();
4388
4463
  const styles = ui.useStyles2(getStyles$8);
4389
- const focusOnInputRef = React.useRef();
4390
4464
  if (model.state.layout === "combobox") {
4391
- return /* @__PURE__ */ React__default["default"].createElement("div", {
4392
- className: styles.comboboxWrapper,
4393
- onClick: () => {
4394
- var _a;
4395
- (_a = focusOnInputRef.current) == null ? void 0 : _a.call(focusOnInputRef);
4396
- }
4397
- }, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
4398
- name: "filter",
4399
- className: styles.filterIcon,
4400
- size: "lg"
4401
- }), filters.map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFilterEditSwitch, {
4402
- key: index,
4403
- filter,
4465
+ return /* @__PURE__ */ React__default["default"].createElement(AdHocFiltersComboboxRenderer, {
4404
4466
  model
4405
- })), /* @__PURE__ */ React__default["default"].createElement(AdHocCombobox, {
4406
- model,
4407
- wip: true,
4408
- ref: focusOnInputRef
4409
- }));
4467
+ });
4410
4468
  }
4411
4469
  return /* @__PURE__ */ React__default["default"].createElement("div", {
4412
4470
  className: styles.wrapper
@@ -4428,32 +4486,6 @@ const getStyles$8 = (theme) => ({
4428
4486
  alignItems: "flex-end",
4429
4487
  columnGap: theme.spacing(2),
4430
4488
  rowGap: theme.spacing(1)
4431
- }),
4432
- comboboxWrapper: css.css({
4433
- display: "flex",
4434
- flexWrap: "wrap",
4435
- alignItems: "center",
4436
- columnGap: theme.spacing(1),
4437
- rowGap: theme.spacing(0.5),
4438
- minHeight: theme.spacing(4),
4439
- backgroundColor: theme.components.input.background,
4440
- border: `1px solid ${theme.colors.border.strong}`,
4441
- borderRadius: theme.shape.radius.default,
4442
- paddingInline: theme.spacing(1),
4443
- paddingBlock: theme.spacing(0.5),
4444
- flexGrow: 1,
4445
- "&:focus-within": {
4446
- outline: "2px dotted transparent",
4447
- outlineOffset: "2px",
4448
- boxShadow: `0 0 0 2px ${theme.colors.background.canvas}, 0 0 0px 4px ${theme.colors.primary.main}`,
4449
- transitionTimingFunction: `cubic-bezier(0.19, 1, 0.22, 1)`,
4450
- transitionDuration: "0.2s",
4451
- transitionProperty: "outline, outline-offset, box-shadow"
4452
- }
4453
- }),
4454
- filterIcon: css.css({
4455
- color: theme.colors.text.secondary,
4456
- alignSelf: "center"
4457
4489
  })
4458
4490
  });
4459
4491
  function toSelectableValue(input) {