@rjsf/antd 6.5.3 → 6.6.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/dist/antd.esm.js +145 -145
- package/dist/antd.esm.js.map +4 -4
- package/dist/antd.umd.js +91 -91
- package/dist/index.cjs +140 -140
- package/dist/index.cjs.map +4 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js.map +1 -1
- package/lib/templates/ArrayFieldItemTemplate/index.js +1 -1
- package/lib/templates/ArrayFieldItemTemplate/index.js.map +1 -1
- package/lib/templates/ArrayFieldTemplate/index.js +2 -2
- package/lib/templates/ArrayFieldTemplate/index.js.map +1 -1
- package/lib/templates/BaseInputTemplate/index.js +2 -2
- package/lib/templates/BaseInputTemplate/index.js.map +1 -1
- package/lib/templates/FieldDescriptionTemplate/index.js.map +1 -1
- package/lib/templates/FieldHelpTemplate/index.js +1 -1
- package/lib/templates/FieldHelpTemplate/index.js.map +1 -1
- package/lib/templates/FieldTemplate/index.js +1 -1
- package/lib/templates/FieldTemplate/index.js.map +1 -1
- package/lib/templates/GridTemplate/index.js.map +1 -1
- package/lib/templates/IconButton/index.d.ts +1 -1
- package/lib/templates/IconButton/index.js +1 -1
- package/lib/templates/IconButton/index.js.map +1 -1
- package/lib/templates/ObjectFieldTemplate/index.js +4 -4
- package/lib/templates/ObjectFieldTemplate/index.js.map +1 -1
- package/lib/templates/SubmitButton/index.js +1 -1
- package/lib/templates/SubmitButton/index.js.map +1 -1
- package/lib/templates/TitleField/index.js +2 -2
- package/lib/templates/TitleField/index.js.map +1 -1
- package/lib/templates/WrapIfAdditionalTemplate/index.js +1 -1
- package/lib/templates/WrapIfAdditionalTemplate/index.js.map +1 -1
- package/lib/templates/index.js +2 -2
- package/lib/templates/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/widgets/AltDateWidget/index.js +1 -1
- package/lib/widgets/AltDateWidget/index.js.map +1 -1
- package/lib/widgets/CheckboxWidget/index.js +1 -1
- package/lib/widgets/CheckboxWidget/index.js.map +1 -1
- package/lib/widgets/CheckboxesWidget/index.js +1 -1
- package/lib/widgets/CheckboxesWidget/index.js.map +1 -1
- package/lib/widgets/DateTimeWidget/index.js +1 -1
- package/lib/widgets/DateTimeWidget/index.js.map +1 -1
- package/lib/widgets/DateWidget/index.js +1 -1
- package/lib/widgets/DateWidget/index.js.map +1 -1
- package/lib/widgets/PasswordWidget/index.js +1 -1
- package/lib/widgets/PasswordWidget/index.js.map +1 -1
- package/lib/widgets/RadioWidget/index.js +1 -1
- package/lib/widgets/RadioWidget/index.js.map +1 -1
- package/lib/widgets/RangeWidget/index.js +1 -1
- package/lib/widgets/RangeWidget/index.js.map +1 -1
- package/lib/widgets/SelectWidget/index.js +1 -1
- package/lib/widgets/SelectWidget/index.js.map +1 -1
- package/lib/widgets/TextareaWidget/index.js +1 -1
- package/lib/widgets/TextareaWidget/index.js.map +1 -1
- package/package.json +18 -18
- package/src/index.ts +1 -1
- package/src/templates/ArrayFieldItemTemplate/index.tsx +1 -1
- package/src/templates/ArrayFieldTemplate/index.tsx +2 -2
- package/src/templates/BaseInputTemplate/index.tsx +2 -2
- package/src/templates/FieldDescriptionTemplate/index.tsx +1 -1
- package/src/templates/FieldHelpTemplate/index.tsx +1 -1
- package/src/templates/FieldTemplate/index.tsx +1 -1
- package/src/templates/GridTemplate/index.tsx +1 -1
- package/src/templates/IconButton/index.tsx +2 -2
- package/src/templates/ObjectFieldTemplate/index.tsx +5 -5
- package/src/templates/SubmitButton/index.tsx +1 -1
- package/src/templates/TitleField/index.tsx +2 -2
- package/src/templates/WrapIfAdditionalTemplate/index.tsx +1 -1
- package/src/templates/index.ts +2 -2
- package/src/tsconfig.json +0 -1
- package/src/widgets/AltDateWidget/index.tsx +1 -1
- package/src/widgets/CheckboxWidget/index.tsx +1 -1
- package/src/widgets/CheckboxesWidget/index.tsx +1 -1
- package/src/widgets/DateTimeWidget/index.tsx +1 -2
- package/src/widgets/DateWidget/index.tsx +1 -2
- package/src/widgets/PasswordWidget/index.tsx +1 -1
- package/src/widgets/RadioWidget/index.tsx +1 -1
- package/src/widgets/RangeWidget/index.tsx +1 -1
- package/src/widgets/SelectWidget/index.tsx +2 -2
- package/src/widgets/TextareaWidget/index.tsx +1 -1
package/dist/index.cjs
CHANGED
|
@@ -44,8 +44,8 @@ module.exports = __toCommonJS(index_exports);
|
|
|
44
44
|
var import_core3 = require("@rjsf/core");
|
|
45
45
|
|
|
46
46
|
// src/templates/ArrayFieldItemTemplate/index.tsx
|
|
47
|
-
var import_antd = require("antd");
|
|
48
47
|
var import_utils = require("@rjsf/utils");
|
|
48
|
+
var import_antd = require("antd");
|
|
49
49
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
50
50
|
var BTN_GRP_STYLE = {
|
|
51
51
|
width: "100%",
|
|
@@ -71,10 +71,10 @@ function ArrayFieldItemTemplate(props) {
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// src/templates/ArrayFieldTemplate/index.tsx
|
|
74
|
+
var import_react = require("react");
|
|
74
75
|
var import_utils2 = require("@rjsf/utils");
|
|
75
|
-
var import_classnames = __toESM(require("classnames"), 1);
|
|
76
76
|
var import_antd2 = require("antd");
|
|
77
|
-
var
|
|
77
|
+
var import_classnames = __toESM(require("classnames"), 1);
|
|
78
78
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
79
79
|
function ArrayFieldTemplate(props) {
|
|
80
80
|
const {
|
|
@@ -145,9 +145,9 @@ function ArrayFieldTemplate(props) {
|
|
|
145
145
|
|
|
146
146
|
// src/templates/BaseInputTemplate/index.tsx
|
|
147
147
|
var import_react2 = require("react");
|
|
148
|
-
var import_antd3 = require("antd");
|
|
149
|
-
var import_utils3 = require("@rjsf/utils");
|
|
150
148
|
var import_core = require("@rjsf/core");
|
|
149
|
+
var import_utils3 = require("@rjsf/utils");
|
|
150
|
+
var import_antd3 = require("antd");
|
|
151
151
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
152
152
|
var INPUT_STYLE = {
|
|
153
153
|
width: "100%"
|
|
@@ -233,22 +233,11 @@ function BaseInputTemplate(props) {
|
|
|
233
233
|
] });
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
// src/templates/FieldDescriptionTemplate/index.tsx
|
|
237
|
-
var import_core2 = require("@rjsf/core");
|
|
238
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
239
|
-
function DescriptionField(props) {
|
|
240
|
-
const { id, description, registry, uiSchema } = props;
|
|
241
|
-
if (!description) {
|
|
242
|
-
return null;
|
|
243
|
-
}
|
|
244
|
-
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("span", { id, children: /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_core2.RichDescription, { description, registry, uiSchema }) });
|
|
245
|
-
}
|
|
246
|
-
|
|
247
236
|
// src/templates/ErrorList/index.tsx
|
|
248
237
|
var import_antd4 = require("antd");
|
|
249
238
|
var import_icons = require("@ant-design/icons");
|
|
250
239
|
var import_utils4 = require("@rjsf/utils");
|
|
251
|
-
var
|
|
240
|
+
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
252
241
|
var antdMajor = parseInt(import_antd4.version.split(".")[0], 10);
|
|
253
242
|
function ErrorList({
|
|
254
243
|
errors,
|
|
@@ -257,7 +246,7 @@ function ErrorList({
|
|
|
257
246
|
const { translateString } = registry;
|
|
258
247
|
const { token } = import_antd4.theme.useToken();
|
|
259
248
|
const itemBorder = `${token.lineWidth}px ${token.lineType} ${token.colorSplit}`;
|
|
260
|
-
const renderErrors = () => /* @__PURE__ */ (0,
|
|
249
|
+
const renderErrors = () => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)("ul", { style: { margin: 0, padding: 0, listStyle: "none" }, children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(
|
|
261
250
|
"li",
|
|
262
251
|
{
|
|
263
252
|
style: {
|
|
@@ -267,120 +256,44 @@ function ErrorList({
|
|
|
267
256
|
color: token.colorText,
|
|
268
257
|
borderBlockEnd: index < errors.length - 1 ? itemBorder : "none"
|
|
269
258
|
},
|
|
270
|
-
children: /* @__PURE__ */ (0,
|
|
271
|
-
/* @__PURE__ */ (0,
|
|
259
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime4.jsxs)(import_antd4.Space, { children: [
|
|
260
|
+
/* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_icons.ExclamationCircleOutlined, {}),
|
|
272
261
|
error.stack
|
|
273
262
|
] })
|
|
274
263
|
},
|
|
275
264
|
index
|
|
276
265
|
)) });
|
|
277
266
|
const headerProp = antdMajor >= 6 ? { title: translateString(import_utils4.TranslatableString.ErrorsLabel) } : { message: translateString(import_utils4.TranslatableString.ErrorsLabel) };
|
|
278
|
-
return /* @__PURE__ */ (0,
|
|
267
|
+
return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_antd4.Alert, { className: "panel panel-danger errors", description: renderErrors(), type: "error", ...headerProp });
|
|
279
268
|
}
|
|
280
269
|
|
|
281
|
-
// src/templates/
|
|
282
|
-
var
|
|
283
|
-
var
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
{
|
|
291
|
-
onClick,
|
|
292
|
-
type: iconType,
|
|
293
|
-
icon,
|
|
294
|
-
color,
|
|
295
|
-
style: {
|
|
296
|
-
paddingTop: "4px"
|
|
297
|
-
/* Center the button */
|
|
298
|
-
},
|
|
299
|
-
...otherProps
|
|
300
|
-
}
|
|
301
|
-
);
|
|
302
|
-
}
|
|
303
|
-
function AddButton(props) {
|
|
304
|
-
const {
|
|
305
|
-
registry: { translateString }
|
|
306
|
-
} = props;
|
|
307
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
308
|
-
IconButton,
|
|
309
|
-
{
|
|
310
|
-
title: translateString(import_utils5.TranslatableString.AddItemButton),
|
|
311
|
-
iconType: "primary",
|
|
312
|
-
block: true,
|
|
313
|
-
...props,
|
|
314
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons2.PlusCircleOutlined, {})
|
|
315
|
-
}
|
|
316
|
-
);
|
|
317
|
-
}
|
|
318
|
-
function CopyButton(props) {
|
|
319
|
-
const {
|
|
320
|
-
registry: { translateString }
|
|
321
|
-
} = props;
|
|
322
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IconButton, { title: translateString(import_utils5.TranslatableString.CopyButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons2.CopyOutlined, {}) });
|
|
323
|
-
}
|
|
324
|
-
function MoveDownButton(props) {
|
|
325
|
-
const {
|
|
326
|
-
registry: { translateString }
|
|
327
|
-
} = props;
|
|
328
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IconButton, { title: translateString(import_utils5.TranslatableString.MoveDownButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons2.ArrowDownOutlined, {}) });
|
|
329
|
-
}
|
|
330
|
-
function MoveUpButton(props) {
|
|
331
|
-
const {
|
|
332
|
-
registry: { translateString }
|
|
333
|
-
} = props;
|
|
334
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(IconButton, { title: translateString(import_utils5.TranslatableString.MoveUpButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons2.ArrowUpOutlined, {}) });
|
|
335
|
-
}
|
|
336
|
-
function RemoveButton(props) {
|
|
337
|
-
const options = (0, import_utils5.getUiOptions)(props.uiSchema);
|
|
338
|
-
const {
|
|
339
|
-
registry: { translateString }
|
|
340
|
-
} = props;
|
|
341
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
342
|
-
IconButton,
|
|
343
|
-
{
|
|
344
|
-
title: translateString(import_utils5.TranslatableString.RemoveButton),
|
|
345
|
-
danger: true,
|
|
346
|
-
block: !!options.block,
|
|
347
|
-
iconType: "primary",
|
|
348
|
-
...props,
|
|
349
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons2.DeleteOutlined, {})
|
|
350
|
-
}
|
|
351
|
-
);
|
|
352
|
-
}
|
|
353
|
-
function ClearButton(props) {
|
|
354
|
-
const {
|
|
355
|
-
registry: { translateString }
|
|
356
|
-
} = props;
|
|
357
|
-
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
|
|
358
|
-
IconButton,
|
|
359
|
-
{
|
|
360
|
-
title: translateString(import_utils5.TranslatableString.ClearButton),
|
|
361
|
-
...props,
|
|
362
|
-
iconType: "link",
|
|
363
|
-
icon: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_icons2.CloseOutlined, {})
|
|
364
|
-
}
|
|
365
|
-
);
|
|
270
|
+
// src/templates/FieldDescriptionTemplate/index.tsx
|
|
271
|
+
var import_core2 = require("@rjsf/core");
|
|
272
|
+
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
273
|
+
function DescriptionField(props) {
|
|
274
|
+
const { id, description, registry, uiSchema } = props;
|
|
275
|
+
if (!description) {
|
|
276
|
+
return null;
|
|
277
|
+
}
|
|
278
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)("span", { id, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_core2.RichDescription, { description, registry, uiSchema }) });
|
|
366
279
|
}
|
|
367
280
|
|
|
368
281
|
// src/templates/FieldErrorTemplate/index.tsx
|
|
369
|
-
var
|
|
370
|
-
var
|
|
282
|
+
var import_utils5 = require("@rjsf/utils");
|
|
283
|
+
var import_jsx_runtime6 = require("react/jsx-runtime");
|
|
371
284
|
function FieldErrorTemplate(props) {
|
|
372
285
|
const { errors = [], fieldPathId } = props;
|
|
373
286
|
if (errors.length === 0) {
|
|
374
287
|
return null;
|
|
375
288
|
}
|
|
376
|
-
const id = (0,
|
|
377
|
-
return /* @__PURE__ */ (0,
|
|
289
|
+
const id = (0, import_utils5.errorId)(fieldPathId);
|
|
290
|
+
return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { id, children: errors.map((error) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("div", { children: error }, `field-${id}-error-${error}`)) });
|
|
378
291
|
}
|
|
379
292
|
|
|
380
293
|
// src/templates/FieldTemplate/index.tsx
|
|
381
|
-
var
|
|
382
|
-
var
|
|
383
|
-
var
|
|
294
|
+
var import_utils6 = require("@rjsf/utils");
|
|
295
|
+
var import_antd5 = require("antd");
|
|
296
|
+
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
384
297
|
var VERTICAL_LABEL_COL = { span: 24 };
|
|
385
298
|
var VERTICAL_WRAPPER_COL = { span: 24 };
|
|
386
299
|
function FieldTemplate(props) {
|
|
@@ -409,14 +322,14 @@ function FieldTemplate(props) {
|
|
|
409
322
|
wrapperStyle,
|
|
410
323
|
descriptionLocation = "below"
|
|
411
324
|
} = formContext;
|
|
412
|
-
const uiOptions = (0,
|
|
413
|
-
const WrapIfAdditionalTemplate2 = (0,
|
|
325
|
+
const uiOptions = (0, import_utils6.getUiOptions)(uiSchema);
|
|
326
|
+
const WrapIfAdditionalTemplate2 = (0, import_utils6.getTemplate)(
|
|
414
327
|
"WrapIfAdditionalTemplate",
|
|
415
328
|
registry,
|
|
416
329
|
uiOptions
|
|
417
330
|
);
|
|
418
331
|
if (hidden) {
|
|
419
|
-
return /* @__PURE__ */ (0,
|
|
332
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)("div", { className: "rjsf-field-hidden", children });
|
|
420
333
|
}
|
|
421
334
|
const descriptionNode = rawDescription ? description : void 0;
|
|
422
335
|
const descriptionProps = {};
|
|
@@ -430,8 +343,8 @@ function FieldTemplate(props) {
|
|
|
430
343
|
break;
|
|
431
344
|
}
|
|
432
345
|
const isCheckbox = uiOptions.widget === "checkbox";
|
|
433
|
-
return /* @__PURE__ */ (0,
|
|
434
|
-
|
|
346
|
+
return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(WrapIfAdditionalTemplate2, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
|
|
347
|
+
import_antd5.Form.Item,
|
|
435
348
|
{
|
|
436
349
|
colon,
|
|
437
350
|
hasFeedback: schema.type !== "array" && schema.type !== "object",
|
|
@@ -450,14 +363,101 @@ function FieldTemplate(props) {
|
|
|
450
363
|
}
|
|
451
364
|
|
|
452
365
|
// src/templates/GridTemplate/index.tsx
|
|
453
|
-
var
|
|
454
|
-
var
|
|
366
|
+
var import_antd6 = require("antd");
|
|
367
|
+
var import_jsx_runtime8 = require("react/jsx-runtime");
|
|
455
368
|
function GridTemplate(props) {
|
|
456
369
|
const { children, column, ...rest } = props;
|
|
457
370
|
if (column) {
|
|
458
|
-
return /* @__PURE__ */ (0,
|
|
371
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_antd6.Col, { ...rest, children });
|
|
459
372
|
}
|
|
460
|
-
return /* @__PURE__ */ (0,
|
|
373
|
+
return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_antd6.Row, { ...rest, children });
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
// src/templates/IconButton/index.tsx
|
|
377
|
+
var import_icons2 = require("@ant-design/icons");
|
|
378
|
+
var import_utils7 = require("@rjsf/utils");
|
|
379
|
+
var import_antd7 = require("antd");
|
|
380
|
+
var import_jsx_runtime9 = require("react/jsx-runtime");
|
|
381
|
+
function IconButton(props) {
|
|
382
|
+
const { iconType = "default", icon, onClick, uiSchema, registry, color, ...otherProps } = props;
|
|
383
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
384
|
+
import_antd7.Button,
|
|
385
|
+
{
|
|
386
|
+
onClick,
|
|
387
|
+
type: iconType,
|
|
388
|
+
icon,
|
|
389
|
+
color,
|
|
390
|
+
style: {
|
|
391
|
+
paddingTop: "4px"
|
|
392
|
+
/* Center the button */
|
|
393
|
+
},
|
|
394
|
+
...otherProps
|
|
395
|
+
}
|
|
396
|
+
);
|
|
397
|
+
}
|
|
398
|
+
function AddButton(props) {
|
|
399
|
+
const {
|
|
400
|
+
registry: { translateString }
|
|
401
|
+
} = props;
|
|
402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
403
|
+
IconButton,
|
|
404
|
+
{
|
|
405
|
+
title: translateString(import_utils7.TranslatableString.AddItemButton),
|
|
406
|
+
iconType: "primary",
|
|
407
|
+
block: true,
|
|
408
|
+
...props,
|
|
409
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.PlusCircleOutlined, {})
|
|
410
|
+
}
|
|
411
|
+
);
|
|
412
|
+
}
|
|
413
|
+
function CopyButton(props) {
|
|
414
|
+
const {
|
|
415
|
+
registry: { translateString }
|
|
416
|
+
} = props;
|
|
417
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconButton, { title: translateString(import_utils7.TranslatableString.CopyButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.CopyOutlined, {}) });
|
|
418
|
+
}
|
|
419
|
+
function MoveDownButton(props) {
|
|
420
|
+
const {
|
|
421
|
+
registry: { translateString }
|
|
422
|
+
} = props;
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconButton, { title: translateString(import_utils7.TranslatableString.MoveDownButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.ArrowDownOutlined, {}) });
|
|
424
|
+
}
|
|
425
|
+
function MoveUpButton(props) {
|
|
426
|
+
const {
|
|
427
|
+
registry: { translateString }
|
|
428
|
+
} = props;
|
|
429
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(IconButton, { title: translateString(import_utils7.TranslatableString.MoveUpButton), ...props, icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.ArrowUpOutlined, {}) });
|
|
430
|
+
}
|
|
431
|
+
function RemoveButton(props) {
|
|
432
|
+
const options = (0, import_utils7.getUiOptions)(props.uiSchema);
|
|
433
|
+
const {
|
|
434
|
+
registry: { translateString }
|
|
435
|
+
} = props;
|
|
436
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
437
|
+
IconButton,
|
|
438
|
+
{
|
|
439
|
+
title: translateString(import_utils7.TranslatableString.RemoveButton),
|
|
440
|
+
danger: true,
|
|
441
|
+
block: !!options.block,
|
|
442
|
+
iconType: "primary",
|
|
443
|
+
...props,
|
|
444
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.DeleteOutlined, {})
|
|
445
|
+
}
|
|
446
|
+
);
|
|
447
|
+
}
|
|
448
|
+
function ClearButton(props) {
|
|
449
|
+
const {
|
|
450
|
+
registry: { translateString }
|
|
451
|
+
} = props;
|
|
452
|
+
return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
453
|
+
IconButton,
|
|
454
|
+
{
|
|
455
|
+
title: translateString(import_utils7.TranslatableString.ClearButton),
|
|
456
|
+
...props,
|
|
457
|
+
iconType: "link",
|
|
458
|
+
icon: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.CloseOutlined, {})
|
|
459
|
+
}
|
|
460
|
+
);
|
|
461
461
|
}
|
|
462
462
|
|
|
463
463
|
// src/templates/MultiSchemaFieldTemplate/index.tsx
|
|
@@ -471,13 +471,13 @@ function MultiSchemaFieldTemplate(props) {
|
|
|
471
471
|
}
|
|
472
472
|
|
|
473
473
|
// src/templates/ObjectFieldTemplate/index.tsx
|
|
474
|
+
var import_react3 = require("react");
|
|
475
|
+
var import_utils8 = require("@rjsf/utils");
|
|
476
|
+
var import_antd8 = require("antd");
|
|
474
477
|
var import_classnames2 = __toESM(require("classnames"), 1);
|
|
475
|
-
var import_isObject = __toESM(require("lodash/isObject"), 1);
|
|
476
478
|
var import_isNumber = __toESM(require("lodash/isNumber"), 1);
|
|
479
|
+
var import_isObject = __toESM(require("lodash/isObject"), 1);
|
|
477
480
|
var import_isString = __toESM(require("lodash/isString"), 1);
|
|
478
|
-
var import_utils8 = require("@rjsf/utils");
|
|
479
|
-
var import_antd8 = require("antd");
|
|
480
|
-
var import_react3 = require("react");
|
|
481
481
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
482
482
|
function ObjectFieldTemplate(props) {
|
|
483
483
|
const {
|
|
@@ -606,8 +606,8 @@ function OptionalDataControlsTemplate(props) {
|
|
|
606
606
|
}
|
|
607
607
|
|
|
608
608
|
// src/templates/SubmitButton/index.tsx
|
|
609
|
-
var import_antd9 = require("antd");
|
|
610
609
|
var import_utils9 = require("@rjsf/utils");
|
|
610
|
+
var import_antd9 = require("antd");
|
|
611
611
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
612
612
|
function SubmitButton({ uiSchema }) {
|
|
613
613
|
const { submitText, norender, props: submitButtonProps } = (0, import_utils9.getSubmitButtonOptions)(uiSchema);
|
|
@@ -618,9 +618,9 @@ function SubmitButton({ uiSchema }) {
|
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
// src/templates/TitleField/index.tsx
|
|
621
|
-
var import_classnames3 = __toESM(require("classnames"), 1);
|
|
622
|
-
var import_antd10 = require("antd");
|
|
623
621
|
var import_react4 = require("react");
|
|
622
|
+
var import_antd10 = require("antd");
|
|
623
|
+
var import_classnames3 = __toESM(require("classnames"), 1);
|
|
624
624
|
var import_jsx_runtime14 = require("react/jsx-runtime");
|
|
625
625
|
function TitleField({
|
|
626
626
|
id,
|
|
@@ -676,8 +676,8 @@ function TitleField({
|
|
|
676
676
|
}
|
|
677
677
|
|
|
678
678
|
// src/templates/WrapIfAdditionalTemplate/index.tsx
|
|
679
|
-
var import_antd11 = require("antd");
|
|
680
679
|
var import_utils10 = require("@rjsf/utils");
|
|
680
|
+
var import_antd11 = require("antd");
|
|
681
681
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
682
682
|
var VERTICAL_LABEL_COL2 = { span: 24 };
|
|
683
683
|
var VERTICAL_WRAPPER_COL2 = { span: 24 };
|
|
@@ -803,8 +803,8 @@ function AltDateTimeWidget({ time = true, ...props }) {
|
|
|
803
803
|
}
|
|
804
804
|
|
|
805
805
|
// src/widgets/AltDateWidget/index.tsx
|
|
806
|
-
var import_antd12 = require("antd");
|
|
807
806
|
var import_utils11 = require("@rjsf/utils");
|
|
807
|
+
var import_antd12 = require("antd");
|
|
808
808
|
var import_jsx_runtime17 = require("react/jsx-runtime");
|
|
809
809
|
function AltDateWidget({ autofocus = false, disabled = false, options, readonly = false, time = false, ...props }) {
|
|
810
810
|
const { id, name, onBlur, onFocus, registry } = props;
|
|
@@ -841,8 +841,8 @@ function AltDateWidget({ autofocus = false, disabled = false, options, readonly
|
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
// src/widgets/CheckboxesWidget/index.tsx
|
|
844
|
-
var import_antd13 = require("antd");
|
|
845
844
|
var import_utils12 = require("@rjsf/utils");
|
|
845
|
+
var import_antd13 = require("antd");
|
|
846
846
|
var import_jsx_runtime18 = require("react/jsx-runtime");
|
|
847
847
|
function CheckboxesWidget({
|
|
848
848
|
autofocus,
|
|
@@ -898,8 +898,8 @@ function CheckboxesWidget({
|
|
|
898
898
|
}
|
|
899
899
|
|
|
900
900
|
// src/widgets/CheckboxWidget/index.tsx
|
|
901
|
-
var import_antd14 = require("antd");
|
|
902
901
|
var import_utils13 = require("@rjsf/utils");
|
|
902
|
+
var import_antd14 = require("antd");
|
|
903
903
|
var import_jsx_runtime19 = require("react/jsx-runtime");
|
|
904
904
|
function CheckboxWidget(props) {
|
|
905
905
|
const { autofocus, disabled, registry, id, htmlName, label, hideLabel, onBlur, onChange, onFocus, readonly, value } = props;
|
|
@@ -929,9 +929,9 @@ function CheckboxWidget(props) {
|
|
|
929
929
|
}
|
|
930
930
|
|
|
931
931
|
// src/widgets/DateTimeWidget/index.tsx
|
|
932
|
-
var import_dayjs = __toESM(require("dayjs"), 1);
|
|
933
932
|
var import_utils14 = require("@rjsf/utils");
|
|
934
933
|
var import_antd15 = require("antd");
|
|
934
|
+
var import_dayjs = __toESM(require("dayjs"), 1);
|
|
935
935
|
var import_jsx_runtime20 = require("react/jsx-runtime");
|
|
936
936
|
var DATE_PICKER_STYLE = {
|
|
937
937
|
width: "100%"
|
|
@@ -964,9 +964,9 @@ function DateTimeWidget(props) {
|
|
|
964
964
|
}
|
|
965
965
|
|
|
966
966
|
// src/widgets/DateWidget/index.tsx
|
|
967
|
-
var import_dayjs2 = __toESM(require("dayjs"), 1);
|
|
968
967
|
var import_utils15 = require("@rjsf/utils");
|
|
969
968
|
var import_antd16 = require("antd");
|
|
969
|
+
var import_dayjs2 = __toESM(require("dayjs"), 1);
|
|
970
970
|
var import_jsx_runtime21 = require("react/jsx-runtime");
|
|
971
971
|
var DATE_PICKER_STYLE2 = {
|
|
972
972
|
width: "100%"
|
|
@@ -999,8 +999,8 @@ function DateWidget(props) {
|
|
|
999
999
|
}
|
|
1000
1000
|
|
|
1001
1001
|
// src/widgets/PasswordWidget/index.tsx
|
|
1002
|
-
var import_antd17 = require("antd");
|
|
1003
1002
|
var import_utils16 = require("@rjsf/utils");
|
|
1003
|
+
var import_antd17 = require("antd");
|
|
1004
1004
|
var import_jsx_runtime22 = require("react/jsx-runtime");
|
|
1005
1005
|
function PasswordWidget(props) {
|
|
1006
1006
|
const { disabled, registry, id, onBlur, onChange, onFocus, options, placeholder, readonly, value } = props;
|
|
@@ -1027,8 +1027,8 @@ function PasswordWidget(props) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
|
|
1029
1029
|
// src/widgets/RadioWidget/index.tsx
|
|
1030
|
-
var import_antd18 = require("antd");
|
|
1031
1030
|
var import_utils17 = require("@rjsf/utils");
|
|
1031
|
+
var import_antd18 = require("antd");
|
|
1032
1032
|
var import_jsx_runtime23 = require("react/jsx-runtime");
|
|
1033
1033
|
function RadioWidget({
|
|
1034
1034
|
autofocus,
|
|
@@ -1079,8 +1079,8 @@ function RadioWidget({
|
|
|
1079
1079
|
}
|
|
1080
1080
|
|
|
1081
1081
|
// src/widgets/RangeWidget/index.tsx
|
|
1082
|
-
var import_antd19 = require("antd");
|
|
1083
1082
|
var import_utils18 = require("@rjsf/utils");
|
|
1083
|
+
var import_antd19 = require("antd");
|
|
1084
1084
|
var import_jsx_runtime24 = require("react/jsx-runtime");
|
|
1085
1085
|
function RangeWidget(props) {
|
|
1086
1086
|
const {
|
|
@@ -1129,8 +1129,8 @@ function RangeWidget(props) {
|
|
|
1129
1129
|
|
|
1130
1130
|
// src/widgets/SelectWidget/index.tsx
|
|
1131
1131
|
var import_react5 = require("react");
|
|
1132
|
-
var import_antd20 = require("antd");
|
|
1133
1132
|
var import_utils19 = require("@rjsf/utils");
|
|
1133
|
+
var import_antd20 = require("antd");
|
|
1134
1134
|
var import_isString2 = __toESM(require("lodash/isString"), 1);
|
|
1135
1135
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
1136
1136
|
var SELECT_STYLE = {
|
|
@@ -1213,8 +1213,8 @@ function SelectWidget({
|
|
|
1213
1213
|
SelectWidget.getPopupContainerCallback = () => (node) => node.parentElement;
|
|
1214
1214
|
|
|
1215
1215
|
// src/widgets/TextareaWidget/index.tsx
|
|
1216
|
-
var import_antd21 = require("antd");
|
|
1217
1216
|
var import_utils20 = require("@rjsf/utils");
|
|
1217
|
+
var import_antd21 = require("antd");
|
|
1218
1218
|
var import_jsx_runtime26 = require("react/jsx-runtime");
|
|
1219
1219
|
var INPUT_STYLE3 = {
|
|
1220
1220
|
width: "100%"
|