@splunk/visualizations 27.0.0 → 27.1.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 +60 -30
- 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 +82 -52
- package/Events.js.map +4 -4
- package/FillerGauge.js +44 -14
- 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 +563 -529
- package/LinkGraph.js.map +4 -4
- package/Map.js +44 -14
- 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 +122 -86
- package/ParallelCoordinates.js.map +4 -4
- package/Pie.js +198 -81
- package/Pie.js.map +4 -4
- package/Punchcard.js +54 -24
- 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 +1419 -1351
- package/SingleValue.js.map +4 -4
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +45 -69
- package/SingleValueIcon.config.js.map +4 -4
- package/SingleValueIcon.js +1307 -1238
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial.config.js +43 -67
- package/SingleValueRadial.config.js.map +4 -4
- package/SingleValueRadial.js +1352 -1266
- package/SingleValueRadial.js.map +4 -4
- package/TRELLIS.md +16 -15
- package/Table.js +52 -22
- package/Table.js.map +4 -4
- package/common/Charting.js +133 -27
- package/common/Charting.js.map +4 -4
- package/common/OptionsDoc.js +6 -1
- package/common/OptionsDoc.js.map +2 -2
- package/common/utils/singleValueUtils.js +8 -7
- 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 +17 -18
package/Bar.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/AxesChartXGridAndLabels.ts
|
|
432
546
|
var AxesChartXGridAndLabelsCommon = {
|
|
@@ -749,7 +863,19 @@ var AxesChartColorAndStyle = {
|
|
|
749
863
|
]
|
|
750
864
|
]
|
|
751
865
|
};
|
|
752
|
-
var
|
|
866
|
+
var AreaAxesChartColorAndStyleWithTrellis = __spreadProps(__spreadValues({}, AxesChartColorAndStyle), {
|
|
867
|
+
layout: [
|
|
868
|
+
AxesChartColorAndStyle.layout[0],
|
|
869
|
+
[
|
|
870
|
+
__spreadProps(__spreadValues({}, TrellisBackgroundColorEditor), {
|
|
871
|
+
editorProps: {
|
|
872
|
+
themes
|
|
873
|
+
}
|
|
874
|
+
})
|
|
875
|
+
],
|
|
876
|
+
...AxesChartColorAndStyle.layout.slice(1)
|
|
877
|
+
]
|
|
878
|
+
});
|
|
753
879
|
|
|
754
880
|
// src/common/editorConfig/AxesChartLegend.ts
|
|
755
881
|
var AxesChartLegend = {
|
|
@@ -789,7 +915,54 @@ var AxesChartLegend = {
|
|
|
789
915
|
]
|
|
790
916
|
]
|
|
791
917
|
};
|
|
792
|
-
var
|
|
918
|
+
var AxesChartLegendWithTrellisAndMode = ({
|
|
919
|
+
showLegendTooltip = false,
|
|
920
|
+
hideModeWhenOff = false
|
|
921
|
+
}) => ({
|
|
922
|
+
label: AxesChartLegend.label,
|
|
923
|
+
layout: [
|
|
924
|
+
[
|
|
925
|
+
{
|
|
926
|
+
label: (0, i18n_exports._)("Legend display"),
|
|
927
|
+
option: "legendDisplay",
|
|
928
|
+
editor: "editor.select",
|
|
929
|
+
editorProps: {
|
|
930
|
+
values: [
|
|
931
|
+
{ label: (0, i18n_exports._)("Right"), value: "right" },
|
|
932
|
+
{ label: (0, i18n_exports._)("Left"), value: "left" },
|
|
933
|
+
{ label: (0, i18n_exports._)("Top"), value: "top" },
|
|
934
|
+
{ label: (0, i18n_exports._)("Bottom"), value: "bottom" },
|
|
935
|
+
{ label: (0, i18n_exports._)("Off"), value: "off" }
|
|
936
|
+
],
|
|
937
|
+
tooltip: showLegendTooltip && (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display')
|
|
938
|
+
},
|
|
939
|
+
isDisabled: showLegendTooltip ? ({ options }) => options.legendMode === "seriesCompare" : void 0,
|
|
940
|
+
overrideDefaultValue: ({ options }) => (options == null ? void 0 : options.splitByLayout) === "trellis" ? "off" : "right"
|
|
941
|
+
}
|
|
942
|
+
],
|
|
943
|
+
[
|
|
944
|
+
__spreadProps(__spreadValues({}, AxesChartLegend.layout[1][0]), {
|
|
945
|
+
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
|
|
946
|
+
options.legendDisplay === void 0 && options.splitByLayout !== "trellis"
|
|
947
|
+
})
|
|
948
|
+
],
|
|
949
|
+
[
|
|
950
|
+
{
|
|
951
|
+
label: (0, i18n_exports._)("Legend mode"),
|
|
952
|
+
option: "legendMode",
|
|
953
|
+
editor: "editor.radioBar",
|
|
954
|
+
editorProps: {
|
|
955
|
+
values: [
|
|
956
|
+
{ label: (0, i18n_exports._)("Standard"), value: "standard" },
|
|
957
|
+
{ label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
|
|
958
|
+
]
|
|
959
|
+
},
|
|
960
|
+
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
|
|
961
|
+
options.legendDisplay === void 0 && options.splitByLayout !== "trellis" : true
|
|
962
|
+
}
|
|
963
|
+
]
|
|
964
|
+
]
|
|
965
|
+
});
|
|
793
966
|
|
|
794
967
|
// src/common/editorConfig/AxesChartYGridAndLabels.ts
|
|
795
968
|
var AxesChartYGridAndLabels = {
|
|
@@ -959,6 +1132,13 @@ var AxesChartYGridAndLabels = {
|
|
|
959
1132
|
var AxesChartYGridAndLabels_default = AxesChartYGridAndLabels;
|
|
960
1133
|
|
|
961
1134
|
// src/common/editorConfig/AxesChartY2GridAndLabels.ts
|
|
1135
|
+
var isTrellisFeatureFlagOn4 = ({ featureFlags }) => {
|
|
1136
|
+
return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
|
|
1137
|
+
};
|
|
1138
|
+
var isTrellisOff = ({ options, featureFlags }) => {
|
|
1139
|
+
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
1140
|
+
return !isTrellisFeatureFlagOn4({ featureFlags }) || splitByLayout !== visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
1141
|
+
};
|
|
962
1142
|
var axesChartY2GridAndLabels = {
|
|
963
1143
|
label: (0, i18n_exports._)("Y2-axis grid and labels"),
|
|
964
1144
|
layout: [
|
|
@@ -966,15 +1146,16 @@ var axesChartY2GridAndLabels = {
|
|
|
966
1146
|
{
|
|
967
1147
|
label: (0, i18n_exports._)("Axis title"),
|
|
968
1148
|
option: "y2AxisTitleVisibility",
|
|
969
|
-
editor: "editor.toggle"
|
|
1149
|
+
editor: "editor.toggle",
|
|
1150
|
+
showEditor: isTrellisOff
|
|
970
1151
|
}
|
|
971
1152
|
],
|
|
972
1153
|
[
|
|
973
1154
|
{
|
|
974
|
-
label: (0, i18n_exports._)("Axis title"),
|
|
1155
|
+
label: (0, i18n_exports._)("Axis title text"),
|
|
975
1156
|
option: "y2AxisTitleText",
|
|
976
1157
|
editor: "editor.text",
|
|
977
|
-
showEditor: ({ options }) => options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0
|
|
1158
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0)
|
|
978
1159
|
}
|
|
979
1160
|
],
|
|
980
1161
|
[
|
|
@@ -982,7 +1163,7 @@ var axesChartY2GridAndLabels = {
|
|
|
982
1163
|
label: (0, i18n_exports._)("Show overlays on the y2-axis"),
|
|
983
1164
|
option: "showOverlayY2Axis",
|
|
984
1165
|
editor: "editor.checkbox",
|
|
985
|
-
showEditor: ({ options }) => Array.isArray(options.overlayFields) && options.overlayFields.length > 0
|
|
1166
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && Array.isArray(options.overlayFields) && options.overlayFields.length > 0
|
|
986
1167
|
}
|
|
987
1168
|
],
|
|
988
1169
|
[
|
|
@@ -995,7 +1176,8 @@ var axesChartY2GridAndLabels = {
|
|
|
995
1176
|
{ label: (0, i18n_exports._)("Linear"), value: "linear" },
|
|
996
1177
|
{ label: (0, i18n_exports._)("Log"), value: "log" }
|
|
997
1178
|
]
|
|
998
|
-
}
|
|
1179
|
+
},
|
|
1180
|
+
showEditor: isTrellisOff
|
|
999
1181
|
}
|
|
1000
1182
|
],
|
|
1001
1183
|
[
|
|
@@ -1009,7 +1191,8 @@ var axesChartY2GridAndLabels = {
|
|
|
1009
1191
|
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1010
1192
|
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1011
1193
|
]
|
|
1012
|
-
}
|
|
1194
|
+
},
|
|
1195
|
+
showEditor: isTrellisOff
|
|
1013
1196
|
}
|
|
1014
1197
|
],
|
|
1015
1198
|
[
|
|
@@ -1017,7 +1200,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1017
1200
|
label: (0, i18n_exports._)("Round axis labels"),
|
|
1018
1201
|
option: "showRoundedY2AxisLabels",
|
|
1019
1202
|
editor: "editor.checkbox",
|
|
1020
|
-
showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
|
|
1203
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
|
|
1021
1204
|
}
|
|
1022
1205
|
],
|
|
1023
1206
|
[
|
|
@@ -1025,40 +1208,45 @@ var axesChartY2GridAndLabels = {
|
|
|
1025
1208
|
label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
|
|
1026
1209
|
option: "y2AxisAbbreviation",
|
|
1027
1210
|
editor: "editor.checkbox",
|
|
1028
|
-
showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
|
|
1211
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
|
|
1029
1212
|
}
|
|
1030
1213
|
],
|
|
1031
1214
|
[
|
|
1032
1215
|
{
|
|
1033
1216
|
label: (0, i18n_exports._)("Include zero"),
|
|
1034
1217
|
option: "showY2AxisWithZero",
|
|
1035
|
-
editor: "editor.checkbox"
|
|
1218
|
+
editor: "editor.checkbox",
|
|
1219
|
+
showEditor: isTrellisOff
|
|
1036
1220
|
}
|
|
1037
1221
|
],
|
|
1038
1222
|
[
|
|
1039
1223
|
{
|
|
1040
1224
|
label: (0, i18n_exports._)("Minimum axis value"),
|
|
1041
1225
|
option: "y2AxisMin",
|
|
1042
|
-
editor: "editor.number"
|
|
1226
|
+
editor: "editor.number",
|
|
1227
|
+
showEditor: isTrellisOff
|
|
1043
1228
|
},
|
|
1044
1229
|
{
|
|
1045
1230
|
label: (0, i18n_exports._)("Maximum axis value"),
|
|
1046
1231
|
option: "y2AxisMax",
|
|
1047
|
-
editor: "editor.number"
|
|
1232
|
+
editor: "editor.number",
|
|
1233
|
+
showEditor: isTrellisOff
|
|
1048
1234
|
}
|
|
1049
1235
|
],
|
|
1050
1236
|
[
|
|
1051
1237
|
{
|
|
1052
1238
|
label: (0, i18n_exports._)("Axis line visibility"),
|
|
1053
1239
|
option: "y2AxisLineVisibility",
|
|
1054
|
-
editor: "editor.checkbox"
|
|
1240
|
+
editor: "editor.checkbox",
|
|
1241
|
+
showEditor: isTrellisOff
|
|
1055
1242
|
}
|
|
1056
1243
|
],
|
|
1057
1244
|
[
|
|
1058
1245
|
{
|
|
1059
1246
|
label: (0, i18n_exports._)("Major gridlines"),
|
|
1060
1247
|
option: "showY2MajorGridLines",
|
|
1061
|
-
editor: "editor.checkbox"
|
|
1248
|
+
editor: "editor.checkbox",
|
|
1249
|
+
showEditor: isTrellisOff
|
|
1062
1250
|
}
|
|
1063
1251
|
],
|
|
1064
1252
|
[
|
|
@@ -1072,7 +1260,8 @@ var axesChartY2GridAndLabels = {
|
|
|
1072
1260
|
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1073
1261
|
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1074
1262
|
]
|
|
1075
|
-
}
|
|
1263
|
+
},
|
|
1264
|
+
showEditor: isTrellisOff
|
|
1076
1265
|
}
|
|
1077
1266
|
],
|
|
1078
1267
|
[
|
|
@@ -1085,7 +1274,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1085
1274
|
max: 10,
|
|
1086
1275
|
step: 1
|
|
1087
1276
|
},
|
|
1088
|
-
showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
|
|
1277
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
|
|
1089
1278
|
}
|
|
1090
1279
|
],
|
|
1091
1280
|
[
|
|
@@ -1093,14 +1282,15 @@ var axesChartY2GridAndLabels = {
|
|
|
1093
1282
|
label: (0, i18n_exports._)("Major tick interval spacing"),
|
|
1094
1283
|
option: "y2AxisMajorTickInterval",
|
|
1095
1284
|
editor: "editor.number",
|
|
1096
|
-
showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
|
|
1285
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
|
|
1097
1286
|
}
|
|
1098
1287
|
],
|
|
1099
1288
|
[
|
|
1100
1289
|
{
|
|
1101
1290
|
label: (0, i18n_exports._)("Minor gridlines"),
|
|
1102
1291
|
option: "showY2MinorGridLines",
|
|
1103
|
-
editor: "editor.checkbox"
|
|
1292
|
+
editor: "editor.checkbox",
|
|
1293
|
+
showEditor: isTrellisOff
|
|
1104
1294
|
}
|
|
1105
1295
|
],
|
|
1106
1296
|
[
|
|
@@ -1114,7 +1304,8 @@ var axesChartY2GridAndLabels = {
|
|
|
1114
1304
|
{ label: (0, i18n_exports._)("Show"), value: "show" },
|
|
1115
1305
|
{ label: (0, i18n_exports._)("Hide"), value: "hide" }
|
|
1116
1306
|
]
|
|
1117
|
-
}
|
|
1307
|
+
},
|
|
1308
|
+
showEditor: isTrellisOff
|
|
1118
1309
|
}
|
|
1119
1310
|
],
|
|
1120
1311
|
[
|
|
@@ -1127,7 +1318,7 @@ var axesChartY2GridAndLabels = {
|
|
|
1127
1318
|
max: 10,
|
|
1128
1319
|
step: 1
|
|
1129
1320
|
},
|
|
1130
|
-
showEditor: ({ options }) => options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0
|
|
1321
|
+
showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0)
|
|
1131
1322
|
}
|
|
1132
1323
|
]
|
|
1133
1324
|
]
|
|
@@ -1165,29 +1356,22 @@ var themes2 = {
|
|
|
1165
1356
|
light: variables_default.backgroundColor(props)
|
|
1166
1357
|
},
|
|
1167
1358
|
prisma: variables_default.backgroundColorSidebar(props)
|
|
1359
|
+
})(props),
|
|
1360
|
+
defaultFontColor: (props) => pick_default({
|
|
1361
|
+
enterprise: {
|
|
1362
|
+
dark: variables_default.textColor(props),
|
|
1363
|
+
light: variables_default.textColor(props)
|
|
1364
|
+
},
|
|
1365
|
+
prisma: variables_default.contentColorDefault(props)
|
|
1168
1366
|
})(props)
|
|
1169
1367
|
};
|
|
1170
|
-
var updatedAxesChartLegend = (0, lodash_exports.cloneDeep)(AxesChartLegend_default);
|
|
1171
|
-
updatedAxesChartLegend.layout.push([
|
|
1172
|
-
{
|
|
1173
|
-
label: (0, i18n_exports._)("Legend mode"),
|
|
1174
|
-
option: "legendMode",
|
|
1175
|
-
editor: "editor.radioBar",
|
|
1176
|
-
editorProps: {
|
|
1177
|
-
values: [
|
|
1178
|
-
{ label: (0, i18n_exports._)("Standard"), value: "standard" },
|
|
1179
|
-
{ label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
|
|
1180
|
-
]
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
]);
|
|
1184
1368
|
var editorConfig = [
|
|
1185
1369
|
AxesChartDataConfigBar,
|
|
1186
1370
|
AxesChartDataDisplayBar,
|
|
1187
1371
|
{
|
|
1188
|
-
label:
|
|
1372
|
+
label: AreaAxesChartColorAndStyleWithTrellis.label,
|
|
1189
1373
|
layout: [
|
|
1190
|
-
...
|
|
1374
|
+
...AreaAxesChartColorAndStyleWithTrellis.layout,
|
|
1191
1375
|
[
|
|
1192
1376
|
{
|
|
1193
1377
|
label: (0, i18n_exports._)("Line width"),
|
|
@@ -1217,7 +1401,7 @@ var editorConfig = [
|
|
|
1217
1401
|
]
|
|
1218
1402
|
]
|
|
1219
1403
|
},
|
|
1220
|
-
|
|
1404
|
+
AxesChartLegendWithTrellisAndMode({ showLegendTooltip: false }),
|
|
1221
1405
|
{
|
|
1222
1406
|
label: (0, i18n_exports._)("X-axis grid and labels (vertical axis)"),
|
|
1223
1407
|
layout: [
|
|
@@ -1315,7 +1499,7 @@ var config = {
|
|
|
1315
1499
|
description: "triggered when user moves out of a data point"
|
|
1316
1500
|
}
|
|
1317
1501
|
},
|
|
1318
|
-
supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "placeholder" /* PLACEHOLDER */, "events" /* EVENTS */],
|
|
1502
|
+
supports: ["dynamic-options" /* DYNAMIC_OPTIONS */, "placeholder" /* PLACEHOLDER */, "events" /* EVENTS */, "trellis" /* TRELLIS */],
|
|
1319
1503
|
themes: themes2
|
|
1320
1504
|
};
|
|
1321
1505
|
var config_default = enhanceConfig(config);
|