@imj_media/tareas 1.5.49 → 1.5.51

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,3 +1,4 @@
1
+ export declare const useFilterMenuClose: () => () => void;
1
2
  declare const FilterButton: ({ children, filterChildren }: {
2
3
  children: React.ReactNode;
3
4
  filterChildren: React.MutableRefObject<HTMLDivElement>;
@@ -1,5 +1,5 @@
1
1
  declare const useSalesmanUsers: () => {
2
- getSalesmanAndProjects: () => Promise<{
2
+ getSalesmanAndProjects: (filtersOverride?: Record<string, unknown>) => Promise<{
3
3
  salesmanUsers: any;
4
4
  projects: any;
5
5
  }>;
@@ -1,4 +1,4 @@
1
- import { IconType } from 'ui-ds';
1
+ import { IconType } from '@imj_media/ui';
2
2
  interface TeamModalHeaderProps {
3
3
  title: string;
4
4
  color?: IconType;
@@ -30,23 +30,23 @@
30
30
  */
31
31
  export declare const useGetInputFiltersByPath: (currentPath: string) => {
32
32
  inputFilters: ({
33
- icon?: import('ui-ds').VisualSlotType;
33
+ icon?: import('@imj_media/ui').VisualSlotType;
34
34
  label: string;
35
35
  keyName?: string;
36
36
  value?: string;
37
- onValueChange?: (value: import('ui-ds').FilterChangeValue) => void;
38
- options?: import('ui-ds').DropdownOption[];
37
+ onValueChange?: (value: import('@imj_media/ui').FilterChangeValue) => void;
38
+ options?: import('@imj_media/ui').DropdownOption[];
39
39
  placeholder?: string;
40
40
  clearText?: string;
41
41
  type?: "date" | "input" | "group" | "textarea" | "multiple" | "dropdown" | "dateRange";
42
42
  title?: string;
43
43
  } | {
44
44
  options: any;
45
- icon?: import('ui-ds').VisualSlotType;
45
+ icon?: import('@imj_media/ui').VisualSlotType;
46
46
  label: string;
47
47
  keyName?: string;
48
48
  value?: string;
49
- onValueChange?: (value: import('ui-ds').FilterChangeValue) => void;
49
+ onValueChange?: (value: import('@imj_media/ui').FilterChangeValue) => void;
50
50
  placeholder?: string;
51
51
  clearText?: string;
52
52
  type?: "date" | "input" | "group" | "textarea" | "multiple" | "dropdown" | "dateRange";
@@ -1,5 +1,5 @@
1
1
  import { FieldValues, UseFormSetValue } from 'react-hook-form';
2
- import { DropdownOption } from 'ui-ds';
2
+ import { DropdownOption } from '@imj_media/ui';
3
3
  import { ITemplateField } from '../infraestructure/interfaces/templates';
4
4
  /**
5
5
  * Hook personalizado para manejar el formulario de templates
@@ -21,7 +21,7 @@
21
21
  * @dependencies
22
22
  * - React: useCallback para optimización de rendimiento
23
23
  * - @xyflow/react: Gestión del canvas y nodos
24
- * - ui-ds: Sistema de notificaciones toast
24
+ * - @imj_media/ui: Sistema de notificaciones toast
25
25
  *
26
26
  * @stores
27
27
  * - useTemplateGridStore: Estado del clipboard y viewMode
@@ -1,4 +1,4 @@
1
- import { Filter } from 'ui-ds';
1
+ import { Filter } from '@imj_media/ui';
2
2
  export type TemplateFiltersConfig = {
3
3
  estatus: Filter;
4
4
  publication_date: Filter;
@@ -1,3 +1,3 @@
1
- import { Filter } from 'ui-ds';
1
+ import { Filter } from '@imj_media/ui';
2
2
  export declare const isDatePickerProps: (inputData: any) => inputData is Filter;
3
3
  export declare const isDropdownProps: (inputData: any) => inputData is Filter;
@@ -1,4 +1,11 @@
1
1
  import { TFilters } from '../context/filtersLayout.context';
2
+ /**
3
+ * Para cargar opciones del select "Por campaña" no debe enviarse el proyecto ya filtrado:
4
+ * la API con justProjects devolvería solo esa campaña.
5
+ */
6
+ export declare const withoutProjectFilter: (filters: Record<string, unknown>) => {
7
+ [x: string]: unknown;
8
+ };
2
9
  export declare const addEstructureToFilters: (filters: TFilters) => any;
3
10
  export declare const formatQueryFilters: <T>({ search, filters }: {
4
11
  search: string;