angular_wrappers.ts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { react2AngularDirective } from 'app/core/utils/react2angular';
  2. import { QueryEditor } from './components/QueryEditor';
  3. // import { MetricPicker } from './components/MetricPicker';
  4. // import { OptionPicker } from './components/OptionPicker';
  5. // import { OptionGroupPicker } from './components/OptionGroupPicker';
  6. // import { AggregationPicker } from './components/AggregationPicker';
  7. export function registerAngularDirectives() {
  8. // react2AngularDirective('optionPicker', OptionPicker, [
  9. // 'options',
  10. // 'onChange',
  11. // 'selected',
  12. // 'searchable',
  13. // 'className',
  14. // 'placeholder',
  15. // ]);
  16. // react2AngularDirective('optionGroupPicker', OptionGroupPicker, [
  17. // 'groups',
  18. // 'onChange',
  19. // 'selected',
  20. // 'searchable',
  21. // 'className',
  22. // 'placeholder',
  23. // ]);
  24. // react2AngularDirective('metricPicker', MetricPicker, [
  25. // 'target',
  26. // ['onChange', { watchDepth: 'reference' }],
  27. // 'defaultProject',
  28. // 'metricType',
  29. // ['templateSrv', { watchDepth: 'reference' }],
  30. // ['datasource', { watchDepth: 'reference' }],
  31. // ]);
  32. // react2AngularDirective('aggregationPicker', AggregationPicker, [
  33. // 'valueType',
  34. // 'metricKind',
  35. // 'onChange',
  36. // 'aggregation',
  37. // ['templateSrv', { watchDepth: 'reference' }],
  38. // ]);
  39. react2AngularDirective('queryEditor', QueryEditor, [
  40. 'target',
  41. 'onChange',
  42. ['uiSegmentSrv', { watchDepth: 'reference' }],
  43. ['datasource', { watchDepth: 'reference' }],
  44. ['templateSrv', { watchDepth: 'reference' }],
  45. ]);
  46. }