@topconsultnpm/sdkui-react-beta 6.17.0 → 6.17.1

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 (122) hide show
  1. package/lib/assets/IconsS4t/add.svg +12 -12
  2. package/lib/assets/IconsS4t/aggiorna.svg +18 -18
  3. package/lib/assets/IconsS4t/bookmark.svg +42 -42
  4. package/lib/assets/IconsS4t/cancella.svg +15 -15
  5. package/lib/assets/IconsS4t/check-box.svg +19 -19
  6. package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -40
  7. package/lib/assets/IconsS4t/down.svg +28 -28
  8. package/lib/assets/IconsS4t/edit-file.svg +19 -19
  9. package/lib/assets/IconsS4t/edita.svg +32 -32
  10. package/lib/assets/IconsS4t/firma.svg +19 -19
  11. package/lib/assets/IconsS4t/icona_download.svg +16 -16
  12. package/lib/assets/IconsS4t/info.svg +51 -51
  13. package/lib/assets/IconsS4t/left.svg +20 -20
  14. package/lib/assets/IconsS4t/line.svg +40 -40
  15. package/lib/assets/IconsS4t/more.svg +19 -19
  16. package/lib/assets/IconsS4t/plus.svg +23 -23
  17. package/lib/assets/IconsS4t/printer.svg +49 -49
  18. package/lib/assets/IconsS4t/radio-on-button.svg +25 -25
  19. package/lib/assets/IconsS4t/rectangle.svg +41 -41
  20. package/lib/assets/IconsS4t/redo.svg +19 -19
  21. package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -40
  22. package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -40
  23. package/lib/assets/IconsS4t/right.svg +22 -22
  24. package/lib/assets/IconsS4t/searchbar.svg +21 -21
  25. package/lib/assets/IconsS4t/text-box.svg +36 -36
  26. package/lib/assets/IconsS4t/tick.svg +8 -8
  27. package/lib/assets/IconsS4t/trash-white.svg +10 -10
  28. package/lib/assets/IconsS4t/undo.svg +19 -19
  29. package/lib/assets/IconsS4t/up.svg +32 -32
  30. package/lib/assets/IconsS4t/video-streaming.svg +2 -2
  31. package/lib/assets/IconsS4t/zoom-in.svg +58 -58
  32. package/lib/assets/IconsS4t/zoom-out.svg +56 -56
  33. package/lib/assets/icomoon.svg +96 -96
  34. package/lib/assets/italy.svg +16 -16
  35. package/lib/assets/six.svg +3 -3
  36. package/lib/assets/thumbnails/index.ts +38 -38
  37. package/lib/assets/topmedia-six.svg +65 -65
  38. package/lib/assets/topmeida-six-bianco.svg +65 -65
  39. package/lib/components/base/Styled.js +263 -263
  40. package/lib/components/base/TMAccordion.js +43 -43
  41. package/lib/components/base/TMAreaManager.js +23 -23
  42. package/lib/components/base/TMButton.js +130 -130
  43. package/lib/components/base/TMClosableList.js +46 -46
  44. package/lib/components/base/TMConfirm.js +20 -20
  45. package/lib/components/base/TMContextMenu.js +4 -4
  46. package/lib/components/base/TMContextMenuOLD.js +25 -25
  47. package/lib/components/base/TMCounterBar.js +32 -32
  48. package/lib/components/base/TMCounterContainer.js +30 -30
  49. package/lib/components/base/TMDropDownMenu.js +24 -24
  50. package/lib/components/base/TMFileManagerUtils.js +19 -19
  51. package/lib/components/base/TMFloatingToolbar.js +34 -34
  52. package/lib/components/base/TMLayout.js +44 -44
  53. package/lib/components/base/TMList.js +34 -34
  54. package/lib/components/base/TMModal.js +31 -31
  55. package/lib/components/base/TMPanel.js +57 -57
  56. package/lib/components/base/TMPopUp.js +131 -131
  57. package/lib/components/base/TMProgressBar.js +20 -20
  58. package/lib/components/base/TMResizableMenu.js +28 -28
  59. package/lib/components/base/TMRightSidebar.js +40 -40
  60. package/lib/components/base/TMTab.js +11 -11
  61. package/lib/components/base/TMToggleButton.js +36 -36
  62. package/lib/components/base/TMToolbarCard.js +35 -35
  63. package/lib/components/base/TMTreeView.js +12 -12
  64. package/lib/components/base/TMUserAvatar.js +7 -7
  65. package/lib/components/base/TMWaitPanel.js +22 -22
  66. package/lib/components/choosers/TMCultureIDPicker.js +35 -35
  67. package/lib/components/choosers/TMDataListItemPicker.js +54 -54
  68. package/lib/components/editors/TMCheckBox.js +24 -24
  69. package/lib/components/editors/TMDropDown.js +43 -43
  70. package/lib/components/editors/TMEditorStyled.js +71 -71
  71. package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
  72. package/lib/components/editors/TMLocalizedTextBox.js +31 -31
  73. package/lib/components/editors/TMMetadataValues.js +12 -12
  74. package/lib/components/editors/TMRadioButton.js +39 -39
  75. package/lib/components/editors/TMSummary.js +39 -39
  76. package/lib/components/editors/TMTextArea.js +12 -12
  77. package/lib/components/editors/TMTextBox.js +19 -19
  78. package/lib/components/features/assistant/ToppyHelpCenter.js +114 -114
  79. package/lib/components/features/blog/TMBlogCommentForm.js +3 -3
  80. package/lib/components/features/documents/TMDcmtIcon.js +8 -8
  81. package/lib/components/features/documents/TMDcmtPreview.js +30 -30
  82. package/lib/components/features/documents/TMFileUploader.js +21 -21
  83. package/lib/components/features/search/TMSavedQuerySelector.js +51 -51
  84. package/lib/components/features/search/TMSearchQueryEditor.js +13 -13
  85. package/lib/components/features/search/TMSearchQueryPanel.js +30 -30
  86. package/lib/components/features/search/TMSearchResult.js +3 -3
  87. package/lib/components/features/search/TMTreeSelector.js +66 -66
  88. package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
  89. package/lib/components/features/workflow/TMWorkflowPopup.js +41 -41
  90. package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
  91. package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
  92. package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
  93. package/lib/components/features/workflow/diagram/DiagramItemForm.js +29 -29
  94. package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
  95. package/lib/components/features/workflow/diagram/RecipientList.js +40 -40
  96. package/lib/components/features/workflow/diagram/WFDiagram.js +279 -279
  97. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
  98. package/lib/components/features/workflow/diagram/workflowHelpers.js +1 -1
  99. package/lib/components/forms/Login/Chooser.js +35 -35
  100. package/lib/components/forms/Login/Menu.js +22 -22
  101. package/lib/components/forms/Login/SelectBox.js +46 -46
  102. package/lib/components/forms/Login/TMLoginForm.js +4 -4
  103. package/lib/components/forms/Login/TextBox.js +57 -57
  104. package/lib/components/grids/TMBlogsUtils.js +25 -25
  105. package/lib/components/grids/TMRecentsManager.js +50 -50
  106. package/lib/components/grids/TMValidationItemsList.js +48 -48
  107. package/lib/components/layout/panelManager/TMPanelManagerContainer.js +12 -12
  108. package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +34 -34
  109. package/lib/components/query/TMQueryEditor.js +17 -17
  110. package/lib/components/query/TMQuerySummary.js +12 -12
  111. package/lib/components/sidebar/TMCommandsPanel.js +10 -10
  112. package/lib/components/sidebar/TMHeader.js +307 -307
  113. package/lib/components/sidebar/TMSidebar.js +24 -24
  114. package/lib/components/sidebar/TMSidebarItem.js +21 -21
  115. package/lib/helper/TMUtils.js +19 -19
  116. package/lib/hooks/useForm.d.ts +1 -1
  117. package/lib/hooks/useForm.js +4 -4
  118. package/lib/services/platform_services.d.ts +1 -1
  119. package/lib/services/platform_services.js +2 -2
  120. package/lib/stories/TMHtmlContentDisplay.stories.js +16 -16
  121. package/lib/stories/TMHtmlEditor.stories.js +3 -3
  122. package/package.json +1 -1
