@grapadigital/shared-app-modules 0.0.214 → 0.0.216
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/chuncks/{format.util.ZogZZ58E.js → format.util.BUmWGiJF.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.DJUDonHx.js → youtube-icon.component.CU9RpVNh.js} +358 -349
- package/dist/components.d.ts +10 -1
- package/dist/components.js +62 -61
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +1 -1
- package/dist/dictionaries.d.ts +9 -7
- package/dist/dictionaries.js +1 -1
- package/dist/events.js +1 -1
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +4 -4
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ declare interface Approval {
|
|
|
93
93
|
approvedAt: string;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
export declare function AsyncBoundary({ suspenseFallback: SuspenseFallback, errorFallback
|
|
96
|
+
export declare function AsyncBoundary({ suspenseFallback: SuspenseFallback, errorFallback, children, }: AsyncBoundaryProps): JSX.Element;
|
|
97
97
|
|
|
98
98
|
declare interface AsyncBoundaryProps extends React.PropsWithChildren {
|
|
99
99
|
suspenseFallback?: React.ComponentType;
|
|
@@ -274,6 +274,15 @@ declare interface DeliveryScope {
|
|
|
274
274
|
twitter?: number | null;
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
+
declare interface ErrorBoundaryProps extends React.PropsWithChildren {
|
|
278
|
+
errorFallback?: React.ComponentType<{
|
|
279
|
+
error?: Error | unknown;
|
|
280
|
+
onRetry?: () => void;
|
|
281
|
+
}>;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export declare function ErrorBundary({ errorFallback: ErrorFallback, children, }: ErrorBoundaryProps): JSX.Element;
|
|
285
|
+
|
|
277
286
|
export declare function ErrorCard({ icon: Icon, title, description, onRetry, tip, className, ...props }: ErrorCardProps): JSX.Element;
|
|
278
287
|
|
|
279
288
|
declare interface ErrorCardProps extends React.ComponentProps<typeof Card> {
|
package/dist/components.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { aZ as v, c as u, B as N, a_ as z, aq as M, ar as T, as as R, w as O, F as
|
|
2
|
-
import { M as K, s as W } from "./chuncks/youtube-icon.component.
|
|
3
|
-
import { t as We,
|
|
1
|
+
import { aZ as v, c as u, B as N, a_ as z, aq as M, ar as T, as as R, w as O, F as B, W as $, X as j, $ as C, _ as q, Y as P, a0 as U } from "./chuncks/switch.D_38xWg-.js";
|
|
2
|
+
import { M as K, s as W } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
|
|
3
|
+
import { t as We, L as Xe, O as Ge, u as Qe, H as Ve, Y as Ye, a4 as Ze, Z as Je, _ as et, J as tt, $ as nt, a5 as at, a0 as rt, a1 as st, a2 as it, a3 as ot, K as lt, Q as dt, a6 as ct, a7 as gt, ac as ut, w as pt, x as xt, y as mt, z as bt, G as ht, a8 as ft, U as yt, X as wt, W as vt, a9 as kt, aa as Nt, ab as Ct, ae as St, ad as It } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
|
|
4
4
|
import { jsxs as g, jsx as e, Fragment as A } from "react/jsx-runtime";
|
|
5
|
-
import S, { useState as F, useRef as D, useEffect as
|
|
6
|
-
import { B as
|
|
5
|
+
import S, { useState as F, useRef as D, useEffect as E, useMemo as X } from "react";
|
|
6
|
+
import { B as H, m as G, T as Q, k as V, l as Y, S as k } from "./chuncks/badge.tZcF7uIJ.js";
|
|
7
7
|
import { parseISO as I, differenceInCalendarDays as Z, format as J } from "date-fns";
|
|
8
8
|
import { u as ee, a as te } from "./chuncks/use-shared-app-modules.hook.uZhjsTQ0.js";
|
|
9
9
|
import "./chuncks/shared-app-modules.provider.DRJ7n4Cj.js";
|
|
@@ -120,7 +120,7 @@ function Ae({
|
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
|
-
i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((l, h) => /* @__PURE__ */ g(
|
|
123
|
+
i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((l, h) => /* @__PURE__ */ g(H, { children: [
|
|
124
124
|
/* @__PURE__ */ e(
|
|
125
125
|
"button",
|
|
126
126
|
{
|
|
@@ -218,10 +218,10 @@ function De({
|
|
|
218
218
|
const n = i ? me[t] : xe[t], o = a ? _[a] : _.md;
|
|
219
219
|
return /* @__PURE__ */ e("div", { className: u("w-fit p-2 rounded-lg", n?.bg, r), children: /* @__PURE__ */ e(s, { className: u(o, n?.text) }) });
|
|
220
220
|
}
|
|
221
|
-
function
|
|
221
|
+
function Ee({ className: a, ...t }) {
|
|
222
222
|
return /* @__PURE__ */ e("div", { className: u("divide-y", a), ...t });
|
|
223
223
|
}
|
|
224
|
-
function
|
|
224
|
+
function He({
|
|
225
225
|
label: a,
|
|
226
226
|
value: t,
|
|
227
227
|
tooltip: r,
|
|
@@ -285,7 +285,7 @@ function Le({
|
|
|
285
285
|
)
|
|
286
286
|
] }) });
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Le({
|
|
289
289
|
icon: a = ge,
|
|
290
290
|
title: t,
|
|
291
291
|
description: r,
|
|
@@ -293,7 +293,7 @@ function Ee({
|
|
|
293
293
|
className: i,
|
|
294
294
|
...n
|
|
295
295
|
}) {
|
|
296
|
-
return /* @__PURE__ */ e(O, { className: u(i), ...n, children: /* @__PURE__ */ g(
|
|
296
|
+
return /* @__PURE__ */ e(O, { className: u(i), ...n, children: /* @__PURE__ */ g(B, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
297
297
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
|
|
298
298
|
a,
|
|
299
299
|
{
|
|
@@ -311,7 +311,7 @@ function Oe({
|
|
|
311
311
|
icon: t = oe
|
|
312
312
|
}) {
|
|
313
313
|
const [r, s] = F(!1), i = D(null);
|
|
314
|
-
return
|
|
314
|
+
return E(() => {
|
|
315
315
|
if (!r) return;
|
|
316
316
|
const n = (d) => {
|
|
317
317
|
i.current?.contains(d.target) || s(!1);
|
|
@@ -374,17 +374,17 @@ function Oe({
|
|
|
374
374
|
}
|
|
375
375
|
) });
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Be({
|
|
378
378
|
columns: a = 9,
|
|
379
379
|
rows: t = 20,
|
|
380
380
|
hasActions: r = !1,
|
|
381
381
|
actionsCount: s = 1
|
|
382
382
|
}) {
|
|
383
|
-
return /* @__PURE__ */ g(
|
|
384
|
-
/* @__PURE__ */ e(
|
|
383
|
+
return /* @__PURE__ */ g($, { children: [
|
|
384
|
+
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i, n) => {
|
|
385
385
|
const o = r && n === a - 1;
|
|
386
386
|
return /* @__PURE__ */ e(
|
|
387
|
-
|
|
387
|
+
q,
|
|
388
388
|
{
|
|
389
389
|
className: o ? "w-0 text-right" : "",
|
|
390
390
|
children: /* @__PURE__ */ e(
|
|
@@ -403,15 +403,15 @@ function $e({
|
|
|
403
403
|
}) }, n)) })
|
|
404
404
|
] });
|
|
405
405
|
}
|
|
406
|
-
const be = "@[__display__](__id__)",
|
|
406
|
+
const be = "@[__display__](__id__)", L = /@\[([^\]]+)\]\(([^)]+)\)/g;
|
|
407
407
|
function he(a) {
|
|
408
|
-
const t = [], r = new RegExp(
|
|
408
|
+
const t = [], r = new RegExp(L);
|
|
409
409
|
let s;
|
|
410
410
|
for (; (s = r.exec(a)) !== null; )
|
|
411
411
|
t.push({ display: s[1], id: s[2] });
|
|
412
412
|
return t;
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function $e(a) {
|
|
415
415
|
return he(a).map((t) => ({
|
|
416
416
|
userId: t.id,
|
|
417
417
|
username: t.display
|
|
@@ -488,7 +488,7 @@ const ye = {
|
|
|
488
488
|
borderRadius: 4,
|
|
489
489
|
padding: "1px 2px"
|
|
490
490
|
};
|
|
491
|
-
function
|
|
491
|
+
function je({
|
|
492
492
|
value: a,
|
|
493
493
|
onChange: t,
|
|
494
494
|
onBlur: r,
|
|
@@ -501,7 +501,7 @@ function qe({
|
|
|
501
501
|
() => m?.map((c) => ({ id: c._id, display: c.username })) ?? [],
|
|
502
502
|
[m]
|
|
503
503
|
);
|
|
504
|
-
return
|
|
504
|
+
return E(() => {
|
|
505
505
|
y.current?.(f);
|
|
506
506
|
}, [f]), /* @__PURE__ */ e(
|
|
507
507
|
K,
|
|
@@ -530,14 +530,14 @@ function qe({
|
|
|
530
530
|
}
|
|
531
531
|
);
|
|
532
532
|
}
|
|
533
|
-
function
|
|
534
|
-
const r = new RegExp(
|
|
533
|
+
function qe({ text: a, className: t }) {
|
|
534
|
+
const r = new RegExp(L), s = [];
|
|
535
535
|
let i = 0, n, o = 0;
|
|
536
536
|
for (; (n = r.exec(a)) !== null; )
|
|
537
537
|
n.index > i && s.push(
|
|
538
538
|
/* @__PURE__ */ e("span", { children: a.slice(i, n.index) }, o++)
|
|
539
539
|
), s.push(
|
|
540
|
-
/* @__PURE__ */ g(
|
|
540
|
+
/* @__PURE__ */ g(H, { variant: "secondary", className: t, children: [
|
|
541
541
|
"@",
|
|
542
542
|
n[1]
|
|
543
543
|
] }, o++)
|
|
@@ -572,47 +572,48 @@ export {
|
|
|
572
572
|
Ae as AttachmentInput,
|
|
573
573
|
Xe as CampaignsSelectInput,
|
|
574
574
|
Ge as ClientSelectInput,
|
|
575
|
-
Qe as
|
|
576
|
-
Ve as
|
|
577
|
-
Ye as
|
|
578
|
-
Ze as
|
|
579
|
-
Je as
|
|
580
|
-
et as
|
|
581
|
-
tt as
|
|
582
|
-
nt as
|
|
583
|
-
at as
|
|
584
|
-
rt as
|
|
585
|
-
st as
|
|
586
|
-
it as
|
|
575
|
+
Qe as ErrorBundary,
|
|
576
|
+
Ve as ErrorCard,
|
|
577
|
+
Ye as FieldCalendar,
|
|
578
|
+
Ze as FieldCheckbox,
|
|
579
|
+
Je as FieldClientSelectInput,
|
|
580
|
+
et as FieldInput,
|
|
581
|
+
tt as FieldLabelWithAsterisk,
|
|
582
|
+
nt as FieldProfileSelectInput,
|
|
583
|
+
at as FieldResponsibleSelectInput,
|
|
584
|
+
rt as FieldSaleSelectInput,
|
|
585
|
+
st as FieldSelect,
|
|
586
|
+
it as FieldSwitch,
|
|
587
|
+
ot as FieldTextarea,
|
|
587
588
|
Fe as HoverContent,
|
|
588
589
|
De as IconBadge,
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
590
|
+
lt as Image,
|
|
591
|
+
dt as InfluencerSelectInput,
|
|
592
|
+
ct as InstagramIcon,
|
|
593
|
+
gt as LinkedInIcon,
|
|
594
|
+
Ee as List,
|
|
595
|
+
He as ListRow,
|
|
596
|
+
je as MentionInput,
|
|
597
|
+
qe as MentionText,
|
|
598
|
+
ut as ModuleTags,
|
|
599
|
+
Le as NotFoundCard,
|
|
600
|
+
pt as PageHeader,
|
|
601
|
+
xt as PageHeaderActions,
|
|
602
|
+
mt as PageHeaderContent,
|
|
603
|
+
bt as PageHeaderDescription,
|
|
604
|
+
ht as PageHeaderTitle,
|
|
605
|
+
ft as PinterestIcon,
|
|
606
|
+
yt as ProfileSelectInput,
|
|
607
|
+
wt as ResponsibleSelectInput,
|
|
608
|
+
vt as SaleSelectInput,
|
|
608
609
|
Oe as SpeedDialButton,
|
|
609
|
-
|
|
610
|
-
|
|
610
|
+
Be as TableSkeleton,
|
|
611
|
+
kt as TikTokIcon,
|
|
611
612
|
Pe as TwitterIcon,
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
613
|
+
Nt as XIcon,
|
|
614
|
+
Ct as YoutubeIcon,
|
|
615
|
+
$e as getMentionedUsers,
|
|
615
616
|
he as parseMentions,
|
|
616
|
-
|
|
617
|
-
|
|
617
|
+
St as useGetTags,
|
|
618
|
+
It as useModuleTags
|
|
618
619
|
};
|
package/dist/constants.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export declare const banks: {
|
|
|
22
22
|
export declare const BUSINESS_UNIT_VALUES: {
|
|
23
23
|
readonly service: "Atendimento";
|
|
24
24
|
readonly comercial: "Comercial";
|
|
25
|
+
readonly artistic: "Agenciamento Artístico";
|
|
25
26
|
readonly squad_a: "Squad A";
|
|
26
27
|
readonly squad_b: "Squad B";
|
|
27
28
|
};
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { b as n, A as m, B as S, C as A, D as c, E as N, F as E, I as g, N as l, a as _, d as p, P as B, R as r, c as s, e as i, S as t, T, V as I } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
|
|
2
2
|
const o = [
|
|
3
3
|
{
|
|
4
4
|
compe: "001",
|
package/dist/dictionaries.d.ts
CHANGED
|
@@ -50,25 +50,27 @@ export declare const businessUnitDict: {
|
|
|
50
50
|
data: {
|
|
51
51
|
readonly service: "Atendimento";
|
|
52
52
|
readonly comercial: "Comercial";
|
|
53
|
+
readonly artistic: "Agenciamento Artístico";
|
|
53
54
|
readonly squad_a: "Squad A";
|
|
54
55
|
readonly squad_b: "Squad B";
|
|
55
56
|
};
|
|
56
|
-
values: ("service" | "comercial" | "squad_a" | "squad_b")[];
|
|
57
|
-
labels: ("Atendimento" | "Comercial" | "Squad A" | "Squad B")[];
|
|
57
|
+
values: ("service" | "comercial" | "artistic" | "squad_a" | "squad_b")[];
|
|
58
|
+
labels: ("Atendimento" | "Comercial" | "Agenciamento Artístico" | "Squad A" | "Squad B")[];
|
|
58
59
|
getLabel: {
|
|
59
|
-
<K extends "service" | "comercial" | "squad_a" | "squad_b">(value: K): {
|
|
60
|
+
<K extends "service" | "comercial" | "artistic" | "squad_a" | "squad_b">(value: K): {
|
|
60
61
|
readonly service: "Atendimento";
|
|
61
62
|
readonly comercial: "Comercial";
|
|
63
|
+
readonly artistic: "Agenciamento Artístico";
|
|
62
64
|
readonly squad_a: "Squad A";
|
|
63
65
|
readonly squad_b: "Squad B";
|
|
64
66
|
}[K];
|
|
65
|
-
(value?: string | number | symbol | null): "Atendimento" | "Comercial" | "Squad A" | "Squad B" | null;
|
|
67
|
+
(value?: string | number | symbol | null): "Atendimento" | "Comercial" | "Agenciamento Artístico" | "Squad A" | "Squad B" | null;
|
|
66
68
|
};
|
|
67
69
|
options: {
|
|
68
|
-
value: "service" | "comercial" | "squad_a" | "squad_b";
|
|
69
|
-
label: "Atendimento" | "Comercial" | "Squad A" | "Squad B";
|
|
70
|
+
value: "service" | "comercial" | "artistic" | "squad_a" | "squad_b";
|
|
71
|
+
label: "Atendimento" | "Comercial" | "Agenciamento Artístico" | "Squad A" | "Squad B";
|
|
70
72
|
}[];
|
|
71
|
-
is(value?: string | number | symbol | null): value is "service" | "comercial" | "squad_a" | "squad_b";
|
|
73
|
+
is(value?: string | number | symbol | null): value is "service" | "comercial" | "artistic" | "squad_a" | "squad_b";
|
|
72
74
|
};
|
|
73
75
|
|
|
74
76
|
export declare const clientTypeDict: {
|
package/dist/dictionaries.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chuncks/switch.D_38xWg-.js";
|
|
2
|
-
import {
|
|
2
|
+
import { ai as D, ah as m, af as n, aj as l, ao as y, al as h, ak as k, an as P, aq as T, ap as f, ag as g, am as u } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import "@tanstack/react-query";
|
package/dist/events.js
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ declare const ACTION_STATUS_VALUES: {
|
|
|
9
9
|
declare const BUSINESS_UNIT_VALUES: {
|
|
10
10
|
readonly service: "Atendimento";
|
|
11
11
|
readonly comercial: "Comercial";
|
|
12
|
+
readonly artistic: "Agenciamento Artístico";
|
|
12
13
|
readonly squad_a: "Squad A";
|
|
13
14
|
readonly squad_b: "Squad B";
|
|
14
15
|
};
|
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as o } from "./chuncks/format.util.
|
|
2
|
-
import { g as D, h as E, f as L, b, d as h, m as k, c as C, e as _, a as I, p as U, u as O } from "./chuncks/format.util.
|
|
3
|
-
import { f as n } from "./chuncks/youtube-icon.component.
|
|
4
|
-
import { r as N, p as x, n as A, j as F, h as T, l as j, i as w, m as G, k as V, g as z, o as B, q as R, v as J } from "./chuncks/youtube-icon.component.
|
|
1
|
+
import { U as o } from "./chuncks/format.util.BUmWGiJF.js";
|
|
2
|
+
import { g as D, h as E, f as L, b, d as h, m as k, c as C, e as _, a as I, p as U, u as O } from "./chuncks/format.util.BUmWGiJF.js";
|
|
3
|
+
import { f as n } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
|
|
4
|
+
import { r as N, p as x, n as A, j as F, h as T, l as j, i as w, m as G, k as V, g as z, o as B, q as R, v as J } from "./chuncks/youtube-icon.component.CU9RpVNh.js";
|
|
5
5
|
const i = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", c = (e, r) => r ? `${r} deve ter no mínimo ${e} caracteres.` : `Deve ter no mínimo ${e} caracteres.`, m = (e, r) => r ? `${r} deve ter no máximo ${e} caracteres.` : `Deve ter no máximo ${e} caracteres.`, u = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, p = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, f = (e) => e ? `${e} inválido.` : "Valor inválido.", g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
invalidMessage: f,
|