@posiwise/smart-crm 0.0.40 → 0.0.42
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/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +5 -4
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +8 -7
- package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-actions/smart-crm-actions.component.mjs +16 -9
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +5 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +13 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.mjs +5 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +2 -1
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +5 -4
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +2 -2
- package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +5 -4
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +41 -12
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +34 -22
- package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +7 -6
- package/esm2022/lib/private/components/smart-crm-insight/smart-crm-account-insight/smart-crm-account-insight.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +47 -16
- package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +7 -6
- package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +3 -3
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +10 -10
- package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +5 -4
- package/esm2022/lib/shared/models/smart-crm.model.mjs +5 -1
- package/fesm2022/posiwise-smart-crm.mjs +177 -93
- package/fesm2022/posiwise-smart-crm.mjs.map +1 -1
- package/lib/private/components/smart-crm-actions/smart-crm-actions.component.d.ts +2 -2
- package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +2 -0
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.d.ts +9 -3
- package/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.d.ts +7 -3
- package/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.d.ts +9 -1
- package/package.json +1 -1
|
@@ -18,7 +18,7 @@ export declare class CrmActionsComponent extends AppBaseComponent implements OnI
|
|
|
18
18
|
contactActions: any[];
|
|
19
19
|
contactActionsAll: any[];
|
|
20
20
|
accountActionSuggested: any[];
|
|
21
|
-
allSubscriptionMembers:
|
|
21
|
+
allSubscriptionMembers: any[];
|
|
22
22
|
selector: string;
|
|
23
23
|
suggestedActionsSelector: string;
|
|
24
24
|
isLoaded: boolean;
|
|
@@ -68,7 +68,7 @@ export declare class CrmActionsComponent extends AppBaseComponent implements OnI
|
|
|
68
68
|
/** Function to update the date */
|
|
69
69
|
onDateSelect(event: any, action: any): void;
|
|
70
70
|
/** Function to filter the data by user */
|
|
71
|
-
filterByUser(
|
|
71
|
+
filterByUser(userId: any): void;
|
|
72
72
|
ngOnDestroy(): void;
|
|
73
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrmActionsComponent, never>;
|
|
74
74
|
static ɵcmp: i0.ɵɵComponentDeclaration<CrmActionsComponent, "pw-crm-actions", never, {}, {}, never, never, false, never>;
|
|
@@ -39,6 +39,7 @@ export declare class SmartCrmActionsComponent extends AppBaseComponent implement
|
|
|
39
39
|
stageDetails: string;
|
|
40
40
|
widgetsDetails: string;
|
|
41
41
|
};
|
|
42
|
+
actionNames: string[];
|
|
42
43
|
constructor(crmService: CrmService, injector: Injector, cdr: ChangeDetectorRef);
|
|
43
44
|
ngOnInit(): void;
|
|
44
45
|
ngAfterViewChecked(): void;
|
|
@@ -46,6 +47,7 @@ export declare class SmartCrmActionsComponent extends AppBaseComponent implement
|
|
|
46
47
|
shouldShowTableContent(): boolean;
|
|
47
48
|
/** Function to get and show all the actions */
|
|
48
49
|
private getActions;
|
|
50
|
+
getActionName(id: number): string;
|
|
49
51
|
invokeGetActions(paging: Paging): void;
|
|
50
52
|
buildDefaultActions(): void;
|
|
51
53
|
/** Function to delete existing setting */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ChangeDetectorRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
-
import { CommonService } from '@posiwise/common-services';
|
|
5
|
-
import { User } from '@posiwise/common-utilities';
|
|
4
|
+
import { CommonService, GeoService } from '@posiwise/common-services';
|
|
5
|
+
import { Country, User } from '@posiwise/common-utilities';
|
|
6
6
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { CrmAccount } from '../../../../shared/interface/crm-account.interface';
|
|
@@ -12,6 +12,8 @@ export declare class SmartCrmContactDetailsComponent extends AppBaseComponent im
|
|
|
12
12
|
private readonly commonService;
|
|
13
13
|
private readonly crmService;
|
|
14
14
|
private readonly cdr;
|
|
15
|
+
private readonly geoService;
|
|
16
|
+
private countries$;
|
|
15
17
|
form: UntypedFormGroup;
|
|
16
18
|
id: number;
|
|
17
19
|
subscriptionId: number;
|
|
@@ -19,6 +21,8 @@ export declare class SmartCrmContactDetailsComponent extends AppBaseComponent im
|
|
|
19
21
|
user: User;
|
|
20
22
|
data: CrmContact;
|
|
21
23
|
accounts: CrmAccount[];
|
|
24
|
+
countryNames: any[];
|
|
25
|
+
filteredCountries: Country[];
|
|
22
26
|
filteredAccounts: CrmAccount[];
|
|
23
27
|
departments$: Observable<string>;
|
|
24
28
|
crmSources$: Observable<string>;
|
|
@@ -31,8 +35,10 @@ export declare class SmartCrmContactDetailsComponent extends AppBaseComponent im
|
|
|
31
35
|
get f(): {
|
|
32
36
|
[key: string]: import("@angular/forms").AbstractControl<any, any>;
|
|
33
37
|
};
|
|
34
|
-
constructor(commonService: CommonService, crmService: CrmService, cdr: ChangeDetectorRef, injector: Injector);
|
|
38
|
+
constructor(commonService: CommonService, crmService: CrmService, cdr: ChangeDetectorRef, geoService: GeoService, injector: Injector);
|
|
35
39
|
ngOnInit(): void;
|
|
40
|
+
handleAddressChange(event: any): void;
|
|
41
|
+
onSearchCountry(event: any): void;
|
|
36
42
|
/** Function to get the list of accounts by subscriptionId */
|
|
37
43
|
private getAccountsBySubscription;
|
|
38
44
|
/** Function to execute on form submission */
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
-
import { AuthService } from '@posiwise/common-services';
|
|
5
|
-
import { Subscription } from '@posiwise/common-utilities';
|
|
4
|
+
import { AuthService, GeoService } from '@posiwise/common-services';
|
|
5
|
+
import { Country, Subscription } from '@posiwise/common-utilities';
|
|
6
6
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
7
7
|
import { CrmAccount } from 'libs/smart-crm/src/lib/shared/interface/crm-account.interface';
|
|
8
8
|
import { CrmContact } from 'libs/smart-crm/src/lib/shared/interface/crm-contact.interface';
|
|
9
9
|
import { SmartCrmAction } from 'libs/smart-crm/src/lib/shared/interface/smart-crm-module.interface';
|
|
10
10
|
import { UploaderOptions, UploadFile, UploadInput, UploadOutput } from 'ngx-uploader';
|
|
11
|
+
import { Observable } from 'rxjs';
|
|
11
12
|
import { NgbCalendar, NgbDateStruct, NgbModal } from '@ng-bootstrap/ng-bootstrap';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class SmartCrmContactInfoComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
@@ -15,7 +16,9 @@ export declare class SmartCrmContactInfoComponent extends AppBaseComponent imple
|
|
|
15
16
|
private readonly calendar;
|
|
16
17
|
private readonly modalService;
|
|
17
18
|
private readonly authService;
|
|
19
|
+
private readonly geoService;
|
|
18
20
|
private readonly document;
|
|
21
|
+
countries$: Observable<Country[]>;
|
|
19
22
|
actionControls: UntypedFormGroup;
|
|
20
23
|
aboutControls: UntypedFormGroup;
|
|
21
24
|
contactId: number;
|
|
@@ -77,8 +80,9 @@ export declare class SmartCrmContactInfoComponent extends AppBaseComponent imple
|
|
|
77
80
|
stageDetails: string;
|
|
78
81
|
widgetsDetails: string;
|
|
79
82
|
};
|
|
80
|
-
constructor(injector: Injector, crmService: CrmService, calendar: NgbCalendar, modalService: NgbModal, authService: AuthService, document: Document);
|
|
83
|
+
constructor(injector: Injector, crmService: CrmService, calendar: NgbCalendar, modalService: NgbModal, authService: AuthService, geoService: GeoService, document: Document);
|
|
81
84
|
ngOnInit(): void;
|
|
85
|
+
handleAddressChange(event: any): void;
|
|
82
86
|
getDefaultValues(id: any): void;
|
|
83
87
|
/** Function to get contact versions */
|
|
84
88
|
private getContactVersion;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UntypedFormGroup } from '@angular/forms';
|
|
3
3
|
import { AppBaseComponent } from '@posiwise/app-base-component';
|
|
4
|
+
import { GeoService } from '@posiwise/common-services';
|
|
5
|
+
import { Country } from '@posiwise/common-utilities';
|
|
4
6
|
import { CrmService } from '@posiwise/smart-crm-shared';
|
|
5
7
|
import { Observable } from 'rxjs';
|
|
6
8
|
import { CrmAccount } from '../../../../shared/interface/crm-account.interface';
|
|
@@ -8,6 +10,8 @@ import { CrmLead } from '../../../../shared/interface/crm-lead.interface';
|
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class SmartCrmLeadsDetailsComponent extends AppBaseComponent implements OnInit, OnDestroy {
|
|
10
12
|
private readonly crmService;
|
|
13
|
+
private readonly geoService;
|
|
14
|
+
private countries$;
|
|
11
15
|
form: UntypedFormGroup;
|
|
12
16
|
id: number;
|
|
13
17
|
subscriptionId: number;
|
|
@@ -15,15 +19,19 @@ export declare class SmartCrmLeadsDetailsComponent extends AppBaseComponent impl
|
|
|
15
19
|
source$: Observable<string>;
|
|
16
20
|
accounts: CrmAccount[];
|
|
17
21
|
filteredAccounts: string[];
|
|
22
|
+
filteredCountries: Country[];
|
|
23
|
+
countryNames: any[];
|
|
18
24
|
potentials: any[];
|
|
19
25
|
labels: any[];
|
|
20
26
|
submitted: boolean;
|
|
21
27
|
buttonBusy: boolean;
|
|
22
28
|
isLoading: boolean;
|
|
23
|
-
constructor(injector: Injector, crmService: CrmService);
|
|
29
|
+
constructor(injector: Injector, crmService: CrmService, geoService: GeoService);
|
|
24
30
|
ngOnInit(): void;
|
|
31
|
+
onSearchCountry(event: any): void;
|
|
25
32
|
/** Function to get the specific contact details on edit form */
|
|
26
33
|
private getLeadDetails;
|
|
34
|
+
handleAddressChange(event: any): void;
|
|
27
35
|
private markAllAsTouched;
|
|
28
36
|
/** Function to execute on form submission */
|
|
29
37
|
onSave(): void;
|