@eric-emg/symphiq-components 1.2.290 → 1.2.291

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.
@@ -55133,7 +55133,14 @@ class TargetChangeBadgeComponent {
55133
55133
  this.isIncrease = computed(() => this.percentageChange() > 0, ...(ngDevMode ? [{ debugName: "isIncrease" }] : []));
55134
55134
  this.targetRotation = computed(() => {
55135
55135
  const change = this.percentageChange();
55136
- return change > 0 ? -1 : change < 0 ? 1 : 0;
55136
+ const increaseBad = this.isIncreaseBad();
55137
+ if (change > 0) {
55138
+ return increaseBad ? 1 : -1;
55139
+ }
55140
+ else if (change < 0) {
55141
+ return increaseBad ? -1 : 1;
55142
+ }
55143
+ return 0;
55137
55144
  }, ...(ngDevMode ? [{ debugName: "targetRotation" }] : []));
55138
55145
  this.rotationStyle = computed(() => {
55139
55146
  const target = this.targetRotation();
@@ -58026,7 +58033,7 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
58026
58033
  i0.ɵɵadvance();
58027
58034
  i0.ɵɵproperty("ngClass", ctx_r1.valueClasses());
58028
58035
  i0.ɵɵadvance();
58029
- i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.ytdValue(), ((tmp_19_0 = ctx_r1.metricData()) == null ? null : tmp_19_0.metric) || ""), " ");
58036
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.ytdValue(), ((tmp_19_0 = ctx_r1.metricData()) == null ? null : tmp_19_0.metric) || "", false), " ");
58030
58037
  i0.ɵɵadvance();
58031
58038
  i0.ɵɵconditional(ctx_r1.ytdChangePercentage() !== null ? 31 : -1);
58032
58039
  i0.ɵɵadvance(3);
@@ -58042,7 +58049,7 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
58042
58049
  i0.ɵɵadvance();
58043
58050
  i0.ɵɵproperty("ngClass", ctx_r1.valueClasses());
58044
58051
  i0.ɵɵadvance();
58045
- i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.samePeriodLastYearValue(), ((tmp_27_0 = ctx_r1.metricData()) == null ? null : tmp_27_0.metric) || ""), " ");
58052
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.samePeriodLastYearValue(), ((tmp_27_0 = ctx_r1.metricData()) == null ? null : tmp_27_0.metric) || "", false), " ");
58046
58053
  i0.ɵɵadvance(2);
58047
58054
  i0.ɵɵproperty("ngClass", ctx_r1.labelClasses());
58048
58055
  i0.ɵɵadvance();
@@ -58671,7 +58678,7 @@ class MetricReportModalComponent {
58671
58678
  </p>
58672
58679
  </div>
58673
58680
  <p [ngClass]="valueClasses()" class="text-xl font-bold mb-2">
58674
- {{ formatMetricValue(ytdValue(), metricData()?.metric || '') }}
58681
+ {{ formatMetricValue(ytdValue(), metricData()?.metric || '', false) }}
58675
58682
  </p>
58676
58683
  @if (ytdChangePercentage() !== null) {
58677
58684
  <symphiq-target-change-badge
@@ -58698,7 +58705,7 @@ class MetricReportModalComponent {
58698
58705
  </p>
58699
58706
  </div>
58700
58707
  <p [ngClass]="valueClasses()" class="text-xl font-bold">
58701
- {{ formatMetricValue(samePeriodLastYearValue(), metricData()?.metric || '') }}
58708
+ {{ formatMetricValue(samePeriodLastYearValue(), metricData()?.metric || '', false) }}
58702
58709
  </p>
58703
58710
  </div>
58704
58711
 
@@ -61479,6 +61486,10 @@ class InitialTargetSettingComponent {
61479
61486
  title: 'Current Pace Projection',
61480
61487
  markdown: 'This is your projected year-end revenue based on your current performance trends. It extrapolates your year-to-date results to estimate where you will finish the year if you maintain your current pace.'
61481
61488
  };
61489
+ effect(() => {
61490
+ console.log('[InitialTargetSetting] targetHistories:', this.targetHistories(), 'length:', this.targetHistories().length);
61491
+ console.log('[InitialTargetSetting] users:', this.users(), 'length:', this.users().length);
61492
+ });
61482
61493
  effect(() => {
61483
61494
  const targets = this.targets();
61484
61495
  if (targets && targets.length > 0) {
@@ -62821,6 +62832,10 @@ class SymphiqRevenueCalculatorDashboardComponent {
62821
62832
  const hasAllMetrics = requiredMetrics.every(metric => currentYearTargets.some(target => target.metric === metric));
62822
62833
  return hasAllMetrics && currentYearTargets.length > 0;
62823
62834
  }, ...(ngDevMode ? [{ debugName: "hasCurrentYearTargets" }] : []));
62835
+ effect(() => {
62836
+ console.log('[RevCalcDashboard] targetHistories:', this.targetHistories(), 'length:', this.targetHistories().length);
62837
+ console.log('[RevCalcDashboard] users:', this.users(), 'length:', this.users().length);
62838
+ });
62824
62839
  effect(() => {
62825
62840
  const event = this.scrollEvent();
62826
62841
  if (event?.detail) {