@eric-emg/symphiq-components 1.2.289 → 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.
- package/fesm2022/symphiq-components.mjs +24 -6
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +22 -22
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
|
|
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
|
|
|
@@ -59818,9 +59825,12 @@ class EditMetricTargetModalComponent {
|
|
|
59818
59825
|
};
|
|
59819
59826
|
}, ...(ngDevMode ? [{ debugName: "gapTooltip" }] : []));
|
|
59820
59827
|
this.filteredHistories = computed(() => {
|
|
59821
|
-
|
|
59828
|
+
const histories = this.targetHistories();
|
|
59829
|
+
console.log('[EditMetricTargetModal] targetHistories:', histories, 'length:', histories.length);
|
|
59830
|
+
const sorted = histories
|
|
59822
59831
|
.slice()
|
|
59823
59832
|
.sort((a, b) => new Date(b.createdDate ?? 0).getTime() - new Date(a.createdDate ?? 0).getTime());
|
|
59833
|
+
return sorted;
|
|
59824
59834
|
}, ...(ngDevMode ? [{ debugName: "filteredHistories" }] : []));
|
|
59825
59835
|
this.currentPaceProjectionTooltip = {
|
|
59826
59836
|
title: 'Current Pace Projection',
|
|
@@ -61476,6 +61486,10 @@ class InitialTargetSettingComponent {
|
|
|
61476
61486
|
title: 'Current Pace Projection',
|
|
61477
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.'
|
|
61478
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
|
+
});
|
|
61479
61493
|
effect(() => {
|
|
61480
61494
|
const targets = this.targets();
|
|
61481
61495
|
if (targets && targets.length > 0) {
|
|
@@ -62818,6 +62832,10 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
62818
62832
|
const hasAllMetrics = requiredMetrics.every(metric => currentYearTargets.some(target => target.metric === metric));
|
|
62819
62833
|
return hasAllMetrics && currentYearTargets.length > 0;
|
|
62820
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
|
+
});
|
|
62821
62839
|
effect(() => {
|
|
62822
62840
|
const event = this.scrollEvent();
|
|
62823
62841
|
if (event?.detail) {
|