@eric-emg/symphiq-components 1.2.268 → 1.2.269

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.
@@ -58997,17 +58997,17 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_27_Template(rf
58997
58997
  i0.ɵɵelementStart(0, "div", 18);
58998
58998
  i0.ɵɵnamespaceSVG();
58999
58999
  i0.ɵɵelementStart(1, "svg", 19);
59000
- i0.ɵɵelement(2, "path", 31);
59000
+ i0.ɵɵelement(2, "path", 32);
59001
59001
  i0.ɵɵelementEnd();
59002
59002
  i0.ɵɵnamespaceHTML();
59003
- i0.ɵɵelementStart(3, "div")(4, "div", 32)(5, "p", 21);
59003
+ i0.ɵɵelementStart(3, "div")(4, "div", 33)(5, "p", 21);
59004
59004
  i0.ɵɵtext(6, " Current Pace Projection ");
59005
59005
  i0.ɵɵelementEnd();
59006
- i0.ɵɵelementStart(7, "button", 33);
59006
+ i0.ɵɵelementStart(7, "button", 34);
59007
59007
  i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_27_Template_button_click_7_listener($event) { i0.ɵɵrestoreView(_r3); return i0.ɵɵresetView($event.stopPropagation()); });
59008
59008
  i0.ɵɵnamespaceSVG();
59009
- i0.ɵɵelementStart(8, "svg", 34);
59010
- i0.ɵɵelement(9, "path", 35);
59009
+ i0.ɵɵelementStart(8, "svg", 35);
59010
+ i0.ɵɵelement(9, "path", 36);
59011
59011
  i0.ɵɵelementEnd()()();
59012
59012
  i0.ɵɵnamespaceHTML();
59013
59013
  i0.ɵɵelementStart(10, "p", 22);
@@ -59028,11 +59028,11 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_27_Template(rf
59028
59028
  } }
59029
59029
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template(rf, ctx) { if (rf & 1) {
59030
59030
  const _r4 = i0.ɵɵgetCurrentView();
59031
- i0.ɵɵelementStart(0, "input", 37, 0);
59031
+ i0.ɵɵelementStart(0, "input", 38, 0);
59032
59032
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.absoluteInput, $event) || (ctx_r1.absoluteInput = $event); return i0.ɵɵresetView($event); });
59033
59033
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template_input_ngModelChange_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onAbsoluteInputChange()); });
59034
59034
  i0.ɵɵelementEnd();
59035
- i0.ɵɵelementStart(2, "span", 38);
59035
+ i0.ɵɵelementStart(2, "span", 39);
59036
59036
  i0.ɵɵtext(3, " % ");
59037
59037
  i0.ɵɵelementEnd();
59038
59038
  } if (rf & 2) {
@@ -59044,10 +59044,10 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional
59044
59044
  } }
59045
59045
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template(rf, ctx) { if (rf & 1) {
59046
59046
  const _r5 = i0.ɵɵgetCurrentView();
59047
- i0.ɵɵelementStart(0, "span", 39);
59047
+ i0.ɵɵelementStart(0, "span", 40);
59048
59048
  i0.ɵɵtext(1, " $ ");
59049
59049
  i0.ɵɵelementEnd();
59050
- i0.ɵɵelementStart(2, "input", 40, 0);
59050
+ i0.ɵɵelementStart(2, "input", 41, 0);
59051
59051
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template_input_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.absoluteInput, $event) || (ctx_r1.absoluteInput = $event); return i0.ɵɵresetView($event); });
59052
59052
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template_input_ngModelChange_2_listener() { i0.ɵɵrestoreView(_r5); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onAbsoluteInputChange()); });
59053
59053
  i0.ɵɵelementEnd();
@@ -59060,7 +59060,7 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional
59060
59060
  } }
59061
59061
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template(rf, ctx) { if (rf & 1) {
59062
59062
  const _r6 = i0.ɵɵgetCurrentView();
59063
- i0.ɵɵelementStart(0, "input", 41, 0);
59063
+ i0.ɵɵelementStart(0, "input", 42, 0);
59064
59064
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template_input_ngModelChange_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); i0.ɵɵtwoWayBindingSet(ctx_r1.absoluteInput, $event) || (ctx_r1.absoluteInput = $event); return i0.ɵɵresetView($event); });
59065
59065
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template_input_ngModelChange_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onAbsoluteInputChange()); })("keydown", function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template_input_keydown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.onIntegerKeyDown($event)); });
59066
59066
  i0.ɵɵelementEnd();
@@ -59071,7 +59071,7 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional
59071
59071
  } }
