@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
|
@@ -5,16 +5,16 @@ import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
|
5
5
|
import * as IMask from 'imask';
|
|
6
6
|
import * as moment_ from 'moment';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Component for SacDateTimeCommon. Extends SacBaseDateTimeControl
|
|
9
9
|
*/
|
|
10
10
|
export declare abstract class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
11
11
|
protected elementRef: ElementRef;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Date format
|
|
14
14
|
*/
|
|
15
15
|
readonly DATEFORMAT: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Mask
|
|
18
18
|
*/
|
|
19
19
|
readonly imaskDate: {
|
|
20
20
|
mask: string;
|
|
@@ -55,11 +55,11 @@ export declare abstract class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
55
55
|
overwrite: boolean;
|
|
56
56
|
};
|
|
57
57
|
/**
|
|
58
|
-
*
|
|
58
|
+
* Maximum value of the date
|
|
59
59
|
*/
|
|
60
60
|
_maxdate: Date;
|
|
61
61
|
/**
|
|
62
|
-
*
|
|
62
|
+
* Minimum value of the date
|
|
63
63
|
*/
|
|
64
64
|
_mindate: Date;
|
|
65
65
|
/**
|
|
@@ -67,26 +67,27 @@ export declare abstract class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
67
67
|
*/
|
|
68
68
|
moment: any;
|
|
69
69
|
/**
|
|
70
|
-
* Resource
|
|
70
|
+
* Resource key for validation message MaxDate at control
|
|
71
71
|
*/
|
|
72
72
|
validationmessagemaxdate: string;
|
|
73
73
|
/**
|
|
74
|
-
* Resource
|
|
74
|
+
* Resource key for validation message MinDate at control
|
|
75
75
|
*/
|
|
76
76
|
validationmessagemindate: string;
|
|
77
77
|
/**
|
|
78
|
-
* Resource
|
|
78
|
+
* Resource key for validation message MaxDate in validation summary
|
|
79
79
|
*/
|
|
80
80
|
validationmessagesummarymaxdate: string;
|
|
81
81
|
/**
|
|
82
|
-
* Resource
|
|
82
|
+
* Resource key for validation message MinDate in validation summary
|
|
83
83
|
*/
|
|
84
84
|
validationmessagesummarymindate: string;
|
|
85
85
|
/**
|
|
86
86
|
* Constructor
|
|
87
87
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
88
88
|
* @param injector Injector for injecting services
|
|
89
|
-
* @param elementRef
|
|
89
|
+
* @param elementRef Reference to html element
|
|
90
|
+
* @param cdRef Change detector reference for updating component view
|
|
90
91
|
*/
|
|
91
92
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef, cdRef: ChangeDetectorRef);
|
|
92
93
|
/**
|
|
@@ -102,15 +103,15 @@ export declare abstract class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
102
103
|
*/
|
|
103
104
|
set mindate(v: string | Date | null);
|
|
104
105
|
/**
|
|
105
|
-
*
|
|
106
|
+
* Method returns date format from string
|
|
106
107
|
*/
|
|
107
108
|
GetDateTimeFormatString(): string;
|
|
108
109
|
/**
|
|
109
|
-
*
|
|
110
|
+
* Method modifies the parsed value of the date
|
|
110
111
|
*/
|
|
111
112
|
ModifyParsedDateTimeValue(v: moment_.Moment): moment_.Moment;
|
|
112
113
|
/**
|
|
113
|
-
*
|
|
114
|
+
* Method returns the selected date
|
|
114
115
|
*/
|
|
115
116
|
dateselect(v: any): void;
|
|
116
117
|
/**
|
|
@@ -118,7 +119,7 @@ export declare abstract class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
118
119
|
*/
|
|
119
120
|
onClick(targetElement: any): void;
|
|
120
121
|
/**
|
|
121
|
-
* DateSelector
|
|
122
|
+
* DateSelector is shown on click event
|
|
122
123
|
*/
|
|
123
124
|
showDateSelector(): void;
|
|
124
125
|
/**
|
|
@@ -5,16 +5,16 @@ import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
|
5
5
|
import * as IMask from 'imask';
|
|
6
6
|
import * as moment_ from 'moment';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Component for SacTimeCommon. Extends SacBaseDateTimeControl
|
|
9
9
|
*/
|
|
10
10
|
export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
11
11
|
protected elementRef: ElementRef;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Date format
|
|
14
14
|
*/
|
|
15
15
|
readonly TIMEFORMAT: string;
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
17
|
+
* Mask
|
|
18
18
|
*/
|
|
19
19
|
readonly imaskDate: {
|
|
20
20
|
mask: string;
|
|
@@ -50,26 +50,27 @@ export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
|
50
50
|
*/
|
|
51
51
|
moment: any;
|
|
52
52
|
/**
|
|
53
|
-
* Resource Key
|
|
53
|
+
* Resource Key for Validation Message MinTime at Control
|
|
54
54
|
*/
|
|
55
55
|
validationmessagemaxtime: string;
|
|
56
56
|
/**
|
|
57
|
-
* Resource Key
|
|
57
|
+
* Resource Key for Validation Message MinTime at Control
|
|
58
58
|
*/
|
|
59
59
|
validationmessagemintime: string;
|
|
60
60
|
/**
|
|
61
|
-
* Resource Key
|
|
61
|
+
* Resource Key for Validation Message MinTime in Validation Summary
|
|
62
62
|
*/
|
|
63
63
|
validationmessagesummarymaxtime: string;
|
|
64
64
|
/**
|
|
65
|
-
* Resource Key
|
|
65
|
+
* Resource Key for Validation Message MinTime in Validation Summary
|
|
66
66
|
*/
|
|
67
67
|
validationmessagesummarymintime: string;
|
|
68
68
|
/**
|
|
69
69
|
* Constructor
|
|
70
70
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
71
71
|
* @param injector Injector for injecting services
|
|
72
|
-
* @param elementRef
|
|
72
|
+
* @param elementRef Reference to html element
|
|
73
|
+
* @param cdRef Change detector reference for updating component view
|
|
73
74
|
*/
|
|
74
75
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef, cdRef: ChangeDetectorRef);
|
|
75
76
|
/**
|
|
@@ -85,11 +86,14 @@ export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
|
85
86
|
*/
|
|
86
87
|
set mintime(v: string | Date | null);
|
|
87
88
|
/**
|
|
88
|
-
*
|
|
89
|
+
* Method returns date format from string
|
|
89
90
|
*/
|
|
90
91
|
GetDateTimeFormatString(): string;
|
|
91
92
|
/**
|
|
92
|
-
*
|
|
93
|
+
* Normalizes a parsed moment date to a base timeline context (year 1900, month January, day 1).
|
|
94
|
+
*
|
|
95
|
+
* @param v Parsed moment object.
|
|
96
|
+
* @returns Normalized moment object for internal comparison and validation.
|
|
93
97
|
*/
|
|
94
98
|
ModifyParsedDateTimeValue(v: moment_.Moment): moment_.Moment;
|
|
95
99
|
/**
|
|
@@ -97,15 +101,21 @@ export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
|
97
101
|
*/
|
|
98
102
|
onClick(targetElement: any): void;
|
|
99
103
|
/**
|
|
100
|
-
*
|
|
104
|
+
* Shows time selector
|
|
101
105
|
*/
|
|
102
106
|
showTimeSelector(): void;
|
|
103
107
|
/**
|
|
104
108
|
* Time Selector
|
|
109
|
+
* @param v Selected time value object
|
|
105
110
|
*/
|
|
106
111
|
timeselect(v: any): void;
|
|
107
112
|
/**
|
|
108
|
-
*
|
|
113
|
+
* Validates the input control value against min/max time constraints.
|
|
114
|
+
*
|
|
115
|
+
* Delegates to base validation and applies minTime/maxTime validations when applicable.
|
|
116
|
+
*
|
|
117
|
+
* @param c AbstractControl instance to validate.
|
|
118
|
+
* @returns ValidationErrors object when invalid, otherwise null.
|
|
109
119
|
*/
|
|
110
120
|
validateData(c: AbstractControl): ValidationErrors | null;
|
|
111
121
|
}
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
* Base
|
|
3
|
+
* Base component for Dialog
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacDialogCommon implements OnDestroy {
|
|
6
6
|
private cdRef;
|
|
7
7
|
private hasSetBodyTag;
|
|
8
8
|
/**
|
|
9
|
-
* Boolean
|
|
9
|
+
* Boolean property defines whether the dialog is shown
|
|
10
10
|
*/
|
|
11
11
|
_show: boolean;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
*
|
|
13
|
+
* This property contains (if set) either keywords for sizing or custom CSS classes.
|
|
14
|
+
* The acceptable keywords are: 'small', 'large', 'extralarge', 'medium', ''.
|
|
15
15
|
*/
|
|
16
16
|
_size: 'small' | 'large' | 'extralarge' | 'medium' | '';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* The input property accepts a boolean value. Defines whether the dialog can be closed by ESC. Default is true.
|
|
19
19
|
*/
|
|
20
20
|
allowesc: boolean;
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
22
|
+
* The input property accepts a boolean value. Defines whether the dialog can be closed by clicking outside the dialog window. Default is true.
|
|
23
23
|
*/
|
|
24
24
|
backdrop: boolean;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Controls whether a button is displayed in the header of the dialog.
|
|
27
27
|
*/
|
|
28
28
|
closebutton: boolean;
|
|
29
29
|
/**
|
|
30
|
-
* Name
|
|
30
|
+
* Name of the container for the dialog
|
|
31
31
|
*/
|
|
32
32
|
dialogElement: ElementRef;
|
|
33
33
|
/**
|
|
@@ -35,7 +35,11 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
35
35
|
*/
|
|
36
36
|
e2eidentifier: string | null;
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* If enabled dialog is closed if user click outside of the dialog
|
|
39
|
+
*/
|
|
40
|
+
hideoutofdialog: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Output emitter. Called when the value of the _show property changes - so the dialog is opened/closed.
|
|
39
43
|
*/
|
|
40
44
|
isvisibleChange: EventEmitter<boolean>;
|
|
41
45
|
/**
|
|
@@ -43,31 +47,31 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
43
47
|
*/
|
|
44
48
|
name: string;
|
|
45
49
|
/**
|
|
46
|
-
* Input
|
|
50
|
+
* Input property. Receives the title of the dialog. Default value: 'Dialog'.
|
|
47
51
|
*/
|
|
48
52
|
title: string;
|
|
49
53
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
54
|
+
* Creates the dialog control.
|
|
55
|
+
* @param cdRef Change detector used to trigger updates.
|
|
52
56
|
*/
|
|
53
57
|
constructor(cdRef: ChangeDetectorRef);
|
|
54
58
|
/**
|
|
55
|
-
* Implementation
|
|
59
|
+
* Implementation as setter, because with ngIf the element is UNDEFINED when invisible.
|
|
56
60
|
*/
|
|
57
61
|
set dialogElementSetter(content: ElementRef);
|
|
58
62
|
/**
|
|
59
|
-
* Getter.
|
|
63
|
+
* Getter. Returns the boolean value of the _show property
|
|
60
64
|
*/
|
|
61
65
|
get isvisible(): boolean;
|
|
62
66
|
/**
|
|
63
|
-
* Setter.
|
|
67
|
+
* Setter. Receives the boolean value of the _show property
|
|
64
68
|
*/
|
|
65
69
|
set isvisible(v: boolean);
|
|
66
70
|
/**
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
+
* The input accepts both default size CSS classes and custom classes.
|
|
72
|
+
* Case insensitive.
|
|
73
|
+
* The acceptable default size classes are: 'small', 'large', 'extralarge', 'medium', ''.
|
|
74
|
+
* If size is NOT set (or 'medium' or ''), default is medium size: max-width 500px.
|
|
71
75
|
*/
|
|
72
76
|
set size(v: 'small' | 'large' | 'extralarge' | 'medium' | '');
|
|
73
77
|
/**
|
|
@@ -75,23 +79,25 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
75
79
|
*/
|
|
76
80
|
protected get ChangeDetector(): ChangeDetectorRef;
|
|
77
81
|
/**
|
|
78
|
-
*
|
|
82
|
+
* The method sets the value of the _show property to false
|
|
79
83
|
*/
|
|
80
84
|
hide(): void;
|
|
81
85
|
/**
|
|
82
|
-
*
|
|
86
|
+
* Method called when the component is destroyed
|
|
83
87
|
*/
|
|
84
88
|
ngOnDestroy(): void;
|
|
85
89
|
/**
|
|
86
90
|
* Allow Close by Click outside Dialog
|
|
91
|
+
* @param event Click event object
|
|
87
92
|
*/
|
|
88
93
|
onClick(event: any): void;
|
|
89
94
|
/**
|
|
90
95
|
* Allow Close by ESC
|
|
96
|
+
* @param event Keyboard event object
|
|
91
97
|
*/
|
|
92
98
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
93
99
|
/**
|
|
94
|
-
*
|
|
100
|
+
* The method sets the value of the _show property to true
|
|
95
101
|
*/
|
|
96
102
|
show(): void;
|
|
97
103
|
}
|
package/controls/form/form.d.ts
CHANGED
|
@@ -1,43 +1,48 @@
|
|
|
1
1
|
import { NgForm } from '@angular/forms';
|
|
2
2
|
/**
|
|
3
|
-
* Base
|
|
3
|
+
* Base component for SacForm
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacFormCommon {
|
|
6
6
|
private form;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Default value for when values are updated via NgModel
|
|
9
9
|
*/
|
|
10
10
|
private _updateon;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
13
|
-
* @param form
|
|
12
|
+
* Constructor
|
|
13
|
+
* @param form Instance of NgForm
|
|
14
14
|
*/
|
|
15
15
|
constructor(form: NgForm);
|
|
16
|
+
/**
|
|
17
|
+
* Returns the update strategy used by the form.
|
|
18
|
+
*/
|
|
16
19
|
get updateon(): FormHooks;
|
|
17
20
|
/**
|
|
18
|
-
*
|
|
21
|
+
* Defines when the model is updated
|
|
19
22
|
*/
|
|
20
23
|
set updateon(v: FormHooks);
|
|
21
24
|
/**
|
|
22
|
-
*
|
|
25
|
+
* Returns the NgForm instance
|
|
26
|
+
* @returns The NgForm instance
|
|
23
27
|
*/
|
|
24
28
|
getForm(): NgForm;
|
|
25
29
|
/**
|
|
26
|
-
*
|
|
30
|
+
* Marks all controls within the form as touched
|
|
27
31
|
*/
|
|
28
32
|
markAsTouched(): void;
|
|
29
33
|
/**
|
|
30
|
-
*
|
|
34
|
+
* Updates the values and validity status of the form
|
|
35
|
+
* @param markAsTouched If true, all controls are marked as touched after validation update.
|
|
31
36
|
*/
|
|
32
37
|
updateValueAndValidity(markAsTouched?: boolean): void;
|
|
33
38
|
/**
|
|
34
|
-
*
|
|
35
|
-
* @param controls Controls
|
|
39
|
+
* Marks all controls including the tree as touched
|
|
40
|
+
* @param controls Controls collection
|
|
36
41
|
*/
|
|
37
42
|
private markAsTouchedInternal;
|
|
38
43
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param controls Controls
|
|
44
|
+
* Updates the values and validity of the form
|
|
45
|
+
* @param controls Controls collection
|
|
41
46
|
*/
|
|
42
47
|
private updateValueAndValidityInternal;
|
|
43
48
|
}
|
package/controls/grid/grid.d.ts
CHANGED
|
@@ -6,11 +6,14 @@ import { ElementRef, Injector } from '@angular/core';
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class SacGridColumnCommon extends SacGridColumnBaseCommon {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Defines whether the CSS class ellipsis is set.
|
|
10
10
|
*/
|
|
11
11
|
private _ellipsis;
|
|
12
12
|
/**
|
|
13
13
|
* Constructor
|
|
14
|
+
* @param grid Reference to parent grid component
|
|
15
|
+
* @param injector Service injector for dependency resolution
|
|
16
|
+
* @param el Reference to host element
|
|
14
17
|
*/
|
|
15
18
|
constructor(grid: SacGridCommon, injector: Injector, el: ElementRef);
|
|
16
19
|
/**
|
|
@@ -23,6 +26,7 @@ export declare class SacGridColumnCommon extends SacGridColumnBaseCommon {
|
|
|
23
26
|
set ellipsis(v: string | boolean);
|
|
24
27
|
/**
|
|
25
28
|
* Checks whether ellipsis is set
|
|
29
|
+
* @returns Boolean indicating whether ellipsis is set
|
|
26
30
|
*/
|
|
27
31
|
IsEllipsis(): boolean;
|
|
28
32
|
}
|
|
@@ -8,7 +8,7 @@ export declare class SacGridColumnActionCommon extends SacGridColumnBaseCommon {
|
|
|
8
8
|
/**
|
|
9
9
|
* Constructor
|
|
10
10
|
* @param el Element reference
|
|
11
|
-
* @param injector
|
|
11
|
+
* @param injector DI injector to resolve icon service
|
|
12
12
|
* @param grid SacGridCommon
|
|
13
13
|
*/
|
|
14
14
|
constructor(grid: SacGridCommon, injector: Injector, el: ElementRef);
|
|
@@ -58,9 +58,9 @@ export declare class SacGridColumnBaseCommon implements OnInit, OnDestroy {
|
|
|
58
58
|
width: string;
|
|
59
59
|
/**
|
|
60
60
|
* Constructor
|
|
61
|
-
* @param grid
|
|
62
|
-
* @param injector
|
|
63
|
-
* @param el
|
|
61
|
+
* @param grid Reference to grid component
|
|
62
|
+
* @param injector DI injector to resolve icon service
|
|
63
|
+
* @param el Reference to HTML element
|
|
64
64
|
*/
|
|
65
65
|
constructor(grid: SacGridCommon, injector: Injector, el: ElementRef);
|
|
66
66
|
/**
|
|
@@ -77,22 +77,27 @@ export declare class SacGridColumnBaseCommon implements OnInit, OnDestroy {
|
|
|
77
77
|
ColumnClick(): void;
|
|
78
78
|
/**
|
|
79
79
|
* Indicates the direction of sorting. The possible values are `none`,`asc`,`desc`
|
|
80
|
+
* @returns The sort direction as string (none, asc, or desc)
|
|
80
81
|
*/
|
|
81
82
|
GetSortDirection(): string;
|
|
82
83
|
/**
|
|
83
84
|
* Defines whether the element is a cell in the table.
|
|
85
|
+
* @returns Boolean indicating if element is in table body
|
|
84
86
|
*/
|
|
85
87
|
IsBody(): boolean;
|
|
86
88
|
/**
|
|
87
89
|
* Defines whether the element is a cell in the footer of the table
|
|
90
|
+
* @returns Boolean indicating if element is in table footer
|
|
88
91
|
*/
|
|
89
92
|
IsFooter(): boolean;
|
|
90
93
|
/**
|
|
91
94
|
* Defines whether the element is a cell in the table header
|
|
95
|
+
* @returns Boolean indicating if element is in table header
|
|
92
96
|
*/
|
|
93
97
|
IsHeader(): boolean;
|
|
94
98
|
/**
|
|
95
99
|
* Defines whether this column is sorted.
|
|
100
|
+
* @returns Boolean indicating if column is sorted
|
|
96
101
|
*/
|
|
97
102
|
IsSortedColumn(): boolean;
|
|
98
103
|
/**
|
package/controls/grid/model.d.ts
CHANGED
|
@@ -18,13 +18,16 @@ export declare enum SortOrder {
|
|
|
18
18
|
*/
|
|
19
19
|
Descending = 2
|
|
20
20
|
}
|
|
21
|
+
/**
|
|
22
|
+
* Carries grid data payload along with total record count for pagination.
|
|
23
|
+
*/
|
|
21
24
|
export declare class GridResponse<T> {
|
|
22
25
|
/**
|
|
23
|
-
* Data
|
|
26
|
+
* Data array for the current page.
|
|
24
27
|
*/
|
|
25
28
|
Data: T[];
|
|
26
29
|
/**
|
|
27
|
-
* Total number of data
|
|
30
|
+
* Total number of records available from the data source.
|
|
28
31
|
*/
|
|
29
32
|
TotalRowCount: number;
|
|
30
33
|
}
|
|
@@ -74,8 +74,7 @@ export declare abstract class SacPagingCommon {
|
|
|
74
74
|
pagingtext: string;
|
|
75
75
|
/**
|
|
76
76
|
* Constructor
|
|
77
|
-
* @
|
|
78
|
-
* @injector Injector
|
|
77
|
+
* @param injector Service injector for dependency resolution
|
|
79
78
|
*/
|
|
80
79
|
constructor(injector: Injector);
|
|
81
80
|
/**
|
|
@@ -105,7 +104,7 @@ export declare abstract class SacPagingCommon {
|
|
|
105
104
|
*/
|
|
106
105
|
changePageSize(newSize: number): void;
|
|
107
106
|
/**
|
|
108
|
-
*Switch to 1st page
|
|
107
|
+
* Switch to 1st page
|
|
109
108
|
*/
|
|
110
109
|
firstPage(): void;
|
|
111
110
|
/**
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { SacInputBase } from '../../common/baseinputcontrol';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Base component for SacInput
|
|
5
5
|
*/
|
|
6
6
|
export declare class SacInputCommon extends SacInputBase<string> {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Define fixed width for the control.
|
|
9
9
|
*/
|
|
10
10
|
controlwidth: string;
|
|
11
11
|
/**
|
|
@@ -13,23 +13,23 @@ export declare class SacInputCommon extends SacInputBase<string> {
|
|
|
13
13
|
*/
|
|
14
14
|
maxtextlength: number;
|
|
15
15
|
/**
|
|
16
|
-
* Resource
|
|
16
|
+
* Resource key for validation message pattern at control
|
|
17
17
|
*/
|
|
18
18
|
validationmessagepattern: string;
|
|
19
19
|
/**
|
|
20
|
-
* Resource
|
|
20
|
+
* Resource key for validation message required at control
|
|
21
21
|
*/
|
|
22
22
|
validationmessagerequired: string;
|
|
23
23
|
/**
|
|
24
|
-
* Resource
|
|
24
|
+
* Resource key for validation message pattern in validation summary
|
|
25
25
|
*/
|
|
26
26
|
validationmessagesummarypattern: string;
|
|
27
27
|
/**
|
|
28
|
-
* Resource
|
|
28
|
+
* Resource key for validation message required in validation summary
|
|
29
29
|
*/
|
|
30
30
|
validationmessagesummaryrequired: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Method validates whether the value meets the given criteria
|
|
33
33
|
*/
|
|
34
34
|
validateData(c: AbstractControl): ValidationErrors | null;
|
|
35
35
|
}
|
|
@@ -1,26 +1,28 @@
|
|
|
1
1
|
import { SacInputCommon } from './input';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Base component for SacInputArea
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacInputAreaCommon extends SacInputCommon {
|
|
6
6
|
/**
|
|
7
|
-
* Property
|
|
7
|
+
* Property where custom CSS classes can be defined on the form control.
|
|
8
8
|
*/
|
|
9
9
|
customcssclass: string;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
11
|
+
* Defines the height of the textarea box. Normally empty, as height can also be set via rows.
|
|
12
12
|
*/
|
|
13
13
|
height: string;
|
|
14
14
|
/**
|
|
15
|
-
*
|
|
15
|
+
* Defines the number of rows for the textarea box.
|
|
16
16
|
*/
|
|
17
17
|
rows: number;
|
|
18
18
|
/**
|
|
19
|
-
* Getter
|
|
19
|
+
* Getter for the length of the input
|
|
20
20
|
*/
|
|
21
21
|
get _currentLength(): number;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* Method returns 'true' when a key is pressed and maxtextlength is not defined
|
|
24
|
+
* @param event The keyboard event
|
|
25
|
+
* @returns Boolean indicating whether the key press is allowed (undefined if maxtextlength is not defined)
|
|
24
26
|
*/
|
|
25
27
|
onKeyPress(event: KeyboardEvent): Boolean;
|
|
26
28
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { SacInputDecimalCommon } from './inputdecimal';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Base component for SacInputCurrency
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacInputCurrencyCommon extends SacInputDecimalCommon {
|
|
6
|
+
/**
|
|
7
|
+
* Currency symbol or code used by the input control. If empty, it falls back to configured default.
|
|
8
|
+
*/
|
|
6
9
|
currency: string;
|
|
7
10
|
/**
|
|
8
11
|
* Set currency during initialization if no value is defined.
|