@splunk/visualizations 25.5.0 → 25.7.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 (237) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Dark.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_DarkPrisma.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Light.png +0 -0
  4. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  5. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  6. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  7. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Legend_Mode_Series_Compare.png +0 -0
  19. package/.loki/reference/chrome_docker_Visualizations_Column_Column_Legend_Mode_Series_Compare.png +0 -0
  20. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Background_Color_Light_Blue.png +0 -0
  21. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
  22. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
  23. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
  24. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
  25. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
  26. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
  27. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Value_Highlighting.png +0 -0
  28. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
  29. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
  30. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_Pagination.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_background_color.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_count_by_status.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_count_by_status_user.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_count_by_status_user_aggregations.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_max_count_avg_count_aggregations.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_max_count_avg_count_by_status_user_aggregations.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_layout_options.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_makeresults_name_age.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_makeresults_name_age_aggregations.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_avg_count_max_count_aggregations.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_avg_count_max_count_by_status_user_aggregations.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_count_by_status_user.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_count_by_status_user_aggregations.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_table.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_table_aggregations.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_count_aggregations.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_count_by_status.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_count_by_status_aggregations.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_max_count_avg_count_by_status_aggregations.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Chart.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Chart_Count.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Pagination.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Timechart.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_background_color.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_chart_cmd_count_by_status_user_aggregations.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_chart_cmd_max_count_avg_count_aggregations.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_chart_cmd_max_count_avg_count_by_status_user_aggregations.png +0 -0
  58. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_layout_options.png +0 -0
  59. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_makeresults_name_age.png +0 -0
  60. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_makeresults_name_age_aggregations.png +0 -0
  61. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_stats_cmd_avg_count_max_count_aggregations.png +0 -0
  62. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_stats_cmd_count_by_status_user.png +0 -0
  63. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_stats_cmd_count_by_status_user_aggregations.png +0 -0
  64. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_table.png +0 -0
  65. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_table_aggregations.png +0 -0
  66. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_timechart_cmd_count_aggregations.png +0 -0
  67. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_timechart_cmd_count_by_status_aggregations.png +0 -0
  68. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_timechart_cmd_max_count_avg_count_by_status_aggregations.png +0 -0
  69. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status_user_aggregations.png +0 -0
  70. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_Pagination.png +0 -0
  71. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_assign_default_trellisSplitBy_value_status.png +0 -0
  72. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_background_color.png +0 -0
  73. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_avg_count_max_count_by_status.png +0 -0
  74. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_avg_count_max_count_by_status_value_by_max_count.png +0 -0
  75. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status.png +0 -0
  76. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status_user.png +0 -0
  77. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status_user_aggregations.png +0 -0
  78. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status_user_user.png +0 -0
  79. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_aggregations.png +0 -0
  80. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_by_status_user.png +0 -0
  81. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_by_status_user_aggregations.png +0 -0
  82. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_by_status_user_user.png +0 -0
  83. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_layout_options.png +0 -0
  84. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_makeresults_name_age.png +0 -0
  85. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_makeresults_name_age_aggregations.png +0 -0
  86. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_aggregations.png +0 -0
  87. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status.png +0 -0
  88. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status_user_aggregations.png +0 -0
  89. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status_value_by_max_count.png +0 -0
  90. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_count_by_status_user.png +0 -0
  91. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_count_by_status_user_aggregations.png +0 -0
  92. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_table.png +0 -0
  93. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_table_aggregations.png +0 -0
  94. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_count_aggregations.png +0 -0
  95. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_count_by_status.png +0 -0
  96. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_count_by_status_aggregations.png +0 -0
  97. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_max_count_avg_count_by_status.png +0 -0
  98. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_max_count_avg_count_by_status_aggregations.png +0 -0
  99. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Major_value_data_null_show_N_A.png +0 -0
  100. package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Major_Value_Trellis.png +0 -0
  101. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage.png +0 -0
  102. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_100_no_paginator.png +0 -0
  103. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_50_no_paginator.png +0 -0
  104. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
  105. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
  106. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Width.png +0 -0
  107. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
  108. package/Area.config.js +12 -7
  109. package/Area.config.js.map +1 -1
  110. package/Area.js +330 -226
  111. package/Area.js.map +1 -1
  112. package/Bar.config.js +36 -8
  113. package/Bar.config.js.map +1 -1
  114. package/Bar.js +354 -227
  115. package/Bar.js.map +1 -1
  116. package/Bubble.config.js +7 -2
  117. package/Bubble.config.js.map +1 -1
  118. package/Bubble.js +318 -214
  119. package/Bubble.js.map +1 -1
  120. package/ChoroplethSvg.config.js +12 -8
  121. package/ChoroplethSvg.config.js.map +1 -1
  122. package/ChoroplethSvg.js +324 -229
  123. package/ChoroplethSvg.js.map +1 -1
  124. package/Column.config.js +36 -8
  125. package/Column.config.js.map +1 -1
  126. package/Column.js +354 -227
  127. package/Column.js.map +1 -1
  128. package/Ellipse.config.js +23 -20
  129. package/Ellipse.config.js.map +1 -1
  130. package/Ellipse.js +289 -187
  131. package/Ellipse.js.map +1 -1
  132. package/Events.config.js +82 -19
  133. package/Events.config.js.map +1 -1
  134. package/Events.js +1276 -416
  135. package/Events.js.map +1 -1
  136. package/FEATUREFLAGS.md +40 -0
  137. package/FillerGauge.config.js +22 -19
  138. package/FillerGauge.config.js.map +1 -1
  139. package/FillerGauge.js +311 -204
  140. package/FillerGauge.js.map +1 -1
  141. package/Image.config.js +3 -3
  142. package/Image.config.js.map +1 -1
  143. package/Image.js +249 -151
  144. package/Image.js.map +1 -1
  145. package/LICENSE.md +444 -8
  146. package/Line.config.js +12 -7
  147. package/Line.config.js.map +1 -1
  148. package/Line.js +335 -226
  149. package/Line.js.map +1 -1
  150. package/LinkGraph.config.js +9 -15
  151. package/LinkGraph.config.js.map +1 -1
  152. package/LinkGraph.js +881 -790
  153. package/LinkGraph.js.map +1 -1
  154. package/Map.config.js +51 -48
  155. package/Map.config.js.map +1 -1
  156. package/Map.js +804 -711
  157. package/Map.js.map +1 -1
  158. package/Markdown.config.js +10 -9
  159. package/Markdown.config.js.map +1 -1
  160. package/Markdown.js +365 -266
  161. package/Markdown.js.map +1 -1
  162. package/MarkerGauge.config.js +71 -70
  163. package/MarkerGauge.config.js.map +1 -1
  164. package/MarkerGauge.js +422 -330
  165. package/MarkerGauge.js.map +1 -1
  166. package/ParallelCoordinates.config.js +3 -3
  167. package/ParallelCoordinates.config.js.map +1 -1
  168. package/ParallelCoordinates.js +532 -430
  169. package/ParallelCoordinates.js.map +1 -1
  170. package/Pie.config.js +30 -6
  171. package/Pie.config.js.map +1 -1
  172. package/Pie.js +553 -431
  173. package/Pie.js.map +1 -1
  174. package/Punchcard.config.js +3 -2
  175. package/Punchcard.config.js.map +1 -1
  176. package/Punchcard.js +556 -464
  177. package/Punchcard.js.map +1 -1
  178. package/Rectangle.config.js +22 -23
  179. package/Rectangle.config.js.map +1 -1
  180. package/Rectangle.js +383 -286
  181. package/Rectangle.js.map +1 -1
  182. package/Sankey.config.js +14 -13
  183. package/Sankey.config.js.map +1 -1
  184. package/Sankey.js +3126 -3034
  185. package/Sankey.js.map +1 -1
  186. package/Scatter.config.js +552 -580
  187. package/Scatter.config.js.map +1 -1
  188. package/Scatter.js +410 -311
  189. package/Scatter.js.map +1 -1
  190. package/SingleValue.config.js +242 -52
  191. package/SingleValue.config.js.map +1 -1
  192. package/SingleValue.js +1605 -414
  193. package/SingleValue.js.map +1 -1
  194. package/SingleValueBasic.js +41 -30
  195. package/SingleValueBasic.js.map +1 -1
  196. package/SingleValueIcon.config.js +267 -58
  197. package/SingleValueIcon.config.js.map +1 -1
  198. package/SingleValueIcon.js +1622 -410
  199. package/SingleValueIcon.js.map +1 -1
  200. package/SingleValueRadial.config.js +249 -41
  201. package/SingleValueRadial.config.js.map +1 -1
  202. package/SingleValueRadial.js +1517 -283
  203. package/SingleValueRadial.js.map +1 -1
  204. package/TRELLIS.md +296 -0
  205. package/Table.config.js +39 -41
  206. package/Table.config.js.map +1 -1
  207. package/Table.js +435 -311
  208. package/Table.js.map +1 -1
  209. package/common/EventsDoc.js +12 -6
  210. package/common/EventsDoc.js.map +1 -1
  211. package/common/GaugeMajorTicks.js +2 -2
  212. package/common/GaugeValueMarker.js +2 -2
  213. package/common/OptionsDoc.js +14 -14
  214. package/common/OptionsDoc.js.map +1 -1
  215. package/common/ThemesDoc.js +10 -10
  216. package/common/ThemesDoc.js.map +1 -1
  217. package/common/docUtils.js +1 -1
  218. package/common/docUtils.js.map +1 -1
  219. package/common/utils/configUtils.js +26 -20
  220. package/common/utils/configUtils.js.map +1 -1
  221. package/common/utils/dataUtils.js +2 -2
  222. package/common/utils/dataUtils.js.map +1 -1
  223. package/common/utils/hocUtils.js +2 -2
  224. package/common/utils/hocUtils.js.map +1 -1
  225. package/common/utils/layoutUtils.js +115 -0
  226. package/common/utils/layoutUtils.js.map +1 -0
  227. package/common/utils/mapUtils.js +1166 -23
  228. package/common/utils/mapUtils.js.map +1 -1
  229. package/common/utils/singleValueUtils.js +54 -46
  230. package/common/utils/singleValueUtils.js.map +1 -1
  231. package/common/utils/testHelper.js +14 -14
  232. package/common/utils/testHelper.js.map +1 -1
  233. package/common/utils/trellisUtils.js +612 -0
  234. package/common/utils/trellisUtils.js.map +1 -0
  235. package/common/withDashboardViz.js +148 -54
  236. package/common/withDashboardViz.js.map +1 -1
  237. package/package.json +14 -12
