@rjsf/core
Advanced tools
Comparing version 5.24.1 to 5.24.2
@@ -99,3 +99,3 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime"; | ||
render() { | ||
const { name, disabled = false, errorSchema = {}, formContext, onBlur, onFocus, registry, schema, uiSchema, } = this.props; | ||
const { name, disabled = false, errorSchema = {}, formContext, onBlur, onFocus, readonly, registry, schema, uiSchema, } = this.props; | ||
const { widgets, fields, translateString, globalUiOptions, schemaUtils } = registry; | ||
@@ -152,3 +152,3 @@ const { SchemaField: _SchemaField } = fields; | ||
}); | ||
return (_jsxs("div", { className: 'panel panel-default panel-body', children: [_jsx("div", { className: 'form-group', children: _jsx(Widget, { id: this.getFieldId(), name: `${name}${schema.oneOf ? '__oneof_select' : '__anyof_select'}`, schema: { type: 'number', default: 0 }, onChange: this.onOptionChange, onBlur: onBlur, onFocus: onFocus, disabled: disabled || isEmpty(enumOptions), multiple: false, rawErrors: rawErrors, errorSchema: fieldErrorSchema, value: selectedOption >= 0 ? selectedOption : undefined, options: { enumOptions, ...uiOptions }, registry: registry, formContext: formContext, placeholder: placeholder, autocomplete: autocomplete, autofocus: autofocus, label: title !== null && title !== void 0 ? title : name, hideLabel: !displayLabel }) }), optionSchema && _jsx(_SchemaField, { ...this.props, schema: optionSchema, uiSchema: optionUiSchema })] })); | ||
return (_jsxs("div", { className: 'panel panel-default panel-body', children: [_jsx("div", { className: 'form-group', children: _jsx(Widget, { id: this.getFieldId(), name: `${name}${schema.oneOf ? '__oneof_select' : '__anyof_select'}`, schema: { type: 'number', default: 0 }, onChange: this.onOptionChange, onBlur: onBlur, onFocus: onFocus, disabled: disabled || isEmpty(enumOptions), multiple: false, rawErrors: rawErrors, errorSchema: fieldErrorSchema, value: selectedOption >= 0 ? selectedOption : undefined, options: { enumOptions, ...uiOptions }, registry: registry, formContext: formContext, placeholder: placeholder, autocomplete: autocomplete, autofocus: autofocus, label: title !== null && title !== void 0 ? title : name, hideLabel: !displayLabel, readonly: readonly }) }), optionSchema && _jsx(_SchemaField, { ...this.props, schema: optionSchema, uiSchema: optionUiSchema })] })); | ||
} | ||
@@ -155,0 +155,0 @@ } |
{ | ||
"name": "@rjsf/core", | ||
"version": "5.24.1", | ||
"version": "5.24.2", | ||
"description": "A simple React component capable of building HTML forms out of a JSON schema.", | ||
@@ -57,6 +57,6 @@ "scripts": { | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@rjsf/snapshot-tests": "^5.24.1", | ||
"@rjsf/utils": "^5.24.1", | ||
"@rjsf/validator-ajv6": "^5.24.1", | ||
"@rjsf/validator-ajv8": "^5.24.1", | ||
"@rjsf/snapshot-tests": "^5.24.2", | ||
"@rjsf/utils": "^5.24.2", | ||
"@rjsf/validator-ajv6": "^5.24.2", | ||
"@rjsf/validator-ajv8": "^5.24.2", | ||
"@types/jest": "^29.5.12", | ||
@@ -107,3 +107,3 @@ "@types/lodash": "^4.14.202", | ||
}, | ||
"gitHead": "8ef623853bfa929342147416e814630d9bb40d43" | ||
"gitHead": "3965cb9d654e59890dd2b5c0c92b8d18d2b8b3b0" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1571766
20700