2022-09-20 19:59:52 +00:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
|
|
import HasError from './validation/HasError.vue'
|
|
|
|
import AlertError from './validation/AlertError'
|
|
|
|
import AlertSuccess from './validation/AlertSuccess'
|
|
|
|
import VCheckbox from './components/VCheckbox'
|
|
|
|
import TextInput from './TextInput'
|
|
|
|
import TextAreaInput from './TextAreaInput'
|
|
|
|
import VSelect from './components/VSelect'
|
|
|
|
import CheckboxInput from './CheckboxInput'
|
|
|
|
import SelectInput from './SelectInput'
|
|
|
|
import ColorInput from './ColorInput'
|
|
|
|
import FileInput from './FileInput'
|
|
|
|
import ImageInput from './ImageInput'
|
2022-12-14 09:27:21 +00:00
|
|
|
import RatingInput from './RatingInput'
|
|
|
|
import FlatSelectInput from './FlatSelectInput'
|
|
|
|
import ToggleSwitchInput from './ToggleSwitchInput'
|
2022-09-20 19:59:52 +00:00
|
|
|
|
|
|
|
// Components that are registered globaly.
|
|
|
|
[
|
|
|
|
HasError,
|
|
|
|
AlertError,
|
|
|
|
AlertSuccess,
|
|
|
|
VCheckbox,
|
|
|
|
VSelect,
|
|
|
|
CheckboxInput,
|
|
|
|
ColorInput,
|
|
|
|
TextInput,
|
|
|
|
SelectInput,
|
|
|
|
TextAreaInput,
|
|
|
|
FileInput,
|
|
|
|
ImageInput,
|
|
|
|
RatingInput,
|
2022-10-18 06:49:00 +00:00
|
|
|
FlatSelectInput,
|
2022-12-15 15:59:53 +00:00
|
|
|
ToggleSwitchInput
|
2022-09-20 19:59:52 +00:00
|
|
|
].forEach(Component => {
|
|
|
|
Vue.component(Component.name, Component)
|
|
|
|
})
|
2022-12-14 09:27:21 +00:00
|
|
|
|
|
|
|
// Lazy load some heavy component
|
2022-12-22 10:53:33 +00:00
|
|
|
Vue.component('SignatureInput', () => import('./SignatureInput'))
|
2022-12-14 09:27:21 +00:00
|
|
|
Vue.component('RichTextAreaInput', () => import('./RichTextAreaInput'))
|
|
|
|
Vue.component('DateInput', () => import('./DateInput'))
|
|
|
|
Vue.component('SimpleDateInput', () => import('./SimpleDateInput'))
|