package/Image.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 196);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 214);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -95,21 +95,21 @@ module.exports =
95
95
  /***/ 0:
96
96
  /***/ (function(module, exports) {
97
97
 
98
- module.exports = require("prop-types");
98
+ module.exports = require("react");
99
99
 
100
100
  /***/ }),
101
101
 
102
102
  /***/ 1:
103
103
  /***/ (function(module, exports) {
104
104
 
105
- module.exports = require("react");
105
+ module.exports = require("prop-types");
106
106
 
107
107
  /***/ }),
108
108
 
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/visualizations-shared/Message");
112
+ module.exports = require("@splunk/themes/variables");
113
113
 
114
114
  /***/ }),
115
115
 
@@ -137,13 +137,13 @@ Object.defineProperty(exports, "__esModule", {
137
137
  value: true
138
138
  });
139
139
 
140
- var React = __webpack_require__(1);
140
+ var React = __webpack_require__(0);
141
141
 
142
142
  var styled_components_1 = __webpack_require__(4);
143
143
 
144
- var SizeAwareWrapper_1 = __webpack_require__(20);
144
+ var SizeAwareWrapper_1 = __webpack_require__(18);
145
145
 
146
- var style_1 = __webpack_require__(15);
146
+ var style_1 = __webpack_require__(14);
147
147
 
