@molgenis-ui/components-library
Vue component library for molgenis web frontend
3,142
| Install | |
|---|---|
npm install @molgenis-ui/components-library |
|
| Latest Version: | 2.7.16 |
| Vue: | 2 |
| License: | LGPL-3.0 |
| Last Updated: | Nov 25, 2021 |
| Links: | npm |
Maintainer: sidohaakma
About
This is the Vue component styleguide for Molgenis.
Development
git clone git@github.com:molgenis/molgenis-frontend.git
cd molgenis-frontend/packages/components-library
yarn
yarn serve # Serve styleguide
yarn build # Distribution build
yarn unit # Run the test suite
yarn lint # Lint files
Usage
The Vue components library depends on a few third-party libraries:
yarn add @fortawesome/fontawesome-free@5.14
yarn add @fortawesome/fontawesome-svg-core@1.2
yarn add @fortawesome/free-solid-svg-icons@5.14
yarn add @fortawesome/vue-fontawesome@2.0
yarn add bootstrap-vue@2.17
yarn add vue-slider-component@3.2
yarn add vue2-daterange-picker@0.5
yarn add vuedraggable@2.23
yarn add vue-router@3.4.9
// Required for all components
import { BootstrapVue } from 'bootstrap-vue'
import 'bootstrap-vue/dist/bootstrap-vue.css'
Vue.use(BootstrapVue)
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import { faCaretRight, faExclamationTriangle, faSpinner, faTimes } from '@fortawesome/free-solid-svg-icons'
import { library } from '@fortawesome/fontawesome-svg-core'
library.add(faCaretRight, faExclamationTriangle, faSpinner, faTimes)
Vue.component('FontAwesomeIcon', FontAwesomeIcon)
// DateTimeFilter
import DateRangePicker from 'vue2-daterange-picker'
import 'vue2-daterange-picker/dist/vue2-daterange-picker.css'
Vue.component('DateRangePicker', DateRangePicker)
// RangeFilter, NumberFilter
import VueSlider from 'vue-slider-component'
import 'vue-slider-component/theme/default.css'
Vue.component('VueSlider', VueSlider)
// FilterContainer
import draggable from 'vuedraggable'
Vue.component('draggable', draggable)
import '@molgenis-ui/components-library/dist/components-library.css'
// Pagination (with routing)
import Router from 'vue-router'
// Initialize router and set its useRouter property to true.
See preview-build when reviewing a PR
Related Packages
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 2.7.16 | ^2.6.11 | LGPL-3.0 | |
| 2.7.15 | ^2.6.11 | LGPL-3.0 | |
| 2.7.14 | ^2.6.11 | LGPL-3.0 | |
| 2.7.13 | ^2.6.11 | LGPL-3.0 | |
| 2.7.12 | ^2.6.11 | LGPL-3.0 | |
| 2.7.11 | ^2.6.11 | LGPL-3.0 | |
| 2.7.10 | ^2.6.11 | LGPL-3.0 | |
| 2.7.9 | ^2.6.11 | LGPL-3.0 | |
| 2.7.8 | ^2.6.11 | LGPL-3.0 | |
| 2.7.7 | ^2.6.11 | LGPL-3.0 | |
| 2.7.6 | ^2.6.11 | LGPL-3.0 | |
| 2.7.5 | ^2.6.11 | LGPL-3.0 | |
| 2.7.4 | ^2.6.11 | LGPL-3.0 | |
| 2.7.3 | ^2.6.11 | LGPL-3.0 | |
| 2.7.2 | ^2.6.11 | LGPL-3.0 | |
| 2.7.1 | ^2.6.11 | LGPL-3.0 | |
| 2.7.0 | ^2.6.11 | LGPL-3.0 | |
| 2.6.0 | ^2.6.11 | LGPL-3.0 | |
| 2.5.1 | ^2.6.11 | LGPL-3.0 | |
| 2.5.0 | ^2.6.11 | LGPL-3.0 | |
| 2.4.5 | ^2.6.11 | LGPL-3.0 | |
| 2.4.4 | ^2.6.11 | LGPL-3.0 | |
| 2.4.3 | ^2.6.11 | LGPL-3.0 | |
| 2.4.2 | ^2.6.11 | LGPL-3.0 | |
| 2.4.1 | ^2.6.11 | LGPL-3.0 | |
| 2.4.0 | ^2.6.11 | LGPL-3.0 | |
| 2.3.0 | ^2.6.11 | LGPL-3.0 | |
| 2.2.0 | ^2.6.11 | LGPL-3.0 | |
| 2.1.1 | ^2.6.11 | LGPL-3.0 | |
| 2.1.0 | ^2.6.11 | LGPL-3.0 |
Showing the latest 30 of 71. See every release on npm