@topconsultnpm/sdkui-react 6.21.0-t2 → 6.21.0-t3

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.
Files changed (151) hide show
  1. package/lib/components/NewComponents/ContextMenu/TMContextMenu.js +22 -1
  2. package/lib/components/NewComponents/ContextMenu/styles.d.ts +4 -4
  3. package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +6 -6
  4. package/lib/components/base/Styled.d.ts +1 -1
  5. package/lib/components/base/TMAreaManager.js +11 -0
  6. package/lib/components/base/TMCounterBar.d.ts +2 -2
  7. package/lib/components/base/TMCounterContainer.d.ts +2 -1
  8. package/lib/components/base/TMCustomButton.d.ts +1 -1
  9. package/lib/components/base/TMDataGrid.js +12 -2
  10. package/lib/components/base/TMDataGridExportForm.d.ts +2 -1
  11. package/lib/components/base/TMDataGridExportForm.js +19 -8
  12. package/lib/components/base/TMFileManager.d.ts +2 -1
  13. package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -1
  14. package/lib/components/base/TMFileManagerDataGridView.js +4 -4
  15. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
  16. package/lib/components/base/TMFileManagerThumbnailItems.js +3 -3
  17. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
  18. package/lib/components/base/TMFileManagerUtils.d.ts +7 -0
  19. package/lib/components/base/TMFileManagerUtils.js +14 -1
  20. package/lib/components/base/TMLayout.d.ts +4 -4
  21. package/lib/components/base/TMList.d.ts +2 -1
  22. package/lib/components/base/TMListView.d.ts +1 -1
  23. package/lib/components/base/TMModal.js +2 -2
  24. package/lib/components/base/TMPopUp.d.ts +1 -0
  25. package/lib/components/base/TMPopUp.js +59 -2
  26. package/lib/components/base/TMSpinner.d.ts +5 -2
  27. package/lib/components/base/TMSpinner.js +33 -6
  28. package/lib/components/base/TMTab.d.ts +4 -3
  29. package/lib/components/base/TMTooltip.d.ts +1 -1
  30. package/lib/components/base/TMTreeView.d.ts +1 -1
  31. package/lib/components/base/TMTreeView.js +12 -15
  32. package/lib/components/base/TMUserAvatar.d.ts +2 -1
  33. package/lib/components/base/TMVilViewer.d.ts +2 -1
  34. package/lib/components/base/TMWaitPanel.d.ts +5 -2
  35. package/lib/components/base/TMWaitPanel.js +8 -6
  36. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
  37. package/lib/components/choosers/TMDynDataListItemChooser.js +6 -1
  38. package/lib/components/choosers/TMGroupChooser.js +1 -1
  39. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +2 -1
  40. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +2 -1
  41. package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
  42. package/lib/components/choosers/TMUserChooser.d.ts +2 -2
  43. package/lib/components/editors/TMEditorStyled.d.ts +6 -6
  44. package/lib/components/editors/TMFormulaEditor.d.ts +2 -1
  45. package/lib/components/editors/TMFormulaEditor.js +98 -49
  46. package/lib/components/editors/TMHtmlContentDisplay.d.ts +2 -1
  47. package/lib/components/editors/TMHtmlEditor.d.ts +2 -1
  48. package/lib/components/editors/TMMetadataEditor.js +6 -2
  49. package/lib/components/editors/TMMetadataValues.js +23 -6
  50. package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
  51. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
  52. package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -1
  53. package/lib/components/features/blog/TMBlogCommentForm.js +5 -2
  54. package/lib/components/features/documents/TMCopyToFolderForm.js +46 -24
  55. package/lib/components/features/documents/TMDcmtForm.js +19 -9
  56. package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
  57. package/lib/components/features/documents/TMDcmtIcon.d.ts +2 -1
  58. package/lib/components/features/documents/TMDcmtIcon.js +1 -1
  59. package/lib/components/features/documents/TMDcmtPreview.d.ts +1 -1
  60. package/lib/components/features/documents/TMDcmtTasks.d.ts +2 -1
  61. package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
  62. package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +0 -2
  63. package/lib/components/features/documents/TMMasterDetailDcmts.js +4 -5
  64. package/lib/components/features/documents/TMMergeToPdfForm.d.ts +0 -2
  65. package/lib/components/features/documents/TMMergeToPdfForm.js +26 -10
  66. package/lib/components/features/documents/TMRelationViewer.js +8 -3
  67. package/lib/components/features/documents/copyAndMergeDcmtsShared.d.ts +0 -13
  68. package/lib/components/features/documents/copyAndMergeDcmtsShared.js +1 -39
  69. package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +2 -1
  70. package/lib/components/features/search/TMMetadataOutputForm.d.ts +18 -0
  71. package/lib/components/features/search/TMMetadataOutputForm.js +225 -0
  72. package/lib/components/features/search/TMMetadataSorterForm.d.ts +18 -0
  73. package/lib/components/features/search/TMMetadataSorterForm.js +243 -0
  74. package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
  75. package/lib/components/features/search/TMSearch.d.ts +0 -2
  76. package/lib/components/features/search/TMSearch.js +2 -2
  77. package/lib/components/features/search/TMSearchQueryEditor.js +14 -8
  78. package/lib/components/features/search/TMSearchQueryPanel.js +249 -58
  79. package/lib/components/features/search/TMSearchResult.d.ts +1 -2
  80. package/lib/components/features/search/TMSearchResult.js +40 -20
  81. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
  82. package/lib/components/features/search/TMSignatureInfoContent.d.ts +2 -1
  83. package/lib/components/features/search/TMViewHistoryDcmt.d.ts +2 -1
  84. package/lib/components/features/search/TMViewHistoryDcmt.js +1 -1
  85. package/lib/components/features/search/metadataFormHelper.d.ts +16 -0
  86. package/lib/components/features/search/metadataFormHelper.js +77 -0
  87. package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
  88. package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
  89. package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
  90. package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
  91. package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
  92. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
  93. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
  94. package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
  95. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +3 -2
  96. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +8 -7
  97. package/lib/components/forms/Login/Chooser.d.ts +2 -2
  98. package/lib/components/forms/Login/TMLoginForm.js +15 -3
  99. package/lib/components/forms/TMChooserForm.d.ts +2 -1
  100. package/lib/components/forms/TMSaveForm.d.ts +4 -4
  101. package/lib/components/grids/TMBlogAttachments.d.ts +2 -1
  102. package/lib/components/grids/TMBlogAttachments.js +2 -2
  103. package/lib/components/grids/TMBlogHeader.d.ts +1 -1
  104. package/lib/components/grids/TMBlogsPost.d.ts +1 -1
  105. package/lib/components/grids/TMBlogsPost.js +5 -3
  106. package/lib/components/grids/TMBlogsPostUtils.d.ts +10 -9
  107. package/lib/components/grids/TMBlogsPostUtils.js +3 -1
  108. package/lib/components/grids/TMValidationItemsList.d.ts +2 -1
  109. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +2 -1
  110. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
  111. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +1 -1
  112. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
  113. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
  114. package/lib/components/pages/TMPage.d.ts +1 -1
  115. package/lib/components/settings/SettingsAppearance.d.ts +2 -1
  116. package/lib/components/sidebar/TMAboutApp.d.ts +2 -1
  117. package/lib/components/sidebar/TMHeader.d.ts +3 -3
  118. package/lib/components/viewers/TMDataListItemViewer.d.ts +3 -2
  119. package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +3 -2
  120. package/lib/components/viewers/TMMidViewer.d.ts +2 -2
  121. package/lib/components/viewers/TMTidViewer.d.ts +2 -2
  122. package/lib/components/wizard/TMWizard.d.ts +1 -0
  123. package/lib/components/wizard/TMWizard.js +5 -3
  124. package/lib/helper/Enum_Localizator.js +1 -0
  125. package/lib/helper/MergePdfManager.d.ts +45 -0
  126. package/lib/helper/MergePdfManager.js +148 -0
  127. package/lib/helper/SDKUI_Globals.js +2 -1
  128. package/lib/helper/SDKUI_Localizator.d.ts +6 -0
  129. package/lib/helper/SDKUI_Localizator.js +60 -0
  130. package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
  131. package/lib/helper/TMIcons.d.ts +278 -278
  132. package/lib/helper/TMPdfViewer.d.ts +2 -1
  133. package/lib/helper/TMToppyMessage.d.ts +2 -2
  134. package/lib/helper/TMUtils.d.ts +24 -20
  135. package/lib/helper/TMUtils.js +55 -0
  136. package/lib/helper/checkinCheckoutManager.d.ts +4 -3
  137. package/lib/helper/checkinCheckoutManager.js +29 -11
  138. package/lib/helper/helpers.d.ts +3 -2
  139. package/lib/helper/helpers.js +1 -0
  140. package/lib/hooks/useCheckInOutOperations.d.ts +4 -3
  141. package/lib/hooks/useDataUserIdItem.js +1 -1
  142. package/lib/hooks/useDcmtOperations.d.ts +18 -1
  143. package/lib/hooks/useDcmtOperations.js +235 -24
  144. package/lib/hooks/useDocumentOperations.d.ts +0 -2
  145. package/lib/hooks/useDocumentOperations.js +27 -10
  146. package/lib/hooks/useInputDialog.d.ts +2 -1
  147. package/lib/hooks/useRelatedDocuments.js +4 -4
  148. package/lib/services/platform_services.d.ts +7 -6
  149. package/lib/ts/types.d.ts +2 -1
  150. package/lib/ts/types.js +1 -0
  151. package/package.json +14 -7
