wave-ui 2.37.0 → 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/dist/wave-ui.cjs.js +1 -1
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.es.js +53 -6
- 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 +2 -0
package/dist/wave-ui.es.js
CHANGED
|
@@ -1059,7 +1059,11 @@ const _sfc_main$M = {
|
|
|
1059
1059
|
const css = document.createElement("style");
|
|
1060
1060
|
css.id = "wave-ui-styles";
|
|
1061
1061
|
css.innerHTML = this.dynamicStyles();
|
|
1062
|
-
document.head.
|
|
1062
|
+
const firstStyle = document.head.querySelectorAll('style,link[rel="stylesheet"]')[0];
|
|
1063
|
+
if (firstStyle)
|
|
1064
|
+
firstStyle.before(css);
|
|
1065
|
+
else
|
|
1066
|
+
document.head.appendChild(css);
|
|
1063
1067
|
}
|
|
1064
1068
|
this.getBreakpoint(window.innerWidth);
|
|
1065
1069
|
window.addEventListener("resize", this.getBreakpoint);
|
|
@@ -3431,7 +3435,7 @@ const _sfc_main$t = {
|
|
|
3431
3435
|
icon: { type: String, default: "" },
|
|
3432
3436
|
itemLabelKey: { type: String, default: "label" },
|
|
3433
3437
|
itemValueKey: { type: String, default: "value" },
|
|
3434
|
-
itemClassKey: { type: String, default: "
|
|
3438
|
+
itemClassKey: { type: String, default: "class" },
|
|
3435
3439
|
itemColorKey: { type: String, default: "color" },
|
|
3436
3440
|
itemRouteKey: { type: String, default: "route" },
|
|
3437
3441
|
itemClass: { type: String },
|
|
@@ -6010,6 +6014,13 @@ const _sfc_main$e = {
|
|
|
6010
6014
|
else if (isNaN(index2) || index2 < 0)
|
|
6011
6015
|
index2 = 0;
|
|
6012
6016
|
this.activeTabIndex = index2;
|
|
6017
|
+
this.$nextTick(() => {
|
|
6018
|
+
const ref = this.$refs["tabs-bar"];
|
|
6019
|
+
this.activeTabEl = ref && ref.querySelector(`.w-tabs__bar-item:nth-child(${index2 + 1})`);
|
|
6020
|
+
if (this.activeTabEl) {
|
|
6021
|
+
this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
6022
|
+
}
|
|
6023
|
+
});
|
|
6013
6024
|
},
|
|
6014
6025
|
getOriginalItem(item) {
|
|
6015
6026
|
return this.items[item._index];
|
|
@@ -6081,6 +6092,19 @@ const _hoisted_19 = {
|
|
|
6081
6092
|
};
|
|
6082
6093
|
const _hoisted_20 = ["colspan"];
|
|
6083
6094
|
const _hoisted_21 = { key: 0 };
|
|
6095
|
+
const _hoisted_22 = {
|
|
6096
|
+
key: 3,
|
|
6097
|
+
class: "w-table__extra-row"
|
|
6098
|
+
};
|
|
6099
|
+
const _hoisted_23 = {
|
|
6100
|
+
key: 1,
|
|
6101
|
+
class: "w-table__footer"
|
|
6102
|
+
};
|
|
6103
|
+
const _hoisted_24 = {
|
|
6104
|
+
key: 1,
|
|
6105
|
+
class: "w-table__row"
|
|
6106
|
+
};
|
|
6107
|
+
const _hoisted_25 = ["colspan"];
|
|
6084
6108
|
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6085
6109
|
const _component_w_icon = resolveComponent("w-icon");
|
|
6086
6110
|
const _component_w_progress = resolveComponent("w-progress");
|
|
@@ -6255,8 +6279,21 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6255
6279
|
], 8, _hoisted_20)
|
|
6256
6280
|
])) : createCommentVNode("", true)
|
|
6257
6281
|
], 64);
|
|
6258
|
-
}), 128))
|
|
6259
|
-
|
|
6282
|
+
}), 128)),
|
|
6283
|
+
_ctx.$slots["extra-row"] ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
6284
|
+
renderSlot(_ctx.$slots, "extra-row")
|
|
6285
|
+
])) : createCommentVNode("", true)
|
|
6286
|
+
]),
|
|
6287
|
+
_ctx.$slots.footer || _ctx.$slots["footer-row"] ? (openBlock(), createElementBlock("tfoot", _hoisted_23, [
|
|
6288
|
+
_ctx.$slots["footer-row"] ? renderSlot(_ctx.$slots, "footer-row", { key: 0 }) : (openBlock(), createElementBlock("tr", _hoisted_24, [
|
|
6289
|
+
createElementVNode("td", {
|
|
6290
|
+
class: "w-table__cell",
|
|
6291
|
+
colspan: $props.headers.length
|
|
6292
|
+
}, [
|
|
6293
|
+
renderSlot(_ctx.$slots, "footer")
|
|
6294
|
+
], 8, _hoisted_25)
|
|
6295
|
+
]))
|
|
6296
|
+
])) : createCommentVNode("", true)
|
|
6260
6297
|
], 34)
|
|
6261
6298
|
], 2);
|
|
6262
6299
|
}
|
|
@@ -6269,6 +6306,7 @@ const _sfc_main$d = {
|
|
|
6269
6306
|
headers: { type: Array, required: true },
|
|
6270
6307
|
noHeaders: { type: Boolean },
|
|
6271
6308
|
fixedHeaders: { type: Boolean },
|
|
6309
|
+
fixedFooter: { type: Boolean },
|
|
6272
6310
|
loading: { type: Boolean },
|
|
6273
6311
|
sort: { type: [String, Array] },
|
|
6274
6312
|
expandableRows: {
|
|
@@ -6295,7 +6333,15 @@ const _sfc_main$d = {
|
|
|
6295
6333
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
6296
6334
|
resizableColumns: { type: Boolean }
|
|
6297
6335
|
},
|
|
6298
|
-
emits: [
|
|
6336
|
+
emits: [
|
|
6337
|
+
"row-select",
|
|
6338
|
+
"row-expand",
|
|
6339
|
+
"row-click",
|
|
6340
|
+
"update:sort",
|
|
6341
|
+
"update:selected-rows",
|
|
6342
|
+
"update:expanded-rows",
|
|
6343
|
+
"column-resize"
|
|
6344
|
+
],
|
|
6299
6345
|
data: () => ({
|
|
6300
6346
|
activeSorting: [],
|
|
6301
6347
|
selectedRowsInternal: [],
|
|
@@ -6352,7 +6398,8 @@ const _sfc_main$d = {
|
|
|
6352
6398
|
"w-table--mobile": this.isMobile || null,
|
|
6353
6399
|
"w-table--resizable-cols": this.resizableColumns || null,
|
|
6354
6400
|
"w-table--resizing": this.colResizing.dragging,
|
|
6355
|
-
"w-table--fixed-header": this.fixedHeaders
|
|
6401
|
+
"w-table--fixed-header": this.fixedHeaders,
|
|
6402
|
+
"w-table--fixed-footer": this.fixedFooter
|
|
6356
6403
|
};
|
|
6357
6404
|
},
|
|
6358
6405
|
isMobile() {
|