@topconsultnpm/sdkui-react 6.22.0-dev3.24 → 6.22.0-dev3.26

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 (149) hide show
  1. package/lib/components/NewComponents/ContextMenu/styles.d.ts +43 -45
  2. package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +60 -67
  3. package/lib/components/base/Styled.d.ts +77 -93
  4. package/lib/components/base/TMAlert.js +6 -8
  5. package/lib/components/base/TMAreaManager.js +53 -55
  6. package/lib/components/base/TMCounterBar.d.ts +2 -2
  7. package/lib/components/base/TMCounterContainer.d.ts +1 -2
  8. package/lib/components/base/TMCustomButton.d.ts +1 -1
  9. package/lib/components/base/TMCustomButton.js +39 -48
  10. package/lib/components/base/TMDataGridExportForm.d.ts +1 -2
  11. package/lib/components/base/TMFileManager.d.ts +1 -2
  12. package/lib/components/base/TMFileManagerDataGridView.d.ts +1 -2
  13. package/lib/components/base/TMFileManagerThumbnailItems.d.ts +1 -1
  14. package/lib/components/base/TMFileManagerThumbnailsView.d.ts +1 -1
  15. package/lib/components/base/TMFileManagerUtils.d.ts +6 -4
  16. package/lib/components/base/TMLayout.d.ts +4 -4
  17. package/lib/components/base/TMList.d.ts +1 -2
  18. package/lib/components/base/TMListView.d.ts +1 -1
  19. package/lib/components/base/TMPanel.js +167 -167
  20. package/lib/components/base/TMSpinner.d.ts +1 -2
  21. package/lib/components/base/TMTab.d.ts +3 -4
  22. package/lib/components/base/TMTabControl.js +208 -208
  23. package/lib/components/base/TMTooltip.d.ts +1 -1
  24. package/lib/components/base/TMTreeView.d.ts +8 -14
  25. package/lib/components/base/TMTreeView.js +14 -0
  26. package/lib/components/base/TMUserAvatar.d.ts +1 -2
  27. package/lib/components/base/TMVilViewer.d.ts +1 -2
  28. package/lib/components/base/TMWaitPanel.d.ts +2 -3
  29. package/lib/components/base/waitPanel/TMWaitPanelConfirm.d.ts +12 -0
  30. package/lib/components/base/waitPanel/TMWaitPanelConfirm.js +185 -0
  31. package/lib/components/base/waitPanel/TMWaitPanelManager.d.ts +169 -0
  32. package/lib/components/base/waitPanel/TMWaitPanelManager.js +320 -0
  33. package/lib/components/base/waitPanel/TMWaitPanelView.d.ts +52 -0
  34. package/lib/components/base/waitPanel/TMWaitPanelView.js +274 -0
  35. package/lib/components/base/waitPanel/index.d.ts +1 -0
  36. package/lib/components/base/waitPanel/index.js +1 -0
  37. package/lib/components/choosers/TMDynDataListItemChooser.d.ts +1 -1
  38. package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +1 -2
  39. package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +1 -2
  40. package/lib/components/choosers/TMPathChooser.js +17 -34
  41. package/lib/components/choosers/TMQuickSearchInfo.d.ts +1 -2
  42. package/lib/components/choosers/TMRelationChooser.d.ts +3 -3
  43. package/lib/components/choosers/TMUserChooser.d.ts +2 -2
  44. package/lib/components/editors/TMEditorStyled.d.ts +42 -20
  45. package/lib/components/editors/TMFormulaEditor.d.ts +1 -1
  46. package/lib/components/editors/TMHtmlContentDisplay.d.ts +1 -2
  47. package/lib/components/editors/TMHtmlEditor.d.ts +1 -2
  48. package/lib/components/editors/TMTreeDropDown.d.ts +1 -1
  49. package/lib/components/features/assistant/TMHelpOnLineChat.d.ts +28 -0
  50. package/lib/components/features/assistant/TMHelpOnLineChat.js +871 -0
  51. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.d.ts +1 -1
  52. package/lib/components/features/assistant/TMToppyDraggableHelpCenter.js +2 -2
  53. package/lib/components/features/blog/TMBlogCommentForm.d.ts +1 -2
  54. package/lib/components/features/documents/TMBatchUpdateForm.js +3 -4
  55. package/lib/components/features/documents/TMCopyToFolderForm.js +32 -35
  56. package/lib/components/features/documents/TMDcmtForm.js +48 -60
  57. package/lib/components/features/documents/TMDcmtFormActionButtons.d.ts +1 -1
  58. package/lib/components/features/documents/TMDcmtIcon.d.ts +1 -4
  59. package/lib/components/features/documents/TMDcmtIcon.js +3 -5
  60. package/lib/components/features/documents/TMDcmtPreview.d.ts +6 -8
  61. package/lib/components/features/documents/TMDcmtPreview.js +5 -3
  62. package/lib/components/features/documents/TMDcmtTasks.d.ts +1 -2
  63. package/lib/components/features/documents/TMDragDropOverlay.d.ts +1 -1
  64. package/lib/components/features/documents/TMFileUploader.js +21 -21
  65. package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +2 -0
  66. package/lib/components/features/documents/TMMasterDetailDcmts.js +45 -147
  67. package/lib/components/features/documents/TMMasterInfoFields.d.ts +1 -2
  68. package/lib/components/features/documents/TMMergeToPdfForm.d.ts +1 -2
  69. package/lib/components/features/documents/TMMergeToPdfForm.js +48 -47
  70. package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.d.ts +1 -2
  71. package/lib/components/features/documents/TMMultiMasterDetailDcmtsForm.js +14 -15
  72. package/lib/components/features/documents/TMMultiMasterDetailDcmtsUtils.d.ts +4 -4
  73. package/lib/components/features/documents/TMRelationViewer.d.ts +3 -14
  74. package/lib/components/features/documents/TMRelationViewer.js +115 -79
  75. package/lib/components/features/search/TMDcmtCheckoutInfoForm.d.ts +1 -2
  76. package/lib/components/features/search/TMMetadataOutputForm.d.ts +1 -2
  77. package/lib/components/features/search/TMMetadataSorterForm.d.ts +1 -2
  78. package/lib/components/features/search/TMSavedQuerySelector.d.ts +2 -2
  79. package/lib/components/features/search/TMSearch.d.ts +1 -2
  80. package/lib/components/features/search/TMSearchQueryPanel.d.ts +3 -9
  81. package/lib/components/features/search/TMSearchResult.js +6 -8
  82. package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +1 -1
  83. package/lib/components/features/search/TMSignatureInfoContent.d.ts +1 -2
  84. package/lib/components/features/search/TMViewHistoryDcmt.d.ts +1 -2
  85. package/lib/components/features/search/TMViewHistoryDcmt.js +14 -25
  86. package/lib/components/features/tasks/TMTaskForm.d.ts +1 -1
  87. package/lib/components/features/tasks/TMTaskFormUtils.d.ts +10 -10
  88. package/lib/components/features/tasks/TMTasksAgenda.d.ts +1 -1
  89. package/lib/components/features/tasks/TMTasksCalendar.d.ts +1 -1
  90. package/lib/components/features/tasks/TMTasksHeader.d.ts +1 -1
  91. package/lib/components/features/tasks/TMTasksPanelContent.d.ts +1 -1
  92. package/lib/components/features/tasks/TMTasksUtilsView.d.ts +5 -5
  93. package/lib/components/features/tasks/TMTasksView.d.ts +1 -1
  94. package/lib/components/features/tasks/TMTasksView.js +91 -90
  95. package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +2 -3
  96. package/lib/components/features/wg/TMWGsCopyMoveForm.js +91 -91
  97. package/lib/components/features/workflow/TMWorkflowPopup.d.ts +7 -8
  98. package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +1 -3
  99. package/lib/components/forms/Login/ChangePasswordInputs.d.ts +1 -3
  100. package/lib/components/forms/Login/Chooser.d.ts +2 -2
  101. package/lib/components/forms/TMChooserForm.d.ts +1 -2
  102. package/lib/components/forms/TMSaveForm.d.ts +4 -4
  103. package/lib/components/grids/TMBlogAttachments.d.ts +1 -2
  104. package/lib/components/grids/TMBlogHeader.d.ts +1 -1
  105. package/lib/components/grids/TMBlogsPost.d.ts +1 -1
  106. package/lib/components/grids/TMBlogsPost.js +92 -96
  107. package/lib/components/grids/TMBlogsPostUtils.d.ts +9 -9
  108. package/lib/components/grids/TMValidationItemsList.d.ts +1 -2
  109. package/lib/components/index.d.ts +4 -0
  110. package/lib/components/index.js +3 -0
  111. package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -2
  112. package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +2 -2
  113. package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +6 -5
  114. package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +2 -2
  115. package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +2 -2
  116. package/lib/components/pages/TMPage.d.ts +1 -1
  117. package/lib/components/pages/TMPage.js +29 -31
  118. package/lib/components/query/TMQueryEditor.d.ts +10 -14
  119. package/lib/components/settings/SettingsAppearance.d.ts +1 -2
  120. package/lib/components/sidebar/TMAboutApp.d.ts +1 -2
  121. package/lib/components/sidebar/TMCommandsPanel.d.ts +4 -4
  122. package/lib/components/sidebar/TMHeader.d.ts +3 -3
  123. package/lib/components/viewers/TMDataListItemViewer.d.ts +2 -3
  124. package/lib/components/viewers/TMDataUserIdItemViewer.d.ts +2 -3
  125. package/lib/components/viewers/TMMidViewer.d.ts +2 -2
  126. package/lib/components/viewers/TMTidViewer.d.ts +2 -2
  127. package/lib/helper/SDKUI_Localizator.d.ts +7 -0
  128. package/lib/helper/SDKUI_Localizator.js +70 -0
  129. package/lib/helper/TMAppUpdatedModal.d.ts +1 -2
  130. package/lib/helper/TMAppUpdatedModal.js +93 -93
  131. package/lib/helper/TMCommandsContextMenu.d.ts +1 -1
  132. package/lib/helper/TMIcons.d.ts +280 -280
  133. package/lib/helper/TMPdfViewer.d.ts +1 -2
  134. package/lib/helper/TMToppyMessage.d.ts +2 -2
  135. package/lib/helper/TMUtils.d.ts +4 -10
  136. package/lib/helper/ZipManager.d.ts +1 -1
  137. package/lib/helper/ZipManager.js +2 -1
  138. package/lib/helper/helpers.d.ts +1 -1
  139. package/lib/hooks/useCheckInOutOperations.d.ts +0 -6
  140. package/lib/hooks/useCheckInOutOperations.js +14 -34
  141. package/lib/hooks/useDcmtOperations.d.ts +3 -12
  142. package/lib/hooks/useDcmtOperations.js +130 -160
  143. package/lib/hooks/useDocumentOperations.js +12 -23
  144. package/lib/hooks/useInputDialog.d.ts +1 -2
  145. package/lib/hooks/useMultiMasterDetailDcmts.d.ts +0 -15
  146. package/lib/hooks/useMultiMasterDetailDcmts.js +62 -65
  147. package/lib/hooks/useWorkflowApprove.js +33 -17
  148. package/lib/services/platform_services.d.ts +2 -3
  149. package/package.json +1 -1
