@carbon/vue 2.23.2-canary.0 → 2.24.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +34 -0
- package/dist/carbon-vue.common.js +1422 -646
- package/dist/carbon-vue.common.js.map +1 -1
- package/dist/carbon-vue.umd.js +1422 -646
- package/dist/carbon-vue.umd.js.map +1 -1
- package/dist/carbon-vue.umd.min.js +6 -6
- package/dist/carbon-vue.umd.min.js.map +1 -1
- package/package.json +5 -5
- package/src/components/cv-content-switcher/cv-content-switcher.vue +1 -1
- package/src/components/cv-data-table/cv-data-table.vue +8 -3
- package/src/components/cv-dropdown/cv-dropdown.vue +18 -8
- package/src/components/cv-tabs/cv-tabs.vue +3 -0
- package/src/components/cv-tooltip/cv-tooltip.vue +1 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/vue",
|
|
3
3
|
"description": "A collection of components for the Carbon Design System built using Vue.js",
|
|
4
|
-
"version": "2.
|
|
4
|
+
"version": "2.24.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -63,15 +63,15 @@
|
|
|
63
63
|
},
|
|
64
64
|
"sideEffects": true,
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@carbon/icons-vue": "10.
|
|
67
|
-
"carbon-components": "10.
|
|
66
|
+
"@carbon/icons-vue": "10.9.3",
|
|
67
|
+
"carbon-components": "10.10.3",
|
|
68
68
|
"flatpickr": "4.6.3",
|
|
69
|
-
"vue": "^2.6.
|
|
69
|
+
"vue": "^2.6.11"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@vue/cli-service": "^3.11.0",
|
|
73
73
|
"eslint-plugin-prettier": "^3.1.1",
|
|
74
74
|
"vue-template-compiler": "^2.6.10"
|
|
75
75
|
},
|
|
76
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "159c58ddca4d549963f2c221763f4e24c76ecca4"
|
|
77
77
|
}
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
>
|
|
20
20
|
<div class="bx--action-list">
|
|
21
21
|
<slot name="batch-actions" />
|
|
22
|
-
<cv-button class="bx--batch-summary__cancel" size="small" @click="deselect">
|
|
23
|
-
batchCancelLabel
|
|
24
|
-
|
|
22
|
+
<cv-button class="bx--batch-summary__cancel" size="small" @click="deselect">
|
|
23
|
+
{{ batchCancelLabel }}
|
|
24
|
+
</cv-button>
|
|
25
25
|
</div>
|
|
26
26
|
<div class="bx--batch-summary">
|
|
27
27
|
<p class="bx--batch-summary__para">
|
|
@@ -355,6 +355,11 @@ export default {
|
|
|
355
355
|
},
|
|
356
356
|
onCvMount(row) {
|
|
357
357
|
this.registeredRows.push(row);
|
|
358
|
+
if (this.registeredRows.filter(item => item.uid === row.uid).length > 1) {
|
|
359
|
+
console.error(
|
|
360
|
+
`CvDataTable: Duplicate ID specified for CvDataTableRow, this may cause issues. {id: ${row.id}, value: ${row.value}}`
|
|
361
|
+
);
|
|
362
|
+
}
|
|
358
363
|
row.$on('cv:expanded-change', this.onCvExpandedChange);
|
|
359
364
|
this.updateSomeExpandingRows();
|
|
360
365
|
},
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
:class="{ 'bx--dropdown__wrapper--inline': inline, 'cv-dropdown': !formItem }"
|
|
23
23
|
:style="wrapperStyleOverride"
|
|
24
24
|
>
|
|
25
|
-
<span v-if="label" :id="`${uid}-label`" class="bx--label" :class="{ 'bx--label--disabled': disabled }">
|
|
26
|
-
label
|
|
27
|
-
|
|
25
|
+
<span v-if="label" :id="`${uid}-label`" class="bx--label" :class="{ 'bx--label--disabled': disabled }">
|
|
26
|
+
{{ label }}
|
|
27
|
+
</span>
|
|
28
28
|
|
|
29
29
|
<div
|
|
30
30
|
v-if="!inline && isHelper"
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
:data-value="internalValue"
|
|
41
41
|
:data-invalid="isInvalid"
|
|
42
42
|
class="bx--dropdown"
|
|
43
|
-
tabindex="0"
|
|
44
43
|
:class="{
|
|
45
44
|
'bx--dropdown--light': theme === 'light',
|
|
46
45
|
'bx--dropdown--up': up,
|
|
@@ -66,7 +65,12 @@
|
|
|
66
65
|
type="button"
|
|
67
66
|
>
|
|
68
67
|
<WarningFilled16 v-if="isInvalid && inline" class="bx--dropdown__invalid-icon" />
|
|
69
|
-
<span
|
|
68
|
+
<span
|
|
69
|
+
class="bx--dropdown-text__inner"
|
|
70
|
+
:id="`${uid}-value`"
|
|
71
|
+
data-test="internalCaption"
|
|
72
|
+
v-html="internalCaption"
|
|
73
|
+
/>
|
|
70
74
|
<span class="bx--dropdown__arrow-container">
|
|
71
75
|
<span class="bx--dropdown__arrow" :style="chevronStyleOveride">
|
|
72
76
|
<chevron-down-glyph />
|
|
@@ -80,6 +84,7 @@
|
|
|
80
84
|
:aria-hidden="!open"
|
|
81
85
|
wh-menu-anchor="left"
|
|
82
86
|
:aria-labelledby="`${uid}-label`"
|
|
87
|
+
ref="droplist"
|
|
83
88
|
>
|
|
84
89
|
<slot></slot>
|
|
85
90
|
</ul>
|
|
@@ -169,7 +174,7 @@ export default {
|
|
|
169
174
|
},
|
|
170
175
|
set(val) {
|
|
171
176
|
const childItems = this.dropdownItems();
|
|
172
|
-
|
|
177
|
+
|
|
173
178
|
for (let index in childItems) {
|
|
174
179
|
let child = childItems[index];
|
|
175
180
|
let selected = child.value === val;
|
|
@@ -282,8 +287,13 @@ export default {
|
|
|
282
287
|
this.$el.focus();
|
|
283
288
|
}
|
|
284
289
|
|
|
285
|
-
|
|
286
|
-
|
|
290
|
+
let target = ev.target;
|
|
291
|
+
while (!target.classList.contains('bx--dropdown-link') && this.$refs.droplist.contains(target)) {
|
|
292
|
+
target = target.parentNode; // try next one up
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
if (target.classList.contains('bx--dropdown-link')) {
|
|
296
|
+
const targetItemEl = target.parentNode;
|
|
287
297
|
const newValue = targetItemEl.getAttribute('data-value');
|
|
288
298
|
|
|
289
299
|
this.internalValue = newValue;
|
|
@@ -142,6 +142,9 @@ export default {
|
|
|
142
142
|
},
|
|
143
143
|
onCvMount(srcComponent) {
|
|
144
144
|
this.tabs.push(srcComponent);
|
|
145
|
+
if (this.tabs.filter(item => item.uid === srcComponent.uid).length > 1) {
|
|
146
|
+
console.error(`CvTabs: Duplicate ID specified for CvTab, this may cause issues. {id: ${srcComponent.id}}}`);
|
|
147
|
+
}
|
|
145
148
|
|
|
146
149
|
this.checkDisabled(srcComponent);
|
|
147
150
|
if (this.selectedId === undefined) {
|
|
@@ -23,7 +23,7 @@ export default {
|
|
|
23
23
|
type: String,
|
|
24
24
|
default: 'top',
|
|
25
25
|
validator(val) {
|
|
26
|
-
const validValues = ['top', 'bottom'];
|
|
26
|
+
const validValues = ['top', 'left', 'right', 'bottom'];
|
|
27
27
|
const valid = validValues.includes(val);
|
|
28
28
|
if (!valid) {
|
|
29
29
|
console.warn(`CVTooltip.direction must be one of the following: ${validValues}`);
|