@splunk/visualization-schemas 28.6.0 → 28.8.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/dist/esm/index.js CHANGED
@@ -3524,8 +3524,7 @@ var networkGraphOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
3524
3524
  description: "Specify the icon used for each node (cylinder, portrait, magnifier, etc.).",
3525
3525
  type: "array",
3526
3526
  items: {
3527
- type: "string",
3528
- pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA
3527
+ type: "string"
3529
3528
  }
3530
3529
  },
3531
3530
  nodeIconColors: {
@@ -3910,7 +3909,15 @@ var processTreeOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
3910
3909
  },
3911
3910
  nodeColors: {
3912
3911
  default: [],
3913
- description: "Specify optional node colors aligned with nodeSource rows. Currently applied only to network chip text color. Provide an array, or use a string DSL expression that resolves to an array.",
3912
+ description: "Specify optional node row background colors aligned with nodeSource rows. These colors can fill process tree rows and right-side network rows unless the node is highlighted. Use networkNodeColors to color network indicators. Provide an array, or use a string DSL expression that resolves to an array.",
3913
+ type: ["array", "string"],
3914
+ items: {
3915
+ type: "string"
3916
+ }
3917
+ },
3918
+ networkNodeColors: {
3919
+ default: [],
3920
+ description: "Specify optional network node indicator colors aligned with nodeSource rows. These colors apply only to right-side network nodes and the process-side circle indicators for those networks. Provide an array, or use a string DSL expression that resolves to an array.",
3914
3921
  type: ["array", "string"],
3915
3922
  items: {
3916
3923
  type: "string"
@@ -3955,7 +3962,7 @@ var processTreeOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
3955
3962
  },
3956
3963
  treeNodeLabelFields: {
3957
3964
  default: [],
3958
- description: "Specify nodeSource field names to render in each tree node label, joined by spaces. Empty or null values are skipped. Provide an array, or use a string DSL expression that resolves to an array.",
3965
+ description: "Specify nodeSource field names to render in each tree node label, joined by spaces. Array values render as comma-separated text. Empty or null values are skipped. Provide an array, or use a string DSL expression that resolves to an array.",
3959
3966
  type: ["array", "string"],
3960
3967
  items: {
3961
3968
  type: "string"
@@ -3963,7 +3970,7 @@ var processTreeOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
3963
3970
  },
3964
3971
  fieldsToShowAsChip: {
3965
3972
  default: [],
3966
- description: "Specify treeNodeLabelFields names whose values should be rendered as chips. Provide an array, or use a string DSL expression that resolves to an array.",
3973
+ description: "Specify treeNodeLabelFields names whose values should be rendered as chips. Array values render as comma-separated text inside a single chip. Provide an array, or use a string DSL expression that resolves to an array.",
3967
3974
  type: ["array", "string"],
3968
3975
  items: {
3969
3976
  type: "string"
@@ -4306,6 +4313,12 @@ var pureRichTextOptionsSchema = {
4306
4313
  description: "HTML content for the rich text editor. Inline styles should only include differences from default text styles.",
4307
4314
  type: "string",
4308
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
4309
4322
  }
4310
4323
  };
4311
4324
  var richTextOptionsSchema = pureRichTextOptionsSchema;
@@ -5466,6 +5479,11 @@ var tableOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5466
5479
  type: "number",
5467
5480
  default: 10
5468
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
+ },
5469
5487
  font: {
5470
5488
  default: "proportional",
5471
5489
  description: "Specify the font style to use for table content.",
@@ -5771,6 +5789,114 @@ var timelineOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5771
5789
  type: "number"
5772
5790
  }
5773
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
+ });
5774
5900
  export {
5775
5901
  COLOR_OR_TOKEN_PATTERN,
5776
5902
  COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
@@ -5816,6 +5942,7 @@ export {
5816
5942
  singleValueRadialOptionsSchema,
5817
5943
  tableOptionsSchema,
5818
5944
  timelineOptionsSchema,
5945
+ treemapOptionsSchema,
5819
5946
  validAlignments,
5820
5947
  validCellRenderers,
5821
5948
  validColumnAlignments,