@rjsf/antd 5.6.2 → 5.7.0
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/antd.cjs.development.js +38 -69
- package/dist/antd.cjs.development.js.map +1 -1
- package/dist/antd.cjs.production.min.js +1 -1
- package/dist/antd.cjs.production.min.js.map +1 -1
- package/dist/antd.esm.js +38 -69
- package/dist/antd.esm.js.map +1 -1
- package/dist/antd.umd.development.js +38 -69
- package/dist/antd.umd.development.js.map +1 -1
- package/dist/antd.umd.production.min.js +1 -1
- package/dist/antd.umd.production.min.js.map +1 -1
- package/package.json +15 -15
|
@@ -515,7 +515,7 @@
|
|
|
515
515
|
schema: schema,
|
|
516
516
|
uiSchema: uiSchema,
|
|
517
517
|
registry: registry,
|
|
518
|
-
children:
|
|
518
|
+
children: jsxRuntime.jsx(Form__default["default"].Item, _extends({
|
|
519
519
|
colon: colon,
|
|
520
520
|
hasFeedback: schema.type !== 'array' && schema.type !== 'object',
|
|
521
521
|
help: !!rawHelp && help || (rawErrors !== null && rawErrors !== void 0 && rawErrors.length ? errors : undefined),
|
|
@@ -1146,7 +1146,6 @@
|
|
|
1146
1146
|
* @param props - The `WidgetProps` for this component
|
|
1147
1147
|
*/
|
|
1148
1148
|
function CheckboxWidget(props) {
|
|
1149
|
-
var _options$description;
|
|
1150
1149
|
var autofocus = props.autofocus,
|
|
1151
1150
|
disabled = props.disabled,
|
|
1152
1151
|
formContext = props.formContext,
|
|
@@ -1157,14 +1156,9 @@
|
|
|
1157
1156
|
onChange = props.onChange,
|
|
1158
1157
|
onFocus = props.onFocus,
|
|
1159
1158
|
readonly = props.readonly,
|
|
1160
|
-
value = props.value
|
|
1161
|
-
registry = props.registry,
|
|
1162
|
-
options = props.options,
|
|
1163
|
-
schema = props.schema,
|
|
1164
|
-
uiSchema = props.uiSchema;
|
|
1159
|
+
value = props.value;
|
|
1165
1160
|
var _formContext$readonly = formContext.readonlyAsDisabled,
|
|
1166
1161
|
readonlyAsDisabled = _formContext$readonly === void 0 ? true : _formContext$readonly;
|
|
1167
|
-
var DescriptionFieldTemplate = utils.getTemplate('DescriptionFieldTemplate', registry, options);
|
|
1168
1162
|
var handleChange = function handleChange(_ref) {
|
|
1169
1163
|
var target = _ref.target;
|
|
1170
1164
|
return onChange(target.checked);
|
|
@@ -1183,28 +1177,17 @@
|
|
|
1183
1177
|
onBlur: !readonly ? handleBlur : undefined,
|
|
1184
1178
|
onFocus: !readonly ? handleFocus : undefined
|
|
1185
1179
|
};
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
autoFocus: autofocus,
|
|
1198
|
-
checked: typeof value === 'undefined' ? false : value,
|
|
1199
|
-
disabled: disabled || readonlyAsDisabled && readonly,
|
|
1200
|
-
id: id,
|
|
1201
|
-
name: id,
|
|
1202
|
-
onChange: !readonly ? handleChange : undefined
|
|
1203
|
-
}, extraProps, {
|
|
1204
|
-
"aria-describedby": utils.ariaDescribedByIds(id),
|
|
1205
|
-
children: utils.labelValue(label, hideLabel, '')
|
|
1206
|
-
}))]
|
|
1207
|
-
});
|
|
1180
|
+
return jsxRuntime.jsx(Checkbox__default["default"], _extends({
|
|
1181
|
+
autoFocus: autofocus,
|
|
1182
|
+
checked: typeof value === 'undefined' ? false : value,
|
|
1183
|
+
disabled: disabled || readonlyAsDisabled && readonly,
|
|
1184
|
+
id: id,
|
|
1185
|
+
name: id,
|
|
1186
|
+
onChange: !readonly ? handleChange : undefined
|
|
1187
|
+
}, extraProps, {
|
|
1188
|
+
"aria-describedby": utils.ariaDescribedByIds(id),
|
|
1189
|
+
children: utils.labelValue(label, hideLabel, '')
|
|
1190
|
+
}));
|
|
1208
1191
|
}
|
|
1209
1192
|
|
|
1210
1193
|
var DatePicker = /*#__PURE__*/generatePicker__default["default"](dayjsGenerateConfig__default["default"]);
|
|
@@ -1474,8 +1457,6 @@
|
|
|
1474
1457
|
_ref$formContext = _ref.formContext,
|
|
1475
1458
|
formContext = _ref$formContext === void 0 ? {} : _ref$formContext,
|
|
1476
1459
|
id = _ref.id,
|
|
1477
|
-
label = _ref.label,
|
|
1478
|
-
hideLabel = _ref.hideLabel,
|
|
1479
1460
|
multiple = _ref.multiple,
|
|
1480
1461
|
onBlur = _ref.onBlur,
|
|
1481
1462
|
onChange = _ref.onChange,
|
|
@@ -1483,13 +1464,9 @@
|
|
|
1483
1464
|
options = _ref.options,
|
|
1484
1465
|
placeholder = _ref.placeholder,
|
|
1485
1466
|
readonly = _ref.readonly,
|
|
1486
|
-
registry = _ref.registry,
|
|
1487
|
-
schema = _ref.schema,
|
|
1488
|
-
uiSchema = _ref.uiSchema,
|
|
1489
1467
|
value = _ref.value;
|
|
1490
1468
|
var _formContext$readonly = formContext.readonlyAsDisabled,
|
|
1491
1469
|
readonlyAsDisabled = _formContext$readonly === void 0 ? true : _formContext$readonly;
|
|
1492
|
-
var TitleFieldTemplate = utils.getTemplate('TitleFieldTemplate', registry, options);
|
|
1493
1470
|
var enumOptions = options.enumOptions,
|
|
1494
1471
|
enumDisabled = options.enumDisabled,
|
|
1495
1472
|
emptyValue = options.emptyValue;
|
|
@@ -1518,39 +1495,31 @@
|
|
|
1518
1495
|
var extraProps = {
|
|
1519
1496
|
name: id
|
|
1520
1497
|
};
|
|
1521
|
-
return jsxRuntime.
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
return jsxRuntime.jsx(Select__default["default"].Option, {
|
|
1547
|
-
disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(optionValue) !== -1,
|
|
1548
|
-
value: String(index),
|
|
1549
|
-
children: optionLabel
|
|
1550
|
-
}, String(index));
|
|
1551
|
-
})
|
|
1552
|
-
}))]
|
|
1553
|
-
});
|
|
1498
|
+
return jsxRuntime.jsx(Select__default["default"], _extends({
|
|
1499
|
+
autoFocus: autofocus,
|
|
1500
|
+
disabled: disabled || readonlyAsDisabled && readonly,
|
|
1501
|
+
getPopupContainer: getPopupContainer,
|
|
1502
|
+
id: id,
|
|
1503
|
+
mode: multiple ? 'multiple' : undefined,
|
|
1504
|
+
onBlur: !readonly ? handleBlur : undefined,
|
|
1505
|
+
onChange: !readonly ? handleChange : undefined,
|
|
1506
|
+
onFocus: !readonly ? handleFocus : undefined,
|
|
1507
|
+
placeholder: placeholder,
|
|
1508
|
+
style: SELECT_STYLE,
|
|
1509
|
+
value: selectedIndexes
|
|
1510
|
+
}, extraProps, {
|
|
1511
|
+
filterOption: filterOption,
|
|
1512
|
+
"aria-describedby": utils.ariaDescribedByIds(id),
|
|
1513
|
+
children: Array.isArray(enumOptions) && enumOptions.map(function (_ref2, index) {
|
|
1514
|
+
var optionValue = _ref2.value,
|
|
1515
|
+
optionLabel = _ref2.label;
|
|
1516
|
+
return jsxRuntime.jsx(Select__default["default"].Option, {
|
|
1517
|
+
disabled: Array.isArray(enumDisabled) && enumDisabled.indexOf(optionValue) !== -1,
|
|
1518
|
+
value: String(index),
|
|
1519
|
+
children: optionLabel
|
|
1520
|
+
}, String(index));
|
|
1521
|
+
})
|
|
1522
|
+
}));
|
|
1554
1523
|
}
|
|
1555
1524
|
|
|
1556
1525
|
var INPUT_STYLE = {
|