datastake-daf 0.6.765 → 0.6.767
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.js +482 -245
- package/dist/layouts/index.js +0 -3
- package/dist/pages/index.js +299 -241
- package/dist/services/index.js +18 -0
- package/dist/utils/index.js +328 -5
- package/package.json +4 -2
- package/src/@daf/core/components/Charts/BarChart/index.jsx +4 -0
- package/src/@daf/core/components/Dashboard/Map/ChainIcon/Markers/StakeholderMarker.js +1 -1
- package/src/@daf/core/components/Dashboard/Map/ChainIcon/index.js +1 -9
- package/src/@daf/core/components/Dashboard/Map/StakeholderIcon/index.js +3 -0
- package/src/@daf/core/components/Dashboard/Map/hook.js +31 -1
- package/src/@daf/core/components/Graphs/StakeholderMappings/index.jsx +0 -2
- package/src/@daf/core/components/Graphs/TradeRelationship/index.jsx +49 -11
- package/src/@daf/core/components/Graphs/components/BaseGraph.jsx +10 -7
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/KeyIndicatorsWidget/config.js +2 -2
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/KeyIndicatorsWidget/index.jsx +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/UserActivity/helper.js +4 -1
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/UserActivity/index.jsx +5 -0
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/UserGrowth/index.jsx +1 -0
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/components/UserStatistics/index.jsx +34 -26
- package/src/@daf/core/components/Screens/Admin/AdminDashboard/index.jsx +56 -52
- package/src/@daf/core/components/Screens/Admin/AdminScreens/Dashboard.jsx +52 -67
- package/src/@daf/core/components/Screens/Admin/AdminScreens/Location.jsx +96 -0
- package/src/@daf/core/components/Screens/Admin/AdminScreens/Subjects.jsx +96 -0
- package/src/@daf/core/components/Screens/Admin/AdminScreens/index.js +2 -1
- package/src/@daf/core/components/Screens/Admin/adminRoutes.js +116 -89
- package/src/@daf/core/components/Screens/TableScreen/TableWithTabsAndCreate/create.jsx +106 -0
- package/src/@daf/core/components/Screens/TableScreen/TableWithTabsAndCreate/index.jsx +115 -0
- package/src/@daf/core/components/Table/MoreTags/index.jsx +17 -5
- package/src/@daf/hooks/useMapHelper.js +5 -0
- package/src/@daf/layouts/AuthLayout/components/Navbar/index.jsx +0 -1
- package/src/@daf/pages/Dashboards/SupplyChain/components/ChartsContainer/components/Identification/hook.js +10 -10
- package/src/@daf/pages/Dashboards/SupplyChain/components/SupplyChainMap/index.js +11 -5
- package/src/@daf/pages/Dashboards/UserDashboard/components/ContributionsGraph/helper.js +1 -14
- package/src/@daf/pages/Dashboards/UserDashboard/components/ContributionsGraph/hook.js +12 -5
- package/src/@daf/pages/Dashboards/UserDashboard/components/MineSites/index.jsx +1 -1
- package/src/@daf/pages/Dashboards/UserDashboard/components/Triangulation/hook.js +1 -1
- package/src/@daf/pages/Data/Channels/columns.js +175 -0
- package/src/@daf/pages/Data/Channels/config.js +0 -0
- package/src/@daf/pages/Data/Channels/create.jsx +0 -0
- package/src/@daf/pages/Data/Channels/index.jsx +0 -0
- package/src/@daf/pages/Events/Activities/columns.js +1 -4
- package/src/@daf/pages/Events/helper.js +2 -2
- package/src/@daf/pages/Events/index.jsx +1 -1
- package/src/@daf/pages/Locations/MineSite/columns.js +6 -4
- package/src/@daf/pages/Stakeholders/Operators/columns.js +4 -2
- package/src/@daf/pages/Summary/Activities/PlantingCycle/index.jsx +1 -0
- package/src/@daf/pages/Summary/Minesite/components/StakeholderMapping/config.js +2 -2
- package/src/@daf/pages/Summary/Minesite/components/StakeholderMapping/helper.js +7 -7
- package/src/@daf/pages/Summary/Minesite/components/StakeholderMapping/index.js +3 -2
- package/src/@daf/pages/Summary/Minesite/index.jsx +3 -1
- package/src/@daf/pages/Summary/Operator/components/Governance/index.js +0 -1
- package/src/@daf/pages/Summary/Operator/components/KeyInformation/config.js +33 -21
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/helper.js +13 -13
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/hook.js +8 -8
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/index.js +10 -3
- package/src/@daf/pages/Summary/Operator/index.jsx +3 -0
- package/src/@daf/pages/Summary/components/InformationAvailability/index.js +4 -3
- package/src/@daf/services/AdminService.js +14 -0
- package/src/constants/locales/en/translation.js +109 -2
- package/src/constants/locales/fr/translation.js +109 -1
- package/src/constants/locales/sp/translation.js +104 -1
- package/src/index.js +2 -0
- package/dist/style/datastake/mapbox-gl.css +0 -330
package/dist/services/index.js
CHANGED
|
@@ -760,6 +760,24 @@ class AdminService extends BaseService {
|
|
|
760
760
|
url: `/accounts/cancelInvitation/${token}`
|
|
761
761
|
});
|
|
762
762
|
}
|
|
763
|
+
getSubjects({
|
|
764
|
+
subject,
|
|
765
|
+
params
|
|
766
|
+
}) {
|
|
767
|
+
return this.apiGet({
|
|
768
|
+
url: `${subject}`,
|
|
769
|
+
params
|
|
770
|
+
});
|
|
771
|
+
}
|
|
772
|
+
mergeSubjects({
|
|
773
|
+
subject,
|
|
774
|
+
...data
|
|
775
|
+
}) {
|
|
776
|
+
return this.apiPost({
|
|
777
|
+
url: `/merge/${subject}`,
|
|
778
|
+
data
|
|
779
|
+
});
|
|
780
|
+
}
|
|
763
781
|
}
|
|
764
782
|
var AdminService$1 = createLazyService(AdminService);
|
|
765
783
|
|
package/dist/utils/index.js
CHANGED
|
@@ -7085,7 +7085,12 @@ const defaultMapConfig = {
|
|
|
7085
7085
|
maxZoom: 18,
|
|
7086
7086
|
preferCanvas: true,
|
|
7087
7087
|
zoomControl: false,
|
|
7088
|
-
maxBounds: maxBounds
|
|
7088
|
+
maxBounds: maxBounds,
|
|
7089
|
+
zoomSnap: 0.5,
|
|
7090
|
+
zoomDelta: 0.5,
|
|
7091
|
+
wheelPxPerZoomLevel: 150,
|
|
7092
|
+
zoomAnimation: true,
|
|
7093
|
+
zoomAnimationThreshold: 10
|
|
7089
7094
|
};
|
|
7090
7095
|
|
|
7091
7096
|
styled__default["default"].div`
|
|
@@ -7724,15 +7729,122 @@ function getRedirectPath(user, fallback = '', app, isDatastake) {
|
|
|
7724
7729
|
}
|
|
7725
7730
|
|
|
7726
7731
|
const en = {
|
|
7732
|
+
"accounts": "Accounts",
|
|
7733
|
+
"users": "Users",
|
|
7734
|
+
"subjects": "Subjects",
|
|
7735
|
+
"active-users": "Active Users",
|
|
7736
|
+
"total-data-points": "Total Data Points",
|
|
7737
|
+
"Identified Customers": "Identified Customers",
|
|
7738
|
+
"Identified Suppliers": "Identified Suppliers",
|
|
7739
|
+
"Associated Mine Sites": "Associated Mine Sites",
|
|
7740
|
+
"Supply Chain Position": "Supply Chain Position",
|
|
7741
|
+
"Governance": "Governance",
|
|
7742
|
+
"Holding": "Holding",
|
|
7743
|
+
"Operator Review": "Operator Review",
|
|
7744
|
+
"Stakeholder Mapping": "Stakeholder Mapping",
|
|
7745
|
+
"sources-reporting": "Sources Reporting",
|
|
7746
|
+
"link-details": "Link details",
|
|
7747
|
+
"Mine Site Details": "Mine Site Details",
|
|
7748
|
+
"Number of Workers on Site": "Number of Workers on Site",
|
|
7749
|
+
"Extraction Methods": "Extraction Methods",
|
|
7750
|
+
"Find Data": "Find Data",
|
|
7751
|
+
"Mine Review": "Mine Review",
|
|
7752
|
+
"Completion": "Completion",
|
|
7753
|
+
"Information Completeness": "Information Completeness",
|
|
7754
|
+
"Consolidated": "Consolidated",
|
|
7755
|
+
"Datapoints": "Datapoints",
|
|
7756
|
+
"Own Data": "Own Data",
|
|
7757
|
+
"Create Worker": "Create Worker",
|
|
7758
|
+
"Workers": "Workers",
|
|
7759
|
+
"Census Update": "Census Update",
|
|
7760
|
+
"Create Operator": "Create Operator",
|
|
7761
|
+
"Edit Settings": "Edit Settings",
|
|
7762
|
+
"Create Partner": "Create Partner",
|
|
7763
|
+
"Only authorised users can create partnerships.": "Only authorised users can create partnerships.",
|
|
7764
|
+
"Partners are organisations sharing their information with you, or receiving your information.": "Partners are organisations sharing their information with you, or receiving your information.",
|
|
7765
|
+
"List": "List",
|
|
7766
|
+
"Partner suspended successfully": "Partner suspended successfully",
|
|
7767
|
+
"Invitation type": "Invitation type",
|
|
7768
|
+
"Person name": "Person name",
|
|
7769
|
+
"Source: This partner will share information with you.": "Source: This partner will share information with you.",
|
|
7770
|
+
"Client: You will share information with this partner.": "Client: You will share information with this partner.",
|
|
7771
|
+
"Exchange: You will both share information with each other.": "Exchange: You will both share information with each other.",
|
|
7772
|
+
"Type of partnership": "Type of partnership",
|
|
7773
|
+
"Type of partner": "Type of partner",
|
|
7774
|
+
"Re-activate Partnership": "Re-activate Partnership",
|
|
7775
|
+
"Activate Partner": "Activate Partner",
|
|
7776
|
+
"Resend Invitation": "Resend Invitation",
|
|
7777
|
+
"Resend Invite": "Resend Invite",
|
|
7778
|
+
"Copy Invitation Link": "Copy Invitation Link",
|
|
7779
|
+
"Are you sure you want to suspend this partner?": "Are you sure you want to suspend this partner?",
|
|
7780
|
+
"Suspend Partner": "Suspend Partner",
|
|
7781
|
+
"Are you sure you want to block this user?": "Are you sure you want to block this user?",
|
|
7782
|
+
"Block User": "Block User",
|
|
7783
|
+
"Suspended": "Suspended",
|
|
7784
|
+
"Entity Type": "Entity Type",
|
|
7785
|
+
"Source: This partner shares information with your organisation.": "Source: This partner shares information with your organisation.",
|
|
7786
|
+
"Client: This partner receives information from your organisation.": "Client: This partner receives information from your organisation.",
|
|
7787
|
+
"Exchange: You share information with each other.": "Exchange: You share information with each other.",
|
|
7788
|
+
"Create Production Site": "Create Production Site",
|
|
7789
|
+
"production-sites": "Production Sites",
|
|
7790
|
+
"Summary": "Summary",
|
|
7791
|
+
"Create Locations": "Create Locations",
|
|
7792
|
+
"Create Incidents": "Create Incidents",
|
|
7793
|
+
"Create Activity": "Create Activity",
|
|
7794
|
+
"Activities": "Activities",
|
|
7795
|
+
"Create Events": "Create Events",
|
|
7796
|
+
"Create Document": "Create Document",
|
|
7797
|
+
"Documents": "Documents",
|
|
7798
|
+
"Triangluation": "Triangluation",
|
|
7799
|
+
"Monitoring Map": "Monitoring Map",
|
|
7800
|
+
"Major Incidents": "Major Incidents",
|
|
7801
|
+
"Minor Incidents": "Minor Incidents",
|
|
7802
|
+
"Moderate Incidents": "Moderate Incidents",
|
|
7803
|
+
"Mine Site": "Mine Site",
|
|
7804
|
+
"Location Type": "Location Type",
|
|
7805
|
+
"Data Points": "Data Points",
|
|
7806
|
+
"Information Subjects": "Information Subjects",
|
|
7807
|
+
"Data Compilation": "Data Compilation",
|
|
7808
|
+
"Data Chain of Custody": "Data Chain of Custody",
|
|
7809
|
+
"Contributions": "Contributions",
|
|
7810
|
+
"Others": "Others",
|
|
7811
|
+
"Locations Data": "Locations Data",
|
|
7812
|
+
"Stakeholders Data": "Stakeholders Data",
|
|
7813
|
+
"Events Data": "Events Data",
|
|
7814
|
+
"Accumulation": "Accumulation",
|
|
7815
|
+
"Create Mine Site": "Create Mine Site",
|
|
7816
|
+
"Supply Chain Map": "Supply Chain Map",
|
|
7817
|
+
"Participants": "Participants",
|
|
7818
|
+
"Trade Connections": "Trade Connections",
|
|
7819
|
+
"Key Information": "Key Information",
|
|
7820
|
+
"Weekly": "Weekly",
|
|
7821
|
+
"Monthly": "Monthly",
|
|
7822
|
+
"Daily": "Daily",
|
|
7823
|
+
"Workforce": "Workforce",
|
|
7824
|
+
"Trade Actors": "Trade Actors",
|
|
7825
|
+
"Mining Sites": "Mining Sites",
|
|
7826
|
+
"Primary Data Collection": "Primary Data Collection",
|
|
7827
|
+
"Implementation Partner": "Implementation Partner",
|
|
7828
|
+
"Origin": "Origin",
|
|
7829
|
+
"Activity Participants": "Activity Participants",
|
|
7830
|
+
"Legal Form": "Legal Form",
|
|
7831
|
+
"Hectares Planted": "Hectares Planted",
|
|
7832
|
+
"Sub Category": "Sub Category",
|
|
7833
|
+
"Licensing": "Licensing",
|
|
7834
|
+
"Email address": "Email address",
|
|
7835
|
+
"Partner Type": "Partner Type",
|
|
7836
|
+
"Product": "Product",
|
|
7837
|
+
"Filter by": "Filter by",
|
|
7838
|
+
"Key Stakeholder": "Key Stakeholder",
|
|
7839
|
+
"Mineral Supply Chain Transparency": "Mineral Supply Chain Transparency",
|
|
7727
7840
|
"no-board-members": "No board members identified",
|
|
7728
7841
|
"no-management": "No management identified",
|
|
7729
7842
|
"no-beneficiaries": "No beneficiaries identified",
|
|
7730
7843
|
"no-stakeholders": "No stakeholders identified",
|
|
7731
7844
|
"no-operators": "No operators identified",
|
|
7732
7845
|
"no-traders": "No traders identified",
|
|
7733
|
-
"no-
|
|
7846
|
+
"no-governance": "No governance identified",
|
|
7734
7847
|
"no-other": "No other identified",
|
|
7735
|
-
"No planning required": "No planning required",
|
|
7736
7848
|
"No evaluation required": "No evaluation required",
|
|
7737
7849
|
"No improvement required": "No improvement required",
|
|
7738
7850
|
"Currently unavailable": "Currently unavailable",
|
|
@@ -8935,13 +9047,121 @@ const en = {
|
|
|
8935
9047
|
};
|
|
8936
9048
|
|
|
8937
9049
|
const fr = {
|
|
9050
|
+
"accounts": "Comptes",
|
|
9051
|
+
"users": "Utilisateurs",
|
|
9052
|
+
"subjects": "Sujets",
|
|
9053
|
+
"active-users": "Utilisateurs Actifs",
|
|
9054
|
+
"total-data-points": "Total Points de Données",
|
|
9055
|
+
"Identified Customers": "Clients identifiés",
|
|
9056
|
+
"Identified Suppliers": "Fournisseurs identifiés",
|
|
9057
|
+
"Associated Mine Sites": "Sites miniers associés",
|
|
9058
|
+
"Supply Chain Position": "Position dans la chaîne d'approvisionnement",
|
|
9059
|
+
"Governance": "Gouvernance",
|
|
9060
|
+
"Holding": "Holding",
|
|
9061
|
+
"Operator Review": "Évaluation de l'opérateur",
|
|
9062
|
+
"Stakeholder Mapping": "Cartographie des parties prenantes",
|
|
9063
|
+
"sources-reporting": "Sources de rapport",
|
|
9064
|
+
"link-details": "Détails du lien",
|
|
9065
|
+
"Mine Site Details": "Détails du site minier",
|
|
9066
|
+
"Number of Workers on Site": "Nombre de travailleurs sur le site",
|
|
9067
|
+
"Extraction Methods": "Méthodes d'extraction",
|
|
9068
|
+
"Find Data": "Rechercher des données",
|
|
9069
|
+
"Mine Review": "Évaluation de la mine",
|
|
9070
|
+
"Completion": "Achèvement",
|
|
9071
|
+
"Information Completeness": "Complétude de l'information",
|
|
9072
|
+
"Consolidated": "Consolidé",
|
|
9073
|
+
"Datapoints": "Points de données",
|
|
9074
|
+
"Own Data": "Données propres",
|
|
9075
|
+
"Create Worker": "Créer un travailleur",
|
|
9076
|
+
"Workers": "Travailleurs",
|
|
9077
|
+
"Census Update": "Mise à jour du recensement",
|
|
9078
|
+
"Create Operator": "Créer un opérateur",
|
|
9079
|
+
"Edit Settings": "Modifier les paramètres",
|
|
9080
|
+
"Create Partner": "Créer un partenaire",
|
|
9081
|
+
"Only authorised users can create partnerships.": "Seuls les utilisateurs autorisés peuvent créer des partenariats.",
|
|
9082
|
+
"Partners are organisations sharing their information with you, or receiving your information.": "Les partenaires sont des organisations qui partagent leurs informations avec vous ou qui reçoivent vos informations.",
|
|
9083
|
+
"List": "Liste",
|
|
9084
|
+
"Partner suspended successfully": "Partenaire suspendu avec succès",
|
|
9085
|
+
"Invitation type": "Type d'invitation",
|
|
9086
|
+
"Person name": "Nom de la personne",
|
|
9087
|
+
"Source: This partner will share information with you.": "Source : Ce partenaire partagera des informations avec vous.",
|
|
9088
|
+
"Client: You will share information with this partner.": "Client : Vous partagerez des informations avec ce partenaire.",
|
|
9089
|
+
"Exchange: You will both share information with each other.": "Échange : Vous partagerez tous deux des informations l'un avec l'autre.",
|
|
9090
|
+
"Type of partnership": "Type de partenariat",
|
|
9091
|
+
"Type of partner": "Type de partenaire",
|
|
9092
|
+
"Re-activate Partnership": "Réactiver le partenariat",
|
|
9093
|
+
"Activate Partner": "Activer le partenaire",
|
|
9094
|
+
"Resend Invitation": "Renvoyer l'invitation",
|
|
9095
|
+
"Resend Invite": "Renvoyer l'invitation",
|
|
9096
|
+
"Copy Invitation Link": "Copier le lien d'invitation",
|
|
9097
|
+
"Are you sure you want to suspend this partner?": "Êtes-vous sûr de vouloir suspendre ce partenaire ?",
|
|
9098
|
+
"Suspend Partner": "Suspendre le partenaire",
|
|
9099
|
+
"Are you sure you want to block this user?": "Êtes-vous sûr de vouloir bloquer cet utilisateur ?",
|
|
9100
|
+
"Block User": "Bloquer l'utilisateur",
|
|
9101
|
+
"Suspended": "Suspendu",
|
|
9102
|
+
"Entity Type": "Type d'entité",
|
|
9103
|
+
"Source: This partner shares information with your organisation.": "Source : Ce partenaire partage des informations avec votre organisation.",
|
|
9104
|
+
"Client: This partner receives information from your organisation.": "Client : Ce partenaire reçoit des informations de votre organisation.",
|
|
9105
|
+
"Exchange: You share information with each other.": "Échange : Vous partagez des informations l'un avec l'autre.",
|
|
9106
|
+
"Create Production Site": "Créer un site de production",
|
|
9107
|
+
"production-sites": "Sites de production",
|
|
9108
|
+
"Summary": "Résumé",
|
|
9109
|
+
"Create Locations": "Créer des emplacements",
|
|
9110
|
+
"Create Incidents": "Créer des incidents",
|
|
9111
|
+
"Create Activity": "Créer une activité",
|
|
9112
|
+
"Activities": "Activités",
|
|
9113
|
+
"Create Events": "Créer des événements",
|
|
9114
|
+
"Create Document": "Créer un document",
|
|
9115
|
+
"Documents": "Documents",
|
|
9116
|
+
"Triangluation": "Triangulation",
|
|
9117
|
+
"Monitoring Map": "Carte de surveillance",
|
|
9118
|
+
"Major Incidents": "Incidents majeurs",
|
|
9119
|
+
"Minor Incidents": "Incidents mineurs",
|
|
9120
|
+
"Moderate Incidents": "Incidents modérés",
|
|
9121
|
+
"Mine Site": "Site minier",
|
|
9122
|
+
"Location Type": "Type d'emplacement",
|
|
9123
|
+
"Data Points": "Points de données",
|
|
9124
|
+
"Information Subjects": "Sujets d'information",
|
|
9125
|
+
"Data Compilation": "Compilation de données",
|
|
9126
|
+
"Data Chain of Custody": "Chaîne de traçabilité des données",
|
|
9127
|
+
"Contributions": "Contributions",
|
|
9128
|
+
"Others": "Autres",
|
|
9129
|
+
"Locations Data": "Données de localisation",
|
|
9130
|
+
"Stakeholders Data": "Données des parties prenantes",
|
|
9131
|
+
"Events Data": "Données d'événements",
|
|
9132
|
+
"Accumulation": "Accumulation",
|
|
9133
|
+
"Create Mine Site": "Créer un site minier",
|
|
9134
|
+
"Supply Chain Map": "Carte de la chaîne d'approvisionnement",
|
|
9135
|
+
"Participants": "Participants",
|
|
9136
|
+
"Trade Connections": "Connexions commerciales",
|
|
9137
|
+
"Key Information": "Informations clés",
|
|
9138
|
+
"Weekly": "Hebdomadaire",
|
|
9139
|
+
"Monthly": "Mensuel",
|
|
9140
|
+
"Daily": "Quotidien",
|
|
9141
|
+
"Workforce": "Main-d'œuvre",
|
|
9142
|
+
"Trade Actors": "Acteurs commerciaux",
|
|
9143
|
+
"Mining Sites": "Sites miniers",
|
|
9144
|
+
"Primary Data Collection": "Collecte de données primaires",
|
|
9145
|
+
"Implementation Partner": "Partenaire de mise en œuvre",
|
|
9146
|
+
"Origin": "Origine",
|
|
9147
|
+
"Activity Participants": "Participants à l'activité",
|
|
9148
|
+
"Legal Form": "Forme juridique",
|
|
9149
|
+
"Hectares Planted": "Hectares plantés",
|
|
9150
|
+
"Sub Category": "Sous-catégorie",
|
|
9151
|
+
"Licensing": "Licences",
|
|
9152
|
+
"Email address": "Adresse e-mail",
|
|
9153
|
+
"Partner Type": "Type de partenaire",
|
|
9154
|
+
"Product": "Produit",
|
|
9155
|
+
"Filter by": "Filtrer par",
|
|
9156
|
+
"Key Stakeholder": "Partie prenante clé",
|
|
9157
|
+
"Mineral Supply Chain Transparency": "Transparence de la chaîne d'approvisionnement minérale",
|
|
8938
9158
|
"no-board-members": "Aucun membre du conseil d'administration identifié",
|
|
8939
9159
|
"no-management": "Aucun management identifié",
|
|
8940
9160
|
"no-beneficiaries": "Aucun bénéficiaire identifié",
|
|
8941
9161
|
"no-stakeholders": "Aucun stakeholder identifié",
|
|
8942
9162
|
"no-operators": "Aucun opérateur identifié",
|
|
8943
9163
|
"no-traders": "Aucun négociant identifié",
|
|
8944
|
-
"no-
|
|
9164
|
+
"no-governance": "Aucun gouvernance identifié",
|
|
8945
9165
|
"no-other": "Aucun autre identifié",
|
|
8946
9166
|
"No planning required": "Pas de planification requise",
|
|
8947
9167
|
"No evaluation required": "Pas d'évaluation requise",
|
|
@@ -10779,13 +10999,116 @@ const fr = {
|
|
|
10779
10999
|
};
|
|
10780
11000
|
|
|
10781
11001
|
const sp = {
|
|
11002
|
+
"Identified Customers": "Clientes identificados",
|
|
11003
|
+
"Identified Suppliers": "Proveedores identificados",
|
|
11004
|
+
"Associated Mine Sites": "Sitios mineros asociados",
|
|
11005
|
+
"Supply Chain Position": "Posición en la cadena de suministro",
|
|
11006
|
+
"Governance": "Gobernanza",
|
|
11007
|
+
"Holding": "Holding",
|
|
11008
|
+
"Operator Review": "Revisión del operador",
|
|
11009
|
+
"Stakeholder Mapping": "Mapeo de partes interesadas",
|
|
11010
|
+
"sources-reporting": "Fuentes de informes",
|
|
11011
|
+
"link-details": "Detalles del enlace",
|
|
11012
|
+
"Mine Site Details": "Detalles del sitio minero",
|
|
11013
|
+
"Number of Workers on Site": "Número de trabajadores en el sitio",
|
|
11014
|
+
"Extraction Methods": "Métodos de extracción",
|
|
11015
|
+
"Find Data": "Buscar datos",
|
|
11016
|
+
"Mine Review": "Revisión de la mina",
|
|
11017
|
+
"Completion": "Finalización",
|
|
11018
|
+
"Information Completeness": "Completitud de la información",
|
|
11019
|
+
"Consolidated": "Consolidado",
|
|
11020
|
+
"Datapoints": "Puntos de datos",
|
|
11021
|
+
"Own Data": "Datos propios",
|
|
11022
|
+
"Create Worker": "Crear trabajador",
|
|
11023
|
+
"Workers": "Trabajadores",
|
|
11024
|
+
"Census Update": "Actualización del censo",
|
|
11025
|
+
"Create Operator": "Crear operador",
|
|
11026
|
+
"Edit Settings": "Editar configuración",
|
|
11027
|
+
"Create Partner": "Crear socio",
|
|
11028
|
+
"Only authorised users can create partnerships.": "Solo los usuarios autorizados pueden crear asociaciones.",
|
|
11029
|
+
"Partners are organisations sharing their information with you, or receiving your information.": "Los socios son organizaciones que comparten su información con usted o reciben su información.",
|
|
11030
|
+
"List": "Lista",
|
|
11031
|
+
"Partner suspended successfully": "Socio suspendido exitosamente",
|
|
11032
|
+
"Invitation type": "Tipo de invitación",
|
|
11033
|
+
"Person name": "Nombre de la persona",
|
|
11034
|
+
"Source: This partner will share information with you.": "Fuente: Este socio compartirá información con usted.",
|
|
11035
|
+
"Client: You will share information with this partner.": "Cliente: Compartirá información con este socio.",
|
|
11036
|
+
"Exchange: You will both share information with each other.": "Intercambio: Ambos compartirán información entre sí.",
|
|
11037
|
+
"Type of partnership": "Tipo de asociación",
|
|
11038
|
+
"Type of partner": "Tipo de socio",
|
|
11039
|
+
"Re-activate Partnership": "Reactivar asociación",
|
|
11040
|
+
"Activate Partner": "Activar socio",
|
|
11041
|
+
"Resend Invitation": "Reenviar invitación",
|
|
11042
|
+
"Resend Invite": "Reenviar invitación",
|
|
11043
|
+
"Copy Invitation Link": "Copiar enlace de invitación",
|
|
11044
|
+
"Are you sure you want to suspend this partner?": "¿Está seguro de que desea suspender a este socio?",
|
|
11045
|
+
"Suspend Partner": "Suspender socio",
|
|
11046
|
+
"Are you sure you want to block this user?": "¿Está seguro de que desea bloquear a este usuario?",
|
|
11047
|
+
"Block User": "Bloquear usuario",
|
|
11048
|
+
"Suspended": "Suspendido",
|
|
11049
|
+
"Entity Type": "Tipo de entidad",
|
|
11050
|
+
"Source: This partner shares information with your organisation.": "Fuente: Este socio comparte información con su organización.",
|
|
11051
|
+
"Client: This partner receives information from your organisation.": "Cliente: Este socio recibe información de su organización.",
|
|
11052
|
+
"Exchange: You share information with each other.": "Intercambio: Comparten información entre sí.",
|
|
11053
|
+
"Create Production Site": "Crear sitio de producción",
|
|
11054
|
+
"production-sites": "Sitios de producción",
|
|
11055
|
+
"Summary": "Resumen",
|
|
11056
|
+
"Create Locations": "Crear ubicaciones",
|
|
11057
|
+
"Create Incidents": "Crear incidentes",
|
|
11058
|
+
"Create Activity": "Crear actividad",
|
|
11059
|
+
"Activities": "Actividades",
|
|
11060
|
+
"Create Events": "Crear eventos",
|
|
11061
|
+
"Create Document": "Crear documento",
|
|
11062
|
+
"Documents": "Documentos",
|
|
11063
|
+
"Triangluation": "Triangulación",
|
|
11064
|
+
"Monitoring Map": "Mapa de monitoreo",
|
|
11065
|
+
"Major Incidents": "Incidentes mayores",
|
|
11066
|
+
"Minor Incidents": "Incidentes menores",
|
|
11067
|
+
"Moderate Incidents": "Incidentes moderados",
|
|
11068
|
+
"Mine Site": "Sitio minero",
|
|
11069
|
+
"Location Type": "Tipo de ubicación",
|
|
11070
|
+
"Data Points": "Puntos de datos",
|
|
11071
|
+
"Information Subjects": "Temas de información",
|
|
11072
|
+
"Data Compilation": "Compilación de datos",
|
|
11073
|
+
"Data Chain of Custody": "Cadena de custodia de datos",
|
|
11074
|
+
"Contributions": "Contribuciones",
|
|
11075
|
+
"Others": "Otros",
|
|
11076
|
+
"Locations Data": "Datos de ubicaciones",
|
|
11077
|
+
"Stakeholders Data": "Datos de partes interesadas",
|
|
11078
|
+
"Events Data": "Datos de eventos",
|
|
11079
|
+
"Accumulation": "Acumulación",
|
|
11080
|
+
"Create Mine Site": "Crear sitio minero",
|
|
11081
|
+
"Supply Chain Map": "Mapa de la cadena de suministro",
|
|
11082
|
+
"Participants": "Participantes",
|
|
11083
|
+
"Trade Connections": "Conexiones comerciales",
|
|
11084
|
+
"Key Information": "Información clave",
|
|
11085
|
+
"Weekly": "Semanal",
|
|
11086
|
+
"Monthly": "Mensual",
|
|
11087
|
+
"Daily": "Diario",
|
|
11088
|
+
"Workforce": "Fuerza laboral",
|
|
11089
|
+
"Trade Actors": "Actores comerciales",
|
|
11090
|
+
"Mining Sites": "Sitios mineros",
|
|
11091
|
+
"Primary Data Collection": "Recopilación de datos primarios",
|
|
11092
|
+
"Implementation Partner": "Socio de implementación",
|
|
11093
|
+
"Origin": "Origen",
|
|
11094
|
+
"Activity Participants": "Participantes de la actividad",
|
|
11095
|
+
"Legal Form": "Forma jurídica",
|
|
11096
|
+
"Hectares Planted": "Hectáreas plantadas",
|
|
11097
|
+
"Sub Category": "Subcategoría",
|
|
11098
|
+
"Licensing": "Licencias",
|
|
11099
|
+
"Email address": "Dirección de correo electrónico",
|
|
11100
|
+
"Partner Type": "Tipo de socio",
|
|
11101
|
+
"Product": "Producto",
|
|
11102
|
+
"Filter by": "Filtrar por",
|
|
11103
|
+
"Key Stakeholder": "Parte interesada clave",
|
|
11104
|
+
"Mineral Supply Chain Transparency": "Transparencia de la cadena de suministro mineral",
|
|
10782
11105
|
"no-board-members": "No hay miembros del consejo identificados",
|
|
10783
11106
|
"no-management": "No hay gerencia identificados",
|
|
10784
11107
|
"no-beneficiaries": "No hay beneficiarios identificados",
|
|
10785
11108
|
"no-stakeholders": "No hay partes interesadas identificadas",
|
|
10786
11109
|
"no-operators": "No hay operadores identificados",
|
|
10787
11110
|
"no-traders": "No hay comerciantes identificados",
|
|
10788
|
-
"no-
|
|
11111
|
+
"no-governance": "No hay gobernanza identificado",
|
|
10789
11112
|
"no-other": "No hay otros identificados",
|
|
10790
11113
|
"No planning required": "No se requiere planeación",
|
|
10791
11114
|
"No evaluation required": "No se requiere evaluación",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "datastake-daf",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.767",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@ant-design/icons": "^5.2.5",
|
|
6
6
|
"@antv/g2": "^5.1.1",
|
|
@@ -15,7 +15,9 @@
|
|
|
15
15
|
"buffer": "^6.0.3",
|
|
16
16
|
"countries-list": "^2.6.1",
|
|
17
17
|
"country-city-location": "^1.0.13",
|
|
18
|
-
"
|
|
18
|
+
"d3-selection": "^3.0.0",
|
|
19
|
+
"d3-transition": "^3.0.1",
|
|
20
|
+
"d3-zoom": "^3.0.0",
|
|
19
21
|
"dayjs": "^1.11.12",
|
|
20
22
|
"deepmerge": "^4.3.1",
|
|
21
23
|
"docx": "^9.5.1",
|
|
@@ -90,6 +90,7 @@ export default function BarChart({
|
|
|
90
90
|
isPdf = false,
|
|
91
91
|
legendConfig = {},
|
|
92
92
|
width,
|
|
93
|
+
xAxisConfig = {},
|
|
93
94
|
...rest
|
|
94
95
|
}) {
|
|
95
96
|
const containerRef = React.useRef(null);
|
|
@@ -122,10 +123,12 @@ export default function BarChart({
|
|
|
122
123
|
},
|
|
123
124
|
}
|
|
124
125
|
: {}),
|
|
126
|
+
...xAxisConfig,
|
|
125
127
|
label: {
|
|
126
128
|
formatter: isPercentage
|
|
127
129
|
? (v) => `${v}`.replace(/\d{1,3}(?=(\d{3})+$)/g, (s) => `${s},`) + " %"
|
|
128
130
|
: formattedXAxis,
|
|
131
|
+
...xAxisConfig?.label,
|
|
129
132
|
},
|
|
130
133
|
},
|
|
131
134
|
yAxis: {
|
|
@@ -170,6 +173,7 @@ export default function BarChart({
|
|
|
170
173
|
formattedXAxis,
|
|
171
174
|
color,
|
|
172
175
|
token.colorPrimary7,
|
|
176
|
+
xAxisConfig,
|
|
173
177
|
]);
|
|
174
178
|
|
|
175
179
|
React.useEffect(() => {
|
|
@@ -234,7 +234,7 @@ export default function StakeholderIcon({
|
|
|
234
234
|
onClickLink(data);
|
|
235
235
|
},
|
|
236
236
|
})}
|
|
237
|
-
getPopupContainer={() => document.getElementById(
|
|
237
|
+
getPopupContainer={() => document.getElementById("map")}
|
|
238
238
|
>
|
|
239
239
|
<StakeholderMarker
|
|
240
240
|
className={`${data.type} ${
|
|
@@ -105,13 +105,6 @@ export default function LocationIcon({
|
|
|
105
105
|
const div = document.getElementById(markerId);
|
|
106
106
|
root.current = createRoot(div);
|
|
107
107
|
|
|
108
|
-
console.log({
|
|
109
|
-
locationID: data.datastakeId,
|
|
110
|
-
stakeholder,
|
|
111
|
-
index,
|
|
112
|
-
parentId: data.datastakeId,
|
|
113
|
-
});
|
|
114
|
-
|
|
115
108
|
root.current.render(
|
|
116
109
|
<StakeholderIcon
|
|
117
110
|
data={stakeholder}
|
|
@@ -220,8 +213,7 @@ export default function LocationIcon({
|
|
|
220
213
|
// (!openPopupIdRef.current || openPopupIdRef.current === data.datastakeId) &&
|
|
221
214
|
// isHovering
|
|
222
215
|
// }
|
|
223
|
-
|
|
224
|
-
getPopupContainer={() => document.getElementById(i)}
|
|
216
|
+
getPopupContainer={() => document.getElementById("map")}
|
|
225
217
|
>
|
|
226
218
|
<div style={{ position: "relative", display: "inline-block" }}>
|
|
227
219
|
{(isSelected || selectedMarkersId.length === 0) && (
|
|
@@ -42,6 +42,7 @@ export default function StakeholderIcon({
|
|
|
42
42
|
link,
|
|
43
43
|
onClickLink: () => onClickLink(marker),
|
|
44
44
|
})}
|
|
45
|
+
getPopupContainer={() => document.getElementById("map")}
|
|
45
46
|
>
|
|
46
47
|
<div
|
|
47
48
|
key="single-marker"
|
|
@@ -91,6 +92,7 @@ export default function StakeholderIcon({
|
|
|
91
92
|
link,
|
|
92
93
|
onClickLink: () => onClickLink(marker),
|
|
93
94
|
})}
|
|
95
|
+
getPopupContainer={() => document.getElementById("map")}
|
|
94
96
|
>
|
|
95
97
|
<div
|
|
96
98
|
style={{
|
|
@@ -132,6 +134,7 @@ export default function StakeholderIcon({
|
|
|
132
134
|
link,
|
|
133
135
|
onClickLink: () => onClickLink(marker),
|
|
134
136
|
})}
|
|
137
|
+
getPopupContainer={() => document.getElementById("map")}
|
|
135
138
|
>
|
|
136
139
|
<Style
|
|
137
140
|
// onClick={toggleOpen}
|
|
@@ -283,7 +283,15 @@ export const useMap = ({
|
|
|
283
283
|
useEffect(() => {
|
|
284
284
|
if (mapRef) {
|
|
285
285
|
L.control.scale().addTo(mapRef);
|
|
286
|
-
L.tileLayer(TILE_LAYER_URL, {
|
|
286
|
+
L.tileLayer(TILE_LAYER_URL, {
|
|
287
|
+
access_token: MAP_TOKEN,
|
|
288
|
+
keepBuffer: 4,
|
|
289
|
+
updateWhenZooming: false,
|
|
290
|
+
updateInterval: 200,
|
|
291
|
+
maxNativeZoom: 18,
|
|
292
|
+
tileSize: 256,
|
|
293
|
+
fadeAnimation: true,
|
|
294
|
+
}).addTo(mapRef);
|
|
287
295
|
}
|
|
288
296
|
}, [mapRef]);
|
|
289
297
|
|
|
@@ -362,6 +370,28 @@ export const useMap = ({
|
|
|
362
370
|
}
|
|
363
371
|
}, [activeMarker, mapRef]);
|
|
364
372
|
|
|
373
|
+
useEffect(() => {
|
|
374
|
+
if (mapRef && type === "chain") {
|
|
375
|
+
const handleMapClick = (e) => {
|
|
376
|
+
const clickedElement = e.originalEvent.target;
|
|
377
|
+
const isMarkerClick = clickedElement.closest('.marker-chain') ||
|
|
378
|
+
clickedElement.closest('.leaflet-marker-icon');
|
|
379
|
+
|
|
380
|
+
if (!isMarkerClick && selectedMarkersId.length > 0) {
|
|
381
|
+
setSelectedMarkersId([]);
|
|
382
|
+
openPopupIdRef.current = null;
|
|
383
|
+
setMarkerWithPopup(null);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
|
|
387
|
+
mapRef.on('click', handleMapClick);
|
|
388
|
+
|
|
389
|
+
return () => {
|
|
390
|
+
mapRef.off('click', handleMapClick);
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
}, [mapRef, type, selectedMarkersId]);
|
|
394
|
+
|
|
365
395
|
return {
|
|
366
396
|
container,
|
|
367
397
|
activeMarker,
|
|
@@ -163,7 +163,6 @@ function StakeholderMappings({
|
|
|
163
163
|
t = (s) => s,
|
|
164
164
|
emptyString = undefined,
|
|
165
165
|
isPdf = false,
|
|
166
|
-
zoomOutTransition = false,
|
|
167
166
|
}) {
|
|
168
167
|
const reactFlowWrapper = useRef(null);
|
|
169
168
|
const [nodes, setNodes] = useNodesState([]);
|
|
@@ -473,7 +472,6 @@ function StakeholderMappings({
|
|
|
473
472
|
|
|
474
473
|
return (
|
|
475
474
|
<BaseGraph
|
|
476
|
-
zoomOutTransition={zoomOutTransition}
|
|
477
475
|
nodes={nodes}
|
|
478
476
|
mandatoryNodesToFit={mandatoryNodesToFit}
|
|
479
477
|
edges={edges}
|