@topconsultnpm/sdkui-react 6.17.0-test10
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 -0
- package/lib/assets/IconsS4t/aggiorna.svg +18 -0
- package/lib/assets/IconsS4t/bookmark.svg +42 -0
- package/lib/assets/IconsS4t/cancella.svg +15 -0
- package/lib/assets/IconsS4t/check-box.svg +19 -0
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/down.svg +28 -0
- package/lib/assets/IconsS4t/edit-file.svg +19 -0
- package/lib/assets/IconsS4t/edita.svg +32 -0
- package/lib/assets/IconsS4t/firma.svg +19 -0
- package/lib/assets/IconsS4t/icona_download.svg +16 -0
- package/lib/assets/IconsS4t/info.svg +51 -0
- package/lib/assets/IconsS4t/left.svg +20 -0
- package/lib/assets/IconsS4t/line.svg +40 -0
- package/lib/assets/IconsS4t/more.svg +19 -0
- package/lib/assets/IconsS4t/new-signature.svg +1 -0
- package/lib/assets/IconsS4t/plus.svg +23 -0
- package/lib/assets/IconsS4t/printer.svg +49 -0
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -0
- package/lib/assets/IconsS4t/rectangle.svg +41 -0
- package/lib/assets/IconsS4t/redo.svg +19 -0
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -0
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/right.svg +22 -0
- package/lib/assets/IconsS4t/searchbar.svg +21 -0
- package/lib/assets/IconsS4t/text-box.svg +36 -0
- package/lib/assets/IconsS4t/tick.svg +8 -0
- package/lib/assets/IconsS4t/trash-white.svg +11 -0
- package/lib/assets/IconsS4t/trash.svg +1 -0
- package/lib/assets/IconsS4t/undo.svg +19 -0
- package/lib/assets/IconsS4t/up.svg +32 -0
- package/lib/assets/IconsS4t/video-streaming.svg +2 -0
- package/lib/assets/IconsS4t/zoom-in.svg +58 -0
- package/lib/assets/IconsS4t/zoom-out.svg +56 -0
- package/lib/assets/ImageLibrary/arrow_001.png +0 -0
- package/lib/assets/ImageLibrary/arrow_002.png +0 -0
- package/lib/assets/ImageLibrary/arrow_003.png +0 -0
- package/lib/assets/ImageLibrary/arrow_004.png +0 -0
- package/lib/assets/ImageLibrary/arrow_005.png +0 -0
- package/lib/assets/ImageLibrary/arrow_006.png +0 -0
- package/lib/assets/ImageLibrary/arrow_007.png +0 -0
- package/lib/assets/ImageLibrary/arrow_008.png +0 -0
- package/lib/assets/ImageLibrary/arrow_009.png +0 -0
- package/lib/assets/ImageLibrary/arrow_010.png +0 -0
- package/lib/assets/ImageLibrary/arrow_011.png +0 -0
- package/lib/assets/ImageLibrary/arrow_012.png +0 -0
- package/lib/assets/ImageLibrary/book_001.png +0 -0
- package/lib/assets/ImageLibrary/book_002.png +0 -0
- package/lib/assets/ImageLibrary/book_003.png +0 -0
- package/lib/assets/ImageLibrary/book_004.png +0 -0
- package/lib/assets/ImageLibrary/book_005.png +0 -0
- package/lib/assets/ImageLibrary/book_006.png +0 -0
- package/lib/assets/ImageLibrary/book_007.png +0 -0
- package/lib/assets/ImageLibrary/clock_001.png +0 -0
- package/lib/assets/ImageLibrary/clock_002.png +0 -0
- package/lib/assets/ImageLibrary/clock_003.png +0 -0
- package/lib/assets/ImageLibrary/cube_001.png +0 -0
- package/lib/assets/ImageLibrary/cube_002.png +0 -0
- package/lib/assets/ImageLibrary/cube_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_001.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_002.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_004.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_005.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_006.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_007.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_008.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_001.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_002.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_003.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_001.png +0 -0
- package/lib/assets/ImageLibrary/fld_002.png +0 -0
- package/lib/assets/ImageLibrary/fld_003.png +0 -0
- package/lib/assets/ImageLibrary/fld_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_005.png +0 -0
- package/lib/assets/ImageLibrary/fld_006.png +0 -0
- package/lib/assets/ImageLibrary/fld_007.png +0 -0
- package/lib/assets/ImageLibrary/fld_008.png +0 -0
- package/lib/assets/ImageLibrary/fld_009.png +0 -0
- package/lib/assets/ImageLibrary/fld_010.png +0 -0
- package/lib/assets/ImageLibrary/fld_011.png +0 -0
- package/lib/assets/ImageLibrary/fld_012.png +0 -0
- package/lib/assets/ImageLibrary/fld_013.png +0 -0
- package/lib/assets/ImageLibrary/fld_014.png +0 -0
- package/lib/assets/ImageLibrary/fld_015.png +0 -0
- package/lib/assets/ImageLibrary/fld_016.png +0 -0
- package/lib/assets/ImageLibrary/fld_017.png +0 -0
- package/lib/assets/ImageLibrary/fld_018.png +0 -0
- package/lib/assets/ImageLibrary/fld_019.png +0 -0
- package/lib/assets/ImageLibrary/fld_020.png +0 -0
- package/lib/assets/ImageLibrary/fld_021.png +0 -0
- package/lib/assets/ImageLibrary/fld_022.png +0 -0
- package/lib/assets/ImageLibrary/fld_023.png +0 -0
- package/lib/assets/ImageLibrary/fld_024.png +0 -0
- package/lib/assets/ImageLibrary/fld_025.png +0 -0
- package/lib/assets/ImageLibrary/fld_026.png +0 -0
- package/lib/assets/ImageLibrary/fld_027.png +0 -0
- package/lib/assets/ImageLibrary/fld_028.png +0 -0
- package/lib/assets/ImageLibrary/fld_029.png +0 -0
- package/lib/assets/ImageLibrary/fld_030.png +0 -0
- package/lib/assets/ImageLibrary/fld_031.png +0 -0
- package/lib/assets/ImageLibrary/fld_032.png +0 -0
- package/lib/assets/ImageLibrary/fld_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_001.png +0 -0
- package/lib/assets/ImageLibrary/gen_002.png +0 -0
- package/lib/assets/ImageLibrary/gen_003.png +0 -0
- package/lib/assets/ImageLibrary/gen_004.png +0 -0
- package/lib/assets/ImageLibrary/gen_005.png +0 -0
- package/lib/assets/ImageLibrary/gen_006.png +0 -0
- package/lib/assets/ImageLibrary/gen_007.png +0 -0
- package/lib/assets/ImageLibrary/gen_008.png +0 -0
- package/lib/assets/ImageLibrary/gen_009.png +0 -0
- package/lib/assets/ImageLibrary/gen_010.png +0 -0
- package/lib/assets/ImageLibrary/gen_011.png +0 -0
- package/lib/assets/ImageLibrary/gen_012.png +0 -0
- package/lib/assets/ImageLibrary/gen_013.png +0 -0
- package/lib/assets/ImageLibrary/gen_014.png +0 -0
- package/lib/assets/ImageLibrary/gen_015.png +0 -0
- package/lib/assets/ImageLibrary/gen_016.png +0 -0
- package/lib/assets/ImageLibrary/gen_017.png +0 -0
- package/lib/assets/ImageLibrary/gen_018.png +0 -0
- package/lib/assets/ImageLibrary/gen_019.png +0 -0
- package/lib/assets/ImageLibrary/gen_020.png +0 -0
- package/lib/assets/ImageLibrary/gen_021.png +0 -0
- package/lib/assets/ImageLibrary/gen_022.png +0 -0
- package/lib/assets/ImageLibrary/gen_023.png +0 -0
- package/lib/assets/ImageLibrary/gen_024.png +0 -0
- package/lib/assets/ImageLibrary/gen_025.png +0 -0
- package/lib/assets/ImageLibrary/gen_026.png +0 -0
- package/lib/assets/ImageLibrary/gen_027.png +0 -0
- package/lib/assets/ImageLibrary/gen_028.png +0 -0
- package/lib/assets/ImageLibrary/gen_029.png +0 -0
- package/lib/assets/ImageLibrary/gen_030.png +0 -0
- package/lib/assets/ImageLibrary/gen_031.png +0 -0
- package/lib/assets/ImageLibrary/gen_032.png +0 -0
- package/lib/assets/ImageLibrary/gen_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_034.png +0 -0
- package/lib/assets/ImageLibrary/gen_035.png +0 -0
- package/lib/assets/ImageLibrary/gen_036.png +0 -0
- package/lib/assets/ImageLibrary/gen_037.png +0 -0
- package/lib/assets/ImageLibrary/gen_038.png +0 -0
- package/lib/assets/ImageLibrary/gen_039.png +0 -0
- package/lib/assets/ImageLibrary/gen_040.png +0 -0
- package/lib/assets/ImageLibrary/gen_041.png +0 -0
- package/lib/assets/ImageLibrary/gen_042.png +0 -0
- package/lib/assets/ImageLibrary/gen_043.png +0 -0
- package/lib/assets/ImageLibrary/gen_044.png +0 -0
- package/lib/assets/ImageLibrary/gen_045.png +0 -0
- package/lib/assets/ImageLibrary/gen_046.png +0 -0
- package/lib/assets/ImageLibrary/gen_047.png +0 -0
- package/lib/assets/ImageLibrary/gen_048.png +0 -0
- package/lib/assets/ImageLibrary/gen_049.png +0 -0
- package/lib/assets/ImageLibrary/gen_050.png +0 -0
- package/lib/assets/ImageLibrary/gen_051.png +0 -0
- package/lib/assets/ImageLibrary/gen_052.png +0 -0
- package/lib/assets/ImageLibrary/hand_001.png +0 -0
- package/lib/assets/ImageLibrary/hand_002.png +0 -0
- package/lib/assets/ImageLibrary/hand_003.png +0 -0
- package/lib/assets/ImageLibrary/hand_004.png +0 -0
- package/lib/assets/ImageLibrary/hand_005.png +0 -0
- package/lib/assets/ImageLibrary/hand_006.png +0 -0
- package/lib/assets/ImageLibrary/law_001.png +0 -0
- package/lib/assets/ImageLibrary/law_002.png +0 -0
- package/lib/assets/ImageLibrary/law_003.png +0 -0
- package/lib/assets/ImageLibrary/lock_001.png +0 -0
- package/lib/assets/ImageLibrary/lock_002.png +0 -0
- package/lib/assets/ImageLibrary/lock_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_001.png +0 -0
- package/lib/assets/ImageLibrary/mail_002.png +0 -0
- package/lib/assets/ImageLibrary/mail_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_004.png +0 -0
- package/lib/assets/ImageLibrary/mail_005.png +0 -0
- package/lib/assets/ImageLibrary/mail_006.png +0 -0
- package/lib/assets/ImageLibrary/mail_007.png +0 -0
- package/lib/assets/ImageLibrary/mail_008.png +0 -0
- package/lib/assets/ImageLibrary/mail_009.png +0 -0
- package/lib/assets/ImageLibrary/mail_010.png +0 -0
- package/lib/assets/ImageLibrary/mail_011.png +0 -0
- package/lib/assets/ImageLibrary/mail_012.png +0 -0
- package/lib/assets/ImageLibrary/mail_013.png +0 -0
- package/lib/assets/ImageLibrary/mail_014.png +0 -0
- package/lib/assets/ImageLibrary/mail_015.png +0 -0
- package/lib/assets/ImageLibrary/net_001.png +0 -0
- package/lib/assets/ImageLibrary/net_002.png +0 -0
- package/lib/assets/ImageLibrary/net_003.png +0 -0
- package/lib/assets/ImageLibrary/net_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_001.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_002.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_003.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_005.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_006.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_007.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_008.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_009.png +0 -0
- package/lib/assets/ImageLibrary/note_001.png +0 -0
- package/lib/assets/ImageLibrary/note_002.png +0 -0
- package/lib/assets/ImageLibrary/note_003.png +0 -0
- package/lib/assets/ImageLibrary/note_004.png +0 -0
- package/lib/assets/ImageLibrary/note_005.png +0 -0
- package/lib/assets/ImageLibrary/note_006.png +0 -0
- package/lib/assets/ImageLibrary/note_007.png +0 -0
- package/lib/assets/ImageLibrary/note_008.png +0 -0
- package/lib/assets/ImageLibrary/note_009.png +0 -0
- package/lib/assets/ImageLibrary/note_010.png +0 -0
- package/lib/assets/ImageLibrary/note_011.png +0 -0
- package/lib/assets/ImageLibrary/note_012.png +0 -0
- package/lib/assets/ImageLibrary/note_013.png +0 -0
- package/lib/assets/ImageLibrary/note_014.png +0 -0
- package/lib/assets/ImageLibrary/note_015.png +0 -0
- package/lib/assets/ImageLibrary/note_016.png +0 -0
- package/lib/assets/ImageLibrary/run_001.png +0 -0
- package/lib/assets/ImageLibrary/run_002.png +0 -0
- package/lib/assets/ImageLibrary/run_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_001.png +0 -0
- package/lib/assets/ImageLibrary/sem_002.png +0 -0
- package/lib/assets/ImageLibrary/sem_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_004.png +0 -0
- package/lib/assets/ImageLibrary/sem_005.png +0 -0
- package/lib/assets/ImageLibrary/star_001.png +0 -0
- package/lib/assets/ImageLibrary/star_002.png +0 -0
- package/lib/assets/ImageLibrary/star_003.png +0 -0
- package/lib/assets/ImageLibrary/star_004.png +0 -0
- package/lib/assets/ImageLibrary/star_005.png +0 -0
- package/lib/assets/ImageLibrary/star_006.png +0 -0
- package/lib/assets/ImageLibrary/state_001.png +0 -0
- package/lib/assets/ImageLibrary/state_002.png +0 -0
- package/lib/assets/ImageLibrary/state_003.png +0 -0
- package/lib/assets/ImageLibrary/state_004.png +0 -0
- package/lib/assets/ImageLibrary/state_005.png +0 -0
- package/lib/assets/ImageLibrary/study_001.png +0 -0
- package/lib/assets/ImageLibrary/study_002.png +0 -0
- package/lib/assets/ImageLibrary/user_001.png +0 -0
- package/lib/assets/ImageLibrary/user_002.png +0 -0
- package/lib/assets/ImageLibrary/user_003.png +0 -0
- package/lib/assets/ImageLibrary/user_004.png +0 -0
- package/lib/assets/ImageLibrary/user_005.png +0 -0
- package/lib/assets/ImageLibrary/user_006.png +0 -0
- package/lib/assets/ImageLibrary/user_007.png +0 -0
- package/lib/assets/ImageLibrary/user_008.png +0 -0
- package/lib/assets/ImageLibrary/user_009.png +0 -0
- package/lib/assets/ImageLibrary/user_010.png +0 -0
- package/lib/assets/ImageLibrary/user_011.png +0 -0
- package/lib/assets/ImageLibrary/user_012.png +0 -0
- package/lib/assets/ImageLibrary/user_013.png +0 -0
- package/lib/assets/ImageLibrary/user_014.png +0 -0
- package/lib/assets/ImageLibrary/user_015.png +0 -0
- package/lib/assets/ImageLibrary/user_016.png +0 -0
- package/lib/assets/ImageLibrary/user_017.png +0 -0
- package/lib/assets/ImageLibrary/user_018.png +0 -0
- package/lib/assets/ImageLibrary/user_019.png +0 -0
- package/lib/assets/ImageLibrary/user_020.png +0 -0
- package/lib/assets/ImageLibrary/user_021.png +0 -0
- package/lib/assets/ImageLibrary/user_022.png +0 -0
- package/lib/assets/ImageLibrary/user_023.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_001.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_002.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_003.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_004.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_005.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_006.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_007.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_008.png +0 -0
- package/lib/assets/Toppy-generico.png +0 -0
- package/lib/assets/france.svg +1 -0
- package/lib/assets/german.svg +1 -0
- package/lib/assets/icomoon.eot +0 -0
- package/lib/assets/icomoon.svg +97 -0
- package/lib/assets/icomoon.ttf +0 -0
- package/lib/assets/icomoon.woff +0 -0
- package/lib/assets/italy.svg +16 -0
- package/lib/assets/loading.png +0 -0
- package/lib/assets/login-bg.png +0 -0
- package/lib/assets/multipleSelectionManager.jpg +0 -0
- package/lib/assets/portugal.svg +1 -0
- package/lib/assets/six.png +0 -0
- package/lib/assets/six.svg +4 -0
- package/lib/assets/spain.svg +1 -0
- package/lib/assets/thumbnails/dicom.png +0 -0
- package/lib/assets/thumbnails/doc.png +0 -0
- package/lib/assets/thumbnails/docx.png +0 -0
- package/lib/assets/thumbnails/dwg.png +0 -0
- package/lib/assets/thumbnails/email.png +0 -0
- package/lib/assets/thumbnails/exe.png +0 -0
- package/lib/assets/thumbnails/folder.png +0 -0
- package/lib/assets/thumbnails/html.png +0 -0
- package/lib/assets/thumbnails/image.png +0 -0
- package/lib/assets/thumbnails/index.d.ts +19 -0
- package/lib/assets/thumbnails/index.js +19 -0
- package/lib/assets/thumbnails/index.ts +39 -0
- package/lib/assets/thumbnails/mp4.png +0 -0
- package/lib/assets/thumbnails/other.png +0 -0
- package/lib/assets/thumbnails/p7m.png +0 -0
- package/lib/assets/thumbnails/pdf.png +0 -0
- package/lib/assets/thumbnails/ppt.png +0 -0
- package/lib/assets/thumbnails/slddrw.png +0 -0
- package/lib/assets/thumbnails/txt.png +0 -0
- package/lib/assets/thumbnails/xls.png +0 -0
- package/lib/assets/thumbnails/xml.png +0 -0
- package/lib/assets/thumbnails/zip.png +0 -0
- package/lib/assets/topmedia-six.svg +66 -0
- package/lib/assets/topmeida-six-bianco.svg +66 -0
- package/lib/assets/united-kingdom.svg +1 -0
- package/lib/components/base/Styled.d.ts +63 -0
- package/lib/components/base/Styled.js +337 -0
- package/lib/components/base/TMAccordion.d.ts +12 -0
- package/lib/components/base/TMAccordion.js +62 -0
- package/lib/components/base/TMAlert.d.ts +73 -0
- package/lib/components/base/TMAlert.js +77 -0
- package/lib/components/base/TMAreaManager.d.ts +25 -0
- package/lib/components/base/TMAreaManager.js +733 -0
- package/lib/components/base/TMButton.d.ts +21 -0
- package/lib/components/base/TMButton.js +174 -0
- package/lib/components/base/TMClosableList.d.ts +10 -0
- package/lib/components/base/TMClosableList.js +70 -0
- package/lib/components/base/TMConfirm.d.ts +13 -0
- package/lib/components/base/TMConfirm.js +119 -0
- package/lib/components/base/TMContextMenu.d.ts +25 -0
- package/lib/components/base/TMContextMenu.js +109 -0
- package/lib/components/base/TMContextMenuOLD.d.ts +26 -0
- package/lib/components/base/TMContextMenuOLD.js +56 -0
- package/lib/components/base/TMCounterBar.d.ts +10 -0
- package/lib/components/base/TMCounterBar.js +43 -0
- package/lib/components/base/TMCounterContainer.d.ts +23 -0
- package/lib/components/base/TMCounterContainer.js +58 -0
- package/lib/components/base/TMCustomButton.d.ts +11 -0
- package/lib/components/base/TMCustomButton.js +116 -0
- package/lib/components/base/TMDataGrid.d.ts +56 -0
- package/lib/components/base/TMDataGrid.js +237 -0
- package/lib/components/base/TMDataGridExportForm.d.ts +15 -0
- package/lib/components/base/TMDataGridExportForm.js +215 -0
- package/lib/components/base/TMDeviceProvider.d.ts +15 -0
- package/lib/components/base/TMDeviceProvider.js +41 -0
- package/lib/components/base/TMDropDownMenu.d.ts +23 -0
- package/lib/components/base/TMDropDownMenu.js +45 -0
- package/lib/components/base/TMEditorBase.d.ts +39 -0
- package/lib/components/base/TMEditorBase.js +1 -0
- package/lib/components/base/TMFileManager.d.ts +45 -0
- package/lib/components/base/TMFileManager.js +233 -0
- package/lib/components/base/TMFileManagerDataGridView.d.ts +16 -0
- package/lib/components/base/TMFileManagerDataGridView.js +101 -0
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +18 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +148 -0
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +19 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +46 -0
- package/lib/components/base/TMFileManagerUtils.d.ts +78 -0
- package/lib/components/base/TMFileManagerUtils.js +207 -0
- package/lib/components/base/TMFloatingToolbar.d.ts +9 -0
- package/lib/components/base/TMFloatingToolbar.js +101 -0
- package/lib/components/base/TMLayout.d.ts +55 -0
- package/lib/components/base/TMLayout.js +201 -0
- package/lib/components/base/TMList.d.ts +9 -0
- package/lib/components/base/TMList.js +54 -0
- package/lib/components/base/TMListView.d.ts +42 -0
- package/lib/components/base/TMListView.js +387 -0
- package/lib/components/base/TMModal.d.ts +16 -0
- package/lib/components/base/TMModal.js +70 -0
- package/lib/components/base/TMPanel.d.ts +32 -0
- package/lib/components/base/TMPanel.js +181 -0
- package/lib/components/base/TMPopUp.d.ts +33 -0
- package/lib/components/base/TMPopUp.js +267 -0
- package/lib/components/base/TMProgressBar.d.ts +11 -0
- package/lib/components/base/TMProgressBar.js +32 -0
- package/lib/components/base/TMResizableMenu.d.ts +20 -0
- package/lib/components/base/TMResizableMenu.js +98 -0
- package/lib/components/base/TMRightSidebar.d.ts +19 -0
- package/lib/components/base/TMRightSidebar.js +80 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.d.ts +8 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.js +20 -0
- package/lib/components/base/TMSpinner.d.ts +14 -0
- package/lib/components/base/TMSpinner.js +160 -0
- package/lib/components/base/TMTab.d.ts +20 -0
- package/lib/components/base/TMTab.js +42 -0
- package/lib/components/base/TMToggleButton.d.ts +10 -0
- package/lib/components/base/TMToggleButton.js +58 -0
- package/lib/components/base/TMToolbarCard.d.ts +19 -0
- package/lib/components/base/TMToolbarCard.js +51 -0
- package/lib/components/base/TMTooltip.d.ts +14 -0
- package/lib/components/base/TMTooltip.js +20 -0
- package/lib/components/base/TMTreeView.d.ts +32 -0
- package/lib/components/base/TMTreeView.js +356 -0
- package/lib/components/base/TMUserAvatar.d.ts +8 -0
- package/lib/components/base/TMUserAvatar.js +34 -0
- package/lib/components/base/TMVilViewer.d.ts +5 -0
- package/lib/components/base/TMVilViewer.js +22 -0
- package/lib/components/base/TMWaitPanel.d.ts +32 -0
- package/lib/components/base/TMWaitPanel.js +44 -0
- package/lib/components/choosers/TMCultureIDPicker.d.ts +9 -0
- package/lib/components/choosers/TMCultureIDPicker.js +72 -0
- package/lib/components/choosers/TMDataListItemChooser.d.ts +17 -0
- package/lib/components/choosers/TMDataListItemChooser.js +49 -0
- package/lib/components/choosers/TMDataListItemPicker.d.ts +9 -0
- package/lib/components/choosers/TMDataListItemPicker.js +96 -0
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
- package/lib/components/choosers/TMDcmtTypeChooser.js +61 -0
- package/lib/components/choosers/TMDiskChooser.d.ts +10 -0
- package/lib/components/choosers/TMDiskChooser.js +41 -0
- package/lib/components/choosers/TMDistinctValues.d.ts +21 -0
- package/lib/components/choosers/TMDistinctValues.js +140 -0
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +40 -0
- package/lib/components/choosers/TMDynDataListItemChooser.js +159 -0
- package/lib/components/choosers/TMGroupChooser.d.ts +7 -0
- package/lib/components/choosers/TMGroupChooser.js +37 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMMetadataChooser.d.ts +54 -0
- package/lib/components/choosers/TMMetadataChooser.js +155 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMPathChooser.d.ts +12 -0
- package/lib/components/choosers/TMPathChooser.js +147 -0
- package/lib/components/choosers/TMRelationChooser.d.ts +31 -0
- package/lib/components/choosers/TMRelationChooser.js +94 -0
- package/lib/components/choosers/TMUserChooser.d.ts +40 -0
- package/lib/components/choosers/TMUserChooser.js +141 -0
- package/lib/components/editors/TMCheckBox.d.ts +9 -0
- package/lib/components/editors/TMCheckBox.js +90 -0
- package/lib/components/editors/TMDateBox.d.ts +17 -0
- package/lib/components/editors/TMDateBox.js +75 -0
- package/lib/components/editors/TMDropDown.d.ts +10 -0
- package/lib/components/editors/TMDropDown.js +62 -0
- package/lib/components/editors/TMEditorStyled.d.ts +41 -0
- package/lib/components/editors/TMEditorStyled.js +90 -0
- package/lib/components/editors/TMFormulaEditor.d.ts +49 -0
- package/lib/components/editors/TMFormulaEditor.js +727 -0
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +7 -0
- package/lib/components/editors/TMHtmlContentDisplay.js +78 -0
- package/lib/components/editors/TMHtmlEditor.d.ts +38 -0
- package/lib/components/editors/TMHtmlEditor.js +203 -0
- package/lib/components/editors/TMLocalizedTextBox.d.ts +19 -0
- package/lib/components/editors/TMLocalizedTextBox.js +125 -0
- package/lib/components/editors/TMMetadataEditor.d.ts +29 -0
- package/lib/components/editors/TMMetadataEditor.js +140 -0
- package/lib/components/editors/TMMetadataValues.d.ts +46 -0
- package/lib/components/editors/TMMetadataValues.js +530 -0
- package/lib/components/editors/TMRadioButton.d.ts +10 -0
- package/lib/components/editors/TMRadioButton.js +57 -0
- package/lib/components/editors/TMSummary.d.ts +20 -0
- package/lib/components/editors/TMSummary.js +92 -0
- package/lib/components/editors/TMTextArea.d.ts +17 -0
- package/lib/components/editors/TMTextArea.js +155 -0
- package/lib/components/editors/TMTextBox.d.ts +20 -0
- package/lib/components/editors/TMTextBox.js +249 -0
- package/lib/components/editors/TMTextExpression.d.ts +25 -0
- package/lib/components/editors/TMTextExpression.js +174 -0
- package/lib/components/editors/TMTreeDropDown.d.ts +18 -0
- package/lib/components/editors/TMTreeDropDown.js +66 -0
- package/lib/components/features/archive/TMArchive.d.ts +29 -0
- package/lib/components/features/archive/TMArchive.js +193 -0
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +12 -0
- package/lib/components/features/assistant/ToppyHelpCenter.js +173 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +17 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +333 -0
- package/lib/components/features/documents/TMBatchUpdateForm.d.ts +17 -0
- package/lib/components/features/documents/TMBatchUpdateForm.js +159 -0
- package/lib/components/features/documents/TMDcmtBlog.d.ts +23 -0
- package/lib/components/features/documents/TMDcmtBlog.js +65 -0
- package/lib/components/features/documents/TMDcmtForm.d.ts +64 -0
- package/lib/components/features/documents/TMDcmtForm.js +1498 -0
- package/lib/components/features/documents/TMDcmtIcon.d.ts +18 -0
- package/lib/components/features/documents/TMDcmtIcon.js +93 -0
- package/lib/components/features/documents/TMDcmtPreview.d.ts +31 -0
- package/lib/components/features/documents/TMDcmtPreview.js +446 -0
- package/lib/components/features/documents/TMDcmtTasks.d.ts +13 -0
- package/lib/components/features/documents/TMDcmtTasks.js +24 -0
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +6 -0
- package/lib/components/features/documents/TMDragDropOverlay.js +97 -0
- package/lib/components/features/documents/TMFileUploader.d.ts +14 -0
- package/lib/components/features/documents/TMFileUploader.js +115 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +26 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +288 -0
- package/lib/components/features/documents/TMRelationViewer.d.ts +121 -0
- package/lib/components/features/documents/TMRelationViewer.js +753 -0
- package/lib/components/features/search/TMSavedQueryForm.d.ts +9 -0
- package/lib/components/features/search/TMSavedQueryForm.js +41 -0
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +16 -0
- package/lib/components/features/search/TMSavedQuerySelector.js +226 -0
- package/lib/components/features/search/TMSearch.d.ts +40 -0
- package/lib/components/features/search/TMSearch.js +253 -0
- package/lib/components/features/search/TMSearchQueryEditor.d.ts +15 -0
- package/lib/components/features/search/TMSearchQueryEditor.js +367 -0
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +29 -0
- package/lib/components/features/search/TMSearchQueryPanel.js +438 -0
- package/lib/components/features/search/TMSearchResult.d.ts +53 -0
- package/lib/components/features/search/TMSearchResult.js +1092 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +16 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.js +50 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +11 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.js +725 -0
- package/lib/components/features/search/TMTreeSelector.d.ts +12 -0
- package/lib/components/features/search/TMTreeSelector.js +270 -0
- package/lib/components/features/tasks/TMTaskForm.d.ts +38 -0
- package/lib/components/features/tasks/TMTaskForm.js +392 -0
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +17 -0
- package/lib/components/features/tasks/TMTasksAgenda.js +107 -0
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +21 -0
- package/lib/components/features/tasks/TMTasksCalendar.js +240 -0
- package/lib/components/features/tasks/TMTasksHeader.d.ts +14 -0
- package/lib/components/features/tasks/TMTasksHeader.js +37 -0
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +20 -0
- package/lib/components/features/tasks/TMTasksPanelContent.js +65 -0
- package/lib/components/features/tasks/TMTasksUtils.d.ts +133 -0
- package/lib/components/features/tasks/TMTasksUtils.js +649 -0
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +39 -0
- package/lib/components/features/tasks/TMTasksUtilsView.js +140 -0
- package/lib/components/features/tasks/TMTasksView.d.ts +40 -0
- package/lib/components/features/tasks/TMTasksView.js +566 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +39 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +439 -0
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +42 -0
- package/lib/components/features/workflow/TMWorkflowPopup.js +286 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.d.ts +14 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +90 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.d.ts +9 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.js +73 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +18 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +264 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.d.ts +10 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +686 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.d.ts +12 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +97 -0
- package/lib/components/features/workflow/diagram/RecipientList.d.ts +27 -0
- package/lib/components/features/workflow/diagram/RecipientList.js +204 -0
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +9 -0
- package/lib/components/features/workflow/diagram/WFDiagram.js +1680 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +18 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +97 -0
- package/lib/components/features/workflow/diagram/interfaces.d.ts +126 -0
- package/lib/components/features/workflow/diagram/interfaces.js +26 -0
- package/lib/components/features/workflow/diagram/metadataParser.d.ts +14 -0
- package/lib/components/features/workflow/diagram/metadataParser.js +54 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.d.ts +3 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.js +188 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.d.ts +122 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.js +488 -0
- package/lib/components/features/workflow/diagram/xmlParser.d.ts +10 -0
- package/lib/components/features/workflow/diagram/xmlParser.js +490 -0
- package/lib/components/filesystem/ProgressBar.d.ts +7 -0
- package/lib/components/filesystem/ProgressBar.js +25 -0
- package/lib/components/forms/Login/ChangePassword.d.ts +9 -0
- package/lib/components/forms/Login/ChangePassword.js +22 -0
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +14 -0
- package/lib/components/forms/Login/ChangePasswordInputs.js +80 -0
- package/lib/components/forms/Login/Chooser.d.ts +28 -0
- package/lib/components/forms/Login/Chooser.js +145 -0
- package/lib/components/forms/Login/LOGINLocalizator.d.ts +29 -0
- package/lib/components/forms/Login/LOGINLocalizator.js +247 -0
- package/lib/components/forms/Login/LoginValidatorService.d.ts +50 -0
- package/lib/components/forms/Login/LoginValidatorService.js +162 -0
- package/lib/components/forms/Login/Menu.d.ts +10 -0
- package/lib/components/forms/Login/Menu.js +48 -0
- package/lib/components/forms/Login/OTPReader.d.ts +14 -0
- package/lib/components/forms/Login/OTPReader.js +90 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.d.ts +7 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.js +45 -0
- package/lib/components/forms/Login/RapidAccessLogin.d.ts +25 -0
- package/lib/components/forms/Login/RapidAccessLogin.js +310 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.d.ts +11 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.js +111 -0
- package/lib/components/forms/Login/SelectBox.d.ts +23 -0
- package/lib/components/forms/Login/SelectBox.js +96 -0
- package/lib/components/forms/Login/StepIndicator.d.ts +7 -0
- package/lib/components/forms/Login/StepIndicator.js +19 -0
- package/lib/components/forms/Login/TMLoginForm.d.ts +44 -0
- package/lib/components/forms/Login/TMLoginForm.js +737 -0
- package/lib/components/forms/Login/TextBox.d.ts +27 -0
- package/lib/components/forms/Login/TextBox.js +111 -0
- package/lib/components/forms/TMApplyForm.d.ts +4 -0
- package/lib/components/forms/TMApplyForm.js +105 -0
- package/lib/components/forms/TMChooserForm.d.ts +3 -0
- package/lib/components/forms/TMChooserForm.js +94 -0
- package/lib/components/forms/TMResultDialog.d.ts +20 -0
- package/lib/components/forms/TMResultDialog.js +44 -0
- package/lib/components/forms/TMSaveForm.d.ts +31 -0
- package/lib/components/forms/TMSaveForm.js +176 -0
- package/lib/components/grids/TMBlogAttachments.d.ts +42 -0
- package/lib/components/grids/TMBlogAttachments.js +43 -0
- package/lib/components/grids/TMBlogHeader.d.ts +31 -0
- package/lib/components/grids/TMBlogHeader.js +41 -0
- package/lib/components/grids/TMBlogsPost.d.ts +89 -0
- package/lib/components/grids/TMBlogsPost.js +644 -0
- package/lib/components/grids/TMBlogsPostUtils.d.ts +113 -0
- package/lib/components/grids/TMBlogsPostUtils.js +250 -0
- package/lib/components/grids/TMRecentsManager.d.ts +13 -0
- package/lib/components/grids/TMRecentsManager.js +155 -0
- package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
- package/lib/components/grids/TMValidationItemsList.js +82 -0
- package/lib/components/index.d.ts +115 -0
- package/lib/components/index.js +137 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +10 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +215 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +39 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +257 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +11 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +83 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +21 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +64 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +8 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.js +59 -0
- package/lib/components/layout/panelManager/types.d.ts +42 -0
- package/lib/components/layout/panelManager/types.js +1 -0
- package/lib/components/layout/panelManager/utils.d.ts +21 -0
- package/lib/components/layout/panelManager/utils.js +208 -0
- package/lib/components/pages/TMPage.d.ts +38 -0
- package/lib/components/pages/TMPage.js +220 -0
- package/lib/components/query/TMQueryEditor.d.ts +58 -0
- package/lib/components/query/TMQueryEditor.js +1001 -0
- package/lib/components/query/TMQuerySummary.d.ts +16 -0
- package/lib/components/query/TMQuerySummary.js +35 -0
- package/lib/components/settings/SettingsAppearance.d.ts +14 -0
- package/lib/components/settings/SettingsAppearance.js +73 -0
- package/lib/components/sidebar/TMAboutApp.d.ts +8 -0
- package/lib/components/sidebar/TMAboutApp.js +14 -0
- package/lib/components/sidebar/TMCommandsPanel.d.ts +16 -0
- package/lib/components/sidebar/TMCommandsPanel.js +27 -0
- package/lib/components/sidebar/TMHeader.d.ts +43 -0
- package/lib/components/sidebar/TMHeader.js +616 -0
- package/lib/components/sidebar/TMSidebar.d.ts +21 -0
- package/lib/components/sidebar/TMSidebar.js +61 -0
- package/lib/components/sidebar/TMSidebarItem.d.ts +15 -0
- package/lib/components/sidebar/TMSidebarItem.js +39 -0
- package/lib/components/viewers/TMDataListItemViewer.d.ts +10 -0
- package/lib/components/viewers/TMDataListItemViewer.js +80 -0
- package/lib/components/viewers/TMMidViewer.d.ts +36 -0
- package/lib/components/viewers/TMMidViewer.js +128 -0
- package/lib/components/viewers/TMTidViewer.d.ts +256 -0
- package/lib/components/viewers/TMTidViewer.js +343 -0
- package/lib/components/wizard/TMStepIndicator.d.ts +11 -0
- package/lib/components/wizard/TMStepIndicator.js +165 -0
- package/lib/components/wizard/TMWizard.d.ts +18 -0
- package/lib/components/wizard/TMWizard.js +93 -0
- package/lib/css/tm-sdkui.css +1 -0
- package/lib/helper/DeepCompareHelper.d.ts +7 -0
- package/lib/helper/DeepCompareHelper.js +106 -0
- package/lib/helper/Enum_Localizator.d.ts +18 -0
- package/lib/helper/Enum_Localizator.js +247 -0
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/Globalization.d.ts +15 -0
- package/lib/helper/Globalization.js +110 -0
- package/lib/helper/SDKUI_Globals.d.ts +96 -0
- package/lib/helper/SDKUI_Globals.js +174 -0
- package/lib/helper/SDKUI_Localizator.d.ts +739 -0
- package/lib/helper/SDKUI_Localizator.js +7298 -0
- package/lib/helper/TMCommandsContextMenu.d.ts +14 -0
- package/lib/helper/TMCommandsContextMenu.js +6 -0
- package/lib/helper/TMConditionalWrapper.d.ts +8 -0
- package/lib/helper/TMConditionalWrapper.js +4 -0
- package/lib/helper/TMCustomSearchBar.d.ts +8 -0
- package/lib/helper/TMCustomSearchBar.js +54 -0
- package/lib/helper/TMIcons.d.ts +274 -0
- package/lib/helper/TMIcons.js +673 -0
- package/lib/helper/TMImageLibrary.d.ts +4 -0
- package/lib/helper/TMImageLibrary.js +466 -0
- package/lib/helper/TMToppyMessage.d.ts +7 -0
- package/lib/helper/TMToppyMessage.js +42 -0
- package/lib/helper/TMUtils.d.ts +26 -0
- package/lib/helper/TMUtils.js +212 -0
- package/lib/helper/dcmtsHelper.d.ts +8 -0
- package/lib/helper/dcmtsHelper.js +53 -0
- package/lib/helper/helpers.d.ts +84 -0
- package/lib/helper/helpers.js +826 -0
- package/lib/helper/index.d.ts +13 -0
- package/lib/helper/index.js +13 -0
- package/lib/helper/queryHelper.d.ts +19 -0
- package/lib/helper/queryHelper.js +336 -0
- package/lib/hooks/useDcmtOperations.d.ts +24 -0
- package/lib/hooks/useDcmtOperations.js +482 -0
- package/lib/hooks/useForm.d.ts +24 -0
- package/lib/hooks/useForm.js +157 -0
- package/lib/hooks/useInputDialog.d.ts +9 -0
- package/lib/hooks/useInputDialog.js +105 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useOutsideClick.js +38 -0
- package/lib/hooks/usePreventFileDrop.d.ts +3 -0
- package/lib/hooks/usePreventFileDrop.js +37 -0
- package/lib/hooks/useQueryParametersDialog.d.ts +2 -0
- package/lib/hooks/useQueryParametersDialog.js +71 -0
- package/lib/hooks/useRelatedDocuments.d.ts +72 -0
- package/lib/hooks/useRelatedDocuments.js +664 -0
- package/lib/hooks/useResizeObserver.d.ts +4 -0
- package/lib/hooks/useResizeObserver.js +22 -0
- package/lib/hooks/useWorkflowApprove.d.ts +11 -0
- package/lib/hooks/useWorkflowApprove.js +57 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +15 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/platform_services.d.ts +18 -0
- package/lib/services/platform_services.js +492 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/lib/ts/types.d.ts +310 -0
- package/lib/ts/types.js +100 -0
- package/lib/utils/theme.d.ts +69 -0
- package/lib/utils/theme.js +81 -0
- package/package.json +54 -0
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import ArrayStore from 'devextreme/data/array_store';
|
|
3
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
4
|
+
import { Priorities, Task_States } from "@topconsultnpm/sdk-ts";
|
|
5
|
+
import Scheduler, { Resource } from 'devextreme-react/scheduler';
|
|
6
|
+
import { calculateNumberOfDays, highlightTaskText, priorityLegend, renderTaskIcons, taskStateIconMap, TMActionCalendar } from './TMTasksUtilsView';
|
|
7
|
+
import { checkIfNew, convertToSchedulerAppointments, findTasksBySearch, formatDate, getPriorityColor, getPriorityLocalizatorValue, getStatusLocalizatorValue, prioritiesResourceData } from './TMTasksUtils';
|
|
8
|
+
import LoadIndicator from 'devextreme-react/load-indicator';
|
|
9
|
+
import { FormModes } from '../../../ts';
|
|
10
|
+
import { SDKUI_Localizator } from '../../../helper';
|
|
11
|
+
import TMTooltip from '../../base/TMTooltip';
|
|
12
|
+
import TMCustomSearchBar from '../../../helper/TMCustomSearchBar';
|
|
13
|
+
const views = ['month'];
|
|
14
|
+
let clickTimeout = null; // Timeout reference
|
|
15
|
+
let clickCount = 0; // Click counter
|
|
16
|
+
let lastClickedCell = null;
|
|
17
|
+
const TMTasksCalendar = (props) => {
|
|
18
|
+
const { id, visualizedTasks, showId, showSearch, fromCell, toCell, openTaskForm, onDeleteCallback, currentCalendarDate, setCurrentCalendarDate, focusedRowKey, handleFocusedRowChange, setCalendarStartDate, setCalendarEndDate } = props;
|
|
19
|
+
const [isMobile, setIsMobile] = useState(false);
|
|
20
|
+
const mobileBreakpoint = 768;
|
|
21
|
+
const [schedulerData, setSchedulerData] = useState([]);
|
|
22
|
+
const [isRange, setIsRange] = useState(false);
|
|
23
|
+
const [loading, setLoading] = useState(false);
|
|
24
|
+
const [searchText, setSearchText] = useState('');
|
|
25
|
+
const containerRef = useRef(null);
|
|
26
|
+
const schedulerRef = useRef(null);
|
|
27
|
+
useEffect(() => {
|
|
28
|
+
const updateDimensions = (entries) => {
|
|
29
|
+
for (let entry of entries) {
|
|
30
|
+
const { width } = entry.contentRect;
|
|
31
|
+
setIsMobile(width <= mobileBreakpoint);
|
|
32
|
+
}
|
|
33
|
+
if (schedulerRef.current && schedulerRef.current.instance) {
|
|
34
|
+
schedulerRef.current.instance().repaint();
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
const resizeObserver = new ResizeObserver(updateDimensions);
|
|
38
|
+
if (containerRef.current) {
|
|
39
|
+
resizeObserver.observe(containerRef.current);
|
|
40
|
+
}
|
|
41
|
+
return () => {
|
|
42
|
+
if (containerRef.current) {
|
|
43
|
+
resizeObserver.unobserve(containerRef.current);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
}, [containerRef]);
|
|
47
|
+
useEffect(() => {
|
|
48
|
+
setSchedulerData(convertToSchedulerAppointments(visualizedTasks));
|
|
49
|
+
}, [visualizedTasks]);
|
|
50
|
+
useEffect(() => {
|
|
51
|
+
let timeoutId;
|
|
52
|
+
if (searchText.length > 0) {
|
|
53
|
+
setLoading(true);
|
|
54
|
+
timeoutId = setTimeout(() => {
|
|
55
|
+
const filteredTasks = findTasksBySearch(visualizedTasks, searchText);
|
|
56
|
+
setSchedulerData(convertToSchedulerAppointments(filteredTasks));
|
|
57
|
+
setLoading(false);
|
|
58
|
+
}, 300);
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
setSchedulerData(convertToSchedulerAppointments(visualizedTasks));
|
|
62
|
+
setLoading(false);
|
|
63
|
+
}
|
|
64
|
+
return () => {
|
|
65
|
+
clearTimeout(timeoutId);
|
|
66
|
+
};
|
|
67
|
+
}, [searchText]);
|
|
68
|
+
// Runs the handleContentReady function whenever the currentCalendarDate changes, ensuring the scheduler scrolls to the correct date
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
handleContentReady();
|
|
71
|
+
}, [currentCalendarDate]);
|
|
72
|
+
// Scrolls the scheduler to the current date or the start of the view based on the current calendar date
|
|
73
|
+
const handleContentReady = () => {
|
|
74
|
+
if (schedulerRef.current === null)
|
|
75
|
+
return;
|
|
76
|
+
const schedulerInstance = schedulerRef.current.instance();
|
|
77
|
+
const startOfView = schedulerInstance.getStartViewDate();
|
|
78
|
+
const endOfView = schedulerInstance.getEndViewDate();
|
|
79
|
+
if (currentCalendarDate >= startOfView && currentCalendarDate <= endOfView) {
|
|
80
|
+
schedulerInstance.scrollTo(currentCalendarDate);
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
schedulerInstance.scrollTo(startOfView);
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
const handleAppointmentClick = (e) => {
|
|
87
|
+
// Capture the appointment ID
|
|
88
|
+
const appointmentId = e.appointmentData.id;
|
|
89
|
+
const task = visualizedTasks.find(task => task.id === appointmentId);
|
|
90
|
+
if (task)
|
|
91
|
+
handleFocusedRowChange(task);
|
|
92
|
+
};
|
|
93
|
+
// Double-click appointment handler
|
|
94
|
+
const handleAppointmentDblClick = (e) => {
|
|
95
|
+
if (e === undefined || e.event === undefined || e.appointmentData.id === undefined)
|
|
96
|
+
return;
|
|
97
|
+
e.event.preventDefault();
|
|
98
|
+
e.cancel = true;
|
|
99
|
+
const task = visualizedTasks.find(task => task.id === e.appointmentData.id);
|
|
100
|
+
if (task) {
|
|
101
|
+
handleFocusedRowChange(task);
|
|
102
|
+
openTaskForm(FormModes.Update, task);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
const onAppointmentContextMenu = (e) => {
|
|
106
|
+
if (e === undefined || e.event === undefined || e.appointmentData.id === undefined)
|
|
107
|
+
return;
|
|
108
|
+
e.event.preventDefault();
|
|
109
|
+
const { id } = e.appointmentData;
|
|
110
|
+
// Update the state with the new set of selected appointments
|
|
111
|
+
const task = visualizedTasks.find(task => task.id === id);
|
|
112
|
+
if (task)
|
|
113
|
+
handleFocusedRowChange(task);
|
|
114
|
+
setCalendarStartDate(undefined);
|
|
115
|
+
setCalendarEndDate(undefined);
|
|
116
|
+
};
|
|
117
|
+
const onCellContextMenu = (e) => {
|
|
118
|
+
if (e === undefined || e.event === undefined)
|
|
119
|
+
return;
|
|
120
|
+
e.event.preventDefault();
|
|
121
|
+
handleFocusedRowChange(undefined);
|
|
122
|
+
if (!isRange) {
|
|
123
|
+
setCalendarStartDate(e.cellData.startDate);
|
|
124
|
+
const endDateWithTime = new Date(e.cellData.endDate);
|
|
125
|
+
endDateWithTime.setDate(endDateWithTime.getDate() - 1);
|
|
126
|
+
endDateWithTime.setHours(23, 59, 0, 0);
|
|
127
|
+
setCalendarEndDate(endDateWithTime);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
const appointmentTooltipComponent = (params) => {
|
|
131
|
+
if (params === undefined || params.data === undefined || params.data.appointmentData === undefined)
|
|
132
|
+
return;
|
|
133
|
+
const { appointmentData } = params.data;
|
|
134
|
+
const currentTask = visualizedTasks.find(task => task.id !== undefined && task.id === appointmentData.id);
|
|
135
|
+
if (currentTask === undefined || currentTask.id === undefined)
|
|
136
|
+
return;
|
|
137
|
+
const priority = getPriorityLocalizatorValue(currentTask.priority ?? Priorities.None);
|
|
138
|
+
const startTime = currentTask.startTime;
|
|
139
|
+
const endTime = currentTask.endTime;
|
|
140
|
+
const remTime = currentTask.remTime;
|
|
141
|
+
const stateLabel = currentTask.state ?? Task_States.None;
|
|
142
|
+
const stateTooltipLabel = getStatusLocalizatorValue(stateLabel);
|
|
143
|
+
const pdg = currentTask.pdG || undefined;
|
|
144
|
+
const ID1Name = currentTask.iD1Name || '';
|
|
145
|
+
const isNew = checkIfNew(currentTask.fromID, currentTask.isNew);
|
|
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.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
|
+
};
|
|
149
|
+
const onCurrentCalendarDateChange = (value) => {
|
|
150
|
+
// Exit early if it's not a valid Date
|
|
151
|
+
if (!(value instanceof Date) || isNaN(value.getTime())) {
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
setCurrentCalendarDate(value);
|
|
155
|
+
setSearchText('');
|
|
156
|
+
};
|
|
157
|
+
// Custom appointment component to render each appointment
|
|
158
|
+
const appointmentComponent = (params) => {
|
|
159
|
+
if (!params || !params.data)
|
|
160
|
+
return null;
|
|
161
|
+
const { appointmentData } = params.data;
|
|
162
|
+
// Define inline styles for the selected appointment
|
|
163
|
+
const isSelected = focusedRowKey === appointmentData.id;
|
|
164
|
+
let stateLabel = undefined;
|
|
165
|
+
let stateTooltipLabel = undefined;
|
|
166
|
+
const currentTask = visualizedTasks.find(task => task.id !== undefined && task.id === appointmentData.id);
|
|
167
|
+
stateLabel = currentTask?.state ?? Task_States.None;
|
|
168
|
+
stateTooltipLabel = getStatusLocalizatorValue(stateLabel);
|
|
169
|
+
const inlineStyles = isSelected ? { backgroundColor: '#2559A5', boxShadow: '0 4px 8px rgba(0, 0, 0, 0.1)', fontWeight: 'bold', color: 'white', cursor: 'pointer', transition: 'all 0.3s ease-in-out', } : {};
|
|
170
|
+
const centerStyles = { display: 'flex', justifyContent: 'center', alignItems: 'center', textAlign: 'center', height: '100%' };
|
|
171
|
+
return (_jsxs("div", { id: "appointment-" + appointmentData.id.toString(), style: { ...inlineStyles, ...centerStyles }, children: [(stateLabel && stateTooltipLabel) && _jsxs(TMTooltip, { content: stateTooltipLabel, children: [" ", _jsxs("div", { children: [taskStateIconMap(15).get(stateLabel), "\u00A0"] })] }), showId && _jsxs("span", { children: [highlightTaskText(appointmentData.id.toString(), searchText, appointmentData.id), "\u00A0-\u00A0"] }), appointmentData.text] }));
|
|
172
|
+
};
|
|
173
|
+
const handleCellClick = (e) => {
|
|
174
|
+
handleFocusedRowChange(undefined);
|
|
175
|
+
clickCount += 1;
|
|
176
|
+
if (clickTimeout)
|
|
177
|
+
clearTimeout(clickTimeout);
|
|
178
|
+
clickTimeout = setTimeout(() => {
|
|
179
|
+
if (clickCount === 1) {
|
|
180
|
+
// Single click logic
|
|
181
|
+
setCalendarStartDate(e.cellData.startDate);
|
|
182
|
+
const endDateWithTime = new Date(e.cellData.endDate);
|
|
183
|
+
endDateWithTime.setDate(endDateWithTime.getDate() - 1);
|
|
184
|
+
endDateWithTime.setHours(23, 59, 59, 0);
|
|
185
|
+
setCalendarEndDate(endDateWithTime);
|
|
186
|
+
}
|
|
187
|
+
else if (clickCount === 2) {
|
|
188
|
+
// Double click logic (only on the same cell)
|
|
189
|
+
if (lastClickedCell && lastClickedCell.startDate === e.cellData.startDate && lastClickedCell.endDate === e.cellData.endDate) {
|
|
190
|
+
// Double click on the same cell
|
|
191
|
+
setCalendarStartDate(e.cellData.startDate);
|
|
192
|
+
const endDateWithTime = new Date(e.cellData.endDate);
|
|
193
|
+
endDateWithTime.setDate(endDateWithTime.getDate() - 1);
|
|
194
|
+
endDateWithTime.setHours(23, 59, 59, 0);
|
|
195
|
+
setCalendarEndDate(endDateWithTime);
|
|
196
|
+
openTaskForm(FormModes.Create, undefined); // Open the task form
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
// Reset click count
|
|
200
|
+
clickCount = 0;
|
|
201
|
+
}, 200); // Delay for double-click detection
|
|
202
|
+
// Save the current cell as the last clicked cell
|
|
203
|
+
lastClickedCell = { startDate: e.cellData.startDate, endDate: e.cellData.endDate };
|
|
204
|
+
};
|
|
205
|
+
const handleAppointmentFormOpening = (e) => {
|
|
206
|
+
// Cancel the default form opening
|
|
207
|
+
e.cancel = true;
|
|
208
|
+
// If no appointment data, return
|
|
209
|
+
if (!e.appointmentData)
|
|
210
|
+
return;
|
|
211
|
+
// Show the tooltip manually
|
|
212
|
+
e.component.showAppointmentTooltip(e.appointmentData, "#appointment-" + e.appointmentData.id.toString());
|
|
213
|
+
};
|
|
214
|
+
const onOptionChanged = ({ name, value }) => {
|
|
215
|
+
if (typeof name === 'string' && Array.isArray(value)) {
|
|
216
|
+
if (name === "selectedCellData") {
|
|
217
|
+
const startDate = value[0]?.startDate;
|
|
218
|
+
const endDate = value[value.length - 1]?.endDate;
|
|
219
|
+
if (startDate && endDate) {
|
|
220
|
+
setCalendarStartDate(startDate);
|
|
221
|
+
// Set the endDate to 23:59:59 and subtract one day
|
|
222
|
+
const endDateWithTime = new Date(endDate);
|
|
223
|
+
endDateWithTime.setDate(endDateWithTime.getDate() - 1);
|
|
224
|
+
endDateWithTime.setHours(23, 59, 59, 0);
|
|
225
|
+
setCalendarEndDate(endDateWithTime);
|
|
226
|
+
setIsRange(true);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
const onWrapperContextMenu = useCallback(() => {
|
|
232
|
+
handleFocusedRowChange(undefined);
|
|
233
|
+
}, []);
|
|
234
|
+
const onWrapperClick = useCallback(() => {
|
|
235
|
+
handleFocusedRowChange(undefined);
|
|
236
|
+
}, []);
|
|
237
|
+
return (_jsxs("div", { style: { width: "100%", height: "100%" }, children: [_jsxs("div", { style: { display: 'flex', justifyContent: 'space-between', alignItems: 'center', width: '100%', height: "48px", padding: 5 }, children: [_jsx("div", { style: { width: showSearch ? "160px" : "0", marginLeft: '10px' }, children: showSearch && (_jsx(TMCustomSearchBar, { initialValue: searchText, onSearchChange: (value) => setSearchText(value) })) }), _jsx("div", { style: { display: 'flex', alignItems: 'center', justifyContent: 'center', cursor: "default" }, children: _jsx(TMTooltip, { content: priorityLegend(), children: SDKUI_Localizator.PriorityLegend }) })] }), _jsx("div", { style: { height: "calc(100% - 48px)", width: "100%" }, children: loading ? _jsx("div", { style: { display: "flex", justifyContent: "center", alignItems: "center", height: "100%", width: "100%" }, children: _jsx(LoadIndicator, {}) })
|
|
238
|
+
: _jsx("div", { id: `tasks-calendar-wrapper-${id}`, style: { width: "100%", height: "100%" }, onContextMenu: onWrapperContextMenu, onClick: onWrapperClick, children: _jsx(Scheduler, { ref: schedulerRef, id: "tasks-calendar", dataSource: new ArrayStore({ key: 'tasks-calendar-data', data: schedulerData }), views: views, defaultCurrentView: "month", adaptivityEnabled: isMobile, editing: false, width: "100%", height: "100%", currentDate: currentCalendarDate, appointmentComponent: appointmentComponent, onAppointmentFormOpening: handleAppointmentFormOpening, appointmentTooltipComponent: appointmentTooltipComponent, onAppointmentDblClick: handleAppointmentDblClick, onCurrentDateChange: onCurrentCalendarDateChange, onAppointmentContextMenu: onAppointmentContextMenu, onCellContextMenu: onCellContextMenu, onCellClick: handleCellClick, onAppointmentClick: handleAppointmentClick, onContentReady: handleContentReady, onOptionChanged: onOptionChanged, children: _jsx(Resource, { dataSource: prioritiesResourceData, fieldExpr: "priority", label: "Priority" }) }) }) })] }));
|
|
239
|
+
};
|
|
240
|
+
export default TMTasksCalendar;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TaskDescriptor } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
import { TaskViewType } from './TMTasksUtils';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
interface TMTasksHeaderProps {
|
|
5
|
+
activeComponent: TaskViewType;
|
|
6
|
+
updateActiveComponent: (newComponent: TaskViewType) => void;
|
|
7
|
+
allTasks: Array<TaskDescriptor>;
|
|
8
|
+
appliedGlobalFilters: Array<number>;
|
|
9
|
+
setAppliedGlobalFilters: React.Dispatch<React.SetStateAction<Array<number>>>;
|
|
10
|
+
color?: string;
|
|
11
|
+
height?: string;
|
|
12
|
+
}
|
|
13
|
+
declare const TMTasksHeader: (props: TMTasksHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default TMTasksHeader;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { treeFilterDataSource } from './TMTasksUtilsView';
|
|
4
|
+
import { FilterCategoryId, TaskView } from './TMTasksUtils';
|
|
5
|
+
import { useEffect, useRef, useState } from 'react';
|
|
6
|
+
import ScrollView from 'devextreme-react/scroll-view';
|
|
7
|
+
import TMTooltip from '../../base/TMTooltip';
|
|
8
|
+
import { SDKUI_Localizator } from '../../../helper';
|
|
9
|
+
import TMDropDown from '../../editors/TMDropDown';
|
|
10
|
+
import TMTreeDropDown from '../../editors/TMTreeDropDown';
|
|
11
|
+
const StyledListHeader = styled.div ` border-bottom: 1px solid #e6e6e6; width: 100%; height: ${props => props.$height}; min-height: 55px; display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 20px; `;
|
|
12
|
+
const StyledViewChangerContainer = styled.div ` width: 100%; height: 100%; display: flex; flex-direction: row; gap: 8px; align-items: left; `;
|
|
13
|
+
const TMTasksHeader = (props) => {
|
|
14
|
+
const { activeComponent, color, height, appliedGlobalFilters, setAppliedGlobalFilters, updateActiveComponent, allTasks } = props;
|
|
15
|
+
const containerRef = useRef(null);
|
|
16
|
+
const [treeDataSource, setTreeDataSource] = useState([]);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setTreeDataSource(treeFilterDataSource(allTasks));
|
|
19
|
+
}, [allTasks]);
|
|
20
|
+
// Function to disable right-click
|
|
21
|
+
const handleContextMenu = (e) => {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
};
|
|
24
|
+
const onSelectListOrCalendarCallback = (e) => {
|
|
25
|
+
const { value } = e.target;
|
|
26
|
+
updateActiveComponent(value);
|
|
27
|
+
};
|
|
28
|
+
const isValidKey = (key) => {
|
|
29
|
+
return key !== FilterCategoryId.AllStates && key !== FilterCategoryId.AllPriorities;
|
|
30
|
+
};
|
|
31
|
+
return (_jsx(StyledListHeader, { ref: containerRef, "$color": color ?? 'black', "$height": height ?? '100%', onContextMenu: handleContextMenu, children: _jsx(ScrollView, { width: "100%", height: "100%", direction: "horizontal", useNative: true, children: _jsxs(StyledViewChangerContainer, { children: [_jsx(TMTooltip, { content: SDKUI_Localizator.SelectViewMode, showEvent: "mouseenter", hideEvent: "mouseleave", position: "top", children: _jsx(TMDropDown, { elementStyle: { minWidth: "120px", width: "120px", height: "29px" }, dataSource: [
|
|
32
|
+
{ value: TaskView.AGENDA_TASK, display: "Agenda", icon: 'clock' },
|
|
33
|
+
{ value: TaskView.CALENDAR_TASK, display: SDKUI_Localizator.Calendar, icon: 'event' },
|
|
34
|
+
{ value: TaskView.LIST_TASK, display: SDKUI_Localizator.List, icon: 'fields' },
|
|
35
|
+
], value: activeComponent, onValueChanged: onSelectListOrCalendarCallback }) }), _jsx(TMTreeDropDown, { dataSource: treeDataSource, values: appliedGlobalFilters, setValues: setAppliedGlobalFilters, displayExpr: false, isValidKey: isValidKey, elementStyle: { minWidth: "250px", height: "29px" } })] }) }) }));
|
|
36
|
+
};
|
|
37
|
+
export default TMTasksHeader;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { HomeBlogPost, TaskDescriptor, UserDescriptor } from "@topconsultnpm/sdk-ts";
|
|
3
|
+
import { DcmtInfo, FormModes, TaskContext } from "../../../ts";
|
|
4
|
+
interface TMTasksPanelContentProps {
|
|
5
|
+
id: string;
|
|
6
|
+
allTasks: Array<TaskDescriptor>;
|
|
7
|
+
getAllTasks: () => Promise<void>;
|
|
8
|
+
deleteTaskByIdsCallback: (deletedTaskIds: Array<number>) => Promise<void>;
|
|
9
|
+
addTaskCallback: (task: TaskDescriptor) => Promise<void>;
|
|
10
|
+
editTaskCallback: (task: TaskDescriptor) => Promise<void>;
|
|
11
|
+
handleNavigateToWGs: (value: HomeBlogPost | number) => Promise<void>;
|
|
12
|
+
handleNavigateToDossiers: (value: HomeBlogPost | number) => Promise<void>;
|
|
13
|
+
taskContext?: TaskContext;
|
|
14
|
+
usersList?: Array<UserDescriptor>;
|
|
15
|
+
onOpenS4TViewerRequest?: (dcmtInfo: Array<DcmtInfo>, onRefreshSearchAsync?: (() => Promise<void>)) => void;
|
|
16
|
+
s4TViewerDialogComponent?: React.ReactNode;
|
|
17
|
+
afterTaskSaved?: (task: TaskDescriptor | undefined, formMode: FormModes | undefined, forceRefresh?: boolean) => Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
declare const TMTasksPanelContent: (props: TMTasksPanelContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export default TMTasksPanelContent;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useCallback, useEffect } from "react";
|
|
3
|
+
import { useState } from "react";
|
|
4
|
+
import { applyContextFilters, AssignedTab, FilterCategoryId, filterTreeTask, getTaskAssignedToMe, TaskView } from "./TMTasksUtils";
|
|
5
|
+
import { getTaskAssignedByMe } from "../tasks/TMTasksUtils";
|
|
6
|
+
import TMTasksView from "./TMTasksView";
|
|
7
|
+
import TMTasksHeader from "./TMTasksHeader";
|
|
8
|
+
const TMTasksPanelContent = (props) => {
|
|
9
|
+
// Destructure the common props
|
|
10
|
+
const { id, handleNavigateToWGs, handleNavigateToDossiers, allTasks, getAllTasks, deleteTaskByIdsCallback, addTaskCallback, editTaskCallback, taskContext, usersList, onOpenS4TViewerRequest, s4TViewerDialogComponent, afterTaskSaved } = props;
|
|
11
|
+
// activeComponent holds the current task view type, which is determined based on the `layout` prop
|
|
12
|
+
const [activeComponent, setActiveComponent] = useState(TaskView.LIST_TASK);
|
|
13
|
+
// State to store clicked task to process for editing
|
|
14
|
+
const [currentTask, setCurrentTask] = useState(null);
|
|
15
|
+
// State to hold tasks that are currently visualized
|
|
16
|
+
const [visualizedTasks, setVisualizedTasks] = useState([]);
|
|
17
|
+
// State to count tasks in different categories
|
|
18
|
+
const [assignedToMeCount, setAssignedToMeCount] = useState(0);
|
|
19
|
+
const [assignedByMeCount, setAssignedByMeCount] = useState(0);
|
|
20
|
+
const [allTasksFilteredCount, setAllTasksFilteredCount] = useState(0);
|
|
21
|
+
// State to manage the active tab
|
|
22
|
+
const [activeTabIndex, setActiveTabIndex] = useState(AssignedTab.AssignedToMe);
|
|
23
|
+
// appliedGlobalFilters is a state variable that holds an array of filter category IDs (numbers)
|
|
24
|
+
const [appliedGlobalFilters, setAppliedGlobalFilters] = useState([FilterCategoryId.Expiring, FilterCategoryId.NewAssignedActivities, FilterCategoryId.New, FilterCategoryId.InProgress, FilterCategoryId.Pending, FilterCategoryId.Postponed, FilterCategoryId.Low, FilterCategoryId.High]);
|
|
25
|
+
// showContextualWG is a state variable that determines whether the contextual working group filter is visible
|
|
26
|
+
const [showContextualWG, setShowContextualWG] = useState(true);
|
|
27
|
+
// showContextualDossier is a state variable that determines whether the contextual dossier filter is visible
|
|
28
|
+
const [showContextualDossier, setShowContextualDossier] = useState(true);
|
|
29
|
+
// showContextualDocument is a state variable that determines whether the contextual document filter is visible
|
|
30
|
+
const [showContextualDocument, setShowContextualDocument] = useState(true);
|
|
31
|
+
// showId is a state variable that determines whether an ID-related component or feature should be displayed
|
|
32
|
+
const [showId, setShowId] = useState(false);
|
|
33
|
+
// showSearch is a state variable that controls the visibility of a search-related component or feature
|
|
34
|
+
const [showSearch, setShowSearch] = useState(true);
|
|
35
|
+
const contextualTasks = React.useMemo(() => {
|
|
36
|
+
return applyContextFilters(allTasks, showContextualWG, showContextualDossier, showContextualDocument, taskContext);
|
|
37
|
+
}, [allTasks, showContextualWG, showContextualDossier, showContextualDocument, taskContext]);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
const getFilteredTasks = (tab) => {
|
|
40
|
+
let tasks = allTasks;
|
|
41
|
+
switch (tab) {
|
|
42
|
+
case AssignedTab.AssignedToMe:
|
|
43
|
+
tasks = getTaskAssignedToMe(tasks);
|
|
44
|
+
break;
|
|
45
|
+
case AssignedTab.AssignedByMe:
|
|
46
|
+
tasks = getTaskAssignedByMe(tasks);
|
|
47
|
+
break;
|
|
48
|
+
default:
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
tasks = applyContextFilters(tasks, showContextualWG, showContextualDossier, showContextualDocument, taskContext);
|
|
52
|
+
tasks = filterTreeTask(tasks, appliedGlobalFilters);
|
|
53
|
+
return tasks;
|
|
54
|
+
};
|
|
55
|
+
setAssignedToMeCount(getFilteredTasks(AssignedTab.AssignedToMe).length);
|
|
56
|
+
setAssignedByMeCount(getFilteredTasks(AssignedTab.AssignedByMe).length);
|
|
57
|
+
setAllTasksFilteredCount(getFilteredTasks(AssignedTab.All).length);
|
|
58
|
+
setVisualizedTasks(getFilteredTasks(activeTabIndex));
|
|
59
|
+
}, [allTasks, appliedGlobalFilters, activeTabIndex, showContextualWG, showContextualDossier, showContextualDocument, taskContext]);
|
|
60
|
+
const updateActiveComponent = useCallback((newComponent) => {
|
|
61
|
+
setActiveComponent(newComponent);
|
|
62
|
+
}, []);
|
|
63
|
+
return _jsxs("div", { style: { width: "100%", height: "100%" }, children: [_jsx(TMTasksHeader, { height: "55px", activeComponent: activeComponent, updateActiveComponent: updateActiveComponent, allTasks: contextualTasks, appliedGlobalFilters: appliedGlobalFilters, setAppliedGlobalFilters: setAppliedGlobalFilters }), _jsx("div", { style: { width: "100%", height: "calc(100% - 55px)" }, children: _jsx(TMTasksView, { id: id, allTasks: allTasks, getAllTasks: getAllTasks, deleteTaskByIdsCallback: deleteTaskByIdsCallback, addTaskCallback: addTaskCallback, editTaskCallback: editTaskCallback, currentTask: currentTask, setCurrentTask: setCurrentTask, visualizedTasks: visualizedTasks, activeComponent: activeComponent, activeTabIndex: activeTabIndex, setActiveTabIndex: setActiveTabIndex, assignedToMeCount: assignedToMeCount, assignedByMeCount: assignedByMeCount, allTasksFilteredCount: allTasksFilteredCount, showId: showId, setShowId: setShowId, showSearch: showSearch, setShowSearch: setShowSearch, showContextualWG: showContextualWG, setShowContextualWG: setShowContextualWG, showContextualDossier: showContextualDossier, setShowContextualDossier: setShowContextualDossier, showContextualDocument: showContextualDocument, setShowContextualDocument: setShowContextualDocument, handleNavigateToWGs: handleNavigateToWGs, handleNavigateToDossiers: handleNavigateToDossiers, taskContext: taskContext, usersList: usersList, onOpenS4TViewerRequest: onOpenS4TViewerRequest, s4TViewerDialogComponent: s4TViewerDialogComponent, afterTaskSaved: afterTaskSaved }) })] });
|
|
64
|
+
};
|
|
65
|
+
export default TMTasksPanelContent;
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import { Appointment } from 'devextreme/ui/scheduler';
|
|
2
|
+
import { ContextMenuTypes } from 'devextreme-react/context-menu';
|
|
3
|
+
import { TaskDescriptor, Task_States, PdGs, Priorities, ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
4
|
+
import { FormModes, TaskContext } from '../../../ts';
|
|
5
|
+
import { TMDataGridContextMenuItem } from '../../base/TMDataGrid';
|
|
6
|
+
export declare const TEXT_SELECTED_COLOR = "#ff5e1a";
|
|
7
|
+
export declare const BG_COLOR_INACTIVE_WIDGET = "#fff";
|
|
8
|
+
export declare const BG_COLOR_ACTIVE_WIDGET = "#fff0b7";
|
|
9
|
+
export declare const TEXT_NOT_SELECTED_COLOR = "#2559A5";
|
|
10
|
+
export declare const TODAY_ROW_HIGHLIGHT_BG_COLOR = "#ffb74d";
|
|
11
|
+
export declare const NOT_TODAY_ROW_HIGHLIGHT_COLOR = "#ff0000";
|
|
12
|
+
export declare const NOT_TODAY_ROW_HIGHLIGHT_BG_COLOR = "#81d7fe";
|
|
13
|
+
export declare const START_DATE_MUST_BE_BEFORE_END_DATE = "StartDateMustBeBeforeEndDate";
|
|
14
|
+
export declare const REMINDER_TIME_MUST_BE_BEFORE_END_TIME = "ReminderTimeMustBeBeforeEndTime";
|
|
15
|
+
export declare enum AssignedTab {
|
|
16
|
+
AssignedToMe = 0,
|
|
17
|
+
AssignedByMe = 1,
|
|
18
|
+
All = 2,
|
|
19
|
+
TaskNotPersonalAssignedToMe = 3,
|
|
20
|
+
TaskPersonalAssignedToMe = 4
|
|
21
|
+
}
|
|
22
|
+
export type ContextMenuItem = ContextMenuTypes.Item & {
|
|
23
|
+
onItemClick?: (e: ContextMenuTypes.ItemClickEvent) => void;
|
|
24
|
+
};
|
|
25
|
+
export interface IFieldsEditability {
|
|
26
|
+
name: boolean;
|
|
27
|
+
description: boolean;
|
|
28
|
+
fromID: boolean;
|
|
29
|
+
assignedTO: boolean;
|
|
30
|
+
status: boolean;
|
|
31
|
+
priority: boolean;
|
|
32
|
+
startDate: boolean;
|
|
33
|
+
endDate: boolean;
|
|
34
|
+
remTime: boolean;
|
|
35
|
+
response: boolean;
|
|
36
|
+
}
|
|
37
|
+
export declare const sortTasks: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
38
|
+
export declare const taskIsToday: (startTime: Date, endTime: Date) => boolean;
|
|
39
|
+
export declare const taskIsExpiringSoon: (endTime: Date, remTime?: Date) => boolean;
|
|
40
|
+
export declare const appointmentBackgroundColorFn: (startTime: Date, endTime: Date) => string;
|
|
41
|
+
export declare const getPriorityLocalizatorValues: () => Array<{
|
|
42
|
+
value: string;
|
|
43
|
+
display: string;
|
|
44
|
+
}>;
|
|
45
|
+
export declare const getPriorityId: (priority: Priorities) => number;
|
|
46
|
+
export declare const getPriorityColor: (priority: Priorities) => string;
|
|
47
|
+
export declare const LIGTH_CYAN = "#80DEEA";
|
|
48
|
+
export declare const LIGTH_RED_ORGANGE = "#FFAB91";
|
|
49
|
+
export declare const prioritiesResourceData: Array<{
|
|
50
|
+
id?: number;
|
|
51
|
+
text: string;
|
|
52
|
+
color?: string;
|
|
53
|
+
}>;
|
|
54
|
+
export declare const getStatusLocalizatorValues: () => Array<{
|
|
55
|
+
value: string;
|
|
56
|
+
display: string;
|
|
57
|
+
}>;
|
|
58
|
+
export declare const getStatusLocalizatorValue: (status: Task_States) => string;
|
|
59
|
+
export declare const getPriorityLocalizatorValue: (priority: Priorities) => string;
|
|
60
|
+
export declare const getTaskAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
61
|
+
export declare const getTaskNotPersonalAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
62
|
+
export declare const getTaskPersonalAssignedToMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
63
|
+
export declare const getTaskAssignedByMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
64
|
+
export declare const getTaskNotCompletedAssignedByMe: (tasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
65
|
+
export declare const getHeaderStatusFilterConfig: () => {
|
|
66
|
+
enabled: boolean;
|
|
67
|
+
dataSource: {
|
|
68
|
+
text: string;
|
|
69
|
+
value: string;
|
|
70
|
+
}[];
|
|
71
|
+
};
|
|
72
|
+
export declare const getHeaderPriorityFilterConfig: () => {
|
|
73
|
+
enabled: boolean;
|
|
74
|
+
dataSource: {
|
|
75
|
+
text: string;
|
|
76
|
+
value: string;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
export declare const TaskView: {
|
|
80
|
+
LIST_TASK: string;
|
|
81
|
+
AGENDA_TASK: string;
|
|
82
|
+
CALENDAR_TASK: string;
|
|
83
|
+
};
|
|
84
|
+
export type TaskViewType = typeof TaskView[keyof typeof TaskView];
|
|
85
|
+
export declare enum Extended_Task_States {
|
|
86
|
+
Init = "Init",
|
|
87
|
+
Expiring = "Expiring",
|
|
88
|
+
AssignedToMe = "AssignedToMe",
|
|
89
|
+
AssignedByMe = "AssignedByMe",
|
|
90
|
+
NewAssignedActivities = "NewAssignedActivities"
|
|
91
|
+
}
|
|
92
|
+
export declare const getTaskColor: (taskState: Task_States) => {
|
|
93
|
+
color: string;
|
|
94
|
+
};
|
|
95
|
+
export declare const mergeUniqueTasks: (existing: Array<TaskDescriptor>, // Array of existing tasks
|
|
96
|
+
newTasks: Array<TaskDescriptor>) => Array<TaskDescriptor>;
|
|
97
|
+
export declare const getOriginLabel: (pdg: PdGs | undefined, ID1Name: string | undefined) => string;
|
|
98
|
+
export declare const taskValidatorAsync: (taskDescriptor: TaskDescriptor) => Promise<ValidationItem[]>;
|
|
99
|
+
export declare const gotoPDGExtendedLabel: (gotoVisible: boolean, pdg: PdGs, iD1Name: string | undefined) => string;
|
|
100
|
+
export declare const convertToSchedulerAppointments: (tasks: Array<TaskDescriptor>) => Array<Appointment>;
|
|
101
|
+
export declare const formatDate: (date: Date) => string;
|
|
102
|
+
export declare const areDifferentIDs: (fromID: number | undefined, userID: number | undefined) => boolean;
|
|
103
|
+
export declare const createTasksMenuItems: (taskDescriptor: TaskDescriptor | undefined, showId: boolean, setShowId: React.Dispatch<React.SetStateAction<boolean>>, showSearch: boolean, setShowSearch: React.Dispatch<React.SetStateAction<boolean>>, openTaskForm: (formMode: FormModes, task?: TaskDescriptor, isContextual?: boolean) => void, openEditTaskForm: (rowId: number | undefined) => void, openDuplicateTaskForm: (rowId: number | undefined) => void, onDeleteCallback: (rowIds: Array<number>) => void, markAsStatus: (rowIds: Array<number>, status: Task_States) => void, getAllTasks: () => Promise<void>, fromWG: boolean, showContextualWG: boolean, setShowContextualWG: React.Dispatch<React.SetStateAction<boolean>>, fromDossier: boolean, showContextualDossier: boolean, setShowContextualDossier: React.Dispatch<React.SetStateAction<boolean>>, fromDocument: boolean, showContextualDocument: boolean, setShowContextualDocument: React.Dispatch<React.SetStateAction<boolean>>, showGoToToday: boolean, handleGoToToday?: () => void, fromDatagrid?: boolean) => Array<TMDataGridContextMenuItem>;
|
|
104
|
+
export declare const checkIfNew: (fromId: number | undefined, isNew: number | undefined) => boolean;
|
|
105
|
+
export declare const getNewTaskCount: (tasks: Array<TaskDescriptor>) => number;
|
|
106
|
+
export declare const isTaskAssignedToAnotherUser: (task: TaskDescriptor) => boolean;
|
|
107
|
+
export declare const getMondayOfCurrentWeek: (date: Date) => Date;
|
|
108
|
+
export declare const getSundayOfCurrentWeek: (date: Date) => Date;
|
|
109
|
+
export declare const getFirstDayOfMonth: (date: Date) => Date;
|
|
110
|
+
export declare const getLastDayOfMonth: (date: Date) => Date;
|
|
111
|
+
export declare const findTasksBySearch: (visualizedTasks: Array<TaskDescriptor>, searchText: string) => TaskDescriptor[];
|
|
112
|
+
export interface CellData {
|
|
113
|
+
startDate: Date;
|
|
114
|
+
endDate: Date;
|
|
115
|
+
groups?: Record<string, unknown>;
|
|
116
|
+
text?: string;
|
|
117
|
+
}
|
|
118
|
+
export declare enum FilterCategoryId {
|
|
119
|
+
AllStates = 1,
|
|
120
|
+
AllPriorities = 2,
|
|
121
|
+
NewAssignedActivities = 1.05,
|
|
122
|
+
Expiring = 1.1,
|
|
123
|
+
New = 1.2,
|
|
124
|
+
InProgress = 1.3,
|
|
125
|
+
Completed = 1.4,
|
|
126
|
+
Pending = 1.5,
|
|
127
|
+
Postponed = 1.6,
|
|
128
|
+
Low = 2.1,
|
|
129
|
+
Normal = 2.2,
|
|
130
|
+
High = 2.3
|
|
131
|
+
}
|
|
132
|
+
export declare const filterTreeTask: (tasks: Array<TaskDescriptor>, filtersApplied: Array<FilterCategoryId>) => Array<TaskDescriptor>;
|
|
133
|
+
export declare const applyContextFilters: (allTasks: Array<TaskDescriptor>, showContextualWG: boolean, showContextualDossier: boolean, showContextualDocument: boolean, taskContext: TaskContext | undefined) => TaskDescriptor[];
|