@eric-emg/symphiq-components 1.2.413 → 1.2.414
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 +4 -5
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +50 -50
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14444,19 +14444,18 @@ class RecommendationCardComponent {
|
|
|
14444
14444
|
this.strategyTitle = input(undefined, ...(ngDevMode ? [{ debugName: "strategyTitle" }] : []));
|
|
14445
14445
|
this.cardNavigate = output();
|
|
14446
14446
|
this._isExpanded = signal(false, ...(ngDevMode ? [{ debugName: "_isExpanded" }] : []));
|
|
14447
|
-
this._forceExpanded = signal(false, ...(ngDevMode ? [{ debugName: "_forceExpanded" }] : []));
|
|
14448
14447
|
this._hasAnimated = signal(false, ...(ngDevMode ? [{ debugName: "_hasAnimated" }] : []));
|
|
14449
14448
|
this.profileContextService = inject(ProfileContextService);
|
|
14450
14449
|
this.navigationService = inject(NavigationStateService);
|
|
14451
14450
|
this.modalService = inject(ModalService);
|
|
14452
14451
|
this.viewModeService = inject(ViewModeService);
|
|
14453
|
-
this.isExpanded = computed(() => this.
|
|
14452
|
+
this.isExpanded = computed(() => this.forceExpanded() || this._isExpanded() || this.viewModeService.isExpanded(), ...(ngDevMode ? [{ debugName: "isExpanded" }] : []));
|
|
14454
14453
|
this.isDark = computed(() => this.viewMode() === ViewModeEnum.DARK, ...(ngDevMode ? [{ debugName: "isDark" }] : []));
|
|
14455
14454
|
this.isActuallyExpanded = computed(() => this.isExpanded(), ...(ngDevMode ? [{ debugName: "isActuallyExpanded" }] : []));
|
|
14456
|
-
this.forceExpandedValue = computed(() => this.
|
|
14455
|
+
this.forceExpandedValue = computed(() => this.forceExpanded(), ...(ngDevMode ? [{ debugName: "forceExpandedValue" }] : []));
|
|
14457
14456
|
this.shouldAnimateExpand = computed(() => this.isActuallyExpanded() && this._hasAnimated(), ...(ngDevMode ? [{ debugName: "shouldAnimateExpand" }] : []));
|
|
14458
14457
|
this.iconSize = computed(() => this.isActuallyExpanded() ? 'w-6 h-6' : 'w-5 h-5', ...(ngDevMode ? [{ debugName: "iconSize" }] : []));
|
|
14459
|
-
this.shouldBeClickable = computed(() => !this.
|
|
14458
|
+
this.shouldBeClickable = computed(() => !this.forceExpanded() || !this.inModalContext, ...(ngDevMode ? [{ debugName: "shouldBeClickable" }] : []));
|
|
14460
14459
|
this.displayItem = computed(() => {
|
|
14461
14460
|
let displayItem;
|
|
14462
14461
|
if (this.recommendation()) {
|
|
@@ -14771,7 +14770,7 @@ class RecommendationCardComponent {
|
|
|
14771
14770
|
this.toggleExpanded();
|
|
14772
14771
|
}
|
|
14773
14772
|
toggleExpanded() {
|
|
14774
|
-
if (!this.
|
|
14773
|
+
if (!this.forceExpanded() && !this.viewModeService.isExpanded()) {
|
|
14775
14774
|
const wasExpanded = this._isExpanded();
|
|
14776
14775
|
this._isExpanded.update(v => !v);
|
|
14777
14776
|
if (!wasExpanded && !this._hasAnimated()) {
|