@topconsultnpm/sdkui-react 6.17.0-test9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/IconsS4t/add.svg +12 -0
- package/lib/assets/IconsS4t/aggiorna.svg +18 -0
- package/lib/assets/IconsS4t/bookmark.svg +42 -0
- package/lib/assets/IconsS4t/cancella.svg +15 -0
- package/lib/assets/IconsS4t/check-box.svg +19 -0
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/down.svg +28 -0
- package/lib/assets/IconsS4t/edit-file.svg +19 -0
- package/lib/assets/IconsS4t/edita.svg +32 -0
- package/lib/assets/IconsS4t/firma.svg +19 -0
- package/lib/assets/IconsS4t/icona_download.svg +16 -0
- package/lib/assets/IconsS4t/info.svg +51 -0
- package/lib/assets/IconsS4t/left.svg +20 -0
- package/lib/assets/IconsS4t/line.svg +40 -0
- package/lib/assets/IconsS4t/more.svg +19 -0
- package/lib/assets/IconsS4t/new-signature.svg +1 -0
- package/lib/assets/IconsS4t/plus.svg +23 -0
- package/lib/assets/IconsS4t/printer.svg +49 -0
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -0
- package/lib/assets/IconsS4t/rectangle.svg +41 -0
- package/lib/assets/IconsS4t/redo.svg +19 -0
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -0
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/right.svg +22 -0
- package/lib/assets/IconsS4t/searchbar.svg +21 -0
- package/lib/assets/IconsS4t/text-box.svg +36 -0
- package/lib/assets/IconsS4t/tick.svg +8 -0
- package/lib/assets/IconsS4t/trash-white.svg +11 -0
- package/lib/assets/IconsS4t/trash.svg +1 -0
- package/lib/assets/IconsS4t/undo.svg +19 -0
- package/lib/assets/IconsS4t/up.svg +32 -0
- package/lib/assets/IconsS4t/video-streaming.svg +2 -0
- package/lib/assets/IconsS4t/zoom-in.svg +58 -0
- package/lib/assets/IconsS4t/zoom-out.svg +56 -0
- package/lib/assets/ImageLibrary/arrow_001.png +0 -0
- package/lib/assets/ImageLibrary/arrow_002.png +0 -0
- package/lib/assets/ImageLibrary/arrow_003.png +0 -0
- package/lib/assets/ImageLibrary/arrow_004.png +0 -0
- package/lib/assets/ImageLibrary/arrow_005.png +0 -0
- package/lib/assets/ImageLibrary/arrow_006.png +0 -0
- package/lib/assets/ImageLibrary/arrow_007.png +0 -0
- package/lib/assets/ImageLibrary/arrow_008.png +0 -0
- package/lib/assets/ImageLibrary/arrow_009.png +0 -0
- package/lib/assets/ImageLibrary/arrow_010.png +0 -0
- package/lib/assets/ImageLibrary/arrow_011.png +0 -0
- package/lib/assets/ImageLibrary/arrow_012.png +0 -0
- package/lib/assets/ImageLibrary/book_001.png +0 -0
- package/lib/assets/ImageLibrary/book_002.png +0 -0
- package/lib/assets/ImageLibrary/book_003.png +0 -0
- package/lib/assets/ImageLibrary/book_004.png +0 -0
- package/lib/assets/ImageLibrary/book_005.png +0 -0
- package/lib/assets/ImageLibrary/book_006.png +0 -0
- package/lib/assets/ImageLibrary/book_007.png +0 -0
- package/lib/assets/ImageLibrary/clock_001.png +0 -0
- package/lib/assets/ImageLibrary/clock_002.png +0 -0
- package/lib/assets/ImageLibrary/clock_003.png +0 -0
- package/lib/assets/ImageLibrary/cube_001.png +0 -0
- package/lib/assets/ImageLibrary/cube_002.png +0 -0
- package/lib/assets/ImageLibrary/cube_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_001.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_002.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_004.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_005.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_006.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_007.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_008.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_001.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_002.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_003.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_001.png +0 -0
- package/lib/assets/ImageLibrary/fld_002.png +0 -0
- package/lib/assets/ImageLibrary/fld_003.png +0 -0
- package/lib/assets/ImageLibrary/fld_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_005.png +0 -0
- package/lib/assets/ImageLibrary/fld_006.png +0 -0
- package/lib/assets/ImageLibrary/fld_007.png +0 -0
- package/lib/assets/ImageLibrary/fld_008.png +0 -0
- package/lib/assets/ImageLibrary/fld_009.png +0 -0
- package/lib/assets/ImageLibrary/fld_010.png +0 -0
- package/lib/assets/ImageLibrary/fld_011.png +0 -0
- package/lib/assets/ImageLibrary/fld_012.png +0 -0
- package/lib/assets/ImageLibrary/fld_013.png +0 -0
- package/lib/assets/ImageLibrary/fld_014.png +0 -0
- package/lib/assets/ImageLibrary/fld_015.png +0 -0
- package/lib/assets/ImageLibrary/fld_016.png +0 -0
- package/lib/assets/ImageLibrary/fld_017.png +0 -0
- package/lib/assets/ImageLibrary/fld_018.png +0 -0
- package/lib/assets/ImageLibrary/fld_019.png +0 -0
- package/lib/assets/ImageLibrary/fld_020.png +0 -0
- package/lib/assets/ImageLibrary/fld_021.png +0 -0
- package/lib/assets/ImageLibrary/fld_022.png +0 -0
- package/lib/assets/ImageLibrary/fld_023.png +0 -0
- package/lib/assets/ImageLibrary/fld_024.png +0 -0
- package/lib/assets/ImageLibrary/fld_025.png +0 -0
- package/lib/assets/ImageLibrary/fld_026.png +0 -0
- package/lib/assets/ImageLibrary/fld_027.png +0 -0
- package/lib/assets/ImageLibrary/fld_028.png +0 -0
- package/lib/assets/ImageLibrary/fld_029.png +0 -0
- package/lib/assets/ImageLibrary/fld_030.png +0 -0
- package/lib/assets/ImageLibrary/fld_031.png +0 -0
- package/lib/assets/ImageLibrary/fld_032.png +0 -0
- package/lib/assets/ImageLibrary/fld_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_001.png +0 -0
- package/lib/assets/ImageLibrary/gen_002.png +0 -0
- package/lib/assets/ImageLibrary/gen_003.png +0 -0
- package/lib/assets/ImageLibrary/gen_004.png +0 -0
- package/lib/assets/ImageLibrary/gen_005.png +0 -0
- package/lib/assets/ImageLibrary/gen_006.png +0 -0
- package/lib/assets/ImageLibrary/gen_007.png +0 -0
- package/lib/assets/ImageLibrary/gen_008.png +0 -0
- package/lib/assets/ImageLibrary/gen_009.png +0 -0
- package/lib/assets/ImageLibrary/gen_010.png +0 -0
- package/lib/assets/ImageLibrary/gen_011.png +0 -0
- package/lib/assets/ImageLibrary/gen_012.png +0 -0
- package/lib/assets/ImageLibrary/gen_013.png +0 -0
- package/lib/assets/ImageLibrary/gen_014.png +0 -0
- package/lib/assets/ImageLibrary/gen_015.png +0 -0
- package/lib/assets/ImageLibrary/gen_016.png +0 -0
- package/lib/assets/ImageLibrary/gen_017.png +0 -0
- package/lib/assets/ImageLibrary/gen_018.png +0 -0
- package/lib/assets/ImageLibrary/gen_019.png +0 -0
- package/lib/assets/ImageLibrary/gen_020.png +0 -0
- package/lib/assets/ImageLibrary/gen_021.png +0 -0
- package/lib/assets/ImageLibrary/gen_022.png +0 -0
- package/lib/assets/ImageLibrary/gen_023.png +0 -0
- package/lib/assets/ImageLibrary/gen_024.png +0 -0
- package/lib/assets/ImageLibrary/gen_025.png +0 -0
- package/lib/assets/ImageLibrary/gen_026.png +0 -0
- package/lib/assets/ImageLibrary/gen_027.png +0 -0
- package/lib/assets/ImageLibrary/gen_028.png +0 -0
- package/lib/assets/ImageLibrary/gen_029.png +0 -0
- package/lib/assets/ImageLibrary/gen_030.png +0 -0
- package/lib/assets/ImageLibrary/gen_031.png +0 -0
- package/lib/assets/ImageLibrary/gen_032.png +0 -0
- package/lib/assets/ImageLibrary/gen_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_034.png +0 -0
- package/lib/assets/ImageLibrary/gen_035.png +0 -0
- package/lib/assets/ImageLibrary/gen_036.png +0 -0
- package/lib/assets/ImageLibrary/gen_037.png +0 -0
- package/lib/assets/ImageLibrary/gen_038.png +0 -0
- package/lib/assets/ImageLibrary/gen_039.png +0 -0
- package/lib/assets/ImageLibrary/gen_040.png +0 -0
- package/lib/assets/ImageLibrary/gen_041.png +0 -0
- package/lib/assets/ImageLibrary/gen_042.png +0 -0
- package/lib/assets/ImageLibrary/gen_043.png +0 -0
- package/lib/assets/ImageLibrary/gen_044.png +0 -0
- package/lib/assets/ImageLibrary/gen_045.png +0 -0
- package/lib/assets/ImageLibrary/gen_046.png +0 -0
- package/lib/assets/ImageLibrary/gen_047.png +0 -0
- package/lib/assets/ImageLibrary/gen_048.png +0 -0
- package/lib/assets/ImageLibrary/gen_049.png +0 -0
- package/lib/assets/ImageLibrary/gen_050.png +0 -0
- package/lib/assets/ImageLibrary/gen_051.png +0 -0
- package/lib/assets/ImageLibrary/gen_052.png +0 -0
- package/lib/assets/ImageLibrary/hand_001.png +0 -0
- package/lib/assets/ImageLibrary/hand_002.png +0 -0
- package/lib/assets/ImageLibrary/hand_003.png +0 -0
- package/lib/assets/ImageLibrary/hand_004.png +0 -0
- package/lib/assets/ImageLibrary/hand_005.png +0 -0
- package/lib/assets/ImageLibrary/hand_006.png +0 -0
- package/lib/assets/ImageLibrary/law_001.png +0 -0
- package/lib/assets/ImageLibrary/law_002.png +0 -0
- package/lib/assets/ImageLibrary/law_003.png +0 -0
- package/lib/assets/ImageLibrary/lock_001.png +0 -0
- package/lib/assets/ImageLibrary/lock_002.png +0 -0
- package/lib/assets/ImageLibrary/lock_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_001.png +0 -0
- package/lib/assets/ImageLibrary/mail_002.png +0 -0
- package/lib/assets/ImageLibrary/mail_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_004.png +0 -0
- package/lib/assets/ImageLibrary/mail_005.png +0 -0
- package/lib/assets/ImageLibrary/mail_006.png +0 -0
- package/lib/assets/ImageLibrary/mail_007.png +0 -0
- package/lib/assets/ImageLibrary/mail_008.png +0 -0
- package/lib/assets/ImageLibrary/mail_009.png +0 -0
- package/lib/assets/ImageLibrary/mail_010.png +0 -0
- package/lib/assets/ImageLibrary/mail_011.png +0 -0
- package/lib/assets/ImageLibrary/mail_012.png +0 -0
- package/lib/assets/ImageLibrary/mail_013.png +0 -0
- package/lib/assets/ImageLibrary/mail_014.png +0 -0
- package/lib/assets/ImageLibrary/mail_015.png +0 -0
- package/lib/assets/ImageLibrary/net_001.png +0 -0
- package/lib/assets/ImageLibrary/net_002.png +0 -0
- package/lib/assets/ImageLibrary/net_003.png +0 -0
- package/lib/assets/ImageLibrary/net_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_001.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_002.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_003.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_005.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_006.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_007.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_008.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_009.png +0 -0
- package/lib/assets/ImageLibrary/note_001.png +0 -0
- package/lib/assets/ImageLibrary/note_002.png +0 -0
- package/lib/assets/ImageLibrary/note_003.png +0 -0
- package/lib/assets/ImageLibrary/note_004.png +0 -0
- package/lib/assets/ImageLibrary/note_005.png +0 -0
- package/lib/assets/ImageLibrary/note_006.png +0 -0
- package/lib/assets/ImageLibrary/note_007.png +0 -0
- package/lib/assets/ImageLibrary/note_008.png +0 -0
- package/lib/assets/ImageLibrary/note_009.png +0 -0
- package/lib/assets/ImageLibrary/note_010.png +0 -0
- package/lib/assets/ImageLibrary/note_011.png +0 -0
- package/lib/assets/ImageLibrary/note_012.png +0 -0
- package/lib/assets/ImageLibrary/note_013.png +0 -0
- package/lib/assets/ImageLibrary/note_014.png +0 -0
- package/lib/assets/ImageLibrary/note_015.png +0 -0
- package/lib/assets/ImageLibrary/note_016.png +0 -0
- package/lib/assets/ImageLibrary/run_001.png +0 -0
- package/lib/assets/ImageLibrary/run_002.png +0 -0
- package/lib/assets/ImageLibrary/run_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_001.png +0 -0
- package/lib/assets/ImageLibrary/sem_002.png +0 -0
- package/lib/assets/ImageLibrary/sem_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_004.png +0 -0
- package/lib/assets/ImageLibrary/sem_005.png +0 -0
- package/lib/assets/ImageLibrary/star_001.png +0 -0
- package/lib/assets/ImageLibrary/star_002.png +0 -0
- package/lib/assets/ImageLibrary/star_003.png +0 -0
- package/lib/assets/ImageLibrary/star_004.png +0 -0
- package/lib/assets/ImageLibrary/star_005.png +0 -0
- package/lib/assets/ImageLibrary/star_006.png +0 -0
- package/lib/assets/ImageLibrary/state_001.png +0 -0
- package/lib/assets/ImageLibrary/state_002.png +0 -0
- package/lib/assets/ImageLibrary/state_003.png +0 -0
- package/lib/assets/ImageLibrary/state_004.png +0 -0
- package/lib/assets/ImageLibrary/state_005.png +0 -0
- package/lib/assets/ImageLibrary/study_001.png +0 -0
- package/lib/assets/ImageLibrary/study_002.png +0 -0
- package/lib/assets/ImageLibrary/user_001.png +0 -0
- package/lib/assets/ImageLibrary/user_002.png +0 -0
- package/lib/assets/ImageLibrary/user_003.png +0 -0
- package/lib/assets/ImageLibrary/user_004.png +0 -0
- package/lib/assets/ImageLibrary/user_005.png +0 -0
- package/lib/assets/ImageLibrary/user_006.png +0 -0
- package/lib/assets/ImageLibrary/user_007.png +0 -0
- package/lib/assets/ImageLibrary/user_008.png +0 -0
- package/lib/assets/ImageLibrary/user_009.png +0 -0
- package/lib/assets/ImageLibrary/user_010.png +0 -0
- package/lib/assets/ImageLibrary/user_011.png +0 -0
- package/lib/assets/ImageLibrary/user_012.png +0 -0
- package/lib/assets/ImageLibrary/user_013.png +0 -0
- package/lib/assets/ImageLibrary/user_014.png +0 -0
- package/lib/assets/ImageLibrary/user_015.png +0 -0
- package/lib/assets/ImageLibrary/user_016.png +0 -0
- package/lib/assets/ImageLibrary/user_017.png +0 -0
- package/lib/assets/ImageLibrary/user_018.png +0 -0
- package/lib/assets/ImageLibrary/user_019.png +0 -0
- package/lib/assets/ImageLibrary/user_020.png +0 -0
- package/lib/assets/ImageLibrary/user_021.png +0 -0
- package/lib/assets/ImageLibrary/user_022.png +0 -0
- package/lib/assets/ImageLibrary/user_023.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_001.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_002.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_003.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_004.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_005.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_006.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_007.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_008.png +0 -0
- package/lib/assets/Toppy-generico.png +0 -0
- package/lib/assets/france.svg +1 -0
- package/lib/assets/german.svg +1 -0
- package/lib/assets/icomoon.eot +0 -0
- package/lib/assets/icomoon.svg +97 -0
- package/lib/assets/icomoon.ttf +0 -0
- package/lib/assets/icomoon.woff +0 -0
- package/lib/assets/italy.svg +16 -0
- package/lib/assets/loading.png +0 -0
- package/lib/assets/login-bg.png +0 -0
- package/lib/assets/multipleSelectionManager.jpg +0 -0
- package/lib/assets/portugal.svg +1 -0
- package/lib/assets/six.png +0 -0
- package/lib/assets/six.svg +4 -0
- package/lib/assets/spain.svg +1 -0
- package/lib/assets/thumbnails/dicom.png +0 -0
- package/lib/assets/thumbnails/doc.png +0 -0
- package/lib/assets/thumbnails/docx.png +0 -0
- package/lib/assets/thumbnails/dwg.png +0 -0
- package/lib/assets/thumbnails/email.png +0 -0
- package/lib/assets/thumbnails/exe.png +0 -0
- package/lib/assets/thumbnails/folder.png +0 -0
- package/lib/assets/thumbnails/html.png +0 -0
- package/lib/assets/thumbnails/image.png +0 -0
- package/lib/assets/thumbnails/index.d.ts +19 -0
- package/lib/assets/thumbnails/index.js +19 -0
- package/lib/assets/thumbnails/index.ts +39 -0
- package/lib/assets/thumbnails/mp4.png +0 -0
- package/lib/assets/thumbnails/other.png +0 -0
- package/lib/assets/thumbnails/p7m.png +0 -0
- package/lib/assets/thumbnails/pdf.png +0 -0
- package/lib/assets/thumbnails/ppt.png +0 -0
- package/lib/assets/thumbnails/slddrw.png +0 -0
- package/lib/assets/thumbnails/txt.png +0 -0
- package/lib/assets/thumbnails/xls.png +0 -0
- package/lib/assets/thumbnails/xml.png +0 -0
- package/lib/assets/thumbnails/zip.png +0 -0
- package/lib/assets/topmedia-six.svg +66 -0
- package/lib/assets/topmeida-six-bianco.svg +66 -0
- package/lib/assets/united-kingdom.svg +1 -0
- package/lib/components/base/Styled.d.ts +63 -0
- package/lib/components/base/Styled.js +337 -0
- package/lib/components/base/TMAccordion.d.ts +12 -0
- package/lib/components/base/TMAccordion.js +62 -0
- package/lib/components/base/TMAlert.d.ts +73 -0
- package/lib/components/base/TMAlert.js +77 -0
- package/lib/components/base/TMAreaManager.d.ts +25 -0
- package/lib/components/base/TMAreaManager.js +733 -0
- package/lib/components/base/TMButton.d.ts +21 -0
- package/lib/components/base/TMButton.js +174 -0
- package/lib/components/base/TMClosableList.d.ts +10 -0
- package/lib/components/base/TMClosableList.js +70 -0
- package/lib/components/base/TMConfirm.d.ts +13 -0
- package/lib/components/base/TMConfirm.js +119 -0
- package/lib/components/base/TMContextMenu.d.ts +25 -0
- package/lib/components/base/TMContextMenu.js +109 -0
- package/lib/components/base/TMContextMenuOLD.d.ts +26 -0
- package/lib/components/base/TMContextMenuOLD.js +56 -0
- package/lib/components/base/TMCounterBar.d.ts +10 -0
- package/lib/components/base/TMCounterBar.js +43 -0
- package/lib/components/base/TMCounterContainer.d.ts +23 -0
- package/lib/components/base/TMCounterContainer.js +58 -0
- package/lib/components/base/TMCustomButton.d.ts +11 -0
- package/lib/components/base/TMCustomButton.js +116 -0
- package/lib/components/base/TMDataGrid.d.ts +56 -0
- package/lib/components/base/TMDataGrid.js +237 -0
- package/lib/components/base/TMDataGridExportForm.d.ts +15 -0
- package/lib/components/base/TMDataGridExportForm.js +215 -0
- package/lib/components/base/TMDeviceProvider.d.ts +15 -0
- package/lib/components/base/TMDeviceProvider.js +41 -0
- package/lib/components/base/TMDropDownMenu.d.ts +23 -0
- package/lib/components/base/TMDropDownMenu.js +45 -0
- package/lib/components/base/TMEditorBase.d.ts +39 -0
- package/lib/components/base/TMEditorBase.js +1 -0
- package/lib/components/base/TMFileManager.d.ts +45 -0
- package/lib/components/base/TMFileManager.js +233 -0
- package/lib/components/base/TMFileManagerDataGridView.d.ts +16 -0
- package/lib/components/base/TMFileManagerDataGridView.js +101 -0
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +18 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +148 -0
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +19 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +46 -0
- package/lib/components/base/TMFileManagerUtils.d.ts +78 -0
- package/lib/components/base/TMFileManagerUtils.js +207 -0
- package/lib/components/base/TMFloatingToolbar.d.ts +9 -0
- package/lib/components/base/TMFloatingToolbar.js +101 -0
- package/lib/components/base/TMLayout.d.ts +55 -0
- package/lib/components/base/TMLayout.js +201 -0
- package/lib/components/base/TMList.d.ts +9 -0
- package/lib/components/base/TMList.js +54 -0
- package/lib/components/base/TMListView.d.ts +42 -0
- package/lib/components/base/TMListView.js +387 -0
- package/lib/components/base/TMModal.d.ts +16 -0
- package/lib/components/base/TMModal.js +70 -0
- package/lib/components/base/TMPanel.d.ts +32 -0
- package/lib/components/base/TMPanel.js +181 -0
- package/lib/components/base/TMPopUp.d.ts +33 -0
- package/lib/components/base/TMPopUp.js +267 -0
- package/lib/components/base/TMProgressBar.d.ts +11 -0
- package/lib/components/base/TMProgressBar.js +32 -0
- package/lib/components/base/TMResizableMenu.d.ts +20 -0
- package/lib/components/base/TMResizableMenu.js +98 -0
- package/lib/components/base/TMRightSidebar.d.ts +19 -0
- package/lib/components/base/TMRightSidebar.js +80 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.d.ts +8 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.js +20 -0
- package/lib/components/base/TMSpinner.d.ts +14 -0
- package/lib/components/base/TMSpinner.js +160 -0
- package/lib/components/base/TMTab.d.ts +20 -0
- package/lib/components/base/TMTab.js +42 -0
- package/lib/components/base/TMToggleButton.d.ts +10 -0
- package/lib/components/base/TMToggleButton.js +58 -0
- package/lib/components/base/TMToolbarCard.d.ts +19 -0
- package/lib/components/base/TMToolbarCard.js +51 -0
- package/lib/components/base/TMTooltip.d.ts +14 -0
- package/lib/components/base/TMTooltip.js +20 -0
- package/lib/components/base/TMTreeView.d.ts +32 -0
- package/lib/components/base/TMTreeView.js +356 -0
- package/lib/components/base/TMUserAvatar.d.ts +8 -0
- package/lib/components/base/TMUserAvatar.js +34 -0
- package/lib/components/base/TMVilViewer.d.ts +5 -0
- package/lib/components/base/TMVilViewer.js +22 -0
- package/lib/components/base/TMWaitPanel.d.ts +32 -0
- package/lib/components/base/TMWaitPanel.js +44 -0
- package/lib/components/choosers/TMCultureIDPicker.d.ts +9 -0
- package/lib/components/choosers/TMCultureIDPicker.js +72 -0
- package/lib/components/choosers/TMDataListItemChooser.d.ts +17 -0
- package/lib/components/choosers/TMDataListItemChooser.js +49 -0
- package/lib/components/choosers/TMDataListItemPicker.d.ts +9 -0
- package/lib/components/choosers/TMDataListItemPicker.js +96 -0
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
- package/lib/components/choosers/TMDcmtTypeChooser.js +61 -0
- package/lib/components/choosers/TMDiskChooser.d.ts +10 -0
- package/lib/components/choosers/TMDiskChooser.js +41 -0
- package/lib/components/choosers/TMDistinctValues.d.ts +21 -0
- package/lib/components/choosers/TMDistinctValues.js +140 -0
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +40 -0
- package/lib/components/choosers/TMDynDataListItemChooser.js +159 -0
- package/lib/components/choosers/TMGroupChooser.d.ts +7 -0
- package/lib/components/choosers/TMGroupChooser.js +37 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMMetadataChooser.d.ts +54 -0
- package/lib/components/choosers/TMMetadataChooser.js +142 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMPathChooser.d.ts +12 -0
- package/lib/components/choosers/TMPathChooser.js +147 -0
- package/lib/components/choosers/TMRelationChooser.d.ts +31 -0
- package/lib/components/choosers/TMRelationChooser.js +94 -0
- package/lib/components/choosers/TMUserChooser.d.ts +40 -0
- package/lib/components/choosers/TMUserChooser.js +141 -0
- package/lib/components/editors/TMCheckBox.d.ts +9 -0
- package/lib/components/editors/TMCheckBox.js +90 -0
- package/lib/components/editors/TMDateBox.d.ts +17 -0
- package/lib/components/editors/TMDateBox.js +75 -0
- package/lib/components/editors/TMDropDown.d.ts +10 -0
- package/lib/components/editors/TMDropDown.js +62 -0
- package/lib/components/editors/TMEditorStyled.d.ts +41 -0
- package/lib/components/editors/TMEditorStyled.js +90 -0
- package/lib/components/editors/TMFormulaEditor.d.ts +49 -0
- package/lib/components/editors/TMFormulaEditor.js +727 -0
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +7 -0
- package/lib/components/editors/TMHtmlContentDisplay.js +78 -0
- package/lib/components/editors/TMHtmlEditor.d.ts +38 -0
- package/lib/components/editors/TMHtmlEditor.js +203 -0
- package/lib/components/editors/TMLocalizedTextBox.d.ts +19 -0
- package/lib/components/editors/TMLocalizedTextBox.js +125 -0
- package/lib/components/editors/TMMetadataEditor.d.ts +29 -0
- package/lib/components/editors/TMMetadataEditor.js +140 -0
- package/lib/components/editors/TMMetadataValues.d.ts +46 -0
- package/lib/components/editors/TMMetadataValues.js +530 -0
- package/lib/components/editors/TMRadioButton.d.ts +10 -0
- package/lib/components/editors/TMRadioButton.js +57 -0
- package/lib/components/editors/TMSummary.d.ts +20 -0
- package/lib/components/editors/TMSummary.js +92 -0
- package/lib/components/editors/TMTextArea.d.ts +17 -0
- package/lib/components/editors/TMTextArea.js +155 -0
- package/lib/components/editors/TMTextBox.d.ts +20 -0
- package/lib/components/editors/TMTextBox.js +249 -0
- package/lib/components/editors/TMTextExpression.d.ts +25 -0
- package/lib/components/editors/TMTextExpression.js +174 -0
- package/lib/components/editors/TMTreeDropDown.d.ts +18 -0
- package/lib/components/editors/TMTreeDropDown.js +66 -0
- package/lib/components/features/archive/TMArchive.d.ts +29 -0
- package/lib/components/features/archive/TMArchive.js +193 -0
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +12 -0
- package/lib/components/features/assistant/ToppyHelpCenter.js +173 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +17 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +333 -0
- package/lib/components/features/documents/TMBatchUpdateForm.d.ts +17 -0
- package/lib/components/features/documents/TMBatchUpdateForm.js +159 -0
- package/lib/components/features/documents/TMDcmtBlog.d.ts +23 -0
- package/lib/components/features/documents/TMDcmtBlog.js +65 -0
- package/lib/components/features/documents/TMDcmtForm.d.ts +64 -0
- package/lib/components/features/documents/TMDcmtForm.js +1245 -0
- package/lib/components/features/documents/TMDcmtIcon.d.ts +18 -0
- package/lib/components/features/documents/TMDcmtIcon.js +93 -0
- package/lib/components/features/documents/TMDcmtPreview.d.ts +31 -0
- package/lib/components/features/documents/TMDcmtPreview.js +446 -0
- package/lib/components/features/documents/TMDcmtTasks.d.ts +13 -0
- package/lib/components/features/documents/TMDcmtTasks.js +24 -0
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +6 -0
- package/lib/components/features/documents/TMDragDropOverlay.js +97 -0
- package/lib/components/features/documents/TMFileUploader.d.ts +14 -0
- package/lib/components/features/documents/TMFileUploader.js +115 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +26 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +288 -0
- package/lib/components/features/documents/TMRelationViewer.d.ts +121 -0
- package/lib/components/features/documents/TMRelationViewer.js +753 -0
- package/lib/components/features/search/TMSavedQueryForm.d.ts +9 -0
- package/lib/components/features/search/TMSavedQueryForm.js +41 -0
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +16 -0
- package/lib/components/features/search/TMSavedQuerySelector.js +226 -0
- package/lib/components/features/search/TMSearch.d.ts +40 -0
- package/lib/components/features/search/TMSearch.js +253 -0
- package/lib/components/features/search/TMSearchQueryEditor.d.ts +15 -0
- package/lib/components/features/search/TMSearchQueryEditor.js +367 -0
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +29 -0
- package/lib/components/features/search/TMSearchQueryPanel.js +438 -0
- package/lib/components/features/search/TMSearchResult.d.ts +53 -0
- package/lib/components/features/search/TMSearchResult.js +1092 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +16 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.js +50 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +11 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.js +725 -0
- package/lib/components/features/search/TMTreeSelector.d.ts +12 -0
- package/lib/components/features/search/TMTreeSelector.js +270 -0
- package/lib/components/features/tasks/TMTaskForm.d.ts +38 -0
- package/lib/components/features/tasks/TMTaskForm.js +387 -0
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +17 -0
- package/lib/components/features/tasks/TMTasksAgenda.js +107 -0
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +21 -0
- package/lib/components/features/tasks/TMTasksCalendar.js +240 -0
- package/lib/components/features/tasks/TMTasksHeader.d.ts +14 -0
- package/lib/components/features/tasks/TMTasksHeader.js +37 -0
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +20 -0
- package/lib/components/features/tasks/TMTasksPanelContent.js +65 -0
- package/lib/components/features/tasks/TMTasksUtils.d.ts +132 -0
- package/lib/components/features/tasks/TMTasksUtils.js +634 -0
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +39 -0
- package/lib/components/features/tasks/TMTasksUtilsView.js +140 -0
- package/lib/components/features/tasks/TMTasksView.d.ts +40 -0
- package/lib/components/features/tasks/TMTasksView.js +560 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +39 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +439 -0
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +42 -0
- package/lib/components/features/workflow/TMWorkflowPopup.js +286 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.d.ts +14 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +90 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.d.ts +9 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.js +73 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +18 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +264 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.d.ts +10 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +686 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.d.ts +12 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +97 -0
- package/lib/components/features/workflow/diagram/RecipientList.d.ts +27 -0
- package/lib/components/features/workflow/diagram/RecipientList.js +204 -0
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +9 -0
- package/lib/components/features/workflow/diagram/WFDiagram.js +1680 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +18 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +97 -0
- package/lib/components/features/workflow/diagram/interfaces.d.ts +126 -0
- package/lib/components/features/workflow/diagram/interfaces.js +26 -0
- package/lib/components/features/workflow/diagram/metadataParser.d.ts +14 -0
- package/lib/components/features/workflow/diagram/metadataParser.js +54 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.d.ts +3 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.js +188 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.d.ts +122 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.js +488 -0
- package/lib/components/features/workflow/diagram/xmlParser.d.ts +10 -0
- package/lib/components/features/workflow/diagram/xmlParser.js +490 -0
- package/lib/components/filesystem/ProgressBar.d.ts +7 -0
- package/lib/components/filesystem/ProgressBar.js +25 -0
- package/lib/components/forms/Login/ChangePassword.d.ts +9 -0
- package/lib/components/forms/Login/ChangePassword.js +22 -0
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +14 -0
- package/lib/components/forms/Login/ChangePasswordInputs.js +80 -0
- package/lib/components/forms/Login/Chooser.d.ts +28 -0
- package/lib/components/forms/Login/Chooser.js +145 -0
- package/lib/components/forms/Login/LOGINLocalizator.d.ts +29 -0
- package/lib/components/forms/Login/LOGINLocalizator.js +247 -0
- package/lib/components/forms/Login/LoginValidatorService.d.ts +50 -0
- package/lib/components/forms/Login/LoginValidatorService.js +162 -0
- package/lib/components/forms/Login/Menu.d.ts +10 -0
- package/lib/components/forms/Login/Menu.js +48 -0
- package/lib/components/forms/Login/OTPReader.d.ts +14 -0
- package/lib/components/forms/Login/OTPReader.js +90 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.d.ts +7 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.js +45 -0
- package/lib/components/forms/Login/RapidAccessLogin.d.ts +25 -0
- package/lib/components/forms/Login/RapidAccessLogin.js +310 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.d.ts +11 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.js +111 -0
- package/lib/components/forms/Login/SelectBox.d.ts +23 -0
- package/lib/components/forms/Login/SelectBox.js +96 -0
- package/lib/components/forms/Login/StepIndicator.d.ts +7 -0
- package/lib/components/forms/Login/StepIndicator.js +19 -0
- package/lib/components/forms/Login/TMLoginForm.d.ts +44 -0
- package/lib/components/forms/Login/TMLoginForm.js +737 -0
- package/lib/components/forms/Login/TextBox.d.ts +27 -0
- package/lib/components/forms/Login/TextBox.js +111 -0
- package/lib/components/forms/TMApplyForm.d.ts +4 -0
- package/lib/components/forms/TMApplyForm.js +105 -0
- package/lib/components/forms/TMChooserForm.d.ts +3 -0
- package/lib/components/forms/TMChooserForm.js +94 -0
- package/lib/components/forms/TMResultDialog.d.ts +20 -0
- package/lib/components/forms/TMResultDialog.js +44 -0
- package/lib/components/forms/TMSaveForm.d.ts +31 -0
- package/lib/components/forms/TMSaveForm.js +176 -0
- package/lib/components/grids/TMBlogAttachments.d.ts +42 -0
- package/lib/components/grids/TMBlogAttachments.js +43 -0
- package/lib/components/grids/TMBlogHeader.d.ts +31 -0
- package/lib/components/grids/TMBlogHeader.js +41 -0
- package/lib/components/grids/TMBlogsPost.d.ts +87 -0
- package/lib/components/grids/TMBlogsPost.js +644 -0
- package/lib/components/grids/TMBlogsPostUtils.d.ts +113 -0
- package/lib/components/grids/TMBlogsPostUtils.js +250 -0
- package/lib/components/grids/TMRecentsManager.d.ts +13 -0
- package/lib/components/grids/TMRecentsManager.js +155 -0
- package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
- package/lib/components/grids/TMValidationItemsList.js +82 -0
- package/lib/components/index.d.ts +115 -0
- package/lib/components/index.js +137 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +10 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +215 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +39 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +257 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +11 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +83 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +21 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +64 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +8 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.js +59 -0
- package/lib/components/layout/panelManager/types.d.ts +42 -0
- package/lib/components/layout/panelManager/types.js +1 -0
- package/lib/components/layout/panelManager/utils.d.ts +21 -0
- package/lib/components/layout/panelManager/utils.js +208 -0
- package/lib/components/pages/TMPage.d.ts +38 -0
- package/lib/components/pages/TMPage.js +220 -0
- package/lib/components/query/TMQueryEditor.d.ts +58 -0
- package/lib/components/query/TMQueryEditor.js +1001 -0
- package/lib/components/query/TMQuerySummary.d.ts +16 -0
- package/lib/components/query/TMQuerySummary.js +35 -0
- package/lib/components/settings/SettingsAppearance.d.ts +14 -0
- package/lib/components/settings/SettingsAppearance.js +73 -0
- package/lib/components/sidebar/TMAboutApp.d.ts +8 -0
- package/lib/components/sidebar/TMAboutApp.js +14 -0
- package/lib/components/sidebar/TMCommandsPanel.d.ts +16 -0
- package/lib/components/sidebar/TMCommandsPanel.js +27 -0
- package/lib/components/sidebar/TMHeader.d.ts +43 -0
- package/lib/components/sidebar/TMHeader.js +616 -0
- package/lib/components/sidebar/TMSidebar.d.ts +21 -0
- package/lib/components/sidebar/TMSidebar.js +61 -0
- package/lib/components/sidebar/TMSidebarItem.d.ts +15 -0
- package/lib/components/sidebar/TMSidebarItem.js +39 -0
- package/lib/components/viewers/TMDataListItemViewer.d.ts +10 -0
- package/lib/components/viewers/TMDataListItemViewer.js +80 -0
- package/lib/components/viewers/TMMidViewer.d.ts +36 -0
- package/lib/components/viewers/TMMidViewer.js +128 -0
- package/lib/components/viewers/TMTidViewer.d.ts +256 -0
- package/lib/components/viewers/TMTidViewer.js +343 -0
- package/lib/components/wizard/TMStepIndicator.d.ts +11 -0
- package/lib/components/wizard/TMStepIndicator.js +165 -0
- package/lib/components/wizard/TMWizard.d.ts +18 -0
- package/lib/components/wizard/TMWizard.js +93 -0
- package/lib/css/tm-sdkui.css +1 -0
- package/lib/helper/DeepCompareHelper.d.ts +7 -0
- package/lib/helper/DeepCompareHelper.js +106 -0
- package/lib/helper/Enum_Localizator.d.ts +18 -0
- package/lib/helper/Enum_Localizator.js +247 -0
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/Globalization.d.ts +15 -0
- package/lib/helper/Globalization.js +110 -0
- package/lib/helper/SDKUI_Globals.d.ts +96 -0
- package/lib/helper/SDKUI_Globals.js +174 -0
- package/lib/helper/SDKUI_Localizator.d.ts +738 -0
- package/lib/helper/SDKUI_Localizator.js +7288 -0
- package/lib/helper/TMCommandsContextMenu.d.ts +14 -0
- package/lib/helper/TMCommandsContextMenu.js +6 -0
- package/lib/helper/TMConditionalWrapper.d.ts +8 -0
- package/lib/helper/TMConditionalWrapper.js +4 -0
- package/lib/helper/TMCustomSearchBar.d.ts +8 -0
- package/lib/helper/TMCustomSearchBar.js +54 -0
- package/lib/helper/TMIcons.d.ts +274 -0
- package/lib/helper/TMIcons.js +673 -0
- package/lib/helper/TMImageLibrary.d.ts +4 -0
- package/lib/helper/TMImageLibrary.js +466 -0
- package/lib/helper/TMToppyMessage.d.ts +7 -0
- package/lib/helper/TMToppyMessage.js +42 -0
- package/lib/helper/TMUtils.d.ts +26 -0
- package/lib/helper/TMUtils.js +212 -0
- package/lib/helper/dcmtsHelper.d.ts +8 -0
- package/lib/helper/dcmtsHelper.js +49 -0
- package/lib/helper/helpers.d.ts +84 -0
- package/lib/helper/helpers.js +826 -0
- package/lib/helper/index.d.ts +13 -0
- package/lib/helper/index.js +13 -0
- package/lib/helper/queryHelper.d.ts +19 -0
- package/lib/helper/queryHelper.js +336 -0
- package/lib/hooks/useDcmtOperations.d.ts +24 -0
- package/lib/hooks/useDcmtOperations.js +482 -0
- package/lib/hooks/useForm.d.ts +24 -0
- package/lib/hooks/useForm.js +157 -0
- package/lib/hooks/useInputDialog.d.ts +9 -0
- package/lib/hooks/useInputDialog.js +105 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useOutsideClick.js +38 -0
- package/lib/hooks/usePreventFileDrop.d.ts +3 -0
- package/lib/hooks/usePreventFileDrop.js +37 -0
- package/lib/hooks/useQueryParametersDialog.d.ts +2 -0
- package/lib/hooks/useQueryParametersDialog.js +71 -0
- package/lib/hooks/useRelatedDocuments.d.ts +72 -0
- package/lib/hooks/useRelatedDocuments.js +655 -0
- package/lib/hooks/useResizeObserver.d.ts +4 -0
- package/lib/hooks/useResizeObserver.js +22 -0
- package/lib/hooks/useWorkflowApprove.d.ts +11 -0
- package/lib/hooks/useWorkflowApprove.js +57 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +15 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/platform_services.d.ts +18 -0
- package/lib/services/platform_services.js +492 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/lib/ts/types.d.ts +310 -0
- package/lib/ts/types.js +100 -0
- package/lib/utils/theme.d.ts +69 -0
- package/lib/utils/theme.js +81 -0
- package/package.json +54 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LayoutDescriptor, LayoutModes, ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { DeviceContextProps } from "../base/TMDeviceProvider";
|
|
4
|
+
import { MetadataValueDescriptorEx } from "../../ts";
|
|
5
|
+
export declare enum ShowCheckBoxesMode {
|
|
6
|
+
Never = 0,
|
|
7
|
+
Always = 1,
|
|
8
|
+
AlwaysReadOnly = 2
|
|
9
|
+
}
|
|
10
|
+
export declare enum AdvancedMenuButtons {
|
|
11
|
+
None = 0,
|
|
12
|
+
MakeEditable = 1,
|
|
13
|
+
FormulaEditor = 2,
|
|
14
|
+
DistinctValues = 3
|
|
15
|
+
}
|
|
16
|
+
export type AdvancedMenuClickEventArgs = {
|
|
17
|
+
tid: number | undefined;
|
|
18
|
+
mid: number | undefined;
|
|
19
|
+
button: AdvancedMenuButtons;
|
|
20
|
+
};
|
|
21
|
+
interface ITMMetadataValuesProps extends DeviceContextProps {
|
|
22
|
+
TID: number | undefined;
|
|
23
|
+
metadataValues: MetadataValueDescriptorEx[];
|
|
24
|
+
metadataValuesOrig?: MetadataValueDescriptorEx[];
|
|
25
|
+
customMenuItems?: any[];
|
|
26
|
+
isExpertMode?: boolean;
|
|
27
|
+
isReadOnly?: boolean;
|
|
28
|
+
showCheckBoxes?: ShowCheckBoxesMode;
|
|
29
|
+
showNullValueCheckBoxes?: boolean;
|
|
30
|
+
validationItems: ValidationItem[];
|
|
31
|
+
layoutMode?: LayoutModes;
|
|
32
|
+
selectedMID?: number;
|
|
33
|
+
openChooserBySingleClick?: boolean;
|
|
34
|
+
isOpenDistinctValues?: boolean;
|
|
35
|
+
checkPerms?: boolean;
|
|
36
|
+
inputMids?: Array<{
|
|
37
|
+
mid: number;
|
|
38
|
+
value: string;
|
|
39
|
+
}>;
|
|
40
|
+
layout?: LayoutDescriptor;
|
|
41
|
+
onAdvancedMenuClick?: (e: AdvancedMenuClickEventArgs) => void;
|
|
42
|
+
onValueChanged?: (mid: MetadataValueDescriptorEx[]) => void;
|
|
43
|
+
onFocusedItemChanged?: (mid: MetadataValueDescriptorEx | undefined) => void;
|
|
44
|
+
}
|
|
45
|
+
declare const TMMetadataValues: React.FC<ITMMetadataValuesProps>;
|
|
46
|
+
export default TMMetadataValues;
|
|
@@ -0,0 +1,530 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import { AccessLevels, DcmtTypeListCacheService, LayoutItemTypes, LayoutModes, MetadataDataDomains, MetadataDataTypes, SDK_Globals, SystemMIDsAsNumber, SystemTIDs, TemplateTIDs, WorkItemMetadataNames } from '@topconsultnpm/sdk-ts';
|
|
5
|
+
import { IconUndo, IconPencil, IconFunction, IconMenuVertical, IconDataList, SDKUI_Localizator, IconNull, stringIsNullOrEmpty, deepCompare, SDKUI_Globals, IconDcmtTypeSys } from "../../helper";
|
|
6
|
+
import { TMColors } from "../../utils/theme";
|
|
7
|
+
import TMButton from "../base/TMButton";
|
|
8
|
+
import TMDropDownMenu from "../base/TMDropDownMenu";
|
|
9
|
+
import TMTooltip from "../base/TMTooltip";
|
|
10
|
+
import TMCheckBox from "./TMCheckBox";
|
|
11
|
+
import TMMetadataEditor, { useMetadataEditableList } from "./TMMetadataEditor";
|
|
12
|
+
import { FormulaHelper } from "./TMFormulaEditor";
|
|
13
|
+
import { DraftsMIDs, DSAttachsMIDs } from "../../ts";
|
|
14
|
+
import { TMNothingToShow } from "../features/documents/TMDcmtPreview";
|
|
15
|
+
import TMAccordion from "../base/TMAccordion";
|
|
16
|
+
export var ShowCheckBoxesMode;
|
|
17
|
+
(function (ShowCheckBoxesMode) {
|
|
18
|
+
ShowCheckBoxesMode[ShowCheckBoxesMode["Never"] = 0] = "Never";
|
|
19
|
+
ShowCheckBoxesMode[ShowCheckBoxesMode["Always"] = 1] = "Always";
|
|
20
|
+
ShowCheckBoxesMode[ShowCheckBoxesMode["AlwaysReadOnly"] = 2] = "AlwaysReadOnly";
|
|
21
|
+
})(ShowCheckBoxesMode || (ShowCheckBoxesMode = {}));
|
|
22
|
+
export var AdvancedMenuButtons;
|
|
23
|
+
(function (AdvancedMenuButtons) {
|
|
24
|
+
AdvancedMenuButtons[AdvancedMenuButtons["None"] = 0] = "None";
|
|
25
|
+
AdvancedMenuButtons[AdvancedMenuButtons["MakeEditable"] = 1] = "MakeEditable";
|
|
26
|
+
AdvancedMenuButtons[AdvancedMenuButtons["FormulaEditor"] = 2] = "FormulaEditor";
|
|
27
|
+
AdvancedMenuButtons[AdvancedMenuButtons["DistinctValues"] = 3] = "DistinctValues";
|
|
28
|
+
})(AdvancedMenuButtons || (AdvancedMenuButtons = {}));
|
|
29
|
+
const TMMetadataValues = ({ showCheckBoxes = ShowCheckBoxesMode.Never, checkPerms = true, isReadOnly = false, isExpertMode = SDKUI_Globals.userSettings.advancedSettings.expertMode === 1, customMenuItems = [], showNullValueCheckBoxes, isOpenDistinctValues = false, openChooserBySingleClick, selectedMID, onFocusedItemChanged, layoutMode = LayoutModes.Update, metadataValues = [], metadataValuesOrig = [], TID, onValueChanged, onAdvancedMenuClick, validationItems, inputMids = [], layout }) => {
|
|
30
|
+
const [dynDataListsToBeRefreshed, setDynDataListsToBeRefreshed] = useState([]);
|
|
31
|
+
const [currentDTD, setCurrentDTD] = useState();
|
|
32
|
+
const [isEditableList, addOrRemoveEditableList] = useMetadataEditableList();
|
|
33
|
+
const [selectedItem, setSelectedItem] = useState(undefined);
|
|
34
|
+
const [prevMetadataValues, setPrevMetadataValues] = useState([]);
|
|
35
|
+
const [inputMidsApplied, setInputMidsApplied] = useState(false);
|
|
36
|
+
const onChangeHandler = useCallback((newValue, mid) => {
|
|
37
|
+
let newValues = structuredClone(metadataValues);
|
|
38
|
+
const item = newValues.find(value => value.mid === mid);
|
|
39
|
+
if (item) {
|
|
40
|
+
item.value = newValue;
|
|
41
|
+
if (showCheckBoxes !== ShowCheckBoxesMode.Never)
|
|
42
|
+
item.isSelected = !stringIsNullOrEmpty(newValue);
|
|
43
|
+
}
|
|
44
|
+
if (!newValue) {
|
|
45
|
+
let dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === mid);
|
|
46
|
+
while (dynDLToBeRefreshed != undefined) {
|
|
47
|
+
const item = newValues.find(value => value.mid === dynDLToBeRefreshed?.mid);
|
|
48
|
+
if (item)
|
|
49
|
+
item.value = newValue;
|
|
50
|
+
dynDLToBeRefreshed = dynDataListsToBeRefreshed.find(o => o.midStarter === item?.mid);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
onValueChanged?.(newValues);
|
|
54
|
+
}, [metadataValues, showCheckBoxes, dynDataListsToBeRefreshed, onValueChanged]);
|
|
55
|
+
const editorValidationHandler = useCallback((mid) => {
|
|
56
|
+
const md = metadataValues?.find(m => m.mid === mid);
|
|
57
|
+
const validationItem = validationItems.find(vil => vil.PropertyName === md?.md?.nameLoc);
|
|
58
|
+
return validationItem ? [validationItem] : [];
|
|
59
|
+
}, [metadataValues, validationItems]);
|
|
60
|
+
const isEditable = useCallback((mid) => {
|
|
61
|
+
let md = currentDTD?.metadata?.find(o => o.id == mid);
|
|
62
|
+
if (!md)
|
|
63
|
+
return false;
|
|
64
|
+
let isList = md.dataDomain == MetadataDataDomains.DataList || md.dataDomain == MetadataDataDomains.DynamicDataList || md.dataDomain == MetadataDataDomains.UserID;
|
|
65
|
+
return isList && isEditableList(mid);
|
|
66
|
+
}, [currentDTD, isEditableList]);
|
|
67
|
+
const handleMetadataValueSelection = useCallback((item) => {
|
|
68
|
+
if (selectedItem?.mid !== item.mid) {
|
|
69
|
+
setSelectedItem(item);
|
|
70
|
+
onFocusedItemChanged?.(item);
|
|
71
|
+
}
|
|
72
|
+
}, [selectedItem, onFocusedItemChanged]);
|
|
73
|
+
useEffect(() => {
|
|
74
|
+
if (!TID) {
|
|
75
|
+
setCurrentDTD(undefined);
|
|
76
|
+
setDynDataListsToBeRefreshed([]);
|
|
77
|
+
return;
|
|
78
|
+
}
|
|
79
|
+
// Passiamo did = undefined, perché è già in cache
|
|
80
|
+
DcmtTypeListCacheService.GetWithNotGrantedAsync(TID, undefined).then((resultDTD) => {
|
|
81
|
+
setCurrentDTD(resultDTD);
|
|
82
|
+
});
|
|
83
|
+
}, [TID]);
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
if (metadataValues.length <= 0)
|
|
86
|
+
return;
|
|
87
|
+
if (!currentDTD)
|
|
88
|
+
return;
|
|
89
|
+
if (deepCompare(metadataValues.filter(o => o.md?.dataDomain === MetadataDataDomains.DynamicDataList), prevMetadataValues.filter(o => o.md?.dataDomain === MetadataDataDomains.DynamicDataList)))
|
|
90
|
+
return;
|
|
91
|
+
setPrevMetadataValues(metadataValues);
|
|
92
|
+
loadDynDataListToBeRefreshedCascadeAsync(TID, metadataValues).then((result) => {
|
|
93
|
+
setDynDataListsToBeRefreshed(result);
|
|
94
|
+
});
|
|
95
|
+
}, [metadataValues, currentDTD]);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
setInputMidsApplied(false);
|
|
98
|
+
}, [inputMids]);
|
|
99
|
+
//modified by ASH
|
|
100
|
+
useEffect(() => {
|
|
101
|
+
if (!inputMids || inputMids.length === 0)
|
|
102
|
+
return;
|
|
103
|
+
if (!metadataValues || metadataValues.length === 0)
|
|
104
|
+
return;
|
|
105
|
+
if (inputMidsApplied)
|
|
106
|
+
return;
|
|
107
|
+
let newValues = structuredClone(metadataValues);
|
|
108
|
+
let hasChanges = false;
|
|
109
|
+
inputMids.forEach(inputMid => {
|
|
110
|
+
const item = newValues.find(value => value.mid === inputMid.mid);
|
|
111
|
+
if (item) {
|
|
112
|
+
item.value = inputMid.value;
|
|
113
|
+
if (showCheckBoxes !== ShowCheckBoxesMode.Never) {
|
|
114
|
+
item.isSelected = !stringIsNullOrEmpty(inputMid.value);
|
|
115
|
+
}
|
|
116
|
+
hasChanges = true;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
if (hasChanges) {
|
|
120
|
+
onValueChanged?.(newValues);
|
|
121
|
+
setInputMidsApplied(true);
|
|
122
|
+
}
|
|
123
|
+
}, [inputMids, metadataValues, inputMidsApplied]);
|
|
124
|
+
const loadDynDataListToBeRefreshedCascadeAsync = async (tid, mvdList) => {
|
|
125
|
+
if (!tid)
|
|
126
|
+
return [];
|
|
127
|
+
if (mvdList.length <= 0)
|
|
128
|
+
return [];
|
|
129
|
+
let dynDLToBeRefreshed = [];
|
|
130
|
+
for (const m of mvdList) {
|
|
131
|
+
if (!m.value)
|
|
132
|
+
continue;
|
|
133
|
+
let data = await getDataDynDataListsToBeRefreshedAsync(tid, m.mid, m.value, dynDLToBeRefreshed.find(o => o.mid == m.mid)?.queryParams ?? []);
|
|
134
|
+
if (!data)
|
|
135
|
+
continue;
|
|
136
|
+
for (const item of data)
|
|
137
|
+
dynDLToBeRefreshed.push(item);
|
|
138
|
+
}
|
|
139
|
+
return dynDLToBeRefreshed;
|
|
140
|
+
};
|
|
141
|
+
const getDataDynDataListsToBeRefreshedAsync = async (tid, mid, value, qParams) => {
|
|
142
|
+
if (!tid)
|
|
143
|
+
return;
|
|
144
|
+
if (!mid)
|
|
145
|
+
return;
|
|
146
|
+
if (stringIsNullOrEmpty(value))
|
|
147
|
+
return;
|
|
148
|
+
let md = currentDTD?.metadata?.find(o => o.id == mid);
|
|
149
|
+
if (md?.dataDomain !== MetadataDataDomains.DynamicDataList)
|
|
150
|
+
return;
|
|
151
|
+
let d = md?.dynDL_Cfgs?.[0];
|
|
152
|
+
if (md?.dynDL_IsMultiCfg == 1) {
|
|
153
|
+
switch (layoutMode) {
|
|
154
|
+
case LayoutModes.None:
|
|
155
|
+
case LayoutModes.Update:
|
|
156
|
+
d = md?.dynDL_Cfgs?.[1];
|
|
157
|
+
break;
|
|
158
|
+
default:
|
|
159
|
+
d = md?.dynDL_Cfgs?.[0];
|
|
160
|
+
break;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (!d)
|
|
164
|
+
return;
|
|
165
|
+
let toBeRefreshed = [];
|
|
166
|
+
let dynDlDataSource = await SDK_Globals.tmSession?.NewSearchEngine().GetDynDataListValuesAsync(tid, mid, layoutMode, qParams);
|
|
167
|
+
if (!d.onValueChanged_DynDataListsToBeRefreshed)
|
|
168
|
+
return;
|
|
169
|
+
let row = dynDlDataSource?.dtdResult?.rows?.filter(o => o[d.selectItemForValue ?? 0] == value);
|
|
170
|
+
if (!row || row.length <= 0)
|
|
171
|
+
return;
|
|
172
|
+
for (const t of d.onValueChanged_DynDataListsToBeRefreshed) {
|
|
173
|
+
let mid = t.item1;
|
|
174
|
+
let queryParams = [];
|
|
175
|
+
if ((t.item2 ?? 0) >= 0)
|
|
176
|
+
queryParams.push(row[0][t.item2 ?? 0]);
|
|
177
|
+
if ((t.item3 ?? 0) >= 0)
|
|
178
|
+
queryParams.push(row[0][t.item3 ?? 0]);
|
|
179
|
+
if ((t.item4 ?? 0) >= 0)
|
|
180
|
+
queryParams.push(row[0][t.item4 ?? 0]);
|
|
181
|
+
if ((t.item5 ?? 0) >= 0)
|
|
182
|
+
queryParams.push(row[0][t.item5 ?? 0]);
|
|
183
|
+
toBeRefreshed.push({ mid: mid, queryParams: queryParams, midStarter: md?.id });
|
|
184
|
+
}
|
|
185
|
+
return toBeRefreshed;
|
|
186
|
+
};
|
|
187
|
+
const getAdvancedMenuItems = useCallback((mvd) => {
|
|
188
|
+
let md = mvd.md;
|
|
189
|
+
if (!md)
|
|
190
|
+
return [];
|
|
191
|
+
let isDisabledOper = checkPerms && (md.dataDomain === MetadataDataDomains.Computed || md?.perm?.canUpdate !== AccessLevels.Yes);
|
|
192
|
+
const menu = [
|
|
193
|
+
// Only add MakeEditable/Restore and FormulaEditor if isExpertMode is true
|
|
194
|
+
...(isExpertMode ? [
|
|
195
|
+
{
|
|
196
|
+
text: mvd.isEditable ? SDKUI_Localizator.Restore : SDKUI_Localizator.MakeEditable,
|
|
197
|
+
icon: mvd.isEditable ? _jsx(IconUndo, {}) : _jsx(IconPencil, {}),
|
|
198
|
+
disabled: isDisabledOper,
|
|
199
|
+
onClick: () => {
|
|
200
|
+
onAdvancedMenuClick?.({ tid: mvd.tid, mid: mvd.mid, button: AdvancedMenuButtons.MakeEditable });
|
|
201
|
+
onValueChanged?.(metadataValues.map((item) => {
|
|
202
|
+
if (item.tid == mvd.tid && item.mid === mvd.mid) {
|
|
203
|
+
// If DateTime and value is a formula, clear value but keep formulaValue
|
|
204
|
+
if (item.md?.dataType === MetadataDataTypes.DateTime && FormulaHelper.isFormula(item.value)) {
|
|
205
|
+
return {
|
|
206
|
+
...item,
|
|
207
|
+
isEditable: !item.isEditable,
|
|
208
|
+
formulaValue: item.value,
|
|
209
|
+
value: null
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
// If restoring and formulaValue exists, restore it
|
|
213
|
+
if (item.md?.dataType === MetadataDataTypes.DateTime && !item.isEditable && item.formulaValue) {
|
|
214
|
+
return {
|
|
215
|
+
...item,
|
|
216
|
+
isEditable: !item.isEditable,
|
|
217
|
+
value: item.formulaValue,
|
|
218
|
+
formulaValue: undefined
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
return { ...item, isEditable: !item.isEditable };
|
|
222
|
+
}
|
|
223
|
+
return item;
|
|
224
|
+
}));
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
text: SDKUI_Localizator.FormulaEditorTitle,
|
|
229
|
+
icon: _jsx(IconFunction, {}),
|
|
230
|
+
disabled: isDisabledOper,
|
|
231
|
+
onClick: () => onAdvancedMenuClick?.({ tid: mvd.tid, mid: mvd.mid, button: AdvancedMenuButtons.FormulaEditor })
|
|
232
|
+
}
|
|
233
|
+
] : []),
|
|
234
|
+
// Always add DistinctValues
|
|
235
|
+
{
|
|
236
|
+
text: SDKUI_Localizator.DistinctValues,
|
|
237
|
+
icon: _jsx(IconDataList, {}),
|
|
238
|
+
onClick: () => onAdvancedMenuClick?.({ tid: mvd.tid, mid: mvd.mid, button: AdvancedMenuButtons.DistinctValues })
|
|
239
|
+
},
|
|
240
|
+
// Always add customMenuItems if present
|
|
241
|
+
...customMenuItems
|
|
242
|
+
];
|
|
243
|
+
return menu;
|
|
244
|
+
}, [checkPerms, isExpertMode, customMenuItems, metadataValues, onAdvancedMenuClick, onValueChanged]);
|
|
245
|
+
// Helper function to render a single metadata item
|
|
246
|
+
const renderMetadataItem = useCallback((item, isReadOnlyOverride = false) => (_jsxs(StyledRow, { style: { marginTop: item.md?.dataType === MetadataDataTypes.DateTime ? '6px' : '0', gap: '8px' }, onClick: () => { handleMetadataValueSelection(item); }, onFocus: () => { handleMetadataValueSelection(item); }, children: [showCheckBoxes !== ShowCheckBoxesMode.Never &&
|
|
247
|
+
_jsx(TMCheckBox, { elementStyle: { marginTop: item.md?.dataType === MetadataDataTypes.DateTime ? '14px' : '20px' }, value: item.isSelected, disabled: showCheckBoxes === ShowCheckBoxesMode.AlwaysReadOnly, onValueChanged: (newValue) => {
|
|
248
|
+
let newValues = structuredClone(metadataValues);
|
|
249
|
+
const mvd = newValues.find(value => value.mid === item.mid);
|
|
250
|
+
if (mvd)
|
|
251
|
+
mvd.isSelected = newValue;
|
|
252
|
+
onValueChanged?.(newValues);
|
|
253
|
+
} }), _jsxs("div", { style: { position: 'relative', height: '100%', width: '100%', opacity: showNullValueCheckBoxes && item.isNull ? 0.4 : 1 }, children: [_jsx(TMMetadataEditor, { tid: TID, mid: item.mid, customLabel: item.customName, layoutMode: layoutMode, isLexProt: item.isLexProt, isSelected: isOpenDistinctValues && item.mid === selectedMID, isModifiedWhen: (item.value ?? '') !== (metadataValuesOrig.find(m => m.mid === item.mid)?.value ?? ''), isReadOnly: isReadOnly || isReadOnlyOverride || item.isReadOnly || (showNullValueCheckBoxes ? item.isNull : undefined), isEditable: item.isEditable, validationItems: editorValidationHandler(item.mid ?? 0), value: item.value, openChooserBySingleClick: openChooserBySingleClick, onValueChanged: (newValue) => { onChangeHandler(newValue, item.mid ?? 0); }, onValueChange: (newValue) => { onChangeHandler(newValue, item.mid ?? 0); }, queryParamsDynDataList: dynDataListsToBeRefreshed.find(o => o.mid == item.mid)?.queryParams ?? [], onCascadeRefreshDynDataLists: (ddlToBeRefreshed) => {
|
|
254
|
+
let newDynDataListsToBeRefreshed = [];
|
|
255
|
+
for (const item of dynDataListsToBeRefreshed) {
|
|
256
|
+
let index = ddlToBeRefreshed.findIndex(o => o.mid == item.mid || (o.mid == -1 && o.midStarter == item.midStarter));
|
|
257
|
+
if (index >= 0)
|
|
258
|
+
continue;
|
|
259
|
+
newDynDataListsToBeRefreshed.push(item);
|
|
260
|
+
}
|
|
261
|
+
for (const item of ddlToBeRefreshed) {
|
|
262
|
+
if (item.queryParams.length <= 0)
|
|
263
|
+
continue;
|
|
264
|
+
if (!item.mid)
|
|
265
|
+
continue;
|
|
266
|
+
if (item.mid <= 0)
|
|
267
|
+
continue;
|
|
268
|
+
newDynDataListsToBeRefreshed.push(item);
|
|
269
|
+
}
|
|
270
|
+
setDynDataListsToBeRefreshed(newDynDataListsToBeRefreshed);
|
|
271
|
+
}, onCascadeUpdateMIDs: (midsToBeUpdated) => {
|
|
272
|
+
//Attenzione. Il primo elemento di midsToBeUpdated è il currentMID con il new value.
|
|
273
|
+
//nonostante passi prima da onValueChanged, la collection metadata non risulta aggiornata!
|
|
274
|
+
let newMetadata = structuredClone(metadataValues);
|
|
275
|
+
for (const item of midsToBeUpdated) {
|
|
276
|
+
const mdItem = newMetadata.find(value => value.mid === item.mid);
|
|
277
|
+
if (mdItem)
|
|
278
|
+
mdItem.value = item.value;
|
|
279
|
+
}
|
|
280
|
+
onValueChanged?.(newMetadata);
|
|
281
|
+
} }), FormulaHelper.isFormula(item.value)
|
|
282
|
+
? _jsx(IconFunction, { color: "#1a89d3", fontSize: 14, style: { position: "absolute", top: item.md?.dataType === MetadataDataTypes.DateTime ? '3px' : '5px', left: '14px' } })
|
|
283
|
+
: (isEditable(item.mid) || item.isEditable)
|
|
284
|
+
? _jsx(IconPencil, { color: "#138603", fontSize: 14, style: { position: "absolute", top: item.md?.dataType === MetadataDataTypes.DateTime ? '3px' : '5px', left: '16px' } })
|
|
285
|
+
: _jsx(_Fragment, {})] }), showNullValueCheckBoxes &&
|
|
286
|
+
_jsx(TMTooltip, { content: "Imposta <Null>", children: _jsx(IconNull, { style: { marginTop: item.md?.dataType === MetadataDataTypes.DateTime ? '12px' : '18px', opacity: item.md?.isRequired === 1 ? 0.4 : 1 }, cursor: item.md?.isRequired === 1 ? 'default' : 'pointer', color: item.isNull ? TMColors.isModified : TMColors.button_icon, onClick: () => {
|
|
287
|
+
if (item.md?.isRequired === 1)
|
|
288
|
+
return;
|
|
289
|
+
let newValues = structuredClone(metadataValues);
|
|
290
|
+
const mvd = newValues.find(value => value.mid === item.mid);
|
|
291
|
+
if (mvd) {
|
|
292
|
+
mvd.isNull = !mvd.isNull;
|
|
293
|
+
if (mvd.isNull)
|
|
294
|
+
mvd.isSelected = true;
|
|
295
|
+
else
|
|
296
|
+
mvd.isSelected = !stringIsNullOrEmpty(mvd.value);
|
|
297
|
+
}
|
|
298
|
+
onValueChanged?.(newValues);
|
|
299
|
+
} }) }), !isReadOnly && _jsx("div", { style: { marginTop: item.md?.dataType === MetadataDataTypes.DateTime ? '12px' : '18px' }, onClick: () => { handleMetadataValueSelection(item); }, children: _jsx(TMDropDownMenu, { backgroundColor: 'white', color: TMColors.button_icon, borderRadius: '3px', content: _jsx(TMButton, { btnStyle: 'icon', icon: _jsx(IconMenuVertical, {}), showTooltip: false }), disabled: item.isLexProt === 1, items: getAdvancedMenuItems(item) }) })] }, item.mid)), [TID, showCheckBoxes, showNullValueCheckBoxes, isReadOnly, layoutMode, selectedMID, isOpenDistinctValues, openChooserBySingleClick, dynDataListsToBeRefreshed, metadataValues, metadataValuesOrig, validationItems, onValueChanged, handleMetadataValueSelection, getAdvancedMenuItems, onChangeHandler, editorValidationHandler, isEditable]);
|
|
300
|
+
const layoutWorkItem = useMemo(() => {
|
|
301
|
+
const workItemData = [];
|
|
302
|
+
const technicalWorkItemData = [];
|
|
303
|
+
const documentData = [];
|
|
304
|
+
metadataValues.forEach(item => {
|
|
305
|
+
switch (item.md?.name) {
|
|
306
|
+
case WorkItemMetadataNames.WI_Description:
|
|
307
|
+
case WorkItemMetadataNames.WI_CreationTime:
|
|
308
|
+
workItemData.push(item);
|
|
309
|
+
break;
|
|
310
|
+
case WorkItemMetadataNames.WI_Response:
|
|
311
|
+
case WorkItemMetadataNames.WI_From:
|
|
312
|
+
case WorkItemMetadataNames.WI_To:
|
|
313
|
+
case WorkItemMetadataNames.WI_WFID:
|
|
314
|
+
case WorkItemMetadataNames.WI_TID:
|
|
315
|
+
case WorkItemMetadataNames.WI_DID:
|
|
316
|
+
case WorkItemMetadataNames.WI_SetID:
|
|
317
|
+
technicalWorkItemData.push(item);
|
|
318
|
+
break;
|
|
319
|
+
default:
|
|
320
|
+
// Check if it's another WorkItemMetadataName not explicitly listed
|
|
321
|
+
if (Object.values(WorkItemMetadataNames).includes(item.md?.name)) {
|
|
322
|
+
technicalWorkItemData.push(item);
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
documentData.push(item);
|
|
326
|
+
}
|
|
327
|
+
break;
|
|
328
|
+
}
|
|
329
|
+
});
|
|
330
|
+
return (_jsxs("div", { style: { width: '100%' }, children: [documentData.length > 0 && _jsx(TMAccordion, { title: SDKUI_Localizator.DocumentData, children: documentData.map(item => renderMetadataItem(item)) }), workItemData.length > 0 && _jsx(TMAccordion, { title: SDKUI_Localizator.WorkItemData, children: workItemData.map(item => renderMetadataItem(item, true)) }), technicalWorkItemData.length > 0 && _jsx(TMAccordion, { title: SDKUI_Localizator.WorkItemTechnicalData, defaultCollapsed: true, children: technicalWorkItemData.map(item => renderMetadataItem(item, true)) })] }));
|
|
331
|
+
}, [metadataValues, showCheckBoxes, showNullValueCheckBoxes, isReadOnly, dynDataListsToBeRefreshed, validationItems, selectedMID, isOpenDistinctValues, openChooserBySingleClick, metadataValuesOrig]);
|
|
332
|
+
const layoutDraft = useMemo(() => {
|
|
333
|
+
// Definiamo l'ordine desiderato per gli elementi
|
|
334
|
+
const desiredDraftOrder = [
|
|
335
|
+
DraftsMIDs.Name,
|
|
336
|
+
DraftsMIDs.Description,
|
|
337
|
+
DraftsMIDs.Ver,
|
|
338
|
+
DraftsMIDs.LastVer,
|
|
339
|
+
SystemMIDsAsNumber.FileExt,
|
|
340
|
+
SystemMIDsAsNumber.FileSize,
|
|
341
|
+
SystemMIDsAsNumber.LastUpdateTime,
|
|
342
|
+
SystemMIDsAsNumber.CreationTime,
|
|
343
|
+
];
|
|
344
|
+
const desiredCICOOrder = [
|
|
345
|
+
DraftsMIDs.CheckOutDate,
|
|
346
|
+
DraftsMIDs.CheckOutUserID,
|
|
347
|
+
];
|
|
348
|
+
// Usiamo una mappa temporanea per raccogliere gli elementi per ID,
|
|
349
|
+
// in modo da poterli poi ordinare facilmente.
|
|
350
|
+
const tempDraftDataMap = {};
|
|
351
|
+
const tempCICODataMap = {};
|
|
352
|
+
metadataValues.forEach(item => {
|
|
353
|
+
switch (item.md?.id) {
|
|
354
|
+
case DraftsMIDs.Name:
|
|
355
|
+
case DraftsMIDs.Description:
|
|
356
|
+
tempDraftDataMap[item.md.id] = item;
|
|
357
|
+
break;
|
|
358
|
+
case DraftsMIDs.Ver:
|
|
359
|
+
case DraftsMIDs.LastVer:
|
|
360
|
+
case SystemMIDsAsNumber.FileExt:
|
|
361
|
+
case SystemMIDsAsNumber.FileSize:
|
|
362
|
+
case SystemMIDsAsNumber.LastUpdateTime:
|
|
363
|
+
case SystemMIDsAsNumber.CreationTime:
|
|
364
|
+
// item.isReadOnly = true;
|
|
365
|
+
tempDraftDataMap[item.md.id] = item;
|
|
366
|
+
break;
|
|
367
|
+
case DraftsMIDs.CheckOutDate:
|
|
368
|
+
case DraftsMIDs.CheckOutUserID:
|
|
369
|
+
tempCICODataMap[item.md.id] = item;
|
|
370
|
+
break;
|
|
371
|
+
default: break;
|
|
372
|
+
}
|
|
373
|
+
});
|
|
374
|
+
// Visualizziamo nell'ordine desiderato
|
|
375
|
+
const draftData = [];
|
|
376
|
+
desiredDraftOrder.forEach(id => {
|
|
377
|
+
if (tempDraftDataMap[id]) {
|
|
378
|
+
draftData.push(tempDraftDataMap[id]);
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
const checkOutData = [];
|
|
382
|
+
desiredCICOOrder.forEach(id => {
|
|
383
|
+
if (tempCICODataMap[id]) {
|
|
384
|
+
checkOutData.push(tempCICODataMap[id]);
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
return (_jsxs("div", { style: { width: '100%' }, children: [draftData.length > 0 && _jsx(TMAccordion, { title: SDKUI_Localizator.Draft, children: draftData.map(item => renderMetadataItem(item, isReadOnly)) }), checkOutData.length > 0 && _jsx(TMAccordion, { title: `${SDKUI_Localizator.CheckIn}/${SDKUI_Localizator.CheckOut}`, children: checkOutData.map(item => renderMetadataItem(item, true)) })] }));
|
|
388
|
+
}, [metadataValues, showCheckBoxes, showNullValueCheckBoxes, isReadOnly, dynDataListsToBeRefreshed, validationItems, selectedMID, isOpenDistinctValues, openChooserBySingleClick, metadataValuesOrig]);
|
|
389
|
+
const layoutDsAttachs = useMemo(() => {
|
|
390
|
+
const dsAttachsData = [];
|
|
391
|
+
metadataValues.forEach(item => {
|
|
392
|
+
switch (item.md?.id) {
|
|
393
|
+
// case DSAttachsMIDs.DSID:
|
|
394
|
+
case DSAttachsMIDs.Name:
|
|
395
|
+
case DSAttachsMIDs.Description:
|
|
396
|
+
dsAttachsData.push(item);
|
|
397
|
+
break;
|
|
398
|
+
default:
|
|
399
|
+
break;
|
|
400
|
+
}
|
|
401
|
+
});
|
|
402
|
+
return (_jsx("div", { style: { width: '100%' }, children: dsAttachsData.length > 0 && _jsx(TMAccordion, { title: SDKUI_Localizator.Attachment, children: dsAttachsData.map(item => renderMetadataItem(item, isReadOnly)) }) }));
|
|
403
|
+
}, [metadataValues, showCheckBoxes, showNullValueCheckBoxes, isReadOnly, dynDataListsToBeRefreshed, validationItems, selectedMID, isOpenDistinctValues, openChooserBySingleClick, metadataValuesOrig]);
|
|
404
|
+
const layoutCustom = useMemo(() => {
|
|
405
|
+
if (!layout || !layout.items || layout.items.length === 0) {
|
|
406
|
+
return metadataValues.map((item) => renderMetadataItem(item));
|
|
407
|
+
}
|
|
408
|
+
// Build a map of items by ID for quick lookup (include negative/zero IDs)
|
|
409
|
+
const itemsById = new Map();
|
|
410
|
+
layout.items.forEach(item => {
|
|
411
|
+
if (item.layoutItemID !== undefined && item.layoutItemID !== null) {
|
|
412
|
+
itemsById.set(item.layoutItemID, item);
|
|
413
|
+
}
|
|
414
|
+
});
|
|
415
|
+
// Determine root items. Prefer explicit LayoutRoot items if present;
|
|
416
|
+
// otherwise fall back to items with no parent (parentID undefined or -1).
|
|
417
|
+
const hasExplicitRoot = layout.items.some(item => item.type === LayoutItemTypes.LayoutRoot);
|
|
418
|
+
const rootItems = hasExplicitRoot
|
|
419
|
+
? layout.items.filter(item => item.type === LayoutItemTypes.LayoutRoot)
|
|
420
|
+
: layout.items.filter(item => item.parentID === undefined || item.parentID === -1);
|
|
421
|
+
// Recursive function to get children of an item. Handle parentID === -1 and undefined
|
|
422
|
+
// because some layouts use -1 for root while children use undefined.
|
|
423
|
+
const getChildren = (parentID) => {
|
|
424
|
+
if (parentID === -1) {
|
|
425
|
+
return layout.items?.filter(item => item.parentID === -1 || item.parentID === undefined) || [];
|
|
426
|
+
}
|
|
427
|
+
if (parentID === undefined) {
|
|
428
|
+
return layout.items?.filter(item => item.parentID === undefined) || [];
|
|
429
|
+
}
|
|
430
|
+
return layout.items?.filter(item => item.parentID === parentID) || [];
|
|
431
|
+
};
|
|
432
|
+
// Recursive function to render layout items with depth tracking for indentation
|
|
433
|
+
// Prevent infinite recursion by tracking visited layoutItemIDs (handles malformed layouts where an item
|
|
434
|
+
// may reference itself as a child or cycles exist).
|
|
435
|
+
const renderLayoutItem = (layoutItem, depth = 0, visited = new Set()) => {
|
|
436
|
+
const id = layoutItem.layoutItemID ?? 0;
|
|
437
|
+
if (visited.has(id))
|
|
438
|
+
return null;
|
|
439
|
+
visited.add(id);
|
|
440
|
+
// Check if this is a LayoutRoot - just render its children
|
|
441
|
+
if (layoutItem.type === LayoutItemTypes.LayoutRoot) {
|
|
442
|
+
const children = getChildren(layoutItem.layoutItemID);
|
|
443
|
+
return (_jsx(React.Fragment, { children: children.map(child => renderLayoutItem(child, depth, visited)) }, `root-${layoutItem.layoutItemID}`));
|
|
444
|
+
}
|
|
445
|
+
// Check if this is a LayoutGroup
|
|
446
|
+
else if (layoutItem.type === LayoutItemTypes.LayoutGroup && layoutItem.lgd) {
|
|
447
|
+
const children = getChildren(layoutItem.layoutItemID);
|
|
448
|
+
const groupDescriptor = layoutItem.lgd;
|
|
449
|
+
const groupTitle = groupDescriptor.caption || `Group ${layoutItem.layoutItemID}`;
|
|
450
|
+
const isCollapsed = false; // LayoutGroupDescriptor doesn't have collapsed property
|
|
451
|
+
// Apply indentation only to subgroups (depth > 0), not to root groups
|
|
452
|
+
const indentationPx = depth > 0 ? depth * 10 : 0;
|
|
453
|
+
return (_jsx("div", { style: { paddingLeft: `${indentationPx}px` }, children: _jsx(TMAccordion, { title: groupTitle, defaultCollapsed: isCollapsed, children: children.map(child => renderLayoutItem(child, depth + 1, visited)) }) }, `group-wrapper-${layoutItem.layoutItemID}`));
|
|
454
|
+
}
|
|
455
|
+
// Check if this is a LayoutControlItem (metadata field)
|
|
456
|
+
else if (layoutItem.type === LayoutItemTypes.LayoutControlItem && layoutItem.lcid) {
|
|
457
|
+
const controlDescriptor = layoutItem.lcid;
|
|
458
|
+
const mid = controlDescriptor.mid;
|
|
459
|
+
if (!mid)
|
|
460
|
+
return null;
|
|
461
|
+
// Find the metadata value for this MID
|
|
462
|
+
const metadataItem = metadataValues.find(m => m.mid === mid);
|
|
463
|
+
if (!metadataItem)
|
|
464
|
+
return null;
|
|
465
|
+
// Indent control items based on depth so they align under groups
|
|
466
|
+
const controlIndentPx = depth > 0 ? depth * 10 : 15;
|
|
467
|
+
return (_jsx("div", { style: { paddingLeft: `${controlIndentPx}px` }, children: renderMetadataItem(metadataItem) }, `control-${layoutItem.layoutItemID}`));
|
|
468
|
+
}
|
|
469
|
+
// Check if this is a SeparatorItem (horizontal line)
|
|
470
|
+
else if (layoutItem.type === LayoutItemTypes.SeparatorItem) {
|
|
471
|
+
return (_jsx(StyledSeparator, {}, `separator-${layoutItem.layoutItemID}`));
|
|
472
|
+
}
|
|
473
|
+
return null;
|
|
474
|
+
};
|
|
475
|
+
return (_jsx("div", { style: { width: '100%' }, children: (() => {
|
|
476
|
+
const visited = new Set();
|
|
477
|
+
return rootItems.map(item => renderLayoutItem(item, 0, visited));
|
|
478
|
+
})() }));
|
|
479
|
+
}, [layout, metadataValues, showCheckBoxes, showNullValueCheckBoxes, isReadOnly, dynDataListsToBeRefreshed, validationItems, selectedMID, isOpenDistinctValues, openChooserBySingleClick, metadataValuesOrig]);
|
|
480
|
+
const renderForm = useMemo(() => {
|
|
481
|
+
// Se currentDTD non è ancora stato caricato, non renderizzare nulla
|
|
482
|
+
if (!currentDTD) {
|
|
483
|
+
return null;
|
|
484
|
+
}
|
|
485
|
+
// Se tutti i metadata sono di sistema, renderizziamo tutti in sola lettura senza layout
|
|
486
|
+
const allSystem = metadataValues.length > 0 && metadataValues.every(item => item.md?.isSystem === 1);
|
|
487
|
+
if (allSystem) {
|
|
488
|
+
return metadataValues.map((item) => renderMetadataItem(item, true));
|
|
489
|
+
}
|
|
490
|
+
if (currentDTD?.templateTID === TemplateTIDs.WF_WIApprView && !isReadOnly) {
|
|
491
|
+
return layoutWorkItem;
|
|
492
|
+
}
|
|
493
|
+
switch (currentDTD?.id) {
|
|
494
|
+
case SystemTIDs.Drafts: return layoutDraft;
|
|
495
|
+
// case SystemTIDs.Chronology: break;
|
|
496
|
+
case SystemTIDs.DSAttachs: return layoutDsAttachs;
|
|
497
|
+
default:
|
|
498
|
+
// Se è presente un layout personalizzato, usalo, altrimenti usa il rendering standard
|
|
499
|
+
if (layout && layout.items && layout.items.length > 0) {
|
|
500
|
+
return layoutCustom;
|
|
501
|
+
}
|
|
502
|
+
return metadataValues.map((item) => renderMetadataItem(item));
|
|
503
|
+
}
|
|
504
|
+
}, [currentDTD, metadataValues, layout, isReadOnly, showCheckBoxes, showNullValueCheckBoxes, dynDataListsToBeRefreshed, validationItems, selectedMID, isOpenDistinctValues, openChooserBySingleClick, metadataValuesOrig]);
|
|
505
|
+
return (_jsx(StyledMetadataValuesContainer, { children: !TID ?
|
|
506
|
+
_jsx(TMNothingToShow, { text: `${SDKUI_Localizator.NoDcmtSelected}.`, secondText: `${SDKUI_Localizator.MetadataSystem} - ${SDKUI_Localizator.NotAvailable}`, icon: _jsx(IconDcmtTypeSys, { fontSize: 96 }) }) :
|
|
507
|
+
_jsx(_Fragment, { children: renderForm }) }));
|
|
508
|
+
};
|
|
509
|
+
export default TMMetadataValues;
|
|
510
|
+
//#region Styled Components
|
|
511
|
+
const StyledMetadataValuesContainer = styled.div `
|
|
512
|
+
display: flex;
|
|
513
|
+
flex-direction: column;
|
|
514
|
+
width: 100%;
|
|
515
|
+
height: 100%;
|
|
516
|
+
overflow: auto;
|
|
517
|
+
padding: 0 10px 10px 10px;
|
|
518
|
+
`;
|
|
519
|
+
const StyledRow = styled.div `
|
|
520
|
+
display: flex;
|
|
521
|
+
flex-direction: row;
|
|
522
|
+
width: 100%;
|
|
523
|
+
gap: 5px;
|
|
524
|
+
`;
|
|
525
|
+
const StyledSeparator = styled.hr `
|
|
526
|
+
width: 100%;
|
|
527
|
+
margin: 10px 0;
|
|
528
|
+
border: none;
|
|
529
|
+
border-top: 1px solid #e0e0e0;
|
|
530
|
+
`;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITMEditorBase } from '../base/TMEditorBase';
|
|
3
|
+
interface ITMRadioButton extends ITMEditorBase {
|
|
4
|
+
dataSource?: any[];
|
|
5
|
+
alignment?: 'flex-start' | 'flex-end' | 'space-between' | 'center' | 'space-around';
|
|
6
|
+
direction?: 'row' | 'column';
|
|
7
|
+
onValueChanged?: (e: any) => void;
|
|
8
|
+
}
|
|
9
|
+
declare const TMRadioButton: React.FC<ITMRadioButton>;
|
|
10
|
+
export default TMRadioButton;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { FontSize, TMColors } from '../../utils/theme';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { makeID } from '../../helper/helpers';
|
|
5
|
+
const StyledWrapper = styled.label `
|
|
6
|
+
color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.text_normal : TMColors.disabled};
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: ${props => props.$direction};
|
|
9
|
+
align-items: ${props => props.$direction === 'row' ? 'center' : 'flex-start'};
|
|
10
|
+
font-size: ${props => props.$fontSize};
|
|
11
|
+
gap: ${props => props.$direction === 'row' ? '20px' : "10px"};
|
|
12
|
+
`;
|
|
13
|
+
const StyledRadioGroupLabel = styled.div `
|
|
14
|
+
flex: ${props => props.$flexBase};
|
|
15
|
+
`;
|
|
16
|
+
const StyledRadioGroupContainer = styled.div `
|
|
17
|
+
flex: ${props => 10 - props.$flexBase};
|
|
18
|
+
`;
|
|
19
|
+
const StyledRadioButtonWrapper = styled.div `
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-direction: ${props => props.$direction};
|
|
22
|
+
align-items: ${props => props.$direction === 'row' ? 'center' : 'flex-start'};
|
|
23
|
+
justify-content: flex-start;
|
|
24
|
+
gap: ${props => props.$direction === 'row' ? '10px' : '5px'};
|
|
25
|
+
`;
|
|
26
|
+
const StyledRadioButtoncontainer = styled.div `
|
|
27
|
+
display: flex;
|
|
28
|
+
flex-direction: row;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: flex-start;
|
|
31
|
+
gap: 5px;
|
|
32
|
+
height: 18px;
|
|
33
|
+
`;
|
|
34
|
+
const StyledRadioButton = styled.input `
|
|
35
|
+
accent-color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.primary : TMColors.disabled};
|
|
36
|
+
cursor: ${props => !props.$disabled && 'pointer'};
|
|
37
|
+
`;
|
|
38
|
+
const StyledradioButtonLabel = styled.label `
|
|
39
|
+
font-size: ${props => props.$fontSize};
|
|
40
|
+
color: ${props => !props.$disabled ? props.$isModifiedWhen ? TMColors.isModified : TMColors.text_normal : TMColors.disabled};
|
|
41
|
+
user-select: none;
|
|
42
|
+
width: 100%;
|
|
43
|
+
cursor: ${props => !props.$disabled && 'pointer'};
|
|
44
|
+
&:focus{
|
|
45
|
+
outline: none;
|
|
46
|
+
background-image: linear-gradient(white, #E4E9F7);
|
|
47
|
+
border-bottom: 2px solid ;
|
|
48
|
+
border-bottom-color: ${props => !props.$isModifiedWhen ? TMColors.primary : TMColors.isModified};
|
|
49
|
+
}
|
|
50
|
+
`;
|
|
51
|
+
const TMRadioButton = ({ isModifiedWhen, flexBase = 1, elementStyle, label, value, fontSize = FontSize.defaultFontSize, dataSource = [], direction = 'row', onValueChanged, disabled = false }) => {
|
|
52
|
+
const renderedRadioButtons = () => {
|
|
53
|
+
return (_jsx(StyledRadioButtonWrapper, { "$direction": direction, children: dataSource.map((data, index) => (_jsxs(StyledRadioButtoncontainer, { children: [_jsx(StyledRadioButton, { "$disabled": disabled, tabIndex: -1, name: makeID(8), checked: value === data.value ? true : false, onChange: () => onValueChanged(data.value), disabled: disabled, type: 'radio' }), _jsxs(StyledradioButtonLabel, { tabIndex: 0, onKeyDown: (e) => e.code === 'Space' && onValueChanged(data.value), onClick: () => onValueChanged(data.value), "$isModifiedWhen": isModifiedWhen, "$fontSize": fontSize, "$disabled": disabled, children: [" ", data.display, " "] })] }, index))) }));
|
|
54
|
+
};
|
|
55
|
+
return (_jsx("div", { style: elementStyle, children: _jsxs(StyledWrapper, { "$isModifiedWhen": isModifiedWhen, "$direction": direction, "$disabled": disabled, "$fontSize": fontSize, style: { display: 'flex', flexDirection: direction, alignItems: direction === 'row' ? 'center' : 'flex-start', fontSize: fontSize, gap: direction === 'row' ? '20px' : "10px" }, children: [label && _jsx(StyledRadioGroupLabel, { "$flexBase": flexBase, children: label }), _jsx(StyledRadioGroupContainer, { "$flexBase": flexBase, children: renderedRadioButtons() })] }) }));
|
|
56
|
+
};
|
|
57
|
+
export default TMRadioButton;
|