@grafana/scenes 5.36.1--canary.961.12544951331.0 → 5.36.1
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +12 -0
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersCombobox.js +2 -2
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersCombobox.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersComboboxRenderer.js +6 -77
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersComboboxRenderer.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/utils.js +9 -14
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/utils.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersVariable.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.js +283 -357
- 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$Q = Object.defineProperty;
|
45
|
+
var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
|
46
|
+
var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
|
47
|
+
var __propIsEnum$Q = Object.prototype.propertyIsEnumerable;
|
48
|
+
var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
49
|
+
var __spreadValues$Q = (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$Q.call(b, prop))
|
52
|
+
__defNormalProp$Q(a, prop, b[prop]);
|
53
|
+
if (__getOwnPropSymbols$Q)
|
54
|
+
for (var prop of __getOwnPropSymbols$Q(b)) {
|
55
|
+
if (__propIsEnum$Q.call(b, prop))
|
56
|
+
__defNormalProp$Q(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$Q({}, 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$P = Object.defineProperty;
|
80
|
+
var __defProps$x = Object.defineProperties;
|
81
|
+
var __getOwnPropDescs$x = Object.getOwnPropertyDescriptors;
|
82
|
+
var __getOwnPropSymbols$P = Object.getOwnPropertySymbols;
|
83
|
+
var __hasOwnProp$P = Object.prototype.hasOwnProperty;
|
84
|
+
var __propIsEnum$P = Object.prototype.propertyIsEnumerable;
|
85
|
+
var __defNormalProp$P = (obj, key, value) => key in obj ? __defProp$P(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
86
|
+
var __spreadValues$P = (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$P.call(b, prop))
|
89
|
+
__defNormalProp$P(a, prop, b[prop]);
|
90
|
+
if (__getOwnPropSymbols$P)
|
91
|
+
for (var prop of __getOwnPropSymbols$P(b)) {
|
92
|
+
if (__propIsEnum$P.call(b, prop))
|
93
|
+
__defNormalProp$P(a, prop, b[prop]);
|
94
94
|
}
|
95
95
|
return a;
|
96
96
|
};
|
97
|
-
var __spreadProps$
|
97
|
+
var __spreadProps$x = (a, b) => __defProps$x(a, __getOwnPropDescs$x(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$x(__spreadValues$P({}, 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$O = Object.defineProperty;
|
132
|
+
var __defProps$w = Object.defineProperties;
|
133
|
+
var __getOwnPropDescs$w = Object.getOwnPropertyDescriptors;
|
134
|
+
var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
|
135
|
+
var __hasOwnProp$O = Object.prototype.hasOwnProperty;
|
136
|
+
var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
|
137
|
+
var __defNormalProp$O = (obj, key, value) => key in obj ? __defProp$O(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
138
|
+
var __spreadValues$O = (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$O.call(b, prop))
|
141
|
+
__defNormalProp$O(a, prop, b[prop]);
|
142
|
+
if (__getOwnPropSymbols$O)
|
143
|
+
for (var prop of __getOwnPropSymbols$O(b)) {
|
144
|
+
if (__propIsEnum$O.call(b, prop))
|
145
|
+
__defNormalProp$O(a, prop, b[prop]);
|
146
146
|
}
|
147
147
|
return a;
|
148
148
|
};
|
149
|
-
var __spreadProps$
|
149
|
+
var __spreadProps$w = (a, b) => __defProps$w(a, __getOwnPropDescs$w(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$O.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$O)
|
156
|
+
for (var prop of __getOwnPropSymbols$O(source)) {
|
157
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$O.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$w(__spreadValues$O({}, 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$N = Object.defineProperty;
|
222
|
+
var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
|
223
|
+
var __hasOwnProp$N = Object.prototype.hasOwnProperty;
|
224
|
+
var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
|
225
|
+
var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
226
|
+
var __spreadValues$N = (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$N.call(b, prop))
|
229
|
+
__defNormalProp$N(a, prop, b[prop]);
|
230
|
+
if (__getOwnPropSymbols$N)
|
231
|
+
for (var prop of __getOwnPropSymbols$N(b)) {
|
232
|
+
if (__propIsEnum$N.call(b, prop))
|
233
|
+
__defNormalProp$N(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$N(__spreadValues$N({}, 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$M = Object.defineProperty;
|
497
|
+
var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
|
498
|
+
var __hasOwnProp$M = Object.prototype.hasOwnProperty;
|
499
|
+
var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
|
500
|
+
var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
501
|
+
var __spreadValues$M = (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$M.call(b, prop))
|
504
|
+
__defNormalProp$M(a, prop, b[prop]);
|
505
|
+
if (__getOwnPropSymbols$M)
|
506
|
+
for (var prop of __getOwnPropSymbols$M(b)) {
|
507
|
+
if (__propIsEnum$M.call(b, prop))
|
508
|
+
__defNormalProp$M(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$M({}, 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$L = Object.defineProperty;
|
619
|
+
var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
|
620
|
+
var __hasOwnProp$L = Object.prototype.hasOwnProperty;
|
621
|
+
var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
|
622
|
+
var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
623
|
+
var __spreadValues$L = (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$L.call(b, prop))
|
626
|
+
__defNormalProp$L(a, prop, b[prop]);
|
627
|
+
if (__getOwnPropSymbols$L)
|
628
|
+
for (var prop of __getOwnPropSymbols$L(b)) {
|
629
|
+
if (__propIsEnum$L.call(b, prop))
|
630
|
+
__defNormalProp$L(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$L({
|
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$K = Object.defineProperty;
|
771
|
+
var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
|
772
|
+
var __hasOwnProp$K = Object.prototype.hasOwnProperty;
|
773
|
+
var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
|
774
|
+
var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
775
|
+
var __spreadValues$K = (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$K.call(b, prop))
|
778
|
+
__defNormalProp$K(a, prop, b[prop]);
|
779
|
+
if (__getOwnPropSymbols$K)
|
780
|
+
for (var prop of __getOwnPropSymbols$K(b)) {
|
781
|
+
if (__propIsEnum$K.call(b, prop))
|
782
|
+
__defNormalProp$K(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$K({ 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$J = Object.defineProperty;
|
1778
|
+
var __defProps$v = Object.defineProperties;
|
1779
|
+
var __getOwnPropDescs$v = Object.getOwnPropertyDescriptors;
|
1780
|
+
var __getOwnPropSymbols$J = Object.getOwnPropertySymbols;
|
1781
|
+
var __hasOwnProp$J = Object.prototype.hasOwnProperty;
|
1782
|
+
var __propIsEnum$J = Object.prototype.propertyIsEnumerable;
|
1783
|
+
var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
1784
|
+
var __spreadValues$J = (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$J.call(b, prop))
|
1787
|
+
__defNormalProp$J(a, prop, b[prop]);
|
1788
|
+
if (__getOwnPropSymbols$J)
|
1789
|
+
for (var prop of __getOwnPropSymbols$J(b)) {
|
1790
|
+
if (__propIsEnum$J.call(b, prop))
|
1791
|
+
__defNormalProp$J(a, prop, b[prop]);
|
1792
1792
|
}
|
1793
1793
|
return a;
|
1794
1794
|
};
|
1795
|
-
var __spreadProps$
|
1795
|
+
var __spreadProps$v = (a, b) => __defProps$v(a, __getOwnPropDescs$v(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$v(__spreadValues$J({}, 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$I = Object.defineProperty;
|
2309
|
+
var __defProps$u = Object.defineProperties;
|
2310
|
+
var __getOwnPropDescs$u = Object.getOwnPropertyDescriptors;
|
2311
|
+
var __getOwnPropSymbols$I = Object.getOwnPropertySymbols;
|
2312
|
+
var __hasOwnProp$I = Object.prototype.hasOwnProperty;
|
2313
|
+
var __propIsEnum$I = Object.prototype.propertyIsEnumerable;
|
2314
|
+
var __defNormalProp$I = (obj, key, value) => key in obj ? __defProp$I(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2315
|
+
var __spreadValues$I = (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$I.call(b, prop))
|
2318
|
+
__defNormalProp$I(a, prop, b[prop]);
|
2319
|
+
if (__getOwnPropSymbols$I)
|
2320
|
+
for (var prop of __getOwnPropSymbols$I(b)) {
|
2321
|
+
if (__propIsEnum$I.call(b, prop))
|
2322
|
+
__defNormalProp$I(a, prop, b[prop]);
|
2323
2323
|
}
|
2324
2324
|
return a;
|
2325
2325
|
};
|
2326
|
-
var __spreadProps$
|
2326
|
+
var __spreadProps$u = (a, b) => __defProps$u(a, __getOwnPropDescs$u(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$u(__spreadValues$I({}, 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$H = Object.defineProperty;
|
2351
|
+
var __defProps$t = Object.defineProperties;
|
2352
|
+
var __getOwnPropDescs$t = Object.getOwnPropertyDescriptors;
|
2353
|
+
var __getOwnPropSymbols$H = Object.getOwnPropertySymbols;
|
2354
|
+
var __hasOwnProp$H = Object.prototype.hasOwnProperty;
|
2355
|
+
var __propIsEnum$H = Object.prototype.propertyIsEnumerable;
|
2356
|
+
var __defNormalProp$H = (obj, key, value) => key in obj ? __defProp$H(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2357
|
+
var __spreadValues$H = (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$H.call(b, prop))
|
2360
|
+
__defNormalProp$H(a, prop, b[prop]);
|
2361
|
+
if (__getOwnPropSymbols$H)
|
2362
|
+
for (var prop of __getOwnPropSymbols$H(b)) {
|
2363
|
+
if (__propIsEnum$H.call(b, prop))
|
2364
|
+
__defNormalProp$H(a, prop, b[prop]);
|
2365
2365
|
}
|
2366
2366
|
return a;
|
2367
2367
|
};
|
2368
|
-
var __spreadProps$
|
2368
|
+
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(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$t(__spreadValues$H({}, field), {
|
2421
2421
|
values: buffer
|
2422
2422
|
}));
|
2423
2423
|
}
|
2424
|
-
processed.push(__spreadProps$
|
2424
|
+
processed.push(__spreadProps$t(__spreadValues$H({}, 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$G = Object.defineProperty;
|
2541
|
+
var __defProps$s = Object.defineProperties;
|
2542
|
+
var __getOwnPropDescs$s = Object.getOwnPropertyDescriptors;
|
2543
|
+
var __getOwnPropSymbols$G = Object.getOwnPropertySymbols;
|
2544
|
+
var __hasOwnProp$G = Object.prototype.hasOwnProperty;
|
2545
|
+
var __propIsEnum$G = Object.prototype.propertyIsEnumerable;
|
2546
|
+
var __defNormalProp$G = (obj, key, value) => key in obj ? __defProp$G(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2547
|
+
var __spreadValues$G = (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$G.call(b, prop))
|
2550
|
+
__defNormalProp$G(a, prop, b[prop]);
|
2551
|
+
if (__getOwnPropSymbols$G)
|
2552
|
+
for (var prop of __getOwnPropSymbols$G(b)) {
|
2553
|
+
if (__propIsEnum$G.call(b, prop))
|
2554
|
+
__defNormalProp$G(a, prop, b[prop]);
|
2555
2555
|
}
|
2556
2556
|
return a;
|
2557
2557
|
};
|
2558
|
-
var __spreadProps$
|
2558
|
+
var __spreadProps$s = (a, b) => __defProps$s(a, __getOwnPropDescs$s(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$G.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$G)
|
2565
|
+
for (var prop of __getOwnPropSymbols$G(source)) {
|
2566
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$G.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$s(__spreadValues$G({
|
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$F = Object.defineProperty;
|
2889
|
+
var __defProps$r = Object.defineProperties;
|
2890
|
+
var __getOwnPropDescs$r = Object.getOwnPropertyDescriptors;
|
2891
|
+
var __getOwnPropSymbols$F = Object.getOwnPropertySymbols;
|
2892
|
+
var __hasOwnProp$F = Object.prototype.hasOwnProperty;
|
2893
|
+
var __propIsEnum$F = Object.prototype.propertyIsEnumerable;
|
2894
|
+
var __defNormalProp$F = (obj, key, value) => key in obj ? __defProp$F(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
2895
|
+
var __spreadValues$F = (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$F.call(b, prop))
|
2898
|
+
__defNormalProp$F(a, prop, b[prop]);
|
2899
|
+
if (__getOwnPropSymbols$F)
|
2900
|
+
for (var prop of __getOwnPropSymbols$F(b)) {
|
2901
|
+
if (__propIsEnum$F.call(b, prop))
|
2902
|
+
__defNormalProp$F(a, prop, b[prop]);
|
2903
2903
|
}
|
2904
2904
|
return a;
|
2905
2905
|
};
|
2906
|
-
var __spreadProps$
|
2906
|
+
var __spreadProps$r = (a, b) => __defProps$r(a, __getOwnPropDescs$r(b));
|
2907
2907
|
class GroupByVariable extends MultiValueVariable {
|
2908
2908
|
constructor(initialState) {
|
2909
|
-
super(__spreadProps$
|
2909
|
+
super(__spreadProps$r(__spreadValues$F({
|
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$F({
|
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$E = Object.defineProperty;
|
3301
|
+
var __getOwnPropSymbols$E = Object.getOwnPropertySymbols;
|
3302
|
+
var __hasOwnProp$E = Object.prototype.hasOwnProperty;
|
3303
|
+
var __propIsEnum$E = Object.prototype.propertyIsEnumerable;
|
3304
|
+
var __defNormalProp$E = (obj, key, value) => key in obj ? __defProp$E(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3305
|
+
var __spreadValues$E = (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$E.call(b, prop))
|
3308
|
+
__defNormalProp$E(a, prop, b[prop]);
|
3309
|
+
if (__getOwnPropSymbols$E)
|
3310
|
+
for (var prop of __getOwnPropSymbols$E(b)) {
|
3311
|
+
if (__propIsEnum$E.call(b, prop))
|
3312
|
+
__defNormalProp$E(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$E({
|
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$D = Object.defineProperty;
|
3682
|
+
var __getOwnPropSymbols$D = Object.getOwnPropertySymbols;
|
3683
|
+
var __hasOwnProp$D = Object.prototype.hasOwnProperty;
|
3684
|
+
var __propIsEnum$D = Object.prototype.propertyIsEnumerable;
|
3685
|
+
var __defNormalProp$D = (obj, key, value) => key in obj ? __defProp$D(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
3686
|
+
var __spreadValues$D = (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$D.call(b, prop))
|
3689
|
+
__defNormalProp$D(a, prop, b[prop]);
|
3690
|
+
if (__getOwnPropSymbols$D)
|
3691
|
+
for (var prop of __getOwnPropSymbols$D(b)) {
|
3692
|
+
if (__propIsEnum$D.call(b, prop))
|
3693
|
+
__defNormalProp$D(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$D.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$D)
|
3703
|
+
for (var prop of __getOwnPropSymbols$D(source)) {
|
3704
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$D.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$D({
|
3715
3715
|
ref,
|
3716
3716
|
role: "option",
|
3717
3717
|
id,
|
@@ -3825,13 +3825,20 @@ const VIRTUAL_LIST_OVERSCAN = 5;
|
|
3825
3825
|
const VIRTUAL_LIST_ITEM_HEIGHT = 38;
|
3826
3826
|
const VIRTUAL_LIST_ITEM_HEIGHT_WITH_DESCRIPTION = 60;
|
3827
3827
|
const ERROR_STATE_DROPDOWN_WIDTH = 366;
|
3828
|
-
|
3828
|
+
const REGEXP_NON_ASCII = /[^ -~]/m;
|
3829
|
+
function searchOptions(options) {
|
3829
3830
|
const haystack = options.map((o) => {
|
3830
3831
|
var _a;
|
3831
3832
|
return (_a = o.label) != null ? _a : o.value;
|
3832
3833
|
});
|
3833
3834
|
const fuzzySearch = getFuzzySearcher(haystack);
|
3834
3835
|
return (search, filterInputType) => {
|
3836
|
+
if (REGEXP_NON_ASCII.test(search)) {
|
3837
|
+
return options.filter((o) => {
|
3838
|
+
var _a, _b;
|
3839
|
+
return ((_a = o.label) == null ? void 0 : _a.includes(search)) || ((_b = o.value) == null ? void 0 : _b.includes(search)) || false;
|
3840
|
+
});
|
3841
|
+
}
|
3835
3842
|
if (filterInputType === "operator" && search !== "") {
|
3836
3843
|
search = `"${search}"`;
|
3837
3844
|
}
|
@@ -3958,18 +3965,6 @@ const populateInputValueOnInputTypeSwitch = ({
|
|
3958
3965
|
setInputValue("");
|
3959
3966
|
}
|
3960
3967
|
};
|
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
|
-
};
|
3973
3968
|
|
3974
3969
|
const MAX_MENU_HEIGHT = 300;
|
3975
3970
|
const useFloatingInteractions = ({
|
@@ -4035,25 +4030,25 @@ const useFloatingInteractions = ({
|
|
4035
4030
|
};
|
4036
4031
|
};
|
4037
4032
|
|
4038
|
-
var __defProp$
|
4039
|
-
var __defProps$
|
4040
|
-
var __getOwnPropDescs$
|
4041
|
-
var __getOwnPropSymbols$
|
4042
|
-
var __hasOwnProp$
|
4043
|
-
var __propIsEnum$
|
4044
|
-
var __defNormalProp$
|
4045
|
-
var __spreadValues$
|
4033
|
+
var __defProp$C = Object.defineProperty;
|
4034
|
+
var __defProps$q = Object.defineProperties;
|
4035
|
+
var __getOwnPropDescs$q = Object.getOwnPropertyDescriptors;
|
4036
|
+
var __getOwnPropSymbols$C = Object.getOwnPropertySymbols;
|
4037
|
+
var __hasOwnProp$C = Object.prototype.hasOwnProperty;
|
4038
|
+
var __propIsEnum$C = Object.prototype.propertyIsEnumerable;
|
4039
|
+
var __defNormalProp$C = (obj, key, value) => key in obj ? __defProp$C(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4040
|
+
var __spreadValues$C = (a, b) => {
|
4046
4041
|
for (var prop in b || (b = {}))
|
4047
|
-
if (__hasOwnProp$
|
4048
|
-
__defNormalProp$
|
4049
|
-
if (__getOwnPropSymbols$
|
4050
|
-
for (var prop of __getOwnPropSymbols$
|
4051
|
-
if (__propIsEnum$
|
4052
|
-
__defNormalProp$
|
4042
|
+
if (__hasOwnProp$C.call(b, prop))
|
4043
|
+
__defNormalProp$C(a, prop, b[prop]);
|
4044
|
+
if (__getOwnPropSymbols$C)
|
4045
|
+
for (var prop of __getOwnPropSymbols$C(b)) {
|
4046
|
+
if (__propIsEnum$C.call(b, prop))
|
4047
|
+
__defNormalProp$C(a, prop, b[prop]);
|
4053
4048
|
}
|
4054
4049
|
return a;
|
4055
4050
|
};
|
4056
|
-
var __spreadProps$
|
4051
|
+
var __spreadProps$q = (a, b) => __defProps$q(a, __getOwnPropDescs$q(b));
|
4057
4052
|
const MultiValuePill = ({
|
4058
4053
|
item,
|
4059
4054
|
handleRemoveMultiValue,
|
@@ -4115,7 +4110,7 @@ const MultiValuePill = ({
|
|
4115
4110
|
})));
|
4116
4111
|
};
|
4117
4112
|
const getStyles$d = (theme) => ({
|
4118
|
-
basePill: css.css(__spreadProps$
|
4113
|
+
basePill: css.css(__spreadProps$q(__spreadValues$C({
|
4119
4114
|
display: "flex",
|
4120
4115
|
alignItems: "center",
|
4121
4116
|
background: theme.colors.action.disabledBackground,
|
@@ -4143,25 +4138,25 @@ const getStyles$d = (theme) => ({
|
|
4143
4138
|
})
|
4144
4139
|
});
|
4145
4140
|
|
4146
|
-
var __defProp$
|
4147
|
-
var __defProps$
|
4148
|
-
var __getOwnPropDescs$
|
4149
|
-
var __getOwnPropSymbols$
|
4150
|
-
var __hasOwnProp$
|
4151
|
-
var __propIsEnum$
|
4152
|
-
var __defNormalProp$
|
4153
|
-
var __spreadValues$
|
4141
|
+
var __defProp$B = Object.defineProperty;
|
4142
|
+
var __defProps$p = Object.defineProperties;
|
4143
|
+
var __getOwnPropDescs$p = Object.getOwnPropertyDescriptors;
|
4144
|
+
var __getOwnPropSymbols$B = Object.getOwnPropertySymbols;
|
4145
|
+
var __hasOwnProp$B = Object.prototype.hasOwnProperty;
|
4146
|
+
var __propIsEnum$B = Object.prototype.propertyIsEnumerable;
|
4147
|
+
var __defNormalProp$B = (obj, key, value) => key in obj ? __defProp$B(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4148
|
+
var __spreadValues$B = (a, b) => {
|
4154
4149
|
for (var prop in b || (b = {}))
|
4155
|
-
if (__hasOwnProp$
|
4156
|
-
__defNormalProp$
|
4157
|
-
if (__getOwnPropSymbols$
|
4158
|
-
for (var prop of __getOwnPropSymbols$
|
4159
|
-
if (__propIsEnum$
|
4160
|
-
__defNormalProp$
|
4150
|
+
if (__hasOwnProp$B.call(b, prop))
|
4151
|
+
__defNormalProp$B(a, prop, b[prop]);
|
4152
|
+
if (__getOwnPropSymbols$B)
|
4153
|
+
for (var prop of __getOwnPropSymbols$B(b)) {
|
4154
|
+
if (__propIsEnum$B.call(b, prop))
|
4155
|
+
__defNormalProp$B(a, prop, b[prop]);
|
4161
4156
|
}
|
4162
4157
|
return a;
|
4163
4158
|
};
|
4164
|
-
var __spreadProps$
|
4159
|
+
var __spreadProps$p = (a, b) => __defProps$p(a, __getOwnPropDescs$p(b));
|
4165
4160
|
const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model, isAlwaysWip, handleChangeViewMode, focusOnWipInputRef, populateInputOnEdit }, parentRef) {
|
4166
4161
|
var _a, _b, _c, _d;
|
4167
4162
|
const [open, setOpen] = React.useState(false);
|
@@ -4183,7 +4178,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4183
4178
|
const listRef = React.useRef([]);
|
4184
4179
|
const disabledIndicesRef = React.useRef([]);
|
4185
4180
|
const filterInputTypeRef = React.useRef(!isAlwaysWip ? "value" : "key");
|
4186
|
-
const optionsSearcher = React.useMemo(() =>
|
4181
|
+
const optionsSearcher = React.useMemo(() => searchOptions(options), [options]);
|
4187
4182
|
const isLastFilter = React.useMemo(() => {
|
4188
4183
|
if (isAlwaysWip) {
|
4189
4184
|
return false;
|
@@ -4563,7 +4558,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4563
4558
|
index: i,
|
4564
4559
|
handleRemoveMultiValue,
|
4565
4560
|
handleEditMultiValuePill
|
4566
|
-
})) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$
|
4561
|
+
})) : null) : null, /* @__PURE__ */ React__default["default"].createElement("input", __spreadProps$p(__spreadValues$B({}, getReferenceProps({
|
4567
4562
|
ref: refs.setReference,
|
4568
4563
|
onChange,
|
4569
4564
|
value: inputValue,
|
@@ -4599,14 +4594,14 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4599
4594
|
visuallyHiddenDismiss: true,
|
4600
4595
|
modal: false
|
4601
4596
|
}, /* @__PURE__ */ React__default["default"].createElement(React__default["default"].Fragment, null, /* @__PURE__ */ React__default["default"].createElement("div", {
|
4602
|
-
style: __spreadProps$
|
4597
|
+
style: __spreadProps$p(__spreadValues$B({}, floatingStyles), {
|
4603
4598
|
width: `${optionsError ? ERROR_STATE_DROPDOWN_WIDTH : maxOptionWidth}px`,
|
4604
4599
|
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
|
4605
4600
|
}),
|
4606
4601
|
ref: refs.setFloating,
|
4607
4602
|
className: styles.dropdownWrapper,
|
4608
4603
|
tabIndex: -1
|
4609
|
-
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$
|
4604
|
+
}, /* @__PURE__ */ React__default["default"].createElement("div", __spreadProps$p(__spreadValues$B({
|
4610
4605
|
style: {
|
4611
4606
|
height: `${rowVirtualizer.getTotalSize() || VIRTUAL_LIST_ITEM_HEIGHT}px`
|
4612
4607
|
}
|
@@ -4634,7 +4629,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4634
4629
|
}
|
4635
4630
|
const nextItem = filteredDropDownItems[virtualItem.index + 1];
|
4636
4631
|
const shouldAddBottomBorder = nextItem && !nextItem.group && !nextItem.options && item.group;
|
4637
|
-
return /* @__PURE__ */ React__default["default"].createElement(DropdownItem, __spreadProps$
|
4632
|
+
return /* @__PURE__ */ React__default["default"].createElement(DropdownItem, __spreadProps$p(__spreadValues$B({}, getItemProps({
|
4638
4633
|
key: `${item.value}-${index}`,
|
4639
4634
|
ref(node) {
|
4640
4635
|
listRef.current[index] = node;
|
@@ -4709,7 +4704,7 @@ const getStyles$c = (theme) => ({
|
|
4709
4704
|
alignItems: "center",
|
4710
4705
|
flexWrap: "wrap"
|
4711
4706
|
}),
|
4712
|
-
basePill: css.css(__spreadProps$
|
4707
|
+
basePill: css.css(__spreadProps$p(__spreadValues$B({
|
4713
4708
|
display: "flex",
|
4714
4709
|
alignItems: "center",
|
4715
4710
|
background: theme.colors.action.disabledBackground,
|
@@ -4763,31 +4758,31 @@ const getStyles$c = (theme) => ({
|
|
4763
4758
|
borderTop: `1px solid ${theme.colors.border.weak}`
|
4764
4759
|
}
|
4765
4760
|
}),
|
4766
|
-
descriptionText: css.css(__spreadProps$
|
4761
|
+
descriptionText: css.css(__spreadProps$p(__spreadValues$B({}, theme.typography.bodySmall), {
|
4767
4762
|
color: theme.colors.text.secondary,
|
4768
4763
|
paddingTop: theme.spacing(0.5)
|
4769
4764
|
}))
|
4770
4765
|
});
|
4771
4766
|
|
4772
|
-
var __defProp$
|
4773
|
-
var __defProps$
|
4774
|
-
var __getOwnPropDescs$
|
4775
|
-
var __getOwnPropSymbols$
|
4776
|
-
var __hasOwnProp$
|
4777
|
-
var __propIsEnum$
|
4778
|
-
var __defNormalProp$
|
4779
|
-
var __spreadValues$
|
4767
|
+
var __defProp$A = Object.defineProperty;
|
4768
|
+
var __defProps$o = Object.defineProperties;
|
4769
|
+
var __getOwnPropDescs$o = Object.getOwnPropertyDescriptors;
|
4770
|
+
var __getOwnPropSymbols$A = Object.getOwnPropertySymbols;
|
4771
|
+
var __hasOwnProp$A = Object.prototype.hasOwnProperty;
|
4772
|
+
var __propIsEnum$A = Object.prototype.propertyIsEnumerable;
|
4773
|
+
var __defNormalProp$A = (obj, key, value) => key in obj ? __defProp$A(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
4774
|
+
var __spreadValues$A = (a, b) => {
|
4780
4775
|
for (var prop in b || (b = {}))
|
4781
|
-
if (__hasOwnProp$
|
4782
|
-
__defNormalProp$
|
4783
|
-
if (__getOwnPropSymbols$
|
4784
|
-
for (var prop of __getOwnPropSymbols$
|
4785
|
-
if (__propIsEnum$
|
4786
|
-
__defNormalProp$
|
4776
|
+
if (__hasOwnProp$A.call(b, prop))
|
4777
|
+
__defNormalProp$A(a, prop, b[prop]);
|
4778
|
+
if (__getOwnPropSymbols$A)
|
4779
|
+
for (var prop of __getOwnPropSymbols$A(b)) {
|
4780
|
+
if (__propIsEnum$A.call(b, prop))
|
4781
|
+
__defNormalProp$A(a, prop, b[prop]);
|
4787
4782
|
}
|
4788
4783
|
return a;
|
4789
4784
|
};
|
4790
|
-
var __spreadProps$
|
4785
|
+
var __spreadProps$o = (a, b) => __defProps$o(a, __getOwnPropDescs$o(b));
|
4791
4786
|
function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
4792
4787
|
var _a, _b, _c;
|
4793
4788
|
const styles = ui.useStyles2(getStyles$b);
|
@@ -4881,7 +4876,7 @@ function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
|
4881
4876
|
});
|
4882
4877
|
}
|
4883
4878
|
const getStyles$b = (theme) => ({
|
4884
|
-
combinedFilterPill: css.css(__spreadProps$
|
4879
|
+
combinedFilterPill: css.css(__spreadProps$o(__spreadValues$A({
|
4885
4880
|
display: "flex",
|
4886
4881
|
alignItems: "center",
|
4887
4882
|
background: theme.colors.action.selected,
|
@@ -4939,83 +4934,27 @@ const AdHocFiltersAlwaysWipCombobox = React.forwardRef(function AdHocFiltersAlwa
|
|
4939
4934
|
});
|
4940
4935
|
});
|
4941
4936
|
|
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));
|
4961
4937
|
const AdHocFiltersComboboxRenderer = React.memo(function AdHocFiltersComboboxRenderer2({ model }) {
|
4962
4938
|
const { filters, readOnly } = model.useState();
|
4963
4939
|
const styles = ui.useStyles2(getStyles$a);
|
4964
|
-
const wrapperRef = React.useRef(null);
|
4965
4940
|
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
|
-
}, []);
|
4988
4941
|
return /* @__PURE__ */ React__default["default"].createElement("div", {
|
4989
4942
|
className: css.cx(styles.comboboxWrapper, { [styles.comboboxFocusOutline]: !readOnly }),
|
4990
4943
|
onClick: () => {
|
4991
4944
|
var _a;
|
4992
4945
|
(_a = focusOnWipInputRef.current) == null ? void 0 : _a.call(focusOnWipInputRef);
|
4993
|
-
}
|
4994
|
-
ref: wrapperRef,
|
4995
|
-
onFocusCapture: handleFilterCollapse(false, filters.length),
|
4996
|
-
onBlurCapture: handleFilterCollapse(!!model.state.collapseFilters ? true : false, filters.length)
|
4946
|
+
}
|
4997
4947
|
}, /* @__PURE__ */ React__default["default"].createElement(ui.Icon, {
|
4998
4948
|
name: "filter",
|
4999
4949
|
className: styles.filterIcon,
|
5000
4950
|
size: "lg"
|
5001
|
-
}),
|
4951
|
+
}), filters.map((filter, index) => /* @__PURE__ */ React__default["default"].createElement(AdHocFilterPill, {
|
5002
4952
|
key: `${index}-${filter.key}`,
|
5003
4953
|
filter,
|
5004
4954
|
model,
|
5005
4955
|
readOnly,
|
5006
4956
|
focusOnWipInputRef: focusOnWipInputRef.current
|
5007
|
-
})),
|
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, {
|
4957
|
+
})), !readOnly ? /* @__PURE__ */ React__default["default"].createElement(AdHocFiltersAlwaysWipCombobox, {
|
5019
4958
|
model,
|
5020
4959
|
ref: focusOnWipInputRef
|
5021
4960
|
}) : null);
|
@@ -5049,20 +4988,7 @@ const getStyles$a = (theme) => ({
|
|
5049
4988
|
filterIcon: css.css({
|
5050
4989
|
color: theme.colors.text.secondary,
|
5051
4990
|
alignSelf: "center"
|
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
|
-
}))
|
4991
|
+
})
|
5066
4992
|
});
|
5067
4993
|
|
5068
4994
|
var __defProp$z = Object.defineProperty;
|