@eric-emg/symphiq-components 1.2.458 → 1.2.459
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 +17 -12
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +12 -12
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -95112,18 +95112,23 @@ class SymphiqProfileFocusAreasAnalysesDashboardComponent {
|
|
|
95112
95112
|
profileFocusArea,
|
|
95113
95113
|
profileAnalysis
|
|
95114
95114
|
};
|
|
95115
|
-
|
|
95116
|
-
|
|
95117
|
-
|
|
95118
|
-
|
|
95119
|
-
|
|
95120
|
-
|
|
95121
|
-
|
|
95122
|
-
|
|
95123
|
-
|
|
95124
|
-
|
|
95125
|
-
|
|
95126
|
-
|
|
95115
|
+
const isNotEngaged = engagementStatus === FocusAreaDetailStatusEnum.NOT_ENGAGED_AND_NO_INTEREST;
|
|
95116
|
+
const cond1 = !!profileFocusArea && selfContentStatusProfileFocusArea !== AiDynamicContentStatusEnum.GENERATED && !isNotEngaged;
|
|
95117
|
+
const cond2 = !!profileAnalysis && selfContentStatusProfileAnalysis !== null && selfContentStatusProfileAnalysis !== AiDynamicContentStatusEnum.GENERATED && !isNotEngaged;
|
|
95118
|
+
const cond3 = selfContentStatusProfileFocusArea === null && !isNotEngaged;
|
|
95119
|
+
const cond4 = (selfContentStatusProfileFocusArea === AiDynamicContentStatusEnum.GENERATED && (selfContentStatusProfileAnalysis === null || selfContentStatusProfileAnalysis === AiDynamicContentStatusEnum.GENERATED)) || status !== 'pending';
|
|
95120
|
+
console.log('[FocusAreaCard]', FocusAreaDomainEnumUtil.title(domain), {
|
|
95121
|
+
profileFocusAreaId: profileFocusArea?.id ?? null,
|
|
95122
|
+
profileAnalysisId: profileAnalysis?.id ?? null,
|
|
95123
|
+
selfContentStatusProfileFocusArea,
|
|
95124
|
+
selfContentStatusProfileAnalysis,
|
|
95125
|
+
itemStatusProfileFocusArea: itemStatusProfileFocusArea?.percentageComplete ?? null,
|
|
95126
|
+
itemStatusProfileAnalysis: itemStatusProfileAnalysis?.percentageComplete ?? null,
|
|
95127
|
+
engagementStatus,
|
|
95128
|
+
status,
|
|
95129
|
+
conditions: { cond1, cond2, cond3, cond4 },
|
|
95130
|
+
whichBranch: cond1 ? 'SHOW_PFA_PROGRESS' : cond2 ? 'SHOW_PA_PROGRESS' : cond3 ? 'PENDING' : cond4 ? 'SHOW_QUESTIONS' : 'NONE'
|
|
95131
|
+
});
|
|
95127
95132
|
return cardData;
|
|
95128
95133
|
});
|
|
95129
95134
|
}, ...(ngDevMode ? [{ debugName: "focusAreaCards" }] : []));
|