@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
|
@@ -6,23 +6,23 @@ import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
|
6
6
|
import { Injector } from '@angular/core';
|
|
7
7
|
import { AbstractControl } from '@angular/forms';
|
|
8
8
|
/**
|
|
9
|
-
* Base
|
|
9
|
+
* Base class for multi-language input control
|
|
10
10
|
*/
|
|
11
11
|
export declare class SacMultilanguageInputCommon extends SacInputBase<any> {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Languages for the control
|
|
14
14
|
*/
|
|
15
15
|
private languages;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Selected language of the control
|
|
18
18
|
*/
|
|
19
19
|
private selectedLanguage;
|
|
20
20
|
/**
|
|
21
|
-
* Service
|
|
21
|
+
* Service for error localisation
|
|
22
22
|
*/
|
|
23
23
|
protected lngLanguageService: ISacLanguageService;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Define fixed width for the control.
|
|
26
26
|
*/
|
|
27
27
|
controlwidth: string;
|
|
28
28
|
/**
|
|
@@ -30,23 +30,23 @@ export declare class SacMultilanguageInputCommon extends SacInputBase<any> {
|
|
|
30
30
|
*/
|
|
31
31
|
maxtextlength: number;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Activates validator that at least one language must be present
|
|
34
34
|
*/
|
|
35
35
|
requiredany: boolean;
|
|
36
36
|
/**
|
|
37
|
-
* Resource
|
|
37
|
+
* Resource key for validation message required at control
|
|
38
38
|
*/
|
|
39
39
|
validationmessagerequired: string;
|
|
40
40
|
/**
|
|
41
|
-
* Resource
|
|
41
|
+
* Resource key for validation message required any language at control
|
|
42
42
|
*/
|
|
43
43
|
validationmessagerequiredany: string;
|
|
44
44
|
/**
|
|
45
|
-
* Resource
|
|
45
|
+
* Resource key for validation message required in validation summary
|
|
46
46
|
*/
|
|
47
47
|
validationmessagesummaryrequired: string;
|
|
48
48
|
/**
|
|
49
|
-
* Resource
|
|
49
|
+
* Resource key for validation message required any language in validation summary
|
|
50
50
|
*/
|
|
51
51
|
validationmessagesummaryrequiredany: string;
|
|
52
52
|
/**
|
|
@@ -56,45 +56,45 @@ export declare class SacMultilanguageInputCommon extends SacInputBase<any> {
|
|
|
56
56
|
*/
|
|
57
57
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector);
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
59
|
+
* Returns the value for the currently selected language
|
|
60
60
|
*/
|
|
61
61
|
get LanguageValue(): string;
|
|
62
62
|
/**
|
|
63
|
-
* Collection
|
|
63
|
+
* Collection of languages
|
|
64
64
|
*/
|
|
65
65
|
get Languages(): LanguageModel[];
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Returns the icon of the selected language
|
|
68
68
|
*/
|
|
69
69
|
get SelectedIcon(): string;
|
|
70
70
|
/**
|
|
71
|
-
*
|
|
71
|
+
* Returns the icon type for the selected language
|
|
72
72
|
*/
|
|
73
73
|
get SelectedIconType(): IconType;
|
|
74
74
|
/**
|
|
75
|
-
*
|
|
76
|
-
* @returns
|
|
75
|
+
* Checks whether no value is defined in any language
|
|
76
|
+
* @returns True if an empty value is present
|
|
77
77
|
*/
|
|
78
78
|
IsAnyEmpty(): boolean;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
* @param sprache
|
|
82
|
-
* @returns
|
|
80
|
+
* Checks whether a value exists for a specific language.
|
|
81
|
+
* @param sprache Language in which the value should be checked
|
|
82
|
+
* @returns True if the value is present
|
|
83
83
|
*/
|
|
84
84
|
IsEmpty(sprache: LanguageModel): boolean;
|
|
85
85
|
/**
|
|
86
|
-
*
|
|
87
|
-
* @param language
|
|
86
|
+
* Selects the language
|
|
87
|
+
* @param language Language to select
|
|
88
88
|
*/
|
|
89
89
|
SelectLanguage(language: LanguageModel): void;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param value
|
|
91
|
+
* Sets the value for the currently selected language
|
|
92
|
+
* @param value Value to set
|
|
93
93
|
*/
|
|
94
94
|
SetLanguageValue(value: string): void;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @param c Control
|
|
96
|
+
* Method validates whether the value meets the given criteria
|
|
97
|
+
* @param c Control that is validated
|
|
98
98
|
*/
|
|
99
99
|
validateData(c: AbstractControl): {
|
|
100
100
|
[key: string]: any;
|
|
@@ -6,23 +6,23 @@ import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
|
6
6
|
import { Injector } from '@angular/core';
|
|
7
7
|
import { AbstractControl } from '@angular/forms';
|
|
8
8
|
/**
|
|
9
|
-
* Base
|
|
9
|
+
* Base class for multi-language textarea control
|
|
10
10
|
*/
|
|
11
11
|
export declare class SacMultilanguageInputAreaCommon extends SacInputBase<any> {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Languages for the control
|
|
14
14
|
*/
|
|
15
15
|
private languages;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Selected language of the control
|
|
18
18
|
*/
|
|
19
19
|
private selectedLanguage;
|
|
20
20
|
/**
|
|
21
|
-
* Service
|
|
21
|
+
* Service for error localisation
|
|
22
22
|
*/
|
|
23
23
|
protected lngLanguageService: ISacLanguageService;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* Define fixed width for the control.
|
|
26
26
|
*/
|
|
27
27
|
controlwidth: string;
|
|
28
28
|
/**
|
|
@@ -30,27 +30,27 @@ export declare class SacMultilanguageInputAreaCommon extends SacInputBase<any> {
|
|
|
30
30
|
*/
|
|
31
31
|
maxtextlength: number;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Activates validator that at least one language must be present
|
|
34
34
|
*/
|
|
35
35
|
requiredany: boolean;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Number of rows for the textarea
|
|
38
38
|
*/
|
|
39
39
|
rows: number;
|
|
40
40
|
/**
|
|
41
|
-
* Resource
|
|
41
|
+
* Resource key for the 'required' validation message at the control
|
|
42
42
|
*/
|
|
43
43
|
validationmessagerequired: string;
|
|
44
44
|
/**
|
|
45
|
-
* Resource
|
|
45
|
+
* Resource key for the 'required any language' validation message at the control
|
|
46
46
|
*/
|
|
47
47
|
validationmessagerequiredany: string;
|
|
48
48
|
/**
|
|
49
|
-
* Resource
|
|
49
|
+
* Resource key for the 'required' validation message in the validation summary
|
|
50
50
|
*/
|
|
51
51
|
validationmessagesummaryrequired: string;
|
|
52
52
|
/**
|
|
53
|
-
* Resource
|
|
53
|
+
* Resource key for the 'required any language' validation message in the validation summary
|
|
54
54
|
*/
|
|
55
55
|
validationmessagesummaryrequiredany: string;
|
|
56
56
|
/**
|
|
@@ -60,46 +60,46 @@ export declare class SacMultilanguageInputAreaCommon extends SacInputBase<any> {
|
|
|
60
60
|
*/
|
|
61
61
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector);
|
|
62
62
|
/**
|
|
63
|
-
* Getter
|
|
64
|
-
*
|
|
63
|
+
* Getter that returns the component value in the selected language. If no language is selected, an empty string is returned.
|
|
64
|
+
* If the component has no stored value, an empty string is returned
|
|
65
65
|
*/
|
|
66
66
|
get LanguageValue(): string;
|
|
67
67
|
/**
|
|
68
|
-
* Collection
|
|
68
|
+
* Collection of languages
|
|
69
69
|
*/
|
|
70
70
|
get Languages(): LanguageModel[];
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Returns the icon of the selected language
|
|
73
73
|
*/
|
|
74
74
|
get SelectedIcon(): string;
|
|
75
75
|
/**
|
|
76
|
-
*
|
|
76
|
+
* Returns the type of the icon for the selected language
|
|
77
77
|
*/
|
|
78
78
|
get SelectedIconType(): IconType;
|
|
79
79
|
/**
|
|
80
|
-
*
|
|
81
|
-
* @returns
|
|
80
|
+
* Checks whether the component has no value in any language.
|
|
81
|
+
* @returns True if an empty value is present
|
|
82
82
|
*/
|
|
83
83
|
IsAnyEmpty(): boolean;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
86
|
-
* @param sprache
|
|
87
|
-
* @returns
|
|
85
|
+
* Indicates whether a value is defined in a specific language
|
|
86
|
+
* @param sprache Language in which the value should be checked
|
|
87
|
+
* @returns True if the value is present
|
|
88
88
|
*/
|
|
89
89
|
IsEmpty(sprache: LanguageModel): boolean;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @param language
|
|
91
|
+
* Selects the component language
|
|
92
|
+
* @param language Language to select
|
|
93
93
|
*/
|
|
94
94
|
SelectLanguage(language: LanguageModel): void;
|
|
95
95
|
/**
|
|
96
|
-
*
|
|
97
|
-
* @param value
|
|
96
|
+
* Saves a value for the currently selected language
|
|
97
|
+
* @param value Value to store
|
|
98
98
|
*/
|
|
99
99
|
SetLanguageValue(value: string): void;
|
|
100
100
|
/**
|
|
101
|
-
*
|
|
102
|
-
* @param c
|
|
101
|
+
* Method validates whether the value meets the given criteria
|
|
102
|
+
* @param c Control that is validated
|
|
103
103
|
*/
|
|
104
104
|
validateData(c: AbstractControl): {
|
|
105
105
|
[key: string]: any;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SacBaseModelControl } from '../../common/basemodelcontrol';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
|
-
* Common
|
|
4
|
+
* Common control for form item container.
|
|
5
5
|
**/
|
|
6
6
|
export declare class SacStaticFormContainerCommon extends SacBaseModelControl<string> {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Defines the container as a required form item
|
|
9
9
|
*/
|
|
10
10
|
private _isrequired;
|
|
11
11
|
/**
|
|
@@ -17,19 +17,19 @@ export declare class SacStaticFormContainerCommon extends SacBaseModelControl<st
|
|
|
17
17
|
*/
|
|
18
18
|
isinvalid: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
20
|
+
* Defines the container as a required form item
|
|
21
21
|
*/
|
|
22
22
|
get isrequired(): boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
24
|
+
* Defines the container as a required form item
|
|
25
25
|
*/
|
|
26
26
|
set isrequired(v: boolean);
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Validation of the control
|
|
29
29
|
*
|
|
30
|
-
* @description
|
|
31
|
-
* @param c Control
|
|
32
|
-
* @returns
|
|
30
|
+
* @description Validation is not performed on the form container because there is no model binding.
|
|
31
|
+
* @param c Control to be validated
|
|
32
|
+
* @returns Error message from validation or null
|
|
33
33
|
*/
|
|
34
34
|
validateData(c: AbstractControl): ValidationErrors | null;
|
|
35
35
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { SacInputBase } from '../../common/baseinputcontrol';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
|
-
* Common
|
|
4
|
+
* Common class for static label control
|
|
5
5
|
**/
|
|
6
6
|
export declare class SacStaticLabelCommon extends SacInputBase<string> {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Allows HTML content in the display of the value
|
|
9
9
|
*/
|
|
10
10
|
allowhtml: boolean;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Validation of the control
|
|
13
13
|
*
|
|
14
|
-
* @param c Control
|
|
15
|
-
* @returns
|
|
14
|
+
* @param c Control to be validated
|
|
15
|
+
* @returns Error message from validation or null
|
|
16
16
|
*/
|
|
17
17
|
validateData(c: AbstractControl): ValidationErrors | null;
|
|
18
18
|
}
|
package/controls/tabs/tab.d.ts
CHANGED
|
@@ -39,11 +39,11 @@ export declare abstract class SacTabCommon implements AfterContentInit {
|
|
|
39
39
|
*/
|
|
40
40
|
selectTab(tab: SacTabItemCommon): void;
|
|
41
41
|
/**
|
|
42
|
-
* Array
|
|
42
|
+
* Array of TabItems
|
|
43
43
|
*/
|
|
44
44
|
abstract tabItems(): SacTabItemCommon[];
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Initialises the tabs
|
|
47
47
|
*/
|
|
48
48
|
private initTabs;
|
|
49
49
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import { TemplateRef } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* The base component for SacTabItem
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacTabItemCommon {
|
|
6
6
|
/**
|
|
7
|
-
* Boolean
|
|
7
|
+
* Boolean property checks if the tab is active
|
|
8
8
|
*/
|
|
9
9
|
active: boolean;
|
|
10
10
|
/**
|
|
11
|
-
* Boolean
|
|
11
|
+
* Boolean property checks if the tab is disabled
|
|
12
12
|
*/
|
|
13
13
|
disabled: boolean;
|
|
14
14
|
/**
|
|
15
|
-
* ID
|
|
15
|
+
* ID string
|
|
16
16
|
*/
|
|
17
17
|
id: string;
|
|
18
18
|
/**
|
|
19
|
-
* Label
|
|
19
|
+
* Label text of the control
|
|
20
20
|
*/
|
|
21
21
|
label: string;
|
|
22
22
|
/**
|
|
23
|
-
* ContentChild
|
|
23
|
+
* ContentChild decorator
|
|
24
24
|
*/
|
|
25
25
|
templateRef: TemplateRef<any>;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* The input property accepts a boolean value. Default is true. Defines whether the component should be hidden.
|
|
28
28
|
*/
|
|
29
29
|
unloadwhenhidden: boolean;
|
|
30
30
|
}
|
|
@@ -7,92 +7,92 @@ import { TinyMceInstance } from './tinymceinstance';
|
|
|
7
7
|
import { EventEmitter, Injector, NgZone } from '@angular/core';
|
|
8
8
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Base component for TinyMCE Editor
|
|
11
11
|
*/
|
|
12
12
|
export declare abstract class SacTinyMceCommon extends SacBaseModelControl<string> {
|
|
13
13
|
protected ngZone: NgZone;
|
|
14
14
|
/**
|
|
15
|
-
* Default
|
|
15
|
+
* Default config with standard values for TinyMCE
|
|
16
16
|
*/
|
|
17
17
|
private baseConfig;
|
|
18
18
|
/**
|
|
19
|
-
* TinyMCE
|
|
19
|
+
* TinyMCE config
|
|
20
20
|
*/
|
|
21
21
|
_config: any;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Allows deleting files in the file browser
|
|
24
24
|
*/
|
|
25
25
|
allowfiledelete: boolean;
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Allows renaming files in the file browser
|
|
28
28
|
*/
|
|
29
29
|
allowfilerename: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Allows uploading files in the file browser
|
|
32
32
|
*/
|
|
33
33
|
allowfileupload: boolean;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Allows creating a folder in the file browser
|
|
36
36
|
*/
|
|
37
37
|
allowfoldercreate: boolean;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Allows deleting a folder in the file browser
|
|
40
40
|
*/
|
|
41
41
|
allowfolderdelete: boolean;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Allows renaming a folder in the file browser
|
|
44
44
|
*/
|
|
45
45
|
allowfolderrename: boolean;
|
|
46
46
|
/**
|
|
47
|
-
* URL
|
|
47
|
+
* URL to file browser backend
|
|
48
48
|
*/
|
|
49
49
|
filebrowserapiurl: string;
|
|
50
50
|
/**
|
|
51
|
-
* File
|
|
51
|
+
* File extensions for links (Format: .xxx,.yyy,.eee)
|
|
52
52
|
*/
|
|
53
53
|
filetypesfiles: string;
|
|
54
54
|
/**
|
|
55
|
-
* File
|
|
55
|
+
* File extensions for images (Format: .xxx,.yyy,.eee)
|
|
56
56
|
*/
|
|
57
57
|
filetypesimages: string;
|
|
58
58
|
/**
|
|
59
|
-
* File
|
|
59
|
+
* File extensions for media (Format: .xxx,.yyy,.eee)
|
|
60
60
|
*/
|
|
61
61
|
filetypesvideo: string;
|
|
62
62
|
/**
|
|
63
|
-
*
|
|
63
|
+
* Height of the editor
|
|
64
64
|
*/
|
|
65
65
|
height: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* Defines the control as required
|
|
68
68
|
*/
|
|
69
69
|
isrequired: boolean;
|
|
70
70
|
/**
|
|
71
|
-
* Service
|
|
71
|
+
* Service for error localisation
|
|
72
72
|
*/
|
|
73
73
|
lngResourceService: ISacLocalisationService;
|
|
74
74
|
/**
|
|
75
|
-
* Event
|
|
75
|
+
* Event when save action is triggered in TinyMCE
|
|
76
76
|
*/
|
|
77
77
|
onsave: EventEmitter<string>;
|
|
78
78
|
/**
|
|
79
|
-
* Settings
|
|
79
|
+
* Settings instance for dialog
|
|
80
80
|
*/
|
|
81
81
|
selectDialogSettings: TinyMceDialogSettings;
|
|
82
82
|
/**
|
|
83
|
-
*
|
|
83
|
+
* The select dialog is displayed
|
|
84
84
|
*/
|
|
85
85
|
selectdialogvisible: boolean;
|
|
86
86
|
/**
|
|
87
|
-
*
|
|
87
|
+
* Instance on TinyMCE settings. Set by TinyMCE and needed for the dialog callback
|
|
88
88
|
*/
|
|
89
89
|
settings: TinyMceInstance;
|
|
90
90
|
/**
|
|
91
|
-
* Resource
|
|
91
|
+
* Resource key for validation message required at control
|
|
92
92
|
*/
|
|
93
93
|
validationmessagerequired: string;
|
|
94
94
|
/**
|
|
95
|
-
* Resource
|
|
95
|
+
* Resource key for validation message required in validation summary
|
|
96
96
|
*/
|
|
97
97
|
validationmessagesummaryrequired: string;
|
|
98
98
|
/**
|
|
@@ -103,11 +103,11 @@ export declare abstract class SacTinyMceCommon extends SacBaseModelControl<strin
|
|
|
103
103
|
*/
|
|
104
104
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector, ngZone: NgZone);
|
|
105
105
|
/**
|
|
106
|
-
* TinyMCE
|
|
106
|
+
* TinyMCE configuration
|
|
107
107
|
*/
|
|
108
108
|
get config(): any;
|
|
109
109
|
/**
|
|
110
|
-
* TinyMCE
|
|
110
|
+
* TinyMCE configuration
|
|
111
111
|
* @link https://www.tiny.cloud/docs/configure/
|
|
112
112
|
*/
|
|
113
113
|
set config(v: any);
|
|
@@ -116,7 +116,7 @@ export declare abstract class SacTinyMceCommon extends SacBaseModelControl<strin
|
|
|
116
116
|
*/
|
|
117
117
|
blur(): void;
|
|
118
118
|
/**
|
|
119
|
-
*
|
|
119
|
+
* Closes the file selection dialog
|
|
120
120
|
*/
|
|
121
121
|
closeSelectDialog(): void;
|
|
122
122
|
/**
|
|
@@ -124,30 +124,30 @@ export declare abstract class SacTinyMceCommon extends SacBaseModelControl<strin
|
|
|
124
124
|
*/
|
|
125
125
|
abstract overwriteDefaultSettings(): any;
|
|
126
126
|
/**
|
|
127
|
-
*
|
|
128
|
-
* @param content Content
|
|
127
|
+
* Triggers the save action
|
|
128
|
+
* @param content Content as string
|
|
129
129
|
*/
|
|
130
130
|
save(content: any): void;
|
|
131
131
|
/**
|
|
132
|
-
*
|
|
132
|
+
* Sets the result from the file selection dialog
|
|
133
133
|
*/
|
|
134
134
|
setSelectDialogResult(): void;
|
|
135
135
|
/**
|
|
136
|
-
*
|
|
137
|
-
* @param callback Callback
|
|
138
|
-
* @param value
|
|
139
|
-
* @param meta Meta
|
|
136
|
+
* Shows the file selection dialog
|
|
137
|
+
* @param callback Callback method which is called when the dialog is closed
|
|
138
|
+
* @param value Value from the file dialog
|
|
139
|
+
* @param meta Meta data for the file
|
|
140
140
|
*/
|
|
141
141
|
showSelectDialog(callback: any, value: string, meta: TinyMceDialogSettingsMeta): void;
|
|
142
142
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @param c Control
|
|
145
|
-
* @returns
|
|
143
|
+
* Validates the control
|
|
144
|
+
* @param c Control instance that is validated
|
|
145
|
+
* @returns Returns an error message or NULL
|
|
146
146
|
*/
|
|
147
147
|
validateData(c: AbstractControl): ValidationErrors;
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
150
|
-
* @returns
|
|
149
|
+
* Returns the TinyMCE settings that are generated from the properties of the Angular components
|
|
150
|
+
* @returns Object with settings
|
|
151
151
|
*/
|
|
152
152
|
private getDynamicSettings;
|
|
153
153
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { TinyMceDialogSettingsMeta } from './tinymcedialogsettingsmeta';
|
|
2
2
|
/**
|
|
3
|
-
* Settings
|
|
3
|
+
* Settings for TinyMCE dialog
|
|
4
4
|
*/
|
|
5
5
|
export declare class TinyMceDialogSettings {
|
|
6
6
|
/**
|
|
@@ -8,20 +8,20 @@ export declare class TinyMceDialogSettings {
|
|
|
8
8
|
*/
|
|
9
9
|
allowedtypes: string;
|
|
10
10
|
/**
|
|
11
|
-
* Callback
|
|
11
|
+
* Callback method for dialog
|
|
12
12
|
*/
|
|
13
13
|
callback: any;
|
|
14
14
|
/**
|
|
15
|
-
* Meta
|
|
15
|
+
* Meta data for dialog
|
|
16
16
|
*/
|
|
17
17
|
meta: TinyMceDialogSettingsMeta;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Value from dialog
|
|
20
20
|
*/
|
|
21
21
|
value: string;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param init
|
|
23
|
+
* Constructor
|
|
24
|
+
* @param init Initial values
|
|
25
25
|
*/
|
|
26
26
|
constructor(init?: Partial<TinyMceDialogSettings>);
|
|
27
27
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { SacTinyMceCommon } from './tinymce';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Interface for TinyMCE access to the Angular component
|
|
4
4
|
*/
|
|
5
5
|
export interface TinyMceInstance {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Instance of Angular component
|
|
8
8
|
*/
|
|
9
9
|
angular: SacTinyMceCommon;
|
|
10
10
|
}
|