@posiwise/smart-crm 0.0.34 → 0.0.36

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.
Files changed (38) hide show
  1. package/esm2022/index.mjs +6 -3
  2. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +3 -3
  3. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +16 -15
  4. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +3 -3
  5. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +2 -2
  6. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.mjs +2 -2
  7. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +6 -5
  8. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +21 -9
  9. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.mjs +196 -0
  10. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component.mjs +128 -0
  11. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component.mjs +94 -0
  12. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-insight.component.mjs +19 -6
  13. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component.mjs +78 -0
  14. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component.mjs +145 -0
  15. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +3 -3
  16. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +2 -2
  17. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +3 -3
  18. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +5 -7
  19. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +3 -4
  20. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.mjs +2 -2
  21. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +2 -2
  22. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary.component.mjs +6 -8
  23. package/esm2022/lib/private/smart-crm-private.module.mjs +26 -11
  24. package/esm2022/lib/public/components/smart-crm-signup/smart-crm-signup.component.mjs +2 -2
  25. package/fesm2022/posiwise-smart-crm.mjs +756 -396
  26. package/fesm2022/posiwise-smart-crm.mjs.map +1 -1
  27. package/index.d.ts +5 -2
  28. package/lib/private/components/{smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.d.ts → smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.d.ts} +9 -7
  29. package/lib/private/components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component.d.ts +56 -0
  30. package/lib/private/components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component.d.ts +61 -0
  31. package/lib/private/components/smart-crm-insight/smart-crm-insight.component.d.ts +4 -0
  32. package/lib/private/components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component.d.ts +52 -0
  33. package/lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component.d.ts +79 -0
  34. package/lib/private/smart-crm-private.module.d.ts +47 -44
  35. package/package.json +1 -1
  36. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.mjs +0 -55
  37. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.mjs +0 -195
  38. package/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.d.ts +0 -20
package/index.d.ts CHANGED
@@ -21,7 +21,11 @@ export * from './lib/private/components/smart-crm-customer/smart-crm-customer-su
21
21
  export * from './lib/private/components/smart-crm-media/smart-crm-social-media/smart-crm-social-media.component';
22
22
  export * from './lib/private/components/smart-crm-insight/smart-crm-insight.component';
23
23
  export * from './lib/private/components/smart-crm-accounts/smart-crm-account-invoices/smart-crm-account-invoices.component';
24
- export * from './lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component';
24
+ export * from './lib/private/components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component';
25
+ export * from './lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component';
26
+ export * from './lib/private/components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component';
27
+ export * from './lib/private/components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component';
28
+ export * from './lib/private/components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component';
25
29
  export * from './lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component';
26
30
  export * from './lib/private/components/smart-crm-leads/smart-crm-leads.component';
27
31
  export * from './lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component';
@@ -35,7 +39,6 @@ export * from './lib/private/components/smart-crm-opportunities/smart-crm-opport
35
39
  export * from './lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component';
36
40
  export * from './lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component';
37
41
  export * from './lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component';
38
- export * from './lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component';
39
42
  export * from './lib/private/components/smart-crm-summary/smart-crm-summary.component';
40
43
  export * from './lib/private/components/smart-crm-tabs/smart-crm-tabs.component';
41
44
  export * from './lib/private/smart-crm-private.routing.module';
@@ -3,12 +3,14 @@ import { CrmService } from '@posiwise/smart-crm-shared';
3
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
4
  import { Subscription, User, activeOpportunities, signedUpLastThirtyDays } from '@posiwise/common-utilities';
5
5
  import * as i0 from "@angular/core";
