-
Notifications
You must be signed in to change notification settings - Fork 539
/
uiPlugin.ts
51 lines (46 loc) · 1.76 KB
/
uiPlugin.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module UI {
export var pluginName = 'hawtio-ui';
export var templatePath = 'app/ui/html/';
angular.module(UI.pluginName, ['bootstrap', 'ngResource', 'hawtioCore', 'ui', 'ui.bootstrap']).
config( ($routeProvider) => {
$routeProvider.
when('/ui/test', {templateUrl: templatePath + 'test.html'})
}).
directive('hawtioConfirmDialog', function() {
return new UI.ConfirmDialog();
}).
directive('hawtioSlideout', function() {
return new UI.SlideOut();
}).
directive('hawtioPager', function() {
return new UI.TablePager();
}).
directive('hawtioEditor', function() {
return new UI.Editor();
}).directive('hawtioColorPicker', function() {
return new UI.ColorPicker()
}).directive('hawtioFileUpload', () => {
return new UI.FileUpload();
}).directive('expandable', () => {
return new UI.Expandable();
}).directive('gridster', () => {
return new UI.GridsterDirective();
}).directive('editableProperty', ($parse) => {
return new UI.EditableProperty($parse);
}).directive('hawtioViewport', () => {
return new UI.ViewportHeight();
}).directive('hawtioHorizontalViewport', () => {
return new UI.HorizontalViewport();
}).directive('hawtioRow', () => {
return new UI.DivRow();
}).directive('hawtioJsplumb', () => {
return new UI.JSPlumb();
//}).directive('connectTo', () => {
// return new UI.JSPlumbConnection();
}).directive('zeroClipboard', () => {
return new UI.ZeroClipboardDirective();
}).run(function (helpRegistry) {
helpRegistry.addDevDoc("ui", 'app/ui/doc/developer.md');
});
hawtioPluginLoader.addModule(pluginName);
}