@kando-env/kando-ui 1.2.75-alpha.4 → 1.2.75-alpha.40
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/lib/Widgets/Map/Map.js +19 -5
- package/lib/Widgets/Map/areas/AreaPolygons.js +1 -6
- package/lib/Widgets/Map/events/NetworkForSpecificEvent.js +2 -5
- package/lib/Widgets/Map/points/PointMarker.js +21 -6
- package/lib/Widgets/Map/points/PointMarkers.js +2 -2
- package/lib/assets/icons/close-modal.svg +8 -0
- package/lib/assets/icons/index.js +8 -0
- package/lib/components/DischargeHeatmap/DischargeHeatmap.test.js +2 -2
- package/lib/components/DischargeHeatmap/mocks/handlers.js +19 -0
- package/lib/components/Header/KandoNavbar/KandoNavbar.js +3 -1
- package/lib/components/Header/Toolbar/CustomerMenu/CustomerMenu.js +3 -1
- package/lib/components/Sector/Sector.test.js +4 -11
- package/lib/hooks/useApiWithDashboardQuery.js +2 -4
- package/lib/i18n/en.json +36 -26
- package/lib/i18n/en_uk.json +3760 -0
- package/lib/i18n/fr.json +4 -2
- package/lib/i18n/he.json +16 -6
- package/lib/i18n/it.json +4 -2
- package/lib/index.js +8 -1
- package/lib/macros/getVersion.js +2 -2
- package/lib/pages/AreaPage/Dashboard/Sites/Sites.js +6 -4
- package/lib/pages/AreaPage/Dashboard/Sites/styles.js +3 -3
- package/lib/pages/EventsPage/events/event_info/sources/Source.js +2 -2
- package/lib/pages/EventsPage/events/events_list/EventsList.js +8 -10
- package/lib/pages/EventsPage/events/events_list/Filter/FilterItem.js +4 -1
- package/lib/pages/EventsPage/events/events_list/Filter/FilterStyle.scss +1 -1
- package/lib/pages/ImportFileWizard/ValidationForm.js +7 -12
- package/lib/pages/NotificationsPageV2/components/NotificationsUtils.js +5 -1
- package/lib/pages/SamplingsPage/ActionsDropDown/LabResultValue.js +41 -0
- package/lib/pages/SamplingsPage/ActionsDropDown/LabResultValue.test.js +39 -0
- package/lib/pages/SamplingsPage/ActionsDropDown/SamplingActionContainer.js +172 -0
- package/lib/pages/SamplingsPage/ActionsDropDown/SamplingActionDropdown.js +74 -0
- package/lib/pages/SamplingsPage/ActionsDropDown/SamplingActions.js +48 -0
- package/lib/pages/SamplingsPage/ActionsDropDown/ViewLabResult.js +99 -0
- package/lib/pages/SamplingsPage/NewSamplingAction.js +4 -3
- package/lib/pages/SamplingsPage/SamplingMobileModal.js +1 -17
- package/lib/pages/SamplingsPage/SamplingProperties/SamplingProperties.js +10 -3
- package/lib/pages/SamplingsPage/SamplingProperties/SamplingPropertiesForm.js +9 -12
- package/lib/pages/SamplingsPage/SamplingProperties/SamplingPropertiesHead.js +24 -17
- package/lib/pages/SamplingsPage/SamplingProperties/SamplingPropertiesHeadMobile.js +15 -10
- package/lib/pages/SamplingsPage/SamplingProperties/samplingPropertiesUtils.js +14 -4
- package/lib/pages/SamplingsPage/SamplingsMobileItem.js +4 -2
- package/lib/pages/SamplingsPage/SamplingsPage.js +4 -2
- package/lib/pages/SamplingsPage/SamplingsPageContainer.js +2 -5
- package/lib/pages/SamplingsPage/samplingsPageUtils.js +57 -27
- package/lib/pages/SamplingsPage/style.module.scss +1 -1
- package/lib/pages/SamplingsPage/table.styles.scss +8 -6
- package/lib/pages/WbeDashboard/SummaryGraph.js +15 -6
- package/lib/store/permissions/permissionsSlice.js +3 -1
- package/lib/styles.scss +7 -0
- package/lib/test/mocks/browser.js +23 -0
- package/lib/test/test-utils.js +61 -0
- package/lib/ui-kit/Button/Button.test.js +26 -11
- package/lib/ui-kit/DropDown/DropDown.js +12 -6
- package/lib/ui-kit/DropDown/DropDown.test.js +50 -41
- package/lib/ui-kit/ImageUploadButton/ImageUploadButton.js +9 -2
- package/lib/ui-kit/KandoTable/KandoTable.test.js +46 -43
- package/lib/utilities/i18n.js +6 -1
- package/lib/utilities/urls.js +8 -5
- package/package.json +5 -2
- package/lib/pages/SamplingsPage/SamplingActionDropdown.js +0 -189
package/lib/i18n/en.json
CHANGED
|
@@ -232,8 +232,8 @@
|
|
|
232
232
|
"update": "Update %{model}",
|
|
233
233
|
"submit": "Save %{model}"
|
|
234
234
|
},
|
|
235
|
-
"groups": "
|
|
236
|
-
"collectors": "
|
|
235
|
+
"groups": "SIU",
|
|
236
|
+
"collectors": "Mains",
|
|
237
237
|
"points": "Manholes",
|
|
238
238
|
"letters": "Letters",
|
|
239
239
|
"yearly_schedule": "Yearly schedule",
|
|
@@ -386,7 +386,7 @@
|
|
|
386
386
|
"water_authority_overview": "Overview",
|
|
387
387
|
"water_authority": "Client",
|
|
388
388
|
"kpi": "KPI",
|
|
389
|
-
"groups": "
|
|
389
|
+
"groups": "SIU",
|
|
390
390
|
"weekly_report": "Weekly Report",
|
|
391
391
|
"dashboard_v2": "Utility Dashboard (Beta)"
|
|
392
392
|
},
|
|
@@ -428,7 +428,7 @@
|
|
|
428
428
|
},
|
|
429
429
|
"sampling_day_screen": {
|
|
430
430
|
"add_sampling": "Add Sampling",
|
|
431
|
-
"show_groups_on_map": "Show
|
|
431
|
+
"show_groups_on_map": "Show SIU On Map",
|
|
432
432
|
"hide_map": "Hide Map",
|
|
433
433
|
"to_sampling": "Sampling",
|
|
434
434
|
"water_consumption": "W.Consumption",
|
|
@@ -834,7 +834,7 @@
|
|
|
834
834
|
},
|
|
835
835
|
"group_type": {
|
|
836
836
|
"groups/factory": "Factory",
|
|
837
|
-
"groups/collectors": "
|
|
837
|
+
"groups/collectors": "Mains",
|
|
838
838
|
"groups/pump_station": "Pump Station",
|
|
839
839
|
"groups/wastewater_treatment_plant": "WWTP",
|
|
840
840
|
"groups/water_level": "Water Level",
|
|
@@ -1195,7 +1195,7 @@
|
|
|
1195
1195
|
"monitored_with_device_and_exception": "Monitored Manhole w. Device and Exception",
|
|
1196
1196
|
"warn_full_bottle": "Full Bottle Warning"
|
|
1197
1197
|
},
|
|
1198
|
-
"upload_groups_list": "Uploading
|
|
1198
|
+
"upload_groups_list": "Uploading SIU List ...",
|
|
1199
1199
|
"filter_groups": "Filter Sites",
|
|
1200
1200
|
"pollution_view": "Switch to Pollution Map",
|
|
1201
1201
|
"assets_view": "Switch to Assets Map",
|
|
@@ -2340,9 +2340,9 @@
|
|
|
2340
2340
|
"pollution_rate_br": "Pollution<br/>Rate",
|
|
2341
2341
|
"pie_title": "Pollution Areas",
|
|
2342
2342
|
"group_list_title": "<strong>Groups</strong> list in %{type} <strong>%{name}</strong>",
|
|
2343
|
-
"collector_list_title": "<strong>
|
|
2343
|
+
"collector_list_title": "<strong>Mains</strong> list in %{type} <strong>%{name}</strong>",
|
|
2344
2344
|
"group_list_title_no_area": "<strong>Groups</strong> list which do not belong to any area",
|
|
2345
|
-
"collector_list_title_no_area": "<strong>
|
|
2345
|
+
"collector_list_title_no_area": "<strong>Mains</strong> list which do not belong to any area",
|
|
2346
2346
|
"data_related_to": "* The information is related to %{type} <strong>%{name}</strong>",
|
|
2347
2347
|
"data_related_to_no_area": "* The information is related to sites which do not belong to any area",
|
|
2348
2348
|
"position_change": "Trend",
|
|
@@ -2530,11 +2530,11 @@
|
|
|
2530
2530
|
"project_management": {
|
|
2531
2531
|
"title": "Deployment Management",
|
|
2532
2532
|
"kpi": {
|
|
2533
|
-
"most_polluted_collectors": "Most Polluted
|
|
2533
|
+
"most_polluted_collectors": "Most Polluted Mains",
|
|
2534
2534
|
"detection": "Detection",
|
|
2535
2535
|
"upstream_detection": "Upstream Detection",
|
|
2536
|
-
"lowest_collectors_detection": "Lowest
|
|
2537
|
-
"most_polluted_factories": "Most Polluted
|
|
2536
|
+
"lowest_collectors_detection": "Lowest Mains Detection",
|
|
2537
|
+
"most_polluted_factories": "Most Polluted SIU"
|
|
2538
2538
|
},
|
|
2539
2539
|
"period": "Period",
|
|
2540
2540
|
"2_months": "2 Months",
|
|
@@ -2544,10 +2544,10 @@
|
|
|
2544
2544
|
"downstream_detection": "Downstream Detection",
|
|
2545
2545
|
"minimum_deployment1": "A minimum of ",
|
|
2546
2546
|
"minimum_deployment2": "units are required to cover the selected area.",
|
|
2547
|
-
"additional_deployment_info1": "Please note, currently you have %{collectors_poor_detection}
|
|
2547
|
+
"additional_deployment_info1": "Please note, currently you have %{collectors_poor_detection} mains in the selected area, with poor upstream detection.",
|
|
2548
2548
|
"additional_deployment_info2": "Please consider, adding more units upstream, to increase the detection rate",
|
|
2549
|
-
"collectors": "
|
|
2550
|
-
"factories": "
|
|
2549
|
+
"collectors": "Mains",
|
|
2550
|
+
"factories": "SIU",
|
|
2551
2551
|
"low_detection_advice": "Low Detection! Please consider installing more units in the upstream.",
|
|
2552
2552
|
"legend": {
|
|
2553
2553
|
"legend": "Legend",
|
|
@@ -2995,6 +2995,7 @@
|
|
|
2995
2995
|
"area_filter_item": "Area",
|
|
2996
2996
|
"sector_filter_item": "Sector",
|
|
2997
2997
|
"sampling_status_filter_item": "Status",
|
|
2998
|
+
"sampling_mode_filter_item": "Sampling Mode",
|
|
2998
2999
|
"sampling_id_filter_item": "ID",
|
|
2999
3000
|
"site_filter_item": "Site",
|
|
3000
3001
|
"lab_filter_item": "Lab"
|
|
@@ -3030,6 +3031,10 @@
|
|
|
3030
3031
|
"samplings_options": {
|
|
3031
3032
|
"with": "With",
|
|
3032
3033
|
"without": "Without"
|
|
3034
|
+
},
|
|
3035
|
+
"sampling_mode": {
|
|
3036
|
+
"manual": "Manual",
|
|
3037
|
+
"automatic": "Automatic"
|
|
3033
3038
|
}
|
|
3034
3039
|
}
|
|
3035
3040
|
},
|
|
@@ -3070,7 +3075,7 @@
|
|
|
3070
3075
|
"utility-score": "Utility Score",
|
|
3071
3076
|
"show-map": "Show Map",
|
|
3072
3077
|
"areas": "Areas",
|
|
3073
|
-
"Factories": "
|
|
3078
|
+
"Factories": "SIU",
|
|
3074
3079
|
"wwtps": "WWTPs"
|
|
3075
3080
|
},
|
|
3076
3081
|
"quality-summary": {
|
|
@@ -3097,10 +3102,10 @@
|
|
|
3097
3102
|
"most-polluting": {
|
|
3098
3103
|
"tabs": {
|
|
3099
3104
|
"areas": "Areas",
|
|
3100
|
-
"factories": "
|
|
3105
|
+
"factories": "SIU",
|
|
3101
3106
|
"wwtps": "WWTPs",
|
|
3102
3107
|
"pumping-station": "Pumping stations",
|
|
3103
|
-
"collectors": "
|
|
3108
|
+
"collectors": "Mains"
|
|
3104
3109
|
},
|
|
3105
3110
|
"select": {
|
|
3106
3111
|
"area_most_polluting": "Sorted by pollution",
|
|
@@ -3115,13 +3120,13 @@
|
|
|
3115
3120
|
"show-more": "Show More",
|
|
3116
3121
|
"sector2": "Sector ",
|
|
3117
3122
|
"show-less": "Show less",
|
|
3118
|
-
"factories": "
|
|
3123
|
+
"factories": "SIU",
|
|
3119
3124
|
"most-polluting": "Most Polluting",
|
|
3120
3125
|
"most-clean": "Most Clean",
|
|
3121
3126
|
"order-by-improvements": "Sorted by improvement",
|
|
3122
|
-
"no-collectors": "No
|
|
3127
|
+
"no-collectors": "No mains to show",
|
|
3123
3128
|
"no-area": "No areas to show",
|
|
3124
|
-
"no-factory": "No
|
|
3129
|
+
"no-factory": "No SIU to show",
|
|
3125
3130
|
"no-wwtp": "No WWTP to show",
|
|
3126
3131
|
"no-site": "No sites to show"
|
|
3127
3132
|
},
|
|
@@ -3251,7 +3256,7 @@
|
|
|
3251
3256
|
"from_last_week": "From previous week",
|
|
3252
3257
|
"with_increased_virus_load": "With increased virus load",
|
|
3253
3258
|
"population": "Population",
|
|
3254
|
-
"big_graph_title": "Country-wide virus load
|
|
3259
|
+
"big_graph_title": "Country-wide virus load",
|
|
3255
3260
|
"tooltip": {
|
|
3256
3261
|
"clean": "The percentage of areas with no indication of the virus, out of the total areas tested this week.",
|
|
3257
3262
|
"infected": "The percentage of areas with viral indication out of the total areas tested this week.",
|
|
@@ -3637,7 +3642,8 @@
|
|
|
3637
3642
|
"validation_results_error": "We cannot proceed with the import due to the following errors",
|
|
3638
3643
|
"upload_success_msg": "Update has been completed",
|
|
3639
3644
|
"upload_in_progress_msg": "Update is in progress...",
|
|
3640
|
-
"upload_in_progress_description": "Updating is taking place, please return later to check it was completed successfully."
|
|
3645
|
+
"upload_in_progress_description": "Updating is taking place, please return later to check it was completed successfully.",
|
|
3646
|
+
"invalid_file": "Invalid file"
|
|
3641
3647
|
},
|
|
3642
3648
|
"upload_lab_result": {
|
|
3643
3649
|
"title": "Upload Lab Results for {{waterAuthorityName}}",
|
|
@@ -3671,6 +3677,7 @@
|
|
|
3671
3677
|
"samplings_page": {
|
|
3672
3678
|
"was_not_selected": "Was not selected",
|
|
3673
3679
|
"no_contact": "No contact",
|
|
3680
|
+
"point_id": "Point ID",
|
|
3674
3681
|
"no_contact_number": "No number",
|
|
3675
3682
|
"cancel_sampling": "Cancel Sampling",
|
|
3676
3683
|
"sampling_created": "New Sampling was successfully created",
|
|
@@ -3689,26 +3696,28 @@
|
|
|
3689
3696
|
"google_maps": "Google Maps",
|
|
3690
3697
|
"ios_maps": "Ios Maps"
|
|
3691
3698
|
},
|
|
3699
|
+
"lab_view": "Lab Result For Sampling {{samplingId}}",
|
|
3692
3700
|
"samplings_table_cols": {
|
|
3693
3701
|
"site": "Site",
|
|
3694
3702
|
"sampling_date": "Sampling Date",
|
|
3703
|
+
"sampling_mode": "Sampling Mode",
|
|
3695
3704
|
"manhole_address": "Manhole Address",
|
|
3696
|
-
"contact": "Contact",
|
|
3697
|
-
"contact_number": "Contact Number",
|
|
3698
3705
|
"bottle_level": "Bottle Level",
|
|
3699
3706
|
"sampling_id": "Sample ID",
|
|
3700
3707
|
"type": "Type",
|
|
3701
3708
|
"lab_name": "Lab Name",
|
|
3702
|
-
"status": "Status"
|
|
3709
|
+
"status": "Status",
|
|
3710
|
+
"ml": "ml",
|
|
3711
|
+
"na": "N/A"
|
|
3703
3712
|
},
|
|
3704
3713
|
"page_title": "Samplings Operation",
|
|
3705
|
-
"manhole_properties": "Manhole Properties",
|
|
3706
3714
|
"sampling_properties": "Sampling Properties",
|
|
3707
3715
|
"revert_cancellation": "Revert Cancellation",
|
|
3708
3716
|
"delete": "Delete",
|
|
3709
3717
|
"delete_confirmation": "Are you sure you want to delete sampling {{sampling_id}}? This action can not be reverted.",
|
|
3710
3718
|
"yes_delete": "Yes, Delete it",
|
|
3711
3719
|
"collect": "Collect",
|
|
3720
|
+
"lab_result": "View lab result",
|
|
3712
3721
|
"cancellation_title": "Select cancellation reason",
|
|
3713
3722
|
"samplings_properties": {
|
|
3714
3723
|
"page_title_cancel": "Cancel Sampling",
|
|
@@ -3719,6 +3728,7 @@
|
|
|
3719
3728
|
"yes": "Delete",
|
|
3720
3729
|
"no": "No",
|
|
3721
3730
|
"cant_upload_without_saving": "You can't upload photos before creating a sampling.",
|
|
3731
|
+
"cant_upload_without_saving_lab_id_first": "You can't update properties without saving a lab first.",
|
|
3722
3732
|
"placeholder_reporter": "Place reporter",
|
|
3723
3733
|
"general_description": "Limit 200 characters",
|
|
3724
3734
|
"validation_messages": {
|