@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/MarkerGauge.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 = 407);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 423);
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
 
@@ -120,7 +120,14 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
120
120
 
121
121
  /***/ }),
122
122
 
123
- /***/ 112:
123
+ /***/ 12:
124
+ /***/ (function(module, exports) {
125
+
126
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
127
+
128
+ /***/ }),
129
+
130
+ /***/ 125:
124
131
  /***/ (function(module, exports, __webpack_require__) {
125
132
 
126
133
  "use strict";
@@ -185,18 +192,18 @@ exports.default = gauge;
185
192
 
186
193
  /***/ }),
187
194
 
188
- /***/ 113:
195
+ /***/ 126:
189
196
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
190
197
 
191
198
  "use strict";
192
199
  __webpack_require__.r(__webpack_exports__);
193
200
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "MajorTick", function() { return MajorTick; });
194
201
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionMajorTick", function() { return positionMajorTick; });
195
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48);
202
+ /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52);
196
203
  /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
197
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
204
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
198
205
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
199
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
206
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
200
207
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
201
208
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
202
209
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
@@ -440,18 +447,18 @@ MajorTicks.defaultProps = {
440
447
 
441
448
  /***/ }),
442
449
 
443
- /***/ 114:
450
+ /***/ 127:
444
451
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
445
452
 
446
453
  "use strict";
447
454
  __webpack_require__.r(__webpack_exports__);
448
455
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionValueMarkerRect", function() { return positionValueMarkerRect; });
449
456
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "positionLabel", function() { return positionLabel; });
450
- /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(48);
457
+ /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(52);
451
458
  /* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
452
- /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
459
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(0);
453
460
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
454
- /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(0);
461
+ /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(1);
455
462
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
456
463
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
457
464
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
@@ -642,13 +649,6 @@ ValueMarker.defaultProps = {
642
649
 
643
650
  /***/ }),
644
651
 
645
- /***/ 12:
646
- /***/ (function(module, exports) {
647
-
648
- module.exports = require("@splunk/visualizations-shared/colorUtils");
649
-
650
- /***/ }),
651
-
652
652
  /***/ 13:
