@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,158 +1,141 @@
|
|
|
1
1
|
import { LanguageModel } from '../models/languagemodel';
|
|
2
2
|
import { ValidatorFn } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Class with standard validators
|
|
5
5
|
*/
|
|
6
6
|
export declare class Validation {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param errorType
|
|
8
|
+
* This method is called by every validator. It sets both the errorType of the validated item and the ErrorMessage (according to errorType, FieldName and Parameters).
|
|
9
|
+
* @param errorType Type of the error
|
|
10
10
|
* @param errorMessageKey Error Message Key
|
|
11
|
-
* @param errorMessageValidationSummaryKey Error Message Key
|
|
12
|
-
* @param fieldName
|
|
13
|
-
* @param parameters
|
|
11
|
+
* @param errorMessageValidationSummaryKey Error Message Key for Validation Summary
|
|
12
|
+
* @param fieldName Label or name of the field
|
|
13
|
+
* @param parameters Parameters that can be used as placeholders in messages
|
|
14
14
|
*/
|
|
15
15
|
static GetValidationErrorItem(errorType: string, errorMessageKey: string, errorMessageValidationSummaryKey: string, fieldName?: string, parameters?: Map<string, any>): any;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @param
|
|
19
|
-
* @param
|
|
20
|
-
* @
|
|
21
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
17
|
+
* Validates field for email address
|
|
18
|
+
* @param validationMessage Validation message displayed at the control
|
|
19
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
20
|
+
* @returns ValidatorFn validator function
|
|
22
21
|
*/
|
|
23
22
|
static email(validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
24
23
|
/**
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
*/
|
|
24
|
+
* Validator validate if value is the requiredValue
|
|
25
|
+
* @param requiredValue Value that control should have
|
|
26
|
+
* @param validationMessage Validation message near the control
|
|
27
|
+
* @param validationMessageSummary Validation message inside the validation summary
|
|
28
|
+
* @returns ValidatorFn validator function
|
|
29
|
+
*/
|
|
33
30
|
static equals(requiredValue: any, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
34
31
|
/**
|
|
35
|
-
* Validator
|
|
36
|
-
* @param
|
|
37
|
-
* @param
|
|
38
|
-
* @
|
|
39
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
32
|
+
* Validator that checks if the value is a date.
|
|
33
|
+
* @param validationMessage Validation message displayed at the control
|
|
34
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
35
|
+
* @returns ValidatorFn validator function
|
|
40
36
|
*/
|
|
41
37
|
static isValidDate(validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
42
38
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @param
|
|
45
|
-
* @param
|
|
46
|
-
* @param
|
|
47
|
-
* @
|
|
48
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
39
|
+
* Validates if the date is older than maxDate
|
|
40
|
+
* @param maxDate Maximum date allowed
|
|
41
|
+
* @param validationMessage Validation message displayed at the control
|
|
42
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
43
|
+
* @returns ValidatorFn validator function
|
|
49
44
|
*/
|
|
50
45
|
static maxDate(maxDate: Date, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
51
46
|
/**
|
|
52
|
-
*
|
|
53
|
-
* @param
|
|
54
|
-
* @param
|
|
55
|
-
* @param
|
|
56
|
-
* @
|
|
57
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
47
|
+
* Validates if the time is earlier than maxTime.
|
|
48
|
+
* @param maxTime Maximum time allowed
|
|
49
|
+
* @param validationMessage Validation message displayed at the control
|
|
50
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
51
|
+
* @returns ValidatorFn validator function
|
|
58
52
|
*/
|
|
59
53
|
static maxTime(maxTime: Date, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
60
54
|
/**
|
|
61
|
-
* Validator
|
|
62
|
-
* @param
|
|
63
|
-
* @param
|
|
64
|
-
* @param
|
|
65
|
-
* @
|
|
66
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
55
|
+
* Validator for Max Value
|
|
56
|
+
* @param maxvalue Maximum value allowed
|
|
57
|
+
* @param validationMessage Validation message displayed at the control
|
|
58
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
59
|
+
* @returns ValidatorFn validator function
|
|
67
60
|
*/
|
|
68
61
|
static maxValue(maxvalue: number, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
69
62
|
/**
|
|
70
|
-
*
|
|
71
|
-
* @param
|
|
72
|
-
* @param
|
|
73
|
-
* @param
|
|
74
|
-
* @
|
|
75
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
63
|
+
* Validates if the date is newer than minDate
|
|
64
|
+
* @param minDate Minimum date allowed
|
|
65
|
+
* @param validationMessage Validation message displayed at the control
|
|
66
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
67
|
+
* @returns ValidatorFn validator function
|
|
76
68
|
*/
|
|
77
69
|
static minDate(minDate: Date, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
78
70
|
/**
|
|
79
|
-
* Validator
|
|
80
|
-
* @param
|
|
81
|
-
* @param
|
|
82
|
-
* @param
|
|
83
|
-
* @
|
|
84
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
71
|
+
* Validator for min. number of uploads
|
|
72
|
+
* @param minFiles Minimum number of files that must be uploaded
|
|
73
|
+
* @param validationMessage Validation message displayed below the control
|
|
74
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
75
|
+
* @returns ValidatorFn validator function
|
|
85
76
|
*/
|
|
86
77
|
static minFiles(minFiles: number, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
87
78
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @param
|
|
90
|
-
* @param
|
|
91
|
-
* @param
|
|
92
|
-
* @
|
|
93
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
79
|
+
* Validates the length of the value in the control
|
|
80
|
+
* @param mintextlength Minimum length of the value
|
|
81
|
+
* @param validationMessage Validation message displayed at the control
|
|
82
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
83
|
+
* @returns ValidatorFn validator function
|
|
94
84
|
*/
|
|
95
85
|
static minTextLength(minlength: number, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
96
86
|
/**
|
|
97
|
-
*
|
|
98
|
-
* @param
|
|
99
|
-
* @param
|
|
100
|
-
* @param
|
|
101
|
-
* @
|
|
102
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
87
|
+
* Validates if the time is later than minTime.
|
|
88
|
+
* @param minTime Minimum time allowed
|
|
89
|
+
* @param validationMessage Validation message displayed at the control
|
|
90
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
91
|
+
* @returns ValidatorFn validator function
|
|
103
92
|
*/
|
|
104
93
|
static minTime(minTime: Date, validationMessage: string, validationMessageSummary: string): ValidatorFn;
|
|
105
94
|
/**
|
|
106
|
-
* Validator
|
|
107
|
-
* @param
|
|
108
|
-
* @param
|
|
109
|
-
* @param
|
|
110
|
-
* @
|
|
111
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
95
|
+
* Validator that checks if the value is greater than minValue.
|
|
96
|
+
* @param minvalue Minimum value allowed
|
|
97
|
+
* @param validationMessage Validation message displayed at the control
|
|
98
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
99
|
+
* @returns ValidatorFn validator function
|
|
112
100
|
*/
|
|
113
101
|
static minValue(minvalue: number, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
114
102
|
/**
|
|
115
|
-
* Validator
|
|
116
|
-
* @param
|
|
117
|
-
* @param
|
|
118
|
-
* @param
|
|
119
|
-
* @
|
|
120
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
103
|
+
* Validator for MultiLanguage Control that checks if a value has been entered in all languages
|
|
104
|
+
* @param languages Languages that can be captured in the control
|
|
105
|
+
* @param validationMessage Validation message displayed below the control
|
|
106
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
107
|
+
* @returns ValidatorFn validator function
|
|
121
108
|
*/
|
|
122
109
|
static multilanguageRequired(languages: LanguageModel[], validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
123
110
|
/**
|
|
124
|
-
* Validator
|
|
125
|
-
* @param
|
|
126
|
-
* @param
|
|
127
|
-
* @param
|
|
128
|
-
* @
|
|
129
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
111
|
+
* Validator for MultiLanguage Control that checks if at least one value has been entered
|
|
112
|
+
* @param languages Languages that can be captured in the control
|
|
113
|
+
* @param validationMessage Validation message displayed below the control
|
|
114
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
115
|
+
* @returns ValidatorFn validator function
|
|
130
116
|
*/
|
|
131
117
|
static multilanguageRequiredAny(languages: LanguageModel[], validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
132
118
|
/**
|
|
133
119
|
* Validator validate if value is not the invalidValue
|
|
134
|
-
* @param invalidValue Value that control
|
|
135
|
-
* @param
|
|
136
|
-
* @param
|
|
137
|
-
* @
|
|
138
|
-
* @param validationMessageSummary validation inside the validation summary
|
|
120
|
+
* @param invalidValue Value that control should not have
|
|
121
|
+
* @param validationMessage Validation message near the control
|
|
122
|
+
* @param validationMessageSummary Validation message inside the validation summary
|
|
123
|
+
* @returns ValidatorFn validator function
|
|
139
124
|
*/
|
|
140
125
|
static notequals(invalidValue: any, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
141
126
|
/**
|
|
142
|
-
*
|
|
143
|
-
* @param
|
|
144
|
-
* @param
|
|
145
|
-
* @param
|
|
146
|
-
* @
|
|
147
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
127
|
+
* Validation with a RegEx pattern
|
|
128
|
+
* @param pattern RegEx pattern that the value must match
|
|
129
|
+
* @param validationMessage Validation message displayed below the control
|
|
130
|
+
* @param validationMessageSummary Validation message displayed in the Validation Summary
|
|
131
|
+
* @returns ValidatorFn validator function
|
|
148
132
|
*/
|
|
149
133
|
static pattern(pattern: string, validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
150
134
|
/**
|
|
151
|
-
* Validator
|
|
152
|
-
* @
|
|
153
|
-
* @param
|
|
154
|
-
* @param
|
|
155
|
-
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
135
|
+
* Validator for Required State
|
|
136
|
+
* @returns ValidatorFn validator function
|
|
137
|
+
* @param validationMessage Validation message that
|
|
138
|
+
* @param validationMessageSummary Validation message that is displayed in the Validation Summary
|
|
156
139
|
*/
|
|
157
140
|
static required(validationMessage: string, validationMessageSummary: any): ValidatorFn;
|
|
158
141
|
}
|
|
@@ -1 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates a structured validation error object for validation result reporting.
|
|
3
|
+
*
|
|
4
|
+
* @param errorType Identifier for the validation error type (e.g. 'required', 'invalid').
|
|
5
|
+
* @param errorMessageKey Resource key used for the control-level error text.
|
|
6
|
+
* @param errorMessageValidationSummaryKey Resource key used for summary-level error text.
|
|
7
|
+
* @param parameters Optional placeholder parameters to replace in error messages.
|
|
8
|
+
* @returns The generated validation error object.
|
|
9
|
+
*/
|
|
1
10
|
export declare function CreateValidationError(errorType: string, errorMessageKey: string, errorMessageValidationSummaryKey: string, parameters?: Map<string, any>): any;
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Class for validation errors
|
|
3
3
|
* */
|
|
4
4
|
export declare class ValidationErrorItem {
|
|
5
|
-
/**
|
|
6
|
-
* Konstruktor
|
|
7
|
-
* @param errorType Type des Fehlers
|
|
8
|
-
* @param errorMessageKey Key für Fehlermeldung
|
|
9
|
-
* @param errorMessageSummaryKey Key für Fehlermeldung in Validation Summary
|
|
10
|
-
* @param fieldName Name des Labels oder Bezeichnung des Feldes
|
|
11
|
-
*/
|
|
12
|
-
constructor(errorType: string, errorMessageKey: string, errorMessageSummaryKey: string, fieldName?: string);
|
|
13
|
-
/**
|
|
14
|
-
* Typ den Fehler
|
|
15
|
-
*/
|
|
16
|
-
errorType: string;
|
|
17
5
|
/**
|
|
18
6
|
* Error Message Key
|
|
19
7
|
*/
|
|
20
8
|
errorMessageKey: string;
|
|
21
9
|
/**
|
|
22
|
-
* Error Message Key
|
|
10
|
+
* Error Message Key for Validation Summary
|
|
23
11
|
*/
|
|
24
12
|
errorMessageValidationSummaryKey: string;
|
|
25
13
|
/**
|
|
26
|
-
*
|
|
14
|
+
* Type of the error
|
|
15
|
+
*/
|
|
16
|
+
errorType: string;
|
|
17
|
+
/**
|
|
18
|
+
* Label or name of the field
|
|
27
19
|
*/
|
|
28
20
|
fieldName: string;
|
|
29
21
|
/**
|
|
30
|
-
* Map
|
|
22
|
+
* Map with parameters that can be used as placeholders in messages
|
|
31
23
|
*/
|
|
32
24
|
parameters: Map<string, any>;
|
|
25
|
+
/**
|
|
26
|
+
* Constructor
|
|
27
|
+
* @param errorType Type of the error
|
|
28
|
+
* @param errorMessageKey Key for error message
|
|
29
|
+
* @param errorMessageSummaryKey Key for error message in Validation Summary
|
|
30
|
+
* @param fieldName Name of the label or designation of the field
|
|
31
|
+
*/
|
|
32
|
+
constructor(errorType: string, errorMessageKey: string, errorMessageSummaryKey: string, fieldName?: string);
|
|
33
33
|
}
|