wave-ui 1.53.2 → 1.55.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/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +22 -4
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +2 -1
- package/src/wave-ui/components/w-accordion.vue +1 -0
- package/src/wave-ui/components/w-button.vue +1 -0
- package/src/wave-ui/components/w-checkbox.vue +4 -5
- package/src/wave-ui/components/w-list.vue +3 -1
- package/src/wave-ui/components/w-progress.vue +4 -4
- package/src/wave-ui/components/w-radio.vue +3 -1
- package/src/wave-ui/components/w-rating.vue +5 -1
- package/src/wave-ui/components/w-table.vue +50 -3
- package/src/wave-ui/components/w-tabs/index.vue +10 -0
- package/src/wave-ui/components/w-tag.vue +1 -0
- package/src/wave-ui/scss/_layout.scss +1 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -2967,6 +2967,7 @@ const __vue2_script$t = {
|
|
|
2967
2967
|
icon: { type: String, default: "" },
|
|
2968
2968
|
itemLabelKey: { type: String, default: "label" },
|
|
2969
2969
|
itemValueKey: { type: String, default: "value" },
|
|
2970
|
+
itemClassKey: { type: String, default: "class" },
|
|
2970
2971
|
itemColorKey: { type: String, default: "color" },
|
|
2971
2972
|
itemRouteKey: { type: String, default: "route" },
|
|
2972
2973
|
itemClass: { type: String },
|
|
@@ -3041,7 +3042,7 @@ const __vue2_script$t = {
|
|
|
3041
3042
|
"w-list__item-label--selectable": this.isSelectable,
|
|
3042
3043
|
[item.color]: !!item.color,
|
|
3043
3044
|
[this.SelectionColor]: item._selected && !item.color && this.SelectionColor,
|
|
3044
|
-
[this.itemClass]:
|
|
3045
|
+
[item[this.itemClassKey] || this.itemClass]: item[this.itemClassKey] || this.itemClass
|
|
3045
3046
|
};
|
|
3046
3047
|
},
|
|
3047
3048
|
liLabelProps(li, index2, selected) {
|
|
@@ -5121,6 +5122,13 @@ const __vue2_script$e = {
|
|
|
5121
5122
|
else if (isNaN(index2) || index2 < 0)
|
|
5122
5123
|
index2 = 0;
|
|
5123
5124
|
this.activeTabIndex = index2;
|
|
5125
|
+
this.$nextTick(() => {
|
|
5126
|
+
const ref = this.$refs["tabs-bar"];
|
|
5127
|
+
this.activeTabEl = ref && ref.querySelector(`.w-tabs__bar-item:nth-child(${index2 + 1})`);
|
|
5128
|
+
if (this.activeTabEl) {
|
|
5129
|
+
this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
5130
|
+
}
|
|
5131
|
+
});
|
|
5124
5132
|
},
|
|
5125
5133
|
getOriginalItem(item) {
|
|
5126
5134
|
return this.items[item._index];
|
|
@@ -5197,7 +5205,7 @@ var render$d = function() {
|
|
|
5197
5205
|
} } }, [_vm._l(_vm.headers, function(header, j) {
|
|
5198
5206
|
return [_vm.$scopedSlots["item-cell." + header.key] || _vm.$scopedSlots["item-cell." + (j + 1)] || _vm.$scopedSlots["item-cell"] ? _c("td", { key: j + "-a", staticClass: "w-table__cell", class: "text-" + (header.align || "left"), attrs: { "data-label": header.label } }, [_vm.$scopedSlots["item-cell." + header.key] ? _vm._t("item-cell." + header.key, null, { "header": header, "item": item, "label": item[header.key] || "", "index": i + 1 }) : _vm.$scopedSlots["item-cell." + (j + 1)] ? _vm._t("item-cell." + (j + 1), null, { "header": header, "item": item, "label": item[header.key] || "", "index": i + 1 }) : _vm.$scopedSlots["item-cell"] ? _vm._t("item-cell", null, { "header": header, "item": item, "label": item[header.key] || "", "index": i + 1 }) : _vm._e(), j < _vm.headers.length - 1 && _vm.resizableColumns ? _c("span", { staticClass: "w-table__col-resizer", class: { "w-table__col-resizer--hover": _vm.colResizing.hover === j, "w-table__col-resizer--active": _vm.colResizing.columnIndex === j } }) : _vm._e()], 2) : _c("td", { key: j + "-b", staticClass: "w-table__cell", class: "text-" + (header.align || "left"), attrs: { "data-label": header.label } }, [_c("div", { domProps: { "innerHTML": _vm._s(item[header.key] || "") } }), j < _vm.headers.length - 1 && _vm.resizableColumns ? _c("span", { staticClass: "w-table__col-resizer", class: { "w-table__col-resizer--hover": _vm.colResizing.hover === j, "w-table__col-resizer--active": _vm.colResizing.columnIndex === j } }) : _vm._e()])];
|
|
5199
5207
|
})], 2), _vm.expandedRowsByUid[item._uid] ? _c("tr", { staticClass: "w-table__row w-table__row--expansion" }, [_c("td", { staticClass: "w-table__cell", attrs: { "colspan": _vm.headers.length } }, [_c("w-transition-expand", { attrs: { "y": "" } }, [_vm.expandedRowsByUid[item._uid] ? _c("div", [_vm._t("row-expansion", null, { "item": item, "index": i + 1 })], 2) : _vm._e(), i < _vm.headers.length - 1 && _vm.resizableColumns ? _c("span", { staticClass: "w-table__col-resizer", class: { "w-table__col-resizer--hover": _vm.colResizing.hover === i, "w-table__col-resizer--active": _vm.colResizing.columnIndex === _vm.j } }) : _vm._e()])], 1)]) : _vm._e()];
|
|
5200
|
-
})]], 2)])]);
|
|
5208
|
+
})], _vm.$slots["extra-row"] ? _c("div", { staticClass: "w-table__extra-row" }, [_vm._t("extra-row")], 2) : _vm._e()], 2), _vm.$slots.footer || _vm.$slots["footer-row"] ? _c("tfoot", { staticClass: "w-table__footer" }, [_vm.$slots["footer-row"] ? _vm._t("footer-row") : _c("tr", { staticClass: "w-table__row" }, [_c("td", { staticClass: "w-table__cell", attrs: { "colspan": _vm.headers.length } }, [_vm._t("footer")], 2)])], 2) : _vm._e()])]);
|
|
5201
5209
|
};
|
|
5202
5210
|
var staticRenderFns$d = [];
|
|
5203
5211
|
var wTable_vue_vue_type_style_index_0_lang = "";
|
|
@@ -5209,6 +5217,7 @@ const __vue2_script$d = {
|
|
|
5209
5217
|
headers: { type: Array, required: true },
|
|
5210
5218
|
noHeaders: { type: Boolean },
|
|
5211
5219
|
fixedHeaders: { type: Boolean },
|
|
5220
|
+
fixedFooter: { type: Boolean },
|
|
5212
5221
|
loading: { type: Boolean },
|
|
5213
5222
|
sort: { type: [String, Array] },
|
|
5214
5223
|
expandableRows: {
|
|
@@ -5235,7 +5244,15 @@ const __vue2_script$d = {
|
|
|
5235
5244
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
5236
5245
|
resizableColumns: { type: Boolean }
|
|
5237
5246
|
},
|
|
5238
|
-
emits: [
|
|
5247
|
+
emits: [
|
|
5248
|
+
"row-select",
|
|
5249
|
+
"row-expand",
|
|
5250
|
+
"row-click",
|
|
5251
|
+
"update:sort",
|
|
5252
|
+
"update:selected-rows",
|
|
5253
|
+
"update:expanded-rows",
|
|
5254
|
+
"column-resize"
|
|
5255
|
+
],
|
|
5239
5256
|
data: () => ({
|
|
5240
5257
|
activeSorting: [],
|
|
5241
5258
|
selectedRowsInternal: [],
|
|
@@ -5292,7 +5309,8 @@ const __vue2_script$d = {
|
|
|
5292
5309
|
"w-table--mobile": this.isMobile || null,
|
|
5293
5310
|
"w-table--resizable-cols": this.resizableColumns || null,
|
|
5294
5311
|
"w-table--resizing": this.colResizing.dragging,
|
|
5295
|
-
"w-table--fixed-header": this.fixedHeaders
|
|
5312
|
+
"w-table--fixed-header": this.fixedHeaders,
|
|
5313
|
+
"w-table--fixed-footer": this.fixedFooter
|
|
5296
5314
|
};
|
|
5297
5315
|
},
|
|
5298
5316
|
isMobile() {
|