@@ -144,16 +144,16 @@ const TMFormulaEditor = (props) => {
144
144
  setSelectedItem(e.itemData);
145
145
  insertText(FormulaHelper.translateDescInFormula(e.itemData?.text));
146
146
  };
147
- return (_jsx(TMApplyForm, { isModal: props.isModal, formMode: props.formMode, isModified: formData.expression !== formDataOrig.expression, exception: exception, validationItems: validationItems, title: SDKUI_Localizator.Formula, hasNavigation: false, showBack: props.showBack, height: '600px', width: '800px', onApply: () => applyData(), onClose: props.onClose, onUndo: () => {
147
+ return (_jsxs(TMApplyForm, { isModal: props.isModal, formMode: props.formMode, isModified: formData.expression !== formDataOrig.expression, exception: exception, validationItems: validationItems, title: SDKUI_Localizator.Formula, hasNavigation: false, showBack: props.showBack, height: '600px', width: '800px', onApply: () => applyData(), onClose: props.onClose, onUndo: () => {
148
148
  setFormData(formDataOrig);
149
149
  setValidationItems([]);
150
- }, customToolbarElements: _jsx(TMButton, { caption: SDKUI_Localizator.EvaluateResult, onClick: () => { formulaValidator_BackEnd(); }, btnStyle: 'toolbar', icon: _jsx(IconNotification, {}) }), children: _jsxs("div", { ref: ref, style: { width: '100%', height: '100%' }, children: [selectedItem?.description && (_jsx(TMLayoutItem, { height: "max-content", children: _jsxs("div", { style: { padding: '6px 10px', background: TMColors.default_background, borderTop: `1px solid ${TMColors.border_normal}`, fontSize: FontSize.defaultFontSize }, children: [_jsx("span", { style: { fontWeight: 'bold', color: TMColors.info, marginRight: '8px' }, children: FormulaHelper.translateDescInFormula(selectedItem.text) }), _jsx("span", { style: { color: TMColors.info }, children: selectedItem.description })] }) })), _jsxs(TMSplitterLayout, { direction: isVertical ? 'vertical' : 'horizontal', showSeparator: true, separatorSize: 5, start: isVertical ? ['50%', '50%'] : ['35%', '65%'], min: ['0px', '0px'], children: [_jsx(TMCard, { scrollX: true, children: _jsx(TreeView, { id: "treeview", items: props.inputData?.items, width: '100%', height: '100%', scrollDirection: 'vertical', itemRender: renderTreeViewItem, onItemClick: handleTreeViewItemClick }) }), _jsxs(TMLayoutContainer, { direction: 'vertical', children: [_jsx(TMLayoutItem, { children: _jsx(TMCard, { scrollX: true, children: _jsx("textarea", { ref: textAreaRef, spellCheck: false, value: formData?.expression ?? '', onChange: (e) => {
150
+ }, customToolbarElements: _jsx(TMButton, { caption: SDKUI_Localizator.EvaluateResult, onClick: () => { formulaValidator_BackEnd(); }, btnStyle: 'toolbar', icon: _jsx(IconNotification, {}) }), children: [selectedItem?.description && (_jsx(TMLayoutItem, { height: "max-content", children: _jsxs("div", { style: { padding: '6px 10px', background: TMColors.default_background, borderTop: `1px solid ${TMColors.border_normal}`, fontSize: FontSize.defaultFontSize }, children: [_jsx("span", { style: { fontWeight: 'bold', color: TMColors.info, marginRight: '8px' }, children: selectedItem.syntax }), _jsx("span", { style: { color: TMColors.info }, children: selectedItem.description })] }) })), _jsx("div", { ref: ref, style: { width: '100%', height: '100%' }, children: _jsxs(TMSplitterLayout, { direction: isVertical ? 'vertical' : 'horizontal', showSeparator: true, separatorSize: 5, start: isVertical ? ['50%', '50%'] : ['35%', '65%'], min: ['0px', '0px'], children: [_jsx(TMCard, { scrollX: true, children: _jsx(TreeView, { id: "treeview", items: props.inputData?.items, width: '100%', height: '100%', scrollDirection: 'vertical', itemRender: renderTreeViewItem, onItemClick: handleTreeViewItemClick }) }), _jsxs(TMLayoutContainer, { direction: 'vertical', children: [_jsx(TMLayoutItem, { children: _jsx(TMCard, { scrollX: true, children: _jsx("textarea", { ref: textAreaRef, spellCheck: false, value: formData?.expression ?? '', onChange: (e) => {
151
151
  setFormData({ ...formData, expression: e.target.value });
152
152
  if (e.target.value != formDataOrig?.expression)
153
153
  insertValidationItem();
154
154
  else
155
155
  setValidationItems([]);
156
- }, style: { border: 'none', resize: 'none', color: TMColors.text_normal, fontSize: FontSize.defaultFontSize, padding: '5px', width: '100%', height: 'calc(100% - 4px)' } }) }) }), _jsx(TMLayoutItem, { height: "max-content", children: _jsx(TMVilViewer, { vil: validationItems }) })] })] })] }) }));
156
+ }, style: { border: 'none', resize: 'none', color: TMColors.text_normal, fontSize: FontSize.defaultFontSize, padding: '5px', width: '100%', height: 'calc(100% - 4px)' } }) }) }), _jsx(TMLayoutItem, { height: "max-content", children: _jsx(TMVilViewer, { vil: validationItems }) })] })] }) })] }));
157
157
  };
