@grapadigital/shared-app-modules 0.0.168 → 0.0.170
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.Cn4q8YEt.js → format.util.iSvkH94y.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.Dq557MK6.js → youtube-icon.component.CHatcIZ3.js} +234 -218
- package/dist/components.js +11 -11
- package/dist/constants.d.ts +12 -0
- package/dist/constants.js +11 -10
- package/dist/events.js +1 -1
- package/dist/utils.d.ts +16 -1
- package/dist/utils.js +22 -21
- package/package.json +9 -9
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as b, V as N, c, $ as v, B as S, aI as C, aJ as I, aK as z, ac as H, ad as T, ah as y, ag as _, ae as
|
|
2
|
-
import {
|
|
1
|
+
import { a as b, V as N, c, $ as v, B as S, aI as C, aJ as I, aK as z, ac as H, ad as T, ah as y, ag as _, ae as A, ai as j } from "./chuncks/switch.BuckOH_X.js";
|
|
2
|
+
import { r as ge, s as xe, w as be, J as me, x as he, y as fe, F as ue, z as pe, D as ye, E as we, G as ke, H as Ne, q as ve, t as Ce, K as Ie, L as ze, l as Me, m as Fe, n as Se, o as He, p as Te, M as _e, u as Ae, v as je, N as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CHatcIZ3.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import { parseISO as w, differenceInCalendarDays as P, format as $ } from "date-fns";
|
|
@@ -158,12 +158,12 @@ function ne({
|
|
|
158
158
|
isText: x = !1,
|
|
159
159
|
isInvoiced: u = !1,
|
|
160
160
|
hasCopyButton: m = !1,
|
|
161
|
-
enableHoverableContent:
|
|
161
|
+
enableHoverableContent: M = !1,
|
|
162
162
|
handleCopy: p
|
|
163
163
|
}) {
|
|
164
164
|
let g = "";
|
|
165
165
|
if (d && typeof t == "string" && !u && n) {
|
|
166
|
-
const
|
|
166
|
+
const F = w(t), h = P(F, /* @__PURE__ */ new Date());
|
|
167
167
|
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";
|
|
168
168
|
} else n && (g = "bg-[#ffe0b2] font-bold");
|
|
169
169
|
return /* @__PURE__ */ e("div", { className: c("px-2 py-1 text-sm", g), children: /* @__PURE__ */ o(C, { openDelay: 0, closeDelay: 0, children: [
|
|
@@ -200,7 +200,7 @@ function ne({
|
|
|
200
200
|
z,
|
|
201
201
|
{
|
|
202
202
|
align: "start",
|
|
203
|
-
className: c(!
|
|
203
|
+
className: c(!M && "pointer-events-none"),
|
|
204
204
|
children: /* @__PURE__ */ o("div", { className: "space-y-0.5", children: [
|
|
205
205
|
/* @__PURE__ */ e("div", { className: "font-medium", children: a }),
|
|
206
206
|
/* @__PURE__ */ e("div", { className: "font-normal opacity-80", children: l })
|
|
@@ -253,9 +253,9 @@ function se({
|
|
|
253
253
|
r
|
|
254
254
|
);
|
|
255
255
|
}) }) }),
|
|
256
|
-
/* @__PURE__ */ e(
|
|
256
|
+
/* @__PURE__ */ e(A, { children: Array.from({ length: t }).map((i, r) => /* @__PURE__ */ e(y, { className: "h-[3.05rem]", children: Array.from({ length: a }).map((s, d) => {
|
|
257
257
|
const x = l && d === a - 1;
|
|
258
|
-
return /* @__PURE__ */ e(
|
|
258
|
+
return /* @__PURE__ */ e(j, { children: x ? /* @__PURE__ */ e("div", { className: "flex gap-2", children: Array.from({ length: n }).map((u, m) => /* @__PURE__ */ e(f, { className: "ml-auto size-8" }, m)) }) : /* @__PURE__ */ e(f, { className: "h-4 w-full" }) }, d);
|
|
259
259
|
}) }, r)) })
|
|
260
260
|
] });
|
|
261
261
|
}
|
|
@@ -305,14 +305,14 @@ export {
|
|
|
305
305
|
le as List,
|
|
306
306
|
ne as ListRow,
|
|
307
307
|
ie as NotFoundCard,
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
Me as PageHeader,
|
|
309
|
+
Fe as PageHeaderActions,
|
|
310
310
|
Se as PageHeaderContent,
|
|
311
311
|
He as PageHeaderDescription,
|
|
312
312
|
Te as PageHeaderTitle,
|
|
313
313
|
_e as PinterestIcon,
|
|
314
|
-
|
|
315
|
-
|
|
314
|
+
Ae as ProfileSelectInput,
|
|
315
|
+
je as SaleSelectInput,
|
|
316
316
|
se as TableSkeleton,
|
|
317
317
|
Le as TikTokIcon,
|
|
318
318
|
oe as TwitterIcon,
|
package/dist/constants.d.ts
CHANGED
|
@@ -51,6 +51,18 @@ export declare const NO_DATA_TO_UPDATE = "N\u00E3o h\u00E1 dados para atualizar.
|
|
|
51
51
|
*/
|
|
52
52
|
export declare const NO_DATA_TO_UPDATE_MESSAGE = "Nenhum dado novo foi informado para realizar a opera\u00E7\u00E3o. Por favor, atualize os campos antes de tentar novamente.";
|
|
53
53
|
|
|
54
|
+
export declare const PAYMENT_PHASE_VALUES: {
|
|
55
|
+
readonly pending: "Revisão Atendimento";
|
|
56
|
+
readonly review: "Revisão Financeiro";
|
|
57
|
+
readonly awaiting: "Aguardando";
|
|
58
|
+
readonly requested: "NF Solicitada";
|
|
59
|
+
readonly received: "NF Recebida";
|
|
60
|
+
readonly queued: "Na Fila para Pagamento";
|
|
61
|
+
readonly paid: "Pago";
|
|
62
|
+
readonly client: "Pagamento via Cliente";
|
|
63
|
+
readonly canceled: "Cancelado";
|
|
64
|
+
};
|
|
65
|
+
|
|
54
66
|
export declare const PAYMENT_TYPE_VALUES: {
|
|
55
67
|
readonly influencer: "Veículação de Influenciador";
|
|
56
68
|
readonly advisor: "Pagamento de Assessor";
|
package/dist/constants.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { A as s, B as S, C as n, I as T,
|
|
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.",
|
|
1
|
+
import { A as s, B as S, C as n, I as T, b as O, P as L, a as N, c, S as I, T as P } from "./chuncks/youtube-icon.component.CHatcIZ3.js";
|
|
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.", e = "Há um erro na validação dos campos. Por favor, entre em contato com o suporte.", A = "Campo obrigatório.";
|
|
3
3
|
export {
|
|
4
4
|
s as ACTION_TYPE_VALUES,
|
|
5
5
|
S as BUSINESS_UNIT_VALUES,
|
|
6
6
|
n as CLIENT_TYPE_VALUES,
|
|
7
|
-
|
|
7
|
+
_ as ERROR_MESSAGE,
|
|
8
8
|
a as FILTER_ALREADY_APPLIED_MESSAGE,
|
|
9
9
|
T as INFLUENCER_BROADCAST_METHOD_VALUES,
|
|
10
10
|
o as NO_DATA_TO_UPDATE,
|
|
11
11
|
E as NO_DATA_TO_UPDATE_MESSAGE,
|
|
12
|
-
O as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
N as
|
|
16
|
-
c as
|
|
17
|
-
I as
|
|
18
|
-
|
|
12
|
+
O as PAYMENT_PHASE_VALUES,
|
|
13
|
+
L as PAYMENT_TYPE_VALUES,
|
|
14
|
+
A as REQUIRED_FIELD_MESSAGE,
|
|
15
|
+
N as SOCIAL_NETWORK_COLOR_VALUES,
|
|
16
|
+
c as SOCIAL_NETWORK_ICON_COMPONENTS,
|
|
17
|
+
I as SOCIAL_NETWORK_VALUES,
|
|
18
|
+
P as TYPE_SALE_VALUES,
|
|
19
|
+
e as VALIDATION_ERROR_MESSAGE
|
|
19
20
|
};
|
package/dist/events.js
CHANGED
package/dist/utils.d.ts
CHANGED
|
@@ -97,7 +97,8 @@ declare namespace IS_MODULES {
|
|
|
97
97
|
isClientType,
|
|
98
98
|
isBusinessUnit,
|
|
99
99
|
isPaymentType,
|
|
100
|
-
isInfluencerBroadcastMethod
|
|
100
|
+
isInfluencerBroadcastMethod,
|
|
101
|
+
isPaymentPhase
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
|
|
@@ -123,6 +124,8 @@ export declare function isInfluencerBroadcastMethod(value?: string): value is ke
|
|
|
123
124
|
*/
|
|
124
125
|
export declare function isNumber(value: string | number): value is number;
|
|
125
126
|
|
|
127
|
+
export declare function isPaymentPhase(value?: string): value is keyof typeof PAYMENT_PHASE_VALUES;
|
|
128
|
+
|
|
126
129
|
export declare function isPaymentType(value?: string): value is keyof typeof PAYMENT_TYPE_VALUES;
|
|
127
130
|
|
|
128
131
|
export declare function isSocialNetwork(value?: string): value is keyof typeof SOCIAL_NETWORK_VALUES;
|
|
@@ -223,6 +226,18 @@ export declare const minLengthMessage: (min: number, field?: string) => string;
|
|
|
223
226
|
*/
|
|
224
227
|
export declare const minValueMessage: (min: number, field?: string) => string;
|
|
225
228
|
|
|
229
|
+
declare const PAYMENT_PHASE_VALUES: {
|
|
230
|
+
readonly pending: "Revisão Atendimento";
|
|
231
|
+
readonly review: "Revisão Financeiro";
|
|
232
|
+
readonly awaiting: "Aguardando";
|
|
233
|
+
readonly requested: "NF Solicitada";
|
|
234
|
+
readonly received: "NF Recebida";
|
|
235
|
+
readonly queued: "Na Fila para Pagamento";
|
|
236
|
+
readonly paid: "Pago";
|
|
237
|
+
readonly client: "Pagamento via Cliente";
|
|
238
|
+
readonly canceled: "Cancelado";
|
|
239
|
+
};
|
|
240
|
+
|
|
226
241
|
declare const PAYMENT_TYPE_VALUES: {
|
|
227
242
|
readonly influencer: "Veículação de Influenciador";
|
|
228
243
|
readonly advisor: "Pagamento de Assessor";
|
package/dist/utils.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { U as
|
|
2
|
-
import { g as C, h as E, f as L, a as
|
|
3
|
-
import {
|
|
4
|
-
import { f as
|
|
5
|
-
const
|
|
1
|
+
import { U as a } from "./chuncks/format.util.iSvkH94y.js";
|
|
2
|
+
import { g as C, h as E, f as L, a as P, d as _, m as b, c as l, e as v, p as y, b as k, u as D } from "./chuncks/format.util.iSvkH94y.js";
|
|
3
|
+
import { d as s } from "./chuncks/youtube-icon.component.CHatcIZ3.js";
|
|
4
|
+
import { g as U, f as h, j as N, i as q, k as x, h as F, e as O } from "./chuncks/youtube-icon.component.CHatcIZ3.js";
|
|
5
|
+
const o = (e) => e ? `${e} é obrigatório.` : "Campo obrigatório.", t = (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.`, m = (e, r) => r ? `${r} não pode ser menor que ${e}.` : `Não pode ser menor que ${e}.`, i = (e, r) => r ? `${r} não pode ser maior que ${e}.` : `Não pode ser maior que ${e}.`, c = (e) => e ? `${e} inválido.` : "Valor inválido.", u = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6
6
|
__proto__: null,
|
|
7
7
|
invalidMessage: c,
|
|
8
8
|
maxLengthMessage: n,
|
|
9
9
|
maxValueMessage: i,
|
|
10
10
|
minLengthMessage: t,
|
|
11
11
|
minValueMessage: m,
|
|
12
|
-
requiredMessage:
|
|
13
|
-
}, Symbol.toStringTag, { value: "Module" })), $ =
|
|
12
|
+
requiredMessage: o
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), $ = a, f = s, M = u;
|
|
14
14
|
export {
|
|
15
15
|
M as FIELD_MESSAGE,
|
|
16
16
|
f as IS,
|
|
@@ -18,24 +18,25 @@ export {
|
|
|
18
18
|
C as formatCompactNumber,
|
|
19
19
|
E as formatCompactPercent,
|
|
20
20
|
L as formatCurrency,
|
|
21
|
-
|
|
21
|
+
P as formatPercentage,
|
|
22
22
|
c as invalidMessage,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
U as isBusinessUnit,
|
|
24
|
+
h as isClientType,
|
|
25
|
+
N as isInfluencerBroadcastMethod,
|
|
26
26
|
q as isNumber,
|
|
27
|
-
x as
|
|
28
|
-
F as
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
x as isPaymentPhase,
|
|
28
|
+
F as isPaymentType,
|
|
29
|
+
O as isSocialNetwork,
|
|
30
|
+
_ as maskCNPJ,
|
|
31
|
+
b as maskCPF,
|
|
32
|
+
l as maskRG,
|
|
33
|
+
v as maskZipCode,
|
|
33
34
|
n as maxLengthMessage,
|
|
34
35
|
i as maxValueMessage,
|
|
35
36
|
t as minLengthMessage,
|
|
36
37
|
m as minValueMessage,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
y as preFormatCurrency,
|
|
39
|
+
k as preFormatPercentage,
|
|
40
|
+
o as requiredMessage,
|
|
41
|
+
D as unmask
|
|
41
42
|
};
|
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.170",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -120,13 +120,6 @@
|
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
122
|
"type": "module",
|
|
123
|
-
"scripts": {
|
|
124
|
-
"dev": "vite",
|
|
125
|
-
"build": "rm -rf dist && tsc -b && vite build",
|
|
126
|
-
"lint": "eslint .",
|
|
127
|
-
"preview": "vite preview",
|
|
128
|
-
"lib:publish": "pnpm build && pnpm publish --no-git-checks"
|
|
129
|
-
},
|
|
130
123
|
"peerDependencies": {
|
|
131
124
|
"react": "^18.3.1",
|
|
132
125
|
"react-dom": "^18.3.1"
|
|
@@ -182,5 +175,12 @@
|
|
|
182
175
|
"vite": "^7.2.4",
|
|
183
176
|
"vite-plugin-dts": "^4.5.4",
|
|
184
177
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
178
|
+
},
|
|
179
|
+
"scripts": {
|
|
180
|
+
"dev": "vite",
|
|
181
|
+
"build": "rm -rf dist && tsc -b && vite build",
|
|
182
|
+
"lint": "eslint .",
|
|
183
|
+
"preview": "vite preview",
|
|
184
|
+
"lib:publish": "pnpm build && pnpm publish --no-git-checks"
|
|
185
185
|
}
|
|
186
|
-
}
|
|
186
|
+
}
|