wave-ui 1.54.1 → 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 +20 -3
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +1 -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 +1 -0
- 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/dist/wave-ui.es.js
CHANGED
|
@@ -5122,6 +5122,13 @@ const __vue2_script$e = {
|
|
|
5122
5122
|
else if (isNaN(index2) || index2 < 0)
|
|
5123
5123
|
index2 = 0;
|
|
5124
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
|
+
});
|
|
5125
5132
|
},
|
|
5126
5133
|
getOriginalItem(item) {
|
|
5127
5134
|
return this.items[item._index];
|
|
@@ -5198,7 +5205,7 @@ var render$d = function() {
|
|
|
5198
5205
|
} } }, [_vm._l(_vm.headers, function(header, j) {
|
|
5199
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()])];
|
|
5200
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()];
|
|
5201
|
-
})]], 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()])]);
|
|
5202
5209
|
};
|
|
5203
5210
|
var staticRenderFns$d = [];
|
|
5204
5211
|
var wTable_vue_vue_type_style_index_0_lang = "";
|
|
@@ -5210,6 +5217,7 @@ const __vue2_script$d = {
|
|
|
5210
5217
|
headers: { type: Array, required: true },
|
|
5211
5218
|
noHeaders: { type: Boolean },
|
|
5212
5219
|
fixedHeaders: { type: Boolean },
|
|
5220
|
+
fixedFooter: { type: Boolean },
|
|
5213
5221
|
loading: { type: Boolean },
|
|
5214
5222
|
sort: { type: [String, Array] },
|
|
5215
5223
|
expandableRows: {
|
|
@@ -5236,7 +5244,15 @@ const __vue2_script$d = {
|
|
|
5236
5244
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
5237
5245
|
resizableColumns: { type: Boolean }
|
|
5238
5246
|
},
|
|
5239
|
-
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
|
+
],
|
|
5240
5256
|
data: () => ({
|
|
5241
5257
|
activeSorting: [],
|
|
5242
5258
|
selectedRowsInternal: [],
|
|
@@ -5293,7 +5309,8 @@ const __vue2_script$d = {
|
|
|
5293
5309
|
"w-table--mobile": this.isMobile || null,
|
|
5294
5310
|
"w-table--resizable-cols": this.resizableColumns || null,
|
|
5295
5311
|
"w-table--resizing": this.colResizing.dragging,
|
|
5296
|
-
"w-table--fixed-header": this.fixedHeaders
|
|
5312
|
+
"w-table--fixed-header": this.fixedHeaders,
|
|
5313
|
+
"w-table--fixed-footer": this.fixedFooter
|
|
5297
5314
|
};
|
|
5298
5315
|
},
|
|
5299
5316
|
isMobile() {
|