@rjsf/mantine 6.7.1 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +35 -10
- package/dist/index.cjs.map +4 -4
- package/dist/mantine.esm.js +36 -11
- package/dist/mantine.esm.js.map +4 -4
- package/dist/mantine.umd.js +38 -10
- package/lib/Form/index.d.ts +1 -0
- package/lib/Form/index.d.ts.map +1 -0
- package/lib/Form/index.js +1 -1
- package/lib/Form/index.js.map +1 -1
- package/lib/Theme/index.d.ts +1 -0
- 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/index.d.ts +5 -4
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +4 -4
- package/lib/index.js.map +1 -1
- package/lib/templates/ArrayFieldItemTemplate.d.ts +1 -0
- package/lib/templates/ArrayFieldItemTemplate.d.ts.map +1 -0
- package/lib/templates/ArrayFieldTemplate.d.ts +1 -0
- package/lib/templates/ArrayFieldTemplate.d.ts.map +1 -0
- package/lib/templates/ArrayFieldTitleTemplate.d.ts +1 -0
- package/lib/templates/ArrayFieldTitleTemplate.d.ts.map +1 -0
- package/lib/templates/BaseInputTemplate.d.ts +1 -0
- package/lib/templates/BaseInputTemplate.d.ts.map +1 -0
- package/lib/templates/BaseInputTemplate.js +4 -7
- package/lib/templates/BaseInputTemplate.js.map +1 -1
- package/lib/templates/ButtonTemplates/AddButton.d.ts +1 -0
- package/lib/templates/ButtonTemplates/AddButton.d.ts.map +1 -0
- package/lib/templates/ButtonTemplates/AddButton.js +2 -2
- package/lib/templates/ButtonTemplates/AddButton.js.map +1 -1
- package/lib/templates/ButtonTemplates/IconButton.d.ts +1 -0
- package/lib/templates/ButtonTemplates/IconButton.d.ts.map +1 -0
- package/lib/templates/ButtonTemplates/IconButton.js +1 -1
- package/lib/templates/ButtonTemplates/IconButton.js.map +1 -1
- package/lib/templates/ButtonTemplates/SubmitButton.d.ts +1 -0
- package/lib/templates/ButtonTemplates/SubmitButton.d.ts.map +1 -0
- package/lib/templates/ButtonTemplates/index.d.ts +1 -0
- package/lib/templates/ButtonTemplates/index.d.ts.map +1 -0
- package/lib/templates/ButtonTemplates/index.js +3 -3
- package/lib/templates/ButtonTemplates/index.js.map +1 -1
- package/lib/templates/CyclicSchemaExpandTemplate.d.ts +1 -0
- package/lib/templates/CyclicSchemaExpandTemplate.d.ts.map +1 -0
- package/lib/templates/CyclicSchemaExpandTemplate.js +1 -1
- package/lib/templates/CyclicSchemaExpandTemplate.js.map +1 -1
- package/lib/templates/DescriptionField.d.ts +1 -0
- package/lib/templates/DescriptionField.d.ts.map +1 -0
- package/lib/templates/ErrorList.d.ts +1 -0
- package/lib/templates/ErrorList.d.ts.map +1 -0
- package/lib/templates/ErrorList.js +1 -1
- package/lib/templates/ErrorList.js.map +1 -1
- package/lib/templates/FieldErrorTemplate.d.ts +1 -0
- package/lib/templates/FieldErrorTemplate.d.ts.map +1 -0
- package/lib/templates/FieldErrorTemplate.js +1 -1
- package/lib/templates/FieldErrorTemplate.js.map +1 -1
- package/lib/templates/FieldHelpTemplate.d.ts +1 -0
- package/lib/templates/FieldHelpTemplate.d.ts.map +1 -0
- package/lib/templates/FieldTemplate.d.ts +1 -0
- package/lib/templates/FieldTemplate.d.ts.map +1 -0
- package/lib/templates/GridTemplate.d.ts +1 -0
- package/lib/templates/GridTemplate.d.ts.map +1 -0
- package/lib/templates/MultiSchemaFieldTemplate.d.ts +1 -0
- package/lib/templates/MultiSchemaFieldTemplate.d.ts.map +1 -0
- package/lib/templates/ObjectFieldTemplate.d.ts +1 -0
- package/lib/templates/ObjectFieldTemplate.d.ts.map +1 -0
- package/lib/templates/ObjectFieldTemplate.js +3 -3
- package/lib/templates/ObjectFieldTemplate.js.map +1 -1
- package/lib/templates/OptionalDataControlsTemplate.d.ts +1 -0
- package/lib/templates/OptionalDataControlsTemplate.d.ts.map +1 -0
- package/lib/templates/OptionalDataControlsTemplate.js +2 -2
- package/lib/templates/OptionalDataControlsTemplate.js.map +1 -1
- package/lib/templates/TitleField.d.ts +1 -0
- package/lib/templates/TitleField.d.ts.map +1 -0
- package/lib/templates/WrapIfAdditionalTemplate.d.ts +1 -0
- package/lib/templates/WrapIfAdditionalTemplate.d.ts.map +1 -0
- package/lib/templates/icons.d.ts +1 -0
- package/lib/templates/icons.d.ts.map +1 -0
- package/lib/templates/index.d.ts +1 -0
- package/lib/templates/index.d.ts.map +1 -0
- package/lib/templates/index.js +17 -17
- package/lib/templates/index.js.map +1 -1
- package/lib/utils.d.ts +1 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +25 -1
- package/lib/utils.js.map +1 -1
- package/lib/widgets/CheckboxWidget.d.ts +1 -0
- package/lib/widgets/CheckboxWidget.d.ts.map +1 -0
- package/lib/widgets/CheckboxWidget.js +3 -2
- package/lib/widgets/CheckboxWidget.js.map +1 -1
- package/lib/widgets/CheckboxesWidget.d.ts +1 -0
- package/lib/widgets/CheckboxesWidget.d.ts.map +1 -0
- package/lib/widgets/CheckboxesWidget.js +1 -1
- package/lib/widgets/CheckboxesWidget.js.map +1 -1
- package/lib/widgets/ColorWidget.d.ts +1 -0
- package/lib/widgets/ColorWidget.d.ts.map +1 -0
- package/lib/widgets/ColorWidget.js +3 -3
- package/lib/widgets/ColorWidget.js.map +1 -1
- package/lib/widgets/DateTime/AltDateTimeWidget.d.ts +1 -0
- package/lib/widgets/DateTime/AltDateTimeWidget.d.ts.map +1 -0
- package/lib/widgets/DateTime/AltDateWidget.d.ts +1 -0
- package/lib/widgets/DateTime/AltDateWidget.d.ts.map +1 -0
- package/lib/widgets/DateTime/AltDateWidget.js +1 -1
- package/lib/widgets/DateTime/AltDateWidget.js.map +1 -1
- package/lib/widgets/DateTime/DateTimeInput.d.ts +1 -0
- package/lib/widgets/DateTime/DateTimeInput.d.ts.map +1 -0
- package/lib/widgets/DateTime/DateTimeInput.js +4 -1
- package/lib/widgets/DateTime/DateTimeInput.js.map +1 -1
- package/lib/widgets/DateTime/DateTimeWidget.d.ts +1 -0
- package/lib/widgets/DateTime/DateTimeWidget.d.ts.map +1 -0
- package/lib/widgets/DateTime/DateTimeWidget.js +1 -1
- package/lib/widgets/DateTime/DateTimeWidget.js.map +1 -1
- package/lib/widgets/DateTime/DateWidget.d.ts +1 -0
- package/lib/widgets/DateTime/DateWidget.d.ts.map +1 -0
- package/lib/widgets/DateTime/DateWidget.js +1 -1
- package/lib/widgets/DateTime/DateWidget.js.map +1 -1
- package/lib/widgets/DateTime/TimeWidget.d.ts +1 -0
- package/lib/widgets/DateTime/TimeWidget.d.ts.map +1 -0
- package/lib/widgets/DateTime/TimeWidget.js +3 -3
- package/lib/widgets/DateTime/TimeWidget.js.map +1 -1
- package/lib/widgets/DateTime/index.d.ts +6 -5
- package/lib/widgets/DateTime/index.d.ts.map +1 -0
- package/lib/widgets/DateTime/index.js +5 -5
- package/lib/widgets/DateTime/index.js.map +1 -1
- package/lib/widgets/FileWidget.d.ts +1 -0
- package/lib/widgets/FileWidget.d.ts.map +1 -0
- package/lib/widgets/FileWidget.js +1 -1
- package/lib/widgets/FileWidget.js.map +1 -1
- package/lib/widgets/PasswordWidget.d.ts +1 -0
- package/lib/widgets/PasswordWidget.d.ts.map +1 -0
- package/lib/widgets/PasswordWidget.js +3 -3
- package/lib/widgets/PasswordWidget.js.map +1 -1
- package/lib/widgets/RadioWidget.d.ts +1 -0
- package/lib/widgets/RadioWidget.d.ts.map +1 -0
- package/lib/widgets/RadioWidget.js +3 -3
- package/lib/widgets/RadioWidget.js.map +1 -1
- package/lib/widgets/RangeWidget.d.ts +1 -0
- package/lib/widgets/RangeWidget.d.ts.map +1 -0
- package/lib/widgets/RangeWidget.js +3 -3
- package/lib/widgets/RangeWidget.js.map +1 -1
- package/lib/widgets/SelectWidget.d.ts +1 -0
- package/lib/widgets/SelectWidget.d.ts.map +1 -0
- package/lib/widgets/SelectWidget.js +3 -3
- package/lib/widgets/SelectWidget.js.map +1 -1
- package/lib/widgets/TextareaWidget.d.ts +1 -0
- package/lib/widgets/TextareaWidget.d.ts.map +1 -0
- package/lib/widgets/TextareaWidget.js +4 -4
- package/lib/widgets/TextareaWidget.js.map +1 -1
- package/lib/widgets/index.d.ts +1 -0
- package/lib/widgets/index.d.ts.map +1 -0
- package/lib/widgets/index.js +10 -14
- package/lib/widgets/index.js.map +1 -1
- package/package.json +8 -11
- package/src/Form/index.ts +1 -1
- package/src/Theme/index.ts +2 -2
- package/src/index.ts +4 -4
- package/src/templates/BaseInputTemplate.tsx +2 -2
- package/src/templates/ButtonTemplates/AddButton.tsx +2 -2
- package/src/templates/ButtonTemplates/IconButton.tsx +1 -1
- package/src/templates/ButtonTemplates/index.ts +3 -3
- package/src/templates/CyclicSchemaExpandTemplate.tsx +1 -1
- package/src/templates/ErrorList.tsx +1 -1
- package/src/templates/OptionalDataControlsTemplate.tsx +2 -2
- package/src/templates/index.ts +17 -17
- package/src/utils.ts +25 -1
- package/src/widgets/CheckboxWidget.tsx +13 -3
- package/src/widgets/CheckboxesWidget.tsx +1 -1
- package/src/widgets/ColorWidget.tsx +1 -1
- package/src/widgets/DateTime/DateTimeInput.tsx +4 -0
- package/src/widgets/DateTime/DateTimeWidget.tsx +1 -1
- package/src/widgets/DateTime/DateWidget.tsx +1 -1
- package/src/widgets/DateTime/index.ts +5 -5
- package/src/widgets/FileWidget.tsx +1 -1
- package/src/widgets/PasswordWidget.tsx +1 -1
- package/src/widgets/RadioWidget.tsx +1 -1
- package/src/widgets/RangeWidget.tsx +1 -1
- package/src/widgets/SelectWidget.tsx +1 -1
- package/src/widgets/TextareaWidget.tsx +1 -1
- package/src/widgets/index.ts +10 -15
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/src/tsconfig.json +0 -22
package/dist/mantine.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('@mantine/core'), require('@rjsf/utils'), require('react/jsx-runtime'), require('react'), require('
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', '@mantine/core', '@rjsf/utils', 'react/jsx-runtime', 'react', 'dayjs', 'dayjs/plugin/customParseFormat'
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/mantine"] = {}, global.core$1, global.core, global.utils, global.jsxRuntime, global.react, global.
|
|
5
|
-
})(this, (function (exports, core$1, core, utils, jsxRuntime, react, dayjs, customParseFormat
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('@mantine/core'), require('@rjsf/utils'), require('react/jsx-runtime'), require('react'), require('@mantine/dates'), require('dayjs'), require('dayjs/plugin/customParseFormat.js')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', '@mantine/core', '@rjsf/utils', 'react/jsx-runtime', 'react', '@mantine/dates', 'dayjs', 'dayjs/plugin/customParseFormat.js'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@rjsf/mantine"] = {}, global.core$1, global.core, global.utils, global.jsxRuntime, global.react, global.dates, global.dayjs, global.customParseFormat));
|
|
5
|
+
})(this, (function (exports, core$1, core, utils, jsxRuntime, react, dates, dayjs, customParseFormat) { 'use strict';
|
|
6
6
|
|
|
7
7
|
// src/Form/index.ts
|
|
8
8
|
function ArrayFieldItemTemplate(props) {
|
|
@@ -111,12 +111,17 @@
|
|
|
111
111
|
var uiOptionsKeys = [
|
|
112
112
|
"emptyValue",
|
|
113
113
|
"classNames",
|
|
114
|
+
"style",
|
|
114
115
|
"title",
|
|
115
116
|
"label",
|
|
116
117
|
"help",
|
|
118
|
+
"autofocus",
|
|
117
119
|
"autocomplete",
|
|
120
|
+
"autocapitalize",
|
|
118
121
|
"disabled",
|
|
119
122
|
"enumDisabled",
|
|
123
|
+
"enumNames",
|
|
124
|
+
"enumOrder",
|
|
120
125
|
"hideError",
|
|
121
126
|
"readonly",
|
|
122
127
|
"order",
|
|
@@ -125,7 +130,7 @@
|
|
|
125
130
|
"inputType",
|
|
126
131
|
"submitButtonOptions",
|
|
127
132
|
"widget",
|
|
128
|
-
"
|
|
133
|
+
"field",
|
|
129
134
|
"addable",
|
|
130
135
|
"copyable",
|
|
131
136
|
"orderable",
|
|
@@ -134,7 +139,26 @@
|
|
|
134
139
|
"enumOptions",
|
|
135
140
|
"enableMarkdownInDescription",
|
|
136
141
|
"enableMarkdownInHelp",
|
|
137
|
-
"
|
|
142
|
+
"enableOptionalDataFieldForType",
|
|
143
|
+
"globalOptions",
|
|
144
|
+
"allowClearTextInputs",
|
|
145
|
+
"optionValueFormat",
|
|
146
|
+
"optionsSchemaSelector",
|
|
147
|
+
"deprecatedHandling",
|
|
148
|
+
"ArrayFieldDescriptionTemplate",
|
|
149
|
+
"ArrayFieldItemTemplate",
|
|
150
|
+
"ArrayFieldTemplate",
|
|
151
|
+
"ArrayFieldTitleTemplate",
|
|
152
|
+
"BaseInputTemplate",
|
|
153
|
+
"DescriptionFieldTemplate",
|
|
154
|
+
"ErrorListTemplate",
|
|
155
|
+
"FieldErrorTemplate",
|
|
156
|
+
"FieldHelpTemplate",
|
|
157
|
+
"FieldTemplate",
|
|
158
|
+
"ObjectFieldTemplate",
|
|
159
|
+
"TitleFieldTemplate",
|
|
160
|
+
"UnsupportedFieldTemplate",
|
|
161
|
+
"WrapIfAdditionalTemplate"
|
|
138
162
|
];
|
|
139
163
|
function cleanupOptions(options) {
|
|
140
164
|
const result = {};
|
|
@@ -197,7 +221,7 @@
|
|
|
197
221
|
(e) => {
|
|
198
222
|
e.preventDefault();
|
|
199
223
|
e.stopPropagation();
|
|
200
|
-
onChange(options.emptyValue
|
|
224
|
+
onChange(options.emptyValue);
|
|
201
225
|
},
|
|
202
226
|
[onChange, options.emptyValue]
|
|
203
227
|
);
|
|
@@ -920,6 +944,7 @@
|
|
|
920
944
|
registry,
|
|
921
945
|
uiSchema
|
|
922
946
|
} = props;
|
|
947
|
+
const trueValueRequired = utils.schemaRequiresTrueValue(schema) && required;
|
|
923
948
|
const DescriptionFieldTemplate = utils.getTemplate(
|
|
924
949
|
"DescriptionFieldTemplate",
|
|
925
950
|
registry,
|
|
@@ -966,9 +991,12 @@
|
|
|
966
991
|
{
|
|
967
992
|
id,
|
|
968
993
|
name: htmlName || name,
|
|
969
|
-
label:
|
|
994
|
+
label: !hideLabel && label ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
995
|
+
label,
|
|
996
|
+
trueValueRequired && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "required", children: "*" })
|
|
997
|
+
] }) : utils.labelValue(label || void 0, hideLabel, false),
|
|
970
998
|
disabled: disabled || readonly,
|
|
971
|
-
required,
|
|
999
|
+
required: trueValueRequired,
|
|
972
1000
|
autoFocus: autofocus,
|
|
973
1001
|
checked: typeof value === "undefined" ? false : value === "true" || value,
|
|
974
1002
|
onChange: handleCheckboxChange,
|
|
@@ -1086,6 +1114,7 @@
|
|
|
1086
1114
|
))
|
|
1087
1115
|
] });
|
|
1088
1116
|
}
|
|
1117
|
+
dayjs.extend(customParseFormat);
|
|
1089
1118
|
var dateParser = (input, format) => {
|
|
1090
1119
|
if (!input) {
|
|
1091
1120
|
return null;
|
|
@@ -1661,7 +1690,6 @@
|
|
|
1661
1690
|
}
|
|
1662
1691
|
|
|
1663
1692
|
// src/widgets/index.ts
|
|
1664
|
-
dayjs.extend(customParseFormat);
|
|
1665
1693
|
function generateWidgets() {
|
|
1666
1694
|
return {
|
|
1667
1695
|
AltDateTimeWidget,
|
package/lib/Form/index.d.ts
CHANGED
|
@@ -4,3 +4,4 @@ import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'
|
|
|
4
4
|
export declare function generateForm<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ComponentType<FormProps<T, S, F>>;
|
|
5
5
|
declare const _default: ComponentType<FormProps<any, RJSFSchema, any>>;
|
|
6
6
|
export default _default;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAIjF,wBAAgB,YAAY,CAC1B,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,KAC5B,aAAa,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAErC;;AAED,wBAA8B"}
|
package/lib/Form/index.js
CHANGED
package/lib/Form/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Form/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAGvC,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,MAAM,UAAU,YAAY;IAK1B,OAAO,SAAS,CAAU,aAAa,EAAW,CAAC,CAAC;AACtD,CAAC;AAED,eAAe,YAAY,EAAE,CAAC"}
|
package/lib/Theme/index.d.ts
CHANGED
|
@@ -3,3 +3,4 @@ import type { FormContextType, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils'
|
|
|
3
3
|
export declare function generateTheme<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): ThemeProps<T, S, F>;
|
|
4
4
|
declare const _default: ThemeProps<any, RJSFSchema, any>;
|
|
5
5
|
export default _default;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/Theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKjF,wBAAgB,aAAa,CAC3B,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,KAC5B,UAAU,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAKvB;;AAED,wBAA+B"}
|
package/lib/Theme/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { generateTemplates } from
|
|
2
|
-
import { generateWidgets } from
|
|
1
|
+
import { generateTemplates } from "../templates/index.js";
|
|
2
|
+
import { generateWidgets } from "../widgets/index.js";
|
|
3
3
|
export function generateTheme() {
|
|
4
4
|
return {
|
|
5
5
|
templates: generateTemplates(),
|
package/lib/Theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Theme/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Theme/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEtD,MAAM,UAAU,aAAa;IAK3B,OAAO;QACL,SAAS,EAAE,iBAAiB,EAAW;QACvC,OAAO,EAAE,eAAe,EAAW;KACpC,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,EAAE,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import Form, { generateForm } from './Form/index.
|
|
2
|
-
import Templates, { generateTemplates } from './templates/index.
|
|
3
|
-
import Theme, { generateTheme } from './Theme/index.
|
|
4
|
-
import Widgets, { generateWidgets } from './widgets/index.
|
|
1
|
+
import Form, { generateForm } from './Form/index.ts';
|
|
2
|
+
import Templates, { generateTemplates } from './templates/index.ts';
|
|
3
|
+
import Theme, { generateTheme } from './Theme/index.ts';
|
|
4
|
+
import Widgets, { generateWidgets } from './widgets/index.ts';
|
|
5
5
|
export { Form, Templates, Theme, Widgets, generateForm, generateTemplates, generateTheme, generateWidgets };
|
|
6
6
|
export default Form;
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,SAAS,EAAE,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,OAAO,EAAE,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAE5G,eAAe,IAAI,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import Form, { generateForm } from
|
|
2
|
-
import Templates, { generateTemplates } from
|
|
3
|
-
import Theme, { generateTheme } from
|
|
4
|
-
import Widgets, { generateWidgets } from
|
|
1
|
+
import Form, { generateForm } from "./Form/index.js";
|
|
2
|
+
import Templates, { generateTemplates } from "./templates/index.js";
|
|
3
|
+
import Theme, { generateTheme } from "./Theme/index.js";
|
|
4
|
+
import Widgets, { generateWidgets } from "./widgets/index.js";
|
|
5
5
|
export { Form, Templates, Theme, Widgets, generateForm, generateTemplates, generateTheme, generateWidgets };
|
|
6
6
|
export default Form;
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AACrD,OAAO,SAAS,EAAE,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,OAAO,EAAE,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAE9D,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,aAAa,EAAE,eAAe,EAAE,CAAC;AAE5G,eAAe,IAAI,CAAC"}
|
|
@@ -4,3 +4,4 @@ import type { ArrayFieldItemTemplateProps, FormContextType, RJSFSchema, StrictRJ
|
|
|
4
4
|
* @param props - The `ArrayFieldItemTemplateProps` props for the component
|
|
5
5
|
*/
|
|
6
6
|
export default function ArrayFieldItemTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldItemTemplateProps<T, S, F>): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ArrayFieldItemTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayFieldItemTemplate.d.ts","sourceRoot":"","sources":["../../src/templates/ArrayFieldItemTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG9G;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,sBAAsB,CAC5C,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,2BAA2B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAqB5C"}
|
|
@@ -4,3 +4,4 @@ import type { ArrayFieldTemplateProps, FormContextType, RJSFSchema, StrictRJSFSc
|
|
|
4
4
|
* @param props - The `ArrayFieldTemplateProps` props for the component
|
|
5
5
|
*/
|
|
6
6
|
export default function ArrayFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTemplateProps<T, S, F>): import("react").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=ArrayFieldTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayFieldTemplate.d.ts","sourceRoot":"","sources":["../../src/templates/ArrayFieldTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAG1G;;;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,+BA4ExC"}
|
|
@@ -5,3 +5,4 @@ import type { ArrayFieldTitleProps, FormContextType, RJSFSchema, StrictRJSFSchem
|
|
|
5
5
|
* @param props - The `ArrayFieldTitleProps` for the component
|
|
6
6
|
*/
|
|
7
7
|
export default function ArrayFieldTitleTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ArrayFieldTitleProps<T, S, F>): import("react").JSX.Element | null;
|
|
8
|
+
//# sourceMappingURL=ArrayFieldTitleTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ArrayFieldTitleTemplate.d.ts","sourceRoot":"","sources":["../../src/templates/ArrayFieldTitleTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGvG;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAC7C,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,sCAsBrC"}
|
|
@@ -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/templates/BaseInputTemplate.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKzG;;;;;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,+BAoHvC"}
|
|
@@ -3,7 +3,7 @@ import { useCallback } from 'react';
|
|
|
3
3
|
import { TextInput, NumberInput } from '@mantine/core';
|
|
4
4
|
import { SchemaExamples } from '@rjsf/core';
|
|
5
5
|
import { ariaDescribedByIds, examplesId, getInputProps, labelValue } from '@rjsf/utils';
|
|
6
|
-
import { cleanupOptions } from
|
|
6
|
+
import { cleanupOptions } from "../utils.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.
|
|
@@ -23,18 +23,15 @@ export default function BaseInputTemplate(props) {
|
|
|
23
23
|
handler(newValue);
|
|
24
24
|
}, [onChange, onChangeOverride, options]);
|
|
25
25
|
const handleBlur = useCallback((e) => {
|
|
26
|
-
|
|
27
|
-
onBlur(id, (_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
26
|
+
onBlur(id, e.target?.value);
|
|
28
27
|
}, [onBlur, id]);
|
|
29
28
|
const handleFocus = useCallback((e) => {
|
|
30
|
-
|
|
31
|
-
onFocus(id, (_a = e.target) === null || _a === void 0 ? void 0 : _a.value);
|
|
29
|
+
onFocus(id, e.target?.value);
|
|
32
30
|
}, [onFocus, id]);
|
|
33
31
|
const handleClear = useCallback((e) => {
|
|
34
|
-
var _a;
|
|
35
32
|
e.preventDefault();
|
|
36
33
|
e.stopPropagation();
|
|
37
|
-
onChange(
|
|
34
|
+
onChange(options.emptyValue);
|
|
38
35
|
}, [onChange, options.emptyValue]);
|
|
39
36
|
const componentProps = {
|
|
40
37
|
id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/templates/BaseInputTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"BaseInputTemplate.js","sourceRoot":"","sources":["../../src/templates/BaseInputTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAExF,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAIvC,KAAsC;IACtC,MAAM,EACJ,EAAE,EACF,QAAQ,EACR,IAAI,EACJ,MAAM,EACN,KAAK,EACL,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,EACL,SAAS,EACT,QAAQ,EACR,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,EAAE,WAAW,EAAE,GAAG,Q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AAO,UAAU,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAC/D,IAAI,EAAC,MAAM,EACX,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,EAC9C,GAAG,EAAE,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,sBAC5B,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAC3D,CACH,CAAC,CAAC,CAAC,CACF,KAAC,SAAS,IACR,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,KAC1C,cAAc,KACd,UAAU,KACV,UAAU,EACd,WAAW,EAAE,WAAW,EACxB,KAAK,EAAE,KAAK,sBACM,kBAAkB,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAC3D,CACH,CAAC;IAEJ,OAAO,CACL,8BACG,KAAK,EACL,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,EACA,QAAQ,EACT,KAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,GAAI,IACzC,CACJ,CAAC;AACJ,CAAC"}
|
|
@@ -2,3 +2,4 @@ import type { FormContextType, IconButtonProps, RJSFSchema, StrictRJSFSchema } f
|
|
|
2
2
|
/** The `AddButton` renders a button that represent the `Add` action on a form
|
|
3
3
|
*/
|
|
4
4
|
export default function AddButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: IconButtonProps<T, S, F>): import("react").JSX.Element;
|
|
5
|
+
//# sourceMappingURL=AddButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddButton.d.ts","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/AddButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAMlG;GACG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,gBAAgB,GAAG,UAAU,EAAE,CAAC,SAAS,eAAe,GAAG,GAAG,EACjH,KAAK,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAQhC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { TranslatableString } from '@rjsf/utils';
|
|
3
|
-
import { Plus } from
|
|
4
|
-
import IconButton from
|
|
3
|
+
import { Plus } from "../icons.js";
|
|
4
|
+
import IconButton from "./IconButton.js";
|
|
5
5
|
/** The `AddButton` renders a button that represent the `Add` action on a form
|
|
6
6
|
*/
|
|
7
7
|
export default function AddButton(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddButton.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/AddButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AddButton.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/AddButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,MAAM,aAAc,CAAC;AACpC,OAAO,UAAU,MAAM,iBAAkB,CAAC;AAE1C;GACG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAC/B,KAA+B;IAE/B,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,UAAU,IAAC,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,aAAa,CAAC,EAAE,OAAO,EAAC,QAAQ,KAAK,KAAK,EAAE,IAAI,EAAE,KAAC,IAAI,KAAG,GAAI,CACrH,CAAC;AACJ,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: MantineIconButtonProps<T, S, F>): import("react").JSX.Element;
|
|
16
16
|
export declare const ClearButton: typeof ClearButtonFn;
|
|
17
|
+
//# sourceMappingURL=IconButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconButton.d.ts","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/IconButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKlG,MAAM,MAAM,sBAAsB,CAChC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,IAC7B,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,eAAe,EAAE,SAAS,CAAC,CAAC;AAEhE,iBAAS,YAAY,CAAC,CAAC,GAAG,GAAG,EAAE,CAAC,SAAS,gBAAgB,GAAG,UAAU,EAAE,CAAC,SAA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EAAE,CAAC,SAAS,eAAe,GAAG,GAAG,EACtG,KAAK,EAAE,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAQvC;AACD,eAAO,MAAM,WAAW,EAA0B,OAAO,aAAa,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import { memo } from 'react';
|
|
3
3
|
import { ActionIcon } from '@mantine/core';
|
|
4
4
|
import { TranslatableString } from '@rjsf/utils';
|
|
5
|
-
import { Copy, ChevronDown, ChevronUp, X } from
|
|
5
|
+
import { Copy, ChevronDown, ChevronUp, X } from "../icons.js";
|
|
6
6
|
function IconButtonFn(props) {
|
|
7
7
|
const { icon, iconType = 'sm', color, onClick, uiSchema, registry, ...otherProps } = props;
|
|
8
8
|
return (_jsx(ActionIcon, { size: iconType, color: color, onClick: onClick, ...otherProps, children: icon }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/IconButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"IconButton.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/IconButton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAE7B,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,SAAS,EAAE,CAAC,EAAE,MAAM,aAAc,CAAC;AAQ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KAAK,CAAC;IACV,OAAO,CACL,KAAC,UAAU,IACT,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,EACvD,OAAO,EAAC,QAAQ,KACZ,KAAK,EACT,IAAI,EAAE,KAAC,SAAS,KAAG,GACnB,CACH,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAA0B,CAAC;AAE1E,SAAS,cAAc,CACrB,KAAsC;IAEtC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,UAAU,IACT,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,EACvD,OAAO,EAAC,QAAQ,EAChB,KAAK,EAAC,KAAK,KACP,KAAK,EACT,IAAI,EAAE,KAAC,CAAC,KAAG,GACX,CACH,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,YAAY,GAAG,IAAI,CAAC,cAAc,CAA0B,CAAC;AAE1E,SAAS,aAAa,CACpB,KAAsC;IAEtC,MAAM,EACJ,QAAQ,EAAE,EAAE,eAAe,EAAE,GAC9B,GAAG,KAAK,CAAC;IACV,OAAO,CACL,KAAC,UAAU,IAAC,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,EAAE,OAAO,EAAC,QAAQ,KAAK,KAAK,EAAE,IAAI,EAAE,KAAC,CAAC,KAAG,GAAI,CAChH,CAAC;AACJ,CAAC;AACD,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,aAAa,CAAyB,CAAC"}
|
|
@@ -2,3 +2,4 @@ import type { FormContextType, RJSFSchema, StrictRJSFSchema, SubmitButtonProps }
|
|
|
2
2
|
/** The `SubmitButton` renders a button that represent the `Submit` action on a form
|
|
3
3
|
*/
|
|
4
4
|
export default function SubmitButton<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ uiSchema }: SubmitButtonProps<T, S, F>): import("react").JSX.Element | null;
|
|
5
|
+
//# sourceMappingURL=SubmitButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SubmitButton.d.ts","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/SubmitButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGpG;GACG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAClC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,EAAE,QAAQ,EAAE,EAAE,iBAAiB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,sCAUzC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { FormContextType, RJSFSchema, StrictRJSFSchema, TemplatesType } from '@rjsf/utils';
|
|
2
2
|
declare function buttonTemplates<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(): TemplatesType<T, S, F>['ButtonTemplates'];
|
|
3
3
|
export default buttonTemplates;
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMhG,iBAAS,eAAe,CACtB,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,KAC5B,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAU7C;AAED,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import AddButton from
|
|
2
|
-
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from
|
|
3
|
-
import SubmitButton from
|
|
1
|
+
import AddButton from "./AddButton.js";
|
|
2
|
+
import { CopyButton, MoveDownButton, MoveUpButton, RemoveButton, ClearButton } from "./IconButton.js";
|
|
3
|
+
import SubmitButton from "./SubmitButton.js";
|
|
4
4
|
function buttonTemplates() {
|
|
5
5
|
return {
|
|
6
6
|
SubmitButton,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/templates/ButtonTemplates/index.ts"],"names":[],"mappings":"AAEA,OAAO,SAAS,MAAM,gBAAiB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAkB,CAAC;AACvG,OAAO,YAAY,MAAM,mBAAoB,CAAC;AAE9C,SAAS,eAAe;IAKtB,OAAO;QACL,YAAY;QACZ,SAAS;QACT,UAAU;QACV,cAAc;QACd,YAAY;QACZ,YAAY;QACZ,WAAW;KACZ,CAAC;AACJ,CAAC;AAED,eAAe,eAAe,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/templates/CyclicSchemaExpandTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,uBAAuB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAK1G;;;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,+BAmBxC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Alert, Button, Group } from '@mantine/core';
|
|
3
3
|
import { ID_KEY, TranslatableString } from '@rjsf/utils';
|
|
4
|
-
import { ExclamationCircle } from
|
|
4
|
+
import { ExclamationCircle } from "./icons.js";
|
|
5
5
|
/** The `CyclicSchemaExpandTemplate` is the template to use to render the cyclic schema expand message and controls
|
|
6
6
|
*
|
|
7
7
|
* @param props - The `CyclicSchemaExpandProps` for this component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CyclicSchemaExpandTemplate.js","sourceRoot":"","sources":["../../src/templates/CyclicSchemaExpandTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CyclicSchemaExpandTemplate.js","sourceRoot":"","sources":["../../src/templates/CyclicSchemaExpandTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAErD,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAa,CAAC;AAEhD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,0BAA0B,CAIhD,KAAuC;IACvC,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACxD,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IACrC,MAAM,QAAQ,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC;IACjD,OAAO,CACL,KAAC,KAAK,IACJ,KAAK,EAAC,QAAQ,EACd,OAAO,EAAC,aAAa,EACrB,KAAK,EAAE,eAAe,CAAC,kBAAkB,CAAC,aAAa,EAAE,CAAC,IAAI,CAAC,CAAC,EAChE,IAAI,EAAE,KAAC,iBAAiB,KAAG,EAC3B,EAAE,EAAC,IAAI,YAEP,KAAC,KAAK,cACJ,KAAC,MAAM,IAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,KAAK,EAAC,QAAQ,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC,YAC1G,eAAe,CAAC,kBAAkB,CAAC,YAAY,CAAC,GAC1C,GACH,GACF,CACT,CAAC;AACJ,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/templates/DescriptionField.tsx"],"names":[],"mappings":"AAEA,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,sCAWtC"}
|
|
@@ -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/templates/ErrorList.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAKjG;;;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,+BAwBzB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Alert, Title, List } from '@mantine/core';
|
|
3
3
|
import { TranslatableString } from '@rjsf/utils';
|
|
4
|
-
import { ExclamationCircle } from
|
|
4
|
+
import { ExclamationCircle } from "./icons.js";
|
|
5
5
|
/** The `ErrorList` component is the template that renders the all the errors associated with the fields in the `Form`
|
|
6
6
|
*
|
|
7
7
|
* @param props - The `ErrorListProps` for this component
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorList.js","sourceRoot":"","sources":["../../src/templates/ErrorList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ErrorList.js","sourceRoot":"","sources":["../../src/templates/ErrorList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAEjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAa,CAAC;AAEhD;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAoF,EACnH,MAAM,EACN,QAAQ,GACgB;IACxB,MAAM,EAAE,eAAe,EAAE,GAAG,QAAQ,CAAC;IAErC,OAAO,CACL,KAAC,KAAK,IACJ,KAAK,EAAC,KAAK,EACX,OAAO,EAAC,aAAa,EACrB,KAAK,EACH,KAAC,KAAK,IAAC,KAAK,EAAE,CAAC,EAAE,EAAE,EAAC,QAAQ,YACzB,eAAe,CAAC,kBAAkB,CAAC,WAAW,CAAC,GAC1C,EAEV,IAAI,EAAE,KAAC,iBAAiB,KAAG,YAE3B,KAAC,IAAI,cACF,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAE5B,KAAC,IAAI,CAAC,IAAI,IAAwB,CAAC,EAAC,KAAK,YACtC,KAAK,CAAC,KAAK,IADE,SAAS,KAAK,EAAE,CAEpB,CACb,CAAC,GACG,GACD,CACT,CAAC;AACJ,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 }: 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/templates/FieldErrorTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGlG;;;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,EAAE,eAAe,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,sCAgBlD"}
|
|
@@ -6,7 +6,7 @@ import { errorId } from '@rjsf/utils';
|
|
|
6
6
|
* @param props - The `FieldErrorProps` for the errors being rendered
|
|
7
7
|
*/
|
|
8
8
|
export default function FieldErrorTemplate({ errors, fieldPathId }) {
|
|
9
|
-
if (!
|
|
9
|
+
if (!errors?.length) {
|
|
10
10
|
return null;
|
|
11
11
|
}
|
|
12
12
|
// In mantine, errors are handled directly in each component, so there is no need to render a separate error template.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/templates/FieldErrorTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,EAAE,MAAM,EAAE,WAAW,EAA4B;IACjD,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"FieldErrorTemplate.js","sourceRoot":"","sources":["../../src/templates/FieldErrorTemplate.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAIxC,EAAE,MAAM,EAAE,WAAW,EAA4B;IACjD,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;IACD,sHAAsH;IACtH,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;IAChC,OAAO,CACL,KAAC,GAAG,IAAC,EAAE,EAAE,EAAE,EAAE,CAAC,EAAC,KAAK,EAAC,OAAO,EAAC,MAAM,YACjC,KAAC,IAAI,cACF,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAE5B,KAAC,IAAI,CAAC,IAAI,cAA+B,KAAK,IAA9B,eAAe,KAAK,EAAE,CAAqB,CAC5D,CAAC,GACG,GACH,CACP,CAAC;AACJ,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/templates/FieldHelpTemplate.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGjG;;;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,sCAY/B"}
|
|
@@ -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/templates/FieldTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAGrG;;;;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,+BAgDnC"}
|
|
@@ -5,3 +5,4 @@ import type { GridTemplateProps } from '@rjsf/utils';
|
|
|
5
5
|
* @param props - The GridTemplateProps, including the extra props containing the Mantine 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/templates/GridTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;;;GAIG;AACH,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,KAAK,EAAE,iBAAiB,+BAqB5D"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import type { FormContextType, MultiSchemaFieldTemplateProps, RJSFSchema, StrictRJSFSchema } from '@rjsf/utils';
|
|
2
2
|
export default function MultiSchemaFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>({ selector, optionSchemaField }: MultiSchemaFieldTemplateProps<T, S, F>): import("react").JSX.Element;
|
|
3
|
+
//# sourceMappingURL=MultiSchemaFieldTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MultiSchemaFieldTemplate.d.ts","sourceRoot":"","sources":["../../src/templates/MultiSchemaFieldTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,6BAA6B,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEhH,MAAM,CAAC,OAAO,UAAU,wBAAwB,CAC9C,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,EAAE,QAAQ,EAAE,iBAAiB,EAAE,EAAE,6BAA6B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAOxE"}
|
|
@@ -6,3 +6,4 @@ import type { FormContextType, ObjectFieldTemplateProps, RJSFSchema, StrictRJSFS
|
|
|
6
6
|
* @param props - The `ObjectFieldTemplateProps` for this component
|
|
7
7
|
*/
|
|
8
8
|
export default function ObjectFieldTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: ObjectFieldTemplateProps<T, S, F>): import("react").JSX.Element;
|
|
9
|
+
//# sourceMappingURL=ObjectFieldTemplate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ObjectFieldTemplate.d.ts","sourceRoot":"","sources":["../../src/templates/ObjectFieldTemplate.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,eAAe,EAEf,wBAAwB,EACxB,UAAU,EACV,gBAAgB,EACjB,MAAM,aAAa,CAAC;AAGrB;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CACzC,CAAC,GAAG,GAAG,EACP,CAAC,SAAS,gBAAgB,GAAG,UAAU,EACvC,CAAC,SAAS,eAAe,GAAG,GAAG,EAC/B,KAAK,EAAE,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,+BAiFzC"}
|
|
@@ -15,9 +15,9 @@ export default function ObjectFieldTemplate(props) {
|
|
|
15
15
|
const showOptionalDataControlInTitle = !readonly && !disabled;
|
|
16
16
|
// Button templates are not overridden in the uiSchema
|
|
17
17
|
const { ButtonTemplates: { AddButton }, } = registry.templates;
|
|
18
|
-
const gridCols = (typeof
|
|
19
|
-
const gridSpacing = uiOptions
|
|
20
|
-
const gridVerticalSpacing = uiOptions
|
|
18
|
+
const gridCols = (typeof uiOptions?.gridCols === 'number' && uiOptions?.gridCols) || undefined;
|
|
19
|
+
const gridSpacing = uiOptions?.gridSpacing;
|
|
20
|
+
const gridVerticalSpacing = uiOptions?.gridVerticalSpacing;
|
|
21
21
|
return (_jsxs(Container, { id: fieldPathId.$id, p: 0, children: [title && (_jsx(TitleFieldTemplate, { id: titleId(fieldPathId), title: title, required: required, schema: schema, uiSchema: uiSchema, registry: registry, optionalDataControl: showOptionalDataControlInTitle ? optionalDataControl : undefined })), description && (_jsx(DescriptionFieldTemplate, { id: descriptionId(fieldPathId), description: description, schema: schema, uiSchema: uiSchema, registry: registry })), _jsxs(SimpleGrid, { cols: gridCols, spacing: gridSpacing, verticalSpacing: gridVerticalSpacing, mb: 'sm', children: [!showOptionalDataControlInTitle ? optionalDataControl : undefined, properties
|
|
22
22
|
.filter((e) => !e.hidden)
|
|
23
23
|
.map((element) => (_jsx(Box, { children: element.content }, element.name)))] }), canExpand(schema, uiSchema, formData) && (_jsx(Group, { mt: 'xs', justify: 'flex-end', children: _jsx(AddButton, { id: buttonId(fieldPathId, 'add'), disabled: disabled || readonly, onClick: onAddProperty, className: 'rjsf-object-property-expand', uiSchema: uiSchema, registry: registry }) }))] }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ObjectFieldTemplate.js","sourceRoot":"","sources":["../../src/templates/ObjectFieldTemplate.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAQlE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAErG;;;;;GAKG;AACH,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAIzC,KAAwC;IACxC,MAAM,EACJ,KAAK,EACL,WAAW,EACX,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,QAAQ,GACT,GAAG,KAAK,CAAC;IACV,MAAM,SAAS,GAAG,YAAY,CAAU,QAAQ,CAAC,CAAC;IAClD,MAAM,k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AAO,IAA9B,OAAO,CAAC,IAAI,CAAyB,CAChD,CAAC,IACO,EACZ,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,IAAI,CACxC,KAAC,KAAK,IAAC,EAAE,EAAC,IAAI,EAAC,OAAO,EAAC,UAAU,YAC/B,KAAC,SAAS,IACR,EAAE,EAAE,QAAQ,CAAC,WAAW,EAAE,KAAK,CAAC,EAChC,QAAQ,EAAE,QAAQ,IAAI,QAAQ,EAC9B,OAAO,EAAE,aAAa,EACtB,SAAS,EAAC,6BAA6B,EACvC,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GAClB,GACI,CACT,IACS,CACb,CAAC;AACJ,CAAC"}
|
|
@@ -8,3 +8,4 @@ import type { FormContextType, OptionalDataControlsTemplateProps, RJSFSchema, St
|
|
|
8
8
|
* @param props - The `OptionalDataControlsTemplateProps` for the template
|
|
9
9
|
*/
|
|
10
10
|
export default function OptionalDataControlsTemplate<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any>(props: OptionalDataControlsTemplateProps<T, S, F>): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=OptionalDataControlsTemplate.d.ts.map
|