wave-ui 1.59.0 → 1.60.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 +14 -11
- package/dist/wave-ui.umd.js +1 -1
- package/package.json +2 -2
- package/src/wave-ui/components/w-checkboxes.vue +2 -2
- package/src/wave-ui/components/w-form-element.vue +1 -1
- package/src/wave-ui/components/w-radios.vue +2 -2
- package/src/wave-ui/components/w-table.vue +25 -7
- package/src/wave-ui/components/w-timeline.vue +1 -1
package/dist/wave-ui.es.js
CHANGED
|
@@ -1690,7 +1690,7 @@ var render$G = function() {
|
|
|
1690
1690
|
return _vm.toggleCheck(item, $event);
|
|
1691
1691
|
}, "focus": function($event) {
|
|
1692
1692
|
return _vm.$emit("focus", $event);
|
|
1693
|
-
} } }, "w-checkbox", { label: item.label, color: item.color, labelOnLeft: _vm.labelOnLeft, labelColor: _vm.labelColor, round: _vm.round }, false), [_vm.$
|
|
1693
|
+
} } }, "w-checkbox", { label: item.label, color: item.color, labelOnLeft: _vm.labelOnLeft, labelColor: _vm.labelColor, round: _vm.round }, false), [_vm.$scopedSlots["item." + (i + 1)] || _vm.$scopedSlots.item ? _vm._t(_vm.$scopedSlots["item." + (i + 1)] ? "item." + (i + 1) : "item", null, { "item": _vm.getOriginalItem(item), "checked": !!item._isChecked, "index": i + 1 }) : _vm._e()], 2);
|
|
1694
1694
|
}), 1);
|
|
1695
1695
|
};
|
|
1696
1696
|
var staticRenderFns$G = [];
|
|
@@ -2483,7 +2483,7 @@ var render$y = function() {
|
|
|
2483
2483
|
var _vm = this;
|
|
2484
2484
|
var _h = _vm.$createElement;
|
|
2485
2485
|
var _c = _vm._self._c || _h;
|
|
2486
|
-
return _c("div", { class: _vm.classes }, [_c("div", { staticClass: "w-flex grow", class: [_vm.column ? "column" : "align-center", _vm.wrap ? "wrap" : ""] }, [_vm._t("default")], 2), _c("w-transition-expand", { attrs: { "y": "" } }, [_vm.Validation.message ? [_vm.$
|
|
2486
|
+
return _c("div", { class: _vm.classes }, [_c("div", { staticClass: "w-flex grow", class: [_vm.column ? "column" : "align-center", _vm.wrap ? "wrap" : ""] }, [_vm._t("default")], 2), _c("w-transition-expand", { attrs: { "y": "" } }, [_vm.Validation.message ? [_vm.$scopedSlots["error-message"] ? _c("div", { staticClass: "w-form-el__error", class: _vm.formProps.validationColor }, [_vm._t("error-message", null, { "message": _vm.Validation.message })], 2) : _c("div", { staticClass: "w-form-el__error error", class: _vm.formProps.validationColor, domProps: { "innerHTML": _vm._s(_vm.Validation.message) } })] : _vm._e()], 2)], 1);
|
|
2487
2487
|
};
|
|
2488
2488
|
var staticRenderFns$y = [];
|
|
2489
2489
|
var wFormElement_vue_vue_type_style_index_0_lang = "";
|
|
@@ -4478,7 +4478,7 @@ var render$m = function() {
|
|
|
4478
4478
|
return _vm.onInput(item);
|
|
4479
4479
|
}, "focus": function($event) {
|
|
4480
4480
|
return _vm.$emit("focus", $event);
|
|
4481
|
-
} } }, "w-radio", { label: item.label, color: item.color, labelOnLeft: _vm.labelOnLeft, labelColor: _vm.labelColor }, false), [_vm.$
|
|
4481
|
+
} } }, "w-radio", { label: item.label, color: item.color, labelOnLeft: _vm.labelOnLeft, labelColor: _vm.labelColor }, false), [_vm.$scopedSlots["item." + (i + 1)] || _vm.$scopedSlots.item ? _vm._t(_vm.$scopedSlots["item." + (i + 1)] ? "item." + (i + 1) : "item", null, { "item": _vm.getOriginalItem(item), "index": i + 1, "checked": item.value === _vm.value }) : _vm._e()], 2);
|
|
4482
4482
|
}), 1);
|
|
4483
4483
|
};
|
|
4484
4484
|
var staticRenderFns$m = [];
|
|
@@ -5634,11 +5634,11 @@ var render$d = function() {
|
|
|
5634
5634
|
}, { "header": header, "label": header.label, "index": i + 1 }) : _c("span", { domProps: { "innerHTML": _vm._s(header.label || "") } })] : _vm._e(), header.sortable !== false && header.align !== "right" ? _c("w-icon", { staticClass: "w-table__header-sort", class: _vm.headerSortClasses(header) }, [_vm._v("wi-arrow-down")]) : _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 === i }, on: { "click": function($event) {
|
|
5635
5635
|
$event.stopPropagation();
|
|
5636
5636
|
} } }) : _vm._e()], 2);
|
|
5637
|
-
}), 0)]) : _vm._e(), _c("tbody", [_vm.loading ? _c("tr", { staticClass: "w-table__progress-bar" }, [_c("td", { attrs: { "colspan": _vm.headers.length } }, [_c("w-progress", { attrs: { "tile": "" } }), _c("div", { staticClass: "w-table__loading-text" }, [_vm._t("loading", function() {
|
|
5637
|
+
}), 0), _c("w-transition-fade", [_vm.loading === "header" ? _c("tr", { staticClass: "w-table__progress-bar" }, [_c("td", { attrs: { "colspan": _vm.headers.length } }, [_c("w-progress", { attrs: { "tile": "" } })], 1)]) : _vm._e()])], 1) : _vm._e(), _c("tbody", [_vm.loading === true ? _c("tr", { staticClass: "w-table__progress-bar" }, [_c("td", { attrs: { "colspan": _vm.headers.length } }, [_c("w-progress", { attrs: { "tile": "" } }), _c("div", { staticClass: "w-table__loading-text" }, [_vm._t("loading", function() {
|
|
5638
5638
|
return [_vm._v("Loading...")];
|
|
5639
5639
|
})], 2)], 1)]) : !_vm.tableItems.length ? _c("tr", { staticClass: "no-data" }, [_c("td", { staticClass: "w-table__cell text-center", attrs: { "colspan": _vm.headers.length } }, [_vm._t("no-data", function() {
|
|
5640
5640
|
return [_vm._v("No data to show.")];
|
|
5641
|
-
})], 2)]) : [_vm._l(_vm.sortedItems, function(item, i) {
|
|
5641
|
+
})], 2)]) : _vm._e(), _vm.tableItems.length && _vm.loading !== true ? [_vm._l(_vm.sortedItems, function(item, i) {
|
|
5642
5642
|
return [_vm.$scopedSlots["item"] ? _vm._t("item", null, { "item": item, "index": i + 1, "select": function() {
|
|
5643
5643
|
return _vm.doSelectRow(item, i);
|
|
5644
5644
|
}, "classes": { "w-table__row": true, "w-table__row--selected": _vm.selectedRowsByUid[item._uid] !== void 0, "w-table__row--expanded": _vm.expandedRowsByUid[item._uid] !== void 0 } }) : _c("tr", { key: i, staticClass: "w-table__row", class: { "w-table__row--selected": _vm.selectedRowsByUid[item._uid] !== void 0, "w-table__row--expanded": _vm.expandedRowsByUid[item._uid] !== void 0 }, on: { "click": function($event) {
|
|
@@ -5647,7 +5647,7 @@ var render$d = function() {
|
|
|
5647
5647
|
var _obj, _obj$1;
|
|
5648
5648
|
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: (_obj = {}, _obj["text-" + (header.align || "left")] = true, _obj["w-table__cell--sticky"] = header.sticky, _obj), 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: (_obj$1 = {}, _obj$1["text-" + (header.align || "left")] = true, _obj$1["w-table__cell--sticky"] = header.sticky, _obj$1), 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()])];
|
|
5649
5649
|
})], 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()];
|
|
5650
|
-
})], _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()])]);
|
|
5650
|
+
})] : _vm._e(), _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()])]);
|
|
5651
5651
|
};
|
|
5652
5652
|
var staticRenderFns$d = [];
|
|
5653
5653
|
var wTable_vue_vue_type_style_index_0_lang = "";
|
|
@@ -5661,7 +5661,7 @@ const __vue2_script$d = {
|
|
|
5661
5661
|
fixedLayout: { type: Boolean },
|
|
5662
5662
|
fixedHeaders: { type: Boolean },
|
|
5663
5663
|
fixedFooter: { type: Boolean },
|
|
5664
|
-
loading: { type: Boolean },
|
|
5664
|
+
loading: { type: [Boolean, String] },
|
|
5665
5665
|
sort: { type: [String, Array] },
|
|
5666
5666
|
expandableRows: {
|
|
5667
5667
|
validator: (value) => {
|
|
@@ -5688,6 +5688,7 @@ const __vue2_script$d = {
|
|
|
5688
5688
|
forceSelection: { type: Boolean },
|
|
5689
5689
|
uidKey: { type: String, default: "id" },
|
|
5690
5690
|
filter: { type: Function },
|
|
5691
|
+
sortFunction: { type: Function },
|
|
5691
5692
|
mobileBreakpoint: { type: Number, default: 0 },
|
|
5692
5693
|
resizableColumns: { type: Boolean }
|
|
5693
5694
|
},
|
|
@@ -5726,7 +5727,7 @@ const __vue2_script$d = {
|
|
|
5726
5727
|
return typeof this.filter === "function" ? this.tableItems.filter(this.filter) : this.tableItems;
|
|
5727
5728
|
},
|
|
5728
5729
|
sortedItems() {
|
|
5729
|
-
if (!this.activeSorting.length)
|
|
5730
|
+
if (!this.activeSorting.length || this.sortFunction)
|
|
5730
5731
|
return this.filteredItems;
|
|
5731
5732
|
const sortKey1 = this.activeSorting[0].replace(/^[+-]/, "");
|
|
5732
5733
|
const sortDesc1 = this.activeSorting[0][0] === "-";
|
|
@@ -5792,14 +5793,16 @@ const __vue2_script$d = {
|
|
|
5792
5793
|
`m${header.align === "right" ? "r" : "l"}1`
|
|
5793
5794
|
];
|
|
5794
5795
|
},
|
|
5795
|
-
sortTable(header) {
|
|
5796
|
+
async sortTable(header) {
|
|
5796
5797
|
const alreadySortingThis = this.activeSortingKeys[header.key];
|
|
5797
5798
|
if (alreadySortingThis && this.activeSortingKeys[header.key] === "-") {
|
|
5798
5799
|
this.activeSorting = [];
|
|
5799
|
-
return this.$emit("update:sort");
|
|
5800
5800
|
} else
|
|
5801
5801
|
this.$set(this.activeSorting, 0, (alreadySortingThis ? "-" : "+") + header.key);
|
|
5802
5802
|
this.$emit("update:sort", this.activeSorting);
|
|
5803
|
+
if (typeof this.sortFunction === "function") {
|
|
5804
|
+
await this.sortFunction(this.activeSorting);
|
|
5805
|
+
}
|
|
5803
5806
|
},
|
|
5804
5807
|
doSelectRow(item, index2) {
|
|
5805
5808
|
const expandable = this.expandableRows === "" ? true : this.expandableRows;
|
|
@@ -6243,7 +6246,7 @@ var render$a = function() {
|
|
|
6243
6246
|
var _c = _vm._self._c || _h;
|
|
6244
6247
|
return _c("ul", { staticClass: "w-timeline" }, _vm._l(_vm.items, function(item, i) {
|
|
6245
6248
|
var _obj;
|
|
6246
|
-
return _c("li", { key: i, staticClass: "w-timeline-item" }, [_c(item[_vm.itemIconKey] || _vm.icon ? "w-icon" : "div", { tag: "component", staticClass: "w-timeline-item__bullet", class: (_obj = {}, _obj[item[_vm.itemColorKey] || _vm.color] = item[_vm.itemColorKey] || _vm.color, _obj) }, [_vm._v(_vm._s(item[_vm.itemIconKey] || _vm.icon))]), !_vm.$
|
|
6249
|
+
return _c("li", { key: i, staticClass: "w-timeline-item" }, [_c(item[_vm.itemIconKey] || _vm.icon ? "w-icon" : "div", { tag: "component", staticClass: "w-timeline-item__bullet", class: (_obj = {}, _obj[item[_vm.itemColorKey] || _vm.color] = item[_vm.itemColorKey] || _vm.color, _obj) }, [_vm._v(_vm._s(item[_vm.itemIconKey] || _vm.icon))]), !_vm.$scopedSlots["item." + (i + 1)] ? _vm._t("item", function() {
|
|
6247
6250
|
var _obj2;
|
|
6248
6251
|
return [_c("div", { staticClass: "w-timeline-item__title", class: (_obj2 = {}, _obj2[item[_vm.itemColorKey] || _vm.color] = item[_vm.itemColorKey] || _vm.color, _obj2), domProps: { "innerHTML": _vm._s(item[_vm.itemTitleKey]) } }), _c("div", { staticClass: "w-timeline-item__content", domProps: { "innerHTML": _vm._s(item[_vm.itemContentKey]) } })];
|
|
6249
6252
|
}, { "item": item, "index": i + 1 }) : _vm._t("item." + (i + 1), null, { "item": item, "index": i + 1 })], 2);
|