angular_wrappers.ts 712 B

1234567891011121314151617181920
  1. import { react2AngularDirective } from 'app/core/utils/react2angular';
  2. import { QueryEditor } from './components/QueryEditor';
  3. import { AnnotationQueryEditor } from './components/AnnotationQueryEditor';
  4. //This should be removed when the plugin is fully reactified
  5. export function registerAngularDirectives() {
  6. react2AngularDirective('queryEditor', QueryEditor, [
  7. 'target',
  8. 'onQueryChange',
  9. 'onExecuteQuery',
  10. ['events', { watchDepth: 'reference' }],
  11. ['datasource', { watchDepth: 'reference' }],
  12. ]);
  13. react2AngularDirective('annotationQueryEditor', AnnotationQueryEditor, [
  14. 'target',
  15. 'onQueryChange',
  16. 'onExecuteQuery',
  17. ['datasource', { watchDepth: 'reference' }],
  18. ]);
  19. }