@arquimedes.co/eureka-forms 1.9.128-test → 1.9.128
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App.js +2 -2
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.d.ts +15 -0
- package/dist/FormComponents/Form/ColumnForm/ColumnForm.js +411 -0
- package/dist/{Form → FormComponents/Form}/ConfirmationDialog/ConfirmationDialog.d.ts +1 -1
- package/dist/{Form → FormComponents/Form}/Form.d.ts +8 -19
- package/dist/FormComponents/Form/Form.js +147 -0
- package/dist/{Form/FormTypes → FormComponents/Form}/StepperForm/StepperForm.d.ts +1 -1
- package/dist/{Form → FormComponents}/Section/MaterialSection/MaterialSection.js +1 -1
- package/dist/{Form → FormComponents}/Section/Section.d.ts +4 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRElementStep/CBRElementStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRElementStep/CBRElementStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/CBRIncidentsStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/AYFStepMapper.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/AYFStepMapper.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/ApiSelectorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/ApiSelectorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.js +4 -4
- package/dist/{FormSteps → FormComponents/Step}/CBRStepMapper.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CBRStepMapper.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/CheckBoxStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/CheckBoxStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/ClassifierSelectorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/ClassifierSelectorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/CollapsibleStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/CollapsibleStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/DatePickerStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/DatePickerStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/EntityValuePickerStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/EntityValuePickerStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.js +4 -4
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/FileUploadStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/FileUploadStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.js +4 -4
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MapperStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MapperStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/MapperElement.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/MaterialMapperStep.js +6 -6
- package/dist/{FormSteps → FormComponents/Step}/RatingStep/MaterialRatingStep/MaterialRatingStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/RatingStep/RatingStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/RatingStep/RatingStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.js +2 -2
- package/dist/{FormSteps → FormComponents/Step}/SelectorStep/SelectorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SelectorStep/SelectorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/SeparatorStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/SeparatorStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/SmartSelectStep.d.ts +4 -4
- package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/SmartSelectStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/Step.d.ts +2 -2
- package/dist/{FormSteps → FormComponents/Step}/Step.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/StepFunctions.d.ts +2 -2
- package/dist/{FormSteps → FormComponents/Step}/StepFunctions.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/TextAreaStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/TextAreaStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextInputStep/TextInputStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TextInputStep/TextInputStep.js +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TitleStep/TitleStep.d.ts +1 -1
- package/dist/{FormSteps → FormComponents/Step}/TitleStep/TitleStep.js +1 -1
- package/dist/{Form/Terms → FormComponents}/Term/MaterialTerm/MaterialTerm.js +2 -2
- package/dist/{Form/Terms → FormComponents}/Term/Term.d.ts +1 -1
- package/dist/{Form/Terms → FormComponents}/Term/Term.js +1 -1
- package/dist/index.lib.d.ts +2 -2
- package/dist/index.lib.js +1 -1
- package/dist/shared/RoundedDatePicker/RoundedDatePicker.js +1 -1
- package/package.json +1 -1
- package/dist/Form/Form.js +0 -264
- package/dist/Form/FormFunctions.d.ts +0 -6
- package/dist/Form/FormFunctions.js +0 -201
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.d.ts +0 -4
- package/dist/Form/FormTypes/ColumnForm/ColumnForm.js +0 -106
- package/dist/Form/Terms/Terms.d.ts +0 -4
- package/dist/Form/Terms/Terms.js +0 -37
- /package/dist/{Form/FormTypes → FormComponents/Form}/ColumnForm/ColumnForm.module.css +0 -0
- /package/dist/{Form → FormComponents/Form}/ConfirmationDialog/ConfirmationDialog.js +0 -0
- /package/dist/{Form → FormComponents/Form}/ConfirmationDialog/ConfirmationDialog.module.css +0 -0
- /package/dist/{Form → FormComponents/Form}/Form.module.css +0 -0
- /package/dist/{Form/FormTypes → FormComponents/Form}/StepperForm/StepperForm.js +0 -0
- /package/dist/{Form/FormTypes → FormComponents/Form}/StepperForm/StepperForm.module.css +0 -0
- /package/dist/{Form → FormComponents}/Section/MaterialSection/MaterialSection.d.ts +0 -0
- /package/dist/{Form → FormComponents}/Section/MaterialSection/MaterialSection.module.css +0 -0
- /package/dist/{Form → FormComponents}/Section/Section.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/Incident/Incident.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/MaterialCBRIncidentsStep/MaterialCBRIncidentsStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ApiSelectorStep/MaterialApiSelectorStep/MaterialApiSelectorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CheckBoxStep/MaterialCheckBoxStep/MaterialCheckBoxStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/MaterialClassifierSelectorStep/MaterialClassifierSelectorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/CollapsibleStep/MaterialTitleStep/MaterialCollapsibleStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/DatePickerStep/MaterialDatePickerStep/MaterialDatePickerStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/EntityValueStep/MaterialEntityValuePickerStep/MaterialEntityValuePickerStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/FileComponent/FileComponent.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/FileUploadStep/MaterialFileUploadStep/MaterialFileUploadStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/ListMapperElement/ListMapperElement.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/MapperElement.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/Element/PillMapperElement/PillMapperElement.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/MaterialMapperStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/MaterialMapperStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/RatingStep/MaterialRatingStep/MaterialRatingStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/RatingStep/MaterialRatingStep/MaterialRatingStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SelectorStep/MaterialSelectorStep/MaterialSelectorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SeparatorStep/MaterialSeparatorStep/MaterialSeparatorStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/DraftEditor.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextAreaStep/MaterialTextAreaStep/MaterialTextAreaStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TextInputStep/MaterialTextInputStep/MaterialTextInputStep.module.css +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.d.ts +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.js +0 -0
- /package/dist/{FormSteps → FormComponents/Step}/TitleStep/MaterialTitleStep/MaterialTitleStep.module.css +0 -0
- /package/dist/{Form/Terms → FormComponents}/Term/MaterialTerm/MaterialTerm.d.ts +0 -0
- /package/dist/{Form/Terms → FormComponents}/Term/MaterialTerm/MaterialTerm.module.css +0 -0
|
@@ -22,7 +22,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { createElement as _createElement } from "react";
|
|
25
|
-
import StepComponent from '
|
|
25
|
+
import StepComponent from '../../Step/Step';
|
|
26
26
|
import styles from './MaterialSection.module.css';
|
|
27
27
|
function MaterialSection(_a) {
|
|
28
28
|
var _b;
|
|
@@ -3,7 +3,8 @@ import { Control, FieldValues, UseFormGetValues } from 'react-hook-form';
|
|
|
3
3
|
import { Organization } from '../../@Types';
|
|
4
4
|
import { Form, FormStyle, Section } from '../../@Types/Form';
|
|
5
5
|
import { CustomStep } from '../../App';
|
|
6
|
-
import {
|
|
6
|
+
import { WidthStats } from '../Form/Form';
|
|
7
|
+
import { DependencyStore } from '../Form/ColumnForm/ColumnForm';
|
|
7
8
|
export interface RecursiveData {
|
|
8
9
|
form: Form;
|
|
9
10
|
organization: Organization;
|
|
@@ -33,6 +34,8 @@ export interface SectionComponentProps extends RecursiveData {
|
|
|
33
34
|
/** The custom send label to display */
|
|
34
35
|
sendLabel?: string;
|
|
35
36
|
section: Section;
|
|
37
|
+
setSections: Function;
|
|
38
|
+
index: number;
|
|
36
39
|
}
|
|
37
40
|
declare function SectionComponent(props: SectionComponentProps): JSX.Element;
|
|
38
41
|
export default SectionComponent;
|
package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRElementStep/CBRElementStep.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { StepProps } from '../../Step';
|
|
3
|
-
import { CBRElementStep } from '
|
|
3
|
+
import { CBRElementStep } from '../../../../@Types/CBRFormStep';
|
|
4
4
|
declare function CBRElementStepComponent(props: ElementSubStepRendererProps): JSX.Element;
|
|
5
5
|
export default CBRElementStepComponent;
|
|
6
6
|
export interface ElementSubStepRendererProps extends Omit<StepProps, 'step'> {
|
package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRElementStep/CBRElementStep.js
RENAMED
|
@@ -47,9 +47,9 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
49
|
import SmartSelectStep from '../../SmartSelectStep/SmartSelectStep';
|
|
50
|
-
import CBRFormStepTypes from '
|
|
50
|
+
import CBRFormStepTypes from '../../../../constants/CBRFormStepTypes';
|
|
51
51
|
import axios from 'axios';
|
|
52
|
-
import InputIcon from '
|
|
52
|
+
import InputIcon from '../../../../shared/InputIcon/InputIcon';
|
|
53
53
|
function CBRElementStepComponent(props) {
|
|
54
54
|
return (_jsx(SmartSelectStep, __assign({}, props, { step: props.step, icon: _jsx(InputIcon, { icon: 'LEAK' }), getOptions: getElementOptions, getOptionSelected: function (option, value) {
|
|
55
55
|
return option.id === value.id;
|
package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/CBRIncidentsStep.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CBRIncidentsStep as CBRIncidentsStepType } from '
|
|
2
|
+
import { CBRIncidentsStep as CBRIncidentsStepType } from '../../../../@Types/CBRFormStep';
|
|
3
3
|
import { StepProps } from '../../Step';
|
|
4
4
|
export interface CBRIncidentsStepProps extends Omit<StepProps, 'step'> {
|
|
5
5
|
/** The CBRIncidentsStep to display */
|
package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRIncidentsStep/CBRIncidentsStep.js
RENAMED
|
@@ -10,7 +10,7 @@ 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 { FormStyleTypes } from '
|
|
13
|
+
import { FormStyleTypes } from '../../../../constants/FormStepTypes';
|
|
14
14
|
import MaterialCBRIncidentsStep from './MaterialCBRIncidentsStep/MaterialCBRIncidentsStep';
|
|
15
15
|
function CBRIncidentsStep(props) {
|
|
16
16
|
switch (props.formStyle.type) {
|
|
@@ -33,11 +33,11 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
33
33
|
/* eslint-disable no-console */
|
|
34
34
|
import { useEffect, useState } from 'react';
|
|
35
35
|
import { Controller } from 'react-hook-form';
|
|
36
|
-
import CBRFormStepTypes from '
|
|
36
|
+
import CBRFormStepTypes from '../../../../../constants/CBRFormStepTypes';
|
|
37
37
|
import IncidentComponent from './Incident/Incident';
|
|
38
38
|
import styles from './MaterialCBRIncidentsStep.module.css';
|
|
39
39
|
import { nanoid } from 'nanoid';
|
|
40
|
-
import RoundedButton from '
|
|
40
|
+
import RoundedButton from '../../../../../shared/RoundedButton/RoundedButton';
|
|
41
41
|
function Incidents(_a) {
|
|
42
42
|
var step = _a.step, form = _a.form, btnRef = _a.btnRef, editable = _a.editable, postview = _a.postview, onChange = _a.onChange, incidents = _a.incidents, formStyle = _a.formStyle, dependencyStore = _a.dependencyStore, setDependencyStore = _a.setDependencyStore, others = __rest(_a, ["step", "form", "btnRef", "editable", "postview", "onChange", "incidents", "formStyle", "dependencyStore", "setDependencyStore"]);
|
|
43
43
|
/** Form to pass down with aditional steps */
|
package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.d.ts
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { StepProps } from '../../Step';
|
|
3
|
-
import { CBRPropertyStep } from '
|
|
3
|
+
import { CBRPropertyStep } from '../../../../@Types/CBRFormStep';
|
|
4
4
|
export interface PropertyRendererProps extends Omit<StepProps, 'step'> {
|
|
5
5
|
step: CBRPropertyStep;
|
|
6
6
|
}
|
package/dist/{FormSteps → FormComponents/Step}/@Construction/CBRPropertyStep/CBRPropertyStep.js
RENAMED
|
@@ -53,8 +53,8 @@ import WarningRoundedIcon from '@material-ui/icons/WarningRounded';
|
|
|
53
53
|
import axios from 'axios';
|
|
54
54
|
import React, { useState } from 'react';
|
|
55
55
|
import { Dialog } from '@material-ui/core';
|
|
56
|
-
import RoundedButton from '
|
|
57
|
-
import InputIcon from '
|
|
56
|
+
import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
|
|
57
|
+
import InputIcon from '../../../../shared/InputIcon/InputIcon';
|
|
58
58
|
var baseUrl = "https://integrations.".concat(process.env.REACT_APP_DOMAIN, "/sinco/cbr/");
|
|
59
59
|
function CBRPropertyStepComponent(props) {
|
|
60
60
|
var _this = this;
|
|
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
-
import AYFFormStepTypes from '
|
|
49
|
+
import AYFFormStepTypes from '../../constants/AYFFormStepTypes';
|
|
50
50
|
import TextInputStep from './TextInputStep/TextInputStep';
|
|
51
51
|
import SmartSelectStep from './SmartSelectStep/SmartSelectStep';
|
|
52
52
|
import CalendarTodayRoundedIcon from '@material-ui/icons/CalendarTodayRounded';
|
|
@@ -21,7 +21,7 @@ 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 { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialApiSelectorStep from './MaterialApiSelectorStep/MaterialApiSelectorStep';
|
|
26
26
|
function ApiSelectorStep(_a) {
|
|
27
27
|
var props = __rest(_a, []);
|
|
@@ -59,15 +59,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
59
59
|
import { createElement as _createElement } from "react";
|
|
60
60
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
61
61
|
import React, { useEffect, useState } from 'react';
|
|
62
|
-
import FormStepTypes, { ApiSelectorOptionTypes, ApiSelectorParamTypes, } from '
|
|
62
|
+
import FormStepTypes, { ApiSelectorOptionTypes, ApiSelectorParamTypes, } from '../../../../constants/FormStepTypes';
|
|
63
63
|
import styles from './MaterialApiSelectorStep.module.css';
|
|
64
64
|
import StepComponent from '../../Step';
|
|
65
65
|
import { Controller } from 'react-hook-form';
|
|
66
66
|
import { calcFillerSize } from '../../StepFunctions';
|
|
67
67
|
import { SmartSelect } from '../../SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep';
|
|
68
|
-
import widgetInstance from '
|
|
69
|
-
import axiosInstance from '
|
|
70
|
-
import InputIcon from '
|
|
68
|
+
import widgetInstance from '../../../../AxiosWidget';
|
|
69
|
+
import axiosInstance from '../../../../AxiosAPI';
|
|
70
|
+
import InputIcon from '../../../../shared/InputIcon/InputIcon';
|
|
71
71
|
function ApiSelector(_a) {
|
|
72
72
|
var _this = this;
|
|
73
73
|
var step = _a.step, form = _a.form, level = _a.level, value = _a.value, control = _a.control, editable = _a.editable, postview = _a.postview, inputRef = _a.inputRef, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "value", "control", "editable", "postview", "inputRef", "getValues", "widthStats", "handleSizeChange"]);
|
|
@@ -46,7 +46,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
49
|
-
import CBRFormStepTypes from '
|
|
49
|
+
import CBRFormStepTypes from '../../constants/CBRFormStepTypes';
|
|
50
50
|
import PersonRoundedIcon from '@material-ui/icons/PersonRounded';
|
|
51
51
|
import TextInputStep from './TextInputStep/TextInputStep';
|
|
52
52
|
import SmartSelectStep from './SmartSelectStep/SmartSelectStep';
|
|
@@ -55,7 +55,7 @@ import CBRIncidentsStep from './@Construction/CBRIncidentsStep/CBRIncidentsStep'
|
|
|
55
55
|
import CBRElementStep from './@Construction/CBRElementStep/CBRElementStep';
|
|
56
56
|
import axios from 'axios';
|
|
57
57
|
import CBRPropertyStep from './@Construction/CBRPropertyStep/CBRPropertyStep';
|
|
58
|
-
import InputIcon from '
|
|
58
|
+
import InputIcon from '../../shared/InputIcon/InputIcon';
|
|
59
59
|
var baseUrl = "https://integrations.".concat(process.env.REACT_APP_DOMAIN, "/sinco/cbr/");
|
|
60
60
|
function CBRStepMapper(props) {
|
|
61
61
|
var _this = this;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { CheckBox } from '
|
|
2
|
+
import { CheckBox } from '../../../@Types/FormStep';
|
|
3
3
|
import { StepProps } from '../Step';
|
|
4
4
|
export interface CheckBoxStepProps extends StepProps {
|
|
5
5
|
/** The CheckboxStep to display */
|
|
@@ -21,7 +21,7 @@ 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 { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialCheckBoxStep from './MaterialCheckBoxStep/MaterialCheckBoxStep';
|
|
26
26
|
function CheckboxStep(_a) {
|
|
27
27
|
var formStyle = _a.formStyle, others = __rest(_a, ["formStyle"]);
|
|
@@ -24,7 +24,7 @@ import { createElement as _createElement } from "react";
|
|
|
24
24
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
25
25
|
import styles from './MaterialCheckBoxStep.module.css';
|
|
26
26
|
import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
|
|
27
|
-
import RoundedCheckBox from '
|
|
27
|
+
import RoundedCheckBox from '../../../../shared/RoundedCheckBox/RoundedCheckBox';
|
|
28
28
|
import { Controller } from 'react-hook-form';
|
|
29
29
|
import React, { useState } from 'react';
|
|
30
30
|
import StepComponent from '../../Step';
|
package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/ClassifierSelectorStep.d.ts
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ClassifierSelector } from '
|
|
2
|
+
import { ClassifierSelector } from '../../../@Types/FormStep';
|
|
3
3
|
import { StepProps } from '../Step';
|
|
4
4
|
export interface ClassifierSelectorStepProps extends StepProps {
|
|
5
5
|
/** The ClassifierSelectorStep to display */
|
package/dist/{FormSteps → FormComponents/Step}/ClassifierSelectorStep/ClassifierSelectorStep.js
RENAMED
|
@@ -21,7 +21,7 @@ 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 { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialClassifierSelectorStep from './MaterialClassifierSelectorStep/MaterialClassifierSelectorStep';
|
|
26
26
|
function ClassifierSelectorStep(_a) {
|
|
27
27
|
var formStyle = _a.formStyle, others = __rest(_a, ["formStyle"]);
|
|
@@ -23,12 +23,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { createElement as _createElement } from "react";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
import React, { useState } from 'react';
|
|
26
|
-
import { ClassifierOptionTypes } from '
|
|
26
|
+
import { ClassifierOptionTypes } from '../../../../constants/FormStepTypes';
|
|
27
27
|
import styles from './MaterialClassifierSelectorStep.module.css';
|
|
28
28
|
import StepComponent from '../../Step';
|
|
29
29
|
import { Controller } from 'react-hook-form';
|
|
30
30
|
import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
|
|
31
|
-
import RoundedSmartSelect from '
|
|
31
|
+
import RoundedSmartSelect from '../../../../shared/RoundedSmartSelect/RoundedSmartSelect';
|
|
32
32
|
function ClassifierSelector(_a) {
|
|
33
33
|
var _b, _c;
|
|
34
34
|
var step = _a.step, form = _a.form, level = _a.level, errors = _a.errors, value = _a.value, onBlur = _a.onBlur, control = _a.control, editable = _a.editable, onChange = _a.onChange, postview = _a.postview, inputRef = _a.inputRef, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "errors", "value", "onBlur", "control", "editable", "onChange", "postview", "inputRef", "formStyle", "getValues", "widthStats", "handleSizeChange"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Collapsible } from '
|
|
2
|
+
import { Collapsible } from '../../../@Types/FormStep';
|
|
3
3
|
import { StepProps } from '../Step';
|
|
4
4
|
export interface CollapsibleStepProps extends StepProps {
|
|
5
5
|
/** The CollapsibleStep to display */
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
return t;
|
|
22
22
|
};
|
|
23
23
|
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
24
|
-
import { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialCollapsibleStep from './MaterialTitleStep/MaterialCollapsibleStep';
|
|
26
26
|
function CollapsibleStep(_a) {
|
|
27
27
|
var step = _a.step, formStyle = _a.formStyle, others = __rest(_a, ["step", "formStyle"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { DatePicker } from '
|
|
2
|
+
import { DatePicker } from '../../../@Types/FormStep';
|
|
3
3
|
import { StepProps } from '../Step';
|
|
4
4
|
export interface DatePickerStepProps extends StepProps {
|
|
5
5
|
/** The DatePickerStep to display */
|
|
@@ -10,7 +10,7 @@ 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 { FormStyleTypes } from '
|
|
13
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
14
|
import MaterialDatePickerStep from './MaterialDatePickerStep/MaterialDatePickerStep';
|
|
15
15
|
function DatePickerStep(props) {
|
|
16
16
|
switch (props.formStyle.type) {
|
|
@@ -23,7 +23,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import styles from './MaterialDatePickerStep.module.css';
|
|
25
25
|
import { Controller } from 'react-hook-form';
|
|
26
|
-
import RoundedDatePicker from '
|
|
26
|
+
import RoundedDatePicker from '../../../../shared/RoundedDatePicker/RoundedDatePicker';
|
|
27
27
|
import { calcStepWidth } from '../../StepFunctions';
|
|
28
28
|
function DatePickerStep(_a) {
|
|
29
29
|
var step = _a.step, form = _a.form, errors = _a.errors, control = _a.control, editable = _a.editable, postview = _a.postview, formStyle = _a.formStyle, widthStats = _a.widthStats, _b = _a.defaultValue, defaultValue = _b === void 0 ? null : _b;
|
|
@@ -21,7 +21,7 @@ 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 { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialEntityValuePickerStep from './MaterialEntityValuePickerStep/MaterialEntityValuePickerStep';
|
|
26
26
|
function EntityValuePickerStep(_a) {
|
|
27
27
|
var props = __rest(_a, []);
|
|
@@ -59,15 +59,15 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
59
59
|
import { createElement as _createElement } from "react";
|
|
60
60
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
61
61
|
import React, { useEffect, useState } from 'react';
|
|
62
|
-
import FormStepTypes, { EntityValueDataTypes, EntityValueOptionTypes, } from '
|
|
62
|
+
import FormStepTypes, { EntityValueDataTypes, EntityValueOptionTypes, } from '../../../../constants/FormStepTypes';
|
|
63
63
|
import styles from './MaterialEntityValuePickerStep.module.css';
|
|
64
64
|
import StepComponent from '../../Step';
|
|
65
65
|
import { Controller } from 'react-hook-form';
|
|
66
66
|
import { calcFillerSize } from '../../StepFunctions';
|
|
67
67
|
import { SmartSelect } from '../../SmartSelectStep/MaterialSmartSelectStep/MaterialSmartSelectStep';
|
|
68
|
-
import widgetInstance from '
|
|
69
|
-
import axiosInstance from '
|
|
70
|
-
import InputIcon from '
|
|
68
|
+
import widgetInstance from '../../../../AxiosWidget';
|
|
69
|
+
import axiosInstance from '../../../../AxiosAPI';
|
|
70
|
+
import InputIcon from '../../../../shared/InputIcon/InputIcon';
|
|
71
71
|
function EntityValuePicker(_a) {
|
|
72
72
|
var _this = this;
|
|
73
73
|
var step = _a.step, form = _a.form, level = _a.level, value = _a.value, control = _a.control, editable = _a.editable, postview = _a.postview, inputRef = _a.inputRef, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, others = __rest(_a, ["step", "form", "level", "value", "control", "editable", "postview", "inputRef", "getValues", "widthStats", "handleSizeChange"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FileUpload } from '
|
|
2
|
+
import { FileUpload } from '../../../@Types/FormStep';
|
|
3
3
|
import { StepProps } from '../Step';
|
|
4
4
|
export interface FileUploadStepProps extends StepProps {
|
|
5
5
|
/** The FileUploadStep to display */
|
|
@@ -10,7 +10,7 @@ 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 { FormStyleTypes } from '
|
|
13
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
14
|
import MaterialFileUploadStep from './MaterialFileUploadStep/MaterialFileUploadStep';
|
|
15
15
|
function FileUploadStep(props) {
|
|
16
16
|
switch (props.formStyle.type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { FileObject, UploadedFileObject } from '../MaterialFileUploadStep';
|
|
3
|
-
import { FormStyle } from '
|
|
3
|
+
import { FormStyle } from '../../../../../@Types/Form';
|
|
4
4
|
interface FileComponentProps {
|
|
5
5
|
file: FileObject | UploadedFileObject;
|
|
6
6
|
formStyle: FormStyle;
|
|
@@ -51,7 +51,7 @@ import styles from './FileComponent.module.css';
|
|
|
51
51
|
import ClearRoundedIcon from '@material-ui/icons/ClearRounded';
|
|
52
52
|
import DescriptionRoundedIcon from '@material-ui/icons/DescriptionRounded';
|
|
53
53
|
import ErrorRoundedIcon from '@material-ui/icons/ErrorRounded';
|
|
54
|
-
import Loader from '
|
|
54
|
+
import Loader from '../../../../../shared/Loader/Loader';
|
|
55
55
|
import { useState } from 'react';
|
|
56
56
|
function FileUploadComponent(_a) {
|
|
57
57
|
var _this = this;
|
|
@@ -68,12 +68,12 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
68
68
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
69
69
|
import styles from './MaterialFileUploadStep.module.css';
|
|
70
70
|
import { Controller } from 'react-hook-form';
|
|
71
|
-
import RoundedButton from '
|
|
71
|
+
import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
|
|
72
72
|
import { useEffect, useRef, useState } from 'react';
|
|
73
|
-
import { getAcceptedExtensions } from '
|
|
74
|
-
import { getUploadUrls, postFile } from '
|
|
73
|
+
import { getAcceptedExtensions } from '../../../../constants/Files/FileExtensions';
|
|
74
|
+
import { getUploadUrls, postFile } from '../../../../controllers/FileService';
|
|
75
75
|
import FileComponent from './FileComponent/FileComponent';
|
|
76
|
-
import maxSize from '
|
|
76
|
+
import maxSize from '../../../../constants/Files/FileMaxSize';
|
|
77
77
|
export function isUploadedFileObject(file) {
|
|
78
78
|
return file.state === undefined && file.S3Key !== undefined;
|
|
79
79
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Mapper } from '
|
|
2
|
+
import { Mapper } from '../../../@Types/FormStep';
|
|
3
3
|
import { MapperElement } from './MaterialMapperStep/MaterialMapperStep';
|
|
4
4
|
import { StepProps } from '../Step';
|
|
5
5
|
interface CustomMapperElementModifiers<Type> {
|
|
@@ -21,7 +21,7 @@ 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 { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialMapperStep from './MaterialMapperStep/MaterialMapperStep';
|
|
26
26
|
function MapperStep(_a) {
|
|
27
27
|
var step = _a.step, formStyle = _a.formStyle, others = __rest(_a, ["step", "formStyle"]);
|
|
@@ -12,7 +12,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
import { createElement as _createElement } from "react";
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
14
14
|
import StepComponent from '../../../Step';
|
|
15
|
-
import { MapperStyleTypes } from '
|
|
15
|
+
import { MapperStyleTypes } from '../../../../../constants/FormStepTypes';
|
|
16
16
|
import ListMapperElement from './ListMapperElement/ListMapperElement';
|
|
17
17
|
import PillMapperElement from './PillMapperElement/PillMapperElement';
|
|
18
18
|
import React from 'react';
|
package/dist/{FormSteps → FormComponents/Step}/MapperStep/MaterialMapperStep/MaterialMapperStep.js
RENAMED
|
@@ -34,14 +34,14 @@ import { createElement as _createElement } from "react";
|
|
|
34
34
|
import React, { useState, useEffect, cloneElement } from 'react';
|
|
35
35
|
import styles from './MaterialMapperStep.module.css';
|
|
36
36
|
import { Controller } from 'react-hook-form';
|
|
37
|
-
import StepTypes, { ClassifierOptionTypes, EntityValueDataTypes, EntityValueOptionTypes, MapperStyleTypes, OptionTypes, } from '
|
|
38
|
-
import RoundedButton from '
|
|
37
|
+
import StepTypes, { ClassifierOptionTypes, EntityValueDataTypes, EntityValueOptionTypes, MapperStyleTypes, OptionTypes, } from '../../../../constants/FormStepTypes';
|
|
38
|
+
import RoundedButton from '../../../../shared/RoundedButton/RoundedButton';
|
|
39
39
|
import { nanoid } from 'nanoid';
|
|
40
|
+
import { calcStepDependencyValue, } from '../../../Form/ColumnForm/ColumnForm';
|
|
40
41
|
import MapperElementComponent from './Element/MapperElement';
|
|
41
|
-
import AYFFormStepTypes from '
|
|
42
|
-
import CBRFormStepTypes from '
|
|
43
|
-
import { addInitialMapper } from '
|
|
44
|
-
import { calcStepDependencyValue } from '../../../Form/FormFunctions';
|
|
42
|
+
import AYFFormStepTypes from '../../../../constants/AYFFormStepTypes';
|
|
43
|
+
import CBRFormStepTypes from '../../../../constants/CBRFormStepTypes';
|
|
44
|
+
import { addInitialMapper } from '../../../../App';
|
|
45
45
|
export function ElementsComponent(_a) {
|
|
46
46
|
var _b, _c;
|
|
47
47
|
var step = _a.step, form = _a.form, errors = _a.errors, inputRef = _a.inputRef, editable = _a.editable, postview = _a.postview, elements = _a.elements, formStyle = _a.formStyle, customAdd = _a.customAdd, _d = _a.loading, loading = _d === void 0 ? false : _d, dependencyStore = _a.dependencyStore, setDependencyStore = _a.setDependencyStore, others = __rest(_a, ["step", "form", "errors", "inputRef", "editable", "postview", "elements", "formStyle", "customAdd", "loading", "dependencyStore", "setDependencyStore"]);
|
package/dist/{FormSteps → FormComponents/Step}/RatingStep/MaterialRatingStep/MaterialRatingStep.js
RENAMED
|
@@ -25,8 +25,8 @@ import { createElement as _createElement } from "react";
|
|
|
25
25
|
import styles from './MaterialRatingStep.module.css';
|
|
26
26
|
import { Controller } from 'react-hook-form';
|
|
27
27
|
import React from 'react';
|
|
28
|
-
import Rating from '
|
|
29
|
-
import { RatingTypes } from '
|
|
28
|
+
import Rating from '../../../../shared/Rating/Rating';
|
|
29
|
+
import { RatingTypes } from '../../../../constants/FormStepTypes';
|
|
30
30
|
import StepComponent from '../../Step';
|
|
31
31
|
function MaterialRatingStep(_a) {
|
|
32
32
|
var _b, _c, _d, _e, _f;
|
|
@@ -10,7 +10,7 @@ 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 { FormStyleTypes } from '
|
|
13
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
14
|
import MaterialRatingStep from './MaterialRatingStep/MaterialRatingStep';
|
|
15
15
|
function RatingStep(props) {
|
|
16
16
|
switch (props.formStyle.type) {
|
|
@@ -23,12 +23,12 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { createElement as _createElement } from "react";
|
|
24
24
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
25
25
|
import React, { useState } from 'react';
|
|
26
|
-
import { OptionTypes } from '
|
|
26
|
+
import { OptionTypes } from '../../../../constants/FormStepTypes';
|
|
27
27
|
import styles from './MaterialSelectorStep.module.css';
|
|
28
28
|
import StepComponent from '../../Step';
|
|
29
29
|
import { calcFillerSize, calcStepWidth } from '../../StepFunctions';
|
|
30
30
|
import { Controller } from 'react-hook-form';
|
|
31
|
-
import RoundedSmartSelect from '
|
|
31
|
+
import RoundedSmartSelect from '../../../../shared/RoundedSmartSelect/RoundedSmartSelect';
|
|
32
32
|
function Selector(_a) {
|
|
33
33
|
var step = _a.step, form = _a.form, value = _a.value, level = _a.level, onBlur = _a.onBlur, control = _a.control, editable = _a.editable, onChange = _a.onChange, postview = _a.postview, formStyle = _a.formStyle, getValues = _a.getValues, widthStats = _a.widthStats, handleSizeChange = _a.handleSizeChange, errors = _a.errors, inputRef = _a.inputRef, others = __rest(_a, ["step", "form", "value", "level", "onBlur", "control", "editable", "onChange", "postview", "formStyle", "getValues", "widthStats", "handleSizeChange", "errors", "inputRef"]);
|
|
34
34
|
var _b = useState(level === 0
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FormSelector } from '
|
|
2
|
+
import { FormSelector } from '../../../@Types/FormStep';
|
|
3
3
|
import { StepProps } from '../Step';
|
|
4
4
|
export interface SelectorStepProps extends StepProps {
|
|
5
5
|
/** The SelectorStep to display */
|
|
@@ -21,7 +21,7 @@ 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 { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialSelectorStep from './MaterialSelectorStep/MaterialSelectorStep';
|
|
26
26
|
function SelectorStep(_a) {
|
|
27
27
|
var formStyle = _a.formStyle, others = __rest(_a, ["formStyle"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { Separator } from '
|
|
2
|
+
import { Separator } from '../../../@Types/FormStep';
|
|
3
3
|
import { StepProps } from '../Step';
|
|
4
4
|
export interface SeparatorStepProps extends StepProps {
|
|
5
5
|
/** The TitleStep to display */
|
|
@@ -21,7 +21,7 @@ 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 { FormStyleTypes } from '
|
|
24
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
25
25
|
import MaterialSeparatorStep from './MaterialSeparatorStep/MaterialSeparatorStep';
|
|
26
26
|
function SeparatorStep(_a) {
|
|
27
27
|
var step = _a.step, formStyle = _a.formStyle, others = __rest(_a, ["step", "formStyle"]);
|
|
@@ -69,7 +69,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
69
69
|
import styles from './MaterialSmartSelectStep.module.css';
|
|
70
70
|
import { Controller } from 'react-hook-form';
|
|
71
71
|
import { calcStepWidth } from '../../StepFunctions';
|
|
72
|
-
import RoundedSmartSelect from '
|
|
72
|
+
import RoundedSmartSelect from '../../../../shared/RoundedSmartSelect/RoundedSmartSelect';
|
|
73
73
|
import { cloneElement, useEffect, useState } from 'react';
|
|
74
74
|
import React from 'react';
|
|
75
75
|
export function SmartSelect(_a) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { StepProps } from '../Step';
|
|
3
|
-
import { GSmartSelect } from '
|
|
4
|
-
import { Organization } from '
|
|
5
|
-
import { FormStep } from '
|
|
6
|
-
import { DependencyStore } from '../../Form/
|
|
3
|
+
import { GSmartSelect } from '../../../@Types/GenericFormSteps';
|
|
4
|
+
import { Organization } from '../../../@Types';
|
|
5
|
+
import { FormStep } from '../../../@Types/FormStep';
|
|
6
|
+
import { DependencyStore } from '../../Form/ColumnForm/ColumnForm';
|
|
7
7
|
export interface SmartSelectStepProps extends Omit<StepProps, 'step'> {
|
|
8
8
|
/** The SmartSelectStep to display */
|
|
9
9
|
step: GSmartSelect;
|
|
@@ -10,7 +10,7 @@ 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 { FormStyleTypes } from '
|
|
13
|
+
import { FormStyleTypes } from '../../../constants/FormStepTypes';
|
|
14
14
|
import MaterialSmartSelectStep from './MaterialSmartSelectStep/MaterialSmartSelectStep';
|
|
15
15
|
function SmartSelectStep(props) {
|
|
16
16
|
switch (props.formStyle.type) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FormStep } from '
|
|
3
|
-
import { RecursiveData } from '../
|
|
2
|
+
import { FormStep } from '../../@Types/FormStep';
|
|
3
|
+
import { RecursiveData } from '../Section/Section';
|
|
4
4
|
export interface StepProps extends RecursiveData {
|
|
5
5
|
step: FormStep;
|
|
6
6
|
handleSizeChange?: Function;
|