@eric-emg/symphiq-components 1.3.48 → 1.3.49

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.
@@ -23,7 +23,6 @@ import { XYChart, CategoryAxis, AxisRendererX, ValueAxis, AxisRendererY, XYCurso
23
23
  import am5themes_Animated from '@amcharts/amcharts5/themes/Animated';
24
24
  import { PieChart, PieSeries } from '@amcharts/amcharts5/percent';
25
25
  import { EMAIL_IS_EMG_APPS } from '@jebgem/util';
26
- import { SynthesisConfidenceSectionComponent } from '@symphiq-components/components/shared/synthesis-confidence-section.component';
27
26
 
28
27
  class FunnelOrderService {
29
28
  constructor() {
@@ -102836,6 +102835,110 @@ class UnifiedNextStepsComponent {
102836
102835
  }], null, { steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: true }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }] }); })();
102837
102836
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnifiedNextStepsComponent, { className: "UnifiedNextStepsComponent", filePath: "lib/components/profile-analysis-unified-dashboard/cards/unified-next-steps.component.ts", lineNumber: 79 }); })();
102838
102837
 
102838
+ function SynthesisConfidenceSectionComponent_Conditional_0_Conditional_10_Template(rf, ctx) { if (rf & 1) {
102839
+ i0.ɵɵelementStart(0, "p", 8);
102840
+ i0.ɵɵtext(1);
102841
+ i0.ɵɵelementEnd();
102842
+ } if (rf & 2) {
102843
+ const ctx_r0 = i0.ɵɵnextContext(2);
102844
+ i0.ɵɵproperty("ngClass", ctx_r0.textClasses());
102845
+ i0.ɵɵadvance();
102846
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.explanation(), " ");
102847
+ } }
102848
+ function SynthesisConfidenceSectionComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
102849
+ i0.ɵɵelementStart(0, "div", 0)(1, "h4", 1);
102850
+ i0.ɵɵnamespaceSVG();
102851
+ i0.ɵɵelementStart(2, "svg", 2);
102852
+ i0.ɵɵelement(3, "path", 3);
102853
+ i0.ɵɵelementEnd();
102854
+ i0.ɵɵtext(4, " Synthesis Confidence ");
102855
+ i0.ɵɵelementEnd();
102856
+ i0.ɵɵnamespaceHTML();
102857
+ i0.ɵɵelementStart(5, "div", 4)(6, "div", 5);
102858
+ i0.ɵɵelement(7, "div", 6);
102859
+ i0.ɵɵelementEnd();
102860
+ i0.ɵɵelementStart(8, "span", 7);
102861
+ i0.ɵɵtext(9);
102862
+ i0.ɵɵelementEnd()();
102863
+ i0.ɵɵconditionalCreate(10, SynthesisConfidenceSectionComponent_Conditional_0_Conditional_10_Template, 2, 2, "p", 8);
102864
+ i0.ɵɵelementEnd();
102865
+ } if (rf & 2) {
102866
+ const ctx_r0 = i0.ɵɵnextContext();
102867
+ i0.ɵɵproperty("ngClass", ctx_r0.sectionCardClasses());
102868
+ i0.ɵɵadvance();
102869
+ i0.ɵɵproperty("ngClass", ctx_r0.sectionTitleClasses());
102870
+ i0.ɵɵadvance(5);
102871
+ i0.ɵɵproperty("ngClass", ctx_r0.progressBarBgClasses());
102872
+ i0.ɵɵadvance();
102873
+ i0.ɵɵstyleProp("width", ctx_r0.scorePercentage(), "%");
102874
+ i0.ɵɵproperty("ngClass", ctx_r0.progressBarFillClasses());
102875
+ i0.ɵɵadvance();
102876
+ i0.ɵɵproperty("ngClass", ctx_r0.textClasses());
102877
+ i0.ɵɵadvance();
102878
+ i0.ɵɵtextInterpolate1(" ", ctx_r0.scorePercentage().toFixed(0), "% ");
102879
+ i0.ɵɵadvance();
102880
+ i0.ɵɵconditional(ctx_r0.explanation() ? 10 : -1);
102881
+ } }
102882
+ class SynthesisConfidenceSectionComponent {
102883
+ constructor() {
102884
+ this.score = input(...(ngDevMode ? [undefined, { debugName: "score" }] : []));
102885
+ this.explanation = input(...(ngDevMode ? [undefined, { debugName: "explanation" }] : []));
102886
+ this.viewMode = input.required(...(ngDevMode ? [{ debugName: "viewMode" }] : []));
102887
+ this.isLightMode = computed(() => this.viewMode() === ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "isLightMode" }] : []));
102888
+ this.scorePercentage = computed(() => (this.score() || 0) * 100, ...(ngDevMode ? [{ debugName: "scorePercentage" }] : []));
102889
+ this.sectionCardClasses = computed(() => this.isLightMode() ? 'bg-slate-50 border border-slate-200' : 'bg-slate-800/50 border border-slate-700', ...(ngDevMode ? [{ debugName: "sectionCardClasses" }] : []));
102890
+ this.sectionTitleClasses = computed(() => this.isLightMode() ? 'text-slate-900' : 'text-white', ...(ngDevMode ? [{ debugName: "sectionTitleClasses" }] : []));
102891
+ this.textClasses = computed(() => this.isLightMode() ? 'text-slate-700' : 'text-slate-300', ...(ngDevMode ? [{ debugName: "textClasses" }] : []));
102892
+ this.progressBarBgClasses = computed(() => this.isLightMode() ? 'bg-slate-200' : 'bg-slate-700', ...(ngDevMode ? [{ debugName: "progressBarBgClasses" }] : []));
102893
+ this.progressBarFillClasses = computed(() => this.isLightMode() ? 'bg-gradient-to-r from-blue-500 to-cyan-500' : 'bg-gradient-to-r from-blue-400 to-cyan-400', ...(ngDevMode ? [{ debugName: "progressBarFillClasses" }] : []));
102894
+ }
102895
+ static { this.ɵfac = function SynthesisConfidenceSectionComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || SynthesisConfidenceSectionComponent)(); }; }
102896
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SynthesisConfidenceSectionComponent, selectors: [["symphiq-synthesis-confidence-section"]], inputs: { score: [1, "score"], explanation: [1, "explanation"], viewMode: [1, "viewMode"] }, decls: 1, vars: 1, consts: [[1, "p-5", "rounded-xl", 3, "ngClass"], [1, "text-sm", "font-semibold", "mb-3", "flex", "items-center", "gap-2", 3, "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", "M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"], [1, "flex", "items-center", "gap-3"], [1, "flex-1", "h-2", "rounded-full", "overflow-hidden", 3, "ngClass"], [1, "h-full", "rounded-full", "transition-all", "duration-500", 3, "ngClass"], [1, "text-sm", "font-semibold", 3, "ngClass"], [1, "text-sm", "mt-3", 3, "ngClass"]], template: function SynthesisConfidenceSectionComponent_Template(rf, ctx) { if (rf & 1) {
102897
+ i0.ɵɵconditionalCreate(0, SynthesisConfidenceSectionComponent_Conditional_0_Template, 11, 9, "div", 0);
102898
+ } if (rf & 2) {
102899
+ i0.ɵɵconditional(ctx.score() ? 0 : -1);
102900
+ } }, dependencies: [CommonModule, i1$1.NgClass], encapsulation: 2, changeDetection: 0 }); }
102901
+ }
102902
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SynthesisConfidenceSectionComponent, [{
102903
+ type: Component,
102904
+ args: [{
102905
+ selector: 'symphiq-synthesis-confidence-section',
102906
+ standalone: true,
102907
+ changeDetection: ChangeDetectionStrategy.OnPush,
102908
+ imports: [CommonModule],
102909
+ template: `
102910
+ @if (score()) {
102911
+ <div [ngClass]="sectionCardClasses()" class="p-5 rounded-xl">
102912
+ <h4 [ngClass]="sectionTitleClasses()" class="text-sm font-semibold mb-3 flex items-center gap-2">
102913
+ <svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24">
102914
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z"/>
102915
+ </svg>
102916
+ Synthesis Confidence
102917
+ </h4>
102918
+ <div class="flex items-center gap-3">
102919
+ <div class="flex-1 h-2 rounded-full overflow-hidden" [ngClass]="progressBarBgClasses()">
102920
+ <div
102921
+ class="h-full rounded-full transition-all duration-500"
102922
+ [ngClass]="progressBarFillClasses()"
102923
+ [style.width.%]="scorePercentage()">
102924
+ </div>
102925
+ </div>
102926
+ <span [ngClass]="textClasses()" class="text-sm font-semibold">
102927
+ {{ scorePercentage().toFixed(0) }}%
102928
+ </span>
102929
+ </div>
102930
+ @if (explanation()) {
102931
+ <p [ngClass]="textClasses()" class="text-sm mt-3">
102932
+ {{ explanation() }}
102933
+ </p>
102934
+ }
102935
+ </div>
102936
+ }
102937
+ `
102938
+ }]
102939
+ }], null, { score: [{ type: i0.Input, args: [{ isSignal: true, alias: "score", required: false }] }], explanation: [{ type: i0.Input, args: [{ isSignal: true, alias: "explanation", required: false }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: true }] }] }); })();
102940
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SynthesisConfidenceSectionComponent, { className: "SynthesisConfidenceSectionComponent", filePath: "lib/components/shared/synthesis-confidence-section.component.ts", lineNumber: 40 }); })();
102941
+
102839
102942
  const _forTrack0$8 = ($index, $item) => $item.analysisId;
102840
102943
  function SourceAnalysisTraceabilityComponent_Conditional_0_For_8_Conditional_1_Template(rf, ctx) { if (rf & 1) {
102841
102944
  i0.ɵɵelementStart(0, "div", 8);