File tree Expand file tree Collapse file tree 15 files changed +28
-22
lines changed Expand file tree Collapse file tree 15 files changed +28
-22
lines changed Original file line number Diff line number Diff line change
1
+ const ignoredModules = [ '@coreui/icons' , '@coreui/utils' ] . join ( '|' )
2
+
1
3
module . exports = {
2
4
moduleFileExtensions : [
3
5
'js' ,
@@ -10,7 +12,7 @@ module.exports = {
10
12
'.+\\.(css|styl|less|sass|scss|png|jpg|ttf|woff|woff2)$' : 'jest-transform-stub' ,
11
13
'^.+\\.(js|jsx)?$' : '<rootDir>/node_modules/babel-jest'
12
14
} ,
13
- transformIgnorePatterns : [ ' /node_modules/(?!@coreui/icons)' ] ,
15
+ transformIgnorePatterns : [ `<rootDir> /node_modules/(?!${ ignoredModules } )` ] ,
14
16
moduleNameMapper : {
15
17
'^@/(.*)$' : '<rootDir>/src/$1'
16
18
} ,
Original file line number Diff line number Diff line change 6
6
</template >
7
7
8
8
<script >
9
- import { CChartBar } from ' @coreui/coreui- vue-chartjs'
9
+ import { CChartBar } from ' @coreui/vue-chartjs'
10
10
11
11
export default {
12
12
name: ' CChartBarExample' ,
Original file line number Diff line number Diff line change 7
7
</template >
8
8
9
9
<script >
10
- import { CChartBar } from ' @coreui/coreui-vue-chartjs'
11
- import { getColor , deepObjectsMerge } from ' @coreui/coreui/dist/js/coreui-utilities'
10
+ import { CChartBar } from ' @coreui/vue-chartjs'
11
+ import { getColor , deepObjectsMerge } from ' @coreui/utils/src'
12
+
12
13
export default {
13
14
name: ' CChartBarSimple' ,
14
15
components: { CChartBar },
Original file line number Diff line number Diff line change 6
6
</template >
7
7
8
8
<script >
9
- import { CChartDoughnut } from ' @coreui/coreui- vue-chartjs'
9
+ import { CChartDoughnut } from ' @coreui/vue-chartjs'
10
10
11
11
export default {
12
12
name: ' CChartDoughnutExample' ,
Original file line number Diff line number Diff line change 6
6
</template >
7
7
8
8
<script >
9
- import { CChartLine } from ' @coreui/coreui- vue-chartjs'
9
+ import { CChartLine } from ' @coreui/vue-chartjs'
10
10
11
11
export default {
12
12
name: ' CChartLineExample' ,
Original file line number Diff line number Diff line change 7
7
</template >
8
8
9
9
<script >
10
- import { CChartLine } from ' @coreui/coreui-vue-chartjs'
11
- import { getColor , deepObjectsMerge } from ' @coreui/coreui/dist/js/coreui-utilities'
10
+ import { CChartLine } from ' @coreui/vue-chartjs'
11
+ import { getColor , deepObjectsMerge } from ' @coreui/utils/src'
12
+
12
13
export default {
13
14
name: ' CChartLineSimple' ,
14
15
components: { CChartLine },
@@ -48,19 +49,12 @@ export default {
48
49
data: this .dataPoints ,
49
50
borderColor: getColor (this .borderColor ),
50
51
backgroundColor: getColor (this .backgroundColor ),
51
- pointBackgroundColor: this .pointBackgroundColor ,
52
+ pointBackgroundColor: getColor ( this .pointHoverColor ) ,
52
53
pointHoverBackgroundColor: getColor (this .pointHoverColor ),
53
54
label: this .label
54
55
}
55
56
]
56
57
},
57
- pointBackgroundColor () {
58
- if (this .backgroundColor === ' transparent' ) {
59
- return ' #fff'
60
- } else {
61
- return getColor (this .backgroundColor )
62
- }
63
- },
64
58
pointedOptions () {
65
59
return {
66
60
scales: {
Original file line number Diff line number Diff line change 6
6
</template >
7
7
8
8
<script >
9
- import { CChartPie } from ' @coreui/coreui- vue-chartjs'
9
+ import { CChartPie } from ' @coreui/vue-chartjs'
10
10
11
11
export default {
12
12
name: ' CChartPieExample' ,
Original file line number Diff line number Diff line change 10
10
</template >
11
11
12
12
<script >
13
- import { CChartPolarArea } from ' @coreui/coreui- vue-chartjs'
13
+ import { CChartPolarArea } from ' @coreui/vue-chartjs'
14
14
15
15
export default {
16
16
name: ' CChartPolarAreaExample' ,
Original file line number Diff line number Diff line change 10
10
</template >
11
11
12
12
<script >
13
- import { CChartRadar } from ' @coreui/coreui- vue-chartjs'
13
+ import { CChartRadar } from ' @coreui/vue-chartjs'
14
14
15
15
export default {
16
16
name: ' CChartRadarExample' ,
Original file line number Diff line number Diff line change 56
56
</CCardGroup >
57
57
</div >
58
58
</template >
59
+
59
60
<script >
60
61
import * as Charts from ' ./index.js'
61
-
62
62
export default {
63
63
name: ' Charts' ,
64
64
components: {
Original file line number Diff line number Diff line change 7
7
</template >
8
8
9
9
<script >
10
- import { CChartLine } from ' @coreui/coreui- vue-chartjs'
11
- import { getColor , hexToRgba } from ' @coreui/coreui/dist/js/coreui-utilities '
10
+ import { CChartLine } from ' @coreui/vue-chartjs'
11
+ import { getColor , hexToRgba } from ' @coreui/utils/src '
12
12
13
13
function random (min , max ) {
14
14
return Math .floor (Math .random () * (max - min + 1 ) + min)
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ exports[`TheHeaderDropdownAccnt.vue renders correctly 1`] = `
7
7
class = " c-header-nav-items"
8
8
flip = " true"
9
9
innav = " true"
10
+ offset = " 0"
10
11
placement = " bottom-end"
11
12
togglertext = " Dropdown"
12
13
>
Original file line number Diff line number Diff line change @@ -121,6 +121,7 @@ exports[`Navbars.vue renders correctly 1`] = `
121
121
caret = " true"
122
122
flip = " true"
123
123
innav = " true"
124
+ offset = " 0"
124
125
placement = " bottom-end"
125
126
togglertext = " Lang"
126
127
>
@@ -169,6 +170,7 @@ exports[`Navbars.vue renders correctly 1`] = `
169
170
caret = " true"
170
171
flip = " true"
171
172
innav = " true"
173
+ offset = " 0"
172
174
placement = " bottom-end"
173
175
togglertext = " User"
174
176
>
@@ -358,6 +360,7 @@ exports[`Navbars.vue renders correctly 1`] = `
358
360
caret = " true"
359
361
flip = " true"
360
362
innav = " true"
363
+ offset = " 0"
361
364
placement = " bottom-end"
362
365
togglertext = " Lang"
363
366
>
@@ -406,6 +409,7 @@ exports[`Navbars.vue renders correctly 1`] = `
406
409
caret = " true"
407
410
flip = " true"
408
411
innav = " true"
412
+ offset = " 0"
409
413
placement = " bottom-end"
410
414
togglertext = " User"
411
415
>
Original file line number Diff line number Diff line change @@ -453,6 +453,7 @@ exports[`Navs.vue renders correctly 1`] = `
453
453
flip = " true"
454
454
id = " nav7_ddown"
455
455
nav = " "
456
+ offset = " 0"
456
457
placement = " bottom-end"
457
458
togglertext = " Dropdown"
458
459
>
Original file line number Diff line number Diff line change @@ -381,6 +381,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
381
381
caret = " true"
382
382
color = " success"
383
383
flip = " true"
384
+ offset = " 0"
384
385
placement = " bottom-start"
385
386
right = " "
386
387
text = " Menu"
@@ -438,6 +439,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
438
439
caret = " true"
439
440
color = " info"
440
441
flip = " true"
442
+ offset = " 0"
441
443
placement = " bottom-start"
442
444
right = " "
443
445
split = " true"
@@ -807,6 +809,7 @@ exports[`ButtonGroups.vue renders correctly 1`] = `
807
809
class = " mx-1"
808
810
color = " secondary"
809
811
flip = " true"
812
+ offset = " 0"
810
813
placement = " bottom-end"
811
814
togglertext = " Dropdown"
812
815
>
You can’t perform that action at this time.
0 commit comments