6
- export declare class SmartCrmSummaryOthersComponent extends AppBaseComponent implements OnInit, OnDestroy {
6
+ export declare class SmartCrmAccountInsightComponent extends AppBaseComponent implements OnInit, OnDestroy {
7
7
  private readonly crmService;
8
8
  signedUpLastThirtyDays: signedUpLastThirtyDays[];
9
9
  activeOpportunities: activeOpportunities[];
10
10
  accountAtRisk: [];
11
11
  ContractRenewal: [];
12
+ accountInsight: [];
13
+ accountGeography: [];
12
14
  churnedAccounts: [];
13
15
  accountLastActivities: [];
14
16
  routers: {
@@ -42,6 +44,8 @@ export declare class SmartCrmSummaryOthersComponent extends AppBaseComponent imp
42
44
  accountAtRiskDetailsLoaded: boolean;
43
45
  contactRenewalLoaded: boolean;
44
46
  creditCardExpiringDetailsLoaded: boolean;
47
+ accountGeographyLoaded: boolean;
48
+ accountInsightLoaded: boolean;
45
49
  magicMomentLoaded: boolean;
46
50
  subscription: Subscription;
47
51
  hasAccess: boolean;
@@ -60,12 +64,10 @@ export declare class SmartCrmSummaryOthersComponent extends AppBaseComponent imp
60
64
  private getAccountAtRiskDetails;
61
65
  /** Function to call Contract renewal details */
62
66
  private getContactRenewal;
63
- /** Function to call Credit Card Expiring details */
64
- private getCreditCardExpiringDetails;
65
- /** Function to call magic moment */
66
- private getMagicMoment;
67
+ private getAccountInsights;
68
+ private getAccountGeography;
67
69
  checkPermission(permission: string): boolean;
68
70
  ngOnDestroy(): void;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmSummaryOthersComponent, never>;
70
- static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmSummaryOthersComponent, "pw-smart-crm-summary-others", never, {}, {}, never, never, false, never>;
71
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmAccountInsightComponent, never>;
72
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmAccountInsightComponent, "pw-smart-crm-account-insight", never, {}, {}, never, never, false, never>;
71
73
  }
@@ -0,0 +1,56 @@
1
+ import { Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { CrmService } from '@posiwise/smart-crm-shared';
3
+ import { AppBaseComponent } from '@posiwise/app-base-component';
4
+ import { Plotly, Subscription } from '@posiwise/common-utilities';
5
+ import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SmartCrmAnalysisComponent extends AppBaseComponent implements OnInit, OnDestroy {
8
+ private readonly crmService;
9
+ graph: Plotly.Figure;
10
+ revenueGrapgh: Plotly.Figure;
11
+ creditCardExpiring: [];
12
+ magicMoment: [];
13
+ subscriptionId: number;
14
+ hasAccess: boolean;
15
+ startDate: NgbDateStruct;
16
+ endDate: NgbDateStruct;
17
+ userId: number;
18
+ isLoaded: boolean;
19
+ isRevenueGraphLoaded: boolean;
20
+ routers: {
21
+ accounts: string;
22
+ contacts: string;
23
+ accountInfo: string;
24
+ addAccount: string;
25
+ contactInfo: string;
26
+ contactAdd: string;
27
+ contactDetails: string;
28
+ opportunityAdd: string;
29
+ opportunities: string;
30
+ opportunityInfo: string;
31
+ configurationDetails: string;
32
+ configurations: string;
33
+ leadsDetails: string;
34
+ marketingDetails: string;
35
+ marketing: string;
36
+ categoryDetails: string;
37
+ sourceDetails: string;
38
+ stageDetails: string;
39
+ widgetsDetails: string;
40
+ };
41
+ magicMomentLoaded: boolean;
42
+ subscription: Subscription;
43
+ creditCardExpiringDetailsLoaded: boolean;
44
+ constructor(crmService: CrmService, injector: Injector);
45
+ ngOnInit(): void;
46
+ private getUserInfo;
47
+ /** Function to get the data for the graph */
48
+ private getChartData;
49
+ private getRevenueGraph;
50
+ private getMagicMoment;
51
+ private getCreditCardExpiringDetails;
52
+ onDateSelect(): void;
53
+ ngOnDestroy(): void;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmAnalysisComponent, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmAnalysisComponent, "pw-smart-crm-analysis", never, {}, {}, never, never, false, never>;
56
+ }
@@ -0,0 +1,61 @@
1
+ import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { CrmService } from '@posiwise/smart-crm-shared';
3
+ import { AppBaseComponent } from '@posiwise/app-base-component';
4
+ import { Plotly, Subscription, User } from '@posiwise/common-utilities';
5
+ import { OpportunityInsight } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
6
+ import { AdminService } from '@posiwise/admin-module-utils';
7
+ import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
8
+ import * as i0 from "@angular/core";
9
+ export declare class SmartCrmContactInsightComponent extends AppBaseComponent implements OnInit, OnDestroy {
10
+ private readonly crmService;
11
+ private readonly cdr;
12
+ private readonly adminService;
13
+ loading: boolean;
14
+ startDate: NgbDateStruct;
15
+ endDate: NgbDateStruct;
16
+ contactId: number;
17
+ accountId: number;
18
+ subscriptionId: number;
19
+ userId: number;
20
+ user: User;
21
+ contactInsight: OpportunityInsight[];
22
+ contactGeography: Plotly.Figure;
23
+ userBaseData: Plotly.Figure;
24
+ subscription: Subscription;
25
+ routers: {
26
+ accounts: string;
27
+ contacts: string;
28
+ accountInfo: string;
29
+ addAccount: string;
30
+ contactInfo: string;
31
+ contactAdd: string;
32
+ contactDetails: string;
33
+ opportunityAdd: string;
34
+ opportunities: string;
35
+ opportunityInfo: string;
36
+ configurationDetails: string;
37
+ configurations: string;
38
+ leadsDetails: string;
39
+ marketingDetails: string;
40
+ marketing: string;
41
+ categoryDetails: string;
42
+ sourceDetails: string;
43
+ stageDetails: string;
44
+ widgetsDetails: string;
45
+ };
46
+ contactInsightLoaded: boolean;
47
+ geographyLoaded: boolean;
48
+ userBaseLoaded: boolean;
49
+ crmAccountIds: string;
50
+ constructor(crmService: CrmService, injector: Injector, cdr: ChangeDetectorRef, adminService: AdminService);
51
+ ngOnInit(): void;
52
+ ngAfterViewChecked(): void;
53
+ private getContactInsight;
54
+ /** Function to call contact geography */
55
+ getContactGeography(): void;
56
+ getUserBaseData(): void;
57
+ onDateSelect(): void;
58
+ ngOnDestroy(): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmContactInsightComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmContactInsightComponent, "pw-smart-crm-contact-insight", never, {}, {}, never, never, false, never>;
61
+ }
@@ -1,5 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class SmartCrmInsightComponent {
3
+ tabs: {
4
+ id: number;
5
+ title: string;
6
+ }[];
3
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmInsightComponent, never>;
4
8
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmInsightComponent, "pw-smart-crm-insight", never, {}, {}, never, never, false, never>;
5
9
  }
@@ -0,0 +1,52 @@
1
+ import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { CrmService } from '@posiwise/smart-crm-shared';
3
+ import { Plotly, Subscription, User } from '@posiwise/common-utilities';
4
+ import { CrmNewsLetterResponse } from '../../../../shared/interface/crm-newsletter.interface';
5
+ import { AppBaseComponent } from '@posiwise/app-base-component';
6
+ import * as i0 from "@angular/core";
7
+ export declare class SmartCrmCommunicationsInsightComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
8
+ private readonly crmService;
9
+ private readonly cdr;
10
+ subscriptionId: number;
11
+ searchText: string;
12
+ data: CrmNewsLetterResponse;
13
+ isLoaded: boolean;
14
+ loading: boolean;
15
+ communicationsInsightLoaded: boolean;
16
+ geographyLoaded: boolean;
17
+ user: User;
18
+ communicationsInsight: any;
19
+ communicationEngagement: Plotly.Figure;
20
+ subscription: Subscription;
21
+ routers: {
22
+ accounts: string;
23
+ contacts: string;
24
+ accountInfo: string;
25
+ addAccount: string;
26
+ contactInfo: string;
27
+ contactAdd: string;
28
+ contactDetails: string;
29
+ opportunityAdd: string;
30
+ opportunities: string;
31
+ opportunityInfo: string;
32
+ configurationDetails: string;
33
+ configurations: string;
34
+ leadsDetails: string;
35
+ marketingDetails: string;
36
+ marketing: string;
37
+ categoryDetails: string;
38
+ sourceDetails: string;
39
+ stageDetails: string;
40
+ widgetsDetails: string;
41
+ };
42
+ constructor(injector: Injector, crmService: CrmService, cdr: ChangeDetectorRef);
43
+ ngOnInit(): void;
44
+ ngAfterViewChecked(): void;
45
+ /** Function to call communication insight */
46
+ private getCommunicationInsight;
47
+ /** Function to call communication engagement */
48
+ private getCommunicationEngagement;
49
+ ngOnDestroy(): void;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmCommunicationsInsightComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmCommunicationsInsightComponent, "pw-smart-crm-communications-insight", never, {}, {}, never, never, false, never>;
52
+ }
@@ -0,0 +1,79 @@
1
+ import { AfterViewChecked, ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { CrmService } from '@posiwise/smart-crm-shared';
3
+ import { Plotly, Subscription, User } from '@posiwise/common-utilities';
4
+ import { CrmOpportunityResponse } from '../../../../shared/interface/crm-opportunity.interface';
5
+ import { AppBaseComponent } from '@posiwise/app-base-component';
6
+ import { ProductService } from '@posiwise/common-services';
7
+ import { OpportunityInsight } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
8
+ import { NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
9
+ import * as i0 from "@angular/core";
10
+ export declare class SmartCrmOpportunitiesInsightComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
11
+ private readonly crmService;
12
+ private readonly cdr;
13
+ private readonly productService;
14
+ subscription: Subscription;
15
+ subscriptionId: number;
16
+ hasAccess: boolean;
17
+ searchText: string;
18
+ startDate: NgbDateStruct;
19
+ endDate: NgbDateStruct;
20
+ data: CrmOpportunityResponse;
21
+ id: string;
22
+ isLoaded: boolean;
23
+ loading: boolean;
24
+ opportunitiesInsight: OpportunityInsight[];
25
+ opportunitiesCategory: any;
26
+ opportunitiesStage: any;
27
+ opportunitiesGraphData: any;
28
+ opportunitiesGeography: Plotly.Figure;
29
+ user: User;
30
+ userId: number;
31
+ searchStages: object[];
32
+ filterByStages: string[];
33
+ filterByCategories: any[];
34
+ searchCategories: object[];
35
+ page: number;
36
+ stages: any[];
37
+ categories: any[];
38
+ routers: {
39
+ accounts: string;
40
+ contacts: string;
41
+ accountInfo: string;
42
+ addAccount: string;
43
+ contactInfo: string;
44
+ contactAdd: string;
45
+ contactDetails: string;
46
+ opportunityAdd: string;
47
+ opportunities: string;
48
+ opportunityInfo: string;
49
+ configurationDetails: string;
50
+ configurations: string;
51
+ leadsDetails: string;
52
+ marketingDetails: string;
53
+ marketing: string;
54
+ categoryDetails: string;
55
+ sourceDetails: string;
56
+ stageDetails: string;
57
+ widgetsDetails: string;
58
+ };
59
+ opportunitiesInsightLoaded: boolean;
60
+ opportunitiesGeographyLoaded: boolean;
61
+ opportunitiesCategoryLoaded: boolean;
62
+ opportunitiesStageLoaded: boolean;
63
+ opportunitiesGraphLoaded: boolean;
64
+ constructor(crmService: CrmService, injector: Injector, cdr: ChangeDetectorRef, productService: ProductService);
65
+ ngOnInit(): void;
66
+ ngAfterViewChecked(): void;
67
+ /** Function to call opportunities insight */
68
+ private getOpportunitiesInsight;
69
+ /** Function to call contact geography */
70
+ private getContactGeography;
71
+ private getOpportunityCategory;
72
+ private getOpportunityStage;
73
+ private getOpportunityGraph;
74
+ onDateSelect(): void;
75
+ checkPermission(permission: string): boolean;
76
+ ngOnDestroy(): void;
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmOpportunitiesInsightComponent, never>;
78
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmOpportunitiesInsightComponent, "pw-smart-crm-opportunities-insight", never, {}, {}, never, never, false, never>;
79
+ }
@@ -14,51 +14,54 @@ import * as i12 from "./components/smart-crm-opportunities/smart-crm-opportuniti
14
14
  import * as i13 from "./components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component";
15
15
  import * as i14 from "./components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component";
16
16
  import * as i15 from "./components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component";
17
- import * as i16 from "./components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component";
18
- import * as i17 from "./components/smart-crm-configuration/smart-crm-source/smart-crm-source.component";
19
- import * as i18 from "./components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component";
20
- import * as i19 from "./components/smart-crm-accounts/smart-crm-account-invoices/smart-crm-account-invoices.component";
21
- import * as i20 from "./components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component";
22
- import * as i21 from "./components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component";
23
- import * as i22 from "./components/smart-crm-media/smart-crm-social-media/smart-crm-social-media.component";
24
- import * as i23 from "./components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component";
25
- import * as i24 from "./components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component";
26
- import * as i25 from "./components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component";
27
- import * as i26 from "./components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component";
28
- import * as i27 from "./components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component";
29
- import * as i28 from "./components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component";
30
- import * as i29 from "./components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component";
31
- import * as i30 from "./components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component";
32
- import * as i31 from "./components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component";
33
- import * as i32 from "./components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component";
34
- import * as i33 from "./components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component";
35
- import * as i34 from "./components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component";
36
- import * as i35 from "./components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component";
37
- import * as i36 from "./components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component";
38
- import * as i37 from "./components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component";
39
- import * as i38 from "./components/smart-crm-marketing/smart-crm-marketing.component";
40
- import * as i39 from "./components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component";
41
- import * as i40 from "./components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component";
42
- import * as i41 from "@angular/common";
43
- import * as i42 from "@angular/forms";
44
- import * as i43 from "ngx-pagination";
45
- import * as i44 from "@posiwise/pipes";
46
- import * as i45 from "primeng/inputtext";
47
- import * as i46 from "ngx-ui-switch";
48
- import * as i47 from "@posiwise/directives";
49
- import * as i48 from "@ng-bootstrap/ng-bootstrap";
50
- import * as i49 from "angular-plotly.js";
51
- import * as i50 from "@angular-magic/ngx-gp-autocomplete";
52
- import * as i51 from "./smart-crm-private.routing.module";
53
- import * as i52 from "@posiwise/shared-components";
54
- import * as i53 from "@posiwise/core-transloco";
55
- import * as i54 from "@angular/cdk/drag-drop";
56
- import * as i55 from "ngx-quill";
57
- import * as i56 from "ngx-uploader";
58
- import * as i57 from "ngx-infinite-scroll";
59
- import * as i58 from "primeng/dropdown";
17
+ import * as i16 from "./components/smart-crm-insight/smart-crm-marketing-insight/smart-crm-marketing-insight.component";
18
+ import * as i17 from "./components/smart-crm-insight/smart-crm-analysis-insight/smart-crm-analysis.component";
19
+ import * as i18 from "./components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component";
20
+ import * as i19 from "./components/smart-crm-configuration/smart-crm-source/smart-crm-source.component";
21
+ import * as i20 from "./components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component";
22
+ import * as i21 from "./components/smart-crm-accounts/smart-crm-account-invoices/smart-crm-account-invoices.component";
23
+ import * as i22 from "./components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component";
24
+ import * as i23 from "./components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component";
25
+ import * as i24 from "./components/smart-crm-media/smart-crm-social-media/smart-crm-social-media.component";
26
+ import * as i25 from "./components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component";
27
+ import * as i26 from "./components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component";
28
+ import * as i27 from "./components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component";
29
+ import * as i28 from "./components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component";
30
+ import * as i29 from "./components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component";
31
+ import * as i30 from "./components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component";
32
+ import * as i31 from "./components/smart-crm-insight/smart-crm-contact-insight/smart-crm-contact-insight.component";
33
+ import * as i32 from "./components/smart-crm-insight/smart-crm-opportunities-insight/smart-crm-opportunities-insight.component";
34
+ import * as i33 from "./components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component";
35
+ import * as i34 from "./components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component";
36
+ import * as i35 from "./components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component";
37
+ import * as i36 from "./components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component";
38
+ import * as i37 from "./components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component";
39
+ import * as i38 from "./components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component";
40
+ import * as i39 from "./components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component";
41
+ import * as i40 from "./components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component";
42
+ import * as i41 from "./components/smart-crm-marketing/smart-crm-marketing.component";
43
+ import * as i42 from "./components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component";
44
+ import * as i43 from "./components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component";
45
+ import * as i44 from "@angular/common";
46
+ import * as i45 from "@angular/forms";
47
+ import * as i46 from "ngx-pagination";
48
+ import * as i47 from "@posiwise/pipes";
49
+ import * as i48 from "primeng/inputtext";
50
+ import * as i49 from "ngx-ui-switch";
51
+ import * as i50 from "@posiwise/directives";
52
+ import * as i51 from "@ng-bootstrap/ng-bootstrap";
53
+ import * as i52 from "angular-plotly.js";
54
+ import * as i53 from "@angular-magic/ngx-gp-autocomplete";
55
+ import * as i54 from "./smart-crm-private.routing.module";
56
+ import * as i55 from "@posiwise/shared-components";
57
+ import * as i56 from "@posiwise/core-transloco";
58
+ import * as i57 from "@angular/cdk/drag-drop";
59
+ import * as i58 from "ngx-quill";
60
+ import * as i59 from "ngx-uploader";
61
+ import * as i60 from "ngx-infinite-scroll";
62
+ import * as i61 from "primeng/dropdown";
60
63
  export declare class SmartCrmPrivateModule {
61
64
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmPrivateModule, never>;
62
- static ɵmod: i0.ɵɵNgModuleDeclaration<SmartCrmPrivateModule, [typeof i1.SmartCrmTabsComponent, typeof i2.SmartCrmSummaryComponent, typeof i3.SmartCrmCompaniesComponent, typeof i4.SmartCrmContactComponent, typeof i5.SmartCrmConfigurationComponent, typeof i6.SmartCrmSettingsDetailsComponent, typeof i7.SmartCrmContactDetailsComponent, typeof i8.SmartCrmCompanyDetailsComponent, typeof i9.SmartCrmInsightComponent, typeof i10.SmartCrmContactInfoComponent, typeof i11.SmartCrmLeadsComponent, typeof i12.SmartCrmOpportunitiesComponent, typeof i13.SmartCrmOpportunitiesDetailsComponent, typeof i14.SmartCrmBoardComponent, typeof i15.SmartCrmCommunicationsComponent, typeof i16.SmartCrmCompanyInfoComponent, typeof i17.SmartCrmCompanySourceComponent, typeof i18.SmartCrmCompanyFilesComponent, typeof i19.SmartCrmCompanyAccountInvoiceComponent, typeof i20.SmartCrmWidgetsComponent, typeof i21.SmartCrmCustomerSuccessComponent, typeof i22.SmartCrmSocialMediaComponent, typeof i23.SmartCrmCompetitionComponent, typeof i24.SmartCrmOpportunitiesInfoComponent, typeof i25.SmartCrmSourceDetailsComponent, typeof i26.SmartCrmWidgetsDetailsComponent, typeof i27.SmartCrmActionsComponent, typeof i28.SmartCrmOpportunitiesListComponent, typeof i29.SmartCrmOverviewComponent, typeof i30.SmartCrmSummaryActionsComponent, typeof i31.SmartCrmSummaryOthersComponent, typeof i32.SmartCrmCommunicationsDetailsComponent, typeof i33.SmartCrmCommunicationViewDetailsComponent, typeof i34.SmartCrmLeadsDetailsComponent, typeof i35.SmartCrmMarketingUsersListComponent, typeof i36.SmartCrmStagesComponent, typeof i37.SmartCrmStageDetailsComponent, typeof i38.SmartCrmMarketingViewComponent, typeof i39.SmartCrmOpportunityCategoriesComponent, typeof i40.SmartCrmOpportunityCategoriesDetailsComponent], [typeof i41.CommonModule, typeof i42.FormsModule, typeof i43.NgxPaginationModule, typeof i44.PipesModule, typeof i45.InputTextModule, typeof i46.UiSwitchModule, typeof i47.DirectivesModule, typeof i42.ReactiveFormsModule, typeof i48.NgbModule, typeof i49.PlotlyViaCDNModule, typeof i50.NgxGpAutocompleteModule, typeof i51.SmartCrmPrivateRoutingModule, typeof i52.SharedComponentsModule, typeof i53.CoreTranslocoModule, typeof i54.DragDropModule, typeof i55.QuillModule, typeof i56.NgxUploaderModule, typeof i57.InfiniteScrollModule, typeof i58.DropdownModule], [typeof i1.SmartCrmTabsComponent, typeof i2.SmartCrmSummaryComponent, typeof i3.SmartCrmCompaniesComponent, typeof i4.SmartCrmContactComponent, typeof i5.SmartCrmConfigurationComponent, typeof i6.SmartCrmSettingsDetailsComponent, typeof i7.SmartCrmContactDetailsComponent, typeof i8.SmartCrmCompanyDetailsComponent, typeof i9.SmartCrmInsightComponent, typeof i10.SmartCrmContactInfoComponent, typeof i11.SmartCrmLeadsComponent, typeof i12.SmartCrmOpportunitiesComponent, typeof i13.SmartCrmOpportunitiesDetailsComponent, typeof i14.SmartCrmBoardComponent, typeof i15.SmartCrmCommunicationsComponent, typeof i16.SmartCrmCompanyInfoComponent, typeof i17.SmartCrmCompanySourceComponent, typeof i19.SmartCrmCompanyAccountInvoiceComponent, typeof i18.SmartCrmCompanyFilesComponent, typeof i20.SmartCrmWidgetsComponent, typeof i21.SmartCrmCustomerSuccessComponent, typeof i22.SmartCrmSocialMediaComponent, typeof i23.SmartCrmCompetitionComponent, typeof i24.SmartCrmOpportunitiesInfoComponent, typeof i25.SmartCrmSourceDetailsComponent, typeof i26.SmartCrmWidgetsDetailsComponent, typeof i27.SmartCrmActionsComponent, typeof i28.SmartCrmOpportunitiesListComponent, typeof i29.SmartCrmOverviewComponent, typeof i30.SmartCrmSummaryActionsComponent, typeof i31.SmartCrmSummaryOthersComponent, typeof i32.SmartCrmCommunicationsDetailsComponent, typeof i33.SmartCrmCommunicationViewDetailsComponent, typeof i34.SmartCrmLeadsDetailsComponent, typeof i35.SmartCrmMarketingUsersListComponent, typeof i36.SmartCrmStagesComponent, typeof i37.SmartCrmStageDetailsComponent, typeof i38.SmartCrmMarketingViewComponent, typeof i39.SmartCrmOpportunityCategoriesComponent, typeof i40.SmartCrmOpportunityCategoriesDetailsComponent]>;
65
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SmartCrmPrivateModule, [typeof i1.SmartCrmTabsComponent, typeof i2.SmartCrmSummaryComponent, typeof i3.SmartCrmCompaniesComponent, typeof i4.SmartCrmContactComponent, typeof i5.SmartCrmConfigurationComponent, typeof i6.SmartCrmSettingsDetailsComponent, typeof i7.SmartCrmContactDetailsComponent, typeof i8.SmartCrmCompanyDetailsComponent, typeof i9.SmartCrmInsightComponent, typeof i10.SmartCrmContactInfoComponent, typeof i11.SmartCrmLeadsComponent, typeof i12.SmartCrmOpportunitiesComponent, typeof i13.SmartCrmOpportunitiesDetailsComponent, typeof i14.SmartCrmBoardComponent, typeof i15.SmartCrmCommunicationsComponent, typeof i16.SmartCrmCommunicationsInsightComponent, typeof i17.SmartCrmAnalysisComponent, typeof i18.SmartCrmCompanyInfoComponent, typeof i19.SmartCrmCompanySourceComponent, typeof i20.SmartCrmCompanyFilesComponent, typeof i21.SmartCrmCompanyAccountInvoiceComponent, typeof i22.SmartCrmWidgetsComponent, typeof i23.SmartCrmCustomerSuccessComponent, typeof i24.SmartCrmSocialMediaComponent, typeof i25.SmartCrmCompetitionComponent, typeof i26.SmartCrmOpportunitiesInfoComponent, typeof i27.SmartCrmSourceDetailsComponent, typeof i28.SmartCrmWidgetsDetailsComponent, typeof i29.SmartCrmActionsComponent, typeof i30.SmartCrmOpportunitiesListComponent, typeof i31.SmartCrmContactInsightComponent, typeof i32.SmartCrmOpportunitiesInsightComponent, typeof i33.SmartCrmAccountInsightComponent, typeof i34.SmartCrmSummaryActionsComponent, typeof i35.SmartCrmCommunicationsDetailsComponent, typeof i36.SmartCrmCommunicationViewDetailsComponent, typeof i37.SmartCrmLeadsDetailsComponent, typeof i38.SmartCrmMarketingUsersListComponent, typeof i39.SmartCrmStagesComponent, typeof i40.SmartCrmStageDetailsComponent, typeof i41.SmartCrmMarketingViewComponent, typeof i42.SmartCrmOpportunityCategoriesComponent, typeof i43.SmartCrmOpportunityCategoriesDetailsComponent], [typeof i44.CommonModule, typeof i45.FormsModule, typeof i46.NgxPaginationModule, typeof i47.PipesModule, typeof i48.InputTextModule, typeof i49.UiSwitchModule, typeof i50.DirectivesModule, typeof i45.ReactiveFormsModule, typeof i51.NgbModule, typeof i52.PlotlyViaCDNModule, typeof i53.NgxGpAutocompleteModule, typeof i54.SmartCrmPrivateRoutingModule, typeof i55.SharedComponentsModule, typeof i56.CoreTranslocoModule, typeof i57.DragDropModule, typeof i58.QuillModule, typeof i59.NgxUploaderModule, typeof i60.InfiniteScrollModule, typeof i61.DropdownModule], [typeof i1.SmartCrmTabsComponent, typeof i2.SmartCrmSummaryComponent, typeof i3.SmartCrmCompaniesComponent, typeof i4.SmartCrmContactComponent, typeof i5.SmartCrmConfigurationComponent, typeof i6.SmartCrmSettingsDetailsComponent, typeof i7.SmartCrmContactDetailsComponent, typeof i8.SmartCrmCompanyDetailsComponent, typeof i9.SmartCrmInsightComponent, typeof i31.SmartCrmContactInsightComponent, typeof i32.SmartCrmOpportunitiesInsightComponent, typeof i33.SmartCrmAccountInsightComponent, typeof i17.SmartCrmAnalysisComponent, typeof i10.SmartCrmContactInfoComponent, typeof i11.SmartCrmLeadsComponent, typeof i12.SmartCrmOpportunitiesComponent, typeof i13.SmartCrmOpportunitiesDetailsComponent, typeof i14.SmartCrmBoardComponent, typeof i15.SmartCrmCommunicationsComponent, typeof i16.SmartCrmCommunicationsInsightComponent, typeof i18.SmartCrmCompanyInfoComponent, typeof i19.SmartCrmCompanySourceComponent, typeof i21.SmartCrmCompanyAccountInvoiceComponent, typeof i20.SmartCrmCompanyFilesComponent, typeof i22.SmartCrmWidgetsComponent, typeof i23.SmartCrmCustomerSuccessComponent, typeof i24.SmartCrmSocialMediaComponent, typeof i25.SmartCrmCompetitionComponent, typeof i26.SmartCrmOpportunitiesInfoComponent, typeof i27.SmartCrmSourceDetailsComponent, typeof i28.SmartCrmWidgetsDetailsComponent, typeof i29.SmartCrmActionsComponent, typeof i30.SmartCrmOpportunitiesListComponent, typeof i34.SmartCrmSummaryActionsComponent, typeof i35.SmartCrmCommunicationsDetailsComponent, typeof i36.SmartCrmCommunicationViewDetailsComponent, typeof i37.SmartCrmLeadsDetailsComponent, typeof i38.SmartCrmMarketingUsersListComponent, typeof i39.SmartCrmStagesComponent, typeof i40.SmartCrmStageDetailsComponent, typeof i41.SmartCrmMarketingViewComponent, typeof i42.SmartCrmOpportunityCategoriesComponent, typeof i43.SmartCrmOpportunityCategoriesDetailsComponent]>;
63
66
  static ɵinj: i0.ɵɵInjectorDeclaration<SmartCrmPrivateModule>;
64
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@posiwise/smart-crm",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "17.3.11",
6
6
  "@angular/core": "17.3.11"
@@ -1,55 +0,0 @@
1
- import { Component, Injector } from '@angular/core';
2
- import { CrmService } from '@posiwise/smart-crm-shared';
3
- import { AppBaseComponent } from '@posiwise/app-base-component';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@posiwise/smart-crm-shared";
6
- import * as i2 from "@angular/common";
7
- import * as i3 from "@posiwise/directives";
8
- import * as i4 from "angular-plotly.js";
9
- import * as i5 from "primeng/progressspinner";
10
- import * as i6 from "@posiwise/shared-components";
11
- import * as i7 from "@jsverse/transloco";
12
- export class SmartCrmOverviewComponent extends AppBaseComponent {
13
- constructor(crmService, injector) {
14
- super(injector);
15
- this.crmService = crmService;
16
- this.hasAccess = false;
17
- this.isLoaded = false;
18
- }
19
- ngOnInit() {
20
- this.userStore().subscribe(user => {
21
- if (user) {
22
- if (this.permissionService.isGranted('Pages.Beta')) {
23
- this.getChartData();
24
- }
25
- }
26
- });
27
- }
28
- /** Function to get the data for the graph */
29
- getChartData() {
30
- this.getUserSubscriptionId().subscribe(subscriptionId => {
31
- this.subscriptionId = subscriptionId;
32
- if (this.subscriptionId) {
33
- this.hasAccess = this.hasAdminAccess(this.subscriptionId);
34
- this.crmService
35
- .getChartData(this.subscriptionId)
36
- .subscribe(response => {
37
- this.graph = response;
38
- })
39
- .add(() => {
40
- this.isLoaded = true;
41
- });
42
- }
43
- });
44
- }
45
- ngOnDestroy() {
46
- super.ngOnDestroy();
47
- }
48
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartCrmOverviewComponent, deps: [{ token: i1.CrmService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
49
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.11", type: SmartCrmOverviewComponent, selector: "pw-smart-crm-overview", usesInheritance: true, ngImport: i0, template: "<div class=\"row\">\n <div class=\"col-12 mb-3\">\n <div *ngIf=\"hasAccess\">\n <div class=\"row\">\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <!-- Activities -->\n <div class=\"col-12 col-lg-8 my-3 px-2\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n <!-- Opportunities funnel -->\n <div class=\"col-12 col-lg-4 my-3 px-2\"\n *rbacAllow=\"'Pages.Beta'\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n <div class=\"col-12 col-lg-4 my-3 px-2\"\n *rbacAllow=\"'Pages.Beta'\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n <!-- Opportunities timeline -->\n <div class=\"col-12 col-lg-8 my-3 px-2\"\n *rbacAllow=\"'Pages.Beta'\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n </div>\n </div>\n <div *ngIf=\"!hasAccess && isLoaded\"\n class=\"w-100\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Crm.Insight.NoDataMessage' | transloco\"> </pw-no-data>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.RbacAllowDirective, selector: "[rbacAllow]", inputs: ["rbacAllow"] }, { kind: "component", type: i4.PlotlyComponent, selector: "plotly-plot", inputs: ["data", "layout", "config", "frames", "style", "theme", "divId", "revision", "className", "debug", "useResizeHandler", "updateOnLayoutChange", "updateOnDataChange", "updateOnlyWithRevision"], outputs: ["initialized", "update", "purge", "error", "afterExport", "afterPlot", "animated", "animatingFrame", "animationInterrupted", "autoSize", "beforeExport", "beforeHover", "buttonClicked", "click", "plotlyClick", "clickAnnotation", "deselect", "doubleClick", "framework", "hover", "legendClick", "legendDoubleClick", "react", "relayout", "relayouting", "restyle", "redraw", "selected", "selecting", "sliderChange", "sliderEnd", "sliderStart", "sunburstclick", "transitioning", "transitionInterrupted", "unhover", "treemapclick", "webglcontextlost"] }, { kind: "component", type: i5.ProgressSpinner, selector: "p-progressSpinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "component", type: i6.NoDataComponent, selector: "pw-no-data", inputs: ["message", "description", "withImage"] }, { kind: "pipe", type: i7.TranslocoPipe, name: "transloco" }] }); }
50
- }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartCrmOverviewComponent, decorators: [{
52
- type: Component,
53
- args: [{ selector: 'pw-smart-crm-overview', template: "<div class=\"row\">\n <div class=\"col-12 mb-3\">\n <div *ngIf=\"hasAccess\">\n <div class=\"row\">\n <div class=\"w-100 text-center mt-3\"\n *ngIf=\"!isLoaded\">\n <p-progressSpinner strokeWidth=\"2\"> </p-progressSpinner>\n </div>\n <!-- Activities -->\n <div class=\"col-12 col-lg-8 my-3 px-2\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n <!-- Opportunities funnel -->\n <div class=\"col-12 col-lg-4 my-3 px-2\"\n *rbacAllow=\"'Pages.Beta'\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n <div class=\"col-12 col-lg-4 my-3 px-2\"\n *rbacAllow=\"'Pages.Beta'\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n <!-- Opportunities timeline -->\n <div class=\"col-12 col-lg-8 my-3 px-2\"\n *rbacAllow=\"'Pages.Beta'\">\n <ng-template [ngIf]=\"graph\">\n <plotly-plot [data]=\"graph?.data\"\n [layout]=\"graph?.layout\"></plotly-plot>\n </ng-template>\n </div>\n </div>\n </div>\n <div *ngIf=\"!hasAccess && isLoaded\"\n class=\"w-100\">\n <pw-no-data [withImage]=\"true\" [message]=\"'Crm.Insight.NoDataMessage' | transloco\"> </pw-no-data>\n </div>\n </div>\n</div>\n" }]
54
- }], ctorParameters: () => [{ type: i1.CrmService }, { type: i0.Injector }] });
55
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtY3JtLW92ZXJ2aWV3LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvc21hcnQtY3JtL3NyYy9saWIvcHJpdmF0ZS9jb21wb25lbnRzL3NtYXJ0LWNybS1pbnNpZ2h0L3NtYXJ0LWNybS1vdmVydmlldy9zbWFydC1jcm0tb3ZlcnZpZXcuY29tcG9uZW50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dGEgZm9yIHRoZSBncmFwaCAqL1xuICAgIHByaXZhdGUgZ2V0Q2hhcnREYXRhKCkge1xuICAgICAgICB0aGlzLmdldFVzZXJTdWJzY3JpcHRpb25JZCgpLnN1YnNjcmliZShzdWJzY3JpcHRpb25JZCA9PiB7XG4gICAgICAgICAgICB0aGlzLnN1YnNjcmlwdGlvbklkID0gc3Vic2NyaXB0aW9uSWQ7XG4gICAgICAgICAgICBpZiAodGhpcy5zdWJzY3JpcHRpb25JZCkge1xuICAgICAgICAgICAgICAgIHRoaXMuaGFzQWNjZXNzID0gdGhpcy5oYXNBZG1pbkFjY2Vzcyh0aGlzLnN1YnNjcmlwdGlvbklkKTtcbiAgICAgICAgICAgICAgICB0aGlzLmNybVNlcnZpY2VcbiAgICAgICAgICAgICAgICAgICAgLmdldENoYXJ0RGF0YSh0aGlzLnN1YnNjcmlwdGlvbklkKVxuICAgICAgICAgICAgICAgICAgICAuc3Vic2NyaWJlKHJlc3BvbnNlID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuZ3JhcGggPSByZXNwb25zZTtcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICAgICAgLmFkZCgoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICB0aGlzLmlzTG9hZGVkID0gdHJ1ZTtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICB9XG4gICAgICAgIH0pO1xuICAgIH1cblxuICAgIG92ZXJyaWRlIG5nT25EZXN0cm95KCkge1xuICAgICAgICBzdXBlci5uZ09uRGVzdHJveSgpO1xuICAgIH1cbn1cbiIsIjxkaXYgY2xhc3M9XCJyb3dcIj5cbiAgPGRpdiBjbGFzcz1cImNvbC0xMiBtYi0zXCI+XG4gICAgPGRpdiAqbmdJZj1cImhhc0FjY2Vzc1wiPlxuICAgICAgPGRpdiBjbGFzcz1cInJvd1wiPlxuICAgICAgICA8ZGl2IGNsYXNzPVwidy0xMDAgdGV4dC1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