@c3labsbr/vuetify-elements 1.8.3 → 1.9.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.
|
@@ -3819,13 +3819,15 @@ function xc(e, t) {
|
|
|
3819
3819
|
);
|
|
3820
3820
|
});
|
|
3821
3821
|
for (const c of e) {
|
|
3822
|
-
const u = t.filter(
|
|
3823
|
-
|
|
3824
|
-
|
|
3822
|
+
const u = t.filter(
|
|
3823
|
+
(v) => v.isVisible && v.value !== "actions"
|
|
3824
|
+
), d = u.map((v) => Ti(c, v));
|
|
3825
|
+
a.addRow(d).eachCell((v, g) => {
|
|
3826
|
+
v.border = {
|
|
3825
3827
|
left: { style: "thin", color: { argb: "FF000000" } },
|
|
3826
3828
|
bottom: { style: "thin", color: { argb: "FF000000" } },
|
|
3827
3829
|
right: { style: "thin", color: { argb: "FF000000" } }
|
|
3828
|
-
};
|
|
3830
|
+
}, u[g]?.type == "date" && (v.numFmt = "dd/mm/yyyy");
|
|
3829
3831
|
});
|
|
3830
3832
|
}
|
|
3831
3833
|
const s = a.addRow([`Exportado em: ${o}`]);
|
|
@@ -3833,7 +3835,7 @@ function xc(e, t) {
|
|
|
3833
3835
|
italic: !0,
|
|
3834
3836
|
color: { argb: "FF555555" },
|
|
3835
3837
|
size: 10
|
|
3836
|
-
}, s.getCell(1).alignment = { horizontal: "center" }, n.xlsx.writeBuffer().then((c) => {
|
|
3838
|
+
}, s.getCell(1).alignment = { horizontal: "center" }, n.xlsx.writeBuffer({ useStyles: !0 }).then((c) => {
|
|
3837
3839
|
const u = new Blob([c], {
|
|
3838
3840
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
3839
3841
|
}), d = document.createElement("a");
|
|
@@ -3841,6 +3843,8 @@ function xc(e, t) {
|
|
|
3841
3843
|
});
|
|
3842
3844
|
}
|
|
3843
3845
|
function Ti(e, t) {
|
|
3846
|
+
if (t?.type == "date" && e[t.value])
|
|
3847
|
+
return new Date(e[t.value]);
|
|
3844
3848
|
if (t.displayValue) {
|
|
3845
3849
|
const a = t.displayValue(e);
|
|
3846
3850
|
return a == null || a === "" ? "-" : a;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c3labsbr/vuetify-elements",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"description": "A C3Labs collection of Vuetify components for Vue 3 applications.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"require": "./dist/vuetify-elements.cjs.js",
|
|
30
30
|
"import": "./dist/vuetify-elements.es.js"
|
|
31
31
|
},
|
|
32
|
-
"./index.css": "./dist/vuetify-elements.css"
|
|
32
|
+
"./index.css": "./dist/vuetify-elements.css",
|
|
33
|
+
"./generic-table.css": "./index.css"
|
|
33
34
|
},
|
|
34
35
|
"files": [
|
|
35
36
|
"dist",
|
|
@@ -39,8 +40,7 @@
|
|
|
39
40
|
],
|
|
40
41
|
"sideEffects": [
|
|
41
42
|
"*.css",
|
|
42
|
-
"*.scss"
|
|
43
|
-
"./index.css"
|
|
43
|
+
"*.scss"
|
|
44
44
|
],
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"vue": "^3.4.31",
|
package/index.css
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
.ve-search-input {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
gap: 0.5rem;
|
|
5
|
-
position: relative;
|
|
6
|
-
height: 30px;
|
|
7
|
-
margin-top: 5px;
|
|
8
|
-
padding-left: 10px;
|
|
9
|
-
border: 1px solid #ccc;
|
|
10
|
-
border-radius: 4px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ve-search-input .icon {
|
|
14
|
-
position: absolute;
|
|
15
|
-
left: 8px;
|
|
16
|
-
z-index: 2;
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.ve-search-input input {
|
|
21
|
-
width: 100%;
|
|
22
|
-
height: 100%;
|
|
23
|
-
outline: none;
|
|
24
|
-
font-size: 14px;
|
|
25
|
-
z-index: 1;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.ve-search-input label {
|
|
29
|
-
position: absolute;
|
|
30
|
-
left: 30px;
|
|
31
|
-
top: 50%;
|
|
32
|
-
transform: translateY(-50%);
|
|
33
|
-
padding: 0 8px;
|
|
34
|
-
color: #aaa;
|
|
35
|
-
font-size: 12px;
|
|
36
|
-
pointer-events: none;
|
|
37
|
-
transition: all 0.2s ease-in-out;
|
|
38
|
-
z-index: 3;
|
|
39
|
-
background-color: rgb(var(--v-theme-background));
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.ve-search-input input:focus + label,
|
|
43
|
-
.ve-search-input input:valid + label {
|
|
44
|
-
transform: translateY(-25px) scale(0.85);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.hide-overflow-y,
|
|
48
|
-
.hide-overflow-y > * {
|
|
49
|
-
overflow-y: hidden;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.no-border-rd {
|
|
53
|
-
border-radius: 20px;
|
|
54
|
-
}
|