@arquimedes.co/eureka-forms 1.9.39-test → 1.9.40-test
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.
|
@@ -19,12 +19,12 @@ function PillElementContainer(_a) {
|
|
|
19
19
|
: styles.container }, { children: _jsxs("div", __assign({ className: styles.contentContainer, style: {
|
|
20
20
|
width: (size.blockSize + size.spacingSize) *
|
|
21
21
|
(size.blockNum - 1),
|
|
22
|
-
} }, { children: [_jsxs("div", __assign({ className: styles.titleLbl, style: { color: formStyle.textColor } }, { children: [step.unitLabel + ' ' + (num + 1), ":"] })), _jsx("div", __assign({ className: !editable || postview
|
|
22
|
+
} }, { children: [_jsxs("div", __assign({ className: styles.titleLbl, style: { color: formStyle.textColor } }, { children: [step.unitLabel + ' ' + (num + 1), ":"] })), step.deletable !== false && (_jsx("div", __assign({ className: !editable || postview
|
|
23
23
|
? styles.disabledDeleteBtn
|
|
24
24
|
: styles.deleteBtn, style: { color: formStyle.textColor }, onClick: function () {
|
|
25
25
|
if (editable && !postview) {
|
|
26
26
|
handleDelete === null || handleDelete === void 0 ? void 0 : handleDelete();
|
|
27
27
|
}
|
|
28
|
-
} }, { children: _jsx(DeleteRoundedIcon, { fontSize: "inherit" }) })), children] })) })));
|
|
28
|
+
} }, { children: _jsx(DeleteRoundedIcon, { fontSize: "inherit" }) }))), children] })) })));
|
|
29
29
|
}
|
|
30
30
|
export default PillElementContainer;
|
|
@@ -115,11 +115,11 @@ function Elements(_a) {
|
|
|
115
115
|
var tempElements = __spreadArray([], elements, true);
|
|
116
116
|
tempElements[index].deleted = true;
|
|
117
117
|
onChange(tempElements);
|
|
118
|
-
} }, others), index)); }), _jsxs("div", __assign({ className: styles.btnContainer }, { children: [_jsx("input", { ref: btnRef, className: styles.hiddenInput }), _jsx(RoundedButton, { disabled: !editable || postview, text: step.addBtnLabel, color: formStyle.primaryContrastColor, backgroundColor: formStyle.primaryColor, fontSize: '1rem', padding: '5px 15px 5px 15px', onClick: function () {
|
|
118
|
+
} }, others), index)); }), _jsxs("div", __assign({ className: styles.btnContainer }, { children: [_jsx("input", { ref: btnRef, className: styles.hiddenInput }), step.creatable !== false && (_jsx(RoundedButton, { disabled: !editable || postview, text: step.addBtnLabel, color: formStyle.primaryContrastColor, backgroundColor: formStyle.primaryColor, fontSize: '1rem', padding: '5px 15px 5px 15px', onClick: function () {
|
|
119
119
|
if (editable && !postview) {
|
|
120
120
|
handleAddElement();
|
|
121
121
|
}
|
|
122
|
-
} })] }))] })));
|
|
122
|
+
} }))] }))] })));
|
|
123
123
|
}
|
|
124
124
|
function MapperStep(props) {
|
|
125
125
|
return (_jsx(Controller, { name: props.step.id, control: props.control, defaultValue: [], rules: {
|
package/package.json
CHANGED