@arquimedes.co/eureka-forms 1.9.134 → 2.0.1-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.
- package/dist/@Types/Form.d.ts +1 -1
- package/dist/@Types/FormStep.d.ts +2 -2
- package/dist/@Types/GenericFormSteps.d.ts +1 -0
- package/dist/App/App.css +6 -0
- package/dist/{App.d.ts → App/App.d.ts} +13 -21
- package/dist/App/App.js +76 -0
- package/dist/App/AppFunctions.d.ts +17 -0
- package/dist/App/AppFunctions.js +210 -0
- package/dist/App/AppHooks.d.ts +10 -0
- package/dist/App/AppHooks.js +235 -0
- package/dist/Contexts/CustomContext.d.ts +11 -0
- package/dist/Contexts/CustomContext.js +6 -0
- package/dist/Contexts/FormContext.d.ts +4 -0
- package/dist/Contexts/FormContext.js +19 -0
- package/dist/Contexts/SectionContext.d.ts +3 -0
- package/dist/Contexts/SectionContext.js +3 -0
- package/dist/Form/ConfirmationDialog/ConfirmationDialog.d.ts +2 -4
- package/dist/Form/ConfirmationDialog/ConfirmationDialog.js +3 -1
- package/dist/Form/Form.d.ts +17 -34
- package/dist/Form/Form.js +73 -124
- package/dist/Form/FormFunctions.d.ts +5 -4
- package/dist/Form/FormFunctions.js +24 -25
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.d.ts +1 -1
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.js +34 -58
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.module.css +0 -4
- package/dist/Form/FormTypes/StepperForm/StepperForm.d.ts +1 -1
- package/dist/Form/FormTypes/StepperForm/StepperForm.js +122 -3
- package/dist/Form/FormTypes/StepperForm/StepperForm.module.css +53 -0
- package/dist/Form/Hooks.d.ts +9 -0
- package/dist/Form/Hooks.js +7 -0
- package/dist/Form/Section/MaterialSection/MaterialSection.d.ts +1 -1
- package/dist/Form/Section/MaterialSection/MaterialSection.js +15 -16
- package/dist/Form/Section/Section.d.ts +2 -34
- package/dist/Form/Section/Section.js +11 -5
- package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.d.ts +1 -1
- package/dist/Form/Terms/Term/MaterialTerm/MaterialTerm.js +19 -14
- package/dist/Form/Terms/Term/Term.d.ts +1 -8
- package/dist/Form/Terms/Term/Term.js +3 -1
- package/dist/Form/Terms/Terms.d.ts +1 -2
- package/dist/Form/Terms/Terms.js +17 -8
- package/dist/Form/Terms/Terms.module.css +3 -0
- package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.d.ts +3 -3
- package/dist/FormSteps/@Construction/CBRElementStep/CBRElementStep.js +49 -38
- package/dist/FormSteps/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +3 -1
- package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +2 -2
- package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +11 -5
- package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +29 -27
- package/dist/FormSteps/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +0 -6
- package/dist/FormSteps/@Construction/CBRPropertyStep/CBRPropertyStep.js +39 -31
- package/dist/FormSteps/AYFStepMapper.js +42 -43
- package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.d.ts +1 -1
- package/dist/FormSteps/ApiSelectorStep/ApiSelectorStep.js +4 -14
- package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +84 -97
- package/dist/FormSteps/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.module.css +0 -9
- package/dist/FormSteps/CBRStepMapper.js +78 -74
- package/dist/FormSteps/CheckBoxStep/CheckBoxStep.d.ts +1 -1
- package/dist/FormSteps/CheckBoxStep/CheckBoxStep.js +4 -14
- package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +33 -26
- package/dist/FormSteps/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +17 -0
- package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +1 -1
- package/dist/FormSteps/ClassifierSelectorStep/ClassifierSelectorStep.js +4 -14
- package/dist/FormSteps/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +34 -27
- package/dist/FormSteps/CollapsibleStep/CollapsibleStep.d.ts +1 -1
- package/dist/FormSteps/CollapsibleStep/CollapsibleStep.js +4 -2
- package/dist/FormSteps/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +16 -11
- package/dist/FormSteps/CustomStep.d.ts +22 -0
- package/dist/FormSteps/CustomStep.js +37 -0
- package/dist/FormSteps/DatePickerStep/DatePickerStep.js +3 -1
- package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +1 -1
- package/dist/FormSteps/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +26 -14
- package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.d.ts +1 -1
- package/dist/FormSteps/EntityValueStep/EntityValuePickerStep.js +4 -14
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +93 -112
- package/dist/FormSteps/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +0 -9
- package/dist/FormSteps/FileUploadStep/FileUploadStep.js +3 -1
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +1 -1
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +1 -1
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +0 -7
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +32 -18
- package/dist/FormSteps/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +0 -7
- package/dist/FormSteps/MapperStep/MapperStep.d.ts +2 -2
- package/dist/FormSteps/MapperStep/MapperStep.js +4 -14
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.d.ts +1 -9
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.js +7 -2
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +3 -2
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/MapperElement.js +18 -10
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.d.ts +1 -9
- package/dist/FormSteps/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.js +7 -2
- package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +1 -1
- package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.js +44 -228
- package/dist/FormSteps/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +0 -7
- package/dist/FormSteps/RatingStep/MaterialRatingStep/MaterialRatingStep.js +30 -14
- package/dist/FormSteps/RatingStep/RatingStep.js +3 -1
- package/dist/FormSteps/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +36 -26
- package/dist/FormSteps/SelectorStep/SelectorStep.d.ts +1 -1
- package/dist/FormSteps/SelectorStep/SelectorStep.js +4 -14
- package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +1 -1
- package/dist/FormSteps/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +3 -1
- package/dist/FormSteps/SeparatorStep/SeparatorStep.d.ts +1 -1
- package/dist/FormSteps/SeparatorStep/SeparatorStep.js +4 -14
- package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +5 -2
- package/dist/FormSteps/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +119 -199
- package/dist/FormSteps/SmartSelectStep/SmartSelectStep.d.ts +9 -10
- package/dist/FormSteps/SmartSelectStep/SmartSelectStep.js +3 -1
- package/dist/FormSteps/Step.d.ts +3 -4
- package/dist/FormSteps/Step.js +12 -8
- package/dist/FormSteps/StepFunctions.d.ts +10 -0
- package/dist/FormSteps/StepFunctions.js +156 -1
- package/dist/FormSteps/StepHooks.d.ts +23 -0
- package/dist/FormSteps/StepHooks.js +87 -0
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.d.ts +10 -0
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaEditorStep.js +148 -0
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +1 -6
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +40 -186
- package/dist/FormSteps/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +0 -9
- package/dist/FormSteps/TextAreaStep/TextAreaStep.js +8 -2
- package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +1 -1
- package/dist/FormSteps/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +43 -42
- package/dist/FormSteps/TextInputStep/TextInputStep.js +3 -1
- package/dist/FormSteps/TitleStep/MaterialTitleStep/MaterialTitleStep.js +11 -6
- package/dist/FormSteps/TitleStep/TitleStep.d.ts +1 -1
- package/dist/FormSteps/TitleStep/TitleStep.js +4 -14
- package/dist/Icons/Construction/LeakIcon.d.ts +2 -2
- package/dist/Icons/Construction/LeakIcon.js +2 -1
- package/dist/Icons/Construction/ProjectIcon.d.ts +2 -2
- package/dist/Icons/Construction/ProjectIcon.js +2 -1
- package/dist/Icons/Construction/PropertyIcon.d.ts +2 -2
- package/dist/Icons/Construction/PropertyIcon.js +2 -1
- package/dist/Icons/Construction/SpaceIcon.d.ts +2 -2
- package/dist/Icons/Construction/SpaceIcon.js +2 -1
- package/dist/Icons/DocumentIcon.d.ts +2 -2
- package/dist/Icons/DocumentIcon.js +2 -1
- package/dist/Icons/Entities/CheckListIcon.d.ts +2 -2
- package/dist/Icons/Entities/CheckListIcon.js +2 -1
- package/dist/Icons/Entities/GenericEntityIcon.d.ts +2 -1
- package/dist/Icons/Entities/GenericEntityIcon.js +1 -1
- package/dist/Icons/Entities/HandshakeIcon.d.ts +2 -1
- package/dist/Icons/Entities/HandshakeIcon.js +1 -1
- package/dist/Icons/Entities/SupplierIcon.d.ts +2 -1
- package/dist/Icons/Entities/SupplierIcon.js +4 -1
- package/dist/{controllers → Services}/FileService.d.ts +1 -1
- package/dist/{controllers → Services}/FileService.js +5 -5
- package/dist/Services/FormService.d.ts +5 -0
- package/dist/Services/FormService.js +59 -0
- package/dist/Services/OrganizationService.d.ts +2 -0
- package/dist/Services/OrganizationService.js +65 -0
- package/dist/Shared/Navbar/Navbar.module.css +8 -0
- package/dist/{shared → Shared}/Rating/Rating.d.ts +1 -1
- package/dist/Shared/Rating/Rating.module.css +18 -0
- package/dist/{shared → Shared}/Rating/Ratings/LikeRating.js +5 -5
- package/dist/{shared → Shared}/Rating/Ratings/SatisfactionRating.js +9 -9
- package/dist/{shared → Shared}/Rating/Ratings/ScaleRating.js +1 -2
- package/dist/{shared → Shared}/RoundedCheckBox/RoundedCheckBox.d.ts +1 -1
- package/dist/{shared → Shared}/RoundedSmartSelect/RoundedSmartSelect.js +4 -4
- package/dist/{shared → Shared}/RoundedTextField/RoundedTextField.d.ts +1 -1
- package/dist/{shared → Shared}/RoundedTextField/RoundedTextField.js +3 -2
- package/dist/Shared/RoundedTextField/RoundedTextField.stories.d.ts +24 -0
- package/dist/Shared/RoundedTextField/RoundedTextField.stories.js +25 -0
- package/dist/States/GlobalStateReducer.d.ts +35 -0
- package/dist/States/GlobalStateReducer.js +34 -0
- package/dist/States/SiteStateReducer.d.ts +63 -0
- package/dist/States/SiteStateReducer.js +110 -0
- package/dist/States/WidthStatsStateReducer.d.ts +11 -0
- package/dist/States/WidthStatsStateReducer.js +64 -0
- package/dist/Utils/DraftFunctions.d.ts +3 -0
- package/dist/Utils/DraftFunctions.js +42 -0
- package/dist/Utils/MaterialProviders.d.ts +6 -0
- package/dist/Utils/MaterialProviders.js +31 -0
- package/dist/Utils/store.d.ts +25 -0
- package/dist/Utils/store.js +52 -0
- package/dist/Widget.js +3 -3
- package/dist/constants/CBRFormStepTypes.d.ts +2 -2
- package/dist/constants/CBRFormStepTypes.js +22 -22
- package/dist/hooks.d.ts +5 -0
- package/dist/hooks.js +7 -0
- package/dist/index.js +1 -1
- package/dist/index.lib.d.ts +1 -1
- package/dist/index.lib.js +1 -1
- package/package.json +63 -44
- package/dist/App.js +0 -472
- package/dist/shared/Navbar/Navbar.module.css +0 -18
- package/dist/shared/Rating/Rating.module.css +0 -32
- package/dist/{App.module.css → App/App.module.css} +0 -0
- package/dist/{shared → Shared}/InputIcon/InputIcon.d.ts +0 -0
- package/dist/{shared → Shared}/InputIcon/InputIcon.js +0 -0
- package/dist/{shared → Shared}/Loader/Loader.d.ts +0 -0
- package/dist/{shared → Shared}/Loader/Loader.js +0 -0
- package/dist/{shared → Shared}/Loader/Loader.module.css +0 -0
- package/dist/{shared → Shared}/Navbar/Navbar.d.ts +0 -0
- package/dist/{shared → Shared}/Navbar/Navbar.js +0 -0
- package/dist/{shared → Shared}/Rating/Rating.js +2 -2
- /package/dist/{shared → Shared}/Rating/Ratings/LikeRating.d.ts +0 -0
- /package/dist/{shared → Shared}/Rating/Ratings/SatisfactionRating.d.ts +0 -0
- /package/dist/{shared → Shared}/Rating/Ratings/ScaleRating.d.ts +0 -0
- /package/dist/{shared → Shared}/RoundedButton/RoundedButton.d.ts +0 -0
- /package/dist/{shared → Shared}/RoundedButton/RoundedButton.js +0 -0
- /package/dist/{shared → Shared}/RoundedCheckBox/RoundedCheckBox.js +0 -0
- /package/dist/{shared → Shared}/RoundedDatePicker/RoundedDatePicker.d.ts +0 -0
- /package/dist/{shared → Shared}/RoundedDatePicker/RoundedDatePicker.js +0 -0
- /package/dist/{shared → Shared}/RoundedSelect/RoundedSelect.d.ts +0 -0
- /package/dist/{shared → Shared}/RoundedSelect/RoundedSelect.js +0 -0
- /package/dist/{shared → Shared}/RoundedSmartSelect/RoundedSmartSelect.d.ts +0 -0
- /package/dist/{AxiosAPI.d.ts → Utils/AxiosAPI.d.ts} +0 -0
- /package/dist/{AxiosAPI.js → Utils/AxiosAPI.js} +0 -0
- /package/dist/{AxiosWidget.d.ts → Utils/AxiosWidget.d.ts} +0 -0
- /package/dist/{AxiosWidget.js → Utils/AxiosWidget.js} +0 -0
- /package/dist/{utils/CbrFunctions.d.ts → Utils/CBRFunctions.d.ts} +0 -0
- /package/dist/{utils/CbrFunctions.js → Utils/CBRFunctions.js} +0 -0
|
@@ -20,195 +20,49 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
20
20
|
}
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
|
-
import {
|
|
24
|
-
import RoundedTextField from '../../../
|
|
23
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
+
import RoundedTextField from '../../../Shared/RoundedTextField/RoundedTextField';
|
|
25
25
|
import styles from './MaterialTextAreaStep.module.css';
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import '
|
|
29
|
-
import '
|
|
30
|
-
import { EditorState } from 'draft-js';
|
|
31
|
-
import React, { useState } from 'react';
|
|
32
|
-
import { ClickAwayListener } from '@material-ui/core';
|
|
26
|
+
import { useController } from 'react-hook-form';
|
|
27
|
+
import { useCallback, useState } from 'react';
|
|
28
|
+
import { useAppSelector } from '../../../hooks';
|
|
29
|
+
import { useStepDependency } from '../../StepHooks';
|
|
33
30
|
function TextAreaStep(_a) {
|
|
34
|
-
var
|
|
35
|
-
var
|
|
36
|
-
var
|
|
37
|
-
var
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
31
|
+
var _b, _c;
|
|
32
|
+
var step = _a.step, editable = _a.editable, maxLength = _a.maxLength;
|
|
33
|
+
var _d = useAppSelector(function (state) { return state.global; }), formStyle = _d.formStyle, postview = _d.postview, partial = _d.partial;
|
|
34
|
+
var _e = useState(), timer = _e[0], setTimer = _e[1];
|
|
35
|
+
var _f = useStepDependency(step), handleStepDep = _f.handleStepDep, originalValue = _f.originalValue, isDependency = _f.isDependency;
|
|
36
|
+
var _g = useController({
|
|
37
|
+
name: step.id,
|
|
38
|
+
shouldUnregister: true,
|
|
39
|
+
rules: {
|
|
40
|
+
required: step.required ? 'Este campo es obligatorio' : undefined,
|
|
41
|
+
},
|
|
42
|
+
defaultValue: originalValue,
|
|
43
|
+
}), _h = _g.field, ref = _h.ref, field = __rest(_h, ["ref"]), error = _g.fieldState.error;
|
|
44
|
+
var onChange = useCallback(function (e) {
|
|
45
|
+
if (isDependency) {
|
|
46
|
+
try {
|
|
47
|
+
clearTimeout(timer);
|
|
48
|
+
// eslint-disable-next-line no-empty
|
|
49
|
+
}
|
|
50
|
+
catch (e) { }
|
|
51
|
+
setTimer(setTimeout(function () {
|
|
52
|
+
handleStepDep(e.target.value);
|
|
53
|
+
setTimer(undefined);
|
|
54
|
+
}, 1000));
|
|
47
55
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
border: '1px solid ' + formStyle.primaryColor,
|
|
51
|
-
backgroundColor: backgroundColor,
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
return {
|
|
56
|
-
border: '1px solid ' + formStyle.outlineColor,
|
|
57
|
-
backgroundColor: backgroundColor,
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
var calcDefaultStringValue = function (defaultValue) {
|
|
62
|
-
var _a;
|
|
63
|
-
if (typeof defaultValue === 'string') {
|
|
64
|
-
return defaultValue;
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
return (_a = defaultValue === null || defaultValue === void 0 ? void 0 : defaultValue.text) !== null && _a !== void 0 ? _a : '';
|
|
68
|
-
}
|
|
69
|
-
};
|
|
56
|
+
field.onChange(e);
|
|
57
|
+
}, [handleStepDep, isDependency, field]);
|
|
70
58
|
var canEdit = editable && !postview;
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
'
|
|
74
|
-
'
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
} }, { children: [step.label, " ", step.required ? ' *' : ''] }))), _jsx(ClickAwayListener, __assign({ mouseEvent: "onMouseDown", onClickAway: function () {
|
|
80
|
-
if (canEdit) {
|
|
81
|
-
setFocus(false);
|
|
82
|
-
}
|
|
83
|
-
} }, { children: _jsx("div", __assign({ className: postview
|
|
84
|
-
? styles.postViewContainer +
|
|
85
|
-
' EF-DraftContainer'
|
|
86
|
-
: styles.textContainer + ' EF-DraftContainer', "data-testid": step.id, style: calcStyle(), onMouseEnter: function () {
|
|
87
|
-
if (canEdit) {
|
|
88
|
-
setHovering(true);
|
|
89
|
-
}
|
|
90
|
-
}, onMouseLeave: function () {
|
|
91
|
-
if (canEdit) {
|
|
92
|
-
setHovering(false);
|
|
93
|
-
}
|
|
94
|
-
}, onClick: function () {
|
|
95
|
-
if (canEdit) {
|
|
96
|
-
setFocus(true);
|
|
97
|
-
}
|
|
98
|
-
} }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: EditorState.createEmpty(), rules: step.required
|
|
99
|
-
? {
|
|
100
|
-
validate: function (editorState) {
|
|
101
|
-
return editorState
|
|
102
|
-
.getCurrentContent()
|
|
103
|
-
.hasText();
|
|
104
|
-
},
|
|
105
|
-
}
|
|
106
|
-
: {}, shouldUnregister: true, render: function (_a) {
|
|
107
|
-
var _b;
|
|
108
|
-
var field = _a.field;
|
|
109
|
-
var editorClassName = styles.editor;
|
|
110
|
-
if (!field.value.getCurrentContent().hasText()) {
|
|
111
|
-
if (field.value
|
|
112
|
-
.getCurrentContent()
|
|
113
|
-
.getBlockMap()
|
|
114
|
-
.first()
|
|
115
|
-
.getType() !== 'unstyled') {
|
|
116
|
-
editorClassName +=
|
|
117
|
-
' RichEditor-hidePlaceholder';
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
if (!canEdit) {
|
|
121
|
-
editorClassName += ' postview-editor';
|
|
122
|
-
}
|
|
123
|
-
return (_jsx(Editor, { editorRef: field.ref, onFocus: function () {
|
|
124
|
-
setFocus(true);
|
|
125
|
-
}, readOnly: !canEdit, onBlur: field.onBlur, stripPastedStyles: true, editorState: field.value, onEditorStateChange: field.onChange, toolbarClassName: styles.toolbar +
|
|
126
|
-
(!canEdit
|
|
127
|
-
? ' postview-editor-toolbar'
|
|
128
|
-
: ''), editorClassName: editorClassName, wrapperClassName: styles.wrapper, placeholder: (_b = step.description) !== null && _b !== void 0 ? _b : '', toolbar: {
|
|
129
|
-
options: [
|
|
130
|
-
'inline',
|
|
131
|
-
'list',
|
|
132
|
-
'history',
|
|
133
|
-
],
|
|
134
|
-
inline: {
|
|
135
|
-
options: [
|
|
136
|
-
'bold',
|
|
137
|
-
'italic',
|
|
138
|
-
'underline',
|
|
139
|
-
'strikethrough',
|
|
140
|
-
],
|
|
141
|
-
},
|
|
142
|
-
list: {
|
|
143
|
-
options: ['unordered'],
|
|
144
|
-
},
|
|
145
|
-
} }));
|
|
146
|
-
} }) })) })), _jsx("div", __assign({ className: styles.errorMsg, style: {
|
|
147
|
-
color: formStyle.errorColor,
|
|
148
|
-
height: !postview && editable ? '0.75rem' : 0,
|
|
149
|
-
} }, { children: !!errors[step.id] && 'Este campo es obligatorio' }))] })));
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
return (_jsx("div", __assign({ className: styles.container, style: {
|
|
153
|
-
paddingBottom: step.required || step.description || !!errors[step.id]
|
|
154
|
-
? '0px'
|
|
155
|
-
: '5px',
|
|
156
|
-
} }, { children: _jsx(Controller, { name: step.id, control: control, defaultValue: calcDefaultStringValue(originalValues[step.id]), rules: {
|
|
157
|
-
required: step.required
|
|
158
|
-
? 'Este campo es obligatorio'
|
|
159
|
-
: undefined,
|
|
160
|
-
}, shouldUnregister: true, render: function (_a) {
|
|
161
|
-
var _b;
|
|
162
|
-
var _c = _a.field, ref = _c.ref, field = __rest(_c, ["ref"]);
|
|
163
|
-
return (_jsxs(React.Fragment, { children: [_jsx("div", __assign({ className: styles.erkTextArea }, { children: _jsx(RoundedTextField, __assign({}, field, { "data-testid": step.id, maxLength: maxLength, label: step.label, inputRef: ref, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: postview && partial ? undefined : 4, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: errors[step.id]
|
|
164
|
-
? errors[step.id].message
|
|
165
|
-
: (_b = step.description) !== null && _b !== void 0 ? _b : (step.required ? ' ' : null), error: !!errors[step.id] })) })), postview && (_jsxs("div", __assign({ className: styles.print }, { children: [_jsxs("div", { children: [step.label, ":"] }), _jsx("p", __assign({ className: styles.printContainer, style: {
|
|
166
|
-
backgroundColor: formStyle.stepBackgroundColor,
|
|
167
|
-
borderColor: formStyle.outlineColor,
|
|
168
|
-
} }, { children: field.value }))] })))] }));
|
|
169
|
-
} }) })));
|
|
170
|
-
}
|
|
59
|
+
return (_jsxs("div", __assign({ className: styles.container, style: {
|
|
60
|
+
paddingBottom: step.required || step.description || !!error
|
|
61
|
+
? '0px'
|
|
62
|
+
: '5px',
|
|
63
|
+
} }, { children: [_jsx("div", __assign({ className: styles.erkTextArea }, { children: _jsx(RoundedTextField, __assign({}, field, { onChange: onChange, "data-testid": step.id, maxLength: maxLength, label: step.label, inputRef: ref, required: step.required, cantEdit: !canEdit, fontWeight: 400, multiline: true, minRows: postview && partial ? undefined : 4, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperTextColor: formStyle.descriptionTextColor, helperText: (_c = (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : step.description) !== null && _c !== void 0 ? _c : (step.required ? ' ' : null), error: !!error })) })), postview && (_jsxs("div", __assign({ className: styles.print }, { children: [_jsxs("div", { children: [step.label, ":"] }), _jsx("p", __assign({ className: styles.printContainer, style: {
|
|
64
|
+
backgroundColor: formStyle.stepBackgroundColor,
|
|
65
|
+
borderColor: formStyle.outlineColor,
|
|
66
|
+
} }, { children: field.value }))] })))] })));
|
|
171
67
|
}
|
|
172
68
|
export default TextAreaStep;
|
|
173
|
-
export function stringToDraft(text) {
|
|
174
|
-
var draftStructure = {
|
|
175
|
-
blocks: [],
|
|
176
|
-
entityMap: {},
|
|
177
|
-
};
|
|
178
|
-
text.split('\n').forEach(function (element, index) {
|
|
179
|
-
draftStructure.blocks.push({
|
|
180
|
-
key: String(index),
|
|
181
|
-
text: element,
|
|
182
|
-
type: 'unstyled',
|
|
183
|
-
depth: 0,
|
|
184
|
-
inlineStyleRanges: [],
|
|
185
|
-
entityRanges: [],
|
|
186
|
-
data: {},
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
return draftStructure;
|
|
190
|
-
}
|
|
191
|
-
export var getRawText = function (draft, text) {
|
|
192
|
-
if (draft !== undefined) {
|
|
193
|
-
return draft;
|
|
194
|
-
}
|
|
195
|
-
else if (text !== undefined) {
|
|
196
|
-
return stringToDraft(text);
|
|
197
|
-
}
|
|
198
|
-
else {
|
|
199
|
-
return {
|
|
200
|
-
blocks: [
|
|
201
|
-
{
|
|
202
|
-
key: 'fudmo',
|
|
203
|
-
text: '',
|
|
204
|
-
type: 'unstyled',
|
|
205
|
-
depth: 0,
|
|
206
|
-
inlineStyleRanges: [],
|
|
207
|
-
entityRanges: [],
|
|
208
|
-
data: {},
|
|
209
|
-
},
|
|
210
|
-
],
|
|
211
|
-
entityMap: {},
|
|
212
|
-
};
|
|
213
|
-
}
|
|
214
|
-
};
|
|
@@ -10,13 +10,19 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
|
+
import { useAppSelector } from '../../hooks';
|
|
13
14
|
import { FormStyleTypes } from '../../constants/FormStepTypes';
|
|
14
15
|
import MaterialTextAreaStep from './MaterialTextAreaStep/MaterialTextAreaStep';
|
|
16
|
+
import MaterialTextAreaEditorStep from './MaterialTextAreaStep/MaterialTextAreaEditorStep';
|
|
15
17
|
function TextAreaStep(props) {
|
|
16
|
-
|
|
18
|
+
var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
|
|
19
|
+
switch (formStyle.type) {
|
|
17
20
|
case FormStyleTypes.MATERIAL:
|
|
18
21
|
default: {
|
|
19
|
-
|
|
22
|
+
if (props.step.hasTextEditor)
|
|
23
|
+
return _jsx(MaterialTextAreaEditorStep, __assign({}, props));
|
|
24
|
+
else
|
|
25
|
+
return _jsx(MaterialTextAreaStep, __assign({}, props));
|
|
20
26
|
}
|
|
21
27
|
}
|
|
22
28
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TextInputStepProps } from '../TextInputStep';
|
|
3
|
-
declare function TextInputStep({ icon, step,
|
|
3
|
+
declare function TextInputStep({ icon, step, editable, maxLength, defaultValue, validation, }: TextInputStepProps): JSX.Element;
|
|
4
4
|
export default TextInputStep;
|
|
@@ -21,57 +21,58 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import RoundedTextField from '../../../
|
|
24
|
+
import RoundedTextField from '../../../Shared/RoundedTextField/RoundedTextField';
|
|
25
25
|
import styles from './MaterialTextInputStep.module.css';
|
|
26
|
-
import {
|
|
26
|
+
import { useController } from 'react-hook-form';
|
|
27
27
|
import { calcStepWidth } from '../../StepFunctions';
|
|
28
|
-
import { useState } from 'react';
|
|
28
|
+
import { useCallback, useContext, useState } from 'react';
|
|
29
|
+
import FormContext from '../../../Contexts/FormContext';
|
|
30
|
+
import { selectBreakPoint, useAppSelector } from '../../../hooks';
|
|
31
|
+
import { useStepDependency } from '../../StepHooks';
|
|
29
32
|
function TextInputStep(_a) {
|
|
30
|
-
var
|
|
31
|
-
var
|
|
33
|
+
var _b;
|
|
34
|
+
var icon = _a.icon, step = _a.step, editable = _a.editable, maxLength = _a.maxLength, defaultValue = _a.defaultValue, _c = _a.validation, validation = _c === void 0 ? step.validation : _c;
|
|
35
|
+
var currentBreakPoint = useAppSelector(selectBreakPoint);
|
|
36
|
+
var _d = useAppSelector(function (state) { return state.global; }), formStyle = _d.formStyle, postview = _d.postview;
|
|
37
|
+
var form = useContext(FormContext);
|
|
38
|
+
var _e = useState(), timer = _e[0], setTimer = _e[1];
|
|
39
|
+
var _f = useStepDependency(step, defaultValue), isDependency = _f.isDependency, handleStepDep = _f.handleStepDep, originalValue = _f.originalValue;
|
|
40
|
+
var _g = useController({
|
|
41
|
+
name: step.id,
|
|
42
|
+
shouldUnregister: true,
|
|
43
|
+
rules: {
|
|
44
|
+
required: step.required ? 'Este campo es obligatorio' : undefined,
|
|
45
|
+
pattern: validation
|
|
46
|
+
? {
|
|
47
|
+
value: new RegExp(validation.value),
|
|
48
|
+
message: validation.message,
|
|
49
|
+
}
|
|
50
|
+
: undefined,
|
|
51
|
+
},
|
|
52
|
+
defaultValue: originalValue,
|
|
53
|
+
}), _h = _g.field, ref = _h.ref, field = __rest(_h, ["ref"]), error = _g.fieldState.error;
|
|
54
|
+
var onChange = useCallback(function (e) {
|
|
55
|
+
if (isDependency) {
|
|
56
|
+
try {
|
|
57
|
+
clearTimeout(timer);
|
|
58
|
+
// eslint-disable-next-line no-empty
|
|
59
|
+
}
|
|
60
|
+
catch (e) { }
|
|
61
|
+
setTimer(setTimeout(function () {
|
|
62
|
+
handleStepDep(e.target.value);
|
|
63
|
+
setTimer(undefined);
|
|
64
|
+
}, 1000));
|
|
65
|
+
}
|
|
66
|
+
field.onChange(e);
|
|
67
|
+
}, [handleStepDep, isDependency, field]);
|
|
32
68
|
return (_jsx("div", __assign({ className: styles.container, style: {
|
|
33
|
-
width:
|
|
69
|
+
width: currentBreakPoint <= step.size
|
|
34
70
|
? '100%'
|
|
35
71
|
: calcStepWidth(step.size, form.size),
|
|
36
72
|
minHeight: (!postview && editable && (step.required || validation)) ||
|
|
37
73
|
step.description
|
|
38
74
|
? '55px'
|
|
39
75
|
: '43px',
|
|
40
|
-
} }, { children: _jsx(
|
|
41
|
-
required: step.required
|
|
42
|
-
? 'Este campo es obligatorio'
|
|
43
|
-
: undefined,
|
|
44
|
-
pattern: validation
|
|
45
|
-
? {
|
|
46
|
-
value: new RegExp(validation.value),
|
|
47
|
-
message: validation.message,
|
|
48
|
-
}
|
|
49
|
-
: undefined,
|
|
50
|
-
}, shouldUnregister: true, render: function (_a) {
|
|
51
|
-
var _b = _a.field, ref = _b.ref, field = __rest(_b, ["ref"]);
|
|
52
|
-
return (_jsx(RoundedTextField, __assign({}, field, { onChange: function (e) {
|
|
53
|
-
var value = e.target.value;
|
|
54
|
-
if (dependencyStore[step.id] !== undefined) {
|
|
55
|
-
try {
|
|
56
|
-
clearTimeout(timer);
|
|
57
|
-
// eslint-disable-next-line no-empty
|
|
58
|
-
}
|
|
59
|
-
catch (e) { }
|
|
60
|
-
setTimer(setTimeout(function () {
|
|
61
|
-
setDependencyStore(function (deps) {
|
|
62
|
-
var _a;
|
|
63
|
-
return (__assign(__assign({}, deps), (_a = {}, _a[step.id] = {
|
|
64
|
-
type: step.type,
|
|
65
|
-
value: value,
|
|
66
|
-
}, _a)));
|
|
67
|
-
});
|
|
68
|
-
setTimer(null);
|
|
69
|
-
}, 1000));
|
|
70
|
-
}
|
|
71
|
-
field.onChange(value);
|
|
72
|
-
}, maxLength: maxLength, "data-testid": step.id, label: step.label, inputRef: ref, cantEdit: !editable || postview, required: step.required, fontWeight: 400, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperText: errors[step.id]
|
|
73
|
-
? errors[step.id].message
|
|
74
|
-
: step.description, helperTextColor: formStyle.descriptionTextColor, error: !!errors[step.id], icon: step.showIcon ? icon : undefined })));
|
|
75
|
-
} }) })));
|
|
76
|
+
} }, { children: _jsx(RoundedTextField, __assign({}, field, { onChange: onChange, maxLength: maxLength, "data-testid": step.id, label: step.label, inputRef: ref, cantEdit: !editable || postview, required: step.required, fontWeight: 400, focusColor: formStyle.primaryColor, outlineColor: formStyle.outlineColor, textColor: formStyle.textColor, errorColor: formStyle.errorColor, backgroundColor: formStyle.stepBackgroundColor, helperText: (_b = error === null || error === void 0 ? void 0 : error.message) !== null && _b !== void 0 ? _b : step.description, helperTextColor: formStyle.descriptionTextColor, error: !!error, icon: step.showIcon ? icon : undefined })) })));
|
|
76
77
|
}
|
|
77
78
|
export default TextInputStep;
|
|
@@ -12,8 +12,10 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
import { FormStyleTypes } from '../../constants/FormStepTypes';
|
|
14
14
|
import MaterialTextInputStep from './MaterialTextInputStep/MaterialTextInputStep';
|
|
15
|
+
import { useAppSelector } from '../../hooks';
|
|
15
16
|
function TextInputStep(props) {
|
|
16
|
-
|
|
17
|
+
var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
|
|
18
|
+
switch (formStyle.type) {
|
|
17
19
|
case FormStyleTypes.MATERIAL:
|
|
18
20
|
default: {
|
|
19
21
|
return _jsx(MaterialTextInputStep, __assign({}, props));
|
|
@@ -24,9 +24,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
24
24
|
import { Controller } from 'react-hook-form';
|
|
25
25
|
import { calcStepWidth } from '../../StepFunctions';
|
|
26
26
|
import styles from './MaterialTitleStep.module.css';
|
|
27
|
+
import { useAppSelector } from '../../../hooks';
|
|
28
|
+
import FormContext from '../../../Contexts/FormContext';
|
|
29
|
+
import { useContext } from 'react';
|
|
30
|
+
import { useStepDependency } from '../../StepHooks';
|
|
27
31
|
function Title(_a) {
|
|
28
32
|
var _b;
|
|
29
|
-
var step = _a.step,
|
|
33
|
+
var step = _a.step, value = _a.value;
|
|
34
|
+
var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
|
|
35
|
+
var form = useContext(FormContext);
|
|
36
|
+
var widthStats = useAppSelector(function (state) { return state.widthStats; });
|
|
30
37
|
var _c = value !== null && value !== void 0 ? value : {}, title = _c.title, description = _c.description;
|
|
31
38
|
var size = (_b = step.size) !== null && _b !== void 0 ? _b : form.size.blockNum;
|
|
32
39
|
return (_jsxs("div", __assign({ className: styles.container, style: {
|
|
@@ -44,11 +51,9 @@ function Title(_a) {
|
|
|
44
51
|
} }, { children: description })))] })));
|
|
45
52
|
}
|
|
46
53
|
function TitleStep(props) {
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
description: props.step.description,
|
|
51
|
-
}, render: function (_a) {
|
|
54
|
+
var step = props.step;
|
|
55
|
+
var originalValue = useStepDependency(step);
|
|
56
|
+
return (_jsx(Controller, { name: step.id, defaultValue: originalValue, render: function (_a) {
|
|
52
57
|
var _b = _a.field, ref = _b.ref, field = __rest(_b, ["ref"]);
|
|
53
58
|
return (_jsx(Title, __assign({}, props, field, { inputRef: ref })));
|
|
54
59
|
} }));
|
|
@@ -5,5 +5,5 @@ export interface TitleStepProps extends StepProps {
|
|
|
5
5
|
/** The TitleStep to display */
|
|
6
6
|
step: Title;
|
|
7
7
|
}
|
|
8
|
-
declare function TitleStep(
|
|
8
|
+
declare function TitleStep(props: TitleStepProps): JSX.Element;
|
|
9
9
|
export default TitleStep;
|
|
@@ -9,26 +9,16 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
13
|
-
var t = {};
|
|
14
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
15
|
-
t[p] = s[p];
|
|
16
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
17
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
18
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
19
|
-
t[p[i]] = s[p[i]];
|
|
20
|
-
}
|
|
21
|
-
return t;
|
|
22
|
-
};
|
|
23
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
13
|
import { FormStyleTypes } from '../../constants/FormStepTypes';
|
|
25
14
|
import MaterialTitleStep from './MaterialTitleStep/MaterialTitleStep';
|
|
26
|
-
|
|
27
|
-
|
|
15
|
+
import { useAppSelector } from '../../hooks';
|
|
16
|
+
function TitleStep(props) {
|
|
17
|
+
var formStyle = useAppSelector(function (state) { return state.global; }).formStyle;
|
|
28
18
|
switch (formStyle.type) {
|
|
29
19
|
case FormStyleTypes.MATERIAL:
|
|
30
20
|
default: {
|
|
31
|
-
return
|
|
21
|
+
return _jsx(MaterialTitleStep, __assign({}, props));
|
|
32
22
|
}
|
|
33
23
|
}
|
|
34
24
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare function LeakIcon(props:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function LeakIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
3
3
|
export default LeakIcon;
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
function LeakIcon(props) {
|
|
14
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
return (_jsxs("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', height: "512pt", viewBox: "0 -86 512.00056 512", width: "512pt", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "m203.484375 196.359375c2.402344 0 4.753906-.867187 6.601563-2.492187l26.621093-23.394532c3.03125-2.664062 4.164063-6.890625 2.871094-10.714844l-9.21875-27.257812 21.613281-18.996094c3.03125-2.664062 4.164063-6.890625 2.871094-10.714844l-11.359375-33.570312c-1.070313-3.167969-3.652344-5.589844-6.882813-6.457031l-57.925781-15.519531c-5.335937-1.433594-10.816406 1.734374-12.246093 7.070312-1.429688 5.335938 1.734374 10.820312 7.070312 12.25l52.753906 14.132812 7.507813 22.1875-21.613281 18.996094c-3.03125 2.664063-4.164063 6.890625-2.871094 10.714844l9.21875 27.257812-17.59375 15.460938-130.027344-34.839844 30.992188-115.667968c.6875-2.5625.328124-5.292969-.996094-7.589844-1.328125-2.296875-3.511719-3.972656-6.074219-4.660156l-45.574219-12.210938c-5.332031-1.429688-10.816406 1.734375-12.246094 7.070312l-36.636718 136.722657c-.6875 2.5625-.324219 5.292969 1 7.589843 1.324218 2.292969 3.511718 3.972657 6.070312 4.65625l45.574219 12.210938c.867187.234375 1.738281.34375 2.597656.34375 4.414063 0 8.453125-2.945312 9.652344-7.414062l.464844-1.734376 135.199219 36.226563c.851562.230469 1.722656.34375 2.585937.34375zm-181.238281-56.703125 31.460937-117.40625 26.253907 7.035156-31.457032 117.40625zm0 0" }), _jsx("path", { d: "m511.660156 144.136719-36.636718-136.722657c-1.429688-5.332031-6.910157-8.5-12.246094-7.070312l-45.574219 12.210938c-2.5625.6875-4.746094 2.363281-6.070313 4.660156-1.328124 2.296875-1.6875 5.023437-1 7.585937l.464844 1.734375-135.199218 36.226563c-3.28125.878906-5.894532 3.367187-6.933594 6.605469-1.039063 3.238281-.363282 6.777343 1.796875 9.40625l19.121093 23.265624-5.867187 25.070313c-.796875 3.40625.242187 6.980469 2.738281 9.425781l19.386719 18.988282-6.847656 28.496093c-.824219 3.429688.21875 7.039063 2.742187 9.5 1.894532 1.84375 4.40625 2.839844 6.980469 2.839844.863281 0 1.730469-.113281 2.585937-.34375l57.925782-15.519531c5.335937-1.429688 8.5-6.914063 7.070312-12.25-1.429687-5.332032-6.914062-8.5-12.246094-7.070313l-41.683593 11.171875 4.246093-17.664062c.820313-3.421875-.214843-7.023438-2.726562-9.484375l-19.417969-19.015625 5.714844-24.398438c.710937-3.035156-.035156-6.222656-2.011719-8.628906l-12.40625-15.09375 120.207032-32.207031 30.992187 115.667969c1.199219 4.46875 5.238281 7.414062 9.65625 7.414062.855469 0 1.726563-.109375 2.59375-.339844l45.574219-12.210937c2.5625-.6875 4.746094-2.363281 6.070312-4.660157 1.328125-2.296874 1.6875-5.027343 1-7.589843zm-48.160156 2.554687-30.996094-115.667968s0 0 0-.003907v-.003906l-.464844-1.730469 26.257813-7.035156 31.457031 117.40625zm0 0" }), _jsx("path", { d: "m263.386719 203.265625c-1.894531-2.078125-4.574219-3.261719-7.386719-3.261719-2.808594 0-5.492188 1.183594-7.386719 3.261719-.78125.855469-1.640625 1.789063-2.570312 2.792969-14.488281 15.730468-44.640625 48.457031-44.640625 79.34375 0 30.105468 24.492187 54.601562 54.597656 54.601562s54.597656-24.496094 54.597656-54.601562c0-30.886719-30.148437-63.613282-44.640625-79.339844-.925781-1.007812-1.789062-1.941406-2.570312-2.796875zm-7.386719 116.738281c-19.078125 0-34.597656-15.523437-34.597656-34.601562 0-20.492188 20.960937-45.539063 34.597656-60.601563 13.636719 15.0625 34.597656 40.109375 34.597656 60.601563 0 19.078125-15.519531 34.601562-34.597656 34.601562zm0 0" }), _jsx("path", { d: "m129.878906 54.871094c.917969.261718 1.839844.386718 2.75.386718 4.351563 0 8.355469-2.863281 9.609375-7.253906 1.519531-5.3125-1.554687-10.847656-6.867187-12.363281h-.007813c-5.308593-1.519531-10.839843 1.554687-12.359375 6.867187-1.515625 5.308594 1.5625 10.847657 6.875 12.363282zm0 0" }), _jsx("path", { d: "m407.335938 149.527344-.007813.003906c-5.335937 1.421875-8.507813 6.898438-7.082031 12.238281 1.191406 4.472657 5.238281 7.421875 9.65625 7.421875.855468 0 1.722656-.109375 2.585937-.339844 5.335938-1.421874 8.507813-6.902343 7.085938-12.238281-1.425781-5.335937-6.90625-8.511719-12.238281-7.085937zm0 0" })] })));
|
|
15
16
|
}
|
|
16
17
|
export default LeakIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare function ProjectIcon(props:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function ProjectIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
3
3
|
export default ProjectIcon;
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
function ProjectIcon(props) {
|
|
14
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
return (_jsx("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', height: "480pt", viewBox: "0 -8 480 480", width: "480pt", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "m440 448v-49.960938c10.546875-6.214843 16.726562-17.816406 16-30.039062 0-17.671875-10.742188-32-24-32s-24 14.328125-24 32c-.726562 12.222656 5.453125 23.824219 16 30.039062v49.960938h-56v-243.054688l-48-24v43.054688h24v16h-24v32h24v16h-24v32h24v16h-24v32h24v16h-24v32h24v16h-24v16h-16v-321.96875l-96-27.421875v29.390625h56v16h-56v32h56v16h-56v32h56v16h-56v32h56v16h-56v32h56v16h-56v32h56v16h-56v32h56v16h-56v16h-16v-448h-144v32h72v16h-72v32h72v16h-72v32h72v16h-72v32h72v16h-72v32h72v16h-72v32h72v16h-72v32h72v16h-72v32h72v16h-72v32h72v16h-72v16h-48v16h480v-16zm0 0" }) })));
|
|
15
16
|
}
|
|
16
17
|
export default ProjectIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare function PropertyIcon(props:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function PropertyIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
3
3
|
export default PropertyIcon;
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
function PropertyIcon(props) {
|
|
14
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
return (_jsx("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', height: "512", viewBox: "0 0 512 512", width: "512", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("g", __assign({ id: "_01-home", "data-name": "01-home" }, { children: _jsxs("g", __assign({ id: "glyph" }, { children: [_jsx("path", { d: "m256 4c-108.075 0-196 87.925-196 196 0 52.5 31.807 119.92 94.537 200.378a1065.816 1065.816 0 0 0 93.169 104.294 12 12 0 0 0 16.588 0 1065.816 1065.816 0 0 0 93.169-104.294c62.73-80.458 94.537-147.878 94.537-200.378 0-108.075-87.925-196-196-196zm0 336c-77.2 0-140-62.8-140-140s62.8-140 140-140 140 62.8 140 140-62.8 140-140 140z" }), _jsx("path", { d: "m352.072 183.121-88-80a12 12 0 0 0 -16.144 0l-88 80a12.006 12.006 0 0 0 -2.23 15.039 12.331 12.331 0 0 0 10.66 5.84h11.642v76a12 12 0 0 0 12 12h28a12 12 0 0 0 12-12v-44a12 12 0 0 1 12-12h24a12 12 0 0 1 12 12v44a12 12 0 0 0 12 12h28a12 12 0 0 0 12-12v-76h11.642a12.331 12.331 0 0 0 10.66-5.84 12.006 12.006 0 0 0 -2.23-15.039z" })] })) })) })));
|
|
15
16
|
}
|
|
16
17
|
export default PropertyIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare function SpaceIcon(props:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function SpaceIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
3
3
|
export default SpaceIcon;
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
function SpaceIcon(props) {
|
|
14
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
return (_jsxs("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', width: "512pt", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64" }, { children: [_jsx("title", { children: "SpaceType" }), _jsxs("g", __assign({ id: "space_type", "data-name": "space type" }, { children: [_jsx("path", { d: "M29.74,39A10.21,10.21,0,0,0,27.61,39,1.63,1.63,0,0,0,26,40.61V53.35A1.63,1.63,0,0,0,27.61,55h1.74A1.63,1.63,0,0,0,31,53.35V40.61A1.63,1.63,0,0,0,29.74,39Z" }), _jsx("path", { d: "M57.35,39a10.27,10.27,0,0,0-2.13.05A1.63,1.63,0,0,0,54,40.61V53.35A1.63,1.63,0,0,0,55.61,55h1.74A1.63,1.63,0,0,0,59,53.35V40.61A1.63,1.63,0,0,0,57.35,39Z" }), _jsx("path", { d: "M33,54a1,1,0,0,0,1,1H51a1,1,0,0,0,1-1V49H33Z" }), _jsx("path", { d: "M49,42H36a3,3,0,0,0-3,3v2H52V45A3,3,0,0,0,49,42Z" }), _jsx("path", { d: "M54,31a5,5,0,0,0-5-5H36a5,5,0,0,0-5,5v6.39a3.62,3.62,0,0,1,1.86,2.24A4.68,4.68,0,0,1,33,41c1.37-1.37,4.2-1,16-1a5,5,0,0,1,2.68.78c.64.39.07.39.46-1.15a3.65,3.65,0,0,1,1.43-2C54.15,37.19,54,38.41,54,31Z" }), _jsx("path", { d: "M17,32c-5.85,0-4.33,0-4-.05a7.06,7.06,0,0,0,6-7,7,7,0,0,0-4.47,1.59,7.08,7.08,0,0,0-2.07-5.05,7.06,7.06,0,0,0-2.07,5.05,7,7,0,0,0-4.47-1.59,7.07,7.07,0,0,0,6,7c.36.08,1.89.05-4,.05l1.71,6H3V55H5V50H20v5h2V38H15.26ZM15,45H10V43h5Z" }), _jsx("path", { d: "M26,21h6L31,10H19L18,21h6V40.61a3.63,3.63,0,0,1,2-3.24Z" })] }))] })));
|
|
15
16
|
}
|
|
16
17
|
export default SpaceIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare function DocumentIcon(props:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function DocumentIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
3
3
|
export default DocumentIcon;
|
|
@@ -11,6 +11,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
13
13
|
function DocumentIcon(props) {
|
|
14
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
return (_jsx("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', id: "bold", enableBackground: "new 0 0 24 24", height: "512", viewBox: "0 0 24 24", width: "512", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsx("path", { d: "m21.25 3h-18.5c-1.517 0-2.75 1.233-2.75 2.75v12.5c0 1.517 1.233 2.75 2.75 2.75h18.5c1.517 0 2.75-1.233 2.75-2.75v-12.5c0-1.517-1.233-2.75-2.75-2.75zm-13.75 4c1.378 0 2.5 1.122 2.5 2.5s-1.122 2.5-2.5 2.5-2.5-1.122-2.5-2.5 1.122-2.5 2.5-2.5zm4.5 9.25c0 .414-.336.75-.75.75h-7.5c-.414 0-.75-.336-.75-.75v-.5c0-1.517 1.233-2.75 2.75-2.75h3.5c1.517 0 2.75 1.233 2.75 2.75zm8.25.75h-5.5c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h5.5c.414 0 .75.336.75.75s-.336.75-.75.75zm0-4h-5.5c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h5.5c.414 0 .75.336.75.75s-.336.75-.75.75zm0-4h-5.5c-.414 0-.75-.336-.75-.75s.336-.75.75-.75h5.5c.414 0 .75.336.75.75s-.336.75-.75.75z" }) })));
|
|
15
16
|
}
|
|
16
17
|
export default DocumentIcon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare function CheckListIcon(props:
|
|
1
|
+
import { SVGProps } from 'react';
|
|
2
|
+
declare function CheckListIcon(props: SVGProps<SVGSVGElement>): JSX.Element;
|
|
3
3
|
export default CheckListIcon;
|