@topconsultnpm/sdkui-react 6.19.0-dev1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/IconsS4t/add.svg +12 -0
- package/lib/assets/IconsS4t/aggiorna.svg +18 -0
- package/lib/assets/IconsS4t/bookmark.svg +42 -0
- package/lib/assets/IconsS4t/cancella.svg +15 -0
- package/lib/assets/IconsS4t/check-box.svg +19 -0
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/down.svg +28 -0
- package/lib/assets/IconsS4t/edit-file.svg +19 -0
- package/lib/assets/IconsS4t/edita.svg +32 -0
- package/lib/assets/IconsS4t/firma.svg +19 -0
- package/lib/assets/IconsS4t/icona_download.svg +16 -0
- package/lib/assets/IconsS4t/info.svg +51 -0
- package/lib/assets/IconsS4t/left.svg +20 -0
- package/lib/assets/IconsS4t/line.svg +40 -0
- package/lib/assets/IconsS4t/more.svg +19 -0
- package/lib/assets/IconsS4t/new-signature.svg +1 -0
- package/lib/assets/IconsS4t/plus.svg +23 -0
- package/lib/assets/IconsS4t/printer.svg +49 -0
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -0
- package/lib/assets/IconsS4t/rectangle.svg +41 -0
- package/lib/assets/IconsS4t/redo.svg +19 -0
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -0
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/right.svg +22 -0
- package/lib/assets/IconsS4t/searchbar.svg +21 -0
- package/lib/assets/IconsS4t/text-box.svg +36 -0
- package/lib/assets/IconsS4t/tick.svg +8 -0
- package/lib/assets/IconsS4t/trash-white.svg +11 -0
- package/lib/assets/IconsS4t/trash.svg +1 -0
- package/lib/assets/IconsS4t/undo.svg +19 -0
- package/lib/assets/IconsS4t/up.svg +32 -0
- package/lib/assets/IconsS4t/video-streaming.svg +2 -0
- package/lib/assets/IconsS4t/zoom-in.svg +58 -0
- package/lib/assets/IconsS4t/zoom-out.svg +56 -0
- package/lib/assets/ImageLibrary/arrow_001.png +0 -0
- package/lib/assets/ImageLibrary/arrow_002.png +0 -0
- package/lib/assets/ImageLibrary/arrow_003.png +0 -0
- package/lib/assets/ImageLibrary/arrow_004.png +0 -0
- package/lib/assets/ImageLibrary/arrow_005.png +0 -0
- package/lib/assets/ImageLibrary/arrow_006.png +0 -0
- package/lib/assets/ImageLibrary/arrow_007.png +0 -0
- package/lib/assets/ImageLibrary/arrow_008.png +0 -0
- package/lib/assets/ImageLibrary/arrow_009.png +0 -0
- package/lib/assets/ImageLibrary/arrow_010.png +0 -0
- package/lib/assets/ImageLibrary/arrow_011.png +0 -0
- package/lib/assets/ImageLibrary/arrow_012.png +0 -0
- package/lib/assets/ImageLibrary/book_001.png +0 -0
- package/lib/assets/ImageLibrary/book_002.png +0 -0
- package/lib/assets/ImageLibrary/book_003.png +0 -0
- package/lib/assets/ImageLibrary/book_004.png +0 -0
- package/lib/assets/ImageLibrary/book_005.png +0 -0
- package/lib/assets/ImageLibrary/book_006.png +0 -0
- package/lib/assets/ImageLibrary/book_007.png +0 -0
- package/lib/assets/ImageLibrary/clock_001.png +0 -0
- package/lib/assets/ImageLibrary/clock_002.png +0 -0
- package/lib/assets/ImageLibrary/clock_003.png +0 -0
- package/lib/assets/ImageLibrary/cube_001.png +0 -0
- package/lib/assets/ImageLibrary/cube_002.png +0 -0
- package/lib/assets/ImageLibrary/cube_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_001.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_002.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_004.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_005.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_006.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_007.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_008.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_001.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_002.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_003.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_001.png +0 -0
- package/lib/assets/ImageLibrary/fld_002.png +0 -0
- package/lib/assets/ImageLibrary/fld_003.png +0 -0
- package/lib/assets/ImageLibrary/fld_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_005.png +0 -0
- package/lib/assets/ImageLibrary/fld_006.png +0 -0
- package/lib/assets/ImageLibrary/fld_007.png +0 -0
- package/lib/assets/ImageLibrary/fld_008.png +0 -0
- package/lib/assets/ImageLibrary/fld_009.png +0 -0
- package/lib/assets/ImageLibrary/fld_010.png +0 -0
- package/lib/assets/ImageLibrary/fld_011.png +0 -0
- package/lib/assets/ImageLibrary/fld_012.png +0 -0
- package/lib/assets/ImageLibrary/fld_013.png +0 -0
- package/lib/assets/ImageLibrary/fld_014.png +0 -0
- package/lib/assets/ImageLibrary/fld_015.png +0 -0
- package/lib/assets/ImageLibrary/fld_016.png +0 -0
- package/lib/assets/ImageLibrary/fld_017.png +0 -0
- package/lib/assets/ImageLibrary/fld_018.png +0 -0
- package/lib/assets/ImageLibrary/fld_019.png +0 -0
- package/lib/assets/ImageLibrary/fld_020.png +0 -0
- package/lib/assets/ImageLibrary/fld_021.png +0 -0
- package/lib/assets/ImageLibrary/fld_022.png +0 -0
- package/lib/assets/ImageLibrary/fld_023.png +0 -0
- package/lib/assets/ImageLibrary/fld_024.png +0 -0
- package/lib/assets/ImageLibrary/fld_025.png +0 -0
- package/lib/assets/ImageLibrary/fld_026.png +0 -0
- package/lib/assets/ImageLibrary/fld_027.png +0 -0
- package/lib/assets/ImageLibrary/fld_028.png +0 -0
- package/lib/assets/ImageLibrary/fld_029.png +0 -0
- package/lib/assets/ImageLibrary/fld_030.png +0 -0
- package/lib/assets/ImageLibrary/fld_031.png +0 -0
- package/lib/assets/ImageLibrary/fld_032.png +0 -0
- package/lib/assets/ImageLibrary/fld_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_001.png +0 -0
- package/lib/assets/ImageLibrary/gen_002.png +0 -0
- package/lib/assets/ImageLibrary/gen_003.png +0 -0
- package/lib/assets/ImageLibrary/gen_004.png +0 -0
- package/lib/assets/ImageLibrary/gen_005.png +0 -0
- package/lib/assets/ImageLibrary/gen_006.png +0 -0
- package/lib/assets/ImageLibrary/gen_007.png +0 -0
- package/lib/assets/ImageLibrary/gen_008.png +0 -0
- package/lib/assets/ImageLibrary/gen_009.png +0 -0
- package/lib/assets/ImageLibrary/gen_010.png +0 -0
- package/lib/assets/ImageLibrary/gen_011.png +0 -0
- package/lib/assets/ImageLibrary/gen_012.png +0 -0
- package/lib/assets/ImageLibrary/gen_013.png +0 -0
- package/lib/assets/ImageLibrary/gen_014.png +0 -0
- package/lib/assets/ImageLibrary/gen_015.png +0 -0
- package/lib/assets/ImageLibrary/gen_016.png +0 -0
- package/lib/assets/ImageLibrary/gen_017.png +0 -0
- package/lib/assets/ImageLibrary/gen_018.png +0 -0
- package/lib/assets/ImageLibrary/gen_019.png +0 -0
- package/lib/assets/ImageLibrary/gen_020.png +0 -0
- package/lib/assets/ImageLibrary/gen_021.png +0 -0
- package/lib/assets/ImageLibrary/gen_022.png +0 -0
- package/lib/assets/ImageLibrary/gen_023.png +0 -0
- package/lib/assets/ImageLibrary/gen_024.png +0 -0
- package/lib/assets/ImageLibrary/gen_025.png +0 -0
- package/lib/assets/ImageLibrary/gen_026.png +0 -0
- package/lib/assets/ImageLibrary/gen_027.png +0 -0
- package/lib/assets/ImageLibrary/gen_028.png +0 -0
- package/lib/assets/ImageLibrary/gen_029.png +0 -0
- package/lib/assets/ImageLibrary/gen_030.png +0 -0
- package/lib/assets/ImageLibrary/gen_031.png +0 -0
- package/lib/assets/ImageLibrary/gen_032.png +0 -0
- package/lib/assets/ImageLibrary/gen_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_034.png +0 -0
- package/lib/assets/ImageLibrary/gen_035.png +0 -0
- package/lib/assets/ImageLibrary/gen_036.png +0 -0
- package/lib/assets/ImageLibrary/gen_037.png +0 -0
- package/lib/assets/ImageLibrary/gen_038.png +0 -0
- package/lib/assets/ImageLibrary/gen_039.png +0 -0
- package/lib/assets/ImageLibrary/gen_040.png +0 -0
- package/lib/assets/ImageLibrary/gen_041.png +0 -0
- package/lib/assets/ImageLibrary/gen_042.png +0 -0
- package/lib/assets/ImageLibrary/gen_043.png +0 -0
- package/lib/assets/ImageLibrary/gen_044.png +0 -0
- package/lib/assets/ImageLibrary/gen_045.png +0 -0
- package/lib/assets/ImageLibrary/gen_046.png +0 -0
- package/lib/assets/ImageLibrary/gen_047.png +0 -0
- package/lib/assets/ImageLibrary/gen_048.png +0 -0
- package/lib/assets/ImageLibrary/gen_049.png +0 -0
- package/lib/assets/ImageLibrary/gen_050.png +0 -0
- package/lib/assets/ImageLibrary/gen_051.png +0 -0
- package/lib/assets/ImageLibrary/gen_052.png +0 -0
- package/lib/assets/ImageLibrary/hand_001.png +0 -0
- package/lib/assets/ImageLibrary/hand_002.png +0 -0
- package/lib/assets/ImageLibrary/hand_003.png +0 -0
- package/lib/assets/ImageLibrary/hand_004.png +0 -0
- package/lib/assets/ImageLibrary/hand_005.png +0 -0
- package/lib/assets/ImageLibrary/hand_006.png +0 -0
- package/lib/assets/ImageLibrary/law_001.png +0 -0
- package/lib/assets/ImageLibrary/law_002.png +0 -0
- package/lib/assets/ImageLibrary/law_003.png +0 -0
- package/lib/assets/ImageLibrary/lock_001.png +0 -0
- package/lib/assets/ImageLibrary/lock_002.png +0 -0
- package/lib/assets/ImageLibrary/lock_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_001.png +0 -0
- package/lib/assets/ImageLibrary/mail_002.png +0 -0
- package/lib/assets/ImageLibrary/mail_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_004.png +0 -0
- package/lib/assets/ImageLibrary/mail_005.png +0 -0
- package/lib/assets/ImageLibrary/mail_006.png +0 -0
- package/lib/assets/ImageLibrary/mail_007.png +0 -0
- package/lib/assets/ImageLibrary/mail_008.png +0 -0
- package/lib/assets/ImageLibrary/mail_009.png +0 -0
- package/lib/assets/ImageLibrary/mail_010.png +0 -0
- package/lib/assets/ImageLibrary/mail_011.png +0 -0
- package/lib/assets/ImageLibrary/mail_012.png +0 -0
- package/lib/assets/ImageLibrary/mail_013.png +0 -0
- package/lib/assets/ImageLibrary/mail_014.png +0 -0
- package/lib/assets/ImageLibrary/mail_015.png +0 -0
- package/lib/assets/ImageLibrary/net_001.png +0 -0
- package/lib/assets/ImageLibrary/net_002.png +0 -0
- package/lib/assets/ImageLibrary/net_003.png +0 -0
- package/lib/assets/ImageLibrary/net_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_001.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_002.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_003.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_005.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_006.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_007.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_008.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_009.png +0 -0
- package/lib/assets/ImageLibrary/note_001.png +0 -0
- package/lib/assets/ImageLibrary/note_002.png +0 -0
- package/lib/assets/ImageLibrary/note_003.png +0 -0
- package/lib/assets/ImageLibrary/note_004.png +0 -0
- package/lib/assets/ImageLibrary/note_005.png +0 -0
- package/lib/assets/ImageLibrary/note_006.png +0 -0
- package/lib/assets/ImageLibrary/note_007.png +0 -0
- package/lib/assets/ImageLibrary/note_008.png +0 -0
- package/lib/assets/ImageLibrary/note_009.png +0 -0
- package/lib/assets/ImageLibrary/note_010.png +0 -0
- package/lib/assets/ImageLibrary/note_011.png +0 -0
- package/lib/assets/ImageLibrary/note_012.png +0 -0
- package/lib/assets/ImageLibrary/note_013.png +0 -0
- package/lib/assets/ImageLibrary/note_014.png +0 -0
- package/lib/assets/ImageLibrary/note_015.png +0 -0
- package/lib/assets/ImageLibrary/note_016.png +0 -0
- package/lib/assets/ImageLibrary/run_001.png +0 -0
- package/lib/assets/ImageLibrary/run_002.png +0 -0
- package/lib/assets/ImageLibrary/run_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_001.png +0 -0
- package/lib/assets/ImageLibrary/sem_002.png +0 -0
- package/lib/assets/ImageLibrary/sem_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_004.png +0 -0
- package/lib/assets/ImageLibrary/sem_005.png +0 -0
- package/lib/assets/ImageLibrary/star_001.png +0 -0
- package/lib/assets/ImageLibrary/star_002.png +0 -0
- package/lib/assets/ImageLibrary/star_003.png +0 -0
- package/lib/assets/ImageLibrary/star_004.png +0 -0
- package/lib/assets/ImageLibrary/star_005.png +0 -0
- package/lib/assets/ImageLibrary/star_006.png +0 -0
- package/lib/assets/ImageLibrary/state_001.png +0 -0
- package/lib/assets/ImageLibrary/state_002.png +0 -0
- package/lib/assets/ImageLibrary/state_003.png +0 -0
- package/lib/assets/ImageLibrary/state_004.png +0 -0
- package/lib/assets/ImageLibrary/state_005.png +0 -0
- package/lib/assets/ImageLibrary/study_001.png +0 -0
- package/lib/assets/ImageLibrary/study_002.png +0 -0
- package/lib/assets/ImageLibrary/user_001.png +0 -0
- package/lib/assets/ImageLibrary/user_002.png +0 -0
- package/lib/assets/ImageLibrary/user_003.png +0 -0
- package/lib/assets/ImageLibrary/user_004.png +0 -0
- package/lib/assets/ImageLibrary/user_005.png +0 -0
- package/lib/assets/ImageLibrary/user_006.png +0 -0
- package/lib/assets/ImageLibrary/user_007.png +0 -0
- package/lib/assets/ImageLibrary/user_008.png +0 -0
- package/lib/assets/ImageLibrary/user_009.png +0 -0
- package/lib/assets/ImageLibrary/user_010.png +0 -0
- package/lib/assets/ImageLibrary/user_011.png +0 -0
- package/lib/assets/ImageLibrary/user_012.png +0 -0
- package/lib/assets/ImageLibrary/user_013.png +0 -0
- package/lib/assets/ImageLibrary/user_014.png +0 -0
- package/lib/assets/ImageLibrary/user_015.png +0 -0
- package/lib/assets/ImageLibrary/user_016.png +0 -0
- package/lib/assets/ImageLibrary/user_017.png +0 -0
- package/lib/assets/ImageLibrary/user_018.png +0 -0
- package/lib/assets/ImageLibrary/user_019.png +0 -0
- package/lib/assets/ImageLibrary/user_020.png +0 -0
- package/lib/assets/ImageLibrary/user_021.png +0 -0
- package/lib/assets/ImageLibrary/user_022.png +0 -0
- package/lib/assets/ImageLibrary/user_023.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_001.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_002.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_003.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_004.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_005.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_006.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_007.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_008.png +0 -0
- package/lib/assets/Toppy-generico.png +0 -0
- package/lib/assets/france.svg +1 -0
- package/lib/assets/german.svg +1 -0
- package/lib/assets/icomoon.eot +0 -0
- package/lib/assets/icomoon.svg +97 -0
- package/lib/assets/icomoon.ttf +0 -0
- package/lib/assets/icomoon.woff +0 -0
- package/lib/assets/italy.svg +16 -0
- package/lib/assets/loading.png +0 -0
- package/lib/assets/login-bg.png +0 -0
- package/lib/assets/multipleSelectionManager.jpg +0 -0
- package/lib/assets/portugal.svg +1 -0
- package/lib/assets/six.png +0 -0
- package/lib/assets/six.svg +4 -0
- package/lib/assets/spain.svg +1 -0
- package/lib/assets/thumbnails/dicom.png +0 -0
- package/lib/assets/thumbnails/doc.png +0 -0
- package/lib/assets/thumbnails/docx.png +0 -0
- package/lib/assets/thumbnails/dwg.png +0 -0
- package/lib/assets/thumbnails/email.png +0 -0
- package/lib/assets/thumbnails/exe.png +0 -0
- package/lib/assets/thumbnails/folder.png +0 -0
- package/lib/assets/thumbnails/html.png +0 -0
- package/lib/assets/thumbnails/image.png +0 -0
- package/lib/assets/thumbnails/index.d.ts +19 -0
- package/lib/assets/thumbnails/index.js +19 -0
- package/lib/assets/thumbnails/index.ts +39 -0
- package/lib/assets/thumbnails/mp4.png +0 -0
- package/lib/assets/thumbnails/other.png +0 -0
- package/lib/assets/thumbnails/p7m.png +0 -0
- package/lib/assets/thumbnails/pdf.png +0 -0
- package/lib/assets/thumbnails/ppt.png +0 -0
- package/lib/assets/thumbnails/slddrw.png +0 -0
- package/lib/assets/thumbnails/txt.png +0 -0
- package/lib/assets/thumbnails/xls.png +0 -0
- package/lib/assets/thumbnails/xml.png +0 -0
- package/lib/assets/thumbnails/zip.png +0 -0
- package/lib/assets/topmedia-six.svg +66 -0
- package/lib/assets/topmeida-six-bianco.svg +66 -0
- package/lib/assets/united-kingdom.svg +1 -0
- package/lib/components/base/Styled.d.ts +62 -0
- package/lib/components/base/Styled.js +297 -0
- package/lib/components/base/TMAccordion.d.ts +12 -0
- package/lib/components/base/TMAccordion.js +62 -0
- package/lib/components/base/TMAlert.d.ts +73 -0
- package/lib/components/base/TMAlert.js +77 -0
- package/lib/components/base/TMAreaManager.d.ts +25 -0
- package/lib/components/base/TMAreaManager.js +733 -0
- package/lib/components/base/TMButton.d.ts +21 -0
- package/lib/components/base/TMButton.js +174 -0
- package/lib/components/base/TMClosableList.d.ts +10 -0
- package/lib/components/base/TMClosableList.js +70 -0
- package/lib/components/base/TMConfirm.d.ts +13 -0
- package/lib/components/base/TMConfirm.js +119 -0
- package/lib/components/base/TMContextMenu.d.ts +25 -0
- package/lib/components/base/TMContextMenu.js +109 -0
- package/lib/components/base/TMContextMenuOLD.d.ts +26 -0
- package/lib/components/base/TMContextMenuOLD.js +56 -0
- package/lib/components/base/TMCounterBar.d.ts +10 -0
- package/lib/components/base/TMCounterBar.js +43 -0
- package/lib/components/base/TMCounterContainer.d.ts +23 -0
- package/lib/components/base/TMCounterContainer.js +58 -0
- package/lib/components/base/TMDataGrid.d.ts +56 -0
- package/lib/components/base/TMDataGrid.js +237 -0
- package/lib/components/base/TMDataGridExportForm.d.ts +15 -0
- package/lib/components/base/TMDataGridExportForm.js +209 -0
- package/lib/components/base/TMDeviceProvider.d.ts +15 -0
- package/lib/components/base/TMDeviceProvider.js +41 -0
- package/lib/components/base/TMDropDownMenu.d.ts +23 -0
- package/lib/components/base/TMDropDownMenu.js +45 -0
- package/lib/components/base/TMEditorBase.d.ts +39 -0
- package/lib/components/base/TMEditorBase.js +1 -0
- package/lib/components/base/TMFileManager.d.ts +45 -0
- package/lib/components/base/TMFileManager.js +224 -0
- package/lib/components/base/TMFileManagerDataGridView.d.ts +14 -0
- package/lib/components/base/TMFileManagerDataGridView.js +89 -0
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +16 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +138 -0
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +17 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +46 -0
- package/lib/components/base/TMFileManagerUtils.d.ts +78 -0
- package/lib/components/base/TMFileManagerUtils.js +207 -0
- package/lib/components/base/TMFloatingToolbar.d.ts +9 -0
- package/lib/components/base/TMFloatingToolbar.js +101 -0
- package/lib/components/base/TMLayout.d.ts +54 -0
- package/lib/components/base/TMLayout.js +201 -0
- package/lib/components/base/TMList.d.ts +9 -0
- package/lib/components/base/TMList.js +54 -0
- package/lib/components/base/TMListView.d.ts +42 -0
- package/lib/components/base/TMListView.js +387 -0
- package/lib/components/base/TMModal.d.ts +16 -0
- package/lib/components/base/TMModal.js +70 -0
- package/lib/components/base/TMPanel.d.ts +32 -0
- package/lib/components/base/TMPanel.js +181 -0
- package/lib/components/base/TMPopUp.d.ts +33 -0
- package/lib/components/base/TMPopUp.js +280 -0
- package/lib/components/base/TMProgressBar.d.ts +11 -0
- package/lib/components/base/TMProgressBar.js +32 -0
- package/lib/components/base/TMResizableMenu.d.ts +20 -0
- package/lib/components/base/TMResizableMenu.js +98 -0
- package/lib/components/base/TMRightSidebar.d.ts +19 -0
- package/lib/components/base/TMRightSidebar.js +80 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.d.ts +8 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.js +20 -0
- package/lib/components/base/TMSpinner.d.ts +14 -0
- package/lib/components/base/TMSpinner.js +160 -0
- package/lib/components/base/TMTab.d.ts +20 -0
- package/lib/components/base/TMTab.js +42 -0
- package/lib/components/base/TMToggleButton.d.ts +10 -0
- package/lib/components/base/TMToggleButton.js +58 -0
- package/lib/components/base/TMToolbarCard.d.ts +19 -0
- package/lib/components/base/TMToolbarCard.js +51 -0
- package/lib/components/base/TMTooltip.d.ts +14 -0
- package/lib/components/base/TMTooltip.js +20 -0
- package/lib/components/base/TMTreeView.d.ts +32 -0
- package/lib/components/base/TMTreeView.js +355 -0
- package/lib/components/base/TMUserAvatar.d.ts +8 -0
- package/lib/components/base/TMUserAvatar.js +34 -0
- package/lib/components/base/TMVilViewer.d.ts +5 -0
- package/lib/components/base/TMVilViewer.js +22 -0
- package/lib/components/base/TMWaitPanel.d.ts +32 -0
- package/lib/components/base/TMWaitPanel.js +44 -0
- package/lib/components/choosers/TMCultureIDPicker.d.ts +9 -0
- package/lib/components/choosers/TMCultureIDPicker.js +72 -0
- package/lib/components/choosers/TMDataListItemChooser.d.ts +17 -0
- package/lib/components/choosers/TMDataListItemChooser.js +49 -0
- package/lib/components/choosers/TMDataListItemPicker.d.ts +9 -0
- package/lib/components/choosers/TMDataListItemPicker.js +96 -0
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
- package/lib/components/choosers/TMDcmtTypeChooser.js +61 -0
- package/lib/components/choosers/TMDiskChooser.d.ts +10 -0
- package/lib/components/choosers/TMDiskChooser.js +41 -0
- package/lib/components/choosers/TMDistinctValues.d.ts +21 -0
- package/lib/components/choosers/TMDistinctValues.js +140 -0
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +40 -0
- package/lib/components/choosers/TMDynDataListItemChooser.js +159 -0
- package/lib/components/choosers/TMGroupChooser.d.ts +7 -0
- package/lib/components/choosers/TMGroupChooser.js +37 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMMetadataChooser.d.ts +51 -0
- package/lib/components/choosers/TMMetadataChooser.js +134 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMPathChooser.d.ts +12 -0
- package/lib/components/choosers/TMPathChooser.js +147 -0
- package/lib/components/choosers/TMRelationChooser.d.ts +31 -0
- package/lib/components/choosers/TMRelationChooser.js +94 -0
- package/lib/components/choosers/TMUserChooser.d.ts +40 -0
- package/lib/components/choosers/TMUserChooser.js +141 -0
- package/lib/components/editors/TMCheckBox.d.ts +9 -0
- package/lib/components/editors/TMCheckBox.js +90 -0
- package/lib/components/editors/TMDateBox.d.ts +17 -0
- package/lib/components/editors/TMDateBox.js +75 -0
- package/lib/components/editors/TMDropDown.d.ts +10 -0
- package/lib/components/editors/TMDropDown.js +62 -0
- package/lib/components/editors/TMEditorStyled.d.ts +41 -0
- package/lib/components/editors/TMEditorStyled.js +90 -0
- package/lib/components/editors/TMFormulaEditor.d.ts +49 -0
- package/lib/components/editors/TMFormulaEditor.js +727 -0
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +7 -0
- package/lib/components/editors/TMHtmlContentDisplay.js +78 -0
- package/lib/components/editors/TMHtmlEditor.d.ts +33 -0
- package/lib/components/editors/TMHtmlEditor.js +143 -0
- package/lib/components/editors/TMLocalizedTextBox.d.ts +19 -0
- package/lib/components/editors/TMLocalizedTextBox.js +125 -0
- package/lib/components/editors/TMMetadataEditor.d.ts +29 -0
- package/lib/components/editors/TMMetadataEditor.js +140 -0
- package/lib/components/editors/TMMetadataValues.d.ts +46 -0
- package/lib/components/editors/TMMetadataValues.js +480 -0
- package/lib/components/editors/TMRadioButton.d.ts +10 -0
- package/lib/components/editors/TMRadioButton.js +57 -0
- package/lib/components/editors/TMSummary.d.ts +20 -0
- package/lib/components/editors/TMSummary.js +92 -0
- package/lib/components/editors/TMTextArea.d.ts +17 -0
- package/lib/components/editors/TMTextArea.js +155 -0
- package/lib/components/editors/TMTextBox.d.ts +20 -0
- package/lib/components/editors/TMTextBox.js +249 -0
- package/lib/components/editors/TMTextExpression.d.ts +25 -0
- package/lib/components/editors/TMTextExpression.js +174 -0
- package/lib/components/editors/TMTreeDropDown.d.ts +18 -0
- package/lib/components/editors/TMTreeDropDown.js +66 -0
- package/lib/components/features/archive/TMArchive.d.ts +19 -0
- package/lib/components/features/archive/TMArchive.js +162 -0
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +12 -0
- package/lib/components/features/assistant/ToppyHelpCenter.js +173 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +17 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +308 -0
- package/lib/components/features/documents/TMBatchUpdateForm.d.ts +17 -0
- package/lib/components/features/documents/TMBatchUpdateForm.js +159 -0
- package/lib/components/features/documents/TMDcmtBlog.d.ts +8 -0
- package/lib/components/features/documents/TMDcmtBlog.js +77 -0
- package/lib/components/features/documents/TMDcmtForm.d.ts +50 -0
- package/lib/components/features/documents/TMDcmtForm.js +1083 -0
- package/lib/components/features/documents/TMDcmtIcon.d.ts +18 -0
- package/lib/components/features/documents/TMDcmtIcon.js +93 -0
- package/lib/components/features/documents/TMDcmtPreview.d.ts +31 -0
- package/lib/components/features/documents/TMDcmtPreview.js +446 -0
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +6 -0
- package/lib/components/features/documents/TMDragDropOverlay.js +96 -0
- package/lib/components/features/documents/TMFileUploader.d.ts +14 -0
- package/lib/components/features/documents/TMFileUploader.js +115 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +19 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +288 -0
- package/lib/components/features/documents/TMRelationViewer.d.ts +71 -0
- package/lib/components/features/documents/TMRelationViewer.js +573 -0
- package/lib/components/features/search/TMSavedQueryForm.d.ts +9 -0
- package/lib/components/features/search/TMSavedQueryForm.js +41 -0
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +16 -0
- package/lib/components/features/search/TMSavedQuerySelector.js +226 -0
- package/lib/components/features/search/TMSearch.d.ts +31 -0
- package/lib/components/features/search/TMSearch.js +244 -0
- package/lib/components/features/search/TMSearchQueryEditor.d.ts +15 -0
- package/lib/components/features/search/TMSearchQueryEditor.js +367 -0
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +29 -0
- package/lib/components/features/search/TMSearchQueryPanel.js +426 -0
- package/lib/components/features/search/TMSearchResult.d.ts +44 -0
- package/lib/components/features/search/TMSearchResult.js +1293 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +16 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.js +50 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +10 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.js +654 -0
- package/lib/components/features/search/TMTreeSelector.d.ts +12 -0
- package/lib/components/features/search/TMTreeSelector.js +270 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +39 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +439 -0
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +40 -0
- package/lib/components/features/workflow/TMWorkflowPopup.js +273 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.d.ts +14 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +90 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.d.ts +9 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.js +73 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +18 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +264 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.d.ts +10 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +681 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.d.ts +12 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +97 -0
- package/lib/components/features/workflow/diagram/RecipientList.d.ts +27 -0
- package/lib/components/features/workflow/diagram/RecipientList.js +203 -0
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +9 -0
- package/lib/components/features/workflow/diagram/WFDiagram.js +1666 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +18 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +97 -0
- package/lib/components/features/workflow/diagram/interfaces.d.ts +126 -0
- package/lib/components/features/workflow/diagram/interfaces.js +26 -0
- package/lib/components/features/workflow/diagram/metadataParser.d.ts +14 -0
- package/lib/components/features/workflow/diagram/metadataParser.js +54 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.d.ts +3 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.js +188 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.d.ts +122 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.js +488 -0
- package/lib/components/features/workflow/diagram/xmlParser.d.ts +10 -0
- package/lib/components/features/workflow/diagram/xmlParser.js +490 -0
- package/lib/components/filesystem/ProgressBar.d.ts +7 -0
- package/lib/components/filesystem/ProgressBar.js +25 -0
- package/lib/components/forms/Login/ChangePassword.d.ts +9 -0
- package/lib/components/forms/Login/ChangePassword.js +22 -0
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +14 -0
- package/lib/components/forms/Login/ChangePasswordInputs.js +80 -0
- package/lib/components/forms/Login/Chooser.d.ts +28 -0
- package/lib/components/forms/Login/Chooser.js +145 -0
- package/lib/components/forms/Login/LOGINLocalizator.d.ts +29 -0
- package/lib/components/forms/Login/LOGINLocalizator.js +247 -0
- package/lib/components/forms/Login/LoginValidatorService.d.ts +50 -0
- package/lib/components/forms/Login/LoginValidatorService.js +162 -0
- package/lib/components/forms/Login/Menu.d.ts +10 -0
- package/lib/components/forms/Login/Menu.js +48 -0
- package/lib/components/forms/Login/OTPReader.d.ts +14 -0
- package/lib/components/forms/Login/OTPReader.js +90 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.d.ts +7 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.js +45 -0
- package/lib/components/forms/Login/RapidAccessLogin.d.ts +25 -0
- package/lib/components/forms/Login/RapidAccessLogin.js +310 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.d.ts +11 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.js +111 -0
- package/lib/components/forms/Login/SelectBox.d.ts +23 -0
- package/lib/components/forms/Login/SelectBox.js +96 -0
- package/lib/components/forms/Login/StepIndicator.d.ts +7 -0
- package/lib/components/forms/Login/StepIndicator.js +19 -0
- package/lib/components/forms/Login/TMLoginForm.d.ts +44 -0
- package/lib/components/forms/Login/TMLoginForm.js +737 -0
- package/lib/components/forms/Login/TextBox.d.ts +27 -0
- package/lib/components/forms/Login/TextBox.js +111 -0
- package/lib/components/forms/TMApplyForm.d.ts +4 -0
- package/lib/components/forms/TMApplyForm.js +105 -0
- package/lib/components/forms/TMChooserForm.d.ts +3 -0
- package/lib/components/forms/TMChooserForm.js +94 -0
- package/lib/components/forms/TMResultDialog.d.ts +20 -0
- package/lib/components/forms/TMResultDialog.js +38 -0
- package/lib/components/forms/TMSaveForm.d.ts +31 -0
- package/lib/components/forms/TMSaveForm.js +176 -0
- package/lib/components/grids/TMBlogs.d.ts +102 -0
- package/lib/components/grids/TMBlogs.js +721 -0
- package/lib/components/grids/TMBlogsUtils.d.ts +99 -0
- package/lib/components/grids/TMBlogsUtils.js +226 -0
- package/lib/components/grids/TMRecentsManager.d.ts +13 -0
- package/lib/components/grids/TMRecentsManager.js +155 -0
- package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
- package/lib/components/grids/TMValidationItemsList.js +82 -0
- package/lib/components/index.d.ts +102 -0
- package/lib/components/index.js +123 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +9 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +215 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +39 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +251 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +11 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +82 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +21 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +64 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +8 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.js +59 -0
- package/lib/components/layout/panelManager/types.d.ts +41 -0
- package/lib/components/layout/panelManager/types.js +1 -0
- package/lib/components/layout/panelManager/utils.d.ts +21 -0
- package/lib/components/layout/panelManager/utils.js +208 -0
- package/lib/components/pages/TMPage.d.ts +38 -0
- package/lib/components/pages/TMPage.js +220 -0
- package/lib/components/query/TMQueryEditor.d.ts +58 -0
- package/lib/components/query/TMQueryEditor.js +1001 -0
- package/lib/components/query/TMQuerySummary.d.ts +15 -0
- package/lib/components/query/TMQuerySummary.js +35 -0
- package/lib/components/settings/SettingsAppearance.d.ts +14 -0
- package/lib/components/settings/SettingsAppearance.js +65 -0
- package/lib/components/sidebar/TMAboutApp.d.ts +8 -0
- package/lib/components/sidebar/TMAboutApp.js +14 -0
- package/lib/components/sidebar/TMCommandsPanel.d.ts +16 -0
- package/lib/components/sidebar/TMCommandsPanel.js +27 -0
- package/lib/components/sidebar/TMHeader.d.ts +43 -0
- package/lib/components/sidebar/TMHeader.js +616 -0
- package/lib/components/sidebar/TMSidebar.d.ts +21 -0
- package/lib/components/sidebar/TMSidebar.js +61 -0
- package/lib/components/sidebar/TMSidebarItem.d.ts +15 -0
- package/lib/components/sidebar/TMSidebarItem.js +39 -0
- package/lib/components/viewers/TMDataListItemViewer.d.ts +10 -0
- package/lib/components/viewers/TMDataListItemViewer.js +80 -0
- package/lib/components/viewers/TMMidViewer.d.ts +36 -0
- package/lib/components/viewers/TMMidViewer.js +128 -0
- package/lib/components/viewers/TMTidViewer.d.ts +256 -0
- package/lib/components/viewers/TMTidViewer.js +341 -0
- package/lib/components/wizard/TMStepIndicator.d.ts +11 -0
- package/lib/components/wizard/TMStepIndicator.js +165 -0
- package/lib/components/wizard/TMWizard.d.ts +18 -0
- package/lib/components/wizard/TMWizard.js +93 -0
- package/lib/css/tm-sdkui.css +1 -0
- package/lib/helper/DeepCompareHelper.d.ts +7 -0
- package/lib/helper/DeepCompareHelper.js +106 -0
- package/lib/helper/Enum_Localizator.d.ts +18 -0
- package/lib/helper/Enum_Localizator.js +247 -0
- package/lib/helper/Globalization.d.ts +14 -0
- package/lib/helper/Globalization.js +80 -0
- package/lib/helper/SDKUI_Globals.d.ts +93 -0
- package/lib/helper/SDKUI_Globals.js +165 -0
- package/lib/helper/SDKUI_Localizator.d.ts +649 -0
- package/lib/helper/SDKUI_Localizator.js +6385 -0
- package/lib/helper/TMCommandsContextMenu.d.ts +14 -0
- package/lib/helper/TMCommandsContextMenu.js +6 -0
- package/lib/helper/TMConditionalWrapper.d.ts +8 -0
- package/lib/helper/TMConditionalWrapper.js +4 -0
- package/lib/helper/TMIcons.d.ts +271 -0
- package/lib/helper/TMIcons.js +664 -0
- package/lib/helper/TMImageLibrary.d.ts +3 -0
- package/lib/helper/TMImageLibrary.js +466 -0
- package/lib/helper/TMUtils.d.ts +20 -0
- package/lib/helper/TMUtils.js +176 -0
- package/lib/helper/dcmtsHelper.d.ts +5 -0
- package/lib/helper/dcmtsHelper.js +25 -0
- package/lib/helper/helpers.d.ts +84 -0
- package/lib/helper/helpers.js +824 -0
- package/lib/helper/index.d.ts +11 -0
- package/lib/helper/index.js +11 -0
- package/lib/helper/queryHelper.d.ts +19 -0
- package/lib/helper/queryHelper.js +336 -0
- package/lib/hooks/useDcmtOperations.d.ts +24 -0
- package/lib/hooks/useDcmtOperations.js +482 -0
- package/lib/hooks/useForm.d.ts +24 -0
- package/lib/hooks/useForm.js +157 -0
- package/lib/hooks/useInputDialog.d.ts +9 -0
- package/lib/hooks/useInputDialog.js +105 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useOutsideClick.js +38 -0
- package/lib/hooks/usePreventFileDrop.d.ts +3 -0
- package/lib/hooks/usePreventFileDrop.js +37 -0
- package/lib/hooks/useQueryParametersDialog.d.ts +2 -0
- package/lib/hooks/useQueryParametersDialog.js +71 -0
- package/lib/hooks/useResizeObserver.d.ts +4 -0
- package/lib/hooks/useResizeObserver.js +22 -0
- package/lib/hooks/useWorkflowApprove.d.ts +11 -0
- package/lib/hooks/useWorkflowApprove.js +57 -0
- package/lib/index.d.ts +11 -0
- package/lib/index.js +14 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/platform_services.d.ts +18 -0
- package/lib/services/platform_services.js +492 -0
- package/lib/stories/TMButton.stories.d.ts +4 -0
- package/lib/stories/TMButton.stories.js +29 -0
- package/lib/stories/TMDataGrid.stories.d.ts +9 -0
- package/lib/stories/TMDataGrid.stories.js +310 -0
- package/lib/stories/TMHtmlContentDisplay.stories.d.ts +6 -0
- package/lib/stories/TMHtmlContentDisplay.stories.js +45 -0
- package/lib/stories/TMHtmlEditor.stories.d.ts +6 -0
- package/lib/stories/TMHtmlEditor.stories.js +49 -0
- package/lib/stories/TMIcons.stories.d.ts +4 -0
- package/lib/stories/TMIcons.stories.js +13 -0
- package/lib/stories/TMSDKUI_Localizator.stories.d.ts +4 -0
- package/lib/stories/TMSDKUI_Localizator.stories.js +123 -0
- package/lib/stories/TMStoriesUtils.d.ts +1 -0
- package/lib/stories/TMStoriesUtils.js +10 -0
- package/lib/stories/TMUserAvatar.stories.d.ts +6 -0
- package/lib/stories/TMUserAvatar.stories.js +20 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/lib/ts/types.d.ts +296 -0
- package/lib/ts/types.js +85 -0
- package/lib/utils/theme.d.ts +68 -0
- package/lib/utils/theme.js +80 -0
- package/package.json +54 -0
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useRef, useMemo } from 'react';
|
|
3
|
+
import six from '../../assets/six.png';
|
|
4
|
+
import { getAvatarColor, IconCloseOutline, IconCopy, IconSearch, openApps, SDKUI_Localizator } from '../../helper';
|
|
5
|
+
import styled, { keyframes } from 'styled-components';
|
|
6
|
+
import { SDK_Globals, AuthenticationModes, AppModules, UserLevels, CultureIDs } from '@topconsultnpm/sdk-ts';
|
|
7
|
+
import { TMColors } from '../../utils/theme';
|
|
8
|
+
import { ButtonNames, TMMessageBoxManager } from '../base/TMPopUp';
|
|
9
|
+
import { DeviceType, useDeviceType } from '../base/TMDeviceProvider';
|
|
10
|
+
import { TMAboutApp } from './TMAboutApp';
|
|
11
|
+
import ShowAlert from '../base/TMAlert';
|
|
12
|
+
import TMResizableMenu from '../base/TMResizableMenu';
|
|
13
|
+
import it from '../../assets/italy.svg';
|
|
14
|
+
import de from '../../assets/german.svg';
|
|
15
|
+
import fr from '../../assets/france.svg';
|
|
16
|
+
import en from '../../assets/united-kingdom.svg';
|
|
17
|
+
import es from '../../assets/spain.svg';
|
|
18
|
+
import pt from '../../assets/portugal.svg';
|
|
19
|
+
export var TMSearchContext;
|
|
20
|
+
(function (TMSearchContext) {
|
|
21
|
+
TMSearchContext["JOBS"] = "jobs";
|
|
22
|
+
TMSearchContext["PROCESSES"] = "processes";
|
|
23
|
+
TMSearchContext["PROCESS_MONITOR"] = "ProcessMonitor";
|
|
24
|
+
TMSearchContext["JOBS_LIST"] = "JobsList";
|
|
25
|
+
TMSearchContext["PLATFORM"] = "OrchestrationPlatform";
|
|
26
|
+
TMSearchContext["QE"] = "QueryEditor";
|
|
27
|
+
})(TMSearchContext || (TMSearchContext = {}));
|
|
28
|
+
export const getInitials = (name) => {
|
|
29
|
+
if (!name)
|
|
30
|
+
return 'U';
|
|
31
|
+
if (name.toLowerCase() === 'sysadmin')
|
|
32
|
+
return 'SYS';
|
|
33
|
+
const words = name.trim().split(/\s+/);
|
|
34
|
+
if (words.length === 1) {
|
|
35
|
+
return words[0].substring(0, 2).toUpperCase();
|
|
36
|
+
}
|
|
37
|
+
return (words[0][0] + words[words.length - 1][0]).toUpperCase();
|
|
38
|
+
};
|
|
39
|
+
export const getCultureFlag = (cultureId) => {
|
|
40
|
+
switch (cultureId) {
|
|
41
|
+
case 'it_IT': return it;
|
|
42
|
+
case 'fr_FR': return fr;
|
|
43
|
+
case 'en_US': return en;
|
|
44
|
+
case 'pt_PT': return pt;
|
|
45
|
+
case 'es_ES': return es;
|
|
46
|
+
case 'de_DE': return de;
|
|
47
|
+
default: return it;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
export const getCultureDisplayName = (cultureId) => {
|
|
51
|
+
switch (cultureId) {
|
|
52
|
+
case 'it_IT': return 'Italiano';
|
|
53
|
+
case 'fr_FR': return 'Français';
|
|
54
|
+
case 'en_US': return 'English';
|
|
55
|
+
case 'pt_PT': return 'Português';
|
|
56
|
+
case 'es_ES': return 'Español';
|
|
57
|
+
case 'de_DE': return 'Deutsch';
|
|
58
|
+
default: return 'Italiano';
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
export const copyUserInfoToClipboard = (userName, cultureId, archiveId, archiveDesc, endpoint, domain) => {
|
|
62
|
+
const userInfo = {
|
|
63
|
+
username: userName,
|
|
64
|
+
endpoint: endpoint,
|
|
65
|
+
cultureID: cultureId,
|
|
66
|
+
archiveID: archiveId,
|
|
67
|
+
archiveDescription: archiveDesc,
|
|
68
|
+
domain: domain ?? 'undefined',
|
|
69
|
+
};
|
|
70
|
+
navigator.clipboard.writeText(JSON.stringify(userInfo, null, 2))
|
|
71
|
+
.then(() => {
|
|
72
|
+
ShowAlert({
|
|
73
|
+
message: SDKUI_Localizator.OperationSuccess,
|
|
74
|
+
mode: 'success',
|
|
75
|
+
title: SDKUI_Localizator.CopyUserInfo,
|
|
76
|
+
duration: 3000
|
|
77
|
+
});
|
|
78
|
+
})
|
|
79
|
+
.catch(() => {
|
|
80
|
+
ShowAlert({
|
|
81
|
+
message: SDKUI_Localizator.FailedToCopyToClipboard,
|
|
82
|
+
mode: 'error',
|
|
83
|
+
title: 'Error',
|
|
84
|
+
duration: 3000
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
export const TMSearchBar = ({ searchValue, onSearchValueChanged, maxWidth, marginLeft }) => {
|
|
89
|
+
const deviceType = useDeviceType();
|
|
90
|
+
return (_jsxs(StyledSearchBarContainer, { style: { maxWidth: maxWidth ? maxWidth : deviceType === DeviceType.MOBILE ? '65%' : '650px', marginLeft: marginLeft ? marginLeft : deviceType === DeviceType.MOBILE ? '10px' : '20px' }, "$isMobile": deviceType === DeviceType.MOBILE, children: [" ", _jsx(IconSearch, { fontSize: 12, color: '#00000060', style: { position: 'absolute', width: '20px', height: '20px', left: '5px', top: '5px', zIndex: 1 } }), _jsx(StyledSearchBar, { placeholder: SDKUI_Localizator.Search + '...', type: "text", value: searchValue, onChange: (e) => onSearchValueChanged(e.target.value) }), searchValue.length > 0 && _jsx(IconCloseOutline, { onClick: () => onSearchValueChanged(''), color: '#00000060', style: { cursor: 'pointer', position: 'absolute', width: '20px', height: '20px', right: '5px', top: '5px', zIndex: 1 } })] }));
|
|
91
|
+
};
|
|
92
|
+
const TMHeader = ({ customButtons = _jsx(_Fragment, {}), onMenusOpen, showSettingsMenu = true, showSearchBar = true, clearSearchJobValue, clearSearchQEValue, searchContext = TMSearchContext.JOBS, onChangePassword, onLogout, settingsMenuContext, onSeacrhJobsValueChange, onSeacrhJobslistValueChange, onSeacrhProcessMonitorValueChange, onSeacrhProcessValueChange, onSeacrhPlatformValueChange, onSeacrhQEValueChange, onSettingsClick }) => {
|
|
93
|
+
const [appRoutes, setAppRoutes] = useState();
|
|
94
|
+
const [menuStatus, setMenuStatus] = useState(false);
|
|
95
|
+
const [showAppMenu, setShowAppMenu] = useState(false);
|
|
96
|
+
const [searchJobListValue, setSearchJobListValue] = useState('');
|
|
97
|
+
const [searchJobsValue, setSearchJobsValue] = useState('');
|
|
98
|
+
const [searchProcessesValue, setSearchProcessesValue] = useState('');
|
|
99
|
+
const [searchProcessMonitorValue, setSearchProcessMonitorValue] = useState('');
|
|
100
|
+
const [searchPlatformValue, setSearchPlatformValue] = useState('');
|
|
101
|
+
const [searchQEValue, setSearchQEValue] = useState('');
|
|
102
|
+
const tmSession = SDK_Globals.tmSession;
|
|
103
|
+
const deviceType = useDeviceType();
|
|
104
|
+
let isMobile = deviceType == DeviceType.MOBILE;
|
|
105
|
+
const menuRef = useRef(null);
|
|
106
|
+
const userIcon = useRef(null);
|
|
107
|
+
const logoRef = useRef(null);
|
|
108
|
+
const appMenuRef = useRef(null);
|
|
109
|
+
const userName = tmSession?.SessionDescr?.userName ?? 'User';
|
|
110
|
+
const archiveId = tmSession?.SessionDescr?.archiveID ?? 'No Archive';
|
|
111
|
+
const archiveDesc = tmSession?.SessionDescr?.description ?? 'No Description';
|
|
112
|
+
const endpoint = tmSession?.TopMediaServer.BaseAddress ?? 'No Endpoint';
|
|
113
|
+
const domain = tmSession?.SessionDescr?.domain;
|
|
114
|
+
const cultureId = tmSession?.SessionDescr?.cultureID ?? CultureIDs.It_IT;
|
|
115
|
+
const userInitials = getInitials(userName);
|
|
116
|
+
const avatarColor = getAvatarColor(userName);
|
|
117
|
+
const cultureFlag = getCultureFlag(cultureId);
|
|
118
|
+
const cultureName = getCultureDisplayName(cultureId);
|
|
119
|
+
const headerAppName = useMemo(() => {
|
|
120
|
+
switch (SDK_Globals.appModule) {
|
|
121
|
+
case AppModules.WORD_CONNECTOR:
|
|
122
|
+
case AppModules.EXCEL_CONNECTOR:
|
|
123
|
+
case AppModules.OUTLOOK_CONNECTOR:
|
|
124
|
+
case AppModules.POWERPOINT_CONNECTOR: return '';
|
|
125
|
+
default: return SDK_Globals.appModule;
|
|
126
|
+
}
|
|
127
|
+
}, [SDK_Globals.appModule, AppModules]);
|
|
128
|
+
useEffect(() => { clearSearchJobValue && setSearchJobsValue(''); }, [clearSearchJobValue]);
|
|
129
|
+
useEffect(() => { clearSearchQEValue && setSearchQEValue(''); }, [clearSearchQEValue]);
|
|
130
|
+
useEffect(() => {
|
|
131
|
+
switch (searchContext) {
|
|
132
|
+
case TMSearchContext.JOBS_LIST:
|
|
133
|
+
onSeacrhJobslistValueChange && onSeacrhJobslistValueChange(searchJobListValue);
|
|
134
|
+
break;
|
|
135
|
+
case TMSearchContext.JOBS:
|
|
136
|
+
onSeacrhJobsValueChange && onSeacrhJobsValueChange(searchJobsValue);
|
|
137
|
+
break;
|
|
138
|
+
case TMSearchContext.PROCESSES:
|
|
139
|
+
onSeacrhProcessValueChange && onSeacrhProcessValueChange(searchProcessesValue);
|
|
140
|
+
break;
|
|
141
|
+
case TMSearchContext.PROCESS_MONITOR:
|
|
142
|
+
onSeacrhProcessMonitorValueChange && onSeacrhProcessMonitorValueChange(searchProcessMonitorValue);
|
|
143
|
+
break;
|
|
144
|
+
case TMSearchContext.PLATFORM:
|
|
145
|
+
onSeacrhPlatformValueChange && onSeacrhPlatformValueChange(searchPlatformValue);
|
|
146
|
+
break;
|
|
147
|
+
case TMSearchContext.QE:
|
|
148
|
+
onSeacrhQEValueChange && onSeacrhQEValueChange(searchQEValue);
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
}, [searchContext, searchJobListValue, searchJobsValue, searchProcessMonitorValue, searchProcessesValue, searchPlatformValue, searchQEValue]);
|
|
152
|
+
const openMenuTimer = useRef(null);
|
|
153
|
+
useEffect(() => {
|
|
154
|
+
function handleClickOutside(event) {
|
|
155
|
+
if (menuRef.current && !menuRef.current.contains(event.target) && !userIcon.current?.contains(event.target)) {
|
|
156
|
+
if (menuStatus) {
|
|
157
|
+
setMenuStatus(false);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
document.addEventListener('click', handleClickOutside);
|
|
162
|
+
return () => document.removeEventListener('click', handleClickOutside);
|
|
163
|
+
}, [menuRef, userIcon, menuStatus]);
|
|
164
|
+
useEffect(() => {
|
|
165
|
+
if (SDK_Globals.appModule === AppModules.WORD_CONNECTOR)
|
|
166
|
+
return;
|
|
167
|
+
fetch('../appConfig.json')
|
|
168
|
+
.then(res => res.json())
|
|
169
|
+
.then(json => setAppRoutes(Object.values(json.appRoutes)));
|
|
170
|
+
}, [SDK_Globals.appModule]);
|
|
171
|
+
useEffect(() => {
|
|
172
|
+
return () => {
|
|
173
|
+
if (openMenuTimer.current)
|
|
174
|
+
clearTimeout(openMenuTimer.current);
|
|
175
|
+
};
|
|
176
|
+
}, []);
|
|
177
|
+
useEffect(() => {
|
|
178
|
+
if (!showAppMenu)
|
|
179
|
+
return;
|
|
180
|
+
const safe = 20;
|
|
181
|
+
const handleMouseMove = (e) => {
|
|
182
|
+
const logoRect = logoRef.current?.getBoundingClientRect();
|
|
183
|
+
const menuRect = appMenuRef.current?.getBoundingClientRect();
|
|
184
|
+
const insideLogo = logoRect &&
|
|
185
|
+
e.clientX >= logoRect.left - safe &&
|
|
186
|
+
e.clientX <= logoRect.right + safe &&
|
|
187
|
+
e.clientY >= logoRect.top - safe &&
|
|
188
|
+
e.clientY <= logoRect.bottom + safe;
|
|
189
|
+
const insideMenu = menuRect &&
|
|
190
|
+
e.clientX >= menuRect.left - safe &&
|
|
191
|
+
e.clientX <= menuRect.right + safe &&
|
|
192
|
+
e.clientY >= menuRect.top - safe &&
|
|
193
|
+
e.clientY <= menuRect.bottom + safe;
|
|
194
|
+
if (!insideLogo && !insideMenu) {
|
|
195
|
+
setShowAppMenu(false);
|
|
196
|
+
}
|
|
197
|
+
};
|
|
198
|
+
window.addEventListener('mousemove', handleMouseMove);
|
|
199
|
+
return () => window.removeEventListener('mousemove', handleMouseMove);
|
|
200
|
+
}, [showAppMenu]);
|
|
201
|
+
const hasAdministrativeLevel = (sd) => {
|
|
202
|
+
if (sd.userLevel == UserLevels.SystemAdministrator)
|
|
203
|
+
return true;
|
|
204
|
+
if (sd.userLevel == UserLevels.Administrator)
|
|
205
|
+
return true;
|
|
206
|
+
if (sd.userLevel == UserLevels.AutonomousAdministrator)
|
|
207
|
+
return true;
|
|
208
|
+
return false;
|
|
209
|
+
};
|
|
210
|
+
const isAdministrativeLevel = useMemo(() => {
|
|
211
|
+
return hasAdministrativeLevel(tmSession?.SessionDescr);
|
|
212
|
+
}, [tmSession?.SessionDescr]);
|
|
213
|
+
const openAppsHandler = (appName, session, appRoutes) => {
|
|
214
|
+
if (!appRoutes) {
|
|
215
|
+
ShowAlert({ message: `App routes are not defined`, mode: 'error', title: appName, duration: 3000 });
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
const route = appRoutes.find(route => route.appName === appName);
|
|
219
|
+
if (route) {
|
|
220
|
+
openApps(appName, session, appRoutes);
|
|
221
|
+
}
|
|
222
|
+
else {
|
|
223
|
+
ShowAlert({ message: `Route is not found`, mode: 'info', title: appName, duration: 3000 });
|
|
224
|
+
}
|
|
225
|
+
setShowAppMenu(false);
|
|
226
|
+
};
|
|
227
|
+
const isTopMediaAuth = useMemo(() => {
|
|
228
|
+
return tmSession?.SessionDescr?.authenticationMode === AuthenticationModes.TopMedia;
|
|
229
|
+
}, [tmSession]);
|
|
230
|
+
const appModuleHandler = useMemo(() => {
|
|
231
|
+
if (SDK_Globals.appModule === AppModules.ORCHESTRATOR) {
|
|
232
|
+
return { app_1: AppModules.DESIGNER, app_2: AppModules.SURFER };
|
|
233
|
+
}
|
|
234
|
+
if (SDK_Globals.appModule === AppModules.DESIGNER) {
|
|
235
|
+
return { app_1: AppModules.ORCHESTRATOR, app_2: AppModules.SURFER };
|
|
236
|
+
}
|
|
237
|
+
return { app_1: AppModules.DESIGNER, app_2: AppModules.ORCHESTRATOR };
|
|
238
|
+
;
|
|
239
|
+
}, [SDK_Globals.appModule]);
|
|
240
|
+
const isOfficeConnector = useMemo(() => {
|
|
241
|
+
return SDK_Globals.appModule === AppModules.WORD_CONNECTOR || SDK_Globals.appModule === AppModules.EXCEL_CONNECTOR || SDK_Globals.appModule === AppModules.POWERPOINT_CONNECTOR || SDK_Globals.appModule === AppModules.OUTLOOK_CONNECTOR;
|
|
242
|
+
}, [SDK_Globals.appModule]);
|
|
243
|
+
return (_jsxs(StyledHeaderContainer, { "$appName": SDK_Globals.appModule, children: [(isAdministrativeLevel && !isOfficeConnector) &&
|
|
244
|
+
_jsx(TMResizableMenu, { ref: appMenuRef, isVisible: showAppMenu, top: 58, left: 10, resizable: false, maxWidth: 215, minWidth: 215, maxHeight: 180, minHeight: 180, onClose: () => { }, children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '10px' }, children: [_jsx("h5", { style: { color: TMColors.primary }, children: "Accessi ad altre applicazioni " }), _jsx("hr", {}), _jsxs("div", { style: { display: 'flex', gap: '10px', alignItems: 'center', width: '100%' }, children: [_jsxs(AppMenuButton, { onClick: () => openAppsHandler(appModuleHandler.app_1, tmSession, appRoutes), "$bgColor": '#482234', children: [_jsx("img", { src: six, alt: appModuleHandler.app_1, width: 30, height: 30 }), " ", appModuleHandler.app_1.toUpperCase()] }), _jsxs(AppMenuButton, { onClick: () => openAppsHandler(appModuleHandler.app_2, tmSession, appRoutes), "$bgColor": '#1d6f42', children: [_jsx("img", { src: six, alt: appModuleHandler.app_2, width: 30, height: 30 }), " ", appModuleHandler.app_2.toUpperCase()] })] })] }) }), _jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', width: '100%', gap: isMobile ? 5 : 15 }, children: [_jsxs("div", { style: { height: '50px', display: 'flex', alignItems: 'center', gap: 20, justifyContent: 'center' }, children: [_jsx(StyledLogo, { ref: logoRef, style: { cursor: (isAdministrativeLevel && !isOfficeConnector) ? 'pointer' : 'default' }, onMouseEnter: () => {
|
|
245
|
+
if (openMenuTimer.current)
|
|
246
|
+
clearTimeout(openMenuTimer.current);
|
|
247
|
+
openMenuTimer.current = setTimeout(() => { setShowAppMenu(true); onMenusOpen?.(); }, 200);
|
|
248
|
+
}, onMouseLeave: () => {
|
|
249
|
+
if (openMenuTimer.current)
|
|
250
|
+
clearTimeout(openMenuTimer.current);
|
|
251
|
+
}, src: six, height: isMobile ? 35 : 40, alt: "" }), (!isMobile || SDK_Globals.appModule === AppModules.WORD_CONNECTOR) && _jsx(StyledHeaderAppText, { children: headerAppName })] }), showSearchBar && _jsxs(_Fragment, { children: [searchContext === TMSearchContext.JOBS_LIST && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchJobListValue(e), searchValue: searchJobListValue }), searchContext === TMSearchContext.JOBS && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchJobsValue(e), searchValue: searchJobsValue }), searchContext === TMSearchContext.PROCESSES && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchProcessesValue(e), searchValue: searchProcessesValue }), searchContext === TMSearchContext.PROCESS_MONITOR && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchProcessMonitorValue(e), searchValue: searchProcessMonitorValue }), searchContext === TMSearchContext.PLATFORM && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchPlatformValue(e), searchValue: searchPlatformValue }), searchContext === TMSearchContext.QE && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchQEValue(e), searchValue: searchQEValue })] }), customButtons] }), showSettingsMenu && _jsxs(StyledHeaderIcon, { onClick: () => onSettingsClick?.(), children: [" ", _jsx(IconHeaderSettings, { fontSize: 24 }), " "] }), _jsx(UserAvatarContainer, { "$isSelected": menuStatus, ref: userIcon, onClick: e => {
|
|
252
|
+
e.stopPropagation();
|
|
253
|
+
e.preventDefault();
|
|
254
|
+
setMenuStatus(prev => !prev);
|
|
255
|
+
}, children: _jsx(UserAvatar, { "$bgColor": avatarColor, children: userInitials }) }), menuStatus &&
|
|
256
|
+
_jsx(TMResizableMenu, { ref: menuRef, isVisible: menuStatus, top: 60, right: 10, resizable: false, maxWidth: 300, minWidth: 300, maxHeight: 180, minHeight: 180, padding: 0, children: _jsxs(MenuContainer, { children: [_jsxs(UserProfileSection, { children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: 12, height: 'max-content' }, children: [_jsxs("div", { style: { display: 'flex', alignItems: 'center', gap: 12, height: 'max-content' }, children: [_jsx(AvatarContainer, { children: _jsx(UserAvatarLarge, { "$bgColor": avatarColor, children: userInitials }) }), _jsxs(UserInfo, { children: [_jsxs(UserNameContainer, { children: [_jsx(UserName, { children: userName }), _jsx(CultureFlag, { src: cultureFlag, alt: cultureName, title: cultureName })] }), domain && _jsx(SessionInfo, { style: { padding: 0, margin: 0 }, children: `(${domain})` })] })] }), _jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', justifyContent: 'center', gap: 5 }, children: [_jsx(SessionInfo, { children: endpoint }), _jsx(SessionInfo, { children: archiveId + ' (' + archiveDesc + ')' })] })] }), _jsx(CopyIcon, { onClick: (e) => {
|
|
257
|
+
e.stopPropagation();
|
|
258
|
+
copyUserInfoToClipboard(userName, cultureId, archiveId, archiveDesc, endpoint, domain);
|
|
259
|
+
}, title: SDKUI_Localizator.CopyUserInfo, children: _jsx(IconCopy, { fontSize: 12 }) }), _jsx(LogoutButton, { onClick: () => {
|
|
260
|
+
setMenuStatus(false);
|
|
261
|
+
onLogout && onLogout();
|
|
262
|
+
}, children: _jsx(LogoutText, { children: SDKUI_Localizator.Logout }) })] }), _jsxs(BottomActionsContainer, { children: [isTopMediaAuth && (_jsx(BottomActionButton, { onClick: () => {
|
|
263
|
+
setMenuStatus(false);
|
|
264
|
+
onChangePassword && onChangePassword();
|
|
265
|
+
}, children: _jsx(BottomActionText, { children: SDKUI_Localizator.ChangePassword }) })), _jsx(BottomActionButton, { onClick: () => {
|
|
266
|
+
setMenuStatus(false);
|
|
267
|
+
TMMessageBoxManager.show({
|
|
268
|
+
buttons: [ButtonNames.OK],
|
|
269
|
+
title: SDK_Globals.appModule,
|
|
270
|
+
message: _jsx(TMAboutApp, { app: true, skdui: true, sdk: true, websdk: true })
|
|
271
|
+
});
|
|
272
|
+
}, children: _jsx(BottomActionText, { children: SDKUI_Localizator.About }) })] })] }) })] }));
|
|
273
|
+
};
|
|
274
|
+
export default TMHeader;
|
|
275
|
+
export function IconHeaderNotifications(props) {
|
|
276
|
+
return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 31 31", width: "1em", height: "1em", ...props, children: [_jsx("defs", {}), _jsxs("g", { children: [_jsxs("g", { children: [_jsx("path", { stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", d: "m4.37,25.81v-14.18C4.37,5.48,9.36.5,15.5.5s11.13,4.98,11.13,11.13v14.18" }), _jsx("line", { stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", x1: ".5", y1: "25.81", x2: "30.5", y2: "25.81" })] }), _jsx("path", { stroke: "currentColor", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", d: "m20.19,25.81c0,2.59-2.1,4.69-4.69,4.69s-4.69-2.1-4.69-4.69h9.39Z" })] })] }));
|
|
277
|
+
}
|
|
278
|
+
export function IconHeaderSettings(props) {
|
|
279
|
+
return (_jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 48 48", width: "1em", height: "1em", ...props, children: _jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5px", d: "M39.23 26a17 17 0 0 0 .14-2a17 17 0 0 0-.14-2l4.33-3.39a1 1 0 0 0 .25-1.31l-4.1-7.11a1 1 0 0 0-1.25-.44l-5.11 2.06a15.7 15.7 0 0 0-3.46-2l-.77-5.43a1 1 0 0 0-1-.86H19.9a1 1 0 0 0-1 .86l-.77 5.43a15.4 15.4 0 0 0-3.46 2L9.54 9.75a1 1 0 0 0-1.25.44l-4.1 7.11a1 1 0 0 0 .25 1.31L8.76 22a17 17 0 0 0-.14 2a17 17 0 0 0 .14 2l-4.32 3.39a1 1 0 0 0-.25 1.31l4.1 7.11a1 1 0 0 0 1.25.44l5.11-2.06a15.7 15.7 0 0 0 3.46 2l.77 5.43a1 1 0 0 0 1 .86h8.2a1 1 0 0 0 1-.86l.77-5.43a15.4 15.4 0 0 0 3.46-2l5.11 2.06a1 1 0 0 0 1.25-.44l4.1-7.11a1 1 0 0 0-.25-1.31ZM24 31.18A7.18 7.18 0 1 1 31.17 24A7.17 7.17 0 0 1 24 31.18" }) }));
|
|
280
|
+
}
|
|
281
|
+
const iconPulse = keyframes `
|
|
282
|
+
0% { transform: scale(1); box-shadow: 0 0 0 0 ${TMColors.primary}20; }
|
|
283
|
+
50% { transform: scale(1.05); box-shadow: 0 0 0 8px ${TMColors.primary}10; }
|
|
284
|
+
100% { transform: scale(1); box-shadow: 0 0 0 0 ${TMColors.primary}00; }
|
|
285
|
+
`;
|
|
286
|
+
const iconBounce = keyframes `
|
|
287
|
+
0%, 20%, 60%, 100% { transform: translateY(0); }
|
|
288
|
+
40% { transform: translateY(-3px); }
|
|
289
|
+
80% { transform: translateY(-1px); }
|
|
290
|
+
`;
|
|
291
|
+
const slideInFromLeft = keyframes `
|
|
292
|
+
from { opacity: 0; transform: translateX(-20px); }
|
|
293
|
+
to { opacity: 1; transform: translateX(0); }
|
|
294
|
+
`;
|
|
295
|
+
const fadeIn = keyframes `
|
|
296
|
+
from { opacity: 0; }
|
|
297
|
+
to { opacity: 1; }
|
|
298
|
+
`;
|
|
299
|
+
const StyledLogo = styled.img `
|
|
300
|
+
image-rendering: auto;
|
|
301
|
+
shape-rendering: auto;
|
|
302
|
+
`;
|
|
303
|
+
const StyledHeaderContainer = styled.div `
|
|
304
|
+
position:fixed;
|
|
305
|
+
width: 100%;
|
|
306
|
+
height: 60px;
|
|
307
|
+
background-color:transparent;
|
|
308
|
+
opacity: 1;
|
|
309
|
+
display: flex;
|
|
310
|
+
flex-direction: row;
|
|
311
|
+
width: 100%;
|
|
312
|
+
justify-content: space-between;
|
|
313
|
+
align-items: center;
|
|
314
|
+
padding: 0px 10px;
|
|
315
|
+
`;
|
|
316
|
+
const StyledHeaderIcon = styled.div `
|
|
317
|
+
position: relative;
|
|
318
|
+
width: 40px;
|
|
319
|
+
height: 40px;
|
|
320
|
+
margin-left: 10px;
|
|
321
|
+
display: flex;
|
|
322
|
+
align-items: center;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
color: ${TMColors.primary};
|
|
325
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
326
|
+
cursor: pointer;
|
|
327
|
+
border-radius: 50%;
|
|
328
|
+
|
|
329
|
+
&:before {
|
|
330
|
+
content: '';
|
|
331
|
+
position: absolute;
|
|
332
|
+
top: 50%;
|
|
333
|
+
left: 50%;
|
|
334
|
+
width: 35px;
|
|
335
|
+
height: 35px;
|
|
336
|
+
transform: translate(-50%, -50%);
|
|
337
|
+
border-radius: 50%;
|
|
338
|
+
background: ${TMColors.primary}20;
|
|
339
|
+
opacity: 0;
|
|
340
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
341
|
+
z-index: -1;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&:hover {
|
|
345
|
+
color: ${TMColors.primary};
|
|
346
|
+
transform: translateY(-2px);
|
|
347
|
+
&:before {
|
|
348
|
+
opacity: 1;
|
|
349
|
+
}
|
|
350
|
+
svg {
|
|
351
|
+
animation: ${iconBounce} 0.6s ease-in-out;
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
&:active {
|
|
356
|
+
transform: translateY(0);
|
|
357
|
+
color: ${TMColors.primary};
|
|
358
|
+
&:before {
|
|
359
|
+
opacity: 1;
|
|
360
|
+
background: ${TMColors.primary}40;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
${props => props.$isSelected && `
|
|
365
|
+
&:before {
|
|
366
|
+
opacity: 1;
|
|
367
|
+
background: ${TMColors.primary}25;
|
|
368
|
+
}
|
|
369
|
+
`}
|
|
370
|
+
|
|
371
|
+
&.has-notification {
|
|
372
|
+
animation: ${iconPulse} 2s infinite;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
&:focus {
|
|
376
|
+
outline: none;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
svg {
|
|
380
|
+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
381
|
+
filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
|
|
382
|
+
}
|
|
383
|
+
`;
|
|
384
|
+
const StyledSearchBarContainer = styled.div ` position: relative; height:30px; width: 100%; max-width: ${props => props.$isMobile ? '65%' : '650px'}; margin-left: ${props => props.$isMobile ? '10px' : '50px'}; `;
|
|
385
|
+
const StyledSearchBar = styled.input ` background: #FFFFFF 0% 0% no-repeat padding-box; border: 1px solid #dbdbdb; border-radius: 5px; padding: 5px 30px; width:100%; transition: 100ms linear; &:focus{ outline: none; border-bottom: 2px solid ${TMColors.primary}; } `;
|
|
386
|
+
const StyledHeaderAppText = styled.h2 ` text-align: left; letter-spacing: 0px; color: ${TMColors.primary}; opacity: 1; `;
|
|
387
|
+
const AppMenuButton = styled.div `
|
|
388
|
+
width: 90px;
|
|
389
|
+
height: 90px;
|
|
390
|
+
display: flex;
|
|
391
|
+
flex-direction: column;
|
|
392
|
+
align-items: center;
|
|
393
|
+
justify-content: center;
|
|
394
|
+
background: white;
|
|
395
|
+
color: #2459A4;
|
|
396
|
+
font-size: 0.8rem;
|
|
397
|
+
text-transform: uppercase;
|
|
398
|
+
border-radius: 10px;
|
|
399
|
+
margin: 8px 0;
|
|
400
|
+
cursor: pointer;
|
|
401
|
+
box-shadow: 0 2px 8px #2459a41a;
|
|
402
|
+
user-select: none;
|
|
403
|
+
gap: 5px;
|
|
404
|
+
transition:
|
|
405
|
+
transform 0.18s cubic-bezier(.4,0,.2,1),
|
|
406
|
+
box-shadow 0.18s cubic-bezier(.4,0,.2,1);
|
|
407
|
+
&:hover {
|
|
408
|
+
transform: translateY(-2px) scale(1.06);
|
|
409
|
+
box-shadow: 0 6px 18px #2459a433;
|
|
410
|
+
}
|
|
411
|
+
`;
|
|
412
|
+
const UserAvatarContainer = styled.div `
|
|
413
|
+
position: relative;
|
|
414
|
+
width: 40px;
|
|
415
|
+
height: 40px;
|
|
416
|
+
margin-left: 10px;
|
|
417
|
+
display: flex;
|
|
418
|
+
align-items: center;
|
|
419
|
+
justify-content: center;
|
|
420
|
+
cursor: pointer;
|
|
421
|
+
border-radius: 50%;
|
|
422
|
+
transition: all 0.2s ease;
|
|
423
|
+
padding: 2px;
|
|
424
|
+
|
|
425
|
+
${props => props.$isSelected && `
|
|
426
|
+
background: ${TMColors.primary}20;
|
|
427
|
+
transform: scale(1.05);
|
|
428
|
+
`}
|
|
429
|
+
|
|
430
|
+
&:hover {
|
|
431
|
+
background: ${TMColors.primary}15;
|
|
432
|
+
transform: scale(1.05);
|
|
433
|
+
}
|
|
434
|
+
`;
|
|
435
|
+
const UserAvatar = styled.div `
|
|
436
|
+
width: 32px;
|
|
437
|
+
height: 32px;
|
|
438
|
+
border-radius: 50%;
|
|
439
|
+
background: ${props => props.$bgColor};
|
|
440
|
+
color: white;
|
|
441
|
+
display: flex;
|
|
442
|
+
align-items: center;
|
|
443
|
+
justify-content: center;
|
|
444
|
+
font-size: 14px;
|
|
445
|
+
font-weight: 600;
|
|
446
|
+
letter-spacing: 0.5px;
|
|
447
|
+
user-select: none;
|
|
448
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
449
|
+
`;
|
|
450
|
+
const UserAvatarLarge = styled(UserAvatar) `
|
|
451
|
+
width: 48px;
|
|
452
|
+
height: 48px;
|
|
453
|
+
font-size: 18px;
|
|
454
|
+
flex-shrink: 0;
|
|
455
|
+
`;
|
|
456
|
+
const MenuContainer = styled.div `
|
|
457
|
+
display: flex;
|
|
458
|
+
flex-direction: column;
|
|
459
|
+
padding: 0;
|
|
460
|
+
background: white;
|
|
461
|
+
border-radius: 8px;
|
|
462
|
+
overflow: hidden;
|
|
463
|
+
height: 100%;
|
|
464
|
+
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
|
|
465
|
+
`;
|
|
466
|
+
const UserProfileSection = styled.div `
|
|
467
|
+
display: flex;
|
|
468
|
+
padding: 20px;
|
|
469
|
+
background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
|
|
470
|
+
border-bottom: 1px solid #e1e5e9;
|
|
471
|
+
gap: 12px;
|
|
472
|
+
opacity: 0;
|
|
473
|
+
animation: ${fadeIn} 0.3s ease-out forwards;
|
|
474
|
+
flex: 1;
|
|
475
|
+
`;
|
|
476
|
+
const UserProfileSectionWithUserName = styled.div `
|
|
477
|
+
display: flex;
|
|
478
|
+
align-items: center;
|
|
479
|
+
gap: 12px;
|
|
480
|
+
`;
|
|
481
|
+
const UserInfo = styled.div `
|
|
482
|
+
display: flex;
|
|
483
|
+
flex-direction: column;
|
|
484
|
+
gap: 2px;
|
|
485
|
+
min-width: 0;
|
|
486
|
+
flex: 1;
|
|
487
|
+
`;
|
|
488
|
+
const UserName = styled.div `
|
|
489
|
+
font-size: 16px;
|
|
490
|
+
font-weight: 600;
|
|
491
|
+
color: #242424;
|
|
492
|
+
white-space: nowrap;
|
|
493
|
+
overflow: hidden;
|
|
494
|
+
text-overflow: ellipsis;
|
|
495
|
+
line-height: 1.2;
|
|
496
|
+
`;
|
|
497
|
+
const SessionInfo = styled.div `
|
|
498
|
+
font-size: 11px;
|
|
499
|
+
color: #605e5c;
|
|
500
|
+
font-weight: 400;
|
|
501
|
+
line-height: 1;
|
|
502
|
+
white-space: nowrap;
|
|
503
|
+
overflow: hidden;
|
|
504
|
+
text-overflow: ellipsis;
|
|
505
|
+
`;
|
|
506
|
+
const CultureFlag = styled.img `
|
|
507
|
+
width: 14px;
|
|
508
|
+
height: 14px;
|
|
509
|
+
object-fit: cover;
|
|
510
|
+
flex-shrink: 0;
|
|
511
|
+
`;
|
|
512
|
+
const LogoutButton = styled.div `
|
|
513
|
+
position: absolute;
|
|
514
|
+
top: 20px;
|
|
515
|
+
right: 20px;
|
|
516
|
+
cursor: pointer;
|
|
517
|
+
transition: all 0.2s ease;
|
|
518
|
+
margin-left: auto;
|
|
519
|
+
flex-shrink: 0;
|
|
520
|
+
|
|
521
|
+
&:hover {
|
|
522
|
+
transform: translateY(-1px);
|
|
523
|
+
color: ${TMColors.primary};
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
&:active {
|
|
527
|
+
transform: translateY(0);
|
|
528
|
+
}
|
|
529
|
+
`;
|
|
530
|
+
const LogoutText = styled.span `
|
|
531
|
+
font-size: 13px;
|
|
532
|
+
color: #605e5c;
|
|
533
|
+
font-weight: 500;
|
|
534
|
+
transition: color 0.2s ease;
|
|
535
|
+
white-space: nowrap;
|
|
536
|
+
|
|
537
|
+
&:hover {
|
|
538
|
+
color: ${TMColors.primary};
|
|
539
|
+
}
|
|
540
|
+
`;
|
|
541
|
+
const AvatarContainer = styled.div `
|
|
542
|
+
position: relative;
|
|
543
|
+
flex-shrink: 0;
|
|
544
|
+
`;
|
|
545
|
+
const CopyIcon = styled.div `
|
|
546
|
+
position: absolute;
|
|
547
|
+
bottom: 50px;
|
|
548
|
+
right: 15px;
|
|
549
|
+
width: 20px;
|
|
550
|
+
height: 20px;
|
|
551
|
+
background: white;
|
|
552
|
+
border: 1px solid #e1e5e9;
|
|
553
|
+
border-radius: 50%;
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
justify-content: center;
|
|
557
|
+
cursor: pointer;
|
|
558
|
+
color: #605e5c;
|
|
559
|
+
transition: all 0.2s ease;
|
|
560
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
|
|
561
|
+
z-index: 10;
|
|
562
|
+
opacity: 0.6;
|
|
563
|
+
|
|
564
|
+
&:hover {
|
|
565
|
+
background: #b7b7b7;
|
|
566
|
+
color: white;
|
|
567
|
+
opacity: 1;
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
&:active {
|
|
571
|
+
transform: scale(0.95);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
svg {
|
|
575
|
+
transition: all 0.2s ease;
|
|
576
|
+
}
|
|
577
|
+
`;
|
|
578
|
+
const BottomActionsContainer = styled.div `
|
|
579
|
+
display: flex;
|
|
580
|
+
justify-content: space-between;
|
|
581
|
+
align-items: center;
|
|
582
|
+
padding: 12px 20px;
|
|
583
|
+
background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
|
|
584
|
+
border-top: 1px solid #e1e5e9;
|
|
585
|
+
gap: 20px;
|
|
586
|
+
`;
|
|
587
|
+
const BottomActionButton = styled.div `
|
|
588
|
+
cursor: pointer;
|
|
589
|
+
transition: all 0.2s ease;
|
|
590
|
+
|
|
591
|
+
&:hover {
|
|
592
|
+
transform: translateY(-1px);
|
|
593
|
+
color: ${TMColors.primary};
|
|
594
|
+
}
|
|
595
|
+
|
|
596
|
+
&:active {
|
|
597
|
+
transform: translateY(0);
|
|
598
|
+
}
|
|
599
|
+
`;
|
|
600
|
+
const BottomActionText = styled.span `
|
|
601
|
+
font-size: 13px;
|
|
602
|
+
color: #605e5c;
|
|
603
|
+
font-weight: 500;
|
|
604
|
+
transition: color 0.2s ease;
|
|
605
|
+
white-space: nowrap;
|
|
606
|
+
|
|
607
|
+
&:hover {
|
|
608
|
+
color: ${TMColors.primary};
|
|
609
|
+
}
|
|
610
|
+
`;
|
|
611
|
+
const UserNameContainer = styled.div `
|
|
612
|
+
display: flex;
|
|
613
|
+
align-items: center;
|
|
614
|
+
gap: 3px;
|
|
615
|
+
min-width: 0;
|
|
616
|
+
`;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AppRouteType = 'route' | 'panel' | 'panelRight' | 'app';
|
|
3
|
+
export interface AppRoute {
|
|
4
|
+
name: string;
|
|
5
|
+
path: string;
|
|
6
|
+
icon?: any;
|
|
7
|
+
element?: JSX.Element;
|
|
8
|
+
category?: string;
|
|
9
|
+
type?: AppRouteType;
|
|
10
|
+
}
|
|
11
|
+
interface ITMSidebar {
|
|
12
|
+
/** List of TMSidebarItem components that make up the menu */
|
|
13
|
+
items: JSX.Element[];
|
|
14
|
+
height?: string;
|
|
15
|
+
width?: string;
|
|
16
|
+
top?: string;
|
|
17
|
+
left?: string;
|
|
18
|
+
borderRightRadius?: string;
|
|
19
|
+
}
|
|
20
|
+
declare const TMSidebar: React.FC<ITMSidebar>;
|
|
21
|
+
export default TMSidebar;
|