@grapadigital/shared-app-modules 0.0.104 → 0.0.106

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.
@@ -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 L, r as O } from "./scroll-area.D85EojoN.js";
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
- L,
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
- O,
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
- L,
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
- O,
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
- L,
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
- O,
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
- L,
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
- O,
953
+ L,
954
954
  {
955
955
  className: I(
956
956
  "ml-auto",
@@ -972,25 +972,25 @@ GA.displayName = "ProfileSelectInput";
972
972
  const xA = async ({
973
973
  filter: A,
974
974
  environment: e
975
- }) => (await Z(e).get("/client", { params: A })).data;
975
+ }) => (await Z(e).get("/sales", { params: A })).data;
976
976
  function HA({ filter: A, queryKey: e }) {
977
977
  const { environments: n } = T();
978
978
  return M({
979
- queryKey: ["clients", A, ...e || []],
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.name && A.name.length > 3)
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 ? { name: String(n) } : void 0, [f, d] = B(!1), [t, b] = B(r), [C, P] = B(""), E = Y(C, 200), i = HA({
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
- name: E
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?.name ? t?.name : "Selecionar",
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
- L,
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.name,
1051
+ s.title,
1052
1052
  /* @__PURE__ */ a(
1053
- O,
1053
+ L,
1054
1054
  {
1055
1055
  className: I(
1056
1056
  "ml-auto",
@@ -1,4 +1,4 @@
1
- import { b as n } from "./_sale-select-input.component.b4mohVQV.js";
1
+ import { b as n } from "./_sale-select-input.component.Deeuluwf.js";
2
2
  function m(e) {
3
3
  const r = e.replace(/[^0-9]/g, "");
4
4
  return Number(r) / 100;
@@ -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: ClientInterface) => void;
636
+ onValueChange: (client: SaleInterface) => void;
637
637
  }
638
638
 
639
639
  declare interface ScreeningInterface {
@@ -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.b4mohVQV.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.b4mohVQV.js";
2
+ import { L as P } from "./chuncks/_sale-select-input.component.Deeuluwf.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.Deeuluwf.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.b4mohVQV.js";
1
+ import { A as p, B as L, C as N, S as d, d as u } from "./chuncks/_sale-select-input.component.Deeuluwf.js";
2
2
  import "./chuncks/scroll-area.D85EojoN.js";
3
3
  import "react/jsx-runtime";
4
4
  import "react";
package/dist/events.js CHANGED
@@ -1,4 +1,4 @@
1
- import { h as o } from "./chuncks/format.util.CkcldnK7.js";
1
+ import { h as o } from "./chuncks/format.util.8vnljqR0.js";
2
2
  const i = (t, a) => {
3
3
  const e = t.target.value, n = o(e);
4
4
  n !== !1 && a(n);
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.CkcldnK7.js";
2
- import { i as k, a as P, b, c as N } from "./chuncks/_sale-select-input.component.b4mohVQV.js";
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.8vnljqR0.js";
2
+ import { i as k, a as P, b, c as N } from "./chuncks/_sale-select-input.component.Deeuluwf.js";
3
3
  export {
4
4
  e as formatCompactNumber,
5
5
  r as formatCompactPercent,
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.104",
4
+ "version": "0.0.106",
5
5
  "files": [
6
6
  "dist"
7
7
  ],