@topconsultnpm/sdkui-react 6.17.0-test9
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 +142 -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 +1245 -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 +387 -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 +132 -0
- package/lib/components/features/tasks/TMTasksUtils.js +634 -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 +560 -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 +87 -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 +738 -0
- package/lib/helper/SDKUI_Localizator.js +7288 -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 +49 -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 +655 -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,482 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
2
|
+
import { LocalizeDcmtOperationTypes } from '../helper/Enum_Localizator';
|
|
3
|
+
import { SDK_Globals, RetrieveFileOptions, DcmtOpers, ResultTypes, RecentCategories, MetadataDataTypes, MetadataDataDomains, DataListCacheService } from '@topconsultnpm/sdk-ts';
|
|
4
|
+
import { ShowAlert, TMResultManager, FormulaHelper, TMExceptionBoxManager, TMSpinner } from '../components';
|
|
5
|
+
import { Globalization, getExceptionMessage, dialogConfirmOperation, extensionHandler, downloadBase64File, SDKUI_Globals, dcmtsFileCacheDownload, CACHE_SIZE_LIMIT, clearDcmtsFileCache, dcmtsFileCachePreview, isDcmtFileInCache, removeDcmtsFileCache, SDKUI_Localizator } from '../helper';
|
|
6
|
+
import { DcmtOperationTypes, DownloadTypes, FileExtensionHandler } from '../ts';
|
|
7
|
+
import { useFileDialog } from './useInputDialog';
|
|
8
|
+
import { isXMLFileExt } from '../helper/dcmtsHelper';
|
|
9
|
+
import { ShowConfirm } from '../components/base/TMConfirm';
|
|
10
|
+
let abortController = new AbortController();
|
|
11
|
+
export function useDcmtOperations() {
|
|
12
|
+
const [showWaitPanel, setShowWaitPanel] = useState(false);
|
|
13
|
+
const [waitPanelTitle, setWaitPanelTitle] = useState('');
|
|
14
|
+
const [showPrimary, setShowPrimary] = useState(false);
|
|
15
|
+
const [waitPanelTextPrimary, setWaitPanelTextPrimary] = useState('');
|
|
16
|
+
const [waitPanelValuePrimary, setWaitPanelValuePrimary] = useState(0);
|
|
17
|
+
const [waitPanelMaxValuePrimary, setWaitPanelMaxValuePrimary] = useState(0);
|
|
18
|
+
const [showSecondary, setShowSecondary] = useState(false);
|
|
19
|
+
const [waitPanelTextSecondary, setWaitPanelTextSecondary] = useState('');
|
|
20
|
+
const [waitPanelValueSecondary, setWaitPanelValueSecondary] = useState(0);
|
|
21
|
+
const [waitPanelMaxValueSecondary, setWaitPanelMaxValueSecondary] = useState(0);
|
|
22
|
+
const { OpenFileDialog } = useFileDialog();
|
|
23
|
+
const _downloadDcmtsAsync = async (inputDcmts, downloadMode = "download", onFileDownloaded) => {
|
|
24
|
+
if (inputDcmts === undefined)
|
|
25
|
+
return;
|
|
26
|
+
if (inputDcmts.length <= 0)
|
|
27
|
+
return;
|
|
28
|
+
if (inputDcmts.length === 1 && downloadMode === "openInNewWindow") {
|
|
29
|
+
if (!inputDcmts[0].FILEEXT)
|
|
30
|
+
return;
|
|
31
|
+
let readyToShow = extensionHandler(inputDcmts[0].FILEEXT) === FileExtensionHandler.READY_TO_SHOW;
|
|
32
|
+
if (!readyToShow) {
|
|
33
|
+
const confirmDownload = await ShowConfirm({
|
|
34
|
+
message: SDKUI_Localizator.FileExtensionNotViewable.replaceParams(inputDcmts[0].FILEEXT),
|
|
35
|
+
title: SDKUI_Localizator.ConfirmDownload,
|
|
36
|
+
okButtonText: 'Download',
|
|
37
|
+
cancelButtonText: SDKUI_Localizator.Cancel
|
|
38
|
+
});
|
|
39
|
+
if (!confirmDownload)
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
let operationTitle = 'Download File';
|
|
44
|
+
setShowWaitPanel(true);
|
|
45
|
+
setShowPrimary(inputDcmts.length > 1);
|
|
46
|
+
setShowSecondary(true);
|
|
47
|
+
setWaitPanelTitle(operationTitle);
|
|
48
|
+
abortController = new AbortController();
|
|
49
|
+
const rfo = new RetrieveFileOptions();
|
|
50
|
+
rfo.retrieveReason = DcmtOpers.ShowFile;
|
|
51
|
+
rfo.invoiceRetrieveFormat = SDKUI_Globals.userSettings.searchSettings.invoiceRetrieveFormat;
|
|
52
|
+
rfo.orderRetrieveFormat = SDKUI_Globals.userSettings.searchSettings.orderRetrieveFormat;
|
|
53
|
+
let result = [];
|
|
54
|
+
setWaitPanelMaxValuePrimary(inputDcmts.length);
|
|
55
|
+
let firstBlock = true;
|
|
56
|
+
let maxFileSize = 0;
|
|
57
|
+
for (let i = 0; i < inputDcmts.length; i++) {
|
|
58
|
+
if (abortController.signal.aborted) {
|
|
59
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborati ${i + 1} documenti` });
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
try {
|
|
63
|
+
setWaitPanelTextPrimary(`Download file ${i + 1} di ${inputDcmts.length}`);
|
|
64
|
+
let file;
|
|
65
|
+
const cacheKey = `${inputDcmts[i].TID}-${inputDcmts[i].DID}`;
|
|
66
|
+
if (dcmtsFileCacheDownload.has(cacheKey)) {
|
|
67
|
+
file = dcmtsFileCacheDownload.get(cacheKey);
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
file = await SDK_Globals.tmSession?.NewSearchEngine().RetrieveFileAsync(inputDcmts[i].TID, inputDcmts[i].DID, rfo, abortController.signal, (pd) => {
|
|
71
|
+
if (firstBlock) {
|
|
72
|
+
maxFileSize = pd.ProgressBarMaximum ?? 0;
|
|
73
|
+
setWaitPanelMaxValueSecondary(maxFileSize);
|
|
74
|
+
firstBlock = false;
|
|
75
|
+
}
|
|
76
|
+
setWaitPanelValueSecondary(pd.ProgressBarValue);
|
|
77
|
+
setWaitPanelTextSecondary(`Downloading... ${Globalization.getNumberDisplayValue(pd.ProgressBarValue, true)} / ${Globalization.getNumberDisplayValue(maxFileSize, true)}`);
|
|
78
|
+
if (pd.ProgressBarValue === pd.ProgressBarMaximum) {
|
|
79
|
+
setWaitPanelMaxValueSecondary(0);
|
|
80
|
+
setWaitPanelValueSecondary(0);
|
|
81
|
+
setWaitPanelTextSecondary('');
|
|
82
|
+
firstBlock = true;
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
setWaitPanelValuePrimary(i + 1);
|
|
87
|
+
const fileURL = window.URL.createObjectURL(file);
|
|
88
|
+
if (downloadMode === "openInNewWindow") {
|
|
89
|
+
onFileDownloaded
|
|
90
|
+
? onFileDownloaded(file)
|
|
91
|
+
: window.open(fileURL, '_blank', 'noopener');
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
const alink2 = document.createElement('a');
|
|
95
|
+
alink2.href = fileURL;
|
|
96
|
+
alink2.download = inputDcmts[i].fileName ?? file?.name;
|
|
97
|
+
alink2.target = "_blank";
|
|
98
|
+
alink2.rel = "noreferrer";
|
|
99
|
+
alink2.click();
|
|
100
|
+
}
|
|
101
|
+
if (dcmtsFileCacheDownload.size >= CACHE_SIZE_LIMIT) {
|
|
102
|
+
const oldestKey = dcmtsFileCacheDownload.keys().next().value;
|
|
103
|
+
dcmtsFileCacheDownload.delete(oldestKey);
|
|
104
|
+
}
|
|
105
|
+
dcmtsFileCacheDownload.set(cacheKey, file);
|
|
106
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.SUCCESS });
|
|
107
|
+
}
|
|
108
|
+
catch (ex) {
|
|
109
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.ERROR, description: getExceptionMessage(ex) });
|
|
110
|
+
const err = ex;
|
|
111
|
+
if (err.name === 'CanceledError') {
|
|
112
|
+
ShowAlert({ message: err.message, mode: 'warning', duration: 3000, title: 'Abort' });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
setWaitPanelTextPrimary('');
|
|
117
|
+
setWaitPanelMaxValuePrimary(0);
|
|
118
|
+
setWaitPanelValuePrimary(0);
|
|
119
|
+
setWaitPanelTextSecondary('');
|
|
120
|
+
setWaitPanelMaxValueSecondary(0);
|
|
121
|
+
setWaitPanelValueSecondary(0);
|
|
122
|
+
setShowWaitPanel(false);
|
|
123
|
+
TMResultManager.show(result, operationTitle, "TID", "DID");
|
|
124
|
+
};
|
|
125
|
+
const _downloadAttachmentsAsync = async (inputDcmts, confirmAttachments) => {
|
|
126
|
+
if (inputDcmts === undefined)
|
|
127
|
+
return;
|
|
128
|
+
if (inputDcmts.length !== 1)
|
|
129
|
+
return;
|
|
130
|
+
if (!isXMLFileExt(inputDcmts[0].FILEEXT)) {
|
|
131
|
+
ShowAlert({ message: 'Il file non è in formato XML', mode: 'warning', duration: 5000, title: 'Download Allegati' });
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
let operationTitle = 'Download Allegati XML';
|
|
135
|
+
const rfo = new RetrieveFileOptions();
|
|
136
|
+
rfo.retrieveReason = DcmtOpers.ShowFile;
|
|
137
|
+
let result = [];
|
|
138
|
+
try {
|
|
139
|
+
TMSpinner.show({ description: 'Recupero allegati...' });
|
|
140
|
+
let files = await SDK_Globals.tmSession?.NewSearchEngine().RetrieveAttachmentsAsync(inputDcmts[0].TID, inputDcmts[0].DID, -1, 1);
|
|
141
|
+
TMSpinner.hide();
|
|
142
|
+
result.push({ rowIndex: 0, id1: inputDcmts[0].TID, id2: inputDcmts[0].DID, resultType: ResultTypes.SUCCESS });
|
|
143
|
+
if (!files || files.length === 0) {
|
|
144
|
+
ShowAlert({ message: 'Nessun allegato trovato', mode: 'warning', duration: 5000, title: 'Download Allegati' });
|
|
145
|
+
return;
|
|
146
|
+
}
|
|
147
|
+
if (files.length === 1) {
|
|
148
|
+
const file = files[0];
|
|
149
|
+
if (file?.base64Content)
|
|
150
|
+
downloadBase64File(file.base64Content, file.name ?? '');
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
// Open a dialog for the user to select files
|
|
154
|
+
const selectedFiles = await confirmAttachments?.(files);
|
|
155
|
+
if (!selectedFiles)
|
|
156
|
+
return;
|
|
157
|
+
if (selectedFiles.length === 0) {
|
|
158
|
+
ShowAlert({ message: 'Nessun file selezionato', mode: 'info', duration: 3000, title: 'Download Allegati' });
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
// Download the selected files
|
|
162
|
+
for (let i = 0; i < selectedFiles.length; i++) {
|
|
163
|
+
if (abortController.signal.aborted) {
|
|
164
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborati ${i + 1} documenti` });
|
|
165
|
+
break;
|
|
166
|
+
}
|
|
167
|
+
let fd = files.find(f => f.name === selectedFiles[i]);
|
|
168
|
+
if (fd?.base64Content) {
|
|
169
|
+
downloadBase64File(fd.base64Content, fd.name ?? '');
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
TMResultManager.show(result, operationTitle, "TID", "DID");
|
|
174
|
+
}
|
|
175
|
+
catch (ex) {
|
|
176
|
+
TMSpinner.hide();
|
|
177
|
+
const err = ex;
|
|
178
|
+
if (err.name === 'CanceledError') {
|
|
179
|
+
ShowAlert({ message: err.message, mode: 'warning', duration: 3000, title: 'Abort' });
|
|
180
|
+
}
|
|
181
|
+
else
|
|
182
|
+
TMExceptionBoxManager.show({ exception: err });
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
const downloadDcmtsAsync = async (inputDcmts, downloadType = DownloadTypes.Attachment, downloadMode = "download", onFileDownloaded, confirmAttachments) => {
|
|
186
|
+
switch (downloadType) {
|
|
187
|
+
case DownloadTypes.Dcmt: return await _downloadDcmtsAsync(inputDcmts, downloadMode, onFileDownloaded);
|
|
188
|
+
case DownloadTypes.Attachment: return await _downloadAttachmentsAsync(inputDcmts, confirmAttachments);
|
|
189
|
+
default: return await _downloadDcmtsAsync(inputDcmts);
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
const uploadDcmtsAsync = async (inputDcmts, operationTitle, operType, actionAfterOperationAsync) => {
|
|
193
|
+
if (inputDcmts === undefined)
|
|
194
|
+
return;
|
|
195
|
+
if (inputDcmts.length <= 0)
|
|
196
|
+
return;
|
|
197
|
+
let file = inputDcmts[0].FILE ?? await OpenFileDialog();
|
|
198
|
+
if (!file)
|
|
199
|
+
return;
|
|
200
|
+
setShowWaitPanel(true);
|
|
201
|
+
setShowPrimary(inputDcmts.length > 1);
|
|
202
|
+
setShowSecondary(true);
|
|
203
|
+
setWaitPanelTitle(operationTitle);
|
|
204
|
+
abortController = new AbortController();
|
|
205
|
+
let result = [];
|
|
206
|
+
setWaitPanelMaxValuePrimary(inputDcmts.length);
|
|
207
|
+
let firstBlock = true;
|
|
208
|
+
let maxFileSize = 0;
|
|
209
|
+
for (let i = 0; i < inputDcmts.length; i++) {
|
|
210
|
+
if (abortController.signal.aborted) {
|
|
211
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborati ${i + 1} documenti` });
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
try {
|
|
215
|
+
setWaitPanelTextPrimary(`${SDKUI_Localizator.FileUpload} ${i + 1} di ${inputDcmts.length}`);
|
|
216
|
+
const cacheKey = `${inputDcmts[i].TID}-${inputDcmts[i].DID}`;
|
|
217
|
+
if (dcmtsFileCachePreview.has(cacheKey))
|
|
218
|
+
removeDcmtsFileCache(cacheKey);
|
|
219
|
+
let ue = SDK_Globals.tmSession?.NewUpdateEngineByID();
|
|
220
|
+
if (ue) {
|
|
221
|
+
ue.TID = inputDcmts[i].TID;
|
|
222
|
+
ue.DID = inputDcmts[i].DID;
|
|
223
|
+
await ue.SubstituteFileAsync(file, operType, undefined, abortController.signal, (pd) => {
|
|
224
|
+
if (firstBlock) {
|
|
225
|
+
maxFileSize = pd.ProgressBarMaximum ?? 0;
|
|
226
|
+
setWaitPanelMaxValueSecondary(maxFileSize);
|
|
227
|
+
firstBlock = false;
|
|
228
|
+
}
|
|
229
|
+
setWaitPanelValueSecondary(pd.ProgressBarValue);
|
|
230
|
+
setWaitPanelTextSecondary(`Uploading... ${Globalization.getNumberDisplayValue(pd.ProgressBarValue, true)} / ${Globalization.getNumberDisplayValue(maxFileSize, true)}`);
|
|
231
|
+
if (pd.ProgressBarValue === pd.ProgressBarMaximum) {
|
|
232
|
+
setWaitPanelMaxValueSecondary(0);
|
|
233
|
+
setWaitPanelValueSecondary(0);
|
|
234
|
+
setWaitPanelTextSecondary('');
|
|
235
|
+
firstBlock = true;
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
setWaitPanelValuePrimary(i + 1);
|
|
240
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.SUCCESS });
|
|
241
|
+
}
|
|
242
|
+
catch (ex) {
|
|
243
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.ERROR, description: getExceptionMessage(ex) });
|
|
244
|
+
const err = ex;
|
|
245
|
+
if (err.name === 'CanceledError') {
|
|
246
|
+
ShowAlert({ message: err.message, mode: 'warning', duration: 3000, title: 'Abort' });
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
setWaitPanelTextPrimary('');
|
|
251
|
+
setWaitPanelMaxValuePrimary(0);
|
|
252
|
+
setWaitPanelValuePrimary(0);
|
|
253
|
+
setWaitPanelTextSecondary('');
|
|
254
|
+
setWaitPanelMaxValueSecondary(0);
|
|
255
|
+
setWaitPanelValueSecondary(0);
|
|
256
|
+
actionAfterOperationAsync?.();
|
|
257
|
+
setShowWaitPanel(false);
|
|
258
|
+
TMResultManager.show(result, operationTitle, "TID", "DID");
|
|
259
|
+
};
|
|
260
|
+
const getDcmtFileAsync = async (inputDcmt, rfo, operationTitle, keepWaitPanelPrimary, bypassCache = false) => {
|
|
261
|
+
if (inputDcmt?.TID === undefined)
|
|
262
|
+
return;
|
|
263
|
+
if (inputDcmt?.DID === undefined)
|
|
264
|
+
return;
|
|
265
|
+
const cacheKey = `${inputDcmt.TID}-${inputDcmt.DID}`;
|
|
266
|
+
if (!bypassCache && dcmtsFileCachePreview.has(cacheKey))
|
|
267
|
+
return { file: dcmtsFileCachePreview.get(cacheKey), isFromCache: true };
|
|
268
|
+
setShowWaitPanel(true);
|
|
269
|
+
setShowPrimary(keepWaitPanelPrimary);
|
|
270
|
+
setShowSecondary(true);
|
|
271
|
+
setWaitPanelTitle(operationTitle);
|
|
272
|
+
abortController = new AbortController();
|
|
273
|
+
let firstBlock = true;
|
|
274
|
+
let maxFileSize = 0;
|
|
275
|
+
try {
|
|
276
|
+
setWaitPanelTextSecondary(extensionHandler(inputDcmt.FILEEXT ?? '') === FileExtensionHandler.CONVERTIBLE ? 'Conversione file in corso...' : 'Recupero file in corso...');
|
|
277
|
+
const file = await SDK_Globals.tmSession?.NewSearchEngine().RetrieveFileAsync(inputDcmt?.TID, inputDcmt?.DID, rfo, abortController.signal, (pd) => {
|
|
278
|
+
if (firstBlock) {
|
|
279
|
+
maxFileSize = pd.ProgressBarMaximum ?? 0;
|
|
280
|
+
setWaitPanelMaxValueSecondary(maxFileSize);
|
|
281
|
+
firstBlock = false;
|
|
282
|
+
}
|
|
283
|
+
setWaitPanelValueSecondary(pd.ProgressBarValue);
|
|
284
|
+
setWaitPanelTextSecondary(`Downloading... ${Globalization.getNumberDisplayValue(pd.ProgressBarValue, true)} / ${Globalization.getNumberDisplayValue(maxFileSize, true)}`);
|
|
285
|
+
if (pd.ProgressBarValue === pd.ProgressBarMaximum) {
|
|
286
|
+
setWaitPanelMaxValueSecondary(0);
|
|
287
|
+
setWaitPanelValueSecondary(0);
|
|
288
|
+
setWaitPanelTextSecondary('');
|
|
289
|
+
firstBlock = true;
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
if (dcmtsFileCachePreview.size >= CACHE_SIZE_LIMIT) {
|
|
293
|
+
const oldestKey = dcmtsFileCachePreview.keys().next().value;
|
|
294
|
+
dcmtsFileCachePreview.delete(oldestKey);
|
|
295
|
+
}
|
|
296
|
+
if (!bypassCache) {
|
|
297
|
+
dcmtsFileCachePreview.set(cacheKey, file);
|
|
298
|
+
}
|
|
299
|
+
return { file: file, isFromCache: false };
|
|
300
|
+
}
|
|
301
|
+
finally {
|
|
302
|
+
setWaitPanelTextSecondary('');
|
|
303
|
+
setWaitPanelMaxValueSecondary(0);
|
|
304
|
+
setWaitPanelValueSecondary(0);
|
|
305
|
+
setShowWaitPanel(false);
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
const getDisplayValueMetadataValueDescriptor = async (mvd) => {
|
|
309
|
+
if (!mvd)
|
|
310
|
+
return undefined;
|
|
311
|
+
if (FormulaHelper.isFormula(mvd.value))
|
|
312
|
+
return mvd.value;
|
|
313
|
+
if (mvd.isNull)
|
|
314
|
+
return "'NULL'";
|
|
315
|
+
if (!mvd.value)
|
|
316
|
+
return undefined;
|
|
317
|
+
if (mvd.md?.dataDomain === MetadataDataDomains.DataList) {
|
|
318
|
+
let dl = await DataListCacheService.GetAsync(mvd.md.dataListID);
|
|
319
|
+
let description = dl?.items?.find(o => o.value === mvd.value)?.name;
|
|
320
|
+
return (description && mvd.value !== description) ? `${description} (${mvd.value})` : mvd.value;
|
|
321
|
+
}
|
|
322
|
+
else {
|
|
323
|
+
switch (mvd.md?.dataType) {
|
|
324
|
+
case MetadataDataTypes.DateTime: return Globalization.getDateTimeDisplayValue(mvd.value, undefined, mvd.md.format?.format);
|
|
325
|
+
case MetadataDataTypes.Number: return mvd.value;
|
|
326
|
+
default: return mvd.value;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
};
|
|
330
|
+
const runOperationAsync = async (inputDcmts, dcmtOperationType, actionAfterOperationAsync) => {
|
|
331
|
+
if (inputDcmts === undefined)
|
|
332
|
+
return;
|
|
333
|
+
if (inputDcmts.length <= 0)
|
|
334
|
+
return;
|
|
335
|
+
let operationTitle = LocalizeDcmtOperationTypes(dcmtOperationType);
|
|
336
|
+
let msg = "";
|
|
337
|
+
switch (dcmtOperationType) {
|
|
338
|
+
case DcmtOperationTypes.BatchUpdate:
|
|
339
|
+
msg = `I documenti selezionati (${inputDcmts.length}) verranno modificati con i seguenti valori: <br><br>`;
|
|
340
|
+
for (const mvd of inputDcmts[0]?.metadataValues?.filter(o => o.isSelected) ?? []) {
|
|
341
|
+
let displayValue = await getDisplayValueMetadataValueDescriptor(mvd);
|
|
342
|
+
msg += `${mvd.md?.nameLoc}: <b>${displayValue}</b><br>`;
|
|
343
|
+
}
|
|
344
|
+
msg += "<br>Le modifiche apportate non potranno essere più annullate.<br><br>Continuare?";
|
|
345
|
+
break;
|
|
346
|
+
default: {
|
|
347
|
+
switch (inputDcmts.length) {
|
|
348
|
+
case 0: return;
|
|
349
|
+
default:
|
|
350
|
+
msg = `${inputDcmts.length} documento/i selezionato/i. Confermare l'operazione?`;
|
|
351
|
+
break;
|
|
352
|
+
}
|
|
353
|
+
break;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
const doOperationAsync = async () => {
|
|
357
|
+
if (dcmtOperationType == DcmtOperationTypes.SubstituteFile) {
|
|
358
|
+
await uploadDcmtsAsync(inputDcmts, operationTitle, undefined, actionAfterOperationAsync);
|
|
359
|
+
return;
|
|
360
|
+
}
|
|
361
|
+
setShowWaitPanel(true);
|
|
362
|
+
setShowPrimary(true);
|
|
363
|
+
setShowSecondary(false);
|
|
364
|
+
setWaitPanelTitle(operationTitle);
|
|
365
|
+
abortController = new AbortController();
|
|
366
|
+
let result = [];
|
|
367
|
+
setWaitPanelMaxValuePrimary(inputDcmts.length);
|
|
368
|
+
for (let i = 0; i < inputDcmts.length; i++) {
|
|
369
|
+
if (abortController.signal.aborted) {
|
|
370
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborati ${i + 1} documenti` });
|
|
371
|
+
break;
|
|
372
|
+
}
|
|
373
|
+
setWaitPanelTextPrimary(`Documento ${i + 1} di ${inputDcmts.length}`);
|
|
374
|
+
try {
|
|
375
|
+
switch (dcmtOperationType) {
|
|
376
|
+
case DcmtOperationTypes.AddToFavs:
|
|
377
|
+
await SDK_Globals.tmSession?.NewFavoritesEngine().AddOrRemoveDcmtAsync(inputDcmts[i].TID, inputDcmts[i].DID, false);
|
|
378
|
+
break;
|
|
379
|
+
case DcmtOperationTypes.BatchUpdate: {
|
|
380
|
+
let ue = SDK_Globals.tmSession?.NewUpdateEngineByID();
|
|
381
|
+
if (ue) {
|
|
382
|
+
ue.TID = inputDcmts[i].TID;
|
|
383
|
+
ue.DID = inputDcmts[i].DID;
|
|
384
|
+
ue.Metadata_ClearAll();
|
|
385
|
+
for (let metadata of inputDcmts[i].metadataValues?.filter(o => o.isSelected) ?? []) {
|
|
386
|
+
if (metadata.isNull)
|
|
387
|
+
ue.Metadata_AddNull(metadata.mid);
|
|
388
|
+
else if (FormulaHelper.isFormula(metadata.value))
|
|
389
|
+
ue.Metadata_AddString(metadata.mid, metadata.value);
|
|
390
|
+
else {
|
|
391
|
+
switch (metadata.md?.dataType) {
|
|
392
|
+
case MetadataDataTypes.DateTime:
|
|
393
|
+
ue.Metadata_AddDateTime(metadata.mid, new Date(metadata.value));
|
|
394
|
+
break;
|
|
395
|
+
case MetadataDataTypes.Number:
|
|
396
|
+
ue.Metadata_AddNumber(metadata.mid, metadata.value);
|
|
397
|
+
break;
|
|
398
|
+
case MetadataDataTypes.Varchar:
|
|
399
|
+
ue.Metadata_AddString(metadata.mid, metadata.value);
|
|
400
|
+
break;
|
|
401
|
+
default: ue.Metadata_AddNull(metadata.mid);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
await ue.UpdateAsync();
|
|
406
|
+
}
|
|
407
|
+
break;
|
|
408
|
+
}
|
|
409
|
+
case DcmtOperationTypes.CheckFile:
|
|
410
|
+
await SDK_Globals.tmSession?.NewSearchEngine().CheckFileAsync(inputDcmts[i].TID, inputDcmts[i].DID);
|
|
411
|
+
break;
|
|
412
|
+
case DcmtOperationTypes.ConvertFile: {
|
|
413
|
+
let ue = SDK_Globals.tmSession?.NewUpdateEngineByID();
|
|
414
|
+
if (ue) {
|
|
415
|
+
ue.TID = inputDcmts[i].TID;
|
|
416
|
+
ue.DID = inputDcmts[i].DID;
|
|
417
|
+
await ue.ConvertFileAsync(inputDcmts[i].fileFormat);
|
|
418
|
+
}
|
|
419
|
+
break;
|
|
420
|
+
}
|
|
421
|
+
case DcmtOperationTypes.FreeSearchReindex:
|
|
422
|
+
await SDK_Globals.tmSession?.NewSearchEngine().FreeSearchReindexDcmtAsync(inputDcmts[i].TID, inputDcmts[i].DID);
|
|
423
|
+
break;
|
|
424
|
+
case DcmtOperationTypes.FreeSearchPurge:
|
|
425
|
+
await SDK_Globals.tmSession?.NewSearchEngine().FreeSearchPurgeDcmtAsync(inputDcmts[i].TID, inputDcmts[i].DID);
|
|
426
|
+
break;
|
|
427
|
+
case DcmtOperationTypes.LogDelete:
|
|
428
|
+
await SDK_Globals.tmSession?.NewDeleteEngine().LogDeleteByIDAsync(inputDcmts[i].TID, inputDcmts[i].DID);
|
|
429
|
+
break;
|
|
430
|
+
case DcmtOperationTypes.PhysDelete:
|
|
431
|
+
await SDK_Globals.tmSession?.NewDeleteEngine().PhysDeleteByIDAsync(inputDcmts[i].TID, inputDcmts[i].DID, true);
|
|
432
|
+
break;
|
|
433
|
+
case DcmtOperationTypes.RemoveFromFavs:
|
|
434
|
+
await SDK_Globals.tmSession?.NewFavoritesEngine().AddOrRemoveDcmtAsync(inputDcmts[i].TID, inputDcmts[i].DID, true);
|
|
435
|
+
break;
|
|
436
|
+
case DcmtOperationTypes.RemoveFromRecentsArk:
|
|
437
|
+
await SDK_Globals.tmSession?.NewRecentEngine().AddOrRemoveDcmtAsync(inputDcmts[i].TID, inputDcmts[i].DID, RecentCategories.Archive, true);
|
|
438
|
+
break;
|
|
439
|
+
case DcmtOperationTypes.RemoveFromRecentsView:
|
|
440
|
+
await SDK_Globals.tmSession?.NewRecentEngine().AddOrRemoveDcmtAsync(inputDcmts[i].TID, inputDcmts[i].DID, RecentCategories.View, true);
|
|
441
|
+
break;
|
|
442
|
+
case DcmtOperationTypes.RemoveFromWorkgroup:
|
|
443
|
+
await SDK_Globals.tmSession?.NewWorkingGroupEngine().DcmtsAddOrRemoveAsync(inputDcmts[i]?.workingGroupId ?? 0, inputDcmts[i].TID, inputDcmts[i].DID, true);
|
|
444
|
+
break;
|
|
445
|
+
case DcmtOperationTypes.Undelete:
|
|
446
|
+
await SDK_Globals.tmSession?.NewDeleteEngine().UndeleteByIDAsync(inputDcmts[i].TID, inputDcmts[i].DID);
|
|
447
|
+
break;
|
|
448
|
+
case DcmtOperationTypes.VerifySign: {
|
|
449
|
+
let ue = SDK_Globals.tmSession?.NewUpdateEngineByID();
|
|
450
|
+
if (ue) {
|
|
451
|
+
ue.TID = inputDcmts[i].TID;
|
|
452
|
+
ue.DID = inputDcmts[i].DID;
|
|
453
|
+
await ue.VerifySignAsync();
|
|
454
|
+
}
|
|
455
|
+
break;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.SUCCESS });
|
|
459
|
+
}
|
|
460
|
+
catch (ex) {
|
|
461
|
+
result.push({ rowIndex: i, id1: inputDcmts[i].TID, id2: inputDcmts[i].DID, resultType: ResultTypes.ERROR, description: getExceptionMessage(ex) });
|
|
462
|
+
const err = ex;
|
|
463
|
+
if (err.name === 'CanceledError') {
|
|
464
|
+
ShowAlert({ message: err.message, mode: 'warning', duration: 3000, title: 'Abort' });
|
|
465
|
+
}
|
|
466
|
+
}
|
|
467
|
+
setWaitPanelValuePrimary(i + 1);
|
|
468
|
+
}
|
|
469
|
+
setWaitPanelMaxValuePrimary(0);
|
|
470
|
+
setWaitPanelValuePrimary(0);
|
|
471
|
+
setWaitPanelTextPrimary('');
|
|
472
|
+
setShowWaitPanel(false);
|
|
473
|
+
actionAfterOperationAsync?.();
|
|
474
|
+
TMResultManager.show(result, operationTitle, "TID", "DID");
|
|
475
|
+
};
|
|
476
|
+
dialogConfirmOperation(operationTitle, msg, doOperationAsync);
|
|
477
|
+
};
|
|
478
|
+
return {
|
|
479
|
+
abortController, showWaitPanel, showPrimary, waitPanelTitle, waitPanelTextPrimary, waitPanelValuePrimary, waitPanelMaxValuePrimary, showSecondary, waitPanelTextSecondary, waitPanelValueSecondary, waitPanelMaxValueSecondary,
|
|
480
|
+
downloadDcmtsAsync, getDcmtFileAsync, clearDcmtsFileCache, removeDcmtsFileCache, isDcmtFileInCache, runOperationAsync
|
|
481
|
+
};
|
|
482
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FormModes } from "../ts";
|
|
2
|
+
import { JobTypes, ObjectClasses, ValidationItem } from "@topconsultnpm/sdk-ts";
|
|
3
|
+
export declare class SaveFormOptions {
|
|
4
|
+
objClass: ObjectClasses;
|
|
5
|
+
objType: JobTypes;
|
|
6
|
+
loadDataAfterSave: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function useSaveForm<T>(formMode: FormModes, id: number | undefined, sfo: SaveFormOptions, validator?: (d: T) => Promise<ValidationItem[] | undefined>, onSaved?: (newDescriptor: T) => void, onStatusChanged?: (isModified: boolean, isValid: boolean) => void, customizeFormData?: (d: T) => T, saveCustomAsync?: () => Promise<number>): {
|
|
9
|
+
formData: T | undefined;
|
|
10
|
+
setFormData: import("react").Dispatch<import("react").SetStateAction<T | undefined>>;
|
|
11
|
+
formDataOrig: T | undefined;
|
|
12
|
+
setFormDataOrig: import("react").Dispatch<import("react").SetStateAction<T | undefined>>;
|
|
13
|
+
validationItems: ValidationItem[];
|
|
14
|
+
exception: any;
|
|
15
|
+
saveDataAsync: (...args: any[]) => Promise<void>;
|
|
16
|
+
};
|
|
17
|
+
export declare function useApplyForm<T>(formMode: FormModes, inputData: T | undefined, newData: () => T, onApplied?: (newDescriptor: T) => void): {
|
|
18
|
+
formData: T;
|
|
19
|
+
setFormData: import("react").Dispatch<import("react").SetStateAction<T>>;
|
|
20
|
+
formDataOrig: T;
|
|
21
|
+
exception: any;
|
|
22
|
+
setException: import("react").Dispatch<any>;
|
|
23
|
+
applyData: () => void;
|
|
24
|
+
};
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
import { FormModes } from "../ts";
|
|
3
|
+
import { TMExceptionBoxManager, TMSpinner } from "../components";
|
|
4
|
+
import { AreaEngine, BasketTypeEngine, DataListEngine, DcmtTypeEngine, DiskEngine, GroupEngine, JobEngine, JobTypes, LDAPDescriptor, LDAPProviders, NumeratorDescriptor, ObjectClasses, ProcessEngine, RelationEngine, ResultTypes, SAPEngine, SavedQueryEngine, SignCertDescriptor, TaskEngine, TreeDescriptor, TSADescriptor, UserEngine, WorkingGroupDescriptor } from "@topconsultnpm/sdk-ts";
|
|
5
|
+
import { PlatformObjectService } from "../services";
|
|
6
|
+
import { SDKUI_Localizator, calcIsModified } from "../helper";
|
|
7
|
+
export class SaveFormOptions {
|
|
8
|
+
constructor() {
|
|
9
|
+
this.objType = JobTypes.None;
|
|
10
|
+
this.loadDataAfterSave = true;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export function useSaveForm(formMode, id, sfo, validator, onSaved, onStatusChanged, customizeFormData, saveCustomAsync) {
|
|
14
|
+
const [formData, setFormData] = useState();
|
|
15
|
+
const [formDataOrig, setFormDataOrig] = useState();
|
|
16
|
+
const [exception, setException] = useState();
|
|
17
|
+
const [validationItems, setValidationItems] = useState([]);
|
|
18
|
+
// #region Normalize object
|
|
19
|
+
function normalizeLDAP(d) {
|
|
20
|
+
d.provider = LDAPProviders.MSActiveDirectory;
|
|
21
|
+
return d;
|
|
22
|
+
}
|
|
23
|
+
function normalizeSignCert(d) {
|
|
24
|
+
d.isAuto = 1;
|
|
25
|
+
return d;
|
|
26
|
+
}
|
|
27
|
+
function normalizeView() {
|
|
28
|
+
let d = DcmtTypeEngine.NewDcmtTypeDescriptor();
|
|
29
|
+
if (d)
|
|
30
|
+
d.isView = true;
|
|
31
|
+
return d;
|
|
32
|
+
}
|
|
33
|
+
// #endregion
|
|
34
|
+
const getDataAsync = async (id, fm) => {
|
|
35
|
+
switch (fm) {
|
|
36
|
+
case FormModes.Create:
|
|
37
|
+
switch (sfo.objClass) {
|
|
38
|
+
case ObjectClasses.Area: return AreaEngine.NewAreaDescriptor();
|
|
39
|
+
case ObjectClasses.BasketType: return BasketTypeEngine.NewBasketTypeDescriptor();
|
|
40
|
+
case ObjectClasses.DcmtType: return DcmtTypeEngine.NewDcmtTypeDescriptor();
|
|
41
|
+
case ObjectClasses.DataList: return DataListEngine.NewDataListDescriptor();
|
|
42
|
+
case ObjectClasses.Disk: return DiskEngine.NewDiskDescriptor();
|
|
43
|
+
case ObjectClasses.Group: return GroupEngine.NewGroupDescriptor();
|
|
44
|
+
case ObjectClasses.LDAP: return normalizeLDAP(new LDAPDescriptor());
|
|
45
|
+
case ObjectClasses.Numerator: return new NumeratorDescriptor();
|
|
46
|
+
case ObjectClasses.SignCert: return normalizeSignCert(new SignCertDescriptor());
|
|
47
|
+
case ObjectClasses.Tree: return new TreeDescriptor();
|
|
48
|
+
case ObjectClasses.TSA: return new TSADescriptor();
|
|
49
|
+
case ObjectClasses.User: return UserEngine.NewUserDescriptor();
|
|
50
|
+
case ObjectClasses.Process: return ProcessEngine.NewProcessDescriptor();
|
|
51
|
+
case ObjectClasses.Job: return JobEngine.NewJobDescriptor(sfo.objType);
|
|
52
|
+
case ObjectClasses.Relation: return RelationEngine.NewRelationDescriptor();
|
|
53
|
+
case ObjectClasses.SAPLogin: return SAPEngine.NewSAPLoginDescriptor();
|
|
54
|
+
case ObjectClasses.SavedQuery: return SavedQueryEngine.NewSavedQueryDescriptor();
|
|
55
|
+
case ObjectClasses.Task: return TaskEngine.NewTaskDescriptor();
|
|
56
|
+
case ObjectClasses.View: return normalizeView();
|
|
57
|
+
case ObjectClasses.WorkingGroup: return new WorkingGroupDescriptor();
|
|
58
|
+
default: return undefined;
|
|
59
|
+
}
|
|
60
|
+
default:
|
|
61
|
+
switch (sfo.objClass) {
|
|
62
|
+
default: return await PlatformObjectService.retrieveAdminAsync(sfo.objClass, sfo.objType, id);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const loadDataAsync = async (id, fm) => {
|
|
67
|
+
try {
|
|
68
|
+
TMSpinner.show({ description: `${SDKUI_Localizator.Loading} (id: ${id}) ...`, backgroundColor: 'transparent' });
|
|
69
|
+
setException(undefined);
|
|
70
|
+
let d = await getDataAsync?.(id, fm);
|
|
71
|
+
if (customizeFormData)
|
|
72
|
+
d = customizeFormData(d);
|
|
73
|
+
setFormDataOrig({ ...d });
|
|
74
|
+
if (fm == FormModes.Duplicate)
|
|
75
|
+
d.name = d.name + ' (copy)';
|
|
76
|
+
setFormData({ ...d });
|
|
77
|
+
return d;
|
|
78
|
+
}
|
|
79
|
+
catch (e) {
|
|
80
|
+
setException(e);
|
|
81
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
82
|
+
return undefined;
|
|
83
|
+
}
|
|
84
|
+
finally {
|
|
85
|
+
TMSpinner.hide();
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
const setDataAsync = async (fm, d, ...args) => {
|
|
89
|
+
switch (fm) {
|
|
90
|
+
case FormModes.Update: return await PlatformObjectService.updateAsync(sfo.objClass, sfo.objType, d, ...args);
|
|
91
|
+
default: return await PlatformObjectService.createAsync(sfo.objClass, sfo.objType, d);
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const saveDataAsync = async (...args) => {
|
|
95
|
+
if (!formData)
|
|
96
|
+
return;
|
|
97
|
+
let newId = -1;
|
|
98
|
+
if (saveCustomAsync)
|
|
99
|
+
newId = await saveCustomAsync();
|
|
100
|
+
else
|
|
101
|
+
newId = await setDataAsync?.(formMode, formData, ...args);
|
|
102
|
+
let newData;
|
|
103
|
+
if (sfo.loadDataAfterSave)
|
|
104
|
+
newData = await loadDataAsync(newId, FormModes.Update);
|
|
105
|
+
else {
|
|
106
|
+
newData = formData;
|
|
107
|
+
newData.id = newId;
|
|
108
|
+
setFormData(newData);
|
|
109
|
+
setFormDataOrig(newData);
|
|
110
|
+
}
|
|
111
|
+
onSaved?.(newData);
|
|
112
|
+
};
|
|
113
|
+
useEffect(() => { id && loadDataAsync(id, formMode); }, [id, formMode]);
|
|
114
|
+
useEffect(() => {
|
|
115
|
+
if (!formData)
|
|
116
|
+
return;
|
|
117
|
+
validator?.(formData).then(result => {
|
|
118
|
+
let vil = result ?? [];
|
|
119
|
+
setValidationItems(vil);
|
|
120
|
+
onStatusChanged?.(calcIsModified(formData, formDataOrig), vil.findIndex(o => o.ResultType != ResultTypes.SUCCESS) >= 0);
|
|
121
|
+
}).catch((err) => { TMExceptionBoxManager.show({ exception: err }); });
|
|
122
|
+
}, [JSON.stringify(formData)]);
|
|
123
|
+
return { formData, setFormData, formDataOrig, setFormDataOrig, validationItems, exception, saveDataAsync };
|
|
124
|
+
}
|
|
125
|
+
export function useApplyForm(formMode, inputData, newData, onApplied) {
|
|
126
|
+
const [formData, setFormData] = useState(inputData ?? newData());
|
|
127
|
+
const [formDataOrig, setFormDataOrig] = useState(inputData ?? newData());
|
|
128
|
+
const [exception, setException] = useState();
|
|
129
|
+
const loadData = (inputData, fm) => {
|
|
130
|
+
try {
|
|
131
|
+
setException(undefined);
|
|
132
|
+
let outputData;
|
|
133
|
+
switch (fm) {
|
|
134
|
+
case FormModes.Create:
|
|
135
|
+
outputData = newData();
|
|
136
|
+
break;
|
|
137
|
+
default:
|
|
138
|
+
outputData = { ...inputData };
|
|
139
|
+
break;
|
|
140
|
+
}
|
|
141
|
+
setFormDataOrig({ ...outputData });
|
|
142
|
+
// TODO: in DUPLICA deve partire già modificato?
|
|
143
|
+
// if (fm == FormModes.Duplicate) outputData.id = -1;
|
|
144
|
+
setFormData({ ...outputData });
|
|
145
|
+
return outputData;
|
|
146
|
+
}
|
|
147
|
+
catch (ex) {
|
|
148
|
+
setException(ex);
|
|
149
|
+
TMExceptionBoxManager.show({ exception: ex });
|
|
150
|
+
return undefined;
|
|
151
|
+
}
|
|
152
|
+
;
|
|
153
|
+
};
|
|
154
|
+
const applyData = () => { onApplied?.(formData); loadData(formData, FormModes.Update); };
|
|
155
|
+
useEffect(() => { loadData(inputData, formMode); }, [inputData, formMode]);
|
|
156
|
+
return { formData, setFormData, formDataOrig, exception, setException, applyData };
|
|
157
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FileDescriptor, FileFormats } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
export declare const useInputCvtFormatDialog: () => [() => Promise<FileFormats>, () => JSX.Element];
|
|
3
|
+
export declare const useFileDialog: () => {
|
|
4
|
+
OpenFileDialog: () => Promise<File | undefined>;
|
|
5
|
+
};
|
|
6
|
+
export declare const useInputAttachmentsDialog: () => {
|
|
7
|
+
openConfirmAttachmentsDialog: (list: FileDescriptor[]) => Promise<string[] | undefined>;
|
|
8
|
+
ConfirmAttachmentsDialog: () => import("react/jsx-runtime").JSX.Element | null;
|
|
9
|
+
};
|