@topconsultnpm/sdkui-react 6.19.0-test.1 → 6.19.0
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.
- package/lib/assets/IconsS4t/add.svg +12 -12
- package/lib/assets/IconsS4t/aggiorna.svg +18 -18
- package/lib/assets/IconsS4t/bookmark.svg +42 -42
- package/lib/assets/IconsS4t/cancella.svg +15 -15
- package/lib/assets/IconsS4t/check-box.svg +19 -19
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -40
- package/lib/assets/IconsS4t/down.svg +28 -28
- package/lib/assets/IconsS4t/edit-file.svg +19 -19
- package/lib/assets/IconsS4t/edita.svg +32 -32
- package/lib/assets/IconsS4t/firma.svg +19 -19
- package/lib/assets/IconsS4t/icona_download.svg +16 -16
- package/lib/assets/IconsS4t/info.svg +51 -51
- package/lib/assets/IconsS4t/left.svg +20 -20
- package/lib/assets/IconsS4t/line.svg +40 -40
- package/lib/assets/IconsS4t/more.svg +19 -19
- package/lib/assets/IconsS4t/plus.svg +23 -23
- package/lib/assets/IconsS4t/printer.svg +49 -49
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -25
- package/lib/assets/IconsS4t/rectangle.svg +41 -41
- package/lib/assets/IconsS4t/redo.svg +19 -19
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -40
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -40
- package/lib/assets/IconsS4t/right.svg +22 -22
- package/lib/assets/IconsS4t/searchbar.svg +21 -21
- package/lib/assets/IconsS4t/text-box.svg +36 -36
- package/lib/assets/IconsS4t/tick.svg +8 -8
- package/lib/assets/IconsS4t/trash-white.svg +10 -10
- package/lib/assets/IconsS4t/undo.svg +19 -19
- package/lib/assets/IconsS4t/up.svg +32 -32
- package/lib/assets/IconsS4t/video-streaming.svg +2 -2
- package/lib/assets/IconsS4t/zoom-in.svg +58 -58
- package/lib/assets/IconsS4t/zoom-out.svg +56 -56
- package/lib/assets/icomoon.svg +96 -96
- package/lib/assets/italy.svg +16 -16
- package/lib/assets/six.svg +3 -3
- package/lib/assets/thumbnails/index.ts +39 -39
- package/lib/assets/topmedia-six.svg +65 -65
- package/lib/assets/topmeida-six-bianco.svg +65 -65
- package/lib/components/base/Styled.js +302 -302
- package/lib/components/base/TMAccordion.js +43 -43
- package/lib/components/base/TMAccordionNew.d.ts +28 -0
- package/lib/components/base/TMAccordionNew.js +326 -0
- package/lib/components/base/TMAreaManager.js +23 -23
- package/lib/components/base/TMButton.d.ts +1 -0
- package/lib/components/base/TMButton.js +136 -136
- package/lib/components/base/TMClosableList.js +46 -46
- package/lib/components/base/TMConfirm.js +20 -20
- package/lib/components/base/TMContextMenu.js +4 -4
- package/lib/components/base/TMContextMenuOLD.js +25 -25
- package/lib/components/base/TMCounterBar.js +32 -32
- package/lib/components/base/TMCounterContainer.js +30 -30
- package/lib/components/base/TMCustomButton.d.ts +1 -1
- package/lib/components/base/TMCustomButton.js +90 -35
- package/lib/components/base/TMDataGridExportForm.d.ts +1 -1
- package/lib/components/base/TMDataGridExportForm.js +9 -3
- package/lib/components/base/TMDropDownMenu.js +24 -24
- package/lib/components/base/TMFileManager.js +12 -3
- package/lib/components/base/TMFileManagerDataGridView.d.ts +2 -0
- package/lib/components/base/TMFileManagerDataGridView.js +12 -3
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +12 -2
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +2 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +2 -2
- package/lib/components/base/TMFileManagerUtils.js +19 -19
- package/lib/components/base/TMFloatingToolbar.js +34 -34
- package/lib/components/base/TMLayout.js +44 -44
- package/lib/components/base/TMList.js +34 -34
- package/lib/components/base/TMModal.d.ts +2 -0
- package/lib/components/base/TMModal.js +79 -34
- package/lib/components/base/TMPanel.js +57 -57
- package/lib/components/base/TMPopUp.js +186 -117
- package/lib/components/base/TMProgressBar.js +20 -20
- package/lib/components/base/TMResizableMenu.js +28 -28
- package/lib/components/base/TMRightSidebar.js +40 -40
- package/lib/components/base/TMSpinner.js +121 -121
- package/lib/components/base/TMTab.js +11 -11
- package/lib/components/base/TMToggleButton.js +36 -36
- package/lib/components/base/TMToolbarCard.js +35 -35
- package/lib/components/base/TMTooltip.d.ts +1 -1
- package/lib/components/base/TMTooltip.js +1 -1
- package/lib/components/base/TMTreeView.js +16 -16
- package/lib/components/base/TMUserAvatar.js +7 -7
- package/lib/components/base/TMWaitPanel.js +30 -24
- package/lib/components/choosers/TMCultureIDPicker.js +35 -35
- package/lib/components/choosers/TMDataListItemChooser.js +1 -1
- package/lib/components/choosers/TMDataListItemPicker.js +54 -54
- package/lib/components/choosers/TMDcmtTypeChooser.js +2 -2
- package/lib/components/choosers/TMDynDataListItemChooser.js +5 -4
- package/lib/components/choosers/TMMetadataChooser.d.ts +4 -1
- package/lib/components/choosers/TMMetadataChooser.js +31 -8
- package/lib/components/choosers/TMUserChooser.d.ts +4 -0
- package/lib/components/choosers/TMUserChooser.js +21 -5
- package/lib/components/editors/TMCheckBox.js +24 -24
- package/lib/components/editors/TMDateBox.d.ts +1 -1
- package/lib/components/editors/TMDropDown.js +43 -43
- package/lib/components/editors/TMEditorStyled.js +71 -71
- package/lib/components/editors/TMHtmlContentDisplay.js +16 -16
- package/lib/components/editors/TMLocalizedTextBox.js +31 -31
- package/lib/components/editors/TMMetadataValues.js +71 -22
- package/lib/components/editors/TMRadioButton.js +39 -39
- package/lib/components/editors/TMSummary.js +39 -39
- package/lib/components/editors/TMTextArea.d.ts +1 -0
- package/lib/components/editors/TMTextArea.js +56 -22
- package/lib/components/editors/TMTextBox.js +53 -23
- package/lib/components/editors/TMTextExpression.js +36 -28
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.d.ts +30 -0
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.js +482 -0
- package/lib/components/features/assistant/ToppySpeechBubble.d.ts +9 -0
- package/lib/components/features/assistant/ToppySpeechBubble.js +117 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +2 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +21 -9
- package/lib/components/features/documents/TMDcmtBlog.js +1 -1
- package/lib/components/features/documents/TMDcmtForm.d.ts +1 -0
- package/lib/components/features/documents/TMDcmtForm.js +331 -65
- package/lib/components/features/documents/TMDcmtIcon.js +17 -12
- package/lib/components/features/documents/TMDcmtPreview.js +75 -38
- package/lib/components/features/documents/TMFileUploader.js +21 -21
- package/lib/components/features/documents/TMRelationViewer.js +56 -23
- package/lib/components/features/search/TMSavedQuerySelector.js +53 -53
- package/lib/components/features/search/TMSearch.js +2 -2
- package/lib/components/features/search/TMSearchQueryEditor.js +14 -14
- package/lib/components/features/search/TMSearchQueryPanel.js +41 -59
- package/lib/components/features/search/TMSearchResult.js +256 -51
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.d.ts +8 -0
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.js +134 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +3 -2
- package/lib/components/features/search/TMSearchResultsMenuItems.js +94 -59
- package/lib/components/features/search/TMSignSettingsForm.d.ts +9 -0
- package/lib/components/features/search/TMSignSettingsForm.js +621 -0
- package/lib/components/features/search/TMTreeSelector.js +67 -67
- package/lib/components/features/search/TMViewHistoryDcmtForm.d.ts +18 -0
- package/lib/components/features/search/TMViewHistoryDcmtForm.js +215 -0
- package/lib/components/features/tasks/TMTaskForm.js +42 -36
- package/lib/components/features/tasks/TMTasksAgenda.js +4 -4
- package/lib/components/features/tasks/TMTasksCalendar.js +2 -2
- package/lib/components/features/tasks/TMTasksHeader.js +1 -1
- package/lib/components/features/tasks/TMTasksUtils.d.ts +2 -1
- package/lib/components/features/tasks/TMTasksUtils.js +18 -3
- package/lib/components/features/tasks/TMTasksUtilsView.js +26 -4
- package/lib/components/features/tasks/TMTasksView.js +12 -6
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +9 -9
- package/lib/components/features/workflow/TMWorkflowPopup.js +44 -44
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +29 -29
- package/lib/components/features/workflow/diagram/ConnectionForm.js +10 -10
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +57 -57
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +40 -35
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +12 -12
- package/lib/components/features/workflow/diagram/RecipientList.js +39 -39
- package/lib/components/features/workflow/diagram/WFDiagram.js +317 -285
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +4 -4
- package/lib/components/forms/Login/Chooser.js +35 -35
- package/lib/components/forms/Login/Menu.js +22 -22
- package/lib/components/forms/Login/SelectBox.js +46 -46
- package/lib/components/forms/Login/TMLoginForm.js +14 -14
- package/lib/components/forms/Login/TextBox.js +57 -57
- package/lib/components/forms/TMResultDialog.js +8 -2
- package/lib/components/forms/TMSaveForm.js +3 -11
- package/lib/components/grids/TMBlogAttachments.d.ts +0 -14
- package/lib/components/grids/TMBlogAttachments.js +10 -5
- package/lib/components/grids/TMBlogsPost.d.ts +8 -3
- package/lib/components/grids/TMBlogsPost.js +100 -39
- package/lib/components/grids/TMBlogsPostUtils.d.ts +1 -0
- package/lib/components/grids/TMBlogsPostUtils.js +32 -11
- package/lib/components/grids/TMRecentsManager.js +52 -52
- package/lib/components/grids/TMValidationItemsList.js +48 -48
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +2 -1
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +1 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +14 -14
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +0 -1
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +36 -35
- package/lib/components/layout/panelManager/types.d.ts +1 -0
- package/lib/components/pages/TMPage.js +1 -1
- package/lib/components/query/TMQueryEditor.js +17 -17
- package/lib/components/query/TMQuerySummary.d.ts +1 -0
- package/lib/components/query/TMQuerySummary.js +15 -15
- package/lib/components/settings/SettingsAppearance.js +9 -1
- package/lib/components/sidebar/TMCommandsPanel.js +10 -10
- package/lib/components/sidebar/TMHeader.js +307 -307
- package/lib/components/sidebar/TMSidebar.js +24 -24
- package/lib/components/sidebar/TMSidebarItem.js +21 -21
- package/lib/components/viewers/TMDataListItemViewer.d.ts +1 -1
- package/lib/components/viewers/TMMidViewer.d.ts +1 -1
- package/lib/components/viewers/TMTidViewer.d.ts +1 -1
- package/lib/components/wizard/TMStepIndicator.js +102 -102
- package/lib/components/wizard/TMWizard.js +29 -29
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/Globalization.d.ts +1 -0
- package/lib/helper/Globalization.js +30 -0
- package/lib/helper/SDKUI_Globals.d.ts +9 -0
- package/lib/helper/SDKUI_Globals.js +10 -1
- package/lib/helper/SDKUI_Localizator.d.ts +59 -2
- package/lib/helper/SDKUI_Localizator.js +617 -22
- package/lib/helper/TMCustomSearchBar.js +1 -1
- package/lib/helper/TMIcons.d.ts +6 -1
- package/lib/helper/TMIcons.js +22 -2
- package/lib/helper/TMToppyMessage.d.ts +1 -0
- package/lib/helper/TMToppyMessage.js +33 -32
- package/lib/helper/TMUtils.d.ts +42 -4
- package/lib/helper/TMUtils.js +227 -60
- package/lib/helper/cicoHelper.d.ts +31 -0
- package/lib/helper/cicoHelper.js +155 -0
- package/lib/helper/dcmtsHelper.d.ts +2 -1
- package/lib/helper/dcmtsHelper.js +56 -17
- package/lib/helper/helpers.d.ts +8 -1
- package/lib/helper/helpers.js +43 -21
- package/lib/helper/index.d.ts +1 -0
- package/lib/helper/index.js +1 -0
- package/lib/hooks/useDcmtOperations.d.ts +1 -1
- package/lib/hooks/useDcmtOperations.js +10 -6
- package/lib/hooks/useRelatedDocuments.js +35 -26
- package/lib/ts/types.d.ts +3 -1
- package/package.json +54 -54
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +0 -12
- package/lib/components/features/assistant/ToppyHelpCenter.js +0 -173
|
@@ -178,7 +178,7 @@ const TMTreeSelector = ({ layoutMode = LayoutModes.Update, isVisible, onSelected
|
|
|
178
178
|
}
|
|
179
179
|
} }), children: trees.length > 0
|
|
180
180
|
?
|
|
181
|
-
_jsxs("div", { style: {
|
|
181
|
+
_jsxs("div", { onContextMenu: (e) => e.preventDefault(), style: {
|
|
182
182
|
display: 'flex',
|
|
183
183
|
flexDirection: 'column',
|
|
184
184
|
height: '100%',
|
|
@@ -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
|
`;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DcmtInfo } from "../../../ts/types";
|
|
2
|
+
import { DeviceType } from "../../base/TMDeviceProvider";
|
|
3
|
+
import { DcmtTypeDescriptor, HomeBlogPost, TaskDescriptor } from "@topconsultnpm/sdk-ts";
|
|
4
|
+
interface TMViewHistoryDcmtFormProps {
|
|
5
|
+
fromDTD: DcmtTypeDescriptor;
|
|
6
|
+
deviceType: DeviceType | undefined;
|
|
7
|
+
inputDcmt: DcmtInfo;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
allTasks?: Array<TaskDescriptor>;
|
|
10
|
+
getAllTasks?: () => Promise<void>;
|
|
11
|
+
deleteTaskByIdsCallback?: (deletedTaskIds: Array<number>) => Promise<void>;
|
|
12
|
+
addTaskCallback?: (task: TaskDescriptor) => Promise<void>;
|
|
13
|
+
editTaskCallback?: (task: TaskDescriptor) => Promise<void>;
|
|
14
|
+
handleNavigateToWGs?: (value: HomeBlogPost | number) => Promise<void>;
|
|
15
|
+
handleNavigateToDossiers?: (value: HomeBlogPost | number) => Promise<void>;
|
|
16
|
+
}
|
|
17
|
+
declare const TMViewHistoryDcmtForm: (props: TMViewHistoryDcmtFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export default TMViewHistoryDcmtForm;
|
|
@@ -0,0 +1,215 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
+
import { FormModes } from "../../../ts/types";
|
|
4
|
+
import { associateColumnsToRows, calcResponsiveSizes, formatBytes, Globalization, SDKUI_Localizator } from "../../../helper";
|
|
5
|
+
import TMModal from "../../base/TMModal";
|
|
6
|
+
import { SDK_Globals, UpdateEngineByID, UserListCacheService } from "@topconsultnpm/sdk-ts";
|
|
7
|
+
import TMSpinner from "../../base/TMSpinner";
|
|
8
|
+
import { TMExceptionBoxManager } from "../../base/TMPopUp";
|
|
9
|
+
import TMDcmtIcon from "../documents/TMDcmtIcon";
|
|
10
|
+
import TMDataGrid from "../../base/TMDataGrid";
|
|
11
|
+
import TMDcmtForm from "../documents/TMDcmtForm";
|
|
12
|
+
const TMViewHistoryDcmtForm = (props) => {
|
|
13
|
+
const { deviceType, inputDcmt, onClose, fromDTD, allTasks, getAllTasks, deleteTaskByIdsCallback, addTaskCallback, editTaskCallback, handleNavigateToWGs, handleNavigateToDossiers } = props;
|
|
14
|
+
const [dcmtHistory, setDcmtHistory] = useState([]);
|
|
15
|
+
// showId is a state variable that determines whether an ID-related component or feature should be displayed
|
|
16
|
+
const [showId, setShowId] = useState(false);
|
|
17
|
+
// State to store when show search panel inside datagrid
|
|
18
|
+
const [showSearch, setShowSearch] = useState(true);
|
|
19
|
+
// Memoized configuration for DataGrid selection mode: single selection without checkboxes
|
|
20
|
+
const selection = useMemo(() => {
|
|
21
|
+
return { mode: 'single', showCheckBoxesMode: 'none' };
|
|
22
|
+
}, []);
|
|
23
|
+
// State to store the currently focused row key, initially set to undefined
|
|
24
|
+
const [focusedRowKey, setFocusedRowKey] = useState(undefined);
|
|
25
|
+
// State to store the currently focused row index, initially set to -1
|
|
26
|
+
const [selectedIndex, setSelectedIndex] = useState(-1);
|
|
27
|
+
// State to manage show selected file
|
|
28
|
+
const [showDcmtForm, setShowDcmtForm] = useState(false);
|
|
29
|
+
// Memoized value to get the selected draft based on the focused row key
|
|
30
|
+
const selectedDcmt = useMemo(() => dcmtHistory.find(dcmt => dcmt.id === focusedRowKey), [focusedRowKey, dcmtHistory]);
|
|
31
|
+
const getParticipantById = (id, users) => {
|
|
32
|
+
if (users.length === 0)
|
|
33
|
+
return null;
|
|
34
|
+
return users.find(participant => participant.id === id) || null;
|
|
35
|
+
};
|
|
36
|
+
const getHistory = async (users) => {
|
|
37
|
+
try {
|
|
38
|
+
// Show a spinner with a loading message
|
|
39
|
+
TMSpinner.show({ description: SDKUI_Localizator.Loading });
|
|
40
|
+
// Initialize the working group engine
|
|
41
|
+
const ue = new UpdateEngineByID(SDK_Globals.tmSession);
|
|
42
|
+
ue.DID = inputDcmt.DID;
|
|
43
|
+
ue.TID = inputDcmt.TID;
|
|
44
|
+
ue.Metadata_ClearAll();
|
|
45
|
+
const dcmtGetHistory = await ue.GetChronologyAsync();
|
|
46
|
+
if (dcmtGetHistory && dcmtGetHistory.dtdResult) {
|
|
47
|
+
const data = associateColumnsToRows(dcmtGetHistory.dtdResult.columns ?? [], dcmtGetHistory.dtdResult.rows ?? []);
|
|
48
|
+
const historyFileItems = data.map((row) => {
|
|
49
|
+
const updaterID = Number(row.UpdaterID);
|
|
50
|
+
const user = getParticipantById(updaterID, users);
|
|
51
|
+
return {
|
|
52
|
+
id: Number(row.DID),
|
|
53
|
+
TID: row.TID,
|
|
54
|
+
DID: row.DID,
|
|
55
|
+
FileCount: row.FileCount,
|
|
56
|
+
FileExt: row.FileExt,
|
|
57
|
+
FileSize: row.FileSize,
|
|
58
|
+
FileSizeDisplay: formatBytes(Number(row.FileSize) ?? 0),
|
|
59
|
+
UpdaterID: row.UpdaterID,
|
|
60
|
+
UpdaterDisplayName: user?.name ?? updaterID.toString(),
|
|
61
|
+
CreationTime: row.CreationTime,
|
|
62
|
+
LastUpdateTime: row.LastUpdateTime,
|
|
63
|
+
LastUpdateTimeDisplay: row.LastUpdateTime ? Globalization.getDateTimeDisplayValue(new Date(row.LastUpdateTime)) : '-',
|
|
64
|
+
Version: row.Version,
|
|
65
|
+
CheckInTime: row.CheckInTime,
|
|
66
|
+
IsLex: row.IsLex ? row.IsLex.toString() === '1' : false,
|
|
67
|
+
IsLogDel: row.IsLogDel ? row.IsLogDel.toString() === '1' : false,
|
|
68
|
+
IsMail: row.IsMail ? row.IsMail.toString() === '1' : false,
|
|
69
|
+
IsShared: row.IsShared ? row.IsShared.toString() === '1' : false,
|
|
70
|
+
IsSigned: row.IsSigned ? row.IsSigned.toString() === '1' : false,
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
return historyFileItems;
|
|
74
|
+
}
|
|
75
|
+
return [];
|
|
76
|
+
}
|
|
77
|
+
catch (error) {
|
|
78
|
+
// Show error if something goes wrong
|
|
79
|
+
TMExceptionBoxManager.show({ exception: error });
|
|
80
|
+
return [];
|
|
81
|
+
}
|
|
82
|
+
finally {
|
|
83
|
+
// Hide spinner when done
|
|
84
|
+
TMSpinner.hide();
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
// Define an asynchronous function to fetch draft history
|
|
88
|
+
const fetchDcmtHistory = async (users) => {
|
|
89
|
+
// Await the result of the getHistory() function, which likely retrieves draft history data
|
|
90
|
+
const historyFileItems = await getHistory(users);
|
|
91
|
+
// Update the state with the fetched history data
|
|
92
|
+
setDcmtHistory(historyFileItems);
|
|
93
|
+
};
|
|
94
|
+
// Load users and history data
|
|
95
|
+
const loadData = async () => {
|
|
96
|
+
const users = await UserListCacheService.GetAllAsync();
|
|
97
|
+
await fetchDcmtHistory(users ?? []);
|
|
98
|
+
};
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
loadData();
|
|
101
|
+
}, []);
|
|
102
|
+
// Handles focus change in the data grid
|
|
103
|
+
const onFocusedRowChanged = useCallback((e) => {
|
|
104
|
+
const key = e.row?.key;
|
|
105
|
+
setFocusedRowKey(key);
|
|
106
|
+
if (key !== undefined) {
|
|
107
|
+
const index = dcmtHistory.findIndex(item => item.id === key);
|
|
108
|
+
setSelectedIndex(index);
|
|
109
|
+
}
|
|
110
|
+
else {
|
|
111
|
+
setSelectedIndex(-1);
|
|
112
|
+
}
|
|
113
|
+
}, [dcmtHistory]);
|
|
114
|
+
const cellExtRender = useCallback((cellData) => {
|
|
115
|
+
const data = cellData.data;
|
|
116
|
+
const tooltipContent = (_jsxs("div", { style: { textAlign: 'left' }, children: [_jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "ID:" }), " ", data.id ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "DID:" }), " ", data.DID ?? '-'] }), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "TID:" }), " ", data.TID ?? '-'] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Author, ":"] }), " ", data.UpdaterDisplayName ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Version, ":"] }), " ", data.Version] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Size, ":"] }), " ", formatBytes(Number(data.FileSize ?? 0))] }), _jsx("hr", {}), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.CreationTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(data.CreationTime)] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.LastUpdateTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(data.LastUpdateTime)] })] }));
|
|
117
|
+
return _jsx("div", { style: { display: 'flex', justifyContent: 'center', alignItems: 'center' }, children: _jsx(TMDcmtIcon, { tid: Number(data.TID), did: Number(data.DID), fileExtension: data.FileExt, downloadMode: 'openInNewWindow', tooltipContent: tooltipContent }) });
|
|
118
|
+
}, []);
|
|
119
|
+
const onContextMenuPreparing = (e) => {
|
|
120
|
+
if (e === undefined)
|
|
121
|
+
return;
|
|
122
|
+
if (e.target === 'content') {
|
|
123
|
+
e.items = e.items || [];
|
|
124
|
+
e.items = [
|
|
125
|
+
{
|
|
126
|
+
icon: "datafield",
|
|
127
|
+
text: SDKUI_Localizator.OpenForm,
|
|
128
|
+
disabled: focusedRowKey === undefined,
|
|
129
|
+
onClick: () => setShowDcmtForm(true),
|
|
130
|
+
},
|
|
131
|
+
/* {
|
|
132
|
+
icon: "download",
|
|
133
|
+
text: 'Download',
|
|
134
|
+
tooltip: SURFER_Localizator.DownloadSelectedDraftFile,
|
|
135
|
+
disabled: focusedRowKey === undefined,
|
|
136
|
+
onClick: () => downloadFilesCallback(),
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
icon: "trash",
|
|
140
|
+
text: SDKUI_Localizator.Delete,
|
|
141
|
+
disabled: isGroupArchived || focusedRowKey === undefined,
|
|
142
|
+
onClick: deleteFilesCallback,
|
|
143
|
+
beginGroup: true
|
|
144
|
+
}, */
|
|
145
|
+
{
|
|
146
|
+
icon: showSearch ? "eyeclose" : "eyeopen",
|
|
147
|
+
onClick: () => setShowSearch(prevShowSearch => !prevShowSearch),
|
|
148
|
+
text: showSearch ? SDKUI_Localizator.HideSearch : SDKUI_Localizator.ShowSearch,
|
|
149
|
+
visible: true,
|
|
150
|
+
disabled: false,
|
|
151
|
+
beginGroup: true
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
icon: showId ? 'eyeclose' : 'eyeopen',
|
|
155
|
+
onClick: () => setShowId(prevShowId => !prevShowId),
|
|
156
|
+
text: showId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show,
|
|
157
|
+
visible: true,
|
|
158
|
+
disabled: false,
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
icon: "refresh",
|
|
162
|
+
text: SDKUI_Localizator.Refresh,
|
|
163
|
+
disabled: false,
|
|
164
|
+
onClick: loadData,
|
|
165
|
+
},
|
|
166
|
+
];
|
|
167
|
+
}
|
|
168
|
+
};
|
|
169
|
+
// Handler for double-click cell event
|
|
170
|
+
const onCellDblClick = useCallback((e) => {
|
|
171
|
+
if (e.column.dataField === "FileExt")
|
|
172
|
+
return;
|
|
173
|
+
setFocusedRowKey(e.data.id);
|
|
174
|
+
setShowDcmtForm(true);
|
|
175
|
+
}, []);
|
|
176
|
+
// Checks if navigation is possible in the given direction
|
|
177
|
+
const canNavigateHandler = (dir) => {
|
|
178
|
+
if (focusedRowKey === undefined)
|
|
179
|
+
return false;
|
|
180
|
+
const index = dcmtHistory.findIndex(item => item.id === focusedRowKey);
|
|
181
|
+
if (index === -1)
|
|
182
|
+
return false;
|
|
183
|
+
return dir === 'next' ? index < dcmtHistory.length - 1 : index > 0;
|
|
184
|
+
};
|
|
185
|
+
// Navigates to the next or previous item in the draft history, if possible.
|
|
186
|
+
const onNavigateHandler = (dir) => {
|
|
187
|
+
if (selectedIndex === -1)
|
|
188
|
+
return;
|
|
189
|
+
let newIndex = selectedIndex;
|
|
190
|
+
if (dir === 'next' && selectedIndex < dcmtHistory.length - 1) {
|
|
191
|
+
newIndex = selectedIndex + 1;
|
|
192
|
+
}
|
|
193
|
+
else if (dir === 'prev' && selectedIndex > 0) {
|
|
194
|
+
newIndex = selectedIndex - 1;
|
|
195
|
+
}
|
|
196
|
+
const newFocusedId = dcmtHistory[newIndex]?.id;
|
|
197
|
+
if (newFocusedId !== undefined) {
|
|
198
|
+
setFocusedRowKey(newFocusedId);
|
|
199
|
+
setSelectedIndex(newIndex);
|
|
200
|
+
}
|
|
201
|
+
};
|
|
202
|
+
const dataColumns = useMemo(() => {
|
|
203
|
+
return ([
|
|
204
|
+
{ dataField: "id", caption: "ID", dataType: 'string', visible: showId },
|
|
205
|
+
{ dataField: "FileExt", caption: "", cellRender: cellExtRender },
|
|
206
|
+
{ dataField: "Version", caption: "V." },
|
|
207
|
+
{ dataField: "FileSizeDisplay", caption: SDKUI_Localizator.Size },
|
|
208
|
+
{ dataField: "UpdaterDisplayName", caption: SDKUI_Localizator.Author },
|
|
209
|
+
{ dataField: "LastUpdateTimeDisplay", caption: SDKUI_Localizator.LastUpdateTime },
|
|
210
|
+
]);
|
|
211
|
+
}, [showId]);
|
|
212
|
+
return _jsxs(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(TMDataGrid, { dataSource: dcmtHistory, dataColumns: dataColumns, focusedRowKey: focusedRowKey, selection: selection, onContextMenuPreparing: onContextMenuPreparing, onFocusedRowChanged: onFocusedRowChanged, onCellDblClick: onCellDblClick, noDataText: SDKUI_Localizator.NoDataToDisplay, showSearchPanel: showSearch }), (showDcmtForm && selectedDcmt !== undefined) &&
|
|
213
|
+
_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 })] });
|
|
214
|
+
};
|
|
215
|
+
export default TMViewHistoryDcmtForm;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useEffect, useRef, useState } from 'react';
|
|
3
3
|
import { ObjectClasses, TaskDescriptor, Priorities, PdGs, SDK_Globals, UserListCacheService, SDK_Localizator, Task_States } from '@topconsultnpm/sdk-ts';
|
|
4
4
|
import { areDifferentIDs, formatDate, getOriginLabel, getPriorityLocalizatorValue, getPriorityLocalizatorValues, getStatusLocalizatorValues, gotoPDGExtendedLabel, taskValidatorAsync } from './TMTasksUtils';
|
|
5
|
-
import ScrollView from 'devextreme-react/
|
|
5
|
+
import ScrollView from 'devextreme-react/scroll-view';
|
|
6
6
|
import TMLayoutContainer from '../../base/TMLayout';
|
|
7
7
|
import { FormModes } from '../../../ts';
|
|
8
8
|
import { useWorkflowApprove } from '../../../hooks/useWorkflowApprove';
|
|
@@ -21,42 +21,42 @@ import TMDcmtForm from '../documents/TMDcmtForm';
|
|
|
21
21
|
import styled from 'styled-components';
|
|
22
22
|
import { TMColors } from '../../../utils/theme';
|
|
23
23
|
import { renderContextBlock } from './TMTasksUtilsView';
|
|
24
|
-
const ResponseCommentWrapper = styled.div `
|
|
25
|
-
position: relative;
|
|
26
|
-
width: 100%;
|
|
24
|
+
const ResponseCommentWrapper = styled.div `
|
|
25
|
+
position: relative;
|
|
26
|
+
width: 100%;
|
|
27
27
|
`;
|
|
28
|
-
const ResponseCommentLabel = styled.label `
|
|
29
|
-
position: absolute;
|
|
30
|
-
top: -8px;
|
|
31
|
-
left: 12px;
|
|
32
|
-
background-color: white;
|
|
33
|
-
padding: 0 4px;
|
|
34
|
-
font-size: 0.9rem;
|
|
35
|
-
color: rgb(80,80,80);
|
|
36
|
-
display: inline-flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
gap: 4px;
|
|
28
|
+
const ResponseCommentLabel = styled.label `
|
|
29
|
+
position: absolute;
|
|
30
|
+
top: -8px;
|
|
31
|
+
left: 12px;
|
|
32
|
+
background-color: white;
|
|
33
|
+
padding: 0 4px;
|
|
34
|
+
font-size: 0.9rem;
|
|
35
|
+
color: rgb(80,80,80);
|
|
36
|
+
display: inline-flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
gap: 4px;
|
|
39
39
|
`;
|
|
40
40
|
const ResponseCommentTextArea = styled.textarea.attrs({
|
|
41
41
|
maxLength: 500,
|
|
42
|
-
}) `
|
|
43
|
-
width: 100%;
|
|
44
|
-
height: 100px;
|
|
45
|
-
border: 1px solid ${props => props.$isValid ? (props.$isModifiedWhen ? "#E29000" : '#b4b4b4') : TMColors.error};
|
|
46
|
-
border-radius: 10px;
|
|
47
|
-
padding: 10px;
|
|
48
|
-
resize: none;
|
|
49
|
-
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
50
|
-
&:focus {
|
|
51
|
-
outline: none;
|
|
52
|
-
border-bottom: 4px solid ${props => props.$isValid ? TMColors.primaryColor : TMColors.error};
|
|
53
|
-
}
|
|
42
|
+
}) `
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100px;
|
|
45
|
+
border: 1px solid ${props => props.$isValid ? (props.$isModifiedWhen ? "#E29000" : '#b4b4b4') : TMColors.error};
|
|
46
|
+
border-radius: 10px;
|
|
47
|
+
padding: 10px;
|
|
48
|
+
resize: none;
|
|
49
|
+
cursor: ${props => props.disabled ? 'not-allowed' : 'text'};
|
|
50
|
+
&:focus {
|
|
51
|
+
outline: none;
|
|
52
|
+
border-bottom: 4px solid ${props => props.$isValid ? TMColors.primaryColor : TMColors.error};
|
|
53
|
+
}
|
|
54
54
|
`;
|
|
55
|
-
const ResponseCommentCharacterCounter = styled.div `
|
|
56
|
-
text-align: right;
|
|
57
|
-
font-size: 0.8rem;
|
|
58
|
-
color: #6c757d;
|
|
59
|
-
margin-top: 4px;
|
|
55
|
+
const ResponseCommentCharacterCounter = styled.div `
|
|
56
|
+
text-align: right;
|
|
57
|
+
font-size: 0.8rem;
|
|
58
|
+
color: #6c757d;
|
|
59
|
+
margin-top: 4px;
|
|
60
60
|
`;
|
|
61
61
|
const TMTaskForm = (props) => {
|
|
62
62
|
// Custom hook to manage workflow approval data
|
|
@@ -81,6 +81,11 @@ const TMTaskForm = (props) => {
|
|
|
81
81
|
else if (taskContext?.workingGroup) {
|
|
82
82
|
task.pdG = PdGs.WG;
|
|
83
83
|
task.iD1 = taskContext.workingGroup.id;
|
|
84
|
+
if (currentTask) {
|
|
85
|
+
task.name = currentTask.name;
|
|
86
|
+
task.toID = 0;
|
|
87
|
+
task.startTime = new Date();
|
|
88
|
+
}
|
|
84
89
|
}
|
|
85
90
|
else if (taskContext?.dossier) {
|
|
86
91
|
task.pdG = PdGs.CF;
|
|
@@ -158,7 +163,7 @@ const TMTaskForm = (props) => {
|
|
|
158
163
|
newTaskDescriptor.isNew = 0;
|
|
159
164
|
editTaskCallback(newTaskDescriptor);
|
|
160
165
|
}
|
|
161
|
-
else if (formDataOrig && formMode === FormModes.Create && taskContext?.dossier && currentTask) {
|
|
166
|
+
else if (formDataOrig && formMode === FormModes.Create && taskContext?.dossier && taskContext?.dossier?.origin === 'DossierAction' && currentTask) {
|
|
162
167
|
setFieldsReadOnly({
|
|
163
168
|
name: true,
|
|
164
169
|
description: false,
|
|
@@ -357,6 +362,7 @@ const TMTaskForm = (props) => {
|
|
|
357
362
|
}, children: _jsx(TMTooltip, { content: formData.pdG !== PdGs.None ? gotoPDGExtendedLabel(true, formData.pdG, formData.iD1Name) : '', children: _jsxs("span", { onClick: () => formData.pdG !== PdGs.None ? gotoPDGExtendedLabelClickCallback() : null, style: {
|
|
358
363
|
display: 'inline-flex',
|
|
359
364
|
alignItems: 'center',
|
|
365
|
+
lineHeight: 1,
|
|
360
366
|
padding: '6px 10px',
|
|
361
367
|
borderRadius: 8,
|
|
362
368
|
backgroundColor: formData.pdG !== PdGs.None ? '#f5f5f7' : 'transparent',
|
|
@@ -371,13 +377,13 @@ const TMTaskForm = (props) => {
|
|
|
371
377
|
}, onMouseLeave: e => {
|
|
372
378
|
if (formData.pdG !== PdGs.None)
|
|
373
379
|
e.currentTarget.style.backgroundColor = '#f5f5f7';
|
|
374
|
-
}, children: [getPdgsIconMap().get(formData.pdG), _jsx("span", { children: getOriginLabel(formData.pdG, formData.iD1Name) })] }) }) }) }) })), _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 10 }, children: children }), children: _jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMTextBox, { label: SDKUI_Localizator.Name, value: formData?.name ?? '', readOnly: fieldsReadOnly.name, autoFocus: true, maxLength: 100, isModifiedWhen: formData?.name !== formDataOrig?.name, onValueChanged: (e) => { setFormData({ ...formData ?? {}, name: e.target.value }); }, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.Name) }) }) }), _jsx("div", { style: { width: '100%' }, children: _jsx(TMTextArea, { label: SDKUI_Localizator.Description, value: formData?.description ?? '', maxLength: 200, readOnly: fieldsReadOnly.description, isModifiedWhen: formData?.description !== formDataOrig?.description, onValueChanged: (e) => { setFormData({ ...formData ?? {}, description: e.target.value }); }, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.Description), resize: false }) }), _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 10 }, children: children }), children: (formMode === FormModes.Create || !areDifferentIDs(formDataOrig?.fromID, SDK_Globals.tmSession?.SessionDescr?.userID)) ?
|
|
375
|
-
_jsx("div", { id: "assignedToAnotherUserField", style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMUserChooser, { dataSource: usersList ?? undefined, allowMultipleSelection: false, label: SDKUI_Localizator.
|
|
380
|
+
}, children: [_jsx("span", { style: { display: 'flex', alignItems: 'center' }, children: getPdgsIconMap().get(formData.pdG) }), _jsx("span", { children: getOriginLabel(formData.pdG, formData.iD1Name) })] }) }) }) }) })), _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 10 }, children: children }), children: _jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMTextBox, { label: SDKUI_Localizator.Name, value: formData?.name ?? '', readOnly: fieldsReadOnly.name, autoFocus: true, maxLength: 100, isModifiedWhen: formData?.name !== formDataOrig?.name, onValueChanged: (e) => { setFormData({ ...formData ?? {}, name: e.target.value }); }, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.Name) }) }) }), _jsx("div", { style: { width: '100%' }, children: _jsx(TMTextArea, { label: SDKUI_Localizator.Description, value: formData?.description ?? '', maxLength: 200, readOnly: fieldsReadOnly.description, isModifiedWhen: formData?.description !== formDataOrig?.description, onValueChanged: (e) => { setFormData({ ...formData ?? {}, description: e.target.value }); }, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.Description), resize: false }) }), _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 10 }, children: children }), children: (formMode === FormModes.Create || !areDifferentIDs(formDataOrig?.fromID, SDK_Globals.tmSession?.SessionDescr?.userID)) ?
|
|
381
|
+
_jsx("div", { id: "assignedToAnotherUserField", style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMUserChooser, { dataSource: usersList ?? undefined, allowShowAllUsers: !!taskContext?.dossier, allowMultipleSelection: false, label: SDKUI_Localizator.AssignedTo_Female, readOnly: fieldsReadOnly.assignedTO, values: formData?.toID ? [formData?.toID] : [], isModifiedWhen: formData?.toID !== formDataOrig?.toID, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.AssignedTo_Female), onValueChanged: (newValue) => {
|
|
376
382
|
if (newValue === undefined)
|
|
377
383
|
return;
|
|
378
384
|
setFormData({ ...formData ?? {}, toID: newValue[0] });
|
|
379
385
|
} }) })
|
|
380
|
-
: formMode === FormModes.Update && _jsxs(_Fragment, { children: [areDifferentIDs(formDataOrig?.fromID, SDK_Globals.tmSession?.SessionDescr?.userID) && _jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMTextBox, { label: SDKUI_Localizator.AssignedBy, value: formData?.fromName ?? '', readOnly: true }) }), areDifferentIDs(formDataOrig?.toID, SDK_Globals.tmSession?.SessionDescr?.userID) && _jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMTextBox, { label: SDKUI_Localizator.
|
|
386
|
+
: formMode === FormModes.Update && _jsxs(_Fragment, { children: [areDifferentIDs(formDataOrig?.fromID, SDK_Globals.tmSession?.SessionDescr?.userID) && _jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMTextBox, { label: SDKUI_Localizator.AssignedBy, value: formData?.fromName ?? '', readOnly: true }) }), areDifferentIDs(formDataOrig?.toID, SDK_Globals.tmSession?.SessionDescr?.userID) && _jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMTextBox, { label: SDKUI_Localizator.AssignedTo_Female, value: formData?.toName ?? '', readOnly: true }) })] }) }), _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 10 }, children: children }), children: _jsxs(_Fragment, { children: [_jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: _jsx(TMDropDown, { label: SDKUI_Localizator.Status, value: formData?.state, dataSource: getStatusLocalizatorValues(), isModifiedWhen: formData?.state !== formDataOrig?.state, onValueChanged: onStatusValueChange, readOnly: fieldsReadOnly.status }) }), _jsx("div", { style: { width: isMobile ? '100%' : '50%' }, children: !fieldsReadOnly.priority ? _jsx(TMDropDown, { label: SDKUI_Localizator.Priority, value: formData?.priority, dataSource: getPriorityLocalizatorValues(), isModifiedWhen: formData?.priority !== formDataOrig?.priority, onValueChanged: onPriorityValueChange })
|
|
381
387
|
: _jsx(TMTextBox, { label: SDKUI_Localizator.Priority, value: getPriorityLocalizatorValue(formData?.priority ?? Priorities.Low), readOnly: true }) })] }) }), _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 10 }, children: children }), children: _jsxs(_Fragment, { children: [_jsx("div", { style: { width: isMobile ? '100%' : '50%', marginTop: 10 }, children: !fieldsReadOnly.startDate ? _jsx(TMDateBox, { id: "start-date", resetTimeToZeroOnKeyPress: false, label: SDKUI_Localizator.StartDate, dateDisplayType: DateDisplayTypes.DateTime, value: formData?.startTime, isModifiedWhen: formData?.startTime !== formDataOrig?.startTime, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.ErrorStartEndDate), onContentReady: handleStartTimeContentReady, onValueChange: (value) => { setFormData({ ...formData ?? {}, startTime: value }); }, showClearButton: true }) : _jsx(TMTextBox, { label: SDKUI_Localizator.StartDate, value: formData?.startTime ? formatDate(formData?.startTime) : '', readOnly: true }) }), _jsx("div", { style: { width: isMobile ? '100%' : '50%', marginTop: 10 }, children: !fieldsReadOnly.startDate ? _jsx(TMDateBox, { id: "end-date", resetTimeToZeroOnKeyPress: false, label: SDKUI_Localizator.Expiration, dateDisplayType: DateDisplayTypes.DateTime, value: formData?.endTime, isModifiedWhen: formData?.endTime !== formDataOrig?.endTime, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.ErrorStartEndDate || o.PropertyName === SDKUI_Localizator.ErrorEndRemDate), onContentReady: handleEndTimeContentReady, onValueChange: (value) => { setFormData({ ...formData ?? {}, endTime: value }); }, showClearButton: true, readOnly: fieldsReadOnly.endDate }) : _jsx(TMTextBox, { label: SDKUI_Localizator.Expiration, value: formData?.endTime ? formatDate(formData?.endTime) : '', readOnly: true }) })] }) }), _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 3 }, children: children }), children: _jsx("div", { style: { width: isMobile ? '100%' : '50%', marginTop: 10 }, children: _jsx(TMDateBox, { id: "alert-time", resetTimeToZeroOnKeyPress: false, label: SDKUI_Localizator.Reminder, dateDisplayType: DateDisplayTypes.DateTime, value: formData?.remTime ?? undefined, isModifiedWhen: formData?.remTime !== formDataOrig?.remTime, validationItems: validationItems?.filter(o => o.PropertyName === SDKUI_Localizator.ErrorEndRemDate), onValueChange: (value) => { setFormData({ ...formData ?? {}, remTime: value }); }, showClearButton: true, readOnly: fieldsReadOnly.remTime }) }) }), (formData?.state && [Task_States.Completed, Task_States.Waiting, Task_States.Deferred].includes(formData?.state) ||
|
|
382
388
|
(formData?.response ?? "") !== "") && _jsx(TMConditionalWrapper, { condition: !isMobile, wrapper: children => _jsx("div", { style: { display: 'flex', flexDirection: 'row', width: '100%', gap: 3 }, children: children }), children: _jsx("div", { style: { width: isMobile ? '100%' : '50%', marginTop: 10 }, children: _jsxs(ResponseCommentWrapper, { children: [_jsx(ResponseCommentTextArea, { id: "responseId", name: "response", "$isValid": true, value: formData?.response ?? '', onChange: onAnswerChange, "$isModifiedWhen": formData?.response !== formDataOrig?.response, disabled: (formData?.response ?? "") !== "" &&
|
|
383
389
|
(formData?.state && ![Task_States.Completed, Task_States.Waiting, Task_States.Deferred].includes(formData?.state)) }), _jsxs(ResponseCommentLabel, { htmlFor: "responseId", children: [SDKUI_Localizator.Answer, _jsxs(TMTooltip, { content: SDKUI_Localizator.AnswerTooltip, children: [" ", _jsx("i", { className: 'dx-icon-info' }), " "] })] }), _jsx(ResponseCommentCharacterCounter, { children: `${500 - (formData?.response ?? '').length} ${SDKUI_Localizator.CharactersRemaining}` })] }) }) })] }) }) }), (showDcmtForm && formData?.iD1 && formData?.iD2) &&
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React, { useCallback, useEffect, useState } from "react";
|
|
3
3
|
import ArrayStore from "devextreme/data/array_store";
|
|
4
|
-
import Scheduler from "devextreme-react/
|
|
4
|
+
import Scheduler from "devextreme-react/scheduler";
|
|
5
5
|
import { calculateNumberOfDays, highlightTaskText, priorityLegend, renderTaskIcons } from "./TMTasksUtilsView";
|
|
6
6
|
import { Priorities, Task_States } from "@topconsultnpm/sdk-ts";
|
|
7
7
|
import { checkIfNew, convertToSchedulerAppointments, findTasksBySearch, formatDate, getPriorityColor, getStatusLocalizatorValue } from "./TMTasksUtils";
|
|
8
|
-
import ScrollView from "devextreme-react/
|
|
9
|
-
import LoadIndicator from "devextreme-react/
|
|
8
|
+
import ScrollView from "devextreme-react/scroll-view";
|
|
9
|
+
import LoadIndicator from "devextreme-react/load-indicator";
|
|
10
10
|
import { FormModes } from "../../../ts";
|
|
11
11
|
import { SDKUI_Localizator } from "../../../helper";
|
|
12
12
|
import TMCustomSearchBar from "../../../helper/TMCustomSearchBar";
|
|
@@ -55,7 +55,7 @@ const TMTasksAgenda = React.memo((props) => {
|
|
|
55
55
|
let bgColor = 'transparent';
|
|
56
56
|
if (priority)
|
|
57
57
|
bgColor = getPriorityColor(priority);
|
|
58
|
-
return _jsx("div", { style: { width: "100%", height: "100%", display: 'flex', flexDirection: 'column', justifyContent: 'flex-start', alignItems: 'flex-end', backgroundColor: bgColor }, children: _jsx(ScrollView, { width: "100%", height: "100%", direction: "both", useNative: true, children: _jsxs("div", { style: { display: 'flex', justifyContent: 'space-between', width: '100%', fontWeight: isNew ? 'bold' : 'normal' }, children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start' }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center' }, children: [showId && _jsxs("span", { children: [highlightTaskText(currentTask.id.toString(), searchText, currentTask.id), " - "] }), renderTaskIcons({ stateLabel, stateTooltipLabel, pdg, ID1Name, endTime, remTime, isNew, numberOfDays }), "\u00A0", _jsx("span", { style: { fontWeight: "bold" }, children: highlightTaskText(currentTask.name ?? '', searchText, currentTask.id) })] }), _jsxs("div", { children: [startTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.StartDate, ": ", formatDate(startTime), " - \u00A0"] })), endTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.Expiration, ": ", formatDate(endTime)] }))] })] }), fromCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.AssignedBy, ":"] }), "\u00A0", _jsxs("div", { children: [highlightTaskText(currentTask.fromName ?? '', searchText, currentTask.id), (showId && currentTask.fromID) && _jsxs("span", { children: ["(", currentTask.fromID, ")"] })] })] }), toCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.
|
|
58
|
+
return _jsx("div", { style: { width: "100%", height: "100%", display: 'flex', flexDirection: 'column', justifyContent: 'flex-start', alignItems: 'flex-end', backgroundColor: bgColor }, children: _jsx(ScrollView, { width: "100%", height: "100%", direction: "both", useNative: true, children: _jsxs("div", { style: { display: 'flex', justifyContent: 'space-between', width: '100%', fontWeight: isNew ? 'bold' : 'normal' }, children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start' }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center' }, children: [showId && _jsxs("span", { children: [highlightTaskText(currentTask.id.toString(), searchText, currentTask.id), " - "] }), renderTaskIcons({ stateLabel, stateTooltipLabel, pdg, ID1Name, endTime, remTime, isNew, numberOfDays }), "\u00A0", _jsx("span", { style: { fontWeight: "bold" }, children: highlightTaskText(currentTask.name ?? '', searchText, currentTask.id) })] }), _jsxs("div", { children: [startTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.StartDate, ": ", formatDate(startTime), " - \u00A0"] })), endTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.Expiration, ": ", formatDate(endTime)] }))] })] }), fromCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.AssignedBy, ":"] }), "\u00A0", _jsxs("div", { children: [highlightTaskText(currentTask.fromName ?? '', searchText, currentTask.id), (showId && currentTask.fromID) && _jsxs("span", { children: ["(", currentTask.fromID, ")"] })] })] }), toCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.AssignedTo_Female, ":"] }), "\u00A0", _jsxs("div", { children: [highlightTaskText(currentTask.toName ?? '', searchText, currentTask.id), (showId && currentTask.toID) && _jsxs("span", { children: ["(", currentTask.toID, ")"] })] })] })] }) }) });
|
|
59
59
|
}, [visualizedTasks, searchText]);
|
|
60
60
|
// handle appointment click handler
|
|
61
61
|
const handleAppointmentClick = useCallback((e) => {
|
|
@@ -5,7 +5,7 @@ import { Priorities, Task_States } from "@topconsultnpm/sdk-ts";
|
|
|
5
5
|
import Scheduler, { Resource } from 'devextreme-react/scheduler';
|
|
6
6
|
import { calculateNumberOfDays, highlightTaskText, priorityLegend, renderTaskIcons, taskStateIconMap, TMActionCalendar } from './TMTasksUtilsView';
|
|
7
7
|
import { checkIfNew, convertToSchedulerAppointments, findTasksBySearch, formatDate, getPriorityColor, getPriorityLocalizatorValue, getStatusLocalizatorValue, prioritiesResourceData } from './TMTasksUtils';
|
|
8
|
-
import LoadIndicator from 'devextreme-react/
|
|
8
|
+
import LoadIndicator from 'devextreme-react/load-indicator';
|
|
9
9
|
import { FormModes } from '../../../ts';
|
|
10
10
|
import { SDKUI_Localizator } from '../../../helper';
|
|
11
11
|
import TMTooltip from '../../base/TMTooltip';
|
|
@@ -144,7 +144,7 @@ const TMTasksCalendar = (props) => {
|
|
|
144
144
|
const ID1Name = currentTask.iD1Name || '';
|
|
145
145
|
const isNew = checkIfNew(currentTask.fromID, currentTask.isNew);
|
|
146
146
|
const numberOfDays = calculateNumberOfDays(startTime, endTime);
|
|
147
|
-
return _jsxs("div", { className: "dx-tooltip-appointment-item", onClick: (e) => { e.preventDefault(); e.stopPropagation(); }, style: { backgroundColor: getPriorityColor(currentTask.priority ?? Priorities.None) }, children: [_jsxs("div", { className: "dx-tooltip-appointment-item-content", style: { width: '70%', cursor: 'auto' }, children: [_jsx("div", { style: { display: "flex" }, children: renderTaskIcons({ stateLabel, stateTooltipLabel, pdg, ID1Name, endTime, remTime, isNew, numberOfDays }) }), _jsxs("div", { className: "dx-tooltip-appointment-item-content-subject", children: [" ", showId && _jsxs("span", { children: [highlightTaskText(appointmentData.id.toString(), searchText, appointmentData.id), " - "] }), " ", highlightTaskText(appointmentData.text ?? '', searchText, currentTask.id)] }), _jsx("div", { className: "dx-tooltip-appointment-item-content-date", children: startTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.StartDate, ": ", formatDate(startTime)] })) }), _jsx("div", { className: "dx-tooltip-appointment-item-content-date", children: endTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.Expiration, ": ", formatDate(endTime)] })) }), _jsxs("div", { className: "dx-tooltip-appointment-item-content-subject", children: [SDKUI_Localizator.Priority, ": ", highlightTaskText(priority, searchText, currentTask.id)] }), _jsxs("div", { className: "dx-tooltip-appointment-item-content-subject", children: [fromCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.AssignedBy, ":"] }), "\u00A0", _jsxs("div", { children: [highlightTaskText(currentTask.fromName ?? '', searchText, currentTask.id), (showId && currentTask.fromID) && _jsxs("span", { children: ["(", currentTask.fromID, ")"] })] })] }), toCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.
|
|
147
|
+
return _jsxs("div", { className: "dx-tooltip-appointment-item", onClick: (e) => { e.preventDefault(); e.stopPropagation(); }, style: { backgroundColor: getPriorityColor(currentTask.priority ?? Priorities.None) }, children: [_jsxs("div", { className: "dx-tooltip-appointment-item-content", style: { width: '70%', cursor: 'auto' }, children: [_jsx("div", { style: { display: "flex" }, children: renderTaskIcons({ stateLabel, stateTooltipLabel, pdg, ID1Name, endTime, remTime, isNew, numberOfDays }) }), _jsxs("div", { className: "dx-tooltip-appointment-item-content-subject", children: [" ", showId && _jsxs("span", { children: [highlightTaskText(appointmentData.id.toString(), searchText, appointmentData.id), " - "] }), " ", highlightTaskText(appointmentData.text ?? '', searchText, currentTask.id)] }), _jsx("div", { className: "dx-tooltip-appointment-item-content-date", children: startTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.StartDate, ": ", formatDate(startTime)] })) }), _jsx("div", { className: "dx-tooltip-appointment-item-content-date", children: endTime !== undefined && (_jsxs("span", { children: [SDKUI_Localizator.Expiration, ": ", formatDate(endTime)] })) }), _jsxs("div", { className: "dx-tooltip-appointment-item-content-subject", children: [SDKUI_Localizator.Priority, ": ", highlightTaskText(priority, searchText, currentTask.id)] }), _jsxs("div", { className: "dx-tooltip-appointment-item-content-subject", children: [fromCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.AssignedBy, ":"] }), "\u00A0", _jsxs("div", { children: [highlightTaskText(currentTask.fromName ?? '', searchText, currentTask.id), (showId && currentTask.fromID) && _jsxs("span", { children: ["(", currentTask.fromID, ")"] })] })] }), toCell && _jsxs("div", { style: { display: 'flex', alignItems: 'center', alignSelf: 'flex-end' }, children: [_jsxs("span", { children: [SDKUI_Localizator.AssignedTo_Female, ":"] }), "\u00A0", _jsxs("div", { children: [highlightTaskText(currentTask.toName ?? '', searchText, currentTask.id), (showId && currentTask.toID) && _jsxs("span", { children: ["(", currentTask.toID, ")"] })] })] })] })] }), _jsx(TMActionCalendar, { currentTask: currentTask, openTaskForm: openTaskForm, onDeleteCallback: onDeleteCallback })] });
|
|
148
148
|
};
|
|
149
149
|
const onCurrentCalendarDateChange = (value) => {
|
|
150
150
|
// Exit early if it's not a valid Date
|
|
@@ -3,7 +3,7 @@ import styled from 'styled-components';
|
|
|
3
3
|
import { treeFilterDataSource } from './TMTasksUtilsView';
|
|
4
4
|
import { FilterCategoryId, TaskView } from './TMTasksUtils';
|
|
5
5
|
import { useEffect, useRef, useState } from 'react';
|
|
6
|
-
import ScrollView from 'devextreme-react/
|
|
6
|
+
import ScrollView from 'devextreme-react/scroll-view';
|
|
7
7
|
import TMTooltip from '../../base/TMTooltip';
|
|
8
8
|
import { SDKUI_Localizator } from '../../../helper';
|
|
9
9
|
import TMDropDown from '../../editors/TMDropDown';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Appointment } from 'devextreme/ui/scheduler';
|
|
2
|
-
import { ContextMenuTypes } from 'devextreme-react/
|
|
2
|
+
import { ContextMenuTypes } from 'devextreme-react/context-menu';
|
|
3
3
|
import { TaskDescriptor, Task_States, PdGs, Priorities, ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
4
4
|
import { FormModes, TaskContext } from '../../../ts';
|
|
5
5
|
import { TMDataGridContextMenuItem } from '../../base/TMDataGrid';
|
|
@@ -61,6 +61,7 @@ export declare const getTaskAssignedToMe: (tasks: Array<TaskDescriptor>) => Arra
|
|
|
61
61
|
export declare const getTaskNotPersonalAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
62
62
|
export declare const getTaskPersonalAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
63
63
|
export declare const getTaskAssignedByMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
64
|
+
export declare const getTaskNotCompletedAssignedByMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
64
65
|
export declare const getHeaderStatusFilterConfig: () => {
|
|
65
66
|
enabled: boolean;
|
|
66
67
|
dataSource: {
|