@eric-emg/symphiq-components 1.2.243 → 1.2.244
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 +186 -158
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +78 -72
- package/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/styles.css +1 -1
|
@@ -54798,8 +54798,7 @@ function extractProjectedValue(pacingResponse, metricEnum) {
|
|
|
54798
54798
|
if (!pacingResponse) {
|
|
54799
54799
|
return null;
|
|
54800
54800
|
}
|
|
54801
|
-
const
|
|
54802
|
-
const projectedMetric = resp.projectedMetricValues?.find((m) => m.metric === metricEnum);
|
|
54801
|
+
const projectedMetric = pacingResponse.projectedMetricValues?.find((m) => m.metric === metricEnum);
|
|
54803
54802
|
if (!projectedMetric?.value) {
|
|
54804
54803
|
return null;
|
|
54805
54804
|
}
|
|
@@ -57017,53 +57016,28 @@ var lineChart_component = /*#__PURE__*/Object.freeze({
|
|
|
57017
57016
|
});
|
|
57018
57017
|
|
|
57019
57018
|
const _forTrack0$i = ($index, $item) => $item.metric;
|
|
57020
|
-
function
|
|
57021
|
-
|
|
57022
|
-
i0.ɵɵelementStart(0, "button", 29);
|
|
57023
|
-
i0.ɵɵlistener("click", function MetricReportModalComponent_Conditional_0_Conditional_11_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.toggleDefinition()); });
|
|
57024
|
-
i0.ɵɵnamespaceSVG();
|
|
57025
|
-
i0.ɵɵelementStart(1, "svg", 30);
|
|
57026
|
-
i0.ɵɵelement(2, "path", 31);
|
|
57027
|
-
i0.ɵɵelementEnd();
|
|
57028
|
-
i0.ɵɵnamespaceHTML();
|
|
57029
|
-
i0.ɵɵelementStart(3, "span");
|
|
57030
|
-
i0.ɵɵtext(4);
|
|
57031
|
-
i0.ɵɵelementEnd();
|
|
57019
|
+
function MetricReportModalComponent_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
57020
|
+
i0.ɵɵelementStart(0, "button", 11);
|
|
57032
57021
|
i0.ɵɵnamespaceSVG();
|
|
57033
|
-
i0.ɵɵelementStart(
|
|
57034
|
-
i0.ɵɵelement(
|
|
57022
|
+
i0.ɵɵelementStart(1, "svg", 32);
|
|
57023
|
+
i0.ɵɵelement(2, "path", 33);
|
|
57035
57024
|
i0.ɵɵelementEnd()();
|
|
57036
57025
|
} if (rf & 2) {
|
|
57037
57026
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
57038
|
-
i0.ɵɵproperty("ngClass", ctx_r1.
|
|
57039
|
-
i0.ɵɵadvance(4);
|
|
57040
|
-
i0.ɵɵtextInterpolate1("What is ", ctx_r1.metricTitle(), "?");
|
|
57041
|
-
i0.ɵɵadvance();
|
|
57042
|
-
i0.ɵɵclassProp("rotate-180", ctx_r1.showDefinition());
|
|
57043
|
-
} }
|
|
57044
|
-
function MetricReportModalComponent_Conditional_0_Conditional_12_Template(rf, ctx) { if (rf & 1) {
|
|
57045
|
-
i0.ɵɵelementStart(0, "div", 11);
|
|
57046
|
-
i0.ɵɵtext(1);
|
|
57047
|
-
i0.ɵɵelementEnd();
|
|
57048
|
-
} if (rf & 2) {
|
|
57049
|
-
let tmp_3_0;
|
|
57050
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
57051
|
-
i0.ɵɵproperty("ngClass", ctx_r1.definitionBoxClasses());
|
|
57052
|
-
i0.ɵɵadvance();
|
|
57053
|
-
i0.ɵɵtextInterpolate1(" ", (tmp_3_0 = ctx_r1.metricData()) == null ? null : tmp_3_0.description, " ");
|
|
57027
|
+
i0.ɵɵproperty("ngClass", ctx_r1.headerInfoIconClasses())("libSymphiqTooltip", ctx_r1.getMarkdownTooltipContent(ctx_r1.metricData().description, ctx_r1.metricTitle()));
|
|
57054
57028
|
} }
|
|
57055
|
-
function
|
|
57056
|
-
i0.ɵɵelement(0, "symphiq-target-change-badge",
|
|
57029
|
+
function MetricReportModalComponent_Conditional_0_Conditional_32_Template(rf, ctx) { if (rf & 1) {
|
|
57030
|
+
i0.ɵɵelement(0, "symphiq-target-change-badge", 23);
|
|
57057
57031
|
} if (rf & 2) {
|
|
57058
57032
|
let tmp_4_0;
|
|
57059
57033
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
57060
57034
|
i0.ɵɵproperty("viewMode", ctx_r1.viewMode())("percentageChange", ctx_r1.ytdChangePercentage())("metric", ((tmp_4_0 = ctx_r1.metricData()) == null ? null : tmp_4_0.metric) || "")("priorYear", ctx_r1.priorYear())("isCompact", true);
|
|
57061
57035
|
} }
|
|
57062
|
-
function
|
|
57063
|
-
i0.ɵɵelementStart(0, "div")(1, "p",
|
|
57036
|
+
function MetricReportModalComponent_Conditional_0_Conditional_48_Template(rf, ctx) { if (rf & 1) {
|
|
57037
|
+
i0.ɵɵelementStart(0, "div")(1, "p", 24);
|
|
57064
57038
|
i0.ɵɵtext(2);
|
|
57065
57039
|
i0.ɵɵelementEnd();
|
|
57066
|
-
i0.ɵɵelementStart(3, "p",
|
|
57040
|
+
i0.ɵɵelementStart(3, "p", 22);
|
|
57067
57041
|
i0.ɵɵtext(4);
|
|
57068
57042
|
i0.ɵɵelementEnd();
|
|
57069
57043
|
i0.ɵɵelement(5, "symphiq-pacing-status-badge", 34);
|
|
@@ -57082,11 +57056,11 @@ function MetricReportModalComponent_Conditional_0_Conditional_38_Template(rf, ct
|
|
|
57082
57056
|
i0.ɵɵadvance();
|
|
57083
57057
|
i0.ɵɵproperty("viewMode", ctx_r1.viewMode())("pacingPercentage", ctx_r1.pacingInfo().pacingPercentage)("status", ctx_r1.pacingInfo().status)("showAsFullText", false)("isCompact", true)("showEmphasizedPercentage", true);
|
|
57084
57058
|
} }
|
|
57085
|
-
function
|
|
57086
|
-
i0.ɵɵelementStart(0, "div",
|
|
57059
|
+
function MetricReportModalComponent_Conditional_0_Conditional_64_Template(rf, ctx) { if (rf & 1) {
|
|
57060
|
+
i0.ɵɵelementStart(0, "div", 25);
|
|
57087
57061
|
i0.ɵɵelement(1, "symphiq-pacing-status-badge", 34);
|
|
57088
57062
|
i0.ɵɵelementEnd();
|
|
57089
|
-
i0.ɵɵelementStart(2, "div",
|
|
57063
|
+
i0.ɵɵelementStart(2, "div", 25)(3, "p", 28);
|
|
57090
57064
|
i0.ɵɵtext(4);
|
|
57091
57065
|
i0.ɵɵelementEnd()();
|
|
57092
57066
|
i0.ɵɵelementStart(5, "div", 35)(6, "div", 36)(7, "span");
|
|
@@ -57116,22 +57090,22 @@ function MetricReportModalComponent_Conditional_0_Conditional_54_Template(rf, ct
|
|
|
57116
57090
|
i0.ɵɵstyleProp("width", ctx_r1.Math.min(ctx_r1.progressToTarget(), 100), "%");
|
|
57117
57091
|
i0.ɵɵproperty("ngClass", ctx_r1.progressBarFillClasses());
|
|
57118
57092
|
} }
|
|
57119
|
-
function
|
|
57093
|
+
function MetricReportModalComponent_Conditional_0_Conditional_65_For_15_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
57120
57094
|
i0.ɵɵelementStart(0, "button", 48);
|
|
57121
57095
|
i0.ɵɵnamespaceSVG();
|
|
57122
57096
|
i0.ɵɵelementStart(1, "svg", 54);
|
|
57123
|
-
i0.ɵɵelement(2, "path",
|
|
57097
|
+
i0.ɵɵelement(2, "path", 33);
|
|
57124
57098
|
i0.ɵɵelementEnd()();
|
|
57125
57099
|
} if (rf & 2) {
|
|
57126
|
-
const
|
|
57100
|
+
const metric_r3 = i0.ɵɵnextContext().$implicit;
|
|
57127
57101
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
57128
|
-
i0.ɵɵproperty("ngClass", ctx_r1.infoIconClasses())("libSymphiqTooltip", ctx_r1.getMarkdownTooltipContent(
|
|
57102
|
+
i0.ɵɵproperty("ngClass", ctx_r1.infoIconClasses())("libSymphiqTooltip", ctx_r1.getMarkdownTooltipContent(metric_r3.description, ctx_r1.getMetricTitle(metric_r3)));
|
|
57129
57103
|
} }
|
|
57130
|
-
function
|
|
57104
|
+
function MetricReportModalComponent_Conditional_0_Conditional_65_For_15_Template(rf, ctx) { if (rf & 1) {
|
|
57131
57105
|
i0.ɵɵelementStart(0, "tr", 44)(1, "td", 45)(2, "div", 46)(3, "span", 47);
|
|
57132
57106
|
i0.ɵɵtext(4);
|
|
57133
57107
|
i0.ɵɵelementEnd();
|
|
57134
|
-
i0.ɵɵconditionalCreate(5,
|
|
57108
|
+
i0.ɵɵconditionalCreate(5, MetricReportModalComponent_Conditional_0_Conditional_65_For_15_Conditional_5_Template, 3, 2, "button", 48);
|
|
57135
57109
|
i0.ɵɵelementEnd()();
|
|
57136
57110
|
i0.ɵɵelementStart(6, "td", 49)(7, "span", 50);
|
|
57137
57111
|
i0.ɵɵtext(8);
|
|
@@ -57144,23 +57118,23 @@ function MetricReportModalComponent_Conditional_0_Conditional_55_For_15_Template
|
|
|
57144
57118
|
i0.ɵɵelement(14, "path", 53);
|
|
57145
57119
|
i0.ɵɵelementEnd()()()();
|
|
57146
57120
|
} if (rf & 2) {
|
|
57147
|
-
const
|
|
57121
|
+
const metric_r3 = ctx.$implicit;
|
|
57148
57122
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
57149
57123
|
i0.ɵɵproperty("ngClass", ctx_r1.tableRowClasses());
|
|
57150
57124
|
i0.ɵɵadvance(4);
|
|
57151
|
-
i0.ɵɵtextInterpolate(ctx_r1.getMetricTitle(
|
|
57125
|
+
i0.ɵɵtextInterpolate(ctx_r1.getMetricTitle(metric_r3));
|
|
57152
57126
|
i0.ɵɵadvance();
|
|
57153
|
-
i0.ɵɵconditional(
|
|
57127
|
+
i0.ɵɵconditional(metric_r3.description ? 5 : -1);
|
|
57154
57128
|
i0.ɵɵadvance(2);
|
|
57155
57129
|
i0.ɵɵproperty("ngClass", ctx_r1.targetValueClasses());
|
|
57156
57130
|
i0.ɵɵadvance();
|
|
57157
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(
|
|
57131
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(metric_r3.targetValue, metric_r3.metric, false), " ");
|
|
57158
57132
|
i0.ɵɵadvance(4);
|
|
57159
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatPercentage(ctx_r1.Math.abs(
|
|
57133
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatPercentage(ctx_r1.Math.abs(metric_r3.percentageIncrease), 1), " ");
|
|
57160
57134
|
i0.ɵɵadvance(2);
|
|
57161
|
-
i0.ɵɵattribute("d",
|
|
57135
|
+
i0.ɵɵattribute("d", metric_r3.percentageIncrease >= 0 ? "M5 10l7-7m0 0l7 7m-7-7v18" : "M19 14l-7 7m0 0l-7-7m7 7V3");
|
|
57162
57136
|
} }
|
|
57163
|
-
function
|
|
57137
|
+
function MetricReportModalComponent_Conditional_0_Conditional_65_Template(rf, ctx) { if (rf & 1) {
|
|
57164
57138
|
i0.ɵɵelementStart(0, "div", 16)(1, "h4", 17);
|
|
57165
57139
|
i0.ɵɵtext(2, " Contributing Metrics ");
|
|
57166
57140
|
i0.ɵɵelementEnd();
|
|
@@ -57174,7 +57148,7 @@ function MetricReportModalComponent_Conditional_0_Conditional_55_Template(rf, ct
|
|
|
57174
57148
|
i0.ɵɵtext(12, "Improve by");
|
|
57175
57149
|
i0.ɵɵelementEnd()()();
|
|
57176
57150
|
i0.ɵɵelementStart(13, "tbody");
|
|
57177
|
-
i0.ɵɵrepeaterCreate(14,
|
|
57151
|
+
i0.ɵɵrepeaterCreate(14, MetricReportModalComponent_Conditional_0_Conditional_65_For_15_Template, 15, 7, "tr", 44, _forTrack0$i);
|
|
57178
57152
|
i0.ɵɵelementEnd()()()();
|
|
57179
57153
|
} if (rf & 2) {
|
|
57180
57154
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -57186,8 +57160,8 @@ function MetricReportModalComponent_Conditional_0_Conditional_55_Template(rf, ct
|
|
|
57186
57160
|
i0.ɵɵadvance(8);
|
|
57187
57161
|
i0.ɵɵrepeater(ctx_r1.contributingMetrics());
|
|
57188
57162
|
} }
|
|
57189
|
-
function
|
|
57190
|
-
i0.ɵɵelementStart(0, "div",
|
|
57163
|
+
function MetricReportModalComponent_Conditional_0_Conditional_66_Template(rf, ctx) { if (rf & 1) {
|
|
57164
|
+
i0.ɵɵelementStart(0, "div", 29)(1, "h4", 17);
|
|
57191
57165
|
i0.ɵɵtext(2, " Pace ");
|
|
57192
57166
|
i0.ɵɵelementEnd();
|
|
57193
57167
|
i0.ɵɵelementStart(3, "div", 55);
|
|
@@ -57219,12 +57193,11 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57219
57193
|
i0.ɵɵelementEnd();
|
|
57220
57194
|
i0.ɵɵelementStart(5, "div", 5);
|
|
57221
57195
|
i0.ɵɵlistener("click", function MetricReportModalComponent_Conditional_0_Template_div_click_5_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
57222
|
-
i0.ɵɵelementStart(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "
|
|
57223
|
-
i0.ɵɵtext(
|
|
57224
|
-
i0.ɵɵelementEnd();
|
|
57225
|
-
i0.ɵɵconditionalCreate(11, MetricReportModalComponent_Conditional_0_Conditional_11_Template, 7, 4, "button", 10);
|
|
57226
|
-
i0.ɵɵconditionalCreate(12, MetricReportModalComponent_Conditional_0_Conditional_12_Template, 2, 2, "div", 11);
|
|
57196
|
+
i0.ɵɵelementStart(6, "div", 6)(7, "div", 7)(8, "div", 8)(9, "div", 9)(10, "h3", 10);
|
|
57197
|
+
i0.ɵɵtext(11);
|
|
57227
57198
|
i0.ɵɵelementEnd();
|
|
57199
|
+
i0.ɵɵconditionalCreate(12, MetricReportModalComponent_Conditional_0_Conditional_12_Template, 3, 2, "button", 11);
|
|
57200
|
+
i0.ɵɵelementEnd()();
|
|
57228
57201
|
i0.ɵɵelementStart(13, "button", 12);
|
|
57229
57202
|
i0.ɵɵlistener("click", function MetricReportModalComponent_Conditional_0_Template_button_click_13_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.close()); });
|
|
57230
57203
|
i0.ɵɵnamespaceSVG();
|
|
@@ -57237,63 +57210,74 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57237
57210
|
i0.ɵɵelementStart(18, "div", 16)(19, "h4", 17);
|
|
57238
57211
|
i0.ɵɵtext(20, " At a Glance ");
|
|
57239
57212
|
i0.ɵɵelementEnd();
|
|
57240
|
-
i0.ɵɵelementStart(21, "div", 18)(22, "div")(23, "
|
|
57241
|
-
i0.ɵɵtext(
|
|
57213
|
+
i0.ɵɵelementStart(21, "div", 18)(22, "div")(23, "div", 19)(24, "p", 20);
|
|
57214
|
+
i0.ɵɵtext(25, " Year to date ");
|
|
57242
57215
|
i0.ɵɵelementEnd();
|
|
57243
|
-
i0.ɵɵelementStart(
|
|
57244
|
-
i0.ɵɵtext(
|
|
57216
|
+
i0.ɵɵelementStart(26, "p", 21);
|
|
57217
|
+
i0.ɵɵtext(27);
|
|
57245
57218
|
i0.ɵɵelementEnd();
|
|
57246
|
-
i0.ɵɵ
|
|
57219
|
+
i0.ɵɵelementStart(28, "p", 21);
|
|
57220
|
+
i0.ɵɵtext(29);
|
|
57221
|
+
i0.ɵɵelementEnd()();
|
|
57222
|
+
i0.ɵɵelementStart(30, "p", 22);
|
|
57223
|
+
i0.ɵɵtext(31);
|
|
57247
57224
|
i0.ɵɵelementEnd();
|
|
57248
|
-
i0.ɵɵ
|
|
57249
|
-
i0.ɵɵ
|
|
57225
|
+
i0.ɵɵconditionalCreate(32, MetricReportModalComponent_Conditional_0_Conditional_32_Template, 1, 5, "symphiq-target-change-badge", 23);
|
|
57226
|
+
i0.ɵɵelementEnd();
|
|
57227
|
+
i0.ɵɵelementStart(33, "div")(34, "div", 19)(35, "p", 20);
|
|
57228
|
+
i0.ɵɵtext(36, " Same period last year ");
|
|
57229
|
+
i0.ɵɵelementEnd();
|
|
57230
|
+
i0.ɵɵelementStart(37, "p", 21);
|
|
57231
|
+
i0.ɵɵtext(38);
|
|
57250
57232
|
i0.ɵɵelementEnd();
|
|
57251
|
-
i0.ɵɵelementStart(
|
|
57252
|
-
i0.ɵɵtext(
|
|
57233
|
+
i0.ɵɵelementStart(39, "p", 21);
|
|
57234
|
+
i0.ɵɵtext(40);
|
|
57253
57235
|
i0.ɵɵelementEnd()();
|
|
57254
|
-
i0.ɵɵelementStart(
|
|
57255
|
-
i0.ɵɵtext(
|
|
57236
|
+
i0.ɵɵelementStart(41, "p", 10);
|
|
57237
|
+
i0.ɵɵtext(42);
|
|
57238
|
+
i0.ɵɵelementEnd()();
|
|
57239
|
+
i0.ɵɵelementStart(43, "div")(44, "p", 24);
|
|
57240
|
+
i0.ɵɵtext(45);
|
|
57256
57241
|
i0.ɵɵelementEnd();
|
|
57257
|
-
i0.ɵɵelementStart(
|
|
57258
|
-
i0.ɵɵtext(
|
|
57242
|
+
i0.ɵɵelementStart(46, "p", 10);
|
|
57243
|
+
i0.ɵɵtext(47);
|
|
57259
57244
|
i0.ɵɵelementEnd()();
|
|
57260
|
-
i0.ɵɵconditionalCreate(
|
|
57261
|
-
i0.ɵɵelementStart(
|
|
57262
|
-
i0.ɵɵtext(
|
|
57245
|
+
i0.ɵɵconditionalCreate(48, MetricReportModalComponent_Conditional_0_Conditional_48_Template, 6, 10, "div");
|
|
57246
|
+
i0.ɵɵelementStart(49, "div")(50, "p", 24);
|
|
57247
|
+
i0.ɵɵtext(51);
|
|
57263
57248
|
i0.ɵɵelementEnd();
|
|
57264
|
-
i0.ɵɵelementStart(
|
|
57265
|
-
i0.ɵɵtext(
|
|
57249
|
+
i0.ɵɵelementStart(52, "p", 10);
|
|
57250
|
+
i0.ɵɵtext(53);
|
|
57266
57251
|
i0.ɵɵelementEnd()()()();
|
|
57267
|
-
i0.ɵɵelementStart(
|
|
57268
|
-
i0.ɵɵtext(
|
|
57252
|
+
i0.ɵɵelementStart(54, "div", 16)(55, "h4", 17);
|
|
57253
|
+
i0.ɵɵtext(56, " Target Analysis ");
|
|
57269
57254
|
i0.ɵɵelementEnd();
|
|
57270
|
-
i0.ɵɵelementStart(
|
|
57271
|
-
i0.ɵɵtext(
|
|
57255
|
+
i0.ɵɵelementStart(57, "div", 25)(58, "p", 26);
|
|
57256
|
+
i0.ɵɵtext(59, " Your Target ");
|
|
57272
57257
|
i0.ɵɵelementEnd();
|
|
57273
|
-
i0.ɵɵelementStart(
|
|
57274
|
-
i0.ɵɵtext(
|
|
57258
|
+
i0.ɵɵelementStart(60, "p", 27);
|
|
57259
|
+
i0.ɵɵtext(61);
|
|
57275
57260
|
i0.ɵɵelementEnd();
|
|
57276
|
-
i0.ɵɵelementStart(
|
|
57277
|
-
i0.ɵɵtext(
|
|
57261
|
+
i0.ɵɵelementStart(62, "p", 28);
|
|
57262
|
+
i0.ɵɵtext(63);
|
|
57278
57263
|
i0.ɵɵelementEnd()();
|
|
57279
|
-
i0.ɵɵconditionalCreate(
|
|
57264
|
+
i0.ɵɵconditionalCreate(64, MetricReportModalComponent_Conditional_0_Conditional_64_Template, 13, 14);
|
|
57280
57265
|
i0.ɵɵelementEnd();
|
|
57281
|
-
i0.ɵɵconditionalCreate(
|
|
57282
|
-
i0.ɵɵconditionalCreate(
|
|
57266
|
+
i0.ɵɵconditionalCreate(65, MetricReportModalComponent_Conditional_0_Conditional_65_Template, 16, 3, "div", 16);
|
|
57267
|
+
i0.ɵɵconditionalCreate(66, MetricReportModalComponent_Conditional_0_Conditional_66_Template, 7, 8, "div", 29);
|
|
57283
57268
|
i0.ɵɵelementEnd();
|
|
57284
|
-
i0.ɵɵelementStart(
|
|
57285
|
-
i0.ɵɵlistener("click", function
|
|
57286
|
-
i0.ɵɵtext(
|
|
57269
|
+
i0.ɵɵelementStart(67, "div", 30)(68, "button", 31);
|
|
57270
|
+
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()); });
|
|
57271
|
+
i0.ɵɵtext(69, " Close ");
|
|
57287
57272
|
i0.ɵɵelementEnd()()()()();
|
|
57288
57273
|
} if (rf & 2) {
|
|
57289
57274
|
let tmp_8_0;
|
|
57290
|
-
let
|
|
57291
|
-
let
|
|
57292
|
-
let tmp_22_0;
|
|
57293
|
-
let tmp_26_0;
|
|
57275
|
+
let tmp_19_0;
|
|
57276
|
+
let tmp_27_0;
|
|
57294
57277
|
let tmp_31_0;
|
|
57295
57278
|
let tmp_36_0;
|
|
57296
|
-
let
|
|
57279
|
+
let tmp_41_0;
|
|
57280
|
+
let tmp_43_0;
|
|
57297
57281
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
57298
57282
|
i0.ɵɵadvance(2);
|
|
57299
57283
|
i0.ɵɵproperty("ngClass", ctx_r1.backdropClasses())("@fadeIn", undefined);
|
|
@@ -57301,14 +57285,12 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57301
57285
|
i0.ɵɵproperty("ngClass", ctx_r1.modalContainerClasses())("@slideUpFade", undefined);
|
|
57302
57286
|
i0.ɵɵadvance();
|
|
57303
57287
|
i0.ɵɵproperty("ngClass", ctx_r1.headerClasses());
|
|
57304
|
-
i0.ɵɵadvance(
|
|
57288
|
+
i0.ɵɵadvance(4);
|
|
57305
57289
|
i0.ɵɵproperty("ngClass", ctx_r1.titleClasses());
|
|
57306
57290
|
i0.ɵɵadvance();
|
|
57307
57291
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.metricTitle(), " ");
|
|
57308
57292
|
i0.ɵɵadvance();
|
|
57309
|
-
i0.ɵɵconditional(((tmp_8_0 = ctx_r1.metricData()) == null ? null : tmp_8_0.description) ?
|
|
57310
|
-
i0.ɵɵadvance();
|
|
57311
|
-
i0.ɵɵconditional(ctx_r1.showDefinition() && ((tmp_9_0 = ctx_r1.metricData()) == null ? null : tmp_9_0.description) ? 12 : -1);
|
|
57293
|
+
i0.ɵɵconditional(((tmp_8_0 = ctx_r1.metricData()) == null ? null : tmp_8_0.description) ? 12 : -1);
|
|
57312
57294
|
i0.ɵɵadvance();
|
|
57313
57295
|
i0.ɵɵproperty("ngClass", ctx_r1.closeButtonClasses());
|
|
57314
57296
|
i0.ɵɵadvance(3);
|
|
@@ -57317,24 +57299,36 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57317
57299
|
i0.ɵɵproperty("ngClass", ctx_r1.sectionCardClasses());
|
|
57318
57300
|
i0.ɵɵadvance();
|
|
57319
57301
|
i0.ɵɵproperty("ngClass", ctx_r1.sectionTitleClasses());
|
|
57320
|
-
i0.ɵɵadvance(
|
|
57302
|
+
i0.ɵɵadvance(5);
|
|
57321
57303
|
i0.ɵɵproperty("ngClass", ctx_r1.labelClasses());
|
|
57304
|
+
i0.ɵɵadvance(2);
|
|
57305
|
+
i0.ɵɵproperty("ngClass", ctx_r1.dateLabelClasses());
|
|
57322
57306
|
i0.ɵɵadvance();
|
|
57323
|
-
i0.ɵɵtextInterpolate1("
|
|
57307
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.ytdStartDate(), " ");
|
|
57308
|
+
i0.ɵɵadvance();
|
|
57309
|
+
i0.ɵɵproperty("ngClass", ctx_r1.dateLabelClasses());
|
|
57310
|
+
i0.ɵɵadvance();
|
|
57311
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.ytdEndDate(), " ");
|
|
57324
57312
|
i0.ɵɵadvance();
|
|
57325
57313
|
i0.ɵɵproperty("ngClass", ctx_r1.valueClasses());
|
|
57326
57314
|
i0.ɵɵadvance();
|
|
57327
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.ytdValue(), ((
|
|
57315
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.ytdValue(), ((tmp_19_0 = ctx_r1.metricData()) == null ? null : tmp_19_0.metric) || ""), " ");
|
|
57328
57316
|
i0.ɵɵadvance();
|
|
57329
|
-
i0.ɵɵconditional(ctx_r1.ytdChangePercentage() !== null ?
|
|
57330
|
-
i0.ɵɵadvance(
|
|
57317
|
+
i0.ɵɵconditional(ctx_r1.ytdChangePercentage() !== null ? 32 : -1);
|
|
57318
|
+
i0.ɵɵadvance(3);
|
|
57331
57319
|
i0.ɵɵproperty("ngClass", ctx_r1.labelClasses());
|
|
57320
|
+
i0.ɵɵadvance(2);
|
|
57321
|
+
i0.ɵɵproperty("ngClass", ctx_r1.dateLabelClasses());
|
|
57322
|
+
i0.ɵɵadvance();
|
|
57323
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.priorYearStartDate(), " ");
|
|
57332
57324
|
i0.ɵɵadvance();
|
|
57333
|
-
i0.ɵɵ
|
|
57325
|
+
i0.ɵɵproperty("ngClass", ctx_r1.dateLabelClasses());
|
|
57326
|
+
i0.ɵɵadvance();
|
|
57327
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.priorYearEndDate(), " ");
|
|
57334
57328
|
i0.ɵɵadvance();
|
|
57335
57329
|
i0.ɵɵproperty("ngClass", ctx_r1.valueClasses());
|
|
57336
57330
|
i0.ɵɵadvance();
|
|
57337
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.samePeriodLastYearValue(), ((
|
|
57331
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.samePeriodLastYearValue(), ((tmp_27_0 = ctx_r1.metricData()) == null ? null : tmp_27_0.metric) || ""), " ");
|
|
57338
57332
|
i0.ɵɵadvance(2);
|
|
57339
57333
|
i0.ɵɵproperty("ngClass", ctx_r1.labelClasses());
|
|
57340
57334
|
i0.ɵɵadvance();
|
|
@@ -57342,9 +57336,9 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57342
57336
|
i0.ɵɵadvance();
|
|
57343
57337
|
i0.ɵɵproperty("ngClass", ctx_r1.valueClasses());
|
|
57344
57338
|
i0.ɵɵadvance();
|
|
57345
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(((
|
|
57339
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(((tmp_31_0 = ctx_r1.metricData()) == null ? null : tmp_31_0.currentValue) || 0, ((tmp_31_0 = ctx_r1.metricData()) == null ? null : tmp_31_0.metric) || ""), " ");
|
|
57346
57340
|
i0.ɵɵadvance();
|
|
57347
|
-
i0.ɵɵconditional(ctx_r1.pacingInfo() ?
|
|
57341
|
+
i0.ɵɵconditional(ctx_r1.pacingInfo() ? 48 : -1);
|
|
57348
57342
|
i0.ɵɵadvance(2);
|
|
57349
57343
|
i0.ɵɵproperty("ngClass", ctx_r1.labelClasses());
|
|
57350
57344
|
i0.ɵɵadvance();
|
|
@@ -57352,7 +57346,7 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57352
57346
|
i0.ɵɵadvance();
|
|
57353
57347
|
i0.ɵɵproperty("ngClass", ctx_r1.targetValueClasses());
|
|
57354
57348
|
i0.ɵɵadvance();
|
|
57355
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(((
|
|
57349
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(((tmp_36_0 = ctx_r1.metricData()) == null ? null : tmp_36_0.targetValue) || 0, ((tmp_36_0 = ctx_r1.metricData()) == null ? null : tmp_36_0.metric) || "", false), " ");
|
|
57356
57350
|
i0.ɵɵadvance();
|
|
57357
57351
|
i0.ɵɵproperty("ngClass", ctx_r1.sectionCardClasses());
|
|
57358
57352
|
i0.ɵɵadvance();
|
|
@@ -57362,17 +57356,17 @@ function MetricReportModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1
|
|
|
57362
57356
|
i0.ɵɵadvance(2);
|
|
57363
57357
|
i0.ɵɵproperty("ngClass", ctx_r1.targetValueClasses());
|
|
57364
57358
|
i0.ɵɵadvance();
|
|
57365
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(((
|
|
57359
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(((tmp_41_0 = ctx_r1.metricData()) == null ? null : tmp_41_0.targetValue) || 0, ((tmp_41_0 = ctx_r1.metricData()) == null ? null : tmp_41_0.metric) || "", false), " ");
|
|
57366
57360
|
i0.ɵɵadvance();
|
|
57367
57361
|
i0.ɵɵproperty("ngClass", ctx_r1.descriptionClasses());
|
|
57368
57362
|
i0.ɵɵadvance();
|
|
57369
|
-
i0.ɵɵtextInterpolate4(" Your target represents a ", ctx_r1.formatPercentage(ctx_r1.Math.abs(((
|
|
57363
|
+
i0.ɵɵtextInterpolate4(" Your target represents a ", ctx_r1.formatPercentage(ctx_r1.Math.abs(((tmp_43_0 = ctx_r1.metricData()) == null ? null : tmp_43_0.percentageIncrease) || 0), 1), " ", (((tmp_43_0 = ctx_r1.metricData()) == null ? null : tmp_43_0.percentageIncrease) || 0) >= 0 ? "increase" : "decrease", " from your ", ctx_r1.priorYear(), " actual of ", ctx_r1.formatMetricValue(((tmp_43_0 = ctx_r1.metricData()) == null ? null : tmp_43_0.currentValue) || 0, ((tmp_43_0 = ctx_r1.metricData()) == null ? null : tmp_43_0.metric) || ""), ". ");
|
|
57370
57364
|
i0.ɵɵadvance();
|
|
57371
|
-
i0.ɵɵconditional(ctx_r1.pacingInfo() ?
|
|
57365
|
+
i0.ɵɵconditional(ctx_r1.pacingInfo() ? 64 : -1);
|
|
57372
57366
|
i0.ɵɵadvance();
|
|
57373
|
-
i0.ɵɵconditional(ctx_r1.contributingMetrics().length > 0 ?
|
|
57367
|
+
i0.ɵɵconditional(ctx_r1.contributingMetrics().length > 0 ? 65 : -1);
|
|
57374
57368
|
i0.ɵɵadvance();
|
|
57375
|
-
i0.ɵɵconditional(ctx_r1.pacingChartData() ?
|
|
57369
|
+
i0.ɵɵconditional(ctx_r1.pacingChartData() ? 66 : -1);
|
|
57376
57370
|
i0.ɵɵadvance();
|
|
57377
57371
|
i0.ɵɵproperty("ngClass", ctx_r1.footerClasses());
|
|
57378
57372
|
i0.ɵɵadvance();
|
|
@@ -57416,8 +57410,7 @@ class MetricReportModalComponent {
|
|
|
57416
57410
|
const metric = this.metricData();
|
|
57417
57411
|
if (!pacingResponse || !metric)
|
|
57418
57412
|
return 0;
|
|
57419
|
-
const
|
|
57420
|
-
const soFarMetric = resp.soFarMetricValues?.find((m) => m.metric === metric.metric);
|
|
57413
|
+
const soFarMetric = pacingResponse.soFarMetricValues?.find((m) => m.metric === metric.metric);
|
|
57421
57414
|
if (soFarMetric?.value) {
|
|
57422
57415
|
return parseFloat(soFarMetric.value);
|
|
57423
57416
|
}
|
|
@@ -57428,8 +57421,7 @@ class MetricReportModalComponent {
|
|
|
57428
57421
|
const metric = this.metricData();
|
|
57429
57422
|
if (!pacingResponse || !metric)
|
|
57430
57423
|
return 0;
|
|
57431
|
-
const
|
|
57432
|
-
const lastYearMetric = resp.lastYearMetricValuesMonthly?.find((m) => m.metric === metric.metric);
|
|
57424
|
+
const lastYearMetric = pacingResponse.lastYearSoFarMetricValues?.find((m) => m.metric === metric.metric);
|
|
57433
57425
|
if (lastYearMetric?.value) {
|
|
57434
57426
|
return parseFloat(lastYearMetric.value);
|
|
57435
57427
|
}
|
|
@@ -57466,6 +57458,28 @@ class MetricReportModalComponent {
|
|
|
57466
57458
|
const priorYear = this.priorYear();
|
|
57467
57459
|
return `Jan 1, ${priorYear} - ${yesterday.toLocaleDateString('en-US', { month: 'short', day: 'numeric' })}, ${priorYear}`;
|
|
57468
57460
|
}, ...(ngDevMode ? [{ debugName: "priorYearDateRange" }] : []));
|
|
57461
|
+
this.ytdStartDate = computed(() => {
|
|
57462
|
+
const year = this.currentYear();
|
|
57463
|
+
return `Jan 1, ${year}`;
|
|
57464
|
+
}, ...(ngDevMode ? [{ debugName: "ytdStartDate" }] : []));
|
|
57465
|
+
this.ytdEndDate = computed(() => {
|
|
57466
|
+
const now = new Date();
|
|
57467
|
+
const yesterday = new Date(now);
|
|
57468
|
+
yesterday.setDate(yesterday.getDate() - 1);
|
|
57469
|
+
const year = this.currentYear();
|
|
57470
|
+
return `${yesterday.toLocaleDateString('en-US', { month: 'short', day: 'numeric' })}, ${year}`;
|
|
57471
|
+
}, ...(ngDevMode ? [{ debugName: "ytdEndDate" }] : []));
|
|
57472
|
+
this.priorYearStartDate = computed(() => {
|
|
57473
|
+
const priorYear = this.priorYear();
|
|
57474
|
+
return `Jan 1, ${priorYear}`;
|
|
57475
|
+
}, ...(ngDevMode ? [{ debugName: "priorYearStartDate" }] : []));
|
|
57476
|
+
this.priorYearEndDate = computed(() => {
|
|
57477
|
+
const now = new Date();
|
|
57478
|
+
const yesterday = new Date(now);
|
|
57479
|
+
yesterday.setDate(yesterday.getDate() - 1);
|
|
57480
|
+
const priorYear = this.priorYear();
|
|
57481
|
+
return `${yesterday.toLocaleDateString('en-US', { month: 'short', day: 'numeric' })}, ${priorYear}`;
|
|
57482
|
+
}, ...(ngDevMode ? [{ debugName: "priorYearEndDate" }] : []));
|
|
57469
57483
|
this.gapAnalysisText = computed(() => {
|
|
57470
57484
|
const pacing = this.pacingInfo();
|
|
57471
57485
|
const metric = this.metricData();
|
|
@@ -57649,6 +57663,9 @@ class MetricReportModalComponent {
|
|
|
57649
57663
|
labelClasses() {
|
|
57650
57664
|
return this.isLightMode() ? 'text-slate-500' : 'text-slate-400';
|
|
57651
57665
|
}
|
|
57666
|
+
dateLabelClasses() {
|
|
57667
|
+
return this.isLightMode() ? 'text-slate-400' : 'text-slate-500';
|
|
57668
|
+
}
|
|
57652
57669
|
valueClasses() {
|
|
57653
57670
|
return this.isLightMode() ? 'text-slate-900' : 'text-white';
|
|
57654
57671
|
}
|
|
@@ -57697,6 +57714,11 @@ class MetricReportModalComponent {
|
|
|
57697
57714
|
? 'bg-slate-100 text-slate-500 hover:bg-slate-200 hover:text-slate-700'
|
|
57698
57715
|
: 'bg-slate-700/50 text-slate-400 hover:bg-slate-600/50 hover:text-slate-300';
|
|
57699
57716
|
}
|
|
57717
|
+
headerInfoIconClasses() {
|
|
57718
|
+
return this.isLightMode()
|
|
57719
|
+
? 'bg-slate-100 text-slate-500 hover:bg-slate-200 hover:text-slate-700'
|
|
57720
|
+
: 'bg-slate-700/50 text-slate-400 hover:bg-slate-600/50 hover:text-slate-300';
|
|
57721
|
+
}
|
|
57700
57722
|
footerClasses() {
|
|
57701
57723
|
return this.isLightMode()
|
|
57702
57724
|
? 'bg-slate-50 border-slate-200'
|
|
@@ -57708,8 +57730,8 @@ class MetricReportModalComponent {
|
|
|
57708
57730
|
: 'bg-slate-700 hover:bg-slate-600 text-white';
|
|
57709
57731
|
}
|
|
57710
57732
|
static { this.ɵfac = function MetricReportModalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || MetricReportModalComponent)(); }; }
|
|
57711
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MetricReportModalComponent, selectors: [["symphiq-metric-report-modal"]], inputs: { viewMode: [1, "viewMode"], metricEnum: [1, "metricEnum"], metricData: [1, "metricData"], contributingMetrics: [1, "contributingMetrics"], pacingMetrics: [1, "pacingMetrics"], isOpen: [1, "isOpen"] }, outputs: { closed: "closed" }, decls: 1, vars: 1, consts: [[1, "fixed", "inset-0", "overflow-y-auto", "z-50"], [1, "fixed", "inset-0", "overflow-y-auto", "z-50", 3, "click"], [1, "flex", "items-center", "justify-center", "min-h-screen", "px-4", "pt-4", "pb-20", "text-center", "sm:block", "sm:p-0"], ["aria-hidden", "true", 1, "fixed", "inset-0", "backdrop-blur-md", 3, "ngClass"], ["aria-hidden", "true", 1, "hidden", "sm:inline-block", "sm:align-middle", "sm:h-screen"], [1, "relative", "inline-block", "align-bottom", "rounded-2xl", "text-left", "overflow-hidden", "shadow-xl", "sm:my-8", "sm:align-middle", "sm:w-full", "sm:max-w-4xl", "border", "backdrop-blur-xl", 3, "click", "ngClass"], [1, "px-6", "py-5", "border-b", "backdrop-blur-sm", "sticky", "top-0", "z-10", 3, "ngClass"], [1, "flex", "items-start", "justify-between"], [1, "flex-1"], [1, "
|
|
57712
|
-
i0.ɵɵconditionalCreate(0, MetricReportModalComponent_Conditional_0_Template,
|
|
57733
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: MetricReportModalComponent, selectors: [["symphiq-metric-report-modal"]], inputs: { viewMode: [1, "viewMode"], metricEnum: [1, "metricEnum"], metricData: [1, "metricData"], contributingMetrics: [1, "contributingMetrics"], pacingMetrics: [1, "pacingMetrics"], isOpen: [1, "isOpen"] }, outputs: { closed: "closed" }, decls: 1, vars: 1, consts: [[1, "fixed", "inset-0", "overflow-y-auto", "z-50"], [1, "fixed", "inset-0", "overflow-y-auto", "z-50", 3, "click"], [1, "flex", "items-center", "justify-center", "min-h-screen", "px-4", "pt-4", "pb-20", "text-center", "sm:block", "sm:p-0"], ["aria-hidden", "true", 1, "fixed", "inset-0", "backdrop-blur-md", 3, "ngClass"], ["aria-hidden", "true", 1, "hidden", "sm:inline-block", "sm:align-middle", "sm:h-screen"], [1, "relative", "inline-block", "align-bottom", "rounded-2xl", "text-left", "overflow-hidden", "shadow-xl", "sm:my-8", "sm:align-middle", "sm:w-full", "sm:max-w-4xl", "border", "backdrop-blur-xl", 3, "click", "ngClass"], [1, "px-6", "py-5", "border-b", "backdrop-blur-sm", "sticky", "top-0", "z-10", 3, "ngClass"], [1, "flex", "items-start", "justify-between"], [1, "flex-1"], [1, "flex", "items-center", "gap-3", "mb-2"], [1, "text-xl", "font-bold", 3, "ngClass"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "right", 1, "flex-shrink-0", "w-7", "h-7", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "ngClass", "libSymphiqTooltip"], [1, "ml-4", "transition-all", "rounded-lg", "p-1", "hover:scale-110", "active:scale-90", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M6 18L18 6M6 6l12 12"], [1, "px-6", "py-6", "max-h-[70vh]", "overflow-y-auto", "backdrop-blur-sm", 3, "ngClass"], [1, "rounded-xl", "p-6", "mb-6", 3, "ngClass"], [1, "text-sm", "font-semibold", "uppercase", "tracking-wider", "mb-4", 3, "ngClass"], [1, "grid", "grid-cols-1", "sm:grid-cols-2", "lg:grid-cols-3", "gap-4"], [1, "mb-1.5"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", 3, "ngClass"], [1, "text-xs", 3, "ngClass"], [1, "text-xl", "font-bold", "mb-2", 3, "ngClass"], [3, "viewMode", "percentageChange", "metric", "priorYear", "isCompact"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1.5", 3, "ngClass"], [1, "mb-4"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-2", 3, "ngClass"], [1, "text-3xl", "font-extrabold", "mb-3", 3, "ngClass"], [1, "text-sm", "leading-relaxed", 3, "ngClass"], [1, "rounded-xl", "p-6", 3, "ngClass"], [1, "px-6", "py-4", "border-t", 3, "ngClass"], [1, "w-full", "px-4", "py-2", "rounded-lg", "transition-all", "font-medium", "hover:scale-[1.02]", "active:scale-[0.98]", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"], [3, "viewMode", "pacingPercentage", "status", "showAsFullText", "isCompact", "showEmphasizedPercentage"], [1, "space-y-2"], [1, "flex", "justify-between", "text-xs", 3, "ngClass"], [1, "h-3", "rounded-full", "overflow-hidden", 3, "ngClass"], [1, "h-full", "transition-all", "duration-500", 3, "ngClass"], [1, "overflow-x-auto"], [1, "w-full"], [1, "border-b", 3, "ngClass"], [1, "text-left", "py-3", "px-4", "text-xs", "font-semibold", "uppercase", "tracking-wider"], [1, "text-right", "py-3", "px-4", "text-xs", "font-semibold", "uppercase", "tracking-wider"], [1, "border-b", "transition-colors", 3, "ngClass"], [1, "py-3", "px-4"], [1, "flex", "items-center", "gap-2"], [1, "text-sm", "font-medium"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "right", 1, "flex-shrink-0", "w-5", "h-5", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "ngClass", "libSymphiqTooltip"], [1, "py-3", "px-4", "text-right"], [1, "text-sm", "font-semibold", 3, "ngClass"], [1, "flex", "items-center", "justify-end", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "text-emerald-500"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3", "h-3"], [1, "min-h-[400px]"], [3, "chart", "showAxisLabels", "viewMode", "currencySymbol"], [1, "text-sm", "leading-relaxed", "mt-4", 3, "ngClass"]], template: function MetricReportModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
57734
|
+
i0.ɵɵconditionalCreate(0, MetricReportModalComponent_Conditional_0_Template, 70, 51, "div", 0);
|
|
57713
57735
|
} if (rf & 2) {
|
|
57714
57736
|
i0.ɵɵconditional(ctx.isOpen() ? 0 : -1);
|
|
57715
57737
|
} }, dependencies: [CommonModule, i1$1.NgClass, PacingStatusBadgeComponent,
|
|
@@ -57782,34 +57804,24 @@ class MetricReportModalComponent {
|
|
|
57782
57804
|
<div [ngClass]="headerClasses()" class="px-6 py-5 border-b backdrop-blur-sm sticky top-0 z-10">
|
|
57783
57805
|
<div class="flex items-start justify-between">
|
|
57784
57806
|
<div class="flex-1">
|
|
57785
|
-
<
|
|
57786
|
-
|
|
57787
|
-
|
|
57788
|
-
|
|
57789
|
-
|
|
57790
|
-
|
|
57791
|
-
|
|
57792
|
-
|
|
57793
|
-
|
|
57794
|
-
|
|
57795
|
-
|
|
57796
|
-
|
|
57797
|
-
|
|
57798
|
-
|
|
57799
|
-
|
|
57800
|
-
|
|
57801
|
-
|
|
57802
|
-
|
|
57803
|
-
viewBox="0 0 24 24">
|
|
57804
|
-
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
|
|
57805
|
-
</svg>
|
|
57806
|
-
</button>
|
|
57807
|
-
}
|
|
57808
|
-
@if (showDefinition() && metricData()?.description) {
|
|
57809
|
-
<div [ngClass]="definitionBoxClasses()" class="mt-3 p-4 rounded-lg border text-sm leading-relaxed">
|
|
57810
|
-
{{ metricData()?.description }}
|
|
57811
|
-
</div>
|
|
57812
|
-
}
|
|
57807
|
+
<div class="flex items-center gap-3 mb-2">
|
|
57808
|
+
<h3 [ngClass]="titleClasses()" class="text-xl font-bold">
|
|
57809
|
+
{{ metricTitle() }}
|
|
57810
|
+
</h3>
|
|
57811
|
+
@if (metricData()?.description) {
|
|
57812
|
+
<button
|
|
57813
|
+
type="button"
|
|
57814
|
+
[ngClass]="headerInfoIconClasses()"
|
|
57815
|
+
class="flex-shrink-0 w-7 h-7 rounded-full inline-flex items-center justify-center transition-colors"
|
|
57816
|
+
[libSymphiqTooltip]="getMarkdownTooltipContent(metricData()!.description!, metricTitle())"
|
|
57817
|
+
tooltipType="markdown"
|
|
57818
|
+
tooltipPosition="right">
|
|
57819
|
+
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
57820
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
|
|
57821
|
+
</svg>
|
|
57822
|
+
</button>
|
|
57823
|
+
}
|
|
57824
|
+
</div>
|
|
57813
57825
|
</div>
|
|
57814
57826
|
<button
|
|
57815
57827
|
(click)="close()"
|
|
@@ -57834,9 +57846,17 @@ class MetricReportModalComponent {
|
|
|
57834
57846
|
<div class="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
|
|
57835
57847
|
<!-- YTD Value -->
|
|
57836
57848
|
<div>
|
|
57837
|
-
<
|
|
57838
|
-
|
|
57839
|
-
|
|
57849
|
+
<div class="mb-1.5">
|
|
57850
|
+
<p [ngClass]="labelClasses()" class="text-xs font-medium uppercase tracking-wider">
|
|
57851
|
+
Year to date
|
|
57852
|
+
</p>
|
|
57853
|
+
<p [ngClass]="dateLabelClasses()" class="text-xs">
|
|
57854
|
+
{{ ytdStartDate() }}
|
|
57855
|
+
</p>
|
|
57856
|
+
<p [ngClass]="dateLabelClasses()" class="text-xs">
|
|
57857
|
+
{{ ytdEndDate() }}
|
|
57858
|
+
</p>
|
|
57859
|
+
</div>
|
|
57840
57860
|
<p [ngClass]="valueClasses()" class="text-xl font-bold mb-2">
|
|
57841
57861
|
{{ formatMetricValue(ytdValue(), metricData()?.metric || '') }}
|
|
57842
57862
|
</p>
|
|
@@ -57853,9 +57873,17 @@ class MetricReportModalComponent {
|
|
|
57853
57873
|
|
|
57854
57874
|
<!-- Same Period Last Year -->
|
|
57855
57875
|
<div>
|
|
57856
|
-
<
|
|
57857
|
-
|
|
57858
|
-
|
|
57876
|
+
<div class="mb-1.5">
|
|
57877
|
+
<p [ngClass]="labelClasses()" class="text-xs font-medium uppercase tracking-wider">
|
|
57878
|
+
Same period last year
|
|
57879
|
+
</p>
|
|
57880
|
+
<p [ngClass]="dateLabelClasses()" class="text-xs">
|
|
57881
|
+
{{ priorYearStartDate() }}
|
|
57882
|
+
</p>
|
|
57883
|
+
<p [ngClass]="dateLabelClasses()" class="text-xs">
|
|
57884
|
+
{{ priorYearEndDate() }}
|
|
57885
|
+
</p>
|
|
57886
|
+
</div>
|
|
57859
57887
|
<p [ngClass]="valueClasses()" class="text-xl font-bold">
|
|
57860
57888
|
{{ formatMetricValue(samePeriodLastYearValue(), metricData()?.metric || '') }}
|
|
57861
57889
|
</p>
|
|
@@ -58063,7 +58091,7 @@ class MetricReportModalComponent {
|
|
|
58063
58091
|
`
|
|
58064
58092
|
}]
|
|
58065
58093
|
}], 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"] }] }); })();
|
|
58066
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MetricReportModalComponent, { className: "MetricReportModalComponent", filePath: "lib/components/revenue-calculator-dashboard/metric-report-modal.component.ts", lineNumber:
|
|
58094
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(MetricReportModalComponent, { className: "MetricReportModalComponent", filePath: "lib/components/revenue-calculator-dashboard/metric-report-modal.component.ts", lineNumber: 350 }); })();
|
|
58067
58095
|
|
|
58068
58096
|
const _c0$q = ["absoluteInputRef"];
|
|
58069
58097
|
const _c1$b = ["percentageInputRef"];
|