2016-09-29 22:10:02 +02:00
|
|
|
import injector from 'lib/Injector';
|
|
|
|
import TextField from 'components/TextField/TextField';
|
|
|
|
import HiddenField from 'components/HiddenField/HiddenField';
|
|
|
|
import CheckboxField from 'components/CheckboxField/CheckboxField';
|
|
|
|
import CheckboxSetField from 'components/CheckboxSetField/CheckboxSetField';
|
|
|
|
import OptionsetField from 'components/OptionsetField/OptionsetField';
|
|
|
|
import GridField from 'components/GridField/GridField';
|
|
|
|
import SingleSelectField from 'components/SingleSelectField/SingleSelectField';
|
|
|
|
import PopoverField from 'components/PopoverField/PopoverField';
|
|
|
|
import HeaderField from 'components/HeaderField/HeaderField';
|
|
|
|
import LiteralField from 'components/LiteralField/LiteralField';
|
|
|
|
import HtmlReadonlyField from 'components/HtmlReadonlyField/HtmlReadonlyField';
|
2016-10-05 03:30:19 +02:00
|
|
|
import LookupField from 'components/LookupField/LookupField';
|
2016-09-29 22:10:02 +02:00
|
|
|
import CompositeField from 'components/CompositeField/CompositeField';
|
|
|
|
import Tabs from 'components/Tabs/Tabs';
|
|
|
|
import TabItem from 'components/Tabs/TabItem';
|
|
|
|
import FormAction from 'components/FormAction/FormAction';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* TODO remove when dependency injector for javascript is incorporated
|
|
|
|
*
|
|
|
|
* This is to contain all the fields used by the injector, rather than clutter up the boot/index.js
|
|
|
|
*/
|
|
|
|
class BootInjector {
|
|
|
|
start() {
|
|
|
|
injector.register('TextField', TextField);
|
|
|
|
injector.register('HiddenField', HiddenField);
|
|
|
|
injector.register('CheckboxField', CheckboxField);
|
|
|
|
injector.register('CheckboxSetField', CheckboxSetField);
|
|
|
|
injector.register('OptionsetField', OptionsetField);
|
|
|
|
injector.register('GridField', GridField);
|
|
|
|
injector.register('SingleSelectField', SingleSelectField);
|
|
|
|
injector.register('PopoverField', PopoverField);
|
|
|
|
injector.register('HeaderField', HeaderField);
|
|
|
|
injector.register('LiteralField', LiteralField);
|
|
|
|
injector.register('HtmlReadonlyField', HtmlReadonlyField);
|
2016-10-05 03:30:19 +02:00
|
|
|
injector.register('LookupField', LookupField);
|
2016-09-29 22:10:02 +02:00
|
|
|
injector.register('CompositeField', CompositeField);
|
|
|
|
injector.register('Tabs', Tabs);
|
|
|
|
injector.register('TabItem', TabItem);
|
|
|
|
injector.register('FormAction', FormAction);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export default new BootInjector();
|