ng-ipa-library 1.4.9 → 1.4.12
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/esm2020/lib/core/services/error.service.mjs +3 -3
- package/esm2020/lib/generate-form/generate-form.component.mjs +11 -1
- package/esm2020/lib/services/common.service.mjs +4 -4
- package/esm2020/lib/share-button/share-button.component.mjs +3 -3
- package/fesm2015/ng-ipa-library.mjs +16 -7
- package/fesm2015/ng-ipa-library.mjs.map +1 -1
- package/fesm2020/ng-ipa-library.mjs +16 -7
- package/fesm2020/ng-ipa-library.mjs.map +1 -1
- package/lib/services/common.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -883,6 +883,15 @@ class GenerateFormComponent {
|
|
|
883
883
|
column.type === 'number'
|
|
884
884
|
? Validators.min(1)
|
|
885
885
|
: Validators.nullValidator,
|
|
886
|
+
column.formControlName === 'email'
|
|
887
|
+
? IPAFormService.email
|
|
888
|
+
: Validators.nullValidator,
|
|
889
|
+
column.formControlName === 'mobileNo'
|
|
890
|
+
? IPAFormService.mobileNo
|
|
891
|
+
: Validators.nullValidator,
|
|
892
|
+
column.formControlName === 'userId'
|
|
893
|
+
? IPAFormService.checkID
|
|
894
|
+
: Validators.nullValidator,
|
|
886
895
|
]));
|
|
887
896
|
}
|
|
888
897
|
});
|
|
@@ -1152,10 +1161,10 @@ class ShareButtonComponent {
|
|
|
1152
1161
|
}
|
|
1153
1162
|
}
|
|
1154
1163
|
ShareButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ShareButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1155
|
-
ShareButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: ShareButtonComponent, selector: "ipa-share-button", inputs: { title: "title", description: "description", btnLabel: "btnLabel" }, ngImport: i0, template: "<share-popup-button [title]=\"title\" [description]=\"description\" [icon]=\"'share-alt'\"\r\n [include]=\"['facebook','twitter','linkedin','telegram','whatsapp','
|
|
1164
|
+
ShareButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.2", type: ShareButtonComponent, selector: "ipa-share-button", inputs: { title: "title", description: "description", btnLabel: "btnLabel" }, ngImport: i0, template: "<share-popup-button [title]=\"title\" [description]=\"description\" [icon]=\"'share-alt'\"\r\n [include]=\"['facebook','twitter','linkedin','telegram','whatsapp','copy']\">\r\n</share-popup-button>", styles: [""], components: [{ type: i1$1.SharePopupComponent, selector: "share-popup-button", inputs: ["theme", "icon", "text", "include", "exclude", "closeIcon", "url", "title", "description", "image", "tags", "autoSetMeta", "show", "showIcon", "showText", "disabled", "hasBackdrop", "backdropClass"], outputs: ["opened", "closed", "popupClosed"] }] });
|
|
1156
1165
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ShareButtonComponent, decorators: [{
|
|
1157
1166
|
type: Component,
|
|
1158
|
-
args: [{ selector: 'ipa-share-button', template: "<share-popup-button [title]=\"title\" [description]=\"description\" [icon]=\"'share-alt'\"\r\n [include]=\"['facebook','twitter','linkedin','telegram','whatsapp','
|
|
1167
|
+
args: [{ selector: 'ipa-share-button', template: "<share-popup-button [title]=\"title\" [description]=\"description\" [icon]=\"'share-alt'\"\r\n [include]=\"['facebook','twitter','linkedin','telegram','whatsapp','copy']\">\r\n</share-popup-button>", styles: [""] }]
|
|
1159
1168
|
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
1160
1169
|
type: Input
|
|
1161
1170
|
}], description: [{
|
|
@@ -1352,9 +1361,9 @@ class CommonService {
|
|
|
1352
1361
|
constructor(toastrService) {
|
|
1353
1362
|
this.toastrService = toastrService;
|
|
1354
1363
|
}
|
|
1355
|
-
copyToClipboard(message) {
|
|
1356
|
-
navigator.clipboard.writeText(
|
|
1357
|
-
this.toastrService.success(
|
|
1364
|
+
copyToClipboard(copyText, message) {
|
|
1365
|
+
navigator.clipboard.writeText(copyText.toString());
|
|
1366
|
+
this.toastrService.success(message, '', {
|
|
1358
1367
|
positionClass: 'toast-bottom-right',
|
|
1359
1368
|
});
|
|
1360
1369
|
}
|
|
@@ -1451,12 +1460,12 @@ class ErrorService {
|
|
|
1451
1460
|
this.addCopyButton(response.message + '\n' + msg);
|
|
1452
1461
|
});
|
|
1453
1462
|
}
|
|
1454
|
-
addCopyButton(
|
|
1463
|
+
addCopyButton(copyText) {
|
|
1455
1464
|
const messageToast = document.getElementsByClassName('toast-message')[0];
|
|
1456
1465
|
const icon = document.createElement('i');
|
|
1457
1466
|
icon.classList.add('ms-2', 'fas', 'fa-copy');
|
|
1458
1467
|
icon.addEventListener('click', () => {
|
|
1459
|
-
this.commonService.copyToClipboard(
|
|
1468
|
+
this.commonService.copyToClipboard(copyText, 'تم نسخ الرسالة إلى الحافظة');
|
|
1460
1469
|
});
|
|
1461
1470
|
messageToast.appendChild(icon);
|
|
1462
1471
|
}
|