@simpleangularcontrols/sac-common 10.0.0-rc.7 → 10.0.0-rc.8
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/bundles/simpleangularcontrols-sac-common.umd.js +546 -390
- package/bundles/simpleangularcontrols-sac-common.umd.js.map +1 -1
- package/bundles/simpleangularcontrols-sac-common.umd.min.js +1 -1
- package/bundles/simpleangularcontrols-sac-common.umd.min.js.map +1 -1
- package/common/baseinputcontrol.d.ts +0 -4
- package/common/basemodelcontrol.d.ts +25 -1
- package/common/baseuploadcontrol.d.ts +0 -5
- package/controls/checkbox/checkbox.d.ts +0 -4
- package/controls/datetime/date.d.ts +0 -4
- package/controls/datetime/datetime.d.ts +0 -4
- package/controls/datetime/time.d.ts +0 -4
- package/controls/grid/grid.d.ts +38 -36
- package/controls/grid/gridbutton.d.ts +13 -13
- package/controls/grid/gridcolumn.d.ts +8 -8
- package/controls/grid/gridcolumnaction.d.ts +3 -3
- package/controls/grid/gridcolumnbase.d.ts +37 -37
- package/controls/grid/gridimage.d.ts +2 -2
- package/controls/grid/model.d.ts +51 -42
- package/controls/grid/paging.d.ts +41 -43
- package/controls/layout/formlayout.d.ts +4 -0
- package/controls/static/formcontainer.d.ts +2 -6
- package/controls/tooltip/tooltip.d.ts +88 -63
- package/esm2015/common/baseinputcontrol.js +2 -7
- package/esm2015/common/basemodelcontrol.js +34 -2
- package/esm2015/common/baseuploadcontrol.js +2 -3
- package/esm2015/controls/checkbox/checkbox.js +5 -6
- package/esm2015/controls/datetime/date.js +2 -3
- package/esm2015/controls/datetime/datetime.js +2 -3
- package/esm2015/controls/datetime/time.js +2 -3
- package/esm2015/controls/grid/grid.js +21 -21
- package/esm2015/controls/grid/gridbutton.js +19 -13
- package/esm2015/controls/grid/gridcolumn.js +14 -7
- package/esm2015/controls/grid/gridcolumnaction.js +6 -5
- package/esm2015/controls/grid/gridcolumnbase.js +56 -55
- package/esm2015/controls/grid/gridimage.js +3 -3
- package/esm2015/controls/grid/model.js +51 -30
- package/esm2015/controls/grid/paging.js +40 -42
- package/esm2015/controls/layout/formlayout.js +2 -1
- package/esm2015/controls/static/formcontainer.js +11 -10
- package/esm2015/controls/tooltip/tooltip.js +260 -189
- package/esm2015/interfaces/ISacConfigurationService.js +1 -1
- package/esm2015/interfaces/ISacIconService.js +1 -1
- package/esm2015/services/sac-configuration.service.js +7 -1
- package/esm2015/services/sac-icon.service.js +7 -1
- package/fesm2015/simpleangularcontrols-sac-common.js +521 -377
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacConfigurationService.d.ts +4 -0
- package/interfaces/ISacIconService.d.ts +4 -0
- package/package.json +1 -1
- package/services/sac-configuration.service.d.ts +8 -0
- package/services/sac-icon.service.d.ts +8 -0
- package/simpleangularcontrols-sac-common-10.0.0-rc.8.tgz +0 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/simpleangularcontrols-sac-common-10.0.0-rc.7.tgz +0 -0
|
@@ -27,10 +27,6 @@ export declare abstract class SacInputBase<VALUE> extends SacBaseModelControl<VA
|
|
|
27
27
|
* Definiert das Feld als valid/invalid von eingegebenen regex-pattern
|
|
28
28
|
*/
|
|
29
29
|
regexvalidation: string;
|
|
30
|
-
/**
|
|
31
|
-
* Text welcher als Tooltip angezeigt wird.
|
|
32
|
-
*/
|
|
33
|
-
tooltiptext: string;
|
|
34
30
|
/**
|
|
35
31
|
* Methode validiert Input wenn KeyPress-Event passiert
|
|
36
32
|
*/
|
|
@@ -4,6 +4,7 @@ import { Observable } from 'rxjs';
|
|
|
4
4
|
import { SacFormLayoutCommon } from '../controls/layout/formlayout';
|
|
5
5
|
import { ControlHeight } from '../enums/ControlHeight';
|
|
6
6
|
import { ISacConfigurationService } from '../interfaces/ISacConfigurationService';
|
|
7
|
+
import { ISacIconService } from '../interfaces/ISacIconService';
|
|
7
8
|
import { ISacLabelSizes } from '../interfaces/ISacLabelSizes';
|
|
8
9
|
import { ISacLocalisationService } from '../interfaces/ISacLocalisationService';
|
|
9
10
|
import { ISacValidationKeyService } from '../interfaces/ISacValidationKeyService';
|
|
@@ -11,7 +12,7 @@ import { ISacValidationKeyService } from '../interfaces/ISacValidationKeyService
|
|
|
11
12
|
* Abstract Klasse für SacBaseModelControl. Implements ControlValueAccessor, Validator, OnInit
|
|
12
13
|
*/
|
|
13
14
|
export declare abstract class SacBaseModelControl<VALUE> implements ControlValueAccessor, Validator, OnInit, AfterViewInit {
|
|
14
|
-
private injector;
|
|
15
|
+
private readonly injector;
|
|
15
16
|
/**
|
|
16
17
|
* Inline Errors für das Control
|
|
17
18
|
*/
|
|
@@ -45,6 +46,10 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
45
46
|
* Form layout instance if exists
|
|
46
47
|
*/
|
|
47
48
|
protected formlayout: SacFormLayoutCommon;
|
|
49
|
+
/**
|
|
50
|
+
* icon service
|
|
51
|
+
*/
|
|
52
|
+
protected iconService: ISacIconService;
|
|
48
53
|
/**
|
|
49
54
|
* Service für Error Localisation
|
|
50
55
|
*/
|
|
@@ -65,6 +70,14 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
65
70
|
* Deaktiviert das Label im Template
|
|
66
71
|
*/
|
|
67
72
|
disablelabel: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Text to support the user during input.
|
|
75
|
+
*/
|
|
76
|
+
helptext: string;
|
|
77
|
+
/**
|
|
78
|
+
* Mode for display helptext
|
|
79
|
+
*/
|
|
80
|
+
helptextmode: 'tooltip' | 'text' | null;
|
|
68
81
|
/**
|
|
69
82
|
* defines that error messages are displayed under the controls
|
|
70
83
|
*/
|
|
@@ -136,10 +149,17 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
136
149
|
* Input wird benötigt, damit der Wert auch über das Markup gesetzt werden kann.
|
|
137
150
|
*/
|
|
138
151
|
set value(v: VALUE);
|
|
152
|
+
/**
|
|
153
|
+
* Get Icon for Helptext Tooltip
|
|
154
|
+
*/
|
|
155
|
+
get HelptextTooltipIcon(): string;
|
|
139
156
|
/**
|
|
140
157
|
* Methode ergibt Boolean Wert für dirty
|
|
141
158
|
*/
|
|
142
159
|
get dirty(): boolean;
|
|
160
|
+
/**
|
|
161
|
+
* Show error messages inline
|
|
162
|
+
*/
|
|
143
163
|
get inlineerrorenabled(): boolean | null;
|
|
144
164
|
/**
|
|
145
165
|
* Methode ergibt boolean Wert wenn Form invalid oder nicht invalid ist
|
|
@@ -241,6 +261,10 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
241
261
|
* Set component height from property or parent layout control
|
|
242
262
|
*/
|
|
243
263
|
private setComponentHeight;
|
|
264
|
+
/**
|
|
265
|
+
* Set mode for helptext. Can be tooltip or text
|
|
266
|
+
*/
|
|
267
|
+
private setHelpTextMode;
|
|
244
268
|
/**
|
|
245
269
|
* Set adaptive label property from parent layout control
|
|
246
270
|
*/
|
|
@@ -3,7 +3,6 @@ import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
|
3
3
|
import { UploadState, UploadxService } from 'ngx-uploadx';
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { SacFormLayoutCommon } from '../controls/layout/formlayout';
|
|
6
|
-
import { ISacIconService } from '../interfaces/ISacIconService';
|
|
7
6
|
import { ISacLocalisationService } from '../interfaces/ISacLocalisationService';
|
|
8
7
|
import { SacBaseModelControl } from './basemodelcontrol';
|
|
9
8
|
/**
|
|
@@ -36,10 +35,6 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
|
|
|
36
35
|
* Upload Settings
|
|
37
36
|
*/
|
|
38
37
|
private options;
|
|
39
|
-
/**
|
|
40
|
-
* icon service to receive icons for uploader
|
|
41
|
-
*/
|
|
42
|
-
protected iconService: ISacIconService;
|
|
43
38
|
/**
|
|
44
39
|
* Upload Service
|
|
45
40
|
*/
|
|
@@ -4,10 +4,6 @@ import { SacBaseModelControl } from '../../common/basemodelcontrol';
|
|
|
4
4
|
* Basis Komponente für SacCheckboxCommon. Extends SacBaseModelControl
|
|
5
5
|
*/
|
|
6
6
|
export declare class SacCheckboxCommon extends SacBaseModelControl<boolean> {
|
|
7
|
-
/**
|
|
8
|
-
* Text welcher als Tooltip angezeigt wird.
|
|
9
|
-
*/
|
|
10
|
-
tooltiptext: string;
|
|
11
7
|
/**
|
|
12
8
|
* Text vom Checkbox-Control. Der Text wird rechts von der Checkbox angezeigt.
|
|
13
9
|
*/
|
|
@@ -9,10 +9,6 @@ import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class SacDateCommon extends SacBaseDateTimeControl {
|
|
11
11
|
protected elementRef: ElementRef;
|
|
12
|
-
/**
|
|
13
|
-
* icon service
|
|
14
|
-
*/
|
|
15
|
-
private iconService;
|
|
16
12
|
/**
|
|
17
13
|
* Format des Datums
|
|
18
14
|
*/
|
|
@@ -9,10 +9,6 @@ import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
11
11
|
protected elementRef: ElementRef;
|
|
12
|
-
/**
|
|
13
|
-
* icon service
|
|
14
|
-
*/
|
|
15
|
-
private iconService;
|
|
16
12
|
/**
|
|
17
13
|
* Format des Datums
|
|
18
14
|
*/
|
|
@@ -9,10 +9,6 @@ import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
|
9
9
|
*/
|
|
10
10
|
export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
11
11
|
protected elementRef: ElementRef;
|
|
12
|
-
/**
|
|
13
|
-
* icon service
|
|
14
|
-
*/
|
|
15
|
-
private iconService;
|
|
16
12
|
/**
|
|
17
13
|
* Format des Datums
|
|
18
14
|
*/
|
package/controls/grid/grid.d.ts
CHANGED
|
@@ -2,124 +2,126 @@ import { ChangeDetectorRef, EventEmitter, Injector, TemplateRef } from '@angular
|
|
|
2
2
|
import { ISacValidationKeyService } from '../../interfaces/ISacValidationKeyService';
|
|
3
3
|
import { PagerData, PagerRequest, SortDescriptor, SortOrder } from './model';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Basic component for SacGrid
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class SacGridCommon {
|
|
8
8
|
private cd;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Page number of the active page.
|
|
11
11
|
*/
|
|
12
12
|
protected activePage: number;
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* Contains the number of the first page displayed in Pager.
|
|
15
15
|
*/
|
|
16
16
|
protected firstPageNumber: number;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Contains the number of the last page in Pager. The value is calculated automatically.
|
|
19
19
|
*/
|
|
20
20
|
protected lastPageNumber: number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Contains Array of Pages.
|
|
23
23
|
*/
|
|
24
24
|
protected paginators: Array<any>;
|
|
25
25
|
/**
|
|
26
|
-
* Input property
|
|
26
|
+
* Input property for Body.
|
|
27
27
|
*/
|
|
28
28
|
body: TemplateRef<any>;
|
|
29
29
|
/**
|
|
30
|
-
* Text
|
|
30
|
+
* Text which is displayed if no rows are available.
|
|
31
31
|
*/
|
|
32
32
|
emptytext: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Property for headers.
|
|
35
35
|
*/
|
|
36
36
|
headers: TemplateRef<any>;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Property for the maximum pages that are visible.
|
|
39
39
|
*/
|
|
40
40
|
maxvisiblepagenumbers: number;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Control Name. Used to generate the ID and names.
|
|
43
43
|
*/
|
|
44
44
|
name: string;
|
|
45
45
|
/**
|
|
46
|
-
* Pager
|
|
47
|
-
*
|
|
48
|
-
* Pager kann ausgeschaltet werden, in dem PagerData auf NULL gesetzt wird.
|
|
46
|
+
* Pager configuration. Pager can be switched off by setting PagerData to `null`.
|
|
49
47
|
*/
|
|
50
48
|
pagerdata: PagerData;
|
|
51
49
|
/**
|
|
52
|
-
*
|
|
50
|
+
* Deactivates the selection of the PageSize in the pager
|
|
53
51
|
*/
|
|
54
52
|
pagesizedisabled: boolean;
|
|
55
53
|
/**
|
|
56
|
-
*
|
|
54
|
+
* Defines the number of elements per page that can be selected. The default is 20, 50 and 100. The values must be separated with a `|`.
|
|
57
55
|
*/
|
|
58
56
|
pagesizes: string;
|
|
59
57
|
/**
|
|
60
|
-
* Text in Page
|
|
61
|
-
*
|
|
62
|
-
* {{PAGESIZE}}:
|
|
58
|
+
* Text in Page for number of page elements per page. The following interpolation texts are available:
|
|
59
|
+
*
|
|
60
|
+
* {{PAGESIZE}}: Number of elements per page
|
|
63
61
|
*/
|
|
64
62
|
pagesizetext: string;
|
|
65
63
|
/**
|
|
66
|
-
* Text in
|
|
67
|
-
*
|
|
68
|
-
* {{CURRENTPAGE}}:
|
|
69
|
-
*
|
|
64
|
+
* Text in pager for 'Page x of y'. The following interpolation texts are available:
|
|
65
|
+
*
|
|
66
|
+
* {{CURRENTPAGE}}: Current page
|
|
67
|
+
*
|
|
68
|
+
* {{TOTALPAGES}}: Number of pages
|
|
70
69
|
*/
|
|
71
70
|
pagingtext: string;
|
|
72
71
|
/**
|
|
73
|
-
* Grid
|
|
72
|
+
* Grid data
|
|
74
73
|
*/
|
|
75
74
|
value: any;
|
|
76
75
|
/**
|
|
77
|
-
*
|
|
76
|
+
* Event when the pager is clicked.
|
|
78
77
|
*/
|
|
79
78
|
paging: EventEmitter<PagerRequest>;
|
|
80
79
|
/**
|
|
81
|
-
*
|
|
80
|
+
* Event when a header is clicked so that the grid is sorted.
|
|
82
81
|
*/
|
|
83
82
|
sorting: EventEmitter<SortDescriptor>;
|
|
84
83
|
/**
|
|
85
|
-
*
|
|
84
|
+
* Number of columns in the grid
|
|
86
85
|
*/
|
|
87
86
|
ColumnCount: number;
|
|
88
87
|
/**
|
|
89
|
-
*
|
|
88
|
+
* Column by which currently sorted.
|
|
90
89
|
*/
|
|
91
90
|
sortColumn: string;
|
|
92
91
|
/**
|
|
93
|
-
*
|
|
92
|
+
* Current direction of sorting
|
|
94
93
|
*/
|
|
95
94
|
sortDirection: SortOrder;
|
|
95
|
+
/**
|
|
96
|
+
* Service with the validation keys. Is required to load the default texts for the pager etc.
|
|
97
|
+
*/
|
|
96
98
|
validationKeyService: ISacValidationKeyService;
|
|
97
99
|
/**
|
|
98
|
-
*
|
|
100
|
+
* Constructor
|
|
99
101
|
* @param cd Change Detection Service
|
|
100
102
|
* @param injector DI Injector
|
|
101
103
|
*/
|
|
102
104
|
constructor(cd: ChangeDetectorRef, injector: Injector);
|
|
103
105
|
/**
|
|
104
|
-
* Model
|
|
105
|
-
* @param sortDescription Settings
|
|
106
|
+
* Model for sorting
|
|
107
|
+
* @param sortDescription Settings for current sorting
|
|
106
108
|
*/
|
|
107
109
|
set sortdata(sortDescription: SortDescriptor);
|
|
108
110
|
/**
|
|
109
|
-
*
|
|
111
|
+
* The method increases the column elements by one
|
|
110
112
|
*/
|
|
111
113
|
RegisterColumn(): void;
|
|
112
114
|
/**
|
|
113
|
-
*
|
|
115
|
+
* Method for sorting the data.
|
|
114
116
|
*/
|
|
115
117
|
SortBy(command: any): void;
|
|
116
118
|
/**
|
|
117
|
-
*
|
|
119
|
+
* The method reduces the column elements by one
|
|
118
120
|
*/
|
|
119
121
|
UnregisterColumn(): void;
|
|
120
122
|
/**
|
|
121
|
-
*
|
|
122
|
-
* @param newStartIndex
|
|
123
|
+
* Method if Grid is to switch to a new page.
|
|
124
|
+
* @param newStartIndex New Page Index (Zero-Based)
|
|
123
125
|
*/
|
|
124
126
|
pageChange(newStartIndex: any): void;
|
|
125
127
|
}
|
|
@@ -4,30 +4,30 @@ import { EventEmitter } from '@angular/core';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacGridButtonCommon {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Button is deactivated
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
protected _isdisabledvalue: boolean;
|
|
10
10
|
/**
|
|
11
|
-
* Icon
|
|
11
|
+
* Icon name from sprite
|
|
12
12
|
*/
|
|
13
13
|
icon: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Input property for styling the button. Defines the CSS classes of the button
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
iconstyle: string;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @param v Deaktiviert den Button
|
|
21
|
-
* @return Definiert ob der Button deaktiviert ist
|
|
19
|
+
* Event when the button is clicked
|
|
22
20
|
*/
|
|
23
|
-
|
|
24
|
-
get isdisabled(): boolean | string;
|
|
21
|
+
clicked: EventEmitter<any>;
|
|
25
22
|
/**
|
|
26
|
-
*
|
|
23
|
+
* Deactivating buttons
|
|
24
|
+
* @param v Deactivates the button. Can be a Boolean or the strings `true` or `false`.
|
|
25
|
+
* @return Defines whether the button is deactivated. Is always a Boolean type
|
|
27
26
|
*/
|
|
28
|
-
|
|
27
|
+
set isdisabled(v: boolean | string);
|
|
28
|
+
get isdisabled(): boolean | string;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Triggers the clicked event if the button is not deactivated.
|
|
31
31
|
*/
|
|
32
32
|
callaction(): void;
|
|
33
33
|
}
|
|
@@ -2,27 +2,27 @@ import { ElementRef, Injector } from '@angular/core';
|
|
|
2
2
|
import { SacGridCommon } from './grid';
|
|
3
3
|
import { SacGridColumnBaseCommon } from './gridcolumnbase';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Component for SacGridColumnCommon. Extends SacGridColumnBaseCommon
|
|
6
6
|
*/
|
|
7
7
|
export declare class SacGridColumnCommon extends SacGridColumnBaseCommon {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Defines whether the CSS class ellipsis is set.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
private _ellipsis;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Constructor
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
constructor(grid: SacGridCommon, injector: Injector, el: ElementRef);
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Sets the ellipsis property. Can be a Boolean or the strings `true` or `false`.
|
|
18
18
|
*/
|
|
19
19
|
set ellipsis(v: string | boolean);
|
|
20
20
|
/**
|
|
21
|
-
* Getter
|
|
21
|
+
* Getter for the ellipsis property. Always returns a boolean type.
|
|
22
22
|
*/
|
|
23
23
|
get ellipsis(): string | boolean;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Checks whether ellipsis is set
|
|
26
26
|
*/
|
|
27
27
|
IsEllipsis(): boolean;
|
|
28
28
|
}
|
|
@@ -2,12 +2,12 @@ import { ElementRef, Injector } from '@angular/core';
|
|
|
2
2
|
import { SacGridCommon } from './grid';
|
|
3
3
|
import { SacGridColumnBaseCommon } from './gridcolumnbase';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Component for SacGridColumnActionCommon. Extends SacGridColumnBaseCommon
|
|
6
6
|
*/
|
|
7
7
|
export declare class SacGridColumnActionCommon extends SacGridColumnBaseCommon {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param el Element
|
|
9
|
+
* Constructor
|
|
10
|
+
* @param el Element reference
|
|
11
11
|
* @param injector di inector to resolve icon service
|
|
12
12
|
* @param grid SacGridCommon
|
|
13
13
|
*/
|
|
@@ -1,86 +1,86 @@
|
|
|
1
1
|
import { ElementRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { SacGridCommon } from './grid';
|
|
3
2
|
import { ISacIconService } from '../../interfaces/ISacIconService';
|
|
3
|
+
import { SacGridCommon } from './grid';
|
|
4
4
|
/**
|
|
5
|
-
* Base
|
|
5
|
+
* Base component for GridColumn
|
|
6
6
|
*/
|
|
7
7
|
export declare class SacGridColumnBaseCommon implements OnInit, OnDestroy {
|
|
8
8
|
private grid;
|
|
9
9
|
protected injector: Injector;
|
|
10
10
|
private el;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param grid reference to grid component
|
|
14
|
-
* @param injector di injector to resolve icon service
|
|
15
|
-
* @param el reference to html element
|
|
12
|
+
* icon service for reading the icons
|
|
16
13
|
*/
|
|
17
|
-
|
|
14
|
+
protected iconService: ISacIconService;
|
|
18
15
|
/**
|
|
19
|
-
*
|
|
16
|
+
* Value of the cell if the type is `header`.
|
|
20
17
|
*/
|
|
21
|
-
|
|
18
|
+
header: string;
|
|
22
19
|
/**
|
|
23
|
-
*
|
|
20
|
+
* Name of the column
|
|
24
21
|
*/
|
|
25
22
|
name: any;
|
|
26
23
|
/**
|
|
27
|
-
*
|
|
24
|
+
* Key for sorting the column
|
|
28
25
|
*/
|
|
29
|
-
|
|
26
|
+
sortkey: string;
|
|
30
27
|
/**
|
|
31
|
-
*
|
|
28
|
+
* Type of column. Can contain the values `header`,`footer` and `body`.
|
|
32
29
|
*/
|
|
33
|
-
|
|
30
|
+
type: string;
|
|
34
31
|
/**
|
|
35
|
-
*
|
|
32
|
+
* Value of the cell if the type is `body`
|
|
36
33
|
*/
|
|
37
|
-
|
|
34
|
+
value: any;
|
|
38
35
|
/**
|
|
39
|
-
*
|
|
36
|
+
* Column width
|
|
40
37
|
*/
|
|
41
|
-
|
|
38
|
+
width: string;
|
|
42
39
|
/**
|
|
43
|
-
*
|
|
40
|
+
* Constructor
|
|
41
|
+
* @param grid reference to grid component
|
|
42
|
+
* @param injector di injector to resolve icon service
|
|
43
|
+
* @param el reference to html element
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
constructor(grid: SacGridCommon, injector: Injector, el: ElementRef);
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
47
|
+
* sort down icon for grid header
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
get IconSortDown(): string;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* sort up icon for grid header
|
|
52
52
|
*/
|
|
53
|
-
|
|
53
|
+
get IconSortUp(): string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Indicates the direction of sorting. The possible values are `none`,`asc`,`desc`
|
|
56
56
|
*/
|
|
57
|
-
|
|
57
|
+
GetSortDirection(): string;
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Defines whether the element is a cell in the table.
|
|
60
60
|
*/
|
|
61
61
|
IsBody(): boolean;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Defines whether the element is a cell in the footer of the table
|
|
64
64
|
*/
|
|
65
65
|
IsFooter(): boolean;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Defines whether the element is a cell in the table header
|
|
68
68
|
*/
|
|
69
|
-
|
|
69
|
+
IsHeader(): boolean;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Defines whether this column is sorted.
|
|
72
72
|
*/
|
|
73
|
-
|
|
73
|
+
IsSortedColumn(): boolean;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
75
|
+
* Triggers the events so that the table is sorted according to this column.
|
|
76
76
|
*/
|
|
77
77
|
SortByColumn(): void;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* Called when the component is destroyed.
|
|
80
80
|
*/
|
|
81
|
-
|
|
81
|
+
ngOnDestroy(): void;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* Is called when the component is initialized.
|
|
84
84
|
*/
|
|
85
|
-
|
|
85
|
+
ngOnInit(): void;
|
|
86
86
|
}
|