@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
|
@@ -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 CheckListIcon(props) {
|
|
14
|
-
|
|
14
|
+
var _a;
|
|
15
|
+
return (_jsxs("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', height: "480pt", viewBox: "0 0 60 70", width: "480pt", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M24.79,8.7c1.27,0,2.29-1.03,2.29-2.3c0-1.26-1.03-2.29-2.29-2.29c-1.27,0-2.3,1.03-2.3,2.29 C22.49,7.67,23.52,8.7,24.79,8.7z" }), _jsx("path", { d: "M13.61,53.84H8.14c-0.41,0-0.75,0.34-0.75,0.75v4.1c0,0.41,0.34,0.75,0.75,0.75h5.46c0.41,0,0.75-0.34,0.75-0.75v-4.1 C14.36,54.18,14.02,53.84,13.61,53.84z" }), _jsx("path", { d: "M22.88,47.19h-5.46c-0.41,0-0.75,0.34-0.75,0.75v10.75c0,0.41,0.34,0.75,0.75,0.75h5.46c0.41,0,0.75-0.34,0.75-0.75V47.94 C23.63,47.53,23.3,47.19,22.88,47.19z" }), _jsx("path", { d: "M32.16,43.19h-5.46c-0.41,0-0.75,0.34-0.75,0.75v14.75c0,0.41,0.34,0.75,0.75,0.75h5.46c0.41,0,0.75-0.34,0.75-0.75V43.94 C32.91,43.53,32.57,43.19,32.16,43.19z" }), _jsx("path", { d: "M41.43,51.06h-5.46c-0.41,0-0.75,0.34-0.75,0.75v6.89c0,0.41,0.34,0.75,0.75,0.75h5.46c0.41,0,0.75-0.34,0.75-0.75v-6.89 C42.18,51.39,41.85,51.06,41.43,51.06z" }), _jsx("path", { d: "M41.91,18.96H24.27c-0.41,0-0.75,0.34-0.75,0.75s0.34,0.75,0.75,0.75h17.64c0.41,0,0.75-0.34,0.75-0.75 S42.33,18.96,41.91,18.96z" }), _jsx("path", { d: "M9.93,27.1h5.33c1.26,0,2.29-1.03,2.29-2.29v-5.39c0-1.26-1.03-2.29-2.29-2.29H9.93c-1.26,0-2.29,1.03-2.29,2.29v5.39 C7.64,26.07,8.67,27.1,9.93,27.1z M9.14,19.42c0-0.44,0.35-0.79,0.79-0.79h5.33c0.44,0,0.79,0.35,0.79,0.79v5.39 c0,0.43-0.35,0.79-0.79,0.79H9.93c-0.43,0-0.79-0.35-0.79-0.79V19.42z" }), _jsx("path", { d: "M17.55,38.48v-5.39c0-1.26-1.03-2.29-2.29-2.29H9.93c-1.26,0-2.29,1.03-2.29,2.29v5.39c0,1.26,1.03,2.29,2.29,2.29h5.33 C16.52,40.76,17.55,39.74,17.55,38.48z M16.05,38.48c0,0.43-0.35,0.79-0.79,0.79H9.93c-0.43,0-0.79-0.35-0.79-0.79v-5.39 c0-0.43,0.35-0.79,0.79-0.79h5.33c0.44,0,0.79,0.35,0.79,0.79V38.48z" }), _jsx("path", { d: "M23.55,25.28h11.61c0.41,0,0.75-0.34,0.75-0.75s-0.34-0.75-0.75-0.75H23.55c-0.41,0-0.75,0.34-0.75,0.75 S23.13,25.28,23.55,25.28z" }), _jsx("path", { d: "M23.55,34.12h17.64c0.41,0,0.75-0.34,0.75-0.75s-0.34-0.75-0.75-0.75H23.55c-0.41,0-0.75,0.34-0.75,0.75 S23.13,34.12,23.55,34.12z" }), _jsx("path", { d: "M35.91,38.19c0-0.41-0.34-0.75-0.75-0.75H23.55c-0.41,0-0.75,0.34-0.75,0.75s0.34,0.75,0.75,0.75h11.61 C35.57,38.94,35.91,38.6,35.91,38.19z" }), _jsx("path", { d: "M11.34,23.42c0.12,0.17,0.3,0.27,0.5,0.3c0.03,0,0.07,0.01,0.1,0.01c0.17,0,0.33-0.06,0.47-0.16l2.17-1.72 c0.32-0.26,0.38-0.73,0.12-1.05c-0.26-0.32-0.73-0.38-1.05-0.12l-1.56,1.23l-0.41-0.55c-0.25-0.33-0.71-0.41-1.05-0.16 c-0.33,0.25-0.41,0.71-0.16,1.05L11.34,23.42z" }), _jsx("path", { d: "M13.65,34.33l-1.56,1.23l-0.41-0.55c-0.24-0.33-0.71-0.41-1.05-0.16c-0.33,0.24-0.41,0.71-0.16,1.05l0.87,1.18 c0.12,0.16,0.3,0.27,0.5,0.3c0.03,0,0.07,0.01,0.1,0.01c0.17,0,0.33-0.06,0.47-0.16l2.17-1.72c0.32-0.26,0.38-0.73,0.12-1.05 C14.44,34.13,13.97,34.08,13.65,34.33z" }), _jsx("path", { d: "M62.2,14.25l-1.59-0.3c-0.13-0.02-0.23-0.13-0.27-0.27c-0.28-1.01-0.68-1.98-1.19-2.88c-0.07-0.13-0.07-0.27-0.01-0.37 l0.91-1.34c0.49-0.73,0.4-1.7-0.22-2.32L58.3,5.21C57.68,4.6,56.7,4.5,55.98,5l-1.35,0.92c-0.1,0.07-0.25,0.07-0.37,0 C53.36,5.4,52.39,5,51.39,4.72c-0.12-0.03-0.25-0.12-0.28-0.26l-0.3-1.6C50.65,2,49.9,1.37,49.02,1.37h-2.19 c-0.88,0-1.63,0.63-1.8,1.49l-0.3,1.6c-0.02,0.13-0.13,0.23-0.27,0.27C43.45,5,42.49,5.4,41.58,5.91c-0.12,0.07-0.26,0.07-0.36,0 l-1.36-0.92c-0.73-0.48-1.7-0.39-2.31,0.23L36,6.76c-0.54,0.54-0.66,1.35-0.35,2.04h-0.77V8.06c0-1.14-0.93-2.08-2.08-2.08h-2.52 c-0.45-2.64-2.73-4.62-5.49-4.62c-2.75,0-5.03,1.98-5.48,4.62h-2.53c-1.14,0-2.07,0.93-2.07,2.08V8.8H7.38 c-2.8,0-5.07,2.27-5.07,5.07v45.7c0,2.79,2.27,5.07,5.07,5.07H42.2c1.72,0,3.24-0.87,4.16-2.18h1.07c0.79,0,1.47-0.56,1.62-1.34 l0.25-1.33c0.01-0.07,0.08-0.11,0.13-0.12c0.86-0.24,1.67-0.57,2.42-1c0.06-0.03,0.13-0.04,0.18-0.01l1.12,0.76 c0.65,0.44,1.53,0.36,2.09-0.19l1.29-1.29c0.56-0.56,0.64-1.44,0.2-2.09l-0.76-1.12c-0.03-0.04-0.02-0.11,0.01-0.17 c0.44-0.77,0.77-1.58,1-2.42c0.01-0.04,0.04-0.12,0.12-0.14l1.32-0.25c0.78-0.14,1.34-0.82,1.34-1.62v-1.82 c0-0.79-0.56-1.47-1.34-1.62l-1.32-0.25c-0.08-0.02-0.12-0.1-0.12-0.13c-0.23-0.85-0.57-1.67-1-2.43c-0.03-0.06-0.04-0.13-0.01-0.18 l0.76-1.12c0.44-0.65,0.36-1.53-0.2-2.09l-1.29-1.29c-0.56-0.55-1.43-0.64-2.09-0.19l-1.12,0.76c-0.04,0.03-0.12,0.03-0.17-0.01 c-0.75-0.43-1.57-0.77-2.42-1c-0.06-0.02-0.13-0.06-0.14-0.12l-0.25-1.33c-0.14-0.78-0.82-1.34-1.62-1.34h-0.16v-3.05h1.75 c0.88,0,1.64-0.63,1.8-1.49l0.3-1.59c0.03-0.15,0.16-0.24,0.27-0.27c1.02-0.28,1.99-0.68,2.88-1.19c0.13-0.07,0.28-0.07,0.38,0 l1.35,0.91c0.73,0.49,1.7,0.4,2.32-0.21l1.55-1.55c0.62-0.62,0.72-1.6,0.22-2.33l-0.91-1.34c-0.07-0.1-0.06-0.25,0-0.37 c0.52-0.91,0.92-1.88,1.19-2.88c0.02-0.07,0.09-0.24,0.26-0.27l1.59-0.3c0.86-0.16,1.49-0.92,1.49-1.8v-2.19 C63.69,15.17,63.07,14.41,62.2,14.25z M47.92,11.29c3.23,0,5.85,2.63,5.85,5.85c0,3.23-2.63,5.85-5.85,5.85 c-0.21,0-0.43-0.01-0.65-0.04v-9.09c0-0.88-0.25-1.69-0.64-2.42C47.05,11.35,47.48,11.29,47.92,11.29z M51.26,49.21 c0,2.36-1.73,4.3-3.99,4.66v-9.33C49.53,44.9,51.26,46.85,51.26,49.21z M16.2,8.06c0-0.32,0.25-0.58,0.57-0.58h3.2 c0.4,0,0.73-0.32,0.75-0.72c0.09-2.19,1.88-3.9,4.06-3.9c2.2,0,3.98,1.71,4.07,3.9c0.02,0.4,0.35,0.72,0.75,0.72h3.2 c0.32,0,0.58,0.25,0.58,0.58v3.28c0,0.31-0.26,0.57-0.58,0.57H16.77c-0.31,0-0.57-0.25-0.57-0.57V8.06z M42.2,63.13H7.38 c-1.97,0-3.57-1.6-3.57-3.57v-45.7c0-1.97,1.6-3.57,3.57-3.57h7.33v1.05c0,1.14,0.93,2.07,2.07,2.07H32.8 c1.14,0,2.08-0.93,2.08-2.07V10.3h7.33c1.97,0,3.57,1.6,3.57,3.57v45.7C45.77,61.53,44.17,63.13,42.2,63.13z" })] })));
|
|
15
16
|
}
|
|
16
17
|
export default CheckListIcon;
|
|
@@ -12,6 +12,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
var GenericEntityIcon = function (props) {
|
|
14
14
|
var _a;
|
|
15
|
-
return (_jsxs("svg", __assign({ version: "1.1", width: "500pt", height: "500pt", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
return (_jsxs("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', version: "1.1", width: "500pt", height: "500pt", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "M10 5H4c-.55 0-1 .45-1 1s.45 1 1 1h2v3c0 .55.45 1 1 1s1-.45 1-1V7h2c.55 0 1-.45 1-1s-.45-1-1-1zM10 2H4c-.55 0-1 .45-1 1s.45 1 1 1h6c.55 0 1-.45 1-1s-.45-1-1-1zM20.89 13.11a.9959.9959 0 00-1.41 0l-6.36 6.36c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l6.36-6.36c.39-.39.39-1.02 0-1.41z" }), _jsx("circle", { cx: "14.5", cy: "14.5", r: "1.5" }), _jsx("circle", { cx: "19.5", cy: "19.5", r: "1.5" }), _jsx("path", { d: "M15.5 11c1.38 0 2.5-1.12 2.5-2.5V4h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1v3.51c-.42-.32-.93-.51-1.5-.51C14.12 6 13 7.12 13 8.5s1.12 2.5 2.5 2.5zM10.45 18.09c.39-.39.39-1.02 0-1.41a.9959.9959 0 00-1.41 0l-.71.71-.71-.71.35-.35c.98-.98.98-2.56 0-3.54-.49-.49-1.13-.73-1.77-.73-.64 0-1.28.24-1.77.73-.98.98-.98 2.56 0 3.54l.35.35-1.06 1.06c-.98.98-.98 2.56 0 3.54.5.48 1.14.72 1.78.72.64 0 1.28-.24 1.77-.73l1.06-1.06.71.71c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-.71-.71.71-.71zm-4.6-3.89c.12-.12.26-.15.35-.15s.23.03.35.15c.19.2.19.51 0 .71l-.35.35-.35-.36c-.12-.12-.15-.26-.15-.35s.03-.23.15-.35zm0 5.65c-.12.12-.26.15-.35.15s-.23-.03-.35-.15c-.12-.12-.15-.26-.15-.35s.03-.23.15-.35l1.06-1.06.71.71-1.07 1.05z" })] })));
|
|
16
16
|
};
|
|
17
17
|
export default GenericEntityIcon;
|
|
@@ -12,6 +12,6 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
13
|
var HandShakeIcon = function (props) {
|
|
14
14
|
var _a;
|
|
15
|
-
return (_jsxs("svg", __assign({ version: "1.1", width: "511pt", height: "511pt", viewBox: "0 -3 511.99992 511", xmlns: "http://www.w3.org/2000/svg"
|
|
15
|
+
return (_jsxs("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', version: "1.1", width: "511pt", height: "511pt", viewBox: "0 -3 511.99992 511", xmlns: "http://www.w3.org/2000/svg" }, { children: [_jsx("path", { d: "m509.914062 214.859375-85.695312-111.320313c-3.171875-4.117187-8.957031-5.132812-13.34375-2.34375l-55.328125 35.1875h-72.160156c-.933594 0-1.863281.199219-2.761719.460938l-55.949219 16.105469-58.054687-15.878907-56.410156-35.875c-4.3125-2.742187-9.992188-1.8125-13.199219 2.164063l-94.785157 117.40625c-3.40625 4.21875-2.84375 10.378906 1.265626 13.914063l49.679687 42.753906 44.570313 60.0625c-13.035157 13.886718-12.78125 35.789062.78125 49.355468 6.011718 6.007813 13.65625 9.402344 21.519531 10.191407-.273438 1.78125-.414063 3.589843-.414063 5.425781 0 9.476562 3.691406 18.386719 10.390625 25.085938 6.703125 6.703124 15.613281 10.394531 25.089844 10.394531.128906 0 .253906-.007813.378906-.011719-.003906.242188-.015625.480469-.015625.722656 0 9.476563 3.691406 18.386719 10.390625 25.089844 6.703125 6.699219 15.613281 10.390625 25.089844 10.390625 1.871094 0 3.722656-.152344 5.539063-.433594.769531 7.890625 4.171874 15.570313 10.203124 21.601563 6.914063 6.917968 16 10.375 25.085938 10.375s18.171875-3.457032 25.089844-10.375l5.425781-5.425782 2.277344 1.835938c6.859375 6.644531 15.765625 9.964844 24.671875 9.964844 9.085937 0 18.171875-3.457032 25.085937-10.375 7.058594-7.058594 10.515625-16.375 10.371094-25.644532 9.265625.140626 18.585937-3.3125 25.644531-10.367187 7.050782-7.054687 10.507813-16.363281 10.371094-25.628906 9.652344.152343 18.808594-3.554688 25.640625-10.386719 7.058594-7.058594 10.515625-16.375 10.371094-25.644531 9.273437.140625 18.585937-3.3125 25.644531-10.371094 12.046875-12.046875 13.597656-30.667969 4.664062-44.414063l32.542969-68.15625 48.925781-42.101562c4.042969-3.480469 4.660157-9.511719 1.40625-13.734375zm-402.914062-91.910156 40.5625 25.792969-88.238281 107.5-35.359375-30.433594zm5.722656 227.921875 12.242188-12.242188c.371094-.371094.761718-.722656 1.160156-1.050781 2.394531-1.953125 5.292969-3.117187 8.363281-3.394531.085938-.007813.175781-.007813.261719-.011719.4375-.035156.875-.058594 1.316406-.054687 4.195313.058593 8.09375 1.773437 10.984375 4.824218 5.671875 5.996094 5.367188 15.792969-.679687 21.839844l-11.871094 11.871094c-6.003906 6.003906-15.773438 6.003906-21.777344 0-6.003906-6.007813-6.003906-15.777344 0-21.78125zm31.496094 62.484375c-2.910156-2.90625-4.511719-6.773438-4.511719-10.886719s1.601563-7.980469 4.511719-10.890625l23.738281-23.738281c4.546875-4.546875 11.695313-5.792969 17.507813-3.023438 5.992187 2.855469 9.363281 9.359375 8.484375 15.902344-.46875 3.492188-2.09375 6.78125-4.585938 9.277344l-23.363281 23.359375c-2.910156 2.910156-6.777344 4.511719-10.890625 4.511719s-7.980469-1.601563-10.890625-4.511719zm35.84375 36.191406c-2.910156-2.90625-4.511719-6.773437-4.511719-10.886719 0-4.113281 1.601563-7.980468 4.511719-10.890625l23.734375-23.738281c4.863281-4.859375 12.664063-5.90625 18.617187-2.441406 5.4375 3.164062 8.285157 9.375 7.351563 15.5625-.511719 3.402344-2.128906 6.601562-4.5625 9.035156l-23.359375 23.359375c-2.910156 2.910156-6.777344 4.511719-10.890625 4.511719s-7.980469-1.601563-10.890625-4.511719zm40.828125 31.5625c-6.003906-6.003906-6.003906-15.773437 0-21.777344l12.242187-12.242187c.371094-.371094.757813-.71875 1.15625-1.046875.011719-.007813.019532-.015625.027344-.023438 1.992188-1.617187 4.332032-2.699219 6.828125-3.171875.058594-.007812.117188-.015625.175781-.023437.429688-.078125.867188-.140625 1.304688-.179688.175781-.015625.351562-.015625.53125-.027343.359375-.019532.714844-.042969 1.078125-.039063 4.191406.058594 8.09375 1.769531 10.984375 4.824219.355469.375.6875.765625.992188 1.167968 4.617187 6.035157 3.996093 15-1.734376 20.734376l-11.808593 11.808593c-6.003907 6.003907-15.773438 6-21.777344-.003906zm187.285156-112.042969c-6.003906 6.007813-15.773437 6.003906-21.777343 0-.21875-.21875-.449219-.421875-.683594-.613281l-64.554688-65.234375c-3.902344-3.941406-10.257812-3.972656-14.199218-.070312-3.941407 3.898437-3.972657 10.253906-.074219 14.195312l65.253906 65.933594c.007813.007812.015625.015625.023437.023437 6.003907 6.003907 6.003907 15.777344 0 21.78125-2.910156 2.910157-6.777343 4.511719-10.890624 4.511719-4.117188 0-7.984376-1.601562-10.890626-4.511719l-43.652343-44.105469c-3.898438-3.941406-10.253907-3.972656-14.195313-.074218-3.941406 3.902344-3.972656 10.257812-.074218 14.199218l42.984374 43.429688c.21875.273438.453126.535156.703126.785156 6.003906 6.003906 6.003906 15.777344 0 21.78125-6.007813 6.003906-15.78125 6-21.785157-.003906l-23.824219-24.074219c-3.902343-3.941406-10.257812-3.976562-14.199218-.074219-3.941406 3.898438-3.972656 10.253907-.074219 14.195313l23.160156 23.398437c.21875.273438.453125.539063.707031.789063 6.003907 6.003906 6.003907 15.777344 0 21.78125-6.003906 6.007813-15.773437 6.003906-21.777343 0-.691407-.691406-1.503907-1.222656-2.277344-1.816406-.65625-.5-.828125-.847657-.5-1.644531.332031-.808594.828125-1.539063 1.160156-2.351563.367188-.90625.664063-1.839844.953125-2.777344 1.539063-4.960937 1.992188-10.296875 1.300782-15.445312-1.328126-9.878907-6.761719-18.792969-14.996094-24.433594-4.449219-3.042969-9.597656-5.039063-14.933594-5.789063 2.585938-11.40625-.519531-23.773437-8.597656-32.308593-6.648438-7.023438-15.628906-10.964844-25.289063-11.097657-.351562-.003906-.703125-.003906-1.058593 0 .214843-9.21875-3.136719-18.378906-9.492188-25.09375-6.652344-7.023437-15.632812-10.964843-25.289062-11.097656-2.871094-.039062-5.769532.265625-8.566407.910156-1.195312-8.316406-5.386719-16.011718-11.734375-21.515624-6.308594-5.460938-14.242187-8.492188-22.691406-8.609376-8.894531-.128906-17.632812 3.152344-24.238281 9.117188l-38.808594-52.292969 92.84375-113.109375 29.589844 8.09375-38.644531 68.191406c-4.671876 8.246094-5.851563 17.816407-3.324219 26.949219 2.527343 9.136719 8.457031 16.738281 16.703125 21.410157.515625.292968 1.035156.570312 1.5625.835937.039062.019531.078125.039063.121094.058594 1.386718.691406 2.8125 1.285156 4.257812 1.785156 6.730469 2.332031 14 2.585937 21.011719.648437 9.132812-2.527343 16.734375-8.460937 21.40625-16.703124l25.113281-44.316407 44.839844 3.179688 119.402344 119.398437c6 6.007813 6 15.777344-.003907 21.78125zm4.160157-46.019531-112.011719-112.007813c-.210938-.214843-.433594-.417968-.664063-.609374-1.613281-1.34375-3.613281-2.15625-5.722656-2.304688l-54.902344-3.894531c-3.796875-.261719-7.570312 1.757812-9.445312 5.066406l-28.234375 49.828125c-2.027344 3.578125-5.328125 6.152344-9.292969 7.25-3.960938 1.097656-8.117188.582031-11.699219-1.445312-3.578125-2.027344-6.152343-5.328126-7.25-9.292969-1.097656-3.964844-.585937-8.121094 1.445313-11.699219l37.691406-66.519531 15.273438-4.394531c.101562-.03125.199218-.070313.300781-.101563l57.003906-16.460937h68.875l85.984375 109.304687zm40.503906-73.039063-79.515625-101.136718 40.582031-25.808594 74.300781 96.511719zm0 0" }), _jsx("path", { d: "m310.183594 117.53125c2.570312 0 5.140625-.980469 7.101562-2.941406l68.578125-68.578125c3.921875-3.921875 3.921875-10.277344 0-14.199219s-10.277343-3.921875-14.199219 0l-68.578124 68.578125c-3.921876 3.921875-3.921876 10.277344 0 14.199219 1.960937 1.960937 4.53125 2.941406 7.097656 2.941406zm0 0" }), _jsx("path", { d: "m194.714844 114.589844c1.960937 1.960937 4.53125 2.941406 7.101562 2.941406 2.566406 0 5.136719-.980469 7.097656-2.941406 3.921876-3.921875 3.921876-10.277344 0-14.199219l-68.578124-68.578125c-3.921876-3.921875-10.277344-3.921875-14.199219 0s-3.921875 10.277344 0 14.199219zm0 0" }), _jsx("path", { d: "m256 117.53125c5.542969 0 10.039062-4.496094 10.039062-10.039062v-56.753907c0-5.542969-4.496093-10.039062-10.039062-10.039062s-10.039062 4.496093-10.039062 10.039062v56.753907c0 5.542968 4.496093 10.039062 10.039062 10.039062zm0 0" }), _jsx("path", { d: "m246.734375 14.351562c1.59375 3.863282 5.566406 6.398438 9.757813 6.179688 4.140624-.214844 7.777343-3.011719 9.058593-6.953125 1.285157-3.972656-.113281-8.5-3.441406-11.03125-3.394531-2.5859375-8.128906-2.730469-11.679687-.382813-3.960938 2.617188-5.496094 7.828126-3.695313 12.1875zm0 0" })] })));
|
|
16
16
|
};
|
|
17
17
|
export default HandShakeIcon;
|
|
@@ -10,5 +10,8 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
-
var SupplierIcon = function (props) {
|
|
13
|
+
var SupplierIcon = function (props) {
|
|
14
|
+
var _a;
|
|
15
|
+
return (_jsx("svg", __assign({}, props, { fill: (_a = props.fill) !== null && _a !== void 0 ? _a : '#757575', width: "512", height: "512", version: "1.1", viewBox: "0 0 160 160", xmlns: "http://www.w3.org/2000/svg" }, { children: _jsxs("g", { children: [_jsx("path", { d: "M146.227,105.699l-27.514,5.464l-0.974-4.922l-1.858-9.362l-14.284,2.843l1.858,9.362l0.974,4.922l-7.976,1.587 c-0.743-1.627-1.627-3.164-2.622-4.601c-4.37-6.298-11.009-10.738-18.493-12.366c-1.708-0.372-3.466-0.593-5.254-0.663 l-9.884-49.784c-0.271-1.356,0.613-2.682,1.969-2.943l27.514-5.465l0.974,4.922l1.868,9.362l14.284-2.843l-1.858-9.362 l-0.974-4.922l27.504-5.465c1.366-0.271,2.682,0.613,2.953,1.979l13.772,69.301C148.477,104.112,147.593,105.428,146.227,105.699z" }), _jsx("path", { d: "M149.741,108.588l-51.994,10.327c0.356,1.106,0.66,2.24,0.891,3.407c0.232,1.167,0.385,2.331,0.478,3.489l51.994-10.327 c1.905-0.378,3.142-2.229,2.764-4.133C153.496,109.447,151.645,108.209,149.741,108.588z" }), _jsx("path", { d: "M32.325,7.401c-0.554-1.651-2.248-2.682-4.002-2.333c-1.158,0.23-2.062,1.005-2.509,2.005 c-0.508,1.137-1.618,1.89-2.84,2.133L8.982,11.985c-1.646,0.327-2.918,1.739-2.924,3.417c-0.008,2.308,2.064,3.923,4.203,3.498 l14.083-2.797c1.221-0.243,2.535,0.029,3.439,0.886c0.795,0.753,1.927,1.124,3.085,0.894c1.718-0.341,2.881-1.882,2.817-3.579 c4.769-0.432,9.207,2.805,10.161,7.605l15.416,77.618c1.219-0.41,2.473-0.755,3.768-1.012c1.039-0.206,2.077-0.356,3.11-0.452 L50.743,20.538C49.035,11.938,40.899,6.239,32.325,7.401z" }), _jsx("path", { d: "M63.715,101.963c-14.503,2.88-23.925,16.973-21.044,31.475c2.88,14.503,16.972,23.925,31.475,21.044 c14.503-2.881,23.925-16.973,21.044-31.475S78.218,99.082,63.715,101.963z M70.914,138.208c-5.506,1.094-10.876-2.496-11.969-8.003 c-1.094-5.506,2.496-10.876,8.003-11.969c5.506-1.094,10.876,2.496,11.969,8.003C80.01,131.745,76.42,137.115,70.914,138.208z" })] }) })));
|
|
16
|
+
};
|
|
14
17
|
export default SupplierIcon;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function getUploadUrls(files: Array<File>,
|
|
1
|
+
export declare function getUploadUrls(files: Array<File>, idOrganization?: string): Promise<(Record<string, any> | string)[]>;
|
|
2
2
|
export declare function postFile(file: File, postInfo: Record<string, any>): Promise<{
|
|
3
3
|
fileName: string;
|
|
4
4
|
S3Key: string;
|
|
@@ -35,9 +35,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import axios from 'axios';
|
|
38
|
-
import axiosInstance from '../AxiosAPI';
|
|
39
|
-
import widgetInstance from '../AxiosWidget';
|
|
40
|
-
export function getUploadUrls(files,
|
|
38
|
+
import axiosInstance from '../Utils/AxiosAPI';
|
|
39
|
+
import widgetInstance from '../Utils/AxiosWidget';
|
|
40
|
+
export function getUploadUrls(files, idOrganization) {
|
|
41
41
|
var _a;
|
|
42
42
|
return __awaiter(this, void 0, void 0, function () {
|
|
43
43
|
var filesArray, response;
|
|
@@ -48,8 +48,8 @@ export function getUploadUrls(files, domain) {
|
|
|
48
48
|
publicFile: false,
|
|
49
49
|
extension: file.name.split('.').pop(),
|
|
50
50
|
}); });
|
|
51
|
-
if (!
|
|
52
|
-
return [4 /*yield*/, widgetInstance.post("/uploadfile?idOrganization=".concat(
|
|
51
|
+
if (!idOrganization) return [3 /*break*/, 2];
|
|
52
|
+
return [4 /*yield*/, widgetInstance.post("/uploadfile?idOrganization=".concat(idOrganization), filesArray)];
|
|
53
53
|
case 1:
|
|
54
54
|
response = _b.sent();
|
|
55
55
|
return [3 /*break*/, 4];
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
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;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import axiosInstance from '../Utils/AxiosAPI';
|
|
38
|
+
import widgetInstance from '../Utils/AxiosWidget';
|
|
39
|
+
export function fetchForm(apiKey, idOrganization) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41
|
+
var response, error_1;
|
|
42
|
+
return __generator(this, function (_a) {
|
|
43
|
+
switch (_a.label) {
|
|
44
|
+
case 0:
|
|
45
|
+
_a.trys.push([0, 2, , 3]);
|
|
46
|
+
return [4 /*yield*/, (idOrganization
|
|
47
|
+
? widgetInstance.get("/form/".concat(apiKey, "?idOrganization=").concat(idOrganization))
|
|
48
|
+
: axiosInstance.get("/form/".concat(apiKey)))];
|
|
49
|
+
case 1:
|
|
50
|
+
response = _a.sent();
|
|
51
|
+
return [2 /*return*/, response.data];
|
|
52
|
+
case 2:
|
|
53
|
+
error_1 = _a.sent();
|
|
54
|
+
return [2 /*return*/, null];
|
|
55
|
+
case 3: return [2 /*return*/];
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
});
|
|
59
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
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;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import axiosInstance from '../Utils/AxiosAPI';
|
|
38
|
+
import widgetInstance from '../Utils/AxiosWidget';
|
|
39
|
+
export function fetchOrganization(idOrganization) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
41
|
+
var response, _a, error_1;
|
|
42
|
+
return __generator(this, function (_b) {
|
|
43
|
+
switch (_b.label) {
|
|
44
|
+
case 0:
|
|
45
|
+
_b.trys.push([0, 5, , 6]);
|
|
46
|
+
if (!idOrganization) return [3 /*break*/, 2];
|
|
47
|
+
return [4 /*yield*/, widgetInstance.get("/organization?idOrganization=".concat(idOrganization))];
|
|
48
|
+
case 1:
|
|
49
|
+
_a = _b.sent();
|
|
50
|
+
return [3 /*break*/, 4];
|
|
51
|
+
case 2: return [4 /*yield*/, axiosInstance.get('/organization')];
|
|
52
|
+
case 3:
|
|
53
|
+
_a = _b.sent();
|
|
54
|
+
_b.label = 4;
|
|
55
|
+
case 4:
|
|
56
|
+
response = _a;
|
|
57
|
+
return [2 /*return*/, response.data];
|
|
58
|
+
case 5:
|
|
59
|
+
error_1 = _b.sent();
|
|
60
|
+
return [2 /*return*/, null];
|
|
61
|
+
case 6: return [2 /*return*/];
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
});
|
|
65
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.ratingContainer {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.iconContainer,
|
|
8
|
+
.disabledIconContainer {
|
|
9
|
+
font-size: 60px;
|
|
10
|
+
height: 60px;
|
|
11
|
+
color: var(--eureka-outline);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.iconContainer:hover {
|
|
15
|
+
transform: scale(1.2);
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
color: var(--eureka-primary);
|
|
18
|
+
}
|
|
@@ -18,9 +18,9 @@ function LikeRating(_a) {
|
|
|
18
18
|
return (_jsxs("div", __assign({ className: styles.ratingContainer, style: {
|
|
19
19
|
'--eureka-primary': focusColor,
|
|
20
20
|
'--eureka-outline': unSelectedColor,
|
|
21
|
-
} }, { children: [_jsx("input", { ref: inputRef, className:
|
|
22
|
-
? styles.
|
|
23
|
-
: styles.
|
|
21
|
+
} }, { children: [_jsx("input", { ref: inputRef, className: 'hidden-input' }), _jsx("div", __assign({ className: disabled
|
|
22
|
+
? styles.disabledIconContainer
|
|
23
|
+
: styles.iconContainer, style: { height: 70 }, onClick: function () {
|
|
24
24
|
if (!disabled)
|
|
25
25
|
onChange(value === 1 ? null : 1);
|
|
26
26
|
} }, { children: _jsx(ThumbUpRoundedIcon, { fontSize: "inherit", style: value === 1
|
|
@@ -28,8 +28,8 @@ function LikeRating(_a) {
|
|
|
28
28
|
color: focusColor,
|
|
29
29
|
}
|
|
30
30
|
: {} }) })), _jsx("div", __assign({ className: disabled
|
|
31
|
-
? styles.
|
|
32
|
-
: styles.
|
|
31
|
+
? styles.disabledIconContainer
|
|
32
|
+
: styles.iconContainer, style: { height: 70 }, onClick: function () {
|
|
33
33
|
if (!disabled)
|
|
34
34
|
onChange(value === 0 ? null : 0);
|
|
35
35
|
} }, { children: _jsx(ThumbDownRoundedIcon, { fontSize: "inherit", style: value === 0
|
|
@@ -20,9 +20,9 @@ function SatisfactionRating(_a) {
|
|
|
20
20
|
return (_jsxs("div", __assign({ className: styles.ratingContainer, style: {
|
|
21
21
|
'--eureka-primary': focusColor,
|
|
22
22
|
'--eureka-outline': unSelectedColor,
|
|
23
|
-
} }, { children: [_jsx("input", { ref: inputRef, className:
|
|
24
|
-
? styles.
|
|
25
|
-
: styles.
|
|
23
|
+
} }, { children: [_jsx("input", { ref: inputRef, className: 'hidden-input' }), _jsx("div", __assign({ className: disabled
|
|
24
|
+
? styles.disabledIconContainer
|
|
25
|
+
: styles.iconContainer, onClick: function () {
|
|
26
26
|
if (!disabled)
|
|
27
27
|
onChange(value === 1 ? null : 1);
|
|
28
28
|
} }, { children: _jsx(SentimentVeryDissatisfiedIcon, { fontSize: "inherit", style: value === 1
|
|
@@ -30,8 +30,8 @@ function SatisfactionRating(_a) {
|
|
|
30
30
|
color: focusColor,
|
|
31
31
|
}
|
|
32
32
|
: {} }) })), _jsx("div", __assign({ className: disabled
|
|
33
|
-
? styles.
|
|
34
|
-
: styles.
|
|
33
|
+
? styles.disabledIconContainer
|
|
34
|
+
: styles.iconContainer, onClick: function () {
|
|
35
35
|
if (!disabled)
|
|
36
36
|
onChange(value === 2 ? null : 2);
|
|
37
37
|
} }, { children: _jsx(SentimentDissatisfiedIcon, { fontSize: "inherit", style: value === 2
|
|
@@ -39,8 +39,8 @@ function SatisfactionRating(_a) {
|
|
|
39
39
|
color: focusColor,
|
|
40
40
|
}
|
|
41
41
|
: {} }) })), _jsx("div", __assign({ className: disabled
|
|
42
|
-
? styles.
|
|
43
|
-
: styles.
|
|
42
|
+
? styles.disabledIconContainer
|
|
43
|
+
: styles.iconContainer, onClick: function () {
|
|
44
44
|
if (!disabled)
|
|
45
45
|
onChange(value === 3 ? null : 3);
|
|
46
46
|
} }, { children: _jsx(SentimentSatisfiedAltIcon, { fontSize: "inherit", style: value === 3
|
|
@@ -48,8 +48,8 @@ function SatisfactionRating(_a) {
|
|
|
48
48
|
color: focusColor,
|
|
49
49
|
}
|
|
50
50
|
: {} }) })), _jsx("div", __assign({ className: disabled
|
|
51
|
-
? styles.
|
|
52
|
-
: styles.
|
|
51
|
+
? styles.disabledIconContainer
|
|
52
|
+
: styles.iconContainer, onClick: function () {
|
|
53
53
|
if (!disabled)
|
|
54
54
|
onChange(value === 4 ? null : 4);
|
|
55
55
|
} }, { children: _jsx(SentimentVerySatisfiedIcon, { fontSize: "inherit", style: value === 4
|
|
@@ -21,7 +21,6 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
|
-
import styles from '../Rating.module.css';
|
|
25
24
|
import { Rating } from '@material-ui/lab';
|
|
26
25
|
import GradeRoundedIcon from '@material-ui/icons/GradeRounded';
|
|
27
26
|
import { makeStyles } from '@material-ui/core';
|
|
@@ -47,7 +46,7 @@ function ScaleRating(_a) {
|
|
|
47
46
|
unSelectedColor: unSelectedColor,
|
|
48
47
|
focusColor: focusColor,
|
|
49
48
|
})();
|
|
50
|
-
return (_jsxs(React.Fragment, { children: [_jsx("input", { ref: inputRef, className:
|
|
49
|
+
return (_jsxs(React.Fragment, { children: [_jsx("input", { ref: inputRef, className: 'hidden-input' }), _jsx(Rating, { value: value, onChange: function (_event, newValue) {
|
|
51
50
|
if (!disabled)
|
|
52
51
|
onChange(newValue);
|
|
53
52
|
}, disabled: disabled, classes: ratingClasses, name: name, size: "large", defaultValue: 0, getLabelText: function (value) { return value + '/5'; }, max: 5, IconContainerComponent: isMobile ? SmallIconContainer : IconContainer })] }));
|
|
@@ -161,7 +161,7 @@ export default function RoundedSmartSelect(_a) {
|
|
|
161
161
|
};
|
|
162
162
|
var textFieldClasses = useTextfieldStyles(props)();
|
|
163
163
|
if (searchable) {
|
|
164
|
-
return (_jsx(Autocomplete, { onFocus: onFocus, size: "small", fullWidth: true, openOnFocus: true, freeSolo: creatable, disabled: cantEdit || disabled, popupIcon: loading ? (_jsx(CircularProgress, { size: 22, style: { color: '#757575' } })) : showIcon && icon ? (icon) : undefined, onOpen: function () { }, loading: loading, loadingText: 'Cargando...', closeIcon: false, options: options !== null && options !== void 0 ? options : [], getOptionLabel: function (option) {
|
|
164
|
+
return (_jsx(Autocomplete, { onFocus: onFocus, size: "small", fullWidth: true, openOnFocus: true, freeSolo: creatable, disabled: cantEdit || disabled, popupIcon: loading ? (_jsx(CircularProgress, { size: 22, style: { color: '#757575', marginTop: 1 } })) : showIcon && icon ? (icon) : undefined, onOpen: function () { }, loading: loading, loadingText: 'Cargando...', closeIcon: false, options: options !== null && options !== void 0 ? options : [], getOptionLabel: function (option) {
|
|
165
165
|
var _a, _b;
|
|
166
166
|
// Value selected with enter, right from the input
|
|
167
167
|
if (typeof option === 'string') {
|
|
@@ -177,7 +177,7 @@ export default function RoundedSmartSelect(_a) {
|
|
|
177
177
|
}, getOptionSelected: getOptionSelected, PopperComponent: function (_a) {
|
|
178
178
|
var style = _a.style, props = __rest(_a, ["style"]);
|
|
179
179
|
return (_jsx(Popper, __assign({}, props, { style: __assign(__assign({}, style), { zIndex: 1305 }) })));
|
|
180
|
-
}, value: value ? value : null, onChange: function (event, newValue) {
|
|
180
|
+
}, value: !loading && value ? value : null, onChange: function (event, newValue) {
|
|
181
181
|
if (creatable) {
|
|
182
182
|
if (typeof newValue === 'string') {
|
|
183
183
|
changeListener === null || changeListener === void 0 ? void 0 : changeListener(newValue);
|
|
@@ -222,7 +222,7 @@ export default function RoundedSmartSelect(_a) {
|
|
|
222
222
|
}));
|
|
223
223
|
}, onOpen: function () {
|
|
224
224
|
//Show loading icon if loading
|
|
225
|
-
}, value: getValueString(value), color: color, errorColor: errorColor, focusColor: focusColor, helperTextColor: helperTextColor, backgroundColor: backgroundColor, outlineColor: outlineColor, cantEdit: cantEdit, disabled: cantEdit || disabled, label: label, required: required, readOnly: readOnly, helperText: hidden ? undefined : helperText, containerMargin: containerMargin, height: height, fontSize: fontSize, error: !hidden && error, iconComponent: loading
|
|
225
|
+
}, value: loading ? '' : getValueString(value), color: color, errorColor: errorColor, focusColor: focusColor, helperTextColor: helperTextColor, backgroundColor: backgroundColor, outlineColor: outlineColor, cantEdit: cantEdit, disabled: cantEdit || disabled, label: label, required: required, readOnly: readOnly, helperText: hidden ? undefined : helperText, containerMargin: containerMargin, height: height, fontSize: fontSize, error: !hidden && error, iconComponent: loading
|
|
226
226
|
? function () { return (_jsx("div", __assign({ style: {
|
|
227
227
|
marginTop: 3,
|
|
228
228
|
marginRight: 8,
|
|
@@ -233,6 +233,6 @@ export default function RoundedSmartSelect(_a) {
|
|
|
233
233
|
? function (props) {
|
|
234
234
|
return cloneElement(icon, props);
|
|
235
235
|
}
|
|
236
|
-
: undefined, showIcon: showIcon }, { children: [_jsx(MenuItem, __assign({ value: '', style: { whiteSpace: 'normal' } }, { children: _jsx("em", { children: options ? 'Sin Seleccionar' : 'Cargando...' }) }), 'EMPTY'), options === null || options === void 0 ? void 0 : options.map(function (option) { return (_jsx(MenuItem, __assign({ value: getValueString(option), style: { whiteSpace: 'normal' } }, { children: option.label }), getValueString(option))); }), options === undefined && value && (_jsx(MenuItem, __assign({ value: getValueString(value), style: { whiteSpace: 'normal' } }, { children: (_b = value.label) !== null && _b !== void 0 ? _b : '' }), getValueString(value)))] })));
|
|
236
|
+
: undefined, showIcon: showIcon }, { children: [_jsx(MenuItem, __assign({ value: '', style: { whiteSpace: 'normal' } }, { children: _jsx("em", { children: options ? 'Sin Seleccionar' : 'Cargando...' }) }), 'EMPTY'), options === null || options === void 0 ? void 0 : options.map(function (option) { return (_jsx(MenuItem, __assign({ value: getValueString(option), style: { whiteSpace: 'normal' } }, { children: option.label }), getValueString(option))); }), options === undefined && value && !loading && (_jsx(MenuItem, __assign({ value: getValueString(value), style: { whiteSpace: 'normal' } }, { children: (_b = value.label) !== null && _b !== void 0 ? _b : '' }), getValueString(value)))] })));
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -34,7 +34,7 @@ interface StyleProps {
|
|
|
34
34
|
}
|
|
35
35
|
interface RoundedTextFieldProps extends StyleProps {
|
|
36
36
|
/** The value of the textfield */
|
|
37
|
-
value?:
|
|
37
|
+
value?: string;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
40
|
* Generic textfield with apps designs. Is class do to the use in the react-hook-forms library
|
|
@@ -117,7 +117,8 @@ var useTextfieldStyles = function (props) {
|
|
|
117
117
|
}); });
|
|
118
118
|
};
|
|
119
119
|
function CustomTextfield(_a) {
|
|
120
|
-
var _b
|
|
120
|
+
var _b;
|
|
121
|
+
var _c = _a.focusColor, focusColor = _c === void 0 ? '#3d5a7f' : _c, _d = _a.helperTextColor, helperTextColor = _d === void 0 ? '#989898' : _d, _e = _a.outlineColor, outlineColor = _e === void 0 ? '#0000003b' : _e, _f = _a.backgroundColor, backgroundColor = _f === void 0 ? 'white' : _f, _g = _a.textColor, textColor = _g === void 0 ? '#293241' : _g, _h = _a.readOnly, readOnly = _h === void 0 ? false : _h, _j = _a.borderRadius, borderRadius = _j === void 0 ? 10 : _j, _k = _a.padding, padding = _k === void 0 ? '6px 12px' : _k, _l = _a.fontSize, fontSize = _l === void 0 ? '1rem' : _l, _m = _a.errorColor, errorColor = _m === void 0 ? '#cc2936' : _m, _o = _a.fontWeight, fontWeight = _o === void 0 ? '300' : _o, _p = _a.multiline, multiline = _p === void 0 ? false : _p, _q = _a.cantEdit, cantEdit = _q === void 0 ? false : _q, maxLength = _a.maxLength, value = _a.value, icon = _a.icon, others = __rest(_a, ["focusColor", "helperTextColor", "outlineColor", "backgroundColor", "textColor", "readOnly", "borderRadius", "padding", "fontSize", "errorColor", "fontWeight", "multiline", "cantEdit", "maxLength", "value", "icon"]);
|
|
121
122
|
var classes = useTextfieldStyles({
|
|
122
123
|
padding: padding,
|
|
123
124
|
textColor: textColor,
|
|
@@ -134,7 +135,7 @@ function CustomTextfield(_a) {
|
|
|
134
135
|
cantEdit: cantEdit,
|
|
135
136
|
maxLength: maxLength,
|
|
136
137
|
})();
|
|
137
|
-
var length = maxLength ? value.length : null;
|
|
138
|
+
var length = maxLength ? (_b = value === null || value === void 0 ? void 0 : value.length) !== null && _b !== void 0 ? _b : null : null;
|
|
138
139
|
var inputProps = {
|
|
139
140
|
readOnly: readOnly,
|
|
140
141
|
disabled: cantEdit,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { StoryObj } from '@storybook/react';
|
|
2
|
+
import RoundedTextField from './RoundedTextField';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
component: typeof RoundedTextField;
|
|
5
|
+
tags: string[];
|
|
6
|
+
args: {
|
|
7
|
+
focusColor: string;
|
|
8
|
+
helperTextColor: string;
|
|
9
|
+
outlineColor: string;
|
|
10
|
+
backgroundColor: string;
|
|
11
|
+
textColor: string;
|
|
12
|
+
readOnly: false;
|
|
13
|
+
borderRadius: number;
|
|
14
|
+
padding: string;
|
|
15
|
+
fontSize: string;
|
|
16
|
+
errorColor: string;
|
|
17
|
+
fontWeight: string;
|
|
18
|
+
multiline: false;
|
|
19
|
+
cantEdit: false;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import RoundedTextField from './RoundedTextField';
|
|
2
|
+
// More on how to set up stories at: https://storybook.js.org/docs/writing-stories#default-export
|
|
3
|
+
var meta = {
|
|
4
|
+
component: RoundedTextField,
|
|
5
|
+
tags: ['autodocs'],
|
|
6
|
+
args: {
|
|
7
|
+
focusColor: '#3d5a7f',
|
|
8
|
+
helperTextColor: '#989898',
|
|
9
|
+
outlineColor: '#0000003b',
|
|
10
|
+
backgroundColor: 'white',
|
|
11
|
+
textColor: '#293241',
|
|
12
|
+
readOnly: false,
|
|
13
|
+
borderRadius: 10,
|
|
14
|
+
padding: '6px 12px',
|
|
15
|
+
fontSize: '1rem',
|
|
16
|
+
errorColor: '#cc2936',
|
|
17
|
+
fontWeight: '300',
|
|
18
|
+
multiline: false,
|
|
19
|
+
cantEdit: false,
|
|
20
|
+
},
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
export var Default = {
|
|
24
|
+
args: {},
|
|
25
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { FormStyle } from '../@Types/Form';
|
|
2
|
+
import type { PayloadAction } from '@reduxjs/toolkit';
|
|
3
|
+
import { SiteState } from './SiteStateReducer';
|
|
4
|
+
export interface GlobalState {
|
|
5
|
+
idOrganization: string;
|
|
6
|
+
formStyle: FormStyle;
|
|
7
|
+
/** If the formsteps can be edited (For internal) */
|
|
8
|
+
editable: boolean;
|
|
9
|
+
preview: boolean;
|
|
10
|
+
postview: boolean;
|
|
11
|
+
partial: boolean;
|
|
12
|
+
internal: boolean;
|
|
13
|
+
loaded: boolean;
|
|
14
|
+
}
|
|
15
|
+
export declare const GlobalSlice: import("@reduxjs/toolkit").Slice<GlobalState, {
|
|
16
|
+
reset: (state: import("immer/dist/internal").WritableDraft<GlobalState>, action: PayloadAction<Omit<GlobalState, 'loaded'> & SiteState>) => {
|
|
17
|
+
loaded: true;
|
|
18
|
+
idOrganization: string;
|
|
19
|
+
formStyle: FormStyle;
|
|
20
|
+
editable: boolean;
|
|
21
|
+
preview: boolean;
|
|
22
|
+
postview: boolean;
|
|
23
|
+
partial: boolean;
|
|
24
|
+
internal: boolean;
|
|
25
|
+
dependencies: import("../Form/Form").DependencyStore;
|
|
26
|
+
values: import("./SiteStateReducer").ValuesStore;
|
|
27
|
+
idCurrentSection: string | null;
|
|
28
|
+
previousSections: string[];
|
|
29
|
+
nextSections: string[];
|
|
30
|
+
focusStep?: string | undefined;
|
|
31
|
+
};
|
|
32
|
+
}, "global">;
|
|
33
|
+
export declare const reset: import("@reduxjs/toolkit").ActionCreatorWithPayload<Omit<GlobalState, "loaded"> & SiteState, "global/reset">;
|
|
34
|
+
declare const _default: import("redux").Reducer<GlobalState, import("redux").AnyAction>;
|
|
35
|
+
export default _default;
|