/
aurelia-editables.ts
45 lines (39 loc) · 1.55 KB
/
aurelia-editables.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
export * from './record';
export * from './record-manager';
export * from './api';
export * from './api-cached';
export * from './resources/elements/pager';
export * from './resources/elements/field';
export * from './resources/elements/data-grid-toolbar';
export * from './resources/elements/multi-grid';
export * from './resources/elements/data-grid';
export * from './resources/elements/data-form';
export * from './resources/elements/editors/text-editor';
export * from './resources/elements/editors/boolean-editor';
export * from './resources/elements/editors/dropdown-editor';
import { Api } from './api';
import { Config } from './config';
import { Container } from 'aurelia-framework';
export function configure(config, callback = null) {
let pluginConfig: Config = Container.instance.get(Config);
pluginConfig.api = Api;
pluginConfig.editors = {
text: './editors/text-editor',
boolean: './editors/boolean-editor',
dropdown: './editors/dropdown-editor',
};
if (callback instanceof Function)
callback(pluginConfig);
config
.globalResources(
'./resources/elements/editors/boolean-editor',
'./resources/elements/editors/dropdown-editor',
'./resources/elements/editors/text-editor',
'./resources/elements/field',
'./resources/elements/pager',
'./resources/elements/data-form',
'./resources/elements/data-grid-toolbar',
'./resources/elements/data-grid',
'./resources/elements/multi-grid'
);
}