UNPKG

@mezereon/ui-components-vue

Version:

UI components for Mezereon - Vue

92 lines (86 loc) 2.88 kB
import MzActionBar from './components/MzActionBar.vue' import MzSortBy from './components/MzSortBy.vue' import MzFilterBtn from './components/MzFilterBtn.vue' import MzPaging from './components/MzPaging.vue' import MzToggleLayout from './components/MzToggleLayout.vue' import MzBanner from './components/MzBanner.vue' import MzHitsInfo from './components/MzHitsInfo.vue' import MzList from './components/MzList.vue' import MzTree from './components/MzTree.vue' import MzHitsData from './components/MzHitsData.vue' import MzHitsGrid from './components/MzHitsGrid.vue' import MzHitsList from './components/MzHitsList.vue' import MzPagination from './components/MzPagination.vue' import MzSlider from './components/MzSlider.vue' import MzRefinements from './components/MzRefinements.vue' import MzSearchBox from './components/MzSearchBox.vue' import MzSelections from './components/MzSelections.vue' import MzRecommendations from './components/MzRecommendations.vue' import MzTooltip from './components/MzTooltip' import AutocompleteItem from './mixins/AutocompleteItem' import RecommendationItem from './mixins/RecommendationItem' import Hits from './mixins/Hits' import BaseSearchBox from './components/BaseSearchBox.vue' import BaseRecommendations from './components/BaseRecommendations.vue' function install(Vue) { Vue.component('mz-action-bar', MzActionBar) Vue.component('mz-sort-by', MzSortBy) Vue.component('mz-filter-btn', MzFilterBtn) Vue.component('mz-paging', MzPaging) Vue.component('mz-toggle-layout', MzToggleLayout) Vue.component('mz-banner', MzBanner) Vue.component('mz-hits-info', MzHitsInfo) Vue.component('mz-list', MzList) Vue.component('mz-tree', MzTree) Vue.component('mz-hits-data', MzHitsData) Vue.component('mz-hits-grid', MzHitsGrid) Vue.component('mz-hits-list', MzHitsList) Vue.component('mz-pagination', MzPagination) Vue.component('mz-slider', MzSlider) Vue.component('mz-refinements', MzRefinements) Vue.component('mz-search-box', MzSearchBox) Vue.component('mz-selections', MzSelections) Vue.component('mz-recommendations', MzRecommendations) Vue.component('mz-tooltip', MzTooltip) } // Create module definition for Vue.use() 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) } export default plugin export { AutocompleteItem, Hits, BaseSearchBox, BaseRecommendations, RecommendationItem, MzActionBar, MzSortBy, MzFilterBtn, MzPaging, MzToggleLayout, MzBanner, MzHitsInfo, MzList, MzTree, MzHitsData, MzHitsGrid, MzHitsList, MzPagination, MzSlider, MzRefinements, MzSearchBox, MzSelections, MzRecommendations, MzTooltip }