@posiwise/smart-crm 0.0.2 → 0.0.4

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 (60) hide show
  1. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-details/smart-crm-account-details.component.mjs +4 -4
  2. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.mjs +7 -7
  3. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.mjs +7 -7
  4. package/esm2022/lib/private/components/smart-crm-accounts/smart-crm-accounts.component.mjs +5 -5
  5. package/esm2022/lib/private/components/smart-crm-competition/smart-crm-competition/smart-crm-competition.component.mjs +4 -4
  6. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions-details/smart-crm-actions-details.component.mjs +5 -5
  7. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.mjs +14 -5
  8. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-configuration.component.mjs +4 -4
  9. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories-details/smart-crm-opportunity-categories-details.component.mjs +4 -4
  10. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.mjs +14 -5
  11. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source-details/smart-crm-source-details.component.mjs +4 -4
  12. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.mjs +14 -5
  13. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stage-details/smart-crm-stage-details.component.mjs +4 -4
  14. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.mjs +13 -5
  15. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets-details/smart-crm-widgets-details.component.mjs +4 -4
  16. package/esm2022/lib/private/components/smart-crm-configuration/smart-crm-widgets/smart-crm-widgets.component.mjs +5 -5
  17. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-details/smart-crm-contact-details.component.mjs +4 -4
  18. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contact-info/smart-crm-contact-info.component.mjs +5 -5
  19. package/esm2022/lib/private/components/smart-crm-contacts/smart-crm-contacts.component.mjs +5 -5
  20. package/esm2022/lib/private/components/smart-crm-customer/smart-crm-customer-success/smart-crm-customer-success.component.mjs +4 -4
  21. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-insight.component.mjs +4 -4
  22. package/esm2022/lib/private/components/smart-crm-insight/smart-crm-overview/smart-crm-overview.component.mjs +5 -5
  23. package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads-details/smart-crm-leads-details.component.mjs +5 -5
  24. package/esm2022/lib/private/components/smart-crm-leads/smart-crm-leads.component.mjs +5 -5
  25. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-contacts/smart-crm-marketing-contacts.component.mjs +5 -5
  26. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-details/smart-crm-marketing-details.component.mjs +4 -4
  27. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-list.component.mjs +5 -5
  28. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing-list/smart-crm-marketing-view-details/smart-crm-marketing-view-details.component.mjs +4 -4
  29. package/esm2022/lib/private/components/smart-crm-marketing/smart-crm-marketing.component.mjs +4 -4
  30. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.mjs +32 -16
  31. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.mjs +41 -15
  32. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-info/smart-crm-opportunities-info.component.mjs +5 -5
  33. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.mjs +82 -22
  34. package/esm2022/lib/private/components/smart-crm-opportunities/smart-crm-opportunities.component.mjs +4 -4
  35. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-actions/smart-crm-summary-actions.component.mjs +5 -5
  36. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.mjs +5 -5
  37. package/esm2022/lib/private/components/smart-crm-summary/smart-crm-summary.component.mjs +4 -4
  38. package/esm2022/lib/private/components/smart-crm-tabs/smart-crm-tabs.component.mjs +4 -4
  39. package/esm2022/lib/private/smart-crm-private.module.mjs +5 -5
  40. package/esm2022/lib/private/smart-crm-private.routing.module.mjs +5 -5
  41. package/esm2022/lib/public/components/smart-crm-newsletter-confirmation/smart-crm-newsletter-confirmation.component.mjs +4 -4
  42. package/esm2022/lib/public/components/smart-crm-newsletter-unsubscribe/smart-crm-newsletter-unsubscribe.component.mjs +4 -4
  43. package/esm2022/lib/public/components/smart-crm-signup/smart-crm-signup.component.mjs +4 -4
  44. package/esm2022/lib/public/smart-crm-public.module.mjs +5 -5
  45. package/esm2022/lib/public/smart-crm-public.routing.module.mjs +5 -5
  46. package/esm2022/lib/shared/models/smart-crm.model.mjs +6 -3
  47. package/fesm2022/posiwise-smart-crm.mjs +330 -192
  48. package/fesm2022/posiwise-smart-crm.mjs.map +1 -1
  49. package/lib/private/components/smart-crm-accounts/smart-crm-account-files/smart-crm-account-files.component.d.ts +1 -1
  50. package/lib/private/components/smart-crm-accounts/smart-crm-account-info/smart-crm-account-info.component.d.ts +1 -1
  51. package/lib/private/components/smart-crm-configuration/smart-crm-actions/smart-crm-actions.component.d.ts +1 -0
  52. package/lib/private/components/smart-crm-configuration/smart-crm-opportunity-categories/smart-crm-opportunity-categories.component.d.ts +1 -0
  53. package/lib/private/components/smart-crm-configuration/smart-crm-source/smart-crm-source.component.d.ts +1 -0
  54. package/lib/private/components/smart-crm-configuration/smart-crm-stages/smart-crm-stages.component.d.ts +1 -0
  55. package/lib/private/components/smart-crm-opportunities/smart-crm-board/smart-crm-board.component.d.ts +2 -2
  56. package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-details/smart-crm-opportunities-details.component.d.ts +3 -1
  57. package/lib/private/components/smart-crm-opportunities/smart-crm-opportunities-list/smart-crm-opportunities-list.component.d.ts +11 -1
  58. package/lib/private/components/smart-crm-summary/smart-crm-summary-others/smart-crm-summary-others.component.d.ts +7 -7
  59. package/lib/shared/models/smart-crm.model.d.ts +2 -1
  60. package/package.json +3 -3