653
653
  /***/ (function(module, exports, __webpack_require__) {
654
654
 
@@ -659,13 +659,13 @@ Object.defineProperty(exports, "__esModule", {
659
659
  value: true
660
660
  });
661
661
 
662
- var React = __webpack_require__(1);
662
+ var React = __webpack_require__(0);
663
663
 
664
664
  var styled_components_1 = __webpack_require__(4);
665
665
 
666
- var SizeAwareWrapper_1 = __webpack_require__(20);
666
+ var SizeAwareWrapper_1 = __webpack_require__(18);
667
667
 
668
- var style_1 = __webpack_require__(15);
668
+ var style_1 = __webpack_require__(14);
669
669
 
670
670
  var colorUtils_1 = __webpack_require__(12);
671
671
 
@@ -724,7 +724,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
724
724
 
725
725
  return React.createElement(FixSizeItem, {
726
726
  "data-test": "fix-size-item",
727
- "data-splunk-visualization-version": "25.5.0 - 12c0447a7",
727
+ "data-splunk-visualization-version": "25.7.0 - d10a7789b",
728
728
  width: width,
729
729
  height: height,
730
730
  backgroundColor: backgroundColor
@@ -747,6 +747,13 @@ exports.default = withFixedSizeContainer;
747
747
  /***/ }),
748
748
 
749
749
  /***/ 14:
750
+ /***/ (function(module, exports) {
751
+
752
+ module.exports = require("@splunk/visualizations-shared/style");
753
+
754
+ /***/ }),
755
+
756
+ /***/ 15:
750
757
  /***/ (function(module, exports, __webpack_require__) {
751
758
 
752
759
  "use strict";
@@ -779,7 +786,7 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
779
786
 
780
787
  /***/ }),
781
788
 
782
- /***/ 145:
789
+ /***/ 158:
783
790
  /***/ (function(module, exports, __webpack_require__) {
784
791
 
785
792
  "use strict";
@@ -805,15 +812,15 @@ exports.config = exports.computeVizProps = exports.PureMarkerGauge = void 0;
805
812
 
806
813
  var lodash_1 = __webpack_require__(3);
807
814
 
808
- var MarkerGauge_1 = __webpack_require__(408);
815
+ var MarkerGauge_1 = __webpack_require__(424);
809
816
 
810
- var config_1 = __webpack_require__(410);
817
+ var config_1 = __webpack_require__(425);
811
818
 
812
819
  exports.config = config_1.default;
813
820
 
814
- var withDashboardViz_1 = __webpack_require__(32);
821
+ var withDashboardViz_1 = __webpack_require__(36);
815
822
 
816
- var gaugeUtils_1 = __webpack_require__(85);
823
+ var gaugeUtils_1 = __webpack_require__(92);
817
824
 
818
825
  exports.PureMarkerGauge = MarkerGauge_1.default;
819
826
  var validOptions = Object.keys(config_1.default.optionsSchema);
@@ -842,29 +849,36 @@ exports.default = viz;
842
849
 
843
850
  /***/ }),
844
851
 
845
- /***/ 15:
852
+ /***/ 16:
846
853
  /***/ (function(module, exports) {
847
854
 
848
- module.exports = require("@splunk/visualizations-shared/style");
855
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
849
856
 
850
857
  /***/ }),
851
858
 
852
- /***/ 16:
859
+ /***/ 17:
853
860
  /***/ (function(module, exports) {
854
861
 
855
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
862
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
856
863
 
857
864
  /***/ }),
858
865
 
859
- /***/ 17:
866
+ /***/ 18:
867
+ /***/ (function(module, exports) {
868
+
869
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
870
+
871
+ /***/ }),
872
+
873
+ /***/ 19:
860
874
  /***/ (function(module, exports, __webpack_require__) {
861
875
 
862
876
  "use strict";
863
877
 
864
878
 
865
- var _toConsumableArray = __webpack_require__(8);
879
+ var _toConsumableArray = __webpack_require__(7);
866
880
 
867
- var _defineProperty = __webpack_require__(7);
881
+ var _defineProperty = __webpack_require__(8);
868
882
 
869
883
  var __rest = this && this.__rest || function (s, e) {
870
884
  var t = {};
@@ -1093,56 +1107,77 @@ exports.insertLayout = insertLayout;
1093
1107
 
1094
1108
  /***/ }),
1095
1109
 
1096
- /***/ 19:
1110
+ /***/ 2:
1097
1111
  /***/ (function(module, exports) {
1098
1112
 
1099
- module.exports = require("@babel/runtime/helpers/createClass");
1113
+ module.exports = require("@splunk/ui-utils/i18n");
1100
1114
 
1101
1115
  /***/ }),
1102
1116
 
1103
- /***/ 2:
1117
+ /***/ 20:
1104
1118
  /***/ (function(module, exports) {
1105
1119
 
1106
- module.exports = require("@splunk/ui-utils/i18n");
1120
+ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
1107
1121
 
1108
1122
  /***/ }),
1109
1123
 
1110
- /***/ 20:
1124
+ /***/ 22:
1111
1125
  /***/ (function(module, exports) {
1112
1126
 
1113
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
1127
+ module.exports = require("@babel/runtime/helpers/createClass");
1114
1128
 
1115
1129
  /***/ }),
1116
1130
 
1117
- /***/ 21:
1131
+ /***/ 23:
1118
1132
  /***/ (function(module, exports) {
1119
1133
 
1120
1134
  module.exports = require("@splunk/themes/pick");
1121
1135
 
1122
1136
  /***/ }),
1123
1137
 
1124
- /***/ 23:
1138
+ /***/ 25:
1125
1139
  /***/ (function(module, exports) {
1126
1140
 
1127
1141
  module.exports = require("@splunk/visualization-context/TimezoneContext");
1128
1142
 
1129
1143
  /***/ }),
1130
1144
 
1131
- /***/ 25:
1145
+ /***/ 26:
1132
1146
  /***/ (function(module, exports) {
1133
1147
 
1134
1148
  module.exports = require("@splunk/visualizations-shared/hocUtils");
1135
1149
 
1136
1150
  /***/ }),
1137
1151
 
1138
- /***/ 26:
1152
+ /***/ 27:
1139
1153
  /***/ (function(module, exports) {
1140
1154
 
1141
1155
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1142
1156
 
1143
1157
  /***/ }),
1144
1158
 
1145
- /***/ 27:
1159
+ /***/ 29:
1160
+ /***/ (function(module, exports) {
1161
+
1162
+ module.exports = require("@splunk/visualization-encoding/Options");
1163
+
1164
+ /***/ }),
1165
+
1166
+ /***/ 3:
1167
+ /***/ (function(module, exports) {
1168
+
1169
+ module.exports = require("lodash");
1170
+
1171
+ /***/ }),
1172
+
1173
+ /***/ 30:
1174
+ /***/ (function(module, exports) {
1175
+
1176
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
1177
+
1178
+ /***/ }),
1179
+
1180
+ /***/ 31:
1146
1181
  /***/ (function(module, exports, __webpack_require__) {
1147
1182
 
1148
1183
  "use strict";
@@ -1153,15 +1188,15 @@ Object.defineProperty(exports, "__esModule", {
1153
1188
  });
1154
1189
  exports.shouldShowIconPlaceholder = void 0;
1155
1190
 
1156
- var React = __webpack_require__(1);
1191
+ var React = __webpack_require__(0);
1157
1192
 
1158
- var T = __webpack_require__(0);
1193
+ var T = __webpack_require__(1);
1159
1194
 
1160
1195
  var lodash_1 = __webpack_require__(3);
1161
1196
 
1162
1197
  var i18n_1 = __webpack_require__(2);
1163
1198
 
1164
- var Message_1 = __webpack_require__(10);
1199
+ var Message_1 = __webpack_require__(9);
1165
1200
 
1166
1201
  var FixedSizeContainer_1 = __webpack_require__(13);
1167
1202
  /**
@@ -1234,24 +1269,31 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1234
1269
 
1235
1270
  /***/ }),
1236
1271
 
1237
- /***/ 28:
1272
+ /***/ 32:
1273
+ /***/ (function(module, exports) {
1274
+
1275
+ module.exports = require("@splunk/ui-utils/id");
1276
+
1277
+ /***/ }),
1278
+
1279
+ /***/ 33:
1238
1280
  /***/ (function(module, exports, __webpack_require__) {
1239
1281
 
1240
1282
  "use strict";
1241
1283
 
1242
1284
 
1243
- var _defineProperty = __webpack_require__(7);
1285
+ var _defineProperty = __webpack_require__(8);
1244
1286
 
1245
1287
  Object.defineProperty(exports, "__esModule", {
1246
1288
  value: true
1247
1289
  });
1248
1290
  exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1249
1291
 
1250
- var T = __webpack_require__(0);
1292
+ var T = __webpack_require__(1);
1251
1293
 
1252
1294
  var lodash_1 = __webpack_require__(3);
1253
1295
 
1254
- var DataSource_1 = __webpack_require__(39);
1296
+ var DataSource_1 = __webpack_require__(43);
1255
1297
 
1256
1298
  exports.SortParamsPropTypes = T.shape({
1257
1299
  currentSortKey: T.string,
@@ -1271,7 +1313,7 @@ var getSortingParams = function getSortingParams(_ref) {
1271
1313
  };
1272
1314
  var onSort;
1273
1315
 
1274
- if (lodash_1.isFunction(onRequestParamsChange)) {
1316
+ if (typeof onRequestParamsChange === 'function') {
1275
1317
  if (requestParams && lodash_1.has(requestParams, 'sort')) {
1276
1318
  currentSortKey = Object.keys(requestParams.sort).shift();
1277
1319
  currentSortDir = requestParams.sort[currentSortKey];
@@ -1305,7 +1347,7 @@ exports.getSortingParams = getSortingParams;
1305
1347
 
1306
1348
  /***/ }),
1307
1349
 
1308
- /***/ 29:
1350
+ /***/ 34:
1309
1351
  /***/ (function(module, exports, __webpack_require__) {
1310
1352
 
1311
1353
  "use strict";
@@ -1316,7 +1358,7 @@ Object.defineProperty(exports, "__esModule", {
1316
1358
  });
1317
1359
  exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1318
1360
 
1319
- var T = __webpack_require__(0);
1361
+ var T = __webpack_require__(1);
1320
1362
 
1321
1363
  var lodash_1 = __webpack_require__(3);
1322
1364
 
@@ -1336,7 +1378,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1336
1378
  var count = requestParams && requestParams.count;
1337
1379
  var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
1338
1380
  var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
1339
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
1381
+ var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
1340
1382
 
1341
1383
  var onChangeHandler = function onChangeHandler(e, _ref2) {
1342
1384
  var page = _ref2.page,
@@ -1362,7 +1404,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1362
1404
  isPaging: isPaging,
1363
1405
  current: current,
1364
1406
  totalPages: totalPages,
1365
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
1407
+ onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
1366
1408
  };
1367
1409
  };
1368
1410
 
@@ -1370,21 +1412,7 @@ exports.getPaginationParams = getPaginationParams;
1370
1412
 
1371
1413
  /***/ }),
1372
1414
 
1373
- /***/ 3:
1374
- /***/ (function(module, exports) {
1375
-
1376
- module.exports = require("lodash");
1377
-
1378
- /***/ }),
1379
-
1380
- /***/ 30:
1381
- /***/ (function(module, exports) {
1382
-
1383
- module.exports = require("@splunk/visualizations-shared/numberUtils");
1384
-
1385
- /***/ }),
1386
-
1387
- /***/ 31:
1415
+ /***/ 35:
1388
1416
  /***/ (function(module, exports, __webpack_require__) {
1389
1417
 
1390
1418
  "use strict";
@@ -1413,58 +1441,67 @@ var VizCategory;
1413
1441
 
1414
1442
  /***/ }),
1415
1443
 
1416
- /***/ 32:
1444
+ /***/ 36:
1417
1445
  /***/ (function(module, exports, __webpack_require__) {
1418
1446
 
1419
1447
  "use strict";
1420
1448
 
1421
1449
 
1450
+ var _slicedToArray = __webpack_require__(17);
1451
+
1422
1452
  Object.defineProperty(exports, "__esModule", {
1423
1453
  value: true
1424
1454
  });
1425
1455
 
1426
- var React = __webpack_require__(1);
1456
+ var React = __webpack_require__(0);
1427
1457
 
1428
1458
  var lodash_1 = __webpack_require__(3);
1429
1459
 
1430
- var getSettingsFromThemedProps_1 = __webpack_require__(33);
1460
+ var getSettingsFromThemedProps_1 = __webpack_require__(37);
1461
+
1462
+ var Options_1 = __webpack_require__(29);
1431
1463
 
1432
- var Options_1 = __webpack_require__(34);
1464
+ var SanitizeProps_1 = __webpack_require__(38);
1433
1465
 
1434
- var SanitizeProps_1 = __webpack_require__(35);
1466
+ var TimezoneContext_1 = __webpack_require__(25);
1435
1467
 
1436
- var TimezoneContext_1 = __webpack_require__(23);
1468
+ var moment_1 = __webpack_require__(39);
1437
1469
 
1438
- var moment_1 = __webpack_require__(36);
1470
+ var FeatureFlagContext_1 = __webpack_require__(20);
1439
1471
 
1440
1472
  var styled_components_1 = __webpack_require__(4);
1441
1473
 
1442
- var hocUtils_1 = __webpack_require__(25);
1474
+ var hocUtils_1 = __webpack_require__(26);
1443
1475
 
1444
- var JSONSchemaUtils_1 = __webpack_require__(26);
1476
+ var JSONSchemaUtils_1 = __webpack_require__(27);
1445
1477
 
1446
- var SplunkVisualization_1 = __webpack_require__(37);
1478
+ var async_dynamic_options_evaluator_1 = __webpack_require__(40);
1479
+
1480
+ var id_1 = __webpack_require__(32);
1481
+
1482
+ var SplunkVisualization_1 = __webpack_require__(41);
1447
1483
 
1448
1484
  var VizBehavior_1 = __webpack_require__(6);
1449
1485
 
1450
- var getSorting_1 = __webpack_require__(28);
1486
+ var getSorting_1 = __webpack_require__(33);
1451
1487
 
1452
- var getPagination_1 = __webpack_require__(29);
1488
+ var getPagination_1 = __webpack_require__(34);
1453
1489
 
1454
- var useDeepMemo_1 = __webpack_require__(40);
1490
+ var useDeepMemo_1 = __webpack_require__(44);
1455
1491
 
1456
- var MissingPropsMessage_1 = __webpack_require__(41);
1492
+ var MissingPropsMessage_1 = __webpack_require__(45);
1457
1493
 
1458
- var withEditModeCover_1 = __webpack_require__(42);
1494
+ var withEditModeCover_1 = __webpack_require__(46);
1459
1495
 
1460
- var withPlaceholder_1 = __webpack_require__(43);
1496
+ var withPlaceholder_1 = __webpack_require__(47);
1497
+
1498
+ var UUID = id_1.createGUID();
1461
1499
  /**
1462
1500
  * hoc that wraps a pure react visualization in a Dashboard visualization
1463
1501
  * @param {DashboardVizOpts} opts
1464
1502
  * @returns {HOC}
1465
1503
  */
1466
1504
 
1467
-
1468
1505
  var withDashboardViz = function withDashboardViz(opts) {
1469
1506
  var ReactViz = opts.ReactViz,
1470
1507
  vizConfig = opts.vizConfig,
@@ -1477,6 +1514,8 @@ var withDashboardViz = function withDashboardViz(opts) {
1477
1514
  var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
1478
1515
 
1479
1516
  var DashboardViz = function DashboardViz(props) {
1517
+ var _a;
1518
+
1480
1519
  var mode = props.mode,
1481
1520
  hasEventHandlers = props.hasEventHandlers,
1482
1521
  dataSources = props.dataSources,
@@ -1524,38 +1563,97 @@ var withDashboardViz = function withDashboardViz(opts) {
1524
1563
 
1525
1564
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
1526
1565
 
1566
+ var _React$useState = React.useState({}),
1567
+ _React$useState2 = _slicedToArray(_React$useState, 2),
1568
+ evaluatedOptionsAsync = _React$useState2[0],
1569
+ setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1570
+
1571
+
1572
+ var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
1573
+
1574
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
1575
+ _React$useState4 = _slicedToArray(_React$useState3, 1),
1576
+ visualizationID = _React$useState4[0];
1577
+
1578
+ var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
1579
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
1580
+ useAsyncEvaluatedOptions = _React$useState6[0],
1581
+ setUseAsyncEvaluatedOptions = _React$useState6[1];
1582
+
1527
1583
  evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
1528
1584
  try {
1529
- return Options_1.Options.evaluate({
1530
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1531
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1532
- }, dataSources, themeFunc);
1585
+ if (useAsyncEvaluatedOptions) {
1586
+ var optionsToEvaluate = {
1587
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1588
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1589
+ };
1590
+ var asyncDynamicOptionsEvaluatorParams = {
1591
+ visualizationID: visualizationID,
1592
+ props: props,
1593
+ options: optionsToEvaluate,
1594
+ dataSources: dataSources,
1595
+ theme: vizConfig.themes
1596
+ };
1597
+ async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
1598
+ setEvaluatedOptionsAsync(results.results);
1599
+ }).catch(function (e) {
1600
+ // eslint-disable-next-line no-console
1601
+ console.error("unexpected error evaluating options - async: ".concat(e.message));
1602
+ setUseAsyncEvaluatedOptions(false);
1603
+ });
1604
+ } else {
1605
+ return Options_1.Options.evaluate({
1606
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1607
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1608
+ }, dataSources, themeFunc);
1609
+ }
1533
1610
  } catch (e) {
1534
1611
  // eslint-disable-next-line no-console
1535
- console.error("unexpected error evaluating options: + ".concat(e.message));
1612
+ console.error("unexpected error evaluating options: ".concat(e.message));
1536
1613
  return {};
1537
1614
  }
1538
- }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
1615
+
1616
+ return {};
1617
+ }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
1618
+ var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
1619
+ // 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
1620
+ // onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
1621
+
1622
+ var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
1623
+ var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
1624
+
1625
+ 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) {
1626
+ clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
1627
+ } // useEffect hook needs to be initialized before any early returns
1539
1628
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
1540
1629
 
1630
+
1631
+ React.useEffect(function () {
1632
+ onComputedProps(clonedEvaluatedOptions);
1633
+ });
1541
1634
  React.useEffect(function () {
1542
- onComputedProps(evaluatedOptions);
1543
- }); // present warning message if any required props are missing
1635
+ return function () {
1636
+ if (useAsyncEvaluatedOptions) {
1637
+ async_dynamic_options_evaluator_1.default.reset(visualizationID);
1638
+ }
1639
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
1640
+ }, []); // present warning message if any required props are missing
1544
1641
 
1545
1642
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1546
1643
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1547
1644
  supports = vizConfig.supports;
1548
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptions);
1549
-
1550
- if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
1551
- return React.createElement(MissingPropsMessage_1.default, {
1552
- "data-test": "missing-props-message",
1553
- width: width,
1554
- height: height,
1555
- missingProps: missing,
1556
- backgroundColor: bgColorFromTheme
1557
- });
1558
- } // events
1645
+ var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1646
+
1647
+ 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
1648
+ ) {
1649
+ return React.createElement(MissingPropsMessage_1.default, {
1650
+ "data-test": "missing-props-message",
1651
+ width: width,
1652
+ height: height,
1653
+ missingProps: missing,
1654
+ backgroundColor: bgColorFromTheme
1655
+ });
1656
+ } // events
1559
1657
 
1560
1658
 
1561
1659
  var eventCallbackProps = {};
@@ -1572,7 +1670,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1572
1670
 
1573
1671
  if (Array.isArray(payloadKeys) && payloadKeys.length) {
1574
1672
  payloadKeys.forEach(function (p) {
1575
- payload[p] = evaluatedOptions[p];
1673
+ payload[p] = evaluatedOptionsToUse[p];
1576
1674
  });
1577
1675
  }
1578
1676
 
@@ -1591,7 +1689,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1591
1689
  } // compute pure viz props which are not from options
1592
1690
 
1593
1691
 
1594
- var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptions), eventCallbackProps), {
1692
+ var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
1595
1693
  themeFunc: themeFunc
1596
1694
  }));
