@rjsf/semantic-ui 6.8.0 → 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.
- package/dist/index.cjs +15 -20
- package/dist/index.cjs.map +3 -3
- package/dist/semantic-ui.esm.js +14 -9
- package/dist/semantic-ui.esm.js.map +2 -2
- package/dist/semantic-ui.umd.js +18 -11
- package/lib/AddButton/AddButton.d.ts +2 -1
- package/lib/AddButton/AddButton.d.ts.map +1 -0
- package/lib/AddButton/index.d.ts +3 -2
- package/lib/AddButton/index.d.ts.map +1 -0
- package/lib/AddButton/index.js +2 -2
- package/lib/AddButton/index.js.map +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts +1 -0
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.d.ts.map +1 -0
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js +1 -1
- package/lib/ArrayFieldItemTemplate/ArrayFieldItemTemplate.js.map +1 -1
- package/lib/ArrayFieldItemTemplate/index.d.ts +3 -2
- package/lib/ArrayFieldItemTemplate/index.d.ts.map +1 -0
- package/lib/ArrayFieldItemTemplate/index.js +2 -2
- package/lib/ArrayFieldItemTemplate/index.js.map +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +1 -0
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.d.ts.map +1 -0
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js +1 -1
- package/lib/ArrayFieldTemplate/ArrayFieldTemplate.js.map +1 -1
- package/lib/ArrayFieldTemplate/index.d.ts +3 -2
- package/lib/ArrayFieldTemplate/index.d.ts.map +1 -0
- package/lib/ArrayFieldTemplate/index.js +2 -2
- package/lib/ArrayFieldTemplate/index.js.map +1 -1
- package/lib/BaseInputTemplate/BaseInputTemplate.d.ts +1 -0
- package/lib/BaseInputTemplate/BaseInputTemplate.d.ts.map +1 -0
- package/lib/BaseInputTemplate/BaseInputTemplate.js +4 -5
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/BaseInputTemplate/index.d.ts +3 -2
- package/lib/BaseInputTemplate/index.d.ts.map +1 -0
- package/lib/BaseInputTemplate/index.js +2 -2
- package/lib/BaseInputTemplate/index.js.map +1 -1
- package/lib/CheckboxWidget/CheckboxWidget.d.ts +1 -0
- package/lib/CheckboxWidget/CheckboxWidget.d.ts.map +1 -0
- package/lib/CheckboxWidget/CheckboxWidget.js +8 -12
- package/lib/CheckboxWidget/CheckboxWidget.js.map +1 -1
- package/lib/CheckboxWidget/index.d.ts +3 -2
- package/lib/CheckboxWidget/index.d.ts.map +1 -0
- package/lib/CheckboxWidget/index.js +2 -2
- package/lib/CheckboxWidget/index.js.map +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts +1 -0
- package/lib/CheckboxesWidget/CheckboxesWidget.d.ts.map +1 -0
- package/lib/CheckboxesWidget/CheckboxesWidget.js +1 -1
- package/lib/CheckboxesWidget/CheckboxesWidget.js.map +1 -1
- package/lib/CheckboxesWidget/index.d.ts +3 -2
- package/lib/CheckboxesWidget/index.d.ts.map +1 -0
- package/lib/CheckboxesWidget/index.js +2 -2
- package/lib/CheckboxesWidget/index.js.map +1 -1
- package/lib/CyclicSchemaExpandTemplate/CyclicSchemaExpandTemplate.d.ts +1 -0
- package/lib/CyclicSchemaExpandTemplate/CyclicSchemaExpandTemplate.d.ts.map +1 -0
- package/lib/CyclicSchemaExpandTemplate/index.d.ts +3 -2
- package/lib/CyclicSchemaExpandTemplate/index.d.ts.map +1 -0
- package/lib/CyclicSchemaExpandTemplate/index.js +2 -2
- package/lib/CyclicSchemaExpandTemplate/index.js.map +1 -1
- package/lib/DescriptionField/DescriptionField.d.ts +1 -0
- package/lib/DescriptionField/DescriptionField.d.ts.map +1 -0
- package/lib/DescriptionField/index.d.ts +3 -2
- package/lib/DescriptionField/index.d.ts.map +1 -0
- package/lib/DescriptionField/index.js +2 -2
- package/lib/DescriptionField/index.js.map +1 -1
- package/lib/ErrorList/ErrorList.d.ts +1 -0
- package/lib/ErrorList/ErrorList.d.ts.map +1 -0
- package/lib/ErrorList/index.d.ts +3 -2
- package/lib/ErrorList/index.d.ts.map +1 -0
- package/lib/ErrorList/index.js +2 -2
- package/lib/ErrorList/index.js.map +1 -1
- package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts +1 -0
- package/lib/FieldErrorTemplate/FieldErrorTemplate.d.ts.map +1 -0
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js +2 -3
- package/lib/FieldErrorTemplate/FieldErrorTemplate.js.map +1 -1
- package/lib/FieldErrorTemplate/index.d.ts +3 -2
- package/lib/FieldErrorTemplate/index.d.ts.map +1 -0
- package/lib/FieldErrorTemplate/index.js +2 -2
- package/lib/FieldErrorTemplate/index.js.map +1 -1
- package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts +1 -0
- package/lib/FieldHelpTemplate/FieldHelpTemplate.d.ts.map +1 -0
- package/lib/FieldHelpTemplate/index.d.ts +3 -2
- package/lib/FieldHelpTemplate/index.d.ts.map +1 -0
- package/lib/FieldHelpTemplate/index.js +2 -2
- package/lib/FieldHelpTemplate/index.js.map +1 -1
- package/lib/FieldTemplate/FieldTemplate.d.ts +1 -0
- package/lib/FieldTemplate/FieldTemplate.d.ts.map +1 -0
- package/lib/FieldTemplate/FieldTemplate.js +1 -1
- package/lib/FieldTemplate/FieldTemplate.js.map +1 -1
- package/lib/FieldTemplate/index.d.ts +3 -2
- package/lib/FieldTemplate/index.d.ts.map +1 -0
- package/lib/FieldTemplate/index.js +2 -2
- package/lib/FieldTemplate/index.js.map +1 -1
- package/lib/GridTemplate/GridTemplate.d.ts +1 -0
- package/lib/GridTemplate/GridTemplate.d.ts.map +1 -0
- package/lib/GridTemplate/index.d.ts +3 -2
- package/lib/GridTemplate/index.d.ts.map +1 -0
- package/lib/GridTemplate/index.js +2 -2
- package/lib/GridTemplate/index.js.map +1 -1
- package/lib/IconButton/IconButton.d.ts +1 -0
- package/lib/IconButton/IconButton.d.ts.map +1 -0
- package/lib/IconButton/index.d.ts +3 -2
- package/lib/IconButton/index.d.ts.map +1 -0
- package/lib/IconButton/index.js +2 -2
- package/lib/IconButton/index.js.map +1 -1
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts +1 -0
- package/lib/MultiSchemaFieldTemplate/MultiSchemaFieldTemplate.d.ts.map +1 -0
- package/lib/MultiSchemaFieldTemplate/index.d.ts +3 -2
- package/lib/MultiSchemaFieldTemplate/index.d.ts.map +1 -0
- package/lib/MultiSchemaFieldTemplate/index.js +2 -2
- package/lib/MultiSchemaFieldTemplate/index.js.map +1 -1
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +1 -0
- package/lib/ObjectFieldTemplate/ObjectFieldTemplate.d.ts.map +1 -0
- package/lib/ObjectFieldTemplate/index.d.ts +3 -2
- package/lib/ObjectFieldTemplate/index.d.ts.map +1 -0
- package/lib/ObjectFieldTemplate/index.js +2 -2
- package/lib/ObjectFieldTemplate/index.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts +1 -0
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.d.ts.map +1 -0
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js +2 -2
- package/lib/OptionalDataControlsTemplate/OptionalDataControlsTemplate.js.map +1 -1
- package/lib/OptionalDataControlsTemplate/index.d.ts +3 -2
- package/lib/OptionalDataControlsTemplate/index.d.ts.map +1 -0
- package/lib/OptionalDataControlsTemplate/index.js +2 -2
- package/lib/OptionalDataControlsTemplate/index.js.map +1 -1
- package/lib/RadioWidget/RadioWidget.d.ts +1 -0
- package/lib/RadioWidget/RadioWidget.d.ts.map +1 -0
- package/lib/RadioWidget/RadioWidget.js +4 -1
- package/lib/RadioWidget/RadioWidget.js.map +1 -1
- package/lib/RadioWidget/index.d.ts +3 -2
- package/lib/RadioWidget/index.d.ts.map +1 -0
- package/lib/RadioWidget/index.js +2 -2
- package/lib/RadioWidget/index.js.map +1 -1
- package/lib/RangeWidget/RangeWidget.d.ts +1 -0
- package/lib/RangeWidget/RangeWidget.d.ts.map +1 -0
- package/lib/RangeWidget/RangeWidget.js +4 -4
- package/lib/RangeWidget/RangeWidget.js.map +1 -1
- package/lib/RangeWidget/index.d.ts +3 -2
- package/lib/RangeWidget/index.d.ts.map +1 -0
- package/lib/RangeWidget/index.js +2 -2
- package/lib/RangeWidget/index.js.map +1 -1
- package/lib/SelectWidget/SelectWidget.d.ts +1 -0
- package/lib/SelectWidget/SelectWidget.d.ts.map +1 -0
- package/lib/SelectWidget/SelectWidget.js +4 -5
- package/lib/SelectWidget/SelectWidget.js.map +1 -1
- package/lib/SelectWidget/index.d.ts +3 -2
- package/lib/SelectWidget/index.d.ts.map +1 -0
- package/lib/SelectWidget/index.js +2 -2
- package/lib/SelectWidget/index.js.map +1 -1
- package/lib/SemanticUIForm/SemanticUIForm.d.ts +1 -0
- package/lib/SemanticUIForm/SemanticUIForm.d.ts.map +1 -0
- package/lib/SemanticUIForm/SemanticUIForm.js +1 -1
- package/lib/SemanticUIForm/SemanticUIForm.js.map +1 -1
- package/lib/SemanticUIForm/index.d.ts +3 -2
- package/lib/SemanticUIForm/index.d.ts.map +1 -0
- package/lib/SemanticUIForm/index.js +2 -2
- package/lib/SemanticUIForm/index.js.map +1 -1
- package/lib/SubmitButton/SubmitButton.d.ts +1 -0
- package/lib/SubmitButton/SubmitButton.d.ts.map +1 -0
- package/lib/SubmitButton/index.d.ts +3 -2
- package/lib/SubmitButton/index.d.ts.map +1 -0
- package/lib/SubmitButton/index.js +2 -2
- package/lib/SubmitButton/index.js.map +1 -1
- package/lib/Templates/Templates.d.ts +1 -0
- package/lib/Templates/Templates.d.ts.map +1 -0
- package/lib/Templates/Templates.js +18 -18
- package/lib/Templates/Templates.js.map +1 -1
- package/lib/Templates/index.d.ts +3 -2
- package/lib/Templates/index.d.ts.map +1 -0
- package/lib/Templates/index.js +2 -2
- package/lib/Templates/index.js.map +1 -1
- package/lib/TextareaWidget/TextareaWidget.d.ts +1 -0
- package/lib/TextareaWidget/TextareaWidget.d.ts.map +1 -0
- package/lib/TextareaWidget/TextareaWidget.js +4 -4
- package/lib/TextareaWidget/TextareaWidget.js.map +1 -1
- package/lib/TextareaWidget/index.d.ts +3 -2
- package/lib/TextareaWidget/index.d.ts.map +1 -0
- package/lib/TextareaWidget/index.js +2 -2
- package/lib/TextareaWidget/index.js.map +1 -1
- package/lib/Theme/Theme.d.ts +1 -0
- package/lib/Theme/Theme.d.ts.map +1 -0
- package/lib/Theme/Theme.js +2 -2
- package/lib/Theme/Theme.js.map +1 -1
- package/lib/Theme/index.d.ts +3 -2
- package/lib/Theme/index.d.ts.map +1 -0
- package/lib/Theme/index.js +2 -2
- package/lib/Theme/index.js.map +1 -1
- package/lib/TitleField/TitleField.d.ts +1 -0
- package/lib/TitleField/TitleField.d.ts.map +1 -0
- package/lib/TitleField/TitleField.js +1 -1
- package/lib/TitleField/TitleField.js.map +1 -1
- package/lib/TitleField/index.d.ts +3 -2
- package/lib/TitleField/index.d.ts.map +1 -0
- package/lib/TitleField/index.js +2 -2
- package/lib/TitleField/index.js.map +1 -1
- package/lib/Widgets/Widgets.d.ts +1 -0
- package/lib/Widgets/Widgets.d.ts.map +1 -0
- package/lib/Widgets/Widgets.js +6 -6
- package/lib/Widgets/Widgets.js.map +1 -1
- package/lib/Widgets/index.d.ts +3 -2
- package/lib/Widgets/index.d.ts.map +1 -0
- package/lib/Widgets/index.js +2 -2
- package/lib/Widgets/index.js.map +1 -1
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts +1 -0
- package/lib/WrapIfAdditionalTemplate/WrapIfAdditionalTemplate.d.ts.map +1 -0
- package/lib/WrapIfAdditionalTemplate/index.d.ts +3 -2
- package/lib/WrapIfAdditionalTemplate/index.d.ts.map +1 -0
- package/lib/WrapIfAdditionalTemplate/index.js +2 -2
- package/lib/WrapIfAdditionalTemplate/index.js.map +1 -1
- package/lib/index.d.ts +6 -5
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +5 -5
- package/lib/index.js.map +1 -1
- package/lib/util.d.ts +1 -0
- package/lib/util.d.ts.map +1 -0
- package/lib/util.js +3 -4
- package/lib/util.js.map +1 -1
- package/package.json +9 -11
- package/src/AddButton/AddButton.tsx +1 -1
- package/src/AddButton/index.ts +2 -2
- package/src/ArrayFieldItemTemplate/ArrayFieldItemTemplate.tsx +1 -1
- package/src/ArrayFieldItemTemplate/index.ts +2 -2
- package/src/ArrayFieldTemplate/ArrayFieldTemplate.tsx +1 -1
- package/src/ArrayFieldTemplate/index.ts +2 -2
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +2 -2
- package/src/BaseInputTemplate/index.ts +2 -2
- package/src/CheckboxWidget/CheckboxWidget.tsx +4 -6
- package/src/CheckboxWidget/index.ts +2 -2
- package/src/CheckboxesWidget/CheckboxesWidget.tsx +1 -1
- package/src/CheckboxesWidget/index.ts +2 -2
- package/src/CyclicSchemaExpandTemplate/index.ts +2 -2
- package/src/DescriptionField/index.ts +2 -2
- package/src/ErrorList/index.ts +2 -2
- package/src/FieldErrorTemplate/FieldErrorTemplate.tsx +4 -4
- package/src/FieldErrorTemplate/index.ts +2 -2
- package/src/FieldHelpTemplate/index.ts +2 -2
- package/src/FieldTemplate/FieldTemplate.tsx +1 -1
- package/src/FieldTemplate/index.ts +2 -2
- package/src/GridTemplate/index.ts +2 -2
- package/src/IconButton/index.ts +2 -2
- package/src/MultiSchemaFieldTemplate/index.ts +2 -2
- package/src/ObjectFieldTemplate/index.ts +2 -2
- package/src/OptionalDataControlsTemplate/OptionalDataControlsTemplate.tsx +2 -2
- package/src/OptionalDataControlsTemplate/index.ts +2 -2
- package/src/RadioWidget/RadioWidget.tsx +4 -1
- package/src/RadioWidget/index.ts +2 -2
- package/src/RangeWidget/RangeWidget.tsx +1 -1
- package/src/RangeWidget/index.ts +2 -2
- package/src/SelectWidget/SelectWidget.tsx +2 -3
- package/src/SelectWidget/index.ts +2 -2
- package/src/SemanticUIForm/SemanticUIForm.ts +1 -1
- package/src/SemanticUIForm/index.ts +2 -2
- package/src/SubmitButton/index.ts +2 -2
- package/src/Templates/Templates.ts +18 -18
- package/src/Templates/index.ts +2 -2
- package/src/TextareaWidget/TextareaWidget.tsx +1 -1
- package/src/TextareaWidget/index.ts +2 -2
- package/src/Theme/Theme.ts +2 -2
- package/src/Theme/index.ts +2 -2
- package/src/TitleField/TitleField.tsx +1 -1
- package/src/TitleField/index.ts +2 -2
- package/src/Widgets/Widgets.tsx +6 -6
- package/src/Widgets/index.ts +2 -2
- package/src/WrapIfAdditionalTemplate/index.ts +2 -2
- package/src/index.ts +5 -5
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/src/tsconfig.json +0 -25
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayFieldTemplate.d.ts","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK1G;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BA8ExC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getTemplate, getUiOptions, isFixedItems, buttonId } from '@rjsf/utils';
|
|
3
|
-
import { cleanClassNames } from
|
|
3
|
+
import { cleanClassNames } from "../util.js";
|
|
4
4
|
/** The `ArrayFieldTemplate` component is the template used to render all items in an array.
|
|
5
5
|
*
|
|
6
6
|
* @param props - The `ArrayFieldTemplateProps` props for the component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArrayFieldTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ArrayFieldTemplate.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/ArrayFieldTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEhF,OAAO,EAAE,eAAe,EAAE,MAAM,YAAa,CAAC;AAE9C;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,KAAuC;IACvC,MAAM,EACJ,QAAQ,EACR,WAAW,EACX,MAAM,EACN,SAAS;IACT,4EAA4E;IAC5E,QAAQ,EACR,KAAK,EACL,mBAAmB,EACnB,UAAU;IACV,yEAAyE;IACzE,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,KAAK,EACL,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,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,uBAAuB,GAAG,WAAW,CACzC,yBAAyB,EACzB,QAAQ,EACR,SAAS,CACV,CAAC;IACF,MAAM,8BAA8B,GAAG,CAAC,QAAQ,IAAI,CAAC,QAAQ,CAAC;IAC9D,sDAAsD;IACtD,MAAM,EACJ,eAAe,EAAE,EAAE,SAAS,EAAE,GAC/B,GAAG,QAAQ,CAAC,SAAS,CAAC;IACvB,OAAO,CACL,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
export * from './ArrayFieldTemplate.
|
|
1
|
+
export { default } from './ArrayFieldTemplate.tsx';
|
|
2
|
+
export * from './ArrayFieldTemplate.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./ArrayFieldTemplate.js";
|
|
2
|
+
export * from "./ArrayFieldTemplate.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ArrayFieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAA0B,CAAC;AACnD,cAAc,yBAA0B,CAAC"}
|
|
@@ -6,3 +6,4 @@ import type { BaseInputTemplateProps, FormContextType, RJSFSchema, StrictRJSFSch
|
|
|
6
6
|
* @param props - The `WidgetProps` for this template
|
|
7
7
|
*/
|
|
8
8
|
export default function BaseInputTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: BaseInputTemplateProps<T, S, F>): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=BaseInputTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseInputTemplate.d.ts","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAMzG;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAsEvC"}
|
|
@@ -3,7 +3,7 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import { SchemaExamples } from '@rjsf/core';
|
|
4
4
|
import { ariaDescribedByIds, examplesId, getInputProps, labelValue } from '@rjsf/utils';
|
|
5
5
|
import { Form } from 'semantic-ui-react';
|
|
6
|
-
import { getSemanticProps } from
|
|
6
|
+
import { getSemanticProps } from "../util.js";
|
|
7
7
|
/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
|
|
8
8
|
* It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.
|
|
9
9
|
* It can be customized/overridden for other themes or individual implementations as needed.
|
|
@@ -20,13 +20,12 @@ export default function BaseInputTemplate(props) {
|
|
|
20
20
|
options,
|
|
21
21
|
});
|
|
22
22
|
const handleChange = ({ target: { value: newValue } }) => onChange(newValue === '' ? options.emptyValue : newValue);
|
|
23
|
-
const handleBlur = () => onBlur
|
|
24
|
-
const handleFocus = () => onFocus
|
|
23
|
+
const handleBlur = () => onBlur?.(id, value);
|
|
24
|
+
const handleFocus = () => onFocus?.(id, value);
|
|
25
25
|
const handleClear = useCallback((e) => {
|
|
26
|
-
var _a;
|
|
27
26
|
e.preventDefault();
|
|
28
27
|
e.stopPropagation();
|
|
29
|
-
onChange(
|
|
28
|
+
onChange(options.emptyValue);
|
|
30
29
|
}, [onChange, options.emptyValue]);
|
|
31
30
|
return (_jsxs(_Fragment, { children: [_jsx(Form.Input, { id: id, name: htmlName || id, placeholder: placeholder, ...inputProps, label: labelValue(label || undefined, hideLabel, false), required: required, autoFocus: autofocus, disabled: disabled || readonly, list: schema.examples ? examplesId(id) : undefined, ...semanticProps, value: value || value === 0 ? value : '', error: rawErrors.length > 0, onChange: onChangeOverride || handleChange, onBlur: handleBlur, onFocus: handleFocus, "aria-describedby": ariaDescribedByIds(id, !!schema.examples) }, id), options.allowClearTextInputs && !readonly && !disabled && value && (_jsx(ClearButton, { registry: registry, onClick: handleClear })), _jsx(SchemaExamples, { id: id, schema: schema })] }));
|
|
32
31
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/BaseInputTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAa,CAAC;AAE/C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAAsC;IACtC,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,WAAW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,EAAE,QAAQ,IAAI,EAAE,EACpB,WAAW,EAAE,WAAW,KACpB,UAAU,EACd,KAAK,EAAE,UAAU,CAAC,KAAK,IAAI,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,EACvD,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,IAAI,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,KAC9C,aAAa,EACjB,KAAK,EAAE,KAAK,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EACxC,KAAK,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAC3B,QAAQ,EAAE,gBAAgB,IAAI,YAAY,EAC1C,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,WAAW,sBACF,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,IAhBtD,EAAE,CAiBP,EACD,OAAO,CAAC,oBAAoB,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,KAAK,IAAI,CAClE,KAAC,WAAW,IAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,GAAI,CAC1D,EACD,KAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAI,IACzC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './BaseInputTemplate.
|
|
2
|
-
export * from './BaseInputTemplate.
|
|
1
|
+
export { default } from './BaseInputTemplate.tsx';
|
|
2
|
+
export * from './BaseInputTemplate.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/BaseInputTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./BaseInputTemplate.js";
|
|
2
|
+
export * from "./BaseInputTemplate.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/BaseInputTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAyB,CAAC;AAClD,cAAc,wBAAyB,CAAC"}
|
|
@@ -5,3 +5,4 @@ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from
|
|
|
5
5
|
* @param props - The `WidgetProps` for this component
|
|
6
6
|
*/
|
|
7
7
|
export default function CheckboxWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=CheckboxWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxWidget.d.ts","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAO9F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CACpC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAoE5B"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ariaDescribedByIds, descriptionId, getTemplate, labelValue, schemaRequiresTrueValue } from '@rjsf/utils';
|
|
3
3
|
import { Form } from 'semantic-ui-react';
|
|
4
|
-
import { getSemanticProps } from
|
|
4
|
+
import { getSemanticProps } from "../util.js";
|
|
5
5
|
/** The `CheckBoxWidget` is a widget for rendering boolean properties.
|
|
6
6
|
* It is typically used to represent a boolean.
|
|
7
7
|
*
|
|
8
8
|
* @param props - The `WidgetProps` for this component
|
|
9
9
|
*/
|
|
10
10
|
export default function CheckboxWidget(props) {
|
|
11
|
-
|
|
12
|
-
const { id, htmlName, value, disabled, readonly, label, hideLabel, autofocus, onChange, onBlur, options, onFocus, schema, uiSchema, rawErrors = [], registry, } = props;
|
|
11
|
+
const { id, htmlName, value, disabled, readonly, label, hideLabel, autofocus, onChange, onBlur, options, onFocus, schema, uiSchema, rawErrors = [], registry, required, } = props;
|
|
13
12
|
const semanticProps = getSemanticProps({
|
|
14
13
|
options,
|
|
15
14
|
formContext: registry.formContext,
|
|
@@ -19,15 +18,12 @@ export default function CheckboxWidget(props) {
|
|
|
19
18
|
},
|
|
20
19
|
});
|
|
21
20
|
const DescriptionFieldTemplate = getTemplate('DescriptionFieldTemplate', registry, options);
|
|
22
|
-
// Because an unchecked checkbox will cause html5 validation to fail, only add
|
|
23
|
-
// the "required" attribute if the field value must be "true", due to the
|
|
24
|
-
// "const" or "enum" keywords
|
|
25
|
-
const required = schemaRequiresTrueValue(schema);
|
|
26
21
|
const checked = value === 'true' || value === true;
|
|
27
|
-
const handleChange = (_, data) => onChange
|
|
28
|
-
const handleBlur = () => onBlur
|
|
29
|
-
const handleFocus = () => onFocus
|
|
30
|
-
const description =
|
|
31
|
-
|
|
22
|
+
const handleChange = (_, data) => onChange?.(data.checked);
|
|
23
|
+
const handleBlur = () => onBlur?.(id, value);
|
|
24
|
+
const handleFocus = () => onFocus?.(id, value);
|
|
25
|
+
const description = options.description ?? schema.description;
|
|
26
|
+
const trueValueRequired = schemaRequiresTrueValue(schema) && required;
|
|
27
|
+
return (_jsxs(_Fragment, { children: [!hideLabel && description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(id), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsx(Form.Checkbox, { id: id, name: htmlName || id, disabled: disabled || readonly, autoFocus: autofocus, ...semanticProps, checked: typeof value === 'undefined' ? false : checked, error: rawErrors.length > 0, onChange: handleChange, onBlur: handleBlur, onFocus: handleFocus, required: trueValueRequired, label: labelValue(label, hideLabel, false), "aria-describedby": ariaDescribedByIds(id) })] }));
|
|
32
28
|
}
|
|
33
29
|
//# sourceMappingURL=CheckboxWidget.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxWidget.js","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAElH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CheckboxWidget.js","sourceRoot":"","sources":["../../src/CheckboxWidget/CheckboxWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAElH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAa,CAAC;AAE/C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,cAAc,CAIpC,KAA2B;IAC3B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,EACD,KAAC,IAAI,CAAC,QAAQ,IACZ,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,QAAQ,IAAI,EAAE,EACpB,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,SAAS,EAAE,SAAS,KAChB,aAAa,EACjB,OAAO,EAAE,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,EACvD,KAAK,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAC3B,QAAQ,EAAE,YAAY,EACtB,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,iBAAiB,EAC3B,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,sBACxB,kBAAkB,CAAC,EAAE,CAAC,GACxC,IACD,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './CheckboxWidget.
|
|
2
|
-
export * from './CheckboxWidget.
|
|
1
|
+
export { default } from './CheckboxWidget.tsx';
|
|
2
|
+
export * from './CheckboxWidget.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CheckboxWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./CheckboxWidget.js";
|
|
2
|
+
export * from "./CheckboxWidget.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CheckboxWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CheckboxWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAsB,CAAC;AAC/C,cAAc,qBAAsB,CAAC"}
|
|
@@ -5,3 +5,4 @@ import type { FormContextType, RJSFSchema, StrictRJSFSchema, WidgetProps } from
|
|
|
5
5
|
* @param props - The `WidgetProps` for this component
|
|
6
6
|
*/
|
|
7
7
|
export default function CheckboxesWidget<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: WidgetProps<T, S, F>): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=CheckboxesWidget.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CheckboxesWidget.d.ts","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAc9F;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BA2E5B"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { ariaDescribedByIds, enumOptionsDeselectValue, enumOptionsIsSelected, enumOptionsSelectValue, getTemplate, optionId, titleId, } from '@rjsf/utils';
|
|
3
3
|
import { Form } from 'semantic-ui-react';
|
|
4
|
-
import { getSemanticProps } from
|
|
4
|
+
import { getSemanticProps } from "../util.js";
|
|
5
5
|
/** The `CheckboxesWidget` is a widget for rendering checkbox groups.
|
|
6
6
|
* It is typically used to represent an array of enums.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,OAAO,GACR,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CheckboxesWidget.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/CheckboxesWidget.tsx"],"names":[],"mappings":";AAEA,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,sBAAsB,EACtB,WAAW,EACX,QAAQ,EACR,OAAO,GACR,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAa,CAAC;AAE/C;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAItC,KAA2B;IAC3B,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,SAAS,EACT,QAAQ,EACR,KAAK,EACL,SAAS,EACT,QAAQ,EACR,MAAM,EACN,OAAO,EACP,MAAM,EACN,QAAQ,EACR,SAAS,GAAG,EAAE,EACd,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,kBAAkB,GAAG,WAAW,CAAgC,oBAAoB,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC/G,MAAM,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC;IACtD,MAAM,gBAAgB,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CA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AAQ,IAAI,EAAE,KAAM,YAAY,YACvD,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;oBACzB,WAAW,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE;wBAChC,MAAM,OAAO,GAAG,qBAAqB,CAAI,MAAM,CAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;wBACzE,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,IAAI,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;wBACxF,OAAO,CACL,KAAC,IAAI,CAAC,QAAQ,IACZ,EAAE,EAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC,EACvB,IAAI,EAAE,QAAQ,IAAI,EAAE,EAEpB,KAAK,EAAE,MAAM,CAAC,KAAK,KACf,aAAa,EACjB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,SAAS,CAAC,MAAM,GAAG,CAAC,EAC3B,QAAQ,EAAE,QAAQ,IAAI,YAAY,IAAI,QAAQ,EAC9C,SAAS,EAAE,SAAS,IAAI,KAAK,KAAK,CAAC,EACnC,QAAQ,EAAE,YAAY,CAAC,KAAK,CAAC,EAC7B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,WAAW,sBACF,kBAAkB,CAAC,EAAE,CAAC,IAVnC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAWzB,CACH,CAAC;oBACJ,CAAC,CAAC,GACO,IACZ,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './CheckboxesWidget.
|
|
2
|
-
export * from './CheckboxesWidget.
|
|
1
|
+
export { default } from './CheckboxesWidget.tsx';
|
|
2
|
+
export * from './CheckboxesWidget.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CheckboxesWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./CheckboxesWidget.js";
|
|
2
|
+
export * from "./CheckboxesWidget.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CheckboxesWidget/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAwB,CAAC;AACjD,cAAc,uBAAwB,CAAC"}
|
|
@@ -4,3 +4,4 @@ import type { CyclicSchemaExpandProps, FormContextType, RJSFSchema, StrictRJSFSc
|
|
|
4
4
|
* @param props - The `CyclicSchemaExpandProps` for this component
|
|
5
5
|
*/
|
|
6
6
|
export default function CyclicSchemaExpandTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: CyclicSchemaExpandProps<T, S, F>): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=CyclicSchemaExpandTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CyclicSchemaExpandTemplate.d.ts","sourceRoot":"","sources":["../../src/CyclicSchemaExpandTemplate/CyclicSchemaExpandTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAI1G;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAChD,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,uBAAuB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAYxC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './CyclicSchemaExpandTemplate.
|
|
2
|
-
export * from './CyclicSchemaExpandTemplate.
|
|
1
|
+
export { default } from './CyclicSchemaExpandTemplate.tsx';
|
|
2
|
+
export * from './CyclicSchemaExpandTemplate.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/CyclicSchemaExpandTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3D,cAAc,kCAAkC,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./CyclicSchemaExpandTemplate.js";
|
|
2
|
+
export * from "./CyclicSchemaExpandTemplate.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CyclicSchemaExpandTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/CyclicSchemaExpandTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iCAAkC,CAAC;AAC3D,cAAc,iCAAkC,CAAC"}
|
|
@@ -4,3 +4,4 @@ import type { DescriptionFieldProps, FormContextType, RJSFSchema, StrictRJSFSche
|
|
|
4
4
|
* @param props - The `DescriptionFieldProps` for this component
|
|
5
5
|
*/
|
|
6
6
|
export default function DescriptionField<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: DescriptionFieldProps<T, S, F>): import("react").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=DescriptionField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DescriptionField.d.ts","sourceRoot":"","sources":["../../src/DescriptionField/DescriptionField.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,qBAAqB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAExG;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CACtC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,qBAAqB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,sCAUtC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './DescriptionField.
|
|
2
|
-
export * from './DescriptionField.
|
|
1
|
+
export { default } from './DescriptionField.tsx';
|
|
2
|
+
export * from './DescriptionField.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/DescriptionField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACjD,cAAc,wBAAwB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./DescriptionField.js";
|
|
2
|
+
export * from "./DescriptionField.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/DescriptionField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/DescriptionField/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAwB,CAAC;AACjD,cAAc,uBAAwB,CAAC"}
|
|
@@ -4,3 +4,4 @@ import type { ErrorListProps, FormContextType, RJSFSchema, StrictRJSFSchema } fr
|
|
|
4
4
|
* @param props - The `ErrorListProps` for this component
|
|
5
5
|
*/
|
|
6
6
|
export default function ErrorList<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, registry, }: ErrorListProps<T, S, F>): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ErrorList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ErrorList.d.ts","sourceRoot":"","sources":["../../src/ErrorList/ErrorList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIjG;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,gBAAgB,GAAG,UAAU,EAAE,CAAC,SAAS,eAAe,GAAG,GAAG,EAAE,EACnH,MAAM,EACN,QAAQ,GACT,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAazB"}
|
package/lib/ErrorList/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './ErrorList.
|
|
2
|
-
export * from './ErrorList.
|
|
1
|
+
export { default } from './ErrorList.tsx';
|
|
2
|
+
export * from './ErrorList.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/ErrorList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,cAAc,iBAAiB,CAAC"}
|
package/lib/ErrorList/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./ErrorList.js";
|
|
2
|
+
export * from "./ErrorList.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ErrorList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/ErrorList/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAiB,CAAC;AAC1C,cAAc,gBAAiB,CAAC"}
|
|
@@ -4,3 +4,4 @@ import type { FieldErrorProps, FormContextType, RJSFSchema, StrictRJSFSchema } f
|
|
|
4
4
|
* @param props - The `FieldErrorProps` for the errors being rendered
|
|
5
5
|
*/
|
|
6
6
|
export default function FieldErrorTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ errors, fieldPathId, uiSchema, registry }: FieldErrorProps<T, S, F>): import("react").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=FieldErrorTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldErrorTemplate.d.ts","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAalG;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CACxC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,sCAsBtE"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { errorId } from '@rjsf/utils';
|
|
3
|
-
import uniqueId from 'lodash/uniqueId';
|
|
4
3
|
import { Label, List } from 'semantic-ui-react';
|
|
5
|
-
import { getSemanticErrorProps } from
|
|
4
|
+
import { getSemanticErrorProps } from "../util.js";
|
|
6
5
|
const DEFAULT_OPTIONS = {
|
|
7
6
|
options: {
|
|
8
7
|
pointing: 'above',
|
|
@@ -23,7 +22,7 @@ export default function FieldErrorTemplate({ errors, fieldPathId, uiSchema, regi
|
|
|
23
22
|
const { pointing, size } = options;
|
|
24
23
|
if (errors && errors.length > 0) {
|
|
25
24
|
const id = errorId(fieldPathId);
|
|
26
|
-
return (_jsx(Label, { id: id, color: 'red', pointing: pointing || 'above', size: size || 'small', basic: true, children: _jsx(List, { bulleted: true, children: errors.map((error) => (_jsx(List.Item, { children: error },
|
|
25
|
+
return (_jsx(Label, { id: id, color: 'red', pointing: pointing || 'above', size: size || 'small', basic: true, children: _jsx(List, { bulleted: true, children: errors.map((error, i) => (_jsx(List.Item, { children: error }, i))) }) }));
|
|
27
26
|
}
|
|
28
27
|
return null;
|
|
29
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/FieldErrorTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAa,CAAC;AAEpD,MAAM,eAAe,GAAG;IACtB,OAAO,EAAE;QACP,QAAQ,EAAE,OAAO;QACjB,IAAI,EAAE,OAAO;KACd;CACF,CAAC;AAEF;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAA4B;IACrE,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,CAAC;IACjC,MAAM,OAAO,GAAG,qBAAqB,CAAU;QAC7C,WAAW;QACX,QAAQ;QACR,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;IACH,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACnC,IAAI,MAAM,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAChC,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;QAChC,OAAO,CACL,KAAC,KAAK,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAC,KAAK,EAAC,QAAQ,EAAE,QAAQ,IAAI,OAAO,EAAE,IAAI,EAAE,IAAI,IAAI,OAAO,EAAE,KAAK,kBACpF,KAAC,IAAI,IAAC,QAAQ,kBACX,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAS,EAAE,EAAE,CAAC,CAEhC,KAAC,IAAI,CAAC,IAAI,cAAU,KAAK,IAAT,CAAC,CAAqB,CACvC,CAAC,GACG,GACD,CACT,CAAC;IACJ,CAAC;IACD,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './FieldErrorTemplate.
|
|
2
|
-
export * from './FieldErrorTemplate.
|
|
1
|
+
export { default } from './FieldErrorTemplate.tsx';
|
|
2
|
+
export * from './FieldErrorTemplate.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FieldErrorTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./FieldErrorTemplate.js";
|
|
2
|
+
export * from "./FieldErrorTemplate.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FieldErrorTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAA0B,CAAC;AACnD,cAAc,yBAA0B,CAAC"}
|
|
@@ -4,3 +4,4 @@ import type { FieldHelpProps, FormContextType, RJSFSchema, StrictRJSFSchema } fr
|
|
|
4
4
|
* @param props - The `FieldHelpProps` to be rendered
|
|
5
5
|
*/
|
|
6
6
|
export default function FieldHelpTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldHelpProps<T, S, F>): import("react").JSX.Element | null;
|
|
7
|
+
//# sourceMappingURL=FieldHelpTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldHelpTemplate.d.ts","sourceRoot":"","sources":["../../src/FieldHelpTemplate/FieldHelpTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIjG;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CACvC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,sCAU/B"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './FieldHelpTemplate.
|
|
2
|
-
export * from './FieldHelpTemplate.
|
|
1
|
+
export { default } from './FieldHelpTemplate.tsx';
|
|
2
|
+
export * from './FieldHelpTemplate.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FieldHelpTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAClD,cAAc,yBAAyB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./FieldHelpTemplate.js";
|
|
2
|
+
export * from "./FieldHelpTemplate.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FieldHelpTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,wBAAyB,CAAC;AAClD,cAAc,wBAAyB,CAAC"}
|
|
@@ -5,3 +5,4 @@ import type { FieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSchema
|
|
|
5
5
|
* @param props - The `FieldTemplateProps` for this component
|
|
6
6
|
*/
|
|
7
7
|
export default function FieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: FieldTemplateProps<T, S, F>): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=FieldTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldTemplate.d.ts","sourceRoot":"","sources":["../../src/FieldTemplate/FieldTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAMrG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CACnC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BA+DnC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { getTemplate, getUiOptions } from '@rjsf/utils';
|
|
3
3
|
import { Form } from 'semantic-ui-react';
|
|
4
|
-
import { getSemanticProps, MaybeWrap } from
|
|
4
|
+
import { getSemanticProps, MaybeWrap } from "../util.js";
|
|
5
5
|
/** The `FieldTemplate` component is the template used by `SchemaField` to render any field. It renders the field
|
|
6
6
|
* content, (label, description, children, errors and help) inside of a `WrapIfAdditional` component.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldTemplate.js","sourceRoot":"","sources":["../../src/FieldTemplate/FieldTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"FieldTemplate.js","sourceRoot":"","sources":["../../src/F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Q,KACd,UAAU,YAEd,KAAC,IAAI,CAAC,KAAK,IAAU,MAAM,EAAC,OAAO,EAAC,OAAO,kBACzC,MAAC,SAAS,IAAC,IAAI,EAAE,WAAW,EAAE,SAAS,EAAC,mBAAmB,aACxD,QAAQ,EACR,YAAY,IAAI,cAAc,IAAI,CAAC,UAAU,IAAI,CAChD,KAAC,SAAS,IAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAC,iBAAiB,YACpD,WAAW,GACF,CACb,EACA,IAAI,EACJ,MAAM,IACG,IAVG,EAAE,CAWN,GACY,CAC5B,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './FieldTemplate.
|
|
2
|
-
export * from './FieldTemplate.
|
|
1
|
+
export { default } from './FieldTemplate.tsx';
|
|
2
|
+
export * from './FieldTemplate.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/FieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./FieldTemplate.js";
|
|
2
|
+
export * from "./FieldTemplate.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/FieldTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAqB,CAAC;AAC9C,cAAc,oBAAqB,CAAC"}
|
|
@@ -5,3 +5,4 @@ import type { GridTemplateProps } from '@rjsf/utils';
|
|
|
5
5
|
* @param props - The GridTemplateProps, including the extra props containing the semantic-ui grid positioning details
|
|
6
6
|
*/
|
|
7
7
|
export default function GridTemplate(props: GridTemplateProps): import("react").JSX.Element;
|
|
8
|
+
//# sourceMappingURL=GridTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridTemplate.d.ts","sourceRoot":"","sources":["../../src/GridTemplate/GridTemplate.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAM5D"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { default } from './GridTemplate.
|
|
2
|
-
export * from './GridTemplate.
|
|
1
|
+
export { default } from './GridTemplate.tsx';
|
|
2
|
+
export * from './GridTemplate.tsx';
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/GridTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { default } from
|
|
2
|
-
export * from
|
|
1
|
+
export { default } from "./GridTemplate.js";
|
|
2
|
+
export * from "./GridTemplate.js";
|
|
3
3
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GridTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/GridTemplate/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAoB,CAAC;AAC7C,cAAc,mBAAoB,CAAC"}
|
|
@@ -14,3 +14,4 @@ declare function RemoveButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema
|
|
|
14
14
|
export declare const RemoveButton: typeof RemoveButtonFn;
|
|
15
15
|
declare function ClearButtonFn<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: SemanticIconButtonProps<T, S, F>): import("react").JSX.Element;
|
|
16
16
|
export declare const ClearButton: typeof ClearButtonFn;
|
|
17
|
+
//# sourceMappingURL=IconButton.d.ts.map
|