@adlfe/campaign-management-library 2.11.11 → 2.13.1

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 (35) hide show
  1. package/adlfe-campaign-management-library.d.ts +11 -14
  2. package/adlfe-campaign-management-library.metadata.json +1 -1
  3. package/bundles/adlfe-campaign-management-library.umd.js +422 -265
  4. package/bundles/adlfe-campaign-management-library.umd.js.map +1 -1
  5. package/bundles/adlfe-campaign-management-library.umd.min.js +2 -2
  6. package/bundles/adlfe-campaign-management-library.umd.min.js.map +1 -1
  7. package/esm2015/adlfe-campaign-management-library.js +12 -15
  8. package/esm2015/environments/environment.js +3 -3
  9. package/esm2015/lib/campaign-management/models/general-information-wa-req.model.js +37 -9
  10. package/esm2015/lib/campaign-management/models/template-wa.model.js +1 -1
  11. package/esm2015/lib/campaign-management/modules/campaign-index/component/filter-in-list-of-campaign/filter-in-list-of-campaign.component.js +1 -1
  12. package/esm2015/lib/campaign-management/modules/new-campaign/components/general-information-wa/general-information-wa.component.js +328 -223
  13. package/esm2015/lib/campaign-management/modules/new-campaign/general-information/general-information.component.js +6 -12
  14. package/esm2015/lib/campaign-management/modules/new-campaign/new-number-bases/new-number-bases.component.js +24 -11
  15. package/esm2015/lib/core/const/validation-message.const.js +2 -1
  16. package/esm2015/public-api.js +6 -1
  17. package/esm5/adlfe-campaign-management-library.js +12 -15
  18. package/esm5/environments/environment.js +3 -3
  19. package/esm5/lib/campaign-management/models/general-information-wa-req.model.js +38 -9
  20. package/esm5/lib/campaign-management/models/template-wa.model.js +1 -1
  21. package/esm5/lib/campaign-management/modules/campaign-index/component/filter-in-list-of-campaign/filter-in-list-of-campaign.component.js +1 -1
  22. package/esm5/lib/campaign-management/modules/new-campaign/components/general-information-wa/general-information-wa.component.js +341 -222
  23. package/esm5/lib/campaign-management/modules/new-campaign/general-information/general-information.component.js +6 -12
  24. package/esm5/lib/campaign-management/modules/new-campaign/new-number-bases/new-number-bases.component.js +24 -11
  25. package/esm5/lib/core/const/validation-message.const.js +2 -1
  26. package/esm5/public-api.js +6 -1
  27. package/fesm2015/adlfe-campaign-management-library.js +394 -253
  28. package/fesm2015/adlfe-campaign-management-library.js.map +1 -1
  29. package/fesm5/adlfe-campaign-management-library.js +407 -252
  30. package/fesm5/adlfe-campaign-management-library.js.map +1 -1
  31. package/lib/campaign-management/models/general-information-wa-req.model.d.ts +5 -0
  32. package/lib/campaign-management/modules/new-campaign/components/general-information-wa/general-information-wa.component.d.ts +10 -3
  33. package/lib/core/const/validation-message.const.d.ts +4 -0
  34. package/package.json +1 -1
  35. package/public-api.d.ts +5 -0
@@ -22,6 +22,7 @@ export declare class GeneralInformationWAReqModel {
22
22
  header: any;
23
23
  data: any[];
24
24
  button: any;
25
+ buttonParams: string[];
25
26
  };
26
27
  list: {
27
28
  button: string;
@@ -39,6 +40,10 @@ export declare class GeneralInformationWAReqModel {
39
40
  id: string;
40
41
  title: string;
41
42
  }[];
43
+ buttonParams: {
44
+ label: string;
45
+ payload: string;
46
+ }[];
42
47
  category: string;
43
48
  isNeedSave: boolean;
44
49
  ttlSeconds: number;
@@ -2,15 +2,15 @@
2
2
  import { MapsAPILoader } from '@agm/core';
3
3
  import { HttpClient } from '@angular/common/http';
4
4
  import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit } from '@angular/core';
5
- import { FormGroup } from '@angular/forms';
5
+ import { AbstractControl, FormArray, FormGroup } from '@angular/forms';
6
6
  import { ToastrService } from 'ngx-toastr';
7
7
  import { BaseOptionModel } from '../../../../../core/models';
8
8
  import { ApiAdapterServiceService } from '../../../../../core/services';
9
9
  import { TemplateWAModel, WhatsAppAccountDto } from '../../../../models';
10
10
  interface IMaps {
11
11
  zoom: number;
12
- latitude: number;
13
- longitude: number;
12
+ latitude: number | null;
13
+ longitude: number | null;
14
14
  isDraggable: boolean;
15
15
  isDoubleClickZoom: boolean;
16
16
  }
@@ -56,6 +56,7 @@ export declare class GeneralInformationWAComponent implements OnInit, OnDestroy
56
56
  private initEdit;
57
57
  private initValidation;
58
58
  formReset(_isMediaType?: boolean): void;
59
+ private getControl;
59
60
  private initParam;
60
61
  private getAccountOptionService;
61
62
  getTemplateOptionService(event?: string, filter?: string, isInfinite?: boolean): void;
@@ -78,6 +79,8 @@ export declare class GeneralInformationWAComponent implements OnInit, OnDestroy
78
79
  templateSelectedDisplay(attribute1: TemplateWAModel, attribute2: TemplateWAModel): string;
79
80
  onFileSelected(event: Event): void;
80
81
  private uploadMediaService;
82
+ get buttonParamsControls(): AbstractControl[];
83
+ get isUsingExcelBulk(): boolean;
81
84
  updateTemplate(template: TemplateWAModel): void;
82
85
  updateMediaType(_mediaType: string): void;
83
86
  private fileTypeChange;
@@ -89,6 +92,10 @@ export declare class GeneralInformationWAComponent implements OnInit, OnDestroy
89
92
  updateDownloadCSV(isChecked: boolean): void;
90
93
  handleChangeTemplate(useExisting: boolean): void;
91
94
  handleChangeFrom(value: any): void;
95
+ get variables(): FormArray;
96
+ addVariable(): void;
97
+ removeVariable(index: number): void;
98
+ updateVariableDownloadXLS(isChecked: boolean): void;
92
99
  ngOnDestroy(): void;
93
100
  }
94
101
  export {};
@@ -49,6 +49,10 @@ export declare const GeneralInformationWAMessageValidationConst: {
49
49
  type: string;
50
50
  message: string;
51
51
  }[];
52
+ paramName: {
53
+ type: string;
54
+ message: string;
55
+ }[];
52
56
  };
53
57
  export declare const GeneralInformationEmailMessageValidationConst: {
54
58
  channel: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adlfe/campaign-management-library",
3
- "version": "2.11.11",
3
+ "version": "2.13.01",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^9.0.7",
6
6
  "@angular/core": "^9.0.7",
package/public-api.d.ts CHANGED
@@ -8,3 +8,8 @@ export * from './lib/global/confirmation/confirmation';
8
8
  export * from './lib/global/confirmation/confirmation.module';
9
9
  export * from './lib/global/confirmation/confirmation/confirmation.component';
10
10
  export * from './lib/global/search/search.module';
11
+ export * from './lib/campaign-management/modules/new-campaign/summary/summary.component';
12
+ export * from './lib/campaign-management/modules/campaign-index/campaign-index.component';
13
+ export * from './lib/core/directives/mat-select-infinite-scroll';
14
+ export * from './lib/campaign-management/modules/dashboard/dashboard.component';
15
+ export * from './lib/global/search/search/search.component';