@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
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.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
},
|
|
65
65
|
"sideEffects": true,
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@carbon/icons-vue": "10.
|
|
67
|
+
"@carbon/icons-vue": "10.56.0",
|
|
68
68
|
"@carbon/telemetry": "^0.1.0",
|
|
69
|
-
"carbon-components": "10.
|
|
70
|
-
"flatpickr": "4.6.
|
|
71
|
-
"vue": "^2.
|
|
69
|
+
"carbon-components": "10.58.0",
|
|
70
|
+
"flatpickr": "4.6.13",
|
|
71
|
+
"vue": "^2.7.10"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@vue/cli-service": "^3.
|
|
75
|
-
"eslint-plugin-prettier": "^3.
|
|
76
|
-
"vue-template-compiler": "^2.
|
|
74
|
+
"@vue/cli-service": "^3.12.1",
|
|
75
|
+
"eslint-plugin-prettier": "^3.4.1",
|
|
76
|
+
"vue-template-compiler": "^2.7.10"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "bc9edcb2243d53639b8e402752df209934fc2476"
|
|
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 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`" />
|
|
@@ -31,55 +31,52 @@
|
|
|
31
31
|
</p>
|
|
32
32
|
</div>
|
|
33
33
|
</div>
|
|
34
|
-
|
|
35
34
|
<div :class="`${carbonPrefix}--toolbar-content`">
|
|
36
35
|
<div
|
|
37
36
|
v-if="$listeners.search"
|
|
38
|
-
:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
37
|
+
:aria-labelledby="`${uid}-search`"
|
|
38
|
+
:class="[
|
|
39
|
+
`${carbonPrefix}--search ${carbonPrefix}--search--xl`,
|
|
40
|
+
{
|
|
41
|
+
[`${carbonPrefix}--toolbar-search-container-active`]: searchActive || searchValue.length > 0,
|
|
42
|
+
[`${carbonPrefix}--toolbar-search-container-persistent`]: !expandingSearch,
|
|
43
|
+
[`${carbonPrefix}--toolbar-search-container-expandable`]: expandingSearch,
|
|
44
|
+
},
|
|
45
|
+
]"
|
|
46
|
+
role="search"
|
|
43
47
|
ref="searchContainer"
|
|
44
48
|
>
|
|
45
|
-
<div
|
|
46
|
-
<
|
|
47
|
-
:class="`${carbonPrefix}--search-magnifier`"
|
|
48
|
-
tabindex="0"
|
|
49
|
-
@click="checkSearchExpand(true)"
|
|
50
|
-
@keydown.enter.prevent="checkSearchExpand(true)"
|
|
51
|
-
@keydown.space.prevent
|
|
52
|
-
@keyup.space.prevent="checkSearchExpand(true)"
|
|
53
|
-
ref="magnifier"
|
|
54
|
-
>
|
|
55
|
-
<Search16 :class="`${carbonPrefix}--toolbar-action__icon`" />
|
|
56
|
-
</div>
|
|
57
|
-
<label :for="uid" :class="`${carbonPrefix}--label`">{{ searchLabel }}</label>
|
|
58
|
-
<input
|
|
59
|
-
:class="`${carbonPrefix}--search-input`"
|
|
60
|
-
type="text"
|
|
61
|
-
:id="uid"
|
|
62
|
-
role="search"
|
|
63
|
-
:placeholder="searchPlaceholder"
|
|
64
|
-
:aria-labelledby="uid"
|
|
65
|
-
ref="search"
|
|
66
|
-
v-model="searchValue"
|
|
67
|
-
@input="onSearch"
|
|
68
|
-
@keydown.esc.prevent="checkSearchExpand(false)"
|
|
69
|
-
/>
|
|
70
|
-
<button
|
|
71
|
-
:class="[
|
|
72
|
-
`${carbonPrefix}--search-close`,
|
|
73
|
-
{ [`${carbonPrefix}--search-close--hidden`]: !clearSearchVisible },
|
|
74
|
-
]"
|
|
75
|
-
:title="searchClearLabel"
|
|
76
|
-
:aria-label="searchClearLabel"
|
|
77
|
-
@click="onClearClick"
|
|
78
|
-
type="button"
|
|
79
|
-
>
|
|
80
|
-
<Close16 />
|
|
81
|
-
</button>
|
|
49
|
+
<div :class="`${carbonPrefix}--search-magnifier`" ref="magnifier">
|
|
50
|
+
<Search16 :class="`${carbonPrefix}--search-magnifier-icon`" />
|
|
82
51
|
</div>
|
|
52
|
+
<label :id="`${uid}-search`" :for="uid" :class="`${carbonPrefix}--label`">{{ searchLabel }}</label>
|
|
53
|
+
<input
|
|
54
|
+
:class="`${carbonPrefix}--search-input`"
|
|
55
|
+
type="text"
|
|
56
|
+
:id="uid"
|
|
57
|
+
role="search"
|
|
58
|
+
:placeholder="searchPlaceholder"
|
|
59
|
+
:aria-labelledby="uid"
|
|
60
|
+
ref="search"
|
|
61
|
+
v-model="searchValue"
|
|
62
|
+
@input="onSearch"
|
|
63
|
+
@click="checkSearchExpand(true)"
|
|
64
|
+
@keydown.esc.prevent="checkSearchExpand(false)"
|
|
65
|
+
@focus="checkSearchExpand(true)"
|
|
66
|
+
@blur="checkSearchExpand(false)"
|
|
67
|
+
/>
|
|
68
|
+
<button
|
|
69
|
+
:class="[
|
|
70
|
+
`${carbonPrefix}--search-close`,
|
|
71
|
+
{ [`${carbonPrefix}--search-close--hidden`]: !clearSearchVisible },
|
|
72
|
+
]"
|
|
73
|
+
:title="searchClearLabel"
|
|
74
|
+
:aria-label="searchClearLabel"
|
|
75
|
+
@click="onClearClick"
|
|
76
|
+
type="button"
|
|
77
|
+
>
|
|
78
|
+
<Close16 />
|
|
79
|
+
</button>
|
|
83
80
|
</div>
|
|
84
81
|
<slot name="actions" />
|
|
85
82
|
</div>
|
|
@@ -196,6 +193,7 @@ import { uidMixin, carbonPrefixMixin } from '../../mixins';
|
|
|
196
193
|
import Search16 from '@carbon/icons-vue/es/search/16';
|
|
197
194
|
import Close16 from '@carbon/icons-vue/es/close/16';
|
|
198
195
|
import ChevronRight16 from '@carbon/icons-vue/es/chevron--right/16';
|
|
196
|
+
import clickout from '../../directives/clickout';
|
|
199
197
|
export default {
|
|
200
198
|
name: 'CvDataTable',
|
|
201
199
|
components: {
|
|
@@ -210,6 +208,7 @@ export default {
|
|
|
210
208
|
Close16,
|
|
211
209
|
ChevronRight16,
|
|
212
210
|
},
|
|
211
|
+
directives: { clickout },
|
|
213
212
|
mixins: [uidMixin, carbonPrefixMixin],
|
|
214
213
|
props: {
|
|
215
214
|
actionBarAriaLabel: { type: String, default: 'Table Action Bar' },
|
|
@@ -363,6 +362,9 @@ export default {
|
|
|
363
362
|
this.hasToolbar = !!(this.$slots.actions || this.$listeners.search || this.$slots['batch-actions']);
|
|
364
363
|
this.isHelper = !!(this.$slots['helper-text'] || (this.helperText && this.helperText.length));
|
|
365
364
|
},
|
|
365
|
+
onClickout(ev) {
|
|
366
|
+
this.checkSearchExpand(false);
|
|
367
|
+
},
|
|
366
368
|
onCvMount(thing) {
|
|
367
369
|
if (thing.$_CvDataTableHeading) {
|
|
368
370
|
this.registeredHeadings = this.$children.filter(item => item.$_CvDataTableHeading);
|
|
@@ -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`,
|