@grapadigital/shared-app-modules 0.0.202 → 0.0.204
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/action.d.ts +1 -1
- package/dist/assets/switch.css +1 -1
- package/dist/chuncks/{format.util.GNsuhUxt.js → format.util.CxhILG2b.js} +1 -1
- package/dist/chuncks/{organization-users.service.BCM_WcCz.js → organization-users.service.CUZsF7go.js} +1 -1
- package/dist/chuncks/{use-shared-app-modules.hook.B3x4jLx3.js → use-shared-app-modules.hook.uZhjsTQ0.js} +16 -17
- package/dist/chuncks/{youtube-icon.component.BiPOuPjz.js → youtube-icon.component.DgmjX6Bz.js} +7 -15
- package/dist/components.d.ts +3 -2
- package/dist/components.js +133 -132
- package/dist/constants.d.ts +2 -6
- package/dist/constants.js +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/dictionaries.d.ts +14 -22
- package/dist/dictionaries.js +1 -1
- package/dist/events.js +1 -1
- package/dist/hooks.js +3 -3
- package/dist/invoice.d.ts +1 -1
- package/dist/payment.d.ts +1 -1
- package/dist/recruitment.d.ts +1 -1
- package/dist/sale.d.ts +1 -1
- package/dist/utils.d.ts +2 -6
- package/dist/utils.js +4 -4
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
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 $, W as j, X as q, $ as C, _ as B, Y as P, a0 as U } from "./chuncks/switch.D_38xWg-.js";
|
|
2
|
-
import { M as K, r as W } from "./chuncks/youtube-icon.component.
|
|
3
|
-
import { s as We, J as Xe, K as Ge, z as Qe, W as Ve, a2 as Ye, X as Ze, Y as Je, G as et, Z as tt, a3 as nt, _ as at, $ as rt, a0 as st, a1 as it, H as ot, L as lt, a4 as dt, a5 as ct, aa as gt, t as ut, u as pt, w as xt, x as mt, y as bt, a6 as ht, O as ft, U as yt, Q as wt, a7 as vt, a8 as kt, a9 as Nt, ac as Ct, ab as St } from "./chuncks/youtube-icon.component.
|
|
4
|
-
import { jsxs as
|
|
2
|
+
import { M as K, r as W } from "./chuncks/youtube-icon.component.DgmjX6Bz.js";
|
|
3
|
+
import { s as We, J as Xe, K as Ge, z as Qe, W as Ve, a2 as Ye, X as Ze, Y as Je, G as et, Z as tt, a3 as nt, _ as at, $ as rt, a0 as st, a1 as it, H as ot, L as lt, a4 as dt, a5 as ct, aa as gt, t as ut, u as pt, w as xt, x as mt, y as bt, a6 as ht, O as ft, U as yt, Q as wt, a7 as vt, a8 as kt, a9 as Nt, ac as Ct, ab as St } from "./chuncks/youtube-icon.component.DgmjX6Bz.js";
|
|
4
|
+
import { jsxs as g, jsx as e, Fragment as A } from "react/jsx-runtime";
|
|
5
5
|
import S, { useState as F, useRef as D, useEffect as H, useMemo as X } from "react";
|
|
6
6
|
import { B as L, 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
|
-
import { u as ee, a as te } from "./chuncks/use-shared-app-modules.hook.
|
|
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";
|
|
10
10
|
import { useQuery as ne } from "@tanstack/react-query";
|
|
11
11
|
import "axios";
|
|
12
|
-
import { l as ae } from "./chuncks/organization-users.service.
|
|
12
|
+
import { l as ae } from "./chuncks/organization-users.service.CUZsF7go.js";
|
|
13
13
|
const re = [
|
|
14
14
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
15
15
|
["line", { x1: "12", x2: "12", y1: "8", y2: "12", key: "1pkeuh" }],
|
|
@@ -44,44 +44,44 @@ const ue = [
|
|
|
44
44
|
], pe = v("upload", ue);
|
|
45
45
|
function Ae({
|
|
46
46
|
icon: a = pe,
|
|
47
|
-
title:
|
|
47
|
+
title: t = "Enviar arquivos",
|
|
48
48
|
description: r = "Arraste e solte os arquivos aqui ou clique para selecionar.",
|
|
49
49
|
buttonText: s = "Selecionar novos arquivos",
|
|
50
50
|
files: i,
|
|
51
|
-
disabled:
|
|
51
|
+
disabled: n,
|
|
52
52
|
onFilesChange: o,
|
|
53
|
-
...
|
|
53
|
+
...d
|
|
54
54
|
}) {
|
|
55
|
-
const [x,
|
|
56
|
-
const
|
|
57
|
-
o([...i, ...
|
|
58
|
-
}, f = (
|
|
59
|
-
const
|
|
60
|
-
|
|
55
|
+
const [x, b] = S.useState(!1), m = S.useRef(null), y = (l) => {
|
|
56
|
+
const h = Array.from(l.target.files ?? []);
|
|
57
|
+
o([...i, ...h]);
|
|
58
|
+
}, f = (l) => {
|
|
59
|
+
const h = [...i];
|
|
60
|
+
h.splice(l, 1), o(h);
|
|
61
61
|
};
|
|
62
|
-
function
|
|
63
|
-
|
|
62
|
+
function w(l) {
|
|
63
|
+
l.preventDefault(), b(!0);
|
|
64
64
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
65
|
+
function c(l) {
|
|
66
|
+
l.preventDefault(), b(!1);
|
|
67
67
|
}
|
|
68
|
-
function
|
|
69
|
-
|
|
70
|
-
const
|
|
71
|
-
o([...i, ...
|
|
68
|
+
function p(l) {
|
|
69
|
+
l.preventDefault(), b(!1);
|
|
70
|
+
const h = Array.from(l.dataTransfer.files);
|
|
71
|
+
o([...i, ...h]);
|
|
72
72
|
}
|
|
73
|
-
return /* @__PURE__ */
|
|
73
|
+
return /* @__PURE__ */ g(
|
|
74
74
|
"div",
|
|
75
75
|
{
|
|
76
|
-
onDragOver:
|
|
77
|
-
onDragLeave:
|
|
78
|
-
onDrop:
|
|
76
|
+
onDragOver: w,
|
|
77
|
+
onDragLeave: c,
|
|
78
|
+
onDrop: p,
|
|
79
79
|
className: u(
|
|
80
80
|
"w-full space-y-3",
|
|
81
|
-
|
|
81
|
+
n && "pointer-events-none opacity-60 select-none"
|
|
82
82
|
),
|
|
83
83
|
children: [
|
|
84
|
-
/* @__PURE__ */
|
|
84
|
+
/* @__PURE__ */ g(
|
|
85
85
|
"div",
|
|
86
86
|
{
|
|
87
87
|
className: u(
|
|
@@ -93,24 +93,24 @@ function Ae({
|
|
|
93
93
|
"input",
|
|
94
94
|
{
|
|
95
95
|
multiple: !0,
|
|
96
|
-
...
|
|
96
|
+
...d,
|
|
97
97
|
ref: m,
|
|
98
98
|
type: "file",
|
|
99
99
|
className: "hidden",
|
|
100
|
-
onChange:
|
|
101
|
-
disabled:
|
|
100
|
+
onChange: y,
|
|
101
|
+
disabled: n
|
|
102
102
|
}
|
|
103
103
|
),
|
|
104
104
|
/* @__PURE__ */ e("div", { className: "w-fit mx-auto", children: /* @__PURE__ */ e(a, { className: "text-muted-foreground size-8" }) }),
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
/* @__PURE__ */ e("h3", { className: "font-semibold", children:
|
|
105
|
+
/* @__PURE__ */ g("div", { children: [
|
|
106
|
+
/* @__PURE__ */ e("h3", { className: "font-semibold", children: t }),
|
|
107
107
|
/* @__PURE__ */ e("p", { className: "text-muted-foreground text-sm", children: r })
|
|
108
108
|
] }),
|
|
109
109
|
/* @__PURE__ */ e(
|
|
110
110
|
N,
|
|
111
111
|
{
|
|
112
112
|
type: "button",
|
|
113
|
-
disabled:
|
|
113
|
+
disabled: n,
|
|
114
114
|
size: "sm",
|
|
115
115
|
onClick: () => m.current?.click(),
|
|
116
116
|
className: "w-fit mx-auto",
|
|
@@ -120,38 +120,38 @@ function Ae({
|
|
|
120
120
|
]
|
|
121
121
|
}
|
|
122
122
|
),
|
|
123
|
-
i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((
|
|
123
|
+
i.length > 0 && /* @__PURE__ */ e("div", { className: "flex flex-wrap gap-2", children: i.map((l, h) => /* @__PURE__ */ g(L, { children: [
|
|
124
124
|
/* @__PURE__ */ e(
|
|
125
125
|
"button",
|
|
126
126
|
{
|
|
127
|
-
onClick: () => f(
|
|
127
|
+
onClick: () => f(h),
|
|
128
128
|
className: "hover:text-red-500",
|
|
129
129
|
"aria-label": "Remover anexo",
|
|
130
130
|
title: "Remover anexo",
|
|
131
|
-
disabled:
|
|
131
|
+
disabled: n,
|
|
132
132
|
children: /* @__PURE__ */ e(z, { className: "size-3" })
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
|
-
|
|
136
|
-
] },
|
|
135
|
+
l.name
|
|
136
|
+
] }, l.name)) })
|
|
137
137
|
]
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
140
|
}
|
|
141
141
|
function Fe({
|
|
142
142
|
content: a,
|
|
143
|
-
align:
|
|
143
|
+
align: t,
|
|
144
144
|
asChild: r,
|
|
145
145
|
className: s,
|
|
146
146
|
openDelay: i = 0,
|
|
147
|
-
closeDelay:
|
|
147
|
+
closeDelay: n = 0,
|
|
148
148
|
children: o,
|
|
149
|
-
disabled:
|
|
149
|
+
disabled: d = !1,
|
|
150
150
|
...x
|
|
151
151
|
}) {
|
|
152
|
-
return /* @__PURE__ */ e(A, { children:
|
|
152
|
+
return /* @__PURE__ */ e(A, { children: d === !0 ? o : /* @__PURE__ */ g(M, { openDelay: i, closeDelay: n, ...x, children: [
|
|
153
153
|
/* @__PURE__ */ e(T, { asChild: r, children: o }),
|
|
154
|
-
/* @__PURE__ */ e(R, { align:
|
|
154
|
+
/* @__PURE__ */ e(R, { align: t, className: s, children: a })
|
|
155
155
|
] }) });
|
|
156
156
|
}
|
|
157
157
|
const xe = {
|
|
@@ -210,45 +210,46 @@ const xe = {
|
|
|
210
210
|
};
|
|
211
211
|
function De({
|
|
212
212
|
size: a,
|
|
213
|
-
color:
|
|
213
|
+
color: t,
|
|
214
214
|
className: r,
|
|
215
215
|
icon: s,
|
|
216
216
|
filled: i
|
|
217
217
|
}) {
|
|
218
|
-
const
|
|
219
|
-
return /* @__PURE__ */ e("div", { className: u("w-fit p-2 rounded-lg",
|
|
218
|
+
const n = i ? me[t] : xe[t], o = a ? _[a] : _.md;
|
|
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 He({ className: a, ...
|
|
222
|
-
return /* @__PURE__ */ e("div", { className: u("divide-y", a), ...
|
|
221
|
+
function He({ className: a, ...t }) {
|
|
222
|
+
return /* @__PURE__ */ e("div", { className: u("divide-y", a), ...t });
|
|
223
223
|
}
|
|
224
224
|
function Le({
|
|
225
225
|
label: a,
|
|
226
|
-
value:
|
|
226
|
+
value: t,
|
|
227
227
|
tooltip: r,
|
|
228
228
|
highlight: s = !1,
|
|
229
229
|
negative: i = !1,
|
|
230
|
-
positive:
|
|
230
|
+
positive: n = !1,
|
|
231
231
|
isPercentage: o = !1,
|
|
232
|
-
isDate:
|
|
232
|
+
isDate: d = !1,
|
|
233
233
|
isText: x = !1,
|
|
234
|
-
isInvoiced:
|
|
234
|
+
isInvoiced: b = !1,
|
|
235
235
|
hasCopyButton: m = !1,
|
|
236
|
-
|
|
237
|
-
|
|
236
|
+
contrast: y = !1,
|
|
237
|
+
enableHoverableContent: f = !1,
|
|
238
|
+
handleCopy: w
|
|
238
239
|
}) {
|
|
239
|
-
let
|
|
240
|
-
if (
|
|
241
|
-
const p = I(
|
|
242
|
-
|
|
243
|
-
} else s && (
|
|
244
|
-
return /* @__PURE__ */ e("div", { className: u("px-2 py-1 text-sm",
|
|
245
|
-
/* @__PURE__ */ e(T, { children: /* @__PURE__ */
|
|
246
|
-
/* @__PURE__ */
|
|
240
|
+
let c = "";
|
|
241
|
+
if (d && typeof t == "string" && t !== "" && !b && s) {
|
|
242
|
+
const p = I(t), l = Z(p, /* @__PURE__ */ new Date());
|
|
243
|
+
l > 15 ? c = "bg-yellow-100 font-bold" : l > 7 ? c = "bg-yellow-300 font-bold" : l >= 0 ? c = "bg-red-300 font-bold" : c = "bg-red-500 text-white font-bold";
|
|
244
|
+
} else s && (c = "bg-orange-100 font-bold");
|
|
245
|
+
return y && (c = "bg-orange-100 font-bold"), /* @__PURE__ */ e("div", { className: u("px-2 py-1 text-sm", c), children: /* @__PURE__ */ g(M, { openDelay: 0, closeDelay: 0, children: [
|
|
246
|
+
/* @__PURE__ */ e(T, { children: /* @__PURE__ */ g("div", { className: "flex justify-between", children: [
|
|
247
|
+
/* @__PURE__ */ g(
|
|
247
248
|
"span",
|
|
248
249
|
{
|
|
249
250
|
className: u(
|
|
250
251
|
"flex flex-row gap-1",
|
|
251
|
-
i ? "text-red-600" :
|
|
252
|
+
i ? "text-red-600" : n ? "text-green-600" : ""
|
|
252
253
|
),
|
|
253
254
|
children: [
|
|
254
255
|
a,
|
|
@@ -257,16 +258,16 @@ function Le({
|
|
|
257
258
|
]
|
|
258
259
|
}
|
|
259
260
|
),
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
+
/* @__PURE__ */ g(
|
|
261
262
|
"span",
|
|
262
263
|
{
|
|
263
264
|
className: u(
|
|
264
265
|
"flex flex-row justify-end gap-2 text-right",
|
|
265
|
-
i ? "text-red-600" :
|
|
266
|
+
i ? "text-red-600" : n ? "text-green-600" : ""
|
|
266
267
|
),
|
|
267
268
|
children: [
|
|
268
|
-
o && typeof
|
|
269
|
-
m &&
|
|
269
|
+
o && typeof t == "number" ? `${t.toFixed(2)}%` : d && typeof t == "string" && t !== "" ? J(I(t), "dd/MM/yyyy") : d && t === "" ? "—" : x ? t ?? "—" : typeof t == "number" ? `R$ ${t.toLocaleString("pt-BR", { minimumFractionDigits: 2, maximumFractionDigits: 2 })}` : "—",
|
|
270
|
+
m && w ? /* @__PURE__ */ e(de, { size: 15, onClick: () => w(t) }) : null
|
|
270
271
|
]
|
|
271
272
|
}
|
|
272
273
|
)
|
|
@@ -275,8 +276,8 @@ function Le({
|
|
|
275
276
|
R,
|
|
276
277
|
{
|
|
277
278
|
align: "start",
|
|
278
|
-
className: u(!
|
|
279
|
-
children: /* @__PURE__ */
|
|
279
|
+
className: u(!f && "pointer-events-none"),
|
|
280
|
+
children: /* @__PURE__ */ g("div", { className: "space-y-0.5", children: [
|
|
280
281
|
/* @__PURE__ */ e("div", { className: "font-medium", children: a }),
|
|
281
282
|
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: r })
|
|
282
283
|
] })
|
|
@@ -286,13 +287,13 @@ function Le({
|
|
|
286
287
|
}
|
|
287
288
|
function Ee({
|
|
288
289
|
icon: a = ge,
|
|
289
|
-
title:
|
|
290
|
+
title: t,
|
|
290
291
|
description: r,
|
|
291
292
|
tip: s,
|
|
292
293
|
className: i,
|
|
293
|
-
...
|
|
294
|
+
...n
|
|
294
295
|
}) {
|
|
295
|
-
return /* @__PURE__ */ e(O, { className: u(i), ...
|
|
296
|
+
return /* @__PURE__ */ e(O, { className: u(i), ...n, children: /* @__PURE__ */ g($, { className: "flex flex-col items-center justify-center px-6 py-12 text-center", children: [
|
|
296
297
|
/* @__PURE__ */ e("div", { className: "relative mb-4", children: /* @__PURE__ */ e(
|
|
297
298
|
a,
|
|
298
299
|
{
|
|
@@ -300,33 +301,33 @@ function Ee({
|
|
|
300
301
|
className: "size-16 text-muted-foreground/40"
|
|
301
302
|
}
|
|
302
303
|
) }),
|
|
303
|
-
/* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children:
|
|
304
|
+
/* @__PURE__ */ e("h3", { className: "mb-2 text-lg font-semibold text-foreground", children: t }),
|
|
304
305
|
/* @__PURE__ */ e("p", { className: "max-w-md text-sm leading-relaxed text-muted-foreground", children: r }),
|
|
305
306
|
s && /* @__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: s }) })
|
|
306
307
|
] }) });
|
|
307
308
|
}
|
|
308
309
|
function Oe({
|
|
309
310
|
actions: a,
|
|
310
|
-
icon:
|
|
311
|
+
icon: t = oe
|
|
311
312
|
}) {
|
|
312
313
|
const [r, s] = F(!1), i = D(null);
|
|
313
314
|
return H(() => {
|
|
314
315
|
if (!r) return;
|
|
315
|
-
const
|
|
316
|
-
i.current?.contains(
|
|
317
|
-
}, o = (
|
|
318
|
-
|
|
316
|
+
const n = (d) => {
|
|
317
|
+
i.current?.contains(d.target) || s(!1);
|
|
318
|
+
}, o = (d) => {
|
|
319
|
+
d.key === "Escape" && s(!1);
|
|
319
320
|
};
|
|
320
|
-
return document.addEventListener("mousedown",
|
|
321
|
-
document.removeEventListener("mousedown",
|
|
321
|
+
return document.addEventListener("mousedown", n), document.addEventListener("keydown", o), () => {
|
|
322
|
+
document.removeEventListener("mousedown", n), document.removeEventListener("keydown", o);
|
|
322
323
|
};
|
|
323
|
-
}, [r]), /* @__PURE__ */ e(G, { children: /* @__PURE__ */
|
|
324
|
+
}, [r]), /* @__PURE__ */ e(G, { children: /* @__PURE__ */ g(
|
|
324
325
|
"div",
|
|
325
326
|
{
|
|
326
327
|
ref: i,
|
|
327
328
|
className: "fixed bottom-6 right-6 z-50 flex flex-col items-end gap-3",
|
|
328
329
|
children: [
|
|
329
|
-
/* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-3", children: a.map((
|
|
330
|
+
/* @__PURE__ */ e("div", { className: "flex flex-col items-end gap-3", children: a.map((n, o) => /* @__PURE__ */ e(
|
|
330
331
|
"div",
|
|
331
332
|
{
|
|
332
333
|
className: u(
|
|
@@ -334,28 +335,28 @@ function Oe({
|
|
|
334
335
|
r ? "translate-y-0 opacity-100" : "pointer-events-none translate-y-2 opacity-0"
|
|
335
336
|
),
|
|
336
337
|
style: { transitionDelay: r ? `${o * 30}ms` : "0ms" },
|
|
337
|
-
children: /* @__PURE__ */
|
|
338
|
+
children: /* @__PURE__ */ g(Q, { children: [
|
|
338
339
|
/* @__PURE__ */ e(V, { asChild: !0, children: /* @__PURE__ */ e(
|
|
339
340
|
N,
|
|
340
341
|
{
|
|
341
342
|
size: "icon",
|
|
342
343
|
variant: "outline",
|
|
343
|
-
disabled:
|
|
344
|
-
"aria-disabled":
|
|
344
|
+
disabled: n.disabled,
|
|
345
|
+
"aria-disabled": n.disabled,
|
|
345
346
|
className: u(
|
|
346
347
|
"size-11 rounded-full shadow-md",
|
|
347
|
-
|
|
348
|
+
n.disabled && "opacity-50"
|
|
348
349
|
),
|
|
349
350
|
onClick: () => {
|
|
350
|
-
|
|
351
|
+
n.disabled || (n.onClick(), s(!1));
|
|
351
352
|
},
|
|
352
|
-
children: /* @__PURE__ */ e(
|
|
353
|
+
children: /* @__PURE__ */ e(n.icon, { className: "size-5" })
|
|
353
354
|
}
|
|
354
355
|
) }),
|
|
355
|
-
/* @__PURE__ */ e(Y, { side: "left", children:
|
|
356
|
+
/* @__PURE__ */ e(Y, { side: "left", children: n.label })
|
|
356
357
|
] })
|
|
357
358
|
},
|
|
358
|
-
|
|
359
|
+
n.label
|
|
359
360
|
)) }),
|
|
360
361
|
/* @__PURE__ */ e(
|
|
361
362
|
N,
|
|
@@ -365,8 +366,8 @@ function Oe({
|
|
|
365
366
|
className: "size-11 rounded-full shadow-md",
|
|
366
367
|
"aria-label": r ? "Fechar menu de ajuda" : "Abrir menu de ajuda",
|
|
367
368
|
"aria-expanded": r,
|
|
368
|
-
onClick: () => s((
|
|
369
|
-
children: r ? /* @__PURE__ */ e(z, { className: "size-5" }) : /* @__PURE__ */ e(
|
|
369
|
+
onClick: () => s((n) => !n),
|
|
370
|
+
children: r ? /* @__PURE__ */ e(z, { className: "size-5" }) : /* @__PURE__ */ e(t, { className: "size-5" })
|
|
370
371
|
}
|
|
371
372
|
)
|
|
372
373
|
]
|
|
@@ -375,13 +376,13 @@ function Oe({
|
|
|
375
376
|
}
|
|
376
377
|
function $e({
|
|
377
378
|
columns: a = 9,
|
|
378
|
-
rows:
|
|
379
|
+
rows: t = 20,
|
|
379
380
|
hasActions: r = !1,
|
|
380
381
|
actionsCount: s = 1
|
|
381
382
|
}) {
|
|
382
|
-
return /* @__PURE__ */
|
|
383
|
-
/* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i,
|
|
384
|
-
const o = r &&
|
|
383
|
+
return /* @__PURE__ */ g(j, { children: [
|
|
384
|
+
/* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(C, { children: Array.from({ length: a }).map((i, n) => {
|
|
385
|
+
const o = r && n === a - 1;
|
|
385
386
|
return /* @__PURE__ */ e(
|
|
386
387
|
B,
|
|
387
388
|
{
|
|
@@ -393,39 +394,39 @@ function $e({
|
|
|
393
394
|
}
|
|
394
395
|
)
|
|
395
396
|
},
|
|
396
|
-
|
|
397
|
+
n
|
|
397
398
|
);
|
|
398
399
|
}) }) }),
|
|
399
|
-
/* @__PURE__ */ e(P, { children: Array.from({ length:
|
|
400
|
-
const x = r &&
|
|
401
|
-
return /* @__PURE__ */ e(U, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: s }).map((
|
|
402
|
-
}) },
|
|
400
|
+
/* @__PURE__ */ e(P, { children: Array.from({ length: t }).map((i, n) => /* @__PURE__ */ e(C, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((o, d) => {
|
|
401
|
+
const x = r && d === a - 1;
|
|
402
|
+
return /* @__PURE__ */ e(U, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: s }).map((b, m) => /* @__PURE__ */ e(k, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(k, { className: "h-4 w-full" }) }, d);
|
|
403
|
+
}) }, n)) })
|
|
403
404
|
] });
|
|
404
405
|
}
|
|
405
406
|
const be = "@[__display__](__id__)", E = /@\[([^\]]+)\]\(([^)]+)\)/g;
|
|
406
407
|
function he(a) {
|
|
407
|
-
const
|
|
408
|
+
const t = [], r = new RegExp(E);
|
|
408
409
|
let s;
|
|
409
410
|
for (; (s = r.exec(a)) !== null; )
|
|
410
|
-
|
|
411
|
-
return
|
|
411
|
+
t.push({ display: s[1], id: s[2] });
|
|
412
|
+
return t;
|
|
412
413
|
}
|
|
413
414
|
function je(a) {
|
|
414
|
-
return he(a).map((
|
|
415
|
-
userId:
|
|
416
|
-
username:
|
|
415
|
+
return he(a).map((t) => ({
|
|
416
|
+
userId: t.id,
|
|
417
|
+
username: t.display
|
|
417
418
|
}));
|
|
418
419
|
}
|
|
419
|
-
function fe(a,
|
|
420
|
+
function fe(a, t) {
|
|
420
421
|
const { environments: r } = ee();
|
|
421
422
|
return ne({
|
|
422
|
-
queryKey: ["organization-users", a,
|
|
423
|
+
queryKey: ["organization-users", a, t],
|
|
423
424
|
queryFn: () => ae({
|
|
424
425
|
organizationId: a,
|
|
425
|
-
search:
|
|
426
|
+
search: t,
|
|
426
427
|
environment: r.VITE_BACKEND_API_ORGANIZATION_URL ?? ""
|
|
427
428
|
}),
|
|
428
|
-
enabled: a.length > 0 &&
|
|
429
|
+
enabled: a.length > 0 && t.length > 0
|
|
429
430
|
});
|
|
430
431
|
}
|
|
431
432
|
const ye = {
|
|
@@ -489,27 +490,27 @@ const ye = {
|
|
|
489
490
|
};
|
|
490
491
|
function qe({
|
|
491
492
|
value: a,
|
|
492
|
-
onChange:
|
|
493
|
+
onChange: t,
|
|
493
494
|
onBlur: r,
|
|
494
495
|
organizationId: s,
|
|
495
496
|
placeholder: i,
|
|
496
|
-
disabled:
|
|
497
|
+
disabled: n,
|
|
497
498
|
singleLine: o = !1
|
|
498
499
|
}) {
|
|
499
|
-
const [
|
|
500
|
-
() => m?.map((
|
|
500
|
+
const [d, x] = F(""), b = te(d, 200), { data: m } = fe(s, b), y = D(void 0), f = X(
|
|
501
|
+
() => m?.map((c) => ({ id: c._id, display: c.username })) ?? [],
|
|
501
502
|
[m]
|
|
502
503
|
);
|
|
503
504
|
return H(() => {
|
|
504
|
-
|
|
505
|
+
y.current?.(f);
|
|
505
506
|
}, [f]), /* @__PURE__ */ e(
|
|
506
507
|
K,
|
|
507
508
|
{
|
|
508
509
|
value: a,
|
|
509
|
-
onChange: (
|
|
510
|
+
onChange: (c, p) => t(p),
|
|
510
511
|
onBlur: r,
|
|
511
512
|
placeholder: i,
|
|
512
|
-
disabled:
|
|
513
|
+
disabled: n,
|
|
513
514
|
singleLine: o,
|
|
514
515
|
allowSuggestionsAboveCursor: !0,
|
|
515
516
|
style: ye,
|
|
@@ -518,10 +519,10 @@ function qe({
|
|
|
518
519
|
{
|
|
519
520
|
trigger: "@",
|
|
520
521
|
markup: be,
|
|
521
|
-
data: (
|
|
522
|
-
|
|
522
|
+
data: (c, p) => {
|
|
523
|
+
y.current = p, x(c), p(f);
|
|
523
524
|
},
|
|
524
|
-
displayTransform: (
|
|
525
|
+
displayTransform: (c, p) => `@${p}`,
|
|
525
526
|
appendSpaceOnAdd: !0,
|
|
526
527
|
style: we
|
|
527
528
|
}
|
|
@@ -529,23 +530,23 @@ function qe({
|
|
|
529
530
|
}
|
|
530
531
|
);
|
|
531
532
|
}
|
|
532
|
-
function Be({ text: a, className:
|
|
533
|
+
function Be({ text: a, className: t }) {
|
|
533
534
|
const r = new RegExp(E), s = [];
|
|
534
|
-
let i = 0,
|
|
535
|
-
for (; (
|
|
536
|
-
|
|
537
|
-
/* @__PURE__ */ e("span", { children: a.slice(i,
|
|
535
|
+
let i = 0, n, o = 0;
|
|
536
|
+
for (; (n = r.exec(a)) !== null; )
|
|
537
|
+
n.index > i && s.push(
|
|
538
|
+
/* @__PURE__ */ e("span", { children: a.slice(i, n.index) }, o++)
|
|
538
539
|
), s.push(
|
|
539
|
-
/* @__PURE__ */
|
|
540
|
+
/* @__PURE__ */ g(L, { variant: "secondary", className: t, children: [
|
|
540
541
|
"@",
|
|
541
|
-
|
|
542
|
+
n[1]
|
|
542
543
|
] }, o++)
|
|
543
|
-
), i =
|
|
544
|
+
), i = n.index + n[0].length;
|
|
544
545
|
return i < a.length && s.push(/* @__PURE__ */ e("span", { children: a.slice(i) }, o++)), /* @__PURE__ */ e(A, { children: s });
|
|
545
546
|
}
|
|
546
547
|
function Pe({
|
|
547
548
|
size: a = 24,
|
|
548
|
-
color:
|
|
549
|
+
color: t = "currentColor",
|
|
549
550
|
...r
|
|
550
551
|
}) {
|
|
551
552
|
return /* @__PURE__ */ e(
|
|
@@ -556,7 +557,7 @@ function Pe({
|
|
|
556
557
|
height: a,
|
|
557
558
|
viewBox: "0 0 24 24",
|
|
558
559
|
fill: "none",
|
|
559
|
-
stroke:
|
|
560
|
+
stroke: t,
|
|
560
561
|
"stroke-width": "2",
|
|
561
562
|
"stroke-linecap": "round",
|
|
562
563
|
"stroke-linejoin": "round",
|
package/dist/constants.d.ts
CHANGED
|
@@ -3,14 +3,10 @@ import { LucideProps } from 'lucide-react';
|
|
|
3
3
|
|
|
4
4
|
export declare const ACTION_STATUS_VALUES: {
|
|
5
5
|
readonly config: "Configuração";
|
|
6
|
-
readonly
|
|
7
|
-
readonly production: "Produção";
|
|
8
|
-
readonly posting: "Postagem";
|
|
9
|
-
readonly analytics: "Analytics";
|
|
6
|
+
readonly inProgress: "Em Andamento";
|
|
10
7
|
readonly finished: "Concluído";
|
|
11
|
-
readonly onHold: "Aguardando";
|
|
12
|
-
readonly cancelled: "Cancelado";
|
|
13
8
|
readonly archived: "Arquivada";
|
|
9
|
+
readonly cancelled: "Cancelado";
|
|
14
10
|
};
|
|
15
11
|
|
|
16
12
|
export declare const ACTION_TYPE_VALUES: {
|
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.DgmjX6Bz.js";
|
|
2
2
|
const o = [
|
|
3
3
|
{
|
|
4
4
|
compe: "001",
|
package/dist/content.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare interface ActionInterface {
|
|
|
5
5
|
title?: string;
|
|
6
6
|
clientId?: string;
|
|
7
7
|
cluster?: string;
|
|
8
|
-
status?: "config" | "
|
|
8
|
+
status?: "config" | "inProgress" | "finished" | "archived" | "cancelled";
|
|
9
9
|
businessUnit?: "service" | "comercial" | "squad_a" | "squad_b";
|
|
10
10
|
startDate?: string;
|
|
11
11
|
endDate?: string;
|
package/dist/dictionaries.d.ts
CHANGED
|
@@ -1,36 +1,28 @@
|
|
|
1
1
|
export declare const actionStatusDict: {
|
|
2
2
|
data: {
|
|
3
3
|
readonly config: "Configuração";
|
|
4
|
-
readonly
|
|
5
|
-
readonly production: "Produção";
|
|
6
|
-
readonly posting: "Postagem";
|
|
7
|
-
readonly analytics: "Analytics";
|
|
4
|
+
readonly inProgress: "Em Andamento";
|
|
8
5
|
readonly finished: "Concluído";
|
|
9
|
-
readonly onHold: "Aguardando";
|
|
10
|
-
readonly cancelled: "Cancelado";
|
|
11
6
|
readonly archived: "Arquivada";
|
|
7
|
+
readonly cancelled: "Cancelado";
|
|
12
8
|
};
|
|
13
|
-
values: ("
|
|
14
|
-
labels: ("Configuração" | "
|
|
9
|
+
values: ("config" | "inProgress" | "finished" | "archived" | "cancelled")[];
|
|
10
|
+
labels: ("Configuração" | "Em Andamento" | "Concluído" | "Arquivada" | "Cancelado")[];
|
|
15
11
|
getLabel: {
|
|
16
|
-
<K extends "
|
|
12
|
+
<K extends "config" | "inProgress" | "finished" | "archived" | "cancelled">(value: K): {
|
|
17
13
|
readonly config: "Configuração";
|
|
18
|
-
readonly
|
|
19
|
-
readonly production: "Produção";
|
|
20
|
-
readonly posting: "Postagem";
|
|
21
|
-
readonly analytics: "Analytics";
|
|
14
|
+
readonly inProgress: "Em Andamento";
|
|
22
15
|
readonly finished: "Concluído";
|
|
23
|
-
readonly onHold: "Aguardando";
|
|
24
|
-
readonly cancelled: "Cancelado";
|
|
25
16
|
readonly archived: "Arquivada";
|
|
17
|
+
readonly cancelled: "Cancelado";
|
|
26
18
|
}[K];
|
|
27
|
-
(value?: string | number | symbol | null): "Configuração" | "
|
|
19
|
+
(value?: string | number | symbol | null): "Configuração" | "Em Andamento" | "Concluído" | "Arquivada" | "Cancelado" | null;
|
|
28
20
|
};
|
|
29
21
|
options: {
|
|
30
|
-
value: "
|
|
31
|
-
label: "Configuração" | "
|
|
22
|
+
value: "config" | "inProgress" | "finished" | "archived" | "cancelled";
|
|
23
|
+
label: "Configuração" | "Em Andamento" | "Concluído" | "Arquivada" | "Cancelado";
|
|
32
24
|
}[];
|
|
33
|
-
is(value?: string | number | symbol | null): value is "
|
|
25
|
+
is(value?: string | number | symbol | null): value is "config" | "inProgress" | "finished" | "archived" | "cancelled";
|
|
34
26
|
};
|
|
35
27
|
|
|
36
28
|
export declare const actionTypeDict: {
|
|
@@ -113,7 +105,7 @@ export declare const paymentPhaseDict: {
|
|
|
113
105
|
readonly canceled: "Cancelado";
|
|
114
106
|
};
|
|
115
107
|
values: ("client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled")[];
|
|
116
|
-
labels: ("
|
|
108
|
+
labels: ("Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "Aguardando" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente")[];
|
|
117
109
|
getLabel: {
|
|
118
110
|
<K extends "client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled">(value: K): {
|
|
119
111
|
readonly pending: "Revisão Atendimento";
|
|
@@ -126,11 +118,11 @@ export declare const paymentPhaseDict: {
|
|
|
126
118
|
readonly client: "Pagamento via Cliente";
|
|
127
119
|
readonly canceled: "Cancelado";
|
|
128
120
|
}[K];
|
|
129
|
-
(value?: string | number | symbol | null): "
|
|
121
|
+
(value?: string | number | symbol | null): "Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "Aguardando" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente" | null;
|
|
130
122
|
};
|
|
131
123
|
options: {
|
|
132
124
|
value: "client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled";
|
|
133
|
-
label: "
|
|
125
|
+
label: "Cancelado" | "Revisão Atendimento" | "Revisão Financeiro" | "Aguardando" | "NF Solicitada" | "NF Recebida" | "Na Fila para Pagamento" | "Pago" | "Pagamento via Cliente";
|
|
134
126
|
}[];
|
|
135
127
|
is(value?: string | number | symbol | null): value is "client" | "pending" | "review" | "awaiting" | "requested" | "received" | "queued" | "paid" | "canceled";
|
|
136
128
|
};
|