@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,208 @@
|
|
|
1
|
+
// Recursive function to flatten the panel hierarchy into a single array (includes children)
|
|
2
|
+
export const flattenPanels = (panels) => {
|
|
3
|
+
return panels.reduce((acc, panel) => {
|
|
4
|
+
// Add the current panel
|
|
5
|
+
acc.push(panel);
|
|
6
|
+
// Recursively add all child panels
|
|
7
|
+
if (panel.children && panel.children.length > 0) {
|
|
8
|
+
acc.push(...flattenPanels(panel.children));
|
|
9
|
+
}
|
|
10
|
+
return acc;
|
|
11
|
+
}, []);
|
|
12
|
+
};
|
|
13
|
+
// Recursive helper to traverse panels and children, accumulating visibility and disabled states
|
|
14
|
+
// Recursive function that returns visibility and disabled maps for panels and all children
|
|
15
|
+
export function getToolbarStates(panels) {
|
|
16
|
+
let visibilityMap = {};
|
|
17
|
+
let disabledMap = {};
|
|
18
|
+
panels.forEach(panel => {
|
|
19
|
+
if (panel.toolbarOptions?.visible !== undefined) {
|
|
20
|
+
visibilityMap[panel.id] = panel.toolbarOptions.visible;
|
|
21
|
+
disabledMap[panel.id] = panel.toolbarOptions.disabled ?? false;
|
|
22
|
+
}
|
|
23
|
+
if (panel.children && panel.children.length > 0) {
|
|
24
|
+
const childStates = getToolbarStates(panel.children);
|
|
25
|
+
visibilityMap = { ...visibilityMap, ...childStates.visibilityMap };
|
|
26
|
+
disabledMap = { ...disabledMap, ...childStates.disabledMap };
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
return { visibilityMap, disabledMap };
|
|
30
|
+
}
|
|
31
|
+
export const generatePanelHierarchyMap = (panels) => {
|
|
32
|
+
const hierarchyMap = new Map();
|
|
33
|
+
const traverse = (node, parentId, siblings = []) => {
|
|
34
|
+
const children = node.children || [];
|
|
35
|
+
const info = {
|
|
36
|
+
parentId: parentId,
|
|
37
|
+
childrenIds: children.map(child => child.id),
|
|
38
|
+
siblingIds: siblings.filter(s => s.id !== node.id).map(s => s.id),
|
|
39
|
+
groupDirection: node.currentGroupDirection ?? 'horizontal',
|
|
40
|
+
};
|
|
41
|
+
hierarchyMap.set(node.id, info);
|
|
42
|
+
for (const child of children) {
|
|
43
|
+
traverse(child, node.id, children);
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
for (const panel of panels) {
|
|
47
|
+
traverse(panel, undefined, panels);
|
|
48
|
+
}
|
|
49
|
+
return hierarchyMap;
|
|
50
|
+
};
|
|
51
|
+
export const showParentRecursively = (panelId, hierarchyMap) => {
|
|
52
|
+
const result = [];
|
|
53
|
+
const visit = (id) => {
|
|
54
|
+
const panelInfo = hierarchyMap.get(id);
|
|
55
|
+
if (!panelInfo)
|
|
56
|
+
return;
|
|
57
|
+
if (panelInfo.parentId) {
|
|
58
|
+
if (!result.some(([pid]) => pid === panelInfo.parentId)) {
|
|
59
|
+
result.push([panelInfo.parentId, true]);
|
|
60
|
+
visit(panelInfo.parentId);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
visit(panelId);
|
|
65
|
+
return result;
|
|
66
|
+
};
|
|
67
|
+
export const hideParentRecursively = (panelId, hierarchyMap, currentVisibility) => {
|
|
68
|
+
const result = [];
|
|
69
|
+
const visit = (id) => {
|
|
70
|
+
const panelInfo = hierarchyMap.get(id);
|
|
71
|
+
if (!panelInfo)
|
|
72
|
+
return;
|
|
73
|
+
if (panelInfo.parentId) {
|
|
74
|
+
const parentInfo = hierarchyMap.get(panelInfo.parentId);
|
|
75
|
+
if (!parentInfo)
|
|
76
|
+
return;
|
|
77
|
+
const visibleChildren = parentInfo.childrenIds.filter(childId => childId !== id && currentVisibility[childId]);
|
|
78
|
+
if (visibleChildren.length === 0) {
|
|
79
|
+
if (!result.some(([pid]) => pid === panelInfo.parentId)) {
|
|
80
|
+
result.push([panelInfo.parentId, false]);
|
|
81
|
+
visit(panelInfo.parentId);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
visit(panelId);
|
|
87
|
+
return result;
|
|
88
|
+
};
|
|
89
|
+
export const redistributeDimensionsOnHide = (hiddenPanelId, currentDimensions, hierarchyMap, panelVisibility) => {
|
|
90
|
+
const parentId = hierarchyMap.get(hiddenPanelId)?.parentId;
|
|
91
|
+
const siblings = hierarchyMap.get(hiddenPanelId)?.siblingIds || [];
|
|
92
|
+
if (siblings.length === 0)
|
|
93
|
+
return currentDimensions;
|
|
94
|
+
const hiddenDims = currentDimensions[hiddenPanelId];
|
|
95
|
+
if (!hiddenDims)
|
|
96
|
+
return currentDimensions;
|
|
97
|
+
const hiddenWidthNum = parseFloat(hiddenDims.width);
|
|
98
|
+
const hiddenHeightNum = parseFloat(hiddenDims.height);
|
|
99
|
+
const visibleSiblings = siblings.filter(siblingId => panelVisibility[siblingId]);
|
|
100
|
+
const widthIncrement = hiddenWidthNum / visibleSiblings.length;
|
|
101
|
+
const heightIncrement = hiddenHeightNum / visibleSiblings.length;
|
|
102
|
+
let newDimensions = { ...currentDimensions };
|
|
103
|
+
visibleSiblings.forEach(siblingId => {
|
|
104
|
+
const siblingDims = newDimensions[siblingId] || { width: '0%', height: '0%' };
|
|
105
|
+
const siblingWidthNum = parseFloat(siblingDims.width) || 0;
|
|
106
|
+
const siblingHeightNum = parseFloat(siblingDims.height) || 0;
|
|
107
|
+
const newWidthNum = Math.min(siblingWidthNum + widthIncrement, 100);
|
|
108
|
+
const newHeightNum = Math.min(siblingHeightNum + heightIncrement, 100);
|
|
109
|
+
newDimensions[siblingId] = { width: `${newWidthNum}%`, height: `${newHeightNum}%` };
|
|
110
|
+
});
|
|
111
|
+
newDimensions[hiddenPanelId] = { width: '0%', height: '0%' };
|
|
112
|
+
// Ora controllo se il parent non ha più figli visibili e chiamo ricorsivamente
|
|
113
|
+
if (parentId) {
|
|
114
|
+
const parentInfo = hierarchyMap.get(parentId);
|
|
115
|
+
if (parentInfo) {
|
|
116
|
+
const visibleSiblings = parentInfo.childrenIds.filter(childId => childId !== hiddenPanelId && panelVisibility[childId]);
|
|
117
|
+
// Se non ci sono figli visibili rimanenti, chiamo ricorsivamente sul parent
|
|
118
|
+
if (visibleSiblings.length === 0) {
|
|
119
|
+
newDimensions = redistributeDimensionsOnHide(parentId, newDimensions, hierarchyMap, panelVisibility);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
return newDimensions;
|
|
124
|
+
};
|
|
125
|
+
export const redistributeDimensionsOnShow = (shownPanelId, currentDimensions, initialDimensions, hierarchyMap, panelVisibility) => {
|
|
126
|
+
let updatedDimensions = { ...currentDimensions };
|
|
127
|
+
const redistribute = (panelId) => {
|
|
128
|
+
const panel = hierarchyMap.get(panelId);
|
|
129
|
+
if (!panel)
|
|
130
|
+
return;
|
|
131
|
+
const parentId = panel.parentId;
|
|
132
|
+
if (!parentId) {
|
|
133
|
+
// Caso root (senza parent)
|
|
134
|
+
const siblingIds = panel.siblingIds || [];
|
|
135
|
+
const visibleSiblings = siblingIds.filter(sibId => panelVisibility[sibId]);
|
|
136
|
+
const allVisible = [panelId, ...visibleSiblings];
|
|
137
|
+
if (panel.groupDirection === 'horizontal') {
|
|
138
|
+
const totalInitialWidth = allVisible.reduce((sum, id) => {
|
|
139
|
+
const w = parseFloat(initialDimensions[id]?.width || '0');
|
|
140
|
+
return sum + w;
|
|
141
|
+
}, 0);
|
|
142
|
+
allVisible.forEach(id => {
|
|
143
|
+
const w = parseFloat(initialDimensions[id]?.width || '0');
|
|
144
|
+
const proportionalWidth = (w / totalInitialWidth) * 100;
|
|
145
|
+
updatedDimensions[id] = {
|
|
146
|
+
width: `${proportionalWidth}%`,
|
|
147
|
+
height: '100%'
|
|
148
|
+
};
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
else {
|
|
152
|
+
// vertical
|
|
153
|
+
const totalInitialHeight = allVisible.reduce((sum, id) => {
|
|
154
|
+
const h = parseFloat(initialDimensions[id]?.height || '0');
|
|
155
|
+
return sum + h;
|
|
156
|
+
}, 0);
|
|
157
|
+
allVisible.forEach(id => {
|
|
158
|
+
const h = parseFloat(initialDimensions[id]?.height || '0');
|
|
159
|
+
const proportionalHeight = (h / totalInitialHeight) * 100;
|
|
160
|
+
updatedDimensions[id] = {
|
|
161
|
+
width: '100%',
|
|
162
|
+
height: `${proportionalHeight}%`
|
|
163
|
+
};
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
const siblingIds = panel.siblingIds || [];
|
|
169
|
+
const visibleSiblings = siblingIds.filter(sibId => panelVisibility[sibId]);
|
|
170
|
+
const allVisible = [panelId, ...visibleSiblings];
|
|
171
|
+
if (panel.groupDirection === 'horizontal') {
|
|
172
|
+
const totalInitialWidth = allVisible.reduce((sum, id) => {
|
|
173
|
+
const w = parseFloat(initialDimensions[id]?.width || '0');
|
|
174
|
+
return sum + w;
|
|
175
|
+
}, 0);
|
|
176
|
+
allVisible.forEach(id => {
|
|
177
|
+
const w = parseFloat(initialDimensions[id]?.width || '0');
|
|
178
|
+
const proportionalWidth = (w / totalInitialWidth) * 100;
|
|
179
|
+
updatedDimensions[id] = {
|
|
180
|
+
width: `${proportionalWidth}%`,
|
|
181
|
+
height: '100%'
|
|
182
|
+
};
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
// vertical
|
|
187
|
+
const totalInitialHeight = allVisible.reduce((sum, id) => {
|
|
188
|
+
const h = parseFloat(initialDimensions[id]?.height || '0');
|
|
189
|
+
return sum + h;
|
|
190
|
+
}, 0);
|
|
191
|
+
allVisible.forEach(id => {
|
|
192
|
+
const h = parseFloat(initialDimensions[id]?.height || '0');
|
|
193
|
+
const proportionalHeight = (h / totalInitialHeight) * 100;
|
|
194
|
+
updatedDimensions[id] = {
|
|
195
|
+
width: '100%',
|
|
196
|
+
height: `${proportionalHeight}%`
|
|
197
|
+
};
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
// Chiamo ricorsivamente sul parent corretto (non sempre shownPanelId)
|
|
201
|
+
const parent = hierarchyMap.get(panelId)?.parentId;
|
|
202
|
+
if (parent)
|
|
203
|
+
redistribute(parent);
|
|
204
|
+
}
|
|
205
|
+
};
|
|
206
|
+
redistribute(shownPanelId);
|
|
207
|
+
return updatedDimensions;
|
|
208
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ObjectClasses, JobTypes } from "@topconsultnpm/sdk-ts";
|
|
3
|
+
interface ITMPage<T> {
|
|
4
|
+
/** Eventuale componente da sovrapporre alla lista */
|
|
5
|
+
listInsteadOfContent?: React.ReactNode;
|
|
6
|
+
/** Disabilita la lista dal chiamante */
|
|
7
|
+
listDisabled?: boolean;
|
|
8
|
+
/** Form per editare l'elemento */
|
|
9
|
+
detailForm?: JSX.Element;
|
|
10
|
+
/** Path per la costruzione del titolo in funzione dei forms aperti */
|
|
11
|
+
detailTitlePathKeys: string[] | undefined;
|
|
12
|
+
/** Eventuale componente da sovrapporre al form dettaglio */
|
|
13
|
+
detailInsteadOfContent?: JSX.Element;
|
|
14
|
+
/** Bottoni personalizzati da aggiungere alla toolbar e pannello di selezione multipla */
|
|
15
|
+
customButtons?: any[];
|
|
16
|
+
/** Colonne personalizzate da aggiungere alla lista */
|
|
17
|
+
customColumns?: JSX.Element[];
|
|
18
|
+
/** Lista delle dipendenze che riavviano il componente */
|
|
19
|
+
deps?: React.DependencyList;
|
|
20
|
+
/** Id iniziale dell'oggetto */
|
|
21
|
+
id?: number;
|
|
22
|
+
/** Classe dell'oggetto */
|
|
23
|
+
objClass?: ObjectClasses;
|
|
24
|
+
/** Tipo dell'oggetto in funzione di objClass */
|
|
25
|
+
objType?: JobTypes;
|
|
26
|
+
/** Testo per filtrare la lista */
|
|
27
|
+
searchText?: string;
|
|
28
|
+
/** Indica la pagina dell'URL per i link */
|
|
29
|
+
routePage?: string;
|
|
30
|
+
/** Indica quando eseguire il refresh dei dati della lista */
|
|
31
|
+
lastRefreshTime?: Date;
|
|
32
|
+
/** Indica il cambiamento della selezione */
|
|
33
|
+
onSelectionChanged?: (rows: T[]) => void;
|
|
34
|
+
/** Indica il cambiamento dei contatori della lista (totali, selezionati e visibili) */
|
|
35
|
+
onCountersChanged?: (totalItemsCount: number, selectedItemsCount: number, visibleItemsCount: number) => void;
|
|
36
|
+
}
|
|
37
|
+
declare const TMPage: <T>({ id, objClass, listDisabled, lastRefreshTime, objType, listInsteadOfContent, detailInsteadOfContent, routePage, customButtons, customColumns, searchText, detailForm, detailTitlePathKeys, deps, onSelectionChanged, onCountersChanged }: ITMPage<T>) => import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export default TMPage;
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React, { useState, useEffect } from "react";
|
|
3
|
+
import { SDK_Globals, ObjectClasses, ResultTypes } from "@topconsultnpm/sdk-ts";
|
|
4
|
+
import DataGrid, { Column, GroupPanel, Grouping, HeaderFilter, LoadPanel, Pager, Paging, Scrolling, SearchPanel, Selection } from "devextreme-react/data-grid";
|
|
5
|
+
import { PlatformObjectService } from "../../services/platform_services";
|
|
6
|
+
import { FormModes } from "../../ts";
|
|
7
|
+
import { Globalization, IconAdd, IconColumns, IconCopy, IconDelete, IconDuplicate, IconHide, IconMail, IconMenuVertical, IconOpenInNew, IconRefresh, IconShow, SDKUI_Globals, SDKUI_Localizator, calcSaveFormTitle, canNext, canPrev, dialogConfirmOperation, getExceptionMessage, getNext, getPrev } from "../../helper";
|
|
8
|
+
import TMSpinner from "../base/TMSpinner";
|
|
9
|
+
import { ButtonNames, TMExceptionBoxManager, TMMessageBoxManager } from "../base/TMPopUp";
|
|
10
|
+
import TMLayoutContainer, { TMLayoutItem, TMSplitterLayout } from "../base/TMLayout";
|
|
11
|
+
import TMButton from "../base/TMButton";
|
|
12
|
+
import TMDropDownMenu from "../base/TMDropDownMenu";
|
|
13
|
+
import { FontSize, TMColors } from "../../utils/theme";
|
|
14
|
+
import selectionManagerImage from '../../assets/multipleSelectionManager.jpg';
|
|
15
|
+
import { DeviceType, useDeviceType } from "../base/TMDeviceProvider";
|
|
16
|
+
import { TMResultManager } from "../forms/TMResultDialog";
|
|
17
|
+
import { TMLayoutWaitingContainer } from "../base/TMWaitPanel";
|
|
18
|
+
import TMToolbarCard from "../base/TMToolbarCard";
|
|
19
|
+
let abortController = new AbortController();
|
|
20
|
+
const TMPage = ({ id, objClass = ObjectClasses.None, listDisabled = false, lastRefreshTime, objType, listInsteadOfContent, detailInsteadOfContent, routePage, customButtons, customColumns, searchText, detailForm, detailTitlePathKeys, deps, onSelectionChanged, onCountersChanged }) => {
|
|
21
|
+
const deviceType = useDeviceType();
|
|
22
|
+
let gridInstance;
|
|
23
|
+
const [showId, setShowId] = useState(false);
|
|
24
|
+
const [showAllColumns, setShowAllColumns] = useState(false);
|
|
25
|
+
const [selectionListDisabled, setSelectionListDisabled] = useState(false);
|
|
26
|
+
const [showList, setShowList] = useState(true);
|
|
27
|
+
const [items, setItems] = useState([]);
|
|
28
|
+
const [selectedItems, setSelectedItems] = useState([]);
|
|
29
|
+
const [visibleItems, setVisibleItems] = useState([]);
|
|
30
|
+
const [formMode, setFormMode] = useState(FormModes.Update);
|
|
31
|
+
const [showWaitPanel, setShowWaitPanel] = useState(false);
|
|
32
|
+
const [waitPanelTitle, setWaitPanelTitle] = useState('');
|
|
33
|
+
const [showPrimary, setShowPrimary] = useState(false);
|
|
34
|
+
const [waitPanelTextPrimary, setWaitPanelTextPrimary] = useState('');
|
|
35
|
+
const [waitPanelValuePrimary, setWaitPanelValuePrimary] = useState(0);
|
|
36
|
+
const [waitPanelMaxValuePrimary, setWaitPanelMaxValuePrimary] = useState(0);
|
|
37
|
+
let objName = PlatformObjectService.getName(objClass, objType);
|
|
38
|
+
let objNames = PlatformObjectService.getName(objClass, objType, true);
|
|
39
|
+
useEffect(() => { gridInstance?.instance().searchByText(searchText ?? ''); }, [searchText]);
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
let itemsCount = gridInstance?.instance().getDataSource().items().length;
|
|
42
|
+
if (itemsCount && itemsCount > 0) {
|
|
43
|
+
gridInstance?.instance().selectRows(selectedItems?.map((item) => item.id) ?? [], false);
|
|
44
|
+
}
|
|
45
|
+
}, [selectedItems]);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
setSelectedItems([]);
|
|
48
|
+
setFormMode(FormModes.Update);
|
|
49
|
+
setSelectionListDisabled(false);
|
|
50
|
+
(async () => { await loadDataAsync(id); })();
|
|
51
|
+
}, deps && deps.length > 0 ? [deps[0]] : []);
|
|
52
|
+
useEffect(() => {
|
|
53
|
+
if (lastRefreshTime) {
|
|
54
|
+
loadDataAsync(id);
|
|
55
|
+
}
|
|
56
|
+
}, [lastRefreshTime]);
|
|
57
|
+
useEffect(() => {
|
|
58
|
+
setSelectionListDisabled(detailInsteadOfContent != undefined && listDisabled);
|
|
59
|
+
}, [listDisabled]);
|
|
60
|
+
useEffect(() => { onCountersChanged?.(items.length, selectedItems.length, visibleItems.length); }, [items, selectedItems, visibleItems]);
|
|
61
|
+
const loadDataAsync = async (id) => {
|
|
62
|
+
try {
|
|
63
|
+
TMSpinner.show({ description: `${SDKUI_Localizator.Loading} - ${PlatformObjectService.getName(objClass)} ...` });
|
|
64
|
+
const list = await PlatformObjectService.retrieveAllAdminAsync(objClass, objType);
|
|
65
|
+
if (list) {
|
|
66
|
+
setItems(list);
|
|
67
|
+
if (id && id > 0) {
|
|
68
|
+
setSelectedItems(list.filter((o) => o.id === id));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
catch (e) {
|
|
73
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
74
|
+
}
|
|
75
|
+
finally {
|
|
76
|
+
TMSpinner.hide();
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const duplicate = () => { deviceType === DeviceType.MOBILE && setShowList(false); setFormMode(FormModes.Duplicate); };
|
|
80
|
+
const create = () => { deviceType === DeviceType.MOBILE && setShowList(false); setFormMode(FormModes.Create); };
|
|
81
|
+
const deleteItems = async () => {
|
|
82
|
+
let operationTitle = SDKUI_Localizator.Delete;
|
|
83
|
+
let msg = "";
|
|
84
|
+
switch (selectedItems.length) {
|
|
85
|
+
case 0: return;
|
|
86
|
+
case 1:
|
|
87
|
+
msg = SDKUI_Localizator.Delete_ConfirmFor1.replaceParams(selectedItems[0].name ?? "");
|
|
88
|
+
break;
|
|
89
|
+
default:
|
|
90
|
+
msg = SDKUI_Localizator.Delete_ConfirmForN.replaceParams(selectedItems.length);
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
const doOperationAsync = async () => {
|
|
94
|
+
setShowWaitPanel(true);
|
|
95
|
+
setShowPrimary(true);
|
|
96
|
+
setWaitPanelTitle(operationTitle);
|
|
97
|
+
abortController = new AbortController();
|
|
98
|
+
let result = [];
|
|
99
|
+
setWaitPanelMaxValuePrimary(selectedItems.length);
|
|
100
|
+
for (let i = 0; i < selectedItems.length; i++) {
|
|
101
|
+
if (abortController.signal.aborted) {
|
|
102
|
+
result.push({ rowIndex: i, id1: selectedItems[i].id, id2: 0, resultType: ResultTypes.WARNING, description: `Operazione interrotta. Elaborati ${i + 1} lavori` });
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
setWaitPanelValuePrimary(i + 1);
|
|
106
|
+
setWaitPanelTextPrimary(`Documento ${i + 1} di ${selectedItems.length}`);
|
|
107
|
+
try {
|
|
108
|
+
await PlatformObjectService.deleteAsync(objClass, selectedItems[i]?.id);
|
|
109
|
+
result.push({ rowIndex: i, id1: selectedItems[i].id, id2: 0, description: objType?.toString(), resultType: ResultTypes.SUCCESS });
|
|
110
|
+
}
|
|
111
|
+
catch (ex) {
|
|
112
|
+
result.push({ rowIndex: i, id1: selectedItems[i].id, id2: 0, resultType: ResultTypes.ERROR, description: getExceptionMessage(ex) });
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
setWaitPanelMaxValuePrimary(0);
|
|
116
|
+
setWaitPanelValuePrimary(0);
|
|
117
|
+
setWaitPanelTextPrimary('');
|
|
118
|
+
setShowWaitPanel(false);
|
|
119
|
+
TMResultManager.show(result, operationTitle, "JobID", undefined);
|
|
120
|
+
await loadDataAsync();
|
|
121
|
+
};
|
|
122
|
+
dialogConfirmOperation(operationTitle, msg, doOperationAsync);
|
|
123
|
+
};
|
|
124
|
+
const ToolbarPage = () => {
|
|
125
|
+
let disabled = selectionListDisabled;
|
|
126
|
+
window.Buffer = Buffer;
|
|
127
|
+
let str = (JSON.stringify(SDK_Globals.tmSession));
|
|
128
|
+
let sessionToBase64 = Buffer.from(str).toString("base64");
|
|
129
|
+
let newURL = selectedItems.length > 0 ? `/${routePage}/${selectedItems[0]?.id}?session=${sessionToBase64}` : '';
|
|
130
|
+
let mailTo = selectedItems.length > 0 ? `mailto:?subject=Custom URL&body=localhost:3000/${routePage}` : '';
|
|
131
|
+
const copyInClipboard = () => { window.navigator.clipboard.writeText(`localhost:3000/${routePage}`); };
|
|
132
|
+
const getToolbarMenuItems = () => {
|
|
133
|
+
let items = [
|
|
134
|
+
{ text: SDKUI_Localizator.Duplicate, disabled: selectedItems.length !== 1, icon: _jsx(IconDuplicate, {}), onClick: () => { duplicate(); } },
|
|
135
|
+
{ text: SDKUI_Localizator.Refresh, icon: _jsx(IconRefresh, {}), onClick: async () => { await loadDataAsync(); } },
|
|
136
|
+
{ text: _jsx("a", { style: { textDecoration: 'none', color: selectedItems.length !== 1 ? '#bdbdbd' : 'black' }, href: newURL, target: '_blank', children: SDKUI_Localizator.OpenInNewTab }), disabled: selectedItems.length !== 1, icon: _jsx(IconOpenInNew, {}), beginGroup: true },
|
|
137
|
+
{ text: _jsx("a", { style: { textDecoration: 'none', color: selectedItems.length !== 1 ? '#bdbdbd' : 'black' }, href: mailTo, children: SDKUI_Localizator.SendLinkByMail }), disabled: selectedItems.length !== 1, icon: _jsx(IconMail, {}) },
|
|
138
|
+
{ text: SDKUI_Localizator.CopyToClipboard, disabled: selectedItems.length !== 1, icon: _jsx(IconCopy, {}), onClick: () => { copyInClipboard(); } },
|
|
139
|
+
{ text: showId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show, icon: showId ? _jsx(IconHide, {}) : _jsx(IconShow, {}), onClick: () => { setShowId(!showId); }, beginGroup: true },
|
|
140
|
+
{ text: showAllColumns ? SDKUI_Localizator.Columns_All_Hide : SDKUI_Localizator.Columns_All_Show, icon: _jsx(IconColumns, {}), onClick: () => { setShowAllColumns(!showAllColumns); } },
|
|
141
|
+
];
|
|
142
|
+
if (customButtons) {
|
|
143
|
+
for (const btn of customButtons)
|
|
144
|
+
items.splice(btn.index, 0, btn);
|
|
145
|
+
}
|
|
146
|
+
return items;
|
|
147
|
+
};
|
|
148
|
+
return (_jsx(TMLayoutItem, { height: '35px', children: _jsxs(TMLayoutContainer, { direction: 'horizontal', gap: 5, children: [_jsx(TMButton, { keyGesture: "alt+n", color: "primary", disabled: disabled, caption: SDKUI_Localizator.Add, onClick: () => { create(); }, icon: _jsx(IconAdd, {}), showTooltip: true, btnStyle: 'toolbar' }), _jsx(TMButton, { keyGesture: "alt+d", color: "error", disabled: selectedItems.length === 0 || disabled, caption: SDKUI_Localizator.Remove, onClick: () => { deleteItems(); }, icon: _jsx(IconDelete, {}), showTooltip: true, btnStyle: 'toolbar' }), _jsx(TMDropDownMenu, { backgroundColor: 'white', borderRadius: '3px', content: _jsx(TMButton, { btnStyle: "toolbar", showTooltip: false, disabled: disabled, icon: _jsx(IconMenuVertical, {}), color: 'primary' }), items: getToolbarMenuItems() })] }) }));
|
|
149
|
+
};
|
|
150
|
+
const MultipleSelectionManager = () => {
|
|
151
|
+
return (_jsxs("div", { style: { width: '100%', height: '100%', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center' }, children: [_jsx("img", { style: { transform: 'translateX(-35px)' }, src: selectionManagerImage, width: 250, height: 250, alt: "" }), _jsx("p", { style: { fontSize: FontSize.defaultFontSize, marginBottom: '25px', transform: 'translateX(-35px)' }, children: selectedItems.length + ' ' + SDKUI_Localizator.Selected }), selectedItems.length > 0 &&
|
|
152
|
+
_jsxs("div", { style: { display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', transform: 'translateX(-35px)' }, children: [_jsxs("div", { onClick: () => { deleteItems(); }, style: { cursor: 'pointer', marginBottom: '10px', width: '200px', display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }, children: [_jsx(IconDelete, { fontSize: 20, color: TMColors.error }), _jsx("p", { style: { fontSize: FontSize.defaultFontSize, marginLeft: '5px', color: TMColors.error }, children: SDKUI_Localizator.Delete })] }), customButtons?.filter(o => o.showInMultipleSelectManager == true).map((item, index) => {
|
|
153
|
+
return (_jsxs("div", { onClick: item.onClick, style: { cursor: 'pointer', marginBottom: '10px', width: '200px', display: 'flex', flexDirection: 'row', justifyContent: 'center', alignItems: 'center' }, children: [item.icon, _jsx("p", { style: { fontSize: FontSize.defaultFontSize, marginLeft: '5px' }, children: item.text })] }, index));
|
|
154
|
+
})] })] }));
|
|
155
|
+
};
|
|
156
|
+
const getDetailFormWithProps = () => {
|
|
157
|
+
if (!detailForm)
|
|
158
|
+
return null;
|
|
159
|
+
return React.cloneElement(detailForm, {
|
|
160
|
+
id: selectedItems.length == 0 ? -1 : selectedItems[0].id,
|
|
161
|
+
// showBackButton: deviceType === DeviceType.MOBILE,
|
|
162
|
+
formMode: formMode,
|
|
163
|
+
canNext: canNext(visibleItems, selectedItems),
|
|
164
|
+
onNext: () => { setSelectedItems([getNext(visibleItems, selectedItems)]); },
|
|
165
|
+
canPrev: canPrev(visibleItems, selectedItems),
|
|
166
|
+
onPrev: () => { setSelectedItems([getPrev(visibleItems, selectedItems)]); },
|
|
167
|
+
onShowList: (value) => { setShowList(value); },
|
|
168
|
+
onCancel: (withoutConfirm) => {
|
|
169
|
+
if (withoutConfirm) {
|
|
170
|
+
setFormMode(FormModes.Update);
|
|
171
|
+
setSelectionListDisabled(false);
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
TMMessageBoxManager.show({
|
|
175
|
+
title: SDKUI_Localizator.Cancel, message: SDKUI_Localizator.ConfirmOnCancel, buttons: [ButtonNames.YES, ButtonNames.NO],
|
|
176
|
+
onButtonClick: async (e) => {
|
|
177
|
+
if (e !== ButtonNames.YES)
|
|
178
|
+
return;
|
|
179
|
+
setFormMode(FormModes.Update);
|
|
180
|
+
setSelectionListDisabled(false);
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
},
|
|
184
|
+
onStatusChanged: (isModified) => { setSelectionListDisabled((formMode == FormModes.Create || formMode == FormModes.Duplicate) ? true : isModified); },
|
|
185
|
+
onSaved: async (newItem) => {
|
|
186
|
+
try {
|
|
187
|
+
const currentItems = items.map((job) => job);
|
|
188
|
+
const index = currentItems.findIndex((o) => o.id == newItem.id);
|
|
189
|
+
if (index >= 0)
|
|
190
|
+
currentItems[index] = newItem;
|
|
191
|
+
else
|
|
192
|
+
currentItems.push(newItem);
|
|
193
|
+
setItems(currentItems);
|
|
194
|
+
setSelectedItems([newItem]);
|
|
195
|
+
setFormMode(FormModes.Update);
|
|
196
|
+
setSelectionListDisabled(false);
|
|
197
|
+
}
|
|
198
|
+
catch (e) {
|
|
199
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
};
|
|
204
|
+
const cellRenderObjectIcon = (data) => { return PlatformObjectService.getIcon(objClass, data.row.data); };
|
|
205
|
+
return (_jsx(TMLayoutWaitingContainer, { direction: 'vertical', showWaitPanel: showWaitPanel, showWaitPanelPrimary: showPrimary, waitPanelTitle: waitPanelTitle, waitPanelTextPrimary: waitPanelTextPrimary, waitPanelValuePrimary: waitPanelValuePrimary, waitPanelMaxValuePrimary: waitPanelMaxValuePrimary, isCancelable: true, abortController: abortController, children: _jsxs(TMSplitterLayout, { direction: "horizontal", showSeparator: showList && deviceType !== DeviceType.MOBILE, separatorSize: 10, separatorColor: 'transparent', separatorActiveColor: 'transparent', start: showList ? deviceType !== DeviceType.MOBILE ? ['30%', '70%'] : ['100%', '0%'] : ['0', '100%'], min: ['0px', '0px'], children: [listInsteadOfContent ??
|
|
206
|
+
_jsxs(TMToolbarCard, { title: objNames, children: [_jsx(ToolbarPage, {}), _jsxs(DataGrid, { disabled: selectionListDisabled, ref: (grid) => (gridInstance = grid), height: "calc(100% - 35px)", width: 'calc(100% - 5px)', dataSource: items, keyExpr: "id", allowColumnResizing: true, columnResizingMode: "widget", allowColumnReordering: true, showBorders: false, onContentReady: (e) => {
|
|
207
|
+
setVisibleItems(e.component.getVisibleRows().map((row) => { return row.data; }));
|
|
208
|
+
e.component.selectRows(selectedItems?.map((item) => item.id), false);
|
|
209
|
+
}, onRowClick: (row) => {
|
|
210
|
+
if (deviceType !== DeviceType.MOBILE)
|
|
211
|
+
return;
|
|
212
|
+
setSelectedItems([row.data]);
|
|
213
|
+
setShowList(false);
|
|
214
|
+
}, showColumnLines: Number(SDKUI_Globals.userSettings?.themeSettings.gridSettings.showColumnLines) === 1, showRowLines: Number(SDKUI_Globals.userSettings?.themeSettings.gridSettings.showRowLines) === 1, onSelectionChanged: (e) => { setSelectedItems(e.selectedRowsData); onSelectionChanged?.(e.selectedRowsData); }, children: [_jsx(GroupPanel, { visible: !!(deviceType !== DeviceType.MOBILE && showAllColumns) }), _jsx(SearchPanel, { visible: false }), _jsx(Grouping, { autoExpandAll: false }), _jsx(HeaderFilter, { visible: true }), _jsx(Selection, { mode: "multiple", showCheckBoxesMode: "onClick", selectAllMode: 'allPages' }), _jsx(Scrolling, { mode: "standard", useNative: Number(SDKUI_Globals.userSettings?.themeSettings.gridSettings.useNativeScrollbar) === 1 }), _jsx(Paging, { pageSize: 25 }), _jsx(Pager, { visible: true, showInfo: true, showNavigationButtons: true }), _jsx(LoadPanel, { enabled: true }), _jsx(Column, { width: 20, cellRender: cellRenderObjectIcon }), _jsx(Column, { width: 'auto', visible: showId, dataField: "id", caption: "ID" }), _jsx(Column, { width: 250, dataField: "name", caption: SDKUI_Localizator.Name, sortOrder: "asc" }), _jsx(Column, { width: 250, visible: showAllColumns, dataField: "description", caption: SDKUI_Localizator.Description }), customColumns?.map((item, index) => { return React.cloneElement(item, { key: index, visible: showAllColumns }); }), _jsx(Column, { width: 'auto', visible: showAllColumns, dataField: "ownerID", caption: SDKUI_Localizator.OwnerID }), _jsx(Column, { width: 'auto', visible: showAllColumns, dataField: "ownerName", caption: SDKUI_Localizator.OwnerName }), _jsx(Column, { width: 'auto', dataType: "date", format: Globalization.getDateDisplayFormat(), visible: showAllColumns, dataField: "creationTime", caption: SDKUI_Localizator.CreationTime }), _jsx(Column, { width: 'auto', dataType: "date", format: Globalization.getDateDisplayFormat(), visible: showAllColumns, dataField: "lastUpdateTime", caption: SDKUI_Localizator.LastUpdateTime })] })] }), detailInsteadOfContent ??
|
|
215
|
+
_jsx(TMLayoutItem, { children: selectedItems.length == 1 || formMode == FormModes.Create || formMode == FormModes.Duplicate ?
|
|
216
|
+
_jsx(TMToolbarCard, { onBack: deviceType === DeviceType.MOBILE ? () => setShowList(true) : undefined, title: calcSaveFormTitle(objName, formMode, selectedItems.length == 0 ? -1 : selectedItems[0].id, detailTitlePathKeys), children: getDetailFormWithProps() })
|
|
217
|
+
:
|
|
218
|
+
_jsx(MultipleSelectionManager, {}) })] }) }));
|
|
219
|
+
};
|
|
220
|
+
export default TMPage;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { QueryDescriptor, ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { ITMApplyFormProps, FormModes } from '../../ts';
|
|
4
|
+
export declare const StyledRowItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
5
|
+
export declare const StyledItemWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
6
|
+
$borderRadius?: string;
|
|
7
|
+
}>> & string;
|
|
8
|
+
export declare const StyledAccordionItemContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
9
|
+
export declare const StyledAccordionItemContent: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
10
|
+
$disabled?: boolean;
|
|
11
|
+
}>> & string;
|
|
12
|
+
export declare const colorValue = "rgba(224,224,224,.5)";
|
|
13
|
+
export declare const colorBrackets = "rgba(209,52,56,.3)";
|
|
14
|
+
export declare const colorOperator = "rgba(16,124,16,.3)";
|
|
15
|
+
export declare const color1 = "#F5DD9C";
|
|
16
|
+
export declare const color2 = "rgba(15,108,189,.3)";
|
|
17
|
+
export declare const color3 = "rgb(199, 236, 172)";
|
|
18
|
+
export declare const color4 = "rgb(223, 204, 251)";
|
|
19
|
+
export declare const color5 = "rgb(249, 181, 114)";
|
|
20
|
+
export declare const color6 = "rgb(170, 215, 217)";
|
|
21
|
+
export declare const color7 = "rgb(243, 208, 215)";
|
|
22
|
+
export declare const color8 = "rgb(236, 202, 156)";
|
|
23
|
+
export declare const color9 = "rgb(137, 185, 173)";
|
|
24
|
+
export declare const colorX = "rgb(246, 245, 242)";
|
|
25
|
+
export declare enum Descriptors {
|
|
26
|
+
Query = 3
|
|
27
|
+
}
|
|
28
|
+
export declare function useQueryApplyForm<T>(d: Descriptors, formMode: FormModes, inputData: T | undefined, onApplied?: (newDescriptor: T) => void, parameters?: any[]): {
|
|
29
|
+
formData: T;
|
|
30
|
+
setFormData: React.Dispatch<React.SetStateAction<T>>;
|
|
31
|
+
formDataOrig: T;
|
|
32
|
+
validationItems: ValidationItem[];
|
|
33
|
+
setValidationItems: React.Dispatch<React.SetStateAction<ValidationItem[]>>;
|
|
34
|
+
exception: any;
|
|
35
|
+
applyData: () => void;
|
|
36
|
+
};
|
|
37
|
+
interface ITMQueryEditor extends ITMApplyFormProps<QueryDescriptor> {
|
|
38
|
+
isExpertMode?: boolean;
|
|
39
|
+
validateSelect?: boolean;
|
|
40
|
+
validateOrderBy?: boolean;
|
|
41
|
+
showDistinct?: boolean;
|
|
42
|
+
raiseWarningForOnlyMetadataDcmtTypes?: boolean;
|
|
43
|
+
borderRadius?: string;
|
|
44
|
+
searchText?: string;
|
|
45
|
+
onFromTIDChanged?: (tid: number) => void;
|
|
46
|
+
onQDChanged?: (qd: QueryDescriptor) => void;
|
|
47
|
+
ShowOnlySAP?: boolean;
|
|
48
|
+
}
|
|
49
|
+
declare const TMQueryEditor: React.FunctionComponent<ITMQueryEditor>;
|
|
50
|
+
export default TMQueryEditor;
|
|
51
|
+
export interface ITMQdDropDownMenuProps {
|
|
52
|
+
content: JSX.Element;
|
|
53
|
+
color?: string;
|
|
54
|
+
backgroundColor?: string;
|
|
55
|
+
disabled?: boolean;
|
|
56
|
+
borderRadius?: string;
|
|
57
|
+
items?: any[];
|
|
58
|
+
}
|