@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/Rectangle.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 = 436);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 451);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -95,25 +95,32 @@ 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
+
114
+ /***/ }),
115
+
116
+ /***/ 11:
117
+ /***/ (function(module, exports) {
118
+
119
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
113
120
 
114
121
  /***/ }),
115
122
 
116
- /***/ 104:
123
+ /***/ 113:
117
124
  /***/ (function(module, exports, __webpack_require__) {
118
125
 
119
126
  "use strict";
@@ -126,13 +133,13 @@ exports.getDynamicFillColorEditor = void 0;
126
133
 
127
134
  var i18n_1 = __webpack_require__(2);
128
135
 
129
- var configUtils_1 = __webpack_require__(18);
136
+ var configUtils_1 = __webpack_require__(21);
130
137
 
131
138
  var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
132
139
  var defaultContext = _ref.defaultContext,
133
140
  defaultPalettesConfig = _ref.defaultPalettesConfig;
134
141
  return {
135
- label: i18n_1._('Dynamic fill'),
142
+ label: i18n_1._('Fill'),
136
143
  option: 'fillColor',
137
144
  context: 'fillColorEditorConfig',
138
145
  editor: 'editor.dynamicColor',
@@ -141,7 +148,7 @@ var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
141
148
  return configUtils_1.isDynamicOption(options.fillColor);
142
149
  },
143
150
  editorProps: {
144
- labelPosition: 'left',
151
+ labelPosition: 'top',
145
152
  flyoutTitle: i18n_1._('Dynamic coloring: fill'),
146
153
  formatters: [{
147
154
  label: i18n_1._('Ranges'),
@@ -169,7 +176,7 @@ exports.getDynamicFillColorEditor = getDynamicFillColorEditor;
169
176
 
170
177
  /***/ }),
171
178
 
172
- /***/ 105:
179
+ /***/ 114:
173
180
  /***/ (function(module, exports, __webpack_require__) {
174
181
 
175
182
  "use strict";
@@ -182,13 +189,13 @@ exports.getDynamicStrokeColorEditor = void 0;
182
189
 
183
190
  var i18n_1 = __webpack_require__(2);
184
191
 
185
- var configUtils_1 = __webpack_require__(18);
192
+ var configUtils_1 = __webpack_require__(21);
186
193
 
187
194
  var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
188
195
  var defaultContext = _ref.defaultContext,
189
196
  defaultPalettesConfig = _ref.defaultPalettesConfig;
190
197
  return {
191
- label: i18n_1._('Dynamic stroke'),
198
+ label: i18n_1._('Stroke'),
192
199
  option: 'strokeColor',
193
200
  context: 'strokeColorEditorConfig',
194
201
  editor: 'editor.dynamicColor',
@@ -197,7 +204,7 @@ var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
197
204
  return configUtils_1.isDynamicOption(options.strokeColor);
198
205
  },
199
206
  editorProps: {
200
- labelPosition: 'left',
207
+ labelPosition: 'top',
201
208
  flyoutTitle: i18n_1._('Dynamic coloring: stroke'),
202
209
  formatters: [{
203
210
  label: i18n_1._('Ranges'),
@@ -225,7 +232,7 @@ exports.getDynamicStrokeColorEditor = getDynamicStrokeColorEditor;
225
232
 
226
233
  /***/ }),
227
234
 
228
- /***/ 106:
235
+ /***/ 115:
229
236
  /***/ (function(module, exports, __webpack_require__) {
230
237
 
231
238
  "use strict";
@@ -237,7 +244,7 @@ Object.defineProperty(exports, "__esModule", {
237
244
 
238
245
  var i18n_1 = __webpack_require__(2);
239
246
 
240
- var configUtils_1 = __webpack_require__(18);
247
+ var configUtils_1 = __webpack_require__(21);
241
248
 
242
249
  var StaticFillColorEditor = {
243
250
  label: i18n_1._('Fill'),
@@ -252,7 +259,7 @@ exports.default = StaticFillColorEditor;
252
259
 
253
260
  /***/ }),
254
261
 
255
- /***/ 107:
262
+ /***/ 116:
256
263
  /***/ (function(module, exports, __webpack_require__) {
257
264
 
258
265
  "use strict";
@@ -264,7 +271,7 @@ Object.defineProperty(exports, "__esModule", {
264
271
 
265
272
  var i18n_1 = __webpack_require__(2);
266
273
 
267
- var configUtils_1 = __webpack_require__(18);
274
+ var configUtils_1 = __webpack_require__(21);
268
275
 
269
276
  var StaticStrokeColorEditor = {
270
277
  label: i18n_1._('Stroke'),
@@ -279,7 +286,7 @@ exports.default = StaticStrokeColorEditor;
279
286
 
280
287
  /***/ }),
281
288
 
282
- /***/ 108:
289
+ /***/ 117:
283
290
  /***/ (function(module, exports, __webpack_require__) {
284
291
 
285
292
  "use strict";
@@ -294,11 +301,11 @@ var lodash_1 = __webpack_require__(3);
294
301
 
295
302
  var styled_components_1 = __webpack_require__(4);
296
303
 
297
- var pick_1 = __webpack_require__(21);
304
+ var pick_1 = __webpack_require__(23);
298
305
 
299
- var variables_1 = __webpack_require__(9);
306
+ var variables_1 = __webpack_require__(10);
300
307
 
301
- var propUtils_1 = __webpack_require__(24); // map for new options names to old option names
308
+ var propUtils_1 = __webpack_require__(28); // map for new options names to old option names
302
309
 
303
310
 
304
311
  var shapeOptionsMapping = {
@@ -356,13 +363,6 @@ exports.getStyledShape = getStyledShape;
356
363
 
357
364
  /***/ }),
358
365
 
359
- /***/ 11:
360
- /***/ (function(module, exports) {
361
-
362
- module.exports = require("@babel/runtime/helpers/classCallCheck");
363
-
364
- /***/ }),
365
-
366
366
  /***/ 12:
367
367
  /***/ (function(module, exports) {
368
368
 
@@ -380,13 +380,13 @@ Object.defineProperty(exports, "__esModule", {
380
380
  value: true
381
381
  });
382
382
 
383
- var React = __webpack_require__(1);
383
+ var React = __webpack_require__(0);
384
384
 
385
385
  var styled_components_1 = __webpack_require__(4);
386
386
 
387
- var SizeAwareWrapper_1 = __webpack_require__(20);
387
+ var SizeAwareWrapper_1 = __webpack_require__(18);
388
388
 
389
- var style_1 = __webpack_require__(15);
389
+ var style_1 = __webpack_require__(14);
390
390
 
391
391
  var colorUtils_1 = __webpack_require__(12);
392
392
 
@@ -445,7 +445,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
445
445
 
446
446
  return React.createElement(FixSizeItem, {
447
447
  "data-test": "fix-size-item",
448
- "data-splunk-visualization-version": "25.5.0 - 12c0447a7",
448
+ "data-splunk-visualization-version": "25.7.0 - d10a7789b",
449
449
  width: width,
450
450
  height: height,
451
451
  backgroundColor: backgroundColor
@@ -468,6 +468,13 @@ exports.default = withFixedSizeContainer;
468
468
  /***/ }),
469
469
 
470
470
  /***/ 14:
471
+ /***/ (function(module, exports) {
472
+
473
+ module.exports = require("@splunk/visualizations-shared/style");
474
+
475
+ /***/ }),
476
+
477
+ /***/ 15:
471
478
  /***/ (function(module, exports, __webpack_require__) {
472
479
 
473
480
  "use strict";
@@ -500,7 +507,14 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
500
507
 
501
508
  /***/ }),
502
509
 
503
- /***/ 148:
510
+ /***/ 16:
511
+ /***/ (function(module, exports) {
512
+
513
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
514
+
515
+ /***/ }),
516
+
517
+ /***/ 161:
504
518
  /***/ (function(module, exports, __webpack_require__) {
505
519
 
506
520
  "use strict";
@@ -524,21 +538,21 @@ Object.defineProperty(exports, "__esModule", {
524
538
  });
525
539
  exports.config = exports.computeVizProps = void 0;
526
540
 
527
- var React = __webpack_require__(1);
541
+ var React = __webpack_require__(0);
528
542
 
529
543
  var styled_components_1 = __webpack_require__(4);
530
544
 
531
545
  var lodash_1 = __webpack_require__(3);
532
546
 
533
- var T = __webpack_require__(0);
547
+ var T = __webpack_require__(1);
534
548
 
535
- var withDashboardViz_1 = __webpack_require__(32);
549
+ var withDashboardViz_1 = __webpack_require__(36);
536
550
 
537
- var config_1 = __webpack_require__(437);
551
+ var config_1 = __webpack_require__(452);
538
552
 
539
553
  exports.config = config_1.default;
540
554
 
541
- var shapeUtils_1 = __webpack_require__(108);
555
+ var shapeUtils_1 = __webpack_require__(117);
542
556
 
543
557
  var SVGContainer = styled_components_1.default.svg.withConfig({
544
558
  displayName: "Rectangle__SVGContainer",
@@ -612,29 +626,29 @@ exports.default = Rectangle;
612
626
 
613
627
  /***/ }),
614
628
 
615
- /***/ 15:
629
+ /***/ 17:
616
630
  /***/ (function(module, exports) {
617
631
 
618
- module.exports = require("@splunk/visualizations-shared/style");
632
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
619
633
 
620
634
  /***/ }),
621
635
 
622
- /***/ 16:
636
+ /***/ 18:
623
637
  /***/ (function(module, exports) {
624
638
 
625
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
639
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
626
640
 
627
641
  /***/ }),
628
642
 
629
- /***/ 17:
643
+ /***/ 19:
630
644
  /***/ (function(module, exports, __webpack_require__) {
631
645
 
632
646
  "use strict";
633
647
 
634
648
 
635
- var _toConsumableArray = __webpack_require__(8);
649
+ var _toConsumableArray = __webpack_require__(7);
636
650
 
637
- var _defineProperty = __webpack_require__(7);
651
+ var _defineProperty = __webpack_require__(8);
638
652
 
639
653
  var __rest = this && this.__rest || function (s, e) {
640
654
  var t = {};
@@ -863,70 +877,84 @@ exports.insertLayout = insertLayout;
863
877
 
864
878
  /***/ }),
865
879
 
866
- /***/ 18:
880
+ /***/ 2:
867
881
  /***/ (function(module, exports) {
868
882
 
869
- module.exports = require("@splunk/visualizations-shared/configUtils");
883
+ module.exports = require("@splunk/ui-utils/i18n");
870
884
 
871
885
  /***/ }),
872
886
 
873
- /***/ 19:
887
+ /***/ 20:
874
888
  /***/ (function(module, exports) {
875
889
 
876
- module.exports = require("@babel/runtime/helpers/createClass");
890
+ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
877
891
 
878
892
  /***/ }),
879
893
 
880
- /***/ 2:
894
+ /***/ 21:
881
895
  /***/ (function(module, exports) {
882
896
 
883
- module.exports = require("@splunk/ui-utils/i18n");
897
+ module.exports = require("@splunk/visualizations-shared/configUtils");
884
898
 
885
899
  /***/ }),
886
900
 
887
- /***/ 20:
901
+ /***/ 22:
888
902
  /***/ (function(module, exports) {
889
903
 
890
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
904
+ module.exports = require("@babel/runtime/helpers/createClass");
891
905
 
892
906
  /***/ }),
893
907
 
894
- /***/ 21:
908
+ /***/ 23:
895
909
  /***/ (function(module, exports) {
896
910
 
897
911
  module.exports = require("@splunk/themes/pick");
898
912
 
899
913
  /***/ }),
900
914
 
901
- /***/ 23:
915
+ /***/ 25:
902
916
  /***/ (function(module, exports) {
903
917
 
904
918
  module.exports = require("@splunk/visualization-context/TimezoneContext");
905
919
 
906
920
  /***/ }),
907
921
 
908
- /***/ 24:
922
+ /***/ 26:
923
+ /***/ (function(module, exports) {
924
+
925
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
926
+
927
+ /***/ }),
928
+
929
+ /***/ 27:
930
+ /***/ (function(module, exports) {
931
+
932
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
933
+
934
+ /***/ }),
935
+
936
+ /***/ 28:
909
937
  /***/ (function(module, exports) {
910
938
 
911
939
  module.exports = require("@splunk/visualizations-shared/propUtils");
912
940
 
913
941
  /***/ }),
914
942
 
915
- /***/ 25:
943
+ /***/ 29:
916
944
  /***/ (function(module, exports) {
917
945
 
918
- module.exports = require("@splunk/visualizations-shared/hocUtils");
946
+ module.exports = require("@splunk/visualization-encoding/Options");
919
947
 
920
948
  /***/ }),
921
949
 
922
- /***/ 26:
950
+ /***/ 3:
923
951
  /***/ (function(module, exports) {
924
952
 
925
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
953
+ module.exports = require("lodash");
926
954
 
927
955
  /***/ }),
928
956
 
929
- /***/ 27:
957
+ /***/ 31:
930
958
  /***/ (function(module, exports, __webpack_require__) {
931
959
 
932
960
  "use strict";
@@ -937,15 +965,15 @@ Object.defineProperty(exports, "__esModule", {
937
965
  });
938
966
  exports.shouldShowIconPlaceholder = void 0;
939
967
 
940
- var React = __webpack_require__(1);
968
+ var React = __webpack_require__(0);
941
969
 
942
- var T = __webpack_require__(0);
970
+ var T = __webpack_require__(1);
943
971
 
944
972
  var lodash_1 = __webpack_require__(3);
945
973
 
946
974
  var i18n_1 = __webpack_require__(2);
947
975
 
948
- var Message_1 = __webpack_require__(10);
976
+ var Message_1 = __webpack_require__(9);
949
977
 
950
978
  var FixedSizeContainer_1 = __webpack_require__(13);
951
979
  /**
@@ -1018,24 +1046,31 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1018
1046
 
1019
1047
  /***/ }),
1020
1048
 
1021
- /***/ 28:
1049
+ /***/ 32:
1050
+ /***/ (function(module, exports) {
1051
+
1052
+ module.exports = require("@splunk/ui-utils/id");
1053
+
1054
+ /***/ }),
1055
+
1056
+ /***/ 33:
1022
1057
  /***/ (function(module, exports, __webpack_require__) {
1023
1058
 
1024
1059
  "use strict";
1025
1060
 
1026
1061
 
1027
- var _defineProperty = __webpack_require__(7);
1062
+ var _defineProperty = __webpack_require__(8);
1028
1063
 
1029
1064
  Object.defineProperty(exports, "__esModule", {
1030
1065
  value: true
1031
1066
  });
1032
1067
  exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1033
1068
 
1034
- var T = __webpack_require__(0);
1069
+ var T = __webpack_require__(1);
1035
1070
 
1036
1071
  var lodash_1 = __webpack_require__(3);
1037
1072
 
1038
- var DataSource_1 = __webpack_require__(39);
1073
+ var DataSource_1 = __webpack_require__(43);
1039
1074
 
1040
1075
  exports.SortParamsPropTypes = T.shape({
1041
1076
  currentSortKey: T.string,
@@ -1055,7 +1090,7 @@ var getSortingParams = function getSortingParams(_ref) {
1055
1090
  };
1056
1091
  var onSort;
1057
1092
 
1058
- if (lodash_1.isFunction(onRequestParamsChange)) {
1093
+ if (typeof onRequestParamsChange === 'function') {
1059
1094
  if (requestParams && lodash_1.has(requestParams, 'sort')) {
1060
1095
  currentSortKey = Object.keys(requestParams.sort).shift();
1061
1096
  currentSortDir = requestParams.sort[currentSortKey];
@@ -1089,7 +1124,7 @@ exports.getSortingParams = getSortingParams;
1089
1124
 
1090
1125
  /***/ }),
1091
1126
 
1092
- /***/ 29:
1127
+ /***/ 34:
1093
1128
  /***/ (function(module, exports, __webpack_require__) {
1094
1129
 
1095
1130
  "use strict";
@@ -1100,7 +1135,7 @@ Object.defineProperty(exports, "__esModule", {
1100
1135
  });
1101
1136
  exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1102
1137
 
1103
- var T = __webpack_require__(0);
1138
+ var T = __webpack_require__(1);
1104
1139
 
1105
1140
  var lodash_1 = __webpack_require__(3);
1106
1141
 
@@ -1120,7 +1155,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1120
1155
  var count = requestParams && requestParams.count;
1121
1156
  var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
1122
1157
  var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
1123
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
1158
+ var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
1124
1159
 
1125
1160
  var onChangeHandler = function onChangeHandler(e, _ref2) {
1126
1161
  var page = _ref2.page,
@@ -1146,7 +1181,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
1146
1181
  isPaging: isPaging,
1147
1182
  current: current,
1148
1183
  totalPages: totalPages,
1149
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
1184
+ onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
1150
1185
  };
1151
1186
  };
1152
1187
 
@@ -1154,14 +1189,7 @@ exports.getPaginationParams = getPaginationParams;
1154
1189
 
1155
1190
  /***/ }),
1156
1191
 
1157
- /***/ 3:
1158
- /***/ (function(module, exports) {
1159
-
1160
- module.exports = require("lodash");
1161
-
1162
- /***/ }),
1163
-
1164
- /***/ 31:
1192
+ /***/ 35:
1165
1193
  /***/ (function(module, exports, __webpack_require__) {
1166
1194
 
1167
1195
  "use strict";
@@ -1190,58 +1218,67 @@ var VizCategory;
1190
1218
 
1191
1219
  /***/ }),
1192
1220
 
1193
- /***/ 32:
1221
+ /***/ 36:
1194
1222
  /***/ (function(module, exports, __webpack_require__) {
1195
1223
 
1196
1224
  "use strict";
1197
1225
 
1198
1226
 
1227
+ var _slicedToArray = __webpack_require__(17);
1228
+
1199
1229
  Object.defineProperty(exports, "__esModule", {
1200
1230
  value: true
1201
1231
  });
1202
1232
 
1203
- var React = __webpack_require__(1);
1233
+ var React = __webpack_require__(0);
1204
1234
 
1205
1235
  var lodash_1 = __webpack_require__(3);
1206
1236
 
1207
- var getSettingsFromThemedProps_1 = __webpack_require__(33);
1237
+ var getSettingsFromThemedProps_1 = __webpack_require__(37);
1238
+
1239
+ var Options_1 = __webpack_require__(29);
1208
1240
 
1209
- var Options_1 = __webpack_require__(34);
1241
+ var SanitizeProps_1 = __webpack_require__(38);
1210
1242
 
1211
- var SanitizeProps_1 = __webpack_require__(35);
1243
+ var TimezoneContext_1 = __webpack_require__(25);
1212
1244
 
1213
- var TimezoneContext_1 = __webpack_require__(23);
1245
+ var moment_1 = __webpack_require__(39);
1214
1246
 
1215
- var moment_1 = __webpack_require__(36);
1247
+ var FeatureFlagContext_1 = __webpack_require__(20);
1216
1248
 
1217
1249
  var styled_components_1 = __webpack_require__(4);
1218
1250
 
1219
- var hocUtils_1 = __webpack_require__(25);
1251
+ var hocUtils_1 = __webpack_require__(26);
1252
+
1253
+ var JSONSchemaUtils_1 = __webpack_require__(27);
1220
1254
 
1221
- var JSONSchemaUtils_1 = __webpack_require__(26);
1255
+ var async_dynamic_options_evaluator_1 = __webpack_require__(40);
1222
1256
 
1223
- var SplunkVisualization_1 = __webpack_require__(37);
1257
+ var id_1 = __webpack_require__(32);
1258
+
1259
+ var SplunkVisualization_1 = __webpack_require__(41);
1224
1260
 
1225
1261
  var VizBehavior_1 = __webpack_require__(6);
1226
1262
 
1227
- var getSorting_1 = __webpack_require__(28);
1263
+ var getSorting_1 = __webpack_require__(33);
1264
+
1265
+ var getPagination_1 = __webpack_require__(34);
1228
1266
 
1229
- var getPagination_1 = __webpack_require__(29);
1267
+ var useDeepMemo_1 = __webpack_require__(44);
1230
1268
 
1231
- var useDeepMemo_1 = __webpack_require__(40);
1269
+ var MissingPropsMessage_1 = __webpack_require__(45);
1232
1270
 
1233
- var MissingPropsMessage_1 = __webpack_require__(41);
1271
+ var withEditModeCover_1 = __webpack_require__(46);
1234
1272
 
1235
- var withEditModeCover_1 = __webpack_require__(42);
1273
+ var withPlaceholder_1 = __webpack_require__(47);
1236
1274
 
1237
- var withPlaceholder_1 = __webpack_require__(43);
1275
+ var UUID = id_1.createGUID();
1238
1276
  /**
1239
1277
  * hoc that wraps a pure react visualization in a Dashboard visualization
1240
1278
  * @param {DashboardVizOpts} opts
1241
1279
  * @returns {HOC}
1242
1280
  */
1243
1281
 
1244
-
1245
1282
  var withDashboardViz = function withDashboardViz(opts) {
1246
1283
  var ReactViz = opts.ReactViz,
1247
1284
  vizConfig = opts.vizConfig,
@@ -1254,6 +1291,8 @@ var withDashboardViz = function withDashboardViz(opts) {
1254
1291
  var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
1255
1292
 
1256
1293
  var DashboardViz = function DashboardViz(props) {
1294
+ var _a;
1295
+
1257
1296
  var mode = props.mode,
1258
1297
  hasEventHandlers = props.hasEventHandlers,
1259
1298
  dataSources = props.dataSources,
@@ -1301,38 +1340,97 @@ var withDashboardViz = function withDashboardViz(opts) {
1301
1340
 
1302
1341
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
1303
1342
 
1343
+ var _React$useState = React.useState({}),
1344
+ _React$useState2 = _slicedToArray(_React$useState, 2),
1345
+ evaluatedOptionsAsync = _React$useState2[0],
1346
+ setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1347
+
1348
+
1349
+ var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
1350
+
1351
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
1352
+ _React$useState4 = _slicedToArray(_React$useState3, 1),
1353
+ visualizationID = _React$useState4[0];
1354
+
1355
+ var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
1356
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
1357
+ useAsyncEvaluatedOptions = _React$useState6[0],
1358
+ setUseAsyncEvaluatedOptions = _React$useState6[1];
1359
+
1304
1360
  evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
1305
1361
  try {
1306
- return Options_1.Options.evaluate({
1307
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1308
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1309
- }, dataSources, themeFunc);
1362
+ if (useAsyncEvaluatedOptions) {
1363
+ var optionsToEvaluate = {
1364
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1365
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1366
+ };
1367
+ var asyncDynamicOptionsEvaluatorParams = {
1368
+ visualizationID: visualizationID,
1369
+ props: props,
1370
+ options: optionsToEvaluate,
1371
+ dataSources: dataSources,
1372
+ theme: vizConfig.themes
1373
+ };
1374
+ async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
1375
+ setEvaluatedOptionsAsync(results.results);
1376
+ }).catch(function (e) {
1377
+ // eslint-disable-next-line no-console
1378
+ console.error("unexpected error evaluating options - async: ".concat(e.message));
1379
+ setUseAsyncEvaluatedOptions(false);
1380
+ });
1381
+ } else {
1382
+ return Options_1.Options.evaluate({
1383
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1384
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1385
+ }, dataSources, themeFunc);
1386
+ }
1310
1387
  } catch (e) {
1311
1388
  // eslint-disable-next-line no-console
1312
- console.error("unexpected error evaluating options: + ".concat(e.message));
1389
+ console.error("unexpected error evaluating options: ".concat(e.message));
1313
1390
  return {};
1314
1391
  }
1315
- }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
1392
+
1393
+ return {};
1394
+ }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
1395
+ var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
1396
+ // 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
1397
+ // onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
1398
+
1399
+ var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
1400
+ var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
1401
+
1402
+ 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) {
1403
+ clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
1404
+ } // useEffect hook needs to be initialized before any early returns
1316
1405
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
1317
1406
 
1407
+
1318
1408
  React.useEffect(function () {
1319
- onComputedProps(evaluatedOptions);
1320
- }); // present warning message if any required props are missing
1409
+ onComputedProps(clonedEvaluatedOptions);
1410
+ });
1411
+ React.useEffect(function () {
1412
+ return function () {
1413
+ if (useAsyncEvaluatedOptions) {
1414
+ async_dynamic_options_evaluator_1.default.reset(visualizationID);
1415
+ }
1416
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
1417
+ }, []); // present warning message if any required props are missing
1321
1418
 
1322
1419
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1323
1420
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1324
1421
  supports = vizConfig.supports;
1325
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptions);
1326
-
1327
- if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
1328
- return React.createElement(MissingPropsMessage_1.default, {
1329
- "data-test": "missing-props-message",
1330
- width: width,
1331
- height: height,
1332
- missingProps: missing,
1333
- backgroundColor: bgColorFromTheme
1334
- });
1335
- } // events
1422
+ var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1423
+
1424
+ 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
1425
+ ) {
1426
+ return React.createElement(MissingPropsMessage_1.default, {
1427
+ "data-test": "missing-props-message",
1428
+ width: width,
1429
+ height: height,
1430
+ missingProps: missing,
1431
+ backgroundColor: bgColorFromTheme
1432
+ });
1433
+ } // events
1336
1434
 
1337
1435
 
1338
1436
  var eventCallbackProps = {};
@@ -1349,7 +1447,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1349
1447
 
1350
1448
  if (Array.isArray(payloadKeys) && payloadKeys.length) {
1351
1449
  payloadKeys.forEach(function (p) {
1352
- payload[p] = evaluatedOptions[p];
1450
+ payload[p] = evaluatedOptionsToUse[p];
1353
1451
  });
1354
1452
  }
1355
1453
 
@@ -1368,7 +1466,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1368
1466
  } // compute pure viz props which are not from options
1369
1467
 
1370
1468
 
1371
- var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptions), eventCallbackProps), {
1469
+ var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
1372
1470
  themeFunc: themeFunc
1373
1471
  }));
1374
1472
  /**
@@ -1388,7 +1486,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1388
1486
 
1389
1487
  var dataSourceMetadata = {};
1390
1488
  var OptionKey = 'paginateDataSourceKey';
1391
- var paginateDataSourceKey = lodash_1.has(evaluatedOptions, OptionKey) && evaluatedOptions[OptionKey] || 'primary';
1489
+ var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1392
1490
 
1393
1491
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1394
1492
  var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
@@ -1418,7 +1516,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1418
1516
  mode: mode,
1419
1517
  width: width,
1420
1518
  height: height
1421
- }, evaluatedOptions, computedVizProps, eventCallbackProps, dataSourceMetadata));
1519
+ }, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
1422
1520
  };
1423
1521
 
1424
1522
  DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
@@ -1436,35 +1534,42 @@ exports.default = withDashboardViz;
1436
1534
 
1437
1535
  /***/ }),
1438
1536
 
1439
- /***/ 33:
1537
+ /***/ 37:
1440
1538
  /***/ (function(module, exports) {
1441
1539
 
1442
1540
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1443
1541
 
1444
1542
  /***/ }),
1445
1543
 
1446
- /***/ 34:
1544
+ /***/ 38:
1447
1545
  /***/ (function(module, exports) {
1448
1546
 
1449
- module.exports = require("@splunk/visualization-encoding/Options");
1547
+ module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1450
1548
 
1451
1549
  /***/ }),
1452
1550
 
1453
- /***/ 35:
1551
+ /***/ 39:
1454
1552
  /***/ (function(module, exports) {
1455
1553
 
1456
- module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1554
+ module.exports = require("@splunk/moment");
1457
1555
 
1458
1556
  /***/ }),
1459
1557
 
1460
- /***/ 36:
1558
+ /***/ 4:
1461
1559
  /***/ (function(module, exports) {
1462
1560
 
1463
- module.exports = require("@splunk/moment");
1561
+ module.exports = require("styled-components");
1464
1562
 
1465
1563
  /***/ }),
1466
1564
 
1467
- /***/ 37:
1565
+ /***/ 40:
1566
+ /***/ (function(module, exports) {
1567
+
1568
+ module.exports = require("@splunk/async-dynamic-options-evaluator");
1569
+
1570
+ /***/ }),
1571
+
1572
+ /***/ 41:
1468
1573
  /***/ (function(module, exports, __webpack_require__) {
1469
1574
 
1470
1575
  "use strict";
@@ -1478,11 +1583,11 @@ Object.defineProperty(exports, "__esModule", {
1478
1583
  exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
1479
1584
  /* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
1480
1585
 
1481
- var T = __webpack_require__(0);
1586
+ var T = __webpack_require__(1);
1482
1587
 
1483
1588
  var lodash_1 = __webpack_require__(3);
1484
1589
 
1485
- var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1590
+ var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1486
1591
 
1487
1592
 
1488
1593
  exports.INITIAL_WIDTH = 250;
@@ -1616,7 +1721,7 @@ exports.default = SplunkVisualization;
1616
1721
 
1617
1722
  /***/ }),
1618
1723
 
1619
- /***/ 38:
1724
+ /***/ 42:
1620
1725
  /***/ (function(module, exports, __webpack_require__) {
1621
1726
 
1622
1727
  "use strict";
@@ -1624,7 +1729,7 @@ exports.default = SplunkVisualization;
1624
1729
 
1625
1730
  var _classCallCheck = __webpack_require__(11);
1626
1731
 
1627
- var _createClass = __webpack_require__(19);
1732
+ var _createClass = __webpack_require__(22);
1628
1733
 
1629
1734
  Object.defineProperty(exports, "__esModule", {
1630
1735
  value: true
@@ -1654,7 +1759,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1654
1759
 
1655
1760
  /***/ }),
1656
1761
 
1657
- /***/ 39:
1762
+ /***/ 43:
1658
1763
  /***/ (function(module, exports, __webpack_require__) {
1659
1764
 
1660
1765
  "use strict";
@@ -1668,14 +1773,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1668
1773
 
1669
1774
  /***/ }),
1670
1775
 
1671
- /***/ 4:
1672
- /***/ (function(module, exports) {
1673
-
1674
- module.exports = require("styled-components");
1675
-
1676
- /***/ }),
1677
-
1678
- /***/ 40:
1776
+ /***/ 44:
1679
1777
  /***/ (function(module, exports, __webpack_require__) {
1680
1778
 
1681
1779
  "use strict";
@@ -1686,7 +1784,7 @@ Object.defineProperty(exports, "__esModule", {
1686
1784
  });
1687
1785
  exports.useDeepMemo = void 0;
1688
1786
 
1689
- var react_1 = __webpack_require__(1);
1787
+ var react_1 = __webpack_require__(0);
1690
1788
 
1691
1789
  var lodash_1 = __webpack_require__(3);
1692
1790
  /**
@@ -1721,7 +1819,7 @@ exports.useDeepMemo = useDeepMemo;
1721
1819
 
1722
1820
  /***/ }),
1723
1821
 
1724
- /***/ 41:
1822
+ /***/ 45:
1725
1823
  /***/ (function(module, exports, __webpack_require__) {
1726
1824
 
1727
1825
  "use strict";
@@ -1732,13 +1830,13 @@ Object.defineProperty(exports, "__esModule", {
1732
1830
  });
1733
1831
  exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
1734
1832
 
1735
- var React = __webpack_require__(1);
1833
+ var React = __webpack_require__(0);
1736
1834
 
1737
- var T = __webpack_require__(0);
1835
+ var T = __webpack_require__(1);
1738
1836
 
1739
1837
  var i18n_1 = __webpack_require__(2);
1740
1838
 
1741
- var Message_1 = __webpack_require__(10);
1839
+ var Message_1 = __webpack_require__(9);
1742
1840
 
1743
1841
  var FixedSizeContainer_1 = __webpack_require__(13);
1744
1842
  /**
@@ -1802,125 +1900,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1802
1900
 
1803
1901
  /***/ }),
1804
1902
 
1805
- /***/ 42:
1806
- /***/ (function(module, exports, __webpack_require__) {
1807
-
1808
- "use strict";
1809
-
1810
-
1811
- Object.defineProperty(exports, "__esModule", {
1812
- value: true
1813
- });
1814
-
1815
- var React = __webpack_require__(1);
1816
-
1817
- var styled_components_1 = __webpack_require__(4);
1818
-
1819
- var hocUtils_1 = __webpack_require__(14);
1820
-
1821
- var Cover = styled_components_1.default.div.withConfig({
1822
- displayName: "withEditModeCover__Cover",
1823
- componentId: "sc-1gsbnxb-0"
1824
- })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1825
- var Blocker = styled_components_1.default.div.attrs({
1826
- 'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
1827
- }).withConfig({
1828
- displayName: "withEditModeCover__Blocker",
1829
- componentId: "sc-1gsbnxb-1"
1830
- })(["position:relative;width:100%;height:100%;"]);
1831
- /**
1832
- * HOC that renders a cover layer in edit mode
1833
- * @method withEditModeCover
1834
- * @param {ExtendedDashViz} Visualization
1835
- * @returns {ExtendedDashViz} Wrapper
1836
- */
1837
-
1838
- var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
1839
- var Wrapper = function Wrapper(props) {
1840
- var mode = props.mode;
1841
- var showEditCover = mode === 'edit' && !disableEditModeCover;
1842
- return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
1843
- "data-test": "edit-mode-cover"
1844
- }));
1845
- };
1846
-
1847
- hocUtils_1.extendStaticWrapperProps({
1848
- Wrapper: Wrapper,
1849
- Visualization: Visualization
1850
- });
1851
- return Wrapper;
1852
- };
1853
-
1854
- exports.default = withEditModeCover;
1855
-
1856
- /***/ }),
1857
-
1858
- /***/ 43:
1859
- /***/ (function(module, exports, __webpack_require__) {
1860
-
1861
- "use strict";
1862
-
1863
-
1864
- Object.defineProperty(exports, "__esModule", {
1865
- value: true
1866
- });
1867
-
1868
- var React = __webpack_require__(1);
1869
-
1870
- var colorUtils_1 = __webpack_require__(12);
1871
-
1872
- var variables_1 = __webpack_require__(9);
1873
-
1874
- var IconPlaceholder_1 = __webpack_require__(27);
1875
-
1876
- var VizBehavior_1 = __webpack_require__(6);
1877
-
1878
- var hocUtils_1 = __webpack_require__(14);
1879
-
1880
- var withPlaceholder = function withPlaceholder(Visualization) {
1881
- var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
1882
- var config = Visualization.config;
1883
- var themes = config.themes;
1884
-
1885
- var Wrapper = function Wrapper(props) {
1886
- var _a, _b;
1887
-
1888
- var dataSources = props.dataSources,
1889
- loading = props.loading,
1890
- options = props.options,
1891
- height = props.height,
1892
- width = props.width;
1893
- var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
1894
- var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
1895
- var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
1896
- var iconColor = variables_1.default.contentColorActive(props);
1897
-
1898
- if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
1899
- return React.createElement(IconPlaceholder_1.default, {
1900
- "data-test": "icon-placeholder",
1901
- icon: icon,
1902
- width: width,
1903
- height: height,
1904
- backgroundColor: bgColorFromTheme,
1905
- iconColor: iconColor
1906
- });
1907
- }
1908
-
1909
- return React.createElement(Visualization, Object.assign({}, props));
1910
- };
1911
-
1912
- hocUtils_1.extendStaticWrapperProps({
1913
- Wrapper: Wrapper,
1914
- Visualization: Visualization
1915
- });
1916
- return Wrapper;
1917
- };
1918
-
1919
- exports.default = withPlaceholder;
1920
-
1921
- /***/ }),
1922
-
1923
- /***/ 436:
1903
+ /***/ 451:
1924
1904
  /***/ (function(module, exports, __webpack_require__) {
1925
1905
 
1926
1906
  "use strict";
@@ -1950,9 +1930,9 @@ Object.defineProperty(exports, "__esModule", {
1950
1930
  });
1951
1931
  exports.default = void 0;
1952
1932
 
1953
- __exportStar(__webpack_require__(148), exports);
1933
+ __exportStar(__webpack_require__(161), exports);
1954
1934
 
1955
- var Rectangle_1 = __webpack_require__(148);
1935
+ var Rectangle_1 = __webpack_require__(161);
1956
1936
 
1957
1937
  Object.defineProperty(exports, "default", {
1958
1938
  enumerable: true,
@@ -1963,7 +1943,7 @@ Object.defineProperty(exports, "default", {
1963
1943
 
1964
1944
  /***/ }),
1965
1945
 
1966
- /***/ 437:
1946
+ /***/ 452:
1967
1947
  /***/ (function(module, exports, __webpack_require__) {
1968
1948
 
1969
1949
  "use strict";
@@ -1974,29 +1954,29 @@ Object.defineProperty(exports, "__esModule", {
1974
1954
  });
1975
1955
  exports.optionsSchema = void 0;
1976
1956
 
1977
- var visualization_icons_1 = __webpack_require__(47);
1957
+ var visualization_icons_1 = __webpack_require__(51);
1978
1958
 
1979
1959
  var schemaUtils_1 = __webpack_require__(16);
1980
1960
 
1981
1961
  var i18n_1 = __webpack_require__(2);
1982
1962
 
1983
- var PresetPalettes_1 = __webpack_require__(54);
1963
+ var PresetPalettes_1 = __webpack_require__(60);
1984
1964
 
1985
- var themes_1 = __webpack_require__(69);
1965
+ var themes_1 = __webpack_require__(59);
1986
1966
 
1987
1967
  var VizBehavior_1 = __webpack_require__(6);
1988
1968
 
1989
- var VizCategory_1 = __webpack_require__(31);
1969
+ var VizCategory_1 = __webpack_require__(35);
1990
1970
 
1991
- var configUtils_1 = __webpack_require__(17);
1971
+ var configUtils_1 = __webpack_require__(19);
1992
1972
 
1993
- var DynamicFillColorEditor_1 = __webpack_require__(104);
1973
+ var DynamicFillColorEditor_1 = __webpack_require__(113);
1994
1974
 
1995
- var DynamicStrokeColorEditor_1 = __webpack_require__(105);
1975
+ var DynamicStrokeColorEditor_1 = __webpack_require__(114);
1996
1976
 
1997
- var StaticFillColorEditor_1 = __webpack_require__(106);
1977
+ var StaticFillColorEditor_1 = __webpack_require__(115);
1998
1978
 
1999
- var StaticStrokeColorEditor_1 = __webpack_require__(107);
1979
+ var StaticStrokeColorEditor_1 = __webpack_require__(116);
2000
1980
 
2001
1981
  var dataContract = {
2002
1982
  requiredDataSources: [],
@@ -2220,7 +2200,6 @@ var editorConfig = [{
2220
2200
  }
2221
2201
  }], [Object.assign(Object.assign({}, StaticFillColorEditor_1.default), {
2222
2202
  editorProps: {
2223
- labelPosition: 'left',
2224
2203
  themes: themes
2225
2204
  }
2226
2205
  })], [DynamicFillColorEditor_1.getDynamicFillColorEditor({
@@ -2228,7 +2207,6 @@ var editorConfig = [{
2228
2207
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
2229
2208
  })], [Object.assign(Object.assign({}, StaticStrokeColorEditor_1.default), {
2230
2209
  editorProps: {
2231
- labelPosition: 'left',
2232
2210
  themes: themes
2233
2211
  }
2234
2212
  })], [DynamicStrokeColorEditor_1.getDynamicStrokeColorEditor({
@@ -2309,17 +2287,135 @@ exports.default = configUtils_1.enhanceConfig(config);
2309
2287
 
2310
2288
  /***/ }),
2311
2289
 
2290
+ /***/ 46:
2291
+ /***/ (function(module, exports, __webpack_require__) {
2292
+
2293
+ "use strict";
2294
+
2295
+
2296
+ Object.defineProperty(exports, "__esModule", {
2297
+ value: true
2298
+ });
2299
+
2300
+ var React = __webpack_require__(0);
2301
+
2302
+ var styled_components_1 = __webpack_require__(4);
2303
+
2304
+ var hocUtils_1 = __webpack_require__(15);
2305
+
2306
+ var Cover = styled_components_1.default.div.withConfig({
2307
+ displayName: "withEditModeCover__Cover",
2308
+ componentId: "sc-1gsbnxb-0"
2309
+ })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
2310
+ var Blocker = styled_components_1.default.div.attrs({
2311
+ 'data-splunk-visualization-version': "25.7.0 - d10a7789b"
2312
+ }).withConfig({
2313
+ displayName: "withEditModeCover__Blocker",
2314
+ componentId: "sc-1gsbnxb-1"
2315
+ })(["position:relative;width:100%;height:100%;"]);
2316
+ /**
2317
+ * HOC that renders a cover layer in edit mode
2318
+ * @method withEditModeCover
2319
+ * @param {ExtendedDashViz} Visualization
2320
+ * @returns {ExtendedDashViz} Wrapper
2321
+ */
2322
+
2323
+ var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
2324
+ var Wrapper = function Wrapper(props) {
2325
+ var mode = props.mode;
2326
+ var showEditCover = mode === 'edit' && !disableEditModeCover;
2327
+ return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
2328
+ "data-test": "edit-mode-cover"
2329
+ }));
2330
+ };
2331
+
2332
+ hocUtils_1.extendStaticWrapperProps({
2333
+ Wrapper: Wrapper,
2334
+ Visualization: Visualization
2335
+ });
2336
+ return Wrapper;
2337
+ };
2338
+
2339
+ exports.default = withEditModeCover;
2340
+
2341
+ /***/ }),
2342
+
2312
2343
  /***/ 47:
2344
+ /***/ (function(module, exports, __webpack_require__) {
2345
+
2346
+ "use strict";
2347
+
2348
+
2349
+ Object.defineProperty(exports, "__esModule", {
2350
+ value: true
2351
+ });
2352
+
2353
+ var React = __webpack_require__(0);
2354
+
2355
+ var colorUtils_1 = __webpack_require__(12);
2356
+
2357
+ var variables_1 = __webpack_require__(10);
2358
+
2359
+ var IconPlaceholder_1 = __webpack_require__(31);
2360
+
2361
+ var VizBehavior_1 = __webpack_require__(6);
2362
+
2363
+ var hocUtils_1 = __webpack_require__(15);
2364
+
2365
+ var withPlaceholder = function withPlaceholder(Visualization) {
2366
+ var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
2367
+ var config = Visualization.config;
2368
+ var themes = config.themes;
2369
+
2370
+ var Wrapper = function Wrapper(props) {
2371
+ var _a, _b;
2372
+
2373
+ var dataSources = props.dataSources,
2374
+ loading = props.loading,
2375
+ options = props.options,
2376
+ height = props.height,
2377
+ width = props.width;
2378
+ var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
2379
+ var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
2380
+ var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
2381
+ var iconColor = variables_1.default.contentColorActive(props);
2382
+
2383
+ if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
2384
+ return React.createElement(IconPlaceholder_1.default, {
2385
+ "data-test": "icon-placeholder",
2386
+ icon: icon,
2387
+ width: width,
2388
+ height: height,
2389
+ backgroundColor: bgColorFromTheme,
2390
+ iconColor: iconColor
2391
+ });
2392
+ }
2393
+
2394
+ return React.createElement(Visualization, Object.assign({}, props));
2395
+ };
2396
+
2397
+ hocUtils_1.extendStaticWrapperProps({
2398
+ Wrapper: Wrapper,
2399
+ Visualization: Visualization
2400
+ });
2401
+ return Wrapper;
2402
+ };
2403
+
2404
+ exports.default = withPlaceholder;
2405
+
2406
+ /***/ }),
2407
+
2408
+ /***/ 51:
2313
2409
  /***/ (function(module, exports) {
2314
2410
 
2315
2411
  module.exports = require("@splunk/visualization-icons");
2316
2412
 
2317
2413
  /***/ }),
2318
2414
 
2319
- /***/ 54:
2415
+ /***/ 59:
2320
2416
  /***/ (function(module, exports) {
2321
2417
 
2322
- module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
2418
+ module.exports = require("@splunk/themes");
2323
2419
 
2324
2420
  /***/ }),
2325
2421
 
@@ -2357,35 +2453,36 @@ var VizBehavior;
2357
2453
 
2358
2454
  VizBehavior["PLACEHOLDER"] = "placeholder";
2359
2455
  VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
2456
+ VizBehavior["TRELLIS"] = "trellis";
2360
2457
  })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
2361
2458
 
2362
2459
  /***/ }),
2363
2460
 
2364
- /***/ 69:
2461
+ /***/ 60:
2365
2462
  /***/ (function(module, exports) {
2366
2463
 
2367
- module.exports = require("@splunk/themes");
2464
+ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
2368
2465
 
2369
2466
  /***/ }),
2370
2467
 
2371
2468
  /***/ 7:
2372
2469
  /***/ (function(module, exports) {
2373
2470
 
2374
- module.exports = require("@babel/runtime/helpers/defineProperty");
2471
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
2375
2472
 
2376
2473
  /***/ }),
2377
2474
 
2378
2475
  /***/ 8:
2379
2476
  /***/ (function(module, exports) {
2380
2477
 
2381
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
2478
+ module.exports = require("@babel/runtime/helpers/defineProperty");
2382
2479
 
2383
2480
  /***/ }),
2384
2481
 
2385
2482
  /***/ 9:
2386
2483
  /***/ (function(module, exports) {
2387
2484
 
2388
- module.exports = require("@splunk/themes/variables");
2485
+ module.exports = require("@splunk/visualizations-shared/Message");
2389
2486
 
2390
2487
  /***/ })
2391
2488