@eric-emg/symphiq-components 1.2.257 → 1.2.258

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.
@@ -59486,6 +59486,13 @@ class InitialTargetSettingComponent {
59486
59486
  title: 'Current Pace Projection',
59487
59487
  markdown: 'This is your projected year-end revenue based on your current performance trends. It extrapolates your year-to-date results to estimate where you will finish the year if you maintain your current pace.'
59488
59488
  };
59489
+ effect(() => {
59490
+ const targets = this.targets();
59491
+ if (targets && targets.length > 0) {
59492
+ this.calculationState.set('results');
59493
+ this.detailsExpanded.set(false);
59494
+ }
59495
+ }, { allowSignalWrites: true });
59489
59496
  effect(() => {
59490
59497
  const response = this.reverseCalculationResponse();
59491
59498
  if (response) {
@@ -60528,36 +60535,10 @@ function SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template(rf,
60528
60535
  i0.ɵɵelementEnd()();
60529
60536
  } if (rf & 2) {
60530
60537
  const ctx_r0 = i0.ɵɵnextContext();
60531
- i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("dataLoadStatus", ctx_r0.dataLoadStatus() ?? ctx_r0.ShopDataLoadStatusEnum.NOT_LOADED)("hasTargets", false);
60538
+ i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("dataLoadStatus", ctx_r0.dataLoadStatus() ?? ctx_r0.ShopDataLoadStatusEnum.NOT_LOADED)("hasTargets", ctx_r0.hasCurrentYearTargets());
60532
60539
  i0.ɵɵadvance(2);
60533
60540
  i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("funnelMetrics", ctx_r0.funnelMetrics() ?? i0.ɵɵpureFunction0(12, _c0$p))("mainUiData", ctx_r0.mainUiData())("trendUiData", ctx_r0.trendUiData())("shopId", ctx_r0.shopId())("pacingMetrics", ctx_r0.pacingResponse())("dataResults", ctx_r0.dataResults())("reverseCalculationResponse", ctx_r0.reverseCalculationResponse())("targets", ctx_r0.targets());
60534
60541
  } }
60535
- function SymphiqRevenueCalculatorDashboardComponent_Conditional_26_Template(rf, ctx) { if (rf & 1) {
60536
- i0.ɵɵelement(0, "symphiq-revenue-calculator-welcome-banner", 14);
60537
- i0.ɵɵelementStart(1, "div", 23)(2, "div", 24)(3, "div", 25);
60538
- i0.ɵɵnamespaceSVG();
60539
- i0.ɵɵelementStart(4, "svg", 26);
60540
- i0.ɵɵelement(5, "path", 27);
60541
- i0.ɵɵelementEnd()();
60542
- i0.ɵɵnamespaceHTML();
60543
- i0.ɵɵelementStart(6, "h3", 28);
60544
- i0.ɵɵtext(7, " Revenue Calculator Dashboard ");
60545
- i0.ɵɵelementEnd();
60546
- i0.ɵɵelementStart(8, "p", 29);
60547
- i0.ɵɵtext(9, " Your targets are set! The full revenue calculator dashboard with pacing and insights will be displayed here. ");
60548
- i0.ɵɵelementEnd()()();
60549
- } if (rf & 2) {
60550
- const ctx_r0 = i0.ɵɵnextContext();
60551
- i0.ɵɵproperty("viewMode", ctx_r0.viewMode())("dataLoadStatus", ctx_r0.dataLoadStatus() ?? ctx_r0.ShopDataLoadStatusEnum.NOT_LOADED)("hasTargets", true);
60552
- i0.ɵɵadvance();
60553
- i0.ɵɵproperty("ngClass", ctx_r0.placeholderContainerClasses());
60554
- i0.ɵɵadvance(3);
60555
- i0.ɵɵproperty("ngClass", ctx_r0.placeholderIconClasses());
60556
- i0.ɵɵadvance(2);
60557
- i0.ɵɵproperty("ngClass", ctx_r0.placeholderTitleClasses());
60558
- i0.ɵɵadvance(2);
60559
- i0.ɵɵproperty("ngClass", ctx_r0.placeholderTextClasses());
60560
- } }
60561
60542
  dayjs.extend(utc);
60562
60543
  class SymphiqRevenueCalculatorDashboardComponent {
60563
60544
  constructor() {
@@ -60715,7 +60696,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
60715
60696
  static { this.ɵfac = function SymphiqRevenueCalculatorDashboardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SymphiqRevenueCalculatorDashboardComponent)(); }; }
60716
60697
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SymphiqRevenueCalculatorDashboardComponent, selectors: [["symphiq-revenue-calculator-dashboard"]], hostBindings: function SymphiqRevenueCalculatorDashboardComponent_HostBindings(rf, ctx) { if (rf & 1) {
60717
60698
  i0.ɵɵlistener("scroll", function SymphiqRevenueCalculatorDashboardComponent_scroll_HostBindingHandler($event) { return ctx.onWindowScroll($event); }, i0.ɵɵresolveWindow);
60718
- } }, inputs: { viewMode: [1, "viewMode"], isLoading: [1, "isLoading"], dataLoadStatus: [1, "dataLoadStatus"], targets: [1, "targets"], funnelMetrics: [1, "funnelMetrics"], mainUiData: [1, "mainUiData"], ytdComparisonUiData: [1, "ytdComparisonUiData"], trendUiData: [1, "trendUiData"], pacingResponse: [1, "pacingResponse"], dataResults: [1, "dataResults"], shopId: [1, "shopId"], embedded: [1, "embedded"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], reverseCalculationResponse: [1, "reverseCalculationResponse"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", targetsCreated: "targetsCreated", calculateRevenueRequest: "calculateRevenueRequest" }, decls: 27, vars: 42, 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, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [3, "stepClick", "nextStepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "relative"], [1, "flex", "items-center", "justify-center", "min-h-[400px]"], ["size", "large", 3, "viewMode"], [3, "viewMode", "dataLoadStatus", "hasTargets"], [1, "mt-8", "rounded-2xl", "border", "shadow-lg", "overflow-hidden", 3, "ngClass"], [1, "px-8", "py-12", 3, "ngClass"], [1, "flex", "flex-col", "items-center", "text-center", "space-y-6"], [1, "space-y-2"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "text-sm", "max-w-md", 3, "ngClass"], [1, "mt-8"], [3, "targetsCreated", "calculateRevenueRequest", "viewMode", "funnelMetrics", "mainUiData", "trendUiData", "shopId", "pacingMetrics", "dataResults", "reverseCalculationResponse", "targets"], [1, "mt-8", "rounded-2xl", "border-2", "border-dashed", "p-12", 3, "ngClass"], [1, "text-center", "space-y-4"], [1, "flex", "justify-center"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-16", "h-16", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"], [1, "text-2xl", "font-bold", 3, "ngClass"], [1, "text-base", "max-w-2xl", "mx-auto", 3, "ngClass"]], template: function SymphiqRevenueCalculatorDashboardComponent_Template(rf, ctx) { if (rf & 1) {
60699
+ } }, inputs: { viewMode: [1, "viewMode"], isLoading: [1, "isLoading"], dataLoadStatus: [1, "dataLoadStatus"], targets: [1, "targets"], funnelMetrics: [1, "funnelMetrics"], mainUiData: [1, "mainUiData"], ytdComparisonUiData: [1, "ytdComparisonUiData"], trendUiData: [1, "trendUiData"], pacingResponse: [1, "pacingResponse"], dataResults: [1, "dataResults"], shopId: [1, "shopId"], embedded: [1, "embedded"], scrollEvent: [1, "scrollEvent"], scrollElement: [1, "scrollElement"], forDemo: [1, "forDemo"], maxAccessibleStepId: [1, "maxAccessibleStepId"], reverseCalculationResponse: [1, "reverseCalculationResponse"] }, outputs: { stepClick: "stepClick", nextStepClick: "nextStepClick", targetsCreated: "targetsCreated", calculateRevenueRequest: "calculateRevenueRequest" }, decls: 26, vars: 42, 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, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-3"], [1, "flex-1", "min-w-0", "mr-4"], [3, "stepClick", "nextStepClick", "viewMode", "currentStepId", "showNextStepAction", "forDemo", "maxAccessibleStepId"], [1, "relative"], [1, "flex", "items-center", "justify-center", "min-h-[400px]"], ["size", "large", 3, "viewMode"], [3, "viewMode", "dataLoadStatus", "hasTargets"], [1, "mt-8", "rounded-2xl", "border", "shadow-lg", "overflow-hidden", 3, "ngClass"], [1, "px-8", "py-12", 3, "ngClass"], [1, "flex", "flex-col", "items-center", "text-center", "space-y-6"], [1, "space-y-2"], [1, "text-xl", "font-bold", 3, "ngClass"], [1, "text-sm", "max-w-md", 3, "ngClass"], [1, "mt-8"], [3, "targetsCreated", "calculateRevenueRequest", "viewMode", "funnelMetrics", "mainUiData", "trendUiData", "shopId", "pacingMetrics", "dataResults", "reverseCalculationResponse", "targets"]], template: function SymphiqRevenueCalculatorDashboardComponent_Template(rf, ctx) { if (rf & 1) {
60719
60700
  i0.ɵɵelementStart(0, "div", 0)(1, "div");
60720
60701
  i0.ɵɵelement(2, "div", 1);
60721
60702
  i0.ɵɵelementEnd();
@@ -60733,7 +60714,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
60733
60714
  i0.ɵɵlistener("stepClick", function SymphiqRevenueCalculatorDashboardComponent_Template_symphiq_journey_progress_indicator_stepClick_20_listener($event) { return ctx.stepClick.emit($event); })("nextStepClick", function SymphiqRevenueCalculatorDashboardComponent_Template_symphiq_journey_progress_indicator_nextStepClick_20_listener() { return ctx.nextStepClick.emit(); });
60734
60715
  i0.ɵɵelementEnd();
60735
60716
  i0.ɵɵelementStart(21, "main", 11)(22, "div", 6);
60736
- i0.ɵɵconditionalCreate(23, SymphiqRevenueCalculatorDashboardComponent_Conditional_23_Template, 2, 1, "div", 12)(24, SymphiqRevenueCalculatorDashboardComponent_Conditional_24_Template, 10, 8)(25, SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template, 3, 13)(26, SymphiqRevenueCalculatorDashboardComponent_Conditional_26_Template, 10, 7);
60717
+ i0.ɵɵconditionalCreate(23, SymphiqRevenueCalculatorDashboardComponent_Conditional_23_Template, 2, 1, "div", 12)(24, SymphiqRevenueCalculatorDashboardComponent_Conditional_24_Template, 10, 8)(25, SymphiqRevenueCalculatorDashboardComponent_Conditional_25_Template, 3, 13);
60737
60718
  i0.ɵɵelementEnd()()()();
60738
60719
  } if (rf & 2) {
60739
60720
  i0.ɵɵproperty("ngClass", ctx.getContainerClasses());
@@ -60763,7 +60744,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
60763
60744
  i0.ɵɵadvance(2);
60764
60745
  i0.ɵɵproperty("viewMode", ctx.viewMode())("currentStepId", ctx.JourneyStepIdEnum.REVENUE_CALCULATOR)("showNextStepAction", ctx.hasCurrentYearTargets())("forDemo", ctx.forDemo())("maxAccessibleStepId", ctx.maxAccessibleStepId());
60765
60746
  i0.ɵɵadvance(3);
60766
- i0.ɵɵconditional(ctx.isLoading() ? 23 : ctx.dataLoadStatus() !== ctx.ShopDataLoadStatusEnum.FULLY_LOADED ? 24 : !ctx.hasCurrentYearTargets() ? 25 : 26);
60747
+ i0.ɵɵconditional(ctx.isLoading() ? 23 : ctx.dataLoadStatus() !== ctx.ShopDataLoadStatusEnum.FULLY_LOADED ? 24 : 25);
60767
60748
  } }, dependencies: [CommonModule, i1$1.NgClass, JourneyProgressIndicatorComponent,
60768
60749
  RevenueCalculatorWelcomeBannerComponent,
60769
60750
  InitialTargetSettingComponent,
@@ -60901,12 +60882,12 @@ class SymphiqRevenueCalculatorDashboardComponent {
60901
60882
  </div>
60902
60883
  }
60903
60884
 
60904
- <!-- State 3a: Initial Target Setting (isLoading = false && dataLoadStatus === FULLY_LOADED && !hasCurrentYearTargets) -->
60905
- @else if (!hasCurrentYearTargets()) {
60885
+ <!-- State 3: Target Setting / Results (isLoading = false && dataLoadStatus === FULLY_LOADED) -->
60886
+ @else {
60906
60887
  <symphiq-revenue-calculator-welcome-banner
60907
60888
  [viewMode]="viewMode()"
60908
60889
  [dataLoadStatus]="dataLoadStatus() ?? ShopDataLoadStatusEnum.NOT_LOADED"
60909
- [hasTargets]="false"
60890
+ [hasTargets]="hasCurrentYearTargets()"
60910
60891
  />
60911
60892
 
60912
60893
  <div class="mt-8">
@@ -60926,35 +60907,6 @@ class SymphiqRevenueCalculatorDashboardComponent {
60926
60907
  </div>
60927
60908
  }
60928
60909
 
60929
- <!-- State 3b: Final Dashboard (isLoading = false && dataLoadStatus === FULLY_LOADED && hasCurrentYearTargets) -->
60930
- @else {
60931
- <symphiq-revenue-calculator-welcome-banner
60932
- [viewMode]="viewMode()"
60933
- [dataLoadStatus]="dataLoadStatus() ?? ShopDataLoadStatusEnum.NOT_LOADED"
60934
- [hasTargets]="true"
60935
- />
60936
-
60937
- <!-- Placeholder for Revenue Calculator Content -->
60938
- <div [ngClass]="placeholderContainerClasses()" class="mt-8 rounded-2xl border-2 border-dashed p-12">
60939
- <div class="text-center space-y-4">
60940
- <div class="flex justify-center">
60941
- <svg [ngClass]="placeholderIconClasses()" class="w-16 h-16" fill="none" stroke="currentColor"
60942
- viewBox="0 0 24 24">
60943
- <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
60944
- d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z"></path>
60945
- </svg>
60946
- </div>
60947
- <h3 [ngClass]="placeholderTitleClasses()" class="text-2xl font-bold">
60948
- Revenue Calculator Dashboard
60949
- </h3>
60950
- <p [ngClass]="placeholderTextClasses()" class="text-base max-w-2xl mx-auto">
60951
- Your targets are set! The full revenue calculator dashboard with pacing and insights will be
60952
- displayed here.
60953
- </p>
60954
- </div>
60955
- </div>
60956
- }
60957
-
60958
60910
  </div>
60959
60911
  </main>
60960
60912
  </div>
@@ -60965,7 +60917,7 @@ class SymphiqRevenueCalculatorDashboardComponent {
60965
60917
  type: HostListener,
60966
60918
  args: ['window:scroll', ['$event']]
60967
60919
  }] }); })();
60968
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber: 227 }); })();
60920
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqRevenueCalculatorDashboardComponent, { className: "SymphiqRevenueCalculatorDashboardComponent", filePath: "lib/components/revenue-calculator-dashboard/symphiq-revenue-calculator-dashboard.component.ts", lineNumber: 198 }); })();
60969
60921
 
60970
60922
  function HierarchyDisplayComponent_Conditional_1_Template(rf, ctx) { if (rf & 1) {
60971
60923
  i0.ɵɵelementStart(0, "div", 1)(1, "div", 1);