| 
									
										
										
										
											2021-11-09 15:37:16 +08:00
										 |  |  | import { react2AngularDirective } from 'app/angular/react2angular'; | 
					
						
							| 
									
										
										
										
											2020-06-30 23:47:13 +08:00
										 |  |  | import { QueryEditor as CloudMonitoringQueryEditor } from 'app/plugins/datasource/cloud-monitoring/components/QueryEditor'; | 
					
						
							|  |  |  | import { AnnotationQueryEditor as CloudMonitoringAnnotationQueryEditor } from 'app/plugins/datasource/cloud-monitoring/components/AnnotationQueryEditor'; | 
					
						
							| 
									
										
										
										
											2020-01-15 23:38:15 +08:00
										 |  |  | import { AnnotationQueryEditor as CloudWatchAnnotationQueryEditor } from 'app/plugins/datasource/cloudwatch/components/AnnotationQueryEditor'; | 
					
						
							| 
									
										
										
										
											2021-11-09 01:41:04 +08:00
										 |  |  | import PageHeader from '../core/components/PageHeader/PageHeader'; | 
					
						
							|  |  |  | import EmptyListCTA from '../core/components/EmptyListCTA/EmptyListCTA'; | 
					
						
							|  |  |  | import { TagFilter } from '../core/components/TagFilter/TagFilter'; | 
					
						
							|  |  |  | import { MetricSelect } from '../core/components/Select/MetricSelect'; | 
					
						
							| 
									
										
										
										
											2019-10-18 18:09:53 +08:00
										 |  |  | import { | 
					
						
							| 
									
										
										
										
											2022-01-07 21:41:09 +08:00
										 |  |  |   ClipboardButton, | 
					
						
							| 
									
										
										
										
											2019-10-18 18:09:53 +08:00
										 |  |  |   ColorPicker, | 
					
						
							| 
									
										
										
										
											2020-09-09 13:45:51 +08:00
										 |  |  |   DataLinksInlineEditor, | 
					
						
							| 
									
										
										
										
											2019-10-18 18:09:53 +08:00
										 |  |  |   DataSourceHttpSettings, | 
					
						
							| 
									
										
										
										
											2020-01-17 22:52:08 +08:00
										 |  |  |   GraphContextMenu, | 
					
						
							| 
									
										
											  
											
												@grafana/ui: Create Icon component and replace part of the icons (#23402)
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Resolve type errors resulted from merge
* Part2: Unicons implementation (#23266)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and  empty  list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Icons update
* Add optional chaining to for isFontAwesome variable
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Part3:  Unicons implementation (#23356)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and  empty  list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Update icons in Explore
* Update icons in alerting
* Update + and x buttons
* Update icons in configurations and settings
* Update close icons
* Update icons in rich history
* Update alert messages
* Add optional chaining to for isFontAwesome variable
* Remove icon mock, set up jest.config
* Fix navbar plus icon
* Fir enable-bacground to enableBackgournd
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Merge remote branch origin master to icons-unicons
* Revert "Merge remote branch origin master to icons-unicons"
This reverts commit 3f25d50a39a940883fefe73ce51219139c1ed37f.
* Size-up dashnav icons
* Fix alerting icons, panel headers, update tests
* Fix typecheck error
* Adjustments - add panel icon, spacing
* Set TerserPlugin sourceMap to false to prevent running out of memory when publishing storybook
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
											
										 
											2020-04-08 20:33:31 +08:00
										 |  |  |   Icon, | 
					
						
							| 
									
										
										
										
											2020-04-21 17:42:21 +08:00
										 |  |  |   LegacyForms, | 
					
						
							| 
									
										
										
										
											2020-09-09 13:45:51 +08:00
										 |  |  |   SeriesColorPickerPopoverWithTheme, | 
					
						
							| 
									
										
										
										
											2021-08-18 00:50:31 +08:00
										 |  |  |   Spinner, | 
					
						
							| 
									
										
										
										
											2020-09-09 13:45:51 +08:00
										 |  |  |   UnitPicker, | 
					
						
							| 
									
										
										
										
											2019-10-18 18:09:53 +08:00
										 |  |  | } from '@grafana/ui'; | 
					
						
							| 
									
										
										
										
											2019-09-10 17:04:44 +08:00
										 |  |  | import { LokiAnnotationsQueryEditor } from '../plugins/datasource/loki/components/AnnotationsQueryEditor'; | 
					
						
							| 
									
										
										
										
											2021-11-09 01:41:04 +08:00
										 |  |  | import { HelpModal } from '../core/components/help/HelpModal'; | 
					
						
							|  |  |  | import { Footer } from '../core/components/Footer/Footer'; | 
					
						
							| 
									
										
										
										
											2020-02-13 18:13:03 +08:00
										 |  |  | import { FolderPicker } from 'app/core/components/Select/FolderPicker'; | 
					
						
							| 
									
										
											  
											
												Routing NG: Replace Angular routing with react-router (#31463)
* Add router packages
* Get react app root work instead of Angular one
* Logger util
* Patch Angular routing ($routeProvider, $routeParamsProvider)
* Use react-router-dom history instead of separate dependency
* Add test routes
* Sidemenu - use Link instead of anchors
* Patch Angular $location service (stub)
* WIP: geting rid of $location provider from TimeSrv
* Intercept anchor clicks to use history under the hood
* Sync Redux location slice with history state
* Make login/logout work
* Debug routes for testing
* Make force login work
* Make sure query param change does not recreate page components
* Hide side menu in specified locations
* Make the dashboar route query parameters work, make panel edit menu work
* Enable more routes
* Fix side menu
* Handle view modes
* Disable playlist routes
* Make SafeDynamicImport work again
* Bring back router-debug
* Separate redux location sync from route rendering
* Refactor updateLocation to thunk and move force refresh(login) to it
* Fixing init dashboard issue
* Support switching between dashboards without an unmount of DashboardPage
* More fixes for init dashboard and panel edit
* More type fixes
* Moving angular location wrapper out of main LocationService, and fixing typescript issues
* Fixed last typescript errors
* LocationService: Move to runtime and  remove getLocationService and export singleston const instead (#31523)
* Moving location service implementation to runtime and removing get function and making it a package const singleton
* Added test that used locationService directly
* removed unused import
* AngularApp: Moving angular dependencies and the app boot out of the main app into it's own file  (#31525)
* Fixes angular panels by calling the monkey patch
* Moving angular stuff to to it's own files
* udpated
* Fixing clicking on divs and spans inside anchor
* Moving app notifications out of angular app and removing angular directive wrapper
* Moving search from angular to react and removing angular search wrapper
* Clean up, tried to remove the redux location wrapper but requires a big update for DashboardPage, so adding it back
* Moving AppWrapper to root to limit circular dependencies (app/core -> app/routing and back)
* Open and close search now works
* Hide sidemenu when in kiosk mode
* Restoring some keybindings like ESC key
* Removed kiosk events and simplified it, just handled through updating URL
* Fixing typescript errors
* Simplified GrafanaRouteComponentProps and renamed to ContainerProps
* renamed back
* Changed AlertRuleList to use GrafanaRouteComponentProps and location.search passed to it
* Removing the reloadOnSearch property, this is not needed now for react as react by default does not unmount components when only url match or query parmas change
* SafeDynamicImport causing unmount un every search update, not sure how to fix yet
* Fix signature for SafeDynamicImport so we do not create new route components on every route render
* Removing the redux location wrapper as it was causing errors, and making dashboard page work with RouteProps (location, match) etc
* Updating DashboardPage and SoloPanelPage to use match params and history location
* Fixed DashboardPage tests
* Fixing solo route tests
* LocationService: Rename getCurrentLocation to just getLocation
* do not intercept link clicks with target blank or self
* Experimental useUrlParams hook
* Update DataSourceSettingsPage to use router match params
* fix links with urls that have no starting / to work like before
* Fix forceLogin
* Add queryParams to GrafanaRouteComponentProps
* PanelEditor get rid of updateLocation and location state
* Improve grafana route query params typing
* Add getSearchObject to LocationService
* Use DashboardPAge queryParams instead of location.search parsing
* Fix DashboardPage typing
* Fix some tests weirdness
* Bring back KeyboardSrv
* Fixes typescript issues
* Team pages now use router match params
* Get rid of  from GrafanaRouteComponent props
* Removed unnessary calls to getSearchObject when calling locationService.partial
* Updated DashboardPage tests after queryParams was added
* Fixing dashboard settings back
* GrafanaRoute: Adding tests and remove use of global locationService
* Fixing tests and typescript errors
* Bring back kiosk modes and add tests
* Fix TimeSrv tests
* Fix typecheck errors
* Fixing tests
* Updated SideMenu test to react-testing and wrapped component in Router, and fixed issue importing createMemoryHistory
* Get rid of routeChange event from TimeSrv from
* Fixed TopSectionItem test
* Trying to make basename work but failing
* Update TopSectionItem snapshot
* Fix TopSectionItem snapshot test
* Fix API keys creation
* Remove Angular dependencies from KeybindingSrv (#31617)
* Remove Angular dependency from KeybindingsSrv
* Fix tests and typecheck issues
* basename is starting to work
* Make dashboard save work
* KeybindingSrv: Remove as angular service and no usage angular scope
* So long bridge_srv, we won't miss you
* Update snapshots
* Dashboard: Refactoring ChangeTracker to use History api and no angular (#31653)
* Dashboard: Refactoring ChangeTracker to use History api and no angular
* Updated
* Removed logging
* fixed unit tests
* updated snapshots
* Mechanism for force reloading routes (#31683)
* e2e: Fixes various things in e2e scenarios after router migration (#31685)
* Explore: Update reading query params from router props and updating location via locationService (ReactRouter)  (#31688)
* RoutingNG: Initial explore redux location to router location migration
* Updated explore Wrapper tests
* Fixing more tests
* remove loggin
* rename back to make naming consistent
* Fixing return to dashboard button
* fixing navigation to explore from dashboard
* updated routeProps
* Updated tests
* Make DashboardListPage work
* Fixing navigation after add new data source, and fixes explore e2e
* Fixing solo panel page
* PluginsPage now works
* RoutingNG: When parsing and rendering url search/query params preseve old logic of handling booleans and arrays (#31725)
* RoutingNG: When parsing and rendering url search/query params preserve old logic of handling booleans and arrays
* Fixed test
* Make snapshots list work
* fixed alert notification channel edit page
* Simplify LocationService, did not need special handling for login or forceLogin as target _self on link already handles that
* fixed UserAdminPage
* fixed edit orgs page
* Fixing LdapPage
* fixing dashboard import
* Fixed new folder page
* Fixed data source dashboards page
* fixing Folder permissions and folder settings page
* fixing snapshot list page nav model
* remove unused file
* Added placeholder page for playlist
* Moved browser compatability to index-template
* Restored 404/default page
* Fixed reset password page
* Fixed SignUpInvited page
* Fixing CreateTeam, Create user page, add panel widget
* Restore browwser file to make tests happy
* Fixed unit tests
* Removed unused import
* Replacing usage of updateLocation
* Fixed test
* Updating search filters to use history / location service for filters
* remove unused file
* AppRootPage fixed
* Fixing test and search issue
* Changes to support enterprise extensions
* remove console.log
* Removing more use of redux location
* Fixed signup page
* removed unused old angular controllers
* Fixing bugs
* one final bugfix
* Removed location from redux state
* Fixing ts issues and tests
* Fixing test issue
* fixing tests
* Fixing tests
* removed unused stuff
* Fixed search test
* Adding some doc comments
* Routing NG: Angular location provider patch (#31773)
* Patch Angulars $location provider
* Update public/app/angular/bridgeReactAngularRouting.ts
* Remove only test
* Update tests, disable loggers in test env
* Routing NG: remove $location provider usage (#31816)
* Remove dashboard_loaders
* Remove $location from Analytics service, track page views form GrafanaRoute
* Remove NotificationsEditCtrl
* Remove Angular dependencies from uploadDashboardDirective
* Update public/app/features/dashboard/containers/DashboardPage.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update public/app/features/dashboard/containers/DashboardPage.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Remove unused test helpers (#31831)
* Playlist react (#31829)
* playlist list in react
* Playlist start
* Things started to work
* Updated
* Handle empty list
* Fix ts
* Fixes and kiosk mode stuff
* Removed unused events
* fixing ts issue
* Another ts issue
* Fixing tests
Co-authored-by: Dominik Prokop <dominik.prokop@grafana.com>
* fixed test
* Update public/app/AppWrapper.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Update public/app/AppWrapper.tsx
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
* Remove Angular dependency from DashboardLoaderSrv (#31863)
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
Co-authored-by: Torkel Ödegaard <torkel@grafana.org>
Co-authored-by: Hugo Häggmark <hugo.haggmark@grafana.com>
Co-authored-by: Alex Khomenko <Clarity-89@users.noreply.github.com>
											
										 
											2021-03-11 01:03:36 +08:00
										 |  |  | import { SearchField, SearchResults, SearchResultsFilter } from '../features/search'; | 
					
						
							| 
									
										
										
										
											2021-03-11 19:37:39 +08:00
										 |  |  | import { TimePickerSettings } from 'app/features/dashboard/components/DashboardSettings/TimePickerSettings'; | 
					
						
							|  |  |  | import QueryEditor from 'app/plugins/datasource/grafana-azure-monitor-datasource/components/QueryEditor/QueryEditor'; | 
					
						
							| 
									
										
										
										
											2017-10-22 13:03:26 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-09-09 13:45:51 +08:00
										 |  |  | const { SecretFormField } = LegacyForms; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-10-22 13:03:26 +08:00
										 |  |  | export function registerAngularDirectives() { | 
					
						
							| 
									
										
										
										
											2020-01-09 18:25:52 +08:00
										 |  |  |   react2AngularDirective('footer', Footer, []); | 
					
						
							| 
									
										
											  
											
												@grafana/ui: Create Icon component and replace part of the icons (#23402)
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Resolve type errors resulted from merge
* Part2: Unicons implementation (#23266)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and  empty  list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Icons update
* Add optional chaining to for isFontAwesome variable
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Part3:  Unicons implementation (#23356)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Implment icons in Tabs
* Implement icons in search items and  empty  list
* Update buttons
* Update button-related snapshot tests
* Update icons in modals and page headers
* Create anfular wrapper and update all icons on search screen
* Update sizing, remove colors, update snapshot tests
* Remove color prop from icon, remove color implemetation in mono icons
* Remove color props from monochrome icons
* Complete update of icons for search screen
* Update icons for infor tooltips, playlist, permissions
* Support temporarly font awesome icons used in enterprise grafana
* Part1: Unicons implementation (#23197)
* Create a new Icon component
* Update icons in main sidebar
* Update icons in Useful links and in react components on  main site
* Update icons in Useful links and in main top navigation
* Adjust sizing
* Update panel navigation and timepicker
* Update icons in Panel menu
* NewPanelEditor: Fixed so that test alert rule works in new edit mode (#23179)
* Update icons in add panel widget
* Resolve merge conflict
* Fix part of the test errors and type errors
* Fix storybook errors
* Update getAvailableIcons import in storybook knobs
* Fix import path
* Fix SyntaxError: Cannot use import statement outside a module in test environment error
* Remove dynamic imports
* Remove types as using @ts-ignore
* Update snapshot test
* Add @iconscout/react-unicons to the shouldExclude list as it is blundled with es2015 syntax
* Remove color prop from icon, remove color implemetation in mono icons
* Update navbar styling
* Move toPascalCase to utils/string
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Update icons in Explore
* Update icons in alerting
* Update + and x buttons
* Update icons in configurations and settings
* Update close icons
* Update icons in rich history
* Update alert messages
* Add optional chaining to for isFontAwesome variable
* Remove icon mock, set up jest.config
* Fix navbar plus icon
* Fir enable-bacground to enableBackgournd
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
* Merge remote branch origin master to icons-unicons
* Revert "Merge remote branch origin master to icons-unicons"
This reverts commit 3f25d50a39a940883fefe73ce51219139c1ed37f.
* Size-up dashnav icons
* Fix alerting icons, panel headers, update tests
* Fix typecheck error
* Adjustments - add panel icon, spacing
* Set TerserPlugin sourceMap to false to prevent running out of memory when publishing storybook
Co-authored-by: Torkel Ödegaard <torkel@grafana.com>
											
										 
											2020-04-08 20:33:31 +08:00
										 |  |  |   react2AngularDirective('icon', Icon, [ | 
					
						
							|  |  |  |     'name', | 
					
						
							|  |  |  |     'size', | 
					
						
							|  |  |  |     'type', | 
					
						
							|  |  |  |     ['onClick', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-11-04 20:34:40 +08:00
										 |  |  |   react2AngularDirective('spinner', Spinner, ['inline']); | 
					
						
							| 
									
										
										
										
											2019-10-02 21:57:40 +08:00
										 |  |  |   react2AngularDirective('helpModal', HelpModal, []); | 
					
						
							| 
									
										
										
										
											2018-01-03 22:50:39 +08:00
										 |  |  |   react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']); | 
					
						
							| 
									
										
										
										
											2019-08-20 23:19:21 +08:00
										 |  |  |   react2AngularDirective('emptyListCta', EmptyListCTA, [ | 
					
						
							|  |  |  |     'title', | 
					
						
							|  |  |  |     'buttonIcon', | 
					
						
							|  |  |  |     'buttonLink', | 
					
						
							|  |  |  |     'buttonTitle', | 
					
						
							|  |  |  |     ['onClick', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     'proTip', | 
					
						
							|  |  |  |     'proTipLink', | 
					
						
							|  |  |  |     'proTipLinkTitle', | 
					
						
							|  |  |  |     'proTipTarget', | 
					
						
							|  |  |  |     'infoBox', | 
					
						
							|  |  |  |     'infoBoxTitle', | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-03-26 17:09:08 +08:00
										 |  |  |   //Search
 | 
					
						
							| 
									
										
										
										
											2019-05-02 14:49:03 +08:00
										 |  |  |   react2AngularDirective('searchField', SearchField, [ | 
					
						
							|  |  |  |     'query', | 
					
						
							|  |  |  |     'autoFocus', | 
					
						
							|  |  |  |     ['onChange', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['onKeyDown', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-03-26 17:09:08 +08:00
										 |  |  |   react2AngularDirective('searchResults', SearchResults, [ | 
					
						
							|  |  |  |     'results', | 
					
						
							|  |  |  |     'editable', | 
					
						
							|  |  |  |     'selectors', | 
					
						
							|  |  |  |     ['onSelectionChanged', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['onTagSelected', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['onFolderExpanding', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['onToggleSelection', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-04-02 19:07:31 +08:00
										 |  |  |   react2AngularDirective('searchFilters', SearchResultsFilter, [ | 
					
						
							|  |  |  |     'allChecked', | 
					
						
							|  |  |  |     'canMove', | 
					
						
							|  |  |  |     'canDelete', | 
					
						
							|  |  |  |     'tagFilterOptions', | 
					
						
							|  |  |  |     'selectedStarredFilter', | 
					
						
							|  |  |  |     'selectedTagFilter', | 
					
						
							|  |  |  |     ['onSelectAllChanged', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['deleteItem', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['moveTo', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['onStarredFilterChange', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['onTagFilterChange', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2018-01-16 19:52:13 +08:00
										 |  |  |   react2AngularDirective('tagFilter', TagFilter, [ | 
					
						
							|  |  |  |     'tags', | 
					
						
							| 
									
										
										
										
											2018-12-10 20:23:38 +08:00
										 |  |  |     ['onChange', { watchDepth: 'reference' }], | 
					
						
							| 
									
										
										
										
											2018-01-16 19:52:13 +08:00
										 |  |  |     ['tagOptions', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2019-01-10 20:34:23 +08:00
										 |  |  |   react2AngularDirective('colorPicker', ColorPicker, [ | 
					
						
							|  |  |  |     'color', | 
					
						
							|  |  |  |     ['onChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2019-02-06 00:04:48 +08:00
										 |  |  |   react2AngularDirective('seriesColorPickerPopover', SeriesColorPickerPopoverWithTheme, [ | 
					
						
							| 
									
										
										
										
											2019-01-24 19:01:15 +08:00
										 |  |  |     'color', | 
					
						
							| 
									
										
										
										
											2019-01-10 20:34:23 +08:00
										 |  |  |     'series', | 
					
						
							|  |  |  |     'onColorChange', | 
					
						
							|  |  |  |     'onToggleAxis', | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2019-12-04 16:08:07 +08:00
										 |  |  |   react2AngularDirective('unitPicker', UnitPicker, [ | 
					
						
							|  |  |  |     'value', | 
					
						
							|  |  |  |     'width', | 
					
						
							|  |  |  |     ['onChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2018-12-20 04:44:38 +08:00
										 |  |  |   react2AngularDirective('metricSelect', MetricSelect, [ | 
					
						
							|  |  |  |     'options', | 
					
						
							|  |  |  |     'onChange', | 
					
						
							|  |  |  |     'value', | 
					
						
							|  |  |  |     'isSearchable', | 
					
						
							|  |  |  |     'className', | 
					
						
							|  |  |  |     'placeholder', | 
					
						
							|  |  |  |     ['variables', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-06-30 23:47:13 +08:00
										 |  |  |   react2AngularDirective('cloudMonitoringQueryEditor', CloudMonitoringQueryEditor, [ | 
					
						
							| 
									
										
										
										
											2019-01-08 20:37:08 +08:00
										 |  |  |     'target', | 
					
						
							|  |  |  |     'onQueryChange', | 
					
						
							|  |  |  |     'onExecuteQuery', | 
					
						
							|  |  |  |     ['events', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['datasource', { watchDepth: 'reference' }], | 
					
						
							| 
									
										
										
										
											2019-01-08 20:52:19 +08:00
										 |  |  |     ['templateSrv', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-06-30 23:47:13 +08:00
										 |  |  |   react2AngularDirective('cloudMonitoringAnnotationQueryEditor', CloudMonitoringAnnotationQueryEditor, [ | 
					
						
							| 
									
										
										
										
											2019-01-08 20:52:19 +08:00
										 |  |  |     'target', | 
					
						
							|  |  |  |     'onQueryChange', | 
					
						
							|  |  |  |     ['datasource', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     ['templateSrv', { watchDepth: 'reference' }], | 
					
						
							| 
									
										
										
										
											2019-01-08 20:37:08 +08:00
										 |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-01-15 23:38:15 +08:00
										 |  |  |   react2AngularDirective('cloudwatchAnnotationQueryEditor', CloudWatchAnnotationQueryEditor, [ | 
					
						
							|  |  |  |     'query', | 
					
						
							|  |  |  |     'onChange', | 
					
						
							|  |  |  |     ['datasource', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2019-03-19 20:38:54 +08:00
										 |  |  |   react2AngularDirective('secretFormField', SecretFormField, [ | 
					
						
							|  |  |  |     'value', | 
					
						
							|  |  |  |     'isConfigured', | 
					
						
							|  |  |  |     'inputWidth', | 
					
						
							| 
									
										
										
										
											2019-04-15 17:11:17 +08:00
										 |  |  |     'labelWidth', | 
					
						
							| 
									
										
										
										
											2019-03-19 20:38:54 +08:00
										 |  |  |     ['onReset', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['onChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2019-06-25 17:38:51 +08:00
										 |  |  |   react2AngularDirective('graphContextMenu', GraphContextMenu, [ | 
					
						
							|  |  |  |     'x', | 
					
						
							|  |  |  |     'y', | 
					
						
							| 
									
										
										
										
											2021-03-11 22:35:17 +08:00
										 |  |  |     'itemsGroup', | 
					
						
							| 
									
										
										
										
											2019-06-25 17:38:51 +08:00
										 |  |  |     ['onClose', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['getContextMenuSource', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							| 
									
										
										
										
											2020-04-27 21:28:06 +08:00
										 |  |  |     ['timeZone', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							| 
									
										
										
										
											2019-06-25 17:38:51 +08:00
										 |  |  |   ]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   // We keep the drilldown terminology here because of as using data-* directive
 | 
					
						
							|  |  |  |   // being in conflict with HTML data attributes
 | 
					
						
							| 
									
										
										
										
											2020-04-24 15:26:22 +08:00
										 |  |  |   react2AngularDirective('drilldownLinksEditor', DataLinksInlineEditor, [ | 
					
						
							| 
									
										
										
										
											2019-06-25 17:38:51 +08:00
										 |  |  |     'value', | 
					
						
							| 
									
										
										
										
											2020-04-24 15:26:22 +08:00
										 |  |  |     'links', | 
					
						
							| 
									
										
										
										
											2019-06-25 17:38:51 +08:00
										 |  |  |     'suggestions', | 
					
						
							|  |  |  |     ['onChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2019-08-20 01:40:14 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-09-10 17:04:44 +08:00
										 |  |  |   react2AngularDirective('lokiAnnotationsQueryEditor', LokiAnnotationsQueryEditor, [ | 
					
						
							|  |  |  |     'expr', | 
					
						
							| 
									
										
										
										
											2021-02-16 20:27:17 +08:00
										 |  |  |     'maxLines', | 
					
						
							|  |  |  |     'instant', | 
					
						
							| 
									
										
										
										
											2019-09-10 17:04:44 +08:00
										 |  |  |     'onChange', | 
					
						
							|  |  |  |     ['datasource', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2019-10-18 18:09:53 +08:00
										 |  |  |   react2AngularDirective('datasourceHttpSettingsNext', DataSourceHttpSettings, [ | 
					
						
							|  |  |  |     'defaultUrl', | 
					
						
							|  |  |  |     'showAccessOptions', | 
					
						
							|  |  |  |     'dataSourceConfig', | 
					
						
							| 
									
										
										
										
											2021-08-20 21:53:54 +08:00
										 |  |  |     'showForwardOAuthIdentityOption', | 
					
						
							| 
									
										
										
										
											2019-10-18 18:09:53 +08:00
										 |  |  |     ['onChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2020-02-13 18:13:03 +08:00
										 |  |  |   react2AngularDirective('folderPicker', FolderPicker, [ | 
					
						
							|  |  |  |     'labelClass', | 
					
						
							|  |  |  |     'rootName', | 
					
						
							|  |  |  |     'enableCreateNew', | 
					
						
							|  |  |  |     'enableReset', | 
					
						
							|  |  |  |     'initialTitle', | 
					
						
							|  |  |  |     'initialFolderId', | 
					
						
							|  |  |  |     'dashboardId', | 
					
						
							|  |  |  |     'onCreateFolder', | 
					
						
							|  |  |  |     ['enterFolderCreation', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['exitFolderCreation', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['onLoad', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['onChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2021-03-11 19:37:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   react2AngularDirective('timePickerSettings', TimePickerSettings, [ | 
					
						
							|  |  |  |     'renderCount', | 
					
						
							|  |  |  |     'refreshIntervals', | 
					
						
							|  |  |  |     'timePickerHidden', | 
					
						
							|  |  |  |     'nowDelay', | 
					
						
							|  |  |  |     'timezone', | 
					
						
							|  |  |  |     ['onTimeZoneChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['onRefreshIntervalChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['onNowDelayChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |     ['onHideTimePickerChange', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   react2AngularDirective('azureMonitorQueryEditor', QueryEditor, [ | 
					
						
							|  |  |  |     'query', | 
					
						
							|  |  |  |     ['datasource', { watchDepth: 'reference' }], | 
					
						
							|  |  |  |     'onChange', | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2022-01-07 21:41:09 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  |   react2AngularDirective('clipboardButton', ClipboardButton, [ | 
					
						
							|  |  |  |     ['getText', { watchDepth: 'reference', wrapApply: true }], | 
					
						
							|  |  |  |   ]); | 
					
						
							| 
									
										
										
										
											2017-10-22 13:03:26 +08:00
										 |  |  | } |