@simpleangularcontrols/sac-common 10.0.0-rc.11 → 10.0.0-rc.13
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 +1425 -1088
- 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 +99 -13
- package/common/basemodelcontrol.d.ts +33 -29
- package/controls/checkbox/radiobutton.d.ts +61 -26
- package/controls/contextmenu/contextmenu.d.ts +26 -19
- package/controls/contextmenu/contextmenu.interface.d.ts +3 -0
- package/controls/contextmenu/contextmenuitem.d.ts +5 -0
- package/controls/contextmenu/contextmenuitembutton.d.ts +21 -20
- package/controls/datetime/date.d.ts +28 -27
- package/controls/datetime/datetime.d.ts +27 -27
- package/controls/datetime/time.d.ts +26 -26
- package/controls/dialog/dialog.d.ts +31 -43
- package/controls/layout/formlayout.d.ts +4 -0
- package/controls/list/buildvaluestring.d.ts +6 -0
- package/controls/list/dropdown.d.ts +9 -51
- package/controls/list/dropdownoptions.d.ts +38 -0
- package/controls/list/dropdownoptions.ngfactory.d.ts +1 -0
- package/controls/static/formcontainer.d.ts +11 -3
- package/controls/tooltip/tooltip.d.ts +33 -51
- package/controls/treeview/treeview.d.ts +87 -121
- package/esm2015/common/basedatetimecontrol.js +178 -30
- package/esm2015/common/basemodelcontrol.js +71 -56
- package/esm2015/controls/checkbox/radiobutton.js +94 -45
- package/esm2015/controls/contextmenu/contextmenu.interface.js +1 -0
- package/esm2015/controls/contextmenu/contextmenu.interface.ngfactory.js +7 -0
- package/esm2015/controls/contextmenu/contextmenu.js +22 -23
- package/esm2015/controls/contextmenu/contextmenuitem.js +13 -2
- package/esm2015/controls/contextmenu/contextmenuitembutton.js +34 -25
- package/esm2015/controls/datetime/date.js +43 -41
- package/esm2015/controls/datetime/datetime.js +42 -41
- package/esm2015/controls/datetime/time.js +42 -41
- package/esm2015/controls/dialog/dialog.js +41 -83
- package/esm2015/controls/layout/formlayout.js +7 -6
- package/esm2015/controls/list/buildvaluestring.js +18 -0
- package/esm2015/controls/{treeview/ngtreeitemaction.ngfactory.js → list/buildvaluestring.ngfactory.js} +1 -1
- package/esm2015/controls/list/dropdown.js +16 -114
- package/esm2015/controls/list/dropdownoptions.js +72 -0
- package/esm2015/controls/{treeview/treeviewchild.ngfactory.js → list/dropdownoptions.ngfactory.js} +1 -1
- package/esm2015/controls/static/formcontainer.js +16 -6
- package/esm2015/controls/tooltip/tooltip.js +60 -250
- package/esm2015/controls/treeview/treeview.js +232 -247
- package/esm2015/interfaces/ISacConfigurationService.js +1 -1
- package/esm2015/interfaces/ISacIconService.js +1 -1
- package/esm2015/interfaces/treeviewaction.interface.js +1 -0
- package/esm2015/interfaces/treeviewaction.interface.ngfactory.js +7 -0
- package/esm2015/public_api.js +6 -6
- package/esm2015/services/sac-configuration.service.js +7 -5
- package/esm2015/services/sac-icon.service.js +25 -1
- package/esm2015/utilities/enums.js +5 -1
- package/esm2015/utilities/popuphelper.js +343 -0
- package/esm2015/utilities/popuphelper.ngfactory.js +7 -0
- package/esm2015/validation/equals.validator.js +14 -0
- package/esm2015/validation/equals.validator.ngfactory.js +7 -0
- package/esm2015/validation/notequals.validator.js +14 -0
- package/esm2015/validation/notequals.validator.ngfactory.js +7 -0
- package/esm2015/validation/validation.class.js +30 -6
- package/fesm2015/simpleangularcontrols-sac-common.js +1398 -1075
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacConfigurationService.d.ts +4 -0
- package/interfaces/ISacIconService.d.ts +16 -0
- package/interfaces/treeviewaction.interface.d.ts +4 -0
- package/interfaces/treeviewaction.interface.ngfactory.d.ts +1 -0
- package/package.json +1 -1
- package/public_api.d.ts +5 -5
- package/services/sac-configuration.service.d.ts +8 -0
- package/services/sac-icon.service.d.ts +33 -1
- package/simpleangularcontrols-sac-common-10.0.0-rc.13.tgz +0 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/utilities/enums.d.ts +3 -1
- package/utilities/popuphelper.d.ts +83 -0
- package/utilities/popuphelper.ngfactory.d.ts +1 -0
- package/validation/equals.validator.d.ts +2 -0
- package/validation/equals.validator.ngfactory.d.ts +1 -0
- package/validation/notequals.validator.d.ts +2 -0
- package/validation/notequals.validator.ngfactory.d.ts +1 -0
- package/validation/validation.class.d.ts +19 -0
- package/controls/treeview/ngtreeitemaction.d.ts +0 -40
- package/controls/treeview/treeviewchild.d.ts +0 -12
- package/esm2015/controls/treeview/ngtreeitemaction.js +0 -60
- package/esm2015/controls/treeview/treeviewchild.js +0 -18
- package/simpleangularcontrols-sac-common-10.0.0-rc.11.tgz +0 -0
- /package/controls/{treeview/ngtreeitemaction.ngfactory.d.ts → contextmenu/contextmenu.interface.ngfactory.d.ts} +0 -0
- /package/controls/{treeview/treeviewchild.ngfactory.d.ts → list/buildvaluestring.ngfactory.d.ts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import * as IMask from 'imask';
|
|
4
|
-
import { Moment } from 'moment';
|
|
5
1
|
import { SacBaseDateTimeControl } from '../../common/basedatetimecontrol';
|
|
6
2
|
import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
3
|
+
import { ChangeDetectorRef, ElementRef, Injector } from '@angular/core';
|
|
4
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
|
+
import * as IMask from 'imask';
|
|
6
|
+
import * as moment_ from 'moment';
|
|
7
7
|
/**
|
|
8
8
|
* Komponente für SacDateCommon. Extends SacBaseDateTimeControl
|
|
9
9
|
*/
|
|
10
|
-
export declare class SacDateCommon extends SacBaseDateTimeControl {
|
|
10
|
+
export declare abstract class SacDateCommon extends SacBaseDateTimeControl {
|
|
11
11
|
protected elementRef: ElementRef;
|
|
12
12
|
/**
|
|
13
13
|
* Format des Datums
|
|
@@ -42,6 +42,18 @@ export declare class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
42
42
|
lazy: boolean;
|
|
43
43
|
overwrite: boolean;
|
|
44
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Min Date
|
|
47
|
+
*/
|
|
48
|
+
_maxdate: Date;
|
|
49
|
+
/**
|
|
50
|
+
* Min Date
|
|
51
|
+
*/
|
|
52
|
+
_mindate: Date;
|
|
53
|
+
/**
|
|
54
|
+
* Moment JS module instance
|
|
55
|
+
*/
|
|
56
|
+
moment: any;
|
|
45
57
|
/**
|
|
46
58
|
* Resource Key für Validation Message MaxDate bei Control
|
|
47
59
|
*/
|
|
@@ -58,25 +70,18 @@ export declare class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
58
70
|
* Resource Key für Validation Message MinDate in Validation Summary
|
|
59
71
|
*/
|
|
60
72
|
validationmessagesummarymindate: string;
|
|
61
|
-
/**
|
|
62
|
-
* Min Date
|
|
63
|
-
*/
|
|
64
|
-
_maxdate: Date;
|
|
65
|
-
/**
|
|
66
|
-
* Min Date
|
|
67
|
-
*/
|
|
68
|
-
_mindate: Date;
|
|
69
|
-
/**
|
|
70
|
-
* Definiert ob der Date Selector angezeigt wird
|
|
71
|
-
*/
|
|
72
|
-
_showselector: boolean;
|
|
73
73
|
/**
|
|
74
74
|
* Constructor
|
|
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 Change Dectection Servie
|
|
79
|
+
*/
|
|
80
|
+
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef, cdRef: ChangeDetectorRef);
|
|
81
|
+
/**
|
|
82
|
+
* icon for date selector button
|
|
78
83
|
*/
|
|
79
|
-
|
|
84
|
+
get IconSelector(): string;
|
|
80
85
|
/**
|
|
81
86
|
* Min Date
|
|
82
87
|
*/
|
|
@@ -85,14 +90,6 @@ export declare class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
85
90
|
* Min Date
|
|
86
91
|
*/
|
|
87
92
|
set mindate(v: string | Date | null);
|
|
88
|
-
/**
|
|
89
|
-
* icon for date selector button
|
|
90
|
-
*/
|
|
91
|
-
get IconSelector(): string;
|
|
92
|
-
/**
|
|
93
|
-
* HostListener
|
|
94
|
-
*/
|
|
95
|
-
onClick(targetElement: any): void;
|
|
96
93
|
/**
|
|
97
94
|
* Methode ergibt Datum-Format vom String
|
|
98
95
|
*/
|
|
@@ -100,11 +97,15 @@ export declare class SacDateCommon extends SacBaseDateTimeControl {
|
|
|
100
97
|
/**
|
|
101
98
|
* Methode ergibt Datum - Moment
|
|
102
99
|
*/
|
|
103
|
-
ModifyParsedDateTimeValue(v: Moment): Moment;
|
|
100
|
+
ModifyParsedDateTimeValue(v: moment_.Moment): moment_.Moment;
|
|
104
101
|
/**
|
|
105
102
|
* Date Selector
|
|
106
103
|
*/
|
|
107
104
|
dateselect(v: any): void;
|
|
105
|
+
/**
|
|
106
|
+
* HostListener
|
|
107
|
+
*/
|
|
108
|
+
onClick(targetElement: any): void;
|
|
108
109
|
/**
|
|
109
110
|
* Zeigt Date Selector an
|
|
110
111
|
*/
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import * as IMask from 'imask';
|
|
4
|
-
import { Moment } from 'moment';
|
|
5
1
|
import { SacBaseDateTimeControl } from '../../common/basedatetimecontrol';
|
|
6
2
|
import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
3
|
+
import { ChangeDetectorRef, ElementRef, Injector } from '@angular/core';
|
|
4
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
|
+
import * as IMask from 'imask';
|
|
6
|
+
import * as moment_ from 'moment';
|
|
7
7
|
/**
|
|
8
8
|
* Komponente für SacDateTimeCommon. Extends SacBaseDateTimeControl
|
|
9
9
|
*/
|
|
10
|
-
export declare class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
10
|
+
export declare abstract class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
11
11
|
protected elementRef: ElementRef;
|
|
12
12
|
/**
|
|
13
13
|
* Format des Datums
|
|
@@ -57,6 +57,18 @@ export declare class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
57
57
|
lazy: boolean;
|
|
58
58
|
overwrite: boolean;
|
|
59
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* Maximaler Wert des Datums
|
|
62
|
+
*/
|
|
63
|
+
_maxdate: Date;
|
|
64
|
+
/**
|
|
65
|
+
* Minimaler Wert des Datums
|
|
66
|
+
*/
|
|
67
|
+
_mindate: Date;
|
|
68
|
+
/**
|
|
69
|
+
* Moment JS module instance
|
|
70
|
+
*/
|
|
71
|
+
moment: any;
|
|
60
72
|
/**
|
|
61
73
|
* Resource Key für Validation Message MaxDate bei Control
|
|
62
74
|
*/
|
|
@@ -73,25 +85,17 @@ export declare class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
73
85
|
* Resource Key für Validation Message MinDate in Validation Summary
|
|
74
86
|
*/
|
|
75
87
|
validationmessagesummarymindate: string;
|
|
76
|
-
/**
|
|
77
|
-
* Maximaler Wert des Datums
|
|
78
|
-
*/
|
|
79
|
-
_maxdate: Date;
|
|
80
|
-
/**
|
|
81
|
-
* Minimaler Wert des Datums
|
|
82
|
-
*/
|
|
83
|
-
_mindate: Date;
|
|
84
|
-
/**
|
|
85
|
-
* Definiert ob der Date Selector angezeigt wird
|
|
86
|
-
*/
|
|
87
|
-
_showselector: boolean;
|
|
88
88
|
/**
|
|
89
89
|
* Constructor
|
|
90
90
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
91
91
|
* @param injector Injector for injecting services
|
|
92
92
|
* @param elementRef reference to html element
|
|
93
93
|
*/
|
|
94
|
-
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef);
|
|
94
|
+
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef, cdRef: ChangeDetectorRef);
|
|
95
|
+
/**
|
|
96
|
+
* icon for date selector button
|
|
97
|
+
*/
|
|
98
|
+
get IconSelector(): string;
|
|
95
99
|
/**
|
|
96
100
|
* Max Date
|
|
97
101
|
*/
|
|
@@ -100,14 +104,6 @@ export declare class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
100
104
|
* Min Date
|
|
101
105
|
*/
|
|
102
106
|
set mindate(v: string | Date | null);
|
|
103
|
-
/**
|
|
104
|
-
* icon for date selector button
|
|
105
|
-
*/
|
|
106
|
-
get IconSelector(): string;
|
|
107
|
-
/**
|
|
108
|
-
* HostListener
|
|
109
|
-
*/
|
|
110
|
-
onClick(targetElement: any): void;
|
|
111
107
|
/**
|
|
112
108
|
* Methode ergibt Datum-Format vom String
|
|
113
109
|
*/
|
|
@@ -115,11 +111,15 @@ export declare class SacDateTimeCommon extends SacBaseDateTimeControl {
|
|
|
115
111
|
/**
|
|
116
112
|
* Methode modifiziert den parsed Wert des Datums
|
|
117
113
|
*/
|
|
118
|
-
ModifyParsedDateTimeValue(v: Moment): Moment;
|
|
114
|
+
ModifyParsedDateTimeValue(v: moment_.Moment): moment_.Moment;
|
|
119
115
|
/**
|
|
120
116
|
* Methode ergibt das selektierte Datum
|
|
121
117
|
*/
|
|
122
118
|
dateselect(v: any): void;
|
|
119
|
+
/**
|
|
120
|
+
* HostListener
|
|
121
|
+
*/
|
|
122
|
+
onClick(targetElement: any): void;
|
|
123
123
|
/**
|
|
124
124
|
* DateSelector wird beim Click-Event angezeigt
|
|
125
125
|
*/
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ElementRef, Injector } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
|
-
import * as IMask from 'imask';
|
|
4
|
-
import { Moment } from 'moment';
|
|
5
1
|
import { SacBaseDateTimeControl } from '../../common/basedatetimecontrol';
|
|
6
2
|
import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
3
|
+
import { ChangeDetectorRef, ElementRef, Injector } from '@angular/core';
|
|
4
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
5
|
+
import * as IMask from 'imask';
|
|
6
|
+
import * as moment_ from 'moment';
|
|
7
7
|
/**
|
|
8
8
|
* Komponente für SacTimeCommon. Extends SacBaseDateTimeControl
|
|
9
9
|
*/
|
|
@@ -37,6 +37,18 @@ export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
|
37
37
|
lazy: boolean;
|
|
38
38
|
overwrite: boolean;
|
|
39
39
|
};
|
|
40
|
+
/**
|
|
41
|
+
* Max Time
|
|
42
|
+
*/
|
|
43
|
+
_maxtime: Date;
|
|
44
|
+
/**
|
|
45
|
+
* Min Time
|
|
46
|
+
*/
|
|
47
|
+
_mintime: Date;
|
|
48
|
+
/**
|
|
49
|
+
* Moment JS module instance
|
|
50
|
+
*/
|
|
51
|
+
moment: any;
|
|
40
52
|
/**
|
|
41
53
|
* Resource Key für Validation Message MinTime bei Control
|
|
42
54
|
*/
|
|
@@ -53,25 +65,17 @@ export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
|
53
65
|
* Resource Key für Validation Message MinTime in Validation Summary
|
|
54
66
|
*/
|
|
55
67
|
validationmessagesummarymintime: string;
|
|
56
|
-
/**
|
|
57
|
-
* Max Time
|
|
58
|
-
*/
|
|
59
|
-
_maxtime: Date;
|
|
60
|
-
/**
|
|
61
|
-
* Min Time
|
|
62
|
-
*/
|
|
63
|
-
_mintime: Date;
|
|
64
|
-
/**
|
|
65
|
-
* Definiert ob der Date Selector angezeigt wird
|
|
66
|
-
*/
|
|
67
|
-
_showselector: boolean;
|
|
68
68
|
/**
|
|
69
69
|
* Constructor
|
|
70
70
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
71
71
|
* @param injector Injector for injecting services
|
|
72
72
|
* @param elementRef reference to html element
|
|
73
73
|
*/
|
|
74
|
-
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef);
|
|
74
|
+
constructor(formlayout: SacFormLayoutCommon, injector: Injector, elementRef: ElementRef, cdRef: ChangeDetectorRef);
|
|
75
|
+
/**
|
|
76
|
+
* icon for date selector button
|
|
77
|
+
*/
|
|
78
|
+
get IconSelector(): string;
|
|
75
79
|
/**
|
|
76
80
|
* Max Time
|
|
77
81
|
*/
|
|
@@ -80,14 +84,6 @@ export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
|
80
84
|
* Min Time
|
|
81
85
|
*/
|
|
82
86
|
set mintime(v: string | Date | null);
|
|
83
|
-
/**
|
|
84
|
-
* icon for date selector button
|
|
85
|
-
*/
|
|
86
|
-
get IconSelector(): string;
|
|
87
|
-
/**
|
|
88
|
-
* HostListener
|
|
89
|
-
*/
|
|
90
|
-
onClick(targetElement: any): void;
|
|
91
87
|
/**
|
|
92
88
|
* Methode ergibt Datum-Format vom String
|
|
93
89
|
*/
|
|
@@ -95,7 +91,11 @@ export declare class SacTimeCommon extends SacBaseDateTimeControl {
|
|
|
95
91
|
/**
|
|
96
92
|
* Methode ergibt Datum - Moment
|
|
97
93
|
*/
|
|
98
|
-
ModifyParsedDateTimeValue(v: Moment): Moment;
|
|
94
|
+
ModifyParsedDateTimeValue(v: moment_.Moment): moment_.Moment;
|
|
95
|
+
/**
|
|
96
|
+
* HostListener
|
|
97
|
+
*/
|
|
98
|
+
onClick(targetElement: any): void;
|
|
99
99
|
/**
|
|
100
100
|
* Zeigt Date Selector an
|
|
101
101
|
*/
|
|
@@ -4,15 +4,7 @@ import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy } from '@angular
|
|
|
4
4
|
*/
|
|
5
5
|
export declare class SacDialogCommon implements OnDestroy {
|
|
6
6
|
private cdRef;
|
|
7
|
-
/**
|
|
8
|
-
* Name des Containers für den Dialog
|
|
9
|
-
*/
|
|
10
|
-
dialogElement: ElementRef;
|
|
11
7
|
private hasSetBodyTag;
|
|
12
|
-
/**
|
|
13
|
-
* Implementation als Setter, da mit ngIf das Element bei Unsichtbarkeit UNDEFINED ist.
|
|
14
|
-
*/
|
|
15
|
-
set dialogElementSetter(content: ElementRef);
|
|
16
8
|
/**
|
|
17
9
|
* Boolean Property definiert ob das Dialog angezeigt wird
|
|
18
10
|
*/
|
|
@@ -21,11 +13,7 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
21
13
|
* Das property enthielt (wenn überhaupt gesetzt) entweder keywords für sizing oder custom css Klassen.
|
|
22
14
|
* Die akzeptabel keywordssind: 'small', 'large', 'extralarge', 'medium', ''.
|
|
23
15
|
*/
|
|
24
|
-
_size:
|
|
25
|
-
/**
|
|
26
|
-
* Input Property. Erhält den Title des Dialog. Default Value: 'Dialog'.
|
|
27
|
-
*/
|
|
28
|
-
title: string;
|
|
16
|
+
_size: 'small' | 'large' | 'extralarge' | 'medium' | '';
|
|
29
17
|
/**
|
|
30
18
|
* Das input property akzeptiert boolen Wert. Definiert ob das Dialog darf durch ESC geschlossen werden. Default ist true.
|
|
31
19
|
*/
|
|
@@ -34,66 +22,62 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
34
22
|
* Das input property akzeptiert boolen Wert. Definiert ob das Dialog darf durch click außerhalb des Dialog-Fenster geschlossen werden. Default ist true.
|
|
35
23
|
*/
|
|
36
24
|
backdrop: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Input Property. Erhält den Namen des Dialog - benutzt für das ID. Default Value: ''
|
|
39
|
-
*/
|
|
40
|
-
name: string;
|
|
41
25
|
/**
|
|
42
26
|
* Steuert ob im Header des Dialogs ein Button angezeigt wird.
|
|
43
27
|
*/
|
|
44
28
|
closebutton: boolean;
|
|
45
29
|
/**
|
|
46
|
-
*
|
|
30
|
+
* Name des Containers für den Dialog
|
|
47
31
|
*/
|
|
48
|
-
|
|
32
|
+
dialogElement: ElementRef;
|
|
49
33
|
/**
|
|
50
|
-
*
|
|
34
|
+
* Output Emitter. Wird aufgerufen, wenn das Wert des _show property geändert ist - damait das Dialog geöfnet/geschlossen wird.
|
|
51
35
|
*/
|
|
52
|
-
|
|
36
|
+
isvisibleChange: EventEmitter<boolean>;
|
|
53
37
|
/**
|
|
54
|
-
*
|
|
55
|
-
* case insensitive.
|
|
56
|
-
* Die akzeptabel default-size-Klassen sind: 'small', 'large', 'extralarge', 'medium', ''.
|
|
57
|
-
* Wenn size ist NICHT gesetzt (oder 'medium' oder ''), default ist in medium size: max-width 500px.
|
|
38
|
+
* Input Property. Erhält den Namen des Dialog - benutzt für das ID. Default Value: ''
|
|
58
39
|
*/
|
|
59
|
-
|
|
40
|
+
name: string;
|
|
60
41
|
/**
|
|
61
|
-
*
|
|
42
|
+
* Input Property. Erhält den Title des Dialog. Default Value: 'Dialog'.
|
|
62
43
|
*/
|
|
63
|
-
|
|
44
|
+
title: string;
|
|
64
45
|
/**
|
|
65
|
-
*
|
|
46
|
+
* Konstruktor
|
|
47
|
+
* Inject des Formulars
|
|
66
48
|
*/
|
|
67
|
-
|
|
49
|
+
constructor(cdRef: ChangeDetectorRef);
|
|
68
50
|
/**
|
|
69
|
-
*
|
|
51
|
+
* Implementation als Setter, da mit ngIf das Element bei Unsichtbarkeit UNDEFINED ist.
|
|
70
52
|
*/
|
|
71
|
-
|
|
53
|
+
set dialogElementSetter(content: ElementRef);
|
|
72
54
|
/**
|
|
73
|
-
*
|
|
55
|
+
* Getter. Ergibt das boolen Wert des _show property
|
|
74
56
|
*/
|
|
75
|
-
|
|
57
|
+
get isvisible(): boolean;
|
|
76
58
|
/**
|
|
77
|
-
*
|
|
78
|
-
* Inject des Formulars
|
|
59
|
+
* Setter. Erhält das boolen Wert des _show property
|
|
79
60
|
*/
|
|
80
|
-
|
|
61
|
+
set isvisible(v: boolean);
|
|
81
62
|
/**
|
|
82
|
-
*
|
|
63
|
+
* Das Input akzeptiert sowohl default size-css-Klassen als auch custom Klassen.
|
|
64
|
+
* case insensitive.
|
|
65
|
+
* Die akzeptabel default-size-Klassen sind: 'small', 'large', 'extralarge', 'medium', ''.
|
|
66
|
+
* Wenn size ist NICHT gesetzt (oder 'medium' oder ''), default ist in medium size: max-width 500px.
|
|
83
67
|
*/
|
|
84
|
-
|
|
68
|
+
set size(v: 'small' | 'large' | 'extralarge' | 'medium' | '');
|
|
85
69
|
/**
|
|
86
|
-
*
|
|
70
|
+
* Getter for ChangeDetector.
|
|
87
71
|
*/
|
|
88
|
-
|
|
72
|
+
protected get ChangeDetector(): ChangeDetectorRef;
|
|
89
73
|
/**
|
|
90
74
|
* Die Methode setz den Wert des _show property auf false
|
|
91
75
|
*/
|
|
92
76
|
hide(): void;
|
|
93
77
|
/**
|
|
94
|
-
*
|
|
78
|
+
* Methode wenn Componente entfernt wird
|
|
95
79
|
*/
|
|
96
|
-
|
|
80
|
+
ngOnDestroy(): void;
|
|
97
81
|
/**
|
|
98
82
|
* Allow Close by Click outside Dialog
|
|
99
83
|
*/
|
|
@@ -102,4 +86,8 @@ export declare class SacDialogCommon implements OnDestroy {
|
|
|
102
86
|
* Allow Close by ESC
|
|
103
87
|
*/
|
|
104
88
|
onKeydownHandler(event: KeyboardEvent): void;
|
|
89
|
+
/**
|
|
90
|
+
* Die Methode setz den Wert des _show property auf true
|
|
91
|
+
*/
|
|
92
|
+
show(): void;
|
|
105
93
|
}
|
|
@@ -51,6 +51,10 @@ export declare class SacFormLayoutCommon {
|
|
|
51
51
|
* default label size for extra extra large devices
|
|
52
52
|
*/
|
|
53
53
|
labelSizeXxl: number | null;
|
|
54
|
+
/**
|
|
55
|
+
* Detach label text and tooltip from each other in Label so that label and tooltip can be aligned differently. This is in Bootstrap 3 not supported!
|
|
56
|
+
*/
|
|
57
|
+
splitlabelandhelptext: boolean | null;
|
|
54
58
|
/**
|
|
55
59
|
* Returns whether the inline error messages for the form are active.
|
|
56
60
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, Injector,
|
|
1
|
+
import { ElementRef, Injector, Renderer2 } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { SacBaseSelectControl } from '../../common/baseselectcontrol';
|
|
4
4
|
import { SacFormLayoutCommon } from '../layout/formlayout';
|
|
@@ -12,6 +12,14 @@ export declare class SacDropdownCommon extends SacBaseSelectControl<any> {
|
|
|
12
12
|
* compareWith-Funktion
|
|
13
13
|
*/
|
|
14
14
|
private _compareWith;
|
|
15
|
+
/**
|
|
16
|
+
* Counter vom OptionID; default Wert = 0
|
|
17
|
+
*/
|
|
18
|
+
_optionIdCounter: number;
|
|
19
|
+
/**
|
|
20
|
+
* OptionMap
|
|
21
|
+
*/
|
|
22
|
+
_optionMap: Map<string, any>;
|
|
15
23
|
/**
|
|
16
24
|
* Label Text für Empty Item
|
|
17
25
|
*/
|
|
@@ -28,14 +36,6 @@ export declare class SacDropdownCommon extends SacBaseSelectControl<any> {
|
|
|
28
36
|
* Resource Key für Validation Message Required in Validation Summary
|
|
29
37
|
*/
|
|
30
38
|
validationmessagesummaryrequired: string;
|
|
31
|
-
/**
|
|
32
|
-
* Counter vom OptionID; default Wert = 0
|
|
33
|
-
*/
|
|
34
|
-
_optionIdCounter: number;
|
|
35
|
-
/**
|
|
36
|
-
* OptionMap
|
|
37
|
-
*/
|
|
38
|
-
_optionMap: Map<string, any>;
|
|
39
39
|
/**
|
|
40
40
|
* Constructor
|
|
41
41
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
@@ -94,45 +94,3 @@ export declare class SacDropdownCommon extends SacBaseSelectControl<any> {
|
|
|
94
94
|
*/
|
|
95
95
|
private setSelectedValue;
|
|
96
96
|
}
|
|
97
|
-
/**
|
|
98
|
-
* SacDropdownOption-Klasse
|
|
99
|
-
*/
|
|
100
|
-
export declare class SacDropdownOptionCommon implements OnDestroy {
|
|
101
|
-
private _element;
|
|
102
|
-
private _renderer;
|
|
103
|
-
private _dropdown;
|
|
104
|
-
/**
|
|
105
|
-
* ID-String
|
|
106
|
-
*/
|
|
107
|
-
private id;
|
|
108
|
-
/**
|
|
109
|
-
* Konstruktor
|
|
110
|
-
* @param _element Referenz auf HTML Element
|
|
111
|
-
* @param _renderer Render Engine
|
|
112
|
-
* @param _dropdown Dropdown Instanz
|
|
113
|
-
*/
|
|
114
|
-
constructor(_element: ElementRef, _renderer: Renderer2, _dropdown: SacDropdownCommon);
|
|
115
|
-
/**
|
|
116
|
-
* Option ngValue
|
|
117
|
-
*/
|
|
118
|
-
set ngValue(value: any);
|
|
119
|
-
/**
|
|
120
|
-
* Wert-Setter
|
|
121
|
-
*/
|
|
122
|
-
set value(value: any);
|
|
123
|
-
/**
|
|
124
|
-
* Den Wert vom Option-Element einstellen
|
|
125
|
-
* @param value Wert
|
|
126
|
-
*/
|
|
127
|
-
_setElementValue(value: string): void;
|
|
128
|
-
/**
|
|
129
|
-
* OnDestroy Event
|
|
130
|
-
*/
|
|
131
|
-
ngOnDestroy(): void;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Function um ein Key Value Pair für das Dropdown zu erzeugen
|
|
135
|
-
* @param id ID
|
|
136
|
-
* @param value Wert der an das Element gebunden werden soll
|
|
137
|
-
*/
|
|
138
|
-
export declare function _buildValueString(id: string | null, value: any): string;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
+
import { SacDropdownCommon } from './dropdown';
|
|
3
|
+
/**
|
|
4
|
+
* SacDropdownOption-Klasse
|
|
5
|
+
*/
|
|
6
|
+
export declare class SacDropdownOptionCommon implements OnDestroy {
|
|
7
|
+
private _element;
|
|
8
|
+
private _renderer;
|
|
9
|
+
private _dropdown;
|
|
10
|
+
/**
|
|
11
|
+
* ID-String
|
|
12
|
+
*/
|
|
13
|
+
private id;
|
|
14
|
+
/**
|
|
15
|
+
* Konstruktor
|
|
16
|
+
* @param _element Referenz auf HTML Element
|
|
17
|
+
* @param _renderer Render Engine
|
|
18
|
+
* @param _dropdown Dropdown Instanz
|
|
19
|
+
*/
|
|
20
|
+
constructor(_element: ElementRef, _renderer: Renderer2, _dropdown: SacDropdownCommon);
|
|
21
|
+
/**
|
|
22
|
+
* Option ngValue
|
|
23
|
+
*/
|
|
24
|
+
set ngValue(value: any);
|
|
25
|
+
/**
|
|
26
|
+
* Wert-Setter
|
|
27
|
+
*/
|
|
28
|
+
set value(value: any);
|
|
29
|
+
/**
|
|
30
|
+
* Den Wert vom Option-Element einstellen
|
|
31
|
+
* @param value Wert
|
|
32
|
+
*/
|
|
33
|
+
_setElementValue(value: string): void;
|
|
34
|
+
/**
|
|
35
|
+
* OnDestroy Event
|
|
36
|
+
*/
|
|
37
|
+
ngOnDestroy(): void;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
2
1
|
import { SacBaseModelControl } from '../../common/basemodelcontrol';
|
|
2
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
3
3
|
/**
|
|
4
4
|
* Common Control für Form Item Container.
|
|
5
5
|
**/
|
|
@@ -9,13 +9,21 @@ export declare class SacStaticFormContainerCommon extends SacBaseModelControl<st
|
|
|
9
9
|
*/
|
|
10
10
|
private _isrequired;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Error message to be displayed
|
|
13
13
|
*/
|
|
14
|
-
|
|
14
|
+
errormessage: string;
|
|
15
|
+
/**
|
|
16
|
+
* Activates the error message on the container control
|
|
17
|
+
*/
|
|
18
|
+
isinvalid: boolean;
|
|
15
19
|
/**
|
|
16
20
|
* Definiert den Container als Required Form Item
|
|
17
21
|
*/
|
|
18
22
|
get isrequired(): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Definiert den Container als Required Form Item
|
|
25
|
+
*/
|
|
26
|
+
set isrequired(v: boolean);
|
|
19
27
|
/**
|
|
20
28
|
* Validierung des Controls
|
|
21
29
|
*
|