ng-ipa-library 4.0.21 → 5.0.0
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/core/components/loading/loading.component.mjs +4 -4
- package/esm2022/lib/core/interceptors/error.interceptor.mjs +4 -4
- package/esm2022/lib/core/interceptors/loading.interceptor.mjs +4 -4
- package/esm2022/lib/core/interceptors/myIPAToken.interceptor.mjs +4 -4
- package/esm2022/lib/core/interceptors/token.interceptor.mjs +4 -4
- package/esm2022/lib/core/services/auth.service.mjs +4 -4
- package/esm2022/lib/core/services/error.service.mjs +4 -4
- package/esm2022/lib/core/services/loader.service.mjs +4 -4
- package/esm2022/lib/core/services/token.service.mjs +4 -4
- package/esm2022/lib/generate-form/generate-form.component.mjs +4 -4
- package/esm2022/lib/ipa-form/datepicker/datepicker.component.mjs +35 -14
- package/esm2022/lib/ipa-form/datepicker/gregorian-datepicker/gregorian-datepicker.component.mjs +6 -6
- package/esm2022/lib/ipa-form/datepicker/gregorian-datepicker/gregorian18n.mjs +5 -5
- package/esm2022/lib/ipa-form/datepicker/hijri-datepicker/IslamicI18n.mjs +5 -5
- package/esm2022/lib/ipa-form/datepicker/hijri-datepicker/hijri-datepicker.component.mjs +6 -6
- package/esm2022/lib/ipa-form/dropdown-input/dropdown-input.component.mjs +4 -4
- package/esm2022/lib/ipa-form/file-upload/file-upload.component.mjs +4 -4
- package/esm2022/lib/ipa-form/ipa-form.service.mjs +4 -4
- package/esm2022/lib/ipa-form/recaptcha/recaptcha.component.mjs +4 -4
- package/esm2022/lib/ipa-form/text-input/text-input.component.mjs +41 -18
- package/esm2022/lib/ipa-form/textarea-input/textarea-input.component.mjs +4 -4
- package/esm2022/lib/ng-ipa-library.module.mjs +7 -12
- package/esm2022/lib/pipes/hijri-date.pipe.mjs +4 -4
- package/esm2022/lib/pipes/pipes.module.mjs +5 -5
- package/esm2022/lib/services/breadcrumbs.service.mjs +4 -4
- package/esm2022/lib/services/common.service.mjs +4 -4
- package/esm2022/lib/share-button/share-button.component.mjs +4 -4
- package/esm2022/lib/share-button/share-button.module.mjs +5 -5
- package/esm2022/public-api.mjs +1 -3
- package/fesm2022/ng-ipa-library.mjs +164 -181
- package/fesm2022/ng-ipa-library.mjs.map +1 -1
- package/lib/ipa-form/datepicker/datepicker.component.d.ts +11 -6
- package/lib/ipa-form/datepicker/gregorian-datepicker/gregorian18n.d.ts +1 -2
- package/lib/ipa-form/datepicker/hijri-datepicker/IslamicI18n.d.ts +1 -2
- package/lib/ipa-form/text-input/text-input.component.d.ts +13 -7
- package/lib/ng-ipa-library.module.d.ts +1 -2
- package/package.json +3 -3
- package/public-api.d.ts +0 -1
- package/esm2022/lib/directives/host-control-directive.directive.mjs +0 -61
- package/lib/directives/host-control-directive.directive.d.ts +0 -15
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { AfterContentChecked, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormControl, NgControl } from '@angular/forms';
|
|
2
3
|
import { NgbCalendar, NgbDate, NgbDateStruct, NgbInputDatepicker, NgbInputDatepickerConfig } from '@ng-bootstrap/ng-bootstrap';
|
|
3
4
|
import { IPAFormService } from '../ipa-form.service';
|
|
4
|
-
import { HostControlDirectiveDirective } from '../../directives/host-control-directive.directive';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../directives/host-control-directive.directive";
|
|
7
6
|
export declare class DatepickerComponent implements OnInit, AfterContentChecked {
|
|
8
7
|
private ipaFormService;
|
|
9
8
|
private calendar;
|
|
9
|
+
controlDir: NgControl;
|
|
10
10
|
private cd;
|
|
11
11
|
datepicker: NgbInputDatepicker;
|
|
12
12
|
id: string;
|
|
@@ -20,14 +20,19 @@ export declare class DatepickerComponent implements OnInit, AfterContentChecked
|
|
|
20
20
|
isArabicForm: boolean;
|
|
21
21
|
isHijriDatepicker: boolean;
|
|
22
22
|
today: NgbDate;
|
|
23
|
-
formControl:
|
|
23
|
+
formControl: UntypedFormControl;
|
|
24
24
|
errorMsg: string | null;
|
|
25
|
-
constructor(ipaFormService: IPAFormService, calendar: NgbCalendar, config: NgbInputDatepickerConfig, cd: ChangeDetectorRef);
|
|
25
|
+
constructor(ipaFormService: IPAFormService, calendar: NgbCalendar, controlDir: NgControl, config: NgbInputDatepickerConfig, cd: ChangeDetectorRef);
|
|
26
26
|
ngAfterContentChecked(): void;
|
|
27
27
|
ngOnInit(): void;
|
|
28
|
+
onChange(event: any): void;
|
|
29
|
+
onTouched(): void;
|
|
30
|
+
writeValue(obj: any): void;
|
|
31
|
+
registerOnChange(fn: any): void;
|
|
32
|
+
registerOnTouched(fn: any): void;
|
|
28
33
|
openDatepicker(event: Event): void;
|
|
29
34
|
get errorMessage(): string | null;
|
|
30
35
|
private changeDatepickerTitles;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent,
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "ipa-datepicker", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "patternErrorMsg": { "alias": "patternErrorMsg"; "required": false; }; "required": { "alias": "required"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; }, {}, never, never, false,
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, [null, null, { self: true; }, null, null]>;
|
|
37
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "ipa-datepicker", never, { "id": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "patternErrorMsg": { "alias": "patternErrorMsg"; "required": false; }; "required": { "alias": "required"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
33
38
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { TranslationWidth } from '@angular/common';
|
|
2
1
|
import { NgbDatepickerI18n, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class Gregorian18n extends NgbDatepickerI18n {
|
|
5
4
|
getMonthShortName(month: number): string;
|
|
6
5
|
getMonthFullName(month: number): string;
|
|
7
|
-
getWeekdayLabel(weekday: number
|
|
6
|
+
getWeekdayLabel(weekday: number): string;
|
|
8
7
|
getDayAriaLabel(date: NgbDateStruct): string;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<Gregorian18n, never>;
|
|
10
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<Gregorian18n>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { TranslationWidth } from '@angular/common';
|
|
2
1
|
import { NgbDatepickerI18n, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class IslamicI18n extends NgbDatepickerI18n {
|
|
5
4
|
getMonthShortName(month: number): string;
|
|
6
5
|
getMonthFullName(month: number): string;
|
|
7
|
-
getWeekdayLabel(weekday: number
|
|
6
|
+
getWeekdayLabel(weekday: number): string;
|
|
8
7
|
getDayAriaLabel(date: NgbDateStruct): string;
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<IslamicI18n, never>;
|
|
10
9
|
static ɵprov: i0.ɵɵInjectableDeclaration<IslamicI18n>;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { UntypedFormControl, NgControl } from '@angular/forms';
|
|
2
3
|
import { IPAFormService } from '../ipa-form.service';
|
|
3
|
-
import { HostControlDirectiveDirective } from '../../directives/host-control-directive.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../directives/host-control-directive.directive";
|
|
6
5
|
export declare class TextInputComponent implements OnInit, AfterContentChecked {
|
|
7
6
|
private validationService;
|
|
7
|
+
controlDir: NgControl;
|
|
8
8
|
private cd;
|
|
9
|
+
input: ElementRef;
|
|
9
10
|
id: string;
|
|
10
11
|
type: string;
|
|
11
12
|
placeholder: string;
|
|
@@ -17,13 +18,18 @@ export declare class TextInputComponent implements OnInit, AfterContentChecked {
|
|
|
17
18
|
classes: string;
|
|
18
19
|
containerClasses: string;
|
|
19
20
|
isArabicForm: boolean;
|
|
20
|
-
formControl:
|
|
21
|
+
formControl: UntypedFormControl;
|
|
21
22
|
errorMsg: string | null;
|
|
22
|
-
constructor(validationService: IPAFormService, cd: ChangeDetectorRef);
|
|
23
|
+
constructor(validationService: IPAFormService, controlDir: NgControl, cd: ChangeDetectorRef);
|
|
23
24
|
ngAfterContentChecked(): void;
|
|
24
25
|
ngOnInit(): void;
|
|
26
|
+
onChange(event: any): void;
|
|
27
|
+
onTouched(): void;
|
|
28
|
+
writeValue(obj: any): void;
|
|
29
|
+
registerOnChange(fn: any): void;
|
|
30
|
+
registerOnTouched(fn: any): void;
|
|
25
31
|
checkIsNumber(event: Event): void;
|
|
26
32
|
get errorMessage(): string | null;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent,
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ipa-text-input", never, { "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "patternErrorMsg": { "alias": "patternErrorMsg"; "required": false; }; "onlyNumber": { "alias": "onlyNumber"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; }, {}, never, never, false,
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, [null, { self: true; }, null]>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ipa-text-input", never, { "id": { "alias": "id"; "required": false; }; "type": { "alias": "type"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "label": { "alias": "label"; "required": false; }; "required": { "alias": "required"; "required": false; }; "patternErrorMsg": { "alias": "patternErrorMsg"; "required": false; }; "onlyNumber": { "alias": "onlyNumber"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "classes": { "alias": "classes"; "required": false; }; "containerClasses": { "alias": "containerClasses"; "required": false; }; "isArabicForm": { "alias": "isArabicForm"; "required": false; }; }, {}, never, never, false, never>;
|
|
29
35
|
}
|
|
@@ -18,9 +18,8 @@ import * as i16 from "./pipes/pipes.module";
|
|
|
18
18
|
import * as i17 from "@ng-bootstrap/ng-bootstrap";
|
|
19
19
|
import * as i18 from "./share-button/share-button.module";
|
|
20
20
|
import * as i19 from "@ng-select/ng-select";
|
|
21
|
-
import * as i20 from "./directives/host-control-directive.directive";
|
|
22
21
|
export declare class NgIPALibraryModule {
|
|
23
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgIPALibraryModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgIPALibraryModule, [typeof i1.TextInputComponent, typeof i2.TextareaInputComponent, typeof i3.DropdownInputComponent, typeof i4.LoaderComponent, typeof i5.GenerateFormComponent, typeof i6.FileUploadComponent, typeof i7.DatepickerComponent, typeof i8.HijriDatepickerComponent, typeof i9.GregorianDatepickerComponent, typeof i10.RecaptchaComponent], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.ToastrModule, typeof i14.DropzoneModule, typeof i15.NgxCaptchaModule, typeof i16.PipesModule, typeof i17.NgbDatepickerModule, typeof i18.ShareButtonModule, typeof i19.NgSelectModule
|
|
23
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgIPALibraryModule, [typeof i1.TextInputComponent, typeof i2.TextareaInputComponent, typeof i3.DropdownInputComponent, typeof i4.LoaderComponent, typeof i5.GenerateFormComponent, typeof i6.FileUploadComponent, typeof i7.DatepickerComponent, typeof i8.HijriDatepickerComponent, typeof i9.GregorianDatepickerComponent, typeof i10.RecaptchaComponent], [typeof i11.CommonModule, typeof i12.FormsModule, typeof i12.ReactiveFormsModule, typeof i13.ToastrModule, typeof i14.DropzoneModule, typeof i15.NgxCaptchaModule, typeof i16.PipesModule, typeof i17.NgbDatepickerModule, typeof i18.ShareButtonModule, typeof i19.NgSelectModule], [typeof i1.TextInputComponent, typeof i2.TextareaInputComponent, typeof i3.DropdownInputComponent, typeof i4.LoaderComponent, typeof i5.GenerateFormComponent, typeof i6.FileUploadComponent, typeof i16.PipesModule, typeof i8.HijriDatepickerComponent, typeof i9.GregorianDatepickerComponent, typeof i18.ShareButtonModule, typeof i10.RecaptchaComponent]>;
|
|
25
24
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgIPALibraryModule>;
|
|
26
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ng-ipa-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "<18.0.0",
|
|
6
6
|
"@angular/core": "<18.0.0",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"ngx-dropzone-wrapper": "^17.0.0",
|
|
14
14
|
"moment-hijri": "^2.1.2",
|
|
15
15
|
"@types/moment-hijri": "^2.1.4",
|
|
16
|
-
"@ng-bootstrap/ng-bootstrap": "^
|
|
16
|
+
"@ng-bootstrap/ng-bootstrap": "^17.0.0",
|
|
17
17
|
"@fortawesome/fontawesome-svg-core": "^6.5.2",
|
|
18
18
|
"@fortawesome/angular-fontawesome": "^0.14.1",
|
|
19
19
|
"@fortawesome/free-brands-svg-icons": "^6.5.2",
|
|
20
20
|
"@fortawesome/free-solid-svg-icons": "^6.5.2",
|
|
21
21
|
"ngx-sharebuttons": "^11.0.0",
|
|
22
|
-
"@ng-select/ng-select": "^
|
|
22
|
+
"@ng-select/ng-select": "^13.4.1"
|
|
23
23
|
},
|
|
24
24
|
"module": "fesm2022/ng-ipa-library.mjs",
|
|
25
25
|
"typings": "index.d.ts",
|
package/public-api.d.ts
CHANGED
|
@@ -26,7 +26,6 @@ export * from './lib/ipa-form/ipa-form.service';
|
|
|
26
26
|
export * from './lib/services/breadcrumbs.service';
|
|
27
27
|
export * from './lib/services/common.service';
|
|
28
28
|
export * from './lib/pipes/hijri-date.pipe';
|
|
29
|
-
export * from './lib/directives/host-control-directive.directive';
|
|
30
29
|
export * from './lib/models/pagedResult';
|
|
31
30
|
export * from './lib/models/apiException';
|
|
32
31
|
export * from './lib/models/apiResponse';
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { Directive, inject, Injector } from '@angular/core';
|
|
2
|
-
import { ControlContainer, FormControl, FormControlDirective, FormControlName, NG_VALUE_ACCESSOR, NgControl, NgModel, } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export class HostControlDirectiveDirective {
|
|
5
|
-
constructor() {
|
|
6
|
-
this.injector = inject(Injector);
|
|
7
|
-
}
|
|
8
|
-
ngOnInit() {
|
|
9
|
-
const ngControl = this.injector.get(NgControl, null, {
|
|
10
|
-
self: true,
|
|
11
|
-
optional: true,
|
|
12
|
-
});
|
|
13
|
-
if (ngControl instanceof NgModel) {
|
|
14
|
-
this.control = ngControl.control;
|
|
15
|
-
this.subscription = this.control.valueChanges.subscribe((value) => {
|
|
16
|
-
if (ngControl.model !== value || ngControl.viewModel !== value) {
|
|
17
|
-
ngControl.viewToModelUpdate(value);
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
else if (ngControl instanceof FormControlDirective) {
|
|
22
|
-
this.control = ngControl.control;
|
|
23
|
-
}
|
|
24
|
-
else if (ngControl instanceof FormControlName) {
|
|
25
|
-
const container = this.injector.get(ControlContainer)
|
|
26
|
-
.control;
|
|
27
|
-
this.control = container.controls[ngControl.name];
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
this.control = new FormControl();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
writeValue() { }
|
|
34
|
-
registerOnChange() { }
|
|
35
|
-
registerOnTouched() { }
|
|
36
|
-
ngOnDestroy() {
|
|
37
|
-
this.subscription?.unsubscribe();
|
|
38
|
-
}
|
|
39
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: HostControlDirectiveDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
40
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.3.11", type: HostControlDirectiveDirective, isStandalone: true, providers: [
|
|
41
|
-
{
|
|
42
|
-
provide: NG_VALUE_ACCESSOR,
|
|
43
|
-
multi: true,
|
|
44
|
-
useExisting: HostControlDirectiveDirective,
|
|
45
|
-
},
|
|
46
|
-
], ngImport: i0 }); }
|
|
47
|
-
}
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: HostControlDirectiveDirective, decorators: [{
|
|
49
|
-
type: Directive,
|
|
50
|
-
args: [{
|
|
51
|
-
standalone: true,
|
|
52
|
-
providers: [
|
|
53
|
-
{
|
|
54
|
-
provide: NG_VALUE_ACCESSOR,
|
|
55
|
-
multi: true,
|
|
56
|
-
useExisting: HostControlDirectiveDirective,
|
|
57
|
-
},
|
|
58
|
-
],
|
|
59
|
-
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9yLmdldChDb250cm9sQ29udGFpbmVyKVxyXG4gICAgICAgIC5jb250cm9sIGFzIEZvcm1Hcm91cDtcclxuICAgICAgdGhpcy5jb250cm9sID0gY29udGFpbmVyLmNvbnRyb2xzW25nQ29udHJvbC5uYW1lIV0gYXMgRm9ybUNvbnRyb2w7XHJcbiAgICB9IGVsc2Uge1xyXG4gICAgICB0aGlzLmNvbnRyb2wgPSBuZXcgRm9ybUNvbnRyb2woKTtcclxuICAgIH1cclxuICB9XHJcbiAgd3JpdGVWYWx1ZSgpOiB2b2lkIHt9XHJcbiAgcmVnaXN0ZXJPbkNoYW5nZSgpOiB2b2lkIHt9XHJcbiAgcmVnaXN0ZXJPblRvdWNoZWQoKTogdm9pZCB7fVxyXG5cclxuICBuZ09uRGVzdHJveSgpOiB2b2lkIHtcclxuICAgIHRoaXMuc3Vic2NyaXB0aW9uPy51bnN1YnNjcmliZSgpO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class HostControlDirectiveDirective implements ControlValueAccessor, OnInit, OnDestroy {
|
|
5
|
-
control: FormControl;
|
|
6
|
-
private injector;
|
|
7
|
-
private subscription?;
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
writeValue(): void;
|
|
10
|
-
registerOnChange(): void;
|
|
11
|
-
registerOnTouched(): void;
|
|
12
|
-
ngOnDestroy(): void;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HostControlDirectiveDirective, never>;
|
|
14
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<HostControlDirectiveDirective, never, never, {}, {}, never, never, true, never>;
|
|
15
|
-
}
|