upconta.frontend-utils 2.4.0 → 2.5.1

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.
@@ -14,7 +14,7 @@ export type SeekerProps<T> = Pick<FormItemProps, 'name' | 'label' | 'className'
14
14
  ejecutarSelect?: boolean;
15
15
  };
16
16
  declare const Seeker: {
17
- <T = TypesEc>(props: SeekerProps<T>): import("react/jsx-runtime").JSX.Element | null;
17
+ <T = TypesEc>(props: SeekerProps<T>): string | import("react/jsx-runtime").JSX.Element;
18
18
  displayName: string;
19
19
  };
20
20
  export default Seeker;
@@ -1,4 +1,4 @@
1
1
  import { FnPack } from './Seeker.utils';
2
- export type TypesEc = 'clients' | 'providers' | 'sellers' | 'transporters' | 'cuentas-contables' | 'cost-centers' | 'empleados' | 'mesas' | 'meseros' | 'products' | 'services' | 'products-services';
2
+ export type TypesEc = 'clients' | 'providers' | 'sellers' | 'transporters' | 'cuentas-contables' | 'cost-centers' | 'empleados' | 'mesas' | 'meseros' | 'products' | 'services' | 'products-services' | 'agency' | 'products-continuity' | 'programs' | 'campaigns';
3
3
  declare const seekerPackEc: FnPack<TypesEc>;
4
4
  export default seekerPackEc;
@@ -0,0 +1,9 @@
1
+ import { FC } from 'react';
2
+ declare const AccountingVoucherButton: FC<{
3
+ value?: string;
4
+ parentId?: string;
5
+ endpoint: string;
6
+ title?: string;
7
+ onDone?: () => void;
8
+ }>;
9
+ export default AccountingVoucherButton;
@@ -0,0 +1,12 @@
1
+ import { FC } from 'react';
2
+ declare const AccountingVoucherModal: FC<{
3
+ accountingVoucher: string;
4
+ onClose: () => void;
5
+ getPermissions: (route?: string) => {
6
+ leer: boolean;
7
+ escribir: boolean;
8
+ eliminar: boolean;
9
+ anular: boolean;
10
+ };
11
+ }>;
12
+ export default AccountingVoucherModal;
@@ -7,6 +7,7 @@ interface Empresa {
7
7
  nombreUsuario: string;
8
8
  testEnviroment: boolean;
9
9
  usuarioEsAdmin: boolean;
10
+ setAccountingVoucher: (voucher: string) => void;
10
11
  /**
11
12
  * Permite verficar la exitencia y vigencia de un módulo
12
13
  */
@@ -16,3 +16,4 @@ export { default as LayoutBase } from './LayoutBase';
16
16
  export { default as ContextoEmpresa, useContextoEmpresa, } from './contexts/Empresa';
17
17
  export { useFrontendUtils } from './contexts/FrontendUtils';
18
18
  export { default as FormularioPersonas } from './administrative/FormularioPersonas';
19
+ export { default as AccountingVoucherButton } from './contability/AccountingVoucherButton';