wave-ui 2.37.1 → 2.39.1
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 +60 -7
- 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 +1 -0
- package/src/wave-ui/components/w-notification.vue +7 -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 +12 -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);
|
|
@@ -4153,7 +4157,8 @@ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4153
4157
|
class: normalizeClass(["w-notification", $options.classes]),
|
|
4154
4158
|
style: normalizeStyle($options.styles)
|
|
4155
4159
|
}, [
|
|
4156
|
-
createVNode(_component_w_alert, mergeProps(
|
|
4160
|
+
createVNode(_component_w_alert, mergeProps($options.alertProps, {
|
|
4161
|
+
class: $options.alertClasses,
|
|
4157
4162
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => {
|
|
4158
4163
|
_ctx.$emit("update:modelValue", false);
|
|
4159
4164
|
_ctx.$emit("input", false);
|
|
@@ -4163,7 +4168,7 @@ function render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
4163
4168
|
renderSlot(_ctx.$slots, "default")
|
|
4164
4169
|
]),
|
|
4165
4170
|
_: 3
|
|
4166
|
-
}, 16)
|
|
4171
|
+
}, 16, ["class"])
|
|
4167
4172
|
], 6)) : createCommentVNode("", true)
|
|
4168
4173
|
]),
|
|
4169
4174
|
_: 3
|
|
@@ -4270,6 +4275,11 @@ const _sfc_main$r = {
|
|
|
4270
4275
|
[`w-notification--${this.position.join(" w-notification--")}`]: true
|
|
4271
4276
|
};
|
|
4272
4277
|
},
|
|
4278
|
+
alertClasses() {
|
|
4279
|
+
if (this.bgColor || (this.success || this.info || this.warning || this.error) && this.plain)
|
|
4280
|
+
return null;
|
|
4281
|
+
return "white--bg";
|
|
4282
|
+
},
|
|
4273
4283
|
styles() {
|
|
4274
4284
|
return {
|
|
4275
4285
|
zIndex: this.zIndex || this.zIndex === 0 || null
|
|
@@ -6010,6 +6020,13 @@ const _sfc_main$e = {
|
|
|
6010
6020
|
else if (isNaN(index2) || index2 < 0)
|
|
6011
6021
|
index2 = 0;
|
|
6012
6022
|
this.activeTabIndex = index2;
|
|
6023
|
+
this.$nextTick(() => {
|
|
6024
|
+
const ref = this.$refs["tabs-bar"];
|
|
6025
|
+
this.activeTabEl = ref && ref.querySelector(`.w-tabs__bar-item:nth-child(${index2 + 1})`);
|
|
6026
|
+
if (this.activeTabEl) {
|
|
6027
|
+
this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
6028
|
+
}
|
|
6029
|
+
});
|
|
6013
6030
|
},
|
|
6014
6031
|
getOriginalItem(item) {
|
|
6015
6032
|
return this.items[item._index];
|
|
@@ -6081,6 +6098,19 @@ const _hoisted_19 = {
|
|
|
6081
6098
|
};
|
|
6082
6099
|
const _hoisted_20 = ["colspan"];
|
|
6083
6100
|
const _hoisted_21 = { key: 0 };
|
|
6101
|
+
const _hoisted_22 = {
|
|
6102
|
+
key: 3,
|
|
6103
|
+
class: "w-table__extra-row"
|
|
6104
|
+
};
|
|
6105
|
+
const _hoisted_23 = {
|
|
6106
|
+
key: 1,
|
|
6107
|
+
class: "w-table__footer"
|
|
6108
|
+
};
|
|
6109
|
+
const _hoisted_24 = {
|
|
6110
|
+
key: 1,
|
|
6111
|
+
class: "w-table__row"
|
|
6112
|
+
};
|
|
6113
|
+
const _hoisted_25 = ["colspan"];
|
|
6084
6114
|
function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
6085
6115
|
const _component_w_icon = resolveComponent("w-icon");
|
|
6086
6116
|
const _component_w_progress = resolveComponent("w-progress");
|
|
@@ -6255,8 +6285,21 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
6255
6285
|
], 8, _hoisted_20)
|
|
6256
6286
|
])) : createCommentVNode("", true)
|
|
6257
6287
|
], 64);
|
|
6258
|
-
}), 128))
|
|
6259
|
-
|
|
6288
|
+
}), 128)),
|
|
6289
|
+
_ctx.$slots["extra-row"] ? (openBlock(), createElementBlock("div", _hoisted_22, [
|
|
6290
|
+
renderSlot(_ctx.$slots, "extra-row")
|
|
6291
|
+
])) : createCommentVNode("", true)
|
|
6292
|
+
]),
|
|
6293
|
+
_ctx.$slots.footer || _ctx.$slots["footer-row"] ? (openBlock(), createElementBlock("tfoot", _hoisted_23, [
|
|
6294
|
+
_ctx.$slots["footer-row"] ? renderSlot(_ctx.$slots, "footer-row", { key: 0 }) : (openBlock(), createElementBlock("tr", _hoisted_24, [
|
|
6295
|
+
createElementVNode("td", {
|
|
6296
|
+
class: "w-table__cell",
|
|
6297
|
+
colspan: $props.headers.length
|
|
6298
|
+
}, [
|
|
6299
|
+
renderSlot(_ctx.$slots, "footer")
|
|
6300
|
+
], 8, _hoisted_25)
|
|
6301
|
+
]))
|
|
6302
|
+
])) : createCommentVNode("", true)
|
|
6260
6303
|
], 34)
|
|
6261
6304
|
], 2);
|
|
6262
6305
|
}
|
|
@@ -6269,6 +6312,7 @@ const _sfc_main$d = {
|
|
|
6269
6312
|
headers: { type: Array, required: true },
|
|
6270
6313
|
noHeaders: { type: Boolean },
|
|
6271
6314
|
fixedHeaders: { type: Boolean },
|
|
6315
|
+
fixedFooter: { type: Boolean },
|
|
6272
6316
|
loading: { type: Boolean },
|
|
6273
6317
|
sort: { type: [String, Array] },
|
|
6274
6318
|
expandableRows: {
|
|
@@ -6295,7 +6339,15 @@ const _sfc_main$d = {
|
|
|
6295
6339
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
6296
6340
|
resizableColumns: { type: Boolean }
|
|
6297
6341
|
},
|
|
6298
|
-
emits: [
|
|
6342
|
+
emits: [
|
|
6343
|
+
"row-select",
|
|
6344
|
+
"row-expand",
|
|
6345
|
+
"row-click",
|
|
6346
|
+
"update:sort",
|
|
6347
|
+
"update:selected-rows",
|
|
6348
|
+
"update:expanded-rows",
|
|
6349
|
+
"column-resize"
|
|
6350
|
+
],
|
|
6299
6351
|
data: () => ({
|
|
6300
6352
|
activeSorting: [],
|
|
6301
6353
|
selectedRowsInternal: [],
|
|
@@ -6352,7 +6404,8 @@ const _sfc_main$d = {
|
|
|
6352
6404
|
"w-table--mobile": this.isMobile || null,
|
|
6353
6405
|
"w-table--resizable-cols": this.resizableColumns || null,
|
|
6354
6406
|
"w-table--resizing": this.colResizing.dragging,
|
|
6355
|
-
"w-table--fixed-header": this.fixedHeaders
|
|
6407
|
+
"w-table--fixed-header": this.fixedHeaders,
|
|
6408
|
+
"w-table--fixed-footer": this.fixedFooter
|
|
6356
6409
|
};
|
|
6357
6410
|
},
|
|
6358
6411
|
isMobile() {
|