@topconsultnpm/sdkui-react 6.19.0-dev1.18 → 6.19.0-dev1.20
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.
|
@@ -44,9 +44,15 @@ const TMBlogCommentForm = (props) => {
|
|
|
44
44
|
vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.Comment, `${SDK_Localizator.RequiredField}`));
|
|
45
45
|
}
|
|
46
46
|
else {
|
|
47
|
+
// Imposta la lunghezza massima consentita per il commento
|
|
48
|
+
const maxLength = 1000;
|
|
49
|
+
// Calcola la lunghezza effettiva del commento inserito
|
|
50
|
+
const commentLength = comment.length;
|
|
51
|
+
// Calcola di quanto la lunghezza del commento supera il limite massimo
|
|
52
|
+
const exceededLength = commentLength - maxLength;
|
|
47
53
|
// Validate description length (max 1000)
|
|
48
|
-
if (
|
|
49
|
-
vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.Comment, `${SDKUI_Localizator.
|
|
54
|
+
if (commentLength > maxLength) {
|
|
55
|
+
vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.Comment, `${SDKUI_Localizator.DescriptionLengthExceededMessage.replaceParams(commentLength, maxLength, exceededLength)}`));
|
|
50
56
|
}
|
|
51
57
|
// Detect dangerous HTML tags
|
|
52
58
|
const tagRegex = /<\/?(script|iframe|embed|object|link|style|img|video|audio|svg|form|input|button|textarea|select|pre|function)[^>]*>/gi;
|
|
@@ -132,6 +132,7 @@ export declare class SDKUI_Localizator {
|
|
|
132
132
|
static get DeletionOperationInterrupted(): "Löschvorgang abgebrochen" | "Deletion operation interrupted" | "Operación de eliminación interrumpida" | "Opération de suppression interrompue" | "Operação de exclusão interrompida" | "Operazione di eliminazione interrotta";
|
|
133
133
|
static get Deny(): "Ablehnen" | "Deny" | "Denegar" | "Refuser" | "Negar" | "Negato";
|
|
134
134
|
static get Description(): "Beschreibung" | "Description" | "Descripción" | "Descrição" | "Descrizione";
|
|
135
|
+
static get DescriptionLengthExceededMessage(): "Die Beschreibung ist zu lang: {{0}}/{{1}} Zeichen ({{2}} zu viel)" | "Description is too long: {{0}}/{{1}} characters ({{2}} too many)" | "La descripción es demasiado larga: {{0}}/{{1}} caracteres ({{2}} de más)" | "La description est trop longue : {{0}}/{{1}} caractères ({{2}} en trop)" | "A descrição é demasiado longa: {{0}}/{{1}} caracteres ({{2}} a mais)" | "La descrizione è troppo lunga: {{0}}/{{1}} caratteri ({{2}} in più)";
|
|
135
136
|
static get DescriptionTooLongMessage(): "Die Beschreibung ist zu lang: Maximal {{0}' Zeichen" | "Description is too long: Max {{0}} characters" | "La descripción es demasiado larga: Máximo {{0}} caracteres" | "La description est trop longue : Maximum {{0}} caractères" | "A descrição é demasiado longa: Máximo {{0}} caracteres" | "La descrizione è troppo lunga: Massimo {{0}} caratteri";
|
|
136
137
|
static get Design(): "Design" | "Diseño" | "Conception" | "Projeto" | "Progettazione";
|
|
137
138
|
static get Destination(): "Bestimmung" | "Destination" | "Destino" | "Destinazione";
|
|
@@ -1275,6 +1275,22 @@ export class SDKUI_Localizator {
|
|
|
1275
1275
|
default: return "Descrizione";
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
|
+
static get DescriptionLengthExceededMessage() {
|
|
1279
|
+
switch (this._cultureID) {
|
|
1280
|
+
case CultureIDs.De_DE:
|
|
1281
|
+
return "Die Beschreibung ist zu lang: {{0}}/{{1}} Zeichen ({{2}} zu viel)";
|
|
1282
|
+
case CultureIDs.En_US:
|
|
1283
|
+
return "Description is too long: {{0}}/{{1}} characters ({{2}} too many)";
|
|
1284
|
+
case CultureIDs.Es_ES:
|
|
1285
|
+
return "La descripción es demasiado larga: {{0}}/{{1}} caracteres ({{2}} de más)";
|
|
1286
|
+
case CultureIDs.Fr_FR:
|
|
1287
|
+
return "La description est trop longue : {{0}}/{{1}} caractères ({{2}} en trop)";
|
|
1288
|
+
case CultureIDs.Pt_PT:
|
|
1289
|
+
return "A descrição é demasiado longa: {{0}}/{{1}} caracteres ({{2}} a mais)";
|
|
1290
|
+
default:
|
|
1291
|
+
return "La descrizione è troppo lunga: {{0}}/{{1}} caratteri ({{2}} in più)";
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1278
1294
|
static get DescriptionTooLongMessage() {
|
|
1279
1295
|
switch (this._cultureID) {
|
|
1280
1296
|
case CultureIDs.De_DE: return "Die Beschreibung ist zu lang: Maximal {{0}' Zeichen";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@topconsultnpm/sdkui-react",
|
|
3
|
-
"version": "6.19.0-dev1.
|
|
3
|
+
"version": "6.19.0-dev1.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"lib"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@topconsultnpm/sdk-ts": "6.19.0-dev1.
|
|
42
|
+
"@topconsultnpm/sdk-ts": "6.19.0-dev1.5",
|
|
43
43
|
"buffer": "^6.0.3",
|
|
44
44
|
"devextreme": "25.1.4",
|
|
45
45
|
"devextreme-react": "25.1.4",
|