@churchillliving/se-ui-toolkit 6.54.384 → 6.54.386
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/components/base/email/email-filter/email-filter.component.mjs +2 -2
- package/esm2022/lib/components/base/email/email-generate-btn/email-generate-btn.component.mjs +3 -3
- package/fesm2022/churchillliving-se-ui-toolkit.mjs +117 -118
- package/fesm2022/churchillliving-se-ui-toolkit.mjs.map +1 -1
- package/lib/components/base/email/email-filter/email-filter.component.d.ts +1 -1
- package/lib/components/base/email/email-generate-btn/email-generate-btn.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { Component, Optional } from '@angular/core';
|
|
|
2
2
|
import { EFormControl } from '../../../../models/form.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "../../../../services/grid.service";
|
|
5
|
-
import * as i2 from "
|
|
5
|
+
import * as i2 from "../../../../services/email.service";
|
|
6
6
|
import * as i3 from "primeng/dynamicdialog";
|
|
7
7
|
import * as i4 from "@angular/common";
|
|
8
8
|
import * as i5 from "../../form-util/form-util.component";
|
|
@@ -48,4 +48,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
48
48
|
}], ctorParameters: function () { return [{ type: i1.GridService }, { type: i2.EmailService }, { type: i3.DynamicDialogConfig, decorators: [{
|
|
49
49
|
type: Optional
|
|
50
50
|
}] }]; } });
|
|
51
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
51
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1haWwtZmlsdGVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NlLXVpLXRvb2xraXQvc3JjL2xpYi9jb21wb25lbnRzL2Jhc2U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LmR5bmFtaWNGb3JtLmZvcm1TZWN0aW9uc1swXT8uZmllbGRzXG4gICAgICAgICAgICAgICAgICA/LmZpbHRlcihmaWVsZCA9PiBmaWVsZC5jb250cm9sICE9PSBcImFkZF9idXR0b25cIilcbiAgICAgICAgICAgICAgICAgID8ucmVkdWNlKChhY2MsIGZpZWxkKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgIGFjY1tmaWVsZC5maWVsZF0gPSBmaWVsZC52YWx1ZTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIGFjYztcbiAgICAgICAgICAgICAgICAgIH0sIHt9KSk7XG4gICAgICAgICAgICAgICAgdGhpcy5lbWFpbFNlcnZpY2UuZ2VuZXJhdGVTZW5kRW1haWxFdmVudCh0aGlzLmNvbmZpZy5kYXRhLnVuaXF1ZUtleSwgZm9ybWF0dGVkT2JqZWN0KTtcbiAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIH1cblxuICAgICAgICAgIF1cbiAgICAgICAgfVxuICAgICAgXVxuXG4gICAgfVxuICB9XG59XG4iLCI8c2UtZm9ybS11dGlsICpuZ0lmPVwiZHluYW1pY0Zvcm1cIiBbZm9ybV09XCJkeW5hbWljRm9ybVwiIFtoaWRlU2F2ZUJ1dHRvbl09XCJ0cnVlXCIgW2hpZGVDYW5jZWxCdXR0b25dPVwidHJ1ZVwiPlxuPC9zZS1mb3JtLXV0aWw+Il19
|
package/esm2022/lib/components/base/email/email-generate-btn/email-generate-btn.component.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
import * as i1 from "primeng/dynamicdialog";
|
|
5
5
|
import * as i2 from "../../../../services/request.service";
|
|
6
6
|
import * as i3 from "../../../../services/grid.service";
|
|
7
|
-
import * as i4 from "
|
|
7
|
+
import * as i4 from "../../../../services/email.service";
|
|
8
8
|
import * as i5 from "../../../../services/alert.service";
|
|
9
9
|
import * as i6 from "primeng/button";
|
|
10
10
|
export class EmailGenerateBtnComponent {
|
|
@@ -20,7 +20,7 @@ export class EmailGenerateBtnComponent {
|
|
|
20
20
|
}
|
|
21
21
|
onClickGenerateEmailBtn() {
|
|
22
22
|
const newData = { ...autoSetLookupData(this.column.data.data, this.selectedRow), selectedRow: this.selectedRow, label: this.label };
|
|
23
|
-
this.emailService.sendEmail(newData.uniqueKey,
|
|
23
|
+
this.emailService.sendEmail(newData.uniqueKey, this.selectedRow, this.column.showDialog);
|
|
24
24
|
}
|
|
25
25
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailGenerateBtnComponent, deps: [{ token: i1.DialogService }, { token: i2.RequestService }, { token: i3.GridService }, { token: i4.EmailService }, { token: i5.AlertService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
26
|
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: EmailGenerateBtnComponent, selector: "se-email-generate-btn", inputs: { label: "label", icon: "icon", showDialog: "showDialog", column: "column", selectedRow: "selectedRow" }, ngImport: i0, template: "<button pButton type=\"button\" [icon]=\"icon\" [label]=\"label\" class=\"grid-component-grid-add-btn\"\n (click)=\"onClickGenerateEmailBtn()\"></button>", styles: [""], dependencies: [{ kind: "directive", type: i6.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] }); }
|
|
@@ -39,4 +39,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
39
39
|
}], selectedRow: [{
|
|
40
40
|
type: Input
|
|
41
41
|
}] } });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW1haWwtZ2VuZXJhdGUtYnRuLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjp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Jbml0KCk6IHZvaWQge1xuICB9XG5cbiAgb25DbGlja0dlbmVyYXRlRW1haWxCdG4oKSB7XG4gICAgY29uc3QgbmV3RGF0YTogYW55ID0geyAuLi5hdXRvU2V0TG9va3VwRGF0YSh0aGlzLmNvbHVtbi5kYXRhLmRhdGEsIHRoaXMuc2VsZWN0ZWRSb3cpLCBzZWxlY3RlZFJvdzogdGhpcy5zZWxlY3RlZFJvdywgbGFiZWw6IHRoaXMubGFiZWwgfTtcbiAgICB0aGlzLmVtYWlsU2VydmljZS5zZW5kRW1haWwobmV3RGF0YS51bmlxdWVLZXksIHRoaXMuc2VsZWN0ZWRSb3csIHRoaXMuY29sdW1uLnNob3dEaWFsb2cpO1xuICB9XG59XG4iLCI8YnV0dG9uIHBCdXR0b24gdHlwZT1cImJ1dHRvblwiIFtpY29uXT1cImljb25cIiBbbGFiZWxdPVwibGFiZWxcIiBjbGFzcz1cImdyaWQtY29tcG9uZW50LWdyaWQtYWRkLWJ0blwiXG4gICAgKGNsaWNrKT1cIm9uQ2xpY2tHZW5lcmF0ZUVtYWlsQnRuKClcIj48L2J1dHRvbj4iXX0=
|
|
@@ -63,7 +63,6 @@ import * as i3$4 from 'primeng/splitter';
|
|
|
63
63
|
import { SplitterModule } from 'primeng/splitter';
|
|
64
64
|
import * as i2$2 from 'primeng/editor';
|
|
65
65
|
import { EditorModule } from 'primeng/editor';
|
|
66
|
-
import * as i4$2 from 'projects/se-ui-toolkit/src/lib/services/email.service';
|
|
67
66
|
import * as i3$5 from 'primeng/galleria';
|
|
68
67
|
import { GalleriaModule } from 'primeng/galleria';
|
|
69
68
|
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
@@ -8859,6 +8858,120 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
8859
8858
|
type: Input
|
|
8860
8859
|
}] } });
|
|
8861
8860
|
|
|
8861
|
+
class EmailFilterComponent {
|
|
8862
|
+
constructor(gridService, emailService, config) {
|
|
8863
|
+
this.gridService = gridService;
|
|
8864
|
+
this.emailService = emailService;
|
|
8865
|
+
this.config = config;
|
|
8866
|
+
}
|
|
8867
|
+
ngOnInit() {
|
|
8868
|
+
this.initializeForm();
|
|
8869
|
+
}
|
|
8870
|
+
initializeForm() {
|
|
8871
|
+
this.dynamicForm = {
|
|
8872
|
+
formSections: [
|
|
8873
|
+
{
|
|
8874
|
+
fields: [
|
|
8875
|
+
...this.config.data.formFields,
|
|
8876
|
+
{
|
|
8877
|
+
label: 'Run',
|
|
8878
|
+
control: EFormControl.ADD_BUTTON,
|
|
8879
|
+
onClick: () => {
|
|
8880
|
+
const formattedObject = JSON.stringify(this.dynamicForm.formSections[0]?.fields
|
|
8881
|
+
?.filter(field => field.control !== "add_button")
|
|
8882
|
+
?.reduce((acc, field) => {
|
|
8883
|
+
acc[field.field] = field.value;
|
|
8884
|
+
return acc;
|
|
8885
|
+
}, {}));
|
|
8886
|
+
this.emailService.generateSendEmailEvent(this.config.data.uniqueKey, formattedObject);
|
|
8887
|
+
},
|
|
8888
|
+
}
|
|
8889
|
+
]
|
|
8890
|
+
}
|
|
8891
|
+
]
|
|
8892
|
+
};
|
|
8893
|
+
}
|
|
8894
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailFilterComponent, deps: [{ token: GridService }, { token: EmailService }, { token: i1$1.DynamicDialogConfig, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8895
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: EmailFilterComponent, selector: "se-email-filter", ngImport: i0, template: "<se-form-util *ngIf=\"dynamicForm\" [form]=\"dynamicForm\" [hideSaveButton]=\"true\" [hideCancelButton]=\"true\">\n</se-form-util>", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormUtilComponent, selector: "se-form-util", inputs: ["stickyActions", "form", "hideSaveButton", "hideCancelButton", "formButtons", "loading", "activeTestMode"], outputs: ["saveForm", "cancelForm", "dropDownChangeEvent", "sectionClickedEvent"] }] }); }
|
|
8896
|
+
}
|
|
8897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailFilterComponent, decorators: [{
|
|
8898
|
+
type: Component,
|
|
8899
|
+
args: [{ selector: 'se-email-filter', template: "<se-form-util *ngIf=\"dynamicForm\" [form]=\"dynamicForm\" [hideSaveButton]=\"true\" [hideCancelButton]=\"true\">\n</se-form-util>" }]
|
|
8900
|
+
}], ctorParameters: function () { return [{ type: GridService }, { type: EmailService }, { type: i1$1.DynamicDialogConfig, decorators: [{
|
|
8901
|
+
type: Optional
|
|
8902
|
+
}] }]; } });
|
|
8903
|
+
|
|
8904
|
+
class EmailService {
|
|
8905
|
+
constructor(requestService, gridService, alertService, dialogService) {
|
|
8906
|
+
this.requestService = requestService;
|
|
8907
|
+
this.gridService = gridService;
|
|
8908
|
+
this.alertService = alertService;
|
|
8909
|
+
this.dialogService = dialogService;
|
|
8910
|
+
}
|
|
8911
|
+
sendEmail(uniqueKey, rowParams, showDialog = false) {
|
|
8912
|
+
if (Object.keys(rowParams)?.length > 0) {
|
|
8913
|
+
rowParams = this.gridService.setDataFields([rowParams])[0];
|
|
8914
|
+
this.requestService.getOne('/EmailConfig/Email', uniqueKey).subscribe((response) => {
|
|
8915
|
+
const emailInfo = JSON.parse(response?.emailInfo);
|
|
8916
|
+
const emailBody = emailInfo?.body;
|
|
8917
|
+
const matchedParams = emailBody?.match(/{(.*?)}/g);
|
|
8918
|
+
if (matchedParams && showDialog) {
|
|
8919
|
+
const parameterList = matchedParams.map(params => params.replace(/[{}]/g, ''));
|
|
8920
|
+
const formFields = parameterList?.map(field => ({ field: field, label: field, control: EFormControl.INPUT }));
|
|
8921
|
+
const ref = this.dialogService.open(EmailFilterComponent, {
|
|
8922
|
+
header: "Email Parameters",
|
|
8923
|
+
width: '70%',
|
|
8924
|
+
height: '50%',
|
|
8925
|
+
data: {
|
|
8926
|
+
formFields: formFields,
|
|
8927
|
+
uniqueKey: uniqueKey
|
|
8928
|
+
},
|
|
8929
|
+
});
|
|
8930
|
+
const dialogRef = this.dialogService.dialogComponentRefMap.get(ref);
|
|
8931
|
+
const component = dialogRef?.instance;
|
|
8932
|
+
const ariaLabelledBy = component.getAriaLabelledBy();
|
|
8933
|
+
component.getAriaLabelledBy = () => ariaLabelledBy;
|
|
8934
|
+
}
|
|
8935
|
+
else {
|
|
8936
|
+
const matchedData = matchedParams.map(params => params.replace(/[{}]/g, ''));
|
|
8937
|
+
const params = matchedData.reduce((acc, field) => {
|
|
8938
|
+
acc[field] = rowParams[field?.toLowerCase()];
|
|
8939
|
+
return acc;
|
|
8940
|
+
}, {});
|
|
8941
|
+
const formattedObject = JSON.stringify(params);
|
|
8942
|
+
this.generateSendEmailEvent(uniqueKey, formattedObject);
|
|
8943
|
+
}
|
|
8944
|
+
}, (error) => {
|
|
8945
|
+
this.alertService.apiError(error);
|
|
8946
|
+
});
|
|
8947
|
+
}
|
|
8948
|
+
}
|
|
8949
|
+
generateSendEmailEvent(propValue, param) {
|
|
8950
|
+
return new Promise((resolve, reject) => {
|
|
8951
|
+
this.requestService
|
|
8952
|
+
.post(`/EmailConfig/SendEmail`, {
|
|
8953
|
+
bodyParams: param ? param : '',
|
|
8954
|
+
uniqueKey: propValue
|
|
8955
|
+
})
|
|
8956
|
+
.subscribe((data) => {
|
|
8957
|
+
this.alertService.success('Email sent successfully');
|
|
8958
|
+
resolve(data);
|
|
8959
|
+
}, (error) => {
|
|
8960
|
+
reject(error);
|
|
8961
|
+
this.alertService.apiError(error);
|
|
8962
|
+
});
|
|
8963
|
+
});
|
|
8964
|
+
}
|
|
8965
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailService, deps: [{ token: RequestService }, { token: GridService }, { token: AlertService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8966
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailService, providedIn: 'root' }); }
|
|
8967
|
+
}
|
|
8968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailService, decorators: [{
|
|
8969
|
+
type: Injectable,
|
|
8970
|
+
args: [{
|
|
8971
|
+
providedIn: 'root'
|
|
8972
|
+
}]
|
|
8973
|
+
}], ctorParameters: function () { return [{ type: RequestService }, { type: GridService }, { type: AlertService }, { type: i1$1.DialogService }]; } });
|
|
8974
|
+
|
|
8862
8975
|
class EmailGenerateBtnComponent {
|
|
8863
8976
|
constructor(dialogService, requestService, gridService, emailService, alertService) {
|
|
8864
8977
|
this.dialogService = dialogService;
|
|
@@ -8872,15 +8985,15 @@ class EmailGenerateBtnComponent {
|
|
|
8872
8985
|
}
|
|
8873
8986
|
onClickGenerateEmailBtn() {
|
|
8874
8987
|
const newData = { ...autoSetLookupData(this.column.data.data, this.selectedRow), selectedRow: this.selectedRow, label: this.label };
|
|
8875
|
-
this.emailService.sendEmail(newData.uniqueKey,
|
|
8988
|
+
this.emailService.sendEmail(newData.uniqueKey, this.selectedRow, this.column.showDialog);
|
|
8876
8989
|
}
|
|
8877
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailGenerateBtnComponent, deps: [{ token: i1$1.DialogService }, { token: RequestService }, { token: GridService }, { token:
|
|
8990
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailGenerateBtnComponent, deps: [{ token: i1$1.DialogService }, { token: RequestService }, { token: GridService }, { token: EmailService }, { token: AlertService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8878
8991
|
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: EmailGenerateBtnComponent, selector: "se-email-generate-btn", inputs: { label: "label", icon: "icon", showDialog: "showDialog", column: "column", selectedRow: "selectedRow" }, ngImport: i0, template: "<button pButton type=\"button\" [icon]=\"icon\" [label]=\"label\" class=\"grid-component-grid-add-btn\"\n (click)=\"onClickGenerateEmailBtn()\"></button>", styles: [""], dependencies: [{ kind: "directive", type: i3$1.ButtonDirective, selector: "[pButton]", inputs: ["iconPos", "loadingIcon", "label", "icon", "loading"] }] }); }
|
|
8879
8992
|
}
|
|
8880
8993
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailGenerateBtnComponent, decorators: [{
|
|
8881
8994
|
type: Component,
|
|
8882
8995
|
args: [{ selector: 'se-email-generate-btn', template: "<button pButton type=\"button\" [icon]=\"icon\" [label]=\"label\" class=\"grid-component-grid-add-btn\"\n (click)=\"onClickGenerateEmailBtn()\"></button>" }]
|
|
8883
|
-
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: RequestService }, { type: GridService }, { type:
|
|
8996
|
+
}], ctorParameters: function () { return [{ type: i1$1.DialogService }, { type: RequestService }, { type: GridService }, { type: EmailService }, { type: AlertService }]; }, propDecorators: { label: [{
|
|
8884
8997
|
type: Input
|
|
8885
8998
|
}], icon: [{
|
|
8886
8999
|
type: Input
|
|
@@ -13673,49 +13786,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
13673
13786
|
type: Output
|
|
13674
13787
|
}] } });
|
|
13675
13788
|
|
|
13676
|
-
class EmailFilterComponent {
|
|
13677
|
-
constructor(gridService, emailService, config) {
|
|
13678
|
-
this.gridService = gridService;
|
|
13679
|
-
this.emailService = emailService;
|
|
13680
|
-
this.config = config;
|
|
13681
|
-
}
|
|
13682
|
-
ngOnInit() {
|
|
13683
|
-
this.initializeForm();
|
|
13684
|
-
}
|
|
13685
|
-
initializeForm() {
|
|
13686
|
-
this.dynamicForm = {
|
|
13687
|
-
formSections: [
|
|
13688
|
-
{
|
|
13689
|
-
fields: [
|
|
13690
|
-
...this.config.data.formFields,
|
|
13691
|
-
{
|
|
13692
|
-
label: 'Run',
|
|
13693
|
-
control: EFormControl.ADD_BUTTON,
|
|
13694
|
-
onClick: () => {
|
|
13695
|
-
const formattedObject = JSON.stringify(this.dynamicForm.formSections[0]?.fields
|
|
13696
|
-
?.filter(field => field.control !== "add_button")
|
|
13697
|
-
?.reduce((acc, field) => {
|
|
13698
|
-
acc[field.field] = field.value;
|
|
13699
|
-
return acc;
|
|
13700
|
-
}, {}));
|
|
13701
|
-
this.emailService.generateSendEmailEvent(this.config.data.uniqueKey, formattedObject);
|
|
13702
|
-
},
|
|
13703
|
-
}
|
|
13704
|
-
]
|
|
13705
|
-
}
|
|
13706
|
-
]
|
|
13707
|
-
};
|
|
13708
|
-
}
|
|
13709
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailFilterComponent, deps: [{ token: GridService }, { token: i4$2.EmailService }, { token: i1$1.DynamicDialogConfig, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13710
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.1", type: EmailFilterComponent, selector: "se-email-filter", ngImport: i0, template: "<se-form-util *ngIf=\"dynamicForm\" [form]=\"dynamicForm\" [hideSaveButton]=\"true\" [hideCancelButton]=\"true\">\n</se-form-util>", styles: [""], dependencies: [{ kind: "directive", type: i1$3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: FormUtilComponent, selector: "se-form-util", inputs: ["stickyActions", "form", "hideSaveButton", "hideCancelButton", "formButtons", "loading", "activeTestMode"], outputs: ["saveForm", "cancelForm", "dropDownChangeEvent", "sectionClickedEvent"] }] }); }
|
|
13711
|
-
}
|
|
13712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailFilterComponent, decorators: [{
|
|
13713
|
-
type: Component,
|
|
13714
|
-
args: [{ selector: 'se-email-filter', template: "<se-form-util *ngIf=\"dynamicForm\" [form]=\"dynamicForm\" [hideSaveButton]=\"true\" [hideCancelButton]=\"true\">\n</se-form-util>" }]
|
|
13715
|
-
}], ctorParameters: function () { return [{ type: GridService }, { type: i4$2.EmailService }, { type: i1$1.DynamicDialogConfig, decorators: [{
|
|
13716
|
-
type: Optional
|
|
13717
|
-
}] }]; } });
|
|
13718
|
-
|
|
13719
13789
|
const toasterModuleforRoot = ToastrModule.forRoot();
|
|
13720
13790
|
class SEToolkitModule {
|
|
13721
13791
|
static forRoot(environment) {
|
|
@@ -14236,77 +14306,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImpor
|
|
|
14236
14306
|
args: ['env']
|
|
14237
14307
|
}] }]; } });
|
|
14238
14308
|
|
|
14239
|
-
class EmailService {
|
|
14240
|
-
constructor(requestService, gridService, alertService, dialogService) {
|
|
14241
|
-
this.requestService = requestService;
|
|
14242
|
-
this.gridService = gridService;
|
|
14243
|
-
this.alertService = alertService;
|
|
14244
|
-
this.dialogService = dialogService;
|
|
14245
|
-
}
|
|
14246
|
-
sendEmail(uniqueKey, rowParams, showDialog = false) {
|
|
14247
|
-
if (Object.keys(rowParams)?.length > 0) {
|
|
14248
|
-
rowParams = this.gridService.setDataFields([rowParams])[0];
|
|
14249
|
-
this.requestService.getOne('/EmailConfig/Email', uniqueKey).subscribe((response) => {
|
|
14250
|
-
const emailInfo = JSON.parse(response?.emailInfo);
|
|
14251
|
-
const emailBody = emailInfo?.body;
|
|
14252
|
-
const matchedParams = emailBody?.match(/{(.*?)}/g);
|
|
14253
|
-
if (matchedParams && showDialog) {
|
|
14254
|
-
const parameterList = matchedParams.map(params => params.replace(/[{}]/g, ''));
|
|
14255
|
-
const formFields = parameterList?.map(field => ({ field: field, label: field, control: EFormControl.INPUT }));
|
|
14256
|
-
const ref = this.dialogService.open(EmailFilterComponent, {
|
|
14257
|
-
header: "Email Parameters",
|
|
14258
|
-
width: '70%',
|
|
14259
|
-
height: '50%',
|
|
14260
|
-
data: {
|
|
14261
|
-
formFields: formFields,
|
|
14262
|
-
uniqueKey: uniqueKey
|
|
14263
|
-
},
|
|
14264
|
-
});
|
|
14265
|
-
const dialogRef = this.dialogService.dialogComponentRefMap.get(ref);
|
|
14266
|
-
const component = dialogRef?.instance;
|
|
14267
|
-
const ariaLabelledBy = component.getAriaLabelledBy();
|
|
14268
|
-
component.getAriaLabelledBy = () => ariaLabelledBy;
|
|
14269
|
-
}
|
|
14270
|
-
else {
|
|
14271
|
-
const matchedData = matchedParams.map(params => params.replace(/[{}]/g, ''));
|
|
14272
|
-
const params = matchedData.reduce((acc, field) => {
|
|
14273
|
-
acc[field] = rowParams[field?.toLowerCase()];
|
|
14274
|
-
return acc;
|
|
14275
|
-
}, {});
|
|
14276
|
-
const formattedObject = JSON.stringify(params);
|
|
14277
|
-
this.generateSendEmailEvent(uniqueKey, formattedObject);
|
|
14278
|
-
}
|
|
14279
|
-
}, (error) => {
|
|
14280
|
-
this.alertService.apiError(error);
|
|
14281
|
-
});
|
|
14282
|
-
}
|
|
14283
|
-
}
|
|
14284
|
-
generateSendEmailEvent(propValue, param) {
|
|
14285
|
-
return new Promise((resolve, reject) => {
|
|
14286
|
-
this.requestService
|
|
14287
|
-
.post(`/EmailConfig/SendEmail`, {
|
|
14288
|
-
bodyParams: param ? param : '',
|
|
14289
|
-
uniqueKey: propValue
|
|
14290
|
-
})
|
|
14291
|
-
.subscribe((data) => {
|
|
14292
|
-
this.alertService.success('Email sent successfully');
|
|
14293
|
-
resolve(data);
|
|
14294
|
-
}, (error) => {
|
|
14295
|
-
reject(error);
|
|
14296
|
-
this.alertService.apiError(error);
|
|
14297
|
-
});
|
|
14298
|
-
});
|
|
14299
|
-
}
|
|
14300
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailService, deps: [{ token: RequestService }, { token: GridService }, { token: AlertService }, { token: i1$1.DialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14301
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailService, providedIn: 'root' }); }
|
|
14302
|
-
}
|
|
14303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.1", ngImport: i0, type: EmailService, decorators: [{
|
|
14304
|
-
type: Injectable,
|
|
14305
|
-
args: [{
|
|
14306
|
-
providedIn: 'root'
|
|
14307
|
-
}]
|
|
14308
|
-
}], ctorParameters: function () { return [{ type: RequestService }, { type: GridService }, { type: AlertService }, { type: i1$1.DialogService }]; } });
|
|
14309
|
-
|
|
14310
14309
|
class ToolkitDialogService {
|
|
14311
14310
|
constructor(dialogService) {
|
|
14312
14311
|
this.dialogService = dialogService;
|