ng-ipa-library 1.4.6 → 1.4.7
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/ipa-form/ipa-form.service.mjs +2 -2
- package/esm2020/lib/share-button/share-button.component.mjs +12 -10
- package/fesm2015/ng-ipa-library.mjs +12 -10
- package/fesm2015/ng-ipa-library.mjs.map +1 -1
- package/fesm2020/ng-ipa-library.mjs +12 -10
- package/fesm2020/ng-ipa-library.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -108,7 +108,7 @@ class IPAFormService {
|
|
|
108
108
|
static validHijriDate(control) {
|
|
109
109
|
const date = control.value;
|
|
110
110
|
const isValid = IPAFormService.checkHijriDateValid(date);
|
|
111
|
-
return isValid
|
|
111
|
+
return isValid || !date
|
|
112
112
|
? null
|
|
113
113
|
: {
|
|
114
114
|
ngbDate: {
|
|
@@ -1140,20 +1140,22 @@ class ShareButtonComponent {
|
|
|
1140
1140
|
}
|
|
1141
1141
|
ngAfterViewInit() {
|
|
1142
1142
|
const elements = document.getElementsByClassName('sb-show-icon');
|
|
1143
|
-
elements[0].
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1143
|
+
if (!elements[0].getAttribute('id')) {
|
|
1144
|
+
elements[0].setAttribute('type', 'button');
|
|
1145
|
+
elements[0].setAttribute('id', 'IPAShareBtn');
|
|
1146
|
+
const label = document.createElement('label');
|
|
1147
|
+
label.innerHTML = this.btnLabel;
|
|
1148
|
+
label.classList.add('sm-share-title');
|
|
1149
|
+
label.classList.add('me-1');
|
|
1150
|
+
elements[0].before(label);
|
|
1151
|
+
}
|
|
1150
1152
|
}
|
|
1151
1153
|
}
|
|
1152
1154
|
ShareButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ShareButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1153
|
-
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','email','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"] }] });
|
|
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','email','copy']\">\r\n</share-popup-button>\r\n<div class=\"test\">123</div>", 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"] }] });
|
|
1154
1156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.2", ngImport: i0, type: ShareButtonComponent, decorators: [{
|
|
1155
1157
|
type: Component,
|
|
1156
|
-
args: [{ selector: 'ipa-share-button', template: "<share-popup-button [title]=\"title\" [description]=\"description\" [icon]=\"'share-alt'\"\r\n [include]=\"['facebook','twitter','linkedin','telegram','whatsapp','email','copy']\">\r\n</share-popup-button>", styles: [""] }]
|
|
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','email','copy']\">\r\n</share-popup-button>\r\n<div class=\"test\">123</div>", styles: [""] }]
|
|
1157
1159
|
}], ctorParameters: function () { return []; }, propDecorators: { title: [{
|
|
1158
1160
|
type: Input
|
|
1159
1161
|
}], description: [{
|