@trii/components 2.0.70 → 2.0.72
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/cjs/index.js +10 -10
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +10 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/types/components/EventsDialog/EventsDialog.d.ts +2 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/components/ContactSearchResults/ContactsSearchResults.d.ts +2 -2
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +1 -1
- package/dist/types/components/EventsDialog/components/TaskCalendarSelect/TaskCalendarSelect.d.ts +2 -1
- package/dist/types/components/EventsDialog/context/CalendarContextProvider.d.ts +3 -1
- package/dist/types/components/EventsDialog/hooks/useEvent.d.ts +6 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -66,6 +66,8 @@ interface EventsDialogProps {
|
|
|
66
66
|
sx?: SxProps<Theme>;
|
|
67
67
|
/** Tabs a ocultar: 'details', 'reminders', 'tasks' */
|
|
68
68
|
hiddenTabs?: boolean;
|
|
69
|
+
/** Callback invocado tras cada operación CRUD exitosa (crear, editar, eliminar) */
|
|
70
|
+
onActionComplete?: (action: 'created' | 'updated' | 'deleted', type: 'event' | 'task', data: any) => void;
|
|
69
71
|
}
|
|
70
72
|
/**
|
|
71
73
|
* EventsDialog - Componente para gestión de eventos y tareas
|
|
@@ -33,6 +33,8 @@ export interface EventsDialogProps {
|
|
|
33
33
|
sx?: SxProps<Theme>;
|
|
34
34
|
/** Tabs a ocultar: 'details', 'reminders', 'tasks' */
|
|
35
35
|
hiddenTabs?: boolean;
|
|
36
|
+
/** Callback invocado tras cada operación CRUD exitosa (crear, editar, eliminar) */
|
|
37
|
+
onActionComplete?: (action: 'created' | 'updated' | 'deleted', type: 'event' | 'task', data: any) => void;
|
|
36
38
|
}
|
|
37
39
|
/**
|
|
38
40
|
* EventsDialog - Componente para gestión de eventos y tareas
|
|
@@ -4,8 +4,8 @@ interface Props {
|
|
|
4
4
|
handleScroll: (e: UIEvent<HTMLElement>) => void;
|
|
5
5
|
contactList: IContact[];
|
|
6
6
|
handleSelectContact: (contact: IContact) => void;
|
|
7
|
-
|
|
7
|
+
selectedContactIds: string[];
|
|
8
8
|
search: string;
|
|
9
9
|
}
|
|
10
|
-
declare const ContactSearchResults: ({ handleScroll, contactList, handleSelectContact,
|
|
10
|
+
declare const ContactSearchResults: ({ handleScroll, contactList, handleSelectContact, selectedContactIds, search, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export default ContactSearchResults;
|
package/dist/types/components/EventsDialog/components/TaskCalendarSelect/TaskCalendarSelect.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import { ICalendar } from '@trii/types/dist/Calendar/Calendar';
|
|
|
2
2
|
type Props = {
|
|
3
3
|
disabled: boolean;
|
|
4
4
|
calendars: ICalendar[];
|
|
5
|
+
userId?: string;
|
|
5
6
|
value: string;
|
|
6
7
|
onChange: (calendarId: string) => void;
|
|
7
8
|
};
|
|
8
|
-
declare const TaskCalendarSelect: ({ disabled, calendars, value, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare const TaskCalendarSelect: ({ disabled, calendars, userId, value, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
10
|
export default TaskCalendarSelect;
|
|
@@ -17,6 +17,8 @@ interface Props {
|
|
|
17
17
|
externalSelectedTask?: any;
|
|
18
18
|
/** Tabs a ocultar*/
|
|
19
19
|
hiddenTabs?: boolean;
|
|
20
|
+
/** Callback invocado tras cada operación CRUD exitosa */
|
|
21
|
+
externalOnActionComplete?: (action: 'created' | 'updated' | 'deleted', type: 'event' | 'task', data: any) => void;
|
|
20
22
|
}
|
|
21
|
-
declare const CalendarContextProvider: ({ children, externalOpen, externalOnClose, externalMode, externalType, externalEventCalendarId, externalTaskCalendarId, externalSelectedEvent, externalSelectedTask, hiddenTabs, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
declare const CalendarContextProvider: ({ children, externalOpen, externalOnClose, externalMode, externalType, externalEventCalendarId, externalTaskCalendarId, externalSelectedEvent, externalSelectedTask, hiddenTabs, externalOnActionComplete, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
22
24
|
export default CalendarContextProvider;
|
|
@@ -15,13 +15,18 @@ export interface UseDateState {
|
|
|
15
15
|
handleSelect: (setter: (date: Dayjs) => void) => (date: Dayjs) => void;
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
+
export interface SelectedContact {
|
|
19
|
+
id: string;
|
|
20
|
+
name: string;
|
|
21
|
+
}
|
|
18
22
|
export interface UseLinkContact {
|
|
19
23
|
state: {
|
|
20
24
|
search: string;
|
|
21
|
-
|
|
25
|
+
selectedContacts: SelectedContact[];
|
|
22
26
|
};
|
|
23
27
|
action: {
|
|
24
28
|
handleSelectContact: (contact: IContact) => void;
|
|
29
|
+
handleRemoveContact: (contactId: string) => void;
|
|
25
30
|
handleSearchChange: (search: string) => void;
|
|
26
31
|
resetField: () => void;
|
|
27
32
|
};
|