jclib-ui 1.0.269 → 1.0.271
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/jclib-ui.es.js +25 -15
- package/dist/jclib-ui.es.js.map +1 -1
- package/dist/jclib-ui.umd.js +2 -2
- package/dist/jclib-ui.umd.js.map +1 -1
- package/dist/src/lib/formEdit/formEdit.d.ts +0 -1
- package/dist/src/lib/hooks/createApiConfig.d.ts +0 -1
- package/dist/src/lib/hooks/useLocalForage.d.ts +0 -1
- package/dist/src/lib/hooks/useStorage.d.ts +0 -1
- package/dist/src/lib/index.d.ts +0 -1
- package/dist/src/lib/inputColor/inputColor.d.ts +0 -1
- package/dist/src/lib/inputs/Input.d.ts +0 -1
- package/dist/src/lib/labelHint/LabelHint.d.ts +0 -1
- package/dist/src/lib/links/Links.d.ts +0 -1
- package/dist/src/lib/links/Links.types.d.ts +0 -1
- package/dist/src/lib/modal/modal.d.ts +0 -1
- package/dist/src/lib/modal/modalBody.d.ts +0 -1
- package/dist/src/lib/modal/modalContent.d.ts +0 -1
- package/dist/src/lib/modal/modalFooter.d.ts +0 -1
- package/dist/src/lib/modal/modalHeader.d.ts +0 -1
- package/dist/src/lib/navbar/OpcoesMenu.d.ts +0 -1
- package/dist/src/lib/navbar/OpcoesMenu.types.d.ts +0 -1
- package/dist/src/lib/paginacao/Paginacao.d.ts +0 -1
- package/dist/src/lib/panelDashboard/PanelDashboard.d.ts +0 -1
- package/dist/src/lib/radioGroup/RadioGroup.d.ts +0 -1
- package/dist/src/lib/table/table.d.ts +0 -1
- package/dist/src/lib/table/table.types.d.ts +0 -1
- package/dist/src/lib/table/tableUtils.d.ts +0 -1
- package/package.json +2 -2
- /package/dist/{BoxSearch → src/lib/BoxSearch}/BoxSearch.d.ts +0 -0
- /package/dist/{DropDownButton → src/lib/DropDownButton}/DropDownButton.d.ts +0 -0
- /package/dist/{InputPass → src/lib/InputPass}/InputPass.d.ts +0 -0
- /package/dist/{alerta → src/lib/alerta}/JCAlert.d.ts +0 -0
- /package/dist/{botaoSalvar → src/lib/botaoSalvar}/botaoSalvar.d.ts +0 -0
- /package/dist/{clipboardArea → src/lib/clipboardArea}/ClipboardArea.d.ts +0 -0
- /package/dist/{hooks → src/lib/hooks}/useApi.d.ts +0 -0
- /package/dist/{inputPesquisa → src/lib/inputPesquisa}/inputPesquisa.d.ts +0 -0
- /package/dist/{modalBox → src/lib/modalBox}/ModalBox.d.ts +0 -0
- /package/dist/{modalFilter → src/lib/modalFilter}/modalFilter.d.ts +0 -0
- /package/dist/{navbar → src/lib/navbar}/Navbar.d.ts +0 -0
package/dist/jclib-ui.es.js
CHANGED
|
@@ -20822,13 +20822,15 @@ const IMaskInputFn = (props, ref) => React__default.createElement(IMaskInputClas
|
|
|
20822
20822
|
const IMaskInput = React__default.forwardRef(IMaskInputFn);
|
|
20823
20823
|
const masks = [cpfMask, cnpjMask];
|
|
20824
20824
|
function InputCpfCnpj({ onChange, value, name, className, ...rest }) {
|
|
20825
|
-
function handleChange(val) {
|
|
20826
|
-
|
|
20827
|
-
|
|
20828
|
-
|
|
20829
|
-
|
|
20830
|
-
|
|
20831
|
-
|
|
20825
|
+
function handleChange(val, _maskRef, ev) {
|
|
20826
|
+
if (ev) {
|
|
20827
|
+
onChange({
|
|
20828
|
+
target: {
|
|
20829
|
+
name,
|
|
20830
|
+
value: val.toUpperCase()
|
|
20831
|
+
}
|
|
20832
|
+
});
|
|
20833
|
+
}
|
|
20832
20834
|
}
|
|
20833
20835
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20834
20836
|
IMaskInput,
|
|
@@ -20843,13 +20845,15 @@ function InputCpfCnpj({ onChange, value, name, className, ...rest }) {
|
|
|
20843
20845
|
);
|
|
20844
20846
|
}
|
|
20845
20847
|
function InputCnpj({ value, name, onChange, className, ...rest }) {
|
|
20846
|
-
function handleChange(val) {
|
|
20847
|
-
|
|
20848
|
-
|
|
20849
|
-
|
|
20850
|
-
|
|
20851
|
-
|
|
20852
|
-
|
|
20848
|
+
function handleChange(val, _maskRef, ev) {
|
|
20849
|
+
if (ev) {
|
|
20850
|
+
onChange({
|
|
20851
|
+
target: {
|
|
20852
|
+
name,
|
|
20853
|
+
value: val.toUpperCase()
|
|
20854
|
+
}
|
|
20855
|
+
});
|
|
20856
|
+
}
|
|
20853
20857
|
}
|
|
20854
20858
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
20855
20859
|
IMaskInput,
|
|
@@ -21606,7 +21610,13 @@ function Paginacao({
|
|
|
21606
21610
|
setLimit,
|
|
21607
21611
|
align = "center"
|
|
21608
21612
|
}) {
|
|
21609
|
-
const [limits] = useState(
|
|
21613
|
+
const [limits] = useState(() => {
|
|
21614
|
+
const arr = [7, 30, 50, 100];
|
|
21615
|
+
if (!arr.includes(limitDefault)) {
|
|
21616
|
+
arr.push(limitDefault);
|
|
21617
|
+
}
|
|
21618
|
+
return arr.sort((a2, b2) => a2 - b2);
|
|
21619
|
+
});
|
|
21610
21620
|
const hasLimit = setLimit !== void 0 && limit !== void 0 && limitDefault !== void 0;
|
|
21611
21621
|
function updatePage(newPage) {
|
|
21612
21622
|
var _a;
|