158
158
  export default TMFormulaEditor;
159
159
  export class FormulaHelper {
@@ -344,7 +344,8 @@ export class FormulaHelper {
344
344
  tid: -1,
345
345
  expanded: false,
346
346
  hasItems: false,
347
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_CASE
347
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_CASE,
348
+ syntax: "CASE...WHEN boolean_expression THEN result_expression ...ELSE else_result_expression...END"
348
349
  }, {
349
350
  id: '1_4_2',
350
351
  text: 'IS NULL',
@@ -352,7 +353,8 @@ export class FormulaHelper {
352
353
  tid: -1,
353
354
  expanded: false,
354
355
  hasItems: false,
355
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_ISNULL
356
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_ISNULL,
357
+ syntax: "expression IS [ NOT ] NULL"
356
358
  }];
357
359
  break;
358
360
  case DBBrands.Oracle:
@@ -364,7 +366,8 @@ export class FormulaHelper {
364
366
  tid: -1,
365
367
  expanded: false,
366
368
  hasItems: false,
367
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CASE
369
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CASE,
370
+ syntax: "CASE case_operand ...WHEN when_operand THEN statement...ELSE statement...END"
368
371
  }, {
369
372
  id: '1_4_2',
370
373
  text: 'IS NULL',
@@ -372,7 +375,8 @@ export class FormulaHelper {
372
375
  tid: -1,
373
376
  expanded: false,
374
377
  hasItems: false,
375
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_IS_NULL
378
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_IS_NULL,
379
+ syntax: "expression IS [ NOT ] NULL"
376
380
  }, {
377
381
  id: '1_4_3',
378
382
  text: 'GREATEST',
@@ -380,7 +384,8 @@ export class FormulaHelper {
380
384
  tid: -1,
381
385
  expanded: false,
382
386
  hasItems: false,
383
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_GREATEST
387
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_GREATEST,
388
+ syntax: "GREATEST(expr [, expr ])"
384
389
  }, {
385
390
  id: '1_4_4',
386
391
  text: 'LEAST',
@@ -388,7 +393,8 @@ export class FormulaHelper {
388
393
  tid: -1,
389
394
  expanded: false,
390
395
  hasItems: false,
391
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_LEAST
396
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_LEAST,
397
+ syntax: "LEAST(expr [, expr ])"
392
398
  }];
393
399
  break;
394
400
  }
@@ -437,6 +443,7 @@ export class FormulaHelper {
437
443
  expanded: false,
438
444
  hasItems: false,
439
445
  description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_CONVERT,
446
+ syntax: "CONVERT ( data_type [ ( length ) ] , expression [ , style ] )"
440
447
  }, {
441
448
  id: '3_1_2',
442
449
  text: 'CONVERT(nvarchar)',
@@ -444,6 +451,7 @@ export class FormulaHelper {
444
451
  expanded: false,
445
452
  hasItems: false,
446
453
  description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_CONVERTnvarchar,
454
+ syntax: "CONVERT ( NVARCHAR [ ( length ) ] , expression [ , style ] )"
447
455
  }, {
448
456
  id: '3_1_3',
449
457
  text: 'CONVERT(int)',
@@ -451,13 +459,15 @@ export class FormulaHelper {
451
459
  expanded: false,
452
460
  hasItems: false,
453
461
  description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_CONVERTint,
462
+ syntax: "CONVERT ( INT [ ( length ) ] , expression [ , style ] )"
454
463
  }, {
455
464
  id: '3_1_4',
456
465
  text: 'ISNULL',
457
466
  icon: FormulaIconTypes.Function,
458
467
  expanded: false,
459
468
  hasItems: false,
460
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_ISNULL
469
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_SS_ISNULL,
470
+ syntax: "ISNULL ( expression , replacement_value )"
461
471
  }];
462
472
  break;
463
473
  case DBBrands.Oracle:
@@ -468,28 +478,32 @@ export class FormulaHelper {
468
478
  icon: FormulaIconTypes.Function,
469
479
  expanded: false,
470
480
  hasItems: false,
471
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CAST
481
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CAST,
482
+ syntax: "CAST( { expr | MULTISET ( subquery ) } AS type_name )"
472
483
  }, {
473
484
  id: '3_1_2',
474
485
  text: 'CAST(NVARCHAR2)',
475
486
  icon: FormulaIconTypes.Function,
476
487
  expanded: false,
477
488
  hasItems: false,
478
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CASTnvarchar2
489
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CASTnvarchar2,
490
+ syntax: "CAST ( expression | MULTISET ( subquery ) AS NVARCHAR2( length ) )"
479
491
  }, {
480
492
  id: '3_1_3',
481
493
  text: 'CAST(NUMERIC)',
482
494
  icon: FormulaIconTypes.Function,
483
495
  expanded: false,
484
496
  hasItems: false,
485
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CASTnumeric
497
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_CASTnumeric,
498
+ syntax: "CAST ( expression | MULTISET ( subquery ) AS NUMERIC( precision, scale ) )"
486
499
  }, {
487
500
  id: '3_1_4',
488
501
  text: 'NVL',
489
502
  icon: FormulaIconTypes.Function,
490
503
  expanded: false,
491
504
  hasItems: false,
492
- description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_NVL
505
+ description: SDKUI_Localizator.FormulaEditor_DescInstruction_ORA_NVL,
506
+ syntax: "NVL ( expression , replacement_value )"
493
507
  }];
494
508
  break;
495
509
  }
@@ -506,84 +520,96 @@ export class FormulaHelper {
506
520
  icon: FormulaIconTypes.Function,
507
521
  expanded: false,
508
522
  hasItems: false,
509
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LEN
523
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LEN,
524
+ syntax: "LEN ( string_expression )"
510
525
  }, {
511
526
  id: '3_2_2',
512
527
  text: 'LEFT',
513
528
  icon: FormulaIconTypes.Function,
514
529
  expanded: false,
515
530
  hasItems: false,
516
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LEFT
531
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LEFT,
532
+ syntax: "LEFT ( character_expression , integer_expression )"
517
533
  }, {
518
534
  id: '3_2_3',
519
535
  text: 'LOWER',
520
536
  icon: FormulaIconTypes.Function,
521
537
  expanded: false,
522
538
  hasItems: false,
523
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LOWER
539
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LOWER,
540
+ syntax: "LOWER ( string_expression )"
524
541
  }, {
525
542
  id: '3_2_4',
526
543
  text: 'LTRIM',
527
544
  icon: FormulaIconTypes.Function,
528
545
  expanded: false,
529
546
  hasItems: false,
530
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LTRIM
547
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_LTRIM,
548
+ syntax: "LTRIM ( string_expression )"
531
549
  }, {
532
550
  id: '3_2_5',
533
551
  text: 'REPLACE',
534
552
  icon: FormulaIconTypes.Function,
535
553
  expanded: false,
536
554
  hasItems: false,
537
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_REPLACE
555
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_REPLACE,
556
+ syntax: "REPLACE ( string_expression , string_pattern , string_replacement )"
538
557
  }, {
539
558
  id: '3_2_6',
540
559
  text: 'REPLICATE',
541
560
  icon: FormulaIconTypes.Function,
542
561
  expanded: false,
543
562
  hasItems: false,
544
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_REPLICATE
563
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_REPLICATE,
564
+ syntax: "REPLICATE ( string_expression , integer_expression )"
545
565
  }, {
546
566
  id: '3_2_7',
547
567
  text: 'RIGHT',
548
568
  icon: FormulaIconTypes.Function,
549
569
  expanded: false,
550
570
  hasItems: false,
551
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_RIGHT
571
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_RIGHT,
572
+ syntax: "RIGHT ( string_expression , integer_expression )"
552
573
  }, {
553
574
  id: '3_2_8',
554
575
  text: 'RTRIM',
555
576
  icon: FormulaIconTypes.Function,
556
577
  expanded: false,
557
578
  hasItems: false,
558
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_RTRIM
579
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_RTRIM,
580
+ syntax: "RTRIM ( string_expression )"
559
581
  }, {
560
582
  id: '3_2_9',
561
583
  text: 'SPACE',
562
584
  icon: FormulaIconTypes.Function,
563
585
  expanded: false,
564
586
  hasItems: false,
565
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_SPACE
587
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_SPACE,
588
+ syntax: "SPACE ( integer_expression )"
566
589
  }, {
567
590
  id: '3_2_10',
568
591
  text: 'STUFF',
569
592
  icon: FormulaIconTypes.Function,
570
593
  expanded: false,
571
594
  hasItems: false,
572
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_STUFF
595
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_STUFF,
596
+ syntax: "STUFF ( character_expression , start , length , replaceWith_character_expression )"
573
597
  }, {
574
598
  id: '3_2_11',
575
599
  text: 'SUBSTRING',
576
600
  icon: FormulaIconTypes.Function,
577
601
  expanded: false,
578
602
  hasItems: false,
579
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_SUBSTRING
603
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_SUBSTRING,
604
+ syntax: "SUBSTRING ( expression , start , length )"
580
605
  }, {
581
606
  id: '3_2_12',
582
607
  text: 'UPPER',
583
608
  icon: FormulaIconTypes.Function,
584
609
  expanded: false,
585
610
  hasItems: false,
586
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_UPPER
611
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_UPPER,
612
+ syntax: "UPPER ( string_expression )"
587
613
  }];
588
614
  break;
589
615
  case DBBrands.Oracle:
@@ -594,42 +620,48 @@ export class FormulaHelper {
594
620
  icon: FormulaIconTypes.Function,
595
621
  expanded: false,
596
622
  hasItems: false,
597
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_LENGTH
623
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_LENGTH,
624
+ syntax: "LENGTH ( string )"
598
625
  }, {
599
626
  id: '3_2_2',
600
627
  text: 'LOWER',
601
628
  icon: FormulaIconTypes.Function,
602
629
  expanded: false,
603
630
  hasItems: false,
604
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_LOWER
631
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_LOWER,
632
+ syntax: "LOWER ( string )"
605
633
  }, {
606
634
  id: '3_2_3',
607
635
  text: 'TRIM',
608
636
  icon: FormulaIconTypes.Function,
609
637
  expanded: false,
610
638
  hasItems: false,
611
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TRIM
639
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TRIM,
640
+ syntax: "TRIM ( [ trim_character FROM ] string )"
612
641
  }, {
613
642
  id: '3_2_4',
614
643
  text: 'REPLACE',
615
644
  icon: FormulaIconTypes.Function,
616
645
  expanded: false,
617
646
  hasItems: false,
618
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_REPLACE
647
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_REPLACE,
648
+ syntax: "REPLACE ( string, search_string, replacement_string )"
619
649
  }, {
620
650
  id: '3_2_5',
621
651
  text: 'SUBSTR',
622
652
  icon: FormulaIconTypes.Function,
623
653
  expanded: false,
624
654
  hasItems: false,
625
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_SUBSTR
655
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_SUBSTR,
656
+ syntax: "SUBSTR ( string, start_position [, length ] )"
626
657
  }, {
627
658
  id: '3_2_6',
628
659
  text: 'UPPER',
629
660
  icon: FormulaIconTypes.Function,
630
661
  expanded: false,
631
662
  hasItems: false,
632
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_UPPER
663
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_UPPER,
664
+ syntax: "UPPER ( string )"
633
665
  }];
