seitime-frappe/frappe/public/js/form_builder/globals.js

58 lines
2.8 KiB
JavaScript

import AttachControl from "./components/controls/AttachControl.vue";
import ButtonControl from "./components/controls/ButtonControl.vue";
import CheckControl from "./components/controls/CheckControl.vue";
import CodeControl from "./components/controls/CodeControl.vue";
import DataControl from "./components/controls/DataControl.vue";
import GeolocationControl from "./components/controls/GeolocationControl.vue";
import ImageControl from "./components/controls/ImageControl.vue";
import LinkControl from "./components/controls/LinkControl.vue";
import RatingControl from "./components/controls/RatingControl.vue";
import SelectControl from "./components/controls/SelectControl.vue";
import SignatureControl from "./components/controls/SignatureControl.vue";
import TableControl from "./components/controls/TableControl.vue";
import TextControl from "./components/controls/TextControl.vue";
import TextEditorControl from "./components/controls/TextEditorControl.vue";
import FetchFromControl from "./components/controls/FetchFromControl.vue";
export function registerGlobalComponents(app) {
app.component("AttachControl", AttachControl)
.component("AttachImageControl", AttachControl)
.component("AutocompleteControl", DataControl)
.component("BarcodeControl", DataControl)
.component("ButtonControl", ButtonControl)
.component("CheckControl", CheckControl)
.component("CodeControl", CodeControl)
.component("ColorControl", DataControl)
.component("CurrencyControl", DataControl)
.component("DataControl", DataControl)
.component("DateControl", DataControl)
.component("DatetimeControl", DataControl)
.component("DurationControl", DataControl)
.component("DynamicLinkControl", DataControl)
.component("FloatControl", DataControl)
.component("GeolocationControl", GeolocationControl)
.component("HeadingControl", ButtonControl)
.component("HTMLControl", DataControl)
.component("HTMLEditorControl", CodeControl)
.component("IconControl", DataControl)
.component("ImageControl", ImageControl)
.component("IntControl", DataControl)
.component("JSONControl", CodeControl)
.component("LinkControl", LinkControl)
.component("LongTextControl", TextControl)
.component("MarkdownEditorControl", CodeControl)
.component("PasswordControl", DataControl)
.component("PercentControl", DataControl)
.component("PhoneControl", DataControl)
.component("ReadOnlyControl", DataControl)
.component("RatingControl", RatingControl)
.component("SelectControl", SelectControl)
.component("SignatureControl", SignatureControl)
.component("SmallTextControl", TextControl)
.component("TableControl", TableControl)
.component("TableMultiSelectControl", DataControl)
.component("TextControl", TextControl)
.component("TextEditorControl", TextEditorControl)
.component("TimeControl", DataControl)
.component("FetchFromControl", FetchFromControl);
}