@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.
Files changed (79) hide show
  1. package/Area.config.js +269 -122
  2. package/Area.config.js.map +4 -4
  3. package/Area.js +1065 -209
  4. package/Area.js.map +4 -4
  5. package/Bar.config.js +266 -82
  6. package/Bar.config.js.map +4 -4
  7. package/Bar.js +1065 -171
  8. package/Bar.js.map +4 -4
  9. package/Bubble.config.js +127 -1
  10. package/Bubble.config.js.map +4 -4
  11. package/Bubble.js +323 -80
  12. package/Bubble.js.map +4 -4
  13. package/ChoroplethSvg.js +60 -30
  14. package/ChoroplethSvg.js.map +4 -4
  15. package/Column.config.js +271 -82
  16. package/Column.config.js.map +4 -4
  17. package/Column.js +1070 -171
  18. package/Column.js.map +4 -4
  19. package/Ellipse.js +44 -14
  20. package/Ellipse.js.map +4 -4
  21. package/Events.js +82 -52
  22. package/Events.js.map +4 -4
  23. package/FillerGauge.js +44 -14
  24. package/FillerGauge.js.map +4 -4
  25. package/Image.js +42 -12
  26. package/Image.js.map +4 -4
  27. package/Line.config.js +271 -119
  28. package/Line.config.js.map +4 -4
  29. package/Line.js +1067 -206
  30. package/Line.js.map +4 -4
  31. package/LinkGraph.js +563 -529
  32. package/LinkGraph.js.map +4 -4
  33. package/Map.js +44 -14
  34. package/Map.js.map +4 -4
  35. package/Markdown.js +46 -16
  36. package/Markdown.js.map +4 -4
  37. package/MarkerGauge.js +42 -12
  38. package/MarkerGauge.js.map +4 -4
  39. package/ParallelCoordinates.js +122 -86
  40. package/ParallelCoordinates.js.map +4 -4
  41. package/Pie.js +198 -81
  42. package/Pie.js.map +4 -4
  43. package/Punchcard.js +54 -24
  44. package/Punchcard.js.map +4 -4
  45. package/Rectangle.js +56 -26
  46. package/Rectangle.js.map +4 -4
  47. package/Sankey.js +68 -38
  48. package/Sankey.js.map +4 -4
  49. package/Scatter.config.js +127 -1
  50. package/Scatter.config.js.map +4 -4
  51. package/Scatter.js +323 -80
  52. package/Scatter.js.map +4 -4
  53. package/SingleValue.config.js +43 -67
  54. package/SingleValue.config.js.map +4 -4
  55. package/SingleValue.js +1419 -1351
  56. package/SingleValue.js.map +4 -4
  57. package/SingleValueBasic.js.map +1 -1
  58. package/SingleValueIcon.config.js +45 -69
  59. package/SingleValueIcon.config.js.map +4 -4
  60. package/SingleValueIcon.js +1307 -1238
  61. package/SingleValueIcon.js.map +4 -4
  62. package/SingleValueRadial.config.js +43 -67
  63. package/SingleValueRadial.config.js.map +4 -4
  64. package/SingleValueRadial.js +1352 -1266
  65. package/SingleValueRadial.js.map +4 -4
  66. package/TRELLIS.md +16 -15
  67. package/Table.js +52 -22
  68. package/Table.js.map +4 -4
  69. package/common/Charting.js +133 -27
  70. package/common/Charting.js.map +4 -4
  71. package/common/OptionsDoc.js +6 -1
  72. package/common/OptionsDoc.js.map +2 -2
  73. package/common/utils/singleValueUtils.js +8 -7
  74. package/common/utils/singleValueUtils.js.map +2 -2
  75. package/common/utils/trellisUtils.js +41 -1
  76. package/common/utils/trellisUtils.js.map +2 -2
  77. package/common/withDashboardViz.js +42 -12
  78. package/common/withDashboardViz.js.map +4 -4
  79. package/package.json +17 -18
package/Area.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 AxesChartDataDisplayLine = {
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,33 @@ 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
- ...AxesChartDataDisplayLine.layout
497
+ ...TimechartTrellisEditorConfig
382
498
  ]
383
499
  };
