@grapadigital/shared-app-modules 0.0.167 → 0.0.169
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.DT6LqLkH.js → format.util.CEXflFj2.js} +1 -1
- package/dist/chuncks/{youtube-icon.component.CMVDwDrG.js → youtube-icon.component.CKKOkvld.js} +272 -261
- package/dist/components.js +11 -11
- package/dist/constants.d.ts +14 -2
- package/dist/constants.js +11 -10
- package/dist/events.js +1 -1
- package/dist/utils.d.ts +2 -2
- package/dist/utils.js +4 -4
- 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 { q as ge, r as xe, v as be, H as me, w as he, x as fe, F as ue, y as pe, z as ye, D as we, E as ke, G as Ne, p as ve, s as Ce, J as Ie, L as ze, k as Me, l as Fe, m as Se, n as He, o as Te, K as _e, t as Ae, u as je, M as Le, X as Pe, Y as $e } from "./chuncks/youtube-icon.component.CKKOkvld.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
|
@@ -7,8 +7,8 @@ export declare const ACTION_TYPE_VALUES: {
|
|
|
7
7
|
};
|
|
8
8
|
|
|
9
9
|
export declare const BUSINESS_UNIT_VALUES: {
|
|
10
|
-
readonly service: "
|
|
11
|
-
readonly
|
|
10
|
+
readonly service: "Atendimento";
|
|
11
|
+
readonly comercial: "Comercial";
|
|
12
12
|
};
|
|
13
13
|
|
|
14
14
|
export declare const CLIENT_TYPE_VALUES: {
|
|
@@ -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.CKKOkvld.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
package/dist/utils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { U as o } from "./chuncks/format.util.
|
|
2
|
-
import { g as C, h as E, f as L, a as _, d as b, m as l, c as v, e as y, p as D, b as I, u as P } from "./chuncks/format.util.
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { U as o } from "./chuncks/format.util.CEXflFj2.js";
|
|
2
|
+
import { g as C, h as E, f as L, a as _, d as b, m as l, c as v, e as y, p as D, b as I, u as P } from "./chuncks/format.util.CEXflFj2.js";
|
|
3
|
+
import { d as a } from "./chuncks/youtube-icon.component.CKKOkvld.js";
|
|
4
|
+
import { g as k, f as N, j as h, i as q, h as x, e as F } from "./chuncks/youtube-icon.component.CKKOkvld.js";
|
|
5
5
|
const s = (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,
|
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.169",
|
|
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
|
+
}
|