mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
e5b86457b4
API MultiSelectField readonly transformation casts to LookupField instead of ReadonlyField FIX removed jQuery dependency from i18n
46 lines
2.1 KiB
JavaScript
46 lines
2.1 KiB
JavaScript
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';
|
|
import LookupField from 'components/LookupField/LookupField';
|
|
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);
|
|
injector.register('LookupField', LookupField);
|
|
injector.register('CompositeField', CompositeField);
|
|
injector.register('Tabs', Tabs);
|
|
injector.register('TabItem', TabItem);
|
|
injector.register('FormAction', FormAction);
|
|
}
|
|
}
|
|
|
|
export default new BootInjector();
|