500
+ var AxesChartDataDisplayArea = AxesChartDataDisplayBase;
384
501
  var AxesChartDataDisplayBar = {
385
- label: AxesChartDataDisplayLine.label,
502
+ label: AxesChartDataDisplayBase.label,
386
503
  layout: [
387
- [
388
- {
389
- label: (0, i18n_exports._)("Stack mode"),
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)
504
+ AxesChartDataDisplayBase.layout[0],
505
+ // remove null value display editor at index 1
506
+ ...AxesChartDataDisplayBase.layout.slice(2)
403
507
  ]
404
508
  };
405
509
  var AxesChartDataDisplayColumn = {
406
- label: AxesChartDataDisplayBar.label,
510
+ label: AxesChartDataDisplayBase.label,
407
511
  layout: [
408
- ...insertLayout(AxesChartDataDisplayBar.layout, 2, [
512
+ AxesChartDataDisplayBase.layout[0],
513
+ // remove null value display and add data value display
514
+ AxesChartDataDisplayBase.layout[2],
515
+ [
409
516
  {
410
517
  label: (0, i18n_exports._)("Show tooltip on hover"),
411
518
  option: "showTooltip",
412
519
  editor: "editor.checkbox"
413
520
  }
414
- ]),
521
+ ],
522
+ ...AxesChartDataDisplayBase.layout.slice(3),
415
523
  [
416
524
  {
417
525
  label: (0, i18n_exports._)("Column grouping mode"),
@@ -427,7 +535,13 @@ var AxesChartDataDisplayColumn = {
427
535
  ]
428
536
  ]
429
537
  };
430
- var AxesChartDataDisplay_default = AxesChartDataDisplay;
538
+ var AxesChartDataDisplayLine = {
539
+ label: AxesChartDataDisplayBase.label,
540
+ layout: [
541
+ // remove stacked mode editor
542
+ ...AxesChartDataDisplayBase.layout.slice(1)
543
+ ]
544
+ };
431
545
 
432
546
  // src/common/editorConfig/BackgroundColor.ts
433
547
  var background = ({
@@ -477,7 +591,19 @@ var AxesChartColorAndStyle = {
477
591
  ]
478
592
  ]
479
593
  };
480
- var AxesChartColorAndStyle_default = AxesChartColorAndStyle;
594
+ var AreaAxesChartColorAndStyleWithTrellis = __spreadProps(__spreadValues({}, AxesChartColorAndStyle), {
595
+ layout: [
596
+ AxesChartColorAndStyle.layout[0],
597
+ [
598
+ __spreadProps(__spreadValues({}, TrellisBackgroundColorEditor), {
599
+ editorProps: {
600
+ themes
601
+ }
602
+ })
603
+ ],
604
+ ...AxesChartColorAndStyle.layout.slice(1)
605
+ ]
606
+ });
481
607
 
482
608
  // src/common/editorConfig/AxesChartLegend.ts
483
609
  var AxesChartLegend = {
@@ -517,7 +643,54 @@ var AxesChartLegend = {
517
643
  ]
518
644
  ]
519
645
  };
520
- var AxesChartLegend_default = AxesChartLegend;
646
+ var AxesChartLegendWithTrellisAndMode = ({
647
+ showLegendTooltip = false,
648
+ hideModeWhenOff = false
649
+ }) => ({
650
+ label: AxesChartLegend.label,
651
+ layout: [
652
+ [
653
+ {
654
+ label: (0, i18n_exports._)("Legend display"),
655
+ option: "legendDisplay",
656
+ editor: "editor.select",
657
+ editorProps: {
658
+ values: [
659
+ { label: (0, i18n_exports._)("Right"), value: "right" },
660
+ { label: (0, i18n_exports._)("Left"), value: "left" },
661
+ { label: (0, i18n_exports._)("Top"), value: "top" },
662
+ { label: (0, i18n_exports._)("Bottom"), value: "bottom" },
663
+ { label: (0, i18n_exports._)("Off"), value: "off" }
664
+ ],
665
+ tooltip: showLegendTooltip && (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display')
666
+ },
667
+ isDisabled: showLegendTooltip ? ({ options }) => options.legendMode === "seriesCompare" : void 0,
668
+ overrideDefaultValue: ({ options }) => (options == null ? void 0 : options.splitByLayout) === "trellis" ? "off" : "right"
669
+ }
670
+ ],
671
+ [
672
+ __spreadProps(__spreadValues({}, AxesChartLegend.layout[1][0]), {
673
+ 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
674
+ options.legendDisplay === void 0 && options.splitByLayout !== "trellis"
675
+ })
676
+ ],
677
+ [
678
+ {
679
+ label: (0, i18n_exports._)("Legend mode"),
680
+ option: "legendMode",
681
+ editor: "editor.radioBar",
682
+ editorProps: {
683
+ values: [
684
+ { label: (0, i18n_exports._)("Standard"), value: "standard" },
685
+ { label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
686
+ ]
687
+ },
688
+ 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
689
+ options.legendDisplay === void 0 && options.splitByLayout !== "trellis" : true
690
+ }
691
+ ]
692
+ ]
693
+ });
521
694
 
522
695
  // src/common/editorConfig/AxesChartXGridAndLabels.ts
523
696
  var AxesChartXGridAndLabelsCommon = {
@@ -961,6 +1134,13 @@ var AxesChartYGridAndLabels = {
961
1134
  var AxesChartYGridAndLabels_default = AxesChartYGridAndLabels;
962
1135
 
963
1136
  // src/common/editorConfig/AxesChartY2GridAndLabels.ts
1137
+ var isTrellisFeatureFlagOn4 = ({ featureFlags }) => {
1138
+ return Boolean(featureFlags == null ? void 0 : featureFlags.visualizations_enableTrellis);
1139
+ };
1140
+ var isTrellisOff = ({ options, featureFlags }) => {
1141
+ const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
1142
+ return !isTrellisFeatureFlagOn4({ featureFlags }) || splitByLayout !== visualization_schemas_exports.LAYOUT_TYPE.Trellis;
1143
+ };
964
1144
  var axesChartY2GridAndLabels = {
965
1145
  label: (0, i18n_exports._)("Y2-axis grid and labels"),
966
1146
  layout: [
@@ -968,15 +1148,16 @@ var axesChartY2GridAndLabels = {
968
1148
  {
969
1149
  label: (0, i18n_exports._)("Axis title"),
970
1150
  option: "y2AxisTitleVisibility",
971
- editor: "editor.toggle"
1151
+ editor: "editor.toggle",
1152
+ showEditor: isTrellisOff
972
1153
  }
973
1154
  ],
974
1155
  [
975
1156
  {
976
- label: (0, i18n_exports._)("Axis title"),
1157
+ label: (0, i18n_exports._)("Axis title text"),
977
1158
  option: "y2AxisTitleText",
978
1159
  editor: "editor.text",
979
- showEditor: ({ options }) => options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0
1160
+ showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisTitleVisibility === "show" || options.y2AxisTitleVisibility === void 0)
980
1161
  }
981
1162
  ],
982
1163
  [
@@ -984,7 +1165,7 @@ var axesChartY2GridAndLabels = {
984
1165
  label: (0, i18n_exports._)("Show overlays on the y2-axis"),
985
1166
  option: "showOverlayY2Axis",
986
1167
  editor: "editor.checkbox",
987
- showEditor: ({ options }) => Array.isArray(options.overlayFields) && options.overlayFields.length > 0
1168
+ showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && Array.isArray(options.overlayFields) && options.overlayFields.length > 0
988
1169
  }
989
1170
  ],
990
1171
  [
@@ -997,7 +1178,8 @@ var axesChartY2GridAndLabels = {
997
1178
  { label: (0, i18n_exports._)("Linear"), value: "linear" },
998
1179
  { label: (0, i18n_exports._)("Log"), value: "log" }
999
1180
  ]
1000
- }
1181
+ },
1182
+ showEditor: isTrellisOff
1001
1183
  }
1002
1184
  ],
1003
1185
  [
@@ -1011,7 +1193,8 @@ var axesChartY2GridAndLabels = {
1011
1193
  { label: (0, i18n_exports._)("Show"), value: "show" },
1012
1194
  { label: (0, i18n_exports._)("Hide"), value: "hide" }
1013
1195
  ]
1014
- }
1196
+ },
1197
+ showEditor: isTrellisOff
1015
1198
  }
1016
1199
  ],
1017
1200
  [
@@ -1019,7 +1202,7 @@ var axesChartY2GridAndLabels = {
1019
1202
  label: (0, i18n_exports._)("Round axis labels"),
1020
1203
  option: "showRoundedY2AxisLabels",
1021
1204
  editor: "editor.checkbox",
1022
- showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
1205
+ showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
1023
1206
  }
1024
1207
  ],
1025
1208
  [
@@ -1027,40 +1210,45 @@ var axesChartY2GridAndLabels = {
1027
1210
  label: (0, i18n_exports._)("SI prefix abbreviation for labels"),
1028
1211
  option: "y2AxisAbbreviation",
1029
1212
  editor: "editor.checkbox",
1030
- showEditor: ({ options }) => options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0
1213
+ showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisLabelVisibility === "show" || options.y2AxisLabelVisibility === "auto" || options.y2AxisLabelVisibility === void 0)
1031
1214
  }
1032
1215
  ],
