@rjsf/semantic-ui 6.7.1 → 6.10.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.
Files changed (265) hide show
  1. package/dist/index.cjs +15 -20
  2. package/dist/index.cjs.map +3 -3
  3. package/dist/semantic-ui.esm.js +14 -9
  4. package/dist/semantic-ui.esm.js.map +2 -2
  5. package/dist/semantic-ui.umd.js +18 -11
  6. package/lib/AddButton/AddButton.d.ts +2 -1
  7. package/lib/AddButton/AddButton.d.ts.map +1 -0
  8. package/lib/AddButton/index.d.ts +3 -2
  9. package/lib/AddButton/index.d.ts.map +1 -0
  10. package/lib/AddButton/index.js +2 -2
  11. package/lib/AddButton/index.js.map +1 -1
  12. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +1 -0
  13. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts.map +1 -0
  14. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +1 -1
  15. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
  16. package/lib/ArrayFieldItemTemplate/index.d.ts +3 -2
  17. package/lib/ArrayFieldItemTemplate/index.d.ts.map +1 -0
  18. package/lib/ArrayFieldItemTemplate/index.js +2 -2
  19. package/lib/ArrayFieldItemTemplate/index.js.map +1 -1
  20. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +1 -0
  21. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts.map +1 -0
  22. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +1 -1
  23. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
  24. package/lib/ArrayFieldTemplate/index.d.ts +3 -2
  25. package/lib/ArrayFieldTemplate/index.d.ts.map +1 -0
  26. package/lib/ArrayFieldTemplate/index.js +2 -2
  27. package/lib/ArrayFieldTemplate/index.js.map +1 -1
  28. package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +1 -0
  29. package/lib/BaseInputTemplate/BaseInputTemplate.d.ts.map +1 -0
  30. package/lib/BaseInputTemplate/BaseInputTemplate.js +4 -5
  31. package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
  32. package/lib/BaseInputTemplate/index.d.ts +3 -2
  33. package/lib/BaseInputTemplate/index.d.ts.map +1 -0
  34. package/lib/BaseInputTemplate/index.js +2 -2
  35. package/lib/BaseInputTemplate/index.js.map +1 -1
  36. package/lib/CheckboxWidget/CheckboxWidget.d.ts +1 -0
  37. package/lib/CheckboxWidget/CheckboxWidget.d.ts.map +1 -0
  38. package/lib/CheckboxWidget/CheckboxWidget.js +8 -12
  39. package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
  40. package/lib/CheckboxWidget/index.d.ts +3 -2
  41. package/lib/CheckboxWidget/index.d.ts.map +1 -0
  42. package/lib/CheckboxWidget/index.js +2 -2
  43. package/lib/CheckboxWidget/index.js.map +1 -1
  44. package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +1 -0
  45. package/lib/CheckboxesWidget/CheckboxesWidget.d.ts.map +1 -0
  46. package/lib/CheckboxesWidget/CheckboxesWidget.js +1 -1
  47. package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
  48. package/lib/CheckboxesWidget/index.d.ts +3 -2
  49. package/lib/CheckboxesWidget/index.d.ts.map +1 -0
  50. package/lib/CheckboxesWidget/index.js +2 -2
  51. package/lib/CheckboxesWidget/index.js.map +1 -1
  52. package/lib/CyclicSchemaExpandTemplate/CyclicSchemaExpandTemplate.d.ts +1 -0
  53. package/lib/CyclicSchemaExpandTemplate/CyclicSchemaExpandTemplate.d.ts.map +1 -0
  54. package/lib/CyclicSchemaExpandTemplate/index.d.ts +3 -2
  55. package/lib/CyclicSchemaExpandTemplate/index.d.ts.map +1 -0
  56. package/lib/CyclicSchemaExpandTemplate/index.js +2 -2
  57. package/lib/CyclicSchemaExpandTemplate/index.js.map +1 -1
  58. package/lib/DescriptionField/DescriptionField.d.ts +1 -0
  59. package/lib/DescriptionField/DescriptionField.d.ts.map +1 -0
  60. package/lib/DescriptionField/index.d.ts +3 -2
  61. package/lib/DescriptionField/index.d.ts.map +1 -0
  62. package/lib/DescriptionField/index.js +2 -2
  63. package/lib/DescriptionField/index.js.map +1 -1
  64. package/lib/ErrorList/ErrorList.d.ts +1 -0
  65. package/lib/ErrorList/ErrorList.d.ts.map +1 -0
  66. package/lib/ErrorList/index.d.ts +3 -2
  67. package/lib/ErrorList/index.d.ts.map +1 -0
  68. package/lib/ErrorList/index.js +2 -2
  69. package/lib/ErrorList/index.js.map +1 -1
  70. package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +1 -0
  71. package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts.map +1 -0
  72. package/lib/FieldErrorTemplate/FieldErrorTemplate.js +2 -3
  73. package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
  74. package/lib/FieldErrorTemplate/index.d.ts +3 -2
  75. package/lib/FieldErrorTemplate/index.d.ts.map +1 -0
  76. package/lib/FieldErrorTemplate/index.js +2 -2
  77. package/lib/FieldErrorTemplate/index.js.map +1 -1
  78. package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts +1 -0
  79. package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts.map +1 -0
  80. package/lib/FieldHelpTemplate/index.d.ts +3 -2
  81. package/lib/FieldHelpTemplate/index.d.ts.map +1 -0
  82. package/lib/FieldHelpTemplate/index.js +2 -2
  83. package/lib/FieldHelpTemplate/index.js.map +1 -1
  84. package/lib/FieldTemplate/FieldTemplate.d.ts +1 -0
  85. package/lib/FieldTemplate/FieldTemplate.d.ts.map +1 -0
  86. package/lib/FieldTemplate/FieldTemplate.js +1 -1
  87. package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
  88. package/lib/FieldTemplate/index.d.ts +3 -2
  89. package/lib/FieldTemplate/index.d.ts.map +1 -0
  90. package/lib/FieldTemplate/index.js +2 -2
  91. package/lib/FieldTemplate/index.js.map +1 -1
  92. package/lib/GridTemplate/GridTemplate.d.ts +1 -0
  93. package/lib/GridTemplate/GridTemplate.d.ts.map +1 -0
  94. package/lib/GridTemplate/index.d.ts +3 -2
  95. package/lib/GridTemplate/index.d.ts.map +1 -0
  96. package/lib/GridTemplate/index.js +2 -2
  97. package/lib/GridTemplate/index.js.map +1 -1
  98. package/lib/IconButton/IconButton.d.ts +1 -0
  99. package/lib/IconButton/IconButton.d.ts.map +1 -0
  100. package/lib/IconButton/index.d.ts +3 -2
  101. package/lib/IconButton/index.d.ts.map +1 -0
  102. package/lib/IconButton/index.js +2 -2
  103. package/lib/IconButton/index.js.map +1 -1
  104. package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +1 -0
  105. package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts.map +1 -0
  106. package/lib/MultiSchemaFieldTemplate/index.d.ts +3 -2
  107. package/lib/MultiSchemaFieldTemplate/index.d.ts.map +1 -0
  108. package/lib/MultiSchemaFieldTemplate/index.js +2 -2
  109. package/lib/MultiSchemaFieldTemplate/index.js.map +1 -1
  110. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +1 -0
  111. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts.map +1 -0
  112. package/lib/ObjectFieldTemplate/index.d.ts +3 -2
  113. package/lib/ObjectFieldTemplate/index.d.ts.map +1 -0
  114. package/lib/ObjectFieldTemplate/index.js +2 -2
  115. package/lib/ObjectFieldTemplate/index.js.map +1 -1
  116. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +1 -0
  117. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts.map +1 -0
  118. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +2 -2
  119. package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
  120. package/lib/OptionalDataControlsTemplate/index.d.ts +3 -2
  121. package/lib/OptionalDataControlsTemplate/index.d.ts.map +1 -0
  122. package/lib/OptionalDataControlsTemplate/index.js +2 -2
  123. package/lib/OptionalDataControlsTemplate/index.js.map +1 -1
  124. package/lib/RadioWidget/RadioWidget.d.ts +1 -0
  125. package/lib/RadioWidget/RadioWidget.d.ts.map +1 -0
  126. package/lib/RadioWidget/RadioWidget.js +4 -1
  127. package/lib/RadioWidget/RadioWidget.js.map +1 -1
  128. package/lib/RadioWidget/index.d.ts +3 -2
  129. package/lib/RadioWidget/index.d.ts.map +1 -0
  130. package/lib/RadioWidget/index.js +2 -2
  131. package/lib/RadioWidget/index.js.map +1 -1
  132. package/lib/RangeWidget/RangeWidget.d.ts +1 -0
  133. package/lib/RangeWidget/RangeWidget.d.ts.map +1 -0
  134. package/lib/RangeWidget/RangeWidget.js +4 -4
  135. package/lib/RangeWidget/RangeWidget.js.map +1 -1
  136. package/lib/RangeWidget/index.d.ts +3 -2
  137. package/lib/RangeWidget/index.d.ts.map +1 -0
  138. package/lib/RangeWidget/index.js +2 -2
  139. package/lib/RangeWidget/index.js.map +1 -1
  140. package/lib/SelectWidget/SelectWidget.d.ts +1 -0
  141. package/lib/SelectWidget/SelectWidget.d.ts.map +1 -0
  142. package/lib/SelectWidget/SelectWidget.js +4 -5
  143. package/lib/SelectWidget/SelectWidget.js.map +1 -1
  144. package/lib/SelectWidget/index.d.ts +3 -2
  145. package/lib/SelectWidget/index.d.ts.map +1 -0
  146. package/lib/SelectWidget/index.js +2 -2
  147. package/lib/SelectWidget/index.js.map +1 -1
  148. package/lib/SemanticUIForm/SemanticUIForm.d.ts +1 -0
  149. package/lib/SemanticUIForm/SemanticUIForm.d.ts.map +1 -0
  150. package/lib/SemanticUIForm/SemanticUIForm.js +1 -1
  151. package/lib/SemanticUIForm/SemanticUIForm.js.map +1 -1
  152. package/lib/SemanticUIForm/index.d.ts +3 -2
  153. package/lib/SemanticUIForm/index.d.ts.map +1 -0
  154. package/lib/SemanticUIForm/index.js +2 -2
  155. package/lib/SemanticUIForm/index.js.map +1 -1
  156. package/lib/SubmitButton/SubmitButton.d.ts +1 -0
  157. package/lib/SubmitButton/SubmitButton.d.ts.map +1 -0
  158. package/lib/SubmitButton/index.d.ts +3 -2
  159. package/lib/SubmitButton/index.d.ts.map +1 -0
  160. package/lib/SubmitButton/index.js +2 -2
  161. package/lib/SubmitButton/index.js.map +1 -1
  162. package/lib/Templates/Templates.d.ts +1 -0
  163. package/lib/Templates/Templates.d.ts.map +1 -0
  164. package/lib/Templates/Templates.js +18 -18
  165. package/lib/Templates/Templates.js.map +1 -1
  166. package/lib/Templates/index.d.ts +3 -2
  167. package/lib/Templates/index.d.ts.map +1 -0
  168. package/lib/Templates/index.js +2 -2
  169. package/lib/Templates/index.js.map +1 -1
  170. package/lib/TextareaWidget/TextareaWidget.d.ts +1 -0
  171. package/lib/TextareaWidget/TextareaWidget.d.ts.map +1 -0
  172. package/lib/TextareaWidget/TextareaWidget.js +4 -4
  173. package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
  174. package/lib/TextareaWidget/index.d.ts +3 -2
  175. package/lib/TextareaWidget/index.d.ts.map +1 -0
  176. package/lib/TextareaWidget/index.js +2 -2
  177. package/lib/TextareaWidget/index.js.map +1 -1
  178. package/lib/Theme/Theme.d.ts +1 -0
  179. package/lib/Theme/Theme.d.ts.map +1 -0
  180. package/lib/Theme/Theme.js +2 -2
  181. package/lib/Theme/Theme.js.map +1 -1
  182. package/lib/Theme/index.d.ts +3 -2
  183. package/lib/Theme/index.d.ts.map +1 -0
  184. package/lib/Theme/index.js +2 -2
  185. package/lib/Theme/index.js.map +1 -1
  186. package/lib/TitleField/TitleField.d.ts +1 -0
  187. package/lib/TitleField/TitleField.d.ts.map +1 -0
  188. package/lib/TitleField/TitleField.js +1 -1
  189. package/lib/TitleField/TitleField.js.map +1 -1
  190. package/lib/TitleField/index.d.ts +3 -2
  191. package/lib/TitleField/index.d.ts.map +1 -0
  192. package/lib/TitleField/index.js +2 -2
  193. package/lib/TitleField/index.js.map +1 -1
  194. package/lib/Widgets/Widgets.d.ts +1 -0
  195. package/lib/Widgets/Widgets.d.ts.map +1 -0
  196. package/lib/Widgets/Widgets.js +6 -6
  197. package/lib/Widgets/Widgets.js.map +1 -1
  198. package/lib/Widgets/index.d.ts +3 -2
  199. package/lib/Widgets/index.d.ts.map +1 -0
  200. package/lib/Widgets/index.js +2 -2
  201. package/lib/Widgets/index.js.map +1 -1
  202. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +1 -0
  203. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts.map +1 -0
  204. package/lib/WrapIfAdditionalTemplate/index.d.ts +3 -2
  205. package/lib/WrapIfAdditionalTemplate/index.d.ts.map +1 -0
  206. package/lib/WrapIfAdditionalTemplate/index.js +2 -2
  207. package/lib/WrapIfAdditionalTemplate/index.js.map +1 -1
  208. package/lib/index.d.ts +6 -5
  209. package/lib/index.d.ts.map +1 -0
  210. package/lib/index.js +5 -5
  211. package/lib/index.js.map +1 -1
  212. package/lib/util.d.ts +1 -0
  213. package/lib/util.d.ts.map +1 -0
  214. package/lib/util.js +3 -4
  215. package/lib/util.js.map +1 -1
  216. package/package.json +9 -11
  217. package/src/AddButton/AddButton.tsx +1 -1
  218. package/src/AddButton/index.ts +2 -2
  219. package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +1 -1
  220. package/src/ArrayFieldItemTemplate/index.ts +2 -2
  221. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +1 -1
  222. package/src/ArrayFieldTemplate/index.ts +2 -2
  223. package/src/BaseInputTemplate/BaseInputTemplate.tsx +2 -2
  224. package/src/BaseInputTemplate/index.ts +2 -2
  225. package/src/CheckboxWidget/CheckboxWidget.tsx +4 -6
  226. package/src/CheckboxWidget/index.ts +2 -2
  227. package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
  228. package/src/CheckboxesWidget/index.ts +2 -2
  229. package/src/CyclicSchemaExpandTemplate/index.ts +2 -2
  230. package/src/DescriptionField/index.ts +2 -2
  231. package/src/ErrorList/index.ts +2 -2
  232. package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +4 -4
  233. package/src/FieldErrorTemplate/index.ts +2 -2
  234. package/src/FieldHelpTemplate/index.ts +2 -2
  235. package/src/FieldTemplate/FieldTemplate.tsx +1 -1
  236. package/src/FieldTemplate/index.ts +2 -2
  237. package/src/GridTemplate/index.ts +2 -2
  238. package/src/IconButton/index.ts +2 -2
  239. package/src/MultiSchemaFieldTemplate/index.ts +2 -2
  240. package/src/ObjectFieldTemplate/index.ts +2 -2
  241. package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +2 -2
  242. package/src/OptionalDataControlsTemplate/index.ts +2 -2
  243. package/src/RadioWidget/RadioWidget.tsx +4 -1
  244. package/src/RadioWidget/index.ts +2 -2
  245. package/src/RangeWidget/RangeWidget.tsx +1 -1
  246. package/src/RangeWidget/index.ts +2 -2
  247. package/src/SelectWidget/SelectWidget.tsx +2 -3
  248. package/src/SelectWidget/index.ts +2 -2
  249. package/src/SemanticUIForm/SemanticUIForm.ts +1 -1
  250. package/src/SemanticUIForm/index.ts +2 -2
  251. package/src/SubmitButton/index.ts +2 -2
  252. package/src/Templates/Templates.ts +18 -18
  253. package/src/Templates/index.ts +2 -2
  254. package/src/TextareaWidget/TextareaWidget.tsx +1 -1
  255. package/src/TextareaWidget/index.ts +2 -2
  256. package/src/Theme/Theme.ts +2 -2
  257. package/src/Theme/index.ts +2 -2
  258. package/src/TitleField/TitleField.tsx +1 -1
  259. package/src/TitleField/index.ts +2 -2
  260. package/src/Widgets/Widgets.tsx +6 -6
  261. package/src/Widgets/index.ts +2 -2
  262. package/src/WrapIfAdditionalTemplate/index.ts +2 -2
  263. package/src/index.ts +5 -5
  264. package/lib/tsconfig.tsbuildinfo +0 -1
  265. package/src/tsconfig.json +0 -25
