@eric-emg/symphiq-components 1.2.406 → 1.2.408
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.
- package/fesm2022/symphiq-components.mjs +19 -15
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +39 -39
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -12756,6 +12756,7 @@ class ProfileContextService {
|
|
|
12756
12756
|
}, ...(ngDevMode ? [{ debugName: "contextIndex" }] : []));
|
|
12757
12757
|
}
|
|
12758
12758
|
indexProfile(sections, recommendations) {
|
|
12759
|
+
console.log('[ProfileContextService.indexProfile] Called with sections:', sections?.length, 'sections');
|
|
12759
12760
|
const index = {
|
|
12760
12761
|
regions: [],
|
|
12761
12762
|
seasons: [],
|
|
@@ -12769,6 +12770,7 @@ class ProfileContextService {
|
|
|
12769
12770
|
for (const section of sections) {
|
|
12770
12771
|
if (!section.subsections)
|
|
12771
12772
|
continue;
|
|
12773
|
+
console.log('[ProfileContextService.indexProfile] Section:', section.id, 'has subsections:', section.subsections?.map(s => s.id));
|
|
12772
12774
|
for (const subsection of section.subsections) {
|
|
12773
12775
|
switch (subsection.id) {
|
|
12774
12776
|
case 'customer-regions':
|
|
@@ -12791,6 +12793,7 @@ class ProfileContextService {
|
|
|
12791
12793
|
break;
|
|
12792
12794
|
case 'competitor-analysis':
|
|
12793
12795
|
index.competitors = subsection.items || [];
|
|
12796
|
+
console.log('[ProfileContextService.indexProfile] Found competitor-analysis subsection, items:', index.competitors);
|
|
12794
12797
|
break;
|
|
12795
12798
|
}
|
|
12796
12799
|
}
|
|
@@ -12838,6 +12841,7 @@ class ProfileContextService {
|
|
|
12838
12841
|
}
|
|
12839
12842
|
getCompetitorsByIds(ids) {
|
|
12840
12843
|
const competitors = this.getCompetitors();
|
|
12844
|
+
console.log('[ProfileContextService.getCompetitorsByIds] all competitors:', competitors, 'looking for ids:', ids);
|
|
12841
12845
|
return ids.map(id => competitors.find(comp => comp.id === id)).filter(Boolean);
|
|
12842
12846
|
}
|
|
12843
12847
|
getRecommendationsByProfileItemIds(itemIds) {
|
|
@@ -73562,7 +73566,7 @@ function PhaseTimelineCardComponent_Conditional_9_Template(rf, ctx) { if (rf & 1
|
|
|
73562
73566
|
i0.ɵɵtext(4, " Recommendations ");
|
|
73563
73567
|
i0.ɵɵelementEnd();
|
|
73564
73568
|
i0.ɵɵnamespaceHTML();
|
|
73565
|
-
i0.ɵɵelementStart(5, "div",
|
|
73569
|
+
i0.ɵɵelementStart(5, "div", 18);
|
|
73566
73570
|
i0.ɵɵrepeaterCreate(6, PhaseTimelineCardComponent_Conditional_9_For_7_Template, 4, 5, "button", 14, _forTrack0$j);
|
|
73567
73571
|
i0.ɵɵelementEnd()();
|
|
73568
73572
|
} if (rf & 2) {
|
|
@@ -73573,13 +73577,13 @@ function PhaseTimelineCardComponent_Conditional_9_Template(rf, ctx) { if (rf & 1
|
|
|
73573
73577
|
i0.ɵɵrepeater(ctx_r2.recommendationObjects());
|
|
73574
73578
|
} }
|
|
73575
73579
|
function PhaseTimelineCardComponent_Conditional_10_For_10_Template(rf, ctx) { if (rf & 1) {
|
|
73576
|
-
i0.ɵɵelementStart(0, "li",
|
|
73580
|
+
i0.ɵɵelementStart(0, "li", 24);
|
|
73577
73581
|
i0.ɵɵnamespaceSVG();
|
|
73578
|
-
i0.ɵɵelementStart(1, "svg",
|
|
73579
|
-
i0.ɵɵelement(2, "path",
|
|
73582
|
+
i0.ɵɵelementStart(1, "svg", 25);
|
|
73583
|
+
i0.ɵɵelement(2, "path", 26);
|
|
73580
73584
|
i0.ɵɵelementEnd();
|
|
73581
73585
|
i0.ɵɵnamespaceHTML();
|
|
73582
|
-
i0.ɵɵelementStart(3, "span",
|
|
73586
|
+
i0.ɵɵelementStart(3, "span", 27);
|
|
73583
73587
|
i0.ɵɵtext(4);
|
|
73584
73588
|
i0.ɵɵelementEnd()();
|
|
73585
73589
|
} if (rf & 2) {
|
|
@@ -73593,16 +73597,16 @@ function PhaseTimelineCardComponent_Conditional_10_For_10_Template(rf, ctx) { if
|
|
|
73593
73597
|
i0.ɵɵtextInterpolate(outcome_r6);
|
|
73594
73598
|
} }
|
|
73595
73599
|
function PhaseTimelineCardComponent_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
73596
|
-
i0.ɵɵelementStart(0, "div",
|
|
73600
|
+
i0.ɵɵelementStart(0, "div", 19)(1, "div", 20)(2, "div")(3, "h6", 10);
|
|
73597
73601
|
i0.ɵɵnamespaceSVG();
|
|
73598
73602
|
i0.ɵɵelementStart(4, "svg", 11);
|
|
73599
|
-
i0.ɵɵelement(5, "path",
|
|
73603
|
+
i0.ɵɵelement(5, "path", 21);
|
|
73600
73604
|
i0.ɵɵelementEnd();
|
|
73601
73605
|
i0.ɵɵtext(6, " Expected Outcomes ");
|
|
73602
73606
|
i0.ɵɵelementEnd();
|
|
73603
73607
|
i0.ɵɵnamespaceHTML();
|
|
73604
|
-
i0.ɵɵelementStart(7, "div",
|
|
73605
|
-
i0.ɵɵrepeaterCreate(9, PhaseTimelineCardComponent_Conditional_10_For_10_Template, 5, 3, "li",
|
|
73608
|
+
i0.ɵɵelementStart(7, "div", 22)(8, "ul", 23);
|
|
73609
|
+
i0.ɵɵrepeaterCreate(9, PhaseTimelineCardComponent_Conditional_10_For_10_Template, 5, 3, "li", 24, i0.ɵɵrepeaterTrackByIndex);
|
|
73606
73610
|
i0.ɵɵelementEnd()()()()();
|
|
73607
73611
|
} if (rf & 2) {
|
|
73608
73612
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -73616,14 +73620,14 @@ function PhaseTimelineCardComponent_Conditional_10_Template(rf, ctx) { if (rf &
|
|
|
73616
73620
|
} }
|
|
73617
73621
|
function PhaseTimelineCardComponent_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
73618
73622
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
73619
|
-
i0.ɵɵelementStart(0, "div",
|
|
73623
|
+
i0.ɵɵelementStart(0, "div", 28);
|
|
73620
73624
|
i0.ɵɵlistener("click", function PhaseTimelineCardComponent_Conditional_11_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.toggleExpanded($event)); });
|
|
73621
|
-
i0.ɵɵelementStart(1, "span",
|
|
73625
|
+
i0.ɵɵelementStart(1, "span", 29);
|
|
73622
73626
|
i0.ɵɵtext(2);
|
|
73623
73627
|
i0.ɵɵelementEnd();
|
|
73624
73628
|
i0.ɵɵnamespaceSVG();
|
|
73625
|
-
i0.ɵɵelementStart(3, "svg",
|
|
73626
|
-
i0.ɵɵelement(4, "path",
|
|
73629
|
+
i0.ɵɵelementStart(3, "svg", 30);
|
|
73630
|
+
i0.ɵɵelement(4, "path", 31);
|
|
73627
73631
|
i0.ɵɵelementEnd()();
|
|
73628
73632
|
} if (rf & 2) {
|
|
73629
73633
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -73800,7 +73804,7 @@ class PhaseTimelineCardComponent {
|
|
|
73800
73804
|
this.modalService.navigateToBusinessInsightDetail(recommendation, goalContext, this.viewMode());
|
|
73801
73805
|
}
|
|
73802
73806
|
static { this.ɵfac = function PhaseTimelineCardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PhaseTimelineCardComponent)(); }; }
|
|
73803
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhaseTimelineCardComponent, selectors: [["symphiq-phase-timeline-card"]], inputs: { phase: [1, "phase"], viewMode: [1, "viewMode"], isLast: [1, "isLast"], allGoals: [1, "allGoals"] }, decls: 12, vars: 12, consts: [[1, "rounded-lg", "p-5", "relative", 3, "click", "ngClass"], [1, "flex", "items-start", "gap-4", "relative"], [1, "z-10", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-5", "h-5"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"], [1, "flex-1"], [1, "font-bold", "text-lg", "mb-4", 3, "ngClass"], [1, "mb-4"], [1, "grid", "transition-[grid-template-rows]", "duration-300", "ease-in-out", 3, "grid-template-rows"], [1, "flex", "items-center", "gap-2", "mt-3", "cursor-pointer"], [1, "text-sm", "font-semibold", "mb-2", "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-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"], [1, "flex", "flex-wrap", "gap-2"], ["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", "hover:shadow-md", 3, "ngClass"], ["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", "hover:shadow-md", 3, "click", "ngClass"], ["size", "w-3.5 h-3.5", 1, "flex-shrink-0", "opacity-60", 3, "icon"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"], [1, "grid", "transition-[grid-template-rows]", "duration-300", "ease-in-out"], [1, "overflow-hidden"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 10V3L4 14h7v7l9-11h-7z"], [1, "p-3", "rounded-lg", 3, "ngClass"], [1, "space-y-1.5"], [1, "flex", "items-start", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "flex-shrink-0", "mt-0.5", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M5 13l4 4L19 7"], [1, "text-sm", 3, "ngClass"], [1, "flex", "items-center", "gap-2", "mt-3", "cursor-pointer", 3, "click"], [1, "text-sm", "font-medium", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "transition-transform", "duration-200", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M19 9l-7 7-7-7"]], template: function PhaseTimelineCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
73807
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PhaseTimelineCardComponent, selectors: [["symphiq-phase-timeline-card"]], inputs: { phase: [1, "phase"], viewMode: [1, "viewMode"], isLast: [1, "isLast"], allGoals: [1, "allGoals"] }, decls: 12, vars: 12, consts: [[1, "rounded-lg", "p-5", "relative", 3, "click", "ngClass"], [1, "flex", "items-start", "gap-4", "relative"], [1, "z-10", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-5", "h-5"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"], [1, "flex-1"], [1, "font-bold", "text-lg", "mb-4", 3, "ngClass"], [1, "mb-4"], [1, "grid", "transition-[grid-template-rows]", "duration-300", "ease-in-out", 3, "grid-template-rows"], [1, "flex", "items-center", "gap-2", "mt-3", "cursor-pointer"], [1, "text-sm", "font-semibold", "mb-2", "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-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"], [1, "flex", "flex-wrap", "gap-2"], ["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", "hover:shadow-md", 3, "ngClass"], ["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", "hover:shadow-md", 3, "click", "ngClass"], ["size", "w-3.5 h-3.5", 1, "flex-shrink-0", "opacity-60", 3, "icon"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"], [1, "flex", "flex-wrap", "gap-3"], [1, "grid", "transition-[grid-template-rows]", "duration-300", "ease-in-out"], [1, "overflow-hidden"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M13 10V3L4 14h7v7l9-11h-7z"], [1, "p-3", "rounded-lg", 3, "ngClass"], [1, "space-y-1.5"], [1, "flex", "items-start", "gap-2"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "flex-shrink-0", "mt-0.5", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M5 13l4 4L19 7"], [1, "text-sm", 3, "ngClass"], [1, "flex", "items-center", "gap-2", "mt-3", "cursor-pointer", 3, "click"], [1, "text-sm", "font-medium", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "transition-transform", "duration-200", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M19 9l-7 7-7-7"]], template: function PhaseTimelineCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
73804
73808
|
i0.ɵɵelementStart(0, "div", 0);
|
|
73805
73809
|
i0.ɵɵlistener("click", function PhaseTimelineCardComponent_Template_div_click_0_listener($event) { return ctx.onCardClick($event); });
|
|
73806
73810
|
i0.ɵɵelementStart(1, "div", 1)(2, "div", 2);
|
|
@@ -73894,7 +73898,7 @@ class PhaseTimelineCardComponent {
|
|
|
73894
73898
|
</svg>
|
|
73895
73899
|
Recommendations
|
|
73896
73900
|
</h6>
|
|
73897
|
-
<div class="flex flex-wrap gap-
|
|
73901
|
+
<div class="flex flex-wrap gap-3">
|
|
73898
73902
|
@for (recommendation of recommendationObjects(); track recommendation.id) {
|
|
73899
73903
|
<button
|
|
73900
73904
|
type="button"
|