634
666
  break;
635
667
  }
@@ -646,21 +678,24 @@ export class FormulaHelper {
646
678
  icon: FormulaIconTypes.Function,
647
679
  expanded: false,
648
680
  hasItems: false,
649
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DATEDIFFyear
681
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DATEDIFFyear,
682
+ syntax: "DATEDIFF ( datepart , startdate , enddate )"
650
683
  }, {
651
684
  id: '3_3_2',
652
685
  text: 'DATEDIFF ( day )',
653
686
  icon: FormulaIconTypes.Function,
654
687
  expanded: false,
655
688
  hasItems: false,
656
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DATEDIFFday
689
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DATEDIFFday,
690
+ syntax: "DATEDIFF ( datepart , startdate , enddate )"
657
691
  }, {
658
692
  id: '3_3_3',
659
693
  text: 'DATEADD',
660
694
  icon: FormulaIconTypes.Function,
661
695
  expanded: false,
662
696
  hasItems: false,
663
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DATEADD
697
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DATEADD,
698
+ syntax: "DATEADD ( datepart , number , date )"
664
699
  }];
665
700
  if (formulaTarget == FormulaTargets.DefaultValue || formulaTarget == FormulaTargets.BatchUpdate) {
666
701
  items.push({
@@ -669,28 +704,32 @@ export class FormulaHelper {
669
704
  icon: FormulaIconTypes.Function,
670
705
  expanded: false,
671
706
  hasItems: false,
672
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_GETDATE
707
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_GETDATE,
708
+ syntax: "GETDATE()"
673
709
  }, {
674
710
  id: '3_3_5',
675
711
  text: 'DAY(GETDATE())',
676
712
  icon: FormulaIconTypes.Function,
677
713
  expanded: false,
678
714
  hasItems: false,
679
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DAYGETDATE
715
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_DAYGETDATE,
716
+ syntax: "DAY(GETDATE())"
680
717
  }, {
681
718
  id: '3_3_6',
682
719
  text: 'MONTH(GETDATE())',
683
720
  icon: FormulaIconTypes.Function,
684
721
  expanded: false,
685
722
  hasItems: false,
686
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_MONTHGETDATE
723
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_MONTHGETDATE,
724
+ syntax: "MONTH(GETDATE())"
687
725
  }, {
688
726
  id: '3_3_7',
689
727
  text: 'YEAR(GETDATE())',
690
728
  icon: FormulaIconTypes.Function,
691
729
  expanded: false,
692
730
  hasItems: false,
693
- description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_YEARGETDATE
731
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_SS_YEARGETDATE,
732
+ syntax: "YEAR(GETDATE())"
694
733
  });
695
734
  }
696
735
  break;
@@ -702,21 +741,24 @@ export class FormulaHelper {
702
741
  icon: FormulaIconTypes.Function,
703
742
  expanded: false,
704
743
  hasItems: false,
705
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TO_DATE
744
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TO_DATE,
745
+ syntax: "TO_DATE( string, format )"
706
746
  }, {
707
747
  id: '3_3_2',
708
748
  text: 'LAST_DAY',
709
749
  icon: FormulaIconTypes.Function,
710
750
  expanded: false,
711
751
  hasItems: false,
712
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_LAST_DAY
752
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_LAST_DAY,
753
+ syntax: "LAST_DAY( date )"
713
754
  }, {
714
755
  id: '3_3_3',
715
756
  text: 'ADD_MONTHS',
716
757
  icon: FormulaIconTypes.Function,
717
758
  expanded: false,
718
759
  hasItems: false,
719
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_ADD_MONTHS
760
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_ADD_MONTHS,
761
+ syntax: "ADD_MONTHS( date, n_months )"
720
762
  }];
