@simpleangularcontrols/sac-common 10.0.0-rc.2 → 10.0.0-rc.21
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 +2232 -1604
- 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/basedatetimecontrol.d.ts +100 -14
- package/common/baseinputcontrol.d.ts +0 -4
- package/common/basemodelcontrol.d.ts +55 -27
- package/common/baseuploadcontrol.d.ts +71 -55
- package/controls/checkbox/checkbox.d.ts +12 -3
- package/controls/checkbox/radiobutton.d.ts +61 -26
- package/controls/contextmenu/contextmenu.d.ts +26 -19
- package/controls/contextmenu/contextmenu.interface.d.ts +3 -0
- package/controls/contextmenu/contextmenuitem.d.ts +5 -0
- package/controls/contextmenu/contextmenuitembutton.d.ts +21 -20
- package/controls/datetime/date.d.ts +28 -31
- package/controls/datetime/datetime.d.ts +27 -31
- package/controls/datetime/time.d.ts +26 -30
- package/controls/dialog/dialog.d.ts +31 -43
- 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 +45 -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/input/input.d.ts +3 -3
- package/controls/input/inputarea.d.ts +5 -5
- package/controls/input/inputpassword.d.ts +7 -7
- package/controls/input/inputsearch.d.ts +13 -4
- package/controls/layout/formlayout.d.ts +17 -1
- package/controls/list/buildvaluestring.d.ts +6 -0
- package/controls/list/dropdown.d.ts +9 -51
- package/controls/list/dropdownoptions.d.ts +38 -0
- package/controls/multilanguage/multilanguageinput.d.ts +2 -2
- package/controls/multilanguage/multilanguageinputarea.d.ts +4 -4
- package/controls/static/formcontainer.d.ts +7 -3
- package/controls/tooltip/tooltip.d.ts +76 -69
- package/controls/treeview/treeview.d.ts +107 -107
- package/esm2015/common/basedatetimecontrol.js +185 -30
- package/esm2015/common/baseinputcontrol.js +2 -7
- package/esm2015/common/basemodelcontrol.js +109 -57
- package/esm2015/common/baseuploadcontrol.js +92 -59
- package/esm2015/controls/checkbox/checkbox.js +29 -6
- package/esm2015/controls/checkbox/radiobutton.js +94 -45
- package/esm2015/controls/contextmenu/contextmenu.interface.js +1 -0
- package/esm2015/controls/contextmenu/contextmenu.interface.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenu.js +22 -23
- package/esm2015/controls/contextmenu/contextmenuitem.js +13 -2
- package/esm2015/controls/contextmenu/contextmenuitembutton.js +34 -25
- package/esm2015/controls/datetime/date.js +44 -43
- package/esm2015/controls/datetime/datetime.js +43 -43
- package/esm2015/controls/datetime/time.js +43 -43
- package/esm2015/controls/dialog/dialog.js +41 -83
- 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 +67 -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/input/input.js +6 -8
- package/esm2015/controls/input/inputarea.js +19 -12
- package/esm2015/controls/input/inputpassword.js +12 -12
- package/esm2015/controls/input/inputsearch.js +35 -6
- package/esm2015/controls/layout/formlayout.js +20 -8
- package/esm2015/controls/list/buildvaluestring.js +18 -0
- package/esm2015/controls/{treeview/ngtreeitemaction.ngfactory.js → list/buildvaluestring.ngfactory.js} +1 -1
- package/esm2015/controls/list/dropdown.js +16 -114
- package/esm2015/controls/list/dropdownoptions.js +72 -0
- package/esm2015/controls/{treeview/treeviewchild.ngfactory.js → list/dropdownoptions.ngfactory.js} +1 -1
- package/esm2015/controls/multilanguage/multilanguageinput.js +8 -14
- package/esm2015/controls/multilanguage/multilanguageinputarea.js +9 -15
- package/esm2015/controls/static/formcontainer.js +16 -5
- package/esm2015/controls/tooltip/tooltip.js +126 -245
- package/esm2015/controls/treeview/treeview.js +276 -231
- package/esm2015/interfaces/ISacConfigurationService.js +1 -1
- package/esm2015/interfaces/ISacIconService.js +1 -1
- package/esm2015/interfaces/ISacUploadEventCompleteState.js +1 -0
- package/esm2015/interfaces/ISacUploadEventCompleteState.ngfactory.js +7 -0
- package/esm2015/interfaces/ISacValidationKeyService.js +1 -1
- package/esm2015/interfaces/treeviewaction.interface.js +1 -0
- package/esm2015/interfaces/treeviewaction.interface.ngfactory.js +7 -0
- package/esm2015/public_api.js +15 -8
- package/esm2015/services/sac-configuration.service.js +31 -5
- package/esm2015/services/sac-icon.service.js +37 -1
- package/esm2015/services/sac-localisation.service.js +69 -180
- package/esm2015/services/sac-validationkey.service.js +12 -9
- package/esm2015/simpleangularcontrols-sac-common.js +1 -7
- package/esm2015/utilities/enums.js +5 -1
- package/esm2015/utilities/guid.js +4 -2
- package/esm2015/utilities/popuphelper.js +343 -0
- package/esm2015/utilities/popuphelper.ngfactory.js +7 -0
- package/esm2015/validation/equals.validator.js +14 -0
- package/esm2015/validation/equals.validator.ngfactory.js +7 -0
- package/esm2015/validation/isDateValid.js +9 -1
- package/esm2015/validation/mintextlength.validator.js +23 -0
- package/esm2015/validation/mintextlength.validator.ngfactory.js +7 -0
- package/esm2015/validation/notequals.validator.js +14 -0
- package/esm2015/validation/{minlength.validator.ngfactory.js → notequals.validator.ngfactory.js} +1 -1
- package/esm2015/validation/validation.class.js +35 -6
- package/fesm2015/simpleangularcontrols-sac-common.js +2070 -1498
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacConfigurationService.d.ts +20 -0
- package/interfaces/ISacIconService.d.ts +24 -0
- package/interfaces/ISacUploadEventCompleteState.d.ts +5 -0
- package/interfaces/ISacUploadEventCompleteState.ngfactory.d.ts +1 -0
- package/interfaces/ISacValidationKeyService.d.ts +2 -2
- package/interfaces/treeviewaction.interface.d.ts +4 -0
- package/interfaces/treeviewaction.interface.ngfactory.d.ts +1 -0
- package/package.json +2 -2
- package/public_api.d.ts +13 -6
- package/services/sac-configuration.service.d.ts +40 -0
- package/services/sac-icon.service.d.ts +49 -1
- package/services/sac-localisation.service.d.ts +10 -10
- package/services/sac-validationkey.service.d.ts +7 -7
- package/simpleangularcontrols-sac-common-10.0.0-rc.21.tgz +0 -0
- package/simpleangularcontrols-sac-common.d.ts +0 -6
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/utilities/enums.d.ts +3 -1
- package/utilities/popuphelper.d.ts +83 -0
- package/utilities/popuphelper.ngfactory.d.ts +1 -0
- package/validation/equals.validator.d.ts +2 -0
- package/validation/equals.validator.ngfactory.d.ts +1 -0
- package/validation/mintextlength.validator.d.ts +2 -0
- package/validation/mintextlength.validator.ngfactory.d.ts +1 -0
- package/validation/notequals.validator.d.ts +2 -0
- package/validation/notequals.validator.ngfactory.d.ts +1 -0
- package/validation/validation.class.d.ts +22 -3
- package/controls/treeview/ngtreeitemaction.d.ts +0 -40
- package/controls/treeview/treeviewchild.d.ts +0 -12
- package/esm2015/controls/treeview/ngtreeitemaction.js +0 -60
- package/esm2015/controls/treeview/treeviewchild.js +0 -18
- package/esm2015/validation/minlength.validator.js +0 -21
- package/simpleangularcontrols-sac-common-10.0.0-rc.2.tgz +0 -0
- package/validation/minlength.validator.d.ts +0 -2
- /package/controls/{treeview/ngtreeitemaction.ngfactory.d.ts → contextmenu/contextmenu.interface.ngfactory.d.ts} +0 -0
- /package/controls/{treeview/treeviewchild.ngfactory.d.ts → list/buildvaluestring.ngfactory.d.ts} +0 -0
- /package/{validation/minlength.validator.ngfactory.d.ts → controls/list/dropdownoptions.ngfactory.d.ts} +0 -0
|
@@ -4,15 +4,7 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacDialogCommon implements OnDestroy {
|
|
6
6
|
private cdRef;
|
|
7
|
-
/**
|
|
8
|
-
* Name des Containers für den Dialog
|
|
9
|
-
*/
|
|
10
|
-
dialogElement: ElementRef;
|
|
11
7
|
private hasSetBodyTag;
|
|
12
|
-
/**
|
|
13
|
-
* Implementation als Setter, da mit ngIf das Element bei Unsichtbarkeit UNDEFINED ist.
|
|
14
|
-
*/
|
|
15
|
-
set dialogElementSetter(content: ElementRef);
|
|
16
8
|
/**
|
|
17
9
|
* Boolean Property definiert ob das Dialog angezeigt wird
|
|
18
10
|
*/
|
|
@@ -21,11 +13,7 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
21
13
|
* Das property enthielt (wenn überhaupt gesetzt) entweder keywords für sizing oder custom css Klassen.
|
|
22
14
|
* Die akzeptabel keywordssind: 'small', 'large', 'extralarge', 'medium', ''.
|
|
23
15
|
*/
|
|
24
|
-
_size:
|
|
25
|
-
/**
|
|
26
|
-
* Input Property. Erhält den Title des Dialog. Default Value: 'Dialog'.
|
|
27
|
-
*/
|
|
28
|
-
title: string;
|
|
16
|
+
_size: 'small' | 'large' | 'extralarge' | 'medium' | '';
|
|
29
17
|
/**
|
|
30
18
|
* Das input property akzeptiert boolen Wert. Definiert ob das Dialog darf durch ESC geschlossen werden. Default ist true.
|
|
31
19
|
*/
|
|
@@ -34,66 +22,62 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
34
22
|
* Das input property akzeptiert boolen Wert. Definiert ob das Dialog darf durch click außerhalb des Dialog-Fenster geschlossen werden. Default ist true.
|
|
35
23
|
*/
|
|
36
24
|
backdrop: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Input Property. Erhält den Namen des Dialog - benutzt für das ID. Default Value: ''
|
|
39
|
-
*/
|
|
40
|
-
name: string;
|
|
41
25
|
/**
|
|
42
26
|
* Steuert ob im Header des Dialogs ein Button angezeigt wird.
|
|
43
27
|
*/
|
|
44
28
|
closebutton: boolean;
|
|
45
29
|
/**
|
|
46
|
-
*
|
|
30
|
+
* Name des Containers für den Dialog
|
|
47
31
|
*/
|
|
48
|
-
|
|
32
|
+
dialogElement: ElementRef;
|
|
49
33
|
/**
|
|
50
|
-
*
|
|
34
|
+
* Output Emitter. Wird aufgerufen, wenn das Wert des _show property geändert ist - damait das Dialog geöfnet/geschlossen wird.
|
|
51
35
|
*/
|
|
52
|
-
|
|
36
|
+
isvisibleChange: EventEmitter<boolean>;
|
|
53
37
|
/**
|
|
54
|
-
*
|
|
55
|
-
* case insensitive.
|
|
56
|
-
* Die akzeptabel default-size-Klassen sind: 'small', 'large', 'extralarge', 'medium', ''.
|
|
57
|
-
* Wenn size ist NICHT gesetzt (oder 'medium' oder ''), default ist in medium size: max-width 500px.
|
|
38
|
+
* Input Property. Erhält den Namen des Dialog - benutzt für das ID. Default Value: ''
|
|
58
39
|
*/
|
|
59
|
-
|
|
40
|
+
name: string;
|
|
60
41
|
/**
|
|
61
|
-
*
|
|
42
|
+
* Input Property. Erhält den Title des Dialog. Default Value: 'Dialog'.
|
|
62
43
|
*/
|
|
63
|
-
|
|
44
|
+
title: string;
|
|
64
45
|
/**
|
|
65
|
-
*
|
|
46
|
+
* Konstruktor
|
|
47
|
+
* Inject des Formulars
|
|
66
48
|
*/
|
|
67
|
-
|
|
49
|
+
constructor(cdRef: ChangeDetectorRef);
|
|
68
50
|
/**
|
|
69
|
-
*
|
|
51
|
+
* Implementation als Setter, da mit ngIf das Element bei Unsichtbarkeit UNDEFINED ist.
|
|
70
52
|
*/
|
|
71
|
-
|
|
53
|
+
set dialogElementSetter(content: ElementRef);
|
|
72
54
|
/**
|
|
73
|
-
*
|
|
55
|
+
* Getter. Ergibt das boolen Wert des _show property
|
|
74
56
|
*/
|
|
75
|
-
|
|
57
|
+
get isvisible(): boolean;
|
|
76
58
|
/**
|
|
77
|
-
*
|
|
78
|
-
* Inject des Formulars
|
|
59
|
+
* Setter. Erhält das boolen Wert des _show property
|
|
79
60
|
*/
|
|
80
|
-
|
|
61
|
+
set isvisible(v: boolean);
|
|
81
62
|
/**
|
|
82
|
-
*
|
|
63
|
+
* Das Input akzeptiert sowohl default size-css-Klassen als auch custom Klassen.
|
|
64
|
+
* case insensitive.
|
|
65
|
+
* Die akzeptabel default-size-Klassen sind: 'small', 'large', 'extralarge', 'medium', ''.
|
|
66
|
+
* Wenn size ist NICHT gesetzt (oder 'medium' oder ''), default ist in medium size: max-width 500px.
|
|
83
67
|
*/
|
|
84
|
-
|
|
68
|
+
set size(v: 'small' | 'large' | 'extralarge' | 'medium' | '');
|
|
85
69
|
/**
|
|
86
|
-
*
|
|
70
|
+
* Getter for ChangeDetector.
|
|
87
71
|
*/
|
|
88
|
-
|
|
72
|
+
protected get ChangeDetector(): ChangeDetectorRef;
|
|
89
73
|
/**
|
|
90
74
|
* Die Methode setz den Wert des _show property auf false
|
|
91
75
|
*/
|
|
92
76
|
hide(): void;
|
|
93
77
|
/**
|
|
94
|
-
*
|
|
78
|
+
* Methode wenn Componente entfernt wird
|
|
95
79
|
*/
|
|
96
|
-
|
|
80
|
+
ngOnDestroy(): void;
|
|
97
81
|
/**
|
|
98
82
|
* Allow Close by Click outside Dialog
|
|
99
83
|
*/
|
|
@@ -102,4 +86,8 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
102
86
|
* Allow Close by ESC
|
|
103
87
|
*/
|
|
104
88
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
89
|
+
/**
|
|
90
|
+
* Die Methode setz den Wert des _show property auf true
|
|
91
|
+
*/
|
|
92
|
+
show(): void;
|
|
105
93
|
}
|
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,94 @@
|
|
|
1
|
-
import { ElementRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
-
import { SacGridCommon } from './grid';
|
|
1
|
+
import { ElementRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
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;
|
|
31
|
+
/**
|
|
32
|
+
* Value of the cell if the type is `body`
|
|
33
|
+
*/
|
|
34
|
+
value: any;
|
|
34
35
|
/**
|
|
35
|
-
*
|
|
36
|
+
* Column width
|
|
36
37
|
*/
|
|
37
38
|
width: string;
|
|
38
39
|
/**
|
|
39
|
-
*
|
|
40
|
+
* Click on Column Element
|
|
40
41
|
*/
|
|
41
|
-
|
|
42
|
+
rowclicked: EventEmitter<void>;
|
|
42
43
|
/**
|
|
43
|
-
*
|
|
44
|
+
* Constructor
|
|
45
|
+
* @param grid reference to grid component
|
|
46
|
+
* @param injector di injector to resolve icon service
|
|
47
|
+
* @param el reference to html element
|
|
44
48
|
*/
|
|
45
|
-
|
|
49
|
+
constructor(grid: SacGridCommon, injector: Injector, el: ElementRef);
|
|
46
50
|
/**
|
|
47
|
-
*
|
|
51
|
+
* sort down icon for grid header
|
|
48
52
|
*/
|
|
49
|
-
|
|
53
|
+
get IconSortDown(): string;
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
55
|
+
* sort up icon for grid header
|
|
52
56
|
*/
|
|
53
|
-
|
|
57
|
+
get IconSortUp(): string;
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
59
|
+
* Method when Colument element is clicked. Triggers a RowClicked
|
|
56
60
|
*/
|
|
57
|
-
|
|
61
|
+
ColumnClick(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Indicates the direction of sorting. The possible values are `none`,`asc`,`desc`
|
|
64
|
+
*/
|
|
65
|
+
GetSortDirection(): string;
|
|
58
66
|
/**
|
|
59
|
-
*
|
|
67
|
+
* Defines whether the element is a cell in the table.
|
|
60
68
|
*/
|
|
61
69
|
IsBody(): boolean;
|
|
62
70
|
/**
|
|
63
|
-
*
|
|
71
|
+
* Defines whether the element is a cell in the footer of the table
|
|
64
72
|
*/
|
|
65
73
|
IsFooter(): boolean;
|
|
66
74
|
/**
|
|
67
|
-
*
|
|
75
|
+
* Defines whether the element is a cell in the table header
|
|
68
76
|
*/
|
|
69
|
-
|
|
77
|
+
IsHeader(): boolean;
|
|
70
78
|
/**
|
|
71
|
-
*
|
|
79
|
+
* Defines whether this column is sorted.
|
|
72
80
|
*/
|
|
73
|
-
|
|
81
|
+
IsSortedColumn(): boolean;
|
|
74
82
|
/**
|
|
75
|
-
*
|
|
83
|
+
* Triggers the events so that the table is sorted according to this column.
|
|
76
84
|
*/
|
|
77
85
|
SortByColumn(): void;
|
|
78
86
|
/**
|
|
79
|
-
*
|
|
87
|
+
* Called when the component is destroyed.
|
|
80
88
|
*/
|
|
81
|
-
|
|
89
|
+
ngOnDestroy(): void;
|
|
82
90
|
/**
|
|
83
|
-
*
|
|
91
|
+
* Is called when the component is initialized.
|
|
84
92
|
*/
|
|
85
|
-
|
|
93
|
+
ngOnInit(): void;
|
|
86
94
|
}
|