@splunk/visualizations 24.5.3 → 25.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_ChoroplethTooltip.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_ChoroplethTooltip_with_additional_fields.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_geostats_by.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_center_seattle.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_choropleth_layer.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Area_Opacity_0_5.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Background_Color_french_rose.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Basic_Area.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Multiple_Overlay_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Overlay_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Show_Y2_Axis_Major_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Show_Y2_Axis_Minor_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Show_Y2_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Show_Y2_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Major_Tick_Interval_5000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Major_Tick_Size_15_and_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Major_Tick_and_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Max_40000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Min_10000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Data_Values_Display_all.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Data_Values_Display_minmax.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Legend_Display_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Legend_Display_left.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Legend_Display_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Legend_Display_top.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Legend_Mode_seriesCompare.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Legend_Pagination.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_New_very_long_Legend_Label_Legend_Truncation_end_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_New_very_long_Legend_Label_Legend_Truncation_middle.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_New_very_long_Legend_Label_Legend_Truncation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_New_very_long_Legend_Label_Legend_Truncation_start.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Result_Limit_3_Number_of_Results_5_Chart_Annotation.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Series_Colors_by_Field_splunkd_green_splunkd_web_access_orange_splunk_web_service_cyan.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Series_Colors_red_blue_green_orange_pink.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Independent_Y_Axis_Ranges_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Lines_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_X_Axis_Major_Grid_Lines_true_Y_Axis_Major_Grid_Lines_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Y_Axis_Extended_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Y_Axis_Extended_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Y_Axis_Minor_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Y_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Show_Y_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Stack_Mode_stacked.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Stack_Mode_stacked100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_X_Axis_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_X_Axis_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_X_Axis_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_X_Axis_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_X_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_X_Axis_Line_Visibility_show_Y_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_X_Axis_Major_Ticks_Size_15.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y2_Axis_Mapped_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y2_Axis_Multiple_Mapped_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Abbreviation_on_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Major_Tick_Interval_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Major_and_Minor_Tick_Visibility_show_X_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Major_and_Minor_Tick_Visibility_show_Y_Axis_Major_Tick_Size_15_Y_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Maximum_Number_50.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Minimum_Number_25.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_and_X_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_and_X_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Background_Color_green.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Bar_Spacing_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Basic_Bar.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Multiple_Overlay_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Overlay_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Show_Y2_Axis_Major_and_Minor_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Show_Y2_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Show_Y2_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Abbreviation_on_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Major_Tick_Interval_50.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Major_Tick_Size_15_Minor_Ticks_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Major_Tick_and_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Max_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Min_100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Chart_Overlay_on_Y2_Axis_Title_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Data_Value_Display_all.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Data_Value_Display_minmax.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Legend_Display_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Legend_Display_left.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Legend_Display_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Legend_Display_top.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_New_very_long_Legend_Label_Legend_Truncation_end_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_New_very_long_Legend_Label_Legend_Truncation_middle.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_New_very_long_Legend_Label_Legend_Truncation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_New_very_long_Legend_Label_Legend_Truncation_start.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Series_Colors_by_Field_admin_green_andy_orange_john_cyan_wendy_olive.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Series_Colors_red_blue_green_and_yellow.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Series_Spacing_5.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_Independent_Y_Axis_Ranges_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_X_Axis_Major_Grid_true_Y_Axis_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_Y_Axis_Extended_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_Y_Axis_Extended_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_Y_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_Y_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Show_Y_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Stack_Mode_stacked.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Stack_Mode_stacked100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_X_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_X_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_X_Axis_Major_Tick_Size_15.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_X_Axis_Major_Tick_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y2_Axis_Mapped_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y2_Axis_Multiple_Mapped_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Abbreviation_on_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Major_and_Minor_Ticks_Visibility_show_Y_Axis_Major_Tick_Size_15_Y_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Maximum_Number_1000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Minimum_Number_250.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Tick_Interval_100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_and_X_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_and_X_Axis_Title_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Background_Color_grey.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Basic_Bubble.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Max_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Method_area_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Method_diameter.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Bubble_Size_Min_40.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_0_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_10_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_3a_invalid_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Result_Limit_50_Number_of_Results_30.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_X_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Show_Y_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Label_Visibility_and_Y_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Line_Visibility_hide_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Interval_6.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Size_15_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Maximum_Number_14.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minimum_Number_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_X_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Abbreviation_auto_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Interval_150.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Size_15_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Maximum_Number_1500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minimum_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_and_X_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_and_X_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Background_Color_red.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Basic_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Annotation.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Multiple_Overlay_Fields_with_space_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Overlay_Field_with_space_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Show_Y2_Axis_Major_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Show_Y2_Axis_Minor_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Show_Y2_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Show_Y2_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Major_Tick_Interval_5000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Major_Tick_Size_15_Y2_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Major_Tick_Visibility_and_Y2_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Max_40000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Min_10000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Title_Text_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Column_Grouping_overlay.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Column_Grouping_overlay_Stack_Mode_stacked.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Column_Spacing_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Data_Value_Display_all.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Data_Value_Display_minmax.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Legend_Display_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Legend_Display_left.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Legend_Display_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Legend_Display_top.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Multiple_Categorical_Series.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_New_very_long_Legend_Label_Legend_Truncation_end_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_New_very_long_Legend_Label_Legend_Truncation_middle.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_New_very_long_Legend_Label_Legend_Truncation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_New_very_long_Legend_Label_Legend_Truncation_start.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Series_Colors_By_Field_splunkd_green_mongod_orange.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Series_Colors_red_blue_green.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Series_Spacing_5.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Independent_Y_Axis_Ranges_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Tooltip_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_X_Axis_Major_Grid_Lines_true_Show_Y_Axis_Major_Grid_Lines_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Y_Axis_Extended_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Y_Axis_Extended_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Y_Axis_Minor_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Y_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Show_Y_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Single_Categorical_Series.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Stack_Mode_stacked.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Stack_Mode_stacked100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Label_Visibility_and_Y_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Max_Label_Parts_1.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Max_Label_Parts_2.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Max_Label_Parts_3_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Title_Text_and_Y_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_Title_Text_and_Y_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_X_Axis_and_Y_Axis_Major_Tick_Size_20_Y_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y2_Axis_Mapped_Field_With_Space_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y2_Axis_Mapped_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y2_Axis_Multiple_Mapped_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y2_Axis_Multiple_Overlay_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y2_Axis_Overlay_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Abbreviation_on_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Major_Tick_Interval_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Maximum_Number_50.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Minimum_Number_25.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Minor_Tick_Size_10_Y_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Multiple_Overlay_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Overlay_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Show_Y2_Axis_Rounded_Labels_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Show_Y2_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Show_Y2_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Major_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Major_Tick_Interval_5000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Major_Tick_Size_15_Y2_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Major_Tick_Visibility_and_Y2_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Maximum_Number_40000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Minimum_Number_10000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Minor_Grid_Lines_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Legend_Pagination.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_mongod_longDash_splunkd_access_dashDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_mongod_shortDashDot_splunkd_access_shortDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_splunkd_dot_splunk_web_service_dash.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_splunkd_longDashDot_splunkd_access_longDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_splunkd_shortDash_splunk_web_service_shortDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Series_Colors_by_Field_splunkd_green_splunkd_web_access_orange_splunk_web_service_cyan.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Series_Colors_red_blue_green_orange_pink.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Show_Independent_Y_Axis_Ranges_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Show_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Y2_Axis_Mapped_Field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Y2_Axis_Multiple_Mapped_Fields_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Y_Axis_Abbreviation_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Y_Axis_Abbreviation_on_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Additional_Cases.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Mostly_null.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_Opacities_scaled_to_be_less_than_max_of_0_8.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_Result_Limit_Set_To_1.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_String_GeoJson_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Choropleth_Layer_With_additional_fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_with_geostats_data_No_render.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Background_Color_af575a.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Basic_Markdown.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Begin_with_Text_Instead_of_Header.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Color_purple.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Markdown_Markdown_Font_Size_extraLarge.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Background_Color_red.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Basic_Pie.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Collapse_Label_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Collapse_Threshold_0_05.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Label_Display_off.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Label_Display_valuesAndPercentage.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Label_Display_values_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Numeric_and_string_values_in_column_1.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Result_Limit_0_Number_of_Results_12.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Result_Limit_3_Number_of_Results_12.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Series_Colors_By_Field_splunkd_black_splunkd_ui_access_yellow_mongod_cyan.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Series_Colors_red_blue_green_orange_pink.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Show_Donut_Hole_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Background_Color_grey.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Basic_Scatter.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Marker_Size_7.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_X_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Extend_Range_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_With_Zero_false_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Show_Y_Axis_With_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Label_Visibility_and_Y_Axis_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Line_Visibility_hide_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Interval_6.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Size_15_X_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Maximum_Number_14.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minimum_Number_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Title_Text_and_Y_Axis_Title_Text_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_X_Axis_Title_Text_and_Y_Axis_Title_Text_specified.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Line_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Interval_150.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Size_15_Y_Axis_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Maximum_Number_1000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minimum_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Scatter_Scatter_Y_Axis_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Change_Icon_Color_For_A_Remote_Icon.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_The_Icon_As_A_Remote_Icon.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_backgroundColor_based_on_the_majorValue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_icon_color_based_on_the_majorValue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Set_the_majorColor_based_on_the_majorValue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Mixed_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Background_From_Major_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Background_From_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Major_Value_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Major_Value_Color_By_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Max_Value_1000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Radial_Color_By_Major_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Change_The_Color_Of_Major_Value_Based_On_Its_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Major_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Color_Of_Major_Value_Based_On_The_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Color_Of_The_Trend_Indicators_And_Number_Based_On_The_Trend_Value.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Major_Value_Based_On_String_Type_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Trend_Index_Out_Of_Range.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Mixed_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Use_Time_Type_Series_Data.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_By_Type_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Kitchen_Sink.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Single_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Color_light_blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_No_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table_With_No_Click.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Gradient.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Override.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width_Auto_Expand_Last_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Count_2.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Header_Colors.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Row_Colors.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_No_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Extra_Small.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Large.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Monospace.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Proportional.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Font_Small.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_100_no_paginator.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Invalid_Background_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Multi_Value_Field.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes_Row_Numbers.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Row_Numbers_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Width.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Gradient.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Zone_Time_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Height.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Percentage.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Px.png +0 -0
- package/Area.config.js +1119 -241
- package/Area.config.js.map +1 -1
- package/Area.js +1241 -402
- package/Area.js.map +1 -1
- package/Bar.config.js +1089 -153
- package/Bar.config.js.map +1 -1
- package/Bar.js +1262 -365
- package/Bar.js.map +1 -1
- package/Bubble.config.js +719 -77
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +823 -220
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +62 -38
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +185 -180
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +1059 -170
- package/Column.config.js.map +1 -1
- package/Column.js +1234 -384
- package/Column.js.map +1 -1
- package/Ellipse.config.js +55 -31
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +135 -145
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +67 -43
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +157 -172
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +52 -25
- package/Image.config.js.map +1 -1
- package/Image.js +132 -140
- package/Image.js.map +1 -1
- package/Line.config.js +1035 -108
- package/Line.config.js.map +1 -1
- package/Line.js +1199 -311
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +78 -58
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +179 -194
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +787 -78
- package/Map.config.js.map +1 -1
- package/Map.js +849 -353
- package/Map.js.map +1 -1
- package/Markdown.config.js +73 -48
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +271 -259
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +77 -50
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2079 -1987
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +75 -48
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +166 -181
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +77 -50
- package/Pie.config.js.map +1 -1
- package/Pie.js +1139 -1042
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +76 -49
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +196 -211
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +83 -56
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +256 -264
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +82 -55
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +190 -205
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +790 -135
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +1072 -485
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +85 -56
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +415 -411
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +37 -25
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +81 -57
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +195 -211
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +80 -51
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +342 -338
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +129 -60
- package/Table.config.js.map +1 -1
- package/Table.js +1853 -1712
- package/Table.js.map +1 -1
- package/common/Charting.js +10 -10
- package/common/Charting.js.map +1 -1
- package/common/ChartingApi.js +2 -2
- package/common/ChartingApi.js.map +1 -1
- package/common/EventsDoc.js +3 -3
- package/common/EventsDoc.js.map +1 -1
- package/common/OptionsDoc.js +49 -21
- package/common/OptionsDoc.js.map +1 -1
- package/common/SplunkVisualization.js +4 -4
- package/common/SplunkVisualization.js.map +1 -1
- package/common/ThemesDoc.js +2 -2
- package/common/chartingUtils.js +2 -2
- package/common/gaugeUtils.js +2 -2
- package/common/utils/configUtils.js +30 -4
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/hocUtils.js +26 -56
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +4 -2
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +8 -8
- package/common/utils/testHelper.js.map +1 -1
- package/common/withDashboardViz.js +32 -68
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +12 -13
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Abbreviation_on_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Major_Tick_Interval_20.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Max_120.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_Overlay_on_Y2_Axis_Min_50.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_overlay_on_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_overlay_on_Show_Y2_Axis_Rounded_Labels_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Chart_overlay_on_Show_Y2_Axis_Rounded_Labels_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Series_Colors_by_Field_count_green_percent_orange.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Major_Tick_Interval_100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Maximum_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Area_Area_Y_Axis_Minimum_Number_250.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Axis_Y_Maximum_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Axis_Y_Minimum_Number_100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Series_Colors_by_Field_count_green_percent_orange.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Series_Colors_red_and_blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Y_Axis_Tick_Interval_50.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Maximum_Number_800.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bubble_Bubble_Y_Axis_Minimum_Number_300.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Major_Tick_Interval_10000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Max_80000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Chart_Overlay_on_Y2_Axis_Min_50000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Major_Tick_Interval_10000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Maximum_Number_80000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Y_Axis_Minimum_Number_60000.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_On_Y2_Axis_Major_Tick_Interval_100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Abbreviation_on_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Maximum_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Chart_Overlay_on_Y2_Axis_Minimum_Number_100.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_count_dot_percent_dash.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_count_longDashDot_percent_longDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_count_longDash_percent_dashDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_count_shortDashDot_percent_shortDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Line_Dash_Style_by_Field_count_shortDash_percent_shortDot.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Series_Colors_By_Field_count_green_percent_orange.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Series_Colors_red_and_blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Missing_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_More_than_2_columns_in_datasources.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Series_Colors_By_Field_April_black_December_yellow.png +0 -0
package/Table.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 =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 265);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -109,18 +109,18 @@ module.exports = require("react");
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@
|
|
112
|
+
module.exports = require("@splunk/themes/variables");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
116
|
/***/ 11:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
|
-
module.exports = require("@splunk/
|
|
119
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
123
|
+
/***/ 111:
|
|
124
124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
125
125
|
|
|
126
126
|
"use strict";
|
|
@@ -129,126 +129,37 @@ module.exports = require("@splunk/themes/variables");
|
|
|
129
129
|
Object.defineProperty(exports, "__esModule", {
|
|
130
130
|
value: true
|
|
131
131
|
});
|
|
132
|
-
exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
|
|
132
|
+
exports.validFontSizes = exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
|
|
133
133
|
exports.validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'];
|
|
134
134
|
exports.validSparklineTypes = ['line', 'area'];
|
|
135
135
|
exports.validHeaderVisibilities = ['none', 'fixed', 'inline'];
|
|
136
136
|
exports.validAlignments = ['left', 'center', 'right'];
|
|
137
137
|
exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
|
|
138
|
+
exports.validFontSizes = ['extraSmall', 'small', 'default', 'large'];
|
|
138
139
|
|
|
139
140
|
/***/ }),
|
|
140
141
|
|
|
141
142
|
/***/ 12:
|
|
142
143
|
/***/ (function(module, exports) {
|
|
143
144
|
|
|
144
|
-
module.exports = require("@
|
|
145
|
+
module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
145
146
|
|
|
146
147
|
/***/ }),
|
|
147
148
|
|
|
148
149
|
/***/ 13:
|
|
149
|
-
/***/ (function(module, exports
|
|
150
|
-
|
|
151
|
-
"use strict";
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
Object.defineProperty(exports, "__esModule", {
|
|
155
|
-
value: true
|
|
156
|
-
});
|
|
157
|
-
|
|
158
|
-
var React = __webpack_require__(1);
|
|
159
|
-
|
|
160
|
-
var styled_components_1 = __webpack_require__(4);
|
|
161
|
-
|
|
162
|
-
var SizeAwareWrapper_1 = __webpack_require__(17);
|
|
163
|
-
|
|
164
|
-
var style_1 = __webpack_require__(14);
|
|
165
|
-
|
|
166
|
-
var colorUtils_1 = __webpack_require__(12);
|
|
167
|
-
|
|
168
|
-
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
169
|
-
var width = _ref.width;
|
|
170
|
-
return {
|
|
171
|
-
style: {
|
|
172
|
-
width: style_1.toPx(width)
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
}).withConfig({
|
|
176
|
-
displayName: "FixedSizeContainer__Item",
|
|
177
|
-
componentId: "sc-1yhgpod-0"
|
|
178
|
-
})(["position:relative;background-color:", "};"], function (props) {
|
|
179
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
180
|
-
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
181
|
-
|
|
182
|
-
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
183
|
-
var width = _ref2.width,
|
|
184
|
-
height = _ref2.height;
|
|
185
|
-
return {
|
|
186
|
-
style: Object.assign(Object.assign({}, width && {
|
|
187
|
-
width: style_1.toPx(width)
|
|
188
|
-
}), height && {
|
|
189
|
-
height: style_1.toPx(height)
|
|
190
|
-
})
|
|
191
|
-
};
|
|
192
|
-
}).withConfig({
|
|
193
|
-
displayName: "FixedSizeContainer__FixSizeItem",
|
|
194
|
-
componentId: "sc-1yhgpod-1"
|
|
195
|
-
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
196
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
197
|
-
});
|
|
198
|
-
var ItemContent = styled_components_1.default.div.withConfig({
|
|
199
|
-
displayName: "FixedSizeContainer__ItemContent",
|
|
200
|
-
componentId: "sc-1yhgpod-2"
|
|
201
|
-
})(["position:relative;min-height:100px;width:100%;"]);
|
|
202
|
-
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
203
|
-
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
204
|
-
componentId: "sc-1yhgpod-3"
|
|
205
|
-
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
206
|
-
|
|
207
|
-
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
208
|
-
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
209
|
-
var width = props.width,
|
|
210
|
-
height = props.height,
|
|
211
|
-
backgroundColor = props.backgroundColor;
|
|
212
|
-
|
|
213
|
-
if (!height) {
|
|
214
|
-
return React.createElement(Item, {
|
|
215
|
-
"data-test": "item",
|
|
216
|
-
width: width,
|
|
217
|
-
backgroundColor: backgroundColor
|
|
218
|
-
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
return React.createElement(FixSizeItem, {
|
|
222
|
-
"data-test": "fix-size-item",
|
|
223
|
-
"data-splunk-visualization-version": "24.5.3 - 3129e19a7",
|
|
224
|
-
width: width,
|
|
225
|
-
height: height,
|
|
226
|
-
backgroundColor: backgroundColor
|
|
227
|
-
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
228
|
-
var newWidth = _ref3.width,
|
|
229
|
-
newHeight = _ref3.height;
|
|
230
|
-
return React.createElement(Viz, Object.assign({}, props, {
|
|
231
|
-
width: newWidth,
|
|
232
|
-
height: newHeight
|
|
233
|
-
}));
|
|
234
|
-
})));
|
|
235
|
-
};
|
|
236
|
-
|
|
237
|
-
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
238
|
-
return FixedSizeContainer;
|
|
239
|
-
};
|
|
150
|
+
/***/ (function(module, exports) {
|
|
240
151
|
|
|
241
|
-
exports
|
|
152
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
242
153
|
|
|
243
154
|
/***/ }),
|
|
244
155
|
|
|
245
|
-
/***/
|
|
156
|
+
/***/ 138:
|
|
246
157
|
/***/ (function(module, exports, __webpack_require__) {
|
|
247
158
|
|
|
248
159
|
"use strict";
|
|
249
160
|
|
|
250
161
|
|
|
251
|
-
var _slicedToArray = __webpack_require__(
|
|
162
|
+
var _slicedToArray = __webpack_require__(52);
|
|
252
163
|
|
|
253
164
|
var __rest = this && this.__rest || function (s, e) {
|
|
254
165
|
var t = {};
|
|
@@ -270,15 +181,15 @@ exports.config = exports.PureTable = exports.themes = exports.computeVizProps =
|
|
|
270
181
|
|
|
271
182
|
var lodash_1 = __webpack_require__(2);
|
|
272
183
|
|
|
273
|
-
var colorUtils_1 = __webpack_require__(
|
|
184
|
+
var colorUtils_1 = __webpack_require__(13);
|
|
274
185
|
|
|
275
|
-
var config_1 = __webpack_require__(
|
|
186
|
+
var config_1 = __webpack_require__(266);
|
|
276
187
|
|
|
277
188
|
exports.config = config_1.default;
|
|
278
189
|
|
|
279
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
190
|
+
var withDashboardViz_1 = __webpack_require__(30);
|
|
280
191
|
|
|
281
|
-
var PureTable_1 = __webpack_require__(
|
|
192
|
+
var PureTable_1 = __webpack_require__(139);
|
|
282
193
|
|
|
283
194
|
exports.PureTable = PureTable_1.default;
|
|
284
195
|
|
|
@@ -356,106 +267,37 @@ exports.default = Table;
|
|
|
356
267
|
|
|
357
268
|
/***/ }),
|
|
358
269
|
|
|
359
|
-
/***/
|
|
360
|
-
/***/ (function(module, exports) {
|
|
361
|
-
|
|
362
|
-
module.exports = require("@splunk/visualizations-shared/style");
|
|
363
|
-
|
|
364
|
-
/***/ }),
|
|
365
|
-
|
|
366
|
-
/***/ 15:
|
|
367
|
-
/***/ (function(module, exports) {
|
|
368
|
-
|
|
369
|
-
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
370
|
-
|
|
371
|
-
/***/ }),
|
|
372
|
-
|
|
373
|
-
/***/ 16:
|
|
374
|
-
/***/ (function(module, exports) {
|
|
375
|
-
|
|
376
|
-
module.exports = require("@babel/runtime/helpers/createClass");
|
|
377
|
-
|
|
378
|
-
/***/ }),
|
|
379
|
-
|
|
380
|
-
/***/ 17:
|
|
381
|
-
/***/ (function(module, exports) {
|
|
382
|
-
|
|
383
|
-
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
384
|
-
|
|
385
|
-
/***/ }),
|
|
386
|
-
|
|
387
|
-
/***/ 19:
|
|
388
|
-
/***/ (function(module, exports) {
|
|
389
|
-
|
|
390
|
-
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
391
|
-
|
|
392
|
-
/***/ }),
|
|
393
|
-
|
|
394
|
-
/***/ 2:
|
|
395
|
-
/***/ (function(module, exports) {
|
|
396
|
-
|
|
397
|
-
module.exports = require("lodash");
|
|
398
|
-
|
|
399
|
-
/***/ }),
|
|
400
|
-
|
|
401
|
-
/***/ 21:
|
|
402
|
-
/***/ (function(module, exports) {
|
|
403
|
-
|
|
404
|
-
module.exports = require("@babel/runtime/helpers/typeof");
|
|
405
|
-
|
|
406
|
-
/***/ }),
|
|
407
|
-
|
|
408
|
-
/***/ 22:
|
|
409
|
-
/***/ (function(module, exports) {
|
|
410
|
-
|
|
411
|
-
module.exports = require("@splunk/themes/pick");
|
|
412
|
-
|
|
413
|
-
/***/ }),
|
|
414
|
-
|
|
415
|
-
/***/ 24:
|
|
270
|
+
/***/ 139:
|
|
416
271
|
/***/ (function(module, exports, __webpack_require__) {
|
|
417
272
|
|
|
418
273
|
"use strict";
|
|
419
274
|
|
|
420
275
|
|
|
421
|
-
|
|
422
|
-
value: true
|
|
423
|
-
});
|
|
424
|
-
exports.pickFieldFromJSONSchema = void 0;
|
|
425
|
-
|
|
426
|
-
var lodash_1 = __webpack_require__(2);
|
|
427
|
-
|
|
428
|
-
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
429
|
-
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
430
|
-
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
431
|
-
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
432
|
-
accum[k] = optionsSchema[k][fieldName];
|
|
433
|
-
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
434
|
-
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
435
|
-
|
|
436
|
-
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
437
|
-
accum[k] = nestedSchema;
|
|
438
|
-
}
|
|
439
|
-
}
|
|
276
|
+
var _slicedToArray = __webpack_require__(52);
|
|
440
277
|
|
|
441
|
-
|
|
442
|
-
}, {});
|
|
443
|
-
};
|
|
278
|
+
var _defineProperty = __webpack_require__(7);
|
|
444
279
|
|
|
445
|
-
|
|
280
|
+
var _taggedTemplateLiteral = __webpack_require__(81);
|
|
446
281
|
|
|
447
|
-
|
|
282
|
+
var _templateObject, _templateObject2;
|
|
448
283
|
|
|
449
|
-
|
|
450
|
-
|
|
284
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
285
|
+
var t = {};
|
|
451
286
|
|
|
452
|
-
|
|
287
|
+
for (var p in s) {
|
|
288
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
289
|
+
}
|
|
453
290
|
|
|
291
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
292
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
293
|
+
}
|
|
294
|
+
return t;
|
|
295
|
+
};
|
|
454
296
|
|
|
455
297
|
Object.defineProperty(exports, "__esModule", {
|
|
456
298
|
value: true
|
|
457
299
|
});
|
|
458
|
-
exports.
|
|
300
|
+
exports.MINIMUM_COLUMN_SIZE = void 0;
|
|
459
301
|
|
|
460
302
|
var React = __webpack_require__(1);
|
|
461
303
|
|
|
@@ -463,1449 +305,1648 @@ var T = __webpack_require__(0);
|
|
|
463
305
|
|
|
464
306
|
var lodash_1 = __webpack_require__(2);
|
|
465
307
|
|
|
308
|
+
var styled_components_1 = __webpack_require__(4);
|
|
309
|
+
|
|
466
310
|
var i18n_1 = __webpack_require__(3);
|
|
467
311
|
|
|
468
|
-
var
|
|
312
|
+
var Table_1 = __webpack_require__(89);
|
|
469
313
|
|
|
470
|
-
var
|
|
471
|
-
/**
|
|
472
|
-
* @method shouldShowIconPlaceholder
|
|
473
|
-
* @param {object} dataSources
|
|
474
|
-
* @param {boolean} loading
|
|
475
|
-
* @returns {boolean}
|
|
476
|
-
*/
|
|
314
|
+
var Paginator_1 = __webpack_require__(267);
|
|
477
315
|
|
|
316
|
+
var Message_1 = __webpack_require__(268);
|
|
478
317
|
|
|
479
|
-
var
|
|
480
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
481
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
482
|
-
var noData = data === undefined;
|
|
483
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
484
|
-
var noFields = fields === undefined;
|
|
485
|
-
return loading || noData || noFields;
|
|
486
|
-
};
|
|
318
|
+
var colorUtils_1 = __webpack_require__(13);
|
|
487
319
|
|
|
488
|
-
|
|
489
|
-
var propTypes = {
|
|
490
|
-
icon: T.func,
|
|
491
|
-
width: T.oneOfType([T.string, T.number]),
|
|
492
|
-
height: T.oneOfType([T.string, T.number]),
|
|
493
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
494
|
-
backgroundColor: T.string,
|
|
495
|
-
iconColor: T.string
|
|
496
|
-
};
|
|
497
|
-
/**
|
|
498
|
-
* @method IconPlaceholder
|
|
499
|
-
* @param {IconPlaceholderProps} props
|
|
500
|
-
* @returns {React.ReactElement}
|
|
501
|
-
*/
|
|
320
|
+
var style_1 = __webpack_require__(15);
|
|
502
321
|
|
|
503
|
-
var
|
|
504
|
-
var width = props.width,
|
|
505
|
-
height = props.height,
|
|
506
|
-
icon = props.icon,
|
|
507
|
-
iconColor = props.iconColor;
|
|
322
|
+
var pick_1 = __webpack_require__(20);
|
|
508
323
|
|
|
509
|
-
|
|
510
|
-
return React.createElement(icon, {
|
|
511
|
-
style: {
|
|
512
|
-
left: '50%',
|
|
513
|
-
top: '50%',
|
|
514
|
-
color: iconColor,
|
|
515
|
-
opacity: 0.15,
|
|
516
|
-
position: 'absolute',
|
|
517
|
-
transform: 'translate(-50%, -50%)'
|
|
518
|
-
},
|
|
519
|
-
width: '50%',
|
|
520
|
-
height: '50%'
|
|
521
|
-
});
|
|
522
|
-
}
|
|
324
|
+
var variables_1 = __webpack_require__(10);
|
|
523
325
|
|
|
524
|
-
|
|
525
|
-
width: width,
|
|
526
|
-
height: height,
|
|
527
|
-
level: "warning",
|
|
528
|
-
message: i18n_1._('No DataSource Connected')
|
|
529
|
-
});
|
|
530
|
-
};
|
|
326
|
+
var hooks_1 = __webpack_require__(269);
|
|
531
327
|
|
|
532
|
-
|
|
533
|
-
IconPlaceholder.defaultProps = {
|
|
534
|
-
width: '100%',
|
|
535
|
-
height: 250
|
|
536
|
-
};
|
|
537
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
328
|
+
var consts_1 = __webpack_require__(111);
|
|
538
329
|
|
|
539
|
-
|
|
330
|
+
var cells_1 = __webpack_require__(270);
|
|
540
331
|
|
|
541
|
-
|
|
542
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
332
|
+
var getPagination_1 = __webpack_require__(28);
|
|
543
333
|
|
|
544
|
-
|
|
334
|
+
var getSorting_1 = __webpack_require__(27);
|
|
545
335
|
|
|
336
|
+
var FixedSizeContainer_1 = __webpack_require__(14);
|
|
546
337
|
|
|
547
|
-
var
|
|
548
|
-
|
|
549
|
-
Object.defineProperty(exports, "__esModule", {
|
|
550
|
-
value: true
|
|
551
|
-
});
|
|
552
|
-
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
553
|
-
|
|
554
|
-
var T = __webpack_require__(0);
|
|
338
|
+
var utils_1 = __webpack_require__(275); // debounce was imported this way due to typing
|
|
339
|
+
// eslint-disable-next-line import/order
|
|
555
340
|
|
|
556
|
-
var lodash_1 = __webpack_require__(2);
|
|
557
341
|
|
|
558
|
-
var
|
|
342
|
+
var debounce = __webpack_require__(276);
|
|
559
343
|
|
|
560
|
-
exports.
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
344
|
+
exports.MINIMUM_COLUMN_SIZE = 30;
|
|
345
|
+
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
346
|
+
displayName: "PureTable__NonVisibleTableHead",
|
|
347
|
+
componentId: "tovzjg-0"
|
|
348
|
+
})(["display:none;"]);
|
|
349
|
+
var FixedTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
350
|
+
displayName: "PureTable__FixedTableHead",
|
|
351
|
+
componentId: "tovzjg-1"
|
|
352
|
+
})(["position:sticky;top:0;"]);
|
|
353
|
+
var VizTableContainer = styled_components_1.default.div.withConfig({
|
|
354
|
+
displayName: "PureTable__VizTableContainer",
|
|
355
|
+
componentId: "tovzjg-2"
|
|
356
|
+
})(["box-sizing:border-box;padding:", ";background-color:", ";display:flex;flex-flow:column nowrap;overflow:hidden;"], pick_1.default({
|
|
357
|
+
enterprise: variables_1.default.spacingHalf,
|
|
358
|
+
prisma: variables_1.default.spacingSmall
|
|
359
|
+
}), function (props) {
|
|
360
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
564
361
|
});
|
|
362
|
+
VizTableContainer.displayName = 'VizTableContainer';
|
|
363
|
+
var PAGINATOR_CONTAINER_HEIGHT = 38;
|
|
364
|
+
var PAGINATOR_SPACING = 5;
|
|
365
|
+
var SUITableContainer = styled_components_1.default.div.withConfig({
|
|
366
|
+
displayName: "PureTable__SUITableContainer",
|
|
367
|
+
componentId: "tovzjg-3"
|
|
368
|
+
})(["& *{font-family:", ";font-size:", ";line-height:", ";}box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " & [data-fixed-column='true']{table-layout:", ";width:", ";}"], function (props) {
|
|
369
|
+
return props.font;
|
|
370
|
+
}, function (props) {
|
|
371
|
+
return props.fontSize;
|
|
372
|
+
}, function (props) {
|
|
373
|
+
return props.lineHeight;
|
|
374
|
+
}, function (_ref) {
|
|
375
|
+
var width = _ref.width,
|
|
376
|
+
height = _ref.height,
|
|
377
|
+
isPaging = _ref.isPaging,
|
|
378
|
+
theme = _ref.theme;
|
|
379
|
+
var padding = pick_1.default({
|
|
380
|
+
enterprise: variables_1.default.spacingHalf({
|
|
381
|
+
theme: theme
|
|
382
|
+
}),
|
|
383
|
+
prisma: variables_1.default.spacingSmall({
|
|
384
|
+
theme: theme
|
|
385
|
+
})
|
|
386
|
+
})({
|
|
387
|
+
theme: theme
|
|
388
|
+
});
|
|
389
|
+
var paddingOffset = parseInt(padding, 10) * 2;
|
|
390
|
+
return style_1.toDimension({
|
|
391
|
+
width: width - paddingOffset,
|
|
392
|
+
height: isPaging ? height - PAGINATOR_CONTAINER_HEIGHT - PAGINATOR_SPACING - paddingOffset : height - paddingOffset
|
|
393
|
+
});
|
|
394
|
+
}, function (_ref2) {
|
|
395
|
+
var isPaging = _ref2.isPaging;
|
|
396
|
+
return isPaging && "\n margin-bottom: ".concat(PAGINATOR_SPACING, "px;\n ");
|
|
397
|
+
}, function (_ref3) {
|
|
398
|
+
var headerStyle = _ref3.headerStyle;
|
|
399
|
+
return headerStyle && headerStyle.backgroundColor && styled_components_1.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & [data-test='head-cell'] {\n background-color: ", ";\n }\n "])), headerStyle.backgroundColor);
|
|
400
|
+
}, function (_ref4) {
|
|
401
|
+
var headerStyle = _ref4.headerStyle;
|
|
402
|
+
return headerStyle && headerStyle.color && styled_components_1.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & [data-test='head-cell'] > div > span {\n color: ", ";\n }\n "])), headerStyle.color);
|
|
403
|
+
}, function (_ref5) {
|
|
404
|
+
var widthSet = _ref5.widthSet;
|
|
405
|
+
return widthSet ? 'fixed' : 'auto';
|
|
406
|
+
}, function (_ref6) {
|
|
407
|
+
var widthSet = _ref6.widthSet;
|
|
408
|
+
return widthSet ? '0' : '100%';
|
|
409
|
+
});
|
|
410
|
+
SUITableContainer.displayName = 'SUITableContainer';
|
|
411
|
+
var PaginatorContainer = styled_components_1.default.div.withConfig({
|
|
412
|
+
displayName: "PureTable__PaginatorContainer",
|
|
413
|
+
componentId: "tovzjg-4"
|
|
414
|
+
})(["position:relative;text-align:right;height:", "px;"], PAGINATOR_CONTAINER_HEIGHT);
|
|
415
|
+
PaginatorContainer.displayName = 'PaginatorContainer'; // allow for early return in case of empty tableBody while still following hook rules
|
|
565
416
|
|
|
566
|
-
var
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
var onSort;
|
|
577
|
-
|
|
578
|
-
if (lodash_1.isFunction(onRequestParamsChange)) {
|
|
579
|
-
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
580
|
-
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
581
|
-
currentSortDir = requestParams.sort[currentSortKey];
|
|
582
|
-
} // undid memoization since there is a dependency on requestParams, which is a deeply nested object
|
|
583
|
-
|
|
417
|
+
var withEmptyTableMessage = function withEmptyTableMessage(Viz) {
|
|
418
|
+
// TODO(fkurniawan): add omit type to differentiate WrapperProps from PureTableProps
|
|
419
|
+
var Wrapper = function Wrapper(props) {
|
|
420
|
+
var headers = props.headers,
|
|
421
|
+
table = props.table,
|
|
422
|
+
headerVisibility = props.headerVisibility,
|
|
423
|
+
showRowNumbers = props.showRowNumbers,
|
|
424
|
+
showInternalFields = props.showInternalFields,
|
|
425
|
+
tableFormat = props.tableFormat,
|
|
426
|
+
columnFormat = props.columnFormat;
|
|
584
427
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
428
|
+
var _hooks_1$useTable = hooks_1.useTable({
|
|
429
|
+
headers: headers,
|
|
430
|
+
table: table,
|
|
431
|
+
headerVisibility: headerVisibility,
|
|
432
|
+
showRowNumbers: showRowNumbers,
|
|
433
|
+
showInternalFields: showInternalFields,
|
|
434
|
+
tableFormat: Object.assign(Object.assign(Object.assign(Object.assign({}, tableFormat), (tableFormat === null || tableFormat === void 0 ? void 0 : tableFormat.align) && {
|
|
435
|
+
align: lodash_1.cloneDeep(tableFormat.align)
|
|
436
|
+
}), (tableFormat === null || tableFormat === void 0 ? void 0 : tableFormat.cellTypes) && {
|
|
437
|
+
cellTypes: lodash_1.cloneDeep(tableFormat.cellTypes)
|
|
438
|
+
}), (tableFormat === null || tableFormat === void 0 ? void 0 : tableFormat.data) && {
|
|
439
|
+
data: lodash_1.cloneDeep(tableFormat.data)
|
|
440
|
+
}),
|
|
441
|
+
columnFormat: columnFormat
|
|
442
|
+
}),
|
|
443
|
+
tableHeader = _hooks_1$useTable.tableHeader,
|
|
444
|
+
tableBody = _hooks_1$useTable.tableBody;
|
|
588
445
|
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
}));
|
|
595
|
-
} else {
|
|
596
|
-
onRequestParamsChange(requestParams);
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
}
|
|
446
|
+
if (tableBody.rows.length === 0) {
|
|
447
|
+
return React.createElement(Message_1.default, {
|
|
448
|
+
type: "warning"
|
|
449
|
+
}, i18n_1._('No data!'));
|
|
450
|
+
}
|
|
600
451
|
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
452
|
+
return React.createElement(Viz, Object.assign({}, props, {
|
|
453
|
+
tableHeader: tableHeader,
|
|
454
|
+
tableBody: tableBody
|
|
455
|
+
}));
|
|
605
456
|
};
|
|
606
|
-
};
|
|
607
457
|
|
|
608
|
-
|
|
458
|
+
Wrapper.displayName = 'PureTableWrapper';
|
|
459
|
+
return Wrapper;
|
|
460
|
+
};
|
|
609
461
|
|
|
610
|
-
|
|
462
|
+
var useTableHead = function useTableHead(visibility) {
|
|
463
|
+
if (visibility === 'none') {
|
|
464
|
+
return NonVisibleTableHead;
|
|
465
|
+
}
|
|
611
466
|
|
|
612
|
-
|
|
613
|
-
|
|
467
|
+
if (visibility === 'fixed') {
|
|
468
|
+
return FixedTableHead;
|
|
469
|
+
}
|
|
614
470
|
|
|
615
|
-
|
|
471
|
+
return Table_1.default.Head;
|
|
472
|
+
};
|
|
616
473
|
|
|
474
|
+
var HeadCell = function HeadCell(_a) {
|
|
475
|
+
var setTempColumnWidth = _a.setTempColumnWidth,
|
|
476
|
+
setRemainingWidth = _a.setRemainingWidth,
|
|
477
|
+
value = _a.value,
|
|
478
|
+
widthSet = _a.widthSet,
|
|
479
|
+
headerVisibility = _a.headerVisibility,
|
|
480
|
+
props = __rest(_a, ["setTempColumnWidth", "setRemainingWidth", "value", "widthSet", "headerVisibility"]);
|
|
617
481
|
|
|
618
|
-
var
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
482
|
+
var cellRef = React.useRef(null);
|
|
483
|
+
React.useEffect(function () {
|
|
484
|
+
if (!widthSet && cellRef.current && cellRef.current.clientWidth >= 0 && headerVisibility !== 'none') {
|
|
485
|
+
setTempColumnWidth(function (columnWidth) {
|
|
486
|
+
return Object.assign(Object.assign({}, columnWidth), _defineProperty({}, value, {
|
|
487
|
+
width: cellRef.current.clientWidth
|
|
488
|
+
}));
|
|
489
|
+
});
|
|
490
|
+
setRemainingWidth(function (prevWidth) {
|
|
491
|
+
return prevWidth + Math.max(props.width ? cellRef.current.clientWidth - props.width : 0, 0);
|
|
492
|
+
});
|
|
624
493
|
}
|
|
625
494
|
});
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
});
|
|
630
|
-
|
|
631
|
-
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
632
|
-
for (var p in m) {
|
|
633
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
634
|
-
}
|
|
495
|
+
return React.createElement(Table_1.default.HeadCell, Object.assign({
|
|
496
|
+
elementRef: cellRef
|
|
497
|
+
}, props), value);
|
|
635
498
|
};
|
|
636
499
|
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
500
|
+
var fontMap = {
|
|
501
|
+
proportional: 'Splunk Platform Sans',
|
|
502
|
+
monospace: 'Splunk Platform Mono'
|
|
503
|
+
};
|
|
504
|
+
var fontSizeMap = {
|
|
505
|
+
extraSmall: '10px',
|
|
506
|
+
small: '12px',
|
|
507
|
+
default: '14px',
|
|
508
|
+
large: '16px'
|
|
509
|
+
};
|
|
510
|
+
var rowHeightMap = {
|
|
511
|
+
extraSmall: '12px',
|
|
512
|
+
small: '12px',
|
|
513
|
+
default: '20px',
|
|
514
|
+
large: '24px'
|
|
515
|
+
};
|
|
645
516
|
|
|
646
|
-
var
|
|
517
|
+
var PureTable = function PureTable(props) {
|
|
518
|
+
var _a;
|
|
647
519
|
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
520
|
+
var count = props.count,
|
|
521
|
+
width = props.width,
|
|
522
|
+
height = props.height,
|
|
523
|
+
backgroundColor = props.backgroundColor,
|
|
524
|
+
tableHeader = props.tableHeader,
|
|
525
|
+
tableBody = props.tableBody,
|
|
526
|
+
showRowNumbers = props.showRowNumbers,
|
|
527
|
+
_props$sortParams = props.sortParams,
|
|
528
|
+
currentSortKey = _props$sortParams.currentSortKey,
|
|
529
|
+
currentSortDir = _props$sortParams.currentSortDir,
|
|
530
|
+
onSort = _props$sortParams.onSort,
|
|
531
|
+
_b = props.paginatorParams,
|
|
532
|
+
isPaging = _b.isPaging,
|
|
533
|
+
paginatorOnChange = _b.onChange,
|
|
534
|
+
paginatorProps = __rest(_b, ["isPaging", "onChange"]),
|
|
535
|
+
onCellClick = props.onCellClick,
|
|
536
|
+
onColumnFormatChange = props.onColumnFormatChange,
|
|
537
|
+
columnFormat = props.columnFormat,
|
|
538
|
+
mode = props.mode,
|
|
539
|
+
headerVisibility = props.headerVisibility,
|
|
540
|
+
font = props.font,
|
|
541
|
+
fontSize = props.fontSize;
|
|
654
542
|
|
|
655
|
-
|
|
543
|
+
var _React$useState = React.useState(columnFormat),
|
|
544
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
545
|
+
columns = _React$useState2[0],
|
|
546
|
+
setColumns = _React$useState2[1];
|
|
656
547
|
|
|
657
|
-
|
|
658
|
-
|
|
548
|
+
var _React$useState3 = React.useState(columnFormat),
|
|
549
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
550
|
+
tempColumns = _React$useState4[0],
|
|
551
|
+
setTempColumns = _React$useState4[1];
|
|
659
552
|
|
|
660
|
-
|
|
553
|
+
var _React$useState5 = React.useState(0),
|
|
554
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
555
|
+
remainingWidth = _React$useState6[0],
|
|
556
|
+
setRemainingWidth = _React$useState6[1];
|
|
661
557
|
|
|
558
|
+
var numColumnsWithoutWidth = Object.keys(tempColumns).reduce(function (acc, key) {
|
|
559
|
+
var _a;
|
|
662
560
|
|
|
663
|
-
|
|
561
|
+
if ((_a = columns[key]) === null || _a === void 0 ? void 0 : _a.width) {
|
|
562
|
+
return acc;
|
|
563
|
+
}
|
|
664
564
|
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
565
|
+
return acc + 1;
|
|
566
|
+
}, 0);
|
|
567
|
+
var containerRef = React.useRef(null);
|
|
568
|
+
var containerRefInner = React.useRef(null);
|
|
569
|
+
var containerRefInnerWidth = (_a = containerRefInner === null || containerRefInner === void 0 ? void 0 : containerRefInner.current) === null || _a === void 0 ? void 0 : _a.clientWidth;
|
|
570
|
+
var widthRef = React.useRef(0);
|
|
571
|
+
var widthSet = tableHeader.cells.length === tableHeader.cells.filter(function (_ref7) {
|
|
572
|
+
var value = _ref7.value,
|
|
573
|
+
showCell = _ref7.showCell;
|
|
668
574
|
|
|
669
|
-
var
|
|
575
|
+
var _a, _b;
|
|
670
576
|
|
|
671
|
-
|
|
577
|
+
return ((_a = columns[value]) === null || _a === void 0 ? void 0 : _a.width) !== undefined || ((_b = tempColumns[value]) === null || _b === void 0 ? void 0 : _b.width) !== undefined || !showCell;
|
|
578
|
+
}).length;
|
|
579
|
+
React.useEffect(function () {
|
|
580
|
+
if (containerRef.current && containerRef.current.clientWidth !== widthRef.current) {
|
|
581
|
+
widthRef.current = containerRef.current.clientWidth;
|
|
582
|
+
recalculateTempColumnWidths();
|
|
583
|
+
}
|
|
584
|
+
});
|
|
585
|
+
var firstRenderCount = React.useRef(count);
|
|
586
|
+
React.useEffect(function () {
|
|
587
|
+
if (firstRenderCount.current !== count) {
|
|
588
|
+
firstRenderCount.current = count;
|
|
589
|
+
paginatorOnChange(null, {
|
|
590
|
+
count: count
|
|
591
|
+
});
|
|
592
|
+
}
|
|
593
|
+
}, [count, paginatorProps]);
|
|
594
|
+
var stringifiedColumnFormat = JSON.stringify(columnFormat);
|
|
595
|
+
var columnFormatRef = React.useRef(stringifiedColumnFormat);
|
|
596
|
+
var modeRef = React.useRef(mode);
|
|
597
|
+
React.useEffect(function () {
|
|
598
|
+
if (modeRef.current !== mode || columnFormatRef.current !== stringifiedColumnFormat) {
|
|
599
|
+
columnFormatRef.current = stringifiedColumnFormat;
|
|
600
|
+
modeRef.current = mode;
|
|
601
|
+
setColumns(columnFormat);
|
|
602
|
+
}
|
|
603
|
+
}, [mode, stringifiedColumnFormat]);
|
|
604
|
+
var TableHead = useTableHead(headerVisibility);
|
|
605
|
+
var debouncedDrilldown = debounce(function (e, payload) {
|
|
606
|
+
if (window.getSelection().toString() === '') {
|
|
607
|
+
if (lodash_1.isFunction(onCellClick)) {
|
|
608
|
+
onCellClick({
|
|
609
|
+
e: e,
|
|
610
|
+
payload: payload
|
|
611
|
+
});
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
}, 200);
|
|
615
|
+
var drilldownHandler = React.useCallback(function (e) {
|
|
616
|
+
var element = e.target;
|
|
617
|
+
var row = element.getAttribute('data-row-index');
|
|
618
|
+
var col = element.getAttribute('data-col-index');
|
|
619
|
+
var arrayIndex = element.getAttribute('data-array-index') || -1;
|
|
672
620
|
|
|
673
|
-
|
|
621
|
+
if (row && col) {
|
|
622
|
+
var cellRefIndex = +col;
|
|
623
|
+
var cellIndex = cellRefIndex;
|
|
624
|
+
var rowIndex = +row;
|
|
625
|
+
var fieldValue = tableHeader.cells[cellRefIndex].value;
|
|
626
|
+
var cellValue = tableBody.rows[rowIndex].cells[cellRefIndex].value;
|
|
627
|
+
var cellRawValue = tableBody.rows[rowIndex].cells[cellRefIndex].value;
|
|
628
|
+
var value = arrayIndex === -1 ? cellValue : cellRawValue[+arrayIndex]; // Wish we did not have these if statements for
|
|
629
|
+
// showRowNumbers
|
|
674
630
|
|
|
675
|
-
|
|
631
|
+
if (showRowNumbers === true) {
|
|
632
|
+
if (cellIndex === 0) {
|
|
633
|
+
// no click event for row numbers
|
|
634
|
+
return;
|
|
635
|
+
}
|
|
676
636
|
|
|
677
|
-
|
|
637
|
+
cellIndex -= 1;
|
|
638
|
+
}
|
|
678
639
|
|
|
679
|
-
var
|
|
640
|
+
var payload = {
|
|
641
|
+
cellIndex: cellIndex,
|
|
642
|
+
rowIndex: rowIndex,
|
|
643
|
+
fieldValue: fieldValue,
|
|
644
|
+
cellValue: cellValue,
|
|
645
|
+
cellRawValue: cellRawValue,
|
|
646
|
+
value: value,
|
|
647
|
+
name: fieldValue
|
|
648
|
+
};
|
|
649
|
+
tableBody.rows[rowIndex].cells.forEach(function (c, index) {
|
|
650
|
+
var rowToken = "row.".concat(tableHeader.cells[index].value, ".value");
|
|
651
|
+
payload[rowToken] = c.value;
|
|
652
|
+
});
|
|
653
|
+
debouncedDrilldown(e.nativeEvent, payload);
|
|
654
|
+
}
|
|
655
|
+
}, [onCellClick, showRowNumbers, tableHeader, tableBody]);
|
|
656
|
+
var debouncedOnColumnFormatChange = React.useMemo(function () {
|
|
657
|
+
return debounce(function (newFormat) {
|
|
658
|
+
onColumnFormatChange(newFormat);
|
|
659
|
+
}, 300);
|
|
660
|
+
}, [onColumnFormatChange]);
|
|
680
661
|
|
|
681
|
-
var
|
|
662
|
+
var handleResizeColumn = function handleResizeColumn(_event, payload) {
|
|
663
|
+
var updatedCF = columns;
|
|
664
|
+
var field = payload.columnId;
|
|
665
|
+
var lastShowingTableHeaderWidth = utils_1.getLastColumnWidth(containerRefInnerWidth, lastShowingTableHeadersID, columns, tempColumns, firstShowingTableHeadersID);
|
|
666
|
+
updatedCF[lastShowingTableHeadersID] = Object.assign(Object.assign({}, updatedCF[lastShowingTableHeadersID]), {
|
|
667
|
+
width: Math.max(lastShowingTableHeaderWidth, exports.MINIMUM_COLUMN_SIZE)
|
|
668
|
+
});
|
|
669
|
+
updatedCF[field] = Object.assign(Object.assign({}, updatedCF[field]), {
|
|
670
|
+
width: Math.max(payload.width, exports.MINIMUM_COLUMN_SIZE)
|
|
671
|
+
});
|
|
672
|
+
setColumns(Object.assign({}, updatedCF)); // Updates column json in edit mode
|
|
682
673
|
|
|
683
|
-
|
|
674
|
+
if (mode === 'edit') {
|
|
675
|
+
debouncedOnColumnFormatChange(updatedCF);
|
|
676
|
+
}
|
|
677
|
+
};
|
|
684
678
|
|
|
685
|
-
var
|
|
679
|
+
var handleEventClick = function handleEventClick(e) {
|
|
680
|
+
e.stopPropagation();
|
|
681
|
+
};
|
|
686
682
|
|
|
687
|
-
var
|
|
683
|
+
var recalculateTempColumnWidths = function recalculateTempColumnWidths() {
|
|
684
|
+
setTempColumns({});
|
|
685
|
+
setRemainingWidth(0);
|
|
686
|
+
};
|
|
688
687
|
|
|
689
|
-
var
|
|
688
|
+
var withColumnResizing = function withColumnResizing(func) {
|
|
689
|
+
return function (e, additionalParams) {
|
|
690
|
+
recalculateTempColumnWidths();
|
|
691
|
+
func(e, additionalParams);
|
|
692
|
+
};
|
|
693
|
+
};
|
|
690
694
|
|
|
691
|
-
var
|
|
695
|
+
var fontMapped = fontMap[font] || fontMap.proportional;
|
|
696
|
+
var fontSizeMapped = fontSizeMap[fontSize] || fontSizeMap.default;
|
|
697
|
+
var rowHeightMapped = rowHeightMap[fontSize] || rowHeightMap.default;
|
|
698
|
+
var firstShowingTableHeadersID = tableHeader.cells.filter(function (c) {
|
|
699
|
+
return c.showCell;
|
|
700
|
+
}).map(function (c) {
|
|
701
|
+
return c.value;
|
|
702
|
+
})[0];
|
|
703
|
+
var lastShowingTableHeadersID = tableHeader.cells.filter(function (c) {
|
|
704
|
+
return c.showCell;
|
|
705
|
+
}).map(function (c) {
|
|
706
|
+
return c.value;
|
|
707
|
+
}).reverse()[0];
|
|
708
|
+
return React.createElement(VizTableContainer, {
|
|
709
|
+
backgroundColor: backgroundColor,
|
|
710
|
+
ref: containerRef
|
|
711
|
+
}, React.createElement(SUITableContainer, {
|
|
712
|
+
ref: containerRefInner,
|
|
713
|
+
width: width,
|
|
714
|
+
height: height,
|
|
715
|
+
isPaging: isPaging,
|
|
716
|
+
headerStyle: tableHeader.style,
|
|
717
|
+
widthSet: widthSet,
|
|
718
|
+
font: fontMapped,
|
|
719
|
+
fontSize: fontSizeMapped,
|
|
720
|
+
lineHeight: rowHeightMapped
|
|
721
|
+
}, React.createElement(Table_1.default, {
|
|
722
|
+
headType: headerVisibility !== 'none' ? 'inline' : undefined,
|
|
723
|
+
innerStyle: {
|
|
724
|
+
height: '100%'
|
|
725
|
+
},
|
|
726
|
+
outerStyle: {
|
|
727
|
+
height: '100%',
|
|
728
|
+
cursor: onCellClick ? 'pointer' : 'unset'
|
|
729
|
+
},
|
|
730
|
+
onClick: onCellClick ? drilldownHandler : lodash_1.noop,
|
|
731
|
+
onRequestResizeColumn: handleResizeColumn
|
|
732
|
+
}, React.createElement(TableHead, null, tableHeader.cells.filter(function (c) {
|
|
733
|
+
return c.showCell;
|
|
734
|
+
}).map(function (_a) {
|
|
735
|
+
var key = _a.key,
|
|
736
|
+
value = _a.value,
|
|
737
|
+
sortKey = _a.sortKey,
|
|
738
|
+
rest = __rest(_a, ["key", "value", "sortKey"]);
|
|
692
739
|
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
740
|
+
return React.createElement(HeadCell, Object.assign({
|
|
741
|
+
key: key,
|
|
742
|
+
columnId: value,
|
|
743
|
+
sortDir: sortKey === currentSortKey ? currentSortDir : 'none',
|
|
744
|
+
width: value === lastShowingTableHeadersID ? utils_1.getLastColumnWidth(containerRefInnerWidth, lastShowingTableHeadersID, columns, tempColumns, firstShowingTableHeadersID) : utils_1.getColumnWidth({
|
|
745
|
+
columns: columns,
|
|
746
|
+
tempColumns: tempColumns,
|
|
747
|
+
columnName: value,
|
|
748
|
+
remainingWidth: remainingWidth,
|
|
749
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
750
|
+
}),
|
|
751
|
+
onMouseDown: handleEventClick,
|
|
752
|
+
value: value,
|
|
753
|
+
setTempColumnWidth: setTempColumns,
|
|
754
|
+
widthSet: widthSet,
|
|
755
|
+
onSort: withColumnResizing(onSort),
|
|
756
|
+
headerVisibility: headerVisibility,
|
|
757
|
+
setRemainingWidth: setRemainingWidth
|
|
758
|
+
}, Object.assign({
|
|
759
|
+
sortKey: sortKey
|
|
760
|
+
}, rest)));
|
|
761
|
+
})), React.createElement(Table_1.default.Body, null, tableBody.rows.map(function (row) {
|
|
762
|
+
return React.createElement(Table_1.default.Row, {
|
|
763
|
+
key: row.key
|
|
764
|
+
}, row.cells.filter(function (c) {
|
|
765
|
+
return c.showCell;
|
|
766
|
+
}).map(function (cell) {
|
|
767
|
+
return React.createElement(cells_1.SwitchTableCell, {
|
|
768
|
+
key: cell.key,
|
|
769
|
+
type: cell.cellType
|
|
770
|
+
}, React.createElement(cells_1.TextCell, {
|
|
771
|
+
cell: cell,
|
|
772
|
+
useMouseOverEffect: !!onCellClick,
|
|
773
|
+
width: cell.header === lastShowingTableHeadersID ? utils_1.getLastColumnWidth(containerRefInnerWidth, lastShowingTableHeadersID, columns, tempColumns, firstShowingTableHeadersID) : utils_1.getColumnWidth({
|
|
774
|
+
columns: columns,
|
|
775
|
+
tempColumns: tempColumns,
|
|
776
|
+
columnName: cell.header,
|
|
777
|
+
remainingWidth: remainingWidth,
|
|
778
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
779
|
+
})
|
|
780
|
+
}), React.createElement(cells_1.SparklineCell, {
|
|
781
|
+
cell: cell,
|
|
782
|
+
useMouseOverEffect: !!onCellClick,
|
|
783
|
+
width: cell.header === lastShowingTableHeadersID ? utils_1.getLastColumnWidth(containerRefInnerWidth, lastShowingTableHeadersID, columns, tempColumns, firstShowingTableHeadersID) : utils_1.getColumnWidth({
|
|
784
|
+
columns: columns,
|
|
785
|
+
tempColumns: tempColumns,
|
|
786
|
+
columnName: cell.header,
|
|
787
|
+
remainingWidth: remainingWidth,
|
|
788
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
789
|
+
})
|
|
790
|
+
}), React.createElement(cells_1.ArrayCell, {
|
|
791
|
+
cell: cell,
|
|
792
|
+
useMouseOverEffect: !!onCellClick,
|
|
793
|
+
width: cell.header === lastShowingTableHeadersID ? utils_1.getLastColumnWidth(containerRefInnerWidth, lastShowingTableHeadersID, columns, tempColumns, firstShowingTableHeadersID) : utils_1.getColumnWidth({
|
|
794
|
+
columns: columns,
|
|
795
|
+
tempColumns: tempColumns,
|
|
796
|
+
columnName: cell.header,
|
|
797
|
+
remainingWidth: remainingWidth,
|
|
798
|
+
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
799
|
+
})
|
|
800
|
+
}));
|
|
801
|
+
}));
|
|
802
|
+
})))), isPaging ? React.createElement(PaginatorContainer, null, React.createElement(Paginator_1.default, Object.assign({
|
|
803
|
+
onChange: withColumnResizing(paginatorOnChange)
|
|
804
|
+
}, paginatorProps))) : null);
|
|
713
805
|
};
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
},
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
tableRowBackgroundColorEvenConfig: {
|
|
767
|
-
channel: 'hsv.v',
|
|
768
|
-
value: '*0.96'
|
|
806
|
+
|
|
807
|
+
var cellDataType = T.oneOfType([T.string, T.number, T.arrayOf(T.oneOfType([T.string, T.number]))]);
|
|
808
|
+
PureTable.propTypes = {
|
|
809
|
+
backgroundColor: T.string,
|
|
810
|
+
count: T.number,
|
|
811
|
+
columnFormat: T.objectOf(T.shape({
|
|
812
|
+
align: T.arrayOf(T.oneOf(consts_1.validAlignments)),
|
|
813
|
+
cellTypes: T.arrayOf(T.oneOf(consts_1.validCellRenderers)),
|
|
814
|
+
data: T.arrayOf(cellDataType),
|
|
815
|
+
rowBackgroundColors: T.arrayOf(T.string),
|
|
816
|
+
rowColors: T.arrayOf(T.string),
|
|
817
|
+
sparklineAreaColors: T.arrayOf(T.string),
|
|
818
|
+
sparklineColors: T.arrayOf(T.string),
|
|
819
|
+
sparklineTypes: T.arrayOf(T.oneOf(consts_1.validSparklineTypes))
|
|
820
|
+
})),
|
|
821
|
+
headers: T.arrayOf(T.string),
|
|
822
|
+
headerVisibility: T.oneOf(consts_1.validHeaderVisibilities),
|
|
823
|
+
height: T.oneOfType([T.number]),
|
|
824
|
+
mode: T.string,
|
|
825
|
+
onCellClick: T.func,
|
|
826
|
+
paginatorParams: getPagination_1.PaginatorParamsPropTypes,
|
|
827
|
+
showRowNumbers: T.bool,
|
|
828
|
+
sortParams: getSorting_1.SortParamsPropTypes,
|
|
829
|
+
table: T.arrayOf(T.arrayOf(cellDataType)),
|
|
830
|
+
tableFormat: T.shape({
|
|
831
|
+
align: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validAlignments))),
|
|
832
|
+
cellTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validCellRenderers))),
|
|
833
|
+
data: T.arrayOf(T.arrayOf(cellDataType)),
|
|
834
|
+
headerBackgroundColor: T.string,
|
|
835
|
+
headerColor: T.string,
|
|
836
|
+
rowBackgroundColors: T.oneOfType([T.arrayOf(T.string), T.arrayOf(T.arrayOf(T.string))]),
|
|
837
|
+
rowColors: T.oneOfType([T.arrayOf(T.string), T.arrayOf(T.arrayOf(T.string))]),
|
|
838
|
+
sparklineAreaColors: T.arrayOf(T.arrayOf(T.string)),
|
|
839
|
+
sparklineColors: T.arrayOf(T.arrayOf(T.string)),
|
|
840
|
+
sparklineTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validSparklineTypes)))
|
|
841
|
+
}),
|
|
842
|
+
theme: T.any,
|
|
843
|
+
width: T.oneOfType([T.number]),
|
|
844
|
+
onColumnFormatChange: T.func,
|
|
845
|
+
font: T.string,
|
|
846
|
+
fontSize: T.string
|
|
847
|
+
};
|
|
848
|
+
PureTable.defaultProps = {
|
|
849
|
+
columnFormat: {},
|
|
850
|
+
headers: [],
|
|
851
|
+
headerVisibility: 'inline',
|
|
852
|
+
height: 300,
|
|
853
|
+
mode: 'view',
|
|
854
|
+
onCellClick: null,
|
|
855
|
+
paginatorParams: {
|
|
856
|
+
isPaging: false,
|
|
857
|
+
onChange: lodash_1.noop
|
|
769
858
|
},
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
859
|
+
showRowNumbers: false,
|
|
860
|
+
sortParams: {
|
|
861
|
+
onSort: lodash_1.noop
|
|
773
862
|
},
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
editor: 'editor.select',
|
|
782
|
-
option: 'unitPosition',
|
|
783
|
-
editorProps: {
|
|
784
|
-
values: [{
|
|
785
|
-
label: i18n_1._('Before'),
|
|
786
|
-
value: 'before'
|
|
787
|
-
}, {
|
|
788
|
-
label: i18n_1._('After'),
|
|
789
|
-
value: 'after'
|
|
790
|
-
}]
|
|
791
|
-
}
|
|
792
|
-
};
|
|
793
|
-
var unitLabelConfig = {
|
|
794
|
-
label: i18n_1._('Unit Label'),
|
|
795
|
-
option: 'unit',
|
|
796
|
-
editor: 'editor.text'
|
|
797
|
-
};
|
|
798
|
-
var timeFormattingConfig = {
|
|
799
|
-
label: i18n_1._('Date & Time Formatting'),
|
|
800
|
-
option: 'format',
|
|
801
|
-
editor: 'editor.text',
|
|
802
|
-
editorProps: {
|
|
803
|
-
tooltip: i18n_1._('For example: DD-MM-YYYY')
|
|
804
|
-
}
|
|
863
|
+
table: [],
|
|
864
|
+
tableFormat: {},
|
|
865
|
+
theme: {},
|
|
866
|
+
width: 300,
|
|
867
|
+
onColumnFormatChange: lodash_1.noop,
|
|
868
|
+
font: fontMap.proportional,
|
|
869
|
+
fontSize: fontSizeMap.default
|
|
805
870
|
};
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
},
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
var
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
columnFormat: {
|
|
837
|
-
description: 'Allows users to set column formatting for individual columns.',
|
|
838
|
-
type: 'object',
|
|
839
|
-
patternProperties: {
|
|
840
|
-
'.*': {
|
|
841
|
-
description: 'Customization for column property',
|
|
842
|
-
type: 'object',
|
|
843
|
-
properties: {
|
|
844
|
-
align: {
|
|
845
|
-
description: 'Alignment for each cell in the column. Valid alignments include "left", "center", and "right".',
|
|
846
|
-
type: 'array',
|
|
847
|
-
items: {
|
|
848
|
-
type: 'string',
|
|
849
|
-
enum: consts_1.validAlignments.concat()
|
|
850
|
-
}
|
|
851
|
-
},
|
|
852
|
-
cellTypes: {
|
|
853
|
-
description: 'Cell renderer for each cell in the column. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
|
|
854
|
-
type: 'array',
|
|
855
|
-
items: {
|
|
856
|
-
type: 'string',
|
|
857
|
-
enum: consts_1.validCellRenderers.concat()
|
|
858
|
-
}
|
|
859
|
-
},
|
|
860
|
-
data: {
|
|
861
|
-
description: 'Array of datapoint to be displayed in the column rows.',
|
|
862
|
-
type: 'array',
|
|
863
|
-
items: {
|
|
864
|
-
oneOf: [{
|
|
865
|
-
type: 'string'
|
|
866
|
-
}, {
|
|
867
|
-
type: 'number'
|
|
868
|
-
}, {
|
|
869
|
-
type: 'array',
|
|
870
|
-
items: {
|
|
871
|
-
type: ['string', 'number']
|
|
872
|
-
}
|
|
873
|
-
}]
|
|
874
|
-
}
|
|
875
|
-
},
|
|
876
|
-
rowBackgroundColors: {
|
|
877
|
-
description: 'Array of colors for background color of each row of the column of the table.',
|
|
878
|
-
type: 'array',
|
|
879
|
-
items: {
|
|
880
|
-
type: 'string',
|
|
881
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
882
|
-
}
|
|
883
|
-
},
|
|
884
|
-
rowColors: {
|
|
885
|
-
description: 'Array of colors for text color of each row of the column of the table.',
|
|
886
|
-
type: 'array',
|
|
887
|
-
items: {
|
|
888
|
-
type: 'string',
|
|
889
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
890
|
-
}
|
|
891
|
-
},
|
|
892
|
-
sparklineAreaColors: {
|
|
893
|
-
description: 'Array of colors for sparkline area color of each row of the column of the table.',
|
|
894
|
-
type: 'array',
|
|
895
|
-
items: {
|
|
896
|
-
type: 'string',
|
|
897
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
898
|
-
}
|
|
899
|
-
},
|
|
900
|
-
sparklineColors: {
|
|
901
|
-
description: 'Array of colors for sparkline line color of each row of the column of the table.',
|
|
902
|
-
type: 'array',
|
|
903
|
-
items: {
|
|
904
|
-
type: 'string',
|
|
905
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
906
|
-
}
|
|
907
|
-
},
|
|
908
|
-
sparklineTypes: {
|
|
909
|
-
description: 'Area or Line Sparkline. Valid sparkline types include "line", "area".',
|
|
910
|
-
type: 'array',
|
|
911
|
-
items: {
|
|
912
|
-
type: 'string',
|
|
913
|
-
enum: consts_1.validSparklineTypes.concat()
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
textOverflow: {
|
|
917
|
-
description: 'Controls how the text should be truncated within a particular column. Valid types include "anywhere", "break-word", "ellipsis". Defaults width for ellipsis is 100px.',
|
|
918
|
-
type: 'string',
|
|
919
|
-
pattern: schemaUtils_1.getPattern(consts_1.validTextOverflows),
|
|
920
|
-
enum: consts_1.validTextOverflows.concat()
|
|
921
|
-
},
|
|
922
|
-
width: {
|
|
923
|
-
description: 'Controls how wide in pixels (where 1px = 1/96th of 1in) the column should be displayed.',
|
|
924
|
-
type: 'number',
|
|
925
|
-
minimum: 30
|
|
926
|
-
}
|
|
927
|
-
}
|
|
928
|
-
}
|
|
871
|
+
PureTable.displayName = 'VizTable';
|
|
872
|
+
exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable));
|
|
873
|
+
|
|
874
|
+
/***/ }),
|
|
875
|
+
|
|
876
|
+
/***/ 14:
|
|
877
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
878
|
+
|
|
879
|
+
"use strict";
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
Object.defineProperty(exports, "__esModule", {
|
|
883
|
+
value: true
|
|
884
|
+
});
|
|
885
|
+
|
|
886
|
+
var React = __webpack_require__(1);
|
|
887
|
+
|
|
888
|
+
var styled_components_1 = __webpack_require__(4);
|
|
889
|
+
|
|
890
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
891
|
+
|
|
892
|
+
var style_1 = __webpack_require__(15);
|
|
893
|
+
|
|
894
|
+
var colorUtils_1 = __webpack_require__(13);
|
|
895
|
+
|
|
896
|
+
var Item = styled_components_1.default.div.attrs(function (_ref) {
|
|
897
|
+
var width = _ref.width;
|
|
898
|
+
return {
|
|
899
|
+
style: {
|
|
900
|
+
width: style_1.toPx(width)
|
|
929
901
|
}
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
902
|
+
};
|
|
903
|
+
}).withConfig({
|
|
904
|
+
displayName: "FixedSizeContainer__Item",
|
|
905
|
+
componentId: "sc-1yhgpod-0"
|
|
906
|
+
})(["position:relative;background-color:", "};"], function (props) {
|
|
907
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
908
|
+
}); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
|
|
909
|
+
|
|
910
|
+
var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
|
|
911
|
+
var width = _ref2.width,
|
|
912
|
+
height = _ref2.height;
|
|
913
|
+
return {
|
|
914
|
+
style: Object.assign(Object.assign({}, width && {
|
|
915
|
+
width: style_1.toPx(width)
|
|
916
|
+
}), height && {
|
|
917
|
+
height: style_1.toPx(height)
|
|
918
|
+
})
|
|
919
|
+
};
|
|
920
|
+
}).withConfig({
|
|
921
|
+
displayName: "FixedSizeContainer__FixSizeItem",
|
|
922
|
+
componentId: "sc-1yhgpod-1"
|
|
923
|
+
})(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
|
|
924
|
+
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
925
|
+
});
|
|
926
|
+
var ItemContent = styled_components_1.default.div.withConfig({
|
|
927
|
+
displayName: "FixedSizeContainer__ItemContent",
|
|
928
|
+
componentId: "sc-1yhgpod-2"
|
|
929
|
+
})(["position:relative;min-height:100px;width:100%;"]);
|
|
930
|
+
var FixSizeItemContent = styled_components_1.default.div.withConfig({
|
|
931
|
+
displayName: "FixedSizeContainer__FixSizeItemContent",
|
|
932
|
+
componentId: "sc-1yhgpod-3"
|
|
933
|
+
})(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
|
|
934
|
+
|
|
935
|
+
var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
936
|
+
var FixedSizeContainer = function FixedSizeContainer(props) {
|
|
937
|
+
var width = props.width,
|
|
938
|
+
height = props.height,
|
|
939
|
+
backgroundColor = props.backgroundColor;
|
|
940
|
+
|
|
941
|
+
if (!height) {
|
|
942
|
+
return React.createElement(Item, {
|
|
943
|
+
"data-test": "item",
|
|
944
|
+
width: width,
|
|
945
|
+
backgroundColor: backgroundColor
|
|
946
|
+
}, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
|
|
942
947
|
}
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
948
|
+
|
|
949
|
+
return React.createElement(FixSizeItem, {
|
|
950
|
+
"data-test": "fix-size-item",
|
|
951
|
+
"data-splunk-visualization-version": "25.0.0 - 5e0f30e5a",
|
|
952
|
+
width: width,
|
|
953
|
+
height: height,
|
|
954
|
+
backgroundColor: backgroundColor
|
|
955
|
+
}, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
|
|
956
|
+
var newWidth = _ref3.width,
|
|
957
|
+
newHeight = _ref3.height;
|
|
958
|
+
return React.createElement(Viz, Object.assign({}, props, {
|
|
959
|
+
width: newWidth,
|
|
960
|
+
height: newHeight
|
|
961
|
+
}));
|
|
962
|
+
})));
|
|
963
|
+
};
|
|
964
|
+
|
|
965
|
+
FixedSizeContainer.displayName = 'withFixedSizeContainer';
|
|
966
|
+
return FixedSizeContainer;
|
|
967
|
+
};
|
|
968
|
+
|
|
969
|
+
exports.default = withFixedSizeContainer;
|
|
970
|
+
|
|
971
|
+
/***/ }),
|
|
972
|
+
|
|
973
|
+
/***/ 15:
|
|
974
|
+
/***/ (function(module, exports) {
|
|
975
|
+
|
|
976
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
977
|
+
|
|
978
|
+
/***/ }),
|
|
979
|
+
|
|
980
|
+
/***/ 16:
|
|
981
|
+
/***/ (function(module, exports) {
|
|
982
|
+
|
|
983
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
984
|
+
|
|
985
|
+
/***/ }),
|
|
986
|
+
|
|
987
|
+
/***/ 17:
|
|
988
|
+
/***/ (function(module, exports) {
|
|
989
|
+
|
|
990
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
991
|
+
|
|
992
|
+
/***/ }),
|
|
993
|
+
|
|
994
|
+
/***/ 18:
|
|
995
|
+
/***/ (function(module, exports) {
|
|
996
|
+
|
|
997
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
998
|
+
|
|
999
|
+
/***/ }),
|
|
1000
|
+
|
|
1001
|
+
/***/ 2:
|
|
1002
|
+
/***/ (function(module, exports) {
|
|
1003
|
+
|
|
1004
|
+
module.exports = require("lodash");
|
|
1005
|
+
|
|
1006
|
+
/***/ }),
|
|
1007
|
+
|
|
1008
|
+
/***/ 20:
|
|
1009
|
+
/***/ (function(module, exports) {
|
|
1010
|
+
|
|
1011
|
+
module.exports = require("@splunk/themes/pick");
|
|
1012
|
+
|
|
1013
|
+
/***/ }),
|
|
1014
|
+
|
|
1015
|
+
/***/ 21:
|
|
1016
|
+
/***/ (function(module, exports) {
|
|
1017
|
+
|
|
1018
|
+
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1019
|
+
|
|
1020
|
+
/***/ }),
|
|
1021
|
+
|
|
1022
|
+
/***/ 23:
|
|
1023
|
+
/***/ (function(module, exports) {
|
|
1024
|
+
|
|
1025
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
1026
|
+
|
|
1027
|
+
/***/ }),
|
|
1028
|
+
|
|
1029
|
+
/***/ 25:
|
|
1030
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1031
|
+
|
|
1032
|
+
"use strict";
|
|
1033
|
+
|
|
1034
|
+
|
|
1035
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1036
|
+
value: true
|
|
1037
|
+
});
|
|
1038
|
+
exports.pickFieldFromJSONSchema = void 0;
|
|
1039
|
+
|
|
1040
|
+
var lodash_1 = __webpack_require__(2);
|
|
1041
|
+
|
|
1042
|
+
var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
|
|
1043
|
+
var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
|
|
1044
|
+
return Object.keys(optionsSchema).reduce(function (accum, k) {
|
|
1045
|
+
if (lodash_1.has(optionsSchema[k], fieldName)) {
|
|
1046
|
+
accum[k] = optionsSchema[k][fieldName];
|
|
1047
|
+
} else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
|
|
1048
|
+
var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
|
|
1049
|
+
|
|
1050
|
+
if (!lodash_1.isEmpty(nestedSchema)) {
|
|
1051
|
+
accum[k] = nestedSchema;
|
|
983
1052
|
}
|
|
984
1053
|
}
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
1064
|
-
}
|
|
1065
|
-
}
|
|
1066
|
-
},
|
|
1067
|
-
sparklineAreaColors: {
|
|
1068
|
-
description: 'Array of colors for sparkline area of each row of the table.',
|
|
1069
|
-
type: 'array',
|
|
1070
|
-
items: {
|
|
1071
|
-
type: 'array',
|
|
1072
|
-
items: {
|
|
1073
|
-
type: 'string',
|
|
1074
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
},
|
|
1078
|
-
sparklineColors: {
|
|
1079
|
-
description: 'Array of colors for sparkline line of each row of the table.',
|
|
1080
|
-
type: 'array',
|
|
1081
|
-
items: {
|
|
1082
|
-
type: 'array',
|
|
1083
|
-
items: {
|
|
1084
|
-
type: 'string',
|
|
1085
|
-
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1086
|
-
}
|
|
1087
|
-
}
|
|
1054
|
+
|
|
1055
|
+
return accum;
|
|
1056
|
+
}, {});
|
|
1057
|
+
};
|
|
1058
|
+
|
|
1059
|
+
exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
|
|
1060
|
+
|
|
1061
|
+
/***/ }),
|
|
1062
|
+
|
|
1063
|
+
/***/ 26:
|
|
1064
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1065
|
+
|
|
1066
|
+
"use strict";
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1070
|
+
value: true
|
|
1071
|
+
});
|
|
1072
|
+
exports.shouldShowIconPlaceholder = void 0;
|
|
1073
|
+
|
|
1074
|
+
var React = __webpack_require__(1);
|
|
1075
|
+
|
|
1076
|
+
var T = __webpack_require__(0);
|
|
1077
|
+
|
|
1078
|
+
var lodash_1 = __webpack_require__(2);
|
|
1079
|
+
|
|
1080
|
+
var i18n_1 = __webpack_require__(3);
|
|
1081
|
+
|
|
1082
|
+
var Message_1 = __webpack_require__(11);
|
|
1083
|
+
|
|
1084
|
+
var FixedSizeContainer_1 = __webpack_require__(14);
|
|
1085
|
+
/**
|
|
1086
|
+
* @method shouldShowIconPlaceholder
|
|
1087
|
+
* @param {object} dataSources
|
|
1088
|
+
* @param {boolean} loading
|
|
1089
|
+
* @returns {boolean}
|
|
1090
|
+
*/
|
|
1091
|
+
|
|
1092
|
+
|
|
1093
|
+
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
1094
|
+
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1095
|
+
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
1096
|
+
var noData = data === undefined;
|
|
1097
|
+
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
1098
|
+
var noFields = fields === undefined;
|
|
1099
|
+
return loading || noData || noFields;
|
|
1100
|
+
};
|
|
1101
|
+
|
|
1102
|
+
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
1103
|
+
var propTypes = {
|
|
1104
|
+
icon: T.func,
|
|
1105
|
+
width: T.oneOfType([T.string, T.number]),
|
|
1106
|
+
height: T.oneOfType([T.string, T.number]),
|
|
1107
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
1108
|
+
backgroundColor: T.string,
|
|
1109
|
+
iconColor: T.string
|
|
1110
|
+
};
|
|
1111
|
+
/**
|
|
1112
|
+
* @method IconPlaceholder
|
|
1113
|
+
* @param {IconPlaceholderProps} props
|
|
1114
|
+
* @returns {React.ReactElement}
|
|
1115
|
+
*/
|
|
1116
|
+
|
|
1117
|
+
var IconPlaceholder = function IconPlaceholder(props) {
|
|
1118
|
+
var width = props.width,
|
|
1119
|
+
height = props.height,
|
|
1120
|
+
icon = props.icon,
|
|
1121
|
+
iconColor = props.iconColor;
|
|
1122
|
+
|
|
1123
|
+
if (icon) {
|
|
1124
|
+
return React.createElement(icon, {
|
|
1125
|
+
style: {
|
|
1126
|
+
left: '50%',
|
|
1127
|
+
top: '50%',
|
|
1128
|
+
color: iconColor,
|
|
1129
|
+
opacity: 0.15,
|
|
1130
|
+
position: 'absolute',
|
|
1131
|
+
transform: 'translate(-50%, -50%)'
|
|
1088
1132
|
},
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1133
|
+
width: '50%',
|
|
1134
|
+
height: '50%'
|
|
1135
|
+
});
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
return React.createElement(Message_1.default, {
|
|
1139
|
+
width: width,
|
|
1140
|
+
height: height,
|
|
1141
|
+
level: "warning",
|
|
1142
|
+
message: i18n_1._('No DataSource Connected')
|
|
1143
|
+
});
|
|
1144
|
+
};
|
|
1145
|
+
|
|
1146
|
+
IconPlaceholder.propTypes = propTypes;
|
|
1147
|
+
IconPlaceholder.defaultProps = {
|
|
1148
|
+
width: '100%',
|
|
1149
|
+
height: 250
|
|
1150
|
+
};
|
|
1151
|
+
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
1152
|
+
|
|
1153
|
+
/***/ }),
|
|
1154
|
+
|
|
1155
|
+
/***/ 265:
|
|
1156
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1157
|
+
|
|
1158
|
+
"use strict";
|
|
1159
|
+
|
|
1160
|
+
|
|
1161
|
+
var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
1162
|
+
if (k2 === undefined) k2 = k;
|
|
1163
|
+
Object.defineProperty(o, k2, {
|
|
1164
|
+
enumerable: true,
|
|
1165
|
+
get: function get() {
|
|
1166
|
+
return m[k];
|
|
1100
1167
|
}
|
|
1168
|
+
});
|
|
1169
|
+
} : function (o, m, k, k2) {
|
|
1170
|
+
if (k2 === undefined) k2 = k;
|
|
1171
|
+
o[k2] = m[k];
|
|
1172
|
+
});
|
|
1173
|
+
|
|
1174
|
+
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
1175
|
+
for (var p in m) {
|
|
1176
|
+
if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
1101
1177
|
}
|
|
1102
1178
|
};
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1179
|
+
|
|
1180
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1181
|
+
value: true
|
|
1182
|
+
});
|
|
1183
|
+
exports.default = void 0; // NOTE: wildcard syntax only works for named exports
|
|
1184
|
+
// for some reason, omitting the default export worked before TS v4
|
|
1185
|
+
// see: https://stackoverflow.com/a/34445175
|
|
1186
|
+
|
|
1187
|
+
__exportStar(__webpack_require__(138), exports);
|
|
1188
|
+
|
|
1189
|
+
var Table_1 = __webpack_require__(138);
|
|
1190
|
+
|
|
1191
|
+
Object.defineProperty(exports, "default", {
|
|
1192
|
+
enumerable: true,
|
|
1193
|
+
get: function get() {
|
|
1194
|
+
return Table_1.default;
|
|
1195
|
+
}
|
|
1196
|
+
});
|
|
1197
|
+
|
|
1198
|
+
/***/ }),
|
|
1199
|
+
|
|
1200
|
+
/***/ 266:
|
|
1201
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1202
|
+
|
|
1203
|
+
"use strict";
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
var _toConsumableArray = __webpack_require__(9);
|
|
1207
|
+
|
|
1208
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1209
|
+
value: true
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
var i18n_1 = __webpack_require__(3);
|
|
1213
|
+
|
|
1214
|
+
var lodash_1 = __webpack_require__(2);
|
|
1215
|
+
|
|
1216
|
+
var schemaUtils_1 = __webpack_require__(16);
|
|
1217
|
+
|
|
1218
|
+
var colorConstants_1 = __webpack_require__(43);
|
|
1219
|
+
|
|
1220
|
+
var visualization_icons_1 = __webpack_require__(46);
|
|
1221
|
+
|
|
1222
|
+
var placeholders_1 = __webpack_require__(45);
|
|
1223
|
+
|
|
1224
|
+
var variables_1 = __webpack_require__(10);
|
|
1225
|
+
|
|
1226
|
+
var pick_1 = __webpack_require__(20);
|
|
1227
|
+
|
|
1228
|
+
var configUtils_1 = __webpack_require__(6);
|
|
1229
|
+
|
|
1230
|
+
var VizBehavior_1 = __webpack_require__(5);
|
|
1231
|
+
|
|
1232
|
+
var consts_1 = __webpack_require__(111);
|
|
1233
|
+
|
|
1234
|
+
var VizCategory_1 = __webpack_require__(29);
|
|
1235
|
+
|
|
1236
|
+
var dataContract = {
|
|
1237
|
+
requiredDataSources: [{
|
|
1238
|
+
name: 'primary',
|
|
1239
|
+
description: 'DataSource that powers the visualization'
|
|
1240
|
+
}],
|
|
1241
|
+
optionalDataSources: [],
|
|
1242
|
+
initialRequestParams: {
|
|
1243
|
+
primary: function primary() {
|
|
1244
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1245
|
+
return {
|
|
1246
|
+
offset: 0,
|
|
1247
|
+
count: options.count ? options.count : 10,
|
|
1248
|
+
requestTotalCount: true
|
|
1249
|
+
};
|
|
1250
|
+
}
|
|
1251
|
+
}
|
|
1252
|
+
};
|
|
1253
|
+
var size = {
|
|
1254
|
+
initialWidth: 300,
|
|
1255
|
+
initialHeight: 300
|
|
1256
|
+
};
|
|
1257
|
+
var defaultContext = {
|
|
1258
|
+
tableAlignByType: [{
|
|
1259
|
+
match: 'string',
|
|
1260
|
+
value: 'left'
|
|
1261
|
+
}, {
|
|
1262
|
+
match: 'number',
|
|
1263
|
+
value: 'right'
|
|
1264
|
+
}, {
|
|
1265
|
+
match: 'time',
|
|
1266
|
+
value: 'left'
|
|
1267
|
+
}, {
|
|
1268
|
+
match: 'color',
|
|
1269
|
+
value: 'left'
|
|
1270
|
+
}, {
|
|
1271
|
+
match: 'array',
|
|
1272
|
+
value: 'left'
|
|
1273
|
+
}, {
|
|
1274
|
+
match: 'sparkline',
|
|
1275
|
+
value: 'center'
|
|
1276
|
+
}, {
|
|
1277
|
+
match: 'unknown',
|
|
1278
|
+
value: 'left'
|
|
1279
|
+
}],
|
|
1280
|
+
tableCellTypeByType: [{
|
|
1281
|
+
match: 'string',
|
|
1282
|
+
value: 'TextCell'
|
|
1283
|
+
}, {
|
|
1284
|
+
match: 'number',
|
|
1285
|
+
value: 'TextCell'
|
|
1286
|
+
}, {
|
|
1287
|
+
match: 'time',
|
|
1288
|
+
value: 'TextCell'
|
|
1289
|
+
}, {
|
|
1290
|
+
match: 'color',
|
|
1291
|
+
value: 'TextCell'
|
|
1292
|
+
}, {
|
|
1293
|
+
match: 'array',
|
|
1294
|
+
value: 'ArrayCell'
|
|
1295
|
+
}, {
|
|
1296
|
+
match: 'sparkline',
|
|
1297
|
+
value: 'SparklineCell'
|
|
1298
|
+
}, {
|
|
1299
|
+
match: 'unknown',
|
|
1300
|
+
value: 'TextCell'
|
|
1301
|
+
}],
|
|
1302
|
+
// NOTE: These contexts are used by the table background color editor.
|
|
1303
|
+
// Please be careful removing/renaming/altering them.
|
|
1304
|
+
// There are unit tests and visual test that will capture breakages.
|
|
1305
|
+
tableRowColorMaxContrast: {
|
|
1306
|
+
colors: ['> themes.textColor', '> themes.inverseTextColor'],
|
|
1307
|
+
default: '> themes.textColor'
|
|
1130
1308
|
},
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
dark: '#0D1012',
|
|
1135
|
-
light: variables_1.default.backgroundColor(props)
|
|
1136
|
-
},
|
|
1137
|
-
prisma: variables_1.default.backgroundColorSidebar(props)
|
|
1138
|
-
})(props);
|
|
1309
|
+
tableRowBackgroundColorEvenConfig: {
|
|
1310
|
+
channel: 'hsv.v',
|
|
1311
|
+
value: '*0.96'
|
|
1139
1312
|
},
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
prisma: variables_1.default.contentColorDefault(props)
|
|
1144
|
-
})(props);
|
|
1313
|
+
tableHeaderBackgroundColorConfig: {
|
|
1314
|
+
channel: 'hsv.v',
|
|
1315
|
+
value: '*0.9'
|
|
1145
1316
|
},
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1317
|
+
tableRowBackgroundColorsByTheme: ['> themes.rowBackgroundColorOdd'],
|
|
1318
|
+
tableAltRowBackgroundColorsByTheme: ['> themes.rowBackgroundColorOdd', '> themes.rowBackgroundColorEven'],
|
|
1319
|
+
tableRowBackgroundColorsByBackgroundColor: ['> backgroundColor'],
|
|
1320
|
+
tableAltRowBackgroundColorsByBackgroundColor: ['> backgroundColor', '> backgroundColor | setColorChannel(tableRowBackgroundColorEvenConfig)']
|
|
1321
|
+
};
|
|
1322
|
+
var unitPositionConfig = {
|
|
1323
|
+
label: i18n_1._('Units Position'),
|
|
1324
|
+
editor: 'editor.select',
|
|
1325
|
+
option: 'unitPosition',
|
|
1326
|
+
editorProps: {
|
|
1327
|
+
values: [{
|
|
1328
|
+
label: i18n_1._('Before'),
|
|
1329
|
+
value: 'before'
|
|
1330
|
+
}, {
|
|
1331
|
+
label: i18n_1._('After'),
|
|
1332
|
+
value: 'after'
|
|
1333
|
+
}]
|
|
1155
1334
|
}
|
|
1156
1335
|
};
|
|
1157
|
-
var
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
label: i18n_1._('Row Numbers'),
|
|
1174
|
-
option: 'showRowNumbers',
|
|
1175
|
-
editor: 'editor.toggle',
|
|
1176
|
-
editorProps: {
|
|
1177
|
-
labelPosition: 'left',
|
|
1178
|
-
labelWidth: EDITOR_LABEL_WIDTH
|
|
1179
|
-
}
|
|
1180
|
-
}], [{
|
|
1181
|
-
label: i18n_1._('Internal Fields'),
|
|
1182
|
-
option: 'showInternalFields',
|
|
1183
|
-
editor: 'editor.toggle',
|
|
1184
|
-
editorProps: {
|
|
1185
|
-
labelPosition: 'left',
|
|
1186
|
-
labelWidth: EDITOR_LABEL_WIDTH
|
|
1187
|
-
}
|
|
1188
|
-
}], [{
|
|
1189
|
-
label: i18n_1._('Header Row'),
|
|
1190
|
-
option: 'headerVisibility',
|
|
1191
|
-
editor: 'editor.radioBar',
|
|
1192
|
-
editorProps: {
|
|
1193
|
-
values: [{
|
|
1194
|
-
label: i18n_1._('Inline'),
|
|
1195
|
-
value: 'inline'
|
|
1196
|
-
}, {
|
|
1197
|
-
label: i18n_1._('Fixed'),
|
|
1198
|
-
value: 'fixed'
|
|
1199
|
-
}, {
|
|
1200
|
-
label: i18n_1._('Hidden'),
|
|
1201
|
-
value: 'none'
|
|
1202
|
-
}],
|
|
1203
|
-
labelPosition: 'left',
|
|
1204
|
-
labelWidth: EDITOR_LABEL_WIDTH
|
|
1205
|
-
}
|
|
1206
|
-
}], [{
|
|
1207
|
-
key: 'backgroundColor',
|
|
1208
|
-
editor: 'editor.tableBackgroundColor',
|
|
1209
|
-
editorProps: {
|
|
1210
|
-
themes: themes,
|
|
1211
|
-
labelPosition: 'left',
|
|
1212
|
-
labelWidth: EDITOR_LABEL_WIDTH,
|
|
1213
|
-
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
1214
|
-
}
|
|
1215
|
-
}]]
|
|
1336
|
+
var unitLabelConfig = {
|
|
1337
|
+
label: i18n_1._('Unit Label'),
|
|
1338
|
+
option: 'unit',
|
|
1339
|
+
editor: 'editor.text'
|
|
1340
|
+
};
|
|
1341
|
+
var timeFormattingConfig = {
|
|
1342
|
+
label: i18n_1._('Date & Time Formatting'),
|
|
1343
|
+
option: 'format',
|
|
1344
|
+
editor: 'editor.text',
|
|
1345
|
+
editorProps: {
|
|
1346
|
+
tooltip: i18n_1._('For example: DD-MM-YYYY')
|
|
1347
|
+
}
|
|
1348
|
+
};
|
|
1349
|
+
var sequentialColorConfig = [{
|
|
1350
|
+
to: 20,
|
|
1351
|
+
value: '#D41F1F'
|
|
1216
1352
|
}, {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1353
|
+
from: 20,
|
|
1354
|
+
to: 40,
|
|
1355
|
+
value: '#D94E17'
|
|
1356
|
+
}, {
|
|
1357
|
+
from: 40,
|
|
1358
|
+
to: 60,
|
|
1359
|
+
value: '#CBA700'
|
|
1360
|
+
}, {
|
|
1361
|
+
from: 60,
|
|
1362
|
+
to: 80,
|
|
1363
|
+
value: '#669922'
|
|
1364
|
+
}, {
|
|
1365
|
+
from: 80,
|
|
1366
|
+
value: '#118832'
|
|
1367
|
+
}];
|
|
1368
|
+
var matchColorConfig = [{
|
|
1369
|
+
match: '',
|
|
1370
|
+
value: '#5C33FF'
|
|
1371
|
+
}];
|
|
1372
|
+
var optionsSchema = {
|
|
1373
|
+
backgroundColor: {
|
|
1374
|
+
default: '> themes.defaultBackgroundColor',
|
|
1375
|
+
description: 'Specify the color for the background. You might use a data source to apply the color. The default for enterprise light is "#FFFFFF". The default for enterprise dark is "#000000". The default for prisma dark is "#0B0C0E".',
|
|
1376
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
|
|
1377
|
+
type: 'string'
|
|
1378
|
+
},
|
|
1379
|
+
columnFormat: {
|
|
1380
|
+
description: 'Allows column formatting for individual columns.',
|
|
1381
|
+
type: 'object',
|
|
1382
|
+
patternProperties: {
|
|
1383
|
+
'.*': {
|
|
1384
|
+
description: 'Customization for column property',
|
|
1385
|
+
type: 'object',
|
|
1386
|
+
properties: {
|
|
1387
|
+
align: {
|
|
1388
|
+
description: 'Specify the alignment for each cell in a column. Valid alignments include "left", "center", and "right".',
|
|
1389
|
+
type: 'array',
|
|
1390
|
+
items: {
|
|
1391
|
+
type: 'string',
|
|
1392
|
+
enum: consts_1.validAlignments.concat()
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
cellTypes: {
|
|
1396
|
+
description: 'Specify how to render data in cells. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
|
|
1397
|
+
type: 'array',
|
|
1398
|
+
items: {
|
|
1399
|
+
type: 'string',
|
|
1400
|
+
enum: consts_1.validCellRenderers.concat()
|
|
1401
|
+
}
|
|
1402
|
+
},
|
|
1403
|
+
data: {
|
|
1404
|
+
description: 'Specify data points to be displayed in the cells of a column.',
|
|
1405
|
+
type: 'array',
|
|
1406
|
+
items: {
|
|
1407
|
+
oneOf: [{
|
|
1408
|
+
type: 'string'
|
|
1409
|
+
}, {
|
|
1410
|
+
type: 'number'
|
|
1411
|
+
}, {
|
|
1412
|
+
type: 'array',
|
|
1413
|
+
items: {
|
|
1414
|
+
type: ['string', 'number']
|
|
1415
|
+
}
|
|
1416
|
+
}]
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
rowBackgroundColors: {
|
|
1420
|
+
description: 'Specify a list of colors, in hexadecimal code, for the background color of each column of the table. For example, ["#2C333B", "32373D"].',
|
|
1421
|
+
type: 'array',
|
|
1422
|
+
items: {
|
|
1423
|
+
type: 'string',
|
|
1424
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1425
|
+
}
|
|
1426
|
+
},
|
|
1427
|
+
rowColors: {
|
|
1428
|
+
description: 'Specify a list of colors, in hexadecimal code, for the text color of the cells of a column. For example, ["#2C333B", "32373D"].',
|
|
1429
|
+
type: 'array',
|
|
1430
|
+
items: {
|
|
1431
|
+
type: 'string',
|
|
1432
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1433
|
+
}
|
|
1434
|
+
},
|
|
1435
|
+
sparklineAreaColors: {
|
|
1436
|
+
description: 'Specify a list of colors, in hexadecimal code, for the sparkline area of each column. For example, ["#2C333B", "32373D"].',
|
|
1437
|
+
type: 'array',
|
|
1438
|
+
items: {
|
|
1439
|
+
type: 'string',
|
|
1440
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
sparklineColors: {
|
|
1444
|
+
description: 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each column. For example, ["#2C333B", "32373D"].',
|
|
1445
|
+
type: 'array',
|
|
1446
|
+
items: {
|
|
1447
|
+
type: 'string',
|
|
1448
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
sparklineTypes: {
|
|
1452
|
+
description: 'Choose either area or line formatting for the Sparkline. Valid sparkline types include "line" and "area".',
|
|
1453
|
+
type: 'array',
|
|
1454
|
+
items: {
|
|
1455
|
+
type: 'string',
|
|
1456
|
+
enum: consts_1.validSparklineTypes.concat()
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
textOverflow: {
|
|
1460
|
+
description: 'Controls how the text should be truncated within a particular column. Valid types include "anywhere", "break-word", "ellipsis". Defaults width for ellipsis is 100px.',
|
|
1461
|
+
type: 'string',
|
|
1462
|
+
pattern: schemaUtils_1.getPattern(consts_1.validTextOverflows),
|
|
1463
|
+
enum: consts_1.validTextOverflows.concat()
|
|
1464
|
+
},
|
|
1465
|
+
width: {
|
|
1466
|
+
description: 'Controls how wide in pixels (where 1 px = 1/96th of 1 in) the column should be displayed.',
|
|
1467
|
+
type: 'number',
|
|
1468
|
+
minimum: 30
|
|
1278
1469
|
}
|
|
1279
|
-
}
|
|
1280
|
-
// TODO(fkurniawan): fill in with proper editor components
|
|
1281
|
-
sparkline: [],
|
|
1282
|
-
string: [[Object.assign({}, unitPositionConfig), Object.assign({}, unitLabelConfig)]],
|
|
1283
|
-
time: [[Object.assign({}, timeFormattingConfig)]]
|
|
1284
|
-
},
|
|
1285
|
-
value: function value(_ref) {
|
|
1286
|
-
var context = _ref.context,
|
|
1287
|
-
options = _ref.options;
|
|
1288
|
-
return {
|
|
1289
|
-
context: context,
|
|
1290
|
-
columnFormat: options.columnFormat,
|
|
1291
|
-
tableFormat: options.tableFormat
|
|
1292
|
-
};
|
|
1470
|
+
}
|
|
1293
1471
|
}
|
|
1294
|
-
},
|
|
1295
|
-
key: 'TableColumnFormatterEditor'
|
|
1296
|
-
}]]
|
|
1297
|
-
}];
|
|
1298
|
-
/**
|
|
1299
|
-
* visualization configuration
|
|
1300
|
-
*/
|
|
1301
|
-
|
|
1302
|
-
var config = {
|
|
1303
|
-
/**
|
|
1304
|
-
* unique viz key
|
|
1305
|
-
*/
|
|
1306
|
-
key: 'splunk.table',
|
|
1307
|
-
|
|
1308
|
-
/**
|
|
1309
|
-
* viz name
|
|
1310
|
-
*/
|
|
1311
|
-
name: 'Table',
|
|
1312
|
-
category: VizCategory_1.VizCategory.TABLE,
|
|
1313
|
-
|
|
1314
|
-
/**
|
|
1315
|
-
* viz icon
|
|
1316
|
-
*/
|
|
1317
|
-
icon: visualization_icons_1.Table,
|
|
1318
|
-
placeholderIcon: placeholders_1.Table,
|
|
1319
|
-
dataContract: dataContract,
|
|
1320
|
-
size: size,
|
|
1321
|
-
defaultContext: defaultContext,
|
|
1322
|
-
optionsSchema: optionsSchema,
|
|
1323
|
-
editorConfig: editorConfig,
|
|
1324
|
-
events: {
|
|
1325
|
-
'cell.click': {
|
|
1326
|
-
description: 'triggered when user clicks a table cell'
|
|
1327
1472
|
}
|
|
1328
1473
|
},
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
}
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
var cells_1 = __webpack_require__(269);
|
|
1396
|
-
|
|
1397
|
-
var getPagination_1 = __webpack_require__(27);
|
|
1398
|
-
|
|
1399
|
-
var getSorting_1 = __webpack_require__(26);
|
|
1400
|
-
|
|
1401
|
-
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1402
|
-
|
|
1403
|
-
var utils_1 = __webpack_require__(274); // debounce was imported this way due to typing
|
|
1404
|
-
// eslint-disable-next-line import/order
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
var debounce = __webpack_require__(275);
|
|
1408
|
-
|
|
1409
|
-
var MINIMUM_COLUMN_SIZE = 30;
|
|
1410
|
-
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
1411
|
-
displayName: "PureTable__NonVisibleTableHead",
|
|
1412
|
-
componentId: "tovzjg-0"
|
|
1413
|
-
})(["display:none;"]);
|
|
1414
|
-
var FixedTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
1415
|
-
displayName: "PureTable__FixedTableHead",
|
|
1416
|
-
componentId: "tovzjg-1"
|
|
1417
|
-
})(["position:sticky;top:0;"]);
|
|
1418
|
-
var VizTableContainer = styled_components_1.default.div.withConfig({
|
|
1419
|
-
displayName: "PureTable__VizTableContainer",
|
|
1420
|
-
componentId: "tovzjg-2"
|
|
1421
|
-
})(["box-sizing:border-box;padding:", ";background-color:", ";display:flex;flex-flow:column nowrap;overflow:hidden;"], pick_1.default({
|
|
1422
|
-
enterprise: variables_1.default.spacingHalf,
|
|
1423
|
-
prisma: variables_1.default.spacingSmall
|
|
1424
|
-
}), function (props) {
|
|
1425
|
-
return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
|
|
1426
|
-
});
|
|
1427
|
-
VizTableContainer.displayName = 'VizTableContainer';
|
|
1428
|
-
var PAGINATOR_CONTAINER_HEIGHT = 38;
|
|
1429
|
-
var PAGINATOR_SPACING = 5;
|
|
1430
|
-
var SUITableContainer = styled_components_1.default.div.withConfig({
|
|
1431
|
-
displayName: "PureTable__SUITableContainer",
|
|
1432
|
-
componentId: "tovzjg-3"
|
|
1433
|
-
})(["box-sizing:border-box;flex-grow:1;overflow:hidden;", ";", ";", " ", " & [data-fixed-column='true']{table-layout:", ";width:", ";}"], function (_ref) {
|
|
1434
|
-
var width = _ref.width,
|
|
1435
|
-
height = _ref.height,
|
|
1436
|
-
isPaging = _ref.isPaging,
|
|
1437
|
-
theme = _ref.theme;
|
|
1438
|
-
var padding = pick_1.default({
|
|
1439
|
-
enterprise: variables_1.default.spacingHalf({
|
|
1440
|
-
theme: theme
|
|
1441
|
-
}),
|
|
1442
|
-
prisma: variables_1.default.spacingSmall({
|
|
1443
|
-
theme: theme
|
|
1444
|
-
})
|
|
1445
|
-
})({
|
|
1446
|
-
theme: theme
|
|
1447
|
-
});
|
|
1448
|
-
var paddingOffset = parseInt(padding, 10) * 2;
|
|
1449
|
-
return style_1.toDimension({
|
|
1450
|
-
width: width - paddingOffset,
|
|
1451
|
-
height: isPaging ? height - PAGINATOR_CONTAINER_HEIGHT - PAGINATOR_SPACING - paddingOffset : height - paddingOffset
|
|
1452
|
-
});
|
|
1453
|
-
}, function (_ref2) {
|
|
1454
|
-
var isPaging = _ref2.isPaging;
|
|
1455
|
-
return isPaging && "\n margin-bottom: ".concat(PAGINATOR_SPACING, "px;\n ");
|
|
1456
|
-
}, function (_ref3) {
|
|
1457
|
-
var headerStyle = _ref3.headerStyle;
|
|
1458
|
-
return headerStyle && headerStyle.backgroundColor && styled_components_1.css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n & [data-test='head-cell'] {\n background-color: ", ";\n }\n "])), headerStyle.backgroundColor);
|
|
1459
|
-
}, function (_ref4) {
|
|
1460
|
-
var headerStyle = _ref4.headerStyle;
|
|
1461
|
-
return headerStyle && headerStyle.color && styled_components_1.css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n & [data-test='head-cell'] > div > span {\n color: ", ";\n }\n "])), headerStyle.color);
|
|
1462
|
-
}, function (_ref5) {
|
|
1463
|
-
var widthSet = _ref5.widthSet;
|
|
1464
|
-
return widthSet ? 'fixed' : 'auto';
|
|
1465
|
-
}, function (_ref6) {
|
|
1466
|
-
var widthSet = _ref6.widthSet;
|
|
1467
|
-
return widthSet ? '0' : '100%';
|
|
1468
|
-
});
|
|
1469
|
-
SUITableContainer.displayName = 'SUITableContainer';
|
|
1470
|
-
var PaginatorContainer = styled_components_1.default.div.withConfig({
|
|
1471
|
-
displayName: "PureTable__PaginatorContainer",
|
|
1472
|
-
componentId: "tovzjg-4"
|
|
1473
|
-
})(["position:relative;text-align:right;height:", "px;"], PAGINATOR_CONTAINER_HEIGHT);
|
|
1474
|
-
PaginatorContainer.displayName = 'PaginatorContainer'; // allow for early return in case of empty tableBody while still following hook rules
|
|
1475
|
-
|
|
1476
|
-
var withEmptyTableMessage = function withEmptyTableMessage(Viz) {
|
|
1477
|
-
// TODO(fkurniawan): add omit type to differentiate WrapperProps from PureTableProps
|
|
1478
|
-
var Wrapper = function Wrapper(props) {
|
|
1479
|
-
var headers = props.headers,
|
|
1480
|
-
table = props.table,
|
|
1481
|
-
headerVisibility = props.headerVisibility,
|
|
1482
|
-
showRowNumbers = props.showRowNumbers,
|
|
1483
|
-
showInternalFields = props.showInternalFields,
|
|
1484
|
-
tableFormat = props.tableFormat,
|
|
1485
|
-
columnFormat = props.columnFormat;
|
|
1486
|
-
|
|
1487
|
-
var _hooks_1$useTable = hooks_1.useTable({
|
|
1488
|
-
headers: headers,
|
|
1489
|
-
table: table,
|
|
1490
|
-
headerVisibility: headerVisibility,
|
|
1491
|
-
showRowNumbers: showRowNumbers,
|
|
1492
|
-
showInternalFields: showInternalFields,
|
|
1493
|
-
tableFormat: Object.assign(Object.assign(Object.assign(Object.assign({}, tableFormat), (tableFormat === null || tableFormat === void 0 ? void 0 : tableFormat.align) && {
|
|
1494
|
-
align: lodash_1.cloneDeep(tableFormat.align)
|
|
1495
|
-
}), (tableFormat === null || tableFormat === void 0 ? void 0 : tableFormat.cellTypes) && {
|
|
1496
|
-
cellTypes: lodash_1.cloneDeep(tableFormat.cellTypes)
|
|
1497
|
-
}), (tableFormat === null || tableFormat === void 0 ? void 0 : tableFormat.data) && {
|
|
1498
|
-
data: lodash_1.cloneDeep(tableFormat.data)
|
|
1499
|
-
}),
|
|
1500
|
-
columnFormat: columnFormat
|
|
1501
|
-
}),
|
|
1502
|
-
tableHeader = _hooks_1$useTable.tableHeader,
|
|
1503
|
-
tableBody = _hooks_1$useTable.tableBody;
|
|
1504
|
-
|
|
1505
|
-
if (tableBody.rows.length === 0) {
|
|
1506
|
-
return React.createElement(Message_1.default, {
|
|
1507
|
-
type: "warning"
|
|
1508
|
-
}, i18n_1._('No data!'));
|
|
1474
|
+
count: {
|
|
1475
|
+
description: 'Specify the maximum number of rows to display.',
|
|
1476
|
+
type: 'number',
|
|
1477
|
+
default: 10
|
|
1478
|
+
},
|
|
1479
|
+
font: {
|
|
1480
|
+
default: 'proportional',
|
|
1481
|
+
description: 'Specify the font style to use for table content.',
|
|
1482
|
+
type: 'string',
|
|
1483
|
+
pattern: schemaUtils_1.getPattern(['proportional', 'monospace'])
|
|
1484
|
+
},
|
|
1485
|
+
fontSize: {
|
|
1486
|
+
default: 'default',
|
|
1487
|
+
description: 'Specify the font size to use for table content. Font sizes range from extra small (10px) to large (16px) with the default being 14px.',
|
|
1488
|
+
type: 'string',
|
|
1489
|
+
pattern: schemaUtils_1.getPattern(consts_1.validFontSizes)
|
|
1490
|
+
},
|
|
1491
|
+
headers: {
|
|
1492
|
+
default: '> table | getField()',
|
|
1493
|
+
description: "Specify an array of headers to display on the table. Though these can be statically listed, it's best to use the dynamic default, as it will return the fields of your search.",
|
|
1494
|
+
type: 'array',
|
|
1495
|
+
items: {
|
|
1496
|
+
type: 'string'
|
|
1497
|
+
}
|
|
1498
|
+
},
|
|
1499
|
+
headerVisibility: {
|
|
1500
|
+
default: 'inline',
|
|
1501
|
+
description: 'Specify how to display the table header row.',
|
|
1502
|
+
pattern: schemaUtils_1.getPattern(consts_1.validHeaderVisibilities),
|
|
1503
|
+
enum: consts_1.validHeaderVisibilities.concat(),
|
|
1504
|
+
type: 'string'
|
|
1505
|
+
},
|
|
1506
|
+
paginateDataSourceKey: {
|
|
1507
|
+
default: 'primary',
|
|
1508
|
+
description: 'Specify the data source key for pagination and sorting.',
|
|
1509
|
+
type: 'string'
|
|
1510
|
+
},
|
|
1511
|
+
showInternalFields: {
|
|
1512
|
+
default: true,
|
|
1513
|
+
description: 'Specify whether to show internal fields that start with an underscore. The _time field will still be shown if false.',
|
|
1514
|
+
type: 'boolean'
|
|
1515
|
+
},
|
|
1516
|
+
showRowNumbers: {
|
|
1517
|
+
default: false,
|
|
1518
|
+
description: 'Show row numbers in the first column.',
|
|
1519
|
+
type: 'boolean'
|
|
1520
|
+
},
|
|
1521
|
+
table: {
|
|
1522
|
+
default: '> primary',
|
|
1523
|
+
description: 'Two dimensional array of data to be displayed in the table.',
|
|
1524
|
+
type: 'array',
|
|
1525
|
+
items: {
|
|
1526
|
+
type: 'array',
|
|
1527
|
+
items: {
|
|
1528
|
+
oneOf: [{
|
|
1529
|
+
type: 'string'
|
|
1530
|
+
}, {
|
|
1531
|
+
type: 'number'
|
|
1532
|
+
}, {
|
|
1533
|
+
type: 'array',
|
|
1534
|
+
items: {
|
|
1535
|
+
type: ['string', 'number']
|
|
1536
|
+
}
|
|
1537
|
+
}]
|
|
1538
|
+
}
|
|
1509
1539
|
}
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1540
|
+
},
|
|
1541
|
+
tableFormat: {
|
|
1542
|
+
description: 'Allows users to set table wide options.',
|
|
1543
|
+
type: 'object',
|
|
1544
|
+
properties: {
|
|
1545
|
+
align: {
|
|
1546
|
+
default: '> table | type() | matchValue(tableAlignByType)',
|
|
1547
|
+
description: 'Specify alignment for each cell in the table. Valid alignments include "left", "center", and "right".',
|
|
1548
|
+
type: 'array',
|
|
1549
|
+
items: {
|
|
1550
|
+
type: 'array',
|
|
1551
|
+
items: {
|
|
1552
|
+
type: 'string',
|
|
1553
|
+
enum: consts_1.validAlignments.concat()
|
|
1554
|
+
}
|
|
1555
|
+
}
|
|
1556
|
+
},
|
|
1557
|
+
cellTypes: {
|
|
1558
|
+
default: '> table | type() | matchValue(tableCellTypeByType)',
|
|
1559
|
+
description: 'Specify how to render data in cells. Valid cell renders include "TextCell", "ArrayCell", "SparklineCell".',
|
|
1560
|
+
type: 'array',
|
|
1561
|
+
items: {
|
|
1562
|
+
type: 'array',
|
|
1563
|
+
items: {
|
|
1564
|
+
type: 'string',
|
|
1565
|
+
enum: consts_1.validCellRenderers.concat()
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
},
|
|
1569
|
+
data: {
|
|
1570
|
+
description: 'Two dimensional data to be displayed in the table. This is usually formatted data instead of raw data from search.',
|
|
1571
|
+
type: 'array',
|
|
1572
|
+
items: {
|
|
1573
|
+
type: 'array',
|
|
1574
|
+
items: {
|
|
1575
|
+
oneOf: [{
|
|
1576
|
+
type: 'string'
|
|
1577
|
+
}, {
|
|
1578
|
+
type: 'number'
|
|
1579
|
+
}, {
|
|
1580
|
+
type: 'array',
|
|
1581
|
+
items: {
|
|
1582
|
+
type: ['string', 'number']
|
|
1583
|
+
}
|
|
1584
|
+
}]
|
|
1585
|
+
}
|
|
1586
|
+
}
|
|
1587
|
+
},
|
|
1588
|
+
headerBackgroundColor: {
|
|
1589
|
+
default: '> themes.defaultHeaderBackgroundColor',
|
|
1590
|
+
description: 'Specify the table header background color using a hexadecimal code. For example, "#FFFFFF".',
|
|
1591
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
|
|
1592
|
+
type: 'string'
|
|
1593
|
+
},
|
|
1594
|
+
headerColor: {
|
|
1595
|
+
description: 'Specify the table header text color using a hexadecimal code. For example, "#FFFFFF".',
|
|
1596
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
|
|
1597
|
+
type: 'string'
|
|
1598
|
+
},
|
|
1599
|
+
rowBackgroundColors: {
|
|
1600
|
+
default: '> table | seriesByIndex(0) | pick(tableAltRowBackgroundColorsByTheme)',
|
|
1601
|
+
description: 'Specify a list of colors, in hexadecimal code, for the background color of each row of the table. For example, ["#2C333B", "32373D"].',
|
|
1602
|
+
type: 'array',
|
|
1603
|
+
items: {
|
|
1604
|
+
type: 'array',
|
|
1605
|
+
items: {
|
|
1606
|
+
type: 'string',
|
|
1607
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
},
|
|
1611
|
+
rowColors: {
|
|
1612
|
+
description: 'Specify a list of colors, in hexadecimal code, for the text color of each row of the table. For example, ["#2C333B", "32373D"].',
|
|
1613
|
+
type: 'array',
|
|
1614
|
+
items: {
|
|
1615
|
+
type: 'array',
|
|
1616
|
+
items: {
|
|
1617
|
+
type: 'string',
|
|
1618
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA
|
|
1619
|
+
}
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1622
|
+
sparklineAreaColors: {
|
|
1623
|
+
description: 'Specify a list of colors, in hexadecimal code, for the sparkline area of each row of the table. For example, ["#2C333B", "32373D"].',
|
|
1624
|
+
type: 'array',
|
|
1625
|
+
items: {
|
|
1626
|
+
type: 'array',
|
|
1627
|
+
items: {
|
|
1628
|
+
type: 'string',
|
|
1629
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
},
|
|
1633
|
+
sparklineColors: {
|
|
1634
|
+
description: 'Specify a list of colors, in hexadecimal code, for the sparkline stroke of each row of the table. For example, ["#2C333B", "32373D"].',
|
|
1635
|
+
type: 'array',
|
|
1636
|
+
items: {
|
|
1637
|
+
type: 'array',
|
|
1638
|
+
items: {
|
|
1639
|
+
type: 'string',
|
|
1640
|
+
pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN
|
|
1641
|
+
}
|
|
1642
|
+
}
|
|
1643
|
+
},
|
|
1644
|
+
sparklineTypes: {
|
|
1645
|
+
description: 'Choose either area or line formatting for the Sparkline.',
|
|
1646
|
+
type: 'array',
|
|
1647
|
+
items: {
|
|
1648
|
+
type: 'array',
|
|
1649
|
+
items: {
|
|
1650
|
+
type: 'string',
|
|
1651
|
+
enum: consts_1.validSparklineTypes.concat()
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1552
1655
|
}
|
|
1553
|
-
}
|
|
1554
|
-
return React.createElement(Table_1.default.HeadCell, Object.assign({
|
|
1555
|
-
elementRef: cellRef
|
|
1556
|
-
}, props), value);
|
|
1656
|
+
}
|
|
1557
1657
|
};
|
|
1658
|
+
var themes = {
|
|
1659
|
+
defaultBackgroundColor: function defaultBackgroundColor(props) {
|
|
1660
|
+
return pick_1.default({
|
|
1661
|
+
enterprise: {
|
|
1662
|
+
dark: variables_1.default.black(props),
|
|
1663
|
+
light: variables_1.default.backgroundColor(props)
|
|
1664
|
+
},
|
|
1665
|
+
prisma: variables_1.default.backgroundColorSidebar(props)
|
|
1666
|
+
})(props);
|
|
1667
|
+
},
|
|
1668
|
+
defaultHeaderBackgroundColor: function defaultHeaderBackgroundColor(props) {
|
|
1669
|
+
return pick_1.default({
|
|
1670
|
+
enterprise: {
|
|
1671
|
+
dark: variables_1.default.gray20(props),
|
|
1672
|
+
light: variables_1.default.gray92(props)
|
|
1673
|
+
},
|
|
1674
|
+
prisma: variables_1.default.backgroundColor(props)
|
|
1675
|
+
})(props);
|
|
1676
|
+
},
|
|
1677
|
+
rowBackgroundColorEven: function rowBackgroundColorEven(props) {
|
|
1678
|
+
return pick_1.default({
|
|
1679
|
+
enterprise: {
|
|
1680
|
+
dark: variables_1.default.black(props),
|
|
1681
|
+
light: variables_1.default.gray96(props)
|
|
1682
|
+
},
|
|
1683
|
+
prisma: variables_1.default.backgroundColorPage(props)
|
|
1684
|
+
})(props);
|
|
1685
|
+
},
|
|
1686
|
+
rowBackgroundColorOdd: function rowBackgroundColorOdd(props) {
|
|
1687
|
+
return pick_1.default({
|
|
1688
|
+
enterprise: {
|
|
1689
|
+
dark: '#0D1012',
|
|
1690
|
+
light: variables_1.default.backgroundColor(props)
|
|
1691
|
+
},
|
|
1692
|
+
prisma: variables_1.default.backgroundColorSidebar(props)
|
|
1693
|
+
})(props);
|
|
1694
|
+
},
|
|
1695
|
+
textColor: function textColor(props) {
|
|
1696
|
+
return pick_1.default({
|
|
1697
|
+
enterprise: variables_1.default.textColor(props),
|
|
1698
|
+
prisma: variables_1.default.contentColorDefault(props)
|
|
1699
|
+
})(props);
|
|
1700
|
+
},
|
|
1701
|
+
inverseTextColor: function inverseTextColor(props) {
|
|
1702
|
+
return pick_1.default({
|
|
1703
|
+
enterprise: {
|
|
1704
|
+
dark: variables_1.default.contentColorInverted(props),
|
|
1705
|
+
light: variables_1.default.white(props) // equal to textColor in enterpriseDark
|
|
1558
1706
|
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
mode = props.mode,
|
|
1579
|
-
headerVisibility = props.headerVisibility;
|
|
1580
|
-
|
|
1581
|
-
var _React$useState = React.useState(columnFormat),
|
|
1582
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1583
|
-
columns = _React$useState2[0],
|
|
1584
|
-
setColumns = _React$useState2[1];
|
|
1585
|
-
|
|
1586
|
-
var _React$useState3 = React.useState(columnFormat),
|
|
1587
|
-
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
1588
|
-
tempColumns = _React$useState4[0],
|
|
1589
|
-
setTempColumns = _React$useState4[1];
|
|
1590
|
-
|
|
1591
|
-
var _React$useState5 = React.useState(0),
|
|
1592
|
-
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1593
|
-
remainingWidth = _React$useState6[0],
|
|
1594
|
-
setRemainingWidth = _React$useState6[1];
|
|
1595
|
-
|
|
1596
|
-
var numColumnsWithoutWidth = Object.keys(tempColumns).reduce(function (acc, key) {
|
|
1597
|
-
var _a;
|
|
1598
|
-
|
|
1599
|
-
if ((_a = columns[key]) === null || _a === void 0 ? void 0 : _a.width) {
|
|
1600
|
-
return acc;
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
return acc + 1;
|
|
1604
|
-
}, 0);
|
|
1605
|
-
var containerRef = React.useRef(null);
|
|
1606
|
-
var widthRef = React.useRef(0);
|
|
1607
|
-
var widthSet = tableHeader.cells.length === tableHeader.cells.filter(function (_ref7) {
|
|
1608
|
-
var value = _ref7.value,
|
|
1609
|
-
showCell = _ref7.showCell;
|
|
1610
|
-
|
|
1611
|
-
var _a, _b;
|
|
1612
|
-
|
|
1613
|
-
return ((_a = columns[value]) === null || _a === void 0 ? void 0 : _a.width) !== undefined || ((_b = tempColumns[value]) === null || _b === void 0 ? void 0 : _b.width) !== undefined || !showCell;
|
|
1614
|
-
}).length;
|
|
1615
|
-
React.useEffect(function () {
|
|
1616
|
-
if (containerRef.current && containerRef.current.clientWidth !== widthRef.current) {
|
|
1617
|
-
widthRef.current = containerRef.current.clientWidth;
|
|
1618
|
-
recalculateTempColumnWidths();
|
|
1707
|
+
},
|
|
1708
|
+
prisma: variables_1.default.contentColorInverted(props)
|
|
1709
|
+
})(props);
|
|
1710
|
+
}
|
|
1711
|
+
};
|
|
1712
|
+
var backgroundColorPaletteSet = new Set([].concat(_toConsumableArray(colorConstants_1.COLOR_EDITOR_PALETTE), _toConsumableArray(lodash_1.map(themes, function (t) {
|
|
1713
|
+
return lodash_1.get(t, 'defaultBackgroundColor');
|
|
1714
|
+
}))));
|
|
1715
|
+
var EDITOR_LABEL_WIDTH = 100;
|
|
1716
|
+
var editorConfig = [{
|
|
1717
|
+
label: i18n_1._('Global Formatting'),
|
|
1718
|
+
layout: [[{
|
|
1719
|
+
label: i18n_1._('Rows Displayed'),
|
|
1720
|
+
option: 'count',
|
|
1721
|
+
editor: 'editor.number',
|
|
1722
|
+
editorProps: {
|
|
1723
|
+
labelPosition: 'left',
|
|
1724
|
+
min: 0,
|
|
1725
|
+
labelWidth: EDITOR_LABEL_WIDTH
|
|
1619
1726
|
}
|
|
1620
|
-
}
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
});
|
|
1727
|
+
}], [{
|
|
1728
|
+
label: i18n_1._('Row Numbers'),
|
|
1729
|
+
option: 'showRowNumbers',
|
|
1730
|
+
editor: 'editor.toggle',
|
|
1731
|
+
editorProps: {
|
|
1732
|
+
labelPosition: 'left',
|
|
1733
|
+
labelWidth: EDITOR_LABEL_WIDTH
|
|
1628
1734
|
}
|
|
1629
|
-
}, [
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
modeRef.current = mode;
|
|
1637
|
-
setColumns(columnFormat);
|
|
1735
|
+
}], [{
|
|
1736
|
+
label: i18n_1._('Internal Fields'),
|
|
1737
|
+
option: 'showInternalFields',
|
|
1738
|
+
editor: 'editor.toggle',
|
|
1739
|
+
editorProps: {
|
|
1740
|
+
labelPosition: 'left',
|
|
1741
|
+
labelWidth: EDITOR_LABEL_WIDTH
|
|
1638
1742
|
}
|
|
1639
|
-
}, [
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1743
|
+
}], [{
|
|
1744
|
+
label: i18n_1._('Header Row'),
|
|
1745
|
+
option: 'headerVisibility',
|
|
1746
|
+
editor: 'editor.radioBar',
|
|
1747
|
+
editorProps: {
|
|
1748
|
+
values: [{
|
|
1749
|
+
label: i18n_1._('Inline'),
|
|
1750
|
+
value: 'inline'
|
|
1751
|
+
}, {
|
|
1752
|
+
label: i18n_1._('Fixed'),
|
|
1753
|
+
value: 'fixed'
|
|
1754
|
+
}, {
|
|
1755
|
+
label: i18n_1._('Hidden'),
|
|
1756
|
+
value: 'none'
|
|
1757
|
+
}],
|
|
1758
|
+
labelPosition: 'left',
|
|
1759
|
+
labelWidth: EDITOR_LABEL_WIDTH
|
|
1649
1760
|
}
|
|
1650
|
-
},
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
var cellRefIndex = +col;
|
|
1659
|
-
var cellIndex = cellRefIndex;
|
|
1660
|
-
var rowIndex = +row;
|
|
1661
|
-
var fieldValue = tableHeader.cells[cellRefIndex].value;
|
|
1662
|
-
var cellValue = tableBody.rows[rowIndex].cells[cellRefIndex].value;
|
|
1663
|
-
var cellRawValue = tableBody.rows[rowIndex].cells[cellRefIndex].value;
|
|
1664
|
-
var value = arrayIndex === -1 ? cellValue : cellRawValue[+arrayIndex]; // Wish we did not have these if statements for
|
|
1665
|
-
// showRowNumbers
|
|
1666
|
-
|
|
1667
|
-
if (showRowNumbers === true) {
|
|
1668
|
-
if (cellIndex === 0) {
|
|
1669
|
-
// no click event for row numbers
|
|
1670
|
-
return;
|
|
1671
|
-
}
|
|
1672
|
-
|
|
1673
|
-
cellIndex -= 1;
|
|
1674
|
-
}
|
|
1675
|
-
|
|
1676
|
-
var payload = {
|
|
1677
|
-
cellIndex: cellIndex,
|
|
1678
|
-
rowIndex: rowIndex,
|
|
1679
|
-
fieldValue: fieldValue,
|
|
1680
|
-
cellValue: cellValue,
|
|
1681
|
-
cellRawValue: cellRawValue,
|
|
1682
|
-
value: value,
|
|
1683
|
-
name: fieldValue
|
|
1684
|
-
};
|
|
1685
|
-
tableBody.rows[rowIndex].cells.forEach(function (c, index) {
|
|
1686
|
-
var rowToken = "row.".concat(tableHeader.cells[index].value, ".value");
|
|
1687
|
-
payload[rowToken] = c.value;
|
|
1688
|
-
});
|
|
1689
|
-
debouncedDrilldown(e.nativeEvent, payload);
|
|
1761
|
+
}], [{
|
|
1762
|
+
key: 'backgroundColor',
|
|
1763
|
+
editor: 'editor.tableBackgroundColor',
|
|
1764
|
+
editorProps: {
|
|
1765
|
+
themes: themes,
|
|
1766
|
+
labelPosition: 'left',
|
|
1767
|
+
labelWidth: EDITOR_LABEL_WIDTH,
|
|
1768
|
+
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
1690
1769
|
}
|
|
1691
|
-
}, [
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
if (mode === 'edit') {
|
|
1706
|
-
debouncedOnColumnFormatChange(updatedCF);
|
|
1770
|
+
}], [{
|
|
1771
|
+
option: 'font',
|
|
1772
|
+
label: i18n_1._('Font'),
|
|
1773
|
+
editor: 'editor.select',
|
|
1774
|
+
editorProps: {
|
|
1775
|
+
values: [{
|
|
1776
|
+
label: i18n_1._('Proportional (Default)'),
|
|
1777
|
+
value: 'proportional'
|
|
1778
|
+
}, {
|
|
1779
|
+
label: i18n_1._('Monospace'),
|
|
1780
|
+
value: 'monospace'
|
|
1781
|
+
}],
|
|
1782
|
+
labelPosition: 'top',
|
|
1783
|
+
labelWidth: EDITOR_LABEL_WIDTH
|
|
1707
1784
|
}
|
|
1708
|
-
}, [
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
}
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1785
|
+
}], [{
|
|
1786
|
+
option: 'fontSize',
|
|
1787
|
+
label: i18n_1._('Font Size'),
|
|
1788
|
+
editor: 'editor.select',
|
|
1789
|
+
editorProps: {
|
|
1790
|
+
values: [{
|
|
1791
|
+
label: i18n_1._('Extra Small (font 10px, row 24px)'),
|
|
1792
|
+
value: 'extraSmall'
|
|
1793
|
+
}, {
|
|
1794
|
+
label: i18n_1._('Small (font 12px, row 24px)'),
|
|
1795
|
+
value: 'small'
|
|
1796
|
+
}, {
|
|
1797
|
+
label: i18n_1._('Default (font 14px, row 32px)'),
|
|
1798
|
+
value: 'default'
|
|
1799
|
+
}, {
|
|
1800
|
+
label: i18n_1._('Large (font 16px, row 36px)'),
|
|
1801
|
+
value: 'large'
|
|
1802
|
+
}],
|
|
1803
|
+
labelPosition: 'top',
|
|
1804
|
+
labelWidth: EDITOR_LABEL_WIDTH
|
|
1805
|
+
}
|
|
1806
|
+
}]]
|
|
1807
|
+
}, {
|
|
1808
|
+
label: i18n_1._('Column Formatting'),
|
|
1809
|
+
layout: [[{
|
|
1810
|
+
label: i18n_1._(''),
|
|
1811
|
+
editor: 'editor.tableColumnFormatter',
|
|
1812
|
+
editorProps: {
|
|
1813
|
+
// Table column coloring does not adhere to same DSL structure as other dynamically colored options
|
|
1814
|
+
// we use the FormatterEditor directly and not the DynamicColorEditor's provided DSL builders
|
|
1815
|
+
columnColoringConfig: {
|
|
1816
|
+
coloringTypes: [{
|
|
1817
|
+
label: i18n_1._('Text'),
|
|
1818
|
+
value: 'rowColors'
|
|
1819
|
+
}, {
|
|
1820
|
+
label: i18n_1._('Background'),
|
|
1821
|
+
value: 'rowBackgroundColors'
|
|
1822
|
+
}],
|
|
1823
|
+
formatters: [{
|
|
1824
|
+
label: i18n_1._('Ranges'),
|
|
1825
|
+
value: 'rangeValue',
|
|
1826
|
+
defaults: {
|
|
1827
|
+
rowBackgroundColors: sequentialColorConfig,
|
|
1828
|
+
rowColors: sequentialColorConfig
|
|
1829
|
+
}
|
|
1830
|
+
}, {
|
|
1831
|
+
label: i18n_1._('Matches'),
|
|
1832
|
+
value: 'matchValue',
|
|
1833
|
+
defaults: {
|
|
1834
|
+
rowBackgroundColors: matchColorConfig,
|
|
1835
|
+
rowColors: matchColorConfig
|
|
1836
|
+
}
|
|
1837
|
+
}],
|
|
1838
|
+
themes: themes
|
|
1839
|
+
},
|
|
1840
|
+
defaultOptionsByType: {
|
|
1841
|
+
number: {
|
|
1842
|
+
thousandSeparated: false,
|
|
1843
|
+
unitPosition: 'after'
|
|
1844
|
+
},
|
|
1845
|
+
string: {
|
|
1846
|
+
unitPosition: 'after'
|
|
1847
|
+
}
|
|
1848
|
+
},
|
|
1849
|
+
flyoutConfig: {
|
|
1850
|
+
number: [[Object.assign({}, unitPositionConfig), Object.assign({}, unitLabelConfig)], [{
|
|
1851
|
+
label: i18n_1._('Precision'),
|
|
1852
|
+
option: 'precision',
|
|
1853
|
+
editor: 'editor.select',
|
|
1854
|
+
editorProps: {
|
|
1855
|
+
values: configUtils_1.generatePrecisionValues(20)
|
|
1856
|
+
}
|
|
1857
|
+
}, {
|
|
1858
|
+
label: i18n_1._('Thousand Separators'),
|
|
1859
|
+
option: 'thousandSeparated',
|
|
1860
|
+
editor: 'editor.radioBar',
|
|
1861
|
+
editorProps: {
|
|
1862
|
+
values: [{
|
|
1863
|
+
label: i18n_1._('Off'),
|
|
1864
|
+
value: false
|
|
1865
|
+
}, {
|
|
1866
|
+
label: i18n_1._('On'),
|
|
1867
|
+
value: true
|
|
1868
|
+
}]
|
|
1869
|
+
}
|
|
1870
|
+
}]],
|
|
1871
|
+
// TODO(fkurniawan): fill in with proper editor components
|
|
1872
|
+
sparkline: [],
|
|
1873
|
+
string: [[Object.assign({}, unitPositionConfig), Object.assign({}, unitLabelConfig)]],
|
|
1874
|
+
time: [[Object.assign({}, timeFormattingConfig)]]
|
|
1875
|
+
},
|
|
1876
|
+
value: function value(_ref) {
|
|
1877
|
+
var context = _ref.context,
|
|
1878
|
+
options = _ref.options;
|
|
1879
|
+
return {
|
|
1880
|
+
context: context,
|
|
1881
|
+
columnFormat: options.columnFormat,
|
|
1882
|
+
tableFormat: options.tableFormat
|
|
1883
|
+
};
|
|
1884
|
+
}
|
|
1743
1885
|
},
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
value = _a.value,
|
|
1751
|
-
sortKey = _a.sortKey,
|
|
1752
|
-
rest = __rest(_a, ["key", "value", "sortKey"]);
|
|
1886
|
+
key: 'TableColumnFormatterEditor'
|
|
1887
|
+
}]]
|
|
1888
|
+
}];
|
|
1889
|
+
/**
|
|
1890
|
+
* visualization configuration
|
|
1891
|
+
*/
|
|
1753
1892
|
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
columns: columns,
|
|
1760
|
-
tempColumns: tempColumns,
|
|
1761
|
-
columnName: value,
|
|
1762
|
-
remainingWidth: remainingWidth,
|
|
1763
|
-
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1764
|
-
}),
|
|
1765
|
-
onMouseDown: handleEventClick,
|
|
1766
|
-
value: value,
|
|
1767
|
-
setTempColumnWidth: setTempColumns,
|
|
1768
|
-
widthSet: widthSet,
|
|
1769
|
-
onSort: withColumnResizing(onSort),
|
|
1770
|
-
headerVisibility: headerVisibility,
|
|
1771
|
-
setRemainingWidth: setRemainingWidth
|
|
1772
|
-
}, Object.assign({
|
|
1773
|
-
sortKey: sortKey
|
|
1774
|
-
}, rest)));
|
|
1775
|
-
})), React.createElement(Table_1.default.Body, null, tableBody.rows.map(function (row) {
|
|
1776
|
-
return React.createElement(Table_1.default.Row, {
|
|
1777
|
-
key: row.key
|
|
1778
|
-
}, row.cells.filter(function (c) {
|
|
1779
|
-
return c.showCell;
|
|
1780
|
-
}).map(function (cell) {
|
|
1781
|
-
return React.createElement(cells_1.SwitchTableCell, {
|
|
1782
|
-
key: cell.key,
|
|
1783
|
-
type: cell.cellType
|
|
1784
|
-
}, React.createElement(cells_1.TextCell, {
|
|
1785
|
-
cell: cell,
|
|
1786
|
-
useMouseOverEffect: !!onCellClick,
|
|
1787
|
-
width: utils_1.getColumnWidth({
|
|
1788
|
-
columns: columns,
|
|
1789
|
-
tempColumns: tempColumns,
|
|
1790
|
-
columnName: cell.header,
|
|
1791
|
-
remainingWidth: remainingWidth,
|
|
1792
|
-
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1793
|
-
})
|
|
1794
|
-
}), React.createElement(cells_1.SparklineCell, {
|
|
1795
|
-
cell: cell,
|
|
1796
|
-
useMouseOverEffect: !!onCellClick,
|
|
1797
|
-
width: utils_1.getColumnWidth({
|
|
1798
|
-
columns: columns,
|
|
1799
|
-
tempColumns: tempColumns,
|
|
1800
|
-
columnName: cell.header,
|
|
1801
|
-
remainingWidth: remainingWidth,
|
|
1802
|
-
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1803
|
-
})
|
|
1804
|
-
}), React.createElement(cells_1.ArrayCell, {
|
|
1805
|
-
cell: cell,
|
|
1806
|
-
useMouseOverEffect: !!onCellClick,
|
|
1807
|
-
width: utils_1.getColumnWidth({
|
|
1808
|
-
columns: columns,
|
|
1809
|
-
tempColumns: tempColumns,
|
|
1810
|
-
columnName: cell.header,
|
|
1811
|
-
remainingWidth: remainingWidth,
|
|
1812
|
-
numColumnsWithoutWidth: numColumnsWithoutWidth
|
|
1813
|
-
})
|
|
1814
|
-
}));
|
|
1815
|
-
}));
|
|
1816
|
-
})))), isPaging ? React.createElement(PaginatorContainer, null, React.createElement(Paginator_1.default, Object.assign({
|
|
1817
|
-
onChange: withColumnResizing(paginatorOnChange)
|
|
1818
|
-
}, paginatorProps))) : null);
|
|
1819
|
-
};
|
|
1893
|
+
var config = {
|
|
1894
|
+
/**
|
|
1895
|
+
* unique viz key
|
|
1896
|
+
*/
|
|
1897
|
+
key: 'splunk.table',
|
|
1820
1898
|
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
showRowNumbers: T.bool,
|
|
1842
|
-
sortParams: getSorting_1.SortParamsPropTypes,
|
|
1843
|
-
table: T.arrayOf(T.arrayOf(cellDataType)),
|
|
1844
|
-
tableFormat: T.shape({
|
|
1845
|
-
align: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validAlignments))),
|
|
1846
|
-
cellTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validCellRenderers))),
|
|
1847
|
-
data: T.arrayOf(T.arrayOf(cellDataType)),
|
|
1848
|
-
headerBackgroundColor: T.string,
|
|
1849
|
-
headerColor: T.string,
|
|
1850
|
-
rowBackgroundColors: T.oneOfType([T.arrayOf(T.string), T.arrayOf(T.arrayOf(T.string))]),
|
|
1851
|
-
rowColors: T.oneOfType([T.arrayOf(T.string), T.arrayOf(T.arrayOf(T.string))]),
|
|
1852
|
-
sparklineAreaColors: T.arrayOf(T.arrayOf(T.string)),
|
|
1853
|
-
sparklineColors: T.arrayOf(T.arrayOf(T.string)),
|
|
1854
|
-
sparklineTypes: T.arrayOf(T.arrayOf(T.oneOf(consts_1.validSparklineTypes)))
|
|
1855
|
-
}),
|
|
1856
|
-
theme: T.any,
|
|
1857
|
-
width: T.oneOfType([T.number]),
|
|
1858
|
-
onColumnFormatChange: T.func
|
|
1859
|
-
};
|
|
1860
|
-
PureTable.defaultProps = {
|
|
1861
|
-
columnFormat: {},
|
|
1862
|
-
headers: [],
|
|
1863
|
-
headerVisibility: 'inline',
|
|
1864
|
-
height: 300,
|
|
1865
|
-
mode: 'view',
|
|
1866
|
-
onCellClick: null,
|
|
1867
|
-
paginatorParams: {
|
|
1868
|
-
isPaging: false,
|
|
1869
|
-
onChange: lodash_1.noop
|
|
1870
|
-
},
|
|
1871
|
-
showRowNumbers: false,
|
|
1872
|
-
sortParams: {
|
|
1873
|
-
onSort: lodash_1.noop
|
|
1899
|
+
/**
|
|
1900
|
+
* viz name
|
|
1901
|
+
*/
|
|
1902
|
+
name: 'Table',
|
|
1903
|
+
category: VizCategory_1.VizCategory.TABLE,
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* viz icon
|
|
1907
|
+
*/
|
|
1908
|
+
icon: visualization_icons_1.Table,
|
|
1909
|
+
placeholderIcon: placeholders_1.Table,
|
|
1910
|
+
dataContract: dataContract,
|
|
1911
|
+
size: size,
|
|
1912
|
+
defaultContext: defaultContext,
|
|
1913
|
+
optionsSchema: optionsSchema,
|
|
1914
|
+
editorConfig: editorConfig,
|
|
1915
|
+
events: {
|
|
1916
|
+
'cell.click': {
|
|
1917
|
+
description: 'triggered when user clicks a table cell'
|
|
1918
|
+
}
|
|
1874
1919
|
},
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
theme: {},
|
|
1878
|
-
width: 300,
|
|
1879
|
-
onColumnFormatChange: lodash_1.noop
|
|
1920
|
+
supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS, VizBehavior_1.VizBehavior.PAGE_AND_SORT, VizBehavior_1.VizBehavior.PLACEHOLDER],
|
|
1921
|
+
themes: themes
|
|
1880
1922
|
};
|
|
1881
|
-
|
|
1882
|
-
exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable));
|
|
1923
|
+
exports.default = configUtils_1.enhanceConfig(config);
|
|
1883
1924
|
|
|
1884
1925
|
/***/ }),
|
|
1885
1926
|
|
|
1886
|
-
/***/
|
|
1927
|
+
/***/ 267:
|
|
1887
1928
|
/***/ (function(module, exports) {
|
|
1888
1929
|
|
|
1889
1930
|
module.exports = require("@splunk/react-ui/Paginator");
|
|
1890
1931
|
|
|
1891
1932
|
/***/ }),
|
|
1892
1933
|
|
|
1893
|
-
/***/
|
|
1934
|
+
/***/ 268:
|
|
1894
1935
|
/***/ (function(module, exports) {
|
|
1895
1936
|
|
|
1896
1937
|
module.exports = require("@splunk/react-ui/Message");
|
|
1897
1938
|
|
|
1898
1939
|
/***/ }),
|
|
1899
1940
|
|
|
1900
|
-
/***/
|
|
1941
|
+
/***/ 269:
|
|
1901
1942
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1902
1943
|
|
|
1903
1944
|
"use strict";
|
|
1904
1945
|
|
|
1905
1946
|
|
|
1906
|
-
var _toConsumableArray = __webpack_require__(
|
|
1947
|
+
var _toConsumableArray = __webpack_require__(9);
|
|
1907
1948
|
|
|
1908
|
-
var _typeof = __webpack_require__(
|
|
1949
|
+
var _typeof = __webpack_require__(23);
|
|
1909
1950
|
|
|
1910
1951
|
Object.defineProperty(exports, "__esModule", {
|
|
1911
1952
|
value: true
|
|
@@ -1914,9 +1955,9 @@ exports.useTable = exports.getTextOverflowType = exports.getOverflowStyles = voi
|
|
|
1914
1955
|
|
|
1915
1956
|
var lodash_1 = __webpack_require__(2);
|
|
1916
1957
|
|
|
1917
|
-
var colorUtils_1 = __webpack_require__(
|
|
1958
|
+
var colorUtils_1 = __webpack_require__(13);
|
|
1918
1959
|
|
|
1919
|
-
var consts_1 = __webpack_require__(
|
|
1960
|
+
var consts_1 = __webpack_require__(111);
|
|
1920
1961
|
|
|
1921
1962
|
var isArray = function isArray(v) {
|
|
1922
1963
|
return Array.isArray(v);
|
|
@@ -2323,7 +2364,78 @@ exports.useTable = useTable;
|
|
|
2323
2364
|
|
|
2324
2365
|
/***/ }),
|
|
2325
2366
|
|
|
2326
|
-
/***/
|
|
2367
|
+
/***/ 27:
|
|
2368
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2369
|
+
|
|
2370
|
+
"use strict";
|
|
2371
|
+
|
|
2372
|
+
|
|
2373
|
+
var _defineProperty = __webpack_require__(7);
|
|
2374
|
+
|
|
2375
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2376
|
+
value: true
|
|
2377
|
+
});
|
|
2378
|
+
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
2379
|
+
|
|
2380
|
+
var T = __webpack_require__(0);
|
|
2381
|
+
|
|
2382
|
+
var lodash_1 = __webpack_require__(2);
|
|
2383
|
+
|
|
2384
|
+
var DataSource_1 = __webpack_require__(37);
|
|
2385
|
+
|
|
2386
|
+
exports.SortParamsPropTypes = T.shape({
|
|
2387
|
+
currentSortKey: T.string,
|
|
2388
|
+
currentSortDir: T.oneOf(DataSource_1.validSortDirs),
|
|
2389
|
+
onSort: T.func
|
|
2390
|
+
});
|
|
2391
|
+
|
|
2392
|
+
var getSortingParams = function getSortingParams(_ref) {
|
|
2393
|
+
var requestParams = _ref.requestParams,
|
|
2394
|
+
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
2395
|
+
var currentSortKey;
|
|
2396
|
+
var currentSortDir;
|
|
2397
|
+
var nextSortDirMap = {
|
|
2398
|
+
asc: 'desc',
|
|
2399
|
+
desc: 'asc',
|
|
2400
|
+
none: 'asc'
|
|
2401
|
+
};
|
|
2402
|
+
var onSort;
|
|
2403
|
+
|
|
2404
|
+
if (lodash_1.isFunction(onRequestParamsChange)) {
|
|
2405
|
+
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
2406
|
+
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
2407
|
+
currentSortDir = requestParams.sort[currentSortKey];
|
|
2408
|
+
} // undid memoization since there is a dependency on requestParams, which is a deeply nested object
|
|
2409
|
+
|
|
2410
|
+
|
|
2411
|
+
onSort = function onSort(e, _ref2) {
|
|
2412
|
+
var sortKey = _ref2.sortKey,
|
|
2413
|
+
sortDir = _ref2.sortDir;
|
|
2414
|
+
|
|
2415
|
+
if (typeof sortKey === 'string') {
|
|
2416
|
+
var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
|
|
2417
|
+
onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
|
|
2418
|
+
offset: 0,
|
|
2419
|
+
sort: _defineProperty({}, sortKey, nextSortDir)
|
|
2420
|
+
}));
|
|
2421
|
+
} else {
|
|
2422
|
+
onRequestParamsChange(requestParams);
|
|
2423
|
+
}
|
|
2424
|
+
};
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
return {
|
|
2428
|
+
currentSortKey: currentSortKey,
|
|
2429
|
+
currentSortDir: currentSortDir,
|
|
2430
|
+
onSort: onSort
|
|
2431
|
+
};
|
|
2432
|
+
};
|
|
2433
|
+
|
|
2434
|
+
exports.getSortingParams = getSortingParams;
|
|
2435
|
+
|
|
2436
|
+
/***/ }),
|
|
2437
|
+
|
|
2438
|
+
/***/ 270:
|
|
2327
2439
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2328
2440
|
|
|
2329
2441
|
"use strict";
|
|
@@ -2352,82 +2464,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2352
2464
|
value: true
|
|
2353
2465
|
});
|
|
2354
2466
|
|
|
2355
|
-
__exportStar(__webpack_require__(270), exports);
|
|
2356
|
-
|
|
2357
2467
|
__exportStar(__webpack_require__(271), exports);
|
|
2358
2468
|
|
|
2359
2469
|
__exportStar(__webpack_require__(272), exports);
|
|
2360
2470
|
|
|
2361
2471
|
__exportStar(__webpack_require__(273), exports);
|
|
2362
2472
|
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
/***/ 27:
|
|
2366
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2367
|
-
|
|
2368
|
-
"use strict";
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2372
|
-
value: true
|
|
2373
|
-
});
|
|
2374
|
-
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
2375
|
-
|
|
2376
|
-
var T = __webpack_require__(0);
|
|
2377
|
-
|
|
2378
|
-
var lodash_1 = __webpack_require__(2);
|
|
2379
|
-
|
|
2380
|
-
exports.PaginatorParamsPropTypes = T.shape({
|
|
2381
|
-
isPaging: T.bool,
|
|
2382
|
-
current: T.number,
|
|
2383
|
-
totalPages: T.number,
|
|
2384
|
-
onChange: T.func
|
|
2385
|
-
});
|
|
2386
|
-
|
|
2387
|
-
var getPaginationParams = function getPaginationParams(_ref) {
|
|
2388
|
-
var requestParams = _ref.requestParams,
|
|
2389
|
-
meta = _ref.meta,
|
|
2390
|
-
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
2391
|
-
var totalCount = meta && meta.totalCount || 0;
|
|
2392
|
-
var offset = requestParams && requestParams.offset || 0;
|
|
2393
|
-
var count = requestParams && requestParams.count;
|
|
2394
|
-
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
2395
|
-
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
2396
|
-
var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
|
|
2397
|
-
|
|
2398
|
-
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
2399
|
-
var page = _ref2.page,
|
|
2400
|
-
countArg = _ref2.count;
|
|
2401
|
-
var newParams = lodash_1.cloneDeep(requestParams);
|
|
2402
|
-
|
|
2403
|
-
if (typeof countArg === 'number') {
|
|
2404
|
-
newParams.count = countArg;
|
|
2405
|
-
newParams.offset = 0;
|
|
2406
|
-
}
|
|
2407
|
-
|
|
2408
|
-
var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
|
|
2409
|
-
|
|
2410
|
-
if (typeof page === 'number' && page > 0) {
|
|
2411
|
-
newParams.count = pageCount;
|
|
2412
|
-
newParams.offset = (page - 1) * pageCount;
|
|
2413
|
-
}
|
|
2414
|
-
|
|
2415
|
-
onRequestParamsChange(newParams);
|
|
2416
|
-
};
|
|
2417
|
-
|
|
2418
|
-
return {
|
|
2419
|
-
isPaging: isPaging,
|
|
2420
|
-
current: current,
|
|
2421
|
-
totalPages: totalPages,
|
|
2422
|
-
onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
|
|
2423
|
-
};
|
|
2424
|
-
};
|
|
2425
|
-
|
|
2426
|
-
exports.getPaginationParams = getPaginationParams;
|
|
2473
|
+
__exportStar(__webpack_require__(274), exports);
|
|
2427
2474
|
|
|
2428
2475
|
/***/ }),
|
|
2429
2476
|
|
|
2430
|
-
/***/
|
|
2477
|
+
/***/ 271:
|
|
2431
2478
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2432
2479
|
|
|
2433
2480
|
"use strict";
|
|
@@ -2450,7 +2497,7 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
2450
2497
|
|
|
2451
2498
|
/***/ }),
|
|
2452
2499
|
|
|
2453
|
-
/***/
|
|
2500
|
+
/***/ 272:
|
|
2454
2501
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2455
2502
|
|
|
2456
2503
|
"use strict";
|
|
@@ -2463,7 +2510,7 @@ exports.TextCell = void 0;
|
|
|
2463
2510
|
|
|
2464
2511
|
var React = __webpack_require__(1);
|
|
2465
2512
|
|
|
2466
|
-
var Table_1 = __webpack_require__(
|
|
2513
|
+
var Table_1 = __webpack_require__(89);
|
|
2467
2514
|
|
|
2468
2515
|
var TextCell = function TextCell(_ref) {
|
|
2469
2516
|
var cell = _ref.cell,
|
|
@@ -2486,7 +2533,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
2486
2533
|
|
|
2487
2534
|
/***/ }),
|
|
2488
2535
|
|
|
2489
|
-
/***/
|
|
2536
|
+
/***/ 273:
|
|
2490
2537
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2491
2538
|
|
|
2492
2539
|
"use strict";
|
|
@@ -2499,7 +2546,7 @@ exports.ArrayCell = void 0;
|
|
|
2499
2546
|
|
|
2500
2547
|
var React = __webpack_require__(1);
|
|
2501
2548
|
|
|
2502
|
-
var Table_1 = __webpack_require__(
|
|
2549
|
+
var Table_1 = __webpack_require__(89);
|
|
2503
2550
|
|
|
2504
2551
|
var ArrayCell = function ArrayCell(_ref) {
|
|
2505
2552
|
var cell = _ref.cell,
|
|
@@ -2528,13 +2575,13 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
2528
2575
|
|
|
2529
2576
|
/***/ }),
|
|
2530
2577
|
|
|
2531
|
-
/***/
|
|
2578
|
+
/***/ 274:
|
|
2532
2579
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2533
2580
|
|
|
2534
2581
|
"use strict";
|
|
2535
2582
|
|
|
2536
2583
|
|
|
2537
|
-
var _slicedToArray = __webpack_require__(
|
|
2584
|
+
var _slicedToArray = __webpack_require__(52);
|
|
2538
2585
|
|
|
2539
2586
|
Object.defineProperty(exports, "__esModule", {
|
|
2540
2587
|
value: true
|
|
@@ -2543,9 +2590,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
|
|
|
2543
2590
|
|
|
2544
2591
|
var React = __webpack_require__(1);
|
|
2545
2592
|
|
|
2546
|
-
var Table_1 = __webpack_require__(
|
|
2593
|
+
var Table_1 = __webpack_require__(89);
|
|
2547
2594
|
|
|
2548
|
-
var Line_1 = __webpack_require__(
|
|
2595
|
+
var Line_1 = __webpack_require__(90);
|
|
2549
2596
|
|
|
2550
2597
|
var paddingLeftRight = 5;
|
|
2551
2598
|
var paddingTopBottom = 3;
|
|
@@ -2621,7 +2668,7 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
2621
2668
|
|
|
2622
2669
|
/***/ }),
|
|
2623
2670
|
|
|
2624
|
-
/***/
|
|
2671
|
+
/***/ 275:
|
|
2625
2672
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2626
2673
|
|
|
2627
2674
|
"use strict";
|
|
@@ -2630,7 +2677,9 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
2630
2677
|
Object.defineProperty(exports, "__esModule", {
|
|
2631
2678
|
value: true
|
|
2632
2679
|
});
|
|
2633
|
-
exports.getColumnWidth = void 0;
|
|
2680
|
+
exports.getLastColumnWidth = exports.getColumnWidth = void 0;
|
|
2681
|
+
|
|
2682
|
+
var PureTable_1 = __webpack_require__(139);
|
|
2634
2683
|
|
|
2635
2684
|
var getColumnWidth = function getColumnWidth(_ref) {
|
|
2636
2685
|
var columns = _ref.columns,
|
|
@@ -2661,10 +2710,59 @@ var getColumnWidth = function getColumnWidth(_ref) {
|
|
|
2661
2710
|
};
|
|
2662
2711
|
|
|
2663
2712
|
exports.getColumnWidth = getColumnWidth;
|
|
2713
|
+
/**
|
|
2714
|
+
* * Gets the width of the right most column
|
|
2715
|
+
* @param containerRefInnerWidth width of the table
|
|
2716
|
+
* @param lastShowingTableHeadersID id of the last table header
|
|
2717
|
+
* @param columns columns
|
|
2718
|
+
* @param tempColumns tempColumns runtime calculation of columns
|
|
2719
|
+
* @param firstShowingTableHeadersID id of the first table header
|
|
2720
|
+
* @returns number width of the last column
|
|
2721
|
+
*/
|
|
2722
|
+
|
|
2723
|
+
var getLastColumnWidth = function getLastColumnWidth(containerRefInnerWidth, lastShowingTableHeadersID, columns, tempColumns, firstShowingTableHeadersID) {
|
|
2724
|
+
var _a, _b, _c, _d; // save the width of the last column from either columns ( first as thats user defined ) then tempColumns ( created at runtime )
|
|
2725
|
+
|
|
2726
|
+
|
|
2727
|
+
var knownWidthOfLastColumn = ((_a = columns[lastShowingTableHeadersID]) === null || _a === void 0 ? void 0 : _a.width) || ((_b = tempColumns[lastShowingTableHeadersID]) === null || _b === void 0 ? void 0 : _b.width) || 0;
|
|
2728
|
+
var currentWidthSansLastColumn = 0; // calculate the width of all the column except the last column
|
|
2729
|
+
|
|
2730
|
+
Object.keys(tempColumns).forEach(function (key) {
|
|
2731
|
+
var _a;
|
|
2732
|
+
|
|
2733
|
+
if (key !== lastShowingTableHeadersID) {
|
|
2734
|
+
currentWidthSansLastColumn += ((_a = tempColumns[key]) === null || _a === void 0 ? void 0 : _a.width) || 0;
|
|
2735
|
+
}
|
|
2736
|
+
});
|
|
2737
|
+
Object.keys(columns).forEach(function (key) {
|
|
2738
|
+
var _a, _b, _c;
|
|
2739
|
+
|
|
2740
|
+
if (key !== lastShowingTableHeadersID) {
|
|
2741
|
+
if (((_a = tempColumns[key]) === null || _a === void 0 ? void 0 : _a.width) && ((_b = columns[key]) === null || _b === void 0 ? void 0 : _b.width)) {
|
|
2742
|
+
currentWidthSansLastColumn -= tempColumns[key].width;
|
|
2743
|
+
currentWidthSansLastColumn += ((_c = columns[key]) === null || _c === void 0 ? void 0 : _c.width) || 0;
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
}); // if the first column is not defined and the last is keep the last as the first will expand
|
|
2747
|
+
|
|
2748
|
+
if (!((_c = columns[firstShowingTableHeadersID]) === null || _c === void 0 ? void 0 : _c.width) && ((_d = columns[lastShowingTableHeadersID]) === null || _d === void 0 ? void 0 : _d.width)) {
|
|
2749
|
+
return columns[lastShowingTableHeadersID].width;
|
|
2750
|
+
} // if the width of the columns plus the last column is smaller than the table return the difference
|
|
2751
|
+
// so as to expand the last column
|
|
2752
|
+
|
|
2753
|
+
|
|
2754
|
+
if (currentWidthSansLastColumn + knownWidthOfLastColumn < containerRefInnerWidth && knownWidthOfLastColumn) {
|
|
2755
|
+
return Math.max(PureTable_1.MINIMUM_COLUMN_SIZE, containerRefInnerWidth - currentWidthSansLastColumn);
|
|
2756
|
+
}
|
|
2757
|
+
|
|
2758
|
+
return knownWidthOfLastColumn;
|
|
2759
|
+
};
|
|
2760
|
+
|
|
2761
|
+
exports.getLastColumnWidth = getLastColumnWidth;
|
|
2664
2762
|
|
|
2665
2763
|
/***/ }),
|
|
2666
2764
|
|
|
2667
|
-
/***/
|
|
2765
|
+
/***/ 276:
|
|
2668
2766
|
/***/ (function(module, exports) {
|
|
2669
2767
|
|
|
2670
2768
|
module.exports = require("lodash/debounce");
|
|
@@ -2677,6 +2775,71 @@ module.exports = require("lodash/debounce");
|
|
|
2677
2775
|
"use strict";
|
|
2678
2776
|
|
|
2679
2777
|
|
|
2778
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2779
|
+
value: true
|
|
2780
|
+
});
|
|
2781
|
+
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
2782
|
+
|
|
2783
|
+
var T = __webpack_require__(0);
|
|
2784
|
+
|
|
2785
|
+
var lodash_1 = __webpack_require__(2);
|
|
2786
|
+
|
|
2787
|
+
exports.PaginatorParamsPropTypes = T.shape({
|
|
2788
|
+
isPaging: T.bool,
|
|
2789
|
+
current: T.number,
|
|
2790
|
+
totalPages: T.number,
|
|
2791
|
+
onChange: T.func
|
|
2792
|
+
});
|
|
2793
|
+
|
|
2794
|
+
var getPaginationParams = function getPaginationParams(_ref) {
|
|
2795
|
+
var requestParams = _ref.requestParams,
|
|
2796
|
+
meta = _ref.meta,
|
|
2797
|
+
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
2798
|
+
var totalCount = meta && meta.totalCount || 0;
|
|
2799
|
+
var offset = requestParams && requestParams.offset || 0;
|
|
2800
|
+
var count = requestParams && requestParams.count;
|
|
2801
|
+
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
2802
|
+
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
2803
|
+
var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
|
|
2804
|
+
|
|
2805
|
+
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
2806
|
+
var page = _ref2.page,
|
|
2807
|
+
countArg = _ref2.count;
|
|
2808
|
+
var newParams = lodash_1.cloneDeep(requestParams);
|
|
2809
|
+
|
|
2810
|
+
if (typeof countArg === 'number') {
|
|
2811
|
+
newParams.count = countArg;
|
|
2812
|
+
newParams.offset = 0;
|
|
2813
|
+
}
|
|
2814
|
+
|
|
2815
|
+
var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
|
|
2816
|
+
|
|
2817
|
+
if (typeof page === 'number' && page > 0) {
|
|
2818
|
+
newParams.count = pageCount;
|
|
2819
|
+
newParams.offset = (page - 1) * pageCount;
|
|
2820
|
+
}
|
|
2821
|
+
|
|
2822
|
+
onRequestParamsChange(newParams);
|
|
2823
|
+
};
|
|
2824
|
+
|
|
2825
|
+
return {
|
|
2826
|
+
isPaging: isPaging,
|
|
2827
|
+
current: current,
|
|
2828
|
+
totalPages: totalPages,
|
|
2829
|
+
onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
|
|
2830
|
+
};
|
|
2831
|
+
};
|
|
2832
|
+
|
|
2833
|
+
exports.getPaginationParams = getPaginationParams;
|
|
2834
|
+
|
|
2835
|
+
/***/ }),
|
|
2836
|
+
|
|
2837
|
+
/***/ 29:
|
|
2838
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2839
|
+
|
|
2840
|
+
"use strict";
|
|
2841
|
+
|
|
2842
|
+
|
|
2680
2843
|
Object.defineProperty(exports, "__esModule", {
|
|
2681
2844
|
value: true
|
|
2682
2845
|
});
|
|
@@ -2700,7 +2863,14 @@ var VizCategory;
|
|
|
2700
2863
|
|
|
2701
2864
|
/***/ }),
|
|
2702
2865
|
|
|
2703
|
-
/***/
|
|
2866
|
+
/***/ 3:
|
|
2867
|
+
/***/ (function(module, exports) {
|
|
2868
|
+
|
|
2869
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
2870
|
+
|
|
2871
|
+
/***/ }),
|
|
2872
|
+
|
|
2873
|
+
/***/ 30:
|
|
2704
2874
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2705
2875
|
|
|
2706
2876
|
"use strict";
|
|
@@ -2714,35 +2884,35 @@ var React = __webpack_require__(1);
|
|
|
2714
2884
|
|
|
2715
2885
|
var lodash_1 = __webpack_require__(2);
|
|
2716
2886
|
|
|
2717
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
2887
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(31);
|
|
2718
2888
|
|
|
2719
|
-
var Options_1 = __webpack_require__(
|
|
2889
|
+
var Options_1 = __webpack_require__(32);
|
|
2720
2890
|
|
|
2721
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
2891
|
+
var SanitizeProps_1 = __webpack_require__(33);
|
|
2722
2892
|
|
|
2723
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
2893
|
+
var TimezoneContext_1 = __webpack_require__(21);
|
|
2724
2894
|
|
|
2725
|
-
var moment_1 = __webpack_require__(
|
|
2895
|
+
var moment_1 = __webpack_require__(34);
|
|
2726
2896
|
|
|
2727
2897
|
var styled_components_1 = __webpack_require__(4);
|
|
2728
2898
|
|
|
2729
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
2899
|
+
var SplunkVisualization_1 = __webpack_require__(35);
|
|
2730
2900
|
|
|
2731
2901
|
var VizBehavior_1 = __webpack_require__(5);
|
|
2732
2902
|
|
|
2733
|
-
var getSorting_1 = __webpack_require__(
|
|
2903
|
+
var getSorting_1 = __webpack_require__(27);
|
|
2734
2904
|
|
|
2735
|
-
var getPagination_1 = __webpack_require__(
|
|
2905
|
+
var getPagination_1 = __webpack_require__(28);
|
|
2736
2906
|
|
|
2737
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
2907
|
+
var useDeepMemo_1 = __webpack_require__(38);
|
|
2738
2908
|
|
|
2739
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
2909
|
+
var JSONSchemaUtils_1 = __webpack_require__(25);
|
|
2740
2910
|
|
|
2741
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
2911
|
+
var MissingPropsMessage_1 = __webpack_require__(39);
|
|
2742
2912
|
|
|
2743
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
2913
|
+
var withEditModeCover_1 = __webpack_require__(40);
|
|
2744
2914
|
|
|
2745
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
2915
|
+
var withPlaceholder_1 = __webpack_require__(42);
|
|
2746
2916
|
|
|
2747
2917
|
var hocUtils_1 = __webpack_require__(8);
|
|
2748
2918
|
/**
|
|
@@ -2946,48 +3116,41 @@ exports.default = withDashboardViz;
|
|
|
2946
3116
|
|
|
2947
3117
|
/***/ }),
|
|
2948
3118
|
|
|
2949
|
-
/***/
|
|
2950
|
-
/***/ (function(module, exports) {
|
|
2951
|
-
|
|
2952
|
-
module.exports = require("@splunk/ui-utils/i18n");
|
|
2953
|
-
|
|
2954
|
-
/***/ }),
|
|
2955
|
-
|
|
2956
|
-
/***/ 30:
|
|
3119
|
+
/***/ 31:
|
|
2957
3120
|
/***/ (function(module, exports) {
|
|
2958
3121
|
|
|
2959
3122
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2960
3123
|
|
|
2961
3124
|
/***/ }),
|
|
2962
3125
|
|
|
2963
|
-
/***/
|
|
3126
|
+
/***/ 32:
|
|
2964
3127
|
/***/ (function(module, exports) {
|
|
2965
3128
|
|
|
2966
3129
|
module.exports = require("@splunk/visualization-encoding/Options");
|
|
2967
3130
|
|
|
2968
3131
|
/***/ }),
|
|
2969
3132
|
|
|
2970
|
-
/***/
|
|
3133
|
+
/***/ 33:
|
|
2971
3134
|
/***/ (function(module, exports) {
|
|
2972
3135
|
|
|
2973
3136
|
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2974
3137
|
|
|
2975
3138
|
/***/ }),
|
|
2976
3139
|
|
|
2977
|
-
/***/
|
|
3140
|
+
/***/ 34:
|
|
2978
3141
|
/***/ (function(module, exports) {
|
|
2979
3142
|
|
|
2980
3143
|
module.exports = require("@splunk/moment");
|
|
2981
3144
|
|
|
2982
3145
|
/***/ }),
|
|
2983
3146
|
|
|
2984
|
-
/***/
|
|
3147
|
+
/***/ 35:
|
|
2985
3148
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2986
3149
|
|
|
2987
3150
|
"use strict";
|
|
2988
3151
|
|
|
2989
3152
|
|
|
2990
|
-
var _classCallCheck = __webpack_require__(
|
|
3153
|
+
var _classCallCheck = __webpack_require__(12);
|
|
2991
3154
|
|
|
2992
3155
|
Object.defineProperty(exports, "__esModule", {
|
|
2993
3156
|
value: true
|
|
@@ -2999,7 +3162,7 @@ var T = __webpack_require__(0);
|
|
|
2999
3162
|
|
|
3000
3163
|
var lodash_1 = __webpack_require__(2);
|
|
3001
3164
|
|
|
3002
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
3165
|
+
var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
3003
3166
|
|
|
3004
3167
|
|
|
3005
3168
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -3133,15 +3296,15 @@ exports.default = SplunkVisualization;
|
|
|
3133
3296
|
|
|
3134
3297
|
/***/ }),
|
|
3135
3298
|
|
|
3136
|
-
/***/
|
|
3299
|
+
/***/ 36:
|
|
3137
3300
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3138
3301
|
|
|
3139
3302
|
"use strict";
|
|
3140
3303
|
|
|
3141
3304
|
|
|
3142
|
-
var _classCallCheck = __webpack_require__(
|
|
3305
|
+
var _classCallCheck = __webpack_require__(12);
|
|
3143
3306
|
|
|
3144
|
-
var _createClass = __webpack_require__(
|
|
3307
|
+
var _createClass = __webpack_require__(17);
|
|
3145
3308
|
|
|
3146
3309
|
Object.defineProperty(exports, "__esModule", {
|
|
3147
3310
|
value: true
|
|
@@ -3171,7 +3334,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
3171
3334
|
|
|
3172
3335
|
/***/ }),
|
|
3173
3336
|
|
|
3174
|
-
/***/
|
|
3337
|
+
/***/ 37:
|
|
3175
3338
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3176
3339
|
|
|
3177
3340
|
"use strict";
|
|
@@ -3185,7 +3348,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
3185
3348
|
|
|
3186
3349
|
/***/ }),
|
|
3187
3350
|
|
|
3188
|
-
/***/
|
|
3351
|
+
/***/ 38:
|
|
3189
3352
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3190
3353
|
|
|
3191
3354
|
"use strict";
|
|
@@ -3231,7 +3394,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
3231
3394
|
|
|
3232
3395
|
/***/ }),
|
|
3233
3396
|
|
|
3234
|
-
/***/
|
|
3397
|
+
/***/ 39:
|
|
3235
3398
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3236
3399
|
|
|
3237
3400
|
"use strict";
|
|
@@ -3248,9 +3411,9 @@ var T = __webpack_require__(0);
|
|
|
3248
3411
|
|
|
3249
3412
|
var i18n_1 = __webpack_require__(3);
|
|
3250
3413
|
|
|
3251
|
-
var Message_1 = __webpack_require__(
|
|
3414
|
+
var Message_1 = __webpack_require__(11);
|
|
3252
3415
|
|
|
3253
|
-
var FixedSizeContainer_1 = __webpack_require__(
|
|
3416
|
+
var FixedSizeContainer_1 = __webpack_require__(14);
|
|
3254
3417
|
/**
|
|
3255
3418
|
* @method isMissing
|
|
3256
3419
|
* @param {any} v
|
|
@@ -3312,7 +3475,14 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
3312
3475
|
|
|
3313
3476
|
/***/ }),
|
|
3314
3477
|
|
|
3315
|
-
/***/
|
|
3478
|
+
/***/ 4:
|
|
3479
|
+
/***/ (function(module, exports) {
|
|
3480
|
+
|
|
3481
|
+
module.exports = require("styled-components");
|
|
3482
|
+
|
|
3483
|
+
/***/ }),
|
|
3484
|
+
|
|
3485
|
+
/***/ 40:
|
|
3316
3486
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3317
3487
|
|
|
3318
3488
|
"use strict";
|
|
@@ -3333,7 +3503,7 @@ var Cover = styled_components_1.default.div.withConfig({
|
|
|
3333
3503
|
componentId: "sc-1gsbnxb-0"
|
|
3334
3504
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3335
3505
|
var Blocker = styled_components_1.default.div.attrs({
|
|
3336
|
-
'data-splunk-visualization-version': "
|
|
3506
|
+
'data-splunk-visualization-version': "25.0.0 - 5e0f30e5a"
|
|
3337
3507
|
}).withConfig({
|
|
3338
3508
|
displayName: "withEditModeCover__Blocker",
|
|
3339
3509
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -3365,14 +3535,14 @@ exports.default = withEditModeCover;
|
|
|
3365
3535
|
|
|
3366
3536
|
/***/ }),
|
|
3367
3537
|
|
|
3368
|
-
/***/
|
|
3538
|
+
/***/ 41:
|
|
3369
3539
|
/***/ (function(module, exports) {
|
|
3370
3540
|
|
|
3371
|
-
module.exports = require("
|
|
3541
|
+
module.exports = require("@splunk/visualizations-shared/mapUtils");
|
|
3372
3542
|
|
|
3373
3543
|
/***/ }),
|
|
3374
3544
|
|
|
3375
|
-
/***/
|
|
3545
|
+
/***/ 42:
|
|
3376
3546
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3377
3547
|
|
|
3378
3548
|
"use strict";
|
|
@@ -3384,11 +3554,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3384
3554
|
|
|
3385
3555
|
var React = __webpack_require__(1);
|
|
3386
3556
|
|
|
3387
|
-
var colorUtils_1 = __webpack_require__(
|
|
3557
|
+
var colorUtils_1 = __webpack_require__(13);
|
|
3388
3558
|
|
|
3389
|
-
var variables_1 = __webpack_require__(
|
|
3559
|
+
var variables_1 = __webpack_require__(10);
|
|
3390
3560
|
|
|
3391
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
3561
|
+
var IconPlaceholder_1 = __webpack_require__(26);
|
|
3392
3562
|
|
|
3393
3563
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3394
3564
|
|
|
@@ -3437,28 +3607,21 @@ exports.default = withPlaceholder;
|
|
|
3437
3607
|
|
|
3438
3608
|
/***/ }),
|
|
3439
3609
|
|
|
3440
|
-
/***/
|
|
3441
|
-
/***/ (function(module, exports) {
|
|
3442
|
-
|
|
3443
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3444
|
-
|
|
3445
|
-
/***/ }),
|
|
3446
|
-
|
|
3447
|
-
/***/ 42:
|
|
3610
|
+
/***/ 43:
|
|
3448
3611
|
/***/ (function(module, exports) {
|
|
3449
3612
|
|
|
3450
3613
|
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3451
3614
|
|
|
3452
3615
|
/***/ }),
|
|
3453
3616
|
|
|
3454
|
-
/***/
|
|
3617
|
+
/***/ 45:
|
|
3455
3618
|
/***/ (function(module, exports) {
|
|
3456
3619
|
|
|
3457
3620
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3458
3621
|
|
|
3459
3622
|
/***/ }),
|
|
3460
3623
|
|
|
3461
|
-
/***/
|
|
3624
|
+
/***/ 46:
|
|
3462
3625
|
/***/ (function(module, exports) {
|
|
3463
3626
|
|
|
3464
3627
|
module.exports = require("@splunk/visualization-icons");
|
|
@@ -3503,7 +3666,7 @@ var VizBehavior;
|
|
|
3503
3666
|
|
|
3504
3667
|
/***/ }),
|
|
3505
3668
|
|
|
3506
|
-
/***/
|
|
3669
|
+
/***/ 52:
|
|
3507
3670
|
/***/ (function(module, exports) {
|
|
3508
3671
|
|
|
3509
3672
|
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
@@ -3516,6 +3679,8 @@ module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
|
3516
3679
|
"use strict";
|
|
3517
3680
|
|
|
3518
3681
|
|
|
3682
|
+
var _toConsumableArray = __webpack_require__(9);
|
|
3683
|
+
|
|
3519
3684
|
var _defineProperty = __webpack_require__(7);
|
|
3520
3685
|
|
|
3521
3686
|
var __rest = this && this.__rest || function (s, e) {
|
|
@@ -3534,11 +3699,11 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
3534
3699
|
Object.defineProperty(exports, "__esModule", {
|
|
3535
3700
|
value: true
|
|
3536
3701
|
});
|
|
3537
|
-
exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
3702
|
+
exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
|
|
3538
3703
|
|
|
3539
3704
|
var lodash_1 = __webpack_require__(2);
|
|
3540
3705
|
|
|
3541
|
-
var schemaUtils_1 = __webpack_require__(
|
|
3706
|
+
var schemaUtils_1 = __webpack_require__(16);
|
|
3542
3707
|
|
|
3543
3708
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3544
3709
|
|
|
@@ -3699,20 +3864,31 @@ function generatePrecisionValues(numPrecisionValues) {
|
|
|
3699
3864
|
}
|
|
3700
3865
|
|
|
3701
3866
|
exports.generatePrecisionValues = generatePrecisionValues;
|
|
3867
|
+
/**
|
|
3868
|
+
* insert layout in layout array, return a new layout array instead of updating the original
|
|
3869
|
+
*
|
|
3870
|
+
* @param {EditorLayoutConfig[][]} layout - editor layout
|
|
3871
|
+
* @param {Number} index - the index to insert layout item(s)
|
|
3872
|
+
* @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
|
|
3873
|
+
* @returns {EditorLayoutConfig[][]} new editor layout with insertion
|
|
3874
|
+
*/
|
|
3702
3875
|
|
|
3703
|
-
|
|
3876
|
+
var insertLayout = function insertLayout(layout, index) {
|
|
3877
|
+
for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
3878
|
+
layoutItems[_key - 2] = arguments[_key];
|
|
3879
|
+
}
|
|
3704
3880
|
|
|
3705
|
-
|
|
3706
|
-
|
|
3881
|
+
return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
|
|
3882
|
+
};
|
|
3707
3883
|
|
|
3708
|
-
|
|
3884
|
+
exports.insertLayout = insertLayout;
|
|
3709
3885
|
|
|
3710
3886
|
/***/ }),
|
|
3711
3887
|
|
|
3712
|
-
/***/
|
|
3888
|
+
/***/ 7:
|
|
3713
3889
|
/***/ (function(module, exports) {
|
|
3714
3890
|
|
|
3715
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3891
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3716
3892
|
|
|
3717
3893
|
/***/ }),
|
|
3718
3894
|
|
|
@@ -3722,14 +3898,16 @@ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
|
3722
3898
|
"use strict";
|
|
3723
3899
|
|
|
3724
3900
|
|
|
3725
|
-
var _typeof = __webpack_require__(
|
|
3901
|
+
var _typeof = __webpack_require__(23);
|
|
3726
3902
|
|
|
3727
3903
|
Object.defineProperty(exports, "__esModule", {
|
|
3728
3904
|
value: true
|
|
3729
3905
|
});
|
|
3730
|
-
exports.
|
|
3906
|
+
exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
|
|
3731
3907
|
|
|
3732
3908
|
var lodash_1 = __webpack_require__(2);
|
|
3909
|
+
|
|
3910
|
+
var mapUtils_1 = __webpack_require__(41);
|
|
3733
3911
|
/**
|
|
3734
3912
|
* @method extendStaticWrapperProps
|
|
3735
3913
|
* @param {Object} props
|
|
@@ -3784,7 +3962,7 @@ var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveO
|
|
|
3784
3962
|
// If option is an array of objects
|
|
3785
3963
|
for (var i = 0; i < clone[sourceKey].length; i += 1) {
|
|
3786
3964
|
if (_typeof(clone[sourceKey][i]) === 'object') {
|
|
3787
|
-
var closestMatchIdx =
|
|
3965
|
+
var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
|
|
3788
3966
|
|
|
3789
3967
|
if (closestMatchIdx > -1) {
|
|
3790
3968
|
clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
|
|
@@ -3798,71 +3976,34 @@ var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveO
|
|
|
3798
3976
|
};
|
|
3799
3977
|
|
|
3800
3978
|
exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
|
|
3801
|
-
/**
|
|
3802
|
-
* Finds the closest matching object from the list, which has the max same key value pairs.
|
|
3803
|
-
* Returns the index of match if found, or -1
|
|
3804
|
-
* For eg :-
|
|
3805
|
-
const list = [{
|
|
3806
|
-
type: "marker",
|
|
3807
|
-
lat: "value1"
|
|
3808
|
-
}, {
|
|
3809
|
-
type: "bubble",
|
|
3810
|
-
size: "value2"
|
|
3811
|
-
}];
|
|
3812
|
-
|
|
3813
|
-
const obj = {
|
|
3814
|
-
type: 'bubble'
|
|
3815
|
-
};
|
|
3816
|
-
|
|
3817
|
-
findClosestMatch(list, obj) -> returns index 1.
|
|
3818
|
-
*/
|
|
3819
3979
|
|
|
3820
|
-
|
|
3821
|
-
if (!Array.isArray(searchList) || searchList.length === 0) {
|
|
3822
|
-
return -1;
|
|
3823
|
-
}
|
|
3824
|
-
|
|
3825
|
-
var keys = Object.keys(inputObj);
|
|
3826
|
-
var maxMatchCnt = 0;
|
|
3827
|
-
var maxMatchIdx = 0;
|
|
3828
|
-
searchList.forEach(function (item, idx) {
|
|
3829
|
-
var matchCnt = 0;
|
|
3830
|
-
keys.forEach(function (key) {
|
|
3831
|
-
if (item[key] === inputObj[key]) {
|
|
3832
|
-
matchCnt += 1;
|
|
3833
|
-
}
|
|
3834
|
-
});
|
|
3980
|
+
/***/ }),
|
|
3835
3981
|
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
maxMatchIdx = idx;
|
|
3839
|
-
}
|
|
3840
|
-
});
|
|
3841
|
-
return maxMatchIdx;
|
|
3842
|
-
};
|
|
3982
|
+
/***/ 81:
|
|
3983
|
+
/***/ (function(module, exports) {
|
|
3843
3984
|
|
|
3844
|
-
exports
|
|
3985
|
+
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
3845
3986
|
|
|
3846
3987
|
/***/ }),
|
|
3847
3988
|
|
|
3848
|
-
/***/
|
|
3989
|
+
/***/ 89:
|
|
3849
3990
|
/***/ (function(module, exports) {
|
|
3850
3991
|
|
|
3851
3992
|
module.exports = require("@splunk/react-ui/Table");
|
|
3852
3993
|
|
|
3853
3994
|
/***/ }),
|
|
3854
3995
|
|
|
3855
|
-
/***/
|
|
3996
|
+
/***/ 9:
|
|
3856
3997
|
/***/ (function(module, exports) {
|
|
3857
3998
|
|
|
3858
|
-
module.exports = require("@
|
|
3999
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3859
4000
|
|
|
3860
4001
|
/***/ }),
|
|
3861
4002
|
|
|
3862
|
-
/***/
|
|
4003
|
+
/***/ 90:
|
|
3863
4004
|
/***/ (function(module, exports) {
|
|
3864
4005
|
|
|
3865
|
-
module.exports = require("@splunk/
|
|
4006
|
+
module.exports = require("@splunk/react-sparkline/Line");
|
|
3866
4007
|
|
|
3867
4008
|
/***/ })
|
|
3868
4009
|
|