@data-driven-forms/mui-component-mapper 3.22.2 → 3.22.4
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/checkbox/checkbox.js +14 -16
- package/date-picker/date-picker.js +4 -6
- package/dual-list-select/dual-list-select.js +34 -39
- package/esm/checkbox/checkbox.js +14 -16
- package/esm/date-picker/date-picker.js +4 -6
- package/esm/dual-list-select/dual-list-select.js +34 -39
- package/esm/field-array/field-array.js +50 -54
- package/esm/multiple-chioce-list/multiple-choice-list.js +14 -16
- package/esm/plain-text/plain-text.js +11 -7
- package/esm/radio/radio.js +18 -16
- package/esm/select/select.js +17 -15
- package/esm/switch/switch.js +14 -16
- package/esm/tabs/tabs.js +10 -12
- package/esm/textarea/textarea.js +4 -6
- package/esm/time-picker/time-picker.js +2 -4
- package/esm/wizard/step-buttons.js +2 -4
- package/esm/wizard/wizard-nav.js +2 -4
- package/esm/wizard/wizard.js +2 -4
- package/field-array/field-array.js +50 -54
- package/multiple-chioce-list/multiple-choice-list.js +14 -16
- package/package.json +3 -3
- package/plain-text/plain-text.js +11 -7
- package/radio/radio.js +18 -16
- package/select/select.js +16 -15
- package/switch/switch.js +14 -16
- package/tabs/tabs.js +10 -12
- package/textarea/textarea.js +4 -6
- package/time-picker/time-picker.js +2 -4
- package/wizard/step-buttons.js +2 -4
- package/wizard/wizard-nav.js +2 -4
- package/wizard/wizard.js +2 -4
package/checkbox/checkbox.js
CHANGED
|
@@ -59,13 +59,20 @@ var SingleCheckbox = function SingleCheckbox(props) {
|
|
|
59
59
|
description = _useFieldApi.description,
|
|
60
60
|
validateOnMount = _useFieldApi.validateOnMount,
|
|
61
61
|
meta = _useFieldApi.meta,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
62
|
+
_useFieldApi$FormFiel = _useFieldApi.FormFieldGridProps,
|
|
63
|
+
FormFieldGridProps = _useFieldApi$FormFiel === void 0 ? {} : _useFieldApi$FormFiel,
|
|
64
|
+
_useFieldApi$FormCont = _useFieldApi.FormControlProps,
|
|
65
|
+
FormControlProps = _useFieldApi$FormCont === void 0 ? {} : _useFieldApi$FormCont,
|
|
66
|
+
_useFieldApi$FormGrou = _useFieldApi.FormGroupProps,
|
|
67
|
+
FormGroupProps = _useFieldApi$FormGrou === void 0 ? {} : _useFieldApi$FormGrou,
|
|
68
|
+
_useFieldApi$FormCont2 = _useFieldApi.FormControlLabelProps,
|
|
69
|
+
FormControlLabelProps = _useFieldApi$FormCont2 === void 0 ? {} : _useFieldApi$FormCont2,
|
|
70
|
+
_useFieldApi$Checkbox = _useFieldApi.CheckboxProps,
|
|
71
|
+
CheckboxProps = _useFieldApi$Checkbox === void 0 ? {} : _useFieldApi$Checkbox,
|
|
72
|
+
_useFieldApi$FormLabe = _useFieldApi.FormLabelProps,
|
|
73
|
+
FormLabelProps = _useFieldApi$FormLabe === void 0 ? {} : _useFieldApi$FormLabe,
|
|
74
|
+
_useFieldApi$FormHelp = _useFieldApi.FormHelperTextProps,
|
|
75
|
+
FormHelperTextProps = _useFieldApi$FormHelp === void 0 ? {} : _useFieldApi$FormHelp,
|
|
69
76
|
inputProps = _useFieldApi.inputProps,
|
|
70
77
|
rest = (0, _objectWithoutProperties2["default"])(_useFieldApi, _excluded);
|
|
71
78
|
|
|
@@ -107,15 +114,6 @@ SingleCheckbox.propTypes = {
|
|
|
107
114
|
FormLabelProps: _propTypes["default"].object,
|
|
108
115
|
FormHelperTextProps: _propTypes["default"].object
|
|
109
116
|
};
|
|
110
|
-
SingleCheckbox.defaultProps = {
|
|
111
|
-
FormFieldGridProps: {},
|
|
112
|
-
FormControlProps: {},
|
|
113
|
-
FormGroupProps: {},
|
|
114
|
-
FormControlLabelProps: {},
|
|
115
|
-
CheckboxProps: {},
|
|
116
|
-
FormLabelProps: {},
|
|
117
|
-
FormHelperTextProps: {}
|
|
118
|
-
};
|
|
119
117
|
|
|
120
118
|
var Checkbox = function Checkbox(_ref) {
|
|
121
119
|
var options = _ref.options,
|
|
@@ -37,8 +37,10 @@ var DatePicker = function DatePicker(props) {
|
|
|
37
37
|
description = _useFieldApi.description,
|
|
38
38
|
validateOnMount = _useFieldApi.validateOnMount,
|
|
39
39
|
meta = _useFieldApi.meta,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
_useFieldApi$FormFiel = _useFieldApi.FormFieldGridProps,
|
|
41
|
+
FormFieldGridProps = _useFieldApi$FormFiel === void 0 ? {} : _useFieldApi$FormFiel,
|
|
42
|
+
_useFieldApi$DatePick = _useFieldApi.DatePickerProps,
|
|
43
|
+
DatePickerProps = _useFieldApi$DatePick === void 0 ? {} : _useFieldApi$DatePick;
|
|
42
44
|
|
|
43
45
|
var invalid = (0, _validationError.validationError)(meta, validateOnMount);
|
|
44
46
|
return /*#__PURE__*/_react["default"].createElement(_formFieldGrid["default"], FormFieldGridProps, /*#__PURE__*/_react["default"].createElement(_DatePicker.DatePicker, (0, _extends2["default"])({
|
|
@@ -88,9 +90,5 @@ DatePicker.propTypes = {
|
|
|
88
90
|
FormFieldGridProps: _propTypes["default"].object,
|
|
89
91
|
DatePickerProps: _propTypes["default"].object
|
|
90
92
|
};
|
|
91
|
-
DatePicker.defaultProps = {
|
|
92
|
-
FormFieldGridProps: {},
|
|
93
|
-
DatePickerProps: {}
|
|
94
|
-
};
|
|
95
93
|
var _default = DatePicker;
|
|
96
94
|
exports["default"] = _default;
|
|
@@ -100,13 +100,15 @@ var StyledDualListSelect = (0, _styles.styled)(_formFieldGrid["default"])(functi
|
|
|
100
100
|
});
|
|
101
101
|
|
|
102
102
|
var ListInternal = function ListInternal(_ref3) {
|
|
103
|
-
var value = _ref3.value,
|
|
103
|
+
var _ref3$value = _ref3.value,
|
|
104
|
+
value = _ref3$value === void 0 ? [] : _ref3$value,
|
|
104
105
|
optionClick = _ref3.optionClick,
|
|
105
106
|
noOptionsTitle = _ref3.noOptionsTitle,
|
|
106
107
|
filterValue = _ref3.filterValue,
|
|
107
108
|
filterValueText = _ref3.filterValueText,
|
|
108
109
|
selectedValues = _ref3.selectedValues,
|
|
109
|
-
ListProps = _ref3.ListProps,
|
|
110
|
+
_ref3$ListProps = _ref3.ListProps,
|
|
111
|
+
ListProps = _ref3$ListProps === void 0 ? {} : _ref3$ListProps,
|
|
110
112
|
ListItemProps = _ref3.ListItemProps,
|
|
111
113
|
ListItemIconProps = _ref3.ListItemIconProps,
|
|
112
114
|
ListItemTextProps = _ref3.ListItemTextProps,
|
|
@@ -176,10 +178,6 @@ ListInternal.propTypes = {
|
|
|
176
178
|
PaperProps: _propTypes["default"].object,
|
|
177
179
|
LeftPaperProps: _propTypes["default"].object
|
|
178
180
|
};
|
|
179
|
-
ListInternal.defaultProps = {
|
|
180
|
-
value: [],
|
|
181
|
-
ListProps: {}
|
|
182
|
-
};
|
|
183
181
|
|
|
184
182
|
var ToolbarInternal = function ToolbarInternal(_ref5) {
|
|
185
183
|
var ToolbarProps = _ref5.ToolbarProps,
|
|
@@ -245,23 +243,33 @@ ToolbarInternal.propTypes = {
|
|
|
245
243
|
var DualListSelect = function DualListSelect(_ref7) {
|
|
246
244
|
var handleOptionsClick = _ref7.handleOptionsClick,
|
|
247
245
|
rightValues = _ref7.rightValues,
|
|
248
|
-
noValueTitle = _ref7.noValueTitle,
|
|
249
|
-
|
|
246
|
+
_ref7$noValueTitle = _ref7.noValueTitle,
|
|
247
|
+
noValueTitle = _ref7$noValueTitle === void 0 ? 'No selected' : _ref7$noValueTitle,
|
|
248
|
+
_ref7$filterValueText = _ref7.filterValueText,
|
|
249
|
+
filterValueText = _ref7$filterValueText === void 0 ? 'Remove your filter to see all selected' : _ref7$filterValueText,
|
|
250
250
|
leftValues = _ref7.leftValues,
|
|
251
|
-
noOptionsTitle = _ref7.noOptionsTitle,
|
|
251
|
+
_ref7$noOptionsTitle = _ref7.noOptionsTitle,
|
|
252
|
+
noOptionsTitle = _ref7$noOptionsTitle === void 0 ? 'No available options' : _ref7$noOptionsTitle,
|
|
252
253
|
state = _ref7.state,
|
|
253
|
-
|
|
254
|
+
_ref7$filterOptionsTe = _ref7.filterOptionsText,
|
|
255
|
+
filterOptionsText = _ref7$filterOptionsTe === void 0 ? 'Remove your filter to see all options' : _ref7$filterOptionsTe,
|
|
254
256
|
handleValuesClick = _ref7.handleValuesClick,
|
|
255
257
|
handleMoveRight = _ref7.handleMoveRight,
|
|
256
|
-
moveRightTitle = _ref7.moveRightTitle,
|
|
258
|
+
_ref7$moveRightTitle = _ref7.moveRightTitle,
|
|
259
|
+
moveRightTitle = _ref7$moveRightTitle === void 0 ? 'Move selected to right' : _ref7$moveRightTitle,
|
|
257
260
|
handleClearLeftValues = _ref7.handleClearLeftValues,
|
|
258
|
-
|
|
261
|
+
_ref7$moveAllRightTit = _ref7.moveAllRightTitle,
|
|
262
|
+
moveAllRightTitle = _ref7$moveAllRightTit === void 0 ? 'Move all to right' : _ref7$moveAllRightTit,
|
|
259
263
|
handleClearRightValues = _ref7.handleClearRightValues,
|
|
260
|
-
|
|
264
|
+
_ref7$moveAllLeftTitl = _ref7.moveAllLeftTitle,
|
|
265
|
+
moveAllLeftTitle = _ref7$moveAllLeftTitl === void 0 ? 'Move all to left' : _ref7$moveAllLeftTitl,
|
|
261
266
|
handleMoveLeft = _ref7.handleMoveLeft,
|
|
262
|
-
moveLeftTitle = _ref7.moveLeftTitle,
|
|
263
|
-
|
|
264
|
-
|
|
267
|
+
_ref7$moveLeftTitle = _ref7.moveLeftTitle,
|
|
268
|
+
moveLeftTitle = _ref7$moveLeftTitle === void 0 ? 'Move selected to left' : _ref7$moveLeftTitle,
|
|
269
|
+
_ref7$allToRight = _ref7.allToRight,
|
|
270
|
+
allToRight = _ref7$allToRight === void 0 ? true : _ref7$allToRight,
|
|
271
|
+
_ref7$allToLeft = _ref7.allToLeft,
|
|
272
|
+
allToLeft = _ref7$allToLeft === void 0 ? true : _ref7$allToLeft,
|
|
265
273
|
checkboxVariant = _ref7.checkboxVariant,
|
|
266
274
|
isRequired = _ref7.isRequired,
|
|
267
275
|
meta = _ref7.meta,
|
|
@@ -269,15 +277,20 @@ var DualListSelect = function DualListSelect(_ref7) {
|
|
|
269
277
|
label = _ref7.label,
|
|
270
278
|
helperText = _ref7.helperText,
|
|
271
279
|
description = _ref7.description,
|
|
272
|
-
|
|
273
|
-
|
|
280
|
+
_ref7$filterOptionsTi = _ref7.filterOptionsTitle,
|
|
281
|
+
filterOptionsTitle = _ref7$filterOptionsTi === void 0 ? 'Filter options' : _ref7$filterOptionsTi,
|
|
282
|
+
_ref7$leftTitle = _ref7.leftTitle,
|
|
283
|
+
leftTitle = _ref7$leftTitle === void 0 ? 'Options' : _ref7$leftTitle,
|
|
274
284
|
filterOptions = _ref7.filterOptions,
|
|
275
285
|
sortOptions = _ref7.sortOptions,
|
|
276
286
|
sortValues = _ref7.sortValues,
|
|
277
|
-
|
|
287
|
+
_ref7$filterValueTitl = _ref7.filterValueTitle,
|
|
288
|
+
filterValueTitle = _ref7$filterValueTitl === void 0 ? 'Filter selected value' : _ref7$filterValueTitl,
|
|
278
289
|
filterValues = _ref7.filterValues,
|
|
279
|
-
rightTitle = _ref7.rightTitle,
|
|
280
|
-
|
|
290
|
+
_ref7$rightTitle = _ref7.rightTitle,
|
|
291
|
+
rightTitle = _ref7$rightTitle === void 0 ? 'Selected' : _ref7$rightTitle,
|
|
292
|
+
_ref7$isFilterable = _ref7.isFilterable,
|
|
293
|
+
isFilterable = _ref7$isFilterable === void 0 ? true : _ref7$isFilterable,
|
|
281
294
|
FormFieldGridProps = _ref7.FormFieldGridProps,
|
|
282
295
|
InternalGridProps = _ref7.InternalGridProps,
|
|
283
296
|
ListGridProps = _ref7.ListGridProps,
|
|
@@ -570,24 +583,6 @@ DualListSelect.propTypes = {
|
|
|
570
583
|
LeftPaperProps: _propTypes["default"].object,
|
|
571
584
|
RightPaperProps: _propTypes["default"].object
|
|
572
585
|
};
|
|
573
|
-
DualListSelect.defaultProps = {
|
|
574
|
-
leftTitle: 'Options',
|
|
575
|
-
rightTitle: 'Selected',
|
|
576
|
-
moveLeftTitle: 'Move selected to left',
|
|
577
|
-
moveRightTitle: 'Move selected to right',
|
|
578
|
-
moveAllRightTitle: 'Move all to right',
|
|
579
|
-
moveAllLeftTitle: 'Move all to left',
|
|
580
|
-
noOptionsTitle: 'No available options',
|
|
581
|
-
noValueTitle: 'No selected',
|
|
582
|
-
filterOptionsTitle: 'Filter options',
|
|
583
|
-
filterValueTitle: 'Filter selected value',
|
|
584
|
-
filterOptionsText: 'Remove your filter to see all options',
|
|
585
|
-
filterValueText: 'Remove your filter to see all selected',
|
|
586
|
-
options: [],
|
|
587
|
-
allToLeft: true,
|
|
588
|
-
allToRight: true,
|
|
589
|
-
isFilterable: true
|
|
590
|
-
};
|
|
591
586
|
|
|
592
587
|
var DualListSelectWrapper = function DualListSelectWrapper(props) {
|
|
593
588
|
return /*#__PURE__*/_react["default"].createElement(_dualListSelect["default"], (0, _extends2["default"])({}, props, {
|
package/esm/checkbox/checkbox.js
CHANGED
|
@@ -34,13 +34,20 @@ export var SingleCheckbox = function SingleCheckbox(props) {
|
|
|
34
34
|
description = _useFieldApi.description,
|
|
35
35
|
validateOnMount = _useFieldApi.validateOnMount,
|
|
36
36
|
meta = _useFieldApi.meta,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
37
|
+
_useFieldApi$FormFiel = _useFieldApi.FormFieldGridProps,
|
|
38
|
+
FormFieldGridProps = _useFieldApi$FormFiel === void 0 ? {} : _useFieldApi$FormFiel,
|
|
39
|
+
_useFieldApi$FormCont = _useFieldApi.FormControlProps,
|
|
40
|
+
FormControlProps = _useFieldApi$FormCont === void 0 ? {} : _useFieldApi$FormCont,
|
|
41
|
+
_useFieldApi$FormGrou = _useFieldApi.FormGroupProps,
|
|
42
|
+
FormGroupProps = _useFieldApi$FormGrou === void 0 ? {} : _useFieldApi$FormGrou,
|
|
43
|
+
_useFieldApi$FormCont2 = _useFieldApi.FormControlLabelProps,
|
|
44
|
+
FormControlLabelProps = _useFieldApi$FormCont2 === void 0 ? {} : _useFieldApi$FormCont2,
|
|
45
|
+
_useFieldApi$Checkbox = _useFieldApi.CheckboxProps,
|
|
46
|
+
CheckboxProps = _useFieldApi$Checkbox === void 0 ? {} : _useFieldApi$Checkbox,
|
|
47
|
+
_useFieldApi$FormLabe = _useFieldApi.FormLabelProps,
|
|
48
|
+
FormLabelProps = _useFieldApi$FormLabe === void 0 ? {} : _useFieldApi$FormLabe,
|
|
49
|
+
_useFieldApi$FormHelp = _useFieldApi.FormHelperTextProps,
|
|
50
|
+
FormHelperTextProps = _useFieldApi$FormHelp === void 0 ? {} : _useFieldApi$FormHelp,
|
|
44
51
|
inputProps = _useFieldApi.inputProps,
|
|
45
52
|
rest = _objectWithoutProperties(_useFieldApi, _excluded);
|
|
46
53
|
|
|
@@ -80,15 +87,6 @@ SingleCheckbox.propTypes = {
|
|
|
80
87
|
FormLabelProps: PropTypes.object,
|
|
81
88
|
FormHelperTextProps: PropTypes.object
|
|
82
89
|
};
|
|
83
|
-
SingleCheckbox.defaultProps = {
|
|
84
|
-
FormFieldGridProps: {},
|
|
85
|
-
FormControlProps: {},
|
|
86
|
-
FormGroupProps: {},
|
|
87
|
-
FormControlLabelProps: {},
|
|
88
|
-
CheckboxProps: {},
|
|
89
|
-
FormLabelProps: {},
|
|
90
|
-
FormHelperTextProps: {}
|
|
91
|
-
};
|
|
92
90
|
|
|
93
91
|
var Checkbox = function Checkbox(_ref) {
|
|
94
92
|
var options = _ref.options,
|
|
@@ -20,8 +20,10 @@ var DatePicker = function DatePicker(props) {
|
|
|
20
20
|
description = _useFieldApi.description,
|
|
21
21
|
validateOnMount = _useFieldApi.validateOnMount,
|
|
22
22
|
meta = _useFieldApi.meta,
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
_useFieldApi$FormFiel = _useFieldApi.FormFieldGridProps,
|
|
24
|
+
FormFieldGridProps = _useFieldApi$FormFiel === void 0 ? {} : _useFieldApi$FormFiel,
|
|
25
|
+
_useFieldApi$DatePick = _useFieldApi.DatePickerProps,
|
|
26
|
+
DatePickerProps = _useFieldApi$DatePick === void 0 ? {} : _useFieldApi$DatePick;
|
|
25
27
|
|
|
26
28
|
var invalid = validationError(meta, validateOnMount);
|
|
27
29
|
return /*#__PURE__*/React.createElement(FormFieldGrid, FormFieldGridProps, /*#__PURE__*/React.createElement(MUIDatePicker, _extends({
|
|
@@ -71,8 +73,4 @@ DatePicker.propTypes = {
|
|
|
71
73
|
FormFieldGridProps: PropTypes.object,
|
|
72
74
|
DatePickerProps: PropTypes.object
|
|
73
75
|
};
|
|
74
|
-
DatePicker.defaultProps = {
|
|
75
|
-
FormFieldGridProps: {},
|
|
76
|
-
DatePickerProps: {}
|
|
77
|
-
};
|
|
78
76
|
export default DatePicker;
|
|
@@ -66,13 +66,15 @@ var StyledDualListSelect = styled(FormFieldGrid)(function (_ref) {
|
|
|
66
66
|
});
|
|
67
67
|
|
|
68
68
|
var ListInternal = function ListInternal(_ref3) {
|
|
69
|
-
var value = _ref3.value,
|
|
69
|
+
var _ref3$value = _ref3.value,
|
|
70
|
+
value = _ref3$value === void 0 ? [] : _ref3$value,
|
|
70
71
|
optionClick = _ref3.optionClick,
|
|
71
72
|
noOptionsTitle = _ref3.noOptionsTitle,
|
|
72
73
|
filterValue = _ref3.filterValue,
|
|
73
74
|
filterValueText = _ref3.filterValueText,
|
|
74
75
|
selectedValues = _ref3.selectedValues,
|
|
75
|
-
ListProps = _ref3.ListProps,
|
|
76
|
+
_ref3$ListProps = _ref3.ListProps,
|
|
77
|
+
ListProps = _ref3$ListProps === void 0 ? {} : _ref3$ListProps,
|
|
76
78
|
ListItemProps = _ref3.ListItemProps,
|
|
77
79
|
ListItemIconProps = _ref3.ListItemIconProps,
|
|
78
80
|
ListItemTextProps = _ref3.ListItemTextProps,
|
|
@@ -142,10 +144,6 @@ ListInternal.propTypes = {
|
|
|
142
144
|
PaperProps: PropTypes.object,
|
|
143
145
|
LeftPaperProps: PropTypes.object
|
|
144
146
|
};
|
|
145
|
-
ListInternal.defaultProps = {
|
|
146
|
-
value: [],
|
|
147
|
-
ListProps: {}
|
|
148
|
-
};
|
|
149
147
|
|
|
150
148
|
var ToolbarInternal = function ToolbarInternal(_ref5) {
|
|
151
149
|
var ToolbarProps = _ref5.ToolbarProps,
|
|
@@ -211,23 +209,33 @@ ToolbarInternal.propTypes = {
|
|
|
211
209
|
var DualListSelect = function DualListSelect(_ref7) {
|
|
212
210
|
var handleOptionsClick = _ref7.handleOptionsClick,
|
|
213
211
|
rightValues = _ref7.rightValues,
|
|
214
|
-
noValueTitle = _ref7.noValueTitle,
|
|
215
|
-
|
|
212
|
+
_ref7$noValueTitle = _ref7.noValueTitle,
|
|
213
|
+
noValueTitle = _ref7$noValueTitle === void 0 ? 'No selected' : _ref7$noValueTitle,
|
|
214
|
+
_ref7$filterValueText = _ref7.filterValueText,
|
|
215
|
+
filterValueText = _ref7$filterValueText === void 0 ? 'Remove your filter to see all selected' : _ref7$filterValueText,
|
|
216
216
|
leftValues = _ref7.leftValues,
|
|
217
|
-
noOptionsTitle = _ref7.noOptionsTitle,
|
|
217
|
+
_ref7$noOptionsTitle = _ref7.noOptionsTitle,
|
|
218
|
+
noOptionsTitle = _ref7$noOptionsTitle === void 0 ? 'No available options' : _ref7$noOptionsTitle,
|
|
218
219
|
state = _ref7.state,
|
|
219
|
-
|
|
220
|
+
_ref7$filterOptionsTe = _ref7.filterOptionsText,
|
|
221
|
+
filterOptionsText = _ref7$filterOptionsTe === void 0 ? 'Remove your filter to see all options' : _ref7$filterOptionsTe,
|
|
220
222
|
handleValuesClick = _ref7.handleValuesClick,
|
|
221
223
|
handleMoveRight = _ref7.handleMoveRight,
|
|
222
|
-
moveRightTitle = _ref7.moveRightTitle,
|
|
224
|
+
_ref7$moveRightTitle = _ref7.moveRightTitle,
|
|
225
|
+
moveRightTitle = _ref7$moveRightTitle === void 0 ? 'Move selected to right' : _ref7$moveRightTitle,
|
|
223
226
|
handleClearLeftValues = _ref7.handleClearLeftValues,
|
|
224
|
-
|
|
227
|
+
_ref7$moveAllRightTit = _ref7.moveAllRightTitle,
|
|
228
|
+
moveAllRightTitle = _ref7$moveAllRightTit === void 0 ? 'Move all to right' : _ref7$moveAllRightTit,
|
|
225
229
|
handleClearRightValues = _ref7.handleClearRightValues,
|
|
226
|
-
|
|
230
|
+
_ref7$moveAllLeftTitl = _ref7.moveAllLeftTitle,
|
|
231
|
+
moveAllLeftTitle = _ref7$moveAllLeftTitl === void 0 ? 'Move all to left' : _ref7$moveAllLeftTitl,
|
|
227
232
|
handleMoveLeft = _ref7.handleMoveLeft,
|
|
228
|
-
moveLeftTitle = _ref7.moveLeftTitle,
|
|
229
|
-
|
|
230
|
-
|
|
233
|
+
_ref7$moveLeftTitle = _ref7.moveLeftTitle,
|
|
234
|
+
moveLeftTitle = _ref7$moveLeftTitle === void 0 ? 'Move selected to left' : _ref7$moveLeftTitle,
|
|
235
|
+
_ref7$allToRight = _ref7.allToRight,
|
|
236
|
+
allToRight = _ref7$allToRight === void 0 ? true : _ref7$allToRight,
|
|
237
|
+
_ref7$allToLeft = _ref7.allToLeft,
|
|
238
|
+
allToLeft = _ref7$allToLeft === void 0 ? true : _ref7$allToLeft,
|
|
231
239
|
checkboxVariant = _ref7.checkboxVariant,
|
|
232
240
|
isRequired = _ref7.isRequired,
|
|
233
241
|
meta = _ref7.meta,
|
|
@@ -235,15 +243,20 @@ var DualListSelect = function DualListSelect(_ref7) {
|
|
|
235
243
|
label = _ref7.label,
|
|
236
244
|
helperText = _ref7.helperText,
|
|
237
245
|
description = _ref7.description,
|
|
238
|
-
|
|
239
|
-
|
|
246
|
+
_ref7$filterOptionsTi = _ref7.filterOptionsTitle,
|
|
247
|
+
filterOptionsTitle = _ref7$filterOptionsTi === void 0 ? 'Filter options' : _ref7$filterOptionsTi,
|
|
248
|
+
_ref7$leftTitle = _ref7.leftTitle,
|
|
249
|
+
leftTitle = _ref7$leftTitle === void 0 ? 'Options' : _ref7$leftTitle,
|
|
240
250
|
filterOptions = _ref7.filterOptions,
|
|
241
251
|
sortOptions = _ref7.sortOptions,
|
|
242
252
|
sortValues = _ref7.sortValues,
|
|
243
|
-
|
|
253
|
+
_ref7$filterValueTitl = _ref7.filterValueTitle,
|
|
254
|
+
filterValueTitle = _ref7$filterValueTitl === void 0 ? 'Filter selected value' : _ref7$filterValueTitl,
|
|
244
255
|
filterValues = _ref7.filterValues,
|
|
245
|
-
rightTitle = _ref7.rightTitle,
|
|
246
|
-
|
|
256
|
+
_ref7$rightTitle = _ref7.rightTitle,
|
|
257
|
+
rightTitle = _ref7$rightTitle === void 0 ? 'Selected' : _ref7$rightTitle,
|
|
258
|
+
_ref7$isFilterable = _ref7.isFilterable,
|
|
259
|
+
isFilterable = _ref7$isFilterable === void 0 ? true : _ref7$isFilterable,
|
|
247
260
|
FormFieldGridProps = _ref7.FormFieldGridProps,
|
|
248
261
|
InternalGridProps = _ref7.InternalGridProps,
|
|
249
262
|
ListGridProps = _ref7.ListGridProps,
|
|
@@ -536,24 +549,6 @@ DualListSelect.propTypes = {
|
|
|
536
549
|
LeftPaperProps: PropTypes.object,
|
|
537
550
|
RightPaperProps: PropTypes.object
|
|
538
551
|
};
|
|
539
|
-
DualListSelect.defaultProps = {
|
|
540
|
-
leftTitle: 'Options',
|
|
541
|
-
rightTitle: 'Selected',
|
|
542
|
-
moveLeftTitle: 'Move selected to left',
|
|
543
|
-
moveRightTitle: 'Move selected to right',
|
|
544
|
-
moveAllRightTitle: 'Move all to right',
|
|
545
|
-
moveAllLeftTitle: 'Move all to left',
|
|
546
|
-
noOptionsTitle: 'No available options',
|
|
547
|
-
noValueTitle: 'No selected',
|
|
548
|
-
filterOptionsTitle: 'Filter options',
|
|
549
|
-
filterValueTitle: 'Filter selected value',
|
|
550
|
-
filterOptionsText: 'Remove your filter to see all options',
|
|
551
|
-
filterValueText: 'Remove your filter to see all selected',
|
|
552
|
-
options: [],
|
|
553
|
-
allToLeft: true,
|
|
554
|
-
allToRight: true,
|
|
555
|
-
isFilterable: true
|
|
556
|
-
};
|
|
557
552
|
|
|
558
553
|
var DualListSelectWrapper = function DualListSelectWrapper(props) {
|
|
559
554
|
return /*#__PURE__*/React.createElement(DualListSelectCommon, _extends({}, props, {
|
|
@@ -62,10 +62,14 @@ var ArrayItem = /*#__PURE__*/memo(function (_ref) {
|
|
|
62
62
|
length = _ref.length,
|
|
63
63
|
minItems = _ref.minItems,
|
|
64
64
|
removeLabel = _ref.removeLabel,
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
_ref$FieldContainerPr = _ref.FieldContainerProps,
|
|
66
|
+
FieldContainerProps = _ref$FieldContainerPr === void 0 ? {} : _ref$FieldContainerPr,
|
|
67
|
+
_ref$FieldGroupGridPr = _ref.FieldGroupGridProps,
|
|
68
|
+
FieldGroupGridProps = _ref$FieldGroupGridPr === void 0 ? {} : _ref$FieldGroupGridPr,
|
|
69
|
+
_ref$RemoveButtonGrid = _ref.RemoveButtonGridProps,
|
|
70
|
+
RemoveButtonGridProps = _ref$RemoveButtonGrid === void 0 ? {} : _ref$RemoveButtonGrid,
|
|
71
|
+
_ref$RemoveButtonProp = _ref.RemoveButtonProps,
|
|
72
|
+
RemoveButtonProps = _ref$RemoveButtonProp === void 0 ? {} : _ref$RemoveButtonProp;
|
|
69
73
|
|
|
70
74
|
var _useFormApi = useFormApi(),
|
|
71
75
|
renderForm = _useFormApi.renderForm;
|
|
@@ -119,12 +123,6 @@ ArrayItem.propTypes = {
|
|
|
119
123
|
RemoveButtonGridProps: PropTypes.object,
|
|
120
124
|
RemoveButtonProps: PropTypes.object
|
|
121
125
|
};
|
|
122
|
-
ArrayItem.defaultProps = {
|
|
123
|
-
FieldContainerProps: {},
|
|
124
|
-
FieldGroupGridProps: {},
|
|
125
|
-
RemoveButtonGridProps: {},
|
|
126
|
-
RemoveButtonProps: {}
|
|
127
|
-
};
|
|
128
126
|
var defaultButtonLabels = {
|
|
129
127
|
add: 'ADD',
|
|
130
128
|
remove: 'REMOVE'
|
|
@@ -174,28 +172,49 @@ var DynamicArray = function DynamicArray(_ref5) {
|
|
|
174
172
|
formFields = _useFieldApi.fields,
|
|
175
173
|
defaultItem = _useFieldApi.defaultItem,
|
|
176
174
|
meta = _useFieldApi.meta,
|
|
177
|
-
minItems = _useFieldApi.minItems,
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
175
|
+
_useFieldApi$minItems = _useFieldApi.minItems,
|
|
176
|
+
minItems = _useFieldApi$minItems === void 0 ? 0 : _useFieldApi$minItems,
|
|
177
|
+
_useFieldApi$maxItems = _useFieldApi.maxItems,
|
|
178
|
+
maxItems = _useFieldApi$maxItems === void 0 ? Infinity : _useFieldApi$maxItems,
|
|
179
|
+
_useFieldApi$noItemsM = _useFieldApi.noItemsMessage,
|
|
180
|
+
noItemsMessage = _useFieldApi$noItemsM === void 0 ? 'No items added' : _useFieldApi$noItemsM,
|
|
181
|
+
_useFieldApi$FormFiel = _useFieldApi.FormFieldGridProps,
|
|
182
|
+
FormFieldGridProps = _useFieldApi$FormFiel === void 0 ? {} : _useFieldApi$FormFiel,
|
|
183
|
+
_useFieldApi$FormCont = _useFieldApi.FormControlProps,
|
|
184
|
+
FormControlProps = _useFieldApi$FormCont === void 0 ? {} : _useFieldApi$FormCont,
|
|
182
185
|
buttonLabels = _useFieldApi.buttonLabels,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
186
|
+
_useFieldApi$GridCont = _useFieldApi.GridContainerProps,
|
|
187
|
+
GridContainerProps = _useFieldApi$GridCont === void 0 ? {} : _useFieldApi$GridCont,
|
|
188
|
+
_useFieldApi$HeaderGr = _useFieldApi.HeaderGridProps,
|
|
189
|
+
HeaderGridProps = _useFieldApi$HeaderGr === void 0 ? {} : _useFieldApi$HeaderGr,
|
|
190
|
+
_useFieldApi$HeaderPr = _useFieldApi.HeaderProps,
|
|
191
|
+
HeaderProps = _useFieldApi$HeaderPr === void 0 ? {} : _useFieldApi$HeaderPr,
|
|
192
|
+
_useFieldApi$UndoButt = _useFieldApi.UndoButtonProps,
|
|
193
|
+
UndoButtonProps = _useFieldApi$UndoButt === void 0 ? {} : _useFieldApi$UndoButt,
|
|
194
|
+
_useFieldApi$RedoButt = _useFieldApi.RedoButtonProps,
|
|
195
|
+
RedoButtonProps = _useFieldApi$RedoButt === void 0 ? {} : _useFieldApi$RedoButt,
|
|
196
|
+
_useFieldApi$AddButto = _useFieldApi.AddButtonProps,
|
|
197
|
+
AddButtonProps = _useFieldApi$AddButto === void 0 ? {} : _useFieldApi$AddButto,
|
|
198
|
+
_useFieldApi$Descript = _useFieldApi.DescriptionGridProps,
|
|
199
|
+
DescriptionGridProps = _useFieldApi$Descript === void 0 ? {} : _useFieldApi$Descript,
|
|
200
|
+
_useFieldApi$Descript2 = _useFieldApi.DescriptionProps,
|
|
201
|
+
DescriptionProps = _useFieldApi$Descript2 === void 0 ? {} : _useFieldApi$Descript2,
|
|
202
|
+
_useFieldApi$BodyGrid = _useFieldApi.BodyGridProps,
|
|
203
|
+
BodyGridProps = _useFieldApi$BodyGrid === void 0 ? {} : _useFieldApi$BodyGrid,
|
|
204
|
+
_useFieldApi$NoItemsP = _useFieldApi.NoItemsProps,
|
|
205
|
+
NoItemsProps = _useFieldApi$NoItemsP === void 0 ? {} : _useFieldApi$NoItemsP,
|
|
206
|
+
_useFieldApi$FormHelp = _useFieldApi.FormHelperTextGridProps,
|
|
207
|
+
FormHelperTextGridProps = _useFieldApi$FormHelp === void 0 ? {} : _useFieldApi$FormHelp,
|
|
208
|
+
_useFieldApi$FormHelp2 = _useFieldApi.FormHelperTextProps,
|
|
209
|
+
FormHelperTextProps = _useFieldApi$FormHelp2 === void 0 ? {} : _useFieldApi$FormHelp2,
|
|
210
|
+
_useFieldApi$FieldCon = _useFieldApi.FieldContainerProps,
|
|
211
|
+
FieldContainerProps = _useFieldApi$FieldCon === void 0 ? {} : _useFieldApi$FieldCon,
|
|
212
|
+
_useFieldApi$FieldGro = _useFieldApi.FieldGroupGridProps,
|
|
213
|
+
FieldGroupGridProps = _useFieldApi$FieldGro === void 0 ? {} : _useFieldApi$FieldGro,
|
|
214
|
+
_useFieldApi$RemoveBu = _useFieldApi.RemoveButtonGridProps,
|
|
215
|
+
RemoveButtonGridProps = _useFieldApi$RemoveBu === void 0 ? {} : _useFieldApi$RemoveBu,
|
|
216
|
+
_useFieldApi$RemoveBu2 = _useFieldApi.RemoveButtonProps,
|
|
217
|
+
RemoveButtonProps = _useFieldApi$RemoveBu2 === void 0 ? {} : _useFieldApi$RemoveBu2,
|
|
199
218
|
rest = _objectWithoutProperties(_useFieldApi, _excluded3);
|
|
200
219
|
|
|
201
220
|
var _useReducer = useReducer(reducer, initialState),
|
|
@@ -353,27 +372,4 @@ DynamicArray.propTypes = {
|
|
|
353
372
|
RemoveButtonGridProps: PropTypes.object,
|
|
354
373
|
RemoveButtonProps: PropTypes.object
|
|
355
374
|
};
|
|
356
|
-
DynamicArray.defaultProps = {
|
|
357
|
-
maxItems: Infinity,
|
|
358
|
-
minItems: 0,
|
|
359
|
-
noItemsMessage: 'No items added',
|
|
360
|
-
FormControlProps: {},
|
|
361
|
-
FormFieldGridProps: {},
|
|
362
|
-
GridContainerProps: {},
|
|
363
|
-
HeaderGridProps: {},
|
|
364
|
-
HeaderProps: {},
|
|
365
|
-
UndoButtonProps: {},
|
|
366
|
-
RedoButtonProps: {},
|
|
367
|
-
AddButtonProps: {},
|
|
368
|
-
DescriptionGridProps: {},
|
|
369
|
-
DescriptionProps: {},
|
|
370
|
-
BodyGridProps: {},
|
|
371
|
-
NoItemsProps: {},
|
|
372
|
-
FormHelperTextGridProps: {},
|
|
373
|
-
FormHelperTextProps: {},
|
|
374
|
-
FieldContainerProps: {},
|
|
375
|
-
FieldGroupGridProps: {},
|
|
376
|
-
RemoveButtonGridProps: {},
|
|
377
|
-
RemoveButtonProps: {}
|
|
378
|
-
};
|
|
379
375
|
export default DynamicArray;
|
|
@@ -83,13 +83,20 @@ var Wrapper = function Wrapper(_ref2) {
|
|
|
83
83
|
Wrapper.propTypes = _objectSpread({}, wrapperProps);
|
|
84
84
|
|
|
85
85
|
var MultipleChoiceList = function MultipleChoiceList(_ref3) {
|
|
86
|
-
var
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
var _ref3$FormControlProp = _ref3.FormControlProps,
|
|
87
|
+
FormControlProps = _ref3$FormControlProp === void 0 ? {} : _ref3$FormControlProp,
|
|
88
|
+
_ref3$FormLabelProps = _ref3.FormLabelProps,
|
|
89
|
+
FormLabelProps = _ref3$FormLabelProps === void 0 ? {} : _ref3$FormLabelProps,
|
|
90
|
+
_ref3$FormGroupProps = _ref3.FormGroupProps,
|
|
91
|
+
FormGroupProps = _ref3$FormGroupProps === void 0 ? {} : _ref3$FormGroupProps,
|
|
92
|
+
_ref3$FormHelperTextP = _ref3.FormHelperTextProps,
|
|
93
|
+
FormHelperTextProps = _ref3$FormHelperTextP === void 0 ? {} : _ref3$FormHelperTextP,
|
|
94
|
+
_ref3$FormFieldGridPr = _ref3.FormFieldGridProps,
|
|
95
|
+
FormFieldGridProps = _ref3$FormFieldGridPr === void 0 ? {} : _ref3$FormFieldGridPr,
|
|
96
|
+
_ref3$FormControlLabe = _ref3.FormControlLabelProps,
|
|
97
|
+
FormControlLabelProps = _ref3$FormControlLabe === void 0 ? {} : _ref3$FormControlLabe,
|
|
98
|
+
_ref3$CheckboxProps = _ref3.CheckboxProps,
|
|
99
|
+
CheckboxProps = _ref3$CheckboxProps === void 0 ? {} : _ref3$CheckboxProps,
|
|
93
100
|
props = _objectWithoutProperties(_ref3, _excluded3);
|
|
94
101
|
|
|
95
102
|
return /*#__PURE__*/React.createElement(CheckboxContext.Provider, {
|
|
@@ -121,13 +128,4 @@ MultipleChoiceList.propTypes = {
|
|
|
121
128
|
FormLabelProps: PropTypes.object,
|
|
122
129
|
FormHelperTextProps: PropTypes.object
|
|
123
130
|
};
|
|
124
|
-
MultipleChoiceList.defaultProps = {
|
|
125
|
-
FormFieldGridProps: {},
|
|
126
|
-
FormControlProps: {},
|
|
127
|
-
FormGroupProps: {},
|
|
128
|
-
FormControlLabelProps: {},
|
|
129
|
-
CheckboxProps: {},
|
|
130
|
-
FormLabelProps: {},
|
|
131
|
-
FormHelperTextProps: {}
|
|
132
|
-
};
|
|
133
131
|
export default MultipleChoiceList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
|
-
var _excluded = ["label", "name", "component", "element"];
|
|
3
|
+
var _excluded = ["label", "name", "component", "element", "variant", "gutterBottom"];
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import Typography from "@mui/material/Typography";
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
@@ -10,11 +10,17 @@ var PlainText = function PlainText(_ref) {
|
|
|
10
10
|
name = _ref.name,
|
|
11
11
|
component = _ref.component,
|
|
12
12
|
element = _ref.element,
|
|
13
|
+
_ref$variant = _ref.variant,
|
|
14
|
+
variant = _ref$variant === void 0 ? 'body1' : _ref$variant,
|
|
15
|
+
_ref$gutterBottom = _ref.gutterBottom,
|
|
16
|
+
gutterBottom = _ref$gutterBottom === void 0 ? true : _ref$gutterBottom,
|
|
13
17
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
14
18
|
|
|
15
19
|
return typeof label === 'string' ? label.split('\n').map(function (paragraph, index) {
|
|
16
20
|
return /*#__PURE__*/React.createElement(Typography, _extends({
|
|
17
|
-
key: "".concat(index, "-").concat(name)
|
|
21
|
+
key: "".concat(index, "-").concat(name),
|
|
22
|
+
variant: variant,
|
|
23
|
+
gutterBottom: gutterBottom
|
|
18
24
|
}, props, element && {
|
|
19
25
|
component: element
|
|
20
26
|
}), paragraph);
|
|
@@ -27,10 +33,8 @@ PlainText.propTypes = {
|
|
|
27
33
|
label: PropTypes.node.isRequired,
|
|
28
34
|
name: PropTypes.string.isRequired,
|
|
29
35
|
component: PropTypes.any,
|
|
30
|
-
element: PropTypes.elementType
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
variant: 'body1',
|
|
34
|
-
gutterBottom: true
|
|
36
|
+
element: PropTypes.elementType,
|
|
37
|
+
gutterBottom: PropTypes.bool,
|
|
38
|
+
variant: PropTypes.string
|
|
35
39
|
};
|
|
36
40
|
export default PlainText;
|