|
1 | 1 | // Laravilt Forms Package Entry Point |
2 | 2 | import Form from './components/Form.vue' |
| 3 | +import FieldWrapper from './components/FieldWrapper.vue' |
| 4 | +import TextInput from './components/fields/TextInput.vue' |
| 5 | +import Textarea from './components/fields/Textarea.vue' |
3 | 6 | import Select from './components/fields/Select.vue' |
| 7 | +import Checkbox from './components/fields/Checkbox.vue' |
| 8 | +import CheckboxList from './components/fields/CheckboxList.vue' |
| 9 | +import Radio from './components/fields/Radio.vue' |
| 10 | +import Toggle from './components/fields/Toggle.vue' |
| 11 | +import ToggleButtons from './components/fields/ToggleButtons.vue' |
| 12 | +import Hidden from './components/fields/Hidden.vue' |
| 13 | +import DatePicker from './components/fields/DatePicker.vue' |
| 14 | +import TimePicker from './components/fields/TimePicker.vue' |
| 15 | +import DateTimePicker from './components/fields/DateTimePicker.vue' |
| 16 | +import DateRangePicker from './components/fields/DateRangePicker.vue' |
| 17 | +import FileUpload from './components/fields/FileUpload.vue' |
| 18 | +import RichEditor from './components/fields/RichEditor.vue' |
| 19 | +import MarkdownEditor from './components/fields/MarkdownEditor.vue' |
| 20 | +import CodeEditor from './components/fields/CodeEditor.vue' |
| 21 | +import ColorPicker from './components/fields/ColorPicker.vue' |
| 22 | +import TagsInput from './components/fields/TagsInput.vue' |
| 23 | +import KeyValue from './components/fields/KeyValue.vue' |
| 24 | +import Repeater from './components/fields/Repeater.vue' |
| 25 | +import Builder from './components/fields/Builder.vue' |
| 26 | +import Slider from './components/fields/Slider.vue' |
| 27 | +import IconPicker from './components/fields/IconPicker.vue' |
| 28 | +import NumberField from './components/fields/NumberField.vue' |
| 29 | +import PinInput from './components/fields/PinInput.vue' |
| 30 | +import RateInput from './components/fields/RateInput.vue' |
| 31 | +import Tabs from './components/schema/Tabs.vue' |
| 32 | +import Section from './components/schema/Section.vue' |
| 33 | +import Grid from './components/schema/Grid.vue' |
4 | 34 |
|
5 | | -export { Form, Select } |
| 35 | +export { Form, Select, TextInput } |
6 | 36 |
|
7 | 37 | export default { |
8 | 38 | install(app, options = {}) { |
9 | 39 | // Register global components with laravilt- prefix for LaraviltComponentRenderer |
| 40 | + app.component('laravilt-form', Form) |
| 41 | + app.component('laravilt-field-wrapper', FieldWrapper) |
| 42 | + |
| 43 | + // Field components |
| 44 | + app.component('laravilt-text-input', TextInput) |
| 45 | + app.component('laravilt-textarea', Textarea) |
10 | 46 | app.component('laravilt-select', Select) |
| 47 | + app.component('laravilt-checkbox', Checkbox) |
| 48 | + app.component('laravilt-checkbox-list', CheckboxList) |
| 49 | + app.component('laravilt-radio', Radio) |
| 50 | + app.component('laravilt-toggle', Toggle) |
| 51 | + app.component('laravilt-toggle-buttons', ToggleButtons) |
| 52 | + app.component('laravilt-hidden', Hidden) |
| 53 | + app.component('laravilt-date-picker', DatePicker) |
| 54 | + app.component('laravilt-time-picker', TimePicker) |
| 55 | + app.component('laravilt-datetime-picker', DateTimePicker) |
| 56 | + app.component('laravilt-date-range-picker', DateRangePicker) |
| 57 | + app.component('laravilt-file-upload', FileUpload) |
| 58 | + app.component('laravilt-rich-editor', RichEditor) |
| 59 | + app.component('laravilt-markdown-editor', MarkdownEditor) |
| 60 | + app.component('laravilt-code-editor', CodeEditor) |
| 61 | + app.component('laravilt-color-picker', ColorPicker) |
| 62 | + app.component('laravilt-tags-input', TagsInput) |
| 63 | + app.component('laravilt-key-value', KeyValue) |
| 64 | + app.component('laravilt-repeater', Repeater) |
| 65 | + app.component('laravilt-builder', Builder) |
| 66 | + app.component('laravilt-slider', Slider) |
| 67 | + app.component('laravilt-icon-picker', IconPicker) |
| 68 | + app.component('laravilt-number-field', NumberField) |
| 69 | + app.component('laravilt-pin-input', PinInput) |
| 70 | + app.component('laravilt-rate-input', RateInput) |
| 71 | + |
| 72 | + // Schema components |
| 73 | + app.component('laravilt-tabs', Tabs) |
| 74 | + app.component('laravilt-section', Section) |
| 75 | + app.component('laravilt-grid', Grid) |
| 76 | + |
| 77 | + // Legacy name support |
11 | 78 | app.component('Form', Form) |
12 | 79 | } |
13 | 80 | } |
0 commit comments