@topconsultnpm/sdkui-react 6.17.0-test10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/IconsS4t/add.svg +12 -0
- package/lib/assets/IconsS4t/aggiorna.svg +18 -0
- package/lib/assets/IconsS4t/bookmark.svg +42 -0
- package/lib/assets/IconsS4t/cancella.svg +15 -0
- package/lib/assets/IconsS4t/check-box.svg +19 -0
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/down.svg +28 -0
- package/lib/assets/IconsS4t/edit-file.svg +19 -0
- package/lib/assets/IconsS4t/edita.svg +32 -0
- package/lib/assets/IconsS4t/firma.svg +19 -0
- package/lib/assets/IconsS4t/icona_download.svg +16 -0
- package/lib/assets/IconsS4t/info.svg +51 -0
- package/lib/assets/IconsS4t/left.svg +20 -0
- package/lib/assets/IconsS4t/line.svg +40 -0
- package/lib/assets/IconsS4t/more.svg +19 -0
- package/lib/assets/IconsS4t/new-signature.svg +1 -0
- package/lib/assets/IconsS4t/plus.svg +23 -0
- package/lib/assets/IconsS4t/printer.svg +49 -0
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -0
- package/lib/assets/IconsS4t/rectangle.svg +41 -0
- package/lib/assets/IconsS4t/redo.svg +19 -0
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -0
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/right.svg +22 -0
- package/lib/assets/IconsS4t/searchbar.svg +21 -0
- package/lib/assets/IconsS4t/text-box.svg +36 -0
- package/lib/assets/IconsS4t/tick.svg +8 -0
- package/lib/assets/IconsS4t/trash-white.svg +11 -0
- package/lib/assets/IconsS4t/trash.svg +1 -0
- package/lib/assets/IconsS4t/undo.svg +19 -0
- package/lib/assets/IconsS4t/up.svg +32 -0
- package/lib/assets/IconsS4t/video-streaming.svg +2 -0
- package/lib/assets/IconsS4t/zoom-in.svg +58 -0
- package/lib/assets/IconsS4t/zoom-out.svg +56 -0
- package/lib/assets/ImageLibrary/arrow_001.png +0 -0
- package/lib/assets/ImageLibrary/arrow_002.png +0 -0
- package/lib/assets/ImageLibrary/arrow_003.png +0 -0
- package/lib/assets/ImageLibrary/arrow_004.png +0 -0
- package/lib/assets/ImageLibrary/arrow_005.png +0 -0
- package/lib/assets/ImageLibrary/arrow_006.png +0 -0
- package/lib/assets/ImageLibrary/arrow_007.png +0 -0
- package/lib/assets/ImageLibrary/arrow_008.png +0 -0
- package/lib/assets/ImageLibrary/arrow_009.png +0 -0
- package/lib/assets/ImageLibrary/arrow_010.png +0 -0
- package/lib/assets/ImageLibrary/arrow_011.png +0 -0
- package/lib/assets/ImageLibrary/arrow_012.png +0 -0
- package/lib/assets/ImageLibrary/book_001.png +0 -0
- package/lib/assets/ImageLibrary/book_002.png +0 -0
- package/lib/assets/ImageLibrary/book_003.png +0 -0
- package/lib/assets/ImageLibrary/book_004.png +0 -0
- package/lib/assets/ImageLibrary/book_005.png +0 -0
- package/lib/assets/ImageLibrary/book_006.png +0 -0
- package/lib/assets/ImageLibrary/book_007.png +0 -0
- package/lib/assets/ImageLibrary/clock_001.png +0 -0
- package/lib/assets/ImageLibrary/clock_002.png +0 -0
- package/lib/assets/ImageLibrary/clock_003.png +0 -0
- package/lib/assets/ImageLibrary/cube_001.png +0 -0
- package/lib/assets/ImageLibrary/cube_002.png +0 -0
- package/lib/assets/ImageLibrary/cube_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_001.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_002.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_004.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_005.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_006.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_007.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_008.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_001.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_002.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_003.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_001.png +0 -0
- package/lib/assets/ImageLibrary/fld_002.png +0 -0
- package/lib/assets/ImageLibrary/fld_003.png +0 -0
- package/lib/assets/ImageLibrary/fld_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_005.png +0 -0
- package/lib/assets/ImageLibrary/fld_006.png +0 -0
- package/lib/assets/ImageLibrary/fld_007.png +0 -0
- package/lib/assets/ImageLibrary/fld_008.png +0 -0
- package/lib/assets/ImageLibrary/fld_009.png +0 -0
- package/lib/assets/ImageLibrary/fld_010.png +0 -0
- package/lib/assets/ImageLibrary/fld_011.png +0 -0
- package/lib/assets/ImageLibrary/fld_012.png +0 -0
- package/lib/assets/ImageLibrary/fld_013.png +0 -0
- package/lib/assets/ImageLibrary/fld_014.png +0 -0
- package/lib/assets/ImageLibrary/fld_015.png +0 -0
- package/lib/assets/ImageLibrary/fld_016.png +0 -0
- package/lib/assets/ImageLibrary/fld_017.png +0 -0
- package/lib/assets/ImageLibrary/fld_018.png +0 -0
- package/lib/assets/ImageLibrary/fld_019.png +0 -0
- package/lib/assets/ImageLibrary/fld_020.png +0 -0
- package/lib/assets/ImageLibrary/fld_021.png +0 -0
- package/lib/assets/ImageLibrary/fld_022.png +0 -0
- package/lib/assets/ImageLibrary/fld_023.png +0 -0
- package/lib/assets/ImageLibrary/fld_024.png +0 -0
- package/lib/assets/ImageLibrary/fld_025.png +0 -0
- package/lib/assets/ImageLibrary/fld_026.png +0 -0
- package/lib/assets/ImageLibrary/fld_027.png +0 -0
- package/lib/assets/ImageLibrary/fld_028.png +0 -0
- package/lib/assets/ImageLibrary/fld_029.png +0 -0
- package/lib/assets/ImageLibrary/fld_030.png +0 -0
- package/lib/assets/ImageLibrary/fld_031.png +0 -0
- package/lib/assets/ImageLibrary/fld_032.png +0 -0
- package/lib/assets/ImageLibrary/fld_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_001.png +0 -0
- package/lib/assets/ImageLibrary/gen_002.png +0 -0
- package/lib/assets/ImageLibrary/gen_003.png +0 -0
- package/lib/assets/ImageLibrary/gen_004.png +0 -0
- package/lib/assets/ImageLibrary/gen_005.png +0 -0
- package/lib/assets/ImageLibrary/gen_006.png +0 -0
- package/lib/assets/ImageLibrary/gen_007.png +0 -0
- package/lib/assets/ImageLibrary/gen_008.png +0 -0
- package/lib/assets/ImageLibrary/gen_009.png +0 -0
- package/lib/assets/ImageLibrary/gen_010.png +0 -0
- package/lib/assets/ImageLibrary/gen_011.png +0 -0
- package/lib/assets/ImageLibrary/gen_012.png +0 -0
- package/lib/assets/ImageLibrary/gen_013.png +0 -0
- package/lib/assets/ImageLibrary/gen_014.png +0 -0
- package/lib/assets/ImageLibrary/gen_015.png +0 -0
- package/lib/assets/ImageLibrary/gen_016.png +0 -0
- package/lib/assets/ImageLibrary/gen_017.png +0 -0
- package/lib/assets/ImageLibrary/gen_018.png +0 -0
- package/lib/assets/ImageLibrary/gen_019.png +0 -0
- package/lib/assets/ImageLibrary/gen_020.png +0 -0
- package/lib/assets/ImageLibrary/gen_021.png +0 -0
- package/lib/assets/ImageLibrary/gen_022.png +0 -0
- package/lib/assets/ImageLibrary/gen_023.png +0 -0
- package/lib/assets/ImageLibrary/gen_024.png +0 -0
- package/lib/assets/ImageLibrary/gen_025.png +0 -0
- package/lib/assets/ImageLibrary/gen_026.png +0 -0
- package/lib/assets/ImageLibrary/gen_027.png +0 -0
- package/lib/assets/ImageLibrary/gen_028.png +0 -0
- package/lib/assets/ImageLibrary/gen_029.png +0 -0
- package/lib/assets/ImageLibrary/gen_030.png +0 -0
- package/lib/assets/ImageLibrary/gen_031.png +0 -0
- package/lib/assets/ImageLibrary/gen_032.png +0 -0
- package/lib/assets/ImageLibrary/gen_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_034.png +0 -0
- package/lib/assets/ImageLibrary/gen_035.png +0 -0
- package/lib/assets/ImageLibrary/gen_036.png +0 -0
- package/lib/assets/ImageLibrary/gen_037.png +0 -0
- package/lib/assets/ImageLibrary/gen_038.png +0 -0
- package/lib/assets/ImageLibrary/gen_039.png +0 -0
- package/lib/assets/ImageLibrary/gen_040.png +0 -0
- package/lib/assets/ImageLibrary/gen_041.png +0 -0
- package/lib/assets/ImageLibrary/gen_042.png +0 -0
- package/lib/assets/ImageLibrary/gen_043.png +0 -0
- package/lib/assets/ImageLibrary/gen_044.png +0 -0
- package/lib/assets/ImageLibrary/gen_045.png +0 -0
- package/lib/assets/ImageLibrary/gen_046.png +0 -0
- package/lib/assets/ImageLibrary/gen_047.png +0 -0
- package/lib/assets/ImageLibrary/gen_048.png +0 -0
- package/lib/assets/ImageLibrary/gen_049.png +0 -0
- package/lib/assets/ImageLibrary/gen_050.png +0 -0
- package/lib/assets/ImageLibrary/gen_051.png +0 -0
- package/lib/assets/ImageLibrary/gen_052.png +0 -0
- package/lib/assets/ImageLibrary/hand_001.png +0 -0
- package/lib/assets/ImageLibrary/hand_002.png +0 -0
- package/lib/assets/ImageLibrary/hand_003.png +0 -0
- package/lib/assets/ImageLibrary/hand_004.png +0 -0
- package/lib/assets/ImageLibrary/hand_005.png +0 -0
- package/lib/assets/ImageLibrary/hand_006.png +0 -0
- package/lib/assets/ImageLibrary/law_001.png +0 -0
- package/lib/assets/ImageLibrary/law_002.png +0 -0
- package/lib/assets/ImageLibrary/law_003.png +0 -0
- package/lib/assets/ImageLibrary/lock_001.png +0 -0
- package/lib/assets/ImageLibrary/lock_002.png +0 -0
- package/lib/assets/ImageLibrary/lock_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_001.png +0 -0
- package/lib/assets/ImageLibrary/mail_002.png +0 -0
- package/lib/assets/ImageLibrary/mail_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_004.png +0 -0
- package/lib/assets/ImageLibrary/mail_005.png +0 -0
- package/lib/assets/ImageLibrary/mail_006.png +0 -0
- package/lib/assets/ImageLibrary/mail_007.png +0 -0
- package/lib/assets/ImageLibrary/mail_008.png +0 -0
- package/lib/assets/ImageLibrary/mail_009.png +0 -0
- package/lib/assets/ImageLibrary/mail_010.png +0 -0
- package/lib/assets/ImageLibrary/mail_011.png +0 -0
- package/lib/assets/ImageLibrary/mail_012.png +0 -0
- package/lib/assets/ImageLibrary/mail_013.png +0 -0
- package/lib/assets/ImageLibrary/mail_014.png +0 -0
- package/lib/assets/ImageLibrary/mail_015.png +0 -0
- package/lib/assets/ImageLibrary/net_001.png +0 -0
- package/lib/assets/ImageLibrary/net_002.png +0 -0
- package/lib/assets/ImageLibrary/net_003.png +0 -0
- package/lib/assets/ImageLibrary/net_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_001.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_002.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_003.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_005.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_006.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_007.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_008.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_009.png +0 -0
- package/lib/assets/ImageLibrary/note_001.png +0 -0
- package/lib/assets/ImageLibrary/note_002.png +0 -0
- package/lib/assets/ImageLibrary/note_003.png +0 -0
- package/lib/assets/ImageLibrary/note_004.png +0 -0
- package/lib/assets/ImageLibrary/note_005.png +0 -0
- package/lib/assets/ImageLibrary/note_006.png +0 -0
- package/lib/assets/ImageLibrary/note_007.png +0 -0
- package/lib/assets/ImageLibrary/note_008.png +0 -0
- package/lib/assets/ImageLibrary/note_009.png +0 -0
- package/lib/assets/ImageLibrary/note_010.png +0 -0
- package/lib/assets/ImageLibrary/note_011.png +0 -0
- package/lib/assets/ImageLibrary/note_012.png +0 -0
- package/lib/assets/ImageLibrary/note_013.png +0 -0
- package/lib/assets/ImageLibrary/note_014.png +0 -0
- package/lib/assets/ImageLibrary/note_015.png +0 -0
- package/lib/assets/ImageLibrary/note_016.png +0 -0
- package/lib/assets/ImageLibrary/run_001.png +0 -0
- package/lib/assets/ImageLibrary/run_002.png +0 -0
- package/lib/assets/ImageLibrary/run_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_001.png +0 -0
- package/lib/assets/ImageLibrary/sem_002.png +0 -0
- package/lib/assets/ImageLibrary/sem_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_004.png +0 -0
- package/lib/assets/ImageLibrary/sem_005.png +0 -0
- package/lib/assets/ImageLibrary/star_001.png +0 -0
- package/lib/assets/ImageLibrary/star_002.png +0 -0
- package/lib/assets/ImageLibrary/star_003.png +0 -0
- package/lib/assets/ImageLibrary/star_004.png +0 -0
- package/lib/assets/ImageLibrary/star_005.png +0 -0
- package/lib/assets/ImageLibrary/star_006.png +0 -0
- package/lib/assets/ImageLibrary/state_001.png +0 -0
- package/lib/assets/ImageLibrary/state_002.png +0 -0
- package/lib/assets/ImageLibrary/state_003.png +0 -0
- package/lib/assets/ImageLibrary/state_004.png +0 -0
- package/lib/assets/ImageLibrary/state_005.png +0 -0
- package/lib/assets/ImageLibrary/study_001.png +0 -0
- package/lib/assets/ImageLibrary/study_002.png +0 -0
- package/lib/assets/ImageLibrary/user_001.png +0 -0
- package/lib/assets/ImageLibrary/user_002.png +0 -0
- package/lib/assets/ImageLibrary/user_003.png +0 -0
- package/lib/assets/ImageLibrary/user_004.png +0 -0
- package/lib/assets/ImageLibrary/user_005.png +0 -0
- package/lib/assets/ImageLibrary/user_006.png +0 -0
- package/lib/assets/ImageLibrary/user_007.png +0 -0
- package/lib/assets/ImageLibrary/user_008.png +0 -0
- package/lib/assets/ImageLibrary/user_009.png +0 -0
- package/lib/assets/ImageLibrary/user_010.png +0 -0
- package/lib/assets/ImageLibrary/user_011.png +0 -0
- package/lib/assets/ImageLibrary/user_012.png +0 -0
- package/lib/assets/ImageLibrary/user_013.png +0 -0
- package/lib/assets/ImageLibrary/user_014.png +0 -0
- package/lib/assets/ImageLibrary/user_015.png +0 -0
- package/lib/assets/ImageLibrary/user_016.png +0 -0
- package/lib/assets/ImageLibrary/user_017.png +0 -0
- package/lib/assets/ImageLibrary/user_018.png +0 -0
- package/lib/assets/ImageLibrary/user_019.png +0 -0
- package/lib/assets/ImageLibrary/user_020.png +0 -0
- package/lib/assets/ImageLibrary/user_021.png +0 -0
- package/lib/assets/ImageLibrary/user_022.png +0 -0
- package/lib/assets/ImageLibrary/user_023.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_001.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_002.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_003.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_004.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_005.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_006.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_007.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_008.png +0 -0
- package/lib/assets/Toppy-generico.png +0 -0
- package/lib/assets/france.svg +1 -0
- package/lib/assets/german.svg +1 -0
- package/lib/assets/icomoon.eot +0 -0
- package/lib/assets/icomoon.svg +97 -0
- package/lib/assets/icomoon.ttf +0 -0
- package/lib/assets/icomoon.woff +0 -0
- package/lib/assets/italy.svg +16 -0
- package/lib/assets/loading.png +0 -0
- package/lib/assets/login-bg.png +0 -0
- package/lib/assets/multipleSelectionManager.jpg +0 -0
- package/lib/assets/portugal.svg +1 -0
- package/lib/assets/six.png +0 -0
- package/lib/assets/six.svg +4 -0
- package/lib/assets/spain.svg +1 -0
- package/lib/assets/thumbnails/dicom.png +0 -0
- package/lib/assets/thumbnails/doc.png +0 -0
- package/lib/assets/thumbnails/docx.png +0 -0
- package/lib/assets/thumbnails/dwg.png +0 -0
- package/lib/assets/thumbnails/email.png +0 -0
- package/lib/assets/thumbnails/exe.png +0 -0
- package/lib/assets/thumbnails/folder.png +0 -0
- package/lib/assets/thumbnails/html.png +0 -0
- package/lib/assets/thumbnails/image.png +0 -0
- package/lib/assets/thumbnails/index.d.ts +19 -0
- package/lib/assets/thumbnails/index.js +19 -0
- package/lib/assets/thumbnails/index.ts +39 -0
- package/lib/assets/thumbnails/mp4.png +0 -0
- package/lib/assets/thumbnails/other.png +0 -0
- package/lib/assets/thumbnails/p7m.png +0 -0
- package/lib/assets/thumbnails/pdf.png +0 -0
- package/lib/assets/thumbnails/ppt.png +0 -0
- package/lib/assets/thumbnails/slddrw.png +0 -0
- package/lib/assets/thumbnails/txt.png +0 -0
- package/lib/assets/thumbnails/xls.png +0 -0
- package/lib/assets/thumbnails/xml.png +0 -0
- package/lib/assets/thumbnails/zip.png +0 -0
- package/lib/assets/topmedia-six.svg +66 -0
- package/lib/assets/topmeida-six-bianco.svg +66 -0
- package/lib/assets/united-kingdom.svg +1 -0
- package/lib/components/base/Styled.d.ts +63 -0
- package/lib/components/base/Styled.js +337 -0
- package/lib/components/base/TMAccordion.d.ts +12 -0
- package/lib/components/base/TMAccordion.js +62 -0
- package/lib/components/base/TMAlert.d.ts +73 -0
- package/lib/components/base/TMAlert.js +77 -0
- package/lib/components/base/TMAreaManager.d.ts +25 -0
- package/lib/components/base/TMAreaManager.js +733 -0
- package/lib/components/base/TMButton.d.ts +21 -0
- package/lib/components/base/TMButton.js +174 -0
- package/lib/components/base/TMClosableList.d.ts +10 -0
- package/lib/components/base/TMClosableList.js +70 -0
- package/lib/components/base/TMConfirm.d.ts +13 -0
- package/lib/components/base/TMConfirm.js +119 -0
- package/lib/components/base/TMContextMenu.d.ts +25 -0
- package/lib/components/base/TMContextMenu.js +109 -0
- package/lib/components/base/TMContextMenuOLD.d.ts +26 -0
- package/lib/components/base/TMContextMenuOLD.js +56 -0
- package/lib/components/base/TMCounterBar.d.ts +10 -0
- package/lib/components/base/TMCounterBar.js +43 -0
- package/lib/components/base/TMCounterContainer.d.ts +23 -0
- package/lib/components/base/TMCounterContainer.js +58 -0
- package/lib/components/base/TMCustomButton.d.ts +11 -0
- package/lib/components/base/TMCustomButton.js +116 -0
- package/lib/components/base/TMDataGrid.d.ts +56 -0
- package/lib/components/base/TMDataGrid.js +237 -0
- package/lib/components/base/TMDataGridExportForm.d.ts +15 -0
- package/lib/components/base/TMDataGridExportForm.js +215 -0
- package/lib/components/base/TMDeviceProvider.d.ts +15 -0
- package/lib/components/base/TMDeviceProvider.js +41 -0
- package/lib/components/base/TMDropDownMenu.d.ts +23 -0
- package/lib/components/base/TMDropDownMenu.js +45 -0
- package/lib/components/base/TMEditorBase.d.ts +39 -0
- package/lib/components/base/TMEditorBase.js +1 -0
- package/lib/components/base/TMFileManager.d.ts +45 -0
- package/lib/components/base/TMFileManager.js +233 -0
- package/lib/components/base/TMFileManagerDataGridView.d.ts +16 -0
- package/lib/components/base/TMFileManagerDataGridView.js +101 -0
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +18 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +148 -0
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +19 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +46 -0
- package/lib/components/base/TMFileManagerUtils.d.ts +78 -0
- package/lib/components/base/TMFileManagerUtils.js +207 -0
- package/lib/components/base/TMFloatingToolbar.d.ts +9 -0
- package/lib/components/base/TMFloatingToolbar.js +101 -0
- package/lib/components/base/TMLayout.d.ts +55 -0
- package/lib/components/base/TMLayout.js +201 -0
- package/lib/components/base/TMList.d.ts +9 -0
- package/lib/components/base/TMList.js +54 -0
- package/lib/components/base/TMListView.d.ts +42 -0
- package/lib/components/base/TMListView.js +387 -0
- package/lib/components/base/TMModal.d.ts +16 -0
- package/lib/components/base/TMModal.js +70 -0
- package/lib/components/base/TMPanel.d.ts +32 -0
- package/lib/components/base/TMPanel.js +181 -0
- package/lib/components/base/TMPopUp.d.ts +33 -0
- package/lib/components/base/TMPopUp.js +267 -0
- package/lib/components/base/TMProgressBar.d.ts +11 -0
- package/lib/components/base/TMProgressBar.js +32 -0
- package/lib/components/base/TMResizableMenu.d.ts +20 -0
- package/lib/components/base/TMResizableMenu.js +98 -0
- package/lib/components/base/TMRightSidebar.d.ts +19 -0
- package/lib/components/base/TMRightSidebar.js +80 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.d.ts +8 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.js +20 -0
- package/lib/components/base/TMSpinner.d.ts +14 -0
- package/lib/components/base/TMSpinner.js +160 -0
- package/lib/components/base/TMTab.d.ts +20 -0
- package/lib/components/base/TMTab.js +42 -0
- package/lib/components/base/TMToggleButton.d.ts +10 -0
- package/lib/components/base/TMToggleButton.js +58 -0
- package/lib/components/base/TMToolbarCard.d.ts +19 -0
- package/lib/components/base/TMToolbarCard.js +51 -0
- package/lib/components/base/TMTooltip.d.ts +14 -0
- package/lib/components/base/TMTooltip.js +20 -0
- package/lib/components/base/TMTreeView.d.ts +32 -0
- package/lib/components/base/TMTreeView.js +356 -0
- package/lib/components/base/TMUserAvatar.d.ts +8 -0
- package/lib/components/base/TMUserAvatar.js +34 -0
- package/lib/components/base/TMVilViewer.d.ts +5 -0
- package/lib/components/base/TMVilViewer.js +22 -0
- package/lib/components/base/TMWaitPanel.d.ts +32 -0
- package/lib/components/base/TMWaitPanel.js +44 -0
- package/lib/components/choosers/TMCultureIDPicker.d.ts +9 -0
- package/lib/components/choosers/TMCultureIDPicker.js +72 -0
- package/lib/components/choosers/TMDataListItemChooser.d.ts +17 -0
- package/lib/components/choosers/TMDataListItemChooser.js +49 -0
- package/lib/components/choosers/TMDataListItemPicker.d.ts +9 -0
- package/lib/components/choosers/TMDataListItemPicker.js +96 -0
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
- package/lib/components/choosers/TMDcmtTypeChooser.js +61 -0
- package/lib/components/choosers/TMDiskChooser.d.ts +10 -0
- package/lib/components/choosers/TMDiskChooser.js +41 -0
- package/lib/components/choosers/TMDistinctValues.d.ts +21 -0
- package/lib/components/choosers/TMDistinctValues.js +140 -0
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +40 -0
- package/lib/components/choosers/TMDynDataListItemChooser.js +159 -0
- package/lib/components/choosers/TMGroupChooser.d.ts +7 -0
- package/lib/components/choosers/TMGroupChooser.js +37 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMMetadataChooser.d.ts +54 -0
- package/lib/components/choosers/TMMetadataChooser.js +155 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMPathChooser.d.ts +12 -0
- package/lib/components/choosers/TMPathChooser.js +147 -0
- package/lib/components/choosers/TMRelationChooser.d.ts +31 -0
- package/lib/components/choosers/TMRelationChooser.js +94 -0
- package/lib/components/choosers/TMUserChooser.d.ts +40 -0
- package/lib/components/choosers/TMUserChooser.js +141 -0
- package/lib/components/editors/TMCheckBox.d.ts +9 -0
- package/lib/components/editors/TMCheckBox.js +90 -0
- package/lib/components/editors/TMDateBox.d.ts +17 -0
- package/lib/components/editors/TMDateBox.js +75 -0
- package/lib/components/editors/TMDropDown.d.ts +10 -0
- package/lib/components/editors/TMDropDown.js +62 -0
- package/lib/components/editors/TMEditorStyled.d.ts +41 -0
- package/lib/components/editors/TMEditorStyled.js +90 -0
- package/lib/components/editors/TMFormulaEditor.d.ts +49 -0
- package/lib/components/editors/TMFormulaEditor.js +727 -0
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +7 -0
- package/lib/components/editors/TMHtmlContentDisplay.js +78 -0
- package/lib/components/editors/TMHtmlEditor.d.ts +38 -0
- package/lib/components/editors/TMHtmlEditor.js +203 -0
- package/lib/components/editors/TMLocalizedTextBox.d.ts +19 -0
- package/lib/components/editors/TMLocalizedTextBox.js +125 -0
- package/lib/components/editors/TMMetadataEditor.d.ts +29 -0
- package/lib/components/editors/TMMetadataEditor.js +140 -0
- package/lib/components/editors/TMMetadataValues.d.ts +46 -0
- package/lib/components/editors/TMMetadataValues.js +530 -0
- package/lib/components/editors/TMRadioButton.d.ts +10 -0
- package/lib/components/editors/TMRadioButton.js +57 -0
- package/lib/components/editors/TMSummary.d.ts +20 -0
- package/lib/components/editors/TMSummary.js +92 -0
- package/lib/components/editors/TMTextArea.d.ts +17 -0
- package/lib/components/editors/TMTextArea.js +155 -0
- package/lib/components/editors/TMTextBox.d.ts +20 -0
- package/lib/components/editors/TMTextBox.js +249 -0
- package/lib/components/editors/TMTextExpression.d.ts +25 -0
- package/lib/components/editors/TMTextExpression.js +174 -0
- package/lib/components/editors/TMTreeDropDown.d.ts +18 -0
- package/lib/components/editors/TMTreeDropDown.js +66 -0
- package/lib/components/features/archive/TMArchive.d.ts +29 -0
- package/lib/components/features/archive/TMArchive.js +193 -0
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +12 -0
- package/lib/components/features/assistant/ToppyHelpCenter.js +173 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +17 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +333 -0
- package/lib/components/features/documents/TMBatchUpdateForm.d.ts +17 -0
- package/lib/components/features/documents/TMBatchUpdateForm.js +159 -0
- package/lib/components/features/documents/TMDcmtBlog.d.ts +23 -0
- package/lib/components/features/documents/TMDcmtBlog.js +65 -0
- package/lib/components/features/documents/TMDcmtForm.d.ts +64 -0
- package/lib/components/features/documents/TMDcmtForm.js +1498 -0
- package/lib/components/features/documents/TMDcmtIcon.d.ts +18 -0
- package/lib/components/features/documents/TMDcmtIcon.js +93 -0
- package/lib/components/features/documents/TMDcmtPreview.d.ts +31 -0
- package/lib/components/features/documents/TMDcmtPreview.js +446 -0
- package/lib/components/features/documents/TMDcmtTasks.d.ts +13 -0
- package/lib/components/features/documents/TMDcmtTasks.js +24 -0
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +6 -0
- package/lib/components/features/documents/TMDragDropOverlay.js +97 -0
- package/lib/components/features/documents/TMFileUploader.d.ts +14 -0
- package/lib/components/features/documents/TMFileUploader.js +115 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +26 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +288 -0
- package/lib/components/features/documents/TMRelationViewer.d.ts +121 -0
- package/lib/components/features/documents/TMRelationViewer.js +753 -0
- package/lib/components/features/search/TMSavedQueryForm.d.ts +9 -0
- package/lib/components/features/search/TMSavedQueryForm.js +41 -0
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +16 -0
- package/lib/components/features/search/TMSavedQuerySelector.js +226 -0
- package/lib/components/features/search/TMSearch.d.ts +40 -0
- package/lib/components/features/search/TMSearch.js +253 -0
- package/lib/components/features/search/TMSearchQueryEditor.d.ts +15 -0
- package/lib/components/features/search/TMSearchQueryEditor.js +367 -0
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +29 -0
- package/lib/components/features/search/TMSearchQueryPanel.js +438 -0
- package/lib/components/features/search/TMSearchResult.d.ts +53 -0
- package/lib/components/features/search/TMSearchResult.js +1092 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +16 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.js +50 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +11 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.js +725 -0
- package/lib/components/features/search/TMTreeSelector.d.ts +12 -0
- package/lib/components/features/search/TMTreeSelector.js +270 -0
- package/lib/components/features/tasks/TMTaskForm.d.ts +38 -0
- package/lib/components/features/tasks/TMTaskForm.js +392 -0
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +17 -0
- package/lib/components/features/tasks/TMTasksAgenda.js +107 -0
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +21 -0
- package/lib/components/features/tasks/TMTasksCalendar.js +240 -0
- package/lib/components/features/tasks/TMTasksHeader.d.ts +14 -0
- package/lib/components/features/tasks/TMTasksHeader.js +37 -0
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +20 -0
- package/lib/components/features/tasks/TMTasksPanelContent.js +65 -0
- package/lib/components/features/tasks/TMTasksUtils.d.ts +133 -0
- package/lib/components/features/tasks/TMTasksUtils.js +649 -0
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +39 -0
- package/lib/components/features/tasks/TMTasksUtilsView.js +140 -0
- package/lib/components/features/tasks/TMTasksView.d.ts +40 -0
- package/lib/components/features/tasks/TMTasksView.js +566 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +39 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +439 -0
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +42 -0
- package/lib/components/features/workflow/TMWorkflowPopup.js +286 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.d.ts +14 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +90 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.d.ts +9 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.js +73 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +18 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +264 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.d.ts +10 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +686 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.d.ts +12 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +97 -0
- package/lib/components/features/workflow/diagram/RecipientList.d.ts +27 -0
- package/lib/components/features/workflow/diagram/RecipientList.js +204 -0
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +9 -0
- package/lib/components/features/workflow/diagram/WFDiagram.js +1680 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +18 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +97 -0
- package/lib/components/features/workflow/diagram/interfaces.d.ts +126 -0
- package/lib/components/features/workflow/diagram/interfaces.js +26 -0
- package/lib/components/features/workflow/diagram/metadataParser.d.ts +14 -0
- package/lib/components/features/workflow/diagram/metadataParser.js +54 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.d.ts +3 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.js +188 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.d.ts +122 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.js +488 -0
- package/lib/components/features/workflow/diagram/xmlParser.d.ts +10 -0
- package/lib/components/features/workflow/diagram/xmlParser.js +490 -0
- package/lib/components/filesystem/ProgressBar.d.ts +7 -0
- package/lib/components/filesystem/ProgressBar.js +25 -0
- package/lib/components/forms/Login/ChangePassword.d.ts +9 -0
- package/lib/components/forms/Login/ChangePassword.js +22 -0
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +14 -0
- package/lib/components/forms/Login/ChangePasswordInputs.js +80 -0
- package/lib/components/forms/Login/Chooser.d.ts +28 -0
- package/lib/components/forms/Login/Chooser.js +145 -0
- package/lib/components/forms/Login/LOGINLocalizator.d.ts +29 -0
- package/lib/components/forms/Login/LOGINLocalizator.js +247 -0
- package/lib/components/forms/Login/LoginValidatorService.d.ts +50 -0
- package/lib/components/forms/Login/LoginValidatorService.js +162 -0
- package/lib/components/forms/Login/Menu.d.ts +10 -0
- package/lib/components/forms/Login/Menu.js +48 -0
- package/lib/components/forms/Login/OTPReader.d.ts +14 -0
- package/lib/components/forms/Login/OTPReader.js +90 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.d.ts +7 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.js +45 -0
- package/lib/components/forms/Login/RapidAccessLogin.d.ts +25 -0
- package/lib/components/forms/Login/RapidAccessLogin.js +310 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.d.ts +11 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.js +111 -0
- package/lib/components/forms/Login/SelectBox.d.ts +23 -0
- package/lib/components/forms/Login/SelectBox.js +96 -0
- package/lib/components/forms/Login/StepIndicator.d.ts +7 -0
- package/lib/components/forms/Login/StepIndicator.js +19 -0
- package/lib/components/forms/Login/TMLoginForm.d.ts +44 -0
- package/lib/components/forms/Login/TMLoginForm.js +737 -0
- package/lib/components/forms/Login/TextBox.d.ts +27 -0
- package/lib/components/forms/Login/TextBox.js +111 -0
- package/lib/components/forms/TMApplyForm.d.ts +4 -0
- package/lib/components/forms/TMApplyForm.js +105 -0
- package/lib/components/forms/TMChooserForm.d.ts +3 -0
- package/lib/components/forms/TMChooserForm.js +94 -0
- package/lib/components/forms/TMResultDialog.d.ts +20 -0
- package/lib/components/forms/TMResultDialog.js +44 -0
- package/lib/components/forms/TMSaveForm.d.ts +31 -0
- package/lib/components/forms/TMSaveForm.js +176 -0
- package/lib/components/grids/TMBlogAttachments.d.ts +42 -0
- package/lib/components/grids/TMBlogAttachments.js +43 -0
- package/lib/components/grids/TMBlogHeader.d.ts +31 -0
- package/lib/components/grids/TMBlogHeader.js +41 -0
- package/lib/components/grids/TMBlogsPost.d.ts +89 -0
- package/lib/components/grids/TMBlogsPost.js +644 -0
- package/lib/components/grids/TMBlogsPostUtils.d.ts +113 -0
- package/lib/components/grids/TMBlogsPostUtils.js +250 -0
- package/lib/components/grids/TMRecentsManager.d.ts +13 -0
- package/lib/components/grids/TMRecentsManager.js +155 -0
- package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
- package/lib/components/grids/TMValidationItemsList.js +82 -0
- package/lib/components/index.d.ts +115 -0
- package/lib/components/index.js +137 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +10 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +215 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +39 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +257 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +11 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +83 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +21 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +64 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +8 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.js +59 -0
- package/lib/components/layout/panelManager/types.d.ts +42 -0
- package/lib/components/layout/panelManager/types.js +1 -0
- package/lib/components/layout/panelManager/utils.d.ts +21 -0
- package/lib/components/layout/panelManager/utils.js +208 -0
- package/lib/components/pages/TMPage.d.ts +38 -0
- package/lib/components/pages/TMPage.js +220 -0
- package/lib/components/query/TMQueryEditor.d.ts +58 -0
- package/lib/components/query/TMQueryEditor.js +1001 -0
- package/lib/components/query/TMQuerySummary.d.ts +16 -0
- package/lib/components/query/TMQuerySummary.js +35 -0
- package/lib/components/settings/SettingsAppearance.d.ts +14 -0
- package/lib/components/settings/SettingsAppearance.js +73 -0
- package/lib/components/sidebar/TMAboutApp.d.ts +8 -0
- package/lib/components/sidebar/TMAboutApp.js +14 -0
- package/lib/components/sidebar/TMCommandsPanel.d.ts +16 -0
- package/lib/components/sidebar/TMCommandsPanel.js +27 -0
- package/lib/components/sidebar/TMHeader.d.ts +43 -0
- package/lib/components/sidebar/TMHeader.js +616 -0
- package/lib/components/sidebar/TMSidebar.d.ts +21 -0
- package/lib/components/sidebar/TMSidebar.js +61 -0
- package/lib/components/sidebar/TMSidebarItem.d.ts +15 -0
- package/lib/components/sidebar/TMSidebarItem.js +39 -0
- package/lib/components/viewers/TMDataListItemViewer.d.ts +10 -0
- package/lib/components/viewers/TMDataListItemViewer.js +80 -0
- package/lib/components/viewers/TMMidViewer.d.ts +36 -0
- package/lib/components/viewers/TMMidViewer.js +128 -0
- package/lib/components/viewers/TMTidViewer.d.ts +256 -0
- package/lib/components/viewers/TMTidViewer.js +343 -0
- package/lib/components/wizard/TMStepIndicator.d.ts +11 -0
- package/lib/components/wizard/TMStepIndicator.js +165 -0
- package/lib/components/wizard/TMWizard.d.ts +18 -0
- package/lib/components/wizard/TMWizard.js +93 -0
- package/lib/css/tm-sdkui.css +1 -0
- package/lib/helper/DeepCompareHelper.d.ts +7 -0
- package/lib/helper/DeepCompareHelper.js +106 -0
- package/lib/helper/Enum_Localizator.d.ts +18 -0
- package/lib/helper/Enum_Localizator.js +247 -0
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/Globalization.d.ts +15 -0
- package/lib/helper/Globalization.js +110 -0
- package/lib/helper/SDKUI_Globals.d.ts +96 -0
- package/lib/helper/SDKUI_Globals.js +174 -0
- package/lib/helper/SDKUI_Localizator.d.ts +739 -0
- package/lib/helper/SDKUI_Localizator.js +7298 -0
- package/lib/helper/TMCommandsContextMenu.d.ts +14 -0
- package/lib/helper/TMCommandsContextMenu.js +6 -0
- package/lib/helper/TMConditionalWrapper.d.ts +8 -0
- package/lib/helper/TMConditionalWrapper.js +4 -0
- package/lib/helper/TMCustomSearchBar.d.ts +8 -0
- package/lib/helper/TMCustomSearchBar.js +54 -0
- package/lib/helper/TMIcons.d.ts +274 -0
- package/lib/helper/TMIcons.js +673 -0
- package/lib/helper/TMImageLibrary.d.ts +4 -0
- package/lib/helper/TMImageLibrary.js +466 -0
- package/lib/helper/TMToppyMessage.d.ts +7 -0
- package/lib/helper/TMToppyMessage.js +42 -0
- package/lib/helper/TMUtils.d.ts +26 -0
- package/lib/helper/TMUtils.js +212 -0
- package/lib/helper/dcmtsHelper.d.ts +8 -0
- package/lib/helper/dcmtsHelper.js +53 -0
- package/lib/helper/helpers.d.ts +84 -0
- package/lib/helper/helpers.js +826 -0
- package/lib/helper/index.d.ts +13 -0
- package/lib/helper/index.js +13 -0
- package/lib/helper/queryHelper.d.ts +19 -0
- package/lib/helper/queryHelper.js +336 -0
- package/lib/hooks/useDcmtOperations.d.ts +24 -0
- package/lib/hooks/useDcmtOperations.js +482 -0
- package/lib/hooks/useForm.d.ts +24 -0
- package/lib/hooks/useForm.js +157 -0
- package/lib/hooks/useInputDialog.d.ts +9 -0
- package/lib/hooks/useInputDialog.js +105 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useOutsideClick.js +38 -0
- package/lib/hooks/usePreventFileDrop.d.ts +3 -0
- package/lib/hooks/usePreventFileDrop.js +37 -0
- package/lib/hooks/useQueryParametersDialog.d.ts +2 -0
- package/lib/hooks/useQueryParametersDialog.js +71 -0
- package/lib/hooks/useRelatedDocuments.d.ts +72 -0
- package/lib/hooks/useRelatedDocuments.js +664 -0
- package/lib/hooks/useResizeObserver.d.ts +4 -0
- package/lib/hooks/useResizeObserver.js +22 -0
- package/lib/hooks/useWorkflowApprove.d.ts +11 -0
- package/lib/hooks/useWorkflowApprove.js +57 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +15 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/platform_services.d.ts +18 -0
- package/lib/services/platform_services.js +492 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/lib/ts/types.d.ts +310 -0
- package/lib/ts/types.js +100 -0
- package/lib/utils/theme.d.ts +69 -0
- package/lib/utils/theme.js +81 -0
- package/package.json +54 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryDescriptor } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { WorkItemActor } from './RecipientList';
|
|
4
|
+
export declare const RecipientsContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const tosToActors: (tosString: string) => {
|
|
6
|
+
andRecipients: WorkItemActor[];
|
|
7
|
+
orRecipients: WorkItemActor[];
|
|
8
|
+
};
|
|
9
|
+
export declare const actorsToTos: (actors: WorkItemActor[]) => string;
|
|
10
|
+
interface WorkitemRecipientsEditorProps {
|
|
11
|
+
tos: string;
|
|
12
|
+
qd: QueryDescriptor | undefined;
|
|
13
|
+
mTID: number | undefined;
|
|
14
|
+
onTosChange: (newTos: string) => void;
|
|
15
|
+
onQDChange: (newQD: QueryDescriptor | undefined) => void;
|
|
16
|
+
}
|
|
17
|
+
declare const WorkitemRecipientsEditor: React.FC<WorkitemRecipientsEditorProps>;
|
|
18
|
+
export default WorkitemRecipientsEditor;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import RecipientList, { WorkItemActorTypes } from './RecipientList';
|
|
5
|
+
import { SDKUI_Localizator } from '../../../../helper';
|
|
6
|
+
export const RecipientsContainer = styled.div `
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 20px;
|
|
9
|
+
flex-wrap: wrap;
|
|
10
|
+
`;
|
|
11
|
+
export const tosToActors = (tosString) => {
|
|
12
|
+
const andRecipients = [];
|
|
13
|
+
const orRecipients = [];
|
|
14
|
+
if (!tosString)
|
|
15
|
+
return { andRecipients, orRecipients };
|
|
16
|
+
const tokens1 = tosString.split(';');
|
|
17
|
+
for (const t of tokens1) {
|
|
18
|
+
const t1 = t.trim();
|
|
19
|
+
if (!t1)
|
|
20
|
+
continue;
|
|
21
|
+
const tokens2 = t1.split('|');
|
|
22
|
+
if (tokens2.length < 2)
|
|
23
|
+
continue;
|
|
24
|
+
const actorTypeStr = tokens2[0].toUpperCase();
|
|
25
|
+
const actorType = WorkItemActorTypes[actorTypeStr];
|
|
26
|
+
const actorID = tokens2[1];
|
|
27
|
+
const or = tokens2.length === 3 ? parseInt(tokens2[2], 10) : 0;
|
|
28
|
+
if (actorType !== undefined) {
|
|
29
|
+
const actor = {
|
|
30
|
+
ActorType: actorType,
|
|
31
|
+
ActorID: actorID,
|
|
32
|
+
Or: or,
|
|
33
|
+
};
|
|
34
|
+
if (or === 0) {
|
|
35
|
+
andRecipients.push(actor);
|
|
36
|
+
}
|
|
37
|
+
else {
|
|
38
|
+
orRecipients.push(actor);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
return { andRecipients, orRecipients };
|
|
43
|
+
};
|
|
44
|
+
export const actorsToTos = (actors) => {
|
|
45
|
+
return actors.map(actor => `${WorkItemActorTypes[actor.ActorType]}|${actor.ActorID}|${actor.Or}`).join(';');
|
|
46
|
+
};
|
|
47
|
+
const WorkitemRecipientsEditor = ({ tos, qd, mTID, onTosChange, onQDChange }) => {
|
|
48
|
+
const [localTos, setLocalTos] = useState(tos);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
setLocalTos(tos);
|
|
51
|
+
}, [tos]);
|
|
52
|
+
const handleAddRecipients = useCallback((newRecipients, orValue) => {
|
|
53
|
+
setLocalTos(prevTos => {
|
|
54
|
+
const { andRecipients, orRecipients } = tosToActors(prevTos);
|
|
55
|
+
let allRecipients = [...andRecipients, ...orRecipients];
|
|
56
|
+
// 1. Rimuovi qualsiasi QID esistente se il nuovo destinatario è una query
|
|
57
|
+
if (newRecipients.length > 0 && newRecipients[0].ActorType === WorkItemActorTypes.QID) {
|
|
58
|
+
allRecipients = allRecipients.filter(r => r.ActorType !== WorkItemActorTypes.QID);
|
|
59
|
+
}
|
|
60
|
+
const updatedRecipients = [...allRecipients, ...newRecipients.map(r => ({ ...r, Or: orValue }))];
|
|
61
|
+
const newTos = actorsToTos(updatedRecipients);
|
|
62
|
+
onTosChange(newTos);
|
|
63
|
+
return newTos;
|
|
64
|
+
});
|
|
65
|
+
}, [onTosChange, onQDChange]);
|
|
66
|
+
const handleRemoveRecipient = useCallback((recipientToRemove) => {
|
|
67
|
+
setLocalTos(prevTos => {
|
|
68
|
+
const { andRecipients, orRecipients } = tosToActors(prevTos);
|
|
69
|
+
const allRecipients = [...andRecipients, ...orRecipients];
|
|
70
|
+
const updatedRecipients = allRecipients.filter(r => r.ActorType !== recipientToRemove.ActorType || r.ActorID !== recipientToRemove.ActorID || r.Or !== recipientToRemove.Or);
|
|
71
|
+
const newTos = actorsToTos(updatedRecipients);
|
|
72
|
+
onTosChange(newTos);
|
|
73
|
+
if (recipientToRemove.ActorType === WorkItemActorTypes.QID) {
|
|
74
|
+
onQDChange(undefined);
|
|
75
|
+
}
|
|
76
|
+
return newTos;
|
|
77
|
+
});
|
|
78
|
+
}, [onTosChange, onQDChange]);
|
|
79
|
+
const { andRecipients, orRecipients } = useMemo(() => {
|
|
80
|
+
return tosToActors(localTos);
|
|
81
|
+
}, [localTos]);
|
|
82
|
+
const handleQDChosen = useCallback((newQd, orValue) => {
|
|
83
|
+
const allRecipients = [...andRecipients, ...orRecipients];
|
|
84
|
+
const updatedRecipients = allRecipients.filter(r => r.ActorType !== WorkItemActorTypes.QID);
|
|
85
|
+
const recipientToAdd = {
|
|
86
|
+
ActorType: WorkItemActorTypes.QID,
|
|
87
|
+
ActorID: newQd.id ? newQd.id.toString() : '-1',
|
|
88
|
+
Or: orValue,
|
|
89
|
+
};
|
|
90
|
+
updatedRecipients.push(recipientToAdd);
|
|
91
|
+
const newTos = actorsToTos(updatedRecipients);
|
|
92
|
+
onTosChange(newTos);
|
|
93
|
+
onQDChange(newQd);
|
|
94
|
+
}, [andRecipients, orRecipients, onTosChange, onQDChange]);
|
|
95
|
+
return (_jsxs(RecipientsContainer, { children: [_jsx(RecipientList, { recipients: andRecipients, title: `${SDKUI_Localizator.Recipients} (AND)`, tid: mTID, qd: qd, onQDChange: (newQd) => newQd && handleQDChosen(newQd, 0), onAdd: (newRecipients) => handleAddRecipients(newRecipients, 0), onRemove: handleRemoveRecipient }), _jsx(RecipientList, { recipients: orRecipients, title: `${SDKUI_Localizator.Recipients} (OR)`, tid: mTID, qd: qd, onQDChange: (newQd) => newQd && handleQDChosen(newQd, 1), onAdd: (newRecipients) => handleAddRecipients(newRecipients, 1), onRemove: handleRemoveRecipient })] }));
|
|
96
|
+
};
|
|
97
|
+
export default WorkitemRecipientsEditor;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { CultureIDs, QueryDescriptor, Severities, WFAppTypes, WorkItemSetRules, WorkItemStatus } from "@topconsultnpm/sdk-ts";
|
|
2
|
+
import { MetadataValueDescriptorEx } from "../../../../ts";
|
|
3
|
+
export declare enum DiagramItemTypes {
|
|
4
|
+
None = 0,
|
|
5
|
+
Start = 1,
|
|
6
|
+
Condition = 2,
|
|
7
|
+
Status = 3,
|
|
8
|
+
Approval = 4,
|
|
9
|
+
DataEntry = 5,
|
|
10
|
+
ExecTask = 6,
|
|
11
|
+
UpdateDcmt = 7,
|
|
12
|
+
SignAndTimeStamp = 8,
|
|
13
|
+
Notification = 9,
|
|
14
|
+
WorkGroup_Create = 10,
|
|
15
|
+
CaseFlow_Create = 11,
|
|
16
|
+
RunApp = 12,
|
|
17
|
+
WorkGroup_AddParts = 13,
|
|
18
|
+
CaseFlow_AddParts = 14,
|
|
19
|
+
Exit = 88,
|
|
20
|
+
End = 99
|
|
21
|
+
}
|
|
22
|
+
export declare enum ArrowSymbol {
|
|
23
|
+
None = 0,
|
|
24
|
+
Arrow = 1,
|
|
25
|
+
Diamond = 2
|
|
26
|
+
}
|
|
27
|
+
export interface WfInfo {
|
|
28
|
+
ID: string;
|
|
29
|
+
MTID: number;
|
|
30
|
+
MStatusMID: number;
|
|
31
|
+
MStatusDLID: number;
|
|
32
|
+
Type?: number;
|
|
33
|
+
}
|
|
34
|
+
export interface DiagramItem {
|
|
35
|
+
ID: string;
|
|
36
|
+
Left: number;
|
|
37
|
+
Top: number;
|
|
38
|
+
Width: number;
|
|
39
|
+
Height: number;
|
|
40
|
+
Type: DiagramItemTypes;
|
|
41
|
+
ItemName: string;
|
|
42
|
+
ItemName_IT?: string;
|
|
43
|
+
ItemName_EN?: string;
|
|
44
|
+
ItemName_FR?: string;
|
|
45
|
+
ItemName_PT?: string;
|
|
46
|
+
ItemName_ES?: string;
|
|
47
|
+
ItemName_DE?: string;
|
|
48
|
+
Description: string;
|
|
49
|
+
Description_IT?: string;
|
|
50
|
+
Description_EN?: string;
|
|
51
|
+
Description_FR?: string;
|
|
52
|
+
Description_PT?: string;
|
|
53
|
+
Description_ES?: string;
|
|
54
|
+
Description_DE?: string;
|
|
55
|
+
StatusValue?: string;
|
|
56
|
+
RegisterPost?: boolean;
|
|
57
|
+
AllowZeroTos?: boolean;
|
|
58
|
+
Tos?: string;
|
|
59
|
+
SetRule?: WorkItemSetRules;
|
|
60
|
+
StartAfterArchive?: number;
|
|
61
|
+
StartAfterUpdate?: number;
|
|
62
|
+
StartAfterUpdateMIDs?: number[];
|
|
63
|
+
StartManual?: number;
|
|
64
|
+
Hist?: number;
|
|
65
|
+
EndWFInstance?: number;
|
|
66
|
+
QD?: QueryDescriptor;
|
|
67
|
+
SOD?: string;
|
|
68
|
+
MetadataValues?: MetadataValueDescriptorEx[];
|
|
69
|
+
Severity?: Severities;
|
|
70
|
+
RegAsWfInstPart?: number;
|
|
71
|
+
FormatCultureID?: CultureIDs | undefined;
|
|
72
|
+
Tos2?: string;
|
|
73
|
+
QD2?: QueryDescriptor;
|
|
74
|
+
PlatformObjName?: string;
|
|
75
|
+
PlatformObjDescr?: string;
|
|
76
|
+
Value1asInt?: number;
|
|
77
|
+
Value2asInt?: number;
|
|
78
|
+
Value3asInt?: number;
|
|
79
|
+
Value1asString?: string;
|
|
80
|
+
AppType?: WFAppTypes;
|
|
81
|
+
AppName?: string;
|
|
82
|
+
AppArgs?: string;
|
|
83
|
+
Trunc?: number;
|
|
84
|
+
}
|
|
85
|
+
export interface ConnectionPoint {
|
|
86
|
+
ParentDiagramItem: {
|
|
87
|
+
ID: string;
|
|
88
|
+
};
|
|
89
|
+
ConnectorName: string;
|
|
90
|
+
}
|
|
91
|
+
export interface Connection {
|
|
92
|
+
ID: string;
|
|
93
|
+
Source: ConnectionPoint;
|
|
94
|
+
Sink: ConnectionPoint;
|
|
95
|
+
OutputStatus: WorkItemStatus;
|
|
96
|
+
Description: string;
|
|
97
|
+
Description_IT?: string;
|
|
98
|
+
Description_EN?: string;
|
|
99
|
+
Description_FR?: string;
|
|
100
|
+
Description_PT?: string;
|
|
101
|
+
Description_ES?: string;
|
|
102
|
+
Description_DE?: string;
|
|
103
|
+
PathGeometry: string;
|
|
104
|
+
SourceArrowSymbol: ArrowSymbol;
|
|
105
|
+
SinkArrowSymbol: ArrowSymbol;
|
|
106
|
+
sinkArrowAngle?: number;
|
|
107
|
+
}
|
|
108
|
+
export interface WfDiagram {
|
|
109
|
+
Info: WfInfo | null;
|
|
110
|
+
DiagramItems: DiagramItem[];
|
|
111
|
+
Connections: Connection[];
|
|
112
|
+
}
|
|
113
|
+
export interface Point {
|
|
114
|
+
x: number;
|
|
115
|
+
y: number;
|
|
116
|
+
}
|
|
117
|
+
export interface Rect {
|
|
118
|
+
x: number;
|
|
119
|
+
y: number;
|
|
120
|
+
width: number;
|
|
121
|
+
height: number;
|
|
122
|
+
}
|
|
123
|
+
export interface TextDimensions {
|
|
124
|
+
width: number;
|
|
125
|
+
height: number;
|
|
126
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export var DiagramItemTypes;
|
|
2
|
+
(function (DiagramItemTypes) {
|
|
3
|
+
DiagramItemTypes[DiagramItemTypes["None"] = 0] = "None";
|
|
4
|
+
DiagramItemTypes[DiagramItemTypes["Start"] = 1] = "Start";
|
|
5
|
+
DiagramItemTypes[DiagramItemTypes["Condition"] = 2] = "Condition";
|
|
6
|
+
DiagramItemTypes[DiagramItemTypes["Status"] = 3] = "Status";
|
|
7
|
+
DiagramItemTypes[DiagramItemTypes["Approval"] = 4] = "Approval";
|
|
8
|
+
DiagramItemTypes[DiagramItemTypes["DataEntry"] = 5] = "DataEntry";
|
|
9
|
+
DiagramItemTypes[DiagramItemTypes["ExecTask"] = 6] = "ExecTask";
|
|
10
|
+
DiagramItemTypes[DiagramItemTypes["UpdateDcmt"] = 7] = "UpdateDcmt";
|
|
11
|
+
DiagramItemTypes[DiagramItemTypes["SignAndTimeStamp"] = 8] = "SignAndTimeStamp";
|
|
12
|
+
DiagramItemTypes[DiagramItemTypes["Notification"] = 9] = "Notification";
|
|
13
|
+
DiagramItemTypes[DiagramItemTypes["WorkGroup_Create"] = 10] = "WorkGroup_Create";
|
|
14
|
+
DiagramItemTypes[DiagramItemTypes["CaseFlow_Create"] = 11] = "CaseFlow_Create";
|
|
15
|
+
DiagramItemTypes[DiagramItemTypes["RunApp"] = 12] = "RunApp";
|
|
16
|
+
DiagramItemTypes[DiagramItemTypes["WorkGroup_AddParts"] = 13] = "WorkGroup_AddParts";
|
|
17
|
+
DiagramItemTypes[DiagramItemTypes["CaseFlow_AddParts"] = 14] = "CaseFlow_AddParts";
|
|
18
|
+
DiagramItemTypes[DiagramItemTypes["Exit"] = 88] = "Exit";
|
|
19
|
+
DiagramItemTypes[DiagramItemTypes["End"] = 99] = "End";
|
|
20
|
+
})(DiagramItemTypes || (DiagramItemTypes = {}));
|
|
21
|
+
export var ArrowSymbol;
|
|
22
|
+
(function (ArrowSymbol) {
|
|
23
|
+
ArrowSymbol[ArrowSymbol["None"] = 0] = "None";
|
|
24
|
+
ArrowSymbol[ArrowSymbol["Arrow"] = 1] = "Arrow";
|
|
25
|
+
ArrowSymbol[ArrowSymbol["Diamond"] = 2] = "Diamond";
|
|
26
|
+
})(ArrowSymbol || (ArrowSymbol = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MetadataValueDescriptorEx } from "../../../../ts";
|
|
2
|
+
/**
|
|
3
|
+
* Parsa la stringa XML annidata di MetadataValues in un array di MetadataValueDescriptor.
|
|
4
|
+
* @param xmlString La stringa XML grezza contenente le entità codificate.
|
|
5
|
+
* @returns Un array di MetadataValueDescriptor.
|
|
6
|
+
*/
|
|
7
|
+
export declare const parseMetadataValuesXml: (xmlString: string) => MetadataValueDescriptorEx[];
|
|
8
|
+
/**
|
|
9
|
+
* Serializza un array di MetadataValueDescriptor nella stringa XML richiesta
|
|
10
|
+
* dal C# DataContractSerializer, con le entità codificate.
|
|
11
|
+
* @param metadataValues L'array di MetadataValueDescriptor da serializzare.
|
|
12
|
+
* @returns La stringa XML pronta da inserire nel tag <MetadataValues>.
|
|
13
|
+
*/
|
|
14
|
+
export declare const serializeMetadataValuesToXml: (metadataValues: MetadataValueDescriptorEx[] | undefined) => string;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { MetadataValueDescriptorEx } from "../../../../ts";
|
|
2
|
+
/**
|
|
3
|
+
* Parsa la stringa XML annidata di MetadataValues in un array di MetadataValueDescriptor.
|
|
4
|
+
* @param xmlString La stringa XML grezza contenente le entità codificate.
|
|
5
|
+
* @returns Un array di MetadataValueDescriptor.
|
|
6
|
+
*/
|
|
7
|
+
export const parseMetadataValuesXml = (xmlString) => {
|
|
8
|
+
const parser = new DOMParser();
|
|
9
|
+
const xmlDoc = parser.parseFromString(xmlString, "application/xml");
|
|
10
|
+
const metadataDescriptors = [];
|
|
11
|
+
const itemsXML = xmlDoc.querySelectorAll("MetadataValueDescriptor");
|
|
12
|
+
itemsXML.forEach(itemXML => {
|
|
13
|
+
const descriptor = new MetadataValueDescriptorEx();
|
|
14
|
+
descriptor.mid = parseInt(itemXML.querySelector("MID")?.textContent || "0", 10);
|
|
15
|
+
descriptor.metadataName = itemXML.querySelector("MetadataName")?.textContent || undefined;
|
|
16
|
+
descriptor.value = itemXML.querySelector("Value")?.textContent || undefined;
|
|
17
|
+
metadataDescriptors.push(descriptor);
|
|
18
|
+
});
|
|
19
|
+
return metadataDescriptors;
|
|
20
|
+
};
|
|
21
|
+
/**
|
|
22
|
+
* Serializza un array di MetadataValueDescriptor nella stringa XML richiesta
|
|
23
|
+
* dal C# DataContractSerializer, con le entità codificate.
|
|
24
|
+
* @param metadataValues L'array di MetadataValueDescriptor da serializzare.
|
|
25
|
+
* @returns La stringa XML pronta da inserire nel tag <MetadataValues>.
|
|
26
|
+
*/
|
|
27
|
+
export const serializeMetadataValuesToXml = (metadataValues) => {
|
|
28
|
+
if (!metadataValues || metadataValues.length === 0) {
|
|
29
|
+
return "";
|
|
30
|
+
}
|
|
31
|
+
let xml = `<ArrayOfMetadataValueDescriptor xmlns="http://schemas.datacontract.org/2004/07/TopConsult.TM5.Server.WEBSDK.Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">`;
|
|
32
|
+
metadataValues.forEach(md => {
|
|
33
|
+
xml += `<MetadataValueDescriptor>`;
|
|
34
|
+
xml += `<MID>${md.mid}</MID>`;
|
|
35
|
+
// Il C# DataContractSerializer usa <MetadataName i:nil="true"/> per valori nulli
|
|
36
|
+
if (md.metadataName === undefined || md.metadataName === null) {
|
|
37
|
+
xml += `<MetadataName i:nil="true"/>`;
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
xml += `<MetadataName>${md.metadataName}</MetadataName>`;
|
|
41
|
+
}
|
|
42
|
+
// Gestione del valore (potrebbe essere nullo o vuoto)
|
|
43
|
+
if (md.value === undefined || md.value === null) {
|
|
44
|
+
xml += `<Value i:nil="true"/>`;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
xml += `<Value>${md.value}</Value>`;
|
|
48
|
+
}
|
|
49
|
+
xml += `</MetadataValueDescriptor>`;
|
|
50
|
+
});
|
|
51
|
+
xml += `</ArrayOfMetadataValueDescriptor>`;
|
|
52
|
+
// Codifica le entità XML per inserire la stringa nel tag principale
|
|
53
|
+
return xml;
|
|
54
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
import { FromItem, JoinItem, OnJoinItem, OrderByItem, QueryDescriptor, QueryParameterDescriptor, SDK_Globals, SearchEngine, SelectItem, WhereItem } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
/**
|
|
3
|
+
* Safely gets text content of an element and converts to a number.
|
|
4
|
+
* Returns undefined if element or content is missing/invalid.
|
|
5
|
+
*/
|
|
6
|
+
const getNumber = (element, selector) => {
|
|
7
|
+
const text = element?.querySelector(selector)?.textContent;
|
|
8
|
+
if (text === null || text === undefined || text.trim() === '') {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
const num = parseInt(text, 10);
|
|
12
|
+
return isNaN(num) ? undefined : num;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Safely gets text content of an element and converts to a boolean.
|
|
16
|
+
* Returns undefined if element or content is missing/invalid.
|
|
17
|
+
*/
|
|
18
|
+
const getBoolean = (element, selector) => {
|
|
19
|
+
const text = element?.querySelector(selector)?.textContent;
|
|
20
|
+
if (text === null || text === undefined || text.trim() === '') {
|
|
21
|
+
return undefined;
|
|
22
|
+
}
|
|
23
|
+
return text.toLowerCase() === 'true';
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Safely gets text content of an element.
|
|
27
|
+
* Returns undefined if element or content is missing/empty.
|
|
28
|
+
*/
|
|
29
|
+
const getString = (element, selector) => {
|
|
30
|
+
const text = element?.querySelector(selector)?.textContent;
|
|
31
|
+
if (text === null || text === undefined || text.trim() === '') {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
return text;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Parses a single SelectItem XML element.
|
|
38
|
+
*/
|
|
39
|
+
const parseSelectItem = (itemXML) => {
|
|
40
|
+
const selectItem = new SelectItem();
|
|
41
|
+
selectItem.function = getString(itemXML, "Function");
|
|
42
|
+
selectItem.tid = getNumber(itemXML, "TID");
|
|
43
|
+
selectItem.alias = getString(itemXML, "Alias");
|
|
44
|
+
selectItem.mid = getNumber(itemXML, "MID");
|
|
45
|
+
selectItem.as = getString(itemXML, "As");
|
|
46
|
+
selectItem.visibility = getString(itemXML, "Visibility");
|
|
47
|
+
return selectItem;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Parses a single FromItem XML element.
|
|
51
|
+
*/
|
|
52
|
+
const parseFromItem = (itemXML) => {
|
|
53
|
+
const fromItem = new FromItem();
|
|
54
|
+
fromItem.tid = getNumber(itemXML, "TID");
|
|
55
|
+
return fromItem;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* Parses a single OnJoinItem XML element.
|
|
59
|
+
*/
|
|
60
|
+
const parseOnJoinItem = (itemXML) => {
|
|
61
|
+
const onJoinItem = new OnJoinItem();
|
|
62
|
+
onJoinItem.leftBrackets = getString(itemXML, "LeftBrackets");
|
|
63
|
+
onJoinItem.leftTID = getNumber(itemXML, "LeftTID");
|
|
64
|
+
onJoinItem.leftAlias = getString(itemXML, "LeftAlias");
|
|
65
|
+
onJoinItem.leftMID = getNumber(itemXML, "LeftMID");
|
|
66
|
+
onJoinItem.operator = getString(itemXML, "Operator");
|
|
67
|
+
onJoinItem.rightTID = getNumber(itemXML, "RightTID");
|
|
68
|
+
onJoinItem.rightAlias = getString(itemXML, "RightAlias");
|
|
69
|
+
onJoinItem.rightMID = getNumber(itemXML, "RightMID");
|
|
70
|
+
onJoinItem.rightBrackets = getString(itemXML, "RightBrackets");
|
|
71
|
+
onJoinItem.or = getBoolean(itemXML, "Or");
|
|
72
|
+
return onJoinItem;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Parses a single JoinItem XML element.
|
|
76
|
+
*/
|
|
77
|
+
const parseJoinItem = (itemXML) => {
|
|
78
|
+
const joinItem = new JoinItem();
|
|
79
|
+
joinItem.joinType = getString(itemXML, "JoinType");
|
|
80
|
+
joinItem.tid = getNumber(itemXML, "TID");
|
|
81
|
+
joinItem.alias = getString(itemXML, "Alias");
|
|
82
|
+
const onItems = [];
|
|
83
|
+
itemXML.querySelectorAll("On > OnJoinItem").forEach(onItemXML => {
|
|
84
|
+
onItems.push(parseOnJoinItem(onItemXML));
|
|
85
|
+
});
|
|
86
|
+
joinItem.on = onItems.length > 0 ? onItems : undefined;
|
|
87
|
+
return joinItem;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Parses a single WhereItem XML element.
|
|
91
|
+
*/
|
|
92
|
+
const parseWhereItem = (itemXML) => {
|
|
93
|
+
const whereItem = new WhereItem();
|
|
94
|
+
whereItem.leftBrackets = getString(itemXML, "LeftBrackets");
|
|
95
|
+
whereItem.tid = getNumber(itemXML, "TID");
|
|
96
|
+
whereItem.alias = getString(itemXML, "Alias");
|
|
97
|
+
whereItem.mid = getNumber(itemXML, "MID");
|
|
98
|
+
whereItem.operator = getString(itemXML, "Operator");
|
|
99
|
+
whereItem.value1 = getString(itemXML, "Value1");
|
|
100
|
+
whereItem.value2 = getString(itemXML, "Value2");
|
|
101
|
+
whereItem.rightBrackets = getString(itemXML, "RightBrackets");
|
|
102
|
+
whereItem.or = getBoolean(itemXML, "Or");
|
|
103
|
+
return whereItem;
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Parses a single OrderByItem XML element.
|
|
107
|
+
*/
|
|
108
|
+
const parseOrderByItem = (itemXML) => {
|
|
109
|
+
const orderByItem = new OrderByItem();
|
|
110
|
+
orderByItem.tid = getNumber(itemXML, "TID");
|
|
111
|
+
orderByItem.alias = getString(itemXML, "Alias");
|
|
112
|
+
orderByItem.mid = getNumber(itemXML, "MID");
|
|
113
|
+
orderByItem.asc = getBoolean(itemXML, "Asc");
|
|
114
|
+
return orderByItem;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Parses a single QueryParameterDescriptor XML element.
|
|
118
|
+
* Note: 'value' parsing is generic, may need refinement based on actual data types.
|
|
119
|
+
*/
|
|
120
|
+
const parseQueryParameterDescriptor = (itemXML) => {
|
|
121
|
+
const paramDescriptor = new QueryParameterDescriptor();
|
|
122
|
+
// For 'value', you might need more sophisticated parsing depending on its type (string, number, boolean, etc.)
|
|
123
|
+
const valueElement = itemXML.querySelector("Value");
|
|
124
|
+
paramDescriptor.value = valueElement ? valueElement.textContent : undefined;
|
|
125
|
+
paramDescriptor.mappedTID = getNumber(itemXML, "MappedTID");
|
|
126
|
+
paramDescriptor.mappedMID = getNumber(itemXML, "MappedMID");
|
|
127
|
+
return paramDescriptor;
|
|
128
|
+
};
|
|
129
|
+
export const parseQueryDescriptorXml = (xmlString) => {
|
|
130
|
+
if (!xmlString || xmlString.trim() === '') {
|
|
131
|
+
return undefined;
|
|
132
|
+
}
|
|
133
|
+
const parser = new DOMParser();
|
|
134
|
+
const xmlDoc = parser.parseFromString(xmlString, "application/xml");
|
|
135
|
+
let queryDescriptorElement = xmlDoc.querySelector("QueryDescriptor");
|
|
136
|
+
if (!queryDescriptorElement && xmlDoc.documentElement?.tagName === "QueryDescriptor") {
|
|
137
|
+
// Fallback: If QueryDescriptor is the root element and not found as a child
|
|
138
|
+
queryDescriptorElement = xmlDoc.documentElement;
|
|
139
|
+
}
|
|
140
|
+
if (!queryDescriptorElement) {
|
|
141
|
+
console.warn("L'XML del QueryDescriptor non contiene l'elemento <QueryDescriptor>.");
|
|
142
|
+
return undefined;
|
|
143
|
+
}
|
|
144
|
+
const queryDescriptor = new QueryDescriptor();
|
|
145
|
+
queryDescriptor.maxDcmtsToBeReturned = getNumber(queryDescriptorElement, "MaxDcmtsToBeReturned");
|
|
146
|
+
const selectItems = [];
|
|
147
|
+
queryDescriptorElement.querySelectorAll("Select > SelectItem").forEach(itemXML => {
|
|
148
|
+
selectItems.push(parseSelectItem(itemXML));
|
|
149
|
+
});
|
|
150
|
+
queryDescriptor.select = selectItems.length > 0 ? selectItems : undefined;
|
|
151
|
+
const fromElement = queryDescriptorElement.querySelector("From");
|
|
152
|
+
if (fromElement) {
|
|
153
|
+
queryDescriptor.from = parseFromItem(fromElement);
|
|
154
|
+
}
|
|
155
|
+
const joinItems = [];
|
|
156
|
+
queryDescriptorElement.querySelectorAll("Join > JoinItem").forEach(itemXML => {
|
|
157
|
+
joinItems.push(parseJoinItem(itemXML));
|
|
158
|
+
});
|
|
159
|
+
queryDescriptor.join = joinItems.length > 0 ? joinItems : undefined;
|
|
160
|
+
const whereItems = [];
|
|
161
|
+
queryDescriptorElement.querySelectorAll("Where > WhereItem").forEach(itemXML => {
|
|
162
|
+
whereItems.push(parseWhereItem(itemXML));
|
|
163
|
+
});
|
|
164
|
+
queryDescriptor.where = whereItems.length > 0 ? whereItems : undefined;
|
|
165
|
+
const orderByItems = [];
|
|
166
|
+
queryDescriptorElement.querySelectorAll("OrderBy > OrderByItem").forEach(itemXML => {
|
|
167
|
+
orderByItems.push(parseOrderByItem(itemXML));
|
|
168
|
+
});
|
|
169
|
+
queryDescriptor.orderBy = orderByItems.length > 0 ? orderByItems : undefined;
|
|
170
|
+
const paramsItems = [];
|
|
171
|
+
queryDescriptorElement.querySelectorAll("Params > QueryParameterDescriptor").forEach(itemXML => {
|
|
172
|
+
paramsItems.push(parseQueryParameterDescriptor(itemXML));
|
|
173
|
+
});
|
|
174
|
+
queryDescriptor.params = paramsItems.length > 0 ? paramsItems : undefined;
|
|
175
|
+
return SearchEngine.NormalizeQueryDescriptor(queryDescriptor);
|
|
176
|
+
};
|
|
177
|
+
export const serializeQueryDescriptorXml = async (qd) => {
|
|
178
|
+
// try {
|
|
179
|
+
if (!qd)
|
|
180
|
+
return '';
|
|
181
|
+
let xml = await SDK_Globals.tmSession?.NewDcmtPlatformEngine().UtilsSerializeQdAsync(qd) ?? '';
|
|
182
|
+
return xml;
|
|
183
|
+
// } catch (error) {
|
|
184
|
+
// console.error('Error serializing QueryDescriptor to XML:', error);
|
|
185
|
+
//TODO: gestire errore
|
|
186
|
+
// return '';
|
|
187
|
+
// }
|
|
188
|
+
};
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { ValidationItem, WorkItemStatus } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
import { Point, Rect, DiagramItem, WfDiagram, TextDimensions, Connection, WfInfo } from './interfaces';
|
|
3
|
+
/**
|
|
4
|
+
* Calculates the angle in degrees of an arrow based on two points.
|
|
5
|
+
* @param prevPoint The previous point on the trajectory.
|
|
6
|
+
* @param currentPoint The current point (where the arrow tip is located).
|
|
7
|
+
* @returns The angle in degrees.
|
|
8
|
+
*/
|
|
9
|
+
export declare const calculateArrowAngle: (prevPoint: Point, currentPoint: Point) => number;
|
|
10
|
+
/**
|
|
11
|
+
* Calculates the center point of a diagram item.
|
|
12
|
+
* @param item The diagram item.
|
|
13
|
+
* @returns The center point.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getItemCenter: (item: DiagramItem) => Point;
|
|
16
|
+
/**
|
|
17
|
+
* Calculates the specific connection point for a given connector of an item.
|
|
18
|
+
* @param item The diagram item.
|
|
19
|
+
* @param connectorName The name of the connector (e.g., "Left", "Right", "Top", "Bottom").
|
|
20
|
+
* @returns The connection point.
|
|
21
|
+
*/
|
|
22
|
+
export declare const getConnectionPoint: (item: DiagramItem, connectorName: string) => Point;
|
|
23
|
+
/**
|
|
24
|
+
* Determines whether a connection requires a non-linear path (one that "bends" around the nodes).
|
|
25
|
+
* This typically occurs when the source and sink connectors are on the same side
|
|
26
|
+
* or when the node alignment is inverted relative to the opposite connectors.
|
|
27
|
+
*
|
|
28
|
+
* @param sourceRect The rectangle of the source node.
|
|
29
|
+
* @param sinkRect The rectangle of the sink node.
|
|
30
|
+
* @param sourceConnectorName The name of the source connector (e.g., "Right", "Left").
|
|
31
|
+
* @param sinkConnectorName The name of the sink connector (e.g., "Right", "Left").
|
|
32
|
+
* @returns True if the connection is considered non-linear, otherwise False.
|
|
33
|
+
*/
|
|
34
|
+
export declare const isConnectionNonLinear: (sourceRect: Rect, sinkRect: Rect, sourceConnectorName: string, sinkConnectorName: string) => boolean;
|
|
35
|
+
export declare const SVG_ICON_SIZE = 60;
|
|
36
|
+
export declare const PADDING_TOP = 5;
|
|
37
|
+
export declare const PADDING_BOTTOM = 5;
|
|
38
|
+
export declare const PADDING_HORIZONTAL = 5;
|
|
39
|
+
export declare const SPACING_SVG_TEXT = 0;
|
|
40
|
+
export declare const FONT_SIZE = 11;
|
|
41
|
+
export declare const MAX_ITEM_WIDTH = 130;
|
|
42
|
+
export declare const MIN_ITEM_WIDTH = 64;
|
|
43
|
+
export declare const MAX_LINES = 2;
|
|
44
|
+
/**
|
|
45
|
+
* Breaks a string into multiple lines to fit a maximum width, adding an ellipsis if it exceeds the maximum number of lines.
|
|
46
|
+
*
|
|
47
|
+
* @param text The string to be wrapped.
|
|
48
|
+
* @param maxWidth The maximum width for a single line of text.
|
|
49
|
+
* @param maxLines The maximum number of lines allowed before truncation.
|
|
50
|
+
* @returns An array of strings, where each element is a line of text.
|
|
51
|
+
*/
|
|
52
|
+
export declare const wrapText: (text: string, maxWidth: number, maxLines: number, ctx: CanvasRenderingContext2D) => string[];
|
|
53
|
+
/**
|
|
54
|
+
* Calculates the full dimensions of a diagram item, including the icon and text.
|
|
55
|
+
* This function is based on already measured or estimated text dimensions.
|
|
56
|
+
*
|
|
57
|
+
* @param item The DiagramItem.
|
|
58
|
+
* @param textDimensions The dimensions (width, height) of the item's text.
|
|
59
|
+
* @returns An object with the calculatedWidth and calculatedHeight of the item.
|
|
60
|
+
*/
|
|
61
|
+
export declare const calculateDiagramItemFullDimensions: (item: DiagramItem, textDimensions: TextDimensions) => {
|
|
62
|
+
calculatedWidth: number;
|
|
63
|
+
calculatedHeight: number;
|
|
64
|
+
};
|
|
65
|
+
/** Helper function to get the color based on connection status */
|
|
66
|
+
export declare const getConnectionColor: (status: WorkItemStatus) => string;
|
|
67
|
+
export declare const validateDiagram: (diagram: WfDiagram, newConnection?: Connection) => void;
|
|
68
|
+
export declare const downloadFile: (data: string, filename: string, type: string) => void;
|
|
69
|
+
export declare const getNewWfDiagram: (info: WfInfo | null) => WfDiagram;
|
|
70
|
+
export declare const workflowValidator: (wf: WfDiagram) => Promise<ValidationItem[]>;
|
|
71
|
+
export declare const DiagramItemProps: {
|
|
72
|
+
ID: string;
|
|
73
|
+
Left: string;
|
|
74
|
+
Top: string;
|
|
75
|
+
Width: string;
|
|
76
|
+
Height: string;
|
|
77
|
+
Type: string;
|
|
78
|
+
ItemName: string;
|
|
79
|
+
ItemName_IT: string;
|
|
80
|
+
ItemName_EN: string;
|
|
81
|
+
ItemName_FR: string;
|
|
82
|
+
ItemName_PT: string;
|
|
83
|
+
ItemName_ES: string;
|
|
84
|
+
ItemName_DE: string;
|
|
85
|
+
Description: string;
|
|
86
|
+
Description_IT: string;
|
|
87
|
+
Description_EN: string;
|
|
88
|
+
Description_FR: string;
|
|
89
|
+
Description_PT: string;
|
|
90
|
+
Description_ES: string;
|
|
91
|
+
Description_DE: string;
|
|
92
|
+
StatusValue: string;
|
|
93
|
+
RegisterPost: string;
|
|
94
|
+
AllowZeroTos: string;
|
|
95
|
+
Tos: string;
|
|
96
|
+
SetRule: string;
|
|
97
|
+
StartAfterArchive: string;
|
|
98
|
+
StartAfterUpdate: string;
|
|
99
|
+
StartAfterUpdateMIDs: string;
|
|
100
|
+
StartManual: string;
|
|
101
|
+
Hist: string;
|
|
102
|
+
EndWFInstance: string;
|
|
103
|
+
QD: string;
|
|
104
|
+
SOD: string;
|
|
105
|
+
MetadataValues: string;
|
|
106
|
+
Severity: string;
|
|
107
|
+
RegAsWfInstPart: string;
|
|
108
|
+
FormatCultureID: string;
|
|
109
|
+
Tos2: string;
|
|
110
|
+
QD2: string;
|
|
111
|
+
PlatformObjName: string;
|
|
112
|
+
PlatformObjDescr: string;
|
|
113
|
+
Value1asInt: string;
|
|
114
|
+
Value2asInt: string;
|
|
115
|
+
Value3asInt: string;
|
|
116
|
+
Value1asString: string;
|
|
117
|
+
AppType: string;
|
|
118
|
+
AppName: string;
|
|
119
|
+
AppArgs: string;
|
|
120
|
+
Trunc: string;
|
|
121
|
+
};
|
|
122
|
+
export declare const wfDiagramItemValidator: (d: DiagramItem) => Promise<ValidationItem[]>;
|