@grafana/scenes 5.36.1--canary.1015.12484333229.0 → 5.36.1--canary.961.12544951331.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersComboboxRenderer.js +77 -6
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersComboboxRenderer.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/utils.js +13 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/utils.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersVariable.js.map +1 -1
- package/dist/esm/variables/variants/query/utils.js +22 -22
- package/dist/esm/variables/variants/query/utils.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +377 -296
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
@@ -41,19 +41,19 @@ var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
41
41
|
var uFuzzy__default = /*#__PURE__*/_interopDefaultLegacy(uFuzzy);
|
42
42
|
var ReactGridLayout__default = /*#__PURE__*/_interopDefaultLegacy(ReactGridLayout);
|
43
43
|
|
44
|
-
var __defProp$
|
45
|
-
var __getOwnPropSymbols$
|
46
|
-
var __hasOwnProp$
|
47
|
-
var __propIsEnum$
|
48
|
-
var __defNormalProp$
|
49
|
-
var __spreadValues$
|
44
|
+
var __defProp$R = Object.defineProperty;
|
45
|
+
var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
|
46
|
+
var __hasOwnProp$R = Object.prototype.hasOwnProperty;
|
47
|
+
var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
|
48
|
+
var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
49
|
+
var __spreadValues$R = (a, b) => {
|
50
50
|
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$
|
51
|
+
if (__hasOwnProp$R.call(b, prop))
|
52
|
+
__defNormalProp$R(a, prop, b[prop]);
|
53
|
+
if (__getOwnPropSymbols$R)
|
54
|
+
for (var prop of __getOwnPropSymbols$R(b)) {
|
55
|
+
if (__propIsEnum$R.call(b, prop))
|
56
|
+
__defNormalProp$R(a, prop, b[prop]);
|
57
57
|
}
|
58
58
|
return a;
|
59
59
|
};
|
@@ -62,7 +62,7 @@ function useAppQueryParams() {
|
|
62
62
|
return runtime.locationSearchToObject(location.search || "");
|
63
63
|
}
|
64
64
|
function getUrlWithAppState(path, searchObject, preserveParams) {
|
65
|
-
const paramsCopy = __spreadValues$
|
65
|
+
const paramsCopy = __spreadValues$R({}, searchObject);
|
66
66
|
if (preserveParams) {
|
67
67
|
for (const key of Object.keys(paramsCopy)) {
|
68
68
|
if (!preserveParams.includes(key)) {
|
@@ -76,31 +76,31 @@ function renderSceneComponentWithRouteProps(sceneObject, routeProps) {
|
|
76
76
|
return React__default["default"].createElement(sceneObject.Component, { model: sceneObject, routeProps });
|
77
77
|
}
|
78
78
|
|
79
|
-
var __defProp$
|
80
|
-
var __defProps$
|
81
|
-
var __getOwnPropDescs$
|
82
|
-
var __getOwnPropSymbols$
|
83
|
-
var __hasOwnProp$
|
84
|
-
var __propIsEnum$
|
85
|
-
var __defNormalProp$
|
86
|
-
var __spreadValues$
|
79
|
+
var __defProp$Q = Object.defineProperty;
|
80
|
+
var __defProps$y = Object.defineProperties;
|
81
|
+
var __getOwnPropDescs$y = Object.getOwnPropertyDescriptors;
|
82
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
83
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
84
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
85
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
86
|
+
var __spreadValues$Q = (a, b) => {
|
87
87
|
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$
|
88
|
+
if (__hasOwnProp$Q.call(b, prop))
|
89
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
90
|
+
if (__getOwnPropSymbols$Q)
|
91
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
92
|
+
if (__propIsEnum$Q.call(b, prop))
|
93
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
94
94
|
}
|
95
95
|
return a;
|
96
96
|
};
|
97
|
-
var __spreadProps$
|
97
|
+
var __spreadProps$y = (a, b) => __defProps$y(a, __getOwnPropDescs$y(b));
|
98
98
|
const runtimePanelPlugins = /* @__PURE__ */ new Map();
|
99
99
|
function registerRuntimePanelPlugin({ pluginId, plugin }) {
|
100
100
|
if (runtimePanelPlugins.has(pluginId)) {
|
101
101
|
throw new Error(`A runtime panel plugin with id ${pluginId} has already been registered`);
|
102
102
|
}
|
103
|
-
plugin.meta = __spreadProps$
|
103
|
+
plugin.meta = __spreadProps$y(__spreadValues$Q({}, plugin.meta), {
|
104
104
|
id: pluginId,
|
105
105
|
name: pluginId,
|
106
106
|
module: "runtime plugin",
|
@@ -128,33 +128,33 @@ function loadPanelPluginSync(pluginId) {
|
|
128
128
|
return (_a = getPanelPluginFromCache(pluginId)) != null ? _a : runtimePanelPlugins.get(pluginId);
|
129
129
|
}
|
130
130
|
|
131
|
-
var __defProp$
|
132
|
-
var __defProps$
|
133
|
-
var __getOwnPropDescs$
|
134
|
-
var __getOwnPropSymbols$
|
135
|
-
var __hasOwnProp$
|
136
|
-
var __propIsEnum$
|
137
|
-
var __defNormalProp$
|
138
|
-
var __spreadValues$
|
131
|
+
var __defProp$P = Object.defineProperty;
|
132
|
+
var __defProps$x = Object.defineProperties;
|
133
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
134
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
135
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
136
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
137
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
138
|
+
var __spreadValues$P = (a, b) => {
|
139
139
|
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$
|
140
|
+
if (__hasOwnProp$P.call(b, prop))
|
141
|
+
__defNormalProp$P(a, prop, b[prop]);
|
142
|
+
if (__getOwnPropSymbols$P)
|
143
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
144
|
+
if (__propIsEnum$P.call(b, prop))
|
145
|
+
__defNormalProp$P(a, prop, b[prop]);
|
146
146
|
}
|
147
147
|
return a;
|
148
148
|
};
|
149
|
-
var __spreadProps$
|
149
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(b));
|
150
150
|
var __objRest$5 = (source, exclude) => {
|
151
151
|
var target = {};
|
152
152
|
for (var prop in source)
|
153
|
-
if (__hasOwnProp$
|
153
|
+
if (__hasOwnProp$P.call(source, prop) && exclude.indexOf(prop) < 0)
|
154
154
|
target[prop] = source[prop];
|
155
|
-
if (source != null && __getOwnPropSymbols$
|
156
|
-
for (var prop of __getOwnPropSymbols$
|
157
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
155
|
+
if (source != null && __getOwnPropSymbols$P)
|
156
|
+
for (var prop of __getOwnPropSymbols$P(source)) {
|
157
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$P.call(source, prop))
|
158
158
|
target[prop] = source[prop];
|
159
159
|
}
|
160
160
|
return target;
|
@@ -172,7 +172,7 @@ function SceneComponentWrapperWithoutMemo(_a) {
|
|
172
172
|
if (!model.isActive && !model.renderBeforeActivation) {
|
173
173
|
return null;
|
174
174
|
}
|
175
|
-
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$
|
175
|
+
return /* @__PURE__ */ React__default["default"].createElement(Component, __spreadProps$x(__spreadValues$P({}, otherProps), {
|
176
176
|
model
|
177
177
|
}));
|
178
178
|
}
|
@@ -218,19 +218,19 @@ class SceneObjectRef {
|
|
218
218
|
}
|
219
219
|
_ref = new WeakMap();
|
220
220
|
|
221
|
-
var __defProp$
|
222
|
-
var __getOwnPropSymbols$
|
223
|
-
var __hasOwnProp$
|
224
|
-
var __propIsEnum$
|
225
|
-
var __defNormalProp$
|
226
|
-
var __spreadValues$
|
221
|
+
var __defProp$O = Object.defineProperty;
|
222
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
223
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
224
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
225
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
226
|
+
var __spreadValues$O = (a, b) => {
|
227
227
|
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$
|
228
|
+
if (__hasOwnProp$O.call(b, prop))
|
229
|
+
__defNormalProp$O(a, prop, b[prop]);
|
230
|
+
if (__getOwnPropSymbols$O)
|
231
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
232
|
+
if (__propIsEnum$O.call(b, prop))
|
233
|
+
__defNormalProp$O(a, prop, b[prop]);
|
234
234
|
}
|
235
235
|
return a;
|
236
236
|
};
|
@@ -297,7 +297,7 @@ class SceneObjectBase {
|
|
297
297
|
}
|
298
298
|
setState(update) {
|
299
299
|
const prevState = this._state;
|
300
|
-
const newState = __spreadValues$
|
300
|
+
const newState = __spreadValues$O(__spreadValues$O({}, this._state), update);
|
301
301
|
this._state = Object.freeze(newState);
|
302
302
|
this._setParent(update);
|
303
303
|
this._handleActivationOfChangedStateProps(prevState, newState);
|
@@ -493,19 +493,19 @@ function forEachChild(state, callback) {
|
|
493
493
|
}
|
494
494
|
}
|
495
495
|
|
496
|
-
var __defProp$
|
497
|
-
var __getOwnPropSymbols$
|
498
|
-
var __hasOwnProp$
|
499
|
-
var __propIsEnum$
|
500
|
-
var __defNormalProp$
|
501
|
-
var __spreadValues$
|
496
|
+
var __defProp$N = Object.defineProperty;
|
497
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
498
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
499
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
500
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
501
|
+
var __spreadValues$N = (a, b) => {
|
502
502
|
for (var prop in b || (b = {}))
|
503
|
-
if (__hasOwnProp$
|
504
|
-
__defNormalProp$
|
505
|
-
if (__getOwnPropSymbols$
|
506
|
-
for (var prop of __getOwnPropSymbols$
|
507
|
-
if (__propIsEnum$
|
508
|
-
__defNormalProp$
|
503
|
+
if (__hasOwnProp$N.call(b, prop))
|
504
|
+
__defNormalProp$N(a, prop, b[prop]);
|
505
|
+
if (__getOwnPropSymbols$N)
|
506
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
507
|
+
if (__propIsEnum$N.call(b, prop))
|
508
|
+
__defNormalProp$N(a, prop, b[prop]);
|
509
509
|
}
|
510
510
|
return a;
|
511
511
|
};
|
@@ -514,7 +514,7 @@ function cloneSceneObject(sceneObject, withState) {
|
|
514
514
|
return new sceneObject.constructor(clonedState);
|
515
515
|
}
|
516
516
|
function cloneSceneObjectState(sceneState, withState) {
|
517
|
-
const clonedState = __spreadValues$
|
517
|
+
const clonedState = __spreadValues$N({}, sceneState);
|
518
518
|
Object.assign(clonedState, withState);
|
519
519
|
for (const key in clonedState) {
|
520
520
|
if (withState && withState[key] !== void 0) {
|
@@ -615,25 +615,25 @@ function lookupVariable(name, sceneObject) {
|
|
615
615
|
return null;
|
616
616
|
}
|
617
617
|
|
618
|
-
var __defProp$
|
619
|
-
var __getOwnPropSymbols$
|
620
|
-
var __hasOwnProp$
|
621
|
-
var __propIsEnum$
|
622
|
-
var __defNormalProp$
|
623
|
-
var __spreadValues$
|
618
|
+
var __defProp$M = Object.defineProperty;
|
619
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
620
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
621
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
622
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
623
|
+
var __spreadValues$M = (a, b) => {
|
624
624
|
for (var prop in b || (b = {}))
|
625
|
-
if (__hasOwnProp$
|
626
|
-
__defNormalProp$
|
627
|
-
if (__getOwnPropSymbols$
|
628
|
-
for (var prop of __getOwnPropSymbols$
|
629
|
-
if (__propIsEnum$
|
630
|
-
__defNormalProp$
|
625
|
+
if (__hasOwnProp$M.call(b, prop))
|
626
|
+
__defNormalProp$M(a, prop, b[prop]);
|
627
|
+
if (__getOwnPropSymbols$M)
|
628
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
629
|
+
if (__propIsEnum$M.call(b, prop))
|
630
|
+
__defNormalProp$M(a, prop, b[prop]);
|
631
631
|
}
|
632
632
|
return a;
|
633
633
|
};
|
634
634
|
class SceneDataNode extends SceneObjectBase {
|
635
635
|
constructor(state) {
|
636
|
-
super(__spreadValues$
|
636
|
+
super(__spreadValues$M({
|
637
637
|
data: emptyPanelData
|
638
638
|
}, state));
|
639
639
|
}
|
@@ -767,19 +767,19 @@ function isValid$1(value, roundUp, timeZone) {
|
|
767
767
|
return parsed.isValid();
|
768
768
|
}
|
769
769
|
|
770
|
-
var __defProp$
|
771
|
-
var __getOwnPropSymbols$
|
772
|
-
var __hasOwnProp$
|
773
|
-
var __propIsEnum$
|
774
|
-
var __defNormalProp$
|
775
|
-
var __spreadValues$
|
770
|
+
var __defProp$L = Object.defineProperty;
|
771
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
772
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
773
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
774
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
775
|
+
var __spreadValues$L = (a, b) => {
|
776
776
|
for (var prop in b || (b = {}))
|
777
|
-
if (__hasOwnProp$
|
778
|
-
__defNormalProp$
|
779
|
-
if (__getOwnPropSymbols$
|
780
|
-
for (var prop of __getOwnPropSymbols$
|
781
|
-
if (__propIsEnum$
|
782
|
-
__defNormalProp$
|
777
|
+
if (__hasOwnProp$L.call(b, prop))
|
778
|
+
__defNormalProp$L(a, prop, b[prop]);
|
779
|
+
if (__getOwnPropSymbols$L)
|
780
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
781
|
+
if (__propIsEnum$L.call(b, prop))
|
782
|
+
__defNormalProp$L(a, prop, b[prop]);
|
783
783
|
}
|
784
784
|
return a;
|
785
785
|
};
|
@@ -798,7 +798,7 @@ class SceneTimeRange extends SceneObjectBase {
|
|
798
798
|
state.weekStart
|
799
799
|
);
|
800
800
|
const refreshOnActivate = (_a = state.refreshOnActivate) != null ? _a : { percent: 10 };
|
801
|
-
super(__spreadValues$
|
801
|
+
super(__spreadValues$L({ from, to, timeZone, value, refreshOnActivate }, state));
|
802
802
|
this._urlSync = new SceneObjectUrlSyncConfig(this, { keys: ["from", "to", "timezone", "time", "time.window"] });
|
803
803
|
this.onTimeRangeChange = (timeRange) => {
|
804
804
|
const update = {};
|
@@ -1774,25 +1774,25 @@ function collectAllVariables(sceneObject, record = {}) {
|
|
1774
1774
|
return record;
|
1775
1775
|
}
|
1776
1776
|
|
1777
|
-
var __defProp$
|
1778
|
-
var __defProps$
|
1779
|
-
var __getOwnPropDescs$
|
1780
|
-
var __getOwnPropSymbols$
|
1781
|
-
var __hasOwnProp$
|
1782
|
-
var __propIsEnum$
|
1783
|
-
var __defNormalProp$
|
1784
|
-
var __spreadValues$
|
1777
|
+
var __defProp$K = Object.defineProperty;
|
1778
|
+
var __defProps$w = Object.defineProperties;
|
1779
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
1780
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
1781
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
1782
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
1783
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
1784
|
+
var __spreadValues$K = (a, b) => {
|
1785
1785
|
for (var prop in b || (b = {}))
|
1786
|
-
if (__hasOwnProp$
|
1787
|
-
__defNormalProp$
|
1788
|
-
if (__getOwnPropSymbols$
|
1789
|
-
for (var prop of __getOwnPropSymbols$
|
1790
|
-
if (__propIsEnum$
|
1791
|
-
__defNormalProp$
|
1786
|
+
if (__hasOwnProp$K.call(b, prop))
|
1787
|
+
__defNormalProp$K(a, prop, b[prop]);
|
1788
|
+
if (__getOwnPropSymbols$K)
|
1789
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
1790
|
+
if (__propIsEnum$K.call(b, prop))
|
1791
|
+
__defNormalProp$K(a, prop, b[prop]);
|
1792
1792
|
}
|
1793
1793
|
return a;
|
1794
1794
|
};
|
1795
|
-
var __spreadProps$
|
1795
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(b));
|
1796
1796
|
function getTemplateProxyForField(field, frame, frames) {
|
1797
1797
|
return new Proxy(
|
1798
1798
|
{},
|
@@ -1808,7 +1808,7 @@ function getTemplateProxyForField(field, frame, frames) {
|
|
1808
1808
|
if (!field.labels) {
|
1809
1809
|
return "";
|
1810
1810
|
}
|
1811
|
-
return __spreadProps$
|
1811
|
+
return __spreadProps$w(__spreadValues$K({}, field.labels), {
|
1812
1812
|
__values: Object.values(field.labels).sort().join(", "),
|
1813
1813
|
toString: () => {
|
1814
1814
|
return data.formatLabels(field.labels, "", true);
|
@@ -2305,25 +2305,25 @@ function isExtraQueryProvider(obj) {
|
|
2305
2305
|
return typeof obj === "object" && "getExtraQueries" in obj;
|
2306
2306
|
}
|
2307
2307
|
|
2308
|
-
var __defProp$
|
2309
|
-
var __defProps$
|
2310
|
-
var __getOwnPropDescs$
|
2311
|
-
var __getOwnPropSymbols$
|
2312
|
-
var __hasOwnProp$
|
2313
|
-
var __propIsEnum$
|
2314
|
-
var __defNormalProp$
|
2315
|
-
var __spreadValues$
|
2308
|
+
var __defProp$J = Object.defineProperty;
|
2309
|
+
var __defProps$v = Object.defineProperties;
|
2310
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
2311
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
2312
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
2313
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
2314
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2315
|
+
var __spreadValues$J = (a, b) => {
|
2316
2316
|
for (var prop in b || (b = {}))
|
2317
|
-
if (__hasOwnProp$
|
2318
|
-
__defNormalProp$
|
2319
|
-
if (__getOwnPropSymbols$
|
2320
|
-
for (var prop of __getOwnPropSymbols$
|
2321
|
-
if (__propIsEnum$
|
2322
|
-
__defNormalProp$
|
2317
|
+
if (__hasOwnProp$J.call(b, prop))
|
2318
|
+
__defNormalProp$J(a, prop, b[prop]);
|
2319
|
+
if (__getOwnPropSymbols$J)
|
2320
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
2321
|
+
if (__propIsEnum$J.call(b, prop))
|
2322
|
+
__defNormalProp$J(a, prop, b[prop]);
|
2323
2323
|
}
|
2324
2324
|
return a;
|
2325
2325
|
};
|
2326
|
-
var __spreadProps$
|
2326
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(b));
|
2327
2327
|
const passthroughProcessor = (_, secondary) => rxjs.of(secondary);
|
2328
2328
|
const extraQueryProcessingOperator = (processors) => (data) => {
|
2329
2329
|
return data.pipe(
|
@@ -2336,7 +2336,7 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2336
2336
|
}),
|
2337
2337
|
rxjs.map(([primary, ...processedSecondaries]) => {
|
2338
2338
|
var _a;
|
2339
|
-
return __spreadProps$
|
2339
|
+
return __spreadProps$v(__spreadValues$J({}, primary), {
|
2340
2340
|
series: [...primary.series, ...processedSecondaries.flatMap((s) => s.series)],
|
2341
2341
|
annotations: [...(_a = primary.annotations) != null ? _a : [], ...processedSecondaries.flatMap((s) => {
|
2342
2342
|
var _a2;
|
@@ -2347,25 +2347,25 @@ const extraQueryProcessingOperator = (processors) => (data) => {
|
|
2347
2347
|
);
|
2348
2348
|
};
|
2349
2349
|
|
2350
|
-
var __defProp$
|
2351
|
-
var __defProps$
|
2352
|
-
var __getOwnPropDescs$
|
2353
|
-
var __getOwnPropSymbols$
|
2354
|
-
var __hasOwnProp$
|
2355
|
-
var __propIsEnum$
|
2356
|
-
var __defNormalProp$
|
2357
|
-
var __spreadValues$
|
2350
|
+
var __defProp$I = Object.defineProperty;
|
2351
|
+
var __defProps$u = Object.defineProperties;
|
2352
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
2353
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
2354
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
2355
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
2356
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2357
|
+
var __spreadValues$I = (a, b) => {
|
2358
2358
|
for (var prop in b || (b = {}))
|
2359
|
-
if (__hasOwnProp$
|
2360
|
-
__defNormalProp$
|
2361
|
-
if (__getOwnPropSymbols$
|
2362
|
-
for (var prop of __getOwnPropSymbols$
|
2363
|
-
if (__propIsEnum$
|
2364
|
-
__defNormalProp$
|
2359
|
+
if (__hasOwnProp$I.call(b, prop))
|
2360
|
+
__defNormalProp$I(a, prop, b[prop]);
|
2361
|
+
if (__getOwnPropSymbols$I)
|
2362
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
2363
|
+
if (__propIsEnum$I.call(b, prop))
|
2364
|
+
__defNormalProp$I(a, prop, b[prop]);
|
2365
2365
|
}
|
2366
2366
|
return a;
|
2367
2367
|
};
|
2368
|
-
var __spreadProps$
|
2368
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(b));
|
2369
2369
|
const GLOBAL_ANNOTATION_ID = 0;
|
2370
2370
|
function filterAnnotations(data, filters) {
|
2371
2371
|
var _a;
|
@@ -2417,11 +2417,11 @@ function filterAnnotations(data, filters) {
|
|
2417
2417
|
continue;
|
2418
2418
|
}
|
2419
2419
|
}
|
2420
|
-
fields.push(__spreadProps$
|
2420
|
+
fields.push(__spreadProps$u(__spreadValues$I({}, field), {
|
2421
2421
|
values: buffer
|
2422
2422
|
}));
|
2423
2423
|
}
|
2424
|
-
processed.push(__spreadProps$
|
2424
|
+
processed.push(__spreadProps$u(__spreadValues$I({}, frame), {
|
2425
2425
|
fields,
|
2426
2426
|
length: frameLength
|
2427
2427
|
}));
|
@@ -2537,33 +2537,33 @@ function getOptionSearcher(options, includeAll = false) {
|
|
2537
2537
|
return (search) => fuzzySearch(search).map((i) => allOptions[i]);
|
2538
2538
|
}
|
2539
2539
|
|
2540
|
-
var __defProp$
|
2541
|
-
var __defProps$
|
2542
|
-
var __getOwnPropDescs$
|
2543
|
-
var __getOwnPropSymbols$
|
2544
|
-
var __hasOwnProp$
|
2545
|
-
var __propIsEnum$
|
2546
|
-
var __defNormalProp$
|
2547
|
-
var __spreadValues$
|
2540
|
+
var __defProp$H = Object.defineProperty;
|
2541
|
+
var __defProps$t = Object.defineProperties;
|
2542
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
2543
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
2544
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
2545
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
2546
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2547
|
+
var __spreadValues$H = (a, b) => {
|
2548
2548
|
for (var prop in b || (b = {}))
|
2549
|
-
if (__hasOwnProp$
|
2550
|
-
__defNormalProp$
|
2551
|
-
if (__getOwnPropSymbols$
|
2552
|
-
for (var prop of __getOwnPropSymbols$
|
2553
|
-
if (__propIsEnum$
|
2554
|
-
__defNormalProp$
|
2549
|
+
if (__hasOwnProp$H.call(b, prop))
|
2550
|
+
__defNormalProp$H(a, prop, b[prop]);
|
2551
|
+
if (__getOwnPropSymbols$H)
|
2552
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
2553
|
+
if (__propIsEnum$H.call(b, prop))
|
2554
|
+
__defNormalProp$H(a, prop, b[prop]);
|
2555
2555
|
}
|
2556
2556
|
return a;
|
2557
2557
|
};
|
2558
|
-
var __spreadProps$
|
2558
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
2559
2559
|
var __objRest$4 = (source, exclude) => {
|
2560
2560
|
var target = {};
|
2561
2561
|
for (var prop in source)
|
2562
|
-
if (__hasOwnProp$
|
2562
|
+
if (__hasOwnProp$H.call(source, prop) && exclude.indexOf(prop) < 0)
|
2563
2563
|
target[prop] = source[prop];
|
2564
|
-
if (source != null && __getOwnPropSymbols$
|
2565
|
-
for (var prop of __getOwnPropSymbols$
|
2566
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
2564
|
+
if (source != null && __getOwnPropSymbols$H)
|
2565
|
+
for (var prop of __getOwnPropSymbols$H(source)) {
|
2566
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$H.call(source, prop))
|
2567
2567
|
target[prop] = source[prop];
|
2568
2568
|
}
|
2569
2569
|
return target;
|
@@ -2720,7 +2720,7 @@ const OptionWithCheckbox = ({
|
|
2720
2720
|
const theme = ui.useTheme2();
|
2721
2721
|
const selectStyles = ui.getSelectStyles(theme);
|
2722
2722
|
const optionStyles = ui.useStyles2(getOptionStyles);
|
2723
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$
|
2723
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$t(__spreadValues$H({
|
2724
2724
|
ref: innerRef,
|
2725
2725
|
className: css.cx(selectStyles.option, isFocused && selectStyles.optionFocused)
|
2726
2726
|
}, rest), {
|
@@ -2885,28 +2885,28 @@ function wrapInSafeSerializableSceneObject(sceneObject) {
|
|
2885
2885
|
return { value: sceneObject, text: "__sceneObject" };
|
2886
2886
|
}
|
2887
2887
|
|
2888
|
-
var __defProp$
|
2889
|
-
var __defProps$
|
2890
|
-
var __getOwnPropDescs$
|
2891
|
-
var __getOwnPropSymbols$
|
2892
|
-
var __hasOwnProp$
|
2893
|
-
var __propIsEnum$
|
2894
|
-
var __defNormalProp$
|
2895
|
-
var __spreadValues$
|
2888
|
+
var __defProp$G = Object.defineProperty;
|
2889
|
+
var __defProps$s = Object.defineProperties;
|
2890
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
2891
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
2892
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
2893
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
2894
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2895
|
+
var __spreadValues$G = (a, b) => {
|
2896
2896
|
for (var prop in b || (b = {}))
|
2897
|
-
if (__hasOwnProp$
|
2898
|
-
__defNormalProp$
|
2899
|
-
if (__getOwnPropSymbols$
|
2900
|
-
for (var prop of __getOwnPropSymbols$
|
2901
|
-
if (__propIsEnum$
|
2902
|
-
__defNormalProp$
|
2897
|
+
if (__hasOwnProp$G.call(b, prop))
|
2898
|
+
__defNormalProp$G(a, prop, b[prop]);
|
2899
|
+
if (__getOwnPropSymbols$G)
|
2900
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
2901
|
+
if (__propIsEnum$G.call(b, prop))
|
2902
|
+
__defNormalProp$G(a, prop, b[prop]);
|
2903
2903
|
}
|
2904
2904
|
return a;
|
2905
2905
|
};
|
2906
|
-
var __spreadProps$
|
2906
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(b));
|
2907
2907
|
class GroupByVariable extends MultiValueVariable {
|
2908
2908
|
constructor(initialState) {
|
2909
|
-
super(__spreadProps$
|
2909
|
+
super(__spreadProps$s(__spreadValues$G({
|
2910
2910
|
isMulti: true,
|
2911
2911
|
name: "",
|
2912
2912
|
value: [],
|
@@ -2937,7 +2937,7 @@ class GroupByVariable extends MultiValueVariable {
|
|
2937
2937
|
const queries = getQueriesForVariables(this);
|
2938
2938
|
const otherFilters = this.state.baseFilters || [];
|
2939
2939
|
const timeRange = sceneGraph.getTimeRange(this).state.value;
|
2940
|
-
const response = await ds.getTagKeys(__spreadValues$
|
2940
|
+
const response = await ds.getTagKeys(__spreadValues$G({
|
2941
2941
|
filters: otherFilters,
|
2942
2942
|
queries,
|
2943
2943
|
timeRange
|
@@ -3297,19 +3297,19 @@ function getAdhocOptionSearcher(options) {
|
|
3297
3297
|
return (search) => fuzzySearch(search).map((i) => options[i]);
|
3298
3298
|
}
|
3299
3299
|
|
3300
|
-
var __defProp$
|
3301
|
-
var __getOwnPropSymbols$
|
3302
|
-
var __hasOwnProp$
|
3303
|
-
var __propIsEnum$
|
3304
|
-
var __defNormalProp$
|
3305
|
-
var __spreadValues$
|
3300
|
+
var __defProp$F = Object.defineProperty;
|
3301
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
3302
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
3303
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
3304
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3305
|
+
var __spreadValues$F = (a, b) => {
|
3306
3306
|
for (var prop in b || (b = {}))
|
3307
|
-
if (__hasOwnProp$
|
3308
|
-
__defNormalProp$
|
3309
|
-
if (__getOwnPropSymbols$
|
3310
|
-
for (var prop of __getOwnPropSymbols$
|
3311
|
-
if (__propIsEnum$
|
3312
|
-
__defNormalProp$
|
3307
|
+
if (__hasOwnProp$F.call(b, prop))
|
3308
|
+
__defNormalProp$F(a, prop, b[prop]);
|
3309
|
+
if (__getOwnPropSymbols$F)
|
3310
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
3311
|
+
if (__propIsEnum$F.call(b, prop))
|
3312
|
+
__defNormalProp$F(a, prop, b[prop]);
|
3313
3313
|
}
|
3314
3314
|
return a;
|
3315
3315
|
};
|
@@ -3397,7 +3397,7 @@ function AdHocFilterRenderer({ filter, model }) {
|
|
3397
3397
|
});
|
3398
3398
|
}
|
3399
3399
|
};
|
3400
|
-
const valueSelect = /* @__PURE__ */ React__default["default"].createElement(ui.Select, __spreadValues$
|
3400
|
+
const valueSelect = /* @__PURE__ */ React__default["default"].createElement(ui.Select, __spreadValues$F({
|
3401
3401
|
virtualized: true,
|
3402
3402
|
allowCustomValue: (_b = model.state.allowCustomValue) != null ? _b : true,
|
3403
3403
|
isValidNewOption: (inputValue) => inputValue.trim().length > 0,
|
@@ -3678,30 +3678,30 @@ function isFilter(filter) {
|
|
3678
3678
|
return filter !== null && typeof filter.key === "string" && typeof filter.value === "string";
|
3679
3679
|
}
|
3680
3680
|
|
3681
|
-
var __defProp$
|
3682
|
-
var __getOwnPropSymbols$
|
3683
|
-
var __hasOwnProp$
|
3684
|
-
var __propIsEnum$
|
3685
|
-
var __defNormalProp$
|
3686
|
-
var __spreadValues$
|
3681
|
+
var __defProp$E = Object.defineProperty;
|
3682
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
3683
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
3684
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
3685
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3686
|
+
var __spreadValues$E = (a, b) => {
|
3687
3687
|
for (var prop in b || (b = {}))
|
3688
|
-
if (__hasOwnProp$
|
3689
|
-
__defNormalProp$
|
3690
|
-
if (__getOwnPropSymbols$
|
3691
|
-
for (var prop of __getOwnPropSymbols$
|
3692
|
-
if (__propIsEnum$
|
3693
|
-
__defNormalProp$
|
3688
|
+
if (__hasOwnProp$E.call(b, prop))
|
3689
|
+
__defNormalProp$E(a, prop, b[prop]);
|
3690
|
+
if (__getOwnPropSymbols$E)
|
3691
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
3692
|
+
if (__propIsEnum$E.call(b, prop))
|
3693
|
+
__defNormalProp$E(a, prop, b[prop]);
|
3694
3694
|
}
|
3695
3695
|
return a;
|
3696
3696
|
};
|
3697
3697
|
var __objRest$3 = (source, exclude) => {
|
3698
3698
|
var target = {};
|
3699
3699
|
for (var prop in source)
|
3700
|
-
if (__hasOwnProp$
|
3700
|
+
if (__hasOwnProp$E.call(source, prop) && exclude.indexOf(prop) < 0)
|
3701
3701
|
target[prop] = source[prop];
|
3702
|
-
if (source != null && __getOwnPropSymbols$
|
3703
|
-
for (var prop of __getOwnPropSymbols$
|
3704
|
-
if (exclude.indexOf(prop) < 0 && __propIsEnum$
|
3702
|
+
if (source != null && __getOwnPropSymbols$E)
|
3703
|
+
for (var prop of __getOwnPropSymbols$E(source)) {
|
3704
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$E.call(source, prop))
|
3705
3705
|
target[prop] = source[prop];
|
3706
3706
|
}
|
3707
3707
|
return target;
|
@@ -3711,7 +3711,7 @@ const DropdownItem = React.forwardRef(
|
|
3711
3711
|
var _b = _a, { children, active, addGroupBottomBorder, isMultiValueEdit, checked } = _b, rest = __objRest$3(_b, ["children", "active", "addGroupBottomBorder", "isMultiValueEdit", "checked"]);
|
3712
3712
|
const styles = ui.useStyles2(getStyles$e);
|
3713
3713
|
const id = React.useId();
|
3714
|
-
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadValues$
|
3714
|
+
return /* @__PURE__ */ React__default["default"].createElement("div", __spreadValues$E({
|
3715
3715
|
ref,
|
3716
3716
|
role: "option",
|
3717
3717
|
id,
|
@@ -3958,6 +3958,18 @@ const populateInputValueOnInputTypeSwitch = ({
|
|
3958
3958
|
setInputValue("");
|
3959
3959
|
}
|
3960
3960
|
};
|
3961
|
+
const calculateCollapseThreshold = (shouldCollapse, filtersLength, wrapperRef) => {
|
3962
|
+
if (!shouldCollapse || !wrapperRef.current) {
|
3963
|
+
return null;
|
3964
|
+
}
|
3965
|
+
const rect = wrapperRef.current.getBoundingClientRect();
|
3966
|
+
if (rect.height - 6 > 26) {
|
3967
|
+
const componentLineSpan = (rect.height - 6) / 26;
|
3968
|
+
const filterCutOff = Math.max(1, Math.floor(filtersLength / (componentLineSpan + 1)));
|
3969
|
+
return filterCutOff;
|
3970
|
+
}
|
3971
|
+
return null;
|
3972
|
+
};
|
3961
3973
|
|
3962
3974
|
const MAX_MENU_HEIGHT = 300;
|
3963
3975
|
const useFloatingInteractions = ({
|
@@ -4023,25 +4035,25 @@ const useFloatingInteractions = ({
|
|
4023
4035
|
};
|
4024
4036
|
};
|
4025
4037
|
|
4026
|
-
var __defProp$
|
4027
|
-
var __defProps$
|
4028
|
-
var __getOwnPropDescs$
|
4029
|
-
var __getOwnPropSymbols$
|
4030
|
-
var __hasOwnProp$
|
4031
|
-
var __propIsEnum$
|
4032
|
-
var __defNormalProp$
|
4033
|
-
var __spreadValues$
|
4038
|
+
var __defProp$D = Object.defineProperty;
|
4039
|
+
var __defProps$r = Object.defineProperties;
|
4040
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
4041
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
4042
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
4043
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
4044
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4045
|
+
var __spreadValues$D = (a, b) => {
|
4034
4046
|
for (var prop in b || (b = {}))
|
4035
|
-
if (__hasOwnProp$
|
4036
|
-
__defNormalProp$
|
4037
|
-
if (__getOwnPropSymbols$
|
4038
|
-
for (var prop of __getOwnPropSymbols$
|
4039
|
-
if (__propIsEnum$
|
4040
|
-
__defNormalProp$
|
4047
|
+
if (__hasOwnProp$D.call(b, prop))
|
4048
|
+
__defNormalProp$D(a, prop, b[prop]);
|
4049
|
+
if (__getOwnPropSymbols$D)
|
4050
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
4051
|
+
if (__propIsEnum$D.call(b, prop))
|
4052
|
+
__defNormalProp$D(a, prop, b[prop]);
|
4041
4053
|
}
|
4042
4054
|
return a;
|
4043
4055
|
};
|
4044
|
-
var __spreadProps$
|
4056
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
4045
4057
|
const MultiValuePill = ({
|
4046
4058
|
item,
|
4047
4059
|
handleRemoveMultiValue,
|
@@ -4103,7 +4115,7 @@ const MultiValuePill = ({
|
|
4103
4115
|
})));
|
4104
4116
|
};
|
4105
4117
|
const getStyles$d = (theme) => ({
|
4106
|
-
basePill: css.css(__spreadProps$
|
4118
|
+
basePill: css.css(__spreadProps$r(__spreadValues$D({
|
4107
4119
|
display: "flex",
|
4108
4120
|
alignItems: "center",
|
4109
4121
|
background: theme.colors.action.disabledBackground,
|
@@ -4131,25 +4143,25 @@ const getStyles$d = (theme) => ({
|
|
4131
4143
|
})
|
4132
4144
|
});
|
4133
4145
|
|
4134
|
-
var __defProp$
|
4135
|
-
var __defProps$
|
4136
|
-
var __getOwnPropDescs$
|
4137
|
-
var __getOwnPropSymbols$
|
4138
|
-
var __hasOwnProp$
|
4139
|
-
var __propIsEnum$
|
4140
|
-
var __defNormalProp$
|
4141
|
-
var __spreadValues$
|
4146
|
+
var __defProp$C = Object.defineProperty;
|
4147
|
+
var __defProps$q = Object.defineProperties;
|
4148
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
4149
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
4150
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
4151
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
4152
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4153
|
+
var __spreadValues$C = (a, b) => {
|
4142
4154
|
for (var prop in b || (b = {}))
|
4143
|
-
if (__hasOwnProp$
|
4144
|
-
__defNormalProp$
|
4145
|
-
if (__getOwnPropSymbols$
|
4146
|
-
for (var prop of __getOwnPropSymbols$
|
4147
|
-
if (__propIsEnum$
|
4148
|
-
__defNormalProp$
|
4155
|
+
if (__hasOwnProp$C.call(b, prop))
|
4156
|
+
__defNormalProp$C(a, prop, b[prop]);
|
4157
|
+
if (__getOwnPropSymbols$C)
|
4158
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
4159
|
+
if (__propIsEnum$C.call(b, prop))
|
4160
|
+
__defNormalProp$C(a, prop, b[prop]);
|
4149
4161
|
}
|
4150
4162
|
return a;
|
4151
4163
|
};
|
4152
|
-
var __spreadProps$
|
4164
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
4153
4165
|
const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model, isAlwaysWip, handleChangeViewMode, focusOnWipInputRef, populateInputOnEdit }, parentRef) {
|
4154
4166
|
var _a, _b, _c, _d;
|
4155
4167
|
const [open, setOpen] = React.useState(false);
|
@@ -4551,7 +4563,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4551
4563
|
index: i,
|
4552
4564
|
handleRemoveMultiValue,
|
4553
4565
|
handleEditMultiValuePill
|
4554
|
-
})) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$
|
4566
|
+
})) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$q(__spreadValues$C({}, getReferenceProps({
|
4555
4567
|
ref: refs.setReference,
|
4556
4568
|
onChange,
|
4557
4569
|
value: inputValue,
|
@@ -4587,14 +4599,14 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4587
4599
|
visuallyHiddenDismiss: true,
|
4588
4600
|
modal: false
|
4589
4601
|
}, /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement("div", {
|
4590
|
-
style: __spreadProps$
|
4602
|
+
style: __spreadProps$q(__spreadValues$C({}, floatingStyles), {
|
4591
4603
|
width: `${optionsError ? ERROR_STATE_DROPDOWN_WIDTH : maxOptionWidth}px`,
|
4592
4604
|
transform: isMultiValueEdit ? `translate(${((_c = multiValuePillWrapperRef.current) == null ? void 0 : _c.getBoundingClientRect().left) || 0}px, ${(((_d = refs.domReference.current) == null ? void 0 : _d.getBoundingClientRect().bottom) || 0) + 10}px )` : floatingStyles.transform
|
4593
4605
|
}),
|
4594
4606
|
ref: refs.setFloating,
|
4595
4607
|
className: styles.dropdownWrapper,
|
4596
4608
|
tabIndex: -1
|
4597
|
-
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$
|
4609
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$q(__spreadValues$C({
|
4598
4610
|
style: {
|
4599
4611
|
height: `${rowVirtualizer.getTotalSize() || VIRTUAL_LIST_ITEM_HEIGHT}px`
|
4600
4612
|
}
|
@@ -4622,7 +4634,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4622
4634
|
}
|
4623
4635
|
const nextItem = filteredDropDownItems[virtualItem.index + 1];
|
4624
4636
|
const shouldAddBottomBorder = nextItem && !nextItem.group && !nextItem.options && item.group;
|
4625
|
-
return /* @__PURE__ */ React__default["default"].createElement(DropdownItem, __spreadProps$
|
4637
|
+
return /* @__PURE__ */ React__default["default"].createElement(DropdownItem, __spreadProps$q(__spreadValues$C({}, getItemProps({
|
4626
4638
|
key: `${item.value}-${index}`,
|
4627
4639
|
ref(node) {
|
4628
4640
|
listRef.current[index] = node;
|
@@ -4697,7 +4709,7 @@ const getStyles$c = (theme) => ({
|
|
4697
4709
|
alignItems: "center",
|
4698
4710
|
flexWrap: "wrap"
|
4699
4711
|
}),
|
4700
|
-
basePill: css.css(__spreadProps$
|
4712
|
+
basePill: css.css(__spreadProps$q(__spreadValues$C({
|
4701
4713
|
display: "flex",
|
4702
4714
|
alignItems: "center",
|
4703
4715
|
background: theme.colors.action.disabledBackground,
|
@@ -4751,31 +4763,31 @@ const getStyles$c = (theme) => ({
|
|
4751
4763
|
borderTop: `1px solid ${theme.colors.border.weak}`
|
4752
4764
|
}
|
4753
4765
|
}),
|
4754
|
-
descriptionText: css.css(__spreadProps$
|
4766
|
+
descriptionText: css.css(__spreadProps$q(__spreadValues$C({}, theme.typography.bodySmall), {
|
4755
4767
|
color: theme.colors.text.secondary,
|
4756
4768
|
paddingTop: theme.spacing(0.5)
|
4757
4769
|
}))
|
4758
4770
|
});
|
4759
4771
|
|
4760
|
-
var __defProp$
|
4761
|
-
var __defProps$
|
4762
|
-
var __getOwnPropDescs$
|
4763
|
-
var __getOwnPropSymbols$
|
4764
|
-
var __hasOwnProp$
|
4765
|
-
var __propIsEnum$
|
4766
|
-
var __defNormalProp$
|
4767
|
-
var __spreadValues$
|
4772
|
+
var __defProp$B = Object.defineProperty;
|
4773
|
+
var __defProps$p = Object.defineProperties;
|
4774
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
4775
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
4776
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
4777
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
4778
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4779
|
+
var __spreadValues$B = (a, b) => {
|
4768
4780
|
for (var prop in b || (b = {}))
|
4769
|
-
if (__hasOwnProp$
|
4770
|
-
__defNormalProp$
|
4771
|
-
if (__getOwnPropSymbols$
|
4772
|
-
for (var prop of __getOwnPropSymbols$
|
4773
|
-
if (__propIsEnum$
|
4774
|
-
__defNormalProp$
|
4781
|
+
if (__hasOwnProp$B.call(b, prop))
|
4782
|
+
__defNormalProp$B(a, prop, b[prop]);
|
4783
|
+
if (__getOwnPropSymbols$B)
|
4784
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
4785
|
+
if (__propIsEnum$B.call(b, prop))
|
4786
|
+
__defNormalProp$B(a, prop, b[prop]);
|
4775
4787
|
}
|
4776
4788
|
return a;
|
4777
4789
|
};
|
4778
|
-
var __spreadProps$
|
4790
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
4779
4791
|
function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
4780
4792
|
var _a, _b, _c;
|
4781
4793
|
const styles = ui.useStyles2(getStyles$b);
|
@@ -4869,7 +4881,7 @@ function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
|
4869
4881
|
});
|
4870
4882
|
}
|
4871
4883
|
const getStyles$b = (theme) => ({
|
4872
|
-
combinedFilterPill: css.css(__spreadProps$
|
4884
|
+
combinedFilterPill: css.css(__spreadProps$p(__spreadValues$B({
|
4873
4885
|
display: "flex",
|
4874
4886
|
alignItems: "center",
|
4875
4887
|
background: theme.colors.action.selected,
|
@@ -4927,27 +4939,83 @@ const AdHocFiltersAlwaysWipCombobox = React.forwardRef(function AdHocFiltersAlwa
|
|
4927
4939
|
});
|
4928
4940
|
});
|
4929
4941
|
|
4942
|
+
var __defProp$A = Object.defineProperty;
|
4943
|
+
var __defProps$o = Object.defineProperties;
|
4944
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
4945
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
4946
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
4947
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
4948
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4949
|
+
var __spreadValues$A = (a, b) => {
|
4950
|
+
for (var prop in b || (b = {}))
|
4951
|
+
if (__hasOwnProp$A.call(b, prop))
|
4952
|
+
__defNormalProp$A(a, prop, b[prop]);
|
4953
|
+
if (__getOwnPropSymbols$A)
|
4954
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
4955
|
+
if (__propIsEnum$A.call(b, prop))
|
4956
|
+
__defNormalProp$A(a, prop, b[prop]);
|
4957
|
+
}
|
4958
|
+
return a;
|
4959
|
+
};
|
4960
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
4930
4961
|
const AdHocFiltersComboboxRenderer = React.memo(function AdHocFiltersComboboxRenderer2({ model }) {
|
4931
4962
|
const { filters, readOnly } = model.useState();
|
4932
4963
|
const styles = ui.useStyles2(getStyles$a);
|
4964
|
+
const wrapperRef = React.useRef(null);
|
4933
4965
|
const focusOnWipInputRef = React.useRef();
|
4966
|
+
const [collapseThreshold, setCollapseThreshold] = React.useState(null);
|
4967
|
+
const updateCollapseThreshold = React.useCallback(
|
4968
|
+
(shouldCollapse, filtersLength) => {
|
4969
|
+
const filterCollapseThreshold = calculateCollapseThreshold(
|
4970
|
+
!readOnly ? shouldCollapse : false,
|
4971
|
+
filtersLength,
|
4972
|
+
wrapperRef
|
4973
|
+
);
|
4974
|
+
setCollapseThreshold(filterCollapseThreshold);
|
4975
|
+
},
|
4976
|
+
[readOnly]
|
4977
|
+
);
|
4978
|
+
const debouncedSetActive = React.useMemo(() => lodash.debounce(updateCollapseThreshold, 100), [updateCollapseThreshold]);
|
4979
|
+
const handleFilterCollapse = React.useCallback(
|
4980
|
+
(shouldCollapse, filtersLength) => () => {
|
4981
|
+
debouncedSetActive(shouldCollapse, filtersLength);
|
4982
|
+
},
|
4983
|
+
[debouncedSetActive]
|
4984
|
+
);
|
4985
|
+
React.useLayoutEffect(() => {
|
4986
|
+
updateCollapseThreshold(!!model.state.collapseFilters ? true : false, filters.length);
|
4987
|
+
}, []);
|
4934
4988
|
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
4935
4989
|
className: css.cx(styles.comboboxWrapper, { [styles.comboboxFocusOutline]: !readOnly }),
|
4936
4990
|
onClick: () => {
|
4937
4991
|
var _a;
|
4938
4992
|
(_a = focusOnWipInputRef.current) == null ? void 0 : _a.call(focusOnWipInputRef);
|
4939
|
-
}
|
4993
|
+
},
|
4994
|
+
ref: wrapperRef,
|
4995
|
+
onFocusCapture: handleFilterCollapse(false, filters.length),
|
4996
|
+
onBlurCapture: handleFilterCollapse(!!model.state.collapseFilters ? true : false, filters.length)
|
4940
4997
|
}, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
|
4941
4998
|
name: "filter",
|
4942
4999
|
className: styles.filterIcon,
|
4943
5000
|
size: "lg"
|
4944
|
-
}), filters.map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFilterPill, {
|
5001
|
+
}), (collapseThreshold ? filters.slice(0, collapseThreshold) : filters).map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFilterPill, {
|
4945
5002
|
key: `${index}-${filter.key}`,
|
4946
5003
|
filter,
|
4947
5004
|
model,
|
4948
5005
|
readOnly,
|
4949
5006
|
focusOnWipInputRef: focusOnWipInputRef.current
|
4950
|
-
})),
|
5007
|
+
})), collapseThreshold ? /* @__PURE__ */ React__default["default"].createElement(ui.Tooltip, {
|
5008
|
+
content: /* @__PURE__ */ React__default["default"].createElement("div", null, filters.slice(collapseThreshold).map((filter, i) => {
|
5009
|
+
var _a, _b, _c;
|
5010
|
+
const keyLabel = (_a = filter.keyLabel) != null ? _a : filter.key;
|
5011
|
+
const valueLabel = ((_b = filter.valueLabels) == null ? void 0 : _b.join(", ")) || ((_c = filter.values) == null ? void 0 : _c.join(", ")) || filter.value;
|
5012
|
+
return /* @__PURE__ */ React__default["default"].createElement(React.Fragment, {
|
5013
|
+
key: `${keyLabel}-${i}`
|
5014
|
+
}, keyLabel, " ", filter.operator, " ", valueLabel, " ", /* @__PURE__ */ React__default["default"].createElement("br", null));
|
5015
|
+
}))
|
5016
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", {
|
5017
|
+
className: css.cx(styles.basePill)
|
5018
|
+
}, "+", filters.length - collapseThreshold, " filters ")) : null, !readOnly ? /* @__PURE__ */ React__default["default"].createElement(AdHocFiltersAlwaysWipCombobox, {
|
4951
5019
|
model,
|
4952
5020
|
ref: focusOnWipInputRef
|
4953
5021
|
}) : null);
|
@@ -4981,7 +5049,20 @@ const getStyles$a = (theme) => ({
|
|
4981
5049
|
filterIcon: css.css({
|
4982
5050
|
color: theme.colors.text.secondary,
|
4983
5051
|
alignSelf: "center"
|
4984
|
-
})
|
5052
|
+
}),
|
5053
|
+
basePill: css.css(__spreadProps$o(__spreadValues$A({
|
5054
|
+
display: "flex",
|
5055
|
+
alignItems: "center",
|
5056
|
+
background: theme.colors.action.selected,
|
5057
|
+
border: `1px solid ${theme.colors.border.weak}`,
|
5058
|
+
padding: theme.spacing(0.125, 1, 0.125, 1),
|
5059
|
+
color: theme.colors.text.primary,
|
5060
|
+
overflow: "hidden",
|
5061
|
+
whiteSpace: "nowrap",
|
5062
|
+
minHeight: theme.spacing(2.75)
|
5063
|
+
}, theme.typography.bodySmall), {
|
5064
|
+
cursor: "pointer"
|
5065
|
+
}))
|
4985
5066
|
});
|
4986
5067
|
|
4987
5068
|
var __defProp$z = Object.defineProperty;
|
@@ -6334,6 +6415,28 @@ const sortVariableValues = (options, sortOrder) => {
|
|
6334
6415
|
if (sortOrder === data.VariableSort.disabled) {
|
6335
6416
|
return options;
|
6336
6417
|
}
|
6418
|
+
const sortByNumeric = (opt) => {
|
6419
|
+
if (!opt.text) {
|
6420
|
+
return -1;
|
6421
|
+
}
|
6422
|
+
const matches = opt.text.match(/.*?(\d+).*/);
|
6423
|
+
if (!matches || matches.length < 2) {
|
6424
|
+
return -1;
|
6425
|
+
} else {
|
6426
|
+
return parseInt(matches[1], 10);
|
6427
|
+
}
|
6428
|
+
};
|
6429
|
+
const sortByNaturalSort = (options2) => {
|
6430
|
+
return options2.sort((a, b) => {
|
6431
|
+
if (!a.text) {
|
6432
|
+
return -1;
|
6433
|
+
}
|
6434
|
+
if (!b.text) {
|
6435
|
+
return 1;
|
6436
|
+
}
|
6437
|
+
return a.text.localeCompare(b.text, void 0, { numeric: true });
|
6438
|
+
});
|
6439
|
+
};
|
6337
6440
|
switch (sortOrder) {
|
6338
6441
|
case data.VariableSort.alphabeticalAsc:
|
6339
6442
|
options = lodash.sortBy(options, "label");
|
@@ -6369,28 +6472,6 @@ const sortVariableValues = (options, sortOrder) => {
|
|
6369
6472
|
}
|
6370
6473
|
return options;
|
6371
6474
|
};
|
6372
|
-
function sortByNumeric(opt) {
|
6373
|
-
if (!opt.label) {
|
6374
|
-
return -1;
|
6375
|
-
}
|
6376
|
-
const matches = opt.label.match(/.*?(\d+).*/);
|
6377
|
-
if (!matches || matches.length < 2) {
|
6378
|
-
return -1;
|
6379
|
-
} else {
|
6380
|
-
return parseInt(matches[1], 10);
|
6381
|
-
}
|
6382
|
-
}
|
6383
|
-
function sortByNaturalSort(options) {
|
6384
|
-
return options.sort((a, b) => {
|
6385
|
-
if (!a.label) {
|
6386
|
-
return -1;
|
6387
|
-
}
|
6388
|
-
if (!b.label) {
|
6389
|
-
return 1;
|
6390
|
-
}
|
6391
|
-
return a.label.localeCompare(b.label, void 0, { numeric: true });
|
6392
|
-
});
|
6393
|
-
}
|
6394
6475
|
|
6395
6476
|
function toMetricFindValues() {
|
6396
6477
|
return (source) => source.pipe(
|