angular_wrappers.ts 651 B

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