@@ -7,13 +7,13 @@ import { DownloadTypes } from '../../../ts';
7
7
  import { DeviceType, useDeviceType } from '../../base/TMDeviceProvider';
8
8
  import { useDcmtOperations } from '../../../hooks/useDcmtOperations';
9
9
  import { TMWaitPanel } from '../../base/TMWaitPanel';
10
- const StyledCellRenderDcmtIcon = styled.div `
11
- display: flex;
12
- flex-direction: row;
13
- align-items: center;
14
- justify-content: center;
15
- overflow: visible;
16
- position: relative;
10
+ const StyledCellRenderDcmtIcon = styled.div `
11
+ display: flex;
12
+ flex-direction: row;
13
+ align-items: center;
14
+ justify-content: center;
15
+ overflow: visible;
16
+ position: relative;
17
17
  `;
18
18
  const TMDcmtIcon = ({ fileExtension, fileCount, isLexProt, isSigned, isMail, isShared, tid, did, downloadMode = "none", tooltipContent, openInOffice, onDownloadDcmtsAsync }) => {
19
19
  const { downloadDcmtsAsync, showWaitPanel, waitPanelTitle, showSecondary, waitPanelTextSecondary, waitPanelValueSecondary, waitPanelMaxValueSecondary, abortController } = useDcmtOperations();
@@ -56,7 +56,7 @@ const TMDcmtIcon = ({ fileExtension, fileCount, isLexProt, isSigned, isMail, isS
56
56
  };
57
57
  export default TMDcmtIcon;
58
58
  function IconLexProtLock(props) {
59
- return (_jsxs("svg", { viewBox: "0 0 512 512", height: "1em", width: "1em", ...props, children: [_jsx("path", { fill: "#455A64", d: "M256,0c-76.544,0.094-138.573,62.122-138.667,138.667V224c0,5.891,4.776,10.667,10.667,10.667h42.667\n c5.891,0,10.667-4.776,10.667-10.667v-85.333C181.333,97.429,214.763,64,256,64s74.667,33.429,74.667,74.667V224\n c0,5.891,4.776,10.667,10.667,10.667H384c5.891,0,10.667-4.776,10.667-10.667v-85.333C394.573,62.122,332.544,0.094,256,0z" }), _jsx("path", { fill: "#FFC107", d: "M128,213.333h256c29.455,0,53.333,23.878,53.333,53.333v192C437.333,488.122,413.455,512,384,512H128\n c-29.455,0-53.333-23.878-53.333-53.333v-192C74.667,237.211,98.545,213.333,128,213.333z" }), _jsx("path", { fill: "#455A64", d: "M309.333,330.667c0.124-29.455-23.653-53.434-53.108-53.558\n c-29.455-0.124-53.434,23.653-53.558,53.108c-0.086,20.36,11.427,38.992,29.674,48.023l-8.235,57.6\n c-0.825,5.833,3.235,11.23,9.068,12.055c0.494,0.07,0.993,0.105,1.492,0.105h42.667c5.891,0.06,10.715-4.667,10.774-10.558\n c0.005-0.543-0.03-1.086-0.108-1.623l-8.235-57.6C297.788,369.199,309.216,350.82,309.333,330.667z" }), _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " })] })
59
+ return (_jsxs("svg", { viewBox: "0 0 512 512", height: "1em", width: "1em", ...props, children: [_jsx("path", { fill: "#455A64", d: "M256,0c-76.544,0.094-138.573,62.122-138.667,138.667V224c0,5.891,4.776,10.667,10.667,10.667h42.667\r\n c5.891,0,10.667-4.776,10.667-10.667v-85.333C181.333,97.429,214.763,64,256,64s74.667,33.429,74.667,74.667V224\r\n c0,5.891,4.776,10.667,10.667,10.667H384c5.891,0,10.667-4.776,10.667-10.667v-85.333C394.573,62.122,332.544,0.094,256,0z" }), _jsx("path", { fill: "#FFC107", d: "M128,213.333h256c29.455,0,53.333,23.878,53.333,53.333v192C437.333,488.122,413.455,512,384,512H128\r\n c-29.455,0-53.333-23.878-53.333-53.333v-192C74.667,237.211,98.545,213.333,128,213.333z" }), _jsx("path", { fill: "#455A64", d: "M309.333,330.667c0.124-29.455-23.653-53.434-53.108-53.558\r\n c-29.455-0.124-53.434,23.653-53.558,53.108c-0.086,20.36,11.427,38.992,29.674,48.023l-8.235,57.6\r\n c-0.825,5.833,3.235,11.23,9.068,12.055c0.494,0.07,0.993,0.105,1.492,0.105h42.667c5.891,0.06,10.715-4.667,10.774-10.558\r\n c0.005-0.543-0.03-1.086-0.108-1.623l-8.235-57.6C297.788,369.199,309.216,350.82,309.333,330.667z" }), _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " }), " ", _jsx("g", { children: " " })] })
60
60
  // <svg
61
61
  // viewBox="0 0 24 24"
62
62
  // fill="currentColor"
@@ -364,29 +364,29 @@ const ImageViewer = ({ fileBlob, alt = 'Image', className }) => {
364
364
  if (!doc)
365
365
  return;
366
366
  doc.open();
367
- doc.write(`
368
- <html>
369
- <head>
370
- <title>Print Image</title>
371
- <style>
372
- body, html {
373
- margin: 0;
374
- padding: 0;
375
- height: 100%;
376
- display: flex;
377
- justify-content: center;
378
- align-items: center;
379
- }
380
- img {
381
- max-width: 100%;
382
- max-height: 100%;
383
- }
384
- </style>
385
- </head>
386
- <body>
387
- <img src="${dataUrl}" onload="setTimeout(() => { window.print(); window.close(); }, 100);" />
388
- </body>
389
- </html>
367
+ doc.write(`
368
+ <html>
369
+ <head>
370
+ <title>Print Image</title>
371
+ <style>
372
+ body, html {
373
+ margin: 0;
374
+ padding: 0;
375
+ height: 100%;
376
+ display: flex;
377
+ justify-content: center;
378
+ align-items: center;
379
+ }
380
+ img {
381
+ max-width: 100%;
382
+ max-height: 100%;
383
+ }
384
+ </style>
385
+ </head>
386
+ <body>
387
+ <img src="${dataUrl}" onload="setTimeout(() => { window.print(); window.close(); }, 100);" />
388
+ </body>
389
+ </html>
390
390
  `);
