@acvl/frontend-components 0.0.8 → 0.0.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 +6 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/src/components/v1/datagrids/index.d.ts +1 -1
- package/dist/esm/index.js +6 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/src/components/v1/datagrids/index.d.ts +1 -1
- package/dist/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -26596,12 +26596,10 @@ const DeleteButton = (props) => {
|
|
|
26596
26596
|
};
|
|
26597
26597
|
|
|
26598
26598
|
const SaveCancelButton = (props) => {
|
|
26599
|
-
|
|
26600
|
-
const handleCancel =
|
|
26601
|
-
|
|
26602
|
-
}
|
|
26603
|
-
//useNavigate
|
|
26604
|
-
]);
|
|
26599
|
+
const navigate = reactRouterDom.useNavigate();
|
|
26600
|
+
const handleCancel = () => {
|
|
26601
|
+
navigate(-1);
|
|
26602
|
+
};
|
|
26605
26603
|
// ===== || KEYDOWN || ===== //
|
|
26606
26604
|
const handleKeyPress = React.useCallback((event) => {
|
|
26607
26605
|
if (event.key === 'Escape') {
|
|
@@ -30870,6 +30868,7 @@ const Base = (props) => {
|
|
|
30870
30868
|
const navigate = reactRouterDom.useNavigate();
|
|
30871
30869
|
React.useImperativeHandle(props.ref, () => ({
|
|
30872
30870
|
getApi: () => apiRef.current,
|
|
30871
|
+
setFilterModel: setFilterModel,
|
|
30873
30872
|
}));
|
|
30874
30873
|
// ========================= || PAGINADO || ========================= //
|
|
30875
30874
|
const [paginationModel, setPaginationModel] = React.useState({ page: 0, pageSize: 50 });
|
|
@@ -31646,7 +31645,7 @@ function DetailPage(props) {
|
|
|
31646
31645
|
return (jsxRuntime.jsx(SaveCancelButton, { slotProps: {
|
|
31647
31646
|
saveBtn: {
|
|
31648
31647
|
loading: mutationIsLoading,
|
|
31649
|
-
disabled: form.formState.isDirty,
|
|
31648
|
+
disabled: !form.formState.isDirty,
|
|
31650
31649
|
...(props.slotProps?.button?.save?.type == 'onClick' ? {
|
|
31651
31650
|
type: 'button',
|
|
31652
31651
|
onClick: onSubmitHandler,
|