wave-ui 4.2.2 → 4.2.4
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/types/types/components/WTable.d.ts +18 -0
- package/dist/wave-ui.cjs.js +2 -2
- package/dist/wave-ui.css +1 -1
- package/dist/wave-ui.esm.js +22 -11
- package/dist/wave-ui.umd.js +2 -2
- package/package.json +1 -1
- package/src/wave-ui/components/w-dialog.vue +5 -0
- package/src/wave-ui/components/w-table.vue +18 -14
package/dist/wave-ui.esm.js
CHANGED
|
@@ -8485,7 +8485,7 @@ var bi = /* @__PURE__ */ q({
|
|
|
8485
8485
|
function Ji(t, n, r, i, a, u) {
|
|
8486
8486
|
let p = E("w-icon"), m = E("w-progress"), h = E("w-transition-fade"), g = E("w-transition-expand"), v = E("w-select"), y = E("w-button");
|
|
8487
8487
|
return b(), c("div", { class: _(["w-table w-table--wrap", u.classes]) }, [l("div", xi, [l("table", {
|
|
8488
|
-
class: "w-table__table",
|
|
8488
|
+
class: _(["w-table__table", r.tableClass]),
|
|
8489
8489
|
onMousedown: n[2] ||= (...e) => u.onMouseDown && u.onMouseDown(...e),
|
|
8490
8490
|
onMouseover: n[3] ||= (...e) => u.onMouseOver && u.onMouseOver(...e),
|
|
8491
8491
|
onMouseout: n[4] ||= (...e) => u.onMouseOut && u.onMouseOut(...e)
|
|
@@ -8553,11 +8553,11 @@ function Ji(t, n, r, i, a, u) {
|
|
|
8553
8553
|
}
|
|
8554
8554
|
}) : (b(), c("tr", {
|
|
8555
8555
|
key: 1,
|
|
8556
|
-
class: _(["w-table__row", {
|
|
8556
|
+
class: _(["w-table__row", [{
|
|
8557
8557
|
"w-table__row--selected": u.selectedRowsByUid[i._uid] !== void 0,
|
|
8558
8558
|
"w-table__row--expanded": u.expandedRowsByUid[i._uid] !== void 0,
|
|
8559
8559
|
[i.class]: i.class
|
|
8560
|
-
}]),
|
|
8560
|
+
}, r.itemClass]]),
|
|
8561
8561
|
onClick: (e) => u.doSelectRow(i, a),
|
|
8562
8562
|
onPointerdown: n[1] ||= (...e) => u.onRowPointerDown && u.onRowPointerDown(...e)
|
|
8563
8563
|
}, [(b(!0), c(e, null, w(r.headers, (n, o) => (b(), c(e, null, [t.$slots[`item-cell.${n.key}`] || t.$slots[`item-cell.${o + 1}`] || t.$slots["item-cell"] ? (b(), c("td", {
|
|
@@ -8620,7 +8620,7 @@ function Ji(t, n, r, i, a, u) {
|
|
|
8620
8620
|
class: "w-table__cell",
|
|
8621
8621
|
colspan: r.headers.length
|
|
8622
8622
|
}, [T(t.$slots, "footer")], 8, Wi)])) : s("", !0)])) : s("", !0)
|
|
8623
|
-
],
|
|
8623
|
+
], 34)]), r.pagination && t.paginationConfig ? (b(), c("div", Gi, [T(t.$slots, "pagination", {
|
|
8624
8624
|
range: `${t.paginationConfig.start}-${t.paginationConfig.end}`,
|
|
8625
8625
|
total: t.paginationConfig.total,
|
|
8626
8626
|
pagesCount: t.paginationConfig.pagesCount,
|
|
@@ -8758,8 +8758,21 @@ var Yi = 15, Xi = /* @__PURE__ */ q({
|
|
|
8758
8758
|
],
|
|
8759
8759
|
validator: (e) => e && typeof e == "object" && (!e.itemsPerPage || e.page && isNaN(e.page)) ? (R("Wrong pagination config received in the w-table's `pagination` prop (received: `" + JSON.stringify(e) + "`). \nExpected object: { itemsPerPage: Integer, page: Integer } or { itemsPerPage: Integer, start: Integer }."), !1) : !0
|
|
8760
8760
|
},
|
|
8761
|
-
|
|
8762
|
-
|
|
8761
|
+
tableClass: { type: [
|
|
8762
|
+
String,
|
|
8763
|
+
Array,
|
|
8764
|
+
Object
|
|
8765
|
+
] },
|
|
8766
|
+
headerClass: { type: [
|
|
8767
|
+
String,
|
|
8768
|
+
Array,
|
|
8769
|
+
Object
|
|
8770
|
+
] },
|
|
8771
|
+
itemClass: { type: [
|
|
8772
|
+
String,
|
|
8773
|
+
Array,
|
|
8774
|
+
Object
|
|
8775
|
+
] }
|
|
8763
8776
|
},
|
|
8764
8777
|
emits: [
|
|
8765
8778
|
"row-select",
|
|
@@ -8821,9 +8834,7 @@ var Yi = 15, Xi = /* @__PURE__ */ q({
|
|
|
8821
8834
|
"w-table--resizing": this.colResizing.dragging,
|
|
8822
8835
|
"w-table--fixed-header": this.fixedHeaders,
|
|
8823
8836
|
"w-table--fixed-footer": this.fixedFooter,
|
|
8824
|
-
"w-table--sticky-column": this.hasStickyColumn
|
|
8825
|
-
"w-table--dark": this.dark,
|
|
8826
|
-
"w-table--light": this.light
|
|
8837
|
+
"w-table--sticky-column": this.hasStickyColumn
|
|
8827
8838
|
};
|
|
8828
8839
|
},
|
|
8829
8840
|
colClasses() {
|
|
@@ -8847,13 +8858,13 @@ var Yi = 15, Xi = /* @__PURE__ */ q({
|
|
|
8847
8858
|
},
|
|
8848
8859
|
methods: {
|
|
8849
8860
|
headerClasses(e) {
|
|
8850
|
-
return {
|
|
8861
|
+
return [{
|
|
8851
8862
|
"w-ripple": this.rippleActive && e.sortable !== !1,
|
|
8852
8863
|
"w-table__header--sortable": e.sortable !== !1,
|
|
8853
8864
|
"w-table__header--sticky": e.sticky,
|
|
8854
8865
|
"w-table__header--resizable": !!this.resizableColumns,
|
|
8855
8866
|
[`text-${e.align || "left"}`]: !0
|
|
8856
|
-
};
|
|
8867
|
+
}, this.headerClass];
|
|
8857
8868
|
},
|
|
8858
8869
|
cellClasses(e) {
|
|
8859
8870
|
return {
|