{"version":3,"file":"UdpMapToolbar.mjs","names":["React","UdpMapToolbar","MapToolbar","AddFeaturePanelConfig","getLayerOptionsFromLayerValues","layerValues","label","value","getFeatureTypeOptionsFromLayerValue","layerValue","UdpMapToolbarProps","map","mapTitle","mapProjection","getFeatureStyles","getSelectedFeatureStyles","filterPanel","enableTileSelection","tileLayersOptions","defaultTileOptionName","layerOptions","initialSelectedLayers","bulkSelectedFeaturesActionPanel","handleSetSelectedFeaturesOnBulkSelect","handleRefresh","refreshButtonTooltip","readOnlyMap","enableAdd","handleAddNewFeatures","addMultipleFeatures","enableSplitFeature","handleSplitFeature","handleSetSelectedFeatureProperties","filteredLayerOptionsByRole","handleSetBulkSelectionActive","enableDragBox","handleSetEnableDragBox","splitActive","handleSetSplitActive","selectFeatureInteraction","handleAddInteractionToMap","enableAddNewFeature","handleEnableAddNewFeature","readOnlyLayers","selectedLayers","handleSetSelectedLayers","addFeaturePanelConfig","FC","props","$","_c","t0"],"sources":["../../../src/UI/maps/UdpMapToolbar.tsx"],"sourcesContent":["import React from 'react';\nimport { UdpMapToolbar as MapToolbar } from '@univerus/udp-react-stencil-component-library';\n\nexport interface AddFeaturePanelConfig {\n  getLayerOptionsFromLayerValues?: (\n    layerValues: any[]\n  ) => { label: string; value: any }[];\n  getFeatureTypeOptionsFromLayerValue?: (\n    layerValue: any\n  ) => { label: string; value: any }[];\n}\n\nexport interface UdpMapToolbarProps {\n  /* Map instance */\n  map: any;\n\n  /* Title appearing on map */\n  mapTitle?: string;\n\n  /* Map feature projection used */\n  mapProjection?: string;\n\n  /* Method - Returns custom styles for features */\n  getFeatureStyles?: any;\n\n  /* Method - Returns custom styles for selected features */\n  getSelectedFeatureStyles?: any;\n\n  /* Custom filter panel */\n  filterPanel?: string;\n\n  /* Allows selecting tile layer */\n  enableTileSelection?: boolean;\n\n  /* List of tile layers visible on the map */\n  tileLayersOptions?: any[];\n\n  /* Default tile layer name */\n  defaultTileOptionName?: string;\n\n  /* List of options for vector layers */\n  layerOptions?: any[];\n\n  /* Vector layers selected in the layer filter on initial map load */\n  initialSelectedLayers?: any[];\n\n  /* Custom action panel for selected features */\n  bulkSelectedFeaturesActionPanel?: string;\n\n  /* Method - Retrieves selected features when bulk selected */\n  handleSetSelectedFeaturesOnBulkSelect: any;\n\n  /* Callback method to refresh map */\n  handleRefresh?: any;\n\n  /* Custom tooltip message on refresh button */\n  refreshButtonTooltip?: string;\n\n  /* Map is read-only (setting true removes the add, edit, delete functionality) */\n  readOnlyMap: boolean;\n\n  /* Enables adding a new feature by drawing on the map */\n  enableAdd: boolean;\n\n  /* When adding features on the map by drawing, this callback method returns the newly added features */\n  handleAddNewFeatures: any;\n\n  /* When adding features by drawing, add multiple features */\n  addMultipleFeatures: boolean;\n\n  /* Enables splitting line strings on the map */\n  enableSplitFeature: boolean;\n\n  /* Callback function to return split feature */\n  handleSplitFeature: any;\n\n  /* Method to set the selected feature properties */\n  handleSetSelectedFeatureProperties: any;\n\n  /* Layer options filtered by role */\n  filteredLayerOptionsByRole: any[];\n\n  /* Set bulk selection state to active */\n  handleSetBulkSelectionActive: any;\n\n  /* Boolean - if drag box interaction is currently active */\n  enableDragBox: boolean;\n\n  /* Set enableDragBox state */\n  handleSetEnableDragBox: any;\n\n  /* Boolean - if split interaction is currently active */\n  splitActive: boolean;\n\n  /* Set splitActive state */\n  handleSetSplitActive: any;\n\n  /* Interaction for select feature */\n  selectFeatureInteraction: any;\n\n  /* Method that handles adding interactions to the map */\n  handleAddInteractionToMap: any;\n\n  /* Show the button to add a new feature by drawing on the map */\n  enableAddNewFeature: boolean;\n\n  /* Callback method returns the new feature added */\n  handleEnableAddNewFeature: any;\n\n  /* Callback method returns selected layers */\n  /* List of layers that are read only */\n  readOnlyLayers?: string[];\n\n  /* Array of currently selected layers on the map */\n  selectedLayers: any[];\n\n  /* Handler to set the selected layers programmatically */\n  handleSetSelectedLayers: (value: any) => void;\n\n  /* Configuration object for customizing the add feature panel's appearance or behavior */\n  addFeaturePanelConfig?: AddFeaturePanelConfig;\n}\n\nexport const UdpMapToolbar: React.FC<UdpMapToolbarProps> = (props: UdpMapToolbarProps) => {\n  return <MapToolbar {...props} />;\n};\n"],"mappings":";;;;AA2HA,MAAaC,mBAA8C+C,UAAA;CAAA,MAAAC,IAAAC,EAAA,EAAA;CAAA,IAAAC;AAAA,KAAAF,EAAA,OAAAD,OAAA;AAClDG,OAAA,sBAAA,cAAC,eAAeH,MAAS;AAAAC,IAAA,KAAAD;AAAAC,IAAA,KAAAE;OAAAA,MAAAF,EAAA;AAAA,QAAzBE"}