@eric-emg/symphiq-components 1.2.474 → 1.2.475

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.
@@ -90938,7 +90938,7 @@ function ProfileStatusCardComponent_Conditional_26_Conditional_1_Template(rf, ct
90938
90938
  function ProfileStatusCardComponent_Conditional_26_Conditional_2_Template(rf, ctx) { if (rf & 1) {
90939
90939
  const _r6 = i0.ɵɵgetCurrentView();
90940
90940
  i0.ɵɵelementStart(0, "button", 27);
90941
- i0.ɵɵlistener("click", function ProfileStatusCardComponent_Conditional_26_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.adminAnswerAction.emit(true)); });
90941
+ i0.ɵɵlistener("click", function ProfileStatusCardComponent_Conditional_26_Conditional_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.handleAdminAnswerAll()); });
90942
90942
  i0.ɵɵnamespaceSVG();
90943
90943
  i0.ɵɵelementStart(1, "svg", 28);
90944
90944
  i0.ɵɵelement(2, "path", 30);
@@ -91188,14 +91188,21 @@ class ProfileStatusCardComponent {
91188
91188
  const wasUnanswered = questionBeingAnswered && questionBeingAnswered.answered !== true;
91189
91189
  const unansweredCount = this.unansweredQuestions();
91190
91190
  if (wasUnanswered && unansweredCount === 1) {
91191
- this.confettiService.trigger({
91192
- intensity: 'celebration',
91193
- viewMode: this.viewMode()
91194
- });
91191
+ this.triggerConfetti();
91195
91192
  event.profileCompleted = true;
91196
91193
  }
91197
91194
  this.answerSave.emit(event);
91198
91195
  }
91196
+ triggerConfetti() {
91197
+ this.confettiService.trigger({
91198
+ intensity: 'celebration',
91199
+ viewMode: this.viewMode()
91200
+ });
91201
+ }
91202
+ handleAdminAnswerAll() {
91203
+ this.triggerConfetti();
91204
+ this.adminAnswerAction.emit(true);
91205
+ }
91199
91206
  formatCategoryName(category) {
91200
91207
  const formatter = this.categoryNameFormatter();
91201
91208
  if (formatter) {
@@ -91514,7 +91521,7 @@ class ProfileStatusCardComponent {
91514
91521
  @if (unansweredQuestions() > 0) {
91515
91522
  <button
91516
91523
  type="button"
91517
- (click)="adminAnswerAction.emit(true)"
91524
+ (click)="handleAdminAnswerAll()"
91518
91525
  class="flex items-center gap-2 px-4 py-2 rounded-lg border-2 border-violet-500/70 bg-transparent text-violet-400 hover:bg-violet-500/10 transition-colors"
91519
91526
  >
91520
91527
  <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">