@topconsultnpm/sdkui-react 6.19.0-dev1.10
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 +62 -0
- package/lib/components/base/Styled.js +297 -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/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 +209 -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 +224 -0
- package/lib/components/base/TMFileManagerDataGridView.d.ts +14 -0
- package/lib/components/base/TMFileManagerDataGridView.js +89 -0
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +16 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +138 -0
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +17 -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 +54 -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 +280 -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 +355 -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 +51 -0
- package/lib/components/choosers/TMMetadataChooser.js +134 -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 +33 -0
- package/lib/components/editors/TMHtmlEditor.js +143 -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 +480 -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 +19 -0
- package/lib/components/features/archive/TMArchive.js +162 -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 +308 -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 +8 -0
- package/lib/components/features/documents/TMDcmtBlog.js +77 -0
- package/lib/components/features/documents/TMDcmtForm.d.ts +50 -0
- package/lib/components/features/documents/TMDcmtForm.js +1083 -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/TMDragDropOverlay.d.ts +6 -0
- package/lib/components/features/documents/TMDragDropOverlay.js +96 -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 +19 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +288 -0
- package/lib/components/features/documents/TMRelationViewer.d.ts +71 -0
- package/lib/components/features/documents/TMRelationViewer.js +573 -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 +31 -0
- package/lib/components/features/search/TMSearch.js +244 -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 +426 -0
- package/lib/components/features/search/TMSearchResult.d.ts +44 -0
- package/lib/components/features/search/TMSearchResult.js +1293 -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 +10 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.js +654 -0
- package/lib/components/features/search/TMTreeSelector.d.ts +12 -0
- package/lib/components/features/search/TMTreeSelector.js +270 -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 +40 -0
- package/lib/components/features/workflow/TMWorkflowPopup.js +273 -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 +681 -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 +203 -0
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +9 -0
- package/lib/components/features/workflow/diagram/WFDiagram.js +1666 -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 +38 -0
- package/lib/components/forms/TMSaveForm.d.ts +31 -0
- package/lib/components/forms/TMSaveForm.js +176 -0
- package/lib/components/grids/TMBlogs.d.ts +102 -0
- package/lib/components/grids/TMBlogs.js +721 -0
- package/lib/components/grids/TMBlogsUtils.d.ts +99 -0
- package/lib/components/grids/TMBlogsUtils.js +226 -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 +102 -0
- package/lib/components/index.js +123 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +9 -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 +251 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +11 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +82 -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 +41 -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 +15 -0
- package/lib/components/query/TMQuerySummary.js +35 -0
- package/lib/components/settings/SettingsAppearance.d.ts +14 -0
- package/lib/components/settings/SettingsAppearance.js +65 -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 +341 -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/Globalization.d.ts +14 -0
- package/lib/helper/Globalization.js +80 -0
- package/lib/helper/SDKUI_Globals.d.ts +93 -0
- package/lib/helper/SDKUI_Globals.js +165 -0
- package/lib/helper/SDKUI_Localizator.d.ts +649 -0
- package/lib/helper/SDKUI_Localizator.js +6385 -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/TMIcons.d.ts +271 -0
- package/lib/helper/TMIcons.js +664 -0
- package/lib/helper/TMImageLibrary.d.ts +3 -0
- package/lib/helper/TMImageLibrary.js +466 -0
- package/lib/helper/TMUtils.d.ts +20 -0
- package/lib/helper/TMUtils.js +176 -0
- package/lib/helper/dcmtsHelper.d.ts +5 -0
- package/lib/helper/dcmtsHelper.js +25 -0
- package/lib/helper/helpers.d.ts +84 -0
- package/lib/helper/helpers.js +824 -0
- package/lib/helper/index.d.ts +11 -0
- package/lib/helper/index.js +11 -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/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 +11 -0
- package/lib/index.js +14 -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/stories/TMButton.stories.d.ts +4 -0
- package/lib/stories/TMButton.stories.js +29 -0
- package/lib/stories/TMDataGrid.stories.d.ts +9 -0
- package/lib/stories/TMDataGrid.stories.js +310 -0
- package/lib/stories/TMHtmlContentDisplay.stories.d.ts +6 -0
- package/lib/stories/TMHtmlContentDisplay.stories.js +45 -0
- package/lib/stories/TMHtmlEditor.stories.d.ts +6 -0
- package/lib/stories/TMHtmlEditor.stories.js +49 -0
- package/lib/stories/TMIcons.stories.d.ts +4 -0
- package/lib/stories/TMIcons.stories.js +13 -0
- package/lib/stories/TMSDKUI_Localizator.stories.d.ts +4 -0
- package/lib/stories/TMSDKUI_Localizator.stories.js +123 -0
- package/lib/stories/TMStoriesUtils.d.ts +1 -0
- package/lib/stories/TMStoriesUtils.js +10 -0
- package/lib/stories/TMUserAvatar.stories.d.ts +6 -0
- package/lib/stories/TMUserAvatar.stories.js +20 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/lib/ts/types.d.ts +296 -0
- package/lib/ts/types.js +85 -0
- package/lib/utils/theme.d.ts +68 -0
- package/lib/utils/theme.js +80 -0
- package/package.json +54 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from "react";
|
|
3
|
+
import Toppy from '../../../assets/Toppy-generico.png';
|
|
4
|
+
const TMDragDropOverlay = (props) => {
|
|
5
|
+
const { handleFile, refocusAfterFileInput } = props;
|
|
6
|
+
const [dragOver, setDragOver] = useState(false);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
const handleWindowDragEnter = (e) => {
|
|
9
|
+
e.preventDefault();
|
|
10
|
+
setDragOver(true);
|
|
11
|
+
};
|
|
12
|
+
const handleWindowDragOver = (e) => {
|
|
13
|
+
e.preventDefault();
|
|
14
|
+
};
|
|
15
|
+
const handleWindowDragLeave = (e) => {
|
|
16
|
+
e.preventDefault();
|
|
17
|
+
if (e.clientX === 0 && e.clientY === 0) {
|
|
18
|
+
setDragOver(false);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const handleWindowDrop = (e) => {
|
|
22
|
+
e.preventDefault();
|
|
23
|
+
setDragOver(false);
|
|
24
|
+
const file = e.dataTransfer?.files?.[0];
|
|
25
|
+
if (file) {
|
|
26
|
+
handleFile(file);
|
|
27
|
+
refocusAfterFileInput();
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
window.addEventListener('dragenter', handleWindowDragEnter);
|
|
31
|
+
window.addEventListener('dragover', handleWindowDragOver);
|
|
32
|
+
window.addEventListener('dragleave', handleWindowDragLeave);
|
|
33
|
+
window.addEventListener('drop', handleWindowDrop);
|
|
34
|
+
return () => {
|
|
35
|
+
window.removeEventListener('dragenter', handleWindowDragEnter);
|
|
36
|
+
window.removeEventListener('dragover', handleWindowDragOver);
|
|
37
|
+
window.removeEventListener('dragleave', handleWindowDragLeave);
|
|
38
|
+
window.removeEventListener('drop', handleWindowDrop);
|
|
39
|
+
};
|
|
40
|
+
}, [handleFile, refocusAfterFileInput]);
|
|
41
|
+
return (_jsxs("div", { style: {
|
|
42
|
+
display: 'flex',
|
|
43
|
+
opacity: dragOver ? 1 : 0,
|
|
44
|
+
pointerEvents: dragOver ? 'auto' : 'none',
|
|
45
|
+
position: 'fixed',
|
|
46
|
+
top: 0,
|
|
47
|
+
left: 0,
|
|
48
|
+
width: '100%',
|
|
49
|
+
height: '100%',
|
|
50
|
+
background: 'rgba(0,0,0,0.5)',
|
|
51
|
+
zIndex: 999999,
|
|
52
|
+
alignItems: 'center',
|
|
53
|
+
justifyContent: 'center',
|
|
54
|
+
color: '#fff',
|
|
55
|
+
fontSize: '1.8rem',
|
|
56
|
+
fontWeight: 700,
|
|
57
|
+
borderRadius: 12,
|
|
58
|
+
cursor: 'copy',
|
|
59
|
+
boxShadow: '0 8px 20px rgba(0,0,0,0.3)',
|
|
60
|
+
backdropFilter: 'blur(5px)',
|
|
61
|
+
transition: 'opacity 0.2s, transform 0.2s, background 0.2s',
|
|
62
|
+
}, onDragEnter: (e) => { e.preventDefault(); e.stopPropagation(); setDragOver(true); }, onDragOver: (e) => { e.preventDefault(); e.stopPropagation(); setDragOver(true); }, onDragLeave: (e) => {
|
|
63
|
+
e.preventDefault();
|
|
64
|
+
e.stopPropagation();
|
|
65
|
+
// Solo se il cursore ha lasciato il div principale
|
|
66
|
+
if (!e.currentTarget.contains(e.relatedTarget)) {
|
|
67
|
+
setDragOver(false);
|
|
68
|
+
}
|
|
69
|
+
}, onDrop: (e) => {
|
|
70
|
+
e.preventDefault();
|
|
71
|
+
e.stopPropagation();
|
|
72
|
+
const file = e.dataTransfer.files[0];
|
|
73
|
+
if (file)
|
|
74
|
+
handleFile(file);
|
|
75
|
+
refocusAfterFileInput();
|
|
76
|
+
setDragOver(false);
|
|
77
|
+
}, children: [_jsx("div", { onClick: () => {
|
|
78
|
+
setDragOver(false);
|
|
79
|
+
handleFile(null);
|
|
80
|
+
}, style: {
|
|
81
|
+
position: 'absolute',
|
|
82
|
+
top: 15,
|
|
83
|
+
right: 20,
|
|
84
|
+
cursor: 'pointer',
|
|
85
|
+
fontSize: '1.8rem',
|
|
86
|
+
fontWeight: 700,
|
|
87
|
+
color: '#fff',
|
|
88
|
+
}, children: _jsx("i", { className: 'dx-icon-close', style: { fontSize: 25 } }) }), _jsxs("div", { style: {
|
|
89
|
+
display: 'flex',
|
|
90
|
+
flexDirection: 'column',
|
|
91
|
+
alignItems: 'center',
|
|
92
|
+
gap: 20,
|
|
93
|
+
textAlign: 'center',
|
|
94
|
+
}, children: [_jsx("img", { src: Toppy, alt: "Toppy", style: { width: 80, height: 'auto' } }), _jsx("div", { style: { fontSize: '1.6rem' }, children: "Rilascia il tuo file qui" })] })] }));
|
|
95
|
+
};
|
|
96
|
+
export default TMDragDropOverlay;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DeviceType } from '../../base/TMDeviceProvider';
|
|
3
|
+
interface ITMFileUploader {
|
|
4
|
+
onFileUpload?: (file: File | null) => void;
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
isRequired?: boolean;
|
|
7
|
+
defaultBlob?: File | null;
|
|
8
|
+
deviceType?: DeviceType;
|
|
9
|
+
isResizingActive?: boolean;
|
|
10
|
+
showTMPanel?: boolean;
|
|
11
|
+
enableDragDropOverlay?: boolean;
|
|
12
|
+
}
|
|
13
|
+
declare const TMFileUploader: React.FC<ITMFileUploader>;
|
|
14
|
+
export default TMFileUploader;
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { IconFolderOpen, SDKUI_Localizator, formatBytes, IconClear, extensionHandler, IconCloseOutline } from '../../../helper';
|
|
5
|
+
import usePreventFileDrop from '../../../hooks/usePreventFileDrop';
|
|
6
|
+
import { FileExtensionHandler } from '../../../ts';
|
|
7
|
+
import { TMColors } from '../../../utils/theme';
|
|
8
|
+
import TMButton from '../../base/TMButton';
|
|
9
|
+
import { DeviceType } from '../../base/TMDeviceProvider';
|
|
10
|
+
import TMTooltip from '../../base/TMTooltip';
|
|
11
|
+
import { TMFileViewer, StyledHeaderIcon } from './TMDcmtPreview';
|
|
12
|
+
import TMPanel from '../../base/TMPanel';
|
|
13
|
+
import TMDragDropOverlay from './TMDragDropOverlay';
|
|
14
|
+
const TMFileUploader = ({ deviceType = DeviceType.DESKTOP, onClose, onFileUpload, isRequired = false, defaultBlob = null, isResizingActive, showTMPanel = true, enableDragDropOverlay = false }) => {
|
|
15
|
+
const [dragOver, setDragOver] = useState(false);
|
|
16
|
+
const [uploadedFile, setUploadedFile] = useState(defaultBlob);
|
|
17
|
+
const [fileName, setFileName] = useState('');
|
|
18
|
+
const [fileSize, setFileSize] = useState(undefined);
|
|
19
|
+
const [fileExt, setFileExt] = useState(undefined);
|
|
20
|
+
const uploaderRef = useRef(null);
|
|
21
|
+
// Ref al TMPanel per chiamare focusPanel()
|
|
22
|
+
const fileUploaderPanelRef = useRef(null);
|
|
23
|
+
usePreventFileDrop([uploaderRef]);
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
if (!defaultBlob) {
|
|
26
|
+
clearFile(false);
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
;
|
|
30
|
+
handleFile(defaultBlob);
|
|
31
|
+
}, [defaultBlob]);
|
|
32
|
+
const handleFile = (file) => {
|
|
33
|
+
const name = file.name;
|
|
34
|
+
const extension = file.name.split('.').pop() ?? '';
|
|
35
|
+
const size = file.size;
|
|
36
|
+
setUploadedFile(file);
|
|
37
|
+
setFileName(name);
|
|
38
|
+
setFileSize(size);
|
|
39
|
+
setFileExt(extension);
|
|
40
|
+
onFileUpload?.(file);
|
|
41
|
+
};
|
|
42
|
+
const handleDragOver = (e) => {
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
setDragOver(true);
|
|
45
|
+
};
|
|
46
|
+
const handleDragLeave = () => {
|
|
47
|
+
setDragOver(false);
|
|
48
|
+
};
|
|
49
|
+
const handleDrop = (e) => {
|
|
50
|
+
e.preventDefault();
|
|
51
|
+
setDragOver(false);
|
|
52
|
+
const file = e.dataTransfer.files[0];
|
|
53
|
+
if (file)
|
|
54
|
+
handleFile(file);
|
|
55
|
+
refocusAfterFileInput();
|
|
56
|
+
};
|
|
57
|
+
// Funzione per rifocalizzare il pannello dopo la selezione del file
|
|
58
|
+
const refocusAfterFileInput = useCallback(() => {
|
|
59
|
+
fileUploaderPanelRef.current?.focusPanel();
|
|
60
|
+
}, []);
|
|
61
|
+
const handleInputChange = useCallback((event) => {
|
|
62
|
+
const file = event.target.files?.[0] || null;
|
|
63
|
+
if (file)
|
|
64
|
+
handleFile(file);
|
|
65
|
+
// Important: Rifocalizza dopo che il file input ha finito
|
|
66
|
+
refocusAfterFileInput();
|
|
67
|
+
}, [onFileUpload, refocusAfterFileInput]);
|
|
68
|
+
const clearFile = useCallback((refocus) => {
|
|
69
|
+
setUploadedFile(null);
|
|
70
|
+
setFileName('');
|
|
71
|
+
setFileSize(undefined);
|
|
72
|
+
setFileExt(undefined);
|
|
73
|
+
onFileUpload?.(null);
|
|
74
|
+
const fileInput = document.getElementById('fileInput');
|
|
75
|
+
if (fileInput) {
|
|
76
|
+
fileInput.value = '';
|
|
77
|
+
}
|
|
78
|
+
//Rifocalizza dopo la cancellazione del file
|
|
79
|
+
if (refocus)
|
|
80
|
+
refocusAfterFileInput();
|
|
81
|
+
}, [onFileUpload, refocusAfterFileInput]);
|
|
82
|
+
const browseHandler = useCallback(() => {
|
|
83
|
+
document.getElementById('fileInput')?.click();
|
|
84
|
+
}, []);
|
|
85
|
+
let content = !uploadedFile ?
|
|
86
|
+
_jsxs("div", { style: { display: 'flex', gap: 10, width: '100%', height: '100%' }, children: [_jsx(HiddenInput, { id: "fileInput", type: "file", onChange: handleInputChange }), _jsxs(UploadContainer, { ref: uploaderRef, tabIndex: 0, onDragOver: handleDragOver, onDragLeave: handleDragLeave, onDrop: handleDrop, style: { backgroundColor: dragOver ? '#76b1e6' : 'white' }, onDoubleClick: browseHandler, "$isRequired": isRequired, children: [_jsx("div", { style: { display: 'flex', gap: '10px', flexDirection: 'column', position: 'absolute', right: 5, top: 5 }, children: _jsx(TMButton, { btnStyle: 'icon', caption: 'Sfoglia', color: isRequired && !uploadedFile ? 'error' : 'primary', onClick: browseHandler, icon: _jsx(IconFolderOpen, { fontSize: 22 }) }) }), _jsx("p", { style: { fontSize: '1.2rem', fontWeight: 'bold' }, children: deviceType === DeviceType.MOBILE ? 'Clicca per sfogliare il tuo file' : 'Trascina il tuo file o fai doppio click per sfogliarlo' }), isRequired && _jsxs("p", { style: { fontWeight: 'bold' }, children: [" ", SDKUI_Localizator.RequiredField, " "] })] })] }) :
|
|
87
|
+
_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 10, width: '100%', height: '100%' }, children: [_jsxs("div", { style: { backgroundColor: 'white', padding: '5px 10px', borderRadius: 8, display: 'flex', alignItems: 'center', justifyContent: 'space-between', color: TMColors.primaryColor }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: 5 }, children: [_jsx("p", { children: "File name:" }), _jsxs("div", { style: { fontWeight: 'bold' }, children: [fileName, " ", _jsxs("span", { children: [" ", ` (${formatBytes(fileSize)})`, " "] })] })] }), uploadedFile && _jsx(TMButton, { btnStyle: 'icon', color: 'error', caption: 'Pulisci', onClick: () => clearFile(true), icon: _jsx(IconClear, { fontSize: 22 }) })] }), extensionHandler(fileExt) === FileExtensionHandler.READY_TO_SHOW ? _jsx(TMFileViewer, { fileBlob: uploadedFile, isResizingActive: isResizingActive }) :
|
|
88
|
+
_jsx("div", { style: { backgroundColor: '#f6dbdb', padding: '5px 10px', borderRadius: 8, display: 'flex', alignItems: 'center', justifyContent: 'space-between', color: TMColors.error }, children: _jsxs("div", { children: [" ", 'Anteprima non disponibile.', fileExt && _jsx("b", { children: ` (*.${fileExt})` })] }) })] });
|
|
89
|
+
const innerContent = (_jsxs("div", { style: { width: '100%', height: '100%', padding: '2px', display: 'flex', flexDirection: 'column', gap: 10 }, children: [enableDragDropOverlay && _jsx(TMDragDropOverlay, { handleFile: handleFile, refocusAfterFileInput: refocusAfterFileInput }), content] }));
|
|
90
|
+
return showTMPanel ? (_jsx(TMPanel, { ref: fileUploaderPanelRef, panelID: 'file-uploader-panel', title: SDKUI_Localizator.FileUpload, onBack: deviceType === DeviceType.MOBILE ? () => onClose?.() : undefined, toolbar: deviceType !== DeviceType.MOBILE ? (_jsx(StyledHeaderIcon, { onClick: onClose, "$color": 'white', children: _jsx(TMTooltip, { content: SDKUI_Localizator.Close, children: _jsx(IconCloseOutline, {}) }) })) : undefined, children: innerContent })) : (innerContent);
|
|
91
|
+
};
|
|
92
|
+
const UploadContainer = styled.div `
|
|
93
|
+
position: relative;
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
justify-content: center;
|
|
97
|
+
flex-direction: column;
|
|
98
|
+
gap: 5px;
|
|
99
|
+
border: 2px dashed ${props => props.$isRequired ? () => TMColors.error : () => TMColors.primaryColor};
|
|
100
|
+
/* max-height: 100px; */
|
|
101
|
+
width: 100%;
|
|
102
|
+
height: 100%;
|
|
103
|
+
border-radius: 8px;
|
|
104
|
+
padding: 30px;
|
|
105
|
+
text-align: center;
|
|
106
|
+
color: ${props => props.$isRequired ? () => TMColors.error : () => TMColors.primaryColor};
|
|
107
|
+
transition: background-color 0.3s;
|
|
108
|
+
&:hover {
|
|
109
|
+
background-color: #658cab;
|
|
110
|
+
}
|
|
111
|
+
`;
|
|
112
|
+
const HiddenInput = styled.input `
|
|
113
|
+
display: none;
|
|
114
|
+
`;
|
|
115
|
+
export default TMFileUploader;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TaskDescriptor } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { DcmtInfo, TaskContext } from '../../../ts';
|
|
4
|
+
import { DeviceContextProps } from '../../base/TMDeviceProvider';
|
|
5
|
+
interface ITMMasterDetailDcmtsProps extends DeviceContextProps {
|
|
6
|
+
inputDcmts?: DcmtInfo[];
|
|
7
|
+
isForMaster?: boolean;
|
|
8
|
+
showCurrentDcmtIndicator?: boolean;
|
|
9
|
+
allowNavigation?: boolean;
|
|
10
|
+
canNext?: boolean;
|
|
11
|
+
canPrev?: boolean;
|
|
12
|
+
onNext?: () => void;
|
|
13
|
+
onPrev?: () => void;
|
|
14
|
+
onBack?: () => void;
|
|
15
|
+
appendMasterDcmts?: (tid: number | undefined, did: number | undefined) => void;
|
|
16
|
+
onTaskCreateRequest?: (taskContext: TaskContext, onTaskCreated?: (task?: TaskDescriptor) => void) => void;
|
|
17
|
+
}
|
|
18
|
+
declare const TMMasterDetailDcmts: React.FC<ITMMasterDetailDcmtsProps>;
|
|
19
|
+
export default TMMasterDetailDcmts;
|
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import { DcmtTypeListCacheService, SDK_Localizator } from '@topconsultnpm/sdk-ts';
|
|
4
|
+
import { ContextMenu } from 'devextreme-react';
|
|
5
|
+
import TMRelationViewer from './TMRelationViewer';
|
|
6
|
+
import { genUniqueId, svgToString, IconMultipleSelection, IconCheckFile, IconDetailDcmts, SDKUI_Localizator, IconMail, IconDcmtTypeOnlyMetadata, IconCopy, IconMenuVertical, IconDataList, IconPreview, IconSearchCheck, IconBoard, IconDcmtTypeSys, IconShow } from '../../../helper';
|
|
7
|
+
import { FormModes, SearchResultContext } from '../../../ts';
|
|
8
|
+
import { TMColors } from '../../../utils/theme';
|
|
9
|
+
import ShowAlert from '../../base/TMAlert';
|
|
10
|
+
import { DeviceType } from '../../base/TMDeviceProvider';
|
|
11
|
+
import { TMSaveFormButtonPrevious, TMSaveFormButtonNext } from '../../forms/TMSaveForm';
|
|
12
|
+
import TMPanelManagerContainer from '../../layout/panelManager/TMPanelManagerContainer';
|
|
13
|
+
import { TMPanelManagerProvider, useTMPanelManagerContext } from '../../layout/panelManager/TMPanelManagerContext';
|
|
14
|
+
import TMSearchResult from '../search/TMSearchResult';
|
|
15
|
+
import TMDcmtForm from './TMDcmtForm';
|
|
16
|
+
import { TMNothingToShow } from './TMDcmtPreview';
|
|
17
|
+
const TMMasterDetailDcmts = ({ deviceType, inputDcmts, isForMaster, showCurrentDcmtIndicator = true, allowNavigation, canNext, canPrev, onNext, onPrev, onBack, appendMasterDcmts, onTaskCreateRequest }) => {
|
|
18
|
+
const [id, setID] = useState('');
|
|
19
|
+
const [focusedItem, setFocusedItem] = useState();
|
|
20
|
+
const [selectedItems, setSelectedItems] = useState([]);
|
|
21
|
+
const [showZeroDcmts, setShowZeroDcmts] = useState(false);
|
|
22
|
+
const [allowMultipleSelection, setAllowMultipleSelection] = useState(false);
|
|
23
|
+
const [dtdMaster, setDtdMaster] = useState();
|
|
24
|
+
useEffect(() => { setID(genUniqueId()); }, []);
|
|
25
|
+
// Load dtdMaster when inputDcmts changes
|
|
26
|
+
useEffect(() => {
|
|
27
|
+
const loadDtdMaster = async () => {
|
|
28
|
+
if (!inputDcmts || inputDcmts.length === 0 || !isForMaster) {
|
|
29
|
+
setDtdMaster(undefined);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
// Get TID from first document
|
|
33
|
+
const firstTID = inputDcmts[0]?.TID;
|
|
34
|
+
if (firstTID) {
|
|
35
|
+
const dtd = await DcmtTypeListCacheService.GetAsync(firstTID);
|
|
36
|
+
setDtdMaster(dtd);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
loadDtdMaster();
|
|
40
|
+
}, [inputDcmts?.length, inputDcmts?.[0]?.TID, isForMaster]);
|
|
41
|
+
const handleFocusedItemChanged = useCallback((item) => {
|
|
42
|
+
setFocusedItem(item);
|
|
43
|
+
}, []);
|
|
44
|
+
const handleSelectedItemsChanged = useCallback((items) => {
|
|
45
|
+
setSelectedItems(items);
|
|
46
|
+
}, []);
|
|
47
|
+
const commandsMenuItems = [
|
|
48
|
+
{
|
|
49
|
+
icon: svgToString(_jsx(IconMultipleSelection, { color: allowMultipleSelection ? TMColors.tertiary : TMColors.text_normal })),
|
|
50
|
+
text: "Selezione multipla",
|
|
51
|
+
operationType: 'singleRow',
|
|
52
|
+
onClick: () => {
|
|
53
|
+
setAllowMultipleSelection(prev => !prev);
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
icon: svgToString(_jsx(IconCheckFile, {})),
|
|
58
|
+
text: "Consenti dettagli con 0 documenti",
|
|
59
|
+
operationType: 'singleRow',
|
|
60
|
+
onClick: () => {
|
|
61
|
+
setShowZeroDcmts(prev => !prev);
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
icon: svgToString(_jsx(IconDetailDcmts, { transform: 'scale(-1, 1)' })),
|
|
66
|
+
text: SDKUI_Localizator.DcmtsMaster,
|
|
67
|
+
operationType: 'singleRow',
|
|
68
|
+
disabled: !focusedItem?.isDcmt || !isForMaster,
|
|
69
|
+
onClick: () => {
|
|
70
|
+
appendMasterDcmts?.(focusedItem?.tid, focusedItem?.did);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
icon: svgToString(_jsx(IconMail, {})),
|
|
75
|
+
text: "Invia per posta",
|
|
76
|
+
operationType: 'multiRow',
|
|
77
|
+
disabled: false,
|
|
78
|
+
beginGroup: true,
|
|
79
|
+
items: [
|
|
80
|
+
{
|
|
81
|
+
icon: svgToString(_jsx(IconMail, {})),
|
|
82
|
+
text: "I documenti selezionati",
|
|
83
|
+
operationType: 'multiRow',
|
|
84
|
+
disabled: false,
|
|
85
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
icon: svgToString(_jsx(IconMail, {})),
|
|
89
|
+
text: "I documenti di primo livello e tutti i documenti correlati",
|
|
90
|
+
operationType: 'multiRow',
|
|
91
|
+
disabled: false,
|
|
92
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
icon: svgToString(_jsx(IconMail, {})),
|
|
96
|
+
text: "I documenti di primo livello e i documenti correlati personalizzando l'operazione",
|
|
97
|
+
operationType: 'multiRow',
|
|
98
|
+
disabled: false,
|
|
99
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
100
|
+
},
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
icon: svgToString(_jsx(IconDcmtTypeOnlyMetadata, {})),
|
|
105
|
+
text: "Unisci in un file PDF",
|
|
106
|
+
operationType: 'multiRow',
|
|
107
|
+
disabled: false,
|
|
108
|
+
items: [
|
|
109
|
+
{
|
|
110
|
+
icon: svgToString(_jsx(IconDcmtTypeOnlyMetadata, {})),
|
|
111
|
+
text: "I documenti selezionati",
|
|
112
|
+
operationType: 'multiRow',
|
|
113
|
+
disabled: false,
|
|
114
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
icon: svgToString(_jsx(IconDcmtTypeOnlyMetadata, {})),
|
|
118
|
+
text: "I documenti di primo livello e tutti i documenti correlati",
|
|
119
|
+
operationType: 'multiRow',
|
|
120
|
+
disabled: false,
|
|
121
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
icon: svgToString(_jsx(IconDcmtTypeOnlyMetadata, {})),
|
|
125
|
+
text: "I documenti di primo livello e i documenti correlati personalizzando l'operazione",
|
|
126
|
+
operationType: 'multiRow',
|
|
127
|
+
disabled: false,
|
|
128
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
129
|
+
},
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
icon: svgToString(_jsx(IconCopy, {})),
|
|
134
|
+
text: "Copia in una cartella",
|
|
135
|
+
operationType: 'multiRow',
|
|
136
|
+
disabled: false,
|
|
137
|
+
items: [
|
|
138
|
+
{
|
|
139
|
+
icon: svgToString(_jsx(IconCopy, {})),
|
|
140
|
+
text: "I documenti selezionati",
|
|
141
|
+
operationType: 'multiRow',
|
|
142
|
+
disabled: false,
|
|
143
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
icon: svgToString(_jsx(IconCopy, {})),
|
|
147
|
+
text: "I documenti di primo livello e tutti i documenti correlati",
|
|
148
|
+
operationType: 'multiRow',
|
|
149
|
+
disabled: false,
|
|
150
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
icon: svgToString(_jsx(IconCopy, {})),
|
|
154
|
+
text: "I documenti di primo livello e i documenti correlati personalizzando l'operazione",
|
|
155
|
+
operationType: 'multiRow',
|
|
156
|
+
disabled: false,
|
|
157
|
+
onClick: () => ShowAlert({ message: "TODO", mode: 'info', title: `${"TODO"}`, duration: 3000 })
|
|
158
|
+
},
|
|
159
|
+
]
|
|
160
|
+
}
|
|
161
|
+
];
|
|
162
|
+
const toolbar = _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '10px' }, children: [allowMultipleSelection && _jsx("p", { style: { color: TMColors.colorHeader, textAlign: 'center', padding: '1px 4px', borderRadius: '3px', display: 'flex' }, children: `${selectedItems.length} selezionati` }), allowNavigation && canPrev != undefined && _jsx(TMSaveFormButtonPrevious, { btnStyle: 'icon', iconColor: 'white', isModified: false, formMode: FormModes.ReadOnly, canPrev: canPrev, onPrev: onPrev }), allowNavigation && canNext != undefined && _jsx(TMSaveFormButtonNext, { btnStyle: 'icon', iconColor: 'white', isModified: false, formMode: FormModes.ReadOnly, canNext: canNext, onNext: onNext }), _jsx(IconMenuVertical, { id: `commands-detail-${id}`, color: 'white', cursor: 'pointer' }), _jsx(ContextMenu, { showEvent: 'click', dataSource: commandsMenuItems, target: `#commands-detail-${id}` })] });
|
|
163
|
+
const getTitle = () => isForMaster ? `${SDKUI_Localizator.DcmtsMaster} - ${dtdMaster?.nameLoc}` : SDKUI_Localizator.DcmtsDetail;
|
|
164
|
+
const isMobile = deviceType === DeviceType.MOBILE;
|
|
165
|
+
const tmTreeView = useMemo(() => _jsx(_Fragment, { children: !inputDcmts || inputDcmts.length === 0
|
|
166
|
+
?
|
|
167
|
+
_jsx(TMNothingToShow, { text: getTitle(), secondText: SDKUI_Localizator.NoDataToDisplay, icon: isForMaster ? _jsx(IconDetailDcmts, { fontSize: 96, transform: 'scale(-1, 1)' }) : _jsx(IconDetailDcmts, { fontSize: 96 }) })
|
|
168
|
+
:
|
|
169
|
+
_jsx(TMRelationViewerWrapper, { inputDcmts: inputDcmts, isForMaster: isForMaster, showCurrentDcmtIndicator: showCurrentDcmtIndicator, showZeroDcmts: showZeroDcmts,
|
|
170
|
+
// customItemRender={customItemRender}
|
|
171
|
+
allowMultipleSelection: allowMultipleSelection, focusedItem: focusedItem, selectedItems: selectedItems, onFocusedItemChanged: handleFocusedItemChanged, onSelectedItemsChanged: handleSelectedItemsChanged }) }), [inputDcmts, isForMaster, showCurrentDcmtIndicator, showZeroDcmts, allowMultipleSelection, focusedItem, selectedItems, handleFocusedItemChanged, handleSelectedItemsChanged]);
|
|
172
|
+
const tmFormOrResult = useMemo(() => _jsx(TMFormOrResultWrapper, { deviceType: deviceType, focusedItem: focusedItem, onTaskCreateRequest: onTaskCreateRequest }), [focusedItem, deviceType]);
|
|
173
|
+
const initialPanelDimensions = {
|
|
174
|
+
'tmTreeView': { width: '50%', height: '100%' },
|
|
175
|
+
'tmFormOrResult': { width: '50%', height: '100%' },
|
|
176
|
+
'tmDcmtForm': { width: '25%', height: '100%' },
|
|
177
|
+
'tmSearchResult': { width: '25%', height: '100%' },
|
|
178
|
+
'tmBlog': { width: '25%', height: '100%' },
|
|
179
|
+
'tmSysMetadata': { width: '25%', height: '100%' },
|
|
180
|
+
'tmDcmtPreview': { width: '25%', height: '100%' },
|
|
181
|
+
};
|
|
182
|
+
const allInitialPanelVisibility = {
|
|
183
|
+
'tmTreeView': true,
|
|
184
|
+
'tmFormOrResult': true,
|
|
185
|
+
'tmDcmtForm': false,
|
|
186
|
+
'tmSearchResult': true,
|
|
187
|
+
'tmBlog': false,
|
|
188
|
+
'tmSysMetadata': false,
|
|
189
|
+
'tmDcmtPreview': false,
|
|
190
|
+
};
|
|
191
|
+
const initialPanels = useMemo(() => [
|
|
192
|
+
{
|
|
193
|
+
id: 'tmTreeView',
|
|
194
|
+
name: SDK_Localizator.Relations,
|
|
195
|
+
contentOptions: {
|
|
196
|
+
component: tmTreeView,
|
|
197
|
+
isClosable: false,
|
|
198
|
+
panelContainer: {
|
|
199
|
+
title: getTitle(),
|
|
200
|
+
toolbar: toolbar,
|
|
201
|
+
allowMaximize: !isMobile,
|
|
202
|
+
onBack: onBack
|
|
203
|
+
}
|
|
204
|
+
},
|
|
205
|
+
toolbarOptions: {
|
|
206
|
+
icon: _jsx(IconDataList, { fontSize: 24 }),
|
|
207
|
+
visible: true,
|
|
208
|
+
orderNumber: 1,
|
|
209
|
+
isActive: allInitialPanelVisibility['tmTreeView']
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
id: 'tmFormOrResult',
|
|
214
|
+
name: focusedItem?.isDcmt ? SDK_Localizator.Metadatas : SDKUI_Localizator.SearchResult,
|
|
215
|
+
contentOptions: {
|
|
216
|
+
component: tmFormOrResult,
|
|
217
|
+
isClosable: false
|
|
218
|
+
},
|
|
219
|
+
children: [
|
|
220
|
+
{
|
|
221
|
+
id: 'tmDcmtForm',
|
|
222
|
+
name: SDK_Localizator.Metadatas,
|
|
223
|
+
toolbarOptions: { icon: _jsx(IconPreview, { fontSize: 24 }), visible: false, orderNumber: 1, isActive: allInitialPanelVisibility['tmDcmtForm'] }
|
|
224
|
+
},
|
|
225
|
+
{
|
|
226
|
+
id: 'tmSearchResult',
|
|
227
|
+
name: SDKUI_Localizator.SearchResult,
|
|
228
|
+
toolbarOptions: { icon: _jsx(IconSearchCheck, { fontSize: 24 }), visible: false, orderNumber: 1, isActive: allInitialPanelVisibility['tmSearchResult'] }
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
id: 'tmBlog',
|
|
232
|
+
name: SDKUI_Localizator.BlogCase,
|
|
233
|
+
toolbarOptions: { icon: _jsx(IconBoard, { fontSize: 24 }), visible: true, orderNumber: 4, isActive: allInitialPanelVisibility['tmBlog'] }
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
id: 'tmSysMetadata',
|
|
237
|
+
name: SDKUI_Localizator.MetadataSystem,
|
|
238
|
+
toolbarOptions: { icon: _jsx(IconDcmtTypeSys, { fontSize: 24 }), visible: true, orderNumber: 5, isActive: allInitialPanelVisibility['tmSysMetadata'] }
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
id: 'tmDcmtPreview',
|
|
242
|
+
name: SDKUI_Localizator.PreviewDocument,
|
|
243
|
+
toolbarOptions: { icon: _jsx(IconShow, { fontSize: 24 }), visible: true, orderNumber: 6, isActive: allInitialPanelVisibility['tmDcmtPreview'] }
|
|
244
|
+
}
|
|
245
|
+
],
|
|
246
|
+
toolbarOptions: { icon: _jsx(IconSearchCheck, { fontSize: 24 }), visible: false, orderNumber: 2, isActive: allInitialPanelVisibility['tmFormOrResult'] }
|
|
247
|
+
}
|
|
248
|
+
], [tmTreeView, tmFormOrResult, focusedItem?.isDcmt, dtdMaster]);
|
|
249
|
+
return (_jsx(TMPanelManagerProvider, { panels: initialPanels, initialVisibility: allInitialPanelVisibility, defaultDimensions: initialPanelDimensions, initialDimensions: initialPanelDimensions, initialMobilePanelId: 'tmTreeView', children: _jsx(TMPanelManagerContainer, { panels: initialPanels, direction: "horizontal", showToolbar: true }) }));
|
|
250
|
+
};
|
|
251
|
+
export default TMMasterDetailDcmts;
|
|
252
|
+
/**
|
|
253
|
+
* Wrapper per TMRelationViewer che aggiunge funzionalità specifiche di TMMasterDetailDcmts:
|
|
254
|
+
* - Multiple selection management
|
|
255
|
+
* - Panel visibility toggling
|
|
256
|
+
* - Focus delay handling
|
|
257
|
+
*/
|
|
258
|
+
const TMRelationViewerWrapper = ({ inputDcmts, isForMaster, showCurrentDcmtIndicator, showZeroDcmts, customItemRender, allowMultipleSelection, focusedItem, selectedItems, onFocusedItemChanged, onSelectedItemsChanged }) => {
|
|
259
|
+
const { setPanelVisibilityById, setToolbarButtonVisibility } = useTMPanelManagerContext();
|
|
260
|
+
// Handle focused item changes with panel visibility management
|
|
261
|
+
const handleFocusedItemChanged = useCallback((item) => {
|
|
262
|
+
onFocusedItemChanged?.(item);
|
|
263
|
+
// Toggle panels based on item type
|
|
264
|
+
if (item?.isDcmt) {
|
|
265
|
+
setPanelVisibilityById('tmSearchResult', false);
|
|
266
|
+
setPanelVisibilityById('tmDcmtForm', true);
|
|
267
|
+
setToolbarButtonVisibility('tmSearchResult', false);
|
|
268
|
+
setToolbarButtonVisibility('tmDcmtForm', true);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
setPanelVisibilityById('tmSearchResult', true);
|
|
272
|
+
setPanelVisibilityById('tmDcmtForm', false);
|
|
273
|
+
setToolbarButtonVisibility('tmSearchResult', true);
|
|
274
|
+
setToolbarButtonVisibility('tmDcmtForm', false);
|
|
275
|
+
}
|
|
276
|
+
}, [onFocusedItemChanged, setPanelVisibilityById, setToolbarButtonVisibility]);
|
|
277
|
+
return (_jsx(TMRelationViewer, { inputDcmts: inputDcmts, isForMaster: isForMaster, showCurrentDcmtIndicator: showCurrentDcmtIndicator, initialShowZeroDcmts: showZeroDcmts, customItemRender: customItemRender, allowMultipleSelection: allowMultipleSelection, focusedItem: focusedItem, selectedItems: selectedItems, onFocusedItemChanged: handleFocusedItemChanged, onSelectedItemsChanged: onSelectedItemsChanged, maxDepthLevel: 1, invertMasterNavigation: false }));
|
|
278
|
+
};
|
|
279
|
+
const TMFormOrResultWrapper = ({ deviceType, focusedItem, onTaskCreateRequest }) => {
|
|
280
|
+
const { setPanelVisibilityById } = useTMPanelManagerContext();
|
|
281
|
+
return (_jsx(_Fragment, { children: focusedItem?.isDcmt ?
|
|
282
|
+
_jsx(TMDcmtForm, { groupId: 'tmFormOrResult', TID: focusedItem?.tid, DID: focusedItem.did, isClosable: deviceType !== DeviceType.MOBILE, allowNavigation: false, allowRelations: deviceType !== DeviceType.MOBILE, showDcmtFormSidebar: false, onClose: () => {
|
|
283
|
+
setPanelVisibilityById('tmTreeView', true);
|
|
284
|
+
} }) :
|
|
285
|
+
_jsx(TMSearchResult, { groupId: 'tmFormOrResult', isClosable: deviceType !== DeviceType.MOBILE, context: SearchResultContext.METADATA_SEARCH, allowFloatingBar: false, allowRelations: false, openDcmtFormAsModal: true, searchResults: focusedItem?.searchResult ?? [], showSearchResultSidebar: false, onTaskCreateRequest: onTaskCreateRequest, onClose: () => {
|
|
286
|
+
setPanelVisibilityById('tmTreeView', true);
|
|
287
|
+
} }) }));
|
|
288
|
+
};
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DcmtTypeDescriptor, SearchResultDescriptor } from "@topconsultnpm/sdk-ts";
|
|
3
|
+
import { DcmtInfo } from '../../../ts';
|
|
4
|
+
import { ITMTreeItem } from '../../base/TMTreeView';
|
|
5
|
+
/**
|
|
6
|
+
* Tree item structure for relations
|
|
7
|
+
*/
|
|
8
|
+
export interface RelationTreeItem extends ITMTreeItem {
|
|
9
|
+
tid?: number;
|
|
10
|
+
did?: number;
|
|
11
|
+
dtd?: DcmtTypeDescriptor;
|
|
12
|
+
relationId?: number;
|
|
13
|
+
isManyToMany?: boolean;
|
|
14
|
+
isDcmt?: boolean;
|
|
15
|
+
isZero?: boolean;
|
|
16
|
+
isRoot?: boolean;
|
|
17
|
+
isMaster?: boolean;
|
|
18
|
+
isCorrelated?: boolean;
|
|
19
|
+
isLoaded?: boolean;
|
|
20
|
+
values?: any;
|
|
21
|
+
searchResult?: SearchResultDescriptor[];
|
|
22
|
+
itemsCount?: number;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Props for TMRelationViewer component
|
|
26
|
+
*/
|
|
27
|
+
export interface TMRelationViewerProps {
|
|
28
|
+
/** Array of input documents to display relations for */
|
|
29
|
+
inputDcmts: DcmtInfo[];
|
|
30
|
+
/** If true, loads master documents instead of detail documents */
|
|
31
|
+
isForMaster?: boolean;
|
|
32
|
+
/** Show current document indicator (pointing finger icon) */
|
|
33
|
+
showCurrentDcmtIndicator?: boolean;
|
|
34
|
+
/** Allow showing documents with 0 instances */
|
|
35
|
+
allowShowZeroDcmts?: boolean;
|
|
36
|
+
/** Initial state for showing zero documents */
|
|
37
|
+
initialShowZeroDcmts?: boolean;
|
|
38
|
+
/** Array of allowed TIDs to filter relations. If undefined, shows all */
|
|
39
|
+
allowedTIDs?: number[];
|
|
40
|
+
/** Allow multiple selection */
|
|
41
|
+
allowMultipleSelection?: boolean;
|
|
42
|
+
/** Currently focused item (controlled) */
|
|
43
|
+
focusedItem?: RelationTreeItem | null;
|
|
44
|
+
/** Currently selected items (controlled) */
|
|
45
|
+
selectedItems?: RelationTreeItem[];
|
|
46
|
+
/** Callback when focused item changes */
|
|
47
|
+
onFocusedItemChanged?: (item: RelationTreeItem | null) => void;
|
|
48
|
+
/** Callback when selected items change */
|
|
49
|
+
onSelectedItemsChanged?: (items: RelationTreeItem[]) => void;
|
|
50
|
+
/** Callback when a document is double-clicked */
|
|
51
|
+
onDocumentDoubleClick?: (tid: number, did: number, name?: string) => void;
|
|
52
|
+
/** Custom item renderer */
|
|
53
|
+
customItemRender?: (item: RelationTreeItem | null) => JSX.Element;
|
|
54
|
+
/** Maximum depth level for recursive loading (default: 2) */
|
|
55
|
+
maxDepthLevel?: number;
|
|
56
|
+
/**
|
|
57
|
+
* If true (default), when isForMaster=true shows: detail doc → master docs as children (inverted navigation)
|
|
58
|
+
* If false, when isForMaster=true shows: master docs → detail docs as children (original navigation)
|
|
59
|
+
*/
|
|
60
|
+
invertMasterNavigation?: boolean;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Check if document type has detail relations
|
|
64
|
+
*/
|
|
65
|
+
export declare const hasDetailRelations: (mTID: number | undefined) => Promise<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Check if document type has master relations
|
|
68
|
+
*/
|
|
69
|
+
export declare const hasMasterRelations: (dTID: number | undefined) => Promise<boolean>;
|
|
70
|
+
declare const TMRelationViewer: React.FC<TMRelationViewerProps>;
|
|
71
|
+
export default TMRelationViewer;
|