Adding search, zoom, custom zoom and additional stylings to showplan (#18255)

* Lot of changes
-Updating azdata to 0.0.13
-Updating prop views on node clicks
-Context menu on graphs
-Updating edge color on theme
-Scrolling graph control like ssms
-Zooming in, out and custom zoom on graph
-Custom zoom widget
-Node search widget

* Fixing hygine errors

* Code cleanup

* Fixing action name

* Renaming actions

* equals dropdown

* fixing tooltip

* Code cleanup
Fixing sorting function
Adding functionality for replacement strings

* Removing internal facing props from azdata proposed

* Fixing hygine issue

* Fixing web package hygiene

* Updating yarn lock files

* Fixing initial click
This commit is contained in:
Aasim Khan
2022-02-10 14:43:35 -08:00
committed by GitHub
parent 7bc954f942
commit 8ac09917ca
16 changed files with 656 additions and 77 deletions

View File

@@ -74,7 +74,10 @@ export function endsWith(haystack: string, needle: string): boolean {
/**
* Remove line breaks/eols from a string across different operating systems.
* @param str target strings that needs line breaks removed.
* @param replace optional string that replaces the line breaks.
* @returns string with removed line breaks.
*/
export function removeLineBreaks(str: string): string {
return str.replace(/(\r\n|\n|\r)/gm, '');
export function removeLineBreaks(str: string, replace?: string): string {
return str.replace(/(\r\n|\n|\r)/gm, replace ?? '');
}