ng-tailwind 4.3.34 → 4.4.35
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/components/ngt-action/ngt-action.component.d.ts +12 -9
- package/components/ngt-button/ngt-button.component.d.ts +11 -4
- package/components/ngt-checkbox/ngt-checkbox.component.d.ts +9 -7
- package/components/ngt-date/ngt-date.component.d.ts +10 -4
- package/components/ngt-dropzone/ngt-dropzone.component.d.ts +11 -3
- package/components/ngt-form/ngt-form.component.d.ts +11 -9
- package/components/ngt-input/ngt-input.component.d.ts +17 -9
- package/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.d.ts +10 -3
- package/components/ngt-modal/ngt-modal.component.d.ts +9 -5
- package/components/ngt-multi-select/ngt-multi-select.component.d.ts +10 -4
- package/components/ngt-radio-button/ngt-radio-button.component.d.ts +10 -9
- package/components/ngt-section/ngt-section.component.d.ts +11 -7
- package/components/ngt-select/ngt-select.component.d.ts +10 -6
- package/esm2020/components/ngt-action/ngt-action.component.mjs +31 -39
- package/esm2020/components/ngt-button/ngt-button.component.mjs +37 -23
- package/esm2020/components/ngt-checkbox/ngt-checkbox.component.mjs +24 -36
- package/esm2020/components/ngt-datatable/ngt-datatable.component.mjs +3 -3
- package/esm2020/components/ngt-datatable/ngt-th/ngt-th.component.mjs +3 -3
- package/esm2020/components/ngt-date/ngt-date.component.mjs +41 -21
- package/esm2020/components/ngt-dropzone/ngt-dropzone.component.mjs +41 -15
- package/esm2020/components/ngt-form/ngt-form.component.mjs +24 -20
- package/esm2020/components/ngt-input/ngt-input.component.mjs +94 -66
- package/esm2020/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.mjs +21 -6
- package/esm2020/components/ngt-modal/ngt-modal.component.mjs +21 -9
- package/esm2020/components/ngt-multi-select/ngt-multi-select.component.mjs +50 -30
- package/esm2020/components/ngt-pagination/ngt-pagination.component.mjs +3 -3
- package/esm2020/components/ngt-radio-button/ngt-radio-button.component.mjs +33 -47
- package/esm2020/components/ngt-section/ngt-section.component.mjs +29 -16
- package/esm2020/components/ngt-select/ngt-select.component.mjs +39 -44
- package/esm2020/public-api.mjs +3 -1
- package/esm2020/services/validation/ngt-ability-validation.service.mjs +3 -0
- package/fesm2015/ng-tailwind.mjs +660 -561
- package/fesm2015/ng-tailwind.mjs.map +1 -1
- package/fesm2020/ng-tailwind.mjs +650 -554
- package/fesm2020/ng-tailwind.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/services/validation/ngt-ability-validation.service.d.ts +5 -0
|
@@ -1,27 +1,30 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Injector, OnDestroy } from '@angular/core';
|
|
2
2
|
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
3
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
4
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
5
5
|
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
6
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
7
|
+
import { NgtModalBodyComponent } from '../ngt-modal/ngt-modal-body/ngt-modal-body.component';
|
|
6
8
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class NgtActionComponent implements
|
|
9
|
+
export declare class NgtActionComponent implements OnDestroy {
|
|
8
10
|
private injector;
|
|
9
|
-
private changeDetector;
|
|
10
11
|
private ngtStylizableDirective;
|
|
11
12
|
ngtForm: NgtFormComponent;
|
|
12
13
|
ngtSection: NgtSectionComponent;
|
|
14
|
+
ngtModal: NgtModalComponent;
|
|
15
|
+
ngtModalBody: NgtModalBodyComponent;
|
|
13
16
|
href: string;
|
|
14
17
|
icon: string;
|
|
15
18
|
ngtStyle: NgtStylizableService;
|
|
16
19
|
isDisabled: boolean;
|
|
20
|
+
forceEnable: boolean;
|
|
17
21
|
private subscriptions;
|
|
18
|
-
constructor(injector: Injector,
|
|
19
|
-
ngAfterViewInit(): void;
|
|
20
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
constructor(injector: Injector, ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, ngtModalBody: NgtModalBodyComponent);
|
|
21
23
|
ngOnDestroy(): void;
|
|
22
24
|
onClick(event: Event): void;
|
|
23
|
-
|
|
25
|
+
disabled(): boolean;
|
|
26
|
+
private isDisabledByParent;
|
|
24
27
|
private destroySubscriptions;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtActionComponent, [null,
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtActionComponent, "ngt-action", never, { "href": "href"; "icon": "icon"; "ngtStyle": "ngtStyle"; "isDisabled": "isDisabled"; }, {}, never, ["*", "*"], false, never>;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtActionComponent, [null, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }]>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtActionComponent, "ngt-action", never, { "href": "href"; "icon": "icon"; "ngtStyle": "ngtStyle"; "isDisabled": "isDisabled"; "forceEnable": "forceEnable"; }, {}, never, ["*", "*"], false, never>;
|
|
27
30
|
}
|
|
@@ -2,27 +2,34 @@ import { AfterViewInit, ChangeDetectorRef, Injector, OnChanges, OnDestroy, Simpl
|
|
|
2
2
|
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
3
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
4
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
5
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
6
|
+
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
5
7
|
import * as i0 from "@angular/core";
|
|
6
8
|
export declare class NgtButtonComponent implements AfterViewInit, OnChanges, OnDestroy {
|
|
7
9
|
private changeDetector;
|
|
8
10
|
private injector;
|
|
9
11
|
private ngtForm;
|
|
12
|
+
private ngtSection;
|
|
13
|
+
private ngtModal;
|
|
10
14
|
private ngtStylizableDirective;
|
|
11
|
-
link: boolean;
|
|
12
15
|
href: string;
|
|
13
16
|
type: string;
|
|
17
|
+
link: boolean;
|
|
14
18
|
loading: boolean;
|
|
15
19
|
isDisabled: boolean;
|
|
20
|
+
forceEnable: boolean;
|
|
16
21
|
noSubmit: boolean;
|
|
17
22
|
ngtStyle: NgtStylizableService;
|
|
18
23
|
private subscriptions;
|
|
19
|
-
constructor(changeDetector: ChangeDetectorRef, injector: Injector, ngtForm: NgtFormComponent, ngtStylizableDirective: NgtStylizableDirective);
|
|
24
|
+
constructor(changeDetector: ChangeDetectorRef, injector: Injector, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, ngtStylizableDirective: NgtStylizableDirective);
|
|
20
25
|
onClick(event: Event): void;
|
|
21
26
|
ngAfterViewInit(): void;
|
|
22
27
|
ngOnChanges(changes: SimpleChanges): void;
|
|
28
|
+
disabled(): boolean;
|
|
23
29
|
ngOnDestroy(): void;
|
|
24
30
|
private bindSubscriptions;
|
|
31
|
+
private isDisabledByParent;
|
|
25
32
|
private destroySubscriptions;
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtButtonComponent, [null, null, { optional: true; skipSelf: true; }, { optional: true; self: true; }]>;
|
|
27
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtButtonComponent, "ngt-button", never, { "
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtButtonComponent, [null, null, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; self: true; }]>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtButtonComponent, "ngt-button", never, { "href": "href"; "type": "type"; "link": "link"; "loading": "loading"; "isDisabled": "isDisabled"; "forceEnable": "forceEnable"; "noSubmit": "noSubmit"; }, {}, never, ["*"], false, never>;
|
|
28
35
|
}
|
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, Injector, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
3
|
import { NgtBaseNgModel } from '../../base/ngt-base-ng-model';
|
|
4
4
|
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
5
5
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
6
6
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
7
7
|
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
8
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
8
9
|
import * as i0 from "@angular/core";
|
|
9
10
|
export declare class NgtCheckboxComponent extends NgtBaseNgModel implements AfterViewInit, OnChanges, OnDestroy {
|
|
10
|
-
private changeDetector;
|
|
11
11
|
private injector;
|
|
12
|
-
formContainer: ControlContainer;
|
|
13
12
|
private renderer;
|
|
13
|
+
formContainer: ControlContainer;
|
|
14
14
|
private ngtStylizableDirective;
|
|
15
15
|
private ngtForm;
|
|
16
|
-
ngtSection
|
|
16
|
+
private ngtSection;
|
|
17
|
+
private ngtModal;
|
|
17
18
|
element: ElementRef;
|
|
18
19
|
label: string;
|
|
19
20
|
shining: boolean;
|
|
@@ -27,7 +28,7 @@ export declare class NgtCheckboxComponent extends NgtBaseNgModel implements Afte
|
|
|
27
28
|
helperAutoXReverse: boolean;
|
|
28
29
|
ngtStyle: NgtStylizableService;
|
|
29
30
|
private subscriptions;
|
|
30
|
-
constructor(
|
|
31
|
+
constructor(injector: Injector, renderer: Renderer2, formContainer: ControlContainer, ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent);
|
|
31
32
|
ngAfterViewInit(): void;
|
|
32
33
|
ngOnChanges(changes: SimpleChanges): void;
|
|
33
34
|
ngOnDestroy(): void;
|
|
@@ -38,9 +39,10 @@ export declare class NgtCheckboxComponent extends NgtBaseNgModel implements Afte
|
|
|
38
39
|
isSideToggleMode(): boolean;
|
|
39
40
|
isDefaultMode(): boolean;
|
|
40
41
|
isRadioMode(): boolean;
|
|
41
|
-
|
|
42
|
+
disabled(): boolean;
|
|
43
|
+
private isDisabledByParent;
|
|
42
44
|
private destroySubscriptions;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtCheckboxComponent, [null, null, { optional: true; host: true; },
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtCheckboxComponent, [null, null, { optional: true; host: true; }, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }]>;
|
|
44
46
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtCheckboxComponent, "ngt-checkbox", never, { "label": "label"; "shining": "shining"; "isDisabled": "isDisabled"; "isClickDisabled": "isClickDisabled"; "name": "name"; "mode": "mode"; "helpTitle": "helpTitle"; "helpTextColor": "helpTextColor"; "helpText": "helpText"; "helperAutoXReverse": "helperAutoXReverse"; }, {}, never, never, false, never>;
|
|
45
47
|
}
|
|
46
48
|
export declare enum NgtCheckboxMode {
|
|
@@ -5,12 +5,16 @@ import { NgtBaseNgModel } from '../../base/ngt-base-ng-model';
|
|
|
5
5
|
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
6
6
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
7
7
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
8
|
+
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
9
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit, OnDestroy {
|
|
12
|
+
formContainer: ControlContainer;
|
|
10
13
|
private injector;
|
|
11
14
|
private ngtStylizableDirective;
|
|
12
|
-
|
|
13
|
-
private
|
|
15
|
+
private ngtForm;
|
|
16
|
+
private ngtSection;
|
|
17
|
+
private ngtModal;
|
|
14
18
|
ng2FlatpickrComponent: Ng2FlatpickrComponent;
|
|
15
19
|
label: string;
|
|
16
20
|
placeholder: string;
|
|
@@ -48,7 +52,7 @@ export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit,
|
|
|
48
52
|
};
|
|
49
53
|
private subscriptions;
|
|
50
54
|
private lastInputedDateString;
|
|
51
|
-
constructor(injector: Injector, ngtStylizableDirective: NgtStylizableDirective,
|
|
55
|
+
constructor(formContainer: ControlContainer, injector: Injector, ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent);
|
|
52
56
|
ngOnChanges(changes: SimpleChanges): void;
|
|
53
57
|
ngOnInit(): void;
|
|
54
58
|
ngOnDestroy(): void;
|
|
@@ -58,6 +62,7 @@ export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit,
|
|
|
58
62
|
getNativeValue(): any;
|
|
59
63
|
getFormattedNativeValue(): any;
|
|
60
64
|
hasErrors(): boolean;
|
|
65
|
+
disabled(): boolean;
|
|
61
66
|
private initComponent;
|
|
62
67
|
private setupDateInputMask;
|
|
63
68
|
private updateValidations;
|
|
@@ -65,8 +70,9 @@ export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit,
|
|
|
65
70
|
private getDateMode;
|
|
66
71
|
private getMomentDateFormat;
|
|
67
72
|
private convertDateToAmericanFormat;
|
|
73
|
+
private isDisabledByParent;
|
|
68
74
|
private destroySubscriptions;
|
|
69
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDateComponent, [null, { optional: true; self: true; }, { optional: true;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDateComponent, [{ optional: true; host: true; }, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }]>;
|
|
70
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtDateComponent, "ngt-date", never, { "label": "label"; "placeholder": "placeholder"; "helpTitle": "helpTitle"; "helpText": "helpText"; "helpTextColor": "helpTextColor"; "shining": "shining"; "dateFormat": "dateFormat"; "dateFormatNgModel": "dateFormatNgModel"; "showCalendarIcon": "showCalendarIcon"; "helperReverseYPosition": "helperReverseYPosition"; "name": "name"; "isDisabled": "isDisabled"; "isReadonly": "isReadonly"; "mode": "mode"; "time_24hr": "time_24hr"; "enableTime": "enableTime"; "noCalendar": "noCalendar"; "minuteIncrement": "minuteIncrement"; "allowInput": "allowInput"; "locale": "locale"; "allowClear": "allowClear"; "minDate": "minDate"; "maxDate": "maxDate"; "defaultDate": "defaultDate"; "isRequired": "isRequired"; }, {}, never, ["*"], false, never>;
|
|
71
77
|
}
|
|
72
78
|
export declare enum NgtDateLocale {
|
|
@@ -6,12 +6,18 @@ import { NgtAttachmentHttpService } from '../../services/http/ngt-attachment-htt
|
|
|
6
6
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
7
7
|
import { NgtDropzoneFileViewerComponent } from './ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component';
|
|
8
8
|
import { NgtDropzoneErrorType, NgtDropzoneFile, NgtDropzonePreviewType } from './ngt-dropzone.meta';
|
|
9
|
+
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
10
|
+
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
11
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
9
12
|
import * as i0 from "@angular/core";
|
|
10
13
|
export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnInit, OnDestroy, AfterContentChecked {
|
|
11
14
|
formContainer: ControlContainer;
|
|
12
|
-
private ngtAttachmentHttpService;
|
|
13
15
|
private injector;
|
|
14
16
|
private changeDetector;
|
|
17
|
+
private ngtAttachmentHttpService;
|
|
18
|
+
private ngtForm;
|
|
19
|
+
private ngtSection;
|
|
20
|
+
private ngtModal;
|
|
15
21
|
container: ElementRef;
|
|
16
22
|
ngxDropzone: NgxDropzoneComponent;
|
|
17
23
|
ngtDropzoneFileViewer: NgtDropzoneFileViewerComponent;
|
|
@@ -56,7 +62,7 @@ export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnIn
|
|
|
56
62
|
ngxElementId: string;
|
|
57
63
|
imageViewerOptions: any;
|
|
58
64
|
private subscriptions;
|
|
59
|
-
constructor(formContainer: ControlContainer, ngtAttachmentHttpService: NgtAttachmentHttpService,
|
|
65
|
+
constructor(formContainer: ControlContainer, injector: Injector, changeDetector: ChangeDetectorRef, ngtAttachmentHttpService: NgtAttachmentHttpService, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent);
|
|
60
66
|
ngOnChanges(changes: SimpleChanges): void;
|
|
61
67
|
ngAfterContentChecked(): void;
|
|
62
68
|
ngOnInit(): void;
|
|
@@ -78,10 +84,12 @@ export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnIn
|
|
|
78
84
|
downloadFile(attachment: any): void;
|
|
79
85
|
reset(): void;
|
|
80
86
|
openFileSelector(): void;
|
|
87
|
+
isDisabled(): boolean;
|
|
81
88
|
private initComponent;
|
|
82
89
|
private resetFilesLoad;
|
|
83
90
|
private updateValidations;
|
|
91
|
+
private isDisabledByParent;
|
|
84
92
|
private destroySubscriptions;
|
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDropzoneComponent, [{ optional: true; host: true; }, { optional: true; skipSelf: true; },
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDropzoneComponent, [{ optional: true; host: true; }, null, null, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }]>;
|
|
86
94
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtDropzoneComponent, "ngt-dropzone", never, { "label": "label"; "placeholder": "placeholder"; "helpTextColor": "helpTextColor"; "helpText": "helpText"; "helpTitle": "helpTitle"; "resources": "resources"; "multipleSelection": "multipleSelection"; "itemsLimit": "itemsLimit"; "showFileName": "showFileName"; "disableClick": "disableClick"; "disabled": "disabled"; "viewMode": "viewMode"; "removable": "removable"; "canDownloadFile": "canDownloadFile"; "verticalExpandable": "verticalExpandable"; "isRequired": "isRequired"; "hideNgxDropzone": "hideNgxDropzone"; "acceptedFiles": "acceptedFiles"; "unacceptedFiles": "unacceptedFiles"; "maxFileSize": "maxFileSize"; "previewType": "previewType"; "name": "name"; "remoteResource": "remoteResource"; }, { "onFileSelected": "onFileSelected"; "onFileSelectError": "onFileSelectError"; "onFileUploadFail": "onFileUploadFail"; "onFileRemoved": "onFileRemoved"; "onFileUploadInit": "onFileUploadInit"; "onFileUploaded": "onFileUploaded"; "onFilePreviewLoaded": "onFilePreviewLoaded"; }, never, never, false, never>;
|
|
87
95
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { ControlContainer, NgForm } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { NgtHttpFormService } from '../../services/http/ngt-http-form.service';
|
|
6
|
+
import { NgtAbilityValidationService } from '../../services/validation/ngt-ability-validation.service';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
|
-
export declare class NgtFormComponent implements OnInit, OnDestroy,
|
|
8
|
-
formContainer: ControlContainer;
|
|
9
|
-
ngForm: NgForm;
|
|
8
|
+
export declare class NgtFormComponent implements OnInit, OnDestroy, AfterViewInit {
|
|
10
9
|
router: Router;
|
|
11
10
|
route: ActivatedRoute;
|
|
11
|
+
formContainer: ControlContainer;
|
|
12
|
+
ngForm: NgForm;
|
|
13
|
+
private changeDetector;
|
|
12
14
|
private ngtHttpFormService;
|
|
15
|
+
private ngtAbilityValidationService;
|
|
13
16
|
guessFormState: boolean;
|
|
14
17
|
message: string;
|
|
15
18
|
routeIdentifier: string;
|
|
@@ -21,7 +24,6 @@ export declare class NgtFormComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
21
24
|
onEditing: EventEmitter<any>;
|
|
22
25
|
onLoadingChange: EventEmitter<boolean>;
|
|
23
26
|
onShiningChange: EventEmitter<boolean>;
|
|
24
|
-
onIsDisabledChange: EventEmitter<boolean>;
|
|
25
27
|
setupComponent: EventEmitter<any>;
|
|
26
28
|
onResourceLoadingError: EventEmitter<string>;
|
|
27
29
|
formState: NgtFormState;
|
|
@@ -29,9 +31,9 @@ export declare class NgtFormComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
29
31
|
private loading;
|
|
30
32
|
private shining;
|
|
31
33
|
private subscriptions;
|
|
32
|
-
constructor(formContainer: ControlContainer, ngForm: NgForm,
|
|
34
|
+
constructor(router: Router, route: ActivatedRoute, formContainer: ControlContainer, ngForm: NgForm, changeDetector: ChangeDetectorRef, ngtHttpFormService: NgtHttpFormService, ngtAbilityValidationService: NgtAbilityValidationService);
|
|
33
35
|
ngOnInit(): void;
|
|
34
|
-
|
|
36
|
+
ngAfterViewInit(): Promise<void>;
|
|
35
37
|
ngOnDestroy(): void;
|
|
36
38
|
isCreating(): boolean;
|
|
37
39
|
isEditing(): boolean;
|
|
@@ -49,8 +51,8 @@ export declare class NgtFormComponent implements OnInit, OnDestroy, OnChanges {
|
|
|
49
51
|
protected triggerFormEditing(): void;
|
|
50
52
|
private determineFormState;
|
|
51
53
|
private destroySubscriptions;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtFormComponent, [{ optional: true; host: true; }, { optional: true; host: true; }, null, null,
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtFormComponent, "ngt-form", never, { "guessFormState": "guessFormState"; "message": "message"; "routeIdentifier": "routeIdentifier"; "resource": "resource"; "customLayout": "customLayout"; "isDisabled": "isDisabled"; }, { "onCreating": "onCreating"; "onEditing": "onEditing"; "onLoadingChange": "onLoadingChange"; "onShiningChange": "onShiningChange"; "
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtFormComponent, [null, null, { optional: true; host: true; }, { optional: true; host: true; }, null, null, { optional: true; }]>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtFormComponent, "ngt-form", never, { "guessFormState": "guessFormState"; "message": "message"; "routeIdentifier": "routeIdentifier"; "resource": "resource"; "customLayout": "customLayout"; "isDisabled": "isDisabled"; }, { "onCreating": "onCreating"; "onEditing": "onEditing"; "onLoadingChange": "onLoadingChange"; "onShiningChange": "onShiningChange"; "setupComponent": "setupComponent"; "onResourceLoadingError": "onResourceLoadingError"; }, never, ["*"], false, never>;
|
|
54
56
|
}
|
|
55
57
|
export declare enum NgtFormState {
|
|
56
58
|
CREATING = "CREATING",
|
|
@@ -7,16 +7,21 @@ import { NgtHttpValidationService } from '../../services/http/ngt-http-validatio
|
|
|
7
7
|
import { NgtTranslateService } from '../../services/http/ngt-translate.service';
|
|
8
8
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
9
9
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
10
|
+
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
11
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
export declare class NgtInputComponent extends NgtBaseNgModel implements OnInit, OnDestroy {
|
|
12
14
|
private injector;
|
|
15
|
+
private renderer;
|
|
16
|
+
private changeDetector;
|
|
13
17
|
private ngtStylizableDirective;
|
|
14
18
|
formContainer: ControlContainer;
|
|
15
19
|
private ngtFormComponent;
|
|
16
|
-
private renderer;
|
|
17
20
|
private ngtValidationService;
|
|
18
21
|
private ngtResourceService;
|
|
19
|
-
private
|
|
22
|
+
private ngtForm;
|
|
23
|
+
private ngtSection;
|
|
24
|
+
private ngtModal;
|
|
20
25
|
ngtTranslateService: NgtTranslateService;
|
|
21
26
|
element: ElementRef;
|
|
22
27
|
label: string;
|
|
@@ -76,18 +81,20 @@ export declare class NgtInputComponent extends NgtBaseNgModel implements OnInit,
|
|
|
76
81
|
private uniqueValidatorTimeout;
|
|
77
82
|
private searchExistingResourceTimeout;
|
|
78
83
|
private subscriptions;
|
|
79
|
-
constructor(injector: Injector, ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtFormComponent: NgtFormComponent,
|
|
80
|
-
|
|
81
|
-
hasFocus(): boolean;
|
|
82
|
-
clearInput(event?: Event): void;
|
|
84
|
+
constructor(injector: Injector, renderer: Renderer2, changeDetector: ChangeDetectorRef, ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtFormComponent: NgtFormComponent, ngtValidationService: NgtHttpValidationService, ngtResourceService: NgtHttpResourceService, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, ngtTranslateService: NgtTranslateService);
|
|
85
|
+
ngOnInit(): void;
|
|
83
86
|
ngOnChanges(changes: SimpleChanges): void;
|
|
84
87
|
ngOnDestroy(): void;
|
|
85
88
|
change(value: any): void;
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
setFocus(): void;
|
|
90
|
+
clearInput(event?: Event): void;
|
|
91
|
+
restorePlaceholder(): void;
|
|
88
92
|
showPassword(): void;
|
|
89
93
|
hidePassword(): void;
|
|
94
|
+
getInputPaddings(): string;
|
|
90
95
|
getRemainingCharacters(): number;
|
|
96
|
+
hasFocus(): boolean;
|
|
97
|
+
disabled(): boolean;
|
|
91
98
|
private initComponent;
|
|
92
99
|
private updateValidations;
|
|
93
100
|
private setupMasks;
|
|
@@ -110,7 +117,8 @@ export declare class NgtInputComponent extends NgtBaseNgModel implements OnInit,
|
|
|
110
117
|
private removeMasks;
|
|
111
118
|
private hasEmailServiceValidation;
|
|
112
119
|
private hasPasswordValidation;
|
|
120
|
+
private isDisabledByParent;
|
|
113
121
|
private destroySubscriptions;
|
|
114
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtInputComponent, [null, { optional: true; self: true; }, { optional: true; host: true; }, { optional: true; skipSelf: true; },
|
|
122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtInputComponent, [null, null, null, { optional: true; self: true; }, { optional: true; host: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; }]>;
|
|
115
123
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtInputComponent, "ngt-input", never, { "label": "label"; "placeholder": "placeholder"; "shining": "shining"; "loading": "loading"; "helpTitle": "helpTitle"; "helpTextColor": "helpTextColor"; "helpText": "helpText"; "innerLeftIcon": "innerLeftIcon"; "innerLeftIconColor": "innerLeftIconColor"; "innerRightIcon": "innerRightIcon"; "innerRightIconColor": "innerRightIconColor"; "decimalMaskPrecision": "decimalMaskPrecision"; "showCharactersLength": "showCharactersLength"; "uppercase": "uppercase"; "isDisabled": "isDisabled"; "isReadonly": "isReadonly"; "showRoundedIcon": "showRoundedIcon"; "type": "type"; "name": "name"; "mask": "mask"; "focus": "focus"; "allowClear": "allowClear"; "jit": "jit"; "findExistingResource": "findExistingResource"; "allowPhoneValidation": "allowPhoneValidation"; "validatePassword": "validatePassword"; "passwordableId": "passwordableId"; "passwordPolicyId": "passwordPolicyId"; "isRequired": "isRequired"; "uniqueResource": "uniqueResource"; "minValue": "minValue"; "maxValue": "maxValue"; "maxLength": "maxLength"; "minLength": "minLength"; "match": "match"; "multipleOf": "multipleOf"; "validateMinValueOnMask": "validateMinValueOnMask"; "externalServerDependency": "externalServerDependency"; "helperReverseYPosition": "helperReverseYPosition"; "helperAutoXReverse": "helperAutoXReverse"; }, { "onClickLeftIcon": "onClickLeftIcon"; "onClickRightIcon": "onClickRightIcon"; "validatePhoneResult": "validatePhoneResult"; }, never, ["*"], false, never>;
|
|
116
124
|
}
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { NgtAbilityValidationService } from '../../../services/validation/ngt-ability-validation.service';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class NgtModalBodyComponent {
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
export declare class NgtModalBodyComponent implements AfterViewInit {
|
|
5
|
+
private changeDetector;
|
|
6
|
+
private ngtAbilityValidationService;
|
|
7
|
+
isDisabled: boolean;
|
|
8
|
+
constructor(changeDetector: ChangeDetectorRef, ngtAbilityValidationService: NgtAbilityValidationService);
|
|
9
|
+
ngAfterViewInit(): Promise<void>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtModalBodyComponent, [null, { optional: true; }]>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtModalBodyComponent, "ngt-modal-body", never, { "isDisabled": "isDisabled"; }, {}, never, ["*"], false, never>;
|
|
5
12
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, Injector } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector } from '@angular/core';
|
|
2
2
|
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
3
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
+
import { NgtAbilityValidationService } from '../../services/validation/ngt-ability-validation.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtModalComponent {
|
|
6
|
+
export declare class NgtModalComponent implements AfterViewInit {
|
|
6
7
|
private changeDetectorRef;
|
|
7
8
|
private injector;
|
|
8
9
|
private tailStylizableDirective;
|
|
10
|
+
private ngtAbilityValidationService;
|
|
9
11
|
customLayout: boolean;
|
|
10
12
|
disableDefaultCloses: boolean;
|
|
13
|
+
isDisabled: boolean;
|
|
11
14
|
ngtStyle: NgtStylizableService;
|
|
12
15
|
onCloseModal: EventEmitter<void>;
|
|
13
16
|
onOpenModal: EventEmitter<void>;
|
|
@@ -15,13 +18,14 @@ export declare class NgtModalComponent {
|
|
|
15
18
|
viewMode: boolean;
|
|
16
19
|
private keydownEventWasAdded;
|
|
17
20
|
private subscriptions;
|
|
18
|
-
constructor(changeDetectorRef: ChangeDetectorRef, injector: Injector, tailStylizableDirective: NgtStylizableDirective);
|
|
21
|
+
constructor(changeDetectorRef: ChangeDetectorRef, injector: Injector, tailStylizableDirective: NgtStylizableDirective, ngtAbilityValidationService: NgtAbilityValidationService);
|
|
22
|
+
ngAfterViewInit(): Promise<void>;
|
|
19
23
|
close(): void;
|
|
20
24
|
open(): void;
|
|
21
25
|
private addKeydownEventListener;
|
|
22
26
|
private bindOnCloseModalByHeaderSubscription;
|
|
23
27
|
private destroySubscriptions;
|
|
24
28
|
private closeViewMode;
|
|
25
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtModalComponent, [null, null, { optional: true; self: true; }]>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtModalComponent, "ngt-modal", never, { "customLayout": "customLayout"; "disableDefaultCloses": "disableDefaultCloses"; "ngtStyle": "ngtStyle"; }, { "onCloseModal": "onCloseModal"; "onOpenModal": "onOpenModal"; }, never, ["[header]", "[body]", "[footer]", "*"], false, never>;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtModalComponent, [null, null, { optional: true; self: true; }, { optional: true; }]>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtModalComponent, "ngt-modal", never, { "customLayout": "customLayout"; "disableDefaultCloses": "disableDefaultCloses"; "isDisabled": "isDisabled"; "ngtStyle": "ngtStyle"; }, { "onCloseModal": "onCloseModal"; "onOpenModal": "onOpenModal"; }, never, ["[header]", "[body]", "[footer]", "*"], false, never>;
|
|
27
31
|
}
|
|
@@ -7,14 +7,18 @@ import { NgtTranslateService } from '../../services/http/ngt-translate.service';
|
|
|
7
7
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
8
8
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
9
9
|
import { NgtInputComponent } from '../ngt-input/ngt-input.component';
|
|
10
|
+
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
11
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
10
12
|
import * as i0 from "@angular/core";
|
|
11
13
|
export declare class NgtMultiSelectComponent extends NgtBaseNgModel implements OnInit, OnDestroy, OnChanges {
|
|
12
14
|
private ngtHttpService;
|
|
13
15
|
private injector;
|
|
14
16
|
private changeDetector;
|
|
15
|
-
|
|
17
|
+
private ngtForm;
|
|
18
|
+
private ngtSection;
|
|
19
|
+
private ngtModal;
|
|
20
|
+
private ngtStylizableDirective;
|
|
16
21
|
formContainer: ControlContainer;
|
|
17
|
-
ngtFormComponent: NgtFormComponent;
|
|
18
22
|
ngtTranslateService: NgtTranslateService;
|
|
19
23
|
containerRef: ElementRef;
|
|
20
24
|
inputSearch: NgtInputComponent;
|
|
@@ -63,7 +67,7 @@ export declare class NgtMultiSelectComponent extends NgtBaseNgModel implements O
|
|
|
63
67
|
private previousSearchTerm;
|
|
64
68
|
private becameVisible;
|
|
65
69
|
private selectableResourcesCount;
|
|
66
|
-
constructor(ngtHttpService: NgtHttpService, injector: Injector, changeDetector: ChangeDetectorRef, ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer,
|
|
70
|
+
constructor(ngtHttpService: NgtHttpService, injector: Injector, changeDetector: ChangeDetectorRef, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtTranslateService: NgtTranslateService);
|
|
67
71
|
onScroll(event: any): void;
|
|
68
72
|
ngOnInit(): void;
|
|
69
73
|
ngDoCheck(): void;
|
|
@@ -81,6 +85,7 @@ export declare class NgtMultiSelectComponent extends NgtBaseNgModel implements O
|
|
|
81
85
|
getSelectableElements(): Array<any>;
|
|
82
86
|
getSelectableElementValue(selectableItem: any): string;
|
|
83
87
|
hasValidationErrors(): boolean;
|
|
88
|
+
disabled(): boolean;
|
|
84
89
|
private handleElementSelection;
|
|
85
90
|
private loadData;
|
|
86
91
|
private bindSelectableElements;
|
|
@@ -94,8 +99,9 @@ export declare class NgtMultiSelectComponent extends NgtBaseNgModel implements O
|
|
|
94
99
|
private isSelectedElement;
|
|
95
100
|
private isHidden;
|
|
96
101
|
private isColoquentResources;
|
|
102
|
+
private isDisabledByParent;
|
|
97
103
|
private destroySubscriptions;
|
|
98
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtMultiSelectComponent, [null, null, null, { optional: true;
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtMultiSelectComponent, [null, null, null, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; self: true; }, { optional: true; host: true; }, { optional: true; }]>;
|
|
99
105
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtMultiSelectComponent, "ngt-multi-select", never, { "customOptionTemplate": "customOptionTemplate"; "customHeaderTemplate": "customHeaderTemplate"; "label": "label"; "helpTitle": "helpTitle"; "helpText": "helpText"; "helpTextColor": "helpTextColor"; "helperReverseYPosition": "helperReverseYPosition"; "helperAutoXReverse": "helperAutoXReverse"; "shining": "shining"; "loading": "loading"; "bindLabel": "bindLabel"; "bindSearch": "bindSearch"; "itemsPerPage": "itemsPerPage"; "name": "name"; "remoteResource": "remoteResource"; "items": "items"; "searchable": "searchable"; "isRequired": "isRequired"; "isDisabled": "isDisabled"; }, { "onDataChange": "onDataChange"; }, never, never, false, never>;
|
|
100
106
|
}
|
|
101
107
|
export interface NgtSelectContainerSelectableElementInterface {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterViewInit,
|
|
1
|
+
import { AfterViewInit, ElementRef, Injector, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
3
|
import { NgtBaseNgModel } from '../../base/ngt-base-ng-model';
|
|
4
4
|
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
@@ -6,16 +6,17 @@ import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizab
|
|
|
6
6
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
7
7
|
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
8
8
|
import { NgtRadioButtonContainerComponent } from './ngt-radio-button-container/ngt-radio-button-container.component';
|
|
9
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
9
10
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class NgtRadioButtonComponent extends NgtBaseNgModel implements AfterViewInit,
|
|
11
|
-
private changeDetector;
|
|
11
|
+
export declare class NgtRadioButtonComponent extends NgtBaseNgModel implements AfterViewInit, OnDestroy {
|
|
12
12
|
private injector;
|
|
13
|
-
formContainer: ControlContainer;
|
|
14
13
|
private renderer;
|
|
15
14
|
private ngtStylizableDirective;
|
|
16
15
|
private ngtForm;
|
|
17
|
-
ngtSection
|
|
16
|
+
private ngtSection;
|
|
17
|
+
private ngtModal;
|
|
18
18
|
private ngtRadioButtonContainer;
|
|
19
|
+
formContainer: ControlContainer;
|
|
19
20
|
element: ElementRef;
|
|
20
21
|
label: string;
|
|
21
22
|
name: string;
|
|
@@ -27,14 +28,14 @@ export declare class NgtRadioButtonComponent extends NgtBaseNgModel implements A
|
|
|
27
28
|
helpText: string;
|
|
28
29
|
ngtStyle: NgtStylizableService;
|
|
29
30
|
private subscriptions;
|
|
30
|
-
constructor(
|
|
31
|
+
constructor(injector: Injector, renderer: Renderer2, ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, ngtRadioButtonContainer: NgtRadioButtonContainerComponent, formContainer: ControlContainer);
|
|
31
32
|
ngAfterViewInit(): void;
|
|
32
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
33
33
|
ngOnDestroy(): void;
|
|
34
34
|
change(value: boolean): void;
|
|
35
35
|
onNativeChange(value: boolean): void;
|
|
36
|
-
|
|
36
|
+
disabled(): boolean;
|
|
37
|
+
private isDisabledByParent;
|
|
37
38
|
private destroySubscriptions;
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtRadioButtonComponent, [null, null, { optional: true;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtRadioButtonComponent, [null, null, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; host: true; }]>;
|
|
39
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtRadioButtonComponent, "ngt-radio-button", never, { "label": "label"; "name": "name"; "shining": "shining"; "isSelectable": "isSelectable"; "isDisabled": "isDisabled"; "helpTitle": "helpTitle"; "helpTextColor": "helpTextColor"; "helpText": "helpText"; }, {}, never, never, false, never>;
|
|
40
41
|
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, EventEmitter, Injector } from '@angular/core';
|
|
2
2
|
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
3
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
+
import { NgtAbilityValidationService } from '../../services/validation/ngt-ability-validation.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class NgtSectionComponent implements
|
|
6
|
+
export declare class NgtSectionComponent implements AfterViewInit {
|
|
6
7
|
private injector;
|
|
8
|
+
private changeDetector;
|
|
7
9
|
private ngtStylizableDirective;
|
|
10
|
+
private ngtAbilityValidationService;
|
|
11
|
+
name: string;
|
|
8
12
|
icon: string;
|
|
9
13
|
caption: string;
|
|
10
14
|
subtitle: string;
|
|
@@ -17,16 +21,16 @@ export declare class NgtSectionComponent implements OnChanges {
|
|
|
17
21
|
isDisabled: boolean;
|
|
18
22
|
onRemove: EventEmitter<void>;
|
|
19
23
|
onToggleSection: EventEmitter<boolean>;
|
|
20
|
-
onIsDisabledChange: EventEmitter<boolean>;
|
|
21
24
|
ngtSectionStyle: NgtStylizableService;
|
|
22
25
|
ngtCaptionStyle: NgtStylizableService;
|
|
23
26
|
ngtSubtitleStyle: NgtStylizableService;
|
|
24
|
-
|
|
25
|
-
|
|
27
|
+
canDisplay: boolean;
|
|
28
|
+
constructor(injector: Injector, changeDetector: ChangeDetectorRef, ngtStylizableDirective: NgtStylizableDirective, ngtAbilityValidationService: NgtAbilityValidationService);
|
|
29
|
+
ngAfterViewInit(): Promise<void>;
|
|
26
30
|
open(): void;
|
|
27
31
|
close(): void;
|
|
28
32
|
toggle(): void;
|
|
29
33
|
remove(event: Event): void;
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtSectionComponent, [null, { optional: true; self: true; }]>;
|
|
31
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtSectionComponent, "ngt-section", never, { "icon": "icon"; "caption": "caption"; "subtitle": "subtitle"; "accordion": "accordion"; "showSection": "showSection"; "removable": "removable"; "helpTitle": "helpTitle"; "helpText": "helpText"; "helpIconColor": "helpIconColor"; "isDisabled": "isDisabled"; }, { "onRemove": "onRemove"; "onToggleSection": "onToggleSection";
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtSectionComponent, [null, null, { optional: true; self: true; }, { optional: true; }]>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtSectionComponent, "ngt-section", never, { "name": "name"; "icon": "icon"; "caption": "caption"; "subtitle": "subtitle"; "accordion": "accordion"; "showSection": "showSection"; "removable": "removable"; "helpTitle": "helpTitle"; "helpText": "helpText"; "helpIconColor": "helpIconColor"; "isDisabled": "isDisabled"; }, { "onRemove": "onRemove"; "onToggleSection": "onToggleSection"; }, never, ["*"], false, never>;
|
|
32
36
|
}
|
|
@@ -9,16 +9,18 @@ import { NgtTranslateService } from '../../services/http/ngt-translate.service';
|
|
|
9
9
|
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
10
10
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
11
11
|
import { NgtSectionComponent } from '../ngt-section/ngt-section.component';
|
|
12
|
+
import { NgtModalComponent } from '../ngt-modal/ngt-modal.component';
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export declare class NgtSelectComponent extends NgtBaseNgModel implements OnChanges, OnDestroy, OnInit, DoCheck {
|
|
14
15
|
ngtStylizableDirective: NgtStylizableDirective;
|
|
15
|
-
private injector;
|
|
16
16
|
formContainer: ControlContainer;
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
ngtTranslateService: NgtTranslateService;
|
|
18
|
+
private injector;
|
|
19
19
|
private ngtHttp;
|
|
20
20
|
private changeDetector;
|
|
21
|
-
|
|
21
|
+
private ngtForm;
|
|
22
|
+
private ngtSection;
|
|
23
|
+
private ngtModal;
|
|
22
24
|
ngSelectComponent: NgSelectComponent;
|
|
23
25
|
ngtOptionTemplate: TemplateRef<any>;
|
|
24
26
|
ngtOptionSelectedTemplate: TemplateRef<any>;
|
|
@@ -92,7 +94,7 @@ export declare class NgtSelectComponent extends NgtBaseNgModel implements OnChan
|
|
|
92
94
|
private currentState;
|
|
93
95
|
private searchTimeout;
|
|
94
96
|
private hadFirstItemsLoad;
|
|
95
|
-
constructor(ngtStylizableDirective: NgtStylizableDirective,
|
|
97
|
+
constructor(ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtTranslateService: NgtTranslateService, injector: Injector, ngtHttp: NgtHttpService, changeDetector: ChangeDetectorRef, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent);
|
|
96
98
|
compareWith: (a: any, b: any) => boolean;
|
|
97
99
|
ngOnInit(): void;
|
|
98
100
|
ngAfterViewInit(): void;
|
|
@@ -114,6 +116,7 @@ export declare class NgtSelectComponent extends NgtBaseNgModel implements OnChan
|
|
|
114
116
|
}): void;
|
|
115
117
|
hasSelectedValue(): string;
|
|
116
118
|
getSelectClass(): string;
|
|
119
|
+
disabled(): boolean;
|
|
117
120
|
private initNgSelectItems;
|
|
118
121
|
private initComponentValidation;
|
|
119
122
|
private sortSelectedItems;
|
|
@@ -131,8 +134,9 @@ export declare class NgtSelectComponent extends NgtBaseNgModel implements OnChan
|
|
|
131
134
|
private canLoadItems;
|
|
132
135
|
private canAutoSelectUniqueOption;
|
|
133
136
|
private bindSubscriptions;
|
|
137
|
+
private isDisabledByParent;
|
|
134
138
|
private destroySubscriptions;
|
|
135
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtSelectComponent, [{ optional: true; self: true; },
|
|
139
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtSelectComponent, [{ optional: true; self: true; }, { optional: true; host: true; }, { optional: true; }, null, null, null, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }]>;
|
|
136
140
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtSelectComponent, "ngt-select", never, { "label": "label"; "labelIcon": "labelIcon"; "labelIconColor": "labelIconColor"; "helpTitle": "helpTitle"; "helpText": "helpText"; "helpTextColor": "helpTextColor"; "shining": "shining"; "loading": "loading"; "loadingText": "loadingText"; "notFoundText": "notFoundText"; "dropdownPosition": "dropdownPosition"; "typeToSearchText": "typeToSearchText"; "clearAllTooltip": "clearAllTooltip"; "placeholder": "placeholder"; "createText": "createText"; "labelForId": "labelForId"; "dropdownPanelMinHeight": "dropdownPanelMinHeight"; "helperReverseYPosition": "helperReverseYPosition"; "helperAutoXReverse": "helperAutoXReverse"; "name": "name"; "autoLoad": "autoLoad"; "allowCreate": "allowCreate"; "allowOriginalItemsUnselect": "allowOriginalItemsUnselect"; "isDisabled": "isDisabled"; "isReadonly": "isReadonly"; "remoteResource": "remoteResource"; "hideSelected": "hideSelected"; "bindLabel": "bindLabel"; "bindValue": "bindValue"; "items": "items"; "inputAttrs": "inputAttrs"; "closeOnSelect": "closeOnSelect"; "clearable": "clearable"; "groupBy": "groupBy"; "maxSelectedItems": "maxSelectedItems"; "multiple": "multiple"; "searchable": "searchable"; "clearSearchOnAdd": "clearSearchOnAdd"; "virtualScroll": "virtualScroll"; "tabIndex": "tabIndex"; "typeahead": "typeahead"; "guessCompareWith": "guessCompareWith"; "autoSelectUniqueOption": "autoSelectUniqueOption"; "groupValue": "groupValue"; "trackBy": "trackBy"; "sortSelectedItemsFn": "sortSelectedItemsFn"; "isRequired": "isRequired"; "compareWith": "compareWith"; }, { "onLoadRemoteResource": "onLoadRemoteResource"; "onSelectedItemRemove": "onSelectedItemRemove"; "onClear": "onClear"; "onClose": "onClose"; }, ["ngtOptionTemplate", "ngtOptionSelectedTemplate", "ngtSelectHeaderTemplate"], never, false, never>;
|
|
137
141
|
}
|
|
138
142
|
export declare enum NgtSelectDropdownPanelHeight {
|