@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('@angular/forms'), require('moment'), require('imask'), require('ngx-uploadx'), require('@angular/common')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@simpleangularcontrols/sac-common', ['exports', '@angular/core', '@angular/common/http', 'rxjs', '@angular/forms', 'moment', 'imask', 'ngx-uploadx', '@angular/common'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.simpleangularcontrols = global.simpleangularcontrols || {}, global.simpleangularcontrols['sac-common'] = {}), global.ng.core, global.ng.common.http, global.rxjs, global.ng.forms, global.moment, global.IMask, global.ngxUploadx, global.ng.common));
|
|
5
|
-
}(this, (function (exports, i0, i1, rxjs, forms, moment_, IMask, ngxUploadx, common) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common/http'), require('rxjs'), require('@angular/forms'), require('moment'), require('angular-imask'), require('imask'), require('ngx-uploadx'), require('@angular/common')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@simpleangularcontrols/sac-common', ['exports', '@angular/core', '@angular/common/http', 'rxjs', '@angular/forms', 'moment', 'angular-imask', 'imask', 'ngx-uploadx', '@angular/common'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.simpleangularcontrols = global.simpleangularcontrols || {}, global.simpleangularcontrols['sac-common'] = {}), global.ng.core, global.ng.common.http, global.rxjs, global.ng.forms, global.moment, global.angularImask, global.IMask, global.ngxUploadx, global.ng.common));
|
|
5
|
+
}(this, (function (exports, i0, i1, rxjs, forms, moment_, angularImask, IMask, ngxUploadx, common) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -23,37 +23,51 @@
|
|
|
23
23
|
*/
|
|
24
24
|
this._role = 'default';
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
27
|
-
*/
|
|
28
|
-
this.icon = '';
|
|
29
|
-
/**
|
|
30
|
-
* Input Property für Name; default Wert - ''
|
|
31
|
-
*/
|
|
32
|
-
this.name = '';
|
|
33
|
-
/**
|
|
34
|
-
* Input Property für Text des Buttons; default Wert - ''
|
|
26
|
+
* Das boolean property ist benutzt für Aktivation des Spinner des Button. Default ist false.
|
|
35
27
|
*/
|
|
36
|
-
this.
|
|
28
|
+
this._isloadingvalue = false;
|
|
37
29
|
/**
|
|
38
30
|
* Output Event Emitter
|
|
39
31
|
*/
|
|
40
32
|
this.clicked = new i0.EventEmitter();
|
|
41
33
|
/**
|
|
42
|
-
*
|
|
34
|
+
* Identifier used for the E2E data attribute.
|
|
43
35
|
*/
|
|
44
|
-
this.
|
|
36
|
+
this.e2eidentifier = null;
|
|
45
37
|
/**
|
|
46
38
|
* Boolean Property für Error; default Wert - false
|
|
47
39
|
*/
|
|
48
40
|
this.hasError = false;
|
|
41
|
+
/**
|
|
42
|
+
* Input Property für Icon Style Klasse; default Wert - ''
|
|
43
|
+
*/
|
|
44
|
+
this.icon = '';
|
|
45
|
+
/**
|
|
46
|
+
* Input Property für Name; default Wert - ''
|
|
47
|
+
*/
|
|
48
|
+
this.name = '';
|
|
49
|
+
/**
|
|
50
|
+
* Input Property für Text des Buttons; default Wert - ''
|
|
51
|
+
*/
|
|
52
|
+
this.text = '';
|
|
49
53
|
// #endregion Public Methods
|
|
50
54
|
}
|
|
55
|
+
Object.defineProperty(SacButtonCommon.prototype, "_isdisabled", {
|
|
56
|
+
// #endregion Properties
|
|
57
|
+
// #region Public Getters And Setters
|
|
58
|
+
/**
|
|
59
|
+
* Getter Methode. Ergibt boolean Wert. Definiert, ob das Button desabled ist.
|
|
60
|
+
*/
|
|
61
|
+
get: function () {
|
|
62
|
+
return this._isdisabledvalue;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
51
67
|
Object.defineProperty(SacButtonCommon.prototype, "isdisabled", {
|
|
52
68
|
get: function () {
|
|
53
69
|
return this._isdisabledvalue;
|
|
54
70
|
},
|
|
55
|
-
// #endregion Properties
|
|
56
|
-
// #region Public Getters And Setters
|
|
57
71
|
/**
|
|
58
72
|
* Deaktivieren von Buttons
|
|
59
73
|
* @param v Deaktiviert den Button
|
|
@@ -130,16 +144,6 @@
|
|
|
130
144
|
enumerable: false,
|
|
131
145
|
configurable: true
|
|
132
146
|
});
|
|
133
|
-
Object.defineProperty(SacButtonCommon.prototype, "_isdisabled", {
|
|
134
|
-
/**
|
|
135
|
-
* Getter Methode. Ergibt boolean Wert. Definiert, ob das Button desabled ist.
|
|
136
|
-
*/
|
|
137
|
-
get: function () {
|
|
138
|
-
return this._isdisabledvalue;
|
|
139
|
-
},
|
|
140
|
-
enumerable: false,
|
|
141
|
-
configurable: true
|
|
142
|
-
});
|
|
143
147
|
// #endregion Public Getters And Setters
|
|
144
148
|
// #region Public Methods
|
|
145
149
|
/**
|
|
@@ -156,10 +160,11 @@
|
|
|
156
160
|
{ type: i0.Directive }
|
|
157
161
|
];
|
|
158
162
|
SacButtonCommon.propDecorators = {
|
|
163
|
+
clicked: [{ type: i0.Output }],
|
|
164
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
159
165
|
icon: [{ type: i0.Input }],
|
|
160
166
|
name: [{ type: i0.Input }],
|
|
161
167
|
text: [{ type: i0.Input }],
|
|
162
|
-
clicked: [{ type: i0.Output }],
|
|
163
168
|
isdisabled: [{ type: i0.Input }],
|
|
164
169
|
isloading: [{ type: i0.Input }],
|
|
165
170
|
role: [{ type: i0.Input }]
|
|
@@ -678,6 +683,7 @@
|
|
|
678
683
|
*/
|
|
679
684
|
var SacFormLayoutCommon = /** @class */ (function () {
|
|
680
685
|
function SacFormLayoutCommon() {
|
|
686
|
+
// #region Properties
|
|
681
687
|
/**
|
|
682
688
|
* Defines the default display for a checkbox. You can choose between a checkbox and a switch. If no style is defined, the global style or the style on the control is used.
|
|
683
689
|
*/
|
|
@@ -726,8 +732,11 @@
|
|
|
726
732
|
* 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!
|
|
727
733
|
*/
|
|
728
734
|
this.splitlabelandhelptext = null;
|
|
735
|
+
// #endregion Public Getters And Setters
|
|
729
736
|
}
|
|
730
737
|
Object.defineProperty(SacFormLayoutCommon.prototype, "IsInlineErrorEnabled", {
|
|
738
|
+
// #endregion Properties
|
|
739
|
+
// #region Public Getters And Setters
|
|
731
740
|
/**
|
|
732
741
|
* Returns whether the inline error messages for the form are active.
|
|
733
742
|
*/
|
|
@@ -776,6 +785,13 @@
|
|
|
776
785
|
ControlHeight[ControlHeight["Large"] = 2] = "Large";
|
|
777
786
|
})(exports.ControlHeight || (exports.ControlHeight = {}));
|
|
778
787
|
|
|
788
|
+
// #region Variables
|
|
789
|
+
/**
|
|
790
|
+
* injection token for component configuration service
|
|
791
|
+
*/
|
|
792
|
+
var SACCONFIGURATION_SERVICE = new i0.InjectionToken('SacConfigurationService');
|
|
793
|
+
// #endregion Variables
|
|
794
|
+
// #region Exported Classes
|
|
779
795
|
/**
|
|
780
796
|
* abstract class for configuration settings providing in components
|
|
781
797
|
*/
|
|
@@ -797,6 +813,7 @@
|
|
|
797
813
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
798
814
|
}
|
|
799
815
|
Object.defineProperty(SacDefaultConfigurationService.prototype, "CheckboxStyle", {
|
|
816
|
+
// #region Public Getters And Setters
|
|
800
817
|
/**
|
|
801
818
|
* @inheritdoc
|
|
802
819
|
*/
|
|
@@ -826,6 +843,16 @@
|
|
|
826
843
|
enumerable: false,
|
|
827
844
|
configurable: true
|
|
828
845
|
});
|
|
846
|
+
Object.defineProperty(SacDefaultConfigurationService.prototype, "EnableE2EAttributes", {
|
|
847
|
+
/**
|
|
848
|
+
* @inheritdoc
|
|
849
|
+
*/
|
|
850
|
+
get: function () {
|
|
851
|
+
return false;
|
|
852
|
+
},
|
|
853
|
+
enumerable: false,
|
|
854
|
+
configurable: true
|
|
855
|
+
});
|
|
829
856
|
Object.defineProperty(SacDefaultConfigurationService.prototype, "HelptextMode", {
|
|
830
857
|
/**
|
|
831
858
|
* @inheritdoc
|
|
@@ -932,10 +959,6 @@
|
|
|
932
959
|
SacDefaultConfigurationService.decorators = [
|
|
933
960
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
934
961
|
];
|
|
935
|
-
/**
|
|
936
|
-
* injection token for component configuration service
|
|
937
|
-
*/
|
|
938
|
-
var SACCONFIGURATION_SERVICE = new i0.InjectionToken('SacConfigurationService');
|
|
939
962
|
|
|
940
963
|
/**
|
|
941
964
|
* Klasse für API Request zum löschen eines Files
|
|
@@ -1035,10 +1058,13 @@
|
|
|
1035
1058
|
return BrowserNodeRequest;
|
|
1036
1059
|
}());
|
|
1037
1060
|
|
|
1061
|
+
// #region Variables
|
|
1038
1062
|
/**
|
|
1039
1063
|
* Injection Token für Language Service
|
|
1040
1064
|
*/
|
|
1041
1065
|
var SACFILEBROWSER_SERVICE = new i0.InjectionToken('FileBrowserService');
|
|
1066
|
+
// #endregion Variables
|
|
1067
|
+
// #region Exported Classes
|
|
1042
1068
|
/**
|
|
1043
1069
|
* Abstrakte Implementierung des File Service für die Browser Component
|
|
1044
1070
|
*/
|
|
@@ -1058,6 +1084,7 @@
|
|
|
1058
1084
|
*/
|
|
1059
1085
|
var SacDefaultFileBrowserService = /** @class */ (function (_super) {
|
|
1060
1086
|
__extends(SacDefaultFileBrowserService, _super);
|
|
1087
|
+
// #region Constructors
|
|
1061
1088
|
/**
|
|
1062
1089
|
* Konstruktor
|
|
1063
1090
|
* @param httpclient HTTP Client Service
|
|
@@ -1067,18 +1094,20 @@
|
|
|
1067
1094
|
_this.httpclient = httpclient;
|
|
1068
1095
|
return _this;
|
|
1069
1096
|
}
|
|
1097
|
+
// #endregion Constructors
|
|
1098
|
+
// #region Public Methods
|
|
1070
1099
|
/**
|
|
1071
|
-
*
|
|
1100
|
+
* Löscht eine Datei
|
|
1072
1101
|
* @param apiurl URL zu API Service
|
|
1073
|
-
* @param path Pfad des
|
|
1074
|
-
* @param allowedextensions Erlaubte Extensions
|
|
1102
|
+
* @param path Pfad des Files welches gelöscht werden soll
|
|
1103
|
+
* @param allowedextensions Erlaubte Extensions für Files
|
|
1075
1104
|
*/
|
|
1076
|
-
SacDefaultFileBrowserService.prototype.
|
|
1077
|
-
var url = apiurl + "/
|
|
1105
|
+
SacDefaultFileBrowserService.prototype.DeleteFile = function (apiurl, path, allowedextensions) {
|
|
1106
|
+
var url = apiurl + "/deletefile";
|
|
1078
1107
|
if (!path) {
|
|
1079
1108
|
path = '';
|
|
1080
1109
|
}
|
|
1081
|
-
var request = new
|
|
1110
|
+
var request = new BrowserFileDeleteRequest({
|
|
1082
1111
|
Path: path,
|
|
1083
1112
|
AllowedTypes: allowedextensions,
|
|
1084
1113
|
});
|
|
@@ -1087,113 +1116,115 @@
|
|
|
1087
1116
|
});
|
|
1088
1117
|
};
|
|
1089
1118
|
/**
|
|
1090
|
-
*
|
|
1119
|
+
* Löscht einen Node
|
|
1091
1120
|
* @param apiurl URL zu API Service
|
|
1092
|
-
* @param path Pfad
|
|
1093
|
-
* @param newFoldername Name des neuen Nodes
|
|
1121
|
+
* @param path Pfad des Nodes welcher gelöscht werden soll
|
|
1094
1122
|
*/
|
|
1095
|
-
SacDefaultFileBrowserService.prototype.
|
|
1096
|
-
var url = apiurl + "/
|
|
1123
|
+
SacDefaultFileBrowserService.prototype.DeleteNode = function (apiurl, path) {
|
|
1124
|
+
var url = apiurl + "/deletenode";
|
|
1097
1125
|
if (!path) {
|
|
1098
1126
|
path = '';
|
|
1099
1127
|
}
|
|
1100
|
-
var request = new
|
|
1128
|
+
var request = new BrowserNodeDeleteRequest({
|
|
1101
1129
|
Path: path,
|
|
1102
|
-
NewFoldername: newFoldername,
|
|
1103
1130
|
});
|
|
1104
1131
|
return this.httpclient.post(url, request, {
|
|
1105
1132
|
withCredentials: true,
|
|
1106
1133
|
});
|
|
1107
1134
|
};
|
|
1108
1135
|
/**
|
|
1109
|
-
*
|
|
1136
|
+
* Methode welche die Dateien eines Nodes ausliest
|
|
1110
1137
|
* @param apiurl URL zu API Service
|
|
1111
|
-
* @param path Pfad des Nodes
|
|
1112
|
-
* @param
|
|
1138
|
+
* @param path Pfad des Nodes in welchem die Files gelesen werden sollen
|
|
1139
|
+
* @param allowedextensions Erlaubte File Extensions
|
|
1113
1140
|
*/
|
|
1114
|
-
SacDefaultFileBrowserService.prototype.
|
|
1115
|
-
var url = apiurl + "/
|
|
1141
|
+
SacDefaultFileBrowserService.prototype.GetFiles = function (apiurl, path, allowedextensions) {
|
|
1142
|
+
var url = apiurl + "/getfiles";
|
|
1116
1143
|
if (!path) {
|
|
1117
1144
|
path = '';
|
|
1118
1145
|
}
|
|
1119
|
-
var request = new
|
|
1146
|
+
var request = new BrowserNodeRequest({
|
|
1120
1147
|
Path: path,
|
|
1121
|
-
|
|
1148
|
+
AllowedTypes: allowedextensions,
|
|
1122
1149
|
});
|
|
1123
|
-
return this.httpclient.
|
|
1150
|
+
return this.httpclient.post(url, request, {
|
|
1124
1151
|
withCredentials: true,
|
|
1125
1152
|
});
|
|
1126
1153
|
};
|
|
1127
1154
|
/**
|
|
1128
|
-
*
|
|
1155
|
+
* Gibt einen Node zurück
|
|
1129
1156
|
* @param apiurl URL zu API Service
|
|
1130
|
-
* @param path Pfad des
|
|
1157
|
+
* @param path Pfad des Node welcher angefordert wird
|
|
1158
|
+
* @param allowedextensions Erlaubte Extensions die angezeigt werden dürfen
|
|
1131
1159
|
*/
|
|
1132
|
-
SacDefaultFileBrowserService.prototype.
|
|
1133
|
-
var url = apiurl + "/
|
|
1160
|
+
SacDefaultFileBrowserService.prototype.GetNode = function (apiurl, path, allowedextensions) {
|
|
1161
|
+
var url = apiurl + "/getnodes";
|
|
1134
1162
|
if (!path) {
|
|
1135
1163
|
path = '';
|
|
1136
1164
|
}
|
|
1137
|
-
var request = new
|
|
1165
|
+
var request = new BrowserNodeRequest({
|
|
1138
1166
|
Path: path,
|
|
1167
|
+
AllowedTypes: allowedextensions,
|
|
1139
1168
|
});
|
|
1140
1169
|
return this.httpclient.post(url, request, {
|
|
1141
1170
|
withCredentials: true,
|
|
1142
1171
|
});
|
|
1143
1172
|
};
|
|
1144
1173
|
/**
|
|
1145
|
-
* Methode welche
|
|
1174
|
+
* Methode welche eine Datei umbenannt
|
|
1146
1175
|
* @param apiurl URL zu API Service
|
|
1147
|
-
* @param path Pfad
|
|
1148
|
-
* @param
|
|
1176
|
+
* @param path Pfad zum File welches umbenannt werden soll
|
|
1177
|
+
* @param newFilename Neuer Dateiname
|
|
1178
|
+
* @param allowedextensions Erlaubte Extension für Files
|
|
1149
1179
|
*/
|
|
1150
|
-
SacDefaultFileBrowserService.prototype.
|
|
1151
|
-
var url = apiurl + "/
|
|
1180
|
+
SacDefaultFileBrowserService.prototype.RenameFile = function (apiurl, path, newFilename, allowedextensions) {
|
|
1181
|
+
var url = apiurl + "/renamefile";
|
|
1152
1182
|
if (!path) {
|
|
1153
1183
|
path = '';
|
|
1154
1184
|
}
|
|
1155
|
-
var request = new
|
|
1185
|
+
var request = new BrowserFileRenameRequest({
|
|
1156
1186
|
Path: path,
|
|
1187
|
+
NewFilename: newFilename,
|
|
1157
1188
|
AllowedTypes: allowedextensions,
|
|
1158
1189
|
});
|
|
1159
|
-
return this.httpclient.
|
|
1190
|
+
return this.httpclient.put(url, request, {
|
|
1160
1191
|
withCredentials: true,
|
|
1161
1192
|
});
|
|
1162
1193
|
};
|
|
1163
1194
|
/**
|
|
1164
|
-
*
|
|
1195
|
+
* Rename eines Nodes
|
|
1165
1196
|
* @param apiurl URL zu API Service
|
|
1166
|
-
* @param path Pfad
|
|
1167
|
-
* @param
|
|
1168
|
-
* @param allowedextensions Erlaubte Extensions für den Upload
|
|
1197
|
+
* @param path Pfad des Nodes welcher umbenannt werden soll
|
|
1198
|
+
* @param newFoldername Neuer Name des Nodes
|
|
1169
1199
|
*/
|
|
1170
|
-
SacDefaultFileBrowserService.prototype.
|
|
1171
|
-
var url = apiurl + "/
|
|
1200
|
+
SacDefaultFileBrowserService.prototype.RenameNode = function (apiurl, path, newFoldername) {
|
|
1201
|
+
var url = apiurl + "/renamenode";
|
|
1172
1202
|
if (!path) {
|
|
1173
1203
|
path = '';
|
|
1174
1204
|
}
|
|
1175
|
-
var request = new
|
|
1205
|
+
var request = new BrowserNodeRenameRequest({
|
|
1176
1206
|
Path: path,
|
|
1177
|
-
|
|
1178
|
-
AllowedTypes: allowedextensions,
|
|
1207
|
+
NewFoldername: newFoldername,
|
|
1179
1208
|
});
|
|
1180
|
-
return this.httpclient.
|
|
1209
|
+
return this.httpclient.put(url, request, {
|
|
1181
1210
|
withCredentials: true,
|
|
1182
1211
|
});
|
|
1183
1212
|
};
|
|
1184
1213
|
/**
|
|
1185
|
-
*
|
|
1214
|
+
* Speichert eine Hochgeladene Datei in der Struktur
|
|
1186
1215
|
* @param apiurl URL zu API Service
|
|
1187
|
-
* @param path Pfad
|
|
1188
|
-
* @param
|
|
1216
|
+
* @param path Pfad in welchem das neue File gespeichert werden soll
|
|
1217
|
+
* @param id ID des Uploads
|
|
1218
|
+
* @param allowedextensions Erlaubte Extensions für den Upload
|
|
1189
1219
|
*/
|
|
1190
|
-
SacDefaultFileBrowserService.prototype.
|
|
1191
|
-
var url = apiurl + "/
|
|
1220
|
+
SacDefaultFileBrowserService.prototype.SaveFile = function (apiurl, path, id, allowedextensions) {
|
|
1221
|
+
var url = apiurl + "/uploadfile";
|
|
1192
1222
|
if (!path) {
|
|
1193
1223
|
path = '';
|
|
1194
1224
|
}
|
|
1195
|
-
var request = new
|
|
1225
|
+
var request = new BrowserFileSaveRequest({
|
|
1196
1226
|
Path: path,
|
|
1227
|
+
UploadId: id,
|
|
1197
1228
|
AllowedTypes: allowedextensions,
|
|
1198
1229
|
});
|
|
1199
1230
|
return this.httpclient.post(url, request, {
|
|
@@ -1201,23 +1232,21 @@
|
|
|
1201
1232
|
});
|
|
1202
1233
|
};
|
|
1203
1234
|
/**
|
|
1204
|
-
*
|
|
1235
|
+
* Speichert einen Node
|
|
1205
1236
|
* @param apiurl URL zu API Service
|
|
1206
|
-
* @param path Pfad
|
|
1207
|
-
* @param
|
|
1208
|
-
* @param allowedextensions Erlaubte Extension für Files
|
|
1237
|
+
* @param path Pfad in welchem der Node gespeichert werden soll
|
|
1238
|
+
* @param newFoldername Name des neuen Nodes
|
|
1209
1239
|
*/
|
|
1210
|
-
SacDefaultFileBrowserService.prototype.
|
|
1211
|
-
var url = apiurl + "/
|
|
1240
|
+
SacDefaultFileBrowserService.prototype.SaveNode = function (apiurl, path, newFoldername) {
|
|
1241
|
+
var url = apiurl + "/newnode";
|
|
1212
1242
|
if (!path) {
|
|
1213
1243
|
path = '';
|
|
1214
1244
|
}
|
|
1215
|
-
var request = new
|
|
1245
|
+
var request = new BrowserNodeNewRequest({
|
|
1216
1246
|
Path: path,
|
|
1217
|
-
|
|
1218
|
-
AllowedTypes: allowedextensions,
|
|
1247
|
+
NewFoldername: newFoldername,
|
|
1219
1248
|
});
|
|
1220
|
-
return this.httpclient.
|
|
1249
|
+
return this.httpclient.post(url, request, {
|
|
1221
1250
|
withCredentials: true,
|
|
1222
1251
|
});
|
|
1223
1252
|
};
|
|
@@ -1401,6 +1430,56 @@
|
|
|
1401
1430
|
enumerable: false,
|
|
1402
1431
|
configurable: true
|
|
1403
1432
|
});
|
|
1433
|
+
Object.defineProperty(SacDefaultIconService.prototype, "GridButtonDefaultDeleteIcon", {
|
|
1434
|
+
/**
|
|
1435
|
+
* @inheritdoc
|
|
1436
|
+
*/
|
|
1437
|
+
get: function () {
|
|
1438
|
+
return 'fa-trash';
|
|
1439
|
+
},
|
|
1440
|
+
enumerable: false,
|
|
1441
|
+
configurable: true
|
|
1442
|
+
});
|
|
1443
|
+
Object.defineProperty(SacDefaultIconService.prototype, "GridButtonDefaultDeleteIconSet", {
|
|
1444
|
+
/**
|
|
1445
|
+
* @inheritdoc
|
|
1446
|
+
*/
|
|
1447
|
+
get: function () {
|
|
1448
|
+
return 'fa';
|
|
1449
|
+
},
|
|
1450
|
+
enumerable: false,
|
|
1451
|
+
configurable: true
|
|
1452
|
+
});
|
|
1453
|
+
Object.defineProperty(SacDefaultIconService.prototype, "GridButtonDefaultEditIcon", {
|
|
1454
|
+
/**
|
|
1455
|
+
* @inheritdoc
|
|
1456
|
+
*/
|
|
1457
|
+
get: function () {
|
|
1458
|
+
return 'fa-pen';
|
|
1459
|
+
},
|
|
1460
|
+
enumerable: false,
|
|
1461
|
+
configurable: true
|
|
1462
|
+
});
|
|
1463
|
+
Object.defineProperty(SacDefaultIconService.prototype, "GridButtonDefaultEditIconSet", {
|
|
1464
|
+
/**
|
|
1465
|
+
* @inheritdoc
|
|
1466
|
+
*/
|
|
1467
|
+
get: function () {
|
|
1468
|
+
return 'fa';
|
|
1469
|
+
},
|
|
1470
|
+
enumerable: false,
|
|
1471
|
+
configurable: true
|
|
1472
|
+
});
|
|
1473
|
+
Object.defineProperty(SacDefaultIconService.prototype, "GridButtonDisabledIconSuffix", {
|
|
1474
|
+
/**
|
|
1475
|
+
* @inheritdoc
|
|
1476
|
+
*/
|
|
1477
|
+
get: function () {
|
|
1478
|
+
return ' disabled';
|
|
1479
|
+
},
|
|
1480
|
+
enumerable: false,
|
|
1481
|
+
configurable: true
|
|
1482
|
+
});
|
|
1404
1483
|
Object.defineProperty(SacDefaultIconService.prototype, "GridComponentSortDown", {
|
|
1405
1484
|
/**
|
|
1406
1485
|
* @inheritdoc
|
|
@@ -1566,10 +1645,13 @@
|
|
|
1566
1645
|
IconType[IconType["CssSprite"] = 2] = "CssSprite";
|
|
1567
1646
|
})(exports.IconType || (exports.IconType = {}));
|
|
1568
1647
|
|
|
1648
|
+
// #region Variables
|
|
1569
1649
|
/**
|
|
1570
1650
|
* injection token for language service
|
|
1571
1651
|
*/
|
|
1572
1652
|
var SACLANGUAGE_SERVICE = new i0.InjectionToken('SacLanguageService');
|
|
1653
|
+
// #endregion Variables
|
|
1654
|
+
// #region Exported Classes
|
|
1573
1655
|
/**
|
|
1574
1656
|
* abstract class for languages provides in components
|
|
1575
1657
|
*/
|
|
@@ -1590,6 +1672,7 @@
|
|
|
1590
1672
|
function SacDefaultLanguageService() {
|
|
1591
1673
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1592
1674
|
}
|
|
1675
|
+
// #region Public Methods
|
|
1593
1676
|
/**
|
|
1594
1677
|
* @inheritdoc
|
|
1595
1678
|
*/
|
|
@@ -2591,10 +2674,10 @@
|
|
|
2591
2674
|
return obj;
|
|
2592
2675
|
}
|
|
2593
2676
|
|
|
2594
|
-
// #region Functions
|
|
2595
2677
|
/**
|
|
2596
2678
|
* create a guid with crypto library if availabe and a fallback to Math.Random implementation
|
|
2597
2679
|
*/
|
|
2680
|
+
// #region Exported Functions
|
|
2598
2681
|
function createGuid() {
|
|
2599
2682
|
if (typeof crypto !== undefined && crypto['randomUUID'] !== undefined) {
|
|
2600
2683
|
// return guid without hyphen
|
|
@@ -2602,12 +2685,12 @@
|
|
|
2602
2685
|
}
|
|
2603
2686
|
else {
|
|
2604
2687
|
return 'xxxxxxxxxxxx4xxxyxxxxxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
|
|
2605
|
-
var r = (Math.random() * 16) | 0, v = c
|
|
2688
|
+
var r = (Math.random() * 16) | 0, v = c === 'x' ? r : (r & 0x3) | 0x8;
|
|
2606
2689
|
return v.toString(16);
|
|
2607
2690
|
});
|
|
2608
2691
|
}
|
|
2609
2692
|
}
|
|
2610
|
-
// #endregion Functions
|
|
2693
|
+
// #endregion Exported Functions
|
|
2611
2694
|
|
|
2612
2695
|
/**
|
|
2613
2696
|
* Abstract Klasse für SacBaseModelControl. Implements ControlValueAccessor, Validator, OnInit
|
|
@@ -2667,6 +2750,10 @@
|
|
|
2667
2750
|
* Deaktiviert das Label im Template
|
|
2668
2751
|
*/
|
|
2669
2752
|
this.disablelabel = false;
|
|
2753
|
+
/**
|
|
2754
|
+
* Identifier used for the E2E data attribute.
|
|
2755
|
+
*/
|
|
2756
|
+
this.e2eidentifier = null;
|
|
2670
2757
|
/**
|
|
2671
2758
|
* Text to support the user during input.
|
|
2672
2759
|
*/
|
|
@@ -3158,6 +3245,7 @@
|
|
|
3158
3245
|
componentHeight: [{ type: i0.Input }],
|
|
3159
3246
|
disabled: [{ type: i0.Input }],
|
|
3160
3247
|
disablelabel: [{ type: i0.Input }],
|
|
3248
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
3161
3249
|
helptext: [{ type: i0.Input }],
|
|
3162
3250
|
helptextmode: [{ type: i0.Input }],
|
|
3163
3251
|
inlineError: [{ type: i0.Input }],
|
|
@@ -4056,12 +4144,15 @@
|
|
|
4056
4144
|
* Base Komponente für Dialog
|
|
4057
4145
|
*/
|
|
4058
4146
|
var SacDialogCommon = /** @class */ (function () {
|
|
4147
|
+
// #endregion Properties
|
|
4148
|
+
// #region Constructors
|
|
4059
4149
|
/**
|
|
4060
4150
|
* Konstruktor
|
|
4061
4151
|
* Inject des Formulars
|
|
4062
4152
|
*/
|
|
4063
4153
|
function SacDialogCommon(cdRef) {
|
|
4064
4154
|
this.cdRef = cdRef;
|
|
4155
|
+
// #region Properties
|
|
4065
4156
|
this.hasSetBodyTag = false;
|
|
4066
4157
|
/**
|
|
4067
4158
|
* Boolean Property definiert ob das Dialog angezeigt wird
|
|
@@ -4084,20 +4175,26 @@
|
|
|
4084
4175
|
* Steuert ob im Header des Dialogs ein Button angezeigt wird.
|
|
4085
4176
|
*/
|
|
4086
4177
|
this.closebutton = true;
|
|
4178
|
+
/**
|
|
4179
|
+
* Identifier used for the E2E data attribute.
|
|
4180
|
+
*/
|
|
4181
|
+
this.e2eidentifier = null;
|
|
4087
4182
|
/**
|
|
4088
4183
|
* Output Emitter. Wird aufgerufen, wenn das Wert des _show property geändert ist - damait das Dialog geöfnet/geschlossen wird.
|
|
4089
4184
|
*/
|
|
4090
4185
|
this.isvisibleChange = new i0.EventEmitter();
|
|
4091
4186
|
/**
|
|
4092
|
-
*
|
|
4187
|
+
* name of control
|
|
4093
4188
|
*/
|
|
4094
|
-
this.name =
|
|
4189
|
+
this.name = createGuid();
|
|
4095
4190
|
/**
|
|
4096
4191
|
* Input Property. Erhält den Title des Dialog. Default Value: 'Dialog'.
|
|
4097
4192
|
*/
|
|
4098
4193
|
this.title = 'Dialog';
|
|
4099
4194
|
}
|
|
4100
4195
|
Object.defineProperty(SacDialogCommon.prototype, "dialogElementSetter", {
|
|
4196
|
+
// #endregion Constructors
|
|
4197
|
+
// #region Public Getters And Setters
|
|
4101
4198
|
/**
|
|
4102
4199
|
* Implementation als Setter, da mit ngIf das Element bei Unsichtbarkeit UNDEFINED ist.
|
|
4103
4200
|
*/
|
|
@@ -4118,15 +4215,11 @@
|
|
|
4118
4215
|
* Setter. Erhält das boolen Wert des _show property
|
|
4119
4216
|
*/
|
|
4120
4217
|
set: function (v) {
|
|
4121
|
-
if (v &&
|
|
4122
|
-
!this.hasSetBodyTag &&
|
|
4123
|
-
!document.body.classList.contains('modal-open')) {
|
|
4218
|
+
if (v && !this.hasSetBodyTag && !document.body.classList.contains('modal-open')) {
|
|
4124
4219
|
document.body.classList.add('modal-open');
|
|
4125
4220
|
this.hasSetBodyTag = true;
|
|
4126
4221
|
}
|
|
4127
|
-
if (!v &&
|
|
4128
|
-
this.hasSetBodyTag &&
|
|
4129
|
-
document.body.classList.contains('modal-open')) {
|
|
4222
|
+
if (!v && this.hasSetBodyTag && document.body.classList.contains('modal-open')) {
|
|
4130
4223
|
document.body.classList.remove('modal-open');
|
|
4131
4224
|
this.hasSetBodyTag = false;
|
|
4132
4225
|
}
|
|
@@ -4149,6 +4242,8 @@
|
|
|
4149
4242
|
configurable: true
|
|
4150
4243
|
});
|
|
4151
4244
|
Object.defineProperty(SacDialogCommon.prototype, "ChangeDetector", {
|
|
4245
|
+
// #endregion Public Getters And Setters
|
|
4246
|
+
// #region Protected Getters And Setters
|
|
4152
4247
|
/**
|
|
4153
4248
|
* Getter for ChangeDetector.
|
|
4154
4249
|
*/
|
|
@@ -4158,6 +4253,8 @@
|
|
|
4158
4253
|
enumerable: false,
|
|
4159
4254
|
configurable: true
|
|
4160
4255
|
});
|
|
4256
|
+
// #endregion Protected Getters And Setters
|
|
4257
|
+
// #region Public Methods
|
|
4161
4258
|
/**
|
|
4162
4259
|
* Die Methode setz den Wert des _show property auf false
|
|
4163
4260
|
*/
|
|
@@ -4204,8 +4301,7 @@
|
|
|
4204
4301
|
*/
|
|
4205
4302
|
SacDialogCommon.prototype.show = function () {
|
|
4206
4303
|
this._show = true;
|
|
4207
|
-
if (!this.hasSetBodyTag &&
|
|
4208
|
-
!document.body.classList.contains('modal-open')) {
|
|
4304
|
+
if (!this.hasSetBodyTag && !document.body.classList.contains('modal-open')) {
|
|
4209
4305
|
document.body.classList.add('modal-open');
|
|
4210
4306
|
this.hasSetBodyTag = true;
|
|
4211
4307
|
}
|
|
@@ -4223,6 +4319,7 @@
|
|
|
4223
4319
|
allowesc: [{ type: i0.Input }],
|
|
4224
4320
|
backdrop: [{ type: i0.Input }],
|
|
4225
4321
|
closebutton: [{ type: i0.Input }],
|
|
4322
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
4226
4323
|
isvisibleChange: [{ type: i0.Output }],
|
|
4227
4324
|
name: [{ type: i0.Input }],
|
|
4228
4325
|
title: [{ type: i0.Input }],
|
|
@@ -4233,8 +4330,7 @@
|
|
|
4233
4330
|
onKeydownHandler: [{ type: i0.HostListener, args: ['document:keydown', ['$event'],] }]
|
|
4234
4331
|
};
|
|
4235
4332
|
|
|
4236
|
-
// #
|
|
4237
|
-
// #region Classes
|
|
4333
|
+
// #region Exported Classes
|
|
4238
4334
|
/**
|
|
4239
4335
|
* Base Komponente für SacFormular
|
|
4240
4336
|
*/
|
|
@@ -4367,7 +4463,7 @@
|
|
|
4367
4463
|
SacFormCommon.propDecorators = {
|
|
4368
4464
|
updateon: [{ type: i0.Input }]
|
|
4369
4465
|
};
|
|
4370
|
-
// #endregion
|
|
4466
|
+
// #endregion Exported Types
|
|
4371
4467
|
|
|
4372
4468
|
/**
|
|
4373
4469
|
* Abstract Klasse für SacBaseListControl. Extendes SacBaseModelControl
|
|
@@ -4461,6 +4557,7 @@
|
|
|
4461
4557
|
* @param id ID
|
|
4462
4558
|
* @param value Wert der an das Element gebunden werden soll
|
|
4463
4559
|
*/
|
|
4560
|
+
// #region Exported Functions
|
|
4464
4561
|
function _buildValueString(id, value) {
|
|
4465
4562
|
// Wenn ID null ist Object zurückgeben
|
|
4466
4563
|
if (id == null) {
|
|
@@ -4473,12 +4570,15 @@
|
|
|
4473
4570
|
// String als ID
|
|
4474
4571
|
return (id + ": " + value).slice(0, 50);
|
|
4475
4572
|
}
|
|
4573
|
+
// #endregion Exported Functions
|
|
4476
4574
|
|
|
4477
4575
|
/**
|
|
4478
4576
|
* Base Dropdown Komponente
|
|
4479
4577
|
*/
|
|
4480
4578
|
var SacDropdownCommon = /** @class */ (function (_super) {
|
|
4481
4579
|
__extends(SacDropdownCommon, _super);
|
|
4580
|
+
// #endregion Properties
|
|
4581
|
+
// #region Constructors
|
|
4482
4582
|
/**
|
|
4483
4583
|
* Constructor
|
|
4484
4584
|
* @param formlayout SacFormLayoutCommon to define scoped layout settings
|
|
@@ -4490,6 +4590,7 @@
|
|
|
4490
4590
|
var _this = _super.call(this, formlayout, injector) || this;
|
|
4491
4591
|
_this.renderer = renderer;
|
|
4492
4592
|
_this.elementRef = elementRef;
|
|
4593
|
+
// #region Properties
|
|
4493
4594
|
/**
|
|
4494
4595
|
* compareWith-Funktion
|
|
4495
4596
|
*/
|
|
@@ -4521,6 +4622,8 @@
|
|
|
4521
4622
|
return _this;
|
|
4522
4623
|
}
|
|
4523
4624
|
Object.defineProperty(SacDropdownCommon.prototype, "comparewith", {
|
|
4625
|
+
// #endregion Constructors
|
|
4626
|
+
// #region Public Getters And Setters
|
|
4524
4627
|
/**
|
|
4525
4628
|
* compareWith-Funktion
|
|
4526
4629
|
*/
|
|
@@ -4533,6 +4636,8 @@
|
|
|
4533
4636
|
enumerable: false,
|
|
4534
4637
|
configurable: true
|
|
4535
4638
|
});
|
|
4639
|
+
// #endregion Public Getters And Setters
|
|
4640
|
+
// #region Public Methods
|
|
4536
4641
|
/**
|
|
4537
4642
|
* Registriert das OptionID-Counter als String
|
|
4538
4643
|
*/
|
|
@@ -4583,6 +4688,8 @@
|
|
|
4583
4688
|
this.setSelectedValue(value);
|
|
4584
4689
|
_super.prototype.writeValue.call(this, value);
|
|
4585
4690
|
};
|
|
4691
|
+
// #endregion Public Methods
|
|
4692
|
+
// #region Private Methods
|
|
4586
4693
|
/**
|
|
4587
4694
|
* ID extrahieren
|
|
4588
4695
|
* @param valueString String bei welchem die ID Extrahiert werden soll
|
|
@@ -4663,6 +4770,8 @@
|
|
|
4663
4770
|
* SacDropdownOption-Klasse
|
|
4664
4771
|
*/
|
|
4665
4772
|
var SacDropdownOptionCommon = /** @class */ (function () {
|
|
4773
|
+
// #endregion Properties
|
|
4774
|
+
// #region Constructors
|
|
4666
4775
|
/**
|
|
4667
4776
|
* Konstruktor
|
|
4668
4777
|
* @param _element Referenz auf HTML Element
|
|
@@ -4673,6 +4782,7 @@
|
|
|
4673
4782
|
this._element = _element;
|
|
4674
4783
|
this._renderer = _renderer;
|
|
4675
4784
|
this._dropdown = _dropdown;
|
|
4785
|
+
// #region Properties
|
|
4676
4786
|
/**
|
|
4677
4787
|
* ID-String
|
|
4678
4788
|
*/
|
|
@@ -4682,6 +4792,8 @@
|
|
|
4682
4792
|
}
|
|
4683
4793
|
}
|
|
4684
4794
|
Object.defineProperty(SacDropdownOptionCommon.prototype, "ngValue", {
|
|
4795
|
+
// #endregion Constructors
|
|
4796
|
+
// #region Public Getters And Setters
|
|
4685
4797
|
/**
|
|
4686
4798
|
* Option ngValue
|
|
4687
4799
|
*/
|
|
@@ -4707,6 +4819,8 @@
|
|
|
4707
4819
|
enumerable: false,
|
|
4708
4820
|
configurable: true
|
|
4709
4821
|
});
|
|
4822
|
+
// #endregion Public Getters And Setters
|
|
4823
|
+
// #region Public Methods
|
|
4710
4824
|
/**
|
|
4711
4825
|
* Den Wert vom Option-Element einstellen
|
|
4712
4826
|
* @param value Wert
|
|
@@ -4763,7 +4877,7 @@
|
|
|
4763
4877
|
this._listbox.registerOption(this);
|
|
4764
4878
|
}
|
|
4765
4879
|
}
|
|
4766
|
-
Object.defineProperty(SacListboxOptionCommon.prototype, "
|
|
4880
|
+
Object.defineProperty(SacListboxOptionCommon.prototype, "ngValue", {
|
|
4767
4881
|
// #endregion Constructors
|
|
4768
4882
|
// #region Public Getters And Setters
|
|
4769
4883
|
/**
|
|
@@ -4820,7 +4934,7 @@
|
|
|
4820
4934
|
{ type: SacListboxCommon }
|
|
4821
4935
|
]; };
|
|
4822
4936
|
SacListboxOptionCommon.propDecorators = {
|
|
4823
|
-
|
|
4937
|
+
ngValue: [{ type: i0.Input }],
|
|
4824
4938
|
value: [{ type: i0.Input }]
|
|
4825
4939
|
};
|
|
4826
4940
|
/**
|
|
@@ -4939,42 +5053,40 @@
|
|
|
4939
5053
|
*/
|
|
4940
5054
|
var SacTabCommon = /** @class */ (function () {
|
|
4941
5055
|
function SacTabCommon() {
|
|
5056
|
+
// #region Properties
|
|
4942
5057
|
/**
|
|
4943
|
-
*
|
|
5058
|
+
* Identifier used for the E2E data attribute.
|
|
4944
5059
|
*/
|
|
4945
|
-
this.
|
|
5060
|
+
this.e2eidentifier = null;
|
|
4946
5061
|
/**
|
|
4947
|
-
*
|
|
5062
|
+
* name of control
|
|
4948
5063
|
*/
|
|
4949
|
-
this.
|
|
5064
|
+
this.name = createGuid();
|
|
4950
5065
|
/**
|
|
4951
5066
|
* Event when new tab is selected
|
|
4952
5067
|
*/
|
|
4953
5068
|
this.tabselected = new i0.EventEmitter();
|
|
5069
|
+
/**
|
|
5070
|
+
* dispose tabs when they are hidden
|
|
5071
|
+
*/
|
|
5072
|
+
this.unloadtabitemswhenhidden = null;
|
|
5073
|
+
// #endregion Private Methods
|
|
4954
5074
|
}
|
|
4955
|
-
// #
|
|
5075
|
+
// #endregion Properties
|
|
5076
|
+
// #region Public Methods
|
|
4956
5077
|
/**
|
|
4957
|
-
*
|
|
5078
|
+
* get id of tab button
|
|
5079
|
+
* @param tabitemid id of tab
|
|
4958
5080
|
*/
|
|
4959
|
-
SacTabCommon.prototype.
|
|
4960
|
-
this.
|
|
5081
|
+
SacTabCommon.prototype.GetTabItemButtonId = function (tabitemid) {
|
|
5082
|
+
return this.name + '_' + tabitemid;
|
|
4961
5083
|
};
|
|
4962
5084
|
/**
|
|
4963
|
-
*
|
|
5085
|
+
* AfterContentInit Event
|
|
4964
5086
|
*/
|
|
4965
|
-
SacTabCommon.prototype.
|
|
4966
|
-
|
|
4967
|
-
var activeTab = this.tabItems().filter(function (tab) { return tab.active; });
|
|
4968
|
-
this.tabItems().forEach(function (itm) {
|
|
4969
|
-
if (_this.unloadtabitemswhenhidden !== null) {
|
|
4970
|
-
itm.unloadwhenhidden = _this.unloadtabitemswhenhidden;
|
|
4971
|
-
}
|
|
4972
|
-
});
|
|
4973
|
-
if (activeTab.length === 0) {
|
|
4974
|
-
this.selectTab(this.tabItems()[0]);
|
|
4975
|
-
}
|
|
5087
|
+
SacTabCommon.prototype.ngAfterContentInit = function () {
|
|
5088
|
+
this.initTabs();
|
|
4976
5089
|
};
|
|
4977
|
-
// #endregion
|
|
4978
5090
|
/**
|
|
4979
5091
|
* select new tab
|
|
4980
5092
|
* @param tab tab that should be selected
|
|
@@ -4988,12 +5100,22 @@
|
|
|
4988
5100
|
tab.active = true;
|
|
4989
5101
|
this.tabselected.emit(tab.id);
|
|
4990
5102
|
};
|
|
5103
|
+
// #endregion Public Methods
|
|
5104
|
+
// #region Private Methods
|
|
4991
5105
|
/**
|
|
4992
|
-
*
|
|
4993
|
-
* @param tabitemid id of tab
|
|
5106
|
+
* Initialisiert die Tabs
|
|
4994
5107
|
*/
|
|
4995
|
-
SacTabCommon.prototype.
|
|
4996
|
-
|
|
5108
|
+
SacTabCommon.prototype.initTabs = function () {
|
|
5109
|
+
var _this = this;
|
|
5110
|
+
var activeTab = this.tabItems().filter(function (tab) { return tab.active; });
|
|
5111
|
+
this.tabItems().forEach(function (itm) {
|
|
5112
|
+
if (_this.unloadtabitemswhenhidden !== null) {
|
|
5113
|
+
itm.unloadwhenhidden = _this.unloadtabitemswhenhidden;
|
|
5114
|
+
}
|
|
5115
|
+
});
|
|
5116
|
+
if (activeTab.length === 0) {
|
|
5117
|
+
this.selectTab(this.tabItems()[0]);
|
|
5118
|
+
}
|
|
4997
5119
|
};
|
|
4998
5120
|
return SacTabCommon;
|
|
4999
5121
|
}());
|
|
@@ -5001,10 +5123,11 @@
|
|
|
5001
5123
|
{ type: i0.Directive }
|
|
5002
5124
|
];
|
|
5003
5125
|
SacTabCommon.propDecorators = {
|
|
5126
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
5004
5127
|
name: [{ type: i0.Input }],
|
|
5005
5128
|
tablabeltemplate: [{ type: i0.Input }],
|
|
5006
|
-
|
|
5007
|
-
|
|
5129
|
+
tabselected: [{ type: i0.Output }],
|
|
5130
|
+
unloadtabitemswhenhidden: [{ type: i0.Input }]
|
|
5008
5131
|
};
|
|
5009
5132
|
|
|
5010
5133
|
/**
|
|
@@ -5012,6 +5135,7 @@
|
|
|
5012
5135
|
*/
|
|
5013
5136
|
var SacTabItemCommon = /** @class */ (function () {
|
|
5014
5137
|
function SacTabItemCommon() {
|
|
5138
|
+
// #region Properties
|
|
5015
5139
|
/**
|
|
5016
5140
|
* Boolean Property prüft ob das Tab aktiv ist
|
|
5017
5141
|
*/
|
|
@@ -5024,6 +5148,7 @@
|
|
|
5024
5148
|
* Das Input property ekzeptiert boolen Wert. Default ist true. Definiert, ob die Komponente hidden sein sollte.
|
|
5025
5149
|
*/
|
|
5026
5150
|
this.unloadwhenhidden = true;
|
|
5151
|
+
// #endregion Properties
|
|
5027
5152
|
}
|
|
5028
5153
|
return SacTabItemCommon;
|
|
5029
5154
|
}());
|
|
@@ -5035,8 +5160,8 @@
|
|
|
5035
5160
|
disabled: [{ type: i0.Input }],
|
|
5036
5161
|
id: [{ type: i0.Input }],
|
|
5037
5162
|
label: [{ type: i0.Input }],
|
|
5038
|
-
|
|
5039
|
-
|
|
5163
|
+
templateRef: [{ type: i0.ContentChild, args: [i0.TemplateRef, { static: true },] }],
|
|
5164
|
+
unloadwhenhidden: [{ type: i0.Input }]
|
|
5040
5165
|
};
|
|
5041
5166
|
|
|
5042
5167
|
/**
|
|
@@ -5051,9 +5176,13 @@
|
|
|
5051
5176
|
*/
|
|
5052
5177
|
function SacValidationSummaryCommon(parent, injector) {
|
|
5053
5178
|
/**
|
|
5054
|
-
*
|
|
5179
|
+
* Identifier used for the E2E data attribute.
|
|
5055
5180
|
*/
|
|
5056
|
-
this.
|
|
5181
|
+
this.e2eidentifier = null;
|
|
5182
|
+
/**
|
|
5183
|
+
* name of control
|
|
5184
|
+
*/
|
|
5185
|
+
this.name = createGuid();
|
|
5057
5186
|
this.parent = parent;
|
|
5058
5187
|
this.validationKeyService = injector.get(SACVALIDATIONKEY_SERVICE, new SacDefaultValidationKeyService());
|
|
5059
5188
|
this.lngResourceService = injector.get(SACLOCALISATION_SERVICE, new SacDefaultLocalisationService(this.validationKeyService));
|
|
@@ -5172,6 +5301,7 @@
|
|
|
5172
5301
|
{ type: i0.Injector }
|
|
5173
5302
|
]; };
|
|
5174
5303
|
SacValidationSummaryCommon.propDecorators = {
|
|
5304
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
5175
5305
|
form: [{ type: i0.Input }],
|
|
5176
5306
|
formGroupName: [{ type: i0.Input }],
|
|
5177
5307
|
name: [{ type: i0.Input }]
|
|
@@ -5819,14 +5949,14 @@
|
|
|
5819
5949
|
* Text welcher auf dem Button angezeigt wird
|
|
5820
5950
|
*/
|
|
5821
5951
|
_this.buttontext = '';
|
|
5822
|
-
/**
|
|
5823
|
-
* Name des Such-Icons
|
|
5824
|
-
*/
|
|
5825
|
-
_this.iconname = '';
|
|
5826
5952
|
/**
|
|
5827
5953
|
* Event wenn auf das Such-Icon geclickt wird
|
|
5828
5954
|
*/
|
|
5829
5955
|
_this.clicked = new i0.EventEmitter();
|
|
5956
|
+
/**
|
|
5957
|
+
* Name des Such-Icons
|
|
5958
|
+
*/
|
|
5959
|
+
_this.iconname = '';
|
|
5830
5960
|
return _this;
|
|
5831
5961
|
// #endregion Private Methods
|
|
5832
5962
|
}
|
|
@@ -5870,14 +6000,29 @@
|
|
|
5870
6000
|
SacInputSearchCommon.propDecorators = {
|
|
5871
6001
|
buttonmode: [{ type: i0.Input }],
|
|
5872
6002
|
buttontext: [{ type: i0.Input }],
|
|
5873
|
-
|
|
5874
|
-
|
|
6003
|
+
clicked: [{ type: i0.Output }],
|
|
6004
|
+
iconname: [{ type: i0.Input }]
|
|
5875
6005
|
};
|
|
5876
6006
|
|
|
5877
|
-
// #region Classes
|
|
5878
6007
|
/**
|
|
5879
6008
|
* GridResponse class
|
|
5880
6009
|
*/
|
|
6010
|
+
(function (SortOrder) {
|
|
6011
|
+
/**
|
|
6012
|
+
* No sorting
|
|
6013
|
+
*/
|
|
6014
|
+
SortOrder[SortOrder["None"] = 0] = "None";
|
|
6015
|
+
/**
|
|
6016
|
+
* Ascending
|
|
6017
|
+
*/
|
|
6018
|
+
SortOrder[SortOrder["Ascending"] = 1] = "Ascending";
|
|
6019
|
+
/**
|
|
6020
|
+
* Descending
|
|
6021
|
+
*/
|
|
6022
|
+
SortOrder[SortOrder["Descending"] = 2] = "Descending";
|
|
6023
|
+
})(exports.SortOrder || (exports.SortOrder = {}));
|
|
6024
|
+
// #endregion Exported Enums
|
|
6025
|
+
// #region Exported Classes
|
|
5881
6026
|
var GridResponse = /** @class */ (function () {
|
|
5882
6027
|
function GridResponse() {
|
|
5883
6028
|
}
|
|
@@ -5958,21 +6103,7 @@
|
|
|
5958
6103
|
}
|
|
5959
6104
|
return SortDescriptor;
|
|
5960
6105
|
}());
|
|
5961
|
-
|
|
5962
|
-
/**
|
|
5963
|
-
* No sorting
|
|
5964
|
-
*/
|
|
5965
|
-
SortOrder[SortOrder["None"] = 0] = "None";
|
|
5966
|
-
/**
|
|
5967
|
-
* Ascending
|
|
5968
|
-
*/
|
|
5969
|
-
SortOrder[SortOrder["Ascending"] = 1] = "Ascending";
|
|
5970
|
-
/**
|
|
5971
|
-
* Descending
|
|
5972
|
-
*/
|
|
5973
|
-
SortOrder[SortOrder["Descending"] = 2] = "Descending";
|
|
5974
|
-
})(exports.SortOrder || (exports.SortOrder = {}));
|
|
5975
|
-
// #endregion Enums
|
|
6106
|
+
// #endregion Exported Classes
|
|
5976
6107
|
|
|
5977
6108
|
/**
|
|
5978
6109
|
* Basic component for SacGrid
|
|
@@ -6000,6 +6131,18 @@
|
|
|
6000
6131
|
* Contains Array of Pages.
|
|
6001
6132
|
*/
|
|
6002
6133
|
this.paginators = [];
|
|
6134
|
+
/**
|
|
6135
|
+
* Number of columns in the grid
|
|
6136
|
+
*/
|
|
6137
|
+
this.ColumnCount = 0;
|
|
6138
|
+
/**
|
|
6139
|
+
* Identifier used for the E2E data attribute.
|
|
6140
|
+
*/
|
|
6141
|
+
this.e2eidentifier = null;
|
|
6142
|
+
/**
|
|
6143
|
+
* name of control
|
|
6144
|
+
*/
|
|
6145
|
+
this.name = createGuid();
|
|
6003
6146
|
/**
|
|
6004
6147
|
* Deactivates the selection of the PageSize in the pager
|
|
6005
6148
|
*/
|
|
@@ -6012,14 +6155,6 @@
|
|
|
6012
6155
|
* Event when the pager is clicked.
|
|
6013
6156
|
*/
|
|
6014
6157
|
this.paging = new i0.EventEmitter();
|
|
6015
|
-
/**
|
|
6016
|
-
* Event when a header is clicked so that the grid is sorted.
|
|
6017
|
-
*/
|
|
6018
|
-
this.sorting = new i0.EventEmitter();
|
|
6019
|
-
/**
|
|
6020
|
-
* Number of columns in the grid
|
|
6021
|
-
*/
|
|
6022
|
-
this.ColumnCount = 0;
|
|
6023
6158
|
/**
|
|
6024
6159
|
* Column by which currently sorted.
|
|
6025
6160
|
*/
|
|
@@ -6028,6 +6163,10 @@
|
|
|
6028
6163
|
* Current direction of sorting
|
|
6029
6164
|
*/
|
|
6030
6165
|
this.sortDirection = exports.SortOrder.None;
|
|
6166
|
+
/**
|
|
6167
|
+
* Event when a header is clicked so that the grid is sorted.
|
|
6168
|
+
*/
|
|
6169
|
+
this.sorting = new i0.EventEmitter();
|
|
6031
6170
|
this.validationKeyService = injector.get(SACVALIDATIONKEY_SERVICE, new SacDefaultValidationKeyService());
|
|
6032
6171
|
// Set Default Values from Injector
|
|
6033
6172
|
this.pagesizetext = this.validationKeyService.PagingEntries;
|
|
@@ -6105,6 +6244,7 @@
|
|
|
6105
6244
|
]; };
|
|
6106
6245
|
SacGridCommon.propDecorators = {
|
|
6107
6246
|
body: [{ type: i0.Input }],
|
|
6247
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
6108
6248
|
emptytext: [{ type: i0.Input }],
|
|
6109
6249
|
headers: [{ type: i0.Input }],
|
|
6110
6250
|
maxvisiblepagenumbers: [{ type: i0.Input }],
|
|
@@ -6113,10 +6253,10 @@
|
|
|
6113
6253
|
pagesizedisabled: [{ type: i0.Input }],
|
|
6114
6254
|
pagesizes: [{ type: i0.Input }],
|
|
6115
6255
|
pagesizetext: [{ type: i0.Input }],
|
|
6116
|
-
pagingtext: [{ type: i0.Input }],
|
|
6117
|
-
value: [{ type: i0.Input }],
|
|
6118
6256
|
paging: [{ type: i0.Output }],
|
|
6257
|
+
pagingtext: [{ type: i0.Input }],
|
|
6119
6258
|
sorting: [{ type: i0.Output }],
|
|
6259
|
+
value: [{ type: i0.Input }],
|
|
6120
6260
|
sortdata: [{ type: i0.Input }]
|
|
6121
6261
|
};
|
|
6122
6262
|
|
|
@@ -6124,28 +6264,35 @@
|
|
|
6124
6264
|
* Base Grid Action Button
|
|
6125
6265
|
*/
|
|
6126
6266
|
var SacGridButtonCommon = /** @class */ (function () {
|
|
6127
|
-
|
|
6128
|
-
|
|
6267
|
+
// #endregion Properties
|
|
6268
|
+
// #region Constructors
|
|
6269
|
+
/**
|
|
6270
|
+
* Constructor
|
|
6271
|
+
*
|
|
6272
|
+
* @param injector Injector to resovle services
|
|
6273
|
+
*/
|
|
6274
|
+
function SacGridButtonCommon(injector) {
|
|
6275
|
+
this.injector = injector;
|
|
6129
6276
|
/**
|
|
6130
6277
|
* Button is deactivated
|
|
6131
6278
|
*/
|
|
6132
6279
|
this._isdisabledvalue = false;
|
|
6133
|
-
/**
|
|
6134
|
-
* Input property for styling the button. Defines the CSS classes of the button
|
|
6135
|
-
*/
|
|
6136
|
-
this.iconstyle = '';
|
|
6137
6280
|
/**
|
|
6138
6281
|
* Event when the button is clicked
|
|
6139
6282
|
*/
|
|
6140
6283
|
this.clicked = new i0.EventEmitter();
|
|
6141
|
-
|
|
6284
|
+
/**
|
|
6285
|
+
* Input property for styling the button. Defines the CSS classes of the button
|
|
6286
|
+
*/
|
|
6287
|
+
this.iconstyle = '';
|
|
6288
|
+
this.iconService = injector.get(SACICON_SERVICE, new SacDefaultIconService());
|
|
6142
6289
|
}
|
|
6143
6290
|
Object.defineProperty(SacGridButtonCommon.prototype, "isdisabled", {
|
|
6291
|
+
// #endregion Constructors
|
|
6292
|
+
// #region Public Getters And Setters
|
|
6144
6293
|
get: function () {
|
|
6145
6294
|
return this._isdisabledvalue;
|
|
6146
6295
|
},
|
|
6147
|
-
// #endregion Properties
|
|
6148
|
-
// #region Public Getters And Setters
|
|
6149
6296
|
/**
|
|
6150
6297
|
* Deactivating buttons
|
|
6151
6298
|
* @param v Deactivates the button. Can be a Boolean or the strings `true` or `false`.
|
|
@@ -6172,15 +6319,48 @@
|
|
|
6172
6319
|
this.clicked.emit(this.iconstyle);
|
|
6173
6320
|
}
|
|
6174
6321
|
};
|
|
6322
|
+
/**
|
|
6323
|
+
* Defines the CSS class for the icon on the button
|
|
6324
|
+
*/
|
|
6325
|
+
SacGridButtonCommon.prototype.getIconClass = function () {
|
|
6326
|
+
var cssclass;
|
|
6327
|
+
// Handle Default Icons
|
|
6328
|
+
if (this.iconstyle === '') {
|
|
6329
|
+
switch (this.icon) {
|
|
6330
|
+
case 'edit':
|
|
6331
|
+
cssclass = this.iconService.GridButtonDefaultEditIconSet + " " + this.iconService.GridButtonDefaultEditIcon;
|
|
6332
|
+
break;
|
|
6333
|
+
case 'delete':
|
|
6334
|
+
cssclass = this.iconService.GridButtonDefaultDeleteIconSet + " " + this.iconService.GridButtonDefaultDeleteIcon;
|
|
6335
|
+
break;
|
|
6336
|
+
default:
|
|
6337
|
+
cssclass = this.icon;
|
|
6338
|
+
break;
|
|
6339
|
+
}
|
|
6340
|
+
}
|
|
6341
|
+
else {
|
|
6342
|
+
cssclass = this.iconstyle + " " + this.icon;
|
|
6343
|
+
}
|
|
6344
|
+
// trim style
|
|
6345
|
+
cssclass = cssclass.trim();
|
|
6346
|
+
if (this._isdisabledvalue) {
|
|
6347
|
+
cssclass += this.iconService.GridButtonDisabledIconSuffix;
|
|
6348
|
+
}
|
|
6349
|
+
return cssclass;
|
|
6350
|
+
};
|
|
6175
6351
|
return SacGridButtonCommon;
|
|
6176
6352
|
}());
|
|
6177
6353
|
SacGridButtonCommon.decorators = [
|
|
6178
6354
|
{ type: i0.Directive }
|
|
6179
6355
|
];
|
|
6356
|
+
SacGridButtonCommon.ctorParameters = function () { return [
|
|
6357
|
+
{ type: i0.Injector }
|
|
6358
|
+
]; };
|
|
6180
6359
|
SacGridButtonCommon.propDecorators = {
|
|
6360
|
+
clicked: [{ type: i0.Output }],
|
|
6181
6361
|
icon: [{ type: i0.Input }],
|
|
6182
6362
|
iconstyle: [{ type: i0.Input }],
|
|
6183
|
-
|
|
6363
|
+
name: [{ type: i0.Input }],
|
|
6184
6364
|
isdisabled: [{ type: i0.Input }]
|
|
6185
6365
|
};
|
|
6186
6366
|
|
|
@@ -6200,6 +6380,14 @@
|
|
|
6200
6380
|
this.grid = grid;
|
|
6201
6381
|
this.injector = injector;
|
|
6202
6382
|
this.el = el;
|
|
6383
|
+
/**
|
|
6384
|
+
* Align the column
|
|
6385
|
+
*/
|
|
6386
|
+
this.alignment = 'left';
|
|
6387
|
+
/**
|
|
6388
|
+
* defines the style of the row
|
|
6389
|
+
*/
|
|
6390
|
+
this.contextstyle = 'none';
|
|
6203
6391
|
/**
|
|
6204
6392
|
* Click on Column Element
|
|
6205
6393
|
*/
|
|
@@ -6279,9 +6467,7 @@
|
|
|
6279
6467
|
* Triggers the events so that the table is sorted according to this column.
|
|
6280
6468
|
*/
|
|
6281
6469
|
SacGridColumnBaseCommon.prototype.SortByColumn = function () {
|
|
6282
|
-
if (this.sortkey !== undefined &&
|
|
6283
|
-
this.sortkey !== null &&
|
|
6284
|
-
this.sortkey !== '') {
|
|
6470
|
+
if (this.sortkey !== undefined && this.sortkey !== null && this.sortkey !== '') {
|
|
6285
6471
|
return this.grid.SortBy(this.sortkey);
|
|
6286
6472
|
}
|
|
6287
6473
|
};
|
|
@@ -6289,6 +6475,12 @@
|
|
|
6289
6475
|
* Called when the component is destroyed.
|
|
6290
6476
|
*/
|
|
6291
6477
|
SacGridColumnBaseCommon.prototype.ngOnDestroy = function () {
|
|
6478
|
+
if (this.headerElement) {
|
|
6479
|
+
this.headerElement.nativeElement.remove();
|
|
6480
|
+
}
|
|
6481
|
+
if (this.bodyElement) {
|
|
6482
|
+
this.bodyElement.nativeElement.remove();
|
|
6483
|
+
}
|
|
6292
6484
|
if (this.IsHeader()) {
|
|
6293
6485
|
this.grid.UnregisterColumn();
|
|
6294
6486
|
}
|
|
@@ -6318,13 +6510,17 @@
|
|
|
6318
6510
|
{ type: i0.ElementRef }
|
|
6319
6511
|
]; };
|
|
6320
6512
|
SacGridColumnBaseCommon.propDecorators = {
|
|
6513
|
+
alignment: [{ type: i0.Input }],
|
|
6514
|
+
bodyElement: [{ type: i0.ViewChild, args: ['bodyElement', { static: false },] }],
|
|
6515
|
+
contextstyle: [{ type: i0.Input }],
|
|
6321
6516
|
header: [{ type: i0.Input }],
|
|
6517
|
+
headerElement: [{ type: i0.ViewChild, args: ['headerElement', { static: false },] }],
|
|
6322
6518
|
name: [{ type: i0.Input }],
|
|
6519
|
+
rowclicked: [{ type: i0.Output }],
|
|
6323
6520
|
sortkey: [{ type: i0.Input }],
|
|
6324
6521
|
type: [{ type: i0.Input }],
|
|
6325
6522
|
value: [{ type: i0.Input }],
|
|
6326
|
-
width: [{ type: i0.Input }]
|
|
6327
|
-
rowclicked: [{ type: i0.Output }]
|
|
6523
|
+
width: [{ type: i0.Input }]
|
|
6328
6524
|
};
|
|
6329
6525
|
|
|
6330
6526
|
/**
|
|
@@ -6347,14 +6543,14 @@
|
|
|
6347
6543
|
return _this;
|
|
6348
6544
|
}
|
|
6349
6545
|
Object.defineProperty(SacGridColumnCommon.prototype, "ellipsis", {
|
|
6546
|
+
// #endregion Constructors
|
|
6547
|
+
// #region Public Getters And Setters
|
|
6350
6548
|
/**
|
|
6351
6549
|
* Getter for the ellipsis property. Always returns a boolean type.
|
|
6352
6550
|
*/
|
|
6353
6551
|
get: function () {
|
|
6354
6552
|
return this._ellipsis;
|
|
6355
6553
|
},
|
|
6356
|
-
// #endregion Constructors
|
|
6357
|
-
// #region Public Getters And Setters
|
|
6358
6554
|
/**
|
|
6359
6555
|
* Sets the ellipsis property. Can be a Boolean or the strings `true` or `false`.
|
|
6360
6556
|
*/
|
|
@@ -6443,6 +6639,30 @@
|
|
|
6443
6639
|
* Total number of rows
|
|
6444
6640
|
*/
|
|
6445
6641
|
this.totalRowCount = 0;
|
|
6642
|
+
/**
|
|
6643
|
+
* Active page index
|
|
6644
|
+
*/
|
|
6645
|
+
this.activePageIndex = 0;
|
|
6646
|
+
/**
|
|
6647
|
+
* Identifier used for the E2E data attribute.
|
|
6648
|
+
*/
|
|
6649
|
+
this.e2eidentifier = null;
|
|
6650
|
+
/**
|
|
6651
|
+
* First page index
|
|
6652
|
+
*/
|
|
6653
|
+
this.firstPageIndex = 0;
|
|
6654
|
+
/**
|
|
6655
|
+
* Last page index
|
|
6656
|
+
*/
|
|
6657
|
+
this.lastPageIndex = 0;
|
|
6658
|
+
/**
|
|
6659
|
+
* name of control
|
|
6660
|
+
*/
|
|
6661
|
+
this.name = createGuid();
|
|
6662
|
+
/**
|
|
6663
|
+
* Number of elements per page
|
|
6664
|
+
*/
|
|
6665
|
+
this.pageSize = 20;
|
|
6446
6666
|
/**
|
|
6447
6667
|
* Deactivate page size selection
|
|
6448
6668
|
*/
|
|
@@ -6460,59 +6680,28 @@
|
|
|
6460
6680
|
*/
|
|
6461
6681
|
this.pagesizetext = '';
|
|
6462
6682
|
/**
|
|
6463
|
-
*
|
|
6464
|
-
* {{CURRENTPAGE}}: Current page
|
|
6465
|
-
* {{TOTALPAGES}}: Number of pages
|
|
6683
|
+
* Item for each paging element (page number)
|
|
6466
6684
|
*/
|
|
6467
|
-
this.
|
|
6685
|
+
this.paginators = [];
|
|
6468
6686
|
/**
|
|
6469
6687
|
* Event when the page is changed in the grid. The new PageIndex is given as a parameter.
|
|
6470
6688
|
*/
|
|
6471
6689
|
this.paging = new i0.EventEmitter();
|
|
6472
6690
|
/**
|
|
6473
|
-
*
|
|
6474
|
-
|
|
6475
|
-
|
|
6476
|
-
/**
|
|
6477
|
-
* First page index
|
|
6478
|
-
*/
|
|
6479
|
-
this.firstPageIndex = 0;
|
|
6480
|
-
/**
|
|
6481
|
-
* Last page index
|
|
6482
|
-
*/
|
|
6483
|
-
this.lastPageIndex = 0;
|
|
6484
|
-
/**
|
|
6485
|
-
* Number of elements per page
|
|
6486
|
-
*/
|
|
6487
|
-
this.pageSize = 20;
|
|
6488
|
-
/**
|
|
6489
|
-
* Item for each paging element (page number)
|
|
6691
|
+
* Text in pager for 'Page x of y'. The following interpolation texts are available:
|
|
6692
|
+
* {{CURRENTPAGE}}: Current page
|
|
6693
|
+
* {{TOTALPAGES}}: Number of pages
|
|
6490
6694
|
*/
|
|
6491
|
-
this.
|
|
6695
|
+
this.pagingtext = '';
|
|
6492
6696
|
this.validationKeyService = injector.get(SACVALIDATIONKEY_SERVICE, new SacDefaultValidationKeyService());
|
|
6493
6697
|
// Set Default Values from Injector
|
|
6494
6698
|
this.pagesizetext = this.validationKeyService.PagingEntries;
|
|
6495
6699
|
this.pagingtext = this.validationKeyService.PagingPageOf;
|
|
6496
6700
|
this.lngResourceService = injector.get(SACLOCALISATION_SERVICE, new SacDefaultLocalisationService(this.validationKeyService));
|
|
6497
6701
|
}
|
|
6498
|
-
Object.defineProperty(SacPagingCommon.prototype, "
|
|
6702
|
+
Object.defineProperty(SacPagingCommon.prototype, "PageSizeText", {
|
|
6499
6703
|
// #endregion Constructors
|
|
6500
6704
|
// #region Public Getters And Setters
|
|
6501
|
-
/**
|
|
6502
|
-
* Property for Pager Data
|
|
6503
|
-
*/
|
|
6504
|
-
set: function (p) {
|
|
6505
|
-
if (p != null) {
|
|
6506
|
-
this.totalRowCount = p.TotalRowCount;
|
|
6507
|
-
this.activePageIndex = p.CurrentPageIndex;
|
|
6508
|
-
this.pageSize = p.PageSize;
|
|
6509
|
-
}
|
|
6510
|
-
this.createPager();
|
|
6511
|
-
},
|
|
6512
|
-
enumerable: false,
|
|
6513
|
-
configurable: true
|
|
6514
|
-
});
|
|
6515
|
-
Object.defineProperty(SacPagingCommon.prototype, "PageSizeText", {
|
|
6516
6705
|
/**
|
|
6517
6706
|
* Property with text for total entries in page
|
|
6518
6707
|
*/
|
|
@@ -6545,6 +6734,21 @@
|
|
|
6545
6734
|
enumerable: false,
|
|
6546
6735
|
configurable: true
|
|
6547
6736
|
});
|
|
6737
|
+
Object.defineProperty(SacPagingCommon.prototype, "pagerdata", {
|
|
6738
|
+
/**
|
|
6739
|
+
* Property for Pager Data
|
|
6740
|
+
*/
|
|
6741
|
+
set: function (p) {
|
|
6742
|
+
if (p != null) {
|
|
6743
|
+
this.totalRowCount = p.TotalRowCount;
|
|
6744
|
+
this.activePageIndex = p.CurrentPageIndex;
|
|
6745
|
+
this.pageSize = p.PageSize;
|
|
6746
|
+
}
|
|
6747
|
+
this.createPager();
|
|
6748
|
+
},
|
|
6749
|
+
enumerable: false,
|
|
6750
|
+
configurable: true
|
|
6751
|
+
});
|
|
6548
6752
|
// #endregion Public Getters And Setters
|
|
6549
6753
|
// #region Public Methods
|
|
6550
6754
|
/**
|
|
@@ -6683,12 +6887,13 @@
|
|
|
6683
6887
|
{ type: i0.Injector }
|
|
6684
6888
|
]; };
|
|
6685
6889
|
SacPagingCommon.propDecorators = {
|
|
6890
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
6686
6891
|
name: [{ type: i0.Input }],
|
|
6687
6892
|
pagesizedisabled: [{ type: i0.Input }],
|
|
6688
6893
|
pagesizes: [{ type: i0.Input }],
|
|
6689
6894
|
pagesizetext: [{ type: i0.Input }],
|
|
6690
|
-
pagingtext: [{ type: i0.Input }],
|
|
6691
6895
|
paging: [{ type: i0.Output }],
|
|
6896
|
+
pagingtext: [{ type: i0.Input }],
|
|
6692
6897
|
pagerdata: [{ type: i0.Input }]
|
|
6693
6898
|
};
|
|
6694
6899
|
|
|
@@ -7212,6 +7417,9 @@
|
|
|
7212
7417
|
else {
|
|
7213
7418
|
this.value = null;
|
|
7214
7419
|
}
|
|
7420
|
+
// update imaks reference
|
|
7421
|
+
this.cdRef.detectChanges();
|
|
7422
|
+
this.iMask.maskRef.updateControl();
|
|
7215
7423
|
},
|
|
7216
7424
|
enumerable: false,
|
|
7217
7425
|
configurable: true
|
|
@@ -7385,6 +7593,7 @@
|
|
|
7385
7593
|
{ type: i0.ChangeDetectorRef }
|
|
7386
7594
|
]; };
|
|
7387
7595
|
SacBaseDateTimeControl.propDecorators = {
|
|
7596
|
+
iMask: [{ type: i0.ViewChild, args: [angularImask.IMaskDirective, { static: false },] }],
|
|
7388
7597
|
isrequired: [{ type: i0.Input }],
|
|
7389
7598
|
pickerarrow: [{ type: i0.ViewChild, args: ['pickerarrow', { static: false },] }],
|
|
7390
7599
|
pickerbutton: [{ type: i0.ViewChild, args: ['pickerbutton', { static: true },] }],
|
|
@@ -7671,6 +7880,14 @@
|
|
|
7671
7880
|
}
|
|
7672
7881
|
return DateSelectorItem;
|
|
7673
7882
|
}());
|
|
7883
|
+
// #endregion Classes
|
|
7884
|
+
// #region Variables
|
|
7885
|
+
/**
|
|
7886
|
+
* Moment
|
|
7887
|
+
*/
|
|
7888
|
+
var moment$2 = moment___default['default'];
|
|
7889
|
+
// #endregion Variables
|
|
7890
|
+
// #region Exported Classes
|
|
7674
7891
|
/**
|
|
7675
7892
|
*Basis Komponente für SacDateSelector
|
|
7676
7893
|
*/
|
|
@@ -7694,10 +7911,18 @@
|
|
|
7694
7911
|
* Datum Selector
|
|
7695
7912
|
*/
|
|
7696
7913
|
this.dateselection = false;
|
|
7914
|
+
/**
|
|
7915
|
+
* Identifier used for the E2E data attribute.
|
|
7916
|
+
*/
|
|
7917
|
+
this.e2eidentifier = null;
|
|
7697
7918
|
/**
|
|
7698
7919
|
* Monat
|
|
7699
7920
|
*/
|
|
7700
7921
|
this.month = 4;
|
|
7922
|
+
/**
|
|
7923
|
+
* name of control
|
|
7924
|
+
*/
|
|
7925
|
+
this.name = createGuid();
|
|
7701
7926
|
/**
|
|
7702
7927
|
* Output Event beim Datum Selektieren
|
|
7703
7928
|
*/
|
|
@@ -7778,6 +8003,10 @@
|
|
|
7778
8003
|
tempValue.year(1900);
|
|
7779
8004
|
this._selectedValue = tempValue.utc();
|
|
7780
8005
|
}
|
|
8006
|
+
if (this._selectedValue === null && this._initialValue !== null) {
|
|
8007
|
+
this.selectdate.emit({ date: this._initialValue.local() });
|
|
8008
|
+
return;
|
|
8009
|
+
}
|
|
7781
8010
|
this.selectdate.emit({
|
|
7782
8011
|
date: this._selectedValue,
|
|
7783
8012
|
});
|
|
@@ -7879,12 +8108,8 @@
|
|
|
7879
8108
|
*/
|
|
7880
8109
|
SacDateSelectorCommon.prototype.selectDate = function (v) {
|
|
7881
8110
|
if (v.isenabled) {
|
|
7882
|
-
this.dates.forEach(function (date) { return date
|
|
7883
|
-
|
|
7884
|
-
.forEach(function (itm) { return (itm.isnew = false); }); });
|
|
7885
|
-
this.dates.forEach(function (date) { return date
|
|
7886
|
-
.filter(function (filter) { return filter.isselected; })
|
|
7887
|
-
.forEach(function (itm) { return (itm.isselected = false); }); });
|
|
8111
|
+
this.dates.forEach(function (date) { return date.filter(function (filter) { return filter.isnew; }).forEach(function (itm) { return (itm.isnew = false); }); });
|
|
8112
|
+
this.dates.forEach(function (date) { return date.filter(function (filter) { return filter.isselected; }).forEach(function (itm) { return (itm.isselected = false); }); });
|
|
7888
8113
|
v.isnew = true;
|
|
7889
8114
|
v.isselected = true;
|
|
7890
8115
|
var dateValue = moment$2(v.date);
|
|
@@ -7912,6 +8137,9 @@
|
|
|
7912
8137
|
* Setter für Stunden Uhrzeit
|
|
7913
8138
|
*/
|
|
7914
8139
|
SacDateSelectorCommon.prototype.setHours = function (v) {
|
|
8140
|
+
if (v >= 24) {
|
|
8141
|
+
return;
|
|
8142
|
+
}
|
|
7915
8143
|
/**
|
|
7916
8144
|
* Select Value setzen falls leer
|
|
7917
8145
|
*/
|
|
@@ -7927,6 +8155,9 @@
|
|
|
7927
8155
|
* Setter für Minuten Uhrzeit
|
|
7928
8156
|
*/
|
|
7929
8157
|
SacDateSelectorCommon.prototype.setMinutes = function (v) {
|
|
8158
|
+
if (v >= 60) {
|
|
8159
|
+
return;
|
|
8160
|
+
}
|
|
7930
8161
|
/**
|
|
7931
8162
|
* Select Value setzen falls leer
|
|
7932
8163
|
*/
|
|
@@ -8004,9 +8235,7 @@
|
|
|
8004
8235
|
for (var dayinmonth = 1; dayinmonth <= currentMonth.daysInMonth(); dayinmonth++) {
|
|
8005
8236
|
var isSelectedDate = false;
|
|
8006
8237
|
var isNewDate = false;
|
|
8007
|
-
var isCurrentDate = moment$2().month() === this.month &&
|
|
8008
|
-
moment$2().year() === this.year &&
|
|
8009
|
-
moment$2().date() === dayinmonth;
|
|
8238
|
+
var isCurrentDate = moment$2().month() === this.month && moment$2().year() === this.year && moment$2().date() === dayinmonth;
|
|
8010
8239
|
// Initial Wert setzen, falls vorhanden
|
|
8011
8240
|
if (this._initialValue !== null) {
|
|
8012
8241
|
isSelectedDate =
|
|
@@ -8058,6 +8287,11 @@
|
|
|
8058
8287
|
if (this._selectedValue === null) {
|
|
8059
8288
|
if (this._initialValue === null) {
|
|
8060
8289
|
this._selectedValue = moment$2();
|
|
8290
|
+
/**
|
|
8291
|
+
* clean seconds and miliseconds for initial values
|
|
8292
|
+
*/
|
|
8293
|
+
this._selectedValue.second(0);
|
|
8294
|
+
this._selectedValue.millisecond(0);
|
|
8061
8295
|
}
|
|
8062
8296
|
else {
|
|
8063
8297
|
this._selectedValue = this._initialValue;
|
|
@@ -8075,19 +8309,15 @@
|
|
|
8075
8309
|
SacDateSelectorCommon.propDecorators = {
|
|
8076
8310
|
autoapplyselection: [{ type: i0.Input }],
|
|
8077
8311
|
dateselection: [{ type: i0.Input }],
|
|
8312
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
8078
8313
|
month: [{ type: i0.Input }],
|
|
8314
|
+
name: [{ type: i0.Input }],
|
|
8079
8315
|
selectdate: [{ type: i0.Output }],
|
|
8080
8316
|
timeselection: [{ type: i0.Input }],
|
|
8081
8317
|
year: [{ type: i0.Input }],
|
|
8082
8318
|
initialvalue: [{ type: i0.Input }]
|
|
8083
8319
|
};
|
|
8084
|
-
// #endregion Classes
|
|
8085
|
-
// #region Variables
|
|
8086
|
-
/**
|
|
8087
|
-
* Moment
|
|
8088
|
-
*/
|
|
8089
|
-
var moment$2 = moment___default['default'];
|
|
8090
|
-
// #endregion Variables
|
|
8320
|
+
// #endregion Exported Classes
|
|
8091
8321
|
|
|
8092
8322
|
/**
|
|
8093
8323
|
* Komponente für SacDateTimeCommon. Extends SacBaseDateTimeControl
|
|
@@ -8621,7 +8851,10 @@
|
|
|
8621
8851
|
*/
|
|
8622
8852
|
_this.allowhtml = false;
|
|
8623
8853
|
return _this;
|
|
8854
|
+
// #endregion Public Methods
|
|
8624
8855
|
}
|
|
8856
|
+
// #endregion Properties
|
|
8857
|
+
// #region Public Methods
|
|
8625
8858
|
/**
|
|
8626
8859
|
* Validierung des Controls
|
|
8627
8860
|
*
|
|
@@ -8646,18 +8879,15 @@
|
|
|
8646
8879
|
*/
|
|
8647
8880
|
var SacWizardCommon = /** @class */ (function () {
|
|
8648
8881
|
function SacWizardCommon() {
|
|
8649
|
-
|
|
8650
|
-
* Name des Controls
|
|
8651
|
-
*/
|
|
8652
|
-
this.name = '';
|
|
8882
|
+
// #region Properties
|
|
8653
8883
|
/**
|
|
8654
8884
|
* Boolean Property prüft ob Navigation im Wizard disabled ist; default Wert - false
|
|
8655
8885
|
*/
|
|
8656
8886
|
this.disablenavigation = false;
|
|
8657
8887
|
/**
|
|
8658
|
-
*
|
|
8888
|
+
* Name des Controls
|
|
8659
8889
|
*/
|
|
8660
|
-
this.
|
|
8890
|
+
this.name = '';
|
|
8661
8891
|
/**
|
|
8662
8892
|
* Leere Implementation von 'propagateChange'. Muss gemacht werden, damit kein Fehler entsteht
|
|
8663
8893
|
*/
|
|
@@ -8666,8 +8896,15 @@
|
|
|
8666
8896
|
* Leere Implementation von 'propagateTouch'. Muss gemacht werden, damit kein Fehler entsteht
|
|
8667
8897
|
*/
|
|
8668
8898
|
this.propagateTouch = function () { };
|
|
8899
|
+
/**
|
|
8900
|
+
* EventEmitter wenn der Schritt geändert wird
|
|
8901
|
+
*/
|
|
8902
|
+
this.stepchanged = new i0.EventEmitter();
|
|
8903
|
+
// #endregion Private Methods
|
|
8669
8904
|
}
|
|
8670
8905
|
Object.defineProperty(SacWizardCommon.prototype, "currentstep", {
|
|
8906
|
+
// #endregion Properties
|
|
8907
|
+
// #region Public Getters And Setters
|
|
8671
8908
|
get: function () {
|
|
8672
8909
|
return this._currentstep;
|
|
8673
8910
|
},
|
|
@@ -8681,41 +8918,8 @@
|
|
|
8681
8918
|
enumerable: false,
|
|
8682
8919
|
configurable: true
|
|
8683
8920
|
});
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
this.propagateChange(this._currentstep);
|
|
8687
|
-
};
|
|
8688
|
-
// #region Control initialisieren
|
|
8689
|
-
/**
|
|
8690
|
-
* AfterContentInit Event
|
|
8691
|
-
*/
|
|
8692
|
-
SacWizardCommon.prototype.ngAfterContentInit = function () {
|
|
8693
|
-
this.initSteps();
|
|
8694
|
-
};
|
|
8695
|
-
/**
|
|
8696
|
-
* Ursprünglicher Schritt wird selektiert
|
|
8697
|
-
*/
|
|
8698
|
-
SacWizardCommon.prototype.initSteps = function () {
|
|
8699
|
-
var activeStep = this.wizardItems().filter(function (step) { return step.active; });
|
|
8700
|
-
if (activeStep.length === 0) {
|
|
8701
|
-
var initStep = this.wizardItems().toArray()[0];
|
|
8702
|
-
this.selectStep(initStep);
|
|
8703
|
-
initStep.disabled = false;
|
|
8704
|
-
this.setStepInternal(initStep.id);
|
|
8705
|
-
}
|
|
8706
|
-
};
|
|
8707
|
-
// #endregion
|
|
8708
|
-
/**
|
|
8709
|
-
* Schritt selektieren
|
|
8710
|
-
* @param step Step welcher selektiert werden soll
|
|
8711
|
-
*/
|
|
8712
|
-
SacWizardCommon.prototype.selectStep = function (step) {
|
|
8713
|
-
// Cancel if Navigation disabled
|
|
8714
|
-
if (this.disablenavigation) {
|
|
8715
|
-
return;
|
|
8716
|
-
}
|
|
8717
|
-
this.changeStep(step.id);
|
|
8718
|
-
};
|
|
8921
|
+
// #endregion Public Getters And Setters
|
|
8922
|
+
// #region Public Methods
|
|
8719
8923
|
/**
|
|
8720
8924
|
* Auf nächsten/vorherigen Schritt gehen
|
|
8721
8925
|
* @param step Step auf welchen gewechselt werden soll
|
|
@@ -8751,6 +8955,12 @@
|
|
|
8751
8955
|
this.setStepInternal(step);
|
|
8752
8956
|
this.stepchanged.emit(step);
|
|
8753
8957
|
};
|
|
8958
|
+
/**
|
|
8959
|
+
* AfterContentInit Event
|
|
8960
|
+
*/
|
|
8961
|
+
SacWizardCommon.prototype.ngAfterContentInit = function () {
|
|
8962
|
+
this.initSteps();
|
|
8963
|
+
};
|
|
8754
8964
|
/**
|
|
8755
8965
|
* Methode, damit andere Controls änderungen im Control mitbekommen können
|
|
8756
8966
|
* Zur Änderungsinfo die Methode propagateChange aufrufen.
|
|
@@ -8764,6 +8974,17 @@
|
|
|
8764
8974
|
SacWizardCommon.prototype.registerOnTouched = function (fn) {
|
|
8765
8975
|
this.propagateTouch = function (obj) { return fn(obj); };
|
|
8766
8976
|
};
|
|
8977
|
+
/**
|
|
8978
|
+
* Schritt selektieren
|
|
8979
|
+
* @param step Step welcher selektiert werden soll
|
|
8980
|
+
*/
|
|
8981
|
+
SacWizardCommon.prototype.selectStep = function (step) {
|
|
8982
|
+
// Cancel if Navigation disabled
|
|
8983
|
+
if (this.disablenavigation) {
|
|
8984
|
+
return;
|
|
8985
|
+
}
|
|
8986
|
+
this.changeStep(step.id);
|
|
8987
|
+
};
|
|
8767
8988
|
/**
|
|
8768
8989
|
* Methode zum schreiben von Werten aus dem Model in das Control
|
|
8769
8990
|
*/
|
|
@@ -8772,16 +8993,34 @@
|
|
|
8772
8993
|
this.changeStep(value);
|
|
8773
8994
|
}
|
|
8774
8995
|
};
|
|
8996
|
+
// #endregion Public Methods
|
|
8997
|
+
// #region Private Methods
|
|
8998
|
+
/**
|
|
8999
|
+
* Ursprünglicher Schritt wird selektiert
|
|
9000
|
+
*/
|
|
9001
|
+
SacWizardCommon.prototype.initSteps = function () {
|
|
9002
|
+
var activeStep = this.wizardItems().filter(function (step) { return step.active; });
|
|
9003
|
+
if (activeStep.length === 0) {
|
|
9004
|
+
var initStep = this.wizardItems().toArray()[0];
|
|
9005
|
+
this.selectStep(initStep);
|
|
9006
|
+
initStep.disabled = false;
|
|
9007
|
+
this.setStepInternal(initStep.id);
|
|
9008
|
+
}
|
|
9009
|
+
};
|
|
9010
|
+
SacWizardCommon.prototype.setStepInternal = function (step) {
|
|
9011
|
+
this._currentstep = step;
|
|
9012
|
+
this.propagateChange(this._currentstep);
|
|
9013
|
+
};
|
|
8775
9014
|
return SacWizardCommon;
|
|
8776
9015
|
}());
|
|
8777
9016
|
SacWizardCommon.decorators = [
|
|
8778
9017
|
{ type: i0.Directive }
|
|
8779
9018
|
];
|
|
8780
9019
|
SacWizardCommon.propDecorators = {
|
|
8781
|
-
name: [{ type: i0.Input }],
|
|
8782
9020
|
disablenavigation: [{ type: i0.Input }],
|
|
8783
|
-
|
|
8784
|
-
stepchanged: [{ type: i0.Output }]
|
|
9021
|
+
name: [{ type: i0.Input }],
|
|
9022
|
+
stepchanged: [{ type: i0.Output }],
|
|
9023
|
+
currentstep: [{ type: i0.Input }]
|
|
8785
9024
|
};
|
|
8786
9025
|
|
|
8787
9026
|
/**
|
|
@@ -8789,14 +9028,16 @@
|
|
|
8789
9028
|
*/
|
|
8790
9029
|
var SacWizardItemCommon = /** @class */ (function () {
|
|
8791
9030
|
function SacWizardItemCommon() {
|
|
8792
|
-
|
|
8793
|
-
* Prüft ob der Schritt abgeschlossen wurde.
|
|
8794
|
-
*/
|
|
8795
|
-
this.iscomplete = false;
|
|
9031
|
+
// #region Properties
|
|
8796
9032
|
/**
|
|
8797
9033
|
* Prüft ob der Schritt disabled ist.
|
|
8798
9034
|
*/
|
|
8799
9035
|
this.disabled = true;
|
|
9036
|
+
/**
|
|
9037
|
+
* Prüft ob der Schritt abgeschlossen wurde.
|
|
9038
|
+
*/
|
|
9039
|
+
this.iscomplete = false;
|
|
9040
|
+
// #endregion Properties
|
|
8800
9041
|
}
|
|
8801
9042
|
return SacWizardItemCommon;
|
|
8802
9043
|
}());
|
|
@@ -8805,9 +9046,9 @@
|
|
|
8805
9046
|
];
|
|
8806
9047
|
SacWizardItemCommon.propDecorators = {
|
|
8807
9048
|
active: [{ type: i0.Input }],
|
|
8808
|
-
iscomplete: [{ type: i0.Input }],
|
|
8809
9049
|
disabled: [{ type: i0.Input }],
|
|
8810
9050
|
id: [{ type: i0.Input }],
|
|
9051
|
+
iscomplete: [{ type: i0.Input }],
|
|
8811
9052
|
label: [{ type: i0.Input }]
|
|
8812
9053
|
};
|
|
8813
9054
|
|
|
@@ -8815,6 +9056,8 @@
|
|
|
8815
9056
|
* Settings für TinyMCE Dialog
|
|
8816
9057
|
*/
|
|
8817
9058
|
var TinyMceDialogSettings = /** @class */ (function () {
|
|
9059
|
+
// #endregion Properties
|
|
9060
|
+
// #region Constructors
|
|
8818
9061
|
/**
|
|
8819
9062
|
* Konstruktor
|
|
8820
9063
|
* @param init Initale Werte
|
|
@@ -8854,6 +9097,10 @@
|
|
|
8854
9097
|
file_picker_callback: _this.showSelectDialog,
|
|
8855
9098
|
save_onsavecallback: function () { },
|
|
8856
9099
|
};
|
|
9100
|
+
/**
|
|
9101
|
+
* TinyMCE Config
|
|
9102
|
+
*/
|
|
9103
|
+
_this._config = {};
|
|
8857
9104
|
/**
|
|
8858
9105
|
* Erlaubt im Filebrowser das löschen von Dateien
|
|
8859
9106
|
*/
|
|
@@ -8902,40 +9149,36 @@
|
|
|
8902
9149
|
* Definiert das Control als Required
|
|
8903
9150
|
*/
|
|
8904
9151
|
_this.isrequired = false;
|
|
8905
|
-
/**
|
|
8906
|
-
* Resource Key für Validation Message Required bei Control
|
|
8907
|
-
*/
|
|
8908
|
-
_this.validationmessagerequired = _this.validationKeyService.ValidationErrorRequired;
|
|
8909
|
-
/**
|
|
8910
|
-
* Resource Key für Validation Message Required in Validation Summary
|
|
8911
|
-
*/
|
|
8912
|
-
_this.validationmessagesummaryrequired = _this.validationKeyService.ValidationErrorSummaryRequired;
|
|
8913
9152
|
/**
|
|
8914
9153
|
* Event wenn Save Action in TinyMCE ausgelöst wird
|
|
8915
9154
|
*/
|
|
8916
9155
|
_this.onsave = new i0.EventEmitter();
|
|
8917
|
-
/**
|
|
8918
|
-
* TinyMCE Config
|
|
8919
|
-
*/
|
|
8920
|
-
_this._config = {};
|
|
8921
9156
|
/**
|
|
8922
9157
|
* Der Select Dialog wird angezeigt
|
|
8923
9158
|
*/
|
|
8924
9159
|
_this.selectdialogvisible = false;
|
|
9160
|
+
/**
|
|
9161
|
+
* Resource Key für Validation Message Required bei Control
|
|
9162
|
+
*/
|
|
9163
|
+
_this.validationmessagerequired = _this.validationKeyService.ValidationErrorRequired;
|
|
9164
|
+
/**
|
|
9165
|
+
* Resource Key für Validation Message Required in Validation Summary
|
|
9166
|
+
*/
|
|
9167
|
+
_this.validationmessagesummaryrequired = _this.validationKeyService.ValidationErrorSummaryRequired;
|
|
8925
9168
|
_this.validationKeyService = injector.get(SACVALIDATIONKEY_SERVICE, new SacDefaultValidationKeyService());
|
|
8926
9169
|
_this.lngResourceService = injector.get(SACLOCALISATION_SERVICE, new SacDefaultLocalisationService(_this.validationKeyService));
|
|
8927
9170
|
_this.config = {};
|
|
8928
9171
|
return _this;
|
|
8929
9172
|
}
|
|
8930
9173
|
Object.defineProperty(SacTinyMceCommon.prototype, "config", {
|
|
9174
|
+
// #endregion Constructors
|
|
9175
|
+
// #region Public Getters And Setters
|
|
8931
9176
|
/**
|
|
8932
9177
|
* TinyMCE Konfiguration
|
|
8933
9178
|
*/
|
|
8934
9179
|
get: function () {
|
|
8935
9180
|
return this._config;
|
|
8936
9181
|
},
|
|
8937
|
-
// #endregion Constructors
|
|
8938
|
-
// #region Public Getters And Setters
|
|
8939
9182
|
/**
|
|
8940
9183
|
* TinyMCE Konfiguration
|
|
8941
9184
|
* @link https://www.tiny.cloud/docs/configure/
|
|
@@ -8948,6 +9191,12 @@
|
|
|
8948
9191
|
});
|
|
8949
9192
|
// #endregion Public Getters And Setters
|
|
8950
9193
|
// #region Public Methods
|
|
9194
|
+
/**
|
|
9195
|
+
* event when control is touched
|
|
9196
|
+
*/
|
|
9197
|
+
SacTinyMceCommon.prototype.blur = function () {
|
|
9198
|
+
this.propagateTouch();
|
|
9199
|
+
};
|
|
8951
9200
|
/**
|
|
8952
9201
|
* Schliesst den Dateiauswahl Dialog
|
|
8953
9202
|
*/
|
|
@@ -8966,10 +9215,8 @@
|
|
|
8966
9215
|
*/
|
|
8967
9216
|
SacTinyMceCommon.prototype.setSelectDialogResult = function () {
|
|
8968
9217
|
if (this.selectDialogSettings.value) {
|
|
8969
|
-
if (this.selectDialogSettings.value.startsWith('/') ||
|
|
8970
|
-
this.selectDialogSettings.value.
|
|
8971
|
-
this.selectDialogSettings.value =
|
|
8972
|
-
this.selectDialogSettings.value.substring(1);
|
|
9218
|
+
if (this.selectDialogSettings.value.startsWith('/') || this.selectDialogSettings.value.startsWith('\\')) {
|
|
9219
|
+
this.selectDialogSettings.value = this.selectDialogSettings.value.substring(1);
|
|
8973
9220
|
}
|
|
8974
9221
|
this.selectDialogSettings.callback(this.selectDialogSettings.value);
|
|
8975
9222
|
}
|
|
@@ -8995,16 +9242,13 @@
|
|
|
8995
9242
|
});
|
|
8996
9243
|
switch (meta.filetype) {
|
|
8997
9244
|
case 'image':
|
|
8998
|
-
_this.settings.angular.selectDialogSettings.allowedtypes =
|
|
8999
|
-
_this.settings.angular.filetypesimages;
|
|
9245
|
+
_this.settings.angular.selectDialogSettings.allowedtypes = _this.settings.angular.filetypesimages;
|
|
9000
9246
|
break;
|
|
9001
9247
|
case 'media':
|
|
9002
|
-
_this.settings.angular.selectDialogSettings.allowedtypes =
|
|
9003
|
-
_this.settings.angular.filetypesvideo;
|
|
9248
|
+
_this.settings.angular.selectDialogSettings.allowedtypes = _this.settings.angular.filetypesvideo;
|
|
9004
9249
|
break;
|
|
9005
9250
|
default:
|
|
9006
|
-
_this.settings.angular.selectDialogSettings.allowedtypes =
|
|
9007
|
-
_this.settings.angular.filetypesfiles;
|
|
9251
|
+
_this.settings.angular.selectDialogSettings.allowedtypes = _this.settings.angular.filetypesfiles;
|
|
9008
9252
|
break;
|
|
9009
9253
|
}
|
|
9010
9254
|
});
|
|
@@ -9022,7 +9266,7 @@
|
|
|
9022
9266
|
}
|
|
9023
9267
|
return error;
|
|
9024
9268
|
};
|
|
9025
|
-
// #endregion Public
|
|
9269
|
+
// #endregion Public Methods
|
|
9026
9270
|
// #region Private Methods
|
|
9027
9271
|
/**
|
|
9028
9272
|
* Gibt die TinyMCE Settings zurück, die aus den Properties der Angular Komponenten erzeugt werden
|
|
@@ -9058,9 +9302,9 @@
|
|
|
9058
9302
|
filetypesvideo: [{ type: i0.Input }],
|
|
9059
9303
|
height: [{ type: i0.Input }],
|
|
9060
9304
|
isrequired: [{ type: i0.Input }],
|
|
9305
|
+
onsave: [{ type: i0.Output }],
|
|
9061
9306
|
validationmessagerequired: [{ type: i0.Input }],
|
|
9062
9307
|
validationmessagesummaryrequired: [{ type: i0.Input }],
|
|
9063
|
-
onsave: [{ type: i0.Output }],
|
|
9064
9308
|
config: [{ type: i0.Input }]
|
|
9065
9309
|
};
|
|
9066
9310
|
|
|
@@ -9093,7 +9337,7 @@
|
|
|
9093
9337
|
/**
|
|
9094
9338
|
* Property on the 'data' object that stores the expanded state. Property must be of type boolean. Default is 'expanded'
|
|
9095
9339
|
*/
|
|
9096
|
-
_this.
|
|
9340
|
+
_this.attrexpanded = 'expanded';
|
|
9097
9341
|
/**
|
|
9098
9342
|
* Property for saving the HoverState on the field. If the property is not present on the node, it is automatically created and removed again. The value can usually be left at the default value unless there is a conflict with a property on the node that is required for other purposes.
|
|
9099
9343
|
*/
|
|
@@ -9250,10 +9494,10 @@
|
|
|
9250
9494
|
return value === true || value === 'true';
|
|
9251
9495
|
};
|
|
9252
9496
|
SacTreeviewCommon.prototype.isExpandedState = function (node) {
|
|
9253
|
-
if (!node || !this.
|
|
9497
|
+
if (!node || !this.attrexpanded) {
|
|
9254
9498
|
return false;
|
|
9255
9499
|
}
|
|
9256
|
-
var value = node[this.
|
|
9500
|
+
var value = node[this.attrexpanded];
|
|
9257
9501
|
return value === true || value === 'true';
|
|
9258
9502
|
};
|
|
9259
9503
|
SacTreeviewCommon.prototype.isHoverState = function (node) {
|
|
@@ -9396,21 +9640,21 @@
|
|
|
9396
9640
|
return null;
|
|
9397
9641
|
};
|
|
9398
9642
|
SacTreeviewCommon.prototype.invertExpandedState = function (node) {
|
|
9399
|
-
if (!node || !this.
|
|
9643
|
+
if (!node || !this.attrexpanded) {
|
|
9400
9644
|
return;
|
|
9401
9645
|
}
|
|
9402
9646
|
// Items with no children cannot be collabsed
|
|
9403
9647
|
if (!this.hasChildren(node) && !(this.enableasynchload === true || this.enableasynchload === 'true')) {
|
|
9404
9648
|
return;
|
|
9405
9649
|
}
|
|
9406
|
-
var value = node[this.
|
|
9650
|
+
var value = node[this.attrexpanded];
|
|
9407
9651
|
if (value === true || value === 'true') {
|
|
9408
9652
|
this.collabsed.emit(node);
|
|
9409
|
-
node[this.
|
|
9653
|
+
node[this.attrexpanded] = false;
|
|
9410
9654
|
}
|
|
9411
9655
|
else {
|
|
9412
9656
|
this.expanded.emit(node);
|
|
9413
|
-
node[this.
|
|
9657
|
+
node[this.attrexpanded] = true;
|
|
9414
9658
|
}
|
|
9415
9659
|
};
|
|
9416
9660
|
SacTreeviewCommon.prototype.resetSelectedState = function (node) {
|
|
@@ -9436,7 +9680,7 @@
|
|
|
9436
9680
|
actionclicked: [{ type: i0.Output }],
|
|
9437
9681
|
attrchildren: [{ type: i0.Input }],
|
|
9438
9682
|
attrdisableaction: [{ type: i0.Input }],
|
|
9439
|
-
|
|
9683
|
+
attrexpanded: [{ type: i0.Input }],
|
|
9440
9684
|
attrhoverstate: [{ type: i0.Input }],
|
|
9441
9685
|
attricon: [{ type: i0.Input }],
|
|
9442
9686
|
attrid: [{ type: i0.Input }],
|
|
@@ -9507,6 +9751,14 @@
|
|
|
9507
9751
|
* Position of the tooltip at the top
|
|
9508
9752
|
*/
|
|
9509
9753
|
this.TopPos = 0;
|
|
9754
|
+
/**
|
|
9755
|
+
* Identifier used for the E2E data attribute.
|
|
9756
|
+
*/
|
|
9757
|
+
this.e2eidentifier = null;
|
|
9758
|
+
/**
|
|
9759
|
+
* name of control
|
|
9760
|
+
*/
|
|
9761
|
+
this.name = createGuid();
|
|
9510
9762
|
/**
|
|
9511
9763
|
* Position of the picker arrow at the left
|
|
9512
9764
|
*/
|
|
@@ -9707,6 +9959,8 @@
|
|
|
9707
9959
|
]; };
|
|
9708
9960
|
SacTooltipCommon.propDecorators = {
|
|
9709
9961
|
content: [{ type: i0.ViewChild, args: ['container', { static: true },] }],
|
|
9962
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
9963
|
+
name: [{ type: i0.Input }],
|
|
9710
9964
|
position: [{ type: i0.Input }],
|
|
9711
9965
|
tooltiptext: [{ type: i0.Input }],
|
|
9712
9966
|
inlinemode: [{ type: i0.Input }],
|
|
@@ -9761,9 +10015,22 @@
|
|
|
9761
10015
|
* Handling von neuen Files im Input Control
|
|
9762
10016
|
*/
|
|
9763
10017
|
_this.fileListener = function () {
|
|
9764
|
-
if
|
|
9765
|
-
|
|
10018
|
+
// exit if files is null or undefined
|
|
10019
|
+
if (!_this.uploadInput.nativeElement.files) {
|
|
10020
|
+
return;
|
|
9766
10021
|
}
|
|
10022
|
+
if (_this.GetMaxFiles() > 0) {
|
|
10023
|
+
var maxFiles = _this.GetMaxFiles() + _this.UploadedFileCount();
|
|
10024
|
+
var possibleFiles = maxFiles - _this.uploadInput.nativeElement.files.length;
|
|
10025
|
+
if (possibleFiles < 0) {
|
|
10026
|
+
var dataTransfer_1 = new DataTransfer();
|
|
10027
|
+
var files = Array.from(_this.uploadInput.nativeElement.files).splice(0, _this.uploadInput.nativeElement.files.length + possibleFiles);
|
|
10028
|
+
// clone files
|
|
10029
|
+
files.forEach(function (file) { return dataTransfer_1.items.add(file); });
|
|
10030
|
+
_this.uploadInput.nativeElement.files = dataTransfer_1.files;
|
|
10031
|
+
}
|
|
10032
|
+
}
|
|
10033
|
+
_this.uploadService.handleFileList(_this.uploadInput.nativeElement.files);
|
|
9767
10034
|
};
|
|
9768
10035
|
/**
|
|
9769
10036
|
* Definiert das Control als Required
|
|
@@ -10131,7 +10398,7 @@
|
|
|
10131
10398
|
}
|
|
10132
10399
|
return error;
|
|
10133
10400
|
};
|
|
10134
|
-
// #endregion
|
|
10401
|
+
// #endregion Protected Methods
|
|
10135
10402
|
// #region Private Methods
|
|
10136
10403
|
SacUploadBase.prototype.UpdateFileCount = function () {
|
|
10137
10404
|
// HACK: Add addition property to FormControl. Can be fixed if solution for ticket: https://github.com/angular/angular/issues/19686
|
|
@@ -10271,7 +10538,7 @@
|
|
|
10271
10538
|
*/
|
|
10272
10539
|
_this.validationmessagesummaryminfiles = _this.validationKeyService.ValidationErrorSummaryFilesMin;
|
|
10273
10540
|
return _this;
|
|
10274
|
-
// #endregion
|
|
10541
|
+
// #endregion Protected Methods
|
|
10275
10542
|
}
|
|
10276
10543
|
// #endregion Properties
|
|
10277
10544
|
// #region Public Methods
|
|
@@ -10386,6 +10653,14 @@
|
|
|
10386
10653
|
}
|
|
10387
10654
|
return error;
|
|
10388
10655
|
};
|
|
10656
|
+
// #endregion Public Methods
|
|
10657
|
+
// #region Protected Methods
|
|
10658
|
+
/**
|
|
10659
|
+
* @inheritdoc
|
|
10660
|
+
*/
|
|
10661
|
+
SacDropzoneMultipleCommon.prototype.GetMaxFiles = function () {
|
|
10662
|
+
return this.maxfiles;
|
|
10663
|
+
};
|
|
10389
10664
|
return SacDropzoneMultipleCommon;
|
|
10390
10665
|
}(SacUploadBase));
|
|
10391
10666
|
SacDropzoneMultipleCommon.decorators = [
|
|
@@ -10415,7 +10690,7 @@
|
|
|
10415
10690
|
*/
|
|
10416
10691
|
_this.uploadheight = null;
|
|
10417
10692
|
return _this;
|
|
10418
|
-
// #endregion
|
|
10693
|
+
// #endregion Protected Methods
|
|
10419
10694
|
}
|
|
10420
10695
|
// #endregion Properties
|
|
10421
10696
|
// #region Public Methods
|
|
@@ -10498,6 +10773,14 @@
|
|
|
10498
10773
|
this.active = true;
|
|
10499
10774
|
}
|
|
10500
10775
|
};
|
|
10776
|
+
// #endregion Public Methods
|
|
10777
|
+
// #region Protected Methods
|
|
10778
|
+
/**
|
|
10779
|
+
* @inheritdoc
|
|
10780
|
+
*/
|
|
10781
|
+
SacDropzoneSingleCommon.prototype.GetMaxFiles = function () {
|
|
10782
|
+
return 1;
|
|
10783
|
+
};
|
|
10501
10784
|
return SacDropzoneSingleCommon;
|
|
10502
10785
|
}(SacUploadBase));
|
|
10503
10786
|
SacDropzoneSingleCommon.decorators = [
|
|
@@ -10539,7 +10822,7 @@
|
|
|
10539
10822
|
*/
|
|
10540
10823
|
_this.validationmessagesummaryminfiles = _this.validationKeyService.ValidationErrorSummaryFilesMin;
|
|
10541
10824
|
return _this;
|
|
10542
|
-
// #endregion
|
|
10825
|
+
// #endregion Protected Methods
|
|
10543
10826
|
}
|
|
10544
10827
|
// #endregion Properties
|
|
10545
10828
|
// #region Public Methods
|
|
@@ -10613,6 +10896,14 @@
|
|
|
10613
10896
|
}
|
|
10614
10897
|
return error;
|
|
10615
10898
|
};
|
|
10899
|
+
// #endregion Public Methods
|
|
10900
|
+
// #region Protected Methods
|
|
10901
|
+
/**
|
|
10902
|
+
* @inheritdoc
|
|
10903
|
+
*/
|
|
10904
|
+
SacUploadMultipleCommon.prototype.GetMaxFiles = function () {
|
|
10905
|
+
return this.maxfiles;
|
|
10906
|
+
};
|
|
10616
10907
|
return SacUploadMultipleCommon;
|
|
10617
10908
|
}(SacUploadBase));
|
|
10618
10909
|
SacUploadMultipleCommon.decorators = [
|
|
@@ -10643,7 +10934,7 @@
|
|
|
10643
10934
|
*/
|
|
10644
10935
|
_this.buttonupload = '';
|
|
10645
10936
|
return _this;
|
|
10646
|
-
// #endregion
|
|
10937
|
+
// #endregion Protected Methods
|
|
10647
10938
|
}
|
|
10648
10939
|
// #endregion Properties
|
|
10649
10940
|
// #region Public Methods
|
|
@@ -10676,6 +10967,14 @@
|
|
|
10676
10967
|
}
|
|
10677
10968
|
}
|
|
10678
10969
|
};
|
|
10970
|
+
// #endregion Public Methods
|
|
10971
|
+
// #region Protected Methods
|
|
10972
|
+
/**
|
|
10973
|
+
* @inheritdoc
|
|
10974
|
+
*/
|
|
10975
|
+
SacUploadSingleCommon.prototype.GetMaxFiles = function () {
|
|
10976
|
+
return 1;
|
|
10977
|
+
};
|
|
10679
10978
|
return SacUploadSingleCommon;
|
|
10680
10979
|
}(SacUploadBase));
|
|
10681
10980
|
SacUploadSingleCommon.decorators = [
|
|
@@ -11168,43 +11467,35 @@
|
|
|
11168
11467
|
*/
|
|
11169
11468
|
var SacConfirmCommon = /** @class */ (function () {
|
|
11170
11469
|
function SacConfirmCommon() {
|
|
11171
|
-
|
|
11172
|
-
/**
|
|
11173
|
-
* Event wenn Dialog geschlossen wird
|
|
11174
|
-
*/
|
|
11175
|
-
this.onconfirm = new i0.EventEmitter();
|
|
11176
|
-
/**
|
|
11177
|
-
* Dialog Titel für Confirm Dialog
|
|
11178
|
-
*/
|
|
11179
|
-
this.title = '';
|
|
11470
|
+
// #region Properties
|
|
11180
11471
|
/**
|
|
11181
|
-
*
|
|
11472
|
+
* Map mit Buttons die in Dialog angezeigt werden.
|
|
11182
11473
|
*/
|
|
11183
|
-
this.
|
|
11474
|
+
this.buttons = [];
|
|
11184
11475
|
/**
|
|
11185
11476
|
* Icon welches auf dem Dialog angezeigt wird
|
|
11186
11477
|
*/
|
|
11187
11478
|
this.image = '';
|
|
11188
|
-
/**
|
|
11189
|
-
* Map mit Buttons die in Dialog angezeigt werden.
|
|
11190
|
-
*/
|
|
11191
|
-
this.buttons = [];
|
|
11192
|
-
//#endregion
|
|
11193
|
-
//#region Internal Properties and Methods
|
|
11194
11479
|
/**
|
|
11195
11480
|
* Definiert ob der Dialog sichtbar ist
|
|
11196
11481
|
*/
|
|
11197
11482
|
this.isvisible = false;
|
|
11198
|
-
|
|
11483
|
+
/**
|
|
11484
|
+
* Nachricht die auf dem Dialog angezeigt wird
|
|
11485
|
+
*/
|
|
11486
|
+
this.message = '';
|
|
11487
|
+
/**
|
|
11488
|
+
* Event wenn Dialog geschlossen wird
|
|
11489
|
+
*/
|
|
11490
|
+
this.onconfirm = new i0.EventEmitter();
|
|
11491
|
+
/**
|
|
11492
|
+
* Dialog Titel für Confirm Dialog
|
|
11493
|
+
*/
|
|
11494
|
+
this.title = '';
|
|
11495
|
+
// #endregion Public Methods
|
|
11199
11496
|
}
|
|
11200
|
-
|
|
11201
|
-
|
|
11202
|
-
*/
|
|
11203
|
-
SacConfirmCommon.prototype.hasImage = function () {
|
|
11204
|
-
return this.image !== '';
|
|
11205
|
-
};
|
|
11206
|
-
//#endregion
|
|
11207
|
-
//#region Public Methods
|
|
11497
|
+
// #endregion Properties
|
|
11498
|
+
// #region Public Methods
|
|
11208
11499
|
/**
|
|
11209
11500
|
* Action wenn Button auf Dialog geklickt wurde. Löst den EventEmitter aus und blendet den Dialog aus.
|
|
11210
11501
|
* @param action
|
|
@@ -11214,10 +11505,10 @@
|
|
|
11214
11505
|
this.isvisible = false;
|
|
11215
11506
|
};
|
|
11216
11507
|
/**
|
|
11217
|
-
*
|
|
11508
|
+
* Definiert, ob für den Dialog ein Image definiert wurde
|
|
11218
11509
|
*/
|
|
11219
|
-
SacConfirmCommon.prototype.
|
|
11220
|
-
this.
|
|
11510
|
+
SacConfirmCommon.prototype.hasImage = function () {
|
|
11511
|
+
return this.image !== '';
|
|
11221
11512
|
};
|
|
11222
11513
|
/**
|
|
11223
11514
|
* Blendet den Dialog aus
|
|
@@ -11225,17 +11516,23 @@
|
|
|
11225
11516
|
SacConfirmCommon.prototype.hide = function () {
|
|
11226
11517
|
this.isvisible = false;
|
|
11227
11518
|
};
|
|
11519
|
+
/**
|
|
11520
|
+
* Zeigt den Dialog an
|
|
11521
|
+
*/
|
|
11522
|
+
SacConfirmCommon.prototype.show = function () {
|
|
11523
|
+
this.isvisible = true;
|
|
11524
|
+
};
|
|
11228
11525
|
return SacConfirmCommon;
|
|
11229
11526
|
}());
|
|
11230
11527
|
SacConfirmCommon.decorators = [
|
|
11231
11528
|
{ type: i0.Directive }
|
|
11232
11529
|
];
|
|
11233
11530
|
SacConfirmCommon.propDecorators = {
|
|
11234
|
-
|
|
11235
|
-
title: [{ type: i0.Input }],
|
|
11236
|
-
message: [{ type: i0.Input }],
|
|
11531
|
+
buttons: [{ type: i0.Input }],
|
|
11237
11532
|
image: [{ type: i0.Input }],
|
|
11238
|
-
|
|
11533
|
+
message: [{ type: i0.Input }],
|
|
11534
|
+
onconfirm: [{ type: i0.Output }],
|
|
11535
|
+
title: [{ type: i0.Input }]
|
|
11239
11536
|
};
|
|
11240
11537
|
|
|
11241
11538
|
/**
|
|
@@ -11775,10 +12072,18 @@
|
|
|
11775
12072
|
* Extra CSS Klassen für das Control
|
|
11776
12073
|
*/
|
|
11777
12074
|
this.cssclass = '';
|
|
12075
|
+
/**
|
|
12076
|
+
* Identifier used for the E2E data attribute.
|
|
12077
|
+
*/
|
|
12078
|
+
this.e2eidentifier = null;
|
|
11778
12079
|
/**
|
|
11779
12080
|
* Definiert ob das Dropdown offen ist.
|
|
11780
12081
|
*/
|
|
11781
12082
|
this.isopen = false;
|
|
12083
|
+
/**
|
|
12084
|
+
* name of control
|
|
12085
|
+
*/
|
|
12086
|
+
this.name = createGuid();
|
|
11782
12087
|
/**
|
|
11783
12088
|
* The preferred placement of the dropdown.
|
|
11784
12089
|
*
|
|
@@ -11931,8 +12236,10 @@
|
|
|
11931
12236
|
buttontemplate: [{ type: i0.Input }],
|
|
11932
12237
|
container: [{ type: i0.Input }],
|
|
11933
12238
|
cssclass: [{ type: i0.Input }],
|
|
12239
|
+
e2eidentifier: [{ type: i0.Input }],
|
|
11934
12240
|
isopen: [{ type: i0.Input }],
|
|
11935
12241
|
menuitems: [{ type: i0.ContentChildren, args: [SacContextmenuItemCommon,] }],
|
|
12242
|
+
name: [{ type: i0.Input }],
|
|
11936
12243
|
placement: [{ type: i0.Input }],
|
|
11937
12244
|
onClick: [{ type: i0.HostListener, args: ['document:click', ['$event.target'],] }]
|
|
11938
12245
|
};
|
|
@@ -12659,6 +12966,57 @@
|
|
|
12659
12966
|
exitEditMode: [{ type: i0.HostListener, args: ['document:click', ['$event.target'],] }]
|
|
12660
12967
|
};
|
|
12661
12968
|
|
|
12969
|
+
var SacTestingAttributePipe = /** @class */ (function () {
|
|
12970
|
+
// #endregion Properties
|
|
12971
|
+
// #region Constructors
|
|
12972
|
+
/**
|
|
12973
|
+
*
|
|
12974
|
+
*/
|
|
12975
|
+
function SacTestingAttributePipe(injector) {
|
|
12976
|
+
// get attribute state from config
|
|
12977
|
+
var configurationService = injector.get(SACCONFIGURATION_SERVICE, new SacDefaultConfigurationService());
|
|
12978
|
+
this.isEnabled = configurationService.EnableE2EAttributes;
|
|
12979
|
+
}
|
|
12980
|
+
// #endregion Constructors
|
|
12981
|
+
// #region Public Methods
|
|
12982
|
+
SacTestingAttributePipe.prototype.transform = function (controlname, e2eattribute) {
|
|
12983
|
+
// return null to disable attribute if disabled
|
|
12984
|
+
if (!this.isEnabled) {
|
|
12985
|
+
return null;
|
|
12986
|
+
}
|
|
12987
|
+
if (e2eattribute) {
|
|
12988
|
+
return e2eattribute;
|
|
12989
|
+
}
|
|
12990
|
+
if (controlname) {
|
|
12991
|
+
return controlname;
|
|
12992
|
+
}
|
|
12993
|
+
// disable attribute if name and e2e attribute is not set
|
|
12994
|
+
return null;
|
|
12995
|
+
};
|
|
12996
|
+
return SacTestingAttributePipe;
|
|
12997
|
+
}());
|
|
12998
|
+
SacTestingAttributePipe.decorators = [
|
|
12999
|
+
{ type: i0.Pipe, args: [{
|
|
13000
|
+
name: 'testingattribute',
|
|
13001
|
+
},] }
|
|
13002
|
+
];
|
|
13003
|
+
SacTestingAttributePipe.ctorParameters = function () { return [
|
|
13004
|
+
{ type: i0.Injector }
|
|
13005
|
+
]; };
|
|
13006
|
+
|
|
13007
|
+
var SACCommonUtliltiesModule = /** @class */ (function () {
|
|
13008
|
+
function SACCommonUtliltiesModule() {
|
|
13009
|
+
}
|
|
13010
|
+
return SACCommonUtliltiesModule;
|
|
13011
|
+
}());
|
|
13012
|
+
SACCommonUtliltiesModule.decorators = [
|
|
13013
|
+
{ type: i0.NgModule, args: [{
|
|
13014
|
+
declarations: [SacTestingAttributePipe],
|
|
13015
|
+
imports: [],
|
|
13016
|
+
exports: [SacTestingAttributePipe],
|
|
13017
|
+
},] }
|
|
13018
|
+
];
|
|
13019
|
+
|
|
12662
13020
|
/**
|
|
12663
13021
|
* Model für Sprachen
|
|
12664
13022
|
*/
|
|
@@ -12681,7 +13039,7 @@
|
|
|
12681
13039
|
{ type: i0.NgModule, args: [{
|
|
12682
13040
|
declarations: [],
|
|
12683
13041
|
imports: [],
|
|
12684
|
-
exports: []
|
|
13042
|
+
exports: [],
|
|
12685
13043
|
},] }
|
|
12686
13044
|
];
|
|
12687
13045
|
|
|
@@ -12701,6 +13059,7 @@
|
|
|
12701
13059
|
exports.Positioning = Positioning;
|
|
12702
13060
|
exports.SACCONFIGURATION_SERVICE = SACCONFIGURATION_SERVICE;
|
|
12703
13061
|
exports.SACCommonListboxOptionModule = SACCommonListboxOptionModule;
|
|
13062
|
+
exports.SACCommonUtliltiesModule = SACCommonUtliltiesModule;
|
|
12704
13063
|
exports.SACFILEBROWSER_SERVICE = SACFILEBROWSER_SERVICE;
|
|
12705
13064
|
exports.SACICON_SERVICE = SACICON_SERVICE;
|
|
12706
13065
|
exports.SACLANGUAGE_SERVICE = SACLANGUAGE_SERVICE;
|
|
@@ -12761,6 +13120,7 @@
|
|
|
12761
13120
|
exports.SacStaticLabelCommon = SacStaticLabelCommon;
|
|
12762
13121
|
exports.SacTabCommon = SacTabCommon;
|
|
12763
13122
|
exports.SacTabItemCommon = SacTabItemCommon;
|
|
13123
|
+
exports.SacTestingAttributePipe = SacTestingAttributePipe;
|
|
12764
13124
|
exports.SacTimeCommon = SacTimeCommon;
|
|
12765
13125
|
exports.SacTinyMceCommon = SacTinyMceCommon;
|
|
12766
13126
|
exports.SacTooltipCommon = SacTooltipCommon;
|