59072
59072
  function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Template(rf, ctx) { if (rf & 1) {
59073
59073
  i0.ɵɵelementStart(0, "div", 26);
59074
- i0.ɵɵconditionalCreate(1, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template, 4, 3)(2, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template, 4, 3)(3, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template, 2, 2, "input", 36);
59074
+ i0.ɵɵconditionalCreate(1, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_1_Template, 4, 3)(2, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_2_Template, 4, 3)(3, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Conditional_3_Template, 2, 2, "input", 37);
59075
59075
  i0.ɵɵelementEnd();
59076
59076
  } if (rf & 2) {
59077
59077
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -59080,11 +59080,11 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_34_Template(rf
59080
59080
  } }
59081
59081
  function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template(rf, ctx) { if (rf & 1) {
59082
59082
  const _r7 = i0.ɵɵgetCurrentView();
59083
- i0.ɵɵelementStart(0, "div", 26)(1, "input", 42, 1);
59083
+ i0.ɵɵelementStart(0, "div", 26)(1, "input", 43, 1);
59084
59084
  i0.ɵɵtwoWayListener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); i0.ɵɵtwoWayBindingSet(ctx_r1.percentageInput, $event) || (ctx_r1.percentageInput = $event); return i0.ɵɵresetView($event); });
59085
59085
  i0.ɵɵlistener("ngModelChange", function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onPercentageInputChange()); });
59086
59086
  i0.ɵɵelementEnd();
59087
- i0.ɵɵelementStart(3, "span", 38);
59087
+ i0.ɵɵelementStart(3, "span", 39);
59088
59088
  i0.ɵɵtext(4, " % ");
59089
59089
  i0.ɵɵelementEnd()();
59090
59090
  } if (rf & 2) {
@@ -59095,81 +59095,91 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template(rf
59095
59095
  i0.ɵɵadvance(2);
59096
59096
  i0.ɵɵproperty("ngClass", ctx_r1.inputSuffixClasses());
59097
59097
  } }
59098
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_17_Template(rf, ctx) { if (rf & 1) {
59098
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_7_Template(rf, ctx) { if (rf & 1) {
59099
+ i0.ɵɵelementStart(0, "p", 46);
59100
+ i0.ɵɵtext(1);
59101
+ i0.ɵɵelementEnd();
59102
+ } if (rf & 2) {
59103
+ const ctx_r1 = i0.ɵɵnextContext(3);
59104
+ i0.ɵɵproperty("ngClass", ctx_r1.originalValueClasses());
59105
+ i0.ɵɵadvance();
59106
+ i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.initialTargetValue()), " ");
59107
+ } }
59108
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_19_Template(rf, ctx) { if (rf & 1) {
59099
59109
  i0.ɵɵtext(0);
59100
59110
  } if (rf & 2) {
59101
59111
  const ctx_r1 = i0.ɵɵnextContext(3);
59102
59112
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedIncreaseAmount()), " ");
59103
59113
  } }