391
391
  doc.close();
392
392
  iframe.contentWindow?.addEventListener('afterprint', () => {
@@ -436,11 +436,11 @@ const StyledImage = styled.img.attrs(props => ({
436
436
  style: {
437
437
  transform: `translate(${props.$tx}px, ${props.$ty}px) scale(${props.$scale}) rotate(${props.$rotate}deg)`,
438
438
  },
439
- })) `
440
- display: block;
441
- max-width: none;
442
- max-height: none;
443
- transform-origin: top left;
444
- pointer-events: none;
445
- position: absolute;
439
+ })) `
440
+ display: block;
441
+ max-width: none;
442
+ max-height: none;
443
+ transform-origin: top left;
444
+ pointer-events: none;
445
+ position: absolute;
446
446
  `;
@@ -89,27 +89,27 @@ const TMFileUploader = ({ deviceType = DeviceType.DESKTOP, onClose, onFileUpload
89
89
  const innerContent = (_jsxs("div", { style: { width: '100%', height: '100%', padding: '2px', display: 'flex', flexDirection: 'column', gap: 10 }, children: [enableDragDropOverlay && _jsx(TMDragDropOverlay, { handleFile: handleFile, refocusAfterFileInput: refocusAfterFileInput }), content] }));
90
90
  return showTMPanel ? (_jsx(TMPanel, { ref: fileUploaderPanelRef, panelID: 'file-uploader-panel', title: SDKUI_Localizator.FileUpload, onBack: deviceType === DeviceType.MOBILE ? () => onClose?.() : undefined, toolbar: deviceType !== DeviceType.MOBILE ? (_jsx(StyledHeaderIcon, { onClick: onClose, "$color": 'white', children: _jsx(TMTooltip, { content: SDKUI_Localizator.Close, children: _jsx(IconCloseOutline, {}) }) })) : undefined, children: innerContent })) : (innerContent);
91
91
  };
92
- const UploadContainer = styled.div `
93
- position: relative;
94
- display: flex;
95
- align-items: center;
96
- justify-content: center;
97
- flex-direction: column;
98
- gap: 5px;
99
- border: 2px dashed ${props => props.$isRequired ? () => TMColors.error : () => TMColors.primaryColor};
100
- /* max-height: 100px; */
101
- width: 100%;
102
- height: 100%;
103
- border-radius: 8px;
104
- padding: 30px;
105
- text-align: center;
106
- color: ${props => props.$isRequired ? () => TMColors.error : () => TMColors.primaryColor};
107
- transition: background-color 0.3s;
108
- &:hover {
109
- background-color: #658cab;
110
- }
92
+ const UploadContainer = styled.div `
93
+ position: relative;
94
+ display: flex;
95
+ align-items: center;
96
+ justify-content: center;
97
+ flex-direction: column;
98
+ gap: 5px;
99
+ border: 2px dashed ${props => props.$isRequired ? () => TMColors.error : () => TMColors.primaryColor};
100
+ /* max-height: 100px; */
101
+ width: 100%;
102
+ height: 100%;
103
+ border-radius: 8px;
104
+ padding: 30px;
105
+ text-align: center;
106
+ color: ${props => props.$isRequired ? () => TMColors.error : () => TMColors.primaryColor};
107
+ transition: background-color 0.3s;
108
+ &:hover {
109
+ background-color: #658cab;
110
+ }
111
111
  `;
112
- const HiddenInput = styled.input `
113
- display: none;
112
+ const HiddenInput = styled.input `
113
+ display: none;
114
114
  `;
115
115
  export default TMFileUploader;
@@ -15,57 +15,57 @@ import { DeviceType, useDeviceType } from '../../base/TMDeviceProvider';
15
15
  import { StyledDivHorizontal, StyledOffCanvasPanel } from '../../base/Styled';
16
16
  import { useOutsideClick } from '../../../hooks/useOutsideClick';
17
17
  import TMShowAllOrMaxItemsButton from '../../base/TMShowAllOrMaxItemsButton';
18
- const StyledSqdItem = styled.div `
19
- display: flex;
20
- flex-direction: column;
21
- align-items: stretch;
22
- min-width: 0;
23
- padding: 10px;
24
- position: relative;
25
- white-space: nowrap;
26
- text-overflow: ellipsis;
27
-
28
- &:hover {
29
- cursor: pointer;
30
- background: linear-gradient(
31
- 270deg,
32
- rgba(70, 181, 162, 0.15) 16%,
33
- rgba(59, 170, 188, 0.15) 34%,
34
- rgba(59, 170, 188, 0.15) 34%,
35
- rgba(54, 129, 173, 0.15) 54%,
36
- rgba(51, 104, 165, 0.15) 72%,
37
- rgba(47, 84, 157, 0.15) 88%,
38
- rgba(48, 79, 153, 0.15) 100%
39
- );
40
- }
41
-
42
- .info-icon {
43
- opacity: 0;
44
- pointer-events: none;
45
- transition: opacity 0.2s;
46
- ${({ $isMobile }) => $isMobile && `
47
- display: none !important;
48
- `}
49
- }
50
-
51
- &:hover .info-icon {
52
- opacity: 1;
53
- pointer-events: auto;
54
- }
55
-
56
- &::after {
57
- content: '';
58
- display: block;
59
- width: 90%;
60
- margin: 0 auto;
61
- border-bottom: 1px solid #00A99D;
62
- margin-top: 8px;
63
- }
64
-
65
- &:last-child {
66
- border-bottom: none; // remove border for last item
67
- margin-bottom: 0;
68
- }
18
+ const StyledSqdItem = styled.div `
19
+ display: flex;
20
+ flex-direction: column;
21
+ align-items: stretch;
22
+ min-width: 0;
23
+ padding: 10px;
24
+ position: relative;
25
+ white-space: nowrap;
26
+ text-overflow: ellipsis;
27
+
28
+ &:hover {
29
+ cursor: pointer;
30
+ background: linear-gradient(
31
+ 270deg,
32
+ rgba(70, 181, 162, 0.15) 16%,
33
+ rgba(59, 170, 188, 0.15) 34%,
34
+ rgba(59, 170, 188, 0.15) 34%,
35
+ rgba(54, 129, 173, 0.15) 54%,
36
+ rgba(51, 104, 165, 0.15) 72%,
37
+ rgba(47, 84, 157, 0.15) 88%,
38
+ rgba(48, 79, 153, 0.15) 100%
39
+ );
40
+ }
41
+
42
+ .info-icon {
43
+ opacity: 0;
44
+ pointer-events: none;
45
+ transition: opacity 0.2s;
46
+ ${({ $isMobile }) => $isMobile && `
47
+ display: none !important;
48
+ `}
49
+ }
50
+
51
+ &:hover .info-icon {
52
+ opacity: 1;
53
+ pointer-events: auto;
54
+ }
55
+
56
+ &::after {
57
+ content: '';
58
+ display: block;
59
+ width: 90%;
60
+ margin: 0 auto;
61
+ border-bottom: 1px solid #00A99D;
62
+ margin-top: 8px;
63
+ }
64
+
65
+ &:last-child {
66
+ border-bottom: none; // remove border for last item
67
+ margin-bottom: 0;
68
+ }
69
69
  `;
70
70
  const getSharingModeColor = (sharingMode) => {
71
71
  switch (sharingMode) {
@@ -14,19 +14,19 @@ import TMMetadataEditor, { useMetadataEditableList } from '../../editors/TMMetad
14
14
  import { colorOperator, StyledItemWrapper, StyledRowItem } from '../../query/TMQueryEditor';
15
15
  import { TMMidViewer } from '../../viewers/TMMidViewer';
16
16
  import { AdvancedMenuButtons } from '../../editors/TMMetadataValues';
17
- const StyledMetadataListItem = styled.div `
18
- padding: 5px;
19
- border-radius: 8px;
20
- height: max-content;
21
- width: 100%;
22
- /* box-shadow: 1px 1px 7px rgba(0,0,0,0.15); */
23
- /* font-size: ${(props) => props.$isSelected ? '1.2rem' : '1rem'}; */
24
- background: ${(props) => props.$isSelected ? props.$selectedColor : props.$backgroundColor};
25
-
26
- &:hover {
27
- background: ${(props) => props.$isSelected ? props.$selectedColor : props.$hoverColor};
28
- cursor: pointer;
29
- }
17
+ const StyledMetadataListItem = styled.div `
18
+ padding: 5px;
19
+ border-radius: 8px;
20
+ height: max-content;
21
+ width: 100%;
22
+ /* box-shadow: 1px 1px 7px rgba(0,0,0,0.15); */
23
+ /* font-size: ${(props) => props.$isSelected ? '1.2rem' : '1rem'}; */
24
+ background: ${(props) => props.$isSelected ? props.$selectedColor : props.$backgroundColor};
25
+
26
+ &:hover {
27
+ background: ${(props) => props.$isSelected ? props.$selectedColor : props.$hoverColor};
28
+ cursor: pointer;
29
+ }
30
30
  `;
31
31
  const TMSearchQueryEditor = ({ qd, dcmtTypesList = [], isExpertMode = SDKUI_Globals.userSettings.advancedSettings.expertMode === 1, showAllMdWhere, onQdChanged, onFocusedMetadataChanged, onAdvancedMenuClick }) => {
32
32
  const [dynDataListsToBeRefreshed, setDynDataListsToBeRefreshed] = useState([]);
@@ -324,36 +324,36 @@ export const refreshLastSearch = async (qd) => {
324
324
  }
325
325
  return searchResults;
326
326
  };
327
- export const StyledToppyTextContainer = styled.div `
328
- padding: 22px 8px;
329
- width: 100%;
330
- max-width: 300px;
331
- border: 1px solid #2559A5;
332
- border-radius: 30px;
333
- display: flex;
334
- align-items: center;
335
- justify-content: center;
336
- box-sizing: border-box;
337
- min-height: 100px;
327
+ export const StyledToppyTextContainer = styled.div `
328
+ padding: 22px 8px;
329
+ width: 100%;
330
+ max-width: 300px;
331
+ border: 1px solid #2559A5;
332
+ border-radius: 30px;
333
+ display: flex;
334
+ align-items: center;
335
+ justify-content: center;
336
+ box-sizing: border-box;
337
+ min-height: 100px;
338
338
  `;
339
- export const StyledToppyText = styled.p `
340
- text-align: center;
341
- color: #2559A5;
342
- font-size: 1rem;
343
- user-select: none;
344
- margin: 0;
345
- display: -webkit-box;
346
- -webkit-box-orient: vertical;
347
- -webkit-line-clamp: 3; /* non è una proprietà standard ma è così diffusa e ben supportata che è considerata una "best practice pragmatica" */
348
- overflow: hidden;
349
- text-overflow: ellipsis;
350
- white-space: normal;
351
- word-break: break-word;
352
- line-height: 1.2;
339
+ export const StyledToppyText = styled.p `
340
+ text-align: center;
341
+ color: #2559A5;
342
+ font-size: 1rem;
343
+ user-select: none;
344
+ margin: 0;
345
+ display: -webkit-box;
346
+ -webkit-box-orient: vertical;
347
+ -webkit-line-clamp: 3; /* non è una proprietà standard ma è così diffusa e ben supportata che è considerata una "best practice pragmatica" */
348
+ overflow: hidden;
349
+ text-overflow: ellipsis;
350
+ white-space: normal;
351
+ word-break: break-word;
352
+ line-height: 1.2;
353
353
  `;
354
- export const StyledToppyImage = styled.img `
355
- width: 100%;
356
- max-width: 120px;
357
- height: auto;
358
- display: block;
354
+ export const StyledToppyImage = styled.img `
355
+ width: 100%;
356
+ max-width: 120px;
357
+ height: auto;
358
+ display: block;
359
359
  `;
@@ -703,9 +703,9 @@ const TMSearchResultGrid = ({ openInOffice, inputFocusedItem, showSearch, allowM
703
703
  return _jsxs("div", { style: { width: "100%", height: "100%" }, children: [_jsx(TMDataGrid, { id: "tm-search-result", keyExpr: "rowIndex", dataColumns: dataColumns, dataSource: dataSource, repaintChangesOnly: true, selectedRowKeys: selectedRowKeys, focusedRowKey: Number(focusedItem?.rowIndex ?? 0), showSearchPanel: showSearch, showFilterPanel: true, sorting: { mode: "multiple" }, selection: { mode: allowMultipleSelection ? 'multiple' : 'single' }, pageSize: TMDataGridPageSize.Small, onSelectionChanged: handleSelectionChange, onFocusedRowChanged: handleFocusedRowChange, onRowDblClick: onRowDblClick, onContentReady: onContentReady, onContextMenuPreparing: onContextMenuPreparing, onKeyDown: onKeyDown, counterConfig: { show: true } }), (showExportForm && searchResult && onCloseExportForm) && _jsx(TMDataGridExportForm, { dataColumns: dataColumns, dataSource: dataSource, selectedRowKeys: selectedRowKeys, onCloseExportForm: onCloseExportForm, searchResult: searchResult })] });
704
704
  };
705
705
  //#region TMSearchResultSelector
706
- const StyledItemTemplate = styled.div `
707
- background: ${(props) => props.$isSelected ? 'oklch(from var(--dx-color-primary) l c h / .2) !important' : 'transparent'};
708
- cursor: pointer;
706
+ const StyledItemTemplate = styled.div `
707
+ background: ${(props) => props.$isSelected ? 'oklch(from var(--dx-color-primary) l c h / .2) !important' : 'transparent'};
708
+ cursor: pointer;
709
709
  `;
710
710
  const MemoizedStyledItemTemplate = React.memo(StyledItemTemplate);
711
711
  const TMSearchResultSelector = ({ searchResults = [], disableAccordionIfSingleCategory = false, selectedTID, onSelectionChanged }) => {
@@ -201,70 +201,70 @@ const TMTreeSelector = ({ layoutMode = LayoutModes.Update, isVisible, onSelected
201
201
  : _jsx("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', height: '100%', width: '100%', fontSize: '1.5rem' }, children: SDKUI_Localizator.TreesNoAvailable }) }));
202
202
  };
203
203
  export default TMTreeSelector;
204
- const StyledTreeListWrapper = styled.div `
205
- width: 100%;
206
- height: 100%;
207
- min-height: 0;
208
- flex: 1;
209
- display: flex;
210
- flex-direction: column;
211
-
212
- .dx-treelist,
213
- .dx-treelist-rowsview,
214
- .dx-scrollable,
215
- .dx-scrollable-wrapper,
216
- .dx-scrollable-container,
217
- .dx-scrollable-content {
218
- height: 100% !important;
219
- min-height: 0 !important;
220
- max-height: 100% !important;
221
- box-sizing: border-box;
222
- }
223
-
224
- .dx-scrollable-scrollbar.dx-scrollbar-vertical {
225
- /* Mostra solo quando serve */
226
- opacity: 1 !important;
227
- }
228
-
229
- .dx-scrollable-scrollbar.dx-scrollbar-horizontal {
230
- display: none !important;
231
- }
232
-
233
- .dx-treelist-container>.dx-treelist-headers,
234
- .dx-treelist-container>.dx-treelist-rowsview {
235
- background-color: transparent;
236
- }
237
-
238
- .dx-treelist-rowsview .dx-treelist-empty-space {
239
- position: relative;
240
- top: 4px;
241
- display: inline-block;
242
- width: 16px;
243
- }
244
-
245
- .dx-row > td {
246
- padding: 10px 4px;
247
- font-size: 1rem;
248
- white-space: nowrap;
249
- overflow: hidden;
250
- text-overflow: ellipsis;
251
- }
252
-
253
- .dx-selection td {
254
- background: oklch(from var(--dx-color-primary) l c h / .2) !important;
255
- }
256
-
257
- .dx-data-row:hover {
258
- cursor: pointer;
259
- background: linear-gradient(
260
- 270deg,
261
- rgba(70, 181, 162, 0.15) 16%,
262
- rgba(59, 170, 188, 0.15) 34%,
263
- rgba(59, 170, 188, 0.15) 34%,
264
- rgba(54, 129, 173, 0.15) 54%,
265
- rgba(51, 104, 165, 0.15) 72%,
266
- rgba(47, 84, 157, 0.15) 88%,
267
- rgba(48, 79, 153, 0.15) 100%
268
- );
269
- }
204
+ const StyledTreeListWrapper = styled.div `
205
+ width: 100%;
206
+ height: 100%;
207
+ min-height: 0;
208
+ flex: 1;
209
+ display: flex;
210
+ flex-direction: column;
211
+
212
+ .dx-treelist,
213
+ .dx-treelist-rowsview,
214
+ .dx-scrollable,
215
+ .dx-scrollable-wrapper,
216
+ .dx-scrollable-container,
217
+ .dx-scrollable-content {
218
+ height: 100% !important;
219
+ min-height: 0 !important;
220
+ max-height: 100% !important;
221
+ box-sizing: border-box;
222
+ }
223
+
224
+ .dx-scrollable-scrollbar.dx-scrollbar-vertical {
225
+ /* Mostra solo quando serve */
226
+ opacity: 1 !important;
227
+ }
228
+
229
+ .dx-scrollable-scrollbar.dx-scrollbar-horizontal {
230
+ display: none !important;
231
+ }
232
+
233
+ .dx-treelist-container>.dx-treelist-headers,
234
+ .dx-treelist-container>.dx-treelist-rowsview {
235
+ background-color: transparent;
236
+ }
237
+
238
+ .dx-treelist-rowsview .dx-treelist-empty-space {
239
+ position: relative;
240
+ top: 4px;
241
+ display: inline-block;
242
+ width: 16px;
243
+ }
244
+
245
+ .dx-row > td {
246
+ padding: 10px 4px;
247
+ font-size: 1rem;
248
+ white-space: nowrap;
249
+ overflow: hidden;
250
+ text-overflow: ellipsis;
251
+ }
252
+
253
+ .dx-selection td {
254
+ background: oklch(from var(--dx-color-primary) l c h / .2) !important;
255
+ }
256
+
257
+ .dx-data-row:hover {
258
+ cursor: pointer;
259
+ background: linear-gradient(
260
+ 270deg,
261
+ rgba(70, 181, 162, 0.15) 16%,
262
+ rgba(59, 170, 188, 0.15) 34%,
263
+ rgba(59, 170, 188, 0.15) 34%,
264
+ rgba(54, 129, 173, 0.15) 54%,
265
+ rgba(51, 104, 165, 0.15) 72%,
266
+ rgba(47, 84, 157, 0.15) 88%,
267
+ rgba(48, 79, 153, 0.15) 100%
268
+ );
269
+ }
270
270
  `;
@@ -419,15 +419,15 @@ const TMWGsCopyMoveForm = (props) => {
419
419
  }, children: SDKUI_Localizator.Cancel })] })] }) });
