pcm-shared-components 2.0.155 → 2.0.157

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.
@@ -84,41 +84,19 @@ export const ImageCanvasDraw = props => {
84
84
  console.error('error in setImageSize', error);
85
85
  }
86
86
  };
87
-
88
- // useEffect(() => {
89
- // //Get the scaled down image and width, height
90
- // setImageSize(state.b64DataUrl)
91
-
92
- // try {
93
- // document.addEventListener('keydown', function (e) {
94
- // console.log('debug e',e)
95
- // if (e.ctrlKey && e.key.toLowerCase() === 'z') {
96
- // saveableCanvas.current.undo();
97
- // }
98
- // });
99
-
100
- // } catch (error) {
101
- // console.error('Error in keydown ImageCanvasDraw Controls',error)
102
- // }
103
-
104
- // }, [])
105
-
106
87
  useEffect(() => {
107
- // Define the event listener function
108
- const handleKeyDown = e => {
109
- console.log('debug e', e);
110
- if (e.ctrlKey && e.key.toLowerCase() === 'z') {
111
- saveableCanvas.current.undo();
112
- }
113
- };
114
-
115
- // Add the event listener
116
- document.addEventListener('keydown', handleKeyDown);
117
-
118
- // Return a cleanup function that removes the event listener
119
- return () => {
120
- document.removeEventListener('keydown', handleKeyDown);
121
- };
88
+ //Get the scaled down image and width, height
89
+ setImageSize(state.b64DataUrl);
90
+ try {
91
+ document.addEventListener('keydown', function (e) {
92
+ console.log('debug e', e);
93
+ if (e.ctrlKey && e.key.toLowerCase() === 'z') {
94
+ saveableCanvas.current.undo();
95
+ }
96
+ });
97
+ } catch (error) {
98
+ console.error('Error in keydown ImageCanvasDraw Controls', error);
99
+ }
122
100
  }, []);
123
101
  useEffect(() => {
124
102
  if (saveableCanvas && saveableCanvas.current) {
@@ -2026,6 +2026,9 @@
2026
2026
  "title": "Dates Selection"
2027
2027
  },
2028
2028
  "lot_availability": {
2029
+ "booked_nights": "Booked nights",
2030
+ "booked_nights_out_of": "Selected nights",
2031
+ "booked_percentage": "Booked percentage",
2029
2032
  "is_available": "Available",
2030
2033
  "lot_type": "Lot Type",
2031
2034
  "report_description": "Shows the lots availability based on the dates selected. \n***\n- If the lots have an active reservation overlapping the selected dates then the lot is marked as **unavailable**.\n***\n- If there are no active reservations between the selected dates then the lots are marked as **available**.",
@@ -2026,6 +2026,9 @@
2026
2026
  "title": "Selección de fechas"
2027
2027
  },
2028
2028
  "lot_availability": {
2029
+ "booked_nights": "Noches reservadas",
2030
+ "booked_nights_out_of": "Noches seleccionadas",
2031
+ "booked_percentage": "Porcentaje reservado",
2029
2032
  "is_available": "Disponible",
2030
2033
  "lot_type": "Tipo de lote",
2031
2034
  "report_description": "Muestra la disponibilidad de lotes en base a las fechas seleccionadas.\n***\n- Si los lotes tienen una reserva activa que se superpone a las fechas seleccionadas, el lote se marca como **no disponible**.\n***\n- Si no hay reservas activas entre las fechas seleccionadas, los lotes se marcan como **disponibles**.",
@@ -2026,6 +2026,9 @@
2026
2026
  "title": "Sélection des Dates"
2027
2027
  },
2028
2028
  "lot_availability": {
2029
+ "booked_nights": "Nuits réservées",
2030
+ "booked_nights_out_of": "Nuits sélectionnées",
2031
+ "booked_percentage": "Pourcentage réservé",
2029
2032
  "is_available": "Disponible",
2030
2033
  "lot_type": "Type de lot",
2031
2034
  "report_description": "Affiche la disponibilité des lots en fonction des dates sélectionnées. \n***\n- Si les lots ont une réservation active chevauchant les dates sélectionnées, le lot est marqué comme indisponible.\n***\n- S'il n'y a pas de réservation active entre les dates sélectionnées, les lots sont marqués comme disponibles.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "2.0.155",
3
+ "version": "2.0.157",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {