@eric-emg/symphiq-components 1.2.248 → 1.2.249
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 +32 -11
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +29 -27
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -54873,7 +54873,7 @@ class PacingStatusBadgeComponent {
|
|
|
54873
54873
|
this.containerSizeClasses = computed(() => {
|
|
54874
54874
|
const compact = this.isCompact();
|
|
54875
54875
|
const status = this.status();
|
|
54876
|
-
const tiltClass = status === 'ahead' ? 'rotate-1' : status === 'behind' ? '
|
|
54876
|
+
const tiltClass = status === 'ahead' ? '-rotate-1' : status === 'behind' ? 'rotate-1' : '';
|
|
54877
54877
|
const baseClasses = 'inline-flex flex-row items-center rounded-xl border-2 overflow-visible transition-transform hover:rotate-0';
|
|
54878
54878
|
return compact
|
|
54879
54879
|
? `${baseClasses} pl-1.5 ${tiltClass}`
|
|
@@ -54894,7 +54894,7 @@ class PacingStatusBadgeComponent {
|
|
|
54894
54894
|
this.fullBadgeSizeClasses = computed(() => {
|
|
54895
54895
|
const isCompact = this.isCompact();
|
|
54896
54896
|
const status = this.status();
|
|
54897
|
-
const tiltClass = status === 'ahead' ? 'rotate-1' : status === 'behind' ? '
|
|
54897
|
+
const tiltClass = status === 'ahead' ? '-rotate-1' : status === 'behind' ? 'rotate-1' : '';
|
|
54898
54898
|
const baseClasses = `inline-flex items-center gap-1.5 rounded-xl border-2 font-bold tracking-wide shadow-md transition-all hover:rotate-0 ${tiltClass}`;
|
|
54899
54899
|
if (isCompact) {
|
|
54900
54900
|
return `${baseClasses} px-2.5 py-1 text-xs`;
|
|
@@ -55075,7 +55075,7 @@ class TargetChangeBadgeComponent {
|
|
|
55075
55075
|
this.containerSizeClasses = computed(() => {
|
|
55076
55076
|
const compact = this.isCompact();
|
|
55077
55077
|
const change = this.percentageChange();
|
|
55078
|
-
const tiltClass = change > 0 ? 'rotate-1' : change < 0 ? '
|
|
55078
|
+
const tiltClass = change > 0 ? '-rotate-1' : change < 0 ? 'rotate-1' : '';
|
|
55079
55079
|
const baseClasses = 'inline-flex flex-row items-center rounded-xl border-2 overflow-visible transition-transform hover:rotate-0';
|
|
55080
55080
|
return compact
|
|
55081
55081
|
? `${baseClasses} pl-1.5 ${tiltClass}`
|
|
@@ -57327,7 +57327,7 @@ class ProgressToTargetChartComponent {
|
|
|
57327
57327
|
i0.ɵɵdomElementStart(0, "div", 1);
|
|
57328
57328
|
i0.ɵɵdomElement(1, "div", 2, 0);
|
|
57329
57329
|
i0.ɵɵdomElementEnd();
|
|
57330
|
-
} }, dependencies: [CommonModule], styles: [".progress-chart-container[_ngcontent-%COMP%]{width:100%;margin-top:
|
|
57330
|
+
} }, dependencies: [CommonModule], styles: [".progress-chart-container[_ngcontent-%COMP%]{width:100%;margin-top:50px;overflow:visible}.chart[_ngcontent-%COMP%]{overflow:visible}"], changeDetection: 0 }); }
|
|
57331
57331
|
}
|
|
57332
57332
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProgressToTargetChartComponent, [{
|
|
57333
57333
|
type: Component,
|
|
@@ -57335,12 +57335,12 @@ class ProgressToTargetChartComponent {
|
|
|
57335
57335
|
<div class="progress-chart-container">
|
|
57336
57336
|
<div #chartdiv class="chart" style="width: 100%; height: 160px;"></div>
|
|
57337
57337
|
</div>
|
|
57338
|
-
`, styles: [".progress-chart-container{width:100%;margin-top:
|
|
57338
|
+
`, styles: [".progress-chart-container{width:100%;margin-top:50px;overflow:visible}.chart{overflow:visible}\n"] }]
|
|
57339
57339
|
}], () => [], { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], chartDiv: [{
|
|
57340
57340
|
type: ViewChild,
|
|
57341
57341
|
args: ['chartdiv', { static: true }]
|
|
57342
57342
|
}] }); })();
|
|
57343
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressToTargetChartComponent, { className: "ProgressToTargetChartComponent", filePath: "lib/components/revenue-calculator-dashboard/progress-to-target-chart.component.ts", lineNumber:
|
|
57343
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ProgressToTargetChartComponent, { className: "ProgressToTargetChartComponent", filePath: "lib/components/revenue-calculator-dashboard/progress-to-target-chart.component.ts", lineNumber: 66 }); })();
|
|
57344
57344
|
|
|
57345
57345
|
const _forTrack0$i = ($index, $item) => $item.metric;
|
|
57346
57346
|
function MetricReportModalComponent_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -57484,6 +57484,9 @@ function MetricReportModalComponent_Conditional_0_Conditional_66_Template(rf, ct
|
|
|
57484
57484
|
i0.ɵɵelementEnd();
|
|
57485
57485
|
i0.ɵɵelementStart(7, "p", 55);
|
|
57486
57486
|
i0.ɵɵtext(8);
|
|
57487
|
+
i0.ɵɵelementEnd();
|
|
57488
|
+
i0.ɵɵelementStart(9, "p", 55);
|
|
57489
|
+
i0.ɵɵtext(10);
|
|
57487
57490
|
i0.ɵɵelementEnd()();
|
|
57488
57491
|
} if (rf & 2) {
|
|
57489
57492
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -57495,6 +57498,10 @@ function MetricReportModalComponent_Conditional_0_Conditional_66_Template(rf, ct
|
|
|
57495
57498
|
i0.ɵɵadvance();
|
|
57496
57499
|
i0.ɵɵproperty("ngClass", ctx_r1.descriptionClasses());
|
|
57497
57500
|
i0.ɵɵadvance();
|
|
57501
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.chartLegendDescription(), " ");
|
|
57502
|
+
i0.ɵɵadvance();
|
|
57503
|
+
i0.ɵɵproperty("ngClass", ctx_r1.descriptionClasses());
|
|
57504
|
+
i0.ɵɵadvance();
|
|
57498
57505
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.chartDescriptionSentence1(), " ");
|
|
57499
57506
|
i0.ɵɵadvance();
|
|
57500
57507
|
i0.ɵɵproperty("ngClass", ctx_r1.descriptionClasses());
|
|
@@ -57583,7 +57590,7 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57583
57590
|
i0.ɵɵconditionalCreate(64, MetricReportModalComponent_Conditional_0_Conditional_64_Template, 6, 10);
|
|
57584
57591
|
i0.ɵɵelementEnd();
|
|
57585
57592
|
i0.ɵɵconditionalCreate(65, MetricReportModalComponent_Conditional_0_Conditional_65_Template, 16, 3, "div", 16);
|
|
57586
|
-
i0.ɵɵconditionalCreate(66, MetricReportModalComponent_Conditional_0_Conditional_66_Template,
|
|
57593
|
+
i0.ɵɵconditionalCreate(66, MetricReportModalComponent_Conditional_0_Conditional_66_Template, 11, 12, "div", 29);
|
|
57587
57594
|
i0.ɵɵelementEnd();
|
|
57588
57595
|
i0.ɵɵelementStart(67, "div", 30)(68, "button", 31);
|
|
57589
57596
|
i0.ɵɵlistener("click", function MetricReportModalComponent_Conditional_0_Template_button_click_68_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.close()); });
|
|
@@ -57851,6 +57858,12 @@ class MetricReportModalComponent {
|
|
|
57851
57858
|
status: pacing.status
|
|
57852
57859
|
};
|
|
57853
57860
|
}, ...(ngDevMode ? [{ debugName: "progressToTargetData" }] : []));
|
|
57861
|
+
this.chartLegendDescription = computed(() => {
|
|
57862
|
+
const metric = this.metricTitle();
|
|
57863
|
+
const currentYear = this.currentYear();
|
|
57864
|
+
const priorYear = this.priorYear();
|
|
57865
|
+
return `This chart shows the ${metric} performance trend for ${currentYear} (solid line), compared to ${priorYear} (dashed line), with the target projection (dotted line) for the remainder of the year.`;
|
|
57866
|
+
}, ...(ngDevMode ? [{ debugName: "chartLegendDescription" }] : []));
|
|
57854
57867
|
this.chartDescriptionSentence1 = computed(() => {
|
|
57855
57868
|
const metricData = this.metricData();
|
|
57856
57869
|
const metricName = this.metricTitle().toLowerCase();
|
|
@@ -57899,6 +57912,11 @@ class MetricReportModalComponent {
|
|
|
57899
57912
|
};
|
|
57900
57913
|
}, ...(ngDevMode ? [{ debugName: "pacingChartData" }] : []));
|
|
57901
57914
|
}
|
|
57915
|
+
formatDateForChart(year, month, day) {
|
|
57916
|
+
const m = String(month + 1).padStart(2, '0');
|
|
57917
|
+
const d = String(day).padStart(2, '0');
|
|
57918
|
+
return `${year}-${m}-${d}`;
|
|
57919
|
+
}
|
|
57902
57920
|
generateCurrentYearData(pacingResponse, metricEnum) {
|
|
57903
57921
|
const data = [];
|
|
57904
57922
|
const currentYear = this.currentYear();
|
|
@@ -57910,7 +57928,7 @@ class MetricReportModalComponent {
|
|
|
57910
57928
|
if (item.value && item.date) {
|
|
57911
57929
|
const month = new Date(item.date).getMonth();
|
|
57912
57930
|
data.push({
|
|
57913
|
-
date:
|
|
57931
|
+
date: this.formatDateForChart(currentYear, month, 15),
|
|
57914
57932
|
value: parseFloat(item.value) || 0
|
|
57915
57933
|
});
|
|
57916
57934
|
}
|
|
@@ -57929,7 +57947,7 @@ class MetricReportModalComponent {
|
|
|
57929
57947
|
if (item.value && item.date) {
|
|
57930
57948
|
const month = new Date(item.date).getMonth();
|
|
57931
57949
|
data.push({
|
|
57932
|
-
date:
|
|
57950
|
+
date: this.formatDateForChart(currentYear, month, 15),
|
|
57933
57951
|
value: parseFloat(item.value) || 0
|
|
57934
57952
|
});
|
|
57935
57953
|
}
|
|
@@ -57948,7 +57966,7 @@ class MetricReportModalComponent {
|
|
|
57948
57966
|
if (item.value && item.date) {
|
|
57949
57967
|
const month = new Date(item.date).getMonth();
|
|
57950
57968
|
data.push({
|
|
57951
|
-
date:
|
|
57969
|
+
date: this.formatDateForChart(currentYear, month, 15),
|
|
57952
57970
|
value: parseFloat(item.value) || 0
|
|
57953
57971
|
});
|
|
57954
57972
|
}
|
|
@@ -58432,6 +58450,9 @@ class MetricReportModalComponent {
|
|
|
58432
58450
|
/>
|
|
58433
58451
|
</div>
|
|
58434
58452
|
<p [ngClass]="descriptionClasses()" class="text-sm leading-relaxed mt-4">
|
|
58453
|
+
{{ chartLegendDescription() }}
|
|
58454
|
+
</p>
|
|
58455
|
+
<p [ngClass]="descriptionClasses()" class="text-sm leading-relaxed mt-2">
|
|
58435
58456
|
{{ chartDescriptionSentence1() }}
|
|
58436
58457
|
</p>
|
|
58437
58458
|
<p [ngClass]="descriptionClasses()" class="text-sm leading-relaxed mt-2">
|
|
@@ -58457,7 +58478,7 @@ class MetricReportModalComponent {
|
|
|
58457
58478
|
`
|
|
58458
58479
|
}]
|
|
58459
58480
|
}], null, { viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], metricEnum: [{ type: i0.Input, args: [{ isSignal: true, alias: "metricEnum", required: false }] }], metricData: [{ type: i0.Input, args: [{ isSignal: true, alias: "metricData", required: false }] }], contributingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "contributingMetrics", required: false }] }], pacingMetrics: [{ type: i0.Input, args: [{ isSignal: true, alias: "pacingMetrics", required: false }] }], isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOpen", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] }); })();
|
|
58460
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MetricReportModalComponent, { className: "MetricReportModalComponent", filePath: "lib/components/revenue-calculator-dashboard/metric-report-modal.component.ts", lineNumber:
|
|
58481
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MetricReportModalComponent, { className: "MetricReportModalComponent", filePath: "lib/components/revenue-calculator-dashboard/metric-report-modal.component.ts", lineNumber: 349 }); })();
|
|
58461
58482
|
|
|
58462
58483
|
const _c0$q = ["absoluteInputRef"];
|
|
58463
58484
|
const _c1$b = ["percentageInputRef"];
|