@splunk/visualization-schemas 28.7.0 → 28.8.1

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/dist/esm/index.js CHANGED
@@ -4313,6 +4313,12 @@ var pureRichTextOptionsSchema = {
4313
4313
  description: "HTML content for the rich text editor. Inline styles should only include differences from default text styles.",
4314
4314
  type: "string",
4315
4315
  default: "<p></p>"
4316
+ },
4317
+ // Data display
4318
+ previewTokenValues: {
4319
+ description: "When true, resolved token values are shown in the editor while in edit mode. When false (default), $token$ patterns are displayed as-is in edit mode. Tokens always resolve in view mode regardless of this setting.",
4320
+ type: "boolean",
4321
+ default: false
4316
4322
  }
4317
4323
  };
4318
4324
  var richTextOptionsSchema = pureRichTextOptionsSchema;
@@ -5473,6 +5479,11 @@ var tableOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5473
5479
  type: "number",
5474
5480
  default: 10
5475
5481
  },
5482
+ dynamicHeight: {
5483
+ default: false,
5484
+ description: "In view mode, allow the table to grow or shrink to fit the data. Ignored in edit mode.",
5485
+ type: "boolean"
5486
+ },
5476
5487
  font: {
5477
5488
  default: "proportional",
5478
5489
  description: "Specify the font style to use for table content.",
@@ -5778,6 +5789,114 @@ var timelineOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5778
5789
  type: "number"
5779
5790
  }
5780
5791
  });
5792
+
5793
+ // src/optionsSchemas/treemap.ts
5794
+ var treemapOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5795
+ additionalTooltipFields: {
5796
+ default: [],
5797
+ description: "Specify additional fields to display in the tooltip for each node.",
5798
+ type: "array",
5799
+ items: {
5800
+ type: "string"
5801
+ }
5802
+ },
5803
+ backgroundColor: {
5804
+ default: "> themes.defaultBackgroundColor",
5805
+ description: 'Specify the color for the background. You may use a dataSource to apply the color. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
5806
+ pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
5807
+ type: "string"
5808
+ },
5809
+ dataColors: {
5810
+ description: 'Specify the colors to use for treemap nodes. You can use an array of colors to be picked from, or you can use a data source to apply dynamic coloring. For example, "> primary | seriesByName("population") | rangeValue(colorRangeConfig)". By default, the dataColors option is not defined and seriesColors is used for categorical coloring.',
5811
+ type: ["string", "array"],
5812
+ items: {
5813
+ type: "string"
5814
+ }
5815
+ },
5816
+ dataColorValues: {
5817
+ default: `> primary | seriesByType('number')`,
5818
+ description: "Specify the array of values used for dynamic treemap coloring.",
5819
+ type: "array",
5820
+ items: {
5821
+ type: ["number", "string"]
5822
+ }
5823
+ },
5824
+ legendDisplay: {
5825
+ default: "off",
5826
+ description: "Specify the location of the legend on the panel.",
5827
+ pattern: getPattern(["bottom", "off"]),
5828
+ type: "string"
5829
+ },
5830
+ nodeIds: {
5831
+ default: '> primary | seriesByType("string")',
5832
+ description: "Specify the array of node IDs in the hierarchy.",
5833
+ type: "array",
5834
+ items: {
5835
+ type: "string"
5836
+ }
5837
+ },
5838
+ nodeLabels: {
5839
+ default: '> primary | seriesByType("string")',
5840
+ description: "Specify the array of display labels for treemap nodes.",
5841
+ type: "array",
5842
+ items: {
5843
+ type: "string"
5844
+ }
5845
+ },
5846
+ parent: {
5847
+ description: "Specify the array of parent node names in the hierarchy.",
5848
+ type: "array",
5849
+ items: {
5850
+ type: "string"
5851
+ }
5852
+ },
5853
+ resultLimit: {
5854
+ description: "Specify the maximum number of treemap data points rendered.",
5855
+ default: 1e4,
5856
+ type: "number"
5857
+ },
5858
+ seriesColors: {
5859
+ default: visualization_color_palettes_exports.VIZ_CATEGORICAL,
5860
+ description: 'Specify the colors used for root categories. For example, ["#FF0000", "#0000FF", "#008000"].',
5861
+ type: "array",
5862
+ items: {
5863
+ type: "string"
5864
+ }
5865
+ },
5866
+ showChildValues: {
5867
+ default: true,
5868
+ description: "Specify whether to display values for child and leaf nodes.",
5869
+ type: "boolean"
5870
+ },
5871
+ showParentValues: {
5872
+ default: true,
5873
+ description: "Specify whether to display the values of each parent node. This only applies when showSubdivisions is true.",
5874
+ type: "boolean"
5875
+ },
5876
+ showSubdivisions: {
5877
+ default: true,
5878
+ description: "Specify whether to display nested subdivisions inside parent nodes.",
5879
+ type: "boolean"
5880
+ },
5881
+ showTooltip: {
5882
+ default: false,
5883
+ description: "Specify whether to display the tooltip when hovering over nodes.",
5884
+ type: "boolean"
5885
+ },
5886
+ sumFromLeafNodes: {
5887
+ default: false,
5888
+ description: "Specify whether parent values are calculated from leaf children instead of using provided parent values.",
5889
+ type: "boolean"
5890
+ },
5891
+ value: {
5892
+ default: `> primary | seriesByType('number')`,
5893
+ description: "Specify the numeric field used to determine the size (area) of each treemap node.",
5894
+ type: "array",
5895
+ items: {
5896
+ type: "number"
5897
+ }
5898
+ }
5899
+ });
5781
5900
  export {
5782
5901
  COLOR_OR_TOKEN_PATTERN,
5783
5902
  COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
@@ -5823,6 +5942,7 @@ export {
5823
5942
  singleValueRadialOptionsSchema,
5824
5943
  tableOptionsSchema,
5825
5944
  timelineOptionsSchema,
5945
+ treemapOptionsSchema,
5826
5946
  validAlignments,
5827
5947
  validCellRenderers,
5828
5948
  validColumnAlignments,