@carbon/vue 2.43.1 → 2.44.0
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.common.js +78 -57
- package/dist/carbon-vue.common.js.map +1 -1
- package/dist/carbon-vue.umd.js +78 -57
- 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 +2 -2
- 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-date-picker/plugins/monthSelectPlugin.js +1 -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 -2
- 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
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.44.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"eslint-plugin-prettier": "^3.3.1",
|
|
76
76
|
"vue-template-compiler": "^2.6.14"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "cf32f525094daf7cd1073afb4285dd1b8961bba5"
|
|
79
79
|
}
|
package/src/carbon.yml
ADDED
|
@@ -0,0 +1,388 @@
|
|
|
1
|
+
# yaml-language-server: $schema=https://unpkg.com/@carbon-platform/schemas@v1/carbon-resources.schema.json
|
|
2
|
+
library:
|
|
3
|
+
id: carbon-components-vue
|
|
4
|
+
name: Carbon Components Vue
|
|
5
|
+
description: Vue implementation of Carbon Components.
|
|
6
|
+
externalDocsUrl: https://vue.carbondesignsystem.com/?path=/story/welcome
|
|
7
|
+
inherits: carbon-styles
|
|
8
|
+
packageJsonPath: /../package.json
|
|
9
|
+
assets:
|
|
10
|
+
accordion:
|
|
11
|
+
status: stable
|
|
12
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/accordion/usage
|
|
13
|
+
framework: vue
|
|
14
|
+
demoLinks:
|
|
15
|
+
- type: storybook
|
|
16
|
+
name: Storybook
|
|
17
|
+
action: link
|
|
18
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvaccordion
|
|
19
|
+
aspect-ratio:
|
|
20
|
+
status: stable
|
|
21
|
+
framework: vue
|
|
22
|
+
demoLinks:
|
|
23
|
+
- type: storybook
|
|
24
|
+
name: Storybook
|
|
25
|
+
action: link
|
|
26
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvaspectratio
|
|
27
|
+
breadcrumb:
|
|
28
|
+
status: stable
|
|
29
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/breadcrumb/usage
|
|
30
|
+
framework: vue
|
|
31
|
+
demoLinks:
|
|
32
|
+
- type: storybook
|
|
33
|
+
name: Storybook
|
|
34
|
+
action: link
|
|
35
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvbreadcrumb
|
|
36
|
+
button:
|
|
37
|
+
status: stable
|
|
38
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/button/usage
|
|
39
|
+
framework: vue
|
|
40
|
+
demoLinks:
|
|
41
|
+
- type: storybook
|
|
42
|
+
name: Storybook
|
|
43
|
+
action: link
|
|
44
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvbutton
|
|
45
|
+
checkbox:
|
|
46
|
+
status: stable
|
|
47
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/checkbox/usage
|
|
48
|
+
framework: vue
|
|
49
|
+
demoLinks:
|
|
50
|
+
- type: storybook
|
|
51
|
+
name: Storybook
|
|
52
|
+
action: link
|
|
53
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvcheckbox
|
|
54
|
+
code-snippet:
|
|
55
|
+
status: stable
|
|
56
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/code-snippet/usage
|
|
57
|
+
framework: vue
|
|
58
|
+
demoLinks:
|
|
59
|
+
- type: storybook
|
|
60
|
+
name: Storybook
|
|
61
|
+
action: link
|
|
62
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvcodesnippet
|
|
63
|
+
combo-box:
|
|
64
|
+
status: stable
|
|
65
|
+
framework: vue
|
|
66
|
+
demoLinks:
|
|
67
|
+
- type: storybook
|
|
68
|
+
name: Storybook
|
|
69
|
+
action: link
|
|
70
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvcombobox
|
|
71
|
+
content-switcher:
|
|
72
|
+
status: stable
|
|
73
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/data-table/usage
|
|
74
|
+
framework: vue
|
|
75
|
+
demoLinks:
|
|
76
|
+
- type: storybook
|
|
77
|
+
name: Storybook
|
|
78
|
+
action: link
|
|
79
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvcontentswitcher
|
|
80
|
+
data-table:
|
|
81
|
+
status: stable
|
|
82
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/accordion/usage
|
|
83
|
+
framework: vue
|
|
84
|
+
demoLinks:
|
|
85
|
+
- type: storybook
|
|
86
|
+
name: Storybook
|
|
87
|
+
action: link
|
|
88
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvdatatable
|
|
89
|
+
date-picker:
|
|
90
|
+
status: stable
|
|
91
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/date-picker/usage
|
|
92
|
+
framework: vue
|
|
93
|
+
demoLinks:
|
|
94
|
+
- type: storybook
|
|
95
|
+
name: Storybook
|
|
96
|
+
action: link
|
|
97
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvdatatable
|
|
98
|
+
dropdown:
|
|
99
|
+
status: stable
|
|
100
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/dropdown/usage/
|
|
101
|
+
framework: vue
|
|
102
|
+
demoLinks:
|
|
103
|
+
- type: storybook
|
|
104
|
+
name: Storybook
|
|
105
|
+
action: link
|
|
106
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvdropdown
|
|
107
|
+
file-uploader:
|
|
108
|
+
status: stable
|
|
109
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/file-uploader/usage
|
|
110
|
+
framework: vue
|
|
111
|
+
demoLinks:
|
|
112
|
+
- type: storybook
|
|
113
|
+
name: Storybook
|
|
114
|
+
action: link
|
|
115
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvfileuploader
|
|
116
|
+
form:
|
|
117
|
+
status: stable
|
|
118
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/form/usage
|
|
119
|
+
framework: vue
|
|
120
|
+
demoLinks:
|
|
121
|
+
- type: storybook
|
|
122
|
+
name: Storybook
|
|
123
|
+
action: link
|
|
124
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvform
|
|
125
|
+
grid:
|
|
126
|
+
status: stable
|
|
127
|
+
framework: vue
|
|
128
|
+
demoLinks:
|
|
129
|
+
- type: storybook
|
|
130
|
+
name: Storybook
|
|
131
|
+
action: link
|
|
132
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvgrid
|
|
133
|
+
inline-loading:
|
|
134
|
+
status: stable
|
|
135
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/inline-loading/usage
|
|
136
|
+
framework: vue
|
|
137
|
+
demoLinks:
|
|
138
|
+
- type: storybook
|
|
139
|
+
name: Storybook
|
|
140
|
+
action: link
|
|
141
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvinlineloading
|
|
142
|
+
inline-notification:
|
|
143
|
+
name: Inline notification
|
|
144
|
+
status: stable
|
|
145
|
+
type: component
|
|
146
|
+
platform: web
|
|
147
|
+
framework: vue
|
|
148
|
+
thumbnailPath: './thumbnails/inline-notification.svg'
|
|
149
|
+
demoLinks:
|
|
150
|
+
- type: storybook
|
|
151
|
+
name: Storybook
|
|
152
|
+
action: link
|
|
153
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvinlinenotification
|
|
154
|
+
tags:
|
|
155
|
+
- system-feedback
|
|
156
|
+
link:
|
|
157
|
+
status: stable
|
|
158
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/link/usage
|
|
159
|
+
framework: vue
|
|
160
|
+
demoLinks:
|
|
161
|
+
- type: storybook
|
|
162
|
+
name: Storybook
|
|
163
|
+
action: link
|
|
164
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvlink
|
|
165
|
+
list:
|
|
166
|
+
status: stable
|
|
167
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/list/usage
|
|
168
|
+
framework: vue
|
|
169
|
+
demoLinks:
|
|
170
|
+
- type: storybook
|
|
171
|
+
name: Storybook
|
|
172
|
+
action: link
|
|
173
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvlist
|
|
174
|
+
loading:
|
|
175
|
+
status: stable
|
|
176
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/loading/usage
|
|
177
|
+
framework: vue
|
|
178
|
+
demoLinks:
|
|
179
|
+
- type: storybook
|
|
180
|
+
name: Storybook
|
|
181
|
+
action: link
|
|
182
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvloading
|
|
183
|
+
modal:
|
|
184
|
+
status: stable
|
|
185
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/modal/usage
|
|
186
|
+
framework: vue
|
|
187
|
+
demoLinks:
|
|
188
|
+
- type: storybook
|
|
189
|
+
name: Storybook
|
|
190
|
+
action: link
|
|
191
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvmodal
|
|
192
|
+
multiselect:
|
|
193
|
+
status: stable
|
|
194
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/dropdown/usage/#multiselect
|
|
195
|
+
framework: vue
|
|
196
|
+
demoLinks:
|
|
197
|
+
- type: storybook
|
|
198
|
+
name: Storybook
|
|
199
|
+
action: link
|
|
200
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvmultiselect
|
|
201
|
+
number-input:
|
|
202
|
+
status: stable
|
|
203
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/number-input/usage
|
|
204
|
+
framework: vue
|
|
205
|
+
demoLinks:
|
|
206
|
+
- type: storybook
|
|
207
|
+
name: Storybook
|
|
208
|
+
action: link
|
|
209
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvnumberinput
|
|
210
|
+
overflow-menu:
|
|
211
|
+
status: stable
|
|
212
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/overflow-menu/usage
|
|
213
|
+
framework: vue
|
|
214
|
+
demoLinks:
|
|
215
|
+
- type: storybook
|
|
216
|
+
name: Storybook
|
|
217
|
+
action: link
|
|
218
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvoverflowmenu
|
|
219
|
+
pagination:
|
|
220
|
+
status: stable
|
|
221
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/pagination/usage
|
|
222
|
+
framework: vue
|
|
223
|
+
demoLinks:
|
|
224
|
+
- type: storybook
|
|
225
|
+
name: Storybook
|
|
226
|
+
action: link
|
|
227
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvpagination
|
|
228
|
+
progress-indicator:
|
|
229
|
+
status: stable
|
|
230
|
+
externalDocsUrl: https://carbondesignsystem.com/components/progress-indicator/usage/
|
|
231
|
+
framework: vue
|
|
232
|
+
demoLinks:
|
|
233
|
+
- type: storybook
|
|
234
|
+
name: Storybook
|
|
235
|
+
action: link
|
|
236
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvprogress
|
|
237
|
+
radio-button:
|
|
238
|
+
status: stable
|
|
239
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/radio-button/usage
|
|
240
|
+
framework: vue
|
|
241
|
+
demoLinks:
|
|
242
|
+
- type: storybook
|
|
243
|
+
name: Storybook
|
|
244
|
+
action: link
|
|
245
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvradiobutton
|
|
246
|
+
search:
|
|
247
|
+
status: stable
|
|
248
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/search/usage
|
|
249
|
+
framework: vue
|
|
250
|
+
demoLinks:
|
|
251
|
+
- type: storybook
|
|
252
|
+
name: Storybook
|
|
253
|
+
action: link
|
|
254
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvsearch
|
|
255
|
+
select:
|
|
256
|
+
status: stable
|
|
257
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/select/usage
|
|
258
|
+
framework: vue
|
|
259
|
+
demoLinks:
|
|
260
|
+
- type: storybook
|
|
261
|
+
name: Storybook
|
|
262
|
+
action: link
|
|
263
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvselect
|
|
264
|
+
skeleton-text:
|
|
265
|
+
name: Skeleton text
|
|
266
|
+
status: stable
|
|
267
|
+
type: component
|
|
268
|
+
platform: web
|
|
269
|
+
framework: vue
|
|
270
|
+
thumbnailPath: './thumbnails/skeleton-text.svg'
|
|
271
|
+
demoLinks:
|
|
272
|
+
- type: storybook
|
|
273
|
+
name: Storybook
|
|
274
|
+
action: link
|
|
275
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvskeletontext
|
|
276
|
+
tags:
|
|
277
|
+
- data-display
|
|
278
|
+
slider:
|
|
279
|
+
status: stable
|
|
280
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/slider/usage
|
|
281
|
+
framework: vue
|
|
282
|
+
demoLinks:
|
|
283
|
+
- type: storybook
|
|
284
|
+
name: Storybook
|
|
285
|
+
action: link
|
|
286
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvslider
|
|
287
|
+
structured-list:
|
|
288
|
+
status: stable
|
|
289
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/structured-list/usage
|
|
290
|
+
framework: vue
|
|
291
|
+
demoLinks:
|
|
292
|
+
- type: storybook
|
|
293
|
+
name: Storybook
|
|
294
|
+
action: link
|
|
295
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvstructuredlist
|
|
296
|
+
tabs:
|
|
297
|
+
status: stable
|
|
298
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/tabs/usage
|
|
299
|
+
framework: vue
|
|
300
|
+
demoLinks:
|
|
301
|
+
- type: storybook
|
|
302
|
+
name: Storybook
|
|
303
|
+
action: link
|
|
304
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtabs
|
|
305
|
+
tag:
|
|
306
|
+
status: stable
|
|
307
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/tag/usage
|
|
308
|
+
framework: vue
|
|
309
|
+
demoLinks:
|
|
310
|
+
- type: storybook
|
|
311
|
+
name: Storybook
|
|
312
|
+
action: link
|
|
313
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtag
|
|
314
|
+
text-area:
|
|
315
|
+
status: stable
|
|
316
|
+
framework: vue
|
|
317
|
+
demoLinks:
|
|
318
|
+
- type: storybook
|
|
319
|
+
name: Storybook
|
|
320
|
+
action: link
|
|
321
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtextarea
|
|
322
|
+
text-input:
|
|
323
|
+
status: stable
|
|
324
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/text-input/usage
|
|
325
|
+
framework: vue
|
|
326
|
+
demoLinks:
|
|
327
|
+
- type: storybook
|
|
328
|
+
name: Storybook
|
|
329
|
+
action: link
|
|
330
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtextinput
|
|
331
|
+
tile:
|
|
332
|
+
status: stable
|
|
333
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/tile/usage
|
|
334
|
+
framework: vue
|
|
335
|
+
demoLinks:
|
|
336
|
+
- type: storybook
|
|
337
|
+
name: Storybook
|
|
338
|
+
action: link
|
|
339
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtile
|
|
340
|
+
time-picker:
|
|
341
|
+
status: stable
|
|
342
|
+
framework: vue
|
|
343
|
+
demoLinks:
|
|
344
|
+
- type: storybook
|
|
345
|
+
name: Storybook
|
|
346
|
+
action: link
|
|
347
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtimepicker
|
|
348
|
+
toast-notification:
|
|
349
|
+
name: Toast notification
|
|
350
|
+
status: stable
|
|
351
|
+
type: component
|
|
352
|
+
platform: web
|
|
353
|
+
framework: vue
|
|
354
|
+
thumbnailPath: './thumbnails/toast-notification.svg'
|
|
355
|
+
demoLinks:
|
|
356
|
+
- type: storybook
|
|
357
|
+
name: Storybook
|
|
358
|
+
action: link
|
|
359
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtoastnotification
|
|
360
|
+
tags:
|
|
361
|
+
- system-feedback
|
|
362
|
+
toggle:
|
|
363
|
+
status: stable
|
|
364
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/toggle/usage
|
|
365
|
+
framework: vue
|
|
366
|
+
demoLinks:
|
|
367
|
+
- type: storybook
|
|
368
|
+
name: Storybook
|
|
369
|
+
action: link
|
|
370
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtoggle
|
|
371
|
+
tooltip:
|
|
372
|
+
status: stable
|
|
373
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/tooltip/usage
|
|
374
|
+
framework: vue
|
|
375
|
+
demoLinks:
|
|
376
|
+
- type: storybook
|
|
377
|
+
name: Storybook
|
|
378
|
+
action: link
|
|
379
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvtooltip-interactive-tootlip
|
|
380
|
+
ui-shell-header:
|
|
381
|
+
status: stable
|
|
382
|
+
externalDocsUrl: https://www.carbondesignsystem.com/components/UI-shell-header/usage
|
|
383
|
+
framework: vue
|
|
384
|
+
demoLinks:
|
|
385
|
+
- type: storybook
|
|
386
|
+
name: Storybook
|
|
387
|
+
action: link
|
|
388
|
+
url: https://vue.carbondesignsystem.com/?path=/story/components-cvuishell
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
v-if="!hideCopyButton"
|
|
16
16
|
:disabled="disabled"
|
|
17
17
|
:feedback="copyFeedback"
|
|
18
|
-
:
|
|
18
|
+
:title="feedbackAriaLabel"
|
|
19
|
+
:ariaLabel="feedbackAriaLabel"
|
|
19
20
|
@click="$emit('copy-code')"
|
|
20
21
|
>
|
|
21
22
|
<Copy16 :class="`${carbonPrefix}--snippet__icon`" />
|
|
@@ -16,7 +16,8 @@
|
|
|
16
16
|
v-if="!hideCopyButton"
|
|
17
17
|
:disabled="disabled"
|
|
18
18
|
:feedback="copyFeedback"
|
|
19
|
-
:
|
|
19
|
+
:ariaLabel="feedbackAriaLabel"
|
|
20
|
+
:title="feedbackAriaLabel"
|
|
20
21
|
@click="$emit('copy-code')"
|
|
21
22
|
>
|
|
22
23
|
<Copy16 :class="`${carbonPrefix}--snippet__icon`" />
|
|
@@ -21,7 +21,7 @@ const monthToStr = (monthNumber, shorthand, locale) => locale.months[shorthand ?
|
|
|
21
21
|
*/
|
|
22
22
|
export default config => fp => {
|
|
23
23
|
const setupElements = () => {
|
|
24
|
-
if (!fp.monthElements) {
|
|
24
|
+
if (!fp.monthElements || fp.monthElements.length < 1) {
|
|
25
25
|
return;
|
|
26
26
|
}
|
|
27
27
|
fp.monthElements.forEach(elem => {
|
|
@@ -149,15 +149,16 @@ export default {
|
|
|
149
149
|
computed: {
|
|
150
150
|
dialogAttrs() {
|
|
151
151
|
const passive = !this.hasFooter;
|
|
152
|
-
const attrs = {
|
|
153
|
-
|
|
152
|
+
const attrs = {};
|
|
153
|
+
attrs['aria-label'] = this.$slots.title[0].text;
|
|
154
154
|
if (this.alert) {
|
|
155
155
|
if (passive) {
|
|
156
156
|
attrs.role = 'alert';
|
|
157
157
|
} else {
|
|
158
158
|
attrs.role = 'alertdialog';
|
|
159
|
-
attrs['aria-describedBy'] = this.uid;
|
|
160
159
|
}
|
|
160
|
+
} else {
|
|
161
|
+
attrs.role = 'dialog';
|
|
161
162
|
}
|
|
162
163
|
return attrs;
|
|
163
164
|
},
|
|
@@ -13,12 +13,13 @@
|
|
|
13
13
|
>
|
|
14
14
|
<label
|
|
15
15
|
v-if="title"
|
|
16
|
-
:
|
|
16
|
+
:id="`${uid}-label`"
|
|
17
17
|
:class="[`${carbonPrefix}--label`, { [`${carbonPrefix}--label--disabled`]: disabled }]"
|
|
18
18
|
>{{ title }}</label
|
|
19
19
|
>
|
|
20
20
|
|
|
21
21
|
<div
|
|
22
|
+
:aria-labelledby="`${uid}-label`"
|
|
22
23
|
role="listbox"
|
|
23
24
|
tabindex="-1"
|
|
24
25
|
:class="[
|
|
@@ -109,7 +110,13 @@
|
|
|
109
110
|
</div>
|
|
110
111
|
</div>
|
|
111
112
|
|
|
112
|
-
<div
|
|
113
|
+
<div
|
|
114
|
+
:id="uid"
|
|
115
|
+
:aria-labelledby="`${uid}-label`"
|
|
116
|
+
:class="`${carbonPrefix}--list-box__menu`"
|
|
117
|
+
role="listbox"
|
|
118
|
+
ref="list"
|
|
119
|
+
>
|
|
113
120
|
<div
|
|
114
121
|
v-for="(item, index) in dataOptions"
|
|
115
122
|
:key="`multi-select-${index}`"
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
]"
|
|
13
13
|
:data-invalid="isInvalid"
|
|
14
14
|
>
|
|
15
|
-
<label :for="uid" :class="`${carbonPrefix}--label`">{{ label }}</label>
|
|
15
|
+
<label v-show="label" :for="uid" :class="`${carbonPrefix}--label`">{{ label }}</label>
|
|
16
16
|
<div
|
|
17
17
|
:class="[
|
|
18
18
|
`${carbonPrefix}--number__input-wrapper`,
|
|
@@ -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"
|
|
@@ -71,6 +71,7 @@ export default {
|
|
|
71
71
|
components: { Close16, CvWrapper, Search20 },
|
|
72
72
|
inheritAttrs: false,
|
|
73
73
|
props: {
|
|
74
|
+
ariaLabel: String,
|
|
74
75
|
clearAriaLabel: { type: String, default: 'Clear search input' },
|
|
75
76
|
formItem: { type: Boolean, default: true },
|
|
76
77
|
kind: { type: String, default: undefined },
|
|
@@ -114,6 +115,17 @@ export default {
|
|
|
114
115
|
},
|
|
115
116
|
},
|
|
116
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
|
+
},
|
|
117
129
|
// Bind listeners at the component level to the embedded input element and
|
|
118
130
|
// add our own input listener to service the v-model. See:
|
|
119
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>
|