@rolster/react-components 18.21.7 → 18.21.9

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/es/index.js CHANGED
@@ -1358,7 +1358,8 @@ function RlsTabularText({ value }) {
1358
1358
  }
1359
1359
 
1360
1360
  function RlsAmount({ value, decimals, rlsTheme, symbol }) {
1361
- return (jsxRuntimeExports.jsxs("div", { className: "rls-amount", "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { children: symbol }), jsxRuntimeExports.jsx(RlsTabularText, { value: currencyFormat({ value, decimals }) })] }));
1361
+ const amount = useMemo(() => currencyFormat({ value, decimals }), [value, decimals]);
1362
+ return (jsxRuntimeExports.jsxs("div", { className: "rls-amount", "rls-theme": rlsTheme, children: [symbol && jsxRuntimeExports.jsx("span", { children: symbol }), jsxRuntimeExports.jsx(RlsTabularText, { value: amount })] }));
1362
1363
  }
1363
1364
 
1364
1365
  function renderClassStatus(base, status = {}, additionals) {
@@ -2240,7 +2241,7 @@ const reactI18n = i18n({
2240
2241
  dateActionToday: 'Hoy',
2241
2242
  listEmptyDescription: 'Lo sentimos, en el momento no hay elementos en el listado',
2242
2243
  listEmptyTitle: 'Selección no disponible',
2243
- listInputPlaceholder: 'Buscar...'
2244
+ listInputPlaceholder: 'Escriba palabre clave para filtrar...'
2244
2245
  },
2245
2246
  en: {
2246
2247
  confirmationActionApproved: 'Approved',
@@ -2249,7 +2250,7 @@ const reactI18n = i18n({
2249
2250
  dateActionToday: 'Today',
2250
2251
  listEmptyDescription: 'Sorry, there are currently no items in the list',
2251
2252
  listEmptyTitle: 'Selection not available',
2252
- listInputPlaceholder: 'Search...'
2253
+ listInputPlaceholder: 'Enter keyword to filter...'
2253
2254
  }
2254
2255
  });
2255
2256
 
@@ -2431,7 +2432,7 @@ function useListController(props) {
2431
2432
  }
2432
2433
  else if (valueProtected.current) {
2433
2434
  const element = collection.find(valueProtected.current);
2434
- element && setFormValue(element);
2435
+ element ? setFormValue(element) : refreshState({ ...state, value: '' });
2435
2436
  }
2436
2437
  else {
2437
2438
  automatic
@@ -2579,14 +2580,14 @@ function useFieldAutocomplete(props) {
2579
2580
  return () => {
2580
2581
  onChange(element);
2581
2582
  };
2582
- }, []);
2583
+ }, [onChange]);
2583
2584
  const onKeydownElement = useCallback((element) => {
2584
2585
  return (event) => {
2585
2586
  event.code === 'Enter'
2586
2587
  ? onChange(element)
2587
2588
  : controller.navigationElement(event);
2588
2589
  };
2589
- }, [controller.navigationElement]);
2590
+ }, [onChange, controller.navigationElement]);
2590
2591
  return {
2591
2592
  ...controller,
2592
2593
  coincidences,
@@ -2639,7 +2640,7 @@ function RlsFieldAutocompleteTemplate(props) {
2639
2640
  }, [autocomplete.higher, autocomplete.modalIsVisible]);
2640
2641
  const onInputSearch = useCallback((event) => {
2641
2642
  autocomplete.setPattern(event.target.value);
2642
- }, []);
2643
+ }, [autocomplete.setPattern]);
2643
2644
  const onClickSearch = useCallback(() => {
2644
2645
  onSearch && onSearch(autocomplete.pattern);
2645
2646
  }, [onSearch, autocomplete.pattern]);
@@ -2967,14 +2968,14 @@ function useFieldSelect(props) {
2967
2968
  return () => {
2968
2969
  onChange(element);
2969
2970
  };
2970
- }, []);
2971
+ }, [onChange]);
2971
2972
  const onKeydownElement = useCallback((element) => {
2972
2973
  return (event) => {
2973
2974
  event.code === 'Enter'
2974
2975
  ? onChange(element)
2975
2976
  : controller.navigationElement(event);
2976
2977
  };
2977
- }, [controller.navigationElement]);
2978
+ }, [onChange, controller.navigationElement]);
2978
2979
  return {
2979
2980
  ...controller,
2980
2981
  onBlurInput,