721
763
  if (formulaTarget == FormulaTargets.DefaultValue || formulaTarget == FormulaTargets.BatchUpdate) {
722
764
  items.push({
@@ -725,28 +767,32 @@ export class FormulaHelper {
725
767
  icon: FormulaIconTypes.Function,
726
768
  expanded: false,
727
769
  hasItems: false,
728
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_SYSDATE
770
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_SYSDATE,
771
+ syntax: "SYSDATE"
729
772
  }, {
730
773
  id: '3_3_5',
731
774
  text: 'TO_CHAR(SYSDATE, "DD")',
732
775
  icon: FormulaIconTypes.Function,
733
776
  expanded: false,
734
777
  hasItems: false,
735
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TOCHARDATETIME
778
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TOCHARDATETIME,
779
+ syntax: "TO_CHAR(SYSDATE, 'DD')"
736
780
  }, {
737
781
  id: '3_3_6',
738
782
  text: 'TO_CHAR(SYSDATE, "MM")',
739
783
  icon: FormulaIconTypes.Function,
740
784
  expanded: false,
741
785
  hasItems: false,
742
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TOCHARDATETIME
786
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TOCHARDATETIME,
787
+ syntax: "TO_CHAR(SYSDATE, 'MM')"
743
788
  }, {
744
789
  id: '3_3_7',
745
790
  text: 'TO_CHAR(SYSDATE, "YYYY")',
746
791
  icon: FormulaIconTypes.Function,
747
792
  expanded: false,
748
793
  hasItems: false,
749
- description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TOCHARDATETIME
794
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_ORA_TOCHARDATETIME,
795
+ syntax: "TO_CHAR(SYSDATE, 'YYYY')"
750
796
  });
751
797
  }
752
798
  break;
@@ -760,21 +806,24 @@ export class FormulaHelper {
760
806
  icon: FormulaIconTypes.Function,
761
807
  expanded: false,
762
808
  hasItems: false,
763
- description: SDKUI_Localizator.FormulaEditor_DescFunction_TM_GetViewLink_WithoutLogin
809
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_TM_GetViewLink_WithoutLogin,
810
+ syntax: "TM_GetViewLink(Domain, UserName, Psw, CultureID, TID, DID, WithoutP7M, ExpDate, LastVer)"
764
811
  }, {
765
812
  id: '3_4_2',
766
813
  text: `TM_GetViewLink (${SDKUI_Localizator.FormulaEditor_Function_TM_GetViewLink_WithLogin})`,
767
814
  icon: FormulaIconTypes.Function,
768
815
  expanded: false,
769
816
  hasItems: false,
770
- description: SDKUI_Localizator.FormulaEditor_DescFunction_TM_GetViewLink_WithLogin
817
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_TM_GetViewLink_WithLogin,
818
+ syntax: "TM_GetViewLink(Domain, UserName, Psw, CultureID, TID, DID, WithoutP7M, ExpDate, LastVer)"
771
819
  }, {
772
820
  id: '3_4_3',
773
821
  text: `TM_GetViewLink (${SDKUI_Localizator.FormulaEditor_Function_TM_GetViewLink_WithDate})`,
774
822
  icon: FormulaIconTypes.Function,
775
823
  expanded: false,
776
824
  hasItems: false,
777
- description: SDKUI_Localizator.FormulaEditor_DescFunction_TM_GetViewLink_WithDate
825
+ description: SDKUI_Localizator.FormulaEditor_DescFunction_TM_GetViewLink_WithDate,
826
+ syntax: "TM_GetViewLink(Domain, UserName, Psw, CultureID, TID, DID, WithoutP7M, ExpDate, LastVer)"
778
827
  }];
779
828
  return items;
780
829
  }
@@ -1,7 +1,8 @@
1
+ import React from 'react';
1
2
  interface IHtmlContentDisplay {
2
3
  markup: string;
3
4
  isSelected: boolean;
4
5
  searchText?: string;
5
6
  }
6
- declare const TMHtmlContentDisplay: (props: IHtmlContentDisplay) => import("react/jsx-runtime").JSX.Element;
7
+ declare const TMHtmlContentDisplay: (props: IHtmlContentDisplay) => React.JSX.Element;
7
8
  export default TMHtmlContentDisplay;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { ValidationItem } from '@topconsultnpm/sdk-ts';
2
3
  export declare const sanitizeAndFormatComment: (raw?: string) => string;
