@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,439 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { ResultTypes, SDK_Globals, WorkingGroupCacheService, WorkingGroupEngine } from "@topconsultnpm/sdk-ts";
|
|
4
|
+
import { TreeView } from 'devextreme-react';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { buildFolderHierarchy, findFileItems, setFolderTreeViewItems } from '../../base/TMFileManagerUtils';
|
|
7
|
+
import TMSpinner from '../../base/TMSpinner';
|
|
8
|
+
import { TMExceptionBoxManager } from '../../base/TMPopUp';
|
|
9
|
+
import { useDeviceType } from '../../base/TMDeviceProvider';
|
|
10
|
+
import { SDKUI_Localizator, getExceptionMessage, Globalization, IconUserGroup, IconFolder, calcResponsiveSizes } from '../../../helper';
|
|
11
|
+
import { useSaveForm, SaveFormOptions } from '../../../hooks/useForm';
|
|
12
|
+
import { FormModes } from '../../../ts';
|
|
13
|
+
import { TMColors } from '../../../utils/theme';
|
|
14
|
+
import TMDataGrid from '../../base/TMDataGrid';
|
|
15
|
+
import TMTooltip from '../../base/TMTooltip';
|
|
16
|
+
import { TMLayoutWaitingContainer } from '../../base/TMWaitPanel';
|
|
17
|
+
import { TMResultManager } from '../../forms/TMResultDialog';
|
|
18
|
+
import TMSaveForm from '../../forms/TMSaveForm';
|
|
19
|
+
// Returns a formatted name and optional description based on document type and item DID.
|
|
20
|
+
export const getDocumentDisplayInfo = (descriptor, item) => {
|
|
21
|
+
if (!descriptor || !descriptor.nameLoc || !item?.DID) {
|
|
22
|
+
return { name: '', description: '' };
|
|
23
|
+
}
|
|
24
|
+
const maxTotalLength = 50;
|
|
25
|
+
const didPart = ` (DID ${item.DID})`;
|
|
26
|
+
const maxNameLocLength = maxTotalLength - didPart.length;
|
|
27
|
+
let trimmedName = descriptor.nameLoc;
|
|
28
|
+
if (descriptor.nameLoc.length > maxNameLocLength) {
|
|
29
|
+
trimmedName = descriptor.nameLoc.slice(0, maxNameLocLength);
|
|
30
|
+
}
|
|
31
|
+
const name = `${trimmedName}${didPart}`;
|
|
32
|
+
const description = descriptor.nameLoc.length > maxNameLocLength
|
|
33
|
+
? `${descriptor.nameLoc}${didPart}`
|
|
34
|
+
: '';
|
|
35
|
+
return { name, description };
|
|
36
|
+
};
|
|
37
|
+
let abortController = new AbortController();
|
|
38
|
+
const TMWGsCopyMoveForm = (props) => {
|
|
39
|
+
const { mode, workingGroups, context, folder, onClose, focusedWorkingGroupId = undefined, fetchTreeFileSystemForWorkingGroup, fetchArchivedDocumentsForWorkingGroup } = props;
|
|
40
|
+
// Destructure context to get the current working group descriptor or document type descriptor based on the engine type
|
|
41
|
+
const currentWorkingGroupDescriptor = context.engine === 'WorkingGroupEngine' ? (context.object ?? undefined) : undefined;
|
|
42
|
+
const currentDcmtTypeDescriptor = context.engine === 'SearchEngine' ? (context.object ?? undefined) : undefined;
|
|
43
|
+
// Get the current device type (e.g., mobile, tablet, desktop) using a custom hook.
|
|
44
|
+
const deviceType = useDeviceType();
|
|
45
|
+
// Stepper state: manages the current step in a multi-step UI
|
|
46
|
+
const [currentStep, setCurrentStep] = useState(0);
|
|
47
|
+
// State to store the list of working groups
|
|
48
|
+
const [wgs, setWgs] = useState([]);
|
|
49
|
+
// State to store the currently selected working group, or undefined if none is selected
|
|
50
|
+
const [selectedWg, setSelectedWg] = useState(undefined);
|
|
51
|
+
// State hook to store the currently focused row key, initially set to undefined
|
|
52
|
+
const [focusedRowKey, setFocusedRowKey] = useState(focusedWorkingGroupId ?? undefined);
|
|
53
|
+
// State to store selected row keys
|
|
54
|
+
const [selectedRowKeys, setSelectedRowKeys] = useState([]);
|
|
55
|
+
// State to manage the file system hierarchy
|
|
56
|
+
const [treeFs, setTreeFs] = useState(undefined);
|
|
57
|
+
// State to store transformed directory data for file manager
|
|
58
|
+
const [treeViewData, setTreeViewData] = useState([]);
|
|
59
|
+
// State to manage the selected file
|
|
60
|
+
const [selectedFolder, setSelectedFolder] = useState(undefined);
|
|
61
|
+
// State variable to control the visibility of the wait panel
|
|
62
|
+
const [showWaitPanel, setShowWaitPanel] = useState(false);
|
|
63
|
+
// State variable to store the title of the wait panel
|
|
64
|
+
const [waitPanelTitle, setWaitPanelTitle] = useState('');
|
|
65
|
+
// State variable to control the visibility of the primary section of the wait panel
|
|
66
|
+
const [showPrimary, setShowPrimary] = useState(false);
|
|
67
|
+
// State variable to store the primary text of the wait panel
|
|
68
|
+
const [waitPanelTextPrimary, setWaitPanelTextPrimary] = useState('');
|
|
69
|
+
// State variable to track the current value of the primary progress indicator in the wait panel
|
|
70
|
+
const [waitPanelValuePrimary, setWaitPanelValuePrimary] = useState(0);
|
|
71
|
+
// State variable to define the maximum value for the primary progress indicator in the wait panel
|
|
72
|
+
const [waitPanelMaxValuePrimary, setWaitPanelMaxValuePrimary] = useState(0);
|
|
73
|
+
// State to manage the current working group descriptor, initially set to the one from context
|
|
74
|
+
const steps = useMemo(() => {
|
|
75
|
+
return mode === 'copyToWgArchivedDoc'
|
|
76
|
+
? [
|
|
77
|
+
{ id: 0, title: SDKUI_Localizator.ChooseGroup, subtitle: selectedWg ? selectedWg.name : undefined }
|
|
78
|
+
]
|
|
79
|
+
: [
|
|
80
|
+
{ id: 0, title: SDKUI_Localizator.ChooseGroup, subtitle: selectedWg ? selectedWg.name : undefined },
|
|
81
|
+
{ id: 1, title: SDKUI_Localizator.ChooseFolder, subtitle: selectedFolder ? selectedFolder.name : undefined }
|
|
82
|
+
];
|
|
83
|
+
}, [mode, selectedWg, selectedFolder]);
|
|
84
|
+
// State to manage the current step in the stepper, initially set to 0
|
|
85
|
+
const adjustedCurrentStep = useMemo(() => {
|
|
86
|
+
return currentStep >= steps.length ? 0 : currentStep;
|
|
87
|
+
}, [currentStep, steps.length]);
|
|
88
|
+
// Disable if currentWorkingGroup or its id, selectedWg, or selectedFolder are undefined; recomputed only when dependencies change
|
|
89
|
+
const isDisabled = useMemo(() => {
|
|
90
|
+
if (context.engine === 'WorkingGroupEngine') {
|
|
91
|
+
return !currentWorkingGroupDescriptor?.id || !selectedWg || !selectedFolder;
|
|
92
|
+
}
|
|
93
|
+
if (context.engine === 'SearchEngine') {
|
|
94
|
+
if (mode === 'copyToWgArchivedDoc') {
|
|
95
|
+
return !selectedWg;
|
|
96
|
+
}
|
|
97
|
+
return !selectedWg || !selectedFolder;
|
|
98
|
+
}
|
|
99
|
+
return true;
|
|
100
|
+
}, [context, currentWorkingGroupDescriptor, selectedWg, selectedFolder]);
|
|
101
|
+
// Sort working groups and set focused row to current and select current working group and go to step
|
|
102
|
+
useEffect(() => {
|
|
103
|
+
const loadWorkingGroups = async () => {
|
|
104
|
+
let groupsToUse = workingGroups;
|
|
105
|
+
if (!groupsToUse) {
|
|
106
|
+
try {
|
|
107
|
+
TMSpinner.show({ description: SDKUI_Localizator.LoadingWorkGroups });
|
|
108
|
+
// Clear cache and fetch working groups
|
|
109
|
+
WorkingGroupCacheService.RemoveAll();
|
|
110
|
+
const fetchedGroups = await WorkingGroupCacheService.GetAllAsync();
|
|
111
|
+
groupsToUse = fetchedGroups;
|
|
112
|
+
}
|
|
113
|
+
catch (error) {
|
|
114
|
+
TMExceptionBoxManager.show({ exception: error });
|
|
115
|
+
}
|
|
116
|
+
finally {
|
|
117
|
+
TMSpinner.hide();
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
if (groupsToUse) {
|
|
121
|
+
const sortedGroups = [...groupsToUse].sort((a, b) => {
|
|
122
|
+
if (!a.name && !b.name)
|
|
123
|
+
return 0;
|
|
124
|
+
if (!a.name)
|
|
125
|
+
return 1;
|
|
126
|
+
if (!b.name)
|
|
127
|
+
return -1;
|
|
128
|
+
return a.name.localeCompare(b.name);
|
|
129
|
+
});
|
|
130
|
+
setWgs(sortedGroups);
|
|
131
|
+
if (currentWorkingGroupDescriptor) {
|
|
132
|
+
setFocusedRowKey(currentWorkingGroupDescriptor.id);
|
|
133
|
+
setSelectedWg(currentWorkingGroupDescriptor);
|
|
134
|
+
setCurrentStep(1);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
};
|
|
138
|
+
loadWorkingGroups();
|
|
139
|
+
}, [workingGroups, currentWorkingGroupDescriptor]);
|
|
140
|
+
// Fetch the file system tree for the selected working group when it or the list of WGs changes
|
|
141
|
+
useEffect(() => {
|
|
142
|
+
const fetchWgTree = async () => {
|
|
143
|
+
if (!selectedWg || !selectedWg.id || mode === 'copyToWgArchivedDoc')
|
|
144
|
+
return;
|
|
145
|
+
try {
|
|
146
|
+
const workingGroupEngine = new WorkingGroupEngine(SDK_Globals.tmSession);
|
|
147
|
+
const wgTreeFileSystem = await workingGroupEngine.DraftsGetTreeAsync(selectedWg.id);
|
|
148
|
+
const { folderMap } = buildFolderHierarchy(wgTreeFileSystem, undefined, undefined, undefined);
|
|
149
|
+
const rootFolder = { id: -1, name: SDKUI_Localizator.Drafts, isDirectory: true, items: Array.from(folderMap.values()), };
|
|
150
|
+
const rootTreeViewItem = { id: -1, text: rootFolder.name, subFileFolderCount: rootFolder.items.filter(item => !item.isDirectory).length, expanded: true, items: setFolderTreeViewItems(rootFolder.items), };
|
|
151
|
+
setTreeFs(rootFolder);
|
|
152
|
+
setTreeViewData([rootTreeViewItem]);
|
|
153
|
+
}
|
|
154
|
+
catch (error) {
|
|
155
|
+
TMExceptionBoxManager.show({ exception: error });
|
|
156
|
+
}
|
|
157
|
+
};
|
|
158
|
+
if (selectedWg && wgs.length) {
|
|
159
|
+
fetchWgTree();
|
|
160
|
+
}
|
|
161
|
+
}, [selectedWg, wgs]);
|
|
162
|
+
// When the current step resets to the first step (index 0), clear the selected folder by setting it to undefined
|
|
163
|
+
useEffect(() => {
|
|
164
|
+
if (currentStep === 0) {
|
|
165
|
+
setSelectedFolder(undefined);
|
|
166
|
+
}
|
|
167
|
+
}, [currentStep]);
|
|
168
|
+
// Single selection mode for data grid
|
|
169
|
+
const selection = useMemo(() => {
|
|
170
|
+
return { mode: 'single' };
|
|
171
|
+
}, []);
|
|
172
|
+
// Handles focus change in the data grid
|
|
173
|
+
const onFocusedRowChanged = useCallback((e) => {
|
|
174
|
+
setFocusedRowKey(e.row?.key);
|
|
175
|
+
}, []);
|
|
176
|
+
// Handles selection change in the data grid
|
|
177
|
+
const onSelectionChanged = useCallback((e) => {
|
|
178
|
+
const selectedKeys = e.component.getSelectedRowKeys() ?? [];
|
|
179
|
+
setSelectedRowKeys(selectedKeys);
|
|
180
|
+
}, []);
|
|
181
|
+
const onRowClick = useCallback((e) => {
|
|
182
|
+
if (e.data && mode === 'copyToWgArchivedDoc') {
|
|
183
|
+
setSelectedWg(e.data);
|
|
184
|
+
}
|
|
185
|
+
}, [mode]);
|
|
186
|
+
// Handle selected folder
|
|
187
|
+
const handleSelectedFolder = (folderItem) => {
|
|
188
|
+
setSelectedFolder(folderItem);
|
|
189
|
+
};
|
|
190
|
+
// Function to handle item click event in the TreeView
|
|
191
|
+
const handleTreeViewItemClick = (e) => {
|
|
192
|
+
if (!e || !treeFs)
|
|
193
|
+
return;
|
|
194
|
+
const clickedItemId = e.itemData.id;
|
|
195
|
+
const item = clickedItemId === treeFs.id ? treeFs : findFileItems(treeFs.items, clickedItemId);
|
|
196
|
+
handleSelectedFolder(item);
|
|
197
|
+
};
|
|
198
|
+
const validator = async () => {
|
|
199
|
+
let vil = [];
|
|
200
|
+
return vil;
|
|
201
|
+
};
|
|
202
|
+
// Returns true if one row and folder are selected and either differs from the current group or folder
|
|
203
|
+
const isLocalSelectionModified = () => {
|
|
204
|
+
// Ensure a single row is selected and a folder is selected
|
|
205
|
+
if (currentWorkingGroupDescriptor !== undefined && selectedWg !== undefined && folder !== undefined && selectedFolder !== undefined && currentStep === 1) {
|
|
206
|
+
// Check if the selected row and folder differ from the current state
|
|
207
|
+
const isGroupChanged = selectedWg.id !== currentWorkingGroupDescriptor.id;
|
|
208
|
+
const isFolderChanged = selectedFolder.id !== folder.id;
|
|
209
|
+
return isGroupChanged || isFolderChanged;
|
|
210
|
+
}
|
|
211
|
+
// Default to unmodified
|
|
212
|
+
return false;
|
|
213
|
+
};
|
|
214
|
+
const { validationItems, exception } = useSaveForm(FormModes.Update, 0, new SaveFormOptions(), validator);
|
|
215
|
+
const getTitle = () => {
|
|
216
|
+
if (context.engine === 'WorkingGroupEngine') {
|
|
217
|
+
return (mode === 'copy' ? SDKUI_Localizator.Copy : SDKUI_Localizator.Move) + (context.selectedDrafts.length === 1
|
|
218
|
+
? ': ' + context.selectedDrafts[0].name
|
|
219
|
+
: ' (' + context.selectedDrafts.length + ')');
|
|
220
|
+
}
|
|
221
|
+
else if (context.engine === 'SearchEngine' && currentDcmtTypeDescriptor) {
|
|
222
|
+
return SDKUI_Localizator.Copy + (context.selectedDrafts.length === 1
|
|
223
|
+
? ': ' + getDocumentDisplayInfo(currentDcmtTypeDescriptor, context.selectedDrafts[0]).name
|
|
224
|
+
: ' (' + context.selectedDrafts.length + ')');
|
|
225
|
+
}
|
|
226
|
+
return '-';
|
|
227
|
+
};
|
|
228
|
+
const onSaveAsync = async (currentWg) => {
|
|
229
|
+
if (isDisabled)
|
|
230
|
+
return;
|
|
231
|
+
try {
|
|
232
|
+
const targetWorkingGroup = currentWg ?? selectedWg;
|
|
233
|
+
const isWgFolderRequired = mode !== 'copyToWgArchivedDoc';
|
|
234
|
+
const missingWgOrFolder = isWgFolderRequired ? (!targetWorkingGroup || !selectedFolder) : !targetWorkingGroup;
|
|
235
|
+
if (missingWgOrFolder) {
|
|
236
|
+
return Promise.resolve();
|
|
237
|
+
}
|
|
238
|
+
setWaitPanelTitle(mode !== 'move' ? SDKUI_Localizator.Copy : SDKUI_Localizator.Move);
|
|
239
|
+
setShowWaitPanel(true);
|
|
240
|
+
setShowPrimary(true);
|
|
241
|
+
abortController = new AbortController();
|
|
242
|
+
let result = [];
|
|
243
|
+
const totalDrafts = context.selectedDrafts.length;
|
|
244
|
+
setWaitPanelMaxValuePrimary(totalDrafts);
|
|
245
|
+
const workingGroupEngine = new WorkingGroupEngine(SDK_Globals.tmSession);
|
|
246
|
+
const selectedFolderId = selectedFolder?.id === -1 ? 0 : selectedFolder?.id ?? 0;
|
|
247
|
+
const isWgEngine = context.engine === 'WorkingGroupEngine';
|
|
248
|
+
const isSearchEngine = context.engine === 'SearchEngine';
|
|
249
|
+
for (let i = 0; i < totalDrafts; i++) {
|
|
250
|
+
if (abortController.signal.aborted) {
|
|
251
|
+
result.push({
|
|
252
|
+
rowIndex: i + 1,
|
|
253
|
+
id1: i + 1,
|
|
254
|
+
id2: i + 1,
|
|
255
|
+
resultType: ResultTypes.WARNING,
|
|
256
|
+
description: SDKUI_Localizator.OperationFilesInterrupted.replaceParams(i + 1)
|
|
257
|
+
});
|
|
258
|
+
break;
|
|
259
|
+
}
|
|
260
|
+
setWaitPanelValuePrimary(i + 1);
|
|
261
|
+
setWaitPanelTextPrimary(`${i + 1}/${totalDrafts}`);
|
|
262
|
+
const item = context.selectedDrafts[i];
|
|
263
|
+
try {
|
|
264
|
+
if (isWgEngine && targetWorkingGroup && targetWorkingGroup.id && currentWorkingGroupDescriptor && currentWorkingGroupDescriptor.id && selectedFolder && item.did) {
|
|
265
|
+
const draft = item;
|
|
266
|
+
const did = draft.did ?? 0;
|
|
267
|
+
if (mode === 'copy') {
|
|
268
|
+
await workingGroupEngine.DraftsCopyAsync(currentWorkingGroupDescriptor.id, did, targetWorkingGroup.id, selectedFolderId);
|
|
269
|
+
if (fetchTreeFileSystemForWorkingGroup) {
|
|
270
|
+
await fetchTreeFileSystemForWorkingGroup(targetWorkingGroup.id);
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
else if (mode === 'move') {
|
|
274
|
+
await workingGroupEngine.DraftsMoveAsync(currentWorkingGroupDescriptor.id, did, targetWorkingGroup.id, selectedFolderId);
|
|
275
|
+
if (fetchTreeFileSystemForWorkingGroup) {
|
|
276
|
+
await fetchTreeFileSystemForWorkingGroup(targetWorkingGroup.id);
|
|
277
|
+
await fetchTreeFileSystemForWorkingGroup(currentWorkingGroupDescriptor.id);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
else if (isSearchEngine) {
|
|
282
|
+
if (mode === 'copyToWgDraft' && targetWorkingGroup && targetWorkingGroup.id && selectedFolder && currentDcmtTypeDescriptor) {
|
|
283
|
+
const documentDisplayInfo = getDocumentDisplayInfo(currentDcmtTypeDescriptor, item);
|
|
284
|
+
await workingGroupEngine.DraftsAddByIDAsync(targetWorkingGroup.id, selectedFolderId, documentDisplayInfo.name, documentDisplayInfo.description, item.TID, item.DID);
|
|
285
|
+
if (fetchTreeFileSystemForWorkingGroup)
|
|
286
|
+
await fetchTreeFileSystemForWorkingGroup(targetWorkingGroup.id);
|
|
287
|
+
}
|
|
288
|
+
else if (mode === 'copyToWgArchivedDoc' && targetWorkingGroup && targetWorkingGroup.id) {
|
|
289
|
+
await workingGroupEngine.DcmtsAddOrRemoveAsync(targetWorkingGroup.id, item.TID, item.DID, false);
|
|
290
|
+
if (fetchArchivedDocumentsForWorkingGroup)
|
|
291
|
+
await fetchArchivedDocumentsForWorkingGroup(targetWorkingGroup.id);
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
result.push({
|
|
295
|
+
rowIndex: i + 1,
|
|
296
|
+
id1: item.DID ?? i + 1,
|
|
297
|
+
id2: item.TID ?? i + 1,
|
|
298
|
+
description: SDKUI_Localizator.UpdateCompletedSuccessfully,
|
|
299
|
+
resultType: ResultTypes.SUCCESS
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
catch (err) {
|
|
303
|
+
result.push({
|
|
304
|
+
rowIndex: i + 1,
|
|
305
|
+
id1: item.DID ?? i + 1,
|
|
306
|
+
id2: item.TID ?? i + 1,
|
|
307
|
+
resultType: ResultTypes.ERROR,
|
|
308
|
+
description: getExceptionMessage(err)
|
|
309
|
+
});
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
setWaitPanelTextPrimary('');
|
|
313
|
+
setWaitPanelMaxValuePrimary(0);
|
|
314
|
+
setWaitPanelValuePrimary(0);
|
|
315
|
+
setShowWaitPanel(false);
|
|
316
|
+
TMResultManager.show(result, mode !== 'move' ? SDKUI_Localizator.Copy : SDKUI_Localizator.Move, "ID", undefined);
|
|
317
|
+
onClose();
|
|
318
|
+
}
|
|
319
|
+
catch (e) {
|
|
320
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
321
|
+
}
|
|
322
|
+
};
|
|
323
|
+
// Callback function triggered when a row in the DataGrid is double-clicked
|
|
324
|
+
const onRowDblClick = useCallback((e) => {
|
|
325
|
+
// Check if the event contains valid row data
|
|
326
|
+
if (e.data) {
|
|
327
|
+
// Determine whether the workflow requires selecting a working group folder
|
|
328
|
+
const isWgFolderRequired = mode !== 'copyToWgArchivedDoc';
|
|
329
|
+
// Set the selected working group to the data from the clicked row
|
|
330
|
+
setSelectedWg(e.data);
|
|
331
|
+
// If a working group folder selection is required, move to the next step
|
|
332
|
+
if (isWgFolderRequired) {
|
|
333
|
+
setCurrentStep(1);
|
|
334
|
+
}
|
|
335
|
+
else {
|
|
336
|
+
// Otherwise, saving
|
|
337
|
+
onSaveAsync(e.data);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}, [mode, onSaveAsync]);
|
|
341
|
+
const cellIconRender = useCallback((cellData) => {
|
|
342
|
+
const data = cellData.data;
|
|
343
|
+
const tooltipContent = (_jsxs("div", { style: { textAlign: 'left' }, children: [_jsx("div", { children: _jsx("strong", { children: SDKUI_Localizator.WorkGroup }) }), _jsx("hr", {}), _jsxs("div", { children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "ID:" }), " ", data.id] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.Name, ":"] }), " ", data.name ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.OwnerName, ":"] }), " ", data.ownerName ?? '-'] }), _jsxs("div", { children: [_jsxs("span", { style: { fontWeight: 'bold' }, children: [SDKUI_Localizator.CreationTime, ":"] }), " ", Globalization.getDateTimeDisplayValue(data.creationTime)] })] }));
|
|
344
|
+
return _jsx(TMTooltip, { content: tooltipContent, children: _jsx(IconUserGroup, { color: TMColors.primary }) });
|
|
345
|
+
}, []);
|
|
346
|
+
const cellDafaultRender = useCallback((cellData) => {
|
|
347
|
+
return _jsx("span", { children: cellData.value });
|
|
348
|
+
}, []);
|
|
349
|
+
const cellNameRender = useCallback((cellData) => {
|
|
350
|
+
const data = cellData.data;
|
|
351
|
+
return _jsx("div", { style: { display: "flex", alignItems: "center", gap: "8px" }, children: _jsx("span", { children: data.name }) });
|
|
352
|
+
}, []);
|
|
353
|
+
const dataColumns = useMemo(() => {
|
|
354
|
+
return ([
|
|
355
|
+
{ dataField: 'id', caption: "ID", dataType: 'string', visible: false, cellRender: cellDafaultRender },
|
|
356
|
+
{ caption: "", dataType: 'string', cellRender: cellIconRender, width: "30px", allowFiltering: false },
|
|
357
|
+
{ dataField: 'name', caption: SDKUI_Localizator.Name, dataType: 'string', cellRender: cellNameRender },
|
|
358
|
+
{ dataField: 'description', caption: SDKUI_Localizator.Description, dataType: 'string', cellRender: cellDafaultRender },
|
|
359
|
+
{ dataField: "ownerName", caption: SDKUI_Localizator.OwnerName, dataType: 'string', cellRender: cellDafaultRender },
|
|
360
|
+
]);
|
|
361
|
+
}, []);
|
|
362
|
+
// Render each TreeView item (directories) with custom styling/icons
|
|
363
|
+
const renderTreeViewItem = (itemData) => {
|
|
364
|
+
const isSelected = selectedFolder && selectedFolder.id === itemData.id;
|
|
365
|
+
const tooltipContent = _jsxs("div", { style: { textAlign: "center" }, children: [_jsx("span", { style: { fontWeight: 'bold' }, children: "ID" }), ": ", itemData.id] });
|
|
366
|
+
return (_jsxs("div", { style: { whiteSpace: "nowrap", display: "flex", alignItems: "center" }, className: isSelected ? 'treeview-selected-item-manager' : '', children: [_jsx(TMTooltip, { content: tooltipContent, children: _jsx(IconFolder, { fontSize: 24, style: { marginRight: 5, color: TMColors.iconLight } }) }), itemData.text] }));
|
|
367
|
+
};
|
|
368
|
+
return _jsx(TMSaveForm, { title: getTitle(), showTitleFormMode: false, showErrorCount: false, showUndoButton: false, hasNavigation: false, skipIsModifiedCheck: true, isModal: true, width: calcResponsiveSizes(deviceType, '800px', '800px', '95%'), height: '550px', validationItems: validationItems, exception: exception, isModified: isLocalSelectionModified(), showToolbar: false, showSaveButton: false, onClose: onClose, children: _jsxs(TMLayoutWaitingContainer, { direction: 'vertical', showWaitPanel: showWaitPanel, showWaitPanelPrimary: showPrimary, waitPanelTitle: waitPanelTitle, waitPanelTextPrimary: waitPanelTextPrimary, waitPanelValuePrimary: waitPanelValuePrimary, waitPanelMaxValuePrimary: waitPanelMaxValuePrimary, isCancelable: true, abortController: abortController, children: [_jsx("div", { style: { width: "100%", height: '48px' }, children: _jsx(TMStepNavigator, { steps: steps, currentStep: adjustedCurrentStep, onStepChange: (stepIndex) => { setCurrentStep(stepIndex); } }) }), _jsxs("div", { style: {
|
|
369
|
+
marginTop: '10px',
|
|
370
|
+
padding: '10px',
|
|
371
|
+
borderRadius: '8px',
|
|
372
|
+
boxShadow: '3px 0 5px #D3D3D3BF, -3px 0 5px #D3D3D3BF, 0 3px 5px #D3D3D3BF, 0 -3px 5px #D3D3D3BF',
|
|
373
|
+
border: '1px solid rgba(0,0,0,0.15)',
|
|
374
|
+
width: '100%',
|
|
375
|
+
height: 'calc(100% - 113px)',
|
|
376
|
+
overflow: 'auto',
|
|
377
|
+
}, children: [(currentStep === 0 && wgs.length > 0) &&
|
|
378
|
+
_jsx(TMDataGrid, { dataColumns: dataColumns, dataSource: wgs, selection: selection, focusedRowKey: focusedRowKey, onFocusedRowChanged: onFocusedRowChanged, selectedRowKeys: [...selectedRowKeys], onSelectionChanged: onSelectionChanged, onRowClick: onRowClick, onRowDblClick: onRowDblClick, autoNavigateToFocusedRow: true, showColumnHeaders: false }), (currentStep === 1) &&
|
|
379
|
+
_jsx(TreeView, { dataSource: treeViewData, displayExpr: "text", itemRender: renderTreeViewItem, onItemClick: handleTreeViewItemClick })] }), _jsxs("div", { style: {
|
|
380
|
+
width: "100%",
|
|
381
|
+
height: '45px',
|
|
382
|
+
marginTop: "10px",
|
|
383
|
+
display: 'flex',
|
|
384
|
+
justifyContent: 'flex-end',
|
|
385
|
+
alignItems: 'center',
|
|
386
|
+
gap: '10px'
|
|
387
|
+
}, children: [_jsx("button", { onClick: () => onSaveAsync(), disabled: isDisabled, style: {
|
|
388
|
+
background: 'none',
|
|
389
|
+
border: 'none',
|
|
390
|
+
color: isDisabled ? '#a0a0a0' : TMColors.primary,
|
|
391
|
+
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
392
|
+
padding: '6px 14px',
|
|
393
|
+
borderRadius: '6px',
|
|
394
|
+
transition: 'background-color 0.3s, color 0.3s',
|
|
395
|
+
}, onMouseEnter: e => {
|
|
396
|
+
if (!isDisabled) {
|
|
397
|
+
e.currentTarget.style.backgroundColor = '#e6f0ff';
|
|
398
|
+
e.currentTarget.style.color = '#004a99';
|
|
399
|
+
}
|
|
400
|
+
}, onMouseLeave: e => {
|
|
401
|
+
if (!isDisabled) {
|
|
402
|
+
e.currentTarget.style.backgroundColor = 'transparent';
|
|
403
|
+
e.currentTarget.style.color = TMColors.primary;
|
|
404
|
+
}
|
|
405
|
+
}, children: mode !== 'move' ? SDKUI_Localizator.Copy : SDKUI_Localizator.Move }), _jsx("button", { onClick: () => onClose(), style: {
|
|
406
|
+
background: 'none',
|
|
407
|
+
border: 'none',
|
|
408
|
+
color: TMColors.primary,
|
|
409
|
+
cursor: 'pointer',
|
|
410
|
+
padding: '6px 14px',
|
|
411
|
+
borderRadius: '6px',
|
|
412
|
+
transition: 'background-color 0.3s, color 0.3s',
|
|
413
|
+
}, onMouseEnter: e => {
|
|
414
|
+
e.currentTarget.style.backgroundColor = '#e6f0ff';
|
|
415
|
+
e.currentTarget.style.color = '#004a99';
|
|
416
|
+
}, onMouseLeave: e => {
|
|
417
|
+
e.currentTarget.style.backgroundColor = 'transparent';
|
|
418
|
+
e.currentTarget.style.color = TMColors.primary;
|
|
419
|
+
}, children: SDKUI_Localizator.Cancel })] })] }) });
|
|
420
|
+
};
|
|
421
|
+
export default TMWGsCopyMoveForm;
|
|
422
|
+
const StepSpan = styled.span `
|
|
423
|
+
color: ${({ $isCurrent, $isPast }) => ($isCurrent ? TMColors.primary : $isPast ? '#555' : '#888')};
|
|
424
|
+
font-weight: ${({ $isCurrent }) => ($isCurrent ? 600 : 400)};
|
|
425
|
+
cursor: ${({ $isPast }) => ($isPast ? 'pointer' : 'default')};
|
|
426
|
+
transition: color 0.3s ease;
|
|
427
|
+
&:hover {
|
|
428
|
+
color: ${({ $isPast }) => ($isPast ? '#007bff' : undefined)};
|
|
429
|
+
text-decoration: ${({ $isPast }) => ($isPast ? 'underline' : 'none')};
|
|
430
|
+
}
|
|
431
|
+
`;
|
|
432
|
+
export const TMStepNavigator = (props) => {
|
|
433
|
+
const { steps, currentStep, onStepChange } = props;
|
|
434
|
+
return (_jsx("div", { style: { display: 'flex', justifyContent: 'center' }, children: _jsx("div", { style: { display: 'flex', alignItems: 'center', backgroundColor: '#f9f9f9', padding: '6px 16px', borderRadius: '999px', boxShadow: '0 1px 4px rgba(0, 0, 0, 0.05)' }, children: steps.map((step, index) => {
|
|
435
|
+
const isPastStep = index < currentStep;
|
|
436
|
+
const isCurrent = currentStep === index;
|
|
437
|
+
return _jsxs("div", { style: { display: 'flex', alignItems: 'center' }, children: [_jsx(StepSpan, { "$isCurrent": isCurrent, "$isPast": isPastStep, onClick: isPastStep ? () => onStepChange(index) : undefined, children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'center' }, children: [_jsx("span", { children: step.title }), step.subtitle && _jsxs("span", { style: { fontSize: '0.90em', fontStyle: "italic" }, children: ["\"", step.subtitle, "\""] })] }) }), index < steps.length - 1 && (_jsx("span", { style: { margin: '0 8px', color: '#ddd' }, children: _jsx("i", { className: 'dx-icon-greater' }) }))] }, step.id);
|
|
438
|
+
}) }) }));
|
|
439
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { DcmtTypeDescriptor } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
import { DeviceType } from "../../base/TMDeviceProvider";
|
|
3
|
+
interface IWorkflowOperationButtonsProps {
|
|
4
|
+
dtd: DcmtTypeDescriptor | undefined;
|
|
5
|
+
approveDisable?: boolean;
|
|
6
|
+
signApproveDisable?: boolean;
|
|
7
|
+
rejectDisable?: boolean;
|
|
8
|
+
reassignDisable?: boolean;
|
|
9
|
+
infoDisable?: boolean;
|
|
10
|
+
deviceType?: DeviceType;
|
|
11
|
+
onApprove?: () => void;
|
|
12
|
+
onSignApprove?: () => void;
|
|
13
|
+
onReject?: () => void;
|
|
14
|
+
onReAssign?: () => void;
|
|
15
|
+
onMoreInfo?: () => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const WorkFlowOperationButtons: (props: IWorkflowOperationButtonsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare const WorkFlowApproveRejectPopUp: ({ TID, DID, deviceType, isReject, selectedItems, onClose, onCompleted }: {
|
|
19
|
+
TID?: number;
|
|
20
|
+
DID?: number;
|
|
21
|
+
deviceType?: DeviceType;
|
|
22
|
+
selectedItems?: any[];
|
|
23
|
+
isReject: number;
|
|
24
|
+
onClose?: () => void;
|
|
25
|
+
onCompleted?: () => Promise<void>;
|
|
26
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export declare const WorkFlowReAssignPopUp: ({ DID, TID, deviceType, onClose, selectedItems, onCompleted }: {
|
|
28
|
+
TID?: number;
|
|
29
|
+
DID?: number;
|
|
30
|
+
deviceType?: DeviceType;
|
|
31
|
+
onClose?: () => void;
|
|
32
|
+
selectedItems?: any[];
|
|
33
|
+
onCompleted?: () => Promise<void>;
|
|
34
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export declare const WorkFlowMoreInfoPopUp: ({ DID, TID, deviceType, onClose, onCompleted }: {
|
|
36
|
+
TID?: number;
|
|
37
|
+
DID?: number;
|
|
38
|
+
deviceType?: DeviceType;
|
|
39
|
+
onClose?: () => void;
|
|
40
|
+
onCompleted?: () => Promise<void>;
|
|
41
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
42
|
+
export {};
|