@topconsultnpm/sdkui-react 6.17.0-test10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/IconsS4t/add.svg +12 -0
- package/lib/assets/IconsS4t/aggiorna.svg +18 -0
- package/lib/assets/IconsS4t/bookmark.svg +42 -0
- package/lib/assets/IconsS4t/cancella.svg +15 -0
- package/lib/assets/IconsS4t/check-box.svg +19 -0
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/down.svg +28 -0
- package/lib/assets/IconsS4t/edit-file.svg +19 -0
- package/lib/assets/IconsS4t/edita.svg +32 -0
- package/lib/assets/IconsS4t/firma.svg +19 -0
- package/lib/assets/IconsS4t/icona_download.svg +16 -0
- package/lib/assets/IconsS4t/info.svg +51 -0
- package/lib/assets/IconsS4t/left.svg +20 -0
- package/lib/assets/IconsS4t/line.svg +40 -0
- package/lib/assets/IconsS4t/more.svg +19 -0
- package/lib/assets/IconsS4t/new-signature.svg +1 -0
- package/lib/assets/IconsS4t/plus.svg +23 -0
- package/lib/assets/IconsS4t/printer.svg +49 -0
- package/lib/assets/IconsS4t/radio-on-button.svg +25 -0
- package/lib/assets/IconsS4t/rectangle.svg +41 -0
- package/lib/assets/IconsS4t/redo.svg +19 -0
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +40 -0
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +40 -0
- package/lib/assets/IconsS4t/right.svg +22 -0
- package/lib/assets/IconsS4t/searchbar.svg +21 -0
- package/lib/assets/IconsS4t/text-box.svg +36 -0
- package/lib/assets/IconsS4t/tick.svg +8 -0
- package/lib/assets/IconsS4t/trash-white.svg +11 -0
- package/lib/assets/IconsS4t/trash.svg +1 -0
- package/lib/assets/IconsS4t/undo.svg +19 -0
- package/lib/assets/IconsS4t/up.svg +32 -0
- package/lib/assets/IconsS4t/video-streaming.svg +2 -0
- package/lib/assets/IconsS4t/zoom-in.svg +58 -0
- package/lib/assets/IconsS4t/zoom-out.svg +56 -0
- package/lib/assets/ImageLibrary/arrow_001.png +0 -0
- package/lib/assets/ImageLibrary/arrow_002.png +0 -0
- package/lib/assets/ImageLibrary/arrow_003.png +0 -0
- package/lib/assets/ImageLibrary/arrow_004.png +0 -0
- package/lib/assets/ImageLibrary/arrow_005.png +0 -0
- package/lib/assets/ImageLibrary/arrow_006.png +0 -0
- package/lib/assets/ImageLibrary/arrow_007.png +0 -0
- package/lib/assets/ImageLibrary/arrow_008.png +0 -0
- package/lib/assets/ImageLibrary/arrow_009.png +0 -0
- package/lib/assets/ImageLibrary/arrow_010.png +0 -0
- package/lib/assets/ImageLibrary/arrow_011.png +0 -0
- package/lib/assets/ImageLibrary/arrow_012.png +0 -0
- package/lib/assets/ImageLibrary/book_001.png +0 -0
- package/lib/assets/ImageLibrary/book_002.png +0 -0
- package/lib/assets/ImageLibrary/book_003.png +0 -0
- package/lib/assets/ImageLibrary/book_004.png +0 -0
- package/lib/assets/ImageLibrary/book_005.png +0 -0
- package/lib/assets/ImageLibrary/book_006.png +0 -0
- package/lib/assets/ImageLibrary/book_007.png +0 -0
- package/lib/assets/ImageLibrary/clock_001.png +0 -0
- package/lib/assets/ImageLibrary/clock_002.png +0 -0
- package/lib/assets/ImageLibrary/clock_003.png +0 -0
- package/lib/assets/ImageLibrary/cube_001.png +0 -0
- package/lib/assets/ImageLibrary/cube_002.png +0 -0
- package/lib/assets/ImageLibrary/cube_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_001.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_002.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_003.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_004.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_005.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_006.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_007.png +0 -0
- package/lib/assets/ImageLibrary/dcmt_008.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_001.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_002.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_003.png +0 -0
- package/lib/assets/ImageLibrary/emoticon_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_001.png +0 -0
- package/lib/assets/ImageLibrary/fld_002.png +0 -0
- package/lib/assets/ImageLibrary/fld_003.png +0 -0
- package/lib/assets/ImageLibrary/fld_004.png +0 -0
- package/lib/assets/ImageLibrary/fld_005.png +0 -0
- package/lib/assets/ImageLibrary/fld_006.png +0 -0
- package/lib/assets/ImageLibrary/fld_007.png +0 -0
- package/lib/assets/ImageLibrary/fld_008.png +0 -0
- package/lib/assets/ImageLibrary/fld_009.png +0 -0
- package/lib/assets/ImageLibrary/fld_010.png +0 -0
- package/lib/assets/ImageLibrary/fld_011.png +0 -0
- package/lib/assets/ImageLibrary/fld_012.png +0 -0
- package/lib/assets/ImageLibrary/fld_013.png +0 -0
- package/lib/assets/ImageLibrary/fld_014.png +0 -0
- package/lib/assets/ImageLibrary/fld_015.png +0 -0
- package/lib/assets/ImageLibrary/fld_016.png +0 -0
- package/lib/assets/ImageLibrary/fld_017.png +0 -0
- package/lib/assets/ImageLibrary/fld_018.png +0 -0
- package/lib/assets/ImageLibrary/fld_019.png +0 -0
- package/lib/assets/ImageLibrary/fld_020.png +0 -0
- package/lib/assets/ImageLibrary/fld_021.png +0 -0
- package/lib/assets/ImageLibrary/fld_022.png +0 -0
- package/lib/assets/ImageLibrary/fld_023.png +0 -0
- package/lib/assets/ImageLibrary/fld_024.png +0 -0
- package/lib/assets/ImageLibrary/fld_025.png +0 -0
- package/lib/assets/ImageLibrary/fld_026.png +0 -0
- package/lib/assets/ImageLibrary/fld_027.png +0 -0
- package/lib/assets/ImageLibrary/fld_028.png +0 -0
- package/lib/assets/ImageLibrary/fld_029.png +0 -0
- package/lib/assets/ImageLibrary/fld_030.png +0 -0
- package/lib/assets/ImageLibrary/fld_031.png +0 -0
- package/lib/assets/ImageLibrary/fld_032.png +0 -0
- package/lib/assets/ImageLibrary/fld_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_001.png +0 -0
- package/lib/assets/ImageLibrary/gen_002.png +0 -0
- package/lib/assets/ImageLibrary/gen_003.png +0 -0
- package/lib/assets/ImageLibrary/gen_004.png +0 -0
- package/lib/assets/ImageLibrary/gen_005.png +0 -0
- package/lib/assets/ImageLibrary/gen_006.png +0 -0
- package/lib/assets/ImageLibrary/gen_007.png +0 -0
- package/lib/assets/ImageLibrary/gen_008.png +0 -0
- package/lib/assets/ImageLibrary/gen_009.png +0 -0
- package/lib/assets/ImageLibrary/gen_010.png +0 -0
- package/lib/assets/ImageLibrary/gen_011.png +0 -0
- package/lib/assets/ImageLibrary/gen_012.png +0 -0
- package/lib/assets/ImageLibrary/gen_013.png +0 -0
- package/lib/assets/ImageLibrary/gen_014.png +0 -0
- package/lib/assets/ImageLibrary/gen_015.png +0 -0
- package/lib/assets/ImageLibrary/gen_016.png +0 -0
- package/lib/assets/ImageLibrary/gen_017.png +0 -0
- package/lib/assets/ImageLibrary/gen_018.png +0 -0
- package/lib/assets/ImageLibrary/gen_019.png +0 -0
- package/lib/assets/ImageLibrary/gen_020.png +0 -0
- package/lib/assets/ImageLibrary/gen_021.png +0 -0
- package/lib/assets/ImageLibrary/gen_022.png +0 -0
- package/lib/assets/ImageLibrary/gen_023.png +0 -0
- package/lib/assets/ImageLibrary/gen_024.png +0 -0
- package/lib/assets/ImageLibrary/gen_025.png +0 -0
- package/lib/assets/ImageLibrary/gen_026.png +0 -0
- package/lib/assets/ImageLibrary/gen_027.png +0 -0
- package/lib/assets/ImageLibrary/gen_028.png +0 -0
- package/lib/assets/ImageLibrary/gen_029.png +0 -0
- package/lib/assets/ImageLibrary/gen_030.png +0 -0
- package/lib/assets/ImageLibrary/gen_031.png +0 -0
- package/lib/assets/ImageLibrary/gen_032.png +0 -0
- package/lib/assets/ImageLibrary/gen_033.png +0 -0
- package/lib/assets/ImageLibrary/gen_034.png +0 -0
- package/lib/assets/ImageLibrary/gen_035.png +0 -0
- package/lib/assets/ImageLibrary/gen_036.png +0 -0
- package/lib/assets/ImageLibrary/gen_037.png +0 -0
- package/lib/assets/ImageLibrary/gen_038.png +0 -0
- package/lib/assets/ImageLibrary/gen_039.png +0 -0
- package/lib/assets/ImageLibrary/gen_040.png +0 -0
- package/lib/assets/ImageLibrary/gen_041.png +0 -0
- package/lib/assets/ImageLibrary/gen_042.png +0 -0
- package/lib/assets/ImageLibrary/gen_043.png +0 -0
- package/lib/assets/ImageLibrary/gen_044.png +0 -0
- package/lib/assets/ImageLibrary/gen_045.png +0 -0
- package/lib/assets/ImageLibrary/gen_046.png +0 -0
- package/lib/assets/ImageLibrary/gen_047.png +0 -0
- package/lib/assets/ImageLibrary/gen_048.png +0 -0
- package/lib/assets/ImageLibrary/gen_049.png +0 -0
- package/lib/assets/ImageLibrary/gen_050.png +0 -0
- package/lib/assets/ImageLibrary/gen_051.png +0 -0
- package/lib/assets/ImageLibrary/gen_052.png +0 -0
- package/lib/assets/ImageLibrary/hand_001.png +0 -0
- package/lib/assets/ImageLibrary/hand_002.png +0 -0
- package/lib/assets/ImageLibrary/hand_003.png +0 -0
- package/lib/assets/ImageLibrary/hand_004.png +0 -0
- package/lib/assets/ImageLibrary/hand_005.png +0 -0
- package/lib/assets/ImageLibrary/hand_006.png +0 -0
- package/lib/assets/ImageLibrary/law_001.png +0 -0
- package/lib/assets/ImageLibrary/law_002.png +0 -0
- package/lib/assets/ImageLibrary/law_003.png +0 -0
- package/lib/assets/ImageLibrary/lock_001.png +0 -0
- package/lib/assets/ImageLibrary/lock_002.png +0 -0
- package/lib/assets/ImageLibrary/lock_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_001.png +0 -0
- package/lib/assets/ImageLibrary/mail_002.png +0 -0
- package/lib/assets/ImageLibrary/mail_003.png +0 -0
- package/lib/assets/ImageLibrary/mail_004.png +0 -0
- package/lib/assets/ImageLibrary/mail_005.png +0 -0
- package/lib/assets/ImageLibrary/mail_006.png +0 -0
- package/lib/assets/ImageLibrary/mail_007.png +0 -0
- package/lib/assets/ImageLibrary/mail_008.png +0 -0
- package/lib/assets/ImageLibrary/mail_009.png +0 -0
- package/lib/assets/ImageLibrary/mail_010.png +0 -0
- package/lib/assets/ImageLibrary/mail_011.png +0 -0
- package/lib/assets/ImageLibrary/mail_012.png +0 -0
- package/lib/assets/ImageLibrary/mail_013.png +0 -0
- package/lib/assets/ImageLibrary/mail_014.png +0 -0
- package/lib/assets/ImageLibrary/mail_015.png +0 -0
- package/lib/assets/ImageLibrary/net_001.png +0 -0
- package/lib/assets/ImageLibrary/net_002.png +0 -0
- package/lib/assets/ImageLibrary/net_003.png +0 -0
- package/lib/assets/ImageLibrary/net_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_001.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_002.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_003.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_004.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_005.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_006.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_007.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_008.png +0 -0
- package/lib/assets/ImageLibrary/nmbr_009.png +0 -0
- package/lib/assets/ImageLibrary/note_001.png +0 -0
- package/lib/assets/ImageLibrary/note_002.png +0 -0
- package/lib/assets/ImageLibrary/note_003.png +0 -0
- package/lib/assets/ImageLibrary/note_004.png +0 -0
- package/lib/assets/ImageLibrary/note_005.png +0 -0
- package/lib/assets/ImageLibrary/note_006.png +0 -0
- package/lib/assets/ImageLibrary/note_007.png +0 -0
- package/lib/assets/ImageLibrary/note_008.png +0 -0
- package/lib/assets/ImageLibrary/note_009.png +0 -0
- package/lib/assets/ImageLibrary/note_010.png +0 -0
- package/lib/assets/ImageLibrary/note_011.png +0 -0
- package/lib/assets/ImageLibrary/note_012.png +0 -0
- package/lib/assets/ImageLibrary/note_013.png +0 -0
- package/lib/assets/ImageLibrary/note_014.png +0 -0
- package/lib/assets/ImageLibrary/note_015.png +0 -0
- package/lib/assets/ImageLibrary/note_016.png +0 -0
- package/lib/assets/ImageLibrary/run_001.png +0 -0
- package/lib/assets/ImageLibrary/run_002.png +0 -0
- package/lib/assets/ImageLibrary/run_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_001.png +0 -0
- package/lib/assets/ImageLibrary/sem_002.png +0 -0
- package/lib/assets/ImageLibrary/sem_003.png +0 -0
- package/lib/assets/ImageLibrary/sem_004.png +0 -0
- package/lib/assets/ImageLibrary/sem_005.png +0 -0
- package/lib/assets/ImageLibrary/star_001.png +0 -0
- package/lib/assets/ImageLibrary/star_002.png +0 -0
- package/lib/assets/ImageLibrary/star_003.png +0 -0
- package/lib/assets/ImageLibrary/star_004.png +0 -0
- package/lib/assets/ImageLibrary/star_005.png +0 -0
- package/lib/assets/ImageLibrary/star_006.png +0 -0
- package/lib/assets/ImageLibrary/state_001.png +0 -0
- package/lib/assets/ImageLibrary/state_002.png +0 -0
- package/lib/assets/ImageLibrary/state_003.png +0 -0
- package/lib/assets/ImageLibrary/state_004.png +0 -0
- package/lib/assets/ImageLibrary/state_005.png +0 -0
- package/lib/assets/ImageLibrary/study_001.png +0 -0
- package/lib/assets/ImageLibrary/study_002.png +0 -0
- package/lib/assets/ImageLibrary/user_001.png +0 -0
- package/lib/assets/ImageLibrary/user_002.png +0 -0
- package/lib/assets/ImageLibrary/user_003.png +0 -0
- package/lib/assets/ImageLibrary/user_004.png +0 -0
- package/lib/assets/ImageLibrary/user_005.png +0 -0
- package/lib/assets/ImageLibrary/user_006.png +0 -0
- package/lib/assets/ImageLibrary/user_007.png +0 -0
- package/lib/assets/ImageLibrary/user_008.png +0 -0
- package/lib/assets/ImageLibrary/user_009.png +0 -0
- package/lib/assets/ImageLibrary/user_010.png +0 -0
- package/lib/assets/ImageLibrary/user_011.png +0 -0
- package/lib/assets/ImageLibrary/user_012.png +0 -0
- package/lib/assets/ImageLibrary/user_013.png +0 -0
- package/lib/assets/ImageLibrary/user_014.png +0 -0
- package/lib/assets/ImageLibrary/user_015.png +0 -0
- package/lib/assets/ImageLibrary/user_016.png +0 -0
- package/lib/assets/ImageLibrary/user_017.png +0 -0
- package/lib/assets/ImageLibrary/user_018.png +0 -0
- package/lib/assets/ImageLibrary/user_019.png +0 -0
- package/lib/assets/ImageLibrary/user_020.png +0 -0
- package/lib/assets/ImageLibrary/user_021.png +0 -0
- package/lib/assets/ImageLibrary/user_022.png +0 -0
- package/lib/assets/ImageLibrary/user_023.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_001.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_002.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_003.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_004.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_005.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_006.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_007.png +0 -0
- package/lib/assets/ImageLibrary/vehicle_008.png +0 -0
- package/lib/assets/Toppy-generico.png +0 -0
- package/lib/assets/france.svg +1 -0
- package/lib/assets/german.svg +1 -0
- package/lib/assets/icomoon.eot +0 -0
- package/lib/assets/icomoon.svg +97 -0
- package/lib/assets/icomoon.ttf +0 -0
- package/lib/assets/icomoon.woff +0 -0
- package/lib/assets/italy.svg +16 -0
- package/lib/assets/loading.png +0 -0
- package/lib/assets/login-bg.png +0 -0
- package/lib/assets/multipleSelectionManager.jpg +0 -0
- package/lib/assets/portugal.svg +1 -0
- package/lib/assets/six.png +0 -0
- package/lib/assets/six.svg +4 -0
- package/lib/assets/spain.svg +1 -0
- package/lib/assets/thumbnails/dicom.png +0 -0
- package/lib/assets/thumbnails/doc.png +0 -0
- package/lib/assets/thumbnails/docx.png +0 -0
- package/lib/assets/thumbnails/dwg.png +0 -0
- package/lib/assets/thumbnails/email.png +0 -0
- package/lib/assets/thumbnails/exe.png +0 -0
- package/lib/assets/thumbnails/folder.png +0 -0
- package/lib/assets/thumbnails/html.png +0 -0
- package/lib/assets/thumbnails/image.png +0 -0
- package/lib/assets/thumbnails/index.d.ts +19 -0
- package/lib/assets/thumbnails/index.js +19 -0
- package/lib/assets/thumbnails/index.ts +39 -0
- package/lib/assets/thumbnails/mp4.png +0 -0
- package/lib/assets/thumbnails/other.png +0 -0
- package/lib/assets/thumbnails/p7m.png +0 -0
- package/lib/assets/thumbnails/pdf.png +0 -0
- package/lib/assets/thumbnails/ppt.png +0 -0
- package/lib/assets/thumbnails/slddrw.png +0 -0
- package/lib/assets/thumbnails/txt.png +0 -0
- package/lib/assets/thumbnails/xls.png +0 -0
- package/lib/assets/thumbnails/xml.png +0 -0
- package/lib/assets/thumbnails/zip.png +0 -0
- package/lib/assets/topmedia-six.svg +66 -0
- package/lib/assets/topmeida-six-bianco.svg +66 -0
- package/lib/assets/united-kingdom.svg +1 -0
- package/lib/components/base/Styled.d.ts +63 -0
- package/lib/components/base/Styled.js +337 -0
- package/lib/components/base/TMAccordion.d.ts +12 -0
- package/lib/components/base/TMAccordion.js +62 -0
- package/lib/components/base/TMAlert.d.ts +73 -0
- package/lib/components/base/TMAlert.js +77 -0
- package/lib/components/base/TMAreaManager.d.ts +25 -0
- package/lib/components/base/TMAreaManager.js +733 -0
- package/lib/components/base/TMButton.d.ts +21 -0
- package/lib/components/base/TMButton.js +174 -0
- package/lib/components/base/TMClosableList.d.ts +10 -0
- package/lib/components/base/TMClosableList.js +70 -0
- package/lib/components/base/TMConfirm.d.ts +13 -0
- package/lib/components/base/TMConfirm.js +119 -0
- package/lib/components/base/TMContextMenu.d.ts +25 -0
- package/lib/components/base/TMContextMenu.js +109 -0
- package/lib/components/base/TMContextMenuOLD.d.ts +26 -0
- package/lib/components/base/TMContextMenuOLD.js +56 -0
- package/lib/components/base/TMCounterBar.d.ts +10 -0
- package/lib/components/base/TMCounterBar.js +43 -0
- package/lib/components/base/TMCounterContainer.d.ts +23 -0
- package/lib/components/base/TMCounterContainer.js +58 -0
- package/lib/components/base/TMCustomButton.d.ts +11 -0
- package/lib/components/base/TMCustomButton.js +116 -0
- package/lib/components/base/TMDataGrid.d.ts +56 -0
- package/lib/components/base/TMDataGrid.js +237 -0
- package/lib/components/base/TMDataGridExportForm.d.ts +15 -0
- package/lib/components/base/TMDataGridExportForm.js +215 -0
- package/lib/components/base/TMDeviceProvider.d.ts +15 -0
- package/lib/components/base/TMDeviceProvider.js +41 -0
- package/lib/components/base/TMDropDownMenu.d.ts +23 -0
- package/lib/components/base/TMDropDownMenu.js +45 -0
- package/lib/components/base/TMEditorBase.d.ts +39 -0
- package/lib/components/base/TMEditorBase.js +1 -0
- package/lib/components/base/TMFileManager.d.ts +45 -0
- package/lib/components/base/TMFileManager.js +233 -0
- package/lib/components/base/TMFileManagerDataGridView.d.ts +16 -0
- package/lib/components/base/TMFileManagerDataGridView.js +101 -0
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +18 -0
- package/lib/components/base/TMFileManagerThumbnailItems.js +148 -0
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +19 -0
- package/lib/components/base/TMFileManagerThumbnailsView.js +46 -0
- package/lib/components/base/TMFileManagerUtils.d.ts +78 -0
- package/lib/components/base/TMFileManagerUtils.js +207 -0
- package/lib/components/base/TMFloatingToolbar.d.ts +9 -0
- package/lib/components/base/TMFloatingToolbar.js +101 -0
- package/lib/components/base/TMLayout.d.ts +55 -0
- package/lib/components/base/TMLayout.js +201 -0
- package/lib/components/base/TMList.d.ts +9 -0
- package/lib/components/base/TMList.js +54 -0
- package/lib/components/base/TMListView.d.ts +42 -0
- package/lib/components/base/TMListView.js +387 -0
- package/lib/components/base/TMModal.d.ts +16 -0
- package/lib/components/base/TMModal.js +70 -0
- package/lib/components/base/TMPanel.d.ts +32 -0
- package/lib/components/base/TMPanel.js +181 -0
- package/lib/components/base/TMPopUp.d.ts +33 -0
- package/lib/components/base/TMPopUp.js +267 -0
- package/lib/components/base/TMProgressBar.d.ts +11 -0
- package/lib/components/base/TMProgressBar.js +32 -0
- package/lib/components/base/TMResizableMenu.d.ts +20 -0
- package/lib/components/base/TMResizableMenu.js +98 -0
- package/lib/components/base/TMRightSidebar.d.ts +19 -0
- package/lib/components/base/TMRightSidebar.js +80 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.d.ts +8 -0
- package/lib/components/base/TMShowAllOrMaxItemsButton.js +20 -0
- package/lib/components/base/TMSpinner.d.ts +14 -0
- package/lib/components/base/TMSpinner.js +160 -0
- package/lib/components/base/TMTab.d.ts +20 -0
- package/lib/components/base/TMTab.js +42 -0
- package/lib/components/base/TMToggleButton.d.ts +10 -0
- package/lib/components/base/TMToggleButton.js +58 -0
- package/lib/components/base/TMToolbarCard.d.ts +19 -0
- package/lib/components/base/TMToolbarCard.js +51 -0
- package/lib/components/base/TMTooltip.d.ts +14 -0
- package/lib/components/base/TMTooltip.js +20 -0
- package/lib/components/base/TMTreeView.d.ts +32 -0
- package/lib/components/base/TMTreeView.js +356 -0
- package/lib/components/base/TMUserAvatar.d.ts +8 -0
- package/lib/components/base/TMUserAvatar.js +34 -0
- package/lib/components/base/TMVilViewer.d.ts +5 -0
- package/lib/components/base/TMVilViewer.js +22 -0
- package/lib/components/base/TMWaitPanel.d.ts +32 -0
- package/lib/components/base/TMWaitPanel.js +44 -0
- package/lib/components/choosers/TMCultureIDPicker.d.ts +9 -0
- package/lib/components/choosers/TMCultureIDPicker.js +72 -0
- package/lib/components/choosers/TMDataListItemChooser.d.ts +17 -0
- package/lib/components/choosers/TMDataListItemChooser.js +49 -0
- package/lib/components/choosers/TMDataListItemPicker.d.ts +9 -0
- package/lib/components/choosers/TMDataListItemPicker.js +96 -0
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
- package/lib/components/choosers/TMDcmtTypeChooser.js +61 -0
- package/lib/components/choosers/TMDiskChooser.d.ts +10 -0
- package/lib/components/choosers/TMDiskChooser.js +41 -0
- package/lib/components/choosers/TMDistinctValues.d.ts +21 -0
- package/lib/components/choosers/TMDistinctValues.js +140 -0
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +40 -0
- package/lib/components/choosers/TMDynDataListItemChooser.js +159 -0
- package/lib/components/choosers/TMGroupChooser.d.ts +7 -0
- package/lib/components/choosers/TMGroupChooser.js +37 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMMetadataChooser.d.ts +54 -0
- package/lib/components/choosers/TMMetadataChooser.js +155 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +4 -0
- package/lib/components/choosers/TMOrderRetrieveFormats.js +22 -0
- package/lib/components/choosers/TMPathChooser.d.ts +12 -0
- package/lib/components/choosers/TMPathChooser.js +147 -0
- package/lib/components/choosers/TMRelationChooser.d.ts +31 -0
- package/lib/components/choosers/TMRelationChooser.js +94 -0
- package/lib/components/choosers/TMUserChooser.d.ts +40 -0
- package/lib/components/choosers/TMUserChooser.js +141 -0
- package/lib/components/editors/TMCheckBox.d.ts +9 -0
- package/lib/components/editors/TMCheckBox.js +90 -0
- package/lib/components/editors/TMDateBox.d.ts +17 -0
- package/lib/components/editors/TMDateBox.js +75 -0
- package/lib/components/editors/TMDropDown.d.ts +10 -0
- package/lib/components/editors/TMDropDown.js +62 -0
- package/lib/components/editors/TMEditorStyled.d.ts +41 -0
- package/lib/components/editors/TMEditorStyled.js +90 -0
- package/lib/components/editors/TMFormulaEditor.d.ts +49 -0
- package/lib/components/editors/TMFormulaEditor.js +727 -0
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +7 -0
- package/lib/components/editors/TMHtmlContentDisplay.js +78 -0
- package/lib/components/editors/TMHtmlEditor.d.ts +38 -0
- package/lib/components/editors/TMHtmlEditor.js +203 -0
- package/lib/components/editors/TMLocalizedTextBox.d.ts +19 -0
- package/lib/components/editors/TMLocalizedTextBox.js +125 -0
- package/lib/components/editors/TMMetadataEditor.d.ts +29 -0
- package/lib/components/editors/TMMetadataEditor.js +140 -0
- package/lib/components/editors/TMMetadataValues.d.ts +46 -0
- package/lib/components/editors/TMMetadataValues.js +530 -0
- package/lib/components/editors/TMRadioButton.d.ts +10 -0
- package/lib/components/editors/TMRadioButton.js +57 -0
- package/lib/components/editors/TMSummary.d.ts +20 -0
- package/lib/components/editors/TMSummary.js +92 -0
- package/lib/components/editors/TMTextArea.d.ts +17 -0
- package/lib/components/editors/TMTextArea.js +155 -0
- package/lib/components/editors/TMTextBox.d.ts +20 -0
- package/lib/components/editors/TMTextBox.js +249 -0
- package/lib/components/editors/TMTextExpression.d.ts +25 -0
- package/lib/components/editors/TMTextExpression.js +174 -0
- package/lib/components/editors/TMTreeDropDown.d.ts +18 -0
- package/lib/components/editors/TMTreeDropDown.js +66 -0
- package/lib/components/features/archive/TMArchive.d.ts +29 -0
- package/lib/components/features/archive/TMArchive.js +193 -0
- package/lib/components/features/assistant/ToppyHelpCenter.d.ts +12 -0
- package/lib/components/features/assistant/ToppyHelpCenter.js +173 -0
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +17 -0
- package/lib/components/features/blog/TMBlogCommentForm.js +333 -0
- package/lib/components/features/documents/TMBatchUpdateForm.d.ts +17 -0
- package/lib/components/features/documents/TMBatchUpdateForm.js +159 -0
- package/lib/components/features/documents/TMDcmtBlog.d.ts +23 -0
- package/lib/components/features/documents/TMDcmtBlog.js +65 -0
- package/lib/components/features/documents/TMDcmtForm.d.ts +64 -0
- package/lib/components/features/documents/TMDcmtForm.js +1498 -0
- package/lib/components/features/documents/TMDcmtIcon.d.ts +18 -0
- package/lib/components/features/documents/TMDcmtIcon.js +93 -0
- package/lib/components/features/documents/TMDcmtPreview.d.ts +31 -0
- package/lib/components/features/documents/TMDcmtPreview.js +446 -0
- package/lib/components/features/documents/TMDcmtTasks.d.ts +13 -0
- package/lib/components/features/documents/TMDcmtTasks.js +24 -0
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +6 -0
- package/lib/components/features/documents/TMDragDropOverlay.js +97 -0
- package/lib/components/features/documents/TMFileUploader.d.ts +14 -0
- package/lib/components/features/documents/TMFileUploader.js +115 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +26 -0
- package/lib/components/features/documents/TMMasterDetailDcmts.js +288 -0
- package/lib/components/features/documents/TMRelationViewer.d.ts +121 -0
- package/lib/components/features/documents/TMRelationViewer.js +753 -0
- package/lib/components/features/search/TMSavedQueryForm.d.ts +9 -0
- package/lib/components/features/search/TMSavedQueryForm.js +41 -0
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +16 -0
- package/lib/components/features/search/TMSavedQuerySelector.js +226 -0
- package/lib/components/features/search/TMSearch.d.ts +40 -0
- package/lib/components/features/search/TMSearch.js +253 -0
- package/lib/components/features/search/TMSearchQueryEditor.d.ts +15 -0
- package/lib/components/features/search/TMSearchQueryEditor.js +367 -0
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +29 -0
- package/lib/components/features/search/TMSearchQueryPanel.js +438 -0
- package/lib/components/features/search/TMSearchResult.d.ts +53 -0
- package/lib/components/features/search/TMSearchResult.js +1092 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +16 -0
- package/lib/components/features/search/TMSearchResultFloatingActionButton.js +50 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +11 -0
- package/lib/components/features/search/TMSearchResultsMenuItems.js +725 -0
- package/lib/components/features/search/TMTreeSelector.d.ts +12 -0
- package/lib/components/features/search/TMTreeSelector.js +270 -0
- package/lib/components/features/tasks/TMTaskForm.d.ts +38 -0
- package/lib/components/features/tasks/TMTaskForm.js +392 -0
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +17 -0
- package/lib/components/features/tasks/TMTasksAgenda.js +107 -0
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +21 -0
- package/lib/components/features/tasks/TMTasksCalendar.js +240 -0
- package/lib/components/features/tasks/TMTasksHeader.d.ts +14 -0
- package/lib/components/features/tasks/TMTasksHeader.js +37 -0
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +20 -0
- package/lib/components/features/tasks/TMTasksPanelContent.js +65 -0
- package/lib/components/features/tasks/TMTasksUtils.d.ts +133 -0
- package/lib/components/features/tasks/TMTasksUtils.js +649 -0
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +39 -0
- package/lib/components/features/tasks/TMTasksUtilsView.js +140 -0
- package/lib/components/features/tasks/TMTasksView.d.ts +40 -0
- package/lib/components/features/tasks/TMTasksView.js +566 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +39 -0
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +439 -0
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +42 -0
- package/lib/components/features/workflow/TMWorkflowPopup.js +286 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.d.ts +14 -0
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +90 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.d.ts +9 -0
- package/lib/components/features/workflow/diagram/ConnectionForm.js +73 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +18 -0
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +264 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.d.ts +10 -0
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +686 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.d.ts +12 -0
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +97 -0
- package/lib/components/features/workflow/diagram/RecipientList.d.ts +27 -0
- package/lib/components/features/workflow/diagram/RecipientList.js +204 -0
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +9 -0
- package/lib/components/features/workflow/diagram/WFDiagram.js +1680 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +18 -0
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +97 -0
- package/lib/components/features/workflow/diagram/interfaces.d.ts +126 -0
- package/lib/components/features/workflow/diagram/interfaces.js +26 -0
- package/lib/components/features/workflow/diagram/metadataParser.d.ts +14 -0
- package/lib/components/features/workflow/diagram/metadataParser.js +54 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.d.ts +3 -0
- package/lib/components/features/workflow/diagram/queryDescriptorParser.js +188 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.d.ts +122 -0
- package/lib/components/features/workflow/diagram/workflowHelpers.js +488 -0
- package/lib/components/features/workflow/diagram/xmlParser.d.ts +10 -0
- package/lib/components/features/workflow/diagram/xmlParser.js +490 -0
- package/lib/components/filesystem/ProgressBar.d.ts +7 -0
- package/lib/components/filesystem/ProgressBar.js +25 -0
- package/lib/components/forms/Login/ChangePassword.d.ts +9 -0
- package/lib/components/forms/Login/ChangePassword.js +22 -0
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +14 -0
- package/lib/components/forms/Login/ChangePasswordInputs.js +80 -0
- package/lib/components/forms/Login/Chooser.d.ts +28 -0
- package/lib/components/forms/Login/Chooser.js +145 -0
- package/lib/components/forms/Login/LOGINLocalizator.d.ts +29 -0
- package/lib/components/forms/Login/LOGINLocalizator.js +247 -0
- package/lib/components/forms/Login/LoginValidatorService.d.ts +50 -0
- package/lib/components/forms/Login/LoginValidatorService.js +162 -0
- package/lib/components/forms/Login/Menu.d.ts +10 -0
- package/lib/components/forms/Login/Menu.js +48 -0
- package/lib/components/forms/Login/OTPReader.d.ts +14 -0
- package/lib/components/forms/Login/OTPReader.js +90 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.d.ts +7 -0
- package/lib/components/forms/Login/PasswordStrengthChecker.js +45 -0
- package/lib/components/forms/Login/RapidAccessLogin.d.ts +25 -0
- package/lib/components/forms/Login/RapidAccessLogin.js +310 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.d.ts +11 -0
- package/lib/components/forms/Login/RecoverPasswordFlow.js +111 -0
- package/lib/components/forms/Login/SelectBox.d.ts +23 -0
- package/lib/components/forms/Login/SelectBox.js +96 -0
- package/lib/components/forms/Login/StepIndicator.d.ts +7 -0
- package/lib/components/forms/Login/StepIndicator.js +19 -0
- package/lib/components/forms/Login/TMLoginForm.d.ts +44 -0
- package/lib/components/forms/Login/TMLoginForm.js +737 -0
- package/lib/components/forms/Login/TextBox.d.ts +27 -0
- package/lib/components/forms/Login/TextBox.js +111 -0
- package/lib/components/forms/TMApplyForm.d.ts +4 -0
- package/lib/components/forms/TMApplyForm.js +105 -0
- package/lib/components/forms/TMChooserForm.d.ts +3 -0
- package/lib/components/forms/TMChooserForm.js +94 -0
- package/lib/components/forms/TMResultDialog.d.ts +20 -0
- package/lib/components/forms/TMResultDialog.js +44 -0
- package/lib/components/forms/TMSaveForm.d.ts +31 -0
- package/lib/components/forms/TMSaveForm.js +176 -0
- package/lib/components/grids/TMBlogAttachments.d.ts +42 -0
- package/lib/components/grids/TMBlogAttachments.js +43 -0
- package/lib/components/grids/TMBlogHeader.d.ts +31 -0
- package/lib/components/grids/TMBlogHeader.js +41 -0
- package/lib/components/grids/TMBlogsPost.d.ts +89 -0
- package/lib/components/grids/TMBlogsPost.js +644 -0
- package/lib/components/grids/TMBlogsPostUtils.d.ts +113 -0
- package/lib/components/grids/TMBlogsPostUtils.js +250 -0
- package/lib/components/grids/TMRecentsManager.d.ts +13 -0
- package/lib/components/grids/TMRecentsManager.js +155 -0
- package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
- package/lib/components/grids/TMValidationItemsList.js +82 -0
- package/lib/components/index.d.ts +115 -0
- package/lib/components/index.js +137 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +10 -0
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +215 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +39 -0
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +257 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +11 -0
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +83 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +21 -0
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +64 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +8 -0
- package/lib/components/layout/panelManager/TMPanelWrapper.js +59 -0
- package/lib/components/layout/panelManager/types.d.ts +42 -0
- package/lib/components/layout/panelManager/types.js +1 -0
- package/lib/components/layout/panelManager/utils.d.ts +21 -0
- package/lib/components/layout/panelManager/utils.js +208 -0
- package/lib/components/pages/TMPage.d.ts +38 -0
- package/lib/components/pages/TMPage.js +220 -0
- package/lib/components/query/TMQueryEditor.d.ts +58 -0
- package/lib/components/query/TMQueryEditor.js +1001 -0
- package/lib/components/query/TMQuerySummary.d.ts +16 -0
- package/lib/components/query/TMQuerySummary.js +35 -0
- package/lib/components/settings/SettingsAppearance.d.ts +14 -0
- package/lib/components/settings/SettingsAppearance.js +73 -0
- package/lib/components/sidebar/TMAboutApp.d.ts +8 -0
- package/lib/components/sidebar/TMAboutApp.js +14 -0
- package/lib/components/sidebar/TMCommandsPanel.d.ts +16 -0
- package/lib/components/sidebar/TMCommandsPanel.js +27 -0
- package/lib/components/sidebar/TMHeader.d.ts +43 -0
- package/lib/components/sidebar/TMHeader.js +616 -0
- package/lib/components/sidebar/TMSidebar.d.ts +21 -0
- package/lib/components/sidebar/TMSidebar.js +61 -0
- package/lib/components/sidebar/TMSidebarItem.d.ts +15 -0
- package/lib/components/sidebar/TMSidebarItem.js +39 -0
- package/lib/components/viewers/TMDataListItemViewer.d.ts +10 -0
- package/lib/components/viewers/TMDataListItemViewer.js +80 -0
- package/lib/components/viewers/TMMidViewer.d.ts +36 -0
- package/lib/components/viewers/TMMidViewer.js +128 -0
- package/lib/components/viewers/TMTidViewer.d.ts +256 -0
- package/lib/components/viewers/TMTidViewer.js +343 -0
- package/lib/components/wizard/TMStepIndicator.d.ts +11 -0
- package/lib/components/wizard/TMStepIndicator.js +165 -0
- package/lib/components/wizard/TMWizard.d.ts +18 -0
- package/lib/components/wizard/TMWizard.js +93 -0
- package/lib/css/tm-sdkui.css +1 -0
- package/lib/helper/DeepCompareHelper.d.ts +7 -0
- package/lib/helper/DeepCompareHelper.js +106 -0
- package/lib/helper/Enum_Localizator.d.ts +18 -0
- package/lib/helper/Enum_Localizator.js +247 -0
- package/lib/helper/GlobalStyles.d.ts +2 -0
- package/lib/helper/GlobalStyles.js +10 -0
- package/lib/helper/Globalization.d.ts +15 -0
- package/lib/helper/Globalization.js +110 -0
- package/lib/helper/SDKUI_Globals.d.ts +96 -0
- package/lib/helper/SDKUI_Globals.js +174 -0
- package/lib/helper/SDKUI_Localizator.d.ts +739 -0
- package/lib/helper/SDKUI_Localizator.js +7298 -0
- package/lib/helper/TMCommandsContextMenu.d.ts +14 -0
- package/lib/helper/TMCommandsContextMenu.js +6 -0
- package/lib/helper/TMConditionalWrapper.d.ts +8 -0
- package/lib/helper/TMConditionalWrapper.js +4 -0
- package/lib/helper/TMCustomSearchBar.d.ts +8 -0
- package/lib/helper/TMCustomSearchBar.js +54 -0
- package/lib/helper/TMIcons.d.ts +274 -0
- package/lib/helper/TMIcons.js +673 -0
- package/lib/helper/TMImageLibrary.d.ts +4 -0
- package/lib/helper/TMImageLibrary.js +466 -0
- package/lib/helper/TMToppyMessage.d.ts +7 -0
- package/lib/helper/TMToppyMessage.js +42 -0
- package/lib/helper/TMUtils.d.ts +26 -0
- package/lib/helper/TMUtils.js +212 -0
- package/lib/helper/dcmtsHelper.d.ts +8 -0
- package/lib/helper/dcmtsHelper.js +53 -0
- package/lib/helper/helpers.d.ts +84 -0
- package/lib/helper/helpers.js +826 -0
- package/lib/helper/index.d.ts +13 -0
- package/lib/helper/index.js +13 -0
- package/lib/helper/queryHelper.d.ts +19 -0
- package/lib/helper/queryHelper.js +336 -0
- package/lib/hooks/useDcmtOperations.d.ts +24 -0
- package/lib/hooks/useDcmtOperations.js +482 -0
- package/lib/hooks/useForm.d.ts +24 -0
- package/lib/hooks/useForm.js +157 -0
- package/lib/hooks/useInputDialog.d.ts +9 -0
- package/lib/hooks/useInputDialog.js +105 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useOutsideClick.js +38 -0
- package/lib/hooks/usePreventFileDrop.d.ts +3 -0
- package/lib/hooks/usePreventFileDrop.js +37 -0
- package/lib/hooks/useQueryParametersDialog.d.ts +2 -0
- package/lib/hooks/useQueryParametersDialog.js +71 -0
- package/lib/hooks/useRelatedDocuments.d.ts +72 -0
- package/lib/hooks/useRelatedDocuments.js +664 -0
- package/lib/hooks/useResizeObserver.d.ts +4 -0
- package/lib/hooks/useResizeObserver.js +22 -0
- package/lib/hooks/useWorkflowApprove.d.ts +11 -0
- package/lib/hooks/useWorkflowApprove.js +57 -0
- package/lib/index.d.ts +12 -0
- package/lib/index.js +15 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/platform_services.d.ts +18 -0
- package/lib/services/platform_services.js +492 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/lib/ts/types.d.ts +310 -0
- package/lib/ts/types.js +100 -0
- package/lib/utils/theme.d.ts +69 -0
- package/lib/utils/theme.js +81 -0
- package/package.json +54 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
3
|
+
import { AdditionalIconProps } from "./TextBox";
|
|
4
|
+
export interface ChooserColumn<T> {
|
|
5
|
+
field: keyof T;
|
|
6
|
+
caption: string;
|
|
7
|
+
type?: 'string' | 'boolean' | 'number' | 'date' | 'datetime';
|
|
8
|
+
}
|
|
9
|
+
interface ChooserProps<T> {
|
|
10
|
+
dataSource: T[];
|
|
11
|
+
columns: Array<ChooserColumn<T>>;
|
|
12
|
+
value: keyof T;
|
|
13
|
+
additionalIcons?: AdditionalIconProps[];
|
|
14
|
+
label?: string;
|
|
15
|
+
icon?: any;
|
|
16
|
+
placeHolder?: string;
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
validationItems?: ValidationItem[];
|
|
19
|
+
title?: string;
|
|
20
|
+
selectedRow?: T;
|
|
21
|
+
onSelectionChanged?: (value: T) => void;
|
|
22
|
+
onChooserClick?: () => void;
|
|
23
|
+
onClose?: () => void;
|
|
24
|
+
isDropDown?: boolean;
|
|
25
|
+
}
|
|
26
|
+
declare const Chooser: <T>({ dataSource, columns, value, additionalIcons, validationItems, title, label, icon, placeHolder, disabled, selectedRow, onChooserClick, onSelectionChanged, onClose, isDropDown }: ChooserProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export default Chooser;
|
|
28
|
+
export declare function IconDropDown(props: React.SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useRef, useEffect, useMemo } from "react";
|
|
3
|
+
import styled from "styled-components";
|
|
4
|
+
import DataGrid, { Column, Selection } from "devextreme-react/data-grid";
|
|
5
|
+
import TextBox from "./TextBox";
|
|
6
|
+
import { createPortal } from 'react-dom';
|
|
7
|
+
import { IconSearch, SDKUI_Localizator, IconArrowLeft, IconApply } from "../../../helper";
|
|
8
|
+
import TMButton from "../../base/TMButton";
|
|
9
|
+
const PopupContainer = styled.div `
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
background: rgba(0, 0, 0, 0.4);
|
|
16
|
+
display: flex;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
align-items: center;
|
|
19
|
+
z-index: 100;
|
|
20
|
+
`;
|
|
21
|
+
const PopupHeaderContainer = styled.div `
|
|
22
|
+
display: flex;
|
|
23
|
+
padding: 10px;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: space-between;
|
|
26
|
+
`;
|
|
27
|
+
const DropdownContainer = styled.div `
|
|
28
|
+
position: fixed;
|
|
29
|
+
background: white;
|
|
30
|
+
border: 1px solid #ccc;
|
|
31
|
+
border-radius: 4px;
|
|
32
|
+
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
|
|
33
|
+
max-height: 35vh;
|
|
34
|
+
overflow-y: auto;
|
|
35
|
+
z-index: 9999;
|
|
36
|
+
width: fit-content;
|
|
37
|
+
resize: both;
|
|
38
|
+
`;
|
|
39
|
+
const PopupContent = styled.div `
|
|
40
|
+
background: white;
|
|
41
|
+
padding: 20px;
|
|
42
|
+
border-radius: 8px;
|
|
43
|
+
width: 100%;
|
|
44
|
+
height: 100%;
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: column;
|
|
47
|
+
`;
|
|
48
|
+
const Chooser = ({ dataSource, columns, value, additionalIcons = [], validationItems = [], title, label = '', icon, placeHolder, disabled, selectedRow, onChooserClick, onSelectionChanged, onClose, isDropDown = false }) => {
|
|
49
|
+
const [isDropdownOpen, setIsDropdownOpen] = useState(false);
|
|
50
|
+
const [isPopupOpen, setIsPopupOpen] = useState(false);
|
|
51
|
+
const [focusedRow, setFocusedRow] = useState(null);
|
|
52
|
+
const dropdownRef = useRef(null);
|
|
53
|
+
const dropdownPortalRef = useRef(null);
|
|
54
|
+
const [dropdownPosition, setDropdownPosition] = useState({ top: 0, left: 0, width: 0, minWidth: 0, maxWidth: 0 });
|
|
55
|
+
useEffect(() => {
|
|
56
|
+
if (isDropdownOpen && dropdownRef.current) {
|
|
57
|
+
const rect = dropdownRef.current.getBoundingClientRect();
|
|
58
|
+
setDropdownPosition({
|
|
59
|
+
top: rect.bottom + window.scrollY,
|
|
60
|
+
left: rect.left + window.scrollX,
|
|
61
|
+
width: 'min-content',
|
|
62
|
+
minWidth: rect.width,
|
|
63
|
+
maxWidth: 550
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
}, [isDropdownOpen]);
|
|
67
|
+
const handleOpen = () => {
|
|
68
|
+
if (!disabled) {
|
|
69
|
+
if (isDropDown) {
|
|
70
|
+
setIsDropdownOpen((prev) => !prev);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
setIsPopupOpen(true);
|
|
74
|
+
}
|
|
75
|
+
onChooserClick?.();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
const handleClose = () => {
|
|
79
|
+
setIsDropdownOpen(false);
|
|
80
|
+
setIsPopupOpen(false);
|
|
81
|
+
onClose?.();
|
|
82
|
+
};
|
|
83
|
+
const handlePopupApplySelection = () => {
|
|
84
|
+
if (focusedRow) {
|
|
85
|
+
onSelectionChanged?.(focusedRow);
|
|
86
|
+
handleClose();
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const handleDropdownApplySelection = (e) => {
|
|
90
|
+
onSelectionChanged?.(e.data);
|
|
91
|
+
handleClose();
|
|
92
|
+
};
|
|
93
|
+
const handleKeyDown = (event) => {
|
|
94
|
+
if (event.key === " ") {
|
|
95
|
+
event.preventDefault();
|
|
96
|
+
handleOpen();
|
|
97
|
+
}
|
|
98
|
+
if (event.key === "Escape") {
|
|
99
|
+
event.preventDefault();
|
|
100
|
+
handleClose();
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
useEffect(() => {
|
|
104
|
+
function handleClickOutside(event) {
|
|
105
|
+
const target = event.target;
|
|
106
|
+
const clickedOutsideMain = dropdownRef.current && !dropdownRef.current.contains(target);
|
|
107
|
+
const clickedOutsidePortal = dropdownPortalRef.current && !dropdownPortalRef.current.contains(target);
|
|
108
|
+
if (clickedOutsideMain && clickedOutsidePortal) {
|
|
109
|
+
handleClose();
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
document.addEventListener("mousedown", handleClickOutside);
|
|
113
|
+
return () => {
|
|
114
|
+
document.removeEventListener("mousedown", handleClickOutside);
|
|
115
|
+
};
|
|
116
|
+
}, []);
|
|
117
|
+
const fixedChooserIcon = {
|
|
118
|
+
icon: isDropDown ? _jsx(IconDropDown, { fontSize: 18 }) : _jsx(IconSearch, {}),
|
|
119
|
+
tooltip: !isDropDown ? SDKUI_Localizator.Update : undefined,
|
|
120
|
+
onClick: handleOpen,
|
|
121
|
+
color: "#313131"
|
|
122
|
+
};
|
|
123
|
+
const dataGridOnKeyDown = (e) => {
|
|
124
|
+
switch (e.event?.key) {
|
|
125
|
+
case 'Enter':
|
|
126
|
+
handlePopupApplySelection();
|
|
127
|
+
break;
|
|
128
|
+
case 'Escape':
|
|
129
|
+
handleClose();
|
|
130
|
+
break;
|
|
131
|
+
default: break;
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
const defaultSelectedRowKey = useMemo(() => { return [selectedRow]; }, [selectedRow]);
|
|
135
|
+
const combinedIcons = !isDropDown ? [fixedChooserIcon, ...additionalIcons] : [...additionalIcons, fixedChooserIcon];
|
|
136
|
+
return (_jsxs("div", { style: { width: '100%' }, ref: dropdownRef, children: [_jsx(TextBox, { value: selectedRow ? selectedRow[value] : "", onValueChanged: () => { }, readOnly: false, type: "text", label: label, icon: icon, placeHolder: placeHolder, disabled: disabled, additionalIcons: combinedIcons, onClick: handleOpen, cursor: "pointer", validationItems: validationItems, onKeyDown: handleKeyDown }), isDropDown && isDropdownOpen && createPortal(_jsx(DropdownContainer, { ref: dropdownPortalRef, style: {
|
|
137
|
+
top: dropdownPosition.top,
|
|
138
|
+
left: dropdownPosition.left,
|
|
139
|
+
width: dropdownPosition.width,
|
|
140
|
+
minWidth: dropdownPosition.minWidth,
|
|
141
|
+
maxWidth: dropdownPosition.maxWidth
|
|
142
|
+
}, children: _jsxs(DataGrid, { dataSource: dataSource, showBorders: true, onSelectionChanged: (e) => setFocusedRow(e.selectedRowsData[0] || null), defaultSelectedRowKeys: defaultSelectedRowKey, onRowClick: handleDropdownApplySelection, onKeyDown: dataGridOnKeyDown, width: '100%', children: [_jsx(Selection, { mode: "single" }), columns.map((col, index) => (_jsx(Column, { width: 'auto', allowResizing: true, dataField: col.field, caption: col.caption, dataType: col.type }, index * 2)))] }) }), document.body), !isDropDown && isPopupOpen && (_jsx(PopupContainer, { children: _jsxs(PopupContent, { children: [_jsxs(PopupHeaderContainer, { children: [_jsx(TMButton, { btnStyle: "icon", caption: SDKUI_Localizator.Back, onClick: handleClose, icon: _jsx(IconArrowLeft, {}) }), _jsx("h2", { children: title ?? label }), _jsx(TMButton, { btnStyle: "toolbar", caption: SDKUI_Localizator.Apply, onClick: handlePopupApplySelection, disabled: !focusedRow, color: "success", icon: _jsx(IconApply, {}) })] }), _jsxs(DataGrid, { dataSource: dataSource, showBorders: true, onSelectionChanged: (e) => setFocusedRow(e.selectedRowsData[0] || null), defaultSelectedRowKeys: defaultSelectedRowKey, onRowDblClick: handlePopupApplySelection, children: [_jsx(Selection, { mode: "single" }), columns.map((col, index) => (_jsx(Column, { dataField: col.field, caption: col.caption, dataType: col.type }, index * 2)))] })] }) }))] }));
|
|
143
|
+
};
|
|
144
|
+
export default Chooser;
|
|
145
|
+
export function IconDropDown(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
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { CultureIDs } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
export declare class LOGINLocalizator {
|
|
3
|
+
private static _cultureID;
|
|
4
|
+
static setLanguage(culture: CultureIDs): void;
|
|
5
|
+
static get QuickAccess(): string;
|
|
6
|
+
static get ConfigureAuthenticator(): string;
|
|
7
|
+
static get OtpCodeSent(): string;
|
|
8
|
+
static get LicenseLoadingError(): string;
|
|
9
|
+
static get TopMediaWithMFA(): string;
|
|
10
|
+
static get QuickAccessExistsReplace(): string;
|
|
11
|
+
static get QuickAccessExists(): string;
|
|
12
|
+
static get SetupAuthenticator(): string;
|
|
13
|
+
static get SendOtpByEmail(): string;
|
|
14
|
+
static get Continue(): string;
|
|
15
|
+
static get NewPasswordSameAsOld(): string;
|
|
16
|
+
static get NewPasswordInvalid(): string;
|
|
17
|
+
static get InvalidPastedCode(): string;
|
|
18
|
+
static get FailedToResendOtp(): string;
|
|
19
|
+
static get ResendFailed(): string;
|
|
20
|
+
static get EnterOtpCode(): string;
|
|
21
|
+
static get ResendOtp(): string;
|
|
22
|
+
static get ResendIn(): string;
|
|
23
|
+
static get SendOtp(): string;
|
|
24
|
+
static get EnterOtpInstructions(): string;
|
|
25
|
+
static get CreateNewQuickAccess(): string;
|
|
26
|
+
static get EnterOtpEmailOnly(): string;
|
|
27
|
+
static get DidNotReceiveOtpClickResend(): string;
|
|
28
|
+
static get InvalidOtp(): string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { CultureIDs } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
export class LOGINLocalizator {
|
|
3
|
+
static setLanguage(culture) {
|
|
4
|
+
this._cultureID = culture;
|
|
5
|
+
}
|
|
6
|
+
static get QuickAccess() {
|
|
7
|
+
switch (this._cultureID) {
|
|
8
|
+
case CultureIDs.De_DE: return "Schnellzugriffe";
|
|
9
|
+
case CultureIDs.En_US: return "Quick Access";
|
|
10
|
+
case CultureIDs.Es_ES: return "Accesos rápidos";
|
|
11
|
+
case CultureIDs.Fr_FR: return "Accès rapide";
|
|
12
|
+
case CultureIDs.Pt_PT: return "Acessos rápidos";
|
|
13
|
+
default: return "Accessi rapidi";
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
static get ConfigureAuthenticator() {
|
|
17
|
+
switch (this._cultureID) {
|
|
18
|
+
case CultureIDs.De_DE: return "Authenticator konfigurieren";
|
|
19
|
+
case CultureIDs.En_US: return "Configure authenticator";
|
|
20
|
+
case CultureIDs.Es_ES: return "Configurar autenticador";
|
|
21
|
+
case CultureIDs.Fr_FR: return "Configurer l’authentificateur";
|
|
22
|
+
case CultureIDs.Pt_PT: return "Configurar autenticador";
|
|
23
|
+
default: return "Configurazione authenticator";
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
static get OtpCodeSent() {
|
|
27
|
+
switch (this._cultureID) {
|
|
28
|
+
case CultureIDs.De_DE: return "Der OTP-Code wurde per E-Mail gesendet";
|
|
29
|
+
case CultureIDs.En_US: return "OTP code has been sent via email";
|
|
30
|
+
case CultureIDs.Es_ES: return "El código OTP se ha enviado por correo";
|
|
31
|
+
case CultureIDs.Fr_FR: return "Le code OTP a été envoyé par e-mail";
|
|
32
|
+
case CultureIDs.Pt_PT: return "O código OTP foi enviado por e-mail";
|
|
33
|
+
default: return "Il codice OTP è stato inviato via mail";
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
static get LicenseLoadingError() {
|
|
37
|
+
switch (this._cultureID) {
|
|
38
|
+
case CultureIDs.De_DE: return "Fehler beim Laden der Lizenz";
|
|
39
|
+
case CultureIDs.En_US: return "License loading error";
|
|
40
|
+
case CultureIDs.Es_ES: return "Error al cargar la licencia";
|
|
41
|
+
case CultureIDs.Fr_FR: return "Erreur de chargement de la licence";
|
|
42
|
+
case CultureIDs.Pt_PT: return "Erro ao carregar licença";
|
|
43
|
+
default: return "Errore caricamento licenza";
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
static get TopMediaWithMFA() {
|
|
47
|
+
switch (this._cultureID) {
|
|
48
|
+
case CultureIDs.De_DE: return "TopMedia mit MFA";
|
|
49
|
+
case CultureIDs.En_US: return "TopMedia with MFA";
|
|
50
|
+
case CultureIDs.Es_ES: return "TopMedia con MFA";
|
|
51
|
+
case CultureIDs.Fr_FR: return "TopMedia avec MFA";
|
|
52
|
+
case CultureIDs.Pt_PT: return "TopMedia com MFA";
|
|
53
|
+
default: return "TopMedia con MFA";
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
static get QuickAccessExistsReplace() {
|
|
57
|
+
switch (this._cultureID) {
|
|
58
|
+
case CultureIDs.De_DE: return "Ein Schnellzugriff existiert bereits. Möchten Sie ihn ersetzen?";
|
|
59
|
+
case CultureIDs.En_US: return "A quick access already exists. Do you want to replace it?";
|
|
60
|
+
case CultureIDs.Es_ES: return "Ya existe un acceso rápido. ¿Desea reemplazarlo?";
|
|
61
|
+
case CultureIDs.Fr_FR: return "Un accès rapide existe déjà. Voulez-vous le remplacer ?";
|
|
62
|
+
case CultureIDs.Pt_PT: return "Já existe um acesso rápido. Deseja substituí-lo?";
|
|
63
|
+
default: return "Esiste già un accesso rapido. Vuoi sostituirlo con quello attuale?";
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
static get QuickAccessExists() {
|
|
67
|
+
switch (this._cultureID) {
|
|
68
|
+
case CultureIDs.De_DE: return "Dieser Schnellzugriff existiert bereits";
|
|
69
|
+
case CultureIDs.En_US: return "This quick access already exists";
|
|
70
|
+
case CultureIDs.Es_ES: return "Este acceso rápido ya existe";
|
|
71
|
+
case CultureIDs.Fr_FR: return "Cet accès rapide existe déjà";
|
|
72
|
+
case CultureIDs.Pt_PT: return "Este acesso rápido já existe";
|
|
73
|
+
default: return "Esiste già questo accesso rapido";
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
static get SetupAuthenticator() {
|
|
77
|
+
switch (this._cultureID) {
|
|
78
|
+
case CultureIDs.De_DE: return "Authenticator einrichten";
|
|
79
|
+
case CultureIDs.En_US: return "Set up authenticator";
|
|
80
|
+
case CultureIDs.Es_ES: return "Configurar autenticador";
|
|
81
|
+
case CultureIDs.Fr_FR: return "Configurer l’authentificateur";
|
|
82
|
+
case CultureIDs.Pt_PT: return "Configurar autenticador";
|
|
83
|
+
default: return "Configura authenticator";
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
static get SendOtpByEmail() {
|
|
87
|
+
switch (this._cultureID) {
|
|
88
|
+
case CultureIDs.De_DE: return "Sende mir den OTP per E-Mail";
|
|
89
|
+
case CultureIDs.En_US: return "Send me the OTP via email";
|
|
90
|
+
case CultureIDs.Es_ES: return "Envíame el OTP por correo";
|
|
91
|
+
case CultureIDs.Fr_FR: return "Envoyez-moi le code OTP par e-mail";
|
|
92
|
+
case CultureIDs.Pt_PT: return "Envie-me o OTP por e-mail";
|
|
93
|
+
default: return "Inviami l'OTP via mail";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
static get Continue() {
|
|
97
|
+
switch (this._cultureID) {
|
|
98
|
+
case CultureIDs.De_DE: return "Fortfahren";
|
|
99
|
+
case CultureIDs.En_US: return "Continue";
|
|
100
|
+
case CultureIDs.Es_ES: return "Continuar";
|
|
101
|
+
case CultureIDs.Fr_FR: return "Continuer";
|
|
102
|
+
case CultureIDs.Pt_PT: return "Continuar";
|
|
103
|
+
default: return "Continua";
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
static get NewPasswordSameAsOld() {
|
|
107
|
+
switch (this._cultureID) {
|
|
108
|
+
case CultureIDs.De_DE: return "Das neue Passwort darf nicht mit dem alten übereinstimmen";
|
|
109
|
+
case CultureIDs.En_US: return "New password cannot be the same as the old one";
|
|
110
|
+
case CultureIDs.Es_ES: return "La nueva contraseña no puede ser igual a la anterior";
|
|
111
|
+
case CultureIDs.Fr_FR: return "Le nouveau mot de passe ne peut pas être identique à l’ancien";
|
|
112
|
+
case CultureIDs.Pt_PT: return "A nova senha não pode ser igual à anterior";
|
|
113
|
+
default: return "La nuova password non può essere uguale con la vecchia password";
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
static get NewPasswordInvalid() {
|
|
117
|
+
switch (this._cultureID) {
|
|
118
|
+
case CultureIDs.De_DE: return "Das neue Passwort erfüllt nicht die Anforderungen";
|
|
119
|
+
case CultureIDs.En_US: return "New password does not meet the requirements";
|
|
120
|
+
case CultureIDs.Es_ES: return "La nueva contraseña no cumple con los requisitos";
|
|
121
|
+
case CultureIDs.Fr_FR: return "Le nouveau mot de passe ne respecte pas les exigences";
|
|
122
|
+
case CultureIDs.Pt_PT: return "A nova senha não atende aos requisitos";
|
|
123
|
+
default: return "La nuova password non soddisfa i requisiti";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
static get InvalidPastedCode() {
|
|
127
|
+
switch (this._cultureID) {
|
|
128
|
+
case CultureIDs.De_DE: return "Der eingefügte Code muss genau 6 Ziffern lang sein";
|
|
129
|
+
case CultureIDs.En_US: return "The pasted code must be exactly 6 digits";
|
|
130
|
+
case CultureIDs.Es_ES: return "El código pegado debe tener exactamente 6 dígitos";
|
|
131
|
+
case CultureIDs.Fr_FR: return "Le code collé doit contenir exactement 6 chiffres";
|
|
132
|
+
case CultureIDs.Pt_PT: return "O código colado deve ter exatamente 6 dígitos";
|
|
133
|
+
default: return "Il codice incollato deve essere esattamente di 6 cifre";
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
static get FailedToResendOtp() {
|
|
137
|
+
switch (this._cultureID) {
|
|
138
|
+
case CultureIDs.De_DE: return "OTP konnte nicht erneut gesendet werden";
|
|
139
|
+
case CultureIDs.En_US: return "Failed to resend OTP";
|
|
140
|
+
case CultureIDs.Es_ES: return "Error al reenviar el OTP";
|
|
141
|
+
case CultureIDs.Fr_FR: return "Échec de renvoi du code OTP";
|
|
142
|
+
case CultureIDs.Pt_PT: return "Falha ao reenviar o OTP";
|
|
143
|
+
default: return "Impossibile inviare nuovamente l'OTP";
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
static get ResendFailed() {
|
|
147
|
+
switch (this._cultureID) {
|
|
148
|
+
case CultureIDs.De_DE: return "Erneutes Senden fehlgeschlagen";
|
|
149
|
+
case CultureIDs.En_US: return "Resend failed";
|
|
150
|
+
case CultureIDs.Es_ES: return "Error al reenviar";
|
|
151
|
+
case CultureIDs.Fr_FR: return "Échec du renvoi";
|
|
152
|
+
case CultureIDs.Pt_PT: return "Falha ao reenviar";
|
|
153
|
+
default: return "Reinvio non riuscito";
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
static get EnterOtpCode() {
|
|
157
|
+
switch (this._cultureID) {
|
|
158
|
+
case CultureIDs.De_DE: return "Geben Sie den OTP-Code ein";
|
|
159
|
+
case CultureIDs.En_US: return "Enter the OTP code";
|
|
160
|
+
case CultureIDs.Es_ES: return "Introduce el código OTP";
|
|
161
|
+
case CultureIDs.Fr_FR: return "Entrez le code OTP";
|
|
162
|
+
case CultureIDs.Pt_PT: return "Digite o código OTP";
|
|
163
|
+
default: return "Inserisci il codice OTP";
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
static get ResendOtp() {
|
|
167
|
+
switch (this._cultureID) {
|
|
168
|
+
case CultureIDs.De_DE: return "OTP erneut senden";
|
|
169
|
+
case CultureIDs.En_US: return "Resend OTP";
|
|
170
|
+
case CultureIDs.Es_ES: return "Reenviar OTP";
|
|
171
|
+
case CultureIDs.Fr_FR: return "Renvoyer le code OTP";
|
|
172
|
+
case CultureIDs.Pt_PT: return "Reenviar OTP";
|
|
173
|
+
default: return "Reinvia OTP";
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
static get ResendIn() {
|
|
177
|
+
switch (this._cultureID) {
|
|
178
|
+
case CultureIDs.De_DE: return "Erneut senden in";
|
|
179
|
+
case CultureIDs.En_US: return "Resend in";
|
|
180
|
+
case CultureIDs.Es_ES: return "Reenviar en";
|
|
181
|
+
case CultureIDs.Fr_FR: return "Renvoyer dans";
|
|
182
|
+
case CultureIDs.Pt_PT: return "Reenviar em";
|
|
183
|
+
default: return "Reinvia in";
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
static get SendOtp() {
|
|
187
|
+
switch (this._cultureID) {
|
|
188
|
+
case CultureIDs.De_DE: return "OTP senden";
|
|
189
|
+
case CultureIDs.En_US: return "Send OTP";
|
|
190
|
+
case CultureIDs.Es_ES: return "Enviar OTP";
|
|
191
|
+
case CultureIDs.Fr_FR: return "Envoyer le code OTP";
|
|
192
|
+
case CultureIDs.Pt_PT: return "Enviar OTP";
|
|
193
|
+
default: return "Invia OTP";
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
static get EnterOtpInstructions() {
|
|
197
|
+
switch (this._cultureID) {
|
|
198
|
+
case CultureIDs.De_DE: return "Geben Sie den OTP-Code ein, den Sie per E-Mail oder über Google/Microsoft Authenticator erhalten haben.";
|
|
199
|
+
case CultureIDs.En_US: return "Enter the OTP code you received via email or Google/Microsoft Authenticator.";
|
|
200
|
+
case CultureIDs.Es_ES: return "Introduce el código OTP que recibiste por correo electrónico o Google/Microsoft Authenticator.";
|
|
201
|
+
case CultureIDs.Fr_FR: return "Saisissez le code OTP que vous avez reçu par e-mail ou via Google/Microsoft Authenticator.";
|
|
202
|
+
case CultureIDs.Pt_PT: return "Insira o código OTP que você recebeu por e-mail ou pelo Google/Microsoft Authenticator.";
|
|
203
|
+
default: return "Inserisci il codice OTP che hai ricevuto via email o Google/Microsoft Authenticator.";
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
static get CreateNewQuickAccess() {
|
|
207
|
+
switch (this._cultureID) {
|
|
208
|
+
case CultureIDs.De_DE: return "Neuen Schnellzugriff erstellen";
|
|
209
|
+
case CultureIDs.En_US: return "Create new quick access";
|
|
210
|
+
case CultureIDs.Es_ES: return "Crear nuevo acceso rápido";
|
|
211
|
+
case CultureIDs.Fr_FR: return "Créer un nouvel accès rapide";
|
|
212
|
+
case CultureIDs.Pt_PT: return "Criar novo acesso rápido";
|
|
213
|
+
default: return "Crea nuovo accesso rapido";
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
static get EnterOtpEmailOnly() {
|
|
217
|
+
switch (this._cultureID) {
|
|
218
|
+
case CultureIDs.De_DE: return "Geben Sie den OTP-Code ein, den Sie per E-Mail erhalten haben.";
|
|
219
|
+
case CultureIDs.En_US: return "Enter the OTP code you received via email.";
|
|
220
|
+
case CultureIDs.Es_ES: return "Introduce el código OTP que recibiste por correo electrónico.";
|
|
221
|
+
case CultureIDs.Fr_FR: return "Saisissez le code OTP que vous avez reçu par e-mail.";
|
|
222
|
+
case CultureIDs.Pt_PT: return "Insira o código OTP que você recebeu por e-mail.";
|
|
223
|
+
default: return "Inserisci il codice OTP che hai ricevuto via email.";
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
static get DidNotReceiveOtpClickResend() {
|
|
227
|
+
switch (this._cultureID) {
|
|
228
|
+
case CultureIDs.De_DE: return 'Wenn Sie ihn nicht erhalten haben, klicken Sie auf "Erneut senden", um einen neuen zu erhalten.';
|
|
229
|
+
case CultureIDs.En_US: return 'If you didn’t receive it, click "Resend" to get another one.';
|
|
230
|
+
case CultureIDs.Es_ES: return 'Si no lo recibiste, haz clic en "Reenviar" para obtener otro.';
|
|
231
|
+
case CultureIDs.Fr_FR: return 'Si vous ne l’avez pas reçu, cliquez sur "Renvoyer" pour en obtenir un autre.';
|
|
232
|
+
case CultureIDs.Pt_PT: return 'Se você não o recebeu, clique em "Reenviar" para obter outro.';
|
|
233
|
+
default: return 'Se non lo hai ricevuto, clicca su "Reinvia" per ottenerne un altro.';
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
static get InvalidOtp() {
|
|
237
|
+
switch (this._cultureID) {
|
|
238
|
+
case CultureIDs.De_DE: return "Ungültiger OTP";
|
|
239
|
+
case CultureIDs.En_US: return "Invalid OTP";
|
|
240
|
+
case CultureIDs.Es_ES: return "OTP no válido";
|
|
241
|
+
case CultureIDs.Fr_FR: return "OTP invalide";
|
|
242
|
+
case CultureIDs.Pt_PT: return "OTP inválido";
|
|
243
|
+
default: return "OTP non valido";
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
LOGINLocalizator._cultureID = CultureIDs.It_IT;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ArchiveDescriptor, AuthenticationModes, CultureIDs, ValidationItem } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
import { TMEndpointsType } from './TMLoginForm';
|
|
3
|
+
export interface LoginData {
|
|
4
|
+
endpoint: TMEndpointsType;
|
|
5
|
+
dcmtArchive: ArchiveDescriptor;
|
|
6
|
+
authenticationMode: AuthenticationModes;
|
|
7
|
+
username?: string;
|
|
8
|
+
password?: string;
|
|
9
|
+
cultureID: CultureIDs;
|
|
10
|
+
saveAsRapidAccess?: boolean;
|
|
11
|
+
rapidAccessName?: string;
|
|
12
|
+
otp?: string;
|
|
13
|
+
authDomainOnBehalfOf?: string;
|
|
14
|
+
usernameOnBehalfOf?: string;
|
|
15
|
+
passwordOnBehalfOf?: string;
|
|
16
|
+
authDomain?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface ChangePasswordData {
|
|
19
|
+
username: string;
|
|
20
|
+
oldPassword: string;
|
|
21
|
+
newPassword: string;
|
|
22
|
+
confirmPassword: string;
|
|
23
|
+
changePassword: boolean;
|
|
24
|
+
isValid: boolean;
|
|
25
|
+
}
|
|
26
|
+
export interface RecoverPasswordData {
|
|
27
|
+
email: string;
|
|
28
|
+
otp: string;
|
|
29
|
+
}
|
|
30
|
+
export declare class LoginValidator {
|
|
31
|
+
static validate(data: LoginData): {
|
|
32
|
+
fieldValidations: Map<string, ValidationItem[]>;
|
|
33
|
+
totalValidationItems: ValidationItem[];
|
|
34
|
+
};
|
|
35
|
+
private static validateBaseFields;
|
|
36
|
+
private static validateAuthModeFields;
|
|
37
|
+
private static validateRapidAccess;
|
|
38
|
+
}
|
|
39
|
+
export declare class ChangePasswordValidator {
|
|
40
|
+
static validate(data: ChangePasswordData): {
|
|
41
|
+
fieldValidations: Map<string, ValidationItem[]>;
|
|
42
|
+
totalValidationItems: ValidationItem[];
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
export declare class RecoverPasswordValidator {
|
|
46
|
+
static validate(data: RecoverPasswordData): {
|
|
47
|
+
fieldValidations: Map<string, ValidationItem[]>;
|
|
48
|
+
totalValidationItems: ValidationItem[];
|
|
49
|
+
};
|
|
50
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { AuthenticationModes, CultureIDs, ResultTypes } from '@topconsultnpm/sdk-ts';
|
|
2
|
+
import { LOGINLocalizator } from './LOGINLocalizator';
|
|
3
|
+
import { SDKUI_Localizator } from '../../../helper';
|
|
4
|
+
export class LoginValidator {
|
|
5
|
+
static validate(data) {
|
|
6
|
+
const validations = new Map();
|
|
7
|
+
const addError = (field, message) => {
|
|
8
|
+
const item = {
|
|
9
|
+
ResultType: ResultTypes.ERROR,
|
|
10
|
+
Message: message,
|
|
11
|
+
PropertyName: field,
|
|
12
|
+
PropertyScopes: []
|
|
13
|
+
};
|
|
14
|
+
const existing = validations.get(field) || [];
|
|
15
|
+
validations.set(field, [...existing, item]);
|
|
16
|
+
};
|
|
17
|
+
this.validateBaseFields(data, addError);
|
|
18
|
+
this.validateAuthModeFields(data, addError);
|
|
19
|
+
this.validateRapidAccess(data, addError);
|
|
20
|
+
const totalValidationItems = Array.from(validations.values()).flat();
|
|
21
|
+
return {
|
|
22
|
+
fieldValidations: validations,
|
|
23
|
+
totalValidationItems
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
static validateBaseFields(data, addError) {
|
|
27
|
+
if (!data.endpoint?.Description?.trim()) {
|
|
28
|
+
addError("endpoint", SDKUI_Localizator.RequiredField);
|
|
29
|
+
}
|
|
30
|
+
if (!data.dcmtArchive?.description?.trim()) {
|
|
31
|
+
addError("dcmtArchive", SDKUI_Localizator.RequiredField);
|
|
32
|
+
}
|
|
33
|
+
if (!data.authenticationMode || data.authenticationMode === AuthenticationModes.None) {
|
|
34
|
+
addError("authenticationMode", SDKUI_Localizator.RequiredField);
|
|
35
|
+
}
|
|
36
|
+
if (!data.cultureID || data.cultureID === CultureIDs.None) {
|
|
37
|
+
addError("cultureID", SDKUI_Localizator.RequiredField);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
static validateAuthModeFields(data, addError) {
|
|
41
|
+
const authMode = data.authenticationMode;
|
|
42
|
+
const requireUsernameAndPassword = [
|
|
43
|
+
AuthenticationModes.TopMedia,
|
|
44
|
+
AuthenticationModes.Windows,
|
|
45
|
+
AuthenticationModes.WindowsWithAlternativeCredentials
|
|
46
|
+
];
|
|
47
|
+
if (requireUsernameAndPassword.includes(authMode)) {
|
|
48
|
+
if (!data.username?.trim())
|
|
49
|
+
addError("username", SDKUI_Localizator.RequiredField);
|
|
50
|
+
if (!data.password?.trim())
|
|
51
|
+
addError("password", SDKUI_Localizator.RequiredField);
|
|
52
|
+
}
|
|
53
|
+
if (authMode === AuthenticationModes.TopMediaWithMFA) {
|
|
54
|
+
if (!data.username?.trim())
|
|
55
|
+
addError("username", SDKUI_Localizator.RequiredField);
|
|
56
|
+
if (!data.password?.trim())
|
|
57
|
+
addError("password", SDKUI_Localizator.RequiredField);
|
|
58
|
+
if (!data.otp || !/^\d{6}$/.test(data.otp)) {
|
|
59
|
+
addError("otp", SDKUI_Localizator.RequiredField);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
if (authMode === AuthenticationModes.TopMediaOnBehalfOf) {
|
|
63
|
+
if (!data.username?.trim())
|
|
64
|
+
addError("username", SDKUI_Localizator.RequiredField);
|
|
65
|
+
if (!data.password?.trim())
|
|
66
|
+
addError("password", SDKUI_Localizator.RequiredField);
|
|
67
|
+
if (!data.authDomainOnBehalfOf?.trim())
|
|
68
|
+
addError("authDomainOnBehalfOf", SDKUI_Localizator.RequiredField);
|
|
69
|
+
if (!data.usernameOnBehalfOf?.trim())
|
|
70
|
+
addError("usernameOnBehalfOf", SDKUI_Localizator.RequiredField);
|
|
71
|
+
if (!data.passwordOnBehalfOf?.trim())
|
|
72
|
+
addError("passwordOnBehalfOf", SDKUI_Localizator.RequiredField);
|
|
73
|
+
}
|
|
74
|
+
if (authMode === AuthenticationModes.WindowsThroughTopMedia) {
|
|
75
|
+
if (!data.username?.trim())
|
|
76
|
+
addError("username", SDKUI_Localizator.RequiredField);
|
|
77
|
+
if (!data.password?.trim())
|
|
78
|
+
addError("password", SDKUI_Localizator.RequiredField);
|
|
79
|
+
if (!data.authDomain?.trim())
|
|
80
|
+
addError("authDomain", SDKUI_Localizator.RequiredField);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
static validateRapidAccess(data, addError) {
|
|
84
|
+
if (data.saveAsRapidAccess && !data.rapidAccessName?.trim()) {
|
|
85
|
+
addError("rapidAccessName", SDKUI_Localizator.RequiredField);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
export class ChangePasswordValidator {
|
|
90
|
+
static validate(data) {
|
|
91
|
+
const validations = new Map();
|
|
92
|
+
const addError = (field, message) => {
|
|
93
|
+
const item = {
|
|
94
|
+
ResultType: ResultTypes.ERROR,
|
|
95
|
+
Message: message,
|
|
96
|
+
PropertyName: field,
|
|
97
|
+
PropertyScopes: []
|
|
98
|
+
};
|
|
99
|
+
const existing = validations.get(field) || [];
|
|
100
|
+
validations.set(field, [...existing, item]);
|
|
101
|
+
};
|
|
102
|
+
if (data.changePassword && !data.oldPassword?.trim()) {
|
|
103
|
+
addError("oldPassword", SDKUI_Localizator.RequiredField);
|
|
104
|
+
}
|
|
105
|
+
if (!data.newPassword?.trim()) {
|
|
106
|
+
addError("newPassword", SDKUI_Localizator.RequiredField);
|
|
107
|
+
}
|
|
108
|
+
else if (data.username) {
|
|
109
|
+
const lowerPassword = data.newPassword.toLowerCase();
|
|
110
|
+
const lowerUsername = data.username.toLowerCase();
|
|
111
|
+
if (lowerPassword === data.oldPassword.toLocaleLowerCase()) {
|
|
112
|
+
addError("newPassword", LOGINLocalizator.NewPasswordSameAsOld);
|
|
113
|
+
}
|
|
114
|
+
if (lowerPassword === lowerUsername) {
|
|
115
|
+
addError("newPassword", SDKUI_Localizator.PasswordEqualsUsernameError);
|
|
116
|
+
}
|
|
117
|
+
else if (lowerPassword.includes(lowerUsername)) {
|
|
118
|
+
addError("newPassword", SDKUI_Localizator.PasswordContainsUsernameError);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
if (!data.isValid && data.newPassword?.trim()) {
|
|
122
|
+
addError("newPassword", LOGINLocalizator.NewPasswordInvalid);
|
|
123
|
+
}
|
|
124
|
+
if (data.newPassword?.trim() && data.confirmPassword !== data.newPassword) {
|
|
125
|
+
addError("confirmPassword", SDKUI_Localizator.PasswordConfirmError);
|
|
126
|
+
}
|
|
127
|
+
const totalValidationItems = Array.from(validations.values()).flat();
|
|
128
|
+
return {
|
|
129
|
+
fieldValidations: validations,
|
|
130
|
+
totalValidationItems
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
export class RecoverPasswordValidator {
|
|
135
|
+
static validate(data) {
|
|
136
|
+
const validations = new Map();
|
|
137
|
+
const addValidationItem = (field, message, type = ResultTypes.ERROR) => {
|
|
138
|
+
const item = {
|
|
139
|
+
ResultType: type,
|
|
140
|
+
Message: message,
|
|
141
|
+
PropertyName: field,
|
|
142
|
+
PropertyScopes: []
|
|
143
|
+
};
|
|
144
|
+
const existing = validations.get(field) || [];
|
|
145
|
+
validations.set(field, [...existing, item]);
|
|
146
|
+
};
|
|
147
|
+
if (!data.email?.trim()) {
|
|
148
|
+
addValidationItem("email", SDKUI_Localizator.RequiredField);
|
|
149
|
+
}
|
|
150
|
+
else if (!/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/.test(data.email)) {
|
|
151
|
+
addValidationItem("email", SDKUI_Localizator.EmailIsNotValid, ResultTypes.WARNING);
|
|
152
|
+
}
|
|
153
|
+
if (!data.otp || !/^\d{6}$/.test(data.otp)) {
|
|
154
|
+
addValidationItem("otp", SDKUI_Localizator.RequiredField);
|
|
155
|
+
}
|
|
156
|
+
const totalValidationItems = Array.from(validations.values()).flat();
|
|
157
|
+
return {
|
|
158
|
+
fieldValidations: validations,
|
|
159
|
+
totalValidationItems
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
}
|