@iclips/ui 1.1.4 → 1.2.1
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/print-templates/ContractTemplate.d.ts.map +1 -1
- package/dist/components/ui/index.d.ts +17 -15
- package/dist/components/ui/index.d.ts.map +1 -1
- package/dist/components/ui/lista-anexos-arquivo.d.ts +47 -0
- package/dist/components/ui/lista-anexos-arquivo.d.ts.map +1 -0
- package/dist/components/ui/zona-upload-arquivo.d.ts +34 -0
- package/dist/components/ui/zona-upload-arquivo.d.ts.map +1 -0
- package/dist/index.cjs +21 -21
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +87 -92
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1952,6 +1952,30 @@ function mw({ className: t, ...e }) {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
);
|
|
1954
1954
|
}
|
|
1955
|
+
function sp({
|
|
1956
|
+
pageNumber: t,
|
|
1957
|
+
totalPages: e,
|
|
1958
|
+
footerText: n,
|
|
1959
|
+
showGeneratedDate: r = !0
|
|
1960
|
+
}) {
|
|
1961
|
+
const i = (/* @__PURE__ */ new Date()).toLocaleDateString("pt-BR", {
|
|
1962
|
+
year: "numeric",
|
|
1963
|
+
month: "long",
|
|
1964
|
+
day: "numeric"
|
|
1965
|
+
});
|
|
1966
|
+
return /* @__PURE__ */ l("div", { className: "print-footer mt-12 pt-6 border-t border-gray-200", children: /* @__PURE__ */ b("div", { className: "flex items-center justify-between text-xs text-gray-500", children: [
|
|
1967
|
+
/* @__PURE__ */ l("div", { children: n ? /* @__PURE__ */ l("p", { children: n }) : r ? /* @__PURE__ */ b("p", { children: [
|
|
1968
|
+
"Documento gerado em ",
|
|
1969
|
+
i
|
|
1970
|
+
] }) : null }),
|
|
1971
|
+
t && e && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ b("p", { children: [
|
|
1972
|
+
"Página ",
|
|
1973
|
+
t,
|
|
1974
|
+
" de ",
|
|
1975
|
+
e
|
|
1976
|
+
] }) })
|
|
1977
|
+
] }) });
|
|
1978
|
+
}
|
|
1955
1979
|
const gw = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODgiIGhlaWdodD0iODgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjMDAwIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBvcGFjaXR5PSIuMyIgZmlsbD0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIzLjciPjxyZWN0IHg9IjE2IiB5PSIxNiIgd2lkdGg9IjU2IiBoZWlnaHQ9IjU2IiByeD0iNiIvPjxwYXRoIGQ9Im0xNiA1OCAxNi0xOCAzMiAzMiIvPjxjaXJjbGUgY3g9IjUzIiBjeT0iMzUiIHI9IjciLz48L3N2Zz4KCg==";
|
|
1956
1980
|
function bw(t) {
|
|
1957
1981
|
const [e, n] = ae(!1), r = () => {
|
|
@@ -1966,7 +1990,7 @@ function bw(t) {
|
|
|
1966
1990
|
}
|
|
1967
1991
|
) : /* @__PURE__ */ l("img", { src: i, alt: a, className: s, style: o, ...f, onError: r });
|
|
1968
1992
|
}
|
|
1969
|
-
function
|
|
1993
|
+
function fp({
|
|
1970
1994
|
logo: t,
|
|
1971
1995
|
companyName: e = "iClips",
|
|
1972
1996
|
customHeader: n,
|
|
@@ -2017,57 +2041,6 @@ function sp({
|
|
|
2017
2041
|
] })
|
|
2018
2042
|
] }) });
|
|
2019
2043
|
}
|
|
2020
|
-
function fp({
|
|
2021
|
-
pageNumber: t,
|
|
2022
|
-
totalPages: e,
|
|
2023
|
-
footerText: n,
|
|
2024
|
-
showGeneratedDate: r = !0
|
|
2025
|
-
}) {
|
|
2026
|
-
const i = (/* @__PURE__ */ new Date()).toLocaleDateString("pt-BR", {
|
|
2027
|
-
year: "numeric",
|
|
2028
|
-
month: "long",
|
|
2029
|
-
day: "numeric"
|
|
2030
|
-
});
|
|
2031
|
-
return /* @__PURE__ */ l("div", { className: "print-footer mt-12 pt-6 border-t border-gray-200", children: /* @__PURE__ */ b("div", { className: "flex items-center justify-between text-xs text-gray-500", children: [
|
|
2032
|
-
/* @__PURE__ */ l("div", { children: n ? /* @__PURE__ */ l("p", { children: n }) : r ? /* @__PURE__ */ b("p", { children: [
|
|
2033
|
-
"Documento gerado em ",
|
|
2034
|
-
i
|
|
2035
|
-
] }) : null }),
|
|
2036
|
-
t && e && /* @__PURE__ */ l("div", { children: /* @__PURE__ */ b("p", { children: [
|
|
2037
|
-
"Página ",
|
|
2038
|
-
t,
|
|
2039
|
-
" de ",
|
|
2040
|
-
e
|
|
2041
|
-
] }) })
|
|
2042
|
-
] }) });
|
|
2043
|
-
}
|
|
2044
|
-
function zt({
|
|
2045
|
-
title: t,
|
|
2046
|
-
subtitle: e,
|
|
2047
|
-
children: n,
|
|
2048
|
-
className: r,
|
|
2049
|
-
avoidBreak: i = !1,
|
|
2050
|
-
pageBreak: a = !1
|
|
2051
|
-
}) {
|
|
2052
|
-
return /* @__PURE__ */ b(
|
|
2053
|
-
"div",
|
|
2054
|
-
{
|
|
2055
|
-
className: M(
|
|
2056
|
-
"print-section mb-8",
|
|
2057
|
-
i && "avoid-break",
|
|
2058
|
-
a && "page-break",
|
|
2059
|
-
r
|
|
2060
|
-
),
|
|
2061
|
-
children: [
|
|
2062
|
-
t && /* @__PURE__ */ b("div", { className: "mb-4", children: [
|
|
2063
|
-
/* @__PURE__ */ l("h2", { className: "text-lg font-semibold text-gray-900 border-b-2 border-primary pb-2", children: t }),
|
|
2064
|
-
e && /* @__PURE__ */ l("p", { className: "text-sm text-gray-600 mt-1", children: e })
|
|
2065
|
-
] }),
|
|
2066
|
-
/* @__PURE__ */ l("div", { className: "text-sm text-gray-700 leading-relaxed", children: n })
|
|
2067
|
-
]
|
|
2068
|
-
}
|
|
2069
|
-
);
|
|
2070
|
-
}
|
|
2071
2044
|
function ai({
|
|
2072
2045
|
items: t,
|
|
2073
2046
|
columns: e = 2,
|
|
@@ -2103,6 +2076,62 @@ function ai({
|
|
|
2103
2076
|
a
|
|
2104
2077
|
)) }) });
|
|
2105
2078
|
}
|
|
2079
|
+
function zt({
|
|
2080
|
+
title: t,
|
|
2081
|
+
subtitle: e,
|
|
2082
|
+
children: n,
|
|
2083
|
+
className: r,
|
|
2084
|
+
avoidBreak: i = !1,
|
|
2085
|
+
pageBreak: a = !1
|
|
2086
|
+
}) {
|
|
2087
|
+
return /* @__PURE__ */ b(
|
|
2088
|
+
"div",
|
|
2089
|
+
{
|
|
2090
|
+
className: M(
|
|
2091
|
+
"print-section mb-8",
|
|
2092
|
+
i && "avoid-break",
|
|
2093
|
+
a && "page-break",
|
|
2094
|
+
r
|
|
2095
|
+
),
|
|
2096
|
+
children: [
|
|
2097
|
+
t && /* @__PURE__ */ b("div", { className: "mb-4", children: [
|
|
2098
|
+
/* @__PURE__ */ l("h2", { className: "text-lg font-semibold text-gray-900 border-b-2 border-primary pb-2", children: t }),
|
|
2099
|
+
e && /* @__PURE__ */ l("p", { className: "text-sm text-gray-600 mt-1", children: e })
|
|
2100
|
+
] }),
|
|
2101
|
+
/* @__PURE__ */ l("div", { className: "text-sm text-gray-700 leading-relaxed", children: n })
|
|
2102
|
+
]
|
|
2103
|
+
}
|
|
2104
|
+
);
|
|
2105
|
+
}
|
|
2106
|
+
function lp({
|
|
2107
|
+
signatures: t,
|
|
2108
|
+
layout: e = "horizontal",
|
|
2109
|
+
showLine: n = !0,
|
|
2110
|
+
instructionText: r
|
|
2111
|
+
}) {
|
|
2112
|
+
return /* @__PURE__ */ b("div", { className: "print-signature mt-12 page-break avoid-break", children: [
|
|
2113
|
+
r && /* @__PURE__ */ l("p", { className: "text-sm text-gray-600 mb-6", children: r }),
|
|
2114
|
+
/* @__PURE__ */ l(
|
|
2115
|
+
"div",
|
|
2116
|
+
{
|
|
2117
|
+
className: e === "horizontal" ? "grid grid-cols-2 gap-8" : "space-y-12",
|
|
2118
|
+
children: t.map((i, a) => /* @__PURE__ */ b("div", { className: "signature-field", children: [
|
|
2119
|
+
/* @__PURE__ */ l("div", { className: "h-20 mb-2" }),
|
|
2120
|
+
n && /* @__PURE__ */ l("div", { className: "border-t-2 border-gray-900 mb-2" }),
|
|
2121
|
+
/* @__PURE__ */ b("div", { className: "text-sm", children: [
|
|
2122
|
+
/* @__PURE__ */ l("p", { className: "font-semibold text-gray-900", children: i.label }),
|
|
2123
|
+
i.name && /* @__PURE__ */ l("p", { className: "text-gray-600", children: i.name }),
|
|
2124
|
+
i.role && /* @__PURE__ */ l("p", { className: "text-gray-500 text-xs", children: i.role }),
|
|
2125
|
+
i.date && /* @__PURE__ */ b("p", { className: "text-gray-500 text-xs mt-1", children: [
|
|
2126
|
+
"Data: ",
|
|
2127
|
+
i.date
|
|
2128
|
+
] })
|
|
2129
|
+
] })
|
|
2130
|
+
] }, a))
|
|
2131
|
+
}
|
|
2132
|
+
)
|
|
2133
|
+
] });
|
|
2134
|
+
}
|
|
2106
2135
|
function $l({
|
|
2107
2136
|
columns: t,
|
|
2108
2137
|
data: e,
|
|
@@ -2174,35 +2203,6 @@ function $l({
|
|
|
2174
2203
|
)
|
|
2175
2204
|
] });
|
|
2176
2205
|
}
|
|
2177
|
-
function lp({
|
|
2178
|
-
signatures: t,
|
|
2179
|
-
layout: e = "horizontal",
|
|
2180
|
-
showLine: n = !0,
|
|
2181
|
-
instructionText: r
|
|
2182
|
-
}) {
|
|
2183
|
-
return /* @__PURE__ */ b("div", { className: "print-signature mt-12 page-break avoid-break", children: [
|
|
2184
|
-
r && /* @__PURE__ */ l("p", { className: "text-sm text-gray-600 mb-6", children: r }),
|
|
2185
|
-
/* @__PURE__ */ l(
|
|
2186
|
-
"div",
|
|
2187
|
-
{
|
|
2188
|
-
className: e === "horizontal" ? "grid grid-cols-2 gap-8" : "space-y-12",
|
|
2189
|
-
children: t.map((i, a) => /* @__PURE__ */ b("div", { className: "signature-field", children: [
|
|
2190
|
-
/* @__PURE__ */ l("div", { className: "h-20 mb-2" }),
|
|
2191
|
-
n && /* @__PURE__ */ l("div", { className: "border-t-2 border-gray-900 mb-2" }),
|
|
2192
|
-
/* @__PURE__ */ b("div", { className: "text-sm", children: [
|
|
2193
|
-
/* @__PURE__ */ l("p", { className: "font-semibold text-gray-900", children: i.label }),
|
|
2194
|
-
i.name && /* @__PURE__ */ l("p", { className: "text-gray-600", children: i.name }),
|
|
2195
|
-
i.role && /* @__PURE__ */ l("p", { className: "text-gray-500 text-xs", children: i.role }),
|
|
2196
|
-
i.date && /* @__PURE__ */ b("p", { className: "text-gray-500 text-xs mt-1", children: [
|
|
2197
|
-
"Data: ",
|
|
2198
|
-
i.date
|
|
2199
|
-
] })
|
|
2200
|
-
] })
|
|
2201
|
-
] }, a))
|
|
2202
|
-
}
|
|
2203
|
-
)
|
|
2204
|
-
] });
|
|
2205
|
-
}
|
|
2206
2206
|
function cp({
|
|
2207
2207
|
data: t,
|
|
2208
2208
|
showPreview: e = !1,
|
|
@@ -2254,7 +2254,7 @@ function cp({
|
|
|
2254
2254
|
},
|
|
2255
2255
|
children: [
|
|
2256
2256
|
/* @__PURE__ */ l(
|
|
2257
|
-
|
|
2257
|
+
fp,
|
|
2258
2258
|
{
|
|
2259
2259
|
logo: n,
|
|
2260
2260
|
companyName: t.agencia.nome,
|
|
@@ -2298,11 +2298,6 @@ function cp({
|
|
|
2298
2298
|
label: "Vigência - Término",
|
|
2299
2299
|
value: a(t.dataTermino)
|
|
2300
2300
|
},
|
|
2301
|
-
{
|
|
2302
|
-
label: "Valor do Fee Mensal",
|
|
2303
|
-
value: i(t.valorFee),
|
|
2304
|
-
highlight: !0
|
|
2305
|
-
},
|
|
2306
2301
|
...r ? [
|
|
2307
2302
|
{
|
|
2308
2303
|
label: "Total de Horas",
|
|
@@ -2481,7 +2476,7 @@ function cp({
|
|
|
2481
2476
|
instructionText: t.descricaoContrato && t.descricaoContrato.trim() !== "" ? t.descricaoContrato : void 0
|
|
2482
2477
|
}
|
|
2483
2478
|
),
|
|
2484
|
-
/* @__PURE__ */ l(
|
|
2479
|
+
/* @__PURE__ */ l(sp, { pageNumber: 1, totalPages: 1 })
|
|
2485
2480
|
]
|
|
2486
2481
|
}
|
|
2487
2482
|
);
|
|
@@ -53413,7 +53408,7 @@ function Qz({
|
|
|
53413
53408
|
},
|
|
53414
53409
|
children: [
|
|
53415
53410
|
/* @__PURE__ */ l(
|
|
53416
|
-
|
|
53411
|
+
fp,
|
|
53417
53412
|
{
|
|
53418
53413
|
logo: n,
|
|
53419
53414
|
companyName: t.agency.name,
|
|
@@ -53537,7 +53532,7 @@ function Qz({
|
|
|
53537
53532
|
}
|
|
53538
53533
|
),
|
|
53539
53534
|
/* @__PURE__ */ l(
|
|
53540
|
-
|
|
53535
|
+
sp,
|
|
53541
53536
|
{
|
|
53542
53537
|
pageNumber: 1,
|
|
53543
53538
|
totalPages: 1,
|
|
@@ -53747,8 +53742,8 @@ export {
|
|
|
53747
53742
|
pt as Popover,
|
|
53748
53743
|
ft as PopoverContent,
|
|
53749
53744
|
st as PopoverTrigger,
|
|
53750
|
-
|
|
53751
|
-
|
|
53745
|
+
sp as PrintFooter,
|
|
53746
|
+
fp as PrintHeader,
|
|
53752
53747
|
ai as PrintInfoGrid,
|
|
53753
53748
|
zt as PrintSection,
|
|
53754
53749
|
lp as PrintSignature,
|