@topconsultnpm/sdkui-react 6.19.0-dev1.17 → 6.19.0-dev1.18

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,9 @@ const TMBlogCommentForm = (props) => {
44
44
  vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.Comment, `${SDK_Localizator.RequiredField}`));
45
45
  }
46
46
  else {
47
- // Validate description length (max 500)
48
- if (comment.length > 500) {
49
- vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.Comment, `${SDKUI_Localizator.DescriptionTooLongMessage.replaceParams(500)}`));
47
+ // Validate description length (max 1000)
48
+ if (comment.length > 1000) {
49
+ vil.push(new ValidationItem(ResultTypes.ERROR, SDKUI_Localizator.Comment, `${SDKUI_Localizator.DescriptionTooLongMessage.replaceParams(1000)}`));
50
50
  }
51
51
  // Detect dangerous HTML tags
52
52
  const tagRegex = /<\/?(script|iframe|embed|object|link|style|img|video|audio|svg|form|input|button|textarea|select|pre|function)[^>]*>/gi;
@@ -307,6 +307,8 @@ export const cellRenderTID = (data, noneSelectionText) => {
307
307
  };
308
308
  export const renderDTDTooltipContent = (dtd) => {
309
309
  const mapAccessLevelToLocalizedString = (level) => {
310
+ if (level === undefined || level === null)
311
+ return SDKUI_Localizator.No;
310
312
  switch (level) {
311
313
  case AccessLevelsEx.Yes || AccessLevels.Yes:
312
314
  return SDKUI_Localizator.Yes;
@@ -319,7 +321,7 @@ export const renderDTDTooltipContent = (dtd) => {
319
321
  case AccessLevelsEx.None || AccessLevels.None:
320
322
  return SDK_Localizator.None;
321
323
  default:
322
- return SDKUI_Localizator.No;
324
+ return level.toString();
323
325
  }
324
326
  };
325
327
  return (!dtd ? null
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@topconsultnpm/sdkui-react",
3
- "version": "6.19.0-dev1.17",
3
+ "version": "6.19.0-dev1.18",
4
4
  "description": "",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",