@grapadigital/shared-app-modules 0.0.181 → 0.0.182
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/assets/switch.css +1 -1
- package/dist/chuncks/{format.util.DDDOd55d.js → format.util.vV9o9P7h.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.DBqPyuqe.js → youtube-icon.component.CaEGEuTv.js} +663 -595
- package/dist/components.d.ts +13 -2
- package/dist/components.js +112 -92
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/utils.d.ts +16 -1
- package/dist/utils.js +11 -10
- package/package.json +2 -1
package/dist/components.d.ts
CHANGED
|
@@ -93,6 +93,16 @@ declare interface Approval {
|
|
|
93
93
|
approvedAt: string;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
+
export declare function AsyncBoundary({ suspenseFallback: SuspenseFallback, errorFallback: ErrorFallback, children, }: AsyncBoundaryProps): JSX.Element;
|
|
97
|
+
|
|
98
|
+
declare interface AsyncBoundaryProps extends React.PropsWithChildren {
|
|
99
|
+
suspenseFallback?: React.ComponentType;
|
|
100
|
+
errorFallback?: React.ComponentType<{
|
|
101
|
+
error?: Error | unknown;
|
|
102
|
+
onRetry?: () => void;
|
|
103
|
+
}>;
|
|
104
|
+
}
|
|
105
|
+
|
|
96
106
|
declare interface Attachments {
|
|
97
107
|
url: string;
|
|
98
108
|
name: string;
|
|
@@ -255,10 +265,11 @@ export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip
|
|
|
255
265
|
|
|
256
266
|
declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
|
|
257
267
|
icon?: LucideIcon;
|
|
258
|
-
title
|
|
259
|
-
description
|
|
268
|
+
title?: string;
|
|
269
|
+
description?: string;
|
|
260
270
|
onRetry?: () => void;
|
|
261
271
|
tip?: string;
|
|
272
|
+
error?: Error | unknown;
|
|
262
273
|
}
|
|
263
274
|
|
|
264
275
|
declare interface Exchange {
|
package/dist/components.js
CHANGED
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { l as x, V as v, c, $ as C, B as f, aI as z, aJ as I, aK as
|
|
2
|
-
import { s as Ne, t as ve, x as Ce, K as ze, y as Ie, z as Me, F as Te, D as Se, E as Fe, G as He, H as _e, J as Le, r as je, u as Ae, L as De, M as $e, m as Pe, n as Ee, o as Be, p as Re, q as qe, N as Oe, v as Ke, w as Ve, O as Xe, X as Je, Y as Ye } from "./chuncks/youtube-icon.component.DBqPyuqe.js";
|
|
1
|
+
import { l as x, V as v, c, $ as C, B as f, aI as z, aJ as I, aK as S, bf as M, ac as H, ad as _, ah as w, ag as A, ae as L, ai as j } from "./chuncks/switch.BF6I8Lqo.js";
|
|
3
2
|
import { jsx as e, jsxs as o, Fragment as D } from "react/jsx-runtime";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
3
|
+
import { QueryErrorResetBoundary as R } from "@tanstack/react-query";
|
|
4
|
+
import { Suspense as $, useState as B, useRef as E, useEffect as P } from "react";
|
|
5
|
+
import { n as q } from "./chuncks/youtube-icon.component.CaEGEuTv.js";
|
|
6
|
+
import { u as Fe, v as Me, z as He, M as _e, D as Ae, E as Le, F as je, G as De, H as Re, J as $e, K as Be, L as Ee, t as Pe, w as qe, N as Oe, O as Ke, o as Qe, p as Ve, q as Xe, r as Je, s as Ye, Q as Ge, x as We, y as Ue, R as Ze, X as et, Y as tt } from "./chuncks/youtube-icon.component.CaEGEuTv.js";
|
|
7
|
+
import { S as b, c as O, T as K, a as Q, b as V } from "./chuncks/tooltip.BR6kaw4f.js";
|
|
8
|
+
import { parseISO as k, differenceInCalendarDays as X, format as J } from "date-fns";
|
|
9
|
+
const Y = [
|
|
8
10
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
9
11
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
10
12
|
["line", { x1: "12", x2: "12.01", y1: "16", y2: "16", key: "4dfq90" }]
|
|
11
|
-
],
|
|
12
|
-
const
|
|
13
|
+
], G = x("circle-alert", Y);
|
|
14
|
+
const W = [
|
|
13
15
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
14
16
|
["path", { d: "M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3", key: "1u773s" }],
|
|
15
17
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
16
|
-
],
|
|
17
|
-
const
|
|
18
|
+
], U = x("circle-question-mark", W);
|
|
19
|
+
const Z = [
|
|
18
20
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
19
21
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
20
|
-
],
|
|
21
|
-
const
|
|
22
|
+
], ee = x("copy", Z);
|
|
23
|
+
const te = [
|
|
22
24
|
[
|
|
23
25
|
"path",
|
|
24
26
|
{
|
|
@@ -30,14 +32,14 @@ const U = [
|
|
|
30
32
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
31
33
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
32
34
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
33
|
-
],
|
|
34
|
-
const
|
|
35
|
+
], ae = x("file-text", te);
|
|
36
|
+
const re = [
|
|
35
37
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
36
38
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
37
39
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
38
40
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
39
|
-
],
|
|
40
|
-
const
|
|
41
|
+
], ne = x("refresh-cw", re);
|
|
42
|
+
const le = [
|
|
41
43
|
[
|
|
42
44
|
"path",
|
|
43
45
|
{
|
|
@@ -47,11 +49,11 @@ const ae = [
|
|
|
47
49
|
],
|
|
48
50
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
49
51
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
50
|
-
],
|
|
51
|
-
function
|
|
52
|
-
icon: r =
|
|
53
|
-
title: a,
|
|
54
|
-
description: n,
|
|
52
|
+
], se = x("triangle-alert", le);
|
|
53
|
+
function ie({
|
|
54
|
+
icon: r = se,
|
|
55
|
+
title: a = "Algo deu errado",
|
|
56
|
+
description: n = "Não foi possível concluir esta operação no momento. Tente novamente em alguns instantes. Se o problema persistir, entre em contato com o suporte.",
|
|
55
57
|
onRetry: l,
|
|
56
58
|
tip: s,
|
|
57
59
|
className: t,
|
|
@@ -62,13 +64,30 @@ function ge({
|
|
|
62
64
|
/* @__PURE__ */ e("h3", { className: "text-foreground mb-2 text-lg font-semibold", children: a }),
|
|
63
65
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground max-w-md text-sm leading-relaxed", children: n }),
|
|
64
66
|
l && /* @__PURE__ */ o(f, { onClick: l, variant: "outline", className: "mt-6", children: [
|
|
65
|
-
/* @__PURE__ */ e(
|
|
67
|
+
/* @__PURE__ */ e(ne, {}),
|
|
66
68
|
"Tentar novamente"
|
|
67
69
|
] }),
|
|
68
70
|
s && /* @__PURE__ */ e("div", { className: "bg-destructive/5 border-destructive/20 mt-6 rounded-lg border border-dashed px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-muted-foreground text-xs", children: s }) })
|
|
69
71
|
] }) });
|
|
70
72
|
}
|
|
71
|
-
function
|
|
73
|
+
function pe({
|
|
74
|
+
suspenseFallback: r = oe,
|
|
75
|
+
errorFallback: a = ie,
|
|
76
|
+
children: n
|
|
77
|
+
}) {
|
|
78
|
+
return /* @__PURE__ */ e($, { fallback: /* @__PURE__ */ e(r, {}), children: /* @__PURE__ */ e(R, { children: ({ reset: l }) => /* @__PURE__ */ e(
|
|
79
|
+
q,
|
|
80
|
+
{
|
|
81
|
+
onReset: l,
|
|
82
|
+
fallbackRender: ({ resetErrorBoundary: s, error: t }) => /* @__PURE__ */ e(a, { error: t, onRetry: s }),
|
|
83
|
+
children: n
|
|
84
|
+
}
|
|
85
|
+
) }) });
|
|
86
|
+
}
|
|
87
|
+
function oe() {
|
|
88
|
+
return /* @__PURE__ */ e(b, { className: "h-[13.75625rem]" });
|
|
89
|
+
}
|
|
90
|
+
function ye({
|
|
72
91
|
content: r,
|
|
73
92
|
align: a,
|
|
74
93
|
asChild: n,
|
|
@@ -77,14 +96,14 @@ function xe({
|
|
|
77
96
|
closeDelay: t = 0,
|
|
78
97
|
children: i,
|
|
79
98
|
disabled: d = !1,
|
|
80
|
-
...
|
|
99
|
+
...m
|
|
81
100
|
}) {
|
|
82
|
-
return /* @__PURE__ */ e(D, { children: d === !0 ? i : /* @__PURE__ */ o(z, { openDelay: s, closeDelay: t, ...
|
|
101
|
+
return /* @__PURE__ */ e(D, { children: d === !0 ? i : /* @__PURE__ */ o(z, { openDelay: s, closeDelay: t, ...m, children: [
|
|
83
102
|
/* @__PURE__ */ e(I, { asChild: n, children: i }),
|
|
84
|
-
/* @__PURE__ */ e(
|
|
103
|
+
/* @__PURE__ */ e(S, { align: a, className: l, children: r })
|
|
85
104
|
] }) });
|
|
86
105
|
}
|
|
87
|
-
const
|
|
106
|
+
const de = {
|
|
88
107
|
red: { bg: "bg-red-50", text: "text-red-600" },
|
|
89
108
|
orange: { bg: "bg-orange-50", text: "text-orange-600" },
|
|
90
109
|
amber: { bg: "bg-amber-50", text: "text-amber-600" },
|
|
@@ -107,7 +126,7 @@ const ne = {
|
|
|
107
126
|
zinc: { bg: "bg-zinc-200", text: "text-zinc-800" },
|
|
108
127
|
neutral: { bg: "bg-neutral-200", text: "text-neutral-800" },
|
|
109
128
|
stone: { bg: "bg-stone-200", text: "text-stone-800" }
|
|
110
|
-
},
|
|
129
|
+
}, ce = {
|
|
111
130
|
red: { bg: "bg-red-500", text: "text-white" },
|
|
112
131
|
orange: { bg: "bg-orange-500", text: "text-white" },
|
|
113
132
|
amber: { bg: "bg-amber-500", text: "text-white" },
|
|
@@ -138,20 +157,20 @@ const ne = {
|
|
|
138
157
|
lg: "size-6",
|
|
139
158
|
xl: "size-7"
|
|
140
159
|
};
|
|
141
|
-
function
|
|
160
|
+
function we({
|
|
142
161
|
size: r,
|
|
143
162
|
color: a,
|
|
144
163
|
className: n,
|
|
145
164
|
icon: l,
|
|
146
165
|
filled: s
|
|
147
166
|
}) {
|
|
148
|
-
const t = s ?
|
|
167
|
+
const t = s ? ce[a] : de[a], i = r ? N[r] : N.md;
|
|
149
168
|
return /* @__PURE__ */ e("div", { className: c("w-fit p-2 rounded-lg", t?.bg, n), children: /* @__PURE__ */ e(l, { className: c(i, t?.text) }) });
|
|
150
169
|
}
|
|
151
|
-
function
|
|
170
|
+
function ke({ className: r, ...a }) {
|
|
152
171
|
return /* @__PURE__ */ e("div", { className: c("divide-y", r), ...a });
|
|
153
172
|
}
|
|
154
|
-
function
|
|
173
|
+
function Ne({
|
|
155
174
|
label: r,
|
|
156
175
|
value: a,
|
|
157
176
|
tooltip: n,
|
|
@@ -160,15 +179,15 @@ function he({
|
|
|
160
179
|
positive: t = !1,
|
|
161
180
|
isPercentage: i = !1,
|
|
162
181
|
isDate: d = !1,
|
|
163
|
-
isText:
|
|
182
|
+
isText: m = !1,
|
|
164
183
|
isInvoiced: p = !1,
|
|
165
|
-
hasCopyButton:
|
|
184
|
+
hasCopyButton: u = !1,
|
|
166
185
|
enableHoverableContent: T = !1,
|
|
167
186
|
handleCopy: y
|
|
168
187
|
}) {
|
|
169
188
|
let g = "";
|
|
170
189
|
if (d && typeof a == "string" && !p && l) {
|
|
171
|
-
const
|
|
190
|
+
const F = k(a), h = X(F, /* @__PURE__ */ new Date());
|
|
172
191
|
h > 15 ? g = "bg-yellow-100 font-bold" : h > 7 ? g = "bg-yellow-300 font-bold" : h >= 0 ? g = "bg-red-300 font-bold" : g = "bg-red-500 text-white font-bold";
|
|
173
192
|
} else l && (g = "bg-[#ffe0b2] font-bold");
|
|
174
193
|
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(z, { openDelay: 0, closeDelay: 0, children: [
|
|
@@ -183,7 +202,7 @@ function he({
|
|
|
183
202
|
children: [
|
|
184
203
|
r,
|
|
185
204
|
" ",
|
|
186
|
-
/* @__PURE__ */ e(
|
|
205
|
+
/* @__PURE__ */ e(G, { className: "size-3.5" })
|
|
187
206
|
]
|
|
188
207
|
}
|
|
189
208
|
),
|
|
@@ -195,14 +214,14 @@ function he({
|
|
|
195
214
|
s ? "text-red-600" : t ? "text-green-600" : ""
|
|
196
215
|
),
|
|
197
216
|
children: [
|
|
198
|
-
i && typeof a == "number" ? `${a.toFixed(2)}%` : d && typeof a == "string" ?
|
|
199
|
-
|
|
217
|
+
i && typeof a == "number" ? `${a.toFixed(2)}%` : d && typeof a == "string" ? J(k(a), "dd/MM/yyyy") : m && typeof a == "string" ? a : `R$ ${a.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}`,
|
|
218
|
+
u && y && /* @__PURE__ */ e(ee, { size: 15, onClick: () => y(a) })
|
|
200
219
|
]
|
|
201
220
|
}
|
|
202
221
|
)
|
|
203
222
|
] }) }),
|
|
204
223
|
/* @__PURE__ */ e(
|
|
205
|
-
|
|
224
|
+
S,
|
|
206
225
|
{
|
|
207
226
|
align: "start",
|
|
208
227
|
className: c(!T && "pointer-events-none"),
|
|
@@ -214,8 +233,8 @@ function he({
|
|
|
214
233
|
)
|
|
215
234
|
] }) });
|
|
216
235
|
}
|
|
217
|
-
function
|
|
218
|
-
icon: r =
|
|
236
|
+
function ve({
|
|
237
|
+
icon: r = ae,
|
|
219
238
|
title: a,
|
|
220
239
|
description: n,
|
|
221
240
|
tip: l,
|
|
@@ -235,12 +254,12 @@ function ue({
|
|
|
235
254
|
l && /* @__PURE__ */ e("div", { className: "mt-6 rounded-lg border border-dashed border-muted-foreground/20 bg-muted/50 px-4 py-2", children: /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground", children: l }) })
|
|
236
255
|
] }) });
|
|
237
256
|
}
|
|
238
|
-
function
|
|
257
|
+
function Ce({
|
|
239
258
|
actions: r,
|
|
240
|
-
icon: a =
|
|
259
|
+
icon: a = U
|
|
241
260
|
}) {
|
|
242
|
-
const [n, l] =
|
|
243
|
-
return
|
|
261
|
+
const [n, l] = B(!1), s = E(null);
|
|
262
|
+
return P(() => {
|
|
244
263
|
if (!n) return;
|
|
245
264
|
const t = (d) => {
|
|
246
265
|
s.current?.contains(d.target) || l(!1);
|
|
@@ -250,7 +269,7 @@ function fe({
|
|
|
250
269
|
return document.addEventListener("mousedown", t), document.addEventListener("keydown", i), () => {
|
|
251
270
|
document.removeEventListener("mousedown", t), document.removeEventListener("keydown", i);
|
|
252
271
|
};
|
|
253
|
-
}, [n]), /* @__PURE__ */ e(
|
|
272
|
+
}, [n]), /* @__PURE__ */ e(O, { children: /* @__PURE__ */ o(
|
|
254
273
|
"div",
|
|
255
274
|
{
|
|
256
275
|
ref: s,
|
|
@@ -264,8 +283,8 @@ function fe({
|
|
|
264
283
|
n ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
|
|
265
284
|
),
|
|
266
285
|
style: { transitionDelay: n ? `${i * 30}ms` : "0ms" },
|
|
267
|
-
children: /* @__PURE__ */ o(
|
|
268
|
-
/* @__PURE__ */ e(
|
|
286
|
+
children: /* @__PURE__ */ o(K, { children: [
|
|
287
|
+
/* @__PURE__ */ e(Q, { asChild: !0, children: /* @__PURE__ */ e(
|
|
269
288
|
f,
|
|
270
289
|
{
|
|
271
290
|
size: "icon",
|
|
@@ -296,14 +315,14 @@ function fe({
|
|
|
296
315
|
"aria-label": n ? "Fechar menu de ajuda" : "Abrir menu de ajuda",
|
|
297
316
|
"aria-expanded": n,
|
|
298
317
|
onClick: () => l((t) => !t),
|
|
299
|
-
children: n ? /* @__PURE__ */ e(
|
|
318
|
+
children: n ? /* @__PURE__ */ e(M, { className: "size-5" }) : /* @__PURE__ */ e(a, { className: "size-5" })
|
|
300
319
|
}
|
|
301
320
|
)
|
|
302
321
|
]
|
|
303
322
|
}
|
|
304
323
|
) });
|
|
305
324
|
}
|
|
306
|
-
function
|
|
325
|
+
function ze({
|
|
307
326
|
columns: r = 9,
|
|
308
327
|
rows: a = 20,
|
|
309
328
|
hasActions: n = !1,
|
|
@@ -313,11 +332,11 @@ function pe({
|
|
|
313
332
|
/* @__PURE__ */ e(_, { children: /* @__PURE__ */ e(w, { children: Array.from({ length: r }).map((s, t) => {
|
|
314
333
|
const i = n && t === r - 1;
|
|
315
334
|
return /* @__PURE__ */ e(
|
|
316
|
-
|
|
335
|
+
A,
|
|
317
336
|
{
|
|
318
337
|
className: i ? "w-0 text-right" : "",
|
|
319
338
|
children: /* @__PURE__ */ e(
|
|
320
|
-
|
|
339
|
+
b,
|
|
321
340
|
{
|
|
322
341
|
className: i ? "ml-auto h-4 w-8" : "h-4 w-[60%]"
|
|
323
342
|
}
|
|
@@ -326,13 +345,13 @@ function pe({
|
|
|
326
345
|
t
|
|
327
346
|
);
|
|
328
347
|
}) }) }),
|
|
329
|
-
/* @__PURE__ */ e(
|
|
330
|
-
const
|
|
331
|
-
return /* @__PURE__ */ e(
|
|
348
|
+
/* @__PURE__ */ e(L, { children: Array.from({ length: a }).map((s, t) => /* @__PURE__ */ e(w, { className: "h-[3.05rem]", children: Array.from({ length: r }).map((i, d) => {
|
|
349
|
+
const m = n && d === r - 1;
|
|
350
|
+
return /* @__PURE__ */ e(j, { children: m ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: l }).map((p, u) => /* @__PURE__ */ e(b, { className: "ml-auto size-8" }, u)) }) : /* @__PURE__ */ e(b, { className: "h-4 w-full" }) }, d);
|
|
332
351
|
}) }, t)) })
|
|
333
352
|
] });
|
|
334
353
|
}
|
|
335
|
-
function
|
|
354
|
+
function Ie({
|
|
336
355
|
size: r = 24,
|
|
337
356
|
color: a = "currentColor",
|
|
338
357
|
...n
|
|
@@ -356,40 +375,41 @@ function ye({
|
|
|
356
375
|
);
|
|
357
376
|
}
|
|
358
377
|
export {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
378
|
+
pe as AsyncBoundary,
|
|
379
|
+
Fe as CampaignsSelectInput,
|
|
380
|
+
Me as ClientSelectInput,
|
|
381
|
+
ie as ErrorCard,
|
|
382
|
+
He as FieldCalendar,
|
|
383
|
+
_e as FieldCheckbox,
|
|
384
|
+
Ae as FieldClientSelectInput,
|
|
385
|
+
Le as FieldInput,
|
|
386
|
+
je as FieldLabelWithAsterisk,
|
|
387
|
+
De as FieldProfileSelectInput,
|
|
388
|
+
Re as FieldSaleSelectInput,
|
|
389
|
+
$e as FieldSelect,
|
|
390
|
+
Be as FieldSwitch,
|
|
391
|
+
Ee as FieldTextarea,
|
|
392
|
+
ye as HoverContent,
|
|
393
|
+
we as IconBadge,
|
|
394
|
+
Pe as Image,
|
|
395
|
+
qe as InfluencerSelectInput,
|
|
396
|
+
Oe as InstagramIcon,
|
|
397
|
+
Ke as LinkedInIcon,
|
|
398
|
+
ke as List,
|
|
399
|
+
Ne as ListRow,
|
|
400
|
+
ve as NotFoundCard,
|
|
401
|
+
Qe as PageHeader,
|
|
402
|
+
Ve as PageHeaderActions,
|
|
403
|
+
Xe as PageHeaderContent,
|
|
404
|
+
Je as PageHeaderDescription,
|
|
405
|
+
Ye as PageHeaderTitle,
|
|
406
|
+
Ge as PinterestIcon,
|
|
407
|
+
We as ProfileSelectInput,
|
|
408
|
+
Ue as SaleSelectInput,
|
|
409
|
+
Ce as SpeedDialButton,
|
|
410
|
+
ze as TableSkeleton,
|
|
411
|
+
Ze as TikTokIcon,
|
|
412
|
+
Ie as TwitterIcon,
|
|
413
|
+
et as XIcon,
|
|
414
|
+
tt as YoutubeIcon
|
|
395
415
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as r, A as s, B as T, C as n, I as O, c as L, P as N, b as c, d as I, S as U, T as P } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { a as r, A as s, B as T, C as n, I as O, c as L, P as N, b as c, d as I, S as U, T as P } from "./chuncks/youtube-icon.component.CaEGEuTv.js";
|
|
2
2
|
const o = "Não há dados para atualizar.", a = "O filtro selecionado já está ativo. Por favor, escolha outro filtro antes de tentar novamente.", E = "Nenhum dado novo foi informado para realizar a operação. Por favor, atualize os campos antes de tentar novamente.", _ = "Não foi possível concluir a operação. Tente novamente mais tarde ou entre em contato com o suporte.", A = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", e = "Campo obrigatório.";
|
|
3
3
|
export {
|
|
4
4
|
r as ACTION_STATUS_VALUES,
|
package/dist/events.js
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
declare const ACTION_STATUS_VALUES: {
|
|
2
|
+
readonly config: "Configuração";
|
|
3
|
+
readonly script: "Roteiro";
|
|
4
|
+
readonly production: "Produção";
|
|
5
|
+
readonly posting: "Postagem";
|
|
6
|
+
readonly analytics: "Analytics";
|
|
7
|
+
readonly finished: "Concluído";
|
|
8
|
+
readonly onHold: "Aguardando";
|
|
9
|
+
readonly cancelled: "Cancelado";
|
|
10
|
+
readonly archived: "Arquivada";
|
|
11
|
+
};
|
|
12
|
+
|
|
1
13
|
declare const BUSINESS_UNIT_VALUES: {
|
|
2
14
|
readonly service: "Atendimento";
|
|
3
15
|
readonly comercial: "Comercial";
|
|
@@ -102,10 +114,13 @@ declare namespace IS_MODULES {
|
|
|
102
114
|
isBusinessUnit,
|
|
103
115
|
isPaymentType,
|
|
104
116
|
isInfluencerBroadcastMethod,
|
|
105
|
-
isPaymentPhase
|
|
117
|
+
isPaymentPhase,
|
|
118
|
+
isActionStatus
|
|
106
119
|
}
|
|
107
120
|
}
|
|
108
121
|
|
|
122
|
+
export declare function isActionStatus(value?: string): value is keyof typeof ACTION_STATUS_VALUES;
|
|
123
|
+
|
|
109
124
|
export declare function isBusinessUnit(value?: string): value is keyof typeof BUSINESS_UNIT_VALUES;
|
|
110
125
|
|
|
111
126
|
export declare function isClientType(value?: string): value is keyof typeof CLIENT_TYPE_VALUES;
|
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as t } from "./chuncks/format.util.
|
|
2
|
-
import { g as y, h as k, f as C, b as E, d as L, m as P, c as _, e as O, a as D, p as I, u as U } from "./chuncks/format.util.
|
|
3
|
-
import { e as s } from "./chuncks/youtube-icon.component.
|
|
4
|
-
import {
|
|
1
|
+
import { U as t } from "./chuncks/format.util.vV9o9P7h.js";
|
|
2
|
+
import { g as y, h as k, f as C, b as E, d as L, m as P, c as _, e as O, a as D, p as I, u as U } from "./chuncks/format.util.vV9o9P7h.js";
|
|
3
|
+
import { e as s } from "./chuncks/youtube-icon.component.CaEGEuTv.js";
|
|
4
|
+
import { m as j, h as N, g as q, k as x, i as F, l as T, j as A, f as G } from "./chuncks/youtube-icon.component.CaEGEuTv.js";
|
|
5
5
|
const a = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", o = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, n = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, i = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, m = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, u = (e) => e ? `${e} inválido.` : "Valor inválido.", c = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
invalidMessage: u,
|
|
@@ -31,12 +31,13 @@ export {
|
|
|
31
31
|
C as formatCurrency,
|
|
32
32
|
E as formatPercentage,
|
|
33
33
|
u as invalidMessage,
|
|
34
|
-
j as
|
|
35
|
-
N as
|
|
36
|
-
q as
|
|
37
|
-
x as
|
|
38
|
-
F as
|
|
39
|
-
T as
|
|
34
|
+
j as isActionStatus,
|
|
35
|
+
N as isBusinessUnit,
|
|
36
|
+
q as isClientType,
|
|
37
|
+
x as isInfluencerBroadcastMethod,
|
|
38
|
+
F as isNumber,
|
|
39
|
+
T as isPaymentPhase,
|
|
40
|
+
A as isPaymentType,
|
|
40
41
|
G as isSocialNetwork,
|
|
41
42
|
g as keys,
|
|
42
43
|
L as maskCNPJ,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@grapadigital/shared-app-modules",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.182",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -149,6 +149,7 @@
|
|
|
149
149
|
"lucide-react": "^0.555.0",
|
|
150
150
|
"radix-ui": "^1.4.3",
|
|
151
151
|
"react-day-picker": "^9.11.3",
|
|
152
|
+
"react-error-boundary": "^6.1.2",
|
|
152
153
|
"react-hook-form": "^7.71.2",
|
|
153
154
|
"react-router-dom": "^7.10.1",
|
|
154
155
|
"recharts": "2.15.4",
|