@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,54 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { TMColors } from '../../utils/theme';
|
|
5
|
+
const StyledListItem = styled.li `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: row;
|
|
8
|
+
align-items: center;
|
|
9
|
+
justify-content: flex-start;
|
|
10
|
+
gap: 10px;
|
|
11
|
+
position: relative;
|
|
12
|
+
color: ${TMColors.text_normal};
|
|
13
|
+
padding: 4px 5px;
|
|
14
|
+
height: 40px;
|
|
15
|
+
width: 100%;
|
|
16
|
+
font-size: 1rem;
|
|
17
|
+
letter-spacing: 0px;
|
|
18
|
+
background-color: ${({ $isSelected }) => ($isSelected ? '#d0e5fb' : 'transparent')};
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
background-color: ${TMColors.border_normal};
|
|
22
|
+
cursor: pointer;
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
const StyledListContainer = styled.div `
|
|
26
|
+
height: 100%;
|
|
27
|
+
width: 100%;
|
|
28
|
+
background-color: ${TMColors.default_background};
|
|
29
|
+
padding: 3px;
|
|
30
|
+
border-radius: 2px;
|
|
31
|
+
box-shadow: 1px 1px 7px rgba(0,0,0,0.15);
|
|
32
|
+
`;
|
|
33
|
+
const StyledIconWrapper = styled.span `
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
width: 24px;
|
|
38
|
+
height: 24px;
|
|
39
|
+
min-width: 24px;
|
|
40
|
+
min-height: 24px;
|
|
41
|
+
`;
|
|
42
|
+
;
|
|
43
|
+
const TMList = ({ items }) => {
|
|
44
|
+
const [selectedIndex, setSelectedIndex] = useState(0);
|
|
45
|
+
const handleItemClick = (index, onClick) => {
|
|
46
|
+
setSelectedIndex(index); // Update the selected index
|
|
47
|
+
if (onClick)
|
|
48
|
+
onClick(); // Call the item's onClick handler if provided
|
|
49
|
+
};
|
|
50
|
+
return (_jsx(StyledListContainer, { children: items?.map((item, index) => {
|
|
51
|
+
return (_jsxs(StyledListItem, { "$isSelected": selectedIndex === index, onClick: () => handleItemClick(index, item.onClick), children: [_jsx(StyledIconWrapper, { children: item.icon }), _jsx("span", { children: item.text })] }, index));
|
|
52
|
+
}) }));
|
|
53
|
+
};
|
|
54
|
+
export default TMList;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ITMListViewHeader {
|
|
3
|
+
headerIcon?: React.ReactNode;
|
|
4
|
+
headerTitle?: string;
|
|
5
|
+
firstCounter?: React.ReactNode;
|
|
6
|
+
secondCounter?: React.ReactNode;
|
|
7
|
+
titleColor?: string;
|
|
8
|
+
}
|
|
9
|
+
interface ListProps<T> {
|
|
10
|
+
dataSource?: T[];
|
|
11
|
+
selectedItem?: T;
|
|
12
|
+
autoScrollToSelectedItem?: boolean;
|
|
13
|
+
exprKey?: string;
|
|
14
|
+
searchKeys?: string[];
|
|
15
|
+
customColor?: string;
|
|
16
|
+
searchable?: boolean;
|
|
17
|
+
id?: string;
|
|
18
|
+
scroll?: {
|
|
19
|
+
x: number;
|
|
20
|
+
y: number;
|
|
21
|
+
};
|
|
22
|
+
orderBy?: string;
|
|
23
|
+
grouping?: string;
|
|
24
|
+
showId?: boolean;
|
|
25
|
+
showSearch?: boolean;
|
|
26
|
+
header?: React.ReactNode;
|
|
27
|
+
headerBackGroundColor?: string;
|
|
28
|
+
customGroupingHeaders?: Array<React.ReactNode>;
|
|
29
|
+
setShowId?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
30
|
+
setShowSearch?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
31
|
+
onScrollChange?: (e: {
|
|
32
|
+
x: number;
|
|
33
|
+
y: number;
|
|
34
|
+
}) => void;
|
|
35
|
+
onSelectionChanged?: (item: T) => void;
|
|
36
|
+
onItemClick?: (item: T) => void;
|
|
37
|
+
onItemDblClick?: (item: T) => void;
|
|
38
|
+
itemTemplate?: (item: T) => JSX.Element;
|
|
39
|
+
}
|
|
40
|
+
declare const TMListView: <T>({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping, orderBy, id, onScrollChange, scroll, searchKeys, searchable, itemTemplate, customColor, dataSource, exprKey, onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem }: ListProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
41
|
+
export default TMListView;
|
|
42
|
+
export declare const CustomListViewHeader: React.FC<ITMListViewHeader>;
|
|
@@ -0,0 +1,387 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo, useRef, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { ObjectClasses } from '@topconsultnpm/sdk-ts';
|
|
5
|
+
import TMContextMenu, { useTMContextMenu } from './TMContextMenu';
|
|
6
|
+
import { IconApply, IconCloseCircle, IconColumns, IconDown, IconHide, IconShow, IconUp, IconVisible } from '../../helper/TMIcons';
|
|
7
|
+
import { TMSearchBar } from '../sidebar/TMHeader';
|
|
8
|
+
import TMTooltip from './TMTooltip';
|
|
9
|
+
import { getContrastColor, SDKUI_Localizator } from '../../helper';
|
|
10
|
+
import { TMColors } from '../../utils/theme';
|
|
11
|
+
const StyledListItem = styled.div ` width: 100%; height: max-content; border-bottom: 1px solid #e5e5e5; background-color: ${props => props.$isSelected ? props.$color ? `${props.$color}99` : '#00000030' : 'transparent'} ; color: ${props => props.$isSelected ? props.$textColor : '#000000'} ; &:hover{ background-color: ${props => props.$color ? props.$isSelected ? `${props.$color}99` : `${props.$color}40` : props.$isSelected ? '#00000030' : '#00000010'};} `;
|
|
12
|
+
const StyledListViewContainer = styled.div ` position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; width: 100%; height: 100%; `;
|
|
13
|
+
const StyledSearchContainer = styled.div ` width: 100%; height: max-content; padding: 5px; border-bottom: 1px solid #e5e5e5; display: flex; align-items: center; gap: 10px; `;
|
|
14
|
+
const StyledListViewFooter = styled.div ` background-color: ${props => props.$bgColor}; width: 100%; height: 25px; padding: 5px 15px; border-top: 1px solid #e5e5e5; display: flex; align-items: center; gap: 10px; `;
|
|
15
|
+
const TMListView = ({ customGroupingHeaders, headerBackGroundColor, header, showId, setShowId, showSearch, setShowSearch, grouping = '', orderBy, id, onScrollChange, scroll, searchKeys = [], searchable = false, itemTemplate, customColor, dataSource = [], exprKey = 'id', onSelectionChanged, onItemClick, onItemDblClick, selectedItem, autoScrollToSelectedItem = false }) => {
|
|
16
|
+
const listRef = useRef(null);
|
|
17
|
+
const contRef = useRef(null);
|
|
18
|
+
const orderRef = useRef(null);
|
|
19
|
+
const [localShowId, setLocalShowId] = useState(false);
|
|
20
|
+
const [localShowSearch, setLocalShowSearch] = useState(searchable);
|
|
21
|
+
const [searchValue, setSearchValue] = useState('');
|
|
22
|
+
const [currentDataSource, setCurrentDataSource] = useState(dataSource);
|
|
23
|
+
const [keys, setKeys] = useState(searchKeys);
|
|
24
|
+
const [orderedBy, setOrderedBy] = useState(orderBy ?? '');
|
|
25
|
+
const [orderDir, setOrderDir] = useState(true);
|
|
26
|
+
const [isFocused, setIsFocused] = useState(false);
|
|
27
|
+
const [showOrderMenu, setShowOrderMenu] = useState(false);
|
|
28
|
+
const [showOrderOptions, setShowOrderOptions] = useState(false);
|
|
29
|
+
useEffect(() => { setCurrentDataSource(dataSource); }, [dataSource]);
|
|
30
|
+
const openContextMenu = (e) => { setIsFocused(true); };
|
|
31
|
+
let [coords, show] = useTMContextMenu(contRef);
|
|
32
|
+
useEffect(() => { if (orderBy) {
|
|
33
|
+
setOrderedBy(orderBy);
|
|
34
|
+
} }, [orderBy]);
|
|
35
|
+
// is list item selected
|
|
36
|
+
const isSelected = (item) => {
|
|
37
|
+
if (selectedItem) {
|
|
38
|
+
if (item[exprKey] === selectedItem[exprKey]) {
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
else
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
else
|
|
45
|
+
return false;
|
|
46
|
+
};
|
|
47
|
+
// order by key
|
|
48
|
+
const orderByKey = (array) => {
|
|
49
|
+
let arr = [...array];
|
|
50
|
+
if (arr.length > 0 && arr[0][orderedBy]) {
|
|
51
|
+
if (typeof arr[0][orderedBy] === 'string') {
|
|
52
|
+
arr.sort((a, b) => { if (a[orderedBy].toLowerCase() < b[orderedBy].toLowerCase()) {
|
|
53
|
+
return -1;
|
|
54
|
+
} if (a[orderedBy].toLowerCase() > b[orderedBy].toLowerCase()) {
|
|
55
|
+
return 1;
|
|
56
|
+
} return 0; });
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
arr.sort((a, b) => { if (a[orderedBy] < b[orderedBy]) {
|
|
60
|
+
return -1;
|
|
61
|
+
} if (a[orderedBy] > b[orderedBy]) {
|
|
62
|
+
return 1;
|
|
63
|
+
} return 0; });
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return orderDir ? arr : arr.reverse();
|
|
67
|
+
};
|
|
68
|
+
// search keys
|
|
69
|
+
useEffect(() => {
|
|
70
|
+
if (currentDataSource && currentDataSource.length > 0) {
|
|
71
|
+
if (searchKeys.length === 0) {
|
|
72
|
+
setKeys(Object.keys(currentDataSource[0]));
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
setKeys(searchKeys);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, []);
|
|
79
|
+
// search logic
|
|
80
|
+
useEffect(() => {
|
|
81
|
+
let arr = [];
|
|
82
|
+
if (searchValue.length > 0) {
|
|
83
|
+
for (let data of dataSource) {
|
|
84
|
+
for (let key of keys) {
|
|
85
|
+
if (typeof data[key] === 'string' || typeof data[key] === 'number') {
|
|
86
|
+
if (data[key].toString().toLowerCase().includes(searchValue.toLowerCase())) {
|
|
87
|
+
if (!arr.includes(data)) {
|
|
88
|
+
arr.push(data);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
if (orderedBy.length === 0) {
|
|
95
|
+
setCurrentDataSource(arr);
|
|
96
|
+
}
|
|
97
|
+
else {
|
|
98
|
+
setCurrentDataSource(orderByKey(arr));
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
if (orderedBy.length === 0) {
|
|
103
|
+
setCurrentDataSource(dataSource);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
setCurrentDataSource(orderByKey(dataSource));
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}, [searchValue, keys, orderedBy, dataSource]);
|
|
110
|
+
useEffect(() => { if (!localShowSearch) {
|
|
111
|
+
setSearchValue('');
|
|
112
|
+
} }, [localShowSearch]);
|
|
113
|
+
// order logic
|
|
114
|
+
useEffect(() => { if (orderedBy.length > 0) {
|
|
115
|
+
setCurrentDataSource(orderByKey(currentDataSource));
|
|
116
|
+
} }, [orderedBy, orderDir]);
|
|
117
|
+
// change items by arrow keys logic
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
let selectedItemIndex = currentDataSource.indexOf(selectedItem);
|
|
120
|
+
const canNext = selectedItem !== currentDataSource[currentDataSource.length - 1];
|
|
121
|
+
const canPrev = selectedItem !== currentDataSource[0];
|
|
122
|
+
let cont = listRef.current;
|
|
123
|
+
let next = currentDataSource.indexOf(selectedItem) + 1;
|
|
124
|
+
let before = currentDataSource.indexOf(selectedItem) - 1;
|
|
125
|
+
const changeIndex = (e) => {
|
|
126
|
+
if (isFocused) {
|
|
127
|
+
if (e.key === 'ArrowDown') {
|
|
128
|
+
e.preventDefault();
|
|
129
|
+
if (canNext) {
|
|
130
|
+
onSelectionChanged && onSelectionChanged(currentDataSource[selectedItemIndex + 1]);
|
|
131
|
+
if (selectedItem && cont) {
|
|
132
|
+
let diff = cont.scrollTop;
|
|
133
|
+
let xNext = cont.children.item(next);
|
|
134
|
+
if (xNext) {
|
|
135
|
+
if (xNext.getBoundingClientRect().bottom > (cont.getBoundingClientRect().height + cont.getBoundingClientRect().top)) {
|
|
136
|
+
diff += xNext.getBoundingClientRect().bottom - (cont.getBoundingClientRect().height + cont.getBoundingClientRect().top);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
cont.scrollTo(0, diff);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
if (e.key === 'ArrowUp') {
|
|
144
|
+
e.preventDefault();
|
|
145
|
+
if (canPrev) {
|
|
146
|
+
onSelectionChanged && onSelectionChanged(currentDataSource[selectedItemIndex - 1]);
|
|
147
|
+
if (selectedItem && cont) {
|
|
148
|
+
let diff = cont.scrollTop;
|
|
149
|
+
let xBefore = cont.children.item(before);
|
|
150
|
+
if (xBefore) {
|
|
151
|
+
if (xBefore.getBoundingClientRect().top < (cont.getBoundingClientRect().top)) {
|
|
152
|
+
diff -= cont.getBoundingClientRect().top - xBefore.getBoundingClientRect().top;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
cont.scrollTo(0, diff);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
if (e.key === 'ArrowLeft') {
|
|
160
|
+
e.preventDefault();
|
|
161
|
+
if (cont) {
|
|
162
|
+
cont.scrollBy(-20, 0);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
if (e.key === 'ArrowRight') {
|
|
166
|
+
e.preventDefault();
|
|
167
|
+
if (cont) {
|
|
168
|
+
cont.scrollBy(20, 0);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
173
|
+
if (selectedItem) {
|
|
174
|
+
document.addEventListener('keydown', changeIndex);
|
|
175
|
+
}
|
|
176
|
+
return () => { document?.removeEventListener('keydown', changeIndex); };
|
|
177
|
+
}, [selectedItem, isFocused]);
|
|
178
|
+
// deselect an onBlur listview logic
|
|
179
|
+
useEffect(() => {
|
|
180
|
+
const list = listRef.current;
|
|
181
|
+
const deSelectAll = (e) => { if (list && !list.contains(e.target)) {
|
|
182
|
+
setIsFocused(false);
|
|
183
|
+
} };
|
|
184
|
+
window.addEventListener('click', deSelectAll);
|
|
185
|
+
window.addEventListener('contextmenu', deSelectAll);
|
|
186
|
+
return () => { window.removeEventListener('click', deSelectAll); window.removeEventListener('contextmenu', deSelectAll); };
|
|
187
|
+
}, []);
|
|
188
|
+
// scroll logic
|
|
189
|
+
useEffect(() => {
|
|
190
|
+
let cont = listRef.current;
|
|
191
|
+
if (cont && scroll) {
|
|
192
|
+
cont.addEventListener('scroll', () => onScrollChange && onScrollChange({ x: cont?.scrollLeft, y: cont?.scrollTop }));
|
|
193
|
+
}
|
|
194
|
+
return () => cont?.removeEventListener('scroll', () => onScrollChange && onScrollChange({ x: cont?.scrollLeft, y: cont?.scrollTop }));
|
|
195
|
+
}, [listRef.current]);
|
|
196
|
+
useEffect(() => { let cont = listRef.current; if (cont && scroll) {
|
|
197
|
+
cont.scrollTo(scroll.x, scroll.y);
|
|
198
|
+
} ; }, [scroll, listRef.current]);
|
|
199
|
+
// This effect runs when either selectedItem or dataSource changes
|
|
200
|
+
useEffect(() => {
|
|
201
|
+
// Check if the selected item, list reference, dataSource, and autoScrollToSelectedItem are properly set
|
|
202
|
+
if (selectedItem && listRef.current && dataSource.length > 0 && autoScrollToSelectedItem) {
|
|
203
|
+
// Extract the unique key of the selected item using exprKey
|
|
204
|
+
const selectedItemKey = selectedItem[exprKey];
|
|
205
|
+
// Find the index of the selected item in the dataSource using the key
|
|
206
|
+
const selectedItemIndex = dataSource.findIndex(item => item[exprKey] === selectedItemKey);
|
|
207
|
+
// If the item is found in the dataSource (index is not -1)
|
|
208
|
+
if (selectedItemIndex !== -1 && listRef.current) {
|
|
209
|
+
// Access the list container (the parent element holding the list)
|
|
210
|
+
const listContainer = listRef.current;
|
|
211
|
+
// Get all child elements of the list container (individual items)
|
|
212
|
+
const listItems = listContainer.children;
|
|
213
|
+
// Get the actual DOM element of the selected item
|
|
214
|
+
const selectedItemElement = listItems[selectedItemIndex];
|
|
215
|
+
// If the selected item element exists in the DOM
|
|
216
|
+
if (selectedItemElement) {
|
|
217
|
+
// Use setTimeout to delay the scroll action for 500ms to ensure DOM elements are fully rendered
|
|
218
|
+
setTimeout(() => {
|
|
219
|
+
// Calculate the offsetTop of the selected item (its position relative to the container)
|
|
220
|
+
const offset = selectedItemElement.offsetTop;
|
|
221
|
+
// Scroll the list container smoothly to position the selected item in the center of the container
|
|
222
|
+
listContainer.scrollTo({
|
|
223
|
+
top: offset - listContainer.clientHeight / 2, // Subtract half the container height to center the item
|
|
224
|
+
behavior: 'smooth', // Smooth scrolling
|
|
225
|
+
});
|
|
226
|
+
}, 500); // Delay to allow for DOM rendering before scrolling
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}, [selectedItem, dataSource]);
|
|
231
|
+
//order options
|
|
232
|
+
const orderMenuItems = () => {
|
|
233
|
+
let arr = [];
|
|
234
|
+
if (searchKeys.length > 0) {
|
|
235
|
+
for (let key of searchKeys) {
|
|
236
|
+
arr.push({
|
|
237
|
+
disabled: !localShowId && key === exprKey,
|
|
238
|
+
isSelected: key === orderedBy,
|
|
239
|
+
onItemClick: () => { setOrderedBy(key); setShowOrderOptions(false); },
|
|
240
|
+
icon: _jsx(IconColumns, { fontSize: 16 }),
|
|
241
|
+
text: _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [key, " ", key === orderedBy && _jsx(IconApply, { fontSize: 14, color: 'gray' })] })
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
return arr;
|
|
246
|
+
};
|
|
247
|
+
// grouping loginc
|
|
248
|
+
const groupKeys = Object.keys(groupByKey(currentDataSource, grouping));
|
|
249
|
+
const [openList, setOpenList] = useState([true, false, false]);
|
|
250
|
+
function groupByKey(array, key) {
|
|
251
|
+
return array
|
|
252
|
+
.reduce((hash, obj) => {
|
|
253
|
+
if (obj[key] === undefined)
|
|
254
|
+
return hash;
|
|
255
|
+
return Object.assign(hash, { [obj[key]]: (hash[obj[key]] || []).concat(obj) });
|
|
256
|
+
}, {});
|
|
257
|
+
}
|
|
258
|
+
// map memo
|
|
259
|
+
const memoList = useMemo(() => currentDataSource.map((data, index) => {
|
|
260
|
+
return (_jsx(StyledListItem, { "$isSelected": isSelected(data), "$color": getContrastColor(customColor).bgColor, "$textColor": getContrastColor(customColor).textColor, onClick: () => { onSelectionChanged && onSelectionChanged(data); onItemClick && onItemClick(data); }, onDoubleClick: () => onItemDblClick && onItemDblClick(data), children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', justifyContent: 'flex-start', gap: 5, padding: '5px 5px' }, children: [localShowId && _jsxs("p", { style: { color: isSelected(data) ? 'red' : 'black', backgroundColor: `${customColor}20`, width: '100%', padding: '2px 5px', borderRadius: '5px', height: 'max-content', textAlign: 'left' }, children: [" ", exprKey + ' : ' + data[exprKey], " "] }), _jsxs("div", { style: { width: '100%', height: '100%' }, children: [" ", itemTemplate ? itemTemplate(data) : _jsx("div", {})] })] }) }, index));
|
|
261
|
+
}), [currentDataSource, selectedItem, localShowId, customColor]);
|
|
262
|
+
const groupedMemoList = useMemo(() => groupKeys.map((key, index) => {
|
|
263
|
+
const groupingText = () => {
|
|
264
|
+
if (grouping === 'objectClass') {
|
|
265
|
+
if (key === ObjectClasses.Dossier) {
|
|
266
|
+
return 'Pratiche';
|
|
267
|
+
}
|
|
268
|
+
else if (key === ObjectClasses.WorkingGroup) {
|
|
269
|
+
return 'Gruppi di lavoro';
|
|
270
|
+
}
|
|
271
|
+
else if (key === ObjectClasses.SavedQuery) {
|
|
272
|
+
return 'Ricerche rapide';
|
|
273
|
+
}
|
|
274
|
+
else
|
|
275
|
+
return '';
|
|
276
|
+
}
|
|
277
|
+
else {
|
|
278
|
+
return key;
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
return (_jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', width: '100%', height: 'max-content' }, children: [_jsx("div", { style: { borderBottom: `1px solid ${customColor}20`, display: 'flex', alignItems: 'center', height: '40px', justifyContent: 'space-between', padding: '5px', width: '100%', backgroundColor: headerBackGroundColor ?? `${customColor}30` }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'space-between' }, children: [customGroupingHeaders && customGroupingHeaders.length > 0 ?
|
|
282
|
+
customGroupingHeaders[index] ?
|
|
283
|
+
_jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center' }, children: customGroupingHeaders[index] })
|
|
284
|
+
:
|
|
285
|
+
_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [_jsx("p", { children: groupingText() }), _jsx("div", { style: { width: '16px', height: '16px', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: getContrastColor(customColor).textColor, color: getContrastColor(customColor).bgColor, boxShadow: '1px 1px 2px #00000020', borderRadius: '30px', fontWeight: 'bold' }, children: groupByKey(currentDataSource, grouping)[key].length })] })
|
|
286
|
+
:
|
|
287
|
+
_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', gap: 10 }, children: [_jsx("p", { children: groupingText() }), _jsx("div", { style: { width: '16px', height: '16px', display: 'flex', alignItems: 'center', justifyContent: 'center', backgroundColor: getContrastColor(customColor).textColor, color: getContrastColor(customColor).bgColor, boxShadow: '1px 1px 2px #00000020', borderRadius: '30px', fontWeight: 'bold' }, children: groupByKey(currentDataSource, grouping)[key].length })] }), _jsxs("div", { style: { cursor: 'pointer' }, onClick: () => { let arr = [...openList]; arr[index] = !arr[index]; setOpenList(arr); }, children: [" ", openList[index] ? _jsx(IconUp, { fontSize: 12 }) : _jsx(IconDown, { fontSize: 12 }), " "] })] }) }), openList[index] && _jsx("div", { style: { width: '100%', height: '100%' }, children: groupByKey(currentDataSource, grouping)[key].map((data, index2) => (_jsx(StyledListItem, { "$isSelected": data === selectedItem, "$color": getContrastColor(customColor).bgColor, "$textColor": getContrastColor(customColor).textColor, onClick: () => { onSelectionChanged && onSelectionChanged(data); onItemClick && onItemClick(data); }, onDoubleClick: () => { onItemDblClick && onItemDblClick(data); }, children: _jsxs("div", { style: { width: '100%', height: 'max-content', display: 'flex', flexDirection: 'column', padding: '5px 5px' }, children: [localShowId && _jsxs("p", { style: { color: data === selectedItem ? 'red' : 'black', backgroundColor: `${customColor}20`, width: '100%', padding: '2px 5px', borderRadius: '5px', height: 'max-content', textAlign: 'left' }, children: [" ", 'ID: ' + data.id, " "] }), _jsxs("div", { style: { width: '100%', height: '100%' }, children: [" ", itemTemplate ? itemTemplate(data) : _jsx("div", {})] })] }) }, index2))) })] }, index));
|
|
288
|
+
}), [currentDataSource, selectedItem, localShowId, customColor, openList, grouping, customGroupingHeaders]);
|
|
289
|
+
// List height
|
|
290
|
+
const listHeight = () => {
|
|
291
|
+
if (localShowSearch) {
|
|
292
|
+
if (showOrderMenu || searchValue.length > 0) {
|
|
293
|
+
return 'calc(100% - 55px)';
|
|
294
|
+
}
|
|
295
|
+
else {
|
|
296
|
+
return 'calc(100% - 30px)';
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
else if (showOrderMenu || searchValue.length > 0) {
|
|
300
|
+
return 'calc(100% - 25px)';
|
|
301
|
+
}
|
|
302
|
+
else
|
|
303
|
+
return '100%';
|
|
304
|
+
};
|
|
305
|
+
useEffect(() => {
|
|
306
|
+
if (showId === undefined || showId === localShowId)
|
|
307
|
+
return;
|
|
308
|
+
setLocalShowId(showId);
|
|
309
|
+
}, [showId]);
|
|
310
|
+
useEffect(() => {
|
|
311
|
+
if (showSearch === undefined || showSearch === localShowSearch)
|
|
312
|
+
return;
|
|
313
|
+
setLocalShowSearch(showSearch);
|
|
314
|
+
}, [showSearch]);
|
|
315
|
+
useEffect(() => {
|
|
316
|
+
if (showId === undefined || setShowId === undefined || showId === localShowId)
|
|
317
|
+
return;
|
|
318
|
+
setShowId(localShowId);
|
|
319
|
+
}, [localShowId]);
|
|
320
|
+
useEffect(() => {
|
|
321
|
+
if (showSearch === undefined || setShowSearch === undefined || showSearch === localShowSearch)
|
|
322
|
+
return;
|
|
323
|
+
setShowSearch(localShowSearch);
|
|
324
|
+
}, [localShowSearch]);
|
|
325
|
+
const generateContextMenuItems = (localShowSearch, localShowId, showOrderMenu, grouping, searchKeys) => {
|
|
326
|
+
const items = [];
|
|
327
|
+
// Add search menu item only if showSearch prop is undefined
|
|
328
|
+
if (showSearch === undefined) {
|
|
329
|
+
items.push({
|
|
330
|
+
icon: localShowSearch ? _jsx(IconHide, { fontSize: 16 }) : _jsx(IconShow, { fontSize: 16 }),
|
|
331
|
+
onItemClick: () => setLocalShowSearch(!localShowSearch),
|
|
332
|
+
text: localShowSearch ? SDKUI_Localizator.HideSearch : SDKUI_Localizator.ShowSearch
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
// Add ID menu item only if showId prop is undefined
|
|
336
|
+
if (showId === undefined) {
|
|
337
|
+
items.push({
|
|
338
|
+
icon: localShowId ? _jsx(IconHide, { fontSize: 16 }) : _jsx(IconShow, { fontSize: 16 }),
|
|
339
|
+
onItemClick: () => setLocalShowId(!localShowId),
|
|
340
|
+
text: localShowId ? SDKUI_Localizator.ID_Hide : SDKUI_Localizator.ID_Show,
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
// Add order menu item only if grouping length is zero
|
|
344
|
+
if (grouping.length === 0) {
|
|
345
|
+
items.push({
|
|
346
|
+
icon: showOrderMenu ? _jsx(IconHide, { fontSize: 16 }) : _jsx(IconShow, { fontSize: 16 }),
|
|
347
|
+
disabled: searchKeys.length === 0,
|
|
348
|
+
onItemClick: () => setShowOrderMenu(!showOrderMenu),
|
|
349
|
+
text: showOrderMenu ? 'Nascondi menu di ordinamento' : 'Mostra menu di ordinamento'
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
return items;
|
|
353
|
+
};
|
|
354
|
+
const contextMenuItems = generateContextMenuItems(localShowSearch, localShowId, showOrderMenu, grouping, searchKeys);
|
|
355
|
+
return (_jsxs(StyledListViewContainer, { ref: contRef, onContextMenu: openContextMenu, children: [(show && contextMenuItems.length > 0) && _jsx(TMContextMenu, { coords: coords, items: contextMenuItems }), showOrderOptions &&
|
|
356
|
+
_jsx(TMContextMenu, { items: orderMenuItems(), coords: { x: orderRef.current?.getBoundingClientRect().left, y: orderRef.current?.getBoundingClientRect().top - (searchKeys.length * 30) - 10 } }), header && _jsx("div", { style: { width: '100%', height: '40px', backgroundColor: headerBackGroundColor ?? `${customColor}30`, marginBottom: '3px', display: 'flex', alignItems: 'center' }, children: header }), localShowSearch &&
|
|
357
|
+
_jsx(StyledSearchContainer, { children: _jsxs(StyledSearchContainer, { children: [_jsx(TMSearchBar, { marginLeft: '0px', maxWidth: '300px', searchValue: searchValue, onSearchValueChanged: (e) => setSearchValue(e) }), _jsx(TMTooltip, { content: 'Nascondi ricerca', children: _jsx(IconCloseCircle, { style: { cursor: 'pointer' }, color: 'red', fontSize: 14, onClick: () => { setSearchValue(''); setLocalShowSearch(false); } }) })] }) }), _jsx("div", { ref: listRef, onClick: () => setIsFocused(true), style: { width: '100%', overflow: 'auto', height: listHeight() }, children: currentDataSource.length > 0 ?
|
|
358
|
+
grouping.length === 0 ? memoList : groupedMemoList :
|
|
359
|
+
searchValue.length > 0 ? _jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: "No data found" }) :
|
|
360
|
+
_jsx("div", { style: { width: '100%', height: '100%', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: "No data" }) }), (searchValue.length > 0 || showOrderMenu) &&
|
|
361
|
+
_jsxs(StyledListViewFooter, { "$bgColor": `${customColor}20`, children: [showOrderMenu &&
|
|
362
|
+
_jsxs("div", { style: { width: 'max-content', display: 'flex', alignItems: 'center', gap: 5 }, children: [_jsx("div", { style: { width: 'max-content' }, children: "Ordinato per" }), _jsx("div", { ref: orderRef, onClick: () => { setShowOrderOptions(!showOrderOptions); }, style: { cursor: 'pointer', fontWeight: 'bold' }, children: orderedBy.length > 0 ? orderedBy : 'Nulla' }), orderedBy.length > 0 && _jsxs(TMTooltip, { content: orderDir ? 'ASC' : 'DESC', children: [" ", orderDir ? _jsx(IconUp, { style: { cursor: 'pointer' }, onClick: () => setOrderDir(false), fontSize: 14 }) : _jsx(IconDown, { style: { cursor: 'pointer' }, onClick: () => setOrderDir(true), fontSize: 14 }), " "] }), _jsx(TMTooltip, { content: 'Annulla ordinamento', children: _jsx(IconCloseCircle, { style: { cursor: 'pointer' }, color: 'red', fontSize: 14, onClick: () => { setOrderedBy(''); setShowOrderMenu(false); setShowOrderOptions(false); } }) })] }), searchValue.length > 0 && _jsxs("div", { style: { display: 'flex', alignItems: 'center', width: '100%', justifyContent: 'flex-end', gap: 5 }, children: [_jsx(TMTooltip, { content: 'Visibili', children: _jsx(IconVisible, { fontSize: 14 }) }), currentDataSource.length] })] })] }));
|
|
363
|
+
};
|
|
364
|
+
export default TMListView;
|
|
365
|
+
export const CustomListViewHeader = (props) => {
|
|
366
|
+
return (_jsxs("div", { style: {
|
|
367
|
+
display: 'flex',
|
|
368
|
+
alignItems: 'center',
|
|
369
|
+
justifyContent: 'space-between',
|
|
370
|
+
padding: '0 5px',
|
|
371
|
+
gap: 5,
|
|
372
|
+
width: '100%'
|
|
373
|
+
}, children: [_jsxs("div", { style: {
|
|
374
|
+
display: 'flex',
|
|
375
|
+
alignItems: 'center',
|
|
376
|
+
gap: '5px',
|
|
377
|
+
whiteSpace: 'nowrap',
|
|
378
|
+
overflow: 'hidden',
|
|
379
|
+
textOverflow: 'ellipsis'
|
|
380
|
+
}, children: [props.headerIcon, _jsx("p", { title: props.headerTitle, style: {
|
|
381
|
+
fontWeight: 'bold',
|
|
382
|
+
color: props.titleColor ? props.titleColor : TMColors.text_normal,
|
|
383
|
+
whiteSpace: 'nowrap',
|
|
384
|
+
overflow: 'hidden',
|
|
385
|
+
textOverflow: 'ellipsis'
|
|
386
|
+
}, children: props.headerTitle })] }), _jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: '5px' }, children: [props.firstCounter, props.secondCounter] })] }));
|
|
387
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ITMModal {
|
|
3
|
+
children?: React.ReactNode;
|
|
4
|
+
width?: string;
|
|
5
|
+
height?: string;
|
|
6
|
+
toolbar?: any;
|
|
7
|
+
title?: string;
|
|
8
|
+
fontSize?: string;
|
|
9
|
+
isModal?: boolean;
|
|
10
|
+
resizable?: boolean;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
hidePopup?: boolean;
|
|
13
|
+
askClosingConfirm?: boolean;
|
|
14
|
+
}
|
|
15
|
+
declare const TMModal: React.FC<ITMModal>;
|
|
16
|
+
export default TMModal;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import { Popup } from 'devextreme-react';
|
|
4
|
+
import styled from 'styled-components';
|
|
5
|
+
import TMLayoutContainer, { TMCard, TMLayoutItem } from './TMLayout';
|
|
6
|
+
import { FontSize, TMColors } from '../../utils/theme';
|
|
7
|
+
const StyledModal = styled.div `
|
|
8
|
+
width: ${props => props.$width};
|
|
9
|
+
height: ${props => props.$height};
|
|
10
|
+
position: ${props => (props.$isModal ? 'relative' : 'fixed')};
|
|
11
|
+
background-color: white;
|
|
12
|
+
box-shadow: 2px 2px 10px #939393;
|
|
13
|
+
border-radius: 5px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
justify-content: flex-start;
|
|
18
|
+
font-size: ${props => props.$fontSize};
|
|
19
|
+
overflow: hidden;
|
|
20
|
+
min-height: 33px;
|
|
21
|
+
min-width: 250px;
|
|
22
|
+
max-width: 95%;
|
|
23
|
+
max-height: 95%;
|
|
24
|
+
z-index: 2000000000;
|
|
25
|
+
`;
|
|
26
|
+
const StyledModalToolbar = styled.div `
|
|
27
|
+
width: 100%;
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
justify-content: flex-start;
|
|
31
|
+
padding: 5px;
|
|
32
|
+
flex-direction: row;
|
|
33
|
+
background-color: ${TMColors.toolbar_background};
|
|
34
|
+
border-bottom: 1px solid gray;
|
|
35
|
+
`;
|
|
36
|
+
const StyledModalContext = styled.div `
|
|
37
|
+
width: 100%;
|
|
38
|
+
overflow: auto;
|
|
39
|
+
height: 100%;
|
|
40
|
+
`;
|
|
41
|
+
const TMModal = ({ resizable = true, isModal = true, title = '', toolbar, onClose, children, width = '100%', height = '100%', fontSize = FontSize.defaultFontSize, hidePopup = true, askClosingConfirm = false }) => {
|
|
42
|
+
const [initialWidth, setInitialWidth] = useState(width);
|
|
43
|
+
const [initialHeight, setInitialHeight] = useState(height);
|
|
44
|
+
const [showPopup, setShowPopup] = useState(false);
|
|
45
|
+
const [isResizing, setIsResizing] = useState(false);
|
|
46
|
+
useEffect(() => {
|
|
47
|
+
setShowPopup(isModal);
|
|
48
|
+
}, [isModal]);
|
|
49
|
+
useEffect(() => {
|
|
50
|
+
setInitialWidth(width);
|
|
51
|
+
setInitialHeight(height);
|
|
52
|
+
}, [width, height]);
|
|
53
|
+
const handleResizeStart = () => {
|
|
54
|
+
setIsResizing(true);
|
|
55
|
+
};
|
|
56
|
+
const handleResizeEnd = (e) => {
|
|
57
|
+
setIsResizing(false);
|
|
58
|
+
setInitialWidth(e.width.toString());
|
|
59
|
+
setInitialHeight(e.height.toString());
|
|
60
|
+
};
|
|
61
|
+
const onHiding = (e) => {
|
|
62
|
+
if (askClosingConfirm)
|
|
63
|
+
e.cancel = true;
|
|
64
|
+
if (hidePopup)
|
|
65
|
+
setShowPopup(false);
|
|
66
|
+
onClose && onClose();
|
|
67
|
+
};
|
|
68
|
+
return (_jsx(_Fragment, { children: isModal ? (_jsx(Popup, { showCloseButton: true, animation: undefined, maxHeight: '95%', maxWidth: '95%', dragEnabled: !isResizing, resizeEnabled: resizable, width: initialWidth, height: initialHeight, title: title, visible: showPopup, onResizeStart: handleResizeStart, onResizeEnd: handleResizeEnd, onHiding: onHiding, children: _jsxs(TMLayoutContainer, { children: [toolbar && (_jsx(TMLayoutItem, { height: "40px", children: _jsx(StyledModalToolbar, { children: toolbar }) })), _jsx(TMLayoutItem, { height: toolbar ? 'calc(100% - 50px)' : 'calc(100% - 10px)', children: _jsx(TMCard, { showBorder: false, padding: false, scrollY: true, children: children }) })] }) })) : (_jsxs(StyledModal, { "$isModal": isModal, className: "temp-modal", "$fontSize": fontSize, "$width": initialWidth, "$height": initialHeight, children: [toolbar ? _jsx(StyledModalToolbar, { children: toolbar }) : _jsx(_Fragment, {}), _jsx(StyledModalContext, { children: children })] })) }));
|
|
69
|
+
};
|
|
70
|
+
export default TMModal;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/** Gestione TMPanel "attivo / non attivo" secondo una pattern ibrido (Controlled/Uncontrolled Component):
|
|
2
|
+
1) Modalità Non Controllata (Uncontrolled): Se non gli viene passata la prop "isActive", il pannello gestisce lo stato "attivo" internamente. Per l'uso singolo ("plug-and-play").
|
|
3
|
+
2) Modalità Controllata (Controlled): Se il genitore passa la prop "isActive", il pannello cede il controllo e si affida completamente al genitore. Ideale per layout con più pannelli che necessitano di coordinamento.
|
|
4
|
+
*/
|
|
5
|
+
import React from 'react';
|
|
6
|
+
export interface ITMPanelRef {
|
|
7
|
+
focusPanel: () => void;
|
|
8
|
+
}
|
|
9
|
+
export interface ITMPanelProps {
|
|
10
|
+
allowMaximize?: boolean;
|
|
11
|
+
color?: string;
|
|
12
|
+
backgroundColor?: string;
|
|
13
|
+
backgroundColorContainer?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
showHeader?: boolean;
|
|
16
|
+
title?: string;
|
|
17
|
+
displayedItemsCount?: number;
|
|
18
|
+
totalItems?: number;
|
|
19
|
+
toolbar?: any;
|
|
20
|
+
padding?: string;
|
|
21
|
+
isVisible?: boolean;
|
|
22
|
+
panelID?: string;
|
|
23
|
+
isActive?: boolean;
|
|
24
|
+
onActivate?: (panelID: string) => void;
|
|
25
|
+
onActiveChanged?: (isActive: boolean) => void;
|
|
26
|
+
onBack?: () => void;
|
|
27
|
+
onClose?: () => void;
|
|
28
|
+
onHeaderDoubleClick?: () => void;
|
|
29
|
+
onMaximize?: (isMaximized: boolean) => void;
|
|
30
|
+
}
|
|
31
|
+
declare const TMPanel: React.ForwardRefExoticComponent<ITMPanelProps & React.RefAttributes<ITMPanelRef>>;
|
|
32
|
+
export default TMPanel;
|