jclib-ui 1.0.169 → 1.0.170

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.
@@ -2,6 +2,6 @@ export function LoadingReport({ url, file, fileTo, loading, setLoading }: {
2
2
  url: any;
3
3
  file: any;
4
4
  fileTo: any;
5
- loading?: boolean | undefined;
5
+ loading?: boolean;
6
6
  setLoading: any;
7
- }): import("react/jsx-runtime").JSX.Element | null;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export function ScrollContainer({ children, hasMaxWidth }: {
2
2
  children: any;
3
- hasMaxWidth?: boolean | undefined;
3
+ hasMaxWidth?: boolean;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ import { Aviso } from './Aviso';
2
2
  import { Confirma } from './Confirma';
3
3
  export default function Alerta({ onConfirm, text, children }: {
4
4
  onConfirm: any;
5
- text?: string | undefined;
5
+ text?: string;
6
6
  children: any;
7
7
  }): import("react/jsx-runtime").JSX.Element;
8
8
  export { Aviso, Confirma };
@@ -1,5 +1,5 @@
1
1
  export function Aviso({ onConfirm, text, children }: {
2
2
  onConfirm: any;
3
- text?: string | undefined;
3
+ text?: string;
4
4
  children: any;
5
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  export function Confirma({ onConfirm, onCancel, text, children, defaultBtn, }: {
2
2
  onConfirm: any;
3
3
  onCancel: any;
4
- text?: string | undefined;
4
+ text?: string;
5
5
  children: any;
6
- defaultBtn?: undefined;
6
+ defaultBtn?: any;
7
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export default function BotaoIncluir({ caption, onClick, ...rest }: {
2
2
  [x: string]: any;
3
- caption?: string | undefined;
3
+ caption?: string;
4
4
  onClick: any;
5
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -2,9 +2,9 @@ export default function BoxInfo({ id, title, isOpen, isVisible, onChange, noMarg
2
2
  [x: string]: any;
3
3
  id: any;
4
4
  title: any;
5
- isOpen?: boolean | undefined;
6
- isVisible?: boolean | undefined;
5
+ isOpen?: boolean;
6
+ isVisible?: boolean;
7
7
  onChange: any;
8
8
  noMargin: any;
9
9
  children: any;
10
- }): import("react/jsx-runtime").JSX.Element | null;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -2,5 +2,5 @@ export default function ButtonOptions({ value, setValue, options, ...rest }: {
2
2
  [x: string]: any;
3
3
  value: any;
4
4
  setValue: any;
5
- options?: never[] | undefined;
5
+ options?: any[];
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -15,6 +15,6 @@ export function LibProvider({ apiConfig, children, versionApp, useTheme }: {
15
15
  useTheme: boolean;
16
16
  }): any;
17
17
  export function useLibContext(): {
18
- modalList: never[];
18
+ modalList: any[];
19
19
  theme: string;
20
20
  };
@@ -2,7 +2,7 @@ export default function DataItem({ caption, colored, isForm, children, className
2
2
  [x: string]: any;
3
3
  caption: any;
4
4
  colored: any;
5
- isForm?: boolean | undefined;
5
+ isForm?: boolean;
6
6
  children: any;
7
7
  className: any;
8
8
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,26 +1,26 @@
1
1
  export default function FormDesk({ children, labelWidth, sizeBreak, lineShortWidth, gap, ...rest }: {
2
2
  [x: string]: any;
3
3
  children: any;
4
- labelWidth?: number | undefined;
5
- sizeBreak?: number | undefined;
6
- lineShortWidth?: number | undefined;
7
- gap?: string | undefined;
4
+ labelWidth?: number;
5
+ sizeBreak?: number;
6
+ lineShortWidth?: number;
7
+ gap?: string;
8
8
  }): import("react/jsx-runtime").JSX.Element;
9
9
  export function FormDeskLine({ children, label, isShort, className, classNameLabel, classNameCol, extraComp, inpWidth, ...rest }: {
10
10
  [x: string]: any;
11
11
  children: any;
12
- label?: string | undefined;
13
- isShort?: boolean | undefined;
14
- className?: string | undefined;
15
- classNameLabel?: string | undefined;
16
- classNameCol?: string | undefined;
12
+ label?: string;
13
+ isShort?: boolean;
14
+ className?: string;
15
+ classNameLabel?: string;
16
+ classNameCol?: string;
17
17
  extraComp: any;
18
18
  inpWidth: any;
19
19
  }): import("react/jsx-runtime").JSX.Element;
20
20
  export function FormDeskGrid({ grid, gap, className, children, ...rest }: {
21
21
  [x: string]: any;
22
22
  grid: any;
23
- gap?: number | undefined;
24
- className?: string | undefined;
23
+ gap?: number;
24
+ className?: string;
25
25
  children: any;
26
26
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,5 @@
1
1
  export default function GroupBox({ label, className, children }: {
2
2
  label: any;
3
- className?: string | undefined;
3
+ className?: string;
4
4
  children: any;
5
5
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  export default function Hint({ title, children }: {
2
- title?: string | undefined;
2
+ title?: string;
3
3
  children: any;
4
4
  }): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,6 @@
1
1
  export default function CheckBox({ enabled, onChange, children, ...rest }: {
2
2
  [x: string]: any;
3
- enabled?: boolean | undefined;
3
+ enabled?: boolean;
4
4
  onChange: any;
5
5
  children: any;
6
6
  }): import("react/jsx-runtime").JSX.Element;
@@ -6,15 +6,15 @@ export function FormatValor({ value, money, decimalScale, ...rest }: {
6
6
  }): import("react/jsx-runtime").JSX.Element;
7
7
  export function FormatQuant({ value, decimalScale, ...rest }: {
8
8
  [x: string]: any;
9
- value?: number | undefined;
10
- decimalScale?: number | undefined;
9
+ value?: number;
10
+ decimalScale?: number;
11
11
  }): import("react/jsx-runtime").JSX.Element;
12
12
  export function FormatPercent({ value, decimalScale, ...rest }: {
13
13
  [x: string]: any;
14
- value?: number | undefined;
15
- decimalScale?: number | undefined;
14
+ value?: number;
15
+ decimalScale?: number;
16
16
  }): import("react/jsx-runtime").JSX.Element;
17
17
  export function FormatData({ value, incHour }: {
18
- value?: string | undefined;
19
- incHour?: boolean | undefined;
18
+ value?: string;
19
+ incHour?: boolean;
20
20
  }): string;
@@ -3,5 +3,5 @@ export default function InputFone({ name, value, onChange, invalid, ...rest }: {
3
3
  name: any;
4
4
  value: any;
5
5
  onChange: any;
6
- invalid?: boolean | undefined;
6
+ invalid?: boolean;
7
7
  }): import("react/jsx-runtime").JSX.Element;
@@ -7,22 +7,22 @@ export function InputValor({ name, onChange, onClick, allowNegative, ...rest }:
7
7
  name: any;
8
8
  onChange: any;
9
9
  onClick: any;
10
- allowNegative?: boolean | undefined;
10
+ allowNegative?: boolean;
11
11
  }): import("react/jsx-runtime").JSX.Element;
12
12
  export function InputQuant({ name, onChange, onClick, allowNegative, decimalScale, ...rest }: {
13
13
  [x: string]: any;
14
14
  name: any;
15
15
  onChange: any;
16
16
  onClick: any;
17
- allowNegative?: boolean | undefined;
18
- decimalScale?: number | undefined;
17
+ allowNegative?: boolean;
18
+ decimalScale?: number;
19
19
  }): import("react/jsx-runtime").JSX.Element;
20
20
  export function InputPercent({ name, onChange, allowNegative, decimalScale, ...rest }: {
21
21
  [x: string]: any;
22
22
  name: any;
23
23
  onChange: any;
24
- allowNegative?: boolean | undefined;
25
- decimalScale?: number | undefined;
24
+ allowNegative?: boolean;
25
+ decimalScale?: number;
26
26
  }): import("react/jsx-runtime").JSX.Element;
27
27
  export function InputCodigo({ name, onChange, ...rest }: {
28
28
  [x: string]: any;
@@ -35,10 +35,10 @@ export function InputCnpj(props: any): import("react/jsx-runtime").JSX.Element;
35
35
  export function InputEstado(props: any): import("react/jsx-runtime").JSX.Element;
36
36
  export function InputSearch({ title, options, fields, btnClick, ...rest }: {
37
37
  [x: string]: any;
38
- title?: string | undefined;
39
- options?: never[] | undefined;
40
- fields?: never[] | undefined;
41
- btnClick?: null | undefined;
38
+ title?: string;
39
+ options?: any[];
40
+ fields?: any[];
41
+ btnClick?: any;
42
42
  }): import("react/jsx-runtime").JSX.Element;
43
43
  export function InputFinder({ title, onFind, children, ...rest }: {
44
44
  [x: string]: any;
@@ -19318,7 +19318,12 @@ function ModalFilter({
19318
19318
  ] }) })
19319
19319
  ] });
19320
19320
  }
19321
- function Paginacao({ pages, page, setPage }) {
19321
+ function Paginacao({
19322
+ pages,
19323
+ page,
19324
+ setPage,
19325
+ align = "center"
19326
+ }) {
19322
19327
  function updatePage(newPage) {
19323
19328
  var _a;
19324
19329
  if (newPage !== page && newPage >= 1 && newPage <= pages) {
@@ -19326,56 +19331,65 @@ function Paginacao({ pages, page, setPage }) {
19326
19331
  setPage(newPage);
19327
19332
  }
19328
19333
  }
19329
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "paginacao--container", children: [
19330
- /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "btn-group", role: "group", "aria-label": "Basic example", children: [
19331
- /* @__PURE__ */ jsxRuntimeExports.jsx(
19332
- "button",
19333
- {
19334
- className: "btn btn-outline-" + (page <= 1 ? "secondary" : "info"),
19335
- title: "Ir para a primeira página",
19336
- onClick: () => updatePage(1),
19337
- disabled: page <= 1,
19338
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-double-left" })
19339
- }
19340
- ),
19341
- /* @__PURE__ */ jsxRuntimeExports.jsx(
19342
- "button",
19343
- {
19344
- className: "btn btn-outline-" + (page <= 1 ? "secondary" : "info"),
19345
- title: "Ir para página anterior",
19346
- onClick: () => updatePage(Number(page) - 1),
19347
- disabled: page <= 1,
19348
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-left" })
19349
- }
19350
- ),
19351
- /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "paginas btn btn-outline-info text-body", children: [
19352
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "fw-bold", children: page }),
19353
- " / ",
19354
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: pages || "?" })
19355
- ] }),
19356
- /* @__PURE__ */ jsxRuntimeExports.jsx(
19357
- "button",
19358
- {
19359
- className: "btn btn-outline-" + (page >= pages ? "secondary" : "info"),
19360
- title: "Ir para próxima página",
19361
- onClick: () => updatePage(Number(page) + 1),
19362
- disabled: page >= pages,
19363
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-right" })
19364
- }
19365
- ),
19366
- /* @__PURE__ */ jsxRuntimeExports.jsx(
19367
- "button",
19368
- {
19369
- className: "btn btn-outline-" + (page >= pages ? "secondary" : "info"),
19370
- title: "Ir para a última página",
19371
- onClick: () => updatePage(pages),
19372
- disabled: page >= pages,
19373
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-double-right" })
19374
- }
19375
- )
19376
- ] }),
19377
- " "
19378
- ] });
19334
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(
19335
+ "div",
19336
+ {
19337
+ className: "paginacao--container",
19338
+ style: {
19339
+ justifyContent: align === "start" ? "flex-start" : align === "end" ? "flex-end" : "center"
19340
+ },
19341
+ children: [
19342
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "btn-group", role: "group", "aria-label": "Basic example", children: [
19343
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19344
+ "button",
19345
+ {
19346
+ className: "btn btn-outline-" + (page <= 1 ? "secondary" : "info"),
19347
+ title: "Ir para a primeira página",
19348
+ onClick: () => updatePage(1),
19349
+ disabled: page <= 1,
19350
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-double-left" })
19351
+ }
19352
+ ),
19353
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19354
+ "button",
19355
+ {
19356
+ className: "btn btn-outline-" + (page <= 1 ? "secondary" : "info"),
19357
+ title: "Ir para página anterior",
19358
+ onClick: () => updatePage(Number(page) - 1),
19359
+ disabled: page <= 1,
19360
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-left" })
19361
+ }
19362
+ ),
19363
+ /* @__PURE__ */ jsxRuntimeExports.jsxs("span", { className: "paginas btn btn-outline-info text-body", children: [
19364
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: "fw-bold", children: page }),
19365
+ " / ",
19366
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { children: pages || "?" })
19367
+ ] }),
19368
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19369
+ "button",
19370
+ {
19371
+ className: "btn btn-outline-" + (page >= pages ? "secondary" : "info"),
19372
+ title: "Ir para próxima página",
19373
+ onClick: () => updatePage(Number(page) + 1),
19374
+ disabled: page >= pages,
19375
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-right" })
19376
+ }
19377
+ ),
19378
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
19379
+ "button",
19380
+ {
19381
+ className: "btn btn-outline-" + (page >= pages ? "secondary" : "info"),
19382
+ title: "Ir para a última página",
19383
+ onClick: () => updatePage(pages),
19384
+ disabled: page >= pages,
19385
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("i", { className: "fas fa-angle-double-right" })
19386
+ }
19387
+ )
19388
+ ] }),
19389
+ " "
19390
+ ]
19391
+ }
19392
+ );
19379
19393
  }
19380
19394
  function PanelDashboard({
19381
19395
  title,