@splunk/react-visualizations 25.13.1 → 26.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_Area_Chart_overlay_on.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_Label_show_Major_Ticks_show_Minor_Ticks_show.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_Major_Label_hide.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_Major_Unit_200.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_Major_and_Minor_Grid_show.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_Min_Number_250_Axis_Y2_Max_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_false.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_true.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_enabled_Title_specified.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_enabled_and_Title_collapsed.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Axis_Y2_label_show_Major_Ticks_Size_15_Minor_Ticks_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Area_Chart_overlay_on_Y2_mapped_to_specified_field.png +0 -0
- package/.loki/reference/chrome_docker_Area_Field_Colors_Count_green_Percent_orange.png +0 -0
- package/.loki/reference/chrome_docker_Area_Field_Colors_Count_green_Percent_orange_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Area_Legend_Placement_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Area_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Area_New_Legend_Label_Legend_Placement_top.png +0 -0
- package/.loki/reference/chrome_docker_Area_New_Legend_Label_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Area_New_very_long_legend_Label_Legend_Style_Mode_end.png +0 -0
- package/.loki/reference/chrome_docker_Area_New_very_long_legend_Label_Legend_Style_Mode_middle.png +0 -0
- package/.loki/reference/chrome_docker_Area_New_very_long_legend_Label_Legend_Style_Mode_none.png +0 -0
- package/.loki/reference/chrome_docker_Area_New_very_long_legend_Label_Legend_Style_Mode_start.png +0 -0
- package/.loki/reference/chrome_docker_Area_Null_Value_Mode_connect.png +0 -0
- package/.loki/reference/chrome_docker_Area_Null_Value_Mode_gaps.png +0 -0
- package/.loki/reference/chrome_docker_Area_Null_Value_Mode_zero.png +0 -0
- package/.loki/reference/chrome_docker_Area_SCP_categorical_color_palette.png +0 -0
- package/.loki/reference/chrome_docker_Area_Scaled_wrapper.png +0 -0
- package/.loki/reference/chrome_docker_Area_Series_Colors_red_and_blue.png +0 -0
- package/.loki/reference/chrome_docker_Area_Series_Colors_red_and_blue_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Area_Split_Series_Independent_true.png +0 -0
- package/.loki/reference/chrome_docker_Area_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Area_Stack_Mode_stacked.png +0 -0
- package/.loki/reference/chrome_docker_Area_Stack_Mode_stacked100.png +0 -0
- package/.loki/reference/chrome_docker_Area_Y2_mapped_to_specified_field.png +0 -0
- package/.loki/reference/chrome_docker_Area_multi_series_scp_theme.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_Label_Visibility_Major_Ticks_Size_15_Minor_Ticks_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_Major_Label_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_Major_Unit_200.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_Major_and_Minor_Grid_show.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_Min_Number_250_Axis_Y2_Max_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_Visibility_show_Major_Ticks_show_Minor_Ticks_show.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_false.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_true.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_and_Abbriviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_and_Title_collapsed.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_and_Title_specified.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Axis_Y2_enabled_and_Title_visible.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Chart_overlay_on_Y2_mapped_field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Field_Colors_Count_green_Percent_orange.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Field_Colors_Count_green_Percent_orange_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Legend_Placement_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Bar_New_Legend_Label_Legend_Placement_top.png +0 -0
- package/.loki/reference/chrome_docker_Bar_New_Legend_Label_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Bar_New_very_long_Legend_Label_Legend_Style_Mode_middle.png +0 -0
- package/.loki/reference/chrome_docker_Bar_New_very_long_legend_label_Legend_Style_Mode_end.png +0 -0
- package/.loki/reference/chrome_docker_Bar_New_very_long_legend_label_Legend_Style_Mode_start.png +0 -0
- package/.loki/reference/chrome_docker_Bar_SCP_categorical_color_palette.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Scaled_wrapper.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Series_Colors_red_and_blue.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Series_Colors_red_and_blue_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Split_Series_Independent_true.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Stack_Mode_stacked.png +0 -0
- package/.loki/reference/chrome_docker_Bar_Stack_Mode_stacked100.png +0 -0
- package/.loki/reference/chrome_docker_Bar_multi_series_scp_theme.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_100_height_width.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Abbreviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Extend_Range_true.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Integer_Unit_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Integer_Unit_true.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Major_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Major_Tick_Size_15_Axis_X_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Major_Unit_10.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Major_Unit_5.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Maximum_Number_20.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Minimum_Number_10.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Minor_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_X_Visibility_show_Axis_Y_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Abbreviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Extend_Range_true.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Major_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Major_Tick_Size_15_Axis_Y_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Major_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Major_Unit_100.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Maximum_Number_1000.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Minimum_Number_1000.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Minor_Tick_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Axis_Y_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Background_Color_green.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Bubble_Maximum_Size_75.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Bubble_Minimum_Size_25.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Bubble_Size_By_area.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Bubble_Size_By_diameter.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Field_Colors_200_green_201_brown.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Field_Colors_200_green_201_brown_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Font_Color_blue.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Foreground_Color_red.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Overflow_Mode_end.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Overflow_Mode_middle.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Overflow_Mode_none.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Overflow_Mode_start.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Placement_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Placement_left.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Placement_none.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Legend_Placement_top.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_SCP_categorical_color_palette.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Scaled_wrapper.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Series_Colors_red_and_blue.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Series_Colors_red_and_blue_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Title_of_Axis_Y_and_Axis_X_collapsed.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_Title_of_Axis_Y_and_Axis_X_specified.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_basic_dark_theme.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_basic_default_theme.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_basic_scp_theme.png +0 -0
- package/.loki/reference/chrome_docker_Bubble_default_height_width.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Label_show_Major_Ticks_show_Minor_Ticks_show.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Major_Label_hide.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Major_Unit_200.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Major_and_Minor_Grid_show.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Min_Number_250_Axis_Y2_Max_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_false.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_true.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_enabled_Title_specified.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_enabled_and_Abbriviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_enabled_and_Title_collapsed.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Axis_Y2_label_show_Major_Ticks_Size_15_Minor_Ticks_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Column_Chart_overlay_on_Y2_mapped_field_specified.png +0 -0
- package/.loki/reference/chrome_docker_Column_Column_Grouping_overlay.png +0 -0
- package/.loki/reference/chrome_docker_Column_Field_Colors_Count_green_Percent_orange.png +0 -0
- package/.loki/reference/chrome_docker_Column_Field_Colors_Count_green_Percent_orange_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Column_Legend_Placement_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Column_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Column_New_Legend_Label_Legend_Placement_top.png +0 -0
- package/.loki/reference/chrome_docker_Column_New_Legend_Label_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Column_New_very_long_legend_Label_Legend_Style_Mode_end.png +0 -0
- package/.loki/reference/chrome_docker_Column_New_very_long_legend_Label_Legend_Style_Mode_middle.png +0 -0
- package/.loki/reference/chrome_docker_Column_New_very_long_legend_Label_Legend_Style_Mode_none.png +0 -0
- package/.loki/reference/chrome_docker_Column_New_very_long_legend_Label_Legend_Style_Mode_start.png +0 -0
- package/.loki/reference/chrome_docker_Column_SCP_categorical_color_palette.png +0 -0
- package/.loki/reference/chrome_docker_Column_Scaled_wrapper.png +0 -0
- package/.loki/reference/chrome_docker_Column_Series_Colors_red_and_blue.png +0 -0
- package/.loki/reference/chrome_docker_Column_Series_Colors_red_and_blue_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Column_Split_Series_Independent_true.png +0 -0
- package/.loki/reference/chrome_docker_Column_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Column_Stack_Mode_stacked.png +0 -0
- package/.loki/reference/chrome_docker_Column_Stack_Mode_stacked100.png +0 -0
- package/.loki/reference/chrome_docker_Column_multi_series_scp_theme.png +0 -0
- package/.loki/reference/chrome_docker_Line_100_height_width.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_X_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_X_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_X_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_X_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_X_Major_Tick_Labels_show.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_X_hide.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_X_show.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Abbreviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Extend_Axis_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Extend_Axis_Range_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Integer_Units_false.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Integer_Units_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Major_Grid_false_Axis_X_Major_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Major_Tick_Labels_hide.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Major_Tick_Labels_show.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Major_and_Minor_Ticks_show_Axis_X_Major_Ticks_hide.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Maximum_Number_100000_Axis_X_Major_Tick_Labels_hide.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_hide.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_major_tick_size_15_and_minor_tick_size_10_Axis_X_major_tick_size_15.png +0 -0
- package/.loki/reference/chrome_docker_Line_Axis_Y_show.png +0 -0
- package/.loki/reference/chrome_docker_Line_Background_Color_green.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_Annotation.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Abbreviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Label_show_Major_Ticks_show_Minor_Ticks_show.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Major_Label_hide.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Major_Unit_200.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Major_and_Minor_Grid_show.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Min_Number_250_Axis_Y2_Max_Number_500.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_false.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_enabled_Axis_Y2_Integer_Units_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_enabled_Title_specified.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_enabled_and_Title_collapsed.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Axis_Y2_label_show_Major_Ticks_Size_15_Minor_Ticks_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Line_Chart_overlay_on_Y2_mapped_to_specified_field.png +0 -0
- package/.loki/reference/chrome_docker_Line_Data_Labels_all.png +0 -0
- package/.loki/reference/chrome_docker_Line_Data_Labels_minmax.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Colors_Count_green_Percent_orange.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Colors_Count_green_Percent_orange_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Dash_Style_Count_dot_Percent_dash.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Dash_Style_Count_longDashDot_Percent_longDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Dash_Style_Count_longDash_Percent_dashDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Dash_Style_Count_shortDashDot_Percent_shortDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Dash_Style_Count_shortDash_Percent_shortDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Dash_Style_Count_shortDash_Percent_shortDot_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Hide_List_percent.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Hide_List_percent_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Show_List_percent.png +0 -0
- package/.loki/reference/chrome_docker_Line_Field_Show_List_percent_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Line_Font_Color_blue.png +0 -0
- package/.loki/reference/chrome_docker_Line_Foreground_Color_red.png +0 -0
- package/.loki/reference/chrome_docker_Line_Legend_Mode_seriesCompare.png +0 -0
- package/.loki/reference/chrome_docker_Line_Legend_Placement_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Line_Legend_Placement_none.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_dash.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_dashDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_dot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_longDash.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_longDashDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_longDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_shortDash.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_shortDashDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_shortDashDotDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Dash_Style_shortDot.png +0 -0
- package/.loki/reference/chrome_docker_Line_Line_Width_5.png +0 -0
- package/.loki/reference/chrome_docker_Line_Multi_Series.png +0 -0
- package/.loki/reference/chrome_docker_Line_New_Legend_Label_Legend_Placement_top.png +0 -0
- package/.loki/reference/chrome_docker_Line_New_Legend_Label_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Line_New_very_long_legend_Label_Legend_Style_Mode_end.png +0 -0
- package/.loki/reference/chrome_docker_Line_New_very_long_legend_Label_Legend_Style_Mode_middle.png +0 -0
- package/.loki/reference/chrome_docker_Line_New_very_long_legend_Label_Legend_Style_Mode_none.png +0 -0
- package/.loki/reference/chrome_docker_Line_New_very_long_legend_Label_Legend_Style_Mode_start.png +0 -0
- package/.loki/reference/chrome_docker_Line_Null_Value_Mode_connect.png +0 -0
- package/.loki/reference/chrome_docker_Line_Null_Value_Mode_gaps.png +0 -0
- package/.loki/reference/chrome_docker_Line_Null_Value_Mode_zero.png +0 -0
- package/.loki/reference/chrome_docker_Line_SCP_categorical_color_palette.png +0 -0
- package/.loki/reference/chrome_docker_Line_Scaled_wrapper.png +0 -0
- package/.loki/reference/chrome_docker_Line_Series_Colors_red_and_blue.png +0 -0
- package/.loki/reference/chrome_docker_Line_Series_Colors_red_and_blue_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Line_Show_Markers_false.png +0 -0
- package/.loki/reference/chrome_docker_Line_Split_Series_Independent_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Split_Series_true.png +0 -0
- package/.loki/reference/chrome_docker_Line_Title_of_Axis_Y_and_Axis_X_collapsed.png +0 -0
- package/.loki/reference/chrome_docker_Line_Title_of_Axis_Y_and_Axis_X_specified.png +0 -0
- package/.loki/reference/chrome_docker_Line_Y2_mapped_to_specified_field.png +0 -0
- package/.loki/reference/chrome_docker_Line_basic_dark_theme.png +0 -0
- package/.loki/reference/chrome_docker_Line_basic_default_theme.png +0 -0
- package/.loki/reference/chrome_docker_Line_basic_scp_theme.png +0 -0
- package/.loki/reference/chrome_docker_Line_default_height_width.png +0 -0
- package/.loki/reference/chrome_docker_Line_fixed_height_400_width_600.png +0 -0
- package/.loki/reference/chrome_docker_Line_multi_series_scp_theme.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Donut_InnerSize_0_70_Show_Labels_false_Show_Legend_true_Legend_Label_Overflow_Mode_end.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Donut_InnerSize_0_70_Show_Labels_false_Show_Legend_true_Legend_Label_Overflow_Mode_middle.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Donut_InnerSize_0_70_Show_Labels_false_Show_Legend_true_Legend_Label_Overflow_Mode_none.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Donut_InnerSize_0_70_Show_Labels_false_Show_Legend_true_Legend_Label_Overflow_Mode_start.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Donut_InnerSize_0_70_Show_Labels_false_Show_Legend_true_Legend_Placement_left.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Donut_InnerSize_0_70_Show_Labels_false_Show_Legend_true_Legend_Placement_top.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Donut_Inner_Size_0_70_Show_Labels_false_Show_Legend_true.png +0 -0
- package/.loki/reference/chrome_docker_Pie_Show_Legend_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_100_height_width.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Abbreviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Extend_Range_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Integer_Unit_false.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Integer_Unit_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Label_Rotation_45.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Label_Rotation_90.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Label_Rotation_negative_45.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Label_Rotation_negative_90.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Major_Label_Visibility_hide_Axis_Y_Major_Label_Visibility_hide.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Major_Tick_Size_15_Axis_X_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Major_Unit_5.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Maximum_Number_20.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Minimum_Number_10.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Visibility_hide_Axis_Y_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_X_Visibility_show_Axis_Y_Major_Grid_false.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Abbreviation_on.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Extend_Range_false.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Extend_Range_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Include_Zero_false.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Include_Zero_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Major_Grid_false_Axis_Y_Minor_Grid_true.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Major_Tick_Size_15_Axis_Y_Minor_Tick_Size_10.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Major_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Major_Unit_100.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Maximum_Number_1000.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Minimum_Number_1000.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Minor_Tick_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Scale_log.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Axis_Y_Visibility_show.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Background_Color_green.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Field_Colors_200_green_201_orange.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Field_Colors_200_green_201_orange_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Font_Color_blue.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Foreground_Color_red.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Overflow_Mode_ellipsisEnd.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Overflow_Mode_ellipsisMiddle.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Overflow_Mode_ellipsisNone.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Overflow_Mode_ellipsisStart.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Placement_bottom.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Placement_left.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Placement_none.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Legend_Placement_top.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Marker_Size_6.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_SCP_categorical_color_palette.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Scaled_wrapper.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Series_Colors_red_blue_and_green.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Series_Colors_red_blue_and_green_deprecated_option_type_string.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Title_of_Axis_Y_and_Axis_X_collapsed.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_Title_of_Axis_Y_and_Axis_X_specified.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_basic_dark_theme.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_basic_default_theme.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_basic_scp_theme.png +0 -0
- package/.loki/reference/chrome_docker_Scatter_default_height_width.png +0 -0
- package/GeoJsonChoropleth.js +40 -40
- package/GeoJsonChoropleth.js.map +1 -1
- package/SvgChoropleth.js +3 -3
- package/SvgChoropleth.js.map +1 -1
- package/SvgChoroplethDynamic.js +1 -1
- package/SvgChoroplethDynamic.js.map +1 -1
- package/common/Charting.js +3 -4
- package/common/Charting.js.map +1 -1
- package/common/EventsDoc.js +3 -3
- package/common/EventsDoc.js.map +1 -1
- package/common/OptionsDoc.js +2 -2
- package/package.json +10 -10
package/SvgChoropleth.js
CHANGED
|
@@ -266,7 +266,7 @@ var SvgChoropleth = /*#__PURE__*/function (_React$Component) {
|
|
|
266
266
|
_createClass(SvgChoropleth, [{
|
|
267
267
|
key: "shouldComponentUpdate",
|
|
268
268
|
value: function shouldComponentUpdate(nextProps, nextState) {
|
|
269
|
-
var shouldUpdate = !lodash_1.isEqual(nextState.svgNode, this.state.svgNode) || !lodash_1.isEqual(nextProps, this.props);
|
|
269
|
+
var shouldUpdate = !(0, lodash_1.isEqual)(nextState.svgNode, this.state.svgNode) || !(0, lodash_1.isEqual)(nextProps, this.props);
|
|
270
270
|
return shouldUpdate;
|
|
271
271
|
}
|
|
272
272
|
}, {
|
|
@@ -344,8 +344,8 @@ var SvgChoropleth = /*#__PURE__*/function (_React$Component) {
|
|
|
344
344
|
});
|
|
345
345
|
this.svgDom.querySelectorAll(selector).forEach(function (node) {
|
|
346
346
|
var nodeData = dataHashMap[node.id];
|
|
347
|
-
node.style.fill = lodash_1.get(nodeData, 'fill') || fillColor;
|
|
348
|
-
var value = lodash_1.get(nodeData, 'value');
|
|
347
|
+
node.style.fill = (0, lodash_1.get)(nodeData, 'fill') || fillColor;
|
|
348
|
+
var value = (0, lodash_1.get)(nodeData, 'value');
|
|
349
349
|
if (value) {
|
|
350
350
|
node.setAttribute(exports.DATA_ATTRIBUTE, value);
|
|
351
351
|
} else {
|
package/SvgChoropleth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///./src/visualizations/SvgChoropleth/SvgChoropleth.tsx","webpack:///external \"styled-components\""],"names":["React","require","lodash_1","styled_components_1","exports","DATA_ATTRIBUTE","StyledSvgChoropleth","default","div","withConfig","displayName","componentId","props","backgroundColor","SvgChoropleth","_React$Component","_inherits","_super","_createSuper","_this","_classCallCheck","call","containerRef","createRef","highlightedCountry","getLocalCoords","clientX","clientY","rect","current","getBoundingClientRect","physX","left","physY","top","x","y","handleMapClick","event","pos","_this$props","featureCollection","onClick","clickedCoords","transformation","transformBack","feature","target","wholeFeature","id","parentNode","handleFeatureEnter","ev","ownerSVGElement","unHighlightCountry","highlightCountry","onFeatureHover","featureId","label","getAttribute","value","handleFeatureLeave","registerSvg","el","svgDom","_this$props2","_this$props2$selector","selector","strokeColor","fillColor","onmouseover","onmouseout","querySelectorAll","forEach","node","style","stroke","fill","updateSvg","state","svgNode","getSvgNode","_createClass","key","shouldComponentUpdate","nextProps","nextState","shouldUpdate","isEqual","componentDidUpdate","prevProps","setState","getFeatureId","alias","resolveAlias","firstLandlockedCountry","querySelector","parent","clone","cloneNode","strokeHighlightColor","insertBefore","removeChild","_this2","_props$selector","data","dataHashMap","featureIDs","index","values","nodeData","get","setAttribute","removeAttribute","render","_this$props$backgroun","createElement","onMouseDown","ref","Component"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,kC;;;;;;;ACAA,+D;;;;;;;ACAA,kE;;;;;;;ACAA,mC;;;;;;;ACAA,4D;;;;;;;ACAA,6E;;;;;;;ACAA,kE;;;;;;;;;;;;;;;;;;;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CACD;IAE9B;EAAC;EAAA,OAAAlE,aAAA;AAAA,EA9LsCd,KAAK,CAACuH,SAAiD;AAAlGnH,OAAA,CAAAG,OAAA,GAAAO,aAAA,C;;;;;;;ACtCA,8C","file":"SvgChoropleth.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 36);\n","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","/* eslint-disable no-param-reassign */\nimport * as React from 'react';\nimport { get, isEqual } from 'lodash';\nimport styled from 'styled-components';\nimport { ISvgFeatureCollection } from './src/utils/ISvgFeatureCollection';\nimport { DataPoint } from './src/utils/ICoordinateTransformation';\n\nexport const DATA_ATTRIBUTE = 'data-value';\n\nexport interface SvgChoroplethProps {\n featureCollection: ISvgFeatureCollection;\n data: { featureIDs: string[]; fill: string[]; values: any[] };\n fillColor: string;\n strokeColor: string;\n strokeHighlightColor?: string;\n backgroundColor?: string;\n selector: string;\n onFeatureHover: (params: { featureId: string; value: any; label?: string }) => void;\n onClick?: (sourceCoordinates: DataPoint, featureId: string) => void;\n}\n\nexport interface SvgChoroplethState {\n svgNode: React.ReactNode;\n}\n\nexport { GeoFeatureGroup } from './src/utils/GeoTypes';\n\ninterface StyledSvgChoroplethProps {\n readonly backgroundColor: string;\n}\n\nconst StyledSvgChoropleth = styled.div<StyledSvgChoroplethProps>`\n display: flex;\n flex-direction: column;\n position: relative;\n background-color: ${(props): string => props.backgroundColor};\n`;\n\nexport default class SvgChoropleth extends React.Component<SvgChoroplethProps, SvgChoroplethState> {\n containerRef: React.RefObject<HTMLDivElement> = React.createRef();\n\n // lastFeatureStroke: string;\n svgDom: SVGElement;\n\n highlightedCountry: SVGElement = null;\n\n constructor(props: SvgChoroplethProps) {\n super(props);\n const { featureCollection } = props;\n this.state = { svgNode: featureCollection.getSvgNode(this.registerSvg) };\n }\n\n shouldComponentUpdate(nextProps: Readonly<SvgChoroplethProps>, nextState: SvgChoroplethState): boolean {\n const shouldUpdate =\n !isEqual(nextState.svgNode, this.state.svgNode) || !isEqual(nextProps, this.props);\n return shouldUpdate;\n }\n\n componentDidUpdate(prevProps): void {\n if (this.props !== prevProps) {\n if (prevProps.featureCollection !== this.props.featureCollection) {\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n svgNode: this.props.featureCollection.getSvgNode(this.registerSvg),\n });\n } else {\n this.updateSvg(this.props);\n }\n }\n }\n\n getLocalCoords = (clientX: number, clientY: number): { x: number; y: number } => {\n const rect = this.containerRef.current.getBoundingClientRect();\n const physX = rect.left;\n const physY = rect.top;\n return { x: clientX - physX, y: clientY - physY };\n };\n\n handleMapClick = (event: React.MouseEvent<HTMLInputElement>): void => {\n const { clientX, clientY } = event;\n const pos = this.getLocalCoords(clientX, clientY);\n const { featureCollection, onClick } = this.props;\n const clickedCoords: DataPoint = featureCollection.transformation.transformBack(pos);\n const feature: SVGSVGElement = event.target as SVGSVGElement;\n const wholeFeature: SVGElement = feature.id ? feature : (feature.parentNode as SVGElement);\n if (onClick) {\n onClick(clickedCoords, wholeFeature.id);\n }\n };\n\n handleFeatureEnter = (ev: MouseEvent): void => {\n const feature: SVGSVGElement = ev.target as SVGSVGElement;\n\n if (!feature.id && !feature.ownerSVGElement) {\n return;\n }\n\n const wholeFeature: SVGElement = feature.id ? feature : (feature.parentNode as SVGElement);\n // remove the highlighted country IF we are entering a different country\n if (this.highlightedCountry && wholeFeature.id !== this.highlightedCountry.id) {\n this.unHighlightCountry();\n }\n this.highlightCountry(wholeFeature);\n\n if (this.props.onFeatureHover) {\n this.props.onFeatureHover({\n featureId: wholeFeature.id,\n label: wholeFeature.getAttribute('label_en'),\n value: wholeFeature.getAttribute(DATA_ATTRIBUTE),\n });\n }\n };\n\n handleFeatureLeave = (ev: MouseEvent): void => {\n const feature: SVGSVGElement = ev.target as SVGSVGElement;\n\n if (!feature.id && !feature.ownerSVGElement) {\n return;\n }\n\n // 'wholeFeature' means the SVG <g> (group) of multipolygon features\n const wholeFeature: SVGElement = feature.id ? feature : (feature.parentNode as SVGElement);\n // handling feature leaving should always only deal with the highlighted feature\n if (wholeFeature !== this.highlightedCountry) {\n return;\n }\n this.unHighlightCountry();\n // wholeFeature.style.stroke = this.lastFeatureStroke;\n\n if (this.props.onFeatureHover) {\n this.props.onFeatureHover({ featureId: null, value: null, label: null });\n }\n };\n\n // allows a provided alias like 'US-CA' to get mapped to 'California' which is the element id for the SVG shape\n private getFeatureId(alias: string): string {\n return this.props.featureCollection.resolveAlias(alias);\n }\n\n registerSvg = (el: SVGSVGElement): void => {\n if (!el) return;\n\n this.svgDom = el;\n\n const { selector = '.feature', strokeColor, fillColor } = this.props;\n\n this.svgDom.onmouseover = this.handleFeatureEnter;\n this.svgDom.onmouseout = this.handleFeatureLeave;\n\n this.svgDom.querySelectorAll(selector).forEach((node: HTMLElement): void => {\n node.style.stroke = strokeColor;\n node.style.fill = fillColor;\n });\n\n this.updateSvg(this.props);\n };\n\n /**\n * this method renders a copy of the polygon on top of all the others, with a highlighted boundary.\n * Technically we don't render in on top of ALL the others. There are three totally landlocked countries,\n * the first of which in our geojson file is Lesotho. These are also the last three countries in the geojson\n * file. So when we insert the highlight shape into the dom, we inert it *before* these three countries.\n * So the highlight for South Africa will not cover up Lesotho.\n * @param {SVGElement} el\n */\n highlightCountry(el: SVGElement): void {\n if (this.highlightedCountry) {\n return; // do not add more than one hovered element at a time\n }\n\n const firstLandlockedCountry = this.svgDom.querySelector(`#Lesotho`);\n const parent = el.parentNode;\n const clone: SVGElement = el.cloneNode(true) as SVGElement;\n const strokeColor = this.props.strokeHighlightColor || '#000';\n clone.style.stroke = strokeColor;\n this.highlightedCountry = clone;\n\n parent.insertBefore(clone, firstLandlockedCountry);\n }\n\n unHighlightCountry(): void {\n if (this.highlightedCountry) {\n this.svgDom.removeChild(this.highlightedCountry);\n }\n this.highlightedCountry = null;\n }\n\n updateSvg(props: SvgChoroplethProps): void {\n if (!this.svgDom) {\n return;\n }\n\n const { selector = '.feature', fillColor, data } = props;\n\n if (!data) {\n return;\n }\n const dataHashMap = {};\n\n data.featureIDs.forEach((alias, index): void => {\n const featureId = this.getFeatureId(alias);\n dataHashMap[featureId] = { fill: data.fill[index], value: data.values[index] };\n });\n this.svgDom.querySelectorAll(selector).forEach((node: HTMLElement): void => {\n const nodeData = dataHashMap[node.id];\n node.style.fill = get(nodeData, 'fill') || fillColor;\n const value = get(nodeData, 'value');\n if (value) {\n node.setAttribute(DATA_ATTRIBUTE, value);\n } else {\n node.removeAttribute(DATA_ATTRIBUTE);\n }\n });\n }\n\n render(): JSX.Element {\n const { backgroundColor = 'transparent' } = this.props;\n // note: for some reason, onclick event can't be triggered on dashboard. So change it to onMouseDown\n return (\n <StyledSvgChoropleth\n data-test=\"styled-svg-choropleth\"\n backgroundColor={backgroundColor}\n onMouseDown={this.handleMapClick}\n ref={this.containerRef}\n >\n {this.state.svgNode}\n </StyledSvgChoropleth>\n );\n }\n}\n","module.exports = require(\"styled-components\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"lodash\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///./src/visualizations/SvgChoropleth/SvgChoropleth.tsx","webpack:///external \"styled-components\""],"names":["React","require","lodash_1","styled_components_1","exports","DATA_ATTRIBUTE","StyledSvgChoropleth","default","div","withConfig","displayName","componentId","props","backgroundColor","SvgChoropleth","_React$Component","_inherits","_super","_createSuper","_this","_classCallCheck","call","containerRef","createRef","highlightedCountry","getLocalCoords","clientX","clientY","rect","current","getBoundingClientRect","physX","left","physY","top","x","y","handleMapClick","event","pos","_this$props","featureCollection","onClick","clickedCoords","transformation","transformBack","feature","target","wholeFeature","id","parentNode","handleFeatureEnter","ev","ownerSVGElement","unHighlightCountry","highlightCountry","onFeatureHover","featureId","label","getAttribute","value","handleFeatureLeave","registerSvg","el","svgDom","_this$props2","_this$props2$selector","selector","strokeColor","fillColor","onmouseover","onmouseout","querySelectorAll","forEach","node","style","stroke","fill","updateSvg","state","svgNode","getSvgNode","_createClass","key","shouldComponentUpdate","nextProps","nextState","shouldUpdate","isEqual","componentDidUpdate","prevProps","setState","getFeatureId","alias","resolveAlias","firstLandlockedCountry","querySelector","parent","clone","cloneNode","strokeHighlightColor","insertBefore","removeChild","_this2","_props$selector","data","dataHashMap","featureIDs","index","values","nodeData","get","setAttribute","removeAttribute","render","_this$props$backgroun","createElement","onMouseDown","ref","Component"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yC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,SAAAsD,OAAA,EAAM;MAAA,IAAAC,qBAAA,GAC0C,IAAI,CAACvG,KAAK,CAA9CC,eAAe;QAAfA,eAAe,GAAAsG,qBAAA,cAAG,aAAa,GAAAA,qBAAA,EACvC;MACA,OACInH,KAAA,CAAAoH,aAAA,CAAC9G,mBAAmB;QAAA,aACN,uBAAuB;QACjCO,eAAe,EAAEA,eAAe;QAChCwG,WAAW,EAAE,IAAI,CAAChF,cAAc;QAChCiF,GAAG,EAAE,IAAI,CAAChG;MAAY,GAErB,IAAI,CAACyD,KAAK,CAACC,OAAO,CACD;IAE9B;EAAC;EAAA,OAAAlE,aAAA;AAAA,EA9LsCd,KAAK,CAACuH,SAAiD;AAAlGnH,OAAA,CAAAG,OAAA,GAAAO,aAAA,C;;;;;;;ACtCA,8C","file":"SvgChoropleth.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 36);\n","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"lodash\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","/* eslint-disable no-param-reassign */\nimport * as React from 'react';\nimport { get, isEqual } from 'lodash';\nimport styled from 'styled-components';\nimport { ISvgFeatureCollection } from './src/utils/ISvgFeatureCollection';\nimport { DataPoint } from './src/utils/ICoordinateTransformation';\n\nexport const DATA_ATTRIBUTE = 'data-value';\n\nexport interface SvgChoroplethProps {\n featureCollection: ISvgFeatureCollection;\n data: { featureIDs: string[]; fill: string[]; values: any[] };\n fillColor: string;\n strokeColor: string;\n strokeHighlightColor?: string;\n backgroundColor?: string;\n selector: string;\n onFeatureHover: (params: { featureId: string; value: any; label?: string }) => void;\n onClick?: (sourceCoordinates: DataPoint, featureId: string) => void;\n}\n\nexport interface SvgChoroplethState {\n svgNode: React.ReactNode;\n}\n\nexport { GeoFeatureGroup } from './src/utils/GeoTypes';\n\ninterface StyledSvgChoroplethProps {\n readonly backgroundColor: string;\n}\n\nconst StyledSvgChoropleth = styled.div<StyledSvgChoroplethProps>`\n display: flex;\n flex-direction: column;\n position: relative;\n background-color: ${(props): string => props.backgroundColor};\n`;\n\nexport default class SvgChoropleth extends React.Component<SvgChoroplethProps, SvgChoroplethState> {\n containerRef: React.RefObject<HTMLDivElement> = React.createRef();\n\n // lastFeatureStroke: string;\n svgDom: SVGElement;\n\n highlightedCountry: SVGElement = null;\n\n constructor(props: SvgChoroplethProps) {\n super(props);\n const { featureCollection } = props;\n this.state = { svgNode: featureCollection.getSvgNode(this.registerSvg) };\n }\n\n shouldComponentUpdate(nextProps: Readonly<SvgChoroplethProps>, nextState: SvgChoroplethState): boolean {\n const shouldUpdate =\n !isEqual(nextState.svgNode, this.state.svgNode) || !isEqual(nextProps, this.props);\n return shouldUpdate;\n }\n\n componentDidUpdate(prevProps): void {\n if (this.props !== prevProps) {\n if (prevProps.featureCollection !== this.props.featureCollection) {\n // eslint-disable-next-line react/no-did-update-set-state\n this.setState({\n svgNode: this.props.featureCollection.getSvgNode(this.registerSvg),\n });\n } else {\n this.updateSvg(this.props);\n }\n }\n }\n\n getLocalCoords = (clientX: number, clientY: number): { x: number; y: number } => {\n const rect = this.containerRef.current.getBoundingClientRect();\n const physX = rect.left;\n const physY = rect.top;\n return { x: clientX - physX, y: clientY - physY };\n };\n\n handleMapClick = (event: React.MouseEvent<HTMLInputElement>): void => {\n const { clientX, clientY } = event;\n const pos = this.getLocalCoords(clientX, clientY);\n const { featureCollection, onClick } = this.props;\n const clickedCoords: DataPoint = featureCollection.transformation.transformBack(pos);\n const feature: SVGSVGElement = event.target as SVGSVGElement;\n const wholeFeature: SVGElement = feature.id ? feature : (feature.parentNode as SVGElement);\n if (onClick) {\n onClick(clickedCoords, wholeFeature.id);\n }\n };\n\n handleFeatureEnter = (ev: MouseEvent): void => {\n const feature: SVGSVGElement = ev.target as SVGSVGElement;\n\n if (!feature.id && !feature.ownerSVGElement) {\n return;\n }\n\n const wholeFeature: SVGElement = feature.id ? feature : (feature.parentNode as SVGElement);\n // remove the highlighted country IF we are entering a different country\n if (this.highlightedCountry && wholeFeature.id !== this.highlightedCountry.id) {\n this.unHighlightCountry();\n }\n this.highlightCountry(wholeFeature);\n\n if (this.props.onFeatureHover) {\n this.props.onFeatureHover({\n featureId: wholeFeature.id,\n label: wholeFeature.getAttribute('label_en'),\n value: wholeFeature.getAttribute(DATA_ATTRIBUTE),\n });\n }\n };\n\n handleFeatureLeave = (ev: MouseEvent): void => {\n const feature: SVGSVGElement = ev.target as SVGSVGElement;\n\n if (!feature.id && !feature.ownerSVGElement) {\n return;\n }\n\n // 'wholeFeature' means the SVG <g> (group) of multipolygon features\n const wholeFeature: SVGElement = feature.id ? feature : (feature.parentNode as SVGElement);\n // handling feature leaving should always only deal with the highlighted feature\n if (wholeFeature !== this.highlightedCountry) {\n return;\n }\n this.unHighlightCountry();\n // wholeFeature.style.stroke = this.lastFeatureStroke;\n\n if (this.props.onFeatureHover) {\n this.props.onFeatureHover({ featureId: null, value: null, label: null });\n }\n };\n\n // allows a provided alias like 'US-CA' to get mapped to 'California' which is the element id for the SVG shape\n private getFeatureId(alias: string): string {\n return this.props.featureCollection.resolveAlias(alias);\n }\n\n registerSvg = (el: SVGSVGElement): void => {\n if (!el) return;\n\n this.svgDom = el;\n\n const { selector = '.feature', strokeColor, fillColor } = this.props;\n\n this.svgDom.onmouseover = this.handleFeatureEnter;\n this.svgDom.onmouseout = this.handleFeatureLeave;\n\n this.svgDom.querySelectorAll(selector).forEach((node: HTMLElement): void => {\n node.style.stroke = strokeColor;\n node.style.fill = fillColor;\n });\n\n this.updateSvg(this.props);\n };\n\n /**\n * this method renders a copy of the polygon on top of all the others, with a highlighted boundary.\n * Technically we don't render in on top of ALL the others. There are three totally landlocked countries,\n * the first of which in our geojson file is Lesotho. These are also the last three countries in the geojson\n * file. So when we insert the highlight shape into the dom, we inert it *before* these three countries.\n * So the highlight for South Africa will not cover up Lesotho.\n * @param {SVGElement} el\n */\n highlightCountry(el: SVGElement): void {\n if (this.highlightedCountry) {\n return; // do not add more than one hovered element at a time\n }\n\n const firstLandlockedCountry = this.svgDom.querySelector(`#Lesotho`);\n const parent = el.parentNode;\n const clone: SVGElement = el.cloneNode(true) as SVGElement;\n const strokeColor = this.props.strokeHighlightColor || '#000';\n clone.style.stroke = strokeColor;\n this.highlightedCountry = clone;\n\n parent.insertBefore(clone, firstLandlockedCountry);\n }\n\n unHighlightCountry(): void {\n if (this.highlightedCountry) {\n this.svgDom.removeChild(this.highlightedCountry);\n }\n this.highlightedCountry = null;\n }\n\n updateSvg(props: SvgChoroplethProps): void {\n if (!this.svgDom) {\n return;\n }\n\n const { selector = '.feature', fillColor, data } = props;\n\n if (!data) {\n return;\n }\n const dataHashMap = {};\n\n data.featureIDs.forEach((alias, index): void => {\n const featureId = this.getFeatureId(alias);\n dataHashMap[featureId] = { fill: data.fill[index], value: data.values[index] };\n });\n this.svgDom.querySelectorAll(selector).forEach((node: HTMLElement): void => {\n const nodeData = dataHashMap[node.id];\n node.style.fill = get(nodeData, 'fill') || fillColor;\n const value = get(nodeData, 'value');\n if (value) {\n node.setAttribute(DATA_ATTRIBUTE, value);\n } else {\n node.removeAttribute(DATA_ATTRIBUTE);\n }\n });\n }\n\n render(): JSX.Element {\n const { backgroundColor = 'transparent' } = this.props;\n // note: for some reason, onclick event can't be triggered on dashboard. So change it to onMouseDown\n return (\n <StyledSvgChoropleth\n data-test=\"styled-svg-choropleth\"\n backgroundColor={backgroundColor}\n onMouseDown={this.handleMapClick}\n ref={this.containerRef}\n >\n {this.state.svgNode}\n </StyledSvgChoropleth>\n );\n }\n}\n","module.exports = require(\"styled-components\");"],"sourceRoot":""}
|
package/SvgChoroplethDynamic.js
CHANGED
|
@@ -144,7 +144,7 @@ var SvgChoroplethDynamic = function SvgChoroplethDynamic(props) {
|
|
|
144
144
|
"data-test": "choropleth-svg-message",
|
|
145
145
|
width: width,
|
|
146
146
|
height: height,
|
|
147
|
-
message: i18n_1._('No literal SVG is provided')
|
|
147
|
+
message: (0, i18n_1._)('No literal SVG is provided')
|
|
148
148
|
});
|
|
149
149
|
}
|
|
150
150
|
return React.createElement(ChoroplethSvg_1.PureSvgChoroplethDynamic, Object.assign({}, props));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualizations-shared/Message\"","webpack:///./src/visualizations/SvgChoroplethDynamic/SvgChoroplethDynamic.tsx","webpack:///external \"@splunk/visualizations/ChoroplethSvg\""],"names":["React","require","T","ChoroplethSvg_1","Message_1","i18n_1","SvgChoroplethDynamic","props","width","height","svg","createElement","default","message","_","PureSvgChoroplethDynamic","Object","assign","exports","propTypes","oneOfType","string","number","defaultProps"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;;AClFA,uC;;;;;;;ACAA,kC;;;;;;;ACAA,kD;;;;;;;ACAA,kE;;;;;;;;;;;;;;ACAA,IAAAA,KAAA,GAAAC,mBAAA;AACA,IAAAC,CAAA,GAAAD,mBAAA;AACA,IAAAE,eAAA,GAAAF,mBAAA;AACA,IAAAG,SAAA,GAAAH,mBAAA;AACA,IAAAI,MAAA,GAAAJ,mBAAA;AAEO,IAAMK,oBAAoB,GAAG,SAAvBA,oBAAoBA,CAAGC,KAAK,EAAG;EAAA,IAChCC,KAAK,GAAkBD,KAAK,CAA5BC,KAAK;IAAEC,MAAM,GAAUF,KAAK,CAArBE,MAAM;IAAEC,GAAG,GAAKH,KAAK,CAAbG,GAAG;EAC1B,IAAI,CAACA,GAAG,EAAE;IACN,OACIV,KAAA,CAAAW,aAAA,CAACP,SAAA,CAAAQ,OAAO;MAAA,aACM,wBAAwB;MAClCJ,KAAK,EAAEA,KAAK;MACZC,MAAM,EAAEA,MAAM;MACdI,OAAO,
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualizations-shared/Message\"","webpack:///./src/visualizations/SvgChoroplethDynamic/SvgChoroplethDynamic.tsx","webpack:///external \"@splunk/visualizations/ChoroplethSvg\""],"names":["React","require","T","ChoroplethSvg_1","Message_1","i18n_1","SvgChoroplethDynamic","props","width","height","svg","createElement","default","message","_","PureSvgChoroplethDynamic","Object","assign","exports","propTypes","oneOfType","string","number","defaultProps"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;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,CAAAC,MAAA,KAAKV,KAAK,EAAI;AAClD,CAAC;AAbYW,OAAA,CAAAZ,oBAAoB,GAAAA,oBAAA;AAcjCY,OAAA,CAAAZ,oBAAoB,CAACa,SAAS,GAAG;EAC7BX,KAAK,EAAEN,CAAC,CAACkB,SAAS,CAAC,CAAClB,CAAC,CAACmB,MAAM,EAAEnB,CAAC,CAACoB,MAAM,CAAC,CAAC;EACxCb,MAAM,EAAEP,CAAC,CAACkB,SAAS,CAAC,CAAClB,CAAC,CAACmB,MAAM,EAAEnB,CAAC,CAACoB,MAAM,CAAC,CAAC;EACzCZ,GAAG,EAAER,CAAC,CAACmB;CACV;AAEDH,OAAA,CAAAZ,oBAAoB,CAACiB,YAAY,GAAG;EAChCf,KAAK,EAAE,MAAM;EACbC,MAAM,EAAE;CACX;AAEDS,OAAA,CAAAN,OAAA,GAAeM,OAAA,CAAAZ,oBAAoB,C;;;;;;;AC/BnC,iE","file":"SvgChoroplethDynamic.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 69);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualizations-shared/Message\");","import * as React from 'react';\nimport * as T from 'prop-types';\nimport { PureSvgChoroplethDynamic } from '@splunk/visualizations/ChoroplethSvg';\nimport Message from '@splunk/visualizations-shared/Message';\nimport { _ } from '@splunk/ui-utils/i18n';\n\nexport const SvgChoroplethDynamic = props => {\n const { width, height, svg } = props;\n if (!svg) {\n return (\n <Message\n data-test=\"choropleth-svg-message\"\n width={width}\n height={height}\n message={_('No literal SVG is provided')}\n />\n );\n }\n return <PureSvgChoroplethDynamic {...props} />;\n};\nSvgChoroplethDynamic.propTypes = {\n width: T.oneOfType([T.string, T.number]),\n height: T.oneOfType([T.string, T.number]),\n svg: T.string,\n};\n\nSvgChoroplethDynamic.defaultProps = {\n width: '100%',\n height: 250,\n};\n\nexport default SvgChoroplethDynamic;\n","module.exports = require(\"@splunk/visualizations/ChoroplethSvg\");"],"sourceRoot":""}
|
package/common/Charting.js
CHANGED
|
@@ -146,13 +146,13 @@ module.exports = require("@babel/runtime/helpers/createClass");
|
|
|
146
146
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
147
147
|
|
|
148
148
|
/***/ }),
|
|
149
|
-
/* 10
|
|
149
|
+
/* 10 */,
|
|
150
|
+
/* 11 */
|
|
150
151
|
/***/ (function(module, exports) {
|
|
151
152
|
|
|
152
153
|
module.exports = require("@splunk/charting-bundle");
|
|
153
154
|
|
|
154
155
|
/***/ }),
|
|
155
|
-
/* 11 */,
|
|
156
156
|
/* 12 */
|
|
157
157
|
/***/ (function(module, exports) {
|
|
158
158
|
|
|
@@ -282,7 +282,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
282
282
|
/* harmony import */ var _splunk_visualizations_shared_i18n__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_i18n__WEBPACK_IMPORTED_MODULE_12__);
|
|
283
283
|
/* harmony import */ var _splunk_visualization_context_TimezoneContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(19);
|
|
284
284
|
/* harmony import */ var _splunk_visualization_context_TimezoneContext__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualization_context_TimezoneContext__WEBPACK_IMPORTED_MODULE_13__);
|
|
285
|
-
/* harmony import */ var _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(
|
|
285
|
+
/* harmony import */ var _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(11);
|
|
286
286
|
/* harmony import */ var _splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(_splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_14__);
|
|
287
287
|
/* harmony import */ var _splunk_visualizations_shared_style__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(20);
|
|
288
288
|
/* harmony import */ var _splunk_visualizations_shared_style__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_style__WEBPACK_IMPORTED_MODULE_15__);
|
|
@@ -359,7 +359,6 @@ function _isNativeReflectConstruct() {
|
|
|
359
359
|
|
|
360
360
|
|
|
361
361
|
var NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
|
|
362
|
-
_splunk_charting_bundle__WEBPACK_IMPORTED_MODULE_14___default.a.enableScaledEvents();
|
|
363
362
|
var changedOptions = function changedOptions(a, b) {
|
|
364
363
|
return Object.keys(a).filter(function (k) {
|
|
365
364
|
return !(k in b);
|
package/common/Charting.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"lodash\"","webpack:///external \"styled-components\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@splunk/charting-bundle\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///./src/common/ChartingApi.ts","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualizations-shared/Message\"","webpack:///external \"react-event-listener\"","webpack:///external \"@splunk/visualization-context/TimezoneContext\"","webpack:///external \"@splunk/visualizations-shared/style\"","webpack:///./src/common/Charting.jsx","webpack:///external \"@splunk/visualizations-shared/i18n\""],"names":["ChartingApi","charting","_classCallCheck","_createClass","key","value","highlight","_ref","arguments","length","undefined","xValue","seriesName","chart","unHighlight","exports","default","NO_INPLACE_PROPS","jsCharting","enableScaledEvents","changedOptions","a","b","Object","keys","filter","k","concat","ChartingContainer","styled","div","withConfig","displayName","componentId","props","toDimension","pick","Charting","_Component","_inherits","_super","_createSuper","context","_this","call","_defineProperty","_assertThisInitialized","debounce","_this$props","options","chartData","themeKey","colorPalette","updatedOptions","_objectSpread","shouldColorizeTooltipData","_this$computeCharting","computeChartingSize","width","height","serializedTimezone","get","ianaTimezone","utcOffset","needsInit","destroyChart","setTheme","setColorPalette","createChart","container","drilldown","on","e","handleClick","handlePointMouseOver","handlePointMouseOut","handleSelect","needsRedraw","prepareAndDraw","resize","window","console","error","drawChart","rect","getBoundingClientRect","chartEvent","type","onClick","originalEvent","payload","onEventTrigger","onPointMouseOver","onPointMouseOut","onSelect","api","componentDidMount","visualizationApiRef","UNSAFE_componentWillReceiveProps","nextProps","nextOptions","nextData","_this$props2","currentOptions","currentData","canUpdateInPlace","isEqual","toJSON","annotations","componentDidUpdate","componentWillUnmount","destroy","render","_this$props3","style","React","createElement","ref","onContainerMount","EventListener","target","onResize","Message","text","_","level","curOptions","some","p","toLowerCase","endsWith","Component","T","oneOfType","string","number","object","func","array","TimezoneContext"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA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BzC,YAAY,EAAE,EAAE;EAChB6C,mBAAmB,EAAE,SAAAA,oBAAA,EAAM,CAAC;AAChC,CAAC;AAAApD,4EAAA,CAhDgBR,QAAQ,iBAkDJsG,qFAAe;;;;;;;ACrFxC,+D","file":"Charting.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 23);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"lodash\");","module.exports = require(\"styled-components\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@splunk/charting-bundle\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","interface Point {\n /**\n * Valid xValue of the chart\n *\n * @type {string|number}\n * @memberof Point\n */\n xValue?: string | number;\n\n /**\n * Valid seriesName for a chart\n *\n * @type {string}\n * @memberof Point\n */\n seriesName?: string;\n}\nclass ChartingApi {\n charting;\n\n constructor(charting) {\n this.charting = charting;\n }\n\n /**\n * Allows users to programmatically highlight a point on the chart\n *\n * @memberof ChartingApi\n */\n highlight({ xValue, seriesName }: Point = { xValue: '', seriesName: '' }) {\n this.charting.chart.highlight(xValue, seriesName);\n }\n\n /**\n * Allows users to programmatically unhighlight all points on the chart\n *\n * @memberof ChartingApi\n */\n unHighlight() {\n this.charting.chart.unHighlight();\n }\n}\n\nexport default ChartingApi;\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualizations-shared/Message\");","module.exports = require(\"react-event-listener\");","module.exports = require(\"@splunk/visualization-context/TimezoneContext\");","module.exports = require(\"@splunk/visualizations-shared/style\");","/* eslint-disable import/first, react/prop-types */\nimport { pick, debounce, isEqual, get } from 'lodash';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport React, { Component } from 'react';\nimport T from 'prop-types';\nimport EventListener from 'react-event-listener';\nimport '@splunk/visualizations-shared/i18n'; // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions\nimport TimezoneContext from '@splunk/visualization-context/TimezoneContext';\nimport jsCharting from '@splunk/charting-bundle';\nimport { toDimension } from '@splunk/visualizations-shared/style';\nimport styled from 'styled-components';\nimport Message from '@splunk/visualizations-shared/Message';\nimport ChartingApi from './ChartingApi';\n\nexport const NO_INPLACE_PROPS = [\n 'chart',\n 'chart.orientation',\n 'layout.splitSeries',\n 'chart.style',\n 'legend.placement',\n];\n\njsCharting.enableScaledEvents();\n\nexport const changedOptions = (a, b) =>\n Object.keys(a)\n .filter(k => !(k in b))\n .concat(Object.keys(b).filter(k => !(k in a) || a[k] !== b[k]));\n\nconst ChartingContainer = styled.div`\n overflow: hidden;\n position: relative;\n ${props => toDimension(pick(props, ['width', 'height']))};\n`;\n\nexport default class Charting extends Component {\n static propTypes = {\n /**\n * width in pixel or string, defaults to 100%\n */\n width: T.oneOfType([T.string, T.number]),\n /**\n * height in pixel or string\n */\n height: T.oneOfType([T.string, T.number]),\n /**\n * visualization formatting options\n */\n options: T.object,\n /**\n * charting dataset from jsCharting.extractChartReadyData\n */\n chartData: T.object,\n /**\n * callbacks to trigger event\n */\n onEventTrigger: T.func,\n onClick: T.func,\n onSelect: T.func,\n onPointMouseOver: T.func,\n onPointMouseOut: T.func,\n /**\n * Custom style on visualization\n */\n style: T.object,\n themeKey: T.string,\n colorPalette: T.array,\n visualizationApiRef: T.func,\n };\n\n static defaultProps = {\n width: '100%',\n options: {},\n style: {},\n // todo: need remove it\n onEventTrigger: () => {},\n // todo: need change to a function\n onClick: null,\n onSelect: null,\n onPointMouseOver: () => {},\n onPointMouseOut: () => {},\n colorPalette: [],\n visualizationApiRef: () => {},\n };\n\n static contextType = TimezoneContext;\n\n /**\n * Check if a chart can be updated without re-init\n */\n static canUpdateInPlace(curOptions, nextOptions) {\n return (\n !NO_INPLACE_PROPS.some(p => curOptions[p] !== nextOptions[p]) &&\n !changedOptions(curOptions, nextOptions).some(p => p.toLowerCase().endsWith('color'))\n );\n }\n\n drawChart = debounce(() => {\n const { options, chartData, themeKey, colorPalette } = this.props;\n const updatedOptions = { ...options, shouldColorizeTooltipData: false };\n const { width, height } = this.computeChartingSize();\n const serializedTimezone = get(this, ['context', 'serializedTimezone']);\n const ianaTimezone = get(this, ['context', 'ianaTimezone']);\n const utcOffset = get(this, ['context', 'utcOffset']);\n if (!width || !height) {\n return;\n }\n if (!chartData || !chartData.length) {\n return;\n }\n try {\n if (this.needsInit) {\n this.destroyChart();\n jsCharting.setTheme(themeKey);\n if (colorPalette.length > 0) {\n jsCharting.setColorPalette(colorPalette);\n }\n this.chart = jsCharting.createChart(this.container, {\n ...updatedOptions,\n drilldown: 'all',\n ...(typeof serializedTimezone === 'string' && {\n 'time.serializedTz': serializedTimezone,\n }),\n ...(typeof ianaTimezone === 'string' && {\n 'time.ianaTimezone': ianaTimezone,\n }),\n ...(typeof utcOffset === 'number' && {\n 'time.timezoneOffset': utcOffset,\n }),\n });\n // bind event handlers\n this.chart.on('pointClick', e => {\n this.handleClick(e, 'point.click');\n });\n this.chart.on('pointMouseOver', e => {\n this.handlePointMouseOver(e, 'point.mouseover');\n });\n this.chart.on('pointMouseOut', e => {\n this.handlePointMouseOut(e, 'point.mouseout');\n });\n this.chart.on('legendClick', e => {\n this.handleClick(e, 'legend.click');\n });\n this.chart.on('chartRangeSelect', this.handleSelect);\n }\n if (this.needsRedraw) {\n jsCharting.setTheme(themeKey);\n if (colorPalette.length > 0) {\n jsCharting.setColorPalette(colorPalette);\n }\n this.chart.prepareAndDraw(chartData, updatedOptions, () => {});\n }\n if (this.chart) {\n this.chart.resize(width, height);\n }\n this.needsInit = false;\n this.needsRedraw = false;\n } catch (e) {\n window.console.error('Caught error rendering chart:', e);\n }\n }, 5);\n\n constructor(props, context) {\n super(props, context);\n this.needsInit = true;\n this.needsRedraw = true;\n this.container = null;\n this.api = new ChartingApi(this);\n }\n\n componentDidMount() {\n this.drawChart();\n this.props.visualizationApiRef(this.api);\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { options: nextOptions, chartData: nextData } = nextProps;\n const { options: currentOptions, chartData: currentData } = this.props;\n if (!this.chart || !Charting.canUpdateInPlace(currentOptions, nextOptions)) {\n this.needsInit = true;\n }\n if (\n !isEqual(currentOptions, nextOptions) ||\n !isEqual(currentData.toJSON(), nextData.toJSON()) ||\n !isEqual(currentData.annotations, nextData.annotations)\n ) {\n this.needsRedraw = true;\n }\n }\n\n componentDidUpdate() {\n this.drawChart();\n }\n\n componentWillUnmount() {\n this.props.visualizationApiRef(null);\n this.destroyChart();\n }\n\n onContainerMount = container => {\n this.container = container;\n this.drawChart();\n };\n\n computeChartingSize = () => {\n if (this.container) {\n const rect = this.container.getBoundingClientRect();\n return {\n height: rect.height,\n width: rect.width,\n };\n }\n return {};\n };\n\n handleClick = (chartEvent, type) => {\n // todo: need change this after breaking all visualizations\n if (this.props.onClick && typeof this.props.onClick === 'function') {\n this.props.onClick({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey'\n ),\n });\n\n return;\n }\n\n // todo: need remove it after breaking all visualizations\n // the chartEvent here is a jQuery event\n this.props.onEventTrigger({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey'\n ),\n });\n };\n\n handlePointMouseOver = (chartEvent, type) => {\n this.props.onPointMouseOver({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey',\n 'tooltipContext'\n ),\n });\n };\n\n handlePointMouseOut = (chartEvent, type) => {\n this.props.onPointMouseOut({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey',\n 'tooltipContext'\n ),\n });\n };\n\n handleSelect = chartEvent => {\n // todo: need change this after breaking all visualizations\n if (this.props.onSelect && typeof this.props.onSelect === 'function') {\n this.props.onSelect({\n type: 'range.select',\n originalEvent: chartEvent,\n payload: pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue'),\n });\n\n return;\n }\n\n // the chartEvent here is a jQuery event\n this.props.onEventTrigger({\n type: 'range.select',\n originalEvent: chartEvent,\n payload: pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue'),\n });\n };\n\n destroyChart() {\n if (this.chart) {\n this.chart.destroy();\n this.chart = null;\n }\n this.needsRedraw = true;\n this.needsInit = true;\n }\n\n render() {\n const { width, height, style, chartData } = this.props;\n return (\n <ChartingContainer style={style} width={width} height={height} ref={this.onContainerMount}>\n <EventListener target={window} onResize={this.drawChart} />\n {!chartData && <Message text={_('No DataSource')} level=\"warning\" />}\n {chartData && !chartData.length && <Message text={_('No Result')} level=\"info\" />}\n </ChartingContainer>\n );\n }\n}\n","module.exports = require(\"@splunk/visualizations-shared/i18n\");"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"lodash\"","webpack:///external \"styled-components\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@splunk/charting-bundle\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///./src/common/ChartingApi.ts","webpack:///external \"@splunk/ui-utils/i18n\"","webpack:///external \"@splunk/visualizations-shared/Message\"","webpack:///external \"react-event-listener\"","webpack:///external \"@splunk/visualization-context/TimezoneContext\"","webpack:///external \"@splunk/visualizations-shared/style\"","webpack:///./src/common/Charting.jsx","webpack:///external \"@splunk/visualizations-shared/i18n\""],"names":["ChartingApi","charting","_classCallCheck","_createClass","key","value","highlight","_ref","arguments","length","undefined","xValue","seriesName","chart","unHighlight","exports","default","NO_INPLACE_PROPS","changedOptions","a","b","Object","keys","filter","k","concat","ChartingContainer","styled","div","withConfig","displayName","componentId","props","toDimension","pick","Charting","_Component","_inherits","_super","_createSuper","context","_this","call","_defineProperty","_assertThisInitialized","debounce","_this$props","options","chartData","themeKey","colorPalette","updatedOptions","_objectSpread","shouldColorizeTooltipData","_this$computeCharting","computeChartingSize","width","height","serializedTimezone","get","ianaTimezone","utcOffset","needsInit","destroyChart","jsCharting","setTheme","setColorPalette","createChart","container","drilldown","on","e","handleClick","handlePointMouseOver","handlePointMouseOut","handleSelect","needsRedraw","prepareAndDraw","resize","window","console","error","drawChart","rect","getBoundingClientRect","chartEvent","type","onClick","originalEvent","payload","onEventTrigger","onPointMouseOver","onPointMouseOut","onSelect","api","componentDidMount","visualizationApiRef","UNSAFE_componentWillReceiveProps","nextProps","nextOptions","nextData","_this$props2","currentOptions","currentData","canUpdateInPlace","isEqual","toJSON","annotations","componentDidUpdate","componentWillUnmount","destroy","render","_this$props3","style","React","createElement","ref","onContainerMount","EventListener","target","onResize","Message","text","_","level","curOptions","some","p","toLowerCase","endsWith","Component","T","oneOfType","string","number","object","func","array","TimezoneContext"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAmB,EAAE;QACrI;QACA;;QAEA;QACA;QACA;QACA,2BAA2B,0BAA0B,EAAE;QACvD,iCAAiC,eAAe;QAChD;QACA;QACA;;QAEA;QACA,sDAAsD,+DAA+D;;QAErH;QACA;;;QAGA;QACA;;;;;;;AClFA,uC;;;;;;ACAA,kC;;;;;;ACAA,kE;;;;;;ACAA,yE;;;;;;ACAA,mC;;;;;;ACAA,8C;;;;;;;ACAA,kE;;;;;;ACAA,+D;;;;;;ACAA,kE;;;;;;;ACAA,oD;;;;;;ACAA,4D;;;;;;ACAA,6E;;;;;;;;;;;;;;;ICiBMA,WAAW;EAGb,SAAAA,YAAYC,QAAQ;IAAAC,eAAA,OAAAF,WAAA;IAChB,IAAI,CAACC,QAAQ,GAAGA,QAAQ;EAC5B;EAEA;;;;;EAAAE,YAAA,CAAAH,WAAA;IAAAI,GAAA;IAAAC,KAAA,EAKA,SAAAC,UAAA,EAAwE;MAAA,IAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAA9B;UAAEG,MAAM,EAAE,EAAE;UAAEC,UAAU,EAAE;QAAE,CAAE;QAA5DD,MAAM,GAAAJ,IAAA,CAANI,MAAM;QAAEC,UAAU,GAAAL,IAAA,CAAVK,UAAU;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CAAC,CAAC;EACT;EACAvB,cAAc,EAAE,SAAAA,eAAA,EAAM,CAAC,CAAC;EACxB;EACAH,OAAO,EAAE,IAAI;EACbM,QAAQ,EAAE,IAAI;EACdF,gBAAgB,EAAE,SAAAA,iBAAA,EAAM,CAAC,CAAC;EAC1BC,eAAe,EAAE,SAAAA,gBAAA,EAAM,CAAC,CAAC;EACzB1C,YAAY,EAAE,EAAE;EAChB8C,mBAAmB,EAAE,SAAAA,oBAAA,EAAM,CAAC;AAChC,CAAC;AAAArD,4EAAA,CAhDgBR,QAAQ,iBAkDJuG,qFAAe;;;;;;;ACnFxC,+D","file":"Charting.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 23);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"lodash\");","module.exports = require(\"styled-components\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@splunk/charting-bundle\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","interface Point {\n /**\n * Valid xValue of the chart\n *\n * @type {string|number}\n * @memberof Point\n */\n xValue?: string | number;\n\n /**\n * Valid seriesName for a chart\n *\n * @type {string}\n * @memberof Point\n */\n seriesName?: string;\n}\nclass ChartingApi {\n charting;\n\n constructor(charting) {\n this.charting = charting;\n }\n\n /**\n * Allows users to programmatically highlight a point on the chart\n *\n * @memberof ChartingApi\n */\n highlight({ xValue, seriesName }: Point = { xValue: '', seriesName: '' }) {\n this.charting.chart.highlight(xValue, seriesName);\n }\n\n /**\n * Allows users to programmatically unhighlight all points on the chart\n *\n * @memberof ChartingApi\n */\n unHighlight() {\n this.charting.chart.unHighlight();\n }\n}\n\nexport default ChartingApi;\n","module.exports = require(\"@splunk/ui-utils/i18n\");","module.exports = require(\"@splunk/visualizations-shared/Message\");","module.exports = require(\"react-event-listener\");","module.exports = require(\"@splunk/visualization-context/TimezoneContext\");","module.exports = require(\"@splunk/visualizations-shared/style\");","/* eslint-disable import/first, react/prop-types */\nimport { pick, debounce, isEqual, get } from 'lodash';\nimport { _ } from '@splunk/ui-utils/i18n';\nimport React, { Component } from 'react';\nimport T from 'prop-types';\nimport EventListener from 'react-event-listener';\nimport '@splunk/visualizations-shared/i18n'; // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions\nimport TimezoneContext from '@splunk/visualization-context/TimezoneContext';\nimport jsCharting from '@splunk/charting-bundle';\nimport { toDimension } from '@splunk/visualizations-shared/style';\nimport styled from 'styled-components';\nimport Message from '@splunk/visualizations-shared/Message';\nimport ChartingApi from './ChartingApi';\n\nexport const NO_INPLACE_PROPS = [\n 'chart',\n 'chart.orientation',\n 'layout.splitSeries',\n 'chart.style',\n 'legend.placement',\n];\n\nexport const changedOptions = (a, b) =>\n Object.keys(a)\n .filter(k => !(k in b))\n .concat(Object.keys(b).filter(k => !(k in a) || a[k] !== b[k]));\n\nconst ChartingContainer = styled.div`\n overflow: hidden;\n position: relative;\n ${props => toDimension(pick(props, ['width', 'height']))};\n`;\n\nexport default class Charting extends Component {\n static propTypes = {\n /**\n * width in pixel or string, defaults to 100%\n */\n width: T.oneOfType([T.string, T.number]),\n /**\n * height in pixel or string\n */\n height: T.oneOfType([T.string, T.number]),\n /**\n * visualization formatting options\n */\n options: T.object,\n /**\n * charting dataset from jsCharting.extractChartReadyData\n */\n chartData: T.object,\n /**\n * callbacks to trigger event\n */\n onEventTrigger: T.func,\n onClick: T.func,\n onSelect: T.func,\n onPointMouseOver: T.func,\n onPointMouseOut: T.func,\n /**\n * Custom style on visualization\n */\n style: T.object,\n themeKey: T.string,\n colorPalette: T.array,\n visualizationApiRef: T.func,\n };\n\n static defaultProps = {\n width: '100%',\n options: {},\n style: {},\n // todo: need remove it\n onEventTrigger: () => {},\n // todo: need change to a function\n onClick: null,\n onSelect: null,\n onPointMouseOver: () => {},\n onPointMouseOut: () => {},\n colorPalette: [],\n visualizationApiRef: () => {},\n };\n\n static contextType = TimezoneContext;\n\n /**\n * Check if a chart can be updated without re-init\n */\n static canUpdateInPlace(curOptions, nextOptions) {\n return (\n !NO_INPLACE_PROPS.some(p => curOptions[p] !== nextOptions[p]) &&\n !changedOptions(curOptions, nextOptions).some(p => p.toLowerCase().endsWith('color'))\n );\n }\n\n drawChart = debounce(() => {\n const { options, chartData, themeKey, colorPalette } = this.props;\n const updatedOptions = { ...options, shouldColorizeTooltipData: false };\n const { width, height } = this.computeChartingSize();\n const serializedTimezone = get(this, ['context', 'serializedTimezone']);\n const ianaTimezone = get(this, ['context', 'ianaTimezone']);\n const utcOffset = get(this, ['context', 'utcOffset']);\n if (!width || !height) {\n return;\n }\n if (!chartData || !chartData.length) {\n return;\n }\n try {\n if (this.needsInit) {\n this.destroyChart();\n jsCharting.setTheme(themeKey);\n if (colorPalette.length > 0) {\n jsCharting.setColorPalette(colorPalette);\n }\n this.chart = jsCharting.createChart(this.container, {\n ...updatedOptions,\n drilldown: 'all',\n ...(typeof serializedTimezone === 'string' && {\n 'time.serializedTz': serializedTimezone,\n }),\n ...(typeof ianaTimezone === 'string' && {\n 'time.ianaTimezone': ianaTimezone,\n }),\n ...(typeof utcOffset === 'number' && {\n 'time.timezoneOffset': utcOffset,\n }),\n });\n // bind event handlers\n this.chart.on('pointClick', e => {\n this.handleClick(e, 'point.click');\n });\n this.chart.on('pointMouseOver', e => {\n this.handlePointMouseOver(e, 'point.mouseover');\n });\n this.chart.on('pointMouseOut', e => {\n this.handlePointMouseOut(e, 'point.mouseout');\n });\n this.chart.on('legendClick', e => {\n this.handleClick(e, 'legend.click');\n });\n this.chart.on('chartRangeSelect', this.handleSelect);\n }\n if (this.needsRedraw) {\n jsCharting.setTheme(themeKey);\n if (colorPalette.length > 0) {\n jsCharting.setColorPalette(colorPalette);\n }\n this.chart.prepareAndDraw(chartData, updatedOptions, () => {});\n }\n if (this.chart) {\n this.chart.resize(width, height);\n }\n this.needsInit = false;\n this.needsRedraw = false;\n } catch (e) {\n window.console.error('Caught error rendering chart:', e);\n }\n }, 5);\n\n constructor(props, context) {\n super(props, context);\n this.needsInit = true;\n this.needsRedraw = true;\n this.container = null;\n this.api = new ChartingApi(this);\n }\n\n componentDidMount() {\n this.drawChart();\n this.props.visualizationApiRef(this.api);\n }\n\n // eslint-disable-next-line camelcase\n UNSAFE_componentWillReceiveProps(nextProps) {\n const { options: nextOptions, chartData: nextData } = nextProps;\n const { options: currentOptions, chartData: currentData } = this.props;\n if (!this.chart || !Charting.canUpdateInPlace(currentOptions, nextOptions)) {\n this.needsInit = true;\n }\n if (\n !isEqual(currentOptions, nextOptions) ||\n !isEqual(currentData.toJSON(), nextData.toJSON()) ||\n !isEqual(currentData.annotations, nextData.annotations)\n ) {\n this.needsRedraw = true;\n }\n }\n\n componentDidUpdate() {\n this.drawChart();\n }\n\n componentWillUnmount() {\n this.props.visualizationApiRef(null);\n this.destroyChart();\n }\n\n onContainerMount = container => {\n this.container = container;\n this.drawChart();\n };\n\n computeChartingSize = () => {\n if (this.container) {\n const rect = this.container.getBoundingClientRect();\n return {\n height: rect.height,\n width: rect.width,\n };\n }\n return {};\n };\n\n handleClick = (chartEvent, type) => {\n // todo: need change this after breaking all visualizations\n if (this.props.onClick && typeof this.props.onClick === 'function') {\n this.props.onClick({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey'\n ),\n });\n\n return;\n }\n\n // todo: need remove it after breaking all visualizations\n // the chartEvent here is a jQuery event\n this.props.onEventTrigger({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey'\n ),\n });\n };\n\n handlePointMouseOver = (chartEvent, type) => {\n this.props.onPointMouseOver({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey',\n 'tooltipContext'\n ),\n });\n };\n\n handlePointMouseOut = (chartEvent, type) => {\n this.props.onPointMouseOut({\n type,\n originalEvent: chartEvent,\n payload: pick(\n chartEvent,\n 'name',\n 'value',\n 'name2',\n 'value2',\n '_span',\n 'rowContext',\n 'modifierKey',\n 'tooltipContext'\n ),\n });\n };\n\n handleSelect = chartEvent => {\n // todo: need change this after breaking all visualizations\n if (this.props.onSelect && typeof this.props.onSelect === 'function') {\n this.props.onSelect({\n type: 'range.select',\n originalEvent: chartEvent,\n payload: pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue'),\n });\n\n return;\n }\n\n // the chartEvent here is a jQuery event\n this.props.onEventTrigger({\n type: 'range.select',\n originalEvent: chartEvent,\n payload: pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue'),\n });\n };\n\n destroyChart() {\n if (this.chart) {\n this.chart.destroy();\n this.chart = null;\n }\n this.needsRedraw = true;\n this.needsInit = true;\n }\n\n render() {\n const { width, height, style, chartData } = this.props;\n return (\n <ChartingContainer style={style} width={width} height={height} ref={this.onContainerMount}>\n <EventListener target={window} onResize={this.drawChart} />\n {!chartData && <Message text={_('No DataSource')} level=\"warning\" />}\n {chartData && !chartData.length && <Message text={_('No Result')} level=\"info\" />}\n </ChartingContainer>\n );\n }\n}\n","module.exports = require(\"@splunk/visualizations-shared/i18n\");"],"sourceRoot":""}
|
package/common/EventsDoc.js
CHANGED
|
@@ -146,13 +146,13 @@ module.exports = require("@babel/runtime/helpers/createClass");
|
|
|
146
146
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
147
147
|
|
|
148
148
|
/***/ }),
|
|
149
|
-
/* 10
|
|
150
|
-
/* 11 */
|
|
149
|
+
/* 10 */
|
|
151
150
|
/***/ (function(module, exports) {
|
|
152
151
|
|
|
153
152
|
module.exports = require("@babel/runtime/helpers/extends");
|
|
154
153
|
|
|
155
154
|
/***/ }),
|
|
155
|
+
/* 11 */,
|
|
156
156
|
/* 12 */
|
|
157
157
|
/***/ (function(module, exports) {
|
|
158
158
|
|
|
@@ -205,7 +205,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
205
205
|
/* harmony import */ var _babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__);
|
|
206
206
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2);
|
|
207
207
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_6__);
|
|
208
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
|
|
208
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(10);
|
|
209
209
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7__);
|
|
210
210
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1);
|
|
211
211
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__);
|
package/common/EventsDoc.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"styled-components\"","webpack:///external \"@splunk/react-ui/Heading\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@babel/runtime/helpers/extends\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@splunk/react-ui/Markdown\"","webpack:///external \"@splunk/react-ui/JSONTree\"","webpack:///./src/common/EventsDoc.jsx"],"names":["EventTester","styled","div","withConfig","displayName","componentId","Event","EventName","EventItem","_ref","name","desc","React","createElement","Markdown","style","marginLeft","text","propTypes","T","string","EventsDesc","_ref2","events","length","Heading","level","map","e","_extends","key","array","isRequired","VisualiationExample","_ref3","event","Visualization","vizProps","onPointClick","onPointMouseOver","onPointMouseOut","onLegendClick","onRangeSelect","eventToDisplay","_objectSpread","originalEvent","JSONTree","json","expandChildren","object","any","EventsDoc","_Component","_inherits","_super","_createSuper","props","context","_this","_classCallCheck","call","_defineProperty","_assertThisInitialized","setState","state","_createClass","value","render","_this$props","handleEvent","Component"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA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AG;EACpBb,QAAQ,EAAElB,iDAAC,CAAC8B;AAChB,CAAC;AAEcE,wEAAS,E","file":"EventsDoc.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 25);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"styled-components\");","module.exports = require(\"@splunk/react-ui/Heading\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","module.exports = require(\"@splunk/react-ui/Markdown\");","module.exports = require(\"@splunk/react-ui/JSONTree\");","/* eslint-disable react/prop-types */\nimport React, { Component } from 'react';\nimport T from 'prop-types';\nimport Heading from '@splunk/react-ui/Heading';\nimport Markdown from '@splunk/react-ui/Markdown';\nimport JSONTree from '@splunk/react-ui/JSONTree';\nimport styled from 'styled-components';\n\nconst EventTester = styled.div`\n margin-top: 50px;\n`;\n\nconst Event = styled.div`\n margin-top: 20px;\n`;\nconst EventName = styled.div`\n color: #5ca300;\n padding-bottom: 5px;\n`;\n\nconst EventItem = ({ name, desc }) => (\n <Event>\n <EventName>{name}</EventName>\n <Markdown style={{ marginLeft: 40 }} text={desc} />\n </Event>\n);\n\nEventItem.propTypes = {\n name: T.string,\n desc: T.string,\n};\n\nconst EventsDesc = ({ events }) => (\n <div>\n {events.length === 0 ? <Heading level={4}>No Events</Heading> : <Heading level={4}>Events</Heading>}\n {events.map(e => (\n <EventItem key={e.name} {...e} />\n ))}\n </div>\n);\n\nEventsDesc.propTypes = {\n events: T.array.isRequired,\n};\n\nconst VisualiationExample = ({\n event,\n Visualization,\n vizProps,\n onPointClick,\n onPointMouseOver,\n onPointMouseOut,\n onLegendClick,\n onRangeSelect,\n}) => {\n const eventToDisplay = {\n ...event,\n };\n if (eventToDisplay.originalEvent != null) {\n eventToDisplay.originalEvent = '...Original Event instance...';\n }\n return (\n <div>\n <EventTester>\n <Heading level={4}>Test Visualization</Heading>\n <Visualization\n {...vizProps}\n onPointClick={onPointClick}\n onPointMouseOver={onPointMouseOver}\n onPointMouseOut={onPointMouseOut}\n onLegendClick={onLegendClick}\n onRangeSelect={onRangeSelect}\n />\n </EventTester>\n <Heading level={4}>Event Monitor</Heading>\n <div>\n <JSONTree json={eventToDisplay} expandChildren />\n </div>\n </div>\n );\n};\n\nVisualiationExample.propTypes = {\n event: T.object,\n Visualization: T.any,\n vizProps: T.object,\n};\n\nclass EventsDoc extends Component {\n constructor(props, context) {\n super(props, context);\n this.state = {\n e: null,\n };\n }\n\n handleEvent = e => {\n this.setState({\n e,\n });\n };\n\n render() {\n const { Visualization, events, vizProps } = this.props;\n const { e } = this.state;\n return (\n <div>\n <EventsDesc events={events} />\n {Visualization && (\n <VisualiationExample\n event={e}\n Visualization={Visualization}\n vizProps={vizProps}\n onPointClick={this.handleEvent}\n onPointMouseOver={this.handleEvent}\n onPointMouseOut={this.handleEvent}\n onLegendClick={this.handleEvent}\n onRangeSelect={this.handleEvent}\n />\n )}\n </div>\n );\n }\n}\n\nEventsDoc.propTypes = {\n events: T.array,\n Visualization: T.any,\n vizProps: T.object,\n};\n\nexport default EventsDoc;\n"],"sourceRoot":""}
|
|
1
|
+
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///external \"prop-types\"","webpack:///external \"react\"","webpack:///external \"@babel/runtime/helpers/defineProperty\"","webpack:///external \"@babel/runtime/helpers/assertThisInitialized\"","webpack:///external \"styled-components\"","webpack:///external \"@splunk/react-ui/Heading\"","webpack:///external \"@babel/runtime/helpers/classCallCheck\"","webpack:///external \"@babel/runtime/helpers/createClass\"","webpack:///external \"@babel/runtime/helpers/getPrototypeOf\"","webpack:///external \"@babel/runtime/helpers/extends\"","webpack:///external \"@babel/runtime/helpers/inherits\"","webpack:///external \"@babel/runtime/helpers/possibleConstructorReturn\"","webpack:///external \"@splunk/react-ui/Markdown\"","webpack:///external \"@splunk/react-ui/JSONTree\"","webpack:///./src/common/EventsDoc.jsx"],"names":["EventTester","styled","div","withConfig","displayName","componentId","Event","EventName","EventItem","_ref","name","desc","React","createElement","Markdown","style","marginLeft","text","propTypes","T","string","EventsDesc","_ref2","events","length","Heading","level","map","e","_extends","key","array","isRequired","VisualiationExample","_ref3","event","Visualization","vizProps","onPointClick","onPointMouseOver","onPointMouseOut","onLegendClick","onRangeSelect","eventToDisplay","_objectSpread","originalEvent","JSONTree","json","expandChildren","object","any","EventsDoc","_Component","_inherits","_super","_createSuper","props","context","_this","_classCallCheck","call","_defineProperty","_assertThisInitialized","setState","state","_createClass","value","render","_this$props","handleEvent","Component"],"mappings":";;;;;;;QAAA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;;QAEA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;;;QAGA;QACA;;QAEA;QACA;;QAEA;QACA;QACA;QACA,0CAA0C,gCAAgC;QAC1E;QACA;;QAEA;QACA;QACA;QACA,wDAAwD,kBAAkB;QAC1E;QACA,iDAAiD,cAAc;QAC/D;;QAEA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA;QACA,yCAAyC,iCAAiC;QAC1E,gHAAgH,mBAAm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MACTpC,CAAC,EAAE;IACP,CAAC;IAAC,OAAA8B,KAAA;EACN;EAACO,yEAAA,CAAAd,SAAA;IAAArB,GAAA;IAAAoC,KAAA,EAQD,SAAAC,OAAA,EAAS;MAAA,IAAAC,WAAA,GACuC,IAAI,CAACZ,KAAK;QAA9CpB,aAAa,GAAAgC,WAAA,CAAbhC,aAAa;QAAEb,MAAM,GAAA6C,WAAA,CAAN7C,MAAM;QAAEc,QAAQ,GAAA+B,WAAA,CAAR/B,QAAQ;MAAA,IAC/BT,CAAC,GAAK,IAAI,CAACoC,KAAK,CAAhBpC,CAAC;MACT,oBACIhB,4CAAA,CAAAC,aAAA,2BACID,4CAAA,CAAAC,aAAA,CAACQ,UAAU;QAACE,MAAM,EAAEA;MAAO,EAAG,EAC7Ba,aAAa,iBACVxB,4CAAA,CAAAC,aAAA,CAACoB,mBAAmB;QAChBE,KAAK,EAAEP,CAAE;QACTQ,aAAa,EAAEA,aAAc;QAC7BC,QAAQ,EAAEA,QAAS;QACnBC,YAAY,EAAE,IAAI,CAAC+B,WAAY;QAC/B9B,gBAAgB,EAAE,IAAI,CAAC8B,WAAY;QACnC7B,eAAe,EAAE,IAAI,CAAC6B,WAAY;QAClC5B,aAAa,EAAE,IAAI,CAAC4B,WAAY;QAChC3B,aAAa,EAAE,IAAI,CAAC2B;MAAY,EAEvC,CACC;IAEd;EAAC;EAAA,OAAAlB,SAAA;AAAA,EAlCmBmB,+CAAS;AAqCjCnB,SAAS,CAACjC,SAAS,GAAG;EAClBK,MAAM,EAAEJ,iDAAC,CAACY,KAAK;EACfK,aAAa,EAAEjB,iDAAC,CAAC+B,GAAG;EACpBb,QAAQ,EAAElB,iDAAC,CAAC8B;AAChB,CAAC;AAEcE,wEAAS,E","file":"EventsDoc.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 25);\n","module.exports = require(\"prop-types\");","module.exports = require(\"react\");","module.exports = require(\"@babel/runtime/helpers/defineProperty\");","module.exports = require(\"@babel/runtime/helpers/assertThisInitialized\");","module.exports = require(\"styled-components\");","module.exports = require(\"@splunk/react-ui/Heading\");","module.exports = require(\"@babel/runtime/helpers/classCallCheck\");","module.exports = require(\"@babel/runtime/helpers/createClass\");","module.exports = require(\"@babel/runtime/helpers/getPrototypeOf\");","module.exports = require(\"@babel/runtime/helpers/extends\");","module.exports = require(\"@babel/runtime/helpers/inherits\");","module.exports = require(\"@babel/runtime/helpers/possibleConstructorReturn\");","module.exports = require(\"@splunk/react-ui/Markdown\");","module.exports = require(\"@splunk/react-ui/JSONTree\");","/* eslint-disable react/prop-types */\nimport React, { Component } from 'react';\nimport T from 'prop-types';\nimport Heading from '@splunk/react-ui/Heading';\nimport Markdown from '@splunk/react-ui/Markdown';\nimport JSONTree from '@splunk/react-ui/JSONTree';\nimport styled from 'styled-components';\n\nconst EventTester = styled.div`\n margin-top: 50px;\n`;\n\nconst Event = styled.div`\n margin-top: 20px;\n`;\nconst EventName = styled.div`\n color: #5ca300;\n padding-bottom: 5px;\n`;\n\nconst EventItem = ({ name, desc }) => (\n <Event>\n <EventName>{name}</EventName>\n <Markdown style={{ marginLeft: 40 }} text={desc} />\n </Event>\n);\n\nEventItem.propTypes = {\n name: T.string,\n desc: T.string,\n};\n\nconst EventsDesc = ({ events }) => (\n <div>\n {events.length === 0 ? <Heading level={4}>No Events</Heading> : <Heading level={4}>Events</Heading>}\n {events.map(e => (\n <EventItem key={e.name} {...e} />\n ))}\n </div>\n);\n\nEventsDesc.propTypes = {\n events: T.array.isRequired,\n};\n\nconst VisualiationExample = ({\n event,\n Visualization,\n vizProps,\n onPointClick,\n onPointMouseOver,\n onPointMouseOut,\n onLegendClick,\n onRangeSelect,\n}) => {\n const eventToDisplay = {\n ...event,\n };\n if (eventToDisplay.originalEvent != null) {\n eventToDisplay.originalEvent = '...Original Event instance...';\n }\n return (\n <div>\n <EventTester>\n <Heading level={4}>Test Visualization</Heading>\n <Visualization\n {...vizProps}\n onPointClick={onPointClick}\n onPointMouseOver={onPointMouseOver}\n onPointMouseOut={onPointMouseOut}\n onLegendClick={onLegendClick}\n onRangeSelect={onRangeSelect}\n />\n </EventTester>\n <Heading level={4}>Event Monitor</Heading>\n <div>\n <JSONTree json={eventToDisplay} expandChildren />\n </div>\n </div>\n );\n};\n\nVisualiationExample.propTypes = {\n event: T.object,\n Visualization: T.any,\n vizProps: T.object,\n};\n\nclass EventsDoc extends Component {\n constructor(props, context) {\n super(props, context);\n this.state = {\n e: null,\n };\n }\n\n handleEvent = e => {\n this.setState({\n e,\n });\n };\n\n render() {\n const { Visualization, events, vizProps } = this.props;\n const { e } = this.state;\n return (\n <div>\n <EventsDesc events={events} />\n {Visualization && (\n <VisualiationExample\n event={e}\n Visualization={Visualization}\n vizProps={vizProps}\n onPointClick={this.handleEvent}\n onPointMouseOver={this.handleEvent}\n onPointMouseOut={this.handleEvent}\n onLegendClick={this.handleEvent}\n onRangeSelect={this.handleEvent}\n />\n )}\n </div>\n );\n }\n}\n\nEventsDoc.propTypes = {\n events: T.array,\n Visualization: T.any,\n vizProps: T.object,\n};\n\nexport default EventsDoc;\n"],"sourceRoot":""}
|
package/common/OptionsDoc.js
CHANGED
|
@@ -106,7 +106,7 @@ module.exports = require("react");
|
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
|
-
/***/
|
|
109
|
+
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
112
|
module.exports = require("@babel/runtime/helpers/extends");
|
|
@@ -125,7 +125,7 @@ module.exports = require("@splunk/react-ui/Markdown");
|
|
|
125
125
|
|
|
126
126
|
"use strict";
|
|
127
127
|
__webpack_require__.r(__webpack_exports__);
|
|
128
|
-
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
128
|
+
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(10);
|
|
129
129
|
/* harmony import */ var _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_0__);
|
|
130
130
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1);
|
|
131
131
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
package/package.json
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
"name": "@splunk/react-visualizations",
|
|
3
3
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
4
4
|
"author": "Splunk",
|
|
5
|
-
"version": "
|
|
5
|
+
"version": "26.0.0",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"build": "NODE_ENV=production webpack --config ./webpack.config.js --bail",
|
|
8
|
-
"build-storybook": "build-storybook -c .storybook -s fonts -o .storybook-bundle",
|
|
7
|
+
"build": "export NODE_OPTIONS=--openssl-legacy-provider && NODE_ENV=production webpack --config ./webpack.config.js --bail",
|
|
8
|
+
"build-storybook": "export NODE_OPTIONS=--openssl-legacy-provider && build-storybook -c .storybook -s fonts -o .storybook-bundle",
|
|
9
9
|
"build:ci": "yarn build && yarn docs",
|
|
10
10
|
"clean": "yarn clean:storybook && yarn clean:webpack && yarn clean:test-reports",
|
|
11
11
|
"clean:storybook": "rm -rf .storybook-bundle",
|
|
12
12
|
"clean:webpack": "git ls-files --others -i --exclude-standard *.js *.map | xargs rm && rm -rf ./common ./utils",
|
|
13
13
|
"clean:test-reports": "rm -rf ./test-reports",
|
|
14
|
-
"dev": "NODE_ENV=development webpack --config ./webpack.config.js --watch",
|
|
14
|
+
"dev": "export NODE_OPTIONS=--openssl-legacy-provider && NODE_ENV=development webpack --config ./webpack.config.js --watch",
|
|
15
15
|
"docs": "NODE_ENV=production webpack --config webpack.docs.config.js",
|
|
16
16
|
"docs:publish": "echo skip publishing docs for the deprecated @splunk/react-visualizations package.",
|
|
17
17
|
"docs:start": "webpack-dev-server --watch --config webpack.docs.config.js --open 'Google Chrome'",
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@babel/runtime": "^7.13.0",
|
|
33
|
-
"@splunk/charting-bundle": "^
|
|
33
|
+
"@splunk/charting-bundle": "^26.0.0",
|
|
34
34
|
"@splunk/moment": "^0.6.0",
|
|
35
35
|
"@splunk/ui-utils": "^1.2.1",
|
|
36
|
-
"@splunk/visualization-color-palettes": "^
|
|
37
|
-
"@splunk/visualization-themes": "^
|
|
38
|
-
"@splunk/visualizations": "^
|
|
39
|
-
"@splunk/visualizations-shared": "^
|
|
36
|
+
"@splunk/visualization-color-palettes": "^26.0.0",
|
|
37
|
+
"@splunk/visualization-themes": "^26.0.0",
|
|
38
|
+
"@splunk/visualizations": "^26.0.0",
|
|
39
|
+
"@splunk/visualizations-shared": "^26.0.0",
|
|
40
40
|
"@turf/bbox-clip": "^6.0.3",
|
|
41
41
|
"@turf/helpers": "^6.1.4",
|
|
42
42
|
"chroma-js": "^2.0.0",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@splunk/react-docs": "^0.11.0",
|
|
61
61
|
"@splunk/react-ui": "^4.17.1",
|
|
62
62
|
"@splunk/themes": "^0.16.3",
|
|
63
|
-
"@splunk/visualization-build-tools": "^
|
|
63
|
+
"@splunk/visualization-build-tools": "^26.0.0",
|
|
64
64
|
"@splunk/webpack-configs": "^4.0.0",
|
|
65
65
|
"@storybook/addon-actions": "^6.1.20",
|
|
66
66
|
"@storybook/addons": "^6.1.20",
|