@simpleangularcontrols/sac-common 13.0.0-rc.10 → 13.0.0-rc.12
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/common/basedatetimecontrol.d.ts +99 -13
- package/common/basedatetimecontrol.d.ts.map +1 -1
- package/common/basemodelcontrol.d.ts +33 -25
- package/common/basemodelcontrol.d.ts.map +1 -1
- package/common/baseuploadcontrol.d.ts +73 -52
- package/common/baseuploadcontrol.d.ts.map +1 -1
- package/controls/checkbox/radiobutton.d.ts +63 -28
- package/controls/checkbox/radiobutton.d.ts.map +1 -1
- package/controls/contextmenu/contextmenu.d.ts +27 -20
- package/controls/contextmenu/contextmenu.d.ts.map +1 -1
- package/controls/contextmenu/contextmenu.interface.d.ts +4 -0
- package/controls/contextmenu/contextmenu.interface.d.ts.map +1 -0
- package/controls/contextmenu/contextmenu.interface.ngfactory.d.ts +2 -0
- package/controls/contextmenu/contextmenu.interface.ngfactory.d.ts.map +1 -0
- package/controls/contextmenu/contextmenu.interface.ngsummary.d.ts +2 -0
- package/controls/contextmenu/contextmenu.interface.ngsummary.d.ts.map +1 -0
- package/controls/contextmenu/contextmenuitem.d.ts +6 -1
- package/controls/contextmenu/contextmenuitem.d.ts.map +1 -1
- package/controls/contextmenu/contextmenuitembutton.d.ts +22 -21
- package/controls/contextmenu/contextmenuitembutton.d.ts.map +1 -1
- package/controls/datetime/date.d.ts +28 -27
- package/controls/datetime/date.d.ts.map +1 -1
- package/controls/datetime/datetime.d.ts +27 -27
- package/controls/datetime/datetime.d.ts.map +1 -1
- package/controls/datetime/time.d.ts +26 -26
- package/controls/datetime/time.d.ts.map +1 -1
- package/controls/dialog/dialog.d.ts +32 -44
- package/controls/dialog/dialog.d.ts.map +1 -1
- package/controls/layout/formlayout.d.ts +5 -1
- package/controls/layout/formlayout.d.ts.map +1 -1
- package/controls/list/buildvaluestring.d.ts +7 -0
- package/controls/list/buildvaluestring.d.ts.map +1 -0
- package/controls/list/buildvaluestring.ngfactory.d.ts +2 -0
- package/controls/list/buildvaluestring.ngfactory.d.ts.map +1 -0
- package/controls/list/buildvaluestring.ngsummary.d.ts +2 -0
- package/controls/list/buildvaluestring.ngsummary.d.ts.map +1 -0
- package/controls/list/dropdown.d.ts +9 -53
- package/controls/list/dropdown.d.ts.map +1 -1
- package/controls/list/dropdown.ngfactory.d.ts +0 -1
- package/controls/list/dropdown.ngfactory.d.ts.map +1 -1
- package/controls/list/dropdown.ngsummary.d.ts +0 -1
- package/controls/list/dropdown.ngsummary.d.ts.map +1 -1
- package/controls/list/dropdownoptions.d.ts +42 -0
- package/controls/list/dropdownoptions.d.ts.map +1 -0
- package/controls/list/dropdownoptions.ngfactory.d.ts +4 -0
- package/controls/list/dropdownoptions.ngfactory.d.ts.map +1 -0
- package/controls/list/dropdownoptions.ngsummary.d.ts +2 -0
- package/controls/list/dropdownoptions.ngsummary.d.ts.map +1 -0
- package/controls/static/formcontainer.d.ts +12 -4
- package/controls/static/formcontainer.d.ts.map +1 -1
- package/controls/tooltip/tooltip.d.ts +33 -51
- package/controls/tooltip/tooltip.d.ts.map +1 -1
- package/controls/treeview/treeview.d.ts +109 -109
- package/controls/treeview/treeview.d.ts.map +1 -1
- package/controls/treeview/treeview.ngfactory.d.ts +1 -1
- package/controls/treeview/treeview.ngsummary.d.ts +1 -1
- package/esm2020/common/basedatetimecontrol.mjs +65 -27
- package/esm2020/common/basemodelcontrol.mjs +73 -68
- package/esm2020/common/baseuploadcontrol.mjs +66 -57
- package/esm2020/controls/checkbox/radiobutton.mjs +43 -26
- package/esm2020/controls/contextmenu/contextmenu.interface.mjs +3 -0
- package/esm2020/controls/contextmenu/contextmenu.interface.ngfactory.mjs +3 -0
- package/esm2020/controls/contextmenu/contextmenu.interface.ngsummary.mjs +3 -0
- package/esm2020/controls/contextmenu/contextmenu.mjs +14 -14
- package/esm2020/controls/contextmenu/contextmenuitem.mjs +7 -4
- package/esm2020/controls/contextmenu/contextmenuitembutton.mjs +23 -15
- package/esm2020/controls/datetime/date.mjs +29 -30
- package/esm2020/controls/datetime/datetime.mjs +28 -30
- package/esm2020/controls/datetime/time.mjs +28 -30
- package/esm2020/controls/dialog/dialog.mjs +28 -41
- package/esm2020/controls/layout/formlayout.mjs +7 -8
- package/esm2020/controls/list/buildvaluestring.mjs +10 -0
- package/esm2020/controls/list/buildvaluestring.ngfactory.mjs +3 -0
- package/esm2020/controls/list/buildvaluestring.ngsummary.mjs +3 -0
- package/esm2020/controls/list/dropdown.mjs +22 -67
- package/esm2020/controls/list/dropdown.ngfactory.mjs +3 -3
- package/esm2020/controls/list/dropdown.ngsummary.mjs +3 -3
- package/esm2020/controls/list/dropdownoptions.mjs +22 -0
- package/esm2020/controls/list/dropdownoptions.ngfactory.mjs +3 -0
- package/esm2020/controls/list/dropdownoptions.ngsummary.mjs +3 -0
- package/esm2020/controls/static/formcontainer.mjs +12 -8
- package/esm2020/controls/tooltip/tooltip.mjs +43 -71
- package/esm2020/controls/treeview/treeview.mjs +102 -96
- package/esm2020/controls/treeview/treeview.ngfactory.mjs +3 -3
- package/esm2020/controls/treeview/treeview.ngsummary.mjs +3 -3
- package/esm2020/interfaces/ISacConfigurationService.mjs +3 -3
- package/esm2020/interfaces/ISacIconService.mjs +3 -3
- package/esm2020/interfaces/ISacUploadEventCompleteState.mjs +3 -0
- package/esm2020/interfaces/ISacUploadEventCompleteState.ngfactory.mjs +3 -0
- package/esm2020/interfaces/ISacUploadEventCompleteState.ngsummary.mjs +3 -0
- package/esm2020/interfaces/treeviewaction.interface.mjs +3 -0
- package/esm2020/interfaces/treeviewaction.interface.ngfactory.mjs +3 -0
- package/esm2020/interfaces/treeviewaction.interface.ngsummary.mjs +3 -0
- package/esm2020/public_api.mjs +6 -6
- package/esm2020/services/sac-configuration.service.mjs +8 -10
- package/esm2020/services/sac-icon.service.mjs +16 -8
- package/esm2020/utilities/enums.mjs +5 -3
- package/esm2020/utilities/popuphelper.mjs +80 -0
- package/esm2020/utilities/popuphelper.ngfactory.mjs +3 -0
- package/esm2020/utilities/popuphelper.ngsummary.mjs +3 -0
- package/esm2020/validation/equals.validator.mjs +3 -0
- package/esm2020/validation/equals.validator.ngfactory.mjs +3 -0
- package/esm2020/validation/equals.validator.ngsummary.mjs +3 -0
- package/esm2020/validation/notequals.validator.mjs +3 -0
- package/esm2020/validation/notequals.validator.ngfactory.mjs +3 -0
- package/esm2020/validation/notequals.validator.ngsummary.mjs +3 -0
- package/esm2020/validation/validation.mjs +40 -26
- package/fesm2015/simpleangularcontrols-sac-common.mjs +1358 -1253
- package/fesm2015/simpleangularcontrols-sac-common.mjs.map +1 -1
- package/fesm2020/simpleangularcontrols-sac-common.mjs +1358 -1253
- package/fesm2020/simpleangularcontrols-sac-common.mjs.map +1 -1
- package/interfaces/ISacConfigurationService.d.ts +11 -7
- package/interfaces/ISacConfigurationService.d.ts.map +1 -1
- package/interfaces/ISacIconService.d.ts +18 -2
- package/interfaces/ISacIconService.d.ts.map +1 -1
- package/interfaces/ISacUploadEventCompleteState.d.ts +6 -0
- package/interfaces/ISacUploadEventCompleteState.d.ts.map +1 -0
- package/interfaces/ISacUploadEventCompleteState.ngfactory.d.ts +2 -0
- package/interfaces/ISacUploadEventCompleteState.ngfactory.d.ts.map +1 -0
- package/interfaces/ISacUploadEventCompleteState.ngsummary.d.ts +2 -0
- package/interfaces/ISacUploadEventCompleteState.ngsummary.d.ts.map +1 -0
- package/interfaces/treeviewaction.interface.d.ts +5 -0
- package/interfaces/treeviewaction.interface.d.ts.map +1 -0
- package/interfaces/treeviewaction.interface.ngfactory.d.ts +2 -0
- package/interfaces/treeviewaction.interface.ngfactory.d.ts.map +1 -0
- package/interfaces/treeviewaction.interface.ngsummary.d.ts +2 -0
- package/interfaces/treeviewaction.interface.ngsummary.d.ts.map +1 -0
- package/package.json +1 -1
- package/public_api.d.ts +6 -5
- package/public_api.d.ts.map +1 -1
- package/services/sac-configuration.service.d.ts +8 -0
- package/services/sac-configuration.service.d.ts.map +1 -1
- package/services/sac-icon.service.d.ts +33 -1
- package/services/sac-icon.service.d.ts.map +1 -1
- package/simpleangularcontrols-sac-common-13.0.0-rc.12.tgz +0 -0
- package/utilities/enums.d.ts +3 -1
- package/utilities/enums.d.ts.map +1 -1
- package/utilities/popuphelper.d.ts +84 -0
- package/utilities/popuphelper.d.ts.map +1 -0
- package/utilities/popuphelper.ngfactory.d.ts +2 -0
- package/utilities/popuphelper.ngfactory.d.ts.map +1 -0
- package/utilities/popuphelper.ngsummary.d.ts +2 -0
- package/utilities/popuphelper.ngsummary.d.ts.map +1 -0
- package/validation/equals.validator.d.ts +3 -0
- package/validation/equals.validator.d.ts.map +1 -0
- package/validation/equals.validator.ngfactory.d.ts +2 -0
- package/validation/equals.validator.ngfactory.d.ts.map +1 -0
- package/validation/equals.validator.ngsummary.d.ts +2 -0
- package/validation/equals.validator.ngsummary.d.ts.map +1 -0
- package/validation/notequals.validator.d.ts +3 -0
- package/validation/notequals.validator.d.ts.map +1 -0
- package/validation/notequals.validator.ngfactory.d.ts +2 -0
- package/validation/notequals.validator.ngfactory.d.ts.map +1 -0
- package/validation/notequals.validator.ngsummary.d.ts +2 -0
- package/validation/notequals.validator.ngsummary.d.ts.map +1 -0
- package/validation/validation.d.ts +24 -6
- package/validation/validation.d.ts.map +1 -1
- package/controls/treeview/ngtreeitemaction.d.ts +0 -44
- package/controls/treeview/ngtreeitemaction.d.ts.map +0 -1
- package/controls/treeview/ngtreeitemaction.ngfactory.d.ts +0 -4
- package/controls/treeview/ngtreeitemaction.ngfactory.d.ts.map +0 -1
- package/controls/treeview/ngtreeitemaction.ngsummary.d.ts +0 -2
- package/controls/treeview/ngtreeitemaction.ngsummary.d.ts.map +0 -1
- package/controls/treeview/treeviewchild.d.ts +0 -16
- package/controls/treeview/treeviewchild.d.ts.map +0 -1
- package/controls/treeview/treeviewchild.ngfactory.d.ts +0 -4
- package/controls/treeview/treeviewchild.ngfactory.d.ts.map +0 -1
- package/controls/treeview/treeviewchild.ngsummary.d.ts +0 -2
- package/controls/treeview/treeviewchild.ngsummary.d.ts.map +0 -1
- package/esm2020/controls/treeview/ngtreeitemaction.mjs +0 -16
- package/esm2020/controls/treeview/ngtreeitemaction.ngfactory.mjs +0 -3
- package/esm2020/controls/treeview/ngtreeitemaction.ngsummary.mjs +0 -3
- package/esm2020/controls/treeview/treeviewchild.mjs +0 -8
- package/esm2020/controls/treeview/treeviewchild.ngfactory.mjs +0 -3
- package/esm2020/controls/treeview/treeviewchild.ngsummary.mjs +0 -3
- package/simpleangularcontrols-sac-common-13.0.0-rc.10.tgz +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AfterViewChecked, ChangeDetectorRef, DoCheck, 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
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Tooltip Component
|
|
@@ -15,6 +15,10 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, AfterViewChecked, DoCheck {
|
|
16
16
|
private readonly cdRef;
|
|
17
17
|
private readonly ref;
|
|
18
|
+
/**
|
|
19
|
+
* Helper class to display tooltip on correct position
|
|
20
|
+
*/
|
|
21
|
+
private readonly popupHelper;
|
|
18
22
|
/**
|
|
19
23
|
* Inline mode for tooltip
|
|
20
24
|
*/
|
|
@@ -23,28 +27,10 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
23
27
|
* Defines whether the tooltip is visible
|
|
24
28
|
*/
|
|
25
29
|
private _isTooltipVisible;
|
|
26
|
-
/**
|
|
27
|
-
* method if content has changed and proportions need to be reset in the UI.
|
|
28
|
-
*/
|
|
29
|
-
private readonly onContentChange;
|
|
30
30
|
/**
|
|
31
31
|
* Containers for the tooltip
|
|
32
32
|
*/
|
|
33
33
|
private tooltipcontainer;
|
|
34
|
-
/**
|
|
35
|
-
* Position of the tooltip. Values: left|top|right|bottom|auto
|
|
36
|
-
*
|
|
37
|
-
* Value 'auto' can be combined with another value.
|
|
38
|
-
*/
|
|
39
|
-
position: string;
|
|
40
|
-
/**
|
|
41
|
-
* Text for ToolTip
|
|
42
|
-
*/
|
|
43
|
-
tooltiptext: string;
|
|
44
|
-
/**
|
|
45
|
-
* Name of the container for content (e.g. icon) on which the tooltip is displayed.
|
|
46
|
-
*/
|
|
47
|
-
content: ElementRef<HTMLElement>;
|
|
48
34
|
/**
|
|
49
35
|
* Position of the tooltip on the left
|
|
50
36
|
*/
|
|
@@ -61,11 +47,37 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
61
47
|
* Position of the tooltip at the top
|
|
62
48
|
*/
|
|
63
49
|
TopPos: number;
|
|
50
|
+
/**
|
|
51
|
+
* Name of the container for content (e.g. icon) on which the tooltip is displayed.
|
|
52
|
+
*/
|
|
53
|
+
content: ElementRef<HTMLElement>;
|
|
54
|
+
/**
|
|
55
|
+
* Position of the picker arrow at the left
|
|
56
|
+
*/
|
|
57
|
+
posArrowLeft: number | null;
|
|
58
|
+
/**
|
|
59
|
+
* Position of the picker arrow at the top
|
|
60
|
+
*/
|
|
61
|
+
posArrowTop: number | null;
|
|
62
|
+
/**
|
|
63
|
+
* Position of the tooltip. Values: left|top|right|bottom|auto
|
|
64
|
+
*
|
|
65
|
+
* Value 'auto' can be combined with another value.
|
|
66
|
+
*/
|
|
67
|
+
position: string;
|
|
68
|
+
/**
|
|
69
|
+
* Text for ToolTip
|
|
70
|
+
*/
|
|
71
|
+
tooltiptext: string;
|
|
64
72
|
/**
|
|
65
73
|
* Konstruktor
|
|
66
74
|
* @param ref Element Referenz
|
|
67
75
|
*/
|
|
68
76
|
constructor(cdRef: ChangeDetectorRef, ref: ElementRef);
|
|
77
|
+
/**
|
|
78
|
+
* Property for inline mode for tooltip. Sets the display mode on the wrapper element to `inline`
|
|
79
|
+
*/
|
|
80
|
+
get inlinemode(): boolean;
|
|
69
81
|
/**
|
|
70
82
|
* Setter for inline mode for tooltip
|
|
71
83
|
*/
|
|
@@ -74,10 +86,6 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
74
86
|
* Setter for the name of the container for the tooltip. Is required as the tooltip can be hidden via ngIf.
|
|
75
87
|
*/
|
|
76
88
|
set tooltip(content: ElementRef);
|
|
77
|
-
/**
|
|
78
|
-
* Property for inline mode for tooltip. Sets the display mode on the wrapper element to `inline`
|
|
79
|
-
*/
|
|
80
|
-
get inlinemode(): boolean;
|
|
81
89
|
get tooltop(): ElementRef;
|
|
82
90
|
/**
|
|
83
91
|
* Returns the position of the tooltip
|
|
@@ -123,24 +131,6 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
123
131
|
* Offset for Tooltip. Required for BS4/BS5 to create padding
|
|
124
132
|
*/
|
|
125
133
|
protected abstract getTooltipOffset(): number;
|
|
126
|
-
/**
|
|
127
|
-
* Returns the defined position for the tooltip
|
|
128
|
-
*/
|
|
129
|
-
private GetPosition;
|
|
130
|
-
/**
|
|
131
|
-
* Returns whether the position has been configured
|
|
132
|
-
*
|
|
133
|
-
* @param position Position to be checked
|
|
134
|
-
*/
|
|
135
|
-
private HasPosition;
|
|
136
|
-
/**
|
|
137
|
-
* Defines whether AutoPosition is active
|
|
138
|
-
*/
|
|
139
|
-
private IsAutoPosition;
|
|
140
|
-
/**
|
|
141
|
-
* Checks whether the position is valid or whether the tooltip on the position has space
|
|
142
|
-
*/
|
|
143
|
-
private ValidatePositions;
|
|
144
134
|
/**
|
|
145
135
|
* Calculates the position of the tooltip from links
|
|
146
136
|
*/
|
|
@@ -150,17 +140,9 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
150
140
|
*/
|
|
151
141
|
private getTopPosition;
|
|
152
142
|
/**
|
|
153
|
-
*
|
|
154
|
-
* @param element HTML Element
|
|
155
|
-
* @returns summarized top value for absolute position
|
|
156
|
-
*/
|
|
157
|
-
private getOffsetTopParent;
|
|
158
|
-
/**
|
|
159
|
-
* Caclulate Scrollbars inside tree
|
|
160
|
-
* @param element HTML Element
|
|
161
|
-
* @returns Scroll top value of element with all childs
|
|
143
|
+
* method if content has changed and proportions need to be reset in the UI.
|
|
162
144
|
*/
|
|
163
|
-
private
|
|
145
|
+
private readonly onContentChange;
|
|
164
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<SacTooltipCommon, never>;
|
|
165
147
|
static ɵdir: i0.ɵɵDirectiveDeclaration<SacTooltipCommon, never, never, { "position": "position"; "tooltiptext": "tooltiptext"; "inlinemode": "inlinemode"; }, {}, never>;
|
|
166
148
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../projects/sac-common/src/controls/tooltip/tooltip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../projects/sac-common/src/controls/tooltip/tooltip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,EACH,gBAAgB,EAChB,iBAAiB,EAEjB,OAAO,EACP,UAAU,EAEV,SAAS,EACT,MAAM,EAET,MAAM,eAAe,CAAC;;AAEvB;;;;;;;;;;GAUG;AACH,8BACsB,gBAAiB,YAAW,MAAM,EAAE,SAAS,EAAE,gBAAgB,EAAE,OAAO;IAiF9E,OAAO,CAAC,QAAQ,CAAC,KAAK;IAAqB,OAAO,CAAC,QAAQ,CAAC,GAAG;IA9E3E;;OAEG;IACH,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAkC;IAE9D;;OAEG;IACH,OAAO,CAAC,WAAW,CAAU;IAE7B;;OAEG;IACH,OAAO,CAAC,iBAAiB,CAAkB;IAE3C;;OAEG;IACH,OAAO,CAAC,gB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;IACH,OAAO,CAAC,QAAQ,CAAC,eAAe,CAU9B;yCApTgB,gBAAgB;2CAAhB,gBAAgB;CAuTrC"}
|
|
@@ -1,189 +1,189 @@
|
|
|
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
|
import * as i0 from "@angular/core";
|
|
3
7
|
/**
|
|
4
8
|
* Basis Komponente für SacTreeView
|
|
5
9
|
*/
|
|
6
|
-
export declare class
|
|
10
|
+
export declare class SacTreeviewCommon extends SacBaseModelControl<any> {
|
|
7
11
|
/**
|
|
8
|
-
*
|
|
12
|
+
* 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'.
|
|
9
13
|
*/
|
|
10
|
-
|
|
14
|
+
actionclicked: EventEmitter<TreeviewAction>;
|
|
11
15
|
/**
|
|
12
|
-
*
|
|
16
|
+
* Property on the data object that contains the children of the structure element. Must be an array of objects. The default value is 'children'
|
|
13
17
|
*/
|
|
14
|
-
|
|
18
|
+
attrchildren: string;
|
|
15
19
|
/**
|
|
16
|
-
*
|
|
20
|
+
* Defines the property on the 'data' object with which the actions for a node can be deactivated. A 'disabled' property is used by default.
|
|
17
21
|
*/
|
|
18
|
-
|
|
22
|
+
attrdisableaction: string;
|
|
19
23
|
/**
|
|
20
|
-
*
|
|
24
|
+
* Property on the 'data' object that stores the expanded state. Property must be of type boolean. Default is 'expanded'
|
|
21
25
|
*/
|
|
22
|
-
|
|
26
|
+
attrexanded: string;
|
|
23
27
|
/**
|
|
24
|
-
*
|
|
28
|
+
* 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.
|
|
25
29
|
*/
|
|
26
|
-
|
|
30
|
+
attrhoverstate: string;
|
|
27
31
|
/**
|
|
28
|
-
*
|
|
32
|
+
* 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.
|
|
29
33
|
*/
|
|
30
|
-
|
|
34
|
+
attricon: string | null;
|
|
31
35
|
/**
|
|
32
|
-
*
|
|
36
|
+
* 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.
|
|
33
37
|
*/
|
|
34
|
-
|
|
38
|
+
attrid: string | null;
|
|
35
39
|
/**
|
|
36
|
-
*
|
|
40
|
+
* Property on 'data' object, which contains the label for the node. Default is 'label'
|
|
37
41
|
*/
|
|
38
|
-
|
|
42
|
+
attrlabel: string;
|
|
39
43
|
/**
|
|
40
|
-
*
|
|
44
|
+
* 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'.
|
|
41
45
|
*/
|
|
42
|
-
|
|
46
|
+
attrselected: string;
|
|
43
47
|
/**
|
|
44
|
-
*
|
|
48
|
+
* Event when a node is collapsed. Returns the node element as a parameter
|
|
45
49
|
*/
|
|
46
|
-
|
|
50
|
+
collabsed: EventEmitter<any>;
|
|
47
51
|
/**
|
|
48
|
-
*
|
|
52
|
+
* The property contains an array of nodes. The data must already map the tree via child properties.
|
|
49
53
|
*/
|
|
50
|
-
|
|
54
|
+
data: any[];
|
|
51
55
|
/**
|
|
52
|
-
*
|
|
56
|
+
* 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.
|
|
53
57
|
*/
|
|
54
|
-
|
|
58
|
+
enableasynchload: boolean | string;
|
|
55
59
|
/**
|
|
56
|
-
*
|
|
60
|
+
* Activates Ellipsis on the node labels
|
|
57
61
|
*/
|
|
58
|
-
|
|
62
|
+
enableellipsis: boolean;
|
|
59
63
|
/**
|
|
60
|
-
*
|
|
64
|
+
* Event when a node is expanded. Returns the node element as a parameter
|
|
61
65
|
*/
|
|
62
|
-
|
|
66
|
+
expanded: EventEmitter<any>;
|
|
63
67
|
/**
|
|
64
|
-
*
|
|
68
|
+
* Defines whether an icon for the expanded/collapsed status should be displayed.
|
|
65
69
|
*/
|
|
66
|
-
|
|
70
|
+
expandedstate: boolean | string;
|
|
67
71
|
/**
|
|
68
|
-
*
|
|
72
|
+
* A node must be selected
|
|
69
73
|
*/
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* A flag indicating data is flatten in array and prepare is required.(Default
|
|
73
|
-
* is false).
|
|
74
|
-
*/
|
|
75
|
-
prepareData: boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Attribute for Text in Tree
|
|
78
|
-
*/
|
|
79
|
-
textAttr: string;
|
|
80
|
-
/**
|
|
81
|
-
* Name of ID property in input data.
|
|
82
|
-
*/
|
|
83
|
-
idAttr: string;
|
|
74
|
+
isrequired: boolean;
|
|
84
75
|
/**
|
|
85
|
-
* Name of
|
|
76
|
+
* Name of the TreeView control
|
|
86
77
|
*/
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* Name of children list property in input data.
|
|
90
|
-
*/
|
|
91
|
-
childrenAttr: string;
|
|
92
|
-
/**
|
|
93
|
-
* Title des Treeview
|
|
94
|
-
*/
|
|
95
|
-
title: any;
|
|
96
|
-
/**
|
|
97
|
-
* Collapse or expand all parent nodes.
|
|
98
|
-
*/
|
|
99
|
-
set collapseall(value: boolean);
|
|
78
|
+
name: string;
|
|
100
79
|
/**
|
|
101
|
-
*
|
|
80
|
+
* Event when a node is selected. Returns the id attribute as a parameter. The event is not triggered if 'attrid' is not set.
|
|
102
81
|
*/
|
|
103
|
-
|
|
82
|
+
selected: EventEmitter<any>;
|
|
104
83
|
/**
|
|
105
|
-
*
|
|
84
|
+
* Event when a node is selected. Returns the node element as a parameter.
|
|
106
85
|
*/
|
|
107
|
-
|
|
86
|
+
selectednode: EventEmitter<any>;
|
|
108
87
|
/**
|
|
109
|
-
*
|
|
88
|
+
* 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.
|
|
110
89
|
*/
|
|
111
|
-
|
|
90
|
+
showactionalways: any;
|
|
112
91
|
/**
|
|
113
|
-
*
|
|
92
|
+
* Custom template for actions per node. Template parameters are: 'node'
|
|
114
93
|
*/
|
|
115
|
-
|
|
94
|
+
templateaction: TemplateRef<any>;
|
|
116
95
|
/**
|
|
117
|
-
*
|
|
96
|
+
* Custom template for icon per node. Template parameters are: 'node'
|
|
118
97
|
*/
|
|
119
|
-
|
|
98
|
+
templateicon: TemplateRef<any>;
|
|
120
99
|
/**
|
|
121
|
-
*
|
|
100
|
+
* Custom template for the label area per node. Template parameters are: 'node' and 'label'
|
|
122
101
|
*/
|
|
123
|
-
|
|
102
|
+
templatelabel: TemplateRef<any>;
|
|
124
103
|
/**
|
|
125
|
-
*
|
|
104
|
+
* Resource Key für Validation Message Required bei Control
|
|
126
105
|
*/
|
|
127
|
-
|
|
106
|
+
validationmessagerequired: string;
|
|
128
107
|
/**
|
|
129
|
-
*
|
|
108
|
+
* Resource Key für Validation Message Required in Validation Summary
|
|
130
109
|
*/
|
|
131
|
-
|
|
110
|
+
validationmessagesummaryrequired: string;
|
|
132
111
|
/**
|
|
133
|
-
*
|
|
112
|
+
* Constructor
|
|
113
|
+
* @param injector Service Injector
|
|
134
114
|
*/
|
|
135
|
-
|
|
115
|
+
constructor(formlayout: SacFormLayoutCommon, injector: Injector);
|
|
116
|
+
get iconAction(): string;
|
|
136
117
|
/**
|
|
137
|
-
*
|
|
118
|
+
* CSS icon for folders in tree there are collabsed
|
|
119
|
+
* @returns css class with icon
|
|
138
120
|
*/
|
|
139
|
-
|
|
121
|
+
get iconFolderCollabsed(): string;
|
|
140
122
|
/**
|
|
141
|
-
*
|
|
142
|
-
*
|
|
123
|
+
* CSS icon class for folders without subfolders
|
|
124
|
+
* @returns css class with icon
|
|
143
125
|
*/
|
|
144
|
-
|
|
126
|
+
get iconFolderEmpty(): string;
|
|
145
127
|
/**
|
|
146
|
-
*
|
|
147
|
-
*
|
|
128
|
+
* CSS icon for folders in tree there are expanded
|
|
129
|
+
* @returns css class with icon
|
|
148
130
|
*/
|
|
149
|
-
|
|
131
|
+
get iconFolderOpen(): string;
|
|
150
132
|
/**
|
|
151
|
-
*
|
|
133
|
+
* Creates an array of a certain size. Is required for a For in the UI, as Angular does not support counting loops
|
|
134
|
+
* @param size Size of the array
|
|
135
|
+
* @returns Array
|
|
152
136
|
*/
|
|
153
|
-
|
|
137
|
+
count(size: number): Array<void>;
|
|
138
|
+
getChildren(node: any): any[];
|
|
139
|
+
getStringField(node: any, fieldname: string): any;
|
|
140
|
+
hasChildren(node: any): boolean;
|
|
141
|
+
isDisabledState(node: any): boolean;
|
|
142
|
+
isExpandedState(node: any): boolean;
|
|
143
|
+
isHoverState(node: any): boolean;
|
|
144
|
+
isSelectedState(node: any): boolean;
|
|
154
145
|
/**
|
|
155
|
-
*
|
|
146
|
+
* Method is called by clicking an action
|
|
147
|
+
* @param action action and node
|
|
156
148
|
*/
|
|
157
|
-
|
|
149
|
+
onActionClicked(action: TreeviewAction): void;
|
|
158
150
|
/**
|
|
159
|
-
*
|
|
151
|
+
* Method is called when Node in Tree is clicked
|
|
152
|
+
* @param node Selected Node
|
|
160
153
|
*/
|
|
161
|
-
|
|
154
|
+
onNodeClicked(node: any): void;
|
|
162
155
|
/**
|
|
163
|
-
*
|
|
156
|
+
* Sets the hover state on a node
|
|
157
|
+
* @param node Node on which the status is set
|
|
158
|
+
* @param state Activate or deactivate HoverState
|
|
164
159
|
*/
|
|
165
|
-
|
|
160
|
+
setHoverState(node: any, state: boolean): void;
|
|
166
161
|
/**
|
|
167
|
-
*
|
|
162
|
+
* Sets the selected state on a node
|
|
163
|
+
* @param node Node which is marked as Selected
|
|
168
164
|
*/
|
|
169
|
-
|
|
165
|
+
setSelectedState(node: any): void;
|
|
170
166
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* @
|
|
174
|
-
* @param searchValue Das gesuchte value
|
|
175
|
-
* @param attr Der namen des Attributs auf dem das value gesucht wird
|
|
167
|
+
* Validates the model state of the control
|
|
168
|
+
* @param c Control instance
|
|
169
|
+
* @returns Returns a validation error, if present. Otherwise, as Result is NULL
|
|
176
170
|
*/
|
|
177
|
-
|
|
171
|
+
validateData(c: AbstractControl): ValidationErrors | null;
|
|
178
172
|
/**
|
|
179
|
-
*
|
|
173
|
+
* Saves the data from the model binding
|
|
174
|
+
* @param value Id of the selected node
|
|
180
175
|
*/
|
|
181
|
-
|
|
176
|
+
writeValue(value: any): void;
|
|
182
177
|
/**
|
|
183
|
-
*
|
|
178
|
+
* Searches for a node based on the value in the ID attribute
|
|
179
|
+
* @param node Node
|
|
180
|
+
* @param value Value of the Id attribute
|
|
181
|
+
* @returns Returns the node if it is found. If not, NULL is returned.
|
|
184
182
|
*/
|
|
185
|
-
private
|
|
186
|
-
|
|
187
|
-
|
|
183
|
+
private findNodeById;
|
|
184
|
+
private invertExpandedState;
|
|
185
|
+
private resetSelectedState;
|
|
186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SacTreeviewCommon, [{ host: true; }, null]>;
|
|
187
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SacTreeviewCommon, never, never, { "attrchildren": "attrchildren"; "attrdisableaction": "attrdisableaction"; "attrexanded": "attrexanded"; "attrhoverstate": "attrhoverstate"; "attricon": "attricon"; "attrid": "attrid"; "attrlabel": "attrlabel"; "attrselected": "attrselected"; "data": "data"; "enableasynchload": "enableasynchload"; "enableellipsis": "enableellipsis"; "expandedstate": "expandedstate"; "isrequired": "isrequired"; "name": "name"; "showactionalways": "showactionalways"; "templateaction": "templateaction"; "templateicon": "templateicon"; "templatelabel": "templatelabel"; "validationmessagerequired": "validationmessagerequired"; "validationmessagesummaryrequired": "validationmessagesummaryrequired"; }, { "actionclicked": "actionclicked"; "collabsed": "collabsed"; "expanded": "expanded"; "selected": "selected"; "selectednode": "selectednode"; }, never>;
|
|
188
188
|
}
|
|
189
189
|
//# sourceMappingURL=treeview.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeview.d.ts","sourceRoot":"","sources":["../../../../projects/sac-common/src/controls/treeview/treeview.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"treeview.d.ts","sourceRoot":"","sources":["../../../../projects/sac-common/src/controls/treeview/treeview.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,2CAA2C,CAAC;AAE3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,EAAa,YAAY,EAAQ,QAAQ,EAAiB,WAAW,EAAE,MAAM,eAAe,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;;AAEnE;;GAEG;AACH,qBACa,iBAAkB,SAAQ,mBAAmB,CAAC,GAAG,CAAC;IAG3D;;OAEG;IAEI,aAAa,EAAE,YAAY,CAAC,cAAc,CAAC,CAAsC;IAExF;;OAEG;IAEI,YAAY,SAAc;IAEjC;;OAEG;IACa,iBAAiB,SAAc;IAE/C;;OAEG;IAEI,WAAW,SAAc;IAEhC;;OAEG;IAEI,cAAc,SAAgB;IAErC;;OAEG;IAEI,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEtC;;OAEG;IAEI,MAAM,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEpC;;OAEG;IAEI,SAAS,SAAW;IAE3B;;OAEG;IAEI,YAAY,SAAc;IAEjC;;OAEG;IAEI,SAAS,EAAE,YAAY,CAAC,GAAG,CAAC,CAA2B;IAE9D;;OAEG;IAEI,IAAI,EAAE,GAAG,EAAE,CAAM;IAExB;;OAEG;IAEI,gBAAgB,EAAE,OAAO,GAAG,MAAM,CAAS;IAElD;;OAEG;IAE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OAAO;IASnC,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO;IASnC,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO;IAShC,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO;IAS1C;;;OAGG;IACI,eAAe,CAAC,MAAM,EAAE,cAAc;IAI7C;;;OAGG;IACI,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IAQrC;;;;OAIG;IACI,aAAa,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO;IAiB9C;;;OAGG;IACI,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI;IA4BxC;;;;OAIG;IACI,YAAY,CAAC,CAAC,EAAE,eAAe,GAAG,gBAAgB,GAAG,IAAI;IAUhE;;;OAGG;IACI,UAAU,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI;IAqBnC;;;;;OAKG;IACH,OAAO,CAAC,YAAY;IAoBpB,OAAO,CAAC,mBAAmB;IAqB3B,OAAO,CAAC,kBAAkB;yCAzbjB,iBAAiB;2CAAjB,iBAAiB;CAsc7B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const SacTreeviewCommonNgFactory: i0.ɵNgModuleFactory<any>;
|
|
3
3
|
export declare const ɵNonEmptyModule = true;
|
|
4
4
|
//# sourceMappingURL=treeview.ngfactory.d.ts.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const SacTreeviewCommonNgSummary: any;
|
|
2
2
|
//# sourceMappingURL=treeview.ngsummary.d.ts.map
|