@topconsultnpm/sdkui-react-beta 6.5.51
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/6.png +0 -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/Metadata/DataList_32.png +0 -0
- package/lib/assets/Metadata/DynamicDataList_32.png +0 -0
- package/lib/assets/Metadata/MetadataComputed_32.png +0 -0
- package/lib/assets/Metadata/MetadataDateTime_16.png +0 -0
- package/lib/assets/Metadata/MetadataNumeric_16.png +0 -0
- package/lib/assets/Metadata/MetadataSpecial_32.png +0 -0
- package/lib/assets/Metadata/MetadataText_16.png +0 -0
- package/lib/assets/Metadata/Metadata_32.png +0 -0
- package/lib/assets/Metadata/Numerator_32.png +0 -0
- package/lib/assets/Metadata/UserLevel_Member_32.png +0 -0
- package/lib/assets/Orchestrator6.png +0 -0
- package/lib/assets/TopMediaOrchestrator6.svg +93 -0
- package/lib/assets/Toppy-generico.png +0 -0
- package/lib/assets/background-login.png +0 -0
- package/lib/assets/d.png +0 -0
- package/lib/assets/doc.jpg +0 -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/loading.png +0 -0
- package/lib/assets/login-bg.png +0 -0
- package/lib/assets/logo-TopConsult-footer.png +0 -0
- package/lib/assets/logo.svg +79 -0
- package/lib/assets/multipleSelectionManager.jpg +0 -0
- package/lib/assets/s.png +0 -0
- package/lib/components/base/Styled.d.ts +28 -0
- package/lib/components/base/Styled.js +117 -0
- package/lib/components/base/TMAlert.d.ts +20 -0
- package/lib/components/base/TMAlert.js +75 -0
- package/lib/components/base/TMButton.d.ts +17 -0
- package/lib/components/base/TMButton.js +163 -0
- package/lib/components/base/TMClosableList.d.ts +10 -0
- package/lib/components/base/TMClosableList.js +69 -0
- package/lib/components/base/TMContextMenu.d.ts +26 -0
- package/lib/components/base/TMContextMenu.js +56 -0
- package/lib/components/base/TMDropDown.d.ts +11 -0
- package/lib/components/base/TMDropDown.js +64 -0
- package/lib/components/base/TMDropDownMenu.d.ts +17 -0
- package/lib/components/base/TMDropDownMenu.js +39 -0
- package/lib/components/base/TMEditorBase.d.ts +31 -0
- package/lib/components/base/TMEditorBase.js +1 -0
- package/lib/components/base/TMLayout.d.ts +51 -0
- package/lib/components/base/TMLayout.js +152 -0
- package/lib/components/base/TMList.d.ts +9 -0
- package/lib/components/base/TMList.js +46 -0
- package/lib/components/base/TMListView.d.ts +24 -0
- package/lib/components/base/TMListView.js +321 -0
- package/lib/components/base/TMModal.d.ts +14 -0
- package/lib/components/base/TMModal.js +48 -0
- package/lib/components/base/TMPopUp.d.ts +26 -0
- package/lib/components/base/TMPopUp.js +136 -0
- package/lib/components/base/TMProgressBar.d.ts +11 -0
- package/lib/components/base/TMProgressBar.js +32 -0
- package/lib/components/base/TMSpinner.d.ts +13 -0
- package/lib/components/base/TMSpinner.js +23 -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/TMTooltip.d.ts +9 -0
- package/lib/components/base/TMTooltip.js +19 -0
- package/lib/components/base/TMVilViewer.d.ts +5 -0
- package/lib/components/base/TMVilViewer.js +22 -0
- package/lib/components/choosers/TMDataListItemChooser.d.ts +19 -0
- package/lib/components/choosers/TMDataListItemChooser.js +37 -0
- package/lib/components/choosers/TMDcmtTypeChooser.d.ts +25 -0
- package/lib/components/choosers/TMDcmtTypeChooser.js +46 -0
- package/lib/components/choosers/TMMetadataChooser.d.ts +41 -0
- package/lib/components/choosers/TMMetadataChooser.js +118 -0
- package/lib/components/choosers/TMUserChooser.d.ts +26 -0
- package/lib/components/choosers/TMUserChooser.js +82 -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 +12 -0
- package/lib/components/editors/TMDateBox.js +78 -0
- package/lib/components/editors/TMDropDown.d.ts +10 -0
- package/lib/components/editors/TMDropDown.js +38 -0
- package/lib/components/editors/TMEditorStyled.d.ts +30 -0
- package/lib/components/editors/TMEditorStyled.js +75 -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 +18 -0
- package/lib/components/editors/TMSummary.js +62 -0
- package/lib/components/editors/TMTextBox.d.ts +20 -0
- package/lib/components/editors/TMTextBox.js +116 -0
- package/lib/components/filesystem/ProgressBar.d.ts +7 -0
- package/lib/components/filesystem/ProgressBar.js +25 -0
- package/lib/components/forms/TMApplyForm.d.ts +4 -0
- package/lib/components/forms/TMApplyForm.js +102 -0
- package/lib/components/forms/TMChooserForm.d.ts +3 -0
- package/lib/components/forms/TMChooserForm.js +56 -0
- package/lib/components/forms/TMLoginForm.d.ts +32 -0
- package/lib/components/forms/TMLoginForm.js +986 -0
- package/lib/components/forms/TMSaveForm.d.ts +4 -0
- package/lib/components/forms/TMSaveForm.js +107 -0
- package/lib/components/grids/TMValidationItemsList.d.ts +6 -0
- package/lib/components/grids/TMValidationItemsList.js +82 -0
- package/lib/components/index.d.ts +44 -0
- package/lib/components/index.js +59 -0
- package/lib/components/pages/TMPage.d.ts +39 -0
- package/lib/components/pages/TMPage.js +194 -0
- package/lib/components/query/TMQueryEditor.d.ts +27 -0
- package/lib/components/query/TMQueryEditor.js +1044 -0
- package/lib/components/query/TMQueryResult.d.ts +8 -0
- package/lib/components/query/TMQueryResult.js +47 -0
- package/lib/components/settings/SettingsAppearance.d.ts +2 -0
- package/lib/components/settings/SettingsAppearance.js +44 -0
- package/lib/components/sidebar/TMHeader.d.ts +31 -0
- package/lib/components/sidebar/TMHeader.js +228 -0
- package/lib/components/sidebar/TMSidebar.d.ts +17 -0
- package/lib/components/sidebar/TMSidebar.js +24 -0
- package/lib/components/sidebar/TMSidebarItem.d.ts +12 -0
- package/lib/components/sidebar/TMSidebarItem.js +27 -0
- package/lib/components/splitter/TMSplitterLayout.d.ts +17 -0
- package/lib/components/splitter/TMSplitterLayout.js +215 -0
- package/lib/components/viewers/TMDataListItemViewer.d.ts +9 -0
- package/lib/components/viewers/TMDataListItemViewer.js +27 -0
- package/lib/components/viewers/TMMidViewer.d.ts +26 -0
- package/lib/components/viewers/TMMidViewer.js +110 -0
- package/lib/components/viewers/TMTidViewer.d.ts +21 -0
- package/lib/components/viewers/TMTidViewer.js +398 -0
- package/lib/css/tm-sdkui.css +1 -0
- package/lib/helper/Enum_Localizator.d.ts +8 -0
- package/lib/helper/Enum_Localizator.js +125 -0
- package/lib/helper/Globalization.d.ts +14 -0
- package/lib/helper/Globalization.js +80 -0
- package/lib/helper/SDKUI_Globals.d.ts +11 -0
- package/lib/helper/SDKUI_Globals.js +8 -0
- package/lib/helper/SDKUI_Localizator.d.ts +222 -0
- package/lib/helper/SDKUI_Localizator.js +2143 -0
- package/lib/helper/TMIcons.d.ts +171 -0
- package/lib/helper/TMIcons.js +507 -0
- package/lib/helper/TMImageLibrary.d.ts +3 -0
- package/lib/helper/TMImageLibrary.js +466 -0
- package/lib/helper/helpers.d.ts +25 -0
- package/lib/helper/helpers.js +250 -0
- package/lib/helper/index.d.ts +8 -0
- package/lib/helper/index.js +8 -0
- package/lib/helper/queryHelper.d.ts +8 -0
- package/lib/helper/queryHelper.js +32 -0
- package/lib/hooks/useForm.d.ts +18 -0
- package/lib/hooks/useForm.js +111 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useOutsideClick.js +38 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +7 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.js +1 -0
- package/lib/services/platform_services.d.ts +17 -0
- package/lib/services/platform_services.js +334 -0
- package/lib/ts/index.d.ts +1 -0
- package/lib/ts/index.js +1 -0
- package/lib/ts/types.d.ts +152 -0
- package/lib/ts/types.js +17 -0
- package/lib/utils/theme.d.ts +58 -0
- package/lib/utils/theme.js +57 -0
- package/package.json +38 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SearchResultDescriptor } from '@topconsultnpm/sdk-ts-beta';
|
|
2
|
+
declare const TMQueryResult: ({ result, elapsedTime, showSysMetadata, searchText }: {
|
|
3
|
+
result: SearchResultDescriptor | undefined;
|
|
4
|
+
elapsedTime?: number;
|
|
5
|
+
showSysMetadata?: boolean;
|
|
6
|
+
searchText?: string;
|
|
7
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export default TMQueryResult;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useEffect, useState } from 'react';
|
|
3
|
+
import { DataGrid } from 'devextreme-react';
|
|
4
|
+
import { DataColumnTypes } from '@topconsultnpm/sdk-ts-beta';
|
|
5
|
+
import { Column, HeaderFilter, LoadPanel, Pager, Paging, Scrolling, SearchPanel, Selection } from 'devextreme-react/cjs/data-grid';
|
|
6
|
+
import TMLayoutContainer, { TMLayoutItem } from '../base/TMLayout';
|
|
7
|
+
import { StyledDivHorizontal, StyledParagraph, cellRenderObjectIcon } from '../base/Styled';
|
|
8
|
+
import { Globalization, IconAll, IconApply, IconFileDots, IconProgressReady, IconSelected, IconVisible, SDKUI_Globals, getDataColumnName, searchResultDescriptorToSimpleArray } from '../../helper';
|
|
9
|
+
import { TMColors } from '../../utils/theme';
|
|
10
|
+
const TMQueryResult = ({ result, elapsedTime, showSysMetadata = false, searchText }) => {
|
|
11
|
+
const [dataSource, setDataSource] = useState();
|
|
12
|
+
const [selectedItems, setSelectedItems] = useState([]);
|
|
13
|
+
const [visibleItems, setVisibleItems] = useState([]);
|
|
14
|
+
let gridInstance;
|
|
15
|
+
useEffect(() => { gridInstance?.instance().searchByText(searchText ?? ''); }, [searchText]);
|
|
16
|
+
useEffect(() => { setDataSource(searchResultDescriptorToSimpleArray(result)); }, [result]);
|
|
17
|
+
function millisecondsToTime(milli) {
|
|
18
|
+
//console.log(milli)
|
|
19
|
+
let milliseconds = milli % 1000;
|
|
20
|
+
let seconds = Math.floor((milli / 1000) % 60);
|
|
21
|
+
let minutes = Math.floor((milli / (60 * 1000)) % 60);
|
|
22
|
+
return minutes + "m " + seconds + "s " + milliseconds.toFixed(2) + "ms";
|
|
23
|
+
}
|
|
24
|
+
return (_jsxs(TMLayoutContainer, { gap: 0, children: [_jsx(TMLayoutItem, { height: 'calc(100% - 30px)', children: _jsxs(DataGrid, { ref: (grid) => (gridInstance = grid), keyExpr: "rowIndex", width: '100%', height: '100%', dataSource: dataSource, allowColumnResizing: true, columnResizingMode: "widget", columnAutoWidth: true, allowColumnReordering: true, showBorders: true, showColumnLines: SDKUI_Globals.dataGridShowColumnLines, showRowLines: SDKUI_Globals.dataGridShowRowLines, onContentReady: (e) => { setVisibleItems(e.component.getVisibleRows().map((row) => { return row.data; })); }, onSelectionChanged: (e) => { setSelectedItems(e.selectedRowsData); },
|
|
25
|
+
// onRowPrepared={(e: RowPreparedEvent<string[], any>) => { e.rowElement.style.height = '21px' }}
|
|
26
|
+
onToolbarPreparing: (e) => {
|
|
27
|
+
e.toolbarOptions.items.forEach((item) => {
|
|
28
|
+
if (item.name === "searchPanel") {
|
|
29
|
+
item.location = "before";
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
}, children: [_jsx(Selection, { mode: "multiple", showCheckBoxesMode: "onClick", selectAllMode: 'allPages' }), _jsx(SearchPanel, { visible: false }), _jsx(Scrolling, { mode: 'virtual', useNative: SDKUI_Globals.dataGridUseNativeScrollbar }), _jsx(HeaderFilter, { visible: true }), _jsx(Paging, { pageSize: 25 }), _jsx(Pager, { visible: true, showInfo: true, showNavigationButtons: true }), _jsx(LoadPanel, { enabled: true }), _jsx(Column, { dataType: "object", width: 40, visible: true, cellRender: () => cellRenderObjectIcon(_jsx(IconFileDots, { color: '#767676' })) }), result?.dtdResult?.columns?.map((col, index) => {
|
|
33
|
+
let mid = col.extendedProperties?.["MID"];
|
|
34
|
+
let keyField = getDataColumnName(result?.fromTID, col);
|
|
35
|
+
const isSystemField = Number(mid) < 50;
|
|
36
|
+
const dataType = () => {
|
|
37
|
+
switch (col.dataType) {
|
|
38
|
+
case DataColumnTypes.DateTime: return "datetime";
|
|
39
|
+
case DataColumnTypes.Bool: return "boolean";
|
|
40
|
+
case DataColumnTypes.Number: return "number";
|
|
41
|
+
default: return "string";
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
return (_jsx(Column, { dataField: keyField, caption: col.caption, visible: !isSystemField ? true : showSysMetadata, dataType: dataType(), format: col.dataType === DataColumnTypes.DateTime ? Globalization.getDateDisplayFormat() : "" }, col.caption + index.toString()));
|
|
45
|
+
})] }) }), _jsx(TMLayoutItem, { height: 'max-content', children: _jsxs(StyledDivHorizontal, { style: { backgroundColor: TMColors.toolbar_background, height: '30px' }, children: [_jsxs(StyledParagraph, { children: [_jsxs("span", { style: { marginRight: '5px', fontWeight: 'bold' }, children: [" ", _jsx(IconAll, { fontSize: 12 })] }), Globalization.getNumberDisplayValue(dataSource?.length ?? 0, true)] }), _jsxs(StyledParagraph, { children: [_jsxs("span", { style: { marginRight: '5px', fontWeight: 'bold' }, children: [" ", _jsx(IconVisible, { fontSize: 12 })] }), Globalization.getNumberDisplayValue(visibleItems.length ?? 0, true)] }), _jsxs(StyledParagraph, { children: [_jsxs("span", { style: { marginRight: '5px', fontWeight: 'bold' }, children: [" ", _jsx(IconSelected, { fontSize: 12 })] }), Globalization.getNumberDisplayValue(selectedItems.length ?? 0, true)] }), _jsxs(StyledParagraph, { children: [_jsxs("span", { style: { marginRight: '5px', fontWeight: 'bold' }, children: [" ", _jsx(IconApply, { fontSize: 12 })] }), `${Globalization.getNumberDisplayValue(result?.dcmtsReturned ?? 0, true)}/${Globalization.getNumberDisplayValue(result?.dcmtsFound ?? 0, true)}`] }), _jsxs(StyledParagraph, { children: [_jsxs("span", { style: { marginRight: '5px', fontWeight: 'bold' }, children: [" ", _jsx(IconProgressReady, { fontSize: 12 })] }), millisecondsToTime(elapsedTime)] })] }) })] }));
|
|
46
|
+
};
|
|
47
|
+
export default TMQueryResult;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import { FontSize } from '../../utils/theme';
|
|
4
|
+
import TMLayoutContainer from '../base/TMLayout';
|
|
5
|
+
import TMDropDown from '../editors/TMDropDown';
|
|
6
|
+
import TMCheckBox from '../editors/TMCheckBox';
|
|
7
|
+
import TMButton from '../base/TMButton';
|
|
8
|
+
import { SDKUI_Globals, SDKUI_Localizator } from '../../helper';
|
|
9
|
+
const SettingsAppearance = () => {
|
|
10
|
+
const [currentFontSize, setCurrentFontSize] = useState(localStorage.getItem("fontSize") ?? FontSize.defaultFontSizeInPixel);
|
|
11
|
+
const [dataGridShowRowLines, setDataGridShowRowLines] = useState(Number(localStorage.getItem("dataGridShowRowLines") ?? 0));
|
|
12
|
+
const [dataGridShowColumnLines, setDataGridShowColumnLines] = useState(Number(localStorage.getItem("dataGridShowColumnLines") ?? 0));
|
|
13
|
+
const [dataGridUseNativeScrollbar, setDataGridUseNativeScrollbar] = useState(Number(localStorage.getItem("dataGridUseNativeScrollbar") ?? 1));
|
|
14
|
+
const fontSizes = [
|
|
15
|
+
{ value: "10px", display: "10px" },
|
|
16
|
+
{ value: "11px", display: "11px" },
|
|
17
|
+
{ value: "12px", display: "12px" },
|
|
18
|
+
{ value: "13px", display: "13px" },
|
|
19
|
+
{ value: "14px", display: "14px" },
|
|
20
|
+
{ value: "15px", display: "15px" },
|
|
21
|
+
{ value: "16px", display: "16px" },
|
|
22
|
+
{ value: "17px", display: "17px" },
|
|
23
|
+
{ value: "18px", display: "18px" },
|
|
24
|
+
{ value: "19px", display: "19px" },
|
|
25
|
+
{ value: "20px", display: "20px" }
|
|
26
|
+
];
|
|
27
|
+
return (_jsxs(TMLayoutContainer, { children: [_jsx("p", { style: { fontSize: '1.h1rem', fontWeight: 'bold' }, children: 'Font' }), _jsx(TMDropDown, { label: SDKUI_Localizator.Size, dataSource: fontSizes, width: '150px', value: currentFontSize, onValueChanged: (e) => {
|
|
28
|
+
let newpx = e.target.value;
|
|
29
|
+
document.documentElement.style.setProperty('--base-font-size', newpx);
|
|
30
|
+
localStorage.setItem('fontSize', newpx);
|
|
31
|
+
setCurrentFontSize(newpx);
|
|
32
|
+
} }), _jsx("p", { style: { fontSize: '1rem', fontWeight: 'bold', marginTop: '10px', marginBottom: '5px' }, children: 'Griglie' }), _jsx(TMCheckBox, { value: dataGridShowRowLines, onValueChanged: (newValue) => { SDKUI_Globals.dataGridShowRowLines = (newValue == 1); setDataGridShowRowLines(newValue); localStorage.setItem("dataGridShowRowLines", newValue); }, label: 'Mostra le linee che separano le righe' }), _jsx(TMCheckBox, { value: dataGridShowColumnLines, onValueChanged: (newValue) => { SDKUI_Globals.dataGridShowColumnLines = (newValue == 1); setDataGridShowColumnLines(newValue); localStorage.setItem("dataGridShowColumnLines", newValue); }, label: 'Mostra le linee che separano le colonne' }), _jsx(TMCheckBox, { value: dataGridUseNativeScrollbar, onValueChanged: (newValue) => { SDKUI_Globals.dataGridUseNativeScrollbar = (newValue == 1); setDataGridUseNativeScrollbar(newValue); localStorage.setItem("dataGridUseNativeScrollbar", newValue); }, label: 'Usa la scrollbar nativa' }), _jsx(TMButton, { elementStyle: { marginTop: '10px' }, caption: SDKUI_Localizator.Restore, showTooltip: false, onClick: () => {
|
|
33
|
+
localStorage.removeItem("fontSize");
|
|
34
|
+
localStorage.removeItem("dataGridShowRowLines");
|
|
35
|
+
localStorage.removeItem("dataGridShowColumnLines");
|
|
36
|
+
localStorage.removeItem("dataGridUseNativeScrollbar");
|
|
37
|
+
document.documentElement.style.setProperty('--base-font-size', FontSize.defaultFontSizeInPixel);
|
|
38
|
+
setCurrentFontSize(FontSize.defaultFontSizeInPixel);
|
|
39
|
+
setDataGridShowColumnLines(0);
|
|
40
|
+
setDataGridShowRowLines(0);
|
|
41
|
+
setDataGridUseNativeScrollbar(1);
|
|
42
|
+
} })] }));
|
|
43
|
+
};
|
|
44
|
+
export default SettingsAppearance;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum TMSearchContext {
|
|
3
|
+
JOBS = "jobs",
|
|
4
|
+
PROCESSES = "processes",
|
|
5
|
+
PROCESS_MONITOR = "ProcessMonitor",
|
|
6
|
+
JOBS_LIST = "JobsList",
|
|
7
|
+
PLATFORM = "OrchestrationPlatform",
|
|
8
|
+
QE = "QueryEditor"
|
|
9
|
+
}
|
|
10
|
+
interface ITMHeader {
|
|
11
|
+
showSearchBar?: boolean;
|
|
12
|
+
clearSearchJobValue?: boolean;
|
|
13
|
+
clearSearchQEValue?: boolean;
|
|
14
|
+
searchContext?: TMSearchContext;
|
|
15
|
+
onChangePassword?: VoidFunction;
|
|
16
|
+
onLogout?: VoidFunction;
|
|
17
|
+
settingsMenuContext?: React.ReactNode;
|
|
18
|
+
onSeacrhJobslistValueChange?: (e: string) => void;
|
|
19
|
+
onSeacrhJobsValueChange?: (e: string) => void;
|
|
20
|
+
onSeacrhProcessValueChange?: (e: string) => void;
|
|
21
|
+
onSeacrhProcessMonitorValueChange?: (e: string) => void;
|
|
22
|
+
onSeacrhPlatformValueChange?: (e: string) => void;
|
|
23
|
+
onSeacrhQEValueChange?: (e: string) => void;
|
|
24
|
+
onSettingsClick?: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const TMSearchBar: ({ searchValue, onSearchValueChanged }: {
|
|
27
|
+
searchValue: string;
|
|
28
|
+
onSearchValueChanged: (value: string) => void;
|
|
29
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
declare const TMHeader: React.FC<ITMHeader>;
|
|
31
|
+
export default TMHeader;
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect, useRef } from 'react';
|
|
3
|
+
import six from '../../assets/loading.png';
|
|
4
|
+
import { IconBxInfo, IconCloseOutline, IconLogout, IconPassword, IconSearch, IconSettings, IconUserProfile, MOBILE_WIDTH, SDKUI_Localizator, useWindowWidth } from '../../helper';
|
|
5
|
+
import styled from 'styled-components';
|
|
6
|
+
import { SDK_Globals, AuthenticationModes } from '@topconsultnpm/sdk-ts-beta';
|
|
7
|
+
import { FontSize, TMColors } from '../../utils/theme';
|
|
8
|
+
import { ButtonNames, TMMessageBoxManager } from '../base/TMPopUp';
|
|
9
|
+
export var TMSearchContext;
|
|
10
|
+
(function (TMSearchContext) {
|
|
11
|
+
TMSearchContext["JOBS"] = "jobs";
|
|
12
|
+
TMSearchContext["PROCESSES"] = "processes";
|
|
13
|
+
TMSearchContext["PROCESS_MONITOR"] = "ProcessMonitor";
|
|
14
|
+
TMSearchContext["JOBS_LIST"] = "JobsList";
|
|
15
|
+
TMSearchContext["PLATFORM"] = "OrchestrationPlatform";
|
|
16
|
+
TMSearchContext["QE"] = "QueryEditor";
|
|
17
|
+
})(TMSearchContext || (TMSearchContext = {}));
|
|
18
|
+
const StyledHeaderContainer = styled.div `
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: 50px;
|
|
21
|
+
/* background: #E85C36 0% 0% no-repeat padding-box; */
|
|
22
|
+
background: ${props => props.$appName === 'ORCHESTRATOR' ? 'linear-gradient(90deg, #f0f4fa, #135596)' : props.$appName === 'SURFER' ? 'linear-gradient(90deg, #f0f4fa, #0e7418)' : 'linear-gradient(90deg, #f0f4fa, #b51678)'};
|
|
23
|
+
opacity: 1;
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
width: 100%;
|
|
27
|
+
justify-content: space-between;
|
|
28
|
+
align-items: center;
|
|
29
|
+
`;
|
|
30
|
+
const StyledMenu = styled.div `
|
|
31
|
+
position: absolute;
|
|
32
|
+
top: 50px;
|
|
33
|
+
right: 0px;
|
|
34
|
+
width: fit-content;
|
|
35
|
+
height: fit-content;
|
|
36
|
+
padding: 10px 20px;
|
|
37
|
+
border: 1px solid #2459A420;
|
|
38
|
+
background: #E2E9EF 0% 0% no-repeat padding-box;
|
|
39
|
+
z-index: 20000022;
|
|
40
|
+
display: flex;
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
justify-content: flex-start;
|
|
43
|
+
align-items: flex-start;
|
|
44
|
+
gap: 10px;
|
|
45
|
+
border: 1px solid #c9c9c9;
|
|
46
|
+
border-top: none;
|
|
47
|
+
`;
|
|
48
|
+
const StyledMenuItem = styled.p `
|
|
49
|
+
font-size: ${props => props.$fontSize};
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-direction: row;
|
|
52
|
+
justify-content: flex-start;
|
|
53
|
+
align-items: center;
|
|
54
|
+
gap: 2px;
|
|
55
|
+
cursor: pointer;
|
|
56
|
+
color: gray;
|
|
57
|
+
&:hover{
|
|
58
|
+
color: ${TMColors.primary};
|
|
59
|
+
transition: color 100ms ease;
|
|
60
|
+
}
|
|
61
|
+
`;
|
|
62
|
+
const StyledHeaderIcon = styled.div `
|
|
63
|
+
width: 50px;
|
|
64
|
+
height: 50px;
|
|
65
|
+
margin-left: 10px;
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
color: ${props => props.$isSelected ? '#135596' : '#ffffff'};
|
|
70
|
+
transition: color ease 100ms;
|
|
71
|
+
background-color: ${props => props.$isSelected && '#ffffff'};
|
|
72
|
+
cursor: pointer;
|
|
73
|
+
&:hover {
|
|
74
|
+
color: #ffffff;
|
|
75
|
+
background-color: #0d3862;
|
|
76
|
+
transition: color ease 100ms;
|
|
77
|
+
}
|
|
78
|
+
`;
|
|
79
|
+
const StyledSettingsMenuContainer = styled.div `
|
|
80
|
+
display: flex;
|
|
81
|
+
flex-direction: column;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
align-items: flex-start;
|
|
84
|
+
font-size: ${FontSize.defaultFontSize};
|
|
85
|
+
`;
|
|
86
|
+
const StyledSettingsMenuItem = styled.div `
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: row;
|
|
89
|
+
justify-content: center;
|
|
90
|
+
align-items: center;
|
|
91
|
+
`;
|
|
92
|
+
const StyledSettingsMenuItemTitle = styled.div `
|
|
93
|
+
margin-right: 5px;
|
|
94
|
+
`;
|
|
95
|
+
const StyledSettingsMenuItemCircle = styled.span `
|
|
96
|
+
margin-right: 5px;
|
|
97
|
+
font-size: 1.1rem;
|
|
98
|
+
`;
|
|
99
|
+
const StyledSettingsMenuItemVersion = styled.div `
|
|
100
|
+
font-weight: bold;
|
|
101
|
+
`;
|
|
102
|
+
const StyledSearchBarContainer = styled.div `
|
|
103
|
+
position: relative;
|
|
104
|
+
height:30px;
|
|
105
|
+
width: 100%;
|
|
106
|
+
max-width: ${props => props.$isMobile ? 'unset' : '650px'};
|
|
107
|
+
margin-left: ${props => props.$isMobile ? '10px' : '50px'};
|
|
108
|
+
`;
|
|
109
|
+
const StyledSearchBar = styled.input `
|
|
110
|
+
background: #FFFFFF 0% 0% no-repeat padding-box;
|
|
111
|
+
border: 1px solid #dbdbdb;
|
|
112
|
+
border-radius: 5px;
|
|
113
|
+
padding: 5px 30px;
|
|
114
|
+
width:100%;
|
|
115
|
+
transition: 100ms linear;
|
|
116
|
+
&:focus{
|
|
117
|
+
outline: none;
|
|
118
|
+
border-bottom: 2px solid ${TMColors.primary};
|
|
119
|
+
}
|
|
120
|
+
`;
|
|
121
|
+
export const TMSearchBar = ({ searchValue, onSearchValueChanged }) => {
|
|
122
|
+
const size = useWindowWidth();
|
|
123
|
+
return (_jsxs(StyledSearchBarContainer, { "$isMobile": size <= 640, children: [_jsx(IconSearch, { fontSize: 12, color: '#00000060', style: { position: 'absolute', width: '20px', height: '20px', left: '5px', top: '5px', zIndex: 1 } }), _jsx(StyledSearchBar, { placeholder: SDKUI_Localizator.Search + '...', type: "text", value: searchValue, onChange: (e) => onSearchValueChanged(e.target.value) }), searchValue.length > 0 && _jsx(IconCloseOutline, { onClick: () => onSearchValueChanged(''), color: '#00000060', style: { cursor: 'pointer', position: 'absolute', width: '20px', height: '20px', right: '5px', top: '5px', zIndex: 1 } })] }));
|
|
124
|
+
};
|
|
125
|
+
const TMHeader = ({ showSearchBar = true, clearSearchJobValue, clearSearchQEValue, searchContext = TMSearchContext.JOBS, onChangePassword, onLogout, settingsMenuContext, onSeacrhJobsValueChange, onSeacrhJobslistValueChange, onSeacrhProcessMonitorValueChange, onSeacrhProcessValueChange, onSeacrhPlatformValueChange, onSeacrhQEValueChange, onSettingsClick }) => {
|
|
126
|
+
const [menuStatus, setMenuStatus] = useState(false);
|
|
127
|
+
const [searchJobListValue, setSearchJobListValue] = useState('');
|
|
128
|
+
const [searchJobsValue, setSearchJobsValue] = useState('');
|
|
129
|
+
const [searchProcessesValue, setSearchProcessesValue] = useState('');
|
|
130
|
+
const [searchProcessMonitorValue, setSearchProcessMonitorValue] = useState('');
|
|
131
|
+
const [searchPlatformValue, setSearchPlatformValue] = useState('');
|
|
132
|
+
const [searchQEValue, setSearchQEValue] = useState('');
|
|
133
|
+
const menuRef = useRef(null);
|
|
134
|
+
const userIcon = useRef(null);
|
|
135
|
+
let width = useWindowWidth();
|
|
136
|
+
let isMobile = width <= MOBILE_WIDTH;
|
|
137
|
+
useEffect(() => { clearSearchJobValue && setSearchJobsValue(''); }, [clearSearchJobValue]);
|
|
138
|
+
useEffect(() => { clearSearchQEValue && setSearchQEValue(''); }, [clearSearchQEValue]);
|
|
139
|
+
useEffect(() => {
|
|
140
|
+
switch (searchContext) {
|
|
141
|
+
case TMSearchContext.JOBS_LIST:
|
|
142
|
+
onSeacrhJobslistValueChange && onSeacrhJobslistValueChange(searchJobListValue);
|
|
143
|
+
break;
|
|
144
|
+
case TMSearchContext.JOBS:
|
|
145
|
+
onSeacrhJobsValueChange && onSeacrhJobsValueChange(searchJobsValue);
|
|
146
|
+
break;
|
|
147
|
+
case TMSearchContext.PROCESSES:
|
|
148
|
+
onSeacrhProcessValueChange && onSeacrhProcessValueChange(searchProcessesValue);
|
|
149
|
+
break;
|
|
150
|
+
case TMSearchContext.PROCESS_MONITOR:
|
|
151
|
+
onSeacrhProcessMonitorValueChange && onSeacrhProcessMonitorValueChange(searchProcessMonitorValue);
|
|
152
|
+
break;
|
|
153
|
+
case TMSearchContext.PLATFORM:
|
|
154
|
+
onSeacrhPlatformValueChange && onSeacrhPlatformValueChange(searchPlatformValue);
|
|
155
|
+
break;
|
|
156
|
+
case TMSearchContext.QE:
|
|
157
|
+
onSeacrhQEValueChange && onSeacrhQEValueChange(searchQEValue);
|
|
158
|
+
break;
|
|
159
|
+
}
|
|
160
|
+
}, [searchContext, searchJobListValue, searchJobsValue, searchProcessMonitorValue, searchProcessesValue, searchPlatformValue, searchQEValue]);
|
|
161
|
+
useEffect(() => {
|
|
162
|
+
function handleClickOutside(event) {
|
|
163
|
+
if (menuRef.current && !menuRef.current.contains(event.target) && !userIcon.current?.contains(event.target)) {
|
|
164
|
+
if (menuStatus) {
|
|
165
|
+
setMenuStatus(false);
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
document.addEventListener('click', handleClickOutside);
|
|
170
|
+
return () => document.removeEventListener('click', handleClickOutside);
|
|
171
|
+
}, [menuRef, userIcon, menuStatus]);
|
|
172
|
+
let moduleTypes;
|
|
173
|
+
(function (moduleTypes) {
|
|
174
|
+
moduleTypes["SDK"] = "SDK";
|
|
175
|
+
moduleTypes["SDKUI"] = "SDKUI";
|
|
176
|
+
moduleTypes["WEBSDK"] = "WEBSDK";
|
|
177
|
+
moduleTypes["APP"] = "APP";
|
|
178
|
+
})(moduleTypes || (moduleTypes = {}));
|
|
179
|
+
let buildTypes;
|
|
180
|
+
(function (buildTypes) {
|
|
181
|
+
buildTypes["DEV"] = "DEV";
|
|
182
|
+
buildTypes["TEST"] = "TEST";
|
|
183
|
+
buildTypes["RTM"] = "RTM";
|
|
184
|
+
buildTypes["PATCH"] = "PATCH";
|
|
185
|
+
})(buildTypes || (buildTypes = {}));
|
|
186
|
+
function moduleVersion(module) {
|
|
187
|
+
switch (module) {
|
|
188
|
+
case moduleTypes.SDK: return SDK_Globals.sdkVersion ?? '0.0.0';
|
|
189
|
+
case moduleTypes.SDKUI: return SDK_Globals.sdkuiVersion ?? '0.0.0';
|
|
190
|
+
case moduleTypes.WEBSDK: return SDK_Globals.websdkVersion ?? '0.0.0';
|
|
191
|
+
default: return SDK_Globals.appVersion ?? '0.0.0';
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
function buildtype(module) {
|
|
195
|
+
let versionApp = moduleVersion(moduleTypes.APP);
|
|
196
|
+
let version = moduleVersion(module);
|
|
197
|
+
let nameSDK = SDK_Globals.sdkName ?? "";
|
|
198
|
+
let buildType;
|
|
199
|
+
if (nameSDK.endsWith('-beta') && version.endsWith('.0'))
|
|
200
|
+
buildType = buildTypes.TEST;
|
|
201
|
+
else if (nameSDK.endsWith('-beta') && versionApp.endsWith('.0'))
|
|
202
|
+
buildType = buildTypes.TEST;
|
|
203
|
+
else if (nameSDK.endsWith('-beta'))
|
|
204
|
+
buildType = buildTypes.DEV;
|
|
205
|
+
else if (version.endsWith('.0'))
|
|
206
|
+
buildType = buildTypes.RTM;
|
|
207
|
+
else
|
|
208
|
+
buildType = buildTypes.PATCH;
|
|
209
|
+
return buildType;
|
|
210
|
+
}
|
|
211
|
+
function versionAndBuildtypeInfo(module) {
|
|
212
|
+
let buildType = buildtype(module);
|
|
213
|
+
let version = moduleVersion(module);
|
|
214
|
+
switch (buildType) {
|
|
215
|
+
case buildTypes.DEV:
|
|
216
|
+
case buildTypes.TEST:
|
|
217
|
+
case buildTypes.RTM: return `${version} ${buildType}`;
|
|
218
|
+
default:
|
|
219
|
+
let vs = version.split('.');
|
|
220
|
+
return `${vs[0]}.${vs[1]} PATCH ${vs[2]}`;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
const AboutApp = () => {
|
|
224
|
+
return (_jsxs(StyledSettingsMenuContainer, { children: [_jsxs(StyledSettingsMenuItem, { children: [_jsxs(StyledSettingsMenuItemTitle, { children: [_jsx(StyledSettingsMenuItemCircle, { style: { color: TMColors.info }, children: "\u25CF" }), " ", SDK_Globals.appModule] }), _jsx(StyledSettingsMenuItemVersion, { style: { color: TMColors.info }, children: versionAndBuildtypeInfo(moduleTypes.APP) })] }), _jsxs(StyledSettingsMenuItem, { children: [_jsxs(StyledSettingsMenuItemTitle, { children: [_jsx(StyledSettingsMenuItemCircle, { style: { color: TMColors.error }, children: "\u25CF" }), " SDKUI-REACT"] }), _jsx(StyledSettingsMenuItemVersion, { style: { color: TMColors.error }, children: versionAndBuildtypeInfo(moduleTypes.SDKUI) })] }), _jsxs(StyledSettingsMenuItem, { children: [_jsxs(StyledSettingsMenuItemTitle, { children: [_jsx(StyledSettingsMenuItemCircle, { style: { color: TMColors.success }, children: "\u25CF" }), " SDK-TS"] }), _jsx(StyledSettingsMenuItemVersion, { style: { color: TMColors.success }, children: versionAndBuildtypeInfo(moduleTypes.SDK) })] }), _jsxs(StyledSettingsMenuItem, { children: [_jsxs(StyledSettingsMenuItemTitle, { children: [_jsx(StyledSettingsMenuItemCircle, { style: { color: TMColors.info }, children: "\u25CF" }), " WEBSDK"] }), _jsx(StyledSettingsMenuItemVersion, { style: { color: TMColors.info }, children: versionAndBuildtypeInfo(moduleTypes.WEBSDK) })] })] }));
|
|
225
|
+
};
|
|
226
|
+
return (_jsxs(StyledHeaderContainer, { "$appName": SDK_Globals.appModule, children: [_jsxs("div", { style: { display: 'flex', flexDirection: 'row', alignItems: 'center', justifyContent: 'flex-start', width: '100%' }, children: [_jsx("div", { style: { width: '50px', height: '50px', display: 'flex', alignItems: 'center', justifyContent: 'center' }, children: _jsx("img", { src: six, height: 30, alt: "" }) }), !isMobile && _jsxs("div", { style: { display: 'flex', flexDirection: 'column', alignItems: 'flex-start', justifyContent: 'flex-start', gap: '1px', fontSize: '14px' }, children: [_jsx("div", { style: { userSelect: 'none', color: '#135596' }, children: "TopMedia" }), _jsx("div", { style: { userSelect: 'none', color: '#135596' }, children: SDK_Globals.appModule })] }), showSearchBar && _jsxs(_Fragment, { children: [searchContext === TMSearchContext.JOBS_LIST && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchJobListValue(e), searchValue: searchJobListValue }), searchContext === TMSearchContext.JOBS && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchJobsValue(e), searchValue: searchJobsValue }), searchContext === TMSearchContext.PROCESSES && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchProcessesValue(e), searchValue: searchProcessesValue }), searchContext === TMSearchContext.PROCESS_MONITOR && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchProcessMonitorValue(e), searchValue: searchProcessMonitorValue }), searchContext === TMSearchContext.PLATFORM && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchPlatformValue(e), searchValue: searchPlatformValue }), searchContext === TMSearchContext.QE && _jsx(TMSearchBar, { onSearchValueChanged: (e) => setSearchQEValue(e), searchValue: searchQEValue })] })] }), _jsxs(StyledHeaderIcon, { onClick: () => onSettingsClick?.(), children: [" ", _jsx(IconSettings, { fontSize: 20 }), " "] }), _jsxs(StyledHeaderIcon, { "$isSelected": menuStatus, ref: userIcon, onClick: () => setMenuStatus(!menuStatus), children: [" ", _jsx(IconUserProfile, { fontSize: 20 }), " "] }), menuStatus && _jsxs(StyledMenu, { ref: menuRef, children: [SDK_Globals.tmSession?.SessionDescr?.authenticationMode === AuthenticationModes.TopMedia && _jsxs(StyledMenuItem, { "$fontSize": FontSize.defaultFontSize, onClick: () => { setMenuStatus(false); onChangePassword && onChangePassword(); }, style: { fontSize: FontSize.defaultFontSize }, children: [" ", _jsx("span", { children: _jsx(IconPassword, {}) }), " ", _jsx("span", { children: SDKUI_Localizator.ChangePassword }), " "] }), _jsxs(StyledMenuItem, { "$fontSize": FontSize.defaultFontSize, onClick: () => { setMenuStatus(false); onLogout && onLogout(); }, children: [_jsx("span", { children: _jsx(IconLogout, {}) }), " ", _jsx("span", { children: "Logout" }), " "] }), _jsx("div", { style: { width: '100%', height: '1px', backgroundColor: 'gray' } }), _jsxs(StyledMenuItem, { "$fontSize": FontSize.defaultFontSize, onClick: () => { setMenuStatus(false); TMMessageBoxManager.show({ buttons: [ButtonNames.OK], title: `About. ${SDK_Globals.appModule}`, message: _jsx(AboutApp, {}) }); }, style: { fontSize: FontSize.defaultFontSize }, children: [" ", _jsx("span", { children: _jsx(IconBxInfo, {}) }), " ", _jsx("span", { children: "About" }), " "] })] })] }));
|
|
227
|
+
};
|
|
228
|
+
export default TMHeader;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export type AppRouteType = 'route' | 'panel' | 'panelRight' | 'app';
|
|
3
|
+
export interface AppRoute {
|
|
4
|
+
name: string;
|
|
5
|
+
path: string;
|
|
6
|
+
icon: any;
|
|
7
|
+
element?: JSX.Element;
|
|
8
|
+
category?: string;
|
|
9
|
+
type?: AppRouteType;
|
|
10
|
+
}
|
|
11
|
+
interface ITMSidebar {
|
|
12
|
+
/** Lista di TMSidebarItem che compongono il menù */
|
|
13
|
+
items: JSX.Element[];
|
|
14
|
+
height?: string;
|
|
15
|
+
}
|
|
16
|
+
declare const TMSidebar: React.FC<ITMSidebar>;
|
|
17
|
+
export default TMSidebar;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { SDK_Globals } from '@topconsultnpm/sdk-ts-beta';
|
|
4
|
+
const StyledTMSidebarContainer = styled.div `
|
|
5
|
+
top: 50px;
|
|
6
|
+
left: 0px;
|
|
7
|
+
width: 50px;
|
|
8
|
+
height: ${props => props.$height ?? ''} ;
|
|
9
|
+
background: ${props => props.$appName === 'ORCHESTRATOR' ? '#135596 0% 0% no-repeat padding-box' : props.$appName === 'SURFER' ? '#0e7418 0% 0% no-repeat padding-box' : '#b51678 0% 0% no-repeat padding-box'};
|
|
10
|
+
box-shadow: 0px 3px 6px #00000029;
|
|
11
|
+
border-radius: 0px 0px;
|
|
12
|
+
opacity: 1;
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
justify-content: flex-start;
|
|
16
|
+
align-items: center;
|
|
17
|
+
padding: 10px 0px 0px 0px;
|
|
18
|
+
position: absolute;
|
|
19
|
+
/* z-index: 20000001; */
|
|
20
|
+
`;
|
|
21
|
+
const TMSidebar = ({ items, height }) => {
|
|
22
|
+
return (_jsx(_Fragment, { children: _jsxs(StyledTMSidebarContainer, { "$appName": SDK_Globals.appModule, "$height": height, children: [items.filter(item => item.props.type !== 'app'), _jsx("div", { style: { position: 'absolute', bottom: '10px', display: 'flex', flexDirection: 'column' }, children: items.filter(item => item.props.type === 'app') })] }) }));
|
|
23
|
+
};
|
|
24
|
+
export default TMSidebar;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { AppRouteType } from './TMSidebar';
|
|
3
|
+
export interface ITMSidebarItem {
|
|
4
|
+
name: string;
|
|
5
|
+
path: string;
|
|
6
|
+
type?: AppRouteType;
|
|
7
|
+
isSelected: boolean;
|
|
8
|
+
icon: any;
|
|
9
|
+
onClick?: (e: ITMSidebarItem) => void;
|
|
10
|
+
}
|
|
11
|
+
declare const TMSidebarItem: React.FunctionComponent<ITMSidebarItem>;
|
|
12
|
+
export default TMSidebarItem;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
import { TMColors } from '../../utils/theme';
|
|
4
|
+
import TMTooltip from '../base/TMTooltip';
|
|
5
|
+
const StyledTMSidebarItemContainer = styled.div `
|
|
6
|
+
margin-bottom: 10px;
|
|
7
|
+
background-color: transparent;
|
|
8
|
+
padding: 5px 0 0 5px;
|
|
9
|
+
transition: all 200ms ease;
|
|
10
|
+
user-select: none;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
color: ${(props) => props.$isSelected ? TMColors.secondary : '#fff'};
|
|
13
|
+
width: 32px;
|
|
14
|
+
height: 32px;
|
|
15
|
+
|
|
16
|
+
p {
|
|
17
|
+
display: none;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&:hover {
|
|
21
|
+
color: ${TMColors.secondary};
|
|
22
|
+
}
|
|
23
|
+
`;
|
|
24
|
+
const TMSidebarItem = (props) => {
|
|
25
|
+
return (_jsx(TMTooltip, { hideAfterDelay: true, content: props.name, children: _jsx(StyledTMSidebarItemContainer, { "$isSelected": props.isSelected, children: _jsxs("div", { onClick: () => props.onClick?.(props), children: [_jsx("i", { children: props.icon }), _jsx("p", { children: props.name })] }) }) }));
|
|
26
|
+
};
|
|
27
|
+
export default TMSidebarItem;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ITMSplitterLayoutProps {
|
|
3
|
+
vertical?: boolean;
|
|
4
|
+
percentage?: boolean;
|
|
5
|
+
primaryIndex?: number;
|
|
6
|
+
primaryMinSize?: number;
|
|
7
|
+
secondaryInitialSize?: number;
|
|
8
|
+
secondaryMinSize?: number;
|
|
9
|
+
height?: string;
|
|
10
|
+
width?: string;
|
|
11
|
+
onDragStart?: () => void;
|
|
12
|
+
onDragEnd?: () => void;
|
|
13
|
+
onSecondaryPaneSizeChange?: (size: number) => void;
|
|
14
|
+
children?: React.ReactNode[];
|
|
15
|
+
}
|
|
16
|
+
declare const TMSplitterLayout: React.FC<ITMSplitterLayoutProps>;
|
|
17
|
+
export default TMSplitterLayout;
|