drf-react-by-schema 0.19.12 → 0.19.13
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/api.d.ts.map +1 -1
- package/dist/api.js +4 -4
- package/dist/components/DataGridBySchemaEditable.js +1 -1
- package/dist/components/GenericRelatedModelList.js +3 -3
- package/dist/components/forms/FieldBySchema.d.ts +1 -1
- package/dist/components/forms/FieldBySchema.d.ts.map +1 -1
- package/dist/components/forms/FieldBySchema.js +3 -0
- package/dist/components/forms/inputs/FloatFieldBySchema.d.ts +1 -1
- package/dist/components/forms/inputs/FloatFieldBySchema.d.ts.map +1 -1
- package/dist/components/forms/inputs/FloatFieldBySchema.js +5 -6
- package/package.json +1 -1
package/dist/api.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAEL,IAAI,EACJ,UAAU,EACV,qBAAqB,EACrB,qBAAqB,EAErB,EAAE,EAGF,eAAe,EAEf,mBAAmB,EACnB,wBAAwB,EAEzB,MAAM,UAAU,CAAC;AAMlB,UAAU,yBAAyB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,IAAI,EAAE,IAAI,CAAC;IACX,EAAE,CAAC,EAAE,EAAE,CAAC;CACT;AAyFD,eAAO,MAAM,UAAU,GAAU,2BAG9B;IACD,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;CACvC,iBA2CA,CAAC;AAsDF;;;;GAIG;AACH,eAAO,MAAM,UAAU,GAAU,oCAAoC,eAAe,iBAqCnF,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAU,oCAAoC,eAAe,iBA2C1F,CAAC;AAEF,eAAO,MAAM,UAAU,GAA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|
@@ -723,9 +723,6 @@ const getGenericModelList = (_a) => __awaiter(void 0, [_a], void 0, function* ({
|
|
|
723
723
|
if (page) {
|
|
724
724
|
newQueryParams.push(`page=${page + 1}`);
|
|
725
725
|
}
|
|
726
|
-
if (newQueryParams.length > 0) {
|
|
727
|
-
path += `?${newQueryParams.join('&')}`;
|
|
728
|
-
}
|
|
729
726
|
// Only get schema and columns if not in batches or in first batch:
|
|
730
727
|
if (!schema) {
|
|
731
728
|
const options = yield getSchema(schemaPath, serverEndPoint);
|
|
@@ -744,7 +741,10 @@ const getGenericModelList = (_a) => __awaiter(void 0, [_a], void 0, function* ({
|
|
|
744
741
|
let data = [];
|
|
745
742
|
if (!id || (id && !relatedModelId)) {
|
|
746
743
|
if (isInBatches) {
|
|
747
|
-
|
|
744
|
+
newQueryParams.push(loadedSchema ? 'is_last_batch=1' : 'is_first_batch=1');
|
|
745
|
+
}
|
|
746
|
+
if (newQueryParams.length > 0) {
|
|
747
|
+
path += `?${newQueryParams.join('&')}`;
|
|
748
748
|
}
|
|
749
749
|
const ret = yield getData({ path, serverEndPoint });
|
|
750
750
|
if ('isAxiosError' in ret) {
|
|
@@ -127,7 +127,7 @@ const DataGridBySchemaEditable = (0, react_1.forwardRef)(({ schema, data, rowCou
|
|
|
127
127
|
});
|
|
128
128
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
129
129
|
}, [data]);
|
|
130
|
-
return (react_1.default.createElement(Box_1.default, {
|
|
130
|
+
return (react_1.default.createElement(Box_1.default, { sx: { height: '100%' } },
|
|
131
131
|
isMobile && MobileListRenderItem ? (react_1.default.createElement(DataGridMobile_1.default, { name: name, data: data, schema: schema, columns: columns, customColumnOperations: customColumnOperations, MobileListRenderItem: MobileListRenderItem })) : (react_1.default.createElement(DataGridDesktop_1.default, { schema: schema, dataGrid: dataGrid, setDataGrid: setDataGrid, rowCount: rowCount, columns: columns, model: model, name: name, indexField: indexField, addExistingModel: addExistingModel, indexFieldMinWidth: indexFieldMinWidth, indexFieldBasePath: indexFieldBasePath, indexFieldViewBasePath: indexFieldViewBasePath, stateToLink: stateToLink, minWidth: minWidth, loading: loading, modelParentId: modelParentId, modelParent: modelParent, customColumnOperations: customColumnOperations, customFieldFormLayouts: customFieldFormLayouts, customLinkDestination: customLinkDestination, LinkComponent: LinkComponent, onProcessRow: onProcessRow, onDataChange: onDataChange, onEditModel: onEditModel, isEditable: isEditable, hasBulkSelect: hasBulkSelect, onSelectActions: onSelectActions, isAutoHeight: isAutoHeight, defaultValues: defaultValues, hideFooterPagination: hideFooterPagination, setVisibleRows: setVisibleRows, paginationModel: paginationModel, setPaginationModel: setPaginationModel, hideFooterComponent: hideFooterComponent, hideToolbarComponent: hideToolbarComponent, tableAutoHeight: tableAutoHeight, actions: actions, customActions: customActions, hideColumnsButton: hideColumnsButton, hideFilterButton: hideFilterButton, hideDensityButton: hideDensityButton, hideExportButton: hideExportButton, hideQuickFilterBar: hideQuickFilterBar, optionsAC: optionsAC, extraValidators: extraValidators, emptyItem: emptyItem, handleDeleteClick: handleDeleteClick, setSnackBar: setSnackBar })),
|
|
132
132
|
react_1.default.createElement(ConfirmDialog_1.ConfirmDialog, { open: confirmDialogOpen, onClose: handleConfirmDialogClose, onConfirm: handleDeleteSave }),
|
|
133
133
|
react_1.default.createElement(Snackbar_1.default, { open: snackBar.open, autoHideDuration: 5000, onClose: () => {
|
|
@@ -90,6 +90,7 @@ function GenericRelatedModelList({ model, id, relatedModel, columnFields, hidden
|
|
|
90
90
|
isInBatches,
|
|
91
91
|
queryParams,
|
|
92
92
|
serverEndPoint,
|
|
93
|
+
filter: defaultFilter,
|
|
93
94
|
};
|
|
94
95
|
const loadedData = yield (0, api_1.getGenericModelList)(loadParams);
|
|
95
96
|
if (loadedData && typeof loadedData !== 'boolean') {
|
|
@@ -112,7 +113,7 @@ function GenericRelatedModelList({ model, id, relatedModel, columnFields, hidden
|
|
|
112
113
|
const page = paginationModel ? paginationModel.page : 0;
|
|
113
114
|
const filter = (0, utils_1.mergeFilterItems)(defaultFilter, paginationModel ? paginationModel.filter : undefined);
|
|
114
115
|
const sort = paginationModel ? paginationModel.sort : undefined;
|
|
115
|
-
const
|
|
116
|
+
const paginatedData = yield (0, api_1.getGenericModelList)({
|
|
116
117
|
model,
|
|
117
118
|
id,
|
|
118
119
|
relatedModel,
|
|
@@ -126,8 +127,7 @@ function GenericRelatedModelList({ model, id, relatedModel, columnFields, hidden
|
|
|
126
127
|
sumRows,
|
|
127
128
|
queryParams,
|
|
128
129
|
serverEndPoint,
|
|
129
|
-
};
|
|
130
|
-
const paginatedData = yield (0, api_1.getGenericModelList)(loadPaginatedParams);
|
|
130
|
+
});
|
|
131
131
|
if (paginatedData && typeof paginatedData !== 'boolean') {
|
|
132
132
|
setData(paginatedData);
|
|
133
133
|
setLoading(false);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldBySchemaProps } from '../../@types';
|
|
3
|
-
export default function FieldBySchema({ name, schema, control, errors, multiline, setValue, getValues, fieldKey, labelKey, index, optionsAC, optionsModel, getOptionLabel, renderOption, onEditModel, fieldsLayout, sx, options, isSemaphoric, label, onValueChange, decimalScale, autoFocus, ...other }: FieldBySchemaProps): React.JSX.Element;
|
|
3
|
+
export default function FieldBySchema({ name, schema, control, errors, multiline, setValue, getValues, fieldKey, labelKey, index, optionsAC, optionsModel, getOptionLabel, renderOption, onEditModel, fieldsLayout, sx, options, isSemaphoric, label, onValueChange, decimalScale, autoFocus, ...other }: FieldBySchemaProps): React.JSX.Element | null;
|
|
4
4
|
//# sourceMappingURL=FieldBySchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldBySchema.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FieldBySchema.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAUlD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,MAAM,EACN,OAAO,EACP,MAAM,EACN,SAAiB,EACjB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAiB,EACjB,KAAK,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,EAAE,EACF,OAAO,EACP,YAAoB,EACpB,KAAK,EACL,aAAa,EACb,YAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,
|
|
1
|
+
{"version":3,"file":"FieldBySchema.d.ts","sourceRoot":"","sources":["../../../src/components/forms/FieldBySchema.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAUlD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,EACpC,IAAI,EACJ,MAAM,EACN,OAAO,EACP,MAAM,EACN,SAAiB,EACjB,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,QAAiB,EACjB,KAAK,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,WAAW,EACX,YAAY,EACZ,EAAE,EACF,OAAO,EACP,YAAoB,EACpB,KAAK,EACL,aAAa,EACb,YAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,kBAAkB,4BAyJpB"}
|
|
@@ -25,6 +25,9 @@ const FloatFieldBySchema_1 = __importDefault(require("./inputs/FloatFieldBySchem
|
|
|
25
25
|
const TextFieldBySchema_1 = __importDefault(require("./inputs/TextFieldBySchema"));
|
|
26
26
|
function FieldBySchema(_a) {
|
|
27
27
|
var { name, schema, control, errors, multiline = false, setValue, getValues, fieldKey, labelKey = 'nome', index, optionsAC, optionsModel, getOptionLabel, renderOption, onEditModel, fieldsLayout, sx, options, isSemaphoric = false, label, onValueChange, decimalScale = 2, autoFocus } = _a, other = __rest(_a, ["name", "schema", "control", "errors", "multiline", "setValue", "getValues", "fieldKey", "labelKey", "index", "optionsAC", "optionsModel", "getOptionLabel", "renderOption", "onEditModel", "fieldsLayout", "sx", "options", "isSemaphoric", "label", "onValueChange", "decimalScale", "autoFocus"]);
|
|
28
|
+
if (!schema[name]) {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
28
31
|
switch (schema[name].type) {
|
|
29
32
|
case 'date':
|
|
30
33
|
return (react_1.default.createElement(DesktopDatePickerBySchema_1.default, Object.assign({ name: name, schema: schema, control: control, errors: errors, multiline: multiline, fieldKey: fieldKey, index: index, sx: sx, onValueChange: onValueChange, autoFocus: autoFocus }, other)));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { FieldBySchemaProps } from '../../../@types';
|
|
3
|
-
export default function FloatFieldBySchema({
|
|
3
|
+
export default function FloatFieldBySchema({ name, schema, control, errors, fieldKey, index, onValueChange, decimalScale, label, autoFocus, disabled, ...other }: Omit<FieldBySchemaProps, 'type'>): React.JSX.Element;
|
|
4
4
|
//# sourceMappingURL=FloatFieldBySchema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FloatFieldBySchema.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/inputs/FloatFieldBySchema.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,
|
|
1
|
+
{"version":3,"file":"FloatFieldBySchema.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/inputs/FloatFieldBySchema.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,EACzC,IAAI,EACJ,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,KAAK,EACL,aAAa,EACb,YAAY,EACZ,KAAK,EACL,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,kBAAkB,EAAE,MAAM,CAAC,qBAoElC"}
|
|
@@ -16,12 +16,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.default = FloatFieldBySchema;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
|
-
const react_number_format_1 = require("react-number-format");
|
|
20
|
-
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
21
19
|
const react_hook_form_1 = require("react-hook-form");
|
|
20
|
+
const TextField_1 = __importDefault(require("@mui/material/TextField"));
|
|
21
|
+
const react_number_format_1 = require("react-number-format");
|
|
22
22
|
const utils_1 = require("../../../utils");
|
|
23
23
|
function FloatFieldBySchema(_a) {
|
|
24
|
-
var {
|
|
24
|
+
var { name, schema, control, errors, fieldKey, index, onValueChange, decimalScale, label, autoFocus, disabled } = _a, other = __rest(_a, ["name", "schema", "control", "errors", "fieldKey", "index", "onValueChange", "decimalScale", "label", "autoFocus", "disabled"]);
|
|
25
25
|
const model = name;
|
|
26
26
|
if (!label) {
|
|
27
27
|
label = schema[model].label;
|
|
@@ -47,9 +47,8 @@ function FloatFieldBySchema(_a) {
|
|
|
47
47
|
: '';
|
|
48
48
|
const suffix = schema[model].suffix !== '' ? ` ${schema[model].suffix}` : '';
|
|
49
49
|
const decimals = decimalScale || schema[model].decimal_places || 2;
|
|
50
|
-
return (react_1.default.createElement(react_hook_form_1.Controller, { name: name, control: control, render: (
|
|
51
|
-
|
|
52
|
-
const moedaInputProps = Object.assign(Object.assign({}, field), { onChange: undefined });
|
|
50
|
+
return (react_1.default.createElement(react_hook_form_1.Controller, { name: name, control: control, render: ({ field }) => {
|
|
51
|
+
const moedaInputProps = Object.assign(Object.assign({}, field), { ref: undefined, onChange: undefined });
|
|
53
52
|
return (react_1.default.createElement(react_number_format_1.NumericFormat, Object.assign({}, moedaInputProps, other, { label: label, disabled: schema[model].disabled === true || disabled === true, required: schema[model].required, onValueChange: (values) => {
|
|
54
53
|
field.onChange(values.floatValue);
|
|
55
54
|
if (onValueChange) {
|
package/package.json
CHANGED