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