@@ -18,7 +18,7 @@ export declare class SmartCrmCompanyFilesComponent extends AppBaseComponent impl
18
18
  isLoaded: boolean;
19
19
  allFiles: any[];
20
20
  searchText: string;
21
- totalRecordsUnFilter: number;
21
+ totalRecordsUnFiltered: number;
22
22
  totalRecords: number;
23
23
  loading: boolean;
24
24
  hasAccess: boolean;
@@ -41,7 +41,7 @@ export declare class SmartCrmCompanyInfoComponent extends AppBaseComponent imple
41
41
  contactId: number;
42
42
  isLoaded: boolean;
43
43
  totalRecords: number;
44
- totalRecordsUnFilter: number;
44
+ totalRecordsUnFiltered: number;
45
45
  loading: boolean;
46
46
  searchText: string;
47
47
  potential: string[];
@@ -45,6 +45,7 @@ export declare class SmartCrmActionsComponent extends AppBaseComponent implement
45
45
  shouldShowTableContent(): boolean;
46
46
  /** Function to get and show all the actions */
47
47
  private getActions;
48
+ buildDefaultActions(): void;
48
49
  /** Function to delete existing setting */
49
50
  onDelete(id: number): void;
50
51
  ngOnDestroy(): void;
@@ -48,6 +48,7 @@ export declare class SmartCrmOpportunityCategoriesComponent extends AppBaseCompo
48
48
  private getAllOpportunityCategories;
49
49
  /** Function to delete categories */
50
50
  onDelete(id: number): void;
51
+ buildCategories(): void;
51
52
  ngOnDestroy(): void;
52
53
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmOpportunityCategoriesComponent, never>;
53
54
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmOpportunityCategoriesComponent, "pw-smart-crm-opportunity-categories", never, {}, {}, never, never, false, never>;
@@ -43,6 +43,7 @@ export declare class SmartCrmCompanySourceComponent extends AppBaseComponent imp
43
43
  onLazyLoad(event: LazyLoadEvent): void;
44
44
  /** Function to all account source */
45
45
  private getAllSource;
46
+ buildAccountSource(): void;
46
47
  /** Function to delete account source */
47
48
  onDelete(id: any): void;
48
49
  ngOnDestroy(): void;
@@ -46,6 +46,7 @@ export declare class SmartCrmStagesComponent extends AppBaseComponent implements
46
46
  /** Function to get all stages */
47
47
  private getAllStages;
48
48
  private sortByPreviousStageId;
49
+ buildDefaultStages(): void;
49
50
  /** Function to delete stage */
50
51
  onDelete(id: number): void;
51
52
  /** Function to get all categories */
@@ -40,7 +40,7 @@ export declare class SmartCrmBoardComponent extends AppBaseComponent implements
40
40
  widgetsDetails: string;
41
41
  };
42
42
  masterStages: CrmStage[];
43
- private defaultSelectedCategory;
43
+ selectedCategoryId: number;
44
44
  constructor(crmService: CrmService, injector: Injector);
45
45
  ngOnInit(): void;
46
46
  /** Function to get all categories */
@@ -58,7 +58,7 @@ export declare class SmartCrmBoardComponent extends AppBaseComponent implements
58
58
  dropItem(event: CdkDragDrop<string[]>): void;
59
59
  getConnectedList(): any[];
60
60
  dropGroup(event: CdkDragDrop<string[]>): void;
61
- toggleColumn(event: any): void;
61
+ toggleColumn(event: any, group: any): void;
62
62
  ngOnDestroy(): void;
63
63
  static ɵfac: i0.ɵɵFactoryDeclaration<SmartCrmBoardComponent, never>;
64
64
  static ɵcmp: i0.ɵɵComponentDeclaration<SmartCrmBoardComponent, "pw-smart-crm-board", never, {}, {}, never, never, false, never>;
@@ -30,6 +30,8 @@ export declare class SmartCrmOpportunitiesDetailsComponent extends AppBaseCompon
30
30
  masterStages: any[];
31
31
  stages: any[];
32
32
  categories: any[];
33
+ accountValueCount: number;
34
+ currentAccountId: any;
33
35
  featureKeys: any[];
34
36
  /** Function to get form controls */
