@eric-emg/symphiq-components 1.2.348 → 1.2.349
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 +11 -4
- package/fesm2022/symphiq-components.mjs.map +1 -1
- package/index.d.ts +50 -49
- package/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -89099,19 +89099,20 @@ class SymphiqProfileAnalysisDashboardComponent {
|
|
|
89099
89099
|
this.isEditingCurrency = signal(false, ...(ngDevMode ? [{ debugName: "isEditingCurrency" }] : []));
|
|
89100
89100
|
this.editingCurrencySelection = signal(null, ...(ngDevMode ? [{ debugName: "editingCurrencySelection" }] : []));
|
|
89101
89101
|
this.selectedPeriodUnit = computed(() => {
|
|
89102
|
-
return this.
|
|
89102
|
+
return this.accountSignal()?.chargebeeItemPricePeriodUnit || ChargebeeItemPricePeriodUnitEnum.YEAR;
|
|
89103
89103
|
}, ...(ngDevMode ? [{ debugName: "selectedPeriodUnit" }] : []));
|
|
89104
89104
|
this.showPlanSelection = computed(() => {
|
|
89105
|
-
return this.hasBillingCurrency() && this.planCardInfos() && this.planCardInfos().length > 0;
|
|
89105
|
+
return this.hasBillingCurrency() && !this.isSubscriptionActive() && this.planCardInfos() && this.planCardInfos().length > 0;
|
|
89106
89106
|
}, ...(ngDevMode ? [{ debugName: "showPlanSelection" }] : []));
|
|
89107
|
+
this.accountSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "accountSignal" }] : []));
|
|
89107
89108
|
this.isSubscriptionActive = computed(() => {
|
|
89108
|
-
const account = this.
|
|
89109
|
+
const account = this.accountSignal();
|
|
89109
89110
|
if (!account)
|
|
89110
89111
|
return false;
|
|
89111
89112
|
return ChargebeeSubscriptionStatusEnumUtil.isActive(account.subscriptionStatus) ?? false;
|
|
89112
89113
|
}, ...(ngDevMode ? [{ debugName: "isSubscriptionActive" }] : []));
|
|
89113
89114
|
this.hasBillingCurrency = computed(() => {
|
|
89114
|
-
const account = this.
|
|
89115
|
+
const account = this.accountSignal();
|
|
89115
89116
|
return !!account?.billingCurrencyCode;
|
|
89116
89117
|
}, ...(ngDevMode ? [{ debugName: "hasBillingCurrency" }] : []));
|
|
89117
89118
|
this.hasCurrencySelected = computed(() => {
|
|
@@ -89505,10 +89506,16 @@ class SymphiqProfileAnalysisDashboardComponent {
|
|
|
89505
89506
|
if (changes['funnelAnalysis']) {
|
|
89506
89507
|
this.funnelAnalysisSignal.set(this.funnelAnalysis());
|
|
89507
89508
|
}
|
|
89509
|
+
// Update account signal when account input changes
|
|
89510
|
+
if (changes['account']) {
|
|
89511
|
+
this.accountSignal.set(this.account());
|
|
89512
|
+
}
|
|
89508
89513
|
}
|
|
89509
89514
|
ngOnInit() {
|
|
89510
89515
|
// Set the signal with the funnelAnalysis data
|
|
89511
89516
|
this.funnelAnalysisSignal.set(this.funnelAnalysis());
|
|
89517
|
+
// Set account signal
|
|
89518
|
+
this.accountSignal.set(this.account());
|
|
89512
89519
|
// Index business profile recommendations into ProfileContextService
|
|
89513
89520
|
// This enables detailed recommendation lookup for goal business insights
|
|
89514
89521
|
const profileToUse = this.profile();
|