@rjsf/semantic-ui 4.2.0 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/dist/AddButton/AddButton.d.ts +2 -0
  2. package/dist/AddButton/index.d.ts +2 -0
  3. package/dist/ArrayFieldTemplate/ArrayFieldTemplate.d.ts +2 -0
  4. package/dist/ArrayFieldTemplate/index.d.ts +2 -0
  5. package/dist/CheckboxWidget/CheckboxWidget.d.ts +2 -0
  6. package/dist/CheckboxWidget/index.d.ts +2 -0
  7. package/dist/CheckboxesWidget/CheckboxesWidget.d.ts +2 -0
  8. package/dist/CheckboxesWidget/index.d.ts +2 -0
  9. package/dist/DateTimeWidget/DateTimeWidget.d.ts +2 -0
  10. package/dist/DateTimeWidget/index.d.ts +2 -0
  11. package/dist/DateWidget/DateWidget.d.ts +2 -0
  12. package/dist/DateWidget/index.d.ts +2 -0
  13. package/dist/DescriptionField/DescriptionField.d.ts +5 -0
  14. package/dist/DescriptionField/index.d.ts +2 -0
  15. package/dist/EmailWidget/EmailWidget.d.ts +2 -0
  16. package/dist/EmailWidget/index.d.ts +2 -0
  17. package/dist/ErrorList/ErrorList.d.ts +27 -0
  18. package/dist/ErrorList/index.d.ts +2 -0
  19. package/dist/FieldTemplate/FieldTemplate.d.ts +14 -0
  20. package/dist/FieldTemplate/WrapIfAdditional.d.ts +14 -0
  21. package/dist/FieldTemplate/index.d.ts +2 -0
  22. package/dist/Fields/Fields.d.ts +7 -0
  23. package/dist/Fields/index.d.ts +2 -0
  24. package/dist/HelpField/HelpField.d.ts +15 -0
  25. package/dist/HelpField/index.d.ts +2 -0
  26. package/dist/IconButton/IconButton.d.ts +9 -0
  27. package/dist/IconButton/index.d.ts +2 -0
  28. package/dist/ObjectFieldTemplate/ObjectFieldTemplate.d.ts +16 -0
  29. package/dist/ObjectFieldTemplate/index.d.ts +2 -0
  30. package/dist/PasswordWidget/PasswordWidget.d.ts +2 -0
  31. package/dist/PasswordWidget/index.d.ts +2 -0
  32. package/dist/RadioWidget/RadioWidget.d.ts +2 -0
  33. package/dist/RadioWidget/index.d.ts +2 -0
  34. package/dist/RangeWidget/RangeWidget.d.ts +2 -0
  35. package/dist/RangeWidget/index.d.ts +2 -0
  36. package/dist/RawErrors/RawErrors.d.ts +41 -0
  37. package/dist/RawErrors/index.d.ts +2 -0
  38. package/dist/SelectWidget/SelectWidget.d.ts +2 -0
  39. package/dist/SelectWidget/index.d.ts +2 -0
  40. package/dist/SemanticUIForm/SemanticUIForm.d.ts +3 -0
  41. package/dist/SemanticUIForm/index.d.ts +2 -0
  42. package/dist/SubmitButton/SubmitButton.d.ts +4 -0
  43. package/dist/SubmitButton/index.d.ts +2 -0
  44. package/dist/TextWidget/TextWidget.d.ts +2 -0
  45. package/dist/TextWidget/index.d.ts +2 -0
  46. package/dist/TextareaWidget/TextareaWidget.d.ts +2 -0
  47. package/dist/TextareaWidget/index.d.ts +2 -0
  48. package/dist/Theme/Theme.d.ts +35 -0
  49. package/dist/Theme/index.d.ts +2 -0
  50. package/dist/TitleField/TitleField.d.ts +20 -0
  51. package/dist/TitleField/index.d.ts +2 -0
  52. package/dist/URLWidget/URLWidget.d.ts +2 -0
  53. package/dist/URLWidget/index.d.ts +2 -0
  54. package/dist/UpDownWidget/UpDownWidget.d.ts +2 -0
  55. package/dist/UpDownWidget/index.d.ts +2 -0
  56. package/dist/Widgets/Widgets.d.ts +31 -0
  57. package/dist/Widgets/index.d.ts +2 -0
  58. package/dist/index.d.ts +9 -0
  59. package/dist/index.js +8 -0
  60. package/dist/semantic-ui.cjs.development.js +1606 -0
  61. package/dist/semantic-ui.cjs.development.js.map +1 -0
  62. package/dist/semantic-ui.cjs.production.min.js +2 -0
  63. package/dist/semantic-ui.cjs.production.min.js.map +1 -0
  64. package/dist/semantic-ui.esm.js +1594 -0
  65. package/dist/semantic-ui.esm.js.map +1 -0
  66. package/dist/semantic-ui.umd.development.js +1607 -0
  67. package/dist/semantic-ui.umd.development.js.map +1 -0
  68. package/dist/semantic-ui.umd.production.min.js +2 -0
  69. package/dist/semantic-ui.umd.production.min.js.map +1 -0
  70. package/dist/util.d.ts +62 -0
  71. package/package.json +8 -10
  72. package/dist/cjs/AddButton/AddButton.js +0 -28
  73. package/dist/cjs/AddButton/index.js +0 -32
  74. package/dist/cjs/ArrayFieldTemplate/ArrayFieldTemplate.js +0 -251
  75. package/dist/cjs/ArrayFieldTemplate/index.js +0 -32
  76. package/dist/cjs/CheckboxWidget/CheckboxWidget.js +0 -79
  77. package/dist/cjs/CheckboxWidget/index.js +0 -32
  78. package/dist/cjs/CheckboxesWidget/CheckboxesWidget.js +0 -115
  79. package/dist/cjs/CheckboxesWidget/index.js +0 -32
  80. package/dist/cjs/DateTimeWidget/DateTimeWidget.js +0 -83
  81. package/dist/cjs/DateTimeWidget/index.js +0 -32
  82. package/dist/cjs/DateWidget/DateWidget.js +0 -80
  83. package/dist/cjs/DateWidget/index.js +0 -32
  84. package/dist/cjs/DescriptionField/DescriptionField.js +0 -26
  85. package/dist/cjs/DescriptionField/index.js +0 -32
  86. package/dist/cjs/EmailWidget/EmailWidget.js +0 -80
  87. package/dist/cjs/EmailWidget/index.js +0 -32
  88. package/dist/cjs/ErrorList/ErrorList.js +0 -40
  89. package/dist/cjs/ErrorList/index.js +0 -32
  90. package/dist/cjs/FieldTemplate/FieldTemplate.js +0 -80
  91. package/dist/cjs/FieldTemplate/WrapIfAdditional.js +0 -85
  92. package/dist/cjs/FieldTemplate/index.js +0 -32
  93. package/dist/cjs/Fields/Fields.js +0 -19
  94. package/dist/cjs/Fields/index.js +0 -32
  95. package/dist/cjs/HelpField/HelpField.js +0 -43
  96. package/dist/cjs/HelpField/index.js +0 -32
  97. package/dist/cjs/IconButton/IconButton.js +0 -39
  98. package/dist/cjs/IconButton/index.js +0 -32
  99. package/dist/cjs/ObjectFieldTemplate/ObjectFieldTemplate.js +0 -64
  100. package/dist/cjs/ObjectFieldTemplate/index.js +0 -32
  101. package/dist/cjs/PasswordWidget/PasswordWidget.js +0 -80
  102. package/dist/cjs/PasswordWidget/index.js +0 -32
  103. package/dist/cjs/RadioWidget/RadioWidget.js +0 -80
  104. package/dist/cjs/RadioWidget/index.js +0 -32
  105. package/dist/cjs/RangeWidget/RangeWidget.js +0 -75
  106. package/dist/cjs/RangeWidget/index.js +0 -32
  107. package/dist/cjs/RawErrors/RawErrors.js +0 -65
  108. package/dist/cjs/RawErrors/index.js +0 -32
  109. package/dist/cjs/SelectWidget/SelectWidget.js +0 -160
  110. package/dist/cjs/SelectWidget/index.js +0 -32
  111. package/dist/cjs/SemanticUIForm/SemanticUIForm.js +0 -17
  112. package/dist/cjs/SemanticUIForm/index.js +0 -32
  113. package/dist/cjs/SubmitButton/SubmitButton.js +0 -39
  114. package/dist/cjs/SubmitButton/index.js +0 -32
  115. package/dist/cjs/TextWidget/TextWidget.js +0 -81
  116. package/dist/cjs/TextWidget/index.js +0 -32
  117. package/dist/cjs/TextareaWidget/TextareaWidget.js +0 -83
  118. package/dist/cjs/TextareaWidget/index.js +0 -32
  119. package/dist/cjs/Theme/Theme.js +0 -49
  120. package/dist/cjs/Theme/index.js +0 -32
  121. package/dist/cjs/TitleField/TitleField.js +0 -43
  122. package/dist/cjs/TitleField/index.js +0 -32
  123. package/dist/cjs/URLWidget/URLWidget.js +0 -79
  124. package/dist/cjs/URLWidget/index.js +0 -32
  125. package/dist/cjs/UpDownWidget/UpDownWidget.js +0 -79
  126. package/dist/cjs/UpDownWidget/index.js +0 -32
  127. package/dist/cjs/Widgets/Widgets.js +0 -55
  128. package/dist/cjs/Widgets/index.js +0 -32
  129. package/dist/cjs/index.js +0 -70
  130. package/dist/cjs/util.js +0 -134
  131. package/dist/es/AddButton/AddButton.js +0 -17
  132. package/dist/es/AddButton/index.js +0 -4
  133. package/dist/es/ArrayFieldTemplate/ArrayFieldTemplate.js +0 -237
  134. package/dist/es/ArrayFieldTemplate/index.js +0 -4
  135. package/dist/es/CheckboxWidget/CheckboxWidget.js +0 -66
  136. package/dist/es/CheckboxWidget/index.js +0 -4
  137. package/dist/es/CheckboxesWidget/CheckboxesWidget.js +0 -103
  138. package/dist/es/CheckboxesWidget/index.js +0 -4
  139. package/dist/es/DateTimeWidget/DateTimeWidget.js +0 -70
  140. package/dist/es/DateTimeWidget/index.js +0 -3
  141. package/dist/es/DateWidget/DateWidget.js +0 -67
  142. package/dist/es/DateWidget/index.js +0 -3
  143. package/dist/es/DescriptionField/DescriptionField.js +0 -16
  144. package/dist/es/DescriptionField/index.js +0 -4
  145. package/dist/es/EmailWidget/EmailWidget.js +0 -66
  146. package/dist/es/EmailWidget/index.js +0 -3
  147. package/dist/es/ErrorList/ErrorList.js +0 -27
  148. package/dist/es/ErrorList/index.js +0 -4
  149. package/dist/es/FieldTemplate/FieldTemplate.js +0 -65
  150. package/dist/es/FieldTemplate/WrapIfAdditional.js +0 -72
  151. package/dist/es/FieldTemplate/index.js +0 -4
  152. package/dist/es/Fields/Fields.js +0 -7
  153. package/dist/es/Fields/index.js +0 -4
  154. package/dist/es/HelpField/HelpField.js +0 -30
  155. package/dist/es/HelpField/index.js +0 -4
  156. package/dist/es/IconButton/IconButton.js +0 -27
  157. package/dist/es/IconButton/index.js +0 -4
  158. package/dist/es/ObjectFieldTemplate/ObjectFieldTemplate.js +0 -50
  159. package/dist/es/ObjectFieldTemplate/index.js +0 -4
  160. package/dist/es/PasswordWidget/PasswordWidget.js +0 -67
  161. package/dist/es/PasswordWidget/index.js +0 -4
  162. package/dist/es/RadioWidget/RadioWidget.js +0 -69
  163. package/dist/es/RadioWidget/index.js +0 -4
  164. package/dist/es/RangeWidget/RangeWidget.js +0 -62
  165. package/dist/es/RangeWidget/index.js +0 -4
  166. package/dist/es/RawErrors/RawErrors.js +0 -51
  167. package/dist/es/RawErrors/index.js +0 -4
  168. package/dist/es/SelectWidget/SelectWidget.js +0 -146
  169. package/dist/es/SelectWidget/index.js +0 -4
  170. package/dist/es/SemanticUIForm/SemanticUIForm.js +0 -5
  171. package/dist/es/SemanticUIForm/index.js +0 -4
  172. package/dist/es/SubmitButton/SubmitButton.js +0 -24
  173. package/dist/es/SubmitButton/index.js +0 -3
  174. package/dist/es/TextWidget/TextWidget.js +0 -68
  175. package/dist/es/TextWidget/index.js +0 -4
  176. package/dist/es/TextareaWidget/TextareaWidget.js +0 -70
  177. package/dist/es/TextareaWidget/index.js +0 -4
  178. package/dist/es/Theme/Theme.js +0 -31
  179. package/dist/es/Theme/index.js +0 -4
  180. package/dist/es/TitleField/TitleField.js +0 -31
  181. package/dist/es/TitleField/index.js +0 -4
  182. package/dist/es/URLWidget/URLWidget.js +0 -65
  183. package/dist/es/URLWidget/index.js +0 -3
  184. package/dist/es/UpDownWidget/UpDownWidget.js +0 -66
  185. package/dist/es/UpDownWidget/index.js +0 -4
  186. package/dist/es/Widgets/Widgets.js +0 -31
  187. package/dist/es/Widgets/index.js +0 -4
  188. package/dist/es/index.js +0 -10
  189. package/dist/es/util.js +0 -119
