@arquimedes.co/eureka-forms 1.9.128-test → 1.9.128
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/dist/App.js +2 -2
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +15 -0
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +411 -0
- package/dist/{Form → FormComponents/Form}/ConfirmationDialog/ConfirmationDialog.d.ts +1 -1
- package/dist/{Form → FormComponents/Form}/Form.d.ts +8 -19
- package/dist/FormComponents/Form/Form.js +147 -0
- package/dist/{Form/FormTypes → FormComponents/Form}/StepperForm/StepperForm.d.ts +1 -1
- package/dist/{Form → FormComponents}/Section/MaterialSection/MaterialSection.js +1 -1
- package/dist/{Form → FormComponents}/Section/Section.d.ts +4 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRElementStep/CBRElementStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRElementStep/CBRElementStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/AYFStepMapper.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/AYFStepMapper.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/ApiSelectorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/ApiSelectorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +4 -4
- package/dist/{FormSteps → FormComponents/Step}/CBRStepMapper.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CBRStepMapper.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/CheckBoxStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/CheckBoxStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/ClassifierSelectorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/CollapsibleStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/CollapsibleStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/DatePickerStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/DatePickerStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/EntityValuePickerStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/EntityValuePickerStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +4 -4
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/FileUploadStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/FileUploadStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +4 -4
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MapperStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MapperStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/MapperElement.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/MaterialMapperStep.js +6 -6
- package/dist/{FormSteps → FormComponents/Step}/RatingStep/MaterialRatingStep/MaterialRatingStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/RatingStep/RatingStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/RatingStep/RatingStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/SelectorStep/SelectorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SelectorStep/SelectorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/SeparatorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/SeparatorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/SmartSelectStep.d.ts +4 -4
- package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/SmartSelectStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/Step.d.ts +2 -2
- package/dist/{FormSteps → FormComponents/Step}/Step.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/StepFunctions.d.ts +2 -2
- package/dist/{FormSteps → FormComponents/Step}/StepFunctions.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/TextAreaStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/TextAreaStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextInputStep/TextInputStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextInputStep/TextInputStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TitleStep/TitleStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TitleStep/TitleStep.js +1 -1
- package/dist/{Form/Terms → FormComponents}/Term/MaterialTerm/MaterialTerm.js +2 -2
- package/dist/{Form/Terms → FormComponents}/Term/Term.d.ts +1 -1
- package/dist/{Form/Terms → FormComponents}/Term/Term.js +1 -1
- package/dist/index.lib.d.ts +2 -2
- package/dist/index.lib.js +1 -1
- package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +1 -1
- package/package.json +1 -1
- package/dist/Form/Form.js +0 -264
- package/dist/Form/FormFunctions.d.ts +0 -6
- package/dist/Form/FormFunctions.js +0 -201
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.d.ts +0 -4
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.js +0 -106
- package/dist/Form/Terms/Terms.d.ts +0 -4
- package/dist/Form/Terms/Terms.js +0 -37
- /package/dist/{Form/FormTypes → FormComponents/Form}/ColumnForm/ColumnForm.module.css +0 -0
- /package/dist/{Form → FormComponents/Form}/ConfirmationDialog/ConfirmationDialog.js +0 -0
- /package/dist/{Form → FormComponents/Form}/ConfirmationDialog/ConfirmationDialog.module.css +0 -0
- /package/dist/{Form → FormComponents/Form}/Form.module.css +0 -0
- /package/dist/{Form/FormTypes → FormComponents/Form}/StepperForm/StepperForm.js +0 -0
- /package/dist/{Form/FormTypes → FormComponents/Form}/StepperForm/StepperForm.module.css +0 -0
- /package/dist/{Form → FormComponents}/Section/MaterialSection/MaterialSection.d.ts +0 -0
- /package/dist/{Form → FormComponents}/Section/MaterialSection/MaterialSection.module.css +0 -0
- /package/dist/{Form → FormComponents}/Section/Section.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +0 -0
- /package/dist/{Form/Terms → FormComponents}/Term/MaterialTerm/MaterialTerm.d.ts +0 -0
- /package/dist/{Form/Terms → FormComponents}/Term/MaterialTerm/MaterialTerm.module.css +0 -0
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
49
|
-
var t = {};
|
|
50
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
51
|
-
t[p] = s[p];
|
|
52
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
53
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
54
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
55
|
-
t[p[i]] = s[p[i]];
|
|
56
|
-
}
|
|
57
|
-
return t;
|
|
58
|
-
};
|
|
59
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
60
|
-
import { cloneElement, useState } from 'react';
|
|
61
|
-
import SectionComponent from '../../Section/Section';
|
|
62
|
-
import styles from './ColumnForm.module.css';
|
|
63
|
-
import Loader from '../../../shared/Loader/Loader';
|
|
64
|
-
import React from 'react';
|
|
65
|
-
import Terms from '../../Terms/Terms';
|
|
66
|
-
function ColumnForm(_a) {
|
|
67
|
-
var _this = this;
|
|
68
|
-
var _b;
|
|
69
|
-
var onSubmit = _a.onSubmit, formController = _a.formController, props = __rest(_a, ["onSubmit", "formController"]);
|
|
70
|
-
var form = props.form, formStyle = props.formStyle, customSubmit = props.customSubmit;
|
|
71
|
-
var _c = useState(false), loading = _c[0], setLoading = _c[1];
|
|
72
|
-
var getValues = formController.getValues, setValue = formController.setValue, clearErrors = formController.clearErrors, handleSubmit = formController.handleSubmit, control = formController.control, errors = formController.formState.errors, setFocus = formController.setFocus;
|
|
73
|
-
return (_jsxs("div", __assign({ className: styles.container, style: { color: formStyle.textColor } }, { children: [loading && _jsx("div", { className: styles.curtain }), _jsx(ColumnSection, __assign({ control: control, errors: errors, getValues: getValues, setValue: setValue, clearErrors: clearErrors, setFocus: setFocus, section: form.sections[form.firstSection] }, props)), _jsx(Terms, __assign({}, props, { onSubmit: onSubmit, formController: formController })), !props.postview && props.editable && (_jsxs(React.Fragment, { children: [!customSubmit && (_jsx("div", __assign({ className: styles.submitBtnContainer }, { children: _jsxs("button", __assign({ "data-testid": "form__submit", className: styles.submitBtn, onClick: function () {
|
|
74
|
-
handleSubmit(function (values) { return __awaiter(_this, void 0, void 0, function () {
|
|
75
|
-
return __generator(this, function (_a) {
|
|
76
|
-
switch (_a.label) {
|
|
77
|
-
case 0:
|
|
78
|
-
setLoading(true);
|
|
79
|
-
return [4 /*yield*/, onSubmit(values)];
|
|
80
|
-
case 1:
|
|
81
|
-
_a.sent();
|
|
82
|
-
setLoading(false);
|
|
83
|
-
return [2 /*return*/];
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}); });
|
|
87
|
-
}, style: {
|
|
88
|
-
background: formStyle.primaryColor,
|
|
89
|
-
color: formStyle.primaryContrastColor,
|
|
90
|
-
}, disabled: loading }, { children: [_jsx("div", __assign({ style: {
|
|
91
|
-
visibility: loading
|
|
92
|
-
? 'hidden'
|
|
93
|
-
: 'visible',
|
|
94
|
-
} }, { children: (_b = props.sendLabel) !== null && _b !== void 0 ? _b : 'Enviar' })), loading && (_jsx("div", __assign({ className: styles.loaderContainer }, { children: _jsx(Loader, { color: formStyle.primaryContrastColor, position: "unset" }) })))] })) }))), customSubmit &&
|
|
95
|
-
cloneElement(customSubmit, {
|
|
96
|
-
onSubmit: onSubmit,
|
|
97
|
-
loading: loading,
|
|
98
|
-
})] }))] })));
|
|
99
|
-
}
|
|
100
|
-
export default ColumnForm;
|
|
101
|
-
function ColumnSection(props) {
|
|
102
|
-
var section = props.section;
|
|
103
|
-
if (!props.section)
|
|
104
|
-
return _jsx(_Fragment, {});
|
|
105
|
-
return (_jsxs(React.Fragment, { children: [_jsx(SectionComponent, __assign({}, props)), section.nextSection && (_jsx(ColumnSection, __assign({}, props, { section: props.form.sections[section.nextSection] })))] }));
|
|
106
|
-
}
|
package/dist/Form/Terms/Terms.js
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
var __assign = (this && this.__assign) || function () {
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
13
|
-
import { useEffect, useState } from 'react';
|
|
14
|
-
import styles from '../Form.module.css';
|
|
15
|
-
import TermComponent from './Term/Term';
|
|
16
|
-
function Terms(_a) {
|
|
17
|
-
var form = _a.form, internal = _a.internal, postview = _a.postview, formStyle = _a.formStyle, originalValues = _a.originalValues, formController = _a.formController;
|
|
18
|
-
var setValue = formController.setValue, control = formController.control, formState = formController.formState;
|
|
19
|
-
var _b = useState(false), tempError = _b[0], setTempError = _b[1];
|
|
20
|
-
useEffect(function () {
|
|
21
|
-
console.log(formState.isValidating);
|
|
22
|
-
setTempError(true);
|
|
23
|
-
setTimeout(function () {
|
|
24
|
-
setTempError(false);
|
|
25
|
-
}, 500);
|
|
26
|
-
}, [formState.isSubmitting]);
|
|
27
|
-
if (form.terms &&
|
|
28
|
-
(!internal || (internal && postview)) &&
|
|
29
|
-
(originalValues === null || originalValues === void 0 ? void 0 : originalValues['INTERNAL_CREATING_AGENT']) === undefined) {
|
|
30
|
-
return (_jsx("div", __assign({ className: styles.termsContainer, style: {
|
|
31
|
-
width: (form.size.blockSize + form.size.spacingSize) *
|
|
32
|
-
form.size.blockNum,
|
|
33
|
-
} }, { children: form.terms.map(function (term) { return (_jsx(TermComponent, { setValue: setValue, postview: postview, tempError: tempError, term: term, control: control, errors: formState.errors, form: form, formStyle: formStyle }, term.id)); }) })));
|
|
34
|
-
}
|
|
35
|
-
return _jsx(_Fragment, {});
|
|
36
|
-
}
|
|
37
|
-
export default Terms;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/DraftEditor.css
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts
RENAMED
|
File without changes
|
/package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|