@eric-emg/symphiq-components 1.2.274 → 1.2.277
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 +18 -8
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +17 -17
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -60772,7 +60772,7 @@ function InitialTargetSettingComponent_Conditional_36_Template(rf, ctx) { if (rf
|
|
|
60772
60772
|
i0.ɵɵadvance();
|
|
60773
60773
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.currentYear(), " Revenue Target ");
|
|
60774
60774
|
i0.ɵɵadvance();
|
|
60775
|
-
i0.ɵɵconditional(ctx_r0.
|
|
60775
|
+
i0.ɵɵconditional(ctx_r0.isCalculating() ? 6 : 7);
|
|
60776
60776
|
i0.ɵɵadvance(2);
|
|
60777
60777
|
i0.ɵɵconditional(ctx_r0.calculationState() === "results" && !ctx_r0.hasExistingTargets() ? 8 : -1);
|
|
60778
60778
|
i0.ɵɵadvance();
|
|
@@ -60864,7 +60864,7 @@ function InitialTargetSettingComponent_Conditional_40_Template(rf, ctx) { if (rf
|
|
|
60864
60864
|
i0.ɵɵadvance();
|
|
60865
60865
|
i0.ɵɵconditional(!ctx_r0.hasExistingTargets() && ctx_r0.submittedAbsoluteInput() !== null ? 5 : 6);
|
|
60866
60866
|
i0.ɵɵadvance(2);
|
|
60867
|
-
i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("calculations", ctx_r0.displayedMetricCalculations())("pacingMetrics", ctx_r0.pacingMetrics())("hasExistingTargets", ctx_r0.hasExistingTargets())("isCalculatingTargets", ctx_r0.
|
|
60867
|
+
i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("calculations", ctx_r0.displayedMetricCalculations())("pacingMetrics", ctx_r0.pacingMetrics())("hasExistingTargets", ctx_r0.hasExistingTargets())("isCalculatingTargets", ctx_r0.isCalculating());
|
|
60868
60868
|
} }
|
|
60869
60869
|
function InitialTargetSettingComponent_Conditional_41_Template(rf, ctx) { if (rf & 1) {
|
|
60870
60870
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
@@ -60928,6 +60928,7 @@ class InitialTargetSettingComponent {
|
|
|
60928
60928
|
this.calculationState = signal('input', ...(ngDevMode ? [{ debugName: "calculationState" }] : []));
|
|
60929
60929
|
this.storedResponse = signal(null, ...(ngDevMode ? [{ debugName: "storedResponse" }] : []));
|
|
60930
60930
|
this.storedCalculateResponse = signal(null, ...(ngDevMode ? [{ debugName: "storedCalculateResponse" }] : []));
|
|
60931
|
+
this.internalIsCalculating = signal(false, ...(ngDevMode ? [{ debugName: "internalIsCalculating" }] : []));
|
|
60931
60932
|
this.submittedAbsoluteInput = signal(null, ...(ngDevMode ? [{ debugName: "submittedAbsoluteInput" }] : []));
|
|
60932
60933
|
this.detailsExpanded = signal(false, ...(ngDevMode ? [{ debugName: "detailsExpanded" }] : []));
|
|
60933
60934
|
this.isMetricReportOpen = signal(false, ...(ngDevMode ? [{ debugName: "isMetricReportOpen" }] : []));
|
|
@@ -61126,7 +61127,7 @@ class InitialTargetSettingComponent {
|
|
|
61126
61127
|
return this.calculationState() === 'results' && this.displayedMetricCalculations().length > 0;
|
|
61127
61128
|
}, ...(ngDevMode ? [{ debugName: "showMetricsVisualization" }] : []));
|
|
61128
61129
|
this.isCalculating = computed(() => {
|
|
61129
|
-
return this.calculationState() === 'calculating';
|
|
61130
|
+
return this.calculationState() === 'calculating' || this.internalIsCalculating() || this.isCalculatingTargets();
|
|
61130
61131
|
}, ...(ngDevMode ? [{ debugName: "isCalculating" }] : []));
|
|
61131
61132
|
this.submitButtonText = computed(() => {
|
|
61132
61133
|
const state = this.calculationState();
|
|
@@ -61193,10 +61194,11 @@ class InitialTargetSettingComponent {
|
|
|
61193
61194
|
const response = this.calculateRevenueResponse();
|
|
61194
61195
|
if (response) {
|
|
61195
61196
|
this.storedCalculateResponse.set(response);
|
|
61197
|
+
this.internalIsCalculating.set(false);
|
|
61196
61198
|
}
|
|
61197
61199
|
}, { allowSignalWrites: true });
|
|
61198
61200
|
effect(() => {
|
|
61199
|
-
console.log('[InitialTargetSetting]
|
|
61201
|
+
console.log('[InitialTargetSetting] isCalculating changed to:', this.isCalculating());
|
|
61200
61202
|
});
|
|
61201
61203
|
effect(() => {
|
|
61202
61204
|
const targetRevenue = this.displayedTargetRevenue();
|
|
@@ -61626,6 +61628,7 @@ class InitialTargetSettingComponent {
|
|
|
61626
61628
|
proposedTargets
|
|
61627
61629
|
};
|
|
61628
61630
|
console.log('[InitialTargetSetting] Emitting calculateRevenueRequest');
|
|
61631
|
+
this.internalIsCalculating.set(true);
|
|
61629
61632
|
this.calculateRevenueRequest.emit(request);
|
|
61630
61633
|
this.closeEditMetricModal();
|
|
61631
61634
|
}
|
|
@@ -61993,7 +61996,7 @@ class InitialTargetSettingComponent {
|
|
|
61993
61996
|
<p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider">
|
|
61994
61997
|
{{ currentYear() }} Revenue Target
|
|
61995
61998
|
</p>
|
|
61996
|
-
@if (
|
|
61999
|
+
@if (isCalculating()) {
|
|
61997
62000
|
<div class="flex items-center gap-2">
|
|
61998
62001
|
<div [ngClass]="loadingSpinnerClasses()" class="w-5 h-5 border-2 border-t-transparent rounded-full animate-spin"></div>
|
|
61999
62002
|
<p [ngClass]="calculatingTextClasses()" class="text-lg font-medium">Calculating...</p>
|
|
@@ -62167,7 +62170,7 @@ class InitialTargetSettingComponent {
|
|
|
62167
62170
|
[calculations]="displayedMetricCalculations()"
|
|
62168
62171
|
[pacingMetrics]="pacingMetrics()"
|
|
62169
62172
|
[hasExistingTargets]="hasExistingTargets()"
|
|
62170
|
-
[isCalculatingTargets]="
|
|
62173
|
+
[isCalculatingTargets]="isCalculating()"
|
|
62171
62174
|
(viewStageReport)="openMetricReport($event)"
|
|
62172
62175
|
(viewRelatedMetricReport)="openMetricReport($event)"
|
|
62173
62176
|
(editRelatedMetricTarget)="onEditRelatedMetricTarget($event)"
|
|
@@ -62592,7 +62595,14 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
62592
62595
|
}
|
|
62593
62596
|
onCalculateRevenueRequest(request) {
|
|
62594
62597
|
console.log('[Dashboard] onCalculateRevenueRequest received, re-emitting');
|
|
62595
|
-
this.calculateRevenueRequest
|
|
62598
|
+
console.log('[Dashboard] calculateRevenueRequest output:', this.calculateRevenueRequest);
|
|
62599
|
+
try {
|
|
62600
|
+
this.calculateRevenueRequest.emit(request);
|
|
62601
|
+
console.log('[Dashboard] emit completed');
|
|
62602
|
+
}
|
|
62603
|
+
catch (e) {
|
|
62604
|
+
console.error('[Dashboard] emit error:', e);
|
|
62605
|
+
}
|
|
62596
62606
|
}
|
|
62597
62607
|
static { this.ɵfac = function SymphiqRevenueCalculatorDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqRevenueCalculatorDashboardComponent)(); }; }
|
|
62598
62608
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqRevenueCalculatorDashboardComponent, selectors: [["symphiq-revenue-calculator-dashboard"]], hostBindings: function SymphiqRevenueCalculatorDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
@@ -62824,7 +62834,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
|
|
|
62824
62834
|
type: HostListener,
|
|
62825
62835
|
args: ['window:scroll', ['$event']]
|
|
62826
62836
|
}] }); })();
|
|
62827
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber:
|
|
62837
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber: 208 }); })();
|
|
62828
62838
|
|
|
62829
62839
|
function HierarchyDisplayComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
62830
62840
|
i0.ɵɵelementStart(0, "div", 1)(1, "div", 1);
|