ng-tailwind 2.24.310 → 2.24.314
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/README.md +24 -24
- package/animations/ngt-angular-animations.d.ts +5 -5
- package/base/ngt-base-ng-model.d.ts +32 -32
- package/bundles/ng-tailwind.umd.js +7318 -7271
- package/bundles/ng-tailwind.umd.js.map +1 -1
- package/components/ngt-action/ngt-action.component.d.ts +13 -13
- package/components/ngt-action/ngt-action.module.d.ts +2 -2
- package/components/ngt-button/ngt-button.component.d.ts +22 -22
- package/components/ngt-button/ngt-button.module.d.ts +2 -2
- package/components/ngt-checkbox/ngt-checkbox.component.d.ts +41 -41
- package/components/ngt-checkbox/ngt-checkbox.module.d.ts +2 -2
- package/components/ngt-content/ngt-content.component.d.ts +9 -9
- package/components/ngt-content/ngt-content.module.d.ts +2 -2
- package/components/ngt-datatable/ngt-datatable.component.d.ts +112 -112
- package/components/ngt-datatable/ngt-datatable.module.d.ts +2 -2
- package/components/ngt-datatable/ngt-tbody/ngt-tbody.component.d.ts +11 -11
- package/components/ngt-datatable/ngt-td/ngt-td.component.d.ts +11 -11
- package/components/ngt-datatable/ngt-td-check/ngt-td-check.component.d.ts +24 -24
- package/components/ngt-datatable/ngt-th/ngt-th.component.d.ts +47 -47
- package/components/ngt-datatable/ngt-th-check/ngt-th-check.component.d.ts +19 -19
- package/components/ngt-datatable/ngt-thead/ngt-thead.component.d.ts +10 -10
- package/components/ngt-datatable/ngt-tr/ngt-tr.component.d.ts +17 -17
- package/components/ngt-date/ngt-date.component.d.ts +71 -71
- package/components/ngt-date/ngt-date.module.d.ts +2 -2
- package/components/ngt-dropdown/ngt-dropdown-container/ngt-dropdown-container.component.d.ts +5 -5
- package/components/ngt-dropdown/ngt-dropdown.component.d.ts +42 -42
- package/components/ngt-dropdown/ngt-dropdown.module.d.ts +2 -2
- package/components/ngt-dropzone/custom-dropzone-preview/custom-dropzone-preview.component.d.ts +11 -11
- package/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.d.ts +12 -12
- package/components/ngt-dropzone/ngt-dropzone-view/ngt-dropzone-view.component.d.ts +21 -21
- package/components/ngt-dropzone/ngt-dropzone.component.d.ts +103 -103
- package/components/ngt-dropzone/ngt-dropzone.module.d.ts +2 -2
- package/components/ngt-floating-button/ngt-floating-button.component.d.ts +32 -32
- package/components/ngt-floating-button/ngt-floating-button.module.d.ts +2 -2
- package/components/ngt-form/ngt-form-validation-message/ngt-form-validation-message.component.d.ts +7 -7
- package/components/ngt-form/ngt-form-validation-message/ngt-form-validation-message.module.d.ts +2 -2
- package/components/ngt-form/ngt-form.component.d.ts +52 -52
- package/components/ngt-form/ngt-form.module.d.ts +2 -2
- package/components/ngt-header-nav/ngt-header-nav.component.d.ts +11 -11
- package/components/ngt-header-nav/ngt-header-nav.module.d.ts +2 -2
- package/components/ngt-helper/ngt-helper.component.d.ts +15 -10
- package/components/ngt-helper/ngt-helper.module.d.ts +2 -2
- package/components/ngt-input/ngt-input.component.d.ts +92 -92
- package/components/ngt-input/ngt-input.module.d.ts +2 -2
- package/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.d.ts +2 -2
- package/components/ngt-modal/ngt-modal-footer/ngt-modal-footer.component.d.ts +2 -2
- package/components/ngt-modal/ngt-modal-header/ngt-modal-header.component.d.ts +12 -12
- package/components/ngt-modal/ngt-modal.component.d.ts +19 -19
- package/components/ngt-modal/ngt-modal.module.d.ts +2 -2
- package/components/ngt-multi-select/ngt-multi-select.component.d.ts +97 -97
- package/components/ngt-multi-select/ngt-multi-select.module.d.ts +2 -2
- package/components/ngt-pagination/ngt-pagination.component.d.ts +40 -40
- package/components/ngt-pagination/ngt-pagination.module.d.ts +2 -2
- package/components/ngt-portlet/ngt-portlet-body/ngt-portlet-body.component.d.ts +9 -9
- package/components/ngt-portlet/ngt-portlet-footer/ngt-portlet-footer.component.d.ts +9 -9
- package/components/ngt-portlet/ngt-portlet-header/ngt-portlet-header.component.d.ts +14 -14
- package/components/ngt-portlet/ngt-portlet.component.d.ts +17 -17
- package/components/ngt-portlet/ngt-portlet.module.d.ts +2 -2
- package/components/ngt-radio-button/ngt-radio-button-container/ngt-radio-button-container.component.d.ts +6 -6
- package/components/ngt-radio-button/ngt-radio-button.component.d.ts +27 -27
- package/components/ngt-radio-button/ngt-radio-button.module.d.ts +2 -2
- package/components/ngt-section/ngt-section.component.d.ts +23 -23
- package/components/ngt-section/ngt-section.module.d.ts +2 -2
- package/components/ngt-select/ngt-select.component.d.ts +122 -122
- package/components/ngt-select/ngt-select.directive.d.ts +13 -13
- package/components/ngt-select/ngt-select.module.d.ts +2 -2
- package/components/ngt-shining/ngt-shining.component.d.ts +16 -16
- package/components/ngt-shining/ngt-shining.module.d.ts +2 -2
- package/components/ngt-sidenav/ngt-sidenav.component.d.ts +29 -29
- package/components/ngt-sidenav/ngt-sidenav.module.d.ts +2 -2
- package/components/ngt-slider/ngt-slider.component.d.ts +31 -31
- package/components/ngt-slider/ngt-slider.module.d.ts +2 -2
- package/components/ngt-svg/ngt-svg.component.d.ts +10 -10
- package/components/ngt-svg/ngt-svg.module.d.ts +2 -2
- package/components/ngt-tag/ngt-tag.component.d.ts +10 -10
- package/components/ngt-tag/ngt-tag.module.d.ts +2 -2
- package/components/ngt-textarea/ngt-textarea.component.d.ts +46 -46
- package/components/ngt-textarea/ngt-textarea.module.d.ts +2 -2
- package/components/ngt-validation/ngt-validation.component.d.ts +10 -10
- package/components/ngt-validation/ngt-validation.module.d.ts +2 -2
- package/directives/ngt-stylizable/ngt-stylizable.directive.d.ts +65 -63
- package/directives/ngt-stylizable/ngt-stylizable.module.d.ts +2 -2
- package/enums/size.enum.d.ts +8 -8
- package/esm2015/animations/ngt-angular-animations.js +34 -34
- package/esm2015/base/ngt-base-ng-model.js +90 -90
- package/esm2015/components/ngt-action/ngt-action.component.js +49 -49
- package/esm2015/components/ngt-action/ngt-action.module.js +19 -19
- package/esm2015/components/ngt-button/ngt-button.component.js +106 -106
- package/esm2015/components/ngt-button/ngt-button.module.js +19 -19
- package/esm2015/components/ngt-checkbox/ngt-checkbox.component.js +137 -137
- package/esm2015/components/ngt-checkbox/ngt-checkbox.module.js +19 -19
- package/esm2015/components/ngt-content/ngt-content.component.js +33 -33
- package/esm2015/components/ngt-content/ngt-content.module.js +15 -15
- package/esm2015/components/ngt-datatable/ngt-datatable.component.js +400 -400
- package/esm2015/components/ngt-datatable/ngt-datatable.module.js +58 -58
- package/esm2015/components/ngt-datatable/ngt-tbody/ngt-tbody.component.js +58 -60
- package/esm2015/components/ngt-datatable/ngt-td/ngt-td.component.js +63 -63
- package/esm2015/components/ngt-datatable/ngt-td-check/ngt-td-check.component.js +102 -102
- package/esm2015/components/ngt-datatable/ngt-th/ngt-th.component.js +192 -192
- package/esm2015/components/ngt-datatable/ngt-th-check/ngt-th-check.component.js +87 -87
- package/esm2015/components/ngt-datatable/ngt-thead/ngt-thead.component.js +56 -58
- package/esm2015/components/ngt-datatable/ngt-tr/ngt-tr.component.js +76 -76
- package/esm2015/components/ngt-date/ngt-date.component.js +354 -352
- package/esm2015/components/ngt-date/ngt-date.module.js +25 -25
- package/esm2015/components/ngt-dropdown/ngt-dropdown-container/ngt-dropdown-container.component.js +20 -20
- package/esm2015/components/ngt-dropdown/ngt-dropdown.component.js +165 -165
- package/esm2015/components/ngt-dropdown/ngt-dropdown.module.js +16 -16
- package/esm2015/components/ngt-dropzone/custom-dropzone-preview/custom-dropzone-preview.component.js +47 -47
- package/esm2015/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.js +46 -45
- package/esm2015/components/ngt-dropzone/ngt-dropzone-view/ngt-dropzone-view.component.js +67 -67
- package/esm2015/components/ngt-dropzone/ngt-dropzone.component.js +411 -411
- package/esm2015/components/ngt-dropzone/ngt-dropzone.module.js +37 -37
- package/esm2015/components/ngt-floating-button/ngt-floating-button.component.js +94 -94
- package/esm2015/components/ngt-floating-button/ngt-floating-button.module.js +19 -19
- package/esm2015/components/ngt-form/ngt-form-validation-message/ngt-form-validation-message.component.js +23 -23
- package/esm2015/components/ngt-form/ngt-form-validation-message/ngt-form-validation-message.module.js +15 -15
- package/esm2015/components/ngt-form/ngt-form.component.js +181 -181
- package/esm2015/components/ngt-form/ngt-form.module.js +17 -17
- package/esm2015/components/ngt-header-nav/ngt-header-nav.component.js +38 -38
- package/esm2015/components/ngt-header-nav/ngt-header-nav.module.js +15 -15
- package/esm2015/components/ngt-helper/ngt-helper.component.js +44 -24
- package/esm2015/components/ngt-helper/ngt-helper.module.js +19 -19
- package/esm2015/components/ngt-input/ngt-input.component.js +610 -608
- package/esm2015/components/ngt-input/ngt-input.module.js +28 -28
- package/esm2015/components/ngt-modal/ngt-modal-body/ngt-modal-body.component.js +11 -11
- package/esm2015/components/ngt-modal/ngt-modal-footer/ngt-modal-footer.component.js +11 -11
- package/esm2015/components/ngt-modal/ngt-modal-header/ngt-modal-header.component.js +40 -40
- package/esm2015/components/ngt-modal/ngt-modal.component.js +79 -79
- package/esm2015/components/ngt-modal/ngt-modal.module.js +28 -28
- package/esm2015/components/ngt-multi-select/ngt-multi-select.component.js +392 -392
- package/esm2015/components/ngt-multi-select/ngt-multi-select.module.js +33 -33
- package/esm2015/components/ngt-pagination/ngt-pagination.component.js +172 -172
- package/esm2015/components/ngt-pagination/ngt-pagination.module.js +23 -23
- package/esm2015/components/ngt-portlet/ngt-portlet-body/ngt-portlet-body.component.js +32 -32
- package/esm2015/components/ngt-portlet/ngt-portlet-footer/ngt-portlet-footer.component.js +33 -33
- package/esm2015/components/ngt-portlet/ngt-portlet-header/ngt-portlet-header.component.js +47 -45
- package/esm2015/components/ngt-portlet/ngt-portlet.component.js +58 -58
- package/esm2015/components/ngt-portlet/ngt-portlet.module.js +32 -32
- package/esm2015/components/ngt-radio-button/ngt-radio-button-container/ngt-radio-button-container.component.js +19 -19
- package/esm2015/components/ngt-radio-button/ngt-radio-button.component.js +97 -97
- package/esm2015/components/ngt-radio-button/ngt-radio-button.module.js +18 -18
- package/esm2015/components/ngt-section/ngt-section.component.js +98 -98
- package/esm2015/components/ngt-section/ngt-section.module.js +21 -21
- package/esm2015/components/ngt-select/ngt-select.component.js +467 -465
- package/esm2015/components/ngt-select/ngt-select.directive.js +35 -35
- package/esm2015/components/ngt-select/ngt-select.module.js +40 -40
- package/esm2015/components/ngt-shining/ngt-shining.component.js +41 -41
- package/esm2015/components/ngt-shining/ngt-shining.module.js +15 -15
- package/esm2015/components/ngt-sidenav/ngt-sidenav.component.js +123 -123
- package/esm2015/components/ngt-sidenav/ngt-sidenav.module.js +15 -15
- package/esm2015/components/ngt-slider/ngt-slider.component.js +82 -82
- package/esm2015/components/ngt-slider/ngt-slider.module.js +17 -17
- package/esm2015/components/ngt-svg/ngt-svg.component.js +52 -52
- package/esm2015/components/ngt-svg/ngt-svg.module.js +19 -19
- package/esm2015/components/ngt-tag/ngt-tag.component.js +36 -36
- package/esm2015/components/ngt-tag/ngt-tag.module.js +17 -17
- package/esm2015/components/ngt-textarea/ngt-textarea.component.js +211 -209
- package/esm2015/components/ngt-textarea/ngt-textarea.module.js +24 -24
- package/esm2015/components/ngt-validation/ngt-validation.component.js +24 -24
- package/esm2015/components/ngt-validation/ngt-validation.module.js +15 -15
- package/esm2015/directives/ngt-stylizable/ngt-stylizable.directive.js +227 -220
- package/esm2015/directives/ngt-stylizable/ngt-stylizable.module.js +15 -15
- package/esm2015/enums/size.enum.js +11 -11
- package/esm2015/helpers/enum/enum.js +7 -7
- package/esm2015/helpers/form/form.js +14 -14
- package/esm2015/helpers/routing/route.js +11 -11
- package/esm2015/helpers/uuid.js +10 -10
- package/esm2015/ng-tailwind.js +10 -10
- package/esm2015/public-api.js +117 -117
- package/esm2015/services/http/ngt-attachment-http.service.js +3 -3
- package/esm2015/services/http/ngt-http-form.service.js +3 -3
- package/esm2015/services/http/ngt-http-resource.service.js +3 -3
- package/esm2015/services/http/ngt-http-validation.service.js +4 -4
- package/esm2015/services/http/ngt-http.service.js +3 -3
- package/esm2015/services/http/ngt-translate.service.js +3 -3
- package/esm2015/services/ngt-stylizable/ngt-stylizable.service.js +273 -266
- package/fesm2015/ng-tailwind.js +6404 -6365
- package/fesm2015/ng-tailwind.js.map +1 -1
- package/helpers/enum/enum.d.ts +1 -1
- package/helpers/form/form.d.ts +4 -4
- package/helpers/routing/route.d.ts +2 -2
- package/helpers/uuid.d.ts +1 -1
- package/ng-tailwind.d.ts +10 -10
- package/ng-tailwind.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +80 -80
- package/services/http/ngt-attachment-http.service.d.ts +10 -10
- package/services/http/ngt-http-form.service.d.ts +5 -5
- package/services/http/ngt-http-resource.service.d.ts +12 -12
- package/services/http/ngt-http-validation.service.d.ts +10 -10
- package/services/http/ngt-http.service.d.ts +27 -27
- package/services/http/ngt-translate.service.d.ts +27 -27
- package/services/ngt-stylizable/ngt-stylizable.service.d.ts +96 -93
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { AfterContentInit, ElementRef, Injector, OnDestroy } from '@angular/core';
|
|
2
|
-
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
-
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
-
import { NgtDatatableComponent } from '../ngt-datatable.component';
|
|
5
|
-
export declare class NgtThCheckComponent implements AfterContentInit, OnDestroy {
|
|
6
|
-
private injector;
|
|
7
|
-
private hostElement;
|
|
8
|
-
private ngtStylizableDirective;
|
|
9
|
-
private ngtDataTable;
|
|
10
|
-
checked: boolean;
|
|
11
|
-
ngtStyle: NgtStylizableService;
|
|
12
|
-
private subscriptions;
|
|
13
|
-
constructor(injector: Injector, hostElement: ElementRef, ngtStylizableDirective: NgtStylizableDirective, ngtDataTable: NgtDatatableComponent);
|
|
14
|
-
ngAfterContentInit(): void;
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
|
-
onCheckboxChange(checked: boolean): void;
|
|
17
|
-
private bindNgtStyle;
|
|
18
|
-
private destroySubscriptions;
|
|
19
|
-
}
|
|
1
|
+
import { AfterContentInit, ElementRef, Injector, OnDestroy } from '@angular/core';
|
|
2
|
+
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
+
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
+
import { NgtDatatableComponent } from '../ngt-datatable.component';
|
|
5
|
+
export declare class NgtThCheckComponent implements AfterContentInit, OnDestroy {
|
|
6
|
+
private injector;
|
|
7
|
+
private hostElement;
|
|
8
|
+
private ngtStylizableDirective;
|
|
9
|
+
private ngtDataTable;
|
|
10
|
+
checked: boolean;
|
|
11
|
+
ngtStyle: NgtStylizableService;
|
|
12
|
+
private subscriptions;
|
|
13
|
+
constructor(injector: Injector, hostElement: ElementRef, ngtStylizableDirective: NgtStylizableDirective, ngtDataTable: NgtDatatableComponent);
|
|
14
|
+
ngAfterContentInit(): void;
|
|
15
|
+
ngOnDestroy(): void;
|
|
16
|
+
onCheckboxChange(checked: boolean): void;
|
|
17
|
+
private bindNgtStyle;
|
|
18
|
+
private destroySubscriptions;
|
|
19
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
-
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
-
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
-
export declare class NgtTheadComponent {
|
|
5
|
-
private injector;
|
|
6
|
-
private hostElement;
|
|
7
|
-
private ngtStylizableDirective;
|
|
8
|
-
ngtStyle: NgtStylizableService;
|
|
9
|
-
constructor(injector: Injector, hostElement: ElementRef, ngtStylizableDirective: NgtStylizableDirective);
|
|
10
|
-
}
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
+
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
+
export declare class NgtTheadComponent {
|
|
5
|
+
private injector;
|
|
6
|
+
private hostElement;
|
|
7
|
+
private ngtStylizableDirective;
|
|
8
|
+
ngtStyle: NgtStylizableService;
|
|
9
|
+
constructor(injector: Injector, hostElement: ElementRef, ngtStylizableDirective: NgtStylizableDirective);
|
|
10
|
+
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
-
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
-
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
-
import { NgtTbodyComponent } from '../ngt-tbody/ngt-tbody.component';
|
|
5
|
-
import { NgtTheadComponent } from '../ngt-thead/ngt-thead.component';
|
|
6
|
-
export declare class NgtTrComponent {
|
|
7
|
-
private injector;
|
|
8
|
-
private hostElement;
|
|
9
|
-
private ngtThead;
|
|
10
|
-
private ngtTbody;
|
|
11
|
-
private ngtStylizableDirective;
|
|
12
|
-
evenStripped: boolean;
|
|
13
|
-
oddStripped: boolean;
|
|
14
|
-
ngtStyle: NgtStylizableService;
|
|
15
|
-
constructor(injector: Injector, hostElement: ElementRef, ngtThead: NgtTheadComponent, ngtTbody: NgtTbodyComponent, ngtStylizableDirective: NgtStylizableDirective);
|
|
16
|
-
private getInheritanceStyles;
|
|
17
|
-
}
|
|
1
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
+
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
+
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
4
|
+
import { NgtTbodyComponent } from '../ngt-tbody/ngt-tbody.component';
|
|
5
|
+
import { NgtTheadComponent } from '../ngt-thead/ngt-thead.component';
|
|
6
|
+
export declare class NgtTrComponent {
|
|
7
|
+
private injector;
|
|
8
|
+
private hostElement;
|
|
9
|
+
private ngtThead;
|
|
10
|
+
private ngtTbody;
|
|
11
|
+
private ngtStylizableDirective;
|
|
12
|
+
evenStripped: boolean;
|
|
13
|
+
oddStripped: boolean;
|
|
14
|
+
ngtStyle: NgtStylizableService;
|
|
15
|
+
constructor(injector: Injector, hostElement: ElementRef, ngtThead: NgtTheadComponent, ngtTbody: NgtTbodyComponent, ngtStylizableDirective: NgtStylizableDirective);
|
|
16
|
+
private getInheritanceStyles;
|
|
17
|
+
}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { Injector, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ControlContainer } from '@angular/forms';
|
|
3
|
-
import { FlatpickrOptions, Ng2FlatpickrComponent } from 'ng2-flatpickr';
|
|
4
|
-
import { NgtBaseNgModel } from '../../base/ngt-base-ng-model';
|
|
5
|
-
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
6
|
-
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
7
|
-
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
8
|
-
export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit, OnDestroy {
|
|
9
|
-
private injector;
|
|
10
|
-
private ngtStylizableDirective;
|
|
11
|
-
formContainer: ControlContainer;
|
|
12
|
-
private ngtFormComponent;
|
|
13
|
-
ng2FlatpickrComponent: Ng2FlatpickrComponent;
|
|
14
|
-
label: string;
|
|
15
|
-
placeholder: string;
|
|
16
|
-
helpTitle: string;
|
|
17
|
-
helpText: string;
|
|
18
|
-
helpTextColor: string;
|
|
19
|
-
shining: boolean;
|
|
20
|
-
dateFormat: string;
|
|
21
|
-
dateFormatNgModel: string;
|
|
22
|
-
name: string;
|
|
23
|
-
isDisabled: boolean;
|
|
24
|
-
isReadonly: boolean;
|
|
25
|
-
mode: NgtDateMode;
|
|
26
|
-
time_24hr: boolean;
|
|
27
|
-
enableTime: boolean;
|
|
28
|
-
noCalendar: boolean;
|
|
29
|
-
minuteIncrement: number;
|
|
30
|
-
allowInput: boolean;
|
|
31
|
-
locale: NgtDateLocale;
|
|
32
|
-
allowClear: boolean;
|
|
33
|
-
minDate: string;
|
|
34
|
-
maxDate: string;
|
|
35
|
-
defaultDate: string;
|
|
36
|
-
isRequired: boolean;
|
|
37
|
-
ngtStyle: NgtStylizableService;
|
|
38
|
-
dateConfig: FlatpickrOptions;
|
|
39
|
-
nativeValue: any;
|
|
40
|
-
componentReady: boolean;
|
|
41
|
-
nativeName: string;
|
|
42
|
-
inputProperties: {
|
|
43
|
-
htmlType?: string;
|
|
44
|
-
length?: number;
|
|
45
|
-
};
|
|
46
|
-
private subscriptions;
|
|
47
|
-
constructor(injector: Injector, ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtFormComponent: NgtFormComponent);
|
|
48
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
49
|
-
ngOnInit(): void;
|
|
50
|
-
ngOnDestroy(): void;
|
|
51
|
-
clearInput(clearInstance?: boolean): void;
|
|
52
|
-
change(value: any): any;
|
|
53
|
-
onNativeChange(value: any, instance: any, triggerClose: boolean): void;
|
|
54
|
-
getNativeValue(): any;
|
|
55
|
-
getFormattedNativeValue(): string;
|
|
56
|
-
hasErrors(): boolean;
|
|
57
|
-
private initComponent;
|
|
58
|
-
private updateValidations;
|
|
59
|
-
private getLocale;
|
|
60
|
-
private getDateMode;
|
|
61
|
-
private getMomentDateFormat;
|
|
62
|
-
private destroySubscriptions;
|
|
63
|
-
}
|
|
64
|
-
export declare enum NgtDateLocale {
|
|
65
|
-
BRAZIL = "BRAZIL",
|
|
66
|
-
US = "US"
|
|
67
|
-
}
|
|
68
|
-
export declare enum NgtDateMode {
|
|
69
|
-
SINGLE = "SINGLE",
|
|
70
|
-
RANGE = "RANGE"
|
|
71
|
-
}
|
|
1
|
+
import { Injector, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlContainer } from '@angular/forms';
|
|
3
|
+
import { FlatpickrOptions, Ng2FlatpickrComponent } from 'ng2-flatpickr';
|
|
4
|
+
import { NgtBaseNgModel } from '../../base/ngt-base-ng-model';
|
|
5
|
+
import { NgtStylizableDirective } from '../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
6
|
+
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
7
|
+
import { NgtFormComponent } from '../ngt-form/ngt-form.component';
|
|
8
|
+
export declare class NgtDateComponent extends NgtBaseNgModel implements OnInit, OnDestroy {
|
|
9
|
+
private injector;
|
|
10
|
+
private ngtStylizableDirective;
|
|
11
|
+
formContainer: ControlContainer;
|
|
12
|
+
private ngtFormComponent;
|
|
13
|
+
ng2FlatpickrComponent: Ng2FlatpickrComponent;
|
|
14
|
+
label: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
helpTitle: string;
|
|
17
|
+
helpText: string;
|
|
18
|
+
helpTextColor: string;
|
|
19
|
+
shining: boolean;
|
|
20
|
+
dateFormat: string;
|
|
21
|
+
dateFormatNgModel: string;
|
|
22
|
+
name: string;
|
|
23
|
+
isDisabled: boolean;
|
|
24
|
+
isReadonly: boolean;
|
|
25
|
+
mode: NgtDateMode;
|
|
26
|
+
time_24hr: boolean;
|
|
27
|
+
enableTime: boolean;
|
|
28
|
+
noCalendar: boolean;
|
|
29
|
+
minuteIncrement: number;
|
|
30
|
+
allowInput: boolean;
|
|
31
|
+
locale: NgtDateLocale;
|
|
32
|
+
allowClear: boolean;
|
|
33
|
+
minDate: string;
|
|
34
|
+
maxDate: string;
|
|
35
|
+
defaultDate: string;
|
|
36
|
+
isRequired: boolean;
|
|
37
|
+
ngtStyle: NgtStylizableService;
|
|
38
|
+
dateConfig: FlatpickrOptions;
|
|
39
|
+
nativeValue: any;
|
|
40
|
+
componentReady: boolean;
|
|
41
|
+
nativeName: string;
|
|
42
|
+
inputProperties: {
|
|
43
|
+
htmlType?: string;
|
|
44
|
+
length?: number;
|
|
45
|
+
};
|
|
46
|
+
private subscriptions;
|
|
47
|
+
constructor(injector: Injector, ngtStylizableDirective: NgtStylizableDirective, formContainer: ControlContainer, ngtFormComponent: NgtFormComponent);
|
|
48
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
49
|
+
ngOnInit(): void;
|
|
50
|
+
ngOnDestroy(): void;
|
|
51
|
+
clearInput(clearInstance?: boolean): void;
|
|
52
|
+
change(value: any): any;
|
|
53
|
+
onNativeChange(value: any, instance: any, triggerClose: boolean): void;
|
|
54
|
+
getNativeValue(): any;
|
|
55
|
+
getFormattedNativeValue(): string;
|
|
56
|
+
hasErrors(): boolean;
|
|
57
|
+
private initComponent;
|
|
58
|
+
private updateValidations;
|
|
59
|
+
private getLocale;
|
|
60
|
+
private getDateMode;
|
|
61
|
+
private getMomentDateFormat;
|
|
62
|
+
private destroySubscriptions;
|
|
63
|
+
}
|
|
64
|
+
export declare enum NgtDateLocale {
|
|
65
|
+
BRAZIL = "BRAZIL",
|
|
66
|
+
US = "US"
|
|
67
|
+
}
|
|
68
|
+
export declare enum NgtDateMode {
|
|
69
|
+
SINGLE = "SINGLE",
|
|
70
|
+
RANGE = "RANGE"
|
|
71
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class NgtDateModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class NgtDateModule {
|
|
2
|
+
}
|
package/components/ngt-dropdown/ngt-dropdown-container/ngt-dropdown-container.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
export declare class NgtDropdownContainerComponent {
|
|
3
|
-
onActiveDropdownChange: EventEmitter<any>;
|
|
4
|
-
setActiveDropdown(activeDropdown: any): void;
|
|
5
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
export declare class NgtDropdownContainerComponent {
|
|
3
|
+
onActiveDropdownChange: EventEmitter<any>;
|
|
4
|
+
setActiveDropdown(activeDropdown: any): void;
|
|
5
|
+
}
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NgtDropdownContainerComponent } from './ngt-dropdown-container/ngt-dropdown-container.component';
|
|
3
|
-
export declare class NgtDropdownComponent implements OnDestroy {
|
|
4
|
-
private ngtDropdownContainer;
|
|
5
|
-
containerRef: ElementRef;
|
|
6
|
-
autoXReverse: boolean;
|
|
7
|
-
autoYReverse: boolean;
|
|
8
|
-
reverseXPosition: boolean;
|
|
9
|
-
reverseYPosition: boolean;
|
|
10
|
-
closeOnClick: boolean;
|
|
11
|
-
openMethod: NgtDropdownOpenMethod;
|
|
12
|
-
onToggle: EventEmitter<boolean>;
|
|
13
|
-
name: string;
|
|
14
|
-
isOpen: boolean;
|
|
15
|
-
isYPositionReversed: boolean;
|
|
16
|
-
isXPositionReversed: boolean;
|
|
17
|
-
private subscriptions;
|
|
18
|
-
private containerXPosition;
|
|
19
|
-
private containerYPosition;
|
|
20
|
-
constructor(ngtDropdownContainer: NgtDropdownContainerComponent);
|
|
21
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
-
ngOnDestroy(): void;
|
|
23
|
-
open(): void;
|
|
24
|
-
closeOnSelectOption(): void;
|
|
25
|
-
close(): void;
|
|
26
|
-
toggle(): void;
|
|
27
|
-
onHover(host: any, container: any): void;
|
|
28
|
-
onClick(event: Event): void;
|
|
29
|
-
onRightClick(event: Event): void;
|
|
30
|
-
shouldReverseXPosition(): boolean;
|
|
31
|
-
shouldReverseYPosition(): boolean;
|
|
32
|
-
private bindContainerXPosition;
|
|
33
|
-
private bindContainerYPosition;
|
|
34
|
-
private watchHover;
|
|
35
|
-
private isInHover;
|
|
36
|
-
private destroySubscriptions;
|
|
37
|
-
}
|
|
38
|
-
export declare enum NgtDropdownOpenMethod {
|
|
39
|
-
CLICK = "CLICK",
|
|
40
|
-
RIGHT_CLICK = "RIGHT_CLICK",
|
|
41
|
-
HOVER = "HOVER"
|
|
42
|
-
}
|
|
1
|
+
import { ElementRef, EventEmitter, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NgtDropdownContainerComponent } from './ngt-dropdown-container/ngt-dropdown-container.component';
|
|
3
|
+
export declare class NgtDropdownComponent implements OnDestroy {
|
|
4
|
+
private ngtDropdownContainer;
|
|
5
|
+
containerRef: ElementRef;
|
|
6
|
+
autoXReverse: boolean;
|
|
7
|
+
autoYReverse: boolean;
|
|
8
|
+
reverseXPosition: boolean;
|
|
9
|
+
reverseYPosition: boolean;
|
|
10
|
+
closeOnClick: boolean;
|
|
11
|
+
openMethod: NgtDropdownOpenMethod;
|
|
12
|
+
onToggle: EventEmitter<boolean>;
|
|
13
|
+
name: string;
|
|
14
|
+
isOpen: boolean;
|
|
15
|
+
isYPositionReversed: boolean;
|
|
16
|
+
isXPositionReversed: boolean;
|
|
17
|
+
private subscriptions;
|
|
18
|
+
private containerXPosition;
|
|
19
|
+
private containerYPosition;
|
|
20
|
+
constructor(ngtDropdownContainer: NgtDropdownContainerComponent);
|
|
21
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
22
|
+
ngOnDestroy(): void;
|
|
23
|
+
open(): void;
|
|
24
|
+
closeOnSelectOption(): void;
|
|
25
|
+
close(): void;
|
|
26
|
+
toggle(): void;
|
|
27
|
+
onHover(host: any, container: any): void;
|
|
28
|
+
onClick(event: Event): void;
|
|
29
|
+
onRightClick(event: Event): void;
|
|
30
|
+
shouldReverseXPosition(): boolean;
|
|
31
|
+
shouldReverseYPosition(): boolean;
|
|
32
|
+
private bindContainerXPosition;
|
|
33
|
+
private bindContainerYPosition;
|
|
34
|
+
private watchHover;
|
|
35
|
+
private isInHover;
|
|
36
|
+
private destroySubscriptions;
|
|
37
|
+
}
|
|
38
|
+
export declare enum NgtDropdownOpenMethod {
|
|
39
|
+
CLICK = "CLICK",
|
|
40
|
+
RIGHT_CLICK = "RIGHT_CLICK",
|
|
41
|
+
HOVER = "HOVER"
|
|
42
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class NgtDropdownModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class NgtDropdownModule {
|
|
2
|
+
}
|
package/components/ngt-dropzone/custom-dropzone-preview/custom-dropzone-preview.component.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
-
import { NgxDropzonePreviewComponent } from 'ngx-dropzone';
|
|
4
|
-
import { NgtDropzoneFileTypeEnum } from '../ngt-dropzone.component';
|
|
5
|
-
export declare class CustomDropzonePreviewComponent extends NgxDropzonePreviewComponent implements OnInit {
|
|
6
|
-
sanitizer: DomSanitizer;
|
|
7
|
-
fileType: NgtDropzoneFileTypeEnum;
|
|
8
|
-
constructor(sanitizer: DomSanitizer);
|
|
9
|
-
ngOnInit(): void;
|
|
10
|
-
private bindFileType;
|
|
11
|
-
}
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { NgxDropzonePreviewComponent } from 'ngx-dropzone';
|
|
4
|
+
import { NgtDropzoneFileTypeEnum } from '../ngt-dropzone.component';
|
|
5
|
+
export declare class CustomDropzonePreviewComponent extends NgxDropzonePreviewComponent implements OnInit {
|
|
6
|
+
sanitizer: DomSanitizer;
|
|
7
|
+
fileType: NgtDropzoneFileTypeEnum;
|
|
8
|
+
constructor(sanitizer: DomSanitizer);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
private bindFileType;
|
|
11
|
+
}
|
package/components/ngt-dropzone/ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { EventEmitter } from
|
|
2
|
-
export declare class NgtDropzoneFileViewerComponent {
|
|
3
|
-
url: string;
|
|
4
|
-
fileName: string;
|
|
5
|
-
onClose: EventEmitter<any>;
|
|
6
|
-
canShowViewer: boolean;
|
|
7
|
-
constructor();
|
|
8
|
-
keyEvent(event: KeyboardEvent): void;
|
|
9
|
-
init(): void;
|
|
10
|
-
close(): void;
|
|
11
|
-
downloadFile(): void;
|
|
12
|
-
}
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
export declare class NgtDropzoneFileViewerComponent {
|
|
3
|
+
url: string;
|
|
4
|
+
fileName: string;
|
|
5
|
+
onClose: EventEmitter<any>;
|
|
6
|
+
canShowViewer: boolean;
|
|
7
|
+
constructor();
|
|
8
|
+
keyEvent(event: KeyboardEvent): void;
|
|
9
|
+
init(): void;
|
|
10
|
+
close(): void;
|
|
11
|
+
downloadFile(): void;
|
|
12
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { NgtDropzoneComponent, NgtDropzoneFile, NgtDropzoneFileTypeEnum } from '../ngt-dropzone.component';
|
|
3
|
-
export declare class NgtDropzoneViewComponent implements AfterViewInit {
|
|
4
|
-
ngtDropzoneComponent: NgtDropzoneComponent;
|
|
5
|
-
resources: Array<any>;
|
|
6
|
-
images: Array<NgtDropzoneFile>;
|
|
7
|
-
audios: Array<NgtDropzoneFile>;
|
|
8
|
-
videos: Array<NgtDropzoneFile>;
|
|
9
|
-
files: Array<NgtDropzoneFile>;
|
|
10
|
-
ngtDropzoneViewFileTypeEnum: typeof NgtDropzoneFileTypeEnum;
|
|
11
|
-
constructor(ngtDropzoneComponent: NgtDropzoneComponent);
|
|
12
|
-
ngAfterViewInit(): void;
|
|
13
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
loadFiles(): void;
|
|
15
|
-
onImageClick(index: any): void;
|
|
16
|
-
getFileType(resource: NgtDropzoneFile): NgtDropzoneFileTypeEnum;
|
|
17
|
-
private isImage;
|
|
18
|
-
private isAudio;
|
|
19
|
-
private isVideo;
|
|
20
|
-
private isFile;
|
|
21
|
-
}
|
|
1
|
+
import { AfterViewInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { NgtDropzoneComponent, NgtDropzoneFile, NgtDropzoneFileTypeEnum } from '../ngt-dropzone.component';
|
|
3
|
+
export declare class NgtDropzoneViewComponent implements AfterViewInit {
|
|
4
|
+
ngtDropzoneComponent: NgtDropzoneComponent;
|
|
5
|
+
resources: Array<any>;
|
|
6
|
+
images: Array<NgtDropzoneFile>;
|
|
7
|
+
audios: Array<NgtDropzoneFile>;
|
|
8
|
+
videos: Array<NgtDropzoneFile>;
|
|
9
|
+
files: Array<NgtDropzoneFile>;
|
|
10
|
+
ngtDropzoneViewFileTypeEnum: typeof NgtDropzoneFileTypeEnum;
|
|
11
|
+
constructor(ngtDropzoneComponent: NgtDropzoneComponent);
|
|
12
|
+
ngAfterViewInit(): void;
|
|
13
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
+
loadFiles(): void;
|
|
15
|
+
onImageClick(index: any): void;
|
|
16
|
+
getFileType(resource: NgtDropzoneFile): NgtDropzoneFileTypeEnum;
|
|
17
|
+
private isImage;
|
|
18
|
+
private isAudio;
|
|
19
|
+
private isVideo;
|
|
20
|
+
private isFile;
|
|
21
|
+
}
|
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
-
import { ControlContainer } from '@angular/forms';
|
|
3
|
-
import { NgxDropzoneChangeEvent, NgxDropzoneComponent } from 'ngx-dropzone';
|
|
4
|
-
import { NgtBaseNgModel } from '../../base/ngt-base-ng-model';
|
|
5
|
-
import { NgtAttachmentHttpService } from '../../services/http/ngt-attachment-http.service';
|
|
6
|
-
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
7
|
-
import { NgtDropzoneFileViewerComponent } from './ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component';
|
|
8
|
-
export interface NgtDropzoneFile {
|
|
9
|
-
downloadUrl: string;
|
|
10
|
-
previewUrl: string;
|
|
11
|
-
thumbnailUrl: string;
|
|
12
|
-
name: string;
|
|
13
|
-
mimeType: string;
|
|
14
|
-
fileSize: any;
|
|
15
|
-
}
|
|
16
|
-
export declare enum NgtDropzoneFileTypeEnum {
|
|
17
|
-
DOC = "DOC",
|
|
18
|
-
PDF = "PDF",
|
|
19
|
-
XLS = "XLS",
|
|
20
|
-
OTHER = "OTHER"
|
|
21
|
-
}
|
|
22
|
-
export declare enum NgtDropzonePreviewType {
|
|
23
|
-
DEFAULT = "DEFAULT",
|
|
24
|
-
IMAGE = "IMAGE",
|
|
25
|
-
VIDEO = "VIDEO"
|
|
26
|
-
}
|
|
27
|
-
export declare enum NgtDropzoneErrorType {
|
|
28
|
-
DEFAULT = "DEFAULT",
|
|
29
|
-
SIZE = "SIZE",
|
|
30
|
-
NO_MULTIPLE = "NO_MULTIPLE",
|
|
31
|
-
ITEMS_LIMIT = "ITEMS_LIMIT",
|
|
32
|
-
TYPE = "TYPE"
|
|
33
|
-
}
|
|
34
|
-
export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnInit, OnDestroy, AfterContentChecked {
|
|
35
|
-
formContainer: ControlContainer;
|
|
36
|
-
private ngtAttachmentHttpService;
|
|
37
|
-
private injector;
|
|
38
|
-
private changeDetector;
|
|
39
|
-
container: ElementRef;
|
|
40
|
-
ngxDropzone: NgxDropzoneComponent;
|
|
41
|
-
ngtDropzoneFileViewer: NgtDropzoneFileViewerComponent;
|
|
42
|
-
label: string;
|
|
43
|
-
placeholder: string;
|
|
44
|
-
helpTextColor: string;
|
|
45
|
-
helpText: string;
|
|
46
|
-
helpTitle: string;
|
|
47
|
-
resources: Array<NgtDropzoneFile>;
|
|
48
|
-
multipleSelection: boolean;
|
|
49
|
-
itemsLimit: number;
|
|
50
|
-
showFileName: boolean;
|
|
51
|
-
disableClick: boolean;
|
|
52
|
-
disabled: boolean;
|
|
53
|
-
viewMode: boolean;
|
|
54
|
-
removable: boolean;
|
|
55
|
-
verticalExpandable: boolean;
|
|
56
|
-
acceptedFiles: string;
|
|
57
|
-
maxFileSize: number; /** Bytes */
|
|
58
|
-
previewType: NgtDropzonePreviewType;
|
|
59
|
-
isRequired: boolean;
|
|
60
|
-
name: string;
|
|
61
|
-
remoteResource: any;
|
|
62
|
-
onFileSelected: EventEmitter<NgxDropzoneChangeEvent>;
|
|
63
|
-
onFileSelectError: EventEmitter<NgtDropzoneErrorType>;
|
|
64
|
-
onFileUploadFail: EventEmitter<any>;
|
|
65
|
-
onFileRemoved: EventEmitter<any>;
|
|
66
|
-
onFileUploaded: EventEmitter<any>;
|
|
67
|
-
onFilePreviewLoaded: EventEmitter<any>;
|
|
68
|
-
dropzoneHeight: string;
|
|
69
|
-
uploadedResources: any[];
|
|
70
|
-
forceDisableClick: boolean;
|
|
71
|
-
nativeValue: any[];
|
|
72
|
-
showNgtDropzoneFileViewer: boolean;
|
|
73
|
-
componentReady: boolean;
|
|
74
|
-
loading: boolean;
|
|
75
|
-
ngtDropzoneLoaderStyle: NgtStylizableService;
|
|
76
|
-
imageViewerOptions: any;
|
|
77
|
-
private subscriptions;
|
|
78
|
-
constructor(formContainer: ControlContainer, ngtAttachmentHttpService: NgtAttachmentHttpService, injector: Injector, changeDetector: ChangeDetectorRef);
|
|
79
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
80
|
-
ngAfterContentChecked(): void;
|
|
81
|
-
ngOnInit(): void;
|
|
82
|
-
ngOnDestroy(): void;
|
|
83
|
-
onImageClick(element: any, index?: any): void;
|
|
84
|
-
onFileClick(url: any, name: any): void;
|
|
85
|
-
onSelect(event: NgxDropzoneChangeEvent): Promise<void>;
|
|
86
|
-
uploadFiles(files: Array<File>): Promise<void>;
|
|
87
|
-
loadFilePreview(attachments: any): Promise<void>;
|
|
88
|
-
onRemove(resource: any): void;
|
|
89
|
-
isImage(resource: any): any;
|
|
90
|
-
isVideo(resource: any): any;
|
|
91
|
-
isAudio(resource: any): any;
|
|
92
|
-
isFile(resource: any): boolean;
|
|
93
|
-
getFormattedFileSize(resource: any): string;
|
|
94
|
-
onNativeChange(value: any): void;
|
|
95
|
-
change(value: any): void;
|
|
96
|
-
downloadFile(attachment: any): void;
|
|
97
|
-
reset(): void;
|
|
98
|
-
openFileSelector(): void;
|
|
99
|
-
private initComponent;
|
|
100
|
-
private resetFilesLoad;
|
|
101
|
-
private updateValidations;
|
|
102
|
-
private destroySubscriptions;
|
|
103
|
-
}
|
|
1
|
+
import { AfterContentChecked, ChangeDetectorRef, ElementRef, EventEmitter, Injector, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlContainer } from '@angular/forms';
|
|
3
|
+
import { NgxDropzoneChangeEvent, NgxDropzoneComponent } from 'ngx-dropzone';
|
|
4
|
+
import { NgtBaseNgModel } from '../../base/ngt-base-ng-model';
|
|
5
|
+
import { NgtAttachmentHttpService } from '../../services/http/ngt-attachment-http.service';
|
|
6
|
+
import { NgtStylizableService } from '../../services/ngt-stylizable/ngt-stylizable.service';
|
|
7
|
+
import { NgtDropzoneFileViewerComponent } from './ngt-dropzone-file-viewer/ngt-dropzone-file-viewer.component';
|
|
8
|
+
export interface NgtDropzoneFile {
|
|
9
|
+
downloadUrl: string;
|
|
10
|
+
previewUrl: string;
|
|
11
|
+
thumbnailUrl: string;
|
|
12
|
+
name: string;
|
|
13
|
+
mimeType: string;
|
|
14
|
+
fileSize: any;
|
|
15
|
+
}
|
|
16
|
+
export declare enum NgtDropzoneFileTypeEnum {
|
|
17
|
+
DOC = "DOC",
|
|
18
|
+
PDF = "PDF",
|
|
19
|
+
XLS = "XLS",
|
|
20
|
+
OTHER = "OTHER"
|
|
21
|
+
}
|
|
22
|
+
export declare enum NgtDropzonePreviewType {
|
|
23
|
+
DEFAULT = "DEFAULT",
|
|
24
|
+
IMAGE = "IMAGE",
|
|
25
|
+
VIDEO = "VIDEO"
|
|
26
|
+
}
|
|
27
|
+
export declare enum NgtDropzoneErrorType {
|
|
28
|
+
DEFAULT = "DEFAULT",
|
|
29
|
+
SIZE = "SIZE",
|
|
30
|
+
NO_MULTIPLE = "NO_MULTIPLE",
|
|
31
|
+
ITEMS_LIMIT = "ITEMS_LIMIT",
|
|
32
|
+
TYPE = "TYPE"
|
|
33
|
+
}
|
|
34
|
+
export declare class NgtDropzoneComponent extends NgtBaseNgModel implements OnInit, OnDestroy, AfterContentChecked {
|
|
35
|
+
formContainer: ControlContainer;
|
|
36
|
+
private ngtAttachmentHttpService;
|
|
37
|
+
private injector;
|
|
38
|
+
private changeDetector;
|
|
39
|
+
container: ElementRef;
|
|
40
|
+
ngxDropzone: NgxDropzoneComponent;
|
|
41
|
+
ngtDropzoneFileViewer: NgtDropzoneFileViewerComponent;
|
|
42
|
+
label: string;
|
|
43
|
+
placeholder: string;
|
|
44
|
+
helpTextColor: string;
|
|
45
|
+
helpText: string;
|
|
46
|
+
helpTitle: string;
|
|
47
|
+
resources: Array<NgtDropzoneFile>;
|
|
48
|
+
multipleSelection: boolean;
|
|
49
|
+
itemsLimit: number;
|
|
50
|
+
showFileName: boolean;
|
|
51
|
+
disableClick: boolean;
|
|
52
|
+
disabled: boolean;
|
|
53
|
+
viewMode: boolean;
|
|
54
|
+
removable: boolean;
|
|
55
|
+
verticalExpandable: boolean;
|
|
56
|
+
acceptedFiles: string;
|
|
57
|
+
maxFileSize: number; /** Bytes */
|
|
58
|
+
previewType: NgtDropzonePreviewType;
|
|
59
|
+
isRequired: boolean;
|
|
60
|
+
name: string;
|
|
61
|
+
remoteResource: any;
|
|
62
|
+
onFileSelected: EventEmitter<NgxDropzoneChangeEvent>;
|
|
63
|
+
onFileSelectError: EventEmitter<NgtDropzoneErrorType>;
|
|
64
|
+
onFileUploadFail: EventEmitter<any>;
|
|
65
|
+
onFileRemoved: EventEmitter<any>;
|
|
66
|
+
onFileUploaded: EventEmitter<any>;
|
|
67
|
+
onFilePreviewLoaded: EventEmitter<any>;
|
|
68
|
+
dropzoneHeight: string;
|
|
69
|
+
uploadedResources: any[];
|
|
70
|
+
forceDisableClick: boolean;
|
|
71
|
+
nativeValue: any[];
|
|
72
|
+
showNgtDropzoneFileViewer: boolean;
|
|
73
|
+
componentReady: boolean;
|
|
74
|
+
loading: boolean;
|
|
75
|
+
ngtDropzoneLoaderStyle: NgtStylizableService;
|
|
76
|
+
imageViewerOptions: any;
|
|
77
|
+
private subscriptions;
|
|
78
|
+
constructor(formContainer: ControlContainer, ngtAttachmentHttpService: NgtAttachmentHttpService, injector: Injector, changeDetector: ChangeDetectorRef);
|
|
79
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
80
|
+
ngAfterContentChecked(): void;
|
|
81
|
+
ngOnInit(): void;
|
|
82
|
+
ngOnDestroy(): void;
|
|
83
|
+
onImageClick(element: any, index?: any): void;
|
|
84
|
+
onFileClick(url: any, name: any): void;
|
|
85
|
+
onSelect(event: NgxDropzoneChangeEvent): Promise<void>;
|
|
86
|
+
uploadFiles(files: Array<File>): Promise<void>;
|
|
87
|
+
loadFilePreview(attachments: any): Promise<void>;
|
|
88
|
+
onRemove(resource: any): void;
|
|
89
|
+
isImage(resource: any): any;
|
|
90
|
+
isVideo(resource: any): any;
|
|
91
|
+
isAudio(resource: any): any;
|
|
92
|
+
isFile(resource: any): boolean;
|
|
93
|
+
getFormattedFileSize(resource: any): string;
|
|
94
|
+
onNativeChange(value: any): void;
|
|
95
|
+
change(value: any): void;
|
|
96
|
+
downloadFile(attachment: any): void;
|
|
97
|
+
reset(): void;
|
|
98
|
+
openFileSelector(): void;
|
|
99
|
+
private initComponent;
|
|
100
|
+
private resetFilesLoad;
|
|
101
|
+
private updateValidations;
|
|
102
|
+
private destroySubscriptions;
|
|
103
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare class NgtDropzoneModule {
|
|
2
|
-
}
|
|
1
|
+
export declare class NgtDropzoneModule {
|
|
2
|
+
}
|