pcm-shared-components 0.0.211 → 0.0.213

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.
@@ -24,9 +24,9 @@ let searchDebounce;
24
24
  export const SearchBar = props => {
25
25
  // Extract the passed down props
26
26
  const {
27
- onCancelSearch,
28
27
  onChange,
29
28
  onChangeDebounce,
29
+ onCancelSearch,
30
30
  placeholder,
31
31
  value,
32
32
  disabled,
@@ -78,12 +78,20 @@ export const SearchBar = props => {
78
78
  disabled: disabled,
79
79
  value: localValue,
80
80
  onChange: event => {
81
- setLocalValue(event.target.value);
82
- onChange(event.target.value);
81
+ try {
82
+ setLocalValue(event.target.value);
83
+ onChange(event.target.value);
84
+ } catch (error) {
85
+ console.error(error);
86
+ }
83
87
  },
84
88
  onKeyDown: event => {
85
- //Needed when used in a menu to prevent the menu items from being filtered by the key down strokes or else we loose focus when use in this type of component
86
- event.stopPropagation();
89
+ try {
90
+ //Needed when used in a menu to prevent the menu items from being filtered by the key down strokes or else we loose focus when use in this type of component
91
+ event.stopPropagation();
92
+ } catch (error) {
93
+ console.error(error);
94
+ }
87
95
  }
88
96
  }), localValue.length === 0 ? /*#__PURE__*/React.createElement(IconButton, {
89
97
  sx: {
@@ -98,8 +106,12 @@ export const SearchBar = props => {
98
106
  "aria-label": "search",
99
107
  disabled: disabled,
100
108
  onClick: () => {
101
- setLocalValue("");
102
- onCancelSearch();
109
+ try {
110
+ setLocalValue("");
111
+ onCancelSearch();
112
+ } catch (error) {
113
+ console.error(error);
114
+ }
103
115
  }
104
116
  }, /*#__PURE__*/React.createElement(CloseIcon, null))))
105
117
  );
@@ -261,6 +261,7 @@
261
261
  "audit_date": "Audit Date",
262
262
  "audit_logs": "Audit Logs",
263
263
  "audit_username": "Audited User",
264
+ "auto_populate_fields": "Auto Populate Fields",
264
265
  "avg": "Avg",
265
266
  "avg_nightly_rate": "Avg nightly rate",
266
267
  "back": "Back",
@@ -261,6 +261,7 @@
261
261
  "audit_date": "Fecha de auditoría",
262
262
  "audit_logs": "Registros de auditoría",
263
263
  "audit_username": "Usuario auditado",
264
+ "auto_populate_fields": "Rellenar automáticamente campos",
264
265
  "avg": "Promedio",
265
266
  "avg_nightly_rate": "Tarifa promedio por noche",
266
267
  "back": "atrás",
@@ -261,6 +261,7 @@
261
261
  "audit_date": "Date de l'audit",
262
262
  "audit_logs": "Journaux d'audit",
263
263
  "audit_username": "Utilisateur audité",
264
+ "auto_populate_fields": "Remplir automatiquement les champs",
264
265
  "avg": "Moy",
265
266
  "avg_nightly_rate": "Prix ​​moyen par nuit",
266
267
  "back": "Retour",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pcm-shared-components",
3
- "version": "0.0.211",
3
+ "version": "0.0.213",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "babel": {