ng-ipa-library 1.3.0 → 1.3.3
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/generate-form/generate-form.component.mjs +3 -3
- package/esm2020/lib/ipa-form/dropdown-input/dropdown-input.component.mjs +6 -3
- package/esm2020/lib/ipa-form/recaptcha/recaptcha.component.mjs +1 -1
- package/esm2020/lib/ipa-form/text-input/text-input.component.mjs +8 -4
- package/esm2020/lib/ipa-form/textarea-input/textarea-input.component.mjs +8 -4
- package/fesm2015/ng-ipa-library.mjs +21 -10
- package/fesm2015/ng-ipa-library.mjs.map +1 -1
- package/fesm2020/ng-ipa-library.mjs +21 -10
- package/fesm2020/ng-ipa-library.mjs.map +1 -1
- package/lib/generate-form/generate-form.component.d.ts +1 -1
- package/lib/ipa-form/dropdown-input/dropdown-input.component.d.ts +2 -1
- package/lib/ipa-form/recaptcha/recaptcha.component.d.ts +1 -1
- package/lib/ipa-form/text-input/text-input.component.d.ts +6 -4
- package/lib/ipa-form/textarea-input/textarea-input.component.d.ts +6 -4
- package/package.json +4 -4
|
@@ -10,7 +10,7 @@ export declare class GenerateFormComponent implements OnInit {
|
|
|
10
10
|
isArabicForm: boolean;
|
|
11
11
|
siteKey: string;
|
|
12
12
|
recaptchaSize: 'compact' | 'normal';
|
|
13
|
-
lang:
|
|
13
|
+
lang: 'ar' | 'en';
|
|
14
14
|
recaptchaType: 'image' | 'audio';
|
|
15
15
|
theme: 'light' | 'dark';
|
|
16
16
|
useGlobalDomain: boolean;
|
|
@@ -17,6 +17,7 @@ export declare class DropdownInputComponent implements OnInit {
|
|
|
17
17
|
classes: string;
|
|
18
18
|
containerClasses: string;
|
|
19
19
|
isArabicForm: boolean;
|
|
20
|
+
fromGenerateForm: boolean;
|
|
20
21
|
formControl: FormControl;
|
|
21
22
|
errorMsg: string | null;
|
|
22
23
|
constructor(validationService: IPAFormService, controlDir: NgControl);
|
|
@@ -28,5 +29,5 @@ export declare class DropdownInputComponent implements OnInit {
|
|
|
28
29
|
registerOnTouched(fn: any): void;
|
|
29
30
|
get errorMessage(): string | null;
|
|
30
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownInputComponent, [null, { self: true; }]>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownInputComponent, "ipa-dropdown-input", never, { "id": "id"; "label": "label"; "items": "items"; "textField": "textField"; "valueField": "valueField"; "required": "required"; "searchable": "searchable"; "notFoundText": "notFoundText"; "classes": "classes"; "containerClasses": "containerClasses"; "isArabicForm": "isArabicForm"; }, {}, never, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownInputComponent, "ipa-dropdown-input", never, { "id": "id"; "label": "label"; "items": "items"; "textField": "textField"; "valueField": "valueField"; "required": "required"; "searchable": "searchable"; "notFoundText": "notFoundText"; "classes": "classes"; "containerClasses": "containerClasses"; "isArabicForm": "isArabicForm"; "fromGenerateForm": "fromGenerateForm"; }, {}, never, never>;
|
|
32
33
|
}
|
|
@@ -5,7 +5,7 @@ export declare class RecaptchaComponent implements OnInit {
|
|
|
5
5
|
controlDir: NgControl;
|
|
6
6
|
siteKey: string;
|
|
7
7
|
recaptchaSize: 'compact' | 'normal';
|
|
8
|
-
lang:
|
|
8
|
+
lang: 'ar' | 'en';
|
|
9
9
|
recaptchaType: 'image' | 'audio';
|
|
10
10
|
theme: 'light' | 'dark';
|
|
11
11
|
useGlobalDomain: boolean;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl, NgControl } from '@angular/forms';
|
|
3
3
|
import { IPAFormService } from '../ipa-form.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TextInputComponent implements OnInit {
|
|
5
|
+
export declare class TextInputComponent implements OnInit, AfterContentChecked {
|
|
6
6
|
private validationService;
|
|
7
7
|
controlDir: NgControl;
|
|
8
|
+
private cd;
|
|
8
9
|
input: ElementRef;
|
|
9
10
|
id: string;
|
|
10
11
|
type: string;
|
|
@@ -19,7 +20,8 @@ export declare class TextInputComponent implements OnInit {
|
|
|
19
20
|
isArabicForm: boolean;
|
|
20
21
|
formControl: FormControl;
|
|
21
22
|
errorMsg: string | null;
|
|
22
|
-
constructor(validationService: IPAFormService, controlDir: NgControl);
|
|
23
|
+
constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef);
|
|
24
|
+
ngAfterContentChecked(): void;
|
|
23
25
|
ngOnInit(): void;
|
|
24
26
|
onChange(event: any): void;
|
|
25
27
|
onTouched(): void;
|
|
@@ -28,6 +30,6 @@ export declare class TextInputComponent implements OnInit {
|
|
|
28
30
|
registerOnTouched(fn: any): void;
|
|
29
31
|
checkIsNumber(event: Event): void;
|
|
30
32
|
get errorMessage(): string | null;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, [null, { self: true; }]>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, [null, { self: true; }, null]>;
|
|
32
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ipa-text-input", never, { "id": "id"; "type": "type"; "placeholder": "placeholder"; "label": "label"; "required": "required"; "patternErrorMsg": "patternErrorMsg"; "onlyNumber": "onlyNumber"; "pattern": "pattern"; "classes": "classes"; "containerClasses": "containerClasses"; "isArabicForm": "isArabicForm"; }, {}, never, never>;
|
|
33
35
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ElementRef, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl, NgControl } from '@angular/forms';
|
|
3
3
|
import { IPAFormService } from '../ipa-form.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TextareaInputComponent implements OnInit {
|
|
5
|
+
export declare class TextareaInputComponent implements OnInit, AfterContentChecked {
|
|
6
6
|
private validationService;
|
|
7
7
|
controlDir: NgControl;
|
|
8
|
+
private cd;
|
|
8
9
|
input: ElementRef<any>;
|
|
9
10
|
id: string;
|
|
10
11
|
placeholder: string;
|
|
@@ -17,7 +18,8 @@ export declare class TextareaInputComponent implements OnInit {
|
|
|
17
18
|
isArabicForm: boolean;
|
|
18
19
|
formControl: FormControl;
|
|
19
20
|
errorMsg: string | null;
|
|
20
|
-
constructor(validationService: IPAFormService, controlDir: NgControl);
|
|
21
|
+
constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef);
|
|
22
|
+
ngAfterContentChecked(): void;
|
|
21
23
|
ngOnInit(): void;
|
|
22
24
|
onChange(event: any): void;
|
|
23
25
|
onTouched(): void;
|
|
@@ -25,6 +27,6 @@ export declare class TextareaInputComponent implements OnInit {
|
|
|
25
27
|
registerOnChange(fn: any): void;
|
|
26
28
|
registerOnTouched(fn: any): void;
|
|
27
29
|
get errorMessage(): string | null;
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaInputComponent, [null, { self: true; }]>;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextareaInputComponent, [null, { self: true; }, null]>;
|
|
29
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextareaInputComponent, "ipa-textarea-input", never, { "id": "id"; "placeholder": "placeholder"; "label": "label"; "required": "required"; "patternErrorMsg": "patternErrorMsg"; "pattern": "pattern"; "classes": "classes"; "containerClasses": "containerClasses"; "isArabicForm": "isArabicForm"; }, {}, never, never>;
|
|
30
32
|
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-ipa-library",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.3",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "~13.2.2",
|
|
6
|
-
"@angular/core": "~13.2.2"
|
|
7
|
-
"@ng-select/ng-select": "^8.1.1"
|
|
6
|
+
"@angular/core": "~13.2.2"
|
|
8
7
|
},
|
|
9
8
|
"dependencies": {
|
|
10
9
|
"tslib": "^2.3.1",
|
|
@@ -19,7 +18,8 @@
|
|
|
19
18
|
"@fortawesome/free-brands-svg-icons": "^6.0.0",
|
|
20
19
|
"@fortawesome/free-solid-svg-icons": "^6.0.0",
|
|
21
20
|
"ngx-sharebuttons": "^10.0.0",
|
|
22
|
-
"@angular/cdk": "^13.2.3"
|
|
21
|
+
"@angular/cdk": "^13.2.3",
|
|
22
|
+
"@ng-select/ng-select": "^8.1.1"
|
|
23
23
|
},
|
|
24
24
|
"module": "fesm2015/ng-ipa-library.mjs",
|
|
25
25
|
"es2020": "fesm2020/ng-ipa-library.mjs",
|