@@ -0,0 +1,1607 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@rjsf/core'), require('semantic-ui-react'), require('react'), require('prop-types'), require('nanoid'), require('lodash-es')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@rjsf/core', 'semantic-ui-react', 'react', 'prop-types', 'nanoid', 'lodash-es'], factory) :
4
+ (global = global || self, factory(global['@rjsf/semantic-ui'] = {}, global.core, global.semanticUiReact, global.React, global.PropTypes, global.nanoid, global._));
5
+ }(this, (function (exports, core, semanticUiReact, React, PropTypes, nanoid, _) { 'use strict';
6
+
7
+ React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
8
+ PropTypes = PropTypes && Object.prototype.hasOwnProperty.call(PropTypes, 'default') ? PropTypes['default'] : PropTypes;
9
+ _ = _ && Object.prototype.hasOwnProperty.call(_, 'default') ? _['default'] : _;
10
+
11
+ function _extends() {
12
+ _extends = Object.assign || function (target) {
13
+ for (var i = 1; i < arguments.length; i++) {
14
+ var source = arguments[i];
15
+
16
+ for (var key in source) {
17
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
18
+ target[key] = source[key];
19
+ }
20
+ }
21
+ }
22
+
23
+ return target;
24
+ };
25
+
26
+ return _extends.apply(this, arguments);
27
+ }
28
+
29
+ function _objectWithoutPropertiesLoose(source, excluded) {
30
+ if (source == null) return {};
31
+ var target = {};
32
+ var sourceKeys = Object.keys(source);
33
+ var key, i;
34
+
35
+ for (i = 0; i < sourceKeys.length; i++) {
36
+ key = sourceKeys[i];
37
+ if (excluded.indexOf(key) >= 0) continue;
38
+ target[key] = source[key];
39
+ }
40
+
41
+ return target;
42
+ }
43
+
44
+ function AddButton(props) {
45
+ return React.createElement(semanticUiReact.Button, _extends({}, props, {
46
+ icon: true,
47
+ size: "tiny",
48
+ labelPosition: "left"
49
+ }), React.createElement(semanticUiReact.Icon, {
50
+ name: "plus"
51
+ }), "Add Item");
52
+ }
53
+
54
+ /**
55
+ * Extract props meant for semantic UI components from props that are
56
+ * passed to Widgets, Templates and Fields.
57
+ * @param {Object} params
58
+ * @param {Object?} params.formContext
59
+ * @param {Object?} params.uiSchema
60
+ * @param {Object?} params.options
61
+ * @param {Object?} params.defaultSchemaProps
62
+ * @param {Object?} params.defaultContextProps
63
+ * @returns {any}
64
+ */
65
+
66
+ function getSemanticProps(_ref) {
67
+ var _ref$formContext = _ref.formContext,
68
+ formContext = _ref$formContext === void 0 ? {} : _ref$formContext,
69
+ _ref$uiSchema = _ref.uiSchema,
70
+ uiSchema = _ref$uiSchema === void 0 ? {} : _ref$uiSchema,
71
+ _ref$options = _ref.options,
72
+ options = _ref$options === void 0 ? {} : _ref$options,
73
+ _ref$defaultSchemaPro = _ref.defaultSchemaProps,
74
+ defaultSchemaProps = _ref$defaultSchemaPro === void 0 ? {
75
+ fluid: true,
76
+ inverted: false
77
+ } : _ref$defaultSchemaPro,
78
+ _ref$defaultContextPr = _ref.defaultContextProps,
79
+ defaultContextProps = _ref$defaultContextPr === void 0 ? {} : _ref$defaultContextPr;
80
+ var formContextProps = formContext.semantic;
81
+ var schemaProps = uiSchema["ui:options"] && uiSchema["ui:options"].semantic;
82
+ var optionProps = options.semantic; // formContext props should overide other props
83
+
84
+ return Object.assign({}, _extends({}, defaultSchemaProps && defaultSchemaProps), _extends({}, defaultContextProps && defaultContextProps), schemaProps, optionProps, formContextProps);
85
+ }
86
+ /**
87
+ * Extract error props meant for semantic UI components from props that are
88
+ * passed to Widgets, Templates and Fields.
89
+ * @param {Object} params
90
+ * @param {Object?} params.formContext
91
+ * @param {Object?} params.uiSchema
92
+ * @param {Object?} params.defaultProps
93
+ * @returns {any}
94
+ */
95
+
96
+ function getSemanticErrorProps(_ref2) {
97
+ var _ref2$formContext = _ref2.formContext,
98
+ formContext = _ref2$formContext === void 0 ? {} : _ref2$formContext,
99
+ _ref2$uiSchema = _ref2.uiSchema,
100
+ uiSchema = _ref2$uiSchema === void 0 ? {} : _ref2$uiSchema,
101
+ _ref2$options = _ref2.options,
102
+ options = _ref2$options === void 0 ? {} : _ref2$options,
103
+ _ref2$defaultProps = _ref2.defaultProps,
104
+ defaultProps = _ref2$defaultProps === void 0 ? {
105
+ size: 'small',
106
+ pointing: 'above'
107
+ } : _ref2$defaultProps;
108
+ var formContextProps = formContext.semantic && formContext.semantic.errorOptions;
109
+ var schemaProps = uiSchema["ui:options"] && uiSchema["ui:options"].semantic && uiSchema["ui:options"].semantic.errorOptions;
110
+ var optionProps = options.semantic && options.semantic.errorOptions;
111
+ return Object.assign({}, _extends({}, defaultProps && defaultProps), schemaProps, optionProps, formContextProps);
112
+ }
113
+ /**
114
+ * Combine multiple strings containing class names into a single string,
115
+ * removing duplicates. E.g.
116
+ * cleanClassNames('bar', 'baz bar', 'x y ', undefined)
117
+ * // 'bar baz x y'
118
+ * @param {Array} classNameArr
119
+ * @param {Array} omit
120
+ * @returns {string}
121
+ */
122
+
123
+ function cleanClassNames(classNameArr, omit) {
124
+ if (omit === void 0) {
125
+ omit = [];
126
+ }
127
+
128
+ // Split each arg on whitespace, and add it to an array. Skip false-y args
129
+ // like "" and undefined.
130
+ var classList = classNameArr.filter(Boolean).reduce(function (previous, current) {
131
+ return previous.concat(current.trim().split(/\s+/));
132
+ }, []); // Remove any class names from omit, and make the rest unique before
133
+ // returning them as a string
134
+
135
+ return [].concat(new Set(classList.filter(function (cn) {
136
+ return !omit.includes(cn);
137
+ }))).join(" ");
138
+ }
139
+ /**
140
+ *
141
+ * @param {boolean} wrap
142
+ * @param Component
143
+ * @param {Object} props
144
+ * @returns {*}
145
+ * @constructor
146
+ */
147
+
148
+ function MaybeWrap(_ref3) {
149
+ var wrap = _ref3.wrap,
150
+ _ref3$component = _ref3.component,
151
+ Component = _ref3$component === void 0 ? "div" : _ref3$component,
152
+ props = _objectWithoutPropertiesLoose(_ref3, ["wrap", "component"]);
153
+
154
+ return wrap ? React.createElement(Component, props) : props.children;
155
+ }
156
+
157
+ var isFixedItems = core.utils.isFixedItems;
158
+
159
+ var ArrayFieldTitle = function ArrayFieldTitle(_ref) {
160
+ var TitleField = _ref.TitleField,
161
+ idSchema = _ref.idSchema,
162
+ uiSchema = _ref.uiSchema,
163
+ title = _ref.title;
164
+
165
+ if (!title) {
166
+ return null;
167
+ }
168
+
169
+ var id = idSchema.$id + "__title";
170
+ return React.createElement(TitleField, {
171
+ id: id,
172
+ title: title,
173
+ options: uiSchema["ui:options"]
174
+ });
175
+ };
176
+
177
+ function ArrayFieldDescription(_ref2) {
178
+ var DescriptionField = _ref2.DescriptionField,
179
+ idSchema = _ref2.idSchema,
180
+ description = _ref2.description;
181
+
182
+ if (!description) {
183
+ // See #312: Ensure compatibility with old versions of React.
184
+ return null;
185
+ }
186
+
187
+ var id = idSchema.$id + "__description";
188
+ return React.createElement(DescriptionField, {
189
+ id: id,
190
+ description: description
191
+ });
192
+ }
193
+
194
+ var gridStyle = function gridStyle(vertical) {
195
+ return {
196
+ display: "grid",
197
+ gridTemplateColumns: "1fr " + (vertical ? 65 : 110) + "px"
198
+ };
199
+ }; // checks if its the first array item
200
+
201
+
202
+ function isInitialArrayItem(props) {
203
+ // no underscore because im not sure if we want to import a library here
204
+ var idSchema = props.children.props.idSchema;
205
+ return idSchema.target && idSchema.conditions;
206
+ } // Used in the two templates
207
+
208
+
209
+ function DefaultArrayItem(props) {
210
+ return React.createElement("div", {
211
+ className: "array-item",
212
+ key: props.key
213
+ }, React.createElement(MaybeWrap, {
214
+ wrap: props.wrapItem,
215
+ component: semanticUiReact.Segment
216
+ }, React.createElement(semanticUiReact.Grid, {
217
+ style: !isInitialArrayItem(props) ? _extends({}, gridStyle(!props.horizontalButtons), {
218
+ alignItems: "center"
219
+ }) : gridStyle(!props.horizontalButtons)
220
+ }, React.createElement(semanticUiReact.Grid.Column, {
221
+ width: 16,
222
+ verticalAlign: "middle"
223
+ }, props.children), props.hasToolbar && React.createElement(semanticUiReact.Grid.Column, null, (props.hasMoveUp || props.hasMoveDown || props.hasRemove) && React.createElement(semanticUiReact.Button.Group, {
224
+ size: "mini",
225
+ vertical: !props.horizontalButtons
226
+ }, (props.hasMoveUp || props.hasMoveDown) && React.createElement(semanticUiReact.Button, {
227
+ icon: "angle up",
228
+ className: "array-item-move-up",
229
+ tabIndex: "-1",
230
+ disabled: props.disabled || props.readOnly || !props.hasMoveUp,
231
+ onClick: props.onReorderClick(props.index, props.index - 1)
232
+ }), (props.hasMoveUp || props.hasMoveDown) && React.createElement(semanticUiReact.Button, {
233
+ icon: "angle down",
234
+ className: "array-item-move-down",
235
+ tabIndex: "-1",
236
+ disabled: props.disabled || props.readOnly || !props.hasMoveDown,
237
+ onClick: props.onReorderClick(props.index, props.index + 1)
238
+ }), props.hasRemove && React.createElement(semanticUiReact.Button, {
239
+ icon: "trash",
240
+ className: "array-item-remove",
241
+ tabIndex: "-1",
242
+ disabled: props.disabled || props.readOnly,
243
+ onClick: props.onDropIndexClick(props.index)
244
+ }))))));
245
+ } // Used for arrays that are represented as multiple selection fields
246
+ // (displayed as a multi select or checkboxes)
247
+
248
+
249
+ function DefaultFixedArrayFieldTemplate(_ref3) {
250
+ var uiSchema = _ref3.uiSchema,
251
+ idSchema = _ref3.idSchema,
252
+ canAdd = _ref3.canAdd,
253
+ className = _ref3.className,
254
+ classNames = _ref3.classNames,
255
+ disabled = _ref3.disabled,
256
+ items = _ref3.items,
257
+ onAddClick = _ref3.onAddClick,
258
+ readOnly = _ref3.readOnly,
259
+ required = _ref3.required,
260
+ schema = _ref3.schema,
261
+ title = _ref3.title,
262
+ TitleField = _ref3.TitleField,
263
+ itemProps = _ref3.itemProps;
264
+ var fieldTitle = uiSchema["ui:title"] || title;
265
+ var fieldDescription = uiSchema["ui:description"] || schema.description;
266
+ return React.createElement("div", {
267
+ className: cleanClassNames([className, classNames])
268
+ }, React.createElement(ArrayFieldTitle, {
269
+ key: "array-field-title-" + idSchema.$id,
270
+ TitleField: TitleField,
271
+ idSchema: idSchema,
272
+ uiSchema: uiSchema,
273
+ title: fieldTitle,
274
+ required: required
275
+ }), fieldDescription && React.createElement("div", {
276
+ className: "field-description",
277
+ key: "field-description-" + idSchema.$id
278
+ }, fieldDescription), React.createElement("div", {
279
+ key: "array-item-list-" + idSchema.$id
280
+ }, React.createElement("div", {
281
+ className: "row array-item-list"
282
+ }, items && items.map(function (p) {
283
+ return DefaultArrayItem(_extends({}, p, itemProps));
284
+ })), canAdd && React.createElement("div", {
285
+ style: {
286
+ marginTop: "1rem",
287
+ position: "relative",
288
+ textAlign: "right"
289
+ }
290
+ }, React.createElement(AddButton, {
291
+ onClick: onAddClick,
292
+ disabled: disabled || readOnly
293
+ }))));
294
+ }
295
+
296
+ function DefaultNormalArrayFieldTemplate(_ref4) {
297
+ var uiSchema = _ref4.uiSchema,
298
+ idSchema = _ref4.idSchema,
299
+ canAdd = _ref4.canAdd,
300
+ className = _ref4.className,
301
+ classNames = _ref4.classNames,
302
+ disabled = _ref4.disabled,
303
+ DescriptionField = _ref4.DescriptionField,
304
+ items = _ref4.items,
305
+ onAddClick = _ref4.onAddClick,
306
+ readOnly = _ref4.readOnly,
307
+ required = _ref4.required,
308
+ schema = _ref4.schema,
309
+ title = _ref4.title,
310
+ TitleField = _ref4.TitleField,
311
+ itemProps = _ref4.itemProps;
312
+ var fieldTitle = uiSchema["ui:title"] || title;
313
+ var fieldDescription = uiSchema["ui:description"] || schema.description;
314
+ return React.createElement("div", {
315
+ className: cleanClassNames([className, classNames, "sortable-form-fields"])
316
+ }, React.createElement(ArrayFieldTitle, {
317
+ key: "array-field-title-" + idSchema.$id,
318
+ TitleField: TitleField,
319
+ idSchema: idSchema,
320
+ uiSchema: uiSchema,
321
+ title: fieldTitle,
322
+ required: required
323
+ }), fieldDescription && React.createElement(ArrayFieldDescription, {
324
+ key: "array-field-description-" + idSchema.$id,
325
+ DescriptionField: DescriptionField,
326
+ idSchema: idSchema,
327
+ description: fieldDescription
328
+ }), React.createElement("div", {
329
+ key: "array-item-list-" + idSchema.$id
330
+ }, React.createElement("div", {
331
+ className: "row array-item-list"
332
+ }, items && items.map(function (p) {
333
+ return DefaultArrayItem(_extends({}, p, itemProps));
334
+ })), canAdd && React.createElement("div", {
335
+ style: {
336
+ marginTop: "1rem",
337
+ position: "relative",
338
+ textAlign: "right"
339
+ }
340
+ }, React.createElement(AddButton, {
341
+ onClick: onAddClick,
342
+ disabled: disabled || readOnly
343
+ }))));
344
+ }
345
+
346
+ function ArrayFieldTemplate(props) {
347
+ var options = props.options,
348
+ schema = props.schema,
349
+ uiSchema = props.uiSchema,
350
+ formContext = props.formContext;
351
+ var semanticProps = getSemanticProps({
352
+ options: options,
353
+ uiSchema: uiSchema,
354
+ formContext: formContext,
355
+ defaultSchemaProps: {
356
+ horizontalButtons: false,
357
+ wrapItem: false
358
+ }
359
+ });
360
+ var horizontalButtons = semanticProps.horizontalButtons,
361
+ wrapItem = semanticProps.wrapItem;
362
+ var itemProps = {
363
+ horizontalButtons: horizontalButtons,
364
+ wrapItem: wrapItem
365
+ };
366
+
367
+ if (isFixedItems(schema)) {
368
+ return React.createElement(DefaultFixedArrayFieldTemplate, _extends({}, props, {
369
+ itemProps: itemProps
370
+ }));
371
+ }
372
+
373
+ return React.createElement(DefaultNormalArrayFieldTemplate, _extends({}, props, {
374
+ itemProps: itemProps
375
+ }));
376
+ }
377
+
378
+ /* eslint-disable react/no-array-index-key */
379
+ /**
380
+ *
381
+ * @param errors
382
+ * @returns {*}
383
+ * @constructor
384
+ */
385
+
386
+ function ErrorList(_ref) {
387
+ var errors = _ref.errors;
388
+ return React.createElement(semanticUiReact.Message, {
389
+ negative: true
390
+ }, React.createElement(semanticUiReact.Message.Header, null, "Errors"), React.createElement(semanticUiReact.Message.List, null, errors.map(function (error, index) {
391
+ return React.createElement(semanticUiReact.Message.Item, {
392
+ key: "error-" + index
393
+ }, error.stack);
394
+ })));
395
+ }
396
+
397
+ ErrorList.propTypes = {
398
+ errors: PropTypes.array
399
+ };
400
+
401
+ /* eslint-disable react/prop-types */
402
+
403
+ function DescriptionField(_ref) {
404
+ var className = _ref.className,
405
+ description = _ref.description;
406
+
407
+ if (description) {
408
+ return React.createElement("p", {
409
+ className: className || "sui-description"
410
+ }, description);
411
+ }
412
+ }
413
+
414
+ function TitleField(_ref) {
415
+ var title = _ref.title,
416
+ options = _ref.options;
417
+ var semantic = options.semantic;
418
+
419
+ if (title) {
420
+ return React.createElement(semanticUiReact.Header, _extends({}, semantic, {
421
+ as: "h5"
422
+ }), title);
423
+ }
424
+ }
425
+
426
+ TitleField.defaultProps = {
427
+ options: {
428
+ semantic: {
429
+ inverted: false,
430
+ dividing: true
431
+ }
432
+ }
433
+ };
434
+ TitleField.propTypes = {
435
+ options: PropTypes.object
436
+ };
437
+
438
+ var Fields = {
439
+ DescriptionField: DescriptionField,
440
+ TitleField: TitleField
441
+ };
442
+
443
+ /* eslint-disable react/prop-types */
444
+ /**
445
+ * @return {null}
446
+ */
447
+
448
+ function HelpField(_ref) {
449
+ var helpText = _ref.helpText,
450
+ id = _ref.id;
451
+
452
+ if (helpText) {
453
+ return React.createElement(semanticUiReact.Message, {
454
+ size: "mini",
455
+ info: true,
456
+ id: id,
457
+ content: helpText
458
+ });
459
+ }
460
+
461
+ return null;
462
+ }
463
+
464
+ HelpField.propTypes = {
465
+ helpText: PropTypes.string,
466
+ id: PropTypes.string
467
+ };
468
+
469
+ /* eslint-disable react/no-array-index-key */
470
+ /**
471
+ *
472
+ * @param errors
473
+ * @param displayError
474
+ * @returns {*}
475
+ * @constructor
476
+ * @return {null}
477
+ */
478
+
479
+ function RawErrors(_ref) {
480
+ var errors = _ref.errors,
481
+ options = _ref.options;
482
+ var pointing = options.pointing,
483
+ size = options.size;
484
+
485
+ if (errors && errors.length > 0) {
486
+ return React.createElement(semanticUiReact.Label, {
487
+ color: "red",
488
+ pointing: pointing || "above",
489
+ size: size || "small",
490
+ basic: true
491
+ }, React.createElement(semanticUiReact.List, {
492
+ bulleted: true
493
+ }, errors.map(function (error) {
494
+ return React.createElement(semanticUiReact.List.Item, {
495
+ key: nanoid.nanoid(),
496
+ content: error
497
+ });
498
+ })));
499
+ }
500
+
501
+ return null;
502
+ }
503
+
504
+ RawErrors.defaultProps = {
505
+ options: {
506
+ pointing: "above",
507
+ size: "small"
508
+ }
509
+ };
510
+ RawErrors.propTypes = {
511
+ options: PropTypes.object,
512
+ errors: PropTypes.array
513
+ };
514
+
515
+ var ADDITIONAL_PROPERTY_FLAG = core.utils.ADDITIONAL_PROPERTY_FLAG;
516
+
517
+ var WrapIfAdditional = function WrapIfAdditional(_ref) {
518
+ var children = _ref.children,
519
+ classNames = _ref.classNames,
520
+ disabled = _ref.disabled,
521
+ formContext = _ref.formContext,
522
+ id = _ref.id,
523
+ label = _ref.label,
524
+ onDropPropertyClick = _ref.onDropPropertyClick,
525
+ onKeyChange = _ref.onKeyChange,
526
+ readonly = _ref.readonly,
527
+ required = _ref.required,
528
+ schema = _ref.schema;
529
+ var _formContext$readonly = formContext.readonlyAsDisabled,
530
+ readonlyAsDisabled = _formContext$readonly === void 0 ? true : _formContext$readonly,
531
+ wrapperStyle = formContext.wrapperStyle;
532
+ var keyLabel = label + " Key"; // i18n ?
533
+
534
+ var additional = schema.hasOwnProperty(ADDITIONAL_PROPERTY_FLAG);
535
+
536
+ if (!additional) {
537
+ return React.createElement(React.Fragment, null, children);
538
+ }
539
+
540
+ var handleBlur = function handleBlur(_ref2) {
541
+ var target = _ref2.target;
542
+ return onKeyChange(target.value);
543
+ };
544
+
545
+ return React.createElement("div", {
546
+ className: classNames,
547
+ key: id + "-key"
548
+ }, React.createElement(semanticUiReact.Grid, {
549
+ columns: "equal"
550
+ }, React.createElement(semanticUiReact.Grid.Row, null, React.createElement(semanticUiReact.Grid.Column, {
551
+ className: "form-additional"
552
+ }, React.createElement(semanticUiReact.Form.Group, {
553
+ widths: "equal",
554
+ grouped: true
555
+ }, React.createElement(semanticUiReact.Form.Input, {
556
+ className: "form-group",
557
+ hasFeedback: true,
558
+ fluid: true,
559
+ htmlFor: "" + id,
560
+ label: keyLabel,
561
+ required: required,
562
+ defaultValue: label,
563
+ disabled: disabled || readonlyAsDisabled && readonly,
564
+ id: "" + id,
565
+ name: "" + id,
566
+ onBlur: !readonly ? handleBlur : undefined,
567
+ style: wrapperStyle,
568
+ type: "text"
569
+ }))), React.createElement(semanticUiReact.Grid.Column, {
570
+ className: "form-additional",
571
+ verticalAlign: "middle"
572
+ }, children), React.createElement(semanticUiReact.Grid.Column, null, React.createElement(semanticUiReact.Button, {
573
+ size: "mini",
574
+ icon: "trash",
575
+ className: "array-item-remove",
576
+ tabIndex: "-1",
577
+ disabled: disabled || readonly,
578
+ onClick: onDropPropertyClick(label)
579
+ })))));
580
+ };
581
+
582
+ function FieldTemplate(_ref) {
583
+ var id = _ref.id,
584
+ children = _ref.children,
585
+ classNames = _ref.classNames,
586
+ displayLabel = _ref.displayLabel,
587
+ label = _ref.label,
588
+ _ref$rawErrors = _ref.rawErrors,
589
+ rawErrors = _ref$rawErrors === void 0 ? [] : _ref$rawErrors,
590
+ rawHelp = _ref.rawHelp,
591
+ hidden = _ref.hidden,
592
+ rawDescription = _ref.rawDescription,
593
+ props = _objectWithoutPropertiesLoose(_ref, ["id", "children", "className", "classNames", "displayLabel", "label", "rawErrors", "rawHelp", "hidden", "rawDescription"]);
594
+
595
+ var semanticProps = getSemanticProps(props);
596
+ var wrapLabel = semanticProps.wrapLabel,
597
+ wrapContent = semanticProps.wrapContent;
598
+ var errorOptions = getSemanticErrorProps(props);
599
+
600
+ if (hidden) {
601
+ return children;
602
+ }
603
+
604
+ return React.createElement(WrapIfAdditional, _extends({
605
+ classNames: classNames,
606
+ id: id,
607
+ label: label
608
+ }, props), React.createElement(semanticUiReact.Form.Group, {
609
+ key: id,
610
+ widths: "equal",
611
+ grouped: true
612
+ }, React.createElement(MaybeWrap, {
613
+ wrap: wrapContent,
614
+ className: "sui-field-content"
615
+ }, children, displayLabel && rawDescription && React.createElement(MaybeWrap, {
616
+ wrap: wrapLabel,
617
+ className: "sui-field-label"
618
+ }, rawDescription && React.createElement(DescriptionField, {
619
+ description: rawDescription
620
+ })), React.createElement(HelpField, {
621
+ helpText: rawHelp,
622
+ id: id + "__help"
623
+ }), React.createElement(RawErrors, {
624
+ errors: rawErrors,
625
+ options: errorOptions
626
+ }))));
627
+ }
628
+
629
+ /* eslint-disable react/prop-types */
630
+ var canExpand = core.utils.canExpand;
631
+
632
+ function ObjectFieldTemplate(_ref) {
633
+ var DescriptionField = _ref.DescriptionField,
634
+ description = _ref.description,
635
+ TitleField = _ref.TitleField,
636
+ onAddClick = _ref.onAddClick,
637
+ title = _ref.title,
638
+ properties = _ref.properties,
639
+ disabled = _ref.disabled,
640
+ readOnly = _ref.readOnly,
641
+ required = _ref.required,
642
+ uiSchema = _ref.uiSchema,
643
+ schema = _ref.schema,
644
+ formData = _ref.formData,
645
+ idSchema = _ref.idSchema;
646
+ var fieldTitle = uiSchema["ui:title"] || title;
647
+ var fieldDescription = uiSchema["ui:description"] || description;
648
+ return React.createElement(React.Fragment, null, fieldTitle && React.createElement(TitleField, {
649
+ id: idSchema.$id + "-title",
650
+ title: fieldTitle,
651
+ options: uiSchema["ui:options"],
652
+ required: required
653
+ }), fieldDescription && React.createElement(DescriptionField, {
654
+ id: idSchema.$id + "-description",
655
+ description: fieldDescription
656
+ }), properties.map(function (prop) {
657
+ return prop.content;
658
+ }), canExpand(schema, uiSchema, formData) && React.createElement(semanticUiReact.Grid.Column, {
659
+ width: 16,
660
+ verticalAlign: "middle"
661
+ }, React.createElement(semanticUiReact.Grid.Row, null, React.createElement("div", {
662
+ style: {
663
+ marginTop: "1rem",
664
+ position: "relative",
665
+ textAlign: "right"
666
+ }
667
+ }, React.createElement(AddButton, {
668
+ onClick: onAddClick(schema),
669
+ disabled: disabled || readOnly
670
+ })))));
671
+ }
672
+
673
+ var getDisplayLabel = core.utils.getDisplayLabel;
674
+
675
+ function CheckboxWidget(props) {
676
+ var id = props.id,
677
+ value = props.value,
678
+ required = props.required,
679
+ disabled = props.disabled,
680
+ readonly = props.readonly,
681
+ label = props.label,
682
+ autofocus = props.autofocus,
683
+ onChange = props.onChange,
684
+ onBlur = props.onBlur,
685
+ options = props.options,
686
+ onFocus = props.onFocus,
687
+ formContext = props.formContext,
688
+ schema = props.schema,
689
+ uiSchema = props.uiSchema;
690
+ var semanticProps = getSemanticProps({
691
+ options: options,
692
+ formContext: formContext,
693
+ schema: schema,
694
+ uiSchema: uiSchema,
695
+ defaultSchemaProps: {
696
+ inverted: false
697
+ }
698
+ });
699
+ var displayLabel = getDisplayLabel(schema, uiSchema
700
+ /* TODO: , rootSchema */
701
+ );
702
+
703
+ var _onChange = function _onChange(event, data) {
704
+ return onChange && onChange(data.checked);
705
+ };
706
+
707
+ var _onBlur = function _onBlur() {
708
+ return onBlur && onBlur(id, value);
709
+ };
710
+
711
+ var _onFocus = function _onFocus() {
712
+ return onFocus && onFocus(id, value);
713
+ };
714
+
715
+ var checked = value == "true" || value == true;
716
+ return React.createElement(semanticUiReact.Form.Checkbox, _extends({
717
+ id: id,
718
+ disabled: disabled || readonly,
719
+ autoFocus: autofocus
720
+ }, semanticProps, {
721
+ checked: typeof value === "undefined" ? false : checked,
722
+ onChange: _onChange,
723
+ onBlur: _onBlur,
724
+ onFocus: _onFocus,
725
+ required: required,
726
+ label: displayLabel ? label || schema.title : false
727
+ }));
728
+ }
729
+
730
+ function selectValue(value, selected, all) {
731
+ var at = all.indexOf(value);
732
+ var updated = selected.slice(0, at).concat(value, selected.slice(at)); // As inserting values at predefined index positions doesn't work with empty
733
+ // arrays, we need to reorder the updated selection to match the initial order
734
+
735
+ return updated.sort(function (a, b) {
736
+ return all.indexOf(a) > all.indexOf(b);
737
+ });
738
+ }
739
+
740
+ function deselectValue(value, selected) {
741
+ return selected.filter(function (v) {
742
+ return v !== value;
743
+ });
744
+ }
745
+
746
+ function CheckboxesWidget(props) {
747
+ var id = props.id,
748
+ disabled = props.disabled,
749
+ options = props.options,
750
+ value = props.value,
751
+ autofocus = props.autofocus,
752
+ readonly = props.readonly,
753
+ onChange = props.onChange,
754
+ onBlur = props.onBlur,
755
+ onFocus = props.onFocus,
756
+ formContext = props.formContext,
757
+ schema = props.schema,
758
+ uiSchema = props.uiSchema;
759
+ var enumOptions = options.enumOptions,
760
+ enumDisabled = options.enumDisabled,
761
+ inline = options.inline;
762
+ var title = schema.title;
763
+ var semanticProps = getSemanticProps({
764
+ options: options,
765
+ formContext: formContext,
766
+ schema: schema,
767
+ uiSchema: uiSchema,
768
+ defaultSchemaProps: {
769
+ inverted: false
770
+ }
771
+ });
772
+
773
+ var _onChange = function _onChange(option) {
774
+ return function (_ref) {
775
+ var checked = _ref.target.checked;
776
+ // eslint-disable-next-line no-shadow
777
+ var all = enumOptions.map(function (_ref2) {
778
+ var value = _ref2.value;
779
+ return value;
780
+ });
781
+
782
+ if (checked) {
783
+ onChange(selectValue(option.value, value, all));
784
+ } else {
785
+ onChange(deselectValue(option.value, value));
786
+ }
787
+ };
788
+ };
789
+
790
+ var _onBlur = function _onBlur() {
791
+ return onBlur && onBlur(id, value);
792
+ };
793
+
794
+ var _onFocus = function _onFocus() {
795
+ return onFocus && onFocus(id, value);
796
+ };
797
+
798
+ var inlineOption = inline ? {
799
+ inline: true
800
+ } : {
801
+ grouped: true
802
+ };
803
+ return React.createElement(React.Fragment, null, title && React.createElement(TitleField, {
804
+ title: title
805
+ }), React.createElement(semanticUiReact.Form.Group, inlineOption, enumOptions.map(function (option, index) {
806
+ var checked = value.indexOf(option.value) !== -1;
807
+ var itemDisabled = enumDisabled && enumDisabled.indexOf(option.value) !== -1;
808
+ return React.createElement(semanticUiReact.Form.Checkbox, _extends({
809
+ id: id + "_" + index,
810
+ key: id + "_" + index,
811
+ label: option.label
812
+ }, semanticProps, {
813
+ checked: checked,
814
+ disabled: disabled || itemDisabled || readonly,
815
+ autoFocus: autofocus && index === 0,
816
+ onChange: _onChange(option),
817
+ onBlur: _onBlur,
818
+ onFocus: _onFocus
819
+ }));
820
+ })));
821
+ }
822
+
823
+ var getDisplayLabel$1 = core.utils.getDisplayLabel;
824
+
825
+ function PasswordWidget(props) {
826
+ var id = props.id,
827
+ required = props.required,
828
+ readonly = props.readonly,
829
+ disabled = props.disabled,
830
+ label = props.label,
831
+ name = props.name,
832
+ value = props.value,
833
+ onChange = props.onChange,
834
+ onBlur = props.onBlur,
835
+ onFocus = props.onFocus,
836
+ autofocus = props.autofocus,
837
+ options = props.options,
838
+ schema = props.schema,
839
+ uiSchema = props.uiSchema,
840
+ formContext = props.formContext;
841
+ var semanticProps = getSemanticProps({
842
+ schema: schema,
843
+ uiSchema: uiSchema,
844
+ formContext: formContext,
845
+ options: options
846
+ }); // eslint-disable-next-line no-shadow
847
+
848
+ var _onChange = function _onChange(_ref) {
849
+ var value = _ref.target.value;
850
+ return onChange && onChange(value === "" ? options.emptyValue : value);
851
+ };
852
+
853
+ var _onBlur = function _onBlur() {
854
+ return onBlur && onBlur(id, value);
855
+ };
856
+
857
+ var _onFocus = function _onFocus() {
858
+ return onFocus && onFocus(id, value);
859
+ };
860
+
861
+ var displayLabel = getDisplayLabel$1(schema, uiSchema
862
+ /* TODO: , rootSchema */
863
+ );
864
+ return React.createElement(semanticUiReact.Form.Input, _extends({
865
+ id: id,
866
+ key: id,
867
+ label: displayLabel ? label || schema.title : false,
868
+ autoFocus: autofocus,
869
+ required: required,
870
+ disabled: disabled || readonly,
871
+ name: name
872
+ }, semanticProps, {
873
+ type: "password",
874
+ value: value || "",
875
+ onChange: _onChange,
876
+ onBlur: _onBlur,
877
+ onFocus: _onFocus
878
+ }));
879
+ }
880
+
881
+ function RadioWidget(props) {
882
+ var id = props.id,
883
+ value = props.value,
884
+ required = props.required,
885
+ disabled = props.disabled,
886
+ readonly = props.readonly,
887
+ onChange = props.onChange,
888
+ onBlur = props.onBlur,
889
+ onFocus = props.onFocus,
890
+ schema = props.schema,
891
+ options = props.options,
892
+ formContext = props.formContext,
893
+ uiSchema = props.uiSchema; // Generating a unique field name to identify this set of radio buttons
894
+
895
+ var name = Math.random().toString();
896
+ var enumOptions = options.enumOptions,
897
+ enumDisabled = options.enumDisabled;
898
+ var semanticProps = getSemanticProps({
899
+ formContext: formContext,
900
+ options: options,
901
+ uiSchema: uiSchema
902
+ }); // eslint-disable-next-line no-shadow
903
+
904
+ var _onChange = function _onChange(event, _ref) {
905
+ var eventValue = _ref.value;
906
+ return onChange && onChange(schema.type === "boolean" ? eventValue !== "false" : eventValue);
907
+ };
908
+
909
+ var _onBlur = function _onBlur() {
910
+ return onBlur && onBlur(id, value);
911
+ };
912
+
913
+ var _onFocus = function _onFocus() {
914
+ return onFocus && onFocus(id, value);
915
+ };
916
+
917
+ var inlineOption = options.inline ? {
918
+ inline: true
919
+ } : {
920
+ grouped: true
921
+ };
922
+ return React.createElement(semanticUiReact.Form.Group, inlineOption, enumOptions.map(function (option, i) {
923
+ var itemDisabled = enumDisabled && enumDisabled.indexOf(option.value) !== -1;
924
+ return React.createElement(semanticUiReact.Form.Field, _extends({
925
+ required: required,
926
+ control: semanticUiReact.Radio,
927
+ name: name
928
+ }, semanticProps, {
929
+ onFocus: _onFocus,
930
+ onBlur: _onBlur,
931
+ label: "" + option.label,
932
+ value: "" + option.value,
933
+ key: option.value + "-" + i,
934
+ checked: value == option.value,
935
+ onChange: _onChange,
936
+ disabled: disabled || itemDisabled || readonly
937
+ }));
938
+ }));
939
+ }
940
+
941
+ var rangeSpec = core.utils.rangeSpec;
942
+
943
+ function RangeWidget(props) {
944
+ var id = props.id,
945
+ name = props.name,
946
+ value = props.value,
947
+ required = props.required,
948
+ readonly = props.readonly,
949
+ disabled = props.disabled,
950
+ onChange = props.onChange,
951
+ onBlur = props.onBlur,
952
+ onFocus = props.onFocus,
953
+ options = props.options,
954
+ schema = props.schema,
955
+ uiSchema = props.uiSchema,
956
+ formContext = props.formContext;
957
+ var semanticProps = getSemanticProps({
958
+ formContext: formContext,
959
+ options: options,
960
+ uiSchema: uiSchema,
961
+ defaultSchemaProps: {
962
+ fluid: true
963
+ }
964
+ }); // eslint-disable-next-line no-shadow
965
+
966
+ var _onChange = function _onChange(_ref) {
967
+ var value = _ref.target.value;
968
+ return onChange && onChange(value === "" ? options.emptyValue : value);
969
+ };
970
+
971
+ var _onBlur = function _onBlur() {
972
+ return onBlur && onBlur(id, value);
973
+ };
974
+
975
+ var _onFocus = function _onFocus() {
976
+ return onFocus && onFocus(id, value);
977
+ };
978
+
979
+ return React.createElement(React.Fragment, null, React.createElement(semanticUiReact.Input, _extends({
980
+ id: id,
981
+ key: id,
982
+ name: name,
983
+ type: "range",
984
+ required: required,
985
+ disabled: disabled || readonly
986
+ }, rangeSpec(schema), semanticProps, {
987
+ value: value || "",
988
+ onChange: _onChange,
989
+ onBlur: _onBlur,
990
+ onFocus: _onFocus
991
+ })), React.createElement("span", null, value));
992
+ }
993
+
994
+ var asNumber = core.utils.asNumber,
995
+ guessType = core.utils.guessType;
996
+ var nums = /*#__PURE__*/new Set(["number", "integer"]);
997
+ /**
998
+ * * Returns and creates an array format required for semantic drop down
999
+ * @param {array} enumOptions- array of items for the dropdown
1000
+ * @param {array} enumDisabled - array of enum option values to disable
1001
+ * @returns {*}
1002
+ */
1003
+
1004
+ function createDefaultValueOptionsForDropDown(enumOptions, enumDisabled) {
1005
+ var disabledOptions = enumDisabled || [];
1006
+ var options = []; // eslint-disable-next-line no-shadow
1007
+
1008
+ options = _.map(enumOptions, function (_ref) {
1009
+ var label = _ref.label,
1010
+ value = _ref.value;
1011
+ return {
1012
+ disabled: disabledOptions.indexOf(value) !== -1,
1013
+ key: label,
1014
+ text: label,
1015
+ value: value
1016
+ };
1017
+ });
1018
+ return options;
1019
+ }
1020
+ /**
1021
+ * This is a silly limitation in the DOM where option change event values are
1022
+ * always retrieved as strings.
1023
+ */
1024
+
1025
+
1026
+ var processValue = function processValue(schema, value) {
1027
+ // "enum" is a reserved word, so only "type" and "items" can be destructured
1028
+ var type = schema.type,
1029
+ items = schema.items;
1030
+
1031
+ if (value === "") {
1032
+ return undefined;
1033
+ } else if (type === "array" && items && nums.has(items.type)) {
1034
+ return value.map(asNumber);
1035
+ } else if (type === "boolean") {
1036
+ return value === "true" || value === true;
1037
+ } else if (type === "number") {
1038
+ return asNumber(value);
1039
+ } // If type is undefined, but an enum is present, try and infer the type from
1040
+ // the enum values
1041
+
1042
+
1043
+ if (schema.enum) {
1044
+ if (schema.enum.every(function (x) {
1045
+ return guessType(x) === "number";
1046
+ })) {
1047
+ return asNumber(value);
1048
+ } else if (schema.enum.every(function (x) {
1049
+ return guessType(x) === "boolean";
1050
+ })) {
1051
+ return value === "true";
1052
+ }
1053
+ }
1054
+
1055
+ return value;
1056
+ };
1057
+
1058
+ function SelectWidget(props) {
1059
+ var schema = props.schema,
1060
+ uiSchema = props.uiSchema,
1061
+ formContext = props.formContext,
1062
+ id = props.id,
1063
+ options = props.options,
1064
+ name = props.name,
1065
+ label = props.label,
1066
+ required = props.required,
1067
+ disabled = props.disabled,
1068
+ readonly = props.readonly,
1069
+ value = props.value,
1070
+ multiple = props.multiple,
1071
+ placeholder = props.placeholder,
1072
+ autofocus = props.autofocus,
1073
+ onChange = props.onChange,
1074
+ onBlur = props.onBlur,
1075
+ onFocus = props.onFocus;
1076
+ var semanticProps = getSemanticProps({
1077
+ schema: schema,
1078
+ uiSchema: uiSchema,
1079
+ formContext: formContext,
1080
+ options: options,
1081
+ defaultSchemaProps: {
1082
+ inverted: "false",
1083
+ selection: true,
1084
+ fluid: true,
1085
+ scrolling: true,
1086
+ upward: false
1087
+ }
1088
+ });
1089
+ var enumDisabled = options.enumDisabled,
1090
+ enumOptions = options.enumOptions;
1091
+ var emptyValue = multiple ? [] : "";
1092
+ var dropdownOptions = createDefaultValueOptionsForDropDown(enumOptions, enumDisabled);
1093
+
1094
+ var _onChange = function _onChange(event, // eslint-disable-next-line no-shadow
1095
+ _ref2) {
1096
+ var value = _ref2.value;
1097
+ return onChange && onChange(processValue(schema, value));
1098
+ }; // eslint-disable-next-line no-shadow
1099
+
1100
+
1101
+ var _onBlur = function _onBlur(_ref3) {
1102
+ var value = _ref3.target.value;
1103
+ return onBlur && onBlur(id, processValue(schema, value));
1104
+ };
1105
+
1106
+ var _onFocus = function _onFocus(_ref4) {
1107
+ var value = _ref4.target.value;
1108
+ return onFocus && onFocus(id, processValue(schema, value));
1109
+ };
1110
+
1111
+ return React.createElement(semanticUiReact.Form.Dropdown, _extends({
1112
+ key: id,
1113
+ name: name,
1114
+ label: label || schema.title,
1115
+ multiple: typeof multiple === "undefined" ? false : multiple,
1116
+ value: typeof value === "undefined" ? emptyValue : value,
1117
+ disabled: disabled,
1118
+ placeholder: placeholder
1119
+ }, semanticProps, {
1120
+ required: required,
1121
+ autoFocus: autofocus,
1122
+ readOnly: readonly,
1123
+ options: dropdownOptions,
1124
+ onChange: _onChange,
1125
+ onBlur: _onBlur,
1126
+ onFocus: _onFocus
1127
+ }));
1128
+ }
1129
+
1130
+ var getDisplayLabel$2 = core.utils.getDisplayLabel;
1131
+
1132
+ function TextareaWidget(props) {
1133
+ var id = props.id,
1134
+ placeholder = props.placeholder,
1135
+ value = props.value,
1136
+ required = props.required,
1137
+ disabled = props.disabled,
1138
+ autofocus = props.autofocus,
1139
+ label = props.label,
1140
+ name = props.name,
1141
+ readonly = props.readonly,
1142
+ onBlur = props.onBlur,
1143
+ onFocus = props.onFocus,
1144
+ onChange = props.onChange,
1145
+ options = props.options,
1146
+ schema = props.schema,
1147
+ uiSchema = props.uiSchema,
1148
+ formContext = props.formContext;
1149
+ var semanticProps = getSemanticProps({
1150
+ formContext: formContext,
1151
+ options: options,
1152
+ defaultSchemaProps: {
1153
+ inverted: false
1154
+ }
1155
+ }); // eslint-disable-next-line no-shadow
1156
+
1157
+ var _onChange = function _onChange(_ref) {
1158
+ var value = _ref.target.value;
1159
+ return onChange && onChange(value === "" ? options.emptyValue : value);
1160
+ };
1161
+
1162
+ var _onBlur = function _onBlur() {
1163
+ return onBlur && onBlur(id, value);
1164
+ };
1165
+
1166
+ var _onFocus = function _onFocus() {
1167
+ return onFocus && onFocus(id, value);
1168
+ };
1169
+
1170
+ var displayLabel = getDisplayLabel$2(schema, uiSchema
1171
+ /* TODO: , rootSchema */
1172
+ );
1173
+ return React.createElement(semanticUiReact.Form.TextArea, _extends({
1174
+ id: id,
1175
+ key: id,
1176
+ label: displayLabel ? label || schema.title : false,
1177
+ placeholder: placeholder,
1178
+ autoFocus: autofocus,
1179
+ required: required,
1180
+ disabled: disabled || readonly,
1181
+ name: name
1182
+ }, semanticProps, {
1183
+ value: value || "",
1184
+ rows: options.rows || 5,
1185
+ onChange: _onChange,
1186
+ onBlur: _onBlur,
1187
+ onFocus: _onFocus
1188
+ }));
1189
+ }
1190
+
1191
+ var getDisplayLabel$3 = core.utils.getDisplayLabel;
1192
+
1193
+ function TextWidget(props) {
1194
+ var id = props.id,
1195
+ placeholder = props.placeholder,
1196
+ name = props.name,
1197
+ label = props.label,
1198
+ value = props.value,
1199
+ required = props.required,
1200
+ readonly = props.readonly,
1201
+ disabled = props.disabled,
1202
+ onChange = props.onChange,
1203
+ onBlur = props.onBlur,
1204
+ onFocus = props.onFocus,
1205
+ autofocus = props.autofocus,
1206
+ options = props.options,
1207
+ schema = props.schema,
1208
+ uiSchema = props.uiSchema,
1209
+ formContext = props.formContext;
1210
+ var semanticProps = getSemanticProps({
1211
+ formContext: formContext,
1212
+ options: options,
1213
+ uiSchema: uiSchema
1214
+ }); // eslint-disable-next-line no-shadow
1215
+
1216
+ var _onChange = function _onChange(_ref) {
1217
+ var value = _ref.target.value;
1218
+ return onChange(value === "" ? options.emptyValue : value);
1219
+ };
1220
+
1221
+ var _onBlur = function _onBlur() {
1222
+ return onBlur && onBlur(id, value);
1223
+ };
1224
+
1225
+ var _onFocus = function _onFocus() {
1226
+ return onFocus && onFocus(id, value);
1227
+ };
1228
+
1229
+ var displayLabel = getDisplayLabel$3(schema, uiSchema
1230
+ /* TODO: , rootSchema */
1231
+ );
1232
+ return React.createElement(semanticUiReact.Form.Input, _extends({
1233
+ key: id,
1234
+ id: id,
1235
+ placeholder: placeholder,
1236
+ type: schema.type === 'string' ? 'text' : "" + schema.type,
1237
+ label: displayLabel ? label || schema.title : false,
1238
+ required: required,
1239
+ autoFocus: autofocus,
1240
+ disabled: disabled || readonly,
1241
+ name: name
1242
+ }, semanticProps, {
1243
+ value: value || value === 0 ? value : "",
1244
+ onChange: _onChange,
1245
+ onBlur: _onBlur,
1246
+ onFocus: _onFocus
1247
+ }));
1248
+ }
1249
+
1250
+ var getDisplayLabel$4 = core.utils.getDisplayLabel;
1251
+
1252
+ function UpDownWidget(props) {
1253
+ var id = props.id,
1254
+ name = props.name,
1255
+ label = props.label,
1256
+ value = props.value,
1257
+ required = props.required,
1258
+ readonly = props.readonly,
1259
+ disabled = props.disabled,
1260
+ onChange = props.onChange,
1261
+ onBlur = props.onBlur,
1262
+ onFocus = props.onFocus,
1263
+ autofocus = props.autofocus,
1264
+ options = props.options,
1265
+ schema = props.schema,
1266
+ uiSchema = props.uiSchema,
1267
+ formContext = props.formContext;
1268
+ var semanticProps = getSemanticProps({
1269
+ formContext: formContext,
1270
+ options: options,
1271
+ uiSchema: uiSchema
1272
+ }); // eslint-disable-next-line no-shadow
1273
+
1274
+ var _onChange = function _onChange(_ref) {
1275
+ var value = _ref.target.value;
1276
+ return onChange && onChange(value);
1277
+ };
1278
+
1279
+ var _onBlur = function _onBlur() {
1280
+ return onBlur && onBlur(id, value);
1281
+ };
1282
+
1283
+ var _onFocus = function _onFocus() {
1284
+ return onFocus && onFocus(id, value);
1285
+ };
1286
+
1287
+ var displayLabel = getDisplayLabel$4(schema, uiSchema
1288
+ /* TODO: , rootSchema */
1289
+ );
1290
+ return React.createElement(React.Fragment, null, React.createElement(semanticUiReact.Form.Input, _extends({
1291
+ id: id,
1292
+ key: id,
1293
+ autoFocus: autofocus,
1294
+ required: required,
1295
+ type: "number",
1296
+ label: displayLabel ? label || schema.title : false,
1297
+ disabled: disabled || readonly,
1298
+ name: name
1299
+ }, semanticProps, {
1300
+ value: value || value === 0 ? value : "",
1301
+ onChange: _onChange,
1302
+ onBlur: _onBlur,
1303
+ onFocus: _onFocus
1304
+ })));
1305
+ }
1306
+
1307
+ var getDisplayLabel$5 = core.utils.getDisplayLabel;
1308
+
1309
+ function DateWidget(props) {
1310
+ var id = props.id,
1311
+ required = props.required,
1312
+ readonly = props.readonly,
1313
+ disabled = props.disabled,
1314
+ name = props.name,
1315
+ label = props.label,
1316
+ value = props.value,
1317
+ onChange = props.onChange,
1318
+ onBlur = props.onBlur,
1319
+ onFocus = props.onFocus,
1320
+ autofocus = props.autofocus,
1321
+ options = props.options,
1322
+ formContext = props.formContext,
1323
+ schema = props.schema,
1324
+ uiSchema = props.uiSchema;
1325
+ var semanticProps = getSemanticProps({
1326
+ uiSchema: uiSchema,
1327
+ schema: schema,
1328
+ formContext: formContext,
1329
+ options: options
1330
+ });
1331
+
1332
+ var _onChange = function _onChange(_ref) {
1333
+ var value = _ref.target.value;
1334
+ return onChange && onChange(value);
1335
+ };
1336
+
1337
+ var _onBlur = function _onBlur() {
1338
+ return onBlur && onBlur(id, value);
1339
+ };
1340
+
1341
+ var _onFocus = function _onFocus() {
1342
+ return onFocus && onFocus(id, value);
1343
+ };
1344
+
1345
+ var displayLabel = getDisplayLabel$5(schema, uiSchema
1346
+ /* TODO: , rootSchema */
1347
+ );
1348
+ return React.createElement(semanticUiReact.Form.Input, _extends({
1349
+ key: id,
1350
+ id: id,
1351
+ type: "date",
1352
+ label: displayLabel ? label || schema.title : false,
1353
+ required: required,
1354
+ autoFocus: autofocus,
1355
+ disabled: disabled || readonly,
1356
+ name: name
1357
+ }, semanticProps, {
1358
+ value: value || value === 0 ? value : "",
1359
+ onChange: _onChange,
1360
+ onBlur: _onBlur,
1361
+ onFocus: _onFocus
1362
+ }));
1363
+ }
1364
+
1365
+ var localToUTC = core.utils.localToUTC,
1366
+ utcToLocal = core.utils.utcToLocal,
1367
+ getDisplayLabel$6 = core.utils.getDisplayLabel;
1368
+
1369
+ function DateTimeWidget(props) {
1370
+ var id = props.id,
1371
+ required = props.required,
1372
+ readonly = props.readonly,
1373
+ disabled = props.disabled,
1374
+ name = props.name,
1375
+ label = props.label,
1376
+ schema = props.schema,
1377
+ uiSchema = props.uiSchema,
1378
+ value = props.value,
1379
+ onChange = props.onChange,
1380
+ onBlur = props.onBlur,
1381
+ onFocus = props.onFocus,
1382
+ autofocus = props.autofocus,
1383
+ options = props.options,
1384
+ formContext = props.formContext;
1385
+ var semanticProps = getSemanticProps({
1386
+ uiSchema: uiSchema,
1387
+ schema: schema,
1388
+ formContext: formContext,
1389
+ options: options
1390
+ });
1391
+
1392
+ var _onChange = function _onChange(_ref) {
1393
+ var value = _ref.target.value;
1394
+ return onChange && onChange(localToUTC(value));
1395
+ };
1396
+
1397
+ var _onBlur = function _onBlur() {
1398
+ return onBlur && onBlur(id, value);
1399
+ };
1400
+
1401
+ var _onFocus = function _onFocus() {
1402
+ return onFocus && onFocus(id, value);
1403
+ };
1404
+
1405
+ var dateValue = utcToLocal(value);
1406
+ var displayLabel = getDisplayLabel$6(schema, uiSchema
1407
+ /* TODO: , rootSchema */
1408
+ );
1409
+ return React.createElement(semanticUiReact.Form.Input, _extends({
1410
+ key: id,
1411
+ id: id,
1412
+ type: "datetime-local",
1413
+ label: displayLabel ? label || schema.title : false,
1414
+ required: required,
1415
+ autoFocus: autofocus,
1416
+ disabled: disabled || readonly,
1417
+ name: name
1418
+ }, semanticProps, {
1419
+ value: dateValue,
1420
+ onChange: _onChange,
1421
+ onBlur: _onBlur,
1422
+ onFocus: _onFocus
1423
+ }));
1424
+ }
1425
+
1426
+ var getDisplayLabel$7 = core.utils.getDisplayLabel;
1427
+
1428
+ function EmailWidget(props) {
1429
+ var id = props.id,
1430
+ required = props.required,
1431
+ readonly = props.readonly,
1432
+ disabled = props.disabled,
1433
+ name = props.name,
1434
+ label = props.label,
1435
+ schema = props.schema,
1436
+ uiSchema = props.uiSchema,
1437
+ value = props.value,
1438
+ onChange = props.onChange,
1439
+ onBlur = props.onBlur,
1440
+ onFocus = props.onFocus,
1441
+ autofocus = props.autofocus,
1442
+ options = props.options,
1443
+ formContext = props.formContext;
1444
+ var semanticProps = getSemanticProps({
1445
+ schema: schema,
1446
+ uiSchema: uiSchema,
1447
+ formContext: formContext,
1448
+ options: options
1449
+ }); // eslint-disable-next-line no-shadow
1450
+
1451
+ var _onChange = function _onChange(_ref) {
1452
+ var value = _ref.target.value;
1453
+ return onChange(value === "" ? options.emptyValue : value);
1454
+ };
1455
+
1456
+ var _onBlur = function _onBlur() {
1457
+ return onBlur && onBlur(id, value);
1458
+ };
1459
+
1460
+ var _onFocus = function _onFocus() {
1461
+ return onFocus && onFocus(id, value);
1462
+ };
1463
+
1464
+ var displayLabel = getDisplayLabel$7(schema, uiSchema
1465
+ /* TODO: , rootSchema */
1466
+ );
1467
+ return React.createElement(semanticUiReact.Form.Input, _extends({
1468
+ key: id,
1469
+ id: id,
1470
+ type: "email",
1471
+ label: displayLabel ? label || schema.title : false,
1472
+ required: required,
1473
+ autoFocus: autofocus,
1474
+ disabled: disabled || readonly,
1475
+ name: name
1476
+ }, semanticProps, {
1477
+ value: value || value === 0 ? value : "",
1478
+ onChange: _onChange,
1479
+ onBlur: _onBlur,
1480
+ onFocus: _onFocus
1481
+ }));
1482
+ }
1483
+
1484
+ var getDisplayLabel$8 = core.utils.getDisplayLabel;
1485
+
1486
+ function URLWidget(props) {
1487
+ var id = props.id,
1488
+ name = props.name,
1489
+ label = props.label,
1490
+ value = props.value,
1491
+ required = props.required,
1492
+ readonly = props.readonly,
1493
+ disabled = props.disabled,
1494
+ onChange = props.onChange,
1495
+ onBlur = props.onBlur,
1496
+ onFocus = props.onFocus,
1497
+ autofocus = props.autofocus,
1498
+ options = props.options,
1499
+ schema = props.schema,
1500
+ uiSchema = props.uiSchema,
1501
+ formContext = props.formContext;
1502
+ var semanticProps = getSemanticProps({
1503
+ formContext: formContext,
1504
+ options: options,
1505
+ uiSchema: uiSchema
1506
+ }); // eslint-disable-next-line no-shadow
1507
+
1508
+ var _onChange = function _onChange(_ref) {
1509
+ var value = _ref.target.value;
1510
+ return onChange(value === "" ? options.emptyValue : value);
1511
+ };
1512
+
1513
+ var _onBlur = function _onBlur() {
1514
+ return onBlur && onBlur(id, value);
1515
+ };
1516
+
1517
+ var _onFocus = function _onFocus() {
1518
+ return onFocus && onFocus(id, value);
1519
+ };
1520
+
1521
+ var displayLabel = getDisplayLabel$8(schema, uiSchema
1522
+ /* TODO: , rootSchema */
1523
+ );
1524
+ return React.createElement(semanticUiReact.Form.Input, _extends({
1525
+ key: id,
1526
+ id: id,
1527
+ type: "url",
1528
+ label: displayLabel ? label || schema.title : false,
1529
+ required: required,
1530
+ autoFocus: autofocus,
1531
+ disabled: disabled || readonly,
1532
+ name: name
1533
+ }, semanticProps, {
1534
+ value: value || value === 0 ? value : "",
1535
+ onChange: _onChange,
1536
+ onBlur: _onBlur,
1537
+ onFocus: _onFocus
1538
+ }));
1539
+ }
1540
+
1541
+ var getSubmitButtonOptions = core.utils.getSubmitButtonOptions;
1542
+ var SubmitButton = (function (_ref) {
1543
+ var uiSchema = _ref.uiSchema;
1544
+
1545
+ var _getSubmitButtonOptio = getSubmitButtonOptions(uiSchema),
1546
+ submitText = _getSubmitButtonOptio.submitText,
1547
+ norender = _getSubmitButtonOptio.norender,
1548
+ submitButtonProps = _getSubmitButtonOptio.props;
1549
+
1550
+ if (norender) {
1551
+ return null;
1552
+ }
1553
+
1554
+ return React.createElement(semanticUiReact.Button, _extends({
1555
+ type: "submit",
1556
+ primary: true
1557
+ }, submitButtonProps), submitText);
1558
+ });
1559
+
1560
+ var Widgets = {
1561
+ CheckboxWidget: CheckboxWidget,
1562
+ CheckboxesWidget: CheckboxesWidget,
1563
+ DateWidget: DateWidget,
1564
+ DateTimeWidget: DateTimeWidget,
1565
+ PasswordWidget: PasswordWidget,
1566
+ EmailWidget: EmailWidget,
1567
+ URLWidget: URLWidget,
1568
+ RadioWidget: RadioWidget,
1569
+ RangeWidget: RangeWidget,
1570
+ SelectWidget: SelectWidget,
1571
+ TextareaWidget: TextareaWidget,
1572
+ TextWidget: TextWidget,
1573
+ UpDownWidget: UpDownWidget,
1574
+ SubmitButton: SubmitButton
1575
+ };
1576
+
1577
+ var getDefaultRegistry = core.utils.getDefaultRegistry;
1578
+
1579
+ var _getDefaultRegistry = /*#__PURE__*/getDefaultRegistry(),
1580
+ fields = _getDefaultRegistry.fields,
1581
+ widgets = _getDefaultRegistry.widgets;
1582
+
1583
+ var Theme = {
1584
+ ArrayFieldTemplate: ArrayFieldTemplate,
1585
+ ErrorList: ErrorList,
1586
+ fields: /*#__PURE__*/_extends({}, fields, Fields),
1587
+ FieldTemplate: FieldTemplate,
1588
+ ObjectFieldTemplate: ObjectFieldTemplate,
1589
+ _internalFormWrapper: semanticUiReact.Form,
1590
+ widgets: /*#__PURE__*/_extends({}, widgets, Widgets)
1591
+ };
1592
+
1593
+ var SemanticUIForm = /*#__PURE__*/core.withTheme(Theme);
1594
+
1595
+ exports.ArrayFieldTemplate = ArrayFieldTemplate;
1596
+ exports.FieldTemplate = FieldTemplate;
1597
+ exports.Fields = Fields;
1598
+ exports.ObjectFieldTemplate = ObjectFieldTemplate;
1599
+ exports.SemanticUIForm = SemanticUIForm;
1600
+ exports.Theme = Theme;
1601
+ exports.Widgets = Widgets;
1602
+ exports.default = SemanticUIForm;
1603
+
1604
+ Object.defineProperty(exports, '__esModule', { value: true });
1605
+
1606
+ })));
1607
+ //# sourceMappingURL=semantic-ui.umd.development.js.map