@eric-emg/symphiq-components 1.2.294 → 1.2.295
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 +12 -13
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +28 -28
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -59813,11 +59813,9 @@ class EditMetricTargetModalComponent {
|
|
|
59813
59813
|
}, ...(ngDevMode ? [{ debugName: "gapTooltip" }] : []));
|
|
59814
59814
|
this.filteredHistories = computed(() => {
|
|
59815
59815
|
const histories = this.targetHistories();
|
|
59816
|
-
|
|
59817
|
-
const sorted = histories
|
|
59816
|
+
return histories
|
|
59818
59817
|
.slice()
|
|
59819
59818
|
.sort((a, b) => new Date(b.createdDate ?? 0).getTime() - new Date(a.createdDate ?? 0).getTime());
|
|
59820
|
-
return sorted;
|
|
59821
59819
|
}, ...(ngDevMode ? [{ debugName: "filteredHistories" }] : []));
|
|
59822
59820
|
this.currentPaceProjectionTooltip = {
|
|
59823
59821
|
title: 'Current Pace Projection',
|
|
@@ -61223,6 +61221,15 @@ class InitialTargetSettingComponent {
|
|
|
61223
61221
|
const targets = this.targets();
|
|
61224
61222
|
return targets !== undefined && targets.length > 0;
|
|
61225
61223
|
}, ...(ngDevMode ? [{ debugName: "hasExistingTargets" }] : []));
|
|
61224
|
+
this.editMetricTargetHistories = computed(() => {
|
|
61225
|
+
const metricEnum = this.editMetricEnum();
|
|
61226
|
+
const targets = this.targets() ?? [];
|
|
61227
|
+
const histories = this.targetHistories();
|
|
61228
|
+
const target = targets.find(t => t.metric === metricEnum);
|
|
61229
|
+
if (!target?.id)
|
|
61230
|
+
return [];
|
|
61231
|
+
return histories.filter(h => h.targetId === target.id);
|
|
61232
|
+
}, ...(ngDevMode ? [{ debugName: "editMetricTargetHistories" }] : []));
|
|
61226
61233
|
this.priorYearRevenue = computed(() => {
|
|
61227
61234
|
return sumMetricFromUiData(this.mainUiData(), MetricEnum.PURCHASE_REVENUE, 'priorYear');
|
|
61228
61235
|
}, ...(ngDevMode ? [{ debugName: "priorYearRevenue" }] : []));
|
|
@@ -61473,10 +61480,6 @@ class InitialTargetSettingComponent {
|
|
|
61473
61480
|
title: 'Current Pace Projection',
|
|
61474
61481
|
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.'
|
|
61475
61482
|
};
|
|
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
|
-
});
|
|
61480
61483
|
effect(() => {
|
|
61481
61484
|
const targets = this.targets();
|
|
61482
61485
|
if (targets && targets.length > 0) {
|
|
@@ -62091,7 +62094,7 @@ class InitialTargetSettingComponent {
|
|
|
62091
62094
|
i0.ɵɵadvance();
|
|
62092
62095
|
i0.ɵɵproperty("viewMode", ctx.viewMode())("metricEnum", ctx.selectedMetricEnum())("metricData", ctx.selectedMetricData())("contributingMetrics", ctx.selectedContributingMetrics())("pacingMetrics", ctx.pacingMetrics())("trendChartData", ctx.revenueChartData())("isOpen", ctx.isMetricReportOpen());
|
|
62093
62096
|
i0.ɵɵadvance();
|
|
62094
|
-
i0.ɵɵproperty("viewMode", ctx.viewMode())("metricData", ctx.editMetricData())("pacingMetrics", ctx.pacingMetrics())("targetHistories", ctx.
|
|
62097
|
+
i0.ɵɵproperty("viewMode", ctx.viewMode())("metricData", ctx.editMetricData())("pacingMetrics", ctx.pacingMetrics())("targetHistories", ctx.editMetricTargetHistories())("users", ctx.users())("isOpen", ctx.isEditMetricModalOpen());
|
|
62095
62098
|
} }, dependencies: [CommonModule, i1$1.NgClass, FormsModule, i2$1.DefaultValueAccessor, i2$1.NumberValueAccessor, i2$1.NgControlStatus, i2$1.MinValidator, i2$1.MaxValidator, i2$1.NgModel, FunnelMetricsVisualizationComponent,
|
|
62096
62099
|
StickySubmitBarComponent,
|
|
62097
62100
|
AreaChartComponent,
|
|
@@ -62545,7 +62548,7 @@ class InitialTargetSettingComponent {
|
|
|
62545
62548
|
[viewMode]="viewMode()"
|
|
62546
62549
|
[metricData]="editMetricData()"
|
|
62547
62550
|
[pacingMetrics]="pacingMetrics()"
|
|
62548
|
-
[targetHistories]="
|
|
62551
|
+
[targetHistories]="editMetricTargetHistories()"
|
|
62549
62552
|
[users]="users()"
|
|
62550
62553
|
[isOpen]="isEditMetricModalOpen()"
|
|
62551
62554
|
(closed)="closeEditMetricModal()"
|
|
@@ -62819,10 +62822,6 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
62819
62822
|
const hasAllMetrics = requiredMetrics.every(metric => currentYearTargets.some(target => target.metric === metric));
|
|
62820
62823
|
return hasAllMetrics && currentYearTargets.length > 0;
|
|
62821
62824
|
}, ...(ngDevMode ? [{ debugName: "hasCurrentYearTargets" }] : []));
|
|
62822
|
-
effect(() => {
|
|
62823
|
-
console.log('[RevCalcDashboard] targetHistories:', this.targetHistories(), 'length:', this.targetHistories()?.length ?? 0);
|
|
62824
|
-
console.log('[RevCalcDashboard] users:', this.users(), 'length:', this.users()?.length ?? 0);
|
|
62825
|
-
});
|
|
62826
62825
|
effect(() => {
|
|
62827
62826
|
const event = this.scrollEvent();
|
|
62828
62827
|
if (event?.detail) {
|