-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
85 additions
and
85 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import BFormComponent from "./BFormComponent.vue"; | ||
import BWrapperComponent from "./BWrapperComponent.vue"; | ||
|
||
export { BFormComponent, BWrapperComponent }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import CheckboxView from "./CheckboxView.vue"; | ||
import MultiSelectView from "./MultiSelectView.vue"; | ||
import OptionboxView from "./OptionboxView.vue"; | ||
|
||
export { CheckboxView, MultiSelectView, OptionboxView }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import DisplayErrors from "./DisplayErrors.vue"; | ||
import RequiredAsterisk from "./RequiredAsterisk.vue"; | ||
|
||
export { DisplayErrors, RequiredAsterisk }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,58 @@ | ||
// Import our components | ||
import FormInput from './FormInput' | ||
import FormCheckbox from './FormCheckbox' | ||
import FormRadioButtonGroup from './FormRadioButtonGroup' | ||
import FormSelect from './FormSelect' | ||
import FormSelectList from './FormSelectList' | ||
import FormTextArea from './FormTextArea' | ||
import FormDatePicker from './FormDatePicker' | ||
import FormAccordion from './FormAccordion' | ||
import FormHtmlEditor from './FormHtmlEditor' | ||
import FormHtmlViewer from './FormHtmlViewer' | ||
import FormDelayTimeControl from './FormDelayTimeControl' | ||
import FormMultiSelect from './FormMultiSelect'; | ||
import FormPlainMultiSelect from './FormPlainMultiSelect'; | ||
import RequiredAsterisk from './common/RequiredAsterisk'; | ||
import * as dateUtils from '../dateUtils'; | ||
import * as dateUtils from "../dateUtils"; | ||
|
||
import BFormComponent from './FormBootstrapVueComponents/BFormComponent' | ||
import BWrapperComponent from './FormBootstrapVueComponents/BWrapperComponent' | ||
export { default as FormAccordion } from "./FormAccordion.vue"; | ||
export { default as FormCheckbox } from "./FormCheckbox.vue"; | ||
export { default as FormDatePicker } from "./FormDatePicker.vue"; | ||
export { default as FormDelayTimeControl } from "./FormDelayTimeControl.vue"; | ||
export { default as FormHtmlEditor } from "./FormHtmlEditor.vue"; | ||
export { default as FormHtmlViewer } from "./FormHtmlViewer.vue"; | ||
export { default as FormInput } from "./FormInput.vue"; | ||
export { default as FormMultiSelect } from "./FormMultiSelect.vue"; | ||
export { default as FormPlainMultiSelect } from "./FormPlainMultiSelect.vue"; | ||
export { default as FormRadioButtonGroup } from "./FormRadioButtonGroup.vue"; | ||
export { default as FormSelect } from "./FormSelect.vue"; | ||
export { default as FormSelectList } from "./FormSelectList.vue"; | ||
export { default as FormTextArea } from "./FormTextArea.vue"; | ||
export * from "./common"; | ||
export * from "./FormBootstrapVueComponents"; | ||
export * from "./FormSelectList"; | ||
export * from "./mixins"; | ||
export { dateUtils }; | ||
|
||
// Export our components | ||
let components = { | ||
FormInput, | ||
FormCheckbox, | ||
FormRadioButtonGroup, | ||
FormSelect, | ||
FormSelectList, | ||
FormTextArea, | ||
FormDatePicker, | ||
FormAccordion, | ||
FormHtmlEditor, | ||
FormHtmlViewer, | ||
FormDelayTimeControl, | ||
FormMultiSelect, | ||
FormPlainMultiSelect, | ||
BFormComponent, | ||
BWrapperComponent, | ||
} | ||
// Export our Vue plugin as our default | ||
export default function install(Vue) { | ||
// First check to see if we're already installed | ||
if (Vue._processMakerVueFormElementsInstalled) { | ||
return; | ||
} | ||
|
||
// Export our named exports | ||
export { | ||
FormInput, | ||
FormCheckbox, | ||
FormRadioButtonGroup, | ||
FormSelect, | ||
FormSelectList, | ||
FormTextArea, | ||
FormDatePicker, | ||
FormAccordion, | ||
FormHtmlEditor, | ||
FormHtmlViewer, | ||
FormDelayTimeControl, | ||
FormMultiSelect, | ||
FormPlainMultiSelect, | ||
dateUtils, | ||
RequiredAsterisk, | ||
BFormComponent, | ||
BWrapperComponent, | ||
} | ||
// Boolean flag to see if we're already installed | ||
Vue._processMakerVueFormElementsInstalled = true; | ||
|
||
// Export our Vue plugin as our default | ||
export default { | ||
install: function (Vue) { | ||
// First check to see if we're already installed | ||
if (Vue._processMakerVueFormElementsInstalled) { | ||
return | ||
} | ||
// Register each of our components | ||
const vueComponents = require.context("./", true, /\.(vue)$/); | ||
|
||
vueComponents.keys().forEach((key) => { | ||
const component = vueComponents(key).default; | ||
|
||
// Boolean flag to see if we're already installed | ||
Vue._processMakerVueFormElementsInstalled = true | ||
// if a component has a name defined use the name, else use the path as the component name | ||
const name = component.name ? component.name : key.replace(/^.*[\\\/]/, "").replace(/\.[^/.]+$/, ""); | ||
|
||
// Register each of our components | ||
for (let component in components) { | ||
Vue.component(component, components[component]) | ||
} | ||
} | ||
Vue.component(name, component); | ||
}); | ||
} | ||
|
||
const plugin = { | ||
install | ||
}; | ||
|
||
// Auto-install when vue is found (eg. in browser via <script> tag) | ||
let GlobalVue = null; | ||
if (typeof window !== "undefined") { | ||
GlobalVue = window.Vue; | ||
} else if (typeof global !== "undefined") { | ||
GlobalVue = global.Vue; | ||
} | ||
if (GlobalVue) { | ||
GlobalVue.use(plugin); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export { default as DataFormatMixin } from "./DataFormat"; | ||
export { default as HasDefaultOptionKeyMixin } from "./hasDefaultOptionKey"; | ||
export { default as ProxyDataMixin } from "./ProxyData"; | ||
export { default as ValidationMixin } from "./validation"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters