ng-tailwind 6.4.6 → 7.0.1
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/base/{ngt-base-ng-model.d.ts → ngt-control-value-accessor.d.ts} +15 -17
- package/components/forms/reactive/ngt-reactive-checkbox/ngt-reactive-checkbox.component.d.ts +54 -0
- package/components/forms/reactive/ngt-reactive-date/ngt-reactive-date.component.d.ts +96 -0
- package/components/forms/reactive/ngt-reactive-date/services/ngt-reactive-date-formatter.service.d.ts +12 -0
- package/components/forms/reactive/ngt-reactive-dropzone/ngt-reactive-dropzone.component.d.ts +106 -0
- package/components/forms/reactive/ngt-reactive-dropzone/services/ngt-reactive-dropzone-error.service.d.ts +14 -0
- package/components/forms/reactive/ngt-reactive-dropzone/services/ngt-reactive-dropzone-file.service.d.ts +24 -0
- package/components/forms/reactive/ngt-reactive-dropzone/services/ngt-reactive-dropzone-state.service.d.ts +15 -0
- package/components/forms/reactive/ngt-reactive-dropzone/services/ngt-reactive-dropzone-validation.service.d.ts +11 -0
- package/components/forms/reactive/ngt-reactive-dropzone/services/ngt-reactive-dropzone-viewer.service.d.ts +22 -0
- package/components/forms/reactive/ngt-reactive-form/ngt-reactive-form.component.d.ts +55 -0
- package/components/forms/reactive/ngt-reactive-input/ngt-reactive-input.component.d.ts +134 -0
- package/components/forms/reactive/ngt-reactive-input/services/ngt-reactive-input-loader.service.d.ts +8 -0
- package/components/forms/reactive/ngt-reactive-input/services/ngt-reactive-input-mask.service.d.ts +10 -0
- package/components/forms/reactive/ngt-reactive-input/services/ngt-reactive-input-validation.service.d.ts +43 -0
- package/components/forms/reactive/ngt-reactive-radio-button/ngt-reactive-radio-button-container/ngt-reactive-radio-button-container.component.d.ts +9 -0
- package/components/forms/reactive/ngt-reactive-radio-button/ngt-reactive-radio-button.component.d.ts +58 -0
- package/components/forms/reactive/ngt-reactive-select/ngt-reactive-select.component.d.ts +152 -0
- package/components/forms/reactive/ngt-reactive-select/ngt-reactive-select.directive.d.ts +20 -0
- package/components/forms/reactive/ngt-reactive-select/services/ngt-reactive-select-dropdown.service.d.ts +10 -0
- package/components/forms/reactive/ngt-reactive-select/services/ngt-reactive-select-items.service.d.ts +32 -0
- package/components/forms/reactive/ngt-reactive-select/services/ngt-reactive-select-search.service.d.ts +34 -0
- package/components/forms/reactive/ngt-reactive-select/services/ngt-reactive-select-state.service.d.ts +22 -0
- package/components/forms/reactive/ngt-reactive-select/services/ngt-reactive-select-tag-manager.service.d.ts +17 -0
- package/components/forms/reactive/ngt-reactive-select/services/ngt-reactive-select-validation.service.d.ts +16 -0
- package/components/forms/reactive/ngt-reactive-slider/ngt-reactive-slider.component.d.ts +44 -0
- package/components/forms/reactive/ngt-reactive-textarea/ngt-reactive-textarea.component.d.ts +76 -0
- package/components/forms/reactive/ngt-reactive-textarea/services/ngt-reactive-textarea-validation.service.d.ts +18 -0
- package/components/{ngt-checkbox → forms/template-driven/ngt-checkbox}/ngt-checkbox.component.d.ts +9 -9
- package/components/{ngt-checkbox → forms/template-driven/ngt-checkbox}/ngt-checkbox.module.d.ts +3 -3
- package/components/{ngt-date → forms/template-driven/ngt-date}/ngt-date.component.d.ts +9 -9
- package/components/{ngt-date → forms/template-driven/ngt-date}/ngt-date.module.d.ts +4 -4
- package/components/{ngt-dropzone → forms/template-driven/ngt-dropzone}/ngt-dropzone.component.d.ts +16 -12
- package/components/forms/template-driven/ngt-dropzone/ngt-dropzone.module.d.ts +16 -0
- package/components/{ngt-form → forms/template-driven/ngt-form}/ngt-form-validation-message/ngt-form-validation-message.component.d.ts +4 -4
- package/components/{ngt-form → forms/template-driven/ngt-form}/ngt-form.component.d.ts +2 -2
- package/components/{ngt-form → forms/template-driven/ngt-form}/ngt-form.module.d.ts +3 -3
- package/components/{ngt-input → forms/template-driven/ngt-input}/ngt-input.component.d.ts +12 -14
- package/components/{ngt-input → forms/template-driven/ngt-input}/ngt-input.module.d.ts +5 -5
- package/components/{ngt-multi-select → forms/template-driven/ngt-multi-select}/ngt-multi-select.component.d.ts +11 -11
- package/components/{ngt-multi-select → forms/template-driven/ngt-multi-select}/ngt-multi-select.module.d.ts +5 -5
- package/components/{ngt-radio-button → forms/template-driven/ngt-radio-button}/ngt-radio-button.component.d.ts +9 -9
- package/components/{ngt-radio-button → forms/template-driven/ngt-radio-button}/ngt-radio-button.module.d.ts +3 -3
- package/components/{ngt-select → forms/template-driven/ngt-select}/ngt-select.component.d.ts +11 -11
- package/components/{ngt-select → forms/template-driven/ngt-select}/ngt-select.module.d.ts +5 -5
- package/components/{ngt-slider → forms/template-driven/ngt-slider}/ngt-slider.component.d.ts +2 -2
- package/components/{ngt-slider → forms/template-driven/ngt-slider}/ngt-slider.module.d.ts +1 -1
- package/components/{ngt-textarea → forms/template-driven/ngt-textarea}/ngt-textarea.component.d.ts +8 -8
- package/components/{ngt-textarea → forms/template-driven/ngt-textarea}/ngt-textarea.module.d.ts +4 -4
- package/components/ngt-action/ngt-action.component.d.ts +5 -3
- package/components/ngt-button/ngt-button.component.d.ts +5 -3
- package/components/ngt-button/ngt-button.module.d.ts +1 -1
- package/components/ngt-datatable/ngt-datatable.component.d.ts +2 -3
- package/components/ngt-datatable/ngt-datatable.module.d.ts +2 -2
- package/components/ngt-datatable/ngt-td-check/ngt-td-check.component.d.ts +1 -1
- package/components/ngt-datatable/ngt-th/ngt-th.component.d.ts +3 -5
- package/components/ngt-datatable/ngt-th-check/ngt-th-check.component.d.ts +1 -1
- package/components/ngt-datatable/ngt-thead/ngt-thead.component.d.ts +4 -8
- package/components/ngt-dropdown/ngt-dropdown-container/ngt-dropdown-container.component.d.ts +6 -4
- package/components/ngt-dropdown/ngt-dropdown.component.d.ts +35 -24
- package/components/ngt-helper/ngt-helper.component.d.ts +24 -14
- package/components/ngt-modal/ngt-modal.component.d.ts +4 -2
- package/components/ngt-pagination/ngt-pagination.module.d.ts +1 -1
- package/components/ngt-popover/ngt-popover.module.d.ts +2 -2
- package/components/ngt-portlet/ngt-portlet.module.d.ts +2 -2
- package/components/ngt-section/ngt-section.component.d.ts +4 -2
- package/components/ngt-section/ngt-section.module.d.ts +2 -2
- package/components/ngt-validation/ngt-validation.component.d.ts +10 -4
- package/components/{ngt-dropzone → shared}/custom-dropzone-preview/custom-dropzone-preview.component.d.ts +7 -5
- package/components/shared/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.d.ts +31 -0
- package/components/shared/ngt-dropzone-view/ngt-dropzone-view.component.d.ts +38 -0
- package/fesm2022/ng-tailwind.mjs +6746 -3341
- package/fesm2022/ng-tailwind.mjs.map +1 -1
- package/helpers/routing/route.d.ts +2 -1
- package/helpers/validators/validation.helper.d.ts +24 -0
- package/package.json +3 -3
- package/public-api.d.ts +63 -45
- package/services/http/ngt-attachment-http.service.d.ts +1 -1
- package/services/validation/ngt-reactive-form-validation.service.d.ts +20 -0
- package/components/ngt-dropdown/ngt-dropdown.module.d.ts +0 -9
- package/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.d.ts +0 -25
- package/components/ngt-dropzone/ngt-dropzone-view/ngt-dropzone-view.component.d.ts +0 -35
- package/components/ngt-dropzone/ngt-dropzone.module.d.ts +0 -17
- package/components/ngt-helper/ngt-helper.module.d.ts +0 -10
- /package/components/{ngt-radio-button → forms/template-driven/ngt-radio-button}/ngt-radio-button-container/ngt-radio-button-container.component.d.ts +0 -0
- /package/components/{ngt-select → forms/template-driven/ngt-select}/ngt-select.directive.d.ts +0 -0
- /package/{components/ngt-dropzone → meta}/ngt-dropzone.meta.d.ts +0 -0
package/components/{ngt-checkbox → forms/template-driven/ngt-checkbox}/ngt-checkbox.component.d.ts
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, Injector, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import { NgtStylizableDirective } from '
|
|
5
|
-
import { NgtStylizableService } from '
|
|
3
|
+
import { NgtControlValueAccessor } from '../../../../base/ngt-control-value-accessor';
|
|
4
|
+
import { NgtStylizableDirective } from '../../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
5
|
+
import { NgtStylizableService } from '../../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
6
6
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
7
|
-
import { NgtSectionComponent } from '
|
|
8
|
-
import { NgtModalComponent } from '
|
|
7
|
+
import { NgtSectionComponent } from '../../../ngt-section/ngt-section.component';
|
|
8
|
+
import { NgtModalComponent } from '../../../ngt-modal/ngt-modal.component';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare enum NgtCheckboxMode {
|
|
11
11
|
DEFAULT = "DEFAULT",
|
|
@@ -13,14 +13,14 @@ export declare enum NgtCheckboxMode {
|
|
|
13
13
|
SIDE_TOGGLE = "SIDE_TOGGLE",
|
|
14
14
|
RADIO = "RADIO"
|
|
15
15
|
}
|
|
16
|
-
export declare class NgtCheckboxComponent extends
|
|
17
|
-
private injector;
|
|
16
|
+
export declare class NgtCheckboxComponent extends NgtControlValueAccessor implements AfterViewInit, OnChanges, OnDestroy {
|
|
18
17
|
private renderer;
|
|
19
18
|
formContainer: ControlContainer;
|
|
20
19
|
private ngtStylizableDirective;
|
|
21
20
|
private ngtForm;
|
|
22
21
|
private ngtSection;
|
|
23
22
|
private ngtModal;
|
|
23
|
+
protected injector: Injector;
|
|
24
24
|
element: ElementRef;
|
|
25
25
|
label: string;
|
|
26
26
|
shining: boolean;
|
|
@@ -34,7 +34,7 @@ export declare class NgtCheckboxComponent extends NgtBaseNgModel implements Afte
|
|
|
34
34
|
helperAutoXReverse: boolean;
|
|
35
35
|
ngtStyle: NgtStylizableService;
|
|
36
36
|
private subscriptions;
|
|
37
|
-
constructor(
|
|
37
|
+
constructor(renderer: Renderer2, formContainer: ControlContainer, ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, injector: Injector);
|
|
38
38
|
ngAfterViewInit(): void;
|
|
39
39
|
ngOnChanges(changes: SimpleChanges): void;
|
|
40
40
|
ngOnDestroy(): void;
|
|
@@ -48,6 +48,6 @@ export declare class NgtCheckboxComponent extends NgtBaseNgModel implements Afte
|
|
|
48
48
|
disabled(): boolean;
|
|
49
49
|
private isDisabledByParent;
|
|
50
50
|
private destroySubscriptions;
|
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtCheckboxComponent, [null,
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtCheckboxComponent, [null, { optional: true; host: true; }, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
52
52
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtCheckboxComponent, "ngt-checkbox", never, { "label": { "alias": "label"; "required": false; }; "shining": { "alias": "shining"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isClickDisabled": { "alias": "isClickDisabled"; "required": false; }; "name": { "alias": "name"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "helpTextColor": { "alias": "helpTextColor"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "helperAutoXReverse": { "alias": "helperAutoXReverse"; "required": false; }; }, {}, never, never, false, never>;
|
|
53
53
|
}
|
package/components/{ngt-checkbox → forms/template-driven/ngt-checkbox}/ngt-checkbox.module.d.ts
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./ngt-checkbox.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "
|
|
5
|
-
import * as i4 from "
|
|
4
|
+
import * as i3 from "../../../ngt-shining/ngt-shining.module";
|
|
5
|
+
import * as i4 from "../../../ngt-helper/ngt-helper.component";
|
|
6
6
|
export declare class NgtCheckboxModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtCheckboxModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtCheckboxModule, [typeof i1.NgtCheckboxComponent], [typeof i2.CommonModule, typeof i3.NgtShiningModule, typeof i4.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtCheckboxModule, [typeof i1.NgtCheckboxComponent], [typeof i2.CommonModule, typeof i3.NgtShiningModule, typeof i4.NgtHelperComponent], [typeof i1.NgtCheckboxComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgtCheckboxModule>;
|
|
10
10
|
}
|
|
@@ -2,12 +2,12 @@ import { Injector, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
3
|
import { FlatpickrOptions } from 'ev-date-picker';
|
|
4
4
|
import { EvDatePickerComponent } from 'ev-date-picker/ev-date-picker.component';
|
|
5
|
-
import {
|
|
6
|
-
import { NgtStylizableDirective } from '
|
|
7
|
-
import { NgtStylizableService } from '
|
|
5
|
+
import { NgtControlValueAccessor } from '../../../../base/ngt-control-value-accessor';
|
|
6
|
+
import { NgtStylizableDirective } from '../../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
7
|
+
import { NgtStylizableService } from '../../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
8
8
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
9
|
-
import { NgtSectionComponent } from '
|
|
10
|
-
import { NgtModalComponent } from '
|
|
9
|
+
import { NgtSectionComponent } from '../../../ngt-section/ngt-section.component';
|
|
10
|
+
import { NgtModalComponent } from '../../../ngt-modal/ngt-modal.component';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare enum NgtDateLocale {
|
|
13
13
|
BRAZIL = "BRAZIL",
|
|
@@ -17,13 +17,13 @@ export declare enum NgtDateMode {
|
|
|
17
17
|
SINGLE = "SINGLE",
|
|
18
18
|
RANGE = "RANGE"
|
|
19
19
|
}
|
|
20
|
-
export declare class NgtDateComponent extends
|
|
20
|
+
export declare class NgtDateComponent extends NgtControlValueAccessor implements OnInit, OnDestroy {
|
|
21
21
|
formContainer: ControlContainer;
|
|
22
|
-
private injector;
|
|
23
22
|
private ngtStylizableDirective;
|
|
24
23
|
private ngtForm;
|
|
25
24
|
private ngtSection;
|
|
26
25
|
private ngtModal;
|
|
26
|
+
protected injector: Injector;
|
|
27
27
|
evDatePicker: EvDatePickerComponent;
|
|
28
28
|
label: string;
|
|
29
29
|
placeholder: string;
|
|
@@ -61,7 +61,7 @@ export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit,
|
|
|
61
61
|
};
|
|
62
62
|
private subscriptions;
|
|
63
63
|
private lastInputedDateString;
|
|
64
|
-
constructor(formContainer: ControlContainer,
|
|
64
|
+
constructor(formContainer: ControlContainer, ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, injector: Injector);
|
|
65
65
|
ngOnChanges(changes: SimpleChanges): void;
|
|
66
66
|
ngOnInit(): void;
|
|
67
67
|
ngOnDestroy(): void;
|
|
@@ -81,6 +81,6 @@ export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit,
|
|
|
81
81
|
private convertDateToAmericanFormat;
|
|
82
82
|
private isDisabledByParent;
|
|
83
83
|
private destroySubscriptions;
|
|
84
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDateComponent, [{ optional: true; host: true; },
|
|
84
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDateComponent, [{ optional: true; host: true; }, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
85
85
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtDateComponent, "ngt-date", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "helpTextColor": { "alias": "helpTextColor"; "required": false; }; "shining": { "alias": "shining"; "required": false; }; "dateFormat": { "alias": "dateFormat"; "required": false; }; "dateFormatNgModel": { "alias": "dateFormatNgModel"; "required": false; }; "showCalendarIcon": { "alias": "showCalendarIcon"; "required": false; }; "helperReverseYPosition": { "alias": "helperReverseYPosition"; "required": false; }; "name": { "alias": "name"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isReadonly": { "alias": "isReadonly"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "time_24hr": { "alias": "time_24hr"; "required": false; }; "enableTime": { "alias": "enableTime"; "required": false; }; "noCalendar": { "alias": "noCalendar"; "required": false; }; "minuteIncrement": { "alias": "minuteIncrement"; "required": false; }; "allowInput": { "alias": "allowInput"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "defaultDate": { "alias": "defaultDate"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
86
86
|
}
|
|
@@ -3,11 +3,11 @@ import * as i1 from "./ngt-date.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "ev-date-picker";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
6
|
+
import * as i5 from "../../../ngt-validation/ngt-validation.module";
|
|
7
|
+
import * as i6 from "../../../ngt-shining/ngt-shining.module";
|
|
8
|
+
import * as i7 from "../../../ngt-helper/ngt-helper.component";
|
|
9
9
|
export declare class NgtDateModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDateModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtDateModule, [typeof i1.NgtDateComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.EvDatePickerModule, typeof i5.NgtValidationModule, typeof i6.NgtShiningModule, typeof i7.
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtDateModule, [typeof i1.NgtDateComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.EvDatePickerModule, typeof i5.NgtValidationModule, typeof i6.NgtShiningModule, typeof i7.NgtHelperComponent], [typeof i1.NgtDateComponent]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgtDateModule>;
|
|
13
13
|
}
|
package/components/{ngt-dropzone → forms/template-driven/ngt-dropzone}/ngt-dropzone.component.d.ts
RENAMED
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, SimpleChanges, WritableSignal } from '@angular/core';
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
3
|
import { NgxDropzoneChangeEvent, NgxDropzoneComponent } from 'ngx-dropzone';
|
|
4
|
-
import {
|
|
5
|
-
import { NgtAttachmentHttpService } from '
|
|
6
|
-
import { NgtStylizableService } from '
|
|
7
|
-
import { NgtDropzoneFileViewerComponent } from '
|
|
8
|
-
import { NgtDropzoneErrorType, NgtDropzoneFile, NgtDropzonePreviewType } from '
|
|
4
|
+
import { NgtControlValueAccessor } from '../../../../base/ngt-control-value-accessor';
|
|
5
|
+
import { NgtAttachmentHttpService } from '../../../../services/http/ngt-attachment-http.service';
|
|
6
|
+
import { NgtStylizableService } from '../../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
7
|
+
import { NgtDropzoneFileViewerComponent } from '../../../shared/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component';
|
|
8
|
+
import { NgtDropzoneErrorType, NgtDropzoneFile, NgtDropzonePreviewType } from '../../../../meta/ngt-dropzone.meta';
|
|
9
9
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
10
|
-
import { NgtSectionComponent } from '
|
|
11
|
-
import { NgtModalComponent } from '
|
|
10
|
+
import { NgtSectionComponent } from '../../../ngt-section/ngt-section.component';
|
|
11
|
+
import { NgtModalComponent } from '../../../ngt-modal/ngt-modal.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class NgtDropzoneComponent extends
|
|
13
|
+
export declare class NgtDropzoneComponent extends NgtControlValueAccessor implements OnInit, OnDestroy, AfterContentChecked {
|
|
14
14
|
formContainer: ControlContainer;
|
|
15
|
-
private injector;
|
|
16
15
|
private changeDetector;
|
|
17
16
|
private ngtAttachmentHttpService;
|
|
18
17
|
private ngtForm;
|
|
19
18
|
private ngtSection;
|
|
20
19
|
private ngtModal;
|
|
20
|
+
protected injector: Injector;
|
|
21
21
|
container: ElementRef;
|
|
22
22
|
ngxDropzone: NgxDropzoneComponent;
|
|
23
23
|
ngtDropzoneFileViewer: NgtDropzoneFileViewerComponent;
|
|
@@ -61,8 +61,11 @@ export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnIn
|
|
|
61
61
|
ngtDropzoneLoaderStyle: NgtStylizableService;
|
|
62
62
|
ngxElementId: string;
|
|
63
63
|
imageViewerOptions: any;
|
|
64
|
+
fileViewerUrl: WritableSignal<string>;
|
|
65
|
+
fileViewerFileName: WritableSignal<string>;
|
|
66
|
+
fileViewerFileSize: WritableSignal<number>;
|
|
64
67
|
private subscriptions;
|
|
65
|
-
constructor(formContainer: ControlContainer,
|
|
68
|
+
constructor(formContainer: ControlContainer, changeDetector: ChangeDetectorRef, ngtAttachmentHttpService: NgtAttachmentHttpService, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, injector: Injector);
|
|
66
69
|
ngOnChanges(changes: SimpleChanges): void;
|
|
67
70
|
ngAfterContentChecked(): void;
|
|
68
71
|
ngOnInit(): void;
|
|
@@ -70,6 +73,7 @@ export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnIn
|
|
|
70
73
|
imagePreview(index: any): void;
|
|
71
74
|
onImageClick(element: any, index?: any): void;
|
|
72
75
|
onFileClick(url: string, name: string, size: number): void;
|
|
76
|
+
onCloseFileViewer(): void;
|
|
73
77
|
onSelect(event: NgxDropzoneChangeEvent): Promise<void>;
|
|
74
78
|
uploadFiles(files: Array<File>): Promise<void>;
|
|
75
79
|
loadFilePreview(attachments: any): Promise<void>;
|
|
@@ -90,6 +94,6 @@ export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnIn
|
|
|
90
94
|
private updateValidations;
|
|
91
95
|
private isDisabledByParent;
|
|
92
96
|
private destroySubscriptions;
|
|
93
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDropzoneComponent, [{ optional: true; host: true; }, null,
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDropzoneComponent, [{ optional: true; host: true; }, null, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
94
98
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtDropzoneComponent, "ngt-dropzone", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "helpTextColor": { "alias": "helpTextColor"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "resources": { "alias": "resources"; "required": false; }; "multipleSelection": { "alias": "multipleSelection"; "required": false; }; "itemsLimit": { "alias": "itemsLimit"; "required": false; }; "showFileName": { "alias": "showFileName"; "required": false; }; "disableClick": { "alias": "disableClick"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "viewMode": { "alias": "viewMode"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "canDownloadFile": { "alias": "canDownloadFile"; "required": false; }; "verticalExpandable": { "alias": "verticalExpandable"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "hideNgxDropzone": { "alias": "hideNgxDropzone"; "required": false; }; "acceptedFiles": { "alias": "acceptedFiles"; "required": false; }; "unacceptedFiles": { "alias": "unacceptedFiles"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "previewType": { "alias": "previewType"; "required": false; }; "name": { "alias": "name"; "required": false; }; "remoteResource": { "alias": "remoteResource"; "required": false; }; }, { "onFileSelected": "onFileSelected"; "onFileSelectError": "onFileSelectError"; "onFileUploadFail": "onFileUploadFail"; "onFileRemoved": "onFileRemoved"; "onFileUploadInit": "onFileUploadInit"; "onFileUploaded": "onFileUploaded"; "onFilePreviewLoaded": "onFilePreviewLoaded"; }, never, never, false, never>;
|
|
95
99
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./ngt-dropzone.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/forms";
|
|
5
|
+
import * as i4 from "../../../ngt-validation/ngt-validation.module";
|
|
6
|
+
import * as i5 from "ngx-dropzone";
|
|
7
|
+
import * as i6 from "../../../ngt-svg/ngt-svg.module";
|
|
8
|
+
import * as i7 from "../../../ngt-helper/ngt-helper.component";
|
|
9
|
+
import * as i8 from "../../../shared/custom-dropzone-preview/custom-dropzone-preview.component";
|
|
10
|
+
import * as i9 from "../../../shared/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component";
|
|
11
|
+
import * as i10 from "../../../shared/ngt-dropzone-view/ngt-dropzone-view.component";
|
|
12
|
+
export declare class NgtDropzoneModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtDropzoneModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtDropzoneModule, [typeof i1.NgtDropzoneComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NgtValidationModule, typeof i5.NgxDropzoneModule, typeof i6.NgtSvgModule, typeof i7.NgtHelperComponent, typeof i8.CustomDropzonePreviewComponent, typeof i9.NgtDropzoneFileViewerComponent, typeof i10.NgtDropzoneViewComponent], [typeof i1.NgtDropzoneComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgtDropzoneModule>;
|
|
16
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NgtTranslateService } from '
|
|
1
|
+
import { NgtTranslateService } from '../../../../../services/http/ngt-translate.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class NgtFormValidationMessageComponent {
|
|
4
4
|
ngtTranslateService: NgtTranslateService;
|
|
5
|
-
canShowValidationMessage: boolean
|
|
6
|
-
message: string
|
|
5
|
+
readonly canShowValidationMessage: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
readonly message: import("@angular/core").InputSignal<string>;
|
|
7
7
|
constructor(ngtTranslateService: NgtTranslateService);
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtFormValidationMessageComponent, [{ optional: true; }]>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgtFormValidationMessageComponent, "ngt-form-validation-message", never, { "canShowValidationMessage": { "alias": "canShowValidationMessage"; "required": false; }; "message": { "alias": "message"; "required": false; }; }, {}, never, never,
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgtFormValidationMessageComponent, "ngt-form-validation-message", never, { "canShowValidationMessage": { "alias": "canShowValidationMessage"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
10
10
|
}
|
|
@@ -2,8 +2,8 @@ import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } fro
|
|
|
2
2
|
import { ControlContainer, NgForm } from '@angular/forms';
|
|
3
3
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
|
-
import { NgtHttpFormService } from '
|
|
6
|
-
import { NgtAbilityValidationService } from '
|
|
5
|
+
import { NgtHttpFormService } from '../../../../services/http/ngt-http-form.service';
|
|
6
|
+
import { NgtAbilityValidationService } from '../../../../services/validation/ngt-ability-validation.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare enum NgtFormState {
|
|
9
9
|
CREATING = "CREATING",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./ngt-form.component";
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "./ngt-form-validation-message/ngt-form-validation-message.component";
|
|
5
5
|
export declare class NgtFormModule {
|
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtFormModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtFormModule, [typeof i1.NgtFormComponent, typeof i2.
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtFormModule, [typeof i1.NgtFormComponent], [typeof i2.CommonModule, typeof i3.NgtFormValidationMessageComponent], [typeof i1.NgtFormComponent, typeof i3.NgtFormValidationMessageComponent]>;
|
|
8
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgtFormModule>;
|
|
9
9
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { AsyncValidatorFn, ControlContainer } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import { NgtStylizableDirective } from '
|
|
5
|
-
import { NgtHttpFindExistingResourceInterface, NgtHttpResourceService } from '
|
|
6
|
-
import { NgtHttpValidationService } from '
|
|
7
|
-
import { NgtTranslateService } from '
|
|
8
|
-
import { NgtStylizableService } from '
|
|
3
|
+
import { NgtControlValueAccessor } from '../../../../base/ngt-control-value-accessor';
|
|
4
|
+
import { NgtStylizableDirective } from '../../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
5
|
+
import { NgtHttpFindExistingResourceInterface, NgtHttpResourceService } from '../../../../services/http/ngt-http-resource.service';
|
|
6
|
+
import { NgtHttpValidationService } from '../../../../services/http/ngt-http-validation.service';
|
|
7
|
+
import { NgtTranslateService } from '../../../../services/http/ngt-translate.service';
|
|
8
|
+
import { NgtStylizableService } from '../../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
9
9
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
10
|
-
import { NgtSectionComponent } from '
|
|
11
|
-
import { NgtModalComponent } from '
|
|
10
|
+
import { NgtSectionComponent } from '../../../ngt-section/ngt-section.component';
|
|
11
|
+
import { NgtModalComponent } from '../../../ngt-modal/ngt-modal.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class NgtInputComponent extends
|
|
14
|
-
private injector;
|
|
13
|
+
export declare class NgtInputComponent extends NgtControlValueAccessor implements OnInit, OnDestroy {
|
|
15
14
|
private renderer;
|
|
16
15
|
private changeDetector;
|
|
17
16
|
private ngtStylizableDirective;
|
|
@@ -22,6 +21,7 @@ export declare class NgtInputComponent extends NgtBaseNgModel implements OnInit,
|
|
|
22
21
|
private ngtForm;
|
|
23
22
|
private ngtSection;
|
|
24
23
|
private ngtModal;
|
|
24
|
+
protected injector: Injector;
|
|
25
25
|
ngtTranslateService: NgtTranslateService;
|
|
26
26
|
element: ElementRef;
|
|
27
27
|
label: string;
|
|
@@ -84,7 +84,7 @@ export declare class NgtInputComponent extends NgtBaseNgModel implements OnInit,
|
|
|
84
84
|
private uniqueValidatorTimeout;
|
|
85
85
|
private searchExistingResourceTimeout;
|
|
86
86
|
private subscriptions;
|
|
87
|
-
constructor(
|
|
87
|
+
constructor(renderer: Renderer2, changeDetector: ChangeDetectorRef, ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtFormComponent: NgtFormComponent, ngtValidationService: NgtHttpValidationService, ngtResourceService: NgtHttpResourceService, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, injector: Injector, ngtTranslateService: NgtTranslateService);
|
|
88
88
|
ngOnInit(): void;
|
|
89
89
|
ngOnChanges(changes: SimpleChanges): void;
|
|
90
90
|
ngOnDestroy(): void;
|
|
@@ -114,8 +114,6 @@ export declare class NgtInputComponent extends NgtBaseNgModel implements OnInit,
|
|
|
114
114
|
private searchExistingResource;
|
|
115
115
|
private validatePhone;
|
|
116
116
|
private uniqueValidator;
|
|
117
|
-
private validatorCNPJ;
|
|
118
|
-
private validatorCPF;
|
|
119
117
|
private getNativeValue;
|
|
120
118
|
private getElementTitle;
|
|
121
119
|
private removeMasks;
|
|
@@ -124,6 +122,6 @@ export declare class NgtInputComponent extends NgtBaseNgModel implements OnInit,
|
|
|
124
122
|
private isDisabledByParent;
|
|
125
123
|
private hasChangesBetweenModels;
|
|
126
124
|
private destroySubscriptions;
|
|
127
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtInputComponent, [null, null,
|
|
125
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtInputComponent, [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; }, null, { optional: true; }]>;
|
|
128
126
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtInputComponent, "ngt-input", never, { "label": { "alias": "label"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "shining": { "alias": "shining"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "helpTextColor": { "alias": "helpTextColor"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "innerLeftIcon": { "alias": "innerLeftIcon"; "required": false; }; "innerLeftIconColor": { "alias": "innerLeftIconColor"; "required": false; }; "innerRightIcon": { "alias": "innerRightIcon"; "required": false; }; "innerRightIconColor": { "alias": "innerRightIconColor"; "required": false; }; "decimalMaskPrecision": { "alias": "decimalMaskPrecision"; "required": false; }; "showCharactersLength": { "alias": "showCharactersLength"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; "customInnerContentTemplate": { "alias": "customInnerContentTemplate"; "required": false; }; "helperReverseYPosition": { "alias": "helperReverseYPosition"; "required": false; }; "helperAutoXReverse": { "alias": "helperAutoXReverse"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isReadonly": { "alias": "isReadonly"; "required": false; }; "showRoundedIcon": { "alias": "showRoundedIcon"; "required": false; }; "type": { "alias": "type"; "required": false; }; "name": { "alias": "name"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "focus": { "alias": "focus"; "required": false; }; "allowClear": { "alias": "allowClear"; "required": false; }; "jit": { "alias": "jit"; "required": false; }; "useInputEvent": { "alias": "useInputEvent"; "required": false; }; "findExistingResource": { "alias": "findExistingResource"; "required": false; }; "allowPhoneValidation": { "alias": "allowPhoneValidation"; "required": false; }; "validatePassword": { "alias": "validatePassword"; "required": false; }; "passwordableId": { "alias": "passwordableId"; "required": false; }; "passwordPolicyId": { "alias": "passwordPolicyId"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "uniqueResource": { "alias": "uniqueResource"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "match": { "alias": "match"; "required": false; }; "multipleOf": { "alias": "multipleOf"; "required": false; }; "validateMinValueOnMask": { "alias": "validateMinValueOnMask"; "required": false; }; "externalServerDependency": { "alias": "externalServerDependency"; "required": false; }; "customValidator": { "alias": "customValidator"; "required": false; }; }, { "onClickLeftIcon": "onClickLeftIcon"; "onClickRightIcon": "onClickRightIcon"; "validatePhoneResult": "validatePhoneResult"; }, never, ["*"], false, never>;
|
|
129
127
|
}
|
|
@@ -2,13 +2,13 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./ngt-input.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
5
|
+
import * as i4 from "../../../ngt-validation/ngt-validation.module";
|
|
6
|
+
import * as i5 from "../../../ngt-shining/ngt-shining.module";
|
|
7
|
+
import * as i6 from "../../../ngt-svg/ngt-svg.module";
|
|
8
8
|
import * as i7 from "../ngt-form/ngt-form.module";
|
|
9
|
-
import * as i8 from "
|
|
9
|
+
import * as i8 from "../../../ngt-helper/ngt-helper.component";
|
|
10
10
|
export declare class NgtInputModule {
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtInputModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtInputModule, [typeof i1.NgtInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.NgtValidationModule, typeof i5.NgtShiningModule, typeof i6.NgtSvgModule, typeof i7.NgtFormModule, typeof i8.
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtInputModule, [typeof i1.NgtInputComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.NgtValidationModule, typeof i5.NgtShiningModule, typeof i6.NgtSvgModule, typeof i7.NgtFormModule, typeof i8.NgtHelperComponent], [typeof i1.NgtInputComponent]>;
|
|
13
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgtInputModule>;
|
|
14
14
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnChanges, OnDestroy, OnInit, SimpleChanges, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import { NgtStylizableDirective } from '
|
|
5
|
-
import { NgtHttpService } from '
|
|
6
|
-
import { NgtTranslateService } from '
|
|
7
|
-
import { NgtStylizableService } from '
|
|
3
|
+
import { NgtControlValueAccessor } from '../../../../base/ngt-control-value-accessor';
|
|
4
|
+
import { NgtStylizableDirective } from '../../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
5
|
+
import { NgtHttpService } from '../../../../services/http/ngt-http.service';
|
|
6
|
+
import { NgtTranslateService } from '../../../../services/http/ngt-translate.service';
|
|
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 '
|
|
11
|
-
import { NgtModalComponent } from '
|
|
10
|
+
import { NgtSectionComponent } from '../../../ngt-section/ngt-section.component';
|
|
11
|
+
import { NgtModalComponent } from '../../../ngt-modal/ngt-modal.component';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class NgtMultiSelectComponent extends
|
|
13
|
+
export declare class NgtMultiSelectComponent extends NgtControlValueAccessor implements OnInit, OnDestroy, OnChanges {
|
|
14
14
|
private ngtHttpService;
|
|
15
|
-
private injector;
|
|
16
15
|
private changeDetector;
|
|
17
16
|
private ngtForm;
|
|
18
17
|
private ngtSection;
|
|
19
18
|
private ngtModal;
|
|
20
19
|
private ngtStylizableDirective;
|
|
20
|
+
protected injector: Injector;
|
|
21
21
|
formContainer: ControlContainer;
|
|
22
22
|
ngtTranslateService: NgtTranslateService;
|
|
23
23
|
containerRef: ElementRef;
|
|
@@ -72,7 +72,7 @@ export declare class NgtMultiSelectComponent extends NgtBaseNgModel implements O
|
|
|
72
72
|
private becameVisible;
|
|
73
73
|
private selectableResourcesCount;
|
|
74
74
|
private originalItems;
|
|
75
|
-
constructor(ngtHttpService: NgtHttpService,
|
|
75
|
+
constructor(ngtHttpService: NgtHttpService, changeDetector: ChangeDetectorRef, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, ngtStylizableDirective: NgtStylizableDirective, injector: Injector, formContainer: ControlContainer, ngtTranslateService: NgtTranslateService);
|
|
76
76
|
onScroll(event: any): void;
|
|
77
77
|
ngOnInit(): void;
|
|
78
78
|
ngDoCheck(): void;
|
|
@@ -108,7 +108,7 @@ export declare class NgtMultiSelectComponent extends NgtBaseNgModel implements O
|
|
|
108
108
|
private isColoquentResources;
|
|
109
109
|
private isDisabledByParent;
|
|
110
110
|
private destroySubscriptions;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtMultiSelectComponent, [null, null,
|
|
111
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtMultiSelectComponent, [null, null, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; self: true; }, null, { optional: true; host: true; }, { optional: true; }]>;
|
|
112
112
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtMultiSelectComponent, "ngt-multi-select", never, { "customOptionTemplate": { "alias": "customOptionTemplate"; "required": false; }; "customHeaderTemplate": { "alias": "customHeaderTemplate"; "required": false; }; "label": { "alias": "label"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "helpTextColor": { "alias": "helpTextColor"; "required": false; }; "helperReverseYPosition": { "alias": "helperReverseYPosition"; "required": false; }; "helperAutoXReverse": { "alias": "helperAutoXReverse"; "required": false; }; "shining": { "alias": "shining"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindSearch": { "alias": "bindSearch"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "name": { "alias": "name"; "required": false; }; "remoteResource": { "alias": "remoteResource"; "required": false; }; "items": { "alias": "items"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "allowOriginalItemsUnselect": { "alias": "allowOriginalItemsUnselect"; "required": false; }; "allowSelectAll": { "alias": "allowSelectAll"; "required": false; }; "allowDisplayOnlySelected": { "alias": "allowDisplayOnlySelected"; "required": false; }; "autoSelectUniqueOption": { "alias": "autoSelectUniqueOption"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, { "onDataChange": "onDataChange"; }, never, never, false, never>;
|
|
113
113
|
}
|
|
114
114
|
export interface NgtSelectContainerSelectableElementInterface {
|
|
@@ -2,14 +2,14 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./ngt-multi-select.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
5
|
+
import * as i4 from "../../../ngt-validation/ngt-validation.module";
|
|
6
|
+
import * as i5 from "../../../ngt-shining/ngt-shining.module";
|
|
7
|
+
import * as i6 from "../../../ngt-helper/ngt-helper.component";
|
|
8
8
|
import * as i7 from "../ngt-input/ngt-input.module";
|
|
9
9
|
import * as i8 from "../ngt-checkbox/ngt-checkbox.module";
|
|
10
|
-
import * as i9 from "
|
|
10
|
+
import * as i9 from "../../../../directives/ngt-stylizable/ngt-stylizable.module";
|
|
11
11
|
export declare class NgtMultiSelectModule {
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtMultiSelectModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtMultiSelectModule, [typeof i1.NgtMultiSelectComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NgtValidationModule, typeof i5.NgtShiningModule, typeof i6.
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtMultiSelectModule, [typeof i1.NgtMultiSelectComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.NgtValidationModule, typeof i5.NgtShiningModule, typeof i6.NgtHelperComponent, typeof i7.NgtInputModule, typeof i8.NgtCheckboxModule, typeof i9.NgtStylizableModule], [typeof i1.NgtMultiSelectComponent]>;
|
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgtMultiSelectModule>;
|
|
15
15
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, Injector, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
|
-
import {
|
|
4
|
-
import { NgtStylizableDirective } from '
|
|
5
|
-
import { NgtStylizableService } from '
|
|
3
|
+
import { NgtControlValueAccessor } from '../../../../base/ngt-control-value-accessor';
|
|
4
|
+
import { NgtStylizableDirective } from '../../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
5
|
+
import { NgtStylizableService } from '../../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
6
6
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
7
|
-
import { NgtSectionComponent } from '
|
|
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 '
|
|
9
|
+
import { NgtModalComponent } from '../../../ngt-modal/ngt-modal.component';
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class NgtRadioButtonComponent extends
|
|
12
|
-
private injector;
|
|
11
|
+
export declare class NgtRadioButtonComponent extends NgtControlValueAccessor implements AfterViewInit, OnDestroy {
|
|
13
12
|
private renderer;
|
|
14
13
|
private ngtStylizableDirective;
|
|
15
14
|
private ngtForm;
|
|
16
15
|
private ngtSection;
|
|
17
16
|
private ngtModal;
|
|
18
17
|
private ngtRadioButtonContainer;
|
|
18
|
+
protected injector: Injector;
|
|
19
19
|
formContainer: ControlContainer;
|
|
20
20
|
element: ElementRef;
|
|
21
21
|
label: string;
|
|
@@ -31,7 +31,7 @@ export declare class NgtRadioButtonComponent extends NgtBaseNgModel implements A
|
|
|
31
31
|
helperAutoXReverse: boolean;
|
|
32
32
|
ngtStyle: NgtStylizableService;
|
|
33
33
|
private subscriptions;
|
|
34
|
-
constructor(
|
|
34
|
+
constructor(renderer: Renderer2, ngtStylizableDirective: NgtStylizableDirective, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, ngtRadioButtonContainer: NgtRadioButtonContainerComponent, injector: Injector, formContainer: ControlContainer);
|
|
35
35
|
ngAfterViewInit(): void;
|
|
36
36
|
ngOnDestroy(): void;
|
|
37
37
|
change(value: boolean): void;
|
|
@@ -40,6 +40,6 @@ export declare class NgtRadioButtonComponent extends NgtBaseNgModel implements A
|
|
|
40
40
|
getStyle(): string;
|
|
41
41
|
private isDisabledByParent;
|
|
42
42
|
private destroySubscriptions;
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtRadioButtonComponent, [null,
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtRadioButtonComponent, [null, { optional: true; self: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, null, { optional: true; host: true; }]>;
|
|
44
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtRadioButtonComponent, "ngt-radio-button", never, { "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "shining": { "alias": "shining"; "required": false; }; "isSelectable": { "alias": "isSelectable"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "selectedHexColor": { "alias": "selectedHexColor"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "helpTextColor": { "alias": "helpTextColor"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "helperReverseYPosition": { "alias": "helperReverseYPosition"; "required": false; }; "helperAutoXReverse": { "alias": "helperAutoXReverse"; "required": false; }; }, {}, never, never, false, never>;
|
|
45
45
|
}
|
|
@@ -2,10 +2,10 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./ngt-radio-button.component";
|
|
3
3
|
import * as i2 from "./ngt-radio-button-container/ngt-radio-button-container.component";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "
|
|
6
|
-
import * as i5 from "
|
|
5
|
+
import * as i4 from "../../../ngt-shining/ngt-shining.module";
|
|
6
|
+
import * as i5 from "../../../ngt-helper/ngt-helper.component";
|
|
7
7
|
export declare class NgtRadioButtonModule {
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgtRadioButtonModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtRadioButtonModule, [typeof i1.NgtRadioButtonComponent, typeof i2.NgtRadioButtonContainerComponent], [typeof i3.CommonModule, typeof i4.NgtShiningModule, typeof i5.
|
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgtRadioButtonModule, [typeof i1.NgtRadioButtonComponent, typeof i2.NgtRadioButtonContainerComponent], [typeof i3.CommonModule, typeof i4.NgtShiningModule, typeof i5.NgtHelperComponent], [typeof i1.NgtRadioButtonComponent, typeof i2.NgtRadioButtonContainerComponent]>;
|
|
10
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<NgtRadioButtonModule>;
|
|
11
11
|
}
|
package/components/{ngt-select → forms/template-driven/ngt-select}/ngt-select.component.d.ts
RENAMED
|
@@ -2,14 +2,14 @@ import { ChangeDetectorRef, DoCheck, EventEmitter, Injector, OnChanges, OnDestro
|
|
|
2
2
|
import { ControlContainer } from '@angular/forms';
|
|
3
3
|
import { NgOption, NgSelectComponent } from '@ng-select/ng-select';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
import {
|
|
6
|
-
import { NgtStylizableDirective } from '
|
|
7
|
-
import { NgtHttpService } from '
|
|
8
|
-
import { NgtTranslateService } from '
|
|
9
|
-
import { NgtStylizableService } from '
|
|
5
|
+
import { NgtControlValueAccessor } from '../../../../base/ngt-control-value-accessor';
|
|
6
|
+
import { NgtStylizableDirective } from '../../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
7
|
+
import { NgtHttpService } from '../../../../services/http/ngt-http.service';
|
|
8
|
+
import { NgtTranslateService } from '../../../../services/http/ngt-translate.service';
|
|
9
|
+
import { NgtStylizableService } from '../../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
10
10
|
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
11
|
-
import { NgtSectionComponent } from '
|
|
12
|
-
import { NgtModalComponent } from '
|
|
11
|
+
import { NgtSectionComponent } from '../../../ngt-section/ngt-section.component';
|
|
12
|
+
import { NgtModalComponent } from '../../../ngt-modal/ngt-modal.component';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export declare enum NgtSelectDropdownPanelHeight {
|
|
15
15
|
AUTO = "auto",
|
|
@@ -19,16 +19,16 @@ export declare enum NgtSelectDropdownPanelHeight {
|
|
|
19
19
|
LG = "lg",
|
|
20
20
|
XL = "xl"
|
|
21
21
|
}
|
|
22
|
-
export declare class NgtSelectComponent extends
|
|
22
|
+
export declare class NgtSelectComponent extends NgtControlValueAccessor implements OnChanges, OnDestroy, OnInit, DoCheck {
|
|
23
23
|
ngtStylizableDirective: NgtStylizableDirective;
|
|
24
24
|
formContainer: ControlContainer;
|
|
25
25
|
ngtTranslateService: NgtTranslateService;
|
|
26
|
-
private injector;
|
|
27
26
|
private ngtHttp;
|
|
28
27
|
private changeDetector;
|
|
29
28
|
private ngtForm;
|
|
30
29
|
private ngtSection;
|
|
31
30
|
private ngtModal;
|
|
31
|
+
protected injector: Injector;
|
|
32
32
|
ngSelectComponent: NgSelectComponent;
|
|
33
33
|
ngtOptionTemplate: TemplateRef<any>;
|
|
34
34
|
ngtOptionSelectedTemplate: TemplateRef<any>;
|
|
@@ -103,7 +103,7 @@ export declare class NgtSelectComponent extends NgtBaseNgModel implements OnChan
|
|
|
103
103
|
private currentState;
|
|
104
104
|
private searchTimeout;
|
|
105
105
|
private hadFirstItemsLoad;
|
|
106
|
-
constructor(ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtTranslateService: NgtTranslateService,
|
|
106
|
+
constructor(ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtTranslateService: NgtTranslateService, ngtHttp: NgtHttpService, changeDetector: ChangeDetectorRef, ngtForm: NgtFormComponent, ngtSection: NgtSectionComponent, ngtModal: NgtModalComponent, injector: Injector);
|
|
107
107
|
compareWith: (a: any, b: any) => boolean;
|
|
108
108
|
ngOnInit(): void;
|
|
109
109
|
ngAfterViewInit(): void;
|
|
@@ -149,6 +149,6 @@ export declare class NgtSelectComponent extends NgtBaseNgModel implements OnChan
|
|
|
149
149
|
private bindSubscriptions;
|
|
150
150
|
private isDisabledByParent;
|
|
151
151
|
private destroySubscriptions;
|
|
152
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgtSelectComponent, [{ optional: true; self: true; }, { optional: true; host: true; }, { optional: true; }, null, null,
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgtSelectComponent, [{ optional: true; self: true; }, { optional: true; host: true; }, { optional: true; }, null, null, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, { optional: true; skipSelf: true; }, null]>;
|
|
153
153
|
static ɵcmp: i0.ɵɵComponentDeclaration<NgtSelectComponent, "ngt-select", never, { "label": { "alias": "label"; "required": false; }; "labelIcon": { "alias": "labelIcon"; "required": false; }; "labelIconColor": { "alias": "labelIconColor"; "required": false; }; "helpTitle": { "alias": "helpTitle"; "required": false; }; "helpText": { "alias": "helpText"; "required": false; }; "helpTextColor": { "alias": "helpTextColor"; "required": false; }; "shining": { "alias": "shining"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "typeToSearchText": { "alias": "typeToSearchText"; "required": false; }; "clearAllTooltip": { "alias": "clearAllTooltip"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "createText": { "alias": "createText"; "required": false; }; "labelForId": { "alias": "labelForId"; "required": false; }; "dropdownPanelMinHeight": { "alias": "dropdownPanelMinHeight"; "required": false; }; "helperReverseYPosition": { "alias": "helperReverseYPosition"; "required": false; }; "helperAutoXReverse": { "alias": "helperAutoXReverse"; "required": false; }; "name": { "alias": "name"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "allowCreate": { "alias": "allowCreate"; "required": false; }; "allowOriginalItemsUnselect": { "alias": "allowOriginalItemsUnselect"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "isReadonly": { "alias": "isReadonly"; "required": false; }; "remoteResource": { "alias": "remoteResource"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "items": { "alias": "items"; "required": false; }; "inputAttrs": { "alias": "inputAttrs"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "groupBy": { "alias": "groupBy"; "required": false; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "clearSearchOnAdd": { "alias": "clearSearchOnAdd"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "typeahead": { "alias": "typeahead"; "required": false; }; "guessCompareWith": { "alias": "guessCompareWith"; "required": false; }; "autoSelectUniqueOption": { "alias": "autoSelectUniqueOption"; "required": false; }; "groupValue": { "alias": "groupValue"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "sortSelectedItemsFn": { "alias": "sortSelectedItemsFn"; "required": false; }; "isAllowedToRemoveFn": { "alias": "isAllowedToRemoveFn"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; }, { "onLoadRemoteResource": "onLoadRemoteResource"; "onSelectedItemRemove": "onSelectedItemRemove"; "onClear": "onClear"; "onClose": "onClose"; }, ["ngtOptionTemplate", "ngtOptionSelectedTemplate", "ngtSelectHeaderTemplate"], never, false, never>;
|
|
154
154
|
}
|