@trii/components 2.0.76 → 2.0.78
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/cjs/types/USAGE_EXAMPLE.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +14 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +4 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/components/index.d.ts +6 -0
- package/dist/cjs/types/components/ContactInfoPopup/index.d.ts +1 -0
- package/dist/cjs/types/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
- package/dist/cjs/types/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/ModalEvents.backup.d.ts +23 -0
- package/dist/cjs/types/components/ModalEvents/ModalEvents.d.ts +9 -0
- package/dist/cjs/types/components/ModalEvents/ModalEvents.refactored.d.ts +9 -0
- package/dist/cjs/types/components/ModalEvents/components/ActionButtons/ActionButtons.d.ts +5 -0
- package/dist/cjs/types/components/ModalEvents/components/ActionButtons/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/AllDayCheckbox/AllDayCheckbox.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/AllDayCheckbox/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/ColorPicker/ColorPicker.d.ts +8 -0
- package/dist/cjs/types/components/ModalEvents/components/ColorPicker/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/CreateTypeTabs/CreateTypeTabs.d.ts +11 -0
- package/dist/cjs/types/components/ModalEvents/components/CreateTypeTabs/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/cjs/types/components/ModalEvents/components/DatePicker/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/DatePicker/styles.d.ts +10 -0
- package/dist/cjs/types/components/ModalEvents/components/DescriptionTextField/DescriptionTextField.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/DescriptionTextField/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/IsPrivateCheckbox/IsPrivateCheckbox.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/IsPrivateCheckbox/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/LinkContactsSelect.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchBar/ContactSearchBar.d.ts +6 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchBar/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchResults/ContactsSearchResults.d.ts +11 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchResults/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/components/index.d.ts +2 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/LinkContactsSelect/styles.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/LocationTextField.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/MapLocationPicker.d.ts +8 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/SendLocation/LocationSelectorModal.d.ts +8 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/SendLocation/components/GoogleMap/GoogleMapStandalone.d.ts +9 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/SendLocation/components/GoogleMap/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/SendLocation/components/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/SendLocation/index.d.ts +3 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/SendLocation/types.d.ts +15 -0
- package/dist/cjs/types/components/ModalEvents/components/LocationTextField/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/RecurrenceSelect/RecurrenceSelect.d.ts +8 -0
- package/dist/cjs/types/components/ModalEvents/components/RecurrenceSelect/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/ReminderNotifications.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/ReminderItem.d.ts +12 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/style.d.ts +17 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/utils/selectOptions.d.ts +5 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/components/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/ReminderNotifications/styles.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/ShareUsersSelect/ShareUsersSelect.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/components/ShareUsersSelect/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/ShareUsersSelect/styles.d.ts +4 -0
- package/dist/cjs/types/components/ModalEvents/components/SyncWithGoogleField/SyncWithGoogleField.d.ts +5 -0
- package/dist/cjs/types/components/ModalEvents/components/TaskCalendarSelect/TaskCalendarSelect.d.ts +9 -0
- package/dist/cjs/types/components/ModalEvents/components/TaskCalendarSelect/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/TaskDatePicker/TaskDatePicker.d.ts +10 -0
- package/dist/cjs/types/components/ModalEvents/components/TaskDatePicker/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/TitleTextField/TitleTextField.d.ts +8 -0
- package/dist/cjs/types/components/ModalEvents/components/TitleTextField/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/components/index.d.ts +15 -0
- package/dist/cjs/types/components/ModalEvents/context/CalendarContext.d.ts +84 -0
- package/dist/cjs/types/components/ModalEvents/context/CalendarContextProvider.d.ts +6 -0
- package/dist/cjs/types/components/ModalEvents/context/types/CalendarDialogMode.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/context/types/CalendarDialogState.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/context/types/DialogType.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/context/types/Mode.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/hooks/index.d.ts +2 -0
- package/dist/cjs/types/components/ModalEvents/hooks/useContactSearch.d.ts +23 -0
- package/dist/cjs/types/components/ModalEvents/hooks/useModalData.d.ts +33 -0
- package/dist/cjs/types/components/ModalEvents/index.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/layout/BasicInputContainer/BasicInputContainer.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/layout/BasicInputContainer/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/layout/BasicInputContainer/styles.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/layout/InputContainer/InputContainer.d.ts +7 -0
- package/dist/cjs/types/components/ModalEvents/layout/InputContainer/index.d.ts +1 -0
- package/dist/cjs/types/components/ModalEvents/layout/index.d.ts +2 -0
- package/dist/cjs/types/components/ModalEvents/sections/ActionButtonsSection.d.ts +17 -0
- package/dist/cjs/types/components/ModalEvents/sections/CalendarSection.d.ts +18 -0
- package/dist/cjs/types/components/ModalEvents/sections/ColorSection.d.ts +16 -0
- package/dist/cjs/types/components/ModalEvents/sections/DateTimeSection.d.ts +19 -0
- package/dist/cjs/types/components/ModalEvents/sections/DescriptionSection.d.ts +17 -0
- package/dist/cjs/types/components/ModalEvents/sections/LinkedContactsSection.d.ts +22 -0
- package/dist/cjs/types/components/ModalEvents/sections/LocationSection.d.ts +17 -0
- package/dist/cjs/types/components/ModalEvents/sections/ModalHeader.d.ts +18 -0
- package/dist/cjs/types/components/ModalEvents/sections/NotificationsSection.d.ts +19 -0
- package/dist/cjs/types/components/ModalEvents/sections/TitleSection.d.ts +22 -0
- package/dist/cjs/types/components/ModalEvents/sections/index.d.ts +10 -0
- package/dist/cjs/types/components/ModalEvents/types/index.d.ts +376 -0
- package/dist/cjs/types/components/TextBox/TestBox.d.ts +8 -0
- package/dist/cjs/types/components/TextBox/index.d.ts +1 -0
- package/dist/cjs/types/components/index.d.ts +4 -0
- package/dist/cjs/types/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +14 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +7 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +4 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/index.d.ts +1 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
- package/dist/cjs/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
- package/dist/cjs/types/src/components/ModalEvents/ModalEvents.d.ts +23 -0
- package/dist/cjs/types/src/components/ModalEvents/index.d.ts +7 -0
- package/dist/cjs/types/src/components/ModalEvents/types/index.d.ts +352 -0
- package/dist/cjs/types/src/components/TextBox/TestBox.d.ts +8 -0
- package/dist/cjs/types/src/components/TextBox/index.d.ts +1 -0
- package/dist/cjs/types/src/components/index.d.ts +4 -0
- package/dist/cjs/types/src/index.d.ts +1 -0
- package/dist/esm/index.js +10 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/USAGE_EXAMPLE.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +14 -0
- package/dist/esm/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
- package/dist/esm/types/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
- package/dist/esm/types/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +4 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/components/index.d.ts +6 -0
- package/dist/esm/types/components/ContactInfoPopup/index.d.ts +1 -0
- package/dist/esm/types/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
- package/dist/esm/types/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/ModalEvents.backup.d.ts +23 -0
- package/dist/esm/types/components/ModalEvents/ModalEvents.d.ts +9 -0
- package/dist/esm/types/components/ModalEvents/ModalEvents.refactored.d.ts +9 -0
- package/dist/esm/types/components/ModalEvents/components/ActionButtons/ActionButtons.d.ts +5 -0
- package/dist/esm/types/components/ModalEvents/components/ActionButtons/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/AllDayCheckbox/AllDayCheckbox.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/AllDayCheckbox/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/ColorPicker/ColorPicker.d.ts +8 -0
- package/dist/esm/types/components/ModalEvents/components/ColorPicker/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/CreateTypeTabs/CreateTypeTabs.d.ts +11 -0
- package/dist/esm/types/components/ModalEvents/components/CreateTypeTabs/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/esm/types/components/ModalEvents/components/DatePicker/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/DatePicker/styles.d.ts +10 -0
- package/dist/esm/types/components/ModalEvents/components/DescriptionTextField/DescriptionTextField.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/DescriptionTextField/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/IsPrivateCheckbox/IsPrivateCheckbox.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/IsPrivateCheckbox/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/LinkContactsSelect.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchBar/ContactSearchBar.d.ts +6 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchBar/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchResults/ContactsSearchResults.d.ts +11 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/components/ContactSearchResults/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/components/index.d.ts +2 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/LinkContactsSelect/styles.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/LocationTextField.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/MapLocationPicker.d.ts +8 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/SendLocation/LocationSelectorModal.d.ts +8 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/SendLocation/components/GoogleMap/GoogleMapStandalone.d.ts +9 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/SendLocation/components/GoogleMap/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/SendLocation/components/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/SendLocation/index.d.ts +3 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/SendLocation/types.d.ts +15 -0
- package/dist/esm/types/components/ModalEvents/components/LocationTextField/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/RecurrenceSelect/RecurrenceSelect.d.ts +8 -0
- package/dist/esm/types/components/ModalEvents/components/RecurrenceSelect/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/ReminderNotifications.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/ReminderItem.d.ts +12 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/style.d.ts +17 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/components/ReminderItem/utils/selectOptions.d.ts +5 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/components/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/ReminderNotifications/styles.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/ShareUsersSelect/ShareUsersSelect.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/components/ShareUsersSelect/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/ShareUsersSelect/styles.d.ts +4 -0
- package/dist/esm/types/components/ModalEvents/components/SyncWithGoogleField/SyncWithGoogleField.d.ts +5 -0
- package/dist/esm/types/components/ModalEvents/components/TaskCalendarSelect/TaskCalendarSelect.d.ts +9 -0
- package/dist/esm/types/components/ModalEvents/components/TaskCalendarSelect/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/TaskDatePicker/TaskDatePicker.d.ts +10 -0
- package/dist/esm/types/components/ModalEvents/components/TaskDatePicker/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/TitleTextField/TitleTextField.d.ts +8 -0
- package/dist/esm/types/components/ModalEvents/components/TitleTextField/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/components/index.d.ts +15 -0
- package/dist/esm/types/components/ModalEvents/context/CalendarContext.d.ts +84 -0
- package/dist/esm/types/components/ModalEvents/context/CalendarContextProvider.d.ts +6 -0
- package/dist/esm/types/components/ModalEvents/context/types/CalendarDialogMode.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/context/types/CalendarDialogState.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/context/types/DialogType.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/context/types/Mode.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/hooks/index.d.ts +2 -0
- package/dist/esm/types/components/ModalEvents/hooks/useContactSearch.d.ts +23 -0
- package/dist/esm/types/components/ModalEvents/hooks/useModalData.d.ts +33 -0
- package/dist/esm/types/components/ModalEvents/index.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/layout/BasicInputContainer/BasicInputContainer.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/layout/BasicInputContainer/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/layout/BasicInputContainer/styles.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/layout/InputContainer/InputContainer.d.ts +7 -0
- package/dist/esm/types/components/ModalEvents/layout/InputContainer/index.d.ts +1 -0
- package/dist/esm/types/components/ModalEvents/layout/index.d.ts +2 -0
- package/dist/esm/types/components/ModalEvents/sections/ActionButtonsSection.d.ts +17 -0
- package/dist/esm/types/components/ModalEvents/sections/CalendarSection.d.ts +18 -0
- package/dist/esm/types/components/ModalEvents/sections/ColorSection.d.ts +16 -0
- package/dist/esm/types/components/ModalEvents/sections/DateTimeSection.d.ts +19 -0
- package/dist/esm/types/components/ModalEvents/sections/DescriptionSection.d.ts +17 -0
- package/dist/esm/types/components/ModalEvents/sections/LinkedContactsSection.d.ts +22 -0
- package/dist/esm/types/components/ModalEvents/sections/LocationSection.d.ts +17 -0
- package/dist/esm/types/components/ModalEvents/sections/ModalHeader.d.ts +18 -0
- package/dist/esm/types/components/ModalEvents/sections/NotificationsSection.d.ts +19 -0
- package/dist/esm/types/components/ModalEvents/sections/TitleSection.d.ts +22 -0
- package/dist/esm/types/components/ModalEvents/sections/index.d.ts +10 -0
- package/dist/esm/types/components/ModalEvents/types/index.d.ts +376 -0
- package/dist/esm/types/components/TextBox/TestBox.d.ts +8 -0
- package/dist/esm/types/components/TextBox/index.d.ts +1 -0
- package/dist/esm/types/components/index.d.ts +4 -0
- package/dist/esm/types/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/ContactInfoPopup.d.ts +14 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +7 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +4 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/components/index.d.ts +6 -0
- package/dist/esm/types/src/components/ContactInfoPopup/index.d.ts +1 -0
- package/dist/esm/types/src/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
- package/dist/esm/types/src/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
- package/dist/esm/types/src/components/ModalEvents/ModalEvents.d.ts +23 -0
- package/dist/esm/types/src/components/ModalEvents/index.d.ts +7 -0
- package/dist/esm/types/src/components/ModalEvents/types/index.d.ts +352 -0
- package/dist/esm/types/src/components/TextBox/TestBox.d.ts +8 -0
- package/dist/esm/types/src/components/TextBox/index.d.ts +1 -0
- package/dist/esm/types/src/components/index.d.ts +4 -0
- package/dist/esm/types/src/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/ContactInfoPopup.stories.d.ts +9 -0
- package/dist/types/components/EditContactModal/EditContactModal.stories.d.ts +9 -0
- package/dist/types/components/EventsDialog/components/IsPrivateCheckbox/IsPrivateCheckbox.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/IsPrivateCheckbox/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/styles.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/MapLocationPicker.d.ts +8 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/index.d.ts +3 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/ReminderItem.d.ts +2 -1
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/style.d.ts +3 -0
- package/dist/types/components/EventsDialog/components/ShareUsersSelect/ShareUsersSelect.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/ShareUsersSelect/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ShareUsersSelect/styles.d.ts +4 -0
- package/dist/types/components/EventsDialog/components/SyncWithGoogleField/SyncWithGoogleField.d.ts +5 -0
- package/dist/types/components/EventsDialog/components/TaskCalendarSelect/TaskCalendarSelect.d.ts +2 -1
- package/dist/types/components/EventsDialog/context/CalendarContext.d.ts +1 -0
- package/dist/types/components/EventsDialog/context/types/CalendarContextType.d.ts +0 -0
- package/dist/types/components/EventsDialog/hooks/index.d.ts +9 -0
- package/dist/types/components/EventsDialog/hooks/useAppDispatch.d.ts +17 -0
- package/dist/types/components/EventsDialog/hooks/useSelect.d.ts +14 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/activitiesSlice.d.ts +27 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/types/ActivitiesSlice.d.ts +12 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/types/ActivitiesTableColumnName.d.ts +1 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/types/AddActivityRequestData.d.ts +19 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/types/EventNotificationFront.d.ts +2 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/types/UpdateActivityRequestData.d.ts +6 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/utils/activitiesSliceService.d.ts +12 -0
- package/dist/types/components/EventsDialog/redux/features/activitiesSlice/utils/selectors.d.ts +132 -0
- package/dist/types/components/EventsDialog/redux/features/calendarsSlice/calendarsSlice.d.ts +12 -0
- package/dist/types/components/EventsDialog/redux/features/calendarsSlice/types/AddCalendarResquestData.d.ts +5 -0
- package/dist/types/components/EventsDialog/redux/features/calendarsSlice/types/CalendarSlice.d.ts +10 -0
- package/dist/types/components/EventsDialog/redux/features/calendarsSlice/utils/calendarsSliceService.d.ts +9 -0
- package/dist/types/components/EventsDialog/redux/features/calendarsSlice/utils/selectors.d.ts +106 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/contactInfoService.d.ts +22 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/contactInfoSlice.d.ts +519 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/ContactData.d.ts +7 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/ContactFile.d.ts +7 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/ContactInfoState.d.ts +20 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/ContactNotes.d.ts +5 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/ConvertContact.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/FieldsData.d.ts +7 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/Filter.d.ts +5 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/Order.d.ts +1 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/Pagination.d.ts +14 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/PaginationInfo.d.ts +7 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/TableItemFormat.d.ts +2 -0
- package/dist/types/components/EventsDialog/redux/features/contactInfoSlice/types/UpdateField.d.ts +5 -0
- package/dist/types/components/EventsDialog/redux/features/poolSlice/poolSlice.d.ts +5 -0
- package/dist/types/components/EventsDialog/redux/features/poolSlice/types/PoolSliceState.d.ts +5 -0
- package/dist/types/components/EventsDialog/redux/features/sessionSlice/sessionSlice.d.ts +30 -0
- package/dist/types/components/EventsDialog/redux/features/sessionSlice/utils/sessionHelper.d.ts +5 -0
- package/dist/types/components/EventsDialog/redux/features/spaceSlice/spaceSlice.d.ts +45 -0
- package/dist/types/components/EventsDialog/redux/features/spaceSlice/spaceSliceService.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/features/spaceSlice/types/SpaceSliceState.d.ts +17 -0
- package/dist/types/components/EventsDialog/redux/features/spacesSlice/spacesSlice.d.ts +80 -0
- package/dist/types/components/EventsDialog/redux/features/spacesSlice/spacesSliceService.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/features/spacesSlice/types/SpacesSliceState.d.ts +8 -0
- package/dist/types/components/EventsDialog/redux/features/tasksSlice/tasksSlice.d.ts +26 -0
- package/dist/types/components/EventsDialog/redux/features/tasksSlice/types/AddTaskRequestData.d.ts +7 -0
- package/dist/types/components/EventsDialog/redux/features/tasksSlice/types/TasksSlice.d.ts +14 -0
- package/dist/types/components/EventsDialog/redux/features/tasksSlice/types/UpdateTaskRequestData.d.ts +10 -0
- package/dist/types/components/EventsDialog/redux/features/tasksSlice/utils/selectors.d.ts +111 -0
- package/dist/types/components/EventsDialog/redux/features/tasksSlice/utils/tasksSliceService.d.ts +16 -0
- package/dist/types/components/EventsDialog/redux/features/userSlice/types/UserSliceState.d.ts +11 -0
- package/dist/types/components/EventsDialog/redux/features/userSlice/userSliceService.d.ts +7 -0
- package/dist/types/components/EventsDialog/redux/functions/getRequestConfig.d.ts +13 -0
- package/dist/types/components/EventsDialog/redux/functions/initRequestData.d.ts +12 -0
- package/dist/types/components/EventsDialog/redux/rootReducer.d.ts +35 -0
- package/dist/types/components/EventsDialog/redux/store.d.ts +39 -0
- package/dist/types/components/EventsDialog/redux/types/AddPermissionAction.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/types/BasicRequests.d.ts +11 -0
- package/dist/types/components/EventsDialog/redux/types/ChangePermissionReadMessagesAction.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/types/ChangePermissionStartConversationsAction.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/types/ChangeScheduleFn.d.ts +3 -0
- package/dist/types/components/EventsDialog/redux/types/Gif.d.ts +41 -0
- package/dist/types/components/EventsDialog/redux/types/InitRequestDataReturn.d.ts +10 -0
- package/dist/types/components/EventsDialog/redux/types/PermissionReadMessagesPayload.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/types/PermissionStartConversationsPayload.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/types/RemovePermissionAction.d.ts +3 -0
- package/dist/types/components/EventsDialog/redux/types/RequestStatus.d.ts +1 -0
- package/dist/types/components/EventsDialog/redux/types/SearchBy.d.ts +4 -0
- package/dist/types/components/EventsDialog/redux/types/SortOrder.d.ts +1 -0
- package/dist/types/components/EventsDialog/redux/types/UpdateChannelThunk.d.ts +6 -0
- package/dist/types/components/EventsDialog/utils/eventValidation.d.ts +37 -0
- package/dist/types/components/EventsDialog/utils/googleMapsUtils.d.ts +5 -0
- package/dist/types/components/EventsDialog/utils/keyboardNavigation.d.ts +24 -0
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export { default as DatePicker } from './DatePicker';
|
|
2
|
+
export { default as TitleTextField } from './TitleTextField';
|
|
3
|
+
export { default as ReminderNotifications } from './ReminderNotifications';
|
|
4
|
+
export { default as DescriptionTextField } from './DescriptionTextField';
|
|
5
|
+
export { default as LocationTextField } from './LocationTextField';
|
|
6
|
+
export { default as ShareUsersSelect } from './ShareUsersSelect';
|
|
7
|
+
export { default as LinkContactsSelect } from './LinkContactsSelect';
|
|
8
|
+
export { default as ActionButtons } from './ActionButtons';
|
|
9
|
+
export { default as CreateTypeTabs } from './CreateTypeTabs';
|
|
10
|
+
export { default as TaskDatePicker } from './TaskDatePicker';
|
|
11
|
+
export { default as TaskCalendarSelect } from './TaskCalendarSelect';
|
|
12
|
+
export { default as AllDayCheckbox } from './AllDayCheckbox';
|
|
13
|
+
export { default as IsPrivateCheckbox } from './IsPrivateCheckbox';
|
|
14
|
+
export { default as ColorPicker } from './ColorPicker';
|
|
15
|
+
export { default as RecurrenceSelect } from './RecurrenceSelect';
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import type { Dispatch, SetStateAction } from "react";
|
|
2
|
+
import { Mode } from './types/Mode';
|
|
3
|
+
import { ICalendar } from '@trii/types/dist/Calendar/Calendar';
|
|
4
|
+
import { CalendarDialogMode } from './types/CalendarDialogMode';
|
|
5
|
+
import { UseCalendarEventsType } from '../hooks/useCalendarEvents';
|
|
6
|
+
import { UseDialog } from '../hooks/useDialog';
|
|
7
|
+
import { UseEvent } from '../hooks/useEvent';
|
|
8
|
+
import { UseCalendarType } from '../hooks/useCalendar';
|
|
9
|
+
import { UseCalendarTasksType } from '../hooks/useCalendarTasks';
|
|
10
|
+
import { UseTask } from '../hooks/useTask';
|
|
11
|
+
import { DialogType } from './types/DialogType';
|
|
12
|
+
export type CalendarContextType = {
|
|
13
|
+
eventDialog: UseDialog;
|
|
14
|
+
createCalendarDialog: UseDialog;
|
|
15
|
+
event: UseEvent;
|
|
16
|
+
events: UseCalendarEventsType;
|
|
17
|
+
calendar: UseCalendarType;
|
|
18
|
+
dialogMode: Mode;
|
|
19
|
+
handleCreateEvent(): void;
|
|
20
|
+
handleSelectEvent(event: any): void;
|
|
21
|
+
handleOpenEventCreate: () => void;
|
|
22
|
+
handleStartEditingEvent: () => void;
|
|
23
|
+
handleSaveUpdatedEvent: (event: any) => void;
|
|
24
|
+
handleEndEvent(): void;
|
|
25
|
+
handleDeleteEvent(): void;
|
|
26
|
+
handleResizeEvent(event: any, start: Date | string, end: Date | string): void;
|
|
27
|
+
selectedEvent: any;
|
|
28
|
+
savingSnackbar: {
|
|
29
|
+
open: boolean;
|
|
30
|
+
message: string;
|
|
31
|
+
severity: 'info' | 'success' | 'error';
|
|
32
|
+
};
|
|
33
|
+
handleCloseSnackbar: () => void;
|
|
34
|
+
dialogType: DialogType;
|
|
35
|
+
setDialogType: (value: DialogType) => void;
|
|
36
|
+
handleOpenTaskCreate: () => void;
|
|
37
|
+
handleOpenCreateFromSlot: (start: Date, end: Date) => void;
|
|
38
|
+
handleCloseCreateCalendarDialog: () => void;
|
|
39
|
+
calendarDialogMode: CalendarDialogMode;
|
|
40
|
+
editingCalendar: ICalendar | null;
|
|
41
|
+
handleOpenCreateCalendarDialog: () => void;
|
|
42
|
+
handleOpenEditCalendarDialog: (cal: ICalendar) => void;
|
|
43
|
+
handleSubmitCalendar: () => Promise<void>;
|
|
44
|
+
tasks: UseCalendarTasksType;
|
|
45
|
+
activeCalendarIds: string[];
|
|
46
|
+
setActiveCalendarIds: Dispatch<SetStateAction<string[]>>;
|
|
47
|
+
handleCreateTask: () => void;
|
|
48
|
+
task: UseTask;
|
|
49
|
+
selectedTask: any;
|
|
50
|
+
taskCalendarId: string;
|
|
51
|
+
setTaskCalendarId: Dispatch<SetStateAction<string>>;
|
|
52
|
+
eventCalendarId: string;
|
|
53
|
+
setEventCalendarId: Dispatch<SetStateAction<string>>;
|
|
54
|
+
userManuallyChangedColor: boolean;
|
|
55
|
+
setUserManuallyChangedColor: Dispatch<SetStateAction<boolean>>;
|
|
56
|
+
myCalendars: ICalendar[];
|
|
57
|
+
otherCalendars: ICalendar[];
|
|
58
|
+
handleSaveUpdatedTask: () => void;
|
|
59
|
+
handleDeleteTask: () => void;
|
|
60
|
+
handleToggleTaskCompleted: () => void;
|
|
61
|
+
handleDuplicateItem: () => void;
|
|
62
|
+
calendarView: 'month' | 'week' | 'day';
|
|
63
|
+
setCalendarView: (view: 'month' | 'week' | 'day') => void;
|
|
64
|
+
calendarDate: Date;
|
|
65
|
+
setCalendarDate: (date: Date) => void;
|
|
66
|
+
navigateToDate: (date: Date) => void;
|
|
67
|
+
confirmDeleteDialog: {
|
|
68
|
+
open: boolean;
|
|
69
|
+
handleClose: () => void;
|
|
70
|
+
itemType: 'event' | 'task';
|
|
71
|
+
};
|
|
72
|
+
handleConfirmDelete: () => void;
|
|
73
|
+
deleteRecurringDialog: {
|
|
74
|
+
open: boolean;
|
|
75
|
+
handleClose: () => void;
|
|
76
|
+
};
|
|
77
|
+
handleConfirmDeleteRecurring: (deleteAll: boolean) => void;
|
|
78
|
+
editRecurringDialog: {
|
|
79
|
+
open: boolean;
|
|
80
|
+
handleClose: () => void;
|
|
81
|
+
};
|
|
82
|
+
handleConfirmEditRecurring: (editAll: boolean) => void;
|
|
83
|
+
};
|
|
84
|
+
export declare const CalendarContext: import("react").Context<CalendarContextType>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type CalendarDialogMode = 'create' | 'edit';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type DialogType = 'event' | 'task';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Mode = 'view' | 'create' | 'edit';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { Contact } from '../types';
|
|
2
|
+
interface UseContactSearchOptions {
|
|
3
|
+
contacts?: Contact[];
|
|
4
|
+
onSearchContacts?: (query: string) => Promise<Contact[]>;
|
|
5
|
+
searchDebounceMs?: number;
|
|
6
|
+
open: boolean;
|
|
7
|
+
}
|
|
8
|
+
interface UseContactSearchReturn {
|
|
9
|
+
searchQuery: string;
|
|
10
|
+
searchResults: Contact[];
|
|
11
|
+
isSearching: boolean;
|
|
12
|
+
handleSearchChange: (query: string) => void;
|
|
13
|
+
clearSearch: () => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Hook para manejar la búsqueda de contactos con debounce
|
|
17
|
+
*
|
|
18
|
+
* Soporta dos modos:
|
|
19
|
+
* - Búsqueda local: filtra sobre la lista `contacts`
|
|
20
|
+
* - Búsqueda asíncrona: usa `onSearchContacts` callback con debounce
|
|
21
|
+
*/
|
|
22
|
+
export declare function useContactSearch({ contacts, onSearchContacts, searchDebounceMs, open, }: UseContactSearchOptions): UseContactSearchReturn;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { EventData, TaskData, Notification, Contact, ItemType, ModalMode } from '../types';
|
|
2
|
+
interface UseModalDataOptions {
|
|
3
|
+
initialType: ItemType;
|
|
4
|
+
eventData?: Partial<EventData>;
|
|
5
|
+
taskData?: Partial<TaskData>;
|
|
6
|
+
mode: ModalMode;
|
|
7
|
+
}
|
|
8
|
+
interface UseModalDataReturn {
|
|
9
|
+
currentType: ItemType;
|
|
10
|
+
localEventData: Partial<EventData>;
|
|
11
|
+
localTaskData: Partial<TaskData>;
|
|
12
|
+
currentData: Partial<EventData> | Partial<TaskData>;
|
|
13
|
+
isEvent: boolean;
|
|
14
|
+
isViewMode: boolean;
|
|
15
|
+
isCreateMode: boolean;
|
|
16
|
+
canDelete: boolean;
|
|
17
|
+
setCurrentType: (type: ItemType) => void;
|
|
18
|
+
handleFieldChange: (field: string, value: any) => void;
|
|
19
|
+
handleTypeChange: (newType: ItemType, onTypeChange?: (type: ItemType) => void) => void;
|
|
20
|
+
handleAddNotification: () => void;
|
|
21
|
+
handleRemoveNotification: (index: number) => void;
|
|
22
|
+
handleUpdateNotification: (index: number, notification: Notification) => void;
|
|
23
|
+
handleAddContact: (contact: Contact) => void;
|
|
24
|
+
handleRemoveContact: (contactId: string) => void;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Hook para manejar el estado local del modal
|
|
28
|
+
*
|
|
29
|
+
* Encapsula toda la lógica de estado y sincronización
|
|
30
|
+
* para mantener el componente principal limpio.
|
|
31
|
+
*/
|
|
32
|
+
export declare function useModalData({ initialType, eventData, taskData, mode, }: UseModalDataOptions): UseModalDataReturn;
|
|
33
|
+
export {};
|
package/dist/esm/types/components/ModalEvents/layout/BasicInputContainer/BasicInputContainer.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type BasicInputContainerProps = {
|
|
3
|
+
name: string;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const BasicInputContainer: ({ name, children }: BasicInputContainerProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default BasicInputContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BasicInputContainer';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledBoxContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledDialogContextText: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
|
+
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
|
+
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './InputContainer';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ActionButtonsSlotProps, ModalMode, ItemType, ModalLabels } from '../types';
|
|
3
|
+
interface ActionButtonsSectionProps {
|
|
4
|
+
mode: ModalMode;
|
|
5
|
+
onSave: () => void;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
isSaving: boolean;
|
|
8
|
+
isDeleting: boolean;
|
|
9
|
+
labels: ModalLabels;
|
|
10
|
+
type?: ItemType;
|
|
11
|
+
slot?: (props: ActionButtonsSlotProps) => React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Sección de botones de acción (guardar, cancelar)
|
|
15
|
+
*/
|
|
16
|
+
declare const ActionButtonsSection: React.FC<ActionButtonsSectionProps>;
|
|
17
|
+
export default ActionButtonsSection;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CalendarSlotProps, Calendar, ModalMode, ItemType } from '../types';
|
|
3
|
+
interface CalendarSectionProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (calendarId: string) => void;
|
|
6
|
+
calendars: Calendar[];
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
mode?: ModalMode;
|
|
11
|
+
type?: ItemType;
|
|
12
|
+
slot?: (props: CalendarSlotProps) => React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Sección de selección de calendario
|
|
16
|
+
*/
|
|
17
|
+
declare const CalendarSection: React.FC<CalendarSectionProps>;
|
|
18
|
+
export default CalendarSection;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ColorSlotProps, ModalMode, ItemType } from '../types';
|
|
3
|
+
interface ColorSectionProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (color: string) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
disabled: boolean;
|
|
8
|
+
mode?: ModalMode;
|
|
9
|
+
type?: ItemType;
|
|
10
|
+
slot?: (props: ColorSlotProps) => React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Sección de selección de color (solo eventos)
|
|
14
|
+
*/
|
|
15
|
+
declare const ColorSection: React.FC<ColorSectionProps>;
|
|
16
|
+
export default ColorSection;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EventData, TaskData, FieldsConfig, ModalLabels, ModalSlots } from '../types';
|
|
3
|
+
interface DateTimeSectionProps {
|
|
4
|
+
isEvent: boolean;
|
|
5
|
+
eventData: Partial<EventData>;
|
|
6
|
+
taskData: Partial<TaskData>;
|
|
7
|
+
onFieldChange: (field: string, value: any) => void;
|
|
8
|
+
config: FieldsConfig;
|
|
9
|
+
labels: ModalLabels;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
slots?: ModalSlots;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Sección de fecha y hora
|
|
15
|
+
* - Eventos: selector de rango con fecha, hora inicio/fin, todo el día, recurrencia
|
|
16
|
+
* - Tareas: selector simple de fecha y hora
|
|
17
|
+
*/
|
|
18
|
+
declare const DateTimeSection: React.FC<DateTimeSectionProps>;
|
|
19
|
+
export default DateTimeSection;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { DescriptionSlotProps, ModalMode, ItemType } from '../types';
|
|
3
|
+
interface DescriptionSectionProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
mode?: ModalMode;
|
|
10
|
+
type?: ItemType;
|
|
11
|
+
slot?: (props: DescriptionSlotProps) => React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Sección de descripción del evento/tarea
|
|
15
|
+
*/
|
|
16
|
+
declare const DescriptionSection: React.FC<DescriptionSectionProps>;
|
|
17
|
+
export default DescriptionSection;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Contact, LinkedContactsSlotProps, ModalMode, ItemType } from '../types';
|
|
3
|
+
interface LinkedContactsSectionProps {
|
|
4
|
+
linkedContacts: Contact[];
|
|
5
|
+
onAdd: (contact: Contact) => void;
|
|
6
|
+
onRemove: (contactId: string) => void;
|
|
7
|
+
searchQuery: string;
|
|
8
|
+
onSearchChange: (query: string) => void;
|
|
9
|
+
searchResults: Contact[];
|
|
10
|
+
isSearching: boolean;
|
|
11
|
+
label?: string;
|
|
12
|
+
searchPlaceholder?: string;
|
|
13
|
+
disabled: boolean;
|
|
14
|
+
mode?: ModalMode;
|
|
15
|
+
type?: ItemType;
|
|
16
|
+
slot?: (props: LinkedContactsSlotProps) => React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Sección de contactos vinculados
|
|
20
|
+
*/
|
|
21
|
+
declare const LinkedContactsSection: React.FC<LinkedContactsSectionProps>;
|
|
22
|
+
export default LinkedContactsSection;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { LocationSlotProps, ModalMode, ItemType } from '../types';
|
|
3
|
+
interface LocationSectionProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (location: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
mode?: ModalMode;
|
|
10
|
+
type?: ItemType;
|
|
11
|
+
slot?: (props: LocationSlotProps) => React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Sección de ubicación (solo eventos)
|
|
15
|
+
*/
|
|
16
|
+
declare const LocationSection: React.FC<LocationSectionProps>;
|
|
17
|
+
export default LocationSection;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { ModalMode, ItemType, ModalLabels } from '../types';
|
|
3
|
+
interface ModalHeaderProps {
|
|
4
|
+
mode: ModalMode;
|
|
5
|
+
type: ItemType;
|
|
6
|
+
labels: ModalLabels;
|
|
7
|
+
onEdit?: () => void;
|
|
8
|
+
onDelete?: () => void;
|
|
9
|
+
onDuplicate?: () => void;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
canDelete: boolean;
|
|
12
|
+
isDeleting: boolean;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Cabecera del modal con título y acciones (editar, eliminar, duplicar, cerrar)
|
|
16
|
+
*/
|
|
17
|
+
declare const ModalHeader: React.FC<ModalHeaderProps>;
|
|
18
|
+
export default ModalHeader;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Notification, NotificationsSlotProps, ModalMode, ItemType } from '../types';
|
|
3
|
+
interface NotificationsSectionProps {
|
|
4
|
+
notifications: Notification[];
|
|
5
|
+
onAdd: () => void;
|
|
6
|
+
onRemove: (index: number) => void;
|
|
7
|
+
onChange: (index: number, notification: Notification) => void;
|
|
8
|
+
label?: string;
|
|
9
|
+
addLabel?: string;
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
mode?: ModalMode;
|
|
12
|
+
type?: ItemType;
|
|
13
|
+
slot?: (props: NotificationsSlotProps) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Sección de recordatorios/notificaciones
|
|
17
|
+
*/
|
|
18
|
+
declare const NotificationsSection: React.FC<NotificationsSectionProps>;
|
|
19
|
+
export default NotificationsSection;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { TitleSlotProps, ModalMode, ItemType } from '../types';
|
|
3
|
+
interface TitleSectionProps {
|
|
4
|
+
value: string;
|
|
5
|
+
onChange: (value: string) => void;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
error?: string;
|
|
10
|
+
variant?: 'default' | 'inline';
|
|
11
|
+
mode?: ModalMode;
|
|
12
|
+
type?: ItemType;
|
|
13
|
+
slot?: (props: TitleSlotProps) => React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Sección de título del evento/tarea
|
|
17
|
+
*
|
|
18
|
+
* - variant="inline": Sin etiqueta, estilo Google Calendar (modo crear)
|
|
19
|
+
* - variant="default": Con etiqueta (modo editar/ver)
|
|
20
|
+
*/
|
|
21
|
+
declare const TitleSection: React.FC<TitleSectionProps>;
|
|
22
|
+
export default TitleSection;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { default as ModalHeader } from './ModalHeader';
|
|
2
|
+
export { default as TitleSection } from './TitleSection';
|
|
3
|
+
export { default as DescriptionSection } from './DescriptionSection';
|
|
4
|
+
export { default as CalendarSection } from './CalendarSection';
|
|
5
|
+
export { default as DateTimeSection } from './DateTimeSection';
|
|
6
|
+
export { default as ColorSection } from './ColorSection';
|
|
7
|
+
export { default as LocationSection } from './LocationSection';
|
|
8
|
+
export { default as NotificationsSection } from './NotificationsSection';
|
|
9
|
+
export { default as LinkedContactsSection } from './LinkedContactsSection';
|
|
10
|
+
export { default as ActionButtonsSection } from './ActionButtonsSection';
|