@simpleangularcontrols/sac-common 10.0.0-rc.20 → 10.0.0-rc.21
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 +149 -258
- 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/controls/input/input.d.ts +3 -3
- package/controls/input/inputarea.d.ts +5 -5
- package/controls/input/inputpassword.d.ts +7 -7
- package/controls/multilanguage/multilanguageinput.d.ts +2 -2
- package/controls/multilanguage/multilanguageinputarea.d.ts +4 -4
- package/esm2015/controls/input/input.js +6 -8
- package/esm2015/controls/input/inputarea.js +19 -12
- package/esm2015/controls/input/inputpassword.js +12 -12
- package/esm2015/controls/multilanguage/multilanguageinput.js +8 -14
- package/esm2015/controls/multilanguage/multilanguageinputarea.js +9 -15
- package/esm2015/interfaces/ISacValidationKeyService.js +1 -1
- package/esm2015/services/sac-localisation.service.js +69 -180
- package/esm2015/services/sac-validationkey.service.js +12 -9
- package/esm2015/validation/mintextlength.validator.js +23 -0
- package/esm2015/validation/mintextlength.validator.ngfactory.js +7 -0
- package/esm2015/validation/validation.class.js +23 -18
- package/fesm2015/simpleangularcontrols-sac-common.js +149 -257
- package/fesm2015/simpleangularcontrols-sac-common.js.map +1 -1
- package/interfaces/ISacValidationKeyService.d.ts +2 -2
- package/package.json +1 -1
- package/services/sac-localisation.service.d.ts +10 -10
- package/services/sac-validationkey.service.d.ts +7 -7
- package/simpleangularcontrols-sac-common-10.0.0-rc.21.tgz +0 -0
- package/simpleangularcontrols-sac-common.metadata.json +1 -1
- package/validation/mintextlength.validator.d.ts +2 -0
- package/validation/validation.class.d.ts +11 -11
- package/esm2015/validation/minlength.validator.js +0 -21
- package/esm2015/validation/minlength.validator.ngfactory.js +0 -7
- package/simpleangularcontrols-sac-common-10.0.0-rc.20.tgz +0 -0
- package/validation/minlength.validator.d.ts +0 -2
- /package/validation/{minlength.validator.ngfactory.d.ts → mintextlength.validator.ngfactory.d.ts} +0 -0
|
@@ -1622,6 +1622,13 @@
|
|
|
1622
1622
|
return Interpolation;
|
|
1623
1623
|
}());
|
|
1624
1624
|
|
|
1625
|
+
// #region Variables
|
|
1626
|
+
/**
|
|
1627
|
+
* injection token for localisation service
|
|
1628
|
+
*/
|
|
1629
|
+
var SACVALIDATIONKEY_SERVICE = new i0.InjectionToken('SacValidationkeyService');
|
|
1630
|
+
// #endregion Variables
|
|
1631
|
+
// #region Exported Classes
|
|
1625
1632
|
var SacDefaultValidationKeyService = /** @class */ (function () {
|
|
1626
1633
|
function SacDefaultValidationKeyService() {
|
|
1627
1634
|
}
|
|
@@ -1808,9 +1815,9 @@
|
|
|
1808
1815
|
enumerable: false,
|
|
1809
1816
|
configurable: true
|
|
1810
1817
|
});
|
|
1811
|
-
Object.defineProperty(SacDefaultValidationKeyService.prototype, "
|
|
1818
|
+
Object.defineProperty(SacDefaultValidationKeyService.prototype, "ValidationErrorMinTextLength", {
|
|
1812
1819
|
get: function () {
|
|
1813
|
-
return '
|
|
1820
|
+
return 'VALIDATION_ERROR_MINTEXTLENGTH';
|
|
1814
1821
|
},
|
|
1815
1822
|
enumerable: false,
|
|
1816
1823
|
configurable: true
|
|
@@ -1907,9 +1914,9 @@
|
|
|
1907
1914
|
enumerable: false,
|
|
1908
1915
|
configurable: true
|
|
1909
1916
|
});
|
|
1910
|
-
Object.defineProperty(SacDefaultValidationKeyService.prototype, "
|
|
1917
|
+
Object.defineProperty(SacDefaultValidationKeyService.prototype, "ValidationErrorSummaryMinTextLength", {
|
|
1911
1918
|
get: function () {
|
|
1912
|
-
return '
|
|
1919
|
+
return 'VALIDATION_ERROR_SUMMARY_MINTEXTLENGTH';
|
|
1913
1920
|
},
|
|
1914
1921
|
enumerable: false,
|
|
1915
1922
|
configurable: true
|
|
@@ -1961,13 +1968,15 @@
|
|
|
1961
1968
|
SacDefaultValidationKeyService.ɵprov = i0.ɵɵdefineInjectable({ factory: function SacDefaultValidationKeyService_Factory() { return new SacDefaultValidationKeyService(); }, token: SacDefaultValidationKeyService, providedIn: "root" });
|
|
1962
1969
|
SacDefaultValidationKeyService.decorators = [
|
|
1963
1970
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
1964
|
-
];
|
|
1971
|
+
];
|
|
1972
|
+
|
|
1973
|
+
// #region Variables
|
|
1965
1974
|
/**
|
|
1966
1975
|
* injection token for localisation service
|
|
1967
1976
|
*/
|
|
1968
|
-
var
|
|
1969
|
-
|
|
1970
|
-
// #region Classes
|
|
1977
|
+
var SACLOCALISATION_SERVICE = new i0.InjectionToken('SacLocalisationService');
|
|
1978
|
+
// #endregion Variables
|
|
1979
|
+
// #region Exported Classes
|
|
1971
1980
|
/**
|
|
1972
1981
|
* abstract class for localisation in components
|
|
1973
1982
|
* */
|
|
@@ -2001,63 +2010,45 @@
|
|
|
2001
2010
|
// Set Languages
|
|
2002
2011
|
_this.data.set('de', new Map());
|
|
2003
2012
|
// Validation
|
|
2004
|
-
_this.data
|
|
2005
|
-
.get('de')
|
|
2006
|
-
.set(validationKeyService.ValidationErrorRequired, _this.VALIDATION_ERROR_REQUIRED.get('de'));
|
|
2013
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorRequired, _this.VALIDATION_ERROR_REQUIRED.get('de'));
|
|
2007
2014
|
_this.data
|
|
2008
2015
|
.get('de')
|
|
2009
2016
|
.set(validationKeyService.ValidationErrorSummaryRequired, _this.VALIDATION_ERROR_SUMMARY_REQUIRED.get('de'));
|
|
2010
|
-
_this.data
|
|
2011
|
-
.get('de')
|
|
2012
|
-
.set(validationKeyService.ValidationErrorMinValue, _this.VALIDATION_ERROR_MINVALUE.get('de'));
|
|
2017
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorMinValue, _this.VALIDATION_ERROR_MINVALUE.get('de'));
|
|
2013
2018
|
_this.data
|
|
2014
2019
|
.get('de')
|
|
2015
2020
|
.set(validationKeyService.ValidationErrorSummaryMinValue, _this.VALIDATION_ERROR_SUMMARY_MINVALUE.get('de'));
|
|
2016
|
-
_this.data
|
|
2017
|
-
.get('de')
|
|
2018
|
-
.set(validationKeyService.ValidationErrorPattern, _this.VALIDATION_ERROR_PATTERN.get('de'));
|
|
2021
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorPattern, _this.VALIDATION_ERROR_PATTERN.get('de'));
|
|
2019
2022
|
_this.data
|
|
2020
2023
|
.get('de')
|
|
2021
2024
|
.set(validationKeyService.ValidationErrorSummaryPattern, _this.VALIDATION_ERROR_SUMMARY_PATTERN.get('de'));
|
|
2022
|
-
_this.data
|
|
2023
|
-
.get('de')
|
|
2024
|
-
.set(validationKeyService.ValidationErrorMaxValue, _this.VALIDATION_ERROR_MAXVALUE.get('de'));
|
|
2025
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorMaxValue, _this.VALIDATION_ERROR_MAXVALUE.get('de'));
|
|
2025
2026
|
_this.data
|
|
2026
2027
|
.get('de')
|
|
2027
2028
|
.set(validationKeyService.ValidationErrorSummaryMaxValue, _this.VALIDATION_ERROR_SUMMARY_MAXVALUE.get('de'));
|
|
2028
|
-
_this.data
|
|
2029
|
-
.get('de')
|
|
2030
|
-
.set(validationKeyService.ValidationErrorEmail, _this.VALIDATION_ERROR_EMAIL.get('de'));
|
|
2029
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorEmail, _this.VALIDATION_ERROR_EMAIL.get('de'));
|
|
2031
2030
|
_this.data
|
|
2032
2031
|
.get('de')
|
|
2033
2032
|
.set(validationKeyService.ValidationErrorSummaryEmail, _this.VALIDATION_ERROR_SUMMARY_EMAIL.get('de'));
|
|
2034
2033
|
_this.data
|
|
2035
2034
|
.get('de')
|
|
2036
|
-
.set(validationKeyService.
|
|
2035
|
+
.set(validationKeyService.ValidationErrorMinTextLength, _this.VALIDATION_ERROR_MINTEXTLENGTH.get('de'));
|
|
2037
2036
|
_this.data
|
|
2038
2037
|
.get('de')
|
|
2039
|
-
.set(validationKeyService.
|
|
2040
|
-
_this.data
|
|
2041
|
-
.get('de')
|
|
2042
|
-
.set(validationKeyService.ValidationErrorMinDate, _this.VALIDATION_ERROR_MINDATE.get('de'));
|
|
2038
|
+
.set(validationKeyService.ValidationErrorSummaryMinTextLength, _this.VALIDATION_ERROR_SUMMARY_MINTEXTLENGTH.get('de'));
|
|
2039
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorMinDate, _this.VALIDATION_ERROR_MINDATE.get('de'));
|
|
2043
2040
|
_this.data
|
|
2044
2041
|
.get('de')
|
|
2045
2042
|
.set(validationKeyService.ValidationErrorSummaryMinDate, _this.VALIDATION_ERROR_SUMMARY_MINDATE.get('de'));
|
|
2046
|
-
_this.data
|
|
2047
|
-
.get('de')
|
|
2048
|
-
.set(validationKeyService.ValidationErrorMaxDate, _this.VALIDATION_ERROR_MAXDATE.get('de'));
|
|
2043
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorMaxDate, _this.VALIDATION_ERROR_MAXDATE.get('de'));
|
|
2049
2044
|
_this.data
|
|
2050
2045
|
.get('de')
|
|
2051
2046
|
.set(validationKeyService.ValidationErrorSummaryMaxDate, _this.VALIDATION_ERROR_SUMMARY_MAXDATE.get('de'));
|
|
2052
|
-
_this.data
|
|
2053
|
-
.get('de')
|
|
2054
|
-
.set(validationKeyService.ValidationErrorMinTime, _this.VALIDATION_ERROR_MINTIME.get('de'));
|
|
2047
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorMinTime, _this.VALIDATION_ERROR_MINTIME.get('de'));
|
|
2055
2048
|
_this.data
|
|
2056
2049
|
.get('de')
|
|
2057
2050
|
.set(validationKeyService.ValidationErrorSummaryMinTime, _this.VALIDATION_ERROR_SUMMARY_MINTIME.get('de'));
|
|
2058
|
-
_this.data
|
|
2059
|
-
.get('de')
|
|
2060
|
-
.set(validationKeyService.ValidationErrorMaxTime, _this.VALIDATION_ERROR_MAXTIME.get('de'));
|
|
2051
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorMaxTime, _this.VALIDATION_ERROR_MAXTIME.get('de'));
|
|
2061
2052
|
_this.data
|
|
2062
2053
|
.get('de')
|
|
2063
2054
|
.set(validationKeyService.ValidationErrorSummaryMaxTime, _this.VALIDATION_ERROR_SUMMARY_MAXTIME.get('de'));
|
|
@@ -2067,9 +2058,7 @@
|
|
|
2067
2058
|
_this.data
|
|
2068
2059
|
.get('de')
|
|
2069
2060
|
.set(validationKeyService.ValidationErrorSummaryDatetimeFormat, _this.VALIDATION_ERROR_SUMMARY_DATETIMEFORMAT.get('de'));
|
|
2070
|
-
_this.data
|
|
2071
|
-
.get('de')
|
|
2072
|
-
.set(validationKeyService.ValidationErrorFilesMin, _this.VALIDATION_ERROR_FILESMIN.get('de'));
|
|
2061
|
+
_this.data.get('de').set(validationKeyService.ValidationErrorFilesMin, _this.VALIDATION_ERROR_FILESMIN.get('de'));
|
|
2073
2062
|
_this.data
|
|
2074
2063
|
.get('de')
|
|
2075
2064
|
.set(validationKeyService.ValidationErrorSummaryFilesMin, _this.VALIDATION_ERROR_SUMMARY_FILESMIN.get('de'));
|
|
@@ -2086,70 +2075,38 @@
|
|
|
2086
2075
|
.get('de')
|
|
2087
2076
|
.set(validationKeyService.ValidationErrorSummaryMultilanguageRequired, _this.VALIDATION_ERROR_SUMMARY_MULTILANGUAGEREQUIRED.get('de'));
|
|
2088
2077
|
// Grid Component
|
|
2089
|
-
_this.data
|
|
2090
|
-
|
|
2091
|
-
.set(validationKeyService.PagingPageOf, _this.PAGING_PAGEOFTEXT.get('de'));
|
|
2092
|
-
_this.data
|
|
2093
|
-
.get('de')
|
|
2094
|
-
.set(validationKeyService.PagingEntries, _this.PAGING_PAGEENTRIESTEXT.get('de'));
|
|
2078
|
+
_this.data.get('de').set(validationKeyService.PagingPageOf, _this.PAGING_PAGEOFTEXT.get('de'));
|
|
2079
|
+
_this.data.get('de').set(validationKeyService.PagingEntries, _this.PAGING_PAGEENTRIESTEXT.get('de'));
|
|
2095
2080
|
// Upload Component
|
|
2096
|
-
_this.data
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
_this.data
|
|
2100
|
-
.get('de')
|
|
2101
|
-
.set(validationKeyService.UploadButtonUpload, _this.UPLOAD_BUTTON_UPLOAD.get('de'));
|
|
2102
|
-
_this.data
|
|
2103
|
-
.get('de')
|
|
2104
|
-
.set(validationKeyService.UploadButtonBrowse, _this.UPLOAD_BUTTON_BROWSE.get('de'));
|
|
2081
|
+
_this.data.get('de').set(validationKeyService.UploadNoFilesSelected, _this.UPLOAD_NO_FILE_SELECTED.get('de'));
|
|
2082
|
+
_this.data.get('de').set(validationKeyService.UploadButtonUpload, _this.UPLOAD_BUTTON_UPLOAD.get('de'));
|
|
2083
|
+
_this.data.get('de').set(validationKeyService.UploadButtonBrowse, _this.UPLOAD_BUTTON_BROWSE.get('de'));
|
|
2105
2084
|
// TinyMCE Component
|
|
2106
|
-
_this.data
|
|
2107
|
-
|
|
2108
|
-
.set(validationKeyService.TinyMceFileselectOk, _this.TINYMCE_FILESELECT_OK.get('de'));
|
|
2109
|
-
_this.data
|
|
2110
|
-
.get('de')
|
|
2111
|
-
.set(validationKeyService.TinyMceFileselectCancel, _this.TINYMCE_FILESELECT_CANCEL.get('de'));
|
|
2085
|
+
_this.data.get('de').set(validationKeyService.TinyMceFileselectOk, _this.TINYMCE_FILESELECT_OK.get('de'));
|
|
2086
|
+
_this.data.get('de').set(validationKeyService.TinyMceFileselectCancel, _this.TINYMCE_FILESELECT_CANCEL.get('de'));
|
|
2112
2087
|
_this.data
|
|
2113
2088
|
.get('de')
|
|
2114
2089
|
.set(validationKeyService.TinyMceFileselectDialogtitle, _this.TINYMCE_FILESELECT_DIALOGTITLE.get('de'));
|
|
2115
2090
|
// Confirm Dialog Component
|
|
2116
|
-
_this.data
|
|
2117
|
-
|
|
2118
|
-
.set(validationKeyService.ConfirmDefaultButtonYes, _this.CONFIRM_BUTTON_YES.get('de'));
|
|
2119
|
-
_this.data
|
|
2120
|
-
.get('de')
|
|
2121
|
-
.set(validationKeyService.ConfirmDefaultButtonNo, _this.CONFIRM_BUTTON_NO.get('de'));
|
|
2091
|
+
_this.data.get('de').set(validationKeyService.ConfirmDefaultButtonYes, _this.CONFIRM_BUTTON_YES.get('de'));
|
|
2092
|
+
_this.data.get('de').set(validationKeyService.ConfirmDefaultButtonNo, _this.CONFIRM_BUTTON_NO.get('de'));
|
|
2122
2093
|
// Browser Component
|
|
2123
|
-
_this.data
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
_this.data
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
_this.data
|
|
2130
|
-
.get('de')
|
|
2131
|
-
.set(validationKeyService.FilebrowserGridSize, _this.FILEBROWSER_GRID_SIZE.get('de'));
|
|
2132
|
-
_this.data
|
|
2133
|
-
.get('de')
|
|
2134
|
-
.set(validationKeyService.FilebrowserButtonUpload, _this.FILEBROWSER_UPLOAD.get('de'));
|
|
2135
|
-
_this.data
|
|
2136
|
-
.get('de')
|
|
2137
|
-
.set(validationKeyService.FilebrowserButtonNewFolder, _this.FILEBROWSER_NEWFOLDER.get('de'));
|
|
2138
|
-
_this.data
|
|
2139
|
-
.get('de')
|
|
2140
|
-
.set(validationKeyService.FilebrowserButtonRefresh, _this.FILEBROWSER_REFRESH.get('de'));
|
|
2141
|
-
_this.data
|
|
2142
|
-
.get('de')
|
|
2143
|
-
.set(validationKeyService.FilebrowserButtonDelete, _this.FILEBROWSER_DELETE.get('de'));
|
|
2094
|
+
_this.data.get('de').set(validationKeyService.FilebrowserGridNoFiles, _this.FILEBROWSER_NO_FILES.get('de'));
|
|
2095
|
+
_this.data.get('de').set(validationKeyService.FilebrowserGridFilename, _this.FILEBROWSER_GRID_FILE.get('de'));
|
|
2096
|
+
_this.data.get('de').set(validationKeyService.FilebrowserGridSize, _this.FILEBROWSER_GRID_SIZE.get('de'));
|
|
2097
|
+
_this.data.get('de').set(validationKeyService.FilebrowserButtonUpload, _this.FILEBROWSER_UPLOAD.get('de'));
|
|
2098
|
+
_this.data.get('de').set(validationKeyService.FilebrowserButtonNewFolder, _this.FILEBROWSER_NEWFOLDER.get('de'));
|
|
2099
|
+
_this.data.get('de').set(validationKeyService.FilebrowserButtonRefresh, _this.FILEBROWSER_REFRESH.get('de'));
|
|
2100
|
+
_this.data.get('de').set(validationKeyService.FilebrowserButtonDelete, _this.FILEBROWSER_DELETE.get('de'));
|
|
2144
2101
|
_this.data
|
|
2145
2102
|
.get('de')
|
|
2146
2103
|
.set(_this.validationKeyService.FilebrowserConfirmTextDeleteFolder, _this.FILEBROWSER_CONFIRM_DELETEFOLDER.get('de'));
|
|
2147
2104
|
_this.data
|
|
2148
2105
|
.get('de')
|
|
2149
2106
|
.set(_this.validationKeyService.FilebrowserConfirmTextDeleteFile, _this.FILEBROWSER_CONFIRM_DELETEFILE.get('de'));
|
|
2150
|
-
// EN
|
|
2151
|
-
_this.data.set('en', new Map());
|
|
2152
2107
|
return _this;
|
|
2108
|
+
// EN
|
|
2109
|
+
// this.data.set('en', new Map<string, string>());
|
|
2153
2110
|
}
|
|
2154
2111
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "CONFIRM_BUTTON_NO", {
|
|
2155
2112
|
// #endregion Constructors
|
|
@@ -2176,9 +2133,7 @@
|
|
|
2176
2133
|
});
|
|
2177
2134
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "FILEBROWSER_CONFIRM_DELETEFOLDER", {
|
|
2178
2135
|
get: function () {
|
|
2179
|
-
return new Map([
|
|
2180
|
-
['de', 'Soll der Ordner gelöscht werden?'],
|
|
2181
|
-
]);
|
|
2136
|
+
return new Map([['de', 'Soll der Ordner gelöscht werden?']]);
|
|
2182
2137
|
},
|
|
2183
2138
|
enumerable: false,
|
|
2184
2139
|
configurable: true
|
|
@@ -2227,9 +2182,7 @@
|
|
|
2227
2182
|
});
|
|
2228
2183
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "FILEBROWSER_UPLOAD", {
|
|
2229
2184
|
get: function () {
|
|
2230
|
-
return new Map([
|
|
2231
|
-
['de', 'Legen Sie Dateien hier ab um Sie hochzuladen'],
|
|
2232
|
-
]);
|
|
2185
|
+
return new Map([['de', 'Legen Sie Dateien hier ab um Sie hochzuladen']]);
|
|
2233
2186
|
},
|
|
2234
2187
|
enumerable: false,
|
|
2235
2188
|
configurable: true
|
|
@@ -2243,9 +2196,7 @@
|
|
|
2243
2196
|
});
|
|
2244
2197
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "PAGING_PAGEOFTEXT", {
|
|
2245
2198
|
get: function () {
|
|
2246
|
-
return new Map([
|
|
2247
|
-
['de', 'Seite {{CURRENTPAGE}} von {{TOTALPAGES}}'],
|
|
2248
|
-
]);
|
|
2199
|
+
return new Map([['de', 'Seite {{CURRENTPAGE}} von {{TOTALPAGES}}']]);
|
|
2249
2200
|
},
|
|
2250
2201
|
enumerable: false,
|
|
2251
2202
|
configurable: true
|
|
@@ -2308,99 +2259,77 @@
|
|
|
2308
2259
|
});
|
|
2309
2260
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_FILESMIN", {
|
|
2310
2261
|
get: function () {
|
|
2311
|
-
return new Map([
|
|
2312
|
-
['de', 'Es müssen min. {{MINFILES}} Dateien hochgeladen sein.'],
|
|
2313
|
-
]);
|
|
2262
|
+
return new Map([['de', 'Es müssen min. {{MINFILES}} Dateien hochgeladen sein.']]);
|
|
2314
2263
|
},
|
|
2315
2264
|
enumerable: false,
|
|
2316
2265
|
configurable: true
|
|
2317
2266
|
});
|
|
2318
2267
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MAXDATE", {
|
|
2319
2268
|
get: function () {
|
|
2320
|
-
return new Map([
|
|
2321
|
-
['de', 'Feld muss älter oder gleich {{MAXDATE}} sein.'],
|
|
2322
|
-
]);
|
|
2269
|
+
return new Map([['de', 'Feld muss älter oder gleich {{MAXDATE}} sein.']]);
|
|
2323
2270
|
},
|
|
2324
2271
|
enumerable: false,
|
|
2325
2272
|
configurable: true
|
|
2326
2273
|
});
|
|
2327
2274
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MAXTIME", {
|
|
2328
2275
|
get: function () {
|
|
2329
|
-
return new Map([
|
|
2330
|
-
['de', 'Feld muss älter oder gleich {{MAXTIME}} sein.'],
|
|
2331
|
-
]);
|
|
2276
|
+
return new Map([['de', 'Feld muss älter oder gleich {{MAXTIME}} sein.']]);
|
|
2332
2277
|
},
|
|
2333
2278
|
enumerable: false,
|
|
2334
2279
|
configurable: true
|
|
2335
2280
|
});
|
|
2336
2281
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MAXVALUE", {
|
|
2337
2282
|
get: function () {
|
|
2338
|
-
return new Map([
|
|
2339
|
-
['de', 'Feld "{{FIELD}}" darf nicht grösser als {{MAXVALUE}} sein.'],
|
|
2340
|
-
]);
|
|
2283
|
+
return new Map([['de', 'Feld "{{FIELD}}" darf nicht grösser als {{MAXVALUE}} sein.']]);
|
|
2341
2284
|
},
|
|
2342
2285
|
enumerable: false,
|
|
2343
2286
|
configurable: true
|
|
2344
2287
|
});
|
|
2345
2288
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MINDATE", {
|
|
2346
2289
|
get: function () {
|
|
2347
|
-
return new Map([
|
|
2348
|
-
['de', 'Feld muss neuer oder gleich {{MINDATE}} sein.'],
|
|
2349
|
-
]);
|
|
2290
|
+
return new Map([['de', 'Feld muss neuer oder gleich {{MINDATE}} sein.']]);
|
|
2350
2291
|
},
|
|
2351
2292
|
enumerable: false,
|
|
2352
2293
|
configurable: true
|
|
2353
2294
|
});
|
|
2354
|
-
Object.defineProperty(SacDefaultLocalisationService.prototype, "
|
|
2295
|
+
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MINTEXTLENGTH", {
|
|
2355
2296
|
get: function () {
|
|
2356
|
-
return new Map([
|
|
2357
|
-
['de', 'Feld erfordert min. {{MINLENGTH}} Zeichen.'],
|
|
2358
|
-
]);
|
|
2297
|
+
return new Map([['de', 'Feld erfordert min. {{MINTEXTLENGTH}} Zeichen.']]);
|
|
2359
2298
|
},
|
|
2360
2299
|
enumerable: false,
|
|
2361
2300
|
configurable: true
|
|
2362
2301
|
});
|
|
2363
2302
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MINTIME", {
|
|
2364
2303
|
get: function () {
|
|
2365
|
-
return new Map([
|
|
2366
|
-
['de', 'Feld muss neuer oder gleich {{MINTIME}} sein.'],
|
|
2367
|
-
]);
|
|
2304
|
+
return new Map([['de', 'Feld muss neuer oder gleich {{MINTIME}} sein.']]);
|
|
2368
2305
|
},
|
|
2369
2306
|
enumerable: false,
|
|
2370
2307
|
configurable: true
|
|
2371
2308
|
});
|
|
2372
2309
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MINVALUE", {
|
|
2373
2310
|
get: function () {
|
|
2374
|
-
return new Map([
|
|
2375
|
-
['de', 'Wert darf nicht kleiner als {{MINVALUE}} sein.'],
|
|
2376
|
-
]);
|
|
2311
|
+
return new Map([['de', 'Wert darf nicht kleiner als {{MINVALUE}} sein.']]);
|
|
2377
2312
|
},
|
|
2378
2313
|
enumerable: false,
|
|
2379
2314
|
configurable: true
|
|
2380
2315
|
});
|
|
2381
2316
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MULTILANGUAGEREQUIRED", {
|
|
2382
2317
|
get: function () {
|
|
2383
|
-
return new Map([
|
|
2384
|
-
['de', 'Es müssen alle Sprachen erfasst sein.'],
|
|
2385
|
-
]);
|
|
2318
|
+
return new Map([['de', 'Es müssen alle Sprachen erfasst sein.']]);
|
|
2386
2319
|
},
|
|
2387
2320
|
enumerable: false,
|
|
2388
2321
|
configurable: true
|
|
2389
2322
|
});
|
|
2390
2323
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_MULTILANGUAGEREQUIREDANY", {
|
|
2391
2324
|
get: function () {
|
|
2392
|
-
return new Map([
|
|
2393
|
-
['de', 'Es muss min. 1 Sprache erfasst sein.'],
|
|
2394
|
-
]);
|
|
2325
|
+
return new Map([['de', 'Es muss min. 1 Sprache erfasst sein.']]);
|
|
2395
2326
|
},
|
|
2396
2327
|
enumerable: false,
|
|
2397
2328
|
configurable: true
|
|
2398
2329
|
});
|
|
2399
2330
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_PATTERN", {
|
|
2400
2331
|
get: function () {
|
|
2401
|
-
return new Map([
|
|
2402
|
-
['de', 'Wert entspricht nicht der Format Vorlage.'],
|
|
2403
|
-
]);
|
|
2332
|
+
return new Map([['de', 'Wert entspricht nicht der Format Vorlage.']]);
|
|
2404
2333
|
},
|
|
2405
2334
|
enumerable: false,
|
|
2406
2335
|
configurable: true
|
|
@@ -2414,129 +2343,98 @@
|
|
|
2414
2343
|
});
|
|
2415
2344
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_DATETIMEFORMAT", {
|
|
2416
2345
|
get: function () {
|
|
2417
|
-
return new Map([
|
|
2418
|
-
['de', 'Feld "{{FIELD}}" ist kein gültiges Datum.'],
|
|
2419
|
-
]);
|
|
2346
|
+
return new Map([['de', 'Feld "{{FIELD}}" ist kein gültiges Datum.']]);
|
|
2420
2347
|
},
|
|
2421
2348
|
enumerable: false,
|
|
2422
2349
|
configurable: true
|
|
2423
2350
|
});
|
|
2424
2351
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_EMAIL", {
|
|
2425
2352
|
get: function () {
|
|
2426
|
-
return new Map([
|
|
2427
|
-
['de', 'Feld "{{FIELD}}" ist keine E-Mail Adresse'],
|
|
2428
|
-
]);
|
|
2353
|
+
return new Map([['de', 'Feld "{{FIELD}}" ist keine E-Mail Adresse']]);
|
|
2429
2354
|
},
|
|
2430
2355
|
enumerable: false,
|
|
2431
2356
|
configurable: true
|
|
2432
2357
|
});
|
|
2433
2358
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_FILESMIN", {
|
|
2434
2359
|
get: function () {
|
|
2435
|
-
return new Map([
|
|
2436
|
-
[
|
|
2437
|
-
'de',
|
|
2438
|
-
'Feld "{{FIELD}}" muss min. {{MINFILES}} Dateien hochgeladen haben.',
|
|
2439
|
-
],
|
|
2440
|
-
]);
|
|
2360
|
+
return new Map([['de', 'Feld "{{FIELD}}" muss min. {{MINFILES}} Dateien hochgeladen haben.']]);
|
|
2441
2361
|
},
|
|
2442
2362
|
enumerable: false,
|
|
2443
2363
|
configurable: true
|
|
2444
2364
|
});
|
|
2445
2365
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MAXDATE", {
|
|
2446
2366
|
get: function () {
|
|
2447
|
-
return new Map([
|
|
2448
|
-
['de', 'Feld "{{FIELD}}" muss älter oder gleich {{MAXDATE}} sein.'],
|
|
2449
|
-
]);
|
|
2367
|
+
return new Map([['de', 'Feld "{{FIELD}}" muss älter oder gleich {{MAXDATE}} sein.']]);
|
|
2450
2368
|
},
|
|
2451
2369
|
enumerable: false,
|
|
2452
2370
|
configurable: true
|
|
2453
2371
|
});
|
|
2454
2372
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MAXTIME", {
|
|
2455
2373
|
get: function () {
|
|
2456
|
-
return new Map([
|
|
2457
|
-
['de', 'Feld "{{FIELD}}" muss älter oder gleich {{MAXTIME}} sein.'],
|
|
2458
|
-
]);
|
|
2374
|
+
return new Map([['de', 'Feld "{{FIELD}}" muss älter oder gleich {{MAXTIME}} sein.']]);
|
|
2459
2375
|
},
|
|
2460
2376
|
enumerable: false,
|
|
2461
2377
|
configurable: true
|
|
2462
2378
|
});
|
|
2463
2379
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MAXVALUE", {
|
|
2464
2380
|
get: function () {
|
|
2465
|
-
return new Map([
|
|
2466
|
-
['de', 'Wert darf nicht grösser als {{MAXVALUE}} sein.'],
|
|
2467
|
-
]);
|
|
2381
|
+
return new Map([['de', 'Wert darf nicht grösser als {{MAXVALUE}} sein.']]);
|
|
2468
2382
|
},
|
|
2469
2383
|
enumerable: false,
|
|
2470
2384
|
configurable: true
|
|
2471
2385
|
});
|
|
2472
2386
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MINDATE", {
|
|
2473
2387
|
get: function () {
|
|
2474
|
-
return new Map([
|
|
2475
|
-
['de', 'Feld "{{FIELD}}" muss neuer oder gleich {{MINDATE}} sein.'],
|
|
2476
|
-
]);
|
|
2388
|
+
return new Map([['de', 'Feld "{{FIELD}}" muss neuer oder gleich {{MINDATE}} sein.']]);
|
|
2477
2389
|
},
|
|
2478
2390
|
enumerable: false,
|
|
2479
2391
|
configurable: true
|
|
2480
2392
|
});
|
|
2481
|
-
Object.defineProperty(SacDefaultLocalisationService.prototype, "
|
|
2393
|
+
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MINTEXTLENGTH", {
|
|
2482
2394
|
get: function () {
|
|
2483
|
-
return new Map([
|
|
2484
|
-
['de', 'Feld "{{FIELD}}" erfordert min. {{MINLENGTH}} Zeichen.'],
|
|
2485
|
-
]);
|
|
2395
|
+
return new Map([['de', 'Feld "{{FIELD}}" erfordert min. {{MINTEXTLENGTH}} Zeichen.']]);
|
|
2486
2396
|
},
|
|
2487
2397
|
enumerable: false,
|
|
2488
2398
|
configurable: true
|
|
2489
2399
|
});
|
|
2490
2400
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MINTIME", {
|
|
2491
2401
|
get: function () {
|
|
2492
|
-
return new Map([
|
|
2493
|
-
['de', 'Feld "{{FIELD}}" muss neuer oder gleich {{MINTIME}} sein.'],
|
|
2494
|
-
]);
|
|
2402
|
+
return new Map([['de', 'Feld "{{FIELD}}" muss neuer oder gleich {{MINTIME}} sein.']]);
|
|
2495
2403
|
},
|
|
2496
2404
|
enumerable: false,
|
|
2497
2405
|
configurable: true
|
|
2498
2406
|
});
|
|
2499
2407
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MINVALUE", {
|
|
2500
2408
|
get: function () {
|
|
2501
|
-
return new Map([
|
|
2502
|
-
['de', 'Feld "{{FIELD}}" darf nicht kleiner als {{MINVALUE}} sein.'],
|
|
2503
|
-
]);
|
|
2409
|
+
return new Map([['de', 'Feld "{{FIELD}}" darf nicht kleiner als {{MINVALUE}} sein.']]);
|
|
2504
2410
|
},
|
|
2505
2411
|
enumerable: false,
|
|
2506
2412
|
configurable: true
|
|
2507
2413
|
});
|
|
2508
2414
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MULTILANGUAGEREQUIRED", {
|
|
2509
2415
|
get: function () {
|
|
2510
|
-
return new Map([
|
|
2511
|
-
['de', 'Feld "{{FIELD}}" muss alle Sprachen erfasst haben.'],
|
|
2512
|
-
]);
|
|
2416
|
+
return new Map([['de', 'Feld "{{FIELD}}" muss alle Sprachen erfasst haben.']]);
|
|
2513
2417
|
},
|
|
2514
2418
|
enumerable: false,
|
|
2515
2419
|
configurable: true
|
|
2516
2420
|
});
|
|
2517
2421
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_MULTILANGUAGEREQUIREDANY", {
|
|
2518
2422
|
get: function () {
|
|
2519
|
-
return new Map([
|
|
2520
|
-
['de', 'Feld "{{FIELD}}" muss min. 1 Sprache erfasst haben.'],
|
|
2521
|
-
]);
|
|
2423
|
+
return new Map([['de', 'Feld "{{FIELD}}" muss min. 1 Sprache erfasst haben.']]);
|
|
2522
2424
|
},
|
|
2523
2425
|
enumerable: false,
|
|
2524
2426
|
configurable: true
|
|
2525
2427
|
});
|
|
2526
2428
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_PATTERN", {
|
|
2527
2429
|
get: function () {
|
|
2528
|
-
return new Map([
|
|
2529
|
-
['de', 'Feld "{{FIELD}}" entspricht nicht der Format Vorlage.'],
|
|
2530
|
-
]);
|
|
2430
|
+
return new Map([['de', 'Feld "{{FIELD}}" entspricht nicht der Format Vorlage.']]);
|
|
2531
2431
|
},
|
|
2532
2432
|
enumerable: false,
|
|
2533
2433
|
configurable: true
|
|
2534
2434
|
});
|
|
2535
2435
|
Object.defineProperty(SacDefaultLocalisationService.prototype, "VALIDATION_ERROR_SUMMARY_REQUIRED", {
|
|
2536
2436
|
get: function () {
|
|
2537
|
-
return new Map([
|
|
2538
|
-
['de', 'Feld "{{FIELD}}" ist erforderlich.'],
|
|
2539
|
-
]);
|
|
2437
|
+
return new Map([['de', 'Feld "{{FIELD}}" ist erforderlich.']]);
|
|
2540
2438
|
},
|
|
2541
2439
|
enumerable: false,
|
|
2542
2440
|
configurable: true
|
|
@@ -2608,13 +2506,7 @@
|
|
|
2608
2506
|
];
|
|
2609
2507
|
SacDefaultLocalisationService.ctorParameters = function () { return [
|
|
2610
2508
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [SACVALIDATIONKEY_SERVICE,] }] }
|
|
2611
|
-
]; };
|
|
2612
|
-
// #endregion Classes
|
|
2613
|
-
// #region Variables
|
|
2614
|
-
/**
|
|
2615
|
-
* injection token for localisation service
|
|
2616
|
-
*/
|
|
2617
|
-
var SACLOCALISATION_SERVICE = new i0.InjectionToken('SacLocalisationService');
|
|
2509
|
+
]; };
|
|
2618
2510
|
|
|
2619
2511
|
/**
|
|
2620
2512
|
* Erzeugt ein Boolean
|
|
@@ -3473,24 +3365,26 @@
|
|
|
3473
3365
|
};
|
|
3474
3366
|
}
|
|
3475
3367
|
|
|
3476
|
-
|
|
3368
|
+
// #region Exported Functions
|
|
3369
|
+
function minTextLengthValidator(mintextlength, validationMessage, validationMessageSummary) {
|
|
3477
3370
|
return function (control) {
|
|
3478
|
-
var validator = forms.Validators.minLength(
|
|
3479
|
-
if (
|
|
3480
|
-
|
|
3371
|
+
var validator = forms.Validators.minLength(mintextlength);
|
|
3372
|
+
if (mintextlength !== null &&
|
|
3373
|
+
mintextlength !== undefined &&
|
|
3481
3374
|
control.value !== '' &&
|
|
3482
3375
|
control.value !== undefined &&
|
|
3483
3376
|
control.value != null &&
|
|
3484
3377
|
validator(control) != null) {
|
|
3485
3378
|
var parameters = new Map();
|
|
3486
|
-
parameters.set('
|
|
3487
|
-
return CreateValidationError('
|
|
3379
|
+
parameters.set('MINTEXTLENGTH', mintextlength);
|
|
3380
|
+
return CreateValidationError('mintextlength', validationMessage, validationMessageSummary, parameters);
|
|
3488
3381
|
}
|
|
3489
3382
|
else {
|
|
3490
3383
|
return null;
|
|
3491
3384
|
}
|
|
3492
3385
|
};
|
|
3493
|
-
}
|
|
3386
|
+
}
|
|
3387
|
+
// #endregion Exported Functions
|
|
3494
3388
|
|
|
3495
3389
|
function minTimeValidator(minTime, validationMessage, validationMessageSummary) {
|
|
3496
3390
|
return function (control) {
|
|
@@ -3604,12 +3498,20 @@
|
|
|
3604
3498
|
};
|
|
3605
3499
|
}
|
|
3606
3500
|
|
|
3501
|
+
// #region Variables
|
|
3502
|
+
/**
|
|
3503
|
+
* Moment
|
|
3504
|
+
*/
|
|
3505
|
+
var moment$1 = moment___default['default'];
|
|
3506
|
+
// #endregion Variables
|
|
3507
|
+
// #region Exported Classes
|
|
3607
3508
|
/**
|
|
3608
3509
|
* Klasse mit Standard Validatoren
|
|
3609
3510
|
*/
|
|
3610
3511
|
var Validation = /** @class */ (function () {
|
|
3611
3512
|
function Validation() {
|
|
3612
3513
|
}
|
|
3514
|
+
// #region Public Static Methods
|
|
3613
3515
|
/**
|
|
3614
3516
|
* Die Methode ist von jedem Validator aufgerufen. Die setzt sowohl den errorType des gerpüfte Item, als auch die ErrorMessage (gemäss von errorType, FieldName und Parameters).
|
|
3615
3517
|
* @param errorType Typ den Fehler
|
|
@@ -3634,14 +3536,14 @@
|
|
|
3634
3536
|
return emailValidator(validationMessage, validationMessageSummary);
|
|
3635
3537
|
};
|
|
3636
3538
|
/**
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3539
|
+
* Validator validate if value is the requiredValue
|
|
3540
|
+
* @param requiredValue Value that control should have
|
|
3541
|
+
* @param control Control to be validate
|
|
3542
|
+
* @param fieldName Label of control
|
|
3543
|
+
* @param validationMessage validation message near the control
|
|
3544
|
+
* @param validationMessageSummary validation inside the validation summary
|
|
3545
|
+
|
|
3546
|
+
*/
|
|
3645
3547
|
Validation.equals = function (requiredValue, validationMessage, validationMessageSummary) {
|
|
3646
3548
|
return equalsValueValidator(requiredValue, validationMessage, validationMessageSummary);
|
|
3647
3549
|
};
|
|
@@ -3713,13 +3615,13 @@
|
|
|
3713
3615
|
/**
|
|
3714
3616
|
* Validiert auf die Länge des Wertes im Control
|
|
3715
3617
|
* @param control Control das Validiert werden soll
|
|
3716
|
-
* @param
|
|
3618
|
+
* @param mintextlength Min. Länge des Wertes
|
|
3717
3619
|
* @param fieldName Label des Controls
|
|
3718
3620
|
* @param validationMessage Validierungsmeldung die
|
|
3719
3621
|
* @param validationMessageSummary Validierungsmeldung die im Validation Summary angezeigt wird
|
|
3720
3622
|
*/
|
|
3721
|
-
Validation.
|
|
3722
|
-
return
|
|
3623
|
+
Validation.minTextLength = function (minlength, validationMessage, validationMessageSummary) {
|
|
3624
|
+
return minTextLengthValidator(minlength, validationMessage, validationMessageSummary);
|
|
3723
3625
|
};
|
|
3724
3626
|
/**
|
|
3725
3627
|
* Validiert ob die Zeit später als minTime ist.
|
|
@@ -3799,10 +3701,7 @@
|
|
|
3799
3701
|
};
|
|
3800
3702
|
return Validation;
|
|
3801
3703
|
}());
|
|
3802
|
-
|
|
3803
|
-
* Moment
|
|
3804
|
-
*/
|
|
3805
|
-
var moment$1 = moment___default['default'];
|
|
3704
|
+
// #endregion Exported Classes
|
|
3806
3705
|
|
|
3807
3706
|
/**
|
|
3808
3707
|
* Basis Komponente für SacRadiobuttonsCommon. Extends SacBaseModelControl
|
|
@@ -5309,9 +5208,9 @@
|
|
|
5309
5208
|
*/
|
|
5310
5209
|
_this.controlwidth = null;
|
|
5311
5210
|
/**
|
|
5312
|
-
* Max
|
|
5211
|
+
* Max length of characters for input field
|
|
5313
5212
|
*/
|
|
5314
|
-
_this.
|
|
5213
|
+
_this.maxtextlength = null;
|
|
5315
5214
|
/**
|
|
5316
5215
|
* Resource Key für Validation Message Pattern bei Control
|
|
5317
5216
|
*/
|
|
@@ -5341,9 +5240,7 @@
|
|
|
5341
5240
|
if (this.isrequired) {
|
|
5342
5241
|
error = Validation.required(this.validationmessagerequired, this.validationmessagesummaryrequired)(c);
|
|
5343
5242
|
}
|
|
5344
|
-
if (error === null &&
|
|
5345
|
-
this.regexvalidation !== undefined &&
|
|
5346
|
-
this.regexvalidation !== null) {
|
|
5243
|
+
if (error === null && this.regexvalidation !== undefined && this.regexvalidation !== null) {
|
|
5347
5244
|
error = Validation.pattern(this.regexvalidation, this.validationmessagepattern, this.validationmessagesummarypattern)(c);
|
|
5348
5245
|
}
|
|
5349
5246
|
return error;
|
|
@@ -5355,7 +5252,7 @@
|
|
|
5355
5252
|
];
|
|
5356
5253
|
SacInputCommon.propDecorators = {
|
|
5357
5254
|
controlwidth: [{ type: i0.Input }],
|
|
5358
|
-
|
|
5255
|
+
maxtextlength: [{ type: i0.Input }],
|
|
5359
5256
|
validationmessagepattern: [{ type: i0.Input }],
|
|
5360
5257
|
validationmessagerequired: [{ type: i0.Input }],
|
|
5361
5258
|
validationmessagesummarypattern: [{ type: i0.Input }],
|
|
@@ -5370,20 +5267,23 @@
|
|
|
5370
5267
|
function SacInputAreaCommon() {
|
|
5371
5268
|
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
5372
5269
|
/**
|
|
5373
|
-
*
|
|
5270
|
+
* Property mit dem Custom CSS Klassen auf dem Form-Control definiert werden können.
|
|
5374
5271
|
*/
|
|
5375
|
-
_this.
|
|
5272
|
+
_this.customcssclass = '';
|
|
5376
5273
|
/**
|
|
5377
5274
|
* Definiert die Höhe der TextArea Box. Ist normalfall leer, da Höhe auch über Rows gesetzt werden kann.
|
|
5378
5275
|
*/
|
|
5379
5276
|
_this.height = null;
|
|
5380
5277
|
/**
|
|
5381
|
-
*
|
|
5278
|
+
* Definiert die Höhe der TextArea Box.
|
|
5382
5279
|
*/
|
|
5383
|
-
_this.
|
|
5280
|
+
_this.rows = 5;
|
|
5384
5281
|
return _this;
|
|
5282
|
+
// #endregion Public Methods
|
|
5385
5283
|
}
|
|
5386
5284
|
Object.defineProperty(SacInputAreaCommon.prototype, "_currentLength", {
|
|
5285
|
+
// #endregion Properties
|
|
5286
|
+
// #region Public Getters And Setters
|
|
5387
5287
|
/**
|
|
5388
5288
|
* Getter für die Länge des Inputs
|
|
5389
5289
|
*/
|
|
@@ -5398,15 +5298,18 @@
|
|
|
5398
5298
|
enumerable: false,
|
|
5399
5299
|
configurable: true
|
|
5400
5300
|
});
|
|
5301
|
+
// #endregion Public Getters And Setters
|
|
5302
|
+
// #region Public Methods
|
|
5401
5303
|
/**
|
|
5402
|
-
* Methode wird 'true' ergeben wenn ein Key gedrückt wird und
|
|
5304
|
+
* Methode wird 'true' ergeben wenn ein Key gedrückt wird und maxtextlength ist nicht definiert
|
|
5403
5305
|
*/
|
|
5404
5306
|
SacInputAreaCommon.prototype.onKeyPress = function (event) {
|
|
5405
|
-
// Exist if
|
|
5406
|
-
if (this.
|
|
5307
|
+
// Exist if MaxTextLength not defined
|
|
5308
|
+
if (this.maxtextlength === undefined || this.maxtextlength === null) {
|
|
5407
5309
|
return true;
|
|
5408
5310
|
}
|
|
5409
|
-
if (this._currentLength >= this.
|
|
5311
|
+
if (this._currentLength >= this.maxtextlength ||
|
|
5312
|
+
((event.key === 'Enter' || event.key === ' ') && this._currentLength + 1 >= this.maxtextlength)) {
|
|
5410
5313
|
event.preventDefault();
|
|
5411
5314
|
}
|
|
5412
5315
|
};
|
|
@@ -5416,9 +5319,9 @@
|
|
|
5416
5319
|
{ type: i0.Directive }
|
|
5417
5320
|
];
|
|
5418
5321
|
SacInputAreaCommon.propDecorators = {
|
|
5419
|
-
|
|
5322
|
+
customcssclass: [{ type: i0.Input }],
|
|
5420
5323
|
height: [{ type: i0.Input }],
|
|
5421
|
-
|
|
5324
|
+
rows: [{ type: i0.Input }]
|
|
5422
5325
|
};
|
|
5423
5326
|
|
|
5424
5327
|
/**
|
|
@@ -5774,17 +5677,17 @@
|
|
|
5774
5677
|
function SacInputPasswordCommon() {
|
|
5775
5678
|
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
5776
5679
|
/**
|
|
5777
|
-
*
|
|
5680
|
+
* Checks the minimum length of the password
|
|
5778
5681
|
*/
|
|
5779
|
-
_this.
|
|
5682
|
+
_this.mintextlength = 5;
|
|
5780
5683
|
/**
|
|
5781
|
-
* Resource
|
|
5684
|
+
* Resource key for validation message MinTextLength for control
|
|
5782
5685
|
*/
|
|
5783
|
-
_this.
|
|
5686
|
+
_this.validationmessagemintextlength = _this.validationKeyService.ValidationErrorMinTextLength;
|
|
5784
5687
|
/**
|
|
5785
|
-
* Resource
|
|
5688
|
+
* Resource key for validation message MinTextLength in validation summary
|
|
5786
5689
|
*/
|
|
5787
|
-
_this.
|
|
5690
|
+
_this.validationmessagesummarymintextlength = _this.validationKeyService.ValidationErrorSummaryMinTextLength;
|
|
5788
5691
|
return _this;
|
|
5789
5692
|
// #endregion Public Methods
|
|
5790
5693
|
}
|
|
@@ -5796,7 +5699,7 @@
|
|
|
5796
5699
|
SacInputPasswordCommon.prototype.validateData = function (c) {
|
|
5797
5700
|
var error = _super.prototype.validateData.call(this, c);
|
|
5798
5701
|
if (error === null) {
|
|
5799
|
-
error = Validation.
|
|
5702
|
+
error = Validation.minTextLength(this.mintextlength, this.validationmessagemintextlength, this.validationmessagesummarymintextlength)(c);
|
|
5800
5703
|
}
|
|
5801
5704
|
return error;
|
|
5802
5705
|
};
|
|
@@ -5806,9 +5709,9 @@
|
|
|
5806
5709
|
{ type: i0.Directive }
|
|
5807
5710
|
];
|
|
5808
5711
|
SacInputPasswordCommon.propDecorators = {
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
|
|
5712
|
+
mintextlength: [{ type: i0.Input }],
|
|
5713
|
+
validationmessagemintextlength: [{ type: i0.Input }],
|
|
5714
|
+
validationmessagesummarymintextlength: [{ type: i0.Input }]
|
|
5812
5715
|
};
|
|
5813
5716
|
|
|
5814
5717
|
/**
|
|
@@ -10704,9 +10607,9 @@
|
|
|
10704
10607
|
*/
|
|
10705
10608
|
_this.controlwidth = null;
|
|
10706
10609
|
/**
|
|
10707
|
-
* Max
|
|
10610
|
+
* Max length of characters for input field
|
|
10708
10611
|
*/
|
|
10709
|
-
_this.
|
|
10612
|
+
_this.maxtextlength = null;
|
|
10710
10613
|
/**
|
|
10711
10614
|
* Aktiviert den Validator, das min. eine Sprache erfasst sein muss
|
|
10712
10615
|
*/
|
|
@@ -10728,9 +10631,7 @@
|
|
|
10728
10631
|
*/
|
|
10729
10632
|
_this.validationmessagesummaryrequiredany = _this.validationKeyService.ValidationErrorSummaryMultilanguageRequiredAny;
|
|
10730
10633
|
_this.lngLanguageService = injector.get(SACLANGUAGE_SERVICE, new SacDefaultLanguageService());
|
|
10731
|
-
_this.lngLanguageService
|
|
10732
|
-
.GetLanguages()
|
|
10733
|
-
.subscribe(function (result) {
|
|
10634
|
+
_this.lngLanguageService.GetLanguages().subscribe(function (result) {
|
|
10734
10635
|
_this.languages = result;
|
|
10735
10636
|
if (_this.languages.length > 0) {
|
|
10736
10637
|
_this.selectedLanguage = _this.languages[0];
|
|
@@ -10748,9 +10649,7 @@
|
|
|
10748
10649
|
*/
|
|
10749
10650
|
get: function () {
|
|
10750
10651
|
if (this.value) {
|
|
10751
|
-
var currentIsoCode = this.selectedLanguage
|
|
10752
|
-
? this.selectedLanguage.IsoCode
|
|
10753
|
-
: null;
|
|
10652
|
+
var currentIsoCode = this.selectedLanguage ? this.selectedLanguage.IsoCode : null;
|
|
10754
10653
|
// Fallback falls keine Selektierte Sprache
|
|
10755
10654
|
if (currentIsoCode === null) {
|
|
10756
10655
|
return '';
|
|
@@ -10866,9 +10765,7 @@
|
|
|
10866
10765
|
*/
|
|
10867
10766
|
SacMultilanguageInputCommon.prototype.SetLanguageValue = function (value) {
|
|
10868
10767
|
if (this.value) {
|
|
10869
|
-
var currentIsoCode = this.selectedLanguage
|
|
10870
|
-
? this.selectedLanguage.IsoCode
|
|
10871
|
-
: null;
|
|
10768
|
+
var currentIsoCode = this.selectedLanguage ? this.selectedLanguage.IsoCode : null;
|
|
10872
10769
|
// Fallback falls keine Selektierte Sprache
|
|
10873
10770
|
if (currentIsoCode === null) {
|
|
10874
10771
|
return;
|
|
@@ -10912,7 +10809,7 @@
|
|
|
10912
10809
|
]; };
|
|
10913
10810
|
SacMultilanguageInputCommon.propDecorators = {
|
|
10914
10811
|
controlwidth: [{ type: i0.Input }],
|
|
10915
|
-
|
|
10812
|
+
maxtextlength: [{ type: i0.Input }],
|
|
10916
10813
|
requiredany: [{ type: i0.Input }],
|
|
10917
10814
|
validationmessagerequired: [{ type: i0.Input }],
|
|
10918
10815
|
validationmessagerequiredany: [{ type: i0.Input }],
|
|
@@ -10948,9 +10845,9 @@
|
|
|
10948
10845
|
*/
|
|
10949
10846
|
_this.controlwidth = null;
|
|
10950
10847
|
/**
|
|
10951
|
-
* Max
|
|
10848
|
+
* Max length of characters for input field
|
|
10952
10849
|
*/
|
|
10953
|
-
_this.
|
|
10850
|
+
_this.maxtextlength = null;
|
|
10954
10851
|
/**
|
|
10955
10852
|
* Aktiviert den Validator, das min. eine Sprache erfasst sein muss
|
|
10956
10853
|
*/
|
|
@@ -10976,9 +10873,7 @@
|
|
|
10976
10873
|
*/
|
|
10977
10874
|
_this.validationmessagesummaryrequiredany = _this.validationKeyService.ValidationErrorSummaryMultilanguageRequiredAny;
|
|
10978
10875
|
_this.lngLanguageService = injector.get(SACLANGUAGE_SERVICE, new SacDefaultLanguageService());
|
|
10979
|
-
_this.lngLanguageService
|
|
10980
|
-
.GetLanguages()
|
|
10981
|
-
.subscribe(function (result) {
|
|
10876
|
+
_this.lngLanguageService.GetLanguages().subscribe(function (result) {
|
|
10982
10877
|
_this.languages = result;
|
|
10983
10878
|
if (_this.languages.length > 0) {
|
|
10984
10879
|
_this.selectedLanguage = _this.languages[0];
|
|
@@ -10997,9 +10892,7 @@
|
|
|
10997
10892
|
*/
|
|
10998
10893
|
get: function () {
|
|
10999
10894
|
if (this.value) {
|
|
11000
|
-
var currentIsoCode = this.selectedLanguage
|
|
11001
|
-
? this.selectedLanguage.IsoCode
|
|
11002
|
-
: null;
|
|
10895
|
+
var currentIsoCode = this.selectedLanguage ? this.selectedLanguage.IsoCode : null;
|
|
11003
10896
|
// Fallback falls keine Selektierte Sprache
|
|
11004
10897
|
if (currentIsoCode === null) {
|
|
11005
10898
|
return '';
|
|
@@ -11110,9 +11003,7 @@
|
|
|
11110
11003
|
*/
|
|
11111
11004
|
SacMultilanguageInputAreaCommon.prototype.SetLanguageValue = function (value) {
|
|
11112
11005
|
if (this.value) {
|
|
11113
|
-
var currentIsoCode = this.selectedLanguage
|
|
11114
|
-
? this.selectedLanguage.IsoCode
|
|
11115
|
-
: null;
|
|
11006
|
+
var currentIsoCode = this.selectedLanguage ? this.selectedLanguage.IsoCode : null;
|
|
11116
11007
|
// Fallback falls keine Selektierte Sprache
|
|
11117
11008
|
if (currentIsoCode === null) {
|
|
11118
11009
|
return;
|
|
@@ -11156,7 +11047,7 @@
|
|
|
11156
11047
|
]; };
|
|
11157
11048
|
SacMultilanguageInputAreaCommon.propDecorators = {
|
|
11158
11049
|
controlwidth: [{ type: i0.Input }],
|
|
11159
|
-
|
|
11050
|
+
maxtextlength: [{ type: i0.Input }],
|
|
11160
11051
|
requiredany: [{ type: i0.Input }],
|
|
11161
11052
|
rows: [{ type: i0.Input }],
|
|
11162
11053
|
validationmessagerequired: [{ type: i0.Input }],
|