back-testing-react 2.0.13 → 2.0.15
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/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/back-testing-stepper/steps/input-anemometer/input-anemometer.tsx +0 -1
- package/src/components/back-testing-stepper/steps/input-cias/input-cias.tsx +0 -2
- package/src/components/back-testing-stepper/steps/input-proxy/input-proxy.tsx +4 -7
- package/src/components/back-testing-stepper/steps/input-proxy/input-proxy.types.ts +1 -1
package/package.json
CHANGED
|
@@ -346,7 +346,6 @@ const InputAnemometerStep = forwardRef<WizardStep, InputAnemometerStepProps>((pr
|
|
|
346
346
|
<div className="">
|
|
347
347
|
<SelectInput
|
|
348
348
|
disabled={anemometer.anemometerChoice != RadioChoice.DEFAULT}
|
|
349
|
-
onLoad={(e:string|undefined) => updatePayoutOption(anemometer,e)}
|
|
350
349
|
onChange={(e:string) => updatePayoutOption(anemometer,e)}
|
|
351
350
|
defaultValue={payoutOptions && payoutOptions.length > 0 ? anemometer.payoutTableRefId || payoutOptions[0].refId : MISSING_VALUE}
|
|
352
351
|
placeholder="No Payout Tables Defined"
|
|
@@ -529,7 +529,6 @@ const InputCIASStep = forwardRef<WizardStep, InputCIASStepProps>((props,ref) =>
|
|
|
529
529
|
<AccordionDetails>
|
|
530
530
|
<div className="ptop-10 pbot-10">
|
|
531
531
|
<SelectInput
|
|
532
|
-
onLoad={(e:string) => updateCIASShapeOption(cias,e)}
|
|
533
532
|
onChange={(e:string) => updateCIASShapeOption(cias,e)}
|
|
534
533
|
defaultValue={cias.shapeType}
|
|
535
534
|
placeholder="Select shape type"
|
|
@@ -540,7 +539,6 @@ const InputCIASStep = forwardRef<WizardStep, InputCIASStepProps>((props,ref) =>
|
|
|
540
539
|
<div className="ptop-10 pbot-10">
|
|
541
540
|
<SelectInput
|
|
542
541
|
disabled={cias.circle.ciasChoice != RadioChoice.DEFAULT}
|
|
543
|
-
onLoad={(e:string | undefined) => updateLocationOption(cias,cias.circle,e,true)}
|
|
544
542
|
onChange={(e:string) => updateLocationOption(cias,cias.circle,e,false)}
|
|
545
543
|
defaultValue={cias.circle.locationRefId || MISSING_VALUE}
|
|
546
544
|
placeholder="Select a risk location"
|
|
@@ -72,9 +72,7 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
72
72
|
|
|
73
73
|
const handleChange =
|
|
74
74
|
(panel: string, proxy: Proxy) => (event: React.SyntheticEvent, isExpanded: boolean) => {
|
|
75
|
-
console.log("before accordion change")
|
|
76
75
|
setExpanded(isExpanded ? panel : false);
|
|
77
|
-
console.log("after accordion change")
|
|
78
76
|
if(isExpanded){
|
|
79
77
|
setSelectedProxy(proxy);
|
|
80
78
|
} else {
|
|
@@ -163,7 +161,7 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
163
161
|
clonedProxy.latitude = location.latitude;
|
|
164
162
|
clonedProxy.longitude = location.longitude;
|
|
165
163
|
}
|
|
166
|
-
|
|
164
|
+
updateProxy(clonedProxy);
|
|
167
165
|
}
|
|
168
166
|
|
|
169
167
|
function addNewProxy(){
|
|
@@ -177,8 +175,8 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
177
175
|
}
|
|
178
176
|
proxyList.push(newProxy);
|
|
179
177
|
setWizardProxies(proxyList);
|
|
180
|
-
|
|
181
|
-
|
|
178
|
+
setSelectedProxy(newProxy);
|
|
179
|
+
setExpanded('panel'+(newProxy.refId));
|
|
182
180
|
}
|
|
183
181
|
|
|
184
182
|
function deleteProxy(refId: string){
|
|
@@ -412,6 +410,7 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
412
410
|
<div className="ptop-10 pbot-10">
|
|
413
411
|
<SelectInput
|
|
414
412
|
disabled={proxy.proxyChoice != RadioChoice.DEFAULT}
|
|
413
|
+
onLoad={(e:string | undefined) => updateLocationOption(proxy,e)}
|
|
415
414
|
onChange={(e:string) => updateLocationOption(proxy,e)}
|
|
416
415
|
defaultValue={proxy.locationRefId || MISSING_VALUE}
|
|
417
416
|
placeholder="Select a proxy location"
|
|
@@ -426,7 +425,6 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
426
425
|
errorMessage={proxy.latErrorMsg}
|
|
427
426
|
readOnly={proxy.locationRefId != LocationChoice.CUSTOM}
|
|
428
427
|
onChange={(e) => changeLatitude(proxy, e as number)}
|
|
429
|
-
|
|
430
428
|
step={0.00000000001}
|
|
431
429
|
min={-90}/>
|
|
432
430
|
</div>
|
|
@@ -460,7 +458,6 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
|
|
|
460
458
|
<div className="">
|
|
461
459
|
<SelectInput
|
|
462
460
|
disabled={proxy.proxyChoice != RadioChoice.DEFAULT}
|
|
463
|
-
onLoad={(e:string|undefined) => updatePayoutOption(proxy,e)}
|
|
464
461
|
onChange={(e:string) => updatePayoutOption(proxy,e)}
|
|
465
462
|
defaultValue={payoutOptions && payoutOptions.length > 0 ? proxy.payoutTableRefId || payoutOptions[0].refId : MISSING_VALUE}
|
|
466
463
|
placeholder="No Payout Tables Defined"
|
|
@@ -32,7 +32,7 @@ export function generateNewProxy(latitude:number|undefined,longitude:number|unde
|
|
|
32
32
|
longitude:longitude,
|
|
33
33
|
lngError:false,
|
|
34
34
|
lngErrorMsg:"",
|
|
35
|
-
proxyChoice:
|
|
35
|
+
proxyChoice:RadioChoice.DEFAULT,
|
|
36
36
|
payoutTableRefId:undefined,
|
|
37
37
|
file:undefined,
|
|
38
38
|
fileError:false,
|