@grapadigital/shared-app-modules 0.0.104 → 0.0.105
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/{_sale-select-input.component.b4mohVQV.js → _sale-select-input.component.BeZQsW2-.js} +17 -17
- package/dist/chuncks/{format.util.CkcldnK7.js → format.util.B9aCW067.js} +1 -1
- package/dist/components.d.ts +1 -1
- package/dist/components.js +2 -2
- package/dist/constants.js +1 -1
- package/dist/events.js +1 -1
- package/dist/utils.js +2 -2
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
2
|
-
import { a as aA, c as I, L as nA, R as tA, P as N, j as D, B as v, k as q, C as Q, l as G, m as x, n as m, o as H, p as U, q as
|
|
2
|
+
import { a as aA, c as I, L as nA, R as tA, P as N, j as D, B as v, k as q, C as Q, l as G, m as x, n as m, o as H, p as U, q as O, r as L } from "./scroll-area.D85EojoN.js";
|
|
3
3
|
import * as sA from "react";
|
|
4
4
|
import { forwardRef as R, useState as B, useEffect as J } from "react";
|
|
5
5
|
import "date-fns";
|
|
@@ -593,7 +593,7 @@ const PA = R(
|
|
|
593
593
|
"Buscando..."
|
|
594
594
|
] }),
|
|
595
595
|
/* @__PURE__ */ a(U, { children: g?.map((s) => /* @__PURE__ */ o(
|
|
596
|
-
|
|
596
|
+
O,
|
|
597
597
|
{
|
|
598
598
|
value: s._id,
|
|
599
599
|
onSelect: (c) => {
|
|
@@ -604,7 +604,7 @@ const PA = R(
|
|
|
604
604
|
children: [
|
|
605
605
|
s.title,
|
|
606
606
|
/* @__PURE__ */ a(
|
|
607
|
-
|
|
607
|
+
L,
|
|
608
608
|
{
|
|
609
609
|
className: I(
|
|
610
610
|
"ml-auto",
|
|
@@ -692,7 +692,7 @@ const RA = R(
|
|
|
692
692
|
"Buscando..."
|
|
693
693
|
] }),
|
|
694
694
|
/* @__PURE__ */ a(U, { children: g?.map((s) => /* @__PURE__ */ o(
|
|
695
|
-
|
|
695
|
+
O,
|
|
696
696
|
{
|
|
697
697
|
value: s._id,
|
|
698
698
|
onSelect: (c) => {
|
|
@@ -703,7 +703,7 @@ const RA = R(
|
|
|
703
703
|
children: [
|
|
704
704
|
s.name,
|
|
705
705
|
/* @__PURE__ */ a(
|
|
706
|
-
|
|
706
|
+
L,
|
|
707
707
|
{
|
|
708
708
|
className: I(
|
|
709
709
|
"ml-auto",
|
|
@@ -796,7 +796,7 @@ const NA = R(
|
|
|
796
796
|
"Buscando..."
|
|
797
797
|
] }),
|
|
798
798
|
/* @__PURE__ */ a(U, { children: g?.map((s) => /* @__PURE__ */ o(
|
|
799
|
-
|
|
799
|
+
O,
|
|
800
800
|
{
|
|
801
801
|
value: s._id,
|
|
802
802
|
onSelect: (c) => {
|
|
@@ -807,7 +807,7 @@ const NA = R(
|
|
|
807
807
|
children: [
|
|
808
808
|
s.name,
|
|
809
809
|
/* @__PURE__ */ a(
|
|
810
|
-
|
|
810
|
+
L,
|
|
811
811
|
{
|
|
812
812
|
className: I(
|
|
813
813
|
"ml-auto",
|
|
@@ -936,7 +936,7 @@ const GA = R(
|
|
|
936
936
|
/* @__PURE__ */ a(U, { children: g?.map((c) => {
|
|
937
937
|
const y = eA(c?.socialnetwork) ? W[c.socialnetwork] : "Não encontrado";
|
|
938
938
|
return /* @__PURE__ */ o(
|
|
939
|
-
|
|
939
|
+
O,
|
|
940
940
|
{
|
|
941
941
|
value: c._id,
|
|
942
942
|
onSelect: (z) => {
|
|
@@ -950,7 +950,7 @@ const GA = R(
|
|
|
950
950
|
"] ",
|
|
951
951
|
c.username,
|
|
952
952
|
/* @__PURE__ */ a(
|
|
953
|
-
|
|
953
|
+
L,
|
|
954
954
|
{
|
|
955
955
|
className: I(
|
|
956
956
|
"ml-auto",
|
|
@@ -976,21 +976,21 @@ const xA = async ({
|
|
|
976
976
|
function HA({ filter: A, queryKey: e }) {
|
|
977
977
|
const { environments: n } = T();
|
|
978
978
|
return M({
|
|
979
|
-
queryKey: ["
|
|
979
|
+
queryKey: ["sales", A, ...e || []],
|
|
980
980
|
queryFn: () => xA({
|
|
981
981
|
filter: A,
|
|
982
982
|
environment: n.VITE_BACKEND_API_SALES_URL ?? ""
|
|
983
983
|
}),
|
|
984
|
-
enabled: !!(A.
|
|
984
|
+
enabled: !!(A.title && A.title.length > 3)
|
|
985
985
|
});
|
|
986
986
|
}
|
|
987
987
|
const UA = R(
|
|
988
988
|
({ queryKey: A, value: e, defaultValue: n, onValueChange: u, id: p, disabled: l, ...h }, w) => {
|
|
989
|
-
const r = n ? {
|
|
989
|
+
const r = n ? { title: String(n) } : void 0, [f, d] = B(!1), [t, b] = B(r), [C, P] = B(""), E = Y(C, 200), i = HA({
|
|
990
990
|
filter: {
|
|
991
991
|
page: 1,
|
|
992
992
|
limit: 5,
|
|
993
|
-
|
|
993
|
+
title: E
|
|
994
994
|
},
|
|
995
995
|
queryKey: A
|
|
996
996
|
}), g = i.data?.data;
|
|
@@ -1012,7 +1012,7 @@ const UA = R(
|
|
|
1012
1012
|
className: "w-full justify-between",
|
|
1013
1013
|
disabled: l,
|
|
1014
1014
|
children: [
|
|
1015
|
-
t?.
|
|
1015
|
+
t?.title ? t?.title : "Selecionar",
|
|
1016
1016
|
/* @__PURE__ */ a(j, { className: "opacity-50" })
|
|
1017
1017
|
]
|
|
1018
1018
|
}
|
|
@@ -1039,7 +1039,7 @@ const UA = R(
|
|
|
1039
1039
|
"Buscando..."
|
|
1040
1040
|
] }),
|
|
1041
1041
|
/* @__PURE__ */ a(U, { children: g?.map((s) => /* @__PURE__ */ o(
|
|
1042
|
-
|
|
1042
|
+
O,
|
|
1043
1043
|
{
|
|
1044
1044
|
value: s._id,
|
|
1045
1045
|
onSelect: (c) => {
|
|
@@ -1048,9 +1048,9 @@ const UA = R(
|
|
|
1048
1048
|
), d(!1);
|
|
1049
1049
|
},
|
|
1050
1050
|
children: [
|
|
1051
|
-
s.
|
|
1051
|
+
s.title,
|
|
1052
1052
|
/* @__PURE__ */ a(
|
|
1053
|
-
|
|
1053
|
+
L,
|
|
1054
1054
|
{
|
|
1055
1055
|
className: I(
|
|
1056
1056
|
"ml-auto",
|
package/dist/components.d.ts
CHANGED
|
@@ -633,7 +633,7 @@ export declare const SaleSelectInput: default_2.ForwardRefExoticComponent<Omit<S
|
|
|
633
633
|
|
|
634
634
|
declare interface SaleSelectInputProps extends Omit<default_2.ComponentProps<typeof CommandInput>, "onValueChange"> {
|
|
635
635
|
queryKey?: string[];
|
|
636
|
-
onValueChange: (client:
|
|
636
|
+
onValueChange: (client: SaleInterface) => void;
|
|
637
637
|
}
|
|
638
638
|
|
|
639
639
|
declare interface ScreeningInterface {
|
package/dist/components.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as b, c as d, B as T, H as N, b as v, d as C, T as _, e as A, f as y, g as L, h as S, i as j } from "./chuncks/scroll-area.D85EojoN.js";
|
|
2
|
-
import { L as P } from "./chuncks/_sale-select-input.component.
|
|
3
|
-
import { j as be, k as me, I as he, l as fe, P as pe, e as ue, f as ye, g as we, h as ke, m as Ne, n as ve } from "./chuncks/_sale-select-input.component.
|
|
2
|
+
import { L as P } from "./chuncks/_sale-select-input.component.BeZQsW2-.js";
|
|
3
|
+
import { j as be, k as me, I as he, l as fe, P as pe, e as ue, f as ye, g as we, h as ke, m as Ne, n as ve } from "./chuncks/_sale-select-input.component.BeZQsW2-.js";
|
|
4
4
|
import { jsx as e, jsxs as o, Fragment as F } from "react/jsx-runtime";
|
|
5
5
|
import "react";
|
|
6
6
|
import { C as z, a as I, S as f } from "./chuncks/card.C3Mnb-Yx.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/_sale-select-input.component.
|
|
1
|
+
import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/_sale-select-input.component.BeZQsW2-.js";
|
|
2
2
|
import "./chuncks/scroll-area.D85EojoN.js";
|
|
3
3
|
import "react/jsx-runtime";
|
|
4
4
|
import "react";
|
package/dist/events.js
CHANGED
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/_sale-select-input.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.B9aCW067.js";
|
|
2
|
+
import { i as k, a as P, b, c as N } from "./chuncks/_sale-select-input.component.BeZQsW2-.js";
|
|
3
3
|
export {
|
|
4
4
|
e as formatCompactNumber,
|
|
5
5
|
r as formatCompactPercent,
|