@grapadigital/shared-app-modules 0.0.112 → 0.0.114
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 +15 -7
- package/dist/chuncks/{field-textarea.component.j5MsRUzc.js → field-textarea.component.CVt4caPC.js} +362 -352
- package/dist/chuncks/{format.util.CxZ87QTi.js → format.util.6YTmX_Zn.js} +1 -1
- package/dist/components.d.ts +38 -10
- package/dist/components.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/content.d.ts +15 -7
- package/dist/events.js +1 -1
- package/dist/hooks.d.ts +3 -3
- package/dist/invoice.d.ts +15 -7
- package/dist/payment.d.ts +15 -7
- package/dist/providers.d.ts +3 -3
- package/dist/recruitment.d.ts +15 -7
- package/dist/sale.d.ts +15 -7
- package/dist/utils.js +2 -2
- package/package.json +1 -1
package/dist/components.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ControllerFieldState } from 'react-hook-form';
|
|
2
2
|
import { default as default_2 } from 'react';
|
|
3
3
|
import { default as default_3 } from 'tailwindcss/colors';
|
|
4
|
-
import { FieldSelect } from './ui/fields/field-select.component';
|
|
5
4
|
import { ForwardRefExoticComponent } from 'react';
|
|
6
5
|
import { HoverCardProps } from '@radix-ui/react-hover-card';
|
|
7
6
|
import { JSX } from 'react/jsx-runtime';
|
|
@@ -49,12 +48,26 @@ declare interface ActionInterface {
|
|
|
49
48
|
shopping?: string;
|
|
50
49
|
project?: string;
|
|
51
50
|
type?: "partner" | "exclusive";
|
|
52
|
-
notes?:
|
|
51
|
+
notes?: {
|
|
52
|
+
text: string;
|
|
53
|
+
owner: string;
|
|
54
|
+
createdAt: string;
|
|
55
|
+
}[];
|
|
53
56
|
hashtags?: string[];
|
|
54
57
|
mentions?: string[];
|
|
55
58
|
keywords?: string[];
|
|
56
59
|
description?: string;
|
|
57
60
|
objective?: string;
|
|
61
|
+
kpis?: {
|
|
62
|
+
budget: number;
|
|
63
|
+
revenue: number;
|
|
64
|
+
transferProvision: number;
|
|
65
|
+
costProvision: number;
|
|
66
|
+
transferActual: number;
|
|
67
|
+
costActual: number;
|
|
68
|
+
freeValueProvision: number;
|
|
69
|
+
freeValueActual: number;
|
|
70
|
+
};
|
|
58
71
|
}
|
|
59
72
|
|
|
60
73
|
declare interface AgencyCommission {
|
|
@@ -115,6 +128,7 @@ export declare const ClientSelectInput: default_2.ForwardRefExoticComponent<Omit
|
|
|
115
128
|
declare interface ClientSelectInputProps extends Omit<default_2.ComponentProps<typeof CommandInput>, "onValueChange"> {
|
|
116
129
|
queryKey?: string[];
|
|
117
130
|
onValueChange: (client: ClientInterface) => void;
|
|
131
|
+
clientType?: ClientInterface["type"];
|
|
118
132
|
}
|
|
119
133
|
|
|
120
134
|
declare interface ClusterInterface {
|
|
@@ -250,7 +264,7 @@ declare interface FieldCalendarProps extends ControllerFieldState {
|
|
|
250
264
|
|
|
251
265
|
export declare const FieldClientSelectInput: ForwardRefExoticComponent<Omit<FieldClientSelectInputProps, "ref"> & RefAttributes<HTMLInputElement>>;
|
|
252
266
|
|
|
253
|
-
declare type FieldClientSelectInputProps = React.ComponentProps<
|
|
267
|
+
declare type FieldClientSelectInputProps = React.ComponentProps<typeof ClientSelectInput> & ControllerFieldState & {
|
|
254
268
|
label?: string;
|
|
255
269
|
description?: string;
|
|
256
270
|
asterisk?: boolean;
|
|
@@ -281,7 +295,27 @@ declare type FieldSaleSelectInputProps = React.ComponentProps<"input"> & Control
|
|
|
281
295
|
ref?: React.Ref<HTMLInputElement> | undefined;
|
|
282
296
|
};
|
|
283
297
|
|
|
284
|
-
export
|
|
298
|
+
export declare const FieldSelect: ForwardRefExoticComponent<Omit<FieldSelectProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
299
|
+
|
|
300
|
+
declare type FieldSelectProps = ControllerFieldState & React.ComponentProps<"input"> & {
|
|
301
|
+
label?: string;
|
|
302
|
+
name?: string;
|
|
303
|
+
description?: string;
|
|
304
|
+
asterisk?: boolean;
|
|
305
|
+
value: string;
|
|
306
|
+
/**
|
|
307
|
+
* Esperado um objeto contendo as opções do select.
|
|
308
|
+
* O formato é um objeto com chave e valor.
|
|
309
|
+
* O valor é o que será exibido no select, e a chave é o valor que será retornado.
|
|
310
|
+
*
|
|
311
|
+
* @example
|
|
312
|
+
* options={{ "1": "Opção 1", "2": "Opção 2" }}
|
|
313
|
+
*/
|
|
314
|
+
options: Record<string, string>;
|
|
315
|
+
onValueChange: (value: string) => void;
|
|
316
|
+
dir?: "ltr" | "rtl";
|
|
317
|
+
defaultValue?: string | undefined;
|
|
318
|
+
};
|
|
285
319
|
|
|
286
320
|
export declare const FieldSwitch: ForwardRefExoticComponent<Omit<FieldSwitchProps, "ref"> & RefAttributes<HTMLButtonElement>>;
|
|
287
321
|
|
|
@@ -495,12 +529,6 @@ declare interface Note_3 {
|
|
|
495
529
|
createdAt: string;
|
|
496
530
|
}
|
|
497
531
|
|
|
498
|
-
declare interface NoteInterface {
|
|
499
|
-
text: string;
|
|
500
|
-
owner: string;
|
|
501
|
-
createdAt: string;
|
|
502
|
-
}
|
|
503
|
-
|
|
504
532
|
export declare function NotFoundCard({ icon: Icon, title, description, tip, className, ...props }: NotFoundCardProps): JSX.Element;
|
|
505
533
|
|
|
506
534
|
declare interface NotFoundCardProps extends React.ComponentProps<typeof Card> {
|
package/dist/components.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as b, c, B as F, as as k, at as v, au as C, O as T, P as H, V as y, U as _, Q as A, W as j } from "./chuncks/switch.CRijOkty.js";
|
|
2
|
-
import { j as de, k as ge, o as xe, p as be, s as me, F as he, q as fe, t as pe, r as ue, u as ye, I as we, l as Ne, P as ke, e as ve, f as Ce, g as Ie, h as ze, m as Me, n as Se } from "./chuncks/field-textarea.component.
|
|
2
|
+
import { j as de, k as ge, o as xe, p as be, s as me, F as he, q as fe, t as pe, r as ue, u as ye, I as we, l as Ne, P as ke, e as ve, f as Ce, g as Ie, h as ze, m as Me, n as Se } from "./chuncks/field-textarea.component.CVt4caPC.js";
|
|
3
3
|
import { jsx as e, jsxs as o, Fragment as L } from "react/jsx-runtime";
|
|
4
4
|
import "react";
|
|
5
5
|
import { C as I, f as z, S as f } from "./chuncks/card.D5PkIOr_.js";
|
package/dist/constants.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/field-textarea.component.
|
|
1
|
+
import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/field-textarea.component.CVt4caPC.js";
|
|
2
2
|
import "./chuncks/switch.CRijOkty.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
package/dist/content.d.ts
CHANGED
|
@@ -35,12 +35,26 @@ declare interface ActionInterface {
|
|
|
35
35
|
shopping?: string;
|
|
36
36
|
project?: string;
|
|
37
37
|
type?: "partner" | "exclusive";
|
|
38
|
-
notes?:
|
|
38
|
+
notes?: {
|
|
39
|
+
text: string;
|
|
40
|
+
owner: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
}[];
|
|
39
43
|
hashtags?: string[];
|
|
40
44
|
mentions?: string[];
|
|
41
45
|
keywords?: string[];
|
|
42
46
|
description?: string;
|
|
43
47
|
objective?: string;
|
|
48
|
+
kpis?: {
|
|
49
|
+
budget: number;
|
|
50
|
+
revenue: number;
|
|
51
|
+
transferProvision: number;
|
|
52
|
+
costProvision: number;
|
|
53
|
+
transferActual: number;
|
|
54
|
+
costActual: number;
|
|
55
|
+
freeValueProvision: number;
|
|
56
|
+
freeValueActual: number;
|
|
57
|
+
};
|
|
44
58
|
}
|
|
45
59
|
|
|
46
60
|
declare interface AgencyCommission {
|
|
@@ -303,12 +317,6 @@ declare interface Note_3 {
|
|
|
303
317
|
createdAt: string;
|
|
304
318
|
}
|
|
305
319
|
|
|
306
|
-
declare interface NoteInterface {
|
|
307
|
-
text: string;
|
|
308
|
-
owner: string;
|
|
309
|
-
createdAt: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
320
|
declare interface Paid {
|
|
313
321
|
date: string;
|
|
314
322
|
}
|
package/dist/events.js
CHANGED
package/dist/hooks.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare interface Environments {
|
|
2
|
-
readonly VITE_BACKEND_API_DATASERVICES_URL?: string;
|
|
3
2
|
readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
|
|
4
|
-
readonly
|
|
5
|
-
readonly
|
|
3
|
+
readonly VITE_BACKEND_API_INFLUENCERS_URL?: string;
|
|
4
|
+
readonly VITE_BACKEND_API_PROFILES_URL?: string;
|
|
6
5
|
readonly VITE_BACKEND_API_SALES_URL?: string;
|
|
6
|
+
readonly VITE_BACKEND_API_CLIENTS_URL?: string;
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
declare interface SharedAppModulesContextData {
|
package/dist/invoice.d.ts
CHANGED
|
@@ -35,12 +35,26 @@ declare interface ActionInterface {
|
|
|
35
35
|
shopping?: string;
|
|
36
36
|
project?: string;
|
|
37
37
|
type?: "partner" | "exclusive";
|
|
38
|
-
notes?:
|
|
38
|
+
notes?: {
|
|
39
|
+
text: string;
|
|
40
|
+
owner: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
}[];
|
|
39
43
|
hashtags?: string[];
|
|
40
44
|
mentions?: string[];
|
|
41
45
|
keywords?: string[];
|
|
42
46
|
description?: string;
|
|
43
47
|
objective?: string;
|
|
48
|
+
kpis?: {
|
|
49
|
+
budget: number;
|
|
50
|
+
revenue: number;
|
|
51
|
+
transferProvision: number;
|
|
52
|
+
costProvision: number;
|
|
53
|
+
transferActual: number;
|
|
54
|
+
costActual: number;
|
|
55
|
+
freeValueProvision: number;
|
|
56
|
+
freeValueActual: number;
|
|
57
|
+
};
|
|
44
58
|
}
|
|
45
59
|
|
|
46
60
|
declare interface AgencyCommission {
|
|
@@ -303,12 +317,6 @@ declare interface Note_3 {
|
|
|
303
317
|
createdAt: string;
|
|
304
318
|
}
|
|
305
319
|
|
|
306
|
-
declare interface NoteInterface {
|
|
307
|
-
text: string;
|
|
308
|
-
owner: string;
|
|
309
|
-
createdAt: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
320
|
declare interface Paid {
|
|
313
321
|
date: string;
|
|
314
322
|
}
|
package/dist/payment.d.ts
CHANGED
|
@@ -35,12 +35,26 @@ declare interface ActionInterface {
|
|
|
35
35
|
shopping?: string;
|
|
36
36
|
project?: string;
|
|
37
37
|
type?: "partner" | "exclusive";
|
|
38
|
-
notes?:
|
|
38
|
+
notes?: {
|
|
39
|
+
text: string;
|
|
40
|
+
owner: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
}[];
|
|
39
43
|
hashtags?: string[];
|
|
40
44
|
mentions?: string[];
|
|
41
45
|
keywords?: string[];
|
|
42
46
|
description?: string;
|
|
43
47
|
objective?: string;
|
|
48
|
+
kpis?: {
|
|
49
|
+
budget: number;
|
|
50
|
+
revenue: number;
|
|
51
|
+
transferProvision: number;
|
|
52
|
+
costProvision: number;
|
|
53
|
+
transferActual: number;
|
|
54
|
+
costActual: number;
|
|
55
|
+
freeValueProvision: number;
|
|
56
|
+
freeValueActual: number;
|
|
57
|
+
};
|
|
44
58
|
}
|
|
45
59
|
|
|
46
60
|
declare interface AgencyCommission {
|
|
@@ -303,12 +317,6 @@ declare interface Note_3 {
|
|
|
303
317
|
createdAt: string;
|
|
304
318
|
}
|
|
305
319
|
|
|
306
|
-
declare interface NoteInterface {
|
|
307
|
-
text: string;
|
|
308
|
-
owner: string;
|
|
309
|
-
createdAt: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
320
|
export declare interface Paid {
|
|
313
321
|
date: string;
|
|
314
322
|
}
|
package/dist/providers.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { JSX } from 'react/jsx-runtime';
|
|
2
2
|
|
|
3
3
|
declare interface Environments {
|
|
4
|
-
readonly VITE_BACKEND_API_DATASERVICES_URL?: string;
|
|
5
4
|
readonly VITE_BACKEND_API_CAMPAIGNS_URL?: string;
|
|
6
|
-
readonly
|
|
7
|
-
readonly
|
|
5
|
+
readonly VITE_BACKEND_API_INFLUENCERS_URL?: string;
|
|
6
|
+
readonly VITE_BACKEND_API_PROFILES_URL?: string;
|
|
8
7
|
readonly VITE_BACKEND_API_SALES_URL?: string;
|
|
8
|
+
readonly VITE_BACKEND_API_CLIENTS_URL?: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
declare interface SharedAppModulesContextProps {
|
package/dist/recruitment.d.ts
CHANGED
|
@@ -35,12 +35,26 @@ declare interface ActionInterface {
|
|
|
35
35
|
shopping?: string;
|
|
36
36
|
project?: string;
|
|
37
37
|
type?: "partner" | "exclusive";
|
|
38
|
-
notes?:
|
|
38
|
+
notes?: {
|
|
39
|
+
text: string;
|
|
40
|
+
owner: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
}[];
|
|
39
43
|
hashtags?: string[];
|
|
40
44
|
mentions?: string[];
|
|
41
45
|
keywords?: string[];
|
|
42
46
|
description?: string;
|
|
43
47
|
objective?: string;
|
|
48
|
+
kpis?: {
|
|
49
|
+
budget: number;
|
|
50
|
+
revenue: number;
|
|
51
|
+
transferProvision: number;
|
|
52
|
+
costProvision: number;
|
|
53
|
+
transferActual: number;
|
|
54
|
+
costActual: number;
|
|
55
|
+
freeValueProvision: number;
|
|
56
|
+
freeValueActual: number;
|
|
57
|
+
};
|
|
44
58
|
}
|
|
45
59
|
|
|
46
60
|
declare interface AgencyCommission {
|
|
@@ -303,12 +317,6 @@ declare interface Note_3 {
|
|
|
303
317
|
createdAt: string;
|
|
304
318
|
}
|
|
305
319
|
|
|
306
|
-
declare interface NoteInterface {
|
|
307
|
-
text: string;
|
|
308
|
-
owner: string;
|
|
309
|
-
createdAt: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
320
|
declare interface Paid {
|
|
313
321
|
date: string;
|
|
314
322
|
}
|
package/dist/sale.d.ts
CHANGED
|
@@ -35,12 +35,26 @@ declare interface ActionInterface {
|
|
|
35
35
|
shopping?: string;
|
|
36
36
|
project?: string;
|
|
37
37
|
type?: "partner" | "exclusive";
|
|
38
|
-
notes?:
|
|
38
|
+
notes?: {
|
|
39
|
+
text: string;
|
|
40
|
+
owner: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
}[];
|
|
39
43
|
hashtags?: string[];
|
|
40
44
|
mentions?: string[];
|
|
41
45
|
keywords?: string[];
|
|
42
46
|
description?: string;
|
|
43
47
|
objective?: string;
|
|
48
|
+
kpis?: {
|
|
49
|
+
budget: number;
|
|
50
|
+
revenue: number;
|
|
51
|
+
transferProvision: number;
|
|
52
|
+
costProvision: number;
|
|
53
|
+
transferActual: number;
|
|
54
|
+
costActual: number;
|
|
55
|
+
freeValueProvision: number;
|
|
56
|
+
freeValueActual: number;
|
|
57
|
+
};
|
|
44
58
|
}
|
|
45
59
|
|
|
46
60
|
declare interface AgencyCommission {
|
|
@@ -303,12 +317,6 @@ declare interface Note_3 {
|
|
|
303
317
|
createdAt: string;
|
|
304
318
|
}
|
|
305
319
|
|
|
306
|
-
declare interface NoteInterface {
|
|
307
|
-
text: string;
|
|
308
|
-
owner: string;
|
|
309
|
-
createdAt: string;
|
|
310
|
-
}
|
|
311
|
-
|
|
312
320
|
declare interface Paid {
|
|
313
321
|
date: string;
|
|
314
322
|
}
|
package/dist/utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.
|
|
2
|
-
import { i as k, a as P, b, c as N } from "./chuncks/field-textarea.component.
|
|
1
|
+
import { f as e, a as r, b as m, c as t, m as o, d as c, e as i, g as n, p, h as C, u as f } from "./chuncks/format.util.6YTmX_Zn.js";
|
|
2
|
+
import { i as k, a as P, b, c as N } from "./chuncks/field-textarea.component.CVt4caPC.js";
|
|
3
3
|
export {
|
|
4
4
|
e as formatCompactNumber,
|
|
5
5
|
r as formatCompactPercent,
|