@carbon/vue 3.0.25 → 3.0.27
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/dist/carbon-vue-3.common.js +488 -283
- package/dist/carbon-vue-3.common.js.map +1 -1
- package/dist/carbon-vue-3.umd.js +484 -279
- package/dist/carbon-vue-3.umd.js.map +1 -1
- package/dist/carbon-vue-3.umd.min.js +3 -3
- package/dist/carbon-vue-3.umd.min.js.map +1 -1
- package/dist/web-types.json +9 -1
- package/package.json +1 -1
- package/src/components/CvDatePicker/CvDatePicker.vue +4 -2
- package/src/components/CvSvg/_CvSvg.vue +1 -1
- package/src/components/CvSvg/__tests__/__snapshots__/CvSvg.spec.js.snap +11 -0
- package/src/components/CvUIShell/CvHeader.vue +3 -3
- package/src/components/CvUIShell/__tests__/PanelFocusTestComponent.vue +47 -0
- package/src/index.js +1 -0
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "@carbon/vue",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.26",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -5595,6 +5595,14 @@
|
|
|
5595
5595
|
"module": "./src/components/CvTooltip/CvTooltip.vue",
|
|
5596
5596
|
"symbol": "default"
|
|
5597
5597
|
}
|
|
5598
|
+
},
|
|
5599
|
+
{
|
|
5600
|
+
"name": "PanelFocusTestComponent",
|
|
5601
|
+
"description": "",
|
|
5602
|
+
"source": {
|
|
5603
|
+
"module": "./src/components/CvUIShell/__tests__/PanelFocusTestComponent.vue",
|
|
5604
|
+
"symbol": "default"
|
|
5605
|
+
}
|
|
5598
5606
|
}
|
|
5599
5607
|
]
|
|
5600
5608
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbon/vue",
|
|
3
3
|
"license": "Apache-2.0",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.27",
|
|
5
5
|
"description": "A collection of components for the Carbon Design System built using Vue.js",
|
|
6
6
|
"packageManager": "yarn@3.2.0",
|
|
7
7
|
"main": "dist/carbon-vue-3.umd.min.js",
|
|
@@ -40,7 +40,8 @@
|
|
|
40
40
|
ref="date"
|
|
41
41
|
type="text"
|
|
42
42
|
data-date-picker-input
|
|
43
|
-
|
|
43
|
+
data-testid="datepicker"
|
|
44
|
+
:aria-description="placeholder"
|
|
44
45
|
:data-invalid="isInvalid || null"
|
|
45
46
|
:disabled="disabled || null"
|
|
46
47
|
:data-date-picker-input-from="`${getKind === 'range'}`"
|
|
@@ -85,7 +86,8 @@
|
|
|
85
86
|
ref="todate"
|
|
86
87
|
type="text"
|
|
87
88
|
data-date-picker-input
|
|
88
|
-
|
|
89
|
+
data-testid="todatepicker"
|
|
90
|
+
:aria-description="placeholder"
|
|
89
91
|
:data-date-picker-input-to="`${kind === 'range'}`"
|
|
90
92
|
:data-invalid="isInvalid || null"
|
|
91
93
|
:disabled="disabled || null"
|
|
@@ -33,7 +33,7 @@ export default {
|
|
|
33
33
|
return h(props.svg);
|
|
34
34
|
} else if (isSvg.value) {
|
|
35
35
|
// an SVG document
|
|
36
|
-
return h('svg', {
|
|
36
|
+
return h('svg', { innerHTML: props.svg });
|
|
37
37
|
} else {
|
|
38
38
|
if (isSymbol.value) {
|
|
39
39
|
return h('svg', {}, [h('use', { attrs: { href: props.svg } })]);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
+
|
|
3
|
+
exports[`Svg with fake icon renders the SVG inline 1`] = `
|
|
4
|
+
<svg>
|
|
5
|
+
<!--?xml version="1.0" encoding="utf-8"?--><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" id="root">
|
|
6
|
+
<g fill-rule="evenodd" id="g">
|
|
7
|
+
<path id="path" d="M7 7H4v2h3v3h2V9h3V7H9V4H7v3zm1 9A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"></path>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
10
|
+
</svg>
|
|
11
|
+
`;
|
|
@@ -192,10 +192,10 @@ function onCvPanelFocusout(payload) {
|
|
|
192
192
|
item => item.ariaControls === srcComponent.id
|
|
193
193
|
);
|
|
194
194
|
if (
|
|
195
|
-
srcComponent.el !== srcEvent.relatedTarget &&
|
|
196
|
-
!srcComponent.el.contains(srcEvent.relatedTarget) &&
|
|
195
|
+
srcComponent.el.value !== srcEvent.relatedTarget &&
|
|
196
|
+
!srcComponent.el.value.contains(srcEvent.relatedTarget) &&
|
|
197
197
|
found &&
|
|
198
|
-
found.el !== srcEvent.relatedTarget
|
|
198
|
+
found.el.value !== srcEvent.relatedTarget
|
|
199
199
|
) {
|
|
200
200
|
onCvPanelControlToggle(found, false);
|
|
201
201
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import CvHeader from '../CvHeader.vue';
|
|
3
|
+
import CvHeaderGlobalAction from '../CvHeaderGlobalAction.vue';
|
|
4
|
+
import CvHeaderPanel from '../CvHeaderPanel.vue';
|
|
5
|
+
import CvSwitcher from '../CvSwitcher.vue';
|
|
6
|
+
import CvSwitcherItem from '../CvSwitcherItem.vue';
|
|
7
|
+
import CvSwitcherItemLink from '../CvSwitcherItemLink.vue';
|
|
8
|
+
</script>
|
|
9
|
+
|
|
10
|
+
<template>
|
|
11
|
+
<cv-header>
|
|
12
|
+
<template #header-global>
|
|
13
|
+
<cv-header-global-action
|
|
14
|
+
data-testid="action-button"
|
|
15
|
+
aria-label="List links"
|
|
16
|
+
aria-controls="links-panel"
|
|
17
|
+
label="Links"
|
|
18
|
+
>
|
|
19
|
+
Links
|
|
20
|
+
</cv-header-global-action>
|
|
21
|
+
</template>
|
|
22
|
+
<template #right-panels>
|
|
23
|
+
<cv-header-panel id="links-panel" data-testid="links-panel">
|
|
24
|
+
<cv-switcher>
|
|
25
|
+
<cv-switcher-item>
|
|
26
|
+
<cv-switcher-item-link
|
|
27
|
+
href="javascript:void(0)"
|
|
28
|
+
data-testid="link-1"
|
|
29
|
+
selected
|
|
30
|
+
>
|
|
31
|
+
Selected app
|
|
32
|
+
</cv-switcher-item-link>
|
|
33
|
+
</cv-switcher-item>
|
|
34
|
+
<cv-switcher-item>
|
|
35
|
+
<cv-switcher-item-link
|
|
36
|
+
href="javascript:void(0)"
|
|
37
|
+
data-testid="link-2"
|
|
38
|
+
>
|
|
39
|
+
Other app
|
|
40
|
+
</cv-switcher-item-link>
|
|
41
|
+
</cv-switcher-item>
|
|
42
|
+
</cv-switcher>
|
|
43
|
+
</cv-header-panel>
|
|
44
|
+
</template>
|
|
45
|
+
</cv-header>
|
|
46
|
+
<input type="text" data-testid="outer-input" />
|
|
47
|
+
</template>
|
package/src/index.js
CHANGED
|
@@ -158,3 +158,4 @@ export { default as CvSkipToContent } from './components/CvUIShell/CvSkipToConte
|
|
|
158
158
|
export { default as CvSwitcher } from './components/CvUIShell/CvSwitcher.vue';
|
|
159
159
|
export { default as CvSwitcherItem } from './components/CvUIShell/CvSwitcherItem.vue';
|
|
160
160
|
export { default as CvSwitcherItemLink } from './components/CvUIShell/CvSwitcherItemLink.vue';
|
|
161
|
+
export { default as PanelFocusTestComponent } from './components/CvUIShell/__tests__/PanelFocusTestComponent.vue';
|