1033
1216
  [
1034
1217
  {
1035
1218
  label: (0, i18n_exports._)("Include zero"),
1036
1219
  option: "showY2AxisWithZero",
1037
- editor: "editor.checkbox"
1220
+ editor: "editor.checkbox",
1221
+ showEditor: isTrellisOff
1038
1222
  }
1039
1223
  ],
1040
1224
  [
1041
1225
  {
1042
1226
  label: (0, i18n_exports._)("Minimum axis value"),
1043
1227
  option: "y2AxisMin",
1044
- editor: "editor.number"
1228
+ editor: "editor.number",
1229
+ showEditor: isTrellisOff
1045
1230
  },
1046
1231
  {
1047
1232
  label: (0, i18n_exports._)("Maximum axis value"),
1048
1233
  option: "y2AxisMax",
1049
- editor: "editor.number"
1234
+ editor: "editor.number",
1235
+ showEditor: isTrellisOff
1050
1236
  }
1051
1237
  ],
1052
1238
  [
1053
1239
  {
1054
1240
  label: (0, i18n_exports._)("Axis line visibility"),
1055
1241
  option: "y2AxisLineVisibility",
1056
- editor: "editor.checkbox"
1242
+ editor: "editor.checkbox",
1243
+ showEditor: isTrellisOff
1057
1244
  }
1058
1245
  ],
