@arquimedes.co/eureka-forms 2.0.15-test → 2.0.17

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.
@@ -12,5 +12,5 @@ export declare const addMapperStep: <Type>(step: Mapper, customSteps: Record<str
12
12
  steps: Record<string, FormStep>;
13
13
  };
14
14
  export declare function calcRecursiveData<Type>(element: Readonly<MapperElement<Type>>, newSteps: Record<string, FormStep>, customSteps: Record<string, CustomStep>): void;
15
- export declare const mapOriginalValue: (step: FormStep, value: any, values: ValuesStore, form: Readonly<Form>) => any;
15
+ export declare const mapOriginalValue: (step: FormStep, value: any, values: ValuesStore, form?: Readonly<Form>) => any;
16
16
  export declare const calcInitialSections: (form: Form) => Pick<SiteState, 'previousSections' | 'idCurrentSection' | 'nextSections'>;
@@ -172,7 +172,7 @@ export var mapOriginalValue = function (step, value, values, form) {
172
172
  return value;
173
173
  }
174
174
  case StepTypes.CLASSIFIER_SELECTOR: {
175
- var stepClassifier = (_d = form.classifiers) === null || _d === void 0 ? void 0 : _d[(_e = step.idClassifier) !== null && _e !== void 0 ? _e : ''];
175
+ var stepClassifier = (_d = form === null || form === void 0 ? void 0 : form.classifiers) === null || _d === void 0 ? void 0 : _d[(_e = step.idClassifier) !== null && _e !== void 0 ? _e : ''];
176
176
  if (stepClassifier) {
177
177
  var classifier = (_f = form.classifiers) === null || _f === void 0 ? void 0 : _f[value];
178
178
  if (!(value === null || value === void 0 ? void 0 : value.value))
@@ -87,6 +87,8 @@ export var calcValue = function (idStep, steps, values, customSteps, deleteIds,
87
87
  }
88
88
  return mappedValues;
89
89
  }
90
+ case StepTypes.TITLE:
91
+ return;
90
92
  default:
91
93
  if ((step === null || step === void 0 ? void 0 : step.type) === 'CBR_INCIDENCIAS') {
92
94
  return value === null || value === void 0 ? void 0 : value.filter(function (incidencia) { return incidencia.deleted !== true; });
@@ -79,7 +79,7 @@ function ClassifierSelector(_a) {
79
79
  (!postview && editable && step.required)
80
80
  ? '55px'
81
81
  : '43px',
82
- } }, { children: _jsx(RoundedSmartSelect, { value: value, onBlur: onBlur, disabled: false, loading: false, options: options, inputRef: inputRef, cantEdit: !editable || postview, fullWidth: true, backgroundColor: (_a = formStyle.stepBackgroundColor) !== null && _a !== void 0 ? _a : 'white', label: step.label ? step.label : classifier.name, required: step.required, height: '31px', searchable: step.searchable, icon: undefined, helperTextColor: formStyle.descriptionTextColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, errorColor: formStyle.errorColor, color: formStyle.textColor, containerMargin: "0px", handleUpdate: function (value) {
82
+ }, "data-testid": step.id }, { children: _jsx(RoundedSmartSelect, { value: value, onBlur: onBlur, disabled: false, loading: false, options: options, inputRef: inputRef, cantEdit: !editable || postview, fullWidth: true, backgroundColor: (_a = formStyle.stepBackgroundColor) !== null && _a !== void 0 ? _a : 'white', label: step.label ? step.label : classifier.name, required: step.required, height: '31px', searchable: step.searchable, icon: undefined, helperTextColor: formStyle.descriptionTextColor, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, errorColor: formStyle.errorColor, color: formStyle.textColor, containerMargin: "0px", handleUpdate: function (value) {
83
83
  onChange(value);
84
84
  sizeChange();
85
85
  }, getOptionSelected: function (option, value) {
@@ -128,7 +128,7 @@ function TextAreaStep(_a) {
128
128
  }
129
129
  } }, { children: _jsx(Editor, __assign({}, field, { editorRef: ref, onFocus: function () {
130
130
  setFocus(true);
131
- }, readOnly: !canEdit, stripPastedStyles: true, onEditorStateChange: handleChange, toolbarClassName: !canEdit ? ' postview-editor-toolbar' : '', editorClassName: editorClassName, wrapperClassName: styles.wrapper, placeholder: (_b = step.description) !== null && _b !== void 0 ? _b : '', toolbar: {
131
+ }, readOnly: !canEdit, stripPastedStyles: true, onEditorStateChange: handleChange, toolbarClassName: !canEdit ? ' postview-editor-toolbar' : '', "data-testid": step.id, editorClassName: editorClassName, wrapperClassName: styles.wrapper, placeholder: (_b = step.description) !== null && _b !== void 0 ? _b : '', toolbar: {
132
132
  options: ['inline', 'list', 'history'],
133
133
  inline: {
134
134
  options: [
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":"2.0.15-test",
4
+ "version": "2.0.17",
5
5
  "scripts": {
6
6
  "start": "react-scripts start",
7
7
  "build": "react-scripts build",