@eric-emg/symphiq-components 1.2.157 → 1.2.158
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;
|
|
@@ -53195,6 +53195,23 @@ class SymphiqCreateAccountDashboardComponent {
|
|
|
53195
53195
|
}
|
|
53196
53196
|
this.focusAreasEditMode.set(false);
|
|
53197
53197
|
}
|
|
53198
|
+
focusAreasChanged() {
|
|
53199
|
+
if (!this.originalFocusAreasMap)
|
|
53200
|
+
return false;
|
|
53201
|
+
const current = this.focusAreasMap();
|
|
53202
|
+
for (const [domain, originalValue] of this.originalFocusAreasMap) {
|
|
53203
|
+
const currentValue = current.get(domain);
|
|
53204
|
+
if (!currentValue)
|
|
53205
|
+
return true;
|
|
53206
|
+
if (originalValue.status !== currentValue.status)
|
|
53207
|
+
return true;
|
|
53208
|
+
if (originalValue.tools.length !== currentValue.tools.length)
|
|
53209
|
+
return true;
|
|
53210
|
+
if (!originalValue.tools.every((tool, i) => currentValue.tools[i] === tool))
|
|
53211
|
+
return true;
|
|
53212
|
+
}
|
|
53213
|
+
return false;
|
|
53214
|
+
}
|
|
53198
53215
|
isLightMode() {
|
|
53199
53216
|
return this.viewMode() === ViewModeEnum.LIGHT;
|
|
53200
53217
|
}
|