@simpleangularcontrols/sac-common 10.0.0-rc.27 → 10.0.0-rc.29
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 +729 -369
- 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 +5 -0
- package/common/basemodelcontrol.d.ts +4 -0
- package/common/baseuploadcontrol.d.ts +4 -0
- package/controls/buttons/button.d.ts +25 -21
- package/controls/checkbox/checkbox.d.ts +1 -1
- package/controls/confirm/confirm.d.ts +19 -19
- package/controls/confirm/confirm.service.d.ts +10 -10
- package/controls/contextmenu/contextmenu.d.ts +8 -0
- package/controls/datetime/dateselector.d.ts +9 -1
- package/controls/dialog/dialog.d.ts +5 -1
- package/controls/form/form.d.ts +4 -4
- package/controls/grid/grid.d.ts +22 -18
- package/controls/grid/gridbutton.d.ts +23 -4
- package/controls/grid/gridcolumn.d.ts +5 -5
- package/controls/grid/gridcolumnaction.d.ts +1 -1
- package/controls/grid/gridcolumnbase.d.ts +21 -5
- package/controls/grid/model.d.ts +17 -17
- package/controls/grid/paging.d.ts +33 -29
- package/controls/input/inputdecimal.d.ts +1 -1
- package/controls/input/inputemail.d.ts +1 -1
- package/controls/input/inputinteger.d.ts +1 -1
- package/controls/input/inputsearch.d.ts +5 -5
- package/controls/list/dropdown.d.ts +3 -3
- package/controls/list/dropdownoptions.d.ts +1 -1
- package/controls/list/listbox.d.ts +1 -1
- package/controls/multilanguage/multilanguageinput.d.ts +2 -2
- package/controls/static/staticlabel.d.ts +1 -1
- package/controls/tabs/tab.d.ts +19 -15
- package/controls/tabs/tabitem.d.ts +4 -4
- package/controls/tinymce/tinymce.d.ts +26 -22
- package/controls/tinymce/tinymcedialogsettings.d.ts +9 -9
- package/controls/tooltip/tooltip.d.ts +8 -0
- package/controls/treeview/treeview.d.ts +1 -1
- package/controls/upload/dropzonemultiple.d.ts +4 -0
- package/controls/upload/dropzonesingle.d.ts +4 -0
- package/controls/upload/uploadmultiple.d.ts +4 -0
- package/controls/upload/uploadsingle.d.ts +4 -0
- package/controls/validation/validationsummary.d.ts +8 -4
- package/controls/wizard/wizard.d.ts +30 -30
- package/controls/wizard/wizarditem.d.ts +4 -4
- package/esm2015/common/basedatetimecontrol.js +6 -1
- package/esm2015/common/basemodelcontrol.js +6 -1
- package/esm2015/common/baseuploadcontrol.js +18 -5
- package/esm2015/controls/buttons/button.js +37 -32
- package/esm2015/controls/checkbox/checkbox.js +2 -2
- package/esm2015/controls/confirm/confirm.button.js +1 -1
- package/esm2015/controls/confirm/confirm.js +33 -35
- package/esm2015/controls/confirm/confirm.service.js +2 -2
- package/esm2015/controls/contextmenu/contextmenu.js +12 -1
- package/esm2015/controls/contextmenu/contextmenuanchor.js +1 -1
- package/esm2015/controls/contextmenu/contextmenucontainer.js +1 -1
- package/esm2015/controls/datetime/dateselector.js +41 -19
- package/esm2015/controls/dialog/dialog.js +22 -12
- package/esm2015/controls/form/form.js +3 -4
- package/esm2015/controls/grid/grid.js +23 -13
- package/esm2015/controls/grid/gridbutton.js +55 -14
- package/esm2015/controls/grid/gridcolumn.js +8 -8
- package/esm2015/controls/grid/gridcolumnaction.js +2 -2
- package/esm2015/controls/grid/gridcolumnbase.js +23 -7
- package/esm2015/controls/grid/gridimage.js +1 -1
- package/esm2015/controls/grid/model.js +23 -23
- package/esm2015/controls/grid/paging.js +48 -38
- package/esm2015/controls/input/inputdecimal.js +2 -2
- package/esm2015/controls/input/inputemail.js +2 -2
- package/esm2015/controls/input/inputinteger.js +2 -2
- package/esm2015/controls/input/inputsearch.js +8 -8
- package/esm2015/controls/layout/formlayout.js +6 -2
- package/esm2015/controls/list/buildvaluestring.js +3 -1
- package/esm2015/controls/list/dropdown.js +11 -2
- package/esm2015/controls/list/dropdownoptions.js +9 -2
- package/esm2015/controls/list/list.module.js +2 -2
- package/esm2015/controls/list/listbox.js +4 -4
- package/esm2015/controls/multilanguage/multilanguageinput.js +2 -2
- package/esm2015/controls/static/staticlabel.js +6 -2
- package/esm2015/controls/tabs/tab.js +38 -28
- package/esm2015/controls/tabs/tabitem.js +5 -3
- package/esm2015/controls/tinymce/tinymce.js +33 -32
- package/esm2015/controls/tinymce/tinymcedialogsettings.js +3 -1
- package/esm2015/controls/tinymce/tinymcedialogsettingsmeta.js +1 -4
- package/esm2015/controls/tinymce/tinymceinstance.js +1 -1
- package/esm2015/controls/tooltip/tooltip.js +12 -1
- package/esm2015/controls/treeview/treeview.js +9 -9
- package/esm2015/controls/upload/dropzonemultiple.js +10 -2
- package/esm2015/controls/upload/dropzonesingle.js +10 -2
- package/esm2015/controls/upload/uploadmultiple.js +10 -2
- package/esm2015/controls/upload/uploadsingle.js +10 -2
- package/esm2015/controls/validation/validationsummary.js +12 -6
- package/esm2015/controls/wizard/wizard.js +55 -49
- package/esm2015/controls/wizard/wizarditem.js +8 -6
- package/esm2015/interfaces/ISacConfigurationService.js +1 -1
- package/esm2015/interfaces/ISacIconService.js +1 -1
- package/esm2015/public_api.js +4 -1
- package/esm2015/services/sac-configuration.service.js +15 -5
- package/esm2015/services/sac-filebrowser.service.js +68 -62
- package/esm2015/services/sac-icon.service.js +31 -1
- package/esm2015/services/sac-language.service.js +6 -2
- package/esm2015/utilities/guid.js +4 -4
- package/esm2015/utilities/popuphelper.js +2 -2
- package/esm2015/utilities/testingattribute.pipe.js +39 -0
- package/esm2015/utilities/testingattribute.pipe.ngfactory.js +7 -0
- package/esm2015/utilities/utilities.module.js +12 -0
- package/esm2015/utilities/utilities.module.ngfactory.js +7 -0
- package/fesm2015/simpleangularcontrols-sac-common.js +721 -390
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacConfigurationService.d.ts +4 -0
- package/interfaces/ISacIconService.d.ts +20 -0
- package/package.json +1 -1
- package/public_api.d.ts +2 -0
- package/services/sac-configuration.service.d.ts +13 -5
- package/services/sac-filebrowser.service.d.ts +59 -59
- package/services/sac-icon.service.d.ts +40 -0
- package/services/sac-language.service.d.ts +2 -2
- package/simpleangularcontrols-sac-common-10.0.0-rc.29.tgz +0 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/utilities/testingattribute.pipe.d.ts +12 -0
- package/utilities/testingattribute.pipe.ngfactory.d.ts +1 -0
- package/utilities/utilities.module.d.ts +2 -0
- package/utilities/utilities.module.ngfactory.d.ts +3 -0
- package/simpleangularcontrols-sac-common-10.0.0-rc.27.tgz +0 -0
|
@@ -3,6 +3,7 @@ import { TooltipPosition } from '../utilities/enums';
|
|
|
3
3
|
import { SacBaseModelControl } from './basemodelcontrol';
|
|
4
4
|
import { ChangeDetectorRef, DoCheck, ElementRef, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
5
5
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
6
|
+
import { IMaskDirective } from 'angular-imask';
|
|
6
7
|
import * as moment_ from 'moment';
|
|
7
8
|
/**
|
|
8
9
|
* Base Klasse für Date/Time Controls
|
|
@@ -30,6 +31,10 @@ export declare abstract class SacBaseDateTimeControl extends SacBaseModelControl
|
|
|
30
31
|
* Definiert ob der Date Selector angezeigt wird
|
|
31
32
|
*/
|
|
32
33
|
_showselector: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Reference to imask directive in any datetime controls
|
|
36
|
+
*/
|
|
37
|
+
iMask: IMaskDirective<any>;
|
|
33
38
|
/**
|
|
34
39
|
* Definiert das Control als Required
|
|
35
40
|
*/
|
|
@@ -77,6 +77,10 @@ export declare abstract class SacBaseModelControl<VALUE> implements ControlValue
|
|
|
77
77
|
* Deaktiviert das Label im Template
|
|
78
78
|
*/
|
|
79
79
|
disablelabel: boolean;
|
|
80
|
+
/**
|
|
81
|
+
* Identifier used for the E2E data attribute.
|
|
82
|
+
*/
|
|
83
|
+
e2eidentifier: string | null;
|
|
80
84
|
/**
|
|
81
85
|
* Text to support the user during input.
|
|
82
86
|
*/
|
|
@@ -239,6 +239,10 @@ export declare abstract class SacUploadBase<VALUE> extends SacBaseModelControl<V
|
|
|
239
239
|
* @param c Control das validiert werden soll
|
|
240
240
|
*/
|
|
241
241
|
validateData(c: AbstractControl): ValidationErrors | null;
|
|
242
|
+
/**
|
|
243
|
+
* get max. files that can be uploaded
|
|
244
|
+
*/
|
|
245
|
+
protected abstract GetMaxFiles(): number;
|
|
242
246
|
private UpdateFileCount;
|
|
243
247
|
/**
|
|
244
248
|
* Returns the number of uploaded files
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { BUTTONROLETYPE } from '../../enums/ButtonRoleType';
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
3
|
/**
|
|
4
4
|
* Base Komponente für das Button
|
|
5
5
|
*/
|
|
@@ -12,6 +12,22 @@ export declare class SacButtonCommon {
|
|
|
12
12
|
* Das Property definiert die Rolle des Buttons. Standardwert ist 'default'.
|
|
13
13
|
*/
|
|
14
14
|
private _role;
|
|
15
|
+
/**
|
|
16
|
+
* Das boolean property ist benutzt für Aktivation des Spinner des Button. Default ist false.
|
|
17
|
+
*/
|
|
18
|
+
_isloadingvalue: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Output Event Emitter
|
|
21
|
+
*/
|
|
22
|
+
clicked: EventEmitter<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Identifier used for the E2E data attribute.
|
|
25
|
+
*/
|
|
26
|
+
e2eidentifier: string | null;
|
|
27
|
+
/**
|
|
28
|
+
* Boolean Property für Error; default Wert - false
|
|
29
|
+
*/
|
|
30
|
+
hasError: boolean;
|
|
15
31
|
/**
|
|
16
32
|
* Input Property für Icon Style Klasse; default Wert - ''
|
|
17
33
|
*/
|
|
@@ -25,27 +41,25 @@ export declare class SacButtonCommon {
|
|
|
25
41
|
*/
|
|
26
42
|
text: string;
|
|
27
43
|
/**
|
|
28
|
-
*
|
|
29
|
-
*/
|
|
30
|
-
clicked: EventEmitter<any>;
|
|
31
|
-
/**
|
|
32
|
-
* Das boolean property ist benutzt für Aktivation des Spinner des Button. Default ist false.
|
|
33
|
-
*/
|
|
34
|
-
_isloadingvalue: boolean;
|
|
35
|
-
/**
|
|
36
|
-
* Boolean Property für Error; default Wert - false
|
|
44
|
+
* Getter Methode. Ergibt boolean Wert. Definiert, ob das Button desabled ist.
|
|
37
45
|
*/
|
|
38
|
-
|
|
46
|
+
get _isdisabled(): boolean;
|
|
47
|
+
get isdisabled(): boolean | string;
|
|
39
48
|
/**
|
|
40
49
|
* Deaktivieren von Buttons
|
|
41
50
|
* @param v Deaktiviert den Button
|
|
42
51
|
* @return Definiert ob der Button deaktiviert ist
|
|
43
52
|
*/
|
|
44
53
|
set isdisabled(v: boolean | string);
|
|
54
|
+
get isloading(): boolean | string;
|
|
45
55
|
/**
|
|
46
56
|
* Das Input property. Definiert der Status des islaoding property. Es ist benutzt für Aktivation des Spinner des Button.
|
|
47
57
|
*/
|
|
48
58
|
set isloading(v: boolean | string);
|
|
59
|
+
/**
|
|
60
|
+
* Die Methode returns die definierte Style-Rolle des Buttons
|
|
61
|
+
*/
|
|
62
|
+
get role(): BUTTONROLETYPE;
|
|
49
63
|
/**
|
|
50
64
|
* Definiert den Style des Buttons
|
|
51
65
|
* @param v Definiert den Style des Buttons.
|
|
@@ -53,16 +67,6 @@ export declare class SacButtonCommon {
|
|
|
53
67
|
* @returns Type des Buttons
|
|
54
68
|
*/
|
|
55
69
|
set role(v: BUTTONROLETYPE);
|
|
56
|
-
/**
|
|
57
|
-
* Getter Methode. Ergibt boolean Wert. Definiert, ob das Button desabled ist.
|
|
58
|
-
*/
|
|
59
|
-
get _isdisabled(): boolean;
|
|
60
|
-
get isdisabled(): boolean | string;
|
|
61
|
-
get isloading(): boolean | string;
|
|
62
|
-
/**
|
|
63
|
-
* Die Methode returns die definierte Style-Rolle des Buttons
|
|
64
|
-
*/
|
|
65
|
-
get role(): BUTTONROLETYPE;
|
|
66
70
|
/**
|
|
67
71
|
* Die Methode wird ein Event aufrufen, wenn das Button geklickt wird UND das Button nicht disabled ODER isloading ist.
|
|
68
72
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { SacBaseModelControl } from '../../common/basemodelcontrol';
|
|
1
2
|
import { OnInit } from '@angular/core';
|
|
2
3
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import { SacBaseModelControl } from '../../common/basemodelcontrol';
|
|
4
4
|
/**
|
|
5
5
|
* Basis Komponente für SacCheckboxCommon. Extends SacBaseModelControl
|
|
6
6
|
*/
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import { IConfirmComponent } from '../../interfaces/iconfirmcomponent';
|
|
3
2
|
import { SacConfirmButton } from './confirm.button';
|
|
3
|
+
import { EventEmitter } from '@angular/core';
|
|
4
4
|
/**
|
|
5
5
|
* Basis Klasse für Confirm Dialog
|
|
6
6
|
*/
|
|
7
7
|
export declare class SacConfirmCommon implements IConfirmComponent {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*/
|
|
11
|
-
onconfirm: EventEmitter<string>;
|
|
12
|
-
/**
|
|
13
|
-
* Dialog Titel für Confirm Dialog
|
|
14
|
-
*/
|
|
15
|
-
title: string;
|
|
16
|
-
/**
|
|
17
|
-
* Nachricht die auf dem Dialog angezeigt wird
|
|
9
|
+
* Map mit Buttons die in Dialog angezeigt werden.
|
|
18
10
|
*/
|
|
19
|
-
|
|
11
|
+
buttons: SacConfirmButton[];
|
|
20
12
|
/**
|
|
21
13
|
* Icon welches auf dem Dialog angezeigt wird
|
|
22
14
|
*/
|
|
23
15
|
image: string;
|
|
24
|
-
/**
|
|
25
|
-
* Map mit Buttons die in Dialog angezeigt werden.
|
|
26
|
-
*/
|
|
27
|
-
buttons: SacConfirmButton[];
|
|
28
16
|
/**
|
|
29
17
|
* Definiert ob der Dialog sichtbar ist
|
|
30
18
|
*/
|
|
31
19
|
isvisible: boolean;
|
|
32
20
|
/**
|
|
33
|
-
*
|
|
21
|
+
* Nachricht die auf dem Dialog angezeigt wird
|
|
34
22
|
*/
|
|
35
|
-
|
|
23
|
+
message: string;
|
|
24
|
+
/**
|
|
25
|
+
* Event wenn Dialog geschlossen wird
|
|
26
|
+
*/
|
|
27
|
+
onconfirm: EventEmitter<string>;
|
|
28
|
+
/**
|
|
29
|
+
* Dialog Titel für Confirm Dialog
|
|
30
|
+
*/
|
|
31
|
+
title: string;
|
|
36
32
|
/**
|
|
37
33
|
* Action wenn Button auf Dialog geklickt wurde. Löst den EventEmitter aus und blendet den Dialog aus.
|
|
38
34
|
* @param action
|
|
39
35
|
*/
|
|
40
36
|
confirm(action: string): void;
|
|
41
37
|
/**
|
|
42
|
-
*
|
|
38
|
+
* Definiert, ob für den Dialog ein Image definiert wurde
|
|
43
39
|
*/
|
|
44
|
-
|
|
40
|
+
hasImage(): boolean;
|
|
45
41
|
/**
|
|
46
42
|
* Blendet den Dialog aus
|
|
47
43
|
*/
|
|
48
44
|
hide(): void;
|
|
45
|
+
/**
|
|
46
|
+
* Zeigt den Dialog an
|
|
47
|
+
*/
|
|
48
|
+
show(): void;
|
|
49
49
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ApplicationRef, ComponentFactory, ComponentRef, EventEmitter, Injector } from '@angular/core';
|
|
2
1
|
import { ISacIconService } from '../../interfaces/ISacIconService';
|
|
3
2
|
import { ISacLocalisationService } from '../../interfaces/ISacLocalisationService';
|
|
4
3
|
import { ISacValidationKeyService } from '../../interfaces/ISacValidationKeyService';
|
|
5
4
|
import { IConfirmComponent } from '../../interfaces/iconfirmcomponent';
|
|
5
|
+
import { ApplicationRef, ComponentFactory, ComponentRef, EventEmitter, Injector } from '@angular/core';
|
|
6
6
|
/**
|
|
7
7
|
* Basis Klasse für Confirm Service implementation
|
|
8
8
|
*/
|
|
@@ -35,6 +35,11 @@ export declare abstract class ServiceConfirmCommon {
|
|
|
35
35
|
* Blendet den Dialog aus
|
|
36
36
|
*/
|
|
37
37
|
protected CloseDialog(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Methode zur Konfiguration der Confirm Dialog Komponente
|
|
40
|
+
* @param instance Instanz auf IConfirmComponent Komponente
|
|
41
|
+
*/
|
|
42
|
+
protected abstract ConfigureDialog(instance: IConfirmComponent): any;
|
|
38
43
|
/**
|
|
39
44
|
* Interne Methode für die Implementation des Confirm Dialogs. Steuert die Feedbacks, die Erzeugung und Anzeige des Dialogs
|
|
40
45
|
*/
|
|
@@ -47,17 +52,12 @@ export declare abstract class ServiceConfirmCommon {
|
|
|
47
52
|
* Entfernt die Instanz des Dialogs
|
|
48
53
|
*/
|
|
49
54
|
protected DestroyInstance(): void;
|
|
50
|
-
/**
|
|
51
|
-
* Zeigt den Dialog an
|
|
52
|
-
*/
|
|
53
|
-
protected OpenDialog(): IConfirmComponent;
|
|
54
|
-
/**
|
|
55
|
-
* Methode zur Konfiguration der Confirm Dialog Komponente
|
|
56
|
-
* @param instance Instanz auf IConfirmComponent Komponente
|
|
57
|
-
*/
|
|
58
|
-
protected abstract ConfigureDialog(instance: IConfirmComponent): any;
|
|
59
55
|
/**
|
|
60
56
|
* Abstrakte Methode zum erzeugen der Komponent Factory für den Dialog
|
|
61
57
|
*/
|
|
62
58
|
protected abstract GetComponentFactory(): ComponentFactory<IConfirmComponent>;
|
|
59
|
+
/**
|
|
60
|
+
* Zeigt den Dialog an
|
|
61
|
+
*/
|
|
62
|
+
protected OpenDialog(): IConfirmComponent;
|
|
63
63
|
}
|
|
@@ -47,6 +47,10 @@ export declare class SacContextmenuCommon implements ISacContextmenuCommon, Afte
|
|
|
47
47
|
* Extra CSS Klassen für das Control
|
|
48
48
|
*/
|
|
49
49
|
cssclass: string;
|
|
50
|
+
/**
|
|
51
|
+
* Identifier used for the E2E data attribute.
|
|
52
|
+
*/
|
|
53
|
+
e2eidentifier: string | null;
|
|
50
54
|
/**
|
|
51
55
|
* Definiert ob das Dropdown offen ist.
|
|
52
56
|
*/
|
|
@@ -55,6 +59,10 @@ export declare class SacContextmenuCommon implements ISacContextmenuCommon, Afte
|
|
|
55
59
|
* All directly assigned context menu elements that are defined in the direct template for the context menu.
|
|
56
60
|
*/
|
|
57
61
|
menuitems: QueryList<SacContextmenuItemCommon>;
|
|
62
|
+
/**
|
|
63
|
+
* name of control
|
|
64
|
+
*/
|
|
65
|
+
name: string;
|
|
58
66
|
/**
|
|
59
67
|
* The preferred placement of the dropdown.
|
|
60
68
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter,
|
|
1
|
+
import { EventEmitter, Injector, OnInit } from '@angular/core';
|
|
2
2
|
/**
|
|
3
3
|
*Basis Komponente für DateSelectorItem
|
|
4
4
|
*/
|
|
@@ -70,10 +70,18 @@ export declare class SacDateSelectorCommon implements OnInit {
|
|
|
70
70
|
* Datum Selector
|
|
71
71
|
*/
|
|
72
72
|
dateselection: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Identifier used for the E2E data attribute.
|
|
75
|
+
*/
|
|
76
|
+
e2eidentifier: string | null;
|
|
73
77
|
/**
|
|
74
78
|
* Monat
|
|
75
79
|
*/
|
|
76
80
|
month: number;
|
|
81
|
+
/**
|
|
82
|
+
* name of control
|
|
83
|
+
*/
|
|
84
|
+
name: string;
|
|
77
85
|
/**
|
|
78
86
|
* Output Event beim Datum Selektieren
|
|
79
87
|
*/
|
|
@@ -30,12 +30,16 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
30
30
|
* Name des Containers für den Dialog
|
|
31
31
|
*/
|
|
32
32
|
dialogElement: ElementRef;
|
|
33
|
+
/**
|
|
34
|
+
* Identifier used for the E2E data attribute.
|
|
35
|
+
*/
|
|
36
|
+
e2eidentifier: string | null;
|
|
33
37
|
/**
|
|
34
38
|
* Output Emitter. Wird aufgerufen, wenn das Wert des _show property geändert ist - damait das Dialog geöfnet/geschlossen wird.
|
|
35
39
|
*/
|
|
36
40
|
isvisibleChange: EventEmitter<boolean>;
|
|
37
41
|
/**
|
|
38
|
-
*
|
|
42
|
+
* name of control
|
|
39
43
|
*/
|
|
40
44
|
name: string;
|
|
41
45
|
/**
|
package/controls/form/form.d.ts
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
1
|
import { NgForm } from '@angular/forms';
|
|
2
|
-
/**
|
|
3
|
-
* Type for form actions
|
|
4
|
-
*/
|
|
5
|
-
export declare type FormHooks = 'change' | 'blur' | 'submit';
|
|
6
2
|
/**
|
|
7
3
|
* Base Komponente für SacFormular
|
|
8
4
|
*/
|
|
@@ -45,3 +41,7 @@ export declare class SacFormCommon {
|
|
|
45
41
|
*/
|
|
46
42
|
private updateValueAndValidityInternal;
|
|
47
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* Type for form actions
|
|
46
|
+
*/
|
|
47
|
+
export declare type FormHooks = 'change' | 'blur' | 'submit';
|
package/controls/grid/grid.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
2
1
|
import { ISacValidationKeyService } from '../../interfaces/ISacValidationKeyService';
|
|
3
2
|
import { PagerData, PagerRequest, SortDescriptor, SortOrder } from './model';
|
|
3
|
+
import { ChangeDetectorRef, EventEmitter, Injector, TemplateRef } from '@angular/core';
|
|
4
4
|
/**
|
|
5
5
|
* Basic component for SacGrid
|
|
6
6
|
*/
|
|
@@ -22,10 +22,18 @@ export declare abstract class SacGridCommon {
|
|
|
22
22
|
* Contains Array of Pages.
|
|
23
23
|
*/
|
|
24
24
|
protected paginators: Array<any>;
|
|
25
|
+
/**
|
|
26
|
+
* Number of columns in the grid
|
|
27
|
+
*/
|
|
28
|
+
ColumnCount: number;
|
|
25
29
|
/**
|
|
26
30
|
* Input property for Body.
|
|
27
31
|
*/
|
|
28
32
|
body: TemplateRef<any>;
|
|
33
|
+
/**
|
|
34
|
+
* Identifier used for the E2E data attribute.
|
|
35
|
+
*/
|
|
36
|
+
e2eidentifier: string | null;
|
|
29
37
|
/**
|
|
30
38
|
* Text which is displayed if no rows are available.
|
|
31
39
|
*/
|
|
@@ -39,7 +47,7 @@ export declare abstract class SacGridCommon {
|
|
|
39
47
|
*/
|
|
40
48
|
maxvisiblepagenumbers: number;
|
|
41
49
|
/**
|
|
42
|
-
*
|
|
50
|
+
* name of control
|
|
43
51
|
*/
|
|
44
52
|
name: string;
|
|
45
53
|
/**
|
|
@@ -60,6 +68,10 @@ export declare abstract class SacGridCommon {
|
|
|
60
68
|
* {{PAGESIZE}}: Number of elements per page
|
|
61
69
|
*/
|
|
62
70
|
pagesizetext: string;
|
|
71
|
+
/**
|
|
72
|
+
* Event when the pager is clicked.
|
|
73
|
+
*/
|
|
74
|
+
paging: EventEmitter<PagerRequest>;
|
|
63
75
|
/**
|
|
64
76
|
* Text in pager for 'Page x of y'. The following interpolation texts are available:
|
|
65
77
|
*
|
|
@@ -68,22 +80,6 @@ export declare abstract class SacGridCommon {
|
|
|
68
80
|
* {{TOTALPAGES}}: Number of pages
|
|
69
81
|
*/
|
|
70
82
|
pagingtext: string;
|
|
71
|
-
/**
|
|
72
|
-
* Grid data
|
|
73
|
-
*/
|
|
74
|
-
value: any;
|
|
75
|
-
/**
|
|
76
|
-
* Event when the pager is clicked.
|
|
77
|
-
*/
|
|
78
|
-
paging: EventEmitter<PagerRequest>;
|
|
79
|
-
/**
|
|
80
|
-
* Event when a header is clicked so that the grid is sorted.
|
|
81
|
-
*/
|
|
82
|
-
sorting: EventEmitter<SortDescriptor>;
|
|
83
|
-
/**
|
|
84
|
-
* Number of columns in the grid
|
|
85
|
-
*/
|
|
86
|
-
ColumnCount: number;
|
|
87
83
|
/**
|
|
88
84
|
* Column by which currently sorted.
|
|
89
85
|
*/
|
|
@@ -92,10 +88,18 @@ export declare abstract class SacGridCommon {
|
|
|
92
88
|
* Current direction of sorting
|
|
93
89
|
*/
|
|
94
90
|
sortDirection: SortOrder;
|
|
91
|
+
/**
|
|
92
|
+
* Event when a header is clicked so that the grid is sorted.
|
|
93
|
+
*/
|
|
94
|
+
sorting: EventEmitter<SortDescriptor>;
|
|
95
95
|
/**
|
|
96
96
|
* Service with the validation keys. Is required to load the default texts for the pager etc.
|
|
97
97
|
*/
|
|
98
98
|
validationKeyService: ISacValidationKeyService;
|
|
99
|
+
/**
|
|
100
|
+
* Grid data
|
|
101
|
+
*/
|
|
102
|
+
value: any;
|
|
99
103
|
/**
|
|
100
104
|
* Constructor
|
|
101
105
|
* @param cd Change Detection Service
|
|
@@ -1,12 +1,21 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, Injector } from '@angular/core';
|
|
2
2
|
/**
|
|
3
3
|
* Base Grid Action Button
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacGridButtonCommon {
|
|
6
|
+
protected readonly injector: Injector;
|
|
7
|
+
/**
|
|
8
|
+
* Service for reading standard icon
|
|
9
|
+
*/
|
|
10
|
+
private iconService;
|
|
6
11
|
/**
|
|
7
12
|
* Button is deactivated
|
|
8
13
|
*/
|
|
9
14
|
protected _isdisabledvalue: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Event when the button is clicked
|
|
17
|
+
*/
|
|
18
|
+
clicked: EventEmitter<any>;
|
|
10
19
|
/**
|
|
11
20
|
* Icon name from sprite
|
|
12
21
|
*/
|
|
@@ -16,18 +25,28 @@ export declare class SacGridButtonCommon {
|
|
|
16
25
|
*/
|
|
17
26
|
iconstyle: string;
|
|
18
27
|
/**
|
|
19
|
-
*
|
|
28
|
+
* Name of Button inside Grid
|
|
20
29
|
*/
|
|
21
|
-
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* Constructor
|
|
33
|
+
*
|
|
34
|
+
* @param injector Injector to resovle services
|
|
35
|
+
*/
|
|
36
|
+
constructor(injector: Injector);
|
|
37
|
+
get isdisabled(): boolean | string;
|
|
22
38
|
/**
|
|
23
39
|
* Deactivating buttons
|
|
24
40
|
* @param v Deactivates the button. Can be a Boolean or the strings `true` or `false`.
|
|
25
41
|
* @return Defines whether the button is deactivated. Is always a Boolean type
|
|
26
42
|
*/
|
|
27
43
|
set isdisabled(v: boolean | string);
|
|
28
|
-
get isdisabled(): boolean | string;
|
|
29
44
|
/**
|
|
30
45
|
* Triggers the clicked event if the button is not deactivated.
|
|
31
46
|
*/
|
|
32
47
|
callaction(): void;
|
|
48
|
+
/**
|
|
49
|
+
* Defines the CSS class for the icon on the button
|
|
50
|
+
*/
|
|
51
|
+
getIconClass(): string;
|
|
33
52
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
1
|
import { SacGridCommon } from './grid';
|
|
3
2
|
import { SacGridColumnBaseCommon } from './gridcolumnbase';
|
|
3
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
4
4
|
/**
|
|
5
5
|
* Component for SacGridColumnCommon. Extends SacGridColumnBaseCommon
|
|
6
6
|
*/
|
|
@@ -13,14 +13,14 @@ export declare class SacGridColumnCommon extends SacGridColumnBaseCommon {
|
|
|
13
13
|
* Constructor
|
|
14
14
|
*/
|
|
15
15
|
constructor(grid: SacGridCommon, injector: Injector, el: ElementRef);
|
|
16
|
-
/**
|
|
17
|
-
* Sets the ellipsis property. Can be a Boolean or the strings `true` or `false`.
|
|
18
|
-
*/
|
|
19
|
-
set ellipsis(v: string | boolean);
|
|
20
16
|
/**
|
|
21
17
|
* Getter for the ellipsis property. Always returns a boolean type.
|
|
22
18
|
*/
|
|
23
19
|
get ellipsis(): string | boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Sets the ellipsis property. Can be a Boolean or the strings `true` or `false`.
|
|
22
|
+
*/
|
|
23
|
+
set ellipsis(v: string | boolean);
|
|
24
24
|
/**
|
|
25
25
|
* Checks whether ellipsis is set
|
|
26
26
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
1
|
import { SacGridCommon } from './grid';
|
|
3
2
|
import { SacGridColumnBaseCommon } from './gridcolumnbase';
|
|
3
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
4
4
|
/**
|
|
5
5
|
* Component for SacGridColumnActionCommon. Extends SacGridColumnBaseCommon
|
|
6
6
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
2
1
|
import { ISacIconService } from '../../interfaces/ISacIconService';
|
|
3
2
|
import { SacGridCommon } from './grid';
|
|
3
|
+
import { ElementRef, EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
|
|
4
4
|
/**
|
|
5
5
|
* Base component for GridColumn
|
|
6
6
|
*/
|
|
@@ -12,14 +12,34 @@ export declare class SacGridColumnBaseCommon implements OnInit, OnDestroy {
|
|
|
12
12
|
* icon service for reading the icons
|
|
13
13
|
*/
|
|
14
14
|
protected iconService: ISacIconService;
|
|
15
|
+
/**
|
|
16
|
+
* Align the column
|
|
17
|
+
*/
|
|
18
|
+
alignment: 'left' | 'right' | 'center';
|
|
19
|
+
/**
|
|
20
|
+
* reference to body cell
|
|
21
|
+
*/
|
|
22
|
+
bodyElement: ElementRef;
|
|
23
|
+
/**
|
|
24
|
+
* defines the style of the row
|
|
25
|
+
*/
|
|
26
|
+
contextstyle: 'none' | 'active' | 'success' | 'warning' | 'danger' | 'info' | 'primary' | 'secondary' | 'light' | 'dark';
|
|
15
27
|
/**
|
|
16
28
|
* Value of the cell if the type is `header`.
|
|
17
29
|
*/
|
|
18
30
|
header: string;
|
|
31
|
+
/**
|
|
32
|
+
* reference to header cell
|
|
33
|
+
*/
|
|
34
|
+
headerElement: ElementRef;
|
|
19
35
|
/**
|
|
20
36
|
* Name of the column
|
|
21
37
|
*/
|
|
22
38
|
name: any;
|
|
39
|
+
/**
|
|
40
|
+
* Click on Column Element
|
|
41
|
+
*/
|
|
42
|
+
rowclicked: EventEmitter<void>;
|
|
23
43
|
/**
|
|
24
44
|
* Key for sorting the column
|
|
25
45
|
*/
|
|
@@ -36,10 +56,6 @@ export declare class SacGridColumnBaseCommon implements OnInit, OnDestroy {
|
|
|
36
56
|
* Column width
|
|
37
57
|
*/
|
|
38
58
|
width: string;
|
|
39
|
-
/**
|
|
40
|
-
* Click on Column Element
|
|
41
|
-
*/
|
|
42
|
-
rowclicked: EventEmitter<void>;
|
|
43
59
|
/**
|
|
44
60
|
* Constructor
|
|
45
61
|
* @param grid reference to grid component
|
package/controls/grid/model.d.ts
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* GridResponse class
|
|
3
3
|
*/
|
|
4
|
+
/**
|
|
5
|
+
* Enum for sorting
|
|
6
|
+
*/
|
|
7
|
+
export declare enum SortOrder {
|
|
8
|
+
/**
|
|
9
|
+
* No sorting
|
|
10
|
+
*/
|
|
11
|
+
None = 0,
|
|
12
|
+
/**
|
|
13
|
+
* Ascending
|
|
14
|
+
*/
|
|
15
|
+
Ascending = 1,
|
|
16
|
+
/**
|
|
17
|
+
* Descending
|
|
18
|
+
*/
|
|
19
|
+
Descending = 2
|
|
20
|
+
}
|
|
4
21
|
export declare class GridResponse<T> {
|
|
5
22
|
/**
|
|
6
23
|
* Data
|
|
@@ -73,20 +90,3 @@ export declare class SortDescriptor {
|
|
|
73
90
|
*/
|
|
74
91
|
constructor(sortcolumn?: string, sortorder?: SortOrder);
|
|
75
92
|
}
|
|
76
|
-
/**
|
|
77
|
-
* Enum for sorting
|
|
78
|
-
*/
|
|
79
|
-
export declare enum SortOrder {
|
|
80
|
-
/**
|
|
81
|
-
* No sorting
|
|
82
|
-
*/
|
|
83
|
-
None = 0,
|
|
84
|
-
/**
|
|
85
|
-
* Ascending
|
|
86
|
-
*/
|
|
87
|
-
Ascending = 1,
|
|
88
|
-
/**
|
|
89
|
-
* Descending
|
|
90
|
-
*/
|
|
91
|
-
Descending = 2
|
|
92
|
-
}
|