drf-react-by-schema 0.27.18 → 0.28.1
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/README.md +11 -0
- package/dist/@types/index.d.ts +3 -5
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/api.d.ts +17 -15
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +3 -1
- package/dist/components/DataGridBySchemaEditable/BooleanInputCell.d.ts +3 -3
- package/dist/components/DataGridBySchemaEditable/BooleanInputCell.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/BooleanInputCell.js +1 -1
- package/dist/components/DataGridBySchemaEditable/ConditionalEditWrapper.d.ts +2 -2
- package/dist/components/DataGridBySchemaEditable/ConditionalEditWrapper.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/ConditionalEditWrapper.js +3 -3
- package/dist/components/DataGridBySchemaEditable/DataGridDesktop.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/DataGridDesktop.js +13 -1
- package/dist/components/DataGridBySchemaEditable/FileInputCell.d.ts +3 -3
- package/dist/components/DataGridBySchemaEditable/FileInputCell.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/FileInputCell.js +1 -1
- package/dist/components/DataGridBySchemaEditable/GeoEditCell.d.ts +10 -0
- package/dist/components/DataGridBySchemaEditable/GeoEditCell.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GeoEditCell.js +81 -0
- package/dist/components/DataGridBySchemaEditable/GeoThumbCell.d.ts +11 -0
- package/dist/components/DataGridBySchemaEditable/GeoThumbCell.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/GeoThumbCell.js +84 -0
- package/dist/components/DataGridBySchemaEditable/GridDateInput.d.ts +2 -2
- package/dist/components/DataGridBySchemaEditable/GridDateInput.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/GridDateInput.js +4 -5
- package/dist/components/DataGridBySchemaEditable/GridDateTimeInput.d.ts +2 -2
- package/dist/components/DataGridBySchemaEditable/GridDateTimeInput.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/GridDateTimeInput.js +4 -5
- package/dist/components/DataGridBySchemaEditable/GridDecimalInput.d.ts +2 -2
- package/dist/components/DataGridBySchemaEditable/GridDecimalInput.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/GridDecimalInput.js +4 -5
- package/dist/components/DataGridBySchemaEditable/GridGenericInput.d.ts +1 -1
- package/dist/components/DataGridBySchemaEditable/GridGenericInput.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/GridGenericInput.js +1 -1
- package/dist/components/DataGridBySchemaEditable/GridPatternInput.d.ts +2 -2
- package/dist/components/DataGridBySchemaEditable/GridPatternInput.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/GridPatternInput.js +4 -5
- package/dist/components/DataGridBySchemaEditable/SelectEditInputCell.d.ts +1 -1
- package/dist/components/DataGridBySchemaEditable/SelectEditInputCell.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/SelectEditInputCell.js +1 -1
- package/dist/components/DataGridBySchemaEditable/geoConstants.d.ts +5 -0
- package/dist/components/DataGridBySchemaEditable/geoConstants.d.ts.map +1 -0
- package/dist/components/DataGridBySchemaEditable/geoConstants.js +6 -0
- package/dist/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.d.ts +1 -1
- package/dist/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.js +14 -19
- package/dist/components/DataGridBySchemaEditable/utils/columnFactory.d.ts +1 -1
- package/dist/components/DataGridBySchemaEditable/utils/columnFactory.d.ts.map +1 -1
- package/dist/components/DataGridBySchemaEditable/utils/columnFactory.js +41 -26
- package/dist/components/DataGridBySchemaEditable/utils.d.ts +3 -2
- package/dist/components/DataGridBySchemaEditable/utils.d.ts.map +1 -1
- package/dist/components/forms/DialogFormBySchema.d.ts.map +1 -1
- package/dist/components/forms/DialogFormBySchema.js +27 -2
- package/dist/components/forms/FieldBySchema.d.ts.map +1 -1
- package/dist/components/forms/FieldBySchema.js +7 -0
- package/dist/components/forms/Form.d.ts.map +1 -1
- package/dist/components/forms/Form.js +69 -40
- package/dist/components/forms/inputs/EditableAutocompleteFieldBySchema.d.ts +4 -5
- package/dist/components/forms/inputs/EditableAutocompleteFieldBySchema.d.ts.map +1 -1
- package/dist/components/forms/inputs/EditableAutocompleteFieldBySchema.js +2 -2
- package/dist/components/forms/inputs/GeometryFieldBySchema.d.ts +8 -0
- package/dist/components/forms/inputs/GeometryFieldBySchema.d.ts.map +1 -0
- package/dist/components/forms/inputs/GeometryFieldBySchema.js +57 -0
- package/dist/components/forms/inputs/MapGeometryPicker.d.ts +18 -0
- package/dist/components/forms/inputs/MapGeometryPicker.d.ts.map +1 -0
- package/dist/components/forms/inputs/MapGeometryPicker.js +248 -0
- package/dist/context/APIWrapper.d.ts.map +1 -1
- package/dist/context/APIWrapper.js +10 -2
- package/dist/index.d.ts +7 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -11
- package/dist/styles/theme.d.ts +1 -1
- package/dist/styles/theme.d.ts.map +1 -1
- package/dist/utils/utils.d.ts +39 -5
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +114 -19
- package/package.json +36 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GridRenderEditCellParams } from '@mui/x-data-grid';
|
|
3
3
|
import { DateView } from '@mui/x-date-pickers';
|
|
4
|
-
export
|
|
4
|
+
export default function GridDateInput(props: GridRenderEditCellParams & {
|
|
5
5
|
dateViews?: DateView[];
|
|
6
6
|
helperText?: string;
|
|
7
|
-
})
|
|
7
|
+
}): React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=GridDateInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridDateInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridDateInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoE,MAAM,OAAO,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAqB,MAAM,kBAAkB,CAAC;AAI/E,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAiB/C,
|
|
1
|
+
{"version":3,"file":"GridDateInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridDateInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoE,MAAM,OAAO,CAAC;AACzF,OAAO,EAAE,wBAAwB,EAAqB,MAAM,kBAAkB,CAAC;AAI/E,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAiB/C,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,KAAK,EAAE,wBAAwB,GAAG;IAChC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,qBAiIF"}
|
|
@@ -45,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
48
|
+
exports.default = GridDateInput;
|
|
49
49
|
const react_1 = __importStar(require("react"));
|
|
50
50
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
51
51
|
const DesktopDatePicker_1 = require("@mui/x-date-pickers/DesktopDatePicker");
|
|
@@ -63,7 +63,7 @@ function buildOpenTo(dateViews) {
|
|
|
63
63
|
}
|
|
64
64
|
return 'year';
|
|
65
65
|
}
|
|
66
|
-
|
|
66
|
+
function GridDateInput(props) {
|
|
67
67
|
const { id, value, field, dateViews, error, helperText, hasFocus, colDef } = props;
|
|
68
68
|
const apiRef = (0, x_data_grid_1.useGridApiContext)();
|
|
69
69
|
const [openPicker, setOpenPicker] = (0, react_1.useState)(false);
|
|
@@ -107,7 +107,7 @@ const GridDateInput = (props) => {
|
|
|
107
107
|
}
|
|
108
108
|
}, [hasFocus]);
|
|
109
109
|
const inputFormat = (0, utils_1.buildDateFormatBySchema)(dateViews);
|
|
110
|
-
const handleChange = (newValue) => __awaiter(
|
|
110
|
+
const handleChange = (newValue) => __awaiter(this, void 0, void 0, function* () {
|
|
111
111
|
yield apiRef.current.setEditCellValue({ id, field, value: newValue });
|
|
112
112
|
// apiRef.current.stopCellEditMode({ id, field });
|
|
113
113
|
});
|
|
@@ -163,5 +163,4 @@ const GridDateInput = (props) => {
|
|
|
163
163
|
},
|
|
164
164
|
},
|
|
165
165
|
} })));
|
|
166
|
-
}
|
|
167
|
-
exports.GridDateInput = GridDateInput;
|
|
166
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GridRenderEditCellParams } from '@mui/x-data-grid';
|
|
3
|
-
export
|
|
3
|
+
export default function GridDateTimeInput(props: GridRenderEditCellParams & {
|
|
4
4
|
helperText?: string;
|
|
5
|
-
})
|
|
5
|
+
}): React.JSX.Element;
|
|
6
6
|
//# sourceMappingURL=GridDateTimeInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridDateTimeInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridDateTimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GridDateTimeInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridDateTimeInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,wBAAwB,EAAqB,MAAM,kBAAkB,CAAC;AAS/E,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,KAAK,EAAE,wBAAwB,GAAG;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,qBA6HF"}
|
|
@@ -45,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
48
|
+
exports.default = GridDateTimeInput;
|
|
49
49
|
const react_1 = __importStar(require("react"));
|
|
50
50
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
51
51
|
const DesktopDateTimePicker_1 = require("@mui/x-date-pickers/DesktopDateTimePicker");
|
|
@@ -53,7 +53,7 @@ const LocalizationProvider_1 = require("@mui/x-date-pickers/LocalizationProvider
|
|
|
53
53
|
const AdapterDayjs_1 = require("@mui/x-date-pickers/AdapterDayjs");
|
|
54
54
|
const dayjs_1 = __importDefault(require("dayjs"));
|
|
55
55
|
const grid_1 = require("../../styles/grid");
|
|
56
|
-
|
|
56
|
+
function GridDateTimeInput(props) {
|
|
57
57
|
const { id, value, field, error, helperText, hasFocus, colDef } = props;
|
|
58
58
|
const apiRef = (0, x_data_grid_1.useGridApiContext)();
|
|
59
59
|
const [openPicker, setOpenPicker] = (0, react_1.useState)(false);
|
|
@@ -96,7 +96,7 @@ const GridDateTimeInput = (props) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}, [hasFocus]);
|
|
99
|
-
const handleChange = (newValue) => __awaiter(
|
|
99
|
+
const handleChange = (newValue) => __awaiter(this, void 0, void 0, function* () {
|
|
100
100
|
yield apiRef.current.setEditCellValue({ id, field, value: newValue });
|
|
101
101
|
// apiRef.current.stopCellEditMode({ id, field });
|
|
102
102
|
});
|
|
@@ -151,5 +151,4 @@ const GridDateTimeInput = (props) => {
|
|
|
151
151
|
},
|
|
152
152
|
},
|
|
153
153
|
} })));
|
|
154
|
-
}
|
|
155
|
-
exports.GridDateTimeInput = GridDateTimeInput;
|
|
154
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GridRenderEditCellParams } from '@mui/x-data-grid';
|
|
3
|
-
export
|
|
3
|
+
export default function GridDecimalInput(props: GridRenderEditCellParams & {
|
|
4
4
|
decimalPlaces?: number;
|
|
5
5
|
prefix?: string;
|
|
6
6
|
suffix?: string;
|
|
7
7
|
isCurrency?: boolean;
|
|
8
8
|
helperText?: string;
|
|
9
|
-
})
|
|
9
|
+
}): React.JSX.Element;
|
|
10
10
|
//# sourceMappingURL=GridDecimalInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridDecimalInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridDecimalInput.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"GridDecimalInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridDecimalInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAqB,MAAM,kBAAkB,CAAC;AAW/E,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,KAAK,EAAE,wBAAwB,GAAG;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,qBAiEF"}
|
|
@@ -45,13 +45,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
48
|
+
exports.default = GridDecimalInput;
|
|
49
49
|
const react_1 = __importStar(require("react"));
|
|
50
50
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
51
51
|
const react_number_format_1 = require("react-number-format");
|
|
52
52
|
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
53
53
|
const grid_1 = require("../../styles/grid");
|
|
54
|
-
|
|
54
|
+
function GridDecimalInput(props) {
|
|
55
55
|
const { id, value, field, decimalPlaces, prefix, suffix, isCurrency, colDef, error, helperText, hasFocus, } = props;
|
|
56
56
|
const apiRef = (0, x_data_grid_1.useGridApiContext)();
|
|
57
57
|
const inputCallbackRef = (0, react_1.useCallback)((node) => {
|
|
@@ -65,7 +65,7 @@ const GridDecimalInput = (props) => {
|
|
|
65
65
|
const prefixFinal = isCurrency ? 'R$ ' : prefix !== '' ? `${prefix} ` : '';
|
|
66
66
|
const suffixFinal = suffix !== '' ? ` ${suffix}` : '';
|
|
67
67
|
const decimalScale = typeof decimalPlaces === 'undefined' ? 2 : decimalPlaces;
|
|
68
|
-
const handleChange = (newValue) => __awaiter(
|
|
68
|
+
const handleChange = (newValue) => __awaiter(this, void 0, void 0, function* () {
|
|
69
69
|
yield apiRef.current.setEditCellValue({ id, field, value: newValue });
|
|
70
70
|
});
|
|
71
71
|
return (react_1.default.createElement(react_number_format_1.NumericFormat, { key: field, id: field, inputRef: inputCallbackRef, onValueChange: (values) => {
|
|
@@ -75,5 +75,4 @@ const GridDecimalInput = (props) => {
|
|
|
75
75
|
'aria-label': `Editar ${colDef.headerName || field}. Pressione Enter para salvar toda a linha.`,
|
|
76
76
|
},
|
|
77
77
|
}, error: error, helperText: helperText, sx: grid_1.seamlessTextFieldStyle }));
|
|
78
|
-
}
|
|
79
|
-
exports.GridDecimalInput = GridDecimalInput;
|
|
78
|
+
}
|
|
@@ -4,5 +4,5 @@ export interface GridGenericInputProps extends GridRenderCellParams {
|
|
|
4
4
|
error?: boolean;
|
|
5
5
|
helperText?: string;
|
|
6
6
|
}
|
|
7
|
-
export
|
|
7
|
+
export default function GridGenericInput(props: GridGenericInputProps): React.JSX.Element;
|
|
8
8
|
//# sourceMappingURL=GridGenericInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridGenericInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridGenericInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAqB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI3E,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,
|
|
1
|
+
{"version":3,"file":"GridGenericInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridGenericInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAqB,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI3E,MAAM,WAAW,qBAAsB,SAAQ,oBAAoB;IACjE,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,KAAK,EAAE,qBAAqB,qBAsBpE"}
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
17
|
+
exports.default = GridGenericInput;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
19
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
20
20
|
const Box_1 = __importDefault(require("@mui/material/Box"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { GridRenderEditCellParams } from '@mui/x-data-grid';
|
|
3
|
-
export
|
|
3
|
+
export default function GridPatternInput({ id, value, field, patternFormat, error, helperText, hasFocus, colDef, }: GridRenderEditCellParams & {
|
|
4
4
|
patternFormat?: string;
|
|
5
5
|
helperText?: string;
|
|
6
|
-
})
|
|
6
|
+
}): React.JSX.Element;
|
|
7
7
|
//# sourceMappingURL=GridPatternInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GridPatternInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridPatternInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAqB,MAAM,kBAAkB,CAAC;AAK/E,
|
|
1
|
+
{"version":3,"file":"GridPatternInput.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/GridPatternInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,wBAAwB,EAAqB,MAAM,kBAAkB,CAAC;AAK/E,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,EAAE,EACF,KAAK,EACL,KAAK,EACL,aAAqB,EACrB,KAAK,EACL,UAAU,EACV,QAAQ,EACR,MAAM,GACP,EAAE,wBAAwB,GAAG;IAAE,aAAa,CAAC,EAAE,MAAM,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,qBAyC5E"}
|
|
@@ -45,13 +45,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
48
|
+
exports.default = GridPatternInput;
|
|
49
49
|
const react_1 = __importStar(require("react"));
|
|
50
50
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
51
51
|
const react_number_format_1 = require("react-number-format");
|
|
52
52
|
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
53
53
|
const grid_1 = require("../../styles/grid");
|
|
54
|
-
|
|
54
|
+
function GridPatternInput({ id, value, field, patternFormat = 'cpf', error, helperText, hasFocus, colDef, }) {
|
|
55
55
|
const apiRef = (0, x_data_grid_1.useGridApiContext)();
|
|
56
56
|
const inputCallbackRef = (0, react_1.useCallback)((node) => {
|
|
57
57
|
if (node !== null && hasFocus) {
|
|
@@ -61,7 +61,7 @@ const GridPatternInput = ({ id, value, field, patternFormat = 'cpf', error, help
|
|
|
61
61
|
});
|
|
62
62
|
}
|
|
63
63
|
}, [hasFocus]);
|
|
64
|
-
const handleChange = (newValue) => __awaiter(
|
|
64
|
+
const handleChange = (newValue) => __awaiter(this, void 0, void 0, function* () {
|
|
65
65
|
yield apiRef.current.setEditCellValue({ id, field, value: newValue });
|
|
66
66
|
});
|
|
67
67
|
return (react_1.default.createElement(react_number_format_1.PatternFormat, { key: field, id: field, inputRef: inputCallbackRef, onValueChange: (values) => {
|
|
@@ -71,5 +71,4 @@ const GridPatternInput = ({ id, value, field, patternFormat = 'cpf', error, help
|
|
|
71
71
|
'aria-label': `Editar ${colDef.headerName || field}. Pressione Enter para salvar toda a linha.`,
|
|
72
72
|
},
|
|
73
73
|
}, error: error, helperText: helperText, sx: grid_1.seamlessTextFieldStyle }));
|
|
74
|
-
}
|
|
75
|
-
exports.GridPatternInput = GridPatternInput;
|
|
74
|
+
}
|
|
@@ -19,6 +19,6 @@ interface SelectEditInputCellProps {
|
|
|
19
19
|
helperText?: string;
|
|
20
20
|
hasFocus?: boolean;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export default function SelectEditInputCell({ field, id, value, column, type, options, isIndexField, multiple, onEditModel, fieldsLayout, sx, setDialog, error, helperText, hasFocus, }: SelectEditInputCellProps): JSX.Element;
|
|
23
23
|
export {};
|
|
24
24
|
//# sourceMappingURL=SelectEditInputCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectEditInputCell.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/SelectEditInputCell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAoC,MAAM,OAAO,CAAC;AAGrE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAMtD,OAAO,EACL,eAAe,EACf,YAAY,EACZ,IAAI,EACJ,0BAA0B,EAE1B,MAAM,EACP,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAM9E,UAAU,wBAAwB;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,EAAE,0BAA0B,CAAC;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,CAAC,MAAM,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC;IAClD,YAAY,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,EAAE,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACvE,YAAY,CAAC,EAAE,eAAe,EAAE,CAAC;IACjC,EAAE,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC;IACpB,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC5C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,
|
|
1
|
+
{"version":3,"file":"SelectEditInputCell.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/SelectEditInputCell.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,GAAG,EAAoC,MAAM,OAAO,CAAC;AAGrE,O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AAG,GAAG,CAAC,OAAO,CAgSxC"}
|
|
@@ -45,7 +45,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
45
45
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
46
46
|
};
|
|
47
47
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48
|
-
exports.
|
|
48
|
+
exports.default = SelectEditInputCell;
|
|
49
49
|
const react_1 = __importStar(require("react"));
|
|
50
50
|
const x_data_grid_1 = require("@mui/x-data-grid");
|
|
51
51
|
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"geoConstants.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/geoConstants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc;;;CAA8B,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GIS_THUMB_SIZE = void 0;
|
|
4
|
+
// Shared sizing for PostGIS geometry grid cells. Matches the thumbnail image
|
|
5
|
+
// height used by image/file columns (maxHeight 100px).
|
|
6
|
+
exports.GIS_THUMB_SIZE = { w: 150, h: 100 };
|
|
@@ -24,7 +24,7 @@ interface UseProcessRowUpdateProps<T extends TField = void> {
|
|
|
24
24
|
onEditModel?: (p: OnEditModelType<T>) => void;
|
|
25
25
|
}
|
|
26
26
|
export declare const useProcessRowUpdate: <T extends TField = void>({ preparedColumns, yupValidationSchema, setDataGridLoading, indexField, processingRow, setValidationErrors, modelParent, modelParentId, model, schema, addExistingModel, updateOptionsAC, apiRef, setDataGridRows, onProcessRow, handleStopEditing, }: UseProcessRowUpdateProps<T>) => {
|
|
27
|
-
processRowUpdate: (editedRow: Item<T>, originalRow: Item<T>) => Promise<
|
|
27
|
+
processRowUpdate: (editedRow: Item<T>, originalRow: Item<T>) => Promise<Item<T>>;
|
|
28
28
|
};
|
|
29
29
|
export {};
|
|
30
30
|
//# sourceMappingURL=useProcessRowUpdate.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useProcessRowUpdate.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAmB,MAAM,KAAK,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EACL,IAAI,EACJ,UAAU,EACV,EAAE,EACF,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,QAAQ,EACR,MAAM,EACP,MAAM,iBAAiB,CAAC;AAUzB,UAAU,wBAAwB,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI;IACxD,eAAe,EAAE,0BAA0B,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC;IACxD,mBAAmB,EAAE,SAAS,GAAG,IAAI,CAAC;IACtC,kBAAkB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC7C,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;IACxB,aAAa,EAAE,KAAK,CAAC,SAAS,CAAC,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC,CAAC;IACvD,mBAAmB,EAAE,KAAK,CAAC,QAAQ,CACjC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAChE,CAAC;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,EAAE,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACpC,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,CAAC;IAClE,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IACrC,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,eAAe,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,CAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CAC/C;AAED,eAAO,MAAM,mBAAmB,GAAI,CAAC,SAAS,MAAM,GAAG,IAAI,EAAE,uPAkB1D,wBAAwB,CAAC,CAAC,CAAC;kCAEe,IAAI,CAAC,CAAC,CAAC,eAAe,IAAI,CAAC,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"useProcessRowUpdate.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridBySchemaEditable/hooks/useProcessRowUpdate.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAmB,MAAM,KAAK,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EACL,IAAI,EACJ,UAAU,EACV,EAAE,EACF,eAAe,EACf,eAAe,EACf,0BAA0B,EAC1B,QAAQ,EACR,MAAM,EACP,MAAM,iBAAiB,CAAC;AAUzB,UAAU,wBAAwB,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI;IACxD,eAAe,EAAE,0BAA0B,CAAC,CAAC,CAAC,EAA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,eAAe,IAAI,CAAC,CAAC,CAAC;CAsNzE,CAAC"}
|
|
@@ -173,28 +173,23 @@ const useProcessRowUpdate = ({ preparedColumns, yupValidationSchema, setDataGrid
|
|
|
173
173
|
schema,
|
|
174
174
|
});
|
|
175
175
|
if (axios_1.default.isAxiosError(response)) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
else if (typeof msgs === 'string') {
|
|
188
|
-
rowErrors[field] = msgs;
|
|
189
|
-
}
|
|
190
|
-
});
|
|
176
|
+
// Map DRF field validation errors (e.g. raised in a serializer's
|
|
177
|
+
// `validate()`) onto the corresponding cells of the edited row, so they
|
|
178
|
+
// show the message under each field, just like a yup error. Only keys
|
|
179
|
+
// present in the schema are mapped (they match the grid columns).
|
|
180
|
+
const fieldErrors = (0, utils_1.getFieldErrorsFromResponse)((_b = response.response) === null || _b === void 0 ? void 0 : _b.data, schema);
|
|
181
|
+
const rowErrors = {};
|
|
182
|
+
Object.entries(fieldErrors).forEach(([field, { message }]) => {
|
|
183
|
+
rowErrors[field] = message;
|
|
184
|
+
});
|
|
185
|
+
if (Object.keys(rowErrors).length > 0) {
|
|
191
186
|
setValidationErrors((prev) => (Object.assign(Object.assign({}, prev), { [editedRow.id]: rowErrors })));
|
|
192
|
-
errorMessage = Object.entries(rowErrors)
|
|
193
|
-
.map(([field, message]) => `${field}: ${message}`)
|
|
194
|
-
.join('; ');
|
|
195
187
|
}
|
|
188
|
+
const errorMessage = Object.entries(rowErrors)
|
|
189
|
+
.map(([field, message]) => `${field}: ${message}`)
|
|
190
|
+
.join('; ');
|
|
196
191
|
setDataGridLoading(false);
|
|
197
|
-
throw new Error(errorMessage);
|
|
192
|
+
throw new Error(errorMessage || 'Erro desconhecido no servidor');
|
|
198
193
|
}
|
|
199
194
|
setValidationErrors((prev) => {
|
|
200
195
|
const newState = Object.assign({}, prev);
|
|
@@ -2,8 +2,8 @@ import { RefObject } from 'react';
|
|
|
2
2
|
import { GridRowId, GridRenderCellParams } from '@mui/x-data-grid';
|
|
3
3
|
import { GridApiCommunity } from '@mui/x-data-grid/internals';
|
|
4
4
|
import { SchemaType, GridEnrichedBySchemaColDef, OptionsAC, OnEditModelType, CustomAction, LinkComponentType, CustomFormFieldLayouts, FieldKey, CustomColumnOperations, RowAction, TField, ConditionalVisible } from '../../../@types';
|
|
5
|
-
import { ServerEndPoint } from '../../../context/DRFReactBySchemaContext';
|
|
6
5
|
import { DialogType } from '../../../context/APIWrapperContext';
|
|
6
|
+
import { ServerEndPoint } from '../../../context/DRFReactBySchemaContext';
|
|
7
7
|
export interface BuildPreparedColumnsProps<T extends TField = void> {
|
|
8
8
|
apiRef: RefObject<GridApiCommunity>;
|
|
9
9
|
schema: SchemaType<T>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"columnFactory.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridBySchemaEditable/utils/columnFactory.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAA4B,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EACL,UAAU,EACV,0BAA0B,EAC1B,SAAS,EACT,eAAe,
|
|
1
|
+
{"version":3,"file":"columnFactory.d.ts","sourceRoot":"","sources":["../../../../src/components/DataGridBySchemaEditable/utils/columnFactory.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIzC,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAA4B,MAAM,kBAAkB,CAAC;AAC7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EACL,UAAU,EACV,0BAA0B,E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EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,sBAAsB,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC,CAAC;IACnD,qBAAqB,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,KAAK,MAAM,CAAC;IAC5D,cAAc,EAAE,cAAc,CAAC;CAChC;AA4BD,wBAAsB,oBAAoB,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,EAAE,EAClE,MAAM,EACN,MAAM,EACN,OAAO,EACP,UAAU,EACV,OAAO,EACP,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,WAAW,EACX,sBAAsB,EACtB,SAAS,EACT,UAAU,EACV,kBAAkB,EAClB,QAAQ,EACR,sBAAsB,EACtB,qBAAqB,EACrB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,GACf,EAAE,yBAAyB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC,CAAC,EAAE,CAAC,CAwWzE"}
|
|
@@ -18,15 +18,18 @@ const dayjs_1 = __importDefault(require("dayjs"));
|
|
|
18
18
|
const string_mask_1 = __importDefault(require("string-mask"));
|
|
19
19
|
const Typography_1 = __importDefault(require("@mui/material/Typography"));
|
|
20
20
|
const utils_1 = require("../../../utils");
|
|
21
|
-
const SelectEditInputCell_1 = require("../SelectEditInputCell");
|
|
22
|
-
const GridDateInput_1 = require("../GridDateInput");
|
|
23
|
-
const GridDateTimeInput_1 = require("../GridDateTimeInput");
|
|
24
|
-
const GridDecimalInput_1 = require("../GridDecimalInput");
|
|
25
|
-
const GridPatternInput_1 = require("../GridPatternInput");
|
|
26
|
-
const BooleanInputCell_1 = require("../BooleanInputCell");
|
|
27
|
-
const FileInputCell_1 = require("../FileInputCell");
|
|
28
|
-
const GridGenericInput_1 = require("../GridGenericInput");
|
|
29
21
|
const utils_2 = require("../utils");
|
|
22
|
+
const geoConstants_1 = require("../geoConstants");
|
|
23
|
+
const SelectEditInputCell_1 = __importDefault(require("../SelectEditInputCell"));
|
|
24
|
+
const GridDateInput_1 = __importDefault(require("../GridDateInput"));
|
|
25
|
+
const GridDateTimeInput_1 = __importDefault(require("../GridDateTimeInput"));
|
|
26
|
+
const GridDecimalInput_1 = __importDefault(require("../GridDecimalInput"));
|
|
27
|
+
const BooleanInputCell_1 = __importDefault(require("../BooleanInputCell"));
|
|
28
|
+
const FileInputCell_1 = __importDefault(require("../FileInputCell"));
|
|
29
|
+
const GridGenericInput_1 = __importDefault(require("../GridGenericInput"));
|
|
30
|
+
const GridPatternInput_1 = __importDefault(require("../GridPatternInput"));
|
|
31
|
+
const GeoThumbCell_1 = __importDefault(require("../GeoThumbCell"));
|
|
32
|
+
const GeoEditCell_1 = __importDefault(require("../GeoEditCell"));
|
|
30
33
|
const ConditionalEditWrapper_1 = __importDefault(require("../ConditionalEditWrapper"));
|
|
31
34
|
/**
|
|
32
35
|
* Applies a `pattern_format` mask to a column, merging with any existing valueFormatter.
|
|
@@ -35,7 +38,7 @@ const applyPatternFormatToColumn = (column, patternFormat) => {
|
|
|
35
38
|
column.patternFormat = patternFormat;
|
|
36
39
|
const existingValueFormatter = column.valueFormatter;
|
|
37
40
|
column.valueFormatter = (value, row, colDef, apiRef) => {
|
|
38
|
-
|
|
41
|
+
const formatted = existingValueFormatter
|
|
39
42
|
? existingValueFormatter(value, row, colDef, apiRef)
|
|
40
43
|
: value;
|
|
41
44
|
if (typeof formatted !== 'string' || !formatted) {
|
|
@@ -49,15 +52,17 @@ function buildPreparedColumns(_a) {
|
|
|
49
52
|
return __awaiter(this, arguments, void 0, function* ({ apiRef, schema, columns, isEditable, actions, LinkComponent, stateToLink, validationErrors, optionsAC, onEditModel, customFieldFormLayouts, setDialog, indexField, indexFieldMinWidth, minWidth, customColumnOperations, customLinkDestination, indexFieldBasePath, conditionalVisible, serverEndPoint, }) {
|
|
50
53
|
const promises = columns.map((col) => __awaiter(this, void 0, void 0, function* () {
|
|
51
54
|
const fieldSchema = schema[col.field];
|
|
52
|
-
if (!fieldSchema)
|
|
55
|
+
if (!fieldSchema) {
|
|
53
56
|
return col;
|
|
57
|
+
}
|
|
58
|
+
const fieldType = fieldSchema.type;
|
|
54
59
|
const isIndexField = indexField !== '' && col.field === indexField;
|
|
55
60
|
let column = Object.assign({}, col);
|
|
56
61
|
column.editable =
|
|
57
62
|
isEditable &&
|
|
58
63
|
!col.disabled &&
|
|
59
|
-
(!fieldSchema.read_only || ['field', 'nested object'].includes(
|
|
60
|
-
switch (
|
|
64
|
+
(!fieldSchema.read_only || ['field', 'nested object'].includes(fieldType));
|
|
65
|
+
switch (fieldType) {
|
|
61
66
|
case 'date':
|
|
62
67
|
column.type = 'date';
|
|
63
68
|
if (!column.minWidth) {
|
|
@@ -70,7 +75,7 @@ function buildPreparedColumns(_a) {
|
|
|
70
75
|
column.renderEditCell = (p) => {
|
|
71
76
|
var _a;
|
|
72
77
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
73
|
-
const inputCell = (react_1.default.createElement(GridDateInput_1.
|
|
78
|
+
const inputCell = (react_1.default.createElement(GridDateInput_1.default, Object.assign({}, p, { column: column, dateViews: fieldSchema.date_views, error: Boolean(err), helperText: err })));
|
|
74
79
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
75
80
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
76
81
|
}
|
|
@@ -88,7 +93,7 @@ function buildPreparedColumns(_a) {
|
|
|
88
93
|
column.renderEditCell = (p) => {
|
|
89
94
|
var _a;
|
|
90
95
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
91
|
-
const inputCell = (react_1.default.createElement(GridDateTimeInput_1.
|
|
96
|
+
const inputCell = (react_1.default.createElement(GridDateTimeInput_1.default, Object.assign({}, p, { column: column, error: Boolean(err), helperText: err })));
|
|
92
97
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
93
98
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
94
99
|
}
|
|
@@ -110,7 +115,7 @@ function buildPreparedColumns(_a) {
|
|
|
110
115
|
column.renderEditCell = (p) => {
|
|
111
116
|
var _a;
|
|
112
117
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
113
|
-
const inputCell = (react_1.default.createElement(SelectEditInputCell_1.
|
|
118
|
+
const inputCell = (react_1.default.createElement(SelectEditInputCell_1.default, Object.assign({}, p, { column: column, type: fieldType, options: optionsAC[col.field] || [], isIndexField: isIndexField, onEditModel: onEditModel, fieldsLayout: customFieldFormLayouts === null || customFieldFormLayouts === void 0 ? void 0 : customFieldFormLayouts[col.field], setDialog: setDialog, multiple: fieldType === 'list' || fieldSchema.many, error: Boolean(err), helperText: err })));
|
|
114
119
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
115
120
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
116
121
|
}
|
|
@@ -131,7 +136,7 @@ function buildPreparedColumns(_a) {
|
|
|
131
136
|
column.renderEditCell = (p) => {
|
|
132
137
|
var _a;
|
|
133
138
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
134
|
-
const inputCell = (react_1.default.createElement(BooleanInputCell_1.
|
|
139
|
+
const inputCell = (react_1.default.createElement(BooleanInputCell_1.default, Object.assign({}, p, { column: column, error: Boolean(err), helperText: err })));
|
|
135
140
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
136
141
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
137
142
|
}
|
|
@@ -143,7 +148,7 @@ function buildPreparedColumns(_a) {
|
|
|
143
148
|
case 'float':
|
|
144
149
|
case 'number':
|
|
145
150
|
case 'integer':
|
|
146
|
-
const ds = fieldSchema.decimal_places || (
|
|
151
|
+
const ds = fieldSchema.decimal_places || (fieldType === 'integer' ? 0 : 2);
|
|
147
152
|
column.type = 'number';
|
|
148
153
|
column.valueFormatter = (value) => {
|
|
149
154
|
if (value === null || value === undefined)
|
|
@@ -154,13 +159,13 @@ function buildPreparedColumns(_a) {
|
|
|
154
159
|
});
|
|
155
160
|
};
|
|
156
161
|
column.filterOperators = (0, utils_2.quantityOnlyOperators)({
|
|
157
|
-
type:
|
|
162
|
+
type: fieldType === 'decimal' ? 'float' : 'number',
|
|
158
163
|
});
|
|
159
164
|
if (isEditable && !col.disabled) {
|
|
160
165
|
column.renderEditCell = (p) => {
|
|
161
166
|
var _a;
|
|
162
167
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
163
|
-
const inputCell = (react_1.default.createElement(GridDecimalInput_1.
|
|
168
|
+
const inputCell = (react_1.default.createElement(GridDecimalInput_1.default, Object.assign({}, p, { decimalPlaces: ds, isCurrency: fieldSchema.is_currency, prefix: fieldSchema.prefix || '', suffix: fieldSchema.suffix || '', column: column, error: Boolean(err), helperText: err })));
|
|
164
169
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
165
170
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
166
171
|
}
|
|
@@ -176,8 +181,7 @@ function buildPreparedColumns(_a) {
|
|
|
176
181
|
column.renderCell = (p) => {
|
|
177
182
|
var _a, _b;
|
|
178
183
|
return (react_1.default.createElement(react_1.default.Fragment, null, ((_a = p.value) === null || _a === void 0 ? void 0 : _a.name) &&
|
|
179
|
-
(((_b = p.value) === null || _b === void 0 ? void 0 : _b.url) &&
|
|
180
|
-
(fieldSchema.type === 'image upload' || fieldSchema.type === 'image') ? (react_1.default.createElement("img", { src: `${serverEndPoint === null || serverEndPoint === void 0 ? void 0 : serverEndPoint.url}${p.value.url}`, alt: p.value.name, style: { width: '100%', maxHeight: '100px', objectFit: 'cover' } })) : (react_1.default.createElement(Typography_1.default, { variant: "body2" }, p.value.name.split('/').pop())))));
|
|
184
|
+
(((_b = p.value) === null || _b === void 0 ? void 0 : _b.url) && (fieldType === 'image upload' || fieldType === 'image') ? (react_1.default.createElement("img", { src: `${serverEndPoint === null || serverEndPoint === void 0 ? void 0 : serverEndPoint.url}${p.value.url}`, alt: p.value.name, style: { width: '100%', maxHeight: '100px', objectFit: 'cover' } })) : (react_1.default.createElement(Typography_1.default, { variant: "body2" }, p.value.name.split('/').pop())))));
|
|
181
185
|
};
|
|
182
186
|
if (isEditable && !col.disabled) {
|
|
183
187
|
column.renderEditCell = (p) => {
|
|
@@ -185,10 +189,10 @@ function buildPreparedColumns(_a) {
|
|
|
185
189
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
186
190
|
const acc = fieldSchema.allowed_mime_types
|
|
187
191
|
? fieldSchema.allowed_mime_types.join(', ')
|
|
188
|
-
:
|
|
192
|
+
: fieldType.includes('image')
|
|
189
193
|
? 'image/*'
|
|
190
194
|
: '*';
|
|
191
|
-
const inputCell = (react_1.default.createElement(FileInputCell_1.
|
|
195
|
+
const inputCell = (react_1.default.createElement(FileInputCell_1.default, Object.assign({ accept: acc, fileType: fieldType, column: column, required: (0, utils_1.isFieldRequired)(fieldSchema) }, p, { error: Boolean(err), helperText: err })));
|
|
192
196
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
193
197
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
194
198
|
}
|
|
@@ -196,12 +200,23 @@ function buildPreparedColumns(_a) {
|
|
|
196
200
|
};
|
|
197
201
|
}
|
|
198
202
|
break;
|
|
203
|
+
case 'point':
|
|
204
|
+
case 'polygon':
|
|
205
|
+
case 'multipoint':
|
|
206
|
+
case 'multipolygon':
|
|
207
|
+
case 'geometrycollection':
|
|
208
|
+
column.minWidth = geoConstants_1.GIS_THUMB_SIZE.w + 24;
|
|
209
|
+
column.renderCell = (p) => (react_1.default.createElement(GeoThumbCell_1.default, { geometry: fieldType, value: p.value }));
|
|
210
|
+
if (isEditable && !col.disabled) {
|
|
211
|
+
column.renderEditCell = (p) => (react_1.default.createElement(GeoEditCell_1.default, Object.assign({}, p, { geometry: fieldType })));
|
|
212
|
+
}
|
|
213
|
+
break;
|
|
199
214
|
case 'string':
|
|
200
215
|
if (isEditable && !col.disabled && (fieldSchema.pattern_format || col.patternFormat)) {
|
|
201
216
|
column.renderEditCell = (p) => {
|
|
202
217
|
var _a;
|
|
203
218
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
204
|
-
const inputCell = (react_1.default.createElement(GridPatternInput_1.
|
|
219
|
+
const inputCell = (react_1.default.createElement(GridPatternInput_1.default, Object.assign({}, p, { patternFormat: fieldSchema.pattern_format || col.patternFormat || '', error: Boolean(err), helperText: err })));
|
|
205
220
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
206
221
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
207
222
|
}
|
|
@@ -212,7 +227,7 @@ function buildPreparedColumns(_a) {
|
|
|
212
227
|
}
|
|
213
228
|
// Apply pattern_format (mask) for display:
|
|
214
229
|
const patternFormat = fieldSchema.pattern_format || col.patternFormat;
|
|
215
|
-
if (patternFormat &&
|
|
230
|
+
if (patternFormat && fieldType !== 'decimal' && fieldType !== 'float') {
|
|
216
231
|
column = applyPatternFormatToColumn(column, patternFormat);
|
|
217
232
|
}
|
|
218
233
|
if (indexFieldMinWidth && !column.minWidth)
|
|
@@ -235,7 +250,7 @@ function buildPreparedColumns(_a) {
|
|
|
235
250
|
column.renderEditCell = (p) => {
|
|
236
251
|
var _a;
|
|
237
252
|
const err = (_a = validationErrors[p.id]) === null || _a === void 0 ? void 0 : _a[p.field];
|
|
238
|
-
const inputCell = react_1.default.createElement(GridGenericInput_1.
|
|
253
|
+
const inputCell = react_1.default.createElement(GridGenericInput_1.default, Object.assign({}, p, { error: Boolean(err), helperText: err }));
|
|
239
254
|
if (conditionalVisible.filter(({ target }) => target === p.field).length > 0) {
|
|
240
255
|
return (react_1.default.createElement(ConditionalEditWrapper_1.default, Object.assign({}, p, { conditionalVisible: conditionalVisible, apiRef: apiRef }), inputCell));
|
|
241
256
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
+
import { GridFilterOperator } from '@mui/x-data-grid';
|
|
2
3
|
import { GridApiCommunity } from '@mui/x-data-grid/models/api/gridApiCommunity';
|
|
3
4
|
import { FieldKey, GridEnrichedBySchemaColDef, Id, Item, TField } from '../../@types';
|
|
4
5
|
export type ResizeType = 'condense' | 'maxContent' | 'fitScreen';
|
|
@@ -12,7 +13,7 @@ export type ResizeType = 'condense' | 'maxContent' | 'fitScreen';
|
|
|
12
13
|
export declare function resizeColumns(columns: GridEnrichedBySchemaColDef[], resizeType: ResizeType): GridEnrichedBySchemaColDef[];
|
|
13
14
|
export declare const quantityOnlyOperators: ({ type }: {
|
|
14
15
|
type: string;
|
|
15
|
-
}) => GridFilterOperator[];
|
|
16
|
+
}) => GridFilterOperator<any, any, any>[];
|
|
16
17
|
export declare const buildEditPath: (basePath: string, objId: Id) => string;
|
|
17
18
|
export declare const buildExitPath: (basePath: string, objId?: Id) => string;
|
|
18
19
|
export declare const scrollToNewRow: (apiRef: RefObject<GridApiCommunity>, tableAutoHeight?: boolean) => void;
|
|
@@ -35,5 +36,5 @@ export declare function deleteRow<T extends TField = void>({ id, apiRef, setData
|
|
|
35
36
|
setDataGridRows: (value: React.SetStateAction<Item<T>[]>) => void;
|
|
36
37
|
onProcessRow?: (p?: Item<T>) => void;
|
|
37
38
|
}): void;
|
|
38
|
-
export declare function getAllRowIds(apiRef: RefObject<GridApiCommunity>):
|
|
39
|
+
export declare function getAllRowIds(apiRef: RefObject<GridApiCommunity>): import("@mui/x-data-grid").GridRowId[];
|
|
39
40
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/components/DataGridBySchemaEditable/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAGL,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAE,QAAQ,EAAE,0BAA0B,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAoCtF,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,YAAY,GAAG,WAAW,CAAC;AAEjE;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,0BAA0B,EAAE,EACrC,UAAU,EAAE,UAAU,GACrB,0BAA0B,EAAE,CAmB9B;AAED,eAAO,MAAM,qBAAqB,GAAI,UAAU;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,wCA8B/D,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,EAAE,OAAO,EAAE,WAKxD,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,UAAU,MAAM,EAAE,QAAQ,EAAE,WAKzD,C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AAC;IAClE,YAAY,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;CACtC,QAMA;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,SAAS,CAAC,gBAAgB,CAAC,0CAM/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DialogFormBySchema.d.ts","sourceRoot":"","sources":["../../../src/components/forms/DialogFormBySchema.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"DialogFormBySchema.d.ts","sourceRoot":"","sources":["../../../src/components/forms/DialogFormBySchema.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAiC,MAAM,OAAO,CAAC;AACtD,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAKtC,OAAO,EACL,gBAAgB,EAChB,SAAS,EACT,eAAe,EACf,IAAI,EACJ,SAAS,EACT,UAAU,EACV,MAAM,EACP,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAC;AAG7D,UAAU,uBAAuB,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI;IACvD,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IACtB,gBAAgB,EAAE,eAAe,CAAC;IAClC,aAAa,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC;IACvB,eAAe,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,OAAO,GAAG,UAAU,CAAC,CAAC;IAC/D,SAAS,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IAC5C,eAAe,EAAE,CACf,KAAK,EAAE,MAAM,EACb,WAAW,CAAC,EAAE,MAAM,EAAE,KACnB,OAAO,CAAC,gBAAgB,EAAE,GAAG,UAAU,CAAC,CAAC;IA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