@carbon/vue 2.43.0 → 2.44.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/README.md +24 -2
- package/dist/carbon-vue.common.js +1770 -1403
- package/dist/carbon-vue.common.js.map +1 -1
- package/dist/carbon-vue.umd.js +1770 -1403
- package/dist/carbon-vue.umd.js.map +1 -1
- package/dist/carbon-vue.umd.min.js +3 -3
- package/dist/carbon-vue.umd.min.js.map +1 -1
- package/package.json +9 -9
- package/src/carbon.yml +388 -0
- package/src/components/cv-checkbox/cv-checkbox.vue +0 -1
- package/src/components/cv-code-snippet/_cv-code-snippet-inline.vue +2 -1
- package/src/components/cv-code-snippet/_cv-code-snippet-multiline.vue +2 -1
- package/src/components/cv-code-snippet/_cv-code-snippet-oneline.vue +2 -1
- package/src/components/cv-code-snippet/cv-code-snippet.vue +1 -0
- package/src/components/cv-data-table/cv-data-table.vue +45 -43
- package/src/components/cv-date-picker/plugins/monthSelectPlugin.js +1 -1
- package/src/components/cv-dropdown/cv-dropdown-item.vue +1 -0
- package/src/components/cv-file-uploader/cv-file-uploader.vue +0 -1
- package/src/components/cv-modal/cv-modal.vue +4 -3
- package/src/components/cv-multi-select/cv-multi-select.vue +9 -2
- package/src/components/cv-number-input/cv-number-input.vue +1 -1
- package/src/components/cv-search/cv-search.vue +14 -3
- package/src/components/cv-slider/cv-slider.vue +1 -0
- package/src/components/cv-tabs/cv-tabs.vue +0 -2
- package/src/components/cv-toggle/cv-toggle.vue +0 -1
- package/src/thumbnails/inline-notification.svg +23 -0
- package/src/thumbnails/skeleton-text.svg +15 -0
- package/src/thumbnails/toast-notification.svg +34 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<cv-wrapper :tag-type="formItem ? 'div' : ''" :class="`cv-search ${carbonPrefix}--form-item`">
|
|
3
3
|
<div
|
|
4
|
-
|
|
4
|
+
v-bind="wrapperAttrs"
|
|
5
5
|
:class="[
|
|
6
6
|
`${carbonPrefix}--search`,
|
|
7
7
|
{
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
<Search20 :class="`${carbonPrefix}--search-magnifier-icon`" />
|
|
31
31
|
</div>
|
|
32
32
|
|
|
33
|
-
<label :for="uid" :class="`${carbonPrefix}--label`">{{ label }}</label>
|
|
33
|
+
<label v-show="label" :for="uid" :class="`${carbonPrefix}--label`">{{ label }}</label>
|
|
34
34
|
|
|
35
35
|
<input
|
|
36
36
|
:id="uid"
|
|
@@ -39,7 +39,6 @@
|
|
|
39
39
|
v-model="internalValue"
|
|
40
40
|
v-on="inputListeners"
|
|
41
41
|
type="text"
|
|
42
|
-
role="search"
|
|
43
42
|
ref="input"
|
|
44
43
|
:placeholder="placeholder"
|
|
45
44
|
:aria-labelledby="uid"
|
|
@@ -72,6 +71,7 @@ export default {
|
|
|
72
71
|
components: { Close16, CvWrapper, Search20 },
|
|
73
72
|
inheritAttrs: false,
|
|
74
73
|
props: {
|
|
74
|
+
ariaLabel: String,
|
|
75
75
|
clearAriaLabel: { type: String, default: 'Clear search input' },
|
|
76
76
|
formItem: { type: Boolean, default: true },
|
|
77
77
|
kind: { type: String, default: undefined },
|
|
@@ -115,6 +115,17 @@ export default {
|
|
|
115
115
|
},
|
|
116
116
|
},
|
|
117
117
|
computed: {
|
|
118
|
+
wrapperAttrs() {
|
|
119
|
+
const attrs = {};
|
|
120
|
+
if (this.ariaLabel) {
|
|
121
|
+
attrs['aria-label'] = this.ariaLabel;
|
|
122
|
+
} else if (this.label) {
|
|
123
|
+
attrs['aria-labelledby'] = this.uid;
|
|
124
|
+
} else {
|
|
125
|
+
attrs['aria-label'] = 'Search box';
|
|
126
|
+
}
|
|
127
|
+
return attrs;
|
|
128
|
+
},
|
|
118
129
|
// Bind listeners at the component level to the embedded input element and
|
|
119
130
|
// add our own input listener to service the v-model. See:
|
|
120
131
|
// https://vuejs.org/v2/guide/components-custom-events.html#Customizing-Component-v-model
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="320px" height="180px" viewBox="0 0 320 180" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>inline-notification</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<circle id="path-1" cx="5" cy="5" r="4.375"></circle>
|
|
6
|
+
<polygon id="path-3" points="4.375 6.71875 2.8125 5.15625 3.309375 4.6875 4.375 5.734375 6.690625 3.4375 7.1875 3.93125"></polygon>
|
|
7
|
+
</defs>
|
|
8
|
+
<g id="inline-notification" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9
|
+
<rect id="Rectangle-2-Copy-27" fill="#393939" x="60" y="77" width="200" height="26"></rect>
|
|
10
|
+
<g id="icon/status/checkmark-filled/16" transform="translate(69.000000, 85.000000)">
|
|
11
|
+
<mask id="mask-2" fill="white">
|
|
12
|
+
<use xlink:href="#path-1"></use>
|
|
13
|
+
</mask>
|
|
14
|
+
<use id="icon-color" fill="#24A148" xlink:href="#path-1"></use>
|
|
15
|
+
<mask id="mask-4" fill="white">
|
|
16
|
+
<use xlink:href="#path-3"></use>
|
|
17
|
+
</mask>
|
|
18
|
+
<use id="icon-color" fill="#FFFFFF" xlink:href="#path-3"></use>
|
|
19
|
+
</g>
|
|
20
|
+
<rect id="Path-Copy-2" fill="#24A148" x="60" y="77" width="2" height="26"></rect>
|
|
21
|
+
<rect id="Rectangle-Copy-14" fill="#F4F4F4" x="85" y="88" width="100.088235" height="4"></rect>
|
|
22
|
+
</g>
|
|
23
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="320px" height="180px" viewBox="0 0 320 180" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>skeleton-text</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient x1="-21.9775656%" y1="50%" x2="113.47099%" y2="50%" id="linearGradient-1">
|
|
6
|
+
<stop stop-color="#C6C6C6" stop-opacity="0" offset="0%"></stop>
|
|
7
|
+
<stop stop-color="#C6C6C6" offset="100%"></stop>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
</defs>
|
|
10
|
+
<g id="skeleton-text" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
11
|
+
<rect id="Rectangle" fill="#E0E0E0" x="56" y="82" width="208" height="16"></rect>
|
|
12
|
+
<rect id="Rectangle" fill="#C6C6C6" x="56" y="82" width="156" height="16"></rect>
|
|
13
|
+
<rect id="Rectangle" fill="url(#linearGradient-1)" transform="translate(215.500000, 90.000000) scale(-1, 1) translate(-215.500000, -90.000000) " x="212" y="82" width="7" height="16"></rect>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg width="320px" height="180px" viewBox="0 0 320 180" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
3
|
+
<title>toast-notification</title>
|
|
4
|
+
<defs>
|
|
5
|
+
<circle id="path-1" cx="6.125" cy="6.125" r="6.125"></circle>
|
|
6
|
+
<polygon id="path-3" points="3.00668244 -0.342156092 3.99105744 -0.342156092 3.99105744 7.33596891 3.00668244 7.33596891"></polygon>
|
|
7
|
+
</defs>
|
|
8
|
+
<g id="toast-notification" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
9
|
+
<rect id="Rectangle-2-Copy-27" fill="#393939" x="60" y="56" width="200" height="68"></rect>
|
|
10
|
+
<rect id="Path-Copy-2" fill="#DA1E28" x="60" y="56" width="3" height="68"></rect>
|
|
11
|
+
<g id="Group" transform="translate(73.000000, 68.000000)">
|
|
12
|
+
<g id="Group" transform="translate(7.000000, 7.000000) scale(-1, 1) translate(-7.000000, -7.000000) ">
|
|
13
|
+
<g id="error--filled" transform="translate(0.875000, 0.875000)">
|
|
14
|
+
<g id="icon-2">
|
|
15
|
+
<mask id="mask-2" fill="white">
|
|
16
|
+
<use xlink:href="#path-1"></use>
|
|
17
|
+
</mask>
|
|
18
|
+
<use id="icon-color" fill="#DA1E28" xlink:href="#path-1"></use>
|
|
19
|
+
</g>
|
|
20
|
+
<g id="icon-1" transform="translate(2.625000, 2.625000)">
|
|
21
|
+
<mask id="mask-4" fill="white">
|
|
22
|
+
<use xlink:href="#path-3"></use>
|
|
23
|
+
</mask>
|
|
24
|
+
<use id="icon-color" fill="#000000" transform="translate(3.498870, 3.496906) rotate(-45.000000) translate(-3.498870, -3.496906) " xlink:href="#path-3"></use>
|
|
25
|
+
</g>
|
|
26
|
+
</g>
|
|
27
|
+
<rect id="transparent-rectangle" x="0" y="0" width="14" height="14"></rect>
|
|
28
|
+
</g>
|
|
29
|
+
</g>
|
|
30
|
+
<rect id="Rectangle-Copy-14" fill="#F4F4F4" x="95" y="72" width="71.1191279" height="5"></rect>
|
|
31
|
+
<rect id="Rectangle-Copy-23" fill="#E0E0E0" x="95" y="105" width="93.8444444" height="5"></rect>
|
|
32
|
+
<rect id="Rectangle-Copy-24" fill="#E0E0E0" x="95" y="82" width="123" height="5"></rect>
|
|
33
|
+
</g>
|
|
34
|
+
</svg>
|