@orbe-agro/client-core 5.3.11 → 5.3.12
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/@ecme/components/ui/hooks/useCallbackRef.js +2 -2
- package/dist/@ecme/components/ui/hooks/useCallbackRef.js.map +1 -1
- package/dist/@types/base/@types/models/commodities/contratoBiodiesel.d.ts +1 -1
- package/dist/@types/base/@types/models/commodities/contratoBiodiesel.d.ts.map +1 -1
- package/dist/@types/base/@types/models/commodities/pedidoVenda.d.ts +1 -1
- package/dist/@types/base/@types/models/commodities/pedidoVenda.d.ts.map +1 -1
- package/dist/@types/base/@types/models/dm/formaPagamento.d.ts +7 -0
- package/dist/@types/base/@types/models/dm/formaPagamento.d.ts.map +1 -0
- package/dist/@types/base/@types/models/orcamento/contaContabil.d.ts +27 -0
- package/dist/@types/base/@types/models/orcamento/contaContabil.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/formaPagamento.d.ts +12 -0
- package/dist/@types/base/configs/endpoints.config/dm/config/formaPagamento.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts +10 -0
- package/dist/@types/base/configs/endpoints.config/dm/dm.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts +36 -0
- package/dist/@types/base/configs/endpoints.config/endpoints.navigation.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/orcamento/config/contaContabil.d.ts +28 -0
- package/dist/@types/base/configs/endpoints.config/orcamento/config/contaContabil.d.ts.map +1 -0
- package/dist/@types/base/configs/endpoints.config/orcamento/orcamento.d.ts +26 -0
- package/dist/@types/base/configs/endpoints.config/orcamento/orcamento.d.ts.map +1 -1
- package/dist/@types/base/configs/endpoints.config/transportadora/consultarFavorecido.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/submenu/orcamento/cadastros.submenu.d.ts.map +1 -1
- package/dist/@types/base/configs/navigation.config/submenu/orcamento/premissas/contaContabil.submenu.d.ts +4 -0
- package/dist/@types/base/configs/navigation.config/submenu/orcamento/premissas/contaContabil.submenu.d.ts.map +1 -0
- package/dist/@types/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.d.ts +12 -0
- package/dist/@types/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.d.ts.map +1 -0
- package/dist/@types/base/hooks/dm/formaPagamento/useFormaPagamentoList.d.ts +13 -0
- package/dist/@types/base/hooks/dm/formaPagamento/useFormaPagamentoList.d.ts.map +1 -0
- package/dist/@types/base/hooks/index.d.ts +2 -0
- package/dist/@types/base/hooks/index.d.ts.map +1 -1
- package/dist/@types/base/services/modules/dm/formaPagamento/FormaPagamentoService.d.ts +4 -0
- package/dist/@types/base/services/modules/dm/formaPagamento/FormaPagamentoService.d.ts.map +1 -0
- package/dist/@types/base/services/modules/dm/index.d.ts +1 -0
- package/dist/@types/base/services/modules/dm/index.d.ts.map +1 -1
- package/dist/@types/base/store/dm/formaPagamento/formaPagamentoListStore.d.ts +4 -0
- package/dist/@types/base/store/dm/formaPagamento/formaPagamentoListStore.d.ts.map +1 -0
- package/dist/base/@types/models/dm/formaPagamento.js +2 -0
- package/dist/base/@types/models/dm/formaPagamento.js.map +1 -0
- package/dist/base/@types/models/orcamento/contaContabil.js +2 -0
- package/dist/base/@types/models/orcamento/contaContabil.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/config/formaPagamento.js +8 -0
- package/dist/base/configs/endpoints.config/dm/config/formaPagamento.js.map +1 -0
- package/dist/base/configs/endpoints.config/dm/dm.js +20 -18
- package/dist/base/configs/endpoints.config/dm/dm.js.map +1 -1
- package/dist/base/configs/endpoints.config/orcamento/config/contaContabil.js +12 -0
- package/dist/base/configs/endpoints.config/orcamento/config/contaContabil.js.map +1 -0
- package/dist/base/configs/endpoints.config/orcamento/orcamento.js +6 -4
- package/dist/base/configs/endpoints.config/orcamento/orcamento.js.map +1 -1
- package/dist/base/configs/endpoints.config/transportadora/consultarFavorecido.js.map +1 -1
- package/dist/base/configs/navigation.config/submenu/orcamento/cadastros.submenu.js +6 -4
- package/dist/base/configs/navigation.config/submenu/orcamento/cadastros.submenu.js.map +1 -1
- package/dist/base/configs/navigation.config/submenu/orcamento/premissas/contaContabil.submenu.js +17 -0
- package/dist/base/configs/navigation.config/submenu/orcamento/premissas/contaContabil.submenu.js.map +1 -0
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js +27 -0
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.js.map +1 -0
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js +26 -0
- package/dist/base/hooks/dm/formaPagamento/useFormaPagamentoList.js.map +1 -0
- package/dist/base/hooks/index.js +26 -22
- package/dist/base/hooks/index.js.map +1 -1
- package/dist/base/index.js +341 -334
- package/dist/base/index.js.map +1 -1
- package/dist/base/services/index.js +278 -275
- package/dist/base/services/index.js.map +1 -1
- package/dist/base/services/modules/dm/formaPagamento/FormaPagamentoService.js +22 -0
- package/dist/base/services/modules/dm/formaPagamento/FormaPagamentoService.js.map +1 -0
- package/dist/base/services/modules/dm/index.js +28 -25
- package/dist/base/services/modules/dm/index.js.map +1 -1
- package/dist/base/services/modules/index.js +278 -275
- package/dist/base/services/modules/index.js.map +1 -1
- package/dist/base/services/modules/transportadora/ordemCarregamento/OrdemCarregamentoService.js.map +1 -1
- package/dist/base/store/dm/formaPagamento/formaPagamentoListStore.js +14 -0
- package/dist/base/store/dm/formaPagamento/formaPagamentoListStore.js.map +1 -0
- package/package.json +1 -1
package/dist/base/configs/navigation.config/submenu/orcamento/premissas/contaContabil.submenu.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contaContabil.submenu.js","sources":["../../../../../../../lib/base/configs/navigation.config/submenu/orcamento/premissas/contaContabil.submenu.ts"],"sourcesContent":["import { NAV_ITEM_TYPE_ITEM } from '@/constants/navigation.constant'\nimport { ADMIN } from '@/constants/roles.constant'\nimport { NavigationTree } from '@/@types/navigation'\n\nconst contaContabilSubmenu: NavigationTree = {\n key: 'modules.orcamento.premissas.contaContabil',\n path: '/orcamento/conta-contabil',\n title: 'Conta Contábil',\n translateKey: 'nav.modules.orcamento.cadastros.contaContabil.title',\n icon: 'customers',\n type: NAV_ITEM_TYPE_ITEM,\n forceShowTitle: true,\n authority: [ADMIN],\n subMenu: [],\n}\n\nexport default contaContabilSubmenu"],"names":["contaContabilSubmenu","NAV_ITEM_TYPE_ITEM","ADMIN"],"mappings":";;AAIA,MAAMA,IAAuC;AAAA,EACzC,KAAK;AAAA,EACL,MAAM;AAAA,EACN,OAAO;AAAA,EACP,cAAc;AAAA,EACd,MAAM;AAAA,EACN,MAAMC;AAAA,EACN,gBAAgB;AAAA,EAChB,WAAW,CAACC,CAAK;AAAA,EACjB,SAAS,CAAA;AACb;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { apiFindDmFormaPagamentoByCodigo as g } from "../../../services/modules/dm/formaPagamento/FormaPagamentoService.js";
|
|
2
|
+
import { useFormaPagamentoListStore as c } from "../../../store/dm/formaPagamento/formaPagamentoListStore.js";
|
|
3
|
+
import f from "swr";
|
|
4
|
+
function F() {
|
|
5
|
+
const { tableParams: e, filterParams: o, setTableParams: i, setFilterParams: r } = c((a) => a), t = o == null ? void 0 : o.codigo, { data: m, error: s, isLoading: n, mutate: d } = f(
|
|
6
|
+
t ? ["/api/dm/forma-pagamento/find/{codigo}", t] : null,
|
|
7
|
+
([, a]) => g(a),
|
|
8
|
+
{
|
|
9
|
+
revalidateOnFocus: !1
|
|
10
|
+
}
|
|
11
|
+
);
|
|
12
|
+
return {
|
|
13
|
+
data: m,
|
|
14
|
+
formaPagamentoByCodigoList: m || [],
|
|
15
|
+
error: s,
|
|
16
|
+
isLoading: n,
|
|
17
|
+
tableParams: e,
|
|
18
|
+
filterParams: o,
|
|
19
|
+
mutate: d,
|
|
20
|
+
setTableParams: i,
|
|
21
|
+
setFilterParams: r
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
F as default
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=useFormaPagamentoByCodigoList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormaPagamentoByCodigoList.js","sources":["../../../../../lib/base/hooks/dm/formaPagamento/useFormaPagamentoByCodigoList.tsx"],"sourcesContent":["import { apiFindDmFormaPagamentoByCodigo } from '@base/services/modules/dm/formaPagamento/FormaPagamentoService'\nimport { useFormaPagamentoListStore } from '@base/store/dm/formaPagamento/formaPagamentoListStore'\nimport useSWR from 'swr'\n\nexport default function useFormaPagamentoByCodigoList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } = useFormaPagamentoListStore((state) => state)\n\n const codigo = filterParams?.codigo\n\n const { data, error, isLoading, mutate } = useSWR(\n codigo ? [`/api/dm/forma-pagamento/find/{codigo}`, codigo] : null,\n ([, codigo]: [string, string]) => apiFindDmFormaPagamentoByCodigo(codigo),\n {\n revalidateOnFocus: false,\n }\n )\n\n const formaPagamentoByCodigoList = data || []\n\n return {\n data,\n formaPagamentoByCodigoList,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}"],"names":["useFormaPagamentoByCodigoList","tableParams","filterParams","setTableParams","setFilterParams","useFormaPagamentoListStore","state","codigo","data","error","isLoading","mutate","useSWR","apiFindDmFormaPagamentoByCodigo"],"mappings":";;;AAIA,SAAwBA,IAAgC;AACpD,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAAoBC,EAA2B,CAACC,MAAUA,CAAK,GAE5GC,IAASL,KAAA,gBAAAA,EAAc,QAEvB,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL,IAAS,CAAC,yCAAyCA,CAAM,IAAI;AAAA,IAC7D,CAAC,GAAGA,CAAM,MAAwBM,EAAgCN,CAAM;AAAA,IACxE;AAAA,MACI,mBAAmB;AAAA,IAAA;AAAA,EACvB;AAKJ,SAAO;AAAA,IACH,MAAAC;AAAA,IACA,4BAJ+BA,KAAQ,CAAA;AAAA,IAKvC,OAAAC;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { apiFindDmFormaPagamento as g } from "../../../services/modules/dm/formaPagamento/FormaPagamentoService.js";
|
|
2
|
+
import { useFormaPagamentoListStore as u } from "../../../store/dm/formaPagamento/formaPagamentoListStore.js";
|
|
3
|
+
import c from "swr";
|
|
4
|
+
function L() {
|
|
5
|
+
const { tableParams: o, filterParams: t, setTableParams: r, setFilterParams: s } = u((P) => P), e = ["/api/dm/forma-pagamento/find", t], { data: a, error: m, isLoading: n, mutate: i } = c(
|
|
6
|
+
e,
|
|
7
|
+
() => g(),
|
|
8
|
+
{ revalidateOnFocus: !1 }
|
|
9
|
+
), f = a || [], l = (a == null ? void 0 : a.length) || 0;
|
|
10
|
+
return {
|
|
11
|
+
data: a,
|
|
12
|
+
formasPagamentosList: f,
|
|
13
|
+
formasPagamentosListTotal: l,
|
|
14
|
+
error: m,
|
|
15
|
+
isLoading: n,
|
|
16
|
+
tableParams: o,
|
|
17
|
+
filterParams: t,
|
|
18
|
+
mutate: i,
|
|
19
|
+
setTableParams: r,
|
|
20
|
+
setFilterParams: s
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
L as default
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=useFormaPagamentoList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFormaPagamentoList.js","sources":["../../../../../lib/base/hooks/dm/formaPagamento/useFormaPagamentoList.tsx"],"sourcesContent":["import { apiFindDmFormaPagamento } from '@base/services/modules/dm/formaPagamento/FormaPagamentoService'\nimport { useFormaPagamentoListStore } from '@base/store/dm/formaPagamento/formaPagamentoListStore';\nimport useSWR from 'swr'\n\nexport default function useFormaPagamentoList() {\n const { tableParams, filterParams, setTableParams, setFilterParams } =\n useFormaPagamentoListStore((state) => state);\n\n const swrKey = [\"/api/dm/forma-pagamento/find\", filterParams];\n\n const { data, error, isLoading, mutate } = useSWR(\n swrKey,\n () => apiFindDmFormaPagamento(),\n { revalidateOnFocus: false }\n );\n\n const formasPagamentosList = data || []\n\n const formasPagamentosListTotal = data?.length || 0\n\n return {\n data,\n formasPagamentosList,\n formasPagamentosListTotal,\n error,\n isLoading,\n tableParams,\n filterParams,\n mutate,\n setTableParams,\n setFilterParams,\n }\n}"],"names":["useFormaPagamentoList","tableParams","filterParams","setTableParams","setFilterParams","useFormaPagamentoListStore","state","swrKey","data","error","isLoading","mutate","useSWR","apiFindDmFormaPagamento","formasPagamentosList","formasPagamentosListTotal"],"mappings":";;;AAIA,SAAwBA,IAAwB;AAC5C,QAAM,EAAE,aAAAC,GAAa,cAAAC,GAAc,gBAAAC,GAAgB,iBAAAC,MAC/CC,EAA2B,CAACC,MAAUA,CAAK,GAEzCC,IAAS,CAAC,gCAAgCL,CAAY,GAEtD,EAAE,MAAAM,GAAM,OAAAC,GAAO,WAAAC,GAAW,QAAAC,MAAWC;AAAA,IACvCL;AAAA,IACA,MAAMM,EAAA;AAAA,IACN,EAAE,mBAAmB,GAAA;AAAA,EAAM,GAGzBC,IAAuBN,KAAQ,CAAA,GAE/BO,KAA4BP,KAAA,gBAAAA,EAAM,WAAU;AAElD,SAAO;AAAA,IACH,MAAAA;AAAA,IACA,sBAAAM;AAAA,IACA,2BAAAC;AAAA,IACA,OAAAN;AAAA,IACA,WAAAC;AAAA,IACA,aAAAT;AAAA,IACA,cAAAC;AAAA,IACA,QAAAS;AAAA,IACA,gBAAAR;AAAA,IACA,iBAAAC;AAAA,EAAA;AAER;"}
|
package/dist/base/hooks/index.js
CHANGED
|
@@ -2,42 +2,46 @@ import { default as t } from "./useList.js";
|
|
|
2
2
|
import { default as r } from "./dm/businessPartner/useBusinessPartnerList.js";
|
|
3
3
|
import { default as u } from "./dm/businessPartner/useBusinessPartnerClienteList.js";
|
|
4
4
|
import { default as f } from "./dm/businessPartner/useBusinessPartnerFornecedorList.js";
|
|
5
|
-
import { default as
|
|
6
|
-
import { default as
|
|
5
|
+
import { default as m } from "./dm/canalDistribuicao/useCanalDistribuicaoList.js";
|
|
6
|
+
import { default as l } from "./dm/canalDistribuicao/useCanalDistribuicaoByCodigoList.js";
|
|
7
7
|
import { default as L } from "./dm/centro/useCentroList.js";
|
|
8
8
|
import { default as C } from "./dm/centro/useCentroByCodigoList.js";
|
|
9
9
|
import { default as B } from "./dm/condicaoPagamento/useCondicaoPagamentoList.js";
|
|
10
10
|
import { default as g } from "./dm/deposito/useDepositoList.js";
|
|
11
11
|
import { default as D } from "./dm/deposito/useDepositoByCodigoList.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as G } from "./dm/
|
|
16
|
-
import { default as S } from "./dm/
|
|
17
|
-
import { default as j } from "./dm/
|
|
18
|
-
import { default as q } from "./dm/produto/
|
|
19
|
-
import { default as z } from "./dm/produto/
|
|
20
|
-
import { default as J } from "./dm/
|
|
12
|
+
import { default as b } from "./dm/deposito/useDepositosByCodigoCentroList.js";
|
|
13
|
+
import { default as I } from "./dm/escritorioVenda/useEscritorioVendaList.js";
|
|
14
|
+
import { default as v } from "./dm/escritorioVenda/useEscritorioVendaByCodigoList.js";
|
|
15
|
+
import { default as G } from "./dm/formaPagamento/useFormaPagamentoList.js";
|
|
16
|
+
import { default as S } from "./dm/formaPagamento/useFormaPagamentoByCodigoList.js";
|
|
17
|
+
import { default as j } from "./dm/incoterms/useIncotermsList.js";
|
|
18
|
+
import { default as q } from "./dm/produto/useProdutoList.js";
|
|
19
|
+
import { default as z } from "./dm/produto/useProdutoByCodigoList.js";
|
|
20
|
+
import { default as J } from "./dm/produto/useProdutoByGrupoProdutoList.js";
|
|
21
|
+
import { default as M } from "./dm/produto/useProdutoIsPrecificadoRacaoList.js";
|
|
22
|
+
import { default as O } from "./dm/setorAtividade/useSetorAtividadeList.js";
|
|
21
23
|
export {
|
|
22
24
|
u as useBusinessPartnerClienteList,
|
|
23
25
|
f as useBusinessPartnerFornecedorList,
|
|
24
26
|
r as useBusinessPartnerList,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
+
l as useCanalDistribuicaoByCodigoList,
|
|
28
|
+
m as useCanalDistribuicaoList,
|
|
27
29
|
C as useCentroByCodigoList,
|
|
28
30
|
L as useCentroList,
|
|
29
31
|
B as useCondicaoPagamentoList,
|
|
30
32
|
D as useDepositoByCodigoList,
|
|
31
33
|
g as useDepositoList,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
b as useDepositosByCodigoCentroList,
|
|
35
|
+
v as useEscritorioVendaByCodigoList,
|
|
36
|
+
I as useEscritorioVendaList,
|
|
37
|
+
S as useFormaPagamentoByCodigoList,
|
|
38
|
+
G as useFormaPagamentoList,
|
|
39
|
+
j as useIncotermsList,
|
|
36
40
|
t as useList,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
z as useProdutoByCodigoList,
|
|
42
|
+
J as useProdutoByGrupoProdutoList,
|
|
43
|
+
M as useProdutoIsPrecificadoRacaoList,
|
|
44
|
+
q as useProdutoList,
|
|
45
|
+
O as useSetorAtividadeList
|
|
42
46
|
};
|
|
43
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
|