@axelor/aos-mobile-crm 6.5.0
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/README.md +44 -0
- package/lib/api/catalog-api.d.ts +5 -0
- package/lib/api/catalog-api.js +36 -0
- package/lib/api/catalog-api.js.map +1 -0
- package/lib/api/client-api.d.ts +18 -0
- package/lib/api/client-api.js +81 -0
- package/lib/api/client-api.js.map +1 -0
- package/lib/api/contact-api.d.ts +23 -0
- package/lib/api/contact-api.js +110 -0
- package/lib/api/contact-api.js.map +1 -0
- package/lib/api/event-api.d.ts +10 -0
- package/lib/api/event-api.js +128 -0
- package/lib/api/event-api.js.map +1 -0
- package/lib/api/function-api.d.ts +1 -0
- package/lib/api/function-api.js +24 -0
- package/lib/api/function-api.js.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +19 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/leads-api.d.ts +33 -0
- package/lib/api/leads-api.js +109 -0
- package/lib/api/leads-api.js.map +1 -0
- package/lib/api/opportunities-api.d.ts +29 -0
- package/lib/api/opportunities-api.js +102 -0
- package/lib/api/opportunities-api.js.map +1 -0
- package/lib/api/partner-api.d.ts +7 -0
- package/lib/api/partner-api.js +74 -0
- package/lib/api/partner-api.js.map +1 -0
- package/lib/api/prospect-api.d.ts +24 -0
- package/lib/api/prospect-api.js +94 -0
- package/lib/api/prospect-api.js.map +1 -0
- package/lib/components/index.d.ts +2 -0
- package/lib/components/index.js +20 -0
- package/lib/components/index.js.map +1 -0
- package/lib/components/molecules/CatalogCard/CatalogCard.d.ts +13 -0
- package/lib/components/molecules/CatalogCard/CatalogCard.js +94 -0
- package/lib/components/molecules/CatalogCard/CatalogCard.js.map +1 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.d.ts +14 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.js +69 -0
- package/lib/components/molecules/ContactInfoCard/ContactInfoCard.js.map +1 -0
- package/lib/components/molecules/EventCard/EventCard.d.ts +11 -0
- package/lib/components/molecules/EventCard/EventCard.js +114 -0
- package/lib/components/molecules/EventCard/EventCard.js.map +1 -0
- package/lib/components/molecules/LeadsCard/LeadsCard.d.ts +19 -0
- package/lib/components/molecules/LeadsCard/LeadsCard.js +88 -0
- package/lib/components/molecules/LeadsCard/LeadsCard.js.map +1 -0
- package/lib/components/molecules/LiteContactCard/LiteContactCard.d.ts +10 -0
- package/lib/components/molecules/LiteContactCard/LiteContactCard.js +47 -0
- package/lib/components/molecules/LiteContactCard/LiteContactCard.js.map +1 -0
- package/lib/components/molecules/OpportunityCard/OpportunityCard.d.ts +14 -0
- package/lib/components/molecules/OpportunityCard/OpportunityCard.js +72 -0
- package/lib/components/molecules/OpportunityCard/OpportunityCard.js.map +1 -0
- package/lib/components/molecules/PartnerCard/PartnerCard.d.ts +15 -0
- package/lib/components/molecules/PartnerCard/PartnerCard.js +89 -0
- package/lib/components/molecules/PartnerCard/PartnerCard.js.map +1 -0
- package/lib/components/molecules/PartnerInfoCard/PartnerInfoCard.d.ts +9 -0
- package/lib/components/molecules/PartnerInfoCard/PartnerInfoCard.js +67 -0
- package/lib/components/molecules/PartnerInfoCard/PartnerInfoCard.js.map +1 -0
- package/lib/components/molecules/PlanningEventCard/PlanningEventCard.d.ts +10 -0
- package/lib/components/molecules/PlanningEventCard/PlanningEventCard.js +41 -0
- package/lib/components/molecules/PlanningEventCard/PlanningEventCard.js.map +1 -0
- package/lib/components/molecules/index.d.ts +9 -0
- package/lib/components/molecules/index.js +27 -0
- package/lib/components/molecules/index.js.map +1 -0
- package/lib/components/organisms/Client/ClientBottom/ClientBottom.d.ts +5 -0
- package/lib/components/organisms/Client/ClientBottom/ClientBottom.js +26 -0
- package/lib/components/organisms/Client/ClientBottom/ClientBottom.js.map +1 -0
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.js +72 -0
- package/lib/components/organisms/Client/ClientDropdownCards/ClientDropdownCards.js.map +1 -0
- package/lib/components/organisms/Client/ClientHeader/ClientHeader.d.ts +2 -0
- package/lib/components/organisms/Client/ClientHeader/ClientHeader.js +49 -0
- package/lib/components/organisms/Client/ClientHeader/ClientHeader.js.map +1 -0
- package/lib/components/organisms/Client/index.d.ts +3 -0
- package/lib/components/organisms/Client/index.js +21 -0
- package/lib/components/organisms/Client/index.js.map +1 -0
- package/lib/components/organisms/Contact/ContactBottom/ContactBottom.d.ts +5 -0
- package/lib/components/organisms/Contact/ContactBottom/ContactBottom.js +26 -0
- package/lib/components/organisms/Contact/ContactBottom/ContactBottom.js.map +1 -0
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.js +61 -0
- package/lib/components/organisms/Contact/ContactDropdownCards/ContactDropdownCards.js.map +1 -0
- package/lib/components/organisms/Contact/ContactHeader/ContactHeader.d.ts +2 -0
- package/lib/components/organisms/Contact/ContactHeader/ContactHeader.js +50 -0
- package/lib/components/organisms/Contact/ContactHeader/ContactHeader.js.map +1 -0
- package/lib/components/organisms/Contact/ContactPartnerCard/ContactPartnerCard.d.ts +4 -0
- package/lib/components/organisms/Contact/ContactPartnerCard/ContactPartnerCard.js +55 -0
- package/lib/components/organisms/Contact/ContactPartnerCard/ContactPartnerCard.js.map +1 -0
- package/lib/components/organisms/Contact/index.d.ts +4 -0
- package/lib/components/organisms/Contact/index.js +22 -0
- package/lib/components/organisms/Contact/index.js.map +1 -0
- package/lib/components/organisms/DropdownContactView/DropdownContactView.d.ts +9 -0
- package/lib/components/organisms/DropdownContactView/DropdownContactView.js +48 -0
- package/lib/components/organisms/DropdownContactView/DropdownContactView.js.map +1 -0
- package/lib/components/organisms/DropdownEmployeeView/DropdownEmployeeView.d.ts +12 -0
- package/lib/components/organisms/DropdownEmployeeView/DropdownEmployeeView.js +43 -0
- package/lib/components/organisms/DropdownEmployeeView/DropdownEmployeeView.js.map +1 -0
- package/lib/components/organisms/DropdownEventView/DropdownEventView.d.ts +14 -0
- package/lib/components/organisms/DropdownEventView/DropdownEventView.js +59 -0
- package/lib/components/organisms/DropdownEventView/DropdownEventView.js.map +1 -0
- package/lib/components/organisms/DropdownGeneralView/DropdownGeneralView.d.ts +9 -0
- package/lib/components/organisms/DropdownGeneralView/DropdownGeneralView.js +42 -0
- package/lib/components/organisms/DropdownGeneralView/DropdownGeneralView.js.map +1 -0
- package/lib/components/organisms/EditButton/EditButton.d.ts +4 -0
- package/lib/components/organisms/EditButton/EditButton.js +32 -0
- package/lib/components/organisms/EditButton/EditButton.js.map +1 -0
- package/lib/components/organisms/Event/EventContactCard/EventContactCard.d.ts +4 -0
- package/lib/components/organisms/Event/EventContactCard/EventContactCard.js +49 -0
- package/lib/components/organisms/Event/EventContactCard/EventContactCard.js.map +1 -0
- package/lib/components/organisms/Event/EventDatesCard/EventDatesCard.d.ts +2 -0
- package/lib/components/organisms/Event/EventDatesCard/EventDatesCard.js +38 -0
- package/lib/components/organisms/Event/EventDatesCard/EventDatesCard.js.map +1 -0
- package/lib/components/organisms/Event/EventHeader/EventHeader.d.ts +2 -0
- package/lib/components/organisms/Event/EventHeader/EventHeader.js +55 -0
- package/lib/components/organisms/Event/EventHeader/EventHeader.js.map +1 -0
- package/lib/components/organisms/Event/EventLabelsCard/EventLabelsCard.d.ts +2 -0
- package/lib/components/organisms/Event/EventLabelsCard/EventLabelsCard.js +41 -0
- package/lib/components/organisms/Event/EventLabelsCard/EventLabelsCard.js.map +1 -0
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.d.ts +4 -0
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.js +52 -0
- package/lib/components/organisms/Event/EventLeadCard/EventLeadCard.js.map +1 -0
- package/lib/components/organisms/Event/EventPartnerCard/EventPartnerCard.d.ts +4 -0
- package/lib/components/organisms/Event/EventPartnerCard/EventPartnerCard.js +54 -0
- package/lib/components/organisms/Event/EventPartnerCard/EventPartnerCard.js.map +1 -0
- package/lib/components/organisms/Event/index.d.ts +6 -0
- package/lib/components/organisms/Event/index.js +24 -0
- package/lib/components/organisms/Event/index.js.map +1 -0
- package/lib/components/organisms/Lead/LeadBottom/LeadBottom.d.ts +5 -0
- package/lib/components/organisms/Lead/LeadBottom/LeadBottom.js +26 -0
- package/lib/components/organisms/Lead/LeadBottom/LeadBottom.js.map +1 -0
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.js +62 -0
- package/lib/components/organisms/Lead/LeadDropdownCards/LeadDropdownCards.js.map +1 -0
- package/lib/components/organisms/Lead/LeadHeader/LeadHeader.d.ts +6 -0
- package/lib/components/organisms/Lead/LeadHeader/LeadHeader.js +71 -0
- package/lib/components/organisms/Lead/LeadHeader/LeadHeader.js.map +1 -0
- package/lib/components/organisms/Lead/index.d.ts +3 -0
- package/lib/components/organisms/Lead/index.js +21 -0
- package/lib/components/organisms/Lead/index.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityBottom/OpportunityBottom.d.ts +5 -0
- package/lib/components/organisms/Opportunity/OpportunityBottom/OpportunityBottom.js +26 -0
- package/lib/components/organisms/Opportunity/OpportunityBottom/OpportunityBottom.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityDropdownInfo/OpportunityDropdownInfo.d.ts +2 -0
- package/lib/components/organisms/Opportunity/OpportunityDropdownInfo/OpportunityDropdownInfo.js +55 -0
- package/lib/components/organisms/Opportunity/OpportunityDropdownInfo/OpportunityDropdownInfo.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityHeader/OpportunityHeader.d.ts +2 -0
- package/lib/components/organisms/Opportunity/OpportunityHeader/OpportunityHeader.js +63 -0
- package/lib/components/organisms/Opportunity/OpportunityHeader/OpportunityHeader.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityPartnerCard/OpportunityPartnerCard.d.ts +5 -0
- package/lib/components/organisms/Opportunity/OpportunityPartnerCard/OpportunityPartnerCard.js +46 -0
- package/lib/components/organisms/Opportunity/OpportunityPartnerCard/OpportunityPartnerCard.js.map +1 -0
- package/lib/components/organisms/Opportunity/OpportunityUpdateStatusPicker/OpportunityUpdateStatusPicker.d.ts +7 -0
- package/lib/components/organisms/Opportunity/OpportunityUpdateStatusPicker/OpportunityUpdateStatusPicker.js +41 -0
- package/lib/components/organisms/Opportunity/OpportunityUpdateStatusPicker/OpportunityUpdateStatusPicker.js.map +1 -0
- package/lib/components/organisms/Opportunity/index.d.ts +5 -0
- package/lib/components/organisms/Opportunity/index.js +23 -0
- package/lib/components/organisms/Opportunity/index.js.map +1 -0
- package/lib/components/organisms/Prospect/ProspectBottom/ProspectBottom.d.ts +5 -0
- package/lib/components/organisms/Prospect/ProspectBottom/ProspectBottom.js +26 -0
- package/lib/components/organisms/Prospect/ProspectBottom/ProspectBottom.js.map +1 -0
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.d.ts +4 -0
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.js +76 -0
- package/lib/components/organisms/Prospect/ProspectDropdownCards/ProspectDropdownCards.js.map +1 -0
- package/lib/components/organisms/Prospect/ProspectHeader/ProspectHeader.d.ts +2 -0
- package/lib/components/organisms/Prospect/ProspectHeader/ProspectHeader.js +75 -0
- package/lib/components/organisms/Prospect/ProspectHeader/ProspectHeader.js.map +1 -0
- package/lib/components/organisms/Prospect/index.d.ts +3 -0
- package/lib/components/organisms/Prospect/index.js +21 -0
- package/lib/components/organisms/Prospect/index.js.map +1 -0
- package/lib/components/organisms/index.d.ts +11 -0
- package/lib/components/organisms/index.js +29 -0
- package/lib/components/organisms/index.js.map +1 -0
- package/lib/features/asyncFunctions-index.d.ts +1 -0
- package/lib/features/asyncFunctions-index.js +19 -0
- package/lib/features/asyncFunctions-index.js.map +1 -0
- package/lib/features/catalogSlice.d.ts +28 -0
- package/lib/features/catalogSlice.js +86 -0
- package/lib/features/catalogSlice.js.map +1 -0
- package/lib/features/clientSlice.d.ts +37 -0
- package/lib/features/clientSlice.js +110 -0
- package/lib/features/clientSlice.js.map +1 -0
- package/lib/features/contactSlice.d.ts +49 -0
- package/lib/features/contactSlice.js +130 -0
- package/lib/features/contactSlice.js.map +1 -0
- package/lib/features/eventSlice.d.ts +61 -0
- package/lib/features/eventSlice.js +137 -0
- package/lib/features/eventSlice.js.map +1 -0
- package/lib/features/functionSlice.d.ts +14 -0
- package/lib/features/functionSlice.js +48 -0
- package/lib/features/functionSlice.js.map +1 -0
- package/lib/features/index.d.ts +10 -0
- package/lib/features/index.js +27 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/leadSlice.d.ts +59 -0
- package/lib/features/leadSlice.js +153 -0
- package/lib/features/leadSlice.js.map +1 -0
- package/lib/features/opportunitySlice.d.ts +70 -0
- package/lib/features/opportunitySlice.js +187 -0
- package/lib/features/opportunitySlice.js.map +1 -0
- package/lib/features/partnerSlice.d.ts +28 -0
- package/lib/features/partnerSlice.js +89 -0
- package/lib/features/partnerSlice.js.map +1 -0
- package/lib/features/prospectSlice.d.ts +47 -0
- package/lib/features/prospectSlice.js +139 -0
- package/lib/features/prospectSlice.js.map +1 -0
- package/lib/hooks/use-civility-list.d.ts +6 -0
- package/lib/hooks/use-civility-list.js +31 -0
- package/lib/hooks/use-civility-list.js.map +1 -0
- package/lib/i18n/en.json +76 -0
- package/lib/i18n/fr.json +76 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.js +99 -0
- package/lib/index.js.map +1 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/index.js +21 -0
- package/lib/models/index.js.map +1 -0
- package/lib/models/objectFields.d.ts +2 -0
- package/lib/models/objectFields.js +165 -0
- package/lib/models/objectFields.js.map +1 -0
- package/lib/models/searchFields.d.ts +2 -0
- package/lib/models/searchFields.js +62 -0
- package/lib/models/searchFields.js.map +1 -0
- package/lib/models/sortFields.d.ts +2 -0
- package/lib/models/sortFields.js +28 -0
- package/lib/models/sortFields.js.map +1 -0
- package/lib/screens/catalog/CatalogListScreen.d.ts +4 -0
- package/lib/screens/catalog/CatalogListScreen.js +94 -0
- package/lib/screens/catalog/CatalogListScreen.js.map +1 -0
- package/lib/screens/catalog/index.d.ts +11 -0
- package/lib/screens/catalog/index.js +28 -0
- package/lib/screens/catalog/index.js.map +1 -0
- package/lib/screens/client/ClientDetailsScreen.d.ts +5 -0
- package/lib/screens/client/ClientDetailsScreen.js +48 -0
- package/lib/screens/client/ClientDetailsScreen.js.map +1 -0
- package/lib/screens/client/ClientFormScreen.d.ts +5 -0
- package/lib/screens/client/ClientFormScreen.js +99 -0
- package/lib/screens/client/ClientFormScreen.js.map +1 -0
- package/lib/screens/client/ClientsListScreen.d.ts +4 -0
- package/lib/screens/client/ClientsListScreen.js +87 -0
- package/lib/screens/client/ClientsListScreen.js.map +1 -0
- package/lib/screens/client/index.d.ts +28 -0
- package/lib/screens/client/index.js +41 -0
- package/lib/screens/client/index.js.map +1 -0
- package/lib/screens/contact/ContactDetailsScreen.d.ts +5 -0
- package/lib/screens/contact/ContactDetailsScreen.js +49 -0
- package/lib/screens/contact/ContactDetailsScreen.js.map +1 -0
- package/lib/screens/contact/ContactFormScreen.d.ts +5 -0
- package/lib/screens/contact/ContactFormScreen.js +129 -0
- package/lib/screens/contact/ContactFormScreen.js.map +1 -0
- package/lib/screens/contact/ContactListScreen.d.ts +4 -0
- package/lib/screens/contact/ContactListScreen.js +87 -0
- package/lib/screens/contact/ContactListScreen.js.map +1 -0
- package/lib/screens/contact/index.d.ts +28 -0
- package/lib/screens/contact/index.js +41 -0
- package/lib/screens/contact/index.js.map +1 -0
- package/lib/screens/event/EventDetailsScreen.d.ts +5 -0
- package/lib/screens/event/EventDetailsScreen.js +48 -0
- package/lib/screens/event/EventDetailsScreen.js.map +1 -0
- package/lib/screens/event/EventPlanningScreen.d.ts +4 -0
- package/lib/screens/event/EventPlanningScreen.js +152 -0
- package/lib/screens/event/EventPlanningScreen.js.map +1 -0
- package/lib/screens/event/index.d.ts +22 -0
- package/lib/screens/event/index.js +36 -0
- package/lib/screens/event/index.js.map +1 -0
- package/lib/screens/lead/LeadDetailsScreen.d.ts +5 -0
- package/lib/screens/lead/LeadDetailsScreen.js +50 -0
- package/lib/screens/lead/LeadDetailsScreen.js.map +1 -0
- package/lib/screens/lead/LeadFormScreen.d.ts +5 -0
- package/lib/screens/lead/LeadFormScreen.js +171 -0
- package/lib/screens/lead/LeadFormScreen.js.map +1 -0
- package/lib/screens/lead/LeadListScreen.d.ts +4 -0
- package/lib/screens/lead/LeadListScreen.js +104 -0
- package/lib/screens/lead/LeadListScreen.js.map +1 -0
- package/lib/screens/lead/index.d.ts +28 -0
- package/lib/screens/lead/index.js +41 -0
- package/lib/screens/lead/index.js.map +1 -0
- package/lib/screens/opportunity/OpportunityDetailsScreen.d.ts +5 -0
- package/lib/screens/opportunity/OpportunityDetailsScreen.js +51 -0
- package/lib/screens/opportunity/OpportunityDetailsScreen.js.map +1 -0
- package/lib/screens/opportunity/OpportunityFormScreen.d.ts +5 -0
- package/lib/screens/opportunity/OpportunityFormScreen.js +126 -0
- package/lib/screens/opportunity/OpportunityFormScreen.js.map +1 -0
- package/lib/screens/opportunity/OpportunityListScreen.d.ts +4 -0
- package/lib/screens/opportunity/OpportunityListScreen.js +107 -0
- package/lib/screens/opportunity/OpportunityListScreen.js.map +1 -0
- package/lib/screens/opportunity/index.d.ts +28 -0
- package/lib/screens/opportunity/index.js +41 -0
- package/lib/screens/opportunity/index.js.map +1 -0
- package/lib/screens/prospect/ProspectDetailsScreen.d.ts +5 -0
- package/lib/screens/prospect/ProspectDetailsScreen.js +48 -0
- package/lib/screens/prospect/ProspectDetailsScreen.js.map +1 -0
- package/lib/screens/prospect/ProspectFormScreen.d.ts +5 -0
- package/lib/screens/prospect/ProspectFormScreen.js +112 -0
- package/lib/screens/prospect/ProspectFormScreen.js.map +1 -0
- package/lib/screens/prospect/ProspectsListScreen.d.ts +4 -0
- package/lib/screens/prospect/ProspectsListScreen.js +87 -0
- package/lib/screens/prospect/ProspectsListScreen.js.map +1 -0
- package/lib/screens/prospect/index.d.ts +28 -0
- package/lib/screens/prospect/index.js +41 -0
- package/lib/screens/prospect/index.js.map +1 -0
- package/lib/types/catalog.d.ts +5 -0
- package/lib/types/catalog.js +47 -0
- package/lib/types/catalog.js.map +1 -0
- package/lib/types/event-type.d.ts +26 -0
- package/lib/types/event-type.js +121 -0
- package/lib/types/event-type.js.map +1 -0
- package/lib/types/index.d.ts +4 -0
- package/lib/types/index.js +22 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/lead.d.ts +5 -0
- package/lib/types/lead.js +47 -0
- package/lib/types/lead.js.map +1 -0
- package/lib/types/opportunity.d.ts +6 -0
- package/lib/types/opportunity.js +47 -0
- package/lib/types/opportunity.js.map +1 -0
- package/lib/utils/dateEvent.d.ts +2 -0
- package/lib/utils/dateEvent.js +34 -0
- package/lib/utils/dateEvent.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useEffect } from 'react';
|
|
19
|
+
import { ScrollView } from 'react-native';
|
|
20
|
+
import { Screen, HeaderContainer, NotesCard } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useSelector, HeaderOptionsMenu, useDispatch, useTranslator, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { ContactBottom, ContactDropdownCards, ContactHeader, ContactPartnerCard, } from '../../components';
|
|
23
|
+
import { getContact } from '../../features/contactSlice';
|
|
24
|
+
const ContactDetailsScreen = ({ navigation, route }) => {
|
|
25
|
+
const idContact = route.params.idContact;
|
|
26
|
+
const I18n = useTranslator();
|
|
27
|
+
const dispatch = useDispatch();
|
|
28
|
+
const { mobileSettings } = useSelector(state => state.config);
|
|
29
|
+
const { contact } = useSelector(state => state.contact);
|
|
30
|
+
React.useLayoutEffect(() => {
|
|
31
|
+
navigation.setOptions({
|
|
32
|
+
headerRight: () => (<HeaderOptionsMenu model="com.axelor.apps.base.db.Partner" modelId={contact?.id} navigation={navigation} disableMailMessages={!mobileSettings?.isTrackerMessageOnCrmApp} attachedFileScreenTitle={contact?.simpleFullName}/>),
|
|
33
|
+
});
|
|
34
|
+
}, [mobileSettings, navigation, contact]);
|
|
35
|
+
useEffect(() => {
|
|
36
|
+
dispatch(getContact({ contactId: idContact }));
|
|
37
|
+
}, [dispatch, idContact]);
|
|
38
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
39
|
+
<HeaderContainer expandableFilter={false} fixedItems={<ContactHeader />}/>
|
|
40
|
+
<ScrollView>
|
|
41
|
+
<ContactPartnerCard navigation={navigation}/>
|
|
42
|
+
<NotesCard title={I18n.t('Crm_Notes')} data={contact.description}/>
|
|
43
|
+
<ContactDropdownCards navigation={navigation}/>
|
|
44
|
+
</ScrollView>
|
|
45
|
+
<ContactBottom idContact={idContact} navigation={navigation}/>
|
|
46
|
+
</Screen>);
|
|
47
|
+
};
|
|
48
|
+
export default ContactDetailsScreen;
|
|
49
|
+
//# sourceMappingURL=ContactDetailsScreen.js.map
|
|
@@ -0,0 +1 @@
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
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useEffect, useState, useCallback } from 'react';
|
|
19
|
+
import { ScrollView, StyleSheet, View, KeyboardAvoidingView, Platform, } from 'react-native';
|
|
20
|
+
import { Button, FormHtmlInput, FormInput, Picker, Screen, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useSelector, useDispatch, useTranslator, AutoCompleteSearchInput, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { getContact } from '../../features/contactSlice';
|
|
23
|
+
import { fetchClientAndProspect } from '../../features/partnerSlice';
|
|
24
|
+
import { updateContact } from '../../features/contactSlice';
|
|
25
|
+
import { useCivilityList } from '../../hooks/use-civility-list';
|
|
26
|
+
const ContactFormScreen = ({ navigation, route }) => {
|
|
27
|
+
const idContact = route.params.idContact;
|
|
28
|
+
const { contact } = useSelector(state => state.contact);
|
|
29
|
+
const { clientAndProspectList } = useSelector(state => state.partner);
|
|
30
|
+
const { civilityList } = useCivilityList();
|
|
31
|
+
const dispatch = useDispatch();
|
|
32
|
+
const I18n = useTranslator();
|
|
33
|
+
const [civility, setCivility] = useState(Number(contact.titleSelect));
|
|
34
|
+
const [firstName, setFirstName] = useState(contact.firstName);
|
|
35
|
+
const [name, setName] = useState(contact.name);
|
|
36
|
+
const [fixedPhone, setFixedPhone] = useState(contact.fixedPhone);
|
|
37
|
+
const [mobilePhone, setMobilePhone] = useState(contact.mobilePhone);
|
|
38
|
+
const [email, setEmail] = useState(contact.emailAddress?.address);
|
|
39
|
+
const [webSite, setWebSite] = useState(contact.webSite);
|
|
40
|
+
const [description, setDescription] = useState(contact.description);
|
|
41
|
+
const [clientAndProspect, setClientAndProspect] = useState(contact.mainPartner);
|
|
42
|
+
useEffect(() => {
|
|
43
|
+
dispatch(getContact({ contactId: idContact }));
|
|
44
|
+
}, [dispatch, idContact]);
|
|
45
|
+
const updateContactAPI = useCallback(() => {
|
|
46
|
+
dispatch(updateContact({
|
|
47
|
+
contactId: contact.id,
|
|
48
|
+
contactVersion: contact.version,
|
|
49
|
+
contactCivility: civility,
|
|
50
|
+
contactFirstname: firstName,
|
|
51
|
+
contactName: name,
|
|
52
|
+
contactFixedPhone: fixedPhone,
|
|
53
|
+
contactMobilePhone: mobilePhone,
|
|
54
|
+
contactWebsite: webSite,
|
|
55
|
+
contactDescription: description,
|
|
56
|
+
mainPartnerId: clientAndProspect?.id,
|
|
57
|
+
emailId: contact.emailAddress?.id,
|
|
58
|
+
emailVersion: contact.emailAddress?.$version,
|
|
59
|
+
contactEmail: email,
|
|
60
|
+
}));
|
|
61
|
+
navigation.navigate('ContactDetailsScreen', {
|
|
62
|
+
idContact: contact.id,
|
|
63
|
+
});
|
|
64
|
+
}, [
|
|
65
|
+
dispatch,
|
|
66
|
+
navigation,
|
|
67
|
+
clientAndProspect,
|
|
68
|
+
contact.id,
|
|
69
|
+
contact.version,
|
|
70
|
+
civility,
|
|
71
|
+
firstName,
|
|
72
|
+
name,
|
|
73
|
+
fixedPhone,
|
|
74
|
+
mobilePhone,
|
|
75
|
+
webSite,
|
|
76
|
+
description,
|
|
77
|
+
contact.emailAddress,
|
|
78
|
+
email,
|
|
79
|
+
]);
|
|
80
|
+
return (<Screen>
|
|
81
|
+
<KeyboardAvoidingView behavior={Platform.OS === 'ios' ? 'padding' : 'height'} style={styles.containerKeyboard} keyboardVerticalOffset={180}>
|
|
82
|
+
<ScrollView>
|
|
83
|
+
<View style={styles.container}>
|
|
84
|
+
<Picker style={[styles.picker, styles.marginPicker]} styleTxt={styles.marginPicker} title={I18n.t('Crm_Civility')} onValueChange={setCivility} listItems={civilityList} labelField="name" valueField="id" defaultValue={civility}/>
|
|
85
|
+
<FormInput style={styles.input} title={I18n.t('Crm_FirstName')} onChange={setFirstName} defaultValue={firstName}/>
|
|
86
|
+
<FormInput style={styles.input} title={I18n.t('Crm_Name')} onChange={setName} defaultValue={name}/>
|
|
87
|
+
<AutoCompleteSearchInput style={[styles.picker, styles.marginPicker]} styleTxt={styles.marginTitle} title={I18n.t('Crm_ClientProspect')} objectList={clientAndProspectList} value={clientAndProspect} searchField="fullName" onChangeValue={setClientAndProspect} searchAPI={fetchClientAndProspect}/>
|
|
88
|
+
<FormInput style={styles.input} title={I18n.t('Crm_Phone')} onChange={setFixedPhone} defaultValue={fixedPhone}/>
|
|
89
|
+
<FormInput style={styles.input} title={I18n.t('Crm_MobilePhone')} onChange={setMobilePhone} defaultValue={mobilePhone}/>
|
|
90
|
+
<FormInput style={styles.input} title={I18n.t('Crm_Email')} onChange={setEmail} defaultValue={email}/>
|
|
91
|
+
<FormInput style={styles.input} title={I18n.t('Crm_WebSite')} onChange={setWebSite} defaultValue={webSite}/>
|
|
92
|
+
<FormHtmlInput title={I18n.t('Crm_Notes')} onChange={setDescription} defaultValue={description}/>
|
|
93
|
+
</View>
|
|
94
|
+
</ScrollView>
|
|
95
|
+
</KeyboardAvoidingView>
|
|
96
|
+
<View style={styles.button_container}>
|
|
97
|
+
<Button title={I18n.t('Base_Save')} onPress={updateContactAPI}/>
|
|
98
|
+
</View>
|
|
99
|
+
</Screen>);
|
|
100
|
+
};
|
|
101
|
+
const styles = StyleSheet.create({
|
|
102
|
+
containerKeyboard: {
|
|
103
|
+
flex: 1,
|
|
104
|
+
},
|
|
105
|
+
container: {
|
|
106
|
+
alignItems: 'center',
|
|
107
|
+
},
|
|
108
|
+
marginPicker: {
|
|
109
|
+
marginLeft: 5,
|
|
110
|
+
},
|
|
111
|
+
picker: {
|
|
112
|
+
width: '100%',
|
|
113
|
+
},
|
|
114
|
+
marginTitle: {
|
|
115
|
+
marginLeft: 28,
|
|
116
|
+
},
|
|
117
|
+
button_container: {
|
|
118
|
+
marginVertical: '1%',
|
|
119
|
+
flexDirection: 'column',
|
|
120
|
+
justifyContent: 'center',
|
|
121
|
+
alignItems: 'center',
|
|
122
|
+
alignContent: 'center',
|
|
123
|
+
},
|
|
124
|
+
input: {
|
|
125
|
+
width: '90%',
|
|
126
|
+
},
|
|
127
|
+
});
|
|
128
|
+
export default ContactFormScreen;
|
|
129
|
+
//# sourceMappingURL=ContactFormScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactFormScreen.js","sourceRoot":"","sources":["../../../src/screens/contact/ContactFormScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAC,MAAM,OAAO,CAAC;AAC9D,OAAO,EACL,UAAU,EACV,UAAU,EACV,IAAI,EACJ,oBAAoB,EACpB,QAAQ,GACT,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,MAAM,EACN,aAAa,EACb,SAAS,EACT,MAAM,EACN,MAAM,GACP,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,WAAW,EACX,WAAW,EACX,aAAa,EACb,uBAAuB,GACxB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAC,sBAAsB,EAAC,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAC,aAAa,EAAC,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAC,eAAe,EAAC,MAAM,+BAA+B,CAAC;AAE9D,MAAM,iBAAiB,GAAG,CAAC,EAAC,UAAU,EAAE,KAAK,EAAC,EAAE,EAAE;IAChD,MAAM,SAAS,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAA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C,KAAK,CAAC,CAAC,MAAM,CAAC,gBAAgB,CAAC,CACnC;QAAA,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,gBAAgB,CAAC,EAChE;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,iBAAiB,EAAE;QACjB,IAAI,EAAE,CAAC;KACR;IACD,SAAS,EAAE;QACT,UAAU,EAAE,QAAQ;KACrB;IACD,YAAY,EAAE;QACZ,UAAU,EAAE,CAAC;KACd;IACD,MAAM,EAAE;QACN,KAAK,EAAE,MAAM;KACd;IACD,WAAW,EAAE;QACX,UAAU,EAAE,EAAE;KACf;IACD,gBAAgB,EAAE;QAChB,cAAc,EAAE,IAAI;QACpB,aAAa,EAAE,QAAQ;QACvB,cAAc,EAAE,QAAQ;QACxB,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,QAAQ;KACvB;IACD,KAAK,EAAE;QACL,KAAK,EAAE,KAAK;KACb;CACF,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useMemo, useState, useCallback, useEffect } from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { HeaderContainer, Screen, ScrollList, useThemeColor, getCommonStyles, ToggleSwitch, AutoCompleteSearch, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { fetchContact } from '../../features/contactSlice';
|
|
23
|
+
import { PartnerCard } from '../../components';
|
|
24
|
+
const ContactListScreen = ({ navigation }) => {
|
|
25
|
+
const I18n = useTranslator();
|
|
26
|
+
const Colors = useThemeColor();
|
|
27
|
+
const dispatch = useDispatch();
|
|
28
|
+
const { userId } = useSelector(state => state.auth);
|
|
29
|
+
const { loadingContact, moreLoading, isListEnd, contactList } = useSelector(state => state.contact);
|
|
30
|
+
const [filteredList, setFilteredList] = useState(contactList);
|
|
31
|
+
const [assigned, setAssigned] = useState(false);
|
|
32
|
+
const [contact, setContact] = useState(null);
|
|
33
|
+
const [filter, setFilter] = useState(null);
|
|
34
|
+
const commonStyles = useMemo(() => getCommonStyles(Colors), [Colors]);
|
|
35
|
+
const fetchContactAPI = useCallback(page => {
|
|
36
|
+
dispatch(fetchContact({ searchValue: filter, page: page }));
|
|
37
|
+
}, [dispatch, filter]);
|
|
38
|
+
const fetchContactFilter = useCallback(searchValue => {
|
|
39
|
+
setFilter(searchValue);
|
|
40
|
+
dispatch(fetchContact({ searchValue: searchValue, page: 0 }));
|
|
41
|
+
}, [dispatch]);
|
|
42
|
+
const filterOnUserAssigned = useCallback(list => {
|
|
43
|
+
if (list == null || list === []) {
|
|
44
|
+
return list;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
if (assigned) {
|
|
48
|
+
return list?.filter(item => item?.user?.id === userId);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
return list;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}, [assigned, userId]);
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
setFilteredList(filterOnUserAssigned(contactList));
|
|
57
|
+
}, [filterOnUserAssigned, contactList]);
|
|
58
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
59
|
+
<HeaderContainer expandableFilter={false} fixedItems={<View style={styles.headerContainer}>
|
|
60
|
+
<ToggleSwitch styleContainer={[commonStyles.filter, commonStyles.filterSize]} styleToogle={styles.toggle} leftTitle={I18n.t('Crm_All')} rightTitle={I18n.t('Crm_AssignedToMe')} onSwitch={() => setAssigned(!assigned)}/>
|
|
61
|
+
<AutoCompleteSearch objectList={contactList} value={contact} onChangeValue={setContact} fetchData={fetchContactFilter} placeholder={I18n.t('Crm_Contacts')} oneFilter={true} selectLastItem={false}/>
|
|
62
|
+
</View>}/>
|
|
63
|
+
<ScrollList loadingList={loadingContact} data={filteredList} renderItem={({ item }) => (<PartnerCard style={styles.item} partnerFullName={item.simpleFullName} partnerReference={item.partnerSeq} partnerAdress={item.mainAddress?.fullName} partnerFixedPhone={item.fixedPhone} partnerEmail={item['emailAddress.address'] || item.emailAddress?.address} partnerPicture={item.picture} partnerCompany={item.mainPartner?.fullName} onPress={() => navigation.navigate('ContactDetailsScreen', {
|
|
64
|
+
idContact: item.id,
|
|
65
|
+
})}/>)} fetchData={fetchContactAPI} moreLoading={moreLoading} isListEnd={isListEnd} translator={I18n.t}/>
|
|
66
|
+
</Screen>);
|
|
67
|
+
};
|
|
68
|
+
const styles = StyleSheet.create({
|
|
69
|
+
item: {
|
|
70
|
+
marginHorizontal: 12,
|
|
71
|
+
marginVertical: 4,
|
|
72
|
+
},
|
|
73
|
+
headerContainer: {
|
|
74
|
+
alignItems: 'center',
|
|
75
|
+
},
|
|
76
|
+
toggleSwitchContainer: {
|
|
77
|
+
width: '90%',
|
|
78
|
+
height: 40,
|
|
79
|
+
},
|
|
80
|
+
toggle: {
|
|
81
|
+
width: '54%',
|
|
82
|
+
height: 38,
|
|
83
|
+
borderRadius: 13,
|
|
84
|
+
},
|
|
85
|
+
});
|
|
86
|
+
export default ContactListScreen;
|
|
87
|
+
//# sourceMappingURL=ContactListScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContactListScreen.js","sourceRoot":"","sources":["../../../src/screens/contact/ContactListScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACvE,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EACL,eAAe,EACf,MAAM,EACN,UAAU,EACV,aAAa,EACb,eAAe,EACf,YAAY,EACZ,kBAAkB,GACnB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,YAAY,EAAC,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAC,WAAW,EAAC,MAAM,kBAAkB,CAAC;AAE7C,MAAM,iBAAiB,GAAG,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE;IACzC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,MAAM,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAClD,MAAM,EAAC,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,WAAW,EAAC,GAAG,WAAW,CACvE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CACvB,CAAC;IAEF,MAAM,CAAC,YAAY,EAAE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ACjB;CACF,CAAC,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace ContactListScreen {
|
|
3
|
+
export const title: string;
|
|
4
|
+
export { ContactListScreen as component };
|
|
5
|
+
export namespace options {
|
|
6
|
+
const shadedHeader: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
namespace ContactDetailsScreen {
|
|
10
|
+
const title_1: string;
|
|
11
|
+
export { title_1 as title };
|
|
12
|
+
export { ContactDetailsScreen as component };
|
|
13
|
+
export namespace options_1 {
|
|
14
|
+
const shadedHeader_1: boolean;
|
|
15
|
+
export { shadedHeader_1 as shadedHeader };
|
|
16
|
+
}
|
|
17
|
+
export { options_1 as options };
|
|
18
|
+
}
|
|
19
|
+
namespace ContactFormScreen {
|
|
20
|
+
const title_2: string;
|
|
21
|
+
export { title_2 as title };
|
|
22
|
+
export { ContactFormScreen as component };
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export default _default;
|
|
26
|
+
import ContactListScreen_1 from "./ContactListScreen";
|
|
27
|
+
import ContactDetailsScreen_1 from "./ContactDetailsScreen";
|
|
28
|
+
import ContactFormScreen_1 from "./ContactFormScreen";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import ContactListScreen from './ContactListScreen';
|
|
19
|
+
import ContactDetailsScreen from './ContactDetailsScreen';
|
|
20
|
+
import ContactFormScreen from './ContactFormScreen';
|
|
21
|
+
export default {
|
|
22
|
+
ContactListScreen: {
|
|
23
|
+
title: 'Crm_Contacts',
|
|
24
|
+
component: ContactListScreen,
|
|
25
|
+
options: {
|
|
26
|
+
shadedHeader: false,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
ContactDetailsScreen: {
|
|
30
|
+
title: 'Crm_Contact',
|
|
31
|
+
component: ContactDetailsScreen,
|
|
32
|
+
options: {
|
|
33
|
+
shadedHeader: false,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
ContactFormScreen: {
|
|
37
|
+
title: 'Crm_Contact',
|
|
38
|
+
component: ContactFormScreen,
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/screens/contact/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AACpD,OAAO,oBAAoB,MAAM,wBAAwB,CAAC;AAC1D,OAAO,iBAAiB,MAAM,qBAAqB,CAAC;AAEpD,eAAe;IACb,iBAAiB,EAAE;QACjB,KAAK,EAAE,cAAc;QACrB,SAAS,EAAE,iBAAiB;QAC5B,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,oBAAoB,EAAE;QACpB,KAAK,EAAE,aAAa;QACpB,SAAS,EAAE,oBAAoB;QAC/B,OAAO,EAAE;YACP,YAAY,EAAE,KAAK;SACpB;KACF;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,aAAa;QACpB,SAAS,EAAE,iBAAiB;KAC7B;CACF,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useEffect } from 'react';
|
|
19
|
+
import { ScrollView } from 'react-native';
|
|
20
|
+
import { Screen, HeaderContainer, NotesCard } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useDispatch, useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { fetchEventById } from '../../features/eventSlice';
|
|
23
|
+
import { EventContactCard, EventDatesCard, EventHeader, EventLabelsCard, EventLeadCard, EventPartnerCard, } from '../../components';
|
|
24
|
+
function EventDetailsScreen({ navigation, route }) {
|
|
25
|
+
const eventId = route.params.eventId;
|
|
26
|
+
const I18n = useTranslator();
|
|
27
|
+
const dispatch = useDispatch();
|
|
28
|
+
const { event } = useSelector(state => state.event);
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
dispatch(fetchEventById({ eventId: eventId }));
|
|
31
|
+
}, [dispatch, eventId]);
|
|
32
|
+
if (event?.id !== eventId) {
|
|
33
|
+
return null;
|
|
34
|
+
}
|
|
35
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
36
|
+
<HeaderContainer expandableFilter={false} fixedItems={<EventHeader />}/>
|
|
37
|
+
<ScrollView>
|
|
38
|
+
<EventDatesCard />
|
|
39
|
+
<EventLabelsCard />
|
|
40
|
+
<EventLeadCard navigation={navigation}/>
|
|
41
|
+
<EventPartnerCard navigation={navigation}/>
|
|
42
|
+
<EventContactCard navigation={navigation}/>
|
|
43
|
+
<NotesCard title={I18n.t('Crm_Description')} data={event.description}/>
|
|
44
|
+
</ScrollView>
|
|
45
|
+
</Screen>);
|
|
46
|
+
}
|
|
47
|
+
export default EventDetailsScreen;
|
|
48
|
+
//# sourceMappingURL=EventDetailsScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventDetailsScreen.js","sourceRoot":"","sources":["../../../src/screens/event/EventDetailsScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,MAAM,EAAE,eAAe,EAAE,SAAS,EAAC,MAAM,uBAAuB,CAAC;AACzE,OAAO,EAAC,WAAW,EAAE,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAC,cAAc,EAAC,MAAM,2BAA2B,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,WAAW,EACX,eAAe,EACf,aAAa,EACb,gBAAgB,GACjB,MAAM,kBAAkB,CAAC;AAE1B,SAAS,kBAAkB,CAAC,EAAC,UAAU,EAAE,KAAK,EAAC;IAC7C,MAAM,OAAO,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC;IACrC,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,KAAK,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAElD,SAAS,CAAC,GAAG,EAAE;QACb,QAAQ,CAAC,cAAc,CAAC,EAAC,OAAO,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC;IAC/C,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;IAExB,IAAI,KAAK,EAAE,EAAE,KAAK,OAAO,EAAE;QACzB,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC,IAAI,CAAC,CAC7B;MAAA,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,KAAK,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,WAAW,CAAC,AAAD,EAAG,CAAC,EACtE;MAAA,CAAC,UAAU,CACT;QAAA,CAAC,cAAc,CAAC,AAAD,EACf;QAAA,CAAC,eAAe,CAAC,AAAD,EAChB;QAAA,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EACtC;QAAA,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EACzC;QAAA,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,UAAU,CAAC,EACzC;QAAA,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,WAAW,CAAC,EACvE;MAAA,EAAE,UAAU,CACd;IAAA,EAAE,MAAM,CAAC,CACV,CAAC;AACJ,CAAC;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Axelor Business Solutions
|
|
3
|
+
*
|
|
4
|
+
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
+
*
|
|
6
|
+
* This program is free software: you can redistribute it and/or modify
|
|
7
|
+
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
+
* as published by the Free Software Foundation.
|
|
9
|
+
*
|
|
10
|
+
* This program is distributed in the hope that it will be useful,
|
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
+
* GNU Affero General Public License for more details.
|
|
14
|
+
*
|
|
15
|
+
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
+
*/
|
|
18
|
+
import React, { useCallback, useMemo, useState, useEffect } from 'react';
|
|
19
|
+
import { StyleSheet, Dimensions, View } from 'react-native';
|
|
20
|
+
import { Screen, useThemeColor, HeaderContainer, ChipSelect, AutoCompleteSearch, ToggleSwitch, getCommonStyles, } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { PlanningView, useDispatch, useSelector, useTranslator, filterChip, } from '@axelor/aos-mobile-core';
|
|
22
|
+
import { fetchPlannedEvent } from '../../features/eventSlice';
|
|
23
|
+
import EventType from '../../types/event-type';
|
|
24
|
+
import { PlanningEventCard } from '../../components';
|
|
25
|
+
function EventPlanningScreen({ navigation }) {
|
|
26
|
+
const dispatch = useDispatch();
|
|
27
|
+
const Colors = useThemeColor();
|
|
28
|
+
const I18n = useTranslator();
|
|
29
|
+
const { eventList, loading } = useSelector(state => state.event);
|
|
30
|
+
const { userId } = useSelector(state => state.auth);
|
|
31
|
+
const [filteredList, setFilteredList] = useState(eventList);
|
|
32
|
+
const [filter, setFilter] = useState(null);
|
|
33
|
+
const [assigned, setAssigned] = useState(false);
|
|
34
|
+
const [selectedStatus, setSelectedStatus] = useState([]);
|
|
35
|
+
const [plannedEvent, setPlannedEvent] = useState(null);
|
|
36
|
+
const [dateSave, setDateSave] = useState(null);
|
|
37
|
+
const commonStyles = useMemo(() => getCommonStyles(Colors), [Colors]);
|
|
38
|
+
const listItem = useMemo(() => {
|
|
39
|
+
return EventType.getCalendarListItems(filteredList, Colors);
|
|
40
|
+
}, [Colors, filteredList]);
|
|
41
|
+
const fetchEventFilter = useCallback(searchValue => {
|
|
42
|
+
setFilter(searchValue === '' ? null : searchValue);
|
|
43
|
+
dispatch(fetchPlannedEvent({
|
|
44
|
+
date: dateSave,
|
|
45
|
+
searchValue: searchValue === '' ? null : searchValue,
|
|
46
|
+
}));
|
|
47
|
+
}, [dispatch, dateSave]);
|
|
48
|
+
const fetchItemsByMonth = useCallback(date => {
|
|
49
|
+
dateSave === null && setDateSave(date);
|
|
50
|
+
dispatch(fetchPlannedEvent({ date: date, searchValue: filter }));
|
|
51
|
+
}, [dispatch, dateSave, filter]);
|
|
52
|
+
const filterOnStatus = useCallback(list => {
|
|
53
|
+
return filterChip(list, selectedStatus, 'typeSelect');
|
|
54
|
+
}, [selectedStatus]);
|
|
55
|
+
const filterOnUserAssigned = useCallback(list => {
|
|
56
|
+
if (list == null || list === []) {
|
|
57
|
+
return list;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
if (assigned) {
|
|
61
|
+
return list?.filter(item => item?.user?.id === userId);
|
|
62
|
+
}
|
|
63
|
+
else {
|
|
64
|
+
return list;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}, [assigned, userId]);
|
|
68
|
+
const navigateToEvent = id => {
|
|
69
|
+
if (id != null) {
|
|
70
|
+
navigation.navigate('EventDetailsScreen', {
|
|
71
|
+
eventId: id,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
const rendBorderColor = borderColor => {
|
|
76
|
+
return {
|
|
77
|
+
borderLeftWidth: 7,
|
|
78
|
+
borderLeftColor: borderColor,
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
const renderDayEventDetails = ({ id, data: event }) => {
|
|
82
|
+
if (event == null) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return (<PlanningEventCard style={rendBorderColor(event.border)} onPress={() => navigateToEvent(event.id)} id={id} subject={event.subject} contactPartner={event.contactPartner} location={event.location}/>);
|
|
86
|
+
};
|
|
87
|
+
const renderDayEvent = ({ id, data: event }) => {
|
|
88
|
+
if (event == null) {
|
|
89
|
+
return null;
|
|
90
|
+
}
|
|
91
|
+
return (<PlanningEventCard style={rendBorderColor(event.border)} onPress={() => navigateToEvent(event.id)} id={id} subject={event.subject}/>);
|
|
92
|
+
};
|
|
93
|
+
useEffect(() => {
|
|
94
|
+
setFilteredList(filterOnUserAssigned(filterOnStatus(eventList)));
|
|
95
|
+
}, [filterOnUserAssigned, filterOnStatus, eventList]);
|
|
96
|
+
return (<Screen removeSpaceOnTop={true}>
|
|
97
|
+
<HeaderContainer expandableFilter={false} fixedItems={<View>
|
|
98
|
+
<ChipSelect mode="multi" marginHorizontal={3} width={Dimensions.get('window').width * 0.3} onChangeValue={chiplist => setSelectedStatus(chiplist)} selectionItems={[
|
|
99
|
+
{
|
|
100
|
+
title: I18n.t('Crm_Event_Category_Event'),
|
|
101
|
+
color: EventType.getCategoryColor(EventType.category.Event, Colors),
|
|
102
|
+
key: EventType.category.Event,
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
title: I18n.t('Crm_Event_Category_Call'),
|
|
106
|
+
color: EventType.getCategoryColor(EventType.category.Call, Colors),
|
|
107
|
+
key: EventType.category.Call,
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
title: I18n.t('Crm_Event_Category_Meeting'),
|
|
111
|
+
color: EventType.getCategoryColor(EventType.category.Meeting, Colors),
|
|
112
|
+
key: EventType.category.Meeting,
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
title: I18n.t('Crm_Event_Category_Task'),
|
|
116
|
+
color: EventType.getCategoryColor(EventType.category.Task, Colors),
|
|
117
|
+
key: EventType.category.Task,
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
title: I18n.t('Crm_Event_Category_Leave'),
|
|
121
|
+
color: EventType.getCategoryColor(EventType.category.Leave, Colors),
|
|
122
|
+
key: EventType.category.Leave,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: I18n.t('Crm_Event_Category_Note'),
|
|
126
|
+
color: EventType.getCategoryColor(EventType.category.Note, Colors),
|
|
127
|
+
key: EventType.category.Note,
|
|
128
|
+
},
|
|
129
|
+
]}/>
|
|
130
|
+
<AutoCompleteSearch objectList={eventList} value={plannedEvent} onChangeValue={setPlannedEvent} fetchData={fetchEventFilter} placeholder={I18n.t('Crm_Clients')} oneFilter={true} selectLastItem={false}/>
|
|
131
|
+
<ToggleSwitch styleContainer={[
|
|
132
|
+
commonStyles.filter,
|
|
133
|
+
commonStyles.filterSize,
|
|
134
|
+
styles.toggleSwitchContainer,
|
|
135
|
+
]} styleToogle={styles.toggle} leftTitle={I18n.t('Crm_All')} rightTitle={I18n.t('Crm_AssignedToMe')} onSwitch={() => setAssigned(!assigned)}/>
|
|
136
|
+
</View>}/>
|
|
137
|
+
<PlanningView itemList={listItem} renderItem={renderDayEventDetails} renderFullDayItem={renderDayEvent} fetchbyMonth={fetchItemsByMonth} loading={loading}/>
|
|
138
|
+
</Screen>);
|
|
139
|
+
}
|
|
140
|
+
const styles = StyleSheet.create({
|
|
141
|
+
toggleSwitchContainer: {
|
|
142
|
+
width: '90%',
|
|
143
|
+
marginLeft: '4%',
|
|
144
|
+
},
|
|
145
|
+
toggle: {
|
|
146
|
+
width: '54%',
|
|
147
|
+
height: 38,
|
|
148
|
+
borderRadius: 13,
|
|
149
|
+
},
|
|
150
|
+
});
|
|
151
|
+
export default EventPlanningScreen;
|
|
152
|
+
//# sourceMappingURL=EventPlanningScreen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventPlanningScreen.js","sourceRoot":"","sources":["../../../src/screens/event/EventPlanningScreen.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACvE,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22 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace EventPlanningScreen {
|
|
3
|
+
export const title: string;
|
|
4
|
+
export { EventPlanningScreen as component };
|
|
5
|
+
export namespace options {
|
|
6
|
+
const shadedHeader: boolean;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
namespace EventDetailsScreen {
|
|
10
|
+
const title_1: string;
|
|
11
|
+
export { title_1 as title };
|
|
12
|
+
export { EventDetailsScreen as component };
|
|
13
|
+
export namespace options_1 {
|
|
14
|
+
const shadedHeader_1: boolean;
|
|
15
|
+
export { shadedHeader_1 as shadedHeader };
|
|
16
|
+
}
|
|
17
|
+
export { options_1 as options };
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
export default _default;
|
|
21
|
+
import EventPlanningScreen_1 from "./EventPlanningScreen";
|
|
22
|
+
import EventDetailsScreen_1 from "./EventDetailsScreen";
|