wave-ui 1.54.0 → 1.56.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 +26 -5
- 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-app.vue +3 -1
- 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 +2 -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/dist/wave-ui.es.js
CHANGED
|
@@ -1056,7 +1056,11 @@ const __vue2_script$M = {
|
|
|
1056
1056
|
const css = document.createElement("style");
|
|
1057
1057
|
css.id = "wave-ui-styles";
|
|
1058
1058
|
css.innerHTML = this.dynamicStyles();
|
|
1059
|
-
document.head.
|
|
1059
|
+
const firstStyle = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
1060
|
+
if (firstStyle)
|
|
1061
|
+
firstStyle.before(css);
|
|
1062
|
+
else
|
|
1063
|
+
document.head.appendChild(css);
|
|
1060
1064
|
}
|
|
1061
1065
|
this.getBreakpoint(window.innerWidth);
|
|
1062
1066
|
window.addEventListener("resize", this.getBreakpoint);
|
|
@@ -2967,7 +2971,7 @@ const __vue2_script$t = {
|
|
|
2967
2971
|
icon: { type: String, default: "" },
|
|
2968
2972
|
itemLabelKey: { type: String, default: "label" },
|
|
2969
2973
|
itemValueKey: { type: String, default: "value" },
|
|
2970
|
-
itemClassKey: { type: String, default: "
|
|
2974
|
+
itemClassKey: { type: String, default: "class" },
|
|
2971
2975
|
itemColorKey: { type: String, default: "color" },
|
|
2972
2976
|
itemRouteKey: { type: String, default: "route" },
|
|
2973
2977
|
itemClass: { type: String },
|
|
@@ -5122,6 +5126,13 @@ const __vue2_script$e = {
|
|
|
5122
5126
|
else if (isNaN(index2) || index2 < 0)
|
|
5123
5127
|
index2 = 0;
|
|
5124
5128
|
this.activeTabIndex = index2;
|
|
5129
|
+
this.$nextTick(() => {
|
|
5130
|
+
const ref = this.$refs["tabs-bar"];
|
|
5131
|
+
this.activeTabEl = ref && ref.querySelector(`.w-tabs__bar-item:nth-child(${index2 + 1})`);
|
|
5132
|
+
if (this.activeTabEl) {
|
|
5133
|
+
this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
5134
|
+
}
|
|
5135
|
+
});
|
|
5125
5136
|
},
|
|
5126
5137
|
getOriginalItem(item) {
|
|
5127
5138
|
return this.items[item._index];
|
|
@@ -5198,7 +5209,7 @@ var render$d = function() {
|
|
|
5198
5209
|
} } }, [_vm._l(_vm.headers, function(header, j) {
|
|
5199
5210
|
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
5211
|
})], 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)])]);
|
|
5212
|
+
})], _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
5213
|
};
|
|
5203
5214
|
var staticRenderFns$d = [];
|
|
5204
5215
|
var wTable_vue_vue_type_style_index_0_lang = "";
|
|
@@ -5210,6 +5221,7 @@ const __vue2_script$d = {
|
|
|
5210
5221
|
headers: { type: Array, required: true },
|
|
5211
5222
|
noHeaders: { type: Boolean },
|
|
5212
5223
|
fixedHeaders: { type: Boolean },
|
|
5224
|
+
fixedFooter: { type: Boolean },
|
|
5213
5225
|
loading: { type: Boolean },
|
|
5214
5226
|
sort: { type: [String, Array] },
|
|
5215
5227
|
expandableRows: {
|
|
@@ -5236,7 +5248,15 @@ const __vue2_script$d = {
|
|
|
5236
5248
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
5237
5249
|
resizableColumns: { type: Boolean }
|
|
5238
5250
|
},
|
|
5239
|
-
emits: [
|
|
5251
|
+
emits: [
|
|
5252
|
+
"row-select",
|
|
5253
|
+
"row-expand",
|
|
5254
|
+
"row-click",
|
|
5255
|
+
"update:sort",
|
|
5256
|
+
"update:selected-rows",
|
|
5257
|
+
"update:expanded-rows",
|
|
5258
|
+
"column-resize"
|
|
5259
|
+
],
|
|
5240
5260
|
data: () => ({
|
|
5241
5261
|
activeSorting: [],
|
|
5242
5262
|
selectedRowsInternal: [],
|
|
@@ -5293,7 +5313,8 @@ const __vue2_script$d = {
|
|
|
5293
5313
|
"w-table--mobile": this.isMobile || null,
|
|
5294
5314
|
"w-table--resizable-cols": this.resizableColumns || null,
|
|
5295
5315
|
"w-table--resizing": this.colResizing.dragging,
|
|
5296
|
-
"w-table--fixed-header": this.fixedHeaders
|
|
5316
|
+
"w-table--fixed-header": this.fixedHeaders,
|
|
5317
|
+
"w-table--fixed-footer": this.fixedFooter
|
|
5297
5318
|
};
|
|
5298
5319
|
},
|
|
5299
5320
|
isMobile() {
|