@rjsf/primereact 6.0.0-beta.11

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/README.md +120 -0
  2. package/dist/index.js +1285 -0
  3. package/dist/index.js.map +7 -0
  4. package/dist/primereact.esm.js +1327 -0
  5. package/dist/primereact.esm.js.map +7 -0
  6. package/dist/primereact.umd.js +1135 -0
  7. package/lib/AddButton/AddButton.d.ts +4 -0
  8. package/lib/AddButton/AddButton.js +10 -0
  9. package/lib/AddButton/AddButton.js.map +1 -0
  10. package/lib/AddButton/index.d.ts +2 -0
  11. package/lib/AddButton/index.js +3 -0
  12. package/lib/AddButton/index.js.map +1 -0
  13. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +6 -0
  14. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +13 -0
  15. package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -0
  16. package/lib/ArrayFieldItemTemplate/index.d.ts +2 -0
  17. package/lib/ArrayFieldItemTemplate/index.js +3 -0
  18. package/lib/ArrayFieldItemTemplate/index.js.map +1 -0
  19. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +6 -0
  20. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +30 -0
  21. package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -0
  22. package/lib/ArrayFieldTemplate/index.d.ts +2 -0
  23. package/lib/ArrayFieldTemplate/index.js +3 -0
  24. package/lib/ArrayFieldTemplate/index.js.map +1 -0
  25. package/lib/ArrayFieldTitleTemplate/ArrayFieldTitleTemplate.d.ts +6 -0
  26. package/lib/ArrayFieldTitleTemplate/ArrayFieldTitleTemplate.js +11 -0
  27. package/lib/ArrayFieldTitleTemplate/ArrayFieldTitleTemplate.js.map +1 -0
  28. package/lib/ArrayFieldTitleTemplate/index.d.ts +2 -0
  29. package/lib/ArrayFieldTitleTemplate/index.js +3 -0
  30. package/lib/ArrayFieldTitleTemplate/index.js.map +1 -0
  31. package/lib/AutoCompleteWidget/AutoCompleteWidget.d.ts +7 -0
  32. package/lib/AutoCompleteWidget/AutoCompleteWidget.js +42 -0
  33. package/lib/AutoCompleteWidget/AutoCompleteWidget.js.map +1 -0
  34. package/lib/AutoCompleteWidget/index.d.ts +2 -0
  35. package/lib/AutoCompleteWidget/index.js +3 -0
  36. package/lib/AutoCompleteWidget/index.js.map +1 -0
  37. package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +4 -0
  38. package/lib/BaseInputTemplate/BaseInputTemplate.js +19 -0
  39. package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -0
  40. package/lib/BaseInputTemplate/index.d.ts +2 -0
  41. package/lib/BaseInputTemplate/index.js +3 -0
  42. package/lib/BaseInputTemplate/index.js.map +1 -0
  43. package/lib/CheckboxWidget/CheckboxWidget.d.ts +7 -0
  44. package/lib/CheckboxWidget/CheckboxWidget.js +23 -0
  45. package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -0
  46. package/lib/CheckboxWidget/index.d.ts +2 -0
  47. package/lib/CheckboxWidget/index.js +3 -0
  48. package/lib/CheckboxWidget/index.js.map +1 -0
  49. package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +7 -0
  50. package/lib/CheckboxesWidget/CheckboxesWidget.js +35 -0
  51. package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -0
  52. package/lib/CheckboxesWidget/index.d.ts +2 -0
  53. package/lib/CheckboxesWidget/index.js +3 -0
  54. package/lib/CheckboxesWidget/index.js.map +1 -0
  55. package/lib/ColorWidget/ColorWidget.d.ts +6 -0
  56. package/lib/ColorWidget/ColorWidget.js +18 -0
  57. package/lib/ColorWidget/ColorWidget.js.map +1 -0
  58. package/lib/ColorWidget/index.d.ts +2 -0
  59. package/lib/ColorWidget/index.js +3 -0
  60. package/lib/ColorWidget/index.js.map +1 -0
  61. package/lib/DescriptionField/DescriptionField.d.ts +6 -0
  62. package/lib/DescriptionField/DescriptionField.js +14 -0
  63. package/lib/DescriptionField/DescriptionField.js.map +1 -0
  64. package/lib/DescriptionField/index.d.ts +2 -0
  65. package/lib/DescriptionField/index.js +3 -0
  66. package/lib/DescriptionField/index.js.map +1 -0
  67. package/lib/ErrorList/ErrorList.d.ts +6 -0
  68. package/lib/ErrorList/ErrorList.js +21 -0
  69. package/lib/ErrorList/ErrorList.js.map +1 -0
  70. package/lib/ErrorList/index.d.ts +2 -0
  71. package/lib/ErrorList/index.js +3 -0
  72. package/lib/ErrorList/index.js.map +1 -0
  73. package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +6 -0
  74. package/lib/FieldErrorTemplate/FieldErrorTemplate.js +18 -0
  75. package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -0
  76. package/lib/FieldErrorTemplate/index.d.ts +2 -0
  77. package/lib/FieldErrorTemplate/index.js +3 -0
  78. package/lib/FieldErrorTemplate/index.js.map +1 -0
  79. package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts +6 -0
  80. package/lib/FieldHelpTemplate/FieldHelpTemplate.js +15 -0
  81. package/lib/FieldHelpTemplate/FieldHelpTemplate.js.map +1 -0
  82. package/lib/FieldHelpTemplate/index.d.ts +2 -0
  83. package/lib/FieldHelpTemplate/index.js +3 -0
  84. package/lib/FieldHelpTemplate/index.js.map +1 -0
  85. package/lib/FieldTemplate/FieldTemplate.d.ts +2 -0
  86. package/lib/FieldTemplate/FieldTemplate.js +13 -0
  87. package/lib/FieldTemplate/FieldTemplate.js.map +1 -0
  88. package/lib/FieldTemplate/index.d.ts +2 -0
  89. package/lib/FieldTemplate/index.js +3 -0
  90. package/lib/FieldTemplate/index.js.map +1 -0
  91. package/lib/GridTemplate/GridTemplate.d.ts +8 -0
  92. package/lib/GridTemplate/GridTemplate.js +69 -0
  93. package/lib/GridTemplate/GridTemplate.js.map +1 -0
  94. package/lib/GridTemplate/index.d.ts +2 -0
  95. package/lib/GridTemplate/index.js +3 -0
  96. package/lib/GridTemplate/index.js.map +1 -0
  97. package/lib/IconButton/IconButton.d.ts +7 -0
  98. package/lib/IconButton/IconButton.js +25 -0
  99. package/lib/IconButton/IconButton.js.map +1 -0
  100. package/lib/IconButton/index.d.ts +2 -0
  101. package/lib/IconButton/index.js +3 -0
  102. package/lib/IconButton/index.js.map +1 -0
  103. package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +2 -0
  104. package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js +7 -0
  105. package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.js.map +1 -0
  106. package/lib/MultiSchemaFieldTemplate/index.d.ts +2 -0
  107. package/lib/MultiSchemaFieldTemplate/index.js +3 -0
  108. package/lib/MultiSchemaFieldTemplate/index.js.map +1 -0
  109. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +8 -0
  110. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js +18 -0
  111. package/lib/ObjectFieldTemplate/ObjectFieldTemplate.js.map +1 -0
  112. package/lib/ObjectFieldTemplate/index.d.ts +2 -0
  113. package/lib/ObjectFieldTemplate/index.js +3 -0
  114. package/lib/ObjectFieldTemplate/index.js.map +1 -0
  115. package/lib/PasswordWidget/PasswordWidget.d.ts +6 -0
  116. package/lib/PasswordWidget/PasswordWidget.js +17 -0
  117. package/lib/PasswordWidget/PasswordWidget.js.map +1 -0
  118. package/lib/PasswordWidget/index.d.ts +2 -0
  119. package/lib/PasswordWidget/index.js +3 -0
  120. package/lib/PasswordWidget/index.js.map +1 -0
  121. package/lib/PrimeForm/PrimeForm.d.ts +6 -0
  122. package/lib/PrimeForm/PrimeForm.js +7 -0
  123. package/lib/PrimeForm/PrimeForm.js.map +1 -0
  124. package/lib/PrimeForm/index.d.ts +2 -0
  125. package/lib/PrimeForm/index.js +3 -0
  126. package/lib/PrimeForm/index.js.map +1 -0
  127. package/lib/RadioWidget/RadioWidget.d.ts +7 -0
  128. package/lib/RadioWidget/RadioWidget.js +25 -0
  129. package/lib/RadioWidget/RadioWidget.js.map +1 -0
  130. package/lib/RadioWidget/index.d.ts +2 -0
  131. package/lib/RadioWidget/index.js +3 -0
  132. package/lib/RadioWidget/index.js.map +1 -0
  133. package/lib/RangeWidget/RangeWidget.d.ts +7 -0
  134. package/lib/RangeWidget/RangeWidget.js +21 -0
  135. package/lib/RangeWidget/RangeWidget.js.map +1 -0
  136. package/lib/RangeWidget/index.d.ts +2 -0
  137. package/lib/RangeWidget/index.js +3 -0
  138. package/lib/RangeWidget/index.js.map +1 -0
  139. package/lib/SelectWidget/SelectWidget.d.ts +7 -0
  140. package/lib/SelectWidget/SelectWidget.js +47 -0
  141. package/lib/SelectWidget/SelectWidget.js.map +1 -0
  142. package/lib/SelectWidget/index.d.ts +2 -0
  143. package/lib/SelectWidget/index.js +3 -0
  144. package/lib/SelectWidget/index.js.map +1 -0
  145. package/lib/SubmitButton/SubmitButton.d.ts +4 -0
  146. package/lib/SubmitButton/SubmitButton.js +13 -0
  147. package/lib/SubmitButton/SubmitButton.js.map +1 -0
  148. package/lib/SubmitButton/index.d.ts +2 -0
  149. package/lib/SubmitButton/index.js +3 -0
  150. package/lib/SubmitButton/index.js.map +1 -0
  151. package/lib/Templates/Templates.d.ts +4 -0
  152. package/lib/Templates/Templates.js +45 -0
  153. package/lib/Templates/Templates.js.map +1 -0
  154. package/lib/Templates/index.d.ts +2 -0
  155. package/lib/Templates/index.js +3 -0
  156. package/lib/Templates/index.js.map +1 -0
  157. package/lib/TextareaWidget/TextareaWidget.d.ts +6 -0
  158. package/lib/TextareaWidget/TextareaWidget.js +20 -0
  159. package/lib/TextareaWidget/TextareaWidget.js.map +1 -0
  160. package/lib/TextareaWidget/index.d.ts +2 -0
  161. package/lib/TextareaWidget/index.js +3 -0
  162. package/lib/TextareaWidget/index.js.map +1 -0
  163. package/lib/Theme/Theme.d.ts +5 -0
  164. package/lib/Theme/Theme.js +10 -0
  165. package/lib/Theme/Theme.js.map +1 -0
  166. package/lib/Theme/index.d.ts +2 -0
  167. package/lib/Theme/index.js +3 -0
  168. package/lib/Theme/index.js.map +1 -0
  169. package/lib/TitleField/TitleField.d.ts +6 -0
  170. package/lib/TitleField/TitleField.js +12 -0
  171. package/lib/TitleField/TitleField.js.map +1 -0
  172. package/lib/TitleField/index.d.ts +2 -0
  173. package/lib/TitleField/index.js +3 -0
  174. package/lib/TitleField/index.js.map +1 -0
  175. package/lib/UpDownWidget/UpDownWidget.d.ts +6 -0
  176. package/lib/UpDownWidget/UpDownWidget.js +19 -0
  177. package/lib/UpDownWidget/UpDownWidget.js.map +1 -0
  178. package/lib/UpDownWidget/index.d.ts +2 -0
  179. package/lib/UpDownWidget/index.js +3 -0
  180. package/lib/UpDownWidget/index.js.map +1 -0
  181. package/lib/Widgets/Widgets.d.ts +4 -0
  182. package/lib/Widgets/Widgets.js +26 -0
  183. package/lib/Widgets/Widgets.js.map +1 -0
  184. package/lib/Widgets/index.d.ts +2 -0
  185. package/lib/Widgets/index.js +3 -0
  186. package/lib/Widgets/index.js.map +1 -0
  187. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +7 -0
  188. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js +20 -0
  189. package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.js.map +1 -0
  190. package/lib/WrapIfAdditionalTemplate/index.d.ts +2 -0
  191. package/lib/WrapIfAdditionalTemplate/index.js +3 -0
  192. package/lib/WrapIfAdditionalTemplate/index.js.map +1 -0
  193. package/lib/index.d.ts +6 -0
  194. package/lib/index.js +7 -0
  195. package/lib/index.js.map +1 -0
  196. package/lib/tsconfig.tsbuildinfo +1 -0
  197. package/lib/util.d.ts +5 -0
  198. package/lib/util.js +8 -0
  199. package/lib/util.js.map +1 -0
  200. package/package.json +104 -0
  201. package/src/AddButton/AddButton.tsx +23 -0
  202. package/src/AddButton/index.ts +2 -0
  203. package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +40 -0
  204. package/src/ArrayFieldItemTemplate/index.ts +2 -0
  205. package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +111 -0
  206. package/src/ArrayFieldTemplate/index.ts +2 -0
  207. package/src/ArrayFieldTitleTemplate/ArrayFieldTitleTemplate.tsx +25 -0
  208. package/src/ArrayFieldTitleTemplate/index.ts +2 -0
  209. package/src/AutoCompleteWidget/AutoCompleteWidget.tsx +96 -0
  210. package/src/AutoCompleteWidget/index.ts +2 -0
  211. package/src/BaseInputTemplate/BaseInputTemplate.tsx +71 -0
  212. package/src/BaseInputTemplate/index.ts +2 -0
  213. package/src/CheckboxWidget/CheckboxWidget.tsx +86 -0
  214. package/src/CheckboxWidget/index.ts +2 -0
  215. package/src/CheckboxesWidget/CheckboxesWidget.tsx +105 -0
  216. package/src/CheckboxesWidget/index.ts +2 -0
  217. package/src/ColorWidget/ColorWidget.tsx +62 -0
  218. package/src/ColorWidget/index.ts +2 -0
  219. package/src/DescriptionField/DescriptionField.tsx +22 -0
  220. package/src/DescriptionField/index.ts +2 -0
  221. package/src/ErrorList/ErrorList.tsx +44 -0
  222. package/src/ErrorList/index.ts +2 -0
  223. package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +30 -0
  224. package/src/FieldErrorTemplate/index.ts +2 -0
  225. package/src/FieldHelpTemplate/FieldHelpTemplate.tsx +18 -0
  226. package/src/FieldHelpTemplate/index.ts +2 -0
  227. package/src/FieldTemplate/FieldTemplate.tsx +40 -0
  228. package/src/FieldTemplate/index.ts +2 -0
  229. package/src/GridTemplate/GridTemplate.tsx +93 -0
  230. package/src/GridTemplate/index.ts +2 -0
  231. package/src/IconButton/IconButton.tsx +47 -0
  232. package/src/IconButton/index.ts +2 -0
  233. package/src/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.tsx +17 -0
  234. package/src/MultiSchemaFieldTemplate/index.ts +2 -0
  235. package/src/ObjectFieldTemplate/ObjectFieldTemplate.tsx +88 -0
  236. package/src/ObjectFieldTemplate/index.ts +2 -0
  237. package/src/PasswordWidget/PasswordWidget.tsx +65 -0
  238. package/src/PasswordWidget/index.ts +2 -0
  239. package/src/PrimeForm/PrimeForm.ts +15 -0
  240. package/src/PrimeForm/index.ts +2 -0
  241. package/src/RadioWidget/RadioWidget.tsx +60 -0
  242. package/src/RadioWidget/index.ts +2 -0
  243. package/src/RangeWidget/RangeWidget.tsx +37 -0
  244. package/src/RangeWidget/index.ts +2 -0
  245. package/src/SelectWidget/SelectWidget.tsx +139 -0
  246. package/src/SelectWidget/index.ts +2 -0
  247. package/src/SubmitButton/SubmitButton.tsx +16 -0
  248. package/src/SubmitButton/index.ts +2 -0
  249. package/src/Templates/Templates.ts +52 -0
  250. package/src/Templates/index.ts +2 -0
  251. package/src/TextareaWidget/TextareaWidget.tsx +41 -0
  252. package/src/TextareaWidget/index.ts +2 -0
  253. package/src/Theme/Theme.ts +18 -0
  254. package/src/Theme/index.ts +2 -0
  255. package/src/TitleField/TitleField.tsx +23 -0
  256. package/src/TitleField/index.ts +2 -0
  257. package/src/UpDownWidget/UpDownWidget.tsx +70 -0
  258. package/src/UpDownWidget/index.ts +2 -0
  259. package/src/Widgets/Widgets.tsx +33 -0
  260. package/src/Widgets/index.ts +2 -0
  261. package/src/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.tsx +83 -0
  262. package/src/WrapIfAdditionalTemplate/index.ts +2 -0
  263. package/src/index.ts +8 -0
  264. package/src/tsconfig.json +24 -0
  265. package/src/util.tsx +11 -0
