@grapadigital/shared-app-modules 0.0.212 → 0.0.214
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/chuncks/{format.util.CP4sH71a.js → format.util.ZogZZ58E.js} +3 -3
- package/dist/components.d.ts +1 -1
- package/dist/content.d.ts +1 -1
- package/dist/events.js +1 -1
- 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 +33 -0
- package/dist/utils.js +49 -43
- package/package.json +1 -1
package/dist/action.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
declare interface ProposalInterface {
|
|
435
|
-
businessUnit: "service" | "comercial";
|
|
435
|
+
businessUnit: "service" | "comercial" | "artistic";
|
|
436
436
|
origin: "inbound" | "outbound";
|
|
437
437
|
type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
|
|
438
438
|
contact: string;
|
|
@@ -64,8 +64,8 @@ const d = (e) => new Intl.NumberFormat("pt-BR", {
|
|
|
64
64
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
65
65
|
export {
|
|
66
66
|
D as U,
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
a,
|
|
68
|
+
o as b,
|
|
69
69
|
i as c,
|
|
70
70
|
s as d,
|
|
71
71
|
l as e,
|
|
@@ -73,6 +73,6 @@ export {
|
|
|
73
73
|
d as g,
|
|
74
74
|
f as h,
|
|
75
75
|
m,
|
|
76
|
-
|
|
76
|
+
u as p,
|
|
77
77
|
p as u
|
|
78
78
|
};
|
package/dist/components.d.ts
CHANGED
|
@@ -774,7 +774,7 @@ declare interface ProfileSelectInputProps extends Omit<default_2.ComponentProps<
|
|
|
774
774
|
}
|
|
775
775
|
|
|
776
776
|
declare interface ProposalInterface {
|
|
777
|
-
businessUnit: "service" | "comercial";
|
|
777
|
+
businessUnit: "service" | "comercial" | "artistic";
|
|
778
778
|
origin: "inbound" | "outbound";
|
|
779
779
|
type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
|
|
780
780
|
contact: string;
|
package/dist/content.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
declare interface ProposalInterface {
|
|
435
|
-
businessUnit: "service" | "comercial";
|
|
435
|
+
businessUnit: "service" | "comercial" | "artistic";
|
|
436
436
|
origin: "inbound" | "outbound";
|
|
437
437
|
type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
|
|
438
438
|
contact: string;
|
package/dist/events.js
CHANGED
package/dist/invoice.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
declare interface ProposalInterface {
|
|
435
|
-
businessUnit: "service" | "comercial";
|
|
435
|
+
businessUnit: "service" | "comercial" | "artistic";
|
|
436
436
|
origin: "inbound" | "outbound";
|
|
437
437
|
type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
|
|
438
438
|
contact: string;
|
package/dist/payment.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
declare interface ProposalInterface {
|
|
435
|
-
businessUnit: "service" | "comercial";
|
|
435
|
+
businessUnit: "service" | "comercial" | "artistic";
|
|
436
436
|
origin: "inbound" | "outbound";
|
|
437
437
|
type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
|
|
438
438
|
contact: string;
|
package/dist/recruitment.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
declare interface ProposalInterface {
|
|
435
|
-
businessUnit: "service" | "comercial";
|
|
435
|
+
businessUnit: "service" | "comercial" | "artistic";
|
|
436
436
|
origin: "inbound" | "outbound";
|
|
437
437
|
type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
|
|
438
438
|
contact: string;
|
package/dist/sale.d.ts
CHANGED
|
@@ -432,7 +432,7 @@ declare interface ProfileMetric {
|
|
|
432
432
|
}
|
|
433
433
|
|
|
434
434
|
export declare interface ProposalInterface {
|
|
435
|
-
businessUnit: "service" | "comercial";
|
|
435
|
+
businessUnit: "service" | "comercial" | "artistic";
|
|
436
436
|
origin: "inbound" | "outbound";
|
|
437
437
|
type: "new" | "organic_expansion" | "strategic_expansion" | "renewal" | "comercial_winback" | "organic_winback";
|
|
438
438
|
contact: string;
|
package/dist/utils.d.ts
CHANGED
|
@@ -313,6 +313,39 @@ export declare const preFormatPercentage: (value: string | number) => number | f
|
|
|
313
313
|
*/
|
|
314
314
|
export declare const requiredMessage: (field?: string) => string;
|
|
315
315
|
|
|
316
|
+
/**
|
|
317
|
+
* Serializa um objeto de parâmetros em uma query string.
|
|
318
|
+
*
|
|
319
|
+
* Converte propriedades simples em pares chave=valor e, quando o valor
|
|
320
|
+
* é um array, adiciona múltiplas ocorrências da mesma chave.
|
|
321
|
+
* Valores `undefined` são ignorados.
|
|
322
|
+
*
|
|
323
|
+
* @param params - Objeto contendo os parâmetros a serem serializados.
|
|
324
|
+
* @returns Uma query string compatível com URLs.
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* serializeParams({
|
|
328
|
+
* page: 1,
|
|
329
|
+
* search: 'react'
|
|
330
|
+
* });
|
|
331
|
+
* // "page=1&search=react"
|
|
332
|
+
*
|
|
333
|
+
* @example
|
|
334
|
+
* serializeParams({
|
|
335
|
+
* tags: ['react', 'typescript']
|
|
336
|
+
* });
|
|
337
|
+
* // "tags=react&tags=typescript"
|
|
338
|
+
*
|
|
339
|
+
* @example
|
|
340
|
+
* serializeParams({
|
|
341
|
+
* page: 1,
|
|
342
|
+
* search: null,
|
|
343
|
+
* sort: undefined
|
|
344
|
+
* });
|
|
345
|
+
* // "page=1&search=null"
|
|
346
|
+
*/
|
|
347
|
+
export declare const serializeParams: (params: Record<string, unknown>) => string;
|
|
348
|
+
|
|
316
349
|
declare const SOCIAL_NETWORK_VALUES: {
|
|
317
350
|
readonly instagram: "Instagram";
|
|
318
351
|
readonly tiktok: "TikTok";
|
package/dist/utils.js
CHANGED
|
@@ -1,48 +1,54 @@
|
|
|
1
|
-
import { U as
|
|
2
|
-
import { g as
|
|
3
|
-
import { f as
|
|
4
|
-
import { r as
|
|
5
|
-
const
|
|
1
|
+
import { U as o } from "./chuncks/format.util.ZogZZ58E.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.ZogZZ58E.js";
|
|
3
|
+
import { f as n } from "./chuncks/youtube-icon.component.DJUDonHx.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.DJUDonHx.js";
|
|
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
|
-
invalidMessage:
|
|
8
|
-
maxLengthMessage:
|
|
9
|
-
maxValueMessage:
|
|
10
|
-
minLengthMessage:
|
|
11
|
-
minValueMessage:
|
|
12
|
-
requiredMessage:
|
|
13
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7
|
+
invalidMessage: f,
|
|
8
|
+
maxLengthMessage: m,
|
|
9
|
+
maxValueMessage: p,
|
|
10
|
+
minLengthMessage: c,
|
|
11
|
+
minValueMessage: u,
|
|
12
|
+
requiredMessage: i
|
|
13
|
+
}, Symbol.toStringTag, { value: "Module" })), l = (e) => {
|
|
14
|
+
const r = new URLSearchParams();
|
|
15
|
+
for (const [s, a] of Object.entries(e))
|
|
16
|
+
Array.isArray(a) ? a.forEach((t) => r.append(s, String(t))) : a instanceof Date ? r.append(s, a.toISOString()) : a !== void 0 && r.append(s, String(a));
|
|
17
|
+
return r.toString();
|
|
18
|
+
}, $ = o, y = n, M = g;
|
|
14
19
|
export {
|
|
15
20
|
M as FIELD_MESSAGE,
|
|
16
|
-
|
|
21
|
+
y as IS,
|
|
17
22
|
$ as UTIL,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
23
|
+
N as createDictionary,
|
|
24
|
+
x as entries,
|
|
25
|
+
D as formatCompactNumber,
|
|
26
|
+
E as formatCompactPercent,
|
|
27
|
+
L as formatCurrency,
|
|
28
|
+
b as formatPercentage,
|
|
29
|
+
f as invalidMessage,
|
|
30
|
+
A as isActionStatus,
|
|
31
|
+
F as isBusinessUnit,
|
|
32
|
+
T as isClientType,
|
|
33
|
+
j as isInfluencerBroadcastMethod,
|
|
34
|
+
w as isNumber,
|
|
35
|
+
G as isPaymentPhase,
|
|
36
|
+
V as isPaymentType,
|
|
37
|
+
z as isSocialNetwork,
|
|
38
|
+
B as keys,
|
|
39
|
+
h as maskCNPJ,
|
|
40
|
+
k as maskCPF,
|
|
41
|
+
C as maskRG,
|
|
42
|
+
_ as maskZipCode,
|
|
43
|
+
m as maxLengthMessage,
|
|
44
|
+
p as maxValueMessage,
|
|
45
|
+
c as minLengthMessage,
|
|
46
|
+
u as minValueMessage,
|
|
47
|
+
R as newDate,
|
|
48
|
+
I as preFormatCurrency,
|
|
49
|
+
U as preFormatPercentage,
|
|
50
|
+
i as requiredMessage,
|
|
51
|
+
l as serializeParams,
|
|
52
|
+
O as unmask,
|
|
53
|
+
J as values
|
|
48
54
|
};
|