@eric-emg/symphiq-components 1.2.485 → 1.2.487

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.
@@ -2601,9 +2601,11 @@ function getMinFractionDigitsForSignificantFigures(value, minSigFigs) {
2601
2601
  return Math.max(0, -magnitude + minSigFigs - 1);
2602
2602
  }
2603
2603
  function formatCurrency(value, currencySymbol = '$') {
2604
+ const absValue = Math.abs(value);
2605
+ const fractionDigits = absValue < 100 ? 2 : 0;
2604
2606
  return `${currencySymbol}${value.toLocaleString('en-US', {
2605
- minimumFractionDigits: 0,
2606
- maximumFractionDigits: 0
2607
+ minimumFractionDigits: fractionDigits,
2608
+ maximumFractionDigits: fractionDigits
2607
2609
  })}`;
2608
2610
  }
2609
2611
  function formatPercentage(value, decimals = 1) {
@@ -53053,8 +53055,8 @@ class SymphiqCreateAccountDashboardComponent {
53053
53055
  }
53054
53056
  getContainerClasses() {
53055
53057
  return this.isLightMode()
53056
- ? 'min-h-screen bg-gradient-to-br from-slate-50 to-slate-100'
53057
- : 'min-h-screen bg-gradient-to-br from-slate-900 to-slate-800';
53058
+ ? 'min-h-screen'
53059
+ : 'min-h-screen';
53058
53060
  }
53059
53061
  getHeaderClasses() {
53060
53062
  return this.isLightMode()
@@ -54564,8 +54566,8 @@ class SymphiqConnectGaDashboardComponent {
54564
54566
  }
54565
54567
  getContainerClasses() {
54566
54568
  return this.isLightMode()
54567
- ? 'min-h-screen bg-gradient-to-br from-slate-50 to-slate-100'
54568
- : 'min-h-screen bg-gradient-to-br from-slate-900 to-slate-800';
54569
+ ? 'min-h-screen'
54570
+ : 'min-h-screen';
54569
54571
  }
54570
54572
  getHeaderClasses() {
54571
54573
  return this.isLightMode()
@@ -63723,8 +63725,8 @@ class SymphiqRevenueCalculatorDashboardComponent {
63723
63725
  }
63724
63726
  getContainerClasses() {
63725
63727
  return this.isLightMode()
63726
- ? 'min-h-screen bg-gradient-to-br from-slate-50 via-white to-slate-50'
63727
- : 'min-h-screen bg-gradient-to-br from-slate-900 via-slate-800 to-slate-900';
63728
+ ? 'min-h-screen'
63729
+ : 'min-h-screen';
63728
63730
  }
63729
63731
  getHeaderClasses() {
63730
63732
  return this.isLightMode()
@@ -67717,6 +67719,16 @@ function SymphiqBusinessAnalysisDashboardComponent_Conditional_29_Template(rf, c
67717
67719
  const ctx_r1 = i0.ɵɵnextContext();
67718
67720
  i0.ɵɵproperty("sections", ctx_r1.sections())("viewMode", ctx_r1.viewMode())("embedded", ctx_r1.embedded())("scrollElement", ctx_r1.scrollElement() ?? undefined);
67719
67721
  } }
67722
+ function SymphiqBusinessAnalysisDashboardComponent_Conditional_35_Template(rf, ctx) { if (rf & 1) {
67723
+ const _r10 = i0.ɵɵgetCurrentView();
67724
+ i0.ɵɵelementStart(0, "symphiq-mark-as-reviewed-footer", 40);
67725
+ i0.ɵɵlistener("markAsReviewedClick", function SymphiqBusinessAnalysisDashboardComponent_Conditional_35_Template_symphiq_mark_as_reviewed_footer_markAsReviewedClick_0_listener() { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.handleMarkAsReviewedClick()); });
67726
+ i0.ɵɵelementEnd();
67727
+ } if (rf & 2) {
67728
+ let tmp_2_0;
67729
+ const ctx_r1 = i0.ɵɵnextContext();
67730
+ i0.ɵɵproperty("viewMode", ctx_r1.viewMode())("reviewStatus", (tmp_2_0 = ctx_r1.profile()) == null ? null : tmp_2_0.reviewStatus)("isMarkingAsReviewed", ctx_r1.isMarkingAsReviewed());
67731
+ } }
67720
67732
  class SymphiqBusinessAnalysisDashboardComponent {
67721
67733
  sectionHasContent(section) {
67722
67734
  if (!section?.subsections || section.subsections.length === 0) {
@@ -67765,7 +67777,8 @@ class SymphiqBusinessAnalysisDashboardComponent {
67765
67777
  const profile = this.profile();
67766
67778
  if (!profile)
67767
67779
  return false;
67768
- return profile.reviewStatus === ProfileAnalysisReviewStatusEnum.NOT_REVIEWED;
67780
+ return profile.selfContentStatus === AiDynamicContentStatusEnum.GENERATED &&
67781
+ profile.reviewStatus === ProfileAnalysisReviewStatusEnum.NOT_REVIEWED;
67769
67782
  }, ...(ngDevMode ? [{ debugName: "shouldShowReviewFooter" }] : []));
67770
67783
  this.headerScrollService = inject(HeaderScrollService);
67771
67784
  this.lookupService = inject(ProfileItemLookupService);
@@ -68241,7 +68254,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
68241
68254
  static { this.ɵfac = function SymphiqBusinessAnalysisDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqBusinessAnalysisDashboardComponent)(); }; }
68242
68255
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqBusinessAnalysisDashboardComponent, selectors: [["symphiq-business-analysis-dashboard"]], hostBindings: function SymphiqBusinessAnalysisDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
68243
68256
  i0.ɵɵlistener("scroll", function SymphiqBusinessAnalysisDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onScroll($event); }, i0.ɵɵresolveWindow)("keydown", function SymphiqBusinessAnalysisDashboardComponent_keydown_HostBindingHandler($event) { return ctx.handleKeyDown($event); }, i0.ɵɵresolveDocument);
68244
- } }, inputs: { embedded: [1, "embedded"], profile: [1, "profile"], parentHeaderOffset: [1, "parentHeaderOffset"], requestedByUser: [1, "requestedByUser"], viewMode: [1, "viewMode"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], isLoading: [1, "isLoading"], isOnboarded: [1, "isOnboarded"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], itemStatus: [1, "itemStatus"], isMarkingAsReviewed: [1, "isMarkingAsReviewed"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", markAsReviewedClick: "markAsReviewedClick" }, decls: 36, vars: 63, consts: [[3, "ngClass"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "animated-bubbles", 2, "position", "fixed", "top", "0", "left", "0", "right", "0", "bottom", "0", "width", "100vw", "height", "100vh", "z-index", "1", "pointer-events", "none"], [1, "relative", "z-[51]"], [1, "sticky", "top-0", "z-50", 3, "ngClass"], [1, "transition-all", "duration-300", "ease-in-out", "overflow-hidden"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8"], [1, "flex", "items-center", "justify-between"], [1, "flex", "items-center", "gap-2"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [1, "flex", "items-center", "gap-4"], [1, "flex", "items-center", "gap-2", "text-sm", "flex-shrink-0"], [1, "relative"], [1, "flex", "items-center", "justify-center", "min-h-[60vh]"], [3, "sections", "viewMode", "embedded", "scrollElement"], [3, "viewMode", "embedded"], [3, "viewInContextRequested", "isLightMode"], [3, "searchChange", "resultSelected", "close", "isLightMode", "isOpen", "searchQuery", "results", "hasResults", "selectedIndex", "placeholder"], [3, "close", "modeSelected", "isOpen", "currentMode", "viewMode", "isLoading"], [3, "markAsReviewedClick", "viewMode", "reviewStatus", "isMarkingAsReviewed"], [3, "searchClick", "isLightMode"], ["type", "button", 1, "cursor-pointer", "flex", "items-center", "gap-2", "px-3", "py-1.5", "rounded-lg", "text-xs", "font-medium", "transition-all", "duration-200", "hover:scale-105", 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", "M15 12a3 3 0 11-6 0 3 3 0 016 0z"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"], [1, "transition-opacity", "duration-300", 3, "ngClass"], [3, "searchClick", "isLightMode", "minimized"], ["type", "button", 1, "cursor-pointer", "flex", "items-center", "gap-2", "px-2", "py-1.5", "rounded-lg", "text-xs", "font-medium", "transition-all", "duration-200", "hover:scale-105", 3, "click", "ngClass"], ["size", "large", 3, "viewMode"], [3, "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [3, "viewMode", "itemStatus", "currentStatus", "confettiIntensity", "title", "subtitle"], [3, "stepClick", "nextStepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "mb-8"], [3, "viewMode", "businessName", "isOnboarded"], [3, "viewMoreClick", "recommendations", "viewMode"], [3, "sections", "viewMode"], [3, "section", "viewMode", "forceExpanded"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8"], [3, "viewMode", "subsections"]], template: function SymphiqBusinessAnalysisDashboardComponent_Template(rf, ctx) { if (rf & 1) {
68257
+ } }, inputs: { embedded: [1, "embedded"], profile: [1, "profile"], parentHeaderOffset: [1, "parentHeaderOffset"], requestedByUser: [1, "requestedByUser"], viewMode: [1, "viewMode"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], isLoading: [1, "isLoading"], isOnboarded: [1, "isOnboarded"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], itemStatus: [1, "itemStatus"], isMarkingAsReviewed: [1, "isMarkingAsReviewed"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", markAsReviewedClick: "markAsReviewedClick" }, decls: 36, vars: 61, consts: [[3, "ngClass"], [1, "h-full", "transition-all", "duration-200", "ease-out", 3, "ngClass"], [1, "animated-bubbles", 2, "position", "fixed", "top", "0", "left", "0", "right", "0", "bottom", "0", "width", "100vw", "height", "100vh", "z-index", "1", "pointer-events", "none"], [1, "relative", "z-[51]"], [1, "sticky", "top-0", "z-50", 3, "ngClass"], [1, "transition-all", "duration-300", "ease-in-out", "overflow-hidden"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-8"], [1, "flex", "items-center", "justify-between"], [1, "flex", "items-center", "gap-2"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [1, "flex", "items-center", "gap-4"], [1, "flex", "items-center", "gap-2", "text-sm", "flex-shrink-0"], [1, "relative"], [1, "flex", "items-center", "justify-center", "min-h-[60vh]"], [3, "sections", "viewMode", "embedded", "scrollElement"], [3, "viewMode", "embedded"], [3, "viewInContextRequested", "isLightMode"], [3, "searchChange", "resultSelected", "close", "isLightMode", "isOpen", "searchQuery", "results", "hasResults", "selectedIndex", "placeholder"], [3, "close", "modeSelected", "isOpen", "currentMode", "viewMode", "isLoading"], [3, "viewMode", "reviewStatus", "isMarkingAsReviewed"], [3, "searchClick", "isLightMode"], ["type", "button", 1, "cursor-pointer", "flex", "items-center", "gap-2", "px-3", "py-1.5", "rounded-lg", "text-xs", "font-medium", "transition-all", "duration-200", "hover:scale-105", 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", "M15 12a3 3 0 11-6 0 3 3 0 016 0z"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"], [1, "transition-opacity", "duration-300", 3, "ngClass"], [3, "searchClick", "isLightMode", "minimized"], ["type", "button", 1, "cursor-pointer", "flex", "items-center", "gap-2", "px-2", "py-1.5", "rounded-lg", "text-xs", "font-medium", "transition-all", "duration-200", "hover:scale-105", 3, "click", "ngClass"], ["size", "large", 3, "viewMode"], [3, "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [3, "viewMode", "itemStatus", "currentStatus", "confettiIntensity", "title", "subtitle"], [3, "stepClick", "nextStepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "mb-8"], [3, "viewMode", "businessName", "isOnboarded"], [3, "viewMoreClick", "recommendations", "viewMode"], [3, "sections", "viewMode"], [3, "section", "viewMode", "forceExpanded"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8"], [3, "viewMode", "subsections"], [3, "markAsReviewedClick", "viewMode", "reviewStatus", "isMarkingAsReviewed"]], template: function SymphiqBusinessAnalysisDashboardComponent_Template(rf, ctx) { if (rf & 1) {
68245
68258
  i0.ɵɵelementStart(0, "div", 0)(1, "div");
68246
68259
  i0.ɵɵelement(2, "div", 1);
68247
68260
  i0.ɵɵelementEnd();
@@ -68278,15 +68291,13 @@ class SymphiqBusinessAnalysisDashboardComponent {
68278
68291
  i0.ɵɵelementStart(34, "symphiq-view-mode-switcher-modal", 19);
68279
68292
  i0.ɵɵlistener("close", function SymphiqBusinessAnalysisDashboardComponent_Template_symphiq_view_mode_switcher_modal_close_34_listener() { return ctx.closeViewModeSwitcher(); })("modeSelected", function SymphiqBusinessAnalysisDashboardComponent_Template_symphiq_view_mode_switcher_modal_modeSelected_34_listener($event) { return ctx.handleDisplayModeChange($event); });
68280
68293
  i0.ɵɵelementEnd();
68281
- i0.ɵɵelementStart(35, "symphiq-mark-as-reviewed-footer", 20);
68282
- i0.ɵɵlistener("markAsReviewedClick", function SymphiqBusinessAnalysisDashboardComponent_Template_symphiq_mark_as_reviewed_footer_markAsReviewedClick_35_listener() { return ctx.handleMarkAsReviewedClick(); });
68283
- i0.ɵɵelementEnd()();
68294
+ i0.ɵɵconditionalCreate(35, SymphiqBusinessAnalysisDashboardComponent_Conditional_35_Template, 1, 3, "symphiq-mark-as-reviewed-footer", 20);
68295
+ i0.ɵɵelementEnd();
68284
68296
  } if (rf & 2) {
68285
68297
  let tmp_13_0;
68286
68298
  let tmp_15_0;
68287
68299
  let tmp_23_0;
68288
68300
  let tmp_25_0;
68289
- let tmp_45_0;
68290
68301
  i0.ɵɵproperty("ngClass", ctx.getContainerClasses());
68291
68302
  i0.ɵɵadvance();
68292
68303
  i0.ɵɵclassMap(ctx.embedded() ? "sticky top-0 left-0 right-0 h-1 z-[60] bg-slate-200/30" : "fixed top-0 left-0 right-0 h-1 z-[60] bg-slate-200/30");
@@ -68338,7 +68349,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
68338
68349
  i0.ɵɵadvance();
68339
68350
  i0.ɵɵproperty("isOpen", ctx.isViewModeSwitcherOpen())("currentMode", ctx.displayMode())("viewMode", ctx.viewMode())("isLoading", ctx.isViewModeSwitching());
68340
68351
  i0.ɵɵadvance();
68341
- i0.ɵɵproperty("viewMode", ctx.viewMode())("reviewStatus", (tmp_45_0 = ctx.profile()) == null ? null : tmp_45_0.reviewStatus)("isMarkingAsReviewed", ctx.isMarkingAsReviewed());
68352
+ i0.ɵɵconditional(ctx.shouldShowReviewFooter() ? 35 : -1);
68342
68353
  } }, dependencies: [CommonModule, i1$1.NgClass, ProfileSectionComponent, SectionNavigationComponent, FloatingTocComponent, FloatingBackButtonComponent, TooltipContainerComponent, SectionDividerComponent, BusinessAnalysisModalComponent, SearchButtonComponent, SearchModalComponent, ViewModeSwitcherModalComponent, JourneyProgressIndicatorComponent, WelcomeBannerComponent, RecommendationsTiledGridComponent, CollapsibleSectionGroupComponent, ContentGenerationProgressWithConfettiComponent, IndeterminateSpinnerComponent, MarkAsReviewedFooterComponent], styles: ["[_nghost-%COMP%]{display:block}@keyframes _ngcontent-%COMP%_spin{to{transform:rotate(360deg)}}@keyframes _ngcontent-%COMP%_pulse-highlight{0%,to{transform:scale(1);box-shadow:0 0 #3b82f6b3}50%{transform:scale(1.02);box-shadow:0 0 20px 8px #3b82f64d}}[_nghost-%COMP%] .search-highlight-pulse{animation:_ngcontent-%COMP%_pulse-highlight 2s ease-in-out;border-color:#3b82f6!important}"], changeDetection: 0 }); }