1597
1695
  /**
@@ -1611,7 +1709,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1611
1709
 
1612
1710
  var dataSourceMetadata = {};
1613
1711
  var OptionKey = 'paginateDataSourceKey';
1614
- var paginateDataSourceKey = lodash_1.has(evaluatedOptions, OptionKey) && evaluatedOptions[OptionKey] || 'primary';
1712
+ var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1615
1713
 
1616
1714
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1617
1715
  var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
@@ -1641,7 +1739,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1641
1739
  mode: mode,
1642
1740
  width: width,
1643
1741
  height: height
1644
- }, evaluatedOptions, computedVizProps, eventCallbackProps, dataSourceMetadata));
1742
+ }, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
1645
1743
  };
1646
1744
 
1647
1745
  DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
@@ -1659,35 +1757,42 @@ exports.default = withDashboardViz;
1659
1757
 
1660
1758
  /***/ }),
1661
1759
 
1662
- /***/ 33:
1760
+ /***/ 37:
1663
1761
  /***/ (function(module, exports) {
1664
1762
 
1665
1763
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1666
1764
 
1667
1765
  /***/ }),
1668
1766
 
1669
- /***/ 34:
1767
+ /***/ 38:
1670
1768
  /***/ (function(module, exports) {
1671
1769
 
1672
- module.exports = require("@splunk/visualization-encoding/Options");
1770
+ module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1673
1771
 
1674
1772
  /***/ }),
