@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,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DiagramItemTypes } from './interfaces';
|
|
3
|
+
import { DataListItemDescriptor } from '@topconsultnpm/sdk-ts';
|
|
4
|
+
interface DiagramItemSvgContentProps {
|
|
5
|
+
itemType: DiagramItemTypes;
|
|
6
|
+
width: number;
|
|
7
|
+
height: number;
|
|
8
|
+
isToolboxPreview?: boolean;
|
|
9
|
+
statusData?: DataListItemDescriptor;
|
|
10
|
+
}
|
|
11
|
+
declare const DiagramItemSvgContent: React.FC<DiagramItemSvgContentProps>;
|
|
12
|
+
export default DiagramItemSvgContent;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { DiagramItemTypes } from './interfaces'; // Assicurati che il percorso sia corretto
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { TMImageLibrary } from '../../../../helper';
|
|
5
|
+
// Stili per il contenitore SVG nella toolbox per centrare l'elemento
|
|
6
|
+
const StyledToolboxSvgContainer = styled.div `
|
|
7
|
+
width: 100%;
|
|
8
|
+
height: 100%;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
overflow: hidden; // Previene lo scroll se l'SVG è leggermente più grande
|
|
13
|
+
svg {
|
|
14
|
+
max-width: 100%;
|
|
15
|
+
max-height: 100%;
|
|
16
|
+
display: block; // Rimuove spazi extra sotto l'SVG
|
|
17
|
+
}
|
|
18
|
+
`;
|
|
19
|
+
const DiagramItemSvgContent = ({ itemType, width, height, isToolboxPreview = false, statusData }) => {
|
|
20
|
+
const PADDING = 10;
|
|
21
|
+
// ICON_SIZE e SMALL_ICON_SIZE possono essere regolati a seconda se è una preview o l'elemento reale
|
|
22
|
+
const ICON_SIZE = isToolboxPreview ? Math.min(width, height) * 0.6 : 40;
|
|
23
|
+
const SMALL_ICON_SIZE = isToolboxPreview ? Math.min(width, height) * 0.4 : 24;
|
|
24
|
+
const calculatedWidth = width;
|
|
25
|
+
const calculatedHeight = height;
|
|
26
|
+
const svgCenterX = calculatedWidth / 2;
|
|
27
|
+
const svgCenterY = calculatedHeight / 2;
|
|
28
|
+
let svgContent;
|
|
29
|
+
switch (itemType) {
|
|
30
|
+
case DiagramItemTypes.Start:
|
|
31
|
+
svgContent = (_jsxs(_Fragment, { children: [_jsx("circle", { cx: svgCenterX, cy: svgCenterY, r: Math.min(calculatedWidth, calculatedHeight) / 2 - PADDING, fill: "#28a745", stroke: "#218838", strokeWidth: "2" }), _jsx("text", { x: svgCenterX, y: svgCenterY, textAnchor: "middle", dominantBaseline: "central", fill: "white", fontSize: isToolboxPreview ? "8px" : "12px", children: "START" })] }));
|
|
32
|
+
break;
|
|
33
|
+
case DiagramItemTypes.End:
|
|
34
|
+
svgContent = (_jsx("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 20.695 20.695", fill: "#030104", children: _jsx("g", { children: _jsx("path", { d: "M10.099,3.996l0.898,1.453L9.372,6.64L8.447,5.144L7.141,5.952L6.332,4.645L7.64,3.836l0.809,1.306L10.099,3.996z M10.181,7.946L9.374,6.64L8.066,7.448l0.807,1.306L10.181,7.946z M17.667,5.115l-0.144,0.312c-0.26,1.43-1.146,2.388-1.805,2.795c-1.426,0.881-2.903,0.353-2.964,0.331c-0.958-0.203-1.814-0.087-2.52,0.35C8.926,9.712,8.553,11.37,8.55,11.389l-0.087,0.407l5.182,8.378l-0.839,0.521L3.577,5.775C3.4,5.845,3.193,5.787,3.089,5.619C2.971,5.428,3.03,5.18,3.22,5.062l0.694-0.428C4.102,4.516,4.352,4.575,4.47,4.766C4.568,4.925,4.537,5.12,4.414,5.251l0.249,0.404l0.006-0.013C5.211,4.327,5.901,3.404,6.719,2.9c1.484-0.917,2.84-0.154,2.897-0.121c1.16,0.676,1.986,0.458,2.474,0.156c0.209-0.13,0.319-0.256,0.319-0.256c1.146-1.005,1.607-2.143,1.81-2.559c0.202-0.415,0.563,0.383,0.563,0.383L17.667,5.115z M14.049,1.209l0.209,0.338l0.513-0.4l-0.41-0.662C14.277,0.652,14.201,0.956,14.049,1.209z M8.442,10.6l-0.235,0.146l0.111,0.177C8.35,10.83,8.393,10.717,8.442,10.6z M12.691,8.188l-0.18-0.291l-0.176,0.238C12.452,8.148,12.572,8.164,12.691,8.188z M13.958,7.312L13.251,6.17l1.433-1.01l-0.809-1.306l-1.431,1.012l-0.839-1.355c-0.168,0.04-0.356,0.064-0.563,0.062L10.1,3.997L9.582,3.163C9.534,3.136,9.487,3.112,9.438,3.084C9.422,3.075,9.297,3.005,9.092,2.937L7.639,3.836L7.158,3.061C7.075,3.1,6.99,3.147,6.904,3.2C6.569,3.407,6.259,3.697,5.97,4.06l0.361,0.586L5.184,5.354C5.132,5.465,5.081,5.575,5.031,5.693l0.707,1.126L7.14,5.952l0.926,1.495L6.675,8.308l0.817,1.3l1.381-0.854l0.351,0.565c0.227-0.264,0.497-0.514,0.825-0.718c0.132-0.08,0.269-0.147,0.408-0.21l-0.276-0.446l1.632-1.176l-0.816-1.32l1.445-0.583l0.807,1.305l-1.435,0.598l0.669,1.081L13.958,7.312z M17.147,4.951l-0.021-0.034l-0.502,0.456l-0.698-1.126l0.526-0.409l-0.871-1.394L15.117,2.94l-0.858-1.39l-0.757,0.468c-0.133,0.176-0.281,0.349-0.438,0.519l0.812,1.315l1.243-0.913l0.807,1.308l-1.241,0.912l0.707,1.142l-1.396,1.072l0.576,0.93c0.312-0.065,0.639-0.182,0.961-0.381c0.205-0.127,0.397-0.282,0.576-0.461l-0.717-1.159l1.232-0.929l0.41,0.663L17.147,4.951z" }) }) }));
|
|
35
|
+
break;
|
|
36
|
+
case DiagramItemTypes.Exit:
|
|
37
|
+
svgContent = (_jsxs(_Fragment, { children: [_jsx("circle", { cx: svgCenterX, cy: svgCenterY, r: Math.min(calculatedWidth, calculatedHeight) / 2 - PADDING, fill: "#dc3545", stroke: "#c82333", strokeWidth: "2" }), _jsx("text", { x: svgCenterX, y: svgCenterY, textAnchor: "middle", dominantBaseline: "central", fill: "white", fontSize: isToolboxPreview ? "8px" : "12px", children: "EXIT" })] }));
|
|
38
|
+
break;
|
|
39
|
+
case DiagramItemTypes.Condition:
|
|
40
|
+
svgContent = (_jsx("polygon", { points: `${svgCenterX},${PADDING} ${calculatedWidth - PADDING},${svgCenterY} ${svgCenterX},${calculatedHeight - PADDING} ${PADDING},${svgCenterY}`, fill: "#87d1df", stroke: "#62d3e2", strokeWidth: "2" }));
|
|
41
|
+
break;
|
|
42
|
+
case DiagramItemTypes.Status:
|
|
43
|
+
// Se i dati non sono disponibili o è una preview, mostra l'icona di fallback
|
|
44
|
+
if (isToolboxPreview || !statusData?.imageID) {
|
|
45
|
+
svgContent = (_jsx("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 24 24", fill: "orange", children: _jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" }) }));
|
|
46
|
+
}
|
|
47
|
+
else { // Altrimenti, mostra l'immagine personalizzata
|
|
48
|
+
svgContent = (_jsx("foreignObject", { x: (width - ICON_SIZE) / 2, y: (height - ICON_SIZE) / 2, width: ICON_SIZE, height: ICON_SIZE, children: _jsx("div", { onDragStart: (e) => e.preventDefault(), style: {
|
|
49
|
+
display: 'flex',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
justifyContent: 'center',
|
|
52
|
+
width: '100%',
|
|
53
|
+
height: '100%'
|
|
54
|
+
}, children: statusData?.imageID && _jsx(TMImageLibrary, { imageID: statusData.imageID }) }) }));
|
|
55
|
+
}
|
|
56
|
+
break;
|
|
57
|
+
case DiagramItemTypes.DataEntry:
|
|
58
|
+
case DiagramItemTypes.Approval:
|
|
59
|
+
svgContent = (_jsx("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 512 640", fill: "green", children: _jsx("path", { fill: "green", d: "M96 128a128 128 0 1 1 256 0a128 128 0 1 1-256 0M0 482.3C0 383.8 79.8 304 178.3 304h91.4c98.5 0 178.3 79.8 178.3 178.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3M625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" }) }));
|
|
60
|
+
break;
|
|
61
|
+
case DiagramItemTypes.ExecTask:
|
|
62
|
+
svgContent = (_jsx("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 24 24", fill: "#1976d2", className: "item-svg", children: _jsx("path", { fill: "#1976d2", d: "M10 4a4 4 0 0 0-4 4a4 4 0 0 0 4 4a4 4 0 0 0 4-4a4 4 0 0 0-4-4m7 8a.26.26 0 0 0-.26.21l-.19 1.32c-.3.13-.59.29-.85.47l-1.24-.5c-.11 0-.24 0-.31.13l-1 1.73c-.06.11-.04.24.06.32l1.06.82a4.2 4.2 0 0 0 0 1l-1.06.82a.26.26 0 0 0-.06.32l1 1.73c.06.13.19.13.31.13l1.24-.5c.26.18.54.35.85.47l.19 1.32c.02.12.12.21.26.21h2c.11 0 .22-.09.24-.21l.19-1.32c.3-.13.57-.29.84-.47l1.23.5c.13 0 .26 0 .33-.13l1-1.73a.26.26 0 0 0-.06-.32l-1.07-.82c.02-.17.04-.33.04-.5s-.01-.33-.04-.5l1.06-.82a.26.26 0 0 0 .06-.32l-1-1.73c-.06-.13-.19-.13-.32-.13l-1.23.5c-.27-.18-.54-.35-.85-.47l-.19-1.32A.236.236 0 0 0 19 12zm-7 2c-4.42 0-8 1.79-8 4v2h9.68a7 7 0 0 1-.68-3a7 7 0 0 1 .64-2.91c-.53-.06-1.08-.09-1.64-.09m8 1.5c.83 0 1.5.67 1.5 1.5s-.67 1.5-1.5 1.5c-.84 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5" }) }));
|
|
63
|
+
break;
|
|
64
|
+
case DiagramItemTypes.UpdateDcmt:
|
|
65
|
+
svgContent = (_jsx("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 24 24", fill: "#ca7bd0", className: "item-svg", children: _jsx("path", { d: "M4 6H2v14a2 2 0 002 2h14v-2H4V6m14.7 1.35l-1 1-2.05-2.05 1-1c.21-.22.56-.22.77 0l1.28 1.28c.22.21.22.56 0 .77M9 12.94l6.06-6.06 2.06 2.06L11.06 15H9v-2.06M20 4v12H8V4h12m0-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z" }) }));
|
|
66
|
+
break;
|
|
67
|
+
case DiagramItemTypes.SignAndTimeStamp:
|
|
68
|
+
svgContent = (_jsxs(_Fragment, { children: [_jsx("rect", { x: PADDING, y: PADDING, width: calculatedWidth - 2 * PADDING, height: calculatedHeight - 2 * PADDING, fill: "#fff8e1", stroke: "#ffc107", strokeWidth: "2", rx: "5", ry: "5", className: "item-svg" }), _jsxs("svg", { x: svgCenterX - SMALL_ICON_SIZE / 2, y: svgCenterY - SMALL_ICON_SIZE / 2, width: SMALL_ICON_SIZE, height: SMALL_ICON_SIZE, viewBox: "0 0 24 24", fill: "#f57f17", className: "item-svg", children: [_jsx("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 15.5h-1v-2h1v2zm0-4h-1V9h1v4zm2 4.5h-1v-2h1v2zm0-4h-1V9h1v4zm2 4.5h-1v-2h1v2zm0-4h-1V9h1v4zm2 4.5h-1v-2h1v2zm0-4h-1V9h1v4zM12 6c-3.87 0-7 3.13-7 7s3.13 7 7 7 7-3.13 7-7-3.13-7-7-7z" }), _jsx("path", { d: "M12 8c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm0 8c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3z", fill: "#000", opacity: "0.1" }), " ", _jsx("path", { d: "M17.75 6.75L16 8.5v-2l1.75-1.75zm-3.5 0L12.5 8.5v-2l1.75-1.75zm-3.5 0L9 8.5v-2L10.75 4.75z", fill: "#000", opacity: "0.1" }), " "] })] }));
|
|
69
|
+
break;
|
|
70
|
+
case DiagramItemTypes.Notification:
|
|
71
|
+
svgContent = (_jsxs(_Fragment, { children: [_jsx("rect", { x: PADDING, y: PADDING, width: calculatedWidth - 2 * PADDING, height: calculatedHeight - 2 * PADDING, fill: "#e1f5fe", stroke: "#4fc3f7", strokeWidth: "2", rx: "5", ry: "5", className: "item-svg" }), _jsx("svg", { x: svgCenterX - SMALL_ICON_SIZE / 2, y: svgCenterY - SMALL_ICON_SIZE / 2, width: SMALL_ICON_SIZE, height: SMALL_ICON_SIZE, viewBox: "0 0 24 24", fill: "#0288d1", className: "item-svg", children: _jsx("path", { d: "M12 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm6-6v-5c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11v5l-2 2v1h16v-1l-2-2zm-2 1H8v-6c0-2.21 1.79-4 4-4s4 1.79 4 4v6z" }) })] }));
|
|
72
|
+
break;
|
|
73
|
+
case DiagramItemTypes.WorkGroup_Create:
|
|
74
|
+
svgContent = (_jsx(_Fragment, { children: _jsxs("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 40 40", fill: "#5e35b1", className: "item-svg", children: [_jsx("path", { fill: "#5e35b1", stroke: "#5e35b1", strokeWidth: ".5px", d: "m24.77,33.07c-1.75,0-3.17-1.42-3.17-3.17,0-1.75,1.42-3.17,3.17-3.17s3.17,1.42,3.17,3.17c0,1.75-1.42,3.17-2.47,3.17m0-5.73c-1.41,0-2.56,1.15-2.56,2.56s1.15,2.56,2.56,2.56,2.56-1.15,2.56-2.56h0c0-1.41-1.15-2.56-2.56-2.56" }), _jsx("path", { fill: "#5e35b1", stroke: "#5e35b1", strokeWidth: ".5px", d: "m30.5,38.81c-.17,0-.31-.14-.31-.31,0-3-2.43-5.43-5.43-5.43s-5.43,2.43-5.43,5.43c0,.17-.14.31-.31.31s-.31-.14-.31-.31c0-3.34,2.7-6.04,6.04-6.04s6.04,2.7,6.04,6.04c0,.17-.14.31-.31.31" }), _jsx("path", { fill: "#5e35b1", stroke: "#5e35b1", strokeWidth: ".5px", d: "m17.3,30c-1.31,0-2.38-1.06-2.38-2.38s1.06-2.38,2.38-2.38,2.38,1.06,2.38,2.38h0c0,1.31-1.06,2.37-2.38,2.38m0-4.14c-.97,0-1.76.79-1.76,1.76s.79,1.76,1.76,1.76,1.76-.79,1.76-1.76h0c0-.97-.79-1.76-1.76-1.76" }), _jsx("path", { fill: "#5e35b1", stroke: "#5e35b1", strokeWidth: ".5px", d: "m21.44,34.13c-.17,0-.31-.14-.31-.31,0-2.12-1.71-3.83-3.83-3.83s-3.83,1.71-3.83,3.83c0,.17-.14.31-.31.31s-.31-.14-.31-.31c0-2.45,1.99-4.44,4.44-4.44s4.44,1.99,4.44,4.44c0,.17-.14.31-.31.31" }), _jsx("path", { fill: "#5e35b1", stroke: "#5e35b1", strokeWidth: ".5px", d: "m32.18,30c-1.31,0-2.38-1.06-2.38-2.38s1.06-2.38,2.38-2.38,2.38,1.06,2.38,2.38h0c0,1.31-1.06,2.37-2.38,2.38m0-4.14c-.97,0-1.76.79-1.76,1.76,0,.97.79,1.76,1.76,1.76s1.76-.79,1.76-1.76h0c0-.97-.79-1.76-1.76-1.76" }), _jsx("path", { fill: "#5e35b1", stroke: "#5e35b1", strokeWidth: ".5px", d: "m36.31,34.13c-.17,0-.31-.14-.31-.31,0-2.12-1.71-3.83-3.83-3.83s-3.83,1.71-3.83,3.83c0,.17-.14.31-.31.31-.17,0-.31-.14-.31-.31h0c0-2.45,1.99-4.44,4.44-4.44s4.44,1.99,4.44,4.44c0,.17-.14.31-.31.31" }), _jsx("path", { fill: "#5e35b1", stroke: "#5e35b1", strokeWidth: ".5px", d: "m24.77,40c-8.16,0-14.77-6.61-14.77-14.77s6.61-14.77,14.77-14.77c.33,0,.67.01,1,.03.17.01.3.16.28.33s-.16.3-.33.28h0c-.32-.02-.64-.03-.96-.03-7.82,0-14.16,6.34-14.16,14.16,0,7.82,6.34,14.16,14.16,14.16,7.82,0,14.16-6.34,14.16-14.16,0-.32-.01-.64-.03-.96-.01-.17.12-.32.29-.33s.32.12.33.29c.02.33.03.67.03,1,0,8.16-6.61,14.77-14.77,14.77h0" }), _jsx("path", { d: "M22 17h-4v4h-4v-4h-4v-4h4v-4h4v4h4v4z", fill: "#1976d2" })] }) }));
|
|
75
|
+
break;
|
|
76
|
+
case DiagramItemTypes.CaseFlow_Create:
|
|
77
|
+
svgContent = (_jsx(_Fragment, { children: _jsxs("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 40 40", fill: "#e91e63", className: "item-svg", children: [_jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m37.51,36.63H12.48c-1.45,0-2.63-1.18-2.63-2.63v-10.17c0-.17.14-.31.31-.31h9.43c.17,0,.31.14.31.31,0,2.81,2.28,5.08,5.09,5.08.04,0,.07,0,.11,0,2.83.08,5.19-2.14,5.27-4.97,0-.04,0-.07,0-.11,0-.17.14-.31.31-.31h9.14c.17,0,.31.14.31.31v10.17c0,1.45-1.18,2.63-2.63,2.63m-27.04-12.49v9.86c0,1.1.9,2,2,2h25.03c1.1,0,2-.9,2-2v-9.86h-8.52c-.08,1.42-.69,2.76-1.73,3.74-1.12,1.07-2.62,1.66-4.17,1.65-3.07.06-5.65-2.32-5.82-5.39h-8.81Z" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m40.14,24.61h-.63v-.71l-4.03-8.74c-.33-.71-1.04-1.16-1.82-1.16h-17.33c-.78,0-1.49.46-1.82,1.16l-4.03,8.74v.29h-.63v-.42l4.09-8.87c.43-.93,1.37-1.52,2.39-1.52h17.33c1.03,0,1.96.6,2.39,1.53l4.09,8.86v.84Z" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m35.46,23.83h-.63v-3.59H15.16v3.59h-.63v-3.9c0-.17.14-.31.31-.31h20.3c.17,0,.31.14.31.31v3.9Z" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m33.9,19.93h-.63v-2.81h-16.54v2.81h-.63v-3.12c0-.17.14-.31.31-.31h17.17c.17,0,.31.14.31.31h0s0,3.12,0,3.12Z" }), _jsx("path", { d: "M22 17h-4v4h-4v-4h-4v-4h4v-4h4v4h4v4z", fill: "#1976d2" })] }) }));
|
|
78
|
+
break;
|
|
79
|
+
case DiagramItemTypes.RunApp:
|
|
80
|
+
svgContent = (_jsx(_Fragment, { children: _jsx("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 1200 1200", fill: "#388e3c", className: "item-svg", children: _jsx("path", { fill: "#388e3c", d: "m910.143 91.119l-16.916 81.053a196.3 196.3 0 0 0-49.691 14.743l-58.229-58.825l-66.309 53.661l45.354 69.303c-10.104 13.862-18.357 29.104-24.623 45.503l-82.85-.374l-8.906 84.87l81.055 16.914c2.723 17.329 7.746 33.897 14.742 49.545l-58.824 58.376l53.66 66.31l69.303-45.43a196 196 0 0 0 45.504 24.698l-.375 82.774l84.871 8.904l16.838-81.053c17.346-2.722 34.035-7.666 49.695-14.669l58.301 58.825l66.309-53.735l-45.428-69.229a195.8 195.8 0 0 0 24.697-45.503l82.773.3l8.906-84.87l-81.053-16.765c-2.725-17.354-7.66-34.103-14.67-49.77l58.824-58.227l-53.734-66.309l-69.229 45.354c-13.869-10.111-29.17-18.428-45.578-24.697l.373-82.774zm14.068 197.131c2.668.009 5.373.09 8.084.374c43.355 4.555 74.756 43.384 70.201 86.741c-4.555 43.355-43.385 74.83-86.742 70.274c-43.355-4.555-74.83-43.384-70.275-86.739c4.269-40.647 38.724-70.789 78.732-70.65m-608.981 6.96l-11.375 112.711c-23.205 6.187-45.185 15.324-65.486 27.092l-87.714-71.696l-82.55 82.55l71.698 87.788c-11.768 20.308-20.91 42.272-27.092 65.484L0 610.44v116.751l112.71 11.376a268 268 0 0 0 27.092 65.41l-71.698 87.789l82.55 82.55l87.789-71.697a268 268 0 0 0 65.411 27.093l11.375 112.71h116.752l11.301-112.71c23.212-6.183 45.178-15.325 65.484-27.093l87.788 71.697l82.55-82.55l-71.697-87.714c11.768-20.302 20.906-42.281 27.092-65.485l112.711-11.376V610.44L634.5 599.138c-6.186-23.225-15.314-45.243-27.092-65.561l71.697-87.714l-82.55-82.549l-87.713 71.696c-20.316-11.775-42.336-20.905-65.562-27.093l-11.301-112.71H315.23zm58.376 265.61c59.649 0 107.996 48.348 107.996 107.996S433.255 776.81 373.606 776.81S265.61 728.463 265.61 668.816c0-59.648 48.348-107.996 107.996-107.996m495.673 144.219l-11.9 59.273c-12.188 1.993-23.873 5.653-34.877 10.776l-41.012-43.033l-46.553 39.292l31.883 50.667c-7.102 10.143-12.959 21.308-17.363 33.306l-58.15-.301l-6.287 62.118l56.955 12.35a147.7 147.7 0 0 0 10.328 36.298l-41.312 42.659l37.721 48.497l48.721-33.229a136 136 0 0 0 31.957 18.037l-.225 60.621l59.648 6.511l11.824-59.349c12.189-1.991 23.869-5.579 34.875-10.702l41.014 43.033l46.625-39.291l-31.957-50.668c7.104-10.139 12.959-21.312 17.363-33.306l58.229.226l6.211-62.043l-56.953-12.35c-1.914-12.695-5.402-24.911-10.328-36.372l41.311-42.585l-37.719-48.572l-48.646 33.229c-9.746-7.396-20.498-13.449-32.031-18.036l.299-60.546zm9.879 144.144c1.873.009 3.783.092 5.688.301c30.473 3.331 52.521 31.745 49.32 63.465c-3.201 31.719-30.449 54.748-60.922 51.416s-52.596-31.746-49.395-63.466c3.001-29.738 27.19-51.818 55.309-51.716" }) }) }));
|
|
81
|
+
break;
|
|
82
|
+
case DiagramItemTypes.WorkGroup_AddParts:
|
|
83
|
+
svgContent = (_jsx(_Fragment, { children: _jsxs("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 40 40", fill: "#c2185b", className: "item-svg", children: [_jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m24.77,33.07c-1.75,0-3.17-1.42-3.17-3.17,0-1.75,1.42-3.17,3.17-3.17s3.17,1.42,3.17,3.17c0,1.75-1.42,3.17-2.47,3.17m0-5.73c-1.41,0-2.56,1.15-2.56,2.56s1.15,2.56,2.56,2.56,2.56-1.15,2.56-2.56h0c0-1.41-1.15-2.56-2.56-2.56" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m30.5,38.81c-.17,0-.31-.14-.31-.31,0-3-2.43-5.43-5.43-5.43s-5.43,2.43-5.43,5.43c0,.17-.14.31-.31.31s-.31-.14-.31-.31c0-3.34,2.7-6.04,6.04-6.04s6.04,2.7,6.04,6.04c0,.17-.14.31-.31.31" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m17.3,30c-1.31,0-2.38-1.06-2.38-2.38s1.06-2.38,2.38-2.38,2.38,1.06,2.38,2.38h0c0,1.31-1.06,2.37-2.38,2.38m0-4.14c-.97,0-1.76.79-1.76,1.76s.79,1.76,1.76,1.76,1.76-.79,1.76-1.76h0c0-.97-.79-1.76-1.76-1.76" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m21.44,34.13c-.17,0-.31-.14-.31-.31,0-2.12-1.71-3.83-3.83-3.83s-3.83,1.71-3.83,3.83c0,.17-.14.31-.31.31s-.31-.14-.31-.31c0-2.45,1.99-4.44,4.44-4.44s4.44,1.99,4.44,4.44c0,.17-.14.31-.31.31" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m32.18,30c-1.31,0-2.38-1.06-2.38-2.38s1.06-2.38,2.38-2.38,2.38,1.06,2.38,2.38h0c0,1.31-1.06,2.37-2.38,2.38m0-4.14c-.97,0-1.76.79-1.76,1.76,0,.97.79,1.76,1.76,1.76s1.76-.79,1.76-1.76h0c0-.97-.79-1.76-1.76-1.76" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m36.31,34.13c-.17,0-.31-.14-.31-.31,0-2.12-1.71-3.83-3.83-3.83s-3.83,1.71-3.83,3.83c0,.17-.14.31-.31.31-.17,0-.31-.14-.31-.31h0c0-2.45,1.99-4.44,4.44-4.44s4.44,1.99,4.44,4.44c0,.17-.14.31-.31.31" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m24.77,40c-8.16,0-14.77-6.61-14.77-14.77s6.61-14.77,14.77-14.77c.33,0,.67.01,1,.03.17.01.3.16.28.33s-.16.3-.33.28h0c-.32-.02-.64-.03-.96-.03-7.82,0-14.16,6.34-14.16,14.16,0,7.82,6.34,14.16,14.16,14.16,7.82,0,14.16-6.34,14.16-14.16,0-.32-.01-.64-.03-.96-.01-.17.12-.32.29-.33s.32.12.33.29c.02.33.03.67.03,1,0,8.16-6.61,14.77-14.77,14.77h0" }), _jsx("path", { d: "M30 18l-10-10v5h-10v10h10v5l10-10z", fill: "#1976d2", transform: "rotate(45 25 18)" })] }) }));
|
|
84
|
+
break;
|
|
85
|
+
case DiagramItemTypes.CaseFlow_AddParts:
|
|
86
|
+
svgContent = (_jsx(_Fragment, { children: _jsxs("svg", { x: svgCenterX - ICON_SIZE / 2, y: svgCenterY - ICON_SIZE / 2, width: ICON_SIZE, height: ICON_SIZE, viewBox: "0 0 40 40", fill: "#e91e63", className: "item-svg", children: [_jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m37.51,36.63H12.48c-1.45,0-2.63-1.18-2.63-2.63v-10.17c0-.17.14-.31.31-.31h9.43c.17,0,.31.14.31.31,0,2.81,2.28,5.08,5.09,5.08.04,0,.07,0,.11,0,2.83.08,5.19-2.14,5.27-4.97,0-.04,0-.07,0-.11,0-.17.14-.31.31-.31h9.14c.17,0,.31.14.31.31v10.17c0,1.45-1.18,2.63-2.63,2.63m-27.04-12.49v9.86c0,1.1.9,2,2,2h25.03c1.1,0,2-.9,2-2v-9.86h-8.52c-.08,1.42-.69,2.76-1.73,3.74-1.12,1.07-2.62,1.66-4.17,1.65-3.07.06-5.65-2.32-5.82-5.39h-8.81Z" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m40.14,24.61h-.63v-.71l-4.03-8.74c-.33-.71-1.04-1.16-1.82-1.16h-17.33c-.78,0-1.49.46-1.82,1.16l-4.03,8.74v.29h-.63v-.42l4.09-8.87c.43-.93,1.37-1.52,2.39-1.52h17.33c1.03,0,1.96.6,2.39,1.53l4.09,8.86v.84Z" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m35.46,23.83h-.63v-3.59H15.16v3.59h-.63v-3.9c0-.17.14-.31.31-.31h20.3c.17,0,.31.14.31.31v3.9Z" }), _jsx("path", { fill: "#c2185b", stroke: "#c2185b", strokeWidth: ".5px", d: "m33.9,19.93h-.63v-2.81h-16.54v2.81h-.63v-3.12c0-.17.14-.31.31-.31h17.17c.17,0,.31.14.31.31h0s0,3.12,0,3.12Z" }), _jsx("path", { d: "M30 18l-10-10v5h-10v10h10v5l10-10z", fill: "#1976d2", transform: "rotate(45 25 18)" })] }) }));
|
|
87
|
+
break;
|
|
88
|
+
default:
|
|
89
|
+
svgContent = (_jsx("rect", { x: PADDING, y: PADDING, width: calculatedWidth - 2 * PADDING, height: calculatedHeight - 2 * PADDING, fill: "#e0e0e0", stroke: "#a0a0a0", strokeWidth: "2", rx: "5", ry: "5" }));
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
if (isToolboxPreview) {
|
|
93
|
+
return (_jsx(StyledToolboxSvgContainer, { children: _jsx("svg", { width: width, height: height, viewBox: `0 0 ${width} ${height}`, children: svgContent }) }));
|
|
94
|
+
}
|
|
95
|
+
return _jsx(_Fragment, { children: svgContent });
|
|
96
|
+
};
|
|
97
|
+
export default DiagramItemSvgContent;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryDescriptor } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
export declare enum WorkItemActorTypes {
|
|
4
|
+
None = 0,
|
|
5
|
+
UID = 1,
|
|
6
|
+
GID = 2,
|
|
7
|
+
MID = 3,
|
|
8
|
+
QID = 4,
|
|
9
|
+
FXID = 5,
|
|
10
|
+
STID = 6
|
|
11
|
+
}
|
|
12
|
+
export interface WorkItemActor {
|
|
13
|
+
ActorType: WorkItemActorTypes;
|
|
14
|
+
ActorID: string;
|
|
15
|
+
Or: number;
|
|
16
|
+
}
|
|
17
|
+
interface RecipientListProps {
|
|
18
|
+
recipients: WorkItemActor[];
|
|
19
|
+
title: string;
|
|
20
|
+
tid?: number;
|
|
21
|
+
qd?: QueryDescriptor;
|
|
22
|
+
onQDChange?: (newQd: QueryDescriptor | undefined) => void;
|
|
23
|
+
onAdd: (recipient: WorkItemActor[]) => void;
|
|
24
|
+
onRemove: (recipient: WorkItemActor) => void;
|
|
25
|
+
}
|
|
26
|
+
declare const RecipientList: React.FC<RecipientListProps>;
|
|
27
|
+
export default RecipientList;
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import TMButton from '../../../base/TMButton';
|
|
5
|
+
import { IconAdd, IconDelete, SDKUI_Localizator } from '../../../../helper';
|
|
6
|
+
import { TMUserChooserForm, TMUserIdViewer } from '../../../choosers/TMUserChooser';
|
|
7
|
+
import { TMGroupChooserForm, TMGroupIdViewer } from '../../../choosers/TMGroupChooser';
|
|
8
|
+
import { TMMidViewer } from '../../../viewers/TMMidViewer';
|
|
9
|
+
import { SDK_Globals, SDK_Localizator } from '@topconsultnpm/sdk-ts';
|
|
10
|
+
import { useOutsideClick } from '../../../../hooks/useOutsideClick';
|
|
11
|
+
import { FormModes } from '../../../../ts';
|
|
12
|
+
import { TMMessageBoxManager, ButtonNames } from '../../../base/TMPopUp';
|
|
13
|
+
import TMModal from '../../../base/TMModal';
|
|
14
|
+
import { TMMetadataChooserForm } from '../../../choosers/TMMetadataChooser';
|
|
15
|
+
import TMQueryEditor from '../../../query/TMQueryEditor';
|
|
16
|
+
export var WorkItemActorTypes;
|
|
17
|
+
(function (WorkItemActorTypes) {
|
|
18
|
+
WorkItemActorTypes[WorkItemActorTypes["None"] = 0] = "None";
|
|
19
|
+
WorkItemActorTypes[WorkItemActorTypes["UID"] = 1] = "UID";
|
|
20
|
+
WorkItemActorTypes[WorkItemActorTypes["GID"] = 2] = "GID";
|
|
21
|
+
WorkItemActorTypes[WorkItemActorTypes["MID"] = 3] = "MID";
|
|
22
|
+
WorkItemActorTypes[WorkItemActorTypes["QID"] = 4] = "QID";
|
|
23
|
+
WorkItemActorTypes[WorkItemActorTypes["FXID"] = 5] = "FXID";
|
|
24
|
+
WorkItemActorTypes[WorkItemActorTypes["STID"] = 6] = "STID";
|
|
25
|
+
})(WorkItemActorTypes || (WorkItemActorTypes = {}));
|
|
26
|
+
const RecipientsColumn = styled.div `
|
|
27
|
+
flex: 1;
|
|
28
|
+
border: 1px solid #ccc;
|
|
29
|
+
border-radius: 5px;
|
|
30
|
+
padding: 10px;
|
|
31
|
+
min-width: 300px;
|
|
32
|
+
position: relative;
|
|
33
|
+
`;
|
|
34
|
+
const HeaderContainer = styled.div `
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
align-items: center;
|
|
38
|
+
position: relative;
|
|
39
|
+
margin-bottom: 10px;
|
|
40
|
+
`;
|
|
41
|
+
const RecipientItem = styled.div `
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
gap: 5px;
|
|
45
|
+
padding: 2px 5px;
|
|
46
|
+
border-radius: 3px;
|
|
47
|
+
|
|
48
|
+
background-color: ${props => props.$isSelected ? '#e6f7ff' : 'transparent'};
|
|
49
|
+
border: ${props => props.$isSelected ? '1px solid #91d5ff' : '1px solid transparent'};
|
|
50
|
+
`;
|
|
51
|
+
const FloatingMenu = styled.div `
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: 100%; /* Si apre sotto il bottone */
|
|
54
|
+
right: 0; /* Allinea il bordo destro del menu con quello del genitore */
|
|
55
|
+
background-color: white;
|
|
56
|
+
border: 1px solid #ccc;
|
|
57
|
+
border-radius: 5px;
|
|
58
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
|
|
59
|
+
z-index: 10;
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column; /* Disposizione verticale */
|
|
62
|
+
gap: 5px;
|
|
63
|
+
padding: 5px;
|
|
64
|
+
min-width: 150px;
|
|
65
|
+
transform: translateY(5px);
|
|
66
|
+
align-items: center; /* Centra i pulsanti orizzontalmente */
|
|
67
|
+
`;
|
|
68
|
+
const FloatingMenuButton = styled(TMButton) `
|
|
69
|
+
width: 100%; /* Rende i pulsanti interni larghi quanto il menu */
|
|
70
|
+
`;
|
|
71
|
+
const RecipientList = ({ recipients, title, tid, qd, onAdd, onRemove, onQDChange }) => {
|
|
72
|
+
const [uiState, setUiState] = useState({
|
|
73
|
+
isMenuOpen: false,
|
|
74
|
+
showUserChooser: false,
|
|
75
|
+
showGroupChooser: false,
|
|
76
|
+
showMetadataChooser: false,
|
|
77
|
+
showQdEditor: false,
|
|
78
|
+
selectedRecipientIndex: null,
|
|
79
|
+
});
|
|
80
|
+
const menuRef = useOutsideClick(() => setUiState(prevState => ({ ...prevState, isMenuOpen: false })));
|
|
81
|
+
const handleQdChosen = useCallback((newQd) => {
|
|
82
|
+
if (newQd) {
|
|
83
|
+
const recipientToAdd = {
|
|
84
|
+
ActorType: WorkItemActorTypes.QID,
|
|
85
|
+
ActorID: newQd.id ? newQd.id.toString() : '-1',
|
|
86
|
+
Or: 0,
|
|
87
|
+
};
|
|
88
|
+
onAdd([recipientToAdd]);
|
|
89
|
+
onQDChange?.(newQd);
|
|
90
|
+
}
|
|
91
|
+
setUiState(prevState => ({ ...prevState, showQdEditor: false }));
|
|
92
|
+
}, [onQDChange]);
|
|
93
|
+
const handleUserChosen = useCallback((IDs) => {
|
|
94
|
+
if (IDs && IDs.length > 0) {
|
|
95
|
+
const recipientsToAdd = IDs.map(id => ({
|
|
96
|
+
ActorType: WorkItemActorTypes.UID,
|
|
97
|
+
ActorID: id.toString(),
|
|
98
|
+
Or: 0
|
|
99
|
+
}));
|
|
100
|
+
onAdd(recipientsToAdd);
|
|
101
|
+
}
|
|
102
|
+
setUiState(prevState => ({ ...prevState, showUserChooser: false }));
|
|
103
|
+
}, []);
|
|
104
|
+
const handleGroupChosen = useCallback((IDs) => {
|
|
105
|
+
if (IDs && IDs.length > 0) {
|
|
106
|
+
const recipientsToAdd = IDs.map(id => ({
|
|
107
|
+
ActorType: WorkItemActorTypes.GID,
|
|
108
|
+
ActorID: id.toString(),
|
|
109
|
+
Or: 0
|
|
110
|
+
}));
|
|
111
|
+
onAdd(recipientsToAdd);
|
|
112
|
+
}
|
|
113
|
+
setUiState(prevState => ({ ...prevState, showGroupChooser: false }));
|
|
114
|
+
}, []);
|
|
115
|
+
const handleMetadataChosen = useCallback((IDs) => {
|
|
116
|
+
if (IDs && IDs.length > 0) {
|
|
117
|
+
const recipientsToAdd = IDs.map(item => ({
|
|
118
|
+
ActorType: WorkItemActorTypes.MID,
|
|
119
|
+
ActorID: item.mid ? item.mid.toString() : '0',
|
|
120
|
+
Or: 0
|
|
121
|
+
}));
|
|
122
|
+
onAdd(recipientsToAdd);
|
|
123
|
+
}
|
|
124
|
+
setUiState(prevState => ({ ...prevState, showMetadataChooser: false }));
|
|
125
|
+
}, []);
|
|
126
|
+
const handleAddClick = () => {
|
|
127
|
+
setUiState(prevState => ({ ...prevState, isMenuOpen: !prevState.isMenuOpen }));
|
|
128
|
+
};
|
|
129
|
+
const handleRecipientClick = useCallback((index) => {
|
|
130
|
+
setUiState(prevState => ({
|
|
131
|
+
...prevState,
|
|
132
|
+
selectedRecipientIndex: prevState.selectedRecipientIndex === index ? null : index // Deseleziona se già selezionato, altrimenti seleziona
|
|
133
|
+
}));
|
|
134
|
+
}, []);
|
|
135
|
+
const handleKeyPress = useCallback((event) => {
|
|
136
|
+
if (event.key === 'Delete' && uiState.selectedRecipientIndex !== null) {
|
|
137
|
+
const recipientToRemove = recipients[uiState.selectedRecipientIndex];
|
|
138
|
+
if (recipientToRemove) {
|
|
139
|
+
onRemove(recipientToRemove);
|
|
140
|
+
setUiState(prevState => ({ ...prevState, selectedRecipientIndex: null })); // Resetta la selezione dopo la rimozione
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}, [uiState.selectedRecipientIndex, recipients, onRemove]);
|
|
144
|
+
const openChooser = useCallback((chooser) => {
|
|
145
|
+
setUiState(prevState => ({
|
|
146
|
+
...prevState,
|
|
147
|
+
isAndMenuOpen: false,
|
|
148
|
+
isOrMenuOpen: false,
|
|
149
|
+
[chooser]: true,
|
|
150
|
+
}));
|
|
151
|
+
}, []);
|
|
152
|
+
const openQdEditorFromMenu = useCallback(() => {
|
|
153
|
+
const hasExistingQd = recipients.some(r => r.ActorType === WorkItemActorTypes.QID);
|
|
154
|
+
if (hasExistingQd) {
|
|
155
|
+
TMMessageBoxManager.show({
|
|
156
|
+
buttons: [ButtonNames.OK],
|
|
157
|
+
title: SDK_Globals.appModule,
|
|
158
|
+
message: SDKUI_Localizator.WorkflowOnlyOneQueryForRecipients
|
|
159
|
+
});
|
|
160
|
+
setUiState(prevState => ({ ...prevState, isAndMenuOpen: false, isOrMenuOpen: false }));
|
|
161
|
+
}
|
|
162
|
+
else {
|
|
163
|
+
openChooser('showQdEditor');
|
|
164
|
+
}
|
|
165
|
+
}, [recipients, openChooser]);
|
|
166
|
+
const renderActorViewer = (recipient) => {
|
|
167
|
+
const actorId = parseInt(recipient.ActorID, 10);
|
|
168
|
+
switch (recipient.ActorType) {
|
|
169
|
+
case WorkItemActorTypes.UID:
|
|
170
|
+
return _jsx(TMUserIdViewer, { userId: actorId, showIcon: true });
|
|
171
|
+
case WorkItemActorTypes.GID:
|
|
172
|
+
return _jsx(TMGroupIdViewer, { groupID: actorId, showIcon: true });
|
|
173
|
+
case WorkItemActorTypes.MID:
|
|
174
|
+
return _jsx(TMMidViewer, { tid_mid: { tid: tid, mid: actorId }, showIcon: true });
|
|
175
|
+
case WorkItemActorTypes.QID:
|
|
176
|
+
return (_jsx("span", { onDoubleClick: () => openChooser('showQdEditor'), style: { cursor: 'pointer' }, children: SDKUI_Localizator.WorkflowGetRecipientsFromQuery }));
|
|
177
|
+
default:
|
|
178
|
+
return _jsxs("span", { children: [WorkItemActorTypes[recipient.ActorType], ": ", recipient.ActorID] });
|
|
179
|
+
}
|
|
180
|
+
};
|
|
181
|
+
const renderFloatingMenu = () => {
|
|
182
|
+
const menuItems = [
|
|
183
|
+
{ caption: SDK_Localizator.Users, onClick: () => openChooser('showUserChooser') },
|
|
184
|
+
{ caption: SDK_Localizator.Groups, onClick: () => openChooser('showGroupChooser') },
|
|
185
|
+
{ caption: SDK_Localizator.Metadata, onClick: () => openChooser('showMetadataChooser') },
|
|
186
|
+
{ caption: SDK_Localizator.Query, onClick: openQdEditorFromMenu },
|
|
187
|
+
];
|
|
188
|
+
return (_jsx(FloatingMenu, { ref: menuRef, children: menuItems.map((item, index) => (_jsx(FloatingMenuButton, { btnStyle: 'text', caption: item.caption, onClick: item.onClick }, index))) }));
|
|
189
|
+
};
|
|
190
|
+
useEffect(() => {
|
|
191
|
+
document.addEventListener('keydown', handleKeyPress);
|
|
192
|
+
return () => {
|
|
193
|
+
document.removeEventListener('keydown', handleKeyPress);
|
|
194
|
+
};
|
|
195
|
+
}, [handleKeyPress]);
|
|
196
|
+
return (_jsxs(RecipientsColumn, { children: [_jsxs(HeaderContainer, { children: [_jsx("p", { style: { fontWeight: 600 }, children: title }), _jsx(TMButton, { btnStyle: 'icon', caption: SDKUI_Localizator.AddRecipient, icon: _jsx(IconAdd, {}), onClick: handleAddClick }), uiState.isMenuOpen && renderFloatingMenu()] }), _jsx("div", { style: { height: '150px', overflowY: 'auto', gap: '5px', display: 'flex', flexDirection: 'column' }, children: recipients.map((recipient, index) => (_jsxs(RecipientItem, { "$isSelected": uiState.selectedRecipientIndex === index, onClick: () => handleRecipientClick(index), tabIndex: 0, children: [_jsx(IconDelete, { color: '#c00', cursor: 'pointer', onClick: (e) => {
|
|
197
|
+
e.stopPropagation();
|
|
198
|
+
onRemove(recipient);
|
|
199
|
+
setUiState(prevState => ({ ...prevState, selectedRecipientIndex: null })); // Resetta la selezione
|
|
200
|
+
} }), renderActorViewer(recipient)] }, index))) }), uiState.showUserChooser && _jsx(TMUserChooserForm, { allowMultipleSelection: true, allowSorting: true, onClose: () => setUiState(prevState => ({ ...prevState, showUserChooser: false })), onChoose: (IDs) => handleUserChosen(IDs) }), uiState.showGroupChooser && _jsx(TMGroupChooserForm, { allowMultipleSelection: true, allowSorting: true, onClose: () => setUiState(prevState => ({ ...prevState, showGroupChooser: false })), onChoose: (IDs) => handleGroupChosen(IDs) }), uiState.showMetadataChooser && tid && _jsx(TMMetadataChooserForm, { allowMultipleSelection: true, allowSorting: true, tids: [tid], onClose: () => setUiState(prevState => ({ ...prevState, showMetadataChooser: false })), onChoose: (IDs) => handleMetadataChosen(IDs) }), uiState.showQdEditor &&
|
|
201
|
+
_jsx(TMModal, { title: SDKUI_Localizator.QueryDefine, onClose: () => setUiState(prevState => ({ ...prevState, showQdEditor: false })), children: _jsx(TMQueryEditor, { inputData: qd, formMode: FormModes.Update, onApplied: handleQdChosen, onClose: () => setUiState(prevState => ({ ...prevState, showQdEditor: false })) }) })] }));
|
|
202
|
+
};
|
|
203
|
+
export default RecipientList;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface IWFDiagramProps {
|
|
3
|
+
xmlDiagramString: string;
|
|
4
|
+
currentSetID?: string;
|
|
5
|
+
allowEdit?: boolean;
|
|
6
|
+
onDiagramChange?: (newXmlDiagram: string) => void;
|
|
7
|
+
}
|
|
8
|
+
declare const WFDiagram: React.FC<IWFDiagramProps>;
|
|
9
|
+
export default WFDiagram;
|