Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (42 sloc) 1.91 KB
import { FrameworkConfiguration } from 'aurelia-framework';
import { PLATFORM } from 'aurelia-pal';
import { AureliaSlickgridCustomElement } from './aurelia-slickgrid';
import { SlickPaginationCustomElement } from './slick-pagination';
import { SlickgridConfig } from './slickgrid-config';
import { Filters } from './filters/index';
// expose all public classes
// aggregators, editors, formatters, services...
export * from './models/index';
export * from './formatters/index';
export * from './grouping-formatters/index';
export * from './sorters/index';
export * from './aggregators/index';
export * from './editors/index';
export * from './filter-conditions/index';
export * from './filters/index';
export * from './services/index';
export function configure(aurelia: FrameworkConfiguration, callback: (instance: SlickgridConfig) => void) {
aurelia.globalResources(PLATFORM.moduleName('./aurelia-slickgrid'));
aurelia.globalResources(PLATFORM.moduleName('./slick-pagination'));
aurelia.globalResources(PLATFORM.moduleName('./value-converters/asgNumber'));
// must register a transient so the container will get a new instance everytime
aurelia.container.registerTransient(Filters.autoComplete);
aurelia.container.registerTransient(Filters.compoundDate);
aurelia.container.registerTransient(Filters.compoundInput);
aurelia.container.registerTransient(Filters.compoundSlider);
aurelia.container.registerTransient(Filters.input);
aurelia.container.registerTransient(Filters.multipleSelect);
aurelia.container.registerTransient(Filters.singleSelect);
aurelia.container.registerTransient(Filters.select);
aurelia.container.registerTransient(Filters.slider);
const config = new SlickgridConfig();
aurelia.container.registerInstance(SlickgridConfig, config);
if (typeof callback === 'function') {
callback(config);
}
}
export {
AureliaSlickgridCustomElement,
SlickPaginationCustomElement,
SlickgridConfig
};
You can’t perform that action at this time.