35
37
  get f(): {
@@ -42,7 +44,7 @@ export declare class SmartCrmOpportunitiesDetailsComponent extends AppBaseCompon
42
44
  /** Function to call accounts */
43
45
  private getAllAccounts;
44
46
  /** Function to call contacts */
45
- private getAllContacts;
47
+ private getAccountContacts;
46
48
  /** Function to get opportunities data */
47
49
  private getOpportunityDetails;
48
50
  /** Function to execute on submit opportunities form */
@@ -4,10 +4,12 @@ import { LazyLoadEvent } from 'primeng/api';
4
4
  import { CrmOpportunityResponse } from '../../../../shared/interface/crm-opportunity.interface';
5
5
  import { AppBaseComponent } from '@posiwise/app-base-component';
6
6
  import { Plotly, Subscription, User } from '@posiwise/common-utilities';
7
+ import { ProductService } from '@posiwise/common-services';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent implements OnInit, OnDestroy, AfterViewChecked {
9
10
  private crmService;
10
11
  private cdr;
12
+ private productService;
11
13
  subscription: Subscription;
12
14
  subscriptionId: number;
13
15
  hasAccess: boolean;
@@ -20,6 +22,11 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
20
22
  opportunitiesGeography: Plotly.Figure;
21
23
  user: User;
22
24
  userId: number;
25
+ searchStages: any;
26
+ featureKeysList: any;
27
+ filterByStages: any;
28
+ filterByCategories: any[];
29
+ searchCategories: any;
23
30
  page: number;
24
31
  stages: any[];
25
32
  categories: any[];
@@ -44,12 +51,15 @@ export declare class SmartCrmOpportunitiesListComponent extends AppBaseComponent
44
51
  stageDetails: string;
45
52
  widgetsDetails: string;
46
53
  };
47
- constructor(crmService: CrmService, injector: Injector, cdr: ChangeDetectorRef);
54
+ constructor(crmService: CrmService, injector: Injector, cdr: ChangeDetectorRef, productService: ProductService);
48
55
  ngOnInit(): void;
49
56
  ngAfterViewChecked(): void;
50
57
  onLazyLoad(event: LazyLoadEvent): void;
51
58
  /** Function to get user details */
52
59
  private getUserInfo;
60
+ private getAllStages;
61
+ onSearchOptionChange(event: any, filterBy: string): void;
62
+ clearFilters(): void;
53
63
  private getAllOpportunities;
54
64
  onDelete(id: number): void;
55
65
  /** Function to get available opportunities */
@@ -1,16 +1,16 @@
1
1
  import { Injector, OnDestroy, OnInit } from '@angular/core';
2
2
  import { CrmService } from '@posiwise/smart-crm-shared';
3
3
  import { AppBaseComponent } from '@posiwise/app-base-component';
4
- import { Subscription, User } from '@posiwise/common-utilities';
4
+ import { Subscription, User, activeOpportunities, signedUpLastThirtyDays } from '@posiwise/common-utilities';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SmartCrmSummaryOthersComponent extends AppBaseComponent implements OnInit, OnDestroy {
7
7
  private crmService;
8
- signedUpLastThirtyDays: any;
9
- activeOpportunities: any;
10
- accountAtRisk: any;
11
- ContractRenewal: any;
12
- creditCardExpiring: any;
13
- magicMoment: any;
8
+ signedUpLastThirtyDays: signedUpLastThirtyDays[];
9
+ activeOpportunities: activeOpportunities[];
10
+ accountAtRisk: [];
11
+ ContractRenewal: [];
12
+ creditCardExpiring: [];
13
+ magicMoment: [];
14
14
  user: User;
15
15
  signUpLastThirtyDaysLoaded: boolean;
16
16
  activeOpportunitiesLoaded: boolean;
@@ -3,7 +3,8 @@ export declare class AppSmartCrm {
3
3
  static getContactsForm(): import("@angular/forms").UntypedFormGroup;
4
4
  static getLeadsForm(): import("@angular/forms").UntypedFormGroup;
5
5
  static getMarketingForm(): import("@angular/forms").UntypedFormGroup;
6
- static getOpportunitiesForm(): import("@angular/forms").UntypedFormGroup;
6
+ static getOpportunitiesForm(descriptionRequired?: boolean): import("@angular/forms").UntypedFormGroup;
7
+ static getOpportunitiesInfoForm(): import("@angular/forms").UntypedFormGroup;
7
8
  static getOpportunityCategoriesForm(): import("@angular/forms").UntypedFormGroup;
8
9
  static getSettingsForm(): import("@angular/forms").UntypedFormGroup;
9
10
  static getSourceForm(): import("@angular/forms").UntypedFormGroup;
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@posiwise/smart-crm",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "peerDependencies": {
5
- "@angular/common": "17.3.6",
6
- "@angular/core": "17.3.6"
5
+ "@angular/common": "17.3.11",
6
+ "@angular/core": "17.3.11"
7
7
  },
8
8
  "dependencies": {
9
9
  "tslib": "^2.6.2"