148
148
  var colorUtils_1 = __webpack_require__(12);
149
149
 
@@ -202,7 +202,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
202
202
 
203
203
  return React.createElement(FixSizeItem, {
204
204
  "data-test": "fix-size-item",
205
- "data-splunk-visualization-version": "25.5.0 - 12c0447a7",
205
+ "data-splunk-visualization-version": "25.7.0 - d10a7789b",
206
206
  width: width,
207
207
  height: height,
208
208
  backgroundColor: backgroundColor
@@ -224,7 +224,14 @@ exports.default = withFixedSizeContainer;
224
224
 
225
225
  /***/ }),
226
226
 
227
- /***/ 135:
227
+ /***/ 14:
228
+ /***/ (function(module, exports) {
229
+
230
+ module.exports = require("@splunk/visualizations-shared/style");
231
+
232
+ /***/ }),
233
+
234
+ /***/ 149:
228
235
  /***/ (function(module, exports, __webpack_require__) {
229
236
 
230
237
  "use strict";
@@ -250,25 +257,25 @@ exports.config = exports.themes = exports.toImageDimensions = exports.shouldShow
250
257
 
251
258
  var lodash_1 = __webpack_require__(3);
252
259
 
253
- var React = __webpack_require__(1);
260
+ var React = __webpack_require__(0);
254
261
 
255
262
  var i18n_1 = __webpack_require__(2);
256
263
 
257
- var style_1 = __webpack_require__(15);
264
+ var style_1 = __webpack_require__(14);
258
265
 
259
- var RemoteImage_1 = __webpack_require__(136);
266
+ var RemoteImage_1 = __webpack_require__(150);
260
267
 
261
268
  var styled_components_1 = __webpack_require__(4);
262
269
 
263
- var T = __webpack_require__(0);
270
+ var T = __webpack_require__(1);
264
271
 
265
- var config_1 = __webpack_require__(197);
272
+ var config_1 = __webpack_require__(215);
266
273
 
267
274
  exports.config = config_1.default;
268
275
 
269
- var withDashboardViz_1 = __webpack_require__(32);
276
+ var withDashboardViz_1 = __webpack_require__(36);
270
277
 
271
- var ImageApi_1 = __webpack_require__(198);
278
+ var ImageApi_1 = __webpack_require__(216);
272
279
 
273
280
  var useEffect = React.useEffect,
274
281
  useRef = React.useRef;
@@ -405,14 +412,7 @@ exports.default = Image;
405
412
 
406
413
  /***/ }),
407
414
 
408
- /***/ 136:
409
- /***/ (function(module, exports) {
410
-
411
- module.exports = require("@splunk/visualizations-shared/RemoteImage");
412
-
413
- /***/ }),
414
-
415
- /***/ 14:
415
+ /***/ 15:
416
416
  /***/ (function(module, exports, __webpack_require__) {
417
417
 
418
418
  "use strict";
@@ -445,10 +445,10 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
445
445
 
446
446
  /***/ }),
447
447
 
448
- /***/ 15:
448
+ /***/ 150:
449
449
  /***/ (function(module, exports) {
450
450
 
451
- module.exports = require("@splunk/visualizations-shared/style");
451
+ module.exports = require("@splunk/visualizations-shared/RemoteImage");
452
452
 
453
453
  /***/ }),
454
454
 
@@ -460,14 +460,28 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
460
460
  /***/ }),
461
461
 
462
462
  /***/ 17:
463
+ /***/ (function(module, exports) {
464
+
465
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
466
+
467
+ /***/ }),
468
+
469
+ /***/ 18:
470
+ /***/ (function(module, exports) {
471
+
472
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
473
+
474
+ /***/ }),
475
+
476
+ /***/ 19:
463
477
  /***/ (function(module, exports, __webpack_require__) {
464
478
 
465
479
  "use strict";
466
480
 
467
481
 
468
- var _toConsumableArray = __webpack_require__(8);
482
+ var _toConsumableArray = __webpack_require__(7);
469
483
 
470
- var _defineProperty = __webpack_require__(7);
484
+ var _defineProperty = __webpack_require__(8);
471
485
 
472
486
  var __rest = this && this.__rest || function (s, e) {
473
487
  var t = {};
@@ -696,14 +710,21 @@ exports.insertLayout = insertLayout;
696
710
 
697
711
  /***/ }),
698
712
 
699
- /***/ 19:
713
+ /***/ 2:
700
714
  /***/ (function(module, exports) {
701
715
 
702
- module.exports = require("@babel/runtime/helpers/createClass");
716
+ module.exports = require("@splunk/ui-utils/i18n");
717
+
718
+ /***/ }),
719
+
720
+ /***/ 20:
721
+ /***/ (function(module, exports) {
722
+
723
+ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
703
724
 
704
725
  /***/ }),
705
726
 
706
- /***/ 196:
727
+ /***/ 214:
707
728
  /***/ (function(module, exports, __webpack_require__) {
708
729
 
709
730
  "use strict";
@@ -733,9 +754,9 @@ Object.defineProperty(exports, "__esModule", {
733
754
  });
734
755
  exports.default = void 0;
735
756
 
736
- __exportStar(__webpack_require__(135), exports);
757
+ __exportStar(__webpack_require__(149), exports);
737
758
 
738
- var Image_1 = __webpack_require__(135);
759
+ var Image_1 = __webpack_require__(149);
739
760
 
740
761
  Object.defineProperty(exports, "default", {
741
762
  enumerable: true,
@@ -746,7 +767,7 @@ Object.defineProperty(exports, "default", {
746
767
 
747
768
  /***/ }),
748
769
 
749
- /***/ 197:
770
+ /***/ 215:
750
771
  /***/ (function(module, exports, __webpack_require__) {
751
772
 
752
773
  "use strict";
@@ -758,13 +779,13 @@ Object.defineProperty(exports, "__esModule", {
758
779
 
759
780
  var i18n_1 = __webpack_require__(2);
760
781
 
761
- var visualization_icons_1 = __webpack_require__(47);
782
+ var visualization_icons_1 = __webpack_require__(51);
762
783
 
763
784
  var VizBehavior_1 = __webpack_require__(6);
764
785
 
765
- var VizCategory_1 = __webpack_require__(31);
786
+ var VizCategory_1 = __webpack_require__(35);
766
787
 
767
- var configUtils_1 = __webpack_require__(17);
788
+ var configUtils_1 = __webpack_require__(19);
768
789
 
769
790
  var dataContract = {
770
791
  requiredDataSources: [],
@@ -802,7 +823,6 @@ var editorConfig = [{
802
823
  label: i18n_1._('Preserve aspect ratio'),
803
824
  option: 'preserveAspectRatio',
804
825
  editor: 'editor.checkbox',
805
- editorProps: {},
806
826
  showEditor: function showEditor(_ref) {
807
827
  var options = _ref.options;
808
828
  return !!options.src;
@@ -847,7 +867,7 @@ exports.default = configUtils_1.enhanceConfig(config);
847
867
 
848
868
  /***/ }),
849
869
 
850
- /***/ 198:
870
+ /***/ 216:
851
871
  /***/ (function(module, exports, __webpack_require__) {
852
872
 
853
873
  "use strict";
@@ -855,7 +875,7 @@ exports.default = configUtils_1.enhanceConfig(config);
855
875
 
856
876
  var _classCallCheck = __webpack_require__(11);
857
877
 
858
- var _createClass = __webpack_require__(19);
878
+ var _createClass = __webpack_require__(22);
859
879
 
860
880
  Object.defineProperty(exports, "__esModule", {
861
881
  value: true
@@ -863,7 +883,7 @@ Object.defineProperty(exports, "__esModule", {
863
883
 
864
884
  var lodash_1 = __webpack_require__(3);
865
885
 
866
- var RemoteImage_1 = __webpack_require__(136);
886
+ var RemoteImage_1 = __webpack_require__(150);
867
887
  /**
868
888
  * Image Api
869
889
  */
@@ -908,42 +928,49 @@ exports.default = ImageApi;
908
928
 
909
929
  /***/ }),
910
930
 
911
- /***/ 2:
931
+ /***/ 22:
912
932
  /***/ (function(module, exports) {
913
933
 
914
- module.exports = require("@splunk/ui-utils/i18n");
934
+ module.exports = require("@babel/runtime/helpers/createClass");
915
935
 
916
936
  /***/ }),
917
937
 
918
- /***/ 20:
938
+ /***/ 25:
919
939
  /***/ (function(module, exports) {
920
940
 
921
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
941
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
922
942
 
923
943
  /***/ }),
924
944
 
925
- /***/ 23:
945
+ /***/ 26:
926
946
  /***/ (function(module, exports) {
927
947
 
928
- module.exports = require("@splunk/visualization-context/TimezoneContext");
948
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
929
949
 
930
950
  /***/ }),
931
951
 
932
- /***/ 25:
952
+ /***/ 27:
933
953
  /***/ (function(module, exports) {
934
954
 
935
- module.exports = require("@splunk/visualizations-shared/hocUtils");
955
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
936
956
 
937
957
  /***/ }),
938
958
 
939
- /***/ 26:
959
+ /***/ 29:
940
960
  /***/ (function(module, exports) {
941
961
 
942
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
962
+ module.exports = require("@splunk/visualization-encoding/Options");
943
963
 
944
964
  /***/ }),
945
965
 
946
- /***/ 27:
966
+ /***/ 3:
967
+ /***/ (function(module, exports) {
968
+
969
+ module.exports = require("lodash");
970
+
971
+ /***/ }),
972
+
973
+ /***/ 31:
947
974
  /***/ (function(module, exports, __webpack_require__) {
948
975
 
949
976
  "use strict";
@@ -954,15 +981,15 @@ Object.defineProperty(exports, "__esModule", {
954
981
  });
955
982
  exports.shouldShowIconPlaceholder = void 0;
956
983
 
957
- var React = __webpack_require__(1);
984
+ var React = __webpack_require__(0);
958
985
 
959
- var T = __webpack_require__(0);
986
+ var T = __webpack_require__(1);
960
987
 
961
988
  var lodash_1 = __webpack_require__(3);
962
989
 
963
990
  var i18n_1 = __webpack_require__(2);
964
991
 
965
- var Message_1 = __webpack_require__(10);
992
+ var Message_1 = __webpack_require__(9);
966
993
 
967
994
  var FixedSizeContainer_1 = __webpack_require__(13);
968
995
  /**
@@ -1035,24 +1062,31 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1035
1062
 
1036
1063
  /***/ }),
1037
1064
 
1038
- /***/ 28:
1065
+ /***/ 32:
1066
+ /***/ (function(module, exports) {
1067
+
1068
+ module.exports = require("@splunk/ui-utils/id");
1069
+
1070
+ /***/ }),
1071
+
1072
+ /***/ 33:
1039
1073
  /***/ (function(module, exports, __webpack_require__) {
1040
1074
 
1041
1075
  "use strict";
1042
1076
 
1043
1077
 
1044
- var _defineProperty = __webpack_require__(7);
1078
+ var _defineProperty = __webpack_require__(8);
1045
1079
 
1046
1080
  Object.defineProperty(exports, "__esModule", {
1047
1081
  value: true
1048
1082
  });
1049
1083
  exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1050
1084
 
1051
- var T = __webpack_require__(0);
1085
+ var T = __webpack_require__(1);
1052
1086
 
1053
1087
  var lodash_1 = __webpack_require__(3);
1054
1088
 
1055
- var DataSource_1 = __webpack_require__(39);
1089
+ var DataSource_1 = __webpack_require__(43);
1056
1090
 
1057
1091
  exports.SortParamsPropTypes = T.shape({
1058
1092
  currentSortKey: T.string,
@@ -1072,7 +1106,7 @@ var getSortingParams = function getSortingParams(_ref) {
1072
1106
  };
1073
1107
  var onSort;
1074
1108
 
1075
- if (lodash_1.isFunction(onRequestParamsChange)) {
1109
+ if (typeof onRequestParamsChange === 'function') {
1076
1110
  if (requestParams && lodash_1.has(requestParams, 'sort')) {
1077
1111
  currentSortKey = Object.keys(requestParams.sort).shift();
1078
1112
  currentSortDir = requestParams.sort[currentSortKey];
@@ -1106,7 +1140,7 @@ exports.getSortingParams = getSortingParams;
1106
1140
 
1107
1141
  /***/ }),
1108
1142
 
1109
- /***/ 29:
1143
+ /***/ 34:
1110
1144
  /***/ (function(module, exports, __webpack_require__) {
1111
1145
 
1112
1146
  "use strict";
@@ -1117,7 +1151,7 @@ Object.defineProperty(exports, "__esModule", {
1117
1151
  });
1118
1152
  exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1119
1153
 
1120
- var T = __webpack_require__(0);
1154
+ var T = __webpack_require__(1);
1121
1155
 
1122
1156
  var lodash_1 = __webpack_require__(3);
1123
1157
 
@@ -1137,7 +1171,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1137
1171
  var count = requestParams && requestParams.count;
1138
1172
  var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
1139
1173
  var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
1140
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
1174
+ var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
1141
1175
 
1142
1176
  var onChangeHandler = function onChangeHandler(e, _ref2) {
1143
1177
  var page = _ref2.page,
@@ -1163,7 +1197,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1163
1197
  isPaging: isPaging,
1164
1198
  current: current,
1165
1199
  totalPages: totalPages,
1166
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
1200
+ onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
1167
1201
  };
1168
1202
  };
1169
1203
 
@@ -1171,14 +1205,7 @@ exports.getPaginationParams = getPaginationParams;
1171
1205
 
1172
1206
  /***/ }),
1173
1207
 
1174
- /***/ 3:
1175
- /***/ (function(module, exports) {
1176
-
1177
- module.exports = require("lodash");
1178
-
1179
- /***/ }),
1180
-
1181
- /***/ 31:
1208
+ /***/ 35:
1182
1209
  /***/ (function(module, exports, __webpack_require__) {
1183
1210
 
1184
1211
  "use strict";
@@ -1207,58 +1234,67 @@ var VizCategory;
1207
1234
 
1208
1235
  /***/ }),
1209
1236
 
1210
- /***/ 32:
1237
+ /***/ 36:
1211
1238
  /***/ (function(module, exports, __webpack_require__) {
1212
1239
 
1213
1240
  "use strict";
1214
1241
 
1215
1242
 
1243
+ var _slicedToArray = __webpack_require__(17);
1244
+
1216
1245
  Object.defineProperty(exports, "__esModule", {
1217
1246
  value: true
1218
1247
  });
1219
1248
 
1220
- var React = __webpack_require__(1);
1249
+ var React = __webpack_require__(0);
1221
1250
 
1222
1251
  var lodash_1 = __webpack_require__(3);
1223
1252
 
1224
- var getSettingsFromThemedProps_1 = __webpack_require__(33);
1253
+ var getSettingsFromThemedProps_1 = __webpack_require__(37);
1254
+
1255
+ var Options_1 = __webpack_require__(29);
1225
1256
 
1226
- var Options_1 = __webpack_require__(34);
1257
+ var SanitizeProps_1 = __webpack_require__(38);
1227
1258
 
1228
- var SanitizeProps_1 = __webpack_require__(35);
1259
+ var TimezoneContext_1 = __webpack_require__(25);
1229
1260
 
1230
- var TimezoneContext_1 = __webpack_require__(23);
1261
+ var moment_1 = __webpack_require__(39);
1231
1262
 
1232
- var moment_1 = __webpack_require__(36);
1263
+ var FeatureFlagContext_1 = __webpack_require__(20);
1233
1264
 
1234
1265
  var styled_components_1 = __webpack_require__(4);
1235
1266
 
1236
- var hocUtils_1 = __webpack_require__(25);
1267
+ var hocUtils_1 = __webpack_require__(26);
1268
+
1269
+ var JSONSchemaUtils_1 = __webpack_require__(27);
1237
1270
 
1238
- var JSONSchemaUtils_1 = __webpack_require__(26);
1271
+ var async_dynamic_options_evaluator_1 = __webpack_require__(40);
1239
1272
 
1240
- var SplunkVisualization_1 = __webpack_require__(37);
1273
+ var id_1 = __webpack_require__(32);
1274
+
1275
+ var SplunkVisualization_1 = __webpack_require__(41);
1241
1276
 
1242
1277
  var VizBehavior_1 = __webpack_require__(6);
1243
1278
 
1244
- var getSorting_1 = __webpack_require__(28);
1279
+ var getSorting_1 = __webpack_require__(33);
1280
+
1281
+ var getPagination_1 = __webpack_require__(34);
1245
1282
 
1246
- var getPagination_1 = __webpack_require__(29);
1283
+ var useDeepMemo_1 = __webpack_require__(44);
1247
1284
 
1248
- var useDeepMemo_1 = __webpack_require__(40);
1285
+ var MissingPropsMessage_1 = __webpack_require__(45);
1249
1286
 
1250
- var MissingPropsMessage_1 = __webpack_require__(41);
1287
+ var withEditModeCover_1 = __webpack_require__(46);
1251
1288
 
1252
- var withEditModeCover_1 = __webpack_require__(42);
1289
+ var withPlaceholder_1 = __webpack_require__(47);
1253
1290
 
1254
- var withPlaceholder_1 = __webpack_require__(43);
1291
+ var UUID = id_1.createGUID();
1255
1292
  /**
1256
1293
  * hoc that wraps a pure react visualization in a Dashboard visualization
1257
1294
  * @param {DashboardVizOpts} opts
1258
1295
  * @returns {HOC}
1259
1296
  */
1260
1297
 
1261
-
1262
1298
  var withDashboardViz = function withDashboardViz(opts) {
1263
1299
  var ReactViz = opts.ReactViz,
1264
1300
  vizConfig = opts.vizConfig,
@@ -1271,6 +1307,8 @@ var withDashboardViz = function withDashboardViz(opts) {
1271
1307
  var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
1272
1308
 
1273
1309
  var DashboardViz = function DashboardViz(props) {
1310
+ var _a;
1311
+
1274
1312
  var mode = props.mode,
1275
1313
  hasEventHandlers = props.hasEventHandlers,
1276
1314
  dataSources = props.dataSources,
@@ -1318,38 +1356,97 @@ var withDashboardViz = function withDashboardViz(opts) {
1318
1356
 
1319
1357
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
1320
1358
 
1359
+ var _React$useState = React.useState({}),
1360
+ _React$useState2 = _slicedToArray(_React$useState, 2),
1361
+ evaluatedOptionsAsync = _React$useState2[0],
1362
+ setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1363
+
1364
+
1365
+ var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
1366
+
1367
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
1368
+ _React$useState4 = _slicedToArray(_React$useState3, 1),
1369
+ visualizationID = _React$useState4[0];
1370
+
1371
+ var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
1372
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
1373
+ useAsyncEvaluatedOptions = _React$useState6[0],
1374
+ setUseAsyncEvaluatedOptions = _React$useState6[1];
1375
+
1321
1376
  evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
1322
1377
  try {
1323
- return Options_1.Options.evaluate({
1324
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1325
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1326
- }, dataSources, themeFunc);
1378
+ if (useAsyncEvaluatedOptions) {
1379
+ var optionsToEvaluate = {
1380
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1381
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1382
+ };
1383
+ var asyncDynamicOptionsEvaluatorParams = {
1384
+ visualizationID: visualizationID,
1385
+ props: props,
1386
+ options: optionsToEvaluate,
1387
+ dataSources: dataSources,
1388
+ theme: vizConfig.themes
1389
+ };
1390
+ async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
1391
+ setEvaluatedOptionsAsync(results.results);
1392
+ }).catch(function (e) {
1393
+ // eslint-disable-next-line no-console
1394
+ console.error("unexpected error evaluating options - async: ".concat(e.message));
1395
+ setUseAsyncEvaluatedOptions(false);
1396
+ });
1397
+ } else {
1398
+ return Options_1.Options.evaluate({
1399
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1400
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1401
+ }, dataSources, themeFunc);
1402
+ }
1327
1403
  } catch (e) {
1328
1404
  // eslint-disable-next-line no-console
1329
- console.error("unexpected error evaluating options: + ".concat(e.message));
1405
+ console.error("unexpected error evaluating options: ".concat(e.message));
1330
1406
  return {};
1331
1407
  }
1332
- }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
1408
+
1409
+ return {};
1410
+ }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
1411
+ var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
1412
+ // if trellis is enabled following these three criteria - 1) trellis feature flag is enabled 2) vizConfig supports array has 'trellis' 3) option 'splitByLayout' is set to 'trellis
1413
+ // onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
1414
+
1415
+ var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
1416
+ var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
1417
+
1418
+ if (isTrellisFeatureFlagOn && ((_a = vizConfig === null || vizConfig === void 0 ? void 0 : vizConfig.supports) === null || _a === void 0 ? void 0 : _a.includes(VizBehavior_1.VizBehavior.TRELLIS)) && (clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.splitByLayout) === VizBehavior_1.VizBehavior.TRELLIS) {
1419
+ clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
1420
+ } // useEffect hook needs to be initialized before any early returns
1333
1421
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
1334
1422
 
1423
+
1424
+ React.useEffect(function () {
1425
+ onComputedProps(clonedEvaluatedOptions);
1426
+ });
1335
1427
  React.useEffect(function () {
1336
- onComputedProps(evaluatedOptions);
1337
- }); // present warning message if any required props are missing
1428
+ return function () {
1429
+ if (useAsyncEvaluatedOptions) {
1430
+ async_dynamic_options_evaluator_1.default.reset(visualizationID);
1431
+ }
1432
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
1433
+ }, []); // present warning message if any required props are missing
1338
1434
 
1339
1435
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1340
1436
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1341
1437
  supports = vizConfig.supports;
1342
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptions);
1343
-
1344
- if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
1345
- return React.createElement(MissingPropsMessage_1.default, {
1346
- "data-test": "missing-props-message",
1347
- width: width,
1348
- height: height,
1349
- missingProps: missing,
1350
- backgroundColor: bgColorFromTheme
1351
- });
1352
- } // events
1438
+ var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1439
+
1440
+ if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && vizConfig.key !== 'splunk.singlevalue' // For SV missing props msg is not displayed if required props majorValue is missing, instead this will be handled from the component, instead handled within component
1441
+ ) {
1442
+ return React.createElement(MissingPropsMessage_1.default, {
1443
+ "data-test": "missing-props-message",
1444
+ width: width,
1445
+ height: height,
1446
+ missingProps: missing,
1447
+ backgroundColor: bgColorFromTheme
1448
+ });
1449
+ } // events
1353
1450
 
1354
1451
 
1355
1452
  var eventCallbackProps = {};
@@ -1366,7 +1463,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1366
1463
 
1367
1464
  if (Array.isArray(payloadKeys) && payloadKeys.length) {
1368
1465
  payloadKeys.forEach(function (p) {
1369
- payload[p] = evaluatedOptions[p];
1466
+ payload[p] = evaluatedOptionsToUse[p];
1370
1467
  });
1371
1468
  }
1372
1469
 
@@ -1385,7 +1482,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1385
1482
  } // compute pure viz props which are not from options
1386
1483
 
1387
1484
 
1388
- var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptions), eventCallbackProps), {
1485
+ var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
1389
1486
  themeFunc: themeFunc
1390
1487
  }));
1391
1488
  /**
@@ -1405,7 +1502,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1405
1502
 
1406
1503
  var dataSourceMetadata = {};
1407
1504
  var OptionKey = 'paginateDataSourceKey';
1408
- var paginateDataSourceKey = lodash_1.has(evaluatedOptions, OptionKey) && evaluatedOptions[OptionKey] || 'primary';
1505
+ var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1409
1506
 
1410
1507
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1411
1508
  var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
@@ -1435,7 +1532,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1435
1532
  mode: mode,
1436
1533
  width: width,
1437
1534
  height: height
1438
- }, evaluatedOptions, computedVizProps, eventCallbackProps, dataSourceMetadata));
1535
+ }, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
1439
1536
  };
1440
1537
 
1441
1538
  DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
@@ -1453,35 +1550,42 @@ exports.default = withDashboardViz;
1453
1550
 
1454
1551
  /***/ }),
1455
1552
 
1456
- /***/ 33:
1553
+ /***/ 37:
1457
1554
  /***/ (function(module, exports) {
1458
1555
 
1459
1556
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1460
1557
 
1461
1558
  /***/ }),
1462
1559
 
1463
- /***/ 34:
1560
+ /***/ 38:
1464
1561
  /***/ (function(module, exports) {
1465
1562
 
1466
- module.exports = require("@splunk/visualization-encoding/Options");
1563
+ module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1467
1564
 
1468
1565
  /***/ }),
1469
1566
 
1470
- /***/ 35:
1567
+ /***/ 39:
1471
1568
  /***/ (function(module, exports) {
1472
1569
 
1473
- module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1570
+ module.exports = require("@splunk/moment");
1474
1571
 
1475
1572
  /***/ }),
1476
1573
 
1477
- /***/ 36:
1574
+ /***/ 4:
1478
1575
  /***/ (function(module, exports) {
1479
1576
 
1480
- module.exports = require("@splunk/moment");
1577
+ module.exports = require("styled-components");
1481
1578
 
1482
1579
  /***/ }),
1483
1580
 
1484
- /***/ 37:
1581
+ /***/ 40:
1582
+ /***/ (function(module, exports) {
1583
+
1584
+ module.exports = require("@splunk/async-dynamic-options-evaluator");
1585
+
1586
+ /***/ }),
1587
+
1588
+ /***/ 41:
1485
1589
  /***/ (function(module, exports, __webpack_require__) {
1486
1590
 
1487
1591
  "use strict";
@@ -1495,11 +1599,11 @@ Object.defineProperty(exports, "__esModule", {
1495
1599
  exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
1496
1600
  /* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
1497
1601
 
1498
- var T = __webpack_require__(0);
1602
+ var T = __webpack_require__(1);
1499
1603
 
1500
1604
  var lodash_1 = __webpack_require__(3);
1501
1605
 
1502
- var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1606
+ var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1503
1607
 
1504
1608
 
1505
1609
  exports.INITIAL_WIDTH = 250;
@@ -1633,7 +1737,7 @@ exports.default = SplunkVisualization;
1633
1737
 
1634
1738
  /***/ }),
1635
1739
 
1636
- /***/ 38:
1740
+ /***/ 42:
1637
1741
  /***/ (function(module, exports, __webpack_require__) {
1638
1742
 
1639
1743
  "use strict";
@@ -1641,7 +1745,7 @@ exports.default = SplunkVisualization;
1641
1745
 
1642
1746
  var _classCallCheck = __webpack_require__(11);
1643
1747
 
1644
- var _createClass = __webpack_require__(19);
1748
+ var _createClass = __webpack_require__(22);
1645
1749
 
1646
1750
  Object.defineProperty(exports, "__esModule", {
1647
1751
  value: true
@@ -1671,7 +1775,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1671
1775
 
1672
1776
  /***/ }),
1673
1777
 
1674
- /***/ 39:
1778
+ /***/ 43:
1675
1779
  /***/ (function(module, exports, __webpack_require__) {
1676
1780
 
1677
1781
  "use strict";
@@ -1685,14 +1789,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1685
1789
 
1686
1790
  /***/ }),
1687
1791
 
1688
- /***/ 4:
1689
- /***/ (function(module, exports) {
1690
-
1691
- module.exports = require("styled-components");
1692
-
1693
- /***/ }),
1694
-
1695
- /***/ 40:
1792
+ /***/ 44:
1696
1793
  /***/ (function(module, exports, __webpack_require__) {
1697
1794
 
1698
1795
  "use strict";
@@ -1703,7 +1800,7 @@ Object.defineProperty(exports, "__esModule", {
1703
1800
  });
1704
1801
  exports.useDeepMemo = void 0;
1705
1802
 
1706
- var react_1 = __webpack_require__(1);
1803
+ var react_1 = __webpack_require__(0);
1707
1804
 
1708
1805
  var lodash_1 = __webpack_require__(3);
1709
1806
  /**
@@ -1738,7 +1835,7 @@ exports.useDeepMemo = useDeepMemo;
1738
1835
 
1739
1836
  /***/ }),
1740
1837
 
1741
- /***/ 41:
1838
+ /***/ 45:
1742
1839
  /***/ (function(module, exports, __webpack_require__) {
1743
1840
 
1744
1841
  "use strict";
@@ -1749,13 +1846,13 @@ Object.defineProperty(exports, "__esModule", {
1749
1846
  });
1750
1847
  exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
1751
1848
 
1752
- var React = __webpack_require__(1);
1849
+ var React = __webpack_require__(0);
1753
1850
 
1754
- var T = __webpack_require__(0);
1851
+ var T = __webpack_require__(1);
1755
1852
 
1756
1853
  var i18n_1 = __webpack_require__(2);
1757
1854
 
1758
- var Message_1 = __webpack_require__(10);
1855
+ var Message_1 = __webpack_require__(9);
1759
1856
 
1760
1857
  var FixedSizeContainer_1 = __webpack_require__(13);
1761
1858
  /**
@@ -1819,7 +1916,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1819
1916
 
1820
1917
  /***/ }),
1821
1918
 
1822
- /***/ 42:
1919
+ /***/ 46:
1823
1920
  /***/ (function(module, exports, __webpack_require__) {
1824
1921
 
1825
1922
  "use strict";
@@ -1829,18 +1926,18 @@ Object.defineProperty(exports, "__esModule", {
1829
1926
  value: true
1830
1927
  });
1831
1928
 
1832
- var React = __webpack_require__(1);
1929
+ var React = __webpack_require__(0);
1833
1930
 
1834
1931
  var styled_components_1 = __webpack_require__(4);
1835
1932
 
1836
- var hocUtils_1 = __webpack_require__(14);
1933
+ var hocUtils_1 = __webpack_require__(15);
1837
1934
 
1838
1935
  var Cover = styled_components_1.default.div.withConfig({
1839
1936
  displayName: "withEditModeCover__Cover",
1840
1937
  componentId: "sc-1gsbnxb-0"
1841
1938
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1842
1939
  var Blocker = styled_components_1.default.div.attrs({
1843
- 'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
1940
+ 'data-splunk-visualization-version': "25.7.0 - d10a7789b"
1844
1941
  }).withConfig({
1845
1942
  displayName: "withEditModeCover__Blocker",
1846
1943
  componentId: "sc-1gsbnxb-1"
@@ -1872,7 +1969,7 @@ exports.default = withEditModeCover;
1872
1969
 
1873
1970
  /***/ }),
1874
1971
 
1875
- /***/ 43:
1972
+ /***/ 47:
1876
1973
  /***/ (function(module, exports, __webpack_require__) {
1877
1974
 
1878
1975
  "use strict";
@@ -1882,17 +1979,17 @@ Object.defineProperty(exports, "__esModule", {
1882
1979
  value: true
1883
1980
  });
1884
1981
 
1885
- var React = __webpack_require__(1);
1982
+ var React = __webpack_require__(0);
1886
1983
 
1887
1984
  var colorUtils_1 = __webpack_require__(12);
1888
1985
 
1889
- var variables_1 = __webpack_require__(9);
1986
+ var variables_1 = __webpack_require__(10);
1890
1987
 
1891
- var IconPlaceholder_1 = __webpack_require__(27);
1988
+ var IconPlaceholder_1 = __webpack_require__(31);
1892
1989
 
1893
1990
  var VizBehavior_1 = __webpack_require__(6);
1894
1991
 
1895
- var hocUtils_1 = __webpack_require__(14);
1992
+ var hocUtils_1 = __webpack_require__(15);
1896
1993
 
1897
1994
  var withPlaceholder = function withPlaceholder(Visualization) {
1898
1995
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -1937,7 +2034,7 @@ exports.default = withPlaceholder;
1937
2034
 
1938
2035
  /***/ }),
1939
2036
 
1940
- /***/ 47:
2037
+ /***/ 51:
1941
2038
  /***/ (function(module, exports) {
1942
2039
 
1943
2040
  module.exports = require("@splunk/visualization-icons");
@@ -1978,6 +2075,7 @@ var VizBehavior;
1978
2075
 
1979
2076
  VizBehavior["PLACEHOLDER"] = "placeholder";
1980
2077
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
2078
+ VizBehavior["TRELLIS"] = "trellis";
1981
2079
  })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
1982
2080
 
1983
2081
  /***/ }),
@@ -1985,21 +2083,21 @@ var VizBehavior;
1985
2083
  /***/ 7:
1986
2084
  /***/ (function(module, exports) {
1987
2085
 
1988
- module.exports = require("@babel/runtime/helpers/defineProperty");
2086
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
1989
2087
 
1990
2088
  /***/ }),
1991
2089
 
1992
2090
  /***/ 8:
1993
2091
  /***/ (function(module, exports) {
1994
2092
 
1995
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
2093
+ module.exports = require("@babel/runtime/helpers/defineProperty");
1996
2094
 
1997
2095
  /***/ }),
1998
2096
 
1999
2097
  /***/ 9:
2000
2098
  /***/ (function(module, exports) {
2001
2099
 
2002
- module.exports = require("@splunk/themes/variables");
2100
+ module.exports = require("@splunk/visualizations-shared/Message");
2003
2101
 
2004
2102
  /***/ })
2005
2103