59104
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_18_Template(rf, ctx) { if (rf & 1) {
59114
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template(rf, ctx) { if (rf & 1) {
59105
59115
  i0.ɵɵtext(0, " -- ");
59106
59116
  } }
59107
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_23_Template(rf, ctx) { if (rf & 1) {
59117
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template(rf, ctx) { if (rf & 1) {
59108
59118
  i0.ɵɵtext(0);
59109
59119
  } if (rf & 2) {
59110
59120
  const ctx_r1 = i0.ɵɵnextContext(3);
59111
59121
  i0.ɵɵtextInterpolate2(" ", ctx_r1.animatedPercentageGrowth() >= 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.animatedPercentageGrowth(), 1), " ");
59112
59122
  } }
59113
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_24_Template(rf, ctx) { if (rf & 1) {
59123
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_26_Template(rf, ctx) { if (rf & 1) {
59114
59124
  i0.ɵɵtext(0, " -- ");
59115
59125
  } }
59116
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_11_Template(rf, ctx) { if (rf & 1) {
59126
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_11_Template(rf, ctx) { if (rf & 1) {
59117
59127
  i0.ɵɵtext(0);
59118
59128
  } if (rf & 2) {
59119
59129
  const ctx_r1 = i0.ɵɵnextContext(4);
59120
59130
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedGapAmount()), " ");
59121
59131
  } }
59122
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_12_Template(rf, ctx) { if (rf & 1) {
59132
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_12_Template(rf, ctx) { if (rf & 1) {
59123
59133
  i0.ɵɵtext(0, " -- ");
59124
59134
  } }
59125
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_0_Template(rf, ctx) { if (rf & 1) {
59135
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Conditional_0_Template(rf, ctx) { if (rf & 1) {
59126
59136
  i0.ɵɵtext(0);
59127
59137
  } if (rf & 2) {
59128
59138
  const ctx_r1 = i0.ɵɵnextContext(5);
59129
59139
  i0.ɵɵtextInterpolate1(" +", ctx_r1.formatPercentage(ctx_r1.Math.abs(ctx_r1.animatedGapPercentage()), 1), " ");
59130
59140
  } }
59131
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_1_Template(rf, ctx) { if (rf & 1) {
59141
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Conditional_1_Template(rf, ctx) { if (rf & 1) {
59132
59142
  i0.ɵɵtext(0);
59133
59143
  } if (rf & 2) {
59134
59144
  const ctx_r1 = i0.ɵɵnextContext(5);
59135
59145
  i0.ɵɵtextInterpolate2(" ", ctx_r1.animatedGapPercentage() > 0 ? "+" : "", "", ctx_r1.formatPercentage(ctx_r1.animatedGapPercentage(), 1), " ");
59136
59146
  } }
59137
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Template(rf, ctx) { if (rf & 1) {
59138
- i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_0_Template, 1, 1)(1, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Conditional_1_Template, 1, 2);
59147
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Template(rf, ctx) { if (rf & 1) {
59148
+ i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Conditional_0_Template, 1, 1)(1, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Conditional_1_Template, 1, 2);
59139
59149
  } if (rf & 2) {
59140
59150
  const ctx_r1 = i0.ɵɵnextContext(4);
59141
59151
  i0.ɵɵconditional(ctx_r1.isPaceAhead() ? 0 : 1);
59142
59152
  } }
59143
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_22_Template(rf, ctx) { if (rf & 1) {
59153
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_22_Template(rf, ctx) { if (rf & 1) {
59144
59154
  i0.ɵɵtext(0, " -- ");
59145
59155
  } }
59146
- function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template(rf, ctx) { if (rf & 1) {
59156
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Template(rf, ctx) { if (rf & 1) {
59147
59157
  const _r8 = i0.ɵɵgetCurrentView();
59148
- i0.ɵɵelementStart(0, "div", 44)(1, "div", 45);
59149
- i0.ɵɵelement(2, "div", 46);
59150
- i0.ɵɵelementStart(3, "span", 47);
59158
+ i0.ɵɵelementStart(0, "div", 47)(1, "div", 48);
59159
+ i0.ɵɵelement(2, "div", 49);
59160
+ i0.ɵɵelementStart(3, "span", 50);
59151
59161
  i0.ɵɵtext(4);
59152
59162
  i0.ɵɵelementEnd();
59153
- i0.ɵɵelement(5, "div", 46);
59163
+ i0.ɵɵelement(5, "div", 49);
59154
59164
  i0.ɵɵelementEnd();
59155
- i0.ɵɵelementStart(6, "div", 48)(7, "div")(8, "p", 49);
59165
+ i0.ɵɵelementStart(6, "div", 51)(7, "div")(8, "p", 52);
59156
59166
  i0.ɵɵtext(9);
59157
59167
  i0.ɵɵelementEnd();
59158
- i0.ɵɵelementStart(10, "p", 50);
59159
- i0.ɵɵconditionalCreate(11, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_11_Template, 1, 1)(12, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_12_Template, 1, 0);
59168
+ i0.ɵɵelementStart(10, "p", 53);
59169
+ i0.ɵɵconditionalCreate(11, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_11_Template, 1, 1)(12, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_12_Template, 1, 0);
59160
59170
  i0.ɵɵelementEnd()();
59161
- i0.ɵɵelementStart(13, "div")(14, "div", 51)(15, "p", 21);
59171
+ i0.ɵɵelementStart(13, "div")(14, "div", 54)(15, "p", 21);
59162
59172
  i0.ɵɵtext(16);
59163
59173
  i0.ɵɵelementEnd();
59164
- i0.ɵɵelementStart(17, "button", 33);
59165
- i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template_button_click_17_listener($event) { i0.ɵɵrestoreView(_r8); return i0.ɵɵresetView($event.stopPropagation()); });
59174
+ i0.ɵɵelementStart(17, "button", 34);
59175
+ i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Template_button_click_17_listener($event) { i0.ɵɵrestoreView(_r8); return i0.ɵɵresetView($event.stopPropagation()); });
59166
59176
  i0.ɵɵnamespaceSVG();
59167
- i0.ɵɵelementStart(18, "svg", 34);
59168
- i0.ɵɵelement(19, "path", 35);
59177
+ i0.ɵɵelementStart(18, "svg", 35);
59178
+ i0.ɵɵelement(19, "path", 36);
59169
59179
  i0.ɵɵelementEnd()()();
59170
59180
  i0.ɵɵnamespaceHTML();
59171
- i0.ɵɵelementStart(20, "p", 50);
59172
- i0.ɵɵconditionalCreate(21, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_21_Template, 2, 1)(22, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Conditional_22_Template, 1, 0);
59181
+ i0.ɵɵelementStart(20, "p", 53);
59182
+ i0.ɵɵconditionalCreate(21, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_21_Template, 2, 1)(22, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Conditional_22_Template, 1, 0);
59173
59183
  i0.ɵɵelementEnd()()()();
59174
59184
  } if (rf & 2) {
59175
59185
  const ctx_r1 = i0.ɵɵnextContext(3);
@@ -59204,29 +59214,31 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59204
59214
  i0.ɵɵelementStart(0, "div", 27)(1, "div")(2, "p", 21);
59205
59215
  i0.ɵɵtext(3);
59206
59216
  i0.ɵɵelementEnd();
59207
- i0.ɵɵelementStart(4, "p", 43);
59208
- i0.ɵɵtext(5);
59217
+ i0.ɵɵelementStart(4, "div", 44)(5, "p", 45);
59218
+ i0.ɵɵtext(6);
59219
+ i0.ɵɵelementEnd();
59220
+ i0.ɵɵconditionalCreate(7, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_7_Template, 2, 2, "p", 46);
59209
59221
  i0.ɵɵelementEnd()();
59210
- i0.ɵɵelementStart(6, "div", 44)(7, "div", 45);
59211
- i0.ɵɵelement(8, "div", 46);
59212
- i0.ɵɵelementStart(9, "span", 47);
59213
- i0.ɵɵtext(10);
59222
+ i0.ɵɵelementStart(8, "div", 47)(9, "div", 48);
59223
+ i0.ɵɵelement(10, "div", 49);
59224
+ i0.ɵɵelementStart(11, "span", 50);
59225
+ i0.ɵɵtext(12);
59214
59226
  i0.ɵɵelementEnd();
59215
- i0.ɵɵelement(11, "div", 46);
59227
+ i0.ɵɵelement(13, "div", 49);
59216
59228
  i0.ɵɵelementEnd();
59217
- i0.ɵɵelementStart(12, "div", 48)(13, "div")(14, "p", 49);
59218
- i0.ɵɵtext(15);
59229
+ i0.ɵɵelementStart(14, "div", 51)(15, "div")(16, "p", 52);
59230
+ i0.ɵɵtext(17);
59219
59231
  i0.ɵɵelementEnd();
59220
- i0.ɵɵelementStart(16, "p", 50);
59221
- i0.ɵɵconditionalCreate(17, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_17_Template, 1, 1)(18, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_18_Template, 1, 0);
59232
+ i0.ɵɵelementStart(18, "p", 53);
59233
+ i0.ɵɵconditionalCreate(19, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_19_Template, 1, 1)(20, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_20_Template, 1, 0);
59222
59234
  i0.ɵɵelementEnd()();
59223
- i0.ɵɵelementStart(19, "div")(20, "p", 49);
59224
- i0.ɵɵtext(21);
59235
+ i0.ɵɵelementStart(21, "div")(22, "p", 52);
59236
+ i0.ɵɵtext(23);
59225
59237
  i0.ɵɵelementEnd();
59226
- i0.ɵɵelementStart(22, "p", 50);
59227
- i0.ɵɵconditionalCreate(23, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_23_Template, 1, 2)(24, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_24_Template, 1, 0);
59238
+ i0.ɵɵelementStart(24, "p", 53);
59239
+ i0.ɵɵconditionalCreate(25, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template, 1, 2)(26, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_26_Template, 1, 0);
59228
59240
  i0.ɵɵelementEnd()()()();
59229
- i0.ɵɵconditionalCreate(25, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_25_Template, 23, 14, "div", 44);
59241
+ i0.ɵɵconditionalCreate(27, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Conditional_27_Template, 23, 14, "div", 47);
59230
59242
  i0.ɵɵelementEnd();
59231
59243
  } if (rf & 2) {
59232
59244
  const ctx_r1 = i0.ɵɵnextContext(2);
@@ -59235,10 +59247,12 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59235
59247
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59236
59248
  i0.ɵɵadvance();
59237
59249
  i0.ɵɵtextInterpolate2(" ", ctx_r1.currentYear(), " ", ctx_r1.metricTitle(), " Target ");
59238
- i0.ɵɵadvance();
59250
+ i0.ɵɵadvance(2);
59239
59251
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedValueClasses());
59240
59252
  i0.ɵɵadvance();
59241
59253
  i0.ɵɵtextInterpolate1(" ", ctx_r1.formatMetricValue(ctx_r1.animatedTarget()), " ");
59254
+ i0.ɵɵadvance();
59255
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() ? 7 : -1);
59242
59256
  i0.ɵɵadvance(3);
59243
59257
  i0.ɵɵproperty("ngClass", ctx_r1.dividerBorderClasses());
59244
59258
  i0.ɵɵadvance();
@@ -59254,7 +59268,7 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59254
59268
  i0.ɵɵadvance();
59255
59269
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59256
59270
  i0.ɵɵadvance();
59257
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 17 : 18);
59271
+ i0.ɵɵconditional(ctx_r1.isTargetValid() ? 19 : 20);
59258
59272
  i0.ɵɵadvance(3);
59259
59273
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedLabelClasses());
59260
59274
  i0.ɵɵadvance();
@@ -59262,9 +59276,19 @@ function EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template(rf
59262
59276
  i0.ɵɵadvance();
59263
59277
  i0.ɵɵproperty("ngClass", ctx_r1.calculatedSecondaryClasses());
59264
59278
  i0.ɵɵadvance();
59265
- i0.ɵɵconditional(ctx_r1.isTargetValid() ? 23 : 24);
59279
+ i0.ɵɵconditional(ctx_r1.isTargetValid() ? 25 : 26);
59266
59280
  i0.ɵɵadvance(2);
59267
- i0.ɵɵconditional(ctx_r1.currentPaceProjectionRaw() > 0 ? 25 : -1);
59281
+ i0.ɵɵconditional(ctx_r1.currentPaceProjectionRaw() > 0 ? 27 : -1);
59282
+ } }
59283
+ function EditMetricTargetModalComponent_Conditional_0_Conditional_40_Template(rf, ctx) { if (rf & 1) {
59284
+ const _r9 = i0.ɵɵgetCurrentView();
59285
+ i0.ɵɵelementStart(0, "button", 29);
59286
+ i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Conditional_40_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.resetToInitial()); });
59287
+ i0.ɵɵtext(1, " Reset ");
59288
+ i0.ɵɵelementEnd();
59289
+ } if (rf & 2) {
59290
+ const ctx_r1 = i0.ɵɵnextContext(2);
59291
+ i0.ɵɵproperty("ngClass", ctx_r1.resetButtonClasses());
59268
59292
  } }
59269
59293
  function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
59270
59294
  const _r1 = i0.ɵɵgetCurrentView();
@@ -59312,15 +59336,16 @@ function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf
59312
59336
  i0.ɵɵelementEnd()();
59313
59337
  i0.ɵɵconditionalCreate(34, EditMetricTargetModalComponent_Conditional_0_Conditional_34_Template, 4, 1, "div", 26)(35, EditMetricTargetModalComponent_Conditional_0_Conditional_35_Template, 5, 3, "div", 26);
59314
59338
  i0.ɵɵelementEnd()();
59315
- i0.ɵɵconditionalCreate(36, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template, 26, 19, "div", 27);
59339
+ i0.ɵɵconditionalCreate(36, EditMetricTargetModalComponent_Conditional_0_Conditional_36_Template, 28, 20, "div", 27);
59316
59340
  i0.ɵɵelementEnd()();
59317
59341
  i0.ɵɵelementStart(37, "div", 28)(38, "button", 29);
59318
59342
  i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Template_button_click_38_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.close()); });
59319
59343
  i0.ɵɵtext(39, " Cancel ");
59320
59344
  i0.ɵɵelementEnd();
59321
- i0.ɵɵelementStart(40, "button", 30);
59322
- i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Template_button_click_40_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.applyTarget()); });
59323
- i0.ɵɵtext(41, " Apply Target ");
59345
+ i0.ɵɵconditionalCreate(40, EditMetricTargetModalComponent_Conditional_0_Conditional_40_Template, 2, 1, "button", 30);
59346
+ i0.ɵɵelementStart(41, "button", 31);
59347
+ i0.ɵɵlistener("click", function EditMetricTargetModalComponent_Conditional_0_Template_button_click_41_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.applyTarget()); });
59348
+ i0.ɵɵtext(42, " Apply Target ");
59324
59349
  i0.ɵɵelementEnd()()()()();