@@ -10,12 +10,13 @@ import TMDcmtIcon from "../documents/TMDcmtIcon";
10
10
  import TMDataGrid from "../../base/TMDataGrid";
11
11
  import TMDcmtForm from "../documents/TMDcmtForm";
12
12
  import { useDcmtOperations } from "../../../hooks/useDcmtOperations";
13
- import { TMLayoutWaitingContainer } from "../../base/TMWaitPanel";
13
+ import TMLayoutContainer from "../../base/TMLayout";
14
+ import TMWaitPanelManager from "../../base/waitPanel/TMWaitPanelManager";
14
15
  import { TMResultManager } from "../../forms/TMResultDialog";
15
16
  let abortLocalController = new AbortController();
16
17
  const TMViewHistoryDcmt = (props) => {
17
18
  const { deviceType, inputDcmt, onClose, fromDTD, allTasks, getAllTasks, deleteTaskByIdsCallback, addTaskCallback, editTaskCallback, handleNavigateToWGs, handleNavigateToDossiers } = props;
18
- const { abortController, showWaitPanel, waitPanelTitle, showPrimary, waitPanelTextPrimary, waitPanelValuePrimary, waitPanelMaxValuePrimary, showSecondary, waitPanelTextSecondary, waitPanelValueSecondary, waitPanelMaxValueSecondary, downloadDcmtsAsync } = useDcmtOperations();
19
+ const { downloadDcmtsAsync } = useDcmtOperations();
19
20
  const [dcmtHistory, setDcmtHistory] = useState([]);
20
21
  // showId is a state variable that determines whether an ID-related component or feature should be displayed
21
22
  const [showId, setShowId] = useState(false);
@@ -33,18 +34,6 @@ const TMViewHistoryDcmt = (props) => {
33
34
  const [showDcmtForm, setShowDcmtForm] = useState(false);
34
35
  // Memoized value to get the selected draft based on the focused row key
35
36
  const selectedDcmt = useMemo(() => dcmtHistory.find(dcmt => dcmt.id === focusedRowKey), [focusedRowKey, dcmtHistory]);
36
- // State variable to control the visibility of the wait panel.
37
- const [showLocalWaitPanel, setShowLocalWaitPanel] = useState(false);
38
- // State variable to store the title of the wait panel.
39
- const [waitLocalPanelTitle, setWaitLocalPanelTitle] = useState('');
40
- // State variable to control the visibility of the primary section of the wait panel.
41
- const [showLocalPrimary, setShowLocalPrimary] = useState(false);
42
- // State variable to store the primary text of the wait panel.
43
- const [waitLocalPanelTextPrimary, setWaitLocalPanelTextPrimary] = useState('');
44
- // State variable to track the current value of the primary progress indicator in the wait panel.
45
- const [waitLocalPanelValuePrimary, setWaitLocalPanelValuePrimary] = useState(0);
46
- // State variable to define the maximum value for the primary progress indicator in the wait panel.
47
- const [waitLocalPanelMaxValuePrimary, setWaitLocalPanelMaxValuePrimary] = useState(0);
48
37
  const getParticipantById = (id, users) => {
49
38
  if (users.length === 0)
50
39
  return null;
@@ -155,18 +144,21 @@ const TMViewHistoryDcmt = (props) => {
155
144
  onButtonClick: async (e) => {
156
145
  if (e !== ButtonNames.YES)
157
146
  return;
158
- setWaitLocalPanelTitle(SDKUI_Localizator.Delete);
159
- setShowLocalWaitPanel(true);
160
- setShowLocalPrimary(true);
161
147
  abortLocalController = new AbortController();
148
+ const panel = TMWaitPanelManager.show({
149
+ title: SDKUI_Localizator.Delete,
150
+ max: 1,
151
+ showCounters: false,
152
+ cancelable: true,
153
+ onAbort: () => abortLocalController.abort(),
154
+ });
162
155
  let result = [];
163
156
  let i = 0;
164
- setWaitLocalPanelMaxValuePrimary(1);
165
157
  if (abortLocalController.signal.aborted) {
166
158
  result.push({ rowIndex: i, id1: currentDcmt.id, id2: currentDcmt.id, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborate ${i}` });
167
159
  }
168
160
  else {
169
- setWaitLocalPanelTextPrimary(SDKUI_Localizator.Delete);
161
+ panel.setSubtitle(SDKUI_Localizator.Delete);
170
162
  const deleteEngine = new DeleteEngine(SDK_Globals.tmSession);
171
163
  await deleteEngine.PhysDeleteByIDAsync(Number(currentDcmt.TID), Number(currentDcmt.DID), false)
172
164
  .then(async () => {
@@ -178,10 +170,7 @@ const TMViewHistoryDcmt = (props) => {
178
170
  });
179
171
  }
180
172
  setFocusedRowKey(undefined);
181
- setWaitLocalPanelTextPrimary('');
182
- setWaitLocalPanelMaxValuePrimary(0);
183
- setWaitLocalPanelValuePrimary(0);
184
- setShowLocalWaitPanel(false);
173
+ panel.close();
185
174
  TMResultManager.show(result, SDKUI_Localizator.Delete, "ID", undefined);
186
175
  }
187
176
  });
@@ -279,7 +268,7 @@ const TMViewHistoryDcmt = (props) => {
279
268
  { dataField: "LastUpdateTime", caption: SDKUI_Localizator.LastUpdateTime, dataType: 'datetime', format: 'dd/MM/yyyy HH:mm:ss', },
280
269
  ]);
281
270
  }, [showId]);
282
- return _jsx(TMModal, { title: `${SDKUI_Localizator.SearchResult} \u2014 ${SDKUI_Localizator.History + ": " + (fromDTD.nameLoc ?? SDKUI_Localizator.Document) + " (DID:" + inputDcmt.DID})`, width: calcResponsiveSizes(deviceType, '700px', '700px', '95%'), height: calcResponsiveSizes(deviceType, '80%', '80%', '95%'), onClose: onClose, children: _jsx(TMLayoutWaitingContainer, { direction: 'vertical', showWaitPanel: showWaitPanel, showWaitPanelPrimary: showPrimary, showWaitPanelSecondary: showSecondary, waitPanelTitle: waitPanelTitle, waitPanelTextPrimary: waitPanelTextPrimary, waitPanelValuePrimary: waitPanelValuePrimary, waitPanelMaxValuePrimary: waitPanelMaxValuePrimary, waitPanelTextSecondary: waitPanelTextSecondary, waitPanelValueSecondary: waitPanelValueSecondary, waitPanelMaxValueSecondary: waitPanelMaxValueSecondary, isCancelable: true, abortController: abortController, children: _jsxs(TMLayoutWaitingContainer, { direction: 'vertical', showWaitPanel: showLocalWaitPanel, showWaitPanelPrimary: showLocalPrimary, waitPanelTitle: waitLocalPanelTitle, waitPanelTextPrimary: waitLocalPanelTextPrimary, waitPanelValuePrimary: waitLocalPanelValuePrimary, waitPanelMaxValuePrimary: waitLocalPanelMaxValuePrimary, isCancelable: true, abortController: abortLocalController, children: [_jsx(TMDataGrid, { dataSource: dcmtHistory, dataColumns: dataColumns, focusedRowKey: focusedRowKey, selection: selection, customContextMenuItems: customContextMenuItems, onFocusedRowChanged: onFocusedRowChanged, onCellDblClick: onCellDblClick, noDataText: SDKUI_Localizator.NoDataToDisplay, showSearchPanel: showSearch }), (showDcmtForm && selectedDcmt !== undefined) &&
283
- _jsx(TMDcmtForm, { TID: Number(selectedDcmt.TID), DID: Number(selectedDcmt.DID), formMode: FormModes.ReadOnly, isModal: true, widthModal: "95%", heightModal: "95%", titleModal: fromDTD.name ?? SDKUI_Localizator.SearchResult, allowNavigation: dcmtHistory.length > 0, itemIndex: selectedIndex + 1, count: dcmtHistory.length, onClose: () => { setShowDcmtForm(false); }, canNext: canNavigateHandler('next'), canPrev: canNavigateHandler('prev'), onNext: () => onNavigateHandler('next'), onPrev: () => onNavigateHandler('prev'), allTasks: allTasks, getAllTasks: getAllTasks, deleteTaskByIdsCallback: deleteTaskByIdsCallback, addTaskCallback: addTaskCallback, editTaskCallback: editTaskCallback, handleNavigateToWGs: handleNavigateToWGs, handleNavigateToDossiers: handleNavigateToDossiers, moreInfoTasks: getMoreInfoTasksForDocument(allTasks ?? [], Number(selectedDcmt.TID), Number(selectedDcmt.DID)) })] }) }) });
271
+ return _jsx(TMModal, { title: `${SDKUI_Localizator.SearchResult} \u2014 ${SDKUI_Localizator.History + ": " + (fromDTD.nameLoc ?? SDKUI_Localizator.Document) + " (DID:" + inputDcmt.DID})`, width: calcResponsiveSizes(deviceType, '700px', '700px', '95%'), height: calcResponsiveSizes(deviceType, '80%', '80%', '95%'), onClose: onClose, children: _jsxs(TMLayoutContainer, { direction: 'vertical', children: [_jsx(TMDataGrid, { dataSource: dcmtHistory, dataColumns: dataColumns, focusedRowKey: focusedRowKey, selection: selection, customContextMenuItems: customContextMenuItems, onFocusedRowChanged: onFocusedRowChanged, onCellDblClick: onCellDblClick, noDataText: SDKUI_Localizator.NoDataToDisplay, showSearchPanel: showSearch }), (showDcmtForm && selectedDcmt !== undefined) &&
272
+ _jsx(TMDcmtForm, { TID: Number(selectedDcmt.TID), DID: Number(selectedDcmt.DID), formMode: FormModes.ReadOnly, isModal: true, widthModal: "95%", heightModal: "95%", titleModal: fromDTD.name ?? SDKUI_Localizator.SearchResult, allowNavigation: dcmtHistory.length > 0, itemIndex: selectedIndex + 1, count: dcmtHistory.length, onClose: () => { setShowDcmtForm(false); }, canNext: canNavigateHandler('next'), canPrev: canNavigateHandler('prev'), onNext: () => onNavigateHandler('next'), onPrev: () => onNavigateHandler('prev'), allTasks: allTasks, getAllTasks: getAllTasks, deleteTaskByIdsCallback: deleteTaskByIdsCallback, addTaskCallback: addTaskCallback, editTaskCallback: editTaskCallback, handleNavigateToWGs: handleNavigateToWGs, handleNavigateToDossiers: handleNavigateToDossiers, moreInfoTasks: getMoreInfoTasksForDocument(allTasks ?? [], Number(selectedDcmt.TID), Number(selectedDcmt.DID)) })] }) });
284
273
  };
285
274
  export default TMViewHistoryDcmt;
@@ -36,5 +36,5 @@ export interface TMTaskFormProps {
36
36
  onOpenPdfEditorRequest?: (dcmtInfo: Array<DcmtInfo>, refreshDocumentPreview?: () => Promise<void>) => void;
37
37
  s4TViewerDialogComponent?: React.ReactNode;
38
38
  }
39
- declare const TMTaskForm: (props: TMTaskFormProps) => React.JSX.Element;
39
+ declare const TMTaskForm: (props: TMTaskFormProps) => import("react/jsx-runtime").JSX.Element;
40
40
  export default TMTaskForm;
@@ -8,7 +8,7 @@ interface TaskFormAssignmentNoticeSectionProps {
8
8
  users: Array<UserDescriptor>;
9
9
  requestMoreInfo?: boolean;
10
10
  }
11
- export declare const TaskFormAssignmentNoticeBadge: (props: TaskFormAssignmentNoticeSectionProps) => React.JSX.Element | null;
11
+ export declare const TaskFormAssignmentNoticeBadge: (props: TaskFormAssignmentNoticeSectionProps) => import("react/jsx-runtime").JSX.Element | null;
12
12
  interface RenderContextBlockParams {
13
13
  condition: boolean;
14
14
  pdg: PdGs;
@@ -19,7 +19,7 @@ interface TaskFormContextualAttachmentsProps {
19
19
  currentTask: TaskDescriptor | undefined;
20
20
  taskContext: TaskContext | undefined;
21
21
  }
22
- export declare const TaskFormContextualAttachments: (props: TaskFormContextualAttachmentsProps) => React.JSX.Element;
22
+ export declare const TaskFormContextualAttachments: (props: TaskFormContextualAttachmentsProps) => import("react/jsx-runtime").JSX.Element;
23
23
  interface TaskFormAssignedToProps {
24
24
  formMode: FormModes;
25
25
  formData: TaskDescriptor | undefined;
@@ -31,7 +31,7 @@ interface TaskFormAssignedToProps {
31
31
  label?: string;
32
32
  onValueChanged: (newValue: Array<number> | undefined) => void;
33
33
  }
34
- export declare const TaskAssigneeField: (props: TaskFormAssignedToProps) => React.JSX.Element;
34
+ export declare const TaskAssigneeField: (props: TaskFormAssignedToProps) => import("react/jsx-runtime").JSX.Element;
35
35
  interface RenderFieldBaseProps {
36
36
  fieldsReadOnly: IFieldsEditability;
37
37
  formDataOrig?: TaskDescriptor;
@@ -50,12 +50,12 @@ interface RenderDateFieldProps extends RenderFieldProps {
50
50
  label?: string;
51
51
  onContentReady?: () => void;
52
52
  }
53
- export declare const RenderNameField: ({ requestMoreInfo, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => React.JSX.Element;
54
- export declare const RenderDescriptionField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => React.JSX.Element;
55
- export declare const RenderPriorityField: ({ formData, formDataOrig, fieldsReadOnly, onPriorityValueChange }: RenderPriorityFieldProps) => React.JSX.Element;
56
- export declare const RenderStartDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => React.JSX.Element;
57
- export declare const RenderEndDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => React.JSX.Element;
58
- export declare const RenderRemindDateField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => React.JSX.Element;
53
+ export declare const RenderNameField: ({ requestMoreInfo, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => import("react/jsx-runtime").JSX.Element;
54
+ export declare const RenderDescriptionField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => import("react/jsx-runtime").JSX.Element;
55
+ export declare const RenderPriorityField: ({ formData, formDataOrig, fieldsReadOnly, onPriorityValueChange }: RenderPriorityFieldProps) => import("react/jsx-runtime").JSX.Element;
56
+ export declare const RenderStartDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => import("react/jsx-runtime").JSX.Element;
57
+ export declare const RenderEndDateField: ({ label, validationItems, setFormData, formData, formDataOrig, fieldsReadOnly, onContentReady }: RenderDateFieldProps) => import("react/jsx-runtime").JSX.Element;
58
+ export declare const RenderRemindDateField: ({ validationItems, setFormData, formData, formDataOrig, fieldsReadOnly }: RenderFieldProps) => import("react/jsx-runtime").JSX.Element;
59
59
  interface RenderTaskFormStateFieldProps {
60
60
  formDataOrig: TaskDescriptor | undefined;
61
61
  formData: TaskDescriptor | undefined;
@@ -71,7 +71,7 @@ interface TMChangeStateFormProps {
71
71
  handleShowChangeStateForm: (value: boolean) => void;
72
72
  setFormData: React.Dispatch<React.SetStateAction<TaskDescriptor | undefined>>;
73
73
  }
74
- export declare const TMChangeStateForm: (props: TMChangeStateFormProps) => React.JSX.Element;
74
+ export declare const TMChangeStateForm: (props: TMChangeStateFormProps) => import("react/jsx-runtime").JSX.Element;
75
75
  type TaskRole = "personal" | "sender" | "receiver";
76
76
  type StatusTransitionMap = {
77
77
  [key in Task_States]?: Task_States[];
@@ -15,5 +15,5 @@ interface TMTasksAgendaProps {
15
15
  handleFocusedRowChange: (row: TaskDescriptor | undefined) => void;
16
16
  menuItems: TMContextMenuItemProps[];
17
17
  }
18
- declare const TMTasksAgenda: (props: TMTasksAgendaProps) => React.JSX.Element;
18
+ declare const TMTasksAgenda: (props: TMTasksAgendaProps) => import("react/jsx-runtime").JSX.Element;
19
19
  export default TMTasksAgenda;
@@ -19,5 +19,5 @@ interface TMTasksCalendarProps {
19
19
  handleFocusedRowChange: (row: TaskDescriptor | undefined) => void;
20
20
  menuItems: TMContextMenuItemProps[];
21
21
  }
22
- declare const TMTasksCalendar: (props: TMTasksCalendarProps) => React.JSX.Element;
22
+ declare const TMTasksCalendar: (props: TMTasksCalendarProps) => import("react/jsx-runtime").JSX.Element;
23
23
  export default TMTasksCalendar;
@@ -10,5 +10,5 @@ interface TMTasksHeaderProps {
10
10
  color?: string;
11
11
  height?: string;
12
12
  }
13
- declare const TMTasksHeader: (props: TMTasksHeaderProps) => React.JSX.Element;
13
+ declare const TMTasksHeader: (props: TMTasksHeaderProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default TMTasksHeader;
@@ -16,5 +16,5 @@ interface TMTasksPanelContentProps {
16
16
  s4TViewerDialogComponent?: React.ReactNode;
17
17
  afterTaskSaved?: (task: TaskDescriptor | undefined, formMode: FormModes | undefined, forceRefresh?: boolean) => Promise<void>;
18
18
  }
19
- declare const TMTasksPanelContent: (props: TMTasksPanelContentProps) => React.JSX.Element;
19
+ declare const TMTasksPanelContent: (props: TMTasksPanelContentProps) => import("react/jsx-runtime").JSX.Element;
20
20
  export default TMTasksPanelContent;
@@ -1,4 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import { ReactNode } from "react";
2
2
  import { PdGs, Task_States, TaskDescriptor } from '@topconsultnpm/sdk-ts';
3
3
  import { FormModes } from "../../../ts";
4
4
  export declare const taskStateIconMap: (fontSize?: number) => Map<Task_States, JSX.Element>;
@@ -12,15 +12,15 @@ export declare const renderTaskIcons: (taskData: {
12
12
  remTime: Date | undefined;
13
13
  isNew: boolean;
14
14
  numberOfDays: number;
15
- }) => React.JSX.Element;
15
+ }) => import("react/jsx-runtime").JSX.Element;
16
16
  interface TMActionCalendarProps {
17
17
  currentTask: TaskDescriptor;
18
18
  openTaskForm: (formMode: FormModes, task?: TaskDescriptor) => void;
19
19
  onDeleteCallback: (rowIds: Array<number>) => void;
20
20
  }
21
- export declare const TMActionCalendar: (props: TMActionCalendarProps) => React.JSX.Element;
22
- export declare const priorityLegend: () => React.JSX.Element;
23
- export declare const highlightTaskText: (text: string, search: string, taskId: number) => string | (string | React.JSX.Element)[];
21
+ export declare const TMActionCalendar: (props: TMActionCalendarProps) => import("react/jsx-runtime").JSX.Element;
22
+ export declare const priorityLegend: () => import("react/jsx-runtime").JSX.Element;
23
+ export declare const highlightTaskText: (text: string, search: string, taskId: number) => string | (string | import("react/jsx-runtime").JSX.Element)[];
24
24
  export declare const treeFilterDataSource: (allTasks: Array<TaskDescriptor>) => Array<{
25
25
  id: number;
26
26
  label: string;
@@ -36,5 +36,5 @@ interface TMTasksViewProps {
36
36
  s4TViewerDialogComponent?: React.ReactNode;
37
37
  afterTaskSaved?: (task: TaskDescriptor | undefined, formMode: FormModes | undefined, forceRefresh?: boolean) => Promise<void>;
38
38
  }
39
- declare const TMTasksView: (props: TMTasksViewProps) => React.JSX.Element;
39
+ declare const TMTasksView: (props: TMTasksViewProps) => import("react/jsx-runtime").JSX.Element;
40
40
  export default TMTasksView;
@@ -11,12 +11,12 @@ import TMDataGrid from "../../base/TMDataGrid";
11
11
  import { TMMessageBoxManager, ButtonNames } from "../../base/TMPopUp";
12
12
  import TMTooltip from "../../base/TMTooltip";
13
13
  import TMTabControl, { TMTabPanel } from "../../base/TMTabControl";
14
- import { TMLayoutWaitingContainer } from "../../base/TMWaitPanel";
14
+ import TMLayoutContainer from "../../base/TMLayout";
15
+ import TMWaitPanelManager from "../../base/waitPanel/TMWaitPanelManager";
15
16
  import { TMResultManager } from "../../forms/TMResultDialog";
16
17
  import TMTasksCalendar from "./TMTasksCalendar";
17
18
  import TMTasksAgenda from "./TMTasksAgenda";
18
19
  import TMTaskForm from "./TMTaskForm";
19
- let abortController = new AbortController();
20
20
  const TMTasksView = (props) => {
21
21
  const { id, allTasks, getAllTasks, deleteTaskByIdsCallback, addTaskCallback, editTaskCallback, visualizedTasks, activeComponent, activeTabIndex, setActiveTabIndex, currentTask, setCurrentTask, assignedToMeCount, assignedByMeCount, allTasksFilteredCount, showId, setShowId, showSearch, setShowSearch, showContextualWG, setShowContextualWG, showContextualDossier, setShowContextualDossier, showContextualDocument, setShowContextualDocument, handleNavigateToWGs, handleNavigateToDossiers, taskContext, usersList, onOpenS4TViewerRequest, s4TViewerDialogComponent, afterTaskSaved, } = props;
22
22
  // Get the current device type (e.g., mobile, tablet, desktop) using a custom hook.
@@ -39,18 +39,6 @@ const TMTasksView = (props) => {
39
39
  const [calendarStartDate, setCalendarStartDate] = useState(undefined);
40
40
  /* State to manage the calendar end date */
41
41
  const [calendarEndDate, setCalendarEndDate] = useState(undefined);
42
- // State variable to control the visibility of the wait panel.
43
- const [showWaitPanel, setShowWaitPanel] = useState(false);
44
- // State variable to store the title of the wait panel.
45
- const [waitPanelTitle, setWaitPanelTitle] = useState('');
46
- // State variable to control the visibility of the primary section of the wait panel.
47
- const [showPrimary, setShowPrimary] = useState(false);
48
- // State variable to store the primary text of the wait panel.
49
- const [waitPanelTextPrimary, setWaitPanelTextPrimary] = useState('');
50
- // State variable to track the current value of the primary progress indicator in the wait panel.
51
- const [waitPanelValuePrimary, setWaitPanelValuePrimary] = useState(0);
52
- // State variable to define the maximum value for the primary progress indicator in the wait panel.
53
- const [waitPanelMaxValuePrimary, setWaitPanelMaxValuePrimary] = useState(0);
54
42
  const [isContextualCreate, setIsContextualCreate] = useState(false);
55
43
  // This function open the task form for editing a selected task
56
44
  const editTaskAgendaCallback = (rowId) => {
@@ -158,49 +146,56 @@ const TMTasksView = (props) => {
158
146
  onButtonClick: async (e) => {
159
147
  if (e !== ButtonNames.YES)
160
148
  return;
161
- setWaitPanelTitle(SDKUI_Localizator.Delete);
162
- setShowWaitPanel(true);
163
- setShowPrimary(true);
164
- abortController = new AbortController();
165
- let result = [];
166
- let i = 0;
167
- const deletedTaskIds = [];
168
- setWaitPanelMaxValuePrimary(rowIds.length);
169
- for (const key of rowIds) {
170
- i++;
171
- const deletedTaskId = Number(key);
172
- const deletedTask = visualizedTasks.find(task => task.id === deletedTaskId);
173
- setWaitPanelValuePrimary(i);
174
- if (abortController.signal.aborted) {
175
- result.push({ rowIndex: i, id1: deletedTaskId, id2: deletedTaskId, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborate ${i} attività` });
176
- break;
177
- }
178
- else {
179
- setWaitPanelTextPrimary(SDKUI_Localizator.TaskXofY.replaceParams(i, rowIds.length));
180
- try {
181
- const deletionNotAllowed = deletedTask?.fromID !== SDK_Globals.tmSession?.SessionDescr?.userID;
182
- if (deletionNotAllowed) {
183
- result.push({ rowIndex: key, id1: key, id2: 0, resultType: ResultTypes.ERROR, description: SDKUI_Localizator.OperationNotAllowed });
149
+ const waitPanel = TMWaitPanelManager.show({
150
+ title: SDKUI_Localizator.Delete,
151
+ max: rowIds.length,
152
+ cancelable: true,
153
+ });
154
+ try {
155
+ let result = [];
156
+ let i = 0;
157
+ const deletedTaskIds = [];
158
+ for (const key of rowIds) {
159
+ i++;
160
+ const deletedTaskId = Number(key);
161
+ const deletedTask = visualizedTasks.find(task => task.id === deletedTaskId);
162
+ waitPanel.setSubtitle(SDKUI_Localizator.TaskXofY.replaceParams(i, rowIds.length));
163
+ if (waitPanel.aborted) {
164
+ result.push({ rowIndex: i, id1: deletedTaskId, id2: deletedTaskId, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborate ${i - 1} attività` });
165
+ waitPanel.warning();
166
+ break;
167
+ }
168
+ else {
169
+ try {
170
+ const deletionNotAllowed = deletedTask?.fromID !== SDK_Globals.tmSession?.SessionDescr?.userID;
171
+ if (deletionNotAllowed) {
172
+ result.push({ rowIndex: key, id1: key, id2: 0, resultType: ResultTypes.ERROR, description: SDKUI_Localizator.OperationNotAllowed });
173
+ waitPanel.error();
174
+ }
175
+ else {
176
+ await SDK_Globals.tmSession?.NewTaskEngine().DeleteAsync(deletedTaskId);
177
+ result.push({ rowIndex: key, id1: key, id2: 0, description: SDKUI_Localizator.DeletionCompletedSuccessfully, resultType: ResultTypes.SUCCESS });
178
+ deletedTaskIds.push(deletedTaskId);
179
+ waitPanel.ok();
180
+ }
184
181
  }
185
- else {
186
- await SDK_Globals.tmSession?.NewTaskEngine().DeleteAsync(deletedTaskId);
187
- result.push({ rowIndex: key, id1: key, id2: 0, description: SDKUI_Localizator.DeletionCompletedSuccessfully, resultType: ResultTypes.SUCCESS });
188
- deletedTaskIds.push(deletedTaskId);
182
+ catch (err) {
183
+ result.push({ rowIndex: key, id1: key, id2: 0, resultType: ResultTypes.ERROR, description: getExceptionMessage(err) });
184
+ waitPanel.error();
189
185
  }
190
- }
191
- catch (err) {
192
- result.push({ rowIndex: key, id1: key, id2: 0, resultType: ResultTypes.ERROR, description: getExceptionMessage(err) });
186
+ // Avanza a elaborazione conclusa: con una sola attività la barra non parte dal 100%
187
+ await waitPanel.step();
193
188
  }
194
189
  }
190
+ await deleteTaskByIdsCallback(deletedTaskIds);
191
+ handleSelectionChange([]);
192
+ handleFocusedRowChange(undefined);
193
+ waitPanel.close();
194
+ TMResultManager.show(result, SDKUI_Localizator.Delete, "ID", undefined);
195
+ }
196
+ finally {
197
+ waitPanel.close();
195
198
  }
196
- await deleteTaskByIdsCallback(deletedTaskIds);
197
- handleSelectionChange([]);
198
- handleFocusedRowChange(undefined);
199
- setWaitPanelTextPrimary('');
200
- setWaitPanelMaxValuePrimary(0);
201
- setWaitPanelValuePrimary(0);
202
- setShowWaitPanel(false);
203
- TMResultManager.show(result, SDKUI_Localizator.Delete, "ID", undefined);
204
199
  }
205
200
  });
206
201
  }, [visualizedTasks]);
@@ -224,47 +219,53 @@ const TMTasksView = (props) => {
224
219
  onButtonClick: async (e) => {
225
220
  if (e !== ButtonNames.YES)
226
221
  return;
227
- setWaitPanelTitle(SDKUI_Localizator.MarkAs);
228
- setShowWaitPanel(true);
229
- setShowPrimary(true);
230
- abortController = new AbortController();
231
- let result = [];
232
- let i = 0;
233
- setWaitPanelMaxValuePrimary(rowIds.length);
234
- for (const key of rowIds) {
235
- i++;
236
- const selectedTask = visualizedTasks.find(task => task.id === key) || undefined;
237
- if (selectedTask === undefined)
238
- return;
239
- selectedTask.state = status;
240
- setWaitPanelValuePrimary(i);
241
- if (abortController.signal.aborted) {
242
- result.push({ rowIndex: i, id1: selectedTask.id, id2: selectedTask.id, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborate ${i} attività` });
243
- break;
244
- }
245
- else {
246
- setWaitPanelTextPrimary(SDKUI_Localizator.TaskXofY.replaceParams(i, rowIds.length));
247
- try {
248
- await SDK_Globals.tmSession?.NewTaskEngine().UpdateAsync(selectedTask);
249
- result.push({ rowIndex: key, id1: key, id2: 0, description: SDKUI_Localizator.UpdateCompletedSuccessfully, resultType: ResultTypes.SUCCESS });
222
+ const waitPanel = TMWaitPanelManager.show({
223
+ title: SDKUI_Localizator.MarkAs,
224
+ max: rowIds.length,
225
+ cancelable: true,
226
+ });
227
+ try {
228
+ let result = [];
229
+ let i = 0;
230
+ for (const key of rowIds) {
231
+ i++;
232
+ const selectedTask = visualizedTasks.find(task => task.id === key) || undefined;
233
+ if (selectedTask === undefined)
234
+ return;
235
+ selectedTask.state = status;
236
+ waitPanel.setSubtitle(SDKUI_Localizator.TaskXofY.replaceParams(i, rowIds.length));
237
+ if (waitPanel.aborted) {
238
+ result.push({ rowIndex: i, id1: selectedTask.id, id2: selectedTask.id, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborate ${i - 1} attività` });
239
+ waitPanel.warning();
240
+ break;
250
241
  }
251
- catch (err) {
252
- result.push({ rowIndex: key, id1: key, id2: 0, resultType: ResultTypes.ERROR, description: getExceptionMessage(err) });
242
+ else {
243
+ try {
244
+ await SDK_Globals.tmSession?.NewTaskEngine().UpdateAsync(selectedTask);
245
+ result.push({ rowIndex: key, id1: key, id2: 0, description: SDKUI_Localizator.UpdateCompletedSuccessfully, resultType: ResultTypes.SUCCESS });
246
+ waitPanel.ok();
247
+ }
248
+ catch (err) {
249
+ result.push({ rowIndex: key, id1: key, id2: 0, resultType: ResultTypes.ERROR, description: getExceptionMessage(err) });
250
+ waitPanel.error();
251
+ }
252
+ // Avanza a elaborazione conclusa: con una sola attività la barra non parte dal 100%
253
+ await waitPanel.step();
253
254
  }
254
255
  }
256
+ await getAllTasks().then(() => {
257
+ handleSelectionChange([]);
258
+ handleFocusedRowChange(undefined);
259
+ waitPanel.close();
260
+ TMResultManager.show(result, SDKUI_Localizator.MarkAs, "ID", undefined);
261
+ if (afterTaskSaved) {
262
+ afterTaskSaved(undefined, undefined, true);
263
+ }
264
+ });
265
+ }
266
+ finally {
267
+ waitPanel.close();
255
268
  }
256
- await getAllTasks().then(() => {
257
- handleSelectionChange([]);
258
- handleFocusedRowChange(undefined);
259
- setWaitPanelTextPrimary('');
260
- setWaitPanelMaxValuePrimary(0);
261
- setWaitPanelValuePrimary(0);
262
- setShowWaitPanel(false);
263
- TMResultManager.show(result, SDKUI_Localizator.MarkAs, "ID", undefined);
264
- if (afterTaskSaved) {
265
- afterTaskSaved(undefined, undefined, true);
266
- }
267
- });
268
269
  }
269
270
  });
270
271
  }, [visualizedTasks]);
@@ -538,7 +539,7 @@ const TMTasksView = (props) => {
538
539
  const getFromOrToCalendarElement = (fromOrToDataSource, fromCell = false, toCell = false) => {
539
540
  return _jsx("div", { style: { width: '100%', height: '100%', display: 'flex', flexDirection: 'column', overflow: "auto" }, children: _jsx("div", { style: { width: "100%", height: "100%" }, children: _jsx(TMTasksCalendar, { id: id, visualizedTasks: fromOrToDataSource, showId: showId, fromCell: fromCell, toCell: toCell, showSearch: showSearch, currentCalendarDate: currentCalendarDate, setCurrentCalendarDate: setCurrentCalendarDate, openTaskForm: openTaskFormCallback, onDeleteCallback: onDeleteCallback, setCalendarStartDate: setCalendarStartDate, setCalendarEndDate: setCalendarEndDate, focusedRowKey: focusedRowKey, handleFocusedRowChange: handleFocusedRowChange, menuItems: menuItems }) }) });
540
541
  };
541
- return _jsxs("div", { style: { width: '100%', height: '100%' }, onContextMenu: (e) => e.preventDefault(), children: [_jsx(TMLayoutWaitingContainer, { direction: 'vertical', showWaitPanel: showWaitPanel, showWaitPanelPrimary: showPrimary, waitPanelTitle: waitPanelTitle, waitPanelTextPrimary: waitPanelTextPrimary, waitPanelValuePrimary: waitPanelValuePrimary, waitPanelMaxValuePrimary: waitPanelMaxValuePrimary, isCancelable: true, abortController: abortController, children: _jsxs(TMTabControl, { variant: 'moduleFilled', contentAnimation: 'none', swipeEnabled: false, selectedId: String(activeTabIndex), onSelectedIdChange: (id) => onSelectedIndexChange(Number(id)), style: { width: '100%', height: '100%' }, contentStyle: { display: 'flex', flex: 1, minHeight: 0 }, children: [_jsx(TMTabPanel, { id: String(AssignedTab.AssignedToMe), label: _jsxs(_Fragment, { children: [_jsxs(TMTooltip, { content: SDKUI_Localizator.AssignedToMe, children: [_jsx("i", { className: 'dx-icon-user' }), "\u00A0", SDKUI_Localizator.AssignedToMe, " ", (assignedToMeCount > 0) ? `(${assignedToMeCount})` : ''] }), newTaskCount > 0 && (_jsx(TMTooltip, { content: SDKUI_Localizator.NewAssignedActivitiesNumber + ": " + newTaskCount, children: _jsx(TMCountBadge, { children: newTaskCount }) }))] }), children: activeTabIndex === AssignedTab.AssignedToMe &&
542
+ return _jsxs("div", { style: { width: '100%', height: '100%' }, onContextMenu: (e) => e.preventDefault(), children: [_jsx(TMLayoutContainer, { direction: 'vertical', children: _jsxs(TMTabControl, { variant: 'moduleFilled', contentAnimation: 'none', swipeEnabled: false, selectedId: String(activeTabIndex), onSelectedIdChange: (id) => onSelectedIndexChange(Number(id)), style: { width: '100%', height: '100%' }, contentStyle: { display: 'flex', flex: 1, minHeight: 0 }, children: [_jsx(TMTabPanel, { id: String(AssignedTab.AssignedToMe), label: _jsxs(_Fragment, { children: [_jsxs(TMTooltip, { content: SDKUI_Localizator.AssignedToMe, children: [_jsx("i", { className: 'dx-icon-user' }), "\u00A0", SDKUI_Localizator.AssignedToMe, " ", (assignedToMeCount > 0) ? `(${assignedToMeCount})` : ''] }), newTaskCount > 0 && (_jsx(TMTooltip, { content: SDKUI_Localizator.NewAssignedActivitiesNumber + ": " + newTaskCount, children: _jsx(TMCountBadge, { children: newTaskCount }) }))] }), children: activeTabIndex === AssignedTab.AssignedToMe &&
542
543
  _jsxs(_Fragment, { children: [activeComponent === TaskView.LIST_TASK && getFromOrToDatagridElement(visualizedTasks, true, false), activeComponent === TaskView.AGENDA_TASK && getFromOrToAgendaElement(visualizedTasks, true, false), activeComponent === TaskView.CALENDAR_TASK && getFromOrToCalendarElement(visualizedTasks, true, false)] }) }), _jsx(TMTabPanel, { id: String(AssignedTab.AssignedByMe), label: _jsxs(TMTooltip, { content: SDKUI_Localizator.AssignedByMe, children: [_jsx("i", { className: 'dx-icon-login' }), "\u00A0", SDKUI_Localizator.AssignedByMe, " ", (assignedByMeCount > 0) ? `(${assignedByMeCount})` : ''] }), children: activeTabIndex === AssignedTab.AssignedByMe &&
543
544
  _jsxs(_Fragment, { children: [activeComponent === TaskView.CALENDAR_TASK && getFromOrToCalendarElement(visualizedTasks, false, true), activeComponent === TaskView.AGENDA_TASK && getFromOrToAgendaElement(visualizedTasks, false, true), activeComponent === TaskView.LIST_TASK && getFromOrToDatagridElement(visualizedTasks, false, true)] }) }), _jsx(TMTabPanel, { id: String(AssignedTab.All), label: _jsxs(_Fragment, { children: [_jsxs(TMTooltip, { content: SDKUI_Localizator.AllFemale, children: [_jsx("i", { className: 'dx-icon-fields' }), "\u00A0", SDKUI_Localizator.AllFemale, " ", (allTasksFilteredCount > 0) ? `(${allTasksFilteredCount})` : ''] }), newTaskCount > 0 && (_jsx(TMTooltip, { content: SDKUI_Localizator.NewAssignedActivitiesNumber + ": " + newTaskCount, children: _jsx(TMCountBadge, { children: newTaskCount }) }))] }), children: activeTabIndex === AssignedTab.All &&
544
545
  _jsxs(_Fragment, { children: [activeComponent === TaskView.CALENDAR_TASK && getFromOrToCalendarElement(visualizedTasks, true, true), activeComponent === TaskView.AGENDA_TASK && getFromOrToAgendaElement(visualizedTasks, true, true), activeComponent === TaskView.LIST_TASK && getFromOrToDatagridElement(visualizedTasks, true, true)] }) })] }) }), showTaskForm && _jsx(TMTaskForm, { id: currentTask?.id ?? -1, width: taskModalSizes(deviceType, formMode ?? FormModes.Create).width, height: taskModalSizes(deviceType, formMode ?? FormModes.Create).height, title: isContextualCreate ? SDKUI_Localizator.ContextualTask : SDKUI_Localizator.Widget_Activities, isModal: true, formMode: formMode ?? FormModes.Create, visualizedTasks: visualizedTasks, currentTask: currentTask, setCurrentTask: setCurrentTask, isContextualCreate: isContextualCreate, selectedRowKeys: selectedRowKeys, handleFocusedRowKeyChange: handleFocusedRowChange, taskContext: taskContext, usersList: usersList, onStatusChanged: () => { }, onClose: closeTaskFormCallback, onCancel: closeTaskFormCallback, showBackButton: false, onSaved: onSavedCallback, startDate: calendarStartDate, endDate: calendarEndDate, onOpenS4TViewerRequest: onOpenS4TViewerRequest, s4TViewerDialogComponent: s4TViewerDialogComponent, allTasks: allTasks, getAllTasks: getAllTasks, deleteTaskByIdsCallback: deleteTaskByIdsCallback, addTaskCallback: addTaskCallback, editTaskCallback: editTaskCallback, handleNavigateToWGs: handleNavigateToWGsWrapper, handleNavigateToDossiers: handleNavigateToDossiersWrapper }), _jsx("button", { style: {
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { DcmtTypeDescriptor, WorkingGroupDescriptor } from "@topconsultnpm/sdk-ts";
3
2
  import { FileItem } from '../../base/TMFileManagerUtils';
4
3
  /** Context descriptor for copy/move operations using different engines */
@@ -25,7 +24,7 @@ interface TMWGsCopyMoveFormProps {
25
24
  fetchTreeFileSystemForWorkingGroup?: (workingGroupId: number | undefined) => Promise<void>;
26
25
  fetchArchivedDocumentsForWorkingGroup?: (workingGroupId: number | undefined) => Promise<void>;
27
26
  }
28
- declare const TMWGsCopyMoveForm: (props: TMWGsCopyMoveFormProps) => React.JSX.Element;
27
+ declare const TMWGsCopyMoveForm: (props: TMWGsCopyMoveFormProps) => import("react/jsx-runtime").JSX.Element;
29
28
  export default TMWGsCopyMoveForm;
30
29
  interface StepItem {
31
30
  id: number | string;
@@ -37,4 +36,4 @@ interface TMStepNavigatorProps {
37
36
  currentStep: number;
38
37
  onStepChange: (stepIndex: number) => void;
39
38
  }
40
- export declare const TMStepNavigator: (props: TMStepNavigatorProps) => React.JSX.Element;
39
+ export declare const TMStepNavigator: (props: TMStepNavigatorProps) => import("react/jsx-runtime").JSX.Element;