420
420
  };
421
421
  export default TMWGsCopyMoveForm;
422
- const StepSpan = styled.span `
423
- color: ${({ $isCurrent, $isPast }) => ($isCurrent ? TMColors.primary : $isPast ? '#555' : '#888')};
424
- font-weight: ${({ $isCurrent }) => ($isCurrent ? 600 : 400)};
425
- cursor: ${({ $isPast }) => ($isPast ? 'pointer' : 'default')};
426
- transition: color 0.3s ease;
427
- &:hover {
428
- color: ${({ $isPast }) => ($isPast ? '#007bff' : undefined)};
429
- text-decoration: ${({ $isPast }) => ($isPast ? 'underline' : 'none')};
430
- }
422
+ const StepSpan = styled.span `
423
+ color: ${({ $isCurrent, $isPast }) => ($isCurrent ? TMColors.primary : $isPast ? '#555' : '#888')};
424
+ font-weight: ${({ $isCurrent }) => ($isCurrent ? 600 : 400)};
425
+ cursor: ${({ $isPast }) => ($isPast ? 'pointer' : 'default')};
426
+ transition: color 0.3s ease;
427
+ &:hover {
428
+ color: ${({ $isPast }) => ($isPast ? '#007bff' : undefined)};
429
+ text-decoration: ${({ $isPast }) => ($isPast ? 'underline' : 'none')};
430
+ }
431
431
  `;
432
432
  export const TMStepNavigator = (props) => {
433
433
  const { steps, currentStep, onStepChange } = props;
@@ -15,55 +15,55 @@ import TMTextArea from "../../editors/TMTextArea";
15
15
  import TMDropDown from "../../editors/TMDropDown";
16
16
  import TMDateBox from "../../editors/TMDateBox";
17
17
  import ShowAlert from "../../base/TMAlert";
18
- const StyledWorkFlowOperationButtonsContainer = styled.div `
19
- display: flex;
20
- align-items: center;
21
- gap: 10px;
22
- flex-direction: column;
18
+ const StyledWorkFlowOperationButtonsContainer = styled.div `
19
+ display: flex;
20
+ align-items: center;
21
+ gap: 10px;
22
+ flex-direction: column;
23
23
  `;
