@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
|
@@ -4,13 +4,13 @@ import { ISacValidationKeyService } from '../../interfaces/ISacValidationKeyServ
|
|
|
4
4
|
import { IConfirmComponent } from '../../interfaces/iconfirmcomponent';
|
|
5
5
|
import { ApplicationRef, ComponentFactory, ComponentRef, EventEmitter, Injector } from '@angular/core';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Base class for confirm service implementation
|
|
8
8
|
*/
|
|
9
9
|
export declare abstract class ServiceConfirmCommon {
|
|
10
10
|
private appRef;
|
|
11
11
|
private injector;
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Reference to the IConfirm instance.
|
|
14
14
|
*/
|
|
15
15
|
protected component: ComponentRef<IConfirmComponent>;
|
|
16
16
|
/**
|
|
@@ -18,7 +18,7 @@ export declare abstract class ServiceConfirmCommon {
|
|
|
18
18
|
*/
|
|
19
19
|
protected iconService: ISacIconService;
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Service for translating default text
|
|
22
22
|
*/
|
|
23
23
|
protected localisationService: ISacLocalisationService;
|
|
24
24
|
/**
|
|
@@ -26,38 +26,38 @@ export declare abstract class ServiceConfirmCommon {
|
|
|
26
26
|
*/
|
|
27
27
|
protected validationKeyService: ISacValidationKeyService;
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
30
|
-
* @param appRef ApplicationRef
|
|
31
|
-
* @param injector Injector
|
|
29
|
+
* Constructor
|
|
30
|
+
* @param appRef ApplicationRef to attach the dialog to the content
|
|
31
|
+
* @param injector Injector to create the instance
|
|
32
32
|
*/
|
|
33
33
|
constructor(appRef: ApplicationRef, injector: Injector);
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
35
|
+
* Hides the dialog
|
|
36
36
|
*/
|
|
37
37
|
protected CloseDialog(): void;
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
40
|
-
* @param instance
|
|
39
|
+
* Method to configure the confirm dialog component
|
|
40
|
+
* @param instance Instance of the IConfirmComponent component
|
|
41
41
|
*/
|
|
42
42
|
protected abstract ConfigureDialog(instance: IConfirmComponent): any;
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Internal method for the implementation of the confirm dialog. Controls feedback, creation, and display of the dialog
|
|
45
45
|
*/
|
|
46
46
|
protected Confirm(): EventEmitter<string>;
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Creates an instance for the dialog
|
|
49
49
|
*/
|
|
50
50
|
protected CreateInstance(): void;
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Removes the dialog instance
|
|
53
53
|
*/
|
|
54
54
|
protected DestroyInstance(): void;
|
|
55
55
|
/**
|
|
56
|
-
*
|
|
56
|
+
* Abstract method to create the component factory for the dialog
|
|
57
57
|
*/
|
|
58
58
|
protected abstract GetComponentFactory(): ComponentFactory<IConfirmComponent>;
|
|
59
59
|
/**
|
|
60
|
-
*
|
|
60
|
+
* Shows the dialog
|
|
61
61
|
*/
|
|
62
62
|
protected OpenDialog(): IConfirmComponent;
|
|
63
63
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ISacIconService } from '../../interfaces/ISacIconService';
|
|
2
|
-
import { PlacementArray } from '../../utilities/
|
|
2
|
+
import { PlacementArray } from '../../utilities/positionelements';
|
|
3
3
|
import { ISacContextmenuCommon } from './contextmenu.interface';
|
|
4
4
|
import { SacContextmenuItemCommon } from './contextmenuitem';
|
|
5
5
|
import { AfterContentInit, ElementRef, Injector, NgZone, OnDestroy, QueryList, Renderer2, TemplateRef } from '@angular/core';
|
|
6
6
|
/**
|
|
7
|
-
* Base
|
|
7
|
+
* Base context menu element. The logic was taken from NG-BOOTSTRAP.
|
|
8
8
|
*/
|
|
9
9
|
export declare class SacContextmenuCommon implements ISacContextmenuCommon, AfterContentInit, OnDestroy {
|
|
10
10
|
private readonly document;
|
|
@@ -12,19 +12,19 @@ export declare class SacContextmenuCommon implements ISacContextmenuCommon, Afte
|
|
|
12
12
|
private readonly elementRef;
|
|
13
13
|
private readonly renderer;
|
|
14
14
|
/**
|
|
15
|
-
* Button
|
|
15
|
+
* Button for open/close event
|
|
16
16
|
*/
|
|
17
17
|
private readonly _anchor;
|
|
18
18
|
/**
|
|
19
|
-
* Button
|
|
19
|
+
* Button for open/close event from template
|
|
20
20
|
*/
|
|
21
21
|
private readonly _anchorTemplate;
|
|
22
22
|
/**
|
|
23
|
-
* Container
|
|
23
|
+
* Container element for dropdown
|
|
24
24
|
*/
|
|
25
25
|
private readonly _menu;
|
|
26
26
|
/**
|
|
27
|
-
* Zone
|
|
27
|
+
* Zone subscription for positioning the element
|
|
28
28
|
*/
|
|
29
29
|
private readonly zoneSubscription;
|
|
30
30
|
/**
|
|
@@ -36,15 +36,15 @@ export declare class SacContextmenuCommon implements ISacContextmenuCommon, Afte
|
|
|
36
36
|
*/
|
|
37
37
|
protected iconService: ISacIconService;
|
|
38
38
|
/**
|
|
39
|
-
* Custom HTML
|
|
39
|
+
* Custom HTML template for dropdown button. Button must contain the marker "ngContextmenuAnchor" for the control to work correctly.
|
|
40
40
|
*/
|
|
41
41
|
buttontemplate: TemplateRef<any>;
|
|
42
42
|
/**
|
|
43
|
-
* Container
|
|
43
|
+
* Container to which the position is aligned. Currently only body is supported.
|
|
44
44
|
*/
|
|
45
45
|
container: null | 'body';
|
|
46
46
|
/**
|
|
47
|
-
* Extra CSS
|
|
47
|
+
* Extra CSS classes for the control
|
|
48
48
|
*/
|
|
49
49
|
cssclass: string;
|
|
50
50
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class SacContextmenuCommon implements ISacContextmenuCommon, Afte
|
|
|
52
52
|
*/
|
|
53
53
|
e2eidentifier: string | null;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* Defines whether the dropdown is open.
|
|
56
56
|
*/
|
|
57
57
|
isopen: boolean;
|
|
58
58
|
/**
|
|
@@ -78,51 +78,57 @@ export declare class SacContextmenuCommon implements ISacContextmenuCommon, Afte
|
|
|
78
78
|
*/
|
|
79
79
|
placement: PlacementArray;
|
|
80
80
|
/**
|
|
81
|
-
*
|
|
82
|
-
* @param document HTML
|
|
83
|
-
* @param ngZone Angular
|
|
84
|
-
* @param elementRef HTML
|
|
85
|
-
* @param renderer Angular
|
|
86
|
-
* @param injector
|
|
81
|
+
* Constructor
|
|
82
|
+
* @param document HTML document element
|
|
83
|
+
* @param ngZone Angular zone service
|
|
84
|
+
* @param elementRef HTML element of the current control
|
|
85
|
+
* @param renderer Angular rendering service
|
|
86
|
+
* @param injector Injector to resolve the icon service
|
|
87
87
|
*/
|
|
88
88
|
constructor(document: any, ngZone: NgZone, elementRef: ElementRef<HTMLElement>, renderer: Renderer2, injector: Injector);
|
|
89
89
|
/**
|
|
90
|
-
*
|
|
90
|
+
* Icon for default context menu button
|
|
91
91
|
*/
|
|
92
92
|
get IconContextMenu(): string;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Closes the dropdown
|
|
95
95
|
*/
|
|
96
96
|
close(): void;
|
|
97
|
+
/**
|
|
98
|
+
* Lifecycle hook that is called after content projection is completed.
|
|
99
|
+
*
|
|
100
|
+
* Associates each menu item with this context menu instance so that item
|
|
101
|
+
* events can delegate to the parent menu.
|
|
102
|
+
*/
|
|
97
103
|
ngAfterContentInit(): void;
|
|
98
104
|
/**
|
|
99
|
-
* Event
|
|
105
|
+
* Event when component is destroyed.
|
|
100
106
|
*/
|
|
101
107
|
ngOnDestroy(): void;
|
|
102
108
|
/**
|
|
103
|
-
* HostListener
|
|
109
|
+
* HostListener to close the dropdown when clicking outside the element.
|
|
104
110
|
*/
|
|
105
111
|
onClick(targetElement: any): void;
|
|
106
112
|
/**
|
|
107
|
-
*
|
|
113
|
+
* Opens the dropdown / shows the menu.
|
|
108
114
|
*/
|
|
109
115
|
open(): void;
|
|
110
116
|
/**
|
|
111
|
-
* Toggle
|
|
117
|
+
* Toggle dropdown
|
|
112
118
|
*/
|
|
113
119
|
toggle(): void;
|
|
114
120
|
/**
|
|
115
|
-
*
|
|
121
|
+
* Sets the position of the menu in the markup
|
|
116
122
|
*/
|
|
117
123
|
protected _positionMenu(): void;
|
|
118
124
|
/**
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
* @param container
|
|
125
|
+
* Sets the position of the menu within the page. The alignment happens within the page
|
|
126
|
+
* so that the menu works correctly inside a dialog.
|
|
127
|
+
* @param container Defines where the menu is aligned. Currently only BODY is supported
|
|
122
128
|
*/
|
|
123
129
|
private _applyContainer;
|
|
124
130
|
/**
|
|
125
|
-
*
|
|
131
|
+
* Resets the CSS classes on the menu container to default
|
|
126
132
|
*/
|
|
127
133
|
private _resetContainer;
|
|
128
134
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
* Base
|
|
3
|
+
* Base context menu anchor component for open/close event
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacContextmenuAnchorCommon {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Reference to the native HTML element
|
|
8
8
|
*/
|
|
9
9
|
nativeElement: HTMLElement;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param elementRef
|
|
11
|
+
* Constructor
|
|
12
|
+
* @param elementRef Reference to the HTML element used as anchor for the context menu
|
|
13
13
|
*/
|
|
14
14
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
15
15
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
* Common
|
|
3
|
+
* Common marker class for the menu container
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacContextMenuContrainerCommon {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Reference to the HTML element of the menu container
|
|
8
8
|
*/
|
|
9
9
|
nativeElement: HTMLElement;
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param elementRef
|
|
11
|
+
* Constructor
|
|
12
|
+
* @param elementRef Reference to the HTML element with the marker directive
|
|
13
13
|
*/
|
|
14
14
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
15
15
|
}
|
|
@@ -5,15 +5,15 @@ import { EventEmitter } from '@angular/core';
|
|
|
5
5
|
*/
|
|
6
6
|
export declare class SacContextmenuItemButtonCommon extends SacContextmenuItemCommon {
|
|
7
7
|
/**
|
|
8
|
-
* Menu
|
|
8
|
+
* Menu item is disabled
|
|
9
9
|
*/
|
|
10
10
|
protected _isdisabled: boolean;
|
|
11
11
|
/**
|
|
12
|
-
* Icon
|
|
12
|
+
* Icon column in menu is disabled
|
|
13
13
|
*/
|
|
14
14
|
protected _isicondisabled: boolean;
|
|
15
15
|
/**
|
|
16
|
-
* Event
|
|
16
|
+
* Event when the button is clicked
|
|
17
17
|
*/
|
|
18
18
|
clicked: EventEmitter<void>;
|
|
19
19
|
/**
|
|
@@ -21,15 +21,15 @@ export declare class SacContextmenuItemButtonCommon extends SacContextmenuItemCo
|
|
|
21
21
|
*/
|
|
22
22
|
cssclass: string;
|
|
23
23
|
/**
|
|
24
|
-
* Icon
|
|
24
|
+
* Icon for menu
|
|
25
25
|
*/
|
|
26
26
|
icon: string;
|
|
27
27
|
/**
|
|
28
|
-
* Input
|
|
28
|
+
* Input property for button styling. Defines the CSS classes of the button
|
|
29
29
|
*/
|
|
30
30
|
iconstyle: string;
|
|
31
31
|
/**
|
|
32
|
-
* Image
|
|
32
|
+
* Image for menu. Required if the icon for the button is a file and not an icon font.
|
|
33
33
|
*/
|
|
34
34
|
image: string;
|
|
35
35
|
/**
|
|
@@ -37,7 +37,7 @@ export declare class SacContextmenuItemButtonCommon extends SacContextmenuItemCo
|
|
|
37
37
|
*/
|
|
38
38
|
name: string;
|
|
39
39
|
/**
|
|
40
|
-
* Text
|
|
40
|
+
* Text for menu item.
|
|
41
41
|
*/
|
|
42
42
|
text: string;
|
|
43
43
|
/**
|
|
@@ -45,23 +45,23 @@ export declare class SacContextmenuItemButtonCommon extends SacContextmenuItemCo
|
|
|
45
45
|
*/
|
|
46
46
|
constructor();
|
|
47
47
|
/**
|
|
48
|
-
* Menu
|
|
48
|
+
* Menu item is disabled
|
|
49
49
|
*/
|
|
50
50
|
get isdisabled(): boolean | string;
|
|
51
51
|
/**
|
|
52
|
-
* Menu
|
|
52
|
+
* Menu item is disabled
|
|
53
53
|
*/
|
|
54
54
|
set isdisabled(v: boolean | string);
|
|
55
55
|
/**
|
|
56
|
-
* Icon
|
|
56
|
+
* Icon column in menu is disabled
|
|
57
57
|
*/
|
|
58
58
|
get isicondisabled(): boolean | string;
|
|
59
59
|
/**
|
|
60
|
-
* Icon
|
|
60
|
+
* Icon column in menu is disabled
|
|
61
61
|
*/
|
|
62
62
|
set isicondisabled(v: boolean | string);
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
64
|
+
* This method will trigger the click action emitter
|
|
65
65
|
*/
|
|
66
66
|
callaction(event: MouseEvent): void;
|
|
67
67
|
}
|
|
@@ -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 SacDateCommon. Extends SacBaseDateTimeControl
|
|
9
9
|
*/
|
|
10
10
|
export declare abstract class SacDateCommon 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,19 +55,19 @@ export declare abstract class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
55
55
|
*/
|
|
56
56
|
moment: any;
|
|
57
57
|
/**
|
|
58
|
-
* Resource
|
|
58
|
+
* Resource key for validation message MaxDate at control
|
|
59
59
|
*/
|
|
60
60
|
validationmessagemaxdate: string;
|
|
61
61
|
/**
|
|
62
|
-
* Resource
|
|
62
|
+
* Resource key for validation message MinDate at control
|
|
63
63
|
*/
|
|
64
64
|
validationmessagemindate: string;
|
|
65
65
|
/**
|
|
66
|
-
* Resource
|
|
66
|
+
* Resource key for validation message MaxDate in validation summary
|
|
67
67
|
*/
|
|
68
68
|
validationmessagesummarymaxdate: string;
|
|
69
69
|
/**
|
|
70
|
-
* Resource
|
|
70
|
+
* Resource key for validation message MinDate in validation summary
|
|
71
71
|
*/
|
|
72
72
|
validationmessagesummarymindate: string;
|
|
73
73
|
/**
|
|
@@ -75,7 +75,7 @@ export declare abstract class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
75
75
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
76
76
|
* @param injector Injector for injecting services
|
|
77
77
|
* @param elementRef reference to html element
|
|
78
|
-
* @param cdRef
|
|
78
|
+
* @param cdRef Change Detection Service
|
|
79
79
|
*/
|
|
80
80
|
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef, cdRef: ChangeDetectorRef);
|
|
81
81
|
/**
|
|
@@ -91,11 +91,11 @@ export declare abstract class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
91
91
|
*/
|
|
92
92
|
set mindate(v: string | Date | null);
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Method returns date format from string
|
|
95
95
|
*/
|
|
96
96
|
GetDateTimeFormatString(): string;
|
|
97
97
|
/**
|
|
98
|
-
*
|
|
98
|
+
* Method returns date - moment
|
|
99
99
|
*/
|
|
100
100
|
ModifyParsedDateTimeValue(v: moment_.Moment): moment_.Moment;
|
|
101
101
|
/**
|
|
@@ -107,7 +107,7 @@ export declare abstract class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
107
107
|
*/
|
|
108
108
|
onClick(targetElement: any): void;
|
|
109
109
|
/**
|
|
110
|
-
*
|
|
110
|
+
* Shows date selector
|
|
111
111
|
*/
|
|
112
112
|
showDateSelector(): void;
|
|
113
113
|
/**
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import { EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* Base component for DateSelectorItem
|
|
4
4
|
*/
|
|
5
5
|
declare class DateSelectorItem {
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* Date
|
|
8
8
|
*/
|
|
9
9
|
date: Date;
|
|
10
10
|
/**
|
|
11
|
-
* DisplayText
|
|
11
|
+
* DisplayText property; default value - ''
|
|
12
12
|
*/
|
|
13
13
|
displaytext: string;
|
|
14
14
|
/**
|
|
15
|
-
* Boolean
|
|
15
|
+
* Boolean property indicating if the element is current; default value - false
|
|
16
16
|
*/
|
|
17
17
|
iscurrent: boolean;
|
|
18
18
|
/**
|
|
19
|
-
* Boolean
|
|
19
|
+
* Boolean property indicating if the control is enabled; default value - false
|
|
20
20
|
*/
|
|
21
21
|
isenabled: boolean;
|
|
22
22
|
/**
|
|
23
|
-
* Boolean
|
|
23
|
+
* Boolean property indicating if the element is new; default value - false
|
|
24
24
|
*/
|
|
25
25
|
isnew: boolean;
|
|
26
26
|
/**
|
|
27
|
-
* Boolean
|
|
27
|
+
* Boolean property indicating if the element is selected; default value - false
|
|
28
28
|
*/
|
|
29
29
|
isselected: boolean;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
32
|
-
* @param displaytext
|
|
33
|
-
* @param date
|
|
34
|
-
* @param isenabled Element
|
|
35
|
-
* @param isselected Element
|
|
36
|
-
* @param iscurrent Element
|
|
37
|
-
* @param isnew Element
|
|
31
|
+
* Constructor
|
|
32
|
+
* @param displaytext Display text
|
|
33
|
+
* @param date Date
|
|
34
|
+
* @param isenabled Element is active
|
|
35
|
+
* @param isselected Element is selected
|
|
36
|
+
* @param iscurrent Element is current
|
|
37
|
+
* @param isnew Element is new
|
|
38
38
|
*/
|
|
39
39
|
constructor(displaytext: string, date: Date, isenabled: boolean, isselected: boolean, iscurrent: boolean, isnew: boolean);
|
|
40
40
|
}
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* Base component for SacDateSelector
|
|
43
43
|
*/
|
|
44
44
|
export declare class SacDateSelectorCommon implements OnInit {
|
|
45
45
|
/**
|
|
46
|
-
*
|
|
46
|
+
* Initial date
|
|
47
47
|
*/
|
|
48
48
|
private _initialValue;
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Currently selected date
|
|
51
51
|
*/
|
|
52
52
|
private _selectedValue;
|
|
53
53
|
/**
|
|
54
|
-
*
|
|
54
|
+
* Beginning of the calendar
|
|
55
55
|
*/
|
|
56
56
|
private beginOfCalendar;
|
|
57
57
|
/**
|
|
@@ -59,15 +59,15 @@ export declare class SacDateSelectorCommon implements OnInit {
|
|
|
59
59
|
*/
|
|
60
60
|
private iconService;
|
|
61
61
|
/**
|
|
62
|
-
* Boolean
|
|
62
|
+
* Boolean property for automatic selection; default value - false
|
|
63
63
|
*/
|
|
64
64
|
autoapplyselection: boolean;
|
|
65
65
|
/**
|
|
66
|
-
* Array
|
|
66
|
+
* Array of dates
|
|
67
67
|
*/
|
|
68
68
|
dates: DateSelectorItem[][];
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
70
|
+
* Date selector
|
|
71
71
|
*/
|
|
72
72
|
dateselection: boolean;
|
|
73
73
|
/**
|
|
@@ -75,7 +75,7 @@ export declare class SacDateSelectorCommon implements OnInit {
|
|
|
75
75
|
*/
|
|
76
76
|
e2eidentifier: string | null;
|
|
77
77
|
/**
|
|
78
|
-
*
|
|
78
|
+
* Month
|
|
79
79
|
*/
|
|
80
80
|
month: number;
|
|
81
81
|
/**
|
|
@@ -83,17 +83,21 @@ export declare class SacDateSelectorCommon implements OnInit {
|
|
|
83
83
|
*/
|
|
84
84
|
name: string;
|
|
85
85
|
/**
|
|
86
|
-
* Output
|
|
86
|
+
* Output event when date is selected
|
|
87
87
|
*/
|
|
88
88
|
selectdate: EventEmitter<any>;
|
|
89
89
|
/**
|
|
90
|
-
* Time
|
|
90
|
+
* Time selector
|
|
91
91
|
*/
|
|
92
92
|
timeselection: boolean;
|
|
93
93
|
/**
|
|
94
|
-
*
|
|
94
|
+
* Year
|
|
95
95
|
*/
|
|
96
96
|
year: number;
|
|
97
|
+
/**
|
|
98
|
+
* Constructor
|
|
99
|
+
* @param injector Service injector for dependency resolution
|
|
100
|
+
*/
|
|
97
101
|
constructor(injector: Injector);
|
|
98
102
|
/**
|
|
99
103
|
* Get icon to switch to next month
|
|
@@ -104,66 +108,69 @@ export declare class SacDateSelectorCommon implements OnInit {
|
|
|
104
108
|
*/
|
|
105
109
|
get iconMonthPrev(): string;
|
|
106
110
|
/**
|
|
107
|
-
* Input
|
|
111
|
+
* Input for initial date
|
|
108
112
|
*/
|
|
109
113
|
get initialvalue(): Date;
|
|
110
114
|
set initialvalue(v: Date | null);
|
|
111
115
|
/**
|
|
112
|
-
*
|
|
116
|
+
* Apply selection
|
|
113
117
|
*/
|
|
114
118
|
applySelection(): void;
|
|
115
119
|
/**
|
|
116
|
-
*
|
|
120
|
+
* Change mode
|
|
117
121
|
*/
|
|
118
122
|
changeMode(): void;
|
|
119
123
|
/**
|
|
120
|
-
* Getter
|
|
124
|
+
* Getter for hour of time
|
|
121
125
|
*/
|
|
122
126
|
getHours(): number;
|
|
123
127
|
/**
|
|
124
|
-
* Getter
|
|
128
|
+
* Getter for minute of time
|
|
125
129
|
*/
|
|
126
130
|
getMinutes(): number;
|
|
127
131
|
/**
|
|
128
|
-
*
|
|
132
|
+
* Previous month
|
|
129
133
|
*/
|
|
130
134
|
monthBack(): void;
|
|
131
135
|
/**
|
|
132
|
-
*
|
|
136
|
+
* Next month
|
|
133
137
|
*/
|
|
134
138
|
monthNext(): void;
|
|
135
139
|
/**
|
|
136
|
-
* Init
|
|
140
|
+
* Init event
|
|
137
141
|
*/
|
|
138
142
|
ngOnInit(): void;
|
|
139
143
|
/**
|
|
140
|
-
*
|
|
144
|
+
* Reset selection
|
|
141
145
|
*/
|
|
142
146
|
resetSelection(): void;
|
|
143
147
|
/**
|
|
144
|
-
*
|
|
148
|
+
* Method returns the selected date
|
|
145
149
|
*/
|
|
146
150
|
selectDate(v: DateSelectorItem): void;
|
|
147
151
|
/**
|
|
148
|
-
* Setter
|
|
152
|
+
* Setter for hour of time
|
|
149
153
|
*/
|
|
150
154
|
setHours(v: number | null): void;
|
|
151
155
|
/**
|
|
152
|
-
* Setter
|
|
156
|
+
* Setter for minute of time
|
|
153
157
|
*/
|
|
154
158
|
setMinutes(v: number | null): void;
|
|
155
159
|
/**
|
|
156
|
-
*
|
|
160
|
+
* Set selection to current time
|
|
157
161
|
*/
|
|
158
162
|
setToday(): void;
|
|
159
163
|
/**
|
|
160
|
-
*
|
|
164
|
+
* Initial calendar
|
|
161
165
|
*/
|
|
162
166
|
private initCalendar;
|
|
163
167
|
/**
|
|
164
|
-
* Initial
|
|
168
|
+
* Initial date
|
|
165
169
|
*/
|
|
166
170
|
private initDates;
|
|
171
|
+
/**
|
|
172
|
+
* Initializes the selected date value with initial or current date
|
|
173
|
+
*/
|
|
167
174
|
private initSelectedValue;
|
|
168
175
|
}
|
|
169
176
|
export {};
|