1059
1246
  [
1060
1247
  {
1061
1248
  label: (0, i18n_exports._)("Major gridlines"),
1062
1249
  option: "showY2MajorGridLines",
1063
- editor: "editor.checkbox"
1250
+ editor: "editor.checkbox",
1251
+ showEditor: isTrellisOff
1064
1252
  }
1065
1253
  ],
1066
1254
  [
@@ -1074,7 +1262,8 @@ var axesChartY2GridAndLabels = {
1074
1262
  { label: (0, i18n_exports._)("Show"), value: "show" },
1075
1263
  { label: (0, i18n_exports._)("Hide"), value: "hide" }
1076
1264
  ]
1077
- }
1265
+ },
1266
+ showEditor: isTrellisOff
1078
1267
  }
1079
1268
  ],
1080
1269
  [
@@ -1087,7 +1276,7 @@ var axesChartY2GridAndLabels = {
1087
1276
  max: 10,
1088
1277
  step: 1
1089
1278
  },
1090
- showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
1279
+ showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
1091
1280
  }
1092
1281
  ],
1093
1282
  [
@@ -1095,14 +1284,15 @@ var axesChartY2GridAndLabels = {
1095
1284
  label: (0, i18n_exports._)("Major tick interval spacing"),
1096
1285
  option: "y2AxisMajorTickInterval",
1097
1286
  editor: "editor.number",
1098
- showEditor: ({ options }) => options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0
1287
+ showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMajorTickVisibility === "show" || options.y2AxisMajorTickVisibility === "auto" || options.y2AxisMajorTickVisibility === void 0)
1099
1288
  }
1100
1289
  ],
1101
1290
  [
1102
1291
  {
1103
1292
  label: (0, i18n_exports._)("Minor gridlines"),
1104
1293
  option: "showY2MinorGridLines",
1105
- editor: "editor.checkbox"
1294
+ editor: "editor.checkbox",
1295
+ showEditor: isTrellisOff
1106
1296
  }
1107
1297
  ],
1108
1298
  [
@@ -1116,7 +1306,8 @@ var axesChartY2GridAndLabels = {
1116
1306
  { label: (0, i18n_exports._)("Show"), value: "show" },
1117
1307
  { label: (0, i18n_exports._)("Hide"), value: "hide" }
1118
1308
  ]
1119
- }
1309
+ },
1310
+ showEditor: isTrellisOff
1120
1311
  }
1121
1312
  ],
1122
1313
  [
@@ -1129,7 +1320,7 @@ var axesChartY2GridAndLabels = {
1129
1320
  max: 10,
1130
1321
  step: 1
1131
1322
  },
1132
- showEditor: ({ options }) => options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0
1323
+ showEditor: ({ options, featureFlags }) => isTrellisOff({ options, featureFlags }) && (options.y2AxisMinorTickVisibility === "show" || options.y2AxisMinorTickVisibility === "auto" || options.y2AxisMinorTickVisibility === void 0)
1133
1324
  }
1134
1325
  ]
1135
1326
  ]
