@eric-emg/symphiq-components 1.2.270 → 1.2.272

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.
@@ -55604,6 +55604,9 @@ class FunnelMetricsVisualizationComponent {
55604
55604
  });
55605
55605
  return result;
55606
55606
  }, ...(ngDevMode ? [{ debugName: "funnelStages" }] : []));
55607
+ effect(() => {
55608
+ console.log('[FunnelMetricsVisualization] isCalculatingTargets changed to:', this.isCalculatingTargets());
55609
+ });
55607
55610
  }
55608
55611
  stageCardClasses() {
55609
55612
  return this.viewMode() === ViewModeEnum.DARK
@@ -55996,7 +55999,7 @@ class FunnelMetricsVisualizationComponent {
55996
55999
  </div>
55997
56000
  `
55998
56001
  }]
55999
- }], null, { viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], calculations: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculations", required: false }] }], pacingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingMetrics", required: false }] }], isCalculatingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCalculatingTargets", required: false }] }], hasExistingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasExistingTargets", required: false }] }], viewStageReport: [{ type: i0.Output, args: ["viewStageReport"] }], viewRelatedMetricReport: [{ type: i0.Output, args: ["viewRelatedMetricReport"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }] }); })();
56002
+ }], () => [], { viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], calculations: [{ type: i0.Input, args: [{ isSignal: true, alias: "calculations", required: false }] }], pacingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingMetrics", required: false }] }], isCalculatingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCalculatingTargets", required: false }] }], hasExistingTargets: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasExistingTargets", required: false }] }], viewStageReport: [{ type: i0.Output, args: ["viewStageReport"] }], viewRelatedMetricReport: [{ type: i0.Output, args: ["viewRelatedMetricReport"] }], editRelatedMetricTarget: [{ type: i0.Output, args: ["editRelatedMetricTarget"] }] }); })();
56000
56003
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FunnelMetricsVisualizationComponent, { className: "FunnelMetricsVisualizationComponent", filePath: "lib/components/revenue-calculator-dashboard/funnel-metrics-visualization.component.ts", lineNumber: 232 }); })();
56001
56004
 
56002
56005
  function StickySubmitBarComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
@@ -59142,7 +59145,7 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional
59142
59145
  const ctx_r1 = i0.ɵɵnextContext(3);
59143
59146
  i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59144
59147
  i0.ɵɵadvance();
59145
- i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.initialTargetValue(), false), " ");
59148
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.initialTargetValue()), " ");
59146
59149
  } }
59147
59150
  function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template(rf, ctx) { if (rf & 1) {
59148
59151
  i0.ɵɵtext(0);
@@ -59703,11 +59706,14 @@ class EditMetricTargetModalComponent {
59703
59706
  if (this.isOpen()) {
59704
59707
  const metricData = this.metricData();
59705
59708
  if (metricData && metricData.targetValue > 0) {
59706
- const value = this.isIntegerMetric()
59709
+ const displayValue = this.isIntegerMetric()
59707
59710
  ? Math.round(metricData.targetValue)
59708
59711
  : metricData.targetValue;
59709
- this.absoluteInput.set(value);
59710
- this.initialTargetValue.set(value);
59712
+ this.absoluteInput.set(displayValue);
59713
+ const internalValue = this.isPercentageMetric()
59714
+ ? metricData.targetValue / 100
59715
+ : displayValue;
59716
+ this.initialTargetValue.set(internalValue);
59711
59717
  }
59712
59718
  afterNextRender(() => {
59713
59719
  this.focusCurrentInput();
@@ -59720,7 +59726,8 @@ class EditMetricTargetModalComponent {
59720
59726
  const initial = this.initialTargetValue();
59721
59727
  if (initial > 0) {
59722
59728
  this.inputMode.set('absolute');
59723
- this.absoluteInput.set(initial);
59729
+ const displayValue = this.isPercentageMetric() ? initial * 100 : initial;
59730
+ this.absoluteInput.set(displayValue);
59724
59731
  this.percentageInput.set(null);
59725
59732
  this.updateAnimatedValuesImmediate();
59726
59733
  }
@@ -60273,7 +60280,7 @@ class EditMetricTargetModalComponent {
60273
60280
  </p>
60274
60281
  @if (hasChangedFromInitial()) {
60275
60282
  <p [ngClass]="originalValueClasses()" class="text-xl line-through opacity-60">
60276
- {{ formatMetricValue(initialTargetValue(), false) }}
60283
+ {{ formatMetricValue(initialTargetValue()) }}
60277
60284
  </p>
60278
60285
  }
60279
60286
  </div>
@@ -61188,6 +61195,9 @@ class InitialTargetSettingComponent {
61188
61195
  this.storedCalculateResponse.set(response);
61189
61196
  }
61190
61197
  }, { allowSignalWrites: true });
61198
+ effect(() => {
61199
+ console.log('[InitialTargetSetting] isCalculatingTargets changed to:', this.isCalculatingTargets());
61200
+ });
61191
61201
  effect(() => {
61192
61202
  const targetRevenue = this.displayedTargetRevenue();
61193
61203
  const priorRevenue = this.priorYearRevenue();
@@ -61615,6 +61625,7 @@ class InitialTargetSettingComponent {
61615
61625
  funnelType: FunnelMetricTypeEnum.REVENUE,
61616
61626
  proposedTargets
61617
61627
  };
61628
+ console.log('[InitialTargetSetting] Emitting calculateRevenueRequest');
61618
61629
  this.calculateRevenueRequest.emit(request);
61619
61630
  this.closeEditMetricModal();
61620
61631
  }