Skip to content

Commit 338fe54

Browse files
committed
chore: 3.0.0-beta.4 version release
2 parents 88506db + cde01f4 commit 338fe54

14 files changed

+415
-870
lines changed

README.md

Lines changed: 12 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
1-
## CoreUI v3 for Vue.js
2-
3-
> A [@coreui/vue](https://coreui.io/vue) `v3` components library project.
4-
5-
[![npm-coreui-vue-next][npm-coreui-vue-next]][npm]
6-
[![Npm badge](https://img.shields.io/npm/v/@coreui/vue.svg)][npm]
7-
[![NPM downloads][npm-download]][npm]
1+
# CoreUI Vue components library
2+
![NPM](https://img.shields.io/npm/v/@coreui/vue/latest?style=flat&color=brightgreen)
3+
![Downloads](https://img.shields.io/npm/dm/@coreui/vue.svg?style=flat-square)
84
![Jest](https://img.shields.io/badge/Jest-^24.9.0-blue.svg)
95
![Vue](https://img.shields.io/badge/Vue-^2.6.10-brightgreen.svg)
106

11-
[npm]: https://www.npmjs.com/package/@coreui/vue
12-
[npm-download]: https://img.shields.io/npm/dm/@coreui/vue.svg?style=flat-square
13-
[npm-coreui-vue-next]: https://img.shields.io/npm/v/@coreui/vue/next.png?style=flat-square
14-
15-
### Introduction
7+
> A @coreui/vue `v3` components library project
168
17-
#### Over 90 bootstrap based Vue.js components and directives!
9+
## Over 90 bootstrap based Vue.js components and directives!
1810

19-
[Explore CoreUI v3 for Vue.js docs »](https://coreui.io/vue/docs)
11+
### For library guide please visit our [Documentation site »](https://coreui.io/vue/docs)
2012

21-
Check out template build on top of this library: [CoreUI Open Source Bootstrap Admin Template »](https://coreui.io/vue/)
13+
Check out demo of components usage: [CoreUI Vue Admin Template »](https://coreui.io/vue/demo/3.0-beta.1/#)
2214

23-
---
15+
## Installation
2416

25-
### Installation
26-
27-
```bash
28-
npm install @coreui/vue@next
17+
```shell
18+
npm install @coreui/vue
2919
```
3020

3121
### Registering components
22+
3223
```js
3324
// Installing whole package
3425
import CoreuiVue from '@coreui/vue';
@@ -88,4 +79,4 @@ See [CONTRIBUTING.md](https://github.com/coreui/coreui-vue/blob/v3-next/CONTRIBU
8879

8980
### Credits
9081

91-
Some design ideas and solutions in this library are inspired by [Bootstrap-Vue library](https://bootstrap-vue.js.org/)
82+
Some design ideas and solutions in this library are inspired by [Bootstrap-Vue library](https://bootstrap-vue.js.org/)

dist/coreui-vue.common.js

Lines changed: 90 additions & 336 deletions
Large diffs are not rendered by default.

dist/coreui-vue.common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/coreui-vue.umd.js

Lines changed: 90 additions & 336 deletions
Large diffs are not rendered by default.

dist/coreui-vue.umd.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/coreui-vue.umd.min.js

Lines changed: 4 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/coreui-vue.umd.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 173 additions & 137 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@coreui/vue",
33
"description": "CoreUI Vue Bootstrap 4 layout components",
4-
"version": "3.0.0-beta.3",
4+
"version": "3.0.0-beta.4",
55
"license": "MIT",
66
"main": "dist/coreui-vue.common.js",
77
"types": "src/index.d.ts",
@@ -64,8 +64,8 @@
6464
"clear_jest": "jest --clearCache"
6565
},
6666
"dependencies": {
67-
"@coreui/coreui": "3.0.0-beta.3",
68-
"@coreui/icons": "coreui/coreui-icons#1.0.0-beta.1",
67+
"@coreui/utils": "^1.0.0",
68+
"@coreui/icons": "^1.0.0-beta.3",
6969
"@coreui/icons-vue": "^1.0.2",
7070
"lodash.clonedeep": "^4.5.0",
7171
"perfect-scrollbar": "^1.4.0",
@@ -83,13 +83,13 @@
8383
"@vue/test-utils": "1.0.0-beta.29",
8484
"babel-eslint": "^10.0.3",
8585
"babel-jest": "^24.9",
86-
"core-js": "^3.4.7",
86+
"core-js": "^3.4.8",
8787
"eslint": "^6.7.2",
8888
"eslint-plugin-vue": "^6.0.1",
8989
"node-sass": "^4.13.0",
9090
"node-sass-magic-importer": "^5.3.2",
9191
"npm-run-all": "^4.1.5",
92-
"rollup": "^1.27.8",
92+
"rollup": "^1.27.10",
9393
"rollup-plugin-babel": "^4.3.3",
9494
"rollup-plugin-commonjs": "^10.1.0",
9595
"rollup-plugin-filesize": "^6.2.1",
@@ -98,7 +98,7 @@
9898
"rollup-plugin-node-resolve": "^5.2.0",
9999
"rollup-plugin-postcss": "^2.0.3",
100100
"rollup-plugin-replace": "^2.2.0",
101-
"rollup-plugin-uglify": "^6.0.3",
101+
"rollup-plugin-uglify": "^6.0.4",
102102
"rollup-plugin-vue": "4.7.2",
103103
"sass-loader": "^8.0.0",
104104
"vue-router": "^3.1.3",

src/components/dropdown/CDropdown.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
import CLink from '../link/CLink'
3636
import Popper from 'popper.js'
3737
import { mixin as clickaway } from 'vue-clickaway2'
38-
import { deepObjectsMerge } from '@coreui/coreui/dist/js/coreui-utilities'
38+
import { deepObjectsMerge } from '@coreui/utils/src/index.js'
3939
4040
export default {
4141
name: 'CDropdown',
@@ -60,7 +60,10 @@ export default {
6060
validator: val => ['', 'sm', 'lg'].includes(val)
6161
},
6262
split: Boolean,
63-
offset: Number,
63+
offset: {
64+
type: Number,
65+
default: 0
66+
},
6467
placement: {
6568
type: String,
6669
validator: position => {
@@ -146,7 +149,7 @@ export default {
146149
return {
147150
placement: this.placement,
148151
modifiers: {
149-
offset: { offset: this.offset || 0 },
152+
offset: { offset: this.offset },
150153
flip: { enabled: this.flip }
151154
}
152155
}

src/components/dropdown/tests/CDropdown.spec.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,11 @@ describe(ComponentName, () => {
119119
toggle()
120120
expect(customWrapper.vm.visible).toBe(false)
121121
})
122+
it('generates popper config properly', () => {
123+
const modifiers = () => customWrapper.vm.computedPopperConfig.modifiers
124+
expect(modifiers().offset.offset).toBe(20)
125+
customWrapper.setProps({ popperConfig: {modifiers:{offset:{ offset:22 }}}})
126+
expect(modifiers().offset.offset).toBe(22)
127+
expect(modifiers().flip.enabled).toBe(false)
128+
})
122129
})

src/components/sidebar/CSidebar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default {
9999
{
100100
'c-sidebar-show': this.open === true,
101101
[`c-sidebar-${this.breakpoint}-show`]: haveResponsiveClass,
102-
'c-sidebar-fixed': this.fixed,
102+
'c-sidebar-fixed': this.fixed && !this.overlaid,
103103
'c-sidebar-right': this.aside,
104104
'c-sidebar-minimized': this.minimize && !this.unfoldable,
105105
'c-sidebar-unfoldable': this.minimize && this.unfoldable,

src/components/widgets/CWidgetDropdown.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<template>
22
<div class="card" :class="`bg-${color} text-white`">
3-
<div class="card-body pb-0">
3+
<div class="card-body pb-0 d-flex justify-content-between">
4+
<div>
5+
<div v-if="header" class="text-value-lg">{{header}}</div>
6+
<div v-if="text">{{text}}</div>
7+
</div>
48
<slot></slot>
5-
<h4 v-if="header" class="mb-0">{{header}}</h4>
6-
<p v-if="text">{{text}}</p>
79
</div>
810
<slot name="footer"></slot>
911
</div>

src/components/widgets/tests/__snapshots__/CWidgetDropdown.spec.js.snap

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@ exports[`CWidgetDropdown matches custom props snapshot 1`] = `
55
class="card bg-info text-white"
66
>
77
<div
8-
class="card-body pb-0"
8+
class="card-body pb-0 d-flex justify-content-between"
99
>
10+
<div>
11+
<div
12+
class="text-value-lg"
13+
>
14+
header
15+
</div>
16+
17+
<div>
18+
text
19+
</div>
20+
</div>
1021
11-
<h4
12-
class="mb-0"
13-
>
14-
header
15-
</h4>
16-
17-
<p>
18-
text
19-
</p>
2022
</div>
2123
2224
</div>
@@ -27,12 +29,14 @@ exports[`CWidgetDropdown matches default props snapshot 1`] = `
2729
class="card bg-undefined text-white"
2830
>
2931
<div
30-
class="card-body pb-0"
32+
class="card-body pb-0 d-flex justify-content-between"
3133
>
34+
<div>
35+
<!---->
36+
37+
<!---->
38+
</div>
3239
33-
<!---->
34-
35-
<!---->
3640
</div>
3741
3842
</div>

0 commit comments

Comments
 (0)