@c3labsbr/vuetify-elements 1.15.0 → 1.16.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/components/organisms/GenericItemActions.vue.d.ts.map +1 -1
- package/dist/components/organisms/TableColumnActionsMenu.vue.d.ts +1 -0
- package/dist/components/organisms/TableColumnActionsMenu.vue.d.ts.map +1 -1
- package/dist/components/organisms/TableHeader.vue.d.ts.map +1 -1
- package/dist/components/organisms/__tests__/TableColumnActionsMenu.spec.d.ts +2 -0
- package/dist/components/organisms/__tests__/TableColumnActionsMenu.spec.d.ts.map +1 -0
- package/dist/components/organisms/__tests__/TableHeader.spec.d.ts +2 -0
- package/dist/components/organisms/__tests__/TableHeader.spec.d.ts.map +1 -0
- package/dist/utils/export.d.ts.map +1 -1
- package/dist/vuetify-elements.cjs.js +2 -2
- package/dist/vuetify-elements.es.js +11 -6
- package/package.json +1 -1
- package/dist/components/organisms/__tests__/GenericDataTable.spec.d.ts +0 -2
- package/dist/components/organisms/__tests__/GenericDataTable.spec.d.ts.map +0 -1
|
@@ -3802,7 +3802,7 @@ function Cc(e, t) {
|
|
|
3802
3802
|
}), n.save("relatorio.pdf");
|
|
3803
3803
|
}
|
|
3804
3804
|
function xc(e, t) {
|
|
3805
|
-
const n = new Ns.Workbook(), a = n.addWorksheet("Relatório"), l = /* @__PURE__ */ new Date(), o = `${l.toLocaleDateString()} ${l.toLocaleTimeString()}`, i = t.filter((c) => c.isVisible && c.value !== "actions").map((c) => c.title);
|
|
3805
|
+
const n = new Ns.Workbook(), a = n.addWorksheet("Relatório"), l = /* @__PURE__ */ new Date(), o = `${l.toLocaleDateString()} ${l.toLocaleTimeString()}`, i = t.filter((c) => c.isVisible && c.value !== "actions").sort((c, u) => c.sequence - u.sequence).map((c) => c.title);
|
|
3806
3806
|
a.addRow(i), a.getRow(1).eachCell((c, u) => {
|
|
3807
3807
|
c.font = { bold: !0, color: { argb: "FFFFFFFF" }, size: 12 }, c.fill = {
|
|
3808
3808
|
type: "pattern",
|
|
@@ -3819,7 +3819,7 @@ function xc(e, t) {
|
|
|
3819
3819
|
);
|
|
3820
3820
|
});
|
|
3821
3821
|
for (const c of e) {
|
|
3822
|
-
const u = t.filter(
|
|
3822
|
+
const u = t.sort((v, g) => v.sequence - g.sequence).filter(
|
|
3823
3823
|
(v) => v.isVisible && v.value !== "actions"
|
|
3824
3824
|
), d = u.map((v) => Ti(c, v));
|
|
3825
3825
|
a.addRow(d).eachCell((v, g) => {
|
|
@@ -13457,7 +13457,8 @@ const km = /* @__PURE__ */ xe({
|
|
|
13457
13457
|
isSorted: { type: Function },
|
|
13458
13458
|
getSortIcon: { type: Function },
|
|
13459
13459
|
toggleSort: { type: Function },
|
|
13460
|
-
filterFn: { type: Function }
|
|
13460
|
+
filterFn: { type: Function },
|
|
13461
|
+
isLastColumn: { type: Boolean }
|
|
13461
13462
|
},
|
|
13462
13463
|
emits: ["hideColumn", "moveLeft", "moveRight"],
|
|
13463
13464
|
setup(e, { emit: t }) {
|
|
@@ -13471,7 +13472,10 @@ const km = /* @__PURE__ */ xe({
|
|
|
13471
13472
|
}, {
|
|
13472
13473
|
activator: O(({ props: r }) => [
|
|
13473
13474
|
w("span", W(r, {
|
|
13474
|
-
class: ["me-2 text-no-wrap", {
|
|
13475
|
+
class: ["me-2 text-no-wrap table-column-actions-menu__activator", {
|
|
13476
|
+
"cursor-pointer": e.column.sortable,
|
|
13477
|
+
"flex-grow-1 text-end": e.isLastColumn
|
|
13478
|
+
}]
|
|
13475
13479
|
}), [
|
|
13476
13480
|
w("span", {
|
|
13477
13481
|
textContent: pe(e.column.title)
|
|
@@ -13579,7 +13583,7 @@ const km = /* @__PURE__ */ xe({
|
|
|
13579
13583
|
}
|
|
13580
13584
|
}, o = (i) => i.filterable;
|
|
13581
13585
|
return (i, r) => (q(), Pe("tr", Bm, [
|
|
13582
|
-
(q(!0), Pe(se, null, Xt(e.columns, (s) => (q(), Pe("th", {
|
|
13586
|
+
(q(!0), Pe(se, null, Xt(e.columns, (s, c) => (q(), Pe("th", {
|
|
13583
13587
|
key: s.title,
|
|
13584
13588
|
scope: "col",
|
|
13585
13589
|
style: ie(
|
|
@@ -13592,10 +13596,11 @@ const km = /* @__PURE__ */ xe({
|
|
|
13592
13596
|
getSortIcon: e.getSortIcon,
|
|
13593
13597
|
isSorted: e.isSorted,
|
|
13594
13598
|
toggleSort: e.toggleSort,
|
|
13599
|
+
isLastColumn: c === e.columns.length - 1,
|
|
13595
13600
|
onHideColumn: n,
|
|
13596
13601
|
onMoveLeft: a,
|
|
13597
13602
|
onMoveRight: l
|
|
13598
|
-
}, null, 8, ["column", "getSortIcon", "isSorted", "toggleSort"]),
|
|
13603
|
+
}, null, 8, ["column", "getSortIcon", "isSorted", "toggleSort", "isLastColumn"]),
|
|
13599
13604
|
o(s) ? (q(), ne(Vm, {
|
|
13600
13605
|
key: 0,
|
|
13601
13606
|
column: s,
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GenericDataTable.spec.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/__tests__/GenericDataTable.spec.ts"],"names":[],"mappings":""}
|