/* 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);