@arquimedes.co/eureka-forms 1.9.100-test → 1.9.101-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.
@@ -141,17 +141,16 @@ export function ElementsComponent(_a) {
141
141
  margin: step.description
142
142
  ? '10px 0px'
143
143
  : '0px 0px 5px 0px',
144
- } }, { children: step.description }))), mapElements(), _jsxs("div", __assign({ className: styles.btnContainer }, { children: [_jsx("input", { ref: inputRef, className: styles.hiddenInput }), step.creatable !== false && !customAdd && (_jsx(RoundedButton, { disabled: !editable || postview, text: step.addBtnLabel + (step.required ? ' *' : ''), color: formStyle.primaryContrastColor, backgroundColor: formStyle.primaryColor, fontSize: '1rem', padding: '5px 15px 5px 15px', onClick: function () {
144
+ } }, { children: step.description }))), mapElements(), _jsx("input", { ref: inputRef, className: styles.hiddenInput }), step.creatable !== false && (_jsxs("div", __assign({ className: styles.btnContainer }, { children: [!customAdd && (_jsx(RoundedButton, { disabled: !editable || postview, text: step.addBtnLabel + (step.required ? ' *' : ''), color: formStyle.primaryContrastColor, backgroundColor: formStyle.primaryColor, fontSize: '1rem', padding: '5px 15px 5px 15px', onClick: function () {
145
145
  if (editable && !postview) {
146
146
  handleAddElement();
147
147
  }
148
- } })), step.creatable !== false &&
149
- customAdd &&
148
+ } })), customAdd &&
150
149
  cloneElement(customAdd, {
151
150
  inputRef: inputRef,
152
151
  disabled: !editable || postview,
153
152
  handleAddElement: handleAddElement,
154
- })] })), !!errors[step.id] &&
153
+ })] }))), !!errors[step.id] &&
155
154
  elements.filter(function (elem) { return !elem.deleted; }).length === 0 && (_jsx("div", __assign({ className: styles.errorMsg, style: { color: formStyle.errorColor } }, { children: "Este campo es obligatorio" })))] })));
156
155
  }
157
156
  function MapperStep(props) {
@@ -84,7 +84,7 @@ export function SmartSelect(_a) {
84
84
  var calcDependencies = function (idStep, deps) {
85
85
  if (deps === void 0) { deps = []; }
86
86
  var step = form.steps[idStep];
87
- if (step.dependencies) {
87
+ if (step === null || step === void 0 ? void 0 : step.dependencies) {
88
88
  for (var _i = 0, _a = step.dependencies; _i < _a.length; _i++) {
89
89
  var dep = _a[_i];
90
90
  if (!deps.includes(dep)) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arquimedes.co/eureka-forms",
3
3
  "repository": "git://github.com/Arquimede5/Eureka-Forms.git",
4
- "version":"1.9.100-test",
4
+ "version":"1.9.101-test",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",