package/dist/index.cjs CHANGED
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // src/index.ts
@@ -284,7 +274,7 @@ function BaseInputTemplate(props) {
284
274
  (e) => {
285
275
  e.preventDefault();
286
276
  e.stopPropagation();
287
- onChange(options.emptyValue ?? "");
277
+ onChange(options.emptyValue);
288
278
  },
289
279
  [onChange, options.emptyValue]
290
280
  );
@@ -361,9 +351,11 @@ function ErrorList({
361
351
 
362
352
  // src/FieldErrorTemplate/FieldErrorTemplate.tsx
363
353
  var import_utils8 = require("@rjsf/utils");
364
- var import_uniqueId = __toESM(require("lodash/uniqueId"), 1);
365
354
  var import_semantic_ui_react6 = require("semantic-ui-react");
366
- var import_jsx_runtime9 = require("react/jsx-runtime");
355
+ var import_jsx_runtime9 = (
356
+ // oxlint-disable-next-line react/no-array-index-key
357
+ require("react/jsx-runtime")
358
+ );
367
359
  var DEFAULT_OPTIONS = {
368
360
  options: {
369
361
  pointing: "above",
@@ -380,7 +372,7 @@ function FieldErrorTemplate({ errors, fieldPathId, uiSchema, registry }) {
380
372
  const { pointing, size } = options;
381
373
  if (errors && errors.length > 0) {
382
374
  const id = (0, import_utils8.errorId)(fieldPathId);
383
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_semantic_ui_react6.Label, { id, color: "red", pointing: pointing || "above", size: size || "small", basic: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_semantic_ui_react6.List, { bulleted: true, children: errors.map((error) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_semantic_ui_react6.List.Item, { children: error }, (0, import_uniqueId.default)("field-error-"))) }) });
375
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_semantic_ui_react6.Label, { id, color: "red", pointing: pointing || "above", size: size || "small", basic: true, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_semantic_ui_react6.List, { bulleted: true, children: errors.map((error, i) => /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_semantic_ui_react6.List.Item, { children: error }, i)) }) });
384
376
  }
385
377
  return null;
386
378
  }
@@ -876,7 +868,8 @@ function CheckboxWidget(props) {
876
868
  schema,
877
869
  uiSchema,
878
870
  rawErrors = [],
879
- registry
871
+ registry,
872
+ required
880
873
  } = props;
