wave-ui 2.36.3 → 2.38.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.
@@ -3431,6 +3431,7 @@ const _sfc_main$t = {
3431
3431
  icon: { type: String, default: "" },
3432
3432
  itemLabelKey: { type: String, default: "label" },
3433
3433
  itemValueKey: { type: String, default: "value" },
3434
+ itemClassKey: { type: String, default: "class" },
3434
3435
  itemColorKey: { type: String, default: "color" },
3435
3436
  itemRouteKey: { type: String, default: "route" },
3436
3437
  itemClass: { type: String },
@@ -3505,7 +3506,7 @@ const _sfc_main$t = {
3505
3506
  "w-list__item-label--selectable": this.isSelectable,
3506
3507
  [item.color]: !!item.color,
3507
3508
  [this.SelectionColor]: item._selected && !item.color && this.SelectionColor,
3508
- [this.itemClass]: !!this.itemClass
3509
+ [item[this.itemClassKey] || this.itemClass]: item[this.itemClassKey] || this.itemClass
3509
3510
  };
3510
3511
  },
3511
3512
  liLabelProps(li, index2, selected) {
@@ -6009,6 +6010,13 @@ const _sfc_main$e = {
6009
6010
  else if (isNaN(index2) || index2 < 0)
6010
6011
  index2 = 0;
6011
6012
  this.activeTabIndex = index2;
6013
+ this.$nextTick(() => {
6014
+ const ref = this.$refs["tabs-bar"];
6015
+ this.activeTabEl = ref && ref.querySelector(`.w-tabs__bar-item:nth-child(${index2 + 1})`);
6016
+ if (this.activeTabEl) {
6017
+ this.activeTabEl.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
6018
+ }
6019
+ });
6012
6020
  },
6013
6021
  getOriginalItem(item) {
6014
6022
  return this.items[item._index];
@@ -6080,6 +6088,19 @@ const _hoisted_19 = {
6080
6088
  };
6081
6089
  const _hoisted_20 = ["colspan"];
6082
6090
  const _hoisted_21 = { key: 0 };
6091
+ const _hoisted_22 = {
6092
+ key: 3,
6093
+ class: "w-table__extra-row"
6094
+ };
6095
+ const _hoisted_23 = {
6096
+ key: 1,
6097
+ class: "w-table__footer"
6098
+ };
6099
+ const _hoisted_24 = {
6100
+ key: 1,
6101
+ class: "w-table__row"
6102
+ };
6103
+ const _hoisted_25 = ["colspan"];
6083
6104
  function render$d(_ctx, _cache, $props, $setup, $data, $options) {
6084
6105
  const _component_w_icon = resolveComponent("w-icon");
6085
6106
  const _component_w_progress = resolveComponent("w-progress");
@@ -6254,8 +6275,21 @@ function render$d(_ctx, _cache, $props, $setup, $data, $options) {
6254
6275
  ], 8, _hoisted_20)
6255
6276
  ])) : createCommentVNode("", true)
6256
6277
  ], 64);
6257
- }), 128))
6258
- ])
6278
+ }), 128)),
6279
+ _ctx.$slots["extra-row"] ? (openBlock(), createElementBlock("div", _hoisted_22, [
6280
+ renderSlot(_ctx.$slots, "extra-row")
6281
+ ])) : createCommentVNode("", true)
6282
+ ]),
6283
+ _ctx.$slots.footer || _ctx.$slots["footer-row"] ? (openBlock(), createElementBlock("tfoot", _hoisted_23, [
6284
+ _ctx.$slots["footer-row"] ? renderSlot(_ctx.$slots, "footer-row", { key: 0 }) : (openBlock(), createElementBlock("tr", _hoisted_24, [
6285
+ createElementVNode("td", {
6286
+ class: "w-table__cell",
6287
+ colspan: $props.headers.length
6288
+ }, [
6289
+ renderSlot(_ctx.$slots, "footer")
6290
+ ], 8, _hoisted_25)
6291
+ ]))
6292
+ ])) : createCommentVNode("", true)
6259
6293
  ], 34)
6260
6294
  ], 2);
6261
6295
  }
@@ -6268,6 +6302,7 @@ const _sfc_main$d = {
6268
6302
  headers: { type: Array, required: true },
6269
6303
  noHeaders: { type: Boolean },
6270
6304
  fixedHeaders: { type: Boolean },
6305
+ fixedFooter: { type: Boolean },
6271
6306
  loading: { type: Boolean },
6272
6307
  sort: { type: [String, Array] },
6273
6308
  expandableRows: {
@@ -6294,7 +6329,15 @@ const _sfc_main$d = {
6294
6329
  mobileBreakpoint: { type: Number, default: 0 },
6295
6330
  resizableColumns: { type: Boolean }
6296
6331
  },
6297
- emits: ["row-select", "row-expand", "row-click", "update:sort", "update:selected-rows", "update:expanded-rows", "column-resize"],
6332
+ emits: [
6333
+ "row-select",
6334
+ "row-expand",
6335
+ "row-click",
6336
+ "update:sort",
6337
+ "update:selected-rows",
6338
+ "update:expanded-rows",
6339
+ "column-resize"
6340
+ ],
6298
6341
  data: () => ({
6299
6342
  activeSorting: [],
6300
6343
  selectedRowsInternal: [],
@@ -6351,7 +6394,8 @@ const _sfc_main$d = {
6351
6394
  "w-table--mobile": this.isMobile || null,
6352
6395
  "w-table--resizable-cols": this.resizableColumns || null,
6353
6396
  "w-table--resizing": this.colResizing.dragging,
6354
- "w-table--fixed-header": this.fixedHeaders
6397
+ "w-table--fixed-header": this.fixedHeaders,
6398
+ "w-table--fixed-footer": this.fixedFooter
6355
6399
  };
6356
6400
  },
6357
6401
  isMobile() {