all files / src/ index.ts

100% Statements 6/6
100% Branches 0/0
100% Functions 0/0
100% Lines 6/6
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 60                                                                                                           
/* 
    Component created by capivara-cli https://capivarajs.github.io/
*/
import capivara from 'capivarajs';
import template from './component/date.template.html';
import style from './component/date.style.scss';
import { CapivaraDate } from './component/date.component';
 
const Component = {
    /**
     * @name template
     * @description Applies the visual part of the component
     */
    template  : template,
    /**
     * @name style
     * @description Import component style
     */
    style     : style,
    /**
     * @name constants
     * @description Declares the constants that will be accepted by component. See https://capivarajs.github.io/components.html#constants
     */
    constants: ['title', 
                'language',
                'mask',
                'format',
                'datepicker',
                'timepicker',
                'openedCalendar',
                'allowedTimes',
                'defaultTime', 
                'defaultDate',
                'step',
                'weekNumbers',
                'yearStart',
                'yearEnd',
                'dayOfWeekStart',
                'disabledDates',
                'minDate',
                'maxDate'
                ],
    /**
     * @name functions
     * @description Declares the functions that will be accepted by component. See https://capivarajs.github.io/components.html#functions
     */
    functions: [],
    /**
     * @name bindings
     * @description Declares the variables that will be accepted by component. See https://capivarajs.github.io/components.html#bindings
     */
    bindings: ['cpModel'],
    /**
     * @name controller
     * @description Sets the scope of the component
     */
    controller: CapivaraDate
};
 
export default capivara.component('cp-date', Component);