@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/cjs/index.js CHANGED
@@ -106,6 +106,7 @@ __export(src_exports, {
106
106
  singleValueRadialOptionsSchema: () => singleValueRadialOptionsSchema,
107
107
  tableOptionsSchema: () => tableOptionsSchema,
108
108
  timelineOptionsSchema: () => timelineOptionsSchema,
109
+ treemapOptionsSchema: () => treemapOptionsSchema,
109
110
  validAlignments: () => validAlignments,
110
111
  validCellRenderers: () => validCellRenderers,
111
112
  validColumnAlignments: () => validColumnAlignments,
@@ -3592,8 +3593,7 @@ var networkGraphOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
3592
3593
  description: "Specify the icon used for each node (cylinder, portrait, magnifier, etc.).",
3593
3594
  type: "array",
3594
3595
  items: {
3595
- type: "string",
3596
- pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA
3596
+ type: "string"
3597
3597
  }
3598
3598
  },
3599
3599
  nodeIconColors: {
@@ -3978,7 +3978,15 @@ var processTreeOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
3978
3978
  },
3979
3979
  nodeColors: {
3980
3980
  default: [],
3981
- 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.",
3981
+ 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.",
3982
+ type: ["array", "string"],
3983
+ items: {
3984
+ type: "string"
3985
+ }
3986
+ },
3987
+ networkNodeColors: {
3988
+ default: [],
3989
+ 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.",
3982
3990
  type: ["array", "string"],
3983
3991
  items: {
3984
3992
  type: "string"
@@ -4023,7 +4031,7 @@ var processTreeOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
4023
4031
  },
4024
4032
  treeNodeLabelFields: {
4025
4033
  default: [],
4026
- 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.",
4034
+ 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.",
4027
4035
  type: ["array", "string"],
4028
4036
  items: {
4029
4037
  type: "string"
@@ -4031,7 +4039,7 @@ var processTreeOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
4031
4039
  },
4032
4040
  fieldsToShowAsChip: {
4033
4041
  default: [],
4034
- 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.",
4042
+ 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.",
4035
4043
  type: ["array", "string"],
4036
4044
  items: {
4037
4045
  type: "string"
@@ -4374,6 +4382,12 @@ var pureRichTextOptionsSchema = {
4374
4382
  description: "HTML content for the rich text editor. Inline styles should only include differences from default text styles.",
4375
4383
  type: "string",
4376
4384
  default: "<p></p>"
4385
+ },
4386
+ // Data display
4387
+ previewTokenValues: {
4388
+ 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.",
4389
+ type: "boolean",
4390
+ default: false
4377
4391
  }
4378
4392
  };
4379
4393
  var richTextOptionsSchema = pureRichTextOptionsSchema;
@@ -5534,6 +5548,11 @@ var tableOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5534
5548
  type: "number",
5535
5549
  default: 10
5536
5550
  },
5551
+ dynamicHeight: {
5552
+ default: false,
5553
+ description: "In view mode, allow the table to grow or shrink to fit the data. Ignored in edit mode.",
5554
+ type: "boolean"
5555
+ },
5537
5556
  font: {
5538
5557
  default: "proportional",
5539
5558
  description: "Specify the font style to use for table content.",
@@ -5839,4 +5858,112 @@ var timelineOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5839
5858
  type: "number"
5840
5859
  }
5841
5860
  });
5861
+
5862
+ // src/optionsSchemas/treemap.ts
5863
+ var treemapOptionsSchema = enhanceOptionsSchemaWithDynamicOptions({
5864
+ additionalTooltipFields: {
5865
+ default: [],
5866
+ description: "Specify additional fields to display in the tooltip for each node.",
5867
+ type: "array",
5868
+ items: {
5869
+ type: "string"
5870
+ }
5871
+ },
5872
+ backgroundColor: {
5873
+ default: "> themes.defaultBackgroundColor",
5874
+ 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".',
5875
+ pattern: COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
5876
+ type: "string"
5877
+ },
5878
+ dataColors: {
5879
+ 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.',
5880
+ type: ["string", "array"],
5881
+ items: {
5882
+ type: "string"
5883
+ }
5884
+ },
5885
+ dataColorValues: {
5886
+ default: `> primary | seriesByType('number')`,
5887
+ description: "Specify the array of values used for dynamic treemap coloring.",
5888
+ type: "array",
5889
+ items: {
5890
+ type: ["number", "string"]
5891
+ }
5892
+ },
5893
+ legendDisplay: {
5894
+ default: "off",
5895
+ description: "Specify the location of the legend on the panel.",
5896
+ pattern: getPattern(["bottom", "off"]),
5897
+ type: "string"
5898
+ },
5899
+ nodeIds: {
5900
+ default: '> primary | seriesByType("string")',
5901
+ description: "Specify the array of node IDs in the hierarchy.",
5902
+ type: "array",
5903
+ items: {
5904
+ type: "string"
5905
+ }
5906
+ },
5907
+ nodeLabels: {
5908
+ default: '> primary | seriesByType("string")',
5909
+ description: "Specify the array of display labels for treemap nodes.",
5910
+ type: "array",
5911
+ items: {
5912
+ type: "string"
5913
+ }
5914
+ },
5915
+ parent: {
5916
+ description: "Specify the array of parent node names in the hierarchy.",
5917
+ type: "array",
5918
+ items: {
5919
+ type: "string"
5920
+ }
5921
+ },
5922
+ resultLimit: {
5923
+ description: "Specify the maximum number of treemap data points rendered.",
5924
+ default: 1e4,
5925
+ type: "number"
5926
+ },
5927
+ seriesColors: {
5928
+ default: visualization_color_palettes_exports.VIZ_CATEGORICAL,
5929
+ description: 'Specify the colors used for root categories. For example, ["#FF0000", "#0000FF", "#008000"].',
5930
+ type: "array",
5931
+ items: {
5932
+ type: "string"
5933
+ }
5934
+ },
5935
+ showChildValues: {
5936
+ default: true,
5937
+ description: "Specify whether to display values for child and leaf nodes.",
5938
+ type: "boolean"
5939
+ },
5940
+ showParentValues: {
5941
+ default: true,
5942
+ description: "Specify whether to display the values of each parent node. This only applies when showSubdivisions is true.",
5943
+ type: "boolean"
5944
+ },
5945
+ showSubdivisions: {
5946
+ default: true,
5947
+ description: "Specify whether to display nested subdivisions inside parent nodes.",
5948
+ type: "boolean"
5949
+ },
5950
+ showTooltip: {
5951
+ default: false,
5952
+ description: "Specify whether to display the tooltip when hovering over nodes.",
5953
+ type: "boolean"
5954
+ },
5955
+ sumFromLeafNodes: {
5956
+ default: false,
5957
+ description: "Specify whether parent values are calculated from leaf children instead of using provided parent values.",
5958
+ type: "boolean"
5959
+ },
5960
+ value: {
5961
+ default: `> primary | seriesByType('number')`,
5962
+ description: "Specify the numeric field used to determine the size (area) of each treemap node.",
5963
+ type: "array",
5964
+ items: {
5965
+ type: "number"
5966
+ }
5967
+ }
5968
+ });
5842
5969
  //# sourceMappingURL=index.js.map