@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
|
@@ -1,138 +1,145 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
1
|
import { TooltipPosition } from '../../utilities/enums';
|
|
2
|
+
import { AfterViewChecked, ChangeDetectorRef, DoCheck, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
3
|
/**
|
|
4
4
|
* Tooltip Component
|
|
5
5
|
*
|
|
6
|
-
*
|
|
7
|
-
* - container: Container
|
|
8
|
-
* - tooltip: Container
|
|
6
|
+
* Requires the following identifiers in the HTML markup
|
|
7
|
+
* - container: Container for ng-content in which the element is displayed where the tooltip is attached.
|
|
8
|
+
* - tooltip: Container for tooltip
|
|
9
9
|
*
|
|
10
|
-
* Tooltip
|
|
11
|
-
*
|
|
10
|
+
* Tooltip must be displayed in 2 steps. In a first step the tooltip markup is created with (ngIf). In a 2nd step
|
|
11
|
+
* the tooltip can then be displayed via the CSS visibility. If this is not done, it can lead to a flickering effect in certain browsers.
|
|
12
12
|
*
|
|
13
13
|
*/
|
|
14
|
-
export declare class SacTooltipCommon implements OnInit, OnDestroy {
|
|
15
|
-
private cdRef;
|
|
16
|
-
private ref;
|
|
14
|
+
export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, AfterViewChecked, DoCheck {
|
|
15
|
+
private readonly cdRef;
|
|
16
|
+
private readonly ref;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Helper class to display tooltip on correct position
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
private readonly popupHelper;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Inline mode for tooltip
|
|
23
23
|
*/
|
|
24
|
-
private
|
|
24
|
+
private _inlinemode;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Defines whether the tooltip is visible
|
|
27
27
|
*/
|
|
28
|
-
|
|
28
|
+
private _isTooltipVisible;
|
|
29
29
|
/**
|
|
30
|
-
*
|
|
30
|
+
* Containers for the tooltip
|
|
31
31
|
*/
|
|
32
|
-
|
|
32
|
+
private tooltipcontainer;
|
|
33
33
|
/**
|
|
34
|
-
* Position
|
|
35
|
-
*
|
|
36
|
-
* Wert 'auto' kann mit einem anderen Wert kombiniert werden.
|
|
34
|
+
* Position of the tooltip on the left
|
|
37
35
|
*/
|
|
38
|
-
|
|
36
|
+
IsTooltipContentVisible: boolean;
|
|
39
37
|
/**
|
|
40
|
-
*
|
|
38
|
+
* Position des Tooltips links
|
|
41
39
|
*/
|
|
42
|
-
|
|
40
|
+
LeftPos: number;
|
|
43
41
|
/**
|
|
44
|
-
*
|
|
42
|
+
* Property for enum in Angular HTML template
|
|
45
43
|
*/
|
|
46
|
-
|
|
44
|
+
TooltipPosition: typeof TooltipPosition;
|
|
47
45
|
/**
|
|
48
|
-
*
|
|
46
|
+
* Position of the tooltip at the top
|
|
49
47
|
*/
|
|
50
|
-
|
|
48
|
+
TopPos: number;
|
|
51
49
|
/**
|
|
52
|
-
*
|
|
50
|
+
* Name of the container for content (e.g. icon) on which the tooltip is displayed.
|
|
53
51
|
*/
|
|
54
|
-
|
|
52
|
+
content: ElementRef<HTMLElement>;
|
|
55
53
|
/**
|
|
56
|
-
*
|
|
54
|
+
* Position of the picker arrow at the left
|
|
57
55
|
*/
|
|
58
|
-
|
|
56
|
+
posArrowLeft: number | null;
|
|
59
57
|
/**
|
|
60
|
-
*
|
|
58
|
+
* Position of the picker arrow at the top
|
|
61
59
|
*/
|
|
62
|
-
|
|
60
|
+
posArrowTop: number | null;
|
|
63
61
|
/**
|
|
64
|
-
*
|
|
62
|
+
* Position of the tooltip. Values: left|top|right|bottom|auto
|
|
63
|
+
*
|
|
64
|
+
* Value 'auto' can be combined with another value.
|
|
65
65
|
*/
|
|
66
|
-
|
|
66
|
+
position: string;
|
|
67
67
|
/**
|
|
68
|
-
*
|
|
68
|
+
* Text for ToolTip
|
|
69
69
|
*/
|
|
70
|
-
|
|
70
|
+
tooltiptext: string;
|
|
71
71
|
/**
|
|
72
72
|
* Konstruktor
|
|
73
73
|
* @param ref Element Referenz
|
|
74
74
|
*/
|
|
75
75
|
constructor(cdRef: ChangeDetectorRef, ref: ElementRef);
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
78
|
-
*/
|
|
79
|
-
ngOnInit(): void;
|
|
80
|
-
/**
|
|
81
|
-
* Event wenn das Control zerstört wird.
|
|
77
|
+
* Property for inline mode for tooltip. Sets the display mode on the wrapper element to `inline`
|
|
82
78
|
*/
|
|
83
|
-
|
|
79
|
+
get inlinemode(): boolean;
|
|
84
80
|
/**
|
|
85
|
-
*
|
|
81
|
+
* Setter for inline mode for tooltip
|
|
86
82
|
*/
|
|
87
|
-
|
|
83
|
+
set inlinemode(value: boolean);
|
|
88
84
|
/**
|
|
89
|
-
*
|
|
85
|
+
* Setter for the name of the container for the tooltip. Is required as the tooltip can be hidden via ngIf.
|
|
90
86
|
*/
|
|
91
|
-
|
|
87
|
+
set tooltip(content: ElementRef);
|
|
88
|
+
get tooltop(): ElementRef;
|
|
92
89
|
/**
|
|
93
|
-
*
|
|
90
|
+
* Returns the position of the tooltip
|
|
94
91
|
*/
|
|
95
|
-
|
|
92
|
+
GetTooltipPosition(): TooltipPosition;
|
|
96
93
|
/**
|
|
97
|
-
*
|
|
94
|
+
* Hide tooltip
|
|
98
95
|
*/
|
|
99
|
-
|
|
96
|
+
HideTooltip(): void;
|
|
100
97
|
/**
|
|
101
|
-
*
|
|
98
|
+
* Defines whether the tooltip is present in the markup
|
|
102
99
|
*/
|
|
103
100
|
IsTooltipVisible(): boolean;
|
|
104
101
|
/**
|
|
105
|
-
*
|
|
102
|
+
* Show tooltip
|
|
106
103
|
*/
|
|
107
104
|
ShowTooltip(): void;
|
|
108
105
|
/**
|
|
109
|
-
*
|
|
106
|
+
* Calculates the height of the tooltip
|
|
110
107
|
*/
|
|
111
|
-
|
|
108
|
+
getToolTipHeight(): number;
|
|
112
109
|
/**
|
|
113
|
-
*
|
|
110
|
+
* Calculates the width of the tooltips
|
|
114
111
|
*/
|
|
115
|
-
|
|
112
|
+
getToolTipWidth(): number;
|
|
116
113
|
/**
|
|
117
|
-
*
|
|
114
|
+
* Detect Changes after view checked. Prevent ExpressionChangedAfterItHasBeenCheckedError error
|
|
118
115
|
*/
|
|
119
|
-
|
|
116
|
+
ngAfterViewChecked(): void;
|
|
120
117
|
/**
|
|
121
|
-
*
|
|
118
|
+
* Detect UI Changes to Calculate Tooltip correct
|
|
122
119
|
*/
|
|
123
|
-
|
|
120
|
+
ngDoCheck(): void;
|
|
124
121
|
/**
|
|
125
|
-
*
|
|
122
|
+
* Event when the control is destroyed.
|
|
126
123
|
*/
|
|
127
|
-
|
|
124
|
+
ngOnDestroy(): void;
|
|
128
125
|
/**
|
|
129
|
-
*
|
|
130
|
-
|
|
131
|
-
|
|
126
|
+
* Event when the control is initialized
|
|
127
|
+
*/
|
|
128
|
+
ngOnInit(): void;
|
|
129
|
+
/**
|
|
130
|
+
* Offset for Tooltip. Required for BS4/BS5 to create padding
|
|
132
131
|
*/
|
|
133
|
-
|
|
132
|
+
protected abstract getTooltipOffset(): number;
|
|
133
|
+
/**
|
|
134
|
+
* Calculates the position of the tooltip from links
|
|
135
|
+
*/
|
|
136
|
+
private getLeftPosition;
|
|
137
|
+
/**
|
|
138
|
+
* Calculates the position of the tooltip from the top
|
|
139
|
+
*/
|
|
140
|
+
private getTopPosition;
|
|
134
141
|
/**
|
|
135
|
-
*
|
|
142
|
+
* method if content has changed and proportions need to be reset in the UI.
|
|
136
143
|
*/
|
|
137
|
-
private
|
|
144
|
+
private readonly onContentChange;
|
|
138
145
|
}
|
|
@@ -1,185 +1,185 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SacBaseModelControl } from '../../common/basemodelcontrol';
|
|
2
|
+
import { TreeviewAction } from '../../interfaces/treeviewaction.interface';
|
|
3
|
+
import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
4
|
+
import { EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
5
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
6
|
/**
|
|
3
7
|
* Basis Komponente für SacTreeView
|
|
4
8
|
*/
|
|
5
|
-
export declare class
|
|
9
|
+
export declare class SacTreeviewCommon extends SacBaseModelControl<any> {
|
|
6
10
|
/**
|
|
7
|
-
*
|
|
11
|
+
* Event when Action is clicked on Node. An object of the type 'TreeviewAction' is returned. In the default case, 'action' in this object is always the value 'default'. The value can be changed via the 'templateaction'.
|
|
8
12
|
*/
|
|
9
|
-
|
|
13
|
+
actionclicked: EventEmitter<TreeviewAction>;
|
|
10
14
|
/**
|
|
11
|
-
*
|
|
15
|
+
* Property on the data object that contains the children of the structure element. Must be an array of objects. The default value is 'children'
|
|
12
16
|
*/
|
|
13
|
-
|
|
17
|
+
attrchildren: string;
|
|
14
18
|
/**
|
|
15
|
-
*
|
|
19
|
+
* Defines the property on the 'data' object with which the actions for a node can be deactivated. A 'disabled' property is used by default.
|
|
16
20
|
*/
|
|
17
|
-
|
|
21
|
+
attrdisableaction: string;
|
|
18
22
|
/**
|
|
19
|
-
*
|
|
23
|
+
* Property on the 'data' object that stores the expanded state. Property must be of type boolean. Default is 'expanded'
|
|
20
24
|
*/
|
|
21
|
-
|
|
25
|
+
attrexanded: string;
|
|
22
26
|
/**
|
|
23
|
-
*
|
|
27
|
+
* Property for saving the HoverState on the field. If the property is not present on the node, it is automatically created and removed again. The value can usually be left at the default value unless there is a conflict with a property on the node that is required for other purposes.
|
|
24
28
|
*/
|
|
25
|
-
|
|
29
|
+
attrhoverstate: string;
|
|
26
30
|
/**
|
|
27
|
-
*
|
|
31
|
+
* Property on 'data' object, which contains the icon for the node. By default, the property is not set, which hides the icon in the node.
|
|
28
32
|
*/
|
|
29
|
-
|
|
33
|
+
attricon: string | null;
|
|
30
34
|
/**
|
|
31
|
-
*
|
|
35
|
+
* property on the 'data' object contains an ID of the node. The default is 'id'. If the property is set to NULL, the selectedId event is no longer triggered.
|
|
32
36
|
*/
|
|
33
|
-
|
|
37
|
+
attrid: string | null;
|
|
34
38
|
/**
|
|
35
|
-
*
|
|
39
|
+
* Property on 'data' object, which contains the label for the node. Default is 'label'
|
|
36
40
|
*/
|
|
37
|
-
|
|
41
|
+
attrlabel: string;
|
|
38
42
|
/**
|
|
39
|
-
*
|
|
43
|
+
* Property on 'data' object, which defines whether the node is selected or not. It should be ensured that only 1 node has the value for Selected set to true. Default is 'selected'.
|
|
40
44
|
*/
|
|
41
|
-
|
|
45
|
+
attrselected: string;
|
|
42
46
|
/**
|
|
43
|
-
*
|
|
47
|
+
* Event when a node is collapsed. Returns the node element as a parameter
|
|
44
48
|
*/
|
|
45
|
-
|
|
49
|
+
collabsed: EventEmitter<any>;
|
|
46
50
|
/**
|
|
47
|
-
*
|
|
51
|
+
* The property contains an array of nodes. The data must already map the tree via child properties.
|
|
48
52
|
*/
|
|
49
|
-
|
|
53
|
+
data: any[];
|
|
50
54
|
/**
|
|
51
|
-
*
|
|
55
|
+
* Activates the 'expand' and 'collabse' event even if a node has no children. This is helpful if node elements are to be reloaded at runtime.
|
|
52
56
|
*/
|
|
53
|
-
|
|
57
|
+
enableasynchload: boolean | string;
|
|
54
58
|
/**
|
|
55
|
-
*
|
|
59
|
+
* Activates Ellipsis on the node labels
|
|
56
60
|
*/
|
|
57
|
-
|
|
61
|
+
enableellipsis: boolean;
|
|
58
62
|
/**
|
|
59
|
-
*
|
|
63
|
+
* Event when a node is expanded. Returns the node element as a parameter
|
|
60
64
|
*/
|
|
61
|
-
|
|
65
|
+
expanded: EventEmitter<any>;
|
|
62
66
|
/**
|
|
63
|
-
*
|
|
67
|
+
* Defines whether an icon for the expanded/collapsed status should be displayed.
|
|
64
68
|
*/
|
|
65
|
-
|
|
69
|
+
expandedstate: boolean | string;
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
71
|
+
* A node must be selected
|
|
68
72
|
*/
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* A flag indicating data is flatten in array and prepare is required.(Default
|
|
72
|
-
* is false).
|
|
73
|
-
*/
|
|
74
|
-
prepareData: boolean;
|
|
75
|
-
/**
|
|
76
|
-
* Attribute for Text in Tree
|
|
77
|
-
*/
|
|
78
|
-
textAttr: string;
|
|
79
|
-
/**
|
|
80
|
-
* Name of ID property in input data.
|
|
81
|
-
*/
|
|
82
|
-
idAttr: string;
|
|
73
|
+
isrequired: boolean;
|
|
83
74
|
/**
|
|
84
|
-
* Name of
|
|
75
|
+
* Name of the TreeView control
|
|
85
76
|
*/
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Name of children list property in input data.
|
|
89
|
-
*/
|
|
90
|
-
childrenAttr: string;
|
|
91
|
-
/**
|
|
92
|
-
* Title des Treeview
|
|
93
|
-
*/
|
|
94
|
-
title: any;
|
|
95
|
-
/**
|
|
96
|
-
* Collapse or expand all parent nodes.
|
|
97
|
-
*/
|
|
98
|
-
set collapseall(value: boolean);
|
|
77
|
+
name: string;
|
|
99
78
|
/**
|
|
100
|
-
*
|
|
79
|
+
* Event when a node is selected. Returns the id attribute as a parameter. The event is not triggered if 'attrid' is not set.
|
|
101
80
|
*/
|
|
102
|
-
|
|
81
|
+
selected: EventEmitter<any>;
|
|
103
82
|
/**
|
|
104
|
-
*
|
|
83
|
+
* Event when a node is selected. Returns the node element as a parameter.
|
|
105
84
|
*/
|
|
106
|
-
|
|
85
|
+
selectednode: EventEmitter<any>;
|
|
107
86
|
/**
|
|
108
|
-
*
|
|
87
|
+
* Defines that the action template is displayed independently of the selected state. If the value is 'true', the action template is displayed for every element.
|
|
109
88
|
*/
|
|
110
|
-
|
|
89
|
+
showactionalways: any;
|
|
111
90
|
/**
|
|
112
|
-
*
|
|
91
|
+
* Custom template for actions per node. Template parameters are: 'node'
|
|
113
92
|
*/
|
|
114
|
-
|
|
93
|
+
templateaction: TemplateRef<any>;
|
|
115
94
|
/**
|
|
116
|
-
*
|
|
95
|
+
* Custom template for icon per node. Template parameters are: 'node'
|
|
117
96
|
*/
|
|
118
|
-
|
|
97
|
+
templateicon: TemplateRef<any>;
|
|
119
98
|
/**
|
|
120
|
-
*
|
|
99
|
+
* Custom template for the label area per node. Template parameters are: 'node' and 'label'
|
|
121
100
|
*/
|
|
122
|
-
|
|
101
|
+
templatelabel: TemplateRef<any>;
|
|
123
102
|
/**
|
|
124
|
-
*
|
|
103
|
+
* Resource Key für Validation Message Required bei Control
|
|
125
104
|
*/
|
|
126
|
-
|
|
105
|
+
validationmessagerequired: string;
|
|
127
106
|
/**
|
|
128
|
-
*
|
|
107
|
+
* Resource Key für Validation Message Required in Validation Summary
|
|
129
108
|
*/
|
|
130
|
-
|
|
109
|
+
validationmessagesummaryrequired: string;
|
|
131
110
|
/**
|
|
132
|
-
*
|
|
111
|
+
* Constructor
|
|
112
|
+
* @param injector Service Injector
|
|
133
113
|
*/
|
|
134
|
-
|
|
114
|
+
constructor(formlayout: SacFormLayoutCommon, injector: Injector);
|
|
115
|
+
get iconAction(): string;
|
|
135
116
|
/**
|
|
136
|
-
*
|
|
117
|
+
* CSS icon for folders in tree there are collabsed
|
|
118
|
+
* @returns css class with icon
|
|
137
119
|
*/
|
|
138
|
-
|
|
120
|
+
get iconFolderCollabsed(): string;
|
|
139
121
|
/**
|
|
140
|
-
*
|
|
141
|
-
*
|
|
122
|
+
* CSS icon class for folders without subfolders
|
|
123
|
+
* @returns css class with icon
|
|
142
124
|
*/
|
|
143
|
-
|
|
125
|
+
get iconFolderEmpty(): string;
|
|
144
126
|
/**
|
|
145
|
-
*
|
|
146
|
-
*
|
|
127
|
+
* CSS icon for folders in tree there are expanded
|
|
128
|
+
* @returns css class with icon
|
|
147
129
|
*/
|
|
148
|
-
|
|
130
|
+
get iconFolderOpen(): string;
|
|
149
131
|
/**
|
|
150
|
-
*
|
|
132
|
+
* Creates an array of a certain size. Is required for a For in the UI, as Angular does not support counting loops
|
|
133
|
+
* @param size Size of the array
|
|
134
|
+
* @returns Array
|
|
151
135
|
*/
|
|
152
|
-
|
|
136
|
+
count(size: number): Array<void>;
|
|
137
|
+
getChildren(node: any): any[];
|
|
138
|
+
getStringField(node: any, fieldname: string): any;
|
|
139
|
+
hasChildren(node: any): boolean;
|
|
140
|
+
isDisabledState(node: any): boolean;
|
|
141
|
+
isExpandedState(node: any): boolean;
|
|
142
|
+
isHoverState(node: any): boolean;
|
|
143
|
+
isSelectedState(node: any): boolean;
|
|
153
144
|
/**
|
|
154
|
-
*
|
|
145
|
+
* Method is called by clicking an action
|
|
146
|
+
* @param action action and node
|
|
155
147
|
*/
|
|
156
|
-
|
|
148
|
+
onActionClicked(action: TreeviewAction): void;
|
|
157
149
|
/**
|
|
158
|
-
*
|
|
150
|
+
* Method is called when Node in Tree is clicked
|
|
151
|
+
* @param node Selected Node
|
|
159
152
|
*/
|
|
160
|
-
|
|
153
|
+
onNodeClicked(node: any): void;
|
|
161
154
|
/**
|
|
162
|
-
*
|
|
155
|
+
* Sets the hover state on a node
|
|
156
|
+
* @param node Node on which the status is set
|
|
157
|
+
* @param state Activate or deactivate HoverState
|
|
163
158
|
*/
|
|
164
|
-
|
|
159
|
+
setHoverState(node: any, state: boolean): void;
|
|
165
160
|
/**
|
|
166
|
-
*
|
|
161
|
+
* Sets the selected state on a node
|
|
162
|
+
* @param node Node which is marked as Selected
|
|
167
163
|
*/
|
|
168
|
-
|
|
164
|
+
setSelectedState(node: any): void;
|
|
169
165
|
/**
|
|
170
|
-
*
|
|
171
|
-
*
|
|
172
|
-
* @
|
|
173
|
-
* @param searchValue Das gesuchte value
|
|
174
|
-
* @param attr Der namen des Attributs auf dem das value gesucht wird
|
|
166
|
+
* Validates the model state of the control
|
|
167
|
+
* @param c Control instance
|
|
168
|
+
* @returns Returns a validation error, if present. Otherwise, as Result is NULL
|
|
175
169
|
*/
|
|
176
|
-
|
|
170
|
+
validateData(c: AbstractControl): ValidationErrors | null;
|
|
177
171
|
/**
|
|
178
|
-
*
|
|
172
|
+
* Saves the data from the model binding
|
|
173
|
+
* @param value Id of the selected node
|
|
179
174
|
*/
|
|
180
|
-
|
|
175
|
+
writeValue(value: any): void;
|
|
181
176
|
/**
|
|
182
|
-
*
|
|
177
|
+
* Searches for a node based on the value in the ID attribute
|
|
178
|
+
* @param node Node
|
|
179
|
+
* @param value Value of the Id attribute
|
|
180
|
+
* @returns Returns the node if it is found. If not, NULL is returned.
|
|
183
181
|
*/
|
|
184
|
-
private
|
|
182
|
+
private findNodeById;
|
|
183
|
+
private invertExpandedState;
|
|
184
|
+
private resetSelectedState;
|
|
185
185
|
}
|