@eric-emg/symphiq-components 1.3.79 → 1.3.80
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.
|
@@ -452,7 +452,6 @@ class ModalService {
|
|
|
452
452
|
openSourceGoalDetailModal(goal, viewMode, sourceAnalysisType, previousState, sourceTypeTitle) {
|
|
453
453
|
const data = { goal, viewMode, sourceAnalysisType, sourceTypeTitle };
|
|
454
454
|
const navigationStack = previousState ? [...(previousState.navigationStack || []), previousState] : [];
|
|
455
|
-
console.log('[ModalService] openSourceGoalDetailModal - previousState:', previousState?.type, 'navigationStack:', navigationStack.length, 'items', navigationStack.map(s => s.type));
|
|
456
455
|
this.modalState.next({ type: 'goal-detail', data, charts: [], previousState, navigationStack });
|
|
457
456
|
}
|
|
458
457
|
navigateToGoalDetail(goal, viewMode) {
|
|
@@ -44827,7 +44826,8 @@ class ProfileAnalysisModalComponent {
|
|
|
44827
44826
|
'critical-gaps-list', 'key-strength-detail', 'critical-gap-detail', 'top-priorities-list',
|
|
44828
44827
|
'top-priority-detail', 'focus-area-strengths-list', 'focus-area-gaps-list',
|
|
44829
44828
|
'focus-area-opportunities-list', 'focus-area-strength-detail', 'focus-area-gap-detail',
|
|
44830
|
-
'focus-area-opportunity-detail', 'metrics-list', 'metric', 'insight', 'item-detail',
|
|
44829
|
+
'focus-area-opportunity-detail', 'metrics-list', 'metric', 'insight', 'item-detail',
|
|
44830
|
+
'chart', 'charts-list', null
|
|
44831
44831
|
];
|
|
44832
44832
|
// Only update previousState if this modal handles the type
|
|
44833
44833
|
// This prevents z-index conflicts when other modals open on top
|
|
@@ -45187,6 +45187,26 @@ class ProfileAnalysisModalComponent {
|
|
|
45187
45187
|
this.navigationStack.set(stack);
|
|
45188
45188
|
this.currentCharts.set(state.charts || []);
|
|
45189
45189
|
}
|
|
45190
|
+
else if (state.type === 'chart' && state.data) {
|
|
45191
|
+
const chart = state.data;
|
|
45192
|
+
this.modalData.set(chart);
|
|
45193
|
+
this.modalTitle.set(chart.title || 'Chart');
|
|
45194
|
+
this.modalType.set('chart');
|
|
45195
|
+
this.openModalFresh();
|
|
45196
|
+
const stack = state.navigationStack || [];
|
|
45197
|
+
this.navigationStack.set(stack);
|
|
45198
|
+
this.currentCharts.set([]);
|
|
45199
|
+
}
|
|
45200
|
+
else if (state.type === 'charts-list' && state.data) {
|
|
45201
|
+
const data = state.data;
|
|
45202
|
+
this.modalData.set(data);
|
|
45203
|
+
this.modalTitle.set(data.insightContext?.title ? `Charts for ${data.insightContext.title}` : 'Related Charts');
|
|
45204
|
+
this.modalType.set('charts-list');
|
|
45205
|
+
this.openModalFresh();
|
|
45206
|
+
const stack = state.navigationStack || [];
|
|
45207
|
+
this.navigationStack.set(stack);
|
|
45208
|
+
this.currentCharts.set(data.charts || []);
|
|
45209
|
+
}
|
|
45190
45210
|
else if (state.type === null) {
|
|
45191
45211
|
this.isOpen.set(false);
|
|
45192
45212
|
setTimeout(() => {
|
|
@@ -104978,196 +104998,237 @@ function GoalActionStateSelectorComponent_Conditional_2_Template(rf, ctx) { if (
|
|
|
104978
104998
|
i0.ɵɵelementStart(0, "svg", 2);
|
|
104979
104999
|
i0.ɵɵelement(1, "path", 7)(2, "path", 8);
|
|
104980
105000
|
i0.ɵɵelementEnd();
|
|
105001
|
+
} }
|
|
105002
|
+
function GoalActionStateSelectorComponent_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
105003
|
+
i0.ɵɵelement(0, "span", 3);
|
|
104981
105004
|
} if (rf & 2) {
|
|
104982
105005
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
104983
|
-
i0.ɵɵproperty("ngClass", ctx_r0.
|
|
105006
|
+
i0.ɵɵproperty("ngClass", ctx_r0.dotClasses());
|
|
104984
105007
|
} }
|
|
104985
|
-
function
|
|
105008
|
+
function GoalActionStateSelectorComponent_Conditional_7_For_2_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
104986
105009
|
i0.ɵɵnamespaceSVG();
|
|
104987
|
-
i0.ɵɵelementStart(0, "svg",
|
|
104988
|
-
i0.ɵɵelement(1, "path",
|
|
105010
|
+
i0.ɵɵelementStart(0, "svg", 13);
|
|
105011
|
+
i0.ɵɵelement(1, "path", 14);
|
|
104989
105012
|
i0.ɵɵelementEnd();
|
|
104990
105013
|
} }
|
|
104991
|
-
function
|
|
105014
|
+
function GoalActionStateSelectorComponent_Conditional_7_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
104992
105015
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
104993
|
-
i0.ɵɵelementStart(0, "button",
|
|
104994
|
-
i0.ɵɵlistener("click", function
|
|
104995
|
-
i0.ɵɵelement(1, "span",
|
|
104996
|
-
i0.ɵɵelementStart(2, "span");
|
|
105016
|
+
i0.ɵɵelementStart(0, "button", 10);
|
|
105017
|
+
i0.ɵɵlistener("click", function GoalActionStateSelectorComponent_Conditional_7_For_2_Template_button_click_0_listener($event) { const option_r3 = i0.ɵɵrestoreView(_r2).$implicit; const ctx_r0 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r0.selectOption($event, option_r3.value)); });
|
|
105018
|
+
i0.ɵɵelement(1, "span", 11);
|
|
105019
|
+
i0.ɵɵelementStart(2, "span", 12);
|
|
104997
105020
|
i0.ɵɵtext(3);
|
|
104998
105021
|
i0.ɵɵelementEnd();
|
|
104999
|
-
i0.ɵɵconditionalCreate(4,
|
|
105022
|
+
i0.ɵɵconditionalCreate(4, GoalActionStateSelectorComponent_Conditional_7_For_2_Conditional_4_Template, 2, 0, ":svg:svg", 13);
|
|
105000
105023
|
i0.ɵɵelementEnd();
|
|
105001
105024
|
} if (rf & 2) {
|
|
105002
105025
|
const option_r3 = ctx.$implicit;
|
|
105003
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
105004
|
-
i0.ɵɵproperty("ngClass", ctx_r0.
|
|
105026
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
105027
|
+
i0.ɵɵproperty("ngClass", ctx_r0.getOptionClasses(option_r3.value));
|
|
105005
105028
|
i0.ɵɵadvance();
|
|
105006
|
-
i0.ɵɵproperty("ngClass", ctx_r0.
|
|
105029
|
+
i0.ɵɵproperty("ngClass", ctx_r0.getOptionDotClasses(option_r3.value));
|
|
105007
105030
|
i0.ɵɵadvance(2);
|
|
105008
105031
|
i0.ɵɵtextInterpolate(option_r3.label);
|
|
105009
105032
|
i0.ɵɵadvance();
|
|
105010
105033
|
i0.ɵɵconditional(ctx_r0.state() === option_r3.value ? 4 : -1);
|
|
105011
105034
|
} }
|
|
105035
|
+
function GoalActionStateSelectorComponent_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
105036
|
+
i0.ɵɵelementStart(0, "div", 6);
|
|
105037
|
+
i0.ɵɵrepeaterCreate(1, GoalActionStateSelectorComponent_Conditional_7_For_2_Template, 5, 4, "button", 9, _forTrack0$6);
|
|
105038
|
+
i0.ɵɵelementEnd();
|
|
105039
|
+
} if (rf & 2) {
|
|
105040
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
105041
|
+
i0.ɵɵproperty("ngClass", ctx_r0.dropdownClasses());
|
|
105042
|
+
i0.ɵɵadvance();
|
|
105043
|
+
i0.ɵɵrepeater(ctx_r0.options);
|
|
105044
|
+
} }
|
|
105012
105045
|
class GoalActionStateSelectorComponent {
|
|
105013
105046
|
constructor() {
|
|
105014
105047
|
this.state = input(...(ngDevMode ? [undefined, { debugName: "state" }] : []));
|
|
105015
105048
|
this.viewMode = input(ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "viewMode" }] : []));
|
|
105016
105049
|
this.goalId = input(...(ngDevMode ? [undefined, { debugName: "goalId" }] : []));
|
|
105017
105050
|
this.stateChange = output();
|
|
105051
|
+
this.isOpen = signal(false, ...(ngDevMode ? [{ debugName: "isOpen" }] : []));
|
|
105052
|
+
this.elementRef = inject(ElementRef);
|
|
105018
105053
|
this.options = [
|
|
105019
105054
|
{ value: GoalActionStateEnum.PLAN, label: 'Plan to Act' },
|
|
105020
105055
|
{ value: GoalActionStateEnum.POTENTIAL, label: 'Keep for Later' },
|
|
105021
105056
|
{ value: GoalActionStateEnum.SKIP, label: 'Skip' }
|
|
105022
105057
|
];
|
|
105023
105058
|
this.isDark = computed(() => this.viewMode() === ViewModeEnum.DARK, ...(ngDevMode ? [{ debugName: "isDark" }] : []));
|
|
105024
|
-
this.
|
|
105025
|
-
|
|
105026
|
-
return
|
|
105027
|
-
|
|
105028
|
-
|
|
105029
|
-
|
|
105030
|
-
return this.isDark() ? 'bg-slate-800/30' : 'bg-slate-50/50';
|
|
105031
|
-
}, ...(ngDevMode ? [{ debugName: "containerClasses" }] : []));
|
|
105032
|
-
this.promptIconClasses = computed(() => {
|
|
105033
|
-
return this.isDark() ? 'text-blue-400 animate-pulse' : 'text-blue-600 animate-pulse';
|
|
105034
|
-
}, ...(ngDevMode ? [{ debugName: "promptIconClasses" }] : []));
|
|
105035
|
-
this.labelClasses = computed(() => {
|
|
105036
|
-
if (!this.state()) {
|
|
105037
|
-
return this.isDark() ? 'text-blue-300 font-bold' : 'text-blue-700 font-bold';
|
|
105038
|
-
}
|
|
105039
|
-
return this.isDark() ? 'text-slate-400' : 'text-slate-500';
|
|
105040
|
-
}, ...(ngDevMode ? [{ debugName: "labelClasses" }] : []));
|
|
105041
|
-
this.hintClasses = computed(() => {
|
|
105042
|
-
if (!this.state()) {
|
|
105043
|
-
return this.isDark() ? 'text-slate-400' : 'text-slate-500';
|
|
105059
|
+
this.label = computed(() => {
|
|
105060
|
+
switch (this.state()) {
|
|
105061
|
+
case GoalActionStateEnum.PLAN: return 'Planned';
|
|
105062
|
+
case GoalActionStateEnum.POTENTIAL: return 'Potential';
|
|
105063
|
+
case GoalActionStateEnum.SKIP: return 'Skipped';
|
|
105064
|
+
default: return 'Choose Action';
|
|
105044
105065
|
}
|
|
105045
|
-
|
|
105046
|
-
|
|
105047
|
-
|
|
105048
|
-
|
|
105049
|
-
|
|
105050
|
-
|
|
105051
|
-
|
|
105052
|
-
switch (
|
|
105066
|
+
}, ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
105067
|
+
this.chipClasses = computed(() => {
|
|
105068
|
+
const s = this.state();
|
|
105069
|
+
if (this.isDark()) {
|
|
105070
|
+
if (!s) {
|
|
105071
|
+
return 'bg-blue-600/30 text-blue-300 border-blue-400 hover:bg-blue-600/40 hover:shadow-blue-500/30 hover:shadow-lg';
|
|
105072
|
+
}
|
|
105073
|
+
switch (s) {
|
|
105053
105074
|
case GoalActionStateEnum.PLAN:
|
|
105054
|
-
return 'bg-emerald-900/
|
|
105075
|
+
return 'bg-emerald-900/40 text-emerald-300 border-emerald-600 hover:bg-emerald-900/60 hover:shadow-emerald-500/20 hover:shadow-md';
|
|
105055
105076
|
case GoalActionStateEnum.POTENTIAL:
|
|
105056
|
-
return 'bg-amber-900/
|
|
105077
|
+
return 'bg-amber-900/40 text-amber-300 border-amber-600 hover:bg-amber-900/60 hover:shadow-amber-500/20 hover:shadow-md';
|
|
105057
105078
|
case GoalActionStateEnum.SKIP:
|
|
105058
|
-
return 'bg-slate-700/
|
|
105079
|
+
return 'bg-slate-700/50 text-slate-400 border-slate-600 hover:bg-slate-700/70 hover:shadow-slate-500/20 hover:shadow-md';
|
|
105080
|
+
default:
|
|
105081
|
+
return 'bg-slate-700/50 text-slate-400 border-slate-600';
|
|
105059
105082
|
}
|
|
105060
105083
|
}
|
|
105061
|
-
|
|
105062
|
-
|
|
105063
|
-
|
|
105064
|
-
switch (
|
|
105084
|
+
if (!s) {
|
|
105085
|
+
return 'bg-blue-100 text-blue-700 border-blue-400 hover:bg-blue-200 hover:shadow-blue-300 hover:shadow-lg';
|
|
105086
|
+
}
|
|
105087
|
+
switch (s) {
|
|
105065
105088
|
case GoalActionStateEnum.PLAN:
|
|
105066
|
-
return 'bg-emerald-100 text-emerald-700 border-emerald-
|
|
105089
|
+
return 'bg-emerald-100 text-emerald-700 border-emerald-300 hover:bg-emerald-200 hover:shadow-emerald-200 hover:shadow-md';
|
|
105067
105090
|
case GoalActionStateEnum.POTENTIAL:
|
|
105068
|
-
return 'bg-amber-100 text-amber-700 border-amber-
|
|
105091
|
+
return 'bg-amber-100 text-amber-700 border-amber-300 hover:bg-amber-200 hover:shadow-amber-200 hover:shadow-md';
|
|
105069
105092
|
case GoalActionStateEnum.SKIP:
|
|
105070
|
-
return 'bg-slate-100 text-slate-
|
|
105093
|
+
return 'bg-slate-100 text-slate-500 border-slate-300 hover:bg-slate-200 hover:shadow-slate-200 hover:shadow-md';
|
|
105094
|
+
default:
|
|
105095
|
+
return 'bg-slate-100 text-slate-600 border-slate-200';
|
|
105071
105096
|
}
|
|
105072
|
-
}
|
|
105073
|
-
|
|
105097
|
+
}, ...(ngDevMode ? [{ debugName: "chipClasses" }] : []));
|
|
105098
|
+
this.dotClasses = computed(() => {
|
|
105099
|
+
const s = this.state();
|
|
105100
|
+
switch (s) {
|
|
105101
|
+
case GoalActionStateEnum.PLAN:
|
|
105102
|
+
return 'bg-emerald-500';
|
|
105103
|
+
case GoalActionStateEnum.POTENTIAL:
|
|
105104
|
+
return 'bg-amber-500';
|
|
105105
|
+
case GoalActionStateEnum.SKIP:
|
|
105106
|
+
return 'bg-slate-400';
|
|
105107
|
+
default:
|
|
105108
|
+
return 'bg-slate-400';
|
|
105109
|
+
}
|
|
105110
|
+
}, ...(ngDevMode ? [{ debugName: "dotClasses" }] : []));
|
|
105111
|
+
this.dropdownClasses = computed(() => {
|
|
105112
|
+
return this.isDark()
|
|
105113
|
+
? 'bg-slate-800 border-slate-700'
|
|
105114
|
+
: 'bg-white border-slate-200';
|
|
105115
|
+
}, ...(ngDevMode ? [{ debugName: "dropdownClasses" }] : []));
|
|
105074
105116
|
}
|
|
105075
|
-
|
|
105117
|
+
getOptionClasses(value) {
|
|
105076
105118
|
const isSelected = this.state() === value;
|
|
105077
|
-
|
|
105078
|
-
|
|
105079
|
-
|
|
105080
|
-
|
|
105081
|
-
return isSelected ? 'bg-amber-500' : 'bg-amber-400/50';
|
|
105082
|
-
case GoalActionStateEnum.SKIP:
|
|
105083
|
-
return isSelected ? 'bg-slate-500' : 'bg-slate-400/50';
|
|
105084
|
-
default:
|
|
105085
|
-
return 'bg-slate-400/50';
|
|
105119
|
+
if (this.isDark()) {
|
|
105120
|
+
return isSelected
|
|
105121
|
+
? 'bg-slate-700/50 text-white'
|
|
105122
|
+
: 'text-slate-300 hover:bg-slate-700/30';
|
|
105086
105123
|
}
|
|
105124
|
+
return isSelected
|
|
105125
|
+
? 'bg-slate-100 text-slate-900'
|
|
105126
|
+
: 'text-slate-700 hover:bg-slate-50';
|
|
105087
105127
|
}
|
|
105088
|
-
|
|
105089
|
-
switch (
|
|
105128
|
+
getOptionDotClasses(value) {
|
|
105129
|
+
switch (value) {
|
|
105090
105130
|
case GoalActionStateEnum.PLAN:
|
|
105091
|
-
return '
|
|
105131
|
+
return 'bg-emerald-500';
|
|
105092
105132
|
case GoalActionStateEnum.POTENTIAL:
|
|
105093
|
-
return '
|
|
105133
|
+
return 'bg-amber-500';
|
|
105094
105134
|
case GoalActionStateEnum.SKIP:
|
|
105095
|
-
return '
|
|
105135
|
+
return 'bg-slate-400';
|
|
105096
105136
|
default:
|
|
105097
|
-
return '
|
|
105137
|
+
return 'bg-slate-400';
|
|
105098
105138
|
}
|
|
105099
105139
|
}
|
|
105100
|
-
|
|
105140
|
+
toggleDropdown(event) {
|
|
105141
|
+
event.stopPropagation();
|
|
105142
|
+
this.isOpen.update(v => !v);
|
|
105143
|
+
}
|
|
105144
|
+
selectOption(event, value) {
|
|
105145
|
+
event.stopPropagation();
|
|
105146
|
+
this.isOpen.set(false);
|
|
105101
105147
|
this.stateChange.emit({ goalId: this.goalId(), state: value });
|
|
105102
105148
|
}
|
|
105149
|
+
onDocumentClick(event) {
|
|
105150
|
+
if (!this.elementRef.nativeElement.contains(event.target)) {
|
|
105151
|
+
this.isOpen.set(false);
|
|
105152
|
+
}
|
|
105153
|
+
}
|
|
105103
105154
|
static { this.ɵfac = function GoalActionStateSelectorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || GoalActionStateSelectorComponent)(); }; }
|
|
105104
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GoalActionStateSelectorComponent, selectors: [["symphiq-goal-action-state-selector"]],
|
|
105105
|
-
i0.ɵɵ
|
|
105106
|
-
|
|
105107
|
-
i0.ɵɵelementStart(
|
|
105155
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GoalActionStateSelectorComponent, selectors: [["symphiq-goal-action-state-selector"]], hostBindings: function GoalActionStateSelectorComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
105156
|
+
i0.ɵɵlistener("click", function GoalActionStateSelectorComponent_click_HostBindingHandler($event) { return ctx.onDocumentClick($event); }, i0.ɵɵresolveDocument);
|
|
105157
|
+
} }, inputs: { state: [1, "state"], viewMode: [1, "viewMode"], goalId: [1, "goalId"] }, outputs: { stateChange: "stateChange" }, decls: 8, vars: 8, consts: [[1, "relative", "inline-block"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-4", "py-2", "rounded-full", "text-sm", "font-semibold", "whitespace-nowrap", "cursor-pointer", "transition-all", "duration-200", "hover:scale-105", "border", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "animate-pulse"], [1, "w-2.5", "h-2.5", "rounded-full", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-4", "h-4", "transition-transform", "duration-200"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M19 9l-7 7-7-7"], [1, "absolute", "bottom-full", "left-0", "mb-2", "min-w-[180px]", "rounded-xl", "shadow-xl", "z-50", "py-2", "border", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M15 12a3 3 0 11-6 0 3 3 0 016 0z"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"], ["type", "button", 1, "w-full", "flex", "items-center", "gap-3", "px-4", "py-2.5", "text-sm", "font-medium", "transition-colors", "duration-150", "text-left", 3, "ngClass"], ["type", "button", 1, "w-full", "flex", "items-center", "gap-3", "px-4", "py-2.5", "text-sm", "font-medium", "transition-colors", "duration-150", "text-left", 3, "click", "ngClass"], [1, "w-2.5", "h-2.5", "rounded-full", "flex-shrink-0", 3, "ngClass"], [1, "flex-1"], ["fill", "currentColor", "viewBox", "0 0 20 20", 1, "w-4", "h-4", "text-blue-500"], ["fill-rule", "evenodd", "d", "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z", "clip-rule", "evenodd"]], template: function GoalActionStateSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
105158
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "button", 1);
|
|
105159
|
+
i0.ɵɵlistener("click", function GoalActionStateSelectorComponent_Template_button_click_1_listener($event) { return ctx.toggleDropdown($event); });
|
|
105160
|
+
i0.ɵɵconditionalCreate(2, GoalActionStateSelectorComponent_Conditional_2_Template, 3, 0, ":svg:svg", 2)(3, GoalActionStateSelectorComponent_Conditional_3_Template, 1, 1, "span", 3);
|
|
105108
105161
|
i0.ɵɵtext(4);
|
|
105162
|
+
i0.ɵɵnamespaceSVG();
|
|
105163
|
+
i0.ɵɵelementStart(5, "svg", 4);
|
|
105164
|
+
i0.ɵɵelement(6, "path", 5);
|
|
105109
105165
|
i0.ɵɵelementEnd()();
|
|
105110
|
-
i0.ɵɵ
|
|
105111
|
-
i0.ɵɵrepeaterCreate(6, GoalActionStateSelectorComponent_For_7_Template, 5, 4, "button", 5, _forTrack0$6);
|
|
105166
|
+
i0.ɵɵconditionalCreate(7, GoalActionStateSelectorComponent_Conditional_7_Template, 3, 1, "div", 6);
|
|
105112
105167
|
i0.ɵɵelementEnd();
|
|
105113
|
-
i0.ɵɵelementStart(8, "div", 6);
|
|
105114
|
-
i0.ɵɵtext(9);
|
|
105115
|
-
i0.ɵɵelementEnd()();
|
|
105116
105168
|
} if (rf & 2) {
|
|
105117
|
-
i0.ɵɵproperty("ngClass", ctx.containerClasses());
|
|
105118
|
-
i0.ɵɵadvance(2);
|
|
105119
|
-
i0.ɵɵconditional(!ctx.state() ? 2 : -1);
|
|
105120
105169
|
i0.ɵɵadvance();
|
|
105121
|
-
i0.ɵɵ
|
|
105170
|
+
i0.ɵɵclassProp("animate-attention-pulse", !ctx.state());
|
|
105171
|
+
i0.ɵɵproperty("ngClass", ctx.chipClasses());
|
|
105122
105172
|
i0.ɵɵadvance();
|
|
105123
|
-
i0.ɵɵ
|
|
105173
|
+
i0.ɵɵconditional(!ctx.state() ? 2 : 3);
|
|
105124
105174
|
i0.ɵɵadvance(2);
|
|
105125
|
-
i0.ɵɵ
|
|
105126
|
-
i0.ɵɵadvance(2);
|
|
105127
|
-
i0.ɵɵproperty("ngClass", ctx.hintClasses());
|
|
105175
|
+
i0.ɵɵtextInterpolate1(" ", ctx.label(), " ");
|
|
105128
105176
|
i0.ɵɵadvance();
|
|
105129
|
-
i0.ɵɵ
|
|
105130
|
-
|
|
105177
|
+
i0.ɵɵclassProp("rotate-180", ctx.isOpen());
|
|
105178
|
+
i0.ɵɵadvance(2);
|
|
105179
|
+
i0.ɵɵconditional(ctx.isOpen() ? 7 : -1);
|
|
105180
|
+
} }, dependencies: [CommonModule, i1$1.NgClass], styles: ["@keyframes _ngcontent-%COMP%_attention-pulse{0%,to{box-shadow:0 0 #60a5fa99}50%{box-shadow:0 0 0 8px #60a5fa00}}.animate-attention-pulse[_ngcontent-%COMP%]{animation:_ngcontent-%COMP%_attention-pulse 2s ease-in-out infinite}"], changeDetection: 0 }); }
|
|
105131
105181
|
}
|
|
105132
105182
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GoalActionStateSelectorComponent, [{
|
|
105133
105183
|
type: Component,
|
|
105134
105184
|
args: [{ selector: 'symphiq-goal-action-state-selector', standalone: true, imports: [CommonModule], changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
105135
|
-
<div
|
|
105136
|
-
<
|
|
105185
|
+
<div class="relative inline-block">
|
|
105186
|
+
<button
|
|
105187
|
+
type="button"
|
|
105188
|
+
(click)="toggleDropdown($event)"
|
|
105189
|
+
[ngClass]="chipClasses()"
|
|
105190
|
+
[class.animate-attention-pulse]="!state()"
|
|
105191
|
+
class="inline-flex items-center gap-2 px-4 py-2 rounded-full text-sm font-semibold whitespace-nowrap cursor-pointer transition-all duration-200 hover:scale-105 border">
|
|
105137
105192
|
@if (!state()) {
|
|
105138
|
-
<svg
|
|
105193
|
+
<svg class="w-4 h-4 animate-pulse" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
105139
105194
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"/>
|
|
105140
105195
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"/>
|
|
105141
105196
|
</svg>
|
|
105197
|
+
} @else {
|
|
105198
|
+
<span [ngClass]="dotClasses()" class="w-2.5 h-2.5 rounded-full"></span>
|
|
105142
105199
|
}
|
|
105143
|
-
|
|
105144
|
-
|
|
105200
|
+
{{ label() }}
|
|
105201
|
+
<svg class="w-4 h-4 transition-transform duration-200" [class.rotate-180]="isOpen()" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
105202
|
+
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"></path>
|
|
105203
|
+
</svg>
|
|
105204
|
+
</button>
|
|
105205
|
+
|
|
105206
|
+
@if (isOpen()) {
|
|
105207
|
+
<div [ngClass]="dropdownClasses()" class="absolute bottom-full left-0 mb-2 min-w-[180px] rounded-xl shadow-xl z-50 py-2 border">
|
|
105208
|
+
@for (option of options; track option.value) {
|
|
105209
|
+
<button
|
|
105210
|
+
type="button"
|
|
105211
|
+
(click)="selectOption($event, option.value)"
|
|
105212
|
+
[ngClass]="getOptionClasses(option.value)"
|
|
105213
|
+
class="w-full flex items-center gap-3 px-4 py-2.5 text-sm font-medium transition-colors duration-150 text-left">
|
|
105214
|
+
<span [ngClass]="getOptionDotClasses(option.value)" class="w-2.5 h-2.5 rounded-full flex-shrink-0"></span>
|
|
105215
|
+
<span class="flex-1">{{ option.label }}</span>
|
|
105216
|
+
@if (state() === option.value) {
|
|
105217
|
+
<svg class="w-4 h-4 text-blue-500" fill="currentColor" viewBox="0 0 20 20">
|
|
105218
|
+
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"></path>
|
|
105219
|
+
</svg>
|
|
105220
|
+
}
|
|
105221
|
+
</button>
|
|
105222
|
+
}
|
|
105145
105223
|
</div>
|
|
105146
|
-
|
|
105147
|
-
<div class="flex flex-col sm:flex-row sm:flex-wrap gap-2 sm:gap-3">
|
|
105148
|
-
@for (option of options; track option.value) {
|
|
105149
|
-
<button
|
|
105150
|
-
type="button"
|
|
105151
|
-
(click)="selectState(option.value)"
|
|
105152
|
-
[ngClass]="getButtonClasses(option.value)"
|
|
105153
|
-
class="flex items-center justify-center sm:justify-start gap-2 px-4 py-2.5 rounded-xl font-medium text-sm transition-all duration-200 border cursor-pointer w-full sm:w-auto">
|
|
105154
|
-
<span [ngClass]="getDotClasses(option.value)" class="w-3 h-3 rounded-full flex-shrink-0"></span>
|
|
105155
|
-
<span>{{ option.label }}</span>
|
|
105156
|
-
@if (state() === option.value) {
|
|
105157
|
-
<svg class="w-4 h-4 ml-1" fill="currentColor" viewBox="0 0 20 20">
|
|
105158
|
-
<path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"></path>
|
|
105159
|
-
</svg>
|
|
105160
|
-
}
|
|
105161
|
-
</button>
|
|
105162
|
-
}
|
|
105163
|
-
</div>
|
|
105164
|
-
<div [ngClass]="hintClasses()" class="text-xs">
|
|
105165
|
-
{{ getHintText() }}
|
|
105166
|
-
</div>
|
|
105224
|
+
}
|
|
105167
105225
|
</div>
|
|
105168
|
-
`, styles: ["@keyframes attention-pulse{0%,to{box-shadow:0 0 #
|
|
105169
|
-
}], null, { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], goalId: [{ type: i0.Input, args: [{ isSignal: true, alias: "goalId", required: false }] }], stateChange: [{ type: i0.Output, args: ["stateChange"] }]
|
|
105170
|
-
|
|
105226
|
+
`, styles: ["@keyframes attention-pulse{0%,to{box-shadow:0 0 #60a5fa99}50%{box-shadow:0 0 0 8px #60a5fa00}}.animate-attention-pulse{animation:attention-pulse 2s ease-in-out infinite}\n"] }]
|
|
105227
|
+
}], null, { state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], viewMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewMode", required: false }] }], goalId: [{ type: i0.Input, args: [{ isSignal: true, alias: "goalId", required: false }] }], stateChange: [{ type: i0.Output, args: ["stateChange"] }], onDocumentClick: [{
|
|
105228
|
+
type: HostListener,
|
|
105229
|
+
args: ['document:click', ['$event']]
|
|
105230
|
+
}] }); })();
|
|
105231
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GoalActionStateSelectorComponent, { className: "GoalActionStateSelectorComponent", filePath: "lib/components/shared/goal-action-state-selector.component.ts", lineNumber: 68 }); })();
|
|
105171
105232
|
|
|
105172
105233
|
const _c0$8 = ["modalContent"];
|
|
105173
105234
|
const _c1$3 = ["modalWrapper"];
|
|
@@ -105184,81 +105245,113 @@ function UnifiedDashboardModalComponent_Conditional_0_Conditional_7_Template(rf,
|
|
|
105184
105245
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105185
105246
|
i0.ɵɵproperty("ngClass", ctx_r1.backButtonClasses());
|
|
105186
105247
|
} }
|
|
105187
|
-
function
|
|
105248
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_9_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
105249
|
+
i0.ɵɵelementStart(0, "span", 33);
|
|
105250
|
+
i0.ɵɵtext(1, "|");
|
|
105251
|
+
i0.ɵɵelementEnd();
|
|
105252
|
+
i0.ɵɵelementStart(2, "span", 34);
|
|
105253
|
+
i0.ɵɵtext(3);
|
|
105254
|
+
i0.ɵɵelementEnd();
|
|
105255
|
+
} if (rf & 2) {
|
|
105256
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105257
|
+
i0.ɵɵproperty("ngClass", ctx_r1.isLightMode() ? "text-slate-400" : "text-slate-500");
|
|
105258
|
+
i0.ɵɵadvance(2);
|
|
105259
|
+
i0.ɵɵproperty("ngClass", ctx_r1.isLightMode() ? "text-slate-600" : "text-slate-400");
|
|
105260
|
+
i0.ɵɵadvance();
|
|
105261
|
+
i0.ɵɵtextInterpolate(ctx_r1.sourceGoalChipLabel());
|
|
105262
|
+
} }
|
|
105263
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_9_Template(rf, ctx) { if (rf & 1) {
|
|
105264
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "span", 30);
|
|
105188
105265
|
i0.ɵɵnamespaceSVG();
|
|
105189
|
-
i0.ɵɵelementStart(
|
|
105190
|
-
i0.ɵɵelement(
|
|
105266
|
+
i0.ɵɵelementStart(2, "svg", 31);
|
|
105267
|
+
i0.ɵɵelement(3, "path", 32);
|
|
105268
|
+
i0.ɵɵelementEnd();
|
|
105269
|
+
i0.ɵɵtext(4, " SOURCE GOAL ");
|
|
105270
|
+
i0.ɵɵelementEnd();
|
|
105271
|
+
i0.ɵɵconditionalCreate(5, UnifiedDashboardModalComponent_Conditional_0_Conditional_9_Conditional_5_Template, 4, 3);
|
|
105272
|
+
i0.ɵɵelementEnd();
|
|
105273
|
+
} if (rf & 2) {
|
|
105274
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105275
|
+
i0.ɵɵadvance();
|
|
105276
|
+
i0.ɵɵproperty("ngClass", ctx_r1.isLightMode() ? "bg-emerald-100 text-emerald-700 border-emerald-200" : "bg-emerald-900/30 text-emerald-400 border-emerald-700/50");
|
|
105277
|
+
i0.ɵɵadvance(4);
|
|
105278
|
+
i0.ɵɵconditional(ctx_r1.sourceGoalChipLabel() ? 5 : -1);
|
|
105279
|
+
} }
|
|
105280
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_For_2_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
105281
|
+
i0.ɵɵnamespaceSVG();
|
|
105282
|
+
i0.ɵɵelementStart(0, "svg", 37);
|
|
105283
|
+
i0.ɵɵelement(1, "path", 38);
|
|
105191
105284
|
i0.ɵɵelementEnd();
|
|
105192
105285
|
} if (rf & 2) {
|
|
105193
105286
|
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
105194
105287
|
i0.ɵɵproperty("ngClass", ctx_r1.breadcrumbChevronClasses());
|
|
105195
105288
|
} }
|
|
105196
|
-
function
|
|
105289
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_For_2_Template(rf, ctx) { if (rf & 1) {
|
|
105197
105290
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
105198
|
-
i0.ɵɵelementStart(0, "button",
|
|
105199
|
-
i0.ɵɵlistener("click", function
|
|
105291
|
+
i0.ɵɵelementStart(0, "button", 36);
|
|
105292
|
+
i0.ɵɵlistener("click", function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_For_2_Template_button_click_0_listener() { const item_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r1 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r1.navigateToBreadcrumb(item_r5)); });
|
|
105200
105293
|
i0.ɵɵtext(1);
|
|
105201
105294
|
i0.ɵɵelementEnd();
|
|
105202
|
-
i0.ɵɵconditionalCreate(2,
|
|
105295
|
+
i0.ɵɵconditionalCreate(2, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_For_2_Conditional_2_Template, 2, 1, ":svg:svg", 37);
|
|
105203
105296
|
} if (rf & 2) {
|
|
105204
105297
|
const item_r5 = ctx.$implicit;
|
|
105205
|
-
const ɵ$
|
|
105206
|
-
const ɵ$
|
|
105298
|
+
const ɵ$index_43_r6 = ctx.$index;
|
|
105299
|
+
const ɵ$count_43_r7 = ctx.$count;
|
|
105207
105300
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105208
105301
|
i0.ɵɵproperty("ngClass", ctx_r1.breadcrumbButtonClasses());
|
|
105209
105302
|
i0.ɵɵadvance();
|
|
105210
105303
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.getBreadcrumbLabel(item_r5), " ");
|
|
105211
105304
|
i0.ɵɵadvance();
|
|
105212
|
-
i0.ɵɵconditional(!(ɵ$
|
|
105305
|
+
i0.ɵɵconditional(!(ɵ$index_43_r6 === ɵ$count_43_r7 - 1) || ctx_r1.modalType() !== null ? 2 : -1);
|
|
105213
105306
|
} }
|
|
105214
|
-
function
|
|
105215
|
-
i0.ɵɵelementStart(0, "span",
|
|
105307
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
105308
|
+
i0.ɵɵelementStart(0, "span", 35);
|
|
105216
105309
|
i0.ɵɵtext(1, "Objectives");
|
|
105217
105310
|
i0.ɵɵelementEnd();
|
|
105218
105311
|
} if (rf & 2) {
|
|
105219
105312
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105220
105313
|
i0.ɵɵproperty("ngClass", ctx_r1.breadcrumbCurrentClasses());
|
|
105221
105314
|
} }
|
|
105222
|
-
function
|
|
105223
|
-
i0.ɵɵelementStart(0, "span",
|
|
105315
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
105316
|
+
i0.ɵɵelementStart(0, "span", 35);
|
|
105224
105317
|
i0.ɵɵtext(1, "Related Metrics");
|
|
105225
105318
|
i0.ɵɵelementEnd();
|
|
105226
105319
|
} if (rf & 2) {
|
|
105227
105320
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105228
105321
|
i0.ɵɵproperty("ngClass", ctx_r1.breadcrumbCurrentClasses());
|
|
105229
105322
|
} }
|
|
105230
|
-
function
|
|
105231
|
-
i0.ɵɵelementStart(0, "span",
|
|
105323
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
105324
|
+
i0.ɵɵelementStart(0, "span", 35);
|
|
105232
105325
|
i0.ɵɵtext(1, "Strategies");
|
|
105233
105326
|
i0.ɵɵelementEnd();
|
|
105234
105327
|
} if (rf & 2) {
|
|
105235
105328
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105236
105329
|
i0.ɵɵproperty("ngClass", ctx_r1.breadcrumbCurrentClasses());
|
|
105237
105330
|
} }
|
|
105238
|
-
function
|
|
105239
|
-
i0.ɵɵelementStart(0, "span",
|
|
105331
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
105332
|
+
i0.ɵɵelementStart(0, "span", 35);
|
|
105240
105333
|
i0.ɵɵtext(1, "Recommendations");
|
|
105241
105334
|
i0.ɵɵelementEnd();
|
|
105242
105335
|
} if (rf & 2) {
|
|
105243
105336
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105244
105337
|
i0.ɵɵproperty("ngClass", ctx_r1.breadcrumbCurrentClasses());
|
|
105245
105338
|
} }
|
|
105246
|
-
function
|
|
105247
|
-
i0.ɵɵelementStart(0, "span",
|
|
105339
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_7_Template(rf, ctx) { if (rf & 1) {
|
|
105340
|
+
i0.ɵɵelementStart(0, "span", 35);
|
|
105248
105341
|
i0.ɵɵtext(1, "Priority Actions");
|
|
105249
105342
|
i0.ɵɵelementEnd();
|
|
105250
105343
|
} if (rf & 2) {
|
|
105251
105344
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105252
105345
|
i0.ɵɵproperty("ngClass", ctx_r1.breadcrumbCurrentClasses());
|
|
105253
105346
|
} }
|
|
105254
|
-
function
|
|
105255
|
-
i0.ɵɵelementStart(0, "div",
|
|
105256
|
-
i0.ɵɵrepeaterCreate(1,
|
|
105257
|
-
i0.ɵɵconditionalCreate(3,
|
|
105258
|
-
i0.ɵɵconditionalCreate(4,
|
|
105259
|
-
i0.ɵɵconditionalCreate(5,
|
|
105260
|
-
i0.ɵɵconditionalCreate(6,
|
|
105261
|
-
i0.ɵɵconditionalCreate(7,
|
|
105347
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Template(rf, ctx) { if (rf & 1) {
|
|
105348
|
+
i0.ɵɵelementStart(0, "div", 12);
|
|
105349
|
+
i0.ɵɵrepeaterCreate(1, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_For_2_Template, 3, 3, null, null, i0.ɵɵrepeaterTrackByIndex);
|
|
105350
|
+
i0.ɵɵconditionalCreate(3, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_3_Template, 2, 1, "span", 35);
|
|
105351
|
+
i0.ɵɵconditionalCreate(4, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_4_Template, 2, 1, "span", 35);
|
|
105352
|
+
i0.ɵɵconditionalCreate(5, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_5_Template, 2, 1, "span", 35);
|
|
105353
|
+
i0.ɵɵconditionalCreate(6, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_6_Template, 2, 1, "span", 35);
|
|
105354
|
+
i0.ɵɵconditionalCreate(7, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Conditional_7_Template, 2, 1, "span", 35);
|
|
105262
105355
|
i0.ɵɵelementEnd();
|
|
105263
105356
|
} if (rf & 2) {
|
|
105264
105357
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -105275,8 +105368,8 @@ function UnifiedDashboardModalComponent_Conditional_0_Conditional_9_Template(rf,
|
|
|
105275
105368
|
i0.ɵɵadvance();
|
|
105276
105369
|
i0.ɵɵconditional(ctx_r1.modalType() === "priority-actions-list" ? 7 : -1);
|
|
105277
105370
|
} }
|
|
105278
|
-
function
|
|
105279
|
-
i0.ɵɵelementStart(0, "div",
|
|
105371
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_11_Template(rf, ctx) { if (rf & 1) {
|
|
105372
|
+
i0.ɵɵelementStart(0, "div", 11)(1, "span", 39);
|
|
105280
105373
|
i0.ɵɵtext(2);
|
|
105281
105374
|
i0.ɵɵelementEnd()();
|
|
105282
105375
|
} if (rf & 2) {
|
|
@@ -105286,22 +105379,22 @@ function UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Template(rf
|
|
|
105286
105379
|
i0.ɵɵadvance();
|
|
105287
105380
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.modalType() === "unified-goal-objectives" ? "Objectives" : ctx_r1.modalType() === "unified-goal-related-metrics" ? "Related Metrics" : ctx_r1.modalType() === "objective-strategies" ? "Strategies" : ctx_r1.modalType() === "strategy-recommendations" ? "Recommendations" : ctx_r1.modalType() === "priority-actions-list" ? "Unified Analysis" : "Unified Goal", " ");
|
|
105288
105381
|
} }
|
|
105289
|
-
function
|
|
105290
|
-
i0.ɵɵelement(0, "symphiq-priority-badge",
|
|
105382
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_15_Conditional_1_Template(rf, ctx) { if (rf & 1) {
|
|
105383
|
+
i0.ɵɵelement(0, "symphiq-priority-badge", 40);
|
|
105291
105384
|
} if (rf & 2) {
|
|
105292
105385
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105293
105386
|
i0.ɵɵproperty("priority", ctx_r1.currentGoal().priority)("viewMode", ctx_r1.viewMode());
|
|
105294
105387
|
} }
|
|
105295
|
-
function
|
|
105296
|
-
i0.ɵɵelement(0, "symphiq-timeframe-badge",
|
|
105388
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_15_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
105389
|
+
i0.ɵɵelement(0, "symphiq-timeframe-badge", 41);
|
|
105297
105390
|
} if (rf & 2) {
|
|
105298
105391
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
105299
105392
|
i0.ɵɵproperty("timeframe", ctx_r1.currentGoal().timeframe)("viewMode", ctx_r1.viewMode());
|
|
105300
105393
|
} }
|
|
105301
|
-
function
|
|
105394
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_15_Template(rf, ctx) { if (rf & 1) {
|
|
105302
105395
|
i0.ɵɵelementStart(0, "div", 15);
|
|
105303
|
-
i0.ɵɵconditionalCreate(1,
|
|
105304
|
-
i0.ɵɵconditionalCreate(2,
|
|
105396
|
+
i0.ɵɵconditionalCreate(1, UnifiedDashboardModalComponent_Conditional_0_Conditional_15_Conditional_1_Template, 1, 2, "symphiq-priority-badge", 40);
|
|
105397
|
+
i0.ɵɵconditionalCreate(2, UnifiedDashboardModalComponent_Conditional_0_Conditional_15_Conditional_2_Template, 1, 2, "symphiq-timeframe-badge", 41);
|
|
105305
105398
|
i0.ɵɵelementEnd();
|
|
105306
105399
|
} if (rf & 2) {
|
|
105307
105400
|
let tmp_4_0;
|
|
@@ -105312,55 +105405,55 @@ function UnifiedDashboardModalComponent_Conditional_0_Conditional_14_Template(rf
|
|
|
105312
105405
|
i0.ɵɵadvance();
|
|
105313
105406
|
i0.ɵɵconditional(((tmp_5_0 = ctx_r1.currentGoal()) == null ? null : tmp_5_0.timeframe) ? 2 : -1);
|
|
105314
105407
|
} }
|
|
105315
|
-
function
|
|
105408
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_21_Template(rf, ctx) { if (rf & 1) {
|
|
105316
105409
|
const _r8 = i0.ɵɵgetCurrentView();
|
|
105317
|
-
i0.ɵɵelementStart(0, "symphiq-unified-goal-detail-modal-content",
|
|
105318
|
-
i0.ɵɵlistener("sourceAnalysisClick", function
|
|
105410
|
+
i0.ɵɵelementStart(0, "symphiq-unified-goal-detail-modal-content", 42);
|
|
105411
|
+
i0.ɵɵlistener("sourceAnalysisClick", function UnifiedDashboardModalComponent_Conditional_0_Conditional_21_Template_symphiq_unified_goal_detail_modal_content_sourceAnalysisClick_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onSourceAnalysisClick($event)); })("metricClick", function UnifiedDashboardModalComponent_Conditional_0_Conditional_21_Template_symphiq_unified_goal_detail_modal_content_metricClick_0_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onMetricClick($event)); })("contributingMetricsClick", function UnifiedDashboardModalComponent_Conditional_0_Conditional_21_Template_symphiq_unified_goal_detail_modal_content_contributingMetricsClick_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onContributingMetricsClick()); })("showObjectives", function UnifiedDashboardModalComponent_Conditional_0_Conditional_21_Template_symphiq_unified_goal_detail_modal_content_showObjectives_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onShowObjectives()); })("close", function UnifiedDashboardModalComponent_Conditional_0_Conditional_21_Template_symphiq_unified_goal_detail_modal_content_close_0_listener() { i0.ɵɵrestoreView(_r8); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.closeModal()); });
|
|
105319
105412
|
i0.ɵɵelementEnd();
|
|
105320
105413
|
} if (rf & 2) {
|
|
105321
105414
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105322
105415
|
i0.ɵɵproperty("goal", ctx_r1.unifiedGoalData().goal)("allMetrics", ctx_r1.unifiedGoalData().allMetrics)("allCharts", ctx_r1.unifiedGoalData().allCharts)("loadedSourceAnalysisIds", ctx_r1.loadedSourceAnalysisIdsAsNumbers())("loadingSourceAnalysisId", ctx_r1.loadingSourceAnalysisIdAsNumber())("viewMode", ctx_r1.viewMode())("currentModalState", ctx_r1.currentModalState());
|
|
105323
105416
|
} }
|
|
105324
|
-
function
|
|
105417
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_22_Template(rf, ctx) { if (rf & 1) {
|
|
105325
105418
|
i0.ɵɵelement(0, "symphiq-goal-objectives-modal-content", 21);
|
|
105326
105419
|
} if (rf & 2) {
|
|
105327
105420
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105328
105421
|
i0.ɵɵproperty("objectives", ctx_r1.objectivesData().goal.objectives ?? i0.ɵɵpureFunction0(3, _c2$2))("goalTitle", ctx_r1.objectivesData().goal.title ?? "")("viewMode", ctx_r1.viewMode());
|
|
105329
105422
|
} }
|
|
105330
|
-
function
|
|
105423
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_23_Template(rf, ctx) { if (rf & 1) {
|
|
105331
105424
|
const _r9 = i0.ɵɵgetCurrentView();
|
|
105332
|
-
i0.ɵɵelementStart(0, "symphiq-unified-goal-related-metrics-modal-content",
|
|
105333
|
-
i0.ɵɵlistener("metricClick", function
|
|
105425
|
+
i0.ɵɵelementStart(0, "symphiq-unified-goal-related-metrics-modal-content", 43);
|
|
105426
|
+
i0.ɵɵlistener("metricClick", function UnifiedDashboardModalComponent_Conditional_0_Conditional_23_Template_symphiq_unified_goal_related_metrics_modal_content_metricClick_0_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onRelatedMetricClick($event)); });
|
|
105334
105427
|
i0.ɵɵelementEnd();
|
|
105335
105428
|
} if (rf & 2) {
|
|
105336
105429
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105337
105430
|
i0.ɵɵproperty("goal", ctx_r1.relatedMetricsData().goal)("contributingMetrics", ctx_r1.relatedMetricsData().contributingMetrics)("viewMode", ctx_r1.viewMode());
|
|
105338
105431
|
} }
|
|
105339
|
-
function
|
|
105432
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_24_Template(rf, ctx) { if (rf & 1) {
|
|
105340
105433
|
i0.ɵɵelement(0, "symphiq-objective-strategies-modal-content", 23);
|
|
105341
105434
|
} if (rf & 2) {
|
|
105342
105435
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105343
105436
|
i0.ɵɵproperty("objective", ctx_r1.strategiesData().objective)("viewMode", ctx_r1.viewMode());
|
|
105344
105437
|
} }
|
|
105345
|
-
function
|
|
105438
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_25_Template(rf, ctx) { if (rf & 1) {
|
|
105346
105439
|
i0.ɵɵelement(0, "symphiq-strategy-recommendations-modal-content", 24);
|
|
105347
105440
|
} if (rf & 2) {
|
|
105348
105441
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105349
105442
|
i0.ɵɵproperty("strategy", ctx_r1.recommendationsData().strategy)("viewMode", ctx_r1.viewMode())("allMetrics", ctx_r1.allMetricsFromStack())("allCharts", ctx_r1.allChartsFromStack())("allInsights", ctx_r1.allInsightsFromStack())("allBusinessInsights", ctx_r1.allBusinessInsightsFromStack())("goalTitle", ctx_r1.recommendationsData().goalTitle)("objectiveTitle", ctx_r1.recommendationsData().objectiveTitle)("currentModalState", ctx_r1.currentModalState())("expandedRecommendationId", ctx_r1.recommendationsData().expandedRecommendationId);
|
|
105350
105443
|
} }
|
|
105351
|
-
function
|
|
105444
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_26_Template(rf, ctx) { if (rf & 1) {
|
|
105352
105445
|
const _r10 = i0.ɵɵgetCurrentView();
|
|
105353
|
-
i0.ɵɵelementStart(0, "symphiq-priority-actions-modal-content",
|
|
105354
|
-
i0.ɵɵlistener("goalClick", function
|
|
105446
|
+
i0.ɵɵelementStart(0, "symphiq-priority-actions-modal-content", 44);
|
|
105447
|
+
i0.ɵɵlistener("goalClick", function UnifiedDashboardModalComponent_Conditional_0_Conditional_26_Template_symphiq_priority_actions_modal_content_goalClick_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onPriorityActionGoalClick($event)); })("recommendationClick", function UnifiedDashboardModalComponent_Conditional_0_Conditional_26_Template_symphiq_priority_actions_modal_content_recommendationClick_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onPriorityActionRecommendationClick($event)); });
|
|
105355
105448
|
i0.ɵɵelementEnd();
|
|
105356
105449
|
} if (rf & 2) {
|
|
105357
105450
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
105358
105451
|
i0.ɵɵproperty("items", ctx_r1.priorityActionsData().items)("viewMode", ctx_r1.viewMode())("selectedIndex", ctx_r1.priorityActionsData().selectedIndex ?? null);
|
|
105359
105452
|
} }
|
|
105360
|
-
function
|
|
105453
|
+
function UnifiedDashboardModalComponent_Conditional_0_Conditional_27_Template(rf, ctx) { if (rf & 1) {
|
|
105361
105454
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
105362
|
-
i0.ɵɵelementStart(0, "div", 26)(1, "symphiq-goal-action-state-selector",
|
|
105363
|
-
i0.ɵɵlistener("stateChange", function
|
|
105455
|
+
i0.ɵɵelementStart(0, "div", 26)(1, "symphiq-goal-action-state-selector", 45);
|
|
105456
|
+
i0.ɵɵlistener("stateChange", function UnifiedDashboardModalComponent_Conditional_0_Conditional_27_Template_symphiq_goal_action_state_selector_stateChange_1_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.onActionStateChange($event)); });
|
|
105364
105457
|
i0.ɵɵelementEnd()();
|
|
105365
105458
|
} if (rf & 2) {
|
|
105366
105459
|
let tmp_7_0;
|
|
@@ -105379,31 +105472,32 @@ function UnifiedDashboardModalComponent_Conditional_0_Template(rf, ctx) { if (rf
|
|
|
105379
105472
|
i0.ɵɵelementStart(4, "div", 6)(5, "div", 7)(6, "div", 8);
|
|
105380
105473
|
i0.ɵɵconditionalCreate(7, UnifiedDashboardModalComponent_Conditional_0_Conditional_7_Template, 3, 1, "button", 9);
|
|
105381
105474
|
i0.ɵɵelementStart(8, "div", 10);
|
|
105382
|
-
i0.ɵɵconditionalCreate(9, UnifiedDashboardModalComponent_Conditional_0_Conditional_9_Template,
|
|
105383
|
-
i0.ɵɵ
|
|
105384
|
-
i0.ɵɵ
|
|
105475
|
+
i0.ɵɵconditionalCreate(9, UnifiedDashboardModalComponent_Conditional_0_Conditional_9_Template, 6, 2, "div", 11);
|
|
105476
|
+
i0.ɵɵconditionalCreate(10, UnifiedDashboardModalComponent_Conditional_0_Conditional_10_Template, 8, 5, "div", 12)(11, UnifiedDashboardModalComponent_Conditional_0_Conditional_11_Template, 3, 2, "div", 11);
|
|
105477
|
+
i0.ɵɵelementStart(12, "div", 13)(13, "h3", 14);
|
|
105478
|
+
i0.ɵɵtext(14);
|
|
105385
105479
|
i0.ɵɵelementEnd();
|
|
105386
|
-
i0.ɵɵconditionalCreate(
|
|
105480
|
+
i0.ɵɵconditionalCreate(15, UnifiedDashboardModalComponent_Conditional_0_Conditional_15_Template, 3, 2, "div", 15);
|
|
105387
105481
|
i0.ɵɵelementEnd()()();
|
|
105388
|
-
i0.ɵɵelementStart(
|
|
105389
|
-
i0.ɵɵlistener("click", function
|
|
105482
|
+
i0.ɵɵelementStart(16, "button", 16);
|
|
105483
|
+
i0.ɵɵlistener("click", function UnifiedDashboardModalComponent_Conditional_0_Template_button_click_16_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.closeModal()); });
|
|
105390
105484
|
i0.ɵɵnamespaceSVG();
|
|
105391
|
-
i0.ɵɵelementStart(
|
|
105392
|
-
i0.ɵɵelement(
|
|
105485
|
+
i0.ɵɵelementStart(17, "svg", 17);
|
|
105486
|
+
i0.ɵɵelement(18, "path", 18);
|
|
105393
105487
|
i0.ɵɵelementEnd()()()();
|
|
105394
105488
|
i0.ɵɵnamespaceHTML();
|
|
105395
|
-
i0.ɵɵelementStart(
|
|
105396
|
-
i0.ɵɵconditionalCreate(
|
|
105397
|
-
i0.ɵɵconditionalCreate(
|
|
105398
|
-
i0.ɵɵconditionalCreate(
|
|
105399
|
-
i0.ɵɵconditionalCreate(
|
|
105400
|
-
i0.ɵɵconditionalCreate(
|
|
105401
|
-
i0.ɵɵconditionalCreate(
|
|
105489
|
+
i0.ɵɵelementStart(19, "div", 19, 1);
|
|
105490
|
+
i0.ɵɵconditionalCreate(21, UnifiedDashboardModalComponent_Conditional_0_Conditional_21_Template, 1, 7, "symphiq-unified-goal-detail-modal-content", 20);
|
|
105491
|
+
i0.ɵɵconditionalCreate(22, UnifiedDashboardModalComponent_Conditional_0_Conditional_22_Template, 1, 4, "symphiq-goal-objectives-modal-content", 21);
|
|
105492
|
+
i0.ɵɵconditionalCreate(23, UnifiedDashboardModalComponent_Conditional_0_Conditional_23_Template, 1, 3, "symphiq-unified-goal-related-metrics-modal-content", 22);
|
|
105493
|
+
i0.ɵɵconditionalCreate(24, UnifiedDashboardModalComponent_Conditional_0_Conditional_24_Template, 1, 2, "symphiq-objective-strategies-modal-content", 23);
|
|
105494
|
+
i0.ɵɵconditionalCreate(25, UnifiedDashboardModalComponent_Conditional_0_Conditional_25_Template, 1, 10, "symphiq-strategy-recommendations-modal-content", 24);
|
|
105495
|
+
i0.ɵɵconditionalCreate(26, UnifiedDashboardModalComponent_Conditional_0_Conditional_26_Template, 1, 3, "symphiq-priority-actions-modal-content", 25);
|
|
105402
105496
|
i0.ɵɵelementEnd();
|
|
105403
|
-
i0.ɵɵconditionalCreate(
|
|
105497
|
+
i0.ɵɵconditionalCreate(27, UnifiedDashboardModalComponent_Conditional_0_Conditional_27_Template, 2, 4, "div", 26);
|
|
105404
105498
|
i0.ɵɵelementEnd()();
|
|
105405
105499
|
} if (rf & 2) {
|
|
105406
|
-
let
|
|
105500
|
+
let tmp_18_0;
|
|
105407
105501
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
105408
105502
|
i0.ɵɵstyleProp("z-index", ctx_r1.baseZIndex())("visibility", ctx_r1.modalReady() ? "visible" : "hidden");
|
|
105409
105503
|
i0.ɵɵadvance(2);
|
|
@@ -105418,34 +105512,44 @@ function UnifiedDashboardModalComponent_Conditional_0_Template(rf, ctx) { if (rf
|
|
|
105418
105512
|
i0.ɵɵadvance(3);
|
|
105419
105513
|
i0.ɵɵconditional(ctx_r1.navigationStack().length > 0 ? 7 : -1);
|
|
105420
105514
|
i0.ɵɵadvance(2);
|
|
105421
|
-
i0.ɵɵconditional(ctx_r1.
|
|
105515
|
+
i0.ɵɵconditional(ctx_r1.isSourceGoalFlow() ? 9 : -1);
|
|
105516
|
+
i0.ɵɵadvance();
|
|
105517
|
+
i0.ɵɵconditional(ctx_r1.navigationStack().length > 0 ? 10 : 11);
|
|
105422
105518
|
i0.ɵɵadvance(3);
|
|
105423
105519
|
i0.ɵɵproperty("ngClass", ctx_r1.isLightMode() ? "text-slate-900" : "text-white");
|
|
105424
105520
|
i0.ɵɵadvance();
|
|
105425
105521
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.modalTitle(), " ");
|
|
105426
105522
|
i0.ɵɵadvance();
|
|
105427
|
-
i0.ɵɵconditional(((
|
|
105523
|
+
i0.ɵɵconditional(((tmp_18_0 = ctx_r1.currentGoal()) == null ? null : tmp_18_0.priority) || ((tmp_18_0 = ctx_r1.currentGoal()) == null ? null : tmp_18_0.timeframe) ? 15 : -1);
|
|
105428
105524
|
i0.ɵɵadvance();
|
|
105429
105525
|
i0.ɵɵstyleProp("z-index", ctx_r1.contentZIndex() + 1);
|
|
105430
105526
|
i0.ɵɵproperty("ngClass", ctx_r1.isLightMode() ? "text-slate-600 hover:text-slate-900 hover:bg-slate-100" : "text-slate-400 hover:text-white hover:bg-slate-700");
|
|
105431
105527
|
i0.ɵɵadvance(3);
|
|
105432
105528
|
i0.ɵɵproperty("ngClass", ctx_r1.isLightMode() ? "bg-white/30" : "bg-slate-800/30");
|
|
105433
105529
|
i0.ɵɵadvance(2);
|
|
105434
|
-
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-detail" && ctx_r1.unifiedGoalData() ?
|
|
105530
|
+
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-detail" && ctx_r1.unifiedGoalData() ? 21 : -1);
|
|
105435
105531
|
i0.ɵɵadvance();
|
|
105436
|
-
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-objectives" && ctx_r1.objectivesData() ?
|
|
105532
|
+
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-objectives" && ctx_r1.objectivesData() ? 22 : -1);
|
|
105437
105533
|
i0.ɵɵadvance();
|
|
105438
|
-
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-related-metrics" && ctx_r1.relatedMetricsData() ?
|
|
105534
|
+
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-related-metrics" && ctx_r1.relatedMetricsData() ? 23 : -1);
|
|
105439
105535
|
i0.ɵɵadvance();
|
|
105440
|
-
i0.ɵɵconditional(ctx_r1.modalType() === "objective-strategies" && ctx_r1.strategiesData() ?
|
|
105536
|
+
i0.ɵɵconditional(ctx_r1.modalType() === "objective-strategies" && ctx_r1.strategiesData() ? 24 : -1);
|
|
105441
105537
|
i0.ɵɵadvance();
|
|
105442
|
-
i0.ɵɵconditional(ctx_r1.modalType() === "strategy-recommendations" && ctx_r1.recommendationsData() ?
|
|
105538
|
+
i0.ɵɵconditional(ctx_r1.modalType() === "strategy-recommendations" && ctx_r1.recommendationsData() ? 25 : -1);
|
|
105443
105539
|
i0.ɵɵadvance();
|
|
105444
|
-
i0.ɵɵconditional(ctx_r1.modalType() === "priority-actions-list" && ctx_r1.priorityActionsData() ?
|
|
105540
|
+
i0.ɵɵconditional(ctx_r1.modalType() === "priority-actions-list" && ctx_r1.priorityActionsData() ? 26 : -1);
|
|
105445
105541
|
i0.ɵɵadvance();
|
|
105446
|
-
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-detail" && ctx_r1.currentGoal() ?
|
|
105542
|
+
i0.ɵɵconditional(ctx_r1.modalType() === "unified-goal-detail" && ctx_r1.currentGoal() ? 27 : -1);
|
|
105447
105543
|
} }
|
|
105448
105544
|
class UnifiedDashboardModalComponent {
|
|
105545
|
+
getSourceAnalysisTypeLabel(type) {
|
|
105546
|
+
switch (type) {
|
|
105547
|
+
case ProfileAnalysisTypeEnum.METRIC: return 'Metric Analysis';
|
|
105548
|
+
case ProfileAnalysisTypeEnum.FOCUS_AREA: return 'Focus Area Analysis';
|
|
105549
|
+
case ProfileAnalysisTypeEnum.SHOP: return 'Shop Analysis';
|
|
105550
|
+
default: return 'Analysis';
|
|
105551
|
+
}
|
|
105552
|
+
}
|
|
105449
105553
|
constructor() {
|
|
105450
105554
|
this.viewMode = input(ViewModeEnum.LIGHT, ...(ngDevMode ? [{ debugName: "viewMode" }] : []));
|
|
105451
105555
|
this.loadingSourceAnalysisId = input(...(ngDevMode ? [undefined, { debugName: "loadingSourceAnalysisId" }] : []));
|
|
@@ -105604,22 +105708,54 @@ class UnifiedDashboardModalComponent {
|
|
|
105604
105708
|
}, ...(ngDevMode ? [{ debugName: "allInsightsFromStack" }] : []));
|
|
105605
105709
|
this.allBusinessInsightsFromStack = computed(() => {
|
|
105606
105710
|
const goalData = this.unifiedGoalData();
|
|
105607
|
-
if (goalData?.allBusinessInsights)
|
|
105711
|
+
if (goalData?.allBusinessInsights) {
|
|
105608
105712
|
return goalData.allBusinessInsights;
|
|
105713
|
+
}
|
|
105609
105714
|
const objData = this.objectivesData();
|
|
105610
|
-
if (objData?.allBusinessInsights)
|
|
105715
|
+
if (objData?.allBusinessInsights) {
|
|
105611
105716
|
return objData.allBusinessInsights;
|
|
105717
|
+
}
|
|
105612
105718
|
const stack = this.navigationStack();
|
|
105613
105719
|
for (let i = stack.length - 1; i >= 0; i--) {
|
|
105614
105720
|
const state = stack[i];
|
|
105615
105721
|
if (state.type === 'unified-goal-detail' || state.type === 'unified-goal-objectives') {
|
|
105616
105722
|
const data = state.data;
|
|
105617
|
-
if (data?.allBusinessInsights)
|
|
105723
|
+
if (data?.allBusinessInsights) {
|
|
105618
105724
|
return data.allBusinessInsights;
|
|
105725
|
+
}
|
|
105619
105726
|
}
|
|
105620
105727
|
}
|
|
105621
105728
|
return [];
|
|
105622
105729
|
}, ...(ngDevMode ? [{ debugName: "allBusinessInsightsFromStack" }] : []));
|
|
105730
|
+
this.sourceGoalContext = computed(() => {
|
|
105731
|
+
const rawStack = this.currentModalState()?.navigationStack || [];
|
|
105732
|
+
for (let i = rawStack.length - 1; i >= 0; i--) {
|
|
105733
|
+
const state = rawStack[i];
|
|
105734
|
+
if (state.type === 'goal-detail' || state.type === 'goal-objectives') {
|
|
105735
|
+
const data = state.data;
|
|
105736
|
+
if (data?.sourceAnalysisType) {
|
|
105737
|
+
return { sourceAnalysisType: data.sourceAnalysisType, sourceTypeTitle: data.sourceTypeTitle };
|
|
105738
|
+
}
|
|
105739
|
+
}
|
|
105740
|
+
}
|
|
105741
|
+
const strategiesData = this.strategiesData();
|
|
105742
|
+
if (strategiesData?.sourceAnalysisType) {
|
|
105743
|
+
return { sourceAnalysisType: strategiesData.sourceAnalysisType, sourceTypeTitle: strategiesData.sourceTypeTitle };
|
|
105744
|
+
}
|
|
105745
|
+
const recommendationsData = this.recommendationsData();
|
|
105746
|
+
if (recommendationsData?.sourceAnalysisType) {
|
|
105747
|
+
return { sourceAnalysisType: recommendationsData.sourceAnalysisType, sourceTypeTitle: recommendationsData.sourceTypeTitle };
|
|
105748
|
+
}
|
|
105749
|
+
return null;
|
|
105750
|
+
}, ...(ngDevMode ? [{ debugName: "sourceGoalContext" }] : []));
|
|
105751
|
+
this.isSourceGoalFlow = computed(() => this.sourceGoalContext() !== null, ...(ngDevMode ? [{ debugName: "isSourceGoalFlow" }] : []));
|
|
105752
|
+
this.sourceGoalChipLabel = computed(() => {
|
|
105753
|
+
const context = this.sourceGoalContext();
|
|
105754
|
+
if (!context)
|
|
105755
|
+
return null;
|
|
105756
|
+
const typeLabel = this.getSourceAnalysisTypeLabel(context.sourceAnalysisType);
|
|
105757
|
+
return context.sourceTypeTitle ? `${typeLabel}: ${context.sourceTypeTitle}` : typeLabel;
|
|
105758
|
+
}, ...(ngDevMode ? [{ debugName: "sourceGoalChipLabel" }] : []));
|
|
105623
105759
|
this.loadedSourceAnalysisIdsAsNumbers = computed(() => {
|
|
105624
105760
|
return this.loadedSourceAnalysisIds();
|
|
105625
105761
|
}, ...(ngDevMode ? [{ debugName: "loadedSourceAnalysisIdsAsNumbers" }] : []));
|
|
@@ -105669,7 +105805,7 @@ class UnifiedDashboardModalComponent {
|
|
|
105669
105805
|
}
|
|
105670
105806
|
const unifiedModalTypes = ['unified-goal-detail', 'unified-goal-objectives', 'unified-goal-related-metrics', 'objective-strategies', 'strategy-recommendations', 'priority-actions-list'];
|
|
105671
105807
|
const isUnifiedType = unifiedModalTypes.includes(state.type || '');
|
|
105672
|
-
const stackableTypes = ['metrics-list', 'metric', 'insight', 'insights-list', 'goal-insights-list', 'goal-business-insights-list', 'recommendation-business-insights-list', 'recommendation-insights-list', 'business-insight-detail'];
|
|
105808
|
+
const stackableTypes = ['metrics-list', 'metric', 'insight', 'insights-list', 'goal-insights-list', 'goal-business-insights-list', 'recommendation-business-insights-list', 'recommendation-insights-list', 'business-insight-detail', 'goal-detail', 'goal-objectives'];
|
|
105673
105809
|
const isStackableType = stackableTypes.includes(state.type || '');
|
|
105674
105810
|
if (!isUnifiedType && state.type !== null && !isStackableType) {
|
|
105675
105811
|
if (this.isOpen()) {
|
|
@@ -105944,8 +106080,8 @@ class UnifiedDashboardModalComponent {
|
|
|
105944
106080
|
let _t;
|
|
105945
106081
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalContent = _t.first);
|
|
105946
106082
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.modalWrapper = _t.first);
|
|
105947
|
-
} }, inputs: { viewMode: [1, "viewMode"], loadingSourceAnalysisId: [1, "loadingSourceAnalysisId"], loadedSourceAnalysisIds: [1, "loadedSourceAnalysisIds"] }, outputs: { priorityActionGoalClick: "priorityActionGoalClick", priorityActionRecommendationClick: "priorityActionRecommendationClick", sourceAnalysisClickRequest: "sourceAnalysisClickRequest" }, decls: 1, vars: 1, consts: [["modalWrapper", ""], ["modalContent", ""], [1, "fixed", "inset-0", "flex", "items-center", "justify-center", "p-4", "overflow-y-auto", 3, "z-index", "visibility"], [1, "fixed", "inset-0", "flex", "items-center", "justify-center", "p-4", "overflow-y-auto"], ["aria-hidden", "true", 1, "fixed", "inset-0", "backdrop-blur-sm", "transition-opacity", "duration-200", 3, "click", "ngClass"], [1, "relative", "w-full", "max-w-6xl", "rounded-2xl", "text-left", "overflow-hidden", "shadow-xl", "border", "backdrop-blur-xl", 3, "click", "ngClass"], [1, "px-6", "py-5", "border-b", "backdrop-blur-sm", 3, "ngClass"], [1, "flex", "items-start", "justify-between", "gap-4"], [1, "flex", "items-start", "gap-3", "flex-1", "min-w-0"], ["type", "button", 1, "mt-0.5", "p-1.5", "rounded-lg", "transition-all", "hover:scale-105", "active:scale-95", "cursor-pointer", "flex-shrink-0", 3, "ngClass"], [1, "flex-1", "min-w-0"], [1, "flex", "items-center", "gap-
|
|
105948
|
-
i0.ɵɵconditionalCreate(0, UnifiedDashboardModalComponent_Conditional_0_Template,
|
|
106083
|
+
} }, inputs: { viewMode: [1, "viewMode"], loadingSourceAnalysisId: [1, "loadingSourceAnalysisId"], loadedSourceAnalysisIds: [1, "loadedSourceAnalysisIds"] }, outputs: { priorityActionGoalClick: "priorityActionGoalClick", priorityActionRecommendationClick: "priorityActionRecommendationClick", sourceAnalysisClickRequest: "sourceAnalysisClickRequest" }, decls: 1, vars: 1, consts: [["modalWrapper", ""], ["modalContent", ""], [1, "fixed", "inset-0", "flex", "items-center", "justify-center", "p-4", "overflow-y-auto", 3, "z-index", "visibility"], [1, "fixed", "inset-0", "flex", "items-center", "justify-center", "p-4", "overflow-y-auto"], ["aria-hidden", "true", 1, "fixed", "inset-0", "backdrop-blur-sm", "transition-opacity", "duration-200", 3, "click", "ngClass"], [1, "relative", "w-full", "max-w-6xl", "rounded-2xl", "text-left", "overflow-hidden", "shadow-xl", "border", "backdrop-blur-xl", 3, "click", "ngClass"], [1, "px-6", "py-5", "border-b", "backdrop-blur-sm", 3, "ngClass"], [1, "flex", "items-start", "justify-between", "gap-4"], [1, "flex", "items-start", "gap-3", "flex-1", "min-w-0"], ["type", "button", 1, "mt-0.5", "p-1.5", "rounded-lg", "transition-all", "hover:scale-105", "active:scale-95", "cursor-pointer", "flex-shrink-0", 3, "ngClass"], [1, "flex-1", "min-w-0"], [1, "flex", "items-center", "gap-2", "mb-2"], [1, "flex", "items-center", "gap-1.5", "mb-2", "text-xs"], [1, "flex", "flex-wrap", "items-center", "justify-between", "gap-x-4", "gap-y-2"], [1, "text-xl", "font-bold", "leading-tight", 3, "ngClass"], [1, "flex", "items-center", "gap-2"], ["type", "button", 1, "transition-all", "rounded-lg", "p-1", "hover:scale-110", "active:scale-90", "cursor-pointer", "flex-shrink-0", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-6", "h-6"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M6 18L18 6M6 6l12 12"], [1, "px-6", "py-8", "max-h-[80vh]", "overflow-y-auto", "backdrop-blur-sm", 3, "ngClass"], [3, "goal", "allMetrics", "allCharts", "loadedSourceAnalysisIds", "loadingSourceAnalysisId", "viewMode", "currentModalState"], [3, "objectives", "goalTitle", "viewMode"], [3, "goal", "contributingMetrics", "viewMode"], [3, "objective", "viewMode"], [3, "strategy", "viewMode", "allMetrics", "allCharts", "allInsights", "allBusinessInsights", "goalTitle", "objectiveTitle", "currentModalState", "expandedRecommendationId"], [3, "items", "viewMode", "selectedIndex"], [1, "px-6", "py-5", "border-t", "backdrop-blur-sm", 3, "ngClass"], ["type", "button", 1, "mt-0.5", "p-1.5", "rounded-lg", "transition-all", "hover:scale-105", "active:scale-95", "cursor-pointer", "flex-shrink-0", 3, "click", "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", "M15 19l-7-7 7-7"], [1, "inline-flex", "items-center", "gap-1.5", "px-2.5", "py-1", "rounded-full", "text-xs", "font-semibold", "border", 3, "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3.5", "h-3.5"], ["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, "text-xs", 3, "ngClass"], [1, "text-xs", "font-medium", 3, "ngClass"], [1, "font-medium", 3, "ngClass"], ["type", "button", 1, "hover:underline", "cursor-pointer", "transition-colors", 3, "click", "ngClass"], ["fill", "none", "stroke", "currentColor", "viewBox", "0 0 24 24", 1, "w-3", "h-3", "flex-shrink-0", 3, "ngClass"], ["stroke-linecap", "round", "stroke-linejoin", "round", "stroke-width", "2", "d", "M9 5l7 7-7 7"], [1, "text-xs", "font-semibold", "uppercase", "tracking-wider", 3, "ngClass"], [3, "priority", "viewMode"], [3, "timeframe", "viewMode"], [3, "sourceAnalysisClick", "metricClick", "contributingMetricsClick", "showObjectives", "close", "goal", "allMetrics", "allCharts", "loadedSourceAnalysisIds", "loadingSourceAnalysisId", "viewMode", "currentModalState"], [3, "metricClick", "goal", "contributingMetrics", "viewMode"], [3, "goalClick", "recommendationClick", "items", "viewMode", "selectedIndex"], [3, "stateChange", "state", "viewMode", "goalId"]], template: function UnifiedDashboardModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
106084
|
+
i0.ɵɵconditionalCreate(0, UnifiedDashboardModalComponent_Conditional_0_Template, 28, 33, "div", 2);
|
|
105949
106085
|
} if (rf & 2) {
|
|
105950
106086
|
i0.ɵɵconditional(ctx.isOpen() ? 0 : -1);
|
|
105951
106087
|
} }, dependencies: [CommonModule, i1$1.NgClass, UnifiedGoalDetailModalContentComponent,
|
|
@@ -106034,6 +106170,20 @@ class UnifiedDashboardModalComponent {
|
|
|
106034
106170
|
</button>
|
|
106035
106171
|
}
|
|
106036
106172
|
<div class="flex-1 min-w-0">
|
|
106173
|
+
@if (isSourceGoalFlow()) {
|
|
106174
|
+
<div class="flex items-center gap-2 mb-2">
|
|
106175
|
+
<span [ngClass]="isLightMode() ? 'bg-emerald-100 text-emerald-700 border-emerald-200' : 'bg-emerald-900/30 text-emerald-400 border-emerald-700/50'" class="inline-flex items-center gap-1.5 px-2.5 py-1 rounded-full text-xs font-semibold border">
|
|
106176
|
+
<svg class="w-3.5 h-3.5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
106177
|
+
<path 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"/>
|
|
106178
|
+
</svg>
|
|
106179
|
+
SOURCE GOAL
|
|
106180
|
+
</span>
|
|
106181
|
+
@if (sourceGoalChipLabel()) {
|
|
106182
|
+
<span [ngClass]="isLightMode() ? 'text-slate-400' : 'text-slate-500'" class="text-xs">|</span>
|
|
106183
|
+
<span [ngClass]="isLightMode() ? 'text-slate-600' : 'text-slate-400'" class="text-xs font-medium">{{ sourceGoalChipLabel() }}</span>
|
|
106184
|
+
}
|
|
106185
|
+
</div>
|
|
106186
|
+
}
|
|
106037
106187
|
@if (navigationStack().length > 0) {
|
|
106038
106188
|
<div class="flex items-center gap-1.5 mb-2 text-xs">
|
|
106039
106189
|
@for (item of navigationStack(); track $index; let last = $last) {
|
|
@@ -106190,7 +106340,7 @@ class UnifiedDashboardModalComponent {
|
|
|
106190
106340
|
type: ViewChild,
|
|
106191
106341
|
args: ['modalWrapper']
|
|
106192
106342
|
}] }); })();
|
|
106193
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnifiedDashboardModalComponent, { className: "UnifiedDashboardModalComponent", filePath: "lib/components/profile-analysis-unified-dashboard/modals/unified-dashboard-modal.component.ts", lineNumber:
|
|
106343
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UnifiedDashboardModalComponent, { className: "UnifiedDashboardModalComponent", filePath: "lib/components/profile-analysis-unified-dashboard/modals/unified-dashboard-modal.component.ts", lineNumber: 271 }); })();
|
|
106194
106344
|
|
|
106195
106345
|
function UnifiedWelcomeBannerComponent_Conditional_8_Template(rf, ctx) { if (rf & 1) {
|
|
106196
106346
|
i0.ɵɵtext(0, " Your Unified Goals ");
|
|
@@ -106760,7 +106910,7 @@ class UnifiedGoalsProgressFooterComponent {
|
|
|
106760
106910
|
this.integrateGoals.emit(this.goalActionStateService.getOutput(this.goalIds()));
|
|
106761
106911
|
}
|
|
106762
106912
|
static { this.ɵfac = function UnifiedGoalsProgressFooterComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UnifiedGoalsProgressFooterComponent)(); }; }
|
|
106763
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnifiedGoalsProgressFooterComponent, selectors: [["symphiq-unified-goals-progress-footer"]], inputs: { goalIds: [1, "goalIds"], viewMode: [1, "viewMode"] }, outputs: { integrateGoals: "integrateGoals" }, decls: 15, vars: 11, consts: [[1, "fixed", "bottom-0", "left-0", "right-0", "z-
|
|
106913
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UnifiedGoalsProgressFooterComponent, selectors: [["symphiq-unified-goals-progress-footer"]], inputs: { goalIds: [1, "goalIds"], viewMode: [1, "viewMode"] }, outputs: { integrateGoals: "integrateGoals" }, decls: 15, vars: 11, consts: [[1, "fixed", "bottom-0", "left-0", "right-0", "z-100", "border-t", "backdrop-blur-xl", "transition-all", "duration-300", 3, "ngClass"], [1, "max-w-7xl", "mx-auto", "px-4", "sm:px-6", "lg:px-8", "py-4"], [1, "flex", "flex-col", "sm:flex-row", "items-center", "justify-between", "gap-4"], [1, "flex-1", "w-full", "sm:w-auto"], [1, "flex", "items-center", "justify-between", "mb-2"], [1, "text-sm", "font-medium", 3, "ngClass"], [1, "text-sm", "font-semibold", 3, "ngClass"], [1, "h-2", "rounded-full", "overflow-hidden", 3, "ngClass"], [1, "h-full", "rounded-full", "transition-all", "duration-500", "ease-out", 3, "ngClass"], [1, "flex", "items-center", "gap-4", "mt-2"], [1, "flex", "items-center", "gap-3"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-6", "py-3", "rounded-xl", "font-semibold", "text-sm", "transition-all", "duration-200", "shadow-lg", "hover:shadow-xl", "hover:scale-105", "active:scale-95", "cursor-pointer", 3, "ngClass"], [1, "text-sm", 3, "ngClass"], [1, "flex", "items-center", "gap-1.5"], [1, "w-2", "h-2", "rounded-full", "bg-emerald-500"], [1, "text-xs", 3, "ngClass"], [1, "w-2", "h-2", "rounded-full", "bg-amber-500"], [1, "w-2", "h-2", "rounded-full", "bg-slate-400"], ["type", "button", 1, "inline-flex", "items-center", "gap-2", "px-6", "py-3", "rounded-xl", "font-semibold", "text-sm", "transition-all", "duration-200", "shadow-lg", "hover:shadow-xl", "hover:scale-105", "active:scale-95", "cursor-pointer", 3, "click", "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", "M13 10V3L4 14h7v7l9-11h-7z"]], template: function UnifiedGoalsProgressFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
106764
106914
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2)(3, "div", 3)(4, "div", 4)(5, "span", 5);
|
|
106765
106915
|
i0.ɵɵtext(6, " Goals Reviewed ");
|
|
106766
106916
|
i0.ɵɵelementEnd();
|
|
@@ -106802,7 +106952,7 @@ class UnifiedGoalsProgressFooterComponent {
|
|
|
106802
106952
|
imports: [CommonModule],
|
|
106803
106953
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
106804
106954
|
template: `
|
|
106805
|
-
<div [ngClass]="containerClasses()" class="fixed bottom-0 left-0 right-0 z-
|
|
106955
|
+
<div [ngClass]="containerClasses()" class="fixed bottom-0 left-0 right-0 z-100 border-t backdrop-blur-xl transition-all duration-300">
|
|
106806
106956
|
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-4">
|
|
106807
106957
|
<div class="flex flex-col sm:flex-row items-center justify-between gap-4">
|
|
106808
106958
|
<div class="flex-1 w-full sm:w-auto">
|