back-testing-react 2.0.14 → 2.0.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "back-testing-react",
3
- "version": "2.0.14",
3
+ "version": "2.0.16",
4
4
  "type": "module",
5
5
  "description": "Parametric back testing application developed by NormanMax Insurance Solutions",
6
6
  "main": "dist/index.js",
@@ -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
- //updateProxy(clonedProxy);
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
- //setSelectedProxy(newProxy);
181
- //setExpanded('panel'+(newProxy.refId));
178
+ setSelectedProxy(newProxy);
179
+ setExpanded('panel'+(newProxy.refId));
182
180
  }
183
181
 
184
182
  function deleteProxy(refId: string){
@@ -426,7 +424,6 @@ const InputProxyStep = forwardRef<WizardStep, InputProxyStepProps>((props,ref) =
426
424
  errorMessage={proxy.latErrorMsg}
427
425
  readOnly={proxy.locationRefId != LocationChoice.CUSTOM}
428
426
  onChange={(e) => changeLatitude(proxy, e as number)}
429
-
430
427
  step={0.00000000001}
431
428
  min={-90}/>
432
429
  </div>
@@ -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:(latitude != undefined && longitude != undefined) ? RadioChoice.CUSTOM: RadioChoice.DEFAULT,
35
+ proxyChoice:RadioChoice.DEFAULT,
36
36
  payoutTableRefId:undefined,
37
37
  file:undefined,
38
38
  fileError:false,