@carbon/vue 2.38.2 → 2.39.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/CHANGELOG.md +7 -0
- package/dist/carbon-vue.common.js +142 -131
- package/dist/carbon-vue.common.js.map +1 -1
- package/dist/carbon-vue.umd.js +142 -131
- package/dist/carbon-vue.umd.js.map +1 -1
- package/dist/carbon-vue.umd.min.js +2 -2
- package/dist/carbon-vue.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/cv-data-table/cv-data-table.vue +81 -72
- package/src/components/cv-progress/cv-progress-step.vue +1 -0
- package/src/components/cv-progress/cv-progress.vue +1 -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.39.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.12"
|
|
77
77
|
},
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "f0b00ac6c8bfaf0f92bebd7776fa5c507d86a7e2"
|
|
79
79
|
}
|
|
@@ -85,80 +85,86 @@
|
|
|
85
85
|
</div>
|
|
86
86
|
</section>
|
|
87
87
|
|
|
88
|
-
<table
|
|
89
|
-
:class="
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
v-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
88
|
+
<div :class="`${carbonPrefix}--data-table-content`">
|
|
89
|
+
<cv-wrapper :tagType="stickyHeader ? section : ''" :class="`${carbonPrefix}--data-table_inner-container`">
|
|
90
|
+
<table
|
|
91
|
+
:class="[
|
|
92
|
+
`${carbonPrefix}--data-table`,
|
|
93
|
+
{
|
|
94
|
+
[`${carbonPrefix}--data-table--${rowSize} `]: !(rowSize.length === 0 || rowSize === 'standard'),
|
|
95
|
+
[`${carbonPrefix}--data-table--zebra `]: zebra,
|
|
96
|
+
[`${carbonPrefix}--data-table--sticky-header `]: stickyHeader,
|
|
97
|
+
[`${carbonPrefix}--data-table--no-border `]: borderless,
|
|
98
|
+
[`${carbonPrefix}--skeleton `]: skeleton,
|
|
99
|
+
[`${carbonPrefix}--data-table--sort `]: isSortable,
|
|
100
|
+
[`${carbonPrefix}--data-table--static `]: staticWidth,
|
|
101
|
+
},
|
|
102
|
+
]"
|
|
103
|
+
>
|
|
104
|
+
<thead>
|
|
105
|
+
<tr>
|
|
106
|
+
<th
|
|
107
|
+
v-if="hasExpandables"
|
|
108
|
+
:class="`${carbonPrefix}--table-expand`"
|
|
109
|
+
:data-previous-value="dataExpandAll ? 'collapsed' : 'expanded'"
|
|
110
|
+
>
|
|
111
|
+
<button
|
|
112
|
+
v-if="hasExpandAll"
|
|
113
|
+
:class="`${carbonPrefix}--table-expand__button`"
|
|
114
|
+
@click="toggleExpandAll"
|
|
115
|
+
type="button"
|
|
116
|
+
:aria-label="dataExpandAll ? collapseAllAriaLabel : expandAllAriaLabel"
|
|
117
|
+
>
|
|
118
|
+
<ChevronRight16 :class="`${carbonPrefix}--table-expand__svg`" />
|
|
119
|
+
</button>
|
|
120
|
+
</th>
|
|
121
|
+
<th v-if="hasBatchActions" :class="`${carbonPrefix}--table-column-checkbox`">
|
|
122
|
+
<cv-checkbox
|
|
123
|
+
:form-item="false"
|
|
124
|
+
value="headingCheck"
|
|
125
|
+
v-model="headingChecked"
|
|
126
|
+
@change="onHeadingCheckChange"
|
|
127
|
+
:label="selectAllAriaLabel"
|
|
128
|
+
hideLabel
|
|
129
|
+
/>
|
|
130
|
+
</th>
|
|
131
|
+
<slot name="headings">
|
|
132
|
+
<cv-data-table-heading
|
|
133
|
+
v-for="(column, index) in columns"
|
|
134
|
+
:key="`${index}:${column}`"
|
|
135
|
+
:heading="columnHeading(column)"
|
|
136
|
+
:sortable="isColSortable(column)"
|
|
137
|
+
:order="column.order"
|
|
138
|
+
:heading-style="headingStyle(column)"
|
|
139
|
+
:skeleton="skeleton"
|
|
140
|
+
/>
|
|
141
|
+
</slot>
|
|
142
|
+
<th v-if="hasOverflowMenu"></th>
|
|
143
|
+
</tr>
|
|
144
|
+
</thead>
|
|
141
145
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
146
|
+
<cv-wrapper :tag-type="hasExpandables ? '' : 'tbody'">
|
|
147
|
+
<slot name="data">
|
|
148
|
+
<cv-data-table-row
|
|
149
|
+
v-for="(row, rowIndex) in data"
|
|
150
|
+
:key="`row:${rowIndex}`"
|
|
151
|
+
:value="`${rowIndex}`"
|
|
152
|
+
ref="dataRows"
|
|
153
|
+
:overflow-menu="overflowMenu"
|
|
154
|
+
>
|
|
155
|
+
<cv-data-table-cell
|
|
156
|
+
v-for="(cell, colIndex) in row"
|
|
157
|
+
:key="`cell:${colIndex}:${rowIndex}`"
|
|
158
|
+
:style="dataStyle(colIndex)"
|
|
159
|
+
>
|
|
160
|
+
<cv-wrapper :tag-type="skeleton ? 'span' : ''">{{ cell }}</cv-wrapper>
|
|
161
|
+
</cv-data-table-cell>
|
|
162
|
+
</cv-data-table-row>
|
|
163
|
+
</slot>
|
|
164
|
+
</cv-wrapper>
|
|
165
|
+
</table>
|
|
160
166
|
</cv-wrapper>
|
|
161
|
-
</
|
|
167
|
+
</div>
|
|
162
168
|
</div>
|
|
163
169
|
<cv-pagination
|
|
164
170
|
v-if="pagination"
|
|
@@ -231,11 +237,13 @@ export default {
|
|
|
231
237
|
columns: Array,
|
|
232
238
|
data: Array,
|
|
233
239
|
zebra: Boolean,
|
|
240
|
+
stickyHeader: Boolean,
|
|
234
241
|
rowsSelected: { type: Array, default: () => [] },
|
|
235
242
|
helperText: { type: String, default: undefined },
|
|
236
243
|
expandingSearch: { type: Boolean, default: true },
|
|
237
244
|
skeleton: Boolean,
|
|
238
245
|
hasExpandAll: Boolean,
|
|
246
|
+
staticWidth: Boolean,
|
|
239
247
|
},
|
|
240
248
|
model: {
|
|
241
249
|
prop: 'rows-selected',
|
|
@@ -507,6 +515,7 @@ export default {
|
|
|
507
515
|
} else {
|
|
508
516
|
this.dataExpandAll = false;
|
|
509
517
|
}
|
|
518
|
+
this.$emit('row-expanded', row);
|
|
510
519
|
},
|
|
511
520
|
},
|
|
512
521
|
};
|