881
874
  const semanticProps = getSemanticProps({
882
875
  options,
@@ -891,12 +884,12 @@ function CheckboxWidget(props) {
891
884
  registry,
892
885
  options
893
886
  );
894
- const required = (0, import_utils16.schemaRequiresTrueValue)(schema);
895
887
  const checked = value === "true" || value === true;
896
888
  const handleChange = (_, data) => onChange?.(data.checked);
897
889
  const handleBlur = () => onBlur?.(id, value);
898
890
  const handleFocus = () => onFocus?.(id, value);
899
891
  const description = options.description ?? schema.description;
892
+ const trueValueRequired = (0, import_utils16.schemaRequiresTrueValue)(schema) && required;
900
893
  return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_jsx_runtime21.Fragment, { children: [
901
894
  !hideLabel && description && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
902
895
  DescriptionFieldTemplate,
@@ -921,7 +914,7 @@ function CheckboxWidget(props) {
921
914
  onChange: handleChange,
922
915
  onBlur: handleBlur,
923
916
  onFocus: handleFocus,
924
- required,
917
+ required: trueValueRequired,
925
918
  label: (0, import_utils16.labelValue)(label, hideLabel, false),
926
919
  "aria-describedby": (0, import_utils16.ariaDescribedByIds)(id)
927
920
  }
@@ -955,7 +948,10 @@ function RadioWidget(props) {
955
948
  const semanticProps = getSemanticProps({
956
949
  formContext: registry.formContext,
957
950
  options,
958
- uiSchema
951
+ uiSchema,
952
+ // Radio supports neither `fluid` nor `inverted`, so don't default them; they
953
+ // would be forwarded to the DOM element and trigger React unknown-attribute warnings
954
+ defaultSchemaProps: {}
959
955
  });
960
956
  const handleChange = (_, { value: eventValue }) => onChange((0, import_utils17.enumOptionValueDecoder)(String(eventValue), enumOptions, optionValueFormat, emptyValue));
961
957
  const handleBlur = () => onBlur(id, value);
@@ -1044,12 +1040,11 @@ function RangeWidget(props) {
1044
1040
 
1045
1041
  // src/SelectWidget/SelectWidget.tsx
1046
1042
  var import_utils19 = require("@rjsf/utils");
1047
- var import_map = __toESM(require("lodash/map"), 1);
1048
1043
  var import_semantic_ui_react19 = require("semantic-ui-react");
1049
1044
  var import_jsx_runtime24 = require("react/jsx-runtime");
1050
1045
  function createDefaultValueOptionsForDropDown(enumOptions, enumDisabled, showPlaceholderOption, placeholder, format = "indexed") {
1051
1046
  const disabledOptions = enumDisabled || [];
1052
- const options = (0, import_map.default)(enumOptions, ({ label, value }, index) => ({
1047
+ const options = (enumOptions ?? []).map(({ label, value }, index) => ({
1053
1048
  disabled: disabledOptions.includes(value),
1054
1049
  key: label,
1055
1050
  text: label,
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/index.ts", "../src/SemanticUIForm/SemanticUIForm.ts", "../src/Theme/Theme.ts", "../src/AddButton/AddButton.tsx", "../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx", "../src/util.tsx", "../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx", "../src/BaseInputTemplate/BaseInputTemplate.tsx", "../src/CyclicSchemaExpandTemplate/CyclicSchemaExpandTemplate.tsx", "../src/DescriptionField/DescriptionField.tsx", "../src/ErrorList/ErrorList.tsx", "../src/FieldErrorTemplate/FieldErrorTemplate.tsx", "../src/FieldHelpTemplate/FieldHelpTemplate.tsx", "../src/FieldTemplate/FieldTemplate.tsx", "../src/GridTemplate/GridTemplate.tsx", "../src/IconButton/IconButton.tsx", "../src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx", "../src/ObjectFieldTemplate/ObjectFieldTemplate.tsx", "../src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx", "../src/SubmitButton/SubmitButton.tsx", "../src/TitleField/TitleField.tsx", "../src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx", "../src/Templates/Templates.ts", "../src/CheckboxesWidget/CheckboxesWidget.tsx", "../src/CheckboxWidget/CheckboxWidget.tsx", "../src/RadioWidget/RadioWidget.tsx", "../src/RangeWidget/RangeWidget.tsx", "../src/SelectWidget/SelectWidget.tsx", "../src/TextareaWidget/TextareaWidget.tsx", "../src/Widgets/Widgets.tsx"],
4
- "sourcesContent": ["/**\n * @deprecated - This theme will be deleted in a future release of RJSF once we upgrade to React 19\n */\nimport SemanticUIForm from './SemanticUIForm/SemanticUIForm';\n\nexport { default as Templates, generateTemplates } from './Templates';\nexport { default as Form, generateForm } from './SemanticUIForm';\nexport { default as Theme, generateTheme } from './Theme';\nexport { default as Widgets, generateWidgets } from './Widgets';\n\nexport default SemanticUIForm;\n", "import type { ComponentType } from 'react';\nimport type { FormProps } from '@rjsf/core';\nimport { withTheme } from '@rjsf/core';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import type { ThemeProps } from '@rjsf/core';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Form as SuiForm } from 'semantic-ui-react';\n\nimport { generateTemplates } from '../Templates';\nimport { generateWidgets } from '../Widgets';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n _internalFormWrapper: SuiForm,\n };\n}\n\nexport default generateTheme();\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString } from '@rjsf/utils';\nimport type { ButtonProps } from 'semantic-ui-react';\nimport { Button, Icon } from 'semantic-ui-react';\n\nimport type { SemanticIconButtonProps } from '../IconButton';\n\n/** The `AddButton` renders a button that represent the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n color,\n ...props\n}: SemanticIconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n title={translateString(TranslatableString.AddItemButton)}\n color={color as ButtonProps['color']}\n size='tiny'\n {...props}\n icon\n >\n <Icon name='plus' />\n </Button>\n );\n}\n", "import type { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getUiOptions, getTemplate } from '@rjsf/utils';\nimport { Button, Grid, Segment } from 'semantic-ui-react';\n\nimport { getSemanticProps, MaybeWrap } from '../util';\n\nconst gridStyle = (vertical: boolean) => ({\n display: 'grid',\n gridTemplateColumns: `1fr ${vertical ? 65 : 150}px`,\n});\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry, parentUiSchema } =\n props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema: parentUiSchema,\n formContext: registry.formContext,\n defaultSchemaProps: { horizontalButtons: true, wrapItem: false },\n });\n const { horizontalButtons = true, wrapItem = false } = semanticProps;\n const margin = hasDescription ? 5 : 24;\n return (\n <div className='rjsf-array-item'>\n <MaybeWrap wrap={wrapItem} component={Segment}>\n <Grid style={{ ...gridStyle(!horizontalButtons), alignItems: 'center' }}>\n <Grid.Column width={16} verticalAlign='middle'>\n {children}\n </Grid.Column>\n {hasToolbar && (\n <Grid.Column>\n <Button.Group\n size='mini'\n vertical={!horizontalButtons}\n style={{ marginTop: displayLabel ? `${margin}px` : undefined }}\n >\n <ArrayFieldItemButtonsTemplate {...buttonsProps} />\n </Button.Group>\n </Grid.Column>\n )}\n </Grid>\n </MaybeWrap>\n </div>\n );\n}\n", "import type { ElementType } from 'react';\nimport type {\n UiSchema,\n GenericObjectType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n UIOptionsType,\n} from '@rjsf/utils';\nimport { getUiOptions } from '@rjsf/utils';\n\nexport interface SemanticPropsTypes<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultSchemaProps?: GenericObjectType;\n defaultContextProps?: GenericObjectType;\n}\n\nexport interface SemanticErrorPropsType<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultProps?: GenericObjectType;\n}\n\nexport type WrapProps = GenericObjectType & {\n wrap: boolean;\n component?: ElementType;\n};\n\n/**\n * Extract props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.options\n * @param {Object?} params.defaultSchemaProps\n * @param {Object?} params.defaultContextProps\n * @returns {any}\n */\nexport function getSemanticProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultSchemaProps = { fluid: true, inverted: false },\n defaultContextProps = {},\n}: SemanticPropsTypes<T, S, F>) {\n const formContextProps = formContext.semantic;\n const schemaProps = getUiOptions<T, S, F>(uiSchema).semantic;\n const optionProps = options.semantic;\n // formContext props should overide other props\n return {\n ...defaultSchemaProps,\n ...defaultContextProps,\n ...schemaProps,\n ...optionProps,\n ...formContextProps,\n };\n}\n\n/**\n * Extract error props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.defaultProps\n * @returns {any}\n */\nexport function getSemanticErrorProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultProps = { size: 'small', pointing: 'above' },\n}: SemanticErrorPropsType<T, S, F>) {\n const formContextProps = formContext.semantic?.errorOptions;\n const semanticOptions: GenericObjectType = getUiOptions<T, S, F>(uiSchema).semantic as GenericObjectType;\n const schemaProps = semanticOptions?.errorOptions;\n const optionProps = (options.semantic as GenericObjectType)?.errorOptions;\n\n return { ...defaultProps, ...schemaProps, ...optionProps, ...formContextProps };\n}\n\n/**\n * Combine multiple strings containing class names into a single string,\n * removing duplicates. E.g.\n * cleanClassNames('bar', 'baz bar', 'x y ', undefined)\n * // 'bar baz x y'\n * @param {Array} classNameArr\n * @param {Array} omit\n * @returns {string}\n */\nexport function cleanClassNames(classNameArr: (string | undefined)[], omit: string[] = []) {\n // Split each arg on whitespace, and add it to an array. Skip false-y args\n // like \"\" and undefined.\n const classList = classNameArr\n .filter(Boolean)\n .reduce<string[]>((previous, current) => previous.concat(current!.trim().split(/\\s+/)), []);\n\n // Remove any class names from omit, and make the rest unique before\n // returning them as a string\n return [...new Set(classList.filter((cn) => !omit.includes(cn)))].join(' ');\n}\n\n/**\n *\n * @param {boolean} wrap\n * @param Component\n * @param {Object} props\n * @returns {*}\n * @constructor\n */\nexport function MaybeWrap({ wrap, component: Component = 'div', ...props }: WrapProps) {\n return wrap ? <Component {...props} /> : props.children;\n}\n", "import type { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getTemplate, getUiOptions, isFixedItems, buttonId } from '@rjsf/utils';\n\nimport { cleanClassNames } from '../util';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n uiSchema,\n fieldPathId,\n canAdd,\n className,\n // classNames, This is not part of the type, so it is likely never passed in\n disabled,\n items,\n optionalDataControl,\n onAddClick,\n // options, This is not part of the type, so it is likely never passed in\n readonly,\n required,\n schema,\n title,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <div className={cleanClassNames([className, isFixedItems<S>(schema) ? '' : 'sortable-form-fields'])}>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <div key={`array-item-list-${fieldPathId.$id}`}>\n <div className='row array-item-list'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n </div>\n {canAdd && (\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n )}\n </div>\n </div>\n );\n}\n", "import type { ChangeEvent, MouseEvent } from 'react';\nimport { useCallback } from 'react';\nimport { SchemaExamples } from '@rjsf/core';\nimport type { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ariaDescribedByIds, examplesId, getInputProps, labelValue } from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\n/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.\n * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.\n * It can be customized/overridden for other themes or individual implementations as needed.\n *\n * @param props - The `WidgetProps` for this template\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n id,\n htmlName,\n placeholder,\n label,\n hideLabel,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n uiSchema,\n registry,\n type,\n rawErrors = [],\n } = props;\n const { ClearButton } = registry.templates.ButtonTemplates;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext: registry.formContext,\n options,\n });\n const handleChange = ({ target: { value: newValue } }: ChangeEvent<HTMLInputElement>) =>\n onChange(newValue === '' ? options.emptyValue : newValue);\n const handleBlur = () => onBlur?.(id, value);\n const handleFocus = () => onFocus?.(id, value);\n const handleClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue ?? '');\n },\n [onChange, options.emptyValue],\n );\n\n return (\n <>\n <Form.Input\n key={id}\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n {...inputProps}\n label={labelValue(label || undefined, hideLabel, false)}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n list={schema.examples ? examplesId(id) : undefined}\n {...semanticProps}\n value={value || value === 0 ? value : ''}\n error={rawErrors.length > 0}\n onChange={onChangeOverride || handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n {options.allowClearTextInputs && !readonly && !disabled && value && (\n <ClearButton registry={registry} onClick={handleClear} />\n )}\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import type { CyclicSchemaExpandProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ID_KEY, TranslatableString } from '@rjsf/utils';\nimport { Button } from 'semantic-ui-react';\n\n/** The `CyclicSchemaExpandTemplate` is the template to use to render the cyclic schema expand message and controls\n *\n * @param props - The `CyclicSchemaExpandProps` for this component\n */\nexport default function CyclicSchemaExpandTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: CyclicSchemaExpandProps<T, S, F>) {\n const { name, fieldPathId, registry, onExpand } = props;\n const { translateString } = registry;\n const buttonId = `${fieldPathId[ID_KEY]}-button`;\n return (\n <div style={{ marginTop: '1rem', marginBottom: '1rem' }}>\n <p style={{ color: 'red' }}>{translateString(TranslatableString.CycleDetected, [name])}</p>\n <Button id={buttonId} type='button' size='mini' onClick={() => onExpand(fieldPathId[ID_KEY])}>\n {translateString(TranslatableString.ExpandButton)}\n </Button>\n </div>\n );\n}\n", "import { RichDescription } from '@rjsf/core';\nimport type { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n if (!description) {\n return null;\n }\n return (\n <p id={id} className='sui-description'>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </p>\n );\n}\n", "import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString } from '@rjsf/utils';\nimport { Message } from 'semantic-ui-react';\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Message negative>\n <Message.Header>{translateString(TranslatableString.ErrorsLabel)}</Message.Header>\n <Message.List>\n {errors.map((error, index) => (\n // oxlint-disable-next-line react/no-array-index-key\n <Message.Item key={`error-${index}`}>{error.stack}</Message.Item>\n ))}\n </Message.List>\n </Message>\n );\n}\n", "import type { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { errorId } from '@rjsf/utils';\nimport uniqueId from 'lodash/uniqueId';\nimport { Label, List } from 'semantic-ui-react';\n\nimport { getSemanticErrorProps } from '../util';\n\nconst DEFAULT_OPTIONS = {\n options: {\n pointing: 'above',\n size: 'small',\n },\n};\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ errors, fieldPathId, uiSchema, registry }: FieldErrorProps<T, S, F>) {\n const { formContext } = registry;\n const options = getSemanticErrorProps<T, S, F>({\n formContext,\n uiSchema,\n defaultProps: DEFAULT_OPTIONS,\n });\n const { pointing, size } = options;\n if (errors && errors.length > 0) {\n const id = errorId(fieldPathId);\n return (\n <Label id={id} color='red' pointing={pointing || 'above'} size={size || 'small'} basic>\n <List bulleted>\n {errors.map((error) => (\n <List.Item key={uniqueId('field-error-')}>{error}</List.Item>\n ))}\n </List>\n </Label>\n );\n }\n return null;\n}\n", "import { RichHelp } from '@rjsf/core';\nimport type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { helpId } from '@rjsf/utils';\nimport { Message } from 'semantic-ui-react';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, uiSchema, registry } = props;\n if (help) {\n return (\n <Message size='mini' info id={helpId(fieldPathId)}>\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </Message>\n );\n }\n return null;\n}\n", "import type { FieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getTemplate, getUiOptions } from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps, MaybeWrap } from '../util';\n\n/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field\n * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.\n *\n * @param props - The `FieldTemplateProps` for this component\n */\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const {\n id,\n children,\n classNames,\n style,\n displayLabel,\n label,\n errors,\n help,\n hidden,\n description,\n rawDescription,\n registry,\n schema,\n uiSchema,\n ...otherProps\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n ...otherProps,\n formContext: registry.formContext,\n });\n const { wrapLabel, wrapContent } = semanticProps;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n const isCheckbox = uiOptions.widget === 'checkbox';\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n id={id}\n label={label}\n displayLabel={displayLabel}\n rawDescription={rawDescription}\n registry={registry}\n schema={schema}\n uiSchema={uiSchema}\n {...otherProps}\n >\n <Form.Group key={id} widths='equal' grouped>\n <MaybeWrap wrap={wrapContent} className='sui-field-content'>\n {children}\n {displayLabel && rawDescription && !isCheckbox && (\n <MaybeWrap wrap={wrapLabel} className='sui-field-label'>\n {description}\n </MaybeWrap>\n )}\n {help}\n {errors}\n </MaybeWrap>\n </Form.Group>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import type { GridTemplateProps } from '@rjsf/utils';\nimport { Grid } from 'semantic-ui-react';\n\n/** Renders a `GridTemplate` for semantic-ui, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Flex`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the semantic-ui grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n if (column) {\n return <Grid.Column {...rest}>{children}</Grid.Column>;\n }\n return <Grid {...rest}>{children}</Grid>;\n}\n", "import { memo } from 'react';\nimport type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString } from '@rjsf/utils';\nimport type { ButtonProps } from 'semantic-ui-react';\nimport { Button } from 'semantic-ui-react';\n\nexport type SemanticIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Omit<ButtonProps, 'onChange'>;\n\nfunction IconButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const { icon, iconType, color, className, uiSchema, registry, ...otherProps } = props;\n return (\n <Button\n icon={icon}\n size={iconType as ButtonProps['size']}\n color={color as ButtonProps['color']}\n className={className}\n {...otherProps}\n />\n );\n}\nconst IconButton = memo(IconButtonFn) as typeof IconButtonFn;\nexport default IconButton;\n\nfunction CopyButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon='copy' />;\n}\nexport const CopyButton = memo(CopyButtonFn) as typeof CopyButtonFn;\n\nfunction MoveDownButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon='angle down' />;\n}\nexport const MoveDownButton = memo(MoveDownButtonFn) as typeof MoveDownButtonFn;\n\nfunction MoveUpButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon='angle up' />;\n}\nexport const MoveUpButton = memo(MoveUpButtonFn) as typeof MoveUpButtonFn;\n\nfunction RemoveButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.RemoveButton)} {...props} icon='trash' />;\n}\nexport const RemoveButton = memo(RemoveButtonFn) as typeof RemoveButtonFn;\n\nfunction ClearButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.ClearButton)} {...props} icon='close' />;\n}\nexport const ClearButton = memo(ClearButtonFn) as typeof ClearButtonFn;\n", "import type { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { selector, optionSchemaField } = props;\n\n return (\n <div>\n <div>{selector}</div>\n {optionSchemaField}\n </div>\n );\n}\n", "import type { FormContextType, ObjectFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { canExpand, descriptionId, getTemplate, getUiOptions, titleId, buttonId } from '@rjsf/utils';\nimport { Grid } from 'semantic-ui-react';\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n optionalDataControl,\n onAddProperty,\n title,\n properties,\n disabled,\n readonly,\n required,\n uiSchema,\n schema,\n formData,\n fieldPathId,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((prop) => prop.content)}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid.Column width={16} verticalAlign='middle'>\n <Grid.Row>\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n </Grid.Row>\n </Grid.Column>\n )}\n </>\n );\n}\n", "import type { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport { RemoveButton } from '../IconButton';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <AddButton\n id={id}\n registry={registry}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n size='mini'\n />\n );\n }\n if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='mini'\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\nimport { getSubmitButtonOptions } from '@rjsf/utils';\nimport { Button } from 'semantic-ui-react';\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <Button type='submit' primary {...submitButtonProps}>\n {submitText}\n </Button>\n );\n}\n", "import type { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Grid, Header } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\nconst DEFAULT_OPTIONS = {\n inverted: false,\n dividing: true,\n};\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n uiSchema,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n defaultSchemaProps: DEFAULT_OPTIONS,\n });\n let heading = title ? (\n <Header id={id} {...semanticProps} as='h5'>\n {title}\n </Header>\n ) : null;\n if (optionalDataControl) {\n heading = (\n <Grid colums={2} relaxed>\n <Grid.Column width={14} style={{ paddingRight: 0 }}>\n {heading}\n </Grid.Column>\n <Grid.Column width={2}>{optionalDataControl}</Grid.Column>\n </Grid>\n );\n }\n\n return heading;\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, WrapIfAdditionalTemplateProps } from '@rjsf/utils';\nimport { ADDITIONAL_PROPERTY_FLAG, buttonId, TranslatableString } from '@rjsf/utils';\nimport { Form, Grid } from 'semantic-ui-react';\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n displayLabel,\n onKeyRenameBlur,\n onRemoveProperty,\n rawDescription,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const { readonlyAsDisabled = true, wrapperStyle } = registry.formContext;\n\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n const margin = rawDescription ? 4 : 24;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <div className={classNames} style={style} key={`${id}-key`}>\n <Grid>\n <Grid.Row>\n <Grid.Column width={7} className='form-additional'>\n <Form.Group widths='equal' grouped>\n <Form.Input\n key={label}\n className='form-group'\n hasFeedback\n fluid\n htmlFor={id}\n label={displayLabel ? keyLabel : undefined}\n required={required}\n defaultValue={label}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={id}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n style={wrapperStyle}\n type='text'\n />\n </Form.Group>\n </Grid.Column>\n <Grid.Column width={7} className='form-additional' verticalAlign='middle'>\n {children}\n </Grid.Column>\n <Grid.Column verticalAlign='middle' style={displayLabel ? { marginTop: `${margin}px` } : undefined}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n iconType='mini'\n className='rjsf-object-property-remove'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid.Column>\n </Grid.Row>\n </Grid>\n </div>\n );\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate';\nimport BaseInputTemplate from '../BaseInputTemplate';\nimport CyclicSchemaExpandTemplate from '../CyclicSchemaExpandTemplate';\nimport DescriptionField from '../DescriptionField';\nimport ErrorList from '../ErrorList';\nimport FieldErrorTemplate from '../FieldErrorTemplate';\nimport FieldHelpTemplate from '../FieldHelpTemplate';\nimport FieldTemplate from '../FieldTemplate';\nimport GridTemplate from '../GridTemplate';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate';\nimport SubmitButton from '../SubmitButton';\nimport TitleField from '../TitleField';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n CyclicSchemaExpandTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import type { ChangeEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n getTemplate,\n optionId,\n titleId,\n} from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n label,\n hideLabel,\n onChange,\n onBlur,\n onFocus,\n schema,\n uiSchema,\n rawErrors = [],\n registry,\n } = props;\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, options);\n const { enumOptions, enumDisabled, inline } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext: registry.formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\n });\n const handleChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n // oxlint-disable-next-line no-shadow\n if (checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const handleBlur = () => onBlur(id, value);\n const handleFocus = () => onFocus(id, value);\n const inlineOption = inline ? { inline: true } : { grouped: true };\n return (\n <>\n {!hideLabel && !!label && (\n <TitleFieldTemplate id={titleId(id)} title={label} schema={schema} uiSchema={uiSchema} registry={registry} />\n )}\n <Form.Group id={id} name={htmlName || id} {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);\n return (\n <Form.Checkbox\n id={optionId(id, index)}\n name={htmlName || id}\n key={String(option.value)}\n label={option.label}\n {...semanticProps}\n checked={checked}\n error={rawErrors.length > 0}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={handleChange(index)}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Form.Group>\n </>\n );\n}\n", "import type { FormEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue } from '@rjsf/utils';\nimport type { CheckboxProps } from 'semantic-ui-react';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label,\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n options,\n onFocus,\n schema,\n uiSchema,\n rawErrors = [],\n registry,\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext: registry.formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\n });\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n // Because an unchecked checkbox will cause html5 validation to fail, only add\n // the \"required\" attribute if the field value must be \"true\", due to the\n // \"const\" or \"enum\" keywords\n const required = schemaRequiresTrueValue<S>(schema);\n const checked = value === 'true' || value === true;\n const handleChange = (_: FormEvent<HTMLInputElement>, data: CheckboxProps) => onChange?.(data.checked);\n const handleBlur: React.FocusEventHandler<HTMLInputElement> = () => onBlur?.(id, value);\n const handleFocus: React.FocusEventHandler<HTMLInputElement> = () => onFocus?.(id, value);\n const description = options.description ?? schema.description;\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Form.Checkbox\n id={id}\n name={htmlName || id}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n {...semanticProps}\n checked={typeof value === 'undefined' ? false : checked}\n error={rawErrors.length > 0}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n required={required}\n label={labelValue(label, hideLabel, false)}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import type { FormEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n enumOptionsIsSelected,\n getOptionValueFormat,\n optionId,\n} from '@rjsf/utils';\nimport type { CheckboxProps } from 'semantic-ui-react';\nimport { Form, Radio } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n htmlName,\n value,\n required,\n disabled,\n readonly,\n onChange,\n onBlur,\n onFocus,\n options,\n registry,\n uiSchema,\n rawErrors = [],\n } = props;\n const { enumOptions, enumDisabled, emptyValue } = options;\n const optionValueFormat = getOptionValueFormat(options);\n const semanticProps = getSemanticProps<T, S, F>({\n formContext: registry.formContext,\n options,\n uiSchema,\n });\n const handleChange = (_: FormEvent<HTMLInputElement>, { value: eventValue }: CheckboxProps) =>\n onChange(enumOptionValueDecoder<S>(String(eventValue!), enumOptions, optionValueFormat, emptyValue));\n\n const handleBlur = () => onBlur(id, value);\n const handleFocus = () => onFocus(id, value);\n const inlineOption = options.inline ? { inline: true } : { grouped: true };\n return (\n <Form.Group {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, value);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);\n return (\n <Form.Field\n required={required}\n control={Radio}\n id={optionId(id, index)}\n name={htmlName || id}\n {...semanticProps}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n label={option.label}\n value={enumOptionValueEncoder(option.value, index, optionValueFormat)}\n error={rawErrors.length > 0}\n key={String(option.value)}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Form.Group>\n );\n}\n", "import type { ChangeEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, rangeSpec } from '@rjsf/utils';\nimport { Input } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\n/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result\n * in a div, with the value along side it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onBlur,\n onFocus,\n options,\n schema,\n uiSchema,\n registry,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext: registry.formContext,\n options,\n uiSchema,\n defaultSchemaProps: {\n fluid: true,\n },\n });\n\n // oxlint-disable-next-line no-shadow\n const handleChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange?.(value === '' ? options.emptyValue : value);\n const handleBlur = () => onBlur?.(id, value);\n const handleFocus = () => onFocus?.(id, value);\n\n return (\n <>\n <Input\n id={id}\n key={id}\n name={id}\n type='range'\n required={required}\n disabled={disabled || readonly}\n {...rangeSpec<S>(schema)}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <span>{value}</span>\n </>\n );\n}\n", "import type { FocusEvent, SyntheticEvent } from 'react';\nimport type {\n EnumOptionsType,\n FormContextType,\n OptionValueFormat,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n UIOptionsType,\n} from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionSelectedValue,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n getOptionValueFormat,\n labelValue,\n logUnsupportedDefaultForEnum,\n SelectedOptionDescription,\n} from '@rjsf/utils';\nimport map from 'lodash/map';\nimport type { DropdownProps, DropdownItemProps } from 'semantic-ui-react';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\n/**\n * Returns and creates an array format required for semantic drop down\n * @param {array} enumOptions - array of items for the dropdown\n * @param {array} enumDisabled - array of enum option values to disable\n * @param {boolean} showPlaceholderOption - whether to show a placeholder option\n * @param {string} placeholder - placeholder option label\n * @returns {*}\n */\nfunction createDefaultValueOptionsForDropDown<S extends StrictRJSFSchema = RJSFSchema>(\n enumOptions?: EnumOptionsType<S>[],\n enumDisabled?: UIOptionsType['enumDisabled'],\n showPlaceholderOption?: boolean,\n placeholder?: string,\n format: OptionValueFormat = 'indexed',\n) {\n const disabledOptions = enumDisabled || [];\n const options: DropdownItemProps[] = map(enumOptions, ({ label, value }, index) => ({\n disabled: disabledOptions.includes(value),\n key: label,\n text: label,\n value: enumOptionValueEncoder(value, index, format),\n }));\n if (showPlaceholderOption) {\n options.unshift({ value: '', text: placeholder || '' });\n }\n return options;\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n uiSchema,\n registry,\n id,\n htmlName,\n options,\n label,\n hideLabel,\n required,\n disabled,\n readonly,\n value,\n multiple,\n placeholder,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n rawErrors = [],\n schema,\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext: registry.formContext,\n options,\n defaultSchemaProps: {\n inverted: 'false',\n selection: true,\n fluid: true,\n scrolling: true,\n upward: false,\n },\n });\n const { enumDisabled, enumOptions, emptyValue: optEmptyVal } = options;\n const emptyValue = multiple ? [] : '';\n const optionValueFormat = getOptionValueFormat(options);\n const showPlaceholderOption = !multiple && schema.default === undefined;\n logUnsupportedDefaultForEnum<S>(id, schema, enumOptions, multiple);\n const dropdownOptions = createDefaultValueOptionsForDropDown<S>(\n enumOptions,\n enumDisabled,\n showPlaceholderOption,\n placeholder,\n optionValueFormat,\n );\n const handleChange = (_: SyntheticEvent<HTMLElement>, { value: enumValue }: DropdownProps) =>\n onChange(enumOptionValueDecoder<S>(enumValue as string[], enumOptions, optionValueFormat, optEmptyVal));\n const handleBlur = (_: FocusEvent<HTMLElement>, { target }: DropdownProps) =>\n onBlur(id, enumOptionValueDecoder<S>(target?.value, enumOptions, optionValueFormat, optEmptyVal));\n const handleFocus = (_: FocusEvent<HTMLElement>, { target }: DropdownProps) =>\n onFocus(id, enumOptionValueDecoder<S>(target?.value, enumOptions, optionValueFormat, optEmptyVal));\n return (\n <>\n <Form.Dropdown\n key={id}\n id={id}\n name={htmlName || id}\n label={labelValue(label || undefined, hideLabel, false)}\n multiple={typeof multiple === 'undefined' ? false : multiple}\n value={enumOptionSelectedValue<S>(value, enumOptions, !!multiple, optionValueFormat, emptyValue)}\n error={rawErrors.length > 0}\n disabled={disabled}\n placeholder={placeholder}\n {...semanticProps}\n required={required}\n autoFocus={autofocus}\n readOnly={readonly}\n options={dropdownOptions}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <SelectedOptionDescription {...props} />\n </>\n );\n}\n", "import type { ChangeEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, labelValue } from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util';\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n placeholder,\n value,\n required,\n disabled,\n autofocus,\n label,\n hideLabel,\n readonly,\n onBlur,\n onFocus,\n onChange,\n options,\n registry,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext: registry.formContext,\n options,\n defaultSchemaProps: { inverted: 'false' },\n });\n // oxlint-disable-next-line no-shadow\n const handleChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange?.(value === '' ? options.emptyValue : value);\n const handleBlur = () => onBlur?.(id, value);\n const handleFocus = () => onFocus?.(id, value);\n return (\n <Form.TextArea\n id={id}\n key={id}\n name={htmlName || id}\n label={labelValue(label || undefined, hideLabel, false)}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n rows={options.rows || 5}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import type { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget';\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget';\nimport RadioWidget from '../RadioWidget/RadioWidget';\nimport RangeWidget from '../RangeWidget/RangeWidget';\nimport SelectWidget from '../SelectWidget/SelectWidget';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,IAAAA,eAA0B;;;ACA1B,IAAAC,6BAAgC;;;ACDhC,mBAAmC;AAEnC,+BAA6B;AAqBvB;AAfS,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAqC;AACnC,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,gBAAgB,gCAAmB,aAAa;AAAA,MACvD;AAAA,MACA,MAAK;AAAA,MACJ,GAAG;AAAA,MACJ,MAAI;AAAA,MAEJ,sDAAC,iCAAK,MAAK,QAAO;AAAA;AAAA,E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AaA,MAAK;AACtD,QAAM,aAAa,MAAM,SAAS,IAAI,KAAK;AAC3C,QAAM,cAAc,MAAM,UAAU,IAAI,KAAK;AAC7C,SACE;AAAA,IAAC,gCAAK;AAAA,IAAL;AAAA,MACC;AAAA,MAEA,MAAM,YAAY;AAAA,MAClB,WAAO,2BAAW,SAAS,QAAW,WAAW,KAAK;AAAA,MACtD;AAAA,MACA,WAAW;AAAA,MACX;AAAA,MACA,UAAU,YAAY;AAAA,MACrB,GAAG;AAAA,MACJ,OAAO,SAAS;AAAA,MAChB,OAAO,UAAU,SAAS;AAAA,MAC1B,MAAM,QAAQ,QAAQ;AAAA,MACtB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,wBAAkB,mCAAmB,EAAE;AAAA;AAAA,IAdlC;AAAA,EAeP;AAEJ;;;ACvDO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;A3BjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,IAClC,sBAAsB,2BAAAC;AAAA,EACxB;AACF;AAEA,IAAO,gBAAQ,cAAc;;;ADZtB,SAAS,eAIuB;AACrC,aAAO,wBAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,yBAAQ,aAAa;;;ADL5B,IAAO,gBAAQ;",
6
- "names": ["import_core", "import_semantic_ui_react", "import_utils", "import_semantic_ui_react", "import_utils", "import_jsx_runtime", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "AddButton", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "ClearButton", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "buttonId", "import_core", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "uniqueId", "import_core", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "WrapIfAdditionalTemplate", "import_semantic_ui_react", "import_jsx_runtime", "import_react", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "AddButton", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_semantic_ui_react", "import_jsx_runtime", "DEFAULT_OPTIONS", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "RemoveButton", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_react", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "value", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "map", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "value", "SuiForm"]
4
+ "sourcesContent": ["/**\n * @deprecated - This theme will be deleted in a future release of RJSF once we upgrade to React 19\n */\nimport SemanticUIForm from './SemanticUIForm/SemanticUIForm.ts';\n\nexport { default as Templates, generateTemplates } from './Templates/index.ts';\nexport { default as Form, generateForm } from './SemanticUIForm/index.ts';\nexport { default as Theme, generateTheme } from './Theme/index.ts';\nexport { default as Widgets, generateWidgets } from './Widgets/index.ts';\n\nexport default SemanticUIForm;\n", "import type { ComponentType } from 'react';\nimport type { FormProps } from '@rjsf/core';\nimport { withTheme } from '@rjsf/core';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport { generateTheme } from '../Theme/index.ts';\n\nexport function generateForm<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ComponentType<FormProps<T, S, F>> {\n return withTheme<T, S, F>(generateTheme<T, S, F>());\n}\n\nexport default generateForm();\n", "import type { ThemeProps } from '@rjsf/core';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Form as SuiForm } from 'semantic-ui-react';\n\nimport { generateTemplates } from '../Templates/index.ts';\nimport { generateWidgets } from '../Widgets/index.ts';\n\nexport function generateTheme<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): ThemeProps<T, S, F> {\n return {\n templates: generateTemplates<T, S, F>(),\n widgets: generateWidgets<T, S, F>(),\n _internalFormWrapper: SuiForm,\n };\n}\n\nexport default generateTheme();\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString } from '@rjsf/utils';\nimport type { ButtonProps } from 'semantic-ui-react';\nimport { Button, Icon } from 'semantic-ui-react';\n\nimport type { SemanticIconButtonProps } from '../IconButton/index.ts';\n\n/** The `AddButton` renders a button that represent the `Add` action on a form\n */\nexport default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n uiSchema,\n registry,\n color,\n ...props\n}: SemanticIconButtonProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Button\n title={translateString(TranslatableString.AddItemButton)}\n color={color as ButtonProps['color']}\n size='tiny'\n {...props}\n icon\n >\n <Icon name='plus' />\n </Button>\n );\n}\n", "import type { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getUiOptions, getTemplate } from '@rjsf/utils';\nimport { Button, Grid, Segment } from 'semantic-ui-react';\n\nimport { getSemanticProps, MaybeWrap } from '../util.tsx';\n\nconst gridStyle = (vertical: boolean) => ({\n display: 'grid',\n gridTemplateColumns: `1fr ${vertical ? 65 : 150}px`,\n});\n\n/** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.\n *\n * @param props - The `ArrayFieldItemTemplateProps` props for the component\n */\nexport default function ArrayFieldItemTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldItemTemplateProps<T, S, F>) {\n const { children, buttonsProps, displayLabel, hasDescription, hasToolbar, uiSchema, registry, parentUiSchema } =\n props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldItemButtonsTemplate = getTemplate<'ArrayFieldItemButtonsTemplate', T, S, F>(\n 'ArrayFieldItemButtonsTemplate',\n registry,\n uiOptions,\n );\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema: parentUiSchema,\n formContext: registry.formContext,\n defaultSchemaProps: { horizontalButtons: true, wrapItem: false },\n });\n const { horizontalButtons = true, wrapItem = false } = semanticProps;\n const margin = hasDescription ? 5 : 24;\n return (\n <div className='rjsf-array-item'>\n <MaybeWrap wrap={wrapItem} component={Segment}>\n <Grid style={{ ...gridStyle(!horizontalButtons), alignItems: 'center' }}>\n <Grid.Column width={16} verticalAlign='middle'>\n {children}\n </Grid.Column>\n {hasToolbar && (\n <Grid.Column>\n <Button.Group\n size='mini'\n vertical={!horizontalButtons}\n style={{ marginTop: displayLabel ? `${margin}px` : undefined }}\n >\n <ArrayFieldItemButtonsTemplate {...buttonsProps} />\n </Button.Group>\n </Grid.Column>\n )}\n </Grid>\n </MaybeWrap>\n </div>\n );\n}\n", "import type { ElementType } from 'react';\nimport type {\n UiSchema,\n GenericObjectType,\n FormContextType,\n RJSFSchema,\n StrictRJSFSchema,\n UIOptionsType,\n} from '@rjsf/utils';\nimport { getUiOptions } from '@rjsf/utils';\n\nexport interface SemanticPropsTypes<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultSchemaProps?: GenericObjectType;\n defaultContextProps?: GenericObjectType;\n}\n\nexport interface SemanticErrorPropsType<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> {\n formContext?: F;\n uiSchema?: UiSchema<T, S, F>;\n options?: UIOptionsType<T, S, F>;\n defaultProps?: GenericObjectType;\n}\n\nexport type WrapProps = GenericObjectType & {\n wrap: boolean;\n component?: ElementType;\n};\n\n/**\n * Extract props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.options\n * @param {Object?} params.defaultSchemaProps\n * @param {Object?} params.defaultContextProps\n * @returns {any}\n */\nexport function getSemanticProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultSchemaProps = { fluid: true, inverted: false },\n defaultContextProps = {},\n}: SemanticPropsTypes<T, S, F>) {\n const formContextProps = formContext.semantic;\n const schemaProps = getUiOptions<T, S, F>(uiSchema).semantic;\n const optionProps = options.semantic;\n // formContext props should overide other props\n return {\n ...defaultSchemaProps,\n ...defaultContextProps,\n ...schemaProps,\n ...optionProps,\n ...formContextProps,\n };\n}\n\n/**\n * Extract error props meant for semantic UI components from props that are\n * passed to Widgets, Templates and Fields.\n * @param {Object} params\n * @param {Object?} params.formContext\n * @param {Object?} params.uiSchema\n * @param {Object?} params.defaultProps\n * @returns {any}\n */\nexport function getSemanticErrorProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({\n formContext = {} as F,\n uiSchema = {},\n options = {},\n defaultProps = { size: 'small', pointing: 'above' },\n}: SemanticErrorPropsType<T, S, F>) {\n const formContextProps = formContext.semantic?.errorOptions;\n const semanticOptions: GenericObjectType = getUiOptions<T, S, F>(uiSchema).semantic as GenericObjectType;\n const schemaProps = semanticOptions?.errorOptions;\n const optionProps = (options.semantic as GenericObjectType)?.errorOptions;\n\n return { ...defaultProps, ...schemaProps, ...optionProps, ...formContextProps };\n}\n\n/**\n * Combine multiple strings containing class names into a single string,\n * removing duplicates. E.g.\n * cleanClassNames('bar', 'baz bar', 'x y ', undefined)\n * // 'bar baz x y'\n * @param {Array} classNameArr\n * @param {Array} omit\n * @returns {string}\n */\nexport function cleanClassNames(classNameArr: (string | undefined)[], omit: string[] = []) {\n // Split each arg on whitespace, and add it to an array. Skip false-y args\n // like \"\" and undefined.\n const classList = classNameArr\n .filter(Boolean)\n .reduce<string[]>((previous, current) => previous.concat(current!.trim().split(/\\s+/)), []);\n\n // Remove any class names from omit, and make the rest unique before\n // returning them as a string\n return [...new Set(classList.filter((cn) => !omit.includes(cn)))].join(' ');\n}\n\n/**\n *\n * @param {boolean} wrap\n * @param Component\n * @param {Object} props\n * @returns {*}\n * @constructor\n */\nexport function MaybeWrap({ wrap, component: Component = 'div', ...props }: WrapProps) {\n return wrap ? <Component {...props} /> : props.children;\n}\n", "import type { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getTemplate, getUiOptions, isFixedItems, buttonId } from '@rjsf/utils';\n\nimport { cleanClassNames } from '../util.tsx';\n\n/** The `ArrayFieldTemplate` component is the template used to render all items in an array.\n *\n * @param props - The `ArrayFieldTemplateProps` props for the component\n */\nexport default function ArrayFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ArrayFieldTemplateProps<T, S, F>) {\n const {\n uiSchema,\n fieldPathId,\n canAdd,\n className,\n // classNames, This is not part of the type, so it is likely never passed in\n disabled,\n items,\n optionalDataControl,\n onAddClick,\n // options, This is not part of the type, so it is likely never passed in\n readonly,\n required,\n schema,\n title,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const ArrayFieldDescriptionTemplate = getTemplate<'ArrayFieldDescriptionTemplate', T, S, F>(\n 'ArrayFieldDescriptionTemplate',\n registry,\n uiOptions,\n );\n const ArrayFieldTitleTemplate = getTemplate<'ArrayFieldTitleTemplate', T, S, F>(\n 'ArrayFieldTitleTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <div className={cleanClassNames([className, isFixedItems<S>(schema) ? '' : 'sortable-form-fields'])}>\n <ArrayFieldTitleTemplate\n fieldPathId={fieldPathId}\n title={uiOptions.title || title}\n schema={schema}\n uiSchema={uiSchema}\n required={required}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n <ArrayFieldDescriptionTemplate\n fieldPathId={fieldPathId}\n description={uiOptions.description || schema.description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n <div key={`array-item-list-${fieldPathId.$id}`}>\n <div className='row array-item-list'>\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {items}\n </div>\n {canAdd && (\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-array-item-add'\n onClick={onAddClick}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n )}\n </div>\n </div>\n );\n}\n", "import type { ChangeEvent, MouseEvent } from 'react';\nimport { useCallback } from 'react';\nimport { SchemaExamples } from '@rjsf/core';\nimport type { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ariaDescribedByIds, examplesId, getInputProps, labelValue } from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\n/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.\n * It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.\n * It can be customized/overridden for other themes or individual implementations as needed.\n *\n * @param props - The `WidgetProps` for this template\n */\nexport default function BaseInputTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: BaseInputTemplateProps<T, S, F>) {\n const {\n id,\n htmlName,\n placeholder,\n label,\n hideLabel,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onChangeOverride,\n onBlur,\n onFocus,\n autofocus,\n options,\n schema,\n uiSchema,\n registry,\n type,\n rawErrors = [],\n } = props;\n const { ClearButton } = registry.templates.ButtonTemplates;\n const inputProps = getInputProps<T, S, F>(schema, type, options);\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext: registry.formContext,\n options,\n });\n const handleChange = ({ target: { value: newValue } }: ChangeEvent<HTMLInputElement>) =>\n onChange(newValue === '' ? options.emptyValue : newValue);\n const handleBlur = () => onBlur?.(id, value);\n const handleFocus = () => onFocus?.(id, value);\n const handleClear = useCallback(\n (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n onChange(options.emptyValue);\n },\n [onChange, options.emptyValue],\n );\n\n return (\n <>\n <Form.Input\n key={id}\n id={id}\n name={htmlName || id}\n placeholder={placeholder}\n {...inputProps}\n label={labelValue(label || undefined, hideLabel, false)}\n required={required}\n autoFocus={autofocus}\n disabled={disabled || readonly}\n list={schema.examples ? examplesId(id) : undefined}\n {...semanticProps}\n value={value || value === 0 ? value : ''}\n error={rawErrors.length > 0}\n onChange={onChangeOverride || handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id, !!schema.examples)}\n />\n {options.allowClearTextInputs && !readonly && !disabled && value && (\n <ClearButton registry={registry} onClick={handleClear} />\n )}\n <SchemaExamples id={id} schema={schema} />\n </>\n );\n}\n", "import type { CyclicSchemaExpandProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { ID_KEY, TranslatableString } from '@rjsf/utils';\nimport { Button } from 'semantic-ui-react';\n\n/** The `CyclicSchemaExpandTemplate` is the template to use to render the cyclic schema expand message and controls\n *\n * @param props - The `CyclicSchemaExpandProps` for this component\n */\nexport default function CyclicSchemaExpandTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: CyclicSchemaExpandProps<T, S, F>) {\n const { name, fieldPathId, registry, onExpand } = props;\n const { translateString } = registry;\n const buttonId = `${fieldPathId[ID_KEY]}-button`;\n return (\n <div style={{ marginTop: '1rem', marginBottom: '1rem' }}>\n <p style={{ color: 'red' }}>{translateString(TranslatableString.CycleDetected, [name])}</p>\n <Button id={buttonId} type='button' size='mini' onClick={() => onExpand(fieldPathId[ID_KEY])}>\n {translateString(TranslatableString.ExpandButton)}\n </Button>\n </div>\n );\n}\n", "import { RichDescription } from '@rjsf/core';\nimport type { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\n/** The `DescriptionField` is the template to use to render the description of a field\n *\n * @param props - The `DescriptionFieldProps` for this component\n */\nexport default function DescriptionField<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: DescriptionFieldProps<T, S, F>) {\n const { id, description, registry, uiSchema } = props;\n if (!description) {\n return null;\n }\n return (\n <p id={id} className='sui-description'>\n <RichDescription description={description} registry={registry} uiSchema={uiSchema} />\n </p>\n );\n}\n", "import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString } from '@rjsf/utils';\nimport { Message } from 'semantic-ui-react';\n\n/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`\n *\n * @param props - The `ErrorListProps` for this component\n */\nexport default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n errors,\n registry,\n}: ErrorListProps<T, S, F>) {\n const { translateString } = registry;\n return (\n <Message negative>\n <Message.Header>{translateString(TranslatableString.ErrorsLabel)}</Message.Header>\n <Message.List>\n {errors.map((error, index) => (\n // oxlint-disable-next-line react/no-array-index-key\n <Message.Item key={`error-${index}`}>{error.stack}</Message.Item>\n ))}\n </Message.List>\n </Message>\n );\n}\n", "import type { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { errorId } from '@rjsf/utils';\nimport { Label, List } from 'semantic-ui-react';\n\nimport { getSemanticErrorProps } from '../util.tsx';\n\nconst DEFAULT_OPTIONS = {\n options: {\n pointing: 'above',\n size: 'small',\n },\n};\n\n/** The `FieldErrorTemplate` component renders the errors local to the particular field\n *\n * @param props - The `FieldErrorProps` for the errors being rendered\n */\nexport default function FieldErrorTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ errors, fieldPathId, uiSchema, registry }: FieldErrorProps<T, S, F>) {\n const { formContext } = registry;\n const options = getSemanticErrorProps<T, S, F>({\n formContext,\n uiSchema,\n defaultProps: DEFAULT_OPTIONS,\n });\n const { pointing, size } = options;\n if (errors && errors.length > 0) {\n const id = errorId(fieldPathId);\n return (\n <Label id={id} color='red' pointing={pointing || 'above'} size={size || 'small'} basic>\n <List bulleted>\n {errors.map((error, i: number) => (\n // oxlint-disable-next-line react/no-array-index-key\n <List.Item key={i}>{error}</List.Item>\n ))}\n </List>\n </Label>\n );\n }\n return null;\n}\n", "import { RichHelp } from '@rjsf/core';\nimport type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { helpId } from '@rjsf/utils';\nimport { Message } from 'semantic-ui-react';\n\n/** The `FieldHelpTemplate` component renders any help desired for a field\n *\n * @param props - The `FieldHelpProps` to be rendered\n */\nexport default function FieldHelpTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldHelpProps<T, S, F>) {\n const { fieldPathId, help, uiSchema, registry } = props;\n if (help) {\n return (\n <Message size='mini' info id={helpId(fieldPathId)}>\n <RichHelp help={help} registry={registry} uiSchema={uiSchema} />\n </Message>\n );\n }\n return null;\n}\n", "import type { FieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { getTemplate, getUiOptions } from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps, MaybeWrap } from '../util.tsx';\n\n/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field\n * content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.\n *\n * @param props - The `FieldTemplateProps` for this component\n */\nexport default function FieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: FieldTemplateProps<T, S, F>) {\n const {\n id,\n children,\n classNames,\n style,\n displayLabel,\n label,\n errors,\n help,\n hidden,\n description,\n rawDescription,\n registry,\n schema,\n uiSchema,\n ...otherProps\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n ...otherProps,\n formContext: registry.formContext,\n });\n const { wrapLabel, wrapContent } = semanticProps;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const WrapIfAdditionalTemplate = getTemplate<'WrapIfAdditionalTemplate', T, S, F>(\n 'WrapIfAdditionalTemplate',\n registry,\n uiOptions,\n );\n\n if (hidden) {\n return <div style={{ display: 'none' }}>{children}</div>;\n }\n\n const isCheckbox = uiOptions.widget === 'checkbox';\n\n return (\n <WrapIfAdditionalTemplate\n classNames={classNames}\n style={style}\n id={id}\n label={label}\n displayLabel={displayLabel}\n rawDescription={rawDescription}\n registry={registry}\n schema={schema}\n uiSchema={uiSchema}\n {...otherProps}\n >\n <Form.Group key={id} widths='equal' grouped>\n <MaybeWrap wrap={wrapContent} className='sui-field-content'>\n {children}\n {displayLabel && rawDescription && !isCheckbox && (\n <MaybeWrap wrap={wrapLabel} className='sui-field-label'>\n {description}\n </MaybeWrap>\n )}\n {help}\n {errors}\n </MaybeWrap>\n </Form.Group>\n </WrapIfAdditionalTemplate>\n );\n}\n", "import type { GridTemplateProps } from '@rjsf/utils';\nimport { Grid } from 'semantic-ui-react';\n\n/** Renders a `GridTemplate` for semantic-ui, which is expecting the column sizing information coming in via the\n * extra props provided by the caller, which are spread directly on the `Flex`.\n *\n * @param props - The GridTemplateProps, including the extra props containing the semantic-ui grid positioning details\n */\nexport default function GridTemplate(props: GridTemplateProps) {\n const { children, column, ...rest } = props;\n if (column) {\n return <Grid.Column {...rest}>{children}</Grid.Column>;\n }\n return <Grid {...rest}>{children}</Grid>;\n}\n", "import { memo } from 'react';\nimport type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { TranslatableString } from '@rjsf/utils';\nimport type { ButtonProps } from 'semantic-ui-react';\nimport { Button } from 'semantic-ui-react';\n\nexport type SemanticIconButtonProps<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n> = IconButtonProps<T, S, F> & Omit<ButtonProps, 'onChange'>;\n\nfunction IconButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const { icon, iconType, color, className, uiSchema, registry, ...otherProps } = props;\n return (\n <Button\n icon={icon}\n size={iconType as ButtonProps['size']}\n color={color as ButtonProps['color']}\n className={className}\n {...otherProps}\n />\n );\n}\nconst IconButton = memo(IconButtonFn) as typeof IconButtonFn;\nexport default IconButton;\n\nfunction CopyButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.CopyButton)} {...props} icon='copy' />;\n}\nexport const CopyButton = memo(CopyButtonFn) as typeof CopyButtonFn;\n\nfunction MoveDownButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveDownButton)} {...props} icon='angle down' />;\n}\nexport const MoveDownButton = memo(MoveDownButtonFn) as typeof MoveDownButtonFn;\n\nfunction MoveUpButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.MoveUpButton)} {...props} icon='angle up' />;\n}\nexport const MoveUpButton = memo(MoveUpButtonFn) as typeof MoveUpButtonFn;\n\nfunction RemoveButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.RemoveButton)} {...props} icon='trash' />;\n}\nexport const RemoveButton = memo(RemoveButtonFn) as typeof RemoveButtonFn;\n\nfunction ClearButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: SemanticIconButtonProps<T, S, F>,\n) {\n const {\n registry: { translateString },\n } = props;\n return <IconButton title={translateString(TranslatableString.ClearButton)} {...props} icon='close' />;\n}\nexport const ClearButton = memo(ClearButtonFn) as typeof ClearButtonFn;\n", "import type { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nexport default function MultiSchemaFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: MultiSchemaFieldTemplateProps<T, S, F>) {\n const { selector, optionSchemaField } = props;\n\n return (\n <div>\n <div>{selector}</div>\n {optionSchemaField}\n </div>\n );\n}\n", "import type { FormContextType, ObjectFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { canExpand, descriptionId, getTemplate, getUiOptions, titleId, buttonId } from '@rjsf/utils';\nimport { Grid } from 'semantic-ui-react';\n\n/** The `ObjectFieldTemplate` is the template to use to render all the inner properties of an object along with the\n * title and description if available. If the object is expandable, then an `AddButton` is also rendered after all\n * the properties.\n *\n * @param props - The `ObjectFieldTemplateProps` for this component\n */\nexport default function ObjectFieldTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: ObjectFieldTemplateProps<T, S, F>) {\n const {\n description,\n optionalDataControl,\n onAddProperty,\n title,\n properties,\n disabled,\n readonly,\n required,\n uiSchema,\n schema,\n formData,\n fieldPathId,\n registry,\n } = props;\n const uiOptions = getUiOptions<T, S, F>(uiSchema);\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, uiOptions);\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n uiOptions,\n );\n const showOptionalDataControlInTitle = !readonly && !disabled;\n // Button templates are not overridden in the uiSchema\n const {\n ButtonTemplates: { AddButton },\n } = registry.templates;\n return (\n <>\n {title && (\n <TitleFieldTemplate\n id={titleId(fieldPathId)}\n title={title}\n required={required}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n optionalDataControl={showOptionalDataControlInTitle ? optionalDataControl : undefined}\n />\n )}\n {description && (\n <DescriptionFieldTemplate\n id={descriptionId(fieldPathId)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n {!showOptionalDataControlInTitle ? optionalDataControl : undefined}\n {properties.map((prop) => prop.content)}\n {canExpand<T, S, F>(schema, uiSchema, formData) && (\n <Grid.Column width={16} verticalAlign='middle'>\n <Grid.Row>\n <div\n style={{\n marginTop: '1rem',\n position: 'relative',\n textAlign: 'right',\n }}\n >\n <AddButton\n id={buttonId(fieldPathId, 'add')}\n className='rjsf-object-property-expand'\n onClick={onAddProperty}\n disabled={disabled || readonly}\n uiSchema={uiSchema}\n registry={registry}\n />\n </div>\n </Grid.Row>\n </Grid.Column>\n )}\n </>\n );\n}\n", "import type { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport AddButton from '../AddButton/index.ts';\nimport { RemoveButton } from '../IconButton/index.ts';\n\n/** The OptionalDataControlsTemplate renders one of three different states. If\n * there is an `onAddClick()` function, it renders the \"Add\" button. If there is\n * an `onRemoveClick()` function, it renders the \"Remove\" button. Otherwise it\n * renders the \"No data found\" section. All of them use the `label` as either\n * the `title` of buttons or simply outputting it.\n *\n * @param props - The `OptionalDataControlsTemplateProps` for the template\n */\nexport default function OptionalDataControlsTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: OptionalDataControlsTemplateProps<T, S, F>) {\n const { id, registry, label, onAddClick, onRemoveClick } = props;\n if (onAddClick) {\n return (\n <AddButton\n id={id}\n registry={registry}\n className='rjsf-add-optional-data'\n onClick={onAddClick}\n title={label}\n size='mini'\n />\n );\n }\n if (onRemoveClick) {\n return (\n <RemoveButton\n id={id}\n registry={registry}\n className='rjsf-remove-optional-data'\n onClick={onRemoveClick}\n title={label}\n size='mini'\n />\n );\n }\n return <em id={id}>{label}</em>;\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps } from '@rjsf/utils';\nimport { getSubmitButtonOptions } from '@rjsf/utils';\nimport { Button } from 'semantic-ui-react';\n\n/** The `SubmitButton` renders a button that represent the `Submit` action on a form\n */\nexport default function SubmitButton<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>({ uiSchema }: SubmitButtonProps<T, S, F>) {\n const { submitText, norender, props: submitButtonProps = {} } = getSubmitButtonOptions<T, S, F>(uiSchema);\n if (norender) {\n return null;\n }\n return (\n <Button type='submit' primary {...submitButtonProps}>\n {submitText}\n </Button>\n );\n}\n", "import type { FormContextType, TitleFieldProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\nimport { Grid, Header } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\nconst DEFAULT_OPTIONS = {\n inverted: false,\n dividing: true,\n};\n\n/** The `TitleField` is the template to use to render the title of a field\n *\n * @param props - The `TitleFieldProps` for this component\n */\nexport default function TitleField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({\n id,\n title,\n uiSchema,\n optionalDataControl,\n}: TitleFieldProps<T, S, F>) {\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n defaultSchemaProps: DEFAULT_OPTIONS,\n });\n let heading = title ? (\n <Header id={id} {...semanticProps} as='h5'>\n {title}\n </Header>\n ) : null;\n if (optionalDataControl) {\n heading = (\n <Grid colums={2} relaxed>\n <Grid.Column width={14} style={{ paddingRight: 0 }}>\n {heading}\n </Grid.Column>\n <Grid.Column width={2}>{optionalDataControl}</Grid.Column>\n </Grid>\n );\n }\n\n return heading;\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, WrapIfAdditionalTemplateProps } from '@rjsf/utils';\nimport { ADDITIONAL_PROPERTY_FLAG, buttonId, TranslatableString } from '@rjsf/utils';\nimport { Form, Grid } from 'semantic-ui-react';\n\n/** The `WrapIfAdditional` component is used by the `FieldTemplate` to rename, or remove properties that are\n * part of an `additionalProperties` part of a schema.\n *\n * @param props - The `WrapIfAdditionalProps` for this component\n */\nexport default function WrapIfAdditionalTemplate<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WrapIfAdditionalTemplateProps<T, S, F>) {\n const {\n children,\n classNames,\n style,\n disabled,\n id,\n label,\n displayLabel,\n onKeyRenameBlur,\n onRemoveProperty,\n rawDescription,\n readonly,\n required,\n schema,\n uiSchema,\n registry,\n } = props;\n const { templates, translateString } = registry;\n // Button templates are not overridden in the uiSchema\n const { RemoveButton } = templates.ButtonTemplates;\n const keyLabel = translateString(TranslatableString.KeyLabel, [label]);\n const { readonlyAsDisabled = true, wrapperStyle } = registry.formContext;\n\n const additional = ADDITIONAL_PROPERTY_FLAG in schema;\n const margin = rawDescription ? 4 : 24;\n\n if (!additional) {\n return (\n <div className={classNames} style={style}>\n {children}\n </div>\n );\n }\n\n return (\n <div className={classNames} style={style} key={`${id}-key`}>\n <Grid>\n <Grid.Row>\n <Grid.Column width={7} className='form-additional'>\n <Form.Group widths='equal' grouped>\n <Form.Input\n key={label}\n className='form-group'\n hasFeedback\n fluid\n htmlFor={id}\n label={displayLabel ? keyLabel : undefined}\n required={required}\n defaultValue={label}\n disabled={disabled || (readonlyAsDisabled && readonly)}\n id={id}\n name={id}\n onBlur={!readonly ? onKeyRenameBlur : undefined}\n style={wrapperStyle}\n type='text'\n />\n </Form.Group>\n </Grid.Column>\n <Grid.Column width={7} className='form-additional' verticalAlign='middle'>\n {children}\n </Grid.Column>\n <Grid.Column verticalAlign='middle' style={displayLabel ? { marginTop: `${margin}px` } : undefined}>\n <RemoveButton\n id={buttonId(id, 'remove')}\n iconType='mini'\n className='rjsf-object-property-remove'\n disabled={disabled || readonly}\n onClick={onRemoveProperty}\n uiSchema={uiSchema}\n registry={registry}\n />\n </Grid.Column>\n </Grid.Row>\n </Grid>\n </div>\n );\n}\n", "import type { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';\n\nimport AddButton from '../AddButton/index.ts';\nimport ArrayFieldItemTemplate from '../ArrayFieldItemTemplate/index.ts';\nimport ArrayFieldTemplate from '../ArrayFieldTemplate/index.ts';\nimport BaseInputTemplate from '../BaseInputTemplate/index.ts';\nimport CyclicSchemaExpandTemplate from '../CyclicSchemaExpandTemplate/index.ts';\nimport DescriptionField from '../DescriptionField/index.ts';\nimport ErrorList from '../ErrorList/index.ts';\nimport FieldErrorTemplate from '../FieldErrorTemplate/index.ts';\nimport FieldHelpTemplate from '../FieldHelpTemplate/index.ts';\nimport FieldTemplate from '../FieldTemplate/index.ts';\nimport GridTemplate from '../GridTemplate/index.ts';\nimport { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from '../IconButton/index.ts';\nimport MultiSchemaFieldTemplate from '../MultiSchemaFieldTemplate/index.ts';\nimport ObjectFieldTemplate from '../ObjectFieldTemplate/index.ts';\nimport OptionalDataControlsTemplate from '../OptionalDataControlsTemplate/index.ts';\nimport SubmitButton from '../SubmitButton/index.ts';\nimport TitleField from '../TitleField/index.ts';\nimport WrapIfAdditionalTemplate from '../WrapIfAdditionalTemplate/index.ts';\n\nexport function generateTemplates<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): Partial<TemplatesType<T, S, F>> {\n return {\n ArrayFieldItemTemplate,\n ArrayFieldTemplate,\n BaseInputTemplate,\n CyclicSchemaExpandTemplate,\n ButtonTemplates: {\n AddButton,\n CopyButton,\n MoveDownButton,\n MoveUpButton,\n RemoveButton,\n SubmitButton,\n ClearButton,\n },\n DescriptionFieldTemplate: DescriptionField,\n ErrorListTemplate: ErrorList,\n FieldErrorTemplate,\n FieldHelpTemplate,\n FieldTemplate,\n GridTemplate,\n MultiSchemaFieldTemplate,\n ObjectFieldTemplate,\n OptionalDataControlsTemplate,\n TitleFieldTemplate: TitleField,\n WrapIfAdditionalTemplate,\n };\n}\n\nexport default generateTemplates();\n", "import type { ChangeEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionsDeselectValue,\n enumOptionsIsSelected,\n enumOptionsSelectValue,\n getTemplate,\n optionId,\n titleId,\n} from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\n/** The `CheckboxesWidget` is a widget for rendering checkbox groups.\n * It is typically used to represent an array of enums.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxesWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n disabled,\n options,\n value,\n autofocus,\n readonly,\n label,\n hideLabel,\n onChange,\n onBlur,\n onFocus,\n schema,\n uiSchema,\n rawErrors = [],\n registry,\n } = props;\n const TitleFieldTemplate = getTemplate<'TitleFieldTemplate', T, S, F>('TitleFieldTemplate', registry, options);\n const { enumOptions, enumDisabled, inline } = options;\n const checkboxesValues = Array.isArray(value) ? value : [value];\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext: registry.formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\n });\n const handleChange =\n (index: number) =>\n ({ target: { checked } }: ChangeEvent<HTMLInputElement>) => {\n // oxlint-disable-next-line no-shadow\n if (checked) {\n onChange(enumOptionsSelectValue<S>(index, checkboxesValues, enumOptions));\n } else {\n onChange(enumOptionsDeselectValue<S>(index, checkboxesValues, enumOptions));\n }\n };\n\n const handleBlur = () => onBlur(id, value);\n const handleFocus = () => onFocus(id, value);\n const inlineOption = inline ? { inline: true } : { grouped: true };\n return (\n <>\n {!hideLabel && !!label && (\n <TitleFieldTemplate id={titleId(id)} title={label} schema={schema} uiSchema={uiSchema} registry={registry} />\n )}\n <Form.Group id={id} name={htmlName || id} {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, checkboxesValues);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);\n return (\n <Form.Checkbox\n id={optionId(id, index)}\n name={htmlName || id}\n key={String(option.value)}\n label={option.label}\n {...semanticProps}\n checked={checked}\n error={rawErrors.length > 0}\n disabled={disabled || itemDisabled || readonly}\n autoFocus={autofocus && index === 0}\n onChange={handleChange(index)}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Form.Group>\n </>\n );\n}\n", "import type { FormEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue } from '@rjsf/utils';\nimport type { CheckboxProps } from 'semantic-ui-react';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\n/** The `CheckBoxWidget` is a widget for rendering boolean properties.\n * It is typically used to represent a boolean.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function CheckboxWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n value,\n disabled,\n readonly,\n label,\n hideLabel,\n autofocus,\n onChange,\n onBlur,\n options,\n onFocus,\n schema,\n uiSchema,\n rawErrors = [],\n registry,\n required,\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n options,\n formContext: registry.formContext,\n uiSchema,\n defaultSchemaProps: {\n inverted: 'false',\n },\n });\n const DescriptionFieldTemplate = getTemplate<'DescriptionFieldTemplate', T, S, F>(\n 'DescriptionFieldTemplate',\n registry,\n options,\n );\n const checked = value === 'true' || value === true;\n const handleChange = (_: FormEvent<HTMLInputElement>, data: CheckboxProps) => onChange?.(data.checked);\n const handleBlur: React.FocusEventHandler<HTMLInputElement> = () => onBlur?.(id, value);\n const handleFocus: React.FocusEventHandler<HTMLInputElement> = () => onFocus?.(id, value);\n const description = options.description ?? schema.description;\n const trueValueRequired = schemaRequiresTrueValue(schema) && required;\n\n return (\n <>\n {!hideLabel && description && (\n <DescriptionFieldTemplate\n id={descriptionId(id)}\n description={description}\n schema={schema}\n uiSchema={uiSchema}\n registry={registry}\n />\n )}\n <Form.Checkbox\n id={id}\n name={htmlName || id}\n disabled={disabled || readonly}\n autoFocus={autofocus}\n {...semanticProps}\n checked={typeof value === 'undefined' ? false : checked}\n error={rawErrors.length > 0}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n required={trueValueRequired}\n label={labelValue(label, hideLabel, false)}\n aria-describedby={ariaDescribedByIds(id)}\n />\n </>\n );\n}\n", "import type { FormEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n enumOptionsIsSelected,\n getOptionValueFormat,\n optionId,\n} from '@rjsf/utils';\nimport type { CheckboxProps } from 'semantic-ui-react';\nimport { Form, Radio } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\n/** The `RadioWidget` is a widget for rendering a radio group.\n * It is typically used with a string property constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RadioWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n htmlName,\n value,\n required,\n disabled,\n readonly,\n onChange,\n onBlur,\n onFocus,\n options,\n registry,\n uiSchema,\n rawErrors = [],\n } = props;\n const { enumOptions, enumDisabled, emptyValue } = options;\n const optionValueFormat = getOptionValueFormat(options);\n const semanticProps = getSemanticProps<T, S, F>({\n formContext: registry.formContext,\n options,\n uiSchema,\n // Radio supports neither `fluid` nor `inverted`, so don't default them; they\n // would be forwarded to the DOM element and trigger React unknown-attribute warnings\n defaultSchemaProps: {},\n });\n const handleChange = (_: FormEvent<HTMLInputElement>, { value: eventValue }: CheckboxProps) =>\n onChange(enumOptionValueDecoder<S>(String(eventValue!), enumOptions, optionValueFormat, emptyValue));\n\n const handleBlur = () => onBlur(id, value);\n const handleFocus = () => onFocus(id, value);\n const inlineOption = options.inline ? { inline: true } : { grouped: true };\n return (\n <Form.Group {...inlineOption}>\n {Array.isArray(enumOptions) &&\n enumOptions.map((option, index) => {\n const checked = enumOptionsIsSelected<S>(option.value, value);\n const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.includes(option.value);\n return (\n <Form.Field\n required={required}\n control={Radio}\n id={optionId(id, index)}\n name={htmlName || id}\n {...semanticProps}\n onFocus={handleFocus}\n onBlur={handleBlur}\n onChange={handleChange}\n label={option.label}\n value={enumOptionValueEncoder(option.value, index, optionValueFormat)}\n error={rawErrors.length > 0}\n key={String(option.value)}\n checked={checked}\n disabled={disabled || itemDisabled || readonly}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n })}\n </Form.Group>\n );\n}\n", "import type { ChangeEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, rangeSpec } from '@rjsf/utils';\nimport { Input } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\n/** The `RangeWidget` component uses the `BaseInputTemplate` changing the type to `range` and wrapping the result\n * in a div, with the value along side it.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function RangeWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n id,\n value,\n required,\n readonly,\n disabled,\n onChange,\n onBlur,\n onFocus,\n options,\n schema,\n uiSchema,\n registry,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext: registry.formContext,\n options,\n uiSchema,\n defaultSchemaProps: {\n fluid: true,\n },\n });\n\n // oxlint-disable-next-line no-shadow\n const handleChange = ({ target: { value } }: ChangeEvent<HTMLInputElement>) =>\n onChange?.(value === '' ? options.emptyValue : value);\n const handleBlur = () => onBlur?.(id, value);\n const handleFocus = () => onFocus?.(id, value);\n\n return (\n <>\n <Input\n id={id}\n key={id}\n name={id}\n type='range'\n required={required}\n disabled={disabled || readonly}\n {...rangeSpec<S>(schema)}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <span>{value}</span>\n </>\n );\n}\n", "import type { FocusEvent, SyntheticEvent } from 'react';\nimport type {\n EnumOptionsType,\n FormContextType,\n OptionValueFormat,\n RJSFSchema,\n StrictRJSFSchema,\n WidgetProps,\n UIOptionsType,\n} from '@rjsf/utils';\nimport {\n ariaDescribedByIds,\n enumOptionSelectedValue,\n enumOptionValueDecoder,\n enumOptionValueEncoder,\n getOptionValueFormat,\n labelValue,\n logUnsupportedDefaultForEnum,\n SelectedOptionDescription,\n} from '@rjsf/utils';\nimport type { DropdownProps, DropdownItemProps } from 'semantic-ui-react';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\n/**\n * Returns and creates an array format required for semantic drop down\n * @param {array} enumOptions - array of items for the dropdown\n * @param {array} enumDisabled - array of enum option values to disable\n * @param {boolean} showPlaceholderOption - whether to show a placeholder option\n * @param {string} placeholder - placeholder option label\n * @returns {*}\n */\nfunction createDefaultValueOptionsForDropDown<S extends StrictRJSFSchema = RJSFSchema>(\n enumOptions?: EnumOptionsType<S>[],\n enumDisabled?: UIOptionsType['enumDisabled'],\n showPlaceholderOption?: boolean,\n placeholder?: string,\n format: OptionValueFormat = 'indexed',\n) {\n const disabledOptions = enumDisabled || [];\n const options: DropdownItemProps[] = (enumOptions ?? []).map(({ label, value }, index) => ({\n disabled: disabledOptions.includes(value),\n key: label,\n text: label,\n value: enumOptionValueEncoder(value, index, format),\n }));\n if (showPlaceholderOption) {\n options.unshift({ value: '', text: placeholder || '' });\n }\n return options;\n}\n\n/** The `SelectWidget` is a widget for rendering dropdowns.\n * It is typically used with string properties constrained with enum options.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function SelectWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(\n props: WidgetProps<T, S, F>,\n) {\n const {\n uiSchema,\n registry,\n id,\n htmlName,\n options,\n label,\n hideLabel,\n required,\n disabled,\n readonly,\n value,\n multiple,\n placeholder,\n autofocus,\n onChange,\n onBlur,\n onFocus,\n rawErrors = [],\n schema,\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n uiSchema,\n formContext: registry.formContext,\n options,\n defaultSchemaProps: {\n inverted: 'false',\n selection: true,\n fluid: true,\n scrolling: true,\n upward: false,\n },\n });\n const { enumDisabled, enumOptions, emptyValue: optEmptyVal } = options;\n const emptyValue = multiple ? [] : '';\n const optionValueFormat = getOptionValueFormat(options);\n const showPlaceholderOption = !multiple && schema.default === undefined;\n logUnsupportedDefaultForEnum<S>(id, schema, enumOptions, multiple);\n const dropdownOptions = createDefaultValueOptionsForDropDown<S>(\n enumOptions,\n enumDisabled,\n showPlaceholderOption,\n placeholder,\n optionValueFormat,\n );\n const handleChange = (_: SyntheticEvent<HTMLElement>, { value: enumValue }: DropdownProps) =>\n onChange(enumOptionValueDecoder<S>(enumValue as string[], enumOptions, optionValueFormat, optEmptyVal));\n const handleBlur = (_: FocusEvent<HTMLElement>, { target }: DropdownProps) =>\n onBlur(id, enumOptionValueDecoder<S>(target?.value, enumOptions, optionValueFormat, optEmptyVal));\n const handleFocus = (_: FocusEvent<HTMLElement>, { target }: DropdownProps) =>\n onFocus(id, enumOptionValueDecoder<S>(target?.value, enumOptions, optionValueFormat, optEmptyVal));\n return (\n <>\n <Form.Dropdown\n key={id}\n id={id}\n name={htmlName || id}\n label={labelValue(label || undefined, hideLabel, false)}\n multiple={typeof multiple === 'undefined' ? false : multiple}\n value={enumOptionSelectedValue<S>(value, enumOptions, !!multiple, optionValueFormat, emptyValue)}\n error={rawErrors.length > 0}\n disabled={disabled}\n placeholder={placeholder}\n {...semanticProps}\n required={required}\n autoFocus={autofocus}\n readOnly={readonly}\n options={dropdownOptions}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n <SelectedOptionDescription {...props} />\n </>\n );\n}\n", "import type { ChangeEvent } from 'react';\nimport type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';\nimport { ariaDescribedByIds, labelValue } from '@rjsf/utils';\nimport { Form } from 'semantic-ui-react';\n\nimport { getSemanticProps } from '../util.tsx';\n\n/** The `TextareaWidget` is a widget for rendering input fields as textarea.\n *\n * @param props - The `WidgetProps` for this component\n */\nexport default function TextareaWidget<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(props: WidgetProps<T, S, F>) {\n const {\n id,\n htmlName,\n placeholder,\n value,\n required,\n disabled,\n autofocus,\n label,\n hideLabel,\n readonly,\n onBlur,\n onFocus,\n onChange,\n options,\n registry,\n rawErrors = [],\n } = props;\n const semanticProps = getSemanticProps<T, S, F>({\n formContext: registry.formContext,\n options,\n defaultSchemaProps: { inverted: 'false' },\n });\n // oxlint-disable-next-line no-shadow\n const handleChange = ({ target: { value } }: ChangeEvent<HTMLTextAreaElement>) =>\n onChange?.(value === '' ? options.emptyValue : value);\n const handleBlur = () => onBlur?.(id, value);\n const handleFocus = () => onFocus?.(id, value);\n return (\n <Form.TextArea\n id={id}\n key={id}\n name={htmlName || id}\n label={labelValue(label || undefined, hideLabel, false)}\n placeholder={placeholder}\n autoFocus={autofocus}\n required={required}\n disabled={disabled || readonly}\n {...semanticProps}\n value={value || ''}\n error={rawErrors.length > 0}\n rows={options.rows || 5}\n onChange={handleChange}\n onBlur={handleBlur}\n onFocus={handleFocus}\n aria-describedby={ariaDescribedByIds(id)}\n />\n );\n}\n", "import type { FormContextType, RegistryWidgetsType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';\n\nimport CheckboxesWidget from '../CheckboxesWidget/CheckboxesWidget.tsx';\nimport CheckboxWidget from '../CheckboxWidget/CheckboxWidget.tsx';\nimport RadioWidget from '../RadioWidget/RadioWidget.tsx';\nimport RangeWidget from '../RangeWidget/RangeWidget.tsx';\nimport SelectWidget from '../SelectWidget/SelectWidget.tsx';\nimport TextareaWidget from '../TextareaWidget/TextareaWidget.tsx';\n\nexport function generateWidgets<\n T = any,\n S extends StrictRJSFSchema = RJSFSchema,\n F extends FormContextType = any,\n>(): RegistryWidgetsType<T, S, F> {\n return {\n CheckboxWidget,\n CheckboxesWidget,\n RadioWidget,\n RangeWidget,\n SelectWidget,\n TextareaWidget,\n };\n}\n\nexport default generateWidgets();\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,IAAAA,eAA0B;;;ACA1B,IAAAC,6BAAgC;;;ACDhC,mBAAmC;AAEnC,+BAA6B;AAqBvB;AAfS,SAAR,UAA8G;AAAA,EACnH;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,GAAqC;AACnC,QAAM,EAAE,gBAAgB,IAAI;AAC5B,SACE;AAAA,IAAC;AAAA;AAAA,MACC,OAAO,gBAAgB,gCAAmB,a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A,IACtB;AAAA,IACA,oBAAoB,EAAE,UAAU,QAAQ;AAAA,EAC1C,CAAC;AAED,QAAM,eAAe,CAAC,EAAE,QAAQ,EAAE,OAAAC,OAAM,EAAE,MACxC,WAAWA,WAAU,KAAK,QAAQ,aAAaA,MAAK;AACtD,QAAM,aAAa,MAAM,SAAS,IAAI,KAAK;AAC3C,QAAM,cAAc,MAAM,UAAU,IAAI,KAAK;AAC7C,SACE;AAAA,IAAC,gCAAK;AAAA,IAAL;AAAA,MACC;AAAA,MAEA,MAAM,YAAY;AAAA,MAClB,WAAO,2BAAW,SAAS,QAAW,WAAW,KAAK;AAAA,MACtD;AAAA,MACA,WAAW;AAAA,MACX;AAAA,MACA,UAAU,YAAY;AAAA,MACrB,GAAG;AAAA,MACJ,OAAO,SAAS;AAAA,MAChB,OAAO,UAAU,SAAS;AAAA,MAC1B,MAAM,QAAQ,QAAQ;AAAA,MACtB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,SAAS;AAAA,MACT,wBAAkB,mCAAmB,EAAE;AAAA;AAAA,IAdlC;AAAA,EAeP;AAEJ;;;ACvDO,SAAS,kBAIkB;AAChC,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEA,IAAO,kBAAQ,gBAAgB;;;A3BjBxB,SAAS,gBAIS;AACvB,SAAO;AAAA,IACL,WAAW,kBAA2B;AAAA,IACtC,SAAS,gBAAyB;AAAA,IAClC,sBAAsB,2BAAAC;AAAA,EACxB;AACF;AAEA,IAAO,gBAAQ,cAAc;;;ADZtB,SAAS,eAIuB;AACrC,aAAO,wBAAmB,cAAuB,CAAC;AACpD;AAEA,IAAO,yBAAQ,aAAa;;;ADL5B,IAAO,gBAAQ;",
6
+ "names": ["import_core", "import_semantic_ui_react", "import_utils", "import_semantic_ui_react", "import_utils", "import_jsx_runtime", "import_jsx_runtime", "import_utils", "import_jsx_runtime", "AddButton", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "ClearButton", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "buttonId", "import_core", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_core", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "WrapIfAdditionalTemplate", "import_semantic_ui_react", "import_jsx_runtime", "import_react", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "AddButton", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_semantic_ui_react", "import_jsx_runtime", "DEFAULT_OPTIONS", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "RemoveButton", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_react", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "value", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "import_utils", "import_semantic_ui_react", "import_jsx_runtime", "value", "SuiForm"]
7
7
  }
@@ -240,7 +240,7 @@ function BaseInputTemplate(props) {
240
240
  (e) => {
241
241
  e.preventDefault();
242
242
  e.stopPropagation();
243
- onChange(options.emptyValue ?? "");
243
+ onChange(options.emptyValue);
244
244
  },
245
245
  [onChange, options.emptyValue]
246
246
  );
@@ -317,7 +317,6 @@ function ErrorList({
317
317
 
318
318
  // src/FieldErrorTemplate/FieldErrorTemplate.tsx
319
319
  import { errorId } from "@rjsf/utils";
320
- import uniqueId from "lodash/uniqueId";
321
320
  import { Label, List } from "semantic-ui-react";
322
321
  import { jsx as jsx9 } from "react/jsx-runtime";
323
322
  var DEFAULT_OPTIONS = {
@@ -336,7 +335,10 @@ function FieldErrorTemplate({ errors, fieldPathId, uiSchema, registry }) {
336
335
  const { pointing, size } = options;
337
336
  if (errors && errors.length > 0) {
338
337
  const id = errorId(fieldPathId);
339
- return /* @__PURE__ */ jsx9(Label, { id, color: "red", pointing: pointing || "above", size: size || "small", basic: true, children: /* @__PURE__ */ jsx9(List, { bulleted: true, children: errors.map((error) => /* @__PURE__ */ jsx9(List.Item, { children: error }, uniqueId("field-error-"))) }) });
338
+ return /* @__PURE__ */ jsx9(Label, { id, color: "red", pointing: pointing || "above", size: size || "small", basic: true, children: /* @__PURE__ */ jsx9(List, { bulleted: true, children: errors.map((error, i) => (
339
+ // oxlint-disable-next-line react/no-array-index-key
340
+ /* @__PURE__ */ jsx9(List.Item, { children: error }, i)
341
+ )) }) });
340
342
  }
341
343
  return null;
342
344
  }
@@ -840,7 +842,8 @@ function CheckboxWidget(props) {
840
842
  schema,
841
843
  uiSchema,
842
844
  rawErrors = [],
843
- registry
845
+ registry,
846
+ required
844
847
  } = props;
845
848
  const semanticProps = getSemanticProps({
846
849
  options,
@@ -855,12 +858,12 @@ function CheckboxWidget(props) {
855
858
  registry,
856
859
  options
857
860
  );
858
- const required = schemaRequiresTrueValue(schema);
859
861
  const checked = value === "true" || value === true;
860
862
  const handleChange = (_, data) => onChange?.(data.checked);
861
863
  const handleBlur = () => onBlur?.(id, value);
862
864
  const handleFocus = () => onFocus?.(id, value);
863
865
  const description = options.description ?? schema.description;
866
+ const trueValueRequired = schemaRequiresTrueValue(schema) && required;
864
867
  return /* @__PURE__ */ jsxs12(Fragment4, { children: [
865
868
  !hideLabel && description && /* @__PURE__ */ jsx21(
866
869
  DescriptionFieldTemplate,
@@ -885,7 +888,7 @@ function CheckboxWidget(props) {
885
888
  onChange: handleChange,
886
889
  onBlur: handleBlur,
887
890
  onFocus: handleFocus,
888
- required,
891
+ required: trueValueRequired,
889
892
  label: labelValue2(label, hideLabel, false),
890
893
  "aria-describedby": ariaDescribedByIds3(id)
891
894
  }
@@ -926,7 +929,10 @@ function RadioWidget(props) {
926
929
  const semanticProps = getSemanticProps({
927
930
  formContext: registry.formContext,
928
931
  options,
929
- uiSchema
932
+ uiSchema,
933
+ // Radio supports neither `fluid` nor `inverted`, so don't default them; they
934
+ // would be forwarded to the DOM element and trigger React unknown-attribute warnings
935
+ defaultSchemaProps: {}
930
936
  });
931
937
  const handleChange = (_, { value: eventValue }) => onChange(enumOptionValueDecoder(String(eventValue), enumOptions, optionValueFormat, emptyValue));
932
938
  const handleBlur = () => onBlur(id, value);
@@ -1024,12 +1030,11 @@ import {
1024
1030
  logUnsupportedDefaultForEnum,
1025
1031
  SelectedOptionDescription
1026
1032
  } from "@rjsf/utils";
1027
- import map from "lodash/map";
1028
1033
  import { Form as Form7 } from "semantic-ui-react";
1029
1034
  import { Fragment as Fragment6, jsx as jsx24, jsxs as jsxs14 } from "react/jsx-runtime";
1030
1035
  function createDefaultValueOptionsForDropDown(enumOptions, enumDisabled, showPlaceholderOption, placeholder, format = "indexed") {
1031
1036
  const disabledOptions = enumDisabled || [];
1032
- const options = map(enumOptions, ({ label, value }, index) => ({
1037
+ const options = (enumOptions ?? []).map(({ label, value }, index) => ({
1033
1038
  disabled: disabledOptions.includes(value),
1034
1039
  key: label,
1035
1040
  text: label,