24
24
  const StyledTextArea = styled.textarea.attrs({
25
25
  maxLength: 200
26
- }) `
27
- width: 100%;
28
- height: 100%;
29
- border: 1px solid ${props => props.$isValid ? '#b4b4b4' : TMColors.error};
30
- border-radius: 10px;
31
- padding: 10px;
32
- &:focus{
33
- outline: none;
34
- border-bottom: 4px solid ${props => props.$isValid ? TMColors.primaryColor : TMColors.error};
35
- }
26
+ }) `
27
+ width: 100%;
28
+ height: 100%;
29
+ border: 1px solid ${props => props.$isValid ? '#b4b4b4' : TMColors.error};
30
+ border-radius: 10px;
31
+ padding: 10px;
32
+ &:focus{
33
+ outline: none;
34
+ border-bottom: 4px solid ${props => props.$isValid ? TMColors.primaryColor : TMColors.error};
35
+ }
36
36
  `;
37
- const CharacterCounter = styled.div `
38
- text-align: right;
39
- font-size: 0.8rem;
40
- color: #6c757d;
41
- margin-top: 2px;
37
+ const CharacterCounter = styled.div `
38
+ text-align: right;
39
+ font-size: 0.8rem;
40
+ color: #6c757d;
41
+ margin-top: 2px;
42
42
  `;
