@maif/react-forms 1.0.58 → 1.0.59
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/lib/esm/index.js +61 -61
- package/lib/index.css +113 -113
- package/lib/index.js +61 -61
- package/package.json +1 -1
package/lib/esm/index.js
CHANGED
|
@@ -547,28 +547,28 @@ var BooleanInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
547
547
|
};
|
|
548
548
|
|
|
549
549
|
return /*#__PURE__*/React.createElement("div", {
|
|
550
|
-
className: classNames((_classNames = {}, _defineProperty$1(_classNames, 'cursor_pointer', !readOnly), _defineProperty$1(_classNames, 'cursor_not_allowed', readOnly), _classNames))
|
|
550
|
+
className: classNames((_classNames = {}, _defineProperty$1(_classNames, 'mrf-cursor_pointer', !readOnly), _defineProperty$1(_classNames, 'mrf-cursor_not_allowed', readOnly), _classNames))
|
|
551
551
|
}, !!value && /*#__PURE__*/React.createElement("div", {
|
|
552
|
-
className: classNames('content_switch_button_on'),
|
|
552
|
+
className: classNames('mrf-content_switch_button_on'),
|
|
553
553
|
onClick: function onClick() {
|
|
554
554
|
return handleClick(false);
|
|
555
555
|
}
|
|
556
556
|
}, /*#__PURE__*/React.createElement("div", {
|
|
557
|
-
className: classNames('switch_button_on')
|
|
557
|
+
className: classNames('mrf-switch_button_on')
|
|
558
558
|
})), !value && value !== null && /*#__PURE__*/React.createElement("div", {
|
|
559
|
-
className: classNames('content_switch_button_off'),
|
|
559
|
+
className: classNames('mrf-content_switch_button_off'),
|
|
560
560
|
onClick: function onClick() {
|
|
561
561
|
return handleClick(true);
|
|
562
562
|
}
|
|
563
563
|
}, /*#__PURE__*/React.createElement("div", {
|
|
564
|
-
className: classNames('switch_button_off')
|
|
564
|
+
className: classNames('mrf-switch_button_off')
|
|
565
565
|
})), value === null && /*#__PURE__*/React.createElement("div", {
|
|
566
|
-
className: classNames('content_switch_button_null'),
|
|
566
|
+
className: classNames('mrf-content_switch_button_null'),
|
|
567
567
|
onClick: function onClick() {
|
|
568
568
|
return handleClick(true);
|
|
569
569
|
}
|
|
570
570
|
}, /*#__PURE__*/React.createElement("div", {
|
|
571
|
-
className: classNames('switch_button_null')
|
|
571
|
+
className: classNames('mrf-switch_button_null')
|
|
572
572
|
})));
|
|
573
573
|
});
|
|
574
574
|
|
|
@@ -586,22 +586,22 @@ var Collapse = function Collapse(props) {
|
|
|
586
586
|
};
|
|
587
587
|
|
|
588
588
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("hr", {
|
|
589
|
-
className: classNames(_defineProperty$1({}, 'collapse_error', props.errored))
|
|
589
|
+
className: classNames(_defineProperty$1({}, 'mrf-collapse_error', props.errored))
|
|
590
590
|
}), /*#__PURE__*/React.createElement("div", {
|
|
591
|
-
className: "cursor_pointer flex jc_between",
|
|
591
|
+
className: "mrf-cursor_pointer mrf-flex mrf-jc_between",
|
|
592
592
|
onClick: toggle
|
|
593
593
|
}, /*#__PURE__*/React.createElement("span", {
|
|
594
|
-
className: classNames('collapse_label', _defineProperty$1({}, 'collapse_error', props.errored))
|
|
594
|
+
className: classNames('mrf-collapse_label', _defineProperty$1({}, 'mrf-collapse_error', props.errored))
|
|
595
595
|
}, props.label), /*#__PURE__*/React.createElement("button", {
|
|
596
596
|
type: "button",
|
|
597
|
-
className: classNames('btn', 'btn_sm', 'ml_5', _defineProperty$1({}, 'collapse_error', props.errored)),
|
|
597
|
+
className: classNames('mrf-btn', 'mrf-btn_sm', 'mrf-ml_5', _defineProperty$1({}, 'mrf-collapse_error', props.errored)),
|
|
598
598
|
onClick: toggle
|
|
599
599
|
}, !!collapsed && /*#__PURE__*/React.createElement(Eye, {
|
|
600
600
|
size: 16
|
|
601
601
|
}), !collapsed && /*#__PURE__*/React.createElement(EyeOff, {
|
|
602
602
|
size: 16
|
|
603
603
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
604
|
-
className: classNames('ml_10', (_classNames4 = {}, _defineProperty$1(_classNames4, 'display__none', !!collapsed), _defineProperty$1(_classNames4, 'flex', !!props.inline), _defineProperty$1(_classNames4, 'collapse__inline', !!props.inline), _classNames4))
|
|
604
|
+
className: classNames('mrf-ml_10', (_classNames4 = {}, _defineProperty$1(_classNames4, 'mrf-display__none', !!collapsed), _defineProperty$1(_classNames4, 'mrf-flex', !!props.inline), _defineProperty$1(_classNames4, 'mrf-collapse__inline', !!props.inline), _classNames4))
|
|
605
605
|
}, props.children), props.lineEnd && /*#__PURE__*/React.createElement("hr", null));
|
|
606
606
|
};
|
|
607
607
|
|
|
@@ -853,7 +853,7 @@ var SelectInput = /*#__PURE__*/React.forwardRef(function (props, _) {
|
|
|
853
853
|
key: idx,
|
|
854
854
|
type: "button",
|
|
855
855
|
disabled: props.disabled,
|
|
856
|
-
className: classNames(props.className, 'btn btn_grey ml_5', {
|
|
856
|
+
className: classNames(props.className, 'mrf-btn mrf-btn_grey mrf-ml_5', {
|
|
857
857
|
active: active
|
|
858
858
|
}),
|
|
859
859
|
onClick: function onClick() {
|
|
@@ -1005,7 +1005,7 @@ var ObjectInput = function ObjectInput(props) {
|
|
|
1005
1005
|
}, Object.keys(internalState || {}).length === 0 && /*#__PURE__*/React.createElement("button", {
|
|
1006
1006
|
disabled: props.disabled,
|
|
1007
1007
|
type: "button",
|
|
1008
|
-
className: "flex btn btn_blue btn_sm",
|
|
1008
|
+
className: "mrf-flex mrf-btn mrf-btn_blue mrf-btn_sm",
|
|
1009
1009
|
onClick: addFirst
|
|
1010
1010
|
}, /*#__PURE__*/React.createElement(PlusCircle, null)), Object.entries(internalState || {}).map(function (_ref9, idx) {
|
|
1011
1011
|
var _ref10 = _slicedToArray(_ref9, 2),
|
|
@@ -1015,12 +1015,12 @@ var ObjectInput = function ObjectInput(props) {
|
|
|
1015
1015
|
value = _ref10$.value;
|
|
1016
1016
|
|
|
1017
1017
|
return /*#__PURE__*/React.createElement("div", {
|
|
1018
|
-
className: "flex mt_5",
|
|
1018
|
+
className: "mrf-flex mrf-mt_5",
|
|
1019
1019
|
key: idx
|
|
1020
1020
|
}, /*#__PURE__*/React.createElement("input", {
|
|
1021
1021
|
disabled: props.disabled,
|
|
1022
1022
|
type: "text",
|
|
1023
|
-
className: "w_50 input",
|
|
1023
|
+
className: "mrf-w_50 mrf-input",
|
|
1024
1024
|
placeholder: props.placeholderKey,
|
|
1025
1025
|
value: key,
|
|
1026
1026
|
onChange: function onChange(e) {
|
|
@@ -1029,7 +1029,7 @@ var ObjectInput = function ObjectInput(props) {
|
|
|
1029
1029
|
}), /*#__PURE__*/React.createElement("input", {
|
|
1030
1030
|
disabled: props.disabled,
|
|
1031
1031
|
type: "text",
|
|
1032
|
-
className: "w_50 input",
|
|
1032
|
+
className: "mrf-w_50 mrf-input",
|
|
1033
1033
|
placeholder: props.placeholderValue,
|
|
1034
1034
|
value: value,
|
|
1035
1035
|
onChange: function onChange(e) {
|
|
@@ -1038,14 +1038,14 @@ var ObjectInput = function ObjectInput(props) {
|
|
|
1038
1038
|
}), /*#__PURE__*/React.createElement("button", {
|
|
1039
1039
|
disabled: props.disabled,
|
|
1040
1040
|
type: "button",
|
|
1041
|
-
className: "flex btn btn_red btn_sm ml_10",
|
|
1041
|
+
className: "mrf-flex mrf-btn mrf-btn_red mrf-btn_sm mrf-ml_10",
|
|
1042
1042
|
onClick: function onClick() {
|
|
1043
1043
|
return remove(id);
|
|
1044
1044
|
}
|
|
1045
1045
|
}, /*#__PURE__*/React.createElement(MinusCircle, null)), idx === Object.keys(internalState).length - 1 && /*#__PURE__*/React.createElement("button", {
|
|
1046
1046
|
disabled: props.disabled,
|
|
1047
1047
|
type: "button",
|
|
1048
|
-
className: "flex btn btn_blue btn_sm ml_5",
|
|
1048
|
+
className: "mrf-flex mrf-btn mrf-btn_blue mrf-btn_sm mrf-ml_5",
|
|
1049
1049
|
onClick: addNext
|
|
1050
1050
|
}, /*#__PURE__*/React.createElement(PlusCircle, null)));
|
|
1051
1051
|
}));
|
|
@@ -28442,7 +28442,7 @@ var MarkdownInput = function MarkdownInput(props) {
|
|
|
28442
28442
|
}];
|
|
28443
28443
|
|
|
28444
28444
|
var showPreview = function showPreview() {
|
|
28445
|
-
var parent = _toConsumableArray$1(document.getElementsByClassName('preview'));
|
|
28445
|
+
var parent = _toConsumableArray$1(document.getElementsByClassName('mrf-preview'));
|
|
28446
28446
|
|
|
28447
28447
|
if (parent.length > 0) _toConsumableArray$1(parent[0].querySelectorAll('pre code')).forEach(function (block) {
|
|
28448
28448
|
return hljs.highlightElement(block);
|
|
@@ -28457,7 +28457,7 @@ var MarkdownInput = function MarkdownInput(props) {
|
|
|
28457
28457
|
|
|
28458
28458
|
return /*#__PURE__*/React.createElement("button", {
|
|
28459
28459
|
type: "button",
|
|
28460
|
-
className: classNames('btn_for_descriptionToolbar'),
|
|
28460
|
+
className: classNames('mrf-btn_for_descriptionToolbar'),
|
|
28461
28461
|
"aria-label": command.name,
|
|
28462
28462
|
title: command.name,
|
|
28463
28463
|
key: "toolbar-btn-".concat(idx),
|
|
@@ -28493,7 +28493,7 @@ var MarkdownInput = function MarkdownInput(props) {
|
|
|
28493
28493
|
}
|
|
28494
28494
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("button", {
|
|
28495
28495
|
type: "button",
|
|
28496
|
-
className: "btn btn_sm",
|
|
28496
|
+
className: "mrf-btn mrf-btn_sm",
|
|
28497
28497
|
style: {
|
|
28498
28498
|
color: !preview ? '#7f96af' : 'white',
|
|
28499
28499
|
backgroundColor: preview ? '#7f96af' : 'white'
|
|
@@ -28503,7 +28503,7 @@ var MarkdownInput = function MarkdownInput(props) {
|
|
|
28503
28503
|
}
|
|
28504
28504
|
}, "Write"), /*#__PURE__*/React.createElement("button", {
|
|
28505
28505
|
type: "button",
|
|
28506
|
-
className: "btn btn_sm ml_5",
|
|
28506
|
+
className: "mrf-btn mrf-btn_sm mrf-ml_5",
|
|
28507
28507
|
style: {
|
|
28508
28508
|
color: preview ? '#7f96af' : 'white',
|
|
28509
28509
|
backgroundColor: preview ? 'white' : '#7f96af'
|
|
@@ -28512,13 +28512,13 @@ var MarkdownInput = function MarkdownInput(props) {
|
|
|
28512
28512
|
return setPreview(true);
|
|
28513
28513
|
}
|
|
28514
28514
|
}, "Preview"))), /*#__PURE__*/React.createElement("div", {
|
|
28515
|
-
className: "flex flexWrap"
|
|
28515
|
+
className: "mrf-flex mrf-flexWrap"
|
|
28516
28516
|
}, injectButtons())), !preview && /*#__PURE__*/React.createElement(CodeInput, _extends({}, props, {
|
|
28517
28517
|
setRef: function setRef(e) {
|
|
28518
28518
|
return ref.current = e;
|
|
28519
28519
|
}
|
|
28520
28520
|
})), preview && /*#__PURE__*/React.createElement("div", {
|
|
28521
|
-
className: "preview",
|
|
28521
|
+
className: "mrf-preview",
|
|
28522
28522
|
dangerouslySetInnerHTML: {
|
|
28523
28523
|
__html: converter.makeHtml(props.value)
|
|
28524
28524
|
}
|
|
@@ -28840,19 +28840,19 @@ var BasicWrapper = function BasicWrapper(_ref) {
|
|
|
28840
28840
|
}
|
|
28841
28841
|
|
|
28842
28842
|
return /*#__PURE__*/React.createElement("div", {
|
|
28843
|
-
className: "mt_10",
|
|
28843
|
+
className: "mrf-mt_10",
|
|
28844
28844
|
style: {
|
|
28845
28845
|
position: 'relative'
|
|
28846
28846
|
}
|
|
28847
28847
|
}, label && /*#__PURE__*/React.createElement("label", {
|
|
28848
|
-
className: "flex ai_center mb_5",
|
|
28848
|
+
className: "mrf-flex mrf-ai_center mrf-mb_5",
|
|
28849
28849
|
htmlFor: entry
|
|
28850
28850
|
}, /*#__PURE__*/React.createElement("span", null, label), help && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(ReactToolTip, {
|
|
28851
28851
|
html: true,
|
|
28852
28852
|
place: 'bottom',
|
|
28853
28853
|
id: id
|
|
28854
28854
|
}), /*#__PURE__*/React.createElement("span", {
|
|
28855
|
-
className: "flex ai_center",
|
|
28855
|
+
className: "mrf-flex mrf-ai_center",
|
|
28856
28856
|
"data-html": true,
|
|
28857
28857
|
"data-tip": help,
|
|
28858
28858
|
"data-for": id
|
|
@@ -28864,7 +28864,7 @@ var BasicWrapper = function BasicWrapper(_ref) {
|
|
|
28864
28864
|
cursor: 'help'
|
|
28865
28865
|
}
|
|
28866
28866
|
})))), children, error && /*#__PURE__*/React.createElement("div", {
|
|
28867
|
-
className: classNames('feedback', _defineProperty$1({}, 'txt_red', errorDisplayed))
|
|
28867
|
+
className: classNames('mrf-feedback', _defineProperty$1({}, 'mrf-txt_red', errorDisplayed))
|
|
28868
28868
|
}, error.message));
|
|
28869
28869
|
};
|
|
28870
28870
|
|
|
@@ -29141,7 +29141,7 @@ var Form = /*#__PURE__*/React.forwardRef(function (_ref7, ref) {
|
|
|
29141
29141
|
handleSubmit: _handleSubmit,
|
|
29142
29142
|
watch: methods.watch
|
|
29143
29143
|
}), /*#__PURE__*/React.createElement("form", {
|
|
29144
|
-
className: className || "pr_15 w_100",
|
|
29144
|
+
className: className || "mrf-pr_15 mrf-w_100",
|
|
29145
29145
|
onSubmit: _handleSubmit(function (data) {
|
|
29146
29146
|
var clean = cleanOutputArray(data, schema);
|
|
29147
29147
|
onSubmit(clean);
|
|
@@ -29217,9 +29217,9 @@ var Footer = function Footer(props) {
|
|
|
29217
29217
|
|
|
29218
29218
|
var isSubmitDisplayed = ((_props$actions = props.actions) === null || _props$actions === void 0 ? void 0 : (_props$actions$submit = _props$actions.submit) === null || _props$actions$submit === void 0 ? void 0 : _props$actions$submit.display) === undefined ? true : !!((_props$actions2 = props.actions) !== null && _props$actions2 !== void 0 && (_props$actions2$submi = _props$actions2.submit) !== null && _props$actions2$submi !== void 0 && _props$actions2$submi.display);
|
|
29219
29219
|
return /*#__PURE__*/React.createElement("div", {
|
|
29220
|
-
className: "flex jc_end mt_5"
|
|
29220
|
+
className: "mrf-flex mrf-jc_end mrf-mt_5"
|
|
29221
29221
|
}, ((_props$actions3 = props.actions) === null || _props$actions3 === void 0 ? void 0 : (_props$actions3$cance = _props$actions3.cancel) === null || _props$actions3$cance === void 0 ? void 0 : _props$actions3$cance.display) && /*#__PURE__*/React.createElement("button", {
|
|
29222
|
-
className: "btn btn_red",
|
|
29222
|
+
className: "mrf-btn mrf-btn_red",
|
|
29223
29223
|
type: "button",
|
|
29224
29224
|
onClick: function onClick() {
|
|
29225
29225
|
var _props$actions4;
|
|
@@ -29227,11 +29227,11 @@ var Footer = function Footer(props) {
|
|
|
29227
29227
|
return (_props$actions4 = props.actions) === null || _props$actions4 === void 0 ? void 0 : _props$actions4.cancel.action();
|
|
29228
29228
|
}
|
|
29229
29229
|
}, ((_props$actions5 = props.actions) === null || _props$actions5 === void 0 ? void 0 : (_props$actions5$cance = _props$actions5.cancel) === null || _props$actions5$cance === void 0 ? void 0 : _props$actions5$cance.label) || 'Cancel'), ((_props$actions6 = props.actions) === null || _props$actions6 === void 0 ? void 0 : (_props$actions6$reset = _props$actions6.reset) === null || _props$actions6$reset === void 0 ? void 0 : _props$actions6$reset.display) && /*#__PURE__*/React.createElement("button", {
|
|
29230
|
-
className: "btn btn_red",
|
|
29230
|
+
className: "mrf-btn mrf-btn_red",
|
|
29231
29231
|
type: "button",
|
|
29232
29232
|
onClick: props.reset
|
|
29233
29233
|
}, ((_props$actions7 = props.actions) === null || _props$actions7 === void 0 ? void 0 : (_props$actions7$reset = _props$actions7.reset) === null || _props$actions7$reset === void 0 ? void 0 : _props$actions7$reset.label) || 'Reset'), isSubmitDisplayed && /*#__PURE__*/React.createElement("button", {
|
|
29234
|
-
className: "btn btn_green ml_10",
|
|
29234
|
+
className: "mrf-btn mrf-btn_green mrf-ml_10",
|
|
29235
29235
|
type: "submit"
|
|
29236
29236
|
}, ((_props$actions8 = props.actions) === null || _props$actions8 === void 0 ? void 0 : (_props$actions8$submi = _props$actions8.submit) === null || _props$actions8$submi === void 0 ? void 0 : _props$actions8$submi.label) || 'Save'));
|
|
29237
29237
|
};
|
|
@@ -29405,7 +29405,7 @@ var Step = function Step(_ref8) {
|
|
|
29405
29405
|
errorDisplayed: errorDisplayed
|
|
29406
29406
|
}, /*#__PURE__*/React.createElement("textarea", {
|
|
29407
29407
|
type: "text",
|
|
29408
|
-
className: classNames('input', step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29408
|
+
className: classNames('mrf-input', step.className, _defineProperty$1({}, 'mrf-mrf-input__invalid', errorDisplayed))
|
|
29409
29409
|
}));
|
|
29410
29410
|
|
|
29411
29411
|
case format.code:
|
|
@@ -29417,7 +29417,7 @@ var Step = function Step(_ref8) {
|
|
|
29417
29417
|
entry: entry,
|
|
29418
29418
|
errorDisplayed: errorDisplayed
|
|
29419
29419
|
}, /*#__PURE__*/React.createElement(Component, {
|
|
29420
|
-
className: classNames(step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29420
|
+
className: classNames(step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29421
29421
|
}));
|
|
29422
29422
|
|
|
29423
29423
|
case format.markdown:
|
|
@@ -29427,7 +29427,7 @@ var Step = function Step(_ref8) {
|
|
|
29427
29427
|
entry: entry,
|
|
29428
29428
|
errorDisplayed: errorDisplayed
|
|
29429
29429
|
}, /*#__PURE__*/React.createElement(MarkdownInput, {
|
|
29430
|
-
className: classNames(step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29430
|
+
className: classNames(step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29431
29431
|
}));
|
|
29432
29432
|
|
|
29433
29433
|
case format.buttonsSelect:
|
|
@@ -29439,7 +29439,7 @@ var Step = function Step(_ref8) {
|
|
|
29439
29439
|
entry: entry,
|
|
29440
29440
|
errorDisplayed: errorDisplayed
|
|
29441
29441
|
}, /*#__PURE__*/React.createElement(SelectInput, _extends({
|
|
29442
|
-
className: classNames('flex_grow_1', step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed)),
|
|
29442
|
+
className: classNames('mrf-flex_grow_1', step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed)),
|
|
29443
29443
|
disabled: functionalProperty(entry, step.disabled)
|
|
29444
29444
|
}, step.props, {
|
|
29445
29445
|
possibleValues: step.options,
|
|
@@ -29460,7 +29460,7 @@ var Step = function Step(_ref8) {
|
|
|
29460
29460
|
errorDisplayed: errorDisplayed
|
|
29461
29461
|
}, /*#__PURE__*/React.createElement("input", {
|
|
29462
29462
|
type: step.format || 'text',
|
|
29463
|
-
className: classNames('input', step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29463
|
+
className: classNames('mrf-input', step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29464
29464
|
}));
|
|
29465
29465
|
}
|
|
29466
29466
|
|
|
@@ -29474,7 +29474,7 @@ var Step = function Step(_ref8) {
|
|
|
29474
29474
|
entry: entry,
|
|
29475
29475
|
errorDisplayed: errorDisplayed
|
|
29476
29476
|
}, /*#__PURE__*/React.createElement(SelectInput, _extends({
|
|
29477
|
-
className: classNames('content', step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29477
|
+
className: classNames('mrf-content', step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29478
29478
|
}, step.props, {
|
|
29479
29479
|
possibleValues: step.options,
|
|
29480
29480
|
httpClient: httpClient,
|
|
@@ -29494,7 +29494,7 @@ var Step = function Step(_ref8) {
|
|
|
29494
29494
|
errorDisplayed: errorDisplayed
|
|
29495
29495
|
}, /*#__PURE__*/React.createElement("input", {
|
|
29496
29496
|
type: step.format || 'number',
|
|
29497
|
-
className: classNames('input', step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29497
|
+
className: classNames('mrf-input', step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29498
29498
|
}));
|
|
29499
29499
|
}
|
|
29500
29500
|
|
|
@@ -29504,7 +29504,7 @@ var Step = function Step(_ref8) {
|
|
|
29504
29504
|
entry: entry,
|
|
29505
29505
|
errorDisplayed: errorDisplayed
|
|
29506
29506
|
}, /*#__PURE__*/React.createElement(BooleanInput, {
|
|
29507
|
-
className: classNames(step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29507
|
+
className: classNames(step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29508
29508
|
}));
|
|
29509
29509
|
|
|
29510
29510
|
case type.object:
|
|
@@ -29517,7 +29517,7 @@ var Step = function Step(_ref8) {
|
|
|
29517
29517
|
entry: entry,
|
|
29518
29518
|
errorDisplayed: errorDisplayed
|
|
29519
29519
|
}, /*#__PURE__*/React.createElement(SelectInput, _extends({
|
|
29520
|
-
className: classNames('flex_grow_1', step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29520
|
+
className: classNames('mrf-flex_grow_1', step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29521
29521
|
}, step.props, {
|
|
29522
29522
|
possibleValues: step.options,
|
|
29523
29523
|
httpClient: httpClient,
|
|
@@ -29570,7 +29570,7 @@ var Step = function Step(_ref8) {
|
|
|
29570
29570
|
errorDisplayed: errorDisplayed,
|
|
29571
29571
|
component: function component(field, props) {
|
|
29572
29572
|
return /*#__PURE__*/React.createElement(CodeInput, _extends({}, props, {
|
|
29573
|
-
className: classNames(step.className, _defineProperty$1({}, 'input__invalid', error)),
|
|
29573
|
+
className: classNames(step.className, _defineProperty$1({}, 'mrf-input__invalid', error)),
|
|
29574
29574
|
onChange: function onChange(e) {
|
|
29575
29575
|
_readOnlyError("errorDisplayed");
|
|
29576
29576
|
var v;
|
|
@@ -29602,7 +29602,7 @@ var Step = function Step(_ref8) {
|
|
|
29602
29602
|
entry: entry,
|
|
29603
29603
|
errorDisplayed: errorDisplayed
|
|
29604
29604
|
}, /*#__PURE__*/React.createElement(ObjectInput, {
|
|
29605
|
-
className: classNames(step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed))
|
|
29605
|
+
className: classNames(step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed))
|
|
29606
29606
|
}));
|
|
29607
29607
|
}
|
|
29608
29608
|
|
|
@@ -29613,7 +29613,7 @@ var Step = function Step(_ref8) {
|
|
|
29613
29613
|
entry: entry,
|
|
29614
29614
|
errorDisplayed: errorDisplayed
|
|
29615
29615
|
}, /*#__PURE__*/React.createElement(DatePicker, {
|
|
29616
|
-
className: classNames('datepicker', step.className, _defineProperty$1({}, 'input__invalid', errorDisplayed)),
|
|
29616
|
+
className: classNames('mrf-datepicker', step.className, _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed)),
|
|
29617
29617
|
formatStyle: "large"
|
|
29618
29618
|
}));
|
|
29619
29619
|
|
|
@@ -29650,24 +29650,24 @@ var Step = function Step(_ref8) {
|
|
|
29650
29650
|
|
|
29651
29651
|
var files = field.value || [];
|
|
29652
29652
|
return /*#__PURE__*/React.createElement("div", {
|
|
29653
|
-
className: classNames('flex', 'ai_center', step.className, _defineProperty$1({}, 'input__invalid', error))
|
|
29653
|
+
className: classNames('mrf-flex', 'mrf-ai_center', step.className, _defineProperty$1({}, 'mrf-input__invalid', error))
|
|
29654
29654
|
}, /*#__PURE__*/React.createElement("input", {
|
|
29655
29655
|
ref: function ref(r) {
|
|
29656
29656
|
return setInput(r);
|
|
29657
29657
|
},
|
|
29658
29658
|
type: "file",
|
|
29659
29659
|
multiple: true,
|
|
29660
|
-
className:
|
|
29660
|
+
className: "mrf-d_none",
|
|
29661
29661
|
onChange: setFiles
|
|
29662
29662
|
}), /*#__PURE__*/React.createElement("button", {
|
|
29663
29663
|
type: "button",
|
|
29664
|
-
className: "btn btn_sm flex ai_center",
|
|
29664
|
+
className: "mrf-btn mrf-btn_sm mrf-flex mrf-ai_center",
|
|
29665
29665
|
disabled: uploading || functionalProperty(entry, step.disabled),
|
|
29666
29666
|
onClick: trigger
|
|
29667
29667
|
}, uploading && /*#__PURE__*/React.createElement(Loader, null), !uploading && /*#__PURE__*/React.createElement(Upload, null), /*#__PURE__*/React.createElement("span", {
|
|
29668
|
-
className: "ml_5"
|
|
29668
|
+
className: "mrf-ml_5"
|
|
29669
29669
|
}, "Select file(s)")), /*#__PURE__*/React.createElement("span", {
|
|
29670
|
-
className: "ml_5"
|
|
29670
|
+
className: "mrf-ml_5"
|
|
29671
29671
|
}, files.length <= 0 ? 'No files selected' : files.map(function (r) {
|
|
29672
29672
|
return r.name;
|
|
29673
29673
|
}).join(" , ")));
|
|
@@ -29689,7 +29689,7 @@ var Step = function Step(_ref8) {
|
|
|
29689
29689
|
entry: entry,
|
|
29690
29690
|
component: function component(field, props) {
|
|
29691
29691
|
return /*#__PURE__*/React.createElement(CodeInput, _extends({}, props, {
|
|
29692
|
-
className: classNames(_defineProperty$1({}, 'input__invalid', error)),
|
|
29692
|
+
className: classNames(_defineProperty$1({}, 'mrf-input__invalid', error)),
|
|
29693
29693
|
onChange: function onChange(v) {
|
|
29694
29694
|
field.onChange(v);
|
|
29695
29695
|
option(step.onChange).map(function (onChange) {
|
|
@@ -29747,7 +29747,7 @@ var ArrayStep = function ArrayStep(_ref11) {
|
|
|
29747
29747
|
return /*#__PURE__*/React.createElement("div", {
|
|
29748
29748
|
key: field.id
|
|
29749
29749
|
}, /*#__PURE__*/React.createElement("div", {
|
|
29750
|
-
className:
|
|
29750
|
+
className: "mrf-ai_center mrf-mt_5",
|
|
29751
29751
|
style: {
|
|
29752
29752
|
position: 'relative'
|
|
29753
29753
|
}
|
|
@@ -29766,7 +29766,7 @@ var ArrayStep = function ArrayStep(_ref11) {
|
|
|
29766
29766
|
top: '2px',
|
|
29767
29767
|
right: 0
|
|
29768
29768
|
},
|
|
29769
|
-
className:
|
|
29769
|
+
className: "mrf-btn mrf-btn_red mrf-btn_sm mrf-ml_5",
|
|
29770
29770
|
disabled: disabled,
|
|
29771
29771
|
onClick: function onClick() {
|
|
29772
29772
|
remove(idx);
|
|
@@ -29776,10 +29776,10 @@ var ArrayStep = function ArrayStep(_ref11) {
|
|
|
29776
29776
|
size: 16
|
|
29777
29777
|
}))));
|
|
29778
29778
|
}), /*#__PURE__*/React.createElement("div", {
|
|
29779
|
-
className:
|
|
29779
|
+
className: "mrf-flex mrf-jc_flex_end"
|
|
29780
29780
|
}, /*#__PURE__*/React.createElement("button", {
|
|
29781
29781
|
type: "button",
|
|
29782
|
-
className: classNames('btn', 'btn_blue', 'btn_sm', 'mt_5', _defineProperty$1({}, 'input__invalid', errorDisplayed)),
|
|
29782
|
+
className: classNames('mrf-btn', 'mrf-btn_blue', 'mrf-btn_sm', 'mrf-mt_5', _defineProperty$1({}, 'mrf-input__invalid', errorDisplayed)),
|
|
29783
29783
|
onClick: function onClick() {
|
|
29784
29784
|
var newValue = cleanInputArray({}, getValues(entry), step.flow, step.schema);
|
|
29785
29785
|
append({
|
|
@@ -29796,7 +29796,7 @@ var ArrayStep = function ArrayStep(_ref11) {
|
|
|
29796
29796
|
},
|
|
29797
29797
|
disabled: disabled
|
|
29798
29798
|
}, "Add"), error && /*#__PURE__*/React.createElement("div", {
|
|
29799
|
-
className: "invalid-feedback"
|
|
29799
|
+
className: "mrf-invalid-feedback"
|
|
29800
29800
|
}, error.message)));
|
|
29801
29801
|
};
|
|
29802
29802
|
|
|
@@ -29890,13 +29890,13 @@ var NestedForm = function NestedForm(_ref12) {
|
|
|
29890
29890
|
return x.visibleStep;
|
|
29891
29891
|
}).length >= 1 && step.label !== null;
|
|
29892
29892
|
return /*#__PURE__*/React.createElement("div", {
|
|
29893
|
-
className: classNames((_classNames17 = {}, _defineProperty$1(_classNames17, 'nestedform__border', bordered), _defineProperty$1(_classNames17, 'border__error', !!errorDisplayed), _classNames17)),
|
|
29893
|
+
className: classNames((_classNames17 = {}, _defineProperty$1(_classNames17, 'mrf-nestedform__border', bordered), _defineProperty$1(_classNames17, 'mrf-border__error', !!errorDisplayed), _classNames17)),
|
|
29894
29894
|
style: {
|
|
29895
29895
|
position: 'relative'
|
|
29896
29896
|
}
|
|
29897
29897
|
}, !!step.collapsable && schemaAndFlow.flow.length > 1 && collapsed && /*#__PURE__*/React.createElement(ChevronDown, {
|
|
29898
29898
|
size: 30,
|
|
29899
|
-
className:
|
|
29899
|
+
className: "mrf-cursor_pointer",
|
|
29900
29900
|
style: {
|
|
29901
29901
|
position: 'absolute',
|
|
29902
29902
|
top: -35,
|
|
@@ -29909,7 +29909,7 @@ var NestedForm = function NestedForm(_ref12) {
|
|
|
29909
29909
|
}
|
|
29910
29910
|
}), !!step.collapsable && schemaAndFlow.flow.length > 1 && !collapsed && /*#__PURE__*/React.createElement(ChevronUp, {
|
|
29911
29911
|
size: 30,
|
|
29912
|
-
className:
|
|
29912
|
+
className: "mrf-cursor_pointer",
|
|
29913
29913
|
style: {
|
|
29914
29914
|
position: 'absolute',
|
|
29915
29915
|
top: -35,
|
|
@@ -29932,7 +29932,7 @@ var NestedForm = function NestedForm(_ref12) {
|
|
|
29932
29932
|
|
|
29933
29933
|
return /*#__PURE__*/React.createElement(BasicWrapper, {
|
|
29934
29934
|
key: "".concat(entry, ".").concat(idx),
|
|
29935
|
-
className: classNames(_defineProperty$1({}, 'display__none', collapsed && !step.visibleOnCollapse || !visibleStep)),
|
|
29935
|
+
className: classNames(_defineProperty$1({}, 'mrf-display__none', collapsed && !step.visibleOnCollapse || !visibleStep)),
|
|
29936
29936
|
entry: "".concat(parent, ".").concat(entry),
|
|
29937
29937
|
label: functionalProperty(entry, (step === null || step === void 0 ? void 0 : step.label) === null ? null : (step === null || step === void 0 ? void 0 : step.label) || entry),
|
|
29938
29938
|
help: step.help,
|