@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
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { SacFormLayoutCommon } from '../controls/layout/formlayout';
|
|
2
2
|
import { TooltipPosition } from '../utilities/enums';
|
|
3
3
|
import { SacBaseModelControl } from './basemodelcontrol';
|
|
4
|
-
import { ChangeDetectorRef,
|
|
4
|
+
import { ChangeDetectorRef, ElementRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
6
6
|
import { IMaskDirective } from 'angular-imask';
|
|
7
7
|
import * as moment_ from 'moment';
|
|
8
8
|
/**
|
|
9
|
-
* Base
|
|
9
|
+
* Base class for Date/Time controls
|
|
10
10
|
*/
|
|
11
|
-
export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl<Date> implements OnInit, OnDestroy
|
|
11
|
+
export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl<Date> implements OnInit, OnDestroy {
|
|
12
12
|
protected elementRef: ElementRef;
|
|
13
13
|
private readonly cdRef;
|
|
14
14
|
/**
|
|
15
|
-
* Helper class to display
|
|
15
|
+
* Helper class to display tooltips in the correct position
|
|
16
16
|
*/
|
|
17
17
|
private readonly popupHelper;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* This property contains the value as a string. Default is ''
|
|
20
20
|
*/
|
|
21
21
|
protected _valueAsString: string;
|
|
22
22
|
/**
|
|
@@ -28,7 +28,7 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
28
28
|
*/
|
|
29
29
|
TooltipPosition: typeof TooltipPosition;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Defines whether the date selector is displayed
|
|
32
32
|
*/
|
|
33
33
|
_showselector: boolean;
|
|
34
34
|
/**
|
|
@@ -36,7 +36,7 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
36
36
|
*/
|
|
37
37
|
iMask: IMaskDirective<any>;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Defines the control as required
|
|
40
40
|
*/
|
|
41
41
|
isrequired: boolean;
|
|
42
42
|
/**
|
|
@@ -47,6 +47,9 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
47
47
|
* Arrow Item of Picker Element. Required to set the position of arrow correctly
|
|
48
48
|
*/
|
|
49
49
|
pickerPosition: typeof TooltipPosition;
|
|
50
|
+
/**
|
|
51
|
+
* Reference to the picker arrow element used for calculating tooltip arrow position.
|
|
52
|
+
*/
|
|
50
53
|
pickerarrow: ElementRef<HTMLElement> | null;
|
|
51
54
|
/**
|
|
52
55
|
* Name of the container for content (e.g. icon) on which the tooltip is displayed.
|
|
@@ -79,43 +82,44 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
79
82
|
*/
|
|
80
83
|
position: string;
|
|
81
84
|
/**
|
|
82
|
-
* Resource Key
|
|
85
|
+
* Resource Key for Validation Message DateTimeFormat at Control
|
|
83
86
|
*/
|
|
84
87
|
validationmessagedatetimeformat: string;
|
|
85
88
|
/**
|
|
86
|
-
* Resource Key
|
|
89
|
+
* Resource Key for Validation Message DateTimeFormat in Validation Summary
|
|
87
90
|
*/
|
|
88
91
|
validationmessagedatetimeformatsummary: string;
|
|
89
92
|
/**
|
|
90
|
-
* Resource Key
|
|
93
|
+
* Resource Key for Validation Message Required at Control
|
|
91
94
|
*/
|
|
92
95
|
validationmessagerequired: string;
|
|
93
96
|
/**
|
|
94
|
-
* Resource Key
|
|
97
|
+
* Resource Key for Validation Message Required in Validation Summary
|
|
95
98
|
*/
|
|
96
99
|
validationmessagerequiredsummary: string;
|
|
97
100
|
/**
|
|
98
101
|
* Constructor
|
|
99
102
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
100
103
|
* @param injector Injector for injecting services
|
|
101
|
-
* @param elementRef
|
|
104
|
+
* @param elementRef Reference to html element
|
|
105
|
+
* @param cdRef Change detector reference for updating component view
|
|
102
106
|
*/
|
|
103
107
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef, cdRef: ChangeDetectorRef);
|
|
104
108
|
/**
|
|
105
|
-
* Setter for the name of the container for the tooltip.
|
|
109
|
+
* Setter for the name of the container for the tooltip. Required because the tooltip can be hidden via ngIf.
|
|
106
110
|
*/
|
|
107
111
|
set picker(picker: ElementRef);
|
|
108
112
|
get tooltop(): ElementRef;
|
|
109
113
|
/**
|
|
110
|
-
*
|
|
114
|
+
* Getter for valuestring
|
|
111
115
|
*/
|
|
112
116
|
get valuestring(): string;
|
|
113
117
|
/**
|
|
114
|
-
*
|
|
118
|
+
* The input receives the value of type string
|
|
115
119
|
*/
|
|
116
120
|
set valuestring(v: string);
|
|
117
121
|
/**
|
|
118
|
-
*
|
|
122
|
+
* The method returns dateTime as a string
|
|
119
123
|
*/
|
|
120
124
|
abstract GetDateTimeFormatString(): string;
|
|
121
125
|
/**
|
|
@@ -123,11 +127,13 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
123
127
|
*/
|
|
124
128
|
GetPickerPosition(): TooltipPosition;
|
|
125
129
|
/**
|
|
126
|
-
*
|
|
130
|
+
* The method modifies the entered value of type Moment
|
|
127
131
|
*/
|
|
128
132
|
abstract ModifyParsedDateTimeValue(v: moment_.Moment): moment_.Moment;
|
|
129
133
|
/**
|
|
130
|
-
* JSON
|
|
134
|
+
* Converts a JSON date string into a UTC DateTime object that can be used by the control
|
|
135
|
+
* @param timestamp Date timestamp to convert
|
|
136
|
+
* @returns Moment object in UTC
|
|
131
137
|
*/
|
|
132
138
|
getDate(timestamp: any): moment.Moment;
|
|
133
139
|
/**
|
|
@@ -138,25 +144,42 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
138
144
|
* Calculates the width of the picker
|
|
139
145
|
*/
|
|
140
146
|
getPickerWidth(): number;
|
|
141
|
-
|
|
147
|
+
/**
|
|
148
|
+
* Clean up resources when the control is destroyed.
|
|
149
|
+
*
|
|
150
|
+
* Removes the picker element from the DOM if visible and unregisters global resize/scroll listeners.
|
|
151
|
+
*/
|
|
142
152
|
ngOnDestroy(): void;
|
|
143
153
|
/**
|
|
144
154
|
* Init Event
|
|
145
155
|
*/
|
|
146
156
|
ngOnInit(): void;
|
|
147
157
|
/**
|
|
148
|
-
*
|
|
158
|
+
* Sets the value of type string to the property valuestring
|
|
159
|
+
* @param v String value to set
|
|
149
160
|
*/
|
|
150
161
|
setValueString(v: string): void;
|
|
151
162
|
/**
|
|
152
|
-
*
|
|
163
|
+
* Validates the datetime control value format and required status.
|
|
164
|
+
*
|
|
165
|
+
* @param c AbstractControl instance to validate.
|
|
166
|
+
* @returns ValidationErrors if invalid, otherwise null.
|
|
153
167
|
*/
|
|
154
168
|
validateData(c: AbstractControl): ValidationErrors | null;
|
|
155
169
|
/**
|
|
156
170
|
* Overwrite WriteValue to Set correct Date Object
|
|
171
|
+
* @param value Date or string value to write to the control
|
|
157
172
|
*/
|
|
158
173
|
writeValue(value: Date | string): void;
|
|
174
|
+
/**
|
|
175
|
+
* Gets the height of the arrow element
|
|
176
|
+
* @returns The height in pixels of the arrow element, or 0 if not present
|
|
177
|
+
*/
|
|
159
178
|
protected getArrowHeight(): number;
|
|
179
|
+
/**
|
|
180
|
+
* Gets the width of the arrow element
|
|
181
|
+
* @returns The width in pixels of the arrow element, or 0 if not present
|
|
182
|
+
*/
|
|
160
183
|
protected getArrowWidth(): number;
|
|
161
184
|
/**
|
|
162
185
|
* Calculates the position of the tooltip from links
|
|
@@ -170,5 +193,8 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
170
193
|
* method if content has changed and proportions need to be reset in the UI.
|
|
171
194
|
*/
|
|
172
195
|
private readonly onContentChange;
|
|
196
|
+
/**
|
|
197
|
+
* Sets the date-time format string from the configured format property
|
|
198
|
+
*/
|
|
173
199
|
private setDateTimeFormat;
|
|
174
200
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { SacBaseModelControl } from './basemodelcontrol';
|
|
2
2
|
/**
|
|
3
|
-
* Abstract
|
|
3
|
+
* Abstract class for SacInputBase. Extends SacBaseModelControl
|
|
4
4
|
*/
|
|
5
5
|
export declare abstract class SacInputBase<VALUE> extends SacBaseModelControl<VALUE> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Allowed characters for input
|
|
8
8
|
*/
|
|
9
9
|
allowedchars: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Enable or disable autofill
|
|
12
12
|
*/
|
|
13
13
|
disableautocomplete: boolean;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Defines the control as required
|
|
16
16
|
*/
|
|
17
17
|
isrequired: boolean;
|
|
18
18
|
/**
|
|
@@ -20,19 +20,21 @@ export declare abstract class SacInputBase<VALUE> extends SacBaseModelControl<VA
|
|
|
20
20
|
*/
|
|
21
21
|
placeholder: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Makes the input readonly
|
|
24
24
|
*/
|
|
25
25
|
readonly: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Defines the field as valid/invalid by entered regex pattern
|
|
28
28
|
*/
|
|
29
29
|
regexvalidation: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Method validates input when keypress event occurs
|
|
32
|
+
* @param event Keyboard event object
|
|
33
|
+
* @returns Boolean indicating whether the event should propagate
|
|
32
34
|
*/
|
|
33
35
|
onKeyPress(event: KeyboardEvent): Boolean;
|
|
34
36
|
/**
|
|
35
|
-
*
|
|
37
|
+
* Method validates when a keypress event occurs
|
|
36
38
|
*/
|
|
37
39
|
protected OnKeyPressValidation(position: number, character: string): boolean;
|
|
38
40
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
1
|
import { SacBaseModelControl } from './basemodelcontrol';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
3
|
/**
|
|
4
|
-
* Abstract
|
|
4
|
+
* Abstract class for SacBaseListControl. Extends SacBaseModelControl
|
|
5
5
|
*/
|
|
6
6
|
export declare abstract class SacBaseListControl<VALUE> extends SacBaseModelControl<VALUE> {
|
|
7
7
|
/**
|
|
@@ -9,35 +9,35 @@ export declare abstract class SacBaseListControl<VALUE> extends SacBaseModelCont
|
|
|
9
9
|
*/
|
|
10
10
|
_options: any[];
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Defines the control as required
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
isrequired: boolean;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Defines whether the option element is active
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
optionenabled: string;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Defines the label for the option element
|
|
21
21
|
*/
|
|
22
|
-
|
|
22
|
+
optionlabel: string;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Template for value element
|
|
25
25
|
*/
|
|
26
|
-
|
|
26
|
+
optionlabeltemplate: TemplateRef<any>;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Defines the value for the option element
|
|
29
29
|
*/
|
|
30
|
-
|
|
30
|
+
optionvalue: string;
|
|
31
31
|
/**
|
|
32
|
-
* Style
|
|
32
|
+
* Style width for list control element
|
|
33
33
|
*/
|
|
34
34
|
width: string;
|
|
35
35
|
/**
|
|
36
|
-
* Input property
|
|
36
|
+
* Input property for options
|
|
37
37
|
*/
|
|
38
38
|
get options(): any[];
|
|
39
39
|
/**
|
|
40
|
-
*
|
|
40
|
+
* Setter for options
|
|
41
41
|
*/
|
|
42
42
|
set options(val: any[]);
|
|
43
43
|
}
|
|
@@ -9,12 +9,12 @@ import { Injector, OnInit } from '@angular/core';
|
|
|
9
9
|
import { AbstractControl, ControlValueAccessor, FormControl, ValidationErrors, Validator } from '@angular/forms';
|
|
10
10
|
import { Observable } from 'rxjs';
|
|
11
11
|
/**
|
|
12
|
-
* Abstract
|
|
12
|
+
* Abstract class for SacBaseModelControl. Implements ControlValueAccessor, Validator, OnInit
|
|
13
13
|
*/
|
|
14
14
|
export declare abstract class SacBaseModelControl<VALUE> implements ControlValueAccessor, Validator, OnInit {
|
|
15
15
|
private readonly injector;
|
|
16
16
|
/**
|
|
17
|
-
* Inline
|
|
17
|
+
* Inline errors for the control
|
|
18
18
|
*/
|
|
19
19
|
private _inlineerrorenabled;
|
|
20
20
|
/**
|
|
@@ -26,11 +26,11 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
26
26
|
*/
|
|
27
27
|
protected readonly configurationService: ISacConfigurationService;
|
|
28
28
|
/**
|
|
29
|
-
* Boolean
|
|
29
|
+
* Boolean property dirty; default value - false
|
|
30
30
|
*/
|
|
31
31
|
protected _dirty: boolean;
|
|
32
32
|
/**
|
|
33
|
-
* SacModel
|
|
33
|
+
* SacModel form is disabled
|
|
34
34
|
*/
|
|
35
35
|
protected _disabledForm: boolean;
|
|
36
36
|
/**
|
|
@@ -38,11 +38,11 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
38
38
|
*/
|
|
39
39
|
protected _onChange: () => void;
|
|
40
40
|
/**
|
|
41
|
-
* Boolean
|
|
41
|
+
* Boolean property touched; default value - false
|
|
42
42
|
*/
|
|
43
43
|
protected _touched: boolean;
|
|
44
44
|
/**
|
|
45
|
-
*
|
|
45
|
+
* Internal variable that holds the value of the control
|
|
46
46
|
*/
|
|
47
47
|
protected _value: VALUE;
|
|
48
48
|
/**
|
|
@@ -54,7 +54,7 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
54
54
|
*/
|
|
55
55
|
protected iconService: ISacIconService;
|
|
56
56
|
/**
|
|
57
|
-
* Service
|
|
57
|
+
* Service for error localisation
|
|
58
58
|
*/
|
|
59
59
|
protected lngResourceService: ISacLocalisationService;
|
|
60
60
|
/**
|
|
@@ -70,11 +70,11 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
70
70
|
*/
|
|
71
71
|
componentHeight: ControlHeight | null;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* Disables the input control
|
|
74
74
|
*/
|
|
75
75
|
disabled: boolean;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Disables the label in the template
|
|
78
78
|
*/
|
|
79
79
|
disablelabel: boolean;
|
|
80
80
|
/**
|
|
@@ -94,9 +94,9 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
94
94
|
*/
|
|
95
95
|
inlineError: boolean;
|
|
96
96
|
/**
|
|
97
|
-
*
|
|
97
|
+
* Label Mode 'standard' | 'floating' or null (null = use global configuration)
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
labelMode: 'standard' | 'floating' | null;
|
|
100
100
|
/**
|
|
101
101
|
* default labe size for large devices
|
|
102
102
|
*/
|
|
@@ -122,15 +122,15 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
122
122
|
*/
|
|
123
123
|
labelSizeXxl: number | null;
|
|
124
124
|
/**
|
|
125
|
-
* Name
|
|
125
|
+
* Name of the control
|
|
126
126
|
*/
|
|
127
127
|
name: string;
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* Empty implementation of "propagateChange". Must be done to avoid errors
|
|
130
130
|
*/
|
|
131
131
|
propagateChange: any;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* Empty implementation of "propagateTouch". Must be done to avoid errors
|
|
134
134
|
*/
|
|
135
135
|
propagateTouch: any;
|
|
136
136
|
/**
|
|
@@ -152,7 +152,7 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
152
152
|
*/
|
|
153
153
|
get HelptextTooltipIcon(): string;
|
|
154
154
|
/**
|
|
155
|
-
*
|
|
155
|
+
* Method returns boolean value for dirty
|
|
156
156
|
*/
|
|
157
157
|
get dirty(): boolean;
|
|
158
158
|
/**
|
|
@@ -160,15 +160,15 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
160
160
|
*/
|
|
161
161
|
get inlineerrorenabled(): boolean | null;
|
|
162
162
|
/**
|
|
163
|
-
*
|
|
163
|
+
* Enables or disables the inline errors for the control
|
|
164
164
|
*/
|
|
165
165
|
set inlineerrorenabled(value: boolean | null);
|
|
166
166
|
/**
|
|
167
|
-
*
|
|
167
|
+
* Method returns a boolean value indicating whether the form is invalid
|
|
168
168
|
*/
|
|
169
169
|
get invalid(): boolean;
|
|
170
170
|
/**
|
|
171
|
-
*
|
|
171
|
+
* Defines whether the control is disabled
|
|
172
172
|
*/
|
|
173
173
|
get isdisabled(): boolean;
|
|
174
174
|
/**
|
|
@@ -176,32 +176,32 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
176
176
|
*/
|
|
177
177
|
get isinlineerrorenabled(): boolean;
|
|
178
178
|
/**
|
|
179
|
-
*
|
|
179
|
+
* Defines the label text
|
|
180
180
|
*/
|
|
181
181
|
get label(): string;
|
|
182
182
|
/**
|
|
183
|
-
*
|
|
183
|
+
* Sets the label text
|
|
184
184
|
*/
|
|
185
185
|
set label(v: string);
|
|
186
186
|
/**
|
|
187
|
-
*
|
|
187
|
+
* Returns an object with all label sizes. These values can then be transferred to corresponding CSS classes using a pipe
|
|
188
188
|
*/
|
|
189
189
|
get labelSizes(): ISacLabelSizes;
|
|
190
190
|
/**
|
|
191
|
-
*
|
|
191
|
+
* Method returns boolean value for touched
|
|
192
192
|
*/
|
|
193
193
|
get touched(): boolean;
|
|
194
194
|
/**
|
|
195
|
-
* Get
|
|
195
|
+
* Get method for NgModel binding in HTML markup
|
|
196
196
|
*/
|
|
197
197
|
get value(): VALUE;
|
|
198
198
|
/**
|
|
199
|
-
* Set
|
|
200
|
-
* Input
|
|
199
|
+
* Set method for NgModel binding in HTML markup
|
|
200
|
+
* Input is required so that the value can also be set via the markup.
|
|
201
201
|
*/
|
|
202
202
|
set value(v: VALUE);
|
|
203
203
|
/**
|
|
204
|
-
*
|
|
204
|
+
* Method returns error based on given criteria
|
|
205
205
|
*/
|
|
206
206
|
GetErrorMessage(): Observable<string>;
|
|
207
207
|
/**
|
|
@@ -209,50 +209,63 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
209
209
|
*/
|
|
210
210
|
ngOnInit(): void;
|
|
211
211
|
/**
|
|
212
|
-
*
|
|
212
|
+
* Method sets touched = true
|
|
213
213
|
*/
|
|
214
214
|
onTouch(): void;
|
|
215
215
|
/**
|
|
216
|
-
*
|
|
217
|
-
*
|
|
216
|
+
* Method so that other controls can be notified of changes in the control
|
|
217
|
+
* For change notification, call the propagateChange method.
|
|
218
|
+
* @param fn Callback function for change notification
|
|
218
219
|
*/
|
|
219
220
|
registerOnChange(fn: any): void;
|
|
220
221
|
/**
|
|
221
|
-
*
|
|
222
|
+
* Method so that other controls can be notified of changes when the control is activated (focus).
|
|
223
|
+
* @param fn Callback function for touch notification
|
|
222
224
|
*/
|
|
223
225
|
registerOnTouched(fn: any): void;
|
|
224
226
|
/**
|
|
225
|
-
*
|
|
227
|
+
* Method registers changes in validation
|
|
228
|
+
* @param fn Callback function for validator change notification
|
|
226
229
|
*/
|
|
227
230
|
registerOnValidatorChange(fn: () => void): void;
|
|
228
231
|
/**
|
|
229
|
-
*
|
|
232
|
+
* Sets the control to disabled
|
|
233
|
+
* @param isDisabled True to disable the control, false to enable it
|
|
230
234
|
*/
|
|
231
235
|
setDisabledState(isDisabled: boolean): void;
|
|
232
236
|
/**
|
|
233
|
-
*
|
|
237
|
+
* Method that sets the value of the input
|
|
238
|
+
* @param v The value to set
|
|
234
239
|
*/
|
|
235
240
|
setValue(v: VALUE): void;
|
|
236
241
|
/**
|
|
237
|
-
* Validator
|
|
242
|
+
* Validator method
|
|
243
|
+
* @param c Form control to validate
|
|
244
|
+
* @returns Validation errors or null if valid
|
|
238
245
|
*/
|
|
239
246
|
validate(c: AbstractControl): ValidationErrors | null;
|
|
240
247
|
/**
|
|
241
|
-
*
|
|
248
|
+
* Abstract validator method for form control value.
|
|
249
|
+
*
|
|
250
|
+
* Derived classes should check control value and return validation errors or null.
|
|
251
|
+
*
|
|
252
|
+
* @param c Form control being validated
|
|
253
|
+
* @returns ValidationErrors if invalid, otherwise null
|
|
242
254
|
*/
|
|
243
255
|
abstract validateData(c: AbstractControl): ValidationErrors | null;
|
|
244
256
|
/**
|
|
245
|
-
*
|
|
257
|
+
* Method for writing values from the model into the control
|
|
258
|
+
* @param value The value to write to the control
|
|
246
259
|
*/
|
|
247
260
|
writeValue(value: VALUE): void;
|
|
248
261
|
/**
|
|
249
|
-
* Method can
|
|
250
|
-
* @param value
|
|
251
|
-
* @returns
|
|
262
|
+
* Method can be overridden in parent classes
|
|
263
|
+
* @param value Value that should be converted to the correct type
|
|
264
|
+
* @returns Value in the correct type
|
|
252
265
|
*/
|
|
253
266
|
protected ConvertInputValue(value: VALUE): VALUE;
|
|
254
267
|
/**
|
|
255
|
-
*
|
|
268
|
+
* Method returns the decimal symbol
|
|
256
269
|
*/
|
|
257
270
|
protected GetDecimalSymbol(): string;
|
|
258
271
|
/**
|
|
@@ -260,7 +273,7 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
260
273
|
*/
|
|
261
274
|
protected OnClassInit(): void;
|
|
262
275
|
/**
|
|
263
|
-
*
|
|
276
|
+
* Updates the NgModel value and the validity of the control's validator
|
|
264
277
|
*/
|
|
265
278
|
protected UpdateValueAndValidity(): void;
|
|
266
279
|
private UpdateLabelToControl;
|
|
@@ -273,12 +286,15 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
273
286
|
*/
|
|
274
287
|
private setHelpTextMode;
|
|
275
288
|
/**
|
|
276
|
-
*
|
|
289
|
+
* Sets the label display mode from property or parent layout control
|
|
277
290
|
*/
|
|
278
|
-
private
|
|
291
|
+
private setLabelMode;
|
|
279
292
|
/**
|
|
280
293
|
* Set label sizes from property or parent layout control
|
|
281
294
|
*/
|
|
282
295
|
private setLabelSizes;
|
|
296
|
+
/**
|
|
297
|
+
* Sets the label split mode from property or parent layout control\n
|
|
298
|
+
**/
|
|
283
299
|
private setLabelSplitMode;
|
|
284
300
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { SacBaseListControl } from './baselistcontrol';
|
|
2
2
|
/**
|
|
3
|
-
* Abstract
|
|
3
|
+
* Abstract class for SacBaseSelectControl. Extends SacBaseListControl
|
|
4
4
|
*/
|
|
5
5
|
export declare abstract class SacBaseSelectControl<VALUE> extends SacBaseListControl<VALUE> {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Defines the collection of items in the group element
|
|
8
8
|
*/
|
|
9
|
-
|
|
9
|
+
groupitems: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Defines the label for the group element
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
grouplabel: string;
|
|
14
14
|
}
|