@@ -1167,15 +1358,22 @@ var themes2 = {
1167
1358
  light: variables_default.backgroundColor(props)
1168
1359
  },
1169
1360
  prisma: variables_default.backgroundColorSidebar(props)
1361
+ })(props),
1362
+ defaultFontColor: (props) => pick_default({
1363
+ enterprise: {
1364
+ dark: variables_default.textColor(props),
1365
+ light: variables_default.textColor(props)
1366
+ },
1367
+ prisma: variables_default.contentColorDefault(props)
1170
1368
  })(props)
1171
1369
  };
1172
1370
  var editorConfig = [
1173
1371
  AxesChartDataConfigAreaColumnLine,
1174
- AxesChartDataDisplay_default,
1372
+ AxesChartDataDisplayArea,
1175
1373
  {
1176
- label: AxesChartColorAndStyle_default.label,
1374
+ label: AreaAxesChartColorAndStyleWithTrellis.label,
1177
1375
  layout: [
1178
- ...AxesChartColorAndStyle_default.layout,
1376
+ ...AreaAxesChartColorAndStyleWithTrellis.layout,
1179
1377
  [
1180
1378
  {
1181
1379
  label: (0, i18n_exports._)("Area opacity (0-1)"),
@@ -1222,59 +1420,7 @@ var editorConfig = [
1222
1420
  ]
1223
1421
  ]
1224
1422
  },
1225
- {
1226
- label: AxesChartLegend_default.label,
1227
- layout: [
1228
- [
1229
- {
1230
- label: (0, i18n_exports._)("Legend display"),
1231
- option: "legendDisplay",
1232
- editor: "editor.select",
1233
- editorProps: {
1234
- values: [
1235
- { label: (0, i18n_exports._)("Right"), value: "right" },
1236
- { label: (0, i18n_exports._)("Left"), value: "left" },
1237
- { label: (0, i18n_exports._)("Top"), value: "top" },
1238
- { label: (0, i18n_exports._)("Bottom"), value: "bottom" },
1239
- { label: (0, i18n_exports._)("Off"), value: "off" }
1240
- ],
1241
- tooltip: (0, i18n_exports._)('Legend mode must be "Standard" to configure legend display')
1242
- },
1243
- isDisabled: ({ options }) => options.legendMode === "seriesCompare"
1244
- }
1245
- ],
1246
- [
1247
- {
1248
- label: (0, i18n_exports._)("Legend truncation"),
1249
- option: "legendTruncation",
1250
- editor: "editor.radioBar",
1251
- editorProps: {
1252
- values: [
1253
- { label: (0, i18n_exports._)("A..."), value: "ellipsisEnd" },
1254
- { label: (0, i18n_exports._)("A...Z"), value: "ellipsisMiddle" },
1255
- { label: (0, i18n_exports._)("...Z"), value: "ellipsisStart" },
1256
- { label: (0, i18n_exports._)("Off"), value: "ellipsisOff" }
1257
- ]
1258
- },
1259
- showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
1260
- }
1261
- ],
1262
- [
1263
- {
1264
- label: (0, i18n_exports._)("Legend mode"),
1265
- option: "legendMode",
1266
- editor: "editor.radioBar",
1267
- editorProps: {
1268
- values: [
1269
- { label: (0, i18n_exports._)("Standard"), value: "standard" },
1270
- { label: (0, i18n_exports._)("Compare series"), value: "seriesCompare" }
1271
- ]
1272
- },
1273
- showEditor: ({ options }) => options.legendDisplay === "left" || options.legendDisplay === "right" || options.legendDisplay === "top" || options.legendDisplay === "bottom" || options.legendDisplay === void 0
1274
- }
1275
- ]
1276
- ]
1277
- },
1423
+ AxesChartLegendWithTrellisAndMode({ showLegendTooltip: true, hideModeWhenOff: true }),
1278
1424
  AxesChartXGridAndLabels_default,
1279
1425
  AxesChartYGridAndLabels_default,
1280
1426
  AxesChartY2GridAndLabels_default
@@ -1320,7 +1466,8 @@ var config = {
1320
1466
  "dynamic-options" /* DYNAMIC_OPTIONS */,
1321
1467
  "placeholder" /* PLACEHOLDER */,
1322
1468
  "events" /* EVENTS */,
1323
- "downsampling" /* DOWNSAMPLING */
1469
+ "downsampling" /* DOWNSAMPLING */,
1470
+ "trellis" /* TRELLIS */
1324
1471
  ],
1325
1472
  themes: themes2
1326
1473
  };