All files / src index.ts

100% Statements 13/13
100% Branches 0/0
100% Functions 2/2
100% Lines 12/12
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 52 53 54 55 56 57 58 59              1x   1x 1x 1x 1x 1x 1x 1x         1x                                                                   1x 2800x 112x    
/**
 * @module sn-controls-aurelia
 * 
 * @description General classes, modules and methods for sn-controls-aurelia package
 * 
 */ /** */
 
import { FrameworkConfiguration, PLATFORM } from 'aurelia-framework';
 
export * from './fieldcontrols';
export * from './navigationcontrols';
export * from './attributes';
export * from './collectioncontrols';
export * from './services';
export * from './viewcontrols';
export * from './Enums';
 
/**
 * A list of modules that will be imported when using sn-controls-aurelia as an Aurelia plugin
 */
export const modules = [
        './attributes/ContentDragCustomAttribute',
        './attributes/ContentDropCustomAttribute',
        './attributes/SettingsValidationCustomAttribute',
 
        './viewcontrols/ContentView',
        './viewcontrols/GenericView',
        './navigationcontrols/Tree',
        './navigationcontrols/Breadcrumbs',
        './collectioncontrols/ContentList',
        
        './fieldcontrols/Checkbox',
        './fieldcontrols/Choice',
        './fieldcontrols/ContentReference',
        './fieldcontrols/ContentListReference',
        './fieldcontrols/DumpField',
        './fieldcontrols/Icon',
        './fieldcontrols/DateOnly',
        './fieldcontrols/DateTime',
        './fieldcontrols/DisplayName',
        './fieldcontrols/NameField',
        './fieldcontrols/Integer',
        './fieldcontrols/LongText',
        './fieldcontrols/Number',       
        './fieldcontrols/Password',
        './fieldcontrols/Percentage',
        './fieldcontrols/RichText',
        './fieldcontrols/ShortText',
]
 
/**
 * The main entry point for configuring the package as an Aurelia plugin
 * @param app the Aurelia FrameworkConfiguration object
 */
export function configure(app: FrameworkConfiguration){
    app.globalResources(modules.map(m => PLATFORM.moduleName(m)));
    app.plugin('aurelia-validation');
}