@eric-emg/symphiq-components 1.2.150 → 1.2.151

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.
@@ -24829,11 +24829,11 @@ function JourneyProgressIndicatorComponent_For_5_Template(rf, ctx) { if (rf & 1)
24829
24829
  i0.ɵɵelementStart(0, "div", 20);
24830
24830
  i0.ɵɵlistener("mouseenter", function JourneyProgressIndicatorComponent_For_5_Template_div_mouseenter_0_listener() { const ɵ$index_9_r2 = i0.ɵɵrestoreView(_r1).$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.setHoveredStep(ɵ$index_9_r2)); })("mouseleave", function JourneyProgressIndicatorComponent_For_5_Template_div_mouseleave_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.clearHoveredStep()); });
24831
24831
  i0.ɵɵelementStart(1, "div", 21);
24832
- i0.ɵɵlistener("click", function JourneyProgressIndicatorComponent_For_5_Template_div_click_1_listener() { const ctx_r3 = i0.ɵɵrestoreView(_r1); const step_r5 = ctx_r3.$implicit; const ɵ$index_9_r2 = ctx_r3.$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((step_r5.status === "completed" || step_r5.status === "accessible") && ctx_r2.stepClick.emit(ɵ$index_9_r2 + 1)); });
24832
+ i0.ɵɵlistener("click", function JourneyProgressIndicatorComponent_For_5_Template_div_click_1_listener() { const ctx_r3 = i0.ɵɵrestoreView(_r1); const step_r5 = ctx_r3.$implicit; const ɵ$index_9_r2 = ctx_r3.$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleStepClick(step_r5, ɵ$index_9_r2)); });
24833
24833
  i0.ɵɵconditionalCreate(2, JourneyProgressIndicatorComponent_For_5_Conditional_2_Template, 2, 0, ":svg:svg", 22)(3, JourneyProgressIndicatorComponent_For_5_Conditional_3_Template, 1, 1, "div", 23)(4, JourneyProgressIndicatorComponent_For_5_Conditional_4_Template, 1, 1, "div", 24)(5, JourneyProgressIndicatorComponent_For_5_Conditional_5_Template, 2, 2, "span", 25);
24834
24834
  i0.ɵɵelementEnd();
24835
24835
  i0.ɵɵelementStart(6, "span", 26);
24836
- i0.ɵɵlistener("click", function JourneyProgressIndicatorComponent_For_5_Template_span_click_6_listener() { const ctx_r6 = i0.ɵɵrestoreView(_r1); const step_r5 = ctx_r6.$implicit; const ɵ$index_9_r2 = ctx_r6.$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView((step_r5.status === "completed" || step_r5.status === "accessible") && ctx_r2.stepClick.emit(ɵ$index_9_r2 + 1)); });
24836
+ i0.ɵɵlistener("click", function JourneyProgressIndicatorComponent_For_5_Template_span_click_6_listener() { const ctx_r6 = i0.ɵɵrestoreView(_r1); const step_r5 = ctx_r6.$implicit; const ɵ$index_9_r2 = ctx_r6.$index; const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleStepClick(step_r5, ɵ$index_9_r2)); });
24837
24837
  i0.ɵɵtext(7);
24838
24838
  i0.ɵɵelementEnd();
24839
24839
  i0.ɵɵconditionalCreate(8, JourneyProgressIndicatorComponent_For_5_Conditional_8_Template, 9, 16, "div", 27);
@@ -25202,6 +25202,13 @@ class JourneyProgressIndicatorComponent {
25202
25202
  this.nextStepClick.emit();
25203
25203
  }
25204
25204
  }
25205
+ handleStepClick(step, idx) {
25206
+ console.log('Step clicked:', { step, idx, status: step.status });
25207
+ if (step.status === 'completed' || step.status === 'accessible') {
25208
+ console.log('Emitting stepClick:', idx + 1);
25209
+ this.stepClick.emit(idx + 1);
25210
+ }
25211
+ }
25205
25212
  // Mobile navigation methods
25206
25213
  getCurrentStepIndex() {
25207
25214
  return this.mobileStepIndex();
@@ -25498,7 +25505,7 @@ class JourneyProgressIndicatorComponent {
25498
25505
  <div
25499
25506
  [ngClass]="getStepIconContainerClasses(step)"
25500
25507
  class="w-8 h-8 min-w-[2rem] min-h-[2rem] rounded-full flex items-center justify-center flex-shrink-0 step-circle relative z-10 mb-1.5"
25501
- (click)="(step.status === 'completed' || step.status === 'accessible') && stepClick.emit(idx + 1)"
25508
+ (click)="handleStepClick(step, idx)"
25502
25509
  [class.cursor-pointer]="step.status === 'completed' || step.status === 'accessible'">
25503
25510
  @if (step.status === 'completed') {
25504
25511
  <svg class="w-4 h-4" fill="currentColor" viewBox="0 0 20 20">
@@ -25519,7 +25526,7 @@ class JourneyProgressIndicatorComponent {
25519
25526
  <span
25520
25527
  [ngClass]="getAbbreviatedTitleClasses(step)"
25521
25528
  class="text-[10px] text-center leading-tight whitespace-nowrap max-w-[64px] overflow-hidden text-ellipsis"
25522
- (click)="(step.status === 'completed' || step.status === 'accessible') && stepClick.emit(idx + 1)"
25529
+ (click)="handleStepClick(step, idx)"
25523
25530
  [class.cursor-pointer]="step.status === 'completed' || step.status === 'accessible'">
25524
25531
  {{ getAbbreviatedTitle(step.title) }}
25525
25532
  </span>