@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
package/controls/grid/model.d.ts
CHANGED
|
@@ -1,83 +1,92 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* GridResponse class
|
|
3
3
|
*/
|
|
4
|
-
export declare class
|
|
5
|
-
/**
|
|
6
|
-
* Konstruktor
|
|
7
|
-
* @param PageSize Anzahl Elemente pro Seite
|
|
8
|
-
* @param CurrentPageIndex Aktuelle Seite
|
|
9
|
-
* @param TotalRowCount Total Rows in Datenbank
|
|
10
|
-
*/
|
|
11
|
-
constructor(PageSize: number, CurrentPageIndex: number, TotalRowCount: number);
|
|
12
|
-
/**
|
|
13
|
-
* Gesamte Anzahl der Zeilen
|
|
14
|
-
*/
|
|
15
|
-
TotalRowCount: number;
|
|
4
|
+
export declare class GridResponse<T> {
|
|
16
5
|
/**
|
|
17
|
-
*
|
|
6
|
+
* Data
|
|
18
7
|
*/
|
|
19
|
-
|
|
8
|
+
Data: T[];
|
|
20
9
|
/**
|
|
21
|
-
*
|
|
10
|
+
* Total number of data records
|
|
22
11
|
*/
|
|
23
|
-
|
|
12
|
+
TotalRowCount: number;
|
|
24
13
|
}
|
|
25
14
|
/**
|
|
26
|
-
* Model
|
|
15
|
+
* Model for pager settings
|
|
27
16
|
*/
|
|
28
|
-
export declare class
|
|
17
|
+
export declare class PagerData {
|
|
29
18
|
/**
|
|
30
|
-
*
|
|
31
|
-
* @param PageSize Seitegrösse / Anzahl Elemente pro Seite
|
|
32
|
-
* @param NewPageIndex Neuer Seitenindex
|
|
19
|
+
* Current index of the page
|
|
33
20
|
*/
|
|
34
|
-
|
|
21
|
+
CurrentPageIndex: number;
|
|
35
22
|
/**
|
|
36
|
-
*
|
|
23
|
+
* Number of elements on the page
|
|
37
24
|
*/
|
|
38
25
|
PageSize: number;
|
|
39
26
|
/**
|
|
40
|
-
*
|
|
27
|
+
* Total number of data records
|
|
41
28
|
*/
|
|
42
|
-
|
|
29
|
+
TotalRowCount: number;
|
|
30
|
+
/**
|
|
31
|
+
* Constructor
|
|
32
|
+
* @param PageSize Number of elements per page
|
|
33
|
+
* @param CurrentPageIndex Current page
|
|
34
|
+
* @param TotalRowCount Total Rows in database
|
|
35
|
+
*/
|
|
36
|
+
constructor(PageSize: number, CurrentPageIndex: number, TotalRowCount: number);
|
|
43
37
|
}
|
|
44
38
|
/**
|
|
45
|
-
*
|
|
39
|
+
* Model if page is to be changed
|
|
46
40
|
*/
|
|
47
|
-
export declare class
|
|
41
|
+
export declare class PagerRequest {
|
|
48
42
|
/**
|
|
49
|
-
*
|
|
43
|
+
* Index of the page to which you want to switch
|
|
50
44
|
*/
|
|
51
|
-
|
|
45
|
+
NewPageIndex: number;
|
|
52
46
|
/**
|
|
53
|
-
*
|
|
47
|
+
* Number of elements on the page
|
|
54
48
|
*/
|
|
55
|
-
|
|
49
|
+
PageSize: number;
|
|
50
|
+
/**
|
|
51
|
+
* Constructor
|
|
52
|
+
* @param PageSize Page size / number of elements per page
|
|
53
|
+
* @param NewPageIndex New page index
|
|
54
|
+
*/
|
|
55
|
+
constructor(PageSize: number, NewPageIndex: number);
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* Model
|
|
58
|
+
* Model for sorting
|
|
59
59
|
*/
|
|
60
60
|
export declare class SortDescriptor {
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
63
|
-
* @param sortcolumn Column die Sortiert wird
|
|
64
|
-
* @param sortorder Art der Sortierung
|
|
65
|
-
*/
|
|
66
|
-
constructor(sortcolumn?: string, sortorder?: SortOrder);
|
|
67
|
-
/**
|
|
68
|
-
* Bezeichnung / Key für Sortierung
|
|
62
|
+
* Description / Key for sorting
|
|
69
63
|
*/
|
|
70
64
|
SortColumn: string;
|
|
71
65
|
/**
|
|
72
|
-
*
|
|
66
|
+
* Sort order
|
|
73
67
|
*/
|
|
74
68
|
SortOrder: SortOrder;
|
|
69
|
+
/**
|
|
70
|
+
* Constructor
|
|
71
|
+
* @param sortcolumn Column by which to sort
|
|
72
|
+
* @param sortorder Type of sorting
|
|
73
|
+
*/
|
|
74
|
+
constructor(sortcolumn?: string, sortorder?: SortOrder);
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
* Enum
|
|
77
|
+
* Enum for sorting
|
|
78
78
|
*/
|
|
79
79
|
export declare enum SortOrder {
|
|
80
|
+
/**
|
|
81
|
+
* No sorting
|
|
82
|
+
*/
|
|
80
83
|
None = 0,
|
|
84
|
+
/**
|
|
85
|
+
* Ascending
|
|
86
|
+
*/
|
|
81
87
|
Ascending = 1,
|
|
88
|
+
/**
|
|
89
|
+
* Descending
|
|
90
|
+
*/
|
|
82
91
|
Descending = 2
|
|
83
92
|
}
|
|
@@ -3,7 +3,7 @@ import { Observable } from 'rxjs';
|
|
|
3
3
|
import { ISacLocalisationService } from '../../interfaces/ISacLocalisationService';
|
|
4
4
|
import { PagerData, PagerRequest } from './model';
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Basic component for paging
|
|
7
7
|
*/
|
|
8
8
|
export declare abstract class SacPagingCommon {
|
|
9
9
|
/**
|
|
@@ -11,137 +11,135 @@ export declare abstract class SacPagingCommon {
|
|
|
11
11
|
*/
|
|
12
12
|
private validationKeyService;
|
|
13
13
|
/**
|
|
14
|
-
* Service
|
|
14
|
+
* Service for error localization
|
|
15
15
|
*/
|
|
16
16
|
protected lngResourceService: ISacLocalisationService;
|
|
17
17
|
/**
|
|
18
|
-
* Total
|
|
18
|
+
* Total number of rows
|
|
19
19
|
*/
|
|
20
20
|
protected totalRowCount: number;
|
|
21
21
|
/**
|
|
22
|
-
* Name
|
|
22
|
+
* Name of the grid. Used for ID and name designations
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Deactivate page size selection
|
|
27
27
|
*/
|
|
28
28
|
pagesizedisabled: boolean;
|
|
29
29
|
/**
|
|
30
|
-
* Text in Page
|
|
31
|
-
*
|
|
32
|
-
* {{PAGESIZE}}:
|
|
30
|
+
* Text in Page for number of page elements per page. The following interpolation texts are available:
|
|
31
|
+
*
|
|
32
|
+
* {{PAGESIZE}}: Number of elements per page
|
|
33
33
|
*/
|
|
34
34
|
pagesizes: string;
|
|
35
35
|
/**
|
|
36
|
-
* Text in Page
|
|
37
|
-
*
|
|
38
|
-
* {{PAGESIZE}}:
|
|
36
|
+
* Text in Page for number of page elements per page. The following interpolation texts are available:
|
|
37
|
+
*
|
|
38
|
+
* {{PAGESIZE}}: Number of elements per page
|
|
39
39
|
*/
|
|
40
40
|
pagesizetext: string;
|
|
41
41
|
/**
|
|
42
|
-
* Text in
|
|
43
|
-
*
|
|
44
|
-
* {{
|
|
45
|
-
* {{TOTALPAGES}}: Anzahl Seiten
|
|
42
|
+
* Text in pager for 'Page x of y'. The following interpolation texts are available:
|
|
43
|
+
* {{CURRENTPAGE}}: Current page
|
|
44
|
+
* {{TOTALPAGES}}: Number of pages
|
|
46
45
|
*/
|
|
47
46
|
pagingtext: string;
|
|
48
47
|
/**
|
|
49
|
-
* Event
|
|
48
|
+
* Event when the page is changed in the grid. The new PageIndex is given as a parameter.
|
|
50
49
|
*/
|
|
51
50
|
paging: EventEmitter<PagerRequest>;
|
|
52
51
|
/**
|
|
53
|
-
*
|
|
52
|
+
* Active page index
|
|
54
53
|
*/
|
|
55
54
|
activePageIndex: number;
|
|
56
55
|
/**
|
|
57
|
-
*
|
|
56
|
+
* First page index
|
|
58
57
|
*/
|
|
59
58
|
firstPageIndex: number;
|
|
60
59
|
/**
|
|
61
|
-
*
|
|
60
|
+
* Last page index
|
|
62
61
|
*/
|
|
63
62
|
lastPageIndex: number;
|
|
64
63
|
/**
|
|
65
|
-
*
|
|
64
|
+
* Number of elements per page
|
|
66
65
|
*/
|
|
67
66
|
pageSize: number;
|
|
68
67
|
/**
|
|
69
|
-
* Item
|
|
68
|
+
* Item for each paging element (page number)
|
|
70
69
|
*/
|
|
71
70
|
paginators: Array<any>;
|
|
72
71
|
/**
|
|
73
|
-
*
|
|
74
|
-
* Inject des Formulars
|
|
72
|
+
* Constructor
|
|
75
73
|
* @parent SacFormCommon
|
|
76
74
|
* @injector Injector
|
|
77
75
|
*/
|
|
78
76
|
constructor(injector: Injector);
|
|
79
77
|
/**
|
|
80
|
-
* Property
|
|
78
|
+
* Property for Pager Data
|
|
81
79
|
*/
|
|
82
80
|
set pagerdata(p: PagerData);
|
|
83
81
|
/**
|
|
84
|
-
* Property
|
|
82
|
+
* Property with text for total entries in page
|
|
85
83
|
*/
|
|
86
84
|
get PageSizeText(): Observable<string>;
|
|
87
85
|
/**
|
|
88
|
-
* Text
|
|
86
|
+
* Text with current page and total pages
|
|
89
87
|
*/
|
|
90
88
|
get PagingText(): Observable<string>;
|
|
91
89
|
/**
|
|
92
|
-
*
|
|
90
|
+
* Returns the page sizes as a number array
|
|
93
91
|
*/
|
|
94
92
|
get getPageSizes(): number[];
|
|
95
93
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @param newPageIndex
|
|
94
|
+
* Changes the page to the new index
|
|
95
|
+
* @param newPageIndex Page index. This corresponds to the page number - 1.
|
|
98
96
|
*/
|
|
99
97
|
changePage(newPageIndex: number): void;
|
|
100
98
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @param newSize
|
|
99
|
+
* Changes the page size in the pager
|
|
100
|
+
* @param newSize New number of elements per page
|
|
103
101
|
*/
|
|
104
102
|
changePageSize(newSize: number): void;
|
|
105
103
|
/**
|
|
106
|
-
*
|
|
104
|
+
*Switch to 1st page
|
|
107
105
|
*/
|
|
108
106
|
firstPage(): void;
|
|
109
107
|
/**
|
|
110
|
-
*
|
|
108
|
+
* Returns the current page number
|
|
111
109
|
*/
|
|
112
110
|
getCurrentPageNumber(): number;
|
|
113
111
|
/**
|
|
114
|
-
*
|
|
112
|
+
* Returns the total number of pages
|
|
115
113
|
*/
|
|
116
114
|
getTotalPageNumber(): number;
|
|
117
115
|
/**
|
|
118
|
-
* Paging
|
|
116
|
+
* Paging on last page
|
|
119
117
|
*/
|
|
120
118
|
lastPage(): void;
|
|
121
119
|
/**
|
|
122
|
-
* Paging
|
|
120
|
+
* Paging to next page
|
|
123
121
|
*/
|
|
124
122
|
nextPage(): void;
|
|
125
123
|
/**
|
|
126
|
-
* Paging
|
|
124
|
+
* Paging one page back
|
|
127
125
|
*/
|
|
128
126
|
previousPage(): void;
|
|
129
127
|
/**
|
|
130
|
-
*
|
|
128
|
+
* Generates the pager data
|
|
131
129
|
*/
|
|
132
130
|
protected createPager(): void;
|
|
133
131
|
/**
|
|
134
|
-
*
|
|
135
|
-
* @param totalPageCount Total
|
|
132
|
+
* Returns the last page index.
|
|
133
|
+
* @param totalPageCount Total number of pages
|
|
136
134
|
*/
|
|
137
135
|
protected getEndPageIndex(totalPageCount: number): number;
|
|
138
136
|
/**
|
|
139
|
-
*
|
|
140
|
-
* @param totalPageCount Total
|
|
137
|
+
* Returns the start index
|
|
138
|
+
* @param totalPageCount Total number of pages
|
|
141
139
|
*/
|
|
142
140
|
protected getStartPageIndex(totalPageCount: number): number;
|
|
143
141
|
/**
|
|
144
|
-
*
|
|
142
|
+
* method triggers the event that paging has taken place
|
|
145
143
|
*/
|
|
146
144
|
protected paged(newPageIndex: number): void;
|
|
147
145
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
1
|
import { SacInputBase } from '../../common/baseinputcontrol';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
4
|
* Basis Komponente für SacInput
|
|
5
5
|
*/
|
|
@@ -9,9 +9,9 @@ export declare class SacInputCommon extends SacInputBase<string> {
|
|
|
9
9
|
*/
|
|
10
10
|
controlwidth: string;
|
|
11
11
|
/**
|
|
12
|
-
* Max
|
|
12
|
+
* Max length of characters for input field
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
maxtextlength: number;
|
|
15
15
|
/**
|
|
16
16
|
* Resource Key für Validation Message Pattern bei Control
|
|
17
17
|
*/
|
|
@@ -4,23 +4,23 @@ import { SacInputCommon } from './input';
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacInputAreaCommon extends SacInputCommon {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Property mit dem Custom CSS Klassen auf dem Form-Control definiert werden können.
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
customcssclass: string;
|
|
10
10
|
/**
|
|
11
11
|
* Definiert die Höhe der TextArea Box. Ist normalfall leer, da Höhe auch über Rows gesetzt werden kann.
|
|
12
12
|
*/
|
|
13
13
|
height: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Definiert die Höhe der TextArea Box.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
rows: number;
|
|
18
18
|
/**
|
|
19
19
|
* Getter für die Länge des Inputs
|
|
20
20
|
*/
|
|
21
21
|
get _currentLength(): number;
|
|
22
22
|
/**
|
|
23
|
-
* Methode wird 'true' ergeben wenn ein Key gedrückt wird und
|
|
23
|
+
* Methode wird 'true' ergeben wenn ein Key gedrückt wird und maxtextlength ist nicht definiert
|
|
24
24
|
*/
|
|
25
25
|
onKeyPress(event: KeyboardEvent): Boolean;
|
|
26
26
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
1
|
import { SacInputCommon } from './input';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
4
|
* Basis Komponente für SacInputPassword
|
|
5
5
|
*/
|
|
6
6
|
export declare class SacInputPasswordCommon extends SacInputCommon {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Checks the minimum length of the password
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
mintextlength: number;
|
|
11
11
|
/**
|
|
12
|
-
* Resource
|
|
12
|
+
* Resource key for validation message MinTextLength for control
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
validationmessagemintextlength: string;
|
|
15
15
|
/**
|
|
16
|
-
* Resource
|
|
16
|
+
* Resource key for validation message MinTextLength in validation summary
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
validationmessagesummarymintextlength: string;
|
|
19
19
|
/**
|
|
20
20
|
* Methode validiert, ob der Wert den gegebenen Kriteriten entspricht
|
|
21
21
|
*/
|
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
2
|
import { SacInputCommon } from './input';
|
|
3
3
|
/**
|
|
4
4
|
* Basis Komponente für SacInputSearch
|
|
5
5
|
*/
|
|
6
|
-
export declare class SacInputSearchCommon extends SacInputCommon {
|
|
6
|
+
export declare class SacInputSearchCommon extends SacInputCommon implements OnInit {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Defines the layout of the search button in the control
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
buttonmode: 'icon' | 'text' | 'mixed';
|
|
11
11
|
/**
|
|
12
12
|
* Text welcher auf dem Button angezeigt wird
|
|
13
13
|
*/
|
|
14
14
|
buttontext: string;
|
|
15
|
+
/**
|
|
16
|
+
* Name des Such-Icons
|
|
17
|
+
*/
|
|
18
|
+
iconname: string;
|
|
15
19
|
/**
|
|
16
20
|
* Event wenn auf das Such-Icon geclickt wird
|
|
17
21
|
*/
|
|
18
22
|
clicked: EventEmitter<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Init Event
|
|
25
|
+
*/
|
|
26
|
+
ngOnInit(): void;
|
|
19
27
|
/**
|
|
20
28
|
* Methode sendet den Wert des Inputs durch das Event
|
|
21
29
|
*/
|
|
22
30
|
searchClick(): void;
|
|
31
|
+
private setButtonMode;
|
|
23
32
|
}
|
|
@@ -3,14 +3,26 @@ import { ControlHeight } from '../../enums/ControlHeight';
|
|
|
3
3
|
* base component for form options
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacFormLayoutCommon {
|
|
6
|
+
/**
|
|
7
|
+
* Defines the default display for a checkbox. You can choose between a checkbox and a switch. If no style is defined, the global style or the style on the control is used.
|
|
8
|
+
*/
|
|
9
|
+
checkboxstyle: 'checkbox' | 'switch' | null;
|
|
6
10
|
/**
|
|
7
11
|
* Defines the standard height of the components
|
|
8
12
|
*/
|
|
9
13
|
componentHeight: ControlHeight | null;
|
|
14
|
+
/**
|
|
15
|
+
* Mode for display helptext
|
|
16
|
+
*/
|
|
17
|
+
helptextmode: 'tooltip' | 'text' | null;
|
|
10
18
|
/**
|
|
11
19
|
* defines that error messages are displayed under the controls
|
|
12
20
|
*/
|
|
13
|
-
inlineError: boolean;
|
|
21
|
+
inlineError: boolean | null;
|
|
22
|
+
/**
|
|
23
|
+
* Defines if InputSearch uses an icon at the button or the text
|
|
24
|
+
*/
|
|
25
|
+
inputsearchiconmode: 'text' | 'icon' | 'mixed' | null;
|
|
14
26
|
/**
|
|
15
27
|
* defines that the labels are displayed as adaptive labels
|
|
16
28
|
*/
|
|
@@ -39,6 +51,10 @@ export declare class SacFormLayoutCommon {
|
|
|
39
51
|
* default label size for extra extra large devices
|
|
40
52
|
*/
|
|
41
53
|
labelSizeXxl: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Detach label text and tooltip from each other in Label so that label and tooltip can be aligned differently. This is in Bootstrap 3 not supported!
|
|
56
|
+
*/
|
|
57
|
+
splitlabelandhelptext: boolean | null;
|
|
42
58
|
/**
|
|
43
59
|
* Returns whether the inline error messages for the form are active.
|
|
44
60
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, Injector,
|
|
1
|
+
import { ElementRef, Injector, Renderer2 } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { SacBaseSelectControl } from '../../common/baseselectcontrol';
|
|
4
4
|
import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
@@ -12,6 +12,14 @@ export declare class SacDropdownCommon extends SacBaseSelectControl<any> {
|
|
|
12
12
|
* compareWith-Funktion
|
|
13
13
|
*/
|
|
14
14
|
private _compareWith;
|
|
15
|
+
/**
|
|
16
|
+
* Counter vom OptionID; default Wert = 0
|
|
17
|
+
*/
|
|
18
|
+
_optionIdCounter: number;
|
|
19
|
+
/**
|
|
20
|
+
* OptionMap
|
|
21
|
+
*/
|
|
22
|
+
_optionMap: Map<string, any>;
|
|
15
23
|
/**
|
|
16
24
|
* Label Text für Empty Item
|
|
17
25
|
*/
|
|
@@ -28,14 +36,6 @@ export declare class SacDropdownCommon extends SacBaseSelectControl<any> {
|
|
|
28
36
|
* Resource Key für Validation Message Required in Validation Summary
|
|
29
37
|
*/
|
|
30
38
|
validationmessagesummaryrequired: string;
|
|
31
|
-
/**
|
|
32
|
-
* Counter vom OptionID; default Wert = 0
|
|
33
|
-
*/
|
|
34
|
-
_optionIdCounter: number;
|
|
35
|
-
/**
|
|
36
|
-
* OptionMap
|
|
37
|
-
*/
|
|
38
|
-
_optionMap: Map<string, any>;
|
|
39
39
|
/**
|
|
40
40
|
* Constructor
|
|
41
41
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
@@ -94,45 +94,3 @@ export declare class SacDropdownCommon extends SacBaseSelectControl<any> {
|
|
|
94
94
|
*/
|
|
95
95
|
private setSelectedValue;
|
|
96
96
|
}
|
|
97
|
-
/**
|
|
98
|
-
* SacDropdownOption-Klasse
|
|
99
|
-
*/
|
|
100
|
-
export declare class SacDropdownOptionCommon implements OnDestroy {
|
|
101
|
-
private _element;
|
|
102
|
-
private _renderer;
|
|
103
|
-
private _dropdown;
|
|
104
|
-
/**
|
|
105
|
-
* ID-String
|
|
106
|
-
*/
|
|
107
|
-
private id;
|
|
108
|
-
/**
|
|
109
|
-
* Konstruktor
|
|
110
|
-
* @param _element Referenz auf HTML Element
|
|
111
|
-
* @param _renderer Render Engine
|
|
112
|
-
* @param _dropdown Dropdown Instanz
|
|
113
|
-
*/
|
|
114
|
-
constructor(_element: ElementRef, _renderer: Renderer2, _dropdown: SacDropdownCommon);
|
|
115
|
-
/**
|
|
116
|
-
* Option ngValue
|
|
117
|
-
*/
|
|
118
|
-
set ngValue(value: any);
|
|
119
|
-
/**
|
|
120
|
-
* Wert-Setter
|
|
121
|
-
*/
|
|
122
|
-
set value(value: any);
|
|
123
|
-
/**
|
|
124
|
-
* Den Wert vom Option-Element einstellen
|
|
125
|
-
* @param value Wert
|
|
126
|
-
*/
|
|
127
|
-
_setElementValue(value: string): void;
|
|
128
|
-
/**
|
|
129
|
-
* OnDestroy Event
|
|
130
|
-
*/
|
|
131
|
-
ngOnDestroy(): void;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Function um ein Key Value Pair für das Dropdown zu erzeugen
|
|
135
|
-
* @param id ID
|
|
136
|
-
* @param value Wert der an das Element gebunden werden soll
|
|
137
|
-
*/
|
|
138
|
-
export declare function _buildValueString(id: string | null, value: any): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import { SacDropdownCommon } from './dropdown';
|
|
3
|
+
/**
|
|
4
|
+
* SacDropdownOption-Klasse
|
|
5
|
+
*/
|
|
6
|
+
export declare class SacDropdownOptionCommon implements OnDestroy {
|
|
7
|
+
private _element;
|
|
8
|
+
private _renderer;
|
|
9
|
+
private _dropdown;
|
|
10
|
+
/**
|
|
11
|
+
* ID-String
|
|
12
|
+
*/
|
|
13
|
+
private id;
|
|
14
|
+
/**
|
|
15
|
+
* Konstruktor
|
|
16
|
+
* @param _element Referenz auf HTML Element
|
|
17
|
+
* @param _renderer Render Engine
|
|
18
|
+
* @param _dropdown Dropdown Instanz
|
|
19
|
+
*/
|
|
20
|
+
constructor(_element: ElementRef, _renderer: Renderer2, _dropdown: SacDropdownCommon);
|
|
21
|
+
/**
|
|
22
|
+
* Option ngValue
|
|
23
|
+
*/
|
|
24
|
+
set ngValue(value: any);
|
|
25
|
+
/**
|
|
26
|
+
* Wert-Setter
|
|
27
|
+
*/
|
|
28
|
+
set value(value: any);
|
|
29
|
+
/**
|
|
30
|
+
* Den Wert vom Option-Element einstellen
|
|
31
|
+
* @param value Wert
|
|
32
|
+
*/
|
|
33
|
+
_setElementValue(value: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* OnDestroy Event
|
|
36
|
+
*/
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
}
|
|
@@ -26,9 +26,9 @@ export declare class SacMultilanguageInputCommon extends SacInputBase<any> {
|
|
|
26
26
|
*/
|
|
27
27
|
controlwidth: string;
|
|
28
28
|
/**
|
|
29
|
-
* Max
|
|
29
|
+
* Max length of characters for input field
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
maxtextlength: number;
|
|
32
32
|
/**
|
|
33
33
|
* Aktiviert den Validator, das min. eine Sprache erfasst sein muss
|
|
34
34
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Injector } from '@angular/core';
|
|
2
|
-
import { AbstractControl } from '@angular/forms';
|
|
3
1
|
import { SacInputBase } from '../../common/baseinputcontrol';
|
|
4
2
|
import { IconType } from '../../enums/IconType';
|
|
5
3
|
import { ISacLanguageService } from '../../interfaces/ISacLanguageService';
|
|
6
4
|
import { LanguageModel } from '../../models/languagemodel';
|
|
7
5
|
import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
6
|
+
import { Injector } from '@angular/core';
|
|
7
|
+
import { AbstractControl } from '@angular/forms';
|
|
8
8
|
/**
|
|
9
9
|
* Base Klasse für Multi Language Textarea Control
|
|
10
10
|
*/
|
|
@@ -26,9 +26,9 @@ export declare class SacMultilanguageInputAreaCommon extends SacInputBase<any> {
|
|
|
26
26
|
*/
|
|
27
27
|
controlwidth: string;
|
|
28
28
|
/**
|
|
29
|
-
* Max
|
|
29
|
+
* Max length of characters for input field
|
|
30
30
|
*/
|
|
31
|
-
|
|
31
|
+
maxtextlength: number;
|
|
32
32
|
/**
|
|
33
33
|
* Aktiviert den Validator, das min. eine Sprache erfasst sein muss
|
|
34
34
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
1
|
import { SacBaseModelControl } from '../../common/basemodelcontrol';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
4
|
* Common Control für Form Item Container.
|
|
5
5
|
**/
|
|
@@ -9,9 +9,13 @@ export declare class SacStaticFormContainerCommon extends SacBaseModelControl<st
|
|
|
9
9
|
*/
|
|
10
10
|
private _isrequired;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Error message to be displayed
|
|
13
|
+
*/
|
|
14
|
+
errormessage: string;
|
|
15
|
+
/**
|
|
16
|
+
* Activates the error message on the container control
|
|
13
17
|
*/
|
|
14
|
-
|
|
18
|
+
isinvalid: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* Definiert den Container als Required Form Item
|
|
17
21
|
*/
|