@trii/components 2.0.66 → 2.0.69
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 +15 -10464
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/index.js +15 -10442
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +92 -340
- package/dist/types/components/ContactInfoPopup/ContactInfoPopup.d.ts +14 -0
- package/dist/types/components/ContactInfoPopup/ContactInfoPopup.stories.d.ts +9 -0
- package/dist/types/components/ContactInfoPopup/components/BusinessSection/BusinessSection.d.ts +7 -0
- package/dist/types/components/ContactInfoPopup/components/BusinessSection/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/ContactMethod/ContactMethod.d.ts +10 -0
- package/dist/types/components/ContactInfoPopup/components/ContactMethod/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/Header/Header.d.ts +12 -0
- package/dist/types/components/ContactInfoPopup/components/Header/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/LabelsSection/LabelsSection.d.ts +7 -0
- package/dist/types/components/ContactInfoPopup/components/LabelsSection/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/MembersSection/MembersSection.d.ts +8 -0
- package/dist/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/MemberItem.d.ts +7 -0
- package/dist/types/components/ContactInfoPopup/components/MembersSection/components/MemberItem/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/MembersSection/components/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/MembersSection/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/Properties/Properties.d.ts +7 -0
- package/dist/types/components/ContactInfoPopup/components/Properties/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/components/index.d.ts +6 -0
- package/dist/types/components/ContactInfoPopup/index.d.ts +1 -0
- package/dist/types/components/ContactInfoPopup/types/is-business.typeguard.d.ts +7 -0
- package/dist/types/components/ContactInfoPopup/types/is-contact.typeguard.d.ts +7 -0
- package/dist/types/components/EditContactModal/EditContactModal.d.ts +16 -0
- package/dist/types/components/EditContactModal/EditContactModal.stories.d.ts +9 -0
- package/dist/types/components/EditContactModal/components/BusinessSelect/BusinessSelectEditor.d.ts +16 -0
- package/dist/types/components/EditContactModal/components/Header/Header.d.ts +23 -0
- package/dist/types/components/EditContactModal/components/Header/components/AvatarWithActions/AvatarWithActions.d.ts +11 -0
- package/dist/types/components/EditContactModal/components/Header/components/ContactName/ContactName.d.ts +12 -0
- package/dist/types/components/EditContactModal/components/Header/components/Tags/Tags.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Header/components/Tags/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Header/components/index.d.ts +2 -0
- package/dist/types/components/EditContactModal/components/SearchLocation/SearchLocationEditor.d.ts +10 -0
- package/dist/types/components/EditContactModal/components/SearchLocation/SearchLocationInput.d.ts +22 -0
- package/dist/types/components/EditContactModal/components/SearchLocation/googleMapsUtils.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/AddressInformation/AddressInformation.d.ts +11 -0
- package/dist/types/components/EditContactModal/components/Section/AddressInformation/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/ContactInformation.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/ContactMethod.d.ts +11 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/ContactMethodItem.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodItem/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/ContactMethodPhoneItem.d.ts +6 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/ContactMethodPhoneItem/utils/phone.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/components/index.d.ts +2 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/ContactMethod/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/EditModal.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/Mails.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/Body.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/Mail.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/Mail/style.d.ts +19 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/Body/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Mails/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/Phones.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/Body.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/Phone.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/CountrySelect.d.ts +2 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/style.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/CountrySelect/utils/countryList.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/OptionsMenu.d.ts +17 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/OptionsMenu/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/WhatsAppToggle.d.ts +2 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/WhatsAppToggle/style.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/components/index.d.ts +3 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/Phone/style.d.ts +15 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/Body/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Phones/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/RCSs.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/Body.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/RCS.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/RCS/style.d.ts +19 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/Body/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/RCSs/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/Whatsapps.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/Body.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/Whatsapp.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/Whatsapp/style.d.ts +19 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/Body/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/Whatsapps/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/components/index.d.ts +4 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/AddressInput.d.ts +13 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/AddressInput/style.d.ts +3 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/InformationSocialNetworkItem.d.ts +11 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/Body.d.ts +10 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/Ims.d.ts +10 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/Ims/style.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/Body/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/InformationSocialNetworkItem/types/IMS.d.ts +2 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/PhoneInput.d.ts +13 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/PhoneInput/style.d.ts +3 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/SubsectionHeader.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeader/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/SubsectionHeaderWithButton.d.ts +6 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/SubsectionHeaderWithButton/style.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/WarningsDisplay.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/Warning.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/Warning/style.d.ts +15 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/WarningsDisplay/style.d.ts +6 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/layout/index.d.ts +10 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/InformationItemContainer.d.ts +6 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemContainer/style.d.ts +12 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/InformationItemInputsContainer.d.ts +6 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/InformationItemInputsContainer/style.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/NoteDeleteButton.d.ts +18 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/NoteDeleteButton/style.d.ts +13 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/StatusAdornment.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/Adornment.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/Adornment/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/StatusAdornment/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/SubsectionBodyContainer.d.ts +7 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/SubsectionBodyContainer/style.d.ts +14 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/shared/index.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/CheckContactAddressData.d.ts +5 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/EditModal/types/ContactAddress.d.ts +2 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/components/index.d.ts +2 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/hooks/useEditModal.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/ContactInformation/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/General/General.d.ts +14 -0
- package/dist/types/components/EditContactModal/components/Section/General/components/BusinessGeneral.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/General/components/ContactGeneral.d.ts +8 -0
- package/dist/types/components/EditContactModal/components/Section/General/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/components/Section/index.d.ts +3 -0
- package/dist/types/components/EditContactModal/components/Section/utils/resolveUserLabel.d.ts +6 -0
- package/dist/types/components/EditContactModal/components/TagsEditor/TagsEditor.d.ts +14 -0
- package/dist/types/components/EditContactModal/context/EditContactApiContext.d.ts +201 -0
- package/dist/types/components/EditContactModal/context/EditContactViewContext.d.ts +8 -0
- package/dist/types/components/EditContactModal/context/EditEntityContext.d.ts +34 -0
- package/dist/types/components/EditContactModal/context/NavigateContext.d.ts +9 -0
- package/dist/types/components/EditContactModal/context/TranslationContext.d.ts +9 -0
- package/dist/types/components/EditContactModal/hooks/useEditBusiness/types/UseEditBusiness.d.ts +55 -0
- package/dist/types/components/EditContactModal/hooks/useEditBusiness/useEditBusiness.d.ts +10 -0
- package/dist/types/components/EditContactModal/hooks/useEditContact/types/UseEditContact.d.ts +60 -0
- package/dist/types/components/EditContactModal/hooks/useEditContact/useEditContact.d.ts +10 -0
- package/dist/types/components/EditContactModal/hooks/useEditContactMethods.d.ts +52 -0
- package/dist/types/components/EditContactModal/hooks/useEditContactModalController.d.ts +44 -0
- package/dist/types/components/EditContactModal/hooks/useEntityUpdateSync.d.ts +8 -0
- package/dist/types/components/EditContactModal/hooks/useField.d.ts +18 -0
- package/dist/types/components/EditContactModal/hooks/useImage.d.ts +27 -0
- package/dist/types/components/EditContactModal/hooks/useModalCloseHandler.d.ts +6 -0
- package/dist/types/components/EditContactModal/hooks/useMultipleSelect.d.ts +20 -0
- package/dist/types/components/EditContactModal/hooks/useSelect.d.ts +13 -0
- package/dist/types/components/EditContactModal/hooks/useTagsEditorController.d.ts +26 -0
- package/dist/types/components/EditContactModal/hooks/utils/editContactHelper.d.ts +6 -0
- package/dist/types/components/EditContactModal/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/layout/Section.d.ts +9 -0
- package/dist/types/components/EditContactModal/layout/SectionContent.d.ts +7 -0
- package/dist/types/components/EditContactModal/layout/index.d.ts +2 -0
- package/dist/types/components/EditContactModal/services/api.d.ts +196 -0
- package/dist/types/components/EditContactModal/services/http.d.ts +23 -0
- package/dist/types/components/EditContactModal/services/urls.d.ts +6 -0
- package/dist/types/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts +16 -0
- package/dist/types/components/EditContactModal/shared/BusinessInfoLabel/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/ContactInfoLabel/ContactInfoLabel.d.ts +29 -0
- package/dist/types/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/DateSelect.d.ts +8 -0
- package/dist/types/components/EditContactModal/shared/ContactInfoLabel/components/DateSelect/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/ContactInfoLabel/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/ContactInfoLabel/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/EntityCustomFieldLabel.d.ts +18 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/CustomPropertyDatePicker.d.ts +8 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDatePicker/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/CustomPropertyDateRangePicker.d.ts +9 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyDateRangePicker/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/CustomPropertyInput.d.ts +6 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyInput/types/CustomPropertyInputProps.d.ts +6 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/CustomPropertyOptionsSelect.d.ts +7 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyOptionSelect/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/CustomPropertyTimePicker.d.ts +8 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimePicker/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/CustomPropertyTimeRangePicker.d.ts +9 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/CustomPropertyTimeRangePicker/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts +6 -0
- package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityInfoLabel/EntityInfoLabel.d.ts +40 -0
- package/dist/types/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/SelectBusinessLabel.d.ts +7 -0
- package/dist/types/components/EditContactModal/shared/EntityInfoLabel/components/SelectBusinessLabel/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityInfoLabel/components/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/EntityInfoLabel/index.d.ts +1 -0
- package/dist/types/components/EditContactModal/shared/index.d.ts +3 -0
- package/dist/types/components/EditContactModal/types/is-business.typeguard.d.ts +7 -0
- package/dist/types/components/EditContactModal/types/is-contact.typeguard.d.ts +7 -0
- package/dist/types/components/EditContactModal/utils/contactHelper.d.ts +13 -0
- package/dist/types/components/EventsDialog/EventDialog.d.ts +3 -0
- package/dist/types/components/EventsDialog/EventsDialog.d.ts +56 -0
- package/dist/types/components/EventsDialog/components/ActionButtons/ActionButtons.d.ts +5 -0
- package/dist/types/components/EventsDialog/components/ActionButtons/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/AllDayCheckbox/AllDayCheckbox.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/AllDayCheckbox/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ColorPicker/ColorPicker.d.ts +8 -0
- package/dist/types/components/EventsDialog/components/ColorPicker/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts +10 -0
- package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/CreateTypeTabs/CreateTypeTabs.d.ts +11 -0
- package/dist/types/components/EventsDialog/components/CreateTypeTabs/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/DatePicker/DatePicker.d.ts +13 -0
- package/dist/types/components/EventsDialog/components/DatePicker/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/DatePicker/styles.d.ts +10 -0
- package/dist/types/components/EventsDialog/components/DeleteRecurringEventDialog/DeleteRecurringEventDialog.d.ts +9 -0
- package/dist/types/components/EventsDialog/components/DeleteRecurringEventDialog/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/DescriptionTextField/DescriptionTextField.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/DescriptionTextField/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/EditRecurringEventDialog/EditRecurringEventDialog.d.ts +9 -0
- package/dist/types/components/EventsDialog/components/EditRecurringEventDialog/index.d.ts +1 -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/LinkContactsSelect.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/components/ContactSearchBar/ContactSearchBar.d.ts +6 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/components/ContactSearchBar/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/components/ContactSearchResults/ContactsSearchResults.d.ts +11 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/components/ContactSearchResults/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/components/index.d.ts +2 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/hooks/useLinkContactsSearch.d.ts +17 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/LinkContactsSelect/styles.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/LocationTextField.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/MapLocationPicker.d.ts +8 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/LocationSelectorModal.d.ts +8 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/GoogleMapStandalone.d.ts +9 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/SendLocation/components/GoogleMap/components/LocationSearch/locationSearch.d.ts +6 -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/LocationTextField/SendLocation/types.d.ts +15 -0
- package/dist/types/components/EventsDialog/components/LocationTextField/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/RecurrenceSelect/RecurrenceSelect.d.ts +8 -0
- package/dist/types/components/EventsDialog/components/RecurrenceSelect/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/ReminderNotifications.d.ts +7 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/ReminderItem.d.ts +12 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/style.d.ts +17 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/ReminderItem/utils/selectOptions.d.ts +5 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/components/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/ReminderNotifications/styles.d.ts +7 -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 +9 -0
- package/dist/types/components/EventsDialog/components/TaskCalendarSelect/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/TaskDatePicker/TaskDatePicker.d.ts +10 -0
- package/dist/types/components/EventsDialog/components/TaskDatePicker/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/TitleTextField/TitleTextField.d.ts +8 -0
- package/dist/types/components/EventsDialog/components/TitleTextField/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/components/index.d.ts +16 -0
- package/dist/types/components/EventsDialog/context/CalendarContext.d.ts +85 -0
- package/dist/types/components/EventsDialog/context/CalendarContextProvider.d.ts +20 -0
- package/dist/types/components/EventsDialog/context/EventsDialogApiContext.d.ts +9 -0
- package/dist/types/components/EventsDialog/context/TranslationContext.d.ts +9 -0
- package/dist/types/components/EventsDialog/context/types/CalendarContextType.d.ts +0 -0
- package/dist/types/components/EventsDialog/context/types/CalendarDialogMode.d.ts +1 -0
- package/dist/types/components/EventsDialog/context/types/CalendarDialogState.d.ts +6 -0
- package/dist/types/components/EventsDialog/context/types/DialogType.d.ts +1 -0
- package/dist/types/components/EventsDialog/context/types/Mode.d.ts +1 -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/useCalendar.d.ts +21 -0
- package/dist/types/components/EventsDialog/hooks/useCalendarEvents.d.ts +36 -0
- package/dist/types/components/EventsDialog/hooks/useCalendarTasks.d.ts +25 -0
- package/dist/types/components/EventsDialog/hooks/useDialog.d.ts +8 -0
- package/dist/types/components/EventsDialog/hooks/useEvent.d.ts +71 -0
- package/dist/types/components/EventsDialog/hooks/useField.d.ts +19 -0
- package/dist/types/components/EventsDialog/hooks/useNotifications.d.ts +27 -0
- package/dist/types/components/EventsDialog/hooks/useSelect.d.ts +14 -0
- package/dist/types/components/EventsDialog/hooks/useTask.d.ts +19 -0
- package/dist/types/components/EventsDialog/index.d.ts +41 -0
- package/dist/types/components/EventsDialog/layout/BasicInputContainer/BasicInputContainer.d.ts +7 -0
- package/dist/types/components/EventsDialog/layout/BasicInputContainer/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/layout/BasicInputContainer/styles.d.ts +7 -0
- package/dist/types/components/EventsDialog/layout/InputContainer/InputContainer.d.ts +7 -0
- package/dist/types/components/EventsDialog/layout/InputContainer/index.d.ts +1 -0
- package/dist/types/components/EventsDialog/layout/index.d.ts +2 -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/services/api.d.ts +196 -0
- package/dist/types/components/EventsDialog/services/calendarApi.d.ts +22 -0
- package/dist/types/components/EventsDialog/services/http.d.ts +23 -0
- package/dist/types/components/EventsDialog/services/urls.d.ts +7 -0
- package/dist/types/components/EventsDialog/types.d.ts +129 -0
- package/dist/types/components/EventsDialog/utils/eventIdUtils.d.ts +38 -0
- package/dist/types/components/EventsDialog/utils/eventValidation.d.ts +37 -0
- package/dist/types/components/EventsDialog/utils/googleMapsLoader.d.ts +51 -0
- package/dist/types/components/EventsDialog/utils/googleMapsUtils.d.ts +5 -0
- package/dist/types/components/EventsDialog/utils/isNumber.d.ts +1 -0
- package/dist/types/components/EventsDialog/utils/keyboardNavigation.d.ts +24 -0
- package/dist/types/components/EventsDialog/utils/roundTime.d.ts +10 -0
- package/dist/types/components/index.d.ts +5 -0
- package/dist/types/i18n/config.d.ts +2 -0
- package/dist/types/i18n/index.d.ts +2 -0
- package/dist/types/index.d.ts +2 -0
- package/package.json +34 -10
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
2
|
+
export declare class ApiError extends Error {
|
|
3
|
+
status: number;
|
|
4
|
+
body: unknown;
|
|
5
|
+
constructor(message: string, status: number, body: unknown);
|
|
6
|
+
}
|
|
7
|
+
type RequestJsonArgs = {
|
|
8
|
+
url: string;
|
|
9
|
+
method?: HttpMethod;
|
|
10
|
+
headers?: HeadersInit;
|
|
11
|
+
body?: unknown;
|
|
12
|
+
signal?: AbortSignal;
|
|
13
|
+
};
|
|
14
|
+
export declare function requestJson<T>({ url, method, headers, body, signal, }: RequestJsonArgs): Promise<T>;
|
|
15
|
+
type RequestFormDataArgs = {
|
|
16
|
+
url: string;
|
|
17
|
+
method?: HttpMethod;
|
|
18
|
+
headers?: HeadersInit;
|
|
19
|
+
formData: FormData;
|
|
20
|
+
signal?: AbortSignal;
|
|
21
|
+
};
|
|
22
|
+
export declare function requestFormData<T>({ url, method, headers, formData, signal, }: RequestFormDataArgs): Promise<T>;
|
|
23
|
+
export {};
|
package/dist/types/components/EditContactModal/shared/BusinessInfoLabel/BusinessInfoLabel.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { UserInfo } from '@trii/types/dist/Users';
|
|
2
|
+
type Props = {
|
|
3
|
+
title: string;
|
|
4
|
+
value?: string | Date;
|
|
5
|
+
isNotEditable?: boolean;
|
|
6
|
+
inputType?: 'text' | 'select' | 'selectMembers';
|
|
7
|
+
options?: UserInfo[];
|
|
8
|
+
displayValue?: string;
|
|
9
|
+
constructUpdateObject?: (value: string | Date) => object;
|
|
10
|
+
baseUrl?: string;
|
|
11
|
+
spaceId?: string;
|
|
12
|
+
businessId?: string;
|
|
13
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
14
|
+
};
|
|
15
|
+
declare const BusinessInfoLabel: ({ title, value, isNotEditable, inputType, options, displayValue, constructUpdateObject, baseUrl, spaceId, businessId, onEntityUpdated, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export default BusinessInfoLabel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './BusinessInfoLabel';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { UserInfo } from '@trii/types/dist/Users';
|
|
2
|
+
import type { IList } from '@trii/types/dist/Contacts';
|
|
3
|
+
import type UseEditContact from '../../hooks/useEditContact/types/UseEditContact';
|
|
4
|
+
type BaseProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
value?: string | Date;
|
|
7
|
+
isNotEditable?: boolean;
|
|
8
|
+
options?: UserInfo[] | IList[];
|
|
9
|
+
displayValue?: string;
|
|
10
|
+
constructUpdateObject?: (value: string | Date | null) => object;
|
|
11
|
+
businessId?: string;
|
|
12
|
+
baseUrl?: string;
|
|
13
|
+
spaceId?: string;
|
|
14
|
+
contactId?: string;
|
|
15
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
16
|
+
};
|
|
17
|
+
type BirthdayProps = BaseProps & {
|
|
18
|
+
inputType: 'birthday';
|
|
19
|
+
contact: UseEditContact;
|
|
20
|
+
dateFormat: string;
|
|
21
|
+
};
|
|
22
|
+
type NonBirthdayProps = BaseProps & {
|
|
23
|
+
inputType?: 'text' | 'select' | 'selectBusiness';
|
|
24
|
+
contact?: UseEditContact;
|
|
25
|
+
dateFormat?: string;
|
|
26
|
+
};
|
|
27
|
+
type Props = BirthdayProps | NonBirthdayProps;
|
|
28
|
+
declare const ContactInfoLabel: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export default ContactInfoLabel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
interface DateSelectProps {
|
|
3
|
+
birthDate: Dayjs | null;
|
|
4
|
+
setBirthDate: (date: Dayjs | null) => void;
|
|
5
|
+
dateFormat: string;
|
|
6
|
+
}
|
|
7
|
+
declare const DateSelect: ({ birthDate, setBirthDate, dateFormat }: DateSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default DateSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DateSelect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as DateSelect } from './DateSelect';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ContactInfoLabel';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { IContactField } from '@trii/types/dist/Contacts/contacts';
|
|
2
|
+
import { Property } from '@trii/types/dist/Contacts';
|
|
3
|
+
import type { UserTrii } from '@trii/types/dist/Users';
|
|
4
|
+
import type UseEditContact from '../../hooks/useEditContact/types/UseEditContact';
|
|
5
|
+
import type UseEditBusiness from '../../hooks/useEditBusiness/types/UseEditBusiness';
|
|
6
|
+
type Props = {
|
|
7
|
+
property: Property;
|
|
8
|
+
entity: UseEditContact | UseEditBusiness;
|
|
9
|
+
entityType: 'contact' | 'business';
|
|
10
|
+
entityId: string;
|
|
11
|
+
customContactFields: IContactField[];
|
|
12
|
+
userTrii?: UserTrii | null;
|
|
13
|
+
baseUrl?: string;
|
|
14
|
+
spaceId?: string;
|
|
15
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
16
|
+
};
|
|
17
|
+
declare const EntityCustomFieldLabel: ({ property, entity, entityType, entityId, customContactFields, userTrii, baseUrl, spaceId, onEntityUpdated, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default EntityCustomFieldLabel;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
type Props = {
|
|
3
|
+
value: Dayjs | null;
|
|
4
|
+
handleChange: (value: Dayjs | null) => void;
|
|
5
|
+
dateFormat: string;
|
|
6
|
+
};
|
|
7
|
+
declare const CustomPropertyDatePicker: ({ value, handleChange, dateFormat }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CustomPropertyDatePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomPropertyDatePicker';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
import { DateRange } from '@mui/x-date-pickers-pro';
|
|
3
|
+
type Props = {
|
|
4
|
+
value: DateRange<Dayjs> | null;
|
|
5
|
+
handleChange: (newValue: DateRange<Dayjs>) => void;
|
|
6
|
+
userDateFormat?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const CustomPropertyDateRangePicker: ({ value, handleChange, userDateFormat }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default CustomPropertyDateRangePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomPropertyDateRangePicker';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { Property } from '@trii/types/dist/Contacts';
|
|
2
|
+
type CustomPropertyInputProps = Property & {
|
|
3
|
+
onChange: (name: string, value: any) => void;
|
|
4
|
+
};
|
|
5
|
+
declare const CustomPropertyInput: ({ nameKey, value, onChange, type, }: CustomPropertyInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export default CustomPropertyInput;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomPropertyInput';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
value: string;
|
|
3
|
+
handleChange: (value: string) => void;
|
|
4
|
+
options: string[];
|
|
5
|
+
};
|
|
6
|
+
declare const CustomPropertyOptionsSelect: ({ handleChange, value, options }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CustomPropertyOptionsSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomPropertyOptionsSelect';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
type Props = {
|
|
3
|
+
value: Dayjs | null;
|
|
4
|
+
handleChange: (value: Dayjs | null) => void;
|
|
5
|
+
userTimeFormat?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const CustomPropertyTimePicker: ({ value, handleChange, userTimeFormat }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default CustomPropertyTimePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomPropertyTimePicker';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DateRange } from '@mui/x-date-pickers-pro';
|
|
2
|
+
import { Dayjs } from 'dayjs';
|
|
3
|
+
type Props = {
|
|
4
|
+
value: DateRange<Dayjs> | null;
|
|
5
|
+
handleChange: (newValue: DateRange<Dayjs>) => void;
|
|
6
|
+
userTimeFormat?: string;
|
|
7
|
+
};
|
|
8
|
+
declare const CustomPropertyTimeRangePicker: ({ value, handleChange, userTimeFormat }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default CustomPropertyTimeRangePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CustomPropertyTimeRangePicker';
|
package/dist/types/components/EditContactModal/shared/EntityCustomFieldLabel/components/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { default as CustomPropertyInput } from './CustomPropertyInput';
|
|
2
|
+
export { default as CustomPropertyDatePicker } from './CustomPropertyDatePicker';
|
|
3
|
+
export { default as CustomPropertyOptionSelect } from './CustomPropertyOptionSelect';
|
|
4
|
+
export { default as CustomPropertyTimePicker } from './CustomPropertyTimePicker';
|
|
5
|
+
export { default as CustomPropertyTimeRangePicker } from './CustomPropertyTimeRangePicker';
|
|
6
|
+
export { default as CustomPropertyDateRangePicker } from './CustomPropertyDateRangePicker';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './EntityCustomFieldLabel';
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { UserInfo } from '@trii/types/dist/Users';
|
|
2
|
+
import type { IList } from '@trii/types/dist/Contacts';
|
|
3
|
+
import type UseEditContact from '../../hooks/useEditContact/types/UseEditContact';
|
|
4
|
+
type SharedProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
value?: string | Date;
|
|
7
|
+
isNotEditable?: boolean;
|
|
8
|
+
displayValue?: string;
|
|
9
|
+
baseUrl?: string;
|
|
10
|
+
spaceId?: string;
|
|
11
|
+
minWidth?: string | number;
|
|
12
|
+
onEntityUpdated?: (entity: unknown) => void;
|
|
13
|
+
};
|
|
14
|
+
type ContactBaseProps = SharedProps & {
|
|
15
|
+
entityType: 'contact';
|
|
16
|
+
entityId?: string;
|
|
17
|
+
options?: Array<UserInfo | IList>;
|
|
18
|
+
constructUpdateObject?: (value: string | Date | null) => object;
|
|
19
|
+
businessId?: string;
|
|
20
|
+
};
|
|
21
|
+
type ContactBirthdayProps = ContactBaseProps & {
|
|
22
|
+
inputType: 'birthday';
|
|
23
|
+
contact: UseEditContact;
|
|
24
|
+
dateFormat: string;
|
|
25
|
+
};
|
|
26
|
+
type ContactNonBirthdayProps = ContactBaseProps & {
|
|
27
|
+
inputType?: 'text' | 'select' | 'selectBusiness';
|
|
28
|
+
contact?: UseEditContact;
|
|
29
|
+
dateFormat?: string;
|
|
30
|
+
};
|
|
31
|
+
type BusinessProps = SharedProps & {
|
|
32
|
+
entityType: 'business';
|
|
33
|
+
entityId?: string;
|
|
34
|
+
inputType?: 'text' | 'select' | 'selectMembers';
|
|
35
|
+
options?: UserInfo[];
|
|
36
|
+
constructUpdateObject?: (value: string | Date) => object;
|
|
37
|
+
};
|
|
38
|
+
type Props = ContactBirthdayProps | ContactNonBirthdayProps | BusinessProps;
|
|
39
|
+
declare const EntityInfoLabel: (props: Props) => import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export default EntityInfoLabel;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './SelectBusinessLabel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SelectBusinessLabel } from './SelectBusinessLabel';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './EntityInfoLabel';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IBusiness } from '@trii/types/dist/Contacts/contacts';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard to check if an object is an IBusiness
|
|
4
|
+
* @param obj The object to check
|
|
5
|
+
* @returns True if the object is an IBusiness
|
|
6
|
+
*/
|
|
7
|
+
export declare function isBusiness(obj: any): obj is IBusiness;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IContact } from '@trii/types/dist/Contacts/contacts';
|
|
2
|
+
/**
|
|
3
|
+
* Type guard to check if an object is an IContact
|
|
4
|
+
* @param obj The object to check
|
|
5
|
+
* @returns True if the object is an IContact
|
|
6
|
+
*/
|
|
7
|
+
export declare function isContact(obj: any): obj is IContact;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ChannelType } from '@trii/types/dist/Common/Channels';
|
|
2
|
+
export interface NewAddress {
|
|
3
|
+
id: string;
|
|
4
|
+
address: string;
|
|
5
|
+
note: string;
|
|
6
|
+
channelType: ChannelType.PHONE | ChannelType.EMAIL | ChannelType.WHATSAPP | ChannelType.INSTAGRAM | ChannelType.RCS;
|
|
7
|
+
isSaved: boolean;
|
|
8
|
+
}
|
|
9
|
+
declare function createNewAddress(channelType: ChannelType.PHONE | ChannelType.EMAIL | ChannelType.WHATSAPP | ChannelType.RCS): NewAddress;
|
|
10
|
+
declare const _default: {
|
|
11
|
+
createNewAddress: typeof createNewAddress;
|
|
12
|
+
};
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Mode } from './context/types/Mode';
|
|
3
|
+
import { DialogType } from './context/types/DialogType';
|
|
4
|
+
import { SxProps, Theme } from '@mui/material';
|
|
5
|
+
/**
|
|
6
|
+
* Props para el componente EventsDialog
|
|
7
|
+
* Solo requiere las propiedades esenciales; el resto se maneja internamente mediante APIs
|
|
8
|
+
*/
|
|
9
|
+
export interface EventsDialogProps {
|
|
10
|
+
/** Estado de apertura del modal */
|
|
11
|
+
open: boolean;
|
|
12
|
+
/** Callback al cerrar el modal */
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
/** URL base de la API */
|
|
15
|
+
baseUrl: string;
|
|
16
|
+
/** ID del espacio */
|
|
17
|
+
spaceId: string;
|
|
18
|
+
/** Idioma de la interfaz */
|
|
19
|
+
language?: 'en' | 'es';
|
|
20
|
+
/** Modo del diálogo: 'create' | 'edit' | 'view' */
|
|
21
|
+
mode?: Mode;
|
|
22
|
+
/** Tipo de diálogo: 'event' | 'task' */
|
|
23
|
+
type?: DialogType;
|
|
24
|
+
/** ID del calendario seleccionado para eventos (usado en modo view/edit) */
|
|
25
|
+
eventCalendarId?: string;
|
|
26
|
+
/** ID del calendario seleccionado para tareas (usado en modo view/edit) */
|
|
27
|
+
taskCalendarId?: string;
|
|
28
|
+
/** Evento seleccionado para modo edit/view */
|
|
29
|
+
selectedEvent?: any;
|
|
30
|
+
/** Tarea seleccionada para modo edit/view */
|
|
31
|
+
selectedTask?: any;
|
|
32
|
+
/** Estilos personalizados */
|
|
33
|
+
sx?: SxProps<Theme>;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* EventsDialog - Componente para gestión de eventos y tareas
|
|
37
|
+
*
|
|
38
|
+
* Este componente maneja internamente toda la lógica de CRUD de eventos y tareas
|
|
39
|
+
* mediante las APIs. Solo requiere las props esenciales: baseUrl, spaceId, open, onClose.
|
|
40
|
+
* Los calendarios, eventos y tareas se cargan automáticamente desde las APIs.
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* ```tsx
|
|
44
|
+
* <EventsDialog
|
|
45
|
+
* open={isOpen}
|
|
46
|
+
* onClose={handleClose}
|
|
47
|
+
* baseUrl="https://api.trii.app/api/v1"
|
|
48
|
+
* spaceId={spaceId}
|
|
49
|
+
* language="es"
|
|
50
|
+
* mode="create"
|
|
51
|
+
* type="event"
|
|
52
|
+
* />
|
|
53
|
+
* ```
|
|
54
|
+
*/
|
|
55
|
+
declare const EventsDialog: React.FC<EventsDialogProps>;
|
|
56
|
+
export default EventsDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ActionButtons';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
type AllDayCheckboxProps = {
|
|
2
|
+
checked: boolean;
|
|
3
|
+
onChange: (checked: boolean) => void;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const AllDayCheckbox: ({ checked, onChange, disabled }: AllDayCheckboxProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default AllDayCheckbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './AllDayCheckbox';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UseFieldType } from '../../hooks/useField';
|
|
2
|
+
type ColorPickerProps = {
|
|
3
|
+
colorField: UseFieldType;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
onColorChange?: (color: string) => void;
|
|
6
|
+
};
|
|
7
|
+
declare const ColorPicker: ({ colorField, disabled, onColorChange }: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default ColorPicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ColorPicker';
|
package/dist/types/components/EventsDialog/components/ConfirmDeleteDialog/ConfirmDeleteDialog.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ConfirmDeleteDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onConfirm: () => void;
|
|
6
|
+
itemTitle?: string;
|
|
7
|
+
itemType: 'event' | 'task';
|
|
8
|
+
}
|
|
9
|
+
declare const ConfirmDeleteDialog: React.FC<ConfirmDeleteDialogProps>;
|
|
10
|
+
export default ConfirmDeleteDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ConfirmDeleteDialog';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DialogType } from '../../context/types/DialogType';
|
|
2
|
+
declare const CreateTypeTabs: ({ value, onChange, labels, }: {
|
|
3
|
+
value: DialogType;
|
|
4
|
+
onChange: (v: DialogType) => void;
|
|
5
|
+
labels: {
|
|
6
|
+
event: string;
|
|
7
|
+
task: string;
|
|
8
|
+
};
|
|
9
|
+
disabledTask?: boolean;
|
|
10
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default CreateTypeTabs;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './CreateTypeTabs';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
type DatePickerProps = {
|
|
3
|
+
selectedStartDate: Dayjs;
|
|
4
|
+
selectedEndDate: Dayjs;
|
|
5
|
+
handleSelectStart: (date: Dayjs) => void;
|
|
6
|
+
handleSelectEnd: (date: Dayjs) => void;
|
|
7
|
+
isError: boolean;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
hideLabel?: boolean;
|
|
10
|
+
allDay?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const DatePicker: ({ selectedStartDate, selectedEndDate, handleSelectStart, handleSelectEnd, isError, disabled, hideLabel, allDay, }: DatePickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default DatePicker;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DatePicker';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const StyledDatePickerContainer: 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 StyledPickersContainer: 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>, {}, {}>;
|
|
8
|
+
export declare const StyledPickersDivider: import("@emotion/styled").StyledComponent<import("@mui/material").TypographyOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
9
|
+
ref?: ((instance: HTMLSpanElement | null) => void) | import("react").RefObject<HTMLSpanElement> | null | undefined;
|
|
10
|
+
}, "p" | "style" | "className" | "color" | "children" | "border" | "borderTop" | "borderRight" | "borderBottom" | "borderLeft" | "borderColor" | "borderRadius" | "display" | "displayPrint" | "overflow" | "textOverflow" | "visibility" | "whiteSpace" | "flexBasis" | "flexDirection" | "flexWrap" | "justifyContent" | "alignItems" | "alignContent" | "order" | "flex" | "flexGrow" | "flexShrink" | "alignSelf" | "justifyItems" | "justifySelf" | "gap" | "columnGap" | "rowGap" | "gridColumn" | "gridRow" | "gridAutoFlow" | "gridAutoColumns" | "gridAutoRows" | "gridTemplateColumns" | "gridTemplateRows" | "gridTemplateAreas" | "gridArea" | "bgcolor" | "zIndex" | "position" | "top" | "right" | "bottom" | "left" | "boxShadow" | "width" | "maxWidth" | "minWidth" | "height" | "maxHeight" | "minHeight" | "boxSizing" | "m" | "mt" | "mr" | "mb" | "ml" | "mx" | "my" | "pt" | "pr" | "pb" | "pl" | "px" | "py" | "margin" | "marginTop" | "marginRight" | "marginBottom" | "marginLeft" | "marginX" | "marginY" | "marginInline" | "marginInlineStart" | "marginInlineEnd" | "marginBlock" | "marginBlockStart" | "marginBlockEnd" | "padding" | "paddingTop" | "paddingRight" | "paddingBottom" | "paddingLeft" | "paddingX" | "paddingY" | "paddingInline" | "paddingInlineStart" | "paddingInlineEnd" | "paddingBlock" | "paddingBlockStart" | "paddingBlockEnd" | "typography" | "fontFamily" | "fontSize" | "fontStyle" | "fontWeight" | "letterSpacing" | "lineHeight" | "textAlign" | "textTransform" | "sx" | "classes" | "variant" | "align" | "gutterBottom" | "noWrap" | "paragraph" | "variantMapping"> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface DeleteRecurringEventDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onConfirm: (deleteAll: boolean) => void;
|
|
6
|
+
eventTitle?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const DeleteRecurringEventDialog: React.FC<DeleteRecurringEventDialogProps>;
|
|
9
|
+
export default DeleteRecurringEventDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DeleteRecurringEventDialog';
|
package/dist/types/components/EventsDialog/components/DescriptionTextField/DescriptionTextField.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseFieldType } from '../../hooks/useField';
|
|
2
|
+
type DescriptionTextFieldProps = {
|
|
3
|
+
descriptionField: UseFieldType;
|
|
4
|
+
disabled: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const DescriptionTextField: ({ descriptionField, disabled }: DescriptionTextFieldProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default DescriptionTextField;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DescriptionTextField';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface EditRecurringEventDialogProps {
|
|
3
|
+
open: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
onConfirm: (editAll: boolean) => void;
|
|
6
|
+
eventTitle?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const EditRecurringEventDialog: React.FC<EditRecurringEventDialogProps>;
|
|
9
|
+
export default EditRecurringEventDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './EditRecurringEventDialog';
|
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';
|
package/dist/types/components/EventsDialog/components/LinkContactsSelect/LinkContactsSelect.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { UseLinkContact } from '../../hooks/useEvent';
|
|
2
|
+
type LinkContactsSelectProps = {
|
|
3
|
+
linkContactsHandler: UseLinkContact;
|
|
4
|
+
disabled?: boolean;
|
|
5
|
+
};
|
|
6
|
+
declare const LinkContactsSelect: ({ linkContactsHandler, disabled }: LinkContactsSelectProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default LinkContactsSelect;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ContactSearchBar';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UIEvent } from 'react';
|
|
2
|
+
import { IContact } from '@trii/types/dist/Contacts';
|
|
3
|
+
interface Props {
|
|
4
|
+
handleScroll: (e: UIEvent<HTMLElement>) => void;
|
|
5
|
+
contactList: IContact[];
|
|
6
|
+
handleSelectContact: (contact: IContact) => void;
|
|
7
|
+
contactSelectedId: string;
|
|
8
|
+
search: string;
|
|
9
|
+
}
|
|
10
|
+
declare const ContactSearchResults: ({ handleScroll, contactList, handleSelectContact, contactSelectedId, search, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default ContactSearchResults;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ContactsSearchResults';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UIEvent } from 'react';
|
|
2
|
+
import { IContact } from '@trii/types/dist/Contacts';
|
|
3
|
+
type ApiContext = {
|
|
4
|
+
baseUrl: string;
|
|
5
|
+
spaceId: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function useLinkContactsSearch(apiContext: ApiContext | null): {
|
|
8
|
+
contactList: IContact[];
|
|
9
|
+
hasSearched: boolean;
|
|
10
|
+
isLoading: boolean;
|
|
11
|
+
isLoadingTimer: boolean;
|
|
12
|
+
isNextPage: boolean;
|
|
13
|
+
handleQueryChanged: (value: string) => void;
|
|
14
|
+
handleScroll: (e: UIEvent<HTMLElement>, currentSearch: string) => void;
|
|
15
|
+
resetSearchState: () => void;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './LinkContactsSelect';
|
|
@@ -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>, {}, {}>;
|