@eric-emg/symphiq-components 1.2.157 → 1.2.159
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.
|
@@ -53081,7 +53081,7 @@ class SymphiqCreateAccountDashboardComponent {
|
|
|
53081
53081
|
if (this.isLoading())
|
|
53082
53082
|
return false;
|
|
53083
53083
|
if (this.focusAreasEditMode()) {
|
|
53084
|
-
return this.allFocusAreasAnswered();
|
|
53084
|
+
return this.allFocusAreasAnswered() && this.focusAreasChanged();
|
|
53085
53085
|
}
|
|
53086
53086
|
if (!this.isFormValid())
|
|
53087
53087
|
return false;
|
|
@@ -53127,7 +53127,8 @@ class SymphiqCreateAccountDashboardComponent {
|
|
|
53127
53127
|
if (detail) {
|
|
53128
53128
|
map.set(domain, {
|
|
53129
53129
|
status: detail.status || null,
|
|
53130
|
-
tools: detail.tools || []
|
|
53130
|
+
tools: detail.tools || [],
|
|
53131
|
+
id: detail.id
|
|
53131
53132
|
});
|
|
53132
53133
|
}
|
|
53133
53134
|
else {
|
|
@@ -53140,11 +53141,15 @@ class SymphiqCreateAccountDashboardComponent {
|
|
|
53140
53141
|
const details = [];
|
|
53141
53142
|
this.focusAreasMap().forEach((value, domain) => {
|
|
53142
53143
|
if (value.status !== null) {
|
|
53143
|
-
|
|
53144
|
+
const detail = {
|
|
53144
53145
|
focusAreaDomain: domain,
|
|
53145
53146
|
status: value.status,
|
|
53146
53147
|
tools: value.tools
|
|
53147
|
-
}
|
|
53148
|
+
};
|
|
53149
|
+
if (value.id !== undefined) {
|
|
53150
|
+
detail.id = value.id;
|
|
53151
|
+
}
|
|
53152
|
+
details.push(detail);
|
|
53148
53153
|
}
|
|
53149
53154
|
});
|
|
53150
53155
|
return details;
|
|
@@ -53195,6 +53200,23 @@ class SymphiqCreateAccountDashboardComponent {
|
|
|
53195
53200
|
}
|
|
53196
53201
|
this.focusAreasEditMode.set(false);
|
|
53197
53202
|
}
|
|
53203
|
+
focusAreasChanged() {
|
|
53204
|
+
if (!this.originalFocusAreasMap)
|
|
53205
|
+
return false;
|
|
53206
|
+
const current = this.focusAreasMap();
|
|
53207
|
+
for (const [domain, originalValue] of this.originalFocusAreasMap) {
|
|
53208
|
+
const currentValue = current.get(domain);
|
|
53209
|
+
if (!currentValue)
|
|
53210
|
+
return true;
|
|
53211
|
+
if (originalValue.status !== currentValue.status)
|
|
53212
|
+
return true;
|
|
53213
|
+
if (originalValue.tools.length !== currentValue.tools.length)
|
|
53214
|
+
return true;
|
|
53215
|
+
if (!originalValue.tools.every((tool, i) => currentValue.tools[i] === tool))
|
|
53216
|
+
return true;
|
|
53217
|
+
}
|
|
53218
|
+
return false;
|
|
53219
|
+
}
|
|
53198
53220
|
isLightMode() {
|
|
53199
53221
|
return this.viewMode() === ViewModeEnum.LIGHT;
|
|
53200
53222
|
}
|