@@ -0,0 +1,4 @@
1
+ import { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `AddButton` renders a button that represents the `Add` action on a form
3
+ */
4
+ export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ uiSchema, registry, color, ...props }: IconButtonProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Button } from 'primereact/button';
3
+ import { TranslatableString } from '@rjsf/utils';
4
+ /** The `AddButton` renders a button that represents the `Add` action on a form
5
+ */
6
+ export default function AddButton({ uiSchema, registry, color, ...props }) {
7
+ const { translateString } = registry;
8
+ return (_jsx(Button, { label: translateString(TranslatableString.AddItemButton), icon: 'pi pi-plus', outlined: true, severity: 'secondary', size: 'small', ...props }));
9
+ }
10
+ //# sourceMappingURL=AddButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AddButton.js","sourceRoot":"","sources":["../../src/AddButton/AddButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAkE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjH;GACG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoF,EACnH,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,GAAG,KAAK,EACiB;IACzB,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IACrC,OAAO,CACL,KAAC,MAAM,IACL,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,aAAa,CAAC,EACxD,IAAI,EAAC,YAAY,EACjB,QAAQ,QACR,QAAQ,EAAC,WAAW,EACpB,IAAI,EAAC,OAAO,KACR,KAAK,GACT,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './AddButton.js';
2
+ export * from './AddButton.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './AddButton.js';
2
+ export * from './AddButton.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/AddButton/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ArrayFieldItemTemplateType, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
3
+ *
4
+ * @param props - The `ArrayFieldItemTemplateType` props for the component
5
+ */
6
+ export default function ArrayFieldItemTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldItemTemplateType<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getTemplate, getUiOptions, } from '@rjsf/utils';
3
+ /** The `ArrayFieldItemTemplate` component is the template used to render an items of an array.
4
+ *
5
+ * @param props - The `ArrayFieldItemTemplateType` props for the component
6
+ */
7
+ export default function ArrayFieldItemTemplate(props) {
8
+ const { children, buttonsProps, hasToolbar, uiSchema, registry } = props;
9
+ const uiOptions = getUiOptions(uiSchema);
10
+ const ArrayFieldItemButtonsTemplate = getTemplate('ArrayFieldItemButtonsTemplate', registry, uiOptions);
11
+ return (_jsxs("div", { style: { position: 'relative' }, children: [hasToolbar && (_jsx("div", { style: { position: 'absolute', right: 0, top: '-10px' }, children: hasToolbar && (_jsx("div", { style: { flexDirection: 'row' }, children: _jsx(ArrayFieldItemButtonsTemplate, { ...buttonsProps }) })) })), children] }));
12
+ }
13
+ //# sourceMappingURL=ArrayFieldItemTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrayFieldItemTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,WAAW,EACX,YAAY,GAGb,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAI5C,KAA0C;IAC1C,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACzE,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,WAAW,CAC/C,+BAA+B,EAC/B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,OAAO,CACL,eAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,aACjC,UAAU,IAAI,CACb,cAAK,KAAK,EAAE,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,OAAO,EAAE,YACzD,UAAU,IAAI,CACb,cAAK,KAAK,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,YAClC,KAAC,6BAA6B,OAAK,YAAY,GAAI,GAC/C,CACP,GACG,CACP,EACA,QAAQ,IACL,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ArrayFieldItemTemplate.js';
2
+ export * from './ArrayFieldItemTemplate.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './ArrayFieldItemTemplate.js';
2
+ export * from './ArrayFieldItemTemplate.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ArrayFieldItemTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,cAAc,0BAA0B,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ArrayFieldTemplate` component is the template used to render all items in an array.
3
+ *
4
+ * @param props - The `ArrayFieldItemTemplateType` props for the component
5
+ */
6
+ export default function ArrayFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,30 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { getTemplate, getUiOptions, isFixedItems, UI_OPTIONS_KEY, buttonId, } from '@rjsf/utils';
3
+ import { Fieldset } from 'primereact/fieldset';
4
+ import AddButton from '../AddButton/index.js';
5
+ /** The `ArrayFieldTemplate` component is the template used to render all items in an array.
6
+ *
7
+ * @param props - The `ArrayFieldItemTemplateType` props for the component
8
+ */
9
+ export default function ArrayFieldTemplate(props) {
10
+ const { uiSchema, idSchema, canAdd, className, disabled, items, onAddClick, readonly, schema, title, registry, required, ...rest } = props;
11
+ const uiOptions = getUiOptions(uiSchema);
12
+ const ArrayFieldDescriptionTemplate = getTemplate('ArrayFieldDescriptionTemplate', registry, uiOptions);
13
+ const ArrayFieldItemTemplate = getTemplate('ArrayFieldItemTemplate', registry, uiOptions);
14
+ const ArrayFieldTitleTemplate = getTemplate('ArrayFieldTitleTemplate', registry, uiOptions);
15
+ return (_jsxs(_Fragment, { children: [_jsx(ArrayFieldTitleTemplate, { idSchema: idSchema, title: uiOptions.title || title, schema: schema, uiSchema: uiSchema, required: required, registry: registry }), _jsxs(Fieldset, { ...rest, className: `${className}${isFixedItems(schema) ? '' : ' sortable-form-fields'}`, children: [_jsx(ArrayFieldDescriptionTemplate, { idSchema: idSchema, description: uiOptions.description || schema.description, schema: schema, uiSchema: uiSchema, registry: registry }), _jsxs("div", { children: [_jsx("div", { children: items &&
16
+ items.map(({ key, uiSchema: itemUiSchema = {}, ...props }) => {
17
+ const mergedUiSchema = {
18
+ ...itemUiSchema,
19
+ [UI_OPTIONS_KEY]: {
20
+ ...itemUiSchema[UI_OPTIONS_KEY],
21
+ },
22
+ };
23
+ return _jsx(ArrayFieldItemTemplate, { ...props, uiSchema: mergedUiSchema }, key);
24
+ }) }), canAdd && (_jsx("div", { style: {
25
+ marginTop: '1rem',
26
+ position: 'relative',
27
+ textAlign: 'right',
28
+ }, children: _jsx(AddButton, { id: buttonId(idSchema, 'add'), className: 'rjsf-array-item-add', onClick: onAddClick, disabled: disabled || readonly, uiSchema: uiSchema, registry: registry }) }))] }, `array-item-list-${idSchema.$id}`)] })] }));
29
+ }
30
+ //# sourceMappingURL=ArrayFieldTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrayFieldTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,WAAW,EACX,YAAY,EACZ,YAAY,EAMZ,cAAc,EACd,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,SAAS,MAAM,cAAc,CAAC;AAErC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAAuC;IACvC,MAAM,EACJ,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,SAAS,EACT,QAAQ,EACR,KAAK,EACL,UAAU,EACV,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,GAAG,IAAI,EACR,GAAG,KAAK,CAAC;IAEV,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,6BAA6B,GAAG,WAAW,CAC/C,+BAA+B,EAC/B,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,sBAAsB,GAAG,WAAW,CACxC,wBAAwB,EACxB,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,uBAAuB,GAAG,WAAW,CACzC,yBAAyB,EACzB,QAAQ,EACR,SAAS,CACV,CAAC;IAEF,OAAO,CACL,8BACE,KAAC,uBAAuB,IACtB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,SAAS,CAAC,KAAK,IAAI,KAAK,EAC/B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,EACF,MAAC,QAAQ,OAAK,IAAI,EAAE,SAAS,EAAE,GAAG,SAAS,GAAG,YAAY,CAAI,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,uBAAuB,EAAE,aACpG,KAAC,6BAA6B,IAC5B,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,SAAS,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,EACxD,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,EACF,0BACE,wBACG,KAAK;oCACJ,KAAK,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,GAAG,EAAE,EAAE,GAAG,KAAK,EAAuC,EAAE,EAAE;wCAChG,MAAM,cAAc,GAAG;4CACrB,GAAG,YAAY;4CACf,CAAC,cAAc,CAAC,EAAE;gDAChB,GAAG,YAAY,CAAC,cAAc,CAAC;6CAChC;yCACF,CAAC;wCACF,OAAO,KAAC,sBAAsB,OAAe,KAAK,EAAE,QAAQ,EAAE,cAAc,IAAxC,GAAG,CAAyC,CAAC;oCACnF,CAAC,CAAC,GACA,EACL,MAAM,IAAI,CACT,cACE,KAAK,EAAE;oCACL,SAAS,EAAE,MAAM;oCACjB,QAAQ,EAAE,UAAU;oCACpB,SAAS,EAAE,OAAO;iCACnB,YAED,KAAC,SAAS,IACR,EAAE,EAAE,QAAQ,CAAI,QAAQ,EAAE,KAAK,CAAC,EAChC,SAAS,EAAC,qBAAqB,EAC/B,OAAO,EAAE,UAAU,EACnB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACE,CACP,KA9BO,mBAAmB,QAAQ,CAAC,GAAG,EAAE,CA+BrC,IACG,IACV,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ArrayFieldTemplate.js';
2
+ export * from './ArrayFieldTemplate.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './ArrayFieldTemplate.js';
2
+ export * from './ArrayFieldTemplate.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ArrayFieldTitleProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ArrayFieldTitleTemplate` component renders a header for the array.
3
+ *
4
+ * @param props - The `ArrayFieldTitleProps` for the component
5
+ */
6
+ export default function ArrayFieldTitleTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ title, uiSchema, required, idSchema }: ArrayFieldTitleProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,11 @@
1
+ import { jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getUiOptions, titleId, } from '@rjsf/utils';
3
+ /** The `ArrayFieldTitleTemplate` component renders a header for the array.
4
+ *
5
+ * @param props - The `ArrayFieldTitleProps` for the component
6
+ */
7
+ export default function ArrayFieldTitleTemplate({ title, uiSchema, required, idSchema }) {
8
+ const uiOptions = getUiOptions(uiSchema);
9
+ return (_jsxs("h5", { id: titleId(idSchema), style: { margin: 0, fontSize: '1.5rem', marginBottom: '0.2rem' }, children: [uiOptions.title || title, " ", required ? '*' : ''] }));
10
+ }
11
+ //# sourceMappingURL=ArrayFieldTitleTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArrayFieldTitleTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldTitleTemplate/ArrayFieldTitleTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAGL,YAAY,EAGZ,OAAO,GACR,MAAM,aAAa,CAAC;AAErB;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAI7C,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAiC;IACtE,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,OAAO,CACL,cAAI,EAAE,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,aACxF,SAAS,CAAC,KAAK,IAAI,KAAK,OAAG,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,IAC5C,CACN,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ArrayFieldTitleTemplate.js';
2
+ export * from './ArrayFieldTitleTemplate.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './ArrayFieldTitleTemplate.js';
2
+ export * from './ArrayFieldTitleTemplate.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ArrayFieldTitleTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
+ /** The `AutoCompleteWidget` is a widget for rendering a field with options.
3
+ * This is used instead of the base input template if the schema has examples.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function AutoCompleteWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,42 @@
1
+ import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
2
+ import { useState } from 'react';
3
+ import { ariaDescribedByIds, getInputProps, } from '@rjsf/utils';
4
+ import { AutoComplete } from 'primereact/autocomplete';
5
+ /** The `AutoCompleteWidget` is a widget for rendering a field with options.
6
+ * This is used instead of the base input template if the schema has examples.
7
+ *
8
+ * @param props - The `WidgetProps` for this component
9
+ */
10
+ export default function AutoCompleteWidget(props) {
11
+ const { id, placeholder, value, required, readonly, disabled, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, type, rawErrors = [], } = props;
12
+ const inputProps = getInputProps(schema, type, options);
13
+ const primeProps = (options.prime || {});
14
+ const _onChange = ({ target: { value } }) => onChange(value === '' ? options.emptyValue : value);
15
+ const _onBlur = () => onBlur && onBlur(id, value);
16
+ const _onFocus = () => onFocus && onFocus(id, value);
17
+ const examples = schema.examples.concat(schema.default && !schema.examples.includes(schema.default.toString())
18
+ ? [schema.default.toString()]
19
+ : []);
20
+ const [items, setItems] = useState([]);
21
+ const search = (event) => {
22
+ setItems(examples.filter((example) => example.toString().toLowerCase().includes(event.query.toLowerCase())));
23
+ };
24
+ return (_jsx(AutoComplete, { id: id, name: id, placeholder: placeholder, ...primeProps, ...inputProps, loadingIcon: _jsx(_Fragment, {}), required: required, autoFocus: autofocus, disabled: disabled || readonly, suggestions: items, completeMethod: search, value: value || value === 0 ? value : '', dropdown: true, invalid: rawErrors.length > 0, onChange: onChangeOverride || _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples),
25
+ /* Make autocomplete look like a dropdown, which looks much nicer */
26
+ pt: {
27
+ root: {
28
+ className: 'p-dropdown',
29
+ },
30
+ input: {
31
+ root: {
32
+ style: { border: 'none' },
33
+ },
34
+ },
35
+ dropdownButton: {
36
+ root: {
37
+ className: 'p-button-text p-button-secondary',
38
+ },
39
+ },
40
+ } }));
41
+ }
42
+ //# sourceMappingURL=AutoCompleteWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutoCompleteWidget.js","sourceRoot":"","sources":["../../src/AutoCompleteWidget/AutoCompleteWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EACL,kBAAkB,EAElB,aAAa,GA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+ export * from './AutoCompleteWidget.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './AutoCompleteWidget.js';
2
+ export * from './AutoCompleteWidget.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/AutoCompleteWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `BaseInputTemplate` is the template the fallback if no widget is specified.
3
+ */
4
+ export default function BaseInputTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BaseInputTemplateProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, examplesId, getInputProps, } from '@rjsf/utils';
3
+ import { InputText } from 'primereact/inputtext';
4
+ /** The `BaseInputTemplate` is the template the fallback if no widget is specified.
5
+ */
6
+ export default function BaseInputTemplate(props) {
7
+ const { id, placeholder, value, required, readonly, disabled, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, type, registry, rawErrors = [], } = props;
8
+ const { AutoCompleteWidget } = registry.widgets;
9
+ if (Array.isArray(schema.examples)) {
10
+ return _jsx(AutoCompleteWidget, { ...props });
11
+ }
12
+ const inputProps = getInputProps(schema, type, options);
13
+ const primeProps = (options.prime || {});
14
+ const _onChange = ({ target: { value } }) => onChange(value === '' ? options.emptyValue : value);
15
+ const _onBlur = () => onBlur && onBlur(id, value);
16
+ const _onFocus = () => onFocus && onFocus(id, value);
17
+ return (_jsx(InputText, { id: id, name: id, placeholder: placeholder, ...primeProps, ...inputProps, required: required, autoFocus: autofocus, disabled: disabled || readonly, list: schema.examples ? examplesId(id) : undefined, value: value || value === 0 ? value : '', invalid: rawErrors.length > 0, onChange: onChangeOverride || _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }));
18
+ }
19
+ //# sourceMappingURL=BaseInputTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAElB,UAAU,EAEV,aAAa,GAGd,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD;GACG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAAsC;IACtC,MAAM,EACJ,EAAE,EACF,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,EACJ,QAAQ,EACR,SAAS,GAAG,EAAE,GACf,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,kBAAkB,EAAE,GAAG,QAAQ,CAAC,OAAO,CAAC;IAEhD,IAAI,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QACnC,OAAO,KAAC,kBAAkB,OAAK,KAAK,GAAI,CAAC;IAC3C,CAAC;IAED,MAAM,UAAU,GAAG,aAAa,CAAU,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACjE,MAAM,UAAU,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAW,CAAC;IACnD,MAAM,SAAS,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAiC,EAAE,EAAE,CACzE,QAAQ,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,MAAM,IAAI,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAErD,OAAO,CACL,KAAC,SAAS,IACR,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,EAAE,EACR,WAAW,EAAE,WAAW,KACpB,UAAU,KACV,UAAU,EACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAI,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EACrD,KAAK,EAAE,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EACxC,OAAO,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAC7B,QAAQ,EAAE,gBAAgB,IAAI,SAAS,EACvC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,sBACC,kBAAkB,CAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAC9D,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './BaseInputTemplate.js';
2
+ export * from './BaseInputTemplate.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './BaseInputTemplate.js';
2
+ export * from './BaseInputTemplate.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,cAAc,qBAAqB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
+ /** The `CheckBoxWidget` is a widget for rendering boolean properties.
3
+ * It is typically used to represent a boolean.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function CheckboxWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,23 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue, } from '@rjsf/utils';
3
+ import { Checkbox } from 'primereact/checkbox';
4
+ import { Label } from '../util.js';
5
+ /** The `CheckBoxWidget` is a widget for rendering boolean properties.
6
+ * It is typically used to represent a boolean.
7
+ *
8
+ * @param props - The `WidgetProps` for this component
9
+ */
10
+ export default function CheckboxWidget(props) {
11
+ var _a;
12
+ const { id, value, disabled, readonly, label = '', hideLabel, autofocus, onChange, onBlur, options, onFocus, schema, uiSchema, registry, } = props;
13
+ const DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, options);
14
+ const required = schemaRequiresTrueValue(schema);
15
+ const _onChange = (e) => onChange && onChange(e.checked);
16
+ const _onBlur = () => onBlur && onBlur(id, value);
17
+ const _onFocus = () => onFocus && onFocus(id, value);
18
+ const checked = value === 'true' || value === true;
19
+ const description = (_a = options.description) !== null && _a !== void 0 ? _a : schema.description;
20
+ const primeProps = (options.prime || {});
21
+ return (_jsxs(_Fragment, { children: [!hideLabel && !!description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs("div", { style: { display: 'flex', flexDirection: 'row', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(Checkbox, { inputId: id, name: id, ...primeProps, disabled: disabled || readonly, autoFocus: autofocus, checked: typeof value === 'undefined' ? false : checked, onChange: _onChange, onBlur: _onBlur, onFocus: _onFocus, required: required, "aria-describedby": ariaDescribedByIds(id) }), labelValue(_jsx(Label, { id: id, text: label }), hideLabel, false)] })] }));
22
+ }
23
+ //# sourceMappingURL=CheckboxWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxWidget.js","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,UAAU,EACV,uBAAuB,GAKxB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,QAAQ,EAAuB,MAAM,qBAAqB,CAAC;AAEpE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,KAA2B;;IAC3B,MAAM,EACJ,EAAE,EACF,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,KAAK,GAAG,EAAE,EACV,SAAS,EACT,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,OAAO,EACP,MAAM,EACN,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,wBAAwB,GAAG,WAAW,CAC1C,0BAA0B,EAC1B,QAAQ,EACR,OAAO,CACR,CAAC;IAEF,MAAM,QAAQ,GAAG,uBAAuB,CAAI,MAAM,CAAC,CAAC;IACpD,MAAM,SAAS,GAAG,CAAC,CAAsB,EAAE,EAAE,CAAC,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC;IAC9E,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,MAAM,IAAI,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IACrD,MAAM,OAAO,GAAG,KAAK,KAAK,MAAM,IAAI,KAAK,KAAK,IAAI,CAAC;IACnD,MAAM,WAAW,GAAG,MAAA,OAAO,CAAC,WAAW,mCAAI,MAAM,CAAC,WAAW,CAAC;IAC9D,MAAM,UAAU,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAW,CAAC;IAEnD,OAAO,CACL,8BACG,CAAC,SAAS,IAAI,CAAC,CAAC,WAAW,IAAI,CAC9B,KAAC,wBAAwB,IACvB,EAAE,EAAE,aAAa,CAAI,EAAE,CAAC,EACxB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,CACH,EACD,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,aACxF,KAAC,QAAQ,IACP,OAAO,EAAE,EAAE,EACX,IAAI,EAAE,EAAE,KACJ,UAAU,EACd,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EACvD,QAAQ,EAAE,SAAS,EACnB,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,EACjB,QAAQ,EAAE,QAAQ,sBACA,kBAAkB,CAAI,EAAE,CAAC,GAC3C,EACD,UAAU,CAAC,KAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,GAAI,EAAE,SAAS,EAAE,KAAK,CAAC,IACzD,IACL,CACJ,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './CheckboxWidget.js';
2
+ export * from './CheckboxWidget.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './CheckboxWidget.js';
2
+ export * from './CheckboxWidget.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CheckboxWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
+ /** The `CheckboxesWidget` is a widget for rendering checkbox groups.
3
+ * It is typically used to represent an array of enums.
4
+ *
5
+ * @param props - The `WidgetProps` for this component
6
+ */
7
+ export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Checkbox } from 'primereact/checkbox';
3
+ import { ariaDescribedByIds, enumOptionsDeselectValue, enumOptionsIsSelected, enumOptionsSelectValue, optionId, descriptionId, getTemplate, } from '@rjsf/utils';
4
+ import { Label } from '../util.js';
5
+ /** The `CheckboxesWidget` is a widget for rendering checkbox groups.
6
+ * It is typically used to represent an array of enums.
7
+ *
8
+ * @param props - The `WidgetProps` for this component
9
+ */
10
+ export default function CheckboxesWidget(props) {
11
+ var _a;
12
+ const { id, disabled, options, value, autofocus, readonly, onChange, onBlur, onFocus, schema, uiSchema, registry, hideLabel, } = props;
13
+ const { enumOptions, enumDisabled } = options;
14
+ const primeProps = (options.prime || {});
15
+ const checkboxesValues = Array.isArray(value) ? value : [value];
16
+ const _onChange = (index) => (e) => {
17
+ if (e.checked) {
18
+ onChange(enumOptionsSelectValue(index, checkboxesValues, enumOptions));
19
+ }
20
+ else {
21
+ onChange(enumOptionsDeselectValue(index, checkboxesValues, enumOptions));
22
+ }
23
+ };
24
+ const DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, options);
25
+ const _onBlur = () => onBlur(id, value);
26
+ const _onFocus = () => onFocus(id, value);
27
+ const description = (_a = options.description) !== null && _a !== void 0 ? _a : schema.description;
28
+ return (_jsxs("div", { id: id, style: { display: 'flex', flexDirection: 'column', gap: '1rem', marginTop: '0.5rem', marginBottom: '0.5rem' }, children: [!hideLabel && !!description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), Array.isArray(enumOptions) &&
29
+ enumOptions.map((option, index) => {
30
+ const checked = enumOptionsIsSelected(option.value, checkboxesValues);
31
+ const itemDisabled = Array.isArray(enumDisabled) && enumDisabled.indexOf(option.value) !== -1;
32
+ return (_jsxs("div", { style: { display: 'flex', flexDirection: 'row', gap: '0.5rem', alignItems: 'center' }, children: [_jsx(Checkbox, { inputId: optionId(id, index), name: id, ...primeProps, value: option.value, checked: checked, disabled: disabled || itemDisabled || readonly, autoFocus: autofocus && index === 0, onChange: _onChange(index), onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id) }), _jsx(Label, { id: optionId(id, index), text: option.label })] }, index));
33
+ })] }));
34
+ }
35
+ //# sourceMappingURL=CheckboxesWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAuB,MAAM,qBAAqB,CAAC;AACpE,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,QAAQ,EAKR,aAAa,EACb,WAAW,GACZ,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,KAA2B;;IAC3B,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR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}
@@ -0,0 +1,2 @@
1
+ export { default } from './CheckboxesWidget.js';
2
+ export * from './CheckboxesWidget.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './CheckboxesWidget.js';
2
+ export * from './CheckboxesWidget.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from '@rjsf/utils';
2
+ /** The `ColorWidget` component renders a color picker.
3
+ *
4
+ * @param props - The `WidgetProps` for this component
5
+ */
6
+ export default function ColorWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ariaDescribedByIds, getInputProps, } from '@rjsf/utils';
3
+ import { ColorPicker } from 'primereact/colorpicker';
4
+ /** The `ColorWidget` component renders a color picker.
5
+ *
6
+ * @param props - The `WidgetProps` for this component
7
+ */
8
+ export default function ColorWidget(props) {
9
+ const { id, placeholder, value, required, readonly, disabled, onChange, onChangeOverride, onBlur, onFocus, autofocus, options, schema, type, } = props;
10
+ const inputProps = getInputProps(schema, type, options);
11
+ const { inline } = options;
12
+ const primeProps = (options.prime || {});
13
+ const _onChange = ({ target: { value } }) => onChange(value === '' ? options.emptyValue : value);
14
+ const _onBlur = () => onBlur && onBlur(id, value);
15
+ const _onFocus = () => onFocus && onFocus(id, value);
16
+ return (_jsx(ColorPicker, { id: id, name: id, placeholder: placeholder, ...primeProps, ...inputProps, required: required, inline: inline, autoFocus: autofocus, disabled: disabled || readonly, value: value || '', onChange: onChangeOverride || _onChange, onBlur: _onBlur, onFocus: _onFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }));
17
+ }
18
+ //# sourceMappingURL=ColorWidget.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ColorWidget.js","sourceRoot":"","sources":["../../src/ColorWidget/ColorWidget.tsx"],"names":[],"mappings":";AACA,OAAO,EACL,kBAAkB,EAElB,aAAa,GAId,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,WAAW,CACjC,KAA2B;IAE3B,MAAM,EACJ,EAAE,EACF,WAAW,EACX,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,SAAS,EACT,OAAO,EACP,MAAM,EACN,IAAI,GACL,GAAG,KAAK,CAAC;IACV,MAAM,UAAU,GAAG,aAAa,CAAU,MAAM,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IACjE,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IAC3B,MAAM,UAAU,GAAG,CAAC,OAAO,CAAC,KAAK,IAAI,EAAE,CAAW,CAAC;IAEnD,MAAM,SAAS,GAAG,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,EAAiC,EAAE,EAAE,CACzE,QAAQ,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,OAAO,GAAG,GAAG,EAAE,CAAC,MAAM,IAAI,MAAM,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAClD,MAAM,QAAQ,GAAG,GAAG,EAAE,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,EAAE,KAAK,CAAC,CAAC;IAErD,OAAO,CACL,KAAC,WAAW,IACV,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,EAAE,EACR,WAAW,EAAE,WAAW,KACpB,UAAU,KACV,UAAU,EACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,KAAK,EAAE,KAAK,IAAI,EAAE,EAClB,QAAQ,EAAE,gBAAgB,IAAI,SAAS,EACvC,MAAM,EAAE,OAAO,EACf,OAAO,EAAE,QAAQ,sBACC,kBAAkB,CAAI,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAC9D,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ColorWidget.js';
2
+ export * from './ColorWidget.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './ColorWidget.js';
2
+ export * from './ColorWidget.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ColorWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACxC,cAAc,eAAe,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `DescriptionField` is the template to use to render the description of a field
3
+ *
4
+ * @param props - The `DescriptionFieldProps` for this component
5
+ */
6
+ export default function DescriptionField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: DescriptionFieldProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { RichDescription } from '@rjsf/core';
3
+ /** The `DescriptionField` is the template to use to render the description of a field
4
+ *
5
+ * @param props - The `DescriptionFieldProps` for this component
6
+ */
7
+ export default function DescriptionField(props) {
8
+ const { id, description, registry, uiSchema } = props;
9
+ if (!description) {
10
+ return null;
11
+ }
12
+ return (_jsx("span", { id: id, children: _jsx(RichDescription, { description: description, registry: registry, uiSchema: uiSchema }) }));
13
+ }
14
+ //# sourceMappingURL=DescriptionField.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DescriptionField.js","sourceRoot":"","sources":["../../src/DescriptionField/DescriptionField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,KAAqC;IACrC,MAAM,EAAE,EAAE,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACtD,IAAI,CAAC,WAAW,EAAE,CAAC;QACjB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,OAAO,CACL,eAAM,EAAE,EAAE,EAAE,YACV,KAAC,eAAe,IAAC,WAAW,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAChF,CACR,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './DescriptionField.js';
2
+ export * from './DescriptionField.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './DescriptionField.js';
2
+ export * from './DescriptionField.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/DescriptionField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `ErrorList` component is the template that renders all the errors associated with the fields in the `Form`
3
+ *
4
+ * @param props - The `ErrorListProps` for this component
5
+ */
6
+ export default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, registry, }: ErrorListProps<T, S, F>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,21 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Message } from 'primereact/message';
3
+ import { TimesCircleIcon } from 'primereact/icons/timescircle';
4
+ import { TranslatableString } from '@rjsf/utils';
5
+ /** The `ErrorList` component is the template that renders all the errors associated with the fields in the `Form`
6
+ *
7
+ * @param props - The `ErrorListProps` for this component
8
+ */
9
+ export default function ErrorList({ errors, registry, }) {
10
+ const { translateString } = registry;
11
+ const content = (_jsxs("div", { style: { display: 'flex', flexDirection: 'column' }, children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: '0.5rem' }, children: [_jsx(TimesCircleIcon, { style: { width: '1.5rem', height: '1.5rem' } }), _jsx("div", { className: 'p-message-summary', children: translateString(TranslatableString.ErrorsLabel) })] }), _jsx("ul", { className: 'p-message-list', children: errors.map((error, index) => (_jsx("li", { children: error.stack }, `error-${index}`))) })] }));
12
+ return (_jsx(Message, { className: 'p-message', style: {
13
+ borderStyle: 'solid',
14
+ borderColor: '#ff5757',
15
+ borderWidth: '0 0 0 6px',
16
+ width: '100%',
17
+ justifyContent: 'start',
18
+ marginBottom: '1rem',
19
+ }, severity: 'error', content: content }));
20
+ }
21
+ //# sourceMappingURL=ErrorList.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorList.js","sourceRoot":"","sources":["../../src/ErrorList/ErrorList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAC/D,OAAO,EAAiE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEhH;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoF,EACnH,MAAM,EACN,QAAQ,GACgB;IACxB,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IAErC,MAAM,OAAO,GAAG,CACd,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,aACtD,eAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,QAAQ,EAAE,aACxF,KAAC,eAAe,IAAC,KAAK,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAI,EACjE,cAAK,SAAS,EAAC,mBAAmB,YAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,GAAO,IACtF,EACN,aAAI,SAAS,EAAC,gBAAgB,YAC3B,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5B,uBAA4B,KAAK,CAAC,KAAK,IAA9B,SAAS,KAAK,EAAE,CAAoB,CAC9C,CAAC,GACC,IACD,CACP,CAAC;IAEF,OAAO,CACL,KAAC,OAAO,IACN,SAAS,EAAC,WAAW,EACrB,KAAK,EAAE;YACL,WAAW,EAAE,OAAO;YACpB,WAAW,EAAE,SAAS;YACtB,WAAW,EAAE,WAAW;YACxB,KAAK,EAAE,MAAM;YACb,cAAc,EAAE,OAAO;YACvB,YAAY,EAAE,MAAM;SACrB,EACD,QAAQ,EAAC,OAAO,EAChB,OAAO,EAAE,OAAO,GAChB,CACH,CAAC;AACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { default } from './ErrorList.js';
2
+ export * from './ErrorList.js';
@@ -0,0 +1,3 @@
1
+ export { default } from './ErrorList.js';
2
+ export * from './ErrorList.js';
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ErrorList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,cAAc,aAAa,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
2
+ /** The `FieldErrorTemplate` component renders the errors local to the particular field
3
+ *
4
+ * @param props - The `FieldErrorProps` for the errors being rendered
5
+ */
6
+ export default function FieldErrorTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, idSchema }: FieldErrorProps<T, S, F>): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { errorId } from '@rjsf/utils';
3
+ import { Message } from 'primereact/message';
4
+ /** The `FieldErrorTemplate` component renders the errors local to the particular field
5
+ *
6
+ * @param props - The `FieldErrorProps` for the errors being rendered
7
+ */
8
+ export default function FieldErrorTemplate({ errors, idSchema }) {
9
+ if (errors && errors.length > 0) {
10
+ const id = errorId(idSchema);
11
+ const content = errors.map((error, i) => {
12
+ return _jsx("div", { children: error }, i);
13
+ });
14
+ return (_jsx(Message, { id: id, severity: 'error', style: { justifyContent: 'left' }, text: content, pt: { text: { style: { fontSize: 'smaller' } } } }));
15
+ }
16
+ return null;
17
+ }
18
+ //# sourceMappingURL=FieldErrorTemplate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,OAAO,EAAkE,MAAM,aAAa,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,EAAE,MAAM,EAAE,QAAQ,EAA4B;IAC9C,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,MAAM,EAAE,GAAG,OAAO,CAAI,QAAQ,CAAC,CAAC;QAChC,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAS,EAAE,EAAE;YAC9C,OAAO,wBAAc,KAAK,IAAT,CAAC,CAAe,CAAC;QACpC,CAAC,CAAC,CAAC;QAEH,OAAO,CACL,KAAC,OAAO,IACN,EAAE,EAAE,EAAE,EACN,QAAQ,EAAC,OAAO,EAChB,KAAK,EAAE,EAAE,cAAc,EAAE,MAAM,EAAE,EACjC,IAAI,EAAE,OAAO,EACb,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,EAAE,GAChD,CACH,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}