@eric-emg/symphiq-components 1.2.290 → 1.2.292
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 +14 -12
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +26 -26
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -55108,12 +55108,7 @@ class TargetChangeBadgeComponent {
|
|
|
55108
55108
|
return MetricEnumUtil.increaseBad(metricStr);
|
|
55109
55109
|
}, ...(ngDevMode ? [{ debugName: "isIncreaseBad" }] : []));
|
|
55110
55110
|
this.iconSymbol = computed(() => {
|
|
55111
|
-
|
|
55112
|
-
if (change > 0)
|
|
55113
|
-
return '↗';
|
|
55114
|
-
if (change < 0)
|
|
55115
|
-
return '↘';
|
|
55116
|
-
return '→';
|
|
55111
|
+
return this.isIncreaseBad() ? '↘' : '↗';
|
|
55117
55112
|
}, ...(ngDevMode ? [{ debugName: "iconSymbol" }] : []));
|
|
55118
55113
|
this.animatedPercentageText = computed(() => {
|
|
55119
55114
|
const sign = this.isIncreaseBad() ? '' : '+';
|
|
@@ -55132,8 +55127,7 @@ class TargetChangeBadgeComponent {
|
|
|
55132
55127
|
}, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
|
|
55133
55128
|
this.isIncrease = computed(() => this.percentageChange() > 0, ...(ngDevMode ? [{ debugName: "isIncrease" }] : []));
|
|
55134
55129
|
this.targetRotation = computed(() => {
|
|
55135
|
-
|
|
55136
|
-
return change > 0 ? -1 : change < 0 ? 1 : 0;
|
|
55130
|
+
return this.isIncreaseBad() ? 1 : -1;
|
|
55137
55131
|
}, ...(ngDevMode ? [{ debugName: "targetRotation" }] : []));
|
|
55138
55132
|
this.rotationStyle = computed(() => {
|
|
55139
55133
|
const target = this.targetRotation();
|
|
@@ -58026,7 +58020,7 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
58026
58020
|
i0.ɵɵadvance();
|
|
58027
58021
|
i0.ɵɵproperty("ngClass", ctx_r1.valueClasses());
|
|
58028
58022
|
i0.ɵɵadvance();
|
|
58029
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.ytdValue(), ((tmp_19_0 = ctx_r1.metricData()) == null ? null : tmp_19_0.metric) || ""), " ");
|
|
58023
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.ytdValue(), ((tmp_19_0 = ctx_r1.metricData()) == null ? null : tmp_19_0.metric) || "", false), " ");
|
|
58030
58024
|
i0.ɵɵadvance();
|
|
58031
58025
|
i0.ɵɵconditional(ctx_r1.ytdChangePercentage() !== null ? 31 : -1);
|
|
58032
58026
|
i0.ɵɵadvance(3);
|
|
@@ -58042,7 +58036,7 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
58042
58036
|
i0.ɵɵadvance();
|
|
58043
58037
|
i0.ɵɵproperty("ngClass", ctx_r1.valueClasses());
|
|
58044
58038
|
i0.ɵɵadvance();
|
|
58045
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.samePeriodLastYearValue(), ((tmp_27_0 = ctx_r1.metricData()) == null ? null : tmp_27_0.metric) || ""), " ");
|
|
58039
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.samePeriodLastYearValue(), ((tmp_27_0 = ctx_r1.metricData()) == null ? null : tmp_27_0.metric) || "", false), " ");
|
|
58046
58040
|
i0.ɵɵadvance(2);
|
|
58047
58041
|
i0.ɵɵproperty("ngClass", ctx_r1.labelClasses());
|
|
58048
58042
|
i0.ɵɵadvance();
|
|
@@ -58671,7 +58665,7 @@ class MetricReportModalComponent {
|
|
|
58671
58665
|
</p>
|
|
58672
58666
|
</div>
|
|
58673
58667
|
<p [ngClass]="valueClasses()" class="text-xl font-bold mb-2">
|
|
58674
|
-
{{ formatMetricValue(ytdValue(), metricData()?.metric || '') }}
|
|
58668
|
+
{{ formatMetricValue(ytdValue(), metricData()?.metric || '', false) }}
|
|
58675
58669
|
</p>
|
|
58676
58670
|
@if (ytdChangePercentage() !== null) {
|
|
58677
58671
|
<symphiq-target-change-badge
|
|
@@ -58698,7 +58692,7 @@ class MetricReportModalComponent {
|
|
|
58698
58692
|
</p>
|
|
58699
58693
|
</div>
|
|
58700
58694
|
<p [ngClass]="valueClasses()" class="text-xl font-bold">
|
|
58701
|
-
{{ formatMetricValue(samePeriodLastYearValue(), metricData()?.metric || '') }}
|
|
58695
|
+
{{ formatMetricValue(samePeriodLastYearValue(), metricData()?.metric || '', false) }}
|
|
58702
58696
|
</p>
|
|
58703
58697
|
</div>
|
|
58704
58698
|
|
|
@@ -61479,6 +61473,10 @@ class InitialTargetSettingComponent {
|
|
|
61479
61473
|
title: 'Current Pace Projection',
|
|
61480
61474
|
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
61475
|
};
|
|
61476
|
+
effect(() => {
|
|
61477
|
+
console.log('[InitialTargetSetting] targetHistories:', this.targetHistories(), 'length:', this.targetHistories().length);
|
|
61478
|
+
console.log('[InitialTargetSetting] users:', this.users(), 'length:', this.users().length);
|
|
61479
|
+
});
|
|
61482
61480
|
effect(() => {
|
|
61483
61481
|
const targets = this.targets();
|
|
61484
61482
|
if (targets && targets.length > 0) {
|
|
@@ -62821,6 +62819,10 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
62821
62819
|
const hasAllMetrics = requiredMetrics.every(metric => currentYearTargets.some(target => target.metric === metric));
|
|
62822
62820
|
return hasAllMetrics && currentYearTargets.length > 0;
|
|
62823
62821
|
}, ...(ngDevMode ? [{ debugName: "hasCurrentYearTargets" }] : []));
|
|
62822
|
+
effect(() => {
|
|
62823
|
+
console.log('[RevCalcDashboard] targetHistories:', this.targetHistories(), 'length:', this.targetHistories().length);
|
|
62824
|
+
console.log('[RevCalcDashboard] users:', this.users(), 'length:', this.users().length);
|
|
62825
|
+
});
|
|
62824
62826
|
effect(() => {
|
|
62825
62827
|
const event = this.scrollEvent();
|
|
62826
62828
|
if (event?.detail) {
|