@eric-emg/symphiq-components 1.2.59 → 1.2.60

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.
@@ -1,4 +1,4 @@
1
- import { CompetitiveScoreEnum, ViewModeEnum, normalizeToV3, LineChartUseCaseEnum } from '@jebgem/model';
1
+ import { CompetitiveScoreEnum, ViewModeEnum, normalizeToV3, MetricEnumUtil, LineChartUseCaseEnum } from '@jebgem/model';
2
2
  export * from '@jebgem/model';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable, signal, input, ChangeDetectionStrategy, Component, output, computed, inject, ElementRef, Renderer2, effect, Directive, HostListener, untracked, ViewChild } from '@angular/core';
@@ -23903,18 +23903,7 @@ class SymphiqFunnelAnalysisPreviewComponent {
23903
23903
  return getTrendClasses(trend, this.viewMode());
23904
23904
  }
23905
23905
  getMetricLabel(metric) {
23906
- const labels = {
23907
- 'SESSIONS': 'Sessions',
23908
- 'ACTIVE_USERS': 'Users',
23909
- 'BOUNCE_RATE': 'Bounce Rate',
23910
- 'PURCHASES': 'Purchases',
23911
- 'ECOMMERCE_PURCHASES': 'Purchases',
23912
- 'ADD_TO_CARTS': 'Add to Cart',
23913
- 'CHECKOUTS': 'Checkouts',
23914
- 'ECOMMERCE_CONVERSION_RATE': 'Conv Rate',
23915
- 'AVERAGE_ORDER_VALUE': 'AOV'
23916
- };
23917
- return labels[metric.metric || ''] || metric.metric || 'Metric';
23906
+ return MetricEnumUtil.title(metric.metric) || metric.metric || 'Metric';
23918
23907
  }
23919
23908
  formatMetricValue(metric) {
23920
23909
  const value = metric.currentValue || 0;
@@ -24259,7 +24248,7 @@ class SymphiqFunnelAnalysisPreviewComponent {
24259
24248
  <symphiq-tooltip-container />
24260
24249
  `, styles: ["@keyframes statusPulse{0%,to{opacity:1}50%{opacity:.6}}.status-pulse{animation:statusPulse 2s ease-in-out infinite}\n"] }]
24261
24250
  }], () => [], { analysisInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "funnelAnalysis", required: false }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], useSampleData: [{ type: i0.Input, args: [{ isSignal: true, alias: "useSampleData", required: false }] }], scrollElement: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollElement", required: false }] }], onViewAnalysis: [{ type: i0.Output, args: ["onViewAnalysis"] }] }); })();
24262
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqFunnelAnalysisPreviewComponent, { className: "SymphiqFunnelAnalysisPreviewComponent", filePath: "lib/components/funnel-analysis-preview/symphiq-funnel-analysis-preview.component.ts", lineNumber: 216 }); })();
24251
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SymphiqFunnelAnalysisPreviewComponent, { className: "SymphiqFunnelAnalysisPreviewComponent", filePath: "lib/components/funnel-analysis-preview/symphiq-funnel-analysis-preview.component.ts", lineNumber: 218 }); })();
24263
24252
 
24264
24253
  const _c0$3 = ["chartdiv"];
24265
24254
  class LineChartComponent {