@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,352 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Moment } from 'moment';
|
|
3
|
+
/**
|
|
4
|
+
* Modos de operación del modal
|
|
5
|
+
*/
|
|
6
|
+
export type ModalMode = 'create' | 'edit' | 'view' | 'duplicate';
|
|
7
|
+
/**
|
|
8
|
+
* Tipos de elementos que puede manejar el modal
|
|
9
|
+
*/
|
|
10
|
+
export type ItemType = 'event' | 'task';
|
|
11
|
+
/**
|
|
12
|
+
* Estructura de una notificación/recordatorio
|
|
13
|
+
*/
|
|
14
|
+
export interface Notification {
|
|
15
|
+
id?: string;
|
|
16
|
+
type: 'minutes' | 'hours' | 'days';
|
|
17
|
+
value: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Estructura de un calendario
|
|
21
|
+
*/
|
|
22
|
+
export interface Calendar {
|
|
23
|
+
id: string;
|
|
24
|
+
name: string;
|
|
25
|
+
color?: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Estructura de un contacto
|
|
29
|
+
*/
|
|
30
|
+
export interface Contact {
|
|
31
|
+
id: string;
|
|
32
|
+
name: string;
|
|
33
|
+
email?: string;
|
|
34
|
+
phone?: string;
|
|
35
|
+
avatarUrl?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Estructura de un usuario para compartir
|
|
39
|
+
*/
|
|
40
|
+
export interface User {
|
|
41
|
+
id: string;
|
|
42
|
+
name: string;
|
|
43
|
+
email?: string;
|
|
44
|
+
avatarUrl?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Datos de un evento
|
|
48
|
+
*/
|
|
49
|
+
export interface EventData {
|
|
50
|
+
id?: string;
|
|
51
|
+
title: string;
|
|
52
|
+
description?: string;
|
|
53
|
+
startDate: Moment;
|
|
54
|
+
endDate: Moment;
|
|
55
|
+
allDay: boolean;
|
|
56
|
+
calendarId: string;
|
|
57
|
+
color: string;
|
|
58
|
+
location?: string;
|
|
59
|
+
isPrivate?: boolean;
|
|
60
|
+
recurrence?: string;
|
|
61
|
+
notifications: Notification[];
|
|
62
|
+
linkedContacts: Contact[];
|
|
63
|
+
sharedUsers?: string[];
|
|
64
|
+
finalized?: boolean;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Datos de una tarea
|
|
68
|
+
*/
|
|
69
|
+
export interface TaskData {
|
|
70
|
+
id?: string;
|
|
71
|
+
title: string;
|
|
72
|
+
description?: string;
|
|
73
|
+
dueDate: Moment;
|
|
74
|
+
calendarId: string;
|
|
75
|
+
notifications: Notification[];
|
|
76
|
+
linkedContacts: Contact[];
|
|
77
|
+
sharedUsers?: string[];
|
|
78
|
+
finalized?: boolean;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Configuración de campos visibles
|
|
82
|
+
*/
|
|
83
|
+
export interface FieldsConfig {
|
|
84
|
+
showTitle?: boolean;
|
|
85
|
+
showDescription?: boolean;
|
|
86
|
+
showCalendar?: boolean;
|
|
87
|
+
showDateTime?: boolean;
|
|
88
|
+
showAllDay?: boolean;
|
|
89
|
+
showRecurrence?: boolean;
|
|
90
|
+
showColor?: boolean;
|
|
91
|
+
showLocation?: boolean;
|
|
92
|
+
showPrivate?: boolean;
|
|
93
|
+
showNotifications?: boolean;
|
|
94
|
+
showLinkedContacts?: boolean;
|
|
95
|
+
showSharedUsers?: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Textos personalizables del modal
|
|
99
|
+
*/
|
|
100
|
+
export interface ModalLabels {
|
|
101
|
+
createEvent?: string;
|
|
102
|
+
editEvent?: string;
|
|
103
|
+
viewEvent?: string;
|
|
104
|
+
createTask?: string;
|
|
105
|
+
editTask?: string;
|
|
106
|
+
viewTask?: string;
|
|
107
|
+
eventTab?: string;
|
|
108
|
+
taskTab?: string;
|
|
109
|
+
title?: string;
|
|
110
|
+
titlePlaceholder?: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
descriptionPlaceholder?: string;
|
|
113
|
+
calendar?: string;
|
|
114
|
+
calendarPlaceholder?: string;
|
|
115
|
+
date?: string;
|
|
116
|
+
startTime?: string;
|
|
117
|
+
endTime?: string;
|
|
118
|
+
allDay?: string;
|
|
119
|
+
recurrence?: string;
|
|
120
|
+
color?: string;
|
|
121
|
+
location?: string;
|
|
122
|
+
locationPlaceholder?: string;
|
|
123
|
+
private?: string;
|
|
124
|
+
notifications?: string;
|
|
125
|
+
addNotification?: string;
|
|
126
|
+
linkedContacts?: string;
|
|
127
|
+
searchContacts?: string;
|
|
128
|
+
sharedUsers?: string;
|
|
129
|
+
save?: string;
|
|
130
|
+
saveEvent?: string;
|
|
131
|
+
saveTask?: string;
|
|
132
|
+
cancel?: string;
|
|
133
|
+
delete?: string;
|
|
134
|
+
edit?: string;
|
|
135
|
+
duplicate?: string;
|
|
136
|
+
close?: string;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Props del componente ModalEvents
|
|
140
|
+
*/
|
|
141
|
+
export interface ModalEventsProps {
|
|
142
|
+
open: boolean;
|
|
143
|
+
onClose: () => void;
|
|
144
|
+
mode: ModalMode;
|
|
145
|
+
type: ItemType;
|
|
146
|
+
showTypeTabs?: boolean;
|
|
147
|
+
onTypeChange?: (type: ItemType) => void;
|
|
148
|
+
eventData?: Partial<EventData>;
|
|
149
|
+
taskData?: Partial<TaskData>;
|
|
150
|
+
onSave?: (data: EventData | TaskData, type: ItemType) => void | Promise<void>;
|
|
151
|
+
onDelete?: (id: string, type: ItemType) => void | Promise<void>;
|
|
152
|
+
onDuplicate?: () => void;
|
|
153
|
+
onEdit?: () => void;
|
|
154
|
+
calendars: Calendar[];
|
|
155
|
+
fieldsConfig?: FieldsConfig;
|
|
156
|
+
labels?: ModalLabels;
|
|
157
|
+
contacts?: Contact[];
|
|
158
|
+
onSearchContacts?: (query: string) => Promise<Contact[]>;
|
|
159
|
+
isSearchingContacts?: boolean;
|
|
160
|
+
searchDebounceMs?: number;
|
|
161
|
+
users?: User[];
|
|
162
|
+
onSearchUsers?: (query: string) => Promise<User[]>;
|
|
163
|
+
isSearchingUsers?: boolean;
|
|
164
|
+
isSaving?: boolean;
|
|
165
|
+
isDeleting?: boolean;
|
|
166
|
+
validationErrors?: Record<string, string>;
|
|
167
|
+
slots?: ModalSlots;
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Props comunes pasadas a todos los slots
|
|
171
|
+
*/
|
|
172
|
+
export interface BaseSlotProps {
|
|
173
|
+
disabled: boolean;
|
|
174
|
+
mode: ModalMode;
|
|
175
|
+
type: ItemType;
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* Props para el slot de título
|
|
179
|
+
*/
|
|
180
|
+
export interface TitleSlotProps extends BaseSlotProps {
|
|
181
|
+
value: string;
|
|
182
|
+
onChange: (value: string) => void;
|
|
183
|
+
placeholder?: string;
|
|
184
|
+
error?: string;
|
|
185
|
+
variant?: 'default' | 'inline';
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Props para el slot de descripción
|
|
189
|
+
*/
|
|
190
|
+
export interface DescriptionSlotProps extends BaseSlotProps {
|
|
191
|
+
value: string;
|
|
192
|
+
onChange: (value: string) => void;
|
|
193
|
+
placeholder?: string;
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Props para el slot de calendario
|
|
197
|
+
*/
|
|
198
|
+
export interface CalendarSlotProps extends BaseSlotProps {
|
|
199
|
+
value: string;
|
|
200
|
+
onChange: (calendarId: string) => void;
|
|
201
|
+
calendars: Calendar[];
|
|
202
|
+
placeholder?: string;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Props para el slot de fecha/hora (eventos)
|
|
206
|
+
*/
|
|
207
|
+
export interface DateTimeSlotProps extends BaseSlotProps {
|
|
208
|
+
startDate: Moment;
|
|
209
|
+
endDate: Moment;
|
|
210
|
+
onStartDateChange: (date: Moment) => void;
|
|
211
|
+
onEndDateChange: (date: Moment) => void;
|
|
212
|
+
allDay: boolean;
|
|
213
|
+
onAllDayChange: (allDay: boolean) => void;
|
|
214
|
+
error?: boolean;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Props para el slot de fecha/hora (tareas)
|
|
218
|
+
*/
|
|
219
|
+
export interface TaskDateSlotProps extends BaseSlotProps {
|
|
220
|
+
dueDate: Moment;
|
|
221
|
+
onDueDateChange: (date: Moment) => void;
|
|
222
|
+
error?: boolean;
|
|
223
|
+
}
|
|
224
|
+
/**
|
|
225
|
+
* Props para el slot de color
|
|
226
|
+
*/
|
|
227
|
+
export interface ColorSlotProps extends BaseSlotProps {
|
|
228
|
+
value: string;
|
|
229
|
+
onChange: (color: string) => void;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Props para el slot de ubicación
|
|
233
|
+
*/
|
|
234
|
+
export interface LocationSlotProps extends BaseSlotProps {
|
|
235
|
+
value: string;
|
|
236
|
+
onChange: (location: string) => void;
|
|
237
|
+
placeholder?: string;
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* Props para el slot de recurrencia
|
|
241
|
+
*/
|
|
242
|
+
export interface RecurrenceSlotProps extends BaseSlotProps {
|
|
243
|
+
value: string;
|
|
244
|
+
onChange: (recurrence: string) => void;
|
|
245
|
+
}
|
|
246
|
+
/**
|
|
247
|
+
* Props para el slot de notificaciones
|
|
248
|
+
*/
|
|
249
|
+
export interface NotificationsSlotProps extends BaseSlotProps {
|
|
250
|
+
notifications: Notification[];
|
|
251
|
+
onAdd: () => void;
|
|
252
|
+
onRemove: (index: number) => void;
|
|
253
|
+
onChange: (index: number, notification: Notification) => void;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* Props para el slot de contactos vinculados
|
|
257
|
+
*/
|
|
258
|
+
export interface LinkedContactsSlotProps extends BaseSlotProps {
|
|
259
|
+
linkedContacts: Contact[];
|
|
260
|
+
onAdd: (contact: Contact) => void;
|
|
261
|
+
onRemove: (contactId: string) => void;
|
|
262
|
+
searchQuery: string;
|
|
263
|
+
onSearchChange: (query: string) => void;
|
|
264
|
+
searchResults: Contact[];
|
|
265
|
+
isSearching: boolean;
|
|
266
|
+
}
|
|
267
|
+
/**
|
|
268
|
+
* Props para el slot de usuarios compartidos
|
|
269
|
+
*/
|
|
270
|
+
export interface SharedUsersSlotProps extends BaseSlotProps {
|
|
271
|
+
selectedUserIds: string[];
|
|
272
|
+
onChange: (userIds: string[]) => void;
|
|
273
|
+
users: User[];
|
|
274
|
+
}
|
|
275
|
+
/**
|
|
276
|
+
* Props para el slot de botones de acción
|
|
277
|
+
*/
|
|
278
|
+
export interface ActionButtonsSlotProps extends BaseSlotProps {
|
|
279
|
+
onSave: () => void;
|
|
280
|
+
onCancel: () => void;
|
|
281
|
+
onDelete?: () => void;
|
|
282
|
+
onEdit?: () => void;
|
|
283
|
+
onDuplicate?: () => void;
|
|
284
|
+
isSaving: boolean;
|
|
285
|
+
isDeleting: boolean;
|
|
286
|
+
canDelete: boolean;
|
|
287
|
+
labels: {
|
|
288
|
+
save: string;
|
|
289
|
+
cancel: string;
|
|
290
|
+
delete: string;
|
|
291
|
+
edit: string;
|
|
292
|
+
duplicate: string;
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
/**
|
|
296
|
+
* Slots para renderizado personalizado de secciones del modal
|
|
297
|
+
*
|
|
298
|
+
* Cada slot recibe las props necesarias para renderizar esa sección.
|
|
299
|
+
* Si no se proporciona, se usa el renderizado por defecto.
|
|
300
|
+
*
|
|
301
|
+
* @example
|
|
302
|
+
* ```tsx
|
|
303
|
+
* import { TitleTextField } from '@trii/components/EventDialog';
|
|
304
|
+
*
|
|
305
|
+
* <ModalEvents
|
|
306
|
+
* slots={{
|
|
307
|
+
* title: (props) => <TitleTextField titleField={adaptToUseField(props)} disabled={props.disabled} />,
|
|
308
|
+
* location: (props) => <LocationTextField locationField={adaptToUseField(props)} disabled={props.disabled} />,
|
|
309
|
+
* }}
|
|
310
|
+
* />
|
|
311
|
+
* ```
|
|
312
|
+
*/
|
|
313
|
+
export interface ModalSlots {
|
|
314
|
+
/** Renderiza el campo de título */
|
|
315
|
+
title?: (props: TitleSlotProps) => React.ReactNode;
|
|
316
|
+
/** Renderiza el campo de descripción */
|
|
317
|
+
description?: (props: DescriptionSlotProps) => React.ReactNode;
|
|
318
|
+
/** Renderiza el selector de calendario */
|
|
319
|
+
calendar?: (props: CalendarSlotProps) => React.ReactNode;
|
|
320
|
+
/** Renderiza el selector de fecha/hora para eventos */
|
|
321
|
+
dateTime?: (props: DateTimeSlotProps) => React.ReactNode;
|
|
322
|
+
/** Renderiza el selector de fecha/hora para tareas */
|
|
323
|
+
taskDate?: (props: TaskDateSlotProps) => React.ReactNode;
|
|
324
|
+
/** Renderiza el selector de color */
|
|
325
|
+
color?: (props: ColorSlotProps) => React.ReactNode;
|
|
326
|
+
/** Renderiza el campo de ubicación */
|
|
327
|
+
location?: (props: LocationSlotProps) => React.ReactNode;
|
|
328
|
+
/** Renderiza el selector de recurrencia */
|
|
329
|
+
recurrence?: (props: RecurrenceSlotProps) => React.ReactNode;
|
|
330
|
+
/** Renderiza la sección de notificaciones/recordatorios */
|
|
331
|
+
notifications?: (props: NotificationsSlotProps) => React.ReactNode;
|
|
332
|
+
/** Renderiza la sección de contactos vinculados */
|
|
333
|
+
linkedContacts?: (props: LinkedContactsSlotProps) => React.ReactNode;
|
|
334
|
+
/** Renderiza la sección de usuarios compartidos */
|
|
335
|
+
sharedUsers?: (props: SharedUsersSlotProps) => React.ReactNode;
|
|
336
|
+
/** Renderiza los botones de acción (guardar, cancelar, etc.) */
|
|
337
|
+
actionButtons?: (props: ActionButtonsSlotProps) => React.ReactNode;
|
|
338
|
+
/** Renderiza el header del modal */
|
|
339
|
+
header?: (props: BaseSlotProps & {
|
|
340
|
+
title: string;
|
|
341
|
+
onClose: () => void;
|
|
342
|
+
}) => React.ReactNode;
|
|
343
|
+
/** Renderiza los tabs de tipo (evento/tarea) */
|
|
344
|
+
typeTabs?: (props: {
|
|
345
|
+
value: ItemType;
|
|
346
|
+
onChange: (type: ItemType) => void;
|
|
347
|
+
labels: {
|
|
348
|
+
event: string;
|
|
349
|
+
task: string;
|
|
350
|
+
};
|
|
351
|
+
}) => React.ReactNode;
|
|
352
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './TestBox';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { default as TestBox } from './TextBox';
|
|
2
|
+
export { default as ContactInfoPopup } from './ContactInfoPopup';
|
|
3
|
+
export { ModalEvents } from './ModalEvents';
|
|
4
|
+
export type { ModalEventsProps, ModalMode, ItemType, EventData, TaskData, Notification, Calendar, Contact, FieldsConfig, ModalLabels, } from './ModalEvents';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components';
|
package/dist/types/components/EventsDialog/components/IsPrivateCheckbox/IsPrivateCheckbox.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type IsPrivateCheckboxProps = {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
onChange: (checked: boolean) => void;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const IsPrivateCheckbox: ({ checked, onChange, disabled }: IsPrivateCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default IsPrivateCheckbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './IsPrivateCheckbox';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SelectPrimaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/system").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/system").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
|
5
|
+
export declare const SelectSecondaryContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/system").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/system").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme>, {}, {}>;
|
package/dist/types/components/EventsDialog/components/LocationTextField/MapLocationPicker.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface MapLocationPickerProps {
|
|
3
|
+
onLocationSelect: (address: string, lat: number, lng: number) => void;
|
|
4
|
+
initialAddress?: string;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
}
|
|
7
|
+
declare const MapLocationPicker: React.FC<MapLocationPickerProps>;
|
|
8
|
+
export default MapLocationPicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './GoogleMapStandalone';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as GoogleMapStandalone } from './GoogleMap/GoogleMapStandalone';
|
|
@@ -7,6 +7,7 @@ type ReminderItemProps = {
|
|
|
7
7
|
timePeriodHandler: (event: SelectChangeEvent<unknown>, notificationId: string) => void;
|
|
8
8
|
sendToContactHandler: (event: ChangeEvent<HTMLInputElement>, notificationId: string) => void;
|
|
9
9
|
deleteHandler: (notificationId: string) => void;
|
|
10
|
+
disabled?: boolean;
|
|
10
11
|
};
|
|
11
|
-
declare const ReminderItem: ({ data, timeValueHandler, timePeriodHandler, sendToContactHandler, deleteHandler, }: ReminderItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
declare const ReminderItem: ({ data, timeValueHandler, timePeriodHandler, sendToContactHandler, deleteHandler, disabled, }: ReminderItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
export default ReminderItem;
|
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
export declare const StyledReminderItemContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
3
3
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
4
4
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
5
|
+
export declare const StyledReminderItemViewContainer: 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>, {}, {}>;
|
|
5
8
|
export declare const StyledReminderInputsContainer: import("@emotion/styled").StyledComponent<import("@mui/system").BoxOwnProps<import("@mui/material").Theme> & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
6
9
|
ref?: ((instance: HTMLDivElement | null) => void) | import("react").RefObject<HTMLDivElement> | null | undefined;
|
|
7
10
|
}, keyof import("@mui/system").BoxOwnProps<import("@mui/material").Theme>> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseShareWithUsersType } from 'features/Views/CalendarView/hooks/useShareWithUsers';
|
|
2
|
+
type ShareUsersSelectProps = {
|
|
3
|
+
shareWithUsersField: UseShareWithUsersType;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const ShareUsersSelect: ({ shareWithUsersField, disabled, }: ShareUsersSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default ShareUsersSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ShareUsersSelect';
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledChipArray: 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>, {}, {}>;
|
package/dist/types/components/EventsDialog/components/TaskCalendarSelect/TaskCalendarSelect.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ type Props = {
|
|
|
5
5
|
userId?: string;
|
|
6
6
|
value: string;
|
|
7
7
|
onChange: (calendarId: string) => void;
|
|
8
|
+
loading?: boolean;
|
|
8
9
|
};
|
|
9
|
-
declare const TaskCalendarSelect: ({ disabled, calendars, userId, value, onChange }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare const TaskCalendarSelect: ({ disabled, calendars, userId, value, onChange, loading }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
10
11
|
export default TaskCalendarSelect;
|
|
@@ -56,6 +56,7 @@ export type CalendarContextType = {
|
|
|
56
56
|
setUserManuallyChangedColor: ((value: boolean) => void) | Dispatch<SetStateAction<boolean>>;
|
|
57
57
|
myCalendars: ICalendar[];
|
|
58
58
|
otherCalendars: ICalendar[];
|
|
59
|
+
isLoadingCalendars: boolean;
|
|
59
60
|
handleSaveUpdatedTask: () => void;
|
|
60
61
|
handleDeleteTask: () => void;
|
|
61
62
|
handleToggleTaskCompleted: () => void;
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { default as useField, useFieldInitialState, type UseFieldType } from './useField';
|
|
2
|
+
export { default as useSelect, type UseSelect } from './useSelect';
|
|
3
|
+
export { default as useDialog, useDialogInitialState, type UseDialog } from './useDialog';
|
|
4
|
+
export { default as useEvent, useEventInitialState, type UseEvent, type UseDateState, type UseLinkContact, type UseShareWithUsers, } from './useEvent';
|
|
5
|
+
export { type UseNotificationsType } from './useNotifications';
|
|
6
|
+
export { default as useTask, useTaskInitialState, type UseTask } from './useTask';
|
|
7
|
+
export { default as useCalendar, useCalendarInitialState, type UseCalendarType, } from './useCalendar';
|
|
8
|
+
export { default as useCalendarEvents, useCalendarEventsInitialState, type UseCalendarEventsType, type CalendarEvent, } from './useCalendarEvents';
|
|
9
|
+
export { default as useCalendarTasks, useCalendarTasksInitialState, type UseCalendarTasksType, type CalendarTask, } from './useCalendarTasks';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const useAppDispatch: () => import("redux-thunk").ThunkDispatch<{
|
|
2
|
+
Pool: import("../redux/features/poolSlice/types/PoolSliceState").default;
|
|
3
|
+
Session: {
|
|
4
|
+
session: null;
|
|
5
|
+
status: {
|
|
6
|
+
setSession: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
Space: import("../redux/features/spaceSlice/types/SpaceSliceState").SpaceSliceState;
|
|
10
|
+
Spaces: import("../redux/features/spacesSlice/types/SpacesSliceState").SpacesSliceState;
|
|
11
|
+
User: import("../redux/features/userSlice/types/UserSliceState").UserSliceState;
|
|
12
|
+
Theme: import("../redux/features/themeSlice").ThemeState;
|
|
13
|
+
Activities: import("../redux/features/activitiesSlice/types/ActivitiesSlice").ActivitiesSlice;
|
|
14
|
+
ContactInfo: import("../redux/features/contactInfoSlice/types/ContactInfoState").ContactInfoState;
|
|
15
|
+
Calendars: import("../redux/features/calendarsSlice/types/CalendarSlice").CalendarsSlice;
|
|
16
|
+
Tasks: import("../redux/features/tasksSlice/types/TasksSlice").TasksSlice;
|
|
17
|
+
}, undefined, import("redux").UnknownAction> & import("redux").Dispatch<import("redux").UnknownAction>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { SelectChangeEvent } from '@mui/material';
|
|
3
|
+
export interface UseSelect {
|
|
4
|
+
actions: {
|
|
5
|
+
resetValue: () => void;
|
|
6
|
+
changeValue: (newValue: string | number) => void;
|
|
7
|
+
};
|
|
8
|
+
attributes: {
|
|
9
|
+
value: string | number;
|
|
10
|
+
onChange: (event: SelectChangeEvent<string>, child: ReactNode) => void;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
declare const useSelect: (initialValue: string | number) => UseSelect;
|
|
14
|
+
export default useSelect;
|
package/dist/types/components/EventsDialog/redux/features/activitiesSlice/activitiesSlice.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { IEvent } from '@trii/types/dist/Calendar';
|
|
2
|
+
import type { ActivitiesSlice } from './types/ActivitiesSlice';
|
|
3
|
+
import type { AddActivityRequestData } from './types/AddActivityRequestData';
|
|
4
|
+
import type { UpdatedActivityRequestData } from './types/UpdateActivityRequestData';
|
|
5
|
+
export declare const fetchActivities: import("@reduxjs/toolkit").AsyncThunk<IEvent[], void, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
6
|
+
export declare const addActivity: import("@reduxjs/toolkit").AsyncThunk<IEvent, AddActivityRequestData, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
7
|
+
export declare const deleteActivity: import("@reduxjs/toolkit").AsyncThunk<{
|
|
8
|
+
activityId: string;
|
|
9
|
+
originalOccurrenceDate?: string | Date | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
activityId: string;
|
|
12
|
+
originalOccurrenceDate?: string | Date | undefined;
|
|
13
|
+
}, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
14
|
+
export declare const endActivity: import("@reduxjs/toolkit").AsyncThunk<IEvent, string, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
15
|
+
export declare const updateActivity: import("@reduxjs/toolkit").AsyncThunk<IEvent, UpdatedActivityRequestData, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
16
|
+
export declare const fetchActivityById: import("@reduxjs/toolkit").AsyncThunk<IEvent, {
|
|
17
|
+
spaceId: string;
|
|
18
|
+
eventId: string;
|
|
19
|
+
}, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
20
|
+
export declare const updateActivityBySpaceThunk: import("@reduxjs/toolkit").AsyncThunk<IEvent, {
|
|
21
|
+
baseUrl: string;
|
|
22
|
+
spaceId: string;
|
|
23
|
+
eventId: string;
|
|
24
|
+
updatedActivity: object;
|
|
25
|
+
}, import("@reduxjs/toolkit").AsyncThunkConfig>;
|
|
26
|
+
declare const _default: import("redux").Reducer<ActivitiesSlice>;
|
|
27
|
+
export default _default;
|
package/dist/types/components/EventsDialog/redux/features/activitiesSlice/types/ActivitiesSlice.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IEvent } from '@trii/types/dist/Calendar';
|
|
2
|
+
import { RequestStatus } from 'redux/types/RequestStatus';
|
|
3
|
+
export type ActivitiesSlice = {
|
|
4
|
+
activities: IEvent[];
|
|
5
|
+
status: {
|
|
6
|
+
fetch: RequestStatus;
|
|
7
|
+
add: RequestStatus;
|
|
8
|
+
delete: RequestStatus;
|
|
9
|
+
updateEnding: RequestStatus;
|
|
10
|
+
update: RequestStatus;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type ActivitiesTableColumnName = 'title' | 'date' | 'duration' | 'startAt' | 'createdBy' | 'sharedWith';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventNotificationFront } from './EventNotificationFront';
|
|
2
|
+
export type AddActivityRequestData = {
|
|
3
|
+
isPrivate: boolean;
|
|
4
|
+
startAt: Date;
|
|
5
|
+
endAt: Date;
|
|
6
|
+
allDay: boolean;
|
|
7
|
+
notifications: EventNotificationFront[];
|
|
8
|
+
contactId: string;
|
|
9
|
+
title: string;
|
|
10
|
+
details: string;
|
|
11
|
+
location: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
eventTypeId: string;
|
|
14
|
+
calendarId: string;
|
|
15
|
+
repeatId: string;
|
|
16
|
+
sharedWith: string[];
|
|
17
|
+
rule?: string;
|
|
18
|
+
originalOccurrenceDate?: Date | string;
|
|
19
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IEvent } from '@trii/types/dist/Calendar';
|
|
2
|
+
import { AddActivityRequestData } from '../types/AddActivityRequestData';
|
|
3
|
+
declare const updateActivityBySpace: (baseUrl: string, spaceId: string, eventId: string, updateActivityRequestData: object) => Promise<IEvent>;
|
|
4
|
+
declare const getActivityById: (spaceId: string, eventId: string) => Promise<IEvent>;
|
|
5
|
+
declare const _default: {
|
|
6
|
+
fetchActivities: (URL: string) => Promise<IEvent[]>;
|
|
7
|
+
addActivity: (URL: string, addActivityRequestData: AddActivityRequestData) => Promise<IEvent>;
|
|
8
|
+
deleteActivity: (baseURL: string, eventId: string, originalOccurrenceDate?: string | Date | undefined) => Promise<void>;
|
|
9
|
+
updateActivity: (baseURL: string, eventId: string, updateActivityRequestData: any, originalOccurrenceDate?: string | Date | undefined) => Promise<IEvent>;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
12
|
+
export { updateActivityBySpace, getActivityById };
|