@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,48 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useRef } from "react";
|
|
3
|
+
import styled, { keyframes } from "styled-components";
|
|
4
|
+
const fadeIn = keyframes `
|
|
5
|
+
from {
|
|
6
|
+
opacity: 0;
|
|
7
|
+
transform: scale(0.9);
|
|
8
|
+
}
|
|
9
|
+
to {
|
|
10
|
+
opacity: 1;
|
|
11
|
+
transform: scale(1);
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
const MenuContainer = styled.div `
|
|
15
|
+
position: absolute;
|
|
16
|
+
top: ${(props) => (typeof props.$y === "number" ? `${props.$y}px` : props.$y)};
|
|
17
|
+
left: ${(props) => (typeof props.$x === "number" ? `${props.$x}px` : props.$x)};
|
|
18
|
+
background: #2559A5 0% 0% no-repeat padding-box;
|
|
19
|
+
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
|
|
20
|
+
border-radius: 8px;
|
|
21
|
+
padding: 10px;
|
|
22
|
+
opacity: ${(props) => (props.$visible ? 1 : 0)};
|
|
23
|
+
transform-origin: top left;
|
|
24
|
+
animation: ${(props) => (props.$visible ? fadeIn : "none")} 0.3s ease-out;
|
|
25
|
+
transition: opacity 0.2s ease-out;
|
|
26
|
+
z-index:1000;
|
|
27
|
+
`;
|
|
28
|
+
const Menu = ({ visible = false, children, x, y, onClose }) => {
|
|
29
|
+
const menuRef = useRef(null);
|
|
30
|
+
useEffect(() => {
|
|
31
|
+
const handleClickOutside = (event) => {
|
|
32
|
+
if (menuRef.current && !menuRef.current.contains(event.target)) {
|
|
33
|
+
onClose();
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
if (visible) {
|
|
37
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
38
|
+
}
|
|
39
|
+
else {
|
|
40
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
41
|
+
}
|
|
42
|
+
return () => {
|
|
43
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
44
|
+
};
|
|
45
|
+
}, [visible, onClose]);
|
|
46
|
+
return visible ? (_jsx(MenuContainer, { ref: menuRef, "$x": x, "$y": y, "$visible": visible, children: children })) : null;
|
|
47
|
+
};
|
|
48
|
+
export default Menu;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface OTPReaderProps {
|
|
3
|
+
digits: string[];
|
|
4
|
+
resendCooldown?: number;
|
|
5
|
+
header?: any;
|
|
6
|
+
text?: any;
|
|
7
|
+
additionalButtons?: any[];
|
|
8
|
+
isMobile?: boolean;
|
|
9
|
+
onChange: (index: number, value: string) => void;
|
|
10
|
+
onFullChange?: (allDigits: string[]) => void;
|
|
11
|
+
onResendOTP?: () => Promise<void>;
|
|
12
|
+
}
|
|
13
|
+
declare const OTPReader: React.FC<OTPReaderProps>;
|
|
14
|
+
export default OTPReader;
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { LOGINLocalizator } from './LOGINLocalizator';
|
|
5
|
+
import { SDKUI_Localizator } from '../../../helper';
|
|
6
|
+
import ShowAlert from '../../base/TMAlert';
|
|
7
|
+
import TMButton from '../../base/TMButton';
|
|
8
|
+
const OTPReader = ({ digits, onChange, onFullChange, onResendOTP, resendCooldown = 60, header, text, additionalButtons = [], isMobile = false }) => {
|
|
9
|
+
const inputRefs = useRef([]);
|
|
10
|
+
const [resendTimer, setResendTimer] = useState(0);
|
|
11
|
+
useEffect(() => {
|
|
12
|
+
if (inputRefs.current[0]) {
|
|
13
|
+
inputRefs.current[0].focus();
|
|
14
|
+
}
|
|
15
|
+
}, []);
|
|
16
|
+
const clearBtnDisabled = useMemo(() => {
|
|
17
|
+
return !digits.find(d => d.length > 0);
|
|
18
|
+
}, [digits]);
|
|
19
|
+
const handleChange = (value, index) => {
|
|
20
|
+
if (!/^\d?$/.test(value))
|
|
21
|
+
return;
|
|
22
|
+
onChange(index, value);
|
|
23
|
+
if (value && index < 5) {
|
|
24
|
+
inputRefs.current[index + 1]?.focus();
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
const handleKeyDown = (e, index) => {
|
|
28
|
+
if (e.key === 'Backspace' && !digits[index] && index > 0) {
|
|
29
|
+
onChange(index - 1, '');
|
|
30
|
+
inputRefs.current[index - 1]?.focus();
|
|
31
|
+
e.preventDefault();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const handlePaste = (e) => {
|
|
35
|
+
e.preventDefault();
|
|
36
|
+
const text = e.clipboardData.getData('Text').trim();
|
|
37
|
+
const cleaned = text.replace(/\D/g, '');
|
|
38
|
+
if (cleaned.length !== 6) {
|
|
39
|
+
ShowAlert({ message: LOGINLocalizator.InvalidPastedCode, mode: 'warning', duration: 5000, title: LOGINLocalizator.InvalidOtp });
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (onFullChange) {
|
|
43
|
+
onFullChange(cleaned.split(''));
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
cleaned.split('').forEach((digit, i) => {
|
|
47
|
+
onChange(i, digit);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
inputRefs.current[5]?.focus();
|
|
51
|
+
};
|
|
52
|
+
const handleClearOTP = () => {
|
|
53
|
+
if (onFullChange) {
|
|
54
|
+
onFullChange(Array(6).fill(''));
|
|
55
|
+
inputRefs.current[0]?.focus();
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
const handleResendOTP = async () => {
|
|
59
|
+
if (!onResendOTP)
|
|
60
|
+
return;
|
|
61
|
+
try {
|
|
62
|
+
await onResendOTP();
|
|
63
|
+
startCooldown();
|
|
64
|
+
}
|
|
65
|
+
catch (err) {
|
|
66
|
+
ShowAlert({ message: LOGINLocalizator.FailedToResendOtp, mode: 'error', duration: 5000, title: LOGINLocalizator.ResendFailed });
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
const startCooldown = () => {
|
|
70
|
+
setResendTimer(resendCooldown);
|
|
71
|
+
const interval = setInterval(() => {
|
|
72
|
+
setResendTimer((prev) => {
|
|
73
|
+
if (prev <= 1) {
|
|
74
|
+
clearInterval(interval);
|
|
75
|
+
return 0;
|
|
76
|
+
}
|
|
77
|
+
return prev - 1;
|
|
78
|
+
});
|
|
79
|
+
}, 1000);
|
|
80
|
+
};
|
|
81
|
+
const safeDigits = digits.length === 6 ? digits : Array(6).fill('');
|
|
82
|
+
return (_jsxs(Container, { children: [_jsx(LargeTitle, { children: header ?? LOGINLocalizator.EnterOtpCode }), _jsx(Title, { children: text ?? LOGINLocalizator.EnterOtpEmailOnly }), _jsx(InputsWrapper, { children: safeDigits.map((digit, i) => (_jsx(DigitBox, { "$isMobile": isMobile, "$filled": !!digit, maxLength: 1, value: digit, onChange: (e) => handleChange(e.target.value, i), onKeyDown: (e) => handleKeyDown(e, i), onPaste: handlePaste, ref: (el) => (inputRefs.current[i] = el), inputMode: "numeric" }, i * 2))) }), _jsxs(ControlsRow, { "$isMobile": isMobile, children: [_jsx(TMButton, { btnStyle: 'text', disabled: clearBtnDisabled, caption: SDKUI_Localizator.ClearOTP, showTooltip: false, onClick: handleClearOTP, color: 'tertiary' }), onResendOTP && (_jsx(TMButton, { btnStyle: 'text', disabled: resendTimer > 0, caption: resendTimer > 0 ? `${LOGINLocalizator.ResendIn + ' ' + resendTimer}s` : LOGINLocalizator.ResendOtp, showTooltip: false, onClick: handleResendOTP, color: 'success' })), additionalButtons.map((btn, index) => (_jsx("div", { children: btn }, index * 2)))] })] }));
|
|
83
|
+
};
|
|
84
|
+
export default OTPReader;
|
|
85
|
+
const Container = styled.div ` display: flex; flex-direction: column; align-items: center; gap: 2px; `;
|
|
86
|
+
const InputsWrapper = styled.div ` display: flex; gap: 14px; `;
|
|
87
|
+
const DigitBox = styled.input ` width: ${props => props.$isMobile ? '40px' : '50px'}; height: ${props => props.$isMobile ? '50px' : '60px'}; font-size: 30px; text-align: center; border: 2px solid ${({ $filled }) => ($filled ? '#007bff' : '#ccc')}; border-radius: 12px; transition: 0.2s ease; outline: none; background: white; box-shadow: ${({ $filled }) => ($filled ? '0 0 6px #007bffaa' : 'none')}; caret-color: transparent; &:focus { border-color: #007bff; box-shadow: 0 0 6px #007bff55; } `;
|
|
88
|
+
const LargeTitle = styled.h2 ` font-size: 16px; text-align: center; width: 100%; color: #333; margin-bottom: 20px; `;
|
|
89
|
+
const Title = styled.div ` width: 100%; margin-bottom: 20px; font-size: 14px; text-align: center; `;
|
|
90
|
+
const ControlsRow = styled.div ` display: flex; gap: ${props => props.$isMobile ? '2px' : '16px'}; margin-top: ${props => props.$isMobile ? '2px' : '12px'};; align-items: center; flex-direction:${props => props.$isMobile ? 'column' : 'row'}; width: max-content; justify-content: center; `;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import { SDKUI_Localizator, IconInfo } from '../../../helper';
|
|
5
|
+
import { TMColors } from '../../../utils/theme';
|
|
6
|
+
const PasswordStrengthChecker = ({ password, onValidationChange }) => {
|
|
7
|
+
const rules = useMemo(() => {
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
label: SDKUI_Localizator.PasswordRule_Length,
|
|
11
|
+
test: (pw) => pw.length >= 16 && pw.length <= 128,
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: SDKUI_Localizator.PasswordRule_Lowercase,
|
|
15
|
+
test: (pw) => /[a-z]/.test(pw),
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: SDKUI_Localizator.PasswordRule_Uppercase,
|
|
19
|
+
test: (pw) => /[A-Z]/.test(pw),
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: SDKUI_Localizator.PasswordRule_Number,
|
|
23
|
+
test: (pw) => /\d/.test(pw),
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: SDKUI_Localizator.PasswordRule_Special,
|
|
27
|
+
test: (pw) => /[!@#$%^&*()_+\-=[\]{};':"\\|,.<>/?]/.test(pw),
|
|
28
|
+
},
|
|
29
|
+
];
|
|
30
|
+
}, []);
|
|
31
|
+
const [results, setResults] = useState([]);
|
|
32
|
+
useEffect(() => {
|
|
33
|
+
const res = rules.map(rule => rule.test(password));
|
|
34
|
+
setResults(res);
|
|
35
|
+
const isValid = res.every(Boolean);
|
|
36
|
+
const unmetRules = rules.filter((_, i) => !res[i]).map(r => r.label);
|
|
37
|
+
onValidationChange?.(isValid, unmetRules);
|
|
38
|
+
}, [password]);
|
|
39
|
+
return (_jsxs(Wrapper, { children: [_jsxs(Title, { children: [_jsxs(CircleContainer, { children: [" ", _jsx(IconInfo, { color: '#f9c1a8' }), " "] }), SDKUI_Localizator.PasswordRule_Requirement] }), rules.map((rule, i) => (_jsxs(Rule, { "$passed": results[i], children: [" ", rule.label, " "] }, i * 2)))] }));
|
|
40
|
+
};
|
|
41
|
+
export default PasswordStrengthChecker;
|
|
42
|
+
const Wrapper = styled.div ` padding: 10px; border-radius: 12px; background: linear-gradient(135deg, #f9c1a8 0%, white 40%, white 100%); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); max-width: 400px; `;
|
|
43
|
+
const Title = styled.h5 ` font-size: 1rem; margin-bottom: 12px; color: #333; display: flex; align-items: center; gap: 10px; `;
|
|
44
|
+
const CircleContainer = styled.div ` border-radius: 50px; display: flex; align-items: center; justify-content: center; background-color: white; width: 25px; height: 25px; `;
|
|
45
|
+
const Rule = styled.div ` display: flex; align-items: center; gap: 10px; margin-bottom: 8px; color: ${({ $passed }) => ($passed ? TMColors.success : TMColors.error)}; font-weight: 500; font-size: 0.95rem; &::before { content: '${({ $passed }) => ($passed ? '✔' : '✖')}'; font-weight: bold; font-size: 1rem; } `;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ArchiveDescriptor, AuthenticationModes, CultureIDs } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { TMEndpointsType } from './TMLoginForm';
|
|
4
|
+
export interface ITMLoginHistory {
|
|
5
|
+
id: number;
|
|
6
|
+
name: string;
|
|
7
|
+
endpoint: TMEndpointsType | undefined;
|
|
8
|
+
archive: ArchiveDescriptor | undefined;
|
|
9
|
+
domain: string;
|
|
10
|
+
domainAlternative: string;
|
|
11
|
+
authenticationMode: AuthenticationModes;
|
|
12
|
+
username: string;
|
|
13
|
+
language: CultureIDs;
|
|
14
|
+
onBehalfUsername: string;
|
|
15
|
+
preferred: boolean;
|
|
16
|
+
color?: string;
|
|
17
|
+
icon?: any;
|
|
18
|
+
}
|
|
19
|
+
interface RapidAccessLoginProps {
|
|
20
|
+
isMobile?: boolean;
|
|
21
|
+
onClose?: () => void;
|
|
22
|
+
onSelect?: (rapidAccess: ITMLoginHistory) => void;
|
|
23
|
+
}
|
|
24
|
+
declare const RapidAccessLogin: React.FC<RapidAccessLoginProps>;
|
|
25
|
+
export default RapidAccessLogin;
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useEffect, useMemo, useState } from 'react';
|
|
3
|
+
import styled from 'styled-components';
|
|
4
|
+
import TextBox from './TextBox';
|
|
5
|
+
import { Divider } from './ChangePasswordInputs';
|
|
6
|
+
import { AuthenticationModes, LocalStorageService } from '@topconsultnpm/sdk-ts';
|
|
7
|
+
import { cultureIDsDataSource } from './TMLoginForm';
|
|
8
|
+
import Menu from './Menu';
|
|
9
|
+
import { IconArchive, IconArrowLeft, IconCloseOutline, IconExport, IconImport, IconSave, IconUser, SDKUI_Localizator, truncateText } from '../../../helper';
|
|
10
|
+
import { TMColors, Colors } from '../../../utils/theme';
|
|
11
|
+
import TMButton from '../../base/TMButton';
|
|
12
|
+
import { TMMessageBoxManager, ButtonNames, TMExceptionBoxManager } from '../../base/TMPopUp';
|
|
13
|
+
import TMTooltip from '../../base/TMTooltip';
|
|
14
|
+
import { LOGINLocalizator } from './LOGINLocalizator';
|
|
15
|
+
const LOCAL_STORAGE_KEY = 'LOGIN_HISTORY';
|
|
16
|
+
const RapidAccessLogin = ({ isMobile = false, onClose, onSelect }) => {
|
|
17
|
+
let localRA = LocalStorageService.getItem(LOCAL_STORAGE_KEY);
|
|
18
|
+
const [rapidAccesses, setRapidAccesses] = useState(localRA ?? []);
|
|
19
|
+
const [searchedRapidAccesses, setSearchedRapidAccesses] = useState([]);
|
|
20
|
+
const [selectedRapidAccess, setSelectedRapidAccess] = useState();
|
|
21
|
+
const [searchValue, setSearchValue] = useState('');
|
|
22
|
+
const additionalClearBtn = useMemo(() => {
|
|
23
|
+
if (searchValue.length === 0)
|
|
24
|
+
return [];
|
|
25
|
+
return [{
|
|
26
|
+
icon: _jsx(IconCloseOutline, {}),
|
|
27
|
+
onClick: () => setSearchValue(''),
|
|
28
|
+
tooltip: SDKUI_Localizator.Clear
|
|
29
|
+
}];
|
|
30
|
+
}, [searchValue]);
|
|
31
|
+
useEffect(() => {
|
|
32
|
+
if (!localRA)
|
|
33
|
+
return;
|
|
34
|
+
setRapidAccesses(localRA);
|
|
35
|
+
}, []);
|
|
36
|
+
useEffect(() => {
|
|
37
|
+
if (!searchValue || searchValue.length === 0)
|
|
38
|
+
setSearchedRapidAccesses(rapidAccesses);
|
|
39
|
+
const spa = rapidAccesses.filter((ra) => ra.name.toLowerCase().includes(searchValue.toLowerCase()));
|
|
40
|
+
setSearchedRapidAccesses(spa);
|
|
41
|
+
}, [searchValue, rapidAccesses]);
|
|
42
|
+
const remove = useCallback((id) => {
|
|
43
|
+
if (selectedRapidAccess) {
|
|
44
|
+
if (rapidAccesses.find(ra => ra.id === id) === selectedRapidAccess) {
|
|
45
|
+
setSelectedRapidAccess(undefined);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
;
|
|
49
|
+
let removed = rapidAccesses.filter(r => r.id !== id);
|
|
50
|
+
setRapidAccesses(removed);
|
|
51
|
+
LocalStorageService.setItem(LOCAL_STORAGE_KEY, removed);
|
|
52
|
+
}, [rapidAccesses, selectedRapidAccess]);
|
|
53
|
+
const select = useCallback((id) => {
|
|
54
|
+
let ra = rapidAccesses.find(ra => ra.id === id);
|
|
55
|
+
setSelectedRapidAccess(ra);
|
|
56
|
+
if (!ra || !onSelect)
|
|
57
|
+
return;
|
|
58
|
+
onSelect(ra);
|
|
59
|
+
onClose?.();
|
|
60
|
+
}, [rapidAccesses, onSelect]);
|
|
61
|
+
const changeName = useCallback((id, editedName) => {
|
|
62
|
+
let ra = LocalStorageService.getItem(LOCAL_STORAGE_KEY);
|
|
63
|
+
if (!ra)
|
|
64
|
+
return;
|
|
65
|
+
let deepCopy = structuredClone(ra);
|
|
66
|
+
let index = deepCopy.findIndex(rap => rap.id === id);
|
|
67
|
+
deepCopy[index].name = editedName;
|
|
68
|
+
LocalStorageService.setItem(LOCAL_STORAGE_KEY, deepCopy);
|
|
69
|
+
setRapidAccesses(deepCopy);
|
|
70
|
+
}, [rapidAccesses]);
|
|
71
|
+
const setDefault = useCallback((id) => {
|
|
72
|
+
let deepCopy = structuredClone(rapidAccesses);
|
|
73
|
+
let index = deepCopy.findIndex(dc => dc.id === id);
|
|
74
|
+
deepCopy[index].preferred = !deepCopy[index].preferred;
|
|
75
|
+
for (let i = 0; i < deepCopy.length; i++) {
|
|
76
|
+
if (i === index)
|
|
77
|
+
continue;
|
|
78
|
+
deepCopy[i].preferred = false;
|
|
79
|
+
}
|
|
80
|
+
setRapidAccesses(deepCopy);
|
|
81
|
+
LocalStorageService.setItem(LOCAL_STORAGE_KEY, deepCopy);
|
|
82
|
+
}, [rapidAccesses]);
|
|
83
|
+
const setColor = useCallback((id, selectedColor) => {
|
|
84
|
+
let deepCopy = structuredClone(rapidAccesses);
|
|
85
|
+
let index = deepCopy.findIndex(dc => dc.id === id);
|
|
86
|
+
deepCopy[index].color = selectedColor;
|
|
87
|
+
setRapidAccesses(deepCopy);
|
|
88
|
+
LocalStorageService.setItem(LOCAL_STORAGE_KEY, deepCopy);
|
|
89
|
+
}, [rapidAccesses]);
|
|
90
|
+
const setIcon = useCallback((id, selectedIconKey) => {
|
|
91
|
+
let deepCopy = structuredClone(rapidAccesses);
|
|
92
|
+
let index = deepCopy.findIndex(dc => dc.id === id);
|
|
93
|
+
deepCopy[index].icon = selectedIconKey; // just save the key
|
|
94
|
+
LocalStorageService.setItem(LOCAL_STORAGE_KEY, deepCopy);
|
|
95
|
+
setRapidAccesses(deepCopy);
|
|
96
|
+
}, [rapidAccesses]);
|
|
97
|
+
const sortedArray = useMemo(() => {
|
|
98
|
+
return searchedRapidAccesses.sort((a, b) => a.name.localeCompare(b.name));
|
|
99
|
+
}, [searchedRapidAccesses]);
|
|
100
|
+
const onExportCallback = () => {
|
|
101
|
+
const exportToFile = (data, filenamePrefix) => {
|
|
102
|
+
const file = new Blob([JSON.stringify(data, null, 2)], { type: 'text/plain' });
|
|
103
|
+
const element = document.createElement("a");
|
|
104
|
+
const currentDate = new Date();
|
|
105
|
+
const dateString = currentDate.toISOString().split('T')[0];
|
|
106
|
+
const timeString = currentDate.toISOString().split('T')[1].split('.')[0].substring(0, 5);
|
|
107
|
+
element.href = URL.createObjectURL(file);
|
|
108
|
+
element.download = `${filenamePrefix}_${dateString}_${timeString}.txt`;
|
|
109
|
+
document.body.appendChild(element);
|
|
110
|
+
element.click();
|
|
111
|
+
document.body.removeChild(element);
|
|
112
|
+
};
|
|
113
|
+
if (searchedRapidAccesses.length > 0) {
|
|
114
|
+
exportToFile(searchedRapidAccesses, "TopMedia_SURFER_LOGIN_HISTORY");
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
alert(SDKUI_Localizator.NoCredentialsSaved);
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
const onImportCallback = () => {
|
|
121
|
+
const createFileInput = (accept, onChange) => {
|
|
122
|
+
const input = document.createElement("input");
|
|
123
|
+
input.type = "file";
|
|
124
|
+
input.accept = accept;
|
|
125
|
+
input.addEventListener('change', (event) => {
|
|
126
|
+
const file = event.target.files?.[0];
|
|
127
|
+
if (file)
|
|
128
|
+
onChange(file);
|
|
129
|
+
});
|
|
130
|
+
input.click();
|
|
131
|
+
};
|
|
132
|
+
const handleFileRead = (file, onSuccess, onError) => {
|
|
133
|
+
const reader = new FileReader();
|
|
134
|
+
reader.onload = () => {
|
|
135
|
+
try {
|
|
136
|
+
const fileContent = reader.result;
|
|
137
|
+
const parsedData = JSON.parse(fileContent);
|
|
138
|
+
onSuccess(parsedData);
|
|
139
|
+
}
|
|
140
|
+
catch (error) {
|
|
141
|
+
onError();
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
reader.readAsText(file);
|
|
145
|
+
};
|
|
146
|
+
const generateModifiedData = (parsedData, existingHistory) => {
|
|
147
|
+
const existingNames = new Set(existingHistory.map(item => item.name));
|
|
148
|
+
const maxId = Math.max(...existingHistory.map(item => Number(item.id) || 0), 0);
|
|
149
|
+
const makeUniqueName = (baseName) => {
|
|
150
|
+
if (!existingNames.has(baseName)) {
|
|
151
|
+
existingNames.add(baseName);
|
|
152
|
+
return baseName;
|
|
153
|
+
}
|
|
154
|
+
let suffix = 1;
|
|
155
|
+
let newName = `${baseName} (${suffix})`;
|
|
156
|
+
while (existingNames.has(newName)) {
|
|
157
|
+
suffix++;
|
|
158
|
+
newName = `${baseName} (${suffix})`;
|
|
159
|
+
}
|
|
160
|
+
existingNames.add(newName);
|
|
161
|
+
return newName;
|
|
162
|
+
};
|
|
163
|
+
return parsedData.map((item, index) => {
|
|
164
|
+
const id = maxId + index + 1;
|
|
165
|
+
return {
|
|
166
|
+
...item,
|
|
167
|
+
name: makeUniqueName(item.name),
|
|
168
|
+
id,
|
|
169
|
+
preferred: false
|
|
170
|
+
};
|
|
171
|
+
});
|
|
172
|
+
};
|
|
173
|
+
const updateHistoryState = (newData) => {
|
|
174
|
+
setRapidAccesses((prevState) => {
|
|
175
|
+
const updatedAccesses = [...prevState, ...newData];
|
|
176
|
+
LocalStorageService.setItem(LOCAL_STORAGE_KEY, updatedAccesses);
|
|
177
|
+
return updatedAccesses;
|
|
178
|
+
});
|
|
179
|
+
};
|
|
180
|
+
createFileInput(".txt", (file) => {
|
|
181
|
+
handleFileRead(file, (parsedData) => {
|
|
182
|
+
const modifiedData = generateModifiedData(parsedData, rapidAccesses);
|
|
183
|
+
updateHistoryState(modifiedData);
|
|
184
|
+
}, () => alert(SDKUI_Localizator.ErrorParsingFileContent));
|
|
185
|
+
});
|
|
186
|
+
};
|
|
187
|
+
return (_jsxs(Wrapper, { children: [_jsx(BackButtonWrapper, { children: _jsx(TMButton, { onClick: onClose, btnStyle: "icon", icon: _jsx(IconArrowLeft, { fontSize: 20 }), caption: SDKUI_Localizator.Back }) }), _jsxs(ContentWrapper, { children: [_jsxs(ContentHeader, { children: [_jsx("h3", { style: { width: 'max-content' }, children: LOGINLocalizator.QuickAccess }), _jsx("div", { style: { width: '50%' }, children: _jsx(TextBox, { value: searchValue, onValueChanged: (value) => setSearchValue(value), type: 'text', placeHolder: 'Cerca...', additionalIcons: additionalClearBtn }) })] }), _jsx(Divider, {}), _jsx(List, { children: sortedArray.map((rapidAccess, index) => (_jsx(RapidAccessItem, { index: index, onRemove: remove, onSelect: select, onDefault: setDefault, onChangeName: changeName, rapidAccess: rapidAccess, isMobile: isMobile, onChangeColor: setColor, onChangeIcon: setIcon }, index * 2))) })] }), _jsxs(ToolbarWrapper, { children: [_jsx(TMButton, { btnStyle: 'icon', icon: _jsx(IconImport, {}), caption: SDKUI_Localizator.Import, color: 'tertiary', onClick: onImportCallback }), _jsx(TMButton, { btnStyle: 'icon', icon: _jsx(IconExport, {}), caption: SDKUI_Localizator.Export, color: 'primary', onClick: onExportCallback })] })] }));
|
|
188
|
+
};
|
|
189
|
+
export default RapidAccessLogin;
|
|
190
|
+
const RapidAccessItem = ({ rapidAccess, isMobile = false, onRemove, onSelect, onDefault, onChangeName, onChangeColor, onChangeIcon, index = 0 }) => {
|
|
191
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
192
|
+
const [name, setName] = useState(rapidAccess.name);
|
|
193
|
+
const [isMenuOpen, setIsMenuOpen] = useState(false);
|
|
194
|
+
const [showIconMenu, setShowIconMenu] = useState(false);
|
|
195
|
+
const hasAuthDomain = useMemo(() => {
|
|
196
|
+
return (rapidAccess.authenticationMode === AuthenticationModes.TopMediaOnBehalfOf || rapidAccess.authenticationMode === AuthenticationModes.WindowsThroughTopMedia);
|
|
197
|
+
}, [rapidAccess]);
|
|
198
|
+
const iconMap = {
|
|
199
|
+
business: _jsx(IconBaselineBusiness, {}),
|
|
200
|
+
default: _jsx(IconUser, {}),
|
|
201
|
+
person: _jsx(IconBusinessperson, {}),
|
|
202
|
+
center: _jsx(IconBusinessCenterRounded, {}),
|
|
203
|
+
location: _jsx(IconLocationCompanyFilled, {}),
|
|
204
|
+
explore: _jsx(IconTwotoneDataExploration, {}),
|
|
205
|
+
data: _jsx(IconData, {}),
|
|
206
|
+
crown: _jsx(Crown24Filled, {}),
|
|
207
|
+
pen: _jsx(IconPen, {}),
|
|
208
|
+
archive: _jsx(IconArchive, {})
|
|
209
|
+
};
|
|
210
|
+
const colors = useMemo(() => {
|
|
211
|
+
return [
|
|
212
|
+
TMColors.primary, TMColors.tertiary,
|
|
213
|
+
TMColors.success, TMColors.error,
|
|
214
|
+
TMColors.secondary, TMColors.text_normal,
|
|
215
|
+
TMColors.warning, Colors.contenitore_su_colore_primary,
|
|
216
|
+
Colors.color_on_tertiary_container,
|
|
217
|
+
Colors.tertiary_container
|
|
218
|
+
];
|
|
219
|
+
}, []);
|
|
220
|
+
const icons = useMemo(() => Object.entries(iconMap), []);
|
|
221
|
+
const domainValue = useMemo(() => {
|
|
222
|
+
switch (rapidAccess.authenticationMode) {
|
|
223
|
+
case AuthenticationModes.TopMediaOnBehalfOf: return rapidAccess.domainAlternative;
|
|
224
|
+
case AuthenticationModes.WindowsThroughTopMedia: return rapidAccess.domain;
|
|
225
|
+
default: return '';
|
|
226
|
+
}
|
|
227
|
+
}, [rapidAccess]);
|
|
228
|
+
const saveNemeBtnDisabled = useMemo(() => {
|
|
229
|
+
let localRA = LocalStorageService.getItem(LOCAL_STORAGE_KEY);
|
|
230
|
+
if (name.length === 0)
|
|
231
|
+
return true;
|
|
232
|
+
if (name === rapidAccess.name)
|
|
233
|
+
return true;
|
|
234
|
+
if (localRA?.find(ra => ra.name === name))
|
|
235
|
+
return true;
|
|
236
|
+
return false;
|
|
237
|
+
}, [name, rapidAccess.name]);
|
|
238
|
+
const additionalSaveBtn = useMemo(() => {
|
|
239
|
+
return [{
|
|
240
|
+
icon: _jsx(IconSave, {}),
|
|
241
|
+
onClick: () => !saveNemeBtnDisabled && onChangeName(rapidAccess.id, name),
|
|
242
|
+
tooltip: SDKUI_Localizator.Save,
|
|
243
|
+
color: saveNemeBtnDisabled ? 'gray' : TMColors.success
|
|
244
|
+
}];
|
|
245
|
+
}, [name, rapidAccess.name, rapidAccess.id]);
|
|
246
|
+
useEffect(() => { setName(rapidAccess.name); }, []);
|
|
247
|
+
const onRemovePopup = () => {
|
|
248
|
+
const msg = SDKUI_Localizator.Delete_ConfirmFor1.replaceParams(rapidAccess.name);
|
|
249
|
+
TMMessageBoxManager.show({
|
|
250
|
+
title: LOGINLocalizator.QuickAccess, message: msg, buttons: [ButtonNames.YES, ButtonNames.NO],
|
|
251
|
+
onButtonClick: (e) => {
|
|
252
|
+
if (e !== ButtonNames.YES)
|
|
253
|
+
return;
|
|
254
|
+
try {
|
|
255
|
+
onRemove(rapidAccess.id);
|
|
256
|
+
}
|
|
257
|
+
catch (e) {
|
|
258
|
+
TMExceptionBoxManager.show({ exception: e });
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
};
|
|
263
|
+
const handleClose = () => {
|
|
264
|
+
setIsMenuOpen(false);
|
|
265
|
+
setShowIconMenu(false);
|
|
266
|
+
};
|
|
267
|
+
const onColorPick = (color) => {
|
|
268
|
+
onChangeColor(rapidAccess.id, color);
|
|
269
|
+
handleClose();
|
|
270
|
+
};
|
|
271
|
+
const onIconPick = (iconKey) => {
|
|
272
|
+
onChangeIcon(rapidAccess.id, iconKey);
|
|
273
|
+
handleClose();
|
|
274
|
+
};
|
|
275
|
+
const expandedAriaHandler = () => setIsExpanded(!isExpanded);
|
|
276
|
+
return (_jsxs(Container, { children: [_jsxs(ItemWrapper, { children: [_jsxs(ItemProfileWrapper, { style: { zIndex: 100 - index }, onDoubleClick: () => onSelect(rapidAccess.id), children: [_jsx(PreferredIconContainer, { onClick: () => onDefault(rapidAccess.id), children: _jsx(TMTooltip, { content: SDKUI_Localizator.Default, children: rapidAccess.preferred ? _jsx(IconStarSolid, { color: TMColors.tertiary, fontSize: 20 }) : _jsx(IconStarOutline, { fontSize: 20 }) }) }), _jsx(ProfileCircle, { "$color": rapidAccess.color ?? TMColors.primary, onClick: () => setIsMenuOpen(true), children: iconMap[rapidAccess.icon] ?? _jsx(IconUser, { fontSize: 20 }) }), _jsxs(RapidAccessName, { onClick: expandedAriaHandler, children: [" ", truncateText(rapidAccess.name, 50)] })] }), _jsxs(ItemOperationsWrapper, { children: [_jsx(ExpandButton, { onClick: expandedAriaHandler, children: isExpanded ? _jsx(IconCollapse, { fontSize: 16 }) : _jsx(IconExpand, { fontSize: 16 }) }), _jsx(TMButton, { color: 'primary', caption: SDKUI_Localizator.Select, showTooltip: false, onClick: () => onSelect(rapidAccess.id) }), _jsx(TMButton, { color: 'tertiary', caption: SDKUI_Localizator.Remove, showTooltip: false, onClick: onRemovePopup })] }), _jsx(Menu, { x: isMobile ? 0 : 80, y: isMobile ? -40 : 0, onClose: () => handleClose(), visible: isMenuOpen, children: _jsxs("div", { style: { display: 'flex', flexDirection: 'column', gap: '10px' }, children: [_jsxs(StyledMenuItemContainer, { style: { flexWrap: 'wrap' }, children: [colors.map((color, index) => (_jsx(ColorWrapper, { onClick: () => onColorPick(color), children: _jsx(ColorPicker, { "$color": color }) }, index * 2))), _jsx(ColorWrapper, { onClick: () => setShowIconMenu(!showIconMenu), children: icons.find(icon => icon[0] === rapidAccess.icon)?.[1] ?? _jsx(IconUser, {}) })] }), showIconMenu && _jsx(StyledMenuItemContainer, { style: { flexWrap: 'wrap' }, children: icons.map(([key, icon]) => (_jsx(ColorWrapper, { onClick: () => onIconPick(key), children: _jsx(ColorPicker, { "$color": "white", children: icon }) }, key))) })] }) })] }), isExpanded &&
|
|
277
|
+
_jsxs(ExpandedAria, { children: [_jsxs(InputContainer, { "$isMobile": isMobile, children: [_jsx(TextBox, { value: name, onValueChanged: (value) => setName(value), type: 'text', label: SDKUI_Localizator.NameForAccess, additionalIcons: additionalSaveBtn }), _jsx(TextBox, { value: rapidAccess.endpoint?.Description, type: 'text', label: SDKUI_Localizator.Endpoint, disabled: true })] }), _jsxs(InputContainer, { "$isMobile": isMobile, children: [_jsx(TextBox, { value: rapidAccess.archive?.description, type: 'text', label: SDKUI_Localizator.ArchiveID, disabled: true }), _jsx(TextBox, { value: rapidAccess.authenticationMode, type: 'text', label: SDKUI_Localizator.AuthMode, disabled: true })] }), _jsxs(InputContainer, { "$isMobile": isMobile, children: [_jsx(TextBox, { value: rapidAccess.username, type: 'text', label: SDKUI_Localizator.UserName, disabled: true }), _jsx(TextBox, { value: cultureIDsDataSource.find(cid => cid.value === rapidAccess.language)?.display, type: 'text', label: SDKUI_Localizator.CultureID, disabled: true })] }), hasAuthDomain && _jsxs(InputContainer, { "$isMobile": isMobile, children: [_jsx(TextBox, { value: domainValue, type: 'text', label: SDKUI_Localizator.Domain, disabled: true }), rapidAccess.authenticationMode === AuthenticationModes.TopMediaOnBehalfOf &&
|
|
278
|
+
_jsx(TextBox, { value: rapidAccess.onBehalfUsername, type: 'text', label: SDKUI_Localizator.UserName + ' ' + `(${SDKUI_Localizator.OnBehalfOf})`, disabled: true })] })] })] }));
|
|
279
|
+
};
|
|
280
|
+
const ColorWrapper = styled.div ` cursor: pointer; width: 30px; height: 30px; background-color: white; border-radius: 30px; display: flex; align-items: center; justify-content: center; `;
|
|
281
|
+
const ColorPicker = styled.div ` width: 25px; height: 25px; border-radius: 25px; background-color: ${props => props.$color} ; display:flex; align-items:center; justify-content:center; `;
|
|
282
|
+
const ExpandButton = styled.div ` cursor: pointer; display: flex; align-items: center; justify-content: center; `;
|
|
283
|
+
const ExpandedAria = styled.div ` width: 100%; padding: 10px 0; display: flex; flex-direction: column; gap: 10px; `;
|
|
284
|
+
const InputContainer = styled.div ` width: 100%; display: flex; flex-direction:${props => props.$isMobile ? 'column' : 'row'} ; align-items: center; gap: 10px; `;
|
|
285
|
+
const List = styled.div ` width: 100%; display: flex; flex-direction: column; max-height: calc(100%); overflow: visible; `;
|
|
286
|
+
const ItemWrapper = styled.div ` width: 100%; display: flex; align-items: center; justify-content: space-between; position:relative; `;
|
|
287
|
+
const ItemProfileWrapper = styled.div ` display: flex; align-items: center; gap: 5px; padding: 10px 0; `;
|
|
288
|
+
const ItemOperationsWrapper = styled.div ` display: flex; align-items: center; gap: 5px; padding: 0 5px 0 0 ; `;
|
|
289
|
+
const ProfileCircle = styled.div ` cursor: pointer; min-width:30px; width: 30px; height: 30px; background-color: ${props => props.$color}; border-radius: 50px; display: flex; align-items: center; justify-content: center; color: white; `;
|
|
290
|
+
const Container = styled.div ` display: flex; flex-direction: column; gap: 10px; width: 100%; border-bottom: 1px solid lightgray; `;
|
|
291
|
+
const Wrapper = styled.div ` width: 100%; height: 100%; background-color: white; position: absolute; top: 0; left: 0; `;
|
|
292
|
+
const BackButtonWrapper = styled.div ` position: absolute; top: 20px; left: 20px; `;
|
|
293
|
+
const ToolbarWrapper = styled.div ` display: flex; gap: 10px; align-items: center; position: absolute; top: 20px; right: 20px; `;
|
|
294
|
+
const ContentWrapper = styled.div ` width: 100%; margin-top: 40px; padding: 40px; display: flex; flex-direction: column; gap: 10px; max-height: calc(100% - 50px); overflow: auto; height:100%; `;
|
|
295
|
+
const ContentHeader = styled.div ` width: 100%; display: flex; align-items: center; justify-content: space-between; `;
|
|
296
|
+
const PreferredIconContainer = styled.div ` margin-right: 5px; cursor: pointer; `;
|
|
297
|
+
const StyledMenuItemContainer = styled.div `display:flex;align-items:center;gap:10px;padding:0;`;
|
|
298
|
+
const RapidAccessName = styled.p ``;
|
|
299
|
+
function IconCollapse(props) { return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M8.12 14.71L12 10.83l3.88 3.88a.996.996 0 1 0 1.41-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3a.996.996 0 0 0 0 1.41c.39.38 1.03.39 1.42 0" }), " "] })); } //NOSONAR
|
|
300
|
+
function IconExpand(props) { return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6l-6-6z" }), " "] })); } //NOSONAR
|
|
301
|
+
function IconStarOutline(props) { return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m8.587 8.236l2.598-5.232a.911.911 0 0 1 1.63 0l2.598 5.232l5.808.844a.902.902 0 0 1 .503 1.542l-4.202 4.07l.992 5.75c.127.738-.653 1.3-1.32.952L12 18.678l-5.195 2.716c-.666.349-1.446-.214-1.319-.953l.992-5.75l-4.202-4.07a.902.902 0 0 1 .503-1.54z" }), " "] })); } //NOSONAR
|
|
302
|
+
function IconStarSolid(props) { return (_jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: "1.5", d: "m8.587 8.236l2.598-5.232a.911.911 0 0 1 1.63 0l2.598 5.232l5.808.844a.902.902 0 0 1 .503 1.542l-4.202 4.07l.992 5.75c.127.738-.653 1.3-1.32.952L12 18.678l-5.195 2.716c-.666.349-1.446-.214-1.319-.953l.992-5.75l-4.202-4.07a.902.902 0 0 1 .503-1.54z" }), " "] })); } //NOSONAR //NOSONAR
|
|
303
|
+
function IconBusinessperson(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M13.2 10L11 13l-1-1.4L9 13l-2.2-3C3 11 3 13 3 16.9c0 0 3 1.1 6.4 1.1h1.2c3.4-.1 6.4-1.1 6.4-1.1c0-3.9 0-5.9-3.8-6.9m-3.2.7L8.4 10l1.6 1.6l1.6-1.6zm0-8.6c-1.9 0-3 1.8-2.7 3.8S8.6 9.3 10 9.3s2.4-1.4 2.7-3.4c.3-2.1-.8-3.8-2.7-3.8" }), " "] })); } //NOSONAR
|
|
304
|
+
function IconBusinessCenterRounded(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M11 15v-2h2v2zm-1-8h4V5.615q0-.23-.192-.423T13.385 5h-2.77q-.23 0-.423.192T10 5.615zM4.616 20q-.691 0-1.153-.462T3 18.384V14.5h7v.692q0 .348.23.578t.578.23h2.384q.348 0 .578-.23t.23-.578V14.5h7v3.885q0 .69-.462 1.152T19.385 20zM3 13.5V8.616q0-.691.463-1.153T4.615 7H9V5.615q0-.69.463-1.153T10.616 4h2.769q.69 0 1.153.462T15 5.615V7h4.385q.69 0 1.152.463T21 8.616V13.5h-7v-.692q0-.348-.23-.578t-.578-.23h-2.384q-.348 0-.578.23t-.23.578v.692z" }), " "] })); } //NOSONAR
|
|
305
|
+
function IconBaselineBusiness(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M12 7V3H2v18h20V7zM6 19H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4 12H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0 4h-2v2h2z" }), " "] })); } //NOSONAR
|
|
306
|
+
function IconLocationCompanyFilled(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "none", d: "M21 18h-2v-8h-6v8h-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2Zm-4-2h-2v2h2Zm0-4h-2v2h2Z" }), " ", _jsx("path", { fill: "currentColor", d: "M16 2A11.013 11.013 0 0 0 5 13a10.9 10.9 0 0 0 2.216 6.6s.3.395.349.452L16 30l8.439-9.953c.044-.053.345-.447.345-.447l.001-.003A10.9 10.9 0 0 0 27 13A11.013 11.013 0 0 0 16 2m1 16h-2v-2h2Zm0-4h-2v-2h2Zm4 4h-2v-8h-6v8h-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2Z" }), " "] })); } //NOSONAR
|
|
307
|
+
function IconTwotoneDataExploration(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M12 20c-2.89 0-5.43-1.54-6.83-3.84l2.95-2.95L11.41 16L16 11.42V13h2V8h-5v2h1.58l-3.28 3.28L8 10.5l-3.69 3.7C4.11 13.5 4 12.76 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m7.5.5c-.55 0-1-.45-1-1s.45-1 1-1s1 .45 1 1s-.45 1-1 1", opacity: ".3" }), " ", _jsx("path", { fill: "currentColor", d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10h8c1.1 0 2-.9 2-2v-8c0-5.52-4.48-10-10-10m0 18c-2.89 0-5.43-1.54-6.83-3.84l2.95-2.95L11.41 16L16 11.42V13h2V8h-5v2h1.58l-3.28 3.28L8 10.5l-3.69 3.7C4.11 13.5 4 12.76 4 12c0-4.41 3.59-8 8-8s8 3.59 8 8s-3.59 8-8 8m7.5.5c-.55 0-1-.45-1-1s.45-1 1-1s1 .45 1 1s-.45 1-1 1" }), " "] })); } //NOSONAR
|
|
308
|
+
function IconData(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 32 32", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M16 32C7.163 32 0 24.837 0 16S7.163 0 16 0s16 7.163 16 16s-7.163 16-16 16m8.14-22.086l1.607-1.594c.38-.376.301-1.064-.174-1.535c-.475-.472-1.17-.549-1.549-.172l-3.016 2.99l-.103.103l-2.628 2.605a4.56 4.56 0 0 0-5.867.45a4.464 4.464 0 0 0-.454 5.817l-2.006 1.99a7.8 7.8 0 0 1-1.189-2.293c-.673-2.038-.492-4.27.6-6.11c1.703-2.87 4.75-4.118 7.638-3.752a1.07 1.07 0 0 0 1.216-.986a1.307 1.307 0 0 0-1.174-1.374c-2.901-.297-5.9.65-8.115 2.846c-3.67 3.638-3.885 9.409-.66 13.338l-1.84 1.825c-.363.36-.273 1.035.203 1.506c.475.471 1.155.562 1.518.202l1.981-1.964h.001l1.432-1.42l.003-.004l2.322-2.302a4.56 4.56 0 0 0 4.92-.976a4.46 4.46 0 0 0 .985-4.879l2.634-2.611c1.931 2.908 1.548 6.934-1.11 9.568a7.9 7.9 0 0 1-6.13 2.279a.98.98 0 0 0-1.03.888l-.028.32a1.04 1.04 0 0 0 .991 1.13a10.3 10.3 0 0 0 7.832-2.996c3.597-3.567 4.013-9.061 1.19-12.89zm-7.001 7.535a2.18 2.18 0 0 1-3.06 0a2.135 2.135 0 0 1 0-3.033a2.18 2.18 0 0 1 3.06 0a2.135 2.135 0 0 1 0 3.033" }), " "] })); } //NOSONAR
|
|
309
|
+
function IconPen(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "m15.909 4.561l-4.47-4.47c-.146-.146-.338-.113-.427.073l-.599 1.248l4.175 4.175l1.248-.599c.186-.089.219-.282.073-.427M9.615 2.115L5.5 2.458c-.273.034-.501.092-.58.449v.001C3.804 8.268 0 13.499 0 13.499l.896.896l4.25-4.25a1.5 1.5 0 1 1 .707.707l-4.25 4.25l.896.896s5.231-3.804 10.591-4.92h.001c.357-.078.415-.306.449-.58l.343-4.115l-4.269-4.269z" }), " "] })); } //NOSONAR
|
|
310
|
+
function Crown24Filled(props) { return (_jsxs("svg", { fontSize: 20, xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", width: "1em", height: "1em", ...props, children: [" ", _jsx("path", { fill: "currentColor", d: "M14 5c0 .53-.206 1.012-.543 1.37l2.624 3.28a.25.25 0 0 0 .307.068l2.65-1.326A2.004 2.004 0 0 1 21 6a2 2 0 0 1 .444 3.95l-1.804 9.623A1.75 1.75 0 0 1 17.92 21H6.08a1.75 1.75 0 0 1-1.72-1.427L2.556 9.95a2 2 0 1 1 2.406-1.559l2.65 1.326a.25.25 0 0 0 .307-.068l2.624-3.28A2 2 0 1 1 14 5m-2 12a2 2 0 1 0 0-4a2 2 0 0 0 0 4" }), " "] })); } //NOSONAR
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ITopMediaSession } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { WindowHeight } from './TMLoginForm';
|
|
4
|
+
interface RecoverPasswordFlowProps {
|
|
5
|
+
windowHeight?: WindowHeight;
|
|
6
|
+
tmSession: ITopMediaSession;
|
|
7
|
+
isMobile?: boolean;
|
|
8
|
+
onClose?: () => void;
|
|
9
|
+
}
|
|
10
|
+
declare const RecoverPasswordFlow: React.FC<RecoverPasswordFlowProps>;
|
|
11
|
+
export default RecoverPasswordFlow;
|