@simpleangularcontrols/sac-common 10.0.0-rc.29 → 10.0.0-rc.30
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 +1848 -1249
- 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 +47 -21
- package/common/baseinputcontrol.d.ts +10 -8
- package/common/baselistcontrol.d.ts +15 -15
- package/common/basemodelcontrol.d.ts +59 -43
- package/common/baseselectcontrol.d.ts +5 -5
- package/common/baseuploadcontrol.d.ts +77 -57
- package/components/browser/browser.d.ts +86 -89
- package/components/browser/models/browserfile.d.ts +6 -6
- package/components/browser/models/browserfiledeleterequest.d.ts +7 -7
- package/components/browser/models/browserfilerenamerequest.d.ts +10 -10
- package/components/browser/models/browserfileresponse.d.ts +2 -2
- package/components/browser/models/browserfilesaverequest.d.ts +7 -7
- package/components/browser/models/browsernode.d.ts +13 -13
- package/components/browser/models/browsernodedeleterequest.d.ts +6 -6
- package/components/browser/models/browsernodenewrequest.d.ts +7 -7
- package/components/browser/models/browsernoderenamerequest.d.ts +7 -7
- package/components/browser/models/browsernoderequest.d.ts +7 -7
- package/components/browser/models/browsernoderesponse.d.ts +1 -1
- package/controls/buttons/button.d.ts +25 -19
- package/controls/checkbox/checkbox.d.ts +3 -3
- package/controls/checkbox/radiobutton.d.ts +19 -13
- package/controls/checkbox/radiobuttons.d.ts +13 -10
- package/controls/confirm/confirm.button.d.ts +3 -3
- package/controls/confirm/confirm.d.ts +13 -12
- package/controls/confirm/confirm.service.d.ts +14 -14
- package/controls/contextmenu/contextmenu.d.ts +33 -27
- package/controls/contextmenu/contextmenu.interface.d.ts +6 -0
- package/controls/contextmenu/contextmenuanchor.d.ts +4 -4
- package/controls/contextmenu/contextmenucontainer.d.ts +4 -4
- package/controls/contextmenu/contextmenuitembutton.d.ts +12 -12
- package/controls/datetime/date.d.ts +11 -11
- package/controls/datetime/dateselector.d.ts +47 -40
- package/controls/datetime/datetime.d.ts +15 -14
- package/controls/datetime/time.d.ts +22 -12
- package/controls/dialog/dialog.d.ts +28 -22
- package/controls/form/form.d.ts +17 -12
- package/controls/grid/grid.d.ts +1 -0
- package/controls/grid/gridbutton.d.ts +1 -0
- package/controls/grid/gridcolumn.d.ts +5 -1
- package/controls/grid/gridcolumnaction.d.ts +1 -1
- package/controls/grid/gridcolumnbase.d.ts +8 -3
- package/controls/grid/model.d.ts +5 -2
- package/controls/grid/paging.d.ts +2 -3
- package/controls/input/input.d.ts +7 -7
- package/controls/input/inputarea.d.ts +8 -6
- package/controls/input/inputcurrency.d.ts +4 -1
- package/controls/input/inputdecimal.d.ts +14 -14
- package/controls/input/inputemail.d.ts +4 -4
- package/controls/input/inputinteger.d.ts +14 -14
- package/controls/input/inputpassword.d.ts +3 -3
- package/controls/input/inputsearch.d.ts +8 -5
- package/controls/layout/formlayout.d.ts +8 -5
- package/controls/list/buildvaluestring.d.ts +2 -2
- package/controls/list/dropdown.d.ts +23 -22
- package/controls/list/dropdownoptions.d.ts +10 -10
- package/controls/list/listbox.d.ts +25 -23
- package/controls/multilanguage/multilanguageinput.d.ts +25 -25
- package/controls/multilanguage/multilanguageinputarea.d.ts +27 -27
- package/controls/static/formcontainer.d.ts +8 -8
- package/controls/static/staticlabel.d.ts +5 -5
- package/controls/tabs/tab.d.ts +2 -2
- package/controls/tabs/tabitem.d.ts +7 -7
- package/controls/tinymce/tinymce.d.ts +37 -37
- package/controls/tinymce/tinymcedialogsettings.d.ts +6 -6
- package/controls/tinymce/tinymcedialogsettingsmeta.d.ts +2 -2
- package/controls/tinymce/tinymceinstance.d.ts +2 -2
- package/controls/tooltip/tooltip.d.ts +10 -5
- package/controls/treeview/treeview.d.ts +50 -5
- package/controls/upload/dropzonemultiple.d.ts +16 -16
- package/controls/upload/dropzonesingle.d.ts +11 -11
- package/controls/upload/uploadmultiple.d.ts +12 -12
- package/controls/upload/uploadsingle.d.ts +7 -7
- package/controls/validation/validationsummary.d.ts +12 -11
- package/controls/wizard/wizard.d.ts +25 -18
- package/controls/wizard/wizarditem.d.ts +5 -5
- package/enums/ButtonRoleType.d.ts +26 -1
- package/enums/ControlHeight.d.ts +1 -1
- package/enums/IconType.d.ts +1 -1
- package/esm2015/common/basedatetimecontrol.js +47 -22
- package/esm2015/common/baseinputcontrol.js +13 -11
- package/esm2015/common/baselistcontrol.js +21 -17
- package/esm2015/common/basemodelcontrol.js +72 -49
- package/esm2015/common/baseselectcontrol.js +11 -9
- package/esm2015/common/baseuploadcontrol.js +69 -49
- package/esm2015/components/browser/browser.js +93 -105
- package/esm2015/components/browser/models/browserfile.js +1 -1
- package/esm2015/components/browser/models/browserfiledeleterequest.js +6 -4
- package/esm2015/components/browser/models/browserfilerenamerequest.js +6 -4
- package/esm2015/components/browser/models/browserfileresponse.js +1 -1
- package/esm2015/components/browser/models/browserfilesaverequest.js +5 -3
- package/esm2015/components/browser/models/browsernode.js +1 -1
- package/esm2015/components/browser/models/browsernodedeleterequest.js +6 -4
- package/esm2015/components/browser/models/browsernodenewrequest.js +6 -4
- package/esm2015/components/browser/models/browsernoderenamerequest.js +6 -4
- package/esm2015/components/browser/models/browsernoderequest.js +6 -4
- package/esm2015/components/browser/models/browsernoderesponse.js +1 -1
- package/esm2015/controls/buttons/button.js +26 -20
- package/esm2015/controls/checkbox/checkbox.js +3 -3
- package/esm2015/controls/checkbox/radiobutton.js +21 -15
- package/esm2015/controls/checkbox/radiobuttons.js +14 -11
- package/esm2015/controls/confirm/confirm.button.js +4 -4
- package/esm2015/controls/confirm/confirm.js +14 -13
- package/esm2015/controls/confirm/confirm.service.js +21 -21
- package/esm2015/controls/contextmenu/contextmenu.interface.js +1 -1
- package/esm2015/controls/contextmenu/contextmenu.js +29 -23
- package/esm2015/controls/contextmenu/contextmenuanchor.js +4 -4
- package/esm2015/controls/contextmenu/contextmenucontainer.js +4 -4
- package/esm2015/controls/contextmenu/contextmenuitembutton.js +10 -10
- package/esm2015/controls/datetime/date.js +13 -13
- package/esm2015/controls/datetime/dateselector.js +55 -54
- package/esm2015/controls/datetime/datetime.js +17 -16
- package/esm2015/controls/datetime/time.js +24 -14
- package/esm2015/controls/dialog/dialog.js +31 -24
- package/esm2015/controls/form/form.js +18 -13
- package/esm2015/controls/grid/grid.js +2 -1
- package/esm2015/controls/grid/gridbutton.js +2 -1
- package/esm2015/controls/grid/gridcolumn.js +6 -2
- package/esm2015/controls/grid/gridcolumnaction.js +2 -2
- package/esm2015/controls/grid/gridcolumnbase.js +9 -4
- package/esm2015/controls/grid/model.js +5 -2
- package/esm2015/controls/grid/paging.js +6 -7
- package/esm2015/controls/input/input.js +8 -8
- package/esm2015/controls/input/inputarea.js +9 -7
- package/esm2015/controls/input/inputcurrency.js +6 -3
- package/esm2015/controls/input/inputdecimal.js +21 -27
- package/esm2015/controls/input/inputemail.js +5 -5
- package/esm2015/controls/input/inputinteger.js +19 -23
- package/esm2015/controls/input/inputpassword.js +4 -4
- package/esm2015/controls/input/inputsearch.js +9 -6
- package/esm2015/controls/layout/formlayout.js +10 -7
- package/esm2015/controls/list/buildvaluestring.js +6 -6
- package/esm2015/controls/list/dropdown.js +28 -27
- package/esm2015/controls/list/dropdownoptions.js +12 -12
- package/esm2015/controls/list/listbox.js +26 -24
- package/esm2015/controls/multilanguage/multilanguageinput.js +29 -29
- package/esm2015/controls/multilanguage/multilanguageinputarea.js +31 -31
- package/esm2015/controls/static/formcontainer.js +10 -10
- package/esm2015/controls/static/staticlabel.js +7 -7
- package/esm2015/controls/tabs/tab.js +2 -2
- package/esm2015/controls/tabs/tabitem.js +5 -5
- package/esm2015/controls/tinymce/tinymce.js +35 -35
- package/esm2015/controls/tinymce/tinymcedialogsettings.js +4 -4
- package/esm2015/controls/tinymce/tinymcedialogsettingsmeta.js +1 -1
- package/esm2015/controls/tinymce/tinymceinstance.js +1 -1
- package/esm2015/controls/tooltip/tooltip.js +13 -8
- package/esm2015/controls/treeview/treeview.js +52 -7
- package/esm2015/controls/upload/dropzonemultiple.js +18 -18
- package/esm2015/controls/upload/dropzonesingle.js +12 -12
- package/esm2015/controls/upload/uploadmultiple.js +14 -14
- package/esm2015/controls/upload/uploadsingle.js +8 -8
- package/esm2015/controls/validation/validationsummary.js +14 -13
- package/esm2015/controls/wizard/wizard.js +24 -17
- package/esm2015/controls/wizard/wizarditem.js +4 -4
- package/esm2015/enums/ButtonRoleType.js +1 -1
- package/esm2015/enums/ControlHeight.js +2 -2
- package/esm2015/enums/IconType.js +2 -2
- package/esm2015/interfaces/ISacConfigurationService.js +1 -1
- package/esm2015/interfaces/ISacFileBrowserService.js +1 -1
- package/esm2015/interfaces/ISacLabelSizes.js +1 -1
- package/esm2015/interfaces/ISacLanguageService.js +1 -1
- package/esm2015/interfaces/ISacLocalisationService.js +1 -1
- package/esm2015/interfaces/ISacUploadEventCompleteState.js +1 -1
- package/esm2015/interfaces/iabstractcontrollabel.js +1 -1
- package/esm2015/interfaces/iconfirmcomponent.js +1 -1
- package/esm2015/interfaces/idatetimecontrol.js +1 -1
- package/esm2015/interfaces/iuploadcontrol.js +1 -1
- package/esm2015/interfaces/treeviewaction.interface.js +1 -1
- package/esm2015/models/languagemodel.js +5 -3
- package/esm2015/public_api.js +3 -2
- package/esm2015/services/index.js +4 -4
- package/esm2015/services/sac-configuration.service.js +7 -1
- package/esm2015/services/sac-filebrowser.service.js +46 -38
- package/esm2015/services/sac-localisation.service.js +11 -7
- package/esm2015/services/sac-validationkey.service.js +148 -1
- package/esm2015/utilities/convertion.js +7 -5
- package/esm2015/utilities/datatypes.js +6 -4
- package/esm2015/utilities/enums.js +9 -8
- package/esm2015/utilities/guid.js +2 -2
- package/esm2015/utilities/interpolation.js +16 -9
- package/esm2015/utilities/popuphelper.js +62 -25
- package/esm2015/utilities/positioncalculator.js +209 -0
- package/esm2015/utilities/positioncalculator.ngfactory.js +7 -0
- package/esm2015/utilities/positionelements.js +108 -0
- package/esm2015/utilities/positionelements.ngfactory.js +7 -0
- package/esm2015/utilities/testingattribute.pipe.js +17 -2
- package/esm2015/validation/email.validator.js +11 -2
- package/esm2015/validation/equals.validator.js +11 -1
- package/esm2015/validation/index.js +1 -1
- package/esm2015/validation/invaliddate.validator.js +11 -2
- package/esm2015/validation/isDateValid.js +11 -10
- package/esm2015/validation/maxdate.validator.js +14 -4
- package/esm2015/validation/maxtime.validator.js +14 -4
- package/esm2015/validation/maxvalue.validator.js +12 -2
- package/esm2015/validation/mindate.validator.js +14 -4
- package/esm2015/validation/minfiles.validator.js +12 -2
- package/esm2015/validation/mintextlength.validator.js +9 -1
- package/esm2015/validation/mintime.validator.js +14 -4
- package/esm2015/validation/minvalue.validator.js +12 -2
- package/esm2015/validation/multilanguagerequired.validator.js +11 -1
- package/esm2015/validation/multilanguagerequiredany.validator.js +11 -1
- package/esm2015/validation/notequals.validator.js +11 -1
- package/esm2015/validation/pattern.validator.js +12 -2
- package/esm2015/validation/required.validator.js +11 -2
- package/esm2015/validation/validation.class.js +84 -101
- package/esm2015/validation/validationerrorcreator.js +12 -1
- package/esm2015/validation/validationerroritem.js +11 -9
- package/fesm2015/simpleangularcontrols-sac-common.js +1823 -1226
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacConfigurationService.d.ts +9 -1
- package/interfaces/ISacFileBrowserService.d.ts +43 -43
- package/interfaces/ISacLabelSizes.d.ts +15 -12
- package/interfaces/ISacLanguageService.d.ts +3 -3
- package/interfaces/ISacLocalisationService.d.ts +2 -2
- package/interfaces/ISacUploadEventCompleteState.d.ts +6 -0
- package/interfaces/iabstractcontrollabel.d.ts +4 -1
- package/interfaces/iconfirmcomponent.d.ts +6 -6
- package/interfaces/idatetimecontrol.d.ts +10 -1
- package/interfaces/treeviewaction.interface.d.ts +9 -0
- package/models/languagemodel.d.ts +9 -9
- package/package.json +1 -1
- package/public_api.d.ts +2 -1
- package/services/index.d.ts +3 -3
- package/services/sac-configuration.service.d.ts +8 -0
- package/services/sac-filebrowser.service.d.ts +78 -70
- package/services/sac-localisation.service.d.ts +11 -7
- package/services/sac-validationkey.service.d.ts +147 -0
- package/simpleangularcontrols-sac-common-10.0.0-rc.30.tgz +0 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/utilities/convertion.d.ts +4 -4
- package/utilities/datatypes.d.ts +3 -3
- package/utilities/enums.d.ts +8 -1
- package/utilities/guid.d.ts +1 -1
- package/utilities/interpolation.d.ts +9 -8
- package/utilities/popuphelper.d.ts +47 -10
- package/utilities/positioncalculator.d.ts +82 -0
- package/utilities/positionelements.d.ts +30 -0
- package/utilities/positionelements.ngfactory.d.ts +1 -0
- package/utilities/testingattribute.pipe.d.ts +16 -1
- package/validation/email.validator.d.ts +7 -0
- package/validation/equals.validator.d.ts +8 -0
- package/validation/invaliddate.validator.d.ts +7 -0
- package/validation/isDateValid.d.ts +5 -2
- package/validation/maxdate.validator.d.ts +8 -0
- package/validation/maxtime.validator.d.ts +8 -0
- package/validation/maxvalue.validator.d.ts +8 -0
- package/validation/mindate.validator.d.ts +8 -0
- package/validation/minfiles.validator.d.ts +8 -0
- package/validation/mintextlength.validator.d.ts +8 -0
- package/validation/mintime.validator.d.ts +8 -0
- package/validation/minvalue.validator.d.ts +8 -0
- package/validation/multilanguagerequired.validator.d.ts +9 -1
- package/validation/multilanguagerequiredany.validator.d.ts +9 -1
- package/validation/notequals.validator.d.ts +8 -0
- package/validation/pattern.validator.d.ts +8 -0
- package/validation/required.validator.d.ts +7 -0
- package/validation/validation.class.d.ts +83 -100
- package/validation/validationerrorcreator.d.ts +9 -0
- package/validation/validationerroritem.d.ts +16 -16
- package/esm2015/utilities/positioning.js +0 -301
- package/esm2015/utilities/positioning.ngfactory.js +0 -7
- package/simpleangularcontrols-sac-common-10.0.0-rc.29.tgz +0 -0
- package/utilities/positioning.d.ts +0 -82
- /package/utilities/{positioning.ngfactory.d.ts → positioncalculator.ngfactory.d.ts} +0 -0
|
@@ -35,7 +35,7 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
35
35
|
*/
|
|
36
36
|
IsTooltipContentVisible: boolean;
|
|
37
37
|
/**
|
|
38
|
-
* Position
|
|
38
|
+
* Position of the tooltip on the left
|
|
39
39
|
*/
|
|
40
40
|
LeftPos: number;
|
|
41
41
|
/**
|
|
@@ -77,8 +77,9 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
77
77
|
*/
|
|
78
78
|
tooltiptext: string;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
* @param
|
|
80
|
+
* Constructor
|
|
81
|
+
* @param cdRef Change detector reference for updating component view
|
|
82
|
+
* @param ref Element reference
|
|
82
83
|
*/
|
|
83
84
|
constructor(cdRef: ChangeDetectorRef, ref: ElementRef);
|
|
84
85
|
/**
|
|
@@ -96,6 +97,7 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
96
97
|
get tooltop(): ElementRef;
|
|
97
98
|
/**
|
|
98
99
|
* Returns the position of the tooltip
|
|
100
|
+
* @returns TooltipPosition The calculated position for the tooltip
|
|
99
101
|
*/
|
|
100
102
|
GetTooltipPosition(): TooltipPosition;
|
|
101
103
|
/**
|
|
@@ -104,6 +106,7 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
104
106
|
HideTooltip(): void;
|
|
105
107
|
/**
|
|
106
108
|
* Defines whether the tooltip is present in the markup
|
|
109
|
+
* @returns Boolean indicating whether the tooltip is visible
|
|
107
110
|
*/
|
|
108
111
|
IsTooltipVisible(): boolean;
|
|
109
112
|
/**
|
|
@@ -112,18 +115,20 @@ export declare abstract class SacTooltipCommon implements OnInit, OnDestroy, Aft
|
|
|
112
115
|
ShowTooltip(): void;
|
|
113
116
|
/**
|
|
114
117
|
* Calculates the height of the tooltip
|
|
118
|
+
* @returns The height of the tooltip in pixels
|
|
115
119
|
*/
|
|
116
120
|
getToolTipHeight(): number;
|
|
117
121
|
/**
|
|
118
122
|
* Calculates the width of the tooltips
|
|
123
|
+
* @returns The width of the tooltip in pixels
|
|
119
124
|
*/
|
|
120
125
|
getToolTipWidth(): number;
|
|
121
126
|
/**
|
|
122
|
-
* Detect
|
|
127
|
+
* Detect changes after view checked. Prevent ExpressionChangedAfterItHasBeenCheckedError error
|
|
123
128
|
*/
|
|
124
129
|
ngAfterViewChecked(): void;
|
|
125
130
|
/**
|
|
126
|
-
* Detect UI
|
|
131
|
+
* Detect UI changes to calculate tooltip correctly
|
|
127
132
|
*/
|
|
128
133
|
ngDoCheck(): void;
|
|
129
134
|
/**
|
|
@@ -4,7 +4,7 @@ import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
|
4
4
|
import { EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
5
5
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Base component for SacTreeView
|
|
8
8
|
*/
|
|
9
9
|
export declare class SacTreeviewCommon extends SacBaseModelControl<any> {
|
|
10
10
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class SacTreeviewCommon extends SacBaseModelControl<any> {
|
|
|
52
52
|
*/
|
|
53
53
|
data: any[];
|
|
54
54
|
/**
|
|
55
|
-
* Activates the 'expand' and '
|
|
55
|
+
* Activates the 'expand' and 'collapse' event even if a node has no children. This is helpful if node elements are to be reloaded at runtime.
|
|
56
56
|
*/
|
|
57
57
|
enableasynchload: boolean | string;
|
|
58
58
|
/**
|
|
@@ -100,21 +100,22 @@ export declare class SacTreeviewCommon extends SacBaseModelControl<any> {
|
|
|
100
100
|
*/
|
|
101
101
|
templatelabel: TemplateRef<any>;
|
|
102
102
|
/**
|
|
103
|
-
* Resource
|
|
103
|
+
* Resource key required for validation message at control
|
|
104
104
|
*/
|
|
105
105
|
validationmessagerequired: string;
|
|
106
106
|
/**
|
|
107
|
-
* Resource
|
|
107
|
+
* Resource key required for validation message in the validation summary
|
|
108
108
|
*/
|
|
109
109
|
validationmessagesummaryrequired: string;
|
|
110
110
|
/**
|
|
111
111
|
* Constructor
|
|
112
|
+
* @param formlayout Form layout directive for scoped layout settings
|
|
112
113
|
* @param injector Service Injector
|
|
113
114
|
*/
|
|
114
115
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector);
|
|
115
116
|
get iconAction(): string;
|
|
116
117
|
/**
|
|
117
|
-
* CSS icon for folders in tree
|
|
118
|
+
* CSS icon for folders in tree that are collapsed
|
|
118
119
|
* @returns css class with icon
|
|
119
120
|
*/
|
|
120
121
|
get iconFolderCollabsed(): string;
|
|
@@ -134,12 +135,48 @@ export declare class SacTreeviewCommon extends SacBaseModelControl<any> {
|
|
|
134
135
|
* @returns Array
|
|
135
136
|
*/
|
|
136
137
|
count(size: number): Array<void>;
|
|
138
|
+
/**
|
|
139
|
+
* Get the child nodes of a node
|
|
140
|
+
* @param node Parent node
|
|
141
|
+
* @returns Array of child nodes
|
|
142
|
+
*/
|
|
137
143
|
getChildren(node: any): any[];
|
|
144
|
+
/**
|
|
145
|
+
* Get string field value from node
|
|
146
|
+
* @param node Node object
|
|
147
|
+
* @param fieldname Field name to retrieve
|
|
148
|
+
* @returns The field value as string or empty string
|
|
149
|
+
*/
|
|
138
150
|
getStringField(node: any, fieldname: string): any;
|
|
151
|
+
/**
|
|
152
|
+
* Check if node has children
|
|
153
|
+
* @param node Node to check
|
|
154
|
+
* @returns Boolean indicating if node has child nodes
|
|
155
|
+
*/
|
|
139
156
|
hasChildren(node: any): boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Check if node is in disabled state
|
|
159
|
+
* @param node Node to check
|
|
160
|
+
* @returns Boolean indicating if node is disabled
|
|
161
|
+
*/
|
|
140
162
|
isDisabledState(node: any): boolean;
|
|
163
|
+
/**
|
|
164
|
+
* Check if node is in expanded state
|
|
165
|
+
* @param node Node to check
|
|
166
|
+
* @returns Boolean indicating if node is expanded
|
|
167
|
+
*/
|
|
141
168
|
isExpandedState(node: any): boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Check if node is in hover state
|
|
171
|
+
* @param node Node to check
|
|
172
|
+
* @returns Boolean indicating if node is hovered
|
|
173
|
+
*/
|
|
142
174
|
isHoverState(node: any): boolean;
|
|
175
|
+
/**
|
|
176
|
+
* Check if node is in selected state
|
|
177
|
+
* @param node Node to check
|
|
178
|
+
* @returns Boolean indicating if node is selected
|
|
179
|
+
*/
|
|
143
180
|
isSelectedState(node: any): boolean;
|
|
144
181
|
/**
|
|
145
182
|
* Method is called by clicking an action
|
|
@@ -180,6 +217,14 @@ export declare class SacTreeviewCommon extends SacBaseModelControl<any> {
|
|
|
180
217
|
* @returns Returns the node if it is found. If not, NULL is returned.
|
|
181
218
|
*/
|
|
182
219
|
private findNodeById;
|
|
220
|
+
/**
|
|
221
|
+
* Inverts the expanded state of a tree node
|
|
222
|
+
* @param node The node whose expanded state should be inverted
|
|
223
|
+
*/
|
|
183
224
|
private invertExpandedState;
|
|
225
|
+
/**
|
|
226
|
+
* Recursively resets the selected state of a node and its children
|
|
227
|
+
* @param node The node whose selected state should be reset
|
|
228
|
+
*/
|
|
184
229
|
private resetSelectedState;
|
|
185
230
|
}
|
|
@@ -3,66 +3,66 @@ import { OnInit } from '@angular/core';
|
|
|
3
3
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
4
|
import { UploadState } from 'ngx-uploadx';
|
|
5
5
|
/**
|
|
6
|
-
* Upload
|
|
6
|
+
* Upload component for multiple files
|
|
7
7
|
*/
|
|
8
8
|
export declare class SacDropzoneMultipleCommon extends SacUploadBase<string[]> implements OnInit {
|
|
9
9
|
/**
|
|
10
|
-
* Property
|
|
10
|
+
* Property when drag event is active (mouse over zone)
|
|
11
11
|
*/
|
|
12
12
|
active: boolean;
|
|
13
13
|
/**
|
|
14
|
-
* Max.
|
|
14
|
+
* Max. number of files that can be uploaded
|
|
15
15
|
*/
|
|
16
16
|
maxfiles: number;
|
|
17
17
|
/**
|
|
18
|
-
* Min.
|
|
18
|
+
* Min. number of files that must be uploaded
|
|
19
19
|
*/
|
|
20
20
|
minfiles: number;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Height of the upload control
|
|
23
23
|
*/
|
|
24
24
|
uploadheight: string;
|
|
25
25
|
/**
|
|
26
|
-
* Resource Key
|
|
26
|
+
* Resource Key for Validation Message Required at Control
|
|
27
27
|
*/
|
|
28
28
|
validationmessageminfiles: string;
|
|
29
29
|
/**
|
|
30
|
-
* Resource Key
|
|
30
|
+
* Resource Key for Validation Message Required in Validation Summary
|
|
31
31
|
*/
|
|
32
32
|
validationmessagesummaryminfiles: string;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Checks if the max. files in the queue are not exceeded
|
|
35
35
|
*
|
|
36
|
-
* @param file File
|
|
36
|
+
* @param file File that was added
|
|
37
37
|
*/
|
|
38
38
|
CustomAddValidation(file: UploadState): boolean;
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Sets the file IDs of the uploaded files into the model
|
|
41
41
|
*
|
|
42
|
-
* @param file ID
|
|
42
|
+
* @param file ID of the file that was uploaded.
|
|
43
43
|
*/
|
|
44
44
|
SetUploadValue(file: UploadState): void;
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Method for drag and drop of files
|
|
47
47
|
* @param event Drag Event
|
|
48
48
|
*/
|
|
49
49
|
dropHandler(event: DragEvent): void;
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Event when the control is initialized
|
|
52
52
|
*/
|
|
53
53
|
ngOnInit(): void;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Method when drag leaves the zone
|
|
56
56
|
* @param event DragLeave Event
|
|
57
57
|
*/
|
|
58
58
|
onDragLeave(event: DragEvent): void;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Method when drag enters the zone
|
|
61
61
|
* @param event DragEnter Event
|
|
62
62
|
*/
|
|
63
63
|
onDragOver(event: DragEvent): void;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Validates the control
|
|
66
66
|
*
|
|
67
67
|
* @param c Control
|
|
68
68
|
*/
|
|
@@ -2,45 +2,45 @@ import { SacUploadBase } from '../../common/baseuploadcontrol';
|
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { UploadState } from 'ngx-uploadx';
|
|
4
4
|
/**
|
|
5
|
-
* Upload
|
|
5
|
+
* Upload component for a single file
|
|
6
6
|
*/
|
|
7
7
|
export declare class SacDropzoneSingleCommon extends SacUploadBase<string> implements OnInit {
|
|
8
8
|
/**
|
|
9
|
-
* Property
|
|
9
|
+
* Property when drag event is active (mouse over zone)
|
|
10
10
|
*/
|
|
11
11
|
active: boolean;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Height of the dropzone. Value is given with unit.
|
|
14
14
|
*/
|
|
15
15
|
uploadheight: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Does no validation in this control
|
|
18
18
|
*
|
|
19
|
-
* @param file File
|
|
19
|
+
* @param file File that was added
|
|
20
20
|
*/
|
|
21
21
|
CustomAddValidation(file: UploadState): boolean;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Sets the file ID of the uploaded file into the model
|
|
24
24
|
*
|
|
25
|
-
* @param file ID
|
|
25
|
+
* @param file ID of the file
|
|
26
26
|
*/
|
|
27
27
|
SetUploadValue(file: UploadState): void;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* Method for drag and drop of files
|
|
30
30
|
* @param event Drag Event
|
|
31
31
|
*/
|
|
32
32
|
dropHandler(event: DragEvent): void;
|
|
33
33
|
/**
|
|
34
|
-
*
|
|
34
|
+
* Event when the control is initialized
|
|
35
35
|
*/
|
|
36
36
|
ngOnInit(): void;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Method when drag leaves the zone
|
|
39
39
|
* @param event DragLeave Event
|
|
40
40
|
*/
|
|
41
41
|
onDragLeave(event: DragEvent): void;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Method when drag enters the zone
|
|
44
44
|
* @param event DragEnter Event
|
|
45
45
|
*/
|
|
46
46
|
onDragOver(event: DragEvent): void;
|
|
@@ -2,47 +2,47 @@ import { SacUploadBase } from '../../common/baseuploadcontrol';
|
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { UploadState } from 'ngx-uploadx';
|
|
4
4
|
/**
|
|
5
|
-
* Upload
|
|
5
|
+
* Upload component for multiple files
|
|
6
6
|
*/
|
|
7
7
|
export declare class SacUploadMultipleCommon extends SacUploadBase<string[]> {
|
|
8
8
|
/**
|
|
9
|
-
* Label
|
|
9
|
+
* Label for Browse Button
|
|
10
10
|
*/
|
|
11
11
|
buttonbrowse: string;
|
|
12
12
|
/**
|
|
13
|
-
* Label
|
|
13
|
+
* Label for Upload Button
|
|
14
14
|
*/
|
|
15
15
|
buttonupload: string;
|
|
16
16
|
/**
|
|
17
|
-
* Max.
|
|
17
|
+
* Max. files that can be uploaded. 0 disables the limit
|
|
18
18
|
*/
|
|
19
19
|
maxfiles: number;
|
|
20
20
|
/**
|
|
21
|
-
* Min.
|
|
21
|
+
* Min. files that must be uploaded. 0 disables the limit
|
|
22
22
|
*/
|
|
23
23
|
minfiles: number;
|
|
24
24
|
/**
|
|
25
|
-
* Resource Key
|
|
25
|
+
* Resource Key for Validation Message Required at Control
|
|
26
26
|
*/
|
|
27
27
|
validationmessageminfiles: string;
|
|
28
28
|
/**
|
|
29
|
-
* Resource Key
|
|
29
|
+
* Resource Key for Validation Message Required in Validation Summary
|
|
30
30
|
*/
|
|
31
31
|
validationmessagesummaryminfiles: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Checks if the max. files in the queue are not exceeded
|
|
34
34
|
*
|
|
35
|
-
* @param file File
|
|
35
|
+
* @param file File that was added
|
|
36
36
|
*/
|
|
37
37
|
CustomAddValidation(file: UploadState): boolean;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Sets the file IDs of the uploaded files into the model
|
|
40
40
|
*
|
|
41
|
-
* @param file ID
|
|
41
|
+
* @param file ID of the file that was uploaded.
|
|
42
42
|
*/
|
|
43
43
|
SetUploadValue(file: UploadState): void;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Validates the control
|
|
46
46
|
*
|
|
47
47
|
* @param c Control
|
|
48
48
|
*/
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { SacUploadBase } from '../../common/baseuploadcontrol';
|
|
2
2
|
import { UploadState } from 'ngx-uploadx';
|
|
3
3
|
/**
|
|
4
|
-
* Upload
|
|
4
|
+
* Upload component for a single file
|
|
5
5
|
*/
|
|
6
6
|
export declare class SacUploadSingleCommon extends SacUploadBase<string> {
|
|
7
7
|
/**
|
|
8
|
-
* Label
|
|
8
|
+
* Label for Browse Button
|
|
9
9
|
*/
|
|
10
10
|
buttonbrowse: string;
|
|
11
11
|
/**
|
|
12
|
-
* Label
|
|
12
|
+
* Label for Upload Button
|
|
13
13
|
*/
|
|
14
14
|
buttonupload: string;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Does no validation in this control
|
|
17
17
|
*
|
|
18
|
-
* @param file File
|
|
18
|
+
* @param file File that was added
|
|
19
19
|
*/
|
|
20
20
|
CustomAddValidation(file: UploadState): boolean;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* Sets the file ID of the uploaded file into the model
|
|
23
23
|
*
|
|
24
|
-
* @param file ID
|
|
24
|
+
* @param file ID of the file
|
|
25
25
|
*/
|
|
26
26
|
SetUploadValue(file: UploadState): void;
|
|
27
27
|
/**
|
|
@@ -5,15 +5,15 @@ import { Injector } from '@angular/core';
|
|
|
5
5
|
import { FormGroup } from '@angular/forms';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Base component for SacValidationSummary
|
|
9
9
|
*/
|
|
10
10
|
export declare class SacValidationSummaryCommon {
|
|
11
11
|
/**
|
|
12
|
-
* Service
|
|
12
|
+
* Service for Error Localisation
|
|
13
13
|
*/
|
|
14
14
|
protected lngResourceService: ISacLocalisationService;
|
|
15
15
|
/**
|
|
16
|
-
* Parent
|
|
16
|
+
* Parent Form
|
|
17
17
|
*/
|
|
18
18
|
protected parent: SacFormCommon;
|
|
19
19
|
/**
|
|
@@ -39,26 +39,27 @@ export declare class SacValidationSummaryCommon {
|
|
|
39
39
|
*/
|
|
40
40
|
name: string;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
42
|
+
* Constructor
|
|
43
|
+
* @param parent Parent form control component
|
|
44
|
+
* @param injector Service injector for dependency resolution
|
|
44
45
|
*/
|
|
45
46
|
constructor(parent: SacFormCommon, injector: Injector);
|
|
46
47
|
/**
|
|
47
|
-
* Validation
|
|
48
|
+
* Validation method
|
|
48
49
|
*/
|
|
49
50
|
get formErrors(): Observable<string>[];
|
|
50
51
|
/**
|
|
51
|
-
* Getter
|
|
52
|
+
* Getter when errors occur
|
|
52
53
|
*/
|
|
53
54
|
get hasErrors(): boolean;
|
|
54
55
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @param ctl
|
|
57
|
-
* @param collection Collection
|
|
56
|
+
* Adds a validation error to the error collection
|
|
57
|
+
* @param ctl Faulty control
|
|
58
|
+
* @param collection Collection of all error messages
|
|
58
59
|
*/
|
|
59
60
|
private addErrorToCollection;
|
|
60
61
|
/**
|
|
61
|
-
*
|
|
62
|
+
* The method returns collection of errors. Requires controls: Array<NgForm | FormArray> and collection: Array<Observable<string>>
|
|
62
63
|
*/
|
|
63
64
|
private getErrorCollection;
|
|
64
65
|
}
|
|
@@ -2,41 +2,41 @@ import { SacWizardItemCommon } from './wizarditem';
|
|
|
2
2
|
import { AfterContentInit, EventEmitter, QueryList } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
/**
|
|
5
|
-
* Base
|
|
5
|
+
* Base component for SacWizardCommon
|
|
6
6
|
*/
|
|
7
7
|
export declare abstract class SacWizardCommon implements AfterContentInit, ControlValueAccessor {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Current step in wizard
|
|
10
10
|
*/
|
|
11
11
|
private _currentstep;
|
|
12
12
|
/**
|
|
13
|
-
* Boolean
|
|
13
|
+
* Boolean property checks if navigation in wizard is disabled; default value - false
|
|
14
14
|
*/
|
|
15
15
|
disablenavigation: boolean;
|
|
16
16
|
/**
|
|
17
|
-
* Name
|
|
17
|
+
* Name of the control
|
|
18
18
|
*/
|
|
19
19
|
name: string;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Empty implementation of 'propagateChange'. Must be done so that no error occurs
|
|
22
22
|
*/
|
|
23
23
|
propagateChange: any;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Empty implementation of 'propagateTouch'. Must be done so that no error occurs
|
|
26
26
|
*/
|
|
27
27
|
propagateTouch: any;
|
|
28
28
|
/**
|
|
29
|
-
* EventEmitter
|
|
29
|
+
* EventEmitter when the step is changed
|
|
30
30
|
*/
|
|
31
31
|
stepchanged: EventEmitter<string>;
|
|
32
32
|
get currentstep(): string | null;
|
|
33
33
|
/**
|
|
34
|
-
* Setter
|
|
34
|
+
* Setter and getter for current step
|
|
35
35
|
*/
|
|
36
36
|
set currentstep(v: string | null);
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
39
|
-
* @param step Step
|
|
38
|
+
* Go to next/previous step
|
|
39
|
+
* @param step Step to which should be switched
|
|
40
40
|
*/
|
|
41
41
|
changeStep(step: string | null): void;
|
|
42
42
|
/**
|
|
@@ -44,30 +44,37 @@ export declare abstract class SacWizardCommon implements AfterContentInit, Contr
|
|
|
44
44
|
*/
|
|
45
45
|
ngAfterContentInit(): void;
|
|
46
46
|
/**
|
|
47
|
-
*
|
|
48
|
-
*
|
|
47
|
+
* Method so that other controls can get changes in the control
|
|
48
|
+
* To change info call the propagateChange method.
|
|
49
|
+
* @param fn Callback to invoke when the value changes.
|
|
49
50
|
*/
|
|
50
51
|
registerOnChange(fn: any): void;
|
|
51
52
|
/**
|
|
52
|
-
*
|
|
53
|
+
* Method so that other controls get changes when the control is activated (Focus).
|
|
54
|
+
* @param fn Callback to invoke when the control is touched.
|
|
53
55
|
*/
|
|
54
56
|
registerOnTouched(fn: any): void;
|
|
55
57
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @param step Step
|
|
58
|
+
* Select step
|
|
59
|
+
* @param step Step which should be selected
|
|
58
60
|
*/
|
|
59
61
|
selectStep(step: SacWizardItemCommon): void;
|
|
60
62
|
/**
|
|
61
|
-
*
|
|
63
|
+
* Abstract QueryList of SacWizardItemCommon
|
|
62
64
|
*/
|
|
63
65
|
abstract wizardItems(): QueryList<SacWizardItemCommon>;
|
|
64
66
|
/**
|
|
65
|
-
*
|
|
67
|
+
* Method to write values from the model into the control
|
|
68
|
+
* @param value Step ID from the bound model.
|
|
66
69
|
*/
|
|
67
70
|
writeValue(value: string | null): void;
|
|
68
71
|
/**
|
|
69
|
-
*
|
|
72
|
+
* Original step is selected
|
|
70
73
|
*/
|
|
71
74
|
private initSteps;
|
|
75
|
+
/**
|
|
76
|
+
* Sets the current step internally and notifies observers of the change
|
|
77
|
+
* @param step The step ID to set as current
|
|
78
|
+
*/
|
|
72
79
|
private setStepInternal;
|
|
73
80
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Base component for SacWizardItem
|
|
3
3
|
*/
|
|
4
4
|
export declare class SacWizardItemCommon {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* Checks if the current step is active.
|
|
7
7
|
*/
|
|
8
8
|
active: boolean;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Checks if the step is disabled.
|
|
11
11
|
*/
|
|
12
12
|
disabled: boolean;
|
|
13
13
|
/**
|
|
@@ -15,11 +15,11 @@ export declare class SacWizardItemCommon {
|
|
|
15
15
|
*/
|
|
16
16
|
id: string;
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Checks if the step was completed.
|
|
19
19
|
*/
|
|
20
20
|
iscomplete: boolean;
|
|
21
21
|
/**
|
|
22
|
-
* Label
|
|
22
|
+
* Label property that is displayed
|
|
23
23
|
*/
|
|
24
24
|
label: string;
|
|
25
25
|
}
|
|
@@ -1 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Available CSS role types for button styling. These values map to Bootstrap button style classes.
|
|
3
|
+
*/
|
|
4
|
+
export declare type BUTTONROLETYPE =
|
|
5
|
+
/** no specific role, uses default styling */
|
|
6
|
+
''
|
|
7
|
+
/** primary accent button */
|
|
8
|
+
| 'primary'
|
|
9
|
+
/** default button */
|
|
10
|
+
| 'default'
|
|
11
|
+
/** light variant */
|
|
12
|
+
| 'light'
|
|
13
|
+
/** dark variant */
|
|
14
|
+
| 'dark'
|
|
15
|
+
/** hyperlink-like variant */
|
|
16
|
+
| 'link'
|
|
17
|
+
/** success indicator style */
|
|
18
|
+
| 'success'
|
|
19
|
+
/** secondary button style */
|
|
20
|
+
| 'secondary'
|
|
21
|
+
/** danger/(error) style */
|
|
22
|
+
| 'danger'
|
|
23
|
+
/** warning style */
|
|
24
|
+
| 'warning'
|
|
25
|
+
/** info style */
|
|
26
|
+
| 'info';
|
package/enums/ControlHeight.d.ts
CHANGED
package/enums/IconType.d.ts
CHANGED