2018-01-03 15:50:39 +01:00
|
|
|
import { react2AngularDirective } from 'app/core/utils/react2angular';
|
2019-01-14 18:23:01 +01:00
|
|
|
import { QueryEditor as StackdriverQueryEditor } from 'app/plugins/datasource/stackdriver/components/QueryEditor';
|
|
|
|
|
import { AnnotationQueryEditor as StackdriverAnnotationQueryEditor } from 'app/plugins/datasource/stackdriver/components/AnnotationQueryEditor';
|
2020-01-15 16:38:15 +01:00
|
|
|
import { AnnotationQueryEditor as CloudWatchAnnotationQueryEditor } from 'app/plugins/datasource/cloudwatch/components/AnnotationQueryEditor';
|
2018-01-03 15:50:39 +01:00
|
|
|
import PageHeader from './components/PageHeader/PageHeader';
|
|
|
|
|
import EmptyListCTA from './components/EmptyListCTA/EmptyListCTA';
|
2018-01-16 12:52:13 +01:00
|
|
|
import { TagFilter } from './components/TagFilter/TagFilter';
|
2018-09-04 17:24:08 +02:00
|
|
|
import { SideMenu } from './components/sidemenu/SideMenu';
|
2018-12-19 21:44:38 +01:00
|
|
|
import { MetricSelect } from './components/Select/MetricSelect';
|
2018-10-23 13:34:27 +02:00
|
|
|
import AppNotificationList from './components/AppNotifications/AppNotificationList';
|
2019-10-18 12:09:53 +02:00
|
|
|
import {
|
|
|
|
|
ColorPicker,
|
|
|
|
|
DataSourceHttpSettings,
|
2020-01-17 15:52:08 +01:00
|
|
|
GraphContextMenu,
|
2020-03-10 08:53:41 +01:00
|
|
|
SeriesColorPickerPopoverWithTheme,
|
|
|
|
|
UnitPicker,
|
@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 14:33:31 +02:00
|
|
|
Icon,
|
2020-04-21 11:42:21 +02:00
|
|
|
LegacyForms,
|
2020-04-24 09:26:22 +02:00
|
|
|
DataLinksInlineEditor,
|
2019-10-18 12:09:53 +02:00
|
|
|
} from '@grafana/ui';
|
2020-04-21 11:42:21 +02:00
|
|
|
const { SecretFormField } = LegacyForms;
|
2019-02-18 17:55:38 +01:00
|
|
|
import { FunctionEditor } from 'app/plugins/datasource/graphite/FunctionEditor';
|
2019-08-19 13:40:14 -04:00
|
|
|
import ReactProfileWrapper from 'app/features/profile/ReactProfileWrapper';
|
2019-09-10 11:04:44 +02:00
|
|
|
import { LokiAnnotationsQueryEditor } from '../plugins/datasource/loki/components/AnnotationsQueryEditor';
|
2019-10-02 14:57:40 +01:00
|
|
|
import { HelpModal } from './components/help/HelpModal';
|
2020-01-09 11:25:52 +01:00
|
|
|
import { Footer } from './components/Footer/Footer';
|
2020-02-13 10:13:03 +00:00
|
|
|
import { FolderPicker } from 'app/core/components/Select/FolderPicker';
|
2020-03-03 08:22:26 +01:00
|
|
|
import {
|
|
|
|
|
SaveDashboardAsButtonConnected,
|
|
|
|
|
SaveDashboardButtonConnected,
|
|
|
|
|
} from '../features/dashboard/components/SaveDashboard/SaveDashboardButton';
|
2020-03-16 06:32:04 +01:00
|
|
|
import { VariableEditorContainer } from '../features/variables/editor/VariableEditorContainer';
|
2020-04-08 18:14:03 +03:00
|
|
|
import { SearchField, SearchResults, SearchWrapper, SearchResultsFilter } from '../features/search';
|
2020-04-27 15:28:06 +02:00
|
|
|
import { TimePickerSettings } from 'app/features/dashboard/components/DashboardSettings/TimePickerSettings';
|
2017-10-22 07:03:26 +02:00
|
|
|
|
|
|
|
|
export function registerAngularDirectives() {
|
2020-01-09 11:25:52 +01: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 14:33:31 +02:00
|
|
|
react2AngularDirective('icon', Icon, [
|
|
|
|
|
'color',
|
|
|
|
|
'name',
|
|
|
|
|
'size',
|
|
|
|
|
'type',
|
|
|
|
|
['onClick', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2019-10-02 14:57:40 +01:00
|
|
|
react2AngularDirective('helpModal', HelpModal, []);
|
2018-09-04 17:24:08 +02:00
|
|
|
react2AngularDirective('sidemenu', SideMenu, []);
|
2019-02-18 17:55:38 +01:00
|
|
|
react2AngularDirective('functionEditor', FunctionEditor, ['func', 'onRemove', 'onMoveLeft', 'onMoveRight']);
|
2018-10-24 10:23:11 +02:00
|
|
|
react2AngularDirective('appNotificationsList', AppNotificationList, []);
|
2018-01-03 15:50:39 +01:00
|
|
|
react2AngularDirective('pageHeader', PageHeader, ['model', 'noTabs']);
|
2019-08-20 17:19:21 +02:00
|
|
|
react2AngularDirective('emptyListCta', EmptyListCTA, [
|
|
|
|
|
'title',
|
|
|
|
|
'buttonIcon',
|
|
|
|
|
'buttonLink',
|
|
|
|
|
'buttonTitle',
|
|
|
|
|
['onClick', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
'proTip',
|
|
|
|
|
'proTipLink',
|
|
|
|
|
'proTipLinkTitle',
|
|
|
|
|
'proTipTarget',
|
|
|
|
|
'infoBox',
|
|
|
|
|
'infoBoxTitle',
|
|
|
|
|
]);
|
2020-03-26 11:09:08 +02:00
|
|
|
//Search
|
2019-05-02 08:49:03 +02:00
|
|
|
react2AngularDirective('searchField', SearchField, [
|
|
|
|
|
'query',
|
|
|
|
|
'autoFocus',
|
|
|
|
|
['onChange', { watchDepth: 'reference' }],
|
|
|
|
|
['onKeyDown', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2020-03-26 11:09:08 +02:00
|
|
|
react2AngularDirective('searchResults', SearchResults, [
|
|
|
|
|
'results',
|
|
|
|
|
'editable',
|
|
|
|
|
'selectors',
|
|
|
|
|
['onSelectionChanged', { watchDepth: 'reference' }],
|
|
|
|
|
['onTagSelected', { watchDepth: 'reference' }],
|
|
|
|
|
['onFolderExpanding', { watchDepth: 'reference' }],
|
|
|
|
|
['onToggleSelection', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2020-04-02 14:07:31 +03: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' }],
|
|
|
|
|
]);
|
2020-04-08 18:14:03 +03:00
|
|
|
react2AngularDirective('searchWrapper', SearchWrapper, []);
|
2018-01-16 12:52:13 +01:00
|
|
|
react2AngularDirective('tagFilter', TagFilter, [
|
|
|
|
|
'tags',
|
2018-12-10 13:23:38 +01:00
|
|
|
['onChange', { watchDepth: 'reference' }],
|
2018-01-16 12:52:13 +01:00
|
|
|
['tagOptions', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2019-01-10 13:34:23 +01:00
|
|
|
react2AngularDirective('colorPicker', ColorPicker, [
|
|
|
|
|
'color',
|
|
|
|
|
['onChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2019-02-05 17:04:48 +01:00
|
|
|
react2AngularDirective('seriesColorPickerPopover', SeriesColorPickerPopoverWithTheme, [
|
2019-01-24 12:01:15 +01:00
|
|
|
'color',
|
2019-01-10 13:34:23 +01:00
|
|
|
'series',
|
|
|
|
|
'onColorChange',
|
|
|
|
|
'onToggleAxis',
|
|
|
|
|
]);
|
2019-12-04 00:08:07 -08:00
|
|
|
react2AngularDirective('unitPicker', UnitPicker, [
|
|
|
|
|
'value',
|
|
|
|
|
'width',
|
|
|
|
|
['onChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2018-12-19 21:44:38 +01:00
|
|
|
react2AngularDirective('metricSelect', MetricSelect, [
|
|
|
|
|
'options',
|
|
|
|
|
'onChange',
|
|
|
|
|
'value',
|
|
|
|
|
'isSearchable',
|
|
|
|
|
'className',
|
|
|
|
|
'placeholder',
|
|
|
|
|
['variables', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2019-01-14 18:23:01 +01:00
|
|
|
react2AngularDirective('stackdriverQueryEditor', StackdriverQueryEditor, [
|
2019-01-08 13:37:08 +01:00
|
|
|
'target',
|
|
|
|
|
'onQueryChange',
|
|
|
|
|
'onExecuteQuery',
|
|
|
|
|
['events', { watchDepth: 'reference' }],
|
|
|
|
|
['datasource', { watchDepth: 'reference' }],
|
2019-01-08 13:52:19 +01:00
|
|
|
['templateSrv', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2019-01-14 18:23:01 +01:00
|
|
|
react2AngularDirective('stackdriverAnnotationQueryEditor', StackdriverAnnotationQueryEditor, [
|
2019-01-08 13:52:19 +01:00
|
|
|
'target',
|
|
|
|
|
'onQueryChange',
|
|
|
|
|
['datasource', { watchDepth: 'reference' }],
|
|
|
|
|
['templateSrv', { watchDepth: 'reference' }],
|
2019-01-08 13:37:08 +01:00
|
|
|
]);
|
2020-01-15 16:38:15 +01:00
|
|
|
react2AngularDirective('cloudwatchAnnotationQueryEditor', CloudWatchAnnotationQueryEditor, [
|
|
|
|
|
'query',
|
|
|
|
|
'onChange',
|
|
|
|
|
['datasource', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2019-03-19 13:38:54 +01:00
|
|
|
react2AngularDirective('secretFormField', SecretFormField, [
|
|
|
|
|
'value',
|
|
|
|
|
'isConfigured',
|
|
|
|
|
'inputWidth',
|
2019-04-15 11:11:17 +02:00
|
|
|
'labelWidth',
|
2019-03-19 13:38:54 +01:00
|
|
|
['onReset', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['onChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2019-06-25 11:38:51 +02:00
|
|
|
react2AngularDirective('graphContextMenu', GraphContextMenu, [
|
|
|
|
|
'x',
|
|
|
|
|
'y',
|
|
|
|
|
'items',
|
|
|
|
|
['onClose', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['getContextMenuSource', { watchDepth: 'reference', wrapApply: true }],
|
2020-04-27 15:28:06 +02:00
|
|
|
['timeZone', { watchDepth: 'reference', wrapApply: true }],
|
2019-06-25 11:38:51 +02:00
|
|
|
]);
|
|
|
|
|
|
|
|
|
|
// We keep the drilldown terminology here because of as using data-* directive
|
|
|
|
|
// being in conflict with HTML data attributes
|
2020-04-24 09:26:22 +02:00
|
|
|
react2AngularDirective('drilldownLinksEditor', DataLinksInlineEditor, [
|
2019-06-25 11:38:51 +02:00
|
|
|
'value',
|
2020-04-24 09:26:22 +02:00
|
|
|
'links',
|
2019-06-25 11:38:51 +02:00
|
|
|
'suggestions',
|
|
|
|
|
['onChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2019-08-19 13:40:14 -04:00
|
|
|
|
|
|
|
|
react2AngularDirective('reactProfileWrapper', ReactProfileWrapper, []);
|
2019-09-10 11:04:44 +02:00
|
|
|
|
|
|
|
|
react2AngularDirective('lokiAnnotationsQueryEditor', LokiAnnotationsQueryEditor, [
|
|
|
|
|
'expr',
|
|
|
|
|
'onChange',
|
|
|
|
|
['datasource', { watchDepth: 'reference' }],
|
|
|
|
|
]);
|
2019-10-18 12:09:53 +02:00
|
|
|
react2AngularDirective('datasourceHttpSettingsNext', DataSourceHttpSettings, [
|
|
|
|
|
'defaultUrl',
|
|
|
|
|
'showAccessOptions',
|
|
|
|
|
'dataSourceConfig',
|
|
|
|
|
['onChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2020-02-13 10:13:03 +00: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 }],
|
|
|
|
|
]);
|
2020-03-03 08:22:26 +01:00
|
|
|
react2AngularDirective('saveDashboardButton', SaveDashboardButtonConnected, [
|
|
|
|
|
['getDashboard', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['onSaveSuccess', { watchDepth: 'reference', wrapApply: true }],
|
2020-03-11 08:31:07 +01:00
|
|
|
['dashboard', { watchDepth: 'reference', wrapApply: true }],
|
2020-03-03 08:22:26 +01:00
|
|
|
]);
|
|
|
|
|
react2AngularDirective('saveDashboardAsButton', SaveDashboardAsButtonConnected, [
|
|
|
|
|
'variant',
|
|
|
|
|
['getDashboard', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['onSaveSuccess', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2020-03-10 08:53:41 +01:00
|
|
|
react2AngularDirective('variableEditorContainer', VariableEditorContainer, []);
|
2020-04-27 15:28:06 +02:00
|
|
|
react2AngularDirective('timePickerSettings', TimePickerSettings, [
|
|
|
|
|
['getDashboard', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['onTimeZoneChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['onRefreshIntervalChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['onNowDelayChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
['onHideTimePickerChange', { watchDepth: 'reference', wrapApply: true }],
|
|
|
|
|
]);
|
2017-10-22 07:03:26 +02:00
|
|
|
}
|