@grafana/scenes 6.20.3--canary.1151.15712722900.0 → 6.21.0--canary.1146.15674574987.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +0 -41
- package/dist/esm/behaviors/SceneRenderProfiler.js.map +1 -1
- package/dist/esm/components/NestedScene.js +2 -3
- package/dist/esm/components/NestedScene.js.map +1 -1
- package/dist/esm/components/SceneApp/SceneAppPage.js +3 -4
- package/dist/esm/components/SceneApp/SceneAppPage.js.map +1 -1
- package/dist/esm/components/SceneCanvasText.js +2 -3
- package/dist/esm/components/SceneCanvasText.js.map +1 -1
- package/dist/esm/components/SceneDebugger/SceneDebugger.js +1 -10
- package/dist/esm/components/SceneDebugger/SceneDebugger.js.map +1 -1
- package/dist/esm/components/SceneRefreshPicker.js.map +1 -1
- package/dist/esm/components/SceneTimeRangeCompare.js +2 -6
- package/dist/esm/components/SceneTimeRangeCompare.js.map +1 -1
- package/dist/esm/components/VizPanel/VizPanel.js +1 -2
- package/dist/esm/components/VizPanel/VizPanel.js.map +1 -1
- package/dist/esm/components/VizPanel/VizPanelExploreButton.js +1 -2
- package/dist/esm/components/VizPanel/VizPanelExploreButton.js.map +1 -1
- package/dist/esm/components/VizPanel/VizPanelRenderer.js +2 -3
- package/dist/esm/components/VizPanel/VizPanelRenderer.js.map +1 -1
- package/dist/esm/components/VizPanel/VizPanelSeriesLimit.js +2 -19
- package/dist/esm/components/VizPanel/VizPanelSeriesLimit.js.map +1 -1
- package/dist/esm/components/layout/grid/SceneGridRow.js +1 -2
- package/dist/esm/components/layout/grid/SceneGridRow.js.map +1 -1
- package/dist/esm/components/layout/split/Splitter.js +1 -2
- package/dist/esm/components/layout/split/Splitter.js.map +1 -1
- package/dist/esm/index.js +0 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/utils/ControlsLabel.js +1 -11
- package/dist/esm/utils/ControlsLabel.js.map +1 -1
- package/dist/esm/utils/LoadingIndicator.js +1 -2
- package/dist/esm/utils/LoadingIndicator.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFilterBuilder.js +2 -3
- package/dist/esm/variables/adhoc/AdHocFilterBuilder.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFilterRenderer.js +5 -20
- package/dist/esm/variables/adhoc/AdHocFilterRenderer.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFilterPill.js +3 -25
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFilterPill.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersCombobox.js +2 -11
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/AdHocFiltersCombobox.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/DropdownItem.js +4 -5
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/DropdownItem.js.map +1 -1
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/MultiValuePill.js +1 -8
- package/dist/esm/variables/adhoc/AdHocFiltersCombobox/MultiValuePill.js.map +1 -1
- package/dist/esm/variables/adhoc/getAdHocFiltersFromScopes.js +1 -3
- package/dist/esm/variables/adhoc/getAdHocFiltersFromScopes.js.map +1 -1
- package/dist/esm/variables/components/VariableValueInput.js +1 -2
- package/dist/esm/variables/components/VariableValueInput.js.map +1 -1
- package/dist/esm/variables/components/VariableValueSelect.js +1 -2
- package/dist/esm/variables/components/VariableValueSelect.js.map +1 -1
- package/dist/esm/variables/groupby/DefaultGroupByCustomIndicatorContainer.js +3 -10
- package/dist/esm/variables/groupby/DefaultGroupByCustomIndicatorContainer.js.map +1 -1
- package/dist/esm/variables/groupby/GroupByVariable.js +4 -17
- package/dist/esm/variables/groupby/GroupByVariable.js.map +1 -1
- package/dist/esm/variables/interpolation/formatRegistry.js +12 -49
- package/dist/esm/variables/interpolation/formatRegistry.js.map +1 -1
- package/dist/esm/variables/variants/DataSourceVariable.js +1 -5
- package/dist/esm/variables/variants/DataSourceVariable.js.map +1 -1
- package/dist/esm/variables/variants/IntervalVariable.js +1 -2
- package/dist/esm/variables/variants/IntervalVariable.js.map +1 -1
- package/dist/esm/variables/variants/TestVariable.js +1 -2
- package/dist/esm/variables/variants/TestVariable.js.map +1 -1
- package/dist/index.d.ts +2 -9
- package/dist/index.js +62 -228
- package/dist/index.js.map +1 -1
- package/package.json +13 -22
- package/dist/esm/locales/en-US/grafana-scenes.json.js +0 -151
- package/dist/esm/locales/en-US/grafana-scenes.json.js.map +0 -1
- package/dist/esm/utils/loadResources.js +0 -23
- package/dist/esm/utils/loadResources.js.map +0 -1
- package/dist/grafana-scenes-DCHONTnD.js +0 -153
- package/dist/grafana-scenes-DCHONTnD.js.map +0 -1
package/dist/index.js
CHANGED
@@ -10,7 +10,6 @@ var rxjs = require('rxjs');
|
|
10
10
|
var uuid = require('uuid');
|
11
11
|
var lodash = require('lodash');
|
12
12
|
var schema = require('@grafana/schema');
|
13
|
-
var i18n = require('@grafana/i18n');
|
14
13
|
var ui = require('@grafana/ui');
|
15
14
|
var e2eSelectors = require('@grafana/e2e-selectors');
|
16
15
|
var css = require('@emotion/css');
|
@@ -1321,10 +1320,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1321
1320
|
{
|
1322
1321
|
id: schema.VariableFormatID.Raw,
|
1323
1322
|
name: "raw",
|
1324
|
-
description:
|
1325
|
-
"grafana-scenes.variables.format-registry.formats.description.keep-value-as-is",
|
1326
|
-
"Keep value as is"
|
1327
|
-
),
|
1323
|
+
description: "Keep value as is",
|
1328
1324
|
formatter: (value) => String(value)
|
1329
1325
|
},
|
1330
1326
|
{
|
@@ -1354,10 +1350,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1354
1350
|
{
|
1355
1351
|
id: schema.VariableFormatID.Pipe,
|
1356
1352
|
name: "Pipe",
|
1357
|
-
description:
|
1358
|
-
"grafana-scenes.variables.format-registry.formats.description.values-are-separated-by-character",
|
1359
|
-
"Values are separated by | character"
|
1360
|
-
),
|
1353
|
+
description: "Values are separated by | character",
|
1361
1354
|
formatter: (value) => {
|
1362
1355
|
if (typeof value === "string") {
|
1363
1356
|
return value;
|
@@ -1371,10 +1364,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1371
1364
|
{
|
1372
1365
|
id: schema.VariableFormatID.Distributed,
|
1373
1366
|
name: "Distributed",
|
1374
|
-
description:
|
1375
|
-
"grafana-scenes.variables.format-registry.formats.description.multiple-values-are-formatted-like-variablevalue",
|
1376
|
-
"Multiple values are formatted like variable=value"
|
1377
|
-
),
|
1367
|
+
description: "Multiple values are formatted like variable=value",
|
1378
1368
|
formatter: (value, args, variable) => {
|
1379
1369
|
if (typeof value === "string") {
|
1380
1370
|
return value;
|
@@ -1395,10 +1385,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1395
1385
|
{
|
1396
1386
|
id: schema.VariableFormatID.CSV,
|
1397
1387
|
name: "Csv",
|
1398
|
-
description:
|
1399
|
-
"grafana-scenes.variables.format-registry.formats.description.commaseparated-values",
|
1400
|
-
"Comma-separated values"
|
1401
|
-
),
|
1388
|
+
description: "Comma-separated values",
|
1402
1389
|
formatter: (value) => {
|
1403
1390
|
if (typeof value === "string") {
|
1404
1391
|
return value;
|
@@ -1412,10 +1399,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1412
1399
|
{
|
1413
1400
|
id: schema.VariableFormatID.HTML,
|
1414
1401
|
name: "HTML",
|
1415
|
-
description:
|
1416
|
-
"grafana-scenes.variables.format-registry.formats.description.html-escaping-of-values",
|
1417
|
-
"HTML escaping of values"
|
1418
|
-
),
|
1402
|
+
description: "HTML escaping of values",
|
1419
1403
|
formatter: (value) => {
|
1420
1404
|
if (typeof value === "string") {
|
1421
1405
|
return data.textUtil.escapeHtml(value);
|
@@ -1429,10 +1413,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1429
1413
|
{
|
1430
1414
|
id: schema.VariableFormatID.JSON,
|
1431
1415
|
name: "JSON",
|
1432
|
-
description:
|
1433
|
-
"grafana-scenes.variables.format-registry.formats.description.json-stringify-value",
|
1434
|
-
"JSON stringify value"
|
1435
|
-
),
|
1416
|
+
description: "JSON stringify value",
|
1436
1417
|
formatter: (value) => {
|
1437
1418
|
if (typeof value === "string") {
|
1438
1419
|
return value;
|
@@ -1443,10 +1424,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1443
1424
|
{
|
1444
1425
|
id: schema.VariableFormatID.PercentEncode,
|
1445
1426
|
name: "Percent encode",
|
1446
|
-
description:
|
1447
|
-
"grafana-scenes.variables.format-registry.formats.description.useful-for-url-escaping-values",
|
1448
|
-
"Useful for URL escaping values"
|
1449
|
-
),
|
1427
|
+
description: "Useful for URL escaping values",
|
1450
1428
|
formatter: (value) => {
|
1451
1429
|
if (lodash.isArray(value)) {
|
1452
1430
|
return encodeURIComponentStrict("{" + value.join(",") + "}");
|
@@ -1457,10 +1435,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1457
1435
|
{
|
1458
1436
|
id: schema.VariableFormatID.SingleQuote,
|
1459
1437
|
name: "Single quote",
|
1460
|
-
description:
|
1461
|
-
"grafana-scenes.variables.format-registry.formats.description.single-quoted-values",
|
1462
|
-
"Single quoted values"
|
1463
|
-
),
|
1438
|
+
description: "Single quoted values",
|
1464
1439
|
formatter: (value) => {
|
1465
1440
|
const regExp = new RegExp(`'`, "g");
|
1466
1441
|
if (lodash.isArray(value)) {
|
@@ -1473,10 +1448,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1473
1448
|
{
|
1474
1449
|
id: schema.VariableFormatID.DoubleQuote,
|
1475
1450
|
name: "Double quote",
|
1476
|
-
description:
|
1477
|
-
"grafana-scenes.variables.format-registry.formats.description.double-quoted-values",
|
1478
|
-
"Double quoted values"
|
1479
|
-
),
|
1451
|
+
description: "Double quoted values",
|
1480
1452
|
formatter: (value) => {
|
1481
1453
|
const regExp = new RegExp('"', "g");
|
1482
1454
|
if (lodash.isArray(value)) {
|
@@ -1495,10 +1467,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1495
1467
|
{
|
1496
1468
|
id: schema.VariableFormatID.Date,
|
1497
1469
|
name: "Date",
|
1498
|
-
description:
|
1499
|
-
"grafana-scenes.variables.format-registry.formats.description.format-date-in-different-ways",
|
1500
|
-
"Format date in different ways"
|
1501
|
-
),
|
1470
|
+
description: "Format date in different ways",
|
1502
1471
|
formatter: (value, args) => {
|
1503
1472
|
var _a;
|
1504
1473
|
let nrValue = NaN;
|
@@ -1529,10 +1498,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1529
1498
|
{
|
1530
1499
|
id: schema.VariableFormatID.Glob,
|
1531
1500
|
name: "Glob",
|
1532
|
-
description:
|
1533
|
-
"grafana-scenes.variables.format-registry.formats.description.format-multivalued-variables-using-syntax-example",
|
1534
|
-
"Format multi-valued variables using glob syntax, example {value1,value2}"
|
1535
|
-
),
|
1501
|
+
description: "Format multi-valued variables using glob syntax, example {value1,value2}",
|
1536
1502
|
formatter: (value) => {
|
1537
1503
|
if (lodash.isArray(value) && value.length > 1) {
|
1538
1504
|
return "{" + value.join(",") + "}";
|
@@ -1569,10 +1535,7 @@ const formatRegistry = new data.Registry(() => {
|
|
1569
1535
|
{
|
1570
1536
|
id: schema.VariableFormatID.UriEncode,
|
1571
1537
|
name: "Percent encode as URI",
|
1572
|
-
description:
|
1573
|
-
"grafana-scenes.variables.format-registry.formats.description.useful-escaping-values-taking-syntax-characters",
|
1574
|
-
"Useful for URL escaping values, taking into URI syntax characters"
|
1575
|
-
),
|
1538
|
+
description: "Useful for URL escaping values, taking into URI syntax characters",
|
1576
1539
|
formatter: (value) => {
|
1577
1540
|
if (lodash.isArray(value)) {
|
1578
1541
|
return encodeURIStrict("{" + value.join(",") + "}");
|
@@ -2842,7 +2805,7 @@ function VariableValueSelect({ model, state }) {
|
|
2842
2805
|
{
|
2843
2806
|
id: key,
|
2844
2807
|
isValidNewOption: (inputValue2) => inputValue2.trim().length > 0,
|
2845
|
-
placeholder:
|
2808
|
+
placeholder: "Select value",
|
2846
2809
|
width: "auto",
|
2847
2810
|
disabled: isReadOnly,
|
2848
2811
|
value: selectValue,
|
@@ -3149,7 +3112,7 @@ function DefaultGroupByCustomIndicatorContainer(props) {
|
|
3149
3112
|
/* @__PURE__ */ React__default.default.createElement(
|
3150
3113
|
ui.IconButton,
|
3151
3114
|
{
|
3152
|
-
"aria-label":
|
3115
|
+
"aria-label": "clear",
|
3153
3116
|
key: "clear",
|
3154
3117
|
name: "times",
|
3155
3118
|
size: "md",
|
@@ -3181,10 +3144,7 @@ function DefaultGroupByCustomIndicatorContainer(props) {
|
|
3181
3144
|
name: "history",
|
3182
3145
|
size: "md",
|
3183
3146
|
className: styles.clearIcon,
|
3184
|
-
tooltip:
|
3185
|
-
"grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip-restore-groupby-set-by-this-dashboard",
|
3186
|
-
"Restore groupby set by this dashboard."
|
3187
|
-
)
|
3147
|
+
tooltip: "Restore groupby set by this dashboard."
|
3188
3148
|
}
|
3189
3149
|
)
|
3190
3150
|
);
|
@@ -3195,10 +3155,7 @@ function DefaultGroupByCustomIndicatorContainer(props) {
|
|
3195
3155
|
ui.Tooltip,
|
3196
3156
|
{
|
3197
3157
|
key: "tooltip",
|
3198
|
-
content:
|
3199
|
-
"grafana-scenes.variables.default-group-by-custom-indicator-container.tooltip",
|
3200
|
-
"Applied by default in this dashboard. If edited, it carries over to other dashboards."
|
3201
|
-
),
|
3158
|
+
content: "Applied by default in this dashboard. If edited, it carries over to other dashboards.",
|
3202
3159
|
placement: "bottom"
|
3203
3160
|
},
|
3204
3161
|
/* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: "info-circle", size: "md" })
|
@@ -3452,16 +3409,10 @@ function GroupByVariableRenderer({ model }) {
|
|
3452
3409
|
return isMulti ? /* @__PURE__ */ React__default.default.createElement(
|
3453
3410
|
ui.MultiSelect,
|
3454
3411
|
{
|
3455
|
-
"aria-label":
|
3456
|
-
"grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector",
|
3457
|
-
"Group by selector"
|
3458
|
-
),
|
3412
|
+
"aria-label": "Group by selector",
|
3459
3413
|
"data-testid": `GroupBySelect-${key}`,
|
3460
3414
|
id: key,
|
3461
|
-
placeholder:
|
3462
|
-
"grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label",
|
3463
|
-
"Group by label"
|
3464
|
-
),
|
3415
|
+
placeholder: "Group by label",
|
3465
3416
|
width: "auto",
|
3466
3417
|
allowCustomValue,
|
3467
3418
|
inputValue,
|
@@ -3514,16 +3465,10 @@ function GroupByVariableRenderer({ model }) {
|
|
3514
3465
|
) : /* @__PURE__ */ React__default.default.createElement(
|
3515
3466
|
ui.Select,
|
3516
3467
|
{
|
3517
|
-
"aria-label":
|
3518
|
-
"grafana-scenes.variables.group-by-variable-renderer.aria-label-group-by-selector",
|
3519
|
-
"Group by selector"
|
3520
|
-
),
|
3468
|
+
"aria-label": "Group by selector",
|
3521
3469
|
"data-testid": `GroupBySelect-${key}`,
|
3522
3470
|
id: key,
|
3523
|
-
placeholder:
|
3524
|
-
"grafana-scenes.variables.group-by-variable-renderer.placeholder-group-by-label",
|
3525
|
-
"Group by label"
|
3526
|
-
),
|
3471
|
+
placeholder: "Group by label",
|
3527
3472
|
width: "auto",
|
3528
3473
|
inputValue,
|
3529
3474
|
value: uncommittedValue && uncommittedValue.length > 0 ? uncommittedValue : null,
|
@@ -3580,7 +3525,7 @@ function toSelectableValue$1(input) {
|
|
3580
3525
|
}
|
3581
3526
|
|
3582
3527
|
function LoadingIndicator(props) {
|
3583
|
-
return /* @__PURE__ */ React__default.default.createElement(ui.Tooltip, { content:
|
3528
|
+
return /* @__PURE__ */ React__default.default.createElement(ui.Tooltip, { content: "Cancel query" }, /* @__PURE__ */ React__default.default.createElement(
|
3584
3529
|
ui.Icon,
|
3585
3530
|
{
|
3586
3531
|
className: "spin-clockwise",
|
@@ -3627,16 +3572,7 @@ function ControlsLabel(props) {
|
|
3627
3572
|
const testId = typeof props.label === "string" ? e2eSelectors.selectors.pages.Dashboard.SubMenu.submenuItemLabels(props.label) : "";
|
3628
3573
|
let labelElement;
|
3629
3574
|
if (isVertical) {
|
3630
|
-
labelElement = /* @__PURE__ */ React__default.default.createElement("label", { className: css.cx(styles.verticalLabel, props.className), "data-testid": testId, htmlFor: props.htmlFor }, props.prefix, props.label, descriptionIndicator, errorIndicator, props.icon && /* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: props.icon, className: styles.normalIcon }), loadingIndicator, props.onRemove && /* @__PURE__ */ React__default.default.createElement(
|
3631
|
-
ui.IconButton,
|
3632
|
-
{
|
3633
|
-
variant: "secondary",
|
3634
|
-
size: "xs",
|
3635
|
-
name: "times",
|
3636
|
-
onClick: props.onRemove,
|
3637
|
-
tooltip: i18n.t("grafana-scenes.utils.controls-label.tooltip-remove", "Remove")
|
3638
|
-
}
|
3639
|
-
), props.suffix);
|
3575
|
+
labelElement = /* @__PURE__ */ React__default.default.createElement("label", { className: css.cx(styles.verticalLabel, props.className), "data-testid": testId, htmlFor: props.htmlFor }, props.prefix, props.label, descriptionIndicator, errorIndicator, props.icon && /* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: props.icon, className: styles.normalIcon }), loadingIndicator, props.onRemove && /* @__PURE__ */ React__default.default.createElement(ui.IconButton, { variant: "secondary", size: "xs", name: "times", onClick: props.onRemove, tooltip: "Remove" }), props.suffix);
|
3640
3576
|
} else {
|
3641
3577
|
labelElement = /* @__PURE__ */ React__default.default.createElement("label", { className: css.cx(styles.horizontalLabel, props.className), "data-testid": testId, htmlFor: props.htmlFor }, props.prefix, errorIndicator, props.icon && /* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: props.icon, className: styles.normalIcon }), props.label, descriptionIndicator, loadingIndicator, props.suffix);
|
3642
3578
|
}
|
@@ -3785,10 +3721,7 @@ function AdHocFilterRenderer({ filter, model }) {
|
|
3785
3721
|
width: "auto",
|
3786
3722
|
value: valueValue,
|
3787
3723
|
filterOption: filterNoOp,
|
3788
|
-
placeholder:
|
3789
|
-
"grafana-scenes.variables.ad-hoc-filter-renderer.value-select.placeholder-select-value",
|
3790
|
-
"Select value"
|
3791
|
-
),
|
3724
|
+
placeholder: "Select value",
|
3792
3725
|
options: filteredValueOptions,
|
3793
3726
|
inputValue: valueInputValue,
|
3794
3727
|
onInputChange: onValueInputChange,
|
@@ -3835,10 +3768,7 @@ function AdHocFilterRenderer({ filter, model }) {
|
|
3835
3768
|
width: "auto",
|
3836
3769
|
allowCustomValue: (_c = model.state.allowCustomValue) != null ? _c : true,
|
3837
3770
|
value: keyValue,
|
3838
|
-
placeholder:
|
3839
|
-
"grafana-scenes.variables.ad-hoc-filter-renderer.key-select.placeholder-select-label",
|
3840
|
-
"Select label"
|
3841
|
-
),
|
3771
|
+
placeholder: "Select label",
|
3842
3772
|
options: handleOptionGroups(keys),
|
3843
3773
|
onChange: (v) => {
|
3844
3774
|
model._updateFilter(filter, {
|
@@ -3895,23 +3825,15 @@ function AdHocFilterRenderer({ filter, model }) {
|
|
3895
3825
|
const label = /* @__PURE__ */ React__default.default.createElement(ControlsLabel, { layout: "vertical", label: (_d = filter.key) != null ? _d : "", onRemove: () => model._removeFilter(filter) });
|
3896
3826
|
return /* @__PURE__ */ React__default.default.createElement(ui.Field, { label, "data-testid": `AdHocFilter-${filter.key}`, className: styles.field }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.wrapper }, operatorSelect, valueSelect));
|
3897
3827
|
} else {
|
3898
|
-
return /* @__PURE__ */ React__default.default.createElement(
|
3899
|
-
ui.Field,
|
3900
|
-
{
|
3901
|
-
label: i18n.t("grafana-scenes.variables.ad-hoc-filter-renderer.label-select-label", "Select label"),
|
3902
|
-
"data-testid": `AdHocFilter-${filter.key}`,
|
3903
|
-
className: styles.field
|
3904
|
-
},
|
3905
|
-
keySelect
|
3906
|
-
);
|
3828
|
+
return /* @__PURE__ */ React__default.default.createElement(ui.Field, { label: "Select label", "data-testid": `AdHocFilter-${filter.key}`, className: styles.field }, keySelect);
|
3907
3829
|
}
|
3908
3830
|
}
|
3909
3831
|
return /* @__PURE__ */ React__default.default.createElement("div", { className: styles.wrapper, "data-testid": `AdHocFilter-${filter.key}` }, keySelect, operatorSelect, valueSelect, /* @__PURE__ */ React__default.default.createElement(
|
3910
3832
|
ui.Button,
|
3911
3833
|
{
|
3912
3834
|
variant: "secondary",
|
3913
|
-
"aria-label":
|
3914
|
-
title:
|
3835
|
+
"aria-label": "Remove filter",
|
3836
|
+
title: "Remove filter",
|
3915
3837
|
className: styles.removeButton,
|
3916
3838
|
icon: "times",
|
3917
3839
|
"data-testid": `AdHocFilter-remove-${(_e = filter.key) != null ? _e : ""}`,
|
@@ -3992,8 +3914,8 @@ function AdHocFilterBuilder({ model, addFilterButtonText }) {
|
|
3992
3914
|
{
|
3993
3915
|
variant: "secondary",
|
3994
3916
|
icon: "plus",
|
3995
|
-
title:
|
3996
|
-
"aria-label":
|
3917
|
+
title: "Add filter",
|
3918
|
+
"aria-label": "Add filter",
|
3997
3919
|
"data-testid": `AdHocFilter-add`,
|
3998
3920
|
onClick: () => model._addWip()
|
3999
3921
|
},
|
@@ -4195,13 +4117,13 @@ const getStyles$e = (theme) => ({
|
|
4195
4117
|
})
|
4196
4118
|
});
|
4197
4119
|
const LoadingOptionsPlaceholder = () => {
|
4198
|
-
return /* @__PURE__ */ React__default.default.createElement(DropdownItem, { onClick: (e) => e.stopPropagation() },
|
4120
|
+
return /* @__PURE__ */ React__default.default.createElement(DropdownItem, { onClick: (e) => e.stopPropagation() }, "Loading options...");
|
4199
4121
|
};
|
4200
4122
|
const NoOptionsPlaceholder = () => {
|
4201
|
-
return /* @__PURE__ */ React__default.default.createElement(DropdownItem, { onClick: (e) => e.stopPropagation() },
|
4123
|
+
return /* @__PURE__ */ React__default.default.createElement(DropdownItem, { onClick: (e) => e.stopPropagation() }, "No options found");
|
4202
4124
|
};
|
4203
4125
|
const OptionsErrorPlaceholder = ({ handleFetchOptions }) => {
|
4204
|
-
return /* @__PURE__ */ React__default.default.createElement(DropdownItem, { onClick: handleFetchOptions },
|
4126
|
+
return /* @__PURE__ */ React__default.default.createElement(DropdownItem, { onClick: handleFetchOptions }, "An error has occurred fetching labels. Click to retry");
|
4205
4127
|
};
|
4206
4128
|
const MultiValueApplyButton = ({
|
4207
4129
|
onApply,
|
@@ -4220,7 +4142,7 @@ const MultiValueApplyButton = ({
|
|
4220
4142
|
transform: `translate(${floatingElementRect == null ? void 0 : floatingElementRect.left}px,${floatingElementRect ? floatingElementRect.top + menuHeight : 0}px)`
|
4221
4143
|
}
|
4222
4144
|
},
|
4223
|
-
/* @__PURE__ */ React__default.default.createElement(ui.Button, { onClick: onApply, size: "sm", tabIndex: -1 },
|
4145
|
+
/* @__PURE__ */ React__default.default.createElement(ui.Button, { onClick: onApply, size: "sm", tabIndex: -1 }, "Apply")
|
4224
4146
|
);
|
4225
4147
|
};
|
4226
4148
|
|
@@ -4482,13 +4404,7 @@ const MultiValuePill = ({
|
|
4482
4404
|
size: "sm",
|
4483
4405
|
variant: "secondary",
|
4484
4406
|
className: styles.removeButton,
|
4485
|
-
tooltip:
|
4486
|
-
"grafana-scenes.components.adhoc-filters-combobox.remove-filter-value",
|
4487
|
-
"Remove filter value - {{itemLabel}}",
|
4488
|
-
{
|
4489
|
-
itemLabel: (_b = item.label) != null ? _b : item.value
|
4490
|
-
}
|
4491
|
-
)
|
4407
|
+
tooltip: `Remove filter value - ${(_b = item.label) != null ? _b : item.value}`
|
4492
4408
|
},
|
4493
4409
|
/* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: "times", size: "md", id: `${item.value}-${index}-close-icon` })
|
4494
4410
|
)
|
@@ -4913,10 +4829,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
4913
4829
|
filter.origin && styles.keyPill,
|
4914
4830
|
operatorIdentifier
|
4915
4831
|
),
|
4916
|
-
"aria-label":
|
4917
|
-
"grafana-scenes.variables.ad-hoc-combobox.aria-label-edit-filter-operator",
|
4918
|
-
"Edit filter operator"
|
4919
|
-
),
|
4832
|
+
"aria-label": "Edit filter operator",
|
4920
4833
|
tabIndex: filter.origin ? -1 : 0,
|
4921
4834
|
onClick: (event) => {
|
4922
4835
|
if (filter.origin) {
|
@@ -5023,7 +4936,6 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
5023
4936
|
}
|
5024
4937
|
const nextItem = filteredDropDownItems[virtualItem.index + 1];
|
5025
4938
|
const shouldAddBottomBorder = nextItem && !nextItem.group && !nextItem.options && item.group;
|
5026
|
-
const itemLabel = (_a2 = item.label) != null ? _a2 : item.value;
|
5027
4939
|
return (
|
5028
4940
|
// key is included in getItemProps()
|
5029
4941
|
// eslint-disable-next-line react/jsx-key
|
@@ -5086,11 +4998,7 @@ const AdHocCombobox = React.forwardRef(function AdHocCombobox2({ filter, model,
|
|
5086
4998
|
isMultiValueEdit,
|
5087
4999
|
checked: filterMultiValues.some((val) => val.value === item.value)
|
5088
5000
|
},
|
5089
|
-
/* @__PURE__ */ React__default.default.createElement("span", null, item.isCustom ?
|
5090
|
-
"grafana-scenes.components.adhoc-filters-combobox.use-custom-value",
|
5091
|
-
"Use custom value: {{itemLabel}}",
|
5092
|
-
{ itemLabel }
|
5093
|
-
) : itemLabel),
|
5001
|
+
/* @__PURE__ */ React__default.default.createElement("span", null, item.isCustom ? "Use custom value: " : "", " ", (_a2 = item.label) != null ? _a2 : item.value),
|
5094
5002
|
item.description ? /* @__PURE__ */ React__default.default.createElement("div", { className: styles.descriptionText }, item.description) : null
|
5095
5003
|
)
|
5096
5004
|
);
|
@@ -5260,13 +5168,7 @@ function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
|
5260
5168
|
}
|
5261
5169
|
},
|
5262
5170
|
role: readOnly ? void 0 : "button",
|
5263
|
-
"aria-label":
|
5264
|
-
"grafana-scenes.components.adhoc-filter-pill.edit-filter-with-key",
|
5265
|
-
"Edit filter with key {{keyLabel}}",
|
5266
|
-
{
|
5267
|
-
keyLabel
|
5268
|
-
}
|
5269
|
-
),
|
5171
|
+
"aria-label": `Edit filter with key ${keyLabel}`,
|
5270
5172
|
tabIndex: 0,
|
5271
5173
|
ref: pillWrapperRef
|
5272
5174
|
},
|
@@ -5298,25 +5200,10 @@ function AdHocFilterPill({ filter, model, readOnly, focusOnWipInputRef }) {
|
|
5298
5200
|
name: "times",
|
5299
5201
|
size: "md",
|
5300
5202
|
className: styles.pillIcon,
|
5301
|
-
tooltip:
|
5302
|
-
"grafana-scenes.components.adhoc-filter-pill.remove-filter-with-key",
|
5303
|
-
"Remove filter with key {{keyLabel}}",
|
5304
|
-
{
|
5305
|
-
keyLabel
|
5306
|
-
}
|
5307
|
-
)
|
5203
|
+
tooltip: `Remove filter with key ${keyLabel}`
|
5308
5204
|
}
|
5309
5205
|
) : null,
|
5310
|
-
filter.origin && filter.readOnly && /* @__PURE__ */ React__default.default.createElement(
|
5311
|
-
ui.Tooltip,
|
5312
|
-
{
|
5313
|
-
content: i18n.t("grafana-scenes.components.adhoc-filter-pill.managed-filter", "{{origin}} managed filter", {
|
5314
|
-
origin: filter.origin
|
5315
|
-
}),
|
5316
|
-
placement: "bottom"
|
5317
|
-
},
|
5318
|
-
/* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: "lock", size: "md", className: styles.readOnlyPillIcon })
|
5319
|
-
),
|
5206
|
+
filter.origin && filter.readOnly && /* @__PURE__ */ React__default.default.createElement(ui.Tooltip, { content: `${filter.origin} managed filter`, placement: "bottom" }, /* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: "lock", size: "md", className: styles.readOnlyPillIcon })),
|
5320
5207
|
filter.origin && !filter.restorable && !filter.readOnly && /* @__PURE__ */ React__default.default.createElement(ui.Tooltip, { content: getOriginFilterTooltips(filter.origin).info, placement: "bottom" }, /* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: "info-circle", size: "md", className: styles.infoPillIcon })),
|
5321
5208
|
filter.origin && filter.restorable && !filter.readOnly && /* @__PURE__ */ React__default.default.createElement(
|
5322
5209
|
ui.IconButton,
|
@@ -5504,6 +5391,7 @@ const getStyles$a = (theme) => ({
|
|
5504
5391
|
|
5505
5392
|
const reverseScopeFilterOperatorMap = Object.fromEntries(
|
5506
5393
|
Object.entries(data.scopeFilterOperatorMap).map(([symbol, operator]) => [operator, symbol])
|
5394
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-assertions
|
5507
5395
|
);
|
5508
5396
|
function isEqualityOrMultiOperator(value) {
|
5509
5397
|
const operators = /* @__PURE__ */ new Set(["equals", "not-equals", "one-of", "not-one-of"]);
|
@@ -5520,9 +5408,6 @@ function getAdHocFiltersFromScopes(scopes) {
|
|
5520
5408
|
}
|
5521
5409
|
function processFilter(formattedFilters, duplicatedFilters, filter) {
|
5522
5410
|
var _a, _b;
|
5523
|
-
if (!filter) {
|
5524
|
-
return;
|
5525
|
-
}
|
5526
5411
|
const existingFilter = formattedFilters.get(filter.key);
|
5527
5412
|
if (existingFilter && canValueBeMerged(existingFilter.operator, filter.operator)) {
|
5528
5413
|
mergeFilterValues(existingFilter, filter);
|
@@ -7794,26 +7679,10 @@ function VizPanelSeriesLimit({ data, showAll, seriesLimit, onShowAllSeries }) {
|
|
7794
7679
|
return null;
|
7795
7680
|
}
|
7796
7681
|
const buttonText = showAll ? "Restore limit" : `Show all ${seriesCount}`;
|
7797
|
-
return /* @__PURE__ */ React__default.default.createElement("div", { className: styles.timeSeriesDisclaimer }, !showAll && /* @__PURE__ */ React__default.default.createElement("span", { className: styles.warningMessage }, /* @__PURE__ */ React__default.default.createElement(
|
7798
|
-
ui.Icon,
|
7799
|
-
{
|
7800
|
-
title: i18n.t(
|
7801
|
-
"grafana-scenes.components.viz-panel-series-limit.warning-message",
|
7802
|
-
`Showing only {{seriesLimit}} series`,
|
7803
|
-
{
|
7804
|
-
seriesLimit
|
7805
|
-
}
|
7806
|
-
),
|
7807
|
-
name: "exclamation-triangle",
|
7808
|
-
"aria-hidden": "true"
|
7809
|
-
}
|
7810
|
-
)), /* @__PURE__ */ React__default.default.createElement(
|
7682
|
+
return /* @__PURE__ */ React__default.default.createElement("div", { className: styles.timeSeriesDisclaimer }, !showAll && /* @__PURE__ */ React__default.default.createElement("span", { className: styles.warningMessage }, /* @__PURE__ */ React__default.default.createElement(ui.Icon, { title: `Showing only ${seriesLimit} series`, name: "exclamation-triangle", "aria-hidden": "true" })), /* @__PURE__ */ React__default.default.createElement(
|
7811
7683
|
ui.Tooltip,
|
7812
7684
|
{
|
7813
|
-
content:
|
7814
|
-
"grafana-scenes.components.viz-panel-series-limit.content-rendering-series-single-panel-impact-performance",
|
7815
|
-
"Rendering too many series in a single panel may impact performance and make data harder to read."
|
7816
|
-
)
|
7685
|
+
content: "Rendering too many series in a single panel may impact performance and make data harder to read."
|
7817
7686
|
},
|
7818
7687
|
/* @__PURE__ */ React__default.default.createElement(ui.Button, { variant: "secondary", size: "sm", onClick: onShowAllSeries }, buttonText)
|
7819
7688
|
));
|
@@ -7879,10 +7748,10 @@ function VizPanelRenderer({ model }) {
|
|
7879
7748
|
const titleInterpolated = model.interpolate(title, void 0, "text");
|
7880
7749
|
const alertStateStyles = ui.useStyles2(getAlertStateStyles);
|
7881
7750
|
if (!plugin) {
|
7882
|
-
return /* @__PURE__ */ React__default.default.createElement("div", null,
|
7751
|
+
return /* @__PURE__ */ React__default.default.createElement("div", null, "Loading plugin panel...");
|
7883
7752
|
}
|
7884
7753
|
if (!plugin.panel) {
|
7885
|
-
return /* @__PURE__ */ React__default.default.createElement("div", null,
|
7754
|
+
return /* @__PURE__ */ React__default.default.createElement("div", null, "Panel plugin has no panel component");
|
7886
7755
|
}
|
7887
7756
|
const PanelComponent = plugin.panel;
|
7888
7757
|
if (dataObject && dataObject.setContainerWidth) {
|
@@ -8294,7 +8163,7 @@ class VizPanel extends SceneObjectBase {
|
|
8294
8163
|
super({
|
8295
8164
|
options: {},
|
8296
8165
|
fieldConfig: { defaults: {}, overrides: [] },
|
8297
|
-
title:
|
8166
|
+
title: "Title",
|
8298
8167
|
pluginId: "timeseries",
|
8299
8168
|
_renderCounter: 0,
|
8300
8169
|
...state
|
@@ -10116,10 +9985,7 @@ class DataSourceVariable extends MultiValueVariable {
|
|
10116
9985
|
options.push({ label: source.name, value: source.uid });
|
10117
9986
|
}
|
10118
9987
|
if (this.state.defaultOptionEnabled && isDefault(source, regex)) {
|
10119
|
-
options.push({
|
10120
|
-
label: i18n.t("grafana-scenes.variables.data-source-variable.label.default", "default"),
|
10121
|
-
value: "default"
|
10122
|
-
});
|
9988
|
+
options.push({ label: "default", value: "default" });
|
10123
9989
|
}
|
10124
9990
|
}
|
10125
9991
|
if (options.length === 0) {
|
@@ -10206,7 +10072,7 @@ class TestVariable extends MultiValueVariable {
|
|
10206
10072
|
type: "custom",
|
10207
10073
|
name: "Test",
|
10208
10074
|
value: "Value",
|
10209
|
-
text:
|
10075
|
+
text: "Text",
|
10210
10076
|
query: "Query",
|
10211
10077
|
options: [],
|
10212
10078
|
refresh: data.VariableRefresh.onDashboardLoad,
|
@@ -10311,7 +10177,7 @@ function VariableValueInput({ model }) {
|
|
10311
10177
|
ui.AutoSizeInput,
|
10312
10178
|
{
|
10313
10179
|
id: key,
|
10314
|
-
placeholder:
|
10180
|
+
placeholder: "Enter value",
|
10315
10181
|
minWidth: 15,
|
10316
10182
|
maxWidth: 30,
|
10317
10183
|
value,
|
@@ -10476,7 +10342,7 @@ IntervalVariable.Component = ({ model }) => {
|
|
10476
10342
|
ui.Select,
|
10477
10343
|
{
|
10478
10344
|
id: key,
|
10479
|
-
placeholder:
|
10345
|
+
placeholder: "Select value",
|
10480
10346
|
width: "auto",
|
10481
10347
|
value,
|
10482
10348
|
tabSelectsValue: false,
|
@@ -10850,7 +10716,7 @@ function VizPanelExploreButtonComponent({ model }) {
|
|
10850
10716
|
(_a = options.onClick) == null ? void 0 : _a.call(options);
|
10851
10717
|
}
|
10852
10718
|
},
|
10853
|
-
|
10719
|
+
"Explore"
|
10854
10720
|
);
|
10855
10721
|
}
|
10856
10722
|
return null;
|
@@ -11449,7 +11315,7 @@ function SceneGridRowRenderer({ model }) {
|
|
11449
11315
|
{
|
11450
11316
|
onClick: model.onCollapseToggle,
|
11451
11317
|
className: styles.rowTitleButton,
|
11452
|
-
"aria-label": isCollapsed ?
|
11318
|
+
"aria-label": isCollapsed ? "Expand row" : "Collapse row",
|
11453
11319
|
"data-testid": e2eSelectors.selectors.components.DashboardRow.title(sceneGraph.interpolate(model, title, void 0, "text"))
|
11454
11320
|
},
|
11455
11321
|
isCollapsible && /* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: isCollapsed ? "angle-right" : "angle-down" }),
|
@@ -11573,7 +11439,7 @@ function NestedSceneRenderer({ model }) {
|
|
11573
11439
|
variant: "default",
|
11574
11440
|
onClick: model.onRemove,
|
11575
11441
|
key: "remove-button",
|
11576
|
-
"aria-label":
|
11442
|
+
"aria-label": "Remove scene"
|
11577
11443
|
}
|
11578
11444
|
)
|
11579
11445
|
);
|
@@ -11583,7 +11449,7 @@ function NestedSceneRenderer({ model }) {
|
|
11583
11449
|
{
|
11584
11450
|
onClick: model.onToggle,
|
11585
11451
|
className: gridRow.rowTitleButton,
|
11586
|
-
"aria-label": isCollapsed ?
|
11452
|
+
"aria-label": isCollapsed ? "Expand scene" : "Collapse scene"
|
11587
11453
|
},
|
11588
11454
|
canCollapse && /* @__PURE__ */ React__default.default.createElement(ui.Icon, { name: isCollapsed ? "angle-right" : "angle-down" }),
|
11589
11455
|
/* @__PURE__ */ React__default.default.createElement("span", { className: gridRow.rowTitle, role: "heading" }, sceneGraph.interpolate(model, title, void 0, "text"))
|
@@ -11624,8 +11490,7 @@ class SceneCanvasText extends SceneObjectBase {
|
|
11624
11490
|
this._variableDependency = new VariableDependencyConfig(this, { statePaths: ["text"] });
|
11625
11491
|
}
|
11626
11492
|
}
|
11627
|
-
SceneCanvasText.Component =
|
11628
|
-
function SceneCanvasTextRenderer({ model }) {
|
11493
|
+
SceneCanvasText.Component = ({ model }) => {
|
11629
11494
|
const { text, fontSize = 20, align = "left", key, spacing } = model.useState();
|
11630
11495
|
const theme = ui.useTheme2();
|
11631
11496
|
const style = css.css({
|
@@ -11637,7 +11502,7 @@ function SceneCanvasTextRenderer({ model }) {
|
|
11637
11502
|
justifyContent: align
|
11638
11503
|
});
|
11639
11504
|
return /* @__PURE__ */ React__default.default.createElement("div", { className: style, "data-testid": key }, sceneGraph.interpolate(model, text));
|
11640
|
-
}
|
11505
|
+
};
|
11641
11506
|
|
11642
11507
|
class SceneToolbarButton extends SceneObjectBase {
|
11643
11508
|
}
|
@@ -12156,10 +12021,7 @@ function SceneTimeRangeCompareRenderer({ model }) {
|
|
12156
12021
|
ui.ToolbarButton,
|
12157
12022
|
{
|
12158
12023
|
variant: "canvas",
|
12159
|
-
tooltip:
|
12160
|
-
"grafana-scenes.components.scene-time-range-compare-renderer.button-tooltip",
|
12161
|
-
"Enable time frame comparison"
|
12162
|
-
),
|
12024
|
+
tooltip: "Enable time frame comparison",
|
12163
12025
|
onClick: (e) => {
|
12164
12026
|
e.stopPropagation();
|
12165
12027
|
e.preventDefault();
|
@@ -12167,7 +12029,7 @@ function SceneTimeRangeCompareRenderer({ model }) {
|
|
12167
12029
|
}
|
12168
12030
|
},
|
12169
12031
|
/* @__PURE__ */ React__default.default.createElement(ui.Checkbox, { label: " ", value: enabled, onClick }),
|
12170
|
-
|
12032
|
+
"Comparison"
|
12171
12033
|
), enabled ? /* @__PURE__ */ React__default.default.createElement(
|
12172
12034
|
ui.ButtonSelect,
|
12173
12035
|
{
|
@@ -12753,7 +12615,7 @@ function Splitter({
|
|
12753
12615
|
"aria-valuemax": 100,
|
12754
12616
|
"aria-valuenow": 50,
|
12755
12617
|
"aria-controls": `start-panel-${id}`,
|
12756
|
-
"aria-label":
|
12618
|
+
"aria-label": "Pane resize widget",
|
12757
12619
|
tabIndex: 0
|
12758
12620
|
}
|
12759
12621
|
), /* @__PURE__ */ React__default.default.createElement(
|
@@ -13063,15 +12925,7 @@ function SceneDebugger({ scene }) {
|
|
13063
12925
|
const styles = ui.useStyles2(getStyles);
|
13064
12926
|
const [isOpen, setIsOpen] = React.useState(false);
|
13065
12927
|
const [selectedObject, setSelectedObject] = React.useState();
|
13066
|
-
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(ui.ToolbarButton, { variant: "canvas", icon: "bug", onClick: () => setIsOpen(true) }), isOpen && /* @__PURE__ */ React__default.default.createElement(
|
13067
|
-
ui.Drawer,
|
13068
|
-
{
|
13069
|
-
title: i18n.t("grafana-scenes.components.scene-debugger.title-scene-debugger", "Scene debugger"),
|
13070
|
-
onClose: () => setIsOpen(false),
|
13071
|
-
size: "lg"
|
13072
|
-
},
|
13073
|
-
/* @__PURE__ */ React__default.default.createElement("div", { className: styles.panes }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.pane1 }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.paneHeading }, /* @__PURE__ */ React__default.default.createElement(i18n.Trans, { i18nKey: "grafana-scenes.components.scene-debugger.scene-graph" }, "Scene graph")), /* @__PURE__ */ React__default.default.createElement(ui.CustomScrollbar, { autoHeightMin: "100%" }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.treeWrapper }, /* @__PURE__ */ React__default.default.createElement(DebugTreeNode, { node: scene, selectedObject, onSelect: setSelectedObject })))), /* @__PURE__ */ React__default.default.createElement("div", { className: styles.pane2 }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.paneHeading }, /* @__PURE__ */ React__default.default.createElement(i18n.Trans, { i18nKey: "grafana-scenes.components.scene-debugger.object-details" }, "Object details")), selectedObject && /* @__PURE__ */ React__default.default.createElement(DebugDetails, { node: selectedObject })))
|
13074
|
-
));
|
12928
|
+
return /* @__PURE__ */ React__default.default.createElement(React__default.default.Fragment, null, /* @__PURE__ */ React__default.default.createElement(ui.ToolbarButton, { variant: "canvas", icon: "bug", onClick: () => setIsOpen(true) }), isOpen && /* @__PURE__ */ React__default.default.createElement(ui.Drawer, { title: "Scene debugger", onClose: () => setIsOpen(false), size: "lg" }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.panes }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.pane1 }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.paneHeading }, "Scene graph"), /* @__PURE__ */ React__default.default.createElement(ui.CustomScrollbar, { autoHeightMin: "100%" }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.treeWrapper }, /* @__PURE__ */ React__default.default.createElement(DebugTreeNode, { node: scene, selectedObject, onSelect: setSelectedObject })))), /* @__PURE__ */ React__default.default.createElement("div", { className: styles.pane2 }, /* @__PURE__ */ React__default.default.createElement("div", { className: styles.paneHeading }, "Object details"), selectedObject && /* @__PURE__ */ React__default.default.createElement(DebugDetails, { node: selectedObject })))));
|
13075
12929
|
}
|
13076
12930
|
function getStyles(theme) {
|
13077
12931
|
return {
|
@@ -13307,8 +13161,8 @@ function getFallbackRoute(page) {
|
|
13307
13161
|
function getDefaultFallbackPage() {
|
13308
13162
|
return new SceneAppPage({
|
13309
13163
|
url: "",
|
13310
|
-
title:
|
13311
|
-
subTitle:
|
13164
|
+
title: "Not found",
|
13165
|
+
subTitle: "The url did not match any page",
|
13312
13166
|
routePath: "*",
|
13313
13167
|
getScene: () => {
|
13314
13168
|
return new EmbeddedScene({
|
@@ -13318,7 +13172,7 @@ function getDefaultFallbackPage() {
|
|
13318
13172
|
new SceneFlexItem({
|
13319
13173
|
body: new SceneReactObject({
|
13320
13174
|
component: () => {
|
13321
|
-
return /* @__PURE__ */ React__default.default.createElement("div", { "data-testid": "default-fallback-content" },
|
13175
|
+
return /* @__PURE__ */ React__default.default.createElement("div", { "data-testid": "default-fallback-content" }, "If you found your way here using a link then there might be a bug in this application.");
|
13322
13176
|
}
|
13323
13177
|
})
|
13324
13178
|
})
|
@@ -14238,25 +14092,6 @@ const VizConfigBuilders = {
|
|
14238
14092
|
}
|
14239
14093
|
};
|
14240
14094
|
|
14241
|
-
function __variableDynamicImportRuntime0__(path) {
|
14242
|
-
switch (path) {
|
14243
|
-
case '../locales/en-US/grafana-scenes.json': return Promise.resolve().then(function () { return require('./grafana-scenes-DCHONTnD.js'); });
|
14244
|
-
default: return new Promise(function(resolve, reject) {
|
14245
|
-
(typeof queueMicrotask === 'function' ? queueMicrotask : setTimeout)(
|
14246
|
-
reject.bind(null, new Error("Unknown variable dynamic import: " + path))
|
14247
|
-
);
|
14248
|
-
})
|
14249
|
-
}
|
14250
|
-
}
|
14251
|
-
const resources = i18n.LANGUAGES.reduce((acc, lang) => {
|
14252
|
-
acc[lang.code] = async () => await __variableDynamicImportRuntime0__(`../locales/${lang.code}/grafana-scenes.json`);
|
14253
|
-
return acc;
|
14254
|
-
}, {});
|
14255
|
-
const loadResources = async (resolvedLanguage) => {
|
14256
|
-
const translation = await resources[resolvedLanguage]();
|
14257
|
-
return translation.default;
|
14258
|
-
};
|
14259
|
-
|
14260
14095
|
const sceneUtils = {
|
14261
14096
|
getUrlWithAppState,
|
14262
14097
|
registerRuntimePanelPlugin,
|
@@ -14366,7 +14201,6 @@ exports.isDataLayer = isDataLayer;
|
|
14366
14201
|
exports.isDataRequestEnricher = isDataRequestEnricher;
|
14367
14202
|
exports.isFiltersRequestEnricher = isFiltersRequestEnricher;
|
14368
14203
|
exports.isSceneObject = isSceneObject;
|
14369
|
-
exports.loadResources = loadResources;
|
14370
14204
|
exports.registerQueryWithController = registerQueryWithController;
|
14371
14205
|
exports.registerRuntimeDataSource = registerRuntimeDataSource;
|
14372
14206
|
exports.sceneGraph = sceneGraph;
|