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.
- package/dist/LoadingReport/LoadingReport.d.ts +2 -2
- package/dist/ScrollContainer/ScrollContainer.d.ts +1 -1
- package/dist/alerta/Alerta.d.ts +1 -1
- package/dist/alerta/Aviso.d.ts +1 -1
- package/dist/alerta/Confirma.d.ts +2 -2
- package/dist/botaoIncluir/botaoIncluir.d.ts +1 -1
- package/dist/boxInfo/BoxInfo.d.ts +3 -3
- package/dist/buttonOptions/buttonOptions.d.ts +1 -1
- package/dist/context/libContext.d.ts +1 -1
- package/dist/dataItem/DataItem.d.ts +1 -1
- package/dist/formDesk/formDesk.d.ts +11 -11
- package/dist/groupBox/GroupBox.d.ts +1 -1
- package/dist/hint/hint.d.ts +1 -1
- package/dist/inputs/CheckBox.d.ts +1 -1
- package/dist/inputs/Formats.d.ts +6 -6
- package/dist/inputs/InputFone.d.ts +1 -1
- package/dist/inputs/inputs.d.ts +9 -9
- package/dist/jclib-ui.es.js +65 -51
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +1 -1
- package/dist/jclib-ui.umd.js.map +1 -1
- package/dist/loading/Loading.d.ts +3 -3
- package/dist/loadingBar/loadingBar.d.ts +1 -1
- package/dist/modal/modal.d.ts +1 -1
- package/dist/navbar/MenuOption.d.ts +1 -1
- package/dist/paginacao/Paginacao.d.ts +2 -1
- package/dist/tabContainer/tabControl.d.ts +3 -3
- package/dist/tabContainer/tabControlContext.d.ts +1 -1
- package/dist/tabContainer/tabSheet/tabSheet.d.ts +2 -2
- package/dist/toggle/Toggle.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
|
5
|
+
loading?: boolean;
|
|
6
6
|
setLoading: any;
|
|
7
|
-
}): import("react/jsx-runtime").JSX.Element
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/alerta/Alerta.d.ts
CHANGED
|
@@ -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
|
|
5
|
+
text?: string;
|
|
6
6
|
children: any;
|
|
7
7
|
}): import("react/jsx-runtime").JSX.Element;
|
|
8
8
|
export { Aviso, Confirma };
|
package/dist/alerta/Aviso.d.ts
CHANGED
|
@@ -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
|
|
4
|
+
text?: string;
|
|
5
5
|
children: any;
|
|
6
|
-
defaultBtn?:
|
|
6
|
+
defaultBtn?: any;
|
|
7
7
|
}): 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
|
|
6
|
-
isVisible?: boolean
|
|
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
|
|
10
|
+
}): 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
|
|
5
|
-
sizeBreak?: number
|
|
6
|
-
lineShortWidth?: number
|
|
7
|
-
gap?: string
|
|
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
|
|
13
|
-
isShort?: boolean
|
|
14
|
-
className?: string
|
|
15
|
-
classNameLabel?: string
|
|
16
|
-
classNameCol?: string
|
|
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
|
|
24
|
-
className?: string
|
|
23
|
+
gap?: number;
|
|
24
|
+
className?: string;
|
|
25
25
|
children: any;
|
|
26
26
|
}): import("react/jsx-runtime").JSX.Element;
|
package/dist/hint/hint.d.ts
CHANGED
package/dist/inputs/Formats.d.ts
CHANGED
|
@@ -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
|
|
10
|
-
decimalScale?: number
|
|
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
|
|
15
|
-
decimalScale?: number
|
|
14
|
+
value?: number;
|
|
15
|
+
decimalScale?: number;
|
|
16
16
|
}): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export function FormatData({ value, incHour }: {
|
|
18
|
-
value?: string
|
|
19
|
-
incHour?: boolean
|
|
18
|
+
value?: string;
|
|
19
|
+
incHour?: boolean;
|
|
20
20
|
}): string;
|
package/dist/inputs/inputs.d.ts
CHANGED
|
@@ -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
|
|
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
|
|
18
|
-
decimalScale?: number
|
|
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
|
|
25
|
-
decimalScale?: number
|
|
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
|
|
39
|
-
options?:
|
|
40
|
-
fields?:
|
|
41
|
-
btnClick?:
|
|
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;
|
package/dist/jclib-ui.es.js
CHANGED
|
@@ -19318,7 +19318,12 @@ function ModalFilter({
|
|
|
19318
19318
|
] }) })
|
|
19319
19319
|
] });
|
|
19320
19320
|
}
|
|
19321
|
-
function Paginacao({
|
|
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(
|
|
19330
|
-
|
|
19331
|
-
|
|
19332
|
-
|
|
19333
|
-
|
|
19334
|
-
|
|
19335
|
-
|
|
19336
|
-
|
|
19337
|
-
|
|
19338
|
-
|
|
19339
|
-
|
|
19340
|
-
|
|
19341
|
-
|
|
19342
|
-
|
|
19343
|
-
|
|
19344
|
-
|
|
19345
|
-
|
|
19346
|
-
|
|
19347
|
-
|
|
19348
|
-
|
|
19349
|
-
|
|
19350
|
-
|
|
19351
|
-
|
|
19352
|
-
|
|
19353
|
-
|
|
19354
|
-
|
|
19355
|
-
|
|
19356
|
-
|
|
19357
|
-
|
|
19358
|
-
|
|
19359
|
-
|
|
19360
|
-
|
|
19361
|
-
|
|
19362
|
-
|
|
19363
|
-
|
|
19364
|
-
|
|
19365
|
-
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
|
|
19371
|
-
|
|
19372
|
-
|
|
19373
|
-
|
|
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,
|