1675
1773
 
1676
- /***/ 35:
1774
+ /***/ 39:
1677
1775
  /***/ (function(module, exports) {
1678
1776
 
1679
- module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1777
+ module.exports = require("@splunk/moment");
1680
1778
 
1681
1779
  /***/ }),
1682
1780
 
1683
- /***/ 36:
1781
+ /***/ 4:
1684
1782
  /***/ (function(module, exports) {
1685
1783
 
1686
- module.exports = require("@splunk/moment");
1784
+ module.exports = require("styled-components");
1687
1785
 
1688
1786
  /***/ }),
1689
1787
 
1690
- /***/ 37:
1788
+ /***/ 40:
1789
+ /***/ (function(module, exports) {
1790
+
1791
+ module.exports = require("@splunk/async-dynamic-options-evaluator");
1792
+
1793
+ /***/ }),
1794
+
1795
+ /***/ 41:
1691
1796
  /***/ (function(module, exports, __webpack_require__) {
1692
1797
 
1693
1798
  "use strict";
@@ -1701,11 +1806,11 @@ Object.defineProperty(exports, "__esModule", {
1701
1806
  exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
1702
1807
  /* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
1703
1808
 
1704
- var T = __webpack_require__(0);
1809
+ var T = __webpack_require__(1);
1705
1810
 
1706
1811
  var lodash_1 = __webpack_require__(3);
1707
1812
 
1708
- var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1813
+ var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1709
1814
 
1710
1815
 
1711
1816
  exports.INITIAL_WIDTH = 250;
@@ -1839,7 +1944,7 @@ exports.default = SplunkVisualization;
1839
1944
 
1840
1945
  /***/ }),
1841
1946
 
1842
- /***/ 38:
1947
+ /***/ 42:
1843
1948
  /***/ (function(module, exports, __webpack_require__) {
1844
1949
 
1845
1950
  "use strict";
@@ -1847,7 +1952,7 @@ exports.default = SplunkVisualization;
1847
1952
 
1848
1953
  var _classCallCheck = __webpack_require__(11);
1849
1954
 
1850
- var _createClass = __webpack_require__(19);
1955
+ var _createClass = __webpack_require__(22);
1851
1956
 
1852
1957
  Object.defineProperty(exports, "__esModule", {
1853
1958
  value: true
@@ -1877,74 +1982,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1877
1982
 
1878
1983
  /***/ }),
1879
1984
 
1880
- /***/ 39:
1881
- /***/ (function(module, exports, __webpack_require__) {
1882
-
1883
- "use strict";
1884
-
1885
-
1886
- Object.defineProperty(exports, "__esModule", {
1887
- value: true
1888
- });
1889
- exports.validSortDirs = void 0;
1890
- exports.validSortDirs = ['asc', 'desc', 'none'];
1891
-
1892
- /***/ }),
1893
-
1894
- /***/ 4:
1895
- /***/ (function(module, exports) {
1896
-
1897
- module.exports = require("styled-components");
1898
-
1899
- /***/ }),
1900
-
1901
- /***/ 40:
1902
- /***/ (function(module, exports, __webpack_require__) {
1903
-
1904
- "use strict";
1905
-
1906
-
1907
- Object.defineProperty(exports, "__esModule", {
1908
- value: true
1909
- });
1910
- exports.useDeepMemo = void 0;
1911
-
1912
- var react_1 = __webpack_require__(1);
1913
-
1914
- var lodash_1 = __webpack_require__(3);
1915
- /**
1916
- * This hook evaluates and stores the result of a passed function and only
1917
- * re-evaluates the function when passed dependencies change.
1918
- *
1919
- * It is different from the internal React useMemo in the following aspects:
1920
- * - it only stores the last evaluated result
1921
- * - it uses a deep equality check to determine if dependencies have changed
1922
- *
1923
- * Inspired by apollo-client's useDeepMemo
1924
- *
1925
- * @param fn the function to be executed and
1926
- * @param dependencies an array of dependencies
1927
- */
1928
-
1929
-
1930
- var useDeepMemo = function useDeepMemo(fn, dependencies) {
1931
- var ref = react_1.useRef();
1932
-
1933
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1934
- ref.current = {
1935
- dependencies: dependencies,
1936
- value: fn()
1937
- };
1938
- }
1939
-
1940
- return ref.current.value;
1941
- };
1942
-
1943
- exports.useDeepMemo = useDeepMemo;
1944
-
1945
- /***/ }),
1946
-
1947
- /***/ 407:
1985
+ /***/ 423:
1948
1986
  /***/ (function(module, exports, __webpack_require__) {
1949
1987
 
1950
1988
  "use strict";
@@ -1974,9 +2012,9 @@ Object.defineProperty(exports, "__esModule", {
1974
2012
  });
1975
2013
  exports.default = void 0;
1976
2014
 
1977
- __exportStar(__webpack_require__(145), exports);
2015
+ __exportStar(__webpack_require__(158), exports);
1978
2016
 
1979
- var MarkerGauge_1 = __webpack_require__(145);
2017
+ var MarkerGauge_1 = __webpack_require__(158);
1980
2018
 
1981
2019
  Object.defineProperty(exports, "default", {
1982
2020
  enumerable: true,
@@ -1987,7 +2025,7 @@ Object.defineProperty(exports, "default", {
1987
2025
 
1988
2026
  /***/ }),
1989
2027
 
1990
- /***/ 408:
2028
+ /***/ 424:
1991
2029
  /***/ (function(module, exports, __webpack_require__) {
1992
2030
 
1993
2031
  "use strict";
@@ -2010,11 +2048,11 @@ Object.defineProperty(exports, "__esModule", {
2010
2048
  value: true
2011
2049
  });
2012
2050
 
2013
- var React = __webpack_require__(1);
2051
+ var React = __webpack_require__(0);
2014
2052
 
2015
- var react_1 = __webpack_require__(1);
2053
+ var react_1 = __webpack_require__(0);
2016
2054
 
2017
- var T = __webpack_require__(0);
2055
+ var T = __webpack_require__(1);
2018
2056
 
2019
2057
  var styled_components_1 = __webpack_require__(4);
2020
2058
 
@@ -2022,19 +2060,19 @@ var lodash_1 = __webpack_require__(3);
2022
2060
 
2023
2061
  var i18n_1 = __webpack_require__(2);
2024
2062
 
2025
- var style_1 = __webpack_require__(15);
2063
+ var style_1 = __webpack_require__(14);
2026
2064
 
2027
- var SizeAwareWrapper_1 = __webpack_require__(20);
2065
+ var SizeAwareWrapper_1 = __webpack_require__(18);
2028
2066
 
2029
- var Message_1 = __webpack_require__(10);
2067
+ var Message_1 = __webpack_require__(9);
2030
2068
 
2031
- var id_1 = __webpack_require__(409);
2069
+ var id_1 = __webpack_require__(32);
2032
2070
 
2033
- var gaugeUtils_1 = __webpack_require__(85);
2071
+ var gaugeUtils_1 = __webpack_require__(92);
2034
2072
 
2035
- var GaugeMajorTicks_1 = __webpack_require__(113);
2073
+ var GaugeMajorTicks_1 = __webpack_require__(126);
2036
2074
 
2037
- var GaugeValueMarker_1 = __webpack_require__(114);
2075
+ var GaugeValueMarker_1 = __webpack_require__(127);
2038
2076
 
2039
2077
  var MAX_VERTICAL_CONTAINER_WIDTH = 200;
2040
2078
  var MIN_VERTICAL_CONTAINER_HEIGHT = 200;
@@ -2358,14 +2396,7 @@ exports.default = MarkerGauge;
2358
2396
 
2359
2397
  /***/ }),
2360
2398
 
2361
- /***/ 409:
2362
- /***/ (function(module, exports) {
2363
-
2364
- module.exports = require("@splunk/ui-utils/id");
2365
-
2366
- /***/ }),
2367
-
2368
- /***/ 41:
2399
+ /***/ 425:
2369
2400
  /***/ (function(module, exports, __webpack_require__) {
2370
2401
 
2371
2402
  "use strict";
@@ -2374,109 +2405,28 @@ module.exports = require("@splunk/ui-utils/id");
2374
2405
  Object.defineProperty(exports, "__esModule", {
2375
2406
  value: true
2376
2407
  });
2377
- exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
2378
-
2379
- var React = __webpack_require__(1);
2380
-
2381
- var T = __webpack_require__(0);
2382
2408
 
2383
2409
  var i18n_1 = __webpack_require__(2);
2384
2410
 
2385
- var Message_1 = __webpack_require__(10);
2386
-
2387
- var FixedSizeContainer_1 = __webpack_require__(13);
2388
- /**
2389
- * @method isMissing
2390
- * @param {any} v
2391
- * @returns {boolean} true if the input value === null or undefined
2392
- */
2393
-
2394
-
2395
- var isMissing = function isMissing(v) {
2396
- return v === null || v === undefined;
2397
- };
2398
-
2399
- exports.isMissing = isMissing;
2400
- /**
2401
- * @method misskingKeys
2402
- * @param {string[]} keys
2403
- * @param {object} target
2404
- * @returns {string[]} the keys of missing required props
2405
- */
2406
-
2407
- var missingKeys = function missingKeys(keys, target) {
2408
- return keys.filter(function (k) {
2409
- return exports.isMissing(target[k]);
2410
- });
2411
- };
2412
-
2413
- exports.missingKeys = missingKeys;
2414
- var propTypes = {
2415
- width: T.oneOfType([T.string, T.number]),
2416
- height: T.oneOfType([T.string, T.number]),
2417
- // eslint-disable-next-line react/no-unused-prop-types
2418
- backgroundColor: T.string,
2419
- missingProps: T.arrayOf(T.string)
2420
- };
2421
- /**
2422
- * @method MissingPropsMessage
2423
- * @param {MissingPropsProps} props
2424
- * @returns {React.ReactElement}
2425
- */
2426
-
2427
- var MissingPropsMessage = function MissingPropsMessage(props) {
2428
- var width = props.width,
2429
- height = props.height,
2430
- missingProps = props.missingProps;
2431
- return React.createElement(Message_1.default, {
2432
- "data-test": "message",
2433
- width: width,
2434
- height: height,
2435
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
2436
- });
2437
- };
2438
-
2439
- exports.MissingPropsMessage = MissingPropsMessage;
2440
- exports.MissingPropsMessage.propTypes = propTypes;
2441
- exports.MissingPropsMessage.defaultProps = {
2442
- width: '100%',
2443
- height: 250
2444
- };
2445
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2446
-
2447
- /***/ }),
2448
-
2449
- /***/ 410:
2450
- /***/ (function(module, exports, __webpack_require__) {
2451
-
2452
- "use strict";
2411
+ var GaugeMarker_1 = __webpack_require__(426);
2453
2412
 
2454
-
2455
- Object.defineProperty(exports, "__esModule", {
2456
- value: true
2457
- });
2458
-
2459
- var i18n_1 = __webpack_require__(2);
2460
-
2461
- var GaugeMarker_1 = __webpack_require__(411);
2462
-
2463
- var placeholders_1 = __webpack_require__(44);
2413
+ var placeholders_1 = __webpack_require__(48);
2464
2414
 
2465
2415
  var schemaUtils_1 = __webpack_require__(16);
2466
2416
 
2467
- var variables_1 = __webpack_require__(9);
2417
+ var variables_1 = __webpack_require__(10);
2468
2418
 
2469
- var pick_1 = __webpack_require__(21);
2419
+ var pick_1 = __webpack_require__(23);
2470
2420
 
2471
- var Gauge_1 = __webpack_require__(112);
2421
+ var Gauge_1 = __webpack_require__(125);
2472
2422
 
2473
2423
  var VizBehavior_1 = __webpack_require__(6);
2474
2424
 
2475
- var VizCategory_1 = __webpack_require__(31);
2425
+ var VizCategory_1 = __webpack_require__(35);
2476
2426
 
2477
- var configUtils_1 = __webpack_require__(17);
2427
+ var configUtils_1 = __webpack_require__(19);
2478
2428
 
2479
- var BackgroundColor_1 = __webpack_require__(49);
2429
+ var BackgroundColor_1 = __webpack_require__(53);
2480
2430
 
2481
2431
  var dataContract = {
2482
2432
  requiredDataSources: [{
@@ -2697,14 +2647,155 @@ exports.default = configUtils_1.enhanceConfig(config);
2697
2647
 
2698
2648
  /***/ }),
2699
2649
 
2700
- /***/ 411:
2650
+ /***/ 426:
2701
2651
  /***/ (function(module, exports) {
2702
2652
 
2703
2653
  module.exports = require("@splunk/react-icons/GaugeMarker");
2704
2654
 
2705
2655
  /***/ }),
2706
2656
 
2707
- /***/ 42:
2657
+ /***/ 43:
2658
+ /***/ (function(module, exports, __webpack_require__) {
2659
+
2660
+ "use strict";
2661
+
2662
+
2663
+ Object.defineProperty(exports, "__esModule", {
2664
+ value: true
2665
+ });
2666
+ exports.validSortDirs = void 0;
2667
+ exports.validSortDirs = ['asc', 'desc', 'none'];
2668
+
2669
+ /***/ }),
2670
+
2671
+ /***/ 44:
2672
+ /***/ (function(module, exports, __webpack_require__) {
2673
+
2674
+ "use strict";
2675
+
2676
+
2677
+ Object.defineProperty(exports, "__esModule", {
2678
+ value: true
2679
+ });
2680
+ exports.useDeepMemo = void 0;
2681
+
2682
+ var react_1 = __webpack_require__(0);
2683
+
2684
+ var lodash_1 = __webpack_require__(3);
2685
+ /**
2686
+ * This hook evaluates and stores the result of a passed function and only
2687
+ * re-evaluates the function when passed dependencies change.
2688
+ *
2689
+ * It is different from the internal React useMemo in the following aspects:
2690
+ * - it only stores the last evaluated result
2691
+ * - it uses a deep equality check to determine if dependencies have changed
2692
+ *
2693
+ * Inspired by apollo-client's useDeepMemo
2694
+ *
2695
+ * @param fn the function to be executed and
2696
+ * @param dependencies an array of dependencies
2697
+ */
2698
+
2699
+
2700
+ var useDeepMemo = function useDeepMemo(fn, dependencies) {
2701
+ var ref = react_1.useRef();
2702
+
2703
+ if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
2704
+ ref.current = {
2705
+ dependencies: dependencies,
2706
+ value: fn()
2707
+ };
2708
+ }
2709
+
2710
+ return ref.current.value;
2711
+ };
2712
+
2713
+ exports.useDeepMemo = useDeepMemo;
2714
+
2715
+ /***/ }),
2716
+
2717
+ /***/ 45:
2718
+ /***/ (function(module, exports, __webpack_require__) {
2719
+
2720
+ "use strict";
2721
+
2722
+
2723
+ Object.defineProperty(exports, "__esModule", {
2724
+ value: true
2725
+ });
2726
+ exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
2727
+
2728
+ var React = __webpack_require__(0);
2729
+
2730
+ var T = __webpack_require__(1);
2731
+
2732
+ var i18n_1 = __webpack_require__(2);
2733
+
2734
+ var Message_1 = __webpack_require__(9);
2735
+
2736
+ var FixedSizeContainer_1 = __webpack_require__(13);
2737
+ /**
2738
+ * @method isMissing
2739
+ * @param {any} v
2740
+ * @returns {boolean} true if the input value === null or undefined
2741
+ */
2742
+
2743
+
2744
+ var isMissing = function isMissing(v) {
2745
+ return v === null || v === undefined;
2746
+ };
2747
+
2748
+ exports.isMissing = isMissing;
2749
+ /**
2750
+ * @method misskingKeys
2751
+ * @param {string[]} keys
2752
+ * @param {object} target
2753
+ * @returns {string[]} the keys of missing required props
2754
+ */
2755
+
2756
+ var missingKeys = function missingKeys(keys, target) {
2757
+ return keys.filter(function (k) {
2758
+ return exports.isMissing(target[k]);
2759
+ });
2760
+ };
2761
+
2762
+ exports.missingKeys = missingKeys;
2763
+ var propTypes = {
2764
+ width: T.oneOfType([T.string, T.number]),
2765
+ height: T.oneOfType([T.string, T.number]),
2766
+ // eslint-disable-next-line react/no-unused-prop-types
2767
+ backgroundColor: T.string,
2768
+ missingProps: T.arrayOf(T.string)
2769
+ };
2770
+ /**
2771
+ * @method MissingPropsMessage
2772
+ * @param {MissingPropsProps} props
2773
+ * @returns {React.ReactElement}
2774
+ */
2775
+
2776
+ var MissingPropsMessage = function MissingPropsMessage(props) {
2777
+ var width = props.width,
2778
+ height = props.height,
2779
+ missingProps = props.missingProps;
2780
+ return React.createElement(Message_1.default, {
2781
+ "data-test": "message",
2782
+ width: width,
2783
+ height: height,
2784
+ message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
2785
+ });
2786
+ };
2787
+
2788
+ exports.MissingPropsMessage = MissingPropsMessage;
2789
+ exports.MissingPropsMessage.propTypes = propTypes;
2790
+ exports.MissingPropsMessage.defaultProps = {
2791
+ width: '100%',
2792
+ height: 250
2793
+ };
2794
+ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2795
+
2796
+ /***/ }),
2797
+
2798
+ /***/ 46:
2708
2799
  /***/ (function(module, exports, __webpack_require__) {
2709
2800
 
2710
2801
  "use strict";
@@ -2714,18 +2805,18 @@ Object.defineProperty(exports, "__esModule", {
2714
2805
  value: true
2715
2806
  });
2716
2807
 
2717
- var React = __webpack_require__(1);
2808
+ var React = __webpack_require__(0);
2718
2809
 
2719
2810
  var styled_components_1 = __webpack_require__(4);
2720
2811
 
2721
- var hocUtils_1 = __webpack_require__(14);
2812
+ var hocUtils_1 = __webpack_require__(15);
2722
2813
 
2723
2814
  var Cover = styled_components_1.default.div.withConfig({
2724
2815
  displayName: "withEditModeCover__Cover",
2725
2816
  componentId: "sc-1gsbnxb-0"
2726
2817
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
2727
2818
  var Blocker = styled_components_1.default.div.attrs({
2728
- 'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
2819
+ 'data-splunk-visualization-version': "25.7.0 - d10a7789b"
2729
2820
  }).withConfig({
2730
2821
  displayName: "withEditModeCover__Blocker",
2731
2822
  componentId: "sc-1gsbnxb-1"
@@ -2757,7 +2848,7 @@ exports.default = withEditModeCover;
2757
2848
 
2758
2849
  /***/ }),
2759
2850
 
2760
- /***/ 43:
2851
+ /***/ 47:
2761
2852
  /***/ (function(module, exports, __webpack_require__) {
2762
2853
 
2763
2854
  "use strict";
@@ -2767,17 +2858,17 @@ Object.defineProperty(exports, "__esModule", {
2767
2858
  value: true
2768
2859
  });
2769
2860
 
2770
- var React = __webpack_require__(1);
2861
+ var React = __webpack_require__(0);
2771
2862
 
2772
2863
  var colorUtils_1 = __webpack_require__(12);
2773
2864
 
2774
- var variables_1 = __webpack_require__(9);
2865
+ var variables_1 = __webpack_require__(10);
2775
2866
 
2776
- var IconPlaceholder_1 = __webpack_require__(27);
2867
+ var IconPlaceholder_1 = __webpack_require__(31);
2777
2868
 
2778
2869
  var VizBehavior_1 = __webpack_require__(6);
2779
2870
 
2780
- var hocUtils_1 = __webpack_require__(14);
2871
+ var hocUtils_1 = __webpack_require__(15);
2781
2872
 
2782
2873
  var withPlaceholder = function withPlaceholder(Visualization) {
2783
2874
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -2822,28 +2913,28 @@ exports.default = withPlaceholder;
2822
2913
 
2823
2914
  /***/ }),
2824
2915
 
2825
- /***/ 44:
2916
+ /***/ 48:
2826
2917
  /***/ (function(module, exports) {
2827
2918
 
2828
2919
  module.exports = require("@splunk/visualization-icons/placeholders");
2829
2920
 
2830
2921
  /***/ }),
2831
2922
 
2832
- /***/ 45:
2923
+ /***/ 49:
2833
2924
  /***/ (function(module, exports) {
2834
2925
 
2835
2926
  module.exports = require("@splunk/visualizations-shared/colorConstants");
2836
2927
 
2837
2928
  /***/ }),
2838
2929
 
2839
- /***/ 48:
2930
+ /***/ 52:
2840
2931
  /***/ (function(module, exports) {
2841
2932
 
2842
2933
  module.exports = require("@babel/runtime/helpers/extends");
2843
2934
 
2844
2935
  /***/ }),
2845
2936
 
2846
- /***/ 49:
2937
+ /***/ 53:
2847
2938
  /***/ (function(module, exports, __webpack_require__) {
2848
2939
 
2849
2940
  "use strict";
@@ -2908,6 +2999,7 @@ var VizBehavior;
2908
2999
 
2909
3000
  VizBehavior["PLACEHOLDER"] = "placeholder";
2910
3001
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
3002
+ VizBehavior["TRELLIS"] = "trellis";
2911
3003
  })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
2912
3004
 
2913
3005
  /***/ }),
@@ -2915,24 +3007,31 @@ var VizBehavior;
2915
3007
  /***/ 7:
2916
3008
  /***/ (function(module, exports) {
2917
3009
 
2918
- module.exports = require("@babel/runtime/helpers/defineProperty");
3010
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
2919
3011
 
2920
3012
  /***/ }),
2921
3013
 
2922
3014
  /***/ 8:
2923
3015
  /***/ (function(module, exports) {
2924
3016
 
2925
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
3017
+ module.exports = require("@babel/runtime/helpers/defineProperty");
2926
3018
 
2927
3019
  /***/ }),
2928
3020
 
2929
- /***/ 85:
3021
+ /***/ 9:
3022
+ /***/ (function(module, exports) {
3023
+
3024
+ module.exports = require("@splunk/visualizations-shared/Message");
3025
+
3026
+ /***/ }),
3027
+
3028
+ /***/ 92:
2930
3029
  /***/ (function(module, exports, __webpack_require__) {
2931
3030
 
2932
3031
  "use strict";
2933
3032
 
2934
3033
 
2935
- var _toConsumableArray = __webpack_require__(8);
3034
+ var _toConsumableArray = __webpack_require__(7);
2936
3035
 
2937
3036
  Object.defineProperty(exports, "__esModule", {
2938
3037
  value: true
@@ -2941,7 +3040,7 @@ exports.convertToGaugeProperties = exports.mapValueLabelDisplay = exports.mapToO
2941
3040
 
2942
3041
  var lodash_1 = __webpack_require__(3);
2943
3042
 
2944
- var colorConstants_1 = __webpack_require__(45);
3043
+ var colorConstants_1 = __webpack_require__(49);
2945
3044
 
2946
3045
  var i18n_1 = __webpack_require__(2);
2947
3046
 
@@ -3693,13 +3792,6 @@ var convertToGaugeProperties = function convertToGaugeProperties(originalOptions
3693
3792
 
3694
3793
  exports.convertToGaugeProperties = convertToGaugeProperties;
3695
3794
 
3696
- /***/ }),
3697
-
3698
- /***/ 9:
3699
- /***/ (function(module, exports) {
3700
-
3701
- module.exports = require("@splunk/themes/variables");
3702
-
3703
3795
  /***/ })
3704
3796
 
3705
3797
  /******/ });