jclib-ui 1.0.240 → 1.0.242

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.
@@ -3,7 +3,7 @@ import React__default, { createContext, useContext, useState, useCallback, useEf
3
3
  import { isDarkMode, random, isMobile, formatData, formatDataHora, formatValor, isDesktop, getDateTimeStr, getHash, validarCNPJ, validarCPF } from "jcinfo-utils";
4
4
  import { useDragControls, motion } from "framer-motion";
5
5
  import styled from "styled-components";
6
- import { Dropdown, DropdownMenu, DropdownItem, DropdownToggle, Button, InputGroup, Input as Input$1 } from "reactstrap";
6
+ import { Dropdown, DropdownMenu, DropdownItem, DropdownToggle, Spinner, Button, InputGroup, Input as Input$1 } from "reactstrap";
7
7
  import { useHistory, useParams, useLocation, Link } from "react-router-dom";
8
8
  import fileDownload from "js-file-download";
9
9
  import axios, { AxiosError } from "axios";
@@ -4560,7 +4560,8 @@ function Table({
4560
4560
  getLineColor,
4561
4561
  onClick,
4562
4562
  fixedHeader,
4563
- clickCanEdit
4563
+ clickCanEdit,
4564
+ loading
4564
4565
  }) {
4565
4566
  var _a, _b;
4566
4567
  if (colunas) {
@@ -4613,6 +4614,12 @@ function Table({
4613
4614
  }
4614
4615
  }
4615
4616
  }
4617
+ if (loading) {
4618
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { children: [
4619
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spinner, { size: "sm", color: "info" }),
4620
+ " Carregando..."
4621
+ ] });
4622
+ }
4616
4623
  if (!dados || dados.length == 0)
4617
4624
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "alert alert-warning mb-0", children: msgSemDados });
4618
4625
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Container$7, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(TableContainer, { alignTop, sizeBreak, hasBorder: border, children: [