43
- const StyledModalBodyWrapper = styled.div `
44
- display: flex;
45
- flex-direction: column;
46
- height: 100%;
43
+ const StyledModalBodyWrapper = styled.div `
44
+ display: flex;
45
+ flex-direction: column;
46
+ height: 100%;
47
47
  `;
48
- const StyledModalFooter = styled.div `
49
- padding: 16px 0 12px 0;
50
- height: 60px;
51
- display: flex;
52
- justify-content: center;
48
+ const StyledModalFooter = styled.div `
49
+ padding: 16px 0 12px 0;
50
+ height: 60px;
51
+ display: flex;
52
+ justify-content: center;
53
53
  `;
54
- const StyledModalContentContainer = styled.div `
55
- width: 100%;
56
- padding: 10px;
57
- flex: 1; /* Questo fa sì che prenda tutto lo spazio verticale disponibile */
58
- overflow-y: auto;
59
- display: flex;
60
- flex-direction: column;
61
- gap: 5px;
54
+ const StyledModalContentContainer = styled.div `
55
+ width: 100%;
56
+ padding: 10px;
57
+ flex: 1; /* Questo fa sì che prenda tutto lo spazio verticale disponibile */
58
+ overflow-y: auto;
59
+ display: flex;
60
+ flex-direction: column;
61
+ gap: 5px;
62
62
  `;
63
- const StyledHorizontalContainer = styled.div `
64
- display: flex;
65
- gap: 10px;
66
- /* align-items: flex-end; */
63
+ const StyledHorizontalContainer = styled.div `
64
+ display: flex;
65
+ gap: 10px;
66
+ /* align-items: flex-end; */
67
67
  `;
68
68
  export const WorkFlowOperationButtons = ({ deviceType = DeviceType.DESKTOP, approveDisable = false, signApproveDisable = false, reassignDisable = false, rejectDisable = false, infoDisable = false, onApprove, onSignApprove, onReAssign, onReject, onMoreInfo }) => {
69
69
  const isMobile = deviceType === DeviceType.MOBILE;