@topconsultnpm/sdkui-react 6.20.0-dev1.14 → 6.20.0-dev1.15
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/package.json +1 -1
- package/lib/assets/IconsS4t/add.svg +0 -12
- package/lib/assets/IconsS4t/aggiorna.svg +0 -18
- package/lib/assets/IconsS4t/bookmark.svg +0 -42
- package/lib/assets/IconsS4t/cancella.svg +0 -15
- package/lib/assets/IconsS4t/check-box.svg +0 -19
- package/lib/assets/IconsS4t/down-arrow-signBook.svg +0 -40
- package/lib/assets/IconsS4t/down.svg +0 -28
- package/lib/assets/IconsS4t/edit-file.svg +0 -19
- package/lib/assets/IconsS4t/edita.svg +0 -32
- package/lib/assets/IconsS4t/firma.svg +0 -19
- package/lib/assets/IconsS4t/icona_download.svg +0 -16
- package/lib/assets/IconsS4t/info.svg +0 -51
- package/lib/assets/IconsS4t/left.svg +0 -20
- package/lib/assets/IconsS4t/line.svg +0 -40
- package/lib/assets/IconsS4t/more.svg +0 -19
- package/lib/assets/IconsS4t/new-signature.svg +0 -1
- package/lib/assets/IconsS4t/plus.svg +0 -23
- package/lib/assets/IconsS4t/printer.svg +0 -49
- package/lib/assets/IconsS4t/radio-on-button.svg +0 -25
- package/lib/assets/IconsS4t/rectangle.svg +0 -41
- package/lib/assets/IconsS4t/redo.svg +0 -19
- package/lib/assets/IconsS4t/right-arrow-signBook-finish.svg +0 -40
- package/lib/assets/IconsS4t/right-arrow-signBook.svg +0 -40
- package/lib/assets/IconsS4t/right.svg +0 -22
- package/lib/assets/IconsS4t/searchbar.svg +0 -21
- package/lib/assets/IconsS4t/text-box.svg +0 -36
- package/lib/assets/IconsS4t/tick.svg +0 -8
- package/lib/assets/IconsS4t/trash-white.svg +0 -11
- package/lib/assets/IconsS4t/trash.svg +0 -1
- package/lib/assets/IconsS4t/undo.svg +0 -19
- package/lib/assets/IconsS4t/up.svg +0 -32
- package/lib/assets/IconsS4t/video-streaming.svg +0 -2
- package/lib/assets/IconsS4t/zoom-in.svg +0 -58
- package/lib/assets/IconsS4t/zoom-out.svg +0 -56
- 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 +0 -1
- package/lib/assets/german.svg +0 -1
- package/lib/assets/icomoon.eot +0 -0
- package/lib/assets/icomoon.svg +0 -97
- package/lib/assets/icomoon.ttf +0 -0
- package/lib/assets/icomoon.woff +0 -0
- package/lib/assets/italy.svg +0 -16
- 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 +0 -1
- package/lib/assets/six.png +0 -0
- package/lib/assets/six.svg +0 -4
- package/lib/assets/spain.svg +0 -1
- 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 +0 -19
- package/lib/assets/thumbnails/index.js +0 -19
- package/lib/assets/thumbnails/index.ts +0 -39
- 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 +0 -66
- package/lib/assets/topmeida-six-bianco.svg +0 -66
- package/lib/assets/united-kingdom.svg +0 -1
- package/lib/components/NewComponents/ContextMenu/TMContextMenu.d.ts +0 -4
- package/lib/components/NewComponents/ContextMenu/TMContextMenu.js +0 -187
- package/lib/components/NewComponents/ContextMenu/hooks.d.ts +0 -11
- package/lib/components/NewComponents/ContextMenu/hooks.js +0 -48
- package/lib/components/NewComponents/ContextMenu/index.d.ts +0 -2
- package/lib/components/NewComponents/ContextMenu/index.js +0 -1
- package/lib/components/NewComponents/ContextMenu/styles.d.ts +0 -27
- package/lib/components/NewComponents/ContextMenu/styles.js +0 -308
- package/lib/components/NewComponents/ContextMenu/types.d.ts +0 -26
- package/lib/components/NewComponents/ContextMenu/types.js +0 -1
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.d.ts +0 -4
- package/lib/components/NewComponents/FloatingMenuBar/TMFloatingMenuBar.js +0 -370
- package/lib/components/NewComponents/FloatingMenuBar/index.d.ts +0 -2
- package/lib/components/NewComponents/FloatingMenuBar/index.js +0 -2
- package/lib/components/NewComponents/FloatingMenuBar/styles.d.ts +0 -38
- package/lib/components/NewComponents/FloatingMenuBar/styles.js +0 -267
- package/lib/components/NewComponents/FloatingMenuBar/types.d.ts +0 -30
- package/lib/components/NewComponents/FloatingMenuBar/types.js +0 -1
- package/lib/components/NewComponents/Notification/Notification.d.ts +0 -4
- package/lib/components/NewComponents/Notification/Notification.js +0 -60
- package/lib/components/NewComponents/Notification/NotificationContainer.d.ts +0 -8
- package/lib/components/NewComponents/Notification/NotificationContainer.js +0 -33
- package/lib/components/NewComponents/Notification/index.d.ts +0 -2
- package/lib/components/NewComponents/Notification/index.js +0 -2
- package/lib/components/NewComponents/Notification/styles.d.ts +0 -21
- package/lib/components/NewComponents/Notification/styles.js +0 -180
- package/lib/components/NewComponents/Notification/types.d.ts +0 -18
- package/lib/components/NewComponents/Notification/types.js +0 -1
- package/lib/components/base/Styled.d.ts +0 -63
- package/lib/components/base/Styled.js +0 -337
- package/lib/components/base/TMAccordion.d.ts +0 -12
- package/lib/components/base/TMAccordion.js +0 -62
- package/lib/components/base/TMAccordionNew.d.ts +0 -28
- package/lib/components/base/TMAccordionNew.js +0 -326
- package/lib/components/base/TMAlert.d.ts +0 -73
- package/lib/components/base/TMAlert.js +0 -77
- package/lib/components/base/TMAreaManager.d.ts +0 -25
- package/lib/components/base/TMAreaManager.js +0 -733
- package/lib/components/base/TMButton.d.ts +0 -22
- package/lib/components/base/TMButton.js +0 -174
- package/lib/components/base/TMClosableList.d.ts +0 -10
- package/lib/components/base/TMClosableList.js +0 -70
- package/lib/components/base/TMConfirm.d.ts +0 -13
- package/lib/components/base/TMConfirm.js +0 -119
- package/lib/components/base/TMContextMenu.d.ts +0 -25
- package/lib/components/base/TMContextMenu.js +0 -109
- package/lib/components/base/TMContextMenuOLD.d.ts +0 -26
- package/lib/components/base/TMContextMenuOLD.js +0 -56
- package/lib/components/base/TMCounterBar.d.ts +0 -10
- package/lib/components/base/TMCounterBar.js +0 -43
- package/lib/components/base/TMCounterContainer.d.ts +0 -23
- package/lib/components/base/TMCounterContainer.js +0 -58
- package/lib/components/base/TMCustomButton.d.ts +0 -11
- package/lib/components/base/TMCustomButton.js +0 -118
- package/lib/components/base/TMDataGrid.d.ts +0 -56
- package/lib/components/base/TMDataGrid.js +0 -237
- package/lib/components/base/TMDataGridExportForm.d.ts +0 -15
- package/lib/components/base/TMDataGridExportForm.js +0 -215
- package/lib/components/base/TMDeviceProvider.d.ts +0 -15
- package/lib/components/base/TMDeviceProvider.js +0 -41
- package/lib/components/base/TMDropDownMenu.d.ts +0 -23
- package/lib/components/base/TMDropDownMenu.js +0 -45
- package/lib/components/base/TMEditorBase.d.ts +0 -39
- package/lib/components/base/TMEditorBase.js +0 -1
- package/lib/components/base/TMFileManager.d.ts +0 -45
- package/lib/components/base/TMFileManager.js +0 -233
- package/lib/components/base/TMFileManagerDataGridView.d.ts +0 -16
- package/lib/components/base/TMFileManagerDataGridView.js +0 -101
- package/lib/components/base/TMFileManagerThumbnailItems.d.ts +0 -18
- package/lib/components/base/TMFileManagerThumbnailItems.js +0 -148
- package/lib/components/base/TMFileManagerThumbnailsView.d.ts +0 -19
- package/lib/components/base/TMFileManagerThumbnailsView.js +0 -46
- package/lib/components/base/TMFileManagerUtils.d.ts +0 -78
- package/lib/components/base/TMFileManagerUtils.js +0 -207
- package/lib/components/base/TMFloatingToolbar.d.ts +0 -9
- package/lib/components/base/TMFloatingToolbar.js +0 -101
- package/lib/components/base/TMLayout.d.ts +0 -55
- package/lib/components/base/TMLayout.js +0 -201
- package/lib/components/base/TMList.d.ts +0 -9
- package/lib/components/base/TMList.js +0 -54
- package/lib/components/base/TMListView.d.ts +0 -42
- package/lib/components/base/TMListView.js +0 -387
- package/lib/components/base/TMModal.d.ts +0 -18
- package/lib/components/base/TMModal.js +0 -115
- package/lib/components/base/TMPanel.d.ts +0 -32
- package/lib/components/base/TMPanel.js +0 -181
- package/lib/components/base/TMPopUp.d.ts +0 -33
- package/lib/components/base/TMPopUp.js +0 -336
- package/lib/components/base/TMProgressBar.d.ts +0 -11
- package/lib/components/base/TMProgressBar.js +0 -32
- package/lib/components/base/TMResizableMenu.d.ts +0 -20
- package/lib/components/base/TMResizableMenu.js +0 -98
- package/lib/components/base/TMRightSidebar.d.ts +0 -19
- package/lib/components/base/TMRightSidebar.js +0 -80
- package/lib/components/base/TMShowAllOrMaxItemsButton.d.ts +0 -8
- package/lib/components/base/TMShowAllOrMaxItemsButton.js +0 -20
- package/lib/components/base/TMSpinner.d.ts +0 -14
- package/lib/components/base/TMSpinner.js +0 -160
- package/lib/components/base/TMTab.d.ts +0 -20
- package/lib/components/base/TMTab.js +0 -42
- package/lib/components/base/TMToggleButton.d.ts +0 -10
- package/lib/components/base/TMToggleButton.js +0 -58
- package/lib/components/base/TMToolbarCard.d.ts +0 -19
- package/lib/components/base/TMToolbarCard.js +0 -51
- package/lib/components/base/TMTooltip.d.ts +0 -14
- package/lib/components/base/TMTooltip.js +0 -20
- package/lib/components/base/TMTreeView.d.ts +0 -32
- package/lib/components/base/TMTreeView.js +0 -356
- package/lib/components/base/TMUserAvatar.d.ts +0 -8
- package/lib/components/base/TMUserAvatar.js +0 -34
- package/lib/components/base/TMVilViewer.d.ts +0 -5
- package/lib/components/base/TMVilViewer.js +0 -22
- package/lib/components/base/TMWaitPanel.d.ts +0 -32
- package/lib/components/base/TMWaitPanel.js +0 -50
- package/lib/components/choosers/TMCultureIDPicker.d.ts +0 -9
- package/lib/components/choosers/TMCultureIDPicker.js +0 -72
- package/lib/components/choosers/TMDataListItemChooser.d.ts +0 -17
- package/lib/components/choosers/TMDataListItemChooser.js +0 -49
- package/lib/components/choosers/TMDataListItemPicker.d.ts +0 -9
- package/lib/components/choosers/TMDataListItemPicker.js +0 -96
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +0 -25
- package/lib/components/choosers/TMDcmtTypeChooser.js +0 -61
- package/lib/components/choosers/TMDiskChooser.d.ts +0 -10
- package/lib/components/choosers/TMDiskChooser.js +0 -41
- package/lib/components/choosers/TMDistinctValues.d.ts +0 -21
- package/lib/components/choosers/TMDistinctValues.js +0 -140
- package/lib/components/choosers/TMDynDataListItemChooser.d.ts +0 -40
- package/lib/components/choosers/TMDynDataListItemChooser.js +0 -160
- package/lib/components/choosers/TMGroupChooser.d.ts +0 -7
- package/lib/components/choosers/TMGroupChooser.js +0 -37
- package/lib/components/choosers/TMInvoiceRetrieveFormats.d.ts +0 -4
- package/lib/components/choosers/TMInvoiceRetrieveFormats.js +0 -22
- package/lib/components/choosers/TMMetadataChooser.d.ts +0 -54
- package/lib/components/choosers/TMMetadataChooser.js +0 -157
- package/lib/components/choosers/TMOrderRetrieveFormats.d.ts +0 -4
- package/lib/components/choosers/TMOrderRetrieveFormats.js +0 -22
- package/lib/components/choosers/TMPathChooser.d.ts +0 -12
- package/lib/components/choosers/TMPathChooser.js +0 -147
- package/lib/components/choosers/TMRelationChooser.d.ts +0 -31
- package/lib/components/choosers/TMRelationChooser.js +0 -94
- package/lib/components/choosers/TMUserChooser.d.ts +0 -44
- package/lib/components/choosers/TMUserChooser.js +0 -157
- package/lib/components/editors/TMCheckBox.d.ts +0 -9
- package/lib/components/editors/TMCheckBox.js +0 -90
- package/lib/components/editors/TMDateBox.d.ts +0 -17
- package/lib/components/editors/TMDateBox.js +0 -75
- package/lib/components/editors/TMDropDown.d.ts +0 -10
- package/lib/components/editors/TMDropDown.js +0 -62
- package/lib/components/editors/TMEditorStyled.d.ts +0 -41
- package/lib/components/editors/TMEditorStyled.js +0 -90
- package/lib/components/editors/TMFormulaEditor.d.ts +0 -49
- package/lib/components/editors/TMFormulaEditor.js +0 -727
- package/lib/components/editors/TMHtmlContentDisplay.d.ts +0 -7
- package/lib/components/editors/TMHtmlContentDisplay.js +0 -78
- package/lib/components/editors/TMHtmlEditor.d.ts +0 -38
- package/lib/components/editors/TMHtmlEditor.js +0 -203
- package/lib/components/editors/TMLocalizedTextBox.d.ts +0 -19
- package/lib/components/editors/TMLocalizedTextBox.js +0 -125
- package/lib/components/editors/TMMetadataEditor.d.ts +0 -29
- package/lib/components/editors/TMMetadataEditor.js +0 -140
- package/lib/components/editors/TMMetadataValues.d.ts +0 -46
- package/lib/components/editors/TMMetadataValues.js +0 -593
- package/lib/components/editors/TMRadioButton.d.ts +0 -10
- package/lib/components/editors/TMRadioButton.js +0 -57
- package/lib/components/editors/TMSummary.d.ts +0 -20
- package/lib/components/editors/TMSummary.js +0 -92
- package/lib/components/editors/TMTextArea.d.ts +0 -18
- package/lib/components/editors/TMTextArea.js +0 -189
- package/lib/components/editors/TMTextBox.d.ts +0 -20
- package/lib/components/editors/TMTextBox.js +0 -279
- package/lib/components/editors/TMTextExpression.d.ts +0 -25
- package/lib/components/editors/TMTextExpression.js +0 -182
- package/lib/components/editors/TMTreeDropDown.d.ts +0 -18
- package/lib/components/editors/TMTreeDropDown.js +0 -66
- package/lib/components/features/archive/TMArchive.d.ts +0 -29
- package/lib/components/features/archive/TMArchive.js +0 -193
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.d.ts +0 -30
- package/lib/components/features/assistant/ToppyDraggableHelpCenter.js +0 -482
- package/lib/components/features/assistant/ToppySpeechBubble.d.ts +0 -9
- package/lib/components/features/assistant/ToppySpeechBubble.js +0 -117
- package/lib/components/features/blog/TMBlogCommentForm.d.ts +0 -19
- package/lib/components/features/blog/TMBlogCommentForm.js +0 -345
- package/lib/components/features/documents/TMBatchUpdateForm.d.ts +0 -17
- package/lib/components/features/documents/TMBatchUpdateForm.js +0 -159
- package/lib/components/features/documents/TMDcmtBlog.d.ts +0 -17
- package/lib/components/features/documents/TMDcmtBlog.js +0 -92
- package/lib/components/features/documents/TMDcmtForm.d.ts +0 -65
- package/lib/components/features/documents/TMDcmtForm.js +0 -1491
- package/lib/components/features/documents/TMDcmtIcon.d.ts +0 -18
- package/lib/components/features/documents/TMDcmtIcon.js +0 -98
- package/lib/components/features/documents/TMDcmtPreview.d.ts +0 -31
- package/lib/components/features/documents/TMDcmtPreview.js +0 -491
- package/lib/components/features/documents/TMDcmtTasks.d.ts +0 -13
- package/lib/components/features/documents/TMDcmtTasks.js +0 -24
- package/lib/components/features/documents/TMDragDropOverlay.d.ts +0 -6
- package/lib/components/features/documents/TMDragDropOverlay.js +0 -97
- package/lib/components/features/documents/TMFileUploader.d.ts +0 -14
- package/lib/components/features/documents/TMFileUploader.js +0 -115
- package/lib/components/features/documents/TMMasterDetailDcmts.d.ts +0 -26
- package/lib/components/features/documents/TMMasterDetailDcmts.js +0 -288
- package/lib/components/features/documents/TMRelationViewer.d.ts +0 -121
- package/lib/components/features/documents/TMRelationViewer.js +0 -753
- package/lib/components/features/search/TMSavedQueryForm.d.ts +0 -9
- package/lib/components/features/search/TMSavedQueryForm.js +0 -41
- package/lib/components/features/search/TMSavedQuerySelector.d.ts +0 -16
- package/lib/components/features/search/TMSavedQuerySelector.js +0 -226
- package/lib/components/features/search/TMSearch.d.ts +0 -40
- package/lib/components/features/search/TMSearch.js +0 -253
- package/lib/components/features/search/TMSearchQueryEditor.d.ts +0 -15
- package/lib/components/features/search/TMSearchQueryEditor.js +0 -367
- package/lib/components/features/search/TMSearchQueryPanel.d.ts +0 -29
- package/lib/components/features/search/TMSearchQueryPanel.js +0 -437
- package/lib/components/features/search/TMSearchResult.d.ts +0 -53
- package/lib/components/features/search/TMSearchResult.js +0 -1327
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.d.ts +0 -8
- package/lib/components/features/search/TMSearchResultCheckoutInfoForm.js +0 -129
- package/lib/components/features/search/TMSearchResultFloatingActionButton.d.ts +0 -16
- package/lib/components/features/search/TMSearchResultFloatingActionButton.js +0 -50
- package/lib/components/features/search/TMSearchResultsMenuItems.d.ts +0 -11
- package/lib/components/features/search/TMSearchResultsMenuItems.js +0 -714
- package/lib/components/features/search/TMSignSettingsForm.d.ts +0 -9
- package/lib/components/features/search/TMSignSettingsForm.js +0 -621
- package/lib/components/features/search/TMTreeSelector.d.ts +0 -12
- package/lib/components/features/search/TMTreeSelector.js +0 -270
- package/lib/components/features/search/TMViewHistoryDcmt.d.ts +0 -18
- package/lib/components/features/search/TMViewHistoryDcmt.js +0 -285
- package/lib/components/features/tasks/TMTaskForm.d.ts +0 -38
- package/lib/components/features/tasks/TMTaskForm.js +0 -392
- package/lib/components/features/tasks/TMTasksAgenda.d.ts +0 -17
- package/lib/components/features/tasks/TMTasksAgenda.js +0 -107
- package/lib/components/features/tasks/TMTasksCalendar.d.ts +0 -21
- package/lib/components/features/tasks/TMTasksCalendar.js +0 -240
- package/lib/components/features/tasks/TMTasksHeader.d.ts +0 -14
- package/lib/components/features/tasks/TMTasksHeader.js +0 -37
- package/lib/components/features/tasks/TMTasksPanelContent.d.ts +0 -20
- package/lib/components/features/tasks/TMTasksPanelContent.js +0 -65
- package/lib/components/features/tasks/TMTasksUtils.d.ts +0 -133
- package/lib/components/features/tasks/TMTasksUtils.js +0 -649
- package/lib/components/features/tasks/TMTasksUtilsView.d.ts +0 -39
- package/lib/components/features/tasks/TMTasksUtilsView.js +0 -140
- package/lib/components/features/tasks/TMTasksView.d.ts +0 -40
- package/lib/components/features/tasks/TMTasksView.js +0 -566
- package/lib/components/features/wg/TMWGsCopyMoveForm.d.ts +0 -39
- package/lib/components/features/wg/TMWGsCopyMoveForm.js +0 -439
- package/lib/components/features/workflow/TMWorkflowPopup.d.ts +0 -42
- package/lib/components/features/workflow/TMWorkflowPopup.js +0 -286
- package/lib/components/features/workflow/diagram/ConnectionComponent.d.ts +0 -14
- package/lib/components/features/workflow/diagram/ConnectionComponent.js +0 -90
- package/lib/components/features/workflow/diagram/ConnectionForm.d.ts +0 -9
- package/lib/components/features/workflow/diagram/ConnectionForm.js +0 -73
- package/lib/components/features/workflow/diagram/DiagramItemComponent.d.ts +0 -18
- package/lib/components/features/workflow/diagram/DiagramItemComponent.js +0 -264
- package/lib/components/features/workflow/diagram/DiagramItemForm.d.ts +0 -10
- package/lib/components/features/workflow/diagram/DiagramItemForm.js +0 -686
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.d.ts +0 -12
- package/lib/components/features/workflow/diagram/DiagramItemSvgContent.js +0 -97
- package/lib/components/features/workflow/diagram/RecipientList.d.ts +0 -27
- package/lib/components/features/workflow/diagram/RecipientList.js +0 -204
- package/lib/components/features/workflow/diagram/WFDiagram.d.ts +0 -9
- package/lib/components/features/workflow/diagram/WFDiagram.js +0 -1698
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.d.ts +0 -18
- package/lib/components/features/workflow/diagram/WorkitemRecipientsEditor.js +0 -97
- package/lib/components/features/workflow/diagram/interfaces.d.ts +0 -126
- package/lib/components/features/workflow/diagram/interfaces.js +0 -26
- package/lib/components/features/workflow/diagram/metadataParser.d.ts +0 -14
- package/lib/components/features/workflow/diagram/metadataParser.js +0 -54
- package/lib/components/features/workflow/diagram/queryDescriptorParser.d.ts +0 -3
- package/lib/components/features/workflow/diagram/queryDescriptorParser.js +0 -188
- package/lib/components/features/workflow/diagram/workflowHelpers.d.ts +0 -122
- package/lib/components/features/workflow/diagram/workflowHelpers.js +0 -488
- package/lib/components/features/workflow/diagram/xmlParser.d.ts +0 -10
- package/lib/components/features/workflow/diagram/xmlParser.js +0 -490
- package/lib/components/filesystem/ProgressBar.d.ts +0 -7
- package/lib/components/filesystem/ProgressBar.js +0 -25
- package/lib/components/forms/Login/ChangePassword.d.ts +0 -9
- package/lib/components/forms/Login/ChangePassword.js +0 -22
- package/lib/components/forms/Login/ChangePasswordInputs.d.ts +0 -14
- package/lib/components/forms/Login/ChangePasswordInputs.js +0 -80
- package/lib/components/forms/Login/Chooser.d.ts +0 -28
- package/lib/components/forms/Login/Chooser.js +0 -145
- package/lib/components/forms/Login/LOGINLocalizator.d.ts +0 -29
- package/lib/components/forms/Login/LOGINLocalizator.js +0 -247
- package/lib/components/forms/Login/LoginValidatorService.d.ts +0 -50
- package/lib/components/forms/Login/LoginValidatorService.js +0 -162
- package/lib/components/forms/Login/Menu.d.ts +0 -10
- package/lib/components/forms/Login/Menu.js +0 -48
- package/lib/components/forms/Login/OTPReader.d.ts +0 -14
- package/lib/components/forms/Login/OTPReader.js +0 -90
- package/lib/components/forms/Login/PasswordStrengthChecker.d.ts +0 -7
- package/lib/components/forms/Login/PasswordStrengthChecker.js +0 -45
- package/lib/components/forms/Login/RapidAccessLogin.d.ts +0 -25
- package/lib/components/forms/Login/RapidAccessLogin.js +0 -310
- package/lib/components/forms/Login/RecoverPasswordFlow.d.ts +0 -11
- package/lib/components/forms/Login/RecoverPasswordFlow.js +0 -111
- package/lib/components/forms/Login/SelectBox.d.ts +0 -23
- package/lib/components/forms/Login/SelectBox.js +0 -96
- package/lib/components/forms/Login/StepIndicator.d.ts +0 -7
- package/lib/components/forms/Login/StepIndicator.js +0 -19
- package/lib/components/forms/Login/TMLoginForm.d.ts +0 -44
- package/lib/components/forms/Login/TMLoginForm.js +0 -737
- package/lib/components/forms/Login/TextBox.d.ts +0 -27
- package/lib/components/forms/Login/TextBox.js +0 -111
- package/lib/components/forms/TMApplyForm.d.ts +0 -4
- package/lib/components/forms/TMApplyForm.js +0 -105
- package/lib/components/forms/TMChooserForm.d.ts +0 -3
- package/lib/components/forms/TMChooserForm.js +0 -94
- package/lib/components/forms/TMResultDialog.d.ts +0 -20
- package/lib/components/forms/TMResultDialog.js +0 -44
- package/lib/components/forms/TMSaveForm.d.ts +0 -31
- package/lib/components/forms/TMSaveForm.js +0 -168
- package/lib/components/grids/TMBlogAttachments.d.ts +0 -28
- package/lib/components/grids/TMBlogAttachments.js +0 -48
- package/lib/components/grids/TMBlogHeader.d.ts +0 -31
- package/lib/components/grids/TMBlogHeader.js +0 -41
- package/lib/components/grids/TMBlogsPost.d.ts +0 -91
- package/lib/components/grids/TMBlogsPost.js +0 -689
- package/lib/components/grids/TMBlogsPostUtils.d.ts +0 -114
- package/lib/components/grids/TMBlogsPostUtils.js +0 -269
- package/lib/components/grids/TMRecentsManager.d.ts +0 -13
- package/lib/components/grids/TMRecentsManager.js +0 -155
- package/lib/components/grids/TMValidationItemsList.d.ts +0 -6
- package/lib/components/grids/TMValidationItemsList.js +0 -82
- package/lib/components/index.d.ts +0 -116
- package/lib/components/index.js +0 -138
- package/lib/components/layout/panelManager/TMPanelManagerContainer.d.ts +0 -10
- package/lib/components/layout/panelManager/TMPanelManagerContainer.js +0 -215
- package/lib/components/layout/panelManager/TMPanelManagerContext.d.ts +0 -39
- package/lib/components/layout/panelManager/TMPanelManagerContext.js +0 -257
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.d.ts +0 -11
- package/lib/components/layout/panelManager/TMPanelManagerToolbar.js +0 -83
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.d.ts +0 -21
- package/lib/components/layout/panelManager/TMPanelManagerWithPersistenceProvider.js +0 -64
- package/lib/components/layout/panelManager/TMPanelWrapper.d.ts +0 -8
- package/lib/components/layout/panelManager/TMPanelWrapper.js +0 -59
- package/lib/components/layout/panelManager/types.d.ts +0 -42
- package/lib/components/layout/panelManager/types.js +0 -1
- package/lib/components/layout/panelManager/utils.d.ts +0 -21
- package/lib/components/layout/panelManager/utils.js +0 -208
- package/lib/components/pages/TMPage.d.ts +0 -38
- package/lib/components/pages/TMPage.js +0 -220
- package/lib/components/query/TMQueryEditor.d.ts +0 -58
- package/lib/components/query/TMQueryEditor.js +0 -1001
- package/lib/components/query/TMQuerySummary.d.ts +0 -16
- package/lib/components/query/TMQuerySummary.js +0 -35
- package/lib/components/settings/SettingsAppearance.d.ts +0 -14
- package/lib/components/settings/SettingsAppearance.js +0 -73
- package/lib/components/sidebar/TMAboutApp.d.ts +0 -8
- package/lib/components/sidebar/TMAboutApp.js +0 -14
- package/lib/components/sidebar/TMCommandsPanel.d.ts +0 -16
- package/lib/components/sidebar/TMCommandsPanel.js +0 -27
- package/lib/components/sidebar/TMHeader.d.ts +0 -43
- package/lib/components/sidebar/TMHeader.js +0 -616
- package/lib/components/sidebar/TMSidebar.d.ts +0 -21
- package/lib/components/sidebar/TMSidebar.js +0 -61
- package/lib/components/sidebar/TMSidebarItem.d.ts +0 -15
- package/lib/components/sidebar/TMSidebarItem.js +0 -39
- package/lib/components/viewers/TMDataListItemViewer.d.ts +0 -10
- package/lib/components/viewers/TMDataListItemViewer.js +0 -80
- package/lib/components/viewers/TMMidViewer.d.ts +0 -36
- package/lib/components/viewers/TMMidViewer.js +0 -128
- package/lib/components/viewers/TMTidViewer.d.ts +0 -256
- package/lib/components/viewers/TMTidViewer.js +0 -343
- package/lib/components/wizard/TMStepIndicator.d.ts +0 -11
- package/lib/components/wizard/TMStepIndicator.js +0 -165
- package/lib/components/wizard/TMWizard.d.ts +0 -18
- package/lib/components/wizard/TMWizard.js +0 -93
- package/lib/css/tm-sdkui.css +0 -1
- package/lib/helper/DeepCompareHelper.d.ts +0 -7
- package/lib/helper/DeepCompareHelper.js +0 -106
- package/lib/helper/Enum_Localizator.d.ts +0 -18
- package/lib/helper/Enum_Localizator.js +0 -247
- package/lib/helper/GlobalStyles.d.ts +0 -2
- package/lib/helper/GlobalStyles.js +0 -10
- package/lib/helper/Globalization.d.ts +0 -15
- package/lib/helper/Globalization.js +0 -110
- package/lib/helper/SDKUI_Globals.d.ts +0 -92
- package/lib/helper/SDKUI_Globals.js +0 -175
- package/lib/helper/SDKUI_Localizator.d.ts +0 -769
- package/lib/helper/SDKUI_Localizator.js +0 -7641
- package/lib/helper/TMCommandsContextMenu.d.ts +0 -14
- package/lib/helper/TMCommandsContextMenu.js +0 -6
- package/lib/helper/TMConditionalWrapper.d.ts +0 -8
- package/lib/helper/TMConditionalWrapper.js +0 -4
- package/lib/helper/TMCustomSearchBar.d.ts +0 -8
- package/lib/helper/TMCustomSearchBar.js +0 -54
- package/lib/helper/TMIcons.d.ts +0 -278
- package/lib/helper/TMIcons.js +0 -690
- package/lib/helper/TMImageLibrary.d.ts +0 -4
- package/lib/helper/TMImageLibrary.js +0 -466
- package/lib/helper/TMToppyMessage.d.ts +0 -8
- package/lib/helper/TMToppyMessage.js +0 -43
- package/lib/helper/TMUtils.d.ts +0 -69
- package/lib/helper/TMUtils.js +0 -435
- package/lib/helper/checkinCheckoutManager.d.ts +0 -55
- package/lib/helper/checkinCheckoutManager.js +0 -266
- package/lib/helper/dcmtsHelper.d.ts +0 -8
- package/lib/helper/dcmtsHelper.js +0 -82
- package/lib/helper/helpers.d.ts +0 -91
- package/lib/helper/helpers.js +0 -852
- package/lib/helper/index.d.ts +0 -14
- package/lib/helper/index.js +0 -14
- package/lib/helper/queryHelper.d.ts +0 -19
- package/lib/helper/queryHelper.js +0 -348
- package/lib/hooks/useDcmtOperations.d.ts +0 -24
- package/lib/hooks/useDcmtOperations.js +0 -486
- package/lib/hooks/useForm.d.ts +0 -24
- package/lib/hooks/useForm.js +0 -157
- package/lib/hooks/useInputDialog.d.ts +0 -9
- package/lib/hooks/useInputDialog.js +0 -105
- package/lib/hooks/useOutsideClick.d.ts +0 -2
- package/lib/hooks/useOutsideClick.js +0 -38
- package/lib/hooks/usePreventFileDrop.d.ts +0 -3
- package/lib/hooks/usePreventFileDrop.js +0 -37
- package/lib/hooks/useQueryParametersDialog.d.ts +0 -2
- package/lib/hooks/useQueryParametersDialog.js +0 -71
- package/lib/hooks/useRelatedDocuments.d.ts +0 -72
- package/lib/hooks/useRelatedDocuments.js +0 -664
- package/lib/hooks/useResizeObserver.d.ts +0 -4
- package/lib/hooks/useResizeObserver.js +0 -22
- package/lib/hooks/useWorkflowApprove.d.ts +0 -11
- package/lib/hooks/useWorkflowApprove.js +0 -57
- package/lib/index.d.ts +0 -12
- package/lib/index.js +0 -15
- package/lib/services/index.d.ts +0 -1
- package/lib/services/index.js +0 -1
- package/lib/services/platform_services.d.ts +0 -18
- package/lib/services/platform_services.js +0 -492
- package/lib/ts/index.d.ts +0 -1
- package/lib/ts/index.js +0 -1
- package/lib/ts/types.d.ts +0 -312
- package/lib/ts/types.js +0 -100
- package/lib/utils/theme.d.ts +0 -69
- package/lib/utils/theme.js +0 -81
package/lib/helper/helpers.js
DELETED
|
@@ -1,852 +0,0 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Colors } from "../utils/theme";
|
|
3
|
-
import { ButtonNames, DeviceType, TMExceptionBoxManager, TMMessageBoxManager, TMSpinner } from "../components";
|
|
4
|
-
import { AccessLevels, MetadataDataDomains, MetadataDataTypes, MetadataDescriptor, MetadataFormatDescriptor, MetadataFormats, MetadataPermission, SDK_Globals, SetGlobalsInfoAsync, SystemMIDs, SystemMIDsAsNumber, TopMediaServer } from "@topconsultnpm/sdk-ts";
|
|
5
|
-
import { Buffer } from 'buffer';
|
|
6
|
-
import { buildTypes, FileExtensionHandler, FormModes, moduleTypes } from "../ts";
|
|
7
|
-
import { SDKUI_Localizator } from "./SDKUI_Localizator";
|
|
8
|
-
import ReactDOMServer from "react-dom/server";
|
|
9
|
-
import { DeepCompareHelper } from "./DeepCompareHelper";
|
|
10
|
-
//#region Responsive Helpers
|
|
11
|
-
const TABLET_WIDTH = 1024;
|
|
12
|
-
const MOBILE_WIDTH = 640;
|
|
13
|
-
const calcResponsiveDirection = (deviceType, desktopDir, tabletDir, mobileDir) => {
|
|
14
|
-
if (deviceType === DeviceType.DESKTOP)
|
|
15
|
-
return desktopDir;
|
|
16
|
-
if (deviceType === DeviceType.TABLET)
|
|
17
|
-
return tabletDir;
|
|
18
|
-
return mobileDir;
|
|
19
|
-
};
|
|
20
|
-
const openApps = async (appModule, tmSession, appRoutes) => {
|
|
21
|
-
try {
|
|
22
|
-
window.Buffer = Buffer;
|
|
23
|
-
TMSpinner.show();
|
|
24
|
-
let toSessionDescr = await tmSession?.LoginToAsync(appModule);
|
|
25
|
-
const tmServer = new TopMediaServer(tmSession?.TopMediaServer?.BaseAddress);
|
|
26
|
-
const toTMSession = tmServer?.NewSession();
|
|
27
|
-
toTMSession.SessionDescr = toSessionDescr;
|
|
28
|
-
let str = (JSON.stringify(toTMSession));
|
|
29
|
-
let sessionToBase64 = Buffer.from(str).toString("base64");
|
|
30
|
-
window.open(appRoutes?.find(route => route.appName === appModule).URL + '/Homepage' + '?session=' + sessionToBase64);
|
|
31
|
-
}
|
|
32
|
-
catch (e) {
|
|
33
|
-
TMExceptionBoxManager.show({ exception: e.message });
|
|
34
|
-
}
|
|
35
|
-
finally {
|
|
36
|
-
TMSpinner.hide();
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
export const setSDK_GlobalsInfoAsync = async (tms) => {
|
|
40
|
-
try {
|
|
41
|
-
const result = await SetGlobalsInfoAsync(tms);
|
|
42
|
-
if (result?.SessionDescr?.userID && result?.SessionDescr?.archiveID) {
|
|
43
|
-
const { UserSettings } = await import('./SDKUI_Globals');
|
|
44
|
-
UserSettings.LoadSettings(result.SessionDescr.userID, result.SessionDescr.archiveID);
|
|
45
|
-
}
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
catch (e) {
|
|
49
|
-
TMExceptionBoxManager.show({ exception: e.message });
|
|
50
|
-
return undefined;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
const calcResponsiveSizes = (deviceType, desktopSize, tabletSize, mobileSize) => {
|
|
54
|
-
if (deviceType === DeviceType.DESKTOP)
|
|
55
|
-
return desktopSize;
|
|
56
|
-
if (deviceType === DeviceType.TABLET)
|
|
57
|
-
return tabletSize;
|
|
58
|
-
return mobileSize;
|
|
59
|
-
};
|
|
60
|
-
//#endregion
|
|
61
|
-
const getColor = (color) => {
|
|
62
|
-
let c = '';
|
|
63
|
-
switch (color) {
|
|
64
|
-
case 'primary':
|
|
65
|
-
c = Colors.primary;
|
|
66
|
-
break;
|
|
67
|
-
case 'secondary':
|
|
68
|
-
c = Colors.secondary;
|
|
69
|
-
break;
|
|
70
|
-
case 'tertiary':
|
|
71
|
-
c = Colors.tertiary;
|
|
72
|
-
break;
|
|
73
|
-
case 'error':
|
|
74
|
-
c = Colors.error;
|
|
75
|
-
break;
|
|
76
|
-
case 'success':
|
|
77
|
-
c = Colors.success;
|
|
78
|
-
break;
|
|
79
|
-
case 'info':
|
|
80
|
-
c = Colors.info;
|
|
81
|
-
break;
|
|
82
|
-
case 'warning':
|
|
83
|
-
c = Colors.warning;
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
return c;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Genera un Universally Unique Identifier (UUID) versione 4.
|
|
90
|
-
* Simile a Guid.NewGuid() in C#.
|
|
91
|
-
* @returns {string} Un UUID in formato stringa.
|
|
92
|
-
*/
|
|
93
|
-
export const generateUUID = () => {
|
|
94
|
-
return crypto.randomUUID();
|
|
95
|
-
};
|
|
96
|
-
const makeID = (length) => {
|
|
97
|
-
let result = '';
|
|
98
|
-
const characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
99
|
-
const charactersLength = characters.length;
|
|
100
|
-
let counter = 0;
|
|
101
|
-
while (counter < length) {
|
|
102
|
-
result += characters.charAt(Math.floor(Math.random() * charactersLength));
|
|
103
|
-
counter += 1;
|
|
104
|
-
}
|
|
105
|
-
return result;
|
|
106
|
-
};
|
|
107
|
-
export const truncateText = (text, maxLength) => {
|
|
108
|
-
if (text.length <= maxLength)
|
|
109
|
-
return text;
|
|
110
|
-
return text.slice(0, maxLength) + "...";
|
|
111
|
-
};
|
|
112
|
-
function genUniqueId() {
|
|
113
|
-
const dateStr = Date
|
|
114
|
-
.now()
|
|
115
|
-
.toString(36); // convert num to base 36 and stringify
|
|
116
|
-
const randomStr = Math
|
|
117
|
-
.random()
|
|
118
|
-
.toString(36)
|
|
119
|
-
.substring(2, 8); // start at index 2 to skip decimal point
|
|
120
|
-
return `${dateStr}-${randomStr}`;
|
|
121
|
-
}
|
|
122
|
-
export const captionToDataField = (caption) => {
|
|
123
|
-
if (!caption)
|
|
124
|
-
return '';
|
|
125
|
-
//Data field names cannot be equal to this and should not contain the following characters: ., :, [, and ].
|
|
126
|
-
return caption.replace('this', '_').replace('.', '_').replace(':', '_').replace('[', '_').replace(']', '_');
|
|
127
|
-
};
|
|
128
|
-
const MIDtoColName = (tid, mid) => {
|
|
129
|
-
if (mid == SystemMIDsAsNumber.DID)
|
|
130
|
-
return "DID";
|
|
131
|
-
if (mid == SystemMIDsAsNumber.TID)
|
|
132
|
-
return "TID";
|
|
133
|
-
if (mid == SystemMIDsAsNumber.OwnerID)
|
|
134
|
-
return "OWNERID";
|
|
135
|
-
if (mid == SystemMIDsAsNumber.UpdaterID)
|
|
136
|
-
return "UPDATERID";
|
|
137
|
-
if (mid == SystemMIDsAsNumber.FileCount)
|
|
138
|
-
return "FILECOUNT";
|
|
139
|
-
if (mid == SystemMIDsAsNumber.FileExt)
|
|
140
|
-
return "FILEEXT";
|
|
141
|
-
if (mid == SystemMIDsAsNumber.CreationTime)
|
|
142
|
-
return "CREATIONTIME";
|
|
143
|
-
if (mid == SystemMIDsAsNumber.LastUpdateTime)
|
|
144
|
-
return "LASTUPDATETIME";
|
|
145
|
-
if (mid == SystemMIDsAsNumber.FileSize)
|
|
146
|
-
return "FILESIZE";
|
|
147
|
-
if (mid == SystemMIDsAsNumber.PageCount)
|
|
148
|
-
return "PAGECOUNT";
|
|
149
|
-
if (mid == SystemMIDsAsNumber.IsSigned)
|
|
150
|
-
return "ISSIGNED";
|
|
151
|
-
if (mid == SystemMIDsAsNumber.IsShared)
|
|
152
|
-
return "ISSHARED";
|
|
153
|
-
if (mid == SystemMIDsAsNumber.IsMail)
|
|
154
|
-
return "ISMAIL";
|
|
155
|
-
if (mid == SystemMIDsAsNumber.IsLogDel)
|
|
156
|
-
return "ISLOGDEL";
|
|
157
|
-
if (mid == SystemMIDsAsNumber.IsLex)
|
|
158
|
-
return "ISLEX";
|
|
159
|
-
return `${tid}_${mid}`;
|
|
160
|
-
};
|
|
161
|
-
export const getDataColumnName = (fromTID, dtColumn) => {
|
|
162
|
-
let tid = Number(dtColumn?.extendedProperties?.["TID"] ?? "0");
|
|
163
|
-
let mid = Number(dtColumn?.extendedProperties?.["MID"] ?? "0");
|
|
164
|
-
if (!tid || !mid)
|
|
165
|
-
return captionToDataField(dtColumn?.caption);
|
|
166
|
-
if (fromTID == tid)
|
|
167
|
-
return MIDtoColName(tid, mid);
|
|
168
|
-
return `${tid}_${mid}`;
|
|
169
|
-
};
|
|
170
|
-
/**
|
|
171
|
-
* Generates unique column keys handling duplicates by adding incremental suffixes.
|
|
172
|
-
* @param columns Array of DataColumnDescriptor
|
|
173
|
-
* @param fromTID The TID to use for column name generation
|
|
174
|
-
* @returns Array of unique column keys
|
|
175
|
-
*/
|
|
176
|
-
export const generateUniqueColumnKeys = (columns, fromTID) => {
|
|
177
|
-
if (!columns)
|
|
178
|
-
return [];
|
|
179
|
-
const usedKeys = {};
|
|
180
|
-
const uniqueKeys = [];
|
|
181
|
-
for (let i = 0; i < columns.length; i++) {
|
|
182
|
-
let baseKey = getDataColumnName(fromTID, columns[i]);
|
|
183
|
-
let key = baseKey;
|
|
184
|
-
// If key already exists, add incremental suffix
|
|
185
|
-
if (usedKeys[baseKey] !== undefined) {
|
|
186
|
-
usedKeys[baseKey]++;
|
|
187
|
-
key = `${baseKey}_${usedKeys[baseKey]}`;
|
|
188
|
-
}
|
|
189
|
-
else {
|
|
190
|
-
usedKeys[baseKey] = 0;
|
|
191
|
-
}
|
|
192
|
-
uniqueKeys.push(key);
|
|
193
|
-
}
|
|
194
|
-
return uniqueKeys;
|
|
195
|
-
};
|
|
196
|
-
export const searchResultDescriptorToSimpleArray = (searchResult) => {
|
|
197
|
-
// Generate unique keys for all columns
|
|
198
|
-
const uniqueKeys = generateUniqueColumnKeys(searchResult?.dtdResult?.columns, searchResult?.fromTID);
|
|
199
|
-
let result = searchResult?.dtdResult?.rows?.map((row, index) => {
|
|
200
|
-
let item = { rowIndex: index };
|
|
201
|
-
for (let i = 0; i < row.length; i++) {
|
|
202
|
-
item[uniqueKeys[i]] = row[i];
|
|
203
|
-
}
|
|
204
|
-
return item;
|
|
205
|
-
});
|
|
206
|
-
return result;
|
|
207
|
-
};
|
|
208
|
-
export const getCompleteMetadataName = (dcmtTypeName, metadataName) => `${dcmtTypeName}...${metadataName}`;
|
|
209
|
-
export const getQueryCountAsync = async (qd, showSpinner) => {
|
|
210
|
-
try {
|
|
211
|
-
if (showSpinner)
|
|
212
|
-
TMSpinner.show({ description: 'Conteggio in corso...' });
|
|
213
|
-
let count = await SDK_Globals.tmSession?.NewSearchEngine().GetDcmtCountByQdAsync(qd);
|
|
214
|
-
TMMessageBoxManager.show({ title: 'Info', message: `${SDKUI_Localizator.DcmtCount} = ${count?.toLocaleString()}`, buttons: [ButtonNames.OK] });
|
|
215
|
-
}
|
|
216
|
-
catch (e) {
|
|
217
|
-
TMExceptionBoxManager.show({ exception: e });
|
|
218
|
-
}
|
|
219
|
-
finally {
|
|
220
|
-
if (showSpinner)
|
|
221
|
-
TMSpinner.hide();
|
|
222
|
-
}
|
|
223
|
-
};
|
|
224
|
-
export function getTIDByMID(mid, defaultTid = 0) {
|
|
225
|
-
if (mid == undefined)
|
|
226
|
-
return defaultTid;
|
|
227
|
-
if (mid < 100)
|
|
228
|
-
return defaultTid;
|
|
229
|
-
let tid = Math.floor(mid / 1000);
|
|
230
|
-
if (tid == 0)
|
|
231
|
-
return defaultTid;
|
|
232
|
-
return tid;
|
|
233
|
-
}
|
|
234
|
-
export const getSystemMetadata = (withPerm) => {
|
|
235
|
-
let sysMDs = [];
|
|
236
|
-
let md = new MetadataDescriptor();
|
|
237
|
-
md.dataType = MetadataDataTypes.Number;
|
|
238
|
-
md.length = 10;
|
|
239
|
-
md.isRequired = 1;
|
|
240
|
-
md.isSystem = 1;
|
|
241
|
-
md.id = SystemMIDsAsNumber.TID;
|
|
242
|
-
md.name = SystemMIDs.TID;
|
|
243
|
-
md.nameLoc = SystemMIDs.TID;
|
|
244
|
-
sysMDs.push(md);
|
|
245
|
-
md = new MetadataDescriptor();
|
|
246
|
-
md.dataType = MetadataDataTypes.Number;
|
|
247
|
-
md.length = 10;
|
|
248
|
-
md.isRequired = 1;
|
|
249
|
-
md.isSystem = 1;
|
|
250
|
-
md.id = SystemMIDsAsNumber.DID;
|
|
251
|
-
md.name = SystemMIDs.DID;
|
|
252
|
-
md.nameLoc = SystemMIDs.DID;
|
|
253
|
-
sysMDs.push(md);
|
|
254
|
-
md = new MetadataDescriptor();
|
|
255
|
-
md.dataType = MetadataDataTypes.Number;
|
|
256
|
-
md.length = 10;
|
|
257
|
-
md.isRequired = 1;
|
|
258
|
-
md.isSystem = 1;
|
|
259
|
-
md.dataDomain = MetadataDataDomains.UserID;
|
|
260
|
-
md.id = SystemMIDsAsNumber.OwnerID;
|
|
261
|
-
md.name = SystemMIDs.OwnerID;
|
|
262
|
-
md.nameLoc = SystemMIDs.OwnerID;
|
|
263
|
-
sysMDs.push(md);
|
|
264
|
-
md = new MetadataDescriptor();
|
|
265
|
-
md.dataType = MetadataDataTypes.Number;
|
|
266
|
-
md.length = 10;
|
|
267
|
-
md.isRequired = 1;
|
|
268
|
-
md.isSystem = 1;
|
|
269
|
-
md.dataDomain = MetadataDataDomains.UserID;
|
|
270
|
-
md.id = SystemMIDsAsNumber.UpdaterID;
|
|
271
|
-
md.name = SystemMIDs.UpdaterID;
|
|
272
|
-
md.nameLoc = SystemMIDs.UpdaterID;
|
|
273
|
-
sysMDs.push(md);
|
|
274
|
-
md = new MetadataDescriptor();
|
|
275
|
-
md.dataType = MetadataDataTypes.Number;
|
|
276
|
-
md.length = 10;
|
|
277
|
-
md.isRequired = 1;
|
|
278
|
-
md.isSystem = 1;
|
|
279
|
-
md.id = SystemMIDsAsNumber.FileCount;
|
|
280
|
-
md.name = SystemMIDs.FileCount;
|
|
281
|
-
md.nameLoc = SystemMIDs.FileCount;
|
|
282
|
-
sysMDs.push(md);
|
|
283
|
-
md = new MetadataDescriptor();
|
|
284
|
-
md.dataType = MetadataDataTypes.Varchar;
|
|
285
|
-
md.length = 10;
|
|
286
|
-
md.isSystem = 1;
|
|
287
|
-
md.id = SystemMIDsAsNumber.FileExt;
|
|
288
|
-
md.name = SystemMIDs.FileExt;
|
|
289
|
-
md.nameLoc = SystemMIDs.FileExt;
|
|
290
|
-
sysMDs.push(md);
|
|
291
|
-
md = new MetadataDescriptor();
|
|
292
|
-
md.dataType = MetadataDataTypes.Number;
|
|
293
|
-
md.length = 10;
|
|
294
|
-
md.isRequired = 1;
|
|
295
|
-
md.isSystem = 1;
|
|
296
|
-
md.format = new MetadataFormatDescriptor();
|
|
297
|
-
md.format.format = MetadataFormats.NumberWithThousandsSeparator;
|
|
298
|
-
md.id = SystemMIDsAsNumber.FileSize;
|
|
299
|
-
md.name = SystemMIDs.FileSize;
|
|
300
|
-
md.nameLoc = SystemMIDs.FileSize;
|
|
301
|
-
sysMDs.push(md);
|
|
302
|
-
md = new MetadataDescriptor();
|
|
303
|
-
md.dataType = MetadataDataTypes.Number;
|
|
304
|
-
md.length = 10;
|
|
305
|
-
md.isRequired = 1;
|
|
306
|
-
md.isSystem = 1;
|
|
307
|
-
md.id = SystemMIDsAsNumber.PageCount;
|
|
308
|
-
md.name = SystemMIDs.PageCount;
|
|
309
|
-
md.nameLoc = SystemMIDs.PageCount;
|
|
310
|
-
sysMDs.push(md);
|
|
311
|
-
md = new MetadataDescriptor();
|
|
312
|
-
md.dataType = MetadataDataTypes.Number;
|
|
313
|
-
md.length = 10;
|
|
314
|
-
md.isRequired = 1;
|
|
315
|
-
md.isSystem = 1;
|
|
316
|
-
md.id = SystemMIDsAsNumber.IsSigned;
|
|
317
|
-
md.name = SystemMIDs.IsSigned;
|
|
318
|
-
md.nameLoc = SystemMIDs.IsSigned;
|
|
319
|
-
sysMDs.push(md);
|
|
320
|
-
md = new MetadataDescriptor();
|
|
321
|
-
md.dataType = MetadataDataTypes.Number;
|
|
322
|
-
md.length = 10;
|
|
323
|
-
md.isRequired = 1;
|
|
324
|
-
md.isSystem = 1;
|
|
325
|
-
md.id = SystemMIDsAsNumber.IsShared;
|
|
326
|
-
md.name = SystemMIDs.IsShared;
|
|
327
|
-
md.nameLoc = SystemMIDs.IsShared;
|
|
328
|
-
sysMDs.push(md);
|
|
329
|
-
md = new MetadataDescriptor();
|
|
330
|
-
md.dataType = MetadataDataTypes.Number;
|
|
331
|
-
md.length = 10;
|
|
332
|
-
md.isRequired = 1;
|
|
333
|
-
md.isSystem = 1;
|
|
334
|
-
md.id = SystemMIDsAsNumber.IsMail;
|
|
335
|
-
md.name = SystemMIDs.IsMail;
|
|
336
|
-
md.nameLoc = SystemMIDs.IsMail;
|
|
337
|
-
sysMDs.push(md);
|
|
338
|
-
md = new MetadataDescriptor();
|
|
339
|
-
md.dataType = MetadataDataTypes.Number;
|
|
340
|
-
md.length = 10;
|
|
341
|
-
md.isRequired = 1;
|
|
342
|
-
md.isSystem = 1;
|
|
343
|
-
md.id = SystemMIDsAsNumber.IsLogDel;
|
|
344
|
-
md.name = SystemMIDs.IsLogDel;
|
|
345
|
-
md.nameLoc = SystemMIDs.IsLogDel;
|
|
346
|
-
sysMDs.push(md);
|
|
347
|
-
md = new MetadataDescriptor();
|
|
348
|
-
md.dataType = MetadataDataTypes.DateTime;
|
|
349
|
-
md.isRequired = 1;
|
|
350
|
-
md.isSystem = 1;
|
|
351
|
-
md.format = new MetadataFormatDescriptor();
|
|
352
|
-
md.format.format = MetadataFormats.ShortDateLongTime;
|
|
353
|
-
md.id = SystemMIDsAsNumber.IsLex;
|
|
354
|
-
md.name = SystemMIDs.IsLex;
|
|
355
|
-
md.nameLoc = SystemMIDs.IsLex;
|
|
356
|
-
sysMDs.push(md);
|
|
357
|
-
md = new MetadataDescriptor();
|
|
358
|
-
md.dataType = MetadataDataTypes.DateTime;
|
|
359
|
-
md.isRequired = 1;
|
|
360
|
-
md.isSystem = 1;
|
|
361
|
-
md.format = new MetadataFormatDescriptor();
|
|
362
|
-
md.format.format = MetadataFormats.ShortDateLongTime;
|
|
363
|
-
md.id = SystemMIDsAsNumber.IsLex;
|
|
364
|
-
md.name = SystemMIDs.IsLex;
|
|
365
|
-
md.nameLoc = SystemMIDs.IsLex;
|
|
366
|
-
sysMDs.push(md);
|
|
367
|
-
md = new MetadataDescriptor();
|
|
368
|
-
md.dataType = MetadataDataTypes.DateTime;
|
|
369
|
-
md.isRequired = 1;
|
|
370
|
-
md.isSystem = 1;
|
|
371
|
-
md.format = new MetadataFormatDescriptor();
|
|
372
|
-
md.format.format = MetadataFormats.ShortDateLongTime;
|
|
373
|
-
md.id = SystemMIDsAsNumber.CreationTime;
|
|
374
|
-
md.name = SystemMIDs.CreationTime;
|
|
375
|
-
md.nameLoc = SystemMIDs.CreationTime;
|
|
376
|
-
sysMDs.push(md);
|
|
377
|
-
md = new MetadataDescriptor();
|
|
378
|
-
md.dataType = MetadataDataTypes.DateTime;
|
|
379
|
-
md.isRequired = 1;
|
|
380
|
-
md.isSystem = 1;
|
|
381
|
-
md.format = new MetadataFormatDescriptor();
|
|
382
|
-
md.format.format = MetadataFormats.ShortDateLongTime;
|
|
383
|
-
md.id = SystemMIDsAsNumber.LastUpdateTime;
|
|
384
|
-
md.name = SystemMIDs.LastUpdateTime;
|
|
385
|
-
md.nameLoc = SystemMIDs.LastUpdateTime;
|
|
386
|
-
sysMDs.push(md);
|
|
387
|
-
if (withPerm) {
|
|
388
|
-
sysMDs.forEach((md) => {
|
|
389
|
-
md.perm = new MetadataPermission();
|
|
390
|
-
md.perm.canArchive = AccessLevels.No;
|
|
391
|
-
md.perm.canView = AccessLevels.Yes;
|
|
392
|
-
md.perm.canSearch = AccessLevels.Yes;
|
|
393
|
-
md.perm.canUpdate = AccessLevels.No;
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
return sysMDs;
|
|
397
|
-
};
|
|
398
|
-
export function deepCompare(obj1, obj2) {
|
|
399
|
-
// If objects are not the same type, return false
|
|
400
|
-
if (typeof obj1 !== typeof obj2) {
|
|
401
|
-
return false;
|
|
402
|
-
}
|
|
403
|
-
// If objects are both null or undefined, return true
|
|
404
|
-
if (!obj1 && !obj2) {
|
|
405
|
-
return true;
|
|
406
|
-
}
|
|
407
|
-
// If objects are both primitive types, compare them directly
|
|
408
|
-
if (typeof obj1 !== 'object') {
|
|
409
|
-
return obj1 === obj2;
|
|
410
|
-
}
|
|
411
|
-
// If objects are arrays, compare their elements recursively
|
|
412
|
-
if (Array.isArray(obj1) && Array.isArray(obj2)) {
|
|
413
|
-
if (obj1.length !== obj2.length) {
|
|
414
|
-
return false;
|
|
415
|
-
}
|
|
416
|
-
for (let i = 0; i < obj1.length; i++) {
|
|
417
|
-
if (!deepCompare(obj1[i], obj2[i])) {
|
|
418
|
-
return false;
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
return true;
|
|
422
|
-
}
|
|
423
|
-
// If objects are both objects, compare their properties recursively
|
|
424
|
-
const keys1 = Object.keys(obj1);
|
|
425
|
-
const keys2 = Object.keys(obj2);
|
|
426
|
-
if (keys1.length !== keys2.length) {
|
|
427
|
-
return false;
|
|
428
|
-
}
|
|
429
|
-
for (let key of keys1) {
|
|
430
|
-
if (!obj2.hasOwnProperty(key) || !deepCompare(obj1[key], obj2[key])) {
|
|
431
|
-
return false;
|
|
432
|
-
}
|
|
433
|
-
}
|
|
434
|
-
return true;
|
|
435
|
-
}
|
|
436
|
-
export const extensionHandler = (fileExt) => {
|
|
437
|
-
if (!fileExt || fileExt.length === 0) {
|
|
438
|
-
return FileExtensionHandler.NONE;
|
|
439
|
-
}
|
|
440
|
-
switch (fileExt.toLowerCase()) {
|
|
441
|
-
case 'pdf.p7m':
|
|
442
|
-
case 'pdf.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
443
|
-
case 'doc':
|
|
444
|
-
case 'doc.p7m':
|
|
445
|
-
case 'doc.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
446
|
-
case 'docx':
|
|
447
|
-
case 'docx.p7m':
|
|
448
|
-
case 'docx.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
449
|
-
case 'xls':
|
|
450
|
-
case 'xls.p7m':
|
|
451
|
-
case 'xls.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
452
|
-
case 'xlsx':
|
|
453
|
-
case 'xlsx.p7m':
|
|
454
|
-
case 'xlsx.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
455
|
-
case 'ppt':
|
|
456
|
-
case 'ppt.p7m':
|
|
457
|
-
case 'ppt.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
458
|
-
case 'pptx':
|
|
459
|
-
case 'pptx.p7m':
|
|
460
|
-
case 'pptx.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
461
|
-
case 'pptm':
|
|
462
|
-
case 'pptm.p7m':
|
|
463
|
-
case 'pptm.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
464
|
-
case 'pps':
|
|
465
|
-
case 'pps.p7m':
|
|
466
|
-
case 'pps.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
467
|
-
case 'ppsx':
|
|
468
|
-
case 'ppsx.p7m':
|
|
469
|
-
case 'ppsx.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
470
|
-
case 'tif':
|
|
471
|
-
case 'tif.p7m':
|
|
472
|
-
case 'tif.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
473
|
-
case 'tiff':
|
|
474
|
-
case 'tiff.p7m':
|
|
475
|
-
case 'tiff.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
476
|
-
case 'eml':
|
|
477
|
-
case 'eml.p7m':
|
|
478
|
-
case 'eml.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
479
|
-
case 'msg':
|
|
480
|
-
case 'msg.p7m':
|
|
481
|
-
case 'msg.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
482
|
-
case 'htm.p7m':
|
|
483
|
-
case 'htm.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
484
|
-
case 'html.p7m':
|
|
485
|
-
case 'html.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
486
|
-
case 'txt.p7m':
|
|
487
|
-
case 'txt.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
488
|
-
case 'csv': return FileExtensionHandler.CONVERTIBLE;
|
|
489
|
-
// case 'xml.p7m': case 'xml.p7m.ts': return FileExtensionHandler.CONVERTIBLE;
|
|
490
|
-
case 'jpg':
|
|
491
|
-
case 'jpeg':
|
|
492
|
-
case 'png':
|
|
493
|
-
case 'bmp':
|
|
494
|
-
case 'gif':
|
|
495
|
-
case 'svg': return FileExtensionHandler.READY_TO_SHOW;
|
|
496
|
-
case 'htm':
|
|
497
|
-
case 'html': return FileExtensionHandler.READY_TO_SHOW;
|
|
498
|
-
case 'mp4':
|
|
499
|
-
case 'webm': return FileExtensionHandler.READY_TO_SHOW;
|
|
500
|
-
case 'xml': return FileExtensionHandler.READY_TO_SHOW;
|
|
501
|
-
case 'xml.p7m':
|
|
502
|
-
case 'xml.p7m.ts':
|
|
503
|
-
case 'xml.p7m.tsd': return FileExtensionHandler.READY_TO_SHOW;
|
|
504
|
-
case 'pdf': return FileExtensionHandler.READY_TO_SHOW;
|
|
505
|
-
case 'txt': return FileExtensionHandler.READY_TO_SHOW;
|
|
506
|
-
case 'config':
|
|
507
|
-
case 'cfg':
|
|
508
|
-
case 'json': return FileExtensionHandler.READY_TO_SHOW;
|
|
509
|
-
default: return FileExtensionHandler.NONE;
|
|
510
|
-
}
|
|
511
|
-
};
|
|
512
|
-
export const downloadBase64File = (base64Data, fileName) => {
|
|
513
|
-
// Decodifica la stringa base64 in un Blob
|
|
514
|
-
const byteCharacters = atob(base64Data);
|
|
515
|
-
const byteNumbers = new Array(byteCharacters.length).fill(0).map((_, i) => byteCharacters.charCodeAt(i));
|
|
516
|
-
const byteArray = new Uint8Array(byteNumbers);
|
|
517
|
-
const blob = new Blob([byteArray], { type: 'application/octet-stream' });
|
|
518
|
-
// Crea un URL per il Blob
|
|
519
|
-
const blobUrl = URL.createObjectURL(blob);
|
|
520
|
-
// Crea un link di download
|
|
521
|
-
const link = document.createElement('a');
|
|
522
|
-
link.href = blobUrl;
|
|
523
|
-
link.download = fileName;
|
|
524
|
-
// Simula un click sul link
|
|
525
|
-
document.body.appendChild(link);
|
|
526
|
-
link.click();
|
|
527
|
-
// Rimuovi il link dal DOM
|
|
528
|
-
document.body.removeChild(link);
|
|
529
|
-
// Libera l'URL del Blob
|
|
530
|
-
URL.revokeObjectURL(blobUrl);
|
|
531
|
-
};
|
|
532
|
-
export const TASK_MORE_INFO_PREFIX_NAME = `${SDKUI_Localizator.MoreInformation} - `;
|
|
533
|
-
export const isTaskMoreInfo = (taskName) => taskName?.startsWith(TASK_MORE_INFO_PREFIX_NAME);
|
|
534
|
-
//#region Form, Page Helpers
|
|
535
|
-
export const canNext = (visibleItems, selectedItems) => {
|
|
536
|
-
if (!visibleItems)
|
|
537
|
-
return false;
|
|
538
|
-
if (visibleItems.length == 1)
|
|
539
|
-
return false;
|
|
540
|
-
if (!selectedItems)
|
|
541
|
-
return false;
|
|
542
|
-
if (selectedItems.length != 1)
|
|
543
|
-
return false;
|
|
544
|
-
return visibleItems.indexOf(selectedItems[0]) < visibleItems.length - 1;
|
|
545
|
-
};
|
|
546
|
-
export const getNext = (visibleItems, selectedItems) => {
|
|
547
|
-
if (!visibleItems)
|
|
548
|
-
return;
|
|
549
|
-
if (!selectedItems[0])
|
|
550
|
-
return;
|
|
551
|
-
if (selectedItems.length != 1)
|
|
552
|
-
return;
|
|
553
|
-
let index = visibleItems.findIndex(o => o.id == selectedItems[0].id);
|
|
554
|
-
return visibleItems[index + 1];
|
|
555
|
-
};
|
|
556
|
-
export const canPrev = (visibleItems, selectedItems) => {
|
|
557
|
-
if (!visibleItems)
|
|
558
|
-
return false;
|
|
559
|
-
if (visibleItems.length == 1)
|
|
560
|
-
return false;
|
|
561
|
-
if (!selectedItems)
|
|
562
|
-
return false;
|
|
563
|
-
if (selectedItems.length != 1)
|
|
564
|
-
return false;
|
|
565
|
-
return visibleItems.indexOf(selectedItems[0]) > 0;
|
|
566
|
-
};
|
|
567
|
-
export const getPrev = (visibleItems, selectedItems) => {
|
|
568
|
-
if (!visibleItems)
|
|
569
|
-
return;
|
|
570
|
-
if (!selectedItems[0])
|
|
571
|
-
return;
|
|
572
|
-
if (selectedItems.length != 1)
|
|
573
|
-
return;
|
|
574
|
-
let index = visibleItems.findIndex(o => o.id == selectedItems[0].id);
|
|
575
|
-
return visibleItems[index - 1];
|
|
576
|
-
};
|
|
577
|
-
export const calcSaveFormTitle = (rootTitle, formMode, updateId, pathKeys) => {
|
|
578
|
-
let title = rootTitle ?? "";
|
|
579
|
-
if (formMode == FormModes.Update && updateId)
|
|
580
|
-
title += ` (${updateId})`;
|
|
581
|
-
title += " - ";
|
|
582
|
-
switch (formMode) {
|
|
583
|
-
case FormModes.Create:
|
|
584
|
-
title += SDKUI_Localizator.Create;
|
|
585
|
-
break;
|
|
586
|
-
case FormModes.Update:
|
|
587
|
-
title += SDKUI_Localizator.Update;
|
|
588
|
-
break;
|
|
589
|
-
case FormModes.Duplicate:
|
|
590
|
-
title += SDKUI_Localizator.Duplicate;
|
|
591
|
-
break;
|
|
592
|
-
}
|
|
593
|
-
if (!pathKeys || pathKeys.length <= 0)
|
|
594
|
-
return title;
|
|
595
|
-
return title + " > " + pathKeys.join(" > ");
|
|
596
|
-
};
|
|
597
|
-
export function calcIsModified(formData, formDataOrig) {
|
|
598
|
-
if (!formData && !formDataOrig)
|
|
599
|
-
return false;
|
|
600
|
-
let isMailSender = formData?.mailFormat !== undefined &&
|
|
601
|
-
formDataOrig?.mailFormat !== undefined;
|
|
602
|
-
if (isMailSender)
|
|
603
|
-
return !DeepCompareHelper.deepCompareUnorderedNormalized(formData, formDataOrig);
|
|
604
|
-
return JSON.stringify(formData) !== JSON.stringify(formDataOrig);
|
|
605
|
-
}
|
|
606
|
-
//#endregion
|
|
607
|
-
export { openApps, calcResponsiveDirection, calcResponsiveSizes, getColor, genUniqueId, makeID, MOBILE_WIDTH, TABLET_WIDTH };
|
|
608
|
-
export function moduleVersion(module) {
|
|
609
|
-
switch (module) {
|
|
610
|
-
case moduleTypes.SDK: return SDK_Globals.sdkVersion ?? '0.0.0';
|
|
611
|
-
case moduleTypes.SDKUI: return SDK_Globals.sdkuiVersion ?? '0.0.0';
|
|
612
|
-
case moduleTypes.WEBSDK: return SDK_Globals.websdkVersion ?? '0.0.0';
|
|
613
|
-
default: return SDK_Globals.appVersion ?? '0.0.0';
|
|
614
|
-
}
|
|
615
|
-
}
|
|
616
|
-
export function buildtype(module) {
|
|
617
|
-
let versionApp = moduleVersion(moduleTypes.APP);
|
|
618
|
-
let version = moduleVersion(module);
|
|
619
|
-
let nameSDK = SDK_Globals.sdkName ?? "";
|
|
620
|
-
let buildType;
|
|
621
|
-
if (nameSDK.endsWith('-beta') && version.endsWith('.0'))
|
|
622
|
-
buildType = buildTypes.TEST;
|
|
623
|
-
else if (nameSDK.endsWith('-beta') && versionApp.endsWith('.0'))
|
|
624
|
-
buildType = buildTypes.TEST;
|
|
625
|
-
else if (nameSDK.endsWith('-beta'))
|
|
626
|
-
buildType = buildTypes.DEV;
|
|
627
|
-
else if (version.endsWith('.0'))
|
|
628
|
-
buildType = buildTypes.RTM;
|
|
629
|
-
else
|
|
630
|
-
buildType = buildTypes.PATCH;
|
|
631
|
-
return buildType;
|
|
632
|
-
}
|
|
633
|
-
export const highlightText = (text, searchValue) => {
|
|
634
|
-
if (!text.trim() || !searchValue.trim())
|
|
635
|
-
return _jsxs(_Fragment, { children: [text, " "] });
|
|
636
|
-
const foundStrings = searchValue.match(/[^\s]+/g) || [];
|
|
637
|
-
const escapedStrings = foundStrings
|
|
638
|
-
.map((str) => str.replace(/[-\/\\^$*+?.()|[\]{}]/g, '\\$&')) // NOSONAR
|
|
639
|
-
.filter(Boolean);
|
|
640
|
-
if (escapedStrings.length === 0)
|
|
641
|
-
return _jsxs(_Fragment, { children: [text, " "] });
|
|
642
|
-
const regex = new RegExp(`(${escapedStrings.join('|')})`, 'gi');
|
|
643
|
-
const parts = [];
|
|
644
|
-
let lastIndex = 0;
|
|
645
|
-
for (const match of text.matchAll(regex)) {
|
|
646
|
-
const matchStart = match.index;
|
|
647
|
-
const matchEnd = matchStart + match[0].length;
|
|
648
|
-
if (lastIndex < matchStart) {
|
|
649
|
-
parts.push(text.substring(lastIndex, matchStart));
|
|
650
|
-
}
|
|
651
|
-
parts.push(_jsx("span", { style: { backgroundColor: "yellow", borderRadius: '2px' }, children: match[0] }, matchStart));
|
|
652
|
-
lastIndex = matchEnd;
|
|
653
|
-
}
|
|
654
|
-
if (lastIndex < text.length) {
|
|
655
|
-
parts.push(text.substring(lastIndex));
|
|
656
|
-
}
|
|
657
|
-
return _jsxs(_Fragment, { children: [parts, " "] });
|
|
658
|
-
};
|
|
659
|
-
export const renderHighlightedText = (text, searchText, isSelected) => {
|
|
660
|
-
if (!searchText)
|
|
661
|
-
return text;
|
|
662
|
-
const escapedSearchText = searchText.trim().replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
663
|
-
const regex = new RegExp(`(${escapedSearchText})`, 'gi');
|
|
664
|
-
return text.split(regex).map((part, index) => regex.test(part) ? (_jsx("span", { style: { backgroundColor: isSelected ? '#6c9023' : 'yellow' }, children: part }, index)) : (part));
|
|
665
|
-
};
|
|
666
|
-
export function versionAndBuildtypeInfo(module) {
|
|
667
|
-
return moduleVersion(module);
|
|
668
|
-
}
|
|
669
|
-
export const getListMaxItems = (deviceType) => { return deviceType === DeviceType.MOBILE ? 8 : 12; };
|
|
670
|
-
export const svgToString = (icon) => {
|
|
671
|
-
return ReactDOMServer.renderToString(icon);
|
|
672
|
-
};
|
|
673
|
-
export function stringIsNullOrEmpty(value) {
|
|
674
|
-
if (value == undefined)
|
|
675
|
-
return true;
|
|
676
|
-
if (value == null)
|
|
677
|
-
return true;
|
|
678
|
-
if (value == "")
|
|
679
|
-
return true;
|
|
680
|
-
return false;
|
|
681
|
-
}
|
|
682
|
-
export function isPositiveNumber(val) {
|
|
683
|
-
// unknown is used to maximize type safety and reusability for type guard functions.
|
|
684
|
-
return typeof val === 'number' && val > 0;
|
|
685
|
-
}
|
|
686
|
-
export async function sleep(ms) {
|
|
687
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
688
|
-
}
|
|
689
|
-
// #region Dialog
|
|
690
|
-
export const dialogConfirmOperation = (title, msg, operationAsync) => {
|
|
691
|
-
TMMessageBoxManager.show({
|
|
692
|
-
title: title, message: msg, buttons: [ButtonNames.YES, ButtonNames.NO],
|
|
693
|
-
onButtonClick: async (e) => {
|
|
694
|
-
if (e !== ButtonNames.YES)
|
|
695
|
-
return;
|
|
696
|
-
await operationAsync();
|
|
697
|
-
}
|
|
698
|
-
});
|
|
699
|
-
};
|
|
700
|
-
export var LandingPages;
|
|
701
|
-
(function (LandingPages) {
|
|
702
|
-
LandingPages["DASHBOARD"] = "dashboard";
|
|
703
|
-
LandingPages["SEARCH"] = "search";
|
|
704
|
-
LandingPages["ARCHIVE"] = "archive";
|
|
705
|
-
LandingPages["WORKING_GROUPS"] = "workingGroups";
|
|
706
|
-
LandingPages["WORKFLOW_APPR"] = "workflowAppr";
|
|
707
|
-
LandingPages["DOSSIERS"] = "dossiers";
|
|
708
|
-
LandingPages["FAVORITES"] = "favorites";
|
|
709
|
-
LandingPages["RECENT"] = "recent";
|
|
710
|
-
LandingPages["AREA_MANAGER"] = "areaManager";
|
|
711
|
-
LandingPages["NOTIFICATIONS"] = "notifications";
|
|
712
|
-
LandingPages["ACTIVITIES"] = "activities";
|
|
713
|
-
})(LandingPages || (LandingPages = {}));
|
|
714
|
-
// #endregion
|
|
715
|
-
// #region Exception
|
|
716
|
-
export function getExceptionMessage(ex) {
|
|
717
|
-
let msg = ex.isApiException ? ex.response.title : ex.message;
|
|
718
|
-
return msg ?? ex.toString();
|
|
719
|
-
}
|
|
720
|
-
export function getContrastColor(inputColor) {
|
|
721
|
-
let hex = inputColor;
|
|
722
|
-
if (!/^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(inputColor)) {
|
|
723
|
-
const temp = document.createElement('div');
|
|
724
|
-
temp.style.color = inputColor;
|
|
725
|
-
document.body.appendChild(temp);
|
|
726
|
-
const rgb = getComputedStyle(temp).color;
|
|
727
|
-
document.body.removeChild(temp);
|
|
728
|
-
const regex = /^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/;
|
|
729
|
-
const match = regex.exec(rgb);
|
|
730
|
-
if (match) {
|
|
731
|
-
const r = parseInt(match[1]).toString(16).padStart(2, '0');
|
|
732
|
-
const g = parseInt(match[2]).toString(16).padStart(2, '0');
|
|
733
|
-
const b = parseInt(match[3]).toString(16).padStart(2, '0');
|
|
734
|
-
hex = `#${r}${g}${b}`;
|
|
735
|
-
}
|
|
736
|
-
else {
|
|
737
|
-
hex = '#000000';
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
const color = hex.replace('#', '');
|
|
741
|
-
const r = parseInt(color.substring(0, 2), 16);
|
|
742
|
-
const g = parseInt(color.substring(2, 4), 16);
|
|
743
|
-
const b = parseInt(color.substring(4, 6), 16);
|
|
744
|
-
const luminance = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
745
|
-
if (inputColor === 'transparent' || inputColor === 'rgba(255, 255, 255, 0)' || inputColor === 'none' || inputColor === 'white' || inputColor === '#ffffff' || inputColor === '#fff') {
|
|
746
|
-
return {
|
|
747
|
-
bgColor: '#aeaeae',
|
|
748
|
-
textColor: '#2559A5'
|
|
749
|
-
};
|
|
750
|
-
}
|
|
751
|
-
return {
|
|
752
|
-
bgColor: hex,
|
|
753
|
-
textColor: luminance > 0.6 ? '#2559A5' : '#FFFFFF'
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
// #endregion
|
|
757
|
-
/** Adds TID to a list of "most recently used" (MRU) TIDs, keeping a maximum of 10 elements */
|
|
758
|
-
export function updateMruTids(currentMruTIDs, newTid) {
|
|
759
|
-
// 1. Make sure newTid is a valid number.
|
|
760
|
-
// Using unknown forces validation.
|
|
761
|
-
// This is a best practice for robust functions that need to handle potentially non-compliant input.
|
|
762
|
-
const tidAsNumber = Number(newTid);
|
|
763
|
-
if (isNaN(tidAsNumber)) {
|
|
764
|
-
console.warn(`Tentativo di aggiungere un TID non numerico: ${newTid}. Ignorato.`);
|
|
765
|
-
return currentMruTIDs ? currentMruTIDs.filter(tid => tid != null) : [];
|
|
766
|
-
}
|
|
767
|
-
// 2. Initialize or copy existing MRU list.
|
|
768
|
-
let updatedMruTIDs = currentMruTIDs ? currentMruTIDs.filter(tid => tid != null) : [];
|
|
769
|
-
// 3. Remove the TID if it already exists to avoid duplicates and update its position.
|
|
770
|
-
const existingIndex = updatedMruTIDs.findIndex((o) => o === tidAsNumber);
|
|
771
|
-
if (existingIndex >= 0) {
|
|
772
|
-
updatedMruTIDs.splice(existingIndex, 1);
|
|
773
|
-
}
|
|
774
|
-
// 4. Remove oldest element if list exceeds maximum size of 10.
|
|
775
|
-
if (updatedMruTIDs.length >= 10) {
|
|
776
|
-
updatedMruTIDs.splice(0, 1); // Rimuove il primo elemento (il più vecchio)
|
|
777
|
-
}
|
|
778
|
-
// 5. Add new TID to queue (most recent).
|
|
779
|
-
updatedMruTIDs.push(tidAsNumber);
|
|
780
|
-
return updatedMruTIDs;
|
|
781
|
-
}
|
|
782
|
-
/** Remove TID to a list of "most recently used" (MRU) TIDs, keeping a maximum of 10 elements */
|
|
783
|
-
export function removeMruTid(currentMruTIDs, tidToRemove) {
|
|
784
|
-
// 1. Make sure tidToRemove is a valid number.
|
|
785
|
-
const tidAsNumber = Number(tidToRemove);
|
|
786
|
-
if (isNaN(tidAsNumber)) {
|
|
787
|
-
console.warn(`Tentativo di rimuovere un TID non numerico: ${tidToRemove}. Ignorato.`);
|
|
788
|
-
return currentMruTIDs ? currentMruTIDs.filter(tid => tid != null) : [];
|
|
789
|
-
}
|
|
790
|
-
// 2. Initialize or copy existing MRU list.
|
|
791
|
-
let updatedMruTIDs = currentMruTIDs ? currentMruTIDs.filter(tid => tid != null) : [];
|
|
792
|
-
// 3. Find the TID index to remove.
|
|
793
|
-
const indexToRemove = updatedMruTIDs.findIndex((o) => o === tidAsNumber);
|
|
794
|
-
// 4. If the TID is found, remove it from the list.
|
|
795
|
-
if (indexToRemove >= 0) {
|
|
796
|
-
updatedMruTIDs.splice(indexToRemove, 1);
|
|
797
|
-
}
|
|
798
|
-
return updatedMruTIDs;
|
|
799
|
-
}
|
|
800
|
-
export class AreaValues {
|
|
801
|
-
constructor() {
|
|
802
|
-
this.aid = 0;
|
|
803
|
-
this.subFolder = "";
|
|
804
|
-
this.fileName = "";
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
export class AreaHelper {
|
|
808
|
-
static IsAreaPath(areaPath) {
|
|
809
|
-
if (stringIsNullOrEmpty(areaPath))
|
|
810
|
-
return false;
|
|
811
|
-
return areaPath.toLowerCase().startsWith((AreaHelper.AreaPathPrefix + AreaHelper.AreaFolderNamePrefix).toLowerCase());
|
|
812
|
-
}
|
|
813
|
-
// Overloading con diverso numero di paramentri non è supportato (ma solo con diverso tipo)
|
|
814
|
-
// public static void ExtractAreaInfo(string areaPath, out int aid, out string subFolder)
|
|
815
|
-
static ExtractAreaInfo_1(areaPath) {
|
|
816
|
-
let fileName;
|
|
817
|
-
return AreaHelper.ExtractAreaInfo_2(areaPath, false);
|
|
818
|
-
}
|
|
819
|
-
// public static void ExtractAreaInfo(string areaPath, out int aid, out string subFolder, ref string? fileName)
|
|
820
|
-
static ExtractAreaInfo_2(areaPath, extractFileName) {
|
|
821
|
-
let areaValues = new AreaValues();
|
|
822
|
-
areaValues.aid = 0;
|
|
823
|
-
areaValues.subFolder = "";
|
|
824
|
-
if (!AreaHelper.IsAreaPath(areaPath))
|
|
825
|
-
return areaValues;
|
|
826
|
-
areaPath = areaPath.replace(areaPath.substring(0, AreaHelper.AreaPathPrefix.length + AreaHelper.AreaFolderNamePrefix.length), "");
|
|
827
|
-
// areaPath = 5002\BarcodeArchiver\71232\00001.tiff
|
|
828
|
-
let pathTokens = areaPath.split('\\');
|
|
829
|
-
let id = pathTokens[0];
|
|
830
|
-
if (isNaN(parseInt(id)))
|
|
831
|
-
return areaValues;
|
|
832
|
-
areaValues.aid = parseInt(id);
|
|
833
|
-
let subFolders = "";
|
|
834
|
-
let lastFolderIndex = extractFileName ? pathTokens.length - 2 : pathTokens.length - 1;
|
|
835
|
-
let fileNameIndex = lastFolderIndex + 1;
|
|
836
|
-
for (let i = 1; i <= lastFolderIndex; i++) {
|
|
837
|
-
let s = pathTokens[i].trim();
|
|
838
|
-
if (stringIsNullOrEmpty(s))
|
|
839
|
-
continue;
|
|
840
|
-
subFolders += s + "\\";
|
|
841
|
-
}
|
|
842
|
-
if (subFolders.endsWith("\\"))
|
|
843
|
-
subFolders = subFolders.substring(0, subFolders.length - 1);
|
|
844
|
-
areaValues.fileName = (extractFileName && fileNameIndex > 0 && fileNameIndex < pathTokens.length) ? pathTokens[fileNameIndex].trim() : "";
|
|
845
|
-
if (subFolders.length == 0)
|
|
846
|
-
return areaValues;
|
|
847
|
-
areaValues.subFolder = subFolders;
|
|
848
|
-
return areaValues;
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
AreaHelper.AreaPathPrefix = "tmarea:\\\\";
|
|
852
|
-
AreaHelper.AreaFolderNamePrefix = "AID_";
|