59325
59350
  } if (rf & 2) {
59326
59351
  const ctx_r1 = i0.ɵɵnextContext();
@@ -59367,6 +59392,8 @@ function EditMetricTargetModalComponent_Conditional_0_Template(rf, ctx) { if (rf
59367
59392
  i0.ɵɵadvance();
59368
59393
  i0.ɵɵproperty("ngClass", ctx_r1.cancelButtonClasses());
59369
59394
  i0.ɵɵadvance(2);
59395
+ i0.ɵɵconditional(ctx_r1.hasChangedFromInitial() ? 40 : -1);
59396
+ i0.ɵɵadvance();
59370
59397
  i0.ɵɵproperty("disabled", !ctx_r1.isTargetValid())("ngClass", ctx_r1.applyButtonClasses());
59371
59398
  } }
59372
59399
  class EditMetricTargetModalComponent {
@@ -59382,12 +59409,18 @@ class EditMetricTargetModalComponent {
59382
59409
  this.inputMode = signal('absolute', ...(ngDevMode ? [{ debugName: "inputMode" }] : []));
59383
59410
  this.absoluteInput = signal(null, ...(ngDevMode ? [{ debugName: "absoluteInput" }] : []));
59384
59411
  this.percentageInput = signal(null, ...(ngDevMode ? [{ debugName: "percentageInput" }] : []));
59412
+ this.initialTargetValue = signal(0, ...(ngDevMode ? [{ debugName: "initialTargetValue" }] : []));
59385
59413
  this.animatedTarget = signal(0, ...(ngDevMode ? [{ debugName: "animatedTarget" }] : []));
59386
59414
  this.animatedIncreaseAmount = signal(0, ...(ngDevMode ? [{ debugName: "animatedIncreaseAmount" }] : []));
59387
59415
  this.animatedPercentageGrowth = signal(0, ...(ngDevMode ? [{ debugName: "animatedPercentageGrowth" }] : []));
59388
59416
  this.animatedGapAmount = signal(0, ...(ngDevMode ? [{ debugName: "animatedGapAmount" }] : []));
59389
59417
  this.animatedGapPercentage = signal(0, ...(ngDevMode ? [{ debugName: "animatedGapPercentage" }] : []));
59390
59418
  this.animationFrameId = null;
59419
+ this.hasChangedFromInitial = computed(() => {
59420
+ const current = this.calculatedTarget();
59421
+ const initial = this.initialTargetValue();
59422
+ return initial > 0 && Math.abs(current - initial) > 0.001;
59423
+ }, ...(ngDevMode ? [{ debugName: "hasChangedFromInitial" }] : []));
59391
59424
  this.currentYear = computed(() => new Date().getFullYear(), ...(ngDevMode ? [{ debugName: "currentYear" }] : []));
59392
59425
  this.priorYear = computed(() => new Date().getFullYear() - 1, ...(ngDevMode ? [{ debugName: "priorYear" }] : []));
59393
59426
  this.metricTitle = computed(() => {
@@ -59535,6 +59568,7 @@ class EditMetricTargetModalComponent {
59535
59568
  ? Math.round(metricData.targetValue)
59536
59569
  : metricData.targetValue;
59537
59570
  this.absoluteInput.set(value);
59571
+ this.initialTargetValue.set(value);
59538
59572
  }
59539
59573
  afterNextRender(() => {
59540
59574
  this.focusCurrentInput();
@@ -59543,6 +59577,15 @@ class EditMetricTargetModalComponent {
59543
59577
  }
59544
59578
  });
59545
59579
  }
59580
+ resetToInitial() {
59581
+ const initial = this.initialTargetValue();
59582
+ if (initial > 0) {
59583
+ this.inputMode.set('absolute');
59584
+ this.absoluteInput.set(initial);
59585
+ this.percentageInput.set(null);
59586
+ this.updateAnimatedValuesImmediate();
59587
+ }
59588
+ }
59546
59589
  triggerAnimation() {
59547
59590
  const target = this.calculatedTarget();
59548
59591
  const increaseAmt = Math.abs(this.increaseAmount());
@@ -59851,6 +59894,16 @@ class EditMetricTargetModalComponent {
59851
59894
  ? 'bg-purple-600 text-white hover:bg-purple-500 border border-purple-500 hover:border-purple-400'
59852
59895
  : 'bg-purple-600 text-white hover:bg-purple-700 border border-purple-600 hover:border-purple-700';
59853
59896
  }
59897
+ resetButtonClasses() {
59898
+ return this.viewMode() === ViewModeEnum.DARK
59899
+ ? 'bg-transparent text-amber-400 hover:bg-amber-900/30 hover:text-amber-300 border border-amber-600/50 hover:border-amber-500/50'
59900
+ : 'bg-transparent text-amber-600 hover:bg-amber-50 hover:text-amber-700 border border-amber-400 hover:border-amber-500';
59901
+ }
59902
+ originalValueClasses() {
59903
+ return this.viewMode() === ViewModeEnum.DARK
59904
+ ? 'text-purple-400/70'
59905
+ : 'text-purple-500/70';
59906
+ }
59854
59907
  static { this.ɵfac = function EditMetricTargetModalComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EditMetricTargetModalComponent)(i0.ɵɵdirectiveInject(i0.Injector)); }; }
59855
59908
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditMetricTargetModalComponent, selectors: [["symphiq-edit-metric-target-modal"]], viewQuery: function EditMetricTargetModalComponent_Query(rf, ctx) { if (rf & 1) {
59856
59909
  i0.ɵɵviewQuery(_c0$r, 5);
@@ -59861,8 +59914,8 @@ class EditMetricTargetModalComponent {
59861
59914
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.percentageInputRef = _t.first);
59862
59915
  } }, hostBindings: function EditMetricTargetModalComponent_HostBindings(rf, ctx) { if (rf & 1) {
59863
59916
  i0.ɵɵlistener("keydown.escape", function EditMetricTargetModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscape(); }, i0.ɵɵresolveDocument);
59864
- } }, inputs: { viewMode: [1, "viewMode"], isOpen: [1, "isOpen"], metricData: [1, "metricData"], pacingMetrics: [1, "pacingMetrics"] }, outputs: { closed: "closed", targetApplied: "targetApplied" }, decls: 1, vars: 1, consts: [["absoluteInputRef", ""], ["percentageInputRef", ""], [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, "text-xl", "font-bold", "mb-0", 3, "ngClass"], [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, "grid", "lg:grid-cols-2", "gap-6"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass"], [1, "flex", "flex-wrap", "gap-4", "place-content-between", "mb-6"], [1, "flex", "items-center", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", 3, "ngClass"], [1, "text-lg", "font-bold", 3, "ngClass"], [1, "space-y-6"], [1, "flex", "gap-2"], [1, "flex-1", "py-2", "px-4", "rounded-lg", "text-sm", "font-semibold", "transition-all", 3, "click", "ngClass"], [1, "relative"], [1, "p-6", "rounded-xl", "border-2", "h-full", 3, "ngClass"], [1, "px-6", "py-4", "border-t", "flex", "justify-end", "gap-3", 3, "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", "disabled:opacity-50", "disabled:cursor-not-allowed", 3, "click", "disabled", "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"], [1, "flex", "items-center", "gap-1"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "top", 1, "flex-shrink-0", "w-4", "h-4", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "click", "ngClass", "libSymphiqTooltip"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3", "h-3"], ["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"], ["type", "number", "placeholder", "0", "min", "0", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "100", "step", "0.01", 1, "w-full", "pr-10", "pl-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], [1, "absolute", "right-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], [1, "absolute", "left-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "step", "1000", 1, "w-full", "pl-10", "pr-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "keydown", "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "1000", "step", "0.1", 1, "w-full", "pr-10", "pl-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], [1, "text-3xl", "font-bold", "transition-all", "duration-300", 3, "ngClass"], [1, "relative", "pt-6", "mt-6"], [1, "absolute", "top-0", "left-0", "right-0", "flex", "items-center", "-translate-y-1/2"], [1, "flex-1", "h-px", 3, "ngClass"], [1, "px-3", "py-1", "rounded-full", "text-xs", "font-semibold", "whitespace-nowrap", 3, "ngClass"], [1, "grid", "grid-cols-2", "gap-4", "pt-2"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1", 3, "ngClass"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "flex", "items-center", "gap-1", "mb-1"]], template: function EditMetricTargetModalComponent_Template(rf, ctx) { if (rf & 1) {
59865
- i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Template, 42, 27);
59917
+ } }, inputs: { viewMode: [1, "viewMode"], isOpen: [1, "isOpen"], metricData: [1, "metricData"], pacingMetrics: [1, "pacingMetrics"] }, outputs: { closed: "closed", targetApplied: "targetApplied" }, decls: 1, vars: 1, consts: [["absoluteInputRef", ""], ["percentageInputRef", ""], [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, "text-xl", "font-bold", "mb-0", 3, "ngClass"], [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, "grid", "lg:grid-cols-2", "gap-6"], [1, "p-6", "rounded-xl", "border-2", 3, "ngClass"], [1, "flex", "flex-wrap", "gap-4", "place-content-between", "mb-6"], [1, "flex", "items-center", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", 3, "ngClass"], [1, "text-lg", "font-bold", 3, "ngClass"], [1, "space-y-6"], [1, "flex", "gap-2"], [1, "flex-1", "py-2", "px-4", "rounded-lg", "text-sm", "font-semibold", "transition-all", 3, "click", "ngClass"], [1, "relative"], [1, "p-6", "rounded-xl", "border-2", "h-full", 3, "ngClass"], [1, "px-6", "py-4", "border-t", "flex", "justify-end", "gap-3", 3, "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "click", "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", 3, "ngClass"], ["type", "button", 1, "px-4", "py-2.5", "rounded-lg", "font-medium", "text-sm", "transition-all", "duration-200", "disabled:opacity-50", "disabled:cursor-not-allowed", 3, "click", "disabled", "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 7h8m0 0v8m0-8l-8 8-4-4-6 6"], [1, "flex", "items-center", "gap-1"], ["type", "button", "tooltipType", "markdown", "tooltipPosition", "top", 1, "flex-shrink-0", "w-4", "h-4", "rounded-full", "inline-flex", "items-center", "justify-center", "transition-colors", 3, "click", "ngClass", "libSymphiqTooltip"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3", "h-3"], ["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"], ["type", "number", "placeholder", "0", "min", "0", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "100", "step", "0.01", 1, "w-full", "pr-10", "pl-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], [1, "absolute", "right-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], [1, "absolute", "left-4", "top-1/2", "-translate-y-1/2", "text-xl", "font-bold", 3, "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "step", "1000", 1, "w-full", "pl-10", "pr-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "step", "1", 1, "w-full", "px-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "keydown", "ngModel", "ngClass"], ["type", "number", "placeholder", "0", "min", "0", "max", "1000", "step", "0.1", 1, "w-full", "pr-10", "pl-4", "py-4", "rounded-xl", "text-2xl", "font-bold", "border-2", "transition-all", 3, "ngModelChange", "ngModel", "ngClass"], [1, "flex", "items-baseline", "gap-3"], [1, "text-3xl", "font-bold", "transition-all", "duration-300", 3, "ngClass"], [1, "text-xl", "line-through", "opacity-60", 3, "ngClass"], [1, "relative", "pt-6", "mt-6"], [1, "absolute", "top-0", "left-0", "right-0", "flex", "items-center", "-translate-y-1/2"], [1, "flex-1", "h-px", 3, "ngClass"], [1, "px-3", "py-1", "rounded-full", "text-xs", "font-semibold", "whitespace-nowrap", 3, "ngClass"], [1, "grid", "grid-cols-2", "gap-4", "pt-2"], [1, "text-xs", "font-medium", "uppercase", "tracking-wider", "mb-1", 3, "ngClass"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "flex", "items-center", "gap-1", "mb-1"]], template: function EditMetricTargetModalComponent_Template(rf, ctx) { if (rf & 1) {
59918
+ i0.ɵɵconditionalCreate(0, EditMetricTargetModalComponent_Conditional_0_Template, 43, 28);
59866
59919
  } if (rf & 2) {
59867
59920
  i0.ɵɵconditional(ctx.isOpen() ? 0 : -1);
59868
59921
  } }, dependencies: [CommonModule, i1$1.NgClass, FormsModule, i2$1.DefaultValueAccessor, i2$1.NumberValueAccessor, i2$1.NgControlStatus, i2$1.MinValidator, i2$1.MaxValidator, i2$1.NgModel, TooltipDirective, TooltipContainerComponent], encapsulation: 2, data: { animation: [
@@ -60075,9 +60128,16 @@ class EditMetricTargetModalComponent {
60075
60128
  <p [ngClass]="calculatedLabelClasses()" class="text-xs font-medium uppercase tracking-wider">
60076
60129
  {{ currentYear() }} {{ metricTitle() }} Target
60077
60130
  </p>
60078
- <p [ngClass]="calculatedValueClasses()" class="text-3xl font-bold transition-all duration-300">
60079
- {{ formatMetricValue(animatedTarget()) }}
60080
- </p>
60131
+ <div class="flex items-baseline gap-3">
60132
+ <p [ngClass]="calculatedValueClasses()" class="text-3xl font-bold transition-all duration-300">
60133
+ {{ formatMetricValue(animatedTarget()) }}
60134
+ </p>
60135
+ @if (hasChangedFromInitial()) {
60136
+ <p [ngClass]="originalValueClasses()" class="text-xl line-through opacity-60">
60137
+ {{ formatMetricValue(initialTargetValue()) }}
60138
+ </p>
60139
+ }
60140
+ </div>
60081
60141
  </div>
60082
60142
 
60083
60143
  <div class="relative pt-6 mt-6">
@@ -60184,6 +60244,15 @@ class EditMetricTargetModalComponent {
60184
60244
  class="px-4 py-2.5 rounded-lg font-medium text-sm transition-all duration-200">
60185
60245
  Cancel
60186
60246
  </button>
60247
+ @if (hasChangedFromInitial()) {
60248
+ <button
60249
+ type="button"
60250
+ (click)="resetToInitial()"
60251
+ [ngClass]="resetButtonClasses()"
60252
+ class="px-4 py-2.5 rounded-lg font-medium text-sm transition-all duration-200">
60253
+ Reset
60254
+ </button>
60255
+ }
60187
60256
  <button
60188
60257
  type="button"
60189
60258
  (click)="applyTarget()"
@@ -60209,7 +60278,7 @@ class EditMetricTargetModalComponent {
60209
60278
  type: HostListener,
60210
60279
  args: ['document:keydown.escape']
60211
60280
  }] }); })();
60212
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EditMetricTargetModalComponent, { className: "EditMetricTargetModalComponent", filePath: "lib/components/revenue-calculator-dashboard/edit-metric-target-modal.component.ts", lineNumber: 331 }); })();
60281
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(EditMetricTargetModalComponent, { className: "EditMetricTargetModalComponent", filePath: "lib/components/revenue-calculator-dashboard/edit-metric-target-modal.component.ts", lineNumber: 347 }); })();
60213
60282
 
60214
60283
  const _c0$q = ["absoluteInputRef"];
60215
60284
  const _c1$b = ["percentageInputRef"];
@@ -61335,8 +61404,8 @@ class InitialTargetSettingComponent {
61335
61404
  }
61336
61405
  saveFooterClasses() {
61337
61406
  return this.viewMode() === ViewModeEnum.DARK
61338
- ? 'bg-slate-800/50 border-slate-700/50'
61339
- : 'bg-slate-50 border-slate-200';
61407
+ ? 'bg-slate-900 border-slate-700'
61408
+ : 'bg-white border-slate-200';
61340
61409
  }
61341
61410
  saveFooterTextClasses() {
61342
61411
  return this.viewMode() === ViewModeEnum.DARK