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,102 +1,102 @@
|
|
|
1
|
-
import { Component, ElementRef, Injector, Input, Optional, Output, Self, SkipSelf, ViewChild, EventEmitter } from '@angular/core';
|
|
2
|
-
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
-
import { uuid } from '../../../helpers/uuid';
|
|
4
|
-
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
5
|
-
import { NgtCheckboxComponent } from '../../ngt-checkbox/ngt-checkbox.component';
|
|
6
|
-
import { NgtDatatableComponent } from '../ngt-datatable.component';
|
|
7
|
-
export class NgtTdCheckComponent {
|
|
8
|
-
constructor(injector, hostElement, ngtStylizableDirective, ngtDataTable) {
|
|
9
|
-
this.injector = injector;
|
|
10
|
-
this.hostElement = hostElement;
|
|
11
|
-
this.ngtStylizableDirective = ngtStylizableDirective;
|
|
12
|
-
this.ngtDataTable = ngtDataTable;
|
|
13
|
-
this.checked = false;
|
|
14
|
-
this.onCheckboxInit = new EventEmitter();
|
|
15
|
-
this.id = uuid();
|
|
16
|
-
this.subscriptions = [];
|
|
17
|
-
this.bindNgtStyle();
|
|
18
|
-
}
|
|
19
|
-
ngAfterContentInit() {
|
|
20
|
-
if (this.ngtDataTable) {
|
|
21
|
-
this.subscriptions.push(this.ngtDataTable.onToogleAllCheckboxes.subscribe((checked) => {
|
|
22
|
-
this.checked = checked;
|
|
23
|
-
}));
|
|
24
|
-
this.subscriptions.push(this.ngtDataTable.onClearSelectedElements.subscribe(() => {
|
|
25
|
-
this.checked = false;
|
|
26
|
-
}));
|
|
27
|
-
this.onCheckboxInit.emit({
|
|
28
|
-
id: this.id,
|
|
29
|
-
checked: this.checked,
|
|
30
|
-
reference: this.reference
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
ngOnDestroy() {
|
|
35
|
-
this.destroySubscriptions();
|
|
36
|
-
}
|
|
37
|
-
onCheckboxChange(checked) {
|
|
38
|
-
if (this.ngtDataTable) {
|
|
39
|
-
this.ngtDataTable.onToogleCheckbox.emit({
|
|
40
|
-
id: this.id,
|
|
41
|
-
checked: checked,
|
|
42
|
-
reference: this.reference
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
bindNgtStyle() {
|
|
47
|
-
if (this.ngtStylizableDirective) {
|
|
48
|
-
this.ngtStyle = this.ngtStylizableDirective.getNgtStylizableService();
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
this.ngtStyle = new NgtStylizableService();
|
|
52
|
-
}
|
|
53
|
-
this.ngtStyle.load(this.injector, 'NgtTdCheck', {
|
|
54
|
-
py: 'py-4',
|
|
55
|
-
px: 'px-6',
|
|
56
|
-
text: 'text-center',
|
|
57
|
-
border: 'border-b',
|
|
58
|
-
color: {
|
|
59
|
-
border: ''
|
|
60
|
-
}
|
|
61
|
-
});
|
|
62
|
-
this.hostElement.nativeElement.classList += this.ngtStyle.compile([
|
|
63
|
-
'h',
|
|
64
|
-
'px',
|
|
65
|
-
'py',
|
|
66
|
-
'pb',
|
|
67
|
-
'pl',
|
|
68
|
-
'pr',
|
|
69
|
-
'pt',
|
|
70
|
-
'mb',
|
|
71
|
-
'ml',
|
|
72
|
-
'mr',
|
|
73
|
-
'mt',
|
|
74
|
-
'border',
|
|
75
|
-
'color.border',
|
|
76
|
-
]);
|
|
77
|
-
}
|
|
78
|
-
destroySubscriptions() {
|
|
79
|
-
this.subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
80
|
-
this.subscriptions = [];
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
NgtTdCheckComponent.decorators = [
|
|
84
|
-
{ type: Component, args: [{
|
|
85
|
-
selector: '[ngt-td-check]',
|
|
86
|
-
template: "<ngt-checkbox [(ngModel)]='checked' (ngModelChange)='onCheckboxChange($event)'></ngt-checkbox>\n<ng-content></ng-content>",
|
|
87
|
-
styles: [""]
|
|
88
|
-
},] }
|
|
89
|
-
];
|
|
90
|
-
NgtTdCheckComponent.ctorParameters = () => [
|
|
91
|
-
{ type: Injector },
|
|
92
|
-
{ type: ElementRef },
|
|
93
|
-
{ type: NgtStylizableDirective, decorators: [{ type: Self }, { type: Optional }] },
|
|
94
|
-
{ type: NgtDatatableComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
|
|
95
|
-
];
|
|
96
|
-
NgtTdCheckComponent.propDecorators = {
|
|
97
|
-
checkbox: [{ type: ViewChild, args: [NgtCheckboxComponent, { static: true },] }],
|
|
98
|
-
reference: [{ type: Input }],
|
|
99
|
-
checked: [{ type: Input }],
|
|
100
|
-
onCheckboxInit: [{ type: Output }]
|
|
101
|
-
};
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
import { Component, ElementRef, Injector, Input, Optional, Output, Self, SkipSelf, ViewChild, EventEmitter } from '@angular/core';
|
|
2
|
+
import { NgtStylizableDirective } from '../../../directives/ngt-stylizable/ngt-stylizable.directive';
|
|
3
|
+
import { uuid } from '../../../helpers/uuid';
|
|
4
|
+
import { NgtStylizableService } from '../../../services/ngt-stylizable/ngt-stylizable.service';
|
|
5
|
+
import { NgtCheckboxComponent } from '../../ngt-checkbox/ngt-checkbox.component';
|
|
6
|
+
import { NgtDatatableComponent } from '../ngt-datatable.component';
|
|
7
|
+
export class NgtTdCheckComponent {
|
|
8
|
+
constructor(injector, hostElement, ngtStylizableDirective, ngtDataTable) {
|
|
9
|
+
this.injector = injector;
|
|
10
|
+
this.hostElement = hostElement;
|
|
11
|
+
this.ngtStylizableDirective = ngtStylizableDirective;
|
|
12
|
+
this.ngtDataTable = ngtDataTable;
|
|
13
|
+
this.checked = false;
|
|
14
|
+
this.onCheckboxInit = new EventEmitter();
|
|
15
|
+
this.id = uuid();
|
|
16
|
+
this.subscriptions = [];
|
|
17
|
+
this.bindNgtStyle();
|
|
18
|
+
}
|
|
19
|
+
ngAfterContentInit() {
|
|
20
|
+
if (this.ngtDataTable) {
|
|
21
|
+
this.subscriptions.push(this.ngtDataTable.onToogleAllCheckboxes.subscribe((checked) => {
|
|
22
|
+
this.checked = checked;
|
|
23
|
+
}));
|
|
24
|
+
this.subscriptions.push(this.ngtDataTable.onClearSelectedElements.subscribe(() => {
|
|
25
|
+
this.checked = false;
|
|
26
|
+
}));
|
|
27
|
+
this.onCheckboxInit.emit({
|
|
28
|
+
id: this.id,
|
|
29
|
+
checked: this.checked,
|
|
30
|
+
reference: this.reference
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
ngOnDestroy() {
|
|
35
|
+
this.destroySubscriptions();
|
|
36
|
+
}
|
|
37
|
+
onCheckboxChange(checked) {
|
|
38
|
+
if (this.ngtDataTable) {
|
|
39
|
+
this.ngtDataTable.onToogleCheckbox.emit({
|
|
40
|
+
id: this.id,
|
|
41
|
+
checked: checked,
|
|
42
|
+
reference: this.reference
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
bindNgtStyle() {
|
|
47
|
+
if (this.ngtStylizableDirective) {
|
|
48
|
+
this.ngtStyle = this.ngtStylizableDirective.getNgtStylizableService();
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
this.ngtStyle = new NgtStylizableService();
|
|
52
|
+
}
|
|
53
|
+
this.ngtStyle.load(this.injector, 'NgtTdCheck', {
|
|
54
|
+
py: 'py-4',
|
|
55
|
+
px: 'px-6',
|
|
56
|
+
text: 'text-center',
|
|
57
|
+
border: 'border-b',
|
|
58
|
+
color: {
|
|
59
|
+
border: ''
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
this.hostElement.nativeElement.classList += this.ngtStyle.compile([
|
|
63
|
+
'h',
|
|
64
|
+
'px',
|
|
65
|
+
'py',
|
|
66
|
+
'pb',
|
|
67
|
+
'pl',
|
|
68
|
+
'pr',
|
|
69
|
+
'pt',
|
|
70
|
+
'mb',
|
|
71
|
+
'ml',
|
|
72
|
+
'mr',
|
|
73
|
+
'mt',
|
|
74
|
+
'border',
|
|
75
|
+
'color.border',
|
|
76
|
+
]);
|
|
77
|
+
}
|
|
78
|
+
destroySubscriptions() {
|
|
79
|
+
this.subscriptions.forEach(subscription => subscription.unsubscribe());
|
|
80
|
+
this.subscriptions = [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
NgtTdCheckComponent.decorators = [
|
|
84
|
+
{ type: Component, args: [{
|
|
85
|
+
selector: '[ngt-td-check]',
|
|
86
|
+
template: "<ngt-checkbox [(ngModel)]='checked' (ngModelChange)='onCheckboxChange($event)'></ngt-checkbox>\r\n<ng-content></ng-content>",
|
|
87
|
+
styles: [""]
|
|
88
|
+
},] }
|
|
89
|
+
];
|
|
90
|
+
NgtTdCheckComponent.ctorParameters = () => [
|
|
91
|
+
{ type: Injector },
|
|
92
|
+
{ type: ElementRef },
|
|
93
|
+
{ type: NgtStylizableDirective, decorators: [{ type: Self }, { type: Optional }] },
|
|
94
|
+
{ type: NgtDatatableComponent, decorators: [{ type: Optional }, { type: SkipSelf }] }
|
|
95
|
+
];
|
|
96
|
+
NgtTdCheckComponent.propDecorators = {
|
|
97
|
+
checkbox: [{ type: ViewChild, args: [NgtCheckboxComponent, { static: true },] }],
|
|
98
|
+
reference: [{ type: Input }],
|
|
99
|
+
checked: [{ type: Input }],
|
|
100
|
+
onCheckboxInit: [{ type: Output }]
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd0LXRkLWNoZWNrLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25nLXRhaWx3aW5kL3NyYy9jb21wb25lbnRzL25ndC1kYXRhdGFibGUvbmd0LXRkLWNoZWNrL25ndC10ZC1jaGVjay5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxVQUFVLEVBQUUsUUFBUSxFQUFFLEtBQUssRUFBYSxRQUFRLEVBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxRQUFRLEVBQUUsU0FBUyxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUc3SSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSw2REFBNkQsQ0FBQztBQUNyRyxPQUFPLEVBQUUsSUFBSSxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFDN0MsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0seURBQXlELENBQUM7QUFDL0YsT0FBTyxFQUFFLG9CQUFvQixFQUFFLE1BQU0sMkNBQTJDLENBQUM7QUFDakYsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sNEJBQTRCLENBQUM7QUFPbkUsTUFBTSxPQUFPLG1CQUFtQjtJQVc1QixZQUNZLFFBQWtCLEVBQ2xCLFdBQXVCLEVBQ0gsc0JBQThDLEVBRWxFLFlBQW1DO1FBSm5DLGFBQVEsR0FBUixR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kRWxlbWVudHMuc3Vic2NyaWJlKCgpID0+IHtcclxuICAgICAgICAgICAgICAgICAgICB0aGlzLmNoZWNrZWQgPSBmYWxzZTtcclxuICAgICAgICAgICAgICAgIH0pXHJcbiAgICAgICAgICAgICk7XHJcblxyXG4gICAgICAgICAgICB0aGlzLm9uQ2hlY2tib3hJbml0LmVtaXQoe1xyXG4gICAgICAgICAgICAgICAgaWQ6IHRoaXMuaWQsXHJcbiAgICAgICAgICAgICAgICBjaGVja2VkOiB0aGlzLmNoZWNrZWQsXHJcbiAgICAgICAgICAgICAgICByZWZlcmVuY2U6IHRoaXMucmVmZXJlbmNlXHJcbiAgICAgICAgICAgIH0pO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBwdWJsaWMgbmdPbkRlc3Ryb3koKSB7XHJcbiAgICAgICAgdGhpcy5kZXN0cm95U3Vic2NyaXB0aW9ucygpO1xyXG4gICAgfVxyXG5cclxuICAgIHB1YmxpYyBvbkNoZWNrYm94Q2hhbmdlKGNoZWNrZWQ6IGJvb2xlYW4pIHtcclxuICAgICAgICBpZiAodGhpcy5uZ3REYXRhVGFibGUpIHtcclxuICAgICAgICAgICAgdGhpcy5uZ3REYXRhVGFibGUub25Ub29nbGVDaGVja2JveC5lbWl0KHtcclxuICAgICAgICAgICAgICAgIGlkOiB0aGlzLmlkLFxyXG4gICAgICAgICAgICAgICAgY2hlY2tlZDogY2hlY2tlZCxcclxuICAgICAgICAgICAgICAgIHJlZmVyZW5jZTogdGhpcy5yZWZlcmVuY2VcclxuICAgICAgICAgICAgfSk7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHByaXZhdGUgYmluZE5ndFN0eWxlKCkge1xyXG4gICAgICAgIGlmICh0aGlzLm5ndFN0eWxpemFibGVEaXJlY3RpdmUpIHtcclxuICAgICAgICAgICAgdGhpcy5uZ3RTdHlsZSA9IHRoaXMubmd0U3R5bGl6YWJsZURpcmVjdGl2ZS5nZXROZ3RTdHlsaXphYmxlU2VydmljZSgpO1xyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMubmd0U3R5bGUgPSBuZXcgTmd0U3R5bGl6YWJsZVNlcnZpY2UoKTtcclxuICAgICAgICB9XHJcblxyXG4gICAgICAgIHRoaXMubmd0U3R5bGUubG9hZCh0aGlzLmluamVjdG9yLCAnTmd0VGRDaGVjaycsIHtcclxuICAgICAgICAgICAgcHk6ICdweS00JyxcclxuICAgICAgICAgICAgcHg6ICdweC02JyxcclxuICAgICAgICAgICAgdGV4dDogJ3RleHQtY2VudGVyJyxcclxuICAgICAgICAgICAgYm9yZGVyOiAnYm9yZGVyLWInLFxyXG4gICAgICAgICAgICBjb2xvcjoge1xyXG4gICAgICAgICAgICAgICAgYm9yZGVyOiAnJ1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgfSk7XHJcblxyXG4gICAgICAgIHRoaXMuaG9zdEVsZW1lbnQubmF0aXZlRWxlbWVudC5jbGFzc0xpc3QgKz0gdGhpcy5uZ3RTdHlsZS5jb21waWxlKFtcclxuICAgICAgICAgICAgJ2gnLFxyXG4gICAgICAgICAgICAncHgnLFxyXG4gICAgICAgICAgICAncHknLFxyXG4gICAgICAgICAgICAncGInLFxyXG4gICAgICAgICAgICAncGwnLFxyXG4gICAgICAgICAgICAncHInLFxyXG4gICAgICAgICAgICAncHQnLFxyXG4gICAgICAgICAgICAnbWInLFxyXG4gICAgICAgICAgICAnbWwnLFxyXG4gICAgICAgICAgICAnbXInLFxyXG4gICAgICAgICAgICAnbXQnLFxyXG4gICAgICAgICAgICAnYm9yZGVyJyxcclxuICAgICAgICAgICAgJ2NvbG9yLmJvcmRlcicsXHJcbiAgICAgICAgXSk7XHJcbiAgICB9XHJcblxyXG4gICAgcHJpdmF0ZSBkZXN0cm95U3Vic2NyaXB0aW9ucygpIHtcclxuICAgICAgICB0aGlzLnN1YnNjcmlwdGlvbnMuZm9yRWFjaChzdWJzY3JpcHRpb24gPT4gc3Vic2NyaXB0aW9uLnVuc3Vic2NyaWJlKCkpO1xyXG4gICAgICAgIHRoaXMuc3Vic2NyaXB0aW9ucyA9IFtdO1xyXG4gICAgfVxyXG59XHJcbiJdfQ==
|