@splunk/visualizations 27.0.0 → 27.2.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/Area.config.js +269 -122
- package/Area.config.js.map +4 -4
- package/Area.js +1065 -209
- package/Area.js.map +4 -4
- package/Bar.config.js +266 -82
- package/Bar.config.js.map +4 -4
- package/Bar.js +1065 -171
- package/Bar.js.map +4 -4
- package/Bubble.config.js +127 -1
- package/Bubble.config.js.map +4 -4
- package/Bubble.js +323 -80
- package/Bubble.js.map +4 -4
- package/ChoroplethSvg.js +64 -37
- package/ChoroplethSvg.js.map +4 -4
- package/Column.config.js +271 -82
- package/Column.config.js.map +4 -4
- package/Column.js +1070 -171
- package/Column.js.map +4 -4
- package/Ellipse.js +44 -14
- package/Ellipse.js.map +4 -4
- package/Events.js +172 -527
- package/Events.js.map +4 -4
- package/FillerGauge.js +45 -15
- package/FillerGauge.js.map +4 -4
- package/Image.js +42 -12
- package/Image.js.map +4 -4
- package/Line.config.js +271 -119
- package/Line.config.js.map +4 -4
- package/Line.js +1067 -206
- package/Line.js.map +4 -4
- package/LinkGraph.js +584 -545
- package/LinkGraph.js.map +4 -4
- package/Map.config.js +114 -72
- package/Map.config.js.map +4 -4
- package/Map.js +177 -94
- package/Map.js.map +4 -4
- package/Markdown.js +46 -16
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +42 -12
- package/MarkerGauge.js.map +4 -4
- package/ParallelCoordinates.js +123 -87
- package/ParallelCoordinates.js.map +4 -4
- package/Pie.js +198 -81
- package/Pie.js.map +4 -4
- package/Punchcard.js +241 -38
- package/Punchcard.js.map +4 -4
- package/Rectangle.js +56 -26
- package/Rectangle.js.map +4 -4
- package/Sankey.js +68 -38
- package/Sankey.js.map +4 -4
- package/Scatter.config.js +127 -1
- package/Scatter.config.js.map +4 -4
- package/Scatter.js +323 -80
- package/Scatter.js.map +4 -4
- package/SingleValue.config.js +43 -67
- package/SingleValue.config.js.map +4 -4
- package/SingleValue.js +1434 -1356
- package/SingleValue.js.map +4 -4
- package/SingleValueBasic.js +1 -1
- package/SingleValueBasic.js.map +3 -3
- package/SingleValueIcon.config.js +45 -69
- package/SingleValueIcon.config.js.map +4 -4
- package/SingleValueIcon.js +1739 -1407
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial.config.js +43 -67
- package/SingleValueRadial.config.js.map +4 -4
- package/SingleValueRadial.js +1366 -1273
- package/SingleValueRadial.js.map +4 -4
- package/SparkLine.js +1 -1
- package/SparkLine.js.map +3 -3
- package/TRELLIS.md +16 -15
- package/Table.js +65 -30
- package/Table.js.map +4 -4
- package/Timeline.config.js +418 -0
- package/Timeline.config.js.map +7 -0
- package/Timeline.js +3074 -0
- package/Timeline.js.map +7 -0
- package/common/Charting.js +133 -27
- package/common/Charting.js.map +4 -4
- package/common/OptionsDoc.js +8 -3
- package/common/OptionsDoc.js.map +2 -2
- package/common/utils/mapUtils.js.map +2 -2
- package/common/utils/singleValueUtils.js +26 -15
- package/common/utils/singleValueUtils.js.map +2 -2
- package/common/utils/trellisUtils.js +41 -1
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/withDashboardViz.js +42 -12
- package/common/withDashboardViz.js.map +4 -4
- package/package.json +49 -38
package/Line.config.js
CHANGED
|
@@ -146,6 +146,13 @@ var insertLayout = (layout, index, ...layoutItems) => [
|
|
|
146
146
|
];
|
|
147
147
|
|
|
148
148
|
// src/common/editorConfig/AxesChartDataConfig.ts
|
|
149
|
+
var isTrellisFeatureFlagOn = ({ featureFlags }) => {
|
|
150
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
151
|
+
};
|
|
152
|
+
var isTrellisEnabled = ({ options, featureFlags }) => {
|
|
153
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
154
|
+
return isTrellisFeatureFlagOn({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
155
|
+
};
|
|
149
156
|
var AxesChartDataConfig = {
|
|
150
157
|
label: (0, i18n_exports._)("Data configurations"),
|
|
151
158
|
layout: [
|
|
@@ -199,7 +206,8 @@ var AxesChartDataConfigBar = {
|
|
|
199
206
|
filterByTypes: ["number"],
|
|
200
207
|
supportsDSL: true,
|
|
201
208
|
expectedDataPrimitive: ["series", "frame"]
|
|
202
|
-
}
|
|
209
|
+
},
|
|
210
|
+
isDisabled: isTrellisEnabled
|
|
203
211
|
}
|
|
204
212
|
])
|
|
205
213
|
};
|
|
@@ -302,10 +310,136 @@ var AxesChartDataConfigAreaColumnLine = {
|
|
|
302
310
|
]
|
|
303
311
|
};
|
|
304
312
|
|
|
313
|
+
// src/common/editorConfig/TrellisEditors.ts
|
|
314
|
+
var isTrellisFeatureFlagOn2 = ({ featureFlags }) => {
|
|
315
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
316
|
+
};
|
|
317
|
+
var isTrellisEnabled2 = ({ options, featureFlags }) => {
|
|
318
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
319
|
+
return isTrellisFeatureFlagOn2({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
320
|
+
};
|
|
321
|
+
var TrellisEditorConfig = [
|
|
322
|
+
[
|
|
323
|
+
{
|
|
324
|
+
label: (0, i18n_exports._)("Trellis layout"),
|
|
325
|
+
option: "splitByLayout",
|
|
326
|
+
editor: "editor.toggle",
|
|
327
|
+
showEditor: isTrellisFeatureFlagOn2
|
|
328
|
+
}
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
{
|
|
332
|
+
label: (0, i18n_exports._)("Split by"),
|
|
333
|
+
option: "trellisSplitBy",
|
|
334
|
+
editor: "editor.trellisSplitBy",
|
|
335
|
+
editorProps: {
|
|
336
|
+
dataSourceKey: "primary"
|
|
337
|
+
},
|
|
338
|
+
showEditor: isTrellisEnabled2
|
|
339
|
+
}
|
|
340
|
+
],
|
|
341
|
+
[
|
|
342
|
+
{
|
|
343
|
+
label: (0, i18n_exports._)("Number of columns"),
|
|
344
|
+
option: "trellisColumns",
|
|
345
|
+
editor: "editor.number",
|
|
346
|
+
editorProps: {
|
|
347
|
+
min: 1
|
|
348
|
+
},
|
|
349
|
+
placeholder: (0, i18n_exports._)("Auto"),
|
|
350
|
+
showEditor: isTrellisEnabled2
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
[
|
|
354
|
+
{
|
|
355
|
+
label: (0, i18n_exports._)("Min column width"),
|
|
356
|
+
option: "trellisMinColumnWidth",
|
|
357
|
+
editor: "editor.number",
|
|
358
|
+
editorProps: {
|
|
359
|
+
min: 1
|
|
360
|
+
},
|
|
361
|
+
showEditor: isTrellisEnabled2
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
label: (0, i18n_exports._)("Row height"),
|
|
365
|
+
option: "trellisRowHeight",
|
|
366
|
+
editor: "editor.number",
|
|
367
|
+
editorProps: {
|
|
368
|
+
min: 1
|
|
369
|
+
},
|
|
370
|
+
showEditor: isTrellisEnabled2
|
|
371
|
+
}
|
|
372
|
+
],
|
|
373
|
+
[
|
|
374
|
+
{
|
|
375
|
+
label: (0, i18n_exports._)("Max number of components per page"),
|
|
376
|
+
option: "trellisPageCount",
|
|
377
|
+
editor: "editor.number",
|
|
378
|
+
editorProps: {
|
|
379
|
+
min: 1
|
|
380
|
+
},
|
|
381
|
+
showEditor: isTrellisEnabled2
|
|
382
|
+
}
|
|
383
|
+
]
|
|
384
|
+
];
|
|
385
|
+
var TimechartTrellisEditorConfig = [
|
|
386
|
+
[
|
|
387
|
+
{
|
|
388
|
+
label: (0, i18n_exports._)("Trellis layout"),
|
|
389
|
+
option: "splitByLayout",
|
|
390
|
+
editor: "editor.toggle",
|
|
391
|
+
showEditor: isTrellisFeatureFlagOn2,
|
|
392
|
+
// add help text for timecharts
|
|
393
|
+
editorProps: {
|
|
394
|
+
help: (0, i18n_exports._)(
|
|
395
|
+
"Y2-axis and overlay field configurations are not supported when trellis is enabled."
|
|
396
|
+
),
|
|
397
|
+
helpFormat: "under"
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
],
|
|
401
|
+
...TrellisEditorConfig.slice(1),
|
|
402
|
+
[
|
|
403
|
+
{
|
|
404
|
+
label: (0, i18n_exports._)("Shared y-axis scale"),
|
|
405
|
+
option: "trellisSharedScale",
|
|
406
|
+
editor: "editor.checkbox",
|
|
407
|
+
showEditor: isTrellisEnabled2
|
|
408
|
+
}
|
|
409
|
+
]
|
|
410
|
+
];
|
|
411
|
+
var TrellisBackgroundColorEditor = {
|
|
412
|
+
label: (0, i18n_exports._)("Trellis background"),
|
|
413
|
+
option: "trellisBackgroundColor",
|
|
414
|
+
editor: "editor.color",
|
|
415
|
+
showEditor: isTrellisEnabled2
|
|
416
|
+
};
|
|
417
|
+
|
|
305
418
|
// src/common/editorConfig/AxesChartDataDisplay.ts
|
|
306
|
-
var
|
|
419
|
+
var isTrellisFeatureFlagOn3 = ({ featureFlags }) => {
|
|
420
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
421
|
+
};
|
|
422
|
+
var isTrellisEnabled3 = ({ options, featureFlags }) => {
|
|
423
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
424
|
+
return isTrellisFeatureFlagOn3({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
425
|
+
};
|
|
426
|
+
var AxesChartDataDisplayBase = {
|
|
307
427
|
label: (0, i18n_exports._)("Data display"),
|
|
308
428
|
layout: [
|
|
429
|
+
[
|
|
430
|
+
{
|
|
431
|
+
label: (0, i18n_exports._)("Stack mode"),
|
|
432
|
+
option: "stackMode",
|
|
433
|
+
editor: "editor.select",
|
|
434
|
+
editorProps: {
|
|
435
|
+
values: [
|
|
436
|
+
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
437
|
+
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
438
|
+
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
439
|
+
]
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
],
|
|
309
443
|
[
|
|
310
444
|
{
|
|
311
445
|
label: (0, i18n_exports._)("Null value display"),
|
|
@@ -341,7 +475,8 @@ var AxesChartDataDisplayLine = {
|
|
|
341
475
|
editor: "editor.columnMultiSelectionByFieldNameEditor",
|
|
342
476
|
editorProps: {
|
|
343
477
|
filterByTypes: ["number"]
|
|
344
|
-
}
|
|
478
|
+
},
|
|
479
|
+
isDisabled: isTrellisEnabled3
|
|
345
480
|
}
|
|
346
481
|
],
|
|
347
482
|
[
|
|
@@ -358,60 +493,32 @@ var AxesChartDataDisplayLine = {
|
|
|
358
493
|
editor: "editor.checkbox",
|
|
359
494
|
showEditor: ({ options }) => options.showSplitSeries
|
|
360
495
|
}
|
|
361
|
-
]
|
|
362
|
-
]
|
|
363
|
-
};
|
|
364
|
-
var AxesChartDataDisplay = {
|
|
365
|
-
label: AxesChartDataDisplayLine.label,
|
|
366
|
-
layout: [
|
|
367
|
-
[
|
|
368
|
-
{
|
|
369
|
-
label: (0, i18n_exports._)("Stack mode"),
|
|
370
|
-
option: "stackMode",
|
|
371
|
-
editor: "editor.select",
|
|
372
|
-
editorProps: {
|
|
373
|
-
values: [
|
|
374
|
-
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
375
|
-
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
376
|
-
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
377
|
-
]
|
|
378
|
-
}
|
|
379
|
-
}
|
|
380
496
|
],
|
|
381
|
-
...
|
|
497
|
+
...TimechartTrellisEditorConfig
|
|
382
498
|
]
|
|
383
499
|
};
|
|
384
500
|
var AxesChartDataDisplayBar = {
|
|
385
|
-
label:
|
|
501
|
+
label: AxesChartDataDisplayBase.label,
|
|
386
502
|
layout: [
|
|
387
|
-
[
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
option: "stackMode",
|
|
391
|
-
editor: "editor.select",
|
|
392
|
-
editorProps: {
|
|
393
|
-
values: [
|
|
394
|
-
{ label: (0, i18n_exports._)("Not stacked"), value: "auto" },
|
|
395
|
-
{ label: (0, i18n_exports._)("Stacked"), value: "stacked" },
|
|
396
|
-
{ label: (0, i18n_exports._)("Stacked 100%"), value: "stacked100" }
|
|
397
|
-
]
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
],
|
|
401
|
-
// remove nullValueDisplay
|
|
402
|
-
...(0, lodash_exports.drop)(AxesChartDataDisplayLine.layout)
|
|
503
|
+
AxesChartDataDisplayBase.layout[0],
|
|
504
|
+
// remove null value display editor at index 1
|
|
505
|
+
...AxesChartDataDisplayBase.layout.slice(2)
|
|
403
506
|
]
|
|
404
507
|
};
|
|
405
508
|
var AxesChartDataDisplayColumn = {
|
|
406
|
-
label:
|
|
509
|
+
label: AxesChartDataDisplayBase.label,
|
|
407
510
|
layout: [
|
|
408
|
-
|
|
511
|
+
AxesChartDataDisplayBase.layout[0],
|
|
512
|
+
// remove null value display and add data value display
|
|
513
|
+
AxesChartDataDisplayBase.layout[2],
|
|
514
|
+
[
|
|
409
515
|
{
|
|
410
516
|
label: (0, i18n_exports._)("Show tooltip on hover"),
|
|
411
517
|
option: "showTooltip",
|
|
412
518
|
editor: "editor.checkbox"
|
|
413
519
|
}
|
|
414
|
-
]
|
|
520
|
+
],
|
|
521
|
+
...AxesChartDataDisplayBase.layout.slice(3),
|
|
415
522
|
[
|
|
416
523
|
{
|
|
417
524
|
label: (0, i18n_exports._)("Column grouping mode"),
|
|
@@ -427,6 +534,13 @@ var AxesChartDataDisplayColumn = {
|
|
|
427
534
|
]
|
|
428
535
|
]
|
|
429
536
|
};
|
|
537
|
+
var AxesChartDataDisplayLine = {
|
|
538
|
+
label: AxesChartDataDisplayBase.label,
|
|
539
|
+
layout: [
|
|
540
|
+
// remove stacked mode editor
|
|
541
|
+
...AxesChartDataDisplayBase.layout.slice(1)
|
|
542
|
+
]
|
|
543
|
+
};
|
|
430
544
|
|
|
431
545
|
// src/common/editorConfig/BackgroundColor.ts
|
|
432
546
|
var background = ({
|
|
@@ -476,7 +590,19 @@ var AxesChartColorAndStyle = {
|
|
|
476
590
|
]
|
|
477
591
|
]
|
|
478
592
|
};
|
|
479
|
-
var
|
|
593
|
+
var AreaAxesChartColorAndStyleWithTrellis = __spreadProps(__spreadValues({}, AxesChartColorAndStyle), {
|
|
594
|
+
layout: [
|
|
595
|
+
AxesChartColorAndStyle.layout[0],
|
|
596
|
+
[
|
|
597
|
+
__spreadProps(__spreadValues({}, TrellisBackgroundColorEditor), {
|
|
598
|
+
editorProps: {
|
|
599
|
+
themes
|
|
600
|
+
}
|
|
601
|
+
})
|
|
602
|
+
],
|
|
603
|
+
...AxesChartColorAndStyle.layout.slice(1)
|
|
604
|
+
]
|
|
605
|
+
});
|
|
480
606
|
|
|
481
607
|
// src/common/editorConfig/AxesChartLegend.ts
|
|
482
608
|
var AxesChartLegend = {
|
|
@@ -516,7 +642,54 @@ var AxesChartLegend = {
|
|
|
516
642
|
]
|
|
517
643
|
]
|
|
518
644
|
};
|
|
519
|
-
var
|
|
645
|
+
var AxesChartLegendWithTrellisAndMode = ({
|
|
646
|
+
showLegendTooltip = false,
|
|
647
|
+
hideModeWhenOff = false
|
|
648
|
+
}) => ({
|
|
649
|
+
label: AxesChartLegend.label,
|
|
650
|
+
layout: [
|
|
651
|
+
[
|
|
652
|
+
{
|
|
653
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
654
|
+
option: "legendDisplay",
|
|
655
|
+
editor: "editor.select",
|
|
656
|
+
editorProps: {
|
|
657
|
+
values: [
|
|
658
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
659
|
+
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
660
|
+
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
661
|
+
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
662
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
663
|
+
],
|
|
664
|
+
tooltip: showLegendTooltip && (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display')
|
|
665
|
+
},
|
|
666
|
+
isDisabled: showLegendTooltip ? ({ options }) => options.legendMode === "seriesCompare" : void 0,
|
|
667
|
+
overrideDefaultValue: ({ options }) => (options == null ? void 0 : options.splitByLayout) === "trellis" ? "off" : "right"
|
|
668
|
+
}
|
|
669
|
+
],
|
|
670
|
+
[
|
|
671
|
+
__spreadProps(__spreadValues({}, AxesChartLegend.layout[1][0]), {
|
|
672
|
+
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || // when Trellis is on, the default value of legendDisplay is off
|
|
673
|
+
options.legendDisplay === void 0 && options.splitByLayout !== "trellis"
|
|
674
|
+
})
|
|
675
|
+
],
|
|
676
|
+
[
|
|
677
|
+
{
|
|
678
|
+
label: (0, i18n_exports._)("Legend mode"),
|
|
679
|
+
option: "legendMode",
|
|
680
|
+
editor: "editor.radioBar",
|
|
681
|
+
editorProps: {
|
|
682
|
+
values: [
|
|
683
|
+
{ label: (0, i18n_exports._)("Standard"), value: "standard" },
|
|
684
|
+
{ label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
|
|
685
|
+
]
|
|
686
|
+
},
|
|
687
|
+
showEditor: ({ options }) => hideModeWhenOff ? options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || // when Trellis is on, the default value of legendDisplay is off
|
|
688
|
+
options.legendDisplay === void 0 && options.splitByLayout !== "trellis" : true
|
|
689
|
+
}
|
|
690
|
+
]
|
|
691
|
+
]
|
|
692
|
+
});
|
|
520
693
|
|
|
521
694
|
// src/common/editorConfig/AxesChartXGridAndLabels.ts
|
|
522
695
|
var AxesChartXGridAndLabelsCommon = {
|
|
@@ -960,6 +1133,13 @@ var AxesChartYGridAndLabels = {
|
|
|
960
1133
|
var AxesChartYGridAndLabels_default = AxesChartYGridAndLabels;
|
|
961
1134
|
|
|
962
1135
|
// src/common/editorConfig/AxesChartY2GridAndLabels.ts
|
|
1136
|
+
var isTrellisFeatureFlagOn4 = ({ featureFlags }) => {
|
|
1137
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
1138
|
+
};
|
|
1139
|
+
var isTrellisOff = ({ options, featureFlags }) => {
|
|
1140
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
1141
|
+
return !isTrellisFeatureFlagOn4({ featureFlags }) || splitByLayout !== visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
1142
|
+
};
|
|
963
1143
|
var axesChartY2GridAndLabels = {
|
|
964
1144
|
label: (0, i18n_exports._)("Y2-axis grid and labels"),
|
|
965
1145
|
layout: [
|
|
@@ -967,15 +1147,16 @@ var axesChartY2GridAndLabels = {
|
|
|
967
1147
|
{
|
|
968
1148
|
label: (0, i18n_exports._)("Axis title"),
|
|
969
1149
|
option: "y2AxisTitleVisibility",
|
|
970
|
-
editor: "editor.toggle"
|
|
1150
|
+
editor: "editor.toggle",
|
|
1151
|
+
showEditor: isTrellisOff
|
|
971
1152
|
}
|
|
972
1153
|
],
|
|
973
1154
|
[
|
|
974
1155
|
{
|
|
975
|
-
label: (0, i18n_exports._)("Axis title"),
|
|
1156
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
976
1157
|
option: "y2AxisTitleText",
|
|
977
1158
|
editor: "editor.text",
|
|
978
|
-
showEditor: ({ options }) => options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0
|
|
1159
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0)
|
|
979
1160
|
}
|
|
980
1161
|
],
|
|
981
1162
|
[
|
|
@@ -983,7 +1164,7 @@ var axesChartY2GridAndLabels = {
|
|
|
983
1164
|
label: (0, i18n_exports._)("Show overlays on the y2-axis"),
|
|
984
1165
|
option: "showOverlayY2Axis",
|
|
985
1166
|
editor: "editor.checkbox",
|
|
986
|
-
showEditor: ({ options }) => Array.isArray(options.overlayFields) && options.overlayFields.length > 0
|
|
1167
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && Array.isArray(options.overlayFields) && options.overlayFields.length > 0
|
|
987
1168
|
}
|
|
988
1169
|
],
|
|
989
1170
|
[
|
|
@@ -996,7 +1177,8 @@ var axesChartY2GridAndLabels = {
|
|
|
996
1177
|
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
997
1178
|
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
998
1179
|
]
|
|
999
|
-
}
|
|
1180
|
+
},
|
|
1181
|
+
showEditor: isTrellisOff
|
|
1000
1182
|
}
|
|
1001
1183
|
],
|
|
1002
1184
|
[
|
|
@@ -1010,7 +1192,8 @@ var axesChartY2GridAndLabels = {
|
|
|
1010
1192
|
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1011
1193
|
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1012
1194
|
]
|
|
1013
|
-
}
|
|
1195
|
+
},
|
|
1196
|
+
showEditor: isTrellisOff
|
|
1014
1197
|
}
|
|
1015
1198
|
],
|
|
1016
1199
|
[
|
|
@@ -1018,7 +1201,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1018
1201
|
label: (0, i18n_exports._)("Round axis labels"),
|
|
1019
1202
|
option: "showRoundedY2AxisLabels",
|
|
1020
1203
|
editor: "editor.checkbox",
|
|
1021
|
-
showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
|
|
1204
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
|
|
1022
1205
|
}
|
|
1023
1206
|
],
|
|
1024
1207
|
[
|
|
@@ -1026,40 +1209,45 @@ var axesChartY2GridAndLabels = {
|
|
|
1026
1209
|
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
1027
1210
|
option: "y2AxisAbbreviation",
|
|
1028
1211
|
editor: "editor.checkbox",
|
|
1029
|
-
showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
|
|
1212
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
|
|
1030
1213
|
}
|
|
1031
1214
|
],
|
|
1032
1215
|
[
|
|
1033
1216
|
{
|
|
1034
1217
|
label: (0, i18n_exports._)("Include zero"),
|
|
1035
1218
|
option: "showY2AxisWithZero",
|
|
1036
|
-
editor: "editor.checkbox"
|
|
1219
|
+
editor: "editor.checkbox",
|
|
1220
|
+
showEditor: isTrellisOff
|
|
1037
1221
|
}
|
|
1038
1222
|
],
|
|
1039
1223
|
[
|
|
1040
1224
|
{
|
|
1041
1225
|
label: (0, i18n_exports._)("Minimum axis value"),
|
|
1042
1226
|
option: "y2AxisMin",
|
|
1043
|
-
editor: "editor.number"
|
|
1227
|
+
editor: "editor.number",
|
|
1228
|
+
showEditor: isTrellisOff
|
|
1044
1229
|
},
|
|
1045
1230
|
{
|
|
1046
1231
|
label: (0, i18n_exports._)("Maximum axis value"),
|
|
1047
1232
|
option: "y2AxisMax",
|
|
1048
|
-
editor: "editor.number"
|
|
1233
|
+
editor: "editor.number",
|
|
1234
|
+
showEditor: isTrellisOff
|
|
1049
1235
|
}
|
|
1050
1236
|
],
|
|
1051
1237
|
[
|
|
1052
1238
|
{
|
|
1053
1239
|
label: (0, i18n_exports._)("Axis line visibility"),
|
|
1054
1240
|
option: "y2AxisLineVisibility",
|
|
1055
|
-
editor: "editor.checkbox"
|
|
1241
|
+
editor: "editor.checkbox",
|
|
1242
|
+
showEditor: isTrellisOff
|
|
1056
1243
|
}
|
|
1057
1244
|
],
|
|
1058
1245
|
[
|
|
1059
1246
|
{
|
|
1060
1247
|
label: (0, i18n_exports._)("Major gridlines"),
|
|
1061
1248
|
option: "showY2MajorGridLines",
|
|
1062
|
-
editor: "editor.checkbox"
|
|
1249
|
+
editor: "editor.checkbox",
|
|
1250
|
+
showEditor: isTrellisOff
|
|
1063
1251
|
}
|
|
1064
1252
|
],
|
|
1065
1253
|
[
|
|
@@ -1073,7 +1261,8 @@ var axesChartY2GridAndLabels = {
|
|
|
1073
1261
|
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1074
1262
|
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1075
1263
|
]
|
|
1076
|
-
}
|
|
1264
|
+
},
|
|
1265
|
+
showEditor: isTrellisOff
|
|
1077
1266
|
}
|
|
1078
1267
|
],
|
|
1079
1268
|
[
|
|
@@ -1086,7 +1275,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1086
1275
|
max: 10,
|
|
1087
1276
|
step: 1
|
|
1088
1277
|
},
|
|
1089
|
-
showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
|
|
1278
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
|
|
1090
1279
|
}
|
|
1091
1280
|
],
|
|
1092
1281
|
[
|
|
@@ -1094,14 +1283,15 @@ var axesChartY2GridAndLabels = {
|
|
|
1094
1283
|
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
1095
1284
|
option: "y2AxisMajorTickInterval",
|
|
1096
1285
|
editor: "editor.number",
|
|
1097
|
-
showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
|
|
1286
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
|
|
1098
1287
|
}
|
|
1099
1288
|
],
|
|
1100
1289
|
[
|
|
1101
1290
|
{
|
|
1102
1291
|
label: (0, i18n_exports._)("Minor gridlines"),
|
|
1103
1292
|
option: "showY2MinorGridLines",
|
|
1104
|
-
editor: "editor.checkbox"
|
|
1293
|
+
editor: "editor.checkbox",
|
|
1294
|
+
showEditor: isTrellisOff
|
|
1105
1295
|
}
|
|
1106
1296
|
],
|
|
1107
1297
|
[
|
|
@@ -1115,7 +1305,8 @@ var axesChartY2GridAndLabels = {
|
|
|
1115
1305
|
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1116
1306
|
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1117
1307
|
]
|
|
1118
|
-
}
|
|
1308
|
+
},
|
|
1309
|
+
showEditor: isTrellisOff
|
|
1119
1310
|
}
|
|
1120
1311
|
],
|
|
1121
1312
|
[
|
|
@@ -1128,7 +1319,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1128
1319
|
max: 10,
|
|
1129
1320
|
step: 1
|
|
1130
1321
|
},
|
|
1131
|
-
showEditor: ({ options }) => options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0
|
|
1322
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0)
|
|
1132
1323
|
}
|
|
1133
1324
|
]
|
|
1134
1325
|
]
|
|
@@ -1166,15 +1357,22 @@ var themes2 = {
|
|
|
1166
1357
|
light: variables_default.backgroundColor(props)
|
|
1167
1358
|
},
|
|
1168
1359
|
prisma: variables_default.backgroundColorSidebar(props)
|
|
1360
|
+
})(props),
|
|
1361
|
+
defaultFontColor: (props) => pick_default({
|
|
1362
|
+
enterprise: {
|
|
1363
|
+
dark: variables_default.textColor(props),
|
|
1364
|
+
light: variables_default.textColor(props)
|
|
1365
|
+
},
|
|
1366
|
+
prisma: variables_default.contentColorDefault(props)
|
|
1169
1367
|
})(props)
|
|
1170
1368
|
};
|
|
1171
1369
|
var editorConfig = [
|
|
1172
1370
|
AxesChartDataConfigAreaColumnLine,
|
|
1173
1371
|
AxesChartDataDisplayLine,
|
|
1174
1372
|
{
|
|
1175
|
-
label:
|
|
1373
|
+
label: AreaAxesChartColorAndStyleWithTrellis.label,
|
|
1176
1374
|
layout: [
|
|
1177
|
-
...
|
|
1375
|
+
...AreaAxesChartColorAndStyleWithTrellis.layout,
|
|
1178
1376
|
// [
|
|
1179
1377
|
// {
|
|
1180
1378
|
// label: _('Line dash style'),
|
|
@@ -1245,58 +1443,7 @@ var editorConfig = [
|
|
|
1245
1443
|
]
|
|
1246
1444
|
]
|
|
1247
1445
|
},
|
|
1248
|
-
{
|
|
1249
|
-
label: AxesChartLegend_default.label,
|
|
1250
|
-
layout: [
|
|
1251
|
-
[
|
|
1252
|
-
{
|
|
1253
|
-
label: (0, i18n_exports._)("Legend display"),
|
|
1254
|
-
option: "legendDisplay",
|
|
1255
|
-
editor: "editor.select",
|
|
1256
|
-
editorProps: {
|
|
1257
|
-
values: [
|
|
1258
|
-
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
1259
|
-
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
1260
|
-
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
1261
|
-
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
1262
|
-
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
1263
|
-
],
|
|
1264
|
-
tooltip: (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display')
|
|
1265
|
-
},
|
|
1266
|
-
isDisabled: ({ options }) => options.legendMode === "seriesCompare"
|
|
1267
|
-
}
|
|
1268
|
-
],
|
|
1269
|
-
[
|
|
1270
|
-
{
|
|
1271
|
-
label: (0, i18n_exports._)("Legend truncation"),
|
|
1272
|
-
option: "legendTruncation",
|
|
1273
|
-
editor: "editor.radioBar",
|
|
1274
|
-
editorProps: {
|
|
1275
|
-
values: [
|
|
1276
|
-
{ label: (0, i18n_exports._)("A..."), value: "ellipsisEnd" },
|
|
1277
|
-
{ label: (0, i18n_exports._)("A...Z"), value: "ellipsisMiddle" },
|
|
1278
|
-
{ label: (0, i18n_exports._)("...Z"), value: "ellipsisStart" },
|
|
1279
|
-
{ label: (0, i18n_exports._)("Off"), value: "ellipsisOff" }
|
|
1280
|
-
]
|
|
1281
|
-
},
|
|
1282
|
-
showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
|
|
1283
|
-
}
|
|
1284
|
-
],
|
|
1285
|
-
[
|
|
1286
|
-
{
|
|
1287
|
-
label: (0, i18n_exports._)("Legend mode"),
|
|
1288
|
-
option: "legendMode",
|
|
1289
|
-
editor: "editor.radioBar",
|
|
1290
|
-
editorProps: {
|
|
1291
|
-
values: [
|
|
1292
|
-
{ label: (0, i18n_exports._)("Standard"), value: "standard" },
|
|
1293
|
-
{ label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
|
|
1294
|
-
]
|
|
1295
|
-
}
|
|
1296
|
-
}
|
|
1297
|
-
]
|
|
1298
|
-
]
|
|
1299
|
-
},
|
|
1446
|
+
AxesChartLegendWithTrellisAndMode({ showLegendTooltip: true }),
|
|
1300
1447
|
AxesChartXGridAndLabels_default,
|
|
1301
1448
|
AxesChartYGridAndLabels_default,
|
|
1302
1449
|
AxesChartY2GridAndLabels_default
|
|
@@ -1338,7 +1485,12 @@ var config = {
|
|
|
1338
1485
|
description: "triggered when user moves out of a data point"
|
|
1339
1486
|
}
|
|
1340
1487
|
},
|
|
1341
|
-
supports: [
|
|
1488
|
+
supports: [
|
|
1489
|
+
"dynamic-options" /* DYNAMIC_OPTIONS */,
|
|
1490
|
+
"placeholder" /* PLACEHOLDER */,
|
|
1491
|
+
"downsampling" /* DOWNSAMPLING */,
|
|
1492
|
+
"trellis" /* TRELLIS */
|
|
1493
|
+
],
|
|
1342
1494
|
themes: themes2
|
|
1343
1495
|
};
|
|
1344
1496
|
var config_default = enhanceConfig(config);
|