68343
68354
  }
68344
68355
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SymphiqBusinessAnalysisDashboardComponent, [{
@@ -68597,12 +68608,14 @@ class SymphiqBusinessAnalysisDashboardComponent {
68597
68608
  />
68598
68609
 
68599
68610
  <!-- Mark as Reviewed Sticky Footer -->
68600
- <symphiq-mark-as-reviewed-footer
68601
- [viewMode]="viewMode()"
68602
- [reviewStatus]="profile()?.reviewStatus"
68603
- [isMarkingAsReviewed]="isMarkingAsReviewed()"
68604
- (markAsReviewedClick)="handleMarkAsReviewedClick()"
68605
- />
68611
+ @if (shouldShowReviewFooter()) {
68612
+ <symphiq-mark-as-reviewed-footer
68613
+ [viewMode]="viewMode()"
68614
+ [reviewStatus]="profile()?.reviewStatus"
68615
+ [isMarkingAsReviewed]="isMarkingAsReviewed()"
68616
+ (markAsReviewedClick)="handleMarkAsReviewedClick()"
68617
+ />
68618
+ }
68606
68619
  </div>
68607
68620
  `, styles: [":host{display:block}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse-highlight{0%,to{transform:scale(1);box-shadow:0 0 #3b82f6b3}50%{transform:scale(1.02);box-shadow:0 0 20px 8px #3b82f64d}}:host ::ng-deep .search-highlight-pulse{animation:pulse-highlight 2s ease-in-out;border-color:#3b82f6!important}\n"] }]
68608
68621
  }], () => [], { embedded: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedded", required: false }] }], profile: [{ type: i0.Input, args: [{ isSignal: true, alias: "profile", required: false }] }], parentHeaderOffset: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentHeaderOffset", required: false }] }], requestedByUser: [{ type: i0.Input, args: [{ isSignal: true, alias: "requestedByUser", required: false }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], scrollEvent: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollEvent", required: false }] }], scrollElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollElement", required: false }] }], isLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoading", required: false }] }], isOnboarded: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOnboarded", required: false }] }], forDemo: [{ type: i0.Input, args: [{ isSignal: true, alias: "forDemo", required: false }] }], maxAccessibleStepId: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxAccessibleStepId", required: false }] }], itemStatus: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemStatus", required: false }] }], isMarkingAsReviewed: [{ type: i0.Input, args: [{ isSignal: true, alias: "isMarkingAsReviewed", required: false }] }], stepClick: [{ type: i0.Output, args: ["stepClick"] }], nextStepClick: [{ type: i0.Output, args: ["nextStepClick"] }], markAsReviewedClick: [{ type: i0.Output, args: ["markAsReviewedClick"] }], onScroll: [{
@@ -68612,7 +68625,7 @@ class SymphiqBusinessAnalysisDashboardComponent {
68612
68625
  type: HostListener,
68613
68626
  args: ['document:keydown', ['$event']]
68614
68627
  }] }); })();
68615
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber: 350 }); })();
68628
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqBusinessAnalysisDashboardComponent, { className: "SymphiqBusinessAnalysisDashboardComponent", filePath: "lib/components/business-analysis-dashboard/symphiq-business-analysis-dashboard.component.ts", lineNumber: 352 }); })();
68616
68629
 
68617
68630
  function DashboardHeaderComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
68618
68631
  i0.ɵɵelement(0, "div", 6);