@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,4 @@
|
|
|
1
|
+
export { default as ContactBottom } from "./ContactBottom/ContactBottom";
|
|
2
|
+
export { default as ContactDropdownCards } from "./ContactDropdownCards/ContactDropdownCards";
|
|
3
|
+
export { default as ContactHeader } from "./ContactHeader/ContactHeader";
|
|
4
|
+
export { default as ContactPartnerCard } from "./ContactPartnerCard/ContactPartnerCard";
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
export { default as ContactBottom } from './ContactBottom/ContactBottom';
|
|
19
|
+
export { default as ContactDropdownCards } from './ContactDropdownCards/ContactDropdownCards';
|
|
20
|
+
export { default as ContactHeader } from './ContactHeader/ContactHeader';
|
|
21
|
+
export { default as ContactPartnerCard } from './ContactPartnerCard/ContactPartnerCard';
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/organisms/Contact/index.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,oBAAoB,EAAC,MAAM,6CAA6C,CAAC;AAC5F,OAAO,EAAC,OAAO,IAAI,aAAa,EAAC,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAC,OAAO,IAAI,kBAAkB,EAAC,MAAM,yCAAyC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
interface DropdownContactViewProps {
|
|
2
|
+
address: string;
|
|
3
|
+
fixedPhone?: string;
|
|
4
|
+
mobilePhone?: string;
|
|
5
|
+
emailAddress: string;
|
|
6
|
+
webSite: string;
|
|
7
|
+
}
|
|
8
|
+
declare const DropdownContactView: ({ address, fixedPhone, mobilePhone, emailAddress, webSite, }: DropdownContactViewProps) => JSX.Element;
|
|
9
|
+
export default DropdownContactView;
|
|
@@ -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 from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { useTranslator, linkingProvider } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { ContactInfoCard } from '../../molecules';
|
|
22
|
+
import { Text } from '@axelor/aos-mobile-ui';
|
|
23
|
+
const DropdownContactView = ({ address, fixedPhone, mobilePhone, emailAddress, webSite, }) => {
|
|
24
|
+
const I18n = useTranslator();
|
|
25
|
+
if (!fixedPhone && !fixedPhone && !mobilePhone && !emailAddress && !webSite) {
|
|
26
|
+
return (<View>
|
|
27
|
+
<Text>{I18n.t('Crm_NoContactInformation')}</Text>
|
|
28
|
+
</View>);
|
|
29
|
+
}
|
|
30
|
+
return (<View>
|
|
31
|
+
<ContactInfoCard headerIconName={'map-marker-alt'} title={I18n.t('Crm_Adress')} data={address} rightIconName={'map-marked-alt'} border={fixedPhone != null ||
|
|
32
|
+
mobilePhone != null ||
|
|
33
|
+
emailAddress != null ||
|
|
34
|
+
webSite != null} styleBorder={styles.borderInfoCard} rightIconAction={() => linkingProvider.openMapApp(address)}/>
|
|
35
|
+
<ContactInfoCard headerIconName={'phone-alt'} title={I18n.t('Crm_Phone')} data={fixedPhone} rightIconName={'phone-alt'} border={mobilePhone != null || emailAddress != null || webSite != null} styleBorder={styles.borderInfoCard} rightIconAction={() => linkingProvider.openCallApp(fixedPhone)}/>
|
|
36
|
+
<ContactInfoCard headerIconName={'mobile-alt'} title={I18n.t('Crm_MobilePhone')} data={mobilePhone} rightIconName={'phone-alt'} border={emailAddress != null || webSite != null} styleBorder={styles.borderInfoCard} rightIconAction={() => linkingProvider.openCallApp(mobilePhone)}/>
|
|
37
|
+
<ContactInfoCard headerIconName={'envelope'} title={I18n.t('Crm_Email')} data={emailAddress} rightIconName={'send'} FontAwesome5RightIcon={false} border={webSite != null} styleBorder={styles.borderInfoCard} rightIconAction={() => linkingProvider.openMailApp(emailAddress)}/>
|
|
38
|
+
<ContactInfoCard headerIconName={'link'} title={I18n.t('Crm_WebSite')} data={webSite} rightIconName={'external-link-alt'} styleBorder={styles.borderInfoCard} rightIconAction={() => linkingProvider.openBrowser(webSite)}/>
|
|
39
|
+
</View>);
|
|
40
|
+
};
|
|
41
|
+
const styles = StyleSheet.create({
|
|
42
|
+
borderInfoCard: {
|
|
43
|
+
width: '112%',
|
|
44
|
+
left: '-5%',
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
export default DropdownContactView;
|
|
48
|
+
//# sourceMappingURL=DropdownContactView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownContactView.js","sourceRoot":"","sources":["../../../../src/components/organisms/DropdownContactView/DropdownContactView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAE,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAU3C,MAAM,mBAAmB,GAAG,CAAC,EAC3B,OAAO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AE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,KAAK,EAAE,MAAM;QACb,IAAI,EAAE,KAAK;KACZ;CACF,CAAC,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Contact = {
|
|
2
|
+
id: number;
|
|
3
|
+
simpleFullName: string;
|
|
4
|
+
fixedPhone: string;
|
|
5
|
+
'emailAddress.address': string;
|
|
6
|
+
};
|
|
7
|
+
interface DropdownEmployeeViewProps {
|
|
8
|
+
contactList?: Contact[];
|
|
9
|
+
navigation?: any;
|
|
10
|
+
}
|
|
11
|
+
declare const DropdownEmployeeView: ({ contactList, navigation, }: DropdownEmployeeViewProps) => JSX.Element | JSX.Element[];
|
|
12
|
+
export default DropdownEmployeeView;
|
|
@@ -0,0 +1,43 @@
|
|
|
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 from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { Text } from '@axelor/aos-mobile-ui';
|
|
22
|
+
import { LiteContactCard } from '../../molecules';
|
|
23
|
+
const DropdownEmployeeView = ({ contactList, navigation, }) => {
|
|
24
|
+
const I18n = useTranslator();
|
|
25
|
+
if (!Array.isArray(contactList) || contactList.length === 0) {
|
|
26
|
+
return (<View>
|
|
27
|
+
<Text>{I18n.t('Crm_NoContactAssociated')}</Text>
|
|
28
|
+
</View>);
|
|
29
|
+
}
|
|
30
|
+
return contactList.map((contact, index) => {
|
|
31
|
+
return (<LiteContactCard key={index} contactFullname={contact.simpleFullName} fixedPhoneNumber={contact.fixedPhone} email={contact['emailAddress.address']} style={styles.item} onPress={() => navigation.navigate('ContactDetailsScreen', {
|
|
32
|
+
idContact: contact.id,
|
|
33
|
+
})}/>);
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
const styles = StyleSheet.create({
|
|
37
|
+
item: {
|
|
38
|
+
marginHorizontal: 12,
|
|
39
|
+
marginVertical: 4,
|
|
40
|
+
},
|
|
41
|
+
});
|
|
42
|
+
export default DropdownEmployeeView;
|
|
43
|
+
//# sourceMappingURL=DropdownEmployeeView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownEmployeeView.js","sourceRoot":"","sources":["../../../../src/components/organisms/DropdownEmployeeView/DropdownEmployeeView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAC,eAAe,EAAC,MAAM,iBAAiB,CAAC;AAchD,MAAM,oBAAoB,GAAG,CAAC,EAC5B,WAAW,EACX,UAAU,GACgB,EAAE,EAAE;IAC9B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,WAAW,CAAC,MAAM,KAAK,CAAC,EAAE;QAC3D,OAAO,CACL,CAAC,IAAI,CACH;QAAA,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,EAAE,IAAI,CACjD;MAAA,EAAE,IAAI,CAAC,CACR,CAAC;KACH;IAED,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,KAAK,EAAE,EAAE;QACxC,OAAO,CACL,CAAC,eAAe,CACd,GAAG,CAAC,CAAC,KAAK,CAAC,CACX,eAAe,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CACxC,gBAAgB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CACrC,KAAK,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CACvC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnB,OAAO,CAAC,CAAC,GAAG,EAAE,CACZ,UAAU,CAAC,QAAQ,CAAC,sBAAsB,EAAE;gBAC1C,SAAS,EAAE,OAAO,CAAC,EAAE;aACtB,CAAC,CACH,EACD,CACH,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,CAAC;KAClB;CACF,CAAC,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
type Event = {
|
|
2
|
+
id: number;
|
|
3
|
+
startDateTime: string;
|
|
4
|
+
endDateTime: string;
|
|
5
|
+
statusSelect: number;
|
|
6
|
+
typeSelect: number;
|
|
7
|
+
subject: string;
|
|
8
|
+
};
|
|
9
|
+
interface DropdownEventViewProps {
|
|
10
|
+
eventList: Event[];
|
|
11
|
+
navigation: any;
|
|
12
|
+
}
|
|
13
|
+
declare const DropdownEventView: ({ eventList, navigation }: DropdownEventViewProps) => JSX.Element;
|
|
14
|
+
export default DropdownEventView;
|
|
@@ -0,0 +1,59 @@
|
|
|
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 } from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { EventCard } from '../../molecules';
|
|
22
|
+
import { Text } from '@axelor/aos-mobile-ui';
|
|
23
|
+
import { getLastEvent, getNextEvent } from '../../../utils/dateEvent';
|
|
24
|
+
const DropdownEventView = ({ eventList, navigation }) => {
|
|
25
|
+
const I18n = useTranslator();
|
|
26
|
+
const lastEvent = useMemo(() => {
|
|
27
|
+
return getLastEvent(eventList);
|
|
28
|
+
}, [eventList]);
|
|
29
|
+
const nextEvent = useMemo(() => {
|
|
30
|
+
return getNextEvent(eventList);
|
|
31
|
+
}, [eventList]);
|
|
32
|
+
if (lastEvent == null && nextEvent == null) {
|
|
33
|
+
return (<View>
|
|
34
|
+
<Text>{I18n.t('Crm_NoEventPlanned')}</Text>
|
|
35
|
+
</View>);
|
|
36
|
+
}
|
|
37
|
+
return (<View>
|
|
38
|
+
{lastEvent && (<View>
|
|
39
|
+
<Text>{I18n.t('Crm_LastEvent')}</Text>
|
|
40
|
+
<EventCard style={styles.eventCard} startDate={new Date(lastEvent?.startDateTime)} endDate={new Date(lastEvent?.endDateTime)} status={lastEvent?.statusSelect} category={lastEvent?.typeSelect} eventName={lastEvent?.subject} onPress={() => navigation.navigate('EventDetailsScreen', {
|
|
41
|
+
eventId: lastEvent.id,
|
|
42
|
+
})}/>
|
|
43
|
+
</View>)}
|
|
44
|
+
{nextEvent && (<View>
|
|
45
|
+
<Text>{I18n.t('Crm_NextEvent')}</Text>
|
|
46
|
+
<EventCard style={styles.eventCard} startDate={new Date(nextEvent?.startDateTime)} endDate={new Date(nextEvent?.endDateTime)} status={nextEvent?.statusSelect} category={nextEvent?.typeSelect} eventName={nextEvent?.subject} onPress={() => navigation.navigate('EventDetailsScreen', {
|
|
47
|
+
eventId: nextEvent.id,
|
|
48
|
+
})}/>
|
|
49
|
+
</View>)}
|
|
50
|
+
</View>);
|
|
51
|
+
};
|
|
52
|
+
const styles = StyleSheet.create({
|
|
53
|
+
eventCard: {
|
|
54
|
+
marginVertical: 7,
|
|
55
|
+
width: '100%',
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
export default DropdownEventView;
|
|
59
|
+
//# sourceMappingURL=DropdownEventView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownEventView.js","sourceRoot":"","sources":["../../../../src/components/organisms/DropdownEventView/DropdownEventView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,OAAO,EAAC,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,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|
+
category?: string;
|
|
5
|
+
industrySector?: string;
|
|
6
|
+
priceList?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const DropdownGeneralView: ({ assignedUser, language, category, industrySector, priceList, }: DropdownGeneralViewProps) => JSX.Element;
|
|
9
|
+
export default DropdownGeneralView;
|
|
@@ -0,0 +1,42 @@
|
|
|
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 from 'react';
|
|
19
|
+
import { View } from 'react-native';
|
|
20
|
+
import { useTranslator } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { LabelText, Text } from '@axelor/aos-mobile-ui';
|
|
22
|
+
const DropdownGeneralView = ({ assignedUser, language, category, industrySector, priceList, }) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
if (!assignedUser &&
|
|
25
|
+
!category &&
|
|
26
|
+
!industrySector &&
|
|
27
|
+
!priceList &&
|
|
28
|
+
!language) {
|
|
29
|
+
return (<View>
|
|
30
|
+
<Text>{I18n.t('Crm_NoGeneralInformation')}</Text>
|
|
31
|
+
</View>);
|
|
32
|
+
}
|
|
33
|
+
return (<View>
|
|
34
|
+
{assignedUser && (<LabelText title={I18n.t('Crm_AssignedTo')} iconName={'user-tie'} value={assignedUser}/>)}
|
|
35
|
+
{language && (<LabelText title={I18n.t('Crm_Language')} value={language}/>)}
|
|
36
|
+
{category && (<LabelText title={I18n.t('Crm_Category')} value={category}/>)}
|
|
37
|
+
{industrySector && (<LabelText title={I18n.t('Crm_Sector')} value={industrySector}/>)}
|
|
38
|
+
{priceList && (<LabelText title={I18n.t('Crm_PriceList')} value={priceList}/>)}
|
|
39
|
+
</View>);
|
|
40
|
+
};
|
|
41
|
+
export default DropdownGeneralView;
|
|
42
|
+
//# sourceMappingURL=DropdownGeneralView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DropdownGeneralView.js","sourceRoot":"","sources":["../../../../src/components/organisms/DropdownGeneralView/DropdownGeneralView.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,IAAI,EAAC,MAAM,cAAc,CAAC;AAClC,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAC,SAAS,EAAE,IAAI,EAAC,MAAM,uBAAuB,CAAC;AAUtD,MAAM,mBAAmB,GAAG,CAAC,EAC3B,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,cAAc,EACd,SAAS,GACgB,EAAE,EAAE;IAC7B,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAE7B,IACE,CAAC,YAAY;QACb,CAAC,QAAQ;QACT,CAAC,cAAc;QACf,CAAC,SAAS;QACV,CAAC,QAAQ,EACT;QACA,OAAO,CACL,CAAC,IAAI,CACH;QAAA,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,0BAA0B,CAAC,CAAC,EAAE,IAAI,CAClD;MAAA,EAAE,IAAI,CAAC,CACR,CAAC;KACH;IAED,OAAO,CACL,CAAC,IAAI,CACH;MAAA,CAAC,YAAY,IAAI,CACf,CAAC,SAAS,CACR,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAChC,QAAQ,CAAC,CAAC,UAAU,CAAC,CACrB,KAAK,CAAC,CAAC,YAAY,CAAC,EACpB,CACH,CACD;MAAA,CAAC,QAAQ,IAAI,CACX,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAG,CAC9D,CACD;MAAA,CAAC,QAAQ,IAAI,CACX,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,EAAG,CAC9D,CACD;MAAA,CAAC,cAAc,IAAI,CACjB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,EAAG,CAClE,CACD;MAAA,CAAC,SAAS,IAAI,CACZ,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,EAAG,CAChE,CACH;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 from 'react';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
20
|
+
import { CircleButton } from '@axelor/aos-mobile-ui';
|
|
21
|
+
const EditButton = ({ onPress }) => {
|
|
22
|
+
return (<CircleButton style={styles.floatingButton} iconName="pen" onPress={onPress}/>);
|
|
23
|
+
};
|
|
24
|
+
const styles = StyleSheet.create({
|
|
25
|
+
floatingButton: {
|
|
26
|
+
position: 'absolute',
|
|
27
|
+
bottom: 25,
|
|
28
|
+
right: 25,
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
export default EditButton;
|
|
32
|
+
//# sourceMappingURL=EditButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditButton.js","sourceRoot":"","sources":["../../../../src/components/organisms/EditButton/EditButton.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,YAAY,EAAC,MAAM,uBAAuB,CAAC;AAEnD,MAAM,UAAU,GAAG,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE;IAC/B,OAAO,CACL,CAAC,YAAY,CACX,KAAK,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAC7B,QAAQ,CAAC,KAAK,CACd,OAAO,CAAC,CAAC,OAAO,CAAC,EACjB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,cAAc,EAAE;QACd,QAAQ,EAAE,UAAU;QACpB,MAAM,EAAE,EAAE;QACV,KAAK,EAAE,EAAE;KACV;CACF,CAAC,CAAC;AAEH,eAAe,UAAU,CAAC"}
|
|
@@ -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, { useCallback, useEffect } from 'react';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
20
|
+
import { useDispatch, useSelector } from '@axelor/aos-mobile-core';
|
|
21
|
+
import { LiteContactCard } from '../../../molecules';
|
|
22
|
+
import { getContact } from '../../../../features/contactSlice';
|
|
23
|
+
const EventContactCard = ({ navigation }) => {
|
|
24
|
+
const dispatch = useDispatch();
|
|
25
|
+
const { event } = useSelector(state => state.event);
|
|
26
|
+
const { contact } = useSelector(state => state.contact);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
if (event?.contactPartner) {
|
|
29
|
+
dispatch(getContact({ contactId: event?.contactPartner.id }));
|
|
30
|
+
}
|
|
31
|
+
}, [dispatch, event?.contactPartner]);
|
|
32
|
+
const handleCardPress = useCallback(() => {
|
|
33
|
+
navigation.navigate('ContactDetailsScreen', {
|
|
34
|
+
idContact: contact.id,
|
|
35
|
+
});
|
|
36
|
+
}, [contact.id, navigation]);
|
|
37
|
+
if (!event?.contactPartner) {
|
|
38
|
+
return null;
|
|
39
|
+
}
|
|
40
|
+
return (<LiteContactCard style={styles.item} contactFullname={contact.simpleFullName} fixedPhoneNumber={contact.fixedPhone} email={contact['emailAddress.address']} onPress={handleCardPress}/>);
|
|
41
|
+
};
|
|
42
|
+
const styles = StyleSheet.create({
|
|
43
|
+
item: {
|
|
44
|
+
marginHorizontal: 12,
|
|
45
|
+
marginVertical: 4,
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
export default EventContactCard;
|
|
49
|
+
//# sourceMappingURL=EventContactCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventContactCard.js","sourceRoot":"","sources":["../../../../../src/components/organisms/Event/EventContactCard/EventContactCard.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAE,SAAS,EAAC,MAAM,OAAO,CAAC;AACpD,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;AACxC,OAAO,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAC,UAAU,EAAC,MAAM,mCAAmC,CAAC;AAE7D,MAAM,gBAAgB,GAAG,CAAC,EAAC,UAAU,EAAC,EAAE,EAAE;IACxC,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAE/B,MAAM,EAAC,KAAK,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAClD,MAAM,EAAC,OAAO,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IAEtD,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,KAAK,EAAE,cAAc,EAAE;YACzB,QAAQ,CAAC,UAAU,CAAC,EAAC,SAAS,EAAE,KAAK,EAAE,cAAc,CAAC,EAAE,EAAC,CAAC,CAAC,CAAC;SAC7D;IACH,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC;IAEtC,MAAM,eAAe,GAAG,WAAW,CAAC,GAAG,EAAE;QACvC,UAAU,CAAC,QAAQ,CAAC,sBAAsB,EAAE;YAC1C,SAAS,EAAE,OAAO,CAAC,EAAE;SACtB,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC;IAE7B,IAAI,CAAC,KAAK,EAAE,cAAc,EAAE;QAC1B,OAAO,IAAI,CAAC;KACb;IAED,OAAO,CACL,CAAC,eAAe,CACd,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CACnB,eAAe,CAAC,CAAC,OAAO,CAAC,cAAc,CAAC,CACxC,gBAAgB,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CACrC,KAAK,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC,CACvC,OAAO,CAAC,CAAC,eAAe,CAAC,EACzB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,IAAI,EAAE;QACJ,gBAAgB,EAAE,EAAE;QACpB,cAAc,EAAE,CAAC;KAClB;CACF,CAAC,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 } from 'react';
|
|
19
|
+
import { StyleSheet } from 'react-native';
|
|
20
|
+
import { FromTo, TitledValue } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useSelector, useTranslator, formatDateTime, } from '@axelor/aos-mobile-core';
|
|
22
|
+
const EventDatesCard = () => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const { event } = useSelector((state) => state.event);
|
|
25
|
+
const _formatDate = useCallback(date => formatDateTime(date, I18n.t('Base_DateTimeFormat')), [I18n]);
|
|
26
|
+
if (event.startDateTime || event.endDateTime) {
|
|
27
|
+
return (<FromTo style={styles.detailsContainer} fromComponent={<TitledValue title={I18n.t('Crm_Start')} value={_formatDate(event.startDateTime)}/>} toComponent={<TitledValue title={I18n.t('Crm_End')} value={_formatDate(event.endDateTime)}/>}/>);
|
|
28
|
+
}
|
|
29
|
+
return null;
|
|
30
|
+
};
|
|
31
|
+
const styles = StyleSheet.create({
|
|
32
|
+
detailsContainer: {
|
|
33
|
+
marginTop: 10,
|
|
34
|
+
marginBottom: 5,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
export default EventDatesCard;
|
|
38
|
+
//# sourceMappingURL=EventDatesCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventDatesCard.js","sourceRoot":"","sources":["../../../../../src/components/organisms/Event/EventDatesCard/EventDatesCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,EAAE,EAAC,WAAW,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,UAAU,EAAC,MAAM,cAAc,CAAC;A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@@
|
|
|
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 from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { Text, Badge, useThemeColor } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
+
import EventType from '../../../../types/event-type';
|
|
23
|
+
const EventHeader = ({}) => {
|
|
24
|
+
const I18n = useTranslator();
|
|
25
|
+
const Colors = useThemeColor();
|
|
26
|
+
const { event } = useSelector(state => state.event);
|
|
27
|
+
return (<View style={styles.headerContainer}>
|
|
28
|
+
<View style={styles.halfContainer}>
|
|
29
|
+
<Text style={styles.bold} numberOfLines={2}>
|
|
30
|
+
{event.subject}
|
|
31
|
+
</Text>
|
|
32
|
+
</View>
|
|
33
|
+
<View style={styles.halfContainer}>
|
|
34
|
+
{event.statusSelect && (<Badge title={EventType.getStatus(event.statusSelect, I18n)}/>)}
|
|
35
|
+
{event.typeSelect && (<Badge title={EventType.getCategory(event.typeSelect, I18n)} color={Colors.plannedColor}/>)}
|
|
36
|
+
</View>
|
|
37
|
+
</View>);
|
|
38
|
+
};
|
|
39
|
+
const styles = StyleSheet.create({
|
|
40
|
+
headerContainer: {
|
|
41
|
+
flexDirection: 'row',
|
|
42
|
+
justifyContent: 'space-evenly',
|
|
43
|
+
alignItems: 'center',
|
|
44
|
+
padding: 10,
|
|
45
|
+
},
|
|
46
|
+
halfContainer: {
|
|
47
|
+
flexDirection: 'row',
|
|
48
|
+
width: '50%',
|
|
49
|
+
},
|
|
50
|
+
bold: {
|
|
51
|
+
fontWeight: 'bold',
|
|
52
|
+
},
|
|
53
|
+
});
|
|
54
|
+
export default EventHeader;
|
|
55
|
+
//# sourceMappingURL=EventHeader.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventHeader.js","sourceRoot":"","sources":["../../../../../src/components/organisms/Event/EventHeader/EventHeader.js"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,UAAU,EAAE,IAAI,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,IAAI,EAAE,KAAK,EAAE,aAAa,EAAC,MAAM,uBAAuB,CAAC;AACjE,OAAO,EAAC,WAAW,EAAE,aAAa,EAAC,MAAM,yBAAyB,CAAC;AACnE,OAAO,SAAS,MAAM,8BAA8B,CAAC;AAErD,MAAM,WAAW,GAAG,CAAC,EAAE,EAAE,EAAE;IACzB,MAAM,IAAI,GAAG,aAAa,EAAE,CAAC;IAC7B,MAAM,MAAM,GAAG,aAAa,EAAE,CAAC;IAC/B,MAAM,EAAC,KAAK,EAAC,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAElD,OAAO,CACL,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,eAAe,CAAC,CAClC;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAChC;QAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CACzC;UAAA,CAAC,KAAK,CAAC,OAAO,CAChB;QAAA,EAAE,IAAI,CACR;MAAA,EAAE,IAAI,CACN;MAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAChC;QAAA,CAAC,KAAK,CAAC,YAAY,IAAI,CACrB,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,EAAG,CAChE,CACD;QAAA,CAAC,KAAK,CAAC,UAAU,IAAI,CACnB,CAAC,KAAK,CACJ,KAAK,CAAC,CAAC,SAAS,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,EAAE,IAAI,CAAC,CAAC,CACrD,KAAK,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,EAC3B,CACH,CACH;MAAA,EAAE,IAAI,CACR;IAAA,EAAE,IAAI,CAAC,CACR,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC;IAC/B,eAAe,EAAE;QACf,aAAa,EAAE,KAAK;QACpB,cAAc,EAAE,cAAc;QAC9B,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,EAAE;KACZ;IACD,aAAa,EAAE;QACb,aAAa,EAAE,KAAK;QACpB,KAAK,EAAE,KAAK;KACb;IACD,IAAI,EAAE;QACJ,UAAU,EAAE,MAAM;KACnB;CACF,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC"}
|
|
@@ -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 React from 'react';
|
|
19
|
+
import { StyleSheet, View } from 'react-native';
|
|
20
|
+
import { LabelText } from '@axelor/aos-mobile-ui';
|
|
21
|
+
import { useSelector, useTranslator } from '@axelor/aos-mobile-core';
|
|
22
|
+
const EventLabelsCard = ({}) => {
|
|
23
|
+
const I18n = useTranslator();
|
|
24
|
+
const { event } = useSelector((state) => state.event);
|
|
25
|
+
return (<View style={styles.contentContainer}>
|
|
26
|
+
{event.location && (<LabelText style={styles.margin} iconName="map-pin" title={event.location}/>)}
|
|
27
|
+
{event.user?.fullName && (<LabelText title={I18n.t('Crm_AssignedTo')} value={event.user?.fullName}/>)}
|
|
28
|
+
{event.organizer && (<LabelText title={I18n.t('Crm_Organisator')} value={event.organizer?.name?.split(' [')[0]}/>)}
|
|
29
|
+
</View>);
|
|
30
|
+
};
|
|
31
|
+
const styles = StyleSheet.create({
|
|
32
|
+
contentContainer: {
|
|
33
|
+
padding: 10,
|
|
34
|
+
marginHorizontal: 10,
|
|
35
|
+
},
|
|
36
|
+
margin: {
|
|
37
|
+
marginVertical: 5,
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
export default EventLabelsCard;
|
|
41
|
+
//# sourceMappingURL=EventLabelsCard.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventLabelsCard.js","sourceRoot":"","sources":["../../../../../src/components/organisms/Event/EventLabelsCard/EventLabelsCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;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