3
4
  export interface ITMHtmlEditor {
@@ -34,5 +35,5 @@ export interface ITMHtmlEditor {
34
35
  /** If true, displays a character count below the editor */
35
36
  showCount?: boolean;
36
37
  }
37
- declare const TMHtmlEditor: (props: ITMHtmlEditor) => import("react/jsx-runtime").JSX.Element;
38
+ declare const TMHtmlEditor: (props: ITMHtmlEditor) => React.JSX.Element;
38
39
  export default TMHtmlEditor;
@@ -79,12 +79,16 @@ const TMMetadataEditor = ({ isSelected = false, customLabel, isReadOnly, isLexPr
79
79
  if (value?.startsWith("{@QueryParam") || value == "{@UserName}" || value == "{@UserID}" || queryOperator == QueryOperators.Custom || isEditable)
80
80
  return _jsx(TMTextBox, { placeHolder: layoutMode === LayoutModes.Ark ? md?.defaultValue ?? '' : '', isModifiedWhen: isModifiedWhenInternal(), readOnly: isReadOnlyResult, label: (modulesWithLabelTop || showLabelTop) ? (customLabel ?? md?.nameLoc) : undefined, icon: showLabelTop ? icon : undefined, validationItems: validationItems, disabled: disabled, elementStyle: { width: '100%' }, type: 'text', maxLength: isEditable ? undefined : maxLength, autoFocus: autoFocus, value: value ?? '', onValueChanged: (e) => onValueChange?.(e.target.value), onBlur: (newValue) => onValueChanged?.(newValue) });
81
81
  if (md?.dataDomain == MetadataDataDomains.DynamicDataList)
82
- return _jsx(TMDynDataListItemChooser, { placeHolder: layoutMode === LayoutModes.Ark ? md?.defaultValue ?? '' : '', titleForm: md.nameLoc, readOnly: isReadOnlyResult, layoutMode: layoutMode, isModifiedWhen: isModifiedWhenInternal(), label: (modulesWithLabelTop || showLabelTop) ? (customLabel ?? md?.nameLoc) : undefined, icon: showLabelTop ? icon : undefined, validationItems: validationItems, disabled: disabled, md: md, tid: tid, openChooserBySingleClick: openChooserBySingleClick, queryParamsDynDataList: queryParamsDynDataList, onCascadeRefreshDynDataLists: onCascadeRefreshDynDataLists, onCascadeUpdateMIDs: onCascadeUpdateMIDs, elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, allowMultipleSelection: multipleSelectionIsenabled, values: value ? value.split(',').filter(v => v.trim() !== '') : [], showClearButton: !isReadOnlyResult, onValueChanged: (IDs) => {
82
+ return _jsx(TMDynDataListItemChooser, { placeHolder: layoutMode === LayoutModes.Ark ? md?.defaultValue ?? '' : '', titleForm: md.nameLoc, readOnly: isReadOnlyResult, layoutMode: layoutMode, isModifiedWhen: isModifiedWhenInternal(), label: (modulesWithLabelTop || showLabelTop) ? (customLabel ?? md?.nameLoc) : undefined, icon: showLabelTop ? icon : undefined, validationItems: validationItems, disabled: disabled, md: md, tid: tid, openChooserBySingleClick: openChooserBySingleClick, queryParamsDynDataList: queryParamsDynDataList, onCascadeRefreshDynDataLists: onCascadeRefreshDynDataLists, onCascadeUpdateMIDs: onCascadeUpdateMIDs, elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, allowMultipleSelection: multipleSelectionIsenabled, values: multipleSelectionIsenabled ? (value ? value.split(',') : []) : (value ? [value] : []), showClearButton: !isReadOnlyResult, onValueChanged: (IDs) => {
83
83
  const filteredIDs = IDs?.filter(id => id.trim() !== '');
84
84
  if (!filteredIDs || filteredIDs.length <= 0)
85
85
  onValueChanged?.(undefined);
86
- else
86
+ else if (multipleSelectionIsenabled) {
87
87
  onValueChanged?.(filteredIDs.join(","));
88
+ }
89
+ else {
90
+ onValueChanged?.(filteredIDs[0]);
91
+ }
88
92
  }, updateIsModalOpen: updateIsModalOpen });
89
93
  if (md?.dataDomain == MetadataDataDomains.DataList)
90
94
  return _jsx(TMDataListItemChooser, { placeHolder: layoutMode === LayoutModes.Ark ? md?.defaultValue ?? '' : '', titleForm: md.nameLoc, readOnly: isReadOnlyResult, isModifiedWhen: isModifiedWhenInternal(), label: (modulesWithLabelTop || showLabelTop) ? (customLabel ?? md?.nameLoc) : undefined, icon: showLabelTop ? icon : undefined, validationItems: validationItems, disabled: disabled, elementStyle: { width: '100%' }, backgroundColor: TMColors.default_background, dataListId: md.dataListID, openChooserBySingleClick: openChooserBySingleClick, allowMultipleSelection: multipleSelectionIsenabled, values: value?.split(',').map((item) => !item.startsWith("'") ? item : item.slice(1, -1)) ?? [], showClearButton: !isReadOnlyResult, onValueChanged: (IDs) => {
@@ -15,6 +15,8 @@ import { TMNothingToShow } from "../features/documents/TMDcmtPreview";
15
15
  import TMAccordion from "../base/TMAccordion";
16
16
  import TabPanel, { Item } from 'devextreme-react/tab-panel';
17
17
  import { TMExceptionBoxManager } from "../base/TMPopUp";
18
+ // Costante per la minWidth degli elementi - garantisce coerenza tra layout orizzontale e verticale
19
+ const ITEM_MIN_WIDTH = 200;
18
20
  export var ShowCheckBoxesMode;
19
21
  (function (ShowCheckBoxesMode) {
20
22
  ShowCheckBoxesMode[ShowCheckBoxesMode["Never"] = 0] = "Never";
@@ -47,8 +49,12 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
47
49
  let dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === mid);
48
50
  while (dynDLToBeRefreshed != undefined) {
49
51
  const item = newValues.find(value => value.mid === dynDLToBeRefreshed?.mid);
50
- if (item)
52
+ if (item) {
51
53
  item.value = newValue;
54
+ if (showCheckBoxes !== ShowCheckBoxesMode.Never) {
55
+ item.isSelected = false;
56
+ }
57
+ }
52
58
  dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === item?.mid);
53
59
  }
54
60
  }
@@ -287,8 +293,12 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
287
293
  let newMetadata = structuredClone(metadataValues);
288
294
  for (const item of midsToBeUpdated) {
289
295
  const mdItem = newMetadata.find(value => value.mid === item.mid);
290
- if (mdItem)
296
+ if (mdItem) {
291
297
  mdItem.value = item.value;
298
+ if (showCheckBoxes !== ShowCheckBoxesMode.Never) {
299
+ mdItem.isSelected = !stringIsNullOrEmpty(item.value);
300
+ }
301
+ }
292
302
  }
293
303
  onValueChanged?.(newMetadata);
294
304
  }, updateIsModalOpen: updateIsModalOpen }), FormulaHelper.isFormula(item.value)
@@ -579,7 +589,7 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
579
589
  else if (layoutItem.type === LayoutItemTypes.LayoutGroup && layoutItem.lgd) {
580
590
  const children = getChildren(layoutItem.layoutItemID);
581
591
  const groupDescriptor = layoutItem.lgd;
582
- const groupTitle = groupDescriptor.caption || `Group ${layoutItem.layoutItemID}`;
592
+ const groupTitle = (groupDescriptor.showCaption ? groupDescriptor.caption || `Group ${layoutItem.layoutItemID}` : '');
583
593
  const groupIsNoBorder = groupDescriptor.borderStyle == undefined || groupDescriptor.borderStyle == LayoutGroupBorderStyles.NoBorder || groupDescriptor.borderStyle == LayoutGroupBorderStyles.None;
584
594
  const isCollapsed = false; // LayoutGroupDescriptor doesn't have collapsed property
585
595
  const isVertical = groupDescriptor.orientation === LayoutGroupOrientations.Vertical;
@@ -608,7 +618,7 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
608
618
  }
609
619
  // Orizzontale con bordo, children e titolo
610
620
  if (!groupIsNoBorder && isHorizontal && children.length > 0 && groupTitle.length > 0) {
611
- return (_jsxs("div", { style: borderedGroupStyle('row'), children: [groupTitleElement, renderChildren(layoutItem, nextDepth)] }, `group-horizontal-${layoutItem.layoutItemID}`));
621
+ return (_jsxs("div", { style: { position: 'relative', border: '2px solid #CAD9EB', borderRadius: '3px', padding: '12px 6px 6px', margin: '10px' }, children: [groupTitleElement, _jsx("div", { style: { display: 'flex', flexDirection: 'row', flexWrap: 'nowrap', gap: '8px', overflowX: 'auto', overflowY: 'hidden', paddingBottom: '8px' }, children: children.map(child => (_jsx("div", { style: { flex: `1 1 ${ITEM_MIN_WIDTH}px`, minWidth: `${ITEM_MIN_WIDTH}px` }, children: renderLayoutItem(child, nextDepth, visited) }, child.layoutItemID))) })] }, `group-horizontal-${layoutItem.layoutItemID}`));
612
622
  }
613
623
  // Verticale senza bordo
614
624
  if (groupIsNoBorder && isVertical) {
@@ -625,8 +635,14 @@ const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerm
625
635
  }
626
636
  // Orizzontale
627
637
  if (isHorizontal) {
628
- const renderHorizontalChildren = () => children.map(child => (_jsx("div", { style: { flex: '1 1 0', minWidth: 0 }, children: renderLayoutItem(child, nextDepth, visited) }, child.layoutItemID)));
629
- return (_jsx("div", { style: { display: 'flex', flexDirection: 'row', flexWrap: 'wrap', gap: '3px' }, children: groupDescriptor.borderStyle === LayoutGroupBorderStyles.GroupBox || groupDescriptor.borderStyle === LayoutGroupBorderStyles.Tabbed ? (_jsx(TMAccordion, { title: groupTitle, titleSize: "Small", children: renderChildren(layoutItem, nextDepth) })) : groupDescriptor.borderStyle === LayoutGroupBorderStyles.Group ? (_jsxs("div", { style: borderedGroupStyle('column'), children: [groupTitleElement, renderHorizontalChildren()] })) : (renderHorizontalChildren()) }, `group-horizontal-${layoutItem.layoutItemID}`));
638
+ const renderHorizontalChildren = () => (_jsx("div", { style: { display: 'flex', flexDirection: 'row', flexWrap: 'nowrap', gap: '8px', overflowX: 'auto', overflowY: 'hidden', paddingBottom: '8px' }, children: children.map(child => (_jsx("div", { style: { flex: `1 1 ${ITEM_MIN_WIDTH}px`, minWidth: `${ITEM_MIN_WIDTH}px` }, children: renderLayoutItem(child, nextDepth, visited) }, child.layoutItemID))) }));
639
+ if (groupDescriptor.borderStyle === LayoutGroupBorderStyles.GroupBox || groupDescriptor.borderStyle === LayoutGroupBorderStyles.Tabbed) {
640
+ return (_jsx(TMAccordion, { title: groupTitle, titleSize: "Small", children: renderHorizontalChildren() }, `group-horizontal-${layoutItem.layoutItemID}`));
641
+ }
642
+ if (groupDescriptor.borderStyle === LayoutGroupBorderStyles.Group) {
643
+ return (_jsxs("div", { style: { position: 'relative', border: '2px solid #CAD9EB', borderRadius: '3px', padding: '12px 6px 6px', margin: '10px' }, children: [groupTitleElement, renderHorizontalChildren()] }, `group-horizontal-${layoutItem.layoutItemID}`));
644
+ }
645
+ return (_jsx("div", { children: renderHorizontalChildren() }, `group-horizontal-${layoutItem.layoutItemID}`));
630
646
  }
631
647
  // Fallback: gruppo con accordion e indentazione
632
648
  const indentationPx = depth > 0 ? depth * 10 : 0;
@@ -709,6 +725,7 @@ const StyledRow = styled.div `
709
725
  display: flex;
710
726
  flex-direction: row;
711
727
  width: 100%;
728
+ min-width: ${ITEM_MIN_WIDTH}px;
712
729
  gap: 5px;
713
730
  `;
714
731
  const StyledSeparator = styled.hr `
@@ -14,5 +14,5 @@ interface TMTreeDropDownProps {
14
14
  isValidKey?: (key: number) => boolean;
15
15
  elementStyle?: React.CSSProperties;
16
16
  }
17
- declare const TMTreeDropDown: (props: TMTreeDropDownProps) => import("react/jsx-runtime").JSX.Element;
17
+ declare const TMTreeDropDown: (props: TMTreeDropDownProps) => React.JSX.Element;
18
18
  export default TMTreeDropDown;
@@ -11,5 +11,5 @@ interface TMToppyDraggableHelpCenterProps {
11
11
  /** Callback chiamato quando si clicca sull'immagine di Toppy */
12
12
  onToppyImageClick?: () => void;
13
13
  }
14
- declare const TMToppyDraggableHelpCenter: (props: TMToppyDraggableHelpCenterProps) => import("react/jsx-runtime").JSX.Element;
14
+ declare const TMToppyDraggableHelpCenter: (props: TMToppyDraggableHelpCenterProps) => React.JSX.Element;
15
15
  export default TMToppyDraggableHelpCenter;
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import { BlogPost, UserDescriptor } from "@topconsultnpm/sdk-ts";
2
3
  import { FileItem } from '../../base/TMFileManagerUtils';
3
4
  import { TMBlogContextDescriptor } from '../../grids/TMBlogsPostUtils';
@@ -18,5 +19,5 @@ interface TMBlogCommentFormProps {
18
19
  /** External save handler - when provided, bypasses internal engine logic */
19
20
  onCustomSave?: (blogPost: BlogPost) => Promise<void>;
20
21
  }
21
- declare const TMBlogCommentForm: (props: TMBlogCommentFormProps) => import("react/jsx-runtime").JSX.Element;
22
+ declare const TMBlogCommentForm: (props: TMBlogCommentFormProps) => React.JSX.Element;
22
23
  export default TMBlogCommentForm;