wave-ui 1.54.1 → 1.56.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.
@@ -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.appendChild(css);
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);
@@ -3658,7 +3662,7 @@ var render$r = function() {
3658
3662
  var _vm = this;
3659
3663
  var _h = _vm.$createElement;
3660
3664
  var _c = _vm._self._c || _h;
3661
- return _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.show ? _c("div", { staticClass: "w-notification", class: _vm.classes, style: _vm.styles }, [_c("w-alert", _vm._b({ staticClass: "white--bg", on: { "input": function($event) {
3665
+ return _c("transition", { attrs: { "name": _vm.transitionName, "appear": "" } }, [_vm.show ? _c("div", { staticClass: "w-notification", class: _vm.classes, style: _vm.styles }, [_c("w-alert", _vm._b({ class: _vm.alertClasses, on: { "input": function($event) {
3662
3666
  _vm.$emit("update:modelValue", false);
3663
3667
  _vm.$emit("input", false);
3664
3668
  } } }, "w-alert", _vm.alertProps, false), [_vm._t("default")], 2)], 1) : _vm._e()]);
@@ -3765,6 +3769,11 @@ const __vue2_script$r = {
3765
3769
  [`w-notification--${this.position.join(" w-notification--")}`]: true
3766
3770
  };
3767
3771
  },
3772
+ alertClasses() {
3773
+ if (this.bgColor || (this.success || this.info || this.warning || this.error) && this.plain)
3774
+ return null;
3775
+ return "white--bg";
3776
+ },
3768
3777
  styles() {
3769
3778
  return {
3770
3779
  zIndex: this.zIndex || this.zIndex === 0 || null
@@ -5122,6 +5131,13 @@ const __vue2_script$e = {
5122
5131
  else if (isNaN(index2) || index2 < 0)
5123
5132
  index2 = 0;
5124
5133
  this.activeTabIndex = index2;
5134
+ this.$nextTick(() => {
5135
+ const ref = this.$refs["tabs-bar"];
5136
+ this.activeTabEl = ref && ref.querySelector(`.w-tabs__bar-item:nth-child(${index2 + 1})`);
5137
+ if (this.activeTabEl) {
5138
+ this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
5139
+ }
5140
+ });
5125
5141
  },
5126
5142
  getOriginalItem(item) {
5127
5143
  return this.items[item._index];
@@ -5198,7 +5214,7 @@ var render$d = function() {
5198
5214
  } } }, [_vm._l(_vm.headers, function(header, j) {
5199
5215
  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
5216
  })], 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)])]);
5217
+ })], _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
5218
  };
5203
5219
  var staticRenderFns$d = [];
5204
5220
  var wTable_vue_vue_type_style_index_0_lang = "";
@@ -5210,6 +5226,7 @@ const __vue2_script$d = {
5210
5226
  headers: { type: Array, required: true },
5211
5227
  noHeaders: { type: Boolean },
5212
5228
  fixedHeaders: { type: Boolean },
5229
+ fixedFooter: { type: Boolean },
5213
5230
  loading: { type: Boolean },
5214
5231
  sort: { type: [String, Array] },
5215
5232
  expandableRows: {
@@ -5236,7 +5253,15 @@ const __vue2_script$d = {
5236
5253
  mobileBreakpoint: { type: Number, default: 0 },
5237
5254
  resizableColumns: { type: Boolean }
5238
5255
  },
5239
- emits: ["row-select", "row-expand", "row-click", "update:sort", "update:selected-rows", "update:expanded-rows", "column-resize"],
5256
+ emits: [
5257
+ "row-select",
5258
+ "row-expand",
5259
+ "row-click",
5260
+ "update:sort",
5261
+ "update:selected-rows",
5262
+ "update:expanded-rows",
5263
+ "column-resize"
5264
+ ],
5240
5265
  data: () => ({
5241
5266
  activeSorting: [],
5242
5267
  selectedRowsInternal: [],
@@ -5293,7 +5318,8 @@ const __vue2_script$d = {
5293
5318
  "w-table--mobile": this.isMobile || null,
5294
5319
  "w-table--resizable-cols": this.resizableColumns || null,
5295
5320
  "w-table--resizing": this.colResizing.dragging,
5296
- "w-table--fixed-header": this.fixedHeaders
5321
+ "w-table--fixed-header": this.fixedHeaders,
5322
+ "w-table--fixed-footer": this.fixedFooter
5297
5